Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/H1ldzA4tPr/H1ldzA4tPr.md +329 -0
- parse/train/H1ldzA4tPr/H1ldzA4tPr_content_list.json +1751 -0
- parse/train/H1ldzA4tPr/H1ldzA4tPr_middle.json +0 -0
- parse/train/H1ldzA4tPr/H1ldzA4tPr_model.json +0 -0
- parse/train/H1xQSjCqFQ/H1xQSjCqFQ.md +264 -0
- parse/train/H1xQSjCqFQ/H1xQSjCqFQ_content_list.json +1433 -0
- parse/train/H1xQSjCqFQ/H1xQSjCqFQ_middle.json +0 -0
- parse/train/H1xQSjCqFQ/H1xQSjCqFQ_model.json +0 -0
- parse/train/dvSExzhjG9D/dvSExzhjG9D.md +678 -0
- parse/train/dvSExzhjG9D/dvSExzhjG9D_content_list.json +0 -0
- parse/train/dvSExzhjG9D/dvSExzhjG9D_middle.json +0 -0
- parse/train/dvSExzhjG9D/dvSExzhjG9D_model.json +0 -0
- parse/train/rJbbOLcex/rJbbOLcex.md +269 -0
- parse/train/rJbbOLcex/rJbbOLcex_content_list.json +1233 -0
- parse/train/rJbbOLcex/rJbbOLcex_middle.json +0 -0
- parse/train/rJbbOLcex/rJbbOLcex_model.json +0 -0
- parse/train/rkzjUoAcFX/rkzjUoAcFX.md +249 -0
- parse/train/rkzjUoAcFX/rkzjUoAcFX_content_list.json +1151 -0
- parse/train/rkzjUoAcFX/rkzjUoAcFX_middle.json +0 -0
- parse/train/rkzjUoAcFX/rkzjUoAcFX_model.json +0 -0
parse/train/H1ldzA4tPr/H1ldzA4tPr.md
ADDED
|
@@ -0,0 +1,329 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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edding space for a linear approximation of a nonlinear dynamical system enables efficient system identification and control synthesis. The Koopman operator theory lays the foundation for identifying the nonlinear-to-linear coordinate transformations with data-driven methods. Recently, researchers have proposed to use deep neural networks as a more expressive class of basis functions for calculating the Koopman operators. These approaches, however, assume a fixed dimensional state space; they are therefore not applicable to scenarios with a variable number of objects. In this paper, we propose to learn compositional Koopman operators, using graph neural networks to encode the state into objectcentric embeddings and using a block-wise linear transition matrix to regularize the shared structure across objects. The learned dynamics can quickly adapt to new environments of unknown physical parameters and produce control signals to achieve a specified goal. Our experiments on manipulating ropes and controlling soft robots show that the proposed method has better efficiency and generalization ability than existing baselines.
|
| 14 |
+
|
| 15 |
+
# 1 INTRODUCTION
|
| 16 |
+
|
| 17 |
+
Simulating and controlling complex dynamical systems, such as ropes or soft robots, relies on two key features of the dynamics model: first, it needs to be efficient for system identification and motor control; second, it needs to be generalizable to a complex, constantly evolving environments.
|
| 18 |
+
|
| 19 |
+
In practice, computational models for complex, nonlinear dynamical systems are often not efficient enough for real-time control (Mayne, 2000). The Koopman operator theory suggests that identifying nonlinear-to-linear coordinate transformations allows efficient linear approximation of nonlinear systems (Williams et al., 2015; Mauroy & Goncalves, 2016). Fast as they are, however, existing papers on Koopman operators focus on a single dynamical system, making it hard to generalize to cases where there are a variable number of components.
|
| 20 |
+
|
| 21 |
+
In contrast, recent advances in approximating dynamics models with deep nets have demonstrated its power in characterizing complex, generic environments. In particular, a few recent papers have explored the use of graph nets in dynamics modeling, taking into account the state of each object as well as their interactions. This allows their models to generalize to scenarios with a variable number of objects (Battaglia et al., 2016; Chang et al., 2017). Despite their strong generalization power, they are not as efficient in system identification and control, because deep nets are heavily over-parameterized, making optimization time-consuming and sample-inefficient.
|
| 22 |
+
|
| 23 |
+
In this paper, we propose compositional Koopman operators, integrating Koopman operators with graph networks for generalizable and efficient dynamics modeling. We build on the idea of encoding states into object-centric embeddings with graph neural networks, which ensures generalization power. But instead of using over-parameterized neural nets to model state transition, we identify the Koopman matrix and control matrix from data as a linear approximation of the nonlinear dynamical system. The linear approximation allows efficient system identification and control synthesis.
|
| 24 |
+
|
| 25 |
+
The main challenge of extending Koopman theory to multi-object systems is scalability. The number of parameters in the Koopman matrix scales quadratically with the number of objects, which harms the learning efficiency and leads to overfitting. To tackle this issue, we exploit the structure of the underlying system and use the same block-wise Koopman sub-matrix for object pairs of the same relation. This significantly reduces the number of parameters that need to be identified by making it independent of the size of the system.
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
Figure 1: Overview of our model. A graph neural network $\phi$ takes in the current state of the physical system $\mathbf { \boldsymbol { x } } ^ { t }$ , and generates object-centric representations in the Koopman space $g ^ { t }$ . We then use the block-wise Koopman matrix $K$ and control matrix $L$ identified from equation 6 or equation 8 to predict the Koopman embeddings in the next time step $\mathbf g ^ { t + 1 }$ . Note that in $K$ and $L$ , object pairs of the same relation share the same sub-matrix. Another graph neural network $\psi$ maps $\mathbf g ^ { t + 1 }$ back to the original state space, i.e., $\boldsymbol { x } ^ { t + 1 }$ . The mapping between $g ^ { \hat { t } }$ and $\mathbf g ^ { t + 1 }$ is linear and is shared across all time steps, where we can iteratively apply $K$ and $L$ to the Koopman embeddings and roll multiple steps into the future. The formulation enables efficient system identification and control synthesis.
|
| 29 |
+
|
| 30 |
+
Our experiments include simulating and controlling ropes of variable lengths and soft robots of different shapes. The compositional Koopman operators are significantly more accurate than the state-of-the-art learned physics engines (Battaglia et al., 2016; Li et al., 2019b), and faster when adapting to new environments of unknown physical parameters. Our method also outperforms vanilla deep Koopman methods (Lusch et al., 2018; Morton et al., 2018) and Koopman models with manually-designed basis functions, which shows the advantages of using a structured Koopman matrix and graph neural networks. Please see our project page for demonstrating videos.
|
| 31 |
+
|
| 32 |
+
# 2 RELATED WORK
|
| 33 |
+
|
| 34 |
+
Koopman operators. The Koopman operator formalism of dynamical systems is rooted in the seminal works of Koopman and Von Neumann in the early 1930s (Koopman, 1931; Koopman & Neumann, 1932). The core idea is to map the state of a nonlinear dynamical system to an embedding space, over which we can linearly propagate into the future. Researchers have proposed various algorithms to explore the Koopman spectral properties from data. A large portion of them are in the class of dynamic mode decomposition (DMD) (Rowley et al., 2009; Schmid, 2010; Tu et al., 2014; Williams et al., 2015; Arbabi & Mezic, 2017). The linear representation will enable efficient prediction, estimation, and control using tools from linear dynamical systems (Williams et al., 2016; Proctor et al., 2018; Mauroy & Goncalves, 2019; Korda & Mezic´, 2018). People have been using hand-designed Koopman observables for various modeling and control tasks (Brunton et al., 2016; Kaiser et al., 2017; Abraham et al., 2017; Bruder et al., 2019b; Arbabi et al., 2018). Some recent works have applied the method to the real world and successfully control soft robots with great precision (Bruder et al., 2019a; Mamakoukas et al., 2019).
|
| 35 |
+
|
| 36 |
+
However, hand-crafted basis functions sometimes fail to generalize to more complex environments. Learning these functions from data using neural nets turns out to generate a more expressive invariant subspace (Lusch et al., 2018; Takeishi et al., 2017) and has achieved successes in fluid control (Morton et al., 2018). Morton et al. (2019) has also extended the framework to account for uncertainty in the system by inferring a distribution over observations. Our model differs by explicitly modeling the compositionality of the underlying system with graph networks. It generalizes better to environments of a variable number of objects or soft robots of different shapes.
|
| 37 |
+
|
| 38 |
+
Learning-based physical simulators. Battaglia et al. (2016) and Chang et al. (2017) first explored learning a simulator from data by approximating object interactions with neural networks. These models are no longer bounded to hard-coded physical rules, and can adapt to scenarios where the underlying physics is unknown. Please refer to Battaglia et al. (2018) for a full review. Recently, Mrowca et al. (2018) and Li et al. (2019a) extended these models to approximate particle dynamics of deformable shapes and fluids. Flexible as they are, these models become less efficient during model adaptation in complex scenarios, because the optimization of neural networks usually needs a lot of samples and compute, which limits its use in an online setting. Nagabandi et al. (2019a;b) proposed to use meta-learning for online adaptation, and have shown to be effective in simulated robots and a real legged millirobot. However, it is not clear whether their methods can generalize to systems with variable numbers of instances. The use of graph nets and Koopman operators in our model allows better generalization ability and enables efficient system identification as we only need to identify the transition matrices, which is essentially a least-square problem and can be solved very efficiently.
|
| 39 |
+
|
| 40 |
+
People have also used the learned physics engines for planning and control. Many previous papers in this direction learn a latent dynamics model together with a policy in a model-based reinforcement learning setup (Racaniere et al. \` , 2017; Hamrick et al., 2017; Pascanu et al., 2017; Hafner et al., 2019); a few alternatives use the learned model in model-predictive control (MPC) (Sanchez-Gonzalez et al., 2018; Li et al., 2019b; Janner et al., 2019). In this paper, we leverage the fact that the embeddings in the Koopman space are propagating linearly through time, which allows us to formulate the control problem as quadratic programming and optimize the control signals much more efficiently.
|
| 41 |
+
|
| 42 |
+
# 3 APPROACH
|
| 43 |
+
|
| 44 |
+
We first present the basics of Koopman operators: for a nonlinear dynamical system, the Koopman observation functions can map the state space to an embedding space where the dynamics become linear. We then discuss the compositional nature of physical systems and show how graph networks can be used to capture the compositionality.
|
| 45 |
+
|
| 46 |
+
# 3.1 THE KOOPMAN OPERATORS
|
| 47 |
+
|
| 48 |
+
Let $\pmb { x } ^ { t } \in \mathcal { X } \subset \mathbb { R } ^ { n }$ be the state vector for the system at time step $t$ . We consider a non-linear discrete-time dynamical system described by ${ \pmb x } ^ { t + 1 } = F ( { \pmb x } ^ { t } )$ . The Koopman operator (Koopman, 1931), denoted as $\mathcal { K } : \mathcal { F } \mathcal { F }$ , is a linear transformation defined by $\kappa g \triangleq g \circ F$ , where $\mathcal { F }$ is the collection of all functions (also referred to as observables) that form an infinite-dimensional Hilbert space. For every function $g : \mathcal { X } \mathbb { R }$ belonging to $\mathcal { F }$ , we have
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
( \mathcal { K } g ) ( \pmb { x } ^ { t } ) = g ( F ( \pmb { x } ^ { t } ) ) = g ( \pmb { x } ^ { t + 1 } ) ,
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
making the function space $\mathcal { F }$ invariant under the action of the Koopman operator.
|
| 55 |
+
|
| 56 |
+
Although the theory guarantees the existence of the Koopman operator, its use in practice is limited by its infinite dimensionality. Most often, we assume there is an invariant subspace $\mathcal { G }$ of the Koopman operator. It spans by a set of base observation functions $\{ g _ { 1 } , \cdots , g _ { m } \}$ and satisfies that $\kappa g \in \mathcal G$ for any $g \in { \mathcal { G } }$ . With a slightly abuse of the notation, we now use $\bar { g } ( \pmb { x } ^ { \hat { t } } ) : \mathbb { R } ^ { n } \mathbb { R } ^ { m }$ to represent $[ g _ { 1 } ( { \pmb x } ^ { t } ) , \cdot \cdot \cdot , g _ { m } ( { \pmb x } ^ { t } ) ] ^ { T }$ . By constraining the Koopman operator on this invariant subspace, we get a finite-dimensional linear operator $K \in \mathbb { R } ^ { m \times m }$ that we refer as the Koopman matrix.
|
| 57 |
+
|
| 58 |
+
Traditionally, people hand-craft base observation functions from the knowledge of underlying physics. The system identification problem is then reduced to finding the Koopman matrix $K$ , which can be solved by linear regression given historical data of the system. Recently, researchers have also explored data-driven methods that automatically find the Koopman invariant subspace via representing the base observation functions $g ( { \pmb x } )$ via deep neural networks.
|
| 59 |
+
|
| 60 |
+
Although the original Koopman theory does not consider the system with external control inputs, researchers have found that linearly injecting control signals to the Koopman observation space can give us good numerical performance (Brunton et al., 2016; Bruder et al., 2019a). Mathematically, considering a dynamical system, $\pmb { x } ^ { t + 1 } = F ( \pmb { x } ^ { t } , \pmb { u } ^ { t } )$ , with an external control input ${ \mathbf { } } _ { { \mathbf { } } { \mathbf { } } } { \mathbf { } } _ { { \mathbf { } } } t$ , we aim to find the Koopman observation functions and the linear dynamics model in the form of
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
g ( \pmb { x } ^ { t + 1 } ) = K g ( \pmb { x } ^ { t } ) + L \pmb { u } ^ { t } ,
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
where the coefficient matrix $L$ is referred to as the control matrix.
|
| 67 |
+
|
| 68 |
+
# 3.2 COMPOSITIONAL KOOPMAN OPERATORS
|
| 69 |
+
|
| 70 |
+
The dynamics of a physical system are governed by physical rules, which are usually shared across different subcomponents in the system. Explicitly modeling such compositionality enables more efficient system identification and control synthesis and provides better generalization ability.
|
| 71 |
+
|
| 72 |
+
Motivating example. Consider a system with $N$ balls moving in a 2D plane, each pair connected by a linear spring. Assume all balls have mass 1 and all springs share the same stiffness coefficient $k$ . We denote the $i$ ’s ball’s position as $( x _ { i } , y _ { i } )$ and its velocity as $( { \dot { x } } _ { i } , { \dot { y } } _ { i } )$ . For ball $i$ , equation 3 describes its dynamics, where $\mathbf { \Phi } _ { \pmb { x } _ { i } } \triangleq [ x _ { i } , y _ { i } , \dot { x } _ { i } , \dot { y } _ { i } ] ^ { T }$ denotes ball $i$ ’s state:
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\begin{array}{c} \dot { v } _ { i } = \left[ \begin{array} { c } { \dot { x } _ { i } } \\ { \dot { y } _ { i } } \\ { \dot { x } _ { i } } \\ { \dot { y } _ { i } } \end{array} \right] = \left[ \begin{array} { c c c c c } { \dot { x } _ { i } } & { 0 } & { 1 } & { 0 } \\ { \dot { y } _ { i } } & { 0 } & { 0 } & { 1 } \\ { \sum _ { j = 1 } ^ { N } k ( x _ { j } - x _ { i } ) } \\ { \sum _ { j = 1 } ^ { N } k ( y _ { j } - y _ { i } ) } \end{array} \right] = \underbrace { \left[ \begin{array} { c c c c c } { 0 } & { 0 } & { 1 } & { 0 } \\ { 0 } & { 0 } & { 0 } & { 1 } \\ { k - N k } & { 0 } & { 0 } & { 0 } \\ { 0 } & { k - N k } & { 0 } & { 0 } \end{array} \right] } _ { \triangleq \mathcal { A } } \left[ \begin{array} { c } { x _ { i } } \\ { y _ { i } } \\ { \dot { x } _ { i } } \end{array} \right] + \sum _ { j \neq i } \left[ \underbrace { 0 } _ { k } _ { 0 } \begin{ c c c c } { 0 } & { 0 } & { 0 } & { 0 } \\ { 0 } & { 0 } & { 0 } & { 0 } \\ { k } & { 0 } & { 0 } & { 0 } \\ { 0 } & { k } & { 0 } & { 0 } \end{array} \right] \left[ \begin{array} { c } { x _ { j } } \\ { y _ { j } } \\ { \dot { x } _ { j } } \end{array} \right]
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
We can represent the state of the whole system using the union of every ball’s state, where ${ \textbf { \em x } } =$ $[ \pmb { x } _ { 1 } , \cdots , \pmb { \dot { x } } _ { N } ] ^ { T }$ . Then the transition matrix is essentially a block matrix, where the matrix parameters are shared among the diagonal or off-diagonal blocks as shown in equation 4:
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
{ \dot { \pmb x } } = \left[ \begin{array} { c } { \dot { \pmb x } _ { 1 } } \\ { \dot { \pmb x } _ { 2 } } \\ { \vdots } \\ { \dot { \pmb x } _ { N } } \end{array} \right] = \left[ \begin{array} { c c c c } { { \cal A } } & { { \cal B } } & { \cdots } & { { \cal B } } \\ { { \cal B } } & { { \cal A } } & { \cdots } & { { \cal B } } \\ { \vdots } & { \vdots } & { \ddots } & { \vdots } \\ { { \cal B } } & { { \cal B } } & { \cdots } & { { \cal A } } \end{array} \right] \left[ \begin{array} { c } { { \pmb x } _ { 1 } } \\ { { \pmb x } _ { 2 } } \\ { \vdots } \\ { { \pmb x } _ { N } } \end{array} \right] .
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
Based on the linear spring system, we make three observations for multi-object systems.
|
| 85 |
+
|
| 86 |
+
The system state is composed of the state of each individual object. The dimension of the whole system scales linearly with the number of objects. We formulate the system state by concatenating the state of every object, corresponding to an object-centric state representation. • The transition matrix has a block-wise substructure. After assuming an object-centric state representation, the transition matrix naturally has a block-wise structure as shown in equation 4. • The same physical interactions share the same transition block. The blocks in the transition matrix encode actual interactions and generalize across systems. $A$ and $B$ govern the dynamics of the linear spring system, and are shared by systems with a different number of objects.
|
| 87 |
+
|
| 88 |
+
These observations inspire us to exploit the structure of multi-object systems, instead of learning separate models for systems that contains different numbers of balls.
|
| 89 |
+
|
| 90 |
+
Compositional Koopman operators. Motivated by the linear spring system, we want to inject a good inductive bias to incorporate compositionality when applying the Koopman theory. This allows better generalization ability and more efficient system identification and better controller design. Figure 1 shows an overview of our model.
|
| 91 |
+
|
| 92 |
+
Considering a system with $N$ objects, we denote $\mathbf { \boldsymbol { x } } ^ { t }$ as the system state at time $t$ and $\boldsymbol { x } _ { i } ^ { t }$ is the state of the $\romannumeral 1$ ’th object. We further denote $\mathbf { \boldsymbol { g } } ^ { t } \triangleq \mathbf { \boldsymbol { g } } ( \mathbf { \boldsymbol { x } } ^ { t } )$ as the embedding of the state in the Koopman invariant space. In the rest of the paper, we call $g ^ { t }$ the Koopman embedding. Based on the observation we made in the case of linear spring system, we propose the following assumptions on the compositional structure of the Koopman embedding and the Koopman matrix.
|
| 93 |
+
|
| 94 |
+
• The Koopman embedding of the system is composed of the Koopman embedding of every objects. Similar to the decomposition in the state space, we assume the Koopman embedding can be divided into object-centric sub-embeddings, i.e. $\pmb { g } ^ { t } \in \mathbb { R } ^ { N m }$ denoting the concatenation of $g _ { 1 } ^ { t } , \cdots , g _ { N } ^ { t }$ , where we use $\pmb { g } _ { i } ^ { t } = g _ { i } ( \pmb { x } ^ { t } ) \in \mathbb { R } ^ { m }$ as the Koopman embedding for the $i ^ { \because }$ ’th object.
|
| 95 |
+
|
| 96 |
+
The Koopman matrix has a block-wise structure. It is natural to think the Koopman matrix is composed of block matrices after assuming an object-centric Koopman embeddings. In equation 5, $K _ { i j } \ \in \mathbb { R } ^ { m \times m }$ and $L _ { i j } \in \mathbb { R } ^ { m \times l }$ are blocks of the Koopman matrix and the control matrix, where $l$ is the dimension of the action for each object and $\pmb { u } ^ { t } \in \mathbb { R } ^ { N l }$ is the concatenation of $\boldsymbol { \mathbf { \mathit { u } } } _ { 1 } ^ { t } , \cdots , \boldsymbol { \mathbf { \mathit { u } } } _ { N } ^ { t }$ denoting the total control signal at time $t$ :
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
\left[ \begin{array} { c } { { { \bf g } _ { 1 } ^ { t + 1 } } } \\ { { \vdots } } \\ { { \vdots } } \\ { { { \bf g } _ { N } ^ { t + 1 } } } \end{array} \right] = \left[ \begin{array} { c c c c } { { { \cal K } _ { 1 1 } } } & { { \cdots } } & { { { \cal K } _ { 1 N } } } \\ { { \vdots } } & { { \ddots } } & { { \vdots } } \\ { { { \cal K } _ { N 1 } } } & { { \cdots } } & { { { \cal K } _ { N N } } } \end{array} \right] \left[ \begin{array} { c } { { { \bf g } _ { 1 } ^ { t } } } \\ { { \vdots } } \\ { { { \bf g } _ { N } ^ { t } } } \end{array} \right] + \left[ \begin{array} { c c c c } { { { \cal L } _ { 1 1 } } } & { { \cdots } } & { { { \cal L } _ { 1 N } } } \\ { { \vdots } } & { { \ddots } } & { { \vdots } } \\ { { { \cal L } _ { N 1 } } } & { { \cdots } } & { { { \cal L } _ { N N } } } \end{array} \right] \left[ \begin{array} { c } { { { \bf u } _ { 1 } ^ { t } } } \\ { { \vdots } } \\ { { \vdots } } \\ { { { \bf u } _ { N } ^ { t } } } \end{array} \right] .
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
As we have seen in the case of linear spring system, those matrix blocks are not independent, but some of them share the same set of values.
|
| 103 |
+
|
| 104 |
+
• The same physical interactions shall share the same transition block. The equivalence between the blocks should reflect the equivalence of the interactions, where we use the same transition sub-matrix for object pairs of the same relation. For example, if the system is composed of $N$ identical objects interacting with the same relation, then, by symmetry, all the diagonal blocks should be the same, while all the off-diagonal blocks should also be the same. The repetitive structure allows us to efficiently identify the values using least squares regression.
|
| 105 |
+
|
| 106 |
+
# 3.3 LEARNING THE KOOPMAN EMBEDDINGS USING GRAPH NEURAL NETWORKS
|
| 107 |
+
|
| 108 |
+
For a graph that contains , where vertic $N$ nt the syesent obj m at time s and ed $t$ us $G ^ { t } = ( O ^ { t } , R )$ $O ^ { t } = \{ o _ { i } ^ { t } \} _ { i = 1 } ^ { N }$ $\bar { R \mathbf { \Psi } } = \{ r _ { k } \} _ { k = 1 } ^ { N ^ { 2 } }$ represent pair-wise relations. Specifically, ${ \pmb O } _ { i } ^ { t } = ( \bar { \pmb x } _ { i } ^ { t } , { \pmb a } _ { i } ^ { o } )$ $\boldsymbol { x } _ { i } ^ { t }$ is the state of object $i$ and $\pmb { a } _ { i } ^ { o }$ is a one-hot vector indicating the object type, e.g., fixed or movable. For relation, we have $\pmb { r } _ { k } = ( u _ { k } , v _ { k } , \pmb { a } _ { k } ^ { r } ) , 1 \leq u _ { k } , v _ { k } \leq N$ , where $u _ { k }$ and $v _ { k }$ are integers denoting the end points of this directed edge, and $\pmb { a } _ { k } ^ { r }$ is a one-hot vector denoting the type of the relation $k$ .
|
| 109 |
+
|
| 110 |
+
We use a graph neural network similar to Interaction Networks (IN) (Battaglia et al., 2016) to generate object-centric Koopman embeddings. IN defines an object function $f _ { O }$ and a relation function $f _ { R }$ to model objects and their relations in a compositional way. Similar to a message passing procedure, we calculate the edge effect $\pmb { e } _ { k } ^ { t } = f _ { R } ( \bar { \pmb { o } } _ { u _ { k } } ^ { t } , \pmb { o } _ { v _ { k } } ^ { t } , \pmb { a } _ { k } ^ { r } ) _ { k = 1 \dots N ^ { 2 } }$ , and node effect $\begin{array} { r } { \pmb { g } _ { i } ^ { t } = f _ { O } ( \pmb { o } _ { i } ^ { t } , \sum _ { k \in \mathcal { N } _ { i } } \pmb { e } _ { k } ^ { t } ) _ { i = 1 \dots N } } \end{array}$ , where ${ \mathcal { N } } _ { i }$ denotes the relations that point to the object $i$ and $\{ g _ { i } ^ { t } \}$ are the derived Koopman embeddings. We use this graph neural network, denoted as $\phi$ , to represent our Koopman observation function.
|
| 111 |
+
|
| 112 |
+
System identification. For a sequence of observations $\widetilde { \pmb { x } } = \{ \pmb { x } ^ { 1 } , \cdots , \pmb { x } ^ { T } \}$ from time 1 to time $T$ , we first map them to the Koopman space as $\widetilde { \pmb { g } } = [ \pmb { g } ^ { 1 } , \dotsb { \mathrm { ~ , ~ } } \pmb { g } ^ { T } ]$ using the graph encoder $\phi$ , where $g ^ { t } = \phi ( \pmb { x } ^ { t } )$ . We use $\pmb { g } ^ { i : j }$ eto denote the sub-sequence $[ \pmb { g } ^ { i } , \cdots , \pmb { g } ^ { j } ]$ . To identify the Koopman matrix, we solve the linear regression $\operatorname* { m i n } _ { K } { \| K g ^ { 1 : T - 1 } - g ^ { \overleftarrow { 2 } : T } \| _ { 2 } }$ . As a result, $K { \dot { = } } g ^ { 2 : T } ( { \dot { g } } ^ { 1 : T - 1 } ) ^ { \dagger }$ will asymptotically approach the Koopman operator $\kappa$ with an increasing $T$ . For cases where there are control inputs $\widetilde { \pmb { u } } = [ \pmb { u } ^ { 1 } , \dotsb , \pmb { u } ^ { T - 1 } ]$ , the calculation of the Koopman matrix and the control matrix is eessentially solving a least squares problem w.r.t. the objective
|
| 113 |
+
|
| 114 |
+
$$
|
| 115 |
+
\operatorname* { m i n } _ { K , L } | | K g ^ { 1 : T - 1 } + L \widetilde { \pmb { u } } - \pmb { g } ^ { 2 : T } | | _ { 2 } .
|
| 116 |
+
$$
|
| 117 |
+
|
| 118 |
+
As we mentioned in the Section 3.2, the dimension of the Koopman space is linear to the number of objects in the system, i.e., $\widetilde { \pmb g } \in \mathbb R ^ { N m \times T }$ and $K \in \mathbb { R } ^ { N m \times N m }$ . If we do not enforce any structure on the Koopman matrix $K$ e, we will have to identify $N ^ { 2 } m ^ { 2 }$ parameters. Instead, we can significantly reduce the number by leveraging the assumption on the structure of $K$ . Assume we know some blocks $( \{ K _ { i j } \} )$ of the matrix $K$ are shared and in total there are $h$ different kinds of blocks, which we denote as $\hat { K } \in \mathbb { R } ^ { h \times m \times m }$ . Then, the number of parameter to be identified reduce to $h m ^ { 2 }$ . Usually, $h$ does not depend on $N$ , and is much smaller than $N ^ { 2 }$ . Now, for each block $K _ { i j }$ , we have a one-hot vector $\sigma _ { i j } \in \{ 0 , 1 \} ^ { h }$ indicating its type, i.e., $K _ { i j } = \sigma _ { i j } \hat { K } \in \mathbb { R } ^ { m \times m }$ . Finally, as shown in equation 7, we represent the Koopman matrix as the product of the index tensor $\sigma$ and the parameter tensor $\hat { K }$ :
|
| 119 |
+
|
| 120 |
+
$$
|
| 121 |
+
K = \sigma \otimes { \hat { K } } = \left[ \begin{array} { c c c } { \sigma _ { 1 1 } { \hat { K } } } & { \cdots } & { \sigma _ { 1 N } { \hat { K } } } \\ { \vdots } & { \ddots } & { \vdots } \\ { \sigma _ { N 1 } { \hat { K } } } & { \cdots } & { \sigma _ { N N } { \hat { K } } } \end{array} \right] , \mathrm { w h e r e } \sigma = \left[ \begin{array} { c c c } { \sigma _ { 1 1 } } & { \cdots } & { \sigma _ { 1 N } } \\ { \vdots } & { \ddots } & { \vdots } \\ { \sigma _ { N 1 } } & { \cdots } & { \sigma _ { N N } } \end{array} \right] \in \mathbb { R } ^ { N \times N \times h } .
|
| 122 |
+
$$
|
| 123 |
+
|
| 124 |
+
Similar to the Koopman matrix, we assume the same block structure in the control matrix $L$ and denote its parameter as $\hat { L } \in \mathbb { R } ^ { h \times m \times l }$ . The least squares problem of identifying $\hat { K }$ and $\hat { L }$ becomes
|
| 125 |
+
|
| 126 |
+
$$
|
| 127 |
+
\operatorname* { m i n } _ { \hat { K } , \hat { L } } \| ( \sigma \otimes \hat { K } ) \pmb { g } ^ { 1 : T - 1 } + ( \sigma \otimes \hat { L } ) \widetilde { \pmb { u } } - \pmb { g } ^ { 2 : T } \| _ { 2 } ,
|
| 128 |
+
$$
|
| 129 |
+
|
| 130 |
+
where $\sigma \otimes \hat { K } \in \mathbb { R } ^ { N m \times N m }$ , $\sigma \otimes \hat { L } \in \mathbb { R } ^ { N m \times N l }$ , $\pmb { g } ^ { 1 : T - 1 } \in \mathbb { R } ^ { N m \times ( T - 1 ) }$ and $\widetilde { \pmb { u } } \in \mathbb { R } ^ { N l \times ( T - 1 ) }$ . Since ethe linear least squares problems described in equation 6 and equation 8 have analytical solutions, performing system identification using our method is very efficient.
|
| 131 |
+
|
| 132 |
+
Training GNN models. To make predictions on the states, we use a graph decoder $\psi$ to map the Koopman embeddings back to the original state space. In total, we have three losses to train the graph encoder and decoder. The first term is the auto-encoding loss
|
| 133 |
+
|
| 134 |
+
$$
|
| 135 |
+
\mathcal { L } _ { \mathrm { a e } } = \frac { 1 } { T } \sum _ { i } ^ { T } \| \psi ( \phi ( \pmb { x } ^ { i } ) ) - \pmb { x } ^ { i } \| .
|
| 136 |
+
$$
|
| 137 |
+
|
| 138 |
+
The second term is the prediction loss. To calculate it, we rollout in the Koopman space and denote the embeddings as $\hat { \pmb g } ^ { 1 } \overset { ^ { } } { = } \pmb g ^ { 1 }$ , and $\hat { \pmb { g } } ^ { t + 1 } = K \hat { \pmb { g } } ^ { t } + L \pmb { u } ^ { t }$ , for $t = 1 , \cdots , T - 1$ . The prediction loss is defined as the difference between the decoded states and the actual states, i.e.,
|
| 139 |
+
|
| 140 |
+
$$
|
| 141 |
+
\mathcal { L } _ { \mathrm { p r e d } } = \frac { 1 } { T } \sum _ { i = 1 } ^ { T } \Vert \psi ( \hat { \pmb g } ^ { i } ) - \pmb x ^ { i } \Vert .
|
| 142 |
+
$$
|
| 143 |
+
|
| 144 |
+
Third, we employ a metric loss to encourage the Koopman embeddings preserving the distance in the original state space. The loss is defined as the absolute error between the distances measured in the Koopman space and that in the original space, i.e.,
|
| 145 |
+
|
| 146 |
+
$$
|
| 147 |
+
{ \mathcal { L } } _ { \mathrm { m e t r i c } } = \sum _ { i j } \left| \left\| { \pmb { g } } ^ { i } - { \pmb { g } } ^ { j } \right\| - \left\| { \pmb { x } } ^ { i } - { \pmb { x } } ^ { j } \right\| \right| .
|
| 148 |
+
$$
|
| 149 |
+
|
| 150 |
+
Having Koopman embeddings that perserves the distance in the state space is important as we are using the distance in the Koopman space to define the cost function for downstream control tasks.
|
| 151 |
+
|
| 152 |
+
The final training loss is simply the combination of all the terms above: $\mathcal { L } = \mathcal { L } _ { \mathrm { a e } } + \lambda _ { 1 } \mathcal { L } _ { \mathrm { p r e d } } + \lambda _ { 2 } \mathcal { L } _ { \mathrm { m e t r i c } }$ . We then minimize the loss $\mathcal { L }$ by optimizing the parameters in the graph encoder $\phi$ and graph decoder $\psi$ using stochastic gradient descent. Once the model is trained, it can be used for system identification, future prediction, and control synthesis.
|
| 153 |
+
|
| 154 |
+
# 3.4 CONTROL
|
| 155 |
+
|
| 156 |
+
For a control task, the goal is to synthesize a sequence of control inputs $\mathbf { \pmb { u } } ^ { 1 : T }$ that minimize $C =$ $\textstyle \sum _ { t = 1 } ^ { T } c _ { t } ( \pmb { x } ^ { t } , \pmb { u } ^ { t } )$ , the total incurred cost, where $c _ { t } ( \pmb { x } ^ { t } , \pmb { u } ^ { t } )$ is the instantaneous cost. For example, considering the control task of reaching a desired state $\mathbf { \nabla } _ { \mathbf { \mathcal { X } } } ^ { * }$ at time $T$ , we can design the following instantaneous cost, $c _ { t } ( \pmb { x } ^ { t } , \pmb { u } ^ { t } ) = \mathbb { 1 } _ { [ t = T ] } \bar { \lVert \pmb { x } ^ { t } - \pmb { x } ^ { * } \rVert _ { 2 } ^ { 2 } + \lambda \lVert \pmb { u } ^ { t } \rVert _ { 2 } ^ { 2 } }$ . The first term promotes the control sequence that matches the state to the goal, while the second term regularizes the control signals.
|
| 157 |
+
|
| 158 |
+
Open-loop control via quadratic programming (QP). Our model maps the original nonlinear dynamics to a linear dynamical system. We can then solve the control task by solving a linear control problem. With the assumption that the Koopman embeddings preserve the distance measure, we define the control cost as $c _ { t } ( { \pmb g } ^ { t } , { \pmb u } ^ { t } ) = \mathbb { 1 } _ { [ t = T ] } \| { \pmb g } ^ { t } - { \pmb g } ^ { * } \| _ { 2 } ^ { 2 } + \lambda \| { \pmb u } ^ { t } \| _ { 2 } ^ { 2 }$ . As a result, we reduce the problem to minimizing a quadratic cost function $\begin{array} { r } { C = \sum _ { t = 1 } ^ { T } c _ { t } ( g ^ { t } , \pmb { u } ^ { t } ) } \end{array}$ over variables $\{ g ^ { t } , \pmb { u } ^ { t } \} _ { t = 1 } ^ { T }$ , where $\pmb { g } ^ { 1 } = \phi ( \pmb { x } ^ { 1 } )$ and ${ \pmb g } ^ { * } = \phi ( { \pmb x } ^ { * } )$
|
| 159 |
+
|
| 160 |
+
Model predictive control (MPC). Solving the QP gives us control signals, which might not be good enough for long-term control as the prediction error accumulates. We can combine it with Model Predictive Control, assuming feedback from the environment every $\tau$ steps.
|
| 161 |
+
|
| 162 |
+
# 4 EXPERIMENTS
|
| 163 |
+
|
| 164 |
+
Environments. We evaluate our method by assessing how well it can simulate and control ropes and soft robots. Specifically, we consider three environments. (1) Rope (Figure 2a): the top mass of a rope is fixed to a specific height. We apply force to the top mass to move it in a horizontal line. The rest of the masses are free to move according to internal force and gravity. (2) Soft (Figure 2b): we aim to control a soft robot that is consist of soft blocks. Blocks in dark grey are rigid and those in light blue are soft blocks. Each one of the dark blue blocks is soft but have an actuator inside that can contract or expand the block. One of the blocks is pinned to the ground, as shown using the red dots. (3) Swim (Figure 2c): instead of pinning the soft robot to the ground, we let the robot swim in fluids. The colors shown in this environment have the same meaning as in Soft.
|
| 165 |
+
|
| 166 |
+

|
| 167 |
+
Figure 2: Qualitative results. Top: our model prediction matches the ground truth over a long period. Bottom: for control, we use red dots or frames to indicate the goal. We apply the control signals generated from our identified model to the original simulator, which allows the agent to achieve the goal accurately. Please refer to our supplementary video for more results.
|
| 168 |
+
|
| 169 |
+
Observation space. In the Rope environment, each mass on the rope is considered as an object. The observation of each mass is its position and velocity in the 2D plane, which has a dimension of 4. In total, a rope with $N$ masses has an observation space of dimension $4 N$ . In both the Soft and the Swim environments, each quadrilateral is considered as an object. For each quadrilateral, we have access to the positions and velocities of the four corners. Thus for a soft robot containing $N$ quadrilaterals, we have a $4 \times 4 \times N = 1 6 N$ dimensional observation.
|
| 170 |
+
|
| 171 |
+
Baselines. We compare our model to the following baselines: Interaction Networks (Battaglia et al., 2016) (IN), Propagation Networks (Li et al., 2019b) (PN) and Koopman method with handcrafted Koopman base functions (KPM). IN and PN are the state-of-the-art learning-based physical simulators, and we evaluate their adaptation ability by finetuning their parameters on a small sequence of observations from the testing environment. Similar to our method, KPM fits a linear dynamics in the Koopman space. Instead of learning Koopman observations from data, KPM uses polynomials of the original states as the basis functions. In our setting, we set the maximum order of the polynomials to be three to make the dimension of the hand-crafted Koopman embeddings match our model’s.
|
| 172 |
+
|
| 173 |
+
Data generation. We generate 10,000 episodes for Rope and 50,000 episodes for Soft and Swim. Among them, $9 0 \%$ are used for training, and the rest for testing. Each episode has 100 time steps. In the dataset, the physical systems have a various number of objects from 5 to 9, i.e. the ropes have 5 to 9 masses while the soft robots in Soft and Swim environments have 5 to 9 quadrilaterals. To evaluate the model’s extrapolating generalization ability, for each environment, we generate an extra dataset with the same size as the test set while containing systems consist of 10 to 14 objects.
|
| 174 |
+
|
| 175 |
+

|
| 176 |
+
Figure 3: Quantitative results on simulation. The $x$ axis shows time steps. The solid lines indicate medians and the transparent regions are the interquartile ranges of simulation errors. Our method significantly outperforms the baselines in all testing environments.
|
| 177 |
+
|
| 178 |
+

|
| 179 |
+
Figure 4: Quantitative results on control and ablation studies on model hyperparameters. Left: box-plots show the distributions of control errors. The yellow line in the box indicates the median. Our model consistently achieves smaller errors in all environments against KPM. Right: our model’s simulation errors with different amount of data for system identification (d) and different dimensions of the Koopman space (e).
|
| 180 |
+
|
| 181 |
+
Training and evaluation protocols. All models are trained using Adam optimizer (Kingma & Ba, 2015) with a learning rate of $1 0 ^ { - 4 }$ and a batch size of 8. $\lambda _ { 1 }$ and $\lambda _ { 2 }$ are 1.0 and 0.3, respectively, for our model. For both our model and the baselines, we apply 400K iterations of gradient steps in the Rope environment and 580K iterations in the Soft and Swim environment. Our model is trained on the sub-sequence of length 64 from the training set, and IN/PN aims at minimizing the L1 distance between their prediction and the ground truth. During test time, the models have to adapt to a new environment of unknown physical parameters, where they have access to a short sequence of observations and the opportunity to adjust their models’ parameters. Our model uses 8 episodes to identify the transition matrix via least-square regression. IN/PN update the model’s parameters by minimizing the distance between the model’s prediction and the actual observation using a gradient step of length $1 0 ^ { - 4 }$ for 5 iterations. For evaluation, we use two metrics: simulation error and control error. For a given episode, the simulation error at time step $t$ is defined as the mean squared error between the model prediction $\hat { \mathbf { x } } ^ { t }$ and the ground truth $\mathbf { \boldsymbol { x } } ^ { t }$ . For control, we pick the initial frame $\mathbf { \boldsymbol { x } } ^ { 0 }$ and the $t ^ { \star }$ th frame $\mathbf { \boldsymbol { x } } ^ { t }$ from a episode. Then we ask the model to generate a control sequence of length $t$ to transfer the system from the initial state $\mathbf { \boldsymbol { x } } ^ { 0 }$ to the target state $\mathbf { \boldsymbol { x } } ^ { t }$ . The control error is defined as the mean squared distance between the target state and the state of the system at time $t$ .
|
| 182 |
+
|
| 183 |
+
# 4.1 SIMULATION
|
| 184 |
+
|
| 185 |
+
Figure 2 shows qualitative results on simulation. Our model accurately predicts system dynamics for more than 100 steps. For Rope, the small prediction error comes from the slight delay of the force propagation inside the rope; hence, the tail of the rope usually has a larger error. For Soft, our model captures the interaction between the body parts and generates accurate prediction over the global movements of the robot. The error mainly comes from the misalignment of some local components.
|
| 186 |
+
|
| 187 |
+
We evaluate the models by predicting 100 steps into the future on 500 trajectories and Figure 3 shows quantitative results. IN and PN do not work well in the Rope and Swim environments due to insufficient system identification ability. The KPM baseline performs poorly in the Rope and
|
| 188 |
+
|
| 189 |
+
Soft environments indicating the limited power of polynomial Koopman base functions. Our model significantly outperforms all the baselines.
|
| 190 |
+
|
| 191 |
+
# 4.2 CONTROL
|
| 192 |
+
|
| 193 |
+
We compare our model with KPM, the Koopman baseline using polynomial basis. In Rope, we ask the models to perform open-loop control where it only solves the QP once at the beginning. The length of the control sequence is 40. When it comes to Soft/Swim, each model is asked to generate control signals of 64 steps, and we allow the model to receive feedback after 32 steps. Thus every model has a second chance to correct its control sequence by solving the QP again at the time step 32.
|
| 194 |
+
|
| 195 |
+
As shown in Figure 2, our model leverages the inertia of the rope and matches the target state accurately. As for controlling a soft body swinging on the ground or swimming in the water, our model can move each part (the boxes) of the body to the exact target position. The small control error comes from the slight misalignment of the orientation and the size of the body parts. Figure 4 shows that quantitatively our model outperforms KPM, too.
|
| 196 |
+
|
| 197 |
+
# 4.3 ABLATION STUDY
|
| 198 |
+
|
| 199 |
+
Structure of the Koopman matrix. We explore three different structures of the Koopman matrix, Block, Diag and None, to understand its effect on the learned dynamics. None assumes no structure in the Koopman matrix. Diag assumes a diagonal block structure of $K$ : all off-diagonal blocks $( K _ { i j }$ where $i \neq j$ ) are zeros and all diagonal blocks share the same values. Block predefines a block-wise structure, decided by the relation between the objects as introduced in Section 3.3.
|
| 200 |
+
|
| 201 |
+
Table 1 includes our model’s simulation error and control error with different Koopman matrix structures in Rope. All models are trained in the Rope environment with 5 to 9 masses. Besides the result on the test set, we also report models’ extrapolation performance in parentheses, where the model is evaluated on systems with more masses than training, i.e., 10 to 14 masses.
|
| 202 |
+
|
| 203 |
+
Table 1: Ablation study results on the Koopman matrix structure (Rope environment). For simulation, we show the Mean Squared Error between the prediction and the ground truth at $T = 1 0 0$ , whereas for control, we show the performance with a horizon of length 40. The numbers in parentheses show the performance on extrapolation.
|
| 204 |
+
|
| 205 |
+
Our model with Block structure consistently achieves a smaller error in all settings. Diag assumes an overly simplified structure, leading to larger errors and failing to make reasonable controls. None has comparable simulation errors but larger control errors. Without the structure in the Koopman matrix, it overfits the data and makes the resulting linear dynamics less amiable to the control.
|
| 206 |
+
|
| 207 |
+
<table><tr><td></td><td>Simulation</td><td>Control</td></tr><tr><td>Diag</td><td>0.133 (0.174)</td><td>2.337 (2.809)</td></tr><tr><td>None</td><td>0.117 (0.083)</td><td>1.522 (1.288)</td></tr><tr><td>Block</td><td>0.105 (0.075)</td><td>0.854 (1.101)</td></tr></table>
|
| 208 |
+
|
| 209 |
+
Hyperparameters. In our main experiments, we set the dimension of the Koopman embedding to $m = 3 2$ per object. Online system identification requires 800 data samples for each training/test case. To understand our model’s performance under different hyperparameters, we vary the dimension of the Koopman embedding from 8 to 64 and the number of data samples used for system identification from 200 to 1,600. Figure 4d shows that more data for system identification leads to better simulation results. Figure 4e shows that dimension 16 gives the best results on simulation. It may suggest that the intrinsic dimension of the Koopman invariant space of the Rope system is around 16 per object.
|
| 210 |
+
|
| 211 |
+
# 5 CONCLUSION
|
| 212 |
+
|
| 213 |
+
Compositionality is common in our daily life. Many ordinary objects contain repetitive subcomponents: ropes and soft robots, as shown in this paper, granular materials such as coffee beans and lego blocks, and deformable objects such as cloth and modeling clay. These objects are known to be very challenging for manipulation using traditional methods, while our formulation opens up a new direction by combining deep Koopman operators with graph neural networks. By leveraging the compositional structure in the Koopman operator via graph neural nets, our model can efficiently manipulate deformable objects such as ropes and soft robots, and generalize to systems with variable numbers of components. We hope this work could encourage more endeavors in modeling larger and more complex systems by integrating the power of the Koopman theory and the expressiveness of neural networks.
|
| 214 |
+
|
| 215 |
+
# REFERENCES
|
| 216 |
+
|
| 217 |
+
Ian Abraham, Gerardo De La Torre, and Todd D Murphey. Model-based control using koopman operators. In RSS, 2017.
|
| 218 |
+
|
| 219 |
+
Hassan Arbabi and Igor Mezic. Ergodic theory, dynamic mode decomposition, and computation of spectral properties of the koopman operator. SIAM Journal on Applied Dynamical Systems, 16(4): 2096–2126, 2017.
|
| 220 |
+
|
| 221 |
+
Hassan Arbabi, Milan Korda, and Igor Mezic. A data-driven koopman model predictive control framework for nonlinear flows. In CDC, 2018.
|
| 222 |
+
|
| 223 |
+
Peter W. Battaglia, Razvan Pascanu, Matthew Lai, Danilo Rezende, and Koray Kavukcuoglu. Interaction networks for learning about objects, relations and physics. In NeurIPS, 2016.
|
| 224 |
+
|
| 225 |
+
Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv:1806.01261, 2018.
|
| 226 |
+
|
| 227 |
+
Daniel Bruder, Brent Gillespie, C David Remy, and Ram Vasudevan. Modeling and control of soft robots using the koopman operator and model predictive control. In RSS, 2019a.
|
| 228 |
+
|
| 229 |
+
Daniel Bruder, C David Remy, and Ram Vasudevan. Nonlinear system identification of soft robot dynamics using koopman operator theory. In ICRA, 2019b.
|
| 230 |
+
|
| 231 |
+
Steven L Brunton, Bingni W Brunton, Joshua L Proctor, and J Nathan Kutz. Koopman invariant subspaces and finite linear representations of nonlinear dynamical systems for control. PloS one, 11(2):e0150171, 2016.
|
| 232 |
+
|
| 233 |
+
Michael B Chang, Tomer Ullman, Antonio Torralba, and Joshua B Tenenbaum. A compositional object-based approach to learning physical dynamics. In ICLR, 2017.
|
| 234 |
+
|
| 235 |
+
Herve Delingette. Toward realistic soft-tissue modeling in medical simulation. Proceedings of the IEEE, 86(3):512–523, 1998.
|
| 236 |
+
|
| 237 |
+
Danijar Hafner, Timothy Lillicrap, Ian Fischer, Ruben Villegas, David Ha, Honglak Lee, and James Davidson. Learning latent dynamics for planning from pixels. In ICML, 2019.
|
| 238 |
+
|
| 239 |
+
Jessica B Hamrick, Andrew J Ballard, Razvan Pascanu, Oriol Vinyals, Nicolas Heess, and Peter W Battaglia. Metacontrol for adaptive imagination-based optimization. In ICLR, 2017.
|
| 240 |
+
|
| 241 |
+
Michael Janner, Sergey Levine, William T Freeman, Joshua B Tenenbaum, Chelsea Finn, and Jiajun Wu. Reasoning about physical interactions with object-oriented prediction and planning. In ICLR, 2019.
|
| 242 |
+
|
| 243 |
+
Eurika Kaiser, J Nathan Kutz, and Steven L Brunton. Data-driven discovery of koopman eigenfunctions for control. arXiv:1707.01146, 2017.
|
| 244 |
+
|
| 245 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
|
| 246 |
+
|
| 247 |
+
Bernard O Koopman. Hamiltonian systems and transformation in hilbert space. PNAS, 17(5):315, 1931.
|
| 248 |
+
|
| 249 |
+
BO Koopman and J v Neumann. Dynamical systems of continuous spectra. PNAS, 18(3):255, 1932.
|
| 250 |
+
|
| 251 |
+
Milan Korda and Igor Mezic. Linear predictors for nonlinear dynamical systems: Koopman operator ´ meets model predictive control. Automatica, 93:149–160, 2018.
|
| 252 |
+
|
| 253 |
+
Yunzhu Li, Jiajun Wu, Russ Tedrake, Joshua B Tenenbaum, and Antonio Torralba. Learning particle dynamics for manipulating rigid bodies, deformable objects, and fluids. In ICLR, 2019a.
|
| 254 |
+
|
| 255 |
+
Yunzhu Li, Jiajun Wu, Jun-Yan Zhu, Joshua B Tenenbaum, Antonio Torralba, and Russ Tedrake. Propagation networks for model-based control under partial observation. In ICRA, 2019b.
|
| 256 |
+
|
| 257 |
+
Bethany Lusch, J Nathan Kutz, and Steven L Brunton. Deep learning for universal linear embeddings of nonlinear dynamics. Nature Communications, 9(1):4950, 2018.
|
| 258 |
+
|
| 259 |
+
Giorgos Mamakoukas, Maria Castano, Xiaobo Tan, and Todd Murphey. Local koopman operators for data-driven control of robotic systems. In RSS, 2019.
|
| 260 |
+
|
| 261 |
+
Alexandre Mauroy and Jorge Goncalves. Linear identification of nonlinear systems: A lifting technique based on the koopman operator. In CDC, 2016.
|
| 262 |
+
|
| 263 |
+
Alexandre Mauroy and Jorge Goncalves. Koopman-based lifting techniques for nonlinear systems identification. IEEE Transactions on Automatic Control, 2019.
|
| 264 |
+
|
| 265 |
+
David Mayne. Nonlinear model predictive control: Challenges and opportunities. In Nonlinear Model Predictive Control, pp. 23–44. Springer, 2000.
|
| 266 |
+
|
| 267 |
+
Jeremy Morton, Freddie D Witherden, Antony Jameson, and Mykel J Kochenderfer. Deep dynamical modeling and control of unsteady fluid flows. In NeurIPS, 2018.
|
| 268 |
+
|
| 269 |
+
Jeremy Morton, Freddie D Witherden, and Mykel J Kochenderfer. Deep variational koopman models: Inferring koopman observations for uncertainty-aware dynamics modeling and control. In IJCAI, 2019.
|
| 270 |
+
|
| 271 |
+
Damian Mrowca, Chengxu Zhuang, Elias Wang, Nick Haber, Li Fei-Fei, Joshua B Tenenbaum, and Daniel LK Yamins. Flexible neural representation for physics prediction. In NeurIPS, 2018.
|
| 272 |
+
|
| 273 |
+
Anusha Nagabandi, Ignasi Clavera, Simin Liu, Ronald S Fearing, Pieter Abbeel, Sergey Levine, and Chelsea Finn. Learning to adapt in dynamic, real-world environments through meta-reinforcement learning. In ICLR, 2019a.
|
| 274 |
+
|
| 275 |
+
Anusha Nagabandi, Chelsea Finn, and Sergey Levine. Deep online learning via meta-learning: Continual adaptation for model-based rl. In ICLR, 2019b.
|
| 276 |
+
|
| 277 |
+
Razvan Pascanu, Yujia Li, Oriol Vinyals, Nicolas Heess, Lars Buesing, Sebastien Racaniere, David \` Reichert, Theophane Weber, Daan Wierstra, and Peter Battaglia. Learning model-based planning ´ from scratch. arXiv:1707.06170, 2017.
|
| 278 |
+
|
| 279 |
+
Joshua L Proctor, Steven L Brunton, and J Nathan Kutz. Generalizing koopman theory to allow for inputs and control. SIAM Journal on Applied Dynamical Systems, 17(1):909–930, 2018.
|
| 280 |
+
|
| 281 |
+
Sebastien Racani ´ ere, Th \` eophane Weber, David Reichert, Lars Buesing, Arthur Guez, Danilo Jimenez ´ Rezende, Adria Puigdom \` enech Badia, Oriol Vinyals, Nicolas Heess, Yujia Li, Razvan Pascanu, \` Peter Battaglia, David Silver, and Daan Wierstra. Imagination-augmented agents for deep reinforcement learning. In NeurIPS, 2017.
|
| 282 |
+
|
| 283 |
+
Clarence W Rowley, Igor Mezic, Shervin Bagheri, Philipp Schlatter, and Dan S Henningson. Spectral ´ analysis of nonlinear flows. Journal of Fluid Mechanics, 641:115–127, 2009.
|
| 284 |
+
|
| 285 |
+
Alvaro Sanchez-Gonzalez, Nicolas Heess, Jost Tobias Springenberg, Josh Merel, Martin Riedmiller, Raia Hadsell, and Peter Battaglia. Graph networks as learnable physics engines for inference and control. In ICML, 2018.
|
| 286 |
+
|
| 287 |
+
Peter J Schmid. Dynamic mode decomposition of numerical and experimental data. Journal of Fluid Mechanics, 656:5–28, 2010.
|
| 288 |
+
|
| 289 |
+
Jasper Snoek, Hugo Larochelle, and Ryan P Adams. Practical bayesian optimization of machine learning algorithms. In NeurIPS, 2012.
|
| 290 |
+
|
| 291 |
+
Naoya Takeishi, Yoshinobu Kawahara, and Takehisa Yairi. Learning koopman invariant subspaces for dynamic mode decomposition. In NeurIPS, 2017.
|
| 292 |
+
|
| 293 |
+
Jonathan H Tu, Clarence W Rowley, Dirk M Luchtenburg, Steven L Brunton, and J Nathan Kutz. On dynamic mode decomposition: Theory and applications. Journal of Computational Dynamics, 1 (2):391–421, 2014.
|
| 294 |
+
|
| 295 |
+
Matthew O Williams, Ioannis G Kevrekidis, and Clarence W Rowley. A data–driven approximation of the koopman operator: Extending dynamic mode decomposition. Journal of Nonlinear Science, 25(6):1307–1346, 2015.
|
| 296 |
+
|
| 297 |
+
Matthew O Williams, Maziar S Hemati, Scott TM Dawson, Ioannis G Kevrekidis, and Clarence W Rowley. Extending data-driven koopman analysis to actuated systems. IFAC-PapersOnLine, 49 (18):704–709, 2016.
|
| 298 |
+
|
| 299 |
+
# A ENVIRONMENT AND MODEL DETAILS
|
| 300 |
+
|
| 301 |
+
Interaction types. In our experiments, interactions are considered different if the types are different or the objects involved have different physical properties.
|
| 302 |
+
|
| 303 |
+
In the Rope environment, the top mass has a fixed height and is considered differently from the other masses. Thus, we have 2 types of self-interactions for the top mass and the non-top masses. In addition, we have 8 types of interactions between different objects. The objects on a relation could be either top mass or non-top mass. It is a combination of 4. And the interaction may happen between two nearby masses or masses that are two-hop away. In total, the number of interactions between different objects is $4 \times 2 = 8$ .
|
| 304 |
+
|
| 305 |
+
In the Soft environments, there are four types of quadrilaterals: rigid, soft, actuated, and fixed. We have four types of self-interactions correspondingly. For the interactions between objects, we add edges between two quadrilaterals only if they are connected by a point or edge. Connection from different directions are considered as different relations. There are 8 different directions, up, down, left, right, up-left, down-left, up-right, down-right. The relation types also encode the type of receiver object. Thus, in total, there are $( 8 + 1 ) \times 4 = 3 6$ types of relations between different objects.
|
| 306 |
+
|
| 307 |
+
In the Swim environment, there are three types of quadrilaterals: rigid, soft, and actuated. Similar to the Soft environment, we use different edge types for different connecting directions; hence, the number of edge type is $( 8 + 1 ) \times 3 = 2 7$ .
|
| 308 |
+
|
| 309 |
+
# B ADDITIONAL EXPERIMENTS
|
| 310 |
+
|
| 311 |
+
Comparison with a classical physical simulator optimized using back-box optimization. We have performed comparisons with a classical physical simulator optimized using black-box optimization (Delingette, 1998) by assuming different levels of knowledge over the ground truth model.
|
| 312 |
+
|
| 313 |
+
If we assume that we know the ground truth model, where we only need to identify relevant physical parameters during the system identification stage, Bayesian Optimization (Snoek et al., 2012) (BO) can give us a reasonable estimate of the physical parameters. However, BO requires much more time to achieve a comparable performance with our method in the Rope environment: 0.43 vs. 180 seconds averaged over 100 trails (Ours vs. BO).
|
| 314 |
+
|
| 315 |
+
If we are unsure about the ground truth model and we approximate the system using a set of points linked by springs and dampers, BO does not work as well. In our additional experiments, we approximate the Rope environment using a chained spring-mass system, say $n$ masses and $n - 1$ springs. While taking much more time, BO still cannot give us a satisfying result: simulation error 0.046 vs. 0.084 and control error 0.854 vs. 2.547 (Ours vs. BO).
|
| 316 |
+
|
| 317 |
+
Ablation study on the effectiveness of the metric loss. The internal linear structure allows us to solve the control problem using quadratic programming, where the objective function for control is defined in the embedding space (Section 3.4); hence, it is desirable to have Koopman embeddings that preserve the distance in the original state space. In Section 3.3, we introduce a metric loss to promote learning a Koopman embedding that keeps the distance measurement.
|
| 318 |
+
|
| 319 |
+
To demonstrate the effect of the metric loss, we compare the models trained with and without the metric loss. We establish the comparison using two measurements, the distance preservation and the prediction accuracy. To evaluate how well the Koopman embeddings preserve the distance, we compute the distribution of the log-ratio of the distance in the Koopman space and in the original state space, i.e., $\log \left( { \frac { \| { \pmb { g } } ^ { i } - { \pmb { g } } ^ { j } \| _ { 2 } } { \| { \pmb { x } } ^ { i } - { \pmb { x } } ^ { j } \| _ { 2 } } } \right)$ . For the model prediction accuracy, we show the simulation errors.
|
| 320 |
+
|
| 321 |
+
We perform the experiments in the Rope environment and show the result in Figure 5. On the left, we show the ratio of distance in the learned Koopman space and the distance in the original state space. The model trained with metric loss has a log distance ratio that significantly more concentrates on 0. It means the metric loss effectively regularizes the model to preserve the distance. On the right, we show the simulation errors of the two models, which indicate that two models have comparable prediction performance. Metric loss effectively enhances the property of distance-preserving while not making a big sacrifice on the accuracy of the dynamics modeling.
|
| 322 |
+
|
| 323 |
+

|
| 324 |
+
Figure 5: Ablation study on the metric loss in the Rope environment. (a) shows the distributions of the logarithm distance ratio, i.e, $\log \left( { \frac { \| { \pmb { g } } ^ { i } - { \pmb { g } } ^ { j } \| _ { 2 } } { \| { \pmb { x } } ^ { i } - { \pmb { x } } ^ { j } \| _ { 2 } } } \right)$ The model trained with metric loss has a distance ratio much more concentrated to 1, which indicates it preserves the distance much better than the counterpart. (b) illustrates the simulation error of two models, where their performance is on par. (c) shows that the model trained using the metric loss performs better control.
|
| 325 |
+
|
| 326 |
+

|
| 327 |
+
Figure 6: Modeling rope with known physical parameters. We show the comparison between our model and IN/PN in scenarios where we have access to the ground truth physical parameters. In this case, IN and PN slightly outperform our method due to the internal linear structure in our model. However, in the real world, we do not always know the physical parameters and their values, which makes our method preferable when adapting to new environments.
|
| 328 |
+
|
| 329 |
+
Experiments in a known physical parameter setting. Our setting is different from the settings in the original IN and PN papers that we do not assume we know the physical parameters and their values, such as stiffness, mass, and gravity. Instead, the parameters are embedded in the transition matrices during the system identification stage (Section 3.3). If the model has access to the underlying physical parameters, as expected, IN and PN slightly outperform our method as the internal linear structure limits our model’s expressiveness, as shown in Figure 6. In the real world, however, the underlying physical parameters are not always known, which makes our model a better choice when adapting to unseen environments.
|
parse/train/H1ldzA4tPr/H1ldzA4tPr_content_list.json
ADDED
|
@@ -0,0 +1,1751 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "LEARNING COMPOSITIONAL KOOPMAN OPERATORSFOR MODEL-BASED CONTROL",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
803,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Yunzhu Li∗ Hao He∗ MIT CSAIL MIT CSAIL ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
170,
|
| 20 |
+
387,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Jiajun Wu MIT CSAIL ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
424,
|
| 30 |
+
170,
|
| 31 |
+
508,
|
| 32 |
+
198
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Dina Katabi MIT CSAIL ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
542,
|
| 41 |
+
171,
|
| 42 |
+
632,
|
| 43 |
+
198
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Antonio Torralba MIT CSAIL ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
668,
|
| 52 |
+
171,
|
| 53 |
+
794,
|
| 54 |
+
198
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "ABSTRACT ",
|
| 61 |
+
"text_level": 1,
|
| 62 |
+
"bbox": [
|
| 63 |
+
454,
|
| 64 |
+
236,
|
| 65 |
+
544,
|
| 66 |
+
251
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "Finding an embedding space for a linear approximation of a nonlinear dynamical system enables efficient system identification and control synthesis. The Koopman operator theory lays the foundation for identifying the nonlinear-to-linear coordinate transformations with data-driven methods. Recently, researchers have proposed to use deep neural networks as a more expressive class of basis functions for calculating the Koopman operators. These approaches, however, assume a fixed dimensional state space; they are therefore not applicable to scenarios with a variable number of objects. In this paper, we propose to learn compositional Koopman operators, using graph neural networks to encode the state into objectcentric embeddings and using a block-wise linear transition matrix to regularize the shared structure across objects. The learned dynamics can quickly adapt to new environments of unknown physical parameters and produce control signals to achieve a specified goal. Our experiments on manipulating ropes and controlling soft robots show that the proposed method has better efficiency and generalization ability than existing baselines. ",
|
| 73 |
+
"bbox": [
|
| 74 |
+
233,
|
| 75 |
+
267,
|
| 76 |
+
766,
|
| 77 |
+
474
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "1 INTRODUCTION ",
|
| 84 |
+
"text_level": 1,
|
| 85 |
+
"bbox": [
|
| 86 |
+
176,
|
| 87 |
+
496,
|
| 88 |
+
336,
|
| 89 |
+
512
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Simulating and controlling complex dynamical systems, such as ropes or soft robots, relies on two key features of the dynamics model: first, it needs to be efficient for system identification and motor control; second, it needs to be generalizable to a complex, constantly evolving environments. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
176,
|
| 98 |
+
523,
|
| 99 |
+
823,
|
| 100 |
+
565
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "In practice, computational models for complex, nonlinear dynamical systems are often not efficient enough for real-time control (Mayne, 2000). The Koopman operator theory suggests that identifying nonlinear-to-linear coordinate transformations allows efficient linear approximation of nonlinear systems (Williams et al., 2015; Mauroy & Goncalves, 2016). Fast as they are, however, existing papers on Koopman operators focus on a single dynamical system, making it hard to generalize to cases where there are a variable number of components. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
573,
|
| 110 |
+
825,
|
| 111 |
+
656
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "In contrast, recent advances in approximating dynamics models with deep nets have demonstrated its power in characterizing complex, generic environments. In particular, a few recent papers have explored the use of graph nets in dynamics modeling, taking into account the state of each object as well as their interactions. This allows their models to generalize to scenarios with a variable number of objects (Battaglia et al., 2016; Chang et al., 2017). Despite their strong generalization power, they are not as efficient in system identification and control, because deep nets are heavily over-parameterized, making optimization time-consuming and sample-inefficient. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
662,
|
| 121 |
+
825,
|
| 122 |
+
761
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "In this paper, we propose compositional Koopman operators, integrating Koopman operators with graph networks for generalizable and efficient dynamics modeling. We build on the idea of encoding states into object-centric embeddings with graph neural networks, which ensures generalization power. But instead of using over-parameterized neural nets to model state transition, we identify the Koopman matrix and control matrix from data as a linear approximation of the nonlinear dynamical system. The linear approximation allows efficient system identification and control synthesis. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
767,
|
| 132 |
+
825,
|
| 133 |
+
852
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "The main challenge of extending Koopman theory to multi-object systems is scalability. The number of parameters in the Koopman matrix scales quadratically with the number of objects, which harms the learning efficiency and leads to overfitting. To tackle this issue, we exploit the structure of the underlying system and use the same block-wise Koopman sub-matrix for object pairs of the same relation. This significantly reduces the number of parameters that need to be identified by making it independent of the size of the system. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
176,
|
| 142 |
+
858,
|
| 143 |
+
823,
|
| 144 |
+
901
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 0
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "image",
|
| 150 |
+
"img_path": "images/324bececc168c0745244997b7ffa1ced5381091c5ea6bfc968579a1b4ad86135.jpg",
|
| 151 |
+
"image_caption": [
|
| 152 |
+
"Figure 1: Overview of our model. A graph neural network $\\phi$ takes in the current state of the physical system $\\mathbf { \\boldsymbol { x } } ^ { t }$ , and generates object-centric representations in the Koopman space $g ^ { t }$ . We then use the block-wise Koopman matrix $K$ and control matrix $L$ identified from equation 6 or equation 8 to predict the Koopman embeddings in the next time step $\\mathbf g ^ { t + 1 }$ . Note that in $K$ and $L$ , object pairs of the same relation share the same sub-matrix. Another graph neural network $\\psi$ maps $\\mathbf g ^ { t + 1 }$ back to the original state space, i.e., $\\boldsymbol { x } ^ { t + 1 }$ . The mapping between $g ^ { \\hat { t } }$ and $\\mathbf g ^ { t + 1 }$ is linear and is shared across all time steps, where we can iteratively apply $K$ and $L$ to the Koopman embeddings and roll multiple steps into the future. The formulation enables efficient system identification and control synthesis. "
|
| 153 |
+
],
|
| 154 |
+
"image_footnote": [],
|
| 155 |
+
"bbox": [
|
| 156 |
+
173,
|
| 157 |
+
93,
|
| 158 |
+
826,
|
| 159 |
+
202
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "",
|
| 166 |
+
"bbox": [
|
| 167 |
+
174,
|
| 168 |
+
344,
|
| 169 |
+
825,
|
| 170 |
+
387
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "Our experiments include simulating and controlling ropes of variable lengths and soft robots of different shapes. The compositional Koopman operators are significantly more accurate than the state-of-the-art learned physics engines (Battaglia et al., 2016; Li et al., 2019b), and faster when adapting to new environments of unknown physical parameters. Our method also outperforms vanilla deep Koopman methods (Lusch et al., 2018; Morton et al., 2018) and Koopman models with manually-designed basis functions, which shows the advantages of using a structured Koopman matrix and graph neural networks. Please see our project page for demonstrating videos. ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
174,
|
| 179 |
+
393,
|
| 180 |
+
825,
|
| 181 |
+
492
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "2 RELATED WORK ",
|
| 188 |
+
"text_level": 1,
|
| 189 |
+
"bbox": [
|
| 190 |
+
176,
|
| 191 |
+
506,
|
| 192 |
+
344,
|
| 193 |
+
522
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 1
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "Koopman operators. The Koopman operator formalism of dynamical systems is rooted in the seminal works of Koopman and Von Neumann in the early 1930s (Koopman, 1931; Koopman & Neumann, 1932). The core idea is to map the state of a nonlinear dynamical system to an embedding space, over which we can linearly propagate into the future. Researchers have proposed various algorithms to explore the Koopman spectral properties from data. A large portion of them are in the class of dynamic mode decomposition (DMD) (Rowley et al., 2009; Schmid, 2010; Tu et al., 2014; Williams et al., 2015; Arbabi & Mezic, 2017). The linear representation will enable efficient prediction, estimation, and control using tools from linear dynamical systems (Williams et al., 2016; Proctor et al., 2018; Mauroy & Goncalves, 2019; Korda & Mezic´, 2018). People have been using hand-designed Koopman observables for various modeling and control tasks (Brunton et al., 2016; Kaiser et al., 2017; Abraham et al., 2017; Bruder et al., 2019b; Arbabi et al., 2018). Some recent works have applied the method to the real world and successfully control soft robots with great precision (Bruder et al., 2019a; Mamakoukas et al., 2019). ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
173,
|
| 202 |
+
530,
|
| 203 |
+
826,
|
| 204 |
+
710
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 1
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "However, hand-crafted basis functions sometimes fail to generalize to more complex environments. Learning these functions from data using neural nets turns out to generate a more expressive invariant subspace (Lusch et al., 2018; Takeishi et al., 2017) and has achieved successes in fluid control (Morton et al., 2018). Morton et al. (2019) has also extended the framework to account for uncertainty in the system by inferring a distribution over observations. Our model differs by explicitly modeling the compositionality of the underlying system with graph networks. It generalizes better to environments of a variable number of objects or soft robots of different shapes. ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
173,
|
| 213 |
+
717,
|
| 214 |
+
825,
|
| 215 |
+
814
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 1
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "Learning-based physical simulators. Battaglia et al. (2016) and Chang et al. (2017) first explored learning a simulator from data by approximating object interactions with neural networks. These models are no longer bounded to hard-coded physical rules, and can adapt to scenarios where the underlying physics is unknown. Please refer to Battaglia et al. (2018) for a full review. Recently, Mrowca et al. (2018) and Li et al. (2019a) extended these models to approximate particle dynamics of deformable shapes and fluids. Flexible as they are, these models become less efficient during model adaptation in complex scenarios, because the optimization of neural networks usually needs a lot of samples and compute, which limits its use in an online setting. Nagabandi et al. (2019a;b) proposed to use meta-learning for online adaptation, and have shown to be effective in simulated robots and a real legged millirobot. However, it is not clear whether their methods can generalize to systems with variable numbers of instances. The use of graph nets and Koopman operators in our model allows better generalization ability and enables efficient system identification as we only need to identify the transition matrices, which is essentially a least-square problem and can be solved very efficiently. ",
|
| 222 |
+
"bbox": [
|
| 223 |
+
174,
|
| 224 |
+
827,
|
| 225 |
+
825,
|
| 226 |
+
924
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 1
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "",
|
| 233 |
+
"bbox": [
|
| 234 |
+
174,
|
| 235 |
+
103,
|
| 236 |
+
825,
|
| 237 |
+
188
|
| 238 |
+
],
|
| 239 |
+
"page_idx": 2
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"type": "text",
|
| 243 |
+
"text": "People have also used the learned physics engines for planning and control. Many previous papers in this direction learn a latent dynamics model together with a policy in a model-based reinforcement learning setup (Racaniere et al. \\` , 2017; Hamrick et al., 2017; Pascanu et al., 2017; Hafner et al., 2019); a few alternatives use the learned model in model-predictive control (MPC) (Sanchez-Gonzalez et al., 2018; Li et al., 2019b; Janner et al., 2019). In this paper, we leverage the fact that the embeddings in the Koopman space are propagating linearly through time, which allows us to formulate the control problem as quadratic programming and optimize the control signals much more efficiently. ",
|
| 244 |
+
"bbox": [
|
| 245 |
+
173,
|
| 246 |
+
194,
|
| 247 |
+
826,
|
| 248 |
+
292
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 2
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "3 APPROACH",
|
| 255 |
+
"text_level": 1,
|
| 256 |
+
"bbox": [
|
| 257 |
+
174,
|
| 258 |
+
308,
|
| 259 |
+
299,
|
| 260 |
+
324
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 2
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "text",
|
| 266 |
+
"text": "We first present the basics of Koopman operators: for a nonlinear dynamical system, the Koopman observation functions can map the state space to an embedding space where the dynamics become linear. We then discuss the compositional nature of physical systems and show how graph networks can be used to capture the compositionality. ",
|
| 267 |
+
"bbox": [
|
| 268 |
+
174,
|
| 269 |
+
338,
|
| 270 |
+
825,
|
| 271 |
+
393
|
| 272 |
+
],
|
| 273 |
+
"page_idx": 2
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"type": "text",
|
| 277 |
+
"text": "3.1 THE KOOPMAN OPERATORS",
|
| 278 |
+
"text_level": 1,
|
| 279 |
+
"bbox": [
|
| 280 |
+
176,
|
| 281 |
+
405,
|
| 282 |
+
410,
|
| 283 |
+
419
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 2
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "text",
|
| 289 |
+
"text": "Let $\\pmb { x } ^ { t } \\in \\mathcal { X } \\subset \\mathbb { R } ^ { n }$ be the state vector for the system at time step $t$ . We consider a non-linear discrete-time dynamical system described by ${ \\pmb x } ^ { t + 1 } = F ( { \\pmb x } ^ { t } )$ . The Koopman operator (Koopman, 1931), denoted as $\\mathcal { K } : \\mathcal { F } \\mathcal { F }$ , is a linear transformation defined by $\\kappa g \\triangleq g \\circ F$ , where $\\mathcal { F }$ is the collection of all functions (also referred to as observables) that form an infinite-dimensional Hilbert space. For every function $g : \\mathcal { X } \\mathbb { R }$ belonging to $\\mathcal { F }$ , we have ",
|
| 290 |
+
"bbox": [
|
| 291 |
+
173,
|
| 292 |
+
429,
|
| 293 |
+
825,
|
| 294 |
+
502
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 2
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "equation",
|
| 300 |
+
"img_path": "images/3a8e76fc026fbc8a9628fba449ad693c778802b04c87f1240707bc33f04c3fa4.jpg",
|
| 301 |
+
"text": "$$\n( \\mathcal { K } g ) ( \\pmb { x } ^ { t } ) = g ( F ( \\pmb { x } ^ { t } ) ) = g ( \\pmb { x } ^ { t + 1 } ) ,\n$$",
|
| 302 |
+
"text_format": "latex",
|
| 303 |
+
"bbox": [
|
| 304 |
+
382,
|
| 305 |
+
511,
|
| 306 |
+
614,
|
| 307 |
+
529
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 2
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "text",
|
| 313 |
+
"text": "making the function space $\\mathcal { F }$ invariant under the action of the Koopman operator. ",
|
| 314 |
+
"bbox": [
|
| 315 |
+
173,
|
| 316 |
+
537,
|
| 317 |
+
704,
|
| 318 |
+
553
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 2
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "Although the theory guarantees the existence of the Koopman operator, its use in practice is limited by its infinite dimensionality. Most often, we assume there is an invariant subspace $\\mathcal { G }$ of the Koopman operator. It spans by a set of base observation functions $\\{ g _ { 1 } , \\cdots , g _ { m } \\}$ and satisfies that $\\kappa g \\in \\mathcal G$ for any $g \\in { \\mathcal { G } }$ . With a slightly abuse of the notation, we now use $\\bar { g } ( \\pmb { x } ^ { \\hat { t } } ) : \\mathbb { R } ^ { n } \\mathbb { R } ^ { m }$ to represent $[ g _ { 1 } ( { \\pmb x } ^ { t } ) , \\cdot \\cdot \\cdot , g _ { m } ( { \\pmb x } ^ { t } ) ] ^ { T }$ . By constraining the Koopman operator on this invariant subspace, we get a finite-dimensional linear operator $K \\in \\mathbb { R } ^ { m \\times m }$ that we refer as the Koopman matrix. ",
|
| 325 |
+
"bbox": [
|
| 326 |
+
174,
|
| 327 |
+
559,
|
| 328 |
+
825,
|
| 329 |
+
643
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 2
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "Traditionally, people hand-craft base observation functions from the knowledge of underlying physics. The system identification problem is then reduced to finding the Koopman matrix $K$ , which can be solved by linear regression given historical data of the system. Recently, researchers have also explored data-driven methods that automatically find the Koopman invariant subspace via representing the base observation functions $g ( { \\pmb x } )$ via deep neural networks. ",
|
| 336 |
+
"bbox": [
|
| 337 |
+
173,
|
| 338 |
+
650,
|
| 339 |
+
825,
|
| 340 |
+
720
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 2
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "Although the original Koopman theory does not consider the system with external control inputs, researchers have found that linearly injecting control signals to the Koopman observation space can give us good numerical performance (Brunton et al., 2016; Bruder et al., 2019a). Mathematically, considering a dynamical system, $\\pmb { x } ^ { t + 1 } = F ( \\pmb { x } ^ { t } , \\pmb { u } ^ { t } )$ , with an external control input ${ \\mathbf { } } _ { { \\mathbf { } } { \\mathbf { } } } { \\mathbf { } } _ { { \\mathbf { } } } t$ , we aim to find the Koopman observation functions and the linear dynamics model in the form of ",
|
| 347 |
+
"bbox": [
|
| 348 |
+
174,
|
| 349 |
+
727,
|
| 350 |
+
825,
|
| 351 |
+
797
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 2
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "equation",
|
| 357 |
+
"img_path": "images/aeca0dca83c29a28d6c02256bc3be82f02c63e9cef0928ecc2b69454c458b877.jpg",
|
| 358 |
+
"text": "$$\ng ( \\pmb { x } ^ { t + 1 } ) = K g ( \\pmb { x } ^ { t } ) + L \\pmb { u } ^ { t } ,\n$$",
|
| 359 |
+
"text_format": "latex",
|
| 360 |
+
"bbox": [
|
| 361 |
+
406,
|
| 362 |
+
805,
|
| 363 |
+
589,
|
| 364 |
+
824
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 2
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "where the coefficient matrix $L$ is referred to as the control matrix. ",
|
| 371 |
+
"bbox": [
|
| 372 |
+
173,
|
| 373 |
+
833,
|
| 374 |
+
604,
|
| 375 |
+
848
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 2
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "text",
|
| 381 |
+
"text": "3.2 COMPOSITIONAL KOOPMAN OPERATORS",
|
| 382 |
+
"text_level": 1,
|
| 383 |
+
"bbox": [
|
| 384 |
+
174,
|
| 385 |
+
858,
|
| 386 |
+
500,
|
| 387 |
+
873
|
| 388 |
+
],
|
| 389 |
+
"page_idx": 2
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"type": "text",
|
| 393 |
+
"text": "The dynamics of a physical system are governed by physical rules, which are usually shared across different subcomponents in the system. Explicitly modeling such compositionality enables more efficient system identification and control synthesis and provides better generalization ability. ",
|
| 394 |
+
"bbox": [
|
| 395 |
+
174,
|
| 396 |
+
882,
|
| 397 |
+
825,
|
| 398 |
+
925
|
| 399 |
+
],
|
| 400 |
+
"page_idx": 2
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"type": "text",
|
| 404 |
+
"text": "Motivating example. Consider a system with $N$ balls moving in a 2D plane, each pair connected by a linear spring. Assume all balls have mass 1 and all springs share the same stiffness coefficient $k$ . We denote the $i$ ’s ball’s position as $( x _ { i } , y _ { i } )$ and its velocity as $( { \\dot { x } } _ { i } , { \\dot { y } } _ { i } )$ . For ball $i$ , equation 3 describes its dynamics, where $\\mathbf { \\Phi } _ { \\pmb { x } _ { i } } \\triangleq [ x _ { i } , y _ { i } , \\dot { x } _ { i } , \\dot { y } _ { i } ] ^ { T }$ denotes ball $i$ ’s state: ",
|
| 405 |
+
"bbox": [
|
| 406 |
+
173,
|
| 407 |
+
102,
|
| 408 |
+
826,
|
| 409 |
+
162
|
| 410 |
+
],
|
| 411 |
+
"page_idx": 3
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"type": "equation",
|
| 415 |
+
"img_path": "images/ba598beba883d6e68bbcc5d18dae1e2c55afbff48b50f3cbf2ee7257a942ce60.jpg",
|
| 416 |
+
"text": "$$\n\\begin{array}{c} \\dot { v } _ { i } = \\left[ \\begin{array} { c } { \\dot { x } _ { i } } \\\\ { \\dot { y } _ { i } } \\\\ { \\dot { x } _ { i } } \\\\ { \\dot { y } _ { i } } \\end{array} \\right] = \\left[ \\begin{array} { c c c c c } { \\dot { x } _ { i } } & { 0 } & { 1 } & { 0 } \\\\ { \\dot { y } _ { i } } & { 0 } & { 0 } & { 1 } \\\\ { \\sum _ { j = 1 } ^ { N } k ( x _ { j } - x _ { i } ) } \\\\ { \\sum _ { j = 1 } ^ { N } k ( y _ { j } - y _ { i } ) } \\end{array} \\right] = \\underbrace { \\left[ \\begin{array} { c c c c c } { 0 } & { 0 } & { 1 } & { 0 } \\\\ { 0 } & { 0 } & { 0 } & { 1 } \\\\ { k - N k } & { 0 } & { 0 } & { 0 } \\\\ { 0 } & { k - N k } & { 0 } & { 0 } \\end{array} \\right] } _ { \\triangleq \\mathcal { A } } \\left[ \\begin{array} { c } { x _ { i } } \\\\ { y _ { i } } \\\\ { \\dot { x } _ { i } } \\end{array} \\right] + \\sum _ { j \\neq i } \\left[ \\underbrace { 0 } _ { k } _ { 0 } \\begin{ c c c c } { 0 } & { 0 } & { 0 } & { 0 } \\\\ { 0 } & { 0 } & { 0 } & { 0 } \\\\ { k } & { 0 } & { 0 } & { 0 } \\\\ { 0 } & { k } & { 0 } & { 0 } \\end{array} \\right] \\left[ \\begin{array} { c } { x _ { j } } \\\\ { y _ { j } } \\\\ { \\dot { x } _ { j } } \\end{array} \\right]\n$$",
|
| 417 |
+
"text_format": "latex",
|
| 418 |
+
"bbox": [
|
| 419 |
+
181,
|
| 420 |
+
169,
|
| 421 |
+
839,
|
| 422 |
+
255
|
| 423 |
+
],
|
| 424 |
+
"page_idx": 3
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"type": "text",
|
| 428 |
+
"text": "We can represent the state of the whole system using the union of every ball’s state, where ${ \\textbf { \\em x } } =$ $[ \\pmb { x } _ { 1 } , \\cdots , \\pmb { \\dot { x } } _ { N } ] ^ { T }$ . Then the transition matrix is essentially a block matrix, where the matrix parameters are shared among the diagonal or off-diagonal blocks as shown in equation 4: ",
|
| 429 |
+
"bbox": [
|
| 430 |
+
173,
|
| 431 |
+
265,
|
| 432 |
+
828,
|
| 433 |
+
308
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 3
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "equation",
|
| 439 |
+
"img_path": "images/d1f5758e2a724846dac9354c50b68b1a0fcc46cf2a705d726c3ea659fcd0c517.jpg",
|
| 440 |
+
"text": "$$\n{ \\dot { \\pmb x } } = \\left[ \\begin{array} { c } { \\dot { \\pmb x } _ { 1 } } \\\\ { \\dot { \\pmb x } _ { 2 } } \\\\ { \\vdots } \\\\ { \\dot { \\pmb x } _ { N } } \\end{array} \\right] = \\left[ \\begin{array} { c c c c } { { \\cal A } } & { { \\cal B } } & { \\cdots } & { { \\cal B } } \\\\ { { \\cal B } } & { { \\cal A } } & { \\cdots } & { { \\cal B } } \\\\ { \\vdots } & { \\vdots } & { \\ddots } & { \\vdots } \\\\ { { \\cal B } } & { { \\cal B } } & { \\cdots } & { { \\cal A } } \\end{array} \\right] \\left[ \\begin{array} { c } { { \\pmb x } _ { 1 } } \\\\ { { \\pmb x } _ { 2 } } \\\\ { \\vdots } \\\\ { { \\pmb x } _ { N } } \\end{array} \\right] .\n$$",
|
| 441 |
+
"text_format": "latex",
|
| 442 |
+
"bbox": [
|
| 443 |
+
354,
|
| 444 |
+
313,
|
| 445 |
+
642,
|
| 446 |
+
382
|
| 447 |
+
],
|
| 448 |
+
"page_idx": 3
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"type": "text",
|
| 452 |
+
"text": "Based on the linear spring system, we make three observations for multi-object systems. ",
|
| 453 |
+
"bbox": [
|
| 454 |
+
169,
|
| 455 |
+
387,
|
| 456 |
+
751,
|
| 457 |
+
404
|
| 458 |
+
],
|
| 459 |
+
"page_idx": 3
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"type": "text",
|
| 463 |
+
"text": "The system state is composed of the state of each individual object. The dimension of the whole system scales linearly with the number of objects. We formulate the system state by concatenating the state of every object, corresponding to an object-centric state representation. • The transition matrix has a block-wise substructure. After assuming an object-centric state representation, the transition matrix naturally has a block-wise structure as shown in equation 4. • The same physical interactions share the same transition block. The blocks in the transition matrix encode actual interactions and generalize across systems. $A$ and $B$ govern the dynamics of the linear spring system, and are shared by systems with a different number of objects. ",
|
| 464 |
+
"bbox": [
|
| 465 |
+
173,
|
| 466 |
+
412,
|
| 467 |
+
826,
|
| 468 |
+
536
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 3
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "text",
|
| 474 |
+
"text": "These observations inspire us to exploit the structure of multi-object systems, instead of learning separate models for systems that contains different numbers of balls. ",
|
| 475 |
+
"bbox": [
|
| 476 |
+
174,
|
| 477 |
+
546,
|
| 478 |
+
823,
|
| 479 |
+
575
|
| 480 |
+
],
|
| 481 |
+
"page_idx": 3
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"type": "text",
|
| 485 |
+
"text": "Compositional Koopman operators. Motivated by the linear spring system, we want to inject a good inductive bias to incorporate compositionality when applying the Koopman theory. This allows better generalization ability and more efficient system identification and better controller design. Figure 1 shows an overview of our model. ",
|
| 486 |
+
"bbox": [
|
| 487 |
+
174,
|
| 488 |
+
585,
|
| 489 |
+
825,
|
| 490 |
+
642
|
| 491 |
+
],
|
| 492 |
+
"page_idx": 3
|
| 493 |
+
},
|
| 494 |
+
{
|
| 495 |
+
"type": "text",
|
| 496 |
+
"text": "Considering a system with $N$ objects, we denote $\\mathbf { \\boldsymbol { x } } ^ { t }$ as the system state at time $t$ and $\\boldsymbol { x } _ { i } ^ { t }$ is the state of the $\\romannumeral 1$ ’th object. We further denote $\\mathbf { \\boldsymbol { g } } ^ { t } \\triangleq \\mathbf { \\boldsymbol { g } } ( \\mathbf { \\boldsymbol { x } } ^ { t } )$ as the embedding of the state in the Koopman invariant space. In the rest of the paper, we call $g ^ { t }$ the Koopman embedding. Based on the observation we made in the case of linear spring system, we propose the following assumptions on the compositional structure of the Koopman embedding and the Koopman matrix. ",
|
| 497 |
+
"bbox": [
|
| 498 |
+
173,
|
| 499 |
+
648,
|
| 500 |
+
825,
|
| 501 |
+
722
|
| 502 |
+
],
|
| 503 |
+
"page_idx": 3
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"type": "text",
|
| 507 |
+
"text": "• The Koopman embedding of the system is composed of the Koopman embedding of every objects. Similar to the decomposition in the state space, we assume the Koopman embedding can be divided into object-centric sub-embeddings, i.e. $\\pmb { g } ^ { t } \\in \\mathbb { R } ^ { N m }$ denoting the concatenation of $g _ { 1 } ^ { t } , \\cdots , g _ { N } ^ { t }$ , where we use $\\pmb { g } _ { i } ^ { t } = g _ { i } ( \\pmb { x } ^ { t } ) \\in \\mathbb { R } ^ { m }$ as the Koopman embedding for the $i ^ { \\because }$ ’th object. ",
|
| 508 |
+
"bbox": [
|
| 509 |
+
174,
|
| 510 |
+
732,
|
| 511 |
+
825,
|
| 512 |
+
790
|
| 513 |
+
],
|
| 514 |
+
"page_idx": 3
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"type": "text",
|
| 518 |
+
"text": "The Koopman matrix has a block-wise structure. It is natural to think the Koopman matrix is composed of block matrices after assuming an object-centric Koopman embeddings. In equation 5, $K _ { i j } \\ \\in \\mathbb { R } ^ { m \\times m }$ and $L _ { i j } \\in \\mathbb { R } ^ { m \\times l }$ are blocks of the Koopman matrix and the control matrix, where $l$ is the dimension of the action for each object and $\\pmb { u } ^ { t } \\in \\mathbb { R } ^ { N l }$ is the concatenation of $\\boldsymbol { \\mathbf { \\mathit { u } } } _ { 1 } ^ { t } , \\cdots , \\boldsymbol { \\mathbf { \\mathit { u } } } _ { N } ^ { t }$ denoting the total control signal at time $t$ : ",
|
| 519 |
+
"bbox": [
|
| 520 |
+
176,
|
| 521 |
+
792,
|
| 522 |
+
823,
|
| 523 |
+
864
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 3
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "equation",
|
| 529 |
+
"img_path": "images/27279256958bdd2e14f0803d000bf979c3482f16a1446c046a59417c0b7031b6.jpg",
|
| 530 |
+
"text": "$$\n\\left[ \\begin{array} { c } { { { \\bf g } _ { 1 } ^ { t + 1 } } } \\\\ { { \\vdots } } \\\\ { { \\vdots } } \\\\ { { { \\bf g } _ { N } ^ { t + 1 } } } \\end{array} \\right] = \\left[ \\begin{array} { c c c c } { { { \\cal K } _ { 1 1 } } } & { { \\cdots } } & { { { \\cal K } _ { 1 N } } } \\\\ { { \\vdots } } & { { \\ddots } } & { { \\vdots } } \\\\ { { { \\cal K } _ { N 1 } } } & { { \\cdots } } & { { { \\cal K } _ { N N } } } \\end{array} \\right] \\left[ \\begin{array} { c } { { { \\bf g } _ { 1 } ^ { t } } } \\\\ { { \\vdots } } \\\\ { { { \\bf g } _ { N } ^ { t } } } \\end{array} \\right] + \\left[ \\begin{array} { c c c c } { { { \\cal L } _ { 1 1 } } } & { { \\cdots } } & { { { \\cal L } _ { 1 N } } } \\\\ { { \\vdots } } & { { \\ddots } } & { { \\vdots } } \\\\ { { { \\cal L } _ { N 1 } } } & { { \\cdots } } & { { { \\cal L } _ { N N } } } \\end{array} \\right] \\left[ \\begin{array} { c } { { { \\bf u } _ { 1 } ^ { t } } } \\\\ { { \\vdots } } \\\\ { { \\vdots } } \\\\ { { { \\bf u } _ { N } ^ { t } } } \\end{array} \\right] .\n$$",
|
| 531 |
+
"text_format": "latex",
|
| 532 |
+
"bbox": [
|
| 533 |
+
264,
|
| 534 |
+
869,
|
| 535 |
+
748,
|
| 536 |
+
929
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 3
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "text",
|
| 542 |
+
"text": "As we have seen in the case of linear spring system, those matrix blocks are not independent, but some of them share the same set of values. ",
|
| 543 |
+
"bbox": [
|
| 544 |
+
184,
|
| 545 |
+
103,
|
| 546 |
+
823,
|
| 547 |
+
132
|
| 548 |
+
],
|
| 549 |
+
"page_idx": 4
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"type": "text",
|
| 553 |
+
"text": "• The same physical interactions shall share the same transition block. The equivalence between the blocks should reflect the equivalence of the interactions, where we use the same transition sub-matrix for object pairs of the same relation. For example, if the system is composed of $N$ identical objects interacting with the same relation, then, by symmetry, all the diagonal blocks should be the same, while all the off-diagonal blocks should also be the same. The repetitive structure allows us to efficiently identify the values using least squares regression. ",
|
| 554 |
+
"bbox": [
|
| 555 |
+
174,
|
| 556 |
+
137,
|
| 557 |
+
825,
|
| 558 |
+
222
|
| 559 |
+
],
|
| 560 |
+
"page_idx": 4
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"type": "text",
|
| 564 |
+
"text": "3.3 LEARNING THE KOOPMAN EMBEDDINGS USING GRAPH NEURAL NETWORKS ",
|
| 565 |
+
"text_level": 1,
|
| 566 |
+
"bbox": [
|
| 567 |
+
176,
|
| 568 |
+
232,
|
| 569 |
+
753,
|
| 570 |
+
247
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 4
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "text",
|
| 576 |
+
"text": "For a graph that contains , where vertic $N$ nt the syesent obj m at time s and ed $t$ us $G ^ { t } = ( O ^ { t } , R )$ $O ^ { t } = \\{ o _ { i } ^ { t } \\} _ { i = 1 } ^ { N }$ $\\bar { R \\mathbf { \\Psi } } = \\{ r _ { k } \\} _ { k = 1 } ^ { N ^ { 2 } }$ represent pair-wise relations. Specifically, ${ \\pmb O } _ { i } ^ { t } = ( \\bar { \\pmb x } _ { i } ^ { t } , { \\pmb a } _ { i } ^ { o } )$ $\\boldsymbol { x } _ { i } ^ { t }$ is the state of object $i$ and $\\pmb { a } _ { i } ^ { o }$ is a one-hot vector indicating the object type, e.g., fixed or movable. For relation, we have $\\pmb { r } _ { k } = ( u _ { k } , v _ { k } , \\pmb { a } _ { k } ^ { r } ) , 1 \\leq u _ { k } , v _ { k } \\leq N$ , where $u _ { k }$ and $v _ { k }$ are integers denoting the end points of this directed edge, and $\\pmb { a } _ { k } ^ { r }$ is a one-hot vector denoting the type of the relation $k$ . ",
|
| 577 |
+
"bbox": [
|
| 578 |
+
173,
|
| 579 |
+
255,
|
| 580 |
+
825,
|
| 581 |
+
343
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 4
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "text",
|
| 587 |
+
"text": "We use a graph neural network similar to Interaction Networks (IN) (Battaglia et al., 2016) to generate object-centric Koopman embeddings. IN defines an object function $f _ { O }$ and a relation function $f _ { R }$ to model objects and their relations in a compositional way. Similar to a message passing procedure, we calculate the edge effect $\\pmb { e } _ { k } ^ { t } = f _ { R } ( \\bar { \\pmb { o } } _ { u _ { k } } ^ { t } , \\pmb { o } _ { v _ { k } } ^ { t } , \\pmb { a } _ { k } ^ { r } ) _ { k = 1 \\dots N ^ { 2 } }$ , and node effect $\\begin{array} { r } { \\pmb { g } _ { i } ^ { t } = f _ { O } ( \\pmb { o } _ { i } ^ { t } , \\sum _ { k \\in \\mathcal { N } _ { i } } \\pmb { e } _ { k } ^ { t } ) _ { i = 1 \\dots N } } \\end{array}$ , where ${ \\mathcal { N } } _ { i }$ denotes the relations that point to the object $i$ and $\\{ g _ { i } ^ { t } \\}$ are the derived Koopman embeddings. We use this graph neural network, denoted as $\\phi$ , to represent our Koopman observation function. ",
|
| 588 |
+
"bbox": [
|
| 589 |
+
173,
|
| 590 |
+
348,
|
| 591 |
+
825,
|
| 592 |
+
449
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 4
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "text",
|
| 598 |
+
"text": "System identification. For a sequence of observations $\\widetilde { \\pmb { x } } = \\{ \\pmb { x } ^ { 1 } , \\cdots , \\pmb { x } ^ { T } \\}$ from time 1 to time $T$ , we first map them to the Koopman space as $\\widetilde { \\pmb { g } } = [ \\pmb { g } ^ { 1 } , \\dotsb { \\mathrm { ~ , ~ } } \\pmb { g } ^ { T } ]$ using the graph encoder $\\phi$ , where $g ^ { t } = \\phi ( \\pmb { x } ^ { t } )$ . We use $\\pmb { g } ^ { i : j }$ eto denote the sub-sequence $[ \\pmb { g } ^ { i } , \\cdots , \\pmb { g } ^ { j } ]$ . To identify the Koopman matrix, we solve the linear regression $\\operatorname* { m i n } _ { K } { \\| K g ^ { 1 : T - 1 } - g ^ { \\overleftarrow { 2 } : T } \\| _ { 2 } }$ . As a result, $K { \\dot { = } } g ^ { 2 : T } ( { \\dot { g } } ^ { 1 : T - 1 } ) ^ { \\dagger }$ will asymptotically approach the Koopman operator $\\kappa$ with an increasing $T$ . For cases where there are control inputs $\\widetilde { \\pmb { u } } = [ \\pmb { u } ^ { 1 } , \\dotsb , \\pmb { u } ^ { T - 1 } ]$ , the calculation of the Koopman matrix and the control matrix is eessentially solving a least squares problem w.r.t. the objective ",
|
| 599 |
+
"bbox": [
|
| 600 |
+
173,
|
| 601 |
+
458,
|
| 602 |
+
826,
|
| 603 |
+
558
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 4
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "equation",
|
| 609 |
+
"img_path": "images/43fd9b32206052f36735904835c30a5f13d0f36885e6576abfc24ccadf1193c3.jpg",
|
| 610 |
+
"text": "$$\n\\operatorname* { m i n } _ { K , L } | | K g ^ { 1 : T - 1 } + L \\widetilde { \\pmb { u } } - \\pmb { g } ^ { 2 : T } | | _ { 2 } .\n$$",
|
| 611 |
+
"text_format": "latex",
|
| 612 |
+
"bbox": [
|
| 613 |
+
390,
|
| 614 |
+
564,
|
| 615 |
+
607,
|
| 616 |
+
590
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 4
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "text",
|
| 622 |
+
"text": "As we mentioned in the Section 3.2, the dimension of the Koopman space is linear to the number of objects in the system, i.e., $\\widetilde { \\pmb g } \\in \\mathbb R ^ { N m \\times T }$ and $K \\in \\mathbb { R } ^ { N m \\times N m }$ . If we do not enforce any structure on the Koopman matrix $K$ e, we will have to identify $N ^ { 2 } m ^ { 2 }$ parameters. Instead, we can significantly reduce the number by leveraging the assumption on the structure of $K$ . Assume we know some blocks $( \\{ K _ { i j } \\} )$ of the matrix $K$ are shared and in total there are $h$ different kinds of blocks, which we denote as $\\hat { K } \\in \\mathbb { R } ^ { h \\times m \\times m }$ . Then, the number of parameter to be identified reduce to $h m ^ { 2 }$ . Usually, $h$ does not depend on $N$ , and is much smaller than $N ^ { 2 }$ . Now, for each block $K _ { i j }$ , we have a one-hot vector $\\sigma _ { i j } \\in \\{ 0 , 1 \\} ^ { h }$ indicating its type, i.e., $K _ { i j } = \\sigma _ { i j } \\hat { K } \\in \\mathbb { R } ^ { m \\times m }$ . Finally, as shown in equation 7, we represent the Koopman matrix as the product of the index tensor $\\sigma$ and the parameter tensor $\\hat { K }$ : ",
|
| 623 |
+
"bbox": [
|
| 624 |
+
173,
|
| 625 |
+
597,
|
| 626 |
+
826,
|
| 627 |
+
733
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 4
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "equation",
|
| 633 |
+
"img_path": "images/4df5d2c2ed611751b6b43f92b79d081d0688e4b5fb33bc2c35ce086a8f9f4075.jpg",
|
| 634 |
+
"text": "$$\nK = \\sigma \\otimes { \\hat { K } } = \\left[ \\begin{array} { c c c } { \\sigma _ { 1 1 } { \\hat { K } } } & { \\cdots } & { \\sigma _ { 1 N } { \\hat { K } } } \\\\ { \\vdots } & { \\ddots } & { \\vdots } \\\\ { \\sigma _ { N 1 } { \\hat { K } } } & { \\cdots } & { \\sigma _ { N N } { \\hat { K } } } \\end{array} \\right] , \\mathrm { w h e r e } \\sigma = \\left[ \\begin{array} { c c c } { \\sigma _ { 1 1 } } & { \\cdots } & { \\sigma _ { 1 N } } \\\\ { \\vdots } & { \\ddots } & { \\vdots } \\\\ { \\sigma _ { N 1 } } & { \\cdots } & { \\sigma _ { N N } } \\end{array} \\right] \\in \\mathbb { R } ^ { N \\times N \\times h } .\n$$",
|
| 635 |
+
"text_format": "latex",
|
| 636 |
+
"bbox": [
|
| 637 |
+
194,
|
| 638 |
+
738,
|
| 639 |
+
784,
|
| 640 |
+
799
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 4
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "text",
|
| 646 |
+
"text": "Similar to the Koopman matrix, we assume the same block structure in the control matrix $L$ and denote its parameter as $\\hat { L } \\in \\mathbb { R } ^ { h \\times m \\times l }$ . The least squares problem of identifying $\\hat { K }$ and $\\hat { L }$ becomes ",
|
| 647 |
+
"bbox": [
|
| 648 |
+
173,
|
| 649 |
+
805,
|
| 650 |
+
825,
|
| 651 |
+
837
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 4
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "equation",
|
| 657 |
+
"img_path": "images/5f2db5b0b11e0fdc28528d0a52362578d7af5ebc60560d5fe605f404ef68c9f9.jpg",
|
| 658 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\hat { K } , \\hat { L } } \\| ( \\sigma \\otimes \\hat { K } ) \\pmb { g } ^ { 1 : T - 1 } + ( \\sigma \\otimes \\hat { L } ) \\widetilde { \\pmb { u } } - \\pmb { g } ^ { 2 : T } \\| _ { 2 } ,\n$$",
|
| 659 |
+
"text_format": "latex",
|
| 660 |
+
"bbox": [
|
| 661 |
+
346,
|
| 662 |
+
842,
|
| 663 |
+
648,
|
| 664 |
+
872
|
| 665 |
+
],
|
| 666 |
+
"page_idx": 4
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"type": "text",
|
| 670 |
+
"text": "where $\\sigma \\otimes \\hat { K } \\in \\mathbb { R } ^ { N m \\times N m }$ , $\\sigma \\otimes \\hat { L } \\in \\mathbb { R } ^ { N m \\times N l }$ , $\\pmb { g } ^ { 1 : T - 1 } \\in \\mathbb { R } ^ { N m \\times ( T - 1 ) }$ and $\\widetilde { \\pmb { u } } \\in \\mathbb { R } ^ { N l \\times ( T - 1 ) }$ . Since ethe linear least squares problems described in equation 6 and equation 8 have analytical solutions, performing system identification using our method is very efficient. ",
|
| 671 |
+
"bbox": [
|
| 672 |
+
174,
|
| 673 |
+
880,
|
| 674 |
+
825,
|
| 675 |
+
925
|
| 676 |
+
],
|
| 677 |
+
"page_idx": 4
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"type": "text",
|
| 681 |
+
"text": "Training GNN models. To make predictions on the states, we use a graph decoder $\\psi$ to map the Koopman embeddings back to the original state space. In total, we have three losses to train the graph encoder and decoder. The first term is the auto-encoding loss ",
|
| 682 |
+
"bbox": [
|
| 683 |
+
173,
|
| 684 |
+
103,
|
| 685 |
+
825,
|
| 686 |
+
146
|
| 687 |
+
],
|
| 688 |
+
"page_idx": 5
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"type": "equation",
|
| 692 |
+
"img_path": "images/ee22ff9c1861be5fc72b30121791deb93da221d00ae9e1e7acee15e987772ce4.jpg",
|
| 693 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { a e } } = \\frac { 1 } { T } \\sum _ { i } ^ { T } \\| \\psi ( \\phi ( \\pmb { x } ^ { i } ) ) - \\pmb { x } ^ { i } \\| .\n$$",
|
| 694 |
+
"text_format": "latex",
|
| 695 |
+
"bbox": [
|
| 696 |
+
392,
|
| 697 |
+
154,
|
| 698 |
+
604,
|
| 699 |
+
198
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 5
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "The second term is the prediction loss. To calculate it, we rollout in the Koopman space and denote the embeddings as $\\hat { \\pmb g } ^ { 1 } \\overset { ^ { } } { = } \\pmb g ^ { 1 }$ , and $\\hat { \\pmb { g } } ^ { t + 1 } = K \\hat { \\pmb { g } } ^ { t } + L \\pmb { u } ^ { t }$ , for $t = 1 , \\cdots , T - 1$ . The prediction loss is defined as the difference between the decoded states and the actual states, i.e., ",
|
| 706 |
+
"bbox": [
|
| 707 |
+
173,
|
| 708 |
+
205,
|
| 709 |
+
825,
|
| 710 |
+
247
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 5
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "equation",
|
| 716 |
+
"img_path": "images/914ee7763ca915bf878eb4864780cf0449126e8ccc6313f4f0e1a4ce74a4bbc2.jpg",
|
| 717 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { p r e d } } = \\frac { 1 } { T } \\sum _ { i = 1 } ^ { T } \\Vert \\psi ( \\hat { \\pmb g } ^ { i } ) - \\pmb x ^ { i } \\Vert .\n$$",
|
| 718 |
+
"text_format": "latex",
|
| 719 |
+
"bbox": [
|
| 720 |
+
398,
|
| 721 |
+
256,
|
| 722 |
+
598,
|
| 723 |
+
299
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 5
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "Third, we employ a metric loss to encourage the Koopman embeddings preserving the distance in the original state space. The loss is defined as the absolute error between the distances measured in the Koopman space and that in the original space, i.e., ",
|
| 730 |
+
"bbox": [
|
| 731 |
+
173,
|
| 732 |
+
306,
|
| 733 |
+
825,
|
| 734 |
+
349
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 5
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "equation",
|
| 740 |
+
"img_path": "images/ee726c65e21dae565f014959c4c5051daa1f537b0a49ee58644a4188d9cee8b0.jpg",
|
| 741 |
+
"text": "$$\n{ \\mathcal { L } } _ { \\mathrm { m e t r i c } } = \\sum _ { i j } \\left| \\left\\| { \\pmb { g } } ^ { i } - { \\pmb { g } } ^ { j } \\right\\| - \\left\\| { \\pmb { x } } ^ { i } - { \\pmb { x } } ^ { j } \\right\\| \\right| .\n$$",
|
| 742 |
+
"text_format": "latex",
|
| 743 |
+
"bbox": [
|
| 744 |
+
364,
|
| 745 |
+
357,
|
| 746 |
+
633,
|
| 747 |
+
392
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 5
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "text",
|
| 753 |
+
"text": "Having Koopman embeddings that perserves the distance in the state space is important as we are using the distance in the Koopman space to define the cost function for downstream control tasks. ",
|
| 754 |
+
"bbox": [
|
| 755 |
+
173,
|
| 756 |
+
401,
|
| 757 |
+
825,
|
| 758 |
+
429
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 5
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "The final training loss is simply the combination of all the terms above: $\\mathcal { L } = \\mathcal { L } _ { \\mathrm { a e } } + \\lambda _ { 1 } \\mathcal { L } _ { \\mathrm { p r e d } } + \\lambda _ { 2 } \\mathcal { L } _ { \\mathrm { m e t r i c } }$ . We then minimize the loss $\\mathcal { L }$ by optimizing the parameters in the graph encoder $\\phi$ and graph decoder $\\psi$ using stochastic gradient descent. Once the model is trained, it can be used for system identification, future prediction, and control synthesis. ",
|
| 765 |
+
"bbox": [
|
| 766 |
+
174,
|
| 767 |
+
435,
|
| 768 |
+
825,
|
| 769 |
+
492
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 5
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "3.4 CONTROL ",
|
| 776 |
+
"text_level": 1,
|
| 777 |
+
"bbox": [
|
| 778 |
+
174,
|
| 779 |
+
502,
|
| 780 |
+
284,
|
| 781 |
+
516
|
| 782 |
+
],
|
| 783 |
+
"page_idx": 5
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"type": "text",
|
| 787 |
+
"text": "For a control task, the goal is to synthesize a sequence of control inputs $\\mathbf { \\pmb { u } } ^ { 1 : T }$ that minimize $C =$ $\\textstyle \\sum _ { t = 1 } ^ { T } c _ { t } ( \\pmb { x } ^ { t } , \\pmb { u } ^ { t } )$ , the total incurred cost, where $c _ { t } ( \\pmb { x } ^ { t } , \\pmb { u } ^ { t } )$ is the instantaneous cost. For example, considering the control task of reaching a desired state $\\mathbf { \\nabla } _ { \\mathbf { \\mathcal { X } } } ^ { * }$ at time $T$ , we can design the following instantaneous cost, $c _ { t } ( \\pmb { x } ^ { t } , \\pmb { u } ^ { t } ) = \\mathbb { 1 } _ { [ t = T ] } \\bar { \\lVert \\pmb { x } ^ { t } - \\pmb { x } ^ { * } \\rVert _ { 2 } ^ { 2 } + \\lambda \\lVert \\pmb { u } ^ { t } \\rVert _ { 2 } ^ { 2 } }$ . The first term promotes the control sequence that matches the state to the goal, while the second term regularizes the control signals. ",
|
| 788 |
+
"bbox": [
|
| 789 |
+
173,
|
| 790 |
+
526,
|
| 791 |
+
825,
|
| 792 |
+
601
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 5
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "Open-loop control via quadratic programming (QP). Our model maps the original nonlinear dynamics to a linear dynamical system. We can then solve the control task by solving a linear control problem. With the assumption that the Koopman embeddings preserve the distance measure, we define the control cost as $c _ { t } ( { \\pmb g } ^ { t } , { \\pmb u } ^ { t } ) = \\mathbb { 1 } _ { [ t = T ] } \\| { \\pmb g } ^ { t } - { \\pmb g } ^ { * } \\| _ { 2 } ^ { 2 } + \\lambda \\| { \\pmb u } ^ { t } \\| _ { 2 } ^ { 2 }$ . As a result, we reduce the problem to minimizing a quadratic cost function $\\begin{array} { r } { C = \\sum _ { t = 1 } ^ { T } c _ { t } ( g ^ { t } , \\pmb { u } ^ { t } ) } \\end{array}$ over variables $\\{ g ^ { t } , \\pmb { u } ^ { t } \\} _ { t = 1 } ^ { T }$ , where $\\pmb { g } ^ { 1 } = \\phi ( \\pmb { x } ^ { 1 } )$ and ${ \\pmb g } ^ { * } = \\phi ( { \\pmb x } ^ { * } )$ ",
|
| 799 |
+
"bbox": [
|
| 800 |
+
173,
|
| 801 |
+
613,
|
| 802 |
+
825,
|
| 803 |
+
704
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 5
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "text",
|
| 809 |
+
"text": "Model predictive control (MPC). Solving the QP gives us control signals, which might not be good enough for long-term control as the prediction error accumulates. We can combine it with Model Predictive Control, assuming feedback from the environment every $\\tau$ steps. ",
|
| 810 |
+
"bbox": [
|
| 811 |
+
174,
|
| 812 |
+
715,
|
| 813 |
+
823,
|
| 814 |
+
758
|
| 815 |
+
],
|
| 816 |
+
"page_idx": 5
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"type": "text",
|
| 820 |
+
"text": "4 EXPERIMENTS ",
|
| 821 |
+
"text_level": 1,
|
| 822 |
+
"bbox": [
|
| 823 |
+
176,
|
| 824 |
+
775,
|
| 825 |
+
328,
|
| 826 |
+
790
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 5
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "Environments. We evaluate our method by assessing how well it can simulate and control ropes and soft robots. Specifically, we consider three environments. (1) Rope (Figure 2a): the top mass of a rope is fixed to a specific height. We apply force to the top mass to move it in a horizontal line. The rest of the masses are free to move according to internal force and gravity. (2) Soft (Figure 2b): we aim to control a soft robot that is consist of soft blocks. Blocks in dark grey are rigid and those in light blue are soft blocks. Each one of the dark blue blocks is soft but have an actuator inside that can contract or expand the block. One of the blocks is pinned to the ground, as shown using the red dots. (3) Swim (Figure 2c): instead of pinning the soft robot to the ground, we let the robot swim in fluids. The colors shown in this environment have the same meaning as in Soft. ",
|
| 833 |
+
"bbox": [
|
| 834 |
+
173,
|
| 835 |
+
799,
|
| 836 |
+
826,
|
| 837 |
+
925
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 5
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "image",
|
| 843 |
+
"img_path": "images/71263117fabd577db5465647abbac468c4da70a4fa5de4c94cdec174d7baecd9.jpg",
|
| 844 |
+
"image_caption": [
|
| 845 |
+
"Figure 2: Qualitative results. Top: our model prediction matches the ground truth over a long period. Bottom: for control, we use red dots or frames to indicate the goal. We apply the control signals generated from our identified model to the original simulator, which allows the agent to achieve the goal accurately. Please refer to our supplementary video for more results. "
|
| 846 |
+
],
|
| 847 |
+
"image_footnote": [],
|
| 848 |
+
"bbox": [
|
| 849 |
+
179,
|
| 850 |
+
99,
|
| 851 |
+
818,
|
| 852 |
+
516
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 6
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "text",
|
| 858 |
+
"text": "Observation space. In the Rope environment, each mass on the rope is considered as an object. The observation of each mass is its position and velocity in the 2D plane, which has a dimension of 4. In total, a rope with $N$ masses has an observation space of dimension $4 N$ . In both the Soft and the Swim environments, each quadrilateral is considered as an object. For each quadrilateral, we have access to the positions and velocities of the four corners. Thus for a soft robot containing $N$ quadrilaterals, we have a $4 \\times 4 \\times N = 1 6 N$ dimensional observation. ",
|
| 859 |
+
"bbox": [
|
| 860 |
+
174,
|
| 861 |
+
607,
|
| 862 |
+
825,
|
| 863 |
+
690
|
| 864 |
+
],
|
| 865 |
+
"page_idx": 6
|
| 866 |
+
},
|
| 867 |
+
{
|
| 868 |
+
"type": "text",
|
| 869 |
+
"text": "Baselines. We compare our model to the following baselines: Interaction Networks (Battaglia et al., 2016) (IN), Propagation Networks (Li et al., 2019b) (PN) and Koopman method with handcrafted Koopman base functions (KPM). IN and PN are the state-of-the-art learning-based physical simulators, and we evaluate their adaptation ability by finetuning their parameters on a small sequence of observations from the testing environment. Similar to our method, KPM fits a linear dynamics in the Koopman space. Instead of learning Koopman observations from data, KPM uses polynomials of the original states as the basis functions. In our setting, we set the maximum order of the polynomials to be three to make the dimension of the hand-crafted Koopman embeddings match our model’s. ",
|
| 870 |
+
"bbox": [
|
| 871 |
+
173,
|
| 872 |
+
709,
|
| 873 |
+
825,
|
| 874 |
+
821
|
| 875 |
+
],
|
| 876 |
+
"page_idx": 6
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
"type": "text",
|
| 880 |
+
"text": "Data generation. We generate 10,000 episodes for Rope and 50,000 episodes for Soft and Swim. Among them, $9 0 \\%$ are used for training, and the rest for testing. Each episode has 100 time steps. In the dataset, the physical systems have a various number of objects from 5 to 9, i.e. the ropes have 5 to 9 masses while the soft robots in Soft and Swim environments have 5 to 9 quadrilaterals. To evaluate the model’s extrapolating generalization ability, for each environment, we generate an extra dataset with the same size as the test set while containing systems consist of 10 to 14 objects. ",
|
| 881 |
+
"bbox": [
|
| 882 |
+
174,
|
| 883 |
+
840,
|
| 884 |
+
825,
|
| 885 |
+
924
|
| 886 |
+
],
|
| 887 |
+
"page_idx": 6
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"type": "image",
|
| 891 |
+
"img_path": "images/f0fdc1a405d982574e72ebf82281193b8558e35f505a30bae1a8d27cd079858f.jpg",
|
| 892 |
+
"image_caption": [
|
| 893 |
+
"Figure 3: Quantitative results on simulation. The $x$ axis shows time steps. The solid lines indicate medians and the transparent regions are the interquartile ranges of simulation errors. Our method significantly outperforms the baselines in all testing environments. "
|
| 894 |
+
],
|
| 895 |
+
"image_footnote": [],
|
| 896 |
+
"bbox": [
|
| 897 |
+
178,
|
| 898 |
+
103,
|
| 899 |
+
823,
|
| 900 |
+
219
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 7
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "image",
|
| 906 |
+
"img_path": "images/64d97fdca400c7934ba7f32ddaca8ae4060677260c2492205a69120a934edfd3.jpg",
|
| 907 |
+
"image_caption": [
|
| 908 |
+
"Figure 4: Quantitative results on control and ablation studies on model hyperparameters. Left: box-plots show the distributions of control errors. The yellow line in the box indicates the median. Our model consistently achieves smaller errors in all environments against KPM. Right: our model’s simulation errors with different amount of data for system identification (d) and different dimensions of the Koopman space (e). "
|
| 909 |
+
],
|
| 910 |
+
"image_footnote": [],
|
| 911 |
+
"bbox": [
|
| 912 |
+
174,
|
| 913 |
+
282,
|
| 914 |
+
818,
|
| 915 |
+
430
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 7
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "text",
|
| 921 |
+
"text": "Training and evaluation protocols. All models are trained using Adam optimizer (Kingma & Ba, 2015) with a learning rate of $1 0 ^ { - 4 }$ and a batch size of 8. $\\lambda _ { 1 }$ and $\\lambda _ { 2 }$ are 1.0 and 0.3, respectively, for our model. For both our model and the baselines, we apply 400K iterations of gradient steps in the Rope environment and 580K iterations in the Soft and Swim environment. Our model is trained on the sub-sequence of length 64 from the training set, and IN/PN aims at minimizing the L1 distance between their prediction and the ground truth. During test time, the models have to adapt to a new environment of unknown physical parameters, where they have access to a short sequence of observations and the opportunity to adjust their models’ parameters. Our model uses 8 episodes to identify the transition matrix via least-square regression. IN/PN update the model’s parameters by minimizing the distance between the model’s prediction and the actual observation using a gradient step of length $1 0 ^ { - 4 }$ for 5 iterations. For evaluation, we use two metrics: simulation error and control error. For a given episode, the simulation error at time step $t$ is defined as the mean squared error between the model prediction $\\hat { \\mathbf { x } } ^ { t }$ and the ground truth $\\mathbf { \\boldsymbol { x } } ^ { t }$ . For control, we pick the initial frame $\\mathbf { \\boldsymbol { x } } ^ { 0 }$ and the $t ^ { \\star }$ th frame $\\mathbf { \\boldsymbol { x } } ^ { t }$ from a episode. Then we ask the model to generate a control sequence of length $t$ to transfer the system from the initial state $\\mathbf { \\boldsymbol { x } } ^ { 0 }$ to the target state $\\mathbf { \\boldsymbol { x } } ^ { t }$ . The control error is defined as the mean squared distance between the target state and the state of the system at time $t$ . ",
|
| 922 |
+
"bbox": [
|
| 923 |
+
173,
|
| 924 |
+
532,
|
| 925 |
+
825,
|
| 926 |
+
767
|
| 927 |
+
],
|
| 928 |
+
"page_idx": 7
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"type": "text",
|
| 932 |
+
"text": "4.1 SIMULATION ",
|
| 933 |
+
"text_level": 1,
|
| 934 |
+
"bbox": [
|
| 935 |
+
174,
|
| 936 |
+
780,
|
| 937 |
+
305,
|
| 938 |
+
794
|
| 939 |
+
],
|
| 940 |
+
"page_idx": 7
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"type": "text",
|
| 944 |
+
"text": "Figure 2 shows qualitative results on simulation. Our model accurately predicts system dynamics for more than 100 steps. For Rope, the small prediction error comes from the slight delay of the force propagation inside the rope; hence, the tail of the rope usually has a larger error. For Soft, our model captures the interaction between the body parts and generates accurate prediction over the global movements of the robot. The error mainly comes from the misalignment of some local components. ",
|
| 945 |
+
"bbox": [
|
| 946 |
+
174,
|
| 947 |
+
805,
|
| 948 |
+
825,
|
| 949 |
+
875
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 7
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "text",
|
| 955 |
+
"text": "We evaluate the models by predicting 100 steps into the future on 500 trajectories and Figure 3 shows quantitative results. IN and PN do not work well in the Rope and Swim environments due to insufficient system identification ability. The KPM baseline performs poorly in the Rope and ",
|
| 956 |
+
"bbox": [
|
| 957 |
+
176,
|
| 958 |
+
882,
|
| 959 |
+
823,
|
| 960 |
+
924
|
| 961 |
+
],
|
| 962 |
+
"page_idx": 7
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"type": "text",
|
| 966 |
+
"text": "Soft environments indicating the limited power of polynomial Koopman base functions. Our model significantly outperforms all the baselines. ",
|
| 967 |
+
"bbox": [
|
| 968 |
+
176,
|
| 969 |
+
103,
|
| 970 |
+
823,
|
| 971 |
+
132
|
| 972 |
+
],
|
| 973 |
+
"page_idx": 8
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"type": "text",
|
| 977 |
+
"text": "4.2 CONTROL ",
|
| 978 |
+
"text_level": 1,
|
| 979 |
+
"bbox": [
|
| 980 |
+
174,
|
| 981 |
+
142,
|
| 982 |
+
282,
|
| 983 |
+
156
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 8
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "We compare our model with KPM, the Koopman baseline using polynomial basis. In Rope, we ask the models to perform open-loop control where it only solves the QP once at the beginning. The length of the control sequence is 40. When it comes to Soft/Swim, each model is asked to generate control signals of 64 steps, and we allow the model to receive feedback after 32 steps. Thus every model has a second chance to correct its control sequence by solving the QP again at the time step 32. ",
|
| 990 |
+
"bbox": [
|
| 991 |
+
174,
|
| 992 |
+
165,
|
| 993 |
+
825,
|
| 994 |
+
234
|
| 995 |
+
],
|
| 996 |
+
"page_idx": 8
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"type": "text",
|
| 1000 |
+
"text": "As shown in Figure 2, our model leverages the inertia of the rope and matches the target state accurately. As for controlling a soft body swinging on the ground or swimming in the water, our model can move each part (the boxes) of the body to the exact target position. The small control error comes from the slight misalignment of the orientation and the size of the body parts. Figure 4 shows that quantitatively our model outperforms KPM, too. ",
|
| 1001 |
+
"bbox": [
|
| 1002 |
+
174,
|
| 1003 |
+
241,
|
| 1004 |
+
825,
|
| 1005 |
+
310
|
| 1006 |
+
],
|
| 1007 |
+
"page_idx": 8
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"type": "text",
|
| 1011 |
+
"text": "4.3 ABLATION STUDY ",
|
| 1012 |
+
"text_level": 1,
|
| 1013 |
+
"bbox": [
|
| 1014 |
+
174,
|
| 1015 |
+
320,
|
| 1016 |
+
341,
|
| 1017 |
+
335
|
| 1018 |
+
],
|
| 1019 |
+
"page_idx": 8
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"type": "text",
|
| 1023 |
+
"text": "Structure of the Koopman matrix. We explore three different structures of the Koopman matrix, Block, Diag and None, to understand its effect on the learned dynamics. None assumes no structure in the Koopman matrix. Diag assumes a diagonal block structure of $K$ : all off-diagonal blocks $( K _ { i j }$ where $i \\neq j$ ) are zeros and all diagonal blocks share the same values. Block predefines a block-wise structure, decided by the relation between the objects as introduced in Section 3.3. ",
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
174,
|
| 1026 |
+
340,
|
| 1027 |
+
825,
|
| 1028 |
+
410
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 8
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "text",
|
| 1034 |
+
"text": "Table 1 includes our model’s simulation error and control error with different Koopman matrix structures in Rope. All models are trained in the Rope environment with 5 to 9 masses. Besides the result on the test set, we also report models’ extrapolation performance in parentheses, where the model is evaluated on systems with more masses than training, i.e., 10 to 14 masses. ",
|
| 1035 |
+
"bbox": [
|
| 1036 |
+
174,
|
| 1037 |
+
417,
|
| 1038 |
+
529,
|
| 1039 |
+
515
|
| 1040 |
+
],
|
| 1041 |
+
"page_idx": 8
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"type": "text",
|
| 1045 |
+
"text": "Table 1: Ablation study results on the Koopman matrix structure (Rope environment). For simulation, we show the Mean Squared Error between the prediction and the ground truth at $T = 1 0 0$ , whereas for control, we show the performance with a horizon of length 40. The numbers in parentheses show the performance on extrapolation. ",
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
544,
|
| 1048 |
+
428,
|
| 1049 |
+
825,
|
| 1050 |
+
539
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 8
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "Our model with Block structure consistently achieves a smaller error in all settings. Diag assumes an overly simplified structure, leading to larger errors and failing to make reasonable controls. None has comparable simulation errors but larger control errors. Without the structure in the Koopman matrix, it overfits the data and makes the resulting linear dynamics less amiable to the control. ",
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
174,
|
| 1059 |
+
521,
|
| 1060 |
+
529,
|
| 1061 |
+
632
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 8
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "table",
|
| 1067 |
+
"img_path": "images/f9b768d6a872aa4b8c11ac0e774b2929d75d198248c6819b004ae778153ee3f2.jpg",
|
| 1068 |
+
"table_caption": [],
|
| 1069 |
+
"table_footnote": [],
|
| 1070 |
+
"table_body": "<table><tr><td></td><td>Simulation</td><td>Control</td></tr><tr><td>Diag</td><td>0.133 (0.174)</td><td>2.337 (2.809)</td></tr><tr><td>None</td><td>0.117 (0.083)</td><td>1.522 (1.288)</td></tr><tr><td>Block</td><td>0.105 (0.075)</td><td>0.854 (1.101)</td></tr></table>",
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
552,
|
| 1073 |
+
551,
|
| 1074 |
+
810,
|
| 1075 |
+
618
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 8
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "text",
|
| 1081 |
+
"text": "Hyperparameters. In our main experiments, we set the dimension of the Koopman embedding to $m = 3 2$ per object. Online system identification requires 800 data samples for each training/test case. To understand our model’s performance under different hyperparameters, we vary the dimension of the Koopman embedding from 8 to 64 and the number of data samples used for system identification from 200 to 1,600. Figure 4d shows that more data for system identification leads to better simulation results. Figure 4e shows that dimension 16 gives the best results on simulation. It may suggest that the intrinsic dimension of the Koopman invariant space of the Rope system is around 16 per object. ",
|
| 1082 |
+
"bbox": [
|
| 1083 |
+
174,
|
| 1084 |
+
645,
|
| 1085 |
+
825,
|
| 1086 |
+
742
|
| 1087 |
+
],
|
| 1088 |
+
"page_idx": 8
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"type": "text",
|
| 1092 |
+
"text": "5 CONCLUSION ",
|
| 1093 |
+
"text_level": 1,
|
| 1094 |
+
"bbox": [
|
| 1095 |
+
176,
|
| 1096 |
+
757,
|
| 1097 |
+
318,
|
| 1098 |
+
773
|
| 1099 |
+
],
|
| 1100 |
+
"page_idx": 8
|
| 1101 |
+
},
|
| 1102 |
+
{
|
| 1103 |
+
"type": "text",
|
| 1104 |
+
"text": "Compositionality is common in our daily life. Many ordinary objects contain repetitive subcomponents: ropes and soft robots, as shown in this paper, granular materials such as coffee beans and lego blocks, and deformable objects such as cloth and modeling clay. These objects are known to be very challenging for manipulation using traditional methods, while our formulation opens up a new direction by combining deep Koopman operators with graph neural networks. By leveraging the compositional structure in the Koopman operator via graph neural nets, our model can efficiently manipulate deformable objects such as ropes and soft robots, and generalize to systems with variable numbers of components. We hope this work could encourage more endeavors in modeling larger and more complex systems by integrating the power of the Koopman theory and the expressiveness of neural networks. ",
|
| 1105 |
+
"bbox": [
|
| 1106 |
+
174,
|
| 1107 |
+
784,
|
| 1108 |
+
825,
|
| 1109 |
+
924
|
| 1110 |
+
],
|
| 1111 |
+
"page_idx": 8
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"type": "text",
|
| 1115 |
+
"text": "REFERENCES ",
|
| 1116 |
+
"text_level": 1,
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
176,
|
| 1119 |
+
102,
|
| 1120 |
+
287,
|
| 1121 |
+
118
|
| 1122 |
+
],
|
| 1123 |
+
"page_idx": 9
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"type": "text",
|
| 1127 |
+
"text": "Ian Abraham, Gerardo De La Torre, and Todd D Murphey. Model-based control using koopman operators. In RSS, 2017. ",
|
| 1128 |
+
"bbox": [
|
| 1129 |
+
173,
|
| 1130 |
+
128,
|
| 1131 |
+
823,
|
| 1132 |
+
159
|
| 1133 |
+
],
|
| 1134 |
+
"page_idx": 9
|
| 1135 |
+
},
|
| 1136 |
+
{
|
| 1137 |
+
"type": "text",
|
| 1138 |
+
"text": "Hassan Arbabi and Igor Mezic. Ergodic theory, dynamic mode decomposition, and computation of spectral properties of the koopman operator. SIAM Journal on Applied Dynamical Systems, 16(4): 2096–2126, 2017. ",
|
| 1139 |
+
"bbox": [
|
| 1140 |
+
171,
|
| 1141 |
+
167,
|
| 1142 |
+
823,
|
| 1143 |
+
210
|
| 1144 |
+
],
|
| 1145 |
+
"page_idx": 9
|
| 1146 |
+
},
|
| 1147 |
+
{
|
| 1148 |
+
"type": "text",
|
| 1149 |
+
"text": "Hassan Arbabi, Milan Korda, and Igor Mezic. A data-driven koopman model predictive control framework for nonlinear flows. In CDC, 2018. ",
|
| 1150 |
+
"bbox": [
|
| 1151 |
+
171,
|
| 1152 |
+
219,
|
| 1153 |
+
821,
|
| 1154 |
+
250
|
| 1155 |
+
],
|
| 1156 |
+
"page_idx": 9
|
| 1157 |
+
},
|
| 1158 |
+
{
|
| 1159 |
+
"type": "text",
|
| 1160 |
+
"text": "Peter W. Battaglia, Razvan Pascanu, Matthew Lai, Danilo Rezende, and Koray Kavukcuoglu. Interaction networks for learning about objects, relations and physics. In NeurIPS, 2016. ",
|
| 1161 |
+
"bbox": [
|
| 1162 |
+
171,
|
| 1163 |
+
258,
|
| 1164 |
+
823,
|
| 1165 |
+
289
|
| 1166 |
+
],
|
| 1167 |
+
"page_idx": 9
|
| 1168 |
+
},
|
| 1169 |
+
{
|
| 1170 |
+
"type": "text",
|
| 1171 |
+
"text": "Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv:1806.01261, 2018. ",
|
| 1172 |
+
"bbox": [
|
| 1173 |
+
173,
|
| 1174 |
+
297,
|
| 1175 |
+
826,
|
| 1176 |
+
342
|
| 1177 |
+
],
|
| 1178 |
+
"page_idx": 9
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"type": "text",
|
| 1182 |
+
"text": "Daniel Bruder, Brent Gillespie, C David Remy, and Ram Vasudevan. Modeling and control of soft robots using the koopman operator and model predictive control. In RSS, 2019a. ",
|
| 1183 |
+
"bbox": [
|
| 1184 |
+
171,
|
| 1185 |
+
351,
|
| 1186 |
+
823,
|
| 1187 |
+
380
|
| 1188 |
+
],
|
| 1189 |
+
"page_idx": 9
|
| 1190 |
+
},
|
| 1191 |
+
{
|
| 1192 |
+
"type": "text",
|
| 1193 |
+
"text": "Daniel Bruder, C David Remy, and Ram Vasudevan. Nonlinear system identification of soft robot dynamics using koopman operator theory. In ICRA, 2019b. ",
|
| 1194 |
+
"bbox": [
|
| 1195 |
+
171,
|
| 1196 |
+
390,
|
| 1197 |
+
823,
|
| 1198 |
+
420
|
| 1199 |
+
],
|
| 1200 |
+
"page_idx": 9
|
| 1201 |
+
},
|
| 1202 |
+
{
|
| 1203 |
+
"type": "text",
|
| 1204 |
+
"text": "Steven L Brunton, Bingni W Brunton, Joshua L Proctor, and J Nathan Kutz. Koopman invariant subspaces and finite linear representations of nonlinear dynamical systems for control. PloS one, 11(2):e0150171, 2016. ",
|
| 1205 |
+
"bbox": [
|
| 1206 |
+
173,
|
| 1207 |
+
428,
|
| 1208 |
+
825,
|
| 1209 |
+
472
|
| 1210 |
+
],
|
| 1211 |
+
"page_idx": 9
|
| 1212 |
+
},
|
| 1213 |
+
{
|
| 1214 |
+
"type": "text",
|
| 1215 |
+
"text": "Michael B Chang, Tomer Ullman, Antonio Torralba, and Joshua B Tenenbaum. A compositional object-based approach to learning physical dynamics. In ICLR, 2017. ",
|
| 1216 |
+
"bbox": [
|
| 1217 |
+
173,
|
| 1218 |
+
481,
|
| 1219 |
+
823,
|
| 1220 |
+
511
|
| 1221 |
+
],
|
| 1222 |
+
"page_idx": 9
|
| 1223 |
+
},
|
| 1224 |
+
{
|
| 1225 |
+
"type": "text",
|
| 1226 |
+
"text": "Herve Delingette. Toward realistic soft-tissue modeling in medical simulation. Proceedings of the IEEE, 86(3):512–523, 1998. ",
|
| 1227 |
+
"bbox": [
|
| 1228 |
+
174,
|
| 1229 |
+
520,
|
| 1230 |
+
823,
|
| 1231 |
+
549
|
| 1232 |
+
],
|
| 1233 |
+
"page_idx": 9
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"type": "text",
|
| 1237 |
+
"text": "Danijar Hafner, Timothy Lillicrap, Ian Fischer, Ruben Villegas, David Ha, Honglak Lee, and James Davidson. Learning latent dynamics for planning from pixels. In ICML, 2019. ",
|
| 1238 |
+
"bbox": [
|
| 1239 |
+
174,
|
| 1240 |
+
559,
|
| 1241 |
+
823,
|
| 1242 |
+
588
|
| 1243 |
+
],
|
| 1244 |
+
"page_idx": 9
|
| 1245 |
+
},
|
| 1246 |
+
{
|
| 1247 |
+
"type": "text",
|
| 1248 |
+
"text": "Jessica B Hamrick, Andrew J Ballard, Razvan Pascanu, Oriol Vinyals, Nicolas Heess, and Peter W Battaglia. Metacontrol for adaptive imagination-based optimization. In ICLR, 2017. ",
|
| 1249 |
+
"bbox": [
|
| 1250 |
+
173,
|
| 1251 |
+
597,
|
| 1252 |
+
825,
|
| 1253 |
+
627
|
| 1254 |
+
],
|
| 1255 |
+
"page_idx": 9
|
| 1256 |
+
},
|
| 1257 |
+
{
|
| 1258 |
+
"type": "text",
|
| 1259 |
+
"text": "Michael Janner, Sergey Levine, William T Freeman, Joshua B Tenenbaum, Chelsea Finn, and Jiajun Wu. Reasoning about physical interactions with object-oriented prediction and planning. In ICLR, 2019. ",
|
| 1260 |
+
"bbox": [
|
| 1261 |
+
174,
|
| 1262 |
+
636,
|
| 1263 |
+
826,
|
| 1264 |
+
679
|
| 1265 |
+
],
|
| 1266 |
+
"page_idx": 9
|
| 1267 |
+
},
|
| 1268 |
+
{
|
| 1269 |
+
"type": "text",
|
| 1270 |
+
"text": "Eurika Kaiser, J Nathan Kutz, and Steven L Brunton. Data-driven discovery of koopman eigenfunctions for control. arXiv:1707.01146, 2017. ",
|
| 1271 |
+
"bbox": [
|
| 1272 |
+
173,
|
| 1273 |
+
689,
|
| 1274 |
+
825,
|
| 1275 |
+
718
|
| 1276 |
+
],
|
| 1277 |
+
"page_idx": 9
|
| 1278 |
+
},
|
| 1279 |
+
{
|
| 1280 |
+
"type": "text",
|
| 1281 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. ",
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
171,
|
| 1284 |
+
728,
|
| 1285 |
+
812,
|
| 1286 |
+
744
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 9
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "text",
|
| 1292 |
+
"text": "Bernard O Koopman. Hamiltonian systems and transformation in hilbert space. PNAS, 17(5):315, 1931. ",
|
| 1293 |
+
"bbox": [
|
| 1294 |
+
171,
|
| 1295 |
+
753,
|
| 1296 |
+
825,
|
| 1297 |
+
784
|
| 1298 |
+
],
|
| 1299 |
+
"page_idx": 9
|
| 1300 |
+
},
|
| 1301 |
+
{
|
| 1302 |
+
"type": "text",
|
| 1303 |
+
"text": "BO Koopman and J v Neumann. Dynamical systems of continuous spectra. PNAS, 18(3):255, 1932. ",
|
| 1304 |
+
"bbox": [
|
| 1305 |
+
173,
|
| 1306 |
+
792,
|
| 1307 |
+
825,
|
| 1308 |
+
808
|
| 1309 |
+
],
|
| 1310 |
+
"page_idx": 9
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"type": "text",
|
| 1314 |
+
"text": "Milan Korda and Igor Mezic. Linear predictors for nonlinear dynamical systems: Koopman operator ´ meets model predictive control. Automatica, 93:149–160, 2018. ",
|
| 1315 |
+
"bbox": [
|
| 1316 |
+
171,
|
| 1317 |
+
818,
|
| 1318 |
+
823,
|
| 1319 |
+
847
|
| 1320 |
+
],
|
| 1321 |
+
"page_idx": 9
|
| 1322 |
+
},
|
| 1323 |
+
{
|
| 1324 |
+
"type": "text",
|
| 1325 |
+
"text": "Yunzhu Li, Jiajun Wu, Russ Tedrake, Joshua B Tenenbaum, and Antonio Torralba. Learning particle dynamics for manipulating rigid bodies, deformable objects, and fluids. In ICLR, 2019a. ",
|
| 1326 |
+
"bbox": [
|
| 1327 |
+
174,
|
| 1328 |
+
856,
|
| 1329 |
+
823,
|
| 1330 |
+
886
|
| 1331 |
+
],
|
| 1332 |
+
"page_idx": 9
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"type": "text",
|
| 1336 |
+
"text": "Yunzhu Li, Jiajun Wu, Jun-Yan Zhu, Joshua B Tenenbaum, Antonio Torralba, and Russ Tedrake. Propagation networks for model-based control under partial observation. In ICRA, 2019b. ",
|
| 1337 |
+
"bbox": [
|
| 1338 |
+
176,
|
| 1339 |
+
895,
|
| 1340 |
+
823,
|
| 1341 |
+
924
|
| 1342 |
+
],
|
| 1343 |
+
"page_idx": 9
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"type": "text",
|
| 1347 |
+
"text": "Bethany Lusch, J Nathan Kutz, and Steven L Brunton. Deep learning for universal linear embeddings of nonlinear dynamics. Nature Communications, 9(1):4950, 2018. ",
|
| 1348 |
+
"bbox": [
|
| 1349 |
+
171,
|
| 1350 |
+
103,
|
| 1351 |
+
823,
|
| 1352 |
+
132
|
| 1353 |
+
],
|
| 1354 |
+
"page_idx": 10
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"type": "text",
|
| 1358 |
+
"text": "Giorgos Mamakoukas, Maria Castano, Xiaobo Tan, and Todd Murphey. Local koopman operators for data-driven control of robotic systems. In RSS, 2019. ",
|
| 1359 |
+
"bbox": [
|
| 1360 |
+
174,
|
| 1361 |
+
141,
|
| 1362 |
+
823,
|
| 1363 |
+
171
|
| 1364 |
+
],
|
| 1365 |
+
"page_idx": 10
|
| 1366 |
+
},
|
| 1367 |
+
{
|
| 1368 |
+
"type": "text",
|
| 1369 |
+
"text": "Alexandre Mauroy and Jorge Goncalves. Linear identification of nonlinear systems: A lifting technique based on the koopman operator. In CDC, 2016. ",
|
| 1370 |
+
"bbox": [
|
| 1371 |
+
171,
|
| 1372 |
+
180,
|
| 1373 |
+
823,
|
| 1374 |
+
209
|
| 1375 |
+
],
|
| 1376 |
+
"page_idx": 10
|
| 1377 |
+
},
|
| 1378 |
+
{
|
| 1379 |
+
"type": "text",
|
| 1380 |
+
"text": "Alexandre Mauroy and Jorge Goncalves. Koopman-based lifting techniques for nonlinear systems identification. IEEE Transactions on Automatic Control, 2019. ",
|
| 1381 |
+
"bbox": [
|
| 1382 |
+
173,
|
| 1383 |
+
218,
|
| 1384 |
+
823,
|
| 1385 |
+
248
|
| 1386 |
+
],
|
| 1387 |
+
"page_idx": 10
|
| 1388 |
+
},
|
| 1389 |
+
{
|
| 1390 |
+
"type": "text",
|
| 1391 |
+
"text": "David Mayne. Nonlinear model predictive control: Challenges and opportunities. In Nonlinear Model Predictive Control, pp. 23–44. Springer, 2000. ",
|
| 1392 |
+
"bbox": [
|
| 1393 |
+
176,
|
| 1394 |
+
257,
|
| 1395 |
+
821,
|
| 1396 |
+
287
|
| 1397 |
+
],
|
| 1398 |
+
"page_idx": 10
|
| 1399 |
+
},
|
| 1400 |
+
{
|
| 1401 |
+
"type": "text",
|
| 1402 |
+
"text": "Jeremy Morton, Freddie D Witherden, Antony Jameson, and Mykel J Kochenderfer. Deep dynamical modeling and control of unsteady fluid flows. In NeurIPS, 2018. ",
|
| 1403 |
+
"bbox": [
|
| 1404 |
+
173,
|
| 1405 |
+
296,
|
| 1406 |
+
823,
|
| 1407 |
+
325
|
| 1408 |
+
],
|
| 1409 |
+
"page_idx": 10
|
| 1410 |
+
},
|
| 1411 |
+
{
|
| 1412 |
+
"type": "text",
|
| 1413 |
+
"text": "Jeremy Morton, Freddie D Witherden, and Mykel J Kochenderfer. Deep variational koopman models: Inferring koopman observations for uncertainty-aware dynamics modeling and control. In IJCAI, 2019. ",
|
| 1414 |
+
"bbox": [
|
| 1415 |
+
173,
|
| 1416 |
+
334,
|
| 1417 |
+
826,
|
| 1418 |
+
377
|
| 1419 |
+
],
|
| 1420 |
+
"page_idx": 10
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"type": "text",
|
| 1424 |
+
"text": "Damian Mrowca, Chengxu Zhuang, Elias Wang, Nick Haber, Li Fei-Fei, Joshua B Tenenbaum, and Daniel LK Yamins. Flexible neural representation for physics prediction. In NeurIPS, 2018. ",
|
| 1425 |
+
"bbox": [
|
| 1426 |
+
173,
|
| 1427 |
+
386,
|
| 1428 |
+
825,
|
| 1429 |
+
416
|
| 1430 |
+
],
|
| 1431 |
+
"page_idx": 10
|
| 1432 |
+
},
|
| 1433 |
+
{
|
| 1434 |
+
"type": "text",
|
| 1435 |
+
"text": "Anusha Nagabandi, Ignasi Clavera, Simin Liu, Ronald S Fearing, Pieter Abbeel, Sergey Levine, and Chelsea Finn. Learning to adapt in dynamic, real-world environments through meta-reinforcement learning. In ICLR, 2019a. ",
|
| 1436 |
+
"bbox": [
|
| 1437 |
+
176,
|
| 1438 |
+
425,
|
| 1439 |
+
821,
|
| 1440 |
+
468
|
| 1441 |
+
],
|
| 1442 |
+
"page_idx": 10
|
| 1443 |
+
},
|
| 1444 |
+
{
|
| 1445 |
+
"type": "text",
|
| 1446 |
+
"text": "Anusha Nagabandi, Chelsea Finn, and Sergey Levine. Deep online learning via meta-learning: Continual adaptation for model-based rl. In ICLR, 2019b. ",
|
| 1447 |
+
"bbox": [
|
| 1448 |
+
169,
|
| 1449 |
+
478,
|
| 1450 |
+
825,
|
| 1451 |
+
507
|
| 1452 |
+
],
|
| 1453 |
+
"page_idx": 10
|
| 1454 |
+
},
|
| 1455 |
+
{
|
| 1456 |
+
"type": "text",
|
| 1457 |
+
"text": "Razvan Pascanu, Yujia Li, Oriol Vinyals, Nicolas Heess, Lars Buesing, Sebastien Racaniere, David \\` Reichert, Theophane Weber, Daan Wierstra, and Peter Battaglia. Learning model-based planning ´ from scratch. arXiv:1707.06170, 2017. ",
|
| 1458 |
+
"bbox": [
|
| 1459 |
+
176,
|
| 1460 |
+
516,
|
| 1461 |
+
825,
|
| 1462 |
+
560
|
| 1463 |
+
],
|
| 1464 |
+
"page_idx": 10
|
| 1465 |
+
},
|
| 1466 |
+
{
|
| 1467 |
+
"type": "text",
|
| 1468 |
+
"text": "Joshua L Proctor, Steven L Brunton, and J Nathan Kutz. Generalizing koopman theory to allow for inputs and control. SIAM Journal on Applied Dynamical Systems, 17(1):909–930, 2018. ",
|
| 1469 |
+
"bbox": [
|
| 1470 |
+
171,
|
| 1471 |
+
569,
|
| 1472 |
+
823,
|
| 1473 |
+
599
|
| 1474 |
+
],
|
| 1475 |
+
"page_idx": 10
|
| 1476 |
+
},
|
| 1477 |
+
{
|
| 1478 |
+
"type": "text",
|
| 1479 |
+
"text": "Sebastien Racani ´ ere, Th \\` eophane Weber, David Reichert, Lars Buesing, Arthur Guez, Danilo Jimenez ´ Rezende, Adria Puigdom \\` enech Badia, Oriol Vinyals, Nicolas Heess, Yujia Li, Razvan Pascanu, \\` Peter Battaglia, David Silver, and Daan Wierstra. Imagination-augmented agents for deep reinforcement learning. In NeurIPS, 2017. ",
|
| 1480 |
+
"bbox": [
|
| 1481 |
+
173,
|
| 1482 |
+
607,
|
| 1483 |
+
826,
|
| 1484 |
+
665
|
| 1485 |
+
],
|
| 1486 |
+
"page_idx": 10
|
| 1487 |
+
},
|
| 1488 |
+
{
|
| 1489 |
+
"type": "text",
|
| 1490 |
+
"text": "Clarence W Rowley, Igor Mezic, Shervin Bagheri, Philipp Schlatter, and Dan S Henningson. Spectral ´ analysis of nonlinear flows. Journal of Fluid Mechanics, 641:115–127, 2009. ",
|
| 1491 |
+
"bbox": [
|
| 1492 |
+
173,
|
| 1493 |
+
674,
|
| 1494 |
+
823,
|
| 1495 |
+
704
|
| 1496 |
+
],
|
| 1497 |
+
"page_idx": 10
|
| 1498 |
+
},
|
| 1499 |
+
{
|
| 1500 |
+
"type": "text",
|
| 1501 |
+
"text": "Alvaro Sanchez-Gonzalez, Nicolas Heess, Jost Tobias Springenberg, Josh Merel, Martin Riedmiller, Raia Hadsell, and Peter Battaglia. Graph networks as learnable physics engines for inference and control. In ICML, 2018. ",
|
| 1502 |
+
"bbox": [
|
| 1503 |
+
174,
|
| 1504 |
+
712,
|
| 1505 |
+
825,
|
| 1506 |
+
756
|
| 1507 |
+
],
|
| 1508 |
+
"page_idx": 10
|
| 1509 |
+
},
|
| 1510 |
+
{
|
| 1511 |
+
"type": "text",
|
| 1512 |
+
"text": "Peter J Schmid. Dynamic mode decomposition of numerical and experimental data. Journal of Fluid Mechanics, 656:5–28, 2010. ",
|
| 1513 |
+
"bbox": [
|
| 1514 |
+
169,
|
| 1515 |
+
765,
|
| 1516 |
+
823,
|
| 1517 |
+
795
|
| 1518 |
+
],
|
| 1519 |
+
"page_idx": 10
|
| 1520 |
+
},
|
| 1521 |
+
{
|
| 1522 |
+
"type": "text",
|
| 1523 |
+
"text": "Jasper Snoek, Hugo Larochelle, and Ryan P Adams. Practical bayesian optimization of machine learning algorithms. In NeurIPS, 2012. ",
|
| 1524 |
+
"bbox": [
|
| 1525 |
+
171,
|
| 1526 |
+
804,
|
| 1527 |
+
825,
|
| 1528 |
+
833
|
| 1529 |
+
],
|
| 1530 |
+
"page_idx": 10
|
| 1531 |
+
},
|
| 1532 |
+
{
|
| 1533 |
+
"type": "text",
|
| 1534 |
+
"text": "Naoya Takeishi, Yoshinobu Kawahara, and Takehisa Yairi. Learning koopman invariant subspaces for dynamic mode decomposition. In NeurIPS, 2017. ",
|
| 1535 |
+
"bbox": [
|
| 1536 |
+
171,
|
| 1537 |
+
843,
|
| 1538 |
+
823,
|
| 1539 |
+
872
|
| 1540 |
+
],
|
| 1541 |
+
"page_idx": 10
|
| 1542 |
+
},
|
| 1543 |
+
{
|
| 1544 |
+
"type": "text",
|
| 1545 |
+
"text": "Jonathan H Tu, Clarence W Rowley, Dirk M Luchtenburg, Steven L Brunton, and J Nathan Kutz. On dynamic mode decomposition: Theory and applications. Journal of Computational Dynamics, 1 (2):391–421, 2014. ",
|
| 1546 |
+
"bbox": [
|
| 1547 |
+
174,
|
| 1548 |
+
881,
|
| 1549 |
+
825,
|
| 1550 |
+
924
|
| 1551 |
+
],
|
| 1552 |
+
"page_idx": 10
|
| 1553 |
+
},
|
| 1554 |
+
{
|
| 1555 |
+
"type": "text",
|
| 1556 |
+
"text": "Matthew O Williams, Ioannis G Kevrekidis, and Clarence W Rowley. A data–driven approximation of the koopman operator: Extending dynamic mode decomposition. Journal of Nonlinear Science, 25(6):1307–1346, 2015. ",
|
| 1557 |
+
"bbox": [
|
| 1558 |
+
173,
|
| 1559 |
+
103,
|
| 1560 |
+
825,
|
| 1561 |
+
145
|
| 1562 |
+
],
|
| 1563 |
+
"page_idx": 11
|
| 1564 |
+
},
|
| 1565 |
+
{
|
| 1566 |
+
"type": "text",
|
| 1567 |
+
"text": "Matthew O Williams, Maziar S Hemati, Scott TM Dawson, Ioannis G Kevrekidis, and Clarence W Rowley. Extending data-driven koopman analysis to actuated systems. IFAC-PapersOnLine, 49 (18):704–709, 2016. ",
|
| 1568 |
+
"bbox": [
|
| 1569 |
+
173,
|
| 1570 |
+
155,
|
| 1571 |
+
823,
|
| 1572 |
+
196
|
| 1573 |
+
],
|
| 1574 |
+
"page_idx": 11
|
| 1575 |
+
},
|
| 1576 |
+
{
|
| 1577 |
+
"type": "text",
|
| 1578 |
+
"text": "A ENVIRONMENT AND MODEL DETAILS ",
|
| 1579 |
+
"text_level": 1,
|
| 1580 |
+
"bbox": [
|
| 1581 |
+
176,
|
| 1582 |
+
102,
|
| 1583 |
+
526,
|
| 1584 |
+
118
|
| 1585 |
+
],
|
| 1586 |
+
"page_idx": 12
|
| 1587 |
+
},
|
| 1588 |
+
{
|
| 1589 |
+
"type": "text",
|
| 1590 |
+
"text": "Interaction types. In our experiments, interactions are considered different if the types are different or the objects involved have different physical properties. ",
|
| 1591 |
+
"bbox": [
|
| 1592 |
+
173,
|
| 1593 |
+
135,
|
| 1594 |
+
823,
|
| 1595 |
+
164
|
| 1596 |
+
],
|
| 1597 |
+
"page_idx": 12
|
| 1598 |
+
},
|
| 1599 |
+
{
|
| 1600 |
+
"type": "text",
|
| 1601 |
+
"text": "In the Rope environment, the top mass has a fixed height and is considered differently from the other masses. Thus, we have 2 types of self-interactions for the top mass and the non-top masses. In addition, we have 8 types of interactions between different objects. The objects on a relation could be either top mass or non-top mass. It is a combination of 4. And the interaction may happen between two nearby masses or masses that are two-hop away. In total, the number of interactions between different objects is $4 \\times 2 = 8$ . ",
|
| 1602 |
+
"bbox": [
|
| 1603 |
+
174,
|
| 1604 |
+
170,
|
| 1605 |
+
825,
|
| 1606 |
+
253
|
| 1607 |
+
],
|
| 1608 |
+
"page_idx": 12
|
| 1609 |
+
},
|
| 1610 |
+
{
|
| 1611 |
+
"type": "text",
|
| 1612 |
+
"text": "In the Soft environments, there are four types of quadrilaterals: rigid, soft, actuated, and fixed. We have four types of self-interactions correspondingly. For the interactions between objects, we add edges between two quadrilaterals only if they are connected by a point or edge. Connection from different directions are considered as different relations. There are 8 different directions, up, down, left, right, up-left, down-left, up-right, down-right. The relation types also encode the type of receiver object. Thus, in total, there are $( 8 + 1 ) \\times 4 = 3 6$ types of relations between different objects. ",
|
| 1613 |
+
"bbox": [
|
| 1614 |
+
174,
|
| 1615 |
+
261,
|
| 1616 |
+
825,
|
| 1617 |
+
344
|
| 1618 |
+
],
|
| 1619 |
+
"page_idx": 12
|
| 1620 |
+
},
|
| 1621 |
+
{
|
| 1622 |
+
"type": "text",
|
| 1623 |
+
"text": "In the Swim environment, there are three types of quadrilaterals: rigid, soft, and actuated. Similar to the Soft environment, we use different edge types for different connecting directions; hence, the number of edge type is $( 8 + 1 ) \\times 3 = 2 7$ . ",
|
| 1624 |
+
"bbox": [
|
| 1625 |
+
176,
|
| 1626 |
+
351,
|
| 1627 |
+
823,
|
| 1628 |
+
393
|
| 1629 |
+
],
|
| 1630 |
+
"page_idx": 12
|
| 1631 |
+
},
|
| 1632 |
+
{
|
| 1633 |
+
"type": "text",
|
| 1634 |
+
"text": "B ADDITIONAL EXPERIMENTS ",
|
| 1635 |
+
"text_level": 1,
|
| 1636 |
+
"bbox": [
|
| 1637 |
+
178,
|
| 1638 |
+
414,
|
| 1639 |
+
442,
|
| 1640 |
+
430
|
| 1641 |
+
],
|
| 1642 |
+
"page_idx": 12
|
| 1643 |
+
},
|
| 1644 |
+
{
|
| 1645 |
+
"type": "text",
|
| 1646 |
+
"text": "Comparison with a classical physical simulator optimized using back-box optimization. We have performed comparisons with a classical physical simulator optimized using black-box optimization (Delingette, 1998) by assuming different levels of knowledge over the ground truth model. ",
|
| 1647 |
+
"bbox": [
|
| 1648 |
+
174,
|
| 1649 |
+
446,
|
| 1650 |
+
825,
|
| 1651 |
+
488
|
| 1652 |
+
],
|
| 1653 |
+
"page_idx": 12
|
| 1654 |
+
},
|
| 1655 |
+
{
|
| 1656 |
+
"type": "text",
|
| 1657 |
+
"text": "If we assume that we know the ground truth model, where we only need to identify relevant physical parameters during the system identification stage, Bayesian Optimization (Snoek et al., 2012) (BO) can give us a reasonable estimate of the physical parameters. However, BO requires much more time to achieve a comparable performance with our method in the Rope environment: 0.43 vs. 180 seconds averaged over 100 trails (Ours vs. BO). ",
|
| 1658 |
+
"bbox": [
|
| 1659 |
+
174,
|
| 1660 |
+
496,
|
| 1661 |
+
825,
|
| 1662 |
+
565
|
| 1663 |
+
],
|
| 1664 |
+
"page_idx": 12
|
| 1665 |
+
},
|
| 1666 |
+
{
|
| 1667 |
+
"type": "text",
|
| 1668 |
+
"text": "If we are unsure about the ground truth model and we approximate the system using a set of points linked by springs and dampers, BO does not work as well. In our additional experiments, we approximate the Rope environment using a chained spring-mass system, say $n$ masses and $n - 1$ springs. While taking much more time, BO still cannot give us a satisfying result: simulation error 0.046 vs. 0.084 and control error 0.854 vs. 2.547 (Ours vs. BO). ",
|
| 1669 |
+
"bbox": [
|
| 1670 |
+
174,
|
| 1671 |
+
573,
|
| 1672 |
+
825,
|
| 1673 |
+
642
|
| 1674 |
+
],
|
| 1675 |
+
"page_idx": 12
|
| 1676 |
+
},
|
| 1677 |
+
{
|
| 1678 |
+
"type": "text",
|
| 1679 |
+
"text": "Ablation study on the effectiveness of the metric loss. The internal linear structure allows us to solve the control problem using quadratic programming, where the objective function for control is defined in the embedding space (Section 3.4); hence, it is desirable to have Koopman embeddings that preserve the distance in the original state space. In Section 3.3, we introduce a metric loss to promote learning a Koopman embedding that keeps the distance measurement. ",
|
| 1680 |
+
"bbox": [
|
| 1681 |
+
174,
|
| 1682 |
+
664,
|
| 1683 |
+
825,
|
| 1684 |
+
734
|
| 1685 |
+
],
|
| 1686 |
+
"page_idx": 12
|
| 1687 |
+
},
|
| 1688 |
+
{
|
| 1689 |
+
"type": "text",
|
| 1690 |
+
"text": "To demonstrate the effect of the metric loss, we compare the models trained with and without the metric loss. We establish the comparison using two measurements, the distance preservation and the prediction accuracy. To evaluate how well the Koopman embeddings preserve the distance, we compute the distribution of the log-ratio of the distance in the Koopman space and in the original state space, i.e., $\\log \\left( { \\frac { \\| { \\pmb { g } } ^ { i } - { \\pmb { g } } ^ { j } \\| _ { 2 } } { \\| { \\pmb { x } } ^ { i } - { \\pmb { x } } ^ { j } \\| _ { 2 } } } \\right)$ . For the model prediction accuracy, we show the simulation errors. ",
|
| 1691 |
+
"bbox": [
|
| 1692 |
+
174,
|
| 1693 |
+
741,
|
| 1694 |
+
825,
|
| 1695 |
+
820
|
| 1696 |
+
],
|
| 1697 |
+
"page_idx": 12
|
| 1698 |
+
},
|
| 1699 |
+
{
|
| 1700 |
+
"type": "text",
|
| 1701 |
+
"text": "We perform the experiments in the Rope environment and show the result in Figure 5. On the left, we show the ratio of distance in the learned Koopman space and the distance in the original state space. The model trained with metric loss has a log distance ratio that significantly more concentrates on 0. It means the metric loss effectively regularizes the model to preserve the distance. On the right, we show the simulation errors of the two models, which indicate that two models have comparable prediction performance. Metric loss effectively enhances the property of distance-preserving while not making a big sacrifice on the accuracy of the dynamics modeling. ",
|
| 1702 |
+
"bbox": [
|
| 1703 |
+
174,
|
| 1704 |
+
825,
|
| 1705 |
+
825,
|
| 1706 |
+
924
|
| 1707 |
+
],
|
| 1708 |
+
"page_idx": 12
|
| 1709 |
+
},
|
| 1710 |
+
{
|
| 1711 |
+
"type": "image",
|
| 1712 |
+
"img_path": "images/f00d555af41a4f7c7e11cf5d9b806fe2c47cfd9aed456f875f1dcb1ec4ae1f89.jpg",
|
| 1713 |
+
"image_caption": [
|
| 1714 |
+
"Figure 5: Ablation study on the metric loss in the Rope environment. (a) shows the distributions of the logarithm distance ratio, i.e, $\\log \\left( { \\frac { \\| { \\pmb { g } } ^ { i } - { \\pmb { g } } ^ { j } \\| _ { 2 } } { \\| { \\pmb { x } } ^ { i } - { \\pmb { x } } ^ { j } \\| _ { 2 } } } \\right)$ The model trained with metric loss has a distance ratio much more concentrated to 1, which indicates it preserves the distance much better than the counterpart. (b) illustrates the simulation error of two models, where their performance is on par. (c) shows that the model trained using the metric loss performs better control. "
|
| 1715 |
+
],
|
| 1716 |
+
"image_footnote": [],
|
| 1717 |
+
"bbox": [
|
| 1718 |
+
178,
|
| 1719 |
+
104,
|
| 1720 |
+
818,
|
| 1721 |
+
241
|
| 1722 |
+
],
|
| 1723 |
+
"page_idx": 13
|
| 1724 |
+
},
|
| 1725 |
+
{
|
| 1726 |
+
"type": "image",
|
| 1727 |
+
"img_path": "images/574fbfd0e376cdc34bb544d0ad7177a1053f7d961bda58f59dcd9e9e43a0b42a.jpg",
|
| 1728 |
+
"image_caption": [
|
| 1729 |
+
"Figure 6: Modeling rope with known physical parameters. We show the comparison between our model and IN/PN in scenarios where we have access to the ground truth physical parameters. In this case, IN and PN slightly outperform our method due to the internal linear structure in our model. However, in the real world, we do not always know the physical parameters and their values, which makes our method preferable when adapting to new environments. "
|
| 1730 |
+
],
|
| 1731 |
+
"image_footnote": [],
|
| 1732 |
+
"bbox": [
|
| 1733 |
+
362,
|
| 1734 |
+
354,
|
| 1735 |
+
632,
|
| 1736 |
+
477
|
| 1737 |
+
],
|
| 1738 |
+
"page_idx": 13
|
| 1739 |
+
},
|
| 1740 |
+
{
|
| 1741 |
+
"type": "text",
|
| 1742 |
+
"text": "Experiments in a known physical parameter setting. Our setting is different from the settings in the original IN and PN papers that we do not assume we know the physical parameters and their values, such as stiffness, mass, and gravity. Instead, the parameters are embedded in the transition matrices during the system identification stage (Section 3.3). If the model has access to the underlying physical parameters, as expected, IN and PN slightly outperform our method as the internal linear structure limits our model’s expressiveness, as shown in Figure 6. In the real world, however, the underlying physical parameters are not always known, which makes our model a better choice when adapting to unseen environments. ",
|
| 1743 |
+
"bbox": [
|
| 1744 |
+
173,
|
| 1745 |
+
577,
|
| 1746 |
+
825,
|
| 1747 |
+
689
|
| 1748 |
+
],
|
| 1749 |
+
"page_idx": 13
|
| 1750 |
+
}
|
| 1751 |
+
]
|
parse/train/H1ldzA4tPr/H1ldzA4tPr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1ldzA4tPr/H1ldzA4tPr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1xQSjCqFQ/H1xQSjCqFQ.md
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# EXCITATION DROPOUT: ENCOURAGING PLASTICITYIN DEEP NEURAL NETWORKS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
We propose a guided dropout regularizer for deep networks based on the evidence of a network prediction: the firing of neurons in specific paths. In this work, we utilize the evidence at each neuron to determine the probability of dropout, rather than dropping out neurons uniformly at random as in standard dropout. In essence, we dropout with higher probability those neurons which contribute more to decision making at training time. This approach penalizes high saliency neurons that are most relevant for model prediction, i.e. those having stronger evidence. By dropping such high-saliency neurons, the network is forced to learn alternative paths in order to maintain loss minimization, resulting in a plasticity-like behavior, a characteristic of human brains too. We demonstrate better generalization ability, an increased utilization of network neurons, and a higher resilience to network compression using several metrics over four image/video recognition benchmarks.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Dropout [Hinton et al. (2012); Srivastava et al. (2014)] is a classical regularization technique that is used in many state-of-the-art deep neural networks, typically applied to fully-connected layers. Standard Dropout selects a fraction of neurons to randomly drop out by zeroing their forward signal. In this work, we propose a scheme for biasing this selection. Our scheme utilizes the contribution of neurons to the prediction made by the network at a certain training iteration stage.
|
| 12 |
+
|
| 13 |
+
Dropout can be interpreted as model averaging technique that avoids overfitting on training data, allowing for better generalization on unseen test data. A recent variant of dropout that targets improved generalization ability is Curriculum Dropout [Morerio et al. (2017)]. It targets adjusting the dropout rate by exponentially increasing the unit suppression rate during training, answering the question How many neurons to drop out over time? Like Standard Dropout [Hinton et al. (2012); Srivastava et al. (2014)], Curriculum Dropout selects the neurons to be dropped randomly. In this work, however, we target at determining how the dropped neurons are selected, answering the question Which neurons to drop out?
|
| 14 |
+
|
| 15 |
+
Our approach is inspired by brain plasticity [Hebb (2005); Song et al. (2000); Mittal et al. (2018); Miconi et al. (2018)]. We deliberately, and temporarily, paralyze/injure neurons to enforce learning alternative paths in a deep network. At training time, neurons that are more relevant to the current prediction are given a higher dropout probability. The relevance of a neuron for making a certain prediction is quantified using Excitation Backprop, a top-down saliency approach proposed by Zhang et al. (2016). Excitation Backprop conveniently yields a probability distribution at each layer that reflects neuron saliency, or neuron contribution to the prediction being made. This is utilized in the pipeline of our approach, named Excitation Dropout, which is summarized in Fig. 1.
|
| 16 |
+
|
| 17 |
+
In particular, we study how this approach improves generalization through utilizing more network’s neurons for image classification. We report an increased recognition rate for both CNN models that are fine-tuned and trained from scratch. This improvement is validated on four image/video recognition datasets, and ranges from $1 . 1 \% - 6 . 3 \%$ over state-of-the-art Curriculum Dropout.
|
| 18 |
+
|
| 19 |
+
Next, we examine the effect of our approach on network utilization. Mittal et al. (2018) and Ma et al. (2017) introduce metrics that measure network utilization. We show a consistent increased network utilization using Excitation Dropout on four image/video recognition datasets. For example, averaged over all four benchmarks, we get $7 6 . 5 5 \%$ reduction in conservative filters, filters whose parameters do not change significantly during training, as compared to Standard Dropout.
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: Training pipeline of Excitation Dropout. Step 1: A minibatch goes through the standard forward pass. Step 2: Backward EB is performed until the specified dropout layer; this gives a neuron saliency map at the dropout layer in the form of a probability distribution. Step 3: The probability distribution is used to generate a binary mask for each image of the batch based on a Bernoulli distribution determining whether each neuron will be dropped out or not. Step 4: A forward pass is performed from the specified dropout layer to the end of the network, zeroing the activations of the dropped out neurons. Step 5: The standard backward pass is performed to update model weights.
|
| 23 |
+
|
| 24 |
+
Finally, we study network resilience to neuron dropping at test time. We observe that training with Excitation Dropout leads to models that are a lot more robust when layers are shrunk/compressed by removing units. We demonstrate this when dropping the most relevant neurons, the least relevant neurons, and with a random dropping selection. This can be quite desirable for compressing/distilling [Hinton et al. (2015)] a model, e.g. for deployment on mobile devices.
|
| 25 |
+
|
| 26 |
+
In summary, by encouraging plasticity-like behavior, our contributions are threefold:
|
| 27 |
+
|
| 28 |
+
1. Better generalization on test data.
|
| 29 |
+
2. Higher utilization of network neurons.
|
| 30 |
+
3. Resilience to network compression.
|
| 31 |
+
|
| 32 |
+
# 2 RELATED WORK
|
| 33 |
+
|
| 34 |
+
Dropout was first introduced by Hinton et al. (2012) and Srivastava et al. (2014) as a way to prevent neural units from co-adapting too much on the training data by randomly omitting subsets of neurons at each iteration of the training phase.
|
| 35 |
+
|
| 36 |
+
Some follow-up works have explored different schemes for determining how much dropout is applied to neurons/weights. Wager et al. (2013) described the dropout mechanism in terms of an adaptive regularization, establishing a connection to the AdaGrad algorithm. Inspired by information theoretic principles, Achille & Soatto (2018) propose Information Dropout, a generalization dropout which can be automatically adapted to the data. Kingma et al. (2015) showed that a relationship between dropout and Bayesian inference can be extended when the dropout rates are directly learned from the data. Kang et al. (2017) introduces Shakeout which instead of randomly discarding units as dropout does, it randomly enhances or reverses each units contribution to the next layer. Wan et al. (2013) introduced the DropConnect framework, adding dynamic sparsity on the weights of a deep model. DropConnect generalized Standard Dropout by randomly dropping the weights rather than the neuron activations in the network. Rennie et al. (2014) proposed a time scheduling for the retaining probability for the neurons in the network. The presented adaptive regularization scheme smoothly decreased in time the number of neurons turned off during training.
|
| 37 |
+
|
| 38 |
+
Recently, Morerio et al. (2017) proposed Curriculum Dropout to adjust the dropout rate in the opposite direction, exponentially increasing unit suppression rate during training, leading to a better generalization on unseen data.
|
| 39 |
+
|
| 40 |
+
Other works focus on which neurons to drop out. Dropout is usually applied to fully-connected layers of a deep network. Conversely, Wu & Gu (2015) studied the effect of dropout in convolutional and pooling layers. The selection of neurons to drop depends on the layer where they reside. In contrast, we select neurons within a layer based on their contribution. Wang & Manning (2013) demonstrate that sampling neurons from a Gaussian approximation gave an order of magnitude speedup and more stability during training. Li et al. (2016) proposed to use multinomial sampling for dropout, i.e. keeping neurons according to a multinomial distribution with specific probabilities for different neurons. Ba & Frey (2013) jointly trained a binary belief network with a neural network to regularize its hidden units by selectively setting activations to zero accordingly to their magnitude. While this takes into consideration the magnitude of the forward activations, it does not take into consideration the relationship of these activations to the ground-truth. In contrast, we drop neurons based on how they contribute to a network’s decision.
|
| 41 |
+
|
| 42 |
+
We compare our results against Morerio et al. (2017). To the best of our knowledge, we are the first to probabilistically select neurons to dropout based on their task-relevance.
|
| 43 |
+
|
| 44 |
+
# 3 METHOD
|
| 45 |
+
|
| 46 |
+
# 3.1 BACKGROUND
|
| 47 |
+
|
| 48 |
+
Saliency maps that quantize the importance of class-specific neurons for an input image are instrumental to our proposed scheme. Popular approaches include Class Activation Maps (CAM) [Zhou et al. (2016)], Gradient-weighted Class Activation Mapping (Grad-CAM) [Selvaraju et al. (2017)], and Excitation Backprop (EB) [Zhang et al. (2017)]. A thorough analysis of all saliency methods is out of the scope of this work, and the saliency problem in general is far from solved. We choose to use EB since it produces a valid probability distribution for each network layer. The saliency maps obtained using this approach are evaluated for spatial localization of objects and demonstrate the ability of pointing to the right region of an image [Zhang et al. (2017)].
|
| 49 |
+
|
| 50 |
+
In a standard CNN, the forward activation of neuron $a _ { j }$ is computed by $\begin{array} { r } { \widehat { a } _ { j } = \phi ( \sum _ { i } w _ { i j } \widehat { a } _ { i } + b _ { i } ) } \end{array}$ , where $\widehat { a } _ { i }$ is the activation coming from the previous layer, $\phi$ b bis a nonlinear activation function, $w _ { i j }$ and $b _ { i }$ bare the weight from neuron $i$ to neuron $j$ and the added bias at layer $i$ , respectively. EB devises a backpropagation formulation able to reconstruct the evidence used by a deep model to make decisions. It computes the probability of each neuron recursively using conditional probabilities $P ( a _ { i } | a _ { j } )$ in a top-down order starting from a probability distribution over the output units, as follows:
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
P ( a _ { i } ) = \sum _ { a _ { j } \in \mathcal { P } _ { i } } P ( a _ { i } | a _ { j } ) P ( a _ { j } )
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
where $\mathcal { P } _ { i }$ is the parent node set of $a _ { i }$ . EB passes top-down signals through excitatory connections having non-negative activations, excluding from the competition inhibitory ones. EB is designed with an assumption of non-negative activations. Most modern CNNs use ReLU activation functions, which satisfy this assumption. Therefore, negative weights can be assumed to not positively contribute to the final prediction. Assuming $C _ { j }$ the child node set of $a _ { j }$ , for each $a _ { i } \in C _ { j }$ , the conditional winning probability $P ( a _ { i } | a _ { j } )$ is defined as
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
P ( a _ { i } | a _ { j } ) = \left\{ \begin{array} { l l } { Z _ { j } \widehat { a } _ { i } w _ { i j } , } & { \mathrm { i f } \ w _ { i j } \geq 0 , } \\ { 0 , } & { \mathrm { o t h e r w i s e } } \end{array} \right.
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
where $Z _ { j }$ is a normalization factor such that $\begin{array} { r } { \sum _ { a _ { i } \in \mathcal { C } _ { j } } P ( a _ { i } | a _ { j } ) = 1 } \end{array}$ . Recursively propagating the top-down signal and preserving the sum of backpropagated probabilities, it is possible to highlight the salient neurons in each layer using Eqn. 1, i.e. neurons that mostly contribute to a specific task. We will refer to the distribution of $P ( a _ { i } )$ as $p _ { E B } ( a _ { i } )$ .
|
| 63 |
+
|
| 64 |
+

|
| 65 |
+
Figure 2: The retaining probability, $p$ , as a function of the Excitation Backprop probability $p _ { E B }$ . This plot was created using $N = 1 0$ and a base retaining probability $P = 0 . 5$ . In this case, when the saliency of neurons is uniform, i.e. $p _ { E B } = 0 . 1$ , then $p = P$ as marked in the figure.
|
| 66 |
+
|
| 67 |
+
# 3.2 EXCITATION DROPOUT
|
| 68 |
+
|
| 69 |
+
In the standard formulation of dropout [Hinton et al. (2012); Srivastava et al. (2014)], the suppression of a neuron in a given layer is modeled by a Bernoulli random variable $0 < p \leq 1$ where $p$ is defined as the probability of retaining a neuron. Given a specific layer where dropout is applied, during the training phase, each neuron is turned off with a probability $1 - p$ .
|
| 70 |
+
|
| 71 |
+
We argue for a different approach that is guided in the way it selects neurons to be dropped. In a training iteration, certain paths have high excitation contributing to the resulting classification, while other regions of the network have low response. We encourage learning alternative paths (plasticity) through the temporary damaging of the currently highly excited path. We re-define the probability of retaining a neuron as a function of its contribution in the currently highly excited path
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
p = 1 - \frac { ( 1 - P ) * ( N - 1 ) * p _ { E B } } { ( ( 1 - P ) * N - 1 ) * p _ { E B } + P }
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
where $p _ { E B }$ is the probability backpropagated through the EB formulation (Eqn. 1) in layer $l$ , $P$ is the base probability of retaining a neuron when all neurons are equally contributing to the prediction and $N$ is the number of neurons in a fully-connected layer $l$ or the number of filters in a convolutional layer $l$ . The retaining probability defined in Eqn. 3 drops neurons which contribute the most to the recognition of a specific class, with higher probability. Dropping out highly relevant neurons, we retain less relevant ones and thus encourage them to awaken. We also study how this compares to dropping the least relevant neurons (Adaptive Dropout by Ba & Frey (2013)) in the Appendix.
|
| 78 |
+
|
| 79 |
+
Fig. 2 shows $p$ as a function of $p _ { E B }$ . To gain some intuition for Eqn. 3, we can look more closely at the graph: 1) If neuron $a _ { i }$ has $p _ { E B } ( a _ { i } ) = 1$ : This results in a retaining probability of $p = 0$ . We do not want to keep a neuron which has a high contribution to the correct label. 2) If neuron $a _ { i }$ has $p _ { E B } ( a _ { i } ) = 0$ : This results in a retaining probability of $p = 1$ . We want to keep a neuron which has not contributed to the correct classification of an image. 3) If neuron $a _ { i }$ has $\dot { p } _ { E B } ( a _ { i } ) = 1 / N$ , i.e. $p _ { E B }$ is a uniform probability distribution: This results in a retaining probability $p = P$ . We want to keep a neuron with base probability $P$ since all neurons contribute equally.
|
| 80 |
+
|
| 81 |
+
Eqn. 3 provides a dropout probability for each neuron, which is then used as the parameter of a Bernoulli distribution giving a binary dropout mask. During training, each image in a batch leads to different excitatory connections in the network and therefore has a different $p _ { E B }$ distribution, consequently leading to a different dropout mask. Fig. 1 presents the pipeline of Excitation Dropout at training time, and a run-time analysis is presented in the Appendix.
|
| 82 |
+
|
| 83 |
+
# 4 EXPERIMENTS
|
| 84 |
+
|
| 85 |
+
In this section, we present how Excitation Dropout improves the generalization ability on four image/video recognition datasets in fully connected layers of different architectures. We then present an analysis of how Excitation Dropout affects the utilization of network neurons on the same datasets. Finally, we examine the resilience of a model trained using Excitation Dropout to network compression.
|
| 86 |
+
|
| 87 |
+

|
| 88 |
+
Figure 3: We compare the test accuracy of different dropout training strategies on four image/video recognition datasets: Cifar10, Cifar100, Caltech256, UCF101. Results presented here are averaged over five trained models and the standard deviation is depicted around the mean curve using a lighter shade. Excitation Dropout performs best after convergence compared to the other strategies.
|
| 89 |
+
|
| 90 |
+
# 4.1 DATASETS AND ARCHITECTURES
|
| 91 |
+
|
| 92 |
+
We present results on four image/video recognition datasets. Cifar10 and Cifar100 [Krizhevsky (2009)] are image recognition datasets, each consisting of $6 0 0 0 0 3 2 \times 3 2$ tiny RGB natural images. Cifar10 images are distributed over 10 classes with 6000 images per class, and Cifar100 images are distributed over 100 classes with 600 images per class. Training and test splits contain $5 0 K$ and $1 0 K$ images, respectively. We feed the network with the original image dimensions. Caltech256 [Griffin et al. (2007)] is an image recognition dataset consisting 31000 RGB images divided in 256 classes. We consider five different random splits of 50 train images and 20 testing images for each class. Images were reshaped to $1 2 8 \times 1 2 8$ pixel to feed the network. UCF101 [Soomro et al. (2012)] is a video action recognition dataset based on 13320 actions belonging to 101 action classes. For this dataset we consider a frame-based action recognition task. The images are resized to $2 2 4 \times 2 2 4$ and $2 2 7 \times 2 2 7$ to fit the input layers of the VGG and AlexNet architectures, respectively.
|
| 93 |
+
|
| 94 |
+
We present results on four architectures. Relatively shallow architectures are trained from scratch, and deeper popular architectures are fine-tuned after being pre-trained on ImageNet [Deng et al. (2009)]. Models trained from scratch: We train the CNN-2 architecture used in Morerio et al. (2017), the state-of-the-art dropout variant, for comparison purposes. This architecture consists of three convolutional and two fully-connected layers (see Appendix). We train this network from scratch for $1 0 0 K$ iterations on the datasets: Cifar-10, Cifar-100 and Caltech-256. We use minibatches of 100 images and fix the learning rate to be $1 0 ^ { - 3 }$ , decreasing to $1 0 ^ { - 4 }$ after $2 5 K$ iterations.
|
| 95 |
+
|
| 96 |
+
Fine-tuned models: We fine-tune the commonly used architectures: AlexNet [Krizhevsky et al. (2012)], VGG16 and VGG19 [Simonyan & Zisserman (2014)] pre-trained on ImageNet. We finetune the models for a frame by frame action recognition task on UCF101. The learning rate is fixed to $1 0 ^ { - 3 }$ for all the processes. We fine-tune AlexNet for $5 K$ while VGG16 and VGG19 for $3 0 K$ iterations. We use a batch size of 128 and 50 images for AlexNet and VGG16/19, respectively.
|
| 97 |
+
|
| 98 |
+
<table><tr><td>Architecture</td><td>No Dropout (%)</td><td>Standard Dropout (%)</td><td>Curriculum Dropout (%)</td><td>Excitation Dropout (%)</td></tr><tr><td>VGG16</td><td>69.37</td><td>71.93 (+2.56%)</td><td>72.14 (+2.77%)</td><td>73.23 (+3.86%)</td></tr><tr><td>VGG19</td><td>71.32</td><td>72.52 (+1.29%)</td><td>73.18 (+1.86%)</td><td>74.34 (+3.02%)</td></tr><tr><td>AlexNet</td><td>62.89</td><td>64.50 (+1.61%)</td><td>64.55 (+1.66%)</td><td>67.56 (+4.67%)</td></tr></table>
|
| 99 |
+
|
| 100 |
+
Table 1: Test accuracy comparison between No, Standard, Curriculum and Excitation Dropout in the $f c 6$ layer of three architectures: AlexNet, VGG16 and VGG19, fine-tuned for the action recognition task on UCF101. The numbers reported are the final test accuracies together with the improvements (in parenthesis) with respect to No Dropout, averaged over five trained models.
|
| 101 |
+
|
| 102 |
+
Table 2: Different metrics to reflect the usage of network capacity in the first fully-connected layer of the CNN-2 architecture consisting of 2048 neurons and the VGG16 consisting of 4096 neurons. Results presented here are averaged over five trained models for each of the datasets: Cifar10, Cifar100, Caltech256 and UCF101 $\sigma$ in brackets). Excitation Dropout consistently produces more neurons with non-zero activations, has a more spread saliency map leading to a lower saliency peak, has a higher entropy of both activations and saliency, and has a lower number of conservative filters; all reflecting an improved utilization of the network neurons using Excitation Dropout.
|
| 103 |
+
|
| 104 |
+
<table><tr><td>Dataset</td><td>Metric</td><td>Standard Dropout</td><td>Curriculum Dropout</td><td>Excitation Dropout</td></tr><tr><td rowspan="4">Cripfi</td><td># Neurons ON Peak pEB</td><td>1194 (±153) 0.011 (±0.004)</td><td>1169 (±61) 0.009 (±0.001)</td><td>1325 (±61) 0.003 (±0.0002)</td></tr><tr><td>Entropy of Activations</td><td>3.55 (±0.72)</td><td>3.50 (±0.12)</td><td></td></tr><tr><td>Entropy of pEB</td><td></td><td></td><td>4.29 (±0.28)</td></tr><tr><td>Conservative Filters△=0.25</td><td>3.28 (±0.56) 1204 (±37)</td><td>3.32 (±0.13) 959 (±34)</td><td>4.26 (±0.26) 124(±22)</td></tr><tr><td rowspan="4">cormfi</td><td># Neurons ON Peak pEB</td><td>453 (±183) 0.011 (±0.0004)</td><td>460 (±75) 0.012 (±0.0004)</td><td>943 (±131) 0.005 (±0.0005)</td></tr><tr><td>Entropy of Activations</td><td>1.67 (±0.31)</td><td>1.70 (±0.29)</td><td>3.21 (±0.44)</td></tr><tr><td>Entropy of pEB</td><td>1.64 (±0.27)</td><td>1.67 (±0.26)</td><td>3.17 (±0.41)</td></tr><tr><td>Conservative Filters△=0.30</td><td>2048 (±51)</td><td>2038 (±44)</td><td>14 (±13)</td></tr><tr><td rowspan="5">Ceresst5</td><td># Neurons ON Peak pEB</td><td>412 (±126) 0.014 (±0.0007)</td><td>471 (±146)</td><td>702 (±171)</td></tr><tr><td></td><td></td><td>0.013 (±0.0006)</td><td>0.007 (±0.0003)</td></tr><tr><td>Entropy of Activations</td><td>1.63 (±0.32)</td><td>1.84 (±0.35)</td><td>2.63 (±0.23)</td></tr><tr><td>Entropy of pEB</td><td>1.58 (±0.29)</td><td>1.77 (±0.31)</td><td>2.59 (±0.22)</td></tr><tr><td>Conservative Filters△=1.25</td><td>2048 (±46)</td><td>2048 (±49)</td><td>1671 (±31)</td></tr><tr><td rowspan="5">IUIIIN</td><td># Neurons ON Peak pEB</td><td>1120 (±25)</td><td>1143 (±22)</td><td>1404 (±37)</td></tr><tr><td></td><td>0.007 (±0.0002)</td><td>0.007 (±0.0002)</td><td>0.004 (±0.0002)</td></tr><tr><td>Entropy of Activations</td><td>2.04 (±0.23)</td><td>2.08 (±0.21)</td><td>2.51 (±0.18)</td></tr><tr><td>Entropy of pEB</td><td>1.92 (±0.22)</td><td>1.95 (±0.20)</td><td>2.42 (±0.18)</td></tr><tr><td>Conservative Filters△=0.15</td><td>3599 (±66)</td><td>3859 (±53)</td><td>44(±36)</td></tr></table>
|
| 105 |
+
|
| 106 |
+
# 4.2 SETUP AND RESULTS: GENERALIZATION
|
| 107 |
+
|
| 108 |
+
In this section we compare the performance of Excitation Dropout to that of No Dropout, Standard Dropout, and Curriculum Dropout [Morerio et al. (2017)]. We train a CNN-2 model from scratch on the datasets: Cifar10, Cifar100, Caltech256. Fig. 3 depicts the test accuracies over training iterations for the three datasets averaged over five trained models. After convergence, Excitation Dropout demonstrates a significant improvement in performance compared to other methods. We hypothesize that Excitation Dropout takes longer to converge due to the additional loop (Steps 2-4 in Fig. 1) introduced in the learning process, and due to the learning of the alternative paths. We note that Excitation Dropout, during training, uses a different binary mask for each image in a minibatch, while in Standard Dropout, one random mask is employed per minibatch. To prove that it is precisely the fact that masks reflective of the particular input give rise to a boost in accuracy, and not the fact that different masks are used for different images, we add a comparison with Standard Dropout having a different random mask for each image. We refer to this accuracy as ‘Standard Dropout $^ +$ Mask/Img’ in the plots. As expected, the latter approach is comparable to Standard Dropout in performance.
|
| 109 |
+
|
| 110 |
+

|
| 111 |
+
Figure 4: Visualizations for a VGG16 network fine-tuned on UCF101. The middle columns display the saliency map over the same video frame of the action HorseRiding while incrementally switching off the most $k$ relevant/salient neurons $( k = 0 , 1 0 0 , 2 0 0 , \ldots , 5 0 0 )$ in the $f c 6$ layer at test time. Excitation Dropout shows more robustness when more neurons are switched off. This is demonstrated through its ability to recover more of the saliency map even when a high percentage of the most salient neurons is dropped-out. This ability reflects the alternative learnt paths. Histograms of the leftmost and rightmost saliency maps are presented to demonstrate that Excitation Dropout has a wider range of saliency values.
|
| 112 |
+
|
| 113 |
+
Next, we evaluate the effectiveness of Excitation Dropout on popular network architectures that employ dropout layers: AlexNet, VGG16, VGG19. This is done by fine-tuning on the video recognition dataset UCF101. Fig. 3 shows superior Excitation Dropout performance on AlexNet fine-tuned on UCF101. Table 1 presents more comparative results on other deep architectures by reporting the accuracy after convergence. Again, Excitation Dropout demonstrates higher generalizability on the test data for all architectures.
|
| 114 |
+
|
| 115 |
+
For fair comparison, we set $p = 0 . 5$ for Standard Dropout and $P = 0 . 5$ for the base retaining probability of Excitation Dropout in all experiments1. We perform dropout in the first fully-connected layer of the networks (fc1 for CNN-2 and $f c 6$ for AlexNet and VGGs) for Standard, Curriculum, and Excitation Dropout. For Curriculum Dropout we fix the parameter $\gamma$ to $5 * 1 0 ^ { - 4 }$ as in Morerio et al. (2017).
|
| 116 |
+
|
| 117 |
+
# 4.3 SETUP AND RESULTS: UTILIZATION OF NETWORK NEURONS
|
| 118 |
+
|
| 119 |
+
In this section we examine how Excitation Dropout expands the network’s utilization of neurons through the learnt alternative paths for a certain task.
|
| 120 |
+
|
| 121 |
+
Mittal et al. (2018) introduced scoring functions to rank the filters in specific network layers including the average percentage of zero activations, a metric to count how many neurons have zero activations, and the entropy of activations, a metric to measure how much information is contained in the neurons of a layer. We analogously compute the Neurons ON which is the average number of non-zero activations, the entropy of $p _ { E B }$ which is higher when the probability distribution is spread out over more neurons in a layer. We also compute the peak $p _ { E B }$ which is expected to be lower on a more spread distribution. Moreover, Ma et al. (2017) introduced conservative filters: filters whose parameters do not change significantly during training. Conservative filters reduce the effective number of parameters in a CNN and may limit the CNNs modeling capacity for the target task.
|
| 122 |
+
|
| 123 |
+

|
| 124 |
+
Figure 5: Robustness of predicted ground-truth class probabilities as more neurons are droppedout for UCF101 test images. We fine-tune VGG16 with Excitation, Curriculum, Standard, and No Dropout at the $f c 6$ layer, averaging results over five trained models. The standard deviation is depicted around the mean curve using a lighter shade. At test time, we switch off starting from the most relevant neurons with respect to $p _ { c }$ (left), from the least relevant neurons with respect to $p _ { c }$ (center), and $k$ random neurons (right). In all scenarios, Excitation Dropout shows more robustness to network compression (dropping $f c$ neurons $\equiv$ removing filters).
|
| 125 |
+
|
| 126 |
+
A conservative filter is a filter $k$ in layer $n$ whose weights have changed by $\Delta _ { n } ^ { k } = \| \hat { w } _ { n } ^ { k } - w _ { n } ^ { k } \|$ , where $\Delta _ { n } ^ { k }$ is less than a threshold $\Delta$ (empirically set).
|
| 127 |
+
|
| 128 |
+
We evaluate the presented metrics for Excitation Dropout and compare against Standard and Curriculum Dropout in Table 2. This is done on the same datasets and architectures considered in Sec. 4.2. All metrics are computed for the first fully-connected layer of the CNN-2 and VGG16 nets consisting of 2048 and 4096 neurons, respectively. We compute each metric over the test set of each dataset. Excitation Dropout consistently outperforms Standard and Curriculum Dropout in all the metrics over all datasets. Excitation Dropout shows a higher number of active neurons, a higher entropy over activations, a probability distribution $p _ { E B }$ that is more spread (higher entropy over $p _ { E B } )$ among the neurons of the layer, leading to a lower peak probability of $p _ { E B }$ and therefore less specialized neurons. Averaging models having less specialized neurons results in higher robustness to information loss. We also observe a significantly smaller number of conservative filters when using Excitation Dropout. Fewer filters remain unchanged, i.e. do not sufficiently learn anything far from the random initialization. These results show that the models trained with Excitation Dropout were trained to be more informative, i.e. the contribution for the final classification task is provided by a higher number of neurons in the network, reflecting the alternative learnt paths. An analysis of such metrics over the training iterations is presented in the Appendix.
|
| 129 |
+
|
| 130 |
+
# 4.4 SETUP AND RESULTS: RESILIENCE TO COMPRESSION
|
| 131 |
+
|
| 132 |
+
In this section, we simulate ‘Brain Damage’ by dropping out neurons at test time. Fig. 4 demonstrates how a network utilizes the learnt alternative paths to capture the evidence of the class HorseRiding in a video frame of the UCF101 dataset. Given a VGG16 model fine-tuned with Excitation, Curriculum, Standard, and No Dropout at the $f c 6$ layer, we show the excitation saliency map obtained at the conv5-1 layer as we drop out a fixed number of the most relevant neurons from the same layer dropout is performed upon during training. A neuron is considered to be more relevant if it has a higher $p _ { E B }$ . In the first column of frames of Fig. 4, the original saliency maps for the different models are shown. As already highlighted in Table 2, the original saliency map obtained from the model trained with Excitation Dropout is more spread as compared to that of the other schemes, which present more pronounced red peaks. In the following columns of Fig. 4, we present the saliency maps the model is able to restore when the 100, 200, 300, 400, 500 most relevant neurons are dropped-out. Despite the increasing number of relevant neurons being dropped-out, Excitation Dropout is capable of restoring more of the saliency map contributing to HorseRiding. This means that the network with Excitation Dropout was trained to find alternative paths which belong to the same HorseRiding-relevant cues of the image. Despite the fact that we are considering the worst-case scenario, where we are switching off the most relevant neurons at test time, Excitation Dropout shows most robustness. More examples are presented in the Appendix.
|
| 133 |
+
|
| 134 |
+
While Fig. 4 visualizes one example qualitatively, Fig. 5 presents a complete quantitative analysis on the entire test set after training is complete. We study how the predicted ground-truth (GT) probability changes as more neurons are dropped-out at test time. On the left we present the worst case when the neurons dropped are the most relevant to the prediction. The horizontal axis in the graph represents $p _ { c }$ , where $0 \leq p _ { c } \leq 1$ is the cumulative sum of $p _ { E B }$ of neurons which will be switched off starting from the most ‘important’. The analysis is performed for $p _ { c } = \{ 0 , 0 . 0 5 , \hdots , 0 . 9 0 , 0 . 9 5 \}$ . In the center, we present an analogous analysis starting to drop from the ‘least’ relevant neurons. On the right, we present the random case (more realistic) when $k$ neurons $( k = 0 , 1 2 8 , 2 5 6 , \ldots , 4 0 9 6 )$ are randomly switched off. As we drop more neurons, Excitation Dropout (purple curves) is capable of maintaining a much less steep decline of GT probability, indicating more robustness against network compression. Cifar10, Cifar100, and Caltech256 show similar behavior (see analogous plots in the Appendix).
|
| 135 |
+
|
| 136 |
+
# 5 CONCLUSION
|
| 137 |
+
|
| 138 |
+
We propose a new regularization scheme that encourages the learning of alternative paths in a neural network by deliberately paralyzing high-saliency neurons that contribute more to a network’s prediction during training. In experiments on four image/video recognition datasets, and on different architectures, we demonstrate that our approach yields better generalization on unseen data, higher utilization of network neurons, and higher resilience to network compression.
|
| 139 |
+
|
| 140 |
+
# REFERENCES
|
| 141 |
+
|
| 142 |
+
Alessandro Achille and Stefano Soatto. Information dropout: Learning optimal representations through noisy computation. IEEE Transactions on Pattern Analysis and Machine Intelligence (PAMI), 2018.
|
| 143 |
+
|
| 144 |
+
Jimmy Ba and Brendan Frey. Adaptive dropout for training deep neural networks. In Advances in Neural Information Processing Systems (NIPS), 2013.
|
| 145 |
+
|
| 146 |
+
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2009.
|
| 147 |
+
|
| 148 |
+
G. Griffin, A. Holub, and P. Perona. Caltech-256 object category dataset. Technical Report 7694, California Institute of Technology, 2007. URL http://authors.library.caltech. edu/7694.
|
| 149 |
+
|
| 150 |
+
Donald Olding Hebb. The organization of behavior: A neuropsychological theory. Psychology Press, 2005.
|
| 151 |
+
|
| 152 |
+
Geoffrey Hinton, Oriol Vinyals, and Jeffrey Dean. Distilling the knowledge in a neural network. In NIPS Deep Learning and Representation Learning Workshop, 2015.
|
| 153 |
+
|
| 154 |
+
Geoffrey E. Hinton, Nitish Srivastava, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Improving neural networks by preventing co-adaptation of feature detectors. CoRR, abs/1207.0580, 2012.
|
| 155 |
+
|
| 156 |
+
Guoliang Kang, Jun Li, and Dacheng Tao. Shakeout: A new approach to regularized deep neural network training. IEEE Transactions on Pattern Analysis and Machine Intelligence (PAMI), 2017.
|
| 157 |
+
|
| 158 |
+
Diederik P Kingma, Tim Salimans, and Max Welling. Variational dropout and the local reparameterization trick. In Advances in Neural Information Processing Systems (NIPS), 2015.
|
| 159 |
+
|
| 160 |
+
Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009.
|
| 161 |
+
|
| 162 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems (NIPS), pp. 1097–1105, 2012.
|
| 163 |
+
|
| 164 |
+
Zhe Li, Boqing Gong, and Tianbao Yang. Improved dropout for shallow and deep learning. In Advances in Neural Information Processing Systems (NIPS), 2016.
|
| 165 |
+
|
| 166 |
+
Shugao Ma, Sarah Adel Bargal, Jianming Zhang, Leonid Sigal, and Stan Sclaroff. Do less and achieve more: Training CNNs for action recognition utilizing action images from the web. Pattern Recognition, 2017.
|
| 167 |
+
|
| 168 |
+
Thomas Miconi, Jeff Clune, and Kenneth O Stanley. Differentiable plasticity: training plastic neural networks with backpropagation. arXiv preprint arXiv:1804.02464, 2018.
|
| 169 |
+
|
| 170 |
+
Deepak Mittal, Shweta Bhardwaj, Mitesh M Khapra, and Balaraman Ravindran. Recovering from random pruning: On the plasticity of deep convolutional neural networks. Winter Conference on Applications of Computer Vision, 2018.
|
| 171 |
+
|
| 172 |
+
Pietro Morerio, Jacopo Cavazza, Riccardo Volpi, Rene Vidal, and Vittorio Murino. Curriculum dropout. In Proc. IEEE International Conference on Computer Vision (ICCV), 2017.
|
| 173 |
+
|
| 174 |
+
Steven J Rennie, Vaibhava Goel, and Samuel Thomas. Annealed dropout training of deep networks. In Spoken Language Technology Workshop (SLT), 2014 IEEE, pp. 159–164. IEEE, 2014.
|
| 175 |
+
|
| 176 |
+
Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proc. IEEE International Conference on Computer Vision (ICCV), 2017.
|
| 177 |
+
|
| 178 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 179 |
+
|
| 180 |
+
Sen Song, Kenneth D Miller, and Larry F Abbott. Competitive hebbian learning through spiketiming-dependent synaptic plasticity. Nature neuroscience, 3(9):919, 2000.
|
| 181 |
+
|
| 182 |
+
Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. UCF101: A dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402, 2012.
|
| 183 |
+
|
| 184 |
+
Nitish Srivastava, Geoffrey 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):1929–1958, 2014.
|
| 185 |
+
|
| 186 |
+
Stefan Wager, Sida Wang, and Percy S Liang. Dropout training as adaptive regularization. In Advances in Neural Information Processing Systems (NIPS), 2013.
|
| 187 |
+
|
| 188 |
+
Li Wan, Matthew Zeiler, Sixin Zhang, Yann Le Cun, and Rob Fergus. Regularization of neural networks using dropconnect. In Proc. International Conference on Machine Learning (ICML), 2013.
|
| 189 |
+
|
| 190 |
+
Sida Wang and Christopher Manning. Fast dropout training. In Proc. International Conference on Machine Learning (ICML), pp. 118–126, 2013.
|
| 191 |
+
|
| 192 |
+
Haibing Wu and Xiaodong Gu. Towards dropout training for convolutional neural networks. Neural Networks, 71:1–10, 2015.
|
| 193 |
+
|
| 194 |
+
Jianming Zhang, Zhe Lin, Jonathan Brandt, Xiaohui Shen, and Stan Sclaroff. Top-down neural attention by excitation backprop. In Proc. European Conference on Computer Vision (ECCV), 2016.
|
| 195 |
+
|
| 196 |
+
Jianming Zhang, Sarah Adel Bargal, Zhe Lin, Jonathan Brandt, Xiaohui Shen, and Stan Sclaroff. Top-down neural attention by excitation backprop. International Journal of Computer Vision (IJCV), pp. 1–19, 2017.
|
| 197 |
+
|
| 198 |
+
Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
|
| 199 |
+
|
| 200 |
+
# APPENDIX
|
| 201 |
+
|
| 202 |
+
CNN-2 architecture. Table 3 shows the details of the CNN-2 architecture adopted for Cifar10, Cifar100, and Caltech256 experiments. The size of the softmax layer depends upon the number of classes for each dataset.
|
| 203 |
+
|
| 204 |
+
Table 3: Details of the CNN-2 architecture used for experiments on the Cifar10, Cifar100, and Caltech-256 datasets.
|
| 205 |
+
|
| 206 |
+
<table><tr><td>Layer Type</td><td>Layer Size</td><td>Filter Size</td><td>Padding/Stride</td></tr><tr><td>conv</td><td>96 filters</td><td>5x5</td><td>2/1</td></tr><tr><td>max pool</td><td></td><td>3x3</td><td>0/2</td></tr><tr><td>conv</td><td>128 filters</td><td>5x5</td><td>2/1</td></tr><tr><td>max pool</td><td></td><td>3x3</td><td>0/2</td></tr><tr><td>conv</td><td>256 filters</td><td>5x5</td><td>2/1</td></tr><tr><td>max pool</td><td></td><td>3x3</td><td>0/2</td></tr><tr><td>fc</td><td>2048 units</td><td></td><td></td></tr><tr><td>fc</td><td>2048 units</td><td></td><td></td></tr><tr><td>softmax</td><td>#classes</td><td></td><td></td></tr></table>
|
| 207 |
+
|
| 208 |
+
Least vs. most relevant neurons. Popular dropout methods (e.g. Adaptive Dropout Ba & Frey (2013)) drop useless neurons with low activations during training. In this work we motivate and demonstrate that dropping neurons based on their Excitation Backprop (EB) probability has added benefits. Please note that we are not simply considering neuron activation. We demonstrate the performance of Excitation Dropout compared to the variant Adaptive Dropout [Ba & Frey (2013)] in Table 4. In essence, Adaptive and Excitation Dropout are opposites by dropping the least and most important neurons, respectively.
|
| 209 |
+
|
| 210 |
+
<table><tr><td>Dataset</td><td>Adaptive Dropout</td><td>Excitation Dropout</td></tr><tr><td>Cifar10</td><td>76.82%</td><td>81.94%</td></tr><tr><td>Cifar100</td><td>44.55%</td><td>52.04%</td></tr><tr><td>Caltech256</td><td>23.32%</td><td>35.77%</td></tr><tr><td>UCF101</td><td>71.76%</td><td>73.23%</td></tr></table>
|
| 211 |
+
|
| 212 |
+
Table 4: Accuracy comparison between Adaptive Dropout and Excitation Dropout. The numbers reported in this table are the average test set accuracy over five trained models for each dataset.
|
| 213 |
+
|
| 214 |
+
Model complexity. Excitation Dropout consistently outperforms Standard Dropout (SD), with zero increase in test-time computational complexity. In training, there is a moderate increase in computation: in the worst case, Excitation Dropout will take double (same O-notation complexity) the training time of SD. This will happen when the utilized Excitation Dropout maps are at the first layer of the network. If a middle layer map is used, Excitation Dropout requires an additional partial forward-backward pass. We use maps of fc layers close to the end of the network to reduce this overhead. Table 5 presents a run-time analysis for the two main architectures used in this work and compares it to that of Standard Dropout.
|
| 215 |
+
|
| 216 |
+
Table 5: Run-time comparison: Average time of 100 iterations (in seconds, batch size $\scriptstyle = 5 0$ ) for a Caffe python layer on a GTX Titan X GPU and Intel(R) Xeon(R) CPU E5-2650 v3 ${ \textcircled { a } } ~ 2 . 3 0 \mathrm { G H z }$ . In parenthesis is the percentage increase with respect to SD.
|
| 217 |
+
|
| 218 |
+
<table><tr><td></td><td>Standard Dropout</td><td>Excitation Dropout</td></tr><tr><td rowspan="2">CNN-2 (1 iter) Run-time VGG16 (1 iter)</td><td>0.1532 ± 0.0064</td><td>0.1885 ± 0.0070 (+23%)</td></tr><tr><td>2.2928 士 0.0297</td><td>2.8202 ± 0.0312 (+23%)</td></tr></table>
|
| 219 |
+
|
| 220 |
+
Sensitivity analysis. In this section we present a sensitivity analysis over the dropout rate hyperparameter. In our work, we implement Excitation Dropout with a base retaining probability $P$ , and we compare that to standard dropout with a retaining probability $p$ , where $P = p$ . If Excitation
|
| 221 |
+
|
| 222 |
+
Dropout produced a uniform probability distribution over the desired layer, then every node would have a retain probability equal to the base probability $P$ . For completeness, we add a sensitivity analysis of the parameters $p$ and $P$ in Table 6.
|
| 223 |
+
|
| 224 |
+
<table><tr><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=1>Dropout Scheme</td><td rowspan=1 colspan=1>0.25Dropout</td><td rowspan=1 colspan=1>0.5Dropout</td><td rowspan=1 colspan=1>0.75Dropout</td></tr><tr><td rowspan=1 colspan=1>Cifar10</td><td rowspan=1 colspan=1>StandardExcitation</td><td rowspan=1 colspan=1>79.16%81.38%</td><td rowspan=1 colspan=1>80.13%81.94%</td><td rowspan=1 colspan=1>81.19%81.55%</td></tr><tr><td rowspan=1 colspan=1>Cifar100</td><td rowspan=1 colspan=1>StandardExcitation</td><td rowspan=1 colspan=1>48.44%53.23%</td><td rowspan=1 colspan=1>50.36%52.04%</td><td rowspan=1 colspan=1>51.64%51.87%</td></tr><tr><td rowspan=1 colspan=1>Caltech256</td><td rowspan=1 colspan=1>StandardExcitation</td><td rowspan=1 colspan=1>26.23%33.60%</td><td rowspan=1 colspan=1>28.73%35.77%</td><td rowspan=1 colspan=1>32.51%36.81%</td></tr><tr><td rowspan=1 colspan=1>UCF101</td><td rowspan=1 colspan=1>StandardExcitation</td><td rowspan=1 colspan=1>71.01%73.56%</td><td rowspan=1 colspan=1>71.93%73.23%</td><td rowspan=1 colspan=1>72.92%73.06%</td></tr></table>
|
| 225 |
+
|
| 226 |
+
Table 6: Hyper-parameter sensitivity analysis for the Standard Dropout probability, and the Excitation Dropout base dropout probability. The accuracy is reported on the test set of each dataset. The retaining probability $p$ or $P$ is one minus the dropout rate.
|
| 227 |
+
|
| 228 |
+
Excitation Dropout in Convolutional Layers. Excitation Dropout is a generic formulation that can be applied to any neural network layer. For a convolutional layer, a generic convolutional activation map is in the form of $[ w , h , N ]$ , where $N$ is the number of feature maps while $w$ and $h$ are the spatial dimensions. To apply Excitation Dropout to a convolutional layer, first $p _ { E B }$ is computed for each feature map $N$ as the sum of $p _ { E B }$ across spatial locations $w$ and $h$ . Specific 2D feature maps are then dropped-out following Eqn. 3. We test Excitation Dropout at conv3 of the CNN-2 architecture and obtain the following accuracy results for Cifar10: No Dropout $7 6 . 9 1 \%$ ; Excitation Dropout at conv3 $7 8 . 0 1 \%$ ; Excitation Dropout at $f c 1 8 1 . 9 4 \%$ . Again, we observe an improvement respect to No Dropout, but consistent with the literature [Hinton et al. (2012); Srivastava et al. (2014)], the improvement is not as large as using dropout in fully connected layers.
|
| 229 |
+
|
| 230 |
+
Validation on Multiple Architectures. In this section we report additional results for Caltech256 and Cifar10 datasets considering different architectures. Table 7 reports the results of fine-tuning the deep architectures AlexNet, VGG16 and VGG19 on Caltech256 for the task of image classification. Finally, we adopt the WideResNet (WRN-28-10) architecture, a ResNet style architecture which combines batch normalization and dropout regularization techniques. WideResNet is used to obtain state-of-the-art results on Cifar10. We replace the Standard Dropout layer in the network with Excitation Dropout obtaining $3 . 8 8 \%$ test error on Cifar10 (vs. $4 . 1 7 \%$ Zagoruyko et al.s published result, BMVC16). Therefore, Excitation Dropout gives state-of-the-art result on Cifar10.
|
| 231 |
+
|
| 232 |
+
<table><tr><td>Architecture</td><td>No Dropout (%)</td><td>Standard Dropout (%)</td><td>Curriculum Dropout (%)</td><td>Excitation Dropout (%)</td></tr><tr><td>VGG16</td><td>77.97</td><td>79.11 (+1.14%)</td><td>79.31 (+1.34%)</td><td>79.92 (+1.95%)</td></tr><tr><td>VGG19</td><td>77.98</td><td>79.46 (+1.48%)</td><td>79.66 (+1.68%)</td><td>80.65 (+2.67%)</td></tr><tr><td>AlexNet</td><td>66.48</td><td>68.10 (+1.62%)</td><td>68.71 (+2.23%)</td><td>69.66 (+3.18%)</td></tr></table>
|
| 233 |
+
|
| 234 |
+
Table 7: Test accuracy comparison between No, Standard, Curriculum, and Excitation Dropout in the $f c 6$ layer of three architectures: AlexNet, VGG16 and VGG19, fine-tuned for the image recognition task on Caltech256. The numbers reported are the final test accuracies together with the improvements (in parenthesis) with respect to No Dropout, averaged over five trained models.
|
| 235 |
+
|
| 236 |
+
Additional Visualizations. In this section, we present more visualizations similar to that of Fig. 4 in the main manuscript. Visualizations for a VGG16 network fine-tuned on UCF101 for the actions: PlayingFlute, PlayingSitar, and GolfSwing are presented in Fig.s 6,7,8, respectively. Every column displays the saliency map over the same video frame of an action while incrementally switching off the most $k$ relevant neurons $( k = 0 , 1 0 0 , 2 0 0 , \ldots , 5 0 0 )$ . Excitation Dropout is more robust over higher number of switched off neurons. This is demonstrated through its ability to recover the saliency map even when a high percentage of the most salient neurons is dropped-out. This is done through the alternative learnt paths, which are reflected in the higher number of non-zero activations that remain after dropout compared to other dropout strategies.
|
| 237 |
+
|
| 238 |
+

|
| 239 |
+
Figure 6: Despite the increasing number of relevant neurons being dropped out at test time, Excitation Dropout is capable of restoring more of the saliency map contributing to the specific class: PlayingFlute
|
| 240 |
+
|
| 241 |
+
Additional Plots. In this section we present the $f c$ compression results for three additional datasets: Cifar10, Cifar100, and Caltech256 (Fig. 9), using CNN-2. We study how the predicted ground-truth (GT) probability changes as more neurons are dropped-out at test time. On the left we present the worst case when the neurons dropped are the most relevant to the prediction. The horizontal axis in the graph represents $p _ { c }$ , where $0 ~ \leq ~ p _ { c } ~ \leq ~ 1$ is the cumulative sum of $p _ { E B }$ of neurons which will be switched off starting from the most ‘important’. The analysis is performed for $\mathit { p _ { c } } =$ $\{ 0 , 0 . 0 5 , \hdots , 0 . 9 0 , 0 . 9 5 \}$ . In the center, we present an analogous analysis starting to drop from the ‘least’ relevant neurons. On the right, we present the random case (more realistic) when $k$ neurons $( k \ : = \ : 0 , 1 2 8 , 2 5 6 , \ldots , 2 0 4 8 )$ are randomly switched off. As we drop more neurons, Excitation Dropout (purple curves) is capable of maintaining a much less steep decline of GT probability.
|
| 242 |
+
|
| 243 |
+
Metric Analysis During Training. In this section we report an extended analysis of the metrics: # Neurons ON, Peak $p _ { E B }$ , Entropy of Activations, and Entropy of $p _ { E B }$ during training. Excitation Dropout shows a higher number of active neurons, a higher entropy over activations, a probability distribution $p _ { E B }$ that is more spread (higher entropy over $p _ { E B } .$ ) among the neurons of the layer, leading to a lower peak probability of $p _ { E B }$ and therefore less specialized neurons. These results are observed to have consistent trends over all training iterations for all datasets considered (see Fig.s 10, 11, 12, and 13)
|
| 244 |
+
|
| 245 |
+

|
| 246 |
+
Figure 7: Despite the increasing number of relevant neurons being dropped out at test time, Excitation Dropout is capable of restoring more of the saliency map contributing to the specific class: PlayingSitar
|
| 247 |
+
|
| 248 |
+

|
| 249 |
+
Figure 8: Despite the increasing number of relevant neurons being dropped out at test time, Excitation Dropout is capable of restoring more of the saliency map contributing to the specific class: GolfSwing
|
| 250 |
+
|
| 251 |
+

|
| 252 |
+
Figure 9: Robustness of predicted ground-truth class probabilities as more neurons are dropped out for each dataset’s test images. We train CNN-2 from scratch with Excitation, Curriculum, Standard, and No Dropout at the $f c 1$ layer, averaging results over five trained models. The standard deviation is depicted around the mean curve using a lighter shade. Left: the most relevant neurons with respect to the $p _ { c }$ threshold are switched off. Center: the least relevant neurons with respect to the $p _ { c }$ threshold are switched off. Right: $k$ neurons are randomly switched off. In all scenarios, Excitation Dropout shows more robustness to network compression (dropping $f c$ neurons $\equiv$ removing filters).
|
| 253 |
+
|
| 254 |
+

|
| 255 |
+
Figure 10: Cifar10. # Neurons ON, Peak $p _ { E B }$ , Entropy of Activations, and Entropy of $p _ { E B }$ over time during training.
|
| 256 |
+
|
| 257 |
+

|
| 258 |
+
Figure 11: Cifar100. # Neurons ON, Peak $p _ { E B }$ , Entropy of Activations, and Entropy of $p _ { E B }$ over time during training.
|
| 259 |
+
|
| 260 |
+

|
| 261 |
+
Figure 12: Caltech256. # Neurons ON, Peak $p _ { E B }$ , Entropy of Activations, and Entropy of ${ p } _ { E B }$ over time during training.
|
| 262 |
+
|
| 263 |
+

|
| 264 |
+
Figure 13: UCF101. # Neurons ON, Peak $p _ { E B }$ , Entropy of Activations, and Entropy of $p _ { E B }$ over time during training.
|
parse/train/H1xQSjCqFQ/H1xQSjCqFQ_content_list.json
ADDED
|
@@ -0,0 +1,1433 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "EXCITATION DROPOUT: ENCOURAGING PLASTICITYIN DEEP NEURAL NETWORKS",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
112,
|
| 9 |
+
821,
|
| 10 |
+
160
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
184,
|
| 20 |
+
398,
|
| 21 |
+
212
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
248,
|
| 32 |
+
544,
|
| 33 |
+
263
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "We propose a guided dropout regularizer for deep networks based on the evidence of a network prediction: the firing of neurons in specific paths. In this work, we utilize the evidence at each neuron to determine the probability of dropout, rather than dropping out neurons uniformly at random as in standard dropout. In essence, we dropout with higher probability those neurons which contribute more to decision making at training time. This approach penalizes high saliency neurons that are most relevant for model prediction, i.e. those having stronger evidence. By dropping such high-saliency neurons, the network is forced to learn alternative paths in order to maintain loss minimization, resulting in a plasticity-like behavior, a characteristic of human brains too. We demonstrate better generalization ability, an increased utilization of network neurons, and a higher resilience to network compression using several metrics over four image/video recognition benchmarks. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
280,
|
| 43 |
+
764,
|
| 44 |
+
446
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
473,
|
| 55 |
+
336,
|
| 56 |
+
489
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Dropout [Hinton et al. (2012); Srivastava et al. (2014)] is a classical regularization technique that is used in many state-of-the-art deep neural networks, typically applied to fully-connected layers. Standard Dropout selects a fraction of neurons to randomly drop out by zeroing their forward signal. In this work, we propose a scheme for biasing this selection. Our scheme utilizes the contribution of neurons to the prediction made by the network at a certain training iteration stage. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
505,
|
| 66 |
+
823,
|
| 67 |
+
575
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Dropout can be interpreted as model averaging technique that avoids overfitting on training data, allowing for better generalization on unseen test data. A recent variant of dropout that targets improved generalization ability is Curriculum Dropout [Morerio et al. (2017)]. It targets adjusting the dropout rate by exponentially increasing the unit suppression rate during training, answering the question How many neurons to drop out over time? Like Standard Dropout [Hinton et al. (2012); Srivastava et al. (2014)], Curriculum Dropout selects the neurons to be dropped randomly. In this work, however, we target at determining how the dropped neurons are selected, answering the question Which neurons to drop out? ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
582,
|
| 77 |
+
823,
|
| 78 |
+
693
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Our approach is inspired by brain plasticity [Hebb (2005); Song et al. (2000); Mittal et al. (2018); Miconi et al. (2018)]. We deliberately, and temporarily, paralyze/injure neurons to enforce learning alternative paths in a deep network. At training time, neurons that are more relevant to the current prediction are given a higher dropout probability. The relevance of a neuron for making a certain prediction is quantified using Excitation Backprop, a top-down saliency approach proposed by Zhang et al. (2016). Excitation Backprop conveniently yields a probability distribution at each layer that reflects neuron saliency, or neuron contribution to the prediction being made. This is utilized in the pipeline of our approach, named Excitation Dropout, which is summarized in Fig. 1. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
700,
|
| 88 |
+
825,
|
| 89 |
+
811
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In particular, we study how this approach improves generalization through utilizing more network’s neurons for image classification. We report an increased recognition rate for both CNN models that are fine-tuned and trained from scratch. This improvement is validated on four image/video recognition datasets, and ranges from $1 . 1 \\% - 6 . 3 \\%$ over state-of-the-art Curriculum Dropout. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
819,
|
| 99 |
+
823,
|
| 100 |
+
875
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Next, we examine the effect of our approach on network utilization. Mittal et al. (2018) and Ma et al. (2017) introduce metrics that measure network utilization. We show a consistent increased network utilization using Excitation Dropout on four image/video recognition datasets. For example, averaged over all four benchmarks, we get $7 6 . 5 5 \\%$ reduction in conservative filters, filters whose parameters do not change significantly during training, as compared to Standard Dropout. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
176,
|
| 109 |
+
882,
|
| 110 |
+
823,
|
| 111 |
+
924
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "image",
|
| 117 |
+
"img_path": "images/a6cd4c0b90572493c61bafb0d0a027deae64fbc8a02b1ea8e9ccd622c7fe66b8.jpg",
|
| 118 |
+
"image_caption": [
|
| 119 |
+
"Figure 1: Training pipeline of Excitation Dropout. Step 1: A minibatch goes through the standard forward pass. Step 2: Backward EB is performed until the specified dropout layer; this gives a neuron saliency map at the dropout layer in the form of a probability distribution. Step 3: The probability distribution is used to generate a binary mask for each image of the batch based on a Bernoulli distribution determining whether each neuron will be dropped out or not. Step 4: A forward pass is performed from the specified dropout layer to the end of the network, zeroing the activations of the dropped out neurons. Step 5: The standard backward pass is performed to update model weights. "
|
| 120 |
+
],
|
| 121 |
+
"image_footnote": [],
|
| 122 |
+
"bbox": [
|
| 123 |
+
176,
|
| 124 |
+
102,
|
| 125 |
+
816,
|
| 126 |
+
301
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
450,
|
| 136 |
+
823,
|
| 137 |
+
478
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "Finally, we study network resilience to neuron dropping at test time. We observe that training with Excitation Dropout leads to models that are a lot more robust when layers are shrunk/compressed by removing units. We demonstrate this when dropping the most relevant neurons, the least relevant neurons, and with a random dropping selection. This can be quite desirable for compressing/distilling [Hinton et al. (2015)] a model, e.g. for deployment on mobile devices. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
484,
|
| 147 |
+
825,
|
| 148 |
+
556
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "In summary, by encouraging plasticity-like behavior, our contributions are threefold: ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
173,
|
| 157 |
+
561,
|
| 158 |
+
725,
|
| 159 |
+
577
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "1. Better generalization on test data. \n2. Higher utilization of network neurons. \n3. Resilience to network compression. ",
|
| 166 |
+
"bbox": [
|
| 167 |
+
210,
|
| 168 |
+
588,
|
| 169 |
+
485,
|
| 170 |
+
640
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "2 RELATED WORK ",
|
| 177 |
+
"text_level": 1,
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
662,
|
| 181 |
+
344,
|
| 182 |
+
679
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "Dropout was first introduced by Hinton et al. (2012) and Srivastava et al. (2014) as a way to prevent neural units from co-adapting too much on the training data by randomly omitting subsets of neurons at each iteration of the training phase. ",
|
| 189 |
+
"bbox": [
|
| 190 |
+
174,
|
| 191 |
+
694,
|
| 192 |
+
823,
|
| 193 |
+
736
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 1
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "Some follow-up works have explored different schemes for determining how much dropout is applied to neurons/weights. Wager et al. (2013) described the dropout mechanism in terms of an adaptive regularization, establishing a connection to the AdaGrad algorithm. Inspired by information theoretic principles, Achille & Soatto (2018) propose Information Dropout, a generalization dropout which can be automatically adapted to the data. Kingma et al. (2015) showed that a relationship between dropout and Bayesian inference can be extended when the dropout rates are directly learned from the data. Kang et al. (2017) introduces Shakeout which instead of randomly discarding units as dropout does, it randomly enhances or reverses each units contribution to the next layer. Wan et al. (2013) introduced the DropConnect framework, adding dynamic sparsity on the weights of a deep model. DropConnect generalized Standard Dropout by randomly dropping the weights rather than the neuron activations in the network. Rennie et al. (2014) proposed a time scheduling for the retaining probability for the neurons in the network. The presented adaptive regularization scheme smoothly decreased in time the number of neurons turned off during training. ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
174,
|
| 202 |
+
743,
|
| 203 |
+
825,
|
| 204 |
+
922
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 1
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "Recently, Morerio et al. (2017) proposed Curriculum Dropout to adjust the dropout rate in the opposite direction, exponentially increasing unit suppression rate during training, leading to a better generalization on unseen data. ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
176,
|
| 213 |
+
103,
|
| 214 |
+
823,
|
| 215 |
+
145
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 2
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "Other works focus on which neurons to drop out. Dropout is usually applied to fully-connected layers of a deep network. Conversely, Wu & Gu (2015) studied the effect of dropout in convolutional and pooling layers. The selection of neurons to drop depends on the layer where they reside. In contrast, we select neurons within a layer based on their contribution. Wang & Manning (2013) demonstrate that sampling neurons from a Gaussian approximation gave an order of magnitude speedup and more stability during training. Li et al. (2016) proposed to use multinomial sampling for dropout, i.e. keeping neurons according to a multinomial distribution with specific probabilities for different neurons. Ba & Frey (2013) jointly trained a binary belief network with a neural network to regularize its hidden units by selectively setting activations to zero accordingly to their magnitude. While this takes into consideration the magnitude of the forward activations, it does not take into consideration the relationship of these activations to the ground-truth. In contrast, we drop neurons based on how they contribute to a network’s decision. ",
|
| 222 |
+
"bbox": [
|
| 223 |
+
174,
|
| 224 |
+
154,
|
| 225 |
+
825,
|
| 226 |
+
319
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 2
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "We compare our results against Morerio et al. (2017). To the best of our knowledge, we are the first to probabilistically select neurons to dropout based on their task-relevance. ",
|
| 233 |
+
"bbox": [
|
| 234 |
+
174,
|
| 235 |
+
325,
|
| 236 |
+
823,
|
| 237 |
+
354
|
| 238 |
+
],
|
| 239 |
+
"page_idx": 2
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"type": "text",
|
| 243 |
+
"text": "3 METHOD ",
|
| 244 |
+
"text_level": 1,
|
| 245 |
+
"bbox": [
|
| 246 |
+
176,
|
| 247 |
+
382,
|
| 248 |
+
281,
|
| 249 |
+
398
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "3.1 BACKGROUND ",
|
| 256 |
+
"text_level": 1,
|
| 257 |
+
"bbox": [
|
| 258 |
+
176,
|
| 259 |
+
417,
|
| 260 |
+
315,
|
| 261 |
+
433
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "Saliency maps that quantize the importance of class-specific neurons for an input image are instrumental to our proposed scheme. Popular approaches include Class Activation Maps (CAM) [Zhou et al. (2016)], Gradient-weighted Class Activation Mapping (Grad-CAM) [Selvaraju et al. (2017)], and Excitation Backprop (EB) [Zhang et al. (2017)]. A thorough analysis of all saliency methods is out of the scope of this work, and the saliency problem in general is far from solved. We choose to use EB since it produces a valid probability distribution for each network layer. The saliency maps obtained using this approach are evaluated for spatial localization of objects and demonstrate the ability of pointing to the right region of an image [Zhang et al. (2017)]. ",
|
| 268 |
+
"bbox": [
|
| 269 |
+
174,
|
| 270 |
+
446,
|
| 271 |
+
825,
|
| 272 |
+
559
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 2
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "In a standard CNN, the forward activation of neuron $a _ { j }$ is computed by $\\begin{array} { r } { \\widehat { a } _ { j } = \\phi ( \\sum _ { i } w _ { i j } \\widehat { a } _ { i } + b _ { i } ) } \\end{array}$ , where $\\widehat { a } _ { i }$ is the activation coming from the previous layer, $\\phi$ b bis a nonlinear activation function, $w _ { i j }$ and $b _ { i }$ bare the weight from neuron $i$ to neuron $j$ and the added bias at layer $i$ , respectively. EB devises a backpropagation formulation able to reconstruct the evidence used by a deep model to make decisions. It computes the probability of each neuron recursively using conditional probabilities $P ( a _ { i } | a _ { j } )$ in a top-down order starting from a probability distribution over the output units, as follows: ",
|
| 279 |
+
"bbox": [
|
| 280 |
+
174,
|
| 281 |
+
565,
|
| 282 |
+
825,
|
| 283 |
+
662
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 2
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "equation",
|
| 289 |
+
"img_path": "images/4d8afb918dda2beef6d9efdb3fc549a0125da196d36bee6379877cecb3e9a1a1.jpg",
|
| 290 |
+
"text": "$$\nP ( a _ { i } ) = \\sum _ { a _ { j } \\in \\mathcal { P } _ { i } } P ( a _ { i } | a _ { j } ) P ( a _ { j } )\n$$",
|
| 291 |
+
"text_format": "latex",
|
| 292 |
+
"bbox": [
|
| 293 |
+
397,
|
| 294 |
+
667,
|
| 295 |
+
601,
|
| 296 |
+
704
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 2
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "text",
|
| 302 |
+
"text": "where $\\mathcal { P } _ { i }$ is the parent node set of $a _ { i }$ . EB passes top-down signals through excitatory connections having non-negative activations, excluding from the competition inhibitory ones. EB is designed with an assumption of non-negative activations. Most modern CNNs use ReLU activation functions, which satisfy this assumption. Therefore, negative weights can be assumed to not positively contribute to the final prediction. Assuming $C _ { j }$ the child node set of $a _ { j }$ , for each $a _ { i } \\in C _ { j }$ , the conditional winning probability $P ( a _ { i } | a _ { j } )$ is defined as ",
|
| 303 |
+
"bbox": [
|
| 304 |
+
173,
|
| 305 |
+
715,
|
| 306 |
+
825,
|
| 307 |
+
801
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 2
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "equation",
|
| 313 |
+
"img_path": "images/e7e9fe7d59ab150e407dd2faf0ffec8016d7b106324400cb15e0990886ff1e1d.jpg",
|
| 314 |
+
"text": "$$\nP ( a _ { i } | a _ { j } ) = \\left\\{ \\begin{array} { l l } { Z _ { j } \\widehat { a } _ { i } w _ { i j } , } & { \\mathrm { i f } \\ w _ { i j } \\geq 0 , } \\\\ { 0 , } & { \\mathrm { o t h e r w i s e } } \\end{array} \\right.\n$$",
|
| 315 |
+
"text_format": "latex",
|
| 316 |
+
"bbox": [
|
| 317 |
+
375,
|
| 318 |
+
815,
|
| 319 |
+
620,
|
| 320 |
+
851
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 2
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "where $Z _ { j }$ is a normalization factor such that $\\begin{array} { r } { \\sum _ { a _ { i } \\in \\mathcal { C } _ { j } } P ( a _ { i } | a _ { j } ) = 1 } \\end{array}$ . Recursively propagating the top-down signal and preserving the sum of backpropagated probabilities, it is possible to highlight the salient neurons in each layer using Eqn. 1, i.e. neurons that mostly contribute to a specific task. We will refer to the distribution of $P ( a _ { i } )$ as $p _ { E B } ( a _ { i } )$ . ",
|
| 327 |
+
"bbox": [
|
| 328 |
+
174,
|
| 329 |
+
864,
|
| 330 |
+
823,
|
| 331 |
+
924
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 2
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "image",
|
| 337 |
+
"img_path": "images/13b48eaa2c04c820150b59d7e2cb1113153194ce36691f10b5f7572a5b0e1d83.jpg",
|
| 338 |
+
"image_caption": [
|
| 339 |
+
"Figure 2: The retaining probability, $p$ , as a function of the Excitation Backprop probability $p _ { E B }$ . This plot was created using $N = 1 0$ and a base retaining probability $P = 0 . 5$ . In this case, when the saliency of neurons is uniform, i.e. $p _ { E B } = 0 . 1$ , then $p = P$ as marked in the figure. "
|
| 340 |
+
],
|
| 341 |
+
"image_footnote": [],
|
| 342 |
+
"bbox": [
|
| 343 |
+
328,
|
| 344 |
+
102,
|
| 345 |
+
648,
|
| 346 |
+
238
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 3
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "text",
|
| 352 |
+
"text": "3.2 EXCITATION DROPOUT ",
|
| 353 |
+
"text_level": 1,
|
| 354 |
+
"bbox": [
|
| 355 |
+
176,
|
| 356 |
+
314,
|
| 357 |
+
374,
|
| 358 |
+
329
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 3
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "text",
|
| 364 |
+
"text": "In the standard formulation of dropout [Hinton et al. (2012); Srivastava et al. (2014)], the suppression of a neuron in a given layer is modeled by a Bernoulli random variable $0 < p \\leq 1$ where $p$ is defined as the probability of retaining a neuron. Given a specific layer where dropout is applied, during the training phase, each neuron is turned off with a probability $1 - p$ . ",
|
| 365 |
+
"bbox": [
|
| 366 |
+
173,
|
| 367 |
+
340,
|
| 368 |
+
825,
|
| 369 |
+
397
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 3
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "We argue for a different approach that is guided in the way it selects neurons to be dropped. In a training iteration, certain paths have high excitation contributing to the resulting classification, while other regions of the network have low response. We encourage learning alternative paths (plasticity) through the temporary damaging of the currently highly excited path. We re-define the probability of retaining a neuron as a function of its contribution in the currently highly excited path ",
|
| 376 |
+
"bbox": [
|
| 377 |
+
173,
|
| 378 |
+
404,
|
| 379 |
+
825,
|
| 380 |
+
474
|
| 381 |
+
],
|
| 382 |
+
"page_idx": 3
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"type": "equation",
|
| 386 |
+
"img_path": "images/fd251c1dcfb46905f2b4b1e7649db12a474c0d72e53f74da2f82d06defa1ab4a.jpg",
|
| 387 |
+
"text": "$$\np = 1 - \\frac { ( 1 - P ) * ( N - 1 ) * p _ { E B } } { ( ( 1 - P ) * N - 1 ) * p _ { E B } + P }\n$$",
|
| 388 |
+
"text_format": "latex",
|
| 389 |
+
"bbox": [
|
| 390 |
+
364,
|
| 391 |
+
481,
|
| 392 |
+
633,
|
| 393 |
+
515
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 3
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "text",
|
| 399 |
+
"text": "where $p _ { E B }$ is the probability backpropagated through the EB formulation (Eqn. 1) in layer $l$ , $P$ is the base probability of retaining a neuron when all neurons are equally contributing to the prediction and $N$ is the number of neurons in a fully-connected layer $l$ or the number of filters in a convolutional layer $l$ . The retaining probability defined in Eqn. 3 drops neurons which contribute the most to the recognition of a specific class, with higher probability. Dropping out highly relevant neurons, we retain less relevant ones and thus encourage them to awaken. We also study how this compares to dropping the least relevant neurons (Adaptive Dropout by Ba & Frey (2013)) in the Appendix. ",
|
| 400 |
+
"bbox": [
|
| 401 |
+
173,
|
| 402 |
+
521,
|
| 403 |
+
825,
|
| 404 |
+
619
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 3
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "Fig. 2 shows $p$ as a function of $p _ { E B }$ . To gain some intuition for Eqn. 3, we can look more closely at the graph: 1) If neuron $a _ { i }$ has $p _ { E B } ( a _ { i } ) = 1$ : This results in a retaining probability of $p = 0$ . We do not want to keep a neuron which has a high contribution to the correct label. 2) If neuron $a _ { i }$ has $p _ { E B } ( a _ { i } ) = 0$ : This results in a retaining probability of $p = 1$ . We want to keep a neuron which has not contributed to the correct classification of an image. 3) If neuron $a _ { i }$ has $\\dot { p } _ { E B } ( a _ { i } ) = 1 / N$ , i.e. $p _ { E B }$ is a uniform probability distribution: This results in a retaining probability $p = P$ . We want to keep a neuron with base probability $P$ since all neurons contribute equally. ",
|
| 411 |
+
"bbox": [
|
| 412 |
+
173,
|
| 413 |
+
626,
|
| 414 |
+
825,
|
| 415 |
+
724
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 3
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "Eqn. 3 provides a dropout probability for each neuron, which is then used as the parameter of a Bernoulli distribution giving a binary dropout mask. During training, each image in a batch leads to different excitatory connections in the network and therefore has a different $p _ { E B }$ distribution, consequently leading to a different dropout mask. Fig. 1 presents the pipeline of Excitation Dropout at training time, and a run-time analysis is presented in the Appendix. ",
|
| 422 |
+
"bbox": [
|
| 423 |
+
174,
|
| 424 |
+
731,
|
| 425 |
+
825,
|
| 426 |
+
801
|
| 427 |
+
],
|
| 428 |
+
"page_idx": 3
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"type": "text",
|
| 432 |
+
"text": "4 EXPERIMENTS ",
|
| 433 |
+
"text_level": 1,
|
| 434 |
+
"bbox": [
|
| 435 |
+
176,
|
| 436 |
+
821,
|
| 437 |
+
326,
|
| 438 |
+
838
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 3
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "In this section, we present how Excitation Dropout improves the generalization ability on four image/video recognition datasets in fully connected layers of different architectures. We then present an analysis of how Excitation Dropout affects the utilization of network neurons on the same datasets. Finally, we examine the resilience of a model trained using Excitation Dropout to network compression. ",
|
| 445 |
+
"bbox": [
|
| 446 |
+
174,
|
| 447 |
+
853,
|
| 448 |
+
823,
|
| 449 |
+
924
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 3
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "image",
|
| 455 |
+
"img_path": "images/7f31a87e4102999f1f968caeeb79910d91cac21faf742b96537e81b511da59aa.jpg",
|
| 456 |
+
"image_caption": [
|
| 457 |
+
"Figure 3: We compare the test accuracy of different dropout training strategies on four image/video recognition datasets: Cifar10, Cifar100, Caltech256, UCF101. Results presented here are averaged over five trained models and the standard deviation is depicted around the mean curve using a lighter shade. Excitation Dropout performs best after convergence compared to the other strategies. "
|
| 458 |
+
],
|
| 459 |
+
"image_footnote": [],
|
| 460 |
+
"bbox": [
|
| 461 |
+
183,
|
| 462 |
+
102,
|
| 463 |
+
807,
|
| 464 |
+
486
|
| 465 |
+
],
|
| 466 |
+
"page_idx": 4
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"type": "text",
|
| 470 |
+
"text": "4.1 DATASETS AND ARCHITECTURES ",
|
| 471 |
+
"text_level": 1,
|
| 472 |
+
"bbox": [
|
| 473 |
+
176,
|
| 474 |
+
570,
|
| 475 |
+
444,
|
| 476 |
+
583
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 4
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "We present results on four image/video recognition datasets. Cifar10 and Cifar100 [Krizhevsky (2009)] are image recognition datasets, each consisting of $6 0 0 0 0 3 2 \\times 3 2$ tiny RGB natural images. Cifar10 images are distributed over 10 classes with 6000 images per class, and Cifar100 images are distributed over 100 classes with 600 images per class. Training and test splits contain $5 0 K$ and $1 0 K$ images, respectively. We feed the network with the original image dimensions. Caltech256 [Griffin et al. (2007)] is an image recognition dataset consisting 31000 RGB images divided in 256 classes. We consider five different random splits of 50 train images and 20 testing images for each class. Images were reshaped to $1 2 8 \\times 1 2 8$ pixel to feed the network. UCF101 [Soomro et al. (2012)] is a video action recognition dataset based on 13320 actions belonging to 101 action classes. For this dataset we consider a frame-based action recognition task. The images are resized to $2 2 4 \\times 2 2 4$ and $2 2 7 \\times 2 2 7$ to fit the input layers of the VGG and AlexNet architectures, respectively. ",
|
| 483 |
+
"bbox": [
|
| 484 |
+
174,
|
| 485 |
+
597,
|
| 486 |
+
825,
|
| 487 |
+
750
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 4
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "text",
|
| 493 |
+
"text": "We present results on four architectures. Relatively shallow architectures are trained from scratch, and deeper popular architectures are fine-tuned after being pre-trained on ImageNet [Deng et al. (2009)]. Models trained from scratch: We train the CNN-2 architecture used in Morerio et al. (2017), the state-of-the-art dropout variant, for comparison purposes. This architecture consists of three convolutional and two fully-connected layers (see Appendix). We train this network from scratch for $1 0 0 K$ iterations on the datasets: Cifar-10, Cifar-100 and Caltech-256. We use minibatches of 100 images and fix the learning rate to be $1 0 ^ { - 3 }$ , decreasing to $1 0 ^ { - 4 }$ after $2 5 K$ iterations. ",
|
| 494 |
+
"bbox": [
|
| 495 |
+
174,
|
| 496 |
+
757,
|
| 497 |
+
825,
|
| 498 |
+
854
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 4
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "text",
|
| 504 |
+
"text": "Fine-tuned models: We fine-tune the commonly used architectures: AlexNet [Krizhevsky et al. (2012)], VGG16 and VGG19 [Simonyan & Zisserman (2014)] pre-trained on ImageNet. We finetune the models for a frame by frame action recognition task on UCF101. The learning rate is fixed to $1 0 ^ { - 3 }$ for all the processes. We fine-tune AlexNet for $5 K$ while VGG16 and VGG19 for $3 0 K$ iterations. We use a batch size of 128 and 50 images for AlexNet and VGG16/19, respectively. ",
|
| 505 |
+
"bbox": [
|
| 506 |
+
174,
|
| 507 |
+
856,
|
| 508 |
+
823,
|
| 509 |
+
922
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 4
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "table",
|
| 515 |
+
"img_path": "images/6937ed633a9b516d7094e363cc747c0f8d3904e15f04e650b38553bede29539a.jpg",
|
| 516 |
+
"table_caption": [],
|
| 517 |
+
"table_footnote": [],
|
| 518 |
+
"table_body": "<table><tr><td>Architecture</td><td>No Dropout (%)</td><td>Standard Dropout (%)</td><td>Curriculum Dropout (%)</td><td>Excitation Dropout (%)</td></tr><tr><td>VGG16</td><td>69.37</td><td>71.93 (+2.56%)</td><td>72.14 (+2.77%)</td><td>73.23 (+3.86%)</td></tr><tr><td>VGG19</td><td>71.32</td><td>72.52 (+1.29%)</td><td>73.18 (+1.86%)</td><td>74.34 (+3.02%)</td></tr><tr><td>AlexNet</td><td>62.89</td><td>64.50 (+1.61%)</td><td>64.55 (+1.66%)</td><td>67.56 (+4.67%)</td></tr></table>",
|
| 519 |
+
"bbox": [
|
| 520 |
+
200,
|
| 521 |
+
101,
|
| 522 |
+
795,
|
| 523 |
+
174
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 5
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "text",
|
| 529 |
+
"text": "Table 1: Test accuracy comparison between No, Standard, Curriculum and Excitation Dropout in the $f c 6$ layer of three architectures: AlexNet, VGG16 and VGG19, fine-tuned for the action recognition task on UCF101. The numbers reported are the final test accuracies together with the improvements (in parenthesis) with respect to No Dropout, averaged over five trained models. ",
|
| 530 |
+
"bbox": [
|
| 531 |
+
176,
|
| 532 |
+
184,
|
| 533 |
+
823,
|
| 534 |
+
241
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 5
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "table",
|
| 540 |
+
"img_path": "images/0a64ecc03ed6c80889706e3b53d5c5aec57de1a1b5de1b88efc8aa8695f92aaa.jpg",
|
| 541 |
+
"table_caption": [
|
| 542 |
+
"Table 2: Different metrics to reflect the usage of network capacity in the first fully-connected layer of the CNN-2 architecture consisting of 2048 neurons and the VGG16 consisting of 4096 neurons. Results presented here are averaged over five trained models for each of the datasets: Cifar10, Cifar100, Caltech256 and UCF101 $\\sigma$ in brackets). Excitation Dropout consistently produces more neurons with non-zero activations, has a more spread saliency map leading to a lower saliency peak, has a higher entropy of both activations and saliency, and has a lower number of conservative filters; all reflecting an improved utilization of the network neurons using Excitation Dropout. "
|
| 543 |
+
],
|
| 544 |
+
"table_footnote": [],
|
| 545 |
+
"table_body": "<table><tr><td>Dataset</td><td>Metric</td><td>Standard Dropout</td><td>Curriculum Dropout</td><td>Excitation Dropout</td></tr><tr><td rowspan=\"4\">Cripfi</td><td># Neurons ON Peak pEB</td><td>1194 (±153) 0.011 (±0.004)</td><td>1169 (±61) 0.009 (±0.001)</td><td>1325 (±61) 0.003 (±0.0002)</td></tr><tr><td>Entropy of Activations</td><td>3.55 (±0.72)</td><td>3.50 (±0.12)</td><td></td></tr><tr><td>Entropy of pEB</td><td></td><td></td><td>4.29 (±0.28)</td></tr><tr><td>Conservative Filters△=0.25</td><td>3.28 (±0.56) 1204 (±37)</td><td>3.32 (±0.13) 959 (±34)</td><td>4.26 (±0.26) 124(±22)</td></tr><tr><td rowspan=\"4\">cormfi</td><td># Neurons ON Peak pEB</td><td>453 (±183) 0.011 (±0.0004)</td><td>460 (±75) 0.012 (±0.0004)</td><td>943 (±131) 0.005 (±0.0005)</td></tr><tr><td>Entropy of Activations</td><td>1.67 (±0.31)</td><td>1.70 (±0.29)</td><td>3.21 (±0.44)</td></tr><tr><td>Entropy of pEB</td><td>1.64 (±0.27)</td><td>1.67 (±0.26)</td><td>3.17 (±0.41)</td></tr><tr><td>Conservative Filters△=0.30</td><td>2048 (±51)</td><td>2038 (±44)</td><td>14 (±13)</td></tr><tr><td rowspan=\"5\">Ceresst5</td><td># Neurons ON Peak pEB</td><td>412 (±126) 0.014 (±0.0007)</td><td>471 (±146)</td><td>702 (±171)</td></tr><tr><td></td><td></td><td>0.013 (±0.0006)</td><td>0.007 (±0.0003)</td></tr><tr><td>Entropy of Activations</td><td>1.63 (±0.32)</td><td>1.84 (±0.35)</td><td>2.63 (±0.23)</td></tr><tr><td>Entropy of pEB</td><td>1.58 (±0.29)</td><td>1.77 (±0.31)</td><td>2.59 (±0.22)</td></tr><tr><td>Conservative Filters△=1.25</td><td>2048 (±46)</td><td>2048 (±49)</td><td>1671 (±31)</td></tr><tr><td rowspan=\"5\">IUIIIN</td><td># Neurons ON Peak pEB</td><td>1120 (±25)</td><td>1143 (±22)</td><td>1404 (±37)</td></tr><tr><td></td><td>0.007 (±0.0002)</td><td>0.007 (±0.0002)</td><td>0.004 (±0.0002)</td></tr><tr><td>Entropy of Activations</td><td>2.04 (±0.23)</td><td>2.08 (±0.21)</td><td>2.51 (±0.18)</td></tr><tr><td>Entropy of pEB</td><td>1.92 (±0.22)</td><td>1.95 (±0.20)</td><td>2.42 (±0.18)</td></tr><tr><td>Conservative Filters△=0.15</td><td>3599 (±66)</td><td>3859 (±53)</td><td>44(±36)</td></tr></table>",
|
| 546 |
+
"bbox": [
|
| 547 |
+
176,
|
| 548 |
+
261,
|
| 549 |
+
823,
|
| 550 |
+
571
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 5
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "text",
|
| 556 |
+
"text": "4.2 SETUP AND RESULTS: GENERALIZATION ",
|
| 557 |
+
"text_level": 1,
|
| 558 |
+
"bbox": [
|
| 559 |
+
174,
|
| 560 |
+
700,
|
| 561 |
+
498,
|
| 562 |
+
714
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 5
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "text",
|
| 568 |
+
"text": "In this section we compare the performance of Excitation Dropout to that of No Dropout, Standard Dropout, and Curriculum Dropout [Morerio et al. (2017)]. We train a CNN-2 model from scratch on the datasets: Cifar10, Cifar100, Caltech256. Fig. 3 depicts the test accuracies over training iterations for the three datasets averaged over five trained models. After convergence, Excitation Dropout demonstrates a significant improvement in performance compared to other methods. We hypothesize that Excitation Dropout takes longer to converge due to the additional loop (Steps 2-4 in Fig. 1) introduced in the learning process, and due to the learning of the alternative paths. We note that Excitation Dropout, during training, uses a different binary mask for each image in a minibatch, while in Standard Dropout, one random mask is employed per minibatch. To prove that it is precisely the fact that masks reflective of the particular input give rise to a boost in accuracy, and not the fact that different masks are used for different images, we add a comparison with Standard Dropout having a different random mask for each image. We refer to this accuracy as ‘Standard Dropout $^ +$ Mask/Img’ in the plots. As expected, the latter approach is comparable to Standard Dropout in performance. ",
|
| 569 |
+
"bbox": [
|
| 570 |
+
174,
|
| 571 |
+
729,
|
| 572 |
+
825,
|
| 573 |
+
924
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 5
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "image",
|
| 579 |
+
"img_path": "images/2fa319d5f33636ca112a15cb60fa1f1b00877fc4929fb69c77caab7893d92bb1.jpg",
|
| 580 |
+
"image_caption": [
|
| 581 |
+
"Figure 4: Visualizations for a VGG16 network fine-tuned on UCF101. The middle columns display the saliency map over the same video frame of the action HorseRiding while incrementally switching off the most $k$ relevant/salient neurons $( k = 0 , 1 0 0 , 2 0 0 , \\ldots , 5 0 0 )$ in the $f c 6$ layer at test time. Excitation Dropout shows more robustness when more neurons are switched off. This is demonstrated through its ability to recover more of the saliency map even when a high percentage of the most salient neurons is dropped-out. This ability reflects the alternative learnt paths. Histograms of the leftmost and rightmost saliency maps are presented to demonstrate that Excitation Dropout has a wider range of saliency values. "
|
| 582 |
+
],
|
| 583 |
+
"image_footnote": [],
|
| 584 |
+
"bbox": [
|
| 585 |
+
176,
|
| 586 |
+
101,
|
| 587 |
+
816,
|
| 588 |
+
387
|
| 589 |
+
],
|
| 590 |
+
"page_idx": 6
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "text",
|
| 594 |
+
"text": "Next, we evaluate the effectiveness of Excitation Dropout on popular network architectures that employ dropout layers: AlexNet, VGG16, VGG19. This is done by fine-tuning on the video recognition dataset UCF101. Fig. 3 shows superior Excitation Dropout performance on AlexNet fine-tuned on UCF101. Table 1 presents more comparative results on other deep architectures by reporting the accuracy after convergence. Again, Excitation Dropout demonstrates higher generalizability on the test data for all architectures. ",
|
| 595 |
+
"bbox": [
|
| 596 |
+
174,
|
| 597 |
+
527,
|
| 598 |
+
825,
|
| 599 |
+
611
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 6
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "text",
|
| 605 |
+
"text": "For fair comparison, we set $p = 0 . 5$ for Standard Dropout and $P = 0 . 5$ for the base retaining probability of Excitation Dropout in all experiments1. We perform dropout in the first fully-connected layer of the networks (fc1 for CNN-2 and $f c 6$ for AlexNet and VGGs) for Standard, Curriculum, and Excitation Dropout. For Curriculum Dropout we fix the parameter $\\gamma$ to $5 * 1 0 ^ { - 4 }$ as in Morerio et al. (2017). ",
|
| 606 |
+
"bbox": [
|
| 607 |
+
174,
|
| 608 |
+
617,
|
| 609 |
+
825,
|
| 610 |
+
688
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 6
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "4.3 SETUP AND RESULTS: UTILIZATION OF NETWORK NEURONS ",
|
| 617 |
+
"text_level": 1,
|
| 618 |
+
"bbox": [
|
| 619 |
+
176,
|
| 620 |
+
708,
|
| 621 |
+
637,
|
| 622 |
+
722
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 6
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "In this section we examine how Excitation Dropout expands the network’s utilization of neurons through the learnt alternative paths for a certain task. ",
|
| 629 |
+
"bbox": [
|
| 630 |
+
176,
|
| 631 |
+
734,
|
| 632 |
+
823,
|
| 633 |
+
762
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 6
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "Mittal et al. (2018) introduced scoring functions to rank the filters in specific network layers including the average percentage of zero activations, a metric to count how many neurons have zero activations, and the entropy of activations, a metric to measure how much information is contained in the neurons of a layer. We analogously compute the Neurons ON which is the average number of non-zero activations, the entropy of $p _ { E B }$ which is higher when the probability distribution is spread out over more neurons in a layer. We also compute the peak $p _ { E B }$ which is expected to be lower on a more spread distribution. Moreover, Ma et al. (2017) introduced conservative filters: filters whose parameters do not change significantly during training. Conservative filters reduce the effective number of parameters in a CNN and may limit the CNNs modeling capacity for the target task. ",
|
| 640 |
+
"bbox": [
|
| 641 |
+
174,
|
| 642 |
+
770,
|
| 643 |
+
825,
|
| 644 |
+
895
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 6
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "image",
|
| 650 |
+
"img_path": "images/20343932c634f72f2c6c178a0f022656d412a353549077273e95e78cdc80aa0c.jpg",
|
| 651 |
+
"image_caption": [
|
| 652 |
+
"Figure 5: Robustness of predicted ground-truth class probabilities as more neurons are droppedout for UCF101 test images. We fine-tune VGG16 with Excitation, Curriculum, Standard, and No Dropout at the $f c 6$ layer, averaging results over five trained models. The standard deviation is depicted around the mean curve using a lighter shade. At test time, we switch off starting from the most relevant neurons with respect to $p _ { c }$ (left), from the least relevant neurons with respect to $p _ { c }$ (center), and $k$ random neurons (right). In all scenarios, Excitation Dropout shows more robustness to network compression (dropping $f c$ neurons $\\equiv$ removing filters). "
|
| 653 |
+
],
|
| 654 |
+
"image_footnote": [],
|
| 655 |
+
"bbox": [
|
| 656 |
+
174,
|
| 657 |
+
99,
|
| 658 |
+
815,
|
| 659 |
+
227
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 7
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "A conservative filter is a filter $k$ in layer $n$ whose weights have changed by $\\Delta _ { n } ^ { k } = \\| \\hat { w } _ { n } ^ { k } - w _ { n } ^ { k } \\|$ , where $\\Delta _ { n } ^ { k }$ is less than a threshold $\\Delta$ (empirically set). ",
|
| 666 |
+
"bbox": [
|
| 667 |
+
176,
|
| 668 |
+
347,
|
| 669 |
+
820,
|
| 670 |
+
376
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 7
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "text",
|
| 676 |
+
"text": "We evaluate the presented metrics for Excitation Dropout and compare against Standard and Curriculum Dropout in Table 2. This is done on the same datasets and architectures considered in Sec. 4.2. All metrics are computed for the first fully-connected layer of the CNN-2 and VGG16 nets consisting of 2048 and 4096 neurons, respectively. We compute each metric over the test set of each dataset. Excitation Dropout consistently outperforms Standard and Curriculum Dropout in all the metrics over all datasets. Excitation Dropout shows a higher number of active neurons, a higher entropy over activations, a probability distribution $p _ { E B }$ that is more spread (higher entropy over $p _ { E B } )$ among the neurons of the layer, leading to a lower peak probability of $p _ { E B }$ and therefore less specialized neurons. Averaging models having less specialized neurons results in higher robustness to information loss. We also observe a significantly smaller number of conservative filters when using Excitation Dropout. Fewer filters remain unchanged, i.e. do not sufficiently learn anything far from the random initialization. These results show that the models trained with Excitation Dropout were trained to be more informative, i.e. the contribution for the final classification task is provided by a higher number of neurons in the network, reflecting the alternative learnt paths. An analysis of such metrics over the training iterations is presented in the Appendix. ",
|
| 677 |
+
"bbox": [
|
| 678 |
+
173,
|
| 679 |
+
383,
|
| 680 |
+
825,
|
| 681 |
+
590
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 7
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "4.4 SETUP AND RESULTS: RESILIENCE TO COMPRESSION ",
|
| 688 |
+
"text_level": 1,
|
| 689 |
+
"bbox": [
|
| 690 |
+
174,
|
| 691 |
+
611,
|
| 692 |
+
586,
|
| 693 |
+
626
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 7
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "In this section, we simulate ‘Brain Damage’ by dropping out neurons at test time. Fig. 4 demonstrates how a network utilizes the learnt alternative paths to capture the evidence of the class HorseRiding in a video frame of the UCF101 dataset. Given a VGG16 model fine-tuned with Excitation, Curriculum, Standard, and No Dropout at the $f c 6$ layer, we show the excitation saliency map obtained at the conv5-1 layer as we drop out a fixed number of the most relevant neurons from the same layer dropout is performed upon during training. A neuron is considered to be more relevant if it has a higher $p _ { E B }$ . In the first column of frames of Fig. 4, the original saliency maps for the different models are shown. As already highlighted in Table 2, the original saliency map obtained from the model trained with Excitation Dropout is more spread as compared to that of the other schemes, which present more pronounced red peaks. In the following columns of Fig. 4, we present the saliency maps the model is able to restore when the 100, 200, 300, 400, 500 most relevant neurons are dropped-out. Despite the increasing number of relevant neurons being dropped-out, Excitation Dropout is capable of restoring more of the saliency map contributing to HorseRiding. This means that the network with Excitation Dropout was trained to find alternative paths which belong to the same HorseRiding-relevant cues of the image. Despite the fact that we are considering the worst-case scenario, where we are switching off the most relevant neurons at test time, Excitation Dropout shows most robustness. More examples are presented in the Appendix. ",
|
| 700 |
+
"bbox": [
|
| 701 |
+
174,
|
| 702 |
+
638,
|
| 703 |
+
825,
|
| 704 |
+
875
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 7
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "text",
|
| 710 |
+
"text": "While Fig. 4 visualizes one example qualitatively, Fig. 5 presents a complete quantitative analysis on the entire test set after training is complete. We study how the predicted ground-truth (GT) probability changes as more neurons are dropped-out at test time. On the left we present the worst case when the neurons dropped are the most relevant to the prediction. The horizontal axis in the graph represents $p _ { c }$ , where $0 \\leq p _ { c } \\leq 1$ is the cumulative sum of $p _ { E B }$ of neurons which will be switched off starting from the most ‘important’. The analysis is performed for $p _ { c } = \\{ 0 , 0 . 0 5 , \\hdots , 0 . 9 0 , 0 . 9 5 \\}$ . In the center, we present an analogous analysis starting to drop from the ‘least’ relevant neurons. On the right, we present the random case (more realistic) when $k$ neurons $( k = 0 , 1 2 8 , 2 5 6 , \\ldots , 4 0 9 6 )$ are randomly switched off. As we drop more neurons, Excitation Dropout (purple curves) is capable of maintaining a much less steep decline of GT probability, indicating more robustness against network compression. Cifar10, Cifar100, and Caltech256 show similar behavior (see analogous plots in the Appendix). ",
|
| 711 |
+
"bbox": [
|
| 712 |
+
176,
|
| 713 |
+
882,
|
| 714 |
+
823,
|
| 715 |
+
924
|
| 716 |
+
],
|
| 717 |
+
"page_idx": 7
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"type": "text",
|
| 721 |
+
"text": "",
|
| 722 |
+
"bbox": [
|
| 723 |
+
174,
|
| 724 |
+
103,
|
| 725 |
+
825,
|
| 726 |
+
229
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 8
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "text",
|
| 732 |
+
"text": "5 CONCLUSION ",
|
| 733 |
+
"text_level": 1,
|
| 734 |
+
"bbox": [
|
| 735 |
+
176,
|
| 736 |
+
250,
|
| 737 |
+
318,
|
| 738 |
+
267
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 8
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "text",
|
| 744 |
+
"text": "We propose a new regularization scheme that encourages the learning of alternative paths in a neural network by deliberately paralyzing high-saliency neurons that contribute more to a network’s prediction during training. In experiments on four image/video recognition datasets, and on different architectures, we demonstrate that our approach yields better generalization on unseen data, higher utilization of network neurons, and higher resilience to network compression. ",
|
| 745 |
+
"bbox": [
|
| 746 |
+
174,
|
| 747 |
+
282,
|
| 748 |
+
825,
|
| 749 |
+
353
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 8
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "text",
|
| 755 |
+
"text": "REFERENCES ",
|
| 756 |
+
"text_level": 1,
|
| 757 |
+
"bbox": [
|
| 758 |
+
174,
|
| 759 |
+
375,
|
| 760 |
+
285,
|
| 761 |
+
390
|
| 762 |
+
],
|
| 763 |
+
"page_idx": 8
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"type": "text",
|
| 767 |
+
"text": "Alessandro Achille and Stefano Soatto. Information dropout: Learning optimal representations through noisy computation. IEEE Transactions on Pattern Analysis and Machine Intelligence (PAMI), 2018. ",
|
| 768 |
+
"bbox": [
|
| 769 |
+
174,
|
| 770 |
+
398,
|
| 771 |
+
826,
|
| 772 |
+
441
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 8
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "text",
|
| 778 |
+
"text": "Jimmy Ba and Brendan Frey. Adaptive dropout for training deep neural networks. In Advances in Neural Information Processing Systems (NIPS), 2013. ",
|
| 779 |
+
"bbox": [
|
| 780 |
+
169,
|
| 781 |
+
453,
|
| 782 |
+
823,
|
| 783 |
+
482
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 8
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "text",
|
| 789 |
+
"text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2009. ",
|
| 790 |
+
"bbox": [
|
| 791 |
+
174,
|
| 792 |
+
492,
|
| 793 |
+
823,
|
| 794 |
+
535
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 8
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "text",
|
| 800 |
+
"text": "G. Griffin, A. Holub, and P. Perona. Caltech-256 object category dataset. Technical Report 7694, California Institute of Technology, 2007. URL http://authors.library.caltech. edu/7694. ",
|
| 801 |
+
"bbox": [
|
| 802 |
+
174,
|
| 803 |
+
546,
|
| 804 |
+
823,
|
| 805 |
+
589
|
| 806 |
+
],
|
| 807 |
+
"page_idx": 8
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"type": "text",
|
| 811 |
+
"text": "Donald Olding Hebb. The organization of behavior: A neuropsychological theory. Psychology Press, 2005. ",
|
| 812 |
+
"bbox": [
|
| 813 |
+
173,
|
| 814 |
+
601,
|
| 815 |
+
823,
|
| 816 |
+
630
|
| 817 |
+
],
|
| 818 |
+
"page_idx": 8
|
| 819 |
+
},
|
| 820 |
+
{
|
| 821 |
+
"type": "text",
|
| 822 |
+
"text": "Geoffrey Hinton, Oriol Vinyals, and Jeffrey Dean. Distilling the knowledge in a neural network. In NIPS Deep Learning and Representation Learning Workshop, 2015. ",
|
| 823 |
+
"bbox": [
|
| 824 |
+
171,
|
| 825 |
+
640,
|
| 826 |
+
823,
|
| 827 |
+
670
|
| 828 |
+
],
|
| 829 |
+
"page_idx": 8
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"type": "text",
|
| 833 |
+
"text": "Geoffrey E. Hinton, Nitish Srivastava, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Improving neural networks by preventing co-adaptation of feature detectors. CoRR, abs/1207.0580, 2012. ",
|
| 834 |
+
"bbox": [
|
| 835 |
+
173,
|
| 836 |
+
680,
|
| 837 |
+
823,
|
| 838 |
+
723
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 8
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "text",
|
| 844 |
+
"text": "Guoliang Kang, Jun Li, and Dacheng Tao. Shakeout: A new approach to regularized deep neural network training. IEEE Transactions on Pattern Analysis and Machine Intelligence (PAMI), 2017. ",
|
| 845 |
+
"bbox": [
|
| 846 |
+
174,
|
| 847 |
+
734,
|
| 848 |
+
823,
|
| 849 |
+
763
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 8
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"text": "Diederik P Kingma, Tim Salimans, and Max Welling. Variational dropout and the local reparameterization trick. In Advances in Neural Information Processing Systems (NIPS), 2015. ",
|
| 856 |
+
"bbox": [
|
| 857 |
+
174,
|
| 858 |
+
773,
|
| 859 |
+
821,
|
| 860 |
+
804
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 8
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009. ",
|
| 867 |
+
"bbox": [
|
| 868 |
+
173,
|
| 869 |
+
814,
|
| 870 |
+
805,
|
| 871 |
+
830
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 8
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems (NIPS), pp. 1097–1105, 2012. ",
|
| 878 |
+
"bbox": [
|
| 879 |
+
173,
|
| 880 |
+
840,
|
| 881 |
+
821,
|
| 882 |
+
883
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 8
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "Zhe Li, Boqing Gong, and Tianbao Yang. Improved dropout for shallow and deep learning. In Advances in Neural Information Processing Systems (NIPS), 2016. ",
|
| 889 |
+
"bbox": [
|
| 890 |
+
173,
|
| 891 |
+
895,
|
| 892 |
+
821,
|
| 893 |
+
924
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 8
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "Shugao Ma, Sarah Adel Bargal, Jianming Zhang, Leonid Sigal, and Stan Sclaroff. Do less and achieve more: Training CNNs for action recognition utilizing action images from the web. Pattern Recognition, 2017. ",
|
| 900 |
+
"bbox": [
|
| 901 |
+
174,
|
| 902 |
+
103,
|
| 903 |
+
823,
|
| 904 |
+
146
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 9
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "Thomas Miconi, Jeff Clune, and Kenneth O Stanley. Differentiable plasticity: training plastic neural networks with backpropagation. arXiv preprint arXiv:1804.02464, 2018. ",
|
| 911 |
+
"bbox": [
|
| 912 |
+
171,
|
| 913 |
+
155,
|
| 914 |
+
823,
|
| 915 |
+
184
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 9
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "text",
|
| 921 |
+
"text": "Deepak Mittal, Shweta Bhardwaj, Mitesh M Khapra, and Balaraman Ravindran. Recovering from random pruning: On the plasticity of deep convolutional neural networks. Winter Conference on Applications of Computer Vision, 2018. ",
|
| 922 |
+
"bbox": [
|
| 923 |
+
174,
|
| 924 |
+
193,
|
| 925 |
+
823,
|
| 926 |
+
234
|
| 927 |
+
],
|
| 928 |
+
"page_idx": 9
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"type": "text",
|
| 932 |
+
"text": "Pietro Morerio, Jacopo Cavazza, Riccardo Volpi, Rene Vidal, and Vittorio Murino. Curriculum dropout. In Proc. IEEE International Conference on Computer Vision (ICCV), 2017. ",
|
| 933 |
+
"bbox": [
|
| 934 |
+
173,
|
| 935 |
+
243,
|
| 936 |
+
823,
|
| 937 |
+
273
|
| 938 |
+
],
|
| 939 |
+
"page_idx": 9
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "text",
|
| 943 |
+
"text": "Steven J Rennie, Vaibhava Goel, and Samuel Thomas. Annealed dropout training of deep networks. In Spoken Language Technology Workshop (SLT), 2014 IEEE, pp. 159–164. IEEE, 2014. ",
|
| 944 |
+
"bbox": [
|
| 945 |
+
174,
|
| 946 |
+
281,
|
| 947 |
+
820,
|
| 948 |
+
311
|
| 949 |
+
],
|
| 950 |
+
"page_idx": 9
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"type": "text",
|
| 954 |
+
"text": "Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proc. IEEE International Conference on Computer Vision (ICCV), 2017. ",
|
| 955 |
+
"bbox": [
|
| 956 |
+
174,
|
| 957 |
+
319,
|
| 958 |
+
821,
|
| 959 |
+
363
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 9
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "text",
|
| 965 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
|
| 966 |
+
"bbox": [
|
| 967 |
+
174,
|
| 968 |
+
371,
|
| 969 |
+
821,
|
| 970 |
+
400
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 9
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "text",
|
| 976 |
+
"text": "Sen Song, Kenneth D Miller, and Larry F Abbott. Competitive hebbian learning through spiketiming-dependent synaptic plasticity. Nature neuroscience, 3(9):919, 2000. ",
|
| 977 |
+
"bbox": [
|
| 978 |
+
173,
|
| 979 |
+
409,
|
| 980 |
+
820,
|
| 981 |
+
439
|
| 982 |
+
],
|
| 983 |
+
"page_idx": 9
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"type": "text",
|
| 987 |
+
"text": "Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. UCF101: A dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402, 2012. ",
|
| 988 |
+
"bbox": [
|
| 989 |
+
173,
|
| 990 |
+
446,
|
| 991 |
+
820,
|
| 992 |
+
476
|
| 993 |
+
],
|
| 994 |
+
"page_idx": 9
|
| 995 |
+
},
|
| 996 |
+
{
|
| 997 |
+
"type": "text",
|
| 998 |
+
"text": "Nitish Srivastava, Geoffrey 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):1929–1958, 2014. ",
|
| 999 |
+
"bbox": [
|
| 1000 |
+
176,
|
| 1001 |
+
484,
|
| 1002 |
+
821,
|
| 1003 |
+
527
|
| 1004 |
+
],
|
| 1005 |
+
"page_idx": 9
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"type": "text",
|
| 1009 |
+
"text": "Stefan Wager, Sida Wang, and Percy S Liang. Dropout training as adaptive regularization. In Advances in Neural Information Processing Systems (NIPS), 2013. ",
|
| 1010 |
+
"bbox": [
|
| 1011 |
+
173,
|
| 1012 |
+
535,
|
| 1013 |
+
823,
|
| 1014 |
+
565
|
| 1015 |
+
],
|
| 1016 |
+
"page_idx": 9
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "text",
|
| 1020 |
+
"text": "Li Wan, Matthew Zeiler, Sixin Zhang, Yann Le Cun, and Rob Fergus. Regularization of neural networks using dropconnect. In Proc. International Conference on Machine Learning (ICML), 2013. ",
|
| 1021 |
+
"bbox": [
|
| 1022 |
+
173,
|
| 1023 |
+
573,
|
| 1024 |
+
823,
|
| 1025 |
+
616
|
| 1026 |
+
],
|
| 1027 |
+
"page_idx": 9
|
| 1028 |
+
},
|
| 1029 |
+
{
|
| 1030 |
+
"type": "text",
|
| 1031 |
+
"text": "Sida Wang and Christopher Manning. Fast dropout training. In Proc. International Conference on Machine Learning (ICML), pp. 118–126, 2013. ",
|
| 1032 |
+
"bbox": [
|
| 1033 |
+
173,
|
| 1034 |
+
626,
|
| 1035 |
+
823,
|
| 1036 |
+
655
|
| 1037 |
+
],
|
| 1038 |
+
"page_idx": 9
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"type": "text",
|
| 1042 |
+
"text": "Haibing Wu and Xiaodong Gu. Towards dropout training for convolutional neural networks. Neural Networks, 71:1–10, 2015. ",
|
| 1043 |
+
"bbox": [
|
| 1044 |
+
173,
|
| 1045 |
+
662,
|
| 1046 |
+
823,
|
| 1047 |
+
693
|
| 1048 |
+
],
|
| 1049 |
+
"page_idx": 9
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"type": "text",
|
| 1053 |
+
"text": "Jianming Zhang, Zhe Lin, Jonathan Brandt, Xiaohui Shen, and Stan Sclaroff. Top-down neural attention by excitation backprop. In Proc. European Conference on Computer Vision (ECCV), 2016. ",
|
| 1054 |
+
"bbox": [
|
| 1055 |
+
174,
|
| 1056 |
+
700,
|
| 1057 |
+
823,
|
| 1058 |
+
742
|
| 1059 |
+
],
|
| 1060 |
+
"page_idx": 9
|
| 1061 |
+
},
|
| 1062 |
+
{
|
| 1063 |
+
"type": "text",
|
| 1064 |
+
"text": "Jianming Zhang, Sarah Adel Bargal, Zhe Lin, Jonathan Brandt, Xiaohui Shen, and Stan Sclaroff. Top-down neural attention by excitation backprop. International Journal of Computer Vision (IJCV), pp. 1–19, 2017. ",
|
| 1065 |
+
"bbox": [
|
| 1066 |
+
173,
|
| 1067 |
+
752,
|
| 1068 |
+
821,
|
| 1069 |
+
795
|
| 1070 |
+
],
|
| 1071 |
+
"page_idx": 9
|
| 1072 |
+
},
|
| 1073 |
+
{
|
| 1074 |
+
"type": "text",
|
| 1075 |
+
"text": "Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. ",
|
| 1076 |
+
"bbox": [
|
| 1077 |
+
173,
|
| 1078 |
+
804,
|
| 1079 |
+
823,
|
| 1080 |
+
847
|
| 1081 |
+
],
|
| 1082 |
+
"page_idx": 9
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"type": "text",
|
| 1086 |
+
"text": "APPENDIX ",
|
| 1087 |
+
"text_level": 1,
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
176,
|
| 1090 |
+
102,
|
| 1091 |
+
279,
|
| 1092 |
+
117
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 10
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "CNN-2 architecture. Table 3 shows the details of the CNN-2 architecture adopted for Cifar10, Cifar100, and Caltech256 experiments. The size of the softmax layer depends upon the number of classes for each dataset. ",
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
174,
|
| 1101 |
+
133,
|
| 1102 |
+
825,
|
| 1103 |
+
176
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 10
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "table",
|
| 1109 |
+
"img_path": "images/2b13a212af68c98d79be551c5ff93385c2154e2f24b26e4c9ab29c583ac45fe4.jpg",
|
| 1110 |
+
"table_caption": [
|
| 1111 |
+
"Table 3: Details of the CNN-2 architecture used for experiments on the Cifar10, Cifar100, and Caltech-256 datasets. "
|
| 1112 |
+
],
|
| 1113 |
+
"table_footnote": [],
|
| 1114 |
+
"table_body": "<table><tr><td>Layer Type</td><td>Layer Size</td><td>Filter Size</td><td>Padding/Stride</td></tr><tr><td>conv</td><td>96 filters</td><td>5x5</td><td>2/1</td></tr><tr><td>max pool</td><td></td><td>3x3</td><td>0/2</td></tr><tr><td>conv</td><td>128 filters</td><td>5x5</td><td>2/1</td></tr><tr><td>max pool</td><td></td><td>3x3</td><td>0/2</td></tr><tr><td>conv</td><td>256 filters</td><td>5x5</td><td>2/1</td></tr><tr><td>max pool</td><td></td><td>3x3</td><td>0/2</td></tr><tr><td>fc</td><td>2048 units</td><td></td><td></td></tr><tr><td>fc</td><td>2048 units</td><td></td><td></td></tr><tr><td>softmax</td><td>#classes</td><td></td><td></td></tr></table>",
|
| 1115 |
+
"bbox": [
|
| 1116 |
+
290,
|
| 1117 |
+
188,
|
| 1118 |
+
702,
|
| 1119 |
+
330
|
| 1120 |
+
],
|
| 1121 |
+
"page_idx": 10
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"type": "text",
|
| 1125 |
+
"text": "Least vs. most relevant neurons. Popular dropout methods (e.g. Adaptive Dropout Ba & Frey (2013)) drop useless neurons with low activations during training. In this work we motivate and demonstrate that dropping neurons based on their Excitation Backprop (EB) probability has added benefits. Please note that we are not simply considering neuron activation. We demonstrate the performance of Excitation Dropout compared to the variant Adaptive Dropout [Ba & Frey (2013)] in Table 4. In essence, Adaptive and Excitation Dropout are opposites by dropping the least and most important neurons, respectively. ",
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
173,
|
| 1128 |
+
401,
|
| 1129 |
+
825,
|
| 1130 |
+
500
|
| 1131 |
+
],
|
| 1132 |
+
"page_idx": 10
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"type": "table",
|
| 1136 |
+
"img_path": "images/9392d33ad8e22ee6bf81dc0d422ea8b0e6def21b412dd292bbe41f802e8f9185.jpg",
|
| 1137 |
+
"table_caption": [],
|
| 1138 |
+
"table_footnote": [],
|
| 1139 |
+
"table_body": "<table><tr><td>Dataset</td><td>Adaptive Dropout</td><td>Excitation Dropout</td></tr><tr><td>Cifar10</td><td>76.82%</td><td>81.94%</td></tr><tr><td>Cifar100</td><td>44.55%</td><td>52.04%</td></tr><tr><td>Caltech256</td><td>23.32%</td><td>35.77%</td></tr><tr><td>UCF101</td><td>71.76%</td><td>73.23%</td></tr></table>",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
299,
|
| 1142 |
+
512,
|
| 1143 |
+
697,
|
| 1144 |
+
587
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 10
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "Table 4: Accuracy comparison between Adaptive Dropout and Excitation Dropout. The numbers reported in this table are the average test set accuracy over five trained models for each dataset. ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
173,
|
| 1153 |
+
595,
|
| 1154 |
+
823,
|
| 1155 |
+
626
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 10
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "Model complexity. Excitation Dropout consistently outperforms Standard Dropout (SD), with zero increase in test-time computational complexity. In training, there is a moderate increase in computation: in the worst case, Excitation Dropout will take double (same O-notation complexity) the training time of SD. This will happen when the utilized Excitation Dropout maps are at the first layer of the network. If a middle layer map is used, Excitation Dropout requires an additional partial forward-backward pass. We use maps of fc layers close to the end of the network to reduce this overhead. Table 5 presents a run-time analysis for the two main architectures used in this work and compares it to that of Standard Dropout. ",
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
173,
|
| 1164 |
+
640,
|
| 1165 |
+
825,
|
| 1166 |
+
753
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 10
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "table",
|
| 1172 |
+
"img_path": "images/21ea333c6079754168b24fb6de31479abeafe84126c18db8ffbf1e3f9ee00add.jpg",
|
| 1173 |
+
"table_caption": [
|
| 1174 |
+
"Table 5: Run-time comparison: Average time of 100 iterations (in seconds, batch size $\\scriptstyle = 5 0$ ) for a Caffe python layer on a GTX Titan X GPU and Intel(R) Xeon(R) CPU E5-2650 v3 ${ \\textcircled { a } } ~ 2 . 3 0 \\mathrm { G H z }$ . In parenthesis is the percentage increase with respect to SD. "
|
| 1175 |
+
],
|
| 1176 |
+
"table_footnote": [],
|
| 1177 |
+
"table_body": "<table><tr><td></td><td>Standard Dropout</td><td>Excitation Dropout</td></tr><tr><td rowspan=\"2\">CNN-2 (1 iter) Run-time VGG16 (1 iter)</td><td>0.1532 ± 0.0064</td><td>0.1885 ± 0.0070 (+23%)</td></tr><tr><td>2.2928 士 0.0297</td><td>2.8202 ± 0.0312 (+23%)</td></tr></table>",
|
| 1178 |
+
"bbox": [
|
| 1179 |
+
227,
|
| 1180 |
+
767,
|
| 1181 |
+
772,
|
| 1182 |
+
813
|
| 1183 |
+
],
|
| 1184 |
+
"page_idx": 10
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"type": "text",
|
| 1188 |
+
"text": "Sensitivity analysis. In this section we present a sensitivity analysis over the dropout rate hyperparameter. In our work, we implement Excitation Dropout with a base retaining probability $P$ , and we compare that to standard dropout with a retaining probability $p$ , where $P = p$ . If Excitation ",
|
| 1189 |
+
"bbox": [
|
| 1190 |
+
176,
|
| 1191 |
+
882,
|
| 1192 |
+
825,
|
| 1193 |
+
924
|
| 1194 |
+
],
|
| 1195 |
+
"page_idx": 10
|
| 1196 |
+
},
|
| 1197 |
+
{
|
| 1198 |
+
"type": "text",
|
| 1199 |
+
"text": "Dropout produced a uniform probability distribution over the desired layer, then every node would have a retain probability equal to the base probability $P$ . For completeness, we add a sensitivity analysis of the parameters $p$ and $P$ in Table 6. ",
|
| 1200 |
+
"bbox": [
|
| 1201 |
+
174,
|
| 1202 |
+
103,
|
| 1203 |
+
825,
|
| 1204 |
+
146
|
| 1205 |
+
],
|
| 1206 |
+
"page_idx": 11
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"type": "table",
|
| 1210 |
+
"img_path": "images/e18c17e9dc8dbfb87dcf2f6239c1b2539f22eb060f1b8bc0d613819da994e0cb.jpg",
|
| 1211 |
+
"table_caption": [],
|
| 1212 |
+
"table_footnote": [],
|
| 1213 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=1>Dropout Scheme</td><td rowspan=1 colspan=1>0.25Dropout</td><td rowspan=1 colspan=1>0.5Dropout</td><td rowspan=1 colspan=1>0.75Dropout</td></tr><tr><td rowspan=1 colspan=1>Cifar10</td><td rowspan=1 colspan=1>StandardExcitation</td><td rowspan=1 colspan=1>79.16%81.38%</td><td rowspan=1 colspan=1>80.13%81.94%</td><td rowspan=1 colspan=1>81.19%81.55%</td></tr><tr><td rowspan=1 colspan=1>Cifar100</td><td rowspan=1 colspan=1>StandardExcitation</td><td rowspan=1 colspan=1>48.44%53.23%</td><td rowspan=1 colspan=1>50.36%52.04%</td><td rowspan=1 colspan=1>51.64%51.87%</td></tr><tr><td rowspan=1 colspan=1>Caltech256</td><td rowspan=1 colspan=1>StandardExcitation</td><td rowspan=1 colspan=1>26.23%33.60%</td><td rowspan=1 colspan=1>28.73%35.77%</td><td rowspan=1 colspan=1>32.51%36.81%</td></tr><tr><td rowspan=1 colspan=1>UCF101</td><td rowspan=1 colspan=1>StandardExcitation</td><td rowspan=1 colspan=1>71.01%73.56%</td><td rowspan=1 colspan=1>71.93%73.23%</td><td rowspan=1 colspan=1>72.92%73.06%</td></tr></table>",
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
263,
|
| 1216 |
+
157,
|
| 1217 |
+
733,
|
| 1218 |
+
301
|
| 1219 |
+
],
|
| 1220 |
+
"page_idx": 11
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"type": "text",
|
| 1224 |
+
"text": "Table 6: Hyper-parameter sensitivity analysis for the Standard Dropout probability, and the Excitation Dropout base dropout probability. The accuracy is reported on the test set of each dataset. The retaining probability $p$ or $P$ is one minus the dropout rate. ",
|
| 1225 |
+
"bbox": [
|
| 1226 |
+
176,
|
| 1227 |
+
311,
|
| 1228 |
+
823,
|
| 1229 |
+
354
|
| 1230 |
+
],
|
| 1231 |
+
"page_idx": 11
|
| 1232 |
+
},
|
| 1233 |
+
{
|
| 1234 |
+
"type": "text",
|
| 1235 |
+
"text": "Excitation Dropout in Convolutional Layers. Excitation Dropout is a generic formulation that can be applied to any neural network layer. For a convolutional layer, a generic convolutional activation map is in the form of $[ w , h , N ]$ , where $N$ is the number of feature maps while $w$ and $h$ are the spatial dimensions. To apply Excitation Dropout to a convolutional layer, first $p _ { E B }$ is computed for each feature map $N$ as the sum of $p _ { E B }$ across spatial locations $w$ and $h$ . Specific 2D feature maps are then dropped-out following Eqn. 3. We test Excitation Dropout at conv3 of the CNN-2 architecture and obtain the following accuracy results for Cifar10: No Dropout $7 6 . 9 1 \\%$ ; Excitation Dropout at conv3 $7 8 . 0 1 \\%$ ; Excitation Dropout at $f c 1 8 1 . 9 4 \\%$ . Again, we observe an improvement respect to No Dropout, but consistent with the literature [Hinton et al. (2012); Srivastava et al. (2014)], the improvement is not as large as using dropout in fully connected layers. ",
|
| 1236 |
+
"bbox": [
|
| 1237 |
+
174,
|
| 1238 |
+
367,
|
| 1239 |
+
825,
|
| 1240 |
+
507
|
| 1241 |
+
],
|
| 1242 |
+
"page_idx": 11
|
| 1243 |
+
},
|
| 1244 |
+
{
|
| 1245 |
+
"type": "text",
|
| 1246 |
+
"text": "Validation on Multiple Architectures. In this section we report additional results for Caltech256 and Cifar10 datasets considering different architectures. Table 7 reports the results of fine-tuning the deep architectures AlexNet, VGG16 and VGG19 on Caltech256 for the task of image classification. Finally, we adopt the WideResNet (WRN-28-10) architecture, a ResNet style architecture which combines batch normalization and dropout regularization techniques. WideResNet is used to obtain state-of-the-art results on Cifar10. We replace the Standard Dropout layer in the network with Excitation Dropout obtaining $3 . 8 8 \\%$ test error on Cifar10 (vs. $4 . 1 7 \\%$ Zagoruyko et al.s published result, BMVC16). Therefore, Excitation Dropout gives state-of-the-art result on Cifar10. ",
|
| 1247 |
+
"bbox": [
|
| 1248 |
+
173,
|
| 1249 |
+
513,
|
| 1250 |
+
825,
|
| 1251 |
+
626
|
| 1252 |
+
],
|
| 1253 |
+
"page_idx": 11
|
| 1254 |
+
},
|
| 1255 |
+
{
|
| 1256 |
+
"type": "table",
|
| 1257 |
+
"img_path": "images/dcece945cce764c937fb8ed1e873d8f04bd56ec9e92806cf8987e426ea9672c0.jpg",
|
| 1258 |
+
"table_caption": [],
|
| 1259 |
+
"table_footnote": [],
|
| 1260 |
+
"table_body": "<table><tr><td>Architecture</td><td>No Dropout (%)</td><td>Standard Dropout (%)</td><td>Curriculum Dropout (%)</td><td>Excitation Dropout (%)</td></tr><tr><td>VGG16</td><td>77.97</td><td>79.11 (+1.14%)</td><td>79.31 (+1.34%)</td><td>79.92 (+1.95%)</td></tr><tr><td>VGG19</td><td>77.98</td><td>79.46 (+1.48%)</td><td>79.66 (+1.68%)</td><td>80.65 (+2.67%)</td></tr><tr><td>AlexNet</td><td>66.48</td><td>68.10 (+1.62%)</td><td>68.71 (+2.23%)</td><td>69.66 (+3.18%)</td></tr></table>",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
200,
|
| 1263 |
+
637,
|
| 1264 |
+
795,
|
| 1265 |
+
710
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 11
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "Table 7: Test accuracy comparison between No, Standard, Curriculum, and Excitation Dropout in the $f c 6$ layer of three architectures: AlexNet, VGG16 and VGG19, fine-tuned for the image recognition task on Caltech256. The numbers reported are the final test accuracies together with the improvements (in parenthesis) with respect to No Dropout, averaged over five trained models. ",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
173,
|
| 1274 |
+
720,
|
| 1275 |
+
825,
|
| 1276 |
+
776
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 11
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"text": "Additional Visualizations. In this section, we present more visualizations similar to that of Fig. 4 in the main manuscript. Visualizations for a VGG16 network fine-tuned on UCF101 for the actions: PlayingFlute, PlayingSitar, and GolfSwing are presented in Fig.s 6,7,8, respectively. Every column displays the saliency map over the same video frame of an action while incrementally switching off the most $k$ relevant neurons $( k = 0 , 1 0 0 , 2 0 0 , \\ldots , 5 0 0 )$ . Excitation Dropout is more robust over higher number of switched off neurons. This is demonstrated through its ability to recover the saliency map even when a high percentage of the most salient neurons is dropped-out. This is done through the alternative learnt paths, which are reflected in the higher number of non-zero activations that remain after dropout compared to other dropout strategies. ",
|
| 1283 |
+
"bbox": [
|
| 1284 |
+
173,
|
| 1285 |
+
797,
|
| 1286 |
+
825,
|
| 1287 |
+
924
|
| 1288 |
+
],
|
| 1289 |
+
"page_idx": 11
|
| 1290 |
+
},
|
| 1291 |
+
{
|
| 1292 |
+
"type": "image",
|
| 1293 |
+
"img_path": "images/055b57f36761045374b24b4e4a4b2d1285b7f8d934ccb246737784c0755cd3a8.jpg",
|
| 1294 |
+
"image_caption": [
|
| 1295 |
+
"Figure 6: Despite the increasing number of relevant neurons being dropped out at test time, Excitation Dropout is capable of restoring more of the saliency map contributing to the specific class: PlayingFlute "
|
| 1296 |
+
],
|
| 1297 |
+
"image_footnote": [],
|
| 1298 |
+
"bbox": [
|
| 1299 |
+
214,
|
| 1300 |
+
99,
|
| 1301 |
+
782,
|
| 1302 |
+
449
|
| 1303 |
+
],
|
| 1304 |
+
"page_idx": 12
|
| 1305 |
+
},
|
| 1306 |
+
{
|
| 1307 |
+
"type": "text",
|
| 1308 |
+
"text": "Additional Plots. In this section we present the $f c$ compression results for three additional datasets: Cifar10, Cifar100, and Caltech256 (Fig. 9), using CNN-2. We study how the predicted ground-truth (GT) probability changes as more neurons are dropped-out at test time. On the left we present the worst case when the neurons dropped are the most relevant to the prediction. The horizontal axis in the graph represents $p _ { c }$ , where $0 ~ \\leq ~ p _ { c } ~ \\leq ~ 1$ is the cumulative sum of $p _ { E B }$ of neurons which will be switched off starting from the most ‘important’. The analysis is performed for $\\mathit { p _ { c } } =$ $\\{ 0 , 0 . 0 5 , \\hdots , 0 . 9 0 , 0 . 9 5 \\}$ . In the center, we present an analogous analysis starting to drop from the ‘least’ relevant neurons. On the right, we present the random case (more realistic) when $k$ neurons $( k \\ : = \\ : 0 , 1 2 8 , 2 5 6 , \\ldots , 2 0 4 8 )$ are randomly switched off. As we drop more neurons, Excitation Dropout (purple curves) is capable of maintaining a much less steep decline of GT probability. ",
|
| 1309 |
+
"bbox": [
|
| 1310 |
+
173,
|
| 1311 |
+
529,
|
| 1312 |
+
825,
|
| 1313 |
+
667
|
| 1314 |
+
],
|
| 1315 |
+
"page_idx": 12
|
| 1316 |
+
},
|
| 1317 |
+
{
|
| 1318 |
+
"type": "text",
|
| 1319 |
+
"text": "Metric Analysis During Training. In this section we report an extended analysis of the metrics: # Neurons ON, Peak $p _ { E B }$ , Entropy of Activations, and Entropy of $p _ { E B }$ during training. Excitation Dropout shows a higher number of active neurons, a higher entropy over activations, a probability distribution $p _ { E B }$ that is more spread (higher entropy over $p _ { E B } .$ ) among the neurons of the layer, leading to a lower peak probability of $p _ { E B }$ and therefore less specialized neurons. These results are observed to have consistent trends over all training iterations for all datasets considered (see Fig.s 10, 11, 12, and 13) ",
|
| 1320 |
+
"bbox": [
|
| 1321 |
+
173,
|
| 1322 |
+
674,
|
| 1323 |
+
825,
|
| 1324 |
+
772
|
| 1325 |
+
],
|
| 1326 |
+
"page_idx": 12
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "image",
|
| 1330 |
+
"img_path": "images/bb0accbe64bc2d329717bcbd3f546cffb09cd66b200f52d0cdbf8b1d5d8990dc.jpg",
|
| 1331 |
+
"image_caption": [
|
| 1332 |
+
"Figure 7: Despite the increasing number of relevant neurons being dropped out at test time, Excitation Dropout is capable of restoring more of the saliency map contributing to the specific class: PlayingSitar "
|
| 1333 |
+
],
|
| 1334 |
+
"image_footnote": [],
|
| 1335 |
+
"bbox": [
|
| 1336 |
+
214,
|
| 1337 |
+
102,
|
| 1338 |
+
782,
|
| 1339 |
+
452
|
| 1340 |
+
],
|
| 1341 |
+
"page_idx": 13
|
| 1342 |
+
},
|
| 1343 |
+
{
|
| 1344 |
+
"type": "image",
|
| 1345 |
+
"img_path": "images/b60b944e6ef04732af9d663f8e4f5ba75d38f389d8475003393d14663bf20fb2.jpg",
|
| 1346 |
+
"image_caption": [
|
| 1347 |
+
"Figure 8: Despite the increasing number of relevant neurons being dropped out at test time, Excitation Dropout is capable of restoring more of the saliency map contributing to the specific class: GolfSwing "
|
| 1348 |
+
],
|
| 1349 |
+
"image_footnote": [],
|
| 1350 |
+
"bbox": [
|
| 1351 |
+
214,
|
| 1352 |
+
517,
|
| 1353 |
+
782,
|
| 1354 |
+
864
|
| 1355 |
+
],
|
| 1356 |
+
"page_idx": 13
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"type": "image",
|
| 1360 |
+
"img_path": "images/d426f098174c920b4b0eae13cbe3bedc148dd693ddd5326114b164e5de773e3d.jpg",
|
| 1361 |
+
"image_caption": [
|
| 1362 |
+
"Figure 9: Robustness of predicted ground-truth class probabilities as more neurons are dropped out for each dataset’s test images. We train CNN-2 from scratch with Excitation, Curriculum, Standard, and No Dropout at the $f c 1$ layer, averaging results over five trained models. The standard deviation is depicted around the mean curve using a lighter shade. Left: the most relevant neurons with respect to the $p _ { c }$ threshold are switched off. Center: the least relevant neurons with respect to the $p _ { c }$ threshold are switched off. Right: $k$ neurons are randomly switched off. In all scenarios, Excitation Dropout shows more robustness to network compression (dropping $f c$ neurons $\\equiv$ removing filters). "
|
| 1363 |
+
],
|
| 1364 |
+
"image_footnote": [],
|
| 1365 |
+
"bbox": [
|
| 1366 |
+
174,
|
| 1367 |
+
234,
|
| 1368 |
+
820,
|
| 1369 |
+
671
|
| 1370 |
+
],
|
| 1371 |
+
"page_idx": 14
|
| 1372 |
+
},
|
| 1373 |
+
{
|
| 1374 |
+
"type": "image",
|
| 1375 |
+
"img_path": "images/7d2b678f17f563faaba44ab1f82dc9d0810fca08df08728b18cc44fd35a8a1d5.jpg",
|
| 1376 |
+
"image_caption": [
|
| 1377 |
+
"Figure 10: Cifar10. # Neurons ON, Peak $p _ { E B }$ , Entropy of Activations, and Entropy of $p _ { E B }$ over time during training. "
|
| 1378 |
+
],
|
| 1379 |
+
"image_footnote": [],
|
| 1380 |
+
"bbox": [
|
| 1381 |
+
235,
|
| 1382 |
+
107,
|
| 1383 |
+
756,
|
| 1384 |
+
455
|
| 1385 |
+
],
|
| 1386 |
+
"page_idx": 15
|
| 1387 |
+
},
|
| 1388 |
+
{
|
| 1389 |
+
"type": "image",
|
| 1390 |
+
"img_path": "images/63d436b008fc255652a6d92c375699f6e0682d163a681d2e8fefc422cef6adff.jpg",
|
| 1391 |
+
"image_caption": [
|
| 1392 |
+
"Figure 11: Cifar100. # Neurons ON, Peak $p _ { E B }$ , Entropy of Activations, and Entropy of $p _ { E B }$ over time during training. "
|
| 1393 |
+
],
|
| 1394 |
+
"image_footnote": [],
|
| 1395 |
+
"bbox": [
|
| 1396 |
+
235,
|
| 1397 |
+
517,
|
| 1398 |
+
756,
|
| 1399 |
+
875
|
| 1400 |
+
],
|
| 1401 |
+
"page_idx": 15
|
| 1402 |
+
},
|
| 1403 |
+
{
|
| 1404 |
+
"type": "image",
|
| 1405 |
+
"img_path": "images/418febd7aef2668302078c9442b398ef17a961a4366e5c54f07890830b5f3ef3.jpg",
|
| 1406 |
+
"image_caption": [
|
| 1407 |
+
"Figure 12: Caltech256. # Neurons ON, Peak $p _ { E B }$ , Entropy of Activations, and Entropy of ${ p } _ { E B }$ over time during training. "
|
| 1408 |
+
],
|
| 1409 |
+
"image_footnote": [],
|
| 1410 |
+
"bbox": [
|
| 1411 |
+
236,
|
| 1412 |
+
108,
|
| 1413 |
+
756,
|
| 1414 |
+
454
|
| 1415 |
+
],
|
| 1416 |
+
"page_idx": 16
|
| 1417 |
+
},
|
| 1418 |
+
{
|
| 1419 |
+
"type": "image",
|
| 1420 |
+
"img_path": "images/106f92fa791ab8ee0ea5ded0bcc3cf155c219d427b49c5549f99c12629246e83.jpg",
|
| 1421 |
+
"image_caption": [
|
| 1422 |
+
"Figure 13: UCF101. # Neurons ON, Peak $p _ { E B }$ , Entropy of Activations, and Entropy of $p _ { E B }$ over time during training. "
|
| 1423 |
+
],
|
| 1424 |
+
"image_footnote": [],
|
| 1425 |
+
"bbox": [
|
| 1426 |
+
236,
|
| 1427 |
+
518,
|
| 1428 |
+
753,
|
| 1429 |
+
871
|
| 1430 |
+
],
|
| 1431 |
+
"page_idx": 16
|
| 1432 |
+
}
|
| 1433 |
+
]
|
parse/train/H1xQSjCqFQ/H1xQSjCqFQ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1xQSjCqFQ/H1xQSjCqFQ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/dvSExzhjG9D/dvSExzhjG9D.md
ADDED
|
@@ -0,0 +1,678 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MLR-SNET: TRANSFERABLE LR SCHEDULES FOR HETEROGENEOUS TASKS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
The learning rate (LR) is one of the most important hyper-parameters in stochastic gradient descent (SGD) for deep neural networks (DNN) training and generalization. However, current hand-designed LR schedules need to manually pre-specify a fixed form, which limits their ability to adapt to non-convex optimization problems due to the significant variation of training dynamics. Meanwhile, it always needs to search a proper LR schedule from scratch for new tasks. To address these issues, we propose to parameterize LR schedules with an explicit mapping formulation, called MLR-SNet. The learnable structure brings more flexibility for MLR-SNet to learn a proper LR schedule to comply with the training dynamics of DNN. Image and text classification benchmark experiments substantiate the capability of our method for achieving proper LR schedules. Moreover, the meta-learned MLR-SNet is plugand-play to generalize to new heterogeneous tasks. We transfer our meta-trained MLR-SNet to tasks like different training epochs, network architectures, datasets, especially large scale ImageNet dataset, and achieve comparable performance with hand-designed LR schedules. Finally, MLR-SNet can achieve better robustness when training data are biased with corrupted noise.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Stochastic gradient descent (SGD) and its many variants (Robbins & Monro, 1951; Duchi et al., 2011; Zeiler, 2012; Tieleman & Hinton, 2012; Kingma & Ba, 2015), have been served as the cornerstone of modern machine learning with big data. It has been empirically shown that DNN achieves stateof-the-art generalization performance on a wide variety of tasks when trained with SGD (Zhang et al., 2017). Several recent researches observe that SGD tends to select the so-called flat minima (Hochreiter & Schmidhuber, 1997a; Keskar et al., 2017), which seems to generalize better in practice.
|
| 12 |
+
|
| 13 |
+
Scheduling learning rate (LR) for SGD is one of the most widely studied aspects to help improve the SGD training for DNN. Specifically, it has been experimentally studied how the LR (Jastrzebski et al., 2017) influences mimima solutions found by SGD. Theoretically, Wu et al. (2018a) analyze that LR plays an important role in minima selection from a dynamical stability perspective. He et al. (2019) provide a PAC-Bayes generalization bound for DNN trained by SGD, which is correlated with LR. In a word, finding a proper LR schedule highly influences the generalization performance of DNN, which has been widely studied recently (Bengio, 2012; Schaul et al., 2013; Nar & Sastry, 2018).
|
| 14 |
+
|
| 15 |
+
There mainly exist three kinds of hand-designed LR schedules: (1) Pre-defined LR policy is mostly used in current DNN training, like decaying or cyclic LR (Gower et al., 2019; Loshchilov & Hutter, 2017), and brings large improvements in training efficiency. Some theoretical works suggested that the decaying schedule can yield faster convergence (Ge et al., 2019; Davis et al., 2019) or avoid strict saddles (Lee et al., 2019; Panageas et al., 2019) under some mild conditions. (2) LR search methods in tranditional convex optimization (Nocedal & Wright, 2006) can be extended to DNN training by searching LR adaptively in each step, such as Polyak’s update rule (Rolinek & Martius, 2018), Frank-Wolfe algorithm (Berrada et al., 2019), and Armijo line-search (Vaswani et al., 2019), etc. (3) Adaptive gradient methods like Adam (Duchi et al., 2011; Tieleman & Hinton, 2012; Kingma & Ba, 2015), adapt LR for each parameters separately according to some gradient information.
|
| 16 |
+
|
| 17 |
+
Although above LR schedules (as depicted in Fig. 1(a) and 1(b)) can achieve competitive results on their learning tasks, they still have evident deficiencies in practice. On the one hand, these policies need to manually pre-specify the form of LR schedules, suffering from the limited flexibility to adapt to non-convex optimization problems due to the significant variation of training dynamics. On the other hand, when solving new heterogeneous tasks, it always needs to search a proper LR schedule from scratch, as well as to tune their involving hyper-parameters. This process is time and computation expensive, which tends to further raise their application difficulty in real problems.
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Pre-set LR schedules for (a) image and (b) text classification. (c) Visualization of how we input current loss $\mathcal { L } _ { t }$ to MLR-SNet, which then outputs a proper LR $\alpha _ { t }$ to help SGD find a better minima. LR schedules learned by MLR-SNet on (d) image and (e) text classification. (f) We transfer LR schedules learned on CIFAR-10 to image (CIFAR-100) and text (Penn Treebank) classification, and the subfigure shows the predicted LR during training.
|
| 21 |
+
|
| 22 |
+
To alleviate the aforementioned issues, this paper presents a model to learn a plug-and-play LR schedule. The main idea is to parameterize the LR schedule as a LSTM network (Hochreiter & Schmidhuber, 1997b), which is capable of dealing with such a long-term information dependent problem. As shown in Fig. 1(c), the proposed Meta-LR-Schedule-Net (MLR-SNet) learns an explicit loss-LR dependent relationship. In a nutshell, this paper makes the following three-fold contributions.
|
| 23 |
+
|
| 24 |
+
(1) We propose a MLR-SNet to learn an adaptive LR schedule, which can adjust LR based on current training loss as well as the information delivered from past training histories stored in the MLR-SNet. Due to the parameterized form of the MLR-SNet, it can be more flexible than hand-designed policies to find a proper LR schedule for the specific learning task. Fig.1(d) and 1(e) show our learned LR schedules, which have similar tendency as pre-defined policies, but more variations at their locality. This validates the efficacy of our method for adaptively adjusting LR according to training dynamics.
|
| 25 |
+
|
| 26 |
+
(2) With an explicit parameterized structure, the meta-trained MLR-SNet can be transferred to new heterogeneous tasks (meta-test stage), including different training epochs, network architectures and datasets. Experimental results verify that our plug-and-play LR schedules can achieve comparable performance, while do not have any hyper-parameters compared with tranditional LR schedules. This potentially saves large labor and computation cost in real world applications.
|
| 27 |
+
|
| 28 |
+
(3) The MLR-SNet is meta-learned to improve generalization performance on unseen data. We validate that with the guidance of clean data, our MLR-SNet can achieve better robustness when training data are biased with corrupted noise than hand-designed LR schedules.
|
| 29 |
+
|
| 30 |
+
# 2 RELATED WORK
|
| 31 |
+
|
| 32 |
+
Meta learning for optimization. Meta learning has a long history in psychology (Ward, 1937; Lake et al., 2017). Meta learning for optimization can date back to 1980s-1990s (Schmidhuber, 1992; Bengio et al., 1991), aiming to meta-learn the optimization process of learning itself. Recently, Andrychowicz et al. (2016); Ravi & Larochelle (2017); Chen et al. (2017); Wichrowska et al. (2017); Li & Malik (2017); Lv et al. (2017) have attempted to scale this idea to larger DNN optimization problems. The main idea is to construct a meta-learner as the optimizer, which takes the gradients as input and outputs the whole updating rules. These approaches tend to make selecting appropriate training algorithms, scheduling LR and tuning other hyper-parameters in an automatic way. Except for solving continuous optimization problems, some works employ these ideas to other optimization problems, such as black-box functions (Chen et al., 2017), few-shot learning (Li et al., 2017), model’s curvature (Park & Oliva, 2019), evolution strategies (Houthooft et al., 2018), combinatorial functions (Rosenfeld et al., 2018), etc.
|
| 33 |
+
|
| 34 |
+
Though faster in decreasing training loss than the traditional optimizers in some cases, the learned optimizers may not always generalize well to diverse problems, especially longer horizons (Lv et al., 2017) and large scale optimization problems (Wichrowska et al., 2017). Moreover, they can not be guaranteed to output a proper descent direction in each iteration for DNN training, since they assume all parameters share one small net and ignore the relationship between each parameters. Our proposed method attempts to learn an adaptive LR schedule rather than the whole update rules. This makes it easy to learn and the meta-learned LR schedule can be transferred to new heterogeneous tasks.
|
| 35 |
+
|
| 36 |
+
HPO and LR schedule adaptation. Hyper-parameter optimization (HPO) was historically investigated by selecting proper values for algorithm hyper-parameters to obtain better performance on validation set (see (Hutter et al., 2019) for an overview). Typical methods include grid search, random search (Bergstra & Bengio, 2012), Bayesian optimization (Snoek et al., 2012), gradient-based methods (Franceschi et al., 2017; Shu et al., 2020a;b), etc. Recently, some works attempt to find a proper LR schedule under the framework of gradient-based HPO, which can be solved by bilevel optimization (Franceschi et al., 2017; Baydin et al., 2018). However, most HPO techniques tend to fall into short-horizon bias and easily find a bad minima (Wu et al., 2018b). Our MLR-SNet has an explicit function form, which makes the optimization of the LR schedules more robust and effective.
|
| 37 |
+
|
| 38 |
+
Transfer to heterogeneous tasks. Transfer learning (Pan & Yang, 2009) aims to transfer knowledge obtained from source task to help the learning on the target task. Most transfer learning methods assume the source and target tasks consist of the same instance, feature or model spaces (Yang et al., 2020), which greatly limits their applications. Recently, meta learning (Finn et al., 2017) aims to learn common knowledge shared over a distribution of tasks, such that the learned knowledge can transfer to unseen heterogeneous tasks. Most meta learning approaches focus on few shot learning framework, while we attempt to extend it into a standard learning framwork. The hand-designed LR schedules and HPO methods just try to find a proper LR schedule for given tasks, and need to be learned from scratch for new tasks. However, our meta-learned MLR-SNet is plug-and-play, which can directly transfer how to schedule LR for SGD to heterogeneous tasks without additional learning.
|
| 39 |
+
|
| 40 |
+
# 3 THE PROPOSED META-LR-SCHEDULE-NET (MLR-SNET) METHOD
|
| 41 |
+
|
| 42 |
+
The problem of training DNN can be formulated as the following non-convex optimization problem,
|
| 43 |
+
|
| 44 |
+
$$
|
| 45 |
+
\operatorname* { m i n } _ { w \in \mathbb { R } ^ { n } } \mathcal { L } _ { T r } ( D _ { T r } ; w ) : = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \mathcal { L } _ { i } ^ { T r } ( w ) ,
|
| 46 |
+
$$
|
| 47 |
+
|
| 48 |
+
where $\mathcal { L } _ { i } ^ { T r }$ is the training loss function for data samples $i \in D _ { T r } = \{ 1 , 2 , \cdot \cdot \cdot , N \}$ , which characters the deviation of the model prediction from the data, and $w \in \mathbb { R } ^ { n }$ represents the parameters of the model (e.g., the weight matrices in DNN) to be optimized. SGD (Robbins & Monro, 1951; Polyak, 1964) and its variants, including Momentum (Tseng, 1998), Adagrad (Duchi et al., 2011), Adadelta (Zeiler, 2012), RMSprop (Tieleman & Hinton, 2012), Adam (Kingma & Ba, 2015), are often used for training DNN. In general, these algorithms can be summarized as the following formulation,
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
\boldsymbol { w } _ { t + 1 } = \boldsymbol { w } _ { t } + \Delta \boldsymbol { w } _ { t } , \Delta \boldsymbol { w } _ { t } = \mathcal { O } _ { t } ( \nabla \mathcal { L } ^ { T r } ( \boldsymbol { w } _ { t } ) , \mathcal { H } _ { t } ; \Theta _ { t } ) ,
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
where $w _ { t }$ is $t$ -th updating model parameters, $\nabla \mathcal { L } ^ { T r } ( w _ { t } )$ denotes the gradient of $\mathcal { L } ^ { T r }$ at $w _ { t }$ , $\mathcal { H } _ { t }$ represents the historical gradient information, and $\Theta _ { t }$ is the hyperparameter of the optimizer $\mathcal { O }$ , e.g., LR. To present our method’s efficiency, we focus on the following vanilla SGD formulation,
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
w _ { t + 1 } = w _ { t } - \alpha _ { t } \left( \frac { 1 } { | B _ { t } | } \sum _ { i \in B _ { t } } \nabla \mathcal { L } _ { i } ^ { T r } ( w _ { t } ) \right) ,
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
where $B _ { t } \subset D _ { T r }$ denotes the batch samples randomly sampled from the training dataset, $| B _ { t } |$ denotes the number of the sampled batch samples, and $\nabla \mathcal { L } _ { i } ^ { T \bar { r } } ( w _ { t } )$ denotes the gradient of sample $i$ computed at $w _ { t }$ and $\alpha _ { t }$ is the LR at $t$ -th iteration.
|
| 61 |
+
|
| 62 |
+
# 3.1 EXISTING LR SCHEDULE STRATEGIES
|
| 63 |
+
|
| 64 |
+
As Bengio (2012) demonstrated, the choice of LR remains central to effective DNN training with SGD. As mentioned in Section 1, a variety of hand-designed LR schedules have been proposed. Though they achieve competitive results on some learning tasks, they share several drawbacks: (1) The pre-defined LR schedules suffer from the limited flexibility to adapt to the significantly changed training dynamics for the non-convex optimization problems. (2) It needs to be learned from scratch to find a proper LR schedule for the new tasks, which raises their application difficulty in real problems.
|
| 65 |
+
|
| 66 |
+

|
| 67 |
+
Figure 2: The structure of our proposed MLR-SNet.
|
| 68 |
+
|
| 69 |
+

|
| 70 |
+
Figure 3: (Above) Train loss and (Below) test loss as a function of a point on a random ray starting at the solutions for different methods on CIFAR-100 with ResNet-18.
|
| 71 |
+
|
| 72 |
+
Inspired by current meta-learning developments (Finn et al., 2017; Shu et al., 2018; 2019), some researches proposed to learn a generic optimizer from data (Andrychowicz et al., 2016; Ravi & Larochelle, 2017; Chen et al., 2017; Wichrowska et al., 2017; Li & Malik, 2017; Lv et al., 2017). The main idea is to learn a meta-learner as the optimizer to guide the learning of the whole updating rules. For example, Andrychowicz et al. (2016) try to replace Eq.(2) with the following formulation,
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\boldsymbol { w } _ { t + 1 } = \boldsymbol { w } _ { t } + g _ { t } , [ g _ { t } , h _ { t + 1 } ] ^ { T } = m ( \nabla _ { t } , h _ { t } ; \phi ) ,
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
where $g _ { t }$ is the output of a LSTM net $m$ , parameterized by $\phi$ , whose state is $h _ { t }$ .This strategy can make selecting appropriate training algorithms, scheduling LR and tuning other hyper-parameters in a unified and automatic way. Though faster in decreasing training loss than the traditional optimizers in some cases, the learned optimizer may not always generalize well to more variant and diverse problems, like longer horizons (Lv et al., 2017) and large scale optimization problems (Wichrowska et al., 2017). Moreover, it can not guarantee to output a proper descent direction in each iteration for network training. This tends to further increase their application difficulty in real problems.
|
| 79 |
+
|
| 80 |
+
Recently, some methods (Franceschi et al., 2017; Baydin et al., 2018) consider the following constrained optimization problem to search the optimal LR schedule $\alpha ^ { * }$ such that the produced models are associated with small validation error,
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
\operatorname* { m i n } _ { \alpha = \{ \alpha _ { 0 } , \cdots , \alpha _ { T - 1 } \} } { \mathcal { L } } _ { V a l } ( D _ { V a l } , w _ { T } ) , s . t . w _ { t + 1 } = \phi _ { t } ( w _ { t } , \alpha _ { t } ) , t = 0 , 1 , \cdots , T - 1 ,
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
where ${ \mathcal { L } } _ { V a l }$ denotes the validation loss function, $D _ { V a l } = \{ 1 , 2 , \cdots , M \}$ denotes hold-out validation set, $\alpha$ is to-be-solved hyper-parameter, $\phi _ { t } : \mathbb { R } ^ { n } \times \mathbb { R } _ { + } \to \mathbb { R } ^ { n }$ is a stochastic weight update dynamics, like the updating rule in Eq.(2) or the vanilla SGD in Eq.(3), and $T$ is the maximum iteration step. Though achieving comparable results on some tasks with hand-designed LR schedules, they can not directly transfer to new tasks, since they do not have an explict transferable structure form.
|
| 87 |
+
|
| 88 |
+
# 3.2 PROPOSED META-LR-SCHEDULE-NET (MLR-SNET) METHOD
|
| 89 |
+
|
| 90 |
+
To address aforementioned issues, the main idea is to design a meta-learner with an explicit mapping formulation to parameterize LR schedules as shown in Fig.1(c), called MLR-SNet. The parameterized structure can bring two benefits: 1) It gives more flexibility to learn a proper LR schedule to comply with the significantly changed training dynamics of DNN; 2) It makes the meta-learned LR schedules be transferable and plug-and-play, which can be applied to new heterogeneous tasks.
|
| 91 |
+
|
| 92 |
+
Formulation of MLR-SNet. The computational graph of MLR-SNet is depicted in Fig.2(a). Let $\mathcal { A } ( \cdot ; \theta )$ denote the MLR-SNet, and then the updating equation of SGD in Eq.(3) can be rewritten as
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
w _ { t + 1 } = w _ { t } - \mathcal { A } ( \mathcal { L } _ { t } ; \theta _ { t } ) \left( \frac { 1 } { | B _ { t } | } \sum _ { i \in B _ { t } } \nabla \mathcal { L } _ { i } ^ { T r } ( w _ { t } ) \right) , \mathcal { L } _ { t } = \frac { 1 } { | B _ { t } | } \sum _ { i \in B _ { t } } \mathcal { L } _ { i } ^ { T r } ( w _ { t } ) ,
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
where $\theta _ { t }$ is the parameter of MLR-SNet at $t { \cdot }$ -th iteration $( t = 0 , \cdots , T - 1 )$ . At any iteration steps, $\mathcal { A } ( \cdot ; \theta )$ can learn an explicit loss-LR dependent relationship, such that the net can adaptively predict LR according to the current input loss $\scriptstyle { \mathcal { L } } _ { t }$ , as well as the historical information stored in the net. For every iteration step, the whole forward computation process is (as shown in Fig. 2(b))
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
\left( \begin{array} { l } { i _ { t } } \\ { f _ { t } } \\ { o _ { t } } \\ { g _ { t } } \end{array} \right) = \left( \begin{array} { l } { \sigma } \\ { \sigma } \\ { \sigma } \\ { \operatorname { t a n h } } \end{array} \right) W _ { 2 } \left( \begin{array} { l } { \operatorname { R e L U } } \\ { \operatorname { R e L U } } \end{array} \right) W _ { 1 } \left( \begin{array} { l } { h _ { t - 1 } } \\ { \mathscr { L } _ { t } } \end{array} \right) , \begin{array} { l } { c _ { t } = f _ { t } \odot c _ { t - 1 } + i _ { t } \odot g _ { t } } \\ { h _ { t } = o _ { t } \odot \operatorname { t a n h } ( c _ { t } ) } \\ { p _ { t } = \sigma ( W _ { 3 } h _ { t } ) } \\ { \alpha _ { t } = \gamma \cdot p _ { t } } \end{array} ,
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
where $i _ { t } , f _ { t } , o _ { t }$ denote the Input, Forget and Output gates, respectively. Different from vanilla LSTM, the input $h _ { t - 1 }$ and the training loss $\mathcal { L } _ { t }$ are preprocessed by a fully-connected layer $W _ { 1 }$ with ReLU activation function. Then it works as LSTM and obtains the output $h _ { t }$ . After that, the predicted value $p _ { t }$ is obtained by a linear transform $W _ { 3 }$ on the $h _ { t }$ with a Sigmoid activation function. Finally, we introduce a scale factor $\gamma ^ { 1 }$ to guarantee the final predicted LR located in the interval of $[ 0 , \gamma ]$ . Albeit simple, this net is known for dealing with such long-term information dependent problem, and thus capable of finding a proper LR schedule to comply with the complex variations of training dynamics.
|
| 105 |
+
|
| 106 |
+
Meta-Train: adapting to the training dynamics of DNN. The MLR-SNet can be meta-trained to improve the generalization performance on unseen validation data for DNN training as follows:
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
\operatorname* { m i n } _ { \theta } \mathcal { L } _ { V a l } ( D _ { V a l } , w _ { T } ) , s . t . w _ { t + 1 } = \phi _ { t } ( w _ { t } , \mathcal { A } ( \mathcal { L } _ { t } ; \theta ) ) , t = 0 , 1 , \cdots , T - 1 .
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
Now the important question is how to efficiently meta-learn the parameter $\theta$ for the MLR-SNet. We employ the online approximation technique in (Shu et al., 2019) to jointly update $\theta$ and model parameter $w$ to explore a proper LR schedule with better generalization for DNNs training. However, the step-wise optimization for $\theta$ is still expensive to handle large-scale datasets and DNN. Furthermore, we attempt to update $\theta$ after updating $w$ several steps $( T _ { v a l } )$ as summarized in Algorithm 1.
|
| 113 |
+
|
| 114 |
+
Updating $\theta$ . When it does not satisfy the updating conditions, $\theta$ is fixed; otherwise, $\theta$ is updated using the model parameter $w _ { t }$ and MLR-SNet parameter $\theta _ { t }$ obtained in the last step by minimizing the validation loss defined in Eq.(8). Adam can be employed to optimize the validation loss, i.e.,
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
\begin{array} { r } { \theta _ { t + 1 } = \theta _ { t } + A d a m ( \nabla _ { { \theta } } \mathcal { L } _ { V a l } ( D _ { m } , \hat { w } _ { t + 1 } ( { \theta } ) ) ; \eta _ { t } ) , } \end{array}
|
| 118 |
+
$$
|
| 119 |
+
|
| 120 |
+
where Adam denotes the Adam algorithm, whose input is the gradient of validation loss with respect to MLR-SNet parameter $\theta$ on $m$ mini-batch samples $D _ { m }$ from $D _ { V a l }$ . $\eta _ { t }$ denotes the LR of Adam. $\hat { w } _ { t + 1 } ( \theta ) ^ { 2 }$ is formulated on a mini-batch training samples $D _ { n }$ from $D _ { T r }$ as follows:
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
\boldsymbol { \hat { w } } _ { t + 1 } ( \theta ) = \boldsymbol { w } _ { t } - \boldsymbol { \mathcal { A } } ( \boldsymbol { \mathcal { L } } _ { T r } ( D _ { n } , \boldsymbol { w } _ { t } ) ; \theta ) \cdot \nabla _ { \boldsymbol { w } } \boldsymbol { \mathcal { L } } _ { T r } ( D _ { n } , \boldsymbol { w } ) \big | _ { \boldsymbol { w } _ { t } } .
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
Updating $w$ . Then, the updated $\theta _ { t + 1 }$ is employed to ameliorate the model parameter $w$ , i.e.,
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
w _ { t + 1 } = w _ { t } - { \cal A } ( { \cal L } _ { T r } ( D _ { n } , w _ { t } ) ; \theta _ { t + 1 } ) \cdot \nabla _ { w } { \cal L } _ { T r } ( D _ { n } , w ) \big | _ { w _ { t } } .
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
The whole meta-train learning algorithm can be summarized in Algorithm 1. All computations of gradients can be efficiently implemented by automatic differentiation libraries, like PyTorch (Paszke et al., 2019), and generalized to any DNN architectures. It can be seen that the MLR-SNet can be gradually optimized during the learning process and adjust the LR dynamically based on the training dynamics of DNNs.
|
| 133 |
+
|
| 134 |
+
# Algorithm 1 The Meta-Train Algorithm of MLR-SNet
|
| 135 |
+
|
| 136 |
+
Input: Training data $D _ { T r }$ , validation set $D _ { V a l }$ , batch size $n , m$ max iterations $T$ , updating period $T _ { v a l }$ .
|
| 137 |
+
|
| 138 |
+
Output: Model parameter $w _ { T }$ and MLR-SNet parameter $\theta _ { T }$
|
| 139 |
+
|
| 140 |
+
1: Initialize model parameter $_ { w _ { 0 } }$ and MLR-SNet parameter $\theta _ { 0 }$ .
|
| 141 |
+
2: for $t = 0$ to $T - 1$ do
|
| 142 |
+
3: $D _ { n } \gets .$ SampleMiniBatch $( D _ { T r } , n )$ .
|
| 143 |
+
4: if $t \% T _ { v a l } = 0$ , then
|
| 144 |
+
5: $D _ { m } \gets$ SampleMiniBatch $( D _ { V a l } , m )$ .
|
| 145 |
+
6: Update $\theta _ { t + 1 }$ by Eq. (9).
|
| 146 |
+
7: end if
|
| 147 |
+
8: Update $w _ { t + 1 }$ by Eq. (11).
|
| 148 |
+
9: end for
|
| 149 |
+
|
| 150 |
+
Meta-Test: transferring to heterogeneous tasks. When we obtain the meta-learned MLR-SNet, it can be easily applied to new tasks. Now the new model parameter $u$ for the new task is updated by,
|
| 151 |
+
|
| 152 |
+
$$
|
| 153 |
+
\begin{array} { r } { u _ { t + 1 } = u _ { t } - \mathcal { A } ( \mathcal { L } _ { T r } ( D _ { n } , u _ { t } ) ; \theta ^ { * } ) \cdot \nabla _ { u } \mathcal { L } _ { T r } ( D _ { n } , u ) \big | _ { u _ { t } } , } \end{array}
|
| 154 |
+
$$
|
| 155 |
+
|
| 156 |
+
where $\theta ^ { * }$ is the parameter of the meta-learned MLR-SNet, which is fixed in the meta-test stage.
|
| 157 |
+
|
| 158 |
+
# 4 EXPERIMENTAL RESULTS
|
| 159 |
+
|
| 160 |
+
To evaluate the proposed MLR-SNet, we firstly conduct experiments to show our method is capable of finding proper LR schedules compared with baseline methods. Then we transfer the learned LR schedules to various tasks to show its superiority in generalization. Finally, we show our method behaves robust and stable when training data contain different data corruptions.
|
| 161 |
+
|
| 162 |
+
1As we know that the performance of hand-designed LR schedules and HPO methods is very sensitive to the initial LR. To avoid carefully tuning the initial LR, we learn the LR schedules from an interval $[ 0 , \gamma ]$ , and now the initial LR is determined by the output of the MLR-SNet. We set $\gamma = 1$ for image tasks, and $\gamma = 4 0$ for text tasks in all our experiments to eliminate the influence of loss magnitude between two different tasks.
|
| 163 |
+
|
| 164 |
+
2Notice that $\hat { w } _ { t + 1 } ( \boldsymbol { \theta } )$ here is a function of $\theta$ to guarantee the gradient in Eq.(9) to be able to compute.
|
| 165 |
+
|
| 166 |
+

|
| 167 |
+
Figure 5: Test accuracy on CIFAR-100 of ResNet-18 with varying epochs.
|
| 168 |
+
|
| 169 |
+
# 4.1 META-TRAIN: EVALUATION ON THE LR SCHEDULE LEARNED BY MLR-SNET
|
| 170 |
+
|
| 171 |
+
Datasets and models. To verify general effectiveness of our method, we respectively train different models on four benchmark data, including ResNet-18 (He et al., 2016) on CIFAR-10, WideResNet28-10 (Zagoruyko & Komodakis, 2016) on CIFAR-100 (Krizhevsky, 2009), 2-layer LSTM and 3-layer LSTM on Penn Treebank (Marcus & Marcinkiewicz).
|
| 172 |
+
|
| 173 |
+
Baselines. For image classification tasks, the compared methods include SGD with hand-designed LR schedules: 1) Fixed LR, 2) Exponential decay, 3) MultiStep decay, 4) SGD with restarts (SGDR) (Loshchilov & Hutter, 2017). Also, we compare with SGD with Momentum (SGDM) with above four LR schedules. The momentum is fixed as 0.9. Meanwhile, we compare with adaptive gradient method: 5)Adam, LR search method: 6) L4 (Rolinek & Martius, 2018), and current LR schedule adaptation methods: 7) hyper-gradient descent (HD) (Baydin et al., 2018), 8) real-time hyper-parameter optimization (RTHO) (Franceschi et al., 2017). For text classification tasks, we compare with 1) SGD and 2) Adam with LR tuned using a validation set. They drop the LR by a factor of 4 when the validation loss stops decreasing. Also, we compared with 3) L4, 4) HD, 5) RTHO. We run all experiments with 3 different seeds reporting accuracy. The detailed illustrations of experimental setting, and more experimental results are presented in Appendix B.
|
| 174 |
+
|
| 175 |
+
Image tasks. Fig.4(a) and 4(b) show the classification accuracy on CIFAR-10 and CIFAR-100 test sets, respectively. It can be observed that: 1) our algorithm outperforms all other competing methods, and the learned LR schedules by MLR-SNet are presented in Fig.1(d), which have similar shape as the hand-designed policies, while with more elaborate variation details in locality for adapting training dynamics. 2) The Fixed LR has similar performance to other baselines at the early training, while falls into fluctuations at the later training. This implies that the Fixed LR can not finely adapt to such DNN training dynamics. 3) The MultiStep LR drops the LR at some epochs, and such elegant strategy overcomes the issue of Fixed LR and obtains higher and stabler performance at the later training. 3) The Exponential LR improves test performance faster at the early training than other baselines, while makes a slow progress due to smaller LR at the later training. 4) SGDR uses the cyclic LR, which needs more epochs to obtain a stable result. 5) Though Adam has an adaptive coordinate-specific LR, it behaves worse than MultiStep and Exponential LR as demonstrated in Wilson et al. (2017). An extra tuning is necessary for better performance. 6) L4 greedily searches LR locally to decrease loss, while the complex DNN training dynamics can not guarantee it to obtain a good minima. 7) HD and RTHO are able to achieve similar performance to hand-designed LR schedules. The LR schedules learned by L4, HD and RTHO can be found in supplementary material.
|
| 176 |
+
|
| 177 |
+

|
| 178 |
+
|
| 179 |
+

|
| 180 |
+
Figure 6: Test accuracy of transferred LR schedules on different datasets.
|
| 181 |
+
Figure 7: Test accuracy on CIFAR-10 of different network architectures
|
| 182 |
+
|
| 183 |
+
Since image tasks often use SGDM to train DNNs, Fig.4(d) and 4(e) show the results of baseline methods trained with SGDM, and they obtain a remarkable improvement than SGD. Though not using extra historical gradient information to help optimization, our method achieves comparable results with baselines by finding a proper LR schedule for SGD.
|
| 184 |
+
|
| 185 |
+
Text tasks. Fig.4(c) and 4(f) show the test perplexity on the Penn Treebank with 2-layer and 3-layer LSTM, respectively. Adam and SGD heuristically drops LR when the validation loss stops decreasing. However, our MLR-SNet predicts LR according to training dynamics by minimizing the validation loss, which is a more intelligent way to employ the validation dataset. Thus our method achieves comparable or even better performance than Adam and SGD. The learned LR schedules of the MLR-SNet are presented in Fig.1(b), which have similar shape as the hand-designed policies. L4 often falls into a bad minima since it greedily searches LR locally. HD and RTHO directly optimize LR to improve the performance on validation dataset, obtaining the similar results as Adam and SGD. With an explicit strcuture, our method behaves more robust and efficient than HD and RTHO.
|
| 186 |
+
|
| 187 |
+
Remark. Actually, the performance of the hand-design LR schedules can be regarded as the best/ upper performance bound. Since these strategies have been tested to work well for the specific tasks, and they are written into the standard deep learning library. For different image and text tasks, our MLR-SNet can achieve the similar or even a little better performance compared with the best baselines, demostrating the effectiveness and generality of our method.
|
| 188 |
+
|
| 189 |
+
# 4.2 META-TEST: TRANSFERABILITY OF PLUG-AND-PLAY LR SCHEDULES
|
| 190 |
+
|
| 191 |
+
The learned MLR-SNet is transferable and plug-and-play. Here we validate if MLR-SNet can transfer to new heterogeneous tasks. Since the methods L4,HD,RTHO in Section 4.1 are not able to generalize, we do not compare them here. Actually our results show superiority on image tasks beyond baseline methods when trained with SGD, here we present stronger baseline results in which compared methods are trained with SGDM. We use the MLR-SNet meta-learned on CIFAR-10 with ResNet-18 in Section 4.1 as the plug-and-play LR schedules for the following experiments.
|
| 192 |
+
|
| 193 |
+
Transfer to different epochs. The plug-and-play MLR-SNet is meta-trained with epoch 200, and we transfer it to other different training epochs, e.g., 100, 400,1200. As shown in Fig.5, our MLR-SNet has the ability to train for longer horizons and achieves almost same performance as MultiStep LR. The slight shakes for epoch 1200 may due to that our MLR-SNet can learn the LR similar to SGDR locally. The Exponential LR has a little performance decreased for the longer epochs.
|
| 194 |
+
|
| 195 |
+
Transfer to different datasets. We transfer the LR schedules meta-learned on CIFAR-10 to SVHN (Netzer et al., 2011), TinyImageNet 3, and Penn Treebank (Marcus & Marcinkiewicz). As shown in Fig.6, though datasets vary from image to text, our method can still obtain a relatively stable and comparable generalization performance for different tasks with baseline method.
|
| 196 |
+
|
| 197 |
+
Transfer to different net architectures. We also transfer the LR schedules meta-learned on ResNet18 to light-weight nets ShuffleNetV2 (Ma et al., 2018), MobileNetV2 (Sandler et al., 2018) or NASNet (Zoph et al., 2018) 4. As shown in Fig.7, our method achieves almost similar results to SGDM with MultiStep or Exponential LR.
|
| 198 |
+
|
| 199 |
+

|
| 200 |
+
Figure 8: Test accuracy on ImageNet with ResNet-50.
|
| 201 |
+
|
| 202 |
+

|
| 203 |
+
Figure 9: Comparion of different meta-learners.
|
| 204 |
+
|
| 205 |
+

|
| 206 |
+
Figure 10: Time consuming of different LR schedules methods.
|
| 207 |
+
|
| 208 |
+
Table 1: Test accuracy $( \% )$ on CIFAR-10 and CIFAR-100 training set of different methods trained on CIFAR-10-C and CIFAR-100-C. Best and Last denote the results of the best and the last epoch.
|
| 209 |
+
|
| 210 |
+
<table><tr><td colspan="2">Datasets/Methods</td><td>Fixed</td><td>MultiStep</td><td>Exponential</td><td>SGDR</td><td>Adam</td><td>Ours(Train)</td></tr><tr><td rowspan="2">CIFAR-10-C</td><td>Best</td><td>79.78±3.95</td><td>85.52±1.72</td><td>83.48±1.45</td><td>85.94±1.52</td><td>81.45±1.42</td><td>86.04±1.51</td></tr><tr><td>Last</td><td>77.88±3.91</td><td>85.36±1.71</td><td>83.32±1.43</td><td>78.21±2.01</td><td>80.29±1.64</td><td>85.87±1.54</td></tr><tr><td rowspan="2">CIFAR-100-C</td><td>Best</td><td>46.74±3.03</td><td>52.26±2.58</td><td>49.72±1.97</td><td>52.54±2.49</td><td>45.45±1.94</td><td>52.56±2.26</td></tr><tr><td>Last</td><td>44.79±3.91</td><td>52.16±2.59</td><td>49.58±1.98</td><td>41.58±3.24</td><td>43.76±2.22</td><td>52.42±2.34</td></tr></table>
|
| 211 |
+
|
| 212 |
+
Transfer to large scale optimization problem. To our best knowledge, only Wichrowska et al. (2017) attempted to use the learned optimizers to train DNN on ImageNet dataset (Deng et al., 2009) among existing learning-to-optimize literatures. However, it can only be executed for thousands of steps, and then its loss begins to increase dramatically, far from the optimization process in practice. We transfer the LR schedule meta-trained on CIFAR-10 with ResNet-18 to ImageNet dataset with ResNet-50 5. As shown in Fig.8, the validation accuracy of our method is competitive with those hand-designed LR schedules methods. This implies our method is capable of dealing with such large scale optimization problem, making learning-to-optimize ideas towards more practical applications.
|
| 213 |
+
|
| 214 |
+
# 4.3 ROBUSTNESS ON DIFFERENT DATA CORRUPTIONS
|
| 215 |
+
|
| 216 |
+
In this section, we validate that whether our MLR-SNet behaves robust against corrupted training data. To this aim, we design experiments as follows: we take CIFAR-10-C and CIFAR-100-C (Hendrycks & Dietterich, 2019) as our training set, consisting of 15 types of different generated corruptions on test images data of CIFAR-10/CIFAR-100, and the original training set of CIFAR-10/100 as test set. Though the original images of CIFAR-10/100-C are the same with the CIFAR-10/100 test set, different corruptions have changed the data distributions. To guarantee the calculated models finely generalize to test set, we choose the validation set as 10 clean images for each class. Each corruption can be roughly regarded as a task, and thus we obtain 15 models trained on CIFAR-10/100-C. Table 1 shows the mean test accuracy of 15 models ( $\pm$ std). As can be seen, our proposed MLR-SNet is capable of achieving better generalization performance on clean test data than baseline methods, which implies that our method behaves more robust and stable than the pre-set LR schedules when the learning tasks are changed. This is due to that our MLR-SNet has more flexibility to adapt the variation of the data distribution than the pre-set LR schedules, and it can find a proper LR schedule through minimizing the generalization error which is based on the knowledge specifically conveyed from the given validation data. The detailed illustrations of experimental setting, and the transferrablity experiment of meta-learned MLR-SNet are presented in supplementary material.
|
| 217 |
+
|
| 218 |
+
# 5 SOME ANALYSIS OF MLR-SNET
|
| 219 |
+
|
| 220 |
+
# 5.1 CONVERGENCE ANALYSIS OF MLR-SNET
|
| 221 |
+
|
| 222 |
+
The preliminary experimental evaluations show that our method gives good convergence performance on various tasks. We find that the meta-learned LR schedules in our experiments follow a consistent trajectory as shown in Fig.1, sharing a similar tendency as the Exponential LR schedules. To provide a theoretical convergence analysis, we roughly assume that the LR predicted by MLR-SNet obey a Exponential LR form. The convergence analysis for DNN training can refer to (Li et al., 2020). Here, we provide a convergence analysis of the MLR-SNet training. The proof is listed in the Appendix A.
|
| 223 |
+
|
| 224 |
+
Theorem 1 Suppose the loss function $\ell$ is Lipschitz smooth with respect to the model parameter $w$ with constant $L$ , and have $\rho$ -bounded gradients with respect to training/validation data. And the $\mathcal A ( \theta )$ is differential with a $\delta$ -bounded gradient and twice differential with its Hessian bounded by $\boldsymbol { B }$ . Let the learning rate $\alpha _ { t } = \mathcal { A } ( \theta _ { t } )$ predicted by MLR-SNet obey the exponential LR, i.e., $\alpha _ { t } = \alpha _ { 0 } \beta ^ { t } , \beta = ( \Gamma / T ) ^ { 1 / T } , \Gamma \geq 1 .$ . Let $\eta _ { t } = \eta$ for all $t \in [ T ]$ . If we use Adam algorithm to update MLR-SNet, we choose $\eta$ satisfied $\eta \leq \frac { \epsilon } { 2 L }$ and $\begin{array} { r } { 1 - \beta _ { 2 } \le \frac { \epsilon ^ { 2 } } { 1 6 \rho ^ { 2 } } } \end{array}$ , where $\beta _ { 2 }$ , $\epsilon$ are the hyperparameter of the Adam algorithm. Then for $\theta _ { t }$ generated using Adam, we have the following bound:
|
| 225 |
+
|
| 226 |
+
$$
|
| 227 |
+
\operatorname* { m i n } _ { 0 \leq t \leq T } \mathbb { E } [ \| \nabla \mathcal { L } _ { V a l } ( \hat { \mathbf { w } } _ { t } ( \theta _ { t } ) ) \| _ { 2 } ^ { 2 } ] \leq \mathcal { O } ( \frac { C \ln ( T ) } { T } + \sigma ^ { 2 } ) ,
|
| 228 |
+
$$
|
| 229 |
+
|
| 230 |
+
where $C$ is some constant independent of the convergence process, $\sigma$ is the variance of drawing uniformly mini-batch sample at random.
|
| 231 |
+
|
| 232 |
+
# 5.2 THE STRUCTURE OF THE MLR-SNET
|
| 233 |
+
|
| 234 |
+
We regard the LR scheduling as a long-term information dependent problem, and thus we parameterize the LR schedule as an LSTM network. As we known, MLP network can also learn an explicit mapping but ignore the temporal information. Here, we compare the performance of the two types of metalearners. As shown in Fig. 9, in the early training stage, both of them achieve the similar performance. While at the later training stage, the LSTM meta-learner brings a notable performance increase compared with MLP meta-learner. This may due to that the accumulated temporal information of the LSTM meta-learner can help find a more proper LR for such DNNs training.
|
| 235 |
+
|
| 236 |
+
# 5.3 COMPUTATIONAL COMPLEXITY ANALYSIS
|
| 237 |
+
|
| 238 |
+
In the meta-training stage, our MLR-SNet learning algorithm can be roughly regarded as requiring two extra full forward and backward passes of the network (step 6 in algorithm 1) in the presence of the normal network parameters update (step 8 in algorithm 1), together with the forward passes of MLR-SNet for every LR. Therefore compared to normal training, our method needs about $3 \times$ computation time for one iteration. Since we periodically update MLR-SNet after several iterations, this will not substantially increase the computational complexity compared with normal network training. In the meta-test stage, our transferred LR schedules predict LR for each iteration by a small MLR-SNet, whose computational cost should be significantly less than the cost of the normal network training. To empirically show the differences between hand-designed LR schedules and our method, we conduct experiments with ResNet-18 on CIFAR-10 and report the running time for all methods. All experiments are implemented on a computer with Intel Xeon(R) CPU E5-2686 v4 and a NVIDIA GeForce RTX 2080 8GB GPU. We follow the corresponding settings in Section 4.1, and results are shown in Figure 10. Except that RTHO costs significantly more time, other methods including MLR-SNet training and testing have similar time consuming. Our MLR-SNet takes barely longer time to complete the meta-training and meta-testing phase compared to hand-designed LR schedules. Therefore our method is completely capable of practical application.
|
| 239 |
+
|
| 240 |
+
# 6 CONCLUSION AND DISCUSSION
|
| 241 |
+
|
| 242 |
+
In this paper, we have proposed to learn an adaptive and transferrable LR schedule in a meta learning manner. To this aim, we design an LSTM-type meta-learner (MLR-SNet) to parameterize LR schedules, which gives more flexibility to adaptively learn a proper LR schedule to comply with the significantly complex training dynamics of DNN. Meanwhile, the meta-learned LR schedules are plug-and-play and transferrable, which can be transferred how to schedule LR for SGD to new heterogeneous tasks. Comprehensive experiments substantiate the superiority of our method on various image and text benchmarks in its adaptability, transferrability and robustness, as compared with current LR schedules policies. The MLR-SNet is highly practical as it requires negligible increase in the parameter size and computation time, and no transferrable cost for new tasks. We believe our proposed method has a potential to become a new tool to study how to design LR schedules to help improve current DNN training, as well as more practical applications.
|
| 243 |
+
|
| 244 |
+
Recently, Keskar et al. (2017); Dinh et al. (2017) suggested that the width of a local optimum is related to generalization. Wider optima leads to better generalization. We use the visualization technique in (Izmailov et al., 2018) to visualize the "width" of the solutions for different LR schedules on CIFAR-100 with ResNet-18. As shown in Fig.3, our method lies a wide flat region of the train loss. This could explain the better generalization of our method compared with pre-set LR schedules. Deeper understandings on this point will be further investigated.
|
| 245 |
+
|
| 246 |
+
# REFERENCES
|
| 247 |
+
|
| 248 |
+
Marcin Andrychowicz, Misha Denil, Sergio Gomez, Matthew W Hoffman, David Pfau, Tom Schaul, Brendan Shillingford, and Nando De Freitas. Learning to learn by gradient descent by gradient descent. In NeurIPS, 2016.
|
| 249 |
+
|
| 250 |
+
Atilim Gunes Baydin, Robert Cornish, David Martinez Rubio, Mark Schmidt, and Frank Wood. Online learning rate adaptation with hypergradient descent. In ICLR, 2018.
|
| 251 |
+
|
| 252 |
+
Y Bengio, S Bengio, and J Cloutier. Learning a synaptic learning rule. In IJCNN, volume 2, pp. 969–vol. IEEE, 1991.
|
| 253 |
+
|
| 254 |
+
Yoshua Bengio. Practical recommendations for gradient-based training of deep architectures. In Neural networks: Tricks of the trade, pp. 437–478. Springer, 2012.
|
| 255 |
+
|
| 256 |
+
James Bergstra and Yoshua Bengio. Random search for hyper-parameter optimization. JMLR, 2012.
|
| 257 |
+
|
| 258 |
+
Leonard Berrada, Andrew Zisserman, and M Pawan Kumar. Deep frank-wolfe for neural network optimization. In ICLR, 2019.
|
| 259 |
+
|
| 260 |
+
Yutian Chen, Matthew W Hoffman, Sergio Gómez Colmenarejo, Misha Denil, Timothy P Lillicrap, Matt Botvinick, and Nando De Freitas. Learning to learn without gradient descent by gradient descent. In ICML, 2017.
|
| 261 |
+
|
| 262 |
+
Damek Davis, Dmitriy Drusvyatskiy, and Vasileios Charisopoulos. Stochastic algorithms with geometric step decay converge linearly on sharp functions. arXiv:1907.09547, 2019.
|
| 263 |
+
|
| 264 |
+
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, 2009.
|
| 265 |
+
|
| 266 |
+
Laurent Dinh, Razvan Pascanu, Samy Bengio, and Yoshua Bengio. Sharp minima can generalize for deep nets. In ICML, 2017.
|
| 267 |
+
|
| 268 |
+
John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. Journal of machine learning research, 12(Jul):2121–2159, 2011.
|
| 269 |
+
|
| 270 |
+
Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In ICML, 2017.
|
| 271 |
+
|
| 272 |
+
Luca Franceschi, Michele Donini, Paolo Frasconi, and Massimiliano Pontil. Forward and reverse gradient-based hyperparameter optimization. In ICML, 2017.
|
| 273 |
+
|
| 274 |
+
Rong Ge, Sham M Kakade, Rahul Kidambi, and Praneeth Netrapalli. The step decay schedule: A near optimal, geometrically decaying learning rate procedure for least squares. In NeurIPS, 2019.
|
| 275 |
+
|
| 276 |
+
Robert Mansel Gower, Nicolas Loizou, Xun Qian, Alibek Sailanbayev, Egor Shulgin, and Peter Richtárik. Sgd: General analysis and improved rates. In ICML, 2019.
|
| 277 |
+
|
| 278 |
+
Fengxiang He, Tongliang Liu, and Dacheng Tao. Control batch size and learning rate to generalize well: Theoretical and empirical evidence. In NeurIPS, 2019.
|
| 279 |
+
|
| 280 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
|
| 281 |
+
|
| 282 |
+
Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In ICLR, 2019.
|
| 283 |
+
|
| 284 |
+
Sepp Hochreiter and Jürgen Schmidhuber. Flat minima. Neural Computation, 9(1):1–42, 1997a.
|
| 285 |
+
|
| 286 |
+
Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8): 1735–1780, 1997b.
|
| 287 |
+
|
| 288 |
+
Rein Houthooft, Yuhua Chen, Phillip Isola, Bradly Stadie, Filip Wolski, OpenAI Jonathan Ho, and Pieter Abbeel. Evolved policy gradients. In NeurIPS, 2018.
|
| 289 |
+
|
| 290 |
+
Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, 2017.
|
| 291 |
+
|
| 292 |
+
Frank Hutter, Lars Kotthoff, and Joaquin Vanschoren. Automated Machine Learning. Springer, 2019.
|
| 293 |
+
|
| 294 |
+
Pavel Izmailov, Dmitrii Podoprikhin, Timur Garipov, Dmitry Vetrov, and Andrew Gordon Wilson. Averaging weights leads to wider optima and better generalization. In UAI, 2018.
|
| 295 |
+
|
| 296 |
+
Stanisław Jastrzebski, Zachary Kenton, Devansh Arpit, Nicolas Ballas, Asja Fischer, Yoshua Bengio, and Amos Storkey. Three factors influencing minima in sgd. arXiv:1711.04623, 2017.
|
| 297 |
+
|
| 298 |
+
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. In ICLR, 2017.
|
| 299 |
+
|
| 300 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
|
| 301 |
+
|
| 302 |
+
Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009.
|
| 303 |
+
|
| 304 |
+
Brenden M Lake, Tomer D Ullman, Joshua B Tenenbaum, and Samuel J Gershman. Building machines that learn and think like people. Behavioral and brain sciences, 40, 2017.
|
| 305 |
+
|
| 306 |
+
Jason D Lee, Ioannis Panageas, Georgios Piliouras, Max Simchowitz, Michael I Jordan, and Benjamin Recht. First-order methods almost always avoid saddle points. Mathematical Programming, 2019.
|
| 307 |
+
|
| 308 |
+
Ke Li and Jitendra Malik. Learning to optimize neural nets. In ICLR, 2017.
|
| 309 |
+
|
| 310 |
+
Xiaoyu Li, Zhenxun Zhuang, and Francesco Orabona. Exponential step sizes for non-convex optimization. arXiv preprint arXiv:2002.05273, 2020.
|
| 311 |
+
|
| 312 |
+
Zhenguo Li, Fengwei Zhou, Fei Chen, and Hang Li. Meta-sgd: Learning to learn quickly for few-shot learning. arXiv preprint arXiv:1707.09835, 2017.
|
| 313 |
+
|
| 314 |
+
Ilya Loshchilov and Frank Hutter. Sgdr: Stochastic gradient descent with warm restarts. In ICLR, 2017.
|
| 315 |
+
|
| 316 |
+
Kaifeng Lv, Shunhua Jiang, and Jian Li. Learning gradient descent: Better generalization and longer horizons. In ICML, 2017.
|
| 317 |
+
|
| 318 |
+
Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. Shufflenet v2: Practical guidelines for efficient cnn architecture design. In ECCV, 2018.
|
| 319 |
+
|
| 320 |
+
Mitchell P Marcus and Mary Ann Marcinkiewicz. Building a large annotated corpus of english: The penn treebank. Computational Linguistics, 19(2).
|
| 321 |
+
|
| 322 |
+
Kamil Nar and Shankar Sastry. Step size matters in deep learning. In NeurIPS, 2018.
|
| 323 |
+
|
| 324 |
+
Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. In NeurIPS Workshop on Deep Learning and Unsupervised Feature Learning, 2011.
|
| 325 |
+
|
| 326 |
+
Jorge Nocedal and Stephen Wright. Numerical optimization. Springer Science & Business Media, 2006.
|
| 327 |
+
|
| 328 |
+
Sinno Jialin Pan and Qiang Yang. A survey on transfer learning. IEEE Transactions on knowledge and data engineering, 22(10):1345–1359, 2009.
|
| 329 |
+
|
| 330 |
+
Ioannis Panageas, Georgios Piliouras, and Xiao Wang. First-order methods almost always avoid saddle points: The case of vanishing step-sizes. In NeurIPS, 2019.
|
| 331 |
+
|
| 332 |
+
Eunbyung Park and Junier B Oliva. Meta-curvature. In NeurIPS, 2019.
|
| 333 |
+
|
| 334 |
+
Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. In NeurIPS, 2019.
|
| 335 |
+
|
| 336 |
+
Boris T Polyak. Some methods of speeding up the convergence of iteration methods. Computational Mathematics and Mathematical Physics, 4(5):1–17, 1964.
|
| 337 |
+
|
| 338 |
+
Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. In ICLR, 2017.
|
| 339 |
+
|
| 340 |
+
Herbert Robbins and Sutton Monro. A stochastic approximation method. The annals of mathematical statistics, pp. 400–407, 1951.
|
| 341 |
+
|
| 342 |
+
Michal Rolinek and Georg Martius. L4: Practical loss-based stepsize adaptation for deep learning. In NeurIPS, 2018.
|
| 343 |
+
|
| 344 |
+
Nir Rosenfeld, Eric Balkanski, Amir Globerson, and Yaron Singer. Learning to optimize combinatorial functions. In ICML, 2018.
|
| 345 |
+
|
| 346 |
+
Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In CVPR, 2018.
|
| 347 |
+
|
| 348 |
+
Tom Schaul, Sixin Zhang, and Yann LeCun. No more pesky learning rates. In ICML, 2013.
|
| 349 |
+
|
| 350 |
+
Jürgen Schmidhuber. Learning to control fast-weight memories: An alternative to dynamic recurrent networks. Neural Computation, 4(1):131–139, 1992.
|
| 351 |
+
|
| 352 |
+
Jun Shu, Zongben Xu, and Deyu Meng. Small sample learning in big data era. arXiv:1808.04572, 2018.
|
| 353 |
+
|
| 354 |
+
Jun Shu, Qi Xie, Lixuan Yi, Qian Zhao, Sanping Zhou, Zongben Xu, and Deyu Meng. Meta-weightnet: Learning an explicit mapping for sample weighting. In NeurIPS, 2019.
|
| 355 |
+
|
| 356 |
+
Jun Shu, Qian Zhao, Keyu Chen, Zongben Xu, and Deyu Meng. Learning adaptive loss for robust learning with noisy labels. arXiv:2002.06482, 2020a.
|
| 357 |
+
|
| 358 |
+
Jun Shu, Qian Zhao, Zengben Xu, and Deyu Meng. Meta transition adaptation for robust deep learning with noisy labels. arXiv preprint arXiv:2006.05697, 2020b.
|
| 359 |
+
|
| 360 |
+
Jasper Snoek, Hugo Larochelle, and Ryan P Adams. Practical bayesian optimization of machine learning algorithms. In NeurIPS, 2012.
|
| 361 |
+
|
| 362 |
+
Tijmen Tieleman and Geoffrey Hinton. Lecture 6.5-rmsprop: Divide the gradient by a running average of its recent magnitude. Neural networks for machine learning, 2012.
|
| 363 |
+
|
| 364 |
+
Paul Tseng. An incremental gradient (-projection) method with momentum term and adaptive stepsize rule. SIAM Journal on Optimization, 8(2):506–531, 1998.
|
| 365 |
+
|
| 366 |
+
Sharan Vaswani, Aaron Mishkin, Issam Laradji, Mark Schmidt, Gauthier Gidel, and Simon LacosteJulien. Painless stochastic gradient: Interpolation, line-search, and convergence rates. In NeurIPS, 2019.
|
| 367 |
+
|
| 368 |
+
Lewis B Ward. Reminiscence and rote learning. Psychological Monographs, 49(4), 1937.
|
| 369 |
+
|
| 370 |
+
Olga Wichrowska, Niru Maheswaranathan, Matthew W Hoffman, Sergio Gomez Colmenarejo, Misha Denil, Nando de Freitas, and Jascha Sohl-Dickstein. Learned optimizers that scale and generalize. In ICML, 2017.
|
| 371 |
+
|
| 372 |
+
Ashia C Wilson, Rebecca Roelofs, Mitchell Stern, Nati Srebro, and Benjamin Recht. The marginal value of adaptive gradient methods in machine learning. In NeurIPS, 2017.
|
| 373 |
+
|
| 374 |
+
Lei Wu, Chao Ma, and E Weinan. How sgd selects the global minima in over-parameterized learning: A dynamical stability perspective. In NeurIPS, 2018a.
|
| 375 |
+
|
| 376 |
+
Yuhuai Wu, Mengye Ren, Renjie Liao, and Roger Grosse. Understanding short-horizon bias in stochastic meta-optimization. In ICLR, 2018b.
|
| 377 |
+
|
| 378 |
+
Zhen Xu, Andrew M Dai, Jonas Kemp, and Luke Metz. Learning an adaptive learning rate schedule. arXiv:1909.09712, 2019.
|
| 379 |
+
|
| 380 |
+
Qiang Yang, Yu Zhang, Wenyuan Dai, and Sinno Jialin Pan. Transfer learning. Cambridge University Press, 2020.
|
| 381 |
+
|
| 382 |
+
Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In BMVC, 2016.
|
| 383 |
+
|
| 384 |
+
Manzil Zaheer, Sashank Reddi, Devendra Sachan, Satyen Kale, and Sanjiv Kumar. Adaptive methods for nonconvex optimization. In NeurIPS, pp. 9793–9803, 2018.
|
| 385 |
+
|
| 386 |
+
Matthew D Zeiler. Adadelta: an adaptive learning rate method. arXiv:1212.5701, 2012.
|
| 387 |
+
|
| 388 |
+
Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. In ICLR, 2017.
|
| 389 |
+
|
| 390 |
+
Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. Learning transferable architectures for scalable image recognition. In CVPR, 2018.
|
| 391 |
+
|
| 392 |
+
# A CONVERGENCE ANALYSIS OF THE MLR-SNET
|
| 393 |
+
|
| 394 |
+
Lemma 1 Suppose the loss function $\ell$ is Lipschitz smooth with respect to the model parameter w with constant $L$ , and have $\rho$ -bounded gradients with respect to training/validation data. And the $\mathcal { A } ( \theta )$ is differential with a $\delta$ -bounded gradient and twice differential with its Hessian bounded by $\boldsymbol { B }$ . Then the gradient of MLR-SNet parameter $\theta$ with respect to loss is Lipschitz smooth.
|
| 395 |
+
|
| 396 |
+
Proof The gradient of MLR-SNet parameter $\theta$ with respect to loss
|
| 397 |
+
|
| 398 |
+
$$
|
| 399 |
+
\begin{array} { l } { \displaystyle \nabla _ { \theta } \ell _ { j } \big ( \hat { w } _ { t } ( \theta ) \big ) \vert _ { \theta _ { t } } = \frac { \partial \ell _ { j } \big ( \hat { w } _ { t } ( \theta ) \big ) } { \partial \hat { w } _ { t } ( \theta ) } \frac { \partial \hat { w } _ { t } ( \theta ) } { \partial A ( \theta ) } \frac { \partial A ( \theta ) } { \partial \theta } } \\ { \displaystyle = \frac { - \alpha _ { t } } { n } \sum _ { i = 1 } ^ { n } \left( \frac { \partial \ell _ { j } \big ( \hat { w } _ { t } ( \theta ) \big ) } { \partial \hat { w } _ { t } ( \theta ) } \frac { \partial \ell _ { i } \big ( w _ { t } \big ) } { \partial w _ { t } } \right) \frac { \partial A ( \theta ) } { \partial \theta } \vert _ { \theta _ { t } } , } \end{array}
|
| 400 |
+
$$
|
| 401 |
+
|
| 402 |
+
Let $\begin{array} { r } { G _ { i j } = \frac { \partial \ell _ { j } \left( \hat { w } _ { t } ( \theta ) \right) } { \partial \hat { w } _ { t } ( \theta ) } \frac { \partial \ell _ { i } ( w _ { t } ) } { \partial w _ { t } } } \end{array}$ , and then take gradient of $\theta$ in both sides of above equallity, we have
|
| 403 |
+
|
| 404 |
+
$$
|
| 405 |
+
\nabla _ { \theta ^ { 2 } } ^ { 2 } \ell _ { j } ( \hat { w } _ { t } ( \theta ) ) | _ { \theta _ { t } } = \frac { - \alpha _ { t } } { n } \sum _ { i = 1 } ^ { n } \left[ \frac { \partial G _ { i j } } { \partial \theta } \frac { \partial \mathcal { A } ( \theta ) } { \partial \theta } + G _ { i j } \frac { \partial \mathcal { A } ^ { 2 } ( \theta ) } { \partial \theta ^ { 2 } } \right] .
|
| 406 |
+
$$
|
| 407 |
+
|
| 408 |
+
For the first term in the right hand side, we have that
|
| 409 |
+
|
| 410 |
+
$$
|
| 411 |
+
\begin{array} { r l } { \displaystyle \left\| \frac { \partial G _ { i j } } { \partial \theta } \frac { \partial A ( \theta ) } { \partial \theta } \right\| \leq \delta \left\| \frac { \partial \ell _ { j } ( \hat { w } _ { t } ( \theta ) ) } { \partial \hat { w } _ { t } ( \theta ) \partial \theta } \frac { \partial \ell _ { i } ( w _ { t } ) } { \partial w _ { t } } \right\| } & { } \\ { \displaystyle } & { = \delta \left\| \frac { \partial } { \partial \hat { w } _ { t } ( \theta ) } \left( \frac { - \alpha _ { t } } { n } \sum _ { i = 1 } ^ { n } \left( \frac { \partial \ell _ { j } ( \hat { w } _ { t } ( \theta ) ) } { \partial \hat { w } _ { t } ( \theta ) } \frac { \partial \ell _ { i } ( w _ { t } ) } { \partial w _ { t } } \right) \frac { \partial A ( \theta ) } { \partial \theta } | _ { \theta _ { t } } \right) \frac { \partial \ell _ { i } ( w _ { t } ) } { \partial w _ { t } } \right\| } \\ { \displaystyle } & { = \delta \left\| \left( \frac { - \alpha _ { t } } { n } \sum _ { i = 1 } ^ { n } \left( \frac { \partial ^ { 2 } \ell _ { j } ( \hat { w } _ { t } ( \theta ) ) } { \partial \hat { w } _ { t } ^ { 2 } ( \theta ) } \frac { \partial \ell _ { i } ( w _ { t } ) } { \partial w _ { t } } \right) \frac { \partial A ( \theta ) } { \partial \theta } | _ { \theta _ { t } } \right) \frac { \partial \ell _ { i } ( w _ { t } ) } { \partial w _ { t } } \right\| } \\ { \displaystyle } & { \leq \alpha _ { t } L \rho ^ { 2 } \delta ^ { 2 } . } \end{array}
|
| 412 |
+
$$
|
| 413 |
+
|
| 414 |
+
For the second term in the right hand side, we have that
|
| 415 |
+
|
| 416 |
+
$$
|
| 417 |
+
\left. G _ { i j } \frac { \partial \mathcal { A } ^ { 2 } ( \theta ) } { \partial \theta ^ { 2 } } \right. \leq B \rho ^ { 2 }
|
| 418 |
+
$$
|
| 419 |
+
|
| 420 |
+
Combining the above two inequalities Eq.(15)(16), we have
|
| 421 |
+
|
| 422 |
+
$$
|
| 423 |
+
\| \nabla _ { \theta } \ell _ { j } ( \hat { w } _ { t } ( \theta ) ) | _ { \theta _ { t } } \| \leq \alpha \rho ^ { 2 } ( \alpha _ { t } L \delta ^ { 2 } + \mathcal { B } ) .
|
| 424 |
+
$$
|
| 425 |
+
|
| 426 |
+
Define $L _ { A } = \alpha \rho ^ { 2 } ( \alpha _ { t } L \delta ^ { 2 } + B )$ , and based on the Lagrange mean value theorem, we have:
|
| 427 |
+
|
| 428 |
+
$$
|
| 429 |
+
\| \nabla \mathcal { L } _ { V a l } ( \hat { \mathbf { w } } _ { t } ( \theta _ { 1 } ) ) - \mathcal { L } _ { V a l } ( \hat { \mathbf { w } } _ { t } ( \theta _ { 2 } ) ) \| \le L _ { A } \left\| \theta _ { 1 } - \theta _ { 2 } \right\| .
|
| 430 |
+
$$
|
| 431 |
+
|
| 432 |
+
Thus the conclusion holds.
|
| 433 |
+
|
| 434 |
+
Theorem 2 Suppose the loss function $\ell$ is Lipschitz smooth with respect to the model parameter $w$ with constant $L$ , and have $\rho$ -bounded gradients with respect to training/validation data. And the $\mathcal A ( \theta )$ is differential with a $\delta$ -bounded gradient and twice differential with its Hessian bounded by $\boldsymbol { B }$ . Let the learning rate $\alpha _ { t } = \mathcal { A } ( \theta _ { t } )$ predicted by MLR-SNet obey the exponential LR, i.e., $\alpha _ { t } = \alpha _ { 0 } \beta ^ { t } , \beta = ( \Gamma / T ) ^ { 1 / T } , \Gamma \geq 1 .$ . Let $\eta _ { t } = \eta$ for all $t \in [ T ]$ . If we use Adam algorithm to update MLR-SNet, we choose $\eta$ satisfied $\eta \leq \frac { \epsilon } { 2 L }$ and $\begin{array} { r } { 1 - \beta _ { 2 } \le \frac { \epsilon ^ { 2 } } { 1 6 \rho ^ { 2 } } } \end{array}$ , where $\beta _ { 2 }$ , are the hyperparameter of the Adam algorithm. Then for $\theta _ { t }$ generated using Adam, we have the following bound:
|
| 435 |
+
|
| 436 |
+
$$
|
| 437 |
+
\operatorname* { m i n } _ { 0 \leq t \leq T } \mathbb { E } [ \| \nabla \mathcal { L } _ { V a l } ( \hat { \mathbf { w } } _ { t } ( \theta _ { t } ) ) \| _ { 2 } ^ { 2 } ] \leq \mathcal { O } ( \frac { C \ln ( T ) } { T } + \sigma ^ { 2 } ) ,
|
| 438 |
+
$$
|
| 439 |
+
|
| 440 |
+
where $C$ is some constant independent of the convergence process, $\sigma$ is the variance of drawing uniformly mini-batch sample at random.
|
| 441 |
+
|
| 442 |
+
Proof Suppose we have a small validation set with $M$ samples $\{ x _ { 1 } , x _ { 2 } , \cdot \cdot \cdot , x _ { M } \}$ , each associating with a validation loss function $\ell _ { i } ( w ( \theta ) )$ , where $w$ is the parameter of the model, and $\theta$ is the parameter of the MLR-SNet. The overall validation loss would $b e$ ,
|
| 443 |
+
|
| 444 |
+
$$
|
| 445 |
+
\mathcal { L } _ { V a l } ( w ) = \frac { 1 } { M } \sum _ { i = 1 } ^ { M } \ell _ { i } ( w ( \theta ) ) .
|
| 446 |
+
$$
|
| 447 |
+
|
| 448 |
+
According to the updating algorithm $^ { l }$ , we have:
|
| 449 |
+
|
| 450 |
+
$$
|
| 451 |
+
\begin{array} { r l } & { \quad \mathcal { L } _ { V a l } ( \hat { w } _ { t + 1 } ( \theta _ { t + 1 } ) ) - \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t } ) ) } \\ & { = \underbrace { \{ \mathcal { L } _ { V a l } ( \hat { w } _ { t + 1 } ( \theta _ { t + 1 } ) ) - \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) \} } _ { ( a ) } + \underbrace { \{ \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) - \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t } ) ) \} } _ { ( b ) } } \end{array}
|
| 452 |
+
$$
|
| 453 |
+
|
| 454 |
+
For term $( a )$
|
| 455 |
+
|
| 456 |
+
$$
|
| 457 |
+
\begin{array} { r l r } { { \mathcal { L } _ { V a l } ( \hat { w } _ { t + 1 } ( \theta _ { t + 1 } ) ) - \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) } } \\ & { \leq \langle \nabla _ { w } \mathcal { L } _ { V a l } ( \hat { w } _ { t + 1 } ( \theta _ { t + 1 } ) ) , \hat { w } _ { t + 1 } ( \theta _ { t + 1 } ) - \hat { w } _ { t } ( \theta _ { t + 1 } ) \rangle + \displaystyle \frac { L } { 2 } \| \hat { w } _ { t + 1 } ( \theta _ { t + 1 } ) - \hat { w } _ { t } ( \theta _ { t + 1 } ) \| _ { 2 } ^ { 2 } } \end{array}
|
| 458 |
+
$$
|
| 459 |
+
|
| 460 |
+
According to Eq $( 6 )$ , we have
|
| 461 |
+
|
| 462 |
+
$$
|
| 463 |
+
\hat { w } _ { t + 1 } ( \theta _ { t + 1 } ) - \hat { w } _ { t } ( \theta _ { t + 1 } ) = - \alpha _ { t } \nabla _ { w } \mathcal { L } _ { T r } ^ { B } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) )
|
| 464 |
+
$$
|
| 465 |
+
|
| 466 |
+
where $\begin{array} { r } { \alpha _ { t } = \mathcal { A } ( \mathcal { L } _ { T r } ^ { B } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ; \theta _ { t } ) , \mathcal { L } _ { T r } ^ { B } ( w _ { t } ) = \frac { 1 } { | B _ { t } | } \sum _ { i \in B _ { t } } \nabla \mathcal { L } _ { i } ^ { T r } ( w _ { t } ) . } \end{array}$ . This can be written as
|
| 467 |
+
|
| 468 |
+
$$
|
| 469 |
+
\begin{array} { r } { \hat { w } _ { t + 1 } ( \theta _ { t + 1 } ) - \hat { w } _ { t } ( \theta _ { t + 1 } ) = - \alpha _ { t } \left[ \nabla _ { w } \mathcal { L } _ { T r } \big ( \hat { w } _ { t } ( \theta _ { t + 1 } ) \big ) + \xi ^ { ( t ) } \right] , } \end{array}
|
| 470 |
+
$$
|
| 471 |
+
|
| 472 |
+
where $\xi ^ { ( t ) } = \nabla _ { w } \mathcal { L } _ { T r } ^ { B } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) - \nabla _ { w } \mathcal { L } _ { T r } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) )$ . Since $B _ { t }$ is the mini-batch samples drawn uniformly from the entire data set, we have $\mathbb { E } [ \xi ^ { ( t ) } ] = 0$ . Furthermore, $\xi ^ { ( t ) }$ are i.i.d random variable with finite variance, since $B _ { t }$ are drawn i.i.d with a finite number of samples. Then Eq (22) can be written as
|
| 473 |
+
|
| 474 |
+
$$
|
| 475 |
+
\begin{array} { r l } & { \iota \leq \Big \langle \nabla _ { w } \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) , - \alpha _ { t } \left[ \nabla _ { w } \mathcal { L } _ { T r } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) + \xi ^ { ( t ) } \right] \Big \rangle + \frac { L } { 2 } \left\| - \alpha _ { t } \left[ \nabla _ { w } \mathcal { L } _ { T r } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) + \xi ^ { ( t ) } \right] \right\| } \\ & { = \Big \langle \nabla _ { w } \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) , - \alpha _ { t } \left[ \nabla _ { w } \mathcal { L } _ { T r } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) + \xi ^ { ( t ) } \right] \Big \rangle } \\ & { + \frac { L \alpha _ { t } ^ { 2 } } { 2 } \left[ \| \nabla _ { w } \mathcal { L } _ { T r } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) \| ^ { 2 } + \| \xi ^ { ( t ) } \| _ { 2 } ^ { 2 } - \langle \nabla _ { w } \mathcal { L } _ { T r } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) , \xi ^ { ( t ) } \rangle \right] } \\ & { \leq \Big \langle \nabla _ { w } \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) , - \alpha _ { t } \left[ \nabla _ { w } \mathcal { L } _ { T r } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) + \xi ^ { ( t ) } \right] \Big \rangle + \frac { L } { 2 } \alpha _ { t } ^ { 2 } \left[ \rho ^ { 2 } + \| \xi ^ { ( t ) } \| _ { 2 } ^ { 2 } - \langle \nabla _ { w } \mathcal { L } _ { T r } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) \rangle \right] } \end{array}
|
| 476 |
+
$$
|
| 477 |
+
|
| 478 |
+
For term $( b )$ , according to Lemma $^ { l }$ , i.e., the validation loss is Lipschitz smooth with respect to the MLR-SNet parameter $\theta$ , for briefly denote $L$ .
|
| 479 |
+
|
| 480 |
+
$$
|
| 481 |
+
\begin{array} { r l } & { \quad \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) - \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t } ) ) } \\ & { \quad \le \langle \nabla _ { \theta } \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t } ) ) , \theta _ { t + 1 } - \theta _ { t } \rangle + \displaystyle \frac { L } { 2 } \left\| \theta _ { t + 1 } - \theta _ { t } \right\| _ { 2 } ^ { 2 } } \end{array}
|
| 482 |
+
$$
|
| 483 |
+
|
| 484 |
+
If we adopt Adam to update the parameter of MLR-SNet, $\theta _ { t + 1 } - \theta _ { t }$ in Eq.(25) is updated by
|
| 485 |
+
|
| 486 |
+
$$
|
| 487 |
+
\theta _ { t + 1 } = \theta _ { t } - \eta _ { t } \frac { g _ { t , i } } { \sqrt { v _ { t , i } } + \epsilon } ,
|
| 488 |
+
$$
|
| 489 |
+
|
| 490 |
+
where $g _ { t , i } = \nabla _ { \boldsymbol { \theta } } \mathcal { L } _ { V a l } ^ { i } ( \hat { w } _ { t } ( \boldsymbol { \theta } _ { t } ) )$ . Now, we have
|
| 491 |
+
|
| 492 |
+
$$
|
| 493 |
+
\begin{array} { l } { { \displaystyle { \mathcal { L } } _ { V a l } \big ( \hat { w } _ { t } ( \theta _ { t + 1 } ) \big ) - { \mathcal { L } } _ { V a l } \big ( \hat { w } _ { t } ( \theta _ { t } ) \big ) } \ ~ } \\ { { \displaystyle \leq - \eta _ { t } \sum _ { i = 1 } ^ { d } \bigg \langle \nabla _ { \theta } { \mathcal L } _ { V a l } ^ { i } \big ( \hat { w } _ { t } ( \theta _ { t } ) \big ) , \frac { g _ { t , i } } { \sqrt { v _ { t , i } } + \epsilon } \bigg \rangle + \frac { L \eta _ { t } ^ { 2 } } { 2 } \sum _ { i = 1 } ^ { d } \frac { g _ { t , i } ^ { 2 } } { ( \sqrt { v _ { t , i } } + \epsilon ) ^ { 2 } } } } \end{array}
|
| 494 |
+
$$
|
| 495 |
+
|
| 496 |
+
Based on the proof process in (Zaheer et al., 2018) (Eq 4 in p. 13),
|
| 497 |
+
|
| 498 |
+
$$
|
| 499 |
+
\begin{array} { r l } & { \quad \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) - \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t } ) ) } \\ & { \leq - \frac { \eta _ { t } } { 2 ( \sqrt { \beta _ { 2 } } \rho + \epsilon ) } \| \nabla _ { \theta } \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t } ) ) \| _ { 2 } ^ { 2 } + \left( \frac { \eta _ { t } \rho \sqrt { 1 - \beta _ { 2 } } } { \epsilon ^ { 2 } } + \frac { L \eta ^ { 2 } } { 2 \epsilon ^ { 2 } } \right) \frac { \sigma ^ { 2 } } { M } , } \end{array}
|
| 500 |
+
$$
|
| 501 |
+
|
| 502 |
+
Now Eq.(21) has become the following:
|
| 503 |
+
|
| 504 |
+
$$
|
| 505 |
+
\begin{array} { r l } & { \mathcal { L } _ { V a l } ( \hat { w } _ { t + 1 } ( \theta _ { t + 1 } ) ) - \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t } ) ) \leq \left. \nabla _ { w } \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) , - \alpha _ { t } \left[ \nabla _ { w } \mathcal { L } _ { T r } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) + \xi ^ { ( t ) } \right] \right. } \\ & { \mathrm { ~ } } \\ & { \mathrm { ~ } \frac { 1 } { 2 } \alpha _ { t } ^ { 2 } \left[ \rho ^ { 2 } + \| \xi ^ { ( t ) } \| _ { 2 } ^ { 2 } - \langle \nabla _ { w } \mathcal { L } _ { T r } ( \hat { w } _ { t } ( \theta _ { t + 1 } ) ) , \xi ^ { ( t ) } \rangle \right] - \frac { \eta _ { t } } { 2 ( \sqrt { \beta _ { 2 } } \rho + \epsilon ) } \| \nabla _ { \theta } \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t } ) ) \| _ { 2 } ^ { 2 } + \left( \frac { \eta _ { t } \rho \sqrt { 1 - \epsilon ^ { 2 } } } { \epsilon ^ { 2 } } - \frac { \eta _ { t } \rho ^ { 2 } } { 2 } \right) } \end{array}
|
| 506 |
+
$$
|
| 507 |
+
|
| 508 |
+
Taking expectations with respect to $\xi$ on both side of Eq.(29) and rearranging the inequality, we can obtain:
|
| 509 |
+
|
| 510 |
+
$$
|
| 511 |
+
\begin{array} { r l } & { \quad \mathbb { E } _ { \xi } \left[ \frac { \eta _ { t } } { 2 ( \sqrt { \beta _ { 2 } } \rho + \epsilon ) } \| \nabla _ { \theta } \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t } ) ) \| _ { 2 } ^ { 2 } \right] } \\ & { \le \alpha _ { t } \rho ^ { 2 } + \frac { L } { 2 } \alpha _ { t } ^ { 2 } ( \rho ^ { 2 } + \sigma ^ { 2 } ) - \mathcal { L } _ { V a l } ( \hat { w } _ { t + 1 } ( \theta _ { t + 1 } ) ) + \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t } ) ) + \left( \frac { \eta _ { t } \rho \sqrt { 1 - \beta _ { 2 } } } { \epsilon ^ { 2 } } + \frac { L \eta ^ { 2 } } { 2 \epsilon ^ { 2 } } \right) \frac { \sigma ^ { 2 } } { M } } \end{array}
|
| 512 |
+
$$
|
| 513 |
+
|
| 514 |
+
Using telscoping sum, we obtain
|
| 515 |
+
|
| 516 |
+
$$
|
| 517 |
+
\begin{array} { l } { \displaystyle \sum _ { t = 1 } ^ { T } \frac { \eta _ { t } } { 2 ( \sqrt { \beta _ { 2 } } \rho + \epsilon ) } \mathbb { E } \| \nabla _ { \theta } \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t } ) ) \| _ { 2 } ^ { 2 } } \\ { \displaystyle \le \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { 1 } ) ) - \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { T + 1 } ) ) + \rho ^ { 2 } \sum _ { t = 1 } ^ { T } \alpha _ { t } + \frac { L } { 2 } ( \rho ^ { 2 } + \sigma ^ { 2 } ) \sum _ { t = 1 } ^ { T } \alpha _ { t } ^ { 2 } + \Big ( \frac { \eta _ { t } \rho \sqrt { 1 - \beta _ { 2 } } } { \epsilon ^ { 2 } } + \frac { L \eta ^ { 2 } } { 2 \epsilon ^ { 2 } } \Big ) \frac { \sigma ^ { 2 } } { M } } \\ { \displaystyle \le \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { 1 } ) ) + \rho ^ { 2 } \sum _ { t = 1 } ^ { T } \alpha _ { t } + \frac { L } { 2 } ( \rho ^ { 2 } + \sigma ^ { 2 } ) \sum _ { t = 1 } ^ { T } \alpha _ { t } ^ { 2 } + \Big ( \frac { \eta _ { t } \rho \sqrt { 1 - \beta _ { 2 } } } { \epsilon ^ { 2 } } + \frac { L \eta ^ { 2 } } { 2 \epsilon ^ { 2 } } \Big ) \frac { \sigma ^ { 2 } T } { M } } \end{array}
|
| 518 |
+
$$
|
| 519 |
+
|
| 520 |
+
Therefore,
|
| 521 |
+
|
| 522 |
+
$$
|
| 523 |
+
\begin{array} { r l } & { \displaystyle \operatorname* { m i n } _ { t } \mathbb { E } _ { \xi } \left[ \| \nabla _ { \theta } \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { t } ) ) \| _ { 2 } ^ { 2 } \right] \leq \frac { \sum _ { t = 1 } ^ { T } \frac { \eta _ { t } } { 2 ( \sqrt { \beta _ { t } } \rho + \epsilon ) } \mathbb { E } _ { \xi } \left\| \nabla _ { \theta } \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta ^ { ( t ) } ) ) \right\| _ { 2 } ^ { 2 } } { \sum _ { t = 1 } ^ { T } \frac { \eta _ { t } } { 2 ( \sqrt { \beta _ { t } } \rho + \epsilon ) } } } \\ & \displaystyle \leq \frac { \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { 1 } ) ) + \rho ^ { 2 } \sum _ { t = 1 } ^ { T } \alpha _ { t } + \frac { L } { 2 } ( \rho ^ { 2 } + \sigma ^ { 2 } ) \sum _ { t = 1 } ^ { T } \alpha _ { t } ^ { 2 } + \left( \frac { \eta _ { t } \rho \sqrt { \frac { 1 - \beta _ { t } } { \epsilon ^ { 2 } } } + \frac { L \eta ^ { 2 } } { 2 \epsilon ^ { 2 } } \frac { \sigma ^ { 2 } T } { M } 2 ( \sqrt { \beta _ { 2 } } \rho + \epsilon ) } { \sum _ { t = 1 } ^ { T } \eta _ { t } } } \\ & \right){ \displaystyle \leq \frac { 2 ( \sqrt { \beta _ { 2 } } \rho + \epsilon ) } { T \eta } \left\{ \mathcal { L } _ { V a l } ( \hat { w } _ { t } ( \theta _ { 1 } ) ) + \rho ^ { 2 } \sum _ { t = 1 } ^ { T } \alpha _ { t } + \frac { L } { 2 } ( \rho ^ { 2 } + \sigma ^ { 2 } ) \sum _ { t = 1 } ^ { T } \alpha _ { t } ^ { 2 } + \left( \frac { \eta _ { t } \rho \sqrt { 1 - \beta _ { 2 } } } { \epsilon ^ { 2 } } + \frac { L \eta ^ { 2 } } { 2 \epsilon ^ { 2 } } \right) \frac { \sigma ^ { 2 } T } { M } \right\} } \\ & { \displaystyle \leq \mathcal { O } ( \frac { \ln ( T ) } { T } + \sigma ^ { 2 } ) . } \end{array}
|
| 524 |
+
$$
|
| 525 |
+
|
| 526 |
+
class LSTMCell(nn.Module):
|
| 527 |
+
def _init__(self, num_inputs, hidden_size):
|
| 528 |
+
super(LSTMCell, self).__init__()
|
| 529 |
+
self.hidden_size $-$ hidden_size
|
| 530 |
+
self.fc_i2h $-$ nn.Sequential(
|
| 531 |
+
nn.Linear(num_inputs, hidden_size),
|
| 532 |
+
nn.ReLU(),
|
| 533 |
+
nn.Linear(hidden_size, 4 $\star$ hidden_size)
|
| 534 |
+
)
|
| 535 |
+
self.fc_h2h $=$ nn.Sequential(
|
| 536 |
+
nn.Linear(hidden_size, hidden_size),
|
| 537 |
+
nn.ReLU(),
|
| 538 |
+
nn.Linear(hidden_size, 4 $\star$ hidden_size)
|
| 539 |
+
)
|
| 540 |
+
def forward(self, inputs, state):
|
| 541 |
+
hx, cx $=$ state
|
| 542 |
+
$\dot { \iota } 2 \mathrm { h \Omega } =$ self.fc_i2h(inputs)
|
| 543 |
+
h2h $=$ self.fc_h2h(hx)
|
| 544 |
+
$\mathrm { ~ ~ { ~ x ~ } ~ } = \mathrm { ~ ~ { ~ i ~ } ~ } 2 \mathrm { h }$ $^ +$ h2h
|
| 545 |
+
gates $= \times$ .split(self.hidden_size, 1)
|
| 546 |
+
in_gate $=$ torch.sigmoid(gates[0])
|
| 547 |
+
forget_gate $-$ torch.sigmoid(gates[1])
|
| 548 |
+
out_gate $=$ torch.sigmoid(gates[2])
|
| 549 |
+
in_transform $-$ torch.tanh(gates[3])
|
| 550 |
+
cx $=$ forget_gate $^ *$ cx $^ +$ in_gate $\star$ in_transform
|
| 551 |
+
hx $-$ out_gate $\star$ torch.tanh(cx)
|
| 552 |
+
return hx, cx
|
| 553 |
+
class MLRNet(nn.Module):
|
| 554 |
+
def __init__(self, num_layers, hidden_size):
|
| 555 |
+
super(MLRNet, self).__init__()
|
| 556 |
+
self.hidden_size $=$ hidden_size
|
| 557 |
+
self.layer1 $-$ LSTMCell(1, hidden_size)
|
| 558 |
+
self.layer2 $-$ nn.Linear(hidden_size, 1)
|
| 559 |
+
def forward(self, x, gamma):
|
| 560 |
+
self.hx, self.cx $-$ self.layer1(x, (self.hx, self.cx))
|
| 561 |
+
$\times \quad =$ self.hx
|
| 562 |
+
$\begin{array} { r l } { \mathbf { x } } & { { } = } \end{array}$ self.layer2(x)
|
| 563 |
+
out $=$ torch.sigmoid(x)
|
| 564 |
+
return gamma $\star$ out
|
| 565 |
+
|
| 566 |
+
# B EXPERIMENTAL DETAILS AND ADDITIONAL RESULTS IN SECTION 4.1
|
| 567 |
+
|
| 568 |
+
In this section, we attempt to evaluate the capability of MLR-SNet to learn LR schedules compared with baseline methods. Here, we provide implementation details of all experiments.
|
| 569 |
+
|
| 570 |
+
Datasets. We choose two datasets in image classification (CIFAR-10 and CIFAR-100), and one dataset in text classification (Penn Treebank) to present the efficiency of our method. CIFAR-10 and CIFAR-100 Krizhevsky (2009), consisting of $3 2 \times 3 2$ color images arranged in 10 and 100 classes, respectively. Both datasets contain 50,000 training and 10,000 test images. Penn Treebank Marcus & Marcinkiewicz is composed of $9 2 9 \mathrm { k }$ training words, 73k validation words, and 82k test words, with a 10k vocabulary in total. Our algorithm and RTHO Franceschi et al. (2017) randomly select 1,000 clean images in the training set of CIFAR-10/100 as validation data, and directly use the validation set in Penn Treebank as validation data.
|
| 571 |
+
|
| 572 |
+
CIFAR-10 & CIFAR-100. We employ ResNet-18 on CIFAR-10 and WideResNet-28-10 Zagoruyko & Komodakis (2016) on CIFAR-100. All compared methods and MLR-SNet are trained for 200 epochs with batch size 128. For baselines involving SGD as base optimizer, we set the initial LR to 0.1, weight decay parameter to $5 e ^ { - 4 }$ and momentum to 0.9 if used. While for Adam, we just follow the default parameter setting. The hyper-parameters of hand-designed LR schedules are listed below: Exponential decay, multiplying LR with 0.95 every epoch; MultiStep decay, decaying LR by 10 every 60 epochs; SGDR, setting $\mathrm { T } \_ 0$ to 10, T_Mult to 2 and minimum LR to $1 e ^ { - 5 }$ . L4, HD and RTHO update LR every data batch, and we use the recommended setting in the original paper of L4 $( \alpha = 0 . 1 5 )$ and search different hyper-lrs from $\{ 1 e ^ { - 3 } , 1 e ^ { - 4 } , 1 e ^ { - 5 } , 1 e ^ { - 6 } , 1 e ^ { - 7 } \}$ for $\mathbf { H D }$ and RTHO, reporting the best performing hyper-lr.
|
| 573 |
+
|
| 574 |
+
Table 2: Test accuracy $( \% )$ of CIFAR dataset with SGD baselines.
|
| 575 |
+
|
| 576 |
+
<table><tr><td rowspan=1 colspan=1>Optimizer</td><td rowspan=1 colspan=2>CIFAR-10 with ResNet18 CIFAR-100 with WRN-28-10</td></tr><tr><td rowspan=1 colspan=1>SGD+Fixed</td><td rowspan=1 colspan=1>92.26 ± 0.12</td><td rowspan=1 colspan=1>70.67±0.34</td></tr><tr><td rowspan=1 colspan=1>SGD+MultiStep</td><td rowspan=1 colspan=1>93.82 ± 0.09</td><td rowspan=1 colspan=1>77.04 ±:0.17</td></tr><tr><td rowspan=1 colspan=1>SGD+Exponential</td><td rowspan=1 colspan=1>90.93士0.11</td><td rowspan=1 colspan=1>72.52 ±0.34</td></tr><tr><td rowspan=1 colspan=1>SGD+SGDR</td><td rowspan=1 colspan=1>93.92 ± 0.11</td><td rowspan=1 colspan=1>72.52 ± 0.34</td></tr><tr><td rowspan=1 colspan=1>Adam</td><td rowspan=1 colspan=1>90.86 ± 0.15</td><td rowspan=1 colspan=1>68.94 ± 0.24</td></tr><tr><td rowspan=1 colspan=1>SGD+L4</td><td rowspan=1 colspan=1>89.15 ± 0.14</td><td rowspan=1 colspan=1>63.61 ± 0.65</td></tr><tr><td rowspan=1 colspan=1>SGD+HD</td><td rowspan=1 colspan=1>92.34 ± 0.09</td><td rowspan=1 colspan=1>72.22 ± 0.30</td></tr><tr><td rowspan=1 colspan=1>SGD+RTHO</td><td rowspan=1 colspan=1>92.60 ± 0.18</td><td rowspan=1 colspan=1>72.32 ± 0.47</td></tr><tr><td rowspan=1 colspan=1>MLR-SNet (Meta-train)</td><td rowspan=1 colspan=1>94.70 ± 0.16</td><td rowspan=1 colspan=1>79.41±0.14</td></tr></table>
|
| 577 |
+
|
| 578 |
+
Table 3: Test accuracy $( \% )$ of CIFAR dataset with SGDM baselines.
|
| 579 |
+
|
| 580 |
+
<table><tr><td rowspan=1 colspan=1>Optimizer</td><td rowspan=1 colspan=1>CIFAR-10 with ResNet18</td><td rowspan=1 colspan=1>CIFAR-100 with WRN-28-10</td></tr><tr><td rowspan=1 colspan=1>SGDM+Fixed</td><td rowspan=1 colspan=1>87.69 ± 0.14</td><td rowspan=1 colspan=1>70.88 ± 0.12</td></tr><tr><td rowspan=1 colspan=1>SGDM+MultiStep</td><td rowspan=1 colspan=1>95.08 ± 0.13</td><td rowspan=1 colspan=1>80.74 ± 0.19</td></tr><tr><td rowspan=1 colspan=1>SGDM+Exponential</td><td rowspan=1 colspan=1>94.64 ± 0.05</td><td rowspan=1 colspan=1>78.87±0.04</td></tr><tr><td rowspan=1 colspan=1>SGDM+SGDR</td><td rowspan=1 colspan=1>95.06 ± 0.17</td><td rowspan=1 colspan=1>80.93 ± 0.05</td></tr><tr><td rowspan=1 colspan=1>Adam</td><td rowspan=1 colspan=1>90.86 ± 0.15</td><td rowspan=1 colspan=1>68.94 ± 0.24</td></tr><tr><td rowspan=1 colspan=1>SGDM+L4</td><td rowspan=1 colspan=1>91.03 ± 0.14</td><td rowspan=1 colspan=1>66.51 ± 2.83</td></tr><tr><td rowspan=1 colspan=1>SGDM+HD</td><td rowspan=1 colspan=1>93.99± 0.12</td><td rowspan=1 colspan=1>76.80 ± 0.19</td></tr><tr><td rowspan=1 colspan=1>SGDM+RTHO</td><td rowspan=1 colspan=1>93.17 ± 0.49</td><td rowspan=1 colspan=1>76.14 ± 0.29</td></tr><tr><td rowspan=1 colspan=1>MLR-SNet (Meta-train)</td><td rowspan=1 colspan=1>94.70 ± 0.16</td><td rowspan=1 colspan=1>79.41±0.14</td></tr></table>
|
| 581 |
+
|
| 582 |
+
Penn Treebank. We use a 2-layer and 3-layer LSTM network which follows a word-embedding layer and the output is fed into a linear layer to compute the probability of each word in the vocabulary. Hidden size of LSTM cell is set to 512 and so is the word-embedding size. We tie weights of the word-embedding layer and the final linear layer. Dropout is applied to the output of word-embedding layer together with both the first and second LSTM layers with a rate of 0.5. As for training, the LSTM net is trained for 150 epochs with a batch size of 32 and a sequence length of 35. We set the base optimizer SGD to have an initial LR of 20 without momentum, for Adam, the initial LR is set to 0.01 and weight for moving average of gradient is set to 0. We apply a weight decay of $5 e ^ { - 6 }$ to both base optimizers. All experiments involve a 0.25 clipping to the network gradient norm. For both SGD and Adam, we decrease LR by a factor of 4 when performance on validation set shows no progress. For L4, we try different $\alpha$ in $\{ 0 . 1 , 0 . 0 5 , 0 . 0 1 , 0 . 0 0 5 \}$ and reporting the best test perplexity among them. For both HD and RTHO, we search the hyper-lr lying in $\{ 1 , 0 . 5 , 0 . 1 , 0 . 0 5 \}$ , and report the best results.
|
| 583 |
+
|
| 584 |
+
Table 4: Test perplexity on the Penn Treebank dataset.
|
| 585 |
+
|
| 586 |
+
<table><tr><td rowspan=1 colspan=1>Optimizer</td><td rowspan=1 colspan=1>2-layer LSTM</td><td rowspan=1 colspan=1>3-layer LSTM</td></tr><tr><td rowspan=1 colspan=1>SGD+Val Strategy</td><td rowspan=1 colspan=1>74.33 ± 0.23</td><td rowspan=1 colspan=1>76.05 ± 0.39</td></tr><tr><td rowspan=1 colspan=1>Adam+Val Strategy</td><td rowspan=1 colspan=1>71.17 ± 0.23</td><td rowspan=1 colspan=1>74.80 ± 0.73</td></tr><tr><td rowspan=1 colspan=1>SGD+L4</td><td rowspan=1 colspan=1>82.58 ± 1.32</td><td rowspan=1 colspan=1>92.27 ± 0.92</td></tr><tr><td rowspan=1 colspan=1>SGD+HD</td><td rowspan=1 colspan=1>76.90 ± 0.33</td><td rowspan=1 colspan=1>78.63 ± 0.08</td></tr><tr><td rowspan=1 colspan=1>SGD+RTHO</td><td rowspan=1 colspan=1>76.69 ± 0.11</td><td rowspan=1 colspan=1>78.52 ± 0.16</td></tr><tr><td rowspan=1 colspan=1>MLR-SNet (Meta-train)</td><td rowspan=1 colspan=1>72.09 ± 0.72</td><td rowspan=1 colspan=1>72.71±0.17</td></tr></table>
|
| 587 |
+
|
| 588 |
+

|
| 589 |
+
Figure 11: Train loss (perplexity), test accuracy (perplexity) and learned LR schedules of our methods (train) and compared baselines on different tasks.
|
| 590 |
+
|
| 591 |
+
MLR-SNet architecture and parameter setting. The architecture of MLR-SNet is illustrated in Section 3.2. In our experiment, the size of hidden nodes is set as 40. The initialization of MLR-SNet follows the default setting in Pytorch. The Pytorch implementation of MLR-SNet is listed above.
|
| 592 |
+
|
| 593 |
+
We employ Adam optimizer to train MLR-SNet, and just set the parameters as originally recommended with a LR of $1 e ^ { - 3 }$ , and a weight decay of $1 e ^ { - 4 }$ , which avoids extra hyper-parameter tuning. For image classification tasks, the input of MLR-SNet is the training loss of a mini batch samples. Every data batch’s LR is predicted by MLR-SNet and we update it twice per epoch according to the loss of the validation data. While for text classification tasks, we take $\frac { \dot { \mathcal { L } } _ { T r } } { \log ( v o c a b u l a r y ~ s i z e ) }$ as input of MLR-SNet to deal with the influence of large scale classes of text. MLR-SNet is updated every 100 batches due to the large number of batches per epoch compared to that in image datasets.
|
| 594 |
+
|
| 595 |
+
Results. Due to the space limitation, we only present the test accuracy in the main paper. Here, we present the training loss and test accuracy of our method and all compared methods on image and text tasks, as shown in Fig.11. For image tasks, except for Adam and SGD with fixed LR, other methods can decrease the loss to 0 almostly. Though local minima can be reached by these methods, the generalization ability of the these mimimas has a huge difference, which can be summarized from test accuracy curves. As shown in Fig. 11(a),11(b),11(g),11(h), when using SGD to train DNNs, the compared methods SGD with Exponential LR, L4, HD, RTHO fail to find such good solutions to generalize well. Especially, L4 greedily searches LR to decrease loss to 0, making it fairly hard to adapt the complex DNNs training dynamic and obtain a good mimima, while our method can adjust LR to comply with the significant variations of training dynamic, leading to a better generalization solution. As shown in Fig. 11(d),11(e),11(j),11(k), when baseline methods are trained with SGDM, these methods make a great progress in escaping from the bad minimas. In spite of this, our method still shows superiority in finding a solution with better generalization compared with these competitive training strategies.
|
| 596 |
+
|
| 597 |
+
In the third column in Fig. 11, we plot learned LR schedules of compared methods and our method. As can be seen, our method can learn LR schedules approximating the hand-designed LR schedules while with more locally varying. HD and RTHO often have the same trajectory while producing lower or faster downward trend than ours. This tends to explain our final performances on test set is better than HD and RTHO, since our method can adaptively adjust LR utilizing the past training histories explicitly. L4 greedily searches a LR to decrease the loss. This often leads to a large value causing fluctuations or even divergence (Fig. 11(l)), or a small value causing slow progress (Fig. 11(r)), or both of them (Fig. 11(c) 11(f) 11(i) 11(o)). Such LR schedules often result in bad mimimas. Moreover, all compared methods regard LR as hyper-parameter to learn without a transferable formulation, and the learned LR schedules can not generalize to other learning tasks directly. Generally, they just try to find a proper LR schedule from scratch for new tasks. However, our meta-learned MLR-SNet is plug-and-play and transferrable, which can directly transfer how to schedule LR for SGD to heterogeneous tasks without additional learning.
|
| 598 |
+
|
| 599 |
+
# Ablation study.
|
| 600 |
+
|
| 601 |
+
(1) The architecture of MLR-SNet. Fig.12(a) shows the test accuracy on CIFAR-10 with ResNet-18 of different architectures of MLR-SNet. As can be seen, our algorithm is not sensitive to the choose of the MLR-SNet’s architectures. This implies that our algorithm is robust and stable for helping improve DNN training.
|
| 602 |
+
|
| 603 |
+
(2) The gobal LR of the meta optimizer. To further validate that whether our MLR-SNet behaves robust to the meta optimizer. We adapot Adam optimizer to search the proper LR schedules. Fig. 12(b) shows that our MLR-SNet achieves the similar performance even for different global LRs. This implies our MLR-SNet needs not carefully tune the LR of the meta optimizer, which makes it easy to reproduce and apply to various problems.
|
| 604 |
+
|
| 605 |
+
(3) The different $\gamma$ values of the MLR-SNet. One important hyperparameter of the MLR-SNet is $\gamma$ , here we verify our method is not sensitive to the choose of $\gamma$ value. We test $\gamma$ values from 0.1 to 10 for the DNNs training. As shown in Fig.12(c), even with different learning scales, our method can still help DNNs achieve almost similar performance. This implies the MLR-SNet is robust to the choose of the $\gamma$ , which makes it easy to be applied into parctice.
|
| 606 |
+
|
| 607 |
+
# C EXPERIMENTAL DETAILS AND ADDITIONAL RESULTS IN SECTION 4.2
|
| 608 |
+
|
| 609 |
+
We investigate the transferability of the learned LR schedule when applied to various tasks in Section 4.2 of the main paper. We use the MLR-SNet meta-learned on CIFAR-10 with ResNet-18 in Section 4.1 to directly predict the LR for SGD algorithm to new heterogeneous tasks. We save the learned MLR-SNet at different epochs in the whole one meta-train run. As is shown in Fig.13(a), if we use
|
| 610 |
+
|
| 611 |
+

|
| 612 |
+
(a) Different Architectures of MLR-(b) Different LRs of Meta Optimizer (c) Different $\gamma$ value of MLR-SNet SNet
|
| 613 |
+
|
| 614 |
+
Figure 12: Ablation study. (a) Test accuracy on CIFAR-10 with ResNet-18 of different architectures of MLR-SNet. ‘a-b’ denotes the configurations of MLR-SNet, where ‘a’ represents the number of layers, and ‘b’ represents the number of hidden nodes. (b)Test accuracy on CIFAR-10 with ResNet18 of different LRs of meta optimizer ’Adam’. (c) Test accuracy on CIFAR-10 with ResNet-18 of different gamma values of MLR-SNet.
|
| 615 |
+
|
| 616 |
+

|
| 617 |
+
Figure 13: (a) We plot the LR variation curves along iterations with the same input for learned MLR-SNet at different epochs. As is shown, when iteration increases, the LR is almost constant. This means the learned MLR-SNet overfits the short trajectories, while fails for the long trajectories. (b),(c) show the recording train loss and test accuracy with ResNet-18 on CIFAR-100 of different test strategies.
|
| 618 |
+
|
| 619 |
+
the single learned MLR-SNet at certain epoch, it can be seen that the predicted LR by the learned LR schedules converges after several iterations. This is because that the training trajectories are long in our experiments, and the learned MLR-SNet can not memory all the information since we locally adjust our MLR-SNet according to the validation error. If we directly select one MLR-SNet learned at any epoch, that will raise overfitting issues as shown in Fig.13(a). Thus we should select more than two learned MLR-SNets for test. Here, we propose a heuristic strategy to select MLR-SNets for test. Generally, if we want to select $k$ nets for test, the MLR-SNet learned at $\big [ \frac { 2 0 0 * l } { k - 1 } \big ]$ -th epoch $( l = 0 , 1 , 2 , \cdots , k - 1 )$ should be chosen, where $[ \cdot ]$ denotes ceiling operator. Fig.13(b) and 13(c) show the train loss and test accuracy with ResNet-18 on CIFAR-100 of different test strategies, i.e., choosing different number of nets to transfer. It can be seen that almost choosing more than three nets have similar performance. Therefore, in the following experiments we choose three MLR-SNets to show the transferability.
|
| 620 |
+
|
| 621 |
+
Transfer to different epochs. We transfer the LR schedules meta-trained with epoch 200 to other different epochs, e.g., 100, 400,1200. All the methods are trained with ResNet-18 on CIFAR-100 with batch size 128 for different epochs. The hyper-parameter setting for compared hand-designed LR schedules is the same with Section 4.1 in the main paper as illustrated above, except for MultiStep LR. For epoch 100, MultiStep LR decays LR by 10 every 30 epochs; For epoch 400, MultiStep LR decays LR by 10 every 120 epochs; For epoch 1200, MultiStep LR decays LR by 10 every 360 epochs. Other hyper-parameters of MultiStep LR keep unchanged. For our method, we use the transferred strategy as below: 1) For epoch 100, we employ the 3 nets at 0-33, 33-67, 67-100 epoch, respectively; 2) For epoch 400, we employ the 3 nets at 0-133, 133-267, 267-400 epoch, respectively; 3) For epoch 1200, we employ the 3 nets at 0-400, 400-800, 800-1200 epoch, respectively.
|
| 622 |
+
|
| 623 |
+
Table 5: Test accuracy $( \% )$ of CIFAR-10 dataset with different networks.
|
| 624 |
+
|
| 625 |
+
<table><tr><td rowspan=1 colspan=1>Optimizer</td><td rowspan=1 colspan=2>ShuffleNetV2 MobileNetV2</td><td rowspan=1 colspan=1>NASNet</td></tr><tr><td rowspan=1 colspan=1>SGD+Fixed</td><td rowspan=1 colspan=1>87.06± 0.33</td><td rowspan=1 colspan=1>90.85 ± 0.52</td><td rowspan=1 colspan=1>89.14± 1.15</td></tr><tr><td rowspan=1 colspan=1>SGD+MultiStep</td><td rowspan=1 colspan=1>88.99 ± 0.11</td><td rowspan=1 colspan=1>92.28 ± 0.28</td><td rowspan=1 colspan=1>94.97 ± 0.10</td></tr><tr><td rowspan=1 colspan=1>SGD+Exponential</td><td rowspan=1 colspan=1>89.45 ± 0.14</td><td rowspan=1 colspan=1>93.47 ± 0.12</td><td rowspan=1 colspan=1>94.59 ± 0.14</td></tr><tr><td rowspan=1 colspan=1>SGD+SGDR</td><td rowspan=1 colspan=1>89.30 ± 0.83</td><td rowspan=1 colspan=1>92.00 ± 1.21</td><td rowspan=1 colspan=1>94.75 ± 0.82</td></tr><tr><td rowspan=1 colspan=1>Adam</td><td rowspan=1 colspan=1>87.95 ± 0.31</td><td rowspan=1 colspan=1>90.64 ± 0.54</td><td rowspan=1 colspan=1>90.60 ± 0.47</td></tr><tr><td rowspan=1 colspan=1>MLR-SNet (Meta-test)</td><td rowspan=1 colspan=1>89.09 ± 0.33</td><td rowspan=1 colspan=1>93.11 ± 0.10</td><td rowspan=1 colspan=1>95.18±0.18</td></tr></table>
|
| 626 |
+
|
| 627 |
+
Table 6: Validation accuracies on ImageNet dataset.
|
| 628 |
+
|
| 629 |
+
<table><tr><td rowspan=1 colspan=1>Optimizer</td><td rowspan=1 colspan=1>Top-1 Accuracy</td><td rowspan=1 colspan=1>Top-5 Accuracy</td></tr><tr><td rowspan=1 colspan=1>SGDM+Fixed</td><td rowspan=1 colspan=1>68.23</td><td rowspan=1 colspan=1>88.47</td></tr><tr><td rowspan=1 colspan=1>SGDM+MultiStep</td><td rowspan=1 colspan=1>75.90</td><td rowspan=1 colspan=1>92.90</td></tr><tr><td rowspan=1 colspan=1>SGDM+Exponential</td><td rowspan=1 colspan=1>75.68</td><td rowspan=1 colspan=1>92.69</td></tr><tr><td rowspan=1 colspan=1>SGDM+SGDR</td><td rowspan=1 colspan=1>75.82</td><td rowspan=1 colspan=1>92.87</td></tr><tr><td rowspan=1 colspan=1>Adam</td><td rowspan=1 colspan=1>63.62</td><td rowspan=1 colspan=1>85.43</td></tr><tr><td rowspan=1 colspan=1>MLR-SNet (Meta-test)</td><td rowspan=1 colspan=1>75.03</td><td rowspan=1 colspan=1>92.39</td></tr></table>
|
| 630 |
+
|
| 631 |
+

|
| 632 |
+
Figure 14: Test accuracy on CIFAR-100 of different DenseNet architectures.
|
| 633 |
+
|
| 634 |
+
Transfer to different datasets. We transfer the LR schedules meta-learned on CIFAR-10 to SVHN (Netzer et al., 2011), TinyImageNet 6, and Penn Treebank (Marcus & Marcinkiewicz). For image classification, we train a ResNet-18 on SVHN and TinyImageNet, respectively. The hyper-parameters of all compared methods are set the same as those of CIFAR-10. For text classification, we train a 3-layer LSTM on Penn Treebank. The hyper-parameters of all compared methods are with the same setting as introduced in Section 4.1.
|
| 635 |
+
|
| 636 |
+
Transfer to different net architectures. We transfer the learned LR schedules for different net architectures training. All the methods are trained on CIFAR-10 with different net architectures. The hyper-parameters of all methods are the same with the setting of CIFAR-10 with ResNet-18. We test the meta-learned LR schedule to different configurations of DenseNet Huang et al. (2017). As shown in Fig. 14, our method perform slightly stable than MultiStep strategy at about 75-125 epochs. This tends to show the superiority of adaptive LR to train the DenseNets. Also, we transfer the LR schedules to several novel networks, the results are presented in Fig.8 in the main paper.
|
| 637 |
+
|
| 638 |
+
Transfer to large scale optimization. We transfer the learned LR schedules for the training of the large scale optimization problems. The predicted LR by MLR-SNet will not substantially increase the complexity compared with hand-designed LR schedules for DNNs training. This makes it feasible and reliable to transfer our meta-learned LR schedules to such large scale optimization problems. We train a ResNet-50 on ImageNet with hand-designed LR schedules and our transferred LR schedules. The training code can be found on https://github.com/pytorch/ examples/tree/master/imagenet, and the parameter setting keeps unchanged except the LR. All compared hand-designed LR schedules are trained by SGDM with a momentum 0.9, a weight decay $5 e ^ { - 4 }$ , an initial learning rate 0.1 for 90 epochs, and batch size 256. Fixed LR uses 0.1 LR during the whole training; Exponential LR multiplies LR with 0.95 every epoch; MultiStep LR decays LR by 10 every 30 epochs; SGDR sets $\mathrm { T } \_ 0$ to 10, T_Mult to 2 and minimum LR to $\bar { 1 } e ^ { - 5 }$ ; Adam just uses the default parameter setting. The results are presented in Fig. 9 in the main paper.
|
| 639 |
+
|
| 640 |
+
Table 7: Test accuracy $( \% )$ on CIFAR-10 and CIFAR-100 training set of different methods trained on CIFAR-10-C and CIFAR-100-C. Best and Last denote the results of the best and the last epoch. The Bold and Underline Bold denote the first and second best results, respectively.
|
| 641 |
+
|
| 642 |
+
<table><tr><td colspan="2">Datasets/Methods</td><td>Fixed</td><td>MultiStep</td><td>Exponential</td><td>SGDR</td><td>Adam</td><td>Ours(Train)</td></tr><tr><td rowspan="2">CIFAR-10-C</td><td>Best</td><td>79.96±4.09</td><td>85.64±1.71</td><td>83.63±1.38</td><td>86.10±1.44</td><td>81.57±1.39</td><td>85.73±1.71</td></tr><tr><td>Last</td><td>77.89±4.05</td><td>85.48±1.71</td><td>83.47±1.37</td><td>78.46±1.92</td><td>80.39±1.65</td><td>85.62±1.76</td></tr><tr><td rowspan="2">CIFAR-100-C</td><td>Best</td><td>46.91±3.08</td><td>52.38±2.43</td><td>49.90±1.93</td><td>52.80±2.39</td><td>45.58±1.95</td><td>52.51±2.38</td></tr><tr><td>Last</td><td>44.81±5.98</td><td>52.28±2.44</td><td>49.75±1.94</td><td>41.68±3.33</td><td>43.94±2.18</td><td>52.35±2.46</td></tr></table>
|
| 643 |
+
|
| 644 |
+
# D EXPERIMENTAL DETAILS AND ADDITIONAL RESULTS IN SECTION 4.3
|
| 645 |
+
|
| 646 |
+
The datasets CIFAR-10-C and CIFAR-100-C Hendrycks & Dietterich (2019) can be downloaded at https://zenodo.org/record/2535967#.Xt4mVigzZPY, https://zenodo.org/ record/3555552#.Xt4mdSgzZPY. Each dataset contains 15 types of algorithmically generated corruptions from noise, blur, weather, and digital categories. These corruptions contain Gaussian Noise, Shot Noise, Impulse Noise, Defocus Blur, Frosted Glass Blur, Motion Blur, Zoom Blur, Snow, Frost, Fog, Brightness, Contrast, Elastic, Pixelate and JPEG. All the corruptions are gererated on 10,000 test set images, and each corruption contains 50,000 images since each type of corruption has five levels of severity. We treat CIFAR-10-C or CIFAR-100-C dataset as training set, and train a model with ResNet-18 for each corruption dataset. Finally, we can obtain 15 models for CIFAR-10/100-C. Each corruption can be roughly regarded as a task, and the average accuracy of 15 models on test data 7 is used to evaluate the robust performance of different tasks for each LR schedules strategy.
|
| 647 |
+
|
| 648 |
+
For experimental setting in Section 4.3, all compared hand-designed LR schedules are trained with a ResNet-18 by SGDM with a momentum 0.9, a weight decay $5 e ^ { - 4 }$ , an initial learning rate 0.1 for 100 epochs, and batch size 128. Fixed LR uses 0.1 LR during the whole training; Exponential LR multiplies LR with 0.95 every epoch; MultiStep LR decays LR by 10 every 30 epochs; SGDR sets T_0 to 10, T_Mult to 2 and minimum LR to ${ \bar { 1 } } e ^ { - 5 }$ ; Adam just uses the default parameter setting. Our method trains the ResNet-18 by SGD with a weight decay $5 e ^ { - 4 }$ , and the MLR-SNet is learned under the guidance of a small set of validation set without corruptions. We randomly choose 10 clean images for each class as validation set. The experimental result is listed in Table 1 in the main paper.
|
| 649 |
+
|
| 650 |
+
Additional robustness results of transferrable LR schedules on different data corruptions. Furthermore, we want to explore the robust performance of different tasks for our transferrable LR schedules. Different from above experiments where all 15 models are trained under the guidance of a small set of validation set, we just train a ResNet-18 on Gaussian Noise corruption to meta-learn the MLR-SNet, and then transfer the meta-learned LR schedules to other 14 corruptions. We report the average accuracy of 14 models on test data to show the robust performance of our transferred LR schedules. All the methods are meta-tested with a ResNet-18 for 100 epochs with batch size 128. The hyper-parameter setting of hand-designed LR schedules keeps same with above. Table 7 shows the mean test accuracy of 14 models. As can be seen, our transferrable LR schedules obtain the final best performance compared with hand-designed LR schedules. This implies that our transferrable LR schedules can also perform robust and stable than the pre-set LR schedules when the learning tasks are changed. However, our transferrable LR schedules are plug-and-play, and have no additional hyper-parameters to tune when transferred to new heterogeneous tasks.
|
| 651 |
+
|
| 652 |
+
# E THE PRELIMINARY EXPLORATION OF THE INFLUENCE ON META-TEST TASKS OF THE DIFFERENT META-TRAINING TASKS.
|
| 653 |
+
|
| 654 |
+
In this section, we study the performance influence on the target task of the different meta-training tasks. Here we fixed the target task as training ResNet-18 on TinyImageNet. We choose three different meta-training task: 1) training ResNet-18 on CIFAR-10; 2) training WideResNet-28-10 on CIFAR-100; 3) training 3-layer LSTM on Penn Treebank. Fig.15 shows the meta-test performance of three different meta-training tasks. It can be seen that the meta-training task more related to the target task would obtain better transferable performance on the target task.
|
| 655 |
+
|
| 656 |
+

|
| 657 |
+
Figure 15: The meta-test performance on TinyImageNet (target task) of different meta-training tasks.
|
| 658 |
+
|
| 659 |
+

|
| 660 |
+
Figure 16: Performance comparion on CIFAR-10 of the MLR-SNet and baselines.
|
| 661 |
+
|
| 662 |
+
F APPLYING MLR-SNET ON TOP OF ADAM.
|
| 663 |
+
|
| 664 |
+
To further demostrate the versatility of our method, we apply the MLR-SNet on top of the Adam algorithm. Fig.16 shows that our methods can substantially improve the performance of the original Adam algorithm.
|
| 665 |
+
|
| 666 |
+
# G EXPERIMENTAL RESULTS OF ADDITIONAL COMPARED METHOD LR CONTROLLER
|
| 667 |
+
|
| 668 |
+
In this section, we present the experimental results of LR Controller Xu et al. (2019), which is a related work of ours but under the reinforcement learning framework. Due to their learning algorithm is relatively computationally expensive and not very easy to optimize, we will show our method has a superiority in finding such a good LR schedule that scales and generalizes.
|
| 669 |
+
|
| 670 |
+
To start a fair comparison, we follow all the training settings and structure of LR Controller proposed in Xu et al. (2019) except that we modify the batch size to 128 and increase training steps to cover 200 epochs of data to match our setup in Section $4 . 1 ~ ^ { 8 }$ . Firstly, we train LR Controller on CIFAR-10 with ResNet-18 and CIFAR-100 with WideResNet-28-10 as we do in Section 4.1. As shown in Fig. 17, our method demonstrates evident superiority in finding a solution with better generalization compared with LR Controller strategies. LR Controller performs steadily in the early training phase, but soon fluctuates significantly and fails to progress. This tends to show that the LR Controller suffers from a severe stability issue when training step increases, especially being compared to our MLR-SNet.
|
| 671 |
+
|
| 672 |
+
Then we transfer the LR schedules learned on CIFAR-10 for our method and LR Controller to CIFAR-100 to verify their transferability. Test settings are the same with those related in Section 4.2. As shown in Fig. 18, LR Controller makes a comparatively slower progress in the whole training process. While our method achieves a competitive performance, which indicates the capability of transferring to other tasks for our method.
|
| 673 |
+
|
| 674 |
+

|
| 675 |
+
Figure 17: Train loss, test accuracy and learned LR schedules of our method(train) and LR Controller(train) on CIFAR-10 and CIFAR-100.
|
| 676 |
+
|
| 677 |
+

|
| 678 |
+
Figure 18: Train loss, test accuracy of our method(test) and LR Controller(test) on CIFAR-100.
|
parse/train/dvSExzhjG9D/dvSExzhjG9D_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/dvSExzhjG9D/dvSExzhjG9D_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/dvSExzhjG9D/dvSExzhjG9D_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rJbbOLcex/rJbbOLcex.md
ADDED
|
@@ -0,0 +1,269 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TOPICRNN: A RECURRENT NEURAL NETWORKWITH LONG-RANGE SEMANTIC DEPENDENCY
|
| 2 |
+
|
| 3 |
+
Adji B. Dieng ∗ Columbia University abd2141@columbia.edu
|
| 4 |
+
|
| 5 |
+
Chong Wang
|
| 6 |
+
Deep Learning Technology Center Microsoft Research
|
| 7 |
+
chowang@microsoft.com
|
| 8 |
+
Jianfeng Gao
|
| 9 |
+
Deep Learning Technology Center
|
| 10 |
+
Microsoft Research
|
| 11 |
+
jfgao@microsoft.com
|
| 12 |
+
|
| 13 |
+
John Paisley Columbia University jpaisley@columbia.edu
|
| 14 |
+
|
| 15 |
+
# ABSTRACT
|
| 16 |
+
|
| 17 |
+
In this paper, we propose TopicRNN, a recurrent neural network (RNN)-based language model designed to directly capture the global semantic meaning relating words in a document via latent topics. Because of their sequential nature, RNNs are good at capturing the local structure of a word sequence – both semantic and syntactic – but might face difficulty remembering long-range dependencies. Intuitively, these long-range dependencies are of semantic nature. In contrast, latent topic models are able to capture the global semantic structure of a document but do not account for word ordering. The proposed TopicRNN model integrates the merits of RNNs and latent topic models: it captures local (syntactic) dependencies using an RNN and global (semantic) dependencies using latent topics. Unlike previous work on contextual RNN language modeling, our model is learned endto-end. Empirical results on word prediction show that TopicRNN outperforms existing contextual RNN baselines. In addition, TopicRNN can be used as an unsupervised feature extractor for documents. We do this for sentiment analysis on the IMDB movie review dataset and report an error rate of $6 . 2 8 \%$ . This is comparable to the state-of-the-art $5 . 9 1 \%$ resulting from a semi-supervised approach. Finally, TopicRNN also yields sensible topics, making it a useful alternative to document models such as latent Dirichlet allocation.
|
| 18 |
+
|
| 19 |
+
# 1 INTRODUCTION
|
| 20 |
+
|
| 21 |
+
When reading a document, short or long, humans have a mechanism that somehow allows them to remember the gist of what they have read so far. Consider the following example:
|
| 22 |
+
|
| 23 |
+
“The U.S.presidential race isn’t only drawing attention and controversy in the United States – it’s being closely watched across the globe. But what does the rest of the world think about a campaign that has already thrown up one surprise after another? CNN asked 10 journalists for their take on the race so far, and what their country might be hoping for in America’s next —
|
| 24 |
+
|
| 25 |
+
The missing word in the text above is easily predicted by any human to be either President or Commander in Chief or their synonyms. There have been various language models – from simple ngrams to the most recent RNN-based language models – that aim to solve this problem of predicting correctly the subsequent word in an observed sequence of words.
|
| 26 |
+
|
| 27 |
+
A good language model should capture at least two important properties of natural language. The first one is correct syntax. In order to do prediction that enjoys this property, we often only need to consider a few preceding words. Therefore, correct syntax is more of a local property. Word order matters in this case. The second property is the semantic coherence of the prediction. To achieve this, we often need to consider many preceding words to understand the global semantic meaning of the sentence or document. The ordering of the words usually matters much less in this case.
|
| 28 |
+
|
| 29 |
+
Because they only consider a fixed-size context window of preceding words, traditional $n$ -gram and neural probabilistic language models (Bengio et al., 2003) have difficulties in capturing global semantic information. To overcome this, RNN-based language models (Mikolov et al., 2010; 2011) use hidden states to “remember” the history of a word sequence. However, none of these approaches explicitly model the two main properties of language mentioned above, correct syntax and semantic coherence. Previous work by Chelba and Jelinek (2000) and Gao et al. (2004) exploit syntactic or semantic parsers to capture long-range dependencies in language.
|
| 30 |
+
|
| 31 |
+
In this paper, we propose TopicRNN, a RNN-based language model that is designed to directly capture long-range semantic dependencies via latent topics. These topics provide context to the RNN. Contextual RNNs have received a lot of attention (Mikolov and Zweig, 2012; Mikolov et al., 2014; Ji et al., 2015; Lin et al., 2015; Ji et al., 2016; Ghosh et al., 2016). However, the models closest to ours are the contextual RNN model proposed by Mikolov and Zweig (2012) and its most recent extension to the long-short term memory (LSTM) architecture (Ghosh et al., 2016). These models use pre-trained topic model features as an additional input to the hidden states and/or the output of the RNN. In contrast, TopicRNN does not require pre-trained topic model features and can be learned in an end-to-end fashion. We introduce an automatic way for handling stop words that topic models usually have difficulty dealing with. Under a comparable model size set up, TopicRNN achieves better perplexity scores than the contextual RNN model of Mikolov and Zweig (2012) on the Penn TreeBank dataset 1. Moreover, TopicRNN can be used as an unsupervised feature extractor for downstream applications. For example, we derive document features of the IMDB movie review dataset using TopicRNN for sentiment classification. We reported an error rate of $6 . 2 8 \%$ . This is close to the state-of-the-art $5 . 9 1 \%$ (Miyato et al., 2016) despite that we do not use the labels and adversarial training in the feature extraction stage.
|
| 32 |
+
|
| 33 |
+
The remainder of the paper is organized as follows: Section 2 provides background on RNN-based language models and probabilistic topic models. Section 3 describes the TopicRNN network architecture, its generative process and how to perform inference for it. Section 4 presents per-word perplexity results on the Penn TreeBank dataset and the classification error rate on the IMDB 100K dataset. Finally, we conclude and provide future research directions in Section 5.
|
| 34 |
+
|
| 35 |
+
# 2 BACKGROUND
|
| 36 |
+
|
| 37 |
+
We present the background necessary for building the TopicRNN model. We first review RNN-based language modeling, followed by a discussion on the construction of latent topic models.
|
| 38 |
+
|
| 39 |
+
# 2.1 RECURRENT NEURAL NETWORK-BASED LANGUAGE MODELS
|
| 40 |
+
|
| 41 |
+
Language modeling is fundamental to many applications. Examples include speech recognition and machine translation. A language model is a probability distribution over a sequence of words in a predefined vocabulary. More formally, let $V$ be a vocabulary set and $y _ { 1 } , . . . , y _ { T }$ a sequence of $T$ words with each $y _ { t } \in V$ . A language model measures the likelihood of a sequence through a joint probability distribution,
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
p ( y _ { 1 } , . . . , y _ { T } ) = p ( y _ { 1 } ) \prod _ { t = 2 } ^ { T } p ( y _ { t } | y _ { 1 : t - 1 } ) .
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
Traditional $n$ -gram and feed-forward neural network language models (Bengio et al., 2003) typically make Markov assumptions about the sequential dependencies between words, where the chain rule shown above limits conditioning to a fixed-size context window.
|
| 48 |
+
|
| 49 |
+
RNN-based language models (Mikolov et al., 2011) sidestep this Markov assumption by defining the conditional probability of each word $y _ { t }$ given all the previous words $y _ { 1 : t - 1 }$ through a hidden
|
| 50 |
+
|
| 51 |
+
state $h _ { t }$ (typically via a softmax function):
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
\begin{array} { r } { p ( y _ { t } | y _ { 1 : t - 1 } ) \triangleq p ( y _ { t } | h _ { t } ) , \quad } \\ { h _ { t } = f ( h _ { t - 1 } , x _ { t } ) . } \end{array}
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
The function $f ( \cdot )$ can either be a standard RNN cell or a more complex cell such as GRU (Cho et al., 2014) or LSTM (Hochreiter and Schmidhuber, 1997). The input and target words are related via the relation $x _ { t } \equiv y _ { t - 1 }$ . These RNN-based language models have been quite successful (Mikolov et al., 2011; Chelba et al., 2013; Jozefowicz et al., 2016).
|
| 58 |
+
|
| 59 |
+
While in principle RNN-based models can “remember” arbitrarily long histories if provided enough capacity, in practice such large-scale neural networks can easily encounter difficulties during optimization (Bengio et al., 1994; Pascanu et al., 2013; Sutskever, 2013) or overfitting issues (Srivastava et al., 2014). Finding better ways to model long-range dependencies in language modeling is therefore an open research challenge. As motivated in the introduction, much of the long-range dependency in language comes from semantic coherence, not from syntactic structure which is more of a local phenomenon. Therefore, models that can capture long-range semantic dependencies in language are complementary to RNNs. In the following section, we describe a family of such models called probabilistic topic models.
|
| 60 |
+
|
| 61 |
+
# 2.2 PROBABILISTIC TOPIC MODELS
|
| 62 |
+
|
| 63 |
+
Probabilistic topic models are a family of models that can be used to capture global semantic coherency (Blei and Lafferty, 2009). They provide a powerful tool for summarizing, organizing, and navigating document collections. One basic goal of such models is to find groups of words that tend to co-occur together in the same document. These groups of words are called topics and represent a probability distribution that puts most of its mass on this subset of the vocabulary. Documents are then represented as mixtures over these latent topics. Through posterior inference, the learned topics capture the semantic coherence of the words they cluster together (Mimno et al., 2011).
|
| 64 |
+
|
| 65 |
+
The simplest topic model is latent Dirichlet allocation (LDA) (Blei et al., 2003). It assumes $K$ underlying topics $\beta = \{ \beta _ { 1 } , \dots , \beta _ { K } \}$ , each of which is a distribution over a fixed vocabulary. The generative process of LDA is as follows:
|
| 66 |
+
|
| 67 |
+
First generate the $K$ topics, $\beta _ { k } \sim _ { i i d }$ Dirichlet $( \tau )$ . Then for each document containing words $y _ { 1 : T }$ independently generate document-level variables and data:
|
| 68 |
+
|
| 69 |
+
1. Draw a document-specific topic proportion vector $\theta \sim \mathrm { D i r i c h l e t } ( \alpha )$
|
| 70 |
+
|
| 71 |
+
2. For the tth word in the document,
|
| 72 |
+
|
| 73 |
+
(a) Draw topic assignment $z _ { t } \sim \mathrm { D i s c r e t e } ( \theta )$ .
|
| 74 |
+
(b) Draw word $y _ { t } \sim \mathrm { D i s c r e t e } ( \beta _ { z _ { t } } )$ .
|
| 75 |
+
|
| 76 |
+
Marginalizing each $z _ { t }$ , we obtain the probability of $y _ { 1 : T }$ via a matrix factorization followed by an integration over the latent variable $\theta$ ,
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
p ( \boldsymbol { y } _ { 1 : T } | \beta ) = \int p ( \boldsymbol { \theta } ) \prod _ { t = 1 } ^ { T } \sum _ { z _ { t } } p ( z _ { t } | \boldsymbol { \theta } ) p ( \boldsymbol { y } _ { t } | \boldsymbol { z } _ { t } , \beta ) \mathrm { d } \boldsymbol { \theta } = \int p ( \boldsymbol { \theta } ) \prod _ { t = 1 } ^ { T } ( \beta \boldsymbol { \theta } ) _ { \boldsymbol { y } _ { t } } \mathrm { d } \boldsymbol { \theta } .
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
In LDA the prior distribution on the topic proportions is a Dirichlet distribution; it can be replaced by many other distributions. For example, the correlated topic model (Blei and Lafferty, 2006) uses a log-normal distribution. Most topic models are “bag of words” models in that word order is ignored. This makes it easier for topic models to capture global semantic information. However, this is also one of the reasons why topic models do not perform well on general-purpose language modeling applications such as word prediction. While bi-gram topic models have been proposed (Wallach, 2006), higher order models quickly become intractable.
|
| 83 |
+
|
| 84 |
+
Another issue encountered by topic models is that they do not model stop words well. This is because stop words usually do not carry semantic meaning; their appearance is mainly to make the sentence more readable according to the grammar of the language. They also appear frequently in almost every document and can co-occur with almost any word2. In practice, these stop words are chosen using tf-idf (Blei and Lafferty, 2009).
|
| 85 |
+
|
| 86 |
+

|
| 87 |
+
Figure 1: (a) The unrolled TopicRNN architecture: $x _ { 1 } , . . . , x _ { 6 }$ are words in the document, $h _ { t }$ is the state of the RNN at time step $t$ , $x _ { i } \equiv y _ { i - 1 }$ , $l _ { 1 } , . . . , l _ { 6 }$ are stop word indicators, and $\theta$ is the latent representation of the input document and is unshaded by convention. (b) The TopicRNN model architecture in its compact form: $l$ is a binary vector that indicates whether each word in the input document is a stop word or not. Here red indicates stop words and blue indicates content words.
|
| 88 |
+
|
| 89 |
+
# 3 THE TOPICRNN MODEL
|
| 90 |
+
|
| 91 |
+
We next describe the proposed TopicRNN model. In TopicRNN, latent topic models are used to capture global semantic dependencies so that the RNN can focus its modeling capacity on the local dynamics of the sequences. With this joint modeling, we hope to achieve better overall performance on downstream applications.
|
| 92 |
+
|
| 93 |
+
The model. TopicRNN is a generative model. For a document containing the words $y _ { 1 : T }$
|
| 94 |
+
|
| 95 |
+
1. Draw a topic vector3 $\theta \sim N ( 0 , I )$ .
|
| 96 |
+
|
| 97 |
+
2. Given word $y _ { 1 : t - 1 }$ , for the tth word $y _ { t }$ in the document, (a) Compute hidden state $h _ { t } = f _ { W } ( x _ { t } , h _ { t - 1 } )$ , where we let $x _ { t } \triangleq y _ { t - 1 }$ . (b) Draw stop word indicator $l _ { t } \sim \mathrm { B e r n o u l l i } ( \sigma ( \Gamma ^ { \top } h _ { t } ) )$ , with $\sigma$ the sigmoid function. (c) Draw word $y _ { t } \sim p ( y _ { t } | h _ { t } , \theta , l _ { t } , B )$ , where
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
p ( y _ { t } = i | h _ { t } , \theta , l _ { t } , B ) \propto \exp \left( v _ { i } ^ { \top } h _ { t } + ( 1 - l _ { t } ) b _ { i } ^ { \top } \theta \right) .
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
The stop word indicator $l _ { t }$ controls how the topic vector $\theta$ affects the output. If $l _ { t } = 1$ (indicating $y _ { t }$ is a stop word), the topic vector $\theta$ has no contribution to the output. Otherwise, we add a bias to favor those words that are more likely to appear when mixing with $\theta$ , as measured by the dot product between $\theta$ and the latent word vector $b _ { i }$ for the $i$ th vocabulary word. As we can see, the longrange semantic information captured by $\theta$ directly affects the output through an additive procedure. Unlike Mikolov and Zweig (2012), the contextual information is not passed to the hidden layer of the RNN. The main reason behind our choice of using the topic vector as bias instead of passing it into the hidden states of the RNN is because it enables us to have a clear separation of the contributions of global semantics and those of local dynamics. The global semantics come from the topics which are meaningful when stop words are excluded. However these stop words are needed for the local dynamics of the language model. We hence achieve this separation of global vs local via a binary decision model for the stop words. It is unclear how to achieve this if we pass the topics to the hidden states of the RNN. This is because the hidden states of the RNN will account for all words (including stop words) whereas the topics exclude stop words.
|
| 104 |
+
|
| 105 |
+
We show the unrolled graphical representation of TopicRNN in Figure 1(a). We denote all model parameters as $\Theta = \{ \Gamma , \mathbf { \bar { \it V } } , \mathbf { \bar { \it B } } , W , W _ { c } \}$ (see Appendix A.1 for more details). Parameter $W _ { c }$ is for the inference network, which we will introduce below. The observations are the word sequences $y _ { 1 : T }$ and stop word indicators $l _ { 1 : T }$ .4 The log marginal likelihood of the sequence $y _ { 1 : T }$ is
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\log p ( y _ { 1 : T } , l _ { 1 : T } | h _ { t } ) = \log \int p ( \theta ) \prod _ { t = 1 } ^ { T } p ( y _ { t } | h _ { t } , l _ { t } , \theta ) p ( l _ { t } | h _ { t } ) \mathrm { d } \theta .
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
Model inference. Direct optimization of Equation 2 is intractable so we use variational inference for approximating this marginal (Jordan et al., 1999). Let $q ( \theta )$ be the variational distribution on the marginalized variable $\theta$ . We construct the variational objective function, also called the evidence lower bound (ELBO), as follows:
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
\begin{array} { r l } { \mathcal { L } ( y _ { 1 : T } , l _ { 1 : T } | q ( \theta ) , \Theta ) \triangleq } & { \mathbb { E } _ { q ( \theta ) } \left[ \displaystyle \sum _ { t = 1 } ^ { T } \log p ( y _ { t } | h _ { t } , l _ { t } , \theta ) + \log p ( l _ { t } | h _ { t } ) + \log p ( \theta ) - \log q ( \theta ) \right] } \\ & { \leq \log p ( y _ { 1 : T } , l _ { 1 : T } | h _ { t } , \Theta ) . } \end{array}
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
Following the proposed variational autoencoder technique, we choose the form of $q ( \theta )$ to be an inference network using a feed-forward neural network (Kingma and Welling, 2013; Miao et al., 2015). Let $X _ { c } \in \mathcal { N } _ { + } ^ { | V _ { c } | }$ be the term-frequency representation of $y _ { 1 : T }$ excluding stop words (with $V _ { c }$ the vocabulary size without the stop words). The variational autoencoder inference network $q ( \theta | X _ { c } , W _ { c } )$ with parameter $W _ { c }$ is a feed-forward neural network with ReLU activation units that projects $X _ { c }$ into a $K$ -dimensional latent space. Specifically, we have
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
\begin{array} { c } { { q ( \theta | X _ { c } , W _ { c } ) = N ( \theta ; \mu ( X _ { c } ) , \mathrm { d i a g } ( \sigma ^ { 2 } ( X _ { c } ) ) ) , } } \\ { { \mu ( X _ { c } ) = W _ { 1 } g ( X _ { c } ) + a _ { 1 } , } } \\ { { \log \sigma ( X _ { c } ) = W _ { 2 } g ( X _ { c } ) + a _ { 2 } , } } \end{array}
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
where $g ( \cdot )$ denotes the feed-forward neural network. The weight matrices $W _ { 1 }$ , $W _ { 2 }$ and biases $a _ { 1 }$ , $a _ { 2 }$ are shared across documents. Each document has its own $\mu ( X _ { c } )$ and $\sigma ( X _ { c } )$ resulting in a unique distribution $q ( \theta | X _ { c } )$ for each document. The output of the inference network is a distribution on $\theta$ , which we regard as the summarization of the semantic information, similar to the topic proportions in latent topic models. We show the role of the inference network in Figure 1(b). During training, the parameters of the inference network and the model are jointly learned and updated via truncated backpropagation through time using the Adam algorithm (Kingma and Ba, 2014). We use stochastic samples from $q ( \theta | X _ { c } )$ and the reparameterization trick towards this end (Kingma and Welling, 2013; Rezende et al., 2014).
|
| 124 |
+
|
| 125 |
+
Generating sequential text and computing perplexity. Suppose we are given a word sequence $y _ { 1 : t - 1 }$ , from which we have an initial estimation of $q ( \theta | X _ { c } )$ . To generate the next word $y _ { t }$ , we compute the probability distribution of $y _ { t }$ given $y _ { 1 : t - 1 }$ in an online fashion. We choose $\theta$ to be a point estimate $\hat { \theta }$ , the mean of its current distribution $q ( \theta | X _ { c } )$ . Marginalizing over the stop word indicator $l _ { t }$ which is unknown prior to observing $y _ { t }$ , the approximate distribution of $y _ { t }$ is
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
p ( y _ { t } | y _ { 1 : t - 1 } ) \approx \sum _ { l _ { t } } p ( y _ { t } | h _ { t } , \hat { \theta } , l _ { t } ) p ( l _ { t } | h _ { t } ) .
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
The predicted word $y _ { t }$ is a sample from this predictive distribution. We update $q ( \theta | X _ { c } )$ by including $y _ { t }$ to $X _ { c }$ if $y _ { t }$ is not a stop word. However, updating $q ( \theta | X _ { c } )$ after each word prediction is expensive, so we use a sliding window as was done in Mikolov and Zweig (2012). To compute the perplexity, we use the approximate predictive distribution above.
|
| 132 |
+
|
| 133 |
+
Model Complexity. TopicRNN has a complexity of $O ( H \times H + H \times ( C + K ) + W _ { c } )$ , where $H$ is the size of the hidden layer of the RNN, $C$ is the vocabulary size, $K$ is the dimension of the topic vector, and $W _ { c }$ is the number of parameters of the inference network. The contextual RNN of Mikolov and Zweig (2012) accounts for $O ( H \times H + H \times ( C + K ) )$ , not including the pre-training process, which might require more parameters than the additional $W _ { c }$ in our complexity.
|
| 134 |
+
|
| 135 |
+
# 4 EXPERIMENTS
|
| 136 |
+
|
| 137 |
+
We assess the performance of our proposed TopicRNN model on word prediction and sentiment analysis5. For word prediction we use the Penn TreeBank dataset, a standard benchmark for assessing new language models (Marcus et al., 1993). For sentiment analysis we use the IMDB 100k dataset (Maas et al., 2011), also a common benchmark dataset for this application6. We use RNN, LSTM, and GRU cells in our experiments leading to TopicRNN, TopicLSTM, and TopicGRU.
|
| 138 |
+
|
| 139 |
+
Table 1: Five Topics from the TopicRNN Model with 100 Neurons and 50 Topics on the PTB Data. (The word $s \& p$ below shows as $s p$ in the data.)
|
| 140 |
+
|
| 141 |
+
<table><tr><td rowspan=1 colspan=1>Law</td><td rowspan=1 colspan=1>Company</td><td rowspan=1 colspan=1>Parties</td><td rowspan=1 colspan=1>Trading</td><td rowspan=1 colspan=1>Cars</td></tr><tr><td rowspan=1 colspan=1>law</td><td rowspan=1 colspan=1>spending</td><td rowspan=1 colspan=1>democratic</td><td rowspan=1 colspan=1>stock</td><td rowspan=1 colspan=1>gm</td></tr><tr><td rowspan=2 colspan=1>lawyers judge</td><td rowspan=1 colspan=1>sales</td><td rowspan=1 colspan=1>republicans</td><td rowspan=1 colspan=1>s&p</td><td rowspan=1 colspan=1>auto</td></tr><tr><td rowspan=1 colspan=1>advertising</td><td rowspan=1 colspan=1>gop</td><td rowspan=1 colspan=1>price</td><td rowspan=1 colspan=1>ford</td></tr><tr><td rowspan=3 colspan=1>rightsattorneycourt</td><td rowspan=1 colspan=1>employees</td><td rowspan=1 colspan=1>republican</td><td rowspan=1 colspan=1>investor</td><td rowspan=1 colspan=1> jaguar</td></tr><tr><td rowspan=1 colspan=1>state</td><td rowspan=1 colspan=1>senate</td><td rowspan=1 colspan=1>standard</td><td rowspan=1 colspan=1>car</td></tr><tr><td rowspan=1 colspan=1>taxes</td><td rowspan=1 colspan=1>oakland</td><td rowspan=1 colspan=1>chairman</td><td rowspan=2 colspan=1>carsheadquarters</td></tr><tr><td rowspan=2 colspan=1>generalcommon</td><td rowspan=1 colspan=1>fiscal</td><td rowspan=1 colspan=1>highway</td><td rowspan=1 colspan=1>investors</td></tr><tr><td rowspan=1 colspan=1>appropriation</td><td rowspan=1 colspan=1>democrats</td><td rowspan=1 colspan=1>retirement</td><td rowspan=1 colspan=1>british</td></tr><tr><td rowspan=1 colspan=1>mr</td><td rowspan=1 colspan=1>budget</td><td rowspan=1 colspan=1>bill</td><td rowspan=1 colspan=1>holders</td><td rowspan=1 colspan=1>executives</td></tr><tr><td rowspan=1 colspan=1>insurance</td><td rowspan=1 colspan=1>ad</td><td rowspan=1 colspan=1>district</td><td rowspan=1 colspan=1>merrill</td><td rowspan=1 colspan=1>model</td></tr></table>
|
| 142 |
+
|
| 143 |
+

|
| 144 |
+
Figure 2: Inferred distributions using TopicGRU on three different documents. The content of these documents is added on the appendix. This shows that some of the topics are being picked up depending on the input document.
|
| 145 |
+
|
| 146 |
+
# 4.1 WORD PREDICTION
|
| 147 |
+
|
| 148 |
+
We first tested TopicRNN on the word prediction task using the Penn Treebank (PTB) portion of the Wall Street Journal. We use the standard split, where sections 0-20 (930K tokens) are used for training, sections 21-22 (74K tokens) for validation, and sections 23-24 (82K tokens) for testing (Mikolov et al., 2010). We use a vocabulary of size $1 0 K$ that includes the special token unk for rare words and eos that indicates the end of a sentence. TopicRNN takes documents as inputs. We split the PTB data into blocks of 10 sentences to constitute documents as done by (Mikolov and Zweig, 2012). The inference network takes as input the bag-of-words representation of the input document. For that reason, the vocabulary size of the inference network is reduced to 9551 after excluding 449 pre-defined stop words.
|
| 149 |
+
|
| 150 |
+
In order to compare with previous work on contextual RNNs we trained TopicRNN using different network sizes. We performed word prediction using a recurrent neural network with 10 neurons,
|
| 151 |
+
|
| 152 |
+
Table 2: TopicRNN and its counterparts exhibit lower perplexity scores across different network sizes than reported in Mikolov and Zweig (2012). Table 2a shows per-word perplexity scores for 10 neurons. Table 2b and Table 2c correspond to per-word perplexity scores for 100 and 300 neurons respectively. These results prove TopicRNN has more generalization capabilities: for example we only need a TopicGRU with 100 neurons to achieve a better perplexity than stacking 2 LSTMs with 200 neurons each: 112.4 vs 115.9)
|
| 153 |
+
|
| 154 |
+
<table><tr><td colspan="3">(a)</td><td colspan="3">(b)</td></tr><tr><td>10 Neurons</td><td>Valid</td><td></td><td>100 Neurons</td><td>Valid</td><td>Test</td></tr><tr><td>RNN (no features)</td><td>239.2</td><td>225.0</td><td colspan="2">RNN (no features)</td><td>150.1 142.1</td></tr><tr><td>RNN (LDA features)</td><td>197.3 187.4</td><td colspan="2">RNN (LDA features)</td><td>132.3</td><td>126.4</td></tr><tr><td>TopicRNN</td><td>184.5 172.2</td><td colspan="2">TopicRNN</td><td>128.5</td><td>122.3</td></tr><tr><td>TopicLSTM</td><td>188.0 175.0</td><td colspan="2">TopicLSTM</td><td>126.0</td><td>118.1</td></tr><tr><td>TopicGRU</td><td>178.3 166.7</td><td colspan="2">TopicGRU</td><td>118.3</td><td>112.4</td></tr><tr><td></td><td>(c)</td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>300 Neurons</td><td>Valid</td><td>Test</td><td></td><td></td></tr><tr><td></td><td>RNN (no features)</td><td></td><td>124.7</td><td></td><td></td></tr><tr><td></td><td>RNN (LDA features)</td><td></td><td>113.7</td><td></td><td></td></tr><tr><td></td><td>TopicRNN</td><td>118.3</td><td>112.2</td><td></td><td></td></tr><tr><td></td><td>TopicLSTM</td><td>104.1</td><td>99.5</td><td></td><td></td></tr><tr><td></td><td>TopicGRU</td><td>99.6</td><td>97.3</td><td></td><td></td></tr></table>
|
| 155 |
+
|
| 156 |
+
100 neurons and 300 neurons. For these experiments, we used a multilayer perceptron with 2 hidden layers and 200 hidden units per layer for the inference network. The number of topics was tuned depending on the size of the RNN. For 10 neurons we used 18 topics. For 100 and 300 neurons we found 50 topics to be optimal. We used the validation set to tune the hyperparameters of the model. We used a maximum of 15 epochs for the experiments and performed early stopping using the validation set. For comparison purposes we did not apply dropout and used 1 layer for the RNN and its counterparts in all the word prediction experiments as reported in Table 2. One epoch for 10 neurons takes 2.5 minutes. For 100 neurons, one epoch is completed in less than 4 minutes. Finally, for 300 neurons one epoch takes less than 6 minutes. These experiments were ran on Microsoft Azure NC12 that has 12 cores, 2 Tesla K80 GPUs, and 112 GB memory. First, we show five randomly drawn topics in Table 1. These results correspond to a network with 100 neurons. We also illustrate some inferred topic distributions for several documents from TopicGRU in Figure 2. Similar to standard topic models, these distributions are also relatively peaky.
|
| 157 |
+
|
| 158 |
+
Next, we compare the performance of TopicRNN to our baseline contextual RNN using perplexity. Perplexity can be thought of as a measure of surprise for a language model. It is defined as the exponential of the average negative log likelihood. Table 2 summarizes the results for different network sizes. We learn three things from these tables. First, the perplexity is reduced the larger the network size. Second, RNNs with context features perform better than RNNs without context features. Third, we see that TopicRNN gives lower perplexity than the previous baseline result reported by Mikolov and Zweig (2012). Note that to compute these perplexity scores for word prediction we use a sliding window to compute $\theta$ as we move along the sequences. The topic vector $\theta$ that is used from the current batch of words is estimated from the previous batch of words. This enables fair comparison to previously reported results (Mikolov and Zweig, 2012).7
|
| 159 |
+
|
| 160 |
+
Another aspect of the TopicRNN model we studied is its capacity to generate coherent text. To do this, we randomly drew a document from the test set and used this document as seed input to the inference network to compute $\theta$ . Our expectation is that the topics contained in this seed document are reflected in the generated text. Table 3 shows generated text from models learned on the PTB and IMDB datasets. See Appendix A.3 for more examples.
|
| 161 |
+
|
| 162 |
+
Table 3: Generated text using the TopicRNN model on the PTB (top) and IMDB (bottom).
|
| 163 |
+
|
| 164 |
+
they believe that they had senior damages to guarantee and frustration of unk stations eos the rush to minimum effect in composite trading the compound base inflated rate before the common charter ’s report eos wells fargo inc. unk of state control funds without openly scheduling the university ’s exchange rate has been downgraded it ’s unk said eos the united cancer & began critical increasing rate of N N at N N to N N are less for the country to trade rate for more than three months $\$ 1$ workers were mixed eos
|
| 165 |
+
|
| 166 |
+
lee is head to be watched unk month she eos but the acting surprisingly nothing is very good eos i cant believe that he can unk to a role eos may appear of for the stupid killer really to help with unk unk unk if you wan na go to it fell to the plot clearly eos it gets clear of this movie 70 are so bad mexico direction regarding those films eos then go as unk ’s walk and after unk to see him try to unk before that unk with this film
|
| 167 |
+
|
| 168 |
+
Table 4: Classification error rate on IMDB 100k dataset. TopicRNN provides the state of the art error rate on this dataset.
|
| 169 |
+
|
| 170 |
+
<table><tr><td>Model</td><td>Reported Error rate</td></tr><tr><td>BoW (bnc) (Maas et al.,2011)</td><td>12.20%</td></tr><tr><td>BoW (b△ tc) (Maas et al.,2011)</td><td>11.77%</td></tr><tr><td>LDA (Maas et al.,2011)</td><td>32.58%</td></tr><tr><td>Full + BoW (Maas et al.,2011)</td><td>11.67%</td></tr><tr><td>Full + Unlabelled + BoW (Maas et al.,2011)</td><td>11.11%</td></tr><tr><td>WRRBM (Dahl et al., 2012)</td><td>12.58%</td></tr><tr><td>WRRBM+ BoW (bnc) (Dahl et al.,2012)</td><td>10.77%</td></tr><tr><td>MNB-uni (Wang & Manning,2012)</td><td>16.45%</td></tr><tr><td>MNB-bi (Wang & Manning,2012)</td><td>13.41%</td></tr><tr><td>SVM-uni (Wang&Manning,2012)</td><td>13.05%</td></tr><tr><td>SVM-bi (Wang& Manning,2012)</td><td>10.84%</td></tr><tr><td>NBSVM-uni (Wang& Manning,2012)</td><td>11.71%</td></tr><tr><td>seq2-bown-CNN (Johnson & Zhang,2014)</td><td>14.70%</td></tr><tr><td>NBSVM-bi (Wang & Manning,2012)</td><td>8.78%</td></tr><tr><td>Paragraph Vector (Le & Mikolov,2014)</td><td>7.42%</td></tr><tr><td>SA-LSTM with joint training (Dai & Le,2015)</td><td>14.70%</td></tr><tr><td>LSTM with tuning and dropout (Dai&Le,2015)</td><td>13.50%</td></tr><tr><td>LSTM initialized with word2vec embeddings (Dai & Le,2015)</td><td>10.00%</td></tr><tr><td>SA-LSTM with linear gain (Dai&Le,2015)</td><td>9.17%</td></tr><tr><td>LM-TM (Dai& Le,2015)</td><td>7.64%</td></tr><tr><td>SA-LSTM (Dai& Le,2015)</td><td>7.24%</td></tr><tr><td>Virtual Adversarial (Miyato et al. 2016)</td><td>5.91%</td></tr><tr><td>TopicRNN</td><td>6.28%</td></tr></table>
|
| 171 |
+
|
| 172 |
+
# 4.2 SENTIMENT ANALYSIS
|
| 173 |
+
|
| 174 |
+
We performed sentiment analysis using TopicRNN as a feature extractor on the IMDB 100K dataset. This data consists of 100,000 movie reviews from the Internet Movie Database (IMDB) website. The data is split into $7 5 \%$ for training and $2 5 \%$ for testing. Among the 75K training reviews, 50K are unlabelled and 25K are labelled as carrying either a positive or a negative sentiment. All 25K test reviews are labelled. We trained TopicRNN on 65K random training reviews and used the remaining 10K reviews for validation. To learn a classifier, we passed the 25K labelled training reviews through the learned TopicRNN model. We then concatenated the output of the inference network and the last state of the RNN for each of these 25K reviews to compute the feature vectors. We then used these feature vectors to train a neural network with one hidden layer, 50 hidden units, and a sigmoid activation function to predict sentiment, exactly as done in Le and Mikolov (2014).
|
| 175 |
+
|
| 176 |
+
To train the TopicRNN model, we used a vocabulary of size 5,000 and mapped all other words to the unk token. We took out 439 stop words to create the input of the inference network. We used 500 units and 2 layers for the inference network, and used 2 layers and 300 units per-layer for the
|
| 177 |
+
|
| 178 |
+

|
| 179 |
+
Figure 3: Clusters of a sample of 10000 movie reviews from the IMDB 100K dataset using TopicRNN as feature extractor. We used K-Means to cluster the feature vectors. We then used PCA to reduce the dimension to two for visualization purposes. red is a negative review and green is a positive review.
|
| 180 |
+
|
| 181 |
+
RNN. We chose a step size of 5 and defined 200 topics. We did not use any regularization such as dropout. We trained the model for 13 epochs and used the validation set to tune the hyperparameters of the model and track perplexity for early stopping. This experiment took close to 78 hours on a MacBook pro quad-core with 16GHz of RAM. See Appendix A.4 for the visualization of some of the topics learned from this data.
|
| 182 |
+
|
| 183 |
+
Table 4 summarizes sentiment classification results from TopicRNN and other methods. Our error rate is $6 . 2 8 \%$ .8 This is close to the state-of-the-art $5 . 9 1 \%$ (Miyato et al., 2016) despite that we do not use the labels and adversarial training in the feature extraction stage. Our approach is most similar to Le and Mikolov (2014), where the features were extracted in a unsupervised way and then a one-layer neural net was trained for classification.
|
| 184 |
+
|
| 185 |
+
Figure 3 shows the ability of TopicRNN to cluster documents using the feature vectors as created during the sentiment analysis task. Reviews with positive sentiment are coloured in green while reviews carrying negative sentiment are shown in red. This shows that TopicRNN can be used as an unsupervised feature extractor for downstream applications. Table 3 shows generated text from models learned on the PTB and IMDB datasets. See Appendix A.3 for more examples. The overall generated text from IMDB encodes a negative sentiment.
|
| 186 |
+
|
| 187 |
+
# 5 DISCUSSION AND FUTURE WORK
|
| 188 |
+
|
| 189 |
+
In this paper we introduced TopicRNN, a RNN-based language model that combines RNNs and latent topics to capture local (syntactic) and global (semantic) dependencies between words. The global dependencies as captured by the latent topics serve as contextual bias to an RNN-based language model. This contextual information is learned jointly with the RNN parameters by maximizing the evidence lower bound of variational inference. TopicRNN yields competitive per-word perplexity on the Penn Treebank dataset compared to previous contextual RNN models. We have reported a competitive classification error rate for sentiment analysis on the IMDB 100K dataset. We have also illustrated the capacity of TopicRNN to generate sensible topics and text.
|
| 190 |
+
|
| 191 |
+
In future work, we will study the performance of TopicRNN when stop words are dynamically discovered during training. We will also extend TopicRNN to other applications where capturing context is important such as in dialog modeling. If successful, this will allow us to have a model that performs well across different natural language processing applications.
|
| 192 |
+
|
| 193 |
+
# REFERENCES
|
| 194 |
+
|
| 195 |
+
Y. Bengio, P. Simard, and P. Frasconi. Learning long-term dependencies with gradient descent is difficult. IEEE transactions on neural networks, 5(2):157–166, 1994.
|
| 196 |
+
Y. Bengio, R. Ducharme, P. Vincent, and C. Jauvin. A neural probabilistic language model. journal of machine learning research, 3(Feb):1137–1155, 2003.
|
| 197 |
+
D. Blei and J. Lafferty. Correlated topic models. Advances in neural information processing systems, 18:147, 2006.
|
| 198 |
+
D. M. Blei and J. D. Lafferty. Topic models. Text mining: classification, clustering, and applications, 10(71):34, 2009.
|
| 199 |
+
D. M. Blei, A. Y. Ng, and M. I. Jordan. Latent dirichlet allocation. Journal of machine Learning research, 3(Jan):993–1022, 2003.
|
| 200 |
+
C. Chelba and F. Jelinek. Structured language modeling. Computer Speech & Language, 14(4): 283–332, 2000.
|
| 201 |
+
C. Chelba, T. Mikolov, M. Schuster, Q. Ge, T. Brants, P. Koehn, and T. Robinson. One billion word benchmark for measuring progress in statistical language modeling. arXiv preprint arXiv:1312.3005, 2013.
|
| 202 |
+
K. Cho, B. Van Merriënboer, C. Gulcehre, D. Bahdanau, F. Bougares, H. Schwenk, and Y. Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. arXiv preprint arXiv:1406.1078, 2014.
|
| 203 |
+
A. M. Dai and Q. V. Le. Semi-supervised sequence learning. In Advances in Neural Information Processing Systems, pages 3079–3087, 2015.
|
| 204 |
+
J. Gao, J.-Y. Nie, G. Wu, and G. Cao. Dependence language model for information retrieval. In Proceedings of the 27th annual international ACM SIGIR conference on Research and development in information retrieval, pages 170–177. ACM, 2004.
|
| 205 |
+
S. Ghosh, O. Vinyals, B. Strope, S. Roy, T. Dean, and L. Heck. Contextual lstm (clstm) models for large scale nlp tasks. arXiv preprint arXiv:1602.06291, 2016.
|
| 206 |
+
S. Hochreiter and J. Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.
|
| 207 |
+
Y. Ji, T. Cohn, L. Kong, C. Dyer, and J. Eisenstein. Document context language models. arXiv preprint arXiv:1511.03962, 2015.
|
| 208 |
+
Y. Ji, G. Haffari, and J. Eisenstein. A latent variable recurrent neural network for discourse relation language models. arXiv preprint arXiv:1603.01913, 2016.
|
| 209 |
+
M. I. Jordan, Z. Ghahramani, T. S. Jaakkola, and L. K. Saul. An introduction to variational methods for graphical models. Machine learning, 37(2):183–233, 1999.
|
| 210 |
+
R. Jozefowicz, O. Vinyals, M. Schuster, N. Shazeer, and Y. Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016.
|
| 211 |
+
D. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 212 |
+
D. P. Kingma and M. Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
|
| 213 |
+
Q. V. Le and T. Mikolov. Distributed representations of sentences and documents. In ICML, volume 14, pages 1188–1196, 2014.
|
| 214 |
+
R. Lin, S. Liu, M. Yang, M. Li, M. Zhou, and S. Li. Hierarchical recurrent neural network for document modeling. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 899–907, 2015.
|
| 215 |
+
A. L. Maas, R. E. Daly, P. T. Pham, D. Huang, A. Y. Ng, and C. Potts. Learning word vectors for sentiment analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies-Volume 1, pages 142–150. Association for Computational Linguistics, 2011.
|
| 216 |
+
M. P. Marcus, M. A. Marcinkiewicz, and B. Santorini. Building a large annotated corpus of english: The penn treebank. Computational linguistics, 19(2):313–330, 1993.
|
| 217 |
+
Y. Miao, L. Yu, and P. Blunsom. Neural variational inference for text processing. arXiv preprint arXiv:1511.06038, 2015.
|
| 218 |
+
T. Mikolov and G. Zweig. Context dependent recurrent neural network language model. In SLT, pages 234–239, 2012.
|
| 219 |
+
T. Mikolov, M. Karafiát, L. Burget, J. Cernocky, and S. Khudanpur. Recurrent neural network based \` language model. In Interspeech, volume 2, page 3, 2010.
|
| 220 |
+
T. Mikolov, S. Kombrink, L. Burget, J. Cernock ˇ y, and S. Khudanpur. Extensions of recurrent neural \` network language model. In 2011 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5528–5531. IEEE, 2011.
|
| 221 |
+
T. Mikolov, A. Joulin, S. Chopra, M. Mathieu, and M. Ranzato. Learning longer memory in recurrent neural networks. arXiv preprint arXiv:1412.7753, 2014.
|
| 222 |
+
D. Mimno, H. M. Wallach, E. Talley, M. Leenders, and A. McCallum. Optimizing semantic coherence in topic models. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, pages 262–272. Association for Computational Linguistics, 2011.
|
| 223 |
+
T. Miyato, A. M. Dai, and I. Goodfellow. Adversarial training methods for semi-supervised text classification. stat, 1050:7, 2016.
|
| 224 |
+
R. Pascanu, T. Mikolov, and Y. Bengio. On the difficulty of training recurrent neural networks. ICML (3), 28:1310–1318, 2013.
|
| 225 |
+
D. J. Rezende, S. Mohamed, and D. Wierstra. Stochastic backpropagation and approximate inference in deep generative models. arXiv preprint arXiv:1401.4082, 2014.
|
| 226 |
+
N. Srivastava, G. E. Hinton, A. Krizhevsky, I. Sutskever, and R. Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1): 1929–1958, 2014.
|
| 227 |
+
I. Sutskever. Training recurrent neural networks. PhD thesis, University of Toronto, 2013.
|
| 228 |
+
H. M. Wallach. Topic modeling: beyond bag-of-words. In Proceedings of the 23rd international conference on Machine learning, pages 977–984. ACM, 2006.
|
| 229 |
+
H. M. Wallach, D. M. Mimno, and A. McCallum. Rethinking lda: Why priors matter. In Advances in neural information processing systems, pages 1973–1981, 2009.
|
| 230 |
+
|
| 231 |
+
# A APPENDIX
|
| 232 |
+
|
| 233 |
+
# A.1 DIMENSION OF THE PARAMETERS OF THE MODEL:
|
| 234 |
+
|
| 235 |
+
We use the following notation: C is the vocabulary size (including stop words), H is the number of hidden units of the RNN, K is the number of topics, and E is the dimension of the inference network hidden layer. Table 5 gives the dimension of each of the parameters of the TopicRNN model (ignoring the biases).
|
| 236 |
+
|
| 237 |
+
Table 5: Dimensions of the parameters of the model.
|
| 238 |
+
|
| 239 |
+
$$
|
| 240 |
+
\begin{array} { r } \frac { \left| \begin{array} { l } { \mathbf { U } } \\ { \mathrm { d i m e n s i o n } } \end{array} \right| \begin{array} { l } { \mathbf { U } } \\ { \mathrm { C \cdot X H ~ \left| ~ H ~ \right| ~ H ~ x ~ H ~ \left| ~ H ~ x ~ C ~ \right| ~ K ~ x ~ C ~ \left| ~ \begin{array} { l } { \mathbf { B } } \\ { \mathrm { K ~ x ~ C ~ } } \end{array} \right| ~ H ~ \left| ~ W _ { 1 } ~ \right| ~ W _ { 2 } } } \end{array} } \end{array}
|
| 241 |
+
$$
|
| 242 |
+
|
| 243 |
+
# A.2 DOCUMENTS USED TO INFER THE DISTRIBUTIONS ON FIGURE 2
|
| 244 |
+
|
| 245 |
+
Figure on the left: ’the’, ’market’, ’has’, ’grown’, ’relatively’, ’quiet’, ’since’, ’the’, ’china’, ’crisis’, ’but’, ’if ’, ’the’, ’japanese’, ’return’, ’in’, ’force’, ’their’, ’financial’, ’might’, ’could’, ’compensate’, ’to’, ’some’, ’extent’, ’for’, ’local’, ’investors’, "’", ’<unk>’, ’commitment’, ’another’, ’and’, ’critical’, ’factor’, ’is’, ’the’, ’u.s.’, ’hong’, ’kong’, "’s", ’biggest’, ’export’, ’market’, ’even’, ’before’, ’the’, ’china’, ’crisis’, ’weak’, ’u.s.’, ’demand’, ’was’, ’slowing’, ’local’, ’economic’, ’growth’, ’<unk>’, ’strong’, ’consumer’, ’spending’, ’in’, ’the’, ’u.s.’, ’two’, ’years’, ’ago’, ’helped’, ’<unk>’, ’the’, ’local’, ’economy’, ’at’, ’more’, ’than’, ’twice’, ’its’, ’current’, ’rate’, ’indeed’, ’a’, ’few’, ’economists’, ’maintain’, ’that’, ’global’, ’forces’, ’will’, ’continue’, ’to’, ’govern’, ’hong’, ’kong’, "’s", ’economic’, ’<unk>’, ’once’, ’external’, ’conditions’, ’such’, ’as’, ’u.s.’, ’demand’, ’swing’, ’in’, ’the’, ’territory’, "’s", ’favor’, ’they’, ’argue’, ’local’, ’businessmen’, ’will’, ’probably’, ’overcome’, ’their’, ’N’, ’worries’, ’and’, ’continue’, ’doing’, ’business’, ’as’, ’usual’, ’but’, ’economic’, ’arguments’, ’however’, ’solid’, ’wo’, "n’t", ’necessarily’, ’<unk>’, ’hong’, ’kong’, "’s", ’N’, ’million’, ’people’, ’many’, ’are’, ’refugees’, ’having’, ’fled’, ’china’, "’s", ’<unk>’, ’cycles’, ’of ’, ’political’, ’repression’, ’and’, ’poverty’, ’since’, ’the’, ’communist’, ’party’, ’took’, ’power’, ’in’, ’N’, ’as’, ’a’, ’result’, ’many’, ’of ’, ’those’, ’now’, ’planning’, ’to’, ’leave’, ’hong’, ’kong’, ’ca’, "n’t", ’easily’, ’be’, ’<unk>’, ’by’, ’<unk>’, ’improvements’, ’in’, ’the’, ’colony’, "’s", ’political’, ’and’, ’economic’, ’climate’
|
| 246 |
+
|
| 247 |
+
Figure on the middle: ’it’, ’said’, ’the’, ’man’, ’whom’, ’it’, ’did’, ’not’, ’name’, ’had’, ’been’, ’found’, ’to’, ’have’, ’the’, ’disease’, ’after’, ’hospital’, ’tests’, ’once’, ’the’, ’disease’, ’was’, ’confirmed’, ’all’, ’the’, ’man’, "’s", ’associates’, ’and’, ’family’, ’were’, ’tested’, ’but’, ’none’, ’have’, ’so’, ’far’, ’been’, ’found’, ’to’, ’have’, ’aids’, ’the’, ’newspaper’, ’said’, ’the’, ’man’, ’had’, ’for’, ’a’, ’long’, ’time’, ’had’, ’a’, ’chaotic’, ’sex’, ’life’, ’including’, ’relations’, ’with’, ’foreign’, ’men’, ’the’, ’newspaper’, ’said’, ’the’, ’polish’, ’government’, ’increased’, ’home’, ’electricity’, ’charges’, ’by’, ’N’, ’N’, ’and’, ’doubled’, ’gas’, ’prices’, ’the’, ’official’, ’news’, ’agency’, ’<unk>’, ’said’, ’the’, ’increases’, ’were’, ’intended’, ’to’, ’bring’, ’<unk>’, ’low’, ’energy’, ’charges’, ’into’, ’line’, ’with’, ’production’, ’costs’, ’and’, ’compensate’, ’for’, ’a’, ’rise’, ’in’, ’coal’, ’prices’, ’in’, ’<unk>’, ’news’, ’south’, ’korea’, ’in’, ’establishing’, ’diplomatic’, ’ties’, ’with’, ’poland’, ’yesterday’, ’announced’, ’\$’, ’N’, ’million’, ’in’, ’loans’, ’to’, ’the’, ’financially’, ’strapped’, ’warsaw’, ’government’, ’in’, ’a’, ’victory’, ’for’, ’environmentalists’, ’hungary’, "’s", ’parliament’, ’terminated’, ’a’, ’multibillion-dollar’, ’river’, ’<unk>’, ’dam’, ’being’, ’built’, ’by’, ’<unk>’, ’firms’, ’the’, ’<unk>’, ’dam’, ’was’, ’designed’, ’to’, ’be’, ’<unk>’, ’with’, ’another’, ’dam’, ’now’, ’nearly’, ’complete’, ’N’, ’miles’, ’<unk>’, ’in’, ’czechoslovakia’, ’in’, ’ending’, ’hungary’, "’s", ’part’, ’of ’, ’the’, ’project’, ’parliament’, ’authorized’, ’prime’, ’minister’, ’<unk>’, ’<unk>’, ’to’, ’modify’, ’a’, ’N’, ’agreement’, ’with’, ’czechoslovakia’, ’which’, ’still’, ’wants’, ’the’, ’dam’, ’to’, ’be’, ’built’, ’mr.’, ’<unk>’, ’said’, ’in’, ’parliament’, ’that’, ’czechoslovakia’, ’and’, ’hungary’, ’would’, ’suffer’, ’environmental’, ’damage’, ’if ’, ’the’, ’<unk>’, ’<unk>’, ’were’, ’built’, ’as’, ’planned’
|
| 248 |
+
|
| 249 |
+
Figure on the right: ’in’, ’hartford’, ’conn.’, ’the’, ’charter’, ’oak’, ’bridge’, ’will’, ’soon’, ’be’, ’replaced’, ’the’, ’<unk>’, ’<unk>’, ’from’, ’its’, ’<unk>’, ’<unk>’, ’to’, ’a’, ’park’, ’<unk>’, ’are’, ’possible’, ’citizens’, ’in’, ’peninsula’, ’ohio’, ’upset’, ’over’, ’changes’, ’to’, ’a’, ’bridge’, ’negotiated’, ’a’, ’deal’, ’the’, ’bottom’, ’half ’, ’of ’, ’the’, ’<unk>’, ’will’, ’be’, ’type’, ’f ’, ’while’, ’the’, ’top’, ’half ’, ’will’, ’have’, ’the’, ’old’, ’bridge’, "’s", ’<unk>’, ’pattern’, ’similarly’, ’highway’, ’engineers’, ’agreed’, ’to’, ’keep’, ’the’, ’old’, ’<unk>’, ’on’, ’the’, ’key’, ’bridge’, ’in’, ’washington’, ’d.c.’, ’as’, ’long’, ’as’, ’they’, ’could’, ’install’, ’a’, ’crash’, ’barrier’, ’between’, ’the’, ’sidewalk’, ’and’, ’the’, ’road’, ’<unk>’, ’<unk>’, ’drink’, ’carrier’, ’competes’, ’with’, ’<unk>’, ’<unk>’, ’<unk>’, ’just’, ’got’, ’easier’, ’or’, ’so’, ’claims’, ’<unk>’, ’corp.’, ’the’, ’maker’, ’of ’, ’the’, ’<unk>’, ’the’, ’chicago’, ’company’, "’s", ’beverage’, ’carrier’, ’meant’, ’to’, ’replace’, ’<unk>’, ’<unk>’, ’at’, ’<unk>’, ’stands’, ’and’, ’fast-food’, ’outlets’, ’resembles’, ’the’, ’plastic’, ’<unk>’, ’used’, ’on’, ’<unk>’, ’of ’, ’beer’, ’only’, ’the’, ’<unk>’, ’hang’, ’from’, ’a’, ’<unk>’, ’of ’, ’<unk>’, ’the’, ’new’, ’carrier’, ’can’, ’<unk>’, ’as’, ’many’, ’as’, ’four’, ’<unk>’, ’at’, ’once’, ’inventor’, ’<unk>’, ’marvin’, ’says’, ’his’, ’design’, ’virtually’, ’<unk>’, ’<unk>’
|
| 250 |
+
|
| 251 |
+
# A.3 MORE GENERATED TEXT FROM THE MODEL:
|
| 252 |
+
|
| 253 |
+
We illustrate below some generated text resulting from training TopicRNN on the PTB dataset. Here we used 50 neurons and 100 topics:
|
| 254 |
+
|
| 255 |
+
Text1: but the refcorp bond fund might have been unk and unk of the point rate eos house in national unk wall restraint in the property pension fund sold willing to zenith was guaranteed by $\$ 8$ N million at short-term rates maturities around unk products eos deposit posted yields slightly
|
| 256 |
+
|
| 257 |
+
Text2: it had happened by the treasury ’s clinical fund month were under national disappear institutions but secretary nicholas instruments succeed eos and investors age far compound average new york stock exchange bonds typically sold $\$ 1$ shares in the N but paying yields further an average rate of long-term funds
|
| 258 |
+
|
| 259 |
+
We illustrate below some generated text resulting from training TopicRNN on the IMDB dataset. The settings are the same as for the sentiment analysis experiment:
|
| 260 |
+
|
| 261 |
+
the film ’s greatest unk unk and it will likely very nice movies to go to unk why various david proves eos the story were always well scary friend high can be a very strange unk unk is in love with it lacks even perfect for unk for some of the worst movies come on a unk gave a rock unk eos whatever let ’s possible eos that kyle can ’t different reasons about the unk and was not what you ’re not a fan of unk unk us rock which unk still in unk ’s music unk one as
|
| 262 |
+
|
| 263 |
+
# A.4 TOPICS FROM IMDB:
|
| 264 |
+
|
| 265 |
+
Below we show some topics resulting from the sentiment analysis on the IMDB dataset. The total number of topics is 200. Note here all the topics turn around movies which is expected since all reviews are about movies.
|
| 266 |
+
|
| 267 |
+
Table 6: Some Topics from the TopicRNN Model on the IMDB Data.
|
| 268 |
+
|
| 269 |
+
<table><tr><td>pitt cameron vicious francisco los revolution refuses cheese</td><td>tarantino dramas cards unbearable catches nonsensical cringe lynch</td><td>producing popcorn practice ninja cruise intimate costs alongside</td><td>ken opera carrey kong hills useless lie repeated</td><td>hudson dragged robinson flight awake rolled easier kurosawa</td><td>campbell africa circumstances burton kubrick friday expression struck</td><td>campbell spots dollar cage freeman murphy 2002 scorcese</td></tr></table>
|
parse/train/rJbbOLcex/rJbbOLcex_content_list.json
ADDED
|
@@ -0,0 +1,1233 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Adji B. Dieng ∗ Columbia University abd2141@columbia.edu ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
170,
|
| 20 |
+
382,
|
| 21 |
+
212
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Chong Wang \nDeep Learning Technology Center Microsoft Research \nchowang@microsoft.com \nJianfeng Gao \nDeep Learning Technology Center \nMicrosoft Research \njfgao@microsoft.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
524,
|
| 30 |
+
170,
|
| 31 |
+
751,
|
| 32 |
+
226
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "",
|
| 39 |
+
"bbox": [
|
| 40 |
+
184,
|
| 41 |
+
247,
|
| 42 |
+
411,
|
| 43 |
+
303
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "John Paisley Columbia University jpaisley@columbia.edu ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
521,
|
| 52 |
+
247,
|
| 53 |
+
728,
|
| 54 |
+
290
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "ABSTRACT ",
|
| 61 |
+
"text_level": 1,
|
| 62 |
+
"bbox": [
|
| 63 |
+
454,
|
| 64 |
+
340,
|
| 65 |
+
544,
|
| 66 |
+
354
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "In this paper, we propose TopicRNN, a recurrent neural network (RNN)-based language model designed to directly capture the global semantic meaning relating words in a document via latent topics. Because of their sequential nature, RNNs are good at capturing the local structure of a word sequence – both semantic and syntactic – but might face difficulty remembering long-range dependencies. Intuitively, these long-range dependencies are of semantic nature. In contrast, latent topic models are able to capture the global semantic structure of a document but do not account for word ordering. The proposed TopicRNN model integrates the merits of RNNs and latent topic models: it captures local (syntactic) dependencies using an RNN and global (semantic) dependencies using latent topics. Unlike previous work on contextual RNN language modeling, our model is learned endto-end. Empirical results on word prediction show that TopicRNN outperforms existing contextual RNN baselines. In addition, TopicRNN can be used as an unsupervised feature extractor for documents. We do this for sentiment analysis on the IMDB movie review dataset and report an error rate of $6 . 2 8 \\%$ . This is comparable to the state-of-the-art $5 . 9 1 \\%$ resulting from a semi-supervised approach. Finally, TopicRNN also yields sensible topics, making it a useful alternative to document models such as latent Dirichlet allocation. ",
|
| 73 |
+
"bbox": [
|
| 74 |
+
233,
|
| 75 |
+
372,
|
| 76 |
+
764,
|
| 77 |
+
621
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "1 INTRODUCTION ",
|
| 84 |
+
"text_level": 1,
|
| 85 |
+
"bbox": [
|
| 86 |
+
176,
|
| 87 |
+
648,
|
| 88 |
+
364,
|
| 89 |
+
666
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "When reading a document, short or long, humans have a mechanism that somehow allows them to remember the gist of what they have read so far. Consider the following example: ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
176,
|
| 98 |
+
683,
|
| 99 |
+
821,
|
| 100 |
+
710
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "“The U.S.presidential race isn’t only drawing attention and controversy in the United States – it’s being closely watched across the globe. But what does the rest of the world think about a campaign that has already thrown up one surprise after another? CNN asked 10 journalists for their take on the race so far, and what their country might be hoping for in America’s next — ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
718,
|
| 110 |
+
825,
|
| 111 |
+
773
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "The missing word in the text above is easily predicted by any human to be either President or Commander in Chief or their synonyms. There have been various language models – from simple ngrams to the most recent RNN-based language models – that aim to solve this problem of predicting correctly the subsequent word in an observed sequence of words. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
780,
|
| 121 |
+
823,
|
| 122 |
+
835
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "A good language model should capture at least two important properties of natural language. The first one is correct syntax. In order to do prediction that enjoys this property, we often only need to consider a few preceding words. Therefore, correct syntax is more of a local property. Word order matters in this case. The second property is the semantic coherence of the prediction. To achieve this, we often need to consider many preceding words to understand the global semantic meaning of the sentence or document. The ordering of the words usually matters much less in this case. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
843,
|
| 132 |
+
823,
|
| 133 |
+
900
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "",
|
| 140 |
+
"bbox": [
|
| 141 |
+
171,
|
| 142 |
+
103,
|
| 143 |
+
823,
|
| 144 |
+
132
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "Because they only consider a fixed-size context window of preceding words, traditional $n$ -gram and neural probabilistic language models (Bengio et al., 2003) have difficulties in capturing global semantic information. To overcome this, RNN-based language models (Mikolov et al., 2010; 2011) use hidden states to “remember” the history of a word sequence. However, none of these approaches explicitly model the two main properties of language mentioned above, correct syntax and semantic coherence. Previous work by Chelba and Jelinek (2000) and Gao et al. (2004) exploit syntactic or semantic parsers to capture long-range dependencies in language. ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
174,
|
| 153 |
+
138,
|
| 154 |
+
823,
|
| 155 |
+
236
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 1
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "In this paper, we propose TopicRNN, a RNN-based language model that is designed to directly capture long-range semantic dependencies via latent topics. These topics provide context to the RNN. Contextual RNNs have received a lot of attention (Mikolov and Zweig, 2012; Mikolov et al., 2014; Ji et al., 2015; Lin et al., 2015; Ji et al., 2016; Ghosh et al., 2016). However, the models closest to ours are the contextual RNN model proposed by Mikolov and Zweig (2012) and its most recent extension to the long-short term memory (LSTM) architecture (Ghosh et al., 2016). These models use pre-trained topic model features as an additional input to the hidden states and/or the output of the RNN. In contrast, TopicRNN does not require pre-trained topic model features and can be learned in an end-to-end fashion. We introduce an automatic way for handling stop words that topic models usually have difficulty dealing with. Under a comparable model size set up, TopicRNN achieves better perplexity scores than the contextual RNN model of Mikolov and Zweig (2012) on the Penn TreeBank dataset 1. Moreover, TopicRNN can be used as an unsupervised feature extractor for downstream applications. For example, we derive document features of the IMDB movie review dataset using TopicRNN for sentiment classification. We reported an error rate of $6 . 2 8 \\%$ . This is close to the state-of-the-art $5 . 9 1 \\%$ (Miyato et al., 2016) despite that we do not use the labels and adversarial training in the feature extraction stage. ",
|
| 162 |
+
"bbox": [
|
| 163 |
+
174,
|
| 164 |
+
243,
|
| 165 |
+
825,
|
| 166 |
+
465
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 1
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "text",
|
| 172 |
+
"text": "The remainder of the paper is organized as follows: Section 2 provides background on RNN-based language models and probabilistic topic models. Section 3 describes the TopicRNN network architecture, its generative process and how to perform inference for it. Section 4 presents per-word perplexity results on the Penn TreeBank dataset and the classification error rate on the IMDB 100K dataset. Finally, we conclude and provide future research directions in Section 5. ",
|
| 173 |
+
"bbox": [
|
| 174 |
+
174,
|
| 175 |
+
472,
|
| 176 |
+
823,
|
| 177 |
+
541
|
| 178 |
+
],
|
| 179 |
+
"page_idx": 1
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "text",
|
| 183 |
+
"text": "2 BACKGROUND ",
|
| 184 |
+
"text_level": 1,
|
| 185 |
+
"bbox": [
|
| 186 |
+
176,
|
| 187 |
+
568,
|
| 188 |
+
351,
|
| 189 |
+
584
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "We present the background necessary for building the TopicRNN model. We first review RNN-based language modeling, followed by a discussion on the construction of latent topic models. ",
|
| 196 |
+
"bbox": [
|
| 197 |
+
174,
|
| 198 |
+
603,
|
| 199 |
+
823,
|
| 200 |
+
632
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 1
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "2.1 RECURRENT NEURAL NETWORK-BASED LANGUAGE MODELS",
|
| 207 |
+
"text_level": 1,
|
| 208 |
+
"bbox": [
|
| 209 |
+
174,
|
| 210 |
+
654,
|
| 211 |
+
647,
|
| 212 |
+
669
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 1
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "text",
|
| 218 |
+
"text": "Language modeling is fundamental to many applications. Examples include speech recognition and machine translation. A language model is a probability distribution over a sequence of words in a predefined vocabulary. More formally, let $V$ be a vocabulary set and $y _ { 1 } , . . . , y _ { T }$ a sequence of $T$ words with each $y _ { t } \\in V$ . A language model measures the likelihood of a sequence through a joint probability distribution, ",
|
| 219 |
+
"bbox": [
|
| 220 |
+
174,
|
| 221 |
+
681,
|
| 222 |
+
825,
|
| 223 |
+
753
|
| 224 |
+
],
|
| 225 |
+
"page_idx": 1
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"type": "equation",
|
| 229 |
+
"img_path": "images/bb105d729494a65bc20c2a1abc0e6ced6535856ebbc2b8eb770c089325930a6d.jpg",
|
| 230 |
+
"text": "$$\np ( y _ { 1 } , . . . , y _ { T } ) = p ( y _ { 1 } ) \\prod _ { t = 2 } ^ { T } p ( y _ { t } | y _ { 1 : t - 1 } ) .\n$$",
|
| 231 |
+
"text_format": "latex",
|
| 232 |
+
"bbox": [
|
| 233 |
+
370,
|
| 234 |
+
758,
|
| 235 |
+
627,
|
| 236 |
+
801
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 1
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "text",
|
| 242 |
+
"text": "Traditional $n$ -gram and feed-forward neural network language models (Bengio et al., 2003) typically make Markov assumptions about the sequential dependencies between words, where the chain rule shown above limits conditioning to a fixed-size context window. ",
|
| 243 |
+
"bbox": [
|
| 244 |
+
174,
|
| 245 |
+
811,
|
| 246 |
+
825,
|
| 247 |
+
854
|
| 248 |
+
],
|
| 249 |
+
"page_idx": 1
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"type": "text",
|
| 253 |
+
"text": "RNN-based language models (Mikolov et al., 2011) sidestep this Markov assumption by defining the conditional probability of each word $y _ { t }$ given all the previous words $y _ { 1 : t - 1 }$ through a hidden ",
|
| 254 |
+
"bbox": [
|
| 255 |
+
174,
|
| 256 |
+
861,
|
| 257 |
+
825,
|
| 258 |
+
890
|
| 259 |
+
],
|
| 260 |
+
"page_idx": 1
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"type": "text",
|
| 264 |
+
"text": "state $h _ { t }$ (typically via a softmax function): ",
|
| 265 |
+
"bbox": [
|
| 266 |
+
176,
|
| 267 |
+
103,
|
| 268 |
+
450,
|
| 269 |
+
118
|
| 270 |
+
],
|
| 271 |
+
"page_idx": 2
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"type": "equation",
|
| 275 |
+
"img_path": "images/5f528c70bcc842e4e47a5e9712130c83a249fe8ff140ba7526fda432d1202d9a.jpg",
|
| 276 |
+
"text": "$$\n\\begin{array} { r } { p ( y _ { t } | y _ { 1 : t - 1 } ) \\triangleq p ( y _ { t } | h _ { t } ) , \\quad } \\\\ { h _ { t } = f ( h _ { t - 1 } , x _ { t } ) . } \\end{array}\n$$",
|
| 277 |
+
"text_format": "latex",
|
| 278 |
+
"bbox": [
|
| 279 |
+
405,
|
| 280 |
+
127,
|
| 281 |
+
591,
|
| 282 |
+
166
|
| 283 |
+
],
|
| 284 |
+
"page_idx": 2
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"type": "text",
|
| 288 |
+
"text": "The function $f ( \\cdot )$ can either be a standard RNN cell or a more complex cell such as GRU (Cho et al., 2014) or LSTM (Hochreiter and Schmidhuber, 1997). The input and target words are related via the relation $x _ { t } \\equiv y _ { t - 1 }$ . These RNN-based language models have been quite successful (Mikolov et al., 2011; Chelba et al., 2013; Jozefowicz et al., 2016). ",
|
| 289 |
+
"bbox": [
|
| 290 |
+
173,
|
| 291 |
+
174,
|
| 292 |
+
825,
|
| 293 |
+
229
|
| 294 |
+
],
|
| 295 |
+
"page_idx": 2
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"type": "text",
|
| 299 |
+
"text": "While in principle RNN-based models can “remember” arbitrarily long histories if provided enough capacity, in practice such large-scale neural networks can easily encounter difficulties during optimization (Bengio et al., 1994; Pascanu et al., 2013; Sutskever, 2013) or overfitting issues (Srivastava et al., 2014). Finding better ways to model long-range dependencies in language modeling is therefore an open research challenge. As motivated in the introduction, much of the long-range dependency in language comes from semantic coherence, not from syntactic structure which is more of a local phenomenon. Therefore, models that can capture long-range semantic dependencies in language are complementary to RNNs. In the following section, we describe a family of such models called probabilistic topic models. ",
|
| 300 |
+
"bbox": [
|
| 301 |
+
173,
|
| 302 |
+
236,
|
| 303 |
+
825,
|
| 304 |
+
362
|
| 305 |
+
],
|
| 306 |
+
"page_idx": 2
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"type": "text",
|
| 310 |
+
"text": "2.2 PROBABILISTIC TOPIC MODELS ",
|
| 311 |
+
"text_level": 1,
|
| 312 |
+
"bbox": [
|
| 313 |
+
176,
|
| 314 |
+
382,
|
| 315 |
+
434,
|
| 316 |
+
396
|
| 317 |
+
],
|
| 318 |
+
"page_idx": 2
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "text",
|
| 322 |
+
"text": "Probabilistic topic models are a family of models that can be used to capture global semantic coherency (Blei and Lafferty, 2009). They provide a powerful tool for summarizing, organizing, and navigating document collections. One basic goal of such models is to find groups of words that tend to co-occur together in the same document. These groups of words are called topics and represent a probability distribution that puts most of its mass on this subset of the vocabulary. Documents are then represented as mixtures over these latent topics. Through posterior inference, the learned topics capture the semantic coherence of the words they cluster together (Mimno et al., 2011). ",
|
| 323 |
+
"bbox": [
|
| 324 |
+
174,
|
| 325 |
+
409,
|
| 326 |
+
825,
|
| 327 |
+
507
|
| 328 |
+
],
|
| 329 |
+
"page_idx": 2
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"type": "text",
|
| 333 |
+
"text": "The simplest topic model is latent Dirichlet allocation (LDA) (Blei et al., 2003). It assumes $K$ underlying topics $\\beta = \\{ \\beta _ { 1 } , \\dots , \\beta _ { K } \\}$ , each of which is a distribution over a fixed vocabulary. The generative process of LDA is as follows: ",
|
| 334 |
+
"bbox": [
|
| 335 |
+
176,
|
| 336 |
+
513,
|
| 337 |
+
823,
|
| 338 |
+
555
|
| 339 |
+
],
|
| 340 |
+
"page_idx": 2
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"type": "text",
|
| 344 |
+
"text": "First generate the $K$ topics, $\\beta _ { k } \\sim _ { i i d }$ Dirichlet $( \\tau )$ . Then for each document containing words $y _ { 1 : T }$ independently generate document-level variables and data: ",
|
| 345 |
+
"bbox": [
|
| 346 |
+
173,
|
| 347 |
+
556,
|
| 348 |
+
823,
|
| 349 |
+
583
|
| 350 |
+
],
|
| 351 |
+
"page_idx": 2
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"type": "text",
|
| 355 |
+
"text": "1. Draw a document-specific topic proportion vector $\\theta \\sim \\mathrm { D i r i c h l e t } ( \\alpha )$ ",
|
| 356 |
+
"bbox": [
|
| 357 |
+
210,
|
| 358 |
+
597,
|
| 359 |
+
681,
|
| 360 |
+
612
|
| 361 |
+
],
|
| 362 |
+
"page_idx": 2
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"type": "text",
|
| 366 |
+
"text": "2. For the tth word in the document, ",
|
| 367 |
+
"bbox": [
|
| 368 |
+
212,
|
| 369 |
+
619,
|
| 370 |
+
455,
|
| 371 |
+
633
|
| 372 |
+
],
|
| 373 |
+
"page_idx": 2
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"type": "text",
|
| 377 |
+
"text": "(a) Draw topic assignment $z _ { t } \\sim \\mathrm { D i s c r e t e } ( \\theta )$ . \n(b) Draw word $y _ { t } \\sim \\mathrm { D i s c r e t e } ( \\beta _ { z _ { t } } )$ . ",
|
| 378 |
+
"bbox": [
|
| 379 |
+
236,
|
| 380 |
+
640,
|
| 381 |
+
539,
|
| 382 |
+
674
|
| 383 |
+
],
|
| 384 |
+
"page_idx": 2
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"type": "text",
|
| 388 |
+
"text": "Marginalizing each $z _ { t }$ , we obtain the probability of $y _ { 1 : T }$ via a matrix factorization followed by an integration over the latent variable $\\theta$ , ",
|
| 389 |
+
"bbox": [
|
| 390 |
+
173,
|
| 391 |
+
685,
|
| 392 |
+
825,
|
| 393 |
+
714
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 2
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "equation",
|
| 399 |
+
"img_path": "images/711e0b913a800889a5f3146ad133afd8e1b85a8d8b267b49eb4f4cfd493b941e.jpg",
|
| 400 |
+
"text": "$$\np ( \\boldsymbol { y } _ { 1 : T } | \\beta ) = \\int p ( \\boldsymbol { \\theta } ) \\prod _ { t = 1 } ^ { T } \\sum _ { z _ { t } } p ( z _ { t } | \\boldsymbol { \\theta } ) p ( \\boldsymbol { y } _ { t } | \\boldsymbol { z } _ { t } , \\beta ) \\mathrm { d } \\boldsymbol { \\theta } = \\int p ( \\boldsymbol { \\theta } ) \\prod _ { t = 1 } ^ { T } ( \\beta \\boldsymbol { \\theta } ) _ { \\boldsymbol { y } _ { t } } \\mathrm { d } \\boldsymbol { \\theta } .\n$$",
|
| 401 |
+
"text_format": "latex",
|
| 402 |
+
"bbox": [
|
| 403 |
+
256,
|
| 404 |
+
723,
|
| 405 |
+
741,
|
| 406 |
+
768
|
| 407 |
+
],
|
| 408 |
+
"page_idx": 2
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"type": "text",
|
| 412 |
+
"text": "In LDA the prior distribution on the topic proportions is a Dirichlet distribution; it can be replaced by many other distributions. For example, the correlated topic model (Blei and Lafferty, 2006) uses a log-normal distribution. Most topic models are “bag of words” models in that word order is ignored. This makes it easier for topic models to capture global semantic information. However, this is also one of the reasons why topic models do not perform well on general-purpose language modeling applications such as word prediction. While bi-gram topic models have been proposed (Wallach, 2006), higher order models quickly become intractable. ",
|
| 413 |
+
"bbox": [
|
| 414 |
+
173,
|
| 415 |
+
776,
|
| 416 |
+
825,
|
| 417 |
+
875
|
| 418 |
+
],
|
| 419 |
+
"page_idx": 2
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"type": "text",
|
| 423 |
+
"text": "Another issue encountered by topic models is that they do not model stop words well. This is because stop words usually do not carry semantic meaning; their appearance is mainly to make the sentence more readable according to the grammar of the language. They also appear frequently in almost every document and can co-occur with almost any word2. In practice, these stop words are chosen using tf-idf (Blei and Lafferty, 2009). ",
|
| 424 |
+
"bbox": [
|
| 425 |
+
176,
|
| 426 |
+
882,
|
| 427 |
+
823,
|
| 428 |
+
924
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 2
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "image",
|
| 434 |
+
"img_path": "images/066405b85921ee3b7abf10fee80b8ece9ba1fc67a6d4c963781ae3bbc1990f81.jpg",
|
| 435 |
+
"image_caption": [
|
| 436 |
+
"Figure 1: (a) The unrolled TopicRNN architecture: $x _ { 1 } , . . . , x _ { 6 }$ are words in the document, $h _ { t }$ is the state of the RNN at time step $t$ , $x _ { i } \\equiv y _ { i - 1 }$ , $l _ { 1 } , . . . , l _ { 6 }$ are stop word indicators, and $\\theta$ is the latent representation of the input document and is unshaded by convention. (b) The TopicRNN model architecture in its compact form: $l$ is a binary vector that indicates whether each word in the input document is a stop word or not. Here red indicates stop words and blue indicates content words. "
|
| 437 |
+
],
|
| 438 |
+
"image_footnote": [],
|
| 439 |
+
"bbox": [
|
| 440 |
+
178,
|
| 441 |
+
101,
|
| 442 |
+
828,
|
| 443 |
+
291
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 3
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"text": "",
|
| 450 |
+
"bbox": [
|
| 451 |
+
174,
|
| 452 |
+
400,
|
| 453 |
+
823,
|
| 454 |
+
429
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 3
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "3 THE TOPICRNN MODEL ",
|
| 461 |
+
"text_level": 1,
|
| 462 |
+
"bbox": [
|
| 463 |
+
176,
|
| 464 |
+
449,
|
| 465 |
+
410,
|
| 466 |
+
465
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 3
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "We next describe the proposed TopicRNN model. In TopicRNN, latent topic models are used to capture global semantic dependencies so that the RNN can focus its modeling capacity on the local dynamics of the sequences. With this joint modeling, we hope to achieve better overall performance on downstream applications. ",
|
| 473 |
+
"bbox": [
|
| 474 |
+
174,
|
| 475 |
+
479,
|
| 476 |
+
825,
|
| 477 |
+
536
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 3
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "text",
|
| 483 |
+
"text": "The model. TopicRNN is a generative model. For a document containing the words $y _ { 1 : T }$ ",
|
| 484 |
+
"bbox": [
|
| 485 |
+
169,
|
| 486 |
+
542,
|
| 487 |
+
764,
|
| 488 |
+
559
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 3
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "1. Draw a topic vector3 $\\theta \\sim N ( 0 , I )$ . ",
|
| 495 |
+
"bbox": [
|
| 496 |
+
214,
|
| 497 |
+
569,
|
| 498 |
+
459,
|
| 499 |
+
585
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 3
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "text",
|
| 505 |
+
"text": "2. Given word $y _ { 1 : t - 1 }$ , for the tth word $y _ { t }$ in the document, (a) Compute hidden state $h _ { t } = f _ { W } ( x _ { t } , h _ { t - 1 } )$ , where we let $x _ { t } \\triangleq y _ { t - 1 }$ . (b) Draw stop word indicator $l _ { t } \\sim \\mathrm { B e r n o u l l i } ( \\sigma ( \\Gamma ^ { \\top } h _ { t } ) )$ , with $\\sigma$ the sigmoid function. (c) Draw word $y _ { t } \\sim p ( y _ { t } | h _ { t } , \\theta , l _ { t } , B )$ , where ",
|
| 506 |
+
"bbox": [
|
| 507 |
+
212,
|
| 508 |
+
588,
|
| 509 |
+
598,
|
| 510 |
+
604
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 3
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "text",
|
| 516 |
+
"text": "",
|
| 517 |
+
"bbox": [
|
| 518 |
+
238,
|
| 519 |
+
609,
|
| 520 |
+
802,
|
| 521 |
+
659
|
| 522 |
+
],
|
| 523 |
+
"page_idx": 3
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"type": "equation",
|
| 527 |
+
"img_path": "images/00b36397011641c5d0cab6d7e1520546c081a0ac3c4670e5cfa56f2545c77bcf.jpg",
|
| 528 |
+
"text": "$$\np ( y _ { t } = i | h _ { t } , \\theta , l _ { t } , B ) \\propto \\exp \\left( v _ { i } ^ { \\top } h _ { t } + ( 1 - l _ { t } ) b _ { i } ^ { \\top } \\theta \\right) .\n$$",
|
| 529 |
+
"text_format": "latex",
|
| 530 |
+
"bbox": [
|
| 531 |
+
372,
|
| 532 |
+
664,
|
| 533 |
+
715,
|
| 534 |
+
684
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 3
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "text",
|
| 540 |
+
"text": "The stop word indicator $l _ { t }$ controls how the topic vector $\\theta$ affects the output. If $l _ { t } = 1$ (indicating $y _ { t }$ is a stop word), the topic vector $\\theta$ has no contribution to the output. Otherwise, we add a bias to favor those words that are more likely to appear when mixing with $\\theta$ , as measured by the dot product between $\\theta$ and the latent word vector $b _ { i }$ for the $i$ th vocabulary word. As we can see, the longrange semantic information captured by $\\theta$ directly affects the output through an additive procedure. Unlike Mikolov and Zweig (2012), the contextual information is not passed to the hidden layer of the RNN. The main reason behind our choice of using the topic vector as bias instead of passing it into the hidden states of the RNN is because it enables us to have a clear separation of the contributions of global semantics and those of local dynamics. The global semantics come from the topics which are meaningful when stop words are excluded. However these stop words are needed for the local dynamics of the language model. We hence achieve this separation of global vs local via a binary decision model for the stop words. It is unclear how to achieve this if we pass the topics to the hidden states of the RNN. This is because the hidden states of the RNN will account for all words (including stop words) whereas the topics exclude stop words. ",
|
| 541 |
+
"bbox": [
|
| 542 |
+
173,
|
| 543 |
+
694,
|
| 544 |
+
825,
|
| 545 |
+
861
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 3
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "text",
|
| 551 |
+
"text": "",
|
| 552 |
+
"bbox": [
|
| 553 |
+
169,
|
| 554 |
+
103,
|
| 555 |
+
823,
|
| 556 |
+
132
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 4
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "text",
|
| 562 |
+
"text": "We show the unrolled graphical representation of TopicRNN in Figure 1(a). We denote all model parameters as $\\Theta = \\{ \\Gamma , \\mathbf { \\bar { \\it V } } , \\mathbf { \\bar { \\it B } } , W , W _ { c } \\}$ (see Appendix A.1 for more details). Parameter $W _ { c }$ is for the inference network, which we will introduce below. The observations are the word sequences $y _ { 1 : T }$ and stop word indicators $l _ { 1 : T }$ .4 The log marginal likelihood of the sequence $y _ { 1 : T }$ is ",
|
| 563 |
+
"bbox": [
|
| 564 |
+
174,
|
| 565 |
+
138,
|
| 566 |
+
825,
|
| 567 |
+
195
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 4
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "equation",
|
| 573 |
+
"img_path": "images/59f607cdf74d7892aeadb55e6c1184f9997975e435c82181ab4a994f3a0941b1.jpg",
|
| 574 |
+
"text": "$$\n\\log p ( y _ { 1 : T } , l _ { 1 : T } | h _ { t } ) = \\log \\int p ( \\theta ) \\prod _ { t = 1 } ^ { T } p ( y _ { t } | h _ { t } , l _ { t } , \\theta ) p ( l _ { t } | h _ { t } ) \\mathrm { d } \\theta .\n$$",
|
| 575 |
+
"text_format": "latex",
|
| 576 |
+
"bbox": [
|
| 577 |
+
294,
|
| 578 |
+
196,
|
| 579 |
+
704,
|
| 580 |
+
239
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 4
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "Model inference. Direct optimization of Equation 2 is intractable so we use variational inference for approximating this marginal (Jordan et al., 1999). Let $q ( \\theta )$ be the variational distribution on the marginalized variable $\\theta$ . We construct the variational objective function, also called the evidence lower bound (ELBO), as follows: ",
|
| 587 |
+
"bbox": [
|
| 588 |
+
174,
|
| 589 |
+
248,
|
| 590 |
+
825,
|
| 591 |
+
304
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 4
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "equation",
|
| 597 |
+
"img_path": "images/ea181ae190e40daac2bfd289163bd6f3c651ffc6aadde302c7d83b142658b02c.jpg",
|
| 598 |
+
"text": "$$\n\\begin{array} { r l } { \\mathcal { L } ( y _ { 1 : T } , l _ { 1 : T } | q ( \\theta ) , \\Theta ) \\triangleq } & { \\mathbb { E } _ { q ( \\theta ) } \\left[ \\displaystyle \\sum _ { t = 1 } ^ { T } \\log p ( y _ { t } | h _ { t } , l _ { t } , \\theta ) + \\log p ( l _ { t } | h _ { t } ) + \\log p ( \\theta ) - \\log q ( \\theta ) \\right] } \\\\ & { \\leq \\log p ( y _ { 1 : T } , l _ { 1 : T } | h _ { t } , \\Theta ) . } \\end{array}\n$$",
|
| 599 |
+
"text_format": "latex",
|
| 600 |
+
"bbox": [
|
| 601 |
+
196,
|
| 602 |
+
306,
|
| 603 |
+
802,
|
| 604 |
+
369
|
| 605 |
+
],
|
| 606 |
+
"page_idx": 4
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"type": "text",
|
| 610 |
+
"text": "Following the proposed variational autoencoder technique, we choose the form of $q ( \\theta )$ to be an inference network using a feed-forward neural network (Kingma and Welling, 2013; Miao et al., 2015). Let $X _ { c } \\in \\mathcal { N } _ { + } ^ { | V _ { c } | }$ be the term-frequency representation of $y _ { 1 : T }$ excluding stop words (with $V _ { c }$ the vocabulary size without the stop words). The variational autoencoder inference network $q ( \\theta | X _ { c } , W _ { c } )$ with parameter $W _ { c }$ is a feed-forward neural network with ReLU activation units that projects $X _ { c }$ into a $K$ -dimensional latent space. Specifically, we have ",
|
| 611 |
+
"bbox": [
|
| 612 |
+
173,
|
| 613 |
+
369,
|
| 614 |
+
825,
|
| 615 |
+
457
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 4
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "equation",
|
| 621 |
+
"img_path": "images/0bc9353ede68de1e053b5b76acdb2e8c2300f1f1d2b7a5ff4f751e9799e7f731.jpg",
|
| 622 |
+
"text": "$$\n\\begin{array} { c } { { q ( \\theta | X _ { c } , W _ { c } ) = N ( \\theta ; \\mu ( X _ { c } ) , \\mathrm { d i a g } ( \\sigma ^ { 2 } ( X _ { c } ) ) ) , } } \\\\ { { \\mu ( X _ { c } ) = W _ { 1 } g ( X _ { c } ) + a _ { 1 } , } } \\\\ { { \\log \\sigma ( X _ { c } ) = W _ { 2 } g ( X _ { c } ) + a _ { 2 } , } } \\end{array}\n$$",
|
| 623 |
+
"text_format": "latex",
|
| 624 |
+
"bbox": [
|
| 625 |
+
349,
|
| 626 |
+
457,
|
| 627 |
+
645,
|
| 628 |
+
512
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 4
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "text",
|
| 634 |
+
"text": "where $g ( \\cdot )$ denotes the feed-forward neural network. The weight matrices $W _ { 1 }$ , $W _ { 2 }$ and biases $a _ { 1 }$ , $a _ { 2 }$ are shared across documents. Each document has its own $\\mu ( X _ { c } )$ and $\\sigma ( X _ { c } )$ resulting in a unique distribution $q ( \\theta | X _ { c } )$ for each document. The output of the inference network is a distribution on $\\theta$ , which we regard as the summarization of the semantic information, similar to the topic proportions in latent topic models. We show the role of the inference network in Figure 1(b). During training, the parameters of the inference network and the model are jointly learned and updated via truncated backpropagation through time using the Adam algorithm (Kingma and Ba, 2014). We use stochastic samples from $q ( \\theta | X _ { c } )$ and the reparameterization trick towards this end (Kingma and Welling, 2013; Rezende et al., 2014). ",
|
| 635 |
+
"bbox": [
|
| 636 |
+
173,
|
| 637 |
+
512,
|
| 638 |
+
826,
|
| 639 |
+
638
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 4
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "text",
|
| 645 |
+
"text": "Generating sequential text and computing perplexity. Suppose we are given a word sequence $y _ { 1 : t - 1 }$ , from which we have an initial estimation of $q ( \\theta | X _ { c } )$ . To generate the next word $y _ { t }$ , we compute the probability distribution of $y _ { t }$ given $y _ { 1 : t - 1 }$ in an online fashion. We choose $\\theta$ to be a point estimate $\\hat { \\theta }$ , the mean of its current distribution $q ( \\theta | X _ { c } )$ . Marginalizing over the stop word indicator $l _ { t }$ which is unknown prior to observing $y _ { t }$ , the approximate distribution of $y _ { t }$ is ",
|
| 646 |
+
"bbox": [
|
| 647 |
+
173,
|
| 648 |
+
645,
|
| 649 |
+
825,
|
| 650 |
+
718
|
| 651 |
+
],
|
| 652 |
+
"page_idx": 4
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"type": "equation",
|
| 656 |
+
"img_path": "images/3d169b4895cd163400c023b5a6bdcf6d5a9e41115d289e5fd2ef50384ef72437.jpg",
|
| 657 |
+
"text": "$$\np ( y _ { t } | y _ { 1 : t - 1 } ) \\approx \\sum _ { l _ { t } } p ( y _ { t } | h _ { t } , \\hat { \\theta } , l _ { t } ) p ( l _ { t } | h _ { t } ) .\n$$",
|
| 658 |
+
"text_format": "latex",
|
| 659 |
+
"bbox": [
|
| 660 |
+
361,
|
| 661 |
+
719,
|
| 662 |
+
635,
|
| 663 |
+
753
|
| 664 |
+
],
|
| 665 |
+
"page_idx": 4
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"type": "text",
|
| 669 |
+
"text": "The predicted word $y _ { t }$ is a sample from this predictive distribution. We update $q ( \\theta | X _ { c } )$ by including $y _ { t }$ to $X _ { c }$ if $y _ { t }$ is not a stop word. However, updating $q ( \\theta | X _ { c } )$ after each word prediction is expensive, so we use a sliding window as was done in Mikolov and Zweig (2012). To compute the perplexity, we use the approximate predictive distribution above. ",
|
| 670 |
+
"bbox": [
|
| 671 |
+
173,
|
| 672 |
+
756,
|
| 673 |
+
825,
|
| 674 |
+
813
|
| 675 |
+
],
|
| 676 |
+
"page_idx": 4
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"type": "text",
|
| 680 |
+
"text": "Model Complexity. TopicRNN has a complexity of $O ( H \\times H + H \\times ( C + K ) + W _ { c } )$ , where $H$ is the size of the hidden layer of the RNN, $C$ is the vocabulary size, $K$ is the dimension of the topic vector, and $W _ { c }$ is the number of parameters of the inference network. The contextual RNN of Mikolov and Zweig (2012) accounts for $O ( H \\times H + H \\times ( C + K ) )$ , not including the pre-training process, which might require more parameters than the additional $W _ { c }$ in our complexity. ",
|
| 681 |
+
"bbox": [
|
| 682 |
+
173,
|
| 683 |
+
818,
|
| 684 |
+
825,
|
| 685 |
+
890
|
| 686 |
+
],
|
| 687 |
+
"page_idx": 4
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "text",
|
| 691 |
+
"text": "4 EXPERIMENTS ",
|
| 692 |
+
"text_level": 1,
|
| 693 |
+
"bbox": [
|
| 694 |
+
176,
|
| 695 |
+
102,
|
| 696 |
+
351,
|
| 697 |
+
117
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 5
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "text",
|
| 703 |
+
"text": "We assess the performance of our proposed TopicRNN model on word prediction and sentiment analysis5. For word prediction we use the Penn TreeBank dataset, a standard benchmark for assessing new language models (Marcus et al., 1993). For sentiment analysis we use the IMDB 100k dataset (Maas et al., 2011), also a common benchmark dataset for this application6. We use RNN, LSTM, and GRU cells in our experiments leading to TopicRNN, TopicLSTM, and TopicGRU. ",
|
| 704 |
+
"bbox": [
|
| 705 |
+
174,
|
| 706 |
+
133,
|
| 707 |
+
825,
|
| 708 |
+
204
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 5
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "table",
|
| 714 |
+
"img_path": "images/bc07ea20d0423b2ed7cf7dec07a782c6d6b4db1ebcb588e2d3ddcafbc9986260.jpg",
|
| 715 |
+
"table_caption": [
|
| 716 |
+
"Table 1: Five Topics from the TopicRNN Model with 100 Neurons and 50 Topics on the PTB Data. (The word $s \\& p$ below shows as $s p$ in the data.) "
|
| 717 |
+
],
|
| 718 |
+
"table_footnote": [],
|
| 719 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Law</td><td rowspan=1 colspan=1>Company</td><td rowspan=1 colspan=1>Parties</td><td rowspan=1 colspan=1>Trading</td><td rowspan=1 colspan=1>Cars</td></tr><tr><td rowspan=1 colspan=1>law</td><td rowspan=1 colspan=1>spending</td><td rowspan=1 colspan=1>democratic</td><td rowspan=1 colspan=1>stock</td><td rowspan=1 colspan=1>gm</td></tr><tr><td rowspan=2 colspan=1>lawyers judge</td><td rowspan=1 colspan=1>sales</td><td rowspan=1 colspan=1>republicans</td><td rowspan=1 colspan=1>s&p</td><td rowspan=1 colspan=1>auto</td></tr><tr><td rowspan=1 colspan=1>advertising</td><td rowspan=1 colspan=1>gop</td><td rowspan=1 colspan=1>price</td><td rowspan=1 colspan=1>ford</td></tr><tr><td rowspan=3 colspan=1>rightsattorneycourt</td><td rowspan=1 colspan=1>employees</td><td rowspan=1 colspan=1>republican</td><td rowspan=1 colspan=1>investor</td><td rowspan=1 colspan=1> jaguar</td></tr><tr><td rowspan=1 colspan=1>state</td><td rowspan=1 colspan=1>senate</td><td rowspan=1 colspan=1>standard</td><td rowspan=1 colspan=1>car</td></tr><tr><td rowspan=1 colspan=1>taxes</td><td rowspan=1 colspan=1>oakland</td><td rowspan=1 colspan=1>chairman</td><td rowspan=2 colspan=1>carsheadquarters</td></tr><tr><td rowspan=2 colspan=1>generalcommon</td><td rowspan=1 colspan=1>fiscal</td><td rowspan=1 colspan=1>highway</td><td rowspan=1 colspan=1>investors</td></tr><tr><td rowspan=1 colspan=1>appropriation</td><td rowspan=1 colspan=1>democrats</td><td rowspan=1 colspan=1>retirement</td><td rowspan=1 colspan=1>british</td></tr><tr><td rowspan=1 colspan=1>mr</td><td rowspan=1 colspan=1>budget</td><td rowspan=1 colspan=1>bill</td><td rowspan=1 colspan=1>holders</td><td rowspan=1 colspan=1>executives</td></tr><tr><td rowspan=1 colspan=1>insurance</td><td rowspan=1 colspan=1>ad</td><td rowspan=1 colspan=1>district</td><td rowspan=1 colspan=1>merrill</td><td rowspan=1 colspan=1>model</td></tr></table>",
|
| 720 |
+
"bbox": [
|
| 721 |
+
274,
|
| 722 |
+
265,
|
| 723 |
+
728,
|
| 724 |
+
424
|
| 725 |
+
],
|
| 726 |
+
"page_idx": 5
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "image",
|
| 730 |
+
"img_path": "images/8da45187dfe1c757f0a1bb4330ee5817045258c9a1fb0f190875d6a8a302d04c.jpg",
|
| 731 |
+
"image_caption": [
|
| 732 |
+
"Figure 2: Inferred distributions using TopicGRU on three different documents. The content of these documents is added on the appendix. This shows that some of the topics are being picked up depending on the input document. "
|
| 733 |
+
],
|
| 734 |
+
"image_footnote": [],
|
| 735 |
+
"bbox": [
|
| 736 |
+
196,
|
| 737 |
+
464,
|
| 738 |
+
797,
|
| 739 |
+
577
|
| 740 |
+
],
|
| 741 |
+
"page_idx": 5
|
| 742 |
+
},
|
| 743 |
+
{
|
| 744 |
+
"type": "text",
|
| 745 |
+
"text": "4.1 WORD PREDICTION ",
|
| 746 |
+
"text_level": 1,
|
| 747 |
+
"bbox": [
|
| 748 |
+
176,
|
| 749 |
+
684,
|
| 750 |
+
352,
|
| 751 |
+
699
|
| 752 |
+
],
|
| 753 |
+
"page_idx": 5
|
| 754 |
+
},
|
| 755 |
+
{
|
| 756 |
+
"type": "text",
|
| 757 |
+
"text": "We first tested TopicRNN on the word prediction task using the Penn Treebank (PTB) portion of the Wall Street Journal. We use the standard split, where sections 0-20 (930K tokens) are used for training, sections 21-22 (74K tokens) for validation, and sections 23-24 (82K tokens) for testing (Mikolov et al., 2010). We use a vocabulary of size $1 0 K$ that includes the special token unk for rare words and eos that indicates the end of a sentence. TopicRNN takes documents as inputs. We split the PTB data into blocks of 10 sentences to constitute documents as done by (Mikolov and Zweig, 2012). The inference network takes as input the bag-of-words representation of the input document. For that reason, the vocabulary size of the inference network is reduced to 9551 after excluding 449 pre-defined stop words. ",
|
| 758 |
+
"bbox": [
|
| 759 |
+
174,
|
| 760 |
+
710,
|
| 761 |
+
825,
|
| 762 |
+
837
|
| 763 |
+
],
|
| 764 |
+
"page_idx": 5
|
| 765 |
+
},
|
| 766 |
+
{
|
| 767 |
+
"type": "text",
|
| 768 |
+
"text": "In order to compare with previous work on contextual RNNs we trained TopicRNN using different network sizes. We performed word prediction using a recurrent neural network with 10 neurons, ",
|
| 769 |
+
"bbox": [
|
| 770 |
+
176,
|
| 771 |
+
843,
|
| 772 |
+
823,
|
| 773 |
+
871
|
| 774 |
+
],
|
| 775 |
+
"page_idx": 5
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"type": "table",
|
| 779 |
+
"img_path": "images/7c2b5e410c27b39175998703cec163978fcee84084a2048cb025bba6a8c63f4e.jpg",
|
| 780 |
+
"table_caption": [
|
| 781 |
+
"Table 2: TopicRNN and its counterparts exhibit lower perplexity scores across different network sizes than reported in Mikolov and Zweig (2012). Table 2a shows per-word perplexity scores for 10 neurons. Table 2b and Table 2c correspond to per-word perplexity scores for 100 and 300 neurons respectively. These results prove TopicRNN has more generalization capabilities: for example we only need a TopicGRU with 100 neurons to achieve a better perplexity than stacking 2 LSTMs with 200 neurons each: 112.4 vs 115.9) "
|
| 782 |
+
],
|
| 783 |
+
"table_footnote": [],
|
| 784 |
+
"table_body": "<table><tr><td colspan=\"3\">(a)</td><td colspan=\"3\">(b)</td></tr><tr><td>10 Neurons</td><td>Valid</td><td></td><td>100 Neurons</td><td>Valid</td><td>Test</td></tr><tr><td>RNN (no features)</td><td>239.2</td><td>225.0</td><td colspan=\"2\">RNN (no features)</td><td>150.1 142.1</td></tr><tr><td>RNN (LDA features)</td><td>197.3 187.4</td><td colspan=\"2\">RNN (LDA features)</td><td>132.3</td><td>126.4</td></tr><tr><td>TopicRNN</td><td>184.5 172.2</td><td colspan=\"2\">TopicRNN</td><td>128.5</td><td>122.3</td></tr><tr><td>TopicLSTM</td><td>188.0 175.0</td><td colspan=\"2\">TopicLSTM</td><td>126.0</td><td>118.1</td></tr><tr><td>TopicGRU</td><td>178.3 166.7</td><td colspan=\"2\">TopicGRU</td><td>118.3</td><td>112.4</td></tr><tr><td></td><td>(c)</td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>300 Neurons</td><td>Valid</td><td>Test</td><td></td><td></td></tr><tr><td></td><td>RNN (no features)</td><td></td><td>124.7</td><td></td><td></td></tr><tr><td></td><td>RNN (LDA features)</td><td></td><td>113.7</td><td></td><td></td></tr><tr><td></td><td>TopicRNN</td><td>118.3</td><td>112.2</td><td></td><td></td></tr><tr><td></td><td>TopicLSTM</td><td>104.1</td><td>99.5</td><td></td><td></td></tr><tr><td></td><td>TopicGRU</td><td>99.6</td><td>97.3</td><td></td><td></td></tr></table>",
|
| 785 |
+
"bbox": [
|
| 786 |
+
197,
|
| 787 |
+
195,
|
| 788 |
+
810,
|
| 789 |
+
435
|
| 790 |
+
],
|
| 791 |
+
"page_idx": 6
|
| 792 |
+
},
|
| 793 |
+
{
|
| 794 |
+
"type": "text",
|
| 795 |
+
"text": "100 neurons and 300 neurons. For these experiments, we used a multilayer perceptron with 2 hidden layers and 200 hidden units per layer for the inference network. The number of topics was tuned depending on the size of the RNN. For 10 neurons we used 18 topics. For 100 and 300 neurons we found 50 topics to be optimal. We used the validation set to tune the hyperparameters of the model. We used a maximum of 15 epochs for the experiments and performed early stopping using the validation set. For comparison purposes we did not apply dropout and used 1 layer for the RNN and its counterparts in all the word prediction experiments as reported in Table 2. One epoch for 10 neurons takes 2.5 minutes. For 100 neurons, one epoch is completed in less than 4 minutes. Finally, for 300 neurons one epoch takes less than 6 minutes. These experiments were ran on Microsoft Azure NC12 that has 12 cores, 2 Tesla K80 GPUs, and 112 GB memory. First, we show five randomly drawn topics in Table 1. These results correspond to a network with 100 neurons. We also illustrate some inferred topic distributions for several documents from TopicGRU in Figure 2. Similar to standard topic models, these distributions are also relatively peaky. ",
|
| 796 |
+
"bbox": [
|
| 797 |
+
174,
|
| 798 |
+
468,
|
| 799 |
+
825,
|
| 800 |
+
648
|
| 801 |
+
],
|
| 802 |
+
"page_idx": 6
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"type": "text",
|
| 806 |
+
"text": "Next, we compare the performance of TopicRNN to our baseline contextual RNN using perplexity. Perplexity can be thought of as a measure of surprise for a language model. It is defined as the exponential of the average negative log likelihood. Table 2 summarizes the results for different network sizes. We learn three things from these tables. First, the perplexity is reduced the larger the network size. Second, RNNs with context features perform better than RNNs without context features. Third, we see that TopicRNN gives lower perplexity than the previous baseline result reported by Mikolov and Zweig (2012). Note that to compute these perplexity scores for word prediction we use a sliding window to compute $\\theta$ as we move along the sequences. The topic vector $\\theta$ that is used from the current batch of words is estimated from the previous batch of words. This enables fair comparison to previously reported results (Mikolov and Zweig, 2012).7 ",
|
| 807 |
+
"bbox": [
|
| 808 |
+
174,
|
| 809 |
+
655,
|
| 810 |
+
825,
|
| 811 |
+
795
|
| 812 |
+
],
|
| 813 |
+
"page_idx": 6
|
| 814 |
+
},
|
| 815 |
+
{
|
| 816 |
+
"type": "text",
|
| 817 |
+
"text": "Another aspect of the TopicRNN model we studied is its capacity to generate coherent text. To do this, we randomly drew a document from the test set and used this document as seed input to the inference network to compute $\\theta$ . Our expectation is that the topics contained in this seed document are reflected in the generated text. Table 3 shows generated text from models learned on the PTB and IMDB datasets. See Appendix A.3 for more examples. ",
|
| 818 |
+
"bbox": [
|
| 819 |
+
174,
|
| 820 |
+
801,
|
| 821 |
+
823,
|
| 822 |
+
871
|
| 823 |
+
],
|
| 824 |
+
"page_idx": 6
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"type": "text",
|
| 828 |
+
"text": "Table 3: Generated text using the TopicRNN model on the PTB (top) and IMDB (bottom). ",
|
| 829 |
+
"bbox": [
|
| 830 |
+
199,
|
| 831 |
+
101,
|
| 832 |
+
795,
|
| 833 |
+
116
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 7
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "text",
|
| 839 |
+
"text": "they believe that they had senior damages to guarantee and frustration of unk stations eos the rush to minimum effect in composite trading the compound base inflated rate before the common charter ’s report eos wells fargo inc. unk of state control funds without openly scheduling the university ’s exchange rate has been downgraded it ’s unk said eos the united cancer & began critical increasing rate of N N at N N to N N are less for the country to trade rate for more than three months $\\$ 1$ workers were mixed eos ",
|
| 840 |
+
"bbox": [
|
| 841 |
+
205,
|
| 842 |
+
133,
|
| 843 |
+
792,
|
| 844 |
+
217
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 7
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "text",
|
| 850 |
+
"text": "lee is head to be watched unk month she eos but the acting surprisingly nothing is very good eos i cant believe that he can unk to a role eos may appear of for the stupid killer really to help with unk unk unk if you wan na go to it fell to the plot clearly eos it gets clear of this movie 70 are so bad mexico direction regarding those films eos then go as unk ’s walk and after unk to see him try to unk before that unk with this film ",
|
| 851 |
+
"bbox": [
|
| 852 |
+
205,
|
| 853 |
+
224,
|
| 854 |
+
794,
|
| 855 |
+
295
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 7
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "table",
|
| 861 |
+
"img_path": "images/b82812e8a881f77ff250a1575adfb0816b4b0a4fd5f1610e70ac36118c2101cf.jpg",
|
| 862 |
+
"table_caption": [
|
| 863 |
+
"Table 4: Classification error rate on IMDB 100k dataset. TopicRNN provides the state of the art error rate on this dataset. "
|
| 864 |
+
],
|
| 865 |
+
"table_footnote": [],
|
| 866 |
+
"table_body": "<table><tr><td>Model</td><td>Reported Error rate</td></tr><tr><td>BoW (bnc) (Maas et al.,2011)</td><td>12.20%</td></tr><tr><td>BoW (b△ tc) (Maas et al.,2011)</td><td>11.77%</td></tr><tr><td>LDA (Maas et al.,2011)</td><td>32.58%</td></tr><tr><td>Full + BoW (Maas et al.,2011)</td><td>11.67%</td></tr><tr><td>Full + Unlabelled + BoW (Maas et al.,2011)</td><td>11.11%</td></tr><tr><td>WRRBM (Dahl et al., 2012)</td><td>12.58%</td></tr><tr><td>WRRBM+ BoW (bnc) (Dahl et al.,2012)</td><td>10.77%</td></tr><tr><td>MNB-uni (Wang & Manning,2012)</td><td>16.45%</td></tr><tr><td>MNB-bi (Wang & Manning,2012)</td><td>13.41%</td></tr><tr><td>SVM-uni (Wang&Manning,2012)</td><td>13.05%</td></tr><tr><td>SVM-bi (Wang& Manning,2012)</td><td>10.84%</td></tr><tr><td>NBSVM-uni (Wang& Manning,2012)</td><td>11.71%</td></tr><tr><td>seq2-bown-CNN (Johnson & Zhang,2014)</td><td>14.70%</td></tr><tr><td>NBSVM-bi (Wang & Manning,2012)</td><td>8.78%</td></tr><tr><td>Paragraph Vector (Le & Mikolov,2014)</td><td>7.42%</td></tr><tr><td>SA-LSTM with joint training (Dai & Le,2015)</td><td>14.70%</td></tr><tr><td>LSTM with tuning and dropout (Dai&Le,2015)</td><td>13.50%</td></tr><tr><td>LSTM initialized with word2vec embeddings (Dai & Le,2015)</td><td>10.00%</td></tr><tr><td>SA-LSTM with linear gain (Dai&Le,2015)</td><td>9.17%</td></tr><tr><td>LM-TM (Dai& Le,2015)</td><td>7.64%</td></tr><tr><td>SA-LSTM (Dai& Le,2015)</td><td>7.24%</td></tr><tr><td>Virtual Adversarial (Miyato et al. 2016)</td><td>5.91%</td></tr><tr><td>TopicRNN</td><td>6.28%</td></tr></table>",
|
| 867 |
+
"bbox": [
|
| 868 |
+
235,
|
| 869 |
+
361,
|
| 870 |
+
761,
|
| 871 |
+
679
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 7
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "4.2 SENTIMENT ANALYSIS ",
|
| 878 |
+
"text_level": 1,
|
| 879 |
+
"bbox": [
|
| 880 |
+
174,
|
| 881 |
+
708,
|
| 882 |
+
374,
|
| 883 |
+
722
|
| 884 |
+
],
|
| 885 |
+
"page_idx": 7
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"type": "text",
|
| 889 |
+
"text": "We performed sentiment analysis using TopicRNN as a feature extractor on the IMDB 100K dataset. This data consists of 100,000 movie reviews from the Internet Movie Database (IMDB) website. The data is split into $7 5 \\%$ for training and $2 5 \\%$ for testing. Among the 75K training reviews, 50K are unlabelled and 25K are labelled as carrying either a positive or a negative sentiment. All 25K test reviews are labelled. We trained TopicRNN on 65K random training reviews and used the remaining 10K reviews for validation. To learn a classifier, we passed the 25K labelled training reviews through the learned TopicRNN model. We then concatenated the output of the inference network and the last state of the RNN for each of these 25K reviews to compute the feature vectors. We then used these feature vectors to train a neural network with one hidden layer, 50 hidden units, and a sigmoid activation function to predict sentiment, exactly as done in Le and Mikolov (2014). ",
|
| 890 |
+
"bbox": [
|
| 891 |
+
174,
|
| 892 |
+
734,
|
| 893 |
+
825,
|
| 894 |
+
875
|
| 895 |
+
],
|
| 896 |
+
"page_idx": 7
|
| 897 |
+
},
|
| 898 |
+
{
|
| 899 |
+
"type": "text",
|
| 900 |
+
"text": "To train the TopicRNN model, we used a vocabulary of size 5,000 and mapped all other words to the unk token. We took out 439 stop words to create the input of the inference network. We used 500 units and 2 layers for the inference network, and used 2 layers and 300 units per-layer for the ",
|
| 901 |
+
"bbox": [
|
| 902 |
+
176,
|
| 903 |
+
882,
|
| 904 |
+
823,
|
| 905 |
+
924
|
| 906 |
+
],
|
| 907 |
+
"page_idx": 7
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"type": "image",
|
| 911 |
+
"img_path": "images/90b18cb1f6082fedea0158cbe0816998581f5bebf4e8ccb074b500e5acc0de58.jpg",
|
| 912 |
+
"image_caption": [
|
| 913 |
+
"Figure 3: Clusters of a sample of 10000 movie reviews from the IMDB 100K dataset using TopicRNN as feature extractor. We used K-Means to cluster the feature vectors. We then used PCA to reduce the dimension to two for visualization purposes. red is a negative review and green is a positive review. "
|
| 914 |
+
],
|
| 915 |
+
"image_footnote": [],
|
| 916 |
+
"bbox": [
|
| 917 |
+
214,
|
| 918 |
+
130,
|
| 919 |
+
779,
|
| 920 |
+
261
|
| 921 |
+
],
|
| 922 |
+
"page_idx": 8
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "text",
|
| 926 |
+
"text": "RNN. We chose a step size of 5 and defined 200 topics. We did not use any regularization such as dropout. We trained the model for 13 epochs and used the validation set to tune the hyperparameters of the model and track perplexity for early stopping. This experiment took close to 78 hours on a MacBook pro quad-core with 16GHz of RAM. See Appendix A.4 for the visualization of some of the topics learned from this data. ",
|
| 927 |
+
"bbox": [
|
| 928 |
+
174,
|
| 929 |
+
388,
|
| 930 |
+
825,
|
| 931 |
+
458
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 8
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"text": "Table 4 summarizes sentiment classification results from TopicRNN and other methods. Our error rate is $6 . 2 8 \\%$ .8 This is close to the state-of-the-art $5 . 9 1 \\%$ (Miyato et al., 2016) despite that we do not use the labels and adversarial training in the feature extraction stage. Our approach is most similar to Le and Mikolov (2014), where the features were extracted in a unsupervised way and then a one-layer neural net was trained for classification. ",
|
| 938 |
+
"bbox": [
|
| 939 |
+
174,
|
| 940 |
+
465,
|
| 941 |
+
825,
|
| 942 |
+
535
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 8
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"text": "Figure 3 shows the ability of TopicRNN to cluster documents using the feature vectors as created during the sentiment analysis task. Reviews with positive sentiment are coloured in green while reviews carrying negative sentiment are shown in red. This shows that TopicRNN can be used as an unsupervised feature extractor for downstream applications. Table 3 shows generated text from models learned on the PTB and IMDB datasets. See Appendix A.3 for more examples. The overall generated text from IMDB encodes a negative sentiment. ",
|
| 949 |
+
"bbox": [
|
| 950 |
+
173,
|
| 951 |
+
542,
|
| 952 |
+
825,
|
| 953 |
+
626
|
| 954 |
+
],
|
| 955 |
+
"page_idx": 8
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"type": "text",
|
| 959 |
+
"text": "5 DISCUSSION AND FUTURE WORK ",
|
| 960 |
+
"text_level": 1,
|
| 961 |
+
"bbox": [
|
| 962 |
+
174,
|
| 963 |
+
657,
|
| 964 |
+
535,
|
| 965 |
+
675
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 8
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "In this paper we introduced TopicRNN, a RNN-based language model that combines RNNs and latent topics to capture local (syntactic) and global (semantic) dependencies between words. The global dependencies as captured by the latent topics serve as contextual bias to an RNN-based language model. This contextual information is learned jointly with the RNN parameters by maximizing the evidence lower bound of variational inference. TopicRNN yields competitive per-word perplexity on the Penn Treebank dataset compared to previous contextual RNN models. We have reported a competitive classification error rate for sentiment analysis on the IMDB 100K dataset. We have also illustrated the capacity of TopicRNN to generate sensible topics and text. ",
|
| 972 |
+
"bbox": [
|
| 973 |
+
173,
|
| 974 |
+
698,
|
| 975 |
+
825,
|
| 976 |
+
809
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 8
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "In future work, we will study the performance of TopicRNN when stop words are dynamically discovered during training. We will also extend TopicRNN to other applications where capturing context is important such as in dialog modeling. If successful, this will allow us to have a model that performs well across different natural language processing applications. ",
|
| 983 |
+
"bbox": [
|
| 984 |
+
174,
|
| 985 |
+
810,
|
| 986 |
+
825,
|
| 987 |
+
864
|
| 988 |
+
],
|
| 989 |
+
"page_idx": 8
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "text",
|
| 993 |
+
"text": "REFERENCES ",
|
| 994 |
+
"text_level": 1,
|
| 995 |
+
"bbox": [
|
| 996 |
+
174,
|
| 997 |
+
103,
|
| 998 |
+
287,
|
| 999 |
+
117
|
| 1000 |
+
],
|
| 1001 |
+
"page_idx": 9
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "text",
|
| 1005 |
+
"text": "Y. Bengio, P. Simard, and P. Frasconi. Learning long-term dependencies with gradient descent is difficult. IEEE transactions on neural networks, 5(2):157–166, 1994. \nY. Bengio, R. Ducharme, P. Vincent, and C. Jauvin. A neural probabilistic language model. journal of machine learning research, 3(Feb):1137–1155, 2003. \nD. Blei and J. Lafferty. Correlated topic models. Advances in neural information processing systems, 18:147, 2006. \nD. M. Blei and J. D. Lafferty. Topic models. Text mining: classification, clustering, and applications, 10(71):34, 2009. \nD. M. Blei, A. Y. Ng, and M. I. Jordan. Latent dirichlet allocation. Journal of machine Learning research, 3(Jan):993–1022, 2003. \nC. Chelba and F. Jelinek. Structured language modeling. Computer Speech & Language, 14(4): 283–332, 2000. \nC. Chelba, T. Mikolov, M. Schuster, Q. Ge, T. Brants, P. Koehn, and T. Robinson. One billion word benchmark for measuring progress in statistical language modeling. arXiv preprint arXiv:1312.3005, 2013. \nK. Cho, B. Van Merriënboer, C. Gulcehre, D. Bahdanau, F. Bougares, H. Schwenk, and Y. Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. arXiv preprint arXiv:1406.1078, 2014. \nA. M. Dai and Q. V. Le. Semi-supervised sequence learning. In Advances in Neural Information Processing Systems, pages 3079–3087, 2015. \nJ. Gao, J.-Y. Nie, G. Wu, and G. Cao. Dependence language model for information retrieval. In Proceedings of the 27th annual international ACM SIGIR conference on Research and development in information retrieval, pages 170–177. ACM, 2004. \nS. Ghosh, O. Vinyals, B. Strope, S. Roy, T. Dean, and L. Heck. Contextual lstm (clstm) models for large scale nlp tasks. arXiv preprint arXiv:1602.06291, 2016. \nS. Hochreiter and J. Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. \nY. Ji, T. Cohn, L. Kong, C. Dyer, and J. Eisenstein. Document context language models. arXiv preprint arXiv:1511.03962, 2015. \nY. Ji, G. Haffari, and J. Eisenstein. A latent variable recurrent neural network for discourse relation language models. arXiv preprint arXiv:1603.01913, 2016. \nM. I. Jordan, Z. Ghahramani, T. S. Jaakkola, and L. K. Saul. An introduction to variational methods for graphical models. Machine learning, 37(2):183–233, 1999. \nR. Jozefowicz, O. Vinyals, M. Schuster, N. Shazeer, and Y. Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016. \nD. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. \nD. P. Kingma and M. Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. \nQ. V. Le and T. Mikolov. Distributed representations of sentences and documents. In ICML, volume 14, pages 1188–1196, 2014. \nR. Lin, S. Liu, M. Yang, M. Li, M. Zhou, and S. Li. Hierarchical recurrent neural network for document modeling. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 899–907, 2015. \nA. L. Maas, R. E. Daly, P. T. Pham, D. Huang, A. Y. Ng, and C. Potts. Learning word vectors for sentiment analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies-Volume 1, pages 142–150. Association for Computational Linguistics, 2011. \nM. P. Marcus, M. A. Marcinkiewicz, and B. Santorini. Building a large annotated corpus of english: The penn treebank. Computational linguistics, 19(2):313–330, 1993. \nY. Miao, L. Yu, and P. Blunsom. Neural variational inference for text processing. arXiv preprint arXiv:1511.06038, 2015. \nT. Mikolov and G. Zweig. Context dependent recurrent neural network language model. In SLT, pages 234–239, 2012. \nT. Mikolov, M. Karafiát, L. Burget, J. Cernocky, and S. Khudanpur. Recurrent neural network based \\` language model. In Interspeech, volume 2, page 3, 2010. \nT. Mikolov, S. Kombrink, L. Burget, J. Cernock ˇ y, and S. Khudanpur. Extensions of recurrent neural \\` network language model. In 2011 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5528–5531. IEEE, 2011. \nT. Mikolov, A. Joulin, S. Chopra, M. Mathieu, and M. Ranzato. Learning longer memory in recurrent neural networks. arXiv preprint arXiv:1412.7753, 2014. \nD. Mimno, H. M. Wallach, E. Talley, M. Leenders, and A. McCallum. Optimizing semantic coherence in topic models. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, pages 262–272. Association for Computational Linguistics, 2011. \nT. Miyato, A. M. Dai, and I. Goodfellow. Adversarial training methods for semi-supervised text classification. stat, 1050:7, 2016. \nR. Pascanu, T. Mikolov, and Y. Bengio. On the difficulty of training recurrent neural networks. ICML (3), 28:1310–1318, 2013. \nD. J. Rezende, S. Mohamed, and D. Wierstra. Stochastic backpropagation and approximate inference in deep generative models. arXiv preprint arXiv:1401.4082, 2014. \nN. Srivastava, G. E. Hinton, A. Krizhevsky, I. Sutskever, and R. Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1): 1929–1958, 2014. \nI. Sutskever. Training recurrent neural networks. PhD thesis, University of Toronto, 2013. \nH. M. Wallach. Topic modeling: beyond bag-of-words. In Proceedings of the 23rd international conference on Machine learning, pages 977–984. ACM, 2006. \nH. M. Wallach, D. M. Mimno, and A. McCallum. Rethinking lda: Why priors matter. In Advances in neural information processing systems, pages 1973–1981, 2009. ",
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
171,
|
| 1008 |
+
113,
|
| 1009 |
+
828,
|
| 1010 |
+
925
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 9
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "text",
|
| 1016 |
+
"text": "",
|
| 1017 |
+
"bbox": [
|
| 1018 |
+
171,
|
| 1019 |
+
97,
|
| 1020 |
+
826,
|
| 1021 |
+
693
|
| 1022 |
+
],
|
| 1023 |
+
"page_idx": 10
|
| 1024 |
+
},
|
| 1025 |
+
{
|
| 1026 |
+
"type": "text",
|
| 1027 |
+
"text": "A APPENDIX ",
|
| 1028 |
+
"text_level": 1,
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
176,
|
| 1031 |
+
710,
|
| 1032 |
+
315,
|
| 1033 |
+
727
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 10
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "A.1 DIMENSION OF THE PARAMETERS OF THE MODEL: ",
|
| 1040 |
+
"text_level": 1,
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
174,
|
| 1043 |
+
741,
|
| 1044 |
+
560,
|
| 1045 |
+
756
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 10
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "We use the following notation: C is the vocabulary size (including stop words), H is the number of hidden units of the RNN, K is the number of topics, and E is the dimension of the inference network hidden layer. Table 5 gives the dimension of each of the parameters of the TopicRNN model (ignoring the biases). ",
|
| 1052 |
+
"bbox": [
|
| 1053 |
+
173,
|
| 1054 |
+
767,
|
| 1055 |
+
825,
|
| 1056 |
+
824
|
| 1057 |
+
],
|
| 1058 |
+
"page_idx": 10
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "table",
|
| 1062 |
+
"img_path": "",
|
| 1063 |
+
"table_caption": [
|
| 1064 |
+
"Table 5: Dimensions of the parameters of the model. "
|
| 1065 |
+
],
|
| 1066 |
+
"table_footnote": [],
|
| 1067 |
+
"page_idx": 10
|
| 1068 |
+
},
|
| 1069 |
+
{
|
| 1070 |
+
"type": "equation",
|
| 1071 |
+
"img_path": "images/072bbaf4119d10d383fd2a9f3f0fb030bad164e2171c6bb5b384915e3816b592.jpg",
|
| 1072 |
+
"text": "$$\n\\begin{array} { r } \\frac { \\left| \\begin{array} { l } { \\mathbf { U } } \\\\ { \\mathrm { d i m e n s i o n } } \\end{array} \\right| \\begin{array} { l } { \\mathbf { U } } \\\\ { \\mathrm { C \\cdot X H ~ \\left| ~ H ~ \\right| ~ H ~ x ~ H ~ \\left| ~ H ~ x ~ C ~ \\right| ~ K ~ x ~ C ~ \\left| ~ \\begin{array} { l } { \\mathbf { B } } \\\\ { \\mathrm { K ~ x ~ C ~ } } \\end{array} \\right| ~ H ~ \\left| ~ W _ { 1 } ~ \\right| ~ W _ { 2 } } } \\end{array} } \\end{array}\n$$",
|
| 1073 |
+
"text_format": "latex",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
256,
|
| 1076 |
+
866,
|
| 1077 |
+
743,
|
| 1078 |
+
901
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 10
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "A.2 DOCUMENTS USED TO INFER THE DISTRIBUTIONS ON FIGURE 2 ",
|
| 1085 |
+
"text_level": 1,
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
184,
|
| 1088 |
+
104,
|
| 1089 |
+
658,
|
| 1090 |
+
117
|
| 1091 |
+
],
|
| 1092 |
+
"page_idx": 11
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"type": "text",
|
| 1096 |
+
"text": "Figure on the left: ’the’, ’market’, ’has’, ’grown’, ’relatively’, ’quiet’, ’since’, ’the’, ’china’, ’crisis’, ’but’, ’if ’, ’the’, ’japanese’, ’return’, ’in’, ’force’, ’their’, ’financial’, ’might’, ’could’, ’compensate’, ’to’, ’some’, ’extent’, ’for’, ’local’, ’investors’, \"’\", ’<unk>’, ’commitment’, ’another’, ’and’, ’critical’, ’factor’, ’is’, ’the’, ’u.s.’, ’hong’, ’kong’, \"’s\", ’biggest’, ’export’, ’market’, ’even’, ’before’, ’the’, ’china’, ’crisis’, ’weak’, ’u.s.’, ’demand’, ’was’, ’slowing’, ’local’, ’economic’, ’growth’, ’<unk>’, ’strong’, ’consumer’, ’spending’, ’in’, ’the’, ’u.s.’, ’two’, ’years’, ’ago’, ’helped’, ’<unk>’, ’the’, ’local’, ’economy’, ’at’, ’more’, ’than’, ’twice’, ’its’, ’current’, ’rate’, ’indeed’, ’a’, ’few’, ’economists’, ’maintain’, ’that’, ’global’, ’forces’, ’will’, ’continue’, ’to’, ’govern’, ’hong’, ’kong’, \"’s\", ’economic’, ’<unk>’, ’once’, ’external’, ’conditions’, ’such’, ’as’, ’u.s.’, ’demand’, ’swing’, ’in’, ’the’, ’territory’, \"’s\", ’favor’, ’they’, ’argue’, ’local’, ’businessmen’, ’will’, ’probably’, ’overcome’, ’their’, ’N’, ’worries’, ’and’, ’continue’, ’doing’, ’business’, ’as’, ’usual’, ’but’, ’economic’, ’arguments’, ’however’, ’solid’, ’wo’, \"n’t\", ’necessarily’, ’<unk>’, ’hong’, ’kong’, \"’s\", ’N’, ’million’, ’people’, ’many’, ’are’, ’refugees’, ’having’, ’fled’, ’china’, \"’s\", ’<unk>’, ’cycles’, ’of ’, ’political’, ’repression’, ’and’, ’poverty’, ’since’, ’the’, ’communist’, ’party’, ’took’, ’power’, ’in’, ’N’, ’as’, ’a’, ’result’, ’many’, ’of ’, ’those’, ’now’, ’planning’, ’to’, ’leave’, ’hong’, ’kong’, ’ca’, \"n’t\", ’easily’, ’be’, ’<unk>’, ’by’, ’<unk>’, ’improvements’, ’in’, ’the’, ’colony’, \"’s\", ’political’, ’and’, ’economic’, ’climate’ ",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
176,
|
| 1099 |
+
147,
|
| 1100 |
+
825,
|
| 1101 |
+
383
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 11
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "Figure on the middle: ’it’, ’said’, ’the’, ’man’, ’whom’, ’it’, ’did’, ’not’, ’name’, ’had’, ’been’, ’found’, ’to’, ’have’, ’the’, ’disease’, ’after’, ’hospital’, ’tests’, ’once’, ’the’, ’disease’, ’was’, ’confirmed’, ’all’, ’the’, ’man’, \"’s\", ’associates’, ’and’, ’family’, ’were’, ’tested’, ’but’, ’none’, ’have’, ’so’, ’far’, ’been’, ’found’, ’to’, ’have’, ’aids’, ’the’, ’newspaper’, ’said’, ’the’, ’man’, ’had’, ’for’, ’a’, ’long’, ’time’, ’had’, ’a’, ’chaotic’, ’sex’, ’life’, ’including’, ’relations’, ’with’, ’foreign’, ’men’, ’the’, ’newspaper’, ’said’, ’the’, ’polish’, ’government’, ’increased’, ’home’, ’electricity’, ’charges’, ’by’, ’N’, ’N’, ’and’, ’doubled’, ’gas’, ’prices’, ’the’, ’official’, ’news’, ’agency’, ’<unk>’, ’said’, ’the’, ’increases’, ’were’, ’intended’, ’to’, ’bring’, ’<unk>’, ’low’, ’energy’, ’charges’, ’into’, ’line’, ’with’, ’production’, ’costs’, ’and’, ’compensate’, ’for’, ’a’, ’rise’, ’in’, ’coal’, ’prices’, ’in’, ’<unk>’, ’news’, ’south’, ’korea’, ’in’, ’establishing’, ’diplomatic’, ’ties’, ’with’, ’poland’, ’yesterday’, ’announced’, ’\\$’, ’N’, ’million’, ’in’, ’loans’, ’to’, ’the’, ’financially’, ’strapped’, ’warsaw’, ’government’, ’in’, ’a’, ’victory’, ’for’, ’environmentalists’, ’hungary’, \"’s\", ’parliament’, ’terminated’, ’a’, ’multibillion-dollar’, ’river’, ’<unk>’, ’dam’, ’being’, ’built’, ’by’, ’<unk>’, ’firms’, ’the’, ’<unk>’, ’dam’, ’was’, ’designed’, ’to’, ’be’, ’<unk>’, ’with’, ’another’, ’dam’, ’now’, ’nearly’, ’complete’, ’N’, ’miles’, ’<unk>’, ’in’, ’czechoslovakia’, ’in’, ’ending’, ’hungary’, \"’s\", ’part’, ’of ’, ’the’, ’project’, ’parliament’, ’authorized’, ’prime’, ’minister’, ’<unk>’, ’<unk>’, ’to’, ’modify’, ’a’, ’N’, ’agreement’, ’with’, ’czechoslovakia’, ’which’, ’still’, ’wants’, ’the’, ’dam’, ’to’, ’be’, ’built’, ’mr.’, ’<unk>’, ’said’, ’in’, ’parliament’, ’that’, ’czechoslovakia’, ’and’, ’hungary’, ’would’, ’suffer’, ’environmental’, ’damage’, ’if ’, ’the’, ’<unk>’, ’<unk>’, ’were’, ’built’, ’as’, ’planned’ ",
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
176,
|
| 1110 |
+
397,
|
| 1111 |
+
823,
|
| 1112 |
+
675
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 11
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "text",
|
| 1118 |
+
"text": "Figure on the right: ’in’, ’hartford’, ’conn.’, ’the’, ’charter’, ’oak’, ’bridge’, ’will’, ’soon’, ’be’, ’replaced’, ’the’, ’<unk>’, ’<unk>’, ’from’, ’its’, ’<unk>’, ’<unk>’, ’to’, ’a’, ’park’, ’<unk>’, ’are’, ’possible’, ’citizens’, ’in’, ’peninsula’, ’ohio’, ’upset’, ’over’, ’changes’, ’to’, ’a’, ’bridge’, ’negotiated’, ’a’, ’deal’, ’the’, ’bottom’, ’half ’, ’of ’, ’the’, ’<unk>’, ’will’, ’be’, ’type’, ’f ’, ’while’, ’the’, ’top’, ’half ’, ’will’, ’have’, ’the’, ’old’, ’bridge’, \"’s\", ’<unk>’, ’pattern’, ’similarly’, ’highway’, ’engineers’, ’agreed’, ’to’, ’keep’, ’the’, ’old’, ’<unk>’, ’on’, ’the’, ’key’, ’bridge’, ’in’, ’washington’, ’d.c.’, ’as’, ’long’, ’as’, ’they’, ’could’, ’install’, ’a’, ’crash’, ’barrier’, ’between’, ’the’, ’sidewalk’, ’and’, ’the’, ’road’, ’<unk>’, ’<unk>’, ’drink’, ’carrier’, ’competes’, ’with’, ’<unk>’, ’<unk>’, ’<unk>’, ’just’, ’got’, ’easier’, ’or’, ’so’, ’claims’, ’<unk>’, ’corp.’, ’the’, ’maker’, ’of ’, ’the’, ’<unk>’, ’the’, ’chicago’, ’company’, \"’s\", ’beverage’, ’carrier’, ’meant’, ’to’, ’replace’, ’<unk>’, ’<unk>’, ’at’, ’<unk>’, ’stands’, ’and’, ’fast-food’, ’outlets’, ’resembles’, ’the’, ’plastic’, ’<unk>’, ’used’, ’on’, ’<unk>’, ’of ’, ’beer’, ’only’, ’the’, ’<unk>’, ’hang’, ’from’, ’a’, ’<unk>’, ’of ’, ’<unk>’, ’the’, ’new’, ’carrier’, ’can’, ’<unk>’, ’as’, ’many’, ’as’, ’four’, ’<unk>’, ’at’, ’once’, ’inventor’, ’<unk>’, ’marvin’, ’says’, ’his’, ’design’, ’virtually’, ’<unk>’, ’<unk>’ ",
|
| 1119 |
+
"bbox": [
|
| 1120 |
+
176,
|
| 1121 |
+
688,
|
| 1122 |
+
825,
|
| 1123 |
+
895
|
| 1124 |
+
],
|
| 1125 |
+
"page_idx": 11
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"type": "text",
|
| 1129 |
+
"text": "A.3 MORE GENERATED TEXT FROM THE MODEL: ",
|
| 1130 |
+
"text_level": 1,
|
| 1131 |
+
"bbox": [
|
| 1132 |
+
178,
|
| 1133 |
+
103,
|
| 1134 |
+
524,
|
| 1135 |
+
117
|
| 1136 |
+
],
|
| 1137 |
+
"page_idx": 12
|
| 1138 |
+
},
|
| 1139 |
+
{
|
| 1140 |
+
"type": "text",
|
| 1141 |
+
"text": "We illustrate below some generated text resulting from training TopicRNN on the PTB dataset. Here we used 50 neurons and 100 topics: ",
|
| 1142 |
+
"bbox": [
|
| 1143 |
+
173,
|
| 1144 |
+
128,
|
| 1145 |
+
821,
|
| 1146 |
+
159
|
| 1147 |
+
],
|
| 1148 |
+
"page_idx": 12
|
| 1149 |
+
},
|
| 1150 |
+
{
|
| 1151 |
+
"type": "text",
|
| 1152 |
+
"text": "Text1: but the refcorp bond fund might have been unk and unk of the point rate eos house in national unk wall restraint in the property pension fund sold willing to zenith was guaranteed by $\\$ 8$ N million at short-term rates maturities around unk products eos deposit posted yields slightly ",
|
| 1153 |
+
"bbox": [
|
| 1154 |
+
174,
|
| 1155 |
+
170,
|
| 1156 |
+
825,
|
| 1157 |
+
213
|
| 1158 |
+
],
|
| 1159 |
+
"page_idx": 12
|
| 1160 |
+
},
|
| 1161 |
+
{
|
| 1162 |
+
"type": "text",
|
| 1163 |
+
"text": "Text2: it had happened by the treasury ’s clinical fund month were under national disappear institutions but secretary nicholas instruments succeed eos and investors age far compound average new york stock exchange bonds typically sold $\\$ 1$ shares in the N but paying yields further an average rate of long-term funds ",
|
| 1164 |
+
"bbox": [
|
| 1165 |
+
174,
|
| 1166 |
+
226,
|
| 1167 |
+
825,
|
| 1168 |
+
282
|
| 1169 |
+
],
|
| 1170 |
+
"page_idx": 12
|
| 1171 |
+
},
|
| 1172 |
+
{
|
| 1173 |
+
"type": "text",
|
| 1174 |
+
"text": "We illustrate below some generated text resulting from training TopicRNN on the IMDB dataset. The settings are the same as for the sentiment analysis experiment: ",
|
| 1175 |
+
"bbox": [
|
| 1176 |
+
174,
|
| 1177 |
+
295,
|
| 1178 |
+
821,
|
| 1179 |
+
324
|
| 1180 |
+
],
|
| 1181 |
+
"page_idx": 12
|
| 1182 |
+
},
|
| 1183 |
+
{
|
| 1184 |
+
"type": "text",
|
| 1185 |
+
"text": "the film ’s greatest unk unk and it will likely very nice movies to go to unk why various david proves eos the story were always well scary friend high can be a very strange unk unk is in love with it lacks even perfect for unk for some of the worst movies come on a unk gave a rock unk eos whatever let ’s possible eos that kyle can ’t different reasons about the unk and was not what you ’re not a fan of unk unk us rock which unk still in unk ’s music unk one as ",
|
| 1186 |
+
"bbox": [
|
| 1187 |
+
174,
|
| 1188 |
+
337,
|
| 1189 |
+
825,
|
| 1190 |
+
406
|
| 1191 |
+
],
|
| 1192 |
+
"page_idx": 12
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"type": "text",
|
| 1196 |
+
"text": "A.4 TOPICS FROM IMDB: ",
|
| 1197 |
+
"text_level": 1,
|
| 1198 |
+
"bbox": [
|
| 1199 |
+
176,
|
| 1200 |
+
452,
|
| 1201 |
+
367,
|
| 1202 |
+
465
|
| 1203 |
+
],
|
| 1204 |
+
"page_idx": 12
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"type": "text",
|
| 1208 |
+
"text": "Below we show some topics resulting from the sentiment analysis on the IMDB dataset. The total number of topics is 200. Note here all the topics turn around movies which is expected since all reviews are about movies. ",
|
| 1209 |
+
"bbox": [
|
| 1210 |
+
176,
|
| 1211 |
+
478,
|
| 1212 |
+
825,
|
| 1213 |
+
520
|
| 1214 |
+
],
|
| 1215 |
+
"page_idx": 12
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"type": "table",
|
| 1219 |
+
"img_path": "images/d4c9087e9aa5bd3a5c9e85907aa4cc622aa9e9be51af2426bc1a9c444771ae61.jpg",
|
| 1220 |
+
"table_caption": [
|
| 1221 |
+
"Table 6: Some Topics from the TopicRNN Model on the IMDB Data. "
|
| 1222 |
+
],
|
| 1223 |
+
"table_footnote": [],
|
| 1224 |
+
"table_body": "<table><tr><td>pitt cameron vicious francisco los revolution refuses cheese</td><td>tarantino dramas cards unbearable catches nonsensical cringe lynch</td><td>producing popcorn practice ninja cruise intimate costs alongside</td><td>ken opera carrey kong hills useless lie repeated</td><td>hudson dragged robinson flight awake rolled easier kurosawa</td><td>campbell africa circumstances burton kubrick friday expression struck</td><td>campbell spots dollar cage freeman murphy 2002 scorcese</td></tr></table>",
|
| 1225 |
+
"bbox": [
|
| 1226 |
+
189,
|
| 1227 |
+
563,
|
| 1228 |
+
816,
|
| 1229 |
+
683
|
| 1230 |
+
],
|
| 1231 |
+
"page_idx": 12
|
| 1232 |
+
}
|
| 1233 |
+
]
|
parse/train/rJbbOLcex/rJbbOLcex_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rJbbOLcex/rJbbOLcex_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkzjUoAcFX/rkzjUoAcFX.md
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SAMPLE EFFICIENT ADAPTIVE TEXT-TO-SPEECH
|
| 2 |
+
|
| 3 |
+
Yutian Chen, Yannis Assael, Brendan Shillingford, David Budden, Scott Reed, Heiga Zen, Quan Wang, Luis C. Cobo, Andrew Trask, Ben Laurie, Caglar Gulcehre, Aäron van den Oord, Oriol Vinyals, Nando de Freitas
|
| 4 |
+
|
| 5 |
+
DeepMind & Google yutianc@google.com
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
We present a meta-learning approach for adaptive text-to-speech (TTS) with few data. During training, we learn a multi-speaker model using a shared conditional WaveNet core and independent learned embeddings for each speaker. The aim of training is not to produce a neural network with fixed weights, which is then deployed as a TTS system. Instead, the aim is to produce a network that requires few data at deployment time to rapidly adapt to new speakers. We introduce and benchmark three strategies: (i) learning the speaker embedding while keeping the WaveNet core fixed, (ii) fine-tuning the entire architecture with stochastic gradient descent, and (iii) predicting the speaker embedding with a trained neural network encoder. The experiments show that these approaches are successful at adapting the multi-speaker neural network to new speakers, obtaining state-of-the-art results in both sample naturalness and voice similarity with merely a few minutes of audio data from new speakers.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
Training a large model with lots of data and subsequently deploying this model to carry out classification or regression is an important and common methodology in machine learning. It has been particularly successful in speech recognition (Hinton et al., 2012), machine translation (Wu et al., 2016) and image recognition (Krizhevsky et al., 2012; Szegedy et al., 2015). In this textto-speech (TTS) work, we are instead interested in few-shot meta-learning. Here the objective of training with many data is not to learn a fixed-parameter classifier, but rather to learn a “prior” neural network. This prior TTS network can be adapted rapidly, using few data, to produce TTS systems for new speakers at deployment time. That is, the intention is not to learn a fixed final model, but rather to learn a model prior that harnesses few data at deployment time to learn new behaviours rapidly. The output of training is not longer a fixed model, but rather a fast learner.
|
| 14 |
+
|
| 15 |
+
Biology provides motivation for this line of research. It may be argued that evolution is a slow adaptation process that has resulted in biological machines with the ability to adapt rapidly to new data during their lifetimes. These machines are born with strong priors that facilitate rapid learning.
|
| 16 |
+
|
| 17 |
+
We consider a meta-learning approach where the model has two types of parameters: task-dependent parameters and task-independent parameters. During training, we learn all of these parameters but discard the task-dependent parameters for deployment. The goal is to use few data to learn the task-dependent parameters for new tasks rapidly.
|
| 18 |
+
|
| 19 |
+
Task-dependent parameters play a similar role to latent variables in classical probabilistic graphical models. Intuitively, these variables introduce flexibility, thus making it easier to learn the taskindependent parameters. For example, in classical HMMs, knowing the latent variables results in a simple learning problem of estimating the parameters of an exponential-family distribution. In neural networks, this approach also facilitates learning when there is clear data diversity and categorization. We show this for adaptive TTS (Dutoit, 1997; Taylor, 2009). In this setting, speakers correspond to tasks. During training we have many speakers, and it is therefore helpful to have task-dependent parameters to capture speaker-specific voice styles. At the same time, it is useful to have a large model with shared parameters to capture the generic process of mapping text to speech. To this end, we employ the WaveNet model.
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: Architecture of the WaveNet model for few-shot voice adaptation.
|
| 23 |
+
|
| 24 |
+
WaveNet (van den Oord et al., 2016) is an autoregressive generative model for audio waveforms that has yielded state-of-art performance in speech synthesis. This model was later modified for real-time speech generation via probability density distillation into a feed-forward model (van den Oord et al., 2017). A fundamental limitation of WaveNet is the need for hours of training data for each speaker. In this paper we describe a new WaveNet training procedure that facilitates adaptation to new speakers, allowing the synthesis of new voices from no more than 10 minutes of data with high sample quality.
|
| 25 |
+
|
| 26 |
+
We propose several extensions of WaveNet for sample-efficient adaptive TTS. First, we present two non-parametric adaptation methods that involve fine-tuning either the speaker embeddings only or all the model parameters given few data from a new speaker. Second, we present a parametric textindependent approach whereby an auxiliary network is trained to predict new speaker embeddings.
|
| 27 |
+
|
| 28 |
+
The experiments will show that all the proposed approaches, when provided with just a few seconds or minutes of recording, can generate high-fidelity utterances that closely resemble the vocal tract characteristics of a demonstration speaker, particularly when the entire model is fine-tuned end-to-end. When fine-tuning by first estimating the speaker embedding and subsequently fine-tuning the entire model, we achieve state-of-the-art results in terms of sample naturalness and voice similarity to target speakers. These results are robust across speech datasets recorded under different conditions and, moreover, we demonstrate that the generated samples are capable of confusing the state-of-the-art text-independent speaker verification system (Wan et al., 2018).
|
| 29 |
+
|
| 30 |
+
TTS techniques require hours of high-quality recordings, collected in controlled environments, for each new voice style. Given this high cost, reducing the length of the training dataset could be valuable. For example, it is likely to be very beneficial when attempting to restore the voices of patients who suffer from voice-impairing medical conditions. In these cases, long high quality recordings are scarce.
|
| 31 |
+
|
| 32 |
+
# 2 WAVENET ARCHITECTURE
|
| 33 |
+
|
| 34 |
+
WaveNet is an autoregressive model that factorizes the joint probability distribution of a waveform, $\mathbf { x } = \{ x _ { 1 } , \dots , x _ { T } \}$ , into a product of conditional distributions using the probabilistic chain rule:
|
| 35 |
+
|
| 36 |
+
$$
|
| 37 |
+
p ( \mathbf { x } | \mathbf { h } ; \mathbf { w } ) = \prod _ { t = 1 } ^ { T } p ( x _ { t } | \mathbf { x } _ { 1 : t - 1 } , \mathbf { h } ; \mathbf { w } ) ,
|
| 38 |
+
$$
|
| 39 |
+
|
| 40 |
+
where $x _ { t }$ is the $t$ -th timestep sample, and $\mathbf { h }$ and w are respectively the conditioning inputs and parameters of the model. To train a multi-speaker WaveNet, the conditioning inputs $\mathbf { h }$ consist of the speaker identity $s$ , the linguistic features l, and the logarithmic fundamental frequency $\mathbf { f } _ { 0 }$ values. l encodes the sequence of phonemes derived from the input text, and $\mathbf { f } _ { 0 }$ controls the dynamics of the pitch in the generated utterance. Given the speaker identity $s$ for each utterance in the dataset, the
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
Figure 2: Training (slow, lots of data), adaptation (fast, few data) and inference stages for the SEAALL architecture. The components with bold pink outlines are fine-tuned during the adaptation phase. The purpose of training is to produce a prior. This prior is combined with few data during adaptation to solve a new task. This adapted model is then deployed in the final inference stage.
|
| 44 |
+
|
| 45 |
+
model is expressed as:
|
| 46 |
+
|
| 47 |
+
$$
|
| 48 |
+
p ( \mathbf x | \mathbf I , \mathbf f _ { 0 } ; \mathbf e _ { s } , \mathbf w ) = \prod _ { t = 1 } ^ { T } p ( x _ { t } | \mathbf x _ { 1 : t - 1 } , \mathbf I , \mathbf f _ { 0 } ; \mathbf e _ { s } , \mathbf w ) ,
|
| 49 |
+
$$
|
| 50 |
+
|
| 51 |
+
where a table of speaker embedding vectors $\mathbf { e } _ { s }$ (Embedding in Figure 1) is learned alongside the standard WaveNet parameters. These vectors capture salient voice characteristics across individual speakers, and provide a convenient mechanism for generalizing WaveNet to the few-shot adaptation setting in this paper. The linguistic features l and fundamental frequency values $\mathbf { f } _ { 0 }$ are both time-series with a lower sampling frequency than the waveform. Thus, to be used as local conditioning variables they are upsampled by a transposed convolutional network. During training, l and $\mathbf { f } _ { 0 }$ are extracted by signal processing methods from pairs of training utterance and transcript, and during testing, those values are predicted from text by existing models (Zen et al., 2016).
|
| 52 |
+
|
| 53 |
+
# 3 FEW-SHOT ADAPTATION WITH WAVENET
|
| 54 |
+
|
| 55 |
+
In recent years, a large body of literature uses large datasets to train models to learn an input-output mapping that is then used for inference. In contrast, few-shot meta-learning introduces an additional step, adaptation. In this meta-learning setting, the purpose of training becomes to learn a prior. During adaptation, this prior is combined with few data to rapidly learn a new skill; in this case adapting to a new speakers’ voice style. Finally, the new skill is deployed, which in this paper we are referring to as inference. These three stages — training, adaptation and inference — are illustrated in Figure 2.
|
| 56 |
+
|
| 57 |
+
We present two multi-speaker WaveNet extensions for few-shot voice adaptation. First, we introduce a non-parametric model fine-tuning approach, which involves adapting either the speaker embeddings or all the model parameters using held-aside demonstration data. Second, and for comparison purposes, we use a parametric approach whereby an auxiliary network is trained to predict the embedding vector of a new speaker using the demonstration data.
|
| 58 |
+
|
| 59 |
+
# 3.1 NON-PARAMETRIC FEW-SHOT ADAPTATION VIA FINE-TUNING
|
| 60 |
+
|
| 61 |
+
Inspired by few-shot learning we first pre-train a multi-speaker conditional WaveNet model on a large and diverse dataset, as described in Section 2. Subsequently, we fine-tune the model parameters by retraining with respect to held-aside adaptation data.
|
| 62 |
+
|
| 63 |
+
Training this WaveNet model to maximize the conditional log-likelihood of the generated audio jointly optimizes both the set of speaker parameters $\left\{ \mathbf { e } _ { s } \right\}$ and the shared WaveNet core parameters w. Next, we extend this method to a new speaker by extracting the l and $\mathbf { f } _ { 0 }$ features from their adaptation data waveforms, and randomly initializing a new embedding vector e. We then optimize e such that the demonstration $\{ \mathbf { x } _ { \mathrm { d e m o } } ^ { ( 1 ) } , \hdots , \mathbf { x } _ { \mathrm { d e m o } } ^ { ( n ) } \}$ , paired with features $\{ ( \mathbf { l } _ { \mathrm { d e m o } } ^ { ( 1 ) } , \mathbf { f } _ { 0 , \mathrm { d e m o } } ^ { ( 1 ) } ) , \dots , ( \mathbf { l } _ { \mathrm { d e m o } } ^ { ( n ) } , \mathbf { f } _ { 0 , \mathrm { d e m o } } ^ { ( n ) } ) \}$ , are likely under the model with w fixed (SEA-EMB):
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\mathbf { e } _ { \mathrm { d e m o } } = \underset { \mathbf { e } } { \arg \operatorname* { m a x } } \sum _ { i } \log p ( \mathbf { x } _ { \mathrm { d e m o } } ^ { ( i ) } | \mathbf { l } _ { \mathrm { d e m o } } ^ { ( i ) } , \mathbf { f } _ { 0 , \mathrm { d e m o } } ^ { ( i ) } ; \mathbf { e } , \mathbf { w } ) .
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
Alternatively, all of the model parameters may be additionally fine-tuned (SEA-ALL):
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
( \mathbf { e } _ { \mathrm { d e m o } } , \mathbf { w } _ { \mathrm { f i n e t u n e d } } ) = \underset { \mathbf { e } , \mathbf { w } } { \arg \operatorname* { m a x } } \sum _ { i } \log p ( \mathbf { x } _ { \mathrm { d e m o } } ^ { ( i ) } | \mathbf { l } _ { \mathrm { d e m o } } ^ { ( i ) } , \mathbf { f } _ { 0 , \mathrm { d e m o } } ^ { ( i ) } ; \mathbf { e } , \mathbf { w } ) .
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
Both methods are non-parametric approaches to few-shot voice adaptation as the number of embedding vectors scales with the number of speakers. However, the training processes are slightly different. Because the SEA-EMB method optimizes only a low-dimensional vector, it is far less prone to overfitting, and we are therefore able to retrain the model to convergence even with mere seconds of adaptation data. By contrast, the SEA-ALL has many more parameters that might overfit to the adaptation data. We therefore hold out $1 0 \%$ of our demonstration data for calculating a standard early termination criterion. We also initialize e with the optimal value from the SEA-EMB method, and we find this initialization significantly improves the generalization performance even with a few seconds of adaptation data.
|
| 76 |
+
|
| 77 |
+
# 3.2 PARAMETRIC FEW-SHOT ADAPTATION USING AN EMBEDDING ENCODER
|
| 78 |
+
|
| 79 |
+
In contrast to the non-parametric approach, whereby a different embedding vector is fitted for each speaker, one can train an auxiliary encoder network to predict an embedding vector for a new speaker given their demonstration data. Specifically, we model:
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
p ( \mathbf { x } | \mathbf { l } , \mathbf { f } _ { 0 } , \mathbf { x } _ { \mathrm { d e m o } } , \mathbf { l } _ { \mathrm { d e m o } } , \mathbf { f } _ { 0 , \mathrm { d e m o } } ; \mathbf { w } ) = \prod _ { t = 1 } ^ { T } p ( x _ { t } | \mathbf { x } _ { 1 : t - 1 } , \mathbf { l } , \mathbf { f } _ { 0 } ; \mathbf { e } ( \mathbf { x } _ { \mathrm { d e m o } } , \mathbf { l } _ { \mathrm { d e m o } } , \mathbf { f } _ { 0 , \mathrm { d e m o } } ) , \mathbf { w } ) ,
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
where for each training example, we include a randomly selected demonstration utterance from that speaker in addition to the regular conditioning inputs. The full WaveNet model and the encoder network $\mathbf { e } ( \cdot )$ are trained together from scratch. We refer the reader to the Appendix for further architectural details. This approach (SEA-ENC) exhibits the advantage of being trained in a transcriptindependent setting given only the input waveform, $\mathbf { e } ( \mathbf { x } _ { \mathrm { d e m o } } )$ , and requires negligible computation at adaptation time. However, the learned encoder can also introduce bias when fitting an embedding due to its limited network capacity. As an example, Li et al. (2017) demonstrated a typical scenario whereby speaker identity information can be very quickly extracted with deep models from audio signals. Nonetheless, that the model is less capable of effectively leveraging additional training than approaches based on statistical methods.
|
| 86 |
+
|
| 87 |
+
# 3.3 REMOVING IDENTITY-RELATED INFORMATION
|
| 88 |
+
|
| 89 |
+
The linguistic features and fundamental frequencies which are used as inputs contain information specific to an individual speaker. As an example, the average voice pitch in the fundamental frequency sequence is highly speaker-dependent. Instead, we would like these features to be as speaker-independent as possible such that identity is modeled via global conditioning on the speaker embedding. To achieve this, we normalize the fundamental frequency values to have zero mean and unit variance separately for each speaker during training, denoted as $\hat { \bf f } _ { 0 } : = ( { \bf f } - \mathbb { E } [ { \bf f } _ { s } ] ) / \mathrm { s t d } ( { \bf f } _ { s } )$ . As mentioned earlier, at test time, we use an existing model (Zen et al., 2016) to predict $( 1 , \hat { \bf f } _ { 0 } )$ .
|
| 90 |
+
|
| 91 |
+
# 4 RELATED WORK
|
| 92 |
+
|
| 93 |
+
Few-shot learning to build models, where one can rapidly learn using only a small amount of available data, is one of the most important open challenges in machine learning. Recent studies have attempted to address the problem of few-shot learning by using deep neural networks, and they have shown promising results on classification tasks in vision (Santoro et al., 2016; Shyam et al., 2017) and language (Vinyals et al., 2016). Few-shot learning can also be leveraged in reinforcement learning, such as by imitating human Atari gameplay from a single recorded action sequence (Pohlen et al., 2018) or online video (Aytar et al., 2018).
|
| 94 |
+
|
| 95 |
+
Meta-learning offers a sound framework for addressing few-shot learning. Here, an expensive learning process results in machines with the ability to learn rapidly from few data. Meta-learning has a long history (Harlow, 1949; Thrun and Pratt, 2012), and recent studies include efforts to learn optimization processes (Andrychowicz et al., 2016; Chen et al., 2017) that have been shown to extend naturally to the few-shot setting (Ravi and Larochelle, 2016). An alternative approach is model-agnostic meta learning (MAML) (Finn et al., 2017a), which differs by using a fixed optimizer and learning a set of base parameters that can be adapted to minimize any task loss by few steps of gradient descent. This method has shown promise in robotics (Finn et al., 2017b; Yu et al., 2018).
|
| 96 |
+
|
| 97 |
+
In generative modeling, few-shot learning has been addressed from several perspectives, including matching networks (Bartunov and Vetrov, 2017) and variable inference for memory addressing (Bornschein et al., 2017). Rezende et al. (2016) developed a sequential generative model that extended the Deep Recurrent Attention Writer (DRAW) model (Gregor et al., 2015), and Reed et al. (2018) extended PixelCNN (Van Oord et al., 2016) with neural attention for few-shot auto-regressive density modeling. Veness et al. (2017) presented a gated linear model able to model complex densities from a single pass of a limited dataset.
|
| 98 |
+
|
| 99 |
+
Early attempts of few-shot adaptation involved the attention models of Reed et al. (2018) and MAML (Finn et al., 2017a), but we found both of these strategies failed to learn informative speaker embedding in our preliminary experiments.
|
| 100 |
+
|
| 101 |
+
There is growing interest in developing neural TTS models that can be trained end-to-end without the need for hand-crafted representations. In this study we focus on extending the autoregressive WaveNet model (van den Oord et al., 2016; 2017) to the few-shot learning setting to adapt to speakers that were not presented at training time. Other recent neural TTS models include Tacotron 2 (SkerryRyan et al., 2018) (building on (Wang et al., 2017)) which uses WaveNet as a vocoder to invert mel-spectrograms generated by an attentive sequence-to-sequence model. DeepVoice 2 (Gibiansky et al., 2017) (building on (Arık et al., 2017)) introduced a multi-speaker variation of Tacotron that learns a low-dimensional embedding for each speaker, which was further extended in DeepVoice 3 (Ping et al., 2018) to a 2,400 multi-speaker scenario. Unlike WaveNet and DeepVoice, the Char2Wav (Sotelo et al., 2017) and VoiceLoop (Taigman et al., 2018) models produce World Vocoder Features (Morise et al., 2016) instead of generating raw audio signals.
|
| 102 |
+
|
| 103 |
+
Although many of these systems have produced high-quality samples for speakers present in the training set, generalizing to new speakers given only a few seconds of audio remains a challenge. There have been several concurrent works to address this few-shot learning problem. The VoiceLoop model introduced a novel memory-based architecture that was extended by Nachmani et al. (2018) to few-shot voice style adaptation, by introducing an auxiliary fitting network that predicts the embedding of a new speaker. Jia et al. (2018) extended the Tacotron model for one-shot speaker adaptation by conditioning on a speaker embedding vector extracted from a pretrained speaker identity model of Wan et al. (2018). The most similar approached to our work was proposed by Arik et al. (2018) for the DeepVoice 3 model. They considered both predicting the embedding with an encoding network and fitting the embedding based on a small amount of adaptation data, but the adaptation was applied to a prediction model for mel-spectrograms with a fixed vocoder.
|
| 104 |
+
|
| 105 |
+
# 5 EVALUATION
|
| 106 |
+
|
| 107 |
+
In this section, we evaluate the quality of samples of SEA-ALL, SEA-EMB and SEA-ENC. We first measure the naturalness of the generated utterances using the standard Mean Opinion Score (MOS) procedure. Then, we evaluate the similarity of generated and real samples using the subjective MOS test and objectively using a speaker verification system (Wan et al., 2018). Finally, we study these results varying the size of the adaptation dataset.
|
| 108 |
+
|
| 109 |
+
# 5.1 EXPERIMENTAL SETUP
|
| 110 |
+
|
| 111 |
+
We train a WaveNet model for each of our three methods using the same dataset, which combines the high-quality LibriSpeech audiobook corpus (Panayotov et al., 2015) and a proprietary speech corpus. The LibriSpeech dataset consists of 2302 speakers from the train speaker subsets and approximately 500 hours of utterances, sampled at a frequency of $1 6 \mathrm { k H z }$ . The proprietary speech corpus consists of 10 American English speakers and approximately 300 hours of utterances, and we down-sample the recording frequency to $1 6 \mathrm { k H z }$ to match LibriSpeech. The multi-speaker WaveNet model has the same architecture as van den Oord et al. (2016) except that we use a 200-dimensional speaker embedding space to model the large diversity of voices.
|
| 112 |
+
|
| 113 |
+
Table 1: Naturalness of the adapted voices using a 5-scale MOS score (higher is better) with $9 5 \%$ confidence interval on the LibriSpeech and VCTK held-out adaptation datasets. Numbers in bold are the best few-shot learning results on each dataset without statistically significant difference. van den Oord et al. (2016) was trained with 24-hour production quality data, Nachmani et al. (2018) used all samples of each new speaker, Arik et al. (2018) used 10 samples, and Jia et al. (2018) used 5 seconds.
|
| 114 |
+
|
| 115 |
+
<table><tr><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=2>LibriSpeech</td><td rowspan=1 colspan=2>VCTK</td></tr><tr><td rowspan=1 colspan=1>Real utterance</td><td rowspan=1 colspan=2>4.38±0.04</td><td rowspan=1 colspan=2>4.45 ± 0.04</td></tr><tr><td rowspan=1 colspan=1>van den Oord et al. (2016)</td><td rowspan=1 colspan=4>4.21 ± 0.081</td></tr><tr><td rowspan=1 colspan=1>Nachmani et al. (2018)Arik et al. (2018)adapt embeddingadapt whole-modelencoding + fine-tuningJia et al. (2018)trained on LibriSpeech</td><td rowspan=1 colspan=2>2.53 ± 1.114.12 ± 0.05</td><td rowspan=1 colspan=2>3.66±0.842.67 ± 0.103.16 ± 0.092.99 ± 0.124.01 ± 0.06</td></tr><tr><td rowspan=1 colspan=1>Adaptation data size</td><td rowspan=1 colspan=1>10s</td><td rowspan=1 colspan=1><5m</td><td rowspan=1 colspan=1>10s</td><td rowspan=1 colspan=1><10m</td></tr><tr><td rowspan=3 colspan=1>SEA-ALL (ours)SEA-EMB (ours)SEA-ENC (ours)</td><td rowspan=1 colspan=1>3.94± 0.08</td><td rowspan=1 colspan=1>4.13± 0.06</td><td rowspan=1 colspan=1>3.92 ± 0.07</td><td rowspan=1 colspan=1>3.92± 0.07</td></tr><tr><td rowspan=2 colspan=1>3.86 ± 0.073.61 ± 0.06</td><td rowspan=1 colspan=1>3.95 ± 0.07</td><td rowspan=1 colspan=1>3.81 ± 0.07</td><td rowspan=2 colspan=1>3.82 ± 0.073.58 ± 0.06</td></tr><tr><td rowspan=1 colspan=1>3.56 ± 0.06</td><td rowspan=1 colspan=1>3.65 ± 0.06</td></tr></table>
|
| 116 |
+
|
| 117 |
+
Our few-shot model performance is evaluated using two hold-out datasets. First, the LibriSpeech test corpus consists of 39 speakers, with an average of approximately 52 utterances and 5 minutes of audio per speaker. For every test speaker, we randomly split their demonstration utterances into an adaptation set for adapting our WaveNet models and a test set for evaluation. The subset of utterances used for early termination in Section 3.1 is chosen from the adaptation set. There are about 4.2 utterances on average per speaker in the test set and the rest in the adaptation set. Second, we consider a subset of the CSTR VCTK corpus (Veaux et al., 2017) consisting of 21 American English speakers, with approximately 368 utterances and 12 minutes of audio per speaker. We also apply the adaptation/test split with 10 utterances per speaker for test. We emphasize that no data from VCTK was presented to the model at training time. Since our underlying WaveNet model was trained on data largely from LibriSpeech (which was recorded under noisier conditions than VCTK), one might expect that the generated samples on the VCTK dataset contain characteristic artifacts that make generated samples easier to distinguish from real utterances. However, our evaluation using VCTK indicates that our model generalizes effectively and that such artifacts are not detectable. Synthetic utterances are provided on our demo webpage1.
|
| 118 |
+
|
| 119 |
+
It is worth mentioning, that SEA-ENC requires no adaptation time. Where for SEA-EMB, it takes $5 \sim 1 0 k$ optimizing steps to fit the embedding vector, and an additional $1 0 0 \sim 2 0 0$ steps to fine-tune the entire model using early stopping for SEA-ALL.
|
| 120 |
+
|
| 121 |
+
# 5.2 NATURALNESS OF THE GENERATED SAMPLES (MOS)
|
| 122 |
+
|
| 123 |
+
We measure the quality of the generated samples by conducting a MOS test, whereby subjects are asked to rate the naturalness of generated utterances on a five-point Likert Scale (1: Bad, 2: Poor, 3: Fair, 4: Good, 5: Excellent). Furthermore, we compare with other published few-shot TTS systems systems, that were developed in parallel to this work. However, the literature uses varying combinations of training data and evaluation splits making comparison difficult. The results presented are from the closest experimental setups to ours.
|
| 124 |
+
|
| 125 |
+
Table 1 presents MOS for the adaptation models compared to real utterances. Two different adaptation dataset sizes are considered; $T = 1 0$ seconds, and $T \leq 5$ minutes for LibriSpeech ( $T \leq 1 0$ minutes for VCTK). For reference on $1 6 \mathrm { k H z }$ data, WaveNet trained on a 24-hour production quality speech dataset (van den Oord et al., 2016) achieves a score of 4.21, while for LibriSpeech our best few-shot model attains an MOS score of 4.13 using only 5 minutes of data given a pre-trained multi-speaker model. We note that both fine-tuning models produce overall “good” samples for both the LibriSpeech and VCTK test sets, with SEA-ALL outperforming SEA-EMB in all cases. SEA-ALL is on par with the state-of-the-art performance on both datasets. The addition of extra adaptation data beyond 10 seconds of audio helps performance on LibriSpeech but not VCTK, and the gap between our best model and the real utterance is also wider on VCTK, possibly due to the different recording conditions.
|
| 126 |
+
|
| 127 |
+
Table 2: Voice similarity of generated voices using a 5-scale MOS score (higher is better) with $9 5 \%$ confidence interval on the LibriSpeech and VCTK held-out adaptation datasets.
|
| 128 |
+
|
| 129 |
+
<table><tr><td>Dataset</td><td colspan="2">LibriSpeech</td><td colspan="2">VCTK</td></tr><tr><td>Real utterance</td><td colspan="2">4.30 ± 0.08</td><td colspan="2">4.59 ± 0.06</td></tr><tr><td>Jia et al. (2018) trained on LibriSpeech</td><td colspan="2"></td><td colspan="2"></td></tr><tr><td>Adaptation data size</td><td>3.03 ± 0.09 10s</td><td><5m</td><td>2.77 ± 0.08 10s</td><td><10m</td></tr><tr><td>SEA-ALL (ours)</td><td>3.41 ± 0.10</td><td>3.75 ± 0.09</td><td>3.51±0.10</td><td>3.97± 0.09</td></tr><tr><td>SEA-EMB (ours)</td><td>3.42± 0.10</td><td>3.56 ± 0.10</td><td>3.07 ±0.10</td><td>3.18 ± 0.10</td></tr><tr><td>SEA-ENC (ours)</td><td>2.47 ± 0.09</td><td>2.59 ± 0.09</td><td>2.07± 0.08</td><td>2.19 ±0.09</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr></table>
|
| 130 |
+
|
| 131 |
+
# 5.3 VOICE SIMILARITY (MOS)
|
| 132 |
+
|
| 133 |
+
Beside naturalness, we also measure the similarity of the generated and real voices. The quality of similarity is the main evaluation metric for the voice adaptation problem. We first follow the experiment setup of Jia et al. (2018) to run a MOS test for a subjective assessment and then use a speaker verification model for objective evaluation in the next section.
|
| 134 |
+
|
| 135 |
+
In every trial of this test a subject is presented with a pair of utterances consisting of a real utterance and another real or generated utterance from the same speaker, and is asked to rate the similarity in voice identity using a five-scale score (1: Not at all similar, 2: Slightly similar, 3: Moderately similar, 4: Very similar, 5: Extremely similar).
|
| 136 |
+
|
| 137 |
+
Table 2 shows the MOS for real utterances and all the adaptation models under two adaptation data time settings on both datasets. Again, the SEA-ALL model outperforms the other two models, and the improvement over SEA-EMB scales with the amount of adaptation data. Particularly, the learned voices on the VCTK dataset achieve an average score of 3.97, demonstrating the generalization performance on a different dataset. As a rough comparisson, because of varying training setups, the state of the art system of Jia et al. (2018) achieves scores of 3.03 for LibriSpeech and 2.77 for VCTK when trained on LibriSpeech. Their model computes the embedding based on the $d$ -vector, similar to our SEA-ENC approach, and performs competitively for the one-shot learning setting, but its performance saturates with 5 seconds of adaptation data, as explained in Section 3.2. We note the gap of similarity scores between SEA-ALL and real utterances, which suggests that although the generated samples sound similar to the target speakers, humans can still tell the difference from real utterances.
|
| 138 |
+
|
| 139 |
+
# 5.4 VOICE SIMILARITY (SPEAKER VERIFICATION)
|
| 140 |
+
|
| 141 |
+
We also apply the state-of-the-art text independent speaker verification (TI-SV) model of (Wan et al., 2018) to objectively assess whether the generated samples preserve the acoustic features of the speakers. We calculate the TI-SV $d$ -vector embeddings for generated and real voices. In Figure 3, we visualize the 2-dimensional projection of the $d$ -vectors for a SEA-ALL model trained on $T \leq 5$ minutes of data on the LibriSpeech dataset, and $T \leq 1 0$ minutes on VCTK. There are clear clusters on both datasets, with a strikingly large inter-cluster distance and low intra-cluster separation. This shows both (1) an ease of correctly identifying the speaker associated with a given generated utterance, and (2) the difficulty in differentiating real from synthetic samples.
|
| 142 |
+
|
| 143 |
+
A similar figure is presented in (Jia et al., 2018), but there the generated and real samples do not overlap. This indicates that the method presented in this paper generates voices that are more indistinguishable from real ones, when measured with the same verification system. In the following subsections, we further analyze these results.
|
| 144 |
+
|
| 145 |
+

|
| 146 |
+
Figure 3: t-SNE visualization of the $d$ -vector embeddings of real and SEA-ALL-generated utterances, for both the LibriSpeech ( $T \leq 5$ mins) and VCTK ( $T \leq 1 0$ mins) evaluation datasets.
|
| 147 |
+
|
| 148 |
+

|
| 149 |
+
Figure 4: Detection error trade-off (DET) curve for speaker verification in percentage, using the TI-SV speaker verification model (Wan et al., 2018). The utterances were generated using $T \leq 5$ and $T \leq 1 0$ minute samples from LibriSpeech and VCTK respectively. EER is marked with a dot.
|
| 150 |
+
|
| 151 |
+
# 5.4.1 DISCERNING DIFFERENT SPEAKERS
|
| 152 |
+
|
| 153 |
+
We first quantify whether generated utterances are attributed to the correct speaker. Following common practice in speaker verification (Wan et al., 2018), we select the hold-out test set of real utterances from test speakers as the enrollment set and compute the centroid of the $d$ -vectors for each speaker $\mathbf { c } _ { i }$ . We then use the adaptation set of test speakers as the verification set. For every verification utterance, we compute the cosine similarity between its $d$ -vector $\mathbf { v }$ and a randomly chosen centroid $\mathbf { c } _ { i }$ . The utterance is accepted as one from speaker $i$ if the similarity is exceeds a given threshold. We repeat the experiments with the same enrollment set and replace the verification set with samples generated by each adaptation method under different data size settings.
|
| 154 |
+
|
| 155 |
+
Table 3: Equal error rate (EER) of real and few-shot adapted voice samples for evaluation of voice similarity. Varying adaptation dataset sizes were considered.
|
| 156 |
+
|
| 157 |
+
<table><tr><td>Dataset</td><td colspan="3">LibriSpeech</td><td colspan="3">VCTK</td></tr><tr><td>Real utterance</td><td colspan="3"></td><td colspan="3">2.79</td></tr><tr><td>Adaptation data size</td><td>10s</td><td>2.47 1m</td><td><5m</td><td>10s</td><td>1m</td><td><10m</td></tr><tr><td>SEA-ALL (ours)</td><td>3.17</td><td>2.47</td><td>1.85</td><td>7.34</td><td>5.02</td><td>4.33</td></tr><tr><td>SEA-EMB (ours)</td><td>3.26</td><td>2.92</td><td>2.74</td><td>10.18</td><td>9.91</td><td>10.24</td></tr><tr><td>SEA-ENC (ours)</td><td>10.73</td><td>9.77</td><td>9.42</td><td>27.20</td><td>25.34</td><td>25.23</td></tr></table>
|
| 158 |
+
|
| 159 |
+

|
| 160 |
+
Figure 5: Cosine similarity of real and generated utterances to the real enrollment set.
|
| 161 |
+
|
| 162 |
+
In our setup we fix the enrollment set together with the speaker verification model from (Wan et al., 2018), and study the performance of different verification sets that are either from real utterances or generated by a TTS system. Table 3 lists the equal error rate (EER) of the verification model with real and generated verification utterances, and Figure 4 shows the detection error trade-off (DET) curves for a more thorough inspection. Figure 4 only shows the adaptation models with the maximum data size setting ( $T \leq 5$ minutes for LibriSpeech and $\leq 1 0$ minutes for VCTK). The results for other data sizes are provided in Appendix B.
|
| 163 |
+
|
| 164 |
+
We find that SEA-ALL outperforms the other two approaches, and the error rate decreases clearly with the size of demonstration data. Noticeably, the EER of SEA-ALL is even lower than the real utterance on the LibriSpeech dataset with sufficient adaptation data. A possible explanation is that the generated samples might be concentrated closer to the centroid of a speaker’s embeddings than real speech with larger variance across utterances. Our SEA-EMB model performs better than SEA-ENC. Additionally, the benefit of more demonstration data is less significant than for SEA-ALL in both of these models.
|
| 165 |
+
|
| 166 |
+
# 5.4.2 DISCERNING REAL FROM GENERATED UTTERANCES
|
| 167 |
+
|
| 168 |
+
In this section, we compare the generated samples and the real utterances of the speaker being imitated. Figure 5 shows the box-plot of the cosine similarity between the embedding centroids of test speakers’ enrollment set and (1) real utterances from the same speaker, (2) real utterances from a different speaker, and (3) generated utterances adapted to the same speaker. Consistent with the observations from the previous subsection, SEA-ALL performs best.
|
| 169 |
+
|
| 170 |
+
We further consider an adversarial scenario for speaker verification. In contrast to the previous standard speaker verification setup where we now select a verification utterance with either a real utterance from the same speaker or a synthetic sample from a model adapted to the same speaker. Under this setup, the speaker verification system is challenged by synthetic samples and acts as a classifier for real versus generated utterances. The ROC curve of this setup is shown in Figure 6 and the models are using the maximum data size setting. Other data size settings can be found in Appendix C. If the generated samples are indistinguishable from real utterances, the ROC curve approaches the diagonal line (that is, the verification system fails to separate real and generated voices). Importantly, SEA-ALL manages to confuse the verification system especially for the VCTK dataset where the ROC curve is almost inline with the diagonal line with an AUC of 0.56.
|
| 171 |
+
|
| 172 |
+
# 6 CONCLUSION
|
| 173 |
+
|
| 174 |
+
This paper studied three variants of meta-learning for sample efficient adaptive TTS. The adaptation method that fine-tunes the entire model, with the speaker embedding vector first optimized, shows impressive performance even with only 10 seconds of audio from new speakers. When adapted with a few minutes of data, our model matches the state-of-the-art performance in sample naturalness. Moreover, it outperforms other recent works in matching the new speaker’s voice. We also demonstrated that the generated samples achieved a similar level of voice similarity to real utterances from the same speaker, when measured by a text independent speaker verification model.
|
| 175 |
+
|
| 176 |
+

|
| 177 |
+
Figure 6: ROC curve for real versus generated utterance detection. The utterances were generated using models with 5 and 10 minutes of training data per speaker from LibriSpeech and VCTK respectively. Lower curve indicate that the verification system is having a harder time distinguishing real from generated samples.
|
| 178 |
+
|
| 179 |
+
Our paper considers the adaptation to new voices with clean, high-quality training data collected in a controlled environment. The few-shot learning of voices with noisy data is beyond the scope of this paper and remains a challenging open research problem.
|
| 180 |
+
|
| 181 |
+
A requirement for less training data to adapt the model, however, increases the potential for both beneficial and harmful applications of text-to-speech technologies such as the creation of synthesized media. While the requirements for this particular model (including the high-quality training data collected in a controlled environment and equally high quality data from the speakers to which we adapt, as described in Section 5.1) present barriers to misuse, more research must be conducted to mitigate and detect instances of misuse of text-to-speech technologies in general.
|
| 182 |
+
|
| 183 |
+
# REFERENCES
|
| 184 |
+
|
| 185 |
+
G. Hinton, L. Deng, D. Yu, G. E. Dahl, A.-r. Mohamed, N. Jaitly, A. Senior, V. Vanhoucke, P. Nguyen, T. N. Sainath, et al. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine, 29(6):82–97, 2012.
|
| 186 |
+
Y. Wu, M. Schuster, Z. Chen, Q. V. Le, M. Norouzi, W. Macherey, M. Krikun, Y. Cao, Q. Gao, K. Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016.
|
| 187 |
+
A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information processing Systems, pages 1097–1105, 2012.
|
| 188 |
+
C. Szegedy, W. Liu, Y. Jia, P. Sermanet, S. Reed, D. Anguelov, D. Erhan, V. Vanhoucke, A. Rabinovich, et al. Going deeper with convolutions. In Computer Vision and Pattern Recognition, 2015.
|
| 189 |
+
T. Dutoit. An Introduction to Text-to-speech Synthesis. Kluwer Academic Publishers, Norwell, MA, USA, 1997. ISBN 0-7923-4498-7.
|
| 190 |
+
P. Taylor. Text-to-Speech Synthesis. Cambridge University Press, New York, NY, USA, 1st edition, 2009. ISBN 0521899273, 9780521899277.
|
| 191 |
+
A. van den Oord, S. Dieleman, H. Zen, K. Simonyan, O. Vinyals, A. Graves, N. Kalchbrenner, A. Senior, and K. Kavukcuoglu. WaveNet: A generative model for raw audio. arXiv preprint arXiv:1609.03499, 2016.
|
| 192 |
+
A. van den Oord, Y. Li, I. Babuschkin, K. Simonyan, O. Vinyals, K. Kavukcuoglu, G. v. d. Driessche, E. Lockhart, L. C. Cobo, F. Stimberg, et al. Parallel WaveNet: Fast high-fidelity speech synthesis. arXiv preprint arXiv:1711.10433, 2017.
|
| 193 |
+
L. Wan, Q. Wang, A. Papir, and I. L. Moreno. Generalized end-to-end loss for speaker verification. In International Conference on Acoustics, Speech, and Signal Processing, pages 4879–4883. IEEE, 2018.
|
| 194 |
+
H. Zen, Y. Agiomyrgiannakis, N. Egberts, F. Henderson, and P. Szczepaniak. Fast, compact, and high quality LSTM-RNN based statistical parametric speech synthesizers for mobile devices. In INTERSPEECH, pages 2273–2277, 2016.
|
| 195 |
+
L. Li, Y. Chen, Y. Shi, Z. Tang, and D. Wang. Deep speaker feature learning for text-independent speaker verification. In INTERSPEECH, pages 1542–1546, 2017.
|
| 196 |
+
A. Santoro, S. Bartunov, M. Botvinick, D. Wierstra, and T. Lillicrap. Meta-learning with memory-augmented neural networks. In International Conference on Machine Learning, pages 1842–1850, 2016.
|
| 197 |
+
P. Shyam, S. Gupta, and A. Dukkipati. Attentive recurrent comparators. In International Conference on Machine Learning, pages 3173–3181, 2017.
|
| 198 |
+
O. Vinyals, C. Blundell, T. Lillicrap, D. Wierstra, et al. Matching networks for one shot learning. In Advances in Neural Information Processing Systems, pages 3630–3638, 2016.
|
| 199 |
+
T. Pohlen, B. Piot, T. Hester, M. G. Azar, D. Horgan, D. Budden, G. Barth-Maron, H. van Hasselt, J. Quan, M. Vecerík, et al. Observe and look further: Achieving consistent performance on atari. ˇ arXiv preprint arXiv:1805.11593, 2018.
|
| 200 |
+
Y. Aytar, T. Pfaff, D. Budden, T. L. Paine, Z. Wang, and N. de Freitas. Playing hard exploration games by watching youtube. arXiv preprint arXiv:1805.11592, 2018.
|
| 201 |
+
H. F. Harlow. The formation of learning sets. Psychological review, 56(1):51, 1949.
|
| 202 |
+
S. Thrun and L. Pratt. Learning to learn. Springer Science & Business Media, 2012.
|
| 203 |
+
M. Andrychowicz, M. Denil, S. Gomez, M. W. Hoffman, D. Pfau, T. Schaul, B. Shillingford, and N. De Freitas. Learning to learn by gradient descent by gradient descent. In Advances in Neural Information Processing Systems, pages 3981–3989, 2016.
|
| 204 |
+
Y. Chen, M. W. Hoffman, S. G. Colmenarejo, M. Denil, T. P. Lillicrap, M. Botvinick, and N. Freitas. Learning to learn without gradient descent by gradient descent. In International Conference on Machine Learning, pages 748–756, 2017.
|
| 205 |
+
S. Ravi and H. Larochelle. Optimization as a model for few-shot learning. International Conference on Learning Representations, 2016.
|
| 206 |
+
C. Finn, P. Abbeel, and S. Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International Conference on Machine Learning, pages 1126–1135, 2017a.
|
| 207 |
+
C. Finn, T. Yu, T. Zhang, P. Abbeel, and S. Levine. One-shot visual imitation learning via meta-learning. In Conference on Robot Learning, pages 357–368, 2017b.
|
| 208 |
+
T. Yu, C. Finn, A. Xie, S. Dasari, T. Zhang, P. Abbeel, and S. Levine. One-shot imitation from observing humans via domain-adaptive meta-learning. In International Conference on Learning Representations Workshop, 2018.
|
| 209 |
+
S. Bartunov and D. P. Vetrov. Fast adaptation in generative models with generative matching networks. In International Conference on Learning Representations Workshop, 2017.
|
| 210 |
+
J. Bornschein, A. Mnih, D. Zoran, and D. J. Rezende. Variational memory addressing in generative models. In Advances in Neural Information Processing Systems, pages 3923–3932, 2017.
|
| 211 |
+
D. J. Rezende, S. Mohamed, I. Danihelka, K. Gregor, and D. Wierstra. One-shot generalization in deep generative models. In International Conference on Machine Learning, pages 1521–1529, 2016.
|
| 212 |
+
K. Gregor, I. Danihelka, A. Graves, D. Rezende, and D. Wierstra. DRAW: A recurrent neural network for image generation. In International Conference on Machine Learning, pages 1462–1471, 2015.
|
| 213 |
+
S. Reed, Y. Chen, T. Paine, A. van den Oord, S. M. Eslami, D. Rezende, O. Vinyals, and N. de Freitas. Few-shot autoregressive density estimation: Towards learning to learn distributions. In International Conference on Learning Representations, 2018.
|
| 214 |
+
A. Van Oord, N. Kalchbrenner, and K. Kavukcuoglu. Pixel recurrent neural networks. In International Conference on Machine Learning, pages 1747–1756, 2016.
|
| 215 |
+
J. Veness, T. Lattimore, A. Bhoopchand, A. Grabska-Barwinska, C. Mattern, and P. Toth. Online learning with gated linear networks. arXiv preprint arXiv:1712.01897, 2017.
|
| 216 |
+
R. Skerry-Ryan, E. Battenberg, Y. Xiao, Y. Wang, D. Stanton, J. Shor, R. J. Weiss, R. Clark, and R. A. Saurous. Towards end-to-end prosody transfer for expressive speech synthesis with tacotron. arXiv preprint arXiv:1803.09047, 2018.
|
| 217 |
+
Y. Wang, R. Skerry-Ryan, D. Stanton, Y. Wu, R. J. Weiss, N. Jaitly, Z. Yang, Y. Xiao, Z. Chen, S. Bengio, Q. Le, Y. Agiomyrgiannakis, R. Clark, and R. A. Saurous. Tacotron: Towards end-to-end speech synthesis. In INTERSPEECH, pages 4006–4010, 2017.
|
| 218 |
+
A. Gibiansky, S. Arik, G. Diamos, J. Miller, K. Peng, W. Ping, J. Raiman, and Y. Zhou. Deep voice 2: Multispeaker neural text-to-speech. In Advances in Neural Information Processing Systems, pages 2962–2970, 2017.
|
| 219 |
+
S. Ö. Arık, M. Chrzanowski, A. Coates, G. Diamos, A. Gibiansky, Y. Kang, X. Li, J. Miller, A. Ng, J. Raiman, et al. Deep voice: Real-time neural text-to-speech. In International Conference on Machine Learning, pages 195–204, 2017.
|
| 220 |
+
W. Ping, K. Peng, A. Gibiansky, S. O. Arik, A. Kannan, S. Narang, J. Raiman, and J. Miller. Deep voice 3: 2000-speaker neural text-to-speech. In International Conference on Learning Representations, 2018.
|
| 221 |
+
J. Sotelo, S. Mehri, K. Kumar, J. F. Santos, K. Kastner, A. Courville, and Y. Bengio. Char2wav: End-to-end speech synthesis. In International Conference on Learning Representations Workshop, 2017.
|
| 222 |
+
Y. Taigman, L. Wolf, A. Polyak, and E. Nachmani. Voiceloop: Voice fitting and synthesis via a phonological loop. In International Conference on Learning Representations, 2018.
|
| 223 |
+
M. Morise, F. Yokomori, and K. Ozawa. World: a vocoder-based high-quality speech synthesis system for real-time applications. IEICE transactions on Information and Systems, 99(7):1877–1884, 2016.
|
| 224 |
+
E. Nachmani, A. Polyak, Y. Taigman, and L. Wolf. Fitting new speakers based on a short untranscribed sample. arXiv preprint arXiv:1802.06984, 2018.
|
| 225 |
+
Y. Jia, Y. Zhang, R. J. Weiss, Q. Wang, J. Shen, F. Ren, Z. Chen, P. Nguyen, R. Pang, I. L. Moreno, et al. Transfer learning from speaker verification to multispeaker text-to-speech synthesis. arXiv preprint arXiv:1806.04558, 2018.
|
| 226 |
+
S. O. Arik, J. Chen, K. Peng, W. Ping, and Y. Zhou. Neural voice cloning with a few samples. arXiv preprint arXiv:1802.06006, 2018.
|
| 227 |
+
V. Panayotov, G. Chen, D. Povey, and S. Khudanpur. Librispeech: an asr corpus based on public domain audio books. In International Conference on Acoustics, Speech and Signal Processing, pages 5206–5210. IEEE, 2015.
|
| 228 |
+
C. Veaux, J. Yamagishi, K. MacDonald, et al. CSTR VCTK corpus: English multi-speaker corpus for CSTR Voice Cloning Toolkit, 2017.
|
| 229 |
+
|
| 230 |
+
# A EMBEDDING ENCODER
|
| 231 |
+
|
| 232 |
+
Our encoding network is illustrated as the summation of two sub-network outputs in Figure 7. The first subnetwork is a pre-trained speaker verification model (TI-SV) (Wan et al., 2018), comprising 3 LSTM layers and a single linear layer. This model maps a waveform sequence of arbitrary length to a fixed 256-dimensional $d$ -vector with a sliding window, and is trained from approximately 36M utterances from 18K speakers extracted from anonymized voice search logs. On top of this we add a shallow MLP to project the output $d$ -vector to the speaker embedding space. The second sub-network comprises 16 1-D convolutional layers. This network reduces the temporal resolution to $2 5 6 \mathrm { m s }$ per frame (for $1 6 \mathrm { k H z }$ audio), then averages across time and projects into the speaker embedding space. The purpose of this network is to extract residual speaker information present in the demonstration waveforms but not captured by the pre-trained TI-SV model.
|
| 233 |
+
|
| 234 |
+

|
| 235 |
+
Figure 7: Encoder network architecture for predicting speaker embeddings.
|
| 236 |
+
|
| 237 |
+
# B DET CURVES VARYING TRAINING DATA SIZES
|
| 238 |
+
|
| 239 |
+
Here we provide the DET curves of speaker verification problem for models with different training data sizes in addition to those shown in Section 5.4.1.
|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
Figure 8: Detection error trade-off (DET) curve for speaker verification, using the TI-SV speaker verification model (Wan et al., 2018). The utterances were generated using 1 minute or 10 seconds of utterance from LibriSpeech and VCTK. EER is marked with a dot.
|
| 243 |
+
|
| 244 |
+
# C ROC CURVES VARYING TRAINING DATA SIZES
|
| 245 |
+
|
| 246 |
+
We provide the ROC curves of the speaker verification problem with adversarial examples from adaptation models with different training data sizes in addition to those shown in Section 5.4.2.
|
| 247 |
+
|
| 248 |
+

|
| 249 |
+
Figure 9: ROC curve for real vs. generated utterance detection. The utterances were generated using 1 minute or 10 seconds of utterance from LibriSpeech and VCTK. Lower curve suggests harder to distinguish real from generated samples.
|
parse/train/rkzjUoAcFX/rkzjUoAcFX_content_list.json
ADDED
|
@@ -0,0 +1,1151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "SAMPLE EFFICIENT ADAPTIVE TEXT-TO-SPEECH ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
173,
|
| 8 |
+
98,
|
| 9 |
+
763,
|
| 10 |
+
121
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Yutian Chen, Yannis Assael, Brendan Shillingford, David Budden, Scott Reed, Heiga Zen, Quan Wang, Luis C. Cobo, Andrew Trask, Ben Laurie, Caglar Gulcehre, Aäron van den Oord, Oriol Vinyals, Nando de Freitas ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
187,
|
| 19 |
+
143,
|
| 20 |
+
750,
|
| 21 |
+
193
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "DeepMind & Google yutianc@google.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
184,
|
| 30 |
+
204,
|
| 31 |
+
362,
|
| 32 |
+
232
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
268,
|
| 43 |
+
544,
|
| 44 |
+
284
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "We present a meta-learning approach for adaptive text-to-speech (TTS) with few data. During training, we learn a multi-speaker model using a shared conditional WaveNet core and independent learned embeddings for each speaker. The aim of training is not to produce a neural network with fixed weights, which is then deployed as a TTS system. Instead, the aim is to produce a network that requires few data at deployment time to rapidly adapt to new speakers. We introduce and benchmark three strategies: (i) learning the speaker embedding while keeping the WaveNet core fixed, (ii) fine-tuning the entire architecture with stochastic gradient descent, and (iii) predicting the speaker embedding with a trained neural network encoder. The experiments show that these approaches are successful at adapting the multi-speaker neural network to new speakers, obtaining state-of-the-art results in both sample naturalness and voice similarity with merely a few minutes of audio data from new speakers. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
304,
|
| 54 |
+
764,
|
| 55 |
+
484
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
520,
|
| 66 |
+
334,
|
| 67 |
+
535
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Training a large model with lots of data and subsequently deploying this model to carry out classification or regression is an important and common methodology in machine learning. It has been particularly successful in speech recognition (Hinton et al., 2012), machine translation (Wu et al., 2016) and image recognition (Krizhevsky et al., 2012; Szegedy et al., 2015). In this textto-speech (TTS) work, we are instead interested in few-shot meta-learning. Here the objective of training with many data is not to learn a fixed-parameter classifier, but rather to learn a “prior” neural network. This prior TTS network can be adapted rapidly, using few data, to produce TTS systems for new speakers at deployment time. That is, the intention is not to learn a fixed final model, but rather to learn a model prior that harnesses few data at deployment time to learn new behaviours rapidly. The output of training is not longer a fixed model, but rather a fast learner. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
554,
|
| 77 |
+
825,
|
| 78 |
+
693
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Biology provides motivation for this line of research. It may be argued that evolution is a slow adaptation process that has resulted in biological machines with the ability to adapt rapidly to new data during their lifetimes. These machines are born with strong priors that facilitate rapid learning. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
700,
|
| 88 |
+
825,
|
| 89 |
+
742
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "We consider a meta-learning approach where the model has two types of parameters: task-dependent parameters and task-independent parameters. During training, we learn all of these parameters but discard the task-dependent parameters for deployment. The goal is to use few data to learn the task-dependent parameters for new tasks rapidly. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
750,
|
| 99 |
+
823,
|
| 100 |
+
805
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Task-dependent parameters play a similar role to latent variables in classical probabilistic graphical models. Intuitively, these variables introduce flexibility, thus making it easier to learn the taskindependent parameters. For example, in classical HMMs, knowing the latent variables results in a simple learning problem of estimating the parameters of an exponential-family distribution. In neural networks, this approach also facilitates learning when there is clear data diversity and categorization. We show this for adaptive TTS (Dutoit, 1997; Taylor, 2009). In this setting, speakers correspond to tasks. During training we have many speakers, and it is therefore helpful to have task-dependent parameters to capture speaker-specific voice styles. At the same time, it is useful to have a large model with shared parameters to capture the generic process of mapping text to speech. To this end, we employ the WaveNet model. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
813,
|
| 110 |
+
825,
|
| 111 |
+
924
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "image",
|
| 117 |
+
"img_path": "images/9f5d981002deb733043323407a9d395f743198a87bba66a17a9ed65b562437be.jpg",
|
| 118 |
+
"image_caption": [
|
| 119 |
+
"Figure 1: Architecture of the WaveNet model for few-shot voice adaptation. "
|
| 120 |
+
],
|
| 121 |
+
"image_footnote": [],
|
| 122 |
+
"bbox": [
|
| 123 |
+
178,
|
| 124 |
+
98,
|
| 125 |
+
823,
|
| 126 |
+
277
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
334,
|
| 136 |
+
823,
|
| 137 |
+
363
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "WaveNet (van den Oord et al., 2016) is an autoregressive generative model for audio waveforms that has yielded state-of-art performance in speech synthesis. This model was later modified for real-time speech generation via probability density distillation into a feed-forward model (van den Oord et al., 2017). A fundamental limitation of WaveNet is the need for hours of training data for each speaker. In this paper we describe a new WaveNet training procedure that facilitates adaptation to new speakers, allowing the synthesis of new voices from no more than 10 minutes of data with high sample quality. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
369,
|
| 147 |
+
826,
|
| 148 |
+
454
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "We propose several extensions of WaveNet for sample-efficient adaptive TTS. First, we present two non-parametric adaptation methods that involve fine-tuning either the speaker embeddings only or all the model parameters given few data from a new speaker. Second, we present a parametric textindependent approach whereby an auxiliary network is trained to predict new speaker embeddings. ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
174,
|
| 157 |
+
460,
|
| 158 |
+
825,
|
| 159 |
+
517
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "The experiments will show that all the proposed approaches, when provided with just a few seconds or minutes of recording, can generate high-fidelity utterances that closely resemble the vocal tract characteristics of a demonstration speaker, particularly when the entire model is fine-tuned end-to-end. When fine-tuning by first estimating the speaker embedding and subsequently fine-tuning the entire model, we achieve state-of-the-art results in terms of sample naturalness and voice similarity to target speakers. These results are robust across speech datasets recorded under different conditions and, moreover, we demonstrate that the generated samples are capable of confusing the state-of-the-art text-independent speaker verification system (Wan et al., 2018). ",
|
| 166 |
+
"bbox": [
|
| 167 |
+
173,
|
| 168 |
+
523,
|
| 169 |
+
825,
|
| 170 |
+
636
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "TTS techniques require hours of high-quality recordings, collected in controlled environments, for each new voice style. Given this high cost, reducing the length of the training dataset could be valuable. For example, it is likely to be very beneficial when attempting to restore the voices of patients who suffer from voice-impairing medical conditions. In these cases, long high quality recordings are scarce. ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
174,
|
| 179 |
+
642,
|
| 180 |
+
825,
|
| 181 |
+
712
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "2 WAVENET ARCHITECTURE ",
|
| 188 |
+
"text_level": 1,
|
| 189 |
+
"bbox": [
|
| 190 |
+
176,
|
| 191 |
+
733,
|
| 192 |
+
428,
|
| 193 |
+
750
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 1
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "WaveNet is an autoregressive model that factorizes the joint probability distribution of a waveform, $\\mathbf { x } = \\{ x _ { 1 } , \\dots , x _ { T } \\}$ , into a product of conditional distributions using the probabilistic chain rule: ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
171,
|
| 202 |
+
765,
|
| 203 |
+
825,
|
| 204 |
+
795
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 1
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "equation",
|
| 210 |
+
"img_path": "images/9e53e45896942f70b51e2a9ec83b374879e319d72bef4afd0082229a1dac204a.jpg",
|
| 211 |
+
"text": "$$\np ( \\mathbf { x } | \\mathbf { h } ; \\mathbf { w } ) = \\prod _ { t = 1 } ^ { T } p ( x _ { t } | \\mathbf { x } _ { 1 : t - 1 } , \\mathbf { h } ; \\mathbf { w } ) ,\n$$",
|
| 212 |
+
"text_format": "latex",
|
| 213 |
+
"bbox": [
|
| 214 |
+
377,
|
| 215 |
+
803,
|
| 216 |
+
619,
|
| 217 |
+
847
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 1
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "where $x _ { t }$ is the $t$ -th timestep sample, and $\\mathbf { h }$ and w are respectively the conditioning inputs and parameters of the model. To train a multi-speaker WaveNet, the conditioning inputs $\\mathbf { h }$ consist of the speaker identity $s$ , the linguistic features l, and the logarithmic fundamental frequency $\\mathbf { f } _ { 0 }$ values. l encodes the sequence of phonemes derived from the input text, and $\\mathbf { f } _ { 0 }$ controls the dynamics of the pitch in the generated utterance. Given the speaker identity $s$ for each utterance in the dataset, the ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
174,
|
| 226 |
+
853,
|
| 227 |
+
825,
|
| 228 |
+
924
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 1
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "image",
|
| 234 |
+
"img_path": "images/deb042a920784a5e2ca8a31aa69fc598e17c2847ff8bc9195a8edc4979b3a723.jpg",
|
| 235 |
+
"image_caption": [
|
| 236 |
+
"Figure 2: Training (slow, lots of data), adaptation (fast, few data) and inference stages for the SEAALL architecture. The components with bold pink outlines are fine-tuned during the adaptation phase. The purpose of training is to produce a prior. This prior is combined with few data during adaptation to solve a new task. This adapted model is then deployed in the final inference stage. "
|
| 237 |
+
],
|
| 238 |
+
"image_footnote": [],
|
| 239 |
+
"bbox": [
|
| 240 |
+
173,
|
| 241 |
+
102,
|
| 242 |
+
825,
|
| 243 |
+
215
|
| 244 |
+
],
|
| 245 |
+
"page_idx": 2
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "text",
|
| 249 |
+
"text": "model is expressed as: ",
|
| 250 |
+
"bbox": [
|
| 251 |
+
174,
|
| 252 |
+
310,
|
| 253 |
+
321,
|
| 254 |
+
324
|
| 255 |
+
],
|
| 256 |
+
"page_idx": 2
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "equation",
|
| 260 |
+
"img_path": "images/e0a9d1cb1b6c97dfa272b8fda95d9c346ca558cc89278112b4d95a33062d0b9d.jpg",
|
| 261 |
+
"text": "$$\np ( \\mathbf x | \\mathbf I , \\mathbf f _ { 0 } ; \\mathbf e _ { s } , \\mathbf w ) = \\prod _ { t = 1 } ^ { T } p ( x _ { t } | \\mathbf x _ { 1 : t - 1 } , \\mathbf I , \\mathbf f _ { 0 } ; \\mathbf e _ { s } , \\mathbf w ) ,\n$$",
|
| 262 |
+
"text_format": "latex",
|
| 263 |
+
"bbox": [
|
| 264 |
+
339,
|
| 265 |
+
332,
|
| 266 |
+
656,
|
| 267 |
+
375
|
| 268 |
+
],
|
| 269 |
+
"page_idx": 2
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"type": "text",
|
| 273 |
+
"text": "where a table of speaker embedding vectors $\\mathbf { e } _ { s }$ (Embedding in Figure 1) is learned alongside the standard WaveNet parameters. These vectors capture salient voice characteristics across individual speakers, and provide a convenient mechanism for generalizing WaveNet to the few-shot adaptation setting in this paper. The linguistic features l and fundamental frequency values $\\mathbf { f } _ { 0 }$ are both time-series with a lower sampling frequency than the waveform. Thus, to be used as local conditioning variables they are upsampled by a transposed convolutional network. During training, l and $\\mathbf { f } _ { 0 }$ are extracted by signal processing methods from pairs of training utterance and transcript, and during testing, those values are predicted from text by existing models (Zen et al., 2016). ",
|
| 274 |
+
"bbox": [
|
| 275 |
+
173,
|
| 276 |
+
381,
|
| 277 |
+
825,
|
| 278 |
+
493
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 2
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "text",
|
| 284 |
+
"text": "3 FEW-SHOT ADAPTATION WITH WAVENET ",
|
| 285 |
+
"text_level": 1,
|
| 286 |
+
"bbox": [
|
| 287 |
+
174,
|
| 288 |
+
513,
|
| 289 |
+
547,
|
| 290 |
+
530
|
| 291 |
+
],
|
| 292 |
+
"page_idx": 2
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"type": "text",
|
| 296 |
+
"text": "In recent years, a large body of literature uses large datasets to train models to learn an input-output mapping that is then used for inference. In contrast, few-shot meta-learning introduces an additional step, adaptation. In this meta-learning setting, the purpose of training becomes to learn a prior. During adaptation, this prior is combined with few data to rapidly learn a new skill; in this case adapting to a new speakers’ voice style. Finally, the new skill is deployed, which in this paper we are referring to as inference. These three stages — training, adaptation and inference — are illustrated in Figure 2. ",
|
| 297 |
+
"bbox": [
|
| 298 |
+
174,
|
| 299 |
+
545,
|
| 300 |
+
825,
|
| 301 |
+
630
|
| 302 |
+
],
|
| 303 |
+
"page_idx": 2
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"type": "text",
|
| 307 |
+
"text": "We present two multi-speaker WaveNet extensions for few-shot voice adaptation. First, we introduce a non-parametric model fine-tuning approach, which involves adapting either the speaker embeddings or all the model parameters using held-aside demonstration data. Second, and for comparison purposes, we use a parametric approach whereby an auxiliary network is trained to predict the embedding vector of a new speaker using the demonstration data. ",
|
| 308 |
+
"bbox": [
|
| 309 |
+
174,
|
| 310 |
+
636,
|
| 311 |
+
825,
|
| 312 |
+
707
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 2
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "3.1 NON-PARAMETRIC FEW-SHOT ADAPTATION VIA FINE-TUNING ",
|
| 319 |
+
"text_level": 1,
|
| 320 |
+
"bbox": [
|
| 321 |
+
174,
|
| 322 |
+
724,
|
| 323 |
+
640,
|
| 324 |
+
738
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 2
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "Inspired by few-shot learning we first pre-train a multi-speaker conditional WaveNet model on a large and diverse dataset, as described in Section 2. Subsequently, we fine-tune the model parameters by retraining with respect to held-aside adaptation data. ",
|
| 331 |
+
"bbox": [
|
| 332 |
+
174,
|
| 333 |
+
750,
|
| 334 |
+
825,
|
| 335 |
+
792
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 2
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "Training this WaveNet model to maximize the conditional log-likelihood of the generated audio jointly optimizes both the set of speaker parameters $\\left\\{ \\mathbf { e } _ { s } \\right\\}$ and the shared WaveNet core parameters w. Next, we extend this method to a new speaker by extracting the l and $\\mathbf { f } _ { 0 }$ features from their adaptation data waveforms, and randomly initializing a new embedding vector e. We then optimize e such that the demonstration $\\{ \\mathbf { x } _ { \\mathrm { d e m o } } ^ { ( 1 ) } , \\hdots , \\mathbf { x } _ { \\mathrm { d e m o } } ^ { ( n ) } \\}$ , paired with features $\\{ ( \\mathbf { l } _ { \\mathrm { d e m o } } ^ { ( 1 ) } , \\mathbf { f } _ { 0 , \\mathrm { d e m o } } ^ { ( 1 ) } ) , \\dots , ( \\mathbf { l } _ { \\mathrm { d e m o } } ^ { ( n ) } , \\mathbf { f } _ { 0 , \\mathrm { d e m o } } ^ { ( n ) } ) \\}$ , are likely under the model with w fixed (SEA-EMB): ",
|
| 342 |
+
"bbox": [
|
| 343 |
+
173,
|
| 344 |
+
799,
|
| 345 |
+
825,
|
| 346 |
+
888
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 2
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "equation",
|
| 352 |
+
"img_path": "images/86de3e25710e841d481feb582ffcccae9eeebc2cbf34daa2fe7bcc9254459e9a.jpg",
|
| 353 |
+
"text": "$$\n\\mathbf { e } _ { \\mathrm { d e m o } } = \\underset { \\mathbf { e } } { \\arg \\operatorname* { m a x } } \\sum _ { i } \\log p ( \\mathbf { x } _ { \\mathrm { d e m o } } ^ { ( i ) } | \\mathbf { l } _ { \\mathrm { d e m o } } ^ { ( i ) } , \\mathbf { f } _ { 0 , \\mathrm { d e m o } } ^ { ( i ) } ; \\mathbf { e } , \\mathbf { w } ) .\n$$",
|
| 354 |
+
"text_format": "latex",
|
| 355 |
+
"bbox": [
|
| 356 |
+
321,
|
| 357 |
+
895,
|
| 358 |
+
674,
|
| 359 |
+
928
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 2
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "text",
|
| 365 |
+
"text": "Alternatively, all of the model parameters may be additionally fine-tuned (SEA-ALL): ",
|
| 366 |
+
"bbox": [
|
| 367 |
+
174,
|
| 368 |
+
103,
|
| 369 |
+
738,
|
| 370 |
+
118
|
| 371 |
+
],
|
| 372 |
+
"page_idx": 3
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"type": "equation",
|
| 376 |
+
"img_path": "images/0b5350e891667241cead504bcf6f484314ae91b18ce03b1c53de2aaf5abff5da.jpg",
|
| 377 |
+
"text": "$$\n( \\mathbf { e } _ { \\mathrm { d e m o } } , \\mathbf { w } _ { \\mathrm { f i n e t u n e d } } ) = \\underset { \\mathbf { e } , \\mathbf { w } } { \\arg \\operatorname* { m a x } } \\sum _ { i } \\log p ( \\mathbf { x } _ { \\mathrm { d e m o } } ^ { ( i ) } | \\mathbf { l } _ { \\mathrm { d e m o } } ^ { ( i ) } , \\mathbf { f } _ { 0 , \\mathrm { d e m o } } ^ { ( i ) } ; \\mathbf { e } , \\mathbf { w } ) .\n$$",
|
| 378 |
+
"text_format": "latex",
|
| 379 |
+
"bbox": [
|
| 380 |
+
282,
|
| 381 |
+
125,
|
| 382 |
+
712,
|
| 383 |
+
159
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 3
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "text",
|
| 389 |
+
"text": "Both methods are non-parametric approaches to few-shot voice adaptation as the number of embedding vectors scales with the number of speakers. However, the training processes are slightly different. Because the SEA-EMB method optimizes only a low-dimensional vector, it is far less prone to overfitting, and we are therefore able to retrain the model to convergence even with mere seconds of adaptation data. By contrast, the SEA-ALL has many more parameters that might overfit to the adaptation data. We therefore hold out $1 0 \\%$ of our demonstration data for calculating a standard early termination criterion. We also initialize e with the optimal value from the SEA-EMB method, and we find this initialization significantly improves the generalization performance even with a few seconds of adaptation data. ",
|
| 390 |
+
"bbox": [
|
| 391 |
+
173,
|
| 392 |
+
171,
|
| 393 |
+
825,
|
| 394 |
+
297
|
| 395 |
+
],
|
| 396 |
+
"page_idx": 3
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"type": "text",
|
| 400 |
+
"text": "3.2 PARAMETRIC FEW-SHOT ADAPTATION USING AN EMBEDDING ENCODER",
|
| 401 |
+
"text_level": 1,
|
| 402 |
+
"bbox": [
|
| 403 |
+
174,
|
| 404 |
+
315,
|
| 405 |
+
709,
|
| 406 |
+
329
|
| 407 |
+
],
|
| 408 |
+
"page_idx": 3
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"type": "text",
|
| 412 |
+
"text": "In contrast to the non-parametric approach, whereby a different embedding vector is fitted for each speaker, one can train an auxiliary encoder network to predict an embedding vector for a new speaker given their demonstration data. Specifically, we model: ",
|
| 413 |
+
"bbox": [
|
| 414 |
+
173,
|
| 415 |
+
340,
|
| 416 |
+
828,
|
| 417 |
+
383
|
| 418 |
+
],
|
| 419 |
+
"page_idx": 3
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"type": "equation",
|
| 423 |
+
"img_path": "images/4a43fd8120af53c6f975f67174d46b28f6fce5969ab232e04f996ac2d13721b4.jpg",
|
| 424 |
+
"text": "$$\np ( \\mathbf { x } | \\mathbf { l } , \\mathbf { f } _ { 0 } , \\mathbf { x } _ { \\mathrm { d e m o } } , \\mathbf { l } _ { \\mathrm { d e m o } } , \\mathbf { f } _ { 0 , \\mathrm { d e m o } } ; \\mathbf { w } ) = \\prod _ { t = 1 } ^ { T } p ( x _ { t } | \\mathbf { x } _ { 1 : t - 1 } , \\mathbf { l } , \\mathbf { f } _ { 0 } ; \\mathbf { e } ( \\mathbf { x } _ { \\mathrm { d e m o } } , \\mathbf { l } _ { \\mathrm { d e m o } } , \\mathbf { f } _ { 0 , \\mathrm { d e m o } } ) , \\mathbf { w } ) ,\n$$",
|
| 425 |
+
"text_format": "latex",
|
| 426 |
+
"bbox": [
|
| 427 |
+
220,
|
| 428 |
+
390,
|
| 429 |
+
777,
|
| 430 |
+
434
|
| 431 |
+
],
|
| 432 |
+
"page_idx": 3
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"type": "text",
|
| 436 |
+
"text": "where for each training example, we include a randomly selected demonstration utterance from that speaker in addition to the regular conditioning inputs. The full WaveNet model and the encoder network $\\mathbf { e } ( \\cdot )$ are trained together from scratch. We refer the reader to the Appendix for further architectural details. This approach (SEA-ENC) exhibits the advantage of being trained in a transcriptindependent setting given only the input waveform, $\\mathbf { e } ( \\mathbf { x } _ { \\mathrm { d e m o } } )$ , and requires negligible computation at adaptation time. However, the learned encoder can also introduce bias when fitting an embedding due to its limited network capacity. As an example, Li et al. (2017) demonstrated a typical scenario whereby speaker identity information can be very quickly extracted with deep models from audio signals. Nonetheless, that the model is less capable of effectively leveraging additional training than approaches based on statistical methods. ",
|
| 437 |
+
"bbox": [
|
| 438 |
+
173,
|
| 439 |
+
439,
|
| 440 |
+
826,
|
| 441 |
+
579
|
| 442 |
+
],
|
| 443 |
+
"page_idx": 3
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"type": "text",
|
| 447 |
+
"text": "3.3 REMOVING IDENTITY-RELATED INFORMATION ",
|
| 448 |
+
"text_level": 1,
|
| 449 |
+
"bbox": [
|
| 450 |
+
174,
|
| 451 |
+
597,
|
| 452 |
+
535,
|
| 453 |
+
611
|
| 454 |
+
],
|
| 455 |
+
"page_idx": 3
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"type": "text",
|
| 459 |
+
"text": "The linguistic features and fundamental frequencies which are used as inputs contain information specific to an individual speaker. As an example, the average voice pitch in the fundamental frequency sequence is highly speaker-dependent. Instead, we would like these features to be as speaker-independent as possible such that identity is modeled via global conditioning on the speaker embedding. To achieve this, we normalize the fundamental frequency values to have zero mean and unit variance separately for each speaker during training, denoted as $\\hat { \\bf f } _ { 0 } : = ( { \\bf f } - \\mathbb { E } [ { \\bf f } _ { s } ] ) / \\mathrm { s t d } ( { \\bf f } _ { s } )$ . As mentioned earlier, at test time, we use an existing model (Zen et al., 2016) to predict $( 1 , \\hat { \\bf f } _ { 0 } )$ . ",
|
| 460 |
+
"bbox": [
|
| 461 |
+
173,
|
| 462 |
+
621,
|
| 463 |
+
825,
|
| 464 |
+
726
|
| 465 |
+
],
|
| 466 |
+
"page_idx": 3
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"type": "text",
|
| 470 |
+
"text": "4 RELATED WORK ",
|
| 471 |
+
"text_level": 1,
|
| 472 |
+
"bbox": [
|
| 473 |
+
176,
|
| 474 |
+
746,
|
| 475 |
+
341,
|
| 476 |
+
761
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 3
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "Few-shot learning to build models, where one can rapidly learn using only a small amount of available data, is one of the most important open challenges in machine learning. Recent studies have attempted to address the problem of few-shot learning by using deep neural networks, and they have shown promising results on classification tasks in vision (Santoro et al., 2016; Shyam et al., 2017) and language (Vinyals et al., 2016). Few-shot learning can also be leveraged in reinforcement learning, such as by imitating human Atari gameplay from a single recorded action sequence (Pohlen et al., 2018) or online video (Aytar et al., 2018). ",
|
| 483 |
+
"bbox": [
|
| 484 |
+
174,
|
| 485 |
+
776,
|
| 486 |
+
825,
|
| 487 |
+
875
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 3
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "text",
|
| 493 |
+
"text": "Meta-learning offers a sound framework for addressing few-shot learning. Here, an expensive learning process results in machines with the ability to learn rapidly from few data. Meta-learning has a long history (Harlow, 1949; Thrun and Pratt, 2012), and recent studies include efforts to learn optimization processes (Andrychowicz et al., 2016; Chen et al., 2017) that have been shown to extend naturally to the few-shot setting (Ravi and Larochelle, 2016). An alternative approach is model-agnostic meta learning (MAML) (Finn et al., 2017a), which differs by using a fixed optimizer and learning a set of base parameters that can be adapted to minimize any task loss by few steps of gradient descent. This method has shown promise in robotics (Finn et al., 2017b; Yu et al., 2018). ",
|
| 494 |
+
"bbox": [
|
| 495 |
+
176,
|
| 496 |
+
882,
|
| 497 |
+
825,
|
| 498 |
+
924
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 3
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "text",
|
| 504 |
+
"text": "",
|
| 505 |
+
"bbox": [
|
| 506 |
+
174,
|
| 507 |
+
103,
|
| 508 |
+
825,
|
| 509 |
+
172
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 4
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "In generative modeling, few-shot learning has been addressed from several perspectives, including matching networks (Bartunov and Vetrov, 2017) and variable inference for memory addressing (Bornschein et al., 2017). Rezende et al. (2016) developed a sequential generative model that extended the Deep Recurrent Attention Writer (DRAW) model (Gregor et al., 2015), and Reed et al. (2018) extended PixelCNN (Van Oord et al., 2016) with neural attention for few-shot auto-regressive density modeling. Veness et al. (2017) presented a gated linear model able to model complex densities from a single pass of a limited dataset. ",
|
| 516 |
+
"bbox": [
|
| 517 |
+
174,
|
| 518 |
+
180,
|
| 519 |
+
825,
|
| 520 |
+
277
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 4
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"text": "Early attempts of few-shot adaptation involved the attention models of Reed et al. (2018) and MAML (Finn et al., 2017a), but we found both of these strategies failed to learn informative speaker embedding in our preliminary experiments. ",
|
| 527 |
+
"bbox": [
|
| 528 |
+
176,
|
| 529 |
+
285,
|
| 530 |
+
825,
|
| 531 |
+
327
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 4
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"text": "There is growing interest in developing neural TTS models that can be trained end-to-end without the need for hand-crafted representations. In this study we focus on extending the autoregressive WaveNet model (van den Oord et al., 2016; 2017) to the few-shot learning setting to adapt to speakers that were not presented at training time. Other recent neural TTS models include Tacotron 2 (SkerryRyan et al., 2018) (building on (Wang et al., 2017)) which uses WaveNet as a vocoder to invert mel-spectrograms generated by an attentive sequence-to-sequence model. DeepVoice 2 (Gibiansky et al., 2017) (building on (Arık et al., 2017)) introduced a multi-speaker variation of Tacotron that learns a low-dimensional embedding for each speaker, which was further extended in DeepVoice 3 (Ping et al., 2018) to a 2,400 multi-speaker scenario. Unlike WaveNet and DeepVoice, the Char2Wav (Sotelo et al., 2017) and VoiceLoop (Taigman et al., 2018) models produce World Vocoder Features (Morise et al., 2016) instead of generating raw audio signals. ",
|
| 538 |
+
"bbox": [
|
| 539 |
+
174,
|
| 540 |
+
334,
|
| 541 |
+
825,
|
| 542 |
+
487
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 4
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "Although many of these systems have produced high-quality samples for speakers present in the training set, generalizing to new speakers given only a few seconds of audio remains a challenge. There have been several concurrent works to address this few-shot learning problem. The VoiceLoop model introduced a novel memory-based architecture that was extended by Nachmani et al. (2018) to few-shot voice style adaptation, by introducing an auxiliary fitting network that predicts the embedding of a new speaker. Jia et al. (2018) extended the Tacotron model for one-shot speaker adaptation by conditioning on a speaker embedding vector extracted from a pretrained speaker identity model of Wan et al. (2018). The most similar approached to our work was proposed by Arik et al. (2018) for the DeepVoice 3 model. They considered both predicting the embedding with an encoding network and fitting the embedding based on a small amount of adaptation data, but the adaptation was applied to a prediction model for mel-spectrograms with a fixed vocoder. ",
|
| 549 |
+
"bbox": [
|
| 550 |
+
174,
|
| 551 |
+
493,
|
| 552 |
+
825,
|
| 553 |
+
646
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 4
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "5 EVALUATION ",
|
| 560 |
+
"text_level": 1,
|
| 561 |
+
"bbox": [
|
| 562 |
+
176,
|
| 563 |
+
667,
|
| 564 |
+
313,
|
| 565 |
+
683
|
| 566 |
+
],
|
| 567 |
+
"page_idx": 4
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"type": "text",
|
| 571 |
+
"text": "In this section, we evaluate the quality of samples of SEA-ALL, SEA-EMB and SEA-ENC. We first measure the naturalness of the generated utterances using the standard Mean Opinion Score (MOS) procedure. Then, we evaluate the similarity of generated and real samples using the subjective MOS test and objectively using a speaker verification system (Wan et al., 2018). Finally, we study these results varying the size of the adaptation dataset. ",
|
| 572 |
+
"bbox": [
|
| 573 |
+
174,
|
| 574 |
+
699,
|
| 575 |
+
825,
|
| 576 |
+
768
|
| 577 |
+
],
|
| 578 |
+
"page_idx": 4
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"type": "text",
|
| 582 |
+
"text": "5.1 EXPERIMENTAL SETUP ",
|
| 583 |
+
"text_level": 1,
|
| 584 |
+
"bbox": [
|
| 585 |
+
176,
|
| 586 |
+
786,
|
| 587 |
+
372,
|
| 588 |
+
800
|
| 589 |
+
],
|
| 590 |
+
"page_idx": 4
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "text",
|
| 594 |
+
"text": "We train a WaveNet model for each of our three methods using the same dataset, which combines the high-quality LibriSpeech audiobook corpus (Panayotov et al., 2015) and a proprietary speech corpus. The LibriSpeech dataset consists of 2302 speakers from the train speaker subsets and approximately 500 hours of utterances, sampled at a frequency of $1 6 \\mathrm { k H z }$ . The proprietary speech corpus consists of 10 American English speakers and approximately 300 hours of utterances, and we down-sample the recording frequency to $1 6 \\mathrm { k H z }$ to match LibriSpeech. The multi-speaker WaveNet model has the same architecture as van den Oord et al. (2016) except that we use a 200-dimensional speaker embedding space to model the large diversity of voices. ",
|
| 595 |
+
"bbox": [
|
| 596 |
+
174,
|
| 597 |
+
811,
|
| 598 |
+
825,
|
| 599 |
+
924
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 4
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "table",
|
| 605 |
+
"img_path": "images/4921a10ea8d363f0cdff19a1af76038c9c75a884391ca719bf28d041d06b4b4d.jpg",
|
| 606 |
+
"table_caption": [
|
| 607 |
+
"Table 1: Naturalness of the adapted voices using a 5-scale MOS score (higher is better) with $9 5 \\%$ confidence interval on the LibriSpeech and VCTK held-out adaptation datasets. Numbers in bold are the best few-shot learning results on each dataset without statistically significant difference. van den Oord et al. (2016) was trained with 24-hour production quality data, Nachmani et al. (2018) used all samples of each new speaker, Arik et al. (2018) used 10 samples, and Jia et al. (2018) used 5 seconds. "
|
| 608 |
+
],
|
| 609 |
+
"table_footnote": [],
|
| 610 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=2>LibriSpeech</td><td rowspan=1 colspan=2>VCTK</td></tr><tr><td rowspan=1 colspan=1>Real utterance</td><td rowspan=1 colspan=2>4.38±0.04</td><td rowspan=1 colspan=2>4.45 ± 0.04</td></tr><tr><td rowspan=1 colspan=1>van den Oord et al. (2016)</td><td rowspan=1 colspan=4>4.21 ± 0.081</td></tr><tr><td rowspan=1 colspan=1>Nachmani et al. (2018)Arik et al. (2018)adapt embeddingadapt whole-modelencoding + fine-tuningJia et al. (2018)trained on LibriSpeech</td><td rowspan=1 colspan=2>2.53 ± 1.114.12 ± 0.05</td><td rowspan=1 colspan=2>3.66±0.842.67 ± 0.103.16 ± 0.092.99 ± 0.124.01 ± 0.06</td></tr><tr><td rowspan=1 colspan=1>Adaptation data size</td><td rowspan=1 colspan=1>10s</td><td rowspan=1 colspan=1><5m</td><td rowspan=1 colspan=1>10s</td><td rowspan=1 colspan=1><10m</td></tr><tr><td rowspan=3 colspan=1>SEA-ALL (ours)SEA-EMB (ours)SEA-ENC (ours)</td><td rowspan=1 colspan=1>3.94± 0.08</td><td rowspan=1 colspan=1>4.13± 0.06</td><td rowspan=1 colspan=1>3.92 ± 0.07</td><td rowspan=1 colspan=1>3.92± 0.07</td></tr><tr><td rowspan=2 colspan=1>3.86 ± 0.073.61 ± 0.06</td><td rowspan=1 colspan=1>3.95 ± 0.07</td><td rowspan=1 colspan=1>3.81 ± 0.07</td><td rowspan=2 colspan=1>3.82 ± 0.073.58 ± 0.06</td></tr><tr><td rowspan=1 colspan=1>3.56 ± 0.06</td><td rowspan=1 colspan=1>3.65 ± 0.06</td></tr></table>",
|
| 611 |
+
"bbox": [
|
| 612 |
+
171,
|
| 613 |
+
99,
|
| 614 |
+
826,
|
| 615 |
+
300
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 5
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "Our few-shot model performance is evaluated using two hold-out datasets. First, the LibriSpeech test corpus consists of 39 speakers, with an average of approximately 52 utterances and 5 minutes of audio per speaker. For every test speaker, we randomly split their demonstration utterances into an adaptation set for adapting our WaveNet models and a test set for evaluation. The subset of utterances used for early termination in Section 3.1 is chosen from the adaptation set. There are about 4.2 utterances on average per speaker in the test set and the rest in the adaptation set. Second, we consider a subset of the CSTR VCTK corpus (Veaux et al., 2017) consisting of 21 American English speakers, with approximately 368 utterances and 12 minutes of audio per speaker. We also apply the adaptation/test split with 10 utterances per speaker for test. We emphasize that no data from VCTK was presented to the model at training time. Since our underlying WaveNet model was trained on data largely from LibriSpeech (which was recorded under noisier conditions than VCTK), one might expect that the generated samples on the VCTK dataset contain characteristic artifacts that make generated samples easier to distinguish from real utterances. However, our evaluation using VCTK indicates that our model generalizes effectively and that such artifacts are not detectable. Synthetic utterances are provided on our demo webpage1. ",
|
| 622 |
+
"bbox": [
|
| 623 |
+
173,
|
| 624 |
+
407,
|
| 625 |
+
825,
|
| 626 |
+
616
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 5
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "It is worth mentioning, that SEA-ENC requires no adaptation time. Where for SEA-EMB, it takes $5 \\sim 1 0 k$ optimizing steps to fit the embedding vector, and an additional $1 0 0 \\sim 2 0 0$ steps to fine-tune the entire model using early stopping for SEA-ALL. ",
|
| 633 |
+
"bbox": [
|
| 634 |
+
174,
|
| 635 |
+
622,
|
| 636 |
+
825,
|
| 637 |
+
665
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 5
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "text",
|
| 643 |
+
"text": "5.2 NATURALNESS OF THE GENERATED SAMPLES (MOS) ",
|
| 644 |
+
"text_level": 1,
|
| 645 |
+
"bbox": [
|
| 646 |
+
174,
|
| 647 |
+
684,
|
| 648 |
+
583,
|
| 649 |
+
696
|
| 650 |
+
],
|
| 651 |
+
"page_idx": 5
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"type": "text",
|
| 655 |
+
"text": "We measure the quality of the generated samples by conducting a MOS test, whereby subjects are asked to rate the naturalness of generated utterances on a five-point Likert Scale (1: Bad, 2: Poor, 3: Fair, 4: Good, 5: Excellent). Furthermore, we compare with other published few-shot TTS systems systems, that were developed in parallel to this work. However, the literature uses varying combinations of training data and evaluation splits making comparison difficult. The results presented are from the closest experimental setups to ours. ",
|
| 656 |
+
"bbox": [
|
| 657 |
+
174,
|
| 658 |
+
709,
|
| 659 |
+
825,
|
| 660 |
+
792
|
| 661 |
+
],
|
| 662 |
+
"page_idx": 5
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"type": "text",
|
| 666 |
+
"text": "Table 1 presents MOS for the adaptation models compared to real utterances. Two different adaptation dataset sizes are considered; $T = 1 0$ seconds, and $T \\leq 5$ minutes for LibriSpeech ( $T \\leq 1 0$ minutes for VCTK). For reference on $1 6 \\mathrm { k H z }$ data, WaveNet trained on a 24-hour production quality speech dataset (van den Oord et al., 2016) achieves a score of 4.21, while for LibriSpeech our best few-shot model attains an MOS score of 4.13 using only 5 minutes of data given a pre-trained multi-speaker model. We note that both fine-tuning models produce overall “good” samples for both the LibriSpeech and VCTK test sets, with SEA-ALL outperforming SEA-EMB in all cases. SEA-ALL is on par with the state-of-the-art performance on both datasets. The addition of extra adaptation data beyond 10 seconds of audio helps performance on LibriSpeech but not VCTK, and the gap between our best model and the real utterance is also wider on VCTK, possibly due to the different recording conditions. ",
|
| 667 |
+
"bbox": [
|
| 668 |
+
174,
|
| 669 |
+
800,
|
| 670 |
+
825,
|
| 671 |
+
897
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 5
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "table",
|
| 677 |
+
"img_path": "images/dc5c78db6b7b761b604f9a2cb711b2c4ea68d39973c5a644457ac220033e675b.jpg",
|
| 678 |
+
"table_caption": [
|
| 679 |
+
"Table 2: Voice similarity of generated voices using a 5-scale MOS score (higher is better) with $9 5 \\%$ confidence interval on the LibriSpeech and VCTK held-out adaptation datasets. "
|
| 680 |
+
],
|
| 681 |
+
"table_footnote": [],
|
| 682 |
+
"table_body": "<table><tr><td>Dataset</td><td colspan=\"2\">LibriSpeech</td><td colspan=\"2\">VCTK</td></tr><tr><td>Real utterance</td><td colspan=\"2\">4.30 ± 0.08</td><td colspan=\"2\">4.59 ± 0.06</td></tr><tr><td>Jia et al. (2018) trained on LibriSpeech</td><td colspan=\"2\"></td><td colspan=\"2\"></td></tr><tr><td>Adaptation data size</td><td>3.03 ± 0.09 10s</td><td><5m</td><td>2.77 ± 0.08 10s</td><td><10m</td></tr><tr><td>SEA-ALL (ours)</td><td>3.41 ± 0.10</td><td>3.75 ± 0.09</td><td>3.51±0.10</td><td>3.97± 0.09</td></tr><tr><td>SEA-EMB (ours)</td><td>3.42± 0.10</td><td>3.56 ± 0.10</td><td>3.07 ±0.10</td><td>3.18 ± 0.10</td></tr><tr><td>SEA-ENC (ours)</td><td>2.47 ± 0.09</td><td>2.59 ± 0.09</td><td>2.07± 0.08</td><td>2.19 ±0.09</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr></table>",
|
| 683 |
+
"bbox": [
|
| 684 |
+
173,
|
| 685 |
+
99,
|
| 686 |
+
825,
|
| 687 |
+
217
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 6
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "text",
|
| 693 |
+
"text": "",
|
| 694 |
+
"bbox": [
|
| 695 |
+
174,
|
| 696 |
+
290,
|
| 697 |
+
825,
|
| 698 |
+
345
|
| 699 |
+
],
|
| 700 |
+
"page_idx": 6
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "text",
|
| 704 |
+
"text": "5.3 VOICE SIMILARITY (MOS) ",
|
| 705 |
+
"text_level": 1,
|
| 706 |
+
"bbox": [
|
| 707 |
+
176,
|
| 708 |
+
371,
|
| 709 |
+
401,
|
| 710 |
+
386
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 6
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "text",
|
| 716 |
+
"text": "Beside naturalness, we also measure the similarity of the generated and real voices. The quality of similarity is the main evaluation metric for the voice adaptation problem. We first follow the experiment setup of Jia et al. (2018) to run a MOS test for a subjective assessment and then use a speaker verification model for objective evaluation in the next section. ",
|
| 717 |
+
"bbox": [
|
| 718 |
+
174,
|
| 719 |
+
401,
|
| 720 |
+
825,
|
| 721 |
+
457
|
| 722 |
+
],
|
| 723 |
+
"page_idx": 6
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"type": "text",
|
| 727 |
+
"text": "In every trial of this test a subject is presented with a pair of utterances consisting of a real utterance and another real or generated utterance from the same speaker, and is asked to rate the similarity in voice identity using a five-scale score (1: Not at all similar, 2: Slightly similar, 3: Moderately similar, 4: Very similar, 5: Extremely similar). ",
|
| 728 |
+
"bbox": [
|
| 729 |
+
174,
|
| 730 |
+
464,
|
| 731 |
+
825,
|
| 732 |
+
520
|
| 733 |
+
],
|
| 734 |
+
"page_idx": 6
|
| 735 |
+
},
|
| 736 |
+
{
|
| 737 |
+
"type": "text",
|
| 738 |
+
"text": "Table 2 shows the MOS for real utterances and all the adaptation models under two adaptation data time settings on both datasets. Again, the SEA-ALL model outperforms the other two models, and the improvement over SEA-EMB scales with the amount of adaptation data. Particularly, the learned voices on the VCTK dataset achieve an average score of 3.97, demonstrating the generalization performance on a different dataset. As a rough comparisson, because of varying training setups, the state of the art system of Jia et al. (2018) achieves scores of 3.03 for LibriSpeech and 2.77 for VCTK when trained on LibriSpeech. Their model computes the embedding based on the $d$ -vector, similar to our SEA-ENC approach, and performs competitively for the one-shot learning setting, but its performance saturates with 5 seconds of adaptation data, as explained in Section 3.2. We note the gap of similarity scores between SEA-ALL and real utterances, which suggests that although the generated samples sound similar to the target speakers, humans can still tell the difference from real utterances. ",
|
| 739 |
+
"bbox": [
|
| 740 |
+
173,
|
| 741 |
+
527,
|
| 742 |
+
825,
|
| 743 |
+
693
|
| 744 |
+
],
|
| 745 |
+
"page_idx": 6
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"type": "text",
|
| 749 |
+
"text": "5.4 VOICE SIMILARITY (SPEAKER VERIFICATION) ",
|
| 750 |
+
"text_level": 1,
|
| 751 |
+
"bbox": [
|
| 752 |
+
174,
|
| 753 |
+
720,
|
| 754 |
+
531,
|
| 755 |
+
734
|
| 756 |
+
],
|
| 757 |
+
"page_idx": 6
|
| 758 |
+
},
|
| 759 |
+
{
|
| 760 |
+
"type": "text",
|
| 761 |
+
"text": "We also apply the state-of-the-art text independent speaker verification (TI-SV) model of (Wan et al., 2018) to objectively assess whether the generated samples preserve the acoustic features of the speakers. We calculate the TI-SV $d$ -vector embeddings for generated and real voices. In Figure 3, we visualize the 2-dimensional projection of the $d$ -vectors for a SEA-ALL model trained on $T \\leq 5$ minutes of data on the LibriSpeech dataset, and $T \\leq 1 0$ minutes on VCTK. There are clear clusters on both datasets, with a strikingly large inter-cluster distance and low intra-cluster separation. This shows both (1) an ease of correctly identifying the speaker associated with a given generated utterance, and (2) the difficulty in differentiating real from synthetic samples. ",
|
| 762 |
+
"bbox": [
|
| 763 |
+
174,
|
| 764 |
+
750,
|
| 765 |
+
825,
|
| 766 |
+
861
|
| 767 |
+
],
|
| 768 |
+
"page_idx": 6
|
| 769 |
+
},
|
| 770 |
+
{
|
| 771 |
+
"type": "text",
|
| 772 |
+
"text": "A similar figure is presented in (Jia et al., 2018), but there the generated and real samples do not overlap. This indicates that the method presented in this paper generates voices that are more indistinguishable from real ones, when measured with the same verification system. In the following subsections, we further analyze these results. ",
|
| 773 |
+
"bbox": [
|
| 774 |
+
174,
|
| 775 |
+
867,
|
| 776 |
+
823,
|
| 777 |
+
922
|
| 778 |
+
],
|
| 779 |
+
"page_idx": 6
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"type": "image",
|
| 783 |
+
"img_path": "images/25835d9a056887378597e359294a34bd5ae213767dfcfe9fd94b57f428e10b4e.jpg",
|
| 784 |
+
"image_caption": [
|
| 785 |
+
"Figure 3: t-SNE visualization of the $d$ -vector embeddings of real and SEA-ALL-generated utterances, for both the LibriSpeech ( $T \\leq 5$ mins) and VCTK ( $T \\leq 1 0$ mins) evaluation datasets. "
|
| 786 |
+
],
|
| 787 |
+
"image_footnote": [],
|
| 788 |
+
"bbox": [
|
| 789 |
+
323,
|
| 790 |
+
103,
|
| 791 |
+
692,
|
| 792 |
+
272
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 7
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "image",
|
| 798 |
+
"img_path": "images/98f0bc71a273760d499d53be792dbb599763f0ee6acccf593e6c6e3964483cb9.jpg",
|
| 799 |
+
"image_caption": [
|
| 800 |
+
"Figure 4: Detection error trade-off (DET) curve for speaker verification in percentage, using the TI-SV speaker verification model (Wan et al., 2018). The utterances were generated using $T \\leq 5$ and $T \\leq 1 0$ minute samples from LibriSpeech and VCTK respectively. EER is marked with a dot. "
|
| 801 |
+
],
|
| 802 |
+
"image_footnote": [],
|
| 803 |
+
"bbox": [
|
| 804 |
+
256,
|
| 805 |
+
337,
|
| 806 |
+
738,
|
| 807 |
+
531
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 7
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "5.4.1 DISCERNING DIFFERENT SPEAKERS",
|
| 814 |
+
"text_level": 1,
|
| 815 |
+
"bbox": [
|
| 816 |
+
176,
|
| 817 |
+
622,
|
| 818 |
+
473,
|
| 819 |
+
636
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 7
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"text": "We first quantify whether generated utterances are attributed to the correct speaker. Following common practice in speaker verification (Wan et al., 2018), we select the hold-out test set of real utterances from test speakers as the enrollment set and compute the centroid of the $d$ -vectors for each speaker $\\mathbf { c } _ { i }$ . We then use the adaptation set of test speakers as the verification set. For every verification utterance, we compute the cosine similarity between its $d$ -vector $\\mathbf { v }$ and a randomly chosen centroid $\\mathbf { c } _ { i }$ . The utterance is accepted as one from speaker $i$ if the similarity is exceeds a given threshold. We repeat the experiments with the same enrollment set and replace the verification set with samples generated by each adaptation method under different data size settings. ",
|
| 826 |
+
"bbox": [
|
| 827 |
+
173,
|
| 828 |
+
650,
|
| 829 |
+
825,
|
| 830 |
+
762
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 7
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "table",
|
| 836 |
+
"img_path": "images/e110dca8ece57b018e6d23948cd379b5502575ac5b9c45d1f70335d4d32a5739.jpg",
|
| 837 |
+
"table_caption": [
|
| 838 |
+
"Table 3: Equal error rate (EER) of real and few-shot adapted voice samples for evaluation of voice similarity. Varying adaptation dataset sizes were considered. "
|
| 839 |
+
],
|
| 840 |
+
"table_footnote": [],
|
| 841 |
+
"table_body": "<table><tr><td>Dataset</td><td colspan=\"3\">LibriSpeech</td><td colspan=\"3\">VCTK</td></tr><tr><td>Real utterance</td><td colspan=\"3\"></td><td colspan=\"3\">2.79</td></tr><tr><td>Adaptation data size</td><td>10s</td><td>2.47 1m</td><td><5m</td><td>10s</td><td>1m</td><td><10m</td></tr><tr><td>SEA-ALL (ours)</td><td>3.17</td><td>2.47</td><td>1.85</td><td>7.34</td><td>5.02</td><td>4.33</td></tr><tr><td>SEA-EMB (ours)</td><td>3.26</td><td>2.92</td><td>2.74</td><td>10.18</td><td>9.91</td><td>10.24</td></tr><tr><td>SEA-ENC (ours)</td><td>10.73</td><td>9.77</td><td>9.42</td><td>27.20</td><td>25.34</td><td>25.23</td></tr></table>",
|
| 842 |
+
"bbox": [
|
| 843 |
+
173,
|
| 844 |
+
792,
|
| 845 |
+
825,
|
| 846 |
+
882
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 7
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "image",
|
| 852 |
+
"img_path": "images/98e9962d2247562b56b5bc63c271f368b6c5f06cc98187458e53c3a0d08484cb.jpg",
|
| 853 |
+
"image_caption": [
|
| 854 |
+
"Figure 5: Cosine similarity of real and generated utterances to the real enrollment set. "
|
| 855 |
+
],
|
| 856 |
+
"image_footnote": [],
|
| 857 |
+
"bbox": [
|
| 858 |
+
202,
|
| 859 |
+
104,
|
| 860 |
+
792,
|
| 861 |
+
291
|
| 862 |
+
],
|
| 863 |
+
"page_idx": 8
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"type": "text",
|
| 867 |
+
"text": "In our setup we fix the enrollment set together with the speaker verification model from (Wan et al., 2018), and study the performance of different verification sets that are either from real utterances or generated by a TTS system. Table 3 lists the equal error rate (EER) of the verification model with real and generated verification utterances, and Figure 4 shows the detection error trade-off (DET) curves for a more thorough inspection. Figure 4 only shows the adaptation models with the maximum data size setting ( $T \\leq 5$ minutes for LibriSpeech and $\\leq 1 0$ minutes for VCTK). The results for other data sizes are provided in Appendix B. ",
|
| 868 |
+
"bbox": [
|
| 869 |
+
174,
|
| 870 |
+
344,
|
| 871 |
+
825,
|
| 872 |
+
441
|
| 873 |
+
],
|
| 874 |
+
"page_idx": 8
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"type": "text",
|
| 878 |
+
"text": "We find that SEA-ALL outperforms the other two approaches, and the error rate decreases clearly with the size of demonstration data. Noticeably, the EER of SEA-ALL is even lower than the real utterance on the LibriSpeech dataset with sufficient adaptation data. A possible explanation is that the generated samples might be concentrated closer to the centroid of a speaker’s embeddings than real speech with larger variance across utterances. Our SEA-EMB model performs better than SEA-ENC. Additionally, the benefit of more demonstration data is less significant than for SEA-ALL in both of these models. ",
|
| 879 |
+
"bbox": [
|
| 880 |
+
174,
|
| 881 |
+
449,
|
| 882 |
+
825,
|
| 883 |
+
546
|
| 884 |
+
],
|
| 885 |
+
"page_idx": 8
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"type": "text",
|
| 889 |
+
"text": "5.4.2 DISCERNING REAL FROM GENERATED UTTERANCES ",
|
| 890 |
+
"text_level": 1,
|
| 891 |
+
"bbox": [
|
| 892 |
+
174,
|
| 893 |
+
563,
|
| 894 |
+
588,
|
| 895 |
+
575
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 8
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "In this section, we compare the generated samples and the real utterances of the speaker being imitated. Figure 5 shows the box-plot of the cosine similarity between the embedding centroids of test speakers’ enrollment set and (1) real utterances from the same speaker, (2) real utterances from a different speaker, and (3) generated utterances adapted to the same speaker. Consistent with the observations from the previous subsection, SEA-ALL performs best. ",
|
| 902 |
+
"bbox": [
|
| 903 |
+
174,
|
| 904 |
+
585,
|
| 905 |
+
825,
|
| 906 |
+
655
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 8
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "We further consider an adversarial scenario for speaker verification. In contrast to the previous standard speaker verification setup where we now select a verification utterance with either a real utterance from the same speaker or a synthetic sample from a model adapted to the same speaker. Under this setup, the speaker verification system is challenged by synthetic samples and acts as a classifier for real versus generated utterances. The ROC curve of this setup is shown in Figure 6 and the models are using the maximum data size setting. Other data size settings can be found in Appendix C. If the generated samples are indistinguishable from real utterances, the ROC curve approaches the diagonal line (that is, the verification system fails to separate real and generated voices). Importantly, SEA-ALL manages to confuse the verification system especially for the VCTK dataset where the ROC curve is almost inline with the diagonal line with an AUC of 0.56. ",
|
| 913 |
+
"bbox": [
|
| 914 |
+
174,
|
| 915 |
+
662,
|
| 916 |
+
825,
|
| 917 |
+
801
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 8
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "6 CONCLUSION ",
|
| 924 |
+
"text_level": 1,
|
| 925 |
+
"bbox": [
|
| 926 |
+
176,
|
| 927 |
+
821,
|
| 928 |
+
318,
|
| 929 |
+
838
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 8
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "This paper studied three variants of meta-learning for sample efficient adaptive TTS. The adaptation method that fine-tunes the entire model, with the speaker embedding vector first optimized, shows impressive performance even with only 10 seconds of audio from new speakers. When adapted with a few minutes of data, our model matches the state-of-the-art performance in sample naturalness. Moreover, it outperforms other recent works in matching the new speaker’s voice. We also demonstrated that the generated samples achieved a similar level of voice similarity to real utterances from the same speaker, when measured by a text independent speaker verification model. ",
|
| 936 |
+
"bbox": [
|
| 937 |
+
174,
|
| 938 |
+
854,
|
| 939 |
+
825,
|
| 940 |
+
924
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 8
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "image",
|
| 946 |
+
"img_path": "images/f0fa25bb0c694d1710032d4d6bcf1673e38d8e8be977b04dbdb18b1488b7e4bf.jpg",
|
| 947 |
+
"image_caption": [
|
| 948 |
+
"Figure 6: ROC curve for real versus generated utterance detection. The utterances were generated using models with 5 and 10 minutes of training data per speaker from LibriSpeech and VCTK respectively. Lower curve indicate that the verification system is having a harder time distinguishing real from generated samples. "
|
| 949 |
+
],
|
| 950 |
+
"image_footnote": [],
|
| 951 |
+
"bbox": [
|
| 952 |
+
256,
|
| 953 |
+
106,
|
| 954 |
+
736,
|
| 955 |
+
296
|
| 956 |
+
],
|
| 957 |
+
"page_idx": 9
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "text",
|
| 961 |
+
"text": "",
|
| 962 |
+
"bbox": [
|
| 963 |
+
171,
|
| 964 |
+
392,
|
| 965 |
+
821,
|
| 966 |
+
421
|
| 967 |
+
],
|
| 968 |
+
"page_idx": 9
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"type": "text",
|
| 972 |
+
"text": "Our paper considers the adaptation to new voices with clean, high-quality training data collected in a controlled environment. The few-shot learning of voices with noisy data is beyond the scope of this paper and remains a challenging open research problem. ",
|
| 973 |
+
"bbox": [
|
| 974 |
+
174,
|
| 975 |
+
428,
|
| 976 |
+
821,
|
| 977 |
+
469
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 9
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "A requirement for less training data to adapt the model, however, increases the potential for both beneficial and harmful applications of text-to-speech technologies such as the creation of synthesized media. While the requirements for this particular model (including the high-quality training data collected in a controlled environment and equally high quality data from the speakers to which we adapt, as described in Section 5.1) present barriers to misuse, more research must be conducted to mitigate and detect instances of misuse of text-to-speech technologies in general. ",
|
| 984 |
+
"bbox": [
|
| 985 |
+
174,
|
| 986 |
+
477,
|
| 987 |
+
825,
|
| 988 |
+
560
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 9
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "REFERENCES ",
|
| 995 |
+
"text_level": 1,
|
| 996 |
+
"bbox": [
|
| 997 |
+
174,
|
| 998 |
+
582,
|
| 999 |
+
285,
|
| 1000 |
+
597
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 9
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "G. Hinton, L. Deng, D. Yu, G. E. Dahl, A.-r. Mohamed, N. Jaitly, A. Senior, V. Vanhoucke, P. Nguyen, T. N. Sainath, et al. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine, 29(6):82–97, 2012. \nY. Wu, M. Schuster, Z. Chen, Q. V. Le, M. Norouzi, W. Macherey, M. Krikun, Y. Cao, Q. Gao, K. Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016. \nA. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information processing Systems, pages 1097–1105, 2012. \nC. Szegedy, W. Liu, Y. Jia, P. Sermanet, S. Reed, D. Anguelov, D. Erhan, V. Vanhoucke, A. Rabinovich, et al. Going deeper with convolutions. In Computer Vision and Pattern Recognition, 2015. \nT. Dutoit. An Introduction to Text-to-speech Synthesis. Kluwer Academic Publishers, Norwell, MA, USA, 1997. ISBN 0-7923-4498-7. \nP. Taylor. Text-to-Speech Synthesis. Cambridge University Press, New York, NY, USA, 1st edition, 2009. ISBN 0521899273, 9780521899277. \nA. van den Oord, S. Dieleman, H. Zen, K. Simonyan, O. Vinyals, A. Graves, N. Kalchbrenner, A. Senior, and K. Kavukcuoglu. WaveNet: A generative model for raw audio. arXiv preprint arXiv:1609.03499, 2016. \nA. van den Oord, Y. Li, I. Babuschkin, K. Simonyan, O. Vinyals, K. Kavukcuoglu, G. v. d. Driessche, E. Lockhart, L. C. Cobo, F. Stimberg, et al. Parallel WaveNet: Fast high-fidelity speech synthesis. arXiv preprint arXiv:1711.10433, 2017. \nL. Wan, Q. Wang, A. Papir, and I. L. Moreno. Generalized end-to-end loss for speaker verification. In International Conference on Acoustics, Speech, and Signal Processing, pages 4879–4883. IEEE, 2018. \nH. Zen, Y. Agiomyrgiannakis, N. Egberts, F. Henderson, and P. Szczepaniak. Fast, compact, and high quality LSTM-RNN based statistical parametric speech synthesizers for mobile devices. In INTERSPEECH, pages 2273–2277, 2016. \nL. Li, Y. Chen, Y. Shi, Z. Tang, and D. Wang. Deep speaker feature learning for text-independent speaker verification. In INTERSPEECH, pages 1542–1546, 2017. \nA. Santoro, S. Bartunov, M. Botvinick, D. Wierstra, and T. Lillicrap. Meta-learning with memory-augmented neural networks. In International Conference on Machine Learning, pages 1842–1850, 2016. \nP. Shyam, S. Gupta, and A. Dukkipati. Attentive recurrent comparators. In International Conference on Machine Learning, pages 3173–3181, 2017. \nO. Vinyals, C. Blundell, T. Lillicrap, D. Wierstra, et al. Matching networks for one shot learning. In Advances in Neural Information Processing Systems, pages 3630–3638, 2016. \nT. Pohlen, B. Piot, T. Hester, M. G. Azar, D. Horgan, D. Budden, G. Barth-Maron, H. van Hasselt, J. Quan, M. Vecerík, et al. Observe and look further: Achieving consistent performance on atari. ˇ arXiv preprint arXiv:1805.11593, 2018. \nY. Aytar, T. Pfaff, D. Budden, T. L. Paine, Z. Wang, and N. de Freitas. Playing hard exploration games by watching youtube. arXiv preprint arXiv:1805.11592, 2018. \nH. F. Harlow. The formation of learning sets. Psychological review, 56(1):51, 1949. \nS. Thrun and L. Pratt. Learning to learn. Springer Science & Business Media, 2012. \nM. Andrychowicz, M. Denil, S. Gomez, M. W. Hoffman, D. Pfau, T. Schaul, B. Shillingford, and N. De Freitas. Learning to learn by gradient descent by gradient descent. In Advances in Neural Information Processing Systems, pages 3981–3989, 2016. \nY. Chen, M. W. Hoffman, S. G. Colmenarejo, M. Denil, T. P. Lillicrap, M. Botvinick, and N. Freitas. Learning to learn without gradient descent by gradient descent. In International Conference on Machine Learning, pages 748–756, 2017. \nS. Ravi and H. Larochelle. Optimization as a model for few-shot learning. International Conference on Learning Representations, 2016. \nC. Finn, P. Abbeel, and S. Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International Conference on Machine Learning, pages 1126–1135, 2017a. \nC. Finn, T. Yu, T. Zhang, P. Abbeel, and S. Levine. One-shot visual imitation learning via meta-learning. In Conference on Robot Learning, pages 357–368, 2017b. \nT. Yu, C. Finn, A. Xie, S. Dasari, T. Zhang, P. Abbeel, and S. Levine. One-shot imitation from observing humans via domain-adaptive meta-learning. In International Conference on Learning Representations Workshop, 2018. \nS. Bartunov and D. P. Vetrov. Fast adaptation in generative models with generative matching networks. In International Conference on Learning Representations Workshop, 2017. \nJ. Bornschein, A. Mnih, D. Zoran, and D. J. Rezende. Variational memory addressing in generative models. In Advances in Neural Information Processing Systems, pages 3923–3932, 2017. \nD. J. Rezende, S. Mohamed, I. Danihelka, K. Gregor, and D. Wierstra. One-shot generalization in deep generative models. In International Conference on Machine Learning, pages 1521–1529, 2016. \nK. Gregor, I. Danihelka, A. Graves, D. Rezende, and D. Wierstra. DRAW: A recurrent neural network for image generation. In International Conference on Machine Learning, pages 1462–1471, 2015. \nS. Reed, Y. Chen, T. Paine, A. van den Oord, S. M. Eslami, D. Rezende, O. Vinyals, and N. de Freitas. Few-shot autoregressive density estimation: Towards learning to learn distributions. In International Conference on Learning Representations, 2018. \nA. Van Oord, N. Kalchbrenner, and K. Kavukcuoglu. Pixel recurrent neural networks. In International Conference on Machine Learning, pages 1747–1756, 2016. \nJ. Veness, T. Lattimore, A. Bhoopchand, A. Grabska-Barwinska, C. Mattern, and P. Toth. Online learning with gated linear networks. arXiv preprint arXiv:1712.01897, 2017. \nR. Skerry-Ryan, E. Battenberg, Y. Xiao, Y. Wang, D. Stanton, J. Shor, R. J. Weiss, R. Clark, and R. A. Saurous. Towards end-to-end prosody transfer for expressive speech synthesis with tacotron. arXiv preprint arXiv:1803.09047, 2018. \nY. Wang, R. Skerry-Ryan, D. Stanton, Y. Wu, R. J. Weiss, N. Jaitly, Z. Yang, Y. Xiao, Z. Chen, S. Bengio, Q. Le, Y. Agiomyrgiannakis, R. Clark, and R. A. Saurous. Tacotron: Towards end-to-end speech synthesis. In INTERSPEECH, pages 4006–4010, 2017. \nA. Gibiansky, S. Arik, G. Diamos, J. Miller, K. Peng, W. Ping, J. Raiman, and Y. Zhou. Deep voice 2: Multispeaker neural text-to-speech. In Advances in Neural Information Processing Systems, pages 2962–2970, 2017. \nS. Ö. Arık, M. Chrzanowski, A. Coates, G. Diamos, A. Gibiansky, Y. Kang, X. Li, J. Miller, A. Ng, J. Raiman, et al. Deep voice: Real-time neural text-to-speech. In International Conference on Machine Learning, pages 195–204, 2017. \nW. Ping, K. Peng, A. Gibiansky, S. O. Arik, A. Kannan, S. Narang, J. Raiman, and J. Miller. Deep voice 3: 2000-speaker neural text-to-speech. In International Conference on Learning Representations, 2018. \nJ. Sotelo, S. Mehri, K. Kumar, J. F. Santos, K. Kastner, A. Courville, and Y. Bengio. Char2wav: End-to-end speech synthesis. In International Conference on Learning Representations Workshop, 2017. \nY. Taigman, L. Wolf, A. Polyak, and E. Nachmani. Voiceloop: Voice fitting and synthesis via a phonological loop. In International Conference on Learning Representations, 2018. \nM. Morise, F. Yokomori, and K. Ozawa. World: a vocoder-based high-quality speech synthesis system for real-time applications. IEICE transactions on Information and Systems, 99(7):1877–1884, 2016. \nE. Nachmani, A. Polyak, Y. Taigman, and L. Wolf. Fitting new speakers based on a short untranscribed sample. arXiv preprint arXiv:1802.06984, 2018. \nY. Jia, Y. Zhang, R. J. Weiss, Q. Wang, J. Shen, F. Ren, Z. Chen, P. Nguyen, R. Pang, I. L. Moreno, et al. Transfer learning from speaker verification to multispeaker text-to-speech synthesis. arXiv preprint arXiv:1806.04558, 2018. \nS. O. Arik, J. Chen, K. Peng, W. Ping, and Y. Zhou. Neural voice cloning with a few samples. arXiv preprint arXiv:1802.06006, 2018. \nV. Panayotov, G. Chen, D. Povey, and S. Khudanpur. Librispeech: an asr corpus based on public domain audio books. In International Conference on Acoustics, Speech and Signal Processing, pages 5206–5210. IEEE, 2015. \nC. Veaux, J. Yamagishi, K. MacDonald, et al. CSTR VCTK corpus: English multi-speaker corpus for CSTR Voice Cloning Toolkit, 2017. ",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
171,
|
| 1009 |
+
603,
|
| 1010 |
+
828,
|
| 1011 |
+
924
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 9
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
169,
|
| 1020 |
+
53,
|
| 1021 |
+
828,
|
| 1022 |
+
925
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 10
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
169,
|
| 1031 |
+
93,
|
| 1032 |
+
826,
|
| 1033 |
+
672
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 11
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "A EMBEDDING ENCODER ",
|
| 1040 |
+
"text_level": 1,
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
176,
|
| 1043 |
+
102,
|
| 1044 |
+
400,
|
| 1045 |
+
117
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 12
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "Our encoding network is illustrated as the summation of two sub-network outputs in Figure 7. The first subnetwork is a pre-trained speaker verification model (TI-SV) (Wan et al., 2018), comprising 3 LSTM layers and a single linear layer. This model maps a waveform sequence of arbitrary length to a fixed 256-dimensional $d$ -vector with a sliding window, and is trained from approximately 36M utterances from 18K speakers extracted from anonymized voice search logs. On top of this we add a shallow MLP to project the output $d$ -vector to the speaker embedding space. The second sub-network comprises 16 1-D convolutional layers. This network reduces the temporal resolution to $2 5 6 \\mathrm { m s }$ per frame (for $1 6 \\mathrm { k H z }$ audio), then averages across time and projects into the speaker embedding space. The purpose of this network is to extract residual speaker information present in the demonstration waveforms but not captured by the pre-trained TI-SV model. ",
|
| 1052 |
+
"bbox": [
|
| 1053 |
+
173,
|
| 1054 |
+
132,
|
| 1055 |
+
825,
|
| 1056 |
+
247
|
| 1057 |
+
],
|
| 1058 |
+
"page_idx": 12
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "image",
|
| 1062 |
+
"img_path": "images/638613b970a6c64f4a74f956a7d54690174a5b5f336d824dfaddb8259396a994.jpg",
|
| 1063 |
+
"image_caption": [
|
| 1064 |
+
"Figure 7: Encoder network architecture for predicting speaker embeddings. "
|
| 1065 |
+
],
|
| 1066 |
+
"image_footnote": [],
|
| 1067 |
+
"bbox": [
|
| 1068 |
+
248,
|
| 1069 |
+
258,
|
| 1070 |
+
758,
|
| 1071 |
+
457
|
| 1072 |
+
],
|
| 1073 |
+
"page_idx": 12
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"type": "text",
|
| 1077 |
+
"text": "B DET CURVES VARYING TRAINING DATA SIZES ",
|
| 1078 |
+
"text_level": 1,
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
173,
|
| 1081 |
+
103,
|
| 1082 |
+
591,
|
| 1083 |
+
117
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 13
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "Here we provide the DET curves of speaker verification problem for models with different training data sizes in addition to those shown in Section 5.4.1. ",
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
176,
|
| 1092 |
+
132,
|
| 1093 |
+
825,
|
| 1094 |
+
159
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 13
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "image",
|
| 1100 |
+
"img_path": "images/4f1d1338c1f0e0f09c422dfa47c76d6b7e03222ce7d8d78699c42da5ff087753.jpg",
|
| 1101 |
+
"image_caption": [
|
| 1102 |
+
"Figure 8: Detection error trade-off (DET) curve for speaker verification, using the TI-SV speaker verification model (Wan et al., 2018). The utterances were generated using 1 minute or 10 seconds of utterance from LibriSpeech and VCTK. EER is marked with a dot. "
|
| 1103 |
+
],
|
| 1104 |
+
"image_footnote": [],
|
| 1105 |
+
"bbox": [
|
| 1106 |
+
254,
|
| 1107 |
+
175,
|
| 1108 |
+
740,
|
| 1109 |
+
561
|
| 1110 |
+
],
|
| 1111 |
+
"page_idx": 13
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"type": "text",
|
| 1115 |
+
"text": "C ROC CURVES VARYING TRAINING DATA SIZES ",
|
| 1116 |
+
"text_level": 1,
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
173,
|
| 1119 |
+
103,
|
| 1120 |
+
591,
|
| 1121 |
+
117
|
| 1122 |
+
],
|
| 1123 |
+
"page_idx": 14
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"type": "text",
|
| 1127 |
+
"text": "We provide the ROC curves of the speaker verification problem with adversarial examples from adaptation models with different training data sizes in addition to those shown in Section 5.4.2. ",
|
| 1128 |
+
"bbox": [
|
| 1129 |
+
176,
|
| 1130 |
+
132,
|
| 1131 |
+
823,
|
| 1132 |
+
159
|
| 1133 |
+
],
|
| 1134 |
+
"page_idx": 14
|
| 1135 |
+
},
|
| 1136 |
+
{
|
| 1137 |
+
"type": "image",
|
| 1138 |
+
"img_path": "images/86029fcc717f345efbaac9ed850be92da33678364e0d7ea289c74d03f8f65d86.jpg",
|
| 1139 |
+
"image_caption": [
|
| 1140 |
+
"Figure 9: ROC curve for real vs. generated utterance detection. The utterances were generated using 1 minute or 10 seconds of utterance from LibriSpeech and VCTK. Lower curve suggests harder to distinguish real from generated samples. "
|
| 1141 |
+
],
|
| 1142 |
+
"image_footnote": [],
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
253,
|
| 1145 |
+
180,
|
| 1146 |
+
738,
|
| 1147 |
+
564
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 14
|
| 1150 |
+
}
|
| 1151 |
+
]
|
parse/train/rkzjUoAcFX/rkzjUoAcFX_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkzjUoAcFX/rkzjUoAcFX_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|