Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- parse/train/B1lDoJSYDH/B1lDoJSYDH.md +361 -0
- parse/train/B1lDoJSYDH/B1lDoJSYDH_content_list.json +1852 -0
- parse/train/B1lDoJSYDH/B1lDoJSYDH_middle.json +0 -0
- parse/train/B1lDoJSYDH/B1lDoJSYDH_model.json +0 -0
- parse/train/BkCV_W-AZ/BkCV_W-AZ.md +384 -0
- parse/train/BkCV_W-AZ/BkCV_W-AZ_content_list.json +1972 -0
- parse/train/BkCV_W-AZ/BkCV_W-AZ_middle.json +0 -0
- parse/train/BkCV_W-AZ/BkCV_W-AZ_model.json +0 -0
- parse/train/H1zriGeCZ/H1zriGeCZ.md +461 -0
- parse/train/H1zriGeCZ/H1zriGeCZ_content_list.json +0 -0
- parse/train/H1zriGeCZ/H1zriGeCZ_middle.json +0 -0
- parse/train/H1zriGeCZ/H1zriGeCZ_model.json +0 -0
- parse/train/_WnGcwXLYOE/_WnGcwXLYOE.md +255 -0
- parse/train/_WnGcwXLYOE/_WnGcwXLYOE_content_list.json +1066 -0
- parse/train/_WnGcwXLYOE/_WnGcwXLYOE_middle.json +0 -0
- parse/train/_WnGcwXLYOE/_WnGcwXLYOE_model.json +0 -0
- parse/train/piLPYqxtWuA/piLPYqxtWuA.md +327 -0
- parse/train/piLPYqxtWuA/piLPYqxtWuA_content_list.json +1779 -0
- parse/train/piLPYqxtWuA/piLPYqxtWuA_middle.json +0 -0
- parse/train/piLPYqxtWuA/piLPYqxtWuA_model.json +0 -0
- vlm/train/-1AAgrS5FF/0.png +3 -0
- vlm/train/-1AAgrS5FF/1.png +3 -0
- vlm/train/-1AAgrS5FF/10.png +3 -0
- vlm/train/-1AAgrS5FF/11.png +3 -0
- vlm/train/-1AAgrS5FF/12.png +3 -0
- vlm/train/-1AAgrS5FF/13.png +3 -0
- vlm/train/-1AAgrS5FF/14.png +3 -0
- vlm/train/-1AAgrS5FF/2.png +3 -0
- vlm/train/-1AAgrS5FF/3.png +3 -0
- vlm/train/-1AAgrS5FF/4.png +3 -0
- vlm/train/-1AAgrS5FF/5.png +3 -0
- vlm/train/-1AAgrS5FF/6.png +3 -0
- vlm/train/-1AAgrS5FF/7.png +3 -0
- vlm/train/-1AAgrS5FF/8.png +3 -0
- vlm/train/-1AAgrS5FF/9.png +3 -0
- vlm/train/-_FVMKvxVCQo1/0.png +3 -0
- vlm/train/-_FVMKvxVCQo1/1.png +3 -0
- vlm/train/-_FVMKvxVCQo1/10.png +3 -0
- vlm/train/-_FVMKvxVCQo1/11.png +3 -0
- vlm/train/-_FVMKvxVCQo1/2.png +3 -0
- vlm/train/-_FVMKvxVCQo1/3.png +3 -0
- vlm/train/-_FVMKvxVCQo1/4.png +3 -0
- vlm/train/-_FVMKvxVCQo1/5.png +3 -0
- vlm/train/-_FVMKvxVCQo1/6.png +3 -0
- vlm/train/-_FVMKvxVCQo1/7.png +3 -0
- vlm/train/-_FVMKvxVCQo1/8.png +3 -0
- vlm/train/-_FVMKvxVCQo1/9.png +3 -0
- vlm/train/3WbWmdTd8fN/0.png +3 -0
- vlm/train/3WbWmdTd8fN/1.png +3 -0
- vlm/train/3WbWmdTd8fN/10.png +3 -0
parse/train/B1lDoJSYDH/B1lDoJSYDH.md
ADDED
|
@@ -0,0 +1,361 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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present an approach to Lagrangian fluid simulation with a new type of convolutional network. Our networks process sets of moving particles, which describe fluids in space and time. Unlike previous approaches, we do not build an explicit graph structure to connect the particles but use spatial convolutions as the main differentiable operation that relates particles to their neighbors. To this end we present a simple, novel, and effective extension of N-D convolutions to the continuous domain. We show that our network architecture can simulate different materials, generalizes to arbitrary collision geometries, and can be used for inverse problems. In addition, we demonstrate that our continuous convolutions outperform prior formulations in terms of accuracy and speed.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Understanding physics can help reasoning about our environment and interacting with it. Neural networks have emerged as a particularly promising approach to capture the complexity of natural phenomena from data (Ling et al., 2016; Tompson et al., 2017; Morton et al., 2018). An important aspect of learning physics with neural networks is the choice of representation. Lagrangian representations based on particles are particularly popular and have supported recent results with rigid bodies, deformable solids, and fluids (Battaglia et al., 2016; Mrowca et al., 2018; Li et al., 2019). Many of these approaches use graph structures to define interactions; the existence of an edge determines in a binary fashion whether two particles interact.
|
| 16 |
+
|
| 17 |
+
However, a wide range of physical processes such as fluid mechanics are described by continuous partial differential equations rather than discrete graph structures. The continuous, volumetric, and tightly coupled nature of these processes causes inherent difficulties for graph-based approaches, such as a large number of edge connections that must be established, tracked, and disengaged as the particles move. In this work, instead of using graphs as the underlying representation, we adopt a continuous viewpoint. We propose to use convolutional networks (ConvNets) with continuous convolutions on particles for learning fluid mechanics. We treat fluids as spatially continuous functions sampled at a finite set of (continuously evolving) positions and process them with a novel continuous convolution layer. This matches the continuous nature of the problem more closely and simplifies the definition of neural networks by abstracting the underlying particle representation.
|
| 18 |
+
|
| 19 |
+
We extend the grid-based filter representation commonly used for discrete convolutions to the continuous domain by simple linear interpolation. Linear interpolation of the filters allows efficient lookup of spatially varying filter values at arbitrary positions while retaining the compactness and efficiency of the grid representation. In addition, we use a window function to define the support of the filters and a ball-to-cube mapping to support spherical receptive fields. We show that our convolutions, despite their simplicity, perform better than more sophisticated representations (Wang et al., 2018; Schenck & Fox, 2018).
|
| 20 |
+
|
| 21 |
+
With the presented continuous convolution layer, we develop an efficient ConvNet architecture for learning fluid mechanics. The network processes sets of particles. We use dynamic particles to represent the fluid and static particles to describe the boundary of the scene. Modeling the scene boundary with particles makes it easy to apply our network to new scenes and allows the network to learn collision handling in a unified framework. Our network generalizes to arbitrary obstacle configurations and can simulate a range of material behavior. To demonstrate the usefulness of a learned – and hence differentiable – fluid simulator, we show that material properties can be estimated from observed simulation data. Experimental results indicate that the presented approach outperforms a state-of-the-art graph-based framework (Li et al., 2019).
|
| 22 |
+
|
| 23 |
+
# 2 RELATED WORK
|
| 24 |
+
|
| 25 |
+
Fluids encompass a range of materials that are important in everyday life and throughout science and engineering (Wilcox, 2006). A prominent set of methods, known as Smoothed Particle Hydrodynamics (SPH), employs a Lagrangian viewpoint to simulate these phenomena. SPH originated in particle-based models for astrophysics (Gingold & Monaghan, 1977) and has become extremely popular for simulating complex flows in many fields of science (Monaghan, 1988). Among others, it has been highly successful for modeling interface flows (Colagrossi & Landrini, 2003), complex multi-phase phenomena (Hu & Adams, 2006), and even magnetohydrodynamics (Price, 2012).
|
| 26 |
+
|
| 27 |
+
SPH and its variants have been widely used to model complex real-world phenomena for visual effects. Following the earlier development of physics-based fluid simulation for special effects by Foster & Metaxas (1996), the introduction of SPH (Muller et al., 2003) has led to a large class of ¨ powerful algorithms (Solenthaler & Pajarola, 2009; Bender & Koschier, 2015). These applications often involve complex geometries at large scales, and extensions such as FleX (Macklin et al., 2014) and pressure-aware rigid-body coupling (Gissler et al., 2018) broaden the framework to encompass many physical phenomena.
|
| 28 |
+
|
| 29 |
+
Lagrangian flows have also been considered in machine learning. The pioneering work of Ladicky´ et al. (2015) demonstrated that flow representations can be learned with regression forests. CNNs were used by Tompson et al. (2017) to accelerate the expensive pressure correction step of gridbased solvers, while other works have focused on super-resolution (Xie et al., 2018), learning time evolution via the Koopman operator (Morton et al., 2018), and learning reduced representations (Wiewel et al., 2019; Kim et al., 2019). Differentiable SPH solvers were proposed to solve control tasks for robotic applications (Schenck & Fox, 2018). Generic physics simulations for Lagrangian rigid and deformable bodies were considered in a series of works that developed graph-based representations (Battaglia et al., 2016; Sanchez-Gonzalez et al., 2018). Such graph-based representations were recently applied directly to fluid simulation (Mrowca et al., 2018; Li et al., 2019). We share with these recent works the goal of modeling Lagrangian fluids with differentiable neural networks, but take a different tack: rather than using graph-based representations, we work with point clouds and continuous convolutions over the spatial domain.
|
| 30 |
+
|
| 31 |
+
From a technical perspective, our approach is also related to existing works that apply convolutions on point clouds. A number of methods transferred the convolution concept to point clouds in the context of semantic classification and segmentation of 3D objects (Hua et al., 2018; Atzmon et al., 2018; Hermosilla et al., 2018; Li et al., 2018; Su et al., 2018; Wu et al., 2019; Xu et al., 2018; Lei et al., 2019). Particularly notable in our context is the work of Wang et al. (2018), who used continuous convolutions to compute the scene flow between two point clouds, and the aforementioned work of Schenck & Fox (2018), who used convolutions to implement a differentiable version of position-based fluids (Macklin & Muller, 2013). Both works define continuous convolution opera- ¨ tors that can support regression tasks and we compare to them directly in Section 6. Most closely related to our filter representation is the work of Fey et al. (2018). They use B-splines to define continuous filters and propose to use spherical coordinates to implement spherical receptive fields. Spherical coordinates are problematic due to singularities and require special treatment, which we avoid with a ball-to-cube mapping. Furthermore, the output of the operator of Fey et al. (2018) can be discontinuous. We show in our ablation study in Section 6 that applying a window function to guarantee a continuous output is advantageous for our task.
|
| 32 |
+
|
| 33 |
+
# 3 BASICS
|
| 34 |
+
|
| 35 |
+
Fluids have been studied for centuries, and the Navier-Stokes equations for incompressible fluids are well established (Batchelor, 1967):
|
| 36 |
+
|
| 37 |
+
$$
|
| 38 |
+
\frac { \partial { \bf v } } { \partial t } + { \bf v } \cdot \nabla { \bf v } = - \frac { 1 } { \rho } \nabla p + \nu \nabla ^ { 2 } { \bf v } + { \bf g } , ~ \mathrm { s . t . } ~ \nabla \cdot { \bf v } = 0 .
|
| 39 |
+
$$
|
| 40 |
+
|
| 41 |
+
A common approach to solve these partial differential equations is to approximate the fluid with a set of smooth particles (Monaghan, 1988). Each particle corresponds to a continuous blob of matter and carries the local properties of the fluid, such as velocity and density, which move with the flow. This is motivated by the fact that a function $A ( \mathbf { x } )$ can be represented by an integral interpolation
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
A ( \mathbf { x } ) = \int A ( \mathbf { x } ^ { \prime } ) \delta ( \| \mathbf { x } - \mathbf { x } ^ { \prime } \| _ { 2 } ) d V ( \mathbf { x } ^ { \prime } ) ,
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
where $\delta ( x )$ denotes the Dirac delta function. This equation can be discretized as
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
A ( { \bf x } ) \approx \sum _ { i } V _ { i } A _ { i } W ( \| { \bf x } - { \bf x } ^ { \prime } \| _ { 2 } , h ) ,
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
where $V _ { i }$ is the volume at the given point in space and
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
\operatorname* { l i m } _ { h \to 0 } W ( | \mathbf x - \mathbf x ^ { \prime } | , h ) = \delta ( | \mathbf x - \mathbf x ^ { \prime } | ) .
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
Here $W ( x , h )$ is a smooth kernel or convolution with radius $h$ , usually in the form of a Gaussian distribution, but more complex functions can also be used. In practice, the kernel is finite and yields localized neighborhoods of particles that interact via interactions weighted by the kernel of its derivatives. In this way, the continuous description for fluids from Equation 1 can be discretized in a Lagrangian fashion and solved numerically. Typically, internal forces are calculated based on the local pressure, viscosity, and surface tension, which give an update for the position of each particle. Below, we adopt the position-based fluids (PBF) method (Macklin & Muller, 2013; Macklin et al., ¨ 2014), which likewise is based on SPH, but reformulates the updates as constraints on the positions.
|
| 60 |
+
|
| 61 |
+
# 4 CONTINUOUS CONVOLUTIONS
|
| 62 |
+
|
| 63 |
+
The discrete convolution operator as commonly used in ConvNets is defined as
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
( f * g ) ( \mathbf { x } ) = \sum _ { \tau \in \Omega } f ( \mathbf { x } + \pmb { \tau } ) g ( \pmb { \tau } ) ,
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
where $f$ and $g$ are the input and the filter function, $\mathbf { x }$ is the position, $\tau$ is the shift vector, and $\Omega$ is the set of shift vectors that defines the support of the filter function. On regular data such as images, the positions $\mathbf { x }$ range over a regular grid and the shift vectors $\tau$ are integer-valued, i.e. $\mathbf { x } , \tau \in \overline { { \mathbb { Z } } } ^ { \dot { d } }$ for some dimensionality $d$ . Analogously in the continuous domain, this convolution is defined as
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
( f * g ) ( \mathbf { x } ) = \int _ { \mathbb { R } ^ { d } } f ( \mathbf { x } + \pmb { \tau } ) g ( \pmb { \tau } ) d \pmb { \tau } ,
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
where $\mathbf { x }$ and $\tau$ are real-valued vectors, i.e. $\mathbf { x } , \tau \in \mathbb { R } ^ { d }$ .
|
| 76 |
+
|
| 77 |
+
We now adapt this definition to unstructured point clouds. In this setting we have a finite number of points that sample the function $f$ but do not lie on a grid. For a point cloud with $i = 1 , . . , N$ points with values $f _ { i }$ at positions $\mathbf { x } _ { i }$ , we define the convolution at position $\mathbf { x }$ as
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
( f * g ) ( \mathbf { x } ) = \frac { 1 } { \psi ( \mathbf { x } ) } \sum _ { i \in N ( \mathbf { x } , R ) } a ( \mathbf { x } _ { i } , \mathbf { x } ) \ f _ { i } \ g ( \Lambda ( \mathbf { x } _ { i } - \mathbf { x } ) ) .
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
$\mathcal { N } ( { \bf x } , R )$ is the set of points within a radius $R$ around $\ \textbf { x } , \ a$ is a scalar function that can be used for density normalization specific to the points $\mathbf { x } _ { i }$ and $\mathbf { x }$ as in Hermosilla et al. (2018). In the simplest case, $a$ can be constant: $a = 1$ . In our case we want to ensure a smooth response of our convolution under varying particle neighborhoods, therefore we define $a$ as a window function:
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
a ( \mathbf x _ { i } , \mathbf x ) = \left\{ \begin{array} { l l } { \left( 1 - \frac { \| \mathbf x _ { i } - \mathbf x \| _ { 2 } ^ { 2 } } { R ^ { 2 } } \right) ^ { 3 } } & { \mathrm { f o r } \| \mathbf x _ { i } - \mathbf x \| _ { 2 } < R } \\ { 0 } & { \mathrm { e l s e } . } \end{array} \right.
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
A similar function has been used by Muller et al. (2003) in the SPH framework. ¨ $\psi$ is another scalar function for normalization, which can be set in our implementation as either
|
| 90 |
+
|
| 91 |
+
$$
|
| 92 |
+
\psi ( \mathbf { x } ) = 1 \quad \mathrm { o r } \quad \psi ( \mathbf { x } ) = \sum _ { i \in \mathcal { N } ( \mathbf { x } , R ) } a ( \mathbf { x } _ { i } , \mathbf { x } ) .
|
| 93 |
+
$$
|
| 94 |
+
|
| 95 |
+

|
| 96 |
+
Figure 1: We use spherical filter shapes for our continuous convolutions but use regular grids to store the filter values. The left part of the figure shows a spherical region with radius $R$ and a point with relative coordinates r with respect to the center. We transform r via a mapping $\Lambda$ to normalized coordinates in a regular grid. The thin dotted lines illustrate the distortion of the mapping. To look up the final filter value we use trilinear interpolation in the regular grid.
|
| 97 |
+
|
| 98 |
+
We use $\psi ( \mathbf { x } ) = 1$ , since changes in the density of particles are an important feature for simulating fluids.
|
| 99 |
+
|
| 100 |
+
For the filter function $g$ we simply use a regular grid to store the filter values but use linear interpolation to make $g$ a continuous function. In addition, we use a mapping $\Lambda ( \mathbf { r } )$ of a unit ball to a unit cube to implement spherical filters as shown in Figure 1. We use the mapping described by Griepentrog et al. (2008) and give the detailed function in the appendix. The intermediate coordinate mapping $\Lambda$ provides the flexibility to implement different spatial shapes while keeping the advantages of a regular grid for the storage and lookup of filter values.
|
| 101 |
+
|
| 102 |
+
Note that Equation 7 uses a similar approximation as in the SPH framework (Equation 3). Assuming that each point represents the same volume, $V _ { i }$ is a constant factor in Equation 3, which we drop in our definition.
|
| 103 |
+
|
| 104 |
+
# 5 LEARNING FLUID MECHANICS WITH CONVOLUTIONAL NETWORKS
|
| 105 |
+
|
| 106 |
+
Our goal is to learn fluid mechanics from observing the motion of particles. The input to our ConvNet is a set of particles with corresponding features. Since position itself is not a feature but simply defines the particle’s position in space, we must assign a feature vector to each particle. The feature vector we use is a constant scalar 1 accompanied by the velocity $\mathbf { v }$ and the viscosity $\nu$ . A particle $p _ { i } ^ { n }$ at timestep $n$ with its position and input feature vector is thus a tuple $\left( \mathbf { x } _ { i } ^ { n } , \left[ 1 , \mathbf { v } _ { i } ^ { n } , \nu _ { i } \right] \right)$ . Defining the velocity explicitly as an input feature allows us to compute intermediate velocities and positions as in Ladicky et al. (2015) and to apply external forces and pass this information to the ´ network. We compute the intermediate positions $\mathbf { x } _ { i } ^ { n * }$ and velocities $\mathbf { v } _ { i } ^ { n * }$ beginning with timestep $n$ with Heun’s method as
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
\begin{array} { r l } & { \mathbf { v } _ { i } ^ { n * } = \mathbf { v } _ { i } ^ { n } + \Delta t \mathbf { a } _ { \mathrm { e x t } } } \\ & { \mathbf { x } _ { i } ^ { n * } = \mathbf { x } _ { i } ^ { n } + \Delta t \frac { \mathbf { v } _ { i } ^ { n } + \mathbf { v } _ { i } ^ { n * } } { 2 } . } \end{array}
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
The vector $\mathbf { a } _ { \mathrm { e x t } }$ is an acceleration through which we can apply external forces to control the fluid or to simply apply gravity. The intermediate positions and velocities lack any interactions between particles or the scene, which we are going to implement with a ConvNet. To enable the network to handle collisions with the environment we define a second set of static particles $s _ { j }$ . We sample particles on the boundaries of the scene with normals $\mathbf { n } _ { j }$ as the feature vectors, i.e. $s _ { j } ^ { \mathsf { ^ { \prime } } } = ( \mathbf { x } _ { j } , [ \mathbf { n } _ { j } ] )$ . Our network implements the function
|
| 113 |
+
|
| 114 |
+
$$
|
| 115 |
+
[ \Delta { \bf x } _ { 1 } , \ldots , \Delta { \bf x } _ { N } ] = \mathrm { C o n v N e t } ( \{ p _ { 1 } ^ { n * } , \ldots , p _ { N } ^ { n * } \} , \{ s _ { 1 } , \ldots , s _ { M } \} ) ,
|
| 116 |
+
$$
|
| 117 |
+
|
| 118 |
+
which uses convolutions to combine features from both particle sets. $\Delta \mathbf { x }$ is a correction of the position which accounts for all particle interactions including the collision handling with the scene. Finally, we apply the correction to update positions and velocities for $n + 1$ as
|
| 119 |
+
|
| 120 |
+
$$
|
| 121 |
+
\begin{array} { r l } & { \mathbf { x } _ { i } ^ { n + 1 } = \mathbf { x } _ { i } ^ { n * } + \Delta \mathbf { x } _ { i } } \\ & { \mathbf { v } _ { i } ^ { n + 1 } = \frac { \mathbf { x } _ { i } ^ { n + 1 } - \mathbf { x } _ { i } ^ { n } } { \Delta t } . } \end{array}
|
| 122 |
+
$$
|
| 123 |
+
|
| 124 |
+
Note that the updated position $\mathbf { x } _ { i } ^ { n + 1 }$ depends on the output vector $\Delta { { \bf { x } } _ { i } }$ and allows us to directly define our learning objective on the particle positions.
|
| 125 |
+
|
| 126 |
+

|
| 127 |
+
Figure 2: Schematic of our network with a depth of four. In the first depth level we compute convolutions at each dynamic particle location with the set of static particles that defines the environment as well as the dynamic particle set. We also directly process the features of each particle via a fully-connected stream. In the following levels, we compute convolutions only on the dynamic particles. At each level we use addition to aggregate the features computed by convolutions and fully-connected layers. Between the second and third level we also include a residual connection. The final level generates the position correction $\Delta \mathbf { x }$ . Operations annotated with a \* are followed by the ReLU activation function. All CConv and FC operations use an additive bias.
|
| 128 |
+
|
| 129 |
+
# 5.1 NETWORK ARCHITECTURE
|
| 130 |
+
|
| 131 |
+
We use a simple convolutional architecture with an effective depth of four. An overview of the network is shown in Figure 2. Since we want to compute the correction for all dynamic particles in our scene, we compute convolutions for the intermediate positions defined in Equation 11. Our network is a sequence of continuous convolutions (CConv), which are defined by an input particle set, the positions at which we want to evaluate the convolution, its filters $G$ , and the radius $R$ . For instance, to describe a convolution on the static particles $s _ { i }$ at intermediate positions $\mathbf { x } _ { i } ^ { n * }$ we can write
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
[ { \bf f } _ { 1 } , \ldots , { \bf f } _ { N } ] = \mathrm { C C o n v } ( \{ s _ { 1 } , \ldots , s _ { M } \} , [ { \bf x } _ { 1 } ^ { n * } , \ldots , { \bf x } _ { N } ^ { n * } ] , G , R ) ,
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+
where $\mathbf { f } _ { i }$ are the computed output features for each position $\mathbf { x } _ { i } ^ { n * }$ . $G$ is a 5D array storing all filters in the layout [width, height, depth, $\mathrm { c h } _ { \mathrm { i n } } , \mathrm { c h } _ { \mathrm { o u t } } ]$ . In contrast to discrete convolutions on a regular grid, the spatial filter dimensions here do not define the receptive field but the resolution of the filters. The receptive field depends only on the radius $R$ , which specifies the spatial extent. Throughout our network we use filters with a spatial resolution of [4, 4, 4] and a radius of 4.5 times the particle radius.
|
| 138 |
+
|
| 139 |
+
For convolutions within the dynamic particles we exclude the particle at which we evaluate the convolution and instead process the particle’s own features in a stream of fully-connected layers. After each depth level we then combine the result from the convolutions and the fully-connected layers by addition. This can be interpreted as a convolution with a spatial resolution of $4 \times 4 \times 4 + 1$ . We found that this design improves accuracy and allows us to use smaller filters with even sizes (see Table 2).
|
| 140 |
+
|
| 141 |
+
# 5.2 TRAINING PROCEDURE
|
| 142 |
+
|
| 143 |
+
We train our fluid simulation network in supervised fashion based on particle trajectories produced by classic (“ground-truth”) physics simulation. Our loss is defined as follows:
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
\mathcal { L } ^ { n + 1 } = \sum _ { i = 1 } ^ { N } \phi _ { i } \left. \mathbf { x } _ { i } ^ { n + 1 } - \hat { \mathbf { x } } _ { i } ^ { n + 1 } \right. _ { 2 } ^ { \gamma } .
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
The ground-truth position at timestep $n + 1$ is denoted by $\hat { \mathbf { x } } _ { i } ^ { n + 1 }$ and the predicted position from the network is denoted by $\mathbf { x } _ { i } ^ { n + 1 } = \mathbf { x } _ { i } ^ { n * } + \Delta \mathbf { x } _ { i }$ , where $\Delta { { \bf { x } } _ { i } }$ is provided by the network. $\phi _ { i }$ is an individual weight for each point. We use $\begin{array} { r } { \phi _ { i } = \exp ( - \frac { 1 } { c } | \mathcal { N } ( \mathbf { x } _ { i } ^ { n * } ) | ) } \end{array}$ , which emphasizes the loss for particles with fewer neighbors. We choose $c = 4 0$ , which corresponds to the average number of neighbors across our experiments. Particles with few neighbors are close to the surface or interact with the scene boundary. Both cases are important for fluid simulation because particles near the surface define the liquid-air interface, which is particularly salient, and particles near the scene boundary require collision handling. The parameter $\gamma = 0 . 5$ makes our loss function more sensitive to small particle motions, which is important for increasing the accuracy and visual fidelity for small fluid flows. During training we predict particle positions for two future timesteps, namely $n + 1$ and $n + 2$ . The combined loss $\mathcal { L }$ is
|
| 150 |
+
|
| 151 |
+

|
| 152 |
+
Figure 3: Comparison to ground-truth physics simulation. Two fluid bodies collide. Top: simulation by our trained network. Bottom: simulation of the same scenario by DFSPH (Bender & Koschier, 2015), a high-fidelity solver that was executed with small timesteps (down to 0.001s). Despite using a much larger timestep (0.02s), our convolutional network produces results of comparable visual fidelity. Note that our particles are falling slightly more slowly due to differences in the integration of positions and the much larger timestep. See the supplementary video.
|
| 153 |
+
|
| 154 |
+
$$
|
| 155 |
+
{ \mathcal { L } } = { \mathcal { L } } ^ { n + 1 } + { \mathcal { L } } ^ { n + 2 } .
|
| 156 |
+
$$
|
| 157 |
+
|
| 158 |
+
We found that optimizing a loss defined over two frames improves the overall quality of the simulation. (Optimization for three frames did not result in further improvements.) We optimize $\mathcal { L }$ over 50,000 iterations with Adam (Kingma & Ba, 2015) and a learning rate decay with multiple steps, starting with a learning rate of 0.001 and stopping with $1 . 5 6 \cdot 1 0 ^ { - 5 }$ .
|
| 159 |
+
|
| 160 |
+
# 5.3 DATASETS
|
| 161 |
+
|
| 162 |
+
We have trained our network on multiple datasets. For quantitative comparisons with prior work we trained our network on the dam break data from Li et al. (2019). The scene simulates the behavior of a randomly placed fluid block in a static box. We generate 2000 scenes for training and 300 for testing. The data was generated with FleX, which is a position-based simulator that targets real-time applications (Macklin et al., 2014).
|
| 163 |
+
|
| 164 |
+
We also trained our network on more challenging data generated with DFSPH (Bender & Koschier, 2015), which prioritizes simulation fidelity over runtime. DFSPH can generate accurate fluid flows with very low volume compression: a desired property. We generate ground-truth data by randomly placing multiple bodies of fluid in 10 different box-like scenes and simulating them for 16 seconds each with an adaptive timestep of up to $1 \mathrm { k H z }$ . The time resolution of the generated data is $5 0 \mathrm { { H z } }$ . We show a qualitative comparison of our method to the ground truth in Figure 3. We generate 200 scenes for training and 20 scenes for the test set. To train networks that can deal with multiple materials, we additionally generate 200 scenes with fluids of varying viscosity. For estimating material properties, we generate 7 test scenes that only differ in the viscosity parameter.
|
| 165 |
+
|
| 166 |
+
# 6 EVALUATION
|
| 167 |
+
|
| 168 |
+
Baselines. We compare our method to DPI-Nets (Li et al., 2019), which were previously shown to significantly outperform prior formulations such as hierarchical relation networks (Mrowca et al., 2018). Figure 4 provides a qualitative comparison. Quantitative results are reported in Table 1. To analyze the accuracy of the forward step for each method, we compute the average error of the particle positions with respect to the ground truth. We use every $5 ^ { \mathrm { t h } }$ frame for initialization and compute the deviation from the ground truth for two subsequent frames, denoted by $n + 1$ and $n + 2$ .
|
| 169 |
+
|
| 170 |
+

|
| 171 |
+
Figure 4: Qualitative comparison with DPI-Nets on a test sequence from our dataset. Two fluid bodies collide inside a container. DPI-Nets works well on data with little variance but has problems with more complex scenes and high particle velocities. The DPI-Nets simulation becomes unstable immediately after the fluid hits the box. The fluid behavior predicted by our network matches the ground truth more closely and remains stable for the whole sequence. The two networks have been trained on the same data. Test sequences are distinct from training sequences. See the supplementary video.
|
| 172 |
+
|
| 173 |
+
In addition, we report the average distance from the ground-truth particles to the closest particle in the prediction for the whole sequence, to measure long-term similarity. We compute the distance for frame $n$ as
|
| 174 |
+
|
| 175 |
+
$$
|
| 176 |
+
d ^ { n } = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \operatorname* { m i n } _ { \mathbf { x } ^ { n } \in X ^ { n } } \| \hat { \mathbf { x } } _ { i } ^ { n } - \mathbf { x } ^ { n } \| _ { 2 } ,
|
| 177 |
+
$$
|
| 178 |
+
|
| 179 |
+
where $X ^ { n }$ is the set of predicted particle positions for frame $n$ , $\hat { \mathbf { x } } _ { i } ^ { n }$ is the ground-truth position for particle $i$ , and $N$ is the number of particles.
|
| 180 |
+
|
| 181 |
+
We also compare our continuous convolution formulation to continuous convolution representations used in SPNets (Schenck & Fox, 2018), PCNN (Wang et al., 2018), KPConv (Thomas et al., 2019), and SplineCNN (Fey et al., 2018). To this end, we plug the respective convolution operators into our network architecture as shown in Figure 2. This facilitates controlled comparisons in which the overall architecture and simulation setup are fixed and only the convolution operators are varied. As shown in Table 1, our method outperforms all baselines with respect to both accuracy and inference time.
|
| 182 |
+
|
| 183 |
+
We have trained and tested all methods on the dam break dataset from Li et al. (2019) as well as our data (generated with a high-fidelity simulator (Bender & Koschier, 2015)). To facilitate the training on our data for all methods, we generated a simplified version with a constant number of particles (6,000) and a single box environment (as shown in Figure 4). We train DPI-Nets for 5 epochs and all other networks for 50,000 iterations, which corresponds to 2.7 epochs for the dam break data and 5 epochs for our data. Training takes about a day for our method with our convolutions on an NVIDIA RTX 2080Ti. Training with PCNN convolutions (Wang et al., 2018) takes about 2 days on 4 GPUs. Note that our reimplementation of PCNN convolutions uses Tensorflow’s built-in functions, which consume a lot of memory and necessitate multi-GPU training. The DPI-Nets model trains in about one day. Training with SplineCNN Convs takes 3 to 4 days on a single GPU. We got the best results for this method with spherical kernel coordinates and closed splines. For KPConvs we used a Quadro RTX 6000 with $2 4 \mathrm { \ G B }$ of RAM due to the higher memory requirements. Training took about 1 day with 15 kernel points. For SPNets convolutions, we estimated a training time of more than 29 days with $3 \times 3 \times 3$ filters by extrapolating from timing of a smaller number of iterations. We thus only report inference time for this method. Note that the convolutions of SPNets were designed to implement the position-based fluids algorithm, while we use them here in a more general network architecture with a much larger number of channels, which explains the very long runtime.
|
| 184 |
+
|
| 185 |
+
Ablation study. We perform an ablation study to evaluate our decisions in the design of the continuous convolution operator and the network. We study the importance of the interpolation, the window function, the loss design, and the architecture choice. The results are reported in Table 2. This table reports error measures (averaged over the test sequences) that were used in Table 1, and also reports the errors for two predicted frames initialized with the frames at the end of each sequence to measure the errors for small flow velocities. Large errors for small velocities can yield perceptually salient artifacts: rather than being still, fluid particles jitter or churn.
|
| 186 |
+
|
| 187 |
+
Table 1: Accuracy and runtime analysis. We compare the average error between the ground-truth particle positions and two predicted future frames on the test set. Additionally, we report the average distance from the ground truth to the prediction over the whole sequence. In this test mode some methods become unstable after a few frames. In the last column we report the average inference time per frame.
|
| 188 |
+
|
| 189 |
+
<table><tr><td rowspan="2" colspan="2">Method</td><td colspan="2">Average pos error (mm)</td><td rowspan="2">Average distance to closest point d" (mm)</td><td rowspan="2">Frame inference time (ms)</td></tr><tr><td>n+1</td><td>n+2</td></tr><tr><td></td><td>DPI-Nets</td><td>12.73</td><td>25.38</td><td>22.07</td><td>202.56</td></tr><tr><td></td><td>SPNets Convs</td><td>一</td><td>一</td><td></td><td>1058.46</td></tr><tr><td></td><td>PCNN Convs</td><td>0.72</td><td>1.67</td><td>19.79</td><td>187.34</td></tr><tr><td>RParaasr</td><td>SplineCNN Convs</td><td>0.71</td><td>1.65</td><td>170.20</td><td>67.67</td></tr><tr><td></td><td>KPConv</td><td>2.49</td><td>7.05</td><td>unstable</td><td>47.96</td></tr><tr><td></td><td>Ours</td><td>0.62</td><td>1.49</td><td>16.98</td><td>12.01</td></tr><tr><td></td><td>DPI-Nets</td><td>26.19</td><td>51.77</td><td>unstable</td><td>305.55</td></tr><tr><td></td><td>SPNets Convs</td><td>1</td><td>1</td><td>1</td><td>784.35</td></tr><tr><td>raarae rl gaest</td><td>PCNN Convs</td><td>0.67</td><td>1.87</td><td>32.51</td><td>319.17</td></tr><tr><td></td><td>SplineCNN Convs</td><td>0.68</td><td>1.93</td><td>unstable</td><td>281.92</td></tr><tr><td></td><td>KPConv</td><td>1.65</td><td>4.54</td><td>unstable</td><td>57.89</td></tr><tr><td></td><td>Ours</td><td>0.56</td><td>1.51</td><td>29.50</td><td>16.47</td></tr></table>
|
| 190 |
+
|
| 191 |
+
Table 2: Ablation study. We compare the average error between the ground-truth particle positions and two predicted future frames on the test set, evaluated over whole test sequences (left) and just on the final frames of each test sequence (middle; this focuses on frames with small motion). The rightmost column shows the average distance from the ground truth to the predicted point set over whole test sequences. Ours w/o interpolation uses nearest-neighbor instead of trilinear interpolation for the convolution filters. Ours w/o window uses $a ( \mathbf { x } _ { i } , \mathbf { x } ) = 1$ in Equation 7. Ours w/ na¨ıve loss uses Euclidean distance as the loss, i.e. we set $\gamma = 1$ and $\phi _ { i } = 1$ in Equation 16. Ours w/o FC uses only convolutions and includes the central particle in the convolution (rather than separately processing its features via an FC layer).
|
| 192 |
+
|
| 193 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">Average error (mm)</td><td colspan="2">Seq. end error (mm)</td><td rowspan="2">Average distance to closest point d" (mm)</td></tr><tr><td>n+1</td><td>n+2</td><td>n+1</td><td>n+2</td></tr><tr><td>Ours</td><td>0.67</td><td>1.87</td><td>0.25</td><td>0.74</td><td>30.63</td></tr><tr><td>Ours w/o interpolation</td><td>0.79</td><td>2.24</td><td>0.30</td><td>0.89</td><td>32.39</td></tr><tr><td>Ours w/o window</td><td>0.77</td><td>2.21</td><td>0.30</td><td>0.89</td><td>31.77</td></tr><tr><td>Ours w/ naive loss</td><td>0.69</td><td>1.86</td><td>0.27</td><td>0.77</td><td>30.35</td></tr><tr><td>Ours w/o FC</td><td>0.75</td><td>2.17</td><td>0.27</td><td>0.80</td><td>32.49</td></tr></table>
|
| 194 |
+
|
| 195 |
+
Generalization. In Figure 5 we show that our network generalizes well to scenes with drastically different geometry than seen during training. (The training set uses only box-like containers. See the appendix for visualization.) These scenarios demonstrate that we can emit particles during simulation, which can be costly for methods that build and maintain explicit graph structures. We compare generalization performance quantitatively to DFPSH on a complex scene in Figure 6. Figure 7 demonstrates generalization along a different dimension. Here we show that we can set the viscosity of the fluid at test time to a value not seen during training. The fluid shape used in this example was also not seen during training.
|
| 196 |
+
|
| 197 |
+

|
| 198 |
+
Figure 5: Generalization to environments with drastically different geometry than seen during training. Top: we use an emitter to fill up a virtual river with fluid particles, demonstrating generalization with respect to scene geometry and the number of particles. Bottom: a waterfall scene showing the fluid particles and the particle representation of the environment. See the supplementary video.
|
| 199 |
+
|
| 200 |
+

|
| 201 |
+
Figure 6: Average distance from the ground-truth particles to the predicted particles on a complex scene. Top: error over time for our trained network and DFSPH. We use a timestep of $\Delta t = 5$ ms for DFSPH and $\Delta t = 2 0 \mathrm { m s }$ for our method, which also corresponds to the frame sampling rate. The ground truth was generated with DFSPH and a timestep of 1ms. Bottom: simulation produced by our network. Large errors are concentrated in the beginning of the sequence when the fluid initially collides with the environment and the fluid behavior is most chaotic. During this phase the error is higher for our method than DFSPH. After 200 frames the error levels become similar.
|
| 202 |
+
|
| 203 |
+

|
| 204 |
+
Figure 7: We can control the viscosity of the simulated fluid at test time by changing the input parameter $\nu$ in the input feature vector.
|
| 205 |
+
|
| 206 |
+
Material estimation. In this experiment we apply our network to an inverse problem: material estimation from observation. We use our network to estimate the viscosity parameter of a fluid from the particle movement. The training data for this experiment contains 200 sequences with random viscosity parameters between 0.01 and 0.3. For testing we generate 5 new sequences with 100 frames and random viscosity within the same range as used during training and use an initial fluid shape not present in the training data. To test generalization we generate two sequences with viscosity values outside the training range, namely 0.35 and 0.4. To estimate the viscosity we backpropagate through the trained network and optimize $\nu$ with gradient descent. Table 3 reports the results, which indicate that our network can be used to estimate material properties from observed data.
|
| 207 |
+
|
| 208 |
+
<table><tr><td>GT viscosity</td><td>0.044</td><td>0.127</td><td>0.174</td><td>0.233</td><td>0.269</td><td>0.350</td><td>0.400</td><td>Mean</td></tr><tr><td>Avg. estimated viscosity</td><td>0.027</td><td>0.150</td><td>0.202</td><td>0.255</td><td>0.277</td><td>0.322</td><td>0.336</td><td></td></tr><tr><td>Avg. relative error (%)</td><td>38.377</td><td>18.542</td><td>15.604</td><td>9.568</td><td>3.235</td><td>7.954</td><td>16.016</td><td>15.614</td></tr></table>
|
| 209 |
+
|
| 210 |
+
Table 3: Application to an inverse problem: material estimation from observed fluid motion. To estimate the viscosity we backpropagate through our network and optimize $\nu$ with gradient descent. For each scene, we run the procedure 10 times, each time with random initialization, and report the average. Viscosity values 0.350 and 0.400 are outside the range that was used during training and are used to test generalization.
|
| 211 |
+
|
| 212 |
+
# 7 CONCLUSION
|
| 213 |
+
|
| 214 |
+
We have developed continuous convolutional networks for Lagrangian fluid simulation. We have introduced a simple formulation for continuous convolutions and demonstrated its accuracy and speed. Our model captures a wide range of complex material behavior, offers long-term stability, and generalizes to new situations such as varying particle counts, domain geometries, and material properties. There are numerous directions for future work, such as extending the framework to incorporate rigid and deformable solids. We will release the code to facilitate such development. Our continuous convolution implementation will be made available as part of Open3D (Zhou et al., 2018).
|
| 215 |
+
|
| 216 |
+
Acknowledgements. We thank Jan Bender for his support with the SPlisHSPlasH framework.
|
| 217 |
+
|
| 218 |
+
# REFERENCES
|
| 219 |
+
|
| 220 |
+
Matan Atzmon, Haggai Maron, and Yaron Lipman. Point convolutional neural networks by extension operators. ACM Trans. Graph., 37(4), 2018.
|
| 221 |
+
|
| 222 |
+
George K. Batchelor. An Introduction to Fluid Dynamics. Cambridge University Press, 1967.
|
| 223 |
+
|
| 224 |
+
Peter W. Battaglia, Razvan Pascanu, Matthew Lai, Danilo Rezende, and Koray Kavukcuoglu. Interaction networks for learning about objects, relations and physics. In Advances in Neural Information Processing Systems, 2016.
|
| 225 |
+
|
| 226 |
+
Jan Bender and Dan Koschier. Divergence-free smoothed particle hydrodynamics. In Symposium on Computer Animation, 2015.
|
| 227 |
+
|
| 228 |
+
Andrea Colagrossi and Maurizio Landrini. Numerical simulation of interfacial flows by smoothed particle hydrodynamics. Journal of Computational Physics, 191(2), 2003.
|
| 229 |
+
|
| 230 |
+
Matthias Fey, Jan Eric Lenssen, Frank Weichert, and Heinrich Muller. SplineCNN: Fast geometric ¨ deep learning with continuous B-spline kernels. In CVPR, 2018.
|
| 231 |
+
|
| 232 |
+
Nick Foster and Dimitris N. Metaxas. Realistic animation of liquids. Graphical Models and Image Processing, 58(5), 1996.
|
| 233 |
+
|
| 234 |
+
Robert A Gingold and Joseph J Monaghan. Smoothed particle hydrodynamics: Theory and application to non-spherical stars. Monthly Notices of the Royal Astronomical Society, 181(3), 1977.
|
| 235 |
+
|
| 236 |
+
Christoph Gissler, Andreas Peer, Stefan Band, Jan Bender, and Matthias Teschner. Interlinked SPH pressure solvers for strong fluid-rigid coupling. ACM Trans. Graph., 38(1), 2018.
|
| 237 |
+
|
| 238 |
+
Jens Andre Griepentrog, Wolfgang H ´ oppner, Hans-Christoph Kaiser, and Joachim Rehberg. A bi- ¨ Lipschitz continuous, volume preserving map from the unit ball onto a cube. Note di Matematica, 28, 2008.
|
| 239 |
+
|
| 240 |
+
Pedro Hermosilla, Tobias Ritschel, Pere-Pau Vazquez, ´ Alvar Vinacua, and Timo Ropinski. Monte \` Carlo convolution for learning on non-uniformly sampled point clouds. ACM Trans. Graph., 37 (6), 2018.
|
| 241 |
+
|
| 242 |
+
Xiang Yu Hu and Nikolaus A Adams. A multi-phase SPH method for macroscopic and mesoscopic flows. Journal of Computational Physics, 213(2), 2006.
|
| 243 |
+
|
| 244 |
+
Binh-Son Hua, Minh-Khoi Tran, and Sai-Kit Yeung. Pointwise convolutional neural networks. In CVPR, 2018.
|
| 245 |
+
|
| 246 |
+
Byungsoo Kim, Vinicius C. Azevedo, Nils Thuerey, Theodore Kim, Markus Gross, and Barbara Solenthaler. Deep fluids: A generative network for parameterized fluid simulations. Computer Graphics Forum, 38(2), 2019.
|
| 247 |
+
|
| 248 |
+
Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
|
| 249 |
+
|
| 250 |
+
L’ubor Ladicky, SoHyeon Jeong, Barbara Solenthaler, Marc Pollefeys, and Markus Gross. Data- ´ driven fluid simulations using regression forests. ACM Trans. Graph., 34(6), 2015.
|
| 251 |
+
|
| 252 |
+
Huan Lei, Naveed Akhtar, and Ajmal Mian. Octree guided CNN with spherical kernels for 3D point clouds. In CVPR, 2019.
|
| 253 |
+
|
| 254 |
+
Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. PointCNN: Convolution on X-transformed points. In Advances in Neural Information Processing Systems, 2018.
|
| 255 |
+
|
| 256 |
+
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, 2019.
|
| 257 |
+
|
| 258 |
+
Julia Ling, Andrew Kurzawski, and Jeremy Templeton. Reynolds averaged turbulence modelling using deep neural networks with embedded invariance. Journal of Fluid Mechanics, 807, 2016.
|
| 259 |
+
|
| 260 |
+
Miles Macklin and Matthias Muller. Position based fluids. ¨ ACM Trans. Graph., 32(4), 2013.
|
| 261 |
+
|
| 262 |
+
Miles Macklin, Matthias Muller, Nuttapong Chentanez, and Tae-Yong Kim. Unified particle physics ¨ for real-time applications. ACM Trans. Graph., 33(4), 2014.
|
| 263 |
+
|
| 264 |
+
J Monaghan. An introduction to SPH. Computer Physics Communications, 48(1), 1988.
|
| 265 |
+
|
| 266 |
+
Jeremy Morton, Antony Jameson, Mykel J Kochenderfer, and Freddie Witherden. Deep dynamical modeling and control of unsteady fluid flows. In Advances in Neural Information Processing Systems, 2018.
|
| 267 |
+
|
| 268 |
+
Damian Mrowca, Chengxu Zhuang, Elias Wang, Nick Haber, Li F Fei-Fei, Josh Tenenbaum, and Daniel L Yamins. Flexible neural representation for physics prediction. In Advances in Neural Information Processing Systems, 2018.
|
| 269 |
+
|
| 270 |
+
Matthias Muller, David Charypar, and Markus Gross. Particle-based fluid simulation for interactive ¨ applications. In Symposium on Computer Animation, 2003.
|
| 271 |
+
|
| 272 |
+
Daniel J Price. Smoothed particle hydrodynamics and magnetohydrodynamics. Journal of Computational Physics, 231(3), 2012.
|
| 273 |
+
|
| 274 |
+
Alvaro Sanchez-Gonzalez, Nicolas Heess, Jost Tobias Springenberg, Josh Merel, Martin A. Riedmiller, Raia Hadsell, and Peter W. Battaglia. Graph networks as learnable physics engines for inference and control. In ICML, 2018.
|
| 275 |
+
|
| 276 |
+
Connor Schenck and Dieter Fox. SPNets: Differentiable fluid dynamics for deep neural networks. In Conference on Robot Learning, 2018.
|
| 277 |
+
|
| 278 |
+
Barbara Solenthaler and Renato Pajarola. Predictive-corrective incompressible SPH. ACM Trans. Graph., 28(3), 2009.
|
| 279 |
+
|
| 280 |
+
Hang Su, Varun Jampani, Deqing Sun, Subhransu Maji, Evangelos Kalogerakis, Ming-Hsuan Yang, and Jan Kautz. SPLATNet: Sparse lattice networks for point cloud processing. In CVPR, 2018.
|
| 281 |
+
|
| 282 |
+
Matthias Teschner, Bruno Heidelberger, Matthias Muller, Danat Pomerantes, and Markus H. Gross. ¨ Optimized spatial hashing for collision detection of deformable objects. In Vision, Modeling, and Visualization (VMV), 2003.
|
| 283 |
+
|
| 284 |
+
Hugues Thomas, Charles R. Qi, Jean-Emmanuel Deschaud, Beatriz Marcotegui, Franc¸ois Goulette, and Leonidas J. Guibas. KPConv: Flexible and deformable convolution for point clouds. In ICCV, 2019.
|
| 285 |
+
|
| 286 |
+
Jonathan Tompson, Kristofer Schlachter, Pablo Sprechmann, and Ken Perlin. Accelerating Eulerian fluid simulation with convolutional networks. In ICML, 2017.
|
| 287 |
+
|
| 288 |
+
Shenlong Wang, Simon Suo, Wei-Chiu Ma, Andrei Pokrovsky, and Raquel Urtasun. Deep parametric continuous convolutional neural networks. In CVPR, 2018.
|
| 289 |
+
|
| 290 |
+
Steffen Wiewel, Moritz Becher, and Nils Thuerey. Latent space physics: Towards learning the temporal evolution of fluid flow. Computer Graphics Forum, 38(2), 2019.
|
| 291 |
+
|
| 292 |
+
David C Wilcox. Turbulence Modeling for CFD. DCW industries, 3rd edition, 2006.
|
| 293 |
+
|
| 294 |
+
Wenxuan Wu, Zhongang Qi, and Fuxin Li. PointConv: Deep convolutional networks on 3D point clouds. In CVPR, 2019.
|
| 295 |
+
|
| 296 |
+
You Xie, Erik Franz, Mengyu Chu, and Nils Thuerey. tempoGAN: A temporally coherent, volumetric GAN for super-resolution fluid flow. ACM Trans. Graph., 37(4), 2018.
|
| 297 |
+
|
| 298 |
+
Yifan Xu, Tianqi Fan, Mingye Xu, Long Zeng, and Yu Qiao. SpiderCNN: Deep learning on point sets with parameterized convolutional filters. In ECCV, 2018.
|
| 299 |
+
|
| 300 |
+
Qian-Yi Zhou, Jaesik Park, and Vladlen Koltun. Open3D: A modern library for 3D data processing. arXiv:1801.09847, 2018.
|
| 301 |
+
|
| 302 |
+
# A APPENDIX
|
| 303 |
+
|
| 304 |
+
# A.1 IMPLEMENTATION DETAILS
|
| 305 |
+
|
| 306 |
+
To accelerate the computation of Equation 7 we use existing general matrix multiplication primitives. Similar to standard convolutions in deep learning frameworks we build a matrix with patches that we then multiply with the filter matrix. We can account for the linear interpolation by applying the interpolation to the patch matrix instead of the filters. For 3D point clouds a single point contributes to up to 8 voxels in a patch.
|
| 307 |
+
|
| 308 |
+
Another crucial part of our implementation is the nearest neighbor search. Since the positions of the fluid particles update with each timestep, we have to rebuild the neighborhood information for every frame. We implement the neighborhood search with spatial hashing (we use the hash function proposed in Teschner et al. (2003)). We explicitly store all particle neighbors in a compact list, which allows us to reuse the information for multiple convolutions operating on the same point sets. Table 4 compares the average frame runtimes of our method with the baselines.
|
| 309 |
+
|
| 310 |
+
# A.2 DATASET GENERATION
|
| 311 |
+
|
| 312 |
+
To enable generalization to new environments we use 10 different containers (see Figure 8) in our data generation process. During scene generation we randomly sample an environment and place up to 3 fluid bodies with different shapes and sizes (see Figure 9) and random initial velocities in the scene. We simulate each generated scene with DFSPH using the SPlisHSPlasH framework 1 for
|
| 313 |
+
|
| 314 |
+
<table><tr><td>Method</td><td></td><td>Frame inference time (ms)</td><td>Frame NNS time (ms)</td><td>NNS Method</td></tr><tr><td></td><td>DPI-Nets</td><td>202.56</td><td>103.26</td><td>KD-Tree (SciPy)</td></tr><tr><td>Daraaa</td><td>SPNets Convs</td><td>1058.46</td><td>5.24</td><td>Spatial hashing on GPU</td></tr><tr><td></td><td>PCNN Convs</td><td>187.34</td><td>2.42</td><td>*Spatial hashing on GPU</td></tr><tr><td></td><td>SplineCNN Convs</td><td>67.67</td><td>41.92</td><td>Brute-force on GPU</td></tr><tr><td></td><td>KPConv</td><td>47.96</td><td>28.12</td><td>KD-Tree (nanoflann)</td></tr><tr><td></td><td>Ours</td><td>12.01</td><td>2.14</td><td>* Spatial hashing on GPU</td></tr><tr><td>gaaarae err tar est</td><td>DPI-Nets</td><td>305.55</td><td>171.22</td><td>KD-Tree (SciPy)</td></tr><tr><td></td><td>SPNets Convs</td><td>784.35</td><td>10.19</td><td>Spatial hashing on GPU</td></tr><tr><td></td><td>PCNN Convs</td><td>319.17</td><td>2.78</td><td>* Spatial hashing on GPU</td></tr><tr><td></td><td>SplineCNN Convs</td><td>281.92</td><td>245.52</td><td>Brute-force on GPU</td></tr><tr><td></td><td>KPConv</td><td>57.89</td><td>34.07</td><td>KD-Tree (nanoflann)</td></tr><tr><td></td><td>Ours</td><td>16.47</td><td>2.38</td><td>*Spatial hashing on GPU</td></tr></table>
|
| 315 |
+
|
| 316 |
+
Table 4: Runtime analysis. We compare the average per frame inference time and the time used for the nearest neighbor search (NNS). Our convolution achieves the shortest inference times in comparison even if NNS times would be excluded. Irrespective of that, the methods used for finding neighbors can have a significant contribution to the total runtime. Since fluid particles are moving, acceleration structures for the neighbor search have to be rebuilt each frame. This affects the KDTree methods as well as the methods using spatial hashing. Note that we use the same NNS for PCNN and Ours (denoted with \*). For all methods except for SPNets the inference time is shorter on the smaller DPI DamBreak data (3456 particles compared to the 6000 particles of our data). We attribute this to a higher number of neighbors on the DPI DamBreak, which is about 49 on average compared to the average 40 neighbors on our datasets. All runtimes were measured on a system with an Intel Core i9-7960 and an NVIDIA RTX 2080Ti.
|
| 317 |
+
|
| 318 |
+
16 seconds to ensure that each scene contains frames with small particle velocities. To create the particle representation of the box-like containers, we do Poisson-Disc sampling on the mesh surface with the tools provided by DFPSH and add surface normals to each particle.
|
| 319 |
+
|
| 320 |
+

|
| 321 |
+
Figure 8: We sample from 10 different box-like containers during data generation. For the simplified version of our dataset used in the quantitative comparison with the baselines we only use the first container (leftmost container in the first row).
|
| 322 |
+
|
| 323 |
+

|
| 324 |
+
Figure 9: We randomly place fluid bodies of different initial shapes in the scene during data generation. We sample from 5 different shapes and vary the size, the orientation and the initial particle velocity. All particles from the same fluid body start with the same initial velocity. The image shows the particles generated from each shape for a specific size and orientation.
|
| 325 |
+
|
| 326 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">Average error (mm)</td><td colspan="2">Seq. end error (mm)</td><td rowspan="2">Average distance to closest point d (mm)</td></tr><tr><td>n+1</td><td>n+2</td><td>n+1</td><td>n+2</td></tr><tr><td>Ours</td><td>0.67</td><td>1.87</td><td>0.25</td><td>0.74</td><td>30.63</td></tr><tr><td>Ours triangular window</td><td>0.69</td><td>1.94</td><td>0.27</td><td>0.79</td><td>30.28</td></tr><tr><td>Ours w/o window</td><td>0.77</td><td>2.21</td><td>0.30</td><td>0.89</td><td>31.77</td></tr></table>
|
| 327 |
+
|
| 328 |
+
Table 5: Comparison of different window functions. Ours uses a window function similar to the poly6 kernel used in Muller et al. (2003). ¨ Ours triangular window uses a triangular window function. Ours w/o window does not use a window function. This case can also be interpreted as a rectangular window since we only consider points within a radius $R$ .
|
| 329 |
+
|
| 330 |
+
# A.3 TRAINING DETAILS
|
| 331 |
+
|
| 332 |
+
We use the Tensorflow framework for implementing the training procedure. We use Adam as optimizer and train with a batch size of 16 and an initial learning rate of 0.001. We half the learning rate at steps 20000, 25000, . . . , 45000. For the convolutions we use the random uniform initializer with range [-0.05, 0.05]. All other weights are initialized with the respective default initializers of Tensorflow version 1.12. The output of the network is scaled with $\scriptstyle { \frac { 1 } { 1 2 8 } }$ to roughly adjust the output range to the ground truth position correction of the training data.
|
| 333 |
+
|
| 334 |
+
The unit of length of the training data is meter. The particle radius used in DFSPH is $h = 0 . 0 2 5 \mathrm { m }$ .
|
| 335 |
+
For our convolutions, we use spherical filters with an empirically determined radius of $R = 4 . 5 h$ .
|
| 336 |
+
|
| 337 |
+
# A.4 WINDOW FUNCTION
|
| 338 |
+
|
| 339 |
+
We compare 3 different choices for the window function $a$ from Equation 8 in Table 5. The results show that enforcing a continuous output with a window function yields better results. Further, using a window function similar to kernels used in SPH codes gives better results than a simple triangular window. Learning the window function is therefore a possible direction to extend our framework to further improve the accuracy.
|
| 340 |
+
|
| 341 |
+
# A.5 COORDINATE MAPPING FUNCTION
|
| 342 |
+
|
| 343 |
+
We use the ball to cube mapping described in (Griepentrog et al., 2008) to map a position within a spherical region to the filter values stored in a regular grid. We give here the functions used for the 3-D case as used in our implementation. For more details see (Griepentrog et al., 2008).
|
| 344 |
+
|
| 345 |
+
The function $\Lambda$ is a composition of the functions $\Lambda _ { \mathrm { b a l l c y l } }$ and $\Lambda _ { \mathrm { c y l \to c u b e } }$ , which map a sphere to a cylinder and a cylinder to a cube respectively. We define $\Lambda _ { \mathrm { b a l l c y l } }$ for vectors ${ \bf r } = ( x , y , z )$ as
|
| 346 |
+
|
| 347 |
+
$$
|
| 348 |
+
\begin{array} { r } { \Lambda _ { \mathrm { b a l l } \to \mathrm { c y l } } ( \mathbf { r } ) = \left\{ \begin{array} { l l } { ( 0 , 0 , 0 ) } & { \mathrm { i f ~ } \| \mathbf { r } \| _ { 2 } = 0 } \\ { \left( x \frac { \| \mathbf { r } \| _ { 2 } } { \| ( x , y ) \| _ { 2 } } , y \frac { \| \mathbf { r } \| _ { 2 } } { \| ( x , y ) \| _ { 2 } } , \frac { 3 } { 2 } z \right) } & { \mathrm { i f ~ } \frac { 5 } { 4 } z ^ { 2 } \leq x ^ { 2 } + y ^ { 2 } } \\ { \left( x \sqrt { \frac { 3 \| \mathbf { r } \| _ { 2 } } { \| \mathbf { r } \| _ { 2 } + | z | } } , y \sqrt { \frac { 3 \| \mathbf { r } \| _ { 2 } } { \| \mathbf { r } \| _ { 2 } + | z | } } , \mathrm { s i g n } ( z ) \| \mathbf { r } \| _ { 2 } \right) } & { \mathrm { e l s e } . } \end{array} \right. } \end{array}
|
| 349 |
+
$$
|
| 350 |
+
|
| 351 |
+
The cylinder to cube mapping is defined as
|
| 352 |
+
|
| 353 |
+
$$
|
| 354 |
+
\Lambda _ { \mathrm { c y l } \to \mathrm { c u b e } } ( \mathbf { r } ) = \left\{ \begin{array} { l l } { ( 0 , 0 , z ) } & { \mathrm { i f ~ } x = 0 , y = 0 } \\ { ( \mathrm { s i g n } ( x ) \| ( x , y ) \| _ { 2 } , \frac { 4 } { \pi } \mathrm { s i g n } ( x ) \| ( x , y ) \| _ { 2 } \mathrm { a r c t a n } \frac { y } { x } , z ) } & { \mathrm { i f ~ } | y | \leq | x | } \\ { \left( \frac { 4 } { \pi } \mathrm { s i g n } ( y ) \| ( x , y ) \| _ { 2 } \mathrm { a r c t a n } \frac { x } { y } , \mathrm { s i g n } ( y ) \| ( x , y ) \| _ { 2 } , z \right) } & { \mathrm { e l s e } . } \end{array} \right.
|
| 355 |
+
$$
|
| 356 |
+
|
| 357 |
+
We assume that vectors $\mathbf { r }$ are normalized with the search radius $R$ such that $\| \mathbf { r } \| _ { 2 } \leq 1$ . This yields the following $\Lambda$ , which maps from a unit ball to the normalized coordinates of a cube:
|
| 358 |
+
|
| 359 |
+
$$
|
| 360 |
+
\Lambda ( { \bf r } ) = \frac { 1 } { 2 } \Lambda _ { \mathrm { c y l \to c u b e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 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "LAGRANGIAN FLUID SIMULATION WITH CONTINUOUS CONVOLUTIONS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
99,
|
| 9 |
+
612,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Benjamin Ummenhofer Intel Labs ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
170,
|
| 20 |
+
349,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Lukas Prantl & Nils Thuerey Technical University of Munich ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
405,
|
| 30 |
+
170,
|
| 31 |
+
612,
|
| 32 |
+
198
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Vladlen Koltun Intel Labs ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
668,
|
| 41 |
+
171,
|
| 42 |
+
776,
|
| 43 |
+
198
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "ABSTRACT ",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
454,
|
| 53 |
+
236,
|
| 54 |
+
544,
|
| 55 |
+
251
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "We present an approach to Lagrangian fluid simulation with a new type of convolutional network. Our networks process sets of moving particles, which describe fluids in space and time. Unlike previous approaches, we do not build an explicit graph structure to connect the particles but use spatial convolutions as the main differentiable operation that relates particles to their neighbors. To this end we present a simple, novel, and effective extension of N-D convolutions to the continuous domain. We show that our network architecture can simulate different materials, generalizes to arbitrary collision geometries, and can be used for inverse problems. In addition, we demonstrate that our continuous convolutions outperform prior formulations in terms of accuracy and speed. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
233,
|
| 64 |
+
267,
|
| 65 |
+
764,
|
| 66 |
+
406
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 INTRODUCTION ",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
176,
|
| 76 |
+
439,
|
| 77 |
+
336,
|
| 78 |
+
455
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Understanding physics can help reasoning about our environment and interacting with it. Neural networks have emerged as a particularly promising approach to capture the complexity of natural phenomena from data (Ling et al., 2016; Tompson et al., 2017; Morton et al., 2018). An important aspect of learning physics with neural networks is the choice of representation. Lagrangian representations based on particles are particularly popular and have supported recent results with rigid bodies, deformable solids, and fluids (Battaglia et al., 2016; Mrowca et al., 2018; Li et al., 2019). Many of these approaches use graph structures to define interactions; the existence of an edge determines in a binary fashion whether two particles interact. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
470,
|
| 88 |
+
825,
|
| 89 |
+
583
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "However, a wide range of physical processes such as fluid mechanics are described by continuous partial differential equations rather than discrete graph structures. The continuous, volumetric, and tightly coupled nature of these processes causes inherent difficulties for graph-based approaches, such as a large number of edge connections that must be established, tracked, and disengaged as the particles move. In this work, instead of using graphs as the underlying representation, we adopt a continuous viewpoint. We propose to use convolutional networks (ConvNets) with continuous convolutions on particles for learning fluid mechanics. We treat fluids as spatially continuous functions sampled at a finite set of (continuously evolving) positions and process them with a novel continuous convolution layer. This matches the continuous nature of the problem more closely and simplifies the definition of neural networks by abstracting the underlying particle representation. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
589,
|
| 99 |
+
825,
|
| 100 |
+
728
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "We extend the grid-based filter representation commonly used for discrete convolutions to the continuous domain by simple linear interpolation. Linear interpolation of the filters allows efficient lookup of spatially varying filter values at arbitrary positions while retaining the compactness and efficiency of the grid representation. In addition, we use a window function to define the support of the filters and a ball-to-cube mapping to support spherical receptive fields. We show that our convolutions, despite their simplicity, perform better than more sophisticated representations (Wang et al., 2018; Schenck & Fox, 2018). ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
736,
|
| 110 |
+
825,
|
| 111 |
+
833
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "With the presented continuous convolution layer, we develop an efficient ConvNet architecture for learning fluid mechanics. The network processes sets of particles. We use dynamic particles to represent the fluid and static particles to describe the boundary of the scene. Modeling the scene boundary with particles makes it easy to apply our network to new scenes and allows the network to learn collision handling in a unified framework. Our network generalizes to arbitrary obstacle configurations and can simulate a range of material behavior. To demonstrate the usefulness of a learned – and hence differentiable – fluid simulator, we show that material properties can be estimated from observed simulation data. Experimental results indicate that the presented approach outperforms a state-of-the-art graph-based framework (Li et al., 2019). ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
840,
|
| 121 |
+
825,
|
| 122 |
+
922
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
103,
|
| 132 |
+
823,
|
| 133 |
+
146
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "2 RELATED WORK ",
|
| 140 |
+
"text_level": 1,
|
| 141 |
+
"bbox": [
|
| 142 |
+
176,
|
| 143 |
+
166,
|
| 144 |
+
344,
|
| 145 |
+
183
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Fluids encompass a range of materials that are important in everyday life and throughout science and engineering (Wilcox, 2006). A prominent set of methods, known as Smoothed Particle Hydrodynamics (SPH), employs a Lagrangian viewpoint to simulate these phenomena. SPH originated in particle-based models for astrophysics (Gingold & Monaghan, 1977) and has become extremely popular for simulating complex flows in many fields of science (Monaghan, 1988). Among others, it has been highly successful for modeling interface flows (Colagrossi & Landrini, 2003), complex multi-phase phenomena (Hu & Adams, 2006), and even magnetohydrodynamics (Price, 2012). ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
198,
|
| 155 |
+
825,
|
| 156 |
+
295
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "SPH and its variants have been widely used to model complex real-world phenomena for visual effects. Following the earlier development of physics-based fluid simulation for special effects by Foster & Metaxas (1996), the introduction of SPH (Muller et al., 2003) has led to a large class of ¨ powerful algorithms (Solenthaler & Pajarola, 2009; Bender & Koschier, 2015). These applications often involve complex geometries at large scales, and extensions such as FleX (Macklin et al., 2014) and pressure-aware rigid-body coupling (Gissler et al., 2018) broaden the framework to encompass many physical phenomena. ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
301,
|
| 166 |
+
825,
|
| 167 |
+
400
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "Lagrangian flows have also been considered in machine learning. The pioneering work of Ladicky´ et al. (2015) demonstrated that flow representations can be learned with regression forests. CNNs were used by Tompson et al. (2017) to accelerate the expensive pressure correction step of gridbased solvers, while other works have focused on super-resolution (Xie et al., 2018), learning time evolution via the Koopman operator (Morton et al., 2018), and learning reduced representations (Wiewel et al., 2019; Kim et al., 2019). Differentiable SPH solvers were proposed to solve control tasks for robotic applications (Schenck & Fox, 2018). Generic physics simulations for Lagrangian rigid and deformable bodies were considered in a series of works that developed graph-based representations (Battaglia et al., 2016; Sanchez-Gonzalez et al., 2018). Such graph-based representations were recently applied directly to fluid simulation (Mrowca et al., 2018; Li et al., 2019). We share with these recent works the goal of modeling Lagrangian fluids with differentiable neural networks, but take a different tack: rather than using graph-based representations, we work with point clouds and continuous convolutions over the spatial domain. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
406,
|
| 177 |
+
825,
|
| 178 |
+
587
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "From a technical perspective, our approach is also related to existing works that apply convolutions on point clouds. A number of methods transferred the convolution concept to point clouds in the context of semantic classification and segmentation of 3D objects (Hua et al., 2018; Atzmon et al., 2018; Hermosilla et al., 2018; Li et al., 2018; Su et al., 2018; Wu et al., 2019; Xu et al., 2018; Lei et al., 2019). Particularly notable in our context is the work of Wang et al. (2018), who used continuous convolutions to compute the scene flow between two point clouds, and the aforementioned work of Schenck & Fox (2018), who used convolutions to implement a differentiable version of position-based fluids (Macklin & Muller, 2013). Both works define continuous convolution opera- ¨ tors that can support regression tasks and we compare to them directly in Section 6. Most closely related to our filter representation is the work of Fey et al. (2018). They use B-splines to define continuous filters and propose to use spherical coordinates to implement spherical receptive fields. Spherical coordinates are problematic due to singularities and require special treatment, which we avoid with a ball-to-cube mapping. Furthermore, the output of the operator of Fey et al. (2018) can be discontinuous. We show in our ablation study in Section 6 that applying a window function to guarantee a continuous output is advantageous for our task. ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
174,
|
| 187 |
+
594,
|
| 188 |
+
825,
|
| 189 |
+
803
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "3 BASICS ",
|
| 196 |
+
"text_level": 1,
|
| 197 |
+
"bbox": [
|
| 198 |
+
176,
|
| 199 |
+
821,
|
| 200 |
+
267,
|
| 201 |
+
838
|
| 202 |
+
],
|
| 203 |
+
"page_idx": 1
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"type": "text",
|
| 207 |
+
"text": "Fluids have been studied for centuries, and the Navier-Stokes equations for incompressible fluids are well established (Batchelor, 1967): ",
|
| 208 |
+
"bbox": [
|
| 209 |
+
173,
|
| 210 |
+
854,
|
| 211 |
+
823,
|
| 212 |
+
883
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 1
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "equation",
|
| 218 |
+
"img_path": "images/f62c11fc6d8654ce936a85df16ce2aebb397081349fcd885f121f92584c06c35.jpg",
|
| 219 |
+
"text": "$$\n\\frac { \\partial { \\bf v } } { \\partial t } + { \\bf v } \\cdot \\nabla { \\bf v } = - \\frac { 1 } { \\rho } \\nabla p + \\nu \\nabla ^ { 2 } { \\bf v } + { \\bf g } , ~ \\mathrm { s . t . } ~ \\nabla \\cdot { \\bf v } = 0 .\n$$",
|
| 220 |
+
"text_format": "latex",
|
| 221 |
+
"bbox": [
|
| 222 |
+
312,
|
| 223 |
+
888,
|
| 224 |
+
684,
|
| 225 |
+
922
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 1
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "text",
|
| 231 |
+
"text": "A common approach to solve these partial differential equations is to approximate the fluid with a set of smooth particles (Monaghan, 1988). Each particle corresponds to a continuous blob of matter and carries the local properties of the fluid, such as velocity and density, which move with the flow. This is motivated by the fact that a function $A ( \\mathbf { x } )$ can be represented by an integral interpolation ",
|
| 232 |
+
"bbox": [
|
| 233 |
+
174,
|
| 234 |
+
103,
|
| 235 |
+
825,
|
| 236 |
+
160
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 2
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "equation",
|
| 242 |
+
"img_path": "images/29639995ca24b1f07b84fc1774a0a9b95938e7d1af664fad9e840698e3f7dac9.jpg",
|
| 243 |
+
"text": "$$\nA ( \\mathbf { x } ) = \\int A ( \\mathbf { x } ^ { \\prime } ) \\delta ( \\| \\mathbf { x } - \\mathbf { x } ^ { \\prime } \\| _ { 2 } ) d V ( \\mathbf { x } ^ { \\prime } ) ,\n$$",
|
| 244 |
+
"text_format": "latex",
|
| 245 |
+
"bbox": [
|
| 246 |
+
369,
|
| 247 |
+
165,
|
| 248 |
+
629,
|
| 249 |
+
196
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "where $\\delta ( x )$ denotes the Dirac delta function. This equation can be discretized as ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
174,
|
| 258 |
+
202,
|
| 259 |
+
699,
|
| 260 |
+
217
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 2
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "equation",
|
| 266 |
+
"img_path": "images/1537cc6f7a4d34de813a523739d397a62be3b7f64b6733aa6130a7707b14c417.jpg",
|
| 267 |
+
"text": "$$\nA ( { \\bf x } ) \\approx \\sum _ { i } V _ { i } A _ { i } W ( \\| { \\bf x } - { \\bf x } ^ { \\prime } \\| _ { 2 } , h ) ,\n$$",
|
| 268 |
+
"text_format": "latex",
|
| 269 |
+
"bbox": [
|
| 270 |
+
379,
|
| 271 |
+
222,
|
| 272 |
+
617,
|
| 273 |
+
256
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "where $V _ { i }$ is the volume at the given point in space and ",
|
| 280 |
+
"bbox": [
|
| 281 |
+
173,
|
| 282 |
+
258,
|
| 283 |
+
529,
|
| 284 |
+
273
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 2
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "equation",
|
| 290 |
+
"img_path": "images/8e1546dc9f63d548652b1b24645bd2db363f7d895c24c6571d87694e7b047480.jpg",
|
| 291 |
+
"text": "$$\n\\operatorname* { l i m } _ { h \\to 0 } W ( | \\mathbf x - \\mathbf x ^ { \\prime } | , h ) = \\delta ( | \\mathbf x - \\mathbf x ^ { \\prime } | ) .\n$$",
|
| 292 |
+
"text_format": "latex",
|
| 293 |
+
"bbox": [
|
| 294 |
+
382,
|
| 295 |
+
279,
|
| 296 |
+
617,
|
| 297 |
+
303
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "Here $W ( x , h )$ is a smooth kernel or convolution with radius $h$ , usually in the form of a Gaussian distribution, but more complex functions can also be used. In practice, the kernel is finite and yields localized neighborhoods of particles that interact via interactions weighted by the kernel of its derivatives. In this way, the continuous description for fluids from Equation 1 can be discretized in a Lagrangian fashion and solved numerically. Typically, internal forces are calculated based on the local pressure, viscosity, and surface tension, which give an update for the position of each particle. Below, we adopt the position-based fluids (PBF) method (Macklin & Muller, 2013; Macklin et al., ¨ 2014), which likewise is based on SPH, but reformulates the updates as constraints on the positions. ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
173,
|
| 306 |
+
306,
|
| 307 |
+
825,
|
| 308 |
+
420
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 2
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "4 CONTINUOUS CONVOLUTIONS ",
|
| 315 |
+
"text_level": 1,
|
| 316 |
+
"bbox": [
|
| 317 |
+
176,
|
| 318 |
+
439,
|
| 319 |
+
460,
|
| 320 |
+
455
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 2
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "The discrete convolution operator as commonly used in ConvNets is defined as ",
|
| 327 |
+
"bbox": [
|
| 328 |
+
173,
|
| 329 |
+
469,
|
| 330 |
+
691,
|
| 331 |
+
484
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 2
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "equation",
|
| 337 |
+
"img_path": "images/d4b7a40278e200fdf0ab4f0273d5f875ccfc0f63b7b4ede42784ad7fe40da696.jpg",
|
| 338 |
+
"text": "$$\n( f * g ) ( \\mathbf { x } ) = \\sum _ { \\tau \\in \\Omega } f ( \\mathbf { x } + \\pmb { \\tau } ) g ( \\pmb { \\tau } ) ,\n$$",
|
| 339 |
+
"text_format": "latex",
|
| 340 |
+
"bbox": [
|
| 341 |
+
387,
|
| 342 |
+
489,
|
| 343 |
+
609,
|
| 344 |
+
523
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 2
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"text": "where $f$ and $g$ are the input and the filter function, $\\mathbf { x }$ is the position, $\\tau$ is the shift vector, and $\\Omega$ is the set of shift vectors that defines the support of the filter function. On regular data such as images, the positions $\\mathbf { x }$ range over a regular grid and the shift vectors $\\tau$ are integer-valued, i.e. $\\mathbf { x } , \\tau \\in \\overline { { \\mathbb { Z } } } ^ { \\dot { d } }$ for some dimensionality $d$ . Analogously in the continuous domain, this convolution is defined as ",
|
| 351 |
+
"bbox": [
|
| 352 |
+
173,
|
| 353 |
+
527,
|
| 354 |
+
825,
|
| 355 |
+
584
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 2
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "equation",
|
| 361 |
+
"img_path": "images/28c85f075557687d7b53613b197377dc8b149b3ad89f025949247145e5abfe69.jpg",
|
| 362 |
+
"text": "$$\n( f * g ) ( \\mathbf { x } ) = \\int _ { \\mathbb { R } ^ { d } } f ( \\mathbf { x } + \\pmb { \\tau } ) g ( \\pmb { \\tau } ) d \\pmb { \\tau } ,\n$$",
|
| 363 |
+
"text_format": "latex",
|
| 364 |
+
"bbox": [
|
| 365 |
+
379,
|
| 366 |
+
588,
|
| 367 |
+
619,
|
| 368 |
+
622
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 2
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "text",
|
| 374 |
+
"text": "where $\\mathbf { x }$ and $\\tau$ are real-valued vectors, i.e. $\\mathbf { x } , \\tau \\in \\mathbb { R } ^ { d }$ . ",
|
| 375 |
+
"bbox": [
|
| 376 |
+
173,
|
| 377 |
+
627,
|
| 378 |
+
527,
|
| 379 |
+
642
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 2
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "We now adapt this definition to unstructured point clouds. In this setting we have a finite number of points that sample the function $f$ but do not lie on a grid. For a point cloud with $i = 1 , . . , N$ points with values $f _ { i }$ at positions $\\mathbf { x } _ { i }$ , we define the convolution at position $\\mathbf { x }$ as ",
|
| 386 |
+
"bbox": [
|
| 387 |
+
173,
|
| 388 |
+
648,
|
| 389 |
+
826,
|
| 390 |
+
691
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 2
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "equation",
|
| 396 |
+
"img_path": "images/e94be402437224ee1c6d5a016fc3b11b25d90a6c3ebb8edcc88682a265d036d8.jpg",
|
| 397 |
+
"text": "$$\n( f * g ) ( \\mathbf { x } ) = \\frac { 1 } { \\psi ( \\mathbf { x } ) } \\sum _ { i \\in N ( \\mathbf { x } , R ) } a ( \\mathbf { x } _ { i } , \\mathbf { x } ) \\ f _ { i } \\ g ( \\Lambda ( \\mathbf { x } _ { i } - \\mathbf { x } ) ) .\n$$",
|
| 398 |
+
"text_format": "latex",
|
| 399 |
+
"bbox": [
|
| 400 |
+
315,
|
| 401 |
+
695,
|
| 402 |
+
681,
|
| 403 |
+
736
|
| 404 |
+
],
|
| 405 |
+
"page_idx": 2
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"type": "text",
|
| 409 |
+
"text": "$\\mathcal { N } ( { \\bf x } , R )$ is the set of points within a radius $R$ around $\\ \\textbf { x } , \\ a$ is a scalar function that can be used for density normalization specific to the points $\\mathbf { x } _ { i }$ and $\\mathbf { x }$ as in Hermosilla et al. (2018). In the simplest case, $a$ can be constant: $a = 1$ . In our case we want to ensure a smooth response of our convolution under varying particle neighborhoods, therefore we define $a$ as a window function: ",
|
| 410 |
+
"bbox": [
|
| 411 |
+
173,
|
| 412 |
+
741,
|
| 413 |
+
826,
|
| 414 |
+
797
|
| 415 |
+
],
|
| 416 |
+
"page_idx": 2
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"type": "equation",
|
| 420 |
+
"img_path": "images/c70e6362e5ffd3aa0e8ff1fd1f3216a39448f51c8ed9383b57d4896636ca9aed.jpg",
|
| 421 |
+
"text": "$$\na ( \\mathbf x _ { i } , \\mathbf x ) = \\left\\{ \\begin{array} { l l } { \\left( 1 - \\frac { \\| \\mathbf x _ { i } - \\mathbf x \\| _ { 2 } ^ { 2 } } { R ^ { 2 } } \\right) ^ { 3 } } & { \\mathrm { f o r } \\| \\mathbf x _ { i } - \\mathbf x \\| _ { 2 } < R } \\\\ { 0 } & { \\mathrm { e l s e } . } \\end{array} \\right.\n$$",
|
| 422 |
+
"text_format": "latex",
|
| 423 |
+
"bbox": [
|
| 424 |
+
325,
|
| 425 |
+
801,
|
| 426 |
+
671,
|
| 427 |
+
847
|
| 428 |
+
],
|
| 429 |
+
"page_idx": 2
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"type": "text",
|
| 433 |
+
"text": "A similar function has been used by Muller et al. (2003) in the SPH framework. ¨ $\\psi$ is another scalar function for normalization, which can be set in our implementation as either ",
|
| 434 |
+
"bbox": [
|
| 435 |
+
173,
|
| 436 |
+
852,
|
| 437 |
+
821,
|
| 438 |
+
881
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 2
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "equation",
|
| 444 |
+
"img_path": "images/693dc2c67962a6cbc0c480d2a9497b9d3415ea09a25f6e897095817b1ef2e792.jpg",
|
| 445 |
+
"text": "$$\n\\psi ( \\mathbf { x } ) = 1 \\quad \\mathrm { o r } \\quad \\psi ( \\mathbf { x } ) = \\sum _ { i \\in \\mathcal { N } ( \\mathbf { x } , R ) } a ( \\mathbf { x } _ { i } , \\mathbf { x } ) .\n$$",
|
| 446 |
+
"text_format": "latex",
|
| 447 |
+
"bbox": [
|
| 448 |
+
356,
|
| 449 |
+
885,
|
| 450 |
+
643,
|
| 451 |
+
921
|
| 452 |
+
],
|
| 453 |
+
"page_idx": 2
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"type": "image",
|
| 457 |
+
"img_path": "images/41d3bbef3523f4805a96413e83be032ac332d44c48e7e858354dea8d7359abbc.jpg",
|
| 458 |
+
"image_caption": [
|
| 459 |
+
"Figure 1: We use spherical filter shapes for our continuous convolutions but use regular grids to store the filter values. The left part of the figure shows a spherical region with radius $R$ and a point with relative coordinates r with respect to the center. We transform r via a mapping $\\Lambda$ to normalized coordinates in a regular grid. The thin dotted lines illustrate the distortion of the mapping. To look up the final filter value we use trilinear interpolation in the regular grid. "
|
| 460 |
+
],
|
| 461 |
+
"image_footnote": [],
|
| 462 |
+
"bbox": [
|
| 463 |
+
333,
|
| 464 |
+
98,
|
| 465 |
+
663,
|
| 466 |
+
194
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 3
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "We use $\\psi ( \\mathbf { x } ) = 1$ , since changes in the density of particles are an important feature for simulating fluids. ",
|
| 473 |
+
"bbox": [
|
| 474 |
+
173,
|
| 475 |
+
290,
|
| 476 |
+
823,
|
| 477 |
+
319
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 3
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "text",
|
| 483 |
+
"text": "For the filter function $g$ we simply use a regular grid to store the filter values but use linear interpolation to make $g$ a continuous function. In addition, we use a mapping $\\Lambda ( \\mathbf { r } )$ of a unit ball to a unit cube to implement spherical filters as shown in Figure 1. We use the mapping described by Griepentrog et al. (2008) and give the detailed function in the appendix. The intermediate coordinate mapping $\\Lambda$ provides the flexibility to implement different spatial shapes while keeping the advantages of a regular grid for the storage and lookup of filter values. ",
|
| 484 |
+
"bbox": [
|
| 485 |
+
173,
|
| 486 |
+
325,
|
| 487 |
+
825,
|
| 488 |
+
410
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 3
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "Note that Equation 7 uses a similar approximation as in the SPH framework (Equation 3). Assuming that each point represents the same volume, $V _ { i }$ is a constant factor in Equation 3, which we drop in our definition. ",
|
| 495 |
+
"bbox": [
|
| 496 |
+
174,
|
| 497 |
+
416,
|
| 498 |
+
825,
|
| 499 |
+
458
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 3
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "text",
|
| 505 |
+
"text": "5 LEARNING FLUID MECHANICS WITH CONVOLUTIONAL NETWORKS ",
|
| 506 |
+
"text_level": 1,
|
| 507 |
+
"bbox": [
|
| 508 |
+
173,
|
| 509 |
+
477,
|
| 510 |
+
767,
|
| 511 |
+
494
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 3
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "text",
|
| 517 |
+
"text": "Our goal is to learn fluid mechanics from observing the motion of particles. The input to our ConvNet is a set of particles with corresponding features. Since position itself is not a feature but simply defines the particle’s position in space, we must assign a feature vector to each particle. The feature vector we use is a constant scalar 1 accompanied by the velocity $\\mathbf { v }$ and the viscosity $\\nu$ . A particle $p _ { i } ^ { n }$ at timestep $n$ with its position and input feature vector is thus a tuple $\\left( \\mathbf { x } _ { i } ^ { n } , \\left[ 1 , \\mathbf { v } _ { i } ^ { n } , \\nu _ { i } \\right] \\right)$ . Defining the velocity explicitly as an input feature allows us to compute intermediate velocities and positions as in Ladicky et al. (2015) and to apply external forces and pass this information to the ´ network. We compute the intermediate positions $\\mathbf { x } _ { i } ^ { n * }$ and velocities $\\mathbf { v } _ { i } ^ { n * }$ beginning with timestep $n$ with Heun’s method as ",
|
| 518 |
+
"bbox": [
|
| 519 |
+
173,
|
| 520 |
+
507,
|
| 521 |
+
825,
|
| 522 |
+
633
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 3
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "equation",
|
| 528 |
+
"img_path": "images/e93a69e232444685aa2cfb34b7e030f80dd5e82f78dd5ac3d4928f5560a8805d.jpg",
|
| 529 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathbf { v } _ { i } ^ { n * } = \\mathbf { v } _ { i } ^ { n } + \\Delta t \\mathbf { a } _ { \\mathrm { e x t } } } \\\\ & { \\mathbf { x } _ { i } ^ { n * } = \\mathbf { x } _ { i } ^ { n } + \\Delta t \\frac { \\mathbf { v } _ { i } ^ { n } + \\mathbf { v } _ { i } ^ { n * } } { 2 } . } \\end{array}\n$$",
|
| 530 |
+
"text_format": "latex",
|
| 531 |
+
"bbox": [
|
| 532 |
+
405,
|
| 533 |
+
636,
|
| 534 |
+
591,
|
| 535 |
+
686
|
| 536 |
+
],
|
| 537 |
+
"page_idx": 3
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"type": "text",
|
| 541 |
+
"text": "The vector $\\mathbf { a } _ { \\mathrm { e x t } }$ is an acceleration through which we can apply external forces to control the fluid or to simply apply gravity. The intermediate positions and velocities lack any interactions between particles or the scene, which we are going to implement with a ConvNet. To enable the network to handle collisions with the environment we define a second set of static particles $s _ { j }$ . We sample particles on the boundaries of the scene with normals $\\mathbf { n } _ { j }$ as the feature vectors, i.e. $s _ { j } ^ { \\mathsf { ^ { \\prime } } } = ( \\mathbf { x } _ { j } , [ \\mathbf { n } _ { j } ] )$ . Our network implements the function ",
|
| 542 |
+
"bbox": [
|
| 543 |
+
173,
|
| 544 |
+
686,
|
| 545 |
+
825,
|
| 546 |
+
770
|
| 547 |
+
],
|
| 548 |
+
"page_idx": 3
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "equation",
|
| 552 |
+
"img_path": "images/726e30ca76055a9de6baf40fa0e695479f369277761c9f8d8ea904cdf9715c02.jpg",
|
| 553 |
+
"text": "$$\n[ \\Delta { \\bf x } _ { 1 } , \\ldots , \\Delta { \\bf x } _ { N } ] = \\mathrm { C o n v N e t } ( \\{ p _ { 1 } ^ { n * } , \\ldots , p _ { N } ^ { n * } \\} , \\{ s _ { 1 } , \\ldots , s _ { M } \\} ) ,\n$$",
|
| 554 |
+
"text_format": "latex",
|
| 555 |
+
"bbox": [
|
| 556 |
+
290,
|
| 557 |
+
773,
|
| 558 |
+
705,
|
| 559 |
+
791
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 3
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "text",
|
| 565 |
+
"text": "which uses convolutions to combine features from both particle sets. $\\Delta \\mathbf { x }$ is a correction of the position which accounts for all particle interactions including the collision handling with the scene. Finally, we apply the correction to update positions and velocities for $n + 1$ as ",
|
| 566 |
+
"bbox": [
|
| 567 |
+
174,
|
| 568 |
+
792,
|
| 569 |
+
825,
|
| 570 |
+
835
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 3
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "equation",
|
| 576 |
+
"img_path": "images/d5444451d496a763391bfc800b403deaa06633af231c69c4afa03b638c6934f2.jpg",
|
| 577 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathbf { x } _ { i } ^ { n + 1 } = \\mathbf { x } _ { i } ^ { n * } + \\Delta \\mathbf { x } _ { i } } \\\\ & { \\mathbf { v } _ { i } ^ { n + 1 } = \\frac { \\mathbf { x } _ { i } ^ { n + 1 } - \\mathbf { x } _ { i } ^ { n } } { \\Delta t } . } \\end{array}\n$$",
|
| 578 |
+
"text_format": "latex",
|
| 579 |
+
"bbox": [
|
| 580 |
+
426,
|
| 581 |
+
835,
|
| 582 |
+
571,
|
| 583 |
+
890
|
| 584 |
+
],
|
| 585 |
+
"page_idx": 3
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"type": "text",
|
| 589 |
+
"text": "Note that the updated position $\\mathbf { x } _ { i } ^ { n + 1 }$ depends on the output vector $\\Delta { { \\bf { x } } _ { i } }$ and allows us to directly define our learning objective on the particle positions. ",
|
| 590 |
+
"bbox": [
|
| 591 |
+
171,
|
| 592 |
+
892,
|
| 593 |
+
823,
|
| 594 |
+
921
|
| 595 |
+
],
|
| 596 |
+
"page_idx": 3
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"type": "image",
|
| 600 |
+
"img_path": "images/2b448c62ece1345a05c8277b267b6df08bffec896e1811b20a9b37b056073ce5.jpg",
|
| 601 |
+
"image_caption": [
|
| 602 |
+
"Figure 2: Schematic of our network with a depth of four. In the first depth level we compute convolutions at each dynamic particle location with the set of static particles that defines the environment as well as the dynamic particle set. We also directly process the features of each particle via a fully-connected stream. In the following levels, we compute convolutions only on the dynamic particles. At each level we use addition to aggregate the features computed by convolutions and fully-connected layers. Between the second and third level we also include a residual connection. The final level generates the position correction $\\Delta \\mathbf { x }$ . Operations annotated with a \\* are followed by the ReLU activation function. All CConv and FC operations use an additive bias. "
|
| 603 |
+
],
|
| 604 |
+
"image_footnote": [],
|
| 605 |
+
"bbox": [
|
| 606 |
+
205,
|
| 607 |
+
98,
|
| 608 |
+
794,
|
| 609 |
+
272
|
| 610 |
+
],
|
| 611 |
+
"page_idx": 4
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"type": "text",
|
| 615 |
+
"text": "5.1 NETWORK ARCHITECTURE ",
|
| 616 |
+
"text_level": 1,
|
| 617 |
+
"bbox": [
|
| 618 |
+
176,
|
| 619 |
+
422,
|
| 620 |
+
403,
|
| 621 |
+
436
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 4
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "text",
|
| 627 |
+
"text": "We use a simple convolutional architecture with an effective depth of four. An overview of the network is shown in Figure 2. Since we want to compute the correction for all dynamic particles in our scene, we compute convolutions for the intermediate positions defined in Equation 11. Our network is a sequence of continuous convolutions (CConv), which are defined by an input particle set, the positions at which we want to evaluate the convolution, its filters $G$ , and the radius $R$ . For instance, to describe a convolution on the static particles $s _ { i }$ at intermediate positions $\\mathbf { x } _ { i } ^ { n * }$ we can write ",
|
| 628 |
+
"bbox": [
|
| 629 |
+
173,
|
| 630 |
+
446,
|
| 631 |
+
825,
|
| 632 |
+
544
|
| 633 |
+
],
|
| 634 |
+
"page_idx": 4
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"type": "equation",
|
| 638 |
+
"img_path": "images/12a111dde44769f39f0a09472e5c844f61fbf1219de767cd6cbe7679d530e3df.jpg",
|
| 639 |
+
"text": "$$\n[ { \\bf f } _ { 1 } , \\ldots , { \\bf f } _ { N } ] = \\mathrm { C C o n v } ( \\{ s _ { 1 } , \\ldots , s _ { M } \\} , [ { \\bf x } _ { 1 } ^ { n * } , \\ldots , { \\bf x } _ { N } ^ { n * } ] , G , R ) ,\n$$",
|
| 640 |
+
"text_format": "latex",
|
| 641 |
+
"bbox": [
|
| 642 |
+
297,
|
| 643 |
+
544,
|
| 644 |
+
697,
|
| 645 |
+
560
|
| 646 |
+
],
|
| 647 |
+
"page_idx": 4
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "text",
|
| 651 |
+
"text": "where $\\mathbf { f } _ { i }$ are the computed output features for each position $\\mathbf { x } _ { i } ^ { n * }$ . $G$ is a 5D array storing all filters in the layout [width, height, depth, $\\mathrm { c h } _ { \\mathrm { i n } } , \\mathrm { c h } _ { \\mathrm { o u t } } ]$ . In contrast to discrete convolutions on a regular grid, the spatial filter dimensions here do not define the receptive field but the resolution of the filters. The receptive field depends only on the radius $R$ , which specifies the spatial extent. Throughout our network we use filters with a spatial resolution of [4, 4, 4] and a radius of 4.5 times the particle radius. ",
|
| 652 |
+
"bbox": [
|
| 653 |
+
173,
|
| 654 |
+
563,
|
| 655 |
+
825,
|
| 656 |
+
646
|
| 657 |
+
],
|
| 658 |
+
"page_idx": 4
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"type": "text",
|
| 662 |
+
"text": "For convolutions within the dynamic particles we exclude the particle at which we evaluate the convolution and instead process the particle’s own features in a stream of fully-connected layers. After each depth level we then combine the result from the convolutions and the fully-connected layers by addition. This can be interpreted as a convolution with a spatial resolution of $4 \\times 4 \\times 4 + 1$ . We found that this design improves accuracy and allows us to use smaller filters with even sizes (see Table 2). ",
|
| 663 |
+
"bbox": [
|
| 664 |
+
173,
|
| 665 |
+
652,
|
| 666 |
+
825,
|
| 667 |
+
738
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 4
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"text": "5.2 TRAINING PROCEDURE ",
|
| 674 |
+
"text_level": 1,
|
| 675 |
+
"bbox": [
|
| 676 |
+
176,
|
| 677 |
+
753,
|
| 678 |
+
377,
|
| 679 |
+
768
|
| 680 |
+
],
|
| 681 |
+
"page_idx": 4
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "text",
|
| 685 |
+
"text": "We train our fluid simulation network in supervised fashion based on particle trajectories produced by classic (“ground-truth”) physics simulation. Our loss is defined as follows: ",
|
| 686 |
+
"bbox": [
|
| 687 |
+
171,
|
| 688 |
+
780,
|
| 689 |
+
823,
|
| 690 |
+
808
|
| 691 |
+
],
|
| 692 |
+
"page_idx": 4
|
| 693 |
+
},
|
| 694 |
+
{
|
| 695 |
+
"type": "equation",
|
| 696 |
+
"img_path": "images/221334f321389bee3374221caa1769ccc93a0d41afba961ee350911dbde05be7.jpg",
|
| 697 |
+
"text": "$$\n\\mathcal { L } ^ { n + 1 } = \\sum _ { i = 1 } ^ { N } \\phi _ { i } \\left. \\mathbf { x } _ { i } ^ { n + 1 } - \\hat { \\mathbf { x } } _ { i } ^ { n + 1 } \\right. _ { 2 } ^ { \\gamma } .\n$$",
|
| 698 |
+
"text_format": "latex",
|
| 699 |
+
"bbox": [
|
| 700 |
+
383,
|
| 701 |
+
814,
|
| 702 |
+
614,
|
| 703 |
+
857
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 4
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "text",
|
| 709 |
+
"text": "The ground-truth position at timestep $n + 1$ is denoted by $\\hat { \\mathbf { x } } _ { i } ^ { n + 1 }$ and the predicted position from the network is denoted by $\\mathbf { x } _ { i } ^ { n + 1 } = \\mathbf { x } _ { i } ^ { n * } + \\Delta \\mathbf { x } _ { i }$ , where $\\Delta { { \\bf { x } } _ { i } }$ is provided by the network. $\\phi _ { i }$ is an individual weight for each point. We use $\\begin{array} { r } { \\phi _ { i } = \\exp ( - \\frac { 1 } { c } | \\mathcal { N } ( \\mathbf { x } _ { i } ^ { n * } ) | ) } \\end{array}$ , which emphasizes the loss for particles with fewer neighbors. We choose $c = 4 0$ , which corresponds to the average number of neighbors across our experiments. Particles with few neighbors are close to the surface or interact with the scene boundary. Both cases are important for fluid simulation because particles near the surface define the liquid-air interface, which is particularly salient, and particles near the scene boundary require collision handling. The parameter $\\gamma = 0 . 5$ makes our loss function more sensitive to small particle motions, which is important for increasing the accuracy and visual fidelity for small fluid flows. During training we predict particle positions for two future timesteps, namely $n + 1$ and $n + 2$ . The combined loss $\\mathcal { L }$ is ",
|
| 710 |
+
"bbox": [
|
| 711 |
+
174,
|
| 712 |
+
863,
|
| 713 |
+
825,
|
| 714 |
+
924
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 4
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "image",
|
| 720 |
+
"img_path": "images/e4a49216268a94b12eb5035a2162f35f2734226af166947401897668e3d0ec91.jpg",
|
| 721 |
+
"image_caption": [
|
| 722 |
+
"Figure 3: Comparison to ground-truth physics simulation. Two fluid bodies collide. Top: simulation by our trained network. Bottom: simulation of the same scenario by DFSPH (Bender & Koschier, 2015), a high-fidelity solver that was executed with small timesteps (down to 0.001s). Despite using a much larger timestep (0.02s), our convolutional network produces results of comparable visual fidelity. Note that our particles are falling slightly more slowly due to differences in the integration of positions and the much larger timestep. See the supplementary video. "
|
| 723 |
+
],
|
| 724 |
+
"image_footnote": [],
|
| 725 |
+
"bbox": [
|
| 726 |
+
179,
|
| 727 |
+
99,
|
| 728 |
+
816,
|
| 729 |
+
246
|
| 730 |
+
],
|
| 731 |
+
"page_idx": 5
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"type": "text",
|
| 735 |
+
"text": "",
|
| 736 |
+
"bbox": [
|
| 737 |
+
174,
|
| 738 |
+
369,
|
| 739 |
+
825,
|
| 740 |
+
467
|
| 741 |
+
],
|
| 742 |
+
"page_idx": 5
|
| 743 |
+
},
|
| 744 |
+
{
|
| 745 |
+
"type": "equation",
|
| 746 |
+
"img_path": "images/0e35a81a32d630f1310e81a6cce1d82825399c041ec33f32035f309ff40c85f5.jpg",
|
| 747 |
+
"text": "$$\n{ \\mathcal { L } } = { \\mathcal { L } } ^ { n + 1 } + { \\mathcal { L } } ^ { n + 2 } .\n$$",
|
| 748 |
+
"text_format": "latex",
|
| 749 |
+
"bbox": [
|
| 750 |
+
431,
|
| 751 |
+
465,
|
| 752 |
+
566,
|
| 753 |
+
483
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 5
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "We found that optimizing a loss defined over two frames improves the overall quality of the simulation. (Optimization for three frames did not result in further improvements.) We optimize $\\mathcal { L }$ over 50,000 iterations with Adam (Kingma & Ba, 2015) and a learning rate decay with multiple steps, starting with a learning rate of 0.001 and stopping with $1 . 5 6 \\cdot 1 0 ^ { - 5 }$ . ",
|
| 760 |
+
"bbox": [
|
| 761 |
+
174,
|
| 762 |
+
487,
|
| 763 |
+
823,
|
| 764 |
+
542
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 5
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"text": "5.3 DATASETS ",
|
| 771 |
+
"text_level": 1,
|
| 772 |
+
"bbox": [
|
| 773 |
+
174,
|
| 774 |
+
559,
|
| 775 |
+
287,
|
| 776 |
+
574
|
| 777 |
+
],
|
| 778 |
+
"page_idx": 5
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"type": "text",
|
| 782 |
+
"text": "We have trained our network on multiple datasets. For quantitative comparisons with prior work we trained our network on the dam break data from Li et al. (2019). The scene simulates the behavior of a randomly placed fluid block in a static box. We generate 2000 scenes for training and 300 for testing. The data was generated with FleX, which is a position-based simulator that targets real-time applications (Macklin et al., 2014). ",
|
| 783 |
+
"bbox": [
|
| 784 |
+
174,
|
| 785 |
+
585,
|
| 786 |
+
825,
|
| 787 |
+
656
|
| 788 |
+
],
|
| 789 |
+
"page_idx": 5
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"type": "text",
|
| 793 |
+
"text": "We also trained our network on more challenging data generated with DFSPH (Bender & Koschier, 2015), which prioritizes simulation fidelity over runtime. DFSPH can generate accurate fluid flows with very low volume compression: a desired property. We generate ground-truth data by randomly placing multiple bodies of fluid in 10 different box-like scenes and simulating them for 16 seconds each with an adaptive timestep of up to $1 \\mathrm { k H z }$ . The time resolution of the generated data is $5 0 \\mathrm { { H z } }$ . We show a qualitative comparison of our method to the ground truth in Figure 3. We generate 200 scenes for training and 20 scenes for the test set. To train networks that can deal with multiple materials, we additionally generate 200 scenes with fluids of varying viscosity. For estimating material properties, we generate 7 test scenes that only differ in the viscosity parameter. ",
|
| 794 |
+
"bbox": [
|
| 795 |
+
174,
|
| 796 |
+
662,
|
| 797 |
+
825,
|
| 798 |
+
789
|
| 799 |
+
],
|
| 800 |
+
"page_idx": 5
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"type": "text",
|
| 804 |
+
"text": "6 EVALUATION ",
|
| 805 |
+
"text_level": 1,
|
| 806 |
+
"bbox": [
|
| 807 |
+
176,
|
| 808 |
+
809,
|
| 809 |
+
313,
|
| 810 |
+
824
|
| 811 |
+
],
|
| 812 |
+
"page_idx": 5
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"type": "text",
|
| 816 |
+
"text": "Baselines. We compare our method to DPI-Nets (Li et al., 2019), which were previously shown to significantly outperform prior formulations such as hierarchical relation networks (Mrowca et al., 2018). Figure 4 provides a qualitative comparison. Quantitative results are reported in Table 1. To analyze the accuracy of the forward step for each method, we compute the average error of the particle positions with respect to the ground truth. We use every $5 ^ { \\mathrm { t h } }$ frame for initialization and compute the deviation from the ground truth for two subsequent frames, denoted by $n + 1$ and $n + 2$ . ",
|
| 817 |
+
"bbox": [
|
| 818 |
+
174,
|
| 819 |
+
839,
|
| 820 |
+
825,
|
| 821 |
+
924
|
| 822 |
+
],
|
| 823 |
+
"page_idx": 5
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"type": "image",
|
| 827 |
+
"img_path": "images/15026580939376a905379a68fddd2924ccbf3b0b80a48da70f72cb01cd59ec0d.jpg",
|
| 828 |
+
"image_caption": [
|
| 829 |
+
"Figure 4: Qualitative comparison with DPI-Nets on a test sequence from our dataset. Two fluid bodies collide inside a container. DPI-Nets works well on data with little variance but has problems with more complex scenes and high particle velocities. The DPI-Nets simulation becomes unstable immediately after the fluid hits the box. The fluid behavior predicted by our network matches the ground truth more closely and remains stable for the whole sequence. The two networks have been trained on the same data. Test sequences are distinct from training sequences. See the supplementary video. "
|
| 830 |
+
],
|
| 831 |
+
"image_footnote": [],
|
| 832 |
+
"bbox": [
|
| 833 |
+
176,
|
| 834 |
+
101,
|
| 835 |
+
820,
|
| 836 |
+
285
|
| 837 |
+
],
|
| 838 |
+
"page_idx": 6
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"type": "text",
|
| 842 |
+
"text": "In addition, we report the average distance from the ground-truth particles to the closest particle in the prediction for the whole sequence, to measure long-term similarity. We compute the distance for frame $n$ as ",
|
| 843 |
+
"bbox": [
|
| 844 |
+
173,
|
| 845 |
+
422,
|
| 846 |
+
825,
|
| 847 |
+
464
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 6
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "equation",
|
| 853 |
+
"img_path": "images/30e570848d6cdd9fbec7b1227af2c79db7659c49d66f357c34d1577f949a5ace.jpg",
|
| 854 |
+
"text": "$$\nd ^ { n } = \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } \\operatorname* { m i n } _ { \\mathbf { x } ^ { n } \\in X ^ { n } } \\| \\hat { \\mathbf { x } } _ { i } ^ { n } - \\mathbf { x } ^ { n } \\| _ { 2 } ,\n$$",
|
| 855 |
+
"text_format": "latex",
|
| 856 |
+
"bbox": [
|
| 857 |
+
385,
|
| 858 |
+
463,
|
| 859 |
+
611,
|
| 860 |
+
507
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 6
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "where $X ^ { n }$ is the set of predicted particle positions for frame $n$ , $\\hat { \\mathbf { x } } _ { i } ^ { n }$ is the ground-truth position for particle $i$ , and $N$ is the number of particles. ",
|
| 867 |
+
"bbox": [
|
| 868 |
+
173,
|
| 869 |
+
512,
|
| 870 |
+
823,
|
| 871 |
+
541
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 6
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "We also compare our continuous convolution formulation to continuous convolution representations used in SPNets (Schenck & Fox, 2018), PCNN (Wang et al., 2018), KPConv (Thomas et al., 2019), and SplineCNN (Fey et al., 2018). To this end, we plug the respective convolution operators into our network architecture as shown in Figure 2. This facilitates controlled comparisons in which the overall architecture and simulation setup are fixed and only the convolution operators are varied. As shown in Table 1, our method outperforms all baselines with respect to both accuracy and inference time. ",
|
| 878 |
+
"bbox": [
|
| 879 |
+
174,
|
| 880 |
+
547,
|
| 881 |
+
825,
|
| 882 |
+
645
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 6
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "We have trained and tested all methods on the dam break dataset from Li et al. (2019) as well as our data (generated with a high-fidelity simulator (Bender & Koschier, 2015)). To facilitate the training on our data for all methods, we generated a simplified version with a constant number of particles (6,000) and a single box environment (as shown in Figure 4). We train DPI-Nets for 5 epochs and all other networks for 50,000 iterations, which corresponds to 2.7 epochs for the dam break data and 5 epochs for our data. Training takes about a day for our method with our convolutions on an NVIDIA RTX 2080Ti. Training with PCNN convolutions (Wang et al., 2018) takes about 2 days on 4 GPUs. Note that our reimplementation of PCNN convolutions uses Tensorflow’s built-in functions, which consume a lot of memory and necessitate multi-GPU training. The DPI-Nets model trains in about one day. Training with SplineCNN Convs takes 3 to 4 days on a single GPU. We got the best results for this method with spherical kernel coordinates and closed splines. For KPConvs we used a Quadro RTX 6000 with $2 4 \\mathrm { \\ G B }$ of RAM due to the higher memory requirements. Training took about 1 day with 15 kernel points. For SPNets convolutions, we estimated a training time of more than 29 days with $3 \\times 3 \\times 3$ filters by extrapolating from timing of a smaller number of iterations. We thus only report inference time for this method. Note that the convolutions of SPNets were designed to implement the position-based fluids algorithm, while we use them here in a more general network architecture with a much larger number of channels, which explains the very long runtime. ",
|
| 889 |
+
"bbox": [
|
| 890 |
+
174,
|
| 891 |
+
652,
|
| 892 |
+
825,
|
| 893 |
+
888
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 6
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "Ablation study. We perform an ablation study to evaluate our decisions in the design of the continuous convolution operator and the network. We study the importance of the interpolation, the window function, the loss design, and the architecture choice. The results are reported in Table 2. This table reports error measures (averaged over the test sequences) that were used in Table 1, and also reports the errors for two predicted frames initialized with the frames at the end of each sequence to measure the errors for small flow velocities. Large errors for small velocities can yield perceptually salient artifacts: rather than being still, fluid particles jitter or churn. ",
|
| 900 |
+
"bbox": [
|
| 901 |
+
173,
|
| 902 |
+
895,
|
| 903 |
+
821,
|
| 904 |
+
924
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 6
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "table",
|
| 910 |
+
"img_path": "images/d736599d1c6d394069116182862ea6ac516a501c26417739e9701082b755729e.jpg",
|
| 911 |
+
"table_caption": [
|
| 912 |
+
"Table 1: Accuracy and runtime analysis. We compare the average error between the ground-truth particle positions and two predicted future frames on the test set. Additionally, we report the average distance from the ground truth to the prediction over the whole sequence. In this test mode some methods become unstable after a few frames. In the last column we report the average inference time per frame. "
|
| 913 |
+
],
|
| 914 |
+
"table_footnote": [],
|
| 915 |
+
"table_body": "<table><tr><td rowspan=\"2\" colspan=\"2\">Method</td><td colspan=\"2\">Average pos error (mm)</td><td rowspan=\"2\">Average distance to closest point d" (mm)</td><td rowspan=\"2\">Frame inference time (ms)</td></tr><tr><td>n+1</td><td>n+2</td></tr><tr><td></td><td>DPI-Nets</td><td>12.73</td><td>25.38</td><td>22.07</td><td>202.56</td></tr><tr><td></td><td>SPNets Convs</td><td>一</td><td>一</td><td></td><td>1058.46</td></tr><tr><td></td><td>PCNN Convs</td><td>0.72</td><td>1.67</td><td>19.79</td><td>187.34</td></tr><tr><td>RParaasr</td><td>SplineCNN Convs</td><td>0.71</td><td>1.65</td><td>170.20</td><td>67.67</td></tr><tr><td></td><td>KPConv</td><td>2.49</td><td>7.05</td><td>unstable</td><td>47.96</td></tr><tr><td></td><td>Ours</td><td>0.62</td><td>1.49</td><td>16.98</td><td>12.01</td></tr><tr><td></td><td>DPI-Nets</td><td>26.19</td><td>51.77</td><td>unstable</td><td>305.55</td></tr><tr><td></td><td>SPNets Convs</td><td>1</td><td>1</td><td>1</td><td>784.35</td></tr><tr><td>raarae rl gaest</td><td>PCNN Convs</td><td>0.67</td><td>1.87</td><td>32.51</td><td>319.17</td></tr><tr><td></td><td>SplineCNN Convs</td><td>0.68</td><td>1.93</td><td>unstable</td><td>281.92</td></tr><tr><td></td><td>KPConv</td><td>1.65</td><td>4.54</td><td>unstable</td><td>57.89</td></tr><tr><td></td><td>Ours</td><td>0.56</td><td>1.51</td><td>29.50</td><td>16.47</td></tr></table>",
|
| 916 |
+
"bbox": [
|
| 917 |
+
184,
|
| 918 |
+
101,
|
| 919 |
+
812,
|
| 920 |
+
306
|
| 921 |
+
],
|
| 922 |
+
"page_idx": 7
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "text",
|
| 926 |
+
"text": "",
|
| 927 |
+
"bbox": [
|
| 928 |
+
174,
|
| 929 |
+
424,
|
| 930 |
+
825,
|
| 931 |
+
493
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 7
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "table",
|
| 937 |
+
"img_path": "images/97ad8d39cd0251ffc444682f1b1c30003db2bb91074d4c2a326beed81c0252d6.jpg",
|
| 938 |
+
"table_caption": [
|
| 939 |
+
"Table 2: Ablation study. We compare the average error between the ground-truth particle positions and two predicted future frames on the test set, evaluated over whole test sequences (left) and just on the final frames of each test sequence (middle; this focuses on frames with small motion). The rightmost column shows the average distance from the ground truth to the predicted point set over whole test sequences. Ours w/o interpolation uses nearest-neighbor instead of trilinear interpolation for the convolution filters. Ours w/o window uses $a ( \\mathbf { x } _ { i } , \\mathbf { x } ) = 1$ in Equation 7. Ours w/ na¨ıve loss uses Euclidean distance as the loss, i.e. we set $\\gamma = 1$ and $\\phi _ { i } = 1$ in Equation 16. Ours w/o FC uses only convolutions and includes the central particle in the convolution (rather than separately processing its features via an FC layer). "
|
| 940 |
+
],
|
| 941 |
+
"table_footnote": [],
|
| 942 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">Average error (mm)</td><td colspan=\"2\">Seq. end error (mm)</td><td rowspan=\"2\">Average distance to closest point d" (mm)</td></tr><tr><td>n+1</td><td>n+2</td><td>n+1</td><td>n+2</td></tr><tr><td>Ours</td><td>0.67</td><td>1.87</td><td>0.25</td><td>0.74</td><td>30.63</td></tr><tr><td>Ours w/o interpolation</td><td>0.79</td><td>2.24</td><td>0.30</td><td>0.89</td><td>32.39</td></tr><tr><td>Ours w/o window</td><td>0.77</td><td>2.21</td><td>0.30</td><td>0.89</td><td>31.77</td></tr><tr><td>Ours w/ naive loss</td><td>0.69</td><td>1.86</td><td>0.27</td><td>0.77</td><td>30.35</td></tr><tr><td>Ours w/o FC</td><td>0.75</td><td>2.17</td><td>0.27</td><td>0.80</td><td>32.49</td></tr></table>",
|
| 943 |
+
"bbox": [
|
| 944 |
+
217,
|
| 945 |
+
529,
|
| 946 |
+
781,
|
| 947 |
+
640
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 7
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "text",
|
| 953 |
+
"text": "Generalization. In Figure 5 we show that our network generalizes well to scenes with drastically different geometry than seen during training. (The training set uses only box-like containers. See the appendix for visualization.) These scenarios demonstrate that we can emit particles during simulation, which can be costly for methods that build and maintain explicit graph structures. We compare generalization performance quantitatively to DFPSH on a complex scene in Figure 6. Figure 7 demonstrates generalization along a different dimension. Here we show that we can set the viscosity of the fluid at test time to a value not seen during training. The fluid shape used in this example was also not seen during training. ",
|
| 954 |
+
"bbox": [
|
| 955 |
+
173,
|
| 956 |
+
811,
|
| 957 |
+
825,
|
| 958 |
+
924
|
| 959 |
+
],
|
| 960 |
+
"page_idx": 7
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"type": "image",
|
| 964 |
+
"img_path": "images/e67c7b9cd9fa6a6ff5084b5f367ebe88d096599b3b8339604611780fee048f5f.jpg",
|
| 965 |
+
"image_caption": [
|
| 966 |
+
"Figure 5: Generalization to environments with drastically different geometry than seen during training. Top: we use an emitter to fill up a virtual river with fluid particles, demonstrating generalization with respect to scene geometry and the number of particles. Bottom: a waterfall scene showing the fluid particles and the particle representation of the environment. See the supplementary video. "
|
| 967 |
+
],
|
| 968 |
+
"image_footnote": [],
|
| 969 |
+
"bbox": [
|
| 970 |
+
186,
|
| 971 |
+
102,
|
| 972 |
+
812,
|
| 973 |
+
296
|
| 974 |
+
],
|
| 975 |
+
"page_idx": 8
|
| 976 |
+
},
|
| 977 |
+
{
|
| 978 |
+
"type": "image",
|
| 979 |
+
"img_path": "images/abe4e641cedacda2fe157a71a4d9a67468250b42603b501a7399766755b97762.jpg",
|
| 980 |
+
"image_caption": [
|
| 981 |
+
"Figure 6: Average distance from the ground-truth particles to the predicted particles on a complex scene. Top: error over time for our trained network and DFSPH. We use a timestep of $\\Delta t = 5$ ms for DFSPH and $\\Delta t = 2 0 \\mathrm { m s }$ for our method, which also corresponds to the frame sampling rate. The ground truth was generated with DFSPH and a timestep of 1ms. Bottom: simulation produced by our network. Large errors are concentrated in the beginning of the sequence when the fluid initially collides with the environment and the fluid behavior is most chaotic. During this phase the error is higher for our method than DFSPH. After 200 frames the error levels become similar. "
|
| 982 |
+
],
|
| 983 |
+
"image_footnote": [],
|
| 984 |
+
"bbox": [
|
| 985 |
+
186,
|
| 986 |
+
397,
|
| 987 |
+
810,
|
| 988 |
+
621
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 8
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "image",
|
| 994 |
+
"img_path": "images/61470283b23c7be98c6eab7fcd81861f2b541e055b261fcecfd497d7763d31d3.jpg",
|
| 995 |
+
"image_caption": [
|
| 996 |
+
"Figure 7: We can control the viscosity of the simulated fluid at test time by changing the input parameter $\\nu$ in the input feature vector. "
|
| 997 |
+
],
|
| 998 |
+
"image_footnote": [],
|
| 999 |
+
"bbox": [
|
| 1000 |
+
179,
|
| 1001 |
+
750,
|
| 1002 |
+
820,
|
| 1003 |
+
875
|
| 1004 |
+
],
|
| 1005 |
+
"page_idx": 8
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"type": "text",
|
| 1009 |
+
"text": "Material estimation. In this experiment we apply our network to an inverse problem: material estimation from observation. We use our network to estimate the viscosity parameter of a fluid from the particle movement. The training data for this experiment contains 200 sequences with random viscosity parameters between 0.01 and 0.3. For testing we generate 5 new sequences with 100 frames and random viscosity within the same range as used during training and use an initial fluid shape not present in the training data. To test generalization we generate two sequences with viscosity values outside the training range, namely 0.35 and 0.4. To estimate the viscosity we backpropagate through the trained network and optimize $\\nu$ with gradient descent. Table 3 reports the results, which indicate that our network can be used to estimate material properties from observed data. ",
|
| 1010 |
+
"bbox": [
|
| 1011 |
+
173,
|
| 1012 |
+
103,
|
| 1013 |
+
825,
|
| 1014 |
+
242
|
| 1015 |
+
],
|
| 1016 |
+
"page_idx": 9
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "table",
|
| 1020 |
+
"img_path": "images/3ffd6888393460e0f3071ac858e5b10995c3ffcd2dd388702c4ae06e5a628074.jpg",
|
| 1021 |
+
"table_caption": [],
|
| 1022 |
+
"table_footnote": [],
|
| 1023 |
+
"table_body": "<table><tr><td>GT viscosity</td><td>0.044</td><td>0.127</td><td>0.174</td><td>0.233</td><td>0.269</td><td>0.350</td><td>0.400</td><td>Mean</td></tr><tr><td>Avg. estimated viscosity</td><td>0.027</td><td>0.150</td><td>0.202</td><td>0.255</td><td>0.277</td><td>0.322</td><td>0.336</td><td></td></tr><tr><td>Avg. relative error (%)</td><td>38.377</td><td>18.542</td><td>15.604</td><td>9.568</td><td>3.235</td><td>7.954</td><td>16.016</td><td>15.614</td></tr></table>",
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
176,
|
| 1026 |
+
252,
|
| 1027 |
+
821,
|
| 1028 |
+
306
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 9
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "text",
|
| 1034 |
+
"text": "Table 3: Application to an inverse problem: material estimation from observed fluid motion. To estimate the viscosity we backpropagate through our network and optimize $\\nu$ with gradient descent. For each scene, we run the procedure 10 times, each time with random initialization, and report the average. Viscosity values 0.350 and 0.400 are outside the range that was used during training and are used to test generalization. ",
|
| 1035 |
+
"bbox": [
|
| 1036 |
+
173,
|
| 1037 |
+
316,
|
| 1038 |
+
825,
|
| 1039 |
+
387
|
| 1040 |
+
],
|
| 1041 |
+
"page_idx": 9
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"type": "text",
|
| 1045 |
+
"text": "7 CONCLUSION ",
|
| 1046 |
+
"text_level": 1,
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
176,
|
| 1049 |
+
416,
|
| 1050 |
+
318,
|
| 1051 |
+
433
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 9
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "text",
|
| 1057 |
+
"text": "We have developed continuous convolutional networks for Lagrangian fluid simulation. We have introduced a simple formulation for continuous convolutions and demonstrated its accuracy and speed. Our model captures a wide range of complex material behavior, offers long-term stability, and generalizes to new situations such as varying particle counts, domain geometries, and material properties. There are numerous directions for future work, such as extending the framework to incorporate rigid and deformable solids. We will release the code to facilitate such development. Our continuous convolution implementation will be made available as part of Open3D (Zhou et al., 2018). ",
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
174,
|
| 1060 |
+
448,
|
| 1061 |
+
825,
|
| 1062 |
+
559
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 9
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "text",
|
| 1068 |
+
"text": "Acknowledgements. We thank Jan Bender for his support with the SPlisHSPlasH framework. ",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
173,
|
| 1071 |
+
574,
|
| 1072 |
+
800,
|
| 1073 |
+
589
|
| 1074 |
+
],
|
| 1075 |
+
"page_idx": 9
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "text",
|
| 1079 |
+
"text": "REFERENCES ",
|
| 1080 |
+
"text_level": 1,
|
| 1081 |
+
"bbox": [
|
| 1082 |
+
176,
|
| 1083 |
+
609,
|
| 1084 |
+
285,
|
| 1085 |
+
626
|
| 1086 |
+
],
|
| 1087 |
+
"page_idx": 9
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "text",
|
| 1091 |
+
"text": "Matan Atzmon, Haggai Maron, and Yaron Lipman. Point convolutional neural networks by extension operators. ACM Trans. Graph., 37(4), 2018. ",
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
173,
|
| 1094 |
+
633,
|
| 1095 |
+
823,
|
| 1096 |
+
661
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 9
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"text": "George K. Batchelor. An Introduction to Fluid Dynamics. Cambridge University Press, 1967. ",
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
173,
|
| 1105 |
+
670,
|
| 1106 |
+
787,
|
| 1107 |
+
685
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 9
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "text",
|
| 1113 |
+
"text": "Peter W. Battaglia, Razvan Pascanu, Matthew Lai, Danilo Rezende, and Koray Kavukcuoglu. Interaction networks for learning about objects, relations and physics. In Advances in Neural Information Processing Systems, 2016. ",
|
| 1114 |
+
"bbox": [
|
| 1115 |
+
173,
|
| 1116 |
+
694,
|
| 1117 |
+
823,
|
| 1118 |
+
736
|
| 1119 |
+
],
|
| 1120 |
+
"page_idx": 9
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"type": "text",
|
| 1124 |
+
"text": "Jan Bender and Dan Koschier. Divergence-free smoothed particle hydrodynamics. In Symposium on Computer Animation, 2015. ",
|
| 1125 |
+
"bbox": [
|
| 1126 |
+
173,
|
| 1127 |
+
744,
|
| 1128 |
+
823,
|
| 1129 |
+
773
|
| 1130 |
+
],
|
| 1131 |
+
"page_idx": 9
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"type": "text",
|
| 1135 |
+
"text": "Andrea Colagrossi and Maurizio Landrini. Numerical simulation of interfacial flows by smoothed particle hydrodynamics. Journal of Computational Physics, 191(2), 2003. ",
|
| 1136 |
+
"bbox": [
|
| 1137 |
+
174,
|
| 1138 |
+
782,
|
| 1139 |
+
821,
|
| 1140 |
+
811
|
| 1141 |
+
],
|
| 1142 |
+
"page_idx": 9
|
| 1143 |
+
},
|
| 1144 |
+
{
|
| 1145 |
+
"type": "text",
|
| 1146 |
+
"text": "Matthias Fey, Jan Eric Lenssen, Frank Weichert, and Heinrich Muller. SplineCNN: Fast geometric ¨ deep learning with continuous B-spline kernels. In CVPR, 2018. ",
|
| 1147 |
+
"bbox": [
|
| 1148 |
+
173,
|
| 1149 |
+
820,
|
| 1150 |
+
821,
|
| 1151 |
+
849
|
| 1152 |
+
],
|
| 1153 |
+
"page_idx": 9
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"type": "text",
|
| 1157 |
+
"text": "Nick Foster and Dimitris N. Metaxas. Realistic animation of liquids. Graphical Models and Image Processing, 58(5), 1996. ",
|
| 1158 |
+
"bbox": [
|
| 1159 |
+
176,
|
| 1160 |
+
858,
|
| 1161 |
+
821,
|
| 1162 |
+
886
|
| 1163 |
+
],
|
| 1164 |
+
"page_idx": 9
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"type": "text",
|
| 1168 |
+
"text": "Robert A Gingold and Joseph J Monaghan. Smoothed particle hydrodynamics: Theory and application to non-spherical stars. Monthly Notices of the Royal Astronomical Society, 181(3), 1977. ",
|
| 1169 |
+
"bbox": [
|
| 1170 |
+
173,
|
| 1171 |
+
895,
|
| 1172 |
+
820,
|
| 1173 |
+
924
|
| 1174 |
+
],
|
| 1175 |
+
"page_idx": 9
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"type": "text",
|
| 1179 |
+
"text": "Christoph Gissler, Andreas Peer, Stefan Band, Jan Bender, and Matthias Teschner. Interlinked SPH pressure solvers for strong fluid-rigid coupling. ACM Trans. Graph., 38(1), 2018. ",
|
| 1180 |
+
"bbox": [
|
| 1181 |
+
171,
|
| 1182 |
+
103,
|
| 1183 |
+
823,
|
| 1184 |
+
133
|
| 1185 |
+
],
|
| 1186 |
+
"page_idx": 10
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"type": "text",
|
| 1190 |
+
"text": "Jens Andre Griepentrog, Wolfgang H ´ oppner, Hans-Christoph Kaiser, and Joachim Rehberg. A bi- ¨ Lipschitz continuous, volume preserving map from the unit ball onto a cube. Note di Matematica, 28, 2008. ",
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
173,
|
| 1193 |
+
140,
|
| 1194 |
+
821,
|
| 1195 |
+
183
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 10
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "text",
|
| 1201 |
+
"text": "Pedro Hermosilla, Tobias Ritschel, Pere-Pau Vazquez, ´ Alvar Vinacua, and Timo Ropinski. Monte \\` Carlo convolution for learning on non-uniformly sampled point clouds. ACM Trans. Graph., 37 (6), 2018. ",
|
| 1202 |
+
"bbox": [
|
| 1203 |
+
174,
|
| 1204 |
+
191,
|
| 1205 |
+
823,
|
| 1206 |
+
234
|
| 1207 |
+
],
|
| 1208 |
+
"page_idx": 10
|
| 1209 |
+
},
|
| 1210 |
+
{
|
| 1211 |
+
"type": "text",
|
| 1212 |
+
"text": "Xiang Yu Hu and Nikolaus A Adams. A multi-phase SPH method for macroscopic and mesoscopic flows. Journal of Computational Physics, 213(2), 2006. ",
|
| 1213 |
+
"bbox": [
|
| 1214 |
+
169,
|
| 1215 |
+
243,
|
| 1216 |
+
825,
|
| 1217 |
+
272
|
| 1218 |
+
],
|
| 1219 |
+
"page_idx": 10
|
| 1220 |
+
},
|
| 1221 |
+
{
|
| 1222 |
+
"type": "text",
|
| 1223 |
+
"text": "Binh-Son Hua, Minh-Khoi Tran, and Sai-Kit Yeung. Pointwise convolutional neural networks. In CVPR, 2018. ",
|
| 1224 |
+
"bbox": [
|
| 1225 |
+
173,
|
| 1226 |
+
280,
|
| 1227 |
+
823,
|
| 1228 |
+
310
|
| 1229 |
+
],
|
| 1230 |
+
"page_idx": 10
|
| 1231 |
+
},
|
| 1232 |
+
{
|
| 1233 |
+
"type": "text",
|
| 1234 |
+
"text": "Byungsoo Kim, Vinicius C. Azevedo, Nils Thuerey, Theodore Kim, Markus Gross, and Barbara Solenthaler. Deep fluids: A generative network for parameterized fluid simulations. Computer Graphics Forum, 38(2), 2019. ",
|
| 1235 |
+
"bbox": [
|
| 1236 |
+
176,
|
| 1237 |
+
318,
|
| 1238 |
+
823,
|
| 1239 |
+
361
|
| 1240 |
+
],
|
| 1241 |
+
"page_idx": 10
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"type": "text",
|
| 1245 |
+
"text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. ",
|
| 1246 |
+
"bbox": [
|
| 1247 |
+
173,
|
| 1248 |
+
369,
|
| 1249 |
+
810,
|
| 1250 |
+
386
|
| 1251 |
+
],
|
| 1252 |
+
"page_idx": 10
|
| 1253 |
+
},
|
| 1254 |
+
{
|
| 1255 |
+
"type": "text",
|
| 1256 |
+
"text": "L’ubor Ladicky, SoHyeon Jeong, Barbara Solenthaler, Marc Pollefeys, and Markus Gross. Data- ´ driven fluid simulations using regression forests. ACM Trans. Graph., 34(6), 2015. ",
|
| 1257 |
+
"bbox": [
|
| 1258 |
+
174,
|
| 1259 |
+
393,
|
| 1260 |
+
820,
|
| 1261 |
+
422
|
| 1262 |
+
],
|
| 1263 |
+
"page_idx": 10
|
| 1264 |
+
},
|
| 1265 |
+
{
|
| 1266 |
+
"type": "text",
|
| 1267 |
+
"text": "Huan Lei, Naveed Akhtar, and Ajmal Mian. Octree guided CNN with spherical kernels for 3D point clouds. In CVPR, 2019. ",
|
| 1268 |
+
"bbox": [
|
| 1269 |
+
173,
|
| 1270 |
+
430,
|
| 1271 |
+
823,
|
| 1272 |
+
460
|
| 1273 |
+
],
|
| 1274 |
+
"page_idx": 10
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"type": "text",
|
| 1278 |
+
"text": "Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. PointCNN: Convolution on X-transformed points. In Advances in Neural Information Processing Systems, 2018. ",
|
| 1279 |
+
"bbox": [
|
| 1280 |
+
173,
|
| 1281 |
+
468,
|
| 1282 |
+
823,
|
| 1283 |
+
498
|
| 1284 |
+
],
|
| 1285 |
+
"page_idx": 10
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"type": "text",
|
| 1289 |
+
"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, 2019. ",
|
| 1290 |
+
"bbox": [
|
| 1291 |
+
174,
|
| 1292 |
+
506,
|
| 1293 |
+
823,
|
| 1294 |
+
536
|
| 1295 |
+
],
|
| 1296 |
+
"page_idx": 10
|
| 1297 |
+
},
|
| 1298 |
+
{
|
| 1299 |
+
"type": "text",
|
| 1300 |
+
"text": "Julia Ling, Andrew Kurzawski, and Jeremy Templeton. Reynolds averaged turbulence modelling using deep neural networks with embedded invariance. Journal of Fluid Mechanics, 807, 2016. ",
|
| 1301 |
+
"bbox": [
|
| 1302 |
+
169,
|
| 1303 |
+
542,
|
| 1304 |
+
825,
|
| 1305 |
+
573
|
| 1306 |
+
],
|
| 1307 |
+
"page_idx": 10
|
| 1308 |
+
},
|
| 1309 |
+
{
|
| 1310 |
+
"type": "text",
|
| 1311 |
+
"text": "Miles Macklin and Matthias Muller. Position based fluids. ¨ ACM Trans. Graph., 32(4), 2013. ",
|
| 1312 |
+
"bbox": [
|
| 1313 |
+
174,
|
| 1314 |
+
580,
|
| 1315 |
+
782,
|
| 1316 |
+
597
|
| 1317 |
+
],
|
| 1318 |
+
"page_idx": 10
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"type": "text",
|
| 1322 |
+
"text": "Miles Macklin, Matthias Muller, Nuttapong Chentanez, and Tae-Yong Kim. Unified particle physics ¨ for real-time applications. ACM Trans. Graph., 33(4), 2014. ",
|
| 1323 |
+
"bbox": [
|
| 1324 |
+
171,
|
| 1325 |
+
604,
|
| 1326 |
+
823,
|
| 1327 |
+
633
|
| 1328 |
+
],
|
| 1329 |
+
"page_idx": 10
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"type": "text",
|
| 1333 |
+
"text": "J Monaghan. An introduction to SPH. Computer Physics Communications, 48(1), 1988. ",
|
| 1334 |
+
"bbox": [
|
| 1335 |
+
171,
|
| 1336 |
+
641,
|
| 1337 |
+
753,
|
| 1338 |
+
659
|
| 1339 |
+
],
|
| 1340 |
+
"page_idx": 10
|
| 1341 |
+
},
|
| 1342 |
+
{
|
| 1343 |
+
"type": "text",
|
| 1344 |
+
"text": "Jeremy Morton, Antony Jameson, Mykel J Kochenderfer, and Freddie Witherden. Deep dynamical modeling and control of unsteady fluid flows. In Advances in Neural Information Processing Systems, 2018. ",
|
| 1345 |
+
"bbox": [
|
| 1346 |
+
173,
|
| 1347 |
+
665,
|
| 1348 |
+
825,
|
| 1349 |
+
708
|
| 1350 |
+
],
|
| 1351 |
+
"page_idx": 10
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"type": "text",
|
| 1355 |
+
"text": "Damian Mrowca, Chengxu Zhuang, Elias Wang, Nick Haber, Li F Fei-Fei, Josh Tenenbaum, and Daniel L Yamins. Flexible neural representation for physics prediction. In Advances in Neural Information Processing Systems, 2018. ",
|
| 1356 |
+
"bbox": [
|
| 1357 |
+
174,
|
| 1358 |
+
717,
|
| 1359 |
+
825,
|
| 1360 |
+
761
|
| 1361 |
+
],
|
| 1362 |
+
"page_idx": 10
|
| 1363 |
+
},
|
| 1364 |
+
{
|
| 1365 |
+
"type": "text",
|
| 1366 |
+
"text": "Matthias Muller, David Charypar, and Markus Gross. Particle-based fluid simulation for interactive ¨ applications. In Symposium on Computer Animation, 2003. ",
|
| 1367 |
+
"bbox": [
|
| 1368 |
+
168,
|
| 1369 |
+
768,
|
| 1370 |
+
823,
|
| 1371 |
+
797
|
| 1372 |
+
],
|
| 1373 |
+
"page_idx": 10
|
| 1374 |
+
},
|
| 1375 |
+
{
|
| 1376 |
+
"type": "text",
|
| 1377 |
+
"text": "Daniel J Price. Smoothed particle hydrodynamics and magnetohydrodynamics. Journal of Computational Physics, 231(3), 2012. ",
|
| 1378 |
+
"bbox": [
|
| 1379 |
+
171,
|
| 1380 |
+
805,
|
| 1381 |
+
823,
|
| 1382 |
+
835
|
| 1383 |
+
],
|
| 1384 |
+
"page_idx": 10
|
| 1385 |
+
},
|
| 1386 |
+
{
|
| 1387 |
+
"type": "text",
|
| 1388 |
+
"text": "Alvaro Sanchez-Gonzalez, Nicolas Heess, Jost Tobias Springenberg, Josh Merel, Martin A. Riedmiller, Raia Hadsell, and Peter W. Battaglia. Graph networks as learnable physics engines for inference and control. In ICML, 2018. ",
|
| 1389 |
+
"bbox": [
|
| 1390 |
+
173,
|
| 1391 |
+
843,
|
| 1392 |
+
823,
|
| 1393 |
+
887
|
| 1394 |
+
],
|
| 1395 |
+
"page_idx": 10
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"type": "text",
|
| 1399 |
+
"text": "Connor Schenck and Dieter Fox. SPNets: Differentiable fluid dynamics for deep neural networks. In Conference on Robot Learning, 2018. ",
|
| 1400 |
+
"bbox": [
|
| 1401 |
+
173,
|
| 1402 |
+
895,
|
| 1403 |
+
820,
|
| 1404 |
+
924
|
| 1405 |
+
],
|
| 1406 |
+
"page_idx": 10
|
| 1407 |
+
},
|
| 1408 |
+
{
|
| 1409 |
+
"type": "text",
|
| 1410 |
+
"text": "Barbara Solenthaler and Renato Pajarola. Predictive-corrective incompressible SPH. ACM Trans. Graph., 28(3), 2009. ",
|
| 1411 |
+
"bbox": [
|
| 1412 |
+
173,
|
| 1413 |
+
103,
|
| 1414 |
+
821,
|
| 1415 |
+
132
|
| 1416 |
+
],
|
| 1417 |
+
"page_idx": 11
|
| 1418 |
+
},
|
| 1419 |
+
{
|
| 1420 |
+
"type": "text",
|
| 1421 |
+
"text": "Hang Su, Varun Jampani, Deqing Sun, Subhransu Maji, Evangelos Kalogerakis, Ming-Hsuan Yang, and Jan Kautz. SPLATNet: Sparse lattice networks for point cloud processing. In CVPR, 2018. ",
|
| 1422 |
+
"bbox": [
|
| 1423 |
+
173,
|
| 1424 |
+
140,
|
| 1425 |
+
823,
|
| 1426 |
+
170
|
| 1427 |
+
],
|
| 1428 |
+
"page_idx": 11
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"type": "text",
|
| 1432 |
+
"text": "Matthias Teschner, Bruno Heidelberger, Matthias Muller, Danat Pomerantes, and Markus H. Gross. ¨ Optimized spatial hashing for collision detection of deformable objects. In Vision, Modeling, and Visualization (VMV), 2003. ",
|
| 1433 |
+
"bbox": [
|
| 1434 |
+
176,
|
| 1435 |
+
178,
|
| 1436 |
+
823,
|
| 1437 |
+
220
|
| 1438 |
+
],
|
| 1439 |
+
"page_idx": 11
|
| 1440 |
+
},
|
| 1441 |
+
{
|
| 1442 |
+
"type": "text",
|
| 1443 |
+
"text": "Hugues Thomas, Charles R. Qi, Jean-Emmanuel Deschaud, Beatriz Marcotegui, Franc¸ois Goulette, and Leonidas J. Guibas. KPConv: Flexible and deformable convolution for point clouds. In ICCV, 2019. ",
|
| 1444 |
+
"bbox": [
|
| 1445 |
+
174,
|
| 1446 |
+
229,
|
| 1447 |
+
823,
|
| 1448 |
+
272
|
| 1449 |
+
],
|
| 1450 |
+
"page_idx": 11
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"type": "text",
|
| 1454 |
+
"text": "Jonathan Tompson, Kristofer Schlachter, Pablo Sprechmann, and Ken Perlin. Accelerating Eulerian fluid simulation with convolutional networks. In ICML, 2017. ",
|
| 1455 |
+
"bbox": [
|
| 1456 |
+
173,
|
| 1457 |
+
280,
|
| 1458 |
+
823,
|
| 1459 |
+
309
|
| 1460 |
+
],
|
| 1461 |
+
"page_idx": 11
|
| 1462 |
+
},
|
| 1463 |
+
{
|
| 1464 |
+
"type": "text",
|
| 1465 |
+
"text": "Shenlong Wang, Simon Suo, Wei-Chiu Ma, Andrei Pokrovsky, and Raquel Urtasun. Deep parametric continuous convolutional neural networks. In CVPR, 2018. ",
|
| 1466 |
+
"bbox": [
|
| 1467 |
+
174,
|
| 1468 |
+
318,
|
| 1469 |
+
823,
|
| 1470 |
+
347
|
| 1471 |
+
],
|
| 1472 |
+
"page_idx": 11
|
| 1473 |
+
},
|
| 1474 |
+
{
|
| 1475 |
+
"type": "text",
|
| 1476 |
+
"text": "Steffen Wiewel, Moritz Becher, and Nils Thuerey. Latent space physics: Towards learning the temporal evolution of fluid flow. Computer Graphics Forum, 38(2), 2019. ",
|
| 1477 |
+
"bbox": [
|
| 1478 |
+
174,
|
| 1479 |
+
356,
|
| 1480 |
+
823,
|
| 1481 |
+
385
|
| 1482 |
+
],
|
| 1483 |
+
"page_idx": 11
|
| 1484 |
+
},
|
| 1485 |
+
{
|
| 1486 |
+
"type": "text",
|
| 1487 |
+
"text": "David C Wilcox. Turbulence Modeling for CFD. DCW industries, 3rd edition, 2006. ",
|
| 1488 |
+
"bbox": [
|
| 1489 |
+
174,
|
| 1490 |
+
392,
|
| 1491 |
+
732,
|
| 1492 |
+
409
|
| 1493 |
+
],
|
| 1494 |
+
"page_idx": 11
|
| 1495 |
+
},
|
| 1496 |
+
{
|
| 1497 |
+
"type": "text",
|
| 1498 |
+
"text": "Wenxuan Wu, Zhongang Qi, and Fuxin Li. PointConv: Deep convolutional networks on 3D point clouds. In CVPR, 2019. ",
|
| 1499 |
+
"bbox": [
|
| 1500 |
+
173,
|
| 1501 |
+
416,
|
| 1502 |
+
823,
|
| 1503 |
+
445
|
| 1504 |
+
],
|
| 1505 |
+
"page_idx": 11
|
| 1506 |
+
},
|
| 1507 |
+
{
|
| 1508 |
+
"type": "text",
|
| 1509 |
+
"text": "You Xie, Erik Franz, Mengyu Chu, and Nils Thuerey. tempoGAN: A temporally coherent, volumetric GAN for super-resolution fluid flow. ACM Trans. Graph., 37(4), 2018. ",
|
| 1510 |
+
"bbox": [
|
| 1511 |
+
173,
|
| 1512 |
+
453,
|
| 1513 |
+
821,
|
| 1514 |
+
483
|
| 1515 |
+
],
|
| 1516 |
+
"page_idx": 11
|
| 1517 |
+
},
|
| 1518 |
+
{
|
| 1519 |
+
"type": "text",
|
| 1520 |
+
"text": "Yifan Xu, Tianqi Fan, Mingye Xu, Long Zeng, and Yu Qiao. SpiderCNN: Deep learning on point sets with parameterized convolutional filters. In ECCV, 2018. ",
|
| 1521 |
+
"bbox": [
|
| 1522 |
+
173,
|
| 1523 |
+
491,
|
| 1524 |
+
823,
|
| 1525 |
+
520
|
| 1526 |
+
],
|
| 1527 |
+
"page_idx": 11
|
| 1528 |
+
},
|
| 1529 |
+
{
|
| 1530 |
+
"type": "text",
|
| 1531 |
+
"text": "Qian-Yi Zhou, Jaesik Park, and Vladlen Koltun. Open3D: A modern library for 3D data processing. arXiv:1801.09847, 2018. ",
|
| 1532 |
+
"bbox": [
|
| 1533 |
+
174,
|
| 1534 |
+
529,
|
| 1535 |
+
821,
|
| 1536 |
+
558
|
| 1537 |
+
],
|
| 1538 |
+
"page_idx": 11
|
| 1539 |
+
},
|
| 1540 |
+
{
|
| 1541 |
+
"type": "text",
|
| 1542 |
+
"text": "A APPENDIX ",
|
| 1543 |
+
"text_level": 1,
|
| 1544 |
+
"bbox": [
|
| 1545 |
+
176,
|
| 1546 |
+
583,
|
| 1547 |
+
299,
|
| 1548 |
+
599
|
| 1549 |
+
],
|
| 1550 |
+
"page_idx": 11
|
| 1551 |
+
},
|
| 1552 |
+
{
|
| 1553 |
+
"type": "text",
|
| 1554 |
+
"text": "A.1 IMPLEMENTATION DETAILS ",
|
| 1555 |
+
"text_level": 1,
|
| 1556 |
+
"bbox": [
|
| 1557 |
+
176,
|
| 1558 |
+
614,
|
| 1559 |
+
410,
|
| 1560 |
+
628
|
| 1561 |
+
],
|
| 1562 |
+
"page_idx": 11
|
| 1563 |
+
},
|
| 1564 |
+
{
|
| 1565 |
+
"type": "text",
|
| 1566 |
+
"text": "To accelerate the computation of Equation 7 we use existing general matrix multiplication primitives. Similar to standard convolutions in deep learning frameworks we build a matrix with patches that we then multiply with the filter matrix. We can account for the linear interpolation by applying the interpolation to the patch matrix instead of the filters. For 3D point clouds a single point contributes to up to 8 voxels in a patch. ",
|
| 1567 |
+
"bbox": [
|
| 1568 |
+
174,
|
| 1569 |
+
641,
|
| 1570 |
+
825,
|
| 1571 |
+
710
|
| 1572 |
+
],
|
| 1573 |
+
"page_idx": 11
|
| 1574 |
+
},
|
| 1575 |
+
{
|
| 1576 |
+
"type": "text",
|
| 1577 |
+
"text": "Another crucial part of our implementation is the nearest neighbor search. Since the positions of the fluid particles update with each timestep, we have to rebuild the neighborhood information for every frame. We implement the neighborhood search with spatial hashing (we use the hash function proposed in Teschner et al. (2003)). We explicitly store all particle neighbors in a compact list, which allows us to reuse the information for multiple convolutions operating on the same point sets. Table 4 compares the average frame runtimes of our method with the baselines. ",
|
| 1578 |
+
"bbox": [
|
| 1579 |
+
174,
|
| 1580 |
+
718,
|
| 1581 |
+
825,
|
| 1582 |
+
801
|
| 1583 |
+
],
|
| 1584 |
+
"page_idx": 11
|
| 1585 |
+
},
|
| 1586 |
+
{
|
| 1587 |
+
"type": "text",
|
| 1588 |
+
"text": "A.2 DATASET GENERATION ",
|
| 1589 |
+
"text_level": 1,
|
| 1590 |
+
"bbox": [
|
| 1591 |
+
176,
|
| 1592 |
+
818,
|
| 1593 |
+
379,
|
| 1594 |
+
832
|
| 1595 |
+
],
|
| 1596 |
+
"page_idx": 11
|
| 1597 |
+
},
|
| 1598 |
+
{
|
| 1599 |
+
"type": "text",
|
| 1600 |
+
"text": "To enable generalization to new environments we use 10 different containers (see Figure 8) in our data generation process. During scene generation we randomly sample an environment and place up to 3 fluid bodies with different shapes and sizes (see Figure 9) and random initial velocities in the scene. We simulate each generated scene with DFSPH using the SPlisHSPlasH framework 1 for ",
|
| 1601 |
+
"bbox": [
|
| 1602 |
+
174,
|
| 1603 |
+
844,
|
| 1604 |
+
823,
|
| 1605 |
+
900
|
| 1606 |
+
],
|
| 1607 |
+
"page_idx": 11
|
| 1608 |
+
},
|
| 1609 |
+
{
|
| 1610 |
+
"type": "table",
|
| 1611 |
+
"img_path": "images/708c9b4151c0c00dd851caceef824c423a693063c469c1b1e3477fab2ca7373b.jpg",
|
| 1612 |
+
"table_caption": [],
|
| 1613 |
+
"table_footnote": [],
|
| 1614 |
+
"table_body": "<table><tr><td>Method</td><td></td><td>Frame inference time (ms)</td><td>Frame NNS time (ms)</td><td>NNS Method</td></tr><tr><td></td><td>DPI-Nets</td><td>202.56</td><td>103.26</td><td>KD-Tree (SciPy)</td></tr><tr><td>Daraaa</td><td>SPNets Convs</td><td>1058.46</td><td>5.24</td><td>Spatial hashing on GPU</td></tr><tr><td></td><td>PCNN Convs</td><td>187.34</td><td>2.42</td><td>*Spatial hashing on GPU</td></tr><tr><td></td><td>SplineCNN Convs</td><td>67.67</td><td>41.92</td><td>Brute-force on GPU</td></tr><tr><td></td><td>KPConv</td><td>47.96</td><td>28.12</td><td>KD-Tree (nanoflann)</td></tr><tr><td></td><td>Ours</td><td>12.01</td><td>2.14</td><td>* Spatial hashing on GPU</td></tr><tr><td>gaaarae err tar est</td><td>DPI-Nets</td><td>305.55</td><td>171.22</td><td>KD-Tree (SciPy)</td></tr><tr><td></td><td>SPNets Convs</td><td>784.35</td><td>10.19</td><td>Spatial hashing on GPU</td></tr><tr><td></td><td>PCNN Convs</td><td>319.17</td><td>2.78</td><td>* Spatial hashing on GPU</td></tr><tr><td></td><td>SplineCNN Convs</td><td>281.92</td><td>245.52</td><td>Brute-force on GPU</td></tr><tr><td></td><td>KPConv</td><td>57.89</td><td>34.07</td><td>KD-Tree (nanoflann)</td></tr><tr><td></td><td>Ours</td><td>16.47</td><td>2.38</td><td>*Spatial hashing on GPU</td></tr></table>",
|
| 1615 |
+
"bbox": [
|
| 1616 |
+
176,
|
| 1617 |
+
101,
|
| 1618 |
+
823,
|
| 1619 |
+
287
|
| 1620 |
+
],
|
| 1621 |
+
"page_idx": 12
|
| 1622 |
+
},
|
| 1623 |
+
{
|
| 1624 |
+
"type": "text",
|
| 1625 |
+
"text": "Table 4: Runtime analysis. We compare the average per frame inference time and the time used for the nearest neighbor search (NNS). Our convolution achieves the shortest inference times in comparison even if NNS times would be excluded. Irrespective of that, the methods used for finding neighbors can have a significant contribution to the total runtime. Since fluid particles are moving, acceleration structures for the neighbor search have to be rebuilt each frame. This affects the KDTree methods as well as the methods using spatial hashing. Note that we use the same NNS for PCNN and Ours (denoted with \\*). For all methods except for SPNets the inference time is shorter on the smaller DPI DamBreak data (3456 particles compared to the 6000 particles of our data). We attribute this to a higher number of neighbors on the DPI DamBreak, which is about 49 on average compared to the average 40 neighbors on our datasets. All runtimes were measured on a system with an Intel Core i9-7960 and an NVIDIA RTX 2080Ti. ",
|
| 1626 |
+
"bbox": [
|
| 1627 |
+
173,
|
| 1628 |
+
296,
|
| 1629 |
+
825,
|
| 1630 |
+
450
|
| 1631 |
+
],
|
| 1632 |
+
"page_idx": 12
|
| 1633 |
+
},
|
| 1634 |
+
{
|
| 1635 |
+
"type": "text",
|
| 1636 |
+
"text": "16 seconds to ensure that each scene contains frames with small particle velocities. To create the particle representation of the box-like containers, we do Poisson-Disc sampling on the mesh surface with the tools provided by DFPSH and add surface normals to each particle. ",
|
| 1637 |
+
"bbox": [
|
| 1638 |
+
173,
|
| 1639 |
+
491,
|
| 1640 |
+
825,
|
| 1641 |
+
534
|
| 1642 |
+
],
|
| 1643 |
+
"page_idx": 12
|
| 1644 |
+
},
|
| 1645 |
+
{
|
| 1646 |
+
"type": "image",
|
| 1647 |
+
"img_path": "images/8d35cce31d9dfd8d41d1ab91b20111ad299e58de888e2118fc1c35b7b0bd9688.jpg",
|
| 1648 |
+
"image_caption": [
|
| 1649 |
+
"Figure 8: We sample from 10 different box-like containers during data generation. For the simplified version of our dataset used in the quantitative comparison with the baselines we only use the first container (leftmost container in the first row). "
|
| 1650 |
+
],
|
| 1651 |
+
"image_footnote": [],
|
| 1652 |
+
"bbox": [
|
| 1653 |
+
220,
|
| 1654 |
+
570,
|
| 1655 |
+
774,
|
| 1656 |
+
838
|
| 1657 |
+
],
|
| 1658 |
+
"page_idx": 12
|
| 1659 |
+
},
|
| 1660 |
+
{
|
| 1661 |
+
"type": "image",
|
| 1662 |
+
"img_path": "images/d23198eef7fc652a9b841e946779bbeda60a591a9f56f8e201f10920c76328cb.jpg",
|
| 1663 |
+
"image_caption": [
|
| 1664 |
+
"Figure 9: We randomly place fluid bodies of different initial shapes in the scene during data generation. We sample from 5 different shapes and vary the size, the orientation and the initial particle velocity. All particles from the same fluid body start with the same initial velocity. The image shows the particles generated from each shape for a specific size and orientation. "
|
| 1665 |
+
],
|
| 1666 |
+
"image_footnote": [],
|
| 1667 |
+
"bbox": [
|
| 1668 |
+
207,
|
| 1669 |
+
101,
|
| 1670 |
+
790,
|
| 1671 |
+
271
|
| 1672 |
+
],
|
| 1673 |
+
"page_idx": 13
|
| 1674 |
+
},
|
| 1675 |
+
{
|
| 1676 |
+
"type": "table",
|
| 1677 |
+
"img_path": "images/0fb91eb40d3ce7844ead3e2558c7a741c22dfaf617f44436ee33cd7007e4bdaa.jpg",
|
| 1678 |
+
"table_caption": [],
|
| 1679 |
+
"table_footnote": [],
|
| 1680 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">Average error (mm)</td><td colspan=\"2\">Seq. end error (mm)</td><td rowspan=\"2\">Average distance to closest point d (mm)</td></tr><tr><td>n+1</td><td>n+2</td><td>n+1</td><td>n+2</td></tr><tr><td>Ours</td><td>0.67</td><td>1.87</td><td>0.25</td><td>0.74</td><td>30.63</td></tr><tr><td>Ours triangular window</td><td>0.69</td><td>1.94</td><td>0.27</td><td>0.79</td><td>30.28</td></tr><tr><td>Ours w/o window</td><td>0.77</td><td>2.21</td><td>0.30</td><td>0.89</td><td>31.77</td></tr></table>",
|
| 1681 |
+
"bbox": [
|
| 1682 |
+
214,
|
| 1683 |
+
368,
|
| 1684 |
+
784,
|
| 1685 |
+
454
|
| 1686 |
+
],
|
| 1687 |
+
"page_idx": 13
|
| 1688 |
+
},
|
| 1689 |
+
{
|
| 1690 |
+
"type": "text",
|
| 1691 |
+
"text": "Table 5: Comparison of different window functions. Ours uses a window function similar to the poly6 kernel used in Muller et al. (2003). ¨ Ours triangular window uses a triangular window function. Ours w/o window does not use a window function. This case can also be interpreted as a rectangular window since we only consider points within a radius $R$ . ",
|
| 1692 |
+
"bbox": [
|
| 1693 |
+
173,
|
| 1694 |
+
464,
|
| 1695 |
+
826,
|
| 1696 |
+
520
|
| 1697 |
+
],
|
| 1698 |
+
"page_idx": 13
|
| 1699 |
+
},
|
| 1700 |
+
{
|
| 1701 |
+
"type": "text",
|
| 1702 |
+
"text": "A.3 TRAINING DETAILS ",
|
| 1703 |
+
"text_level": 1,
|
| 1704 |
+
"bbox": [
|
| 1705 |
+
176,
|
| 1706 |
+
554,
|
| 1707 |
+
354,
|
| 1708 |
+
568
|
| 1709 |
+
],
|
| 1710 |
+
"page_idx": 13
|
| 1711 |
+
},
|
| 1712 |
+
{
|
| 1713 |
+
"type": "text",
|
| 1714 |
+
"text": "We use the Tensorflow framework for implementing the training procedure. We use Adam as optimizer and train with a batch size of 16 and an initial learning rate of 0.001. We half the learning rate at steps 20000, 25000, . . . , 45000. For the convolutions we use the random uniform initializer with range [-0.05, 0.05]. All other weights are initialized with the respective default initializers of Tensorflow version 1.12. The output of the network is scaled with $\\scriptstyle { \\frac { 1 } { 1 2 8 } }$ to roughly adjust the output range to the ground truth position correction of the training data. ",
|
| 1715 |
+
"bbox": [
|
| 1716 |
+
174,
|
| 1717 |
+
583,
|
| 1718 |
+
825,
|
| 1719 |
+
667
|
| 1720 |
+
],
|
| 1721 |
+
"page_idx": 13
|
| 1722 |
+
},
|
| 1723 |
+
{
|
| 1724 |
+
"type": "text",
|
| 1725 |
+
"text": "The unit of length of the training data is meter. The particle radius used in DFSPH is $h = 0 . 0 2 5 \\mathrm { m }$ . \nFor our convolutions, we use spherical filters with an empirically determined radius of $R = 4 . 5 h$ . ",
|
| 1726 |
+
"bbox": [
|
| 1727 |
+
174,
|
| 1728 |
+
674,
|
| 1729 |
+
823,
|
| 1730 |
+
702
|
| 1731 |
+
],
|
| 1732 |
+
"page_idx": 13
|
| 1733 |
+
},
|
| 1734 |
+
{
|
| 1735 |
+
"type": "text",
|
| 1736 |
+
"text": "A.4 WINDOW FUNCTION ",
|
| 1737 |
+
"text_level": 1,
|
| 1738 |
+
"bbox": [
|
| 1739 |
+
176,
|
| 1740 |
+
727,
|
| 1741 |
+
361,
|
| 1742 |
+
741
|
| 1743 |
+
],
|
| 1744 |
+
"page_idx": 13
|
| 1745 |
+
},
|
| 1746 |
+
{
|
| 1747 |
+
"type": "text",
|
| 1748 |
+
"text": "We compare 3 different choices for the window function $a$ from Equation 8 in Table 5. The results show that enforcing a continuous output with a window function yields better results. Further, using a window function similar to kernels used in SPH codes gives better results than a simple triangular window. Learning the window function is therefore a possible direction to extend our framework to further improve the accuracy. ",
|
| 1749 |
+
"bbox": [
|
| 1750 |
+
174,
|
| 1751 |
+
756,
|
| 1752 |
+
825,
|
| 1753 |
+
827
|
| 1754 |
+
],
|
| 1755 |
+
"page_idx": 13
|
| 1756 |
+
},
|
| 1757 |
+
{
|
| 1758 |
+
"type": "text",
|
| 1759 |
+
"text": "A.5 COORDINATE MAPPING FUNCTION",
|
| 1760 |
+
"text_level": 1,
|
| 1761 |
+
"bbox": [
|
| 1762 |
+
178,
|
| 1763 |
+
852,
|
| 1764 |
+
460,
|
| 1765 |
+
866
|
| 1766 |
+
],
|
| 1767 |
+
"page_idx": 13
|
| 1768 |
+
},
|
| 1769 |
+
{
|
| 1770 |
+
"type": "text",
|
| 1771 |
+
"text": "We use the ball to cube mapping described in (Griepentrog et al., 2008) to map a position within a spherical region to the filter values stored in a regular grid. We give here the functions used for the 3-D case as used in our implementation. For more details see (Griepentrog et al., 2008). ",
|
| 1772 |
+
"bbox": [
|
| 1773 |
+
176,
|
| 1774 |
+
882,
|
| 1775 |
+
823,
|
| 1776 |
+
924
|
| 1777 |
+
],
|
| 1778 |
+
"page_idx": 13
|
| 1779 |
+
},
|
| 1780 |
+
{
|
| 1781 |
+
"type": "text",
|
| 1782 |
+
"text": "The function $\\Lambda$ is a composition of the functions $\\Lambda _ { \\mathrm { b a l l c y l } }$ and $\\Lambda _ { \\mathrm { c y l \\to c u b e } }$ , which map a sphere to a cylinder and a cylinder to a cube respectively. We define $\\Lambda _ { \\mathrm { b a l l c y l } }$ for vectors ${ \\bf r } = ( x , y , z )$ as ",
|
| 1783 |
+
"bbox": [
|
| 1784 |
+
169,
|
| 1785 |
+
102,
|
| 1786 |
+
826,
|
| 1787 |
+
133
|
| 1788 |
+
],
|
| 1789 |
+
"page_idx": 14
|
| 1790 |
+
},
|
| 1791 |
+
{
|
| 1792 |
+
"type": "equation",
|
| 1793 |
+
"img_path": "images/8471d0836f5de5bd0e5d30fe5fbfd0a1d2273d7f3bd6be515e513076b5106694.jpg",
|
| 1794 |
+
"text": "$$\n\\begin{array} { r } { \\Lambda _ { \\mathrm { b a l l } \\to \\mathrm { c y l } } ( \\mathbf { r } ) = \\left\\{ \\begin{array} { l l } { ( 0 , 0 , 0 ) } & { \\mathrm { i f ~ } \\| \\mathbf { r } \\| _ { 2 } = 0 } \\\\ { \\left( x \\frac { \\| \\mathbf { r } \\| _ { 2 } } { \\| ( x , y ) \\| _ { 2 } } , y \\frac { \\| \\mathbf { r } \\| _ { 2 } } { \\| ( x , y ) \\| _ { 2 } } , \\frac { 3 } { 2 } z \\right) } & { \\mathrm { i f ~ } \\frac { 5 } { 4 } z ^ { 2 } \\leq x ^ { 2 } + y ^ { 2 } } \\\\ { \\left( x \\sqrt { \\frac { 3 \\| \\mathbf { r } \\| _ { 2 } } { \\| \\mathbf { r } \\| _ { 2 } + | z | } } , y \\sqrt { \\frac { 3 \\| \\mathbf { r } \\| _ { 2 } } { \\| \\mathbf { r } \\| _ { 2 } + | z | } } , \\mathrm { s i g n } ( z ) \\| \\mathbf { r } \\| _ { 2 } \\right) } & { \\mathrm { e l s e } . } \\end{array} \\right. } \\end{array}\n$$",
|
| 1795 |
+
"text_format": "latex",
|
| 1796 |
+
"bbox": [
|
| 1797 |
+
235,
|
| 1798 |
+
140,
|
| 1799 |
+
763,
|
| 1800 |
+
208
|
| 1801 |
+
],
|
| 1802 |
+
"page_idx": 14
|
| 1803 |
+
},
|
| 1804 |
+
{
|
| 1805 |
+
"type": "text",
|
| 1806 |
+
"text": "The cylinder to cube mapping is defined as ",
|
| 1807 |
+
"bbox": [
|
| 1808 |
+
174,
|
| 1809 |
+
219,
|
| 1810 |
+
455,
|
| 1811 |
+
236
|
| 1812 |
+
],
|
| 1813 |
+
"page_idx": 14
|
| 1814 |
+
},
|
| 1815 |
+
{
|
| 1816 |
+
"type": "equation",
|
| 1817 |
+
"img_path": "images/f406a4aa0f519837f7b85d11f062882b52332bb326748bdc286669f918ab13a5.jpg",
|
| 1818 |
+
"text": "$$\n\\Lambda _ { \\mathrm { c y l } \\to \\mathrm { c u b e } } ( \\mathbf { r } ) = \\left\\{ \\begin{array} { l l } { ( 0 , 0 , z ) } & { \\mathrm { i f ~ } x = 0 , y = 0 } \\\\ { ( \\mathrm { s i g n } ( x ) \\| ( x , y ) \\| _ { 2 } , \\frac { 4 } { \\pi } \\mathrm { s i g n } ( x ) \\| ( x , y ) \\| _ { 2 } \\mathrm { a r c t a n } \\frac { y } { x } , z ) } & { \\mathrm { i f ~ } | y | \\leq | x | } \\\\ { \\left( \\frac { 4 } { \\pi } \\mathrm { s i g n } ( y ) \\| ( x , y ) \\| _ { 2 } \\mathrm { a r c t a n } \\frac { x } { y } , \\mathrm { s i g n } ( y ) \\| ( x , y ) \\| _ { 2 } , z \\right) } & { \\mathrm { e l s e } . } \\end{array} \\right.\n$$",
|
| 1819 |
+
"text_format": "latex",
|
| 1820 |
+
"bbox": [
|
| 1821 |
+
192,
|
| 1822 |
+
242,
|
| 1823 |
+
777,
|
| 1824 |
+
303
|
| 1825 |
+
],
|
| 1826 |
+
"page_idx": 14
|
| 1827 |
+
},
|
| 1828 |
+
{
|
| 1829 |
+
"type": "text",
|
| 1830 |
+
"text": "We assume that vectors $\\mathbf { r }$ are normalized with the search radius $R$ such that $\\| \\mathbf { r } \\| _ { 2 } \\leq 1$ . This yields the following $\\Lambda$ , which maps from a unit ball to the normalized coordinates of a cube: ",
|
| 1831 |
+
"bbox": [
|
| 1832 |
+
169,
|
| 1833 |
+
315,
|
| 1834 |
+
825,
|
| 1835 |
+
345
|
| 1836 |
+
],
|
| 1837 |
+
"page_idx": 14
|
| 1838 |
+
},
|
| 1839 |
+
{
|
| 1840 |
+
"type": "equation",
|
| 1841 |
+
"img_path": "images/f12d4bf8de77f6d548fa468ea83db16bec127b914853573e4106bd1f5a3128c9.jpg",
|
| 1842 |
+
"text": "$$\n\\Lambda ( { \\bf r } ) = \\frac { 1 } { 2 } \\Lambda _ { \\mathrm { c y l \\to c u b e } } ( \\Lambda _ { \\mathrm { b a l l \\to c y l } } ( { \\bf r } ) ) + ( 0 . 5 , 0 . 5 , 0 . 5 ) .\n$$",
|
| 1843 |
+
"text_format": "latex",
|
| 1844 |
+
"bbox": [
|
| 1845 |
+
331,
|
| 1846 |
+
361,
|
| 1847 |
+
666,
|
| 1848 |
+
391
|
| 1849 |
+
],
|
| 1850 |
+
"page_idx": 14
|
| 1851 |
+
}
|
| 1852 |
+
]
|
parse/train/B1lDoJSYDH/B1lDoJSYDH_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/B1lDoJSYDH/B1lDoJSYDH_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BkCV_W-AZ/BkCV_W-AZ.md
ADDED
|
@@ -0,0 +1,384 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# REGRET MINIMIZATION FOR PARTIALLY OBSERVABLE DEEP REINFORCEMENT LEARNING
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Deep reinforcement learning algorithms that estimate state and state-action value functions have been shown to be effective in a variety of challenging domains, including learning control strategies from raw image pixels. However, algorithms that estimate state and state-action value functions typically assume a fully observed state and must compensate for partial or non-Markovian observations by using finite-length frame-history observations or recurrent networks. In this work, we propose a new deep reinforcement learning algorithm based on counterfactual regret minimization that iteratively updates an approximation to a cumulative clipped advantage function and is robust to partially observed state. We demonstrate that on several partially observed reinforcement learning tasks, this new class of algorithms can substantially outperform strong baseline methods: on Pong with single-frame observations, and on the challenging Doom (ViZDoom) and Minecraft (Malmo) first-person navigation benchmarks. ¨
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Many reinforcement learning problems of practical interest have the property of partial observability, where observations of state are generally non-Markovian. Despite the importance of partial observation in the real world, value function-based methods such as Q-learning (Mnih et al., 2013; 2015) generally assume a Markovian observation space. On the other hand, Monte Carlo policy gradient methods do not assume Markovian observations, but many practical policy gradient methods such as A3C (Mnih et al., 2016) introduce the Markov assumption when using a critic or state-dependent baseline in order to improve sample efficiency.
|
| 12 |
+
|
| 13 |
+
Consider deep reinforcement learning methods that learn a state or state-action value function. One common workaround for the problem of partial observation is to learn value functions on the space of finite-length frame-history observations, under the assumption that frame-histories of sufficient length will give the environment the approximate appearance of full observability. When learning to play Atari 2600 games from images, deep Q-learning algorithms (Mnih et al., 2013; 2015) concatenate the last 4 observed frames of the video screen buffer as input to a state-action value convolutional network. Not all non-Markovian tasks are amenable to finite-length frame-histories; recurrent value functions can incorporate longer and potentially infinite histories (Hausknecht & Stone, 2017; Foerster et al., 2016), but at the cost of solving a harder optimization problem. Can we develop methods that learn a variant of the value function that is more robust to partial observability?
|
| 14 |
+
|
| 15 |
+
Our contribution is a new model-free deep reinforcement learning algorithm based on the principle of regret minimization which does not require access to a Markovian state. Our method learns a policy by estimating a cumulative clipped advantage function, which is an approximation to a type of regret that is central to two partial information game-solving algorithms from which we draw our primary inspiration: counterfactual regret minimization (CFR) (Zinkevich et al., 2007) and $\mathrm { C F R + }$ (Tammelin, 2014). Hence we call our algorithm “advantage-based regret minimization” (ARM).
|
| 16 |
+
|
| 17 |
+
We evaluate our approach on three visual reinforcement learning domains: Pong with varying framehistory lengths (Bellemare et al., 2013), and the first-person games Doom (Kempka et al., 2016) and Minecraft (Johnson et al., 2016). Doom and Minecraft exhibit a first-person viewpoint in a 3- dimensional environment and should appear non-Markovian even with frame-history observations. We find that our method offers substantial improvement over prior methods in these partially observable environments: on both Doom and Minecraft, our method can learn well-performing policies within about 1 million simulator steps using only visual input frame-history observations.
|
| 18 |
+
|
| 19 |
+
# 2 RELATED WORK
|
| 20 |
+
|
| 21 |
+
Deep reinforcement learning algorithms have been demonstrated to achieve excellent results on a range of complex tasks, including playing games (Mnih et al., 2015; Oh et al., 2016) and continuous control (Schulman et al., 2015; Lillicrap et al., 2016; Levine et al., 2016). Prior deep reinforcement learning algorithms either learn state or state-action value functions (Mnih et al., 2013), learn policies using policy gradients (Schulman et al., 2015), or perform a combination of the two using actor-critic architectures (Mnih et al., 2016). Policy gradient methods typically do not need to assume a Markovian state, but tend to suffer from poor sample complexity, due to their inability to use off-policy data. Methods based on learning Q-functions can use replay buffers to include off-policy data, accelerating learning (Lillicrap et al., 2016). However, learning Q-functions with Bellman error minimization typically requires a Markovian state space. When learning from observations such as images, the inputs might not be Markovian. Prior methods have proposed to mitigate this issue by using recurrent critics and Q-functions (Hausknecht & Stone, 2017; Oh et al., 2016; Mnih et al., 2016; Heess et al., 2015), and learning Q-functions that depend on entire histories of observations. Heuristics such as concatenation of short observation sequences have also been used (Mnih et al., 2015). However, all of these changes increase the size of the input space, increasing variance, and make the optimization problem more complex. Our method instead learns cumulative advantage functions that depend only on the current state, but can still handle non-Markovian problems.
|
| 22 |
+
|
| 23 |
+
The form of our advantage function update resembles positive temporal difference methods (Peng et al., 2016; van Hasselt & Wiering, 2007). Additionally, our update rule for a modified cumulative Q-function resembles the average Q-function (Anschel et al., 2017) used for variance reduction in Q-learning. In both cases, the theoretical foundations of our method are based on cumulative regret minimization, and the motivation is substantively different. Previous work by Ross et al. (2011); Ross & Bagnell (2014) has connected regret minimization to reinforcement learning, imitation learning, and structured prediction, although not with counterfactual regret minimization. Regression regret matching (Waugh et al., 2015) is based on a closely related idea, which is to directly approximate the regret with a linear regression model, however the use of a linear model is limited in representation compared to deep function approximation.
|
| 24 |
+
|
| 25 |
+
# 3 ADVANTAGE-BASED REGRET MINIMIZATION
|
| 26 |
+
|
| 27 |
+
In this section, we provide background on CFR and $\mathrm { C F R + }$ , describe ARM in detail, and give some intuition for why ARM works.
|
| 28 |
+
|
| 29 |
+
# 3.1 COUNTERFACTUAL REGRET MINIMIZATION (CFR)
|
| 30 |
+
|
| 31 |
+
In this section we review the algorithm of counterfactual regret minimization (Zinkevich et al., 2007). We closely follow the version of CFR as described in the Supplementary Material of Bowling et al. (2015), except that we try to use the notation of reinforcement learning where appropriate.
|
| 32 |
+
|
| 33 |
+
Consider the setting of an extensive game. There are $N$ players numbered $i = 1 , \ldots , N$ . An additional player may be considered a “chance” player to simulate random events. At each time step of the game, one player chooses an action $a \in A _ { i }$ . Define the following concepts and notation:
|
| 34 |
+
|
| 35 |
+
• Sequences: A sequence specifically refers to a sequence of actions starting from an initial game state. (It is assumed that a sequence of actions, including actions of the “chance” player, is sufficient for defining state within the extensive game.) Let $\mathcal { H }$ be the space of all sequences, and let $\mathcal { Z }$ be the space of terminal sequences.
|
| 36 |
+
Information sets: Let $\mathcal { T }$ be the space of information sets; that is, for each $I \in \mathcal { Z }$ , $I$ is a set of sequences $h \in I$ which are indistinguishable to the current player. Information sets are a represention of partial observability.
|
| 37 |
+
Strategies: Let $\pi _ { i } ( a | I )$ be the strategy of the $i$ -th player, where $\pi _ { i } ( a | I )$ is a probability distribution over action $a$ conditioned on information set $I$ . Let $\pi = ( \pi _ { 1 } , \ldots , \pi _ { N } )$ denote
|
| 38 |
+
|
| 39 |
+
the strategy profile for all players, and let $\pi _ { - i } = ( \pi _ { 1 } , \ldots , \pi _ { i - 1 } , \pi _ { i + 1 } , \ldots , \pi _ { N } )$ denote the strategy profile for all players except the $i$ -th player.
|
| 40 |
+
|
| 41 |
+
• Sequence probabilities: Let $\rho ^ { \pi } ( h )$ be the probability of reaching the sequence $h$ when all players follow $\pi$ . Additionally, let $\rho ^ { \pi } ( h , h ^ { \prime } )$ be the probability of reaching $h ^ { \prime }$ conditioned on $h$ having already been reached. Similarly, define $\rho _ { i } ^ { \pi }$ and $\rho _ { - i } ^ { \pi }$ to contain the contributions of respectively only the $i$ -th player or of all players except the $i$ -th.
|
| 42 |
+
|
| 43 |
+
• Values: Let $u _ { i } ( z )$ be the value of a terminal sequence $z$ to the $i$ -th player. Let the expected value of a strategy profile $\pi$ to the $i$ -th player be $\begin{array} { r } { J _ { i } ( \pi ) = \sum _ { z \in Z } \rho ^ { \bar { \pi } } ( z ) u _ { i } ( z ) } \end{array}$ .
|
| 44 |
+
|
| 45 |
+
Define the counterfactual value $Q _ { \pi , i } ^ { \mathrm { C F } }$ of all players following strategy $\pi$ , except the $i$ -th player plays to reach information set and to then take action $a$ :
|
| 46 |
+
|
| 47 |
+
$$
|
| 48 |
+
Q _ { \pi , i } ^ { \mathrm { C F } } ( I , a ) = \sum _ { h \in I } \sum _ { z \in \mathcal { Z } : h \sqsubseteq z } \rho _ { - i } ^ { \pi } ( z ) \rho _ { i } ^ { \pi | I a } ( h , z ) u _ { i } ( z ) .
|
| 49 |
+
$$
|
| 50 |
+
|
| 51 |
+
The notation $h \sqsubset h ^ { \prime }$ denotes that $h$ is a prefix of $h ^ { \prime }$ , while $\pi | I a$ denotes that action $a$ is to be performed when $I$ is observed. The counterfactual value $Q _ { \pi , i } ^ { \mathrm { C F } } ( I , a )$ is a calculation that assumes the $i$ -th player reaches any $h \in I$ , and upon reaching any $h \in I$ it always chooses $a$ .
|
| 52 |
+
|
| 53 |
+
Consider a learning scenario where at the $t$ -th iteration the players follow a strategy profile $\pi ^ { t }$ . The $i$ -th player’s regret after $T$ iterations is defined in terms of the $i$ -th player’s optimal strategy $\pi _ { i } ^ { * }$ :
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
R _ { i } ^ { T } = \sum _ { t = 0 } ^ { T - 1 } J _ { i } ( ( \pi _ { 1 } ^ { t } , \cdot \cdot \cdot , \pi _ { i - 1 } ^ { t } , \pi _ { i } ^ { * } , \pi _ { i + 1 } ^ { t } , \cdot \cdot \cdot , \pi _ { N } ^ { t } ) ) - J _ { i } ( \pi ^ { t } ) .
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
The average regret is the average over learning iterations: $( 1 / T ) R _ { i } ^ { T }$ . Now define the counterfactual regret of the $i$ -th player for taking action $a$ at information set $I$ :
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\begin{array} { r l } & { ( R _ { i } ^ { \mathrm { ( C F ) } } ) ^ { T } ( I , a ) = \displaystyle \sum _ { t = 0 } ^ { T - 1 } \left( Q _ { \pi ^ { t } , i } ^ { \mathrm { C F } } ( I , a ) - \sum _ { a ^ { \prime } \in A } \pi _ { i } ^ { t } ( a ^ { \prime } | I ) Q _ { \pi ^ { t } , i } ^ { \mathrm { C F } } ( I , a ^ { \prime } ) \right) } \\ & { \quad \quad \quad \quad = ( R _ { i } ^ { \mathrm { ( C F ) } } ) ^ { T - 1 } ( I , a ) + Q _ { \pi ^ { T - 1 } , i } ^ { \mathrm { C F } } ( I , a ) - \displaystyle \sum _ { a ^ { \prime } \in A } \pi _ { i } ^ { T - 1 } ( a ^ { \prime } | I ) Q _ { \pi ^ { T - 1 } , i } ^ { \mathrm { C F } } ( I , a ^ { \prime } ) . } \end{array}
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
The counterfactual regret (Equation (3)) can be shown to majorize the regret (Equation (2)) (Theorem 3, Zinkevich et al. (2007)). CFR can then be described as a learning algorithm where the strategy is updated using regret matching (Hart & Mas-Colell, 2000) applied to the counterfactual regret calculated in the most recent iteration:
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\pi _ { i } ^ { T + 1 } ( a | I ) = \left\{ \begin{array} { l l } { \frac { \operatorname* { m a x } ( 0 , ( R _ { i } ^ { \mathrm { ( C F ) } } ) ^ { T + 1 } ( I , a ) ) } { \sum _ { a ^ { \prime } \in A } \operatorname* { m a x } ( 0 , ( R _ { i } ^ { \mathrm { ( C F ) } } ) ^ { T + 1 } ( I , a ^ { \prime } ) ) } } & { \mathrm { i f } \sum _ { a ^ { \prime } \in A } \operatorname* { m a x } ( 0 , ( R _ { i } ^ { \mathrm { ( C F ) } } ) ^ { T + 1 } ( I , a ^ { \prime } ) ) > 0 } \\ { \frac { 1 } { | A | } } & { \mathrm { o t h e r w i s e } . } \end{array} \right.
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
If all players follow the CFR regret matching strategy (Equation (5)), then at the $T$ -th iteration the players’ average regrets are bounded by ${ \cal O } ( T ^ { - 1 / 2 } )$ (Theorem 4, Zinkevich et al. (2007)).
|
| 72 |
+
|
| 73 |
+
# 3.2 $\mathrm { C F R + }$
|
| 74 |
+
|
| 75 |
+
$\mathrm { C F R + }$ (Tammelin, 2014) consists of a modification to CFR, in which instead of calculating the full counterfactual regret as in (4), instead the counterfactual regret is recursively positively clipped to yield the clipped counterfactual regret:
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
( R _ { i } ^ { \mathrm { ( C F + } } ) ^ { T } ( I , a ) = \operatorname* { m a x } ( 0 , ( R _ { i } ^ { \mathrm { ( C F + } } ) ) ^ { T - 1 } ( I , a ) ) + Q _ { \pi ^ { T - 1 } , i } ^ { \mathrm { C F } } ( I , a ) - \sum _ { a ^ { \prime } \in A } \pi _ { i } ^ { T - 1 } ( a ^ { \prime } | I ) Q _ { \pi ^ { T - 1 } , i } ^ { \mathrm { C F } } ( I , a ^ { \prime } ) .
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
Comparing Equation (4) with Equation (6), one can see that the only difference in CFR is that the previous iteration’s counterfactual regret is positively clipped in the recursion. The one-line change of $\mathrm { C F R + }$ turns out to yield a large practical improvement in the performance of the algorithm (Bowling et al., 2015), and there is also an associated regret bound for $\mathrm { C F R + }$ that is as strong as the bound for CFR (Tammelin et al., 2015).
|
| 82 |
+
|
| 83 |
+
# 3.3 FROM CFR AND $\mathrm { C F R + }$ TO ARM
|
| 84 |
+
|
| 85 |
+
CFR and $\mathrm { C F R + }$ are formulated for imperfect information extensive-form games, so they are naturally generalized to partially observed stochastic games since a stochastic game can always be represented in extensive form. A 1-player partially observed stochastic game is simply a POMDP with observation space $\mathcal { O }$ (Littman, 1994). By mapping information sets $I \in \mathcal { T }$ to observations $o \in \mathcal { O }$ e counterfactual value as a kind of statio that assumes the agent follows the policy ary observation-actioexcept on observing value, after $Q _ { \pi , i } ^ { \mathrm { C F } } ( I , a ) \equiv Q _ { \pi | o \mapsto a } ^ { ( \mathrm { s t a t } ) } ( o , a )$ $\pi$ $o$ $a$ $Q _ { \pi | o \mapsto a } ^ { ( \mathrm { s t a t } ) } ( o , a ) \approx Q _ { \pi } ( o , a )$ , where $Q _ { \pi }$ is the usual action value function, is valid when observations are rarely seen more than once in a trajectory. By approximating $Q _ { \pi | o \mapsto a } ^ { ( \mathrm { s t a t } ) } ( o , a ) \approx Q _ { \pi } ( o , a )$ , we get a recurrence in terms of more familiar value functions (compare Equations (6) and (7)):
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
\begin{array} { l } { \bar { A } _ { t } ^ { + } ( o _ { k } , a _ { k } ) = \operatorname* { m a x } ( 0 , \bar { A } _ { t - 1 } ^ { + } ( o _ { k } , a _ { k } ) ) + Q _ { \pi _ { t } } ( o _ { k } , a _ { k } ) - { \displaystyle \sum _ { a ^ { \prime } \in \mathcal { A } } } \pi _ { t } ( a ^ { \prime } | o _ { k } ) Q _ { \pi _ { t } } ( o _ { k } , a ^ { \prime } ) } \\ { = \operatorname* { m a x } ( 0 , \bar { A } _ { t - 1 } ^ { + } ( o _ { k } , a _ { k } ) ) + Q _ { \pi _ { t } } ( o _ { k } , a _ { k } ) - V _ { \pi _ { t } } ( o _ { k } ) } \\ { = \operatorname* { m a x } ( 0 , \bar { A } _ { t - 1 } ^ { + } ( o _ { k } , a _ { k } ) ) + A _ { \pi _ { t } } ( o _ { k } , a _ { k } ) } \end{array}
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
where $\bar { A } _ { t } ^ { + } ( o , a )$ is the cumulative clipped advantage function, and $A _ { \pi _ { t } } ( o , a )$ is the ordinary advantage function evaluated at policy $\pi _ { t }$ . Advantage-based regret minimization (ARM) is the resulting reinforcement learning algorithm that updates the policy to regret match on the cumulative clipped advantage function:
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
\pi _ { t + 1 } ( a _ { k } | o _ { k } ) = \left\{ \begin{array} { l l } { \frac { \operatorname* { m a x } ( 0 , \bar { A } _ { t } ^ { + } ( o _ { k } , a _ { k } ) ) } { \sum _ { a ^ { \prime } \in A } \operatorname* { m a x } ( 0 , \bar { A } _ { t } ^ { + } ( o _ { k } , a ^ { \prime } ) ) } } & { \mathrm { i f ~ } \sum _ { a ^ { \prime } \in A } \operatorname* { m a x } ( 0 , \bar { A } _ { t } ^ { + } ( o _ { k } , a ^ { \prime } ) ) > 0 } \\ { \frac { 1 } { | \bar { A } | } } & { \mathrm { o t h e r w i s e } . } \end{array} \right.
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
Equations (9) and (10) suggest the outline of a batch-mode deep reinforcement learning algorithm. At the $t$ -th sampling iteration, a batch of data is collected by sampling trajectories using the current policy $\pi _ { t }$ , followed by two processing steps: (a) fit $\bar { A } _ { t } ^ { + }$ using Equation (9), then (b) set the next iteration’s policy $\pi _ { t + 1 }$ using Equation (10).
|
| 98 |
+
|
| 99 |
+
# 3.4 IMPLEMENTATION OF ARM
|
| 100 |
+
|
| 101 |
+
To implement Equation (9) with deep function approximation, we define two value function approximations, $V _ { \pi _ { t } } \left( o _ { k } ; \theta _ { t } \right)$ and $\bar { Q } _ { t } ^ { + } ( o _ { k } , a _ { k } ; \omega _ { t } )$ , as well as a target value function $V ^ { \prime } ( o _ { k } ; \varphi )$ , where $\theta _ { t } , \omega _ { t }$ , and $\varphi$ are the learnable parameters. The cumulative clipped advantage function is represented as $\bar { A } _ { t } ^ { + } ( \dot { o } _ { k } , a _ { k } ) = \bar { Q } _ { t } ^ { + } ( o _ { k } , \dot { a _ { k } } ; \omega _ { t } ) - V _ { \pi _ { t } } ( o _ { k } ; \theta _ { t } )$ . Within each sampling iteration, the value functions are fitted using stochastic gradient descent by sampling minibatches and performing gradient steps. The state-value function $V _ { \pi _ { t } } ( o _ { k } ; \theta _ { t } )$ is fit to minimize an $n$ -step temporal difference loss with a moving target $V ^ { \prime } ( o _ { k + n } ; \varphi )$ , essentially using the estimator of the deep deterministic policy gradient (DDPG) (Lillicrap et al., 2016). In the same minibatch, $\bar { Q } _ { t } ^ { + } ( o _ { k } , a _ { k } ; \theta _ { t } )$ is fit to a similar loss, but with an additional target reward bonus that incorporates the previous iteration’s cumulative clipped advantage, $\operatorname* { m a x } ( 0 , \bar { A } _ { t - 1 } ^ { \mp } ( o _ { k } , a _ { k } ) )$ . The regression targets $v ( o _ { k } ; \varphi )$ and $\bar { q } ^ { + } ( o _ { k } , a _ { k } ; \varphi )$ are defined in terms of the $n$ -step returns $\begin{array} { r } { g _ { k } ^ { n } = \sum _ { k ^ { \prime } = k } ^ { k + n - 1 } \gamma ^ { k ^ { \prime } - k } r _ { k ^ { \prime } } } \end{array}$
|
| 102 |
+
|
| 103 |
+
$$
|
| 104 |
+
\begin{array} { r l } & { \qquad v ( o _ { k } ; \varphi ) \triangleq g _ { k } ^ { n } + \gamma ^ { n } V ^ { \prime } ( o _ { k + n } ; \varphi ) } \\ & { \qquad q ( o _ { k } , a _ { k } ; \varphi ) \triangleq r _ { k } + \gamma g _ { k + 1 } ^ { n - 1 } + \gamma ^ { n } V ^ { \prime } ( o _ { k + n } ; \varphi ) } \\ & { \qquad q ^ { + } ( o _ { k } , a _ { k } ; \varphi ) \triangleq \operatorname* { m a x } ( 0 , \bar { Q } _ { t - 1 } ^ { + } ( o _ { k } , a _ { k } ; \omega _ { t - 1 } ) - V _ { \pi _ { t - 1 } } ( o _ { k } ; \theta _ { t - 1 } ) ) + q ( o _ { k } , a _ { k } ; \varphi ) . } \end{array}
|
| 105 |
+
$$
|
| 106 |
+
|
| 107 |
+
Altogether, each minibatch step of the optimization subproblem consists of the following three parameter updates in terms of the regression targets $v ( o _ { k } ; \varphi )$ and $\bar { q } ^ { + } ( o _ { k } , a _ { k } ; \varphi )$ :
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
\begin{array} { r l } & { \theta _ { t } ^ { ( \ell + 1 ) } \theta _ { t } ^ { ( \ell ) } - \frac { \alpha } { 2 } \nabla _ { \theta _ { t } ^ { ( \ell ) } } ( V _ { \pi _ { t } } ( o _ { k } ; \theta _ { t } ^ { ( \ell ) } ) - v ( o _ { k } ; \varphi ^ { ( \ell ) } ) ) ^ { 2 } } \\ & { \omega _ { t } ^ { ( \ell + 1 ) } \omega _ { t } ^ { ( \ell ) } - \frac { \alpha } { 2 } \nabla _ { \omega _ { t } ^ { ( \ell ) } } ( \bar { Q } _ { t } ^ { + } ( o _ { k } , a _ { k } ; \omega _ { t } ^ { ( \ell ) } ) - \bar { q } ^ { + } ( o _ { k } , a _ { k } ; \varphi ^ { ( \ell ) } ) ) ^ { 2 } } \\ & { \varphi ^ { ( \ell + 1 ) } \varphi ^ { ( \ell ) } + \tau ( \theta _ { t } ^ { ( \ell + 1 ) } - \varphi ^ { ( \ell ) } ) . } \end{array}
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
Algorithm 1 Advantage-based regret minimization (ARM).
|
| 114 |
+
|
| 115 |
+
<table><tr><td>initialize πo ←uniform,θ-1,ω-1 ←arbitrary for tin O,...do collect batch of trajectory data Dt ~ t initialize0t←0t-1,Wt←Wt-1,←0t-1 forlinO,...do sample transitions (Ok,ak,rk,.::, Ok+n-1,ak+n-1,rk+n-1,Ok+n) ~ Dt</td></tr><tr><td>calculate n-step returns g = ∑k=k k+n-1 k'-krk' set δk+n ← I[ok+n is terminal] if t=O then set k←0</td></tr><tr><td>else setΦk ←max(0,Qt-1(Ok,ak; Wt-1) -Vπt-1(Ok;0t-1)) end if</td></tr><tr><td>set v(ok) ←gκ+γn(1-δk+n)V'(0k+n;φ) update 0t with step size α and targets v(ok) (Equation (14))</td></tr><tr><td>update Wt with step size α and targets q+(Ok, ak) (Equation (15)) update with moving average step size T (Equation (16)) end for set πt+1(alo) x max(0,Qt(o,a; wt)-Vπt(o;0t))</td></tr></table>
|
| 116 |
+
|
| 117 |
+
The overall advantage-based regret minimization algorithm is summarized in Algorithm 1.
|
| 118 |
+
|
| 119 |
+
We note that the mechanics of the ARM updates are similar to on-policy value function estimation, but ARM learns a modified on-policy Q-function from transitions with the added reward bonus $\operatorname* { m a x } ( 0 , \bar { A } _ { t - 1 } ^ { + } ( o _ { k } , a _ { k } ) )$ (Equation (13)). This reward bonus can be thought of a kind of “optimism in the face of uncertainty.”
|
| 120 |
+
|
| 121 |
+
# 3.5 ARM VS. EXISTING POLICY GRADIENT METHODS
|
| 122 |
+
|
| 123 |
+
In this section, we accentuate that ARM represents an inherently different update compared to existing policy gradient methods.
|
| 124 |
+
|
| 125 |
+
Recent work has shown that policy gradient methods and Q-learning methods are connected via entropy regularization (O’Donoghue et al., 2017; Haarnoja et al., 2017; Nachum et al., 2017; Schulman et al., 2017; Anonymous, 2018). One perspective is from the soft policy iteration framework for batch-mode reinforcement learning (Anonymous, 2018), where at each batch iteration the updated policy is obtained by minimizing the average KL-divergence between the policy class $\Pi$ and a target policy $f$ . Below is the soft policy iteration update, where the subscript $t$ refers to the batch iteration:
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
\begin{array} { r l } & { \pi _ { t + 1 } \gets \arg \underset { \pi \in \Pi } { \operatorname* { m i n } } \mathbb { E } _ { o \sim \rho _ { t } } [ D _ { \mathrm { K L } } ( \pi \| f ) ] } \\ & { \qquad = \arg \underset { \pi \in \Pi } { \operatorname* { m i n } } \mathbb { E } _ { o \sim \rho _ { t } } [ \mathbb { E } _ { a \sim \pi ( \cdot | o ) } [ \log ( \pi ( a | o ) ) - \log ( f ( a | o ) ) ] ] . } \end{array}
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
Using the connection between policy gradient methods and Q-learning, we define the policy gradient target policy as the softmax distribution on the entropy regularized advantage function Aβ-soft:
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
f ^ { \mathrm { P G } } ( a | o ) \triangleq \frac { \exp ( \beta A _ { t } ^ { \beta \mathrm { - s o f t } } ( o , a ) ) } { \sum _ { a ^ { \prime } \in \mathcal { A } } \exp ( \beta A _ { t } ^ { \beta \mathrm { - s o f t } } ( o , a ^ { \prime } ) ) } .
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+
We note that it is more conventional in the literature to use the soft Q-function $Q ^ { \beta - \mathrm { s o f t } } ( o , a )$ rather than the soft advantage function $A ^ { \beta - \mathrm { s o f t } } ( o , a )$ , however since they differ only by a function of $o$ then they both induce the same target softmax policy. Now, parameterizing the policy $\pi$ in terms of an explicit parameter $\theta$ , we obtain the expression for the existing policy gradient, where $b ( o )$ is a baseline function:
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
\Delta \theta ^ { \mathrm { P G } } \propto \mathbb { E } _ { o \sim \rho _ { t } } [ \mathbb { E } _ { a \sim \pi ( \cdot | a ; \theta ) } [ \nabla _ { \theta } \log ( \pi ( o | a ; \theta ) ) ( ( 1 / \beta ) \log ( \pi ( o | a ; \theta ) ) - A _ { t } ^ { \beta \sim \mathrm { o f f } } ( o , a ) + b ( o ) ) ] ] .
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+
The classic policy gradient arises in the limit $\beta \to \infty$ .
|
| 144 |
+
|
| 145 |
+
Note that an alternative choice of target policy $f$ will lead to a different kind of policy gradient update. A policy gradient algorithm based on ARM instead proposes the following target policy based on the regret-matching distribution:
|
| 146 |
+
|
| 147 |
+
$$
|
| 148 |
+
f ^ { \mathrm { A R M } } ( a | o ) \triangleq \frac { \operatorname* { m a x } ( 0 , \bar { A } _ { t } ^ { + } ( o , a ) ) } { \sum _ { a ^ { \prime } \in \mathcal { A } } \operatorname* { m a x } ( 0 , \bar { A } _ { t } ^ { + } ( o , a ^ { \prime } ) ) } .
|
| 149 |
+
$$
|
| 150 |
+
|
| 151 |
+
Similarly, we can express the ARM-like policy gradient, where again $b ( o )$ is a baseline:
|
| 152 |
+
|
| 153 |
+
$$
|
| 154 |
+
\begin{array} { r } { \mathtt { D } \theta ^ { \mathrm { A R M } } = \mathbb { E } _ { o \sim \rho _ { \mathrm { f } } } [ \mathbb { E } _ { a \sim \pi ( \cdot | \sigma ; \theta ) } [ \nabla _ { \theta } \log ( \pi ( o | a ; \theta ) ) ( \log ( \pi ( o | a ; \theta ) ) - \log ( \operatorname* { m a x } ( 0 , \bar { A } _ { t } ^ { + } ( o , a ) ) ) + b ( o ) ) ] ] . } \end{array}
|
| 155 |
+
$$
|
| 156 |
+
|
| 157 |
+
Comparing Equations (20) and (22), we see that the ARM-like policy gradient (Equation (22)) has a logarithmic dependence on the advantage-like function $\bar { A } ^ { + }$ , whereas the existing policy gradient (Equation (20)) is only linearly dependent on the advantage function $A ^ { \beta - \mathrm { s o f t } }$ . This difference in logarithmic vs. linear dependence is responsible for a large part of the inherent distinction of ARM from existing policy gradient methods. One consequence of the difference in logarithmic vs. linear dependence is that the ARM-like update should be less sensitive to large positive advantages that may result from overestimation compared to existing policy gradient methods.
|
| 158 |
+
|
| 159 |
+
We also see that for the existing policy gradient (Equation (20)), the $( 1 / \beta ) \log ( \pi ( a | o ; \theta ) )$ term, which is derived from the policy entropy, is vanishing for large $\beta$ (e.g. $\beta = 1 0 0$ is a common choice in practice). On the other hand, for the ARM-like policy gradient (Equation (22)), there is no similar vanishing effect, suggesting that ARM may perform a kind of entropy regularization by default.
|
| 160 |
+
|
| 161 |
+
In practice we cannot implement an ARM-like policy gradient exactly as in Equation (22), as due to the positive clipping $\operatorname* { m a x } ( 0 , { \bar { A } } ^ { + } )$ there can appear $\log ( 0 )$ . However we believe this is not an intrinsic obstacle, leaving the issue of implementing an ARM-like policy gradient to future work.
|
| 162 |
+
|
| 163 |
+
# 3.6 WHY DOES ARM WORK BETTER IN PARTIALLY OBSERVABLE DOMAINS?
|
| 164 |
+
|
| 165 |
+
In the previous Section 3.5, we showed that ARM and existing policy gradient methods can be distinguished by their choices of target policy and the nature of their dependence on their respective advantage-like functions. In this section, we argue that the convergence results of CFR and $\mathrm { C F R + }$ suggest that ARM, to the degree that it inherits the properties of $\mathrm { C F R / C F R + }$ , ought to benefit from greater partial observability compared to other methods.
|
| 166 |
+
|
| 167 |
+
We assume that regret bounds are a useful way to compare the convergence of different RL algorithms, due to the interpretation of regret as “area over the learning curve (and under the optimal√ expected value $J ^ { * }$ ).” Specifically, the regret bound of CFR and $\mathrm { C F R + }$ is $O ( | O | \sqrt { T } )$ where $| \mathcal { O } |$ is the size of the observation space (Zinkevich et al., 2007; Tammelin et al., 2015). The policy gradient method with a suitable baseline has a learning rate $\eta$ -dependent regret bound derived from the stochastic gradient method; assuming parameter norm bound $B$ and gradient estimator second moments $G ^ { 2 }$ , by setting the learning rate $\eta \propto T ^ { - 1 / 2 }$ policy gradient achieves a regret bound of $O ( \sqrt { T } )$ with no explicit dependence on the observation space size $| \mathcal { O } |$ (Dick, 2015).
|
| 168 |
+
|
| 169 |
+
We argue that possessing a regret bound proportional to the observation space size $| \mathcal { O } |$ is beneficial in highly partially observable domains. Let us fix an underlying state space $s$ . Compare two RL algorithms, where algorithm 1 (which is ARM-like) has a regret bound $c _ { 1 } | \mathcal { O } | \sqrt { T }$ , whereas algorithm 2 (which is policy gradient-like) has a regret bound $c _ { 2 } \sqrt { T }$ ; here, $c _ { 1 }$ and $c _ { 2 }$ are constants. Note that if $c _ { 1 } | \mathcal { O } | = c _ { 2 }$ or equivalently $| \mathcal { O } | = c _ { 2 } / c _ { 1 }$ , then the two RL algorithms possess the exact same regret bound. If on the other hand $\left| \mathcal { O } \right| < c _ { 2 } / c _ { 1 }$ , then the regret bound of RL algorithm 1 is actually lower than that of RL algorithm 2. Applying this intuition to CFR and hence ARM suggests that ARM can benefit from greater partial observability if the degree of partial observability is above a threshold.
|
| 170 |
+
|
| 171 |
+
For Q-learning per se, we are not aware of any known regret bound. Szepesvari proved that the ´ convergence rate of Q-learning in the $L ^ { \infty }$ -norm, assuming a fixed exploration strategy, depends on a condition number $C$ , which is the ratio of the minimum to maximum state-action occupation frequencies (Szepesvari, 1998), and which describes how “balanced” the exploration strategy is. If ´ partial observability leads to imbalanced exploration due to confounding of states from perceptual aliasing (McCallum, 1997), then Q-learning should be negatively affected.
|
| 172 |
+
|
| 173 |
+
We note that there remains a gap between ARM as implemented and the theory of CFR: the use of (a) function approximation and sampling over tabular enumeration; (b) the “ordinary” Q-function instead of the “stationary” Q-function; and (c) $n$ -step bootstrapped values instead of full returns for value function estimation. Waugh et al. (2015) address CFR with function approximation via a noisy version of a generalized Blackwell’s condition (Cesa-Bianchi & Lugosi, 2003). Even the original implementation of CFR used sampling in place of enumeration (Zinkevich et al., 2007). We refer the reader to Bellemare et al. (2016) for a more in-depth discussion of the stationary Q-function. Although only the full returns are guaranteed to be unbiased in non-Markovian settings, it is quite common for practical RL algorithms to trade off strict unbiasedness in favor of lower variance by using $n$ -step returns or variations thereof (Schulman et al., 2016; Gu et al., 2017).
|
| 174 |
+
|
| 175 |
+
# 4 EXPERIMENTS
|
| 176 |
+
|
| 177 |
+
Because we hypothesize that ARM should perform well in partially observable reinforcement learning environments, we conduct our experiments on visual domains that naturally provide partial observations of state. All of our evaluations use feedforward convnets with frame-history observations. We are interested in comparing ARM with methods that assume Markovian observations, namely double deep Q-learning (van Hasselt et al., 2016), as well as methods that can handle non-Markovian observations, primarily TRPO (Schulman et al., 2015; 2016), and to a lesser extent A3C (Mnih et al., 2016) whose critic assumes Markovian observations. We are also interested in controlling for the advantage structure of ARM by comparing with other advantage-structured methods, which include dueling networks (Wang et al., 2016), as well as policy gradient methods that estimate an empirical advantage using a baseline state-value function or critic (e.g. TRPO, A3C).
|
| 178 |
+
|
| 179 |
+
# 4.1 LEARNING TO PLAY PONG WITH A SINGLE FRAME
|
| 180 |
+
|
| 181 |
+
Atari games consist of a small set of moving sprites with fixed shapes and palettes, and the motion of sprites can be highly deterministic, so that with only 4 recently observed frames as input one can predict hundreds of frames into the future on some games using only a feedforward model (Oh et al., 2015). To increase the partial observability of Atari games, one may artificially limit the amount of frame history fed as input to the networks (Hausknecht & Stone, 2017). As a proof of concept of ARM, we trained agents to play Pong via the Arcade Learning Environment (Bellemare et al., 2013) when the frame-history length is varied between 4 (the default) and 1. We found that the performance of double deep Q-learning degraded noticeably when the frame-history length was reduced from 4 to 1, whereas performance of ARM was not affected nearly as much. Our results on Pong are summarized in Figure 1.
|
| 182 |
+
|
| 183 |
+

|
| 184 |
+
Figure 1: Comparing double deep Q-learning (orange) and ARM (blue) on Pong.
|
| 185 |
+
|
| 186 |
+
# 4.2 LEARNING TO NAVIGATE IN VIZDOOM
|
| 187 |
+
|
| 188 |
+
We evaluated ARM on the task of learning first-person navigation in the ViZDoom (Kempka et al., 2016) domain based on the game of Doom. Doom is a substantially more complex domain than Atari, featuring an egocentric viewpoint, 3D perspective, and complex visuals. We expect that Doom exhibits a substantial degree of partial observability and therefore serves as a more difficult evaluation of reinforcement learning algorithms’ effectiveness on partially observable domains. We performed our evaluation on two standard ViZDoom navigation benchmarks, “HealthGathering”
|
| 189 |
+
|
| 190 |
+
and “MyWayHome.” In “HealthGathering,” the agent is placed in a toxic room and continually loses life points, but can navigate toward healthkit objects to prolong its life; the goal is to survive for as long as possible. In “MyWayHome,” the agent is randomly placed in a small maze and must find a target object that has a fixed visual appearance and is in a fixed location in the maze; the goal is to reach the target object before time runs out. Figure 2 (top row) shows example observations from the two ViZDoom scenarios.
|
| 191 |
+
|
| 192 |
+
Unlike previous evaluations which augmented the raw pixel frames with extra information about the game state, e.g. elapsed time ticks or remaining health (Kempka et al., 2016; Dosovitskiy & Koltun, 2017), in our evaluation we forced all networks to learn using only visual input. Despite this restriction, ARM is still able to quickly learn policies with minimal tuning of hyperparameters and reach close to the maximum score in under 1 million steps. On “HealthGathering,” we observed that ARM very quickly learns a policy that can achieve close to the maximum episode return of 2100. Double deep Q-learning learns a more consistent policy on “HealthGathering” compared to ARM and TRPO, but we believe this to be the result of evaluating double DQN’s $\epsilon$ -greedy policy with small $\epsilon$ compared to the truly stochastic policies learned by ARM and TRPO. On “MyWayHome,” we observed that ARM generally learned a well-performing policy more quickly than other methods. Additionally, we found that ARM is able to take advantage of an off-policy replay memory when learning on ViZDoom by storing the trajectories of previous sampling batches and applying an importance sampling correction to the $n$ -step returns; please see Section 6.2 in the Appendix for details. Our Doom results are in Figure 6.
|
| 193 |
+
|
| 194 |
+

|
| 195 |
+
Figure 2: Top row: Doom screenshots from (left) “HealthGathering” and (right) “MyWayHome.” Bottom row: Minecraft screenshots from (leftmost) “L1” through (rightmost) “L5”
|
| 196 |
+
|
| 197 |
+

|
| 198 |
+
Figure 3: Evaluating double deep Q-learning (orange), dueling double DQN (red), A3C (purple), TRPO (green), ARM (blue), and ARM with off-policy data (cyan) on two ViZDoom scenarios.
|
| 199 |
+
|
| 200 |
+
# 4.3 LEARNING TO NAVIGATE IN MINECRAFT
|
| 201 |
+
|
| 202 |
+
We finally evaluated ARM on the task of learning first-person navigation in the Malmo domain ¨ based on the game of Minecraft (Johnson et al., 2016). Minecraft has similar visual complexity to Doom and should possess a comparable degree of partial observability, but Minecraft has the potential to be more difficult than Doom due to the diversity of possible Minecraft environments that can be generated. Our evaluation on Minecraft is adapted from the teacher-student curriculum learning protocol (Matiisen et al., 2017), which consists of 5 consecutive “levels” that successively increase the difficulty of completing the simple task of reaching a target block: the first level (“L1”) consists of a single room; the intermediate levels (“L2”–“L4”) consist of a corridor with lava-bridge and wall-gap obstacles; and the final level (“L5”) consists of a $2 \times 2$ arrangement of rooms randomly separated by lava-bridge or wall-gap obstacles. Figure 2 (bottom row) shows example observations from the five Minecraft levels.
|
| 203 |
+
|
| 204 |
+
We performed our Minecraft experiments using fixed curriculum learning schedules to evaluate the sample efficiency of different algorithms: the agent is initially placed in the first level (“L1”), and the agent is advanced to the next level whenever a preselected number of simulator steps have elapsed, until the agent reaches the last level (“L5”). We found that ARM and dueling double DQN both were able to learn on an aggressive “fast” schedule of only 62500 simulator steps between levels. TRPO required a “slow” schedule of 93750 simulator steps between levels to reliably learn. ARM was able to consistently learn a well performing policy on all of the levels, whereas double DQN learned more slowly on some of the intermediate levels. ARM also more consistently reached a high score on the final, most difficult level (“L5”). Our Minecraft results are shown in Figure 4.
|
| 205 |
+
|
| 206 |
+

|
| 207 |
+
Figure 4: Evaluating double deep Q-learning (orange), dueling double DQN (red), TRPO (green), and ARM (blue) on a Minecraft curriculum learning protocol. The simulator step counts at which each level begins are labeled and demarcated with dashed vertical lines.
|
| 208 |
+
|
| 209 |
+
# 5 DISCUSSION
|
| 210 |
+
|
| 211 |
+
In this paper, we presented a novel deep reinforcement learning algorithm based on counterfactual regret minimization (CFR). We call our method advantage-based regret minimization (ARM). Similarly to prior methods that learn state or state-action value functions, our method learns a cumulative clipped advantage function of observation and action. However, in contrast to these prior methods, ARM is well suited to partially observed or non-Markovian environments, making it an appealing choice in a number of difficult domains. When compared to baseline methods, including deep Q-learning and TRPO, on non-Markovian tasks such as the challenging ViZDoom and Malmo first- ¨ person navigation benchmarks, ARM achieves substantially better results. This illustrates the value of ARM for partially observable problems. In future work, we plan to further explore applications of ARM to more complex tasks, including continuous action spaces.
|
| 212 |
+
|
| 213 |
+
# REFERENCES
|
| 214 |
+
|
| 215 |
+
Anonymous. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. International Conference on Learning Representations, 2018. URL https: //openreview.net/forum?id=HJjvxl-Cb.
|
| 216 |
+
|
| 217 |
+
Oron Anschel, Nir Baram, and Nahum Shimkin. Averaged-DQN: Variance Reduction and Stabilization for Deep Reinforcement Learning. In International Conference on Machine Learning, pp. 176–185, 2017.
|
| 218 |
+
|
| 219 |
+
Marc G. Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The Arcade Learning Environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47:253–279, 2013.
|
| 220 |
+
|
| 221 |
+
Mark G. Bellemare, Georg Ostrovski, Arthur Guez, Philip S. Thomas, and Remi Munos. Increasing ´ the Action Gap: New Operators for Reinforcement Learning. In AAAI, 2016.
|
| 222 |
+
|
| 223 |
+
Michael Bowling, Neil Burch, Michael Johanson, and Oskari Tammelin. Heads-up limit hold’em poker is solved. Science, 347(6218):145–149, 2015.
|
| 224 |
+
|
| 225 |
+
Nicolo Cesa-Bianchi and G \` abor Lugosi. Potential-Based Algorithms in On-Line Prediction and ´ Game Theory. Machine Learning, 51(3):239–261, 2003.
|
| 226 |
+
|
| 227 |
+
Travis Dick. Policy Gradient Reinforcement Learning Without Regret. Master’s thesis, University of Alberta, 2015.
|
| 228 |
+
|
| 229 |
+
Alexey Dosovitskiy and Vladlen Koltun. Learning to Act by Predicting the Future. arXiv preprint arXiv:1611.01779v2, 2017.
|
| 230 |
+
|
| 231 |
+
Jakob N. Foerster, Yannis M. Assael, Nando de Freitas, and Shimon Whiteson. Learning to Communicate with Deep Multi-Agent Reinforcement Learning. In Advances in Neural Information Processing Systems 29, 2016.
|
| 232 |
+
|
| 233 |
+
Shixiang Gu, Timothy Lillicrap, Zoubin Ghahramani, Richard E. Turner, Bernhard Scholkopf, and ¨ Sergey Levine. Interpolated Policy Gradient: Merging On-Policy and Off-Policy Gradient Estimation for Deep Reinforcement Learning. arXiv preprint arXiv:1706.00387v1, 2017.
|
| 234 |
+
|
| 235 |
+
Tuomas Haarnoja, Haoran Tang, Pieter Abbeel, and Sergey Levine. Reinforcement Learning with Deep Energy-Based Policies. arXiv preprint arXiv:1702.08165v2, 2017.
|
| 236 |
+
|
| 237 |
+
Sergiu Hart and Andreu Mas-Colell. A Simple Adaptive Procedure Leading to Correlated Equilibrium. Econometrica, 68(5):1127–1150, 2000.
|
| 238 |
+
|
| 239 |
+
Matthew Hausknecht and Peter Stone. Deep Recurrent Q-Learning for Partially Observable MDPs. arXiv preprint arXiv:1507.06527v4, 2017.
|
| 240 |
+
|
| 241 |
+
Nicolas Heess, Jonathan J. Hunt, Timothy P. Lillicrap, and David Silver. Memory-based control with recurrent neural networks. arXiv preprint arXiv:1512.04455v1, 2015.
|
| 242 |
+
|
| 243 |
+
Edward L Ionides. Truncated Importance Sampling. Journal of Computational and Graphical Statistics, 17(2):295–311, 2008.
|
| 244 |
+
|
| 245 |
+
Matthew Johnson, Katja Hofmann, Tim Hutton, and David Bignell. The Malmo Platform for Artificial Intelligence Experimentation. In Proceedings of the 25th International Joint Conference on Artificial Intelligence, 2016.
|
| 246 |
+
|
| 247 |
+
Michal Kempka, Marek Wydmuch, Grzegorz Runc, Jakub Toczek, and Wojciech Jaskowski. ViZ- ´ Doom: A Doom-based AI Research Platform for Visual Reinforcement Learning. arXiv preprint arXiv:1605.02097v2, 2016.
|
| 248 |
+
|
| 249 |
+
Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel. End-to-end training of deep visuomotor policies. The Journal of Machine Learning Research, 17(1):1334–1373, 2016.
|
| 250 |
+
|
| 251 |
+
Timothy P. Lillicrap, Jonathan J. Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971v5, 2016.
|
| 252 |
+
|
| 253 |
+
Michael L. Littman. Markov games as a framework for multi-agent reinforcement learning. In Proceedings of the 11th International Conference on Machine Learning, pp. 157–163, 1994.
|
| 254 |
+
|
| 255 |
+
Tambet Matiisen, Avital Oliver, Taco Cohen, and John Schulman. Teacher-Student Curriculum Learning. arXiv preprint arXiv:1707.00183v1, 2017.
|
| 256 |
+
|
| 257 |
+
Andrew Kachites McCallum. Efficient Exploration in Reinforcement Learning with Hidden State. In AAAI Fall Symposium on Model-directed Autonomous Systems, 1997.
|
| 258 |
+
|
| 259 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing Atari with Deep Reinforcement Learning. arXiv preprint arXiv:1312.5602v1, 2013.
|
| 260 |
+
|
| 261 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin Riedmiller, Andreas K. Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015.
|
| 262 |
+
|
| 263 |
+
Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In International Conference on Machine Learning, pp. 1928–1937, 2016.
|
| 264 |
+
|
| 265 |
+
Ofir Nachum, Mohammad Norouzi, Kelvin Xu, and Dale Schuurmans. Bridging the Gap Between Value and Policy Based Reinforcement Learning. In 31st Conference on Neural Information Processing Systems, 2017.
|
| 266 |
+
|
| 267 |
+
Brendan O’Donoghue, Remi Munos, Koray Kavukcuoglu, and Volodymyr Mnih. Combining policy ´ gradient and Q-learning. arXiv preprint arXiv:1611.01626v3, 2017.
|
| 268 |
+
|
| 269 |
+
Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard L Lewis, and Satinder Singh. Action-Conditional Video Prediction using Deep Networks in Atari Games. In Advances in Neural Information Processing Systems, pp. 2863–2871, 2015.
|
| 270 |
+
|
| 271 |
+
Junhyuk Oh, Valliappa Chockalingam, Satinder Singh, and Honglak Lee. Control of memory, active perception, and action in minecraft. In Proceedings of The 33rd International Conference on Machine Learning, pp. 2790–2799, 2016.
|
| 272 |
+
|
| 273 |
+
Xue Bin Peng, Glen Berseth, and Michiel van de Penne. Terrain-Adaptive Locomotion Skills Using Deep Reinforcement Learning. ACM Transactions on Graphics, 35(4):81, 2016.
|
| 274 |
+
|
| 275 |
+
Stephane Ross and J. Andrew Bagnell. Reinforcement and Imitation Learning via Interactive No-´ Regret Learning. arXiv preprint arXiv:1406.5979v1, 2014.
|
| 276 |
+
|
| 277 |
+
Stephane Ross, Geoffrey J. Gordon, and J. Andrew Bagnell. A Reduction of Imitation Learning and ´ Structured Prediction to No-Regret Online Learning. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, pp. 627–635, 2011.
|
| 278 |
+
|
| 279 |
+
John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In Proceedings of the 32nd International Conference on Machine Learning (ICML-15), pp. 1889–1897, 2015.
|
| 280 |
+
|
| 281 |
+
John Schulman, Philipp Moritz, Sergey Levine, Michael I. Jordan, and Pieter Abbeel. HighDimensional Continuous Control Using Generalized Advantage Estimation. arXiv preprint arXiv:1506.02438v5, 2016.
|
| 282 |
+
|
| 283 |
+
John Schulman, Xi Chen, and Pieter Abbeel. Equivalence Between Policy Gradients and Soft QLearning. arXiv preprint arXiv:1704.06440v1, 2017.
|
| 284 |
+
|
| 285 |
+
Csaba Szepesvari. The Asymptotic Convergence-Rate of Q-learning. In ´ Advances in Neural Information Processing Systems, pp. 1064–1070, 1998.
|
| 286 |
+
|
| 287 |
+
Oskari Tammelin. Solving Large Imperfect Information Games Using $\mathrm { C F R + }$ . arXiv preprint arXiv:1407.5042v1, 2014.
|
| 288 |
+
|
| 289 |
+
Oskari Tammelin, Neil Burch, Michael Johanson, and Michael Bowling. Solving Heads-up Limit Texas Hold’em. In Proceedings of the 24th International Joint Conference on Artificial Intelligence, 2015.
|
| 290 |
+
|
| 291 |
+
Hado van Hasselt and Marco A. Wiering. Reinforcement Learning in Continuous Action Spaces. In Proceedings of the 2007 IEEE Symposium on Approximate Dynamic Programming and Reinforcement Learning, pp. 272–279, 2007.
|
| 292 |
+
|
| 293 |
+
Hado van Hasselt, Arthur Guez, and David Silver. Deep Reinforcement Learning and Double QLearning. In Proceedings of the Thirtieth AAAI Conference on Artificial Intelligence, 2016.
|
| 294 |
+
|
| 295 |
+
Ziyu Wang, Tom Schaul, Matteo Hessel, Hado van Hasselt, Marc Lanctot, and Nando de Freitas. Dueling Network Architectures for Deep Reinforcement Learning. In Proceedings of the $3 3 r d$ International Conference on Machine Learning, pp. 1995–2003, 2016.
|
| 296 |
+
|
| 297 |
+
Ziyu Wang, Victor Bapst, Nicolas Heess, Volodymyr Mnih, Remi Munos, Koray Kavukcuoglu, and Nando de Freitas. Sample Efficient Actor-Critic with Experience Replay. arXiv preprint arXiv:1611.01224v2, 2017.
|
| 298 |
+
|
| 299 |
+
Kevin Waugh, Dustin Morrill, J. Andrew Bagnell, and Michael Bowling. Solving Games with Functional Regret Estimation. In Workshops at the Twenty-Ninth AAAI Conference on Artificial Intelligence, 2015. Supplementary material in arXiv preprint arXiv:1411.7974v2.
|
| 300 |
+
|
| 301 |
+
Martin Zinkevich, Michael Johanson, Michael H. Bowling, and Carmelo Piccione. Regret Minimization in Games with Incomplete Information. In Advances in Neural Information Processing Systems 20, pp. 1729–1736, 2007.
|
| 302 |
+
|
| 303 |
+
# 6 APPENDIX
|
| 304 |
+
|
| 305 |
+
# 6.1 EXPERIMENTAL DETAILS
|
| 306 |
+
|
| 307 |
+
# 6.1.1 PONG (ARCADE LEARNING ENVIRONMENT)
|
| 308 |
+
|
| 309 |
+
We use the preprocessing and convolutional network model of (Mnih et al., 2013). Specifically, we view every 4th emulator frame, convert the raw frames to grayscale, and perform downsampling to generate a single observed frame. The input observation of the convnet is a concatenation of the most recent frames (either 4 frames or 1 frame). The convnet consists of an $8 \times 8$ convolution with stride 4 and 16 filters followed by ReLU, a $4 \times 4$ convolution with stride 2 and 32 filters followed by ReLU, a linear map with 256 filters followed by ReLU, and a linear map with $| { \cal A } |$ filters where $| { \cal A } |$ is the action space cardinality $\lvert \lvert A \rvert = 6$ for Pong).
|
| 310 |
+
|
| 311 |
+
We used Adam with a constant learning rate of $\alpha = 1 0 ^ { - 4 }$ , a minibatch size of 32, and the moment decay rates set to their defaults $\beta _ { 1 } = 0 . 9$ and $\beta _ { 2 } = 0 . 9 9 9$ . Our results on each method are averaged across 3 random seeds.
|
| 312 |
+
|
| 313 |
+
We ran ARM with the hyperparameters: sampling batch size of 12500, 4000/3000 minibatches of Adam for the first/subsequent sampling iterations respectively, and target update step size $\tau = 0 . 0 1$ . Double DQN uses the tuned hyperparameters (van Hasselt et al., 2016). Note that our choice of ARM hyperparameters yields an equivalent number of minibatch gradient updates per sample as used by DQN and double DQN, i.e. 1 minibatch gradient update per 4 simulator steps.
|
| 314 |
+
|
| 315 |
+
# 6.1.2 DOOM (VIZDOOM)
|
| 316 |
+
|
| 317 |
+
We used a convolutional network architecture similar to those of (Kempka et al., 2016) and (Dosovitskiy & Koltun, 2017). The Doom screen was rendered at a resolution of $1 6 0 \times 1 2 0$ and downsized to $8 4 \times 8 4$ . Only every 4th frame was rendered, and the input observation to the convnet is a concatenation of the last 4 rendered RGB frames for a total of 12 input channels. The convnet contains 3 convolutions with 32 filters each: the first is size $8 \times 8$ with stride 4, the second is size $4 \times 4$ with stride 2, and the third is size $3 \times 3$ with stride 1. The final convolution is followed by a linear map with 1024 filters. A second linear map yields the output. Hidden activations are gated by ReLUs.
|
| 318 |
+
|
| 319 |
+
For “HealthGathering” only, we scaled rewards by a factor of 0.01. We did not scale rewards for “MyWayHome.” We used Adam with a constant learning rate of $\alpha = 1 0 ^ { - 5 }$ and a minibatch size of 32 to train all networks (except TRPO). For “HealthGathering” we set $\beta _ { 1 } = 0 . 9 5$ , whereas for “MyWayHome” we set $\beta _ { 1 } = 0 . 9$ . We set $\beta _ { 2 } = 0 . 9 9 9$ for both scenarios. Our results on each method are averaged across 3 random seeds.
|
| 320 |
+
|
| 321 |
+
Double DQN and dueling double DQN: $n = 5$ step returns; update interval 30000; 1 minibatch gradient update per 4 simulator steps; replay memory uniform initialization size 50000; replay memory maximum size 240000; exploration period 240000; with final exploration rate $\epsilon = 0 . 0 1$ .
|
| 322 |
+
|
| 323 |
+
A3C: 16 workers; $n = 2 0$ steps for “HealthGathering” and $n = 4 0$ steps for “MyWayHome”;
|
| 324 |
+
negentropy regularization $\beta = 0 . 0 1$ ; and gradient norm clip 5.
|
| 325 |
+
|
| 326 |
+
TRPO: sampling batch size 12500; KL-divergence step size $\delta = 0 . 0 1$ ; 10 conjugate gradient iterations; and Fisher information/Gauss-Newton damping coefficient $\lambda = 0 . 1$ .
|
| 327 |
+
|
| 328 |
+
ARM: $n = 5$ step returns; sampling batch size 12500; 4000 Adam minibatches in the first sampling iteration, 3000 Adam minibatches in all subsequent sampling iterations; target update step size $\tau = 0 . 0 1$ . Again, our choice of ARM hyperparameters yields an equivalent number of minibatch gradient updates per sample as used by DQN and double DQN. For “HealthGathering” only, because ARM converges so quickly we annealed the Adam learning rate to $\alpha = 2 . 5 \times 1 0 ^ { - 6 }$ after 500000 elapsed simulator steps.
|
| 329 |
+
|
| 330 |
+
Off-policy ARM: $n = 5$ step returns; sampling batch size 1563, replay cache sample size 25000; 400 Adam minibatches per sampling iteration; target update step size $\tau = 0 . 0 1$ ; and importance sampling weight clip $c = 1$ .
|
| 331 |
+
|
| 332 |
+
# 6.1.3 MINECRAFT (MALMO¨ )
|
| 333 |
+
|
| 334 |
+
Our Minecraft tasks generally were the same as the ones used by Matiisen et al. (2017), with a few differences. Instead of using a continuous action space, we used a discrete action space with 4 move and turn actions. To aid learning on the last level (“L5”), we removed the reward penalty upon episode timeout and we increased the timeout on “L5” from 45 seconds to 75 seconds due to the larger size of the environment. We scaled rewards for all levels by 0.001.
|
| 335 |
+
|
| 336 |
+
We use the same convolutional network architecture for Minecraft as we used for ViZDoom in Section 4.2. The Minecraft screen was rendered at a resolution of $3 2 0 \times 2 4 0$ and downsized to $8 4 \times$ 84. Only every 5th frame was rendered, and the input observation of the convnet is a concatenation of the last 4 rendered RGB frames for a total of 12 input channels. We used Adam with constant learning rate $\alpha = 1 0 ^ { - 5 }$ , moment decay rates $\beta _ { 1 } = 0 . 9$ and $\beta _ { 2 } = 0 . 9 9 9$ , and minibatch size 32 to train all networks (except TRPO). Our results on each method are averaged across 5 random seeds.
|
| 337 |
+
|
| 338 |
+
Double DQN and dueling double DQN: $n = 5$ step returns; update interval 12500; 1 minibatch gradient update per 4 simulator steps; replay memory uniform initialization size 12500; replay memory maximum size 62500; exploration period 62500; with final exploration rate $\epsilon = 0 . 0 1$ .
|
| 339 |
+
|
| 340 |
+
TRPO: sampling batch size 6250; KL-divergence step size $\delta = 0 . 0 1$ ; 10 conjugate gradient iterations; and Fisher information/Gauss-Newton damping coefficient $\lambda = 0 . 1$ .
|
| 341 |
+
|
| 342 |
+
ARM: $n = 5$ step returns; sampling batch size 12500; 4000 Adam minibatches in the first sampling iteration, 3000 Adam minibatches in all subsequent sampling iterations; target update step size $\tau = 0 . 0 1$ .
|
| 343 |
+
|
| 344 |
+
# 6.2 OFF-POLICY ARM VIA IMPORTANCE SAMPLING
|
| 345 |
+
|
| 346 |
+
Our current approach to running ARM with off-policy data consists of applying an importance sampling correction directly to the $n$ -step returns. Given the behavior policy $\mu$ under which the data was sampled, the current policy $\pi _ { t }$ under which we want to perform estimation, and an importance sampling weight clip $c$ for variance reduction, the corrected $n$ -step return we use is:
|
| 347 |
+
|
| 348 |
+
$$
|
| 349 |
+
g _ { k } ^ { n } ( \mu \| \pi _ { t } ) = \sum _ { k ^ { \prime } = k } ^ { k + n - 1 } \gamma ^ { k ^ { \prime } - k } \left( \prod _ { \ell = k } ^ { k ^ { \prime } } w _ { \mu \| \pi _ { t } } ( a _ { \ell } | o _ { \ell } ) \right) r _ { k ^ { \prime } }
|
| 350 |
+
$$
|
| 351 |
+
|
| 352 |
+
where the truncated importance weight $\scriptstyle w _ { \mu \parallel \pi _ { t } } ( a | o )$ is defined (Ionides, 2008):
|
| 353 |
+
|
| 354 |
+
$$
|
| 355 |
+
w _ { \boldsymbol { \mu } \parallel \pi _ { t } } ( a | o ) = \operatorname* { m i n } \left( c , \frac { \pi _ { t } ( a | o ) } { \mu ( a | o ) } \right) .
|
| 356 |
+
$$
|
| 357 |
+
|
| 358 |
+
Our choice of $c = 1$ in our experiments was inspired by Wang et al. (2017). We found that $c = 1$ worked well but note other choices for $c$ may also be reasonable.
|
| 359 |
+
|
| 360 |
+
When applying our importance sampling correction, we preserve all details of the ARM algorithm except for two aspects: the transition sampling strategy (a finite memory of previous batches are cached and uniformly sampled) and the regression targets for learning the value functions. Specifically, the regression targets $v ( o _ { k } ; \varphi )$ , $q ( o _ { k } , a _ { k } ; \varphi )$ , and $\bar { q } ^ { + } ( o _ { k } , a _ { k } ; \bar { \varphi } )$ (Equations (11)–(13)) are modified to the following:
|
| 361 |
+
|
| 362 |
+
$$
|
| 363 |
+
\begin{array} { r l } & { \quad v _ { \mu \parallel \pi _ { t } } ( o _ { k } ; \varphi ) = g _ { k } ^ { n } ( \mu \| \pi _ { t } ) + \gamma ^ { n } V ^ { \prime } ( o _ { k + n } ; \varphi ) } \\ & { \quad q _ { \mu \parallel \pi _ { t } } ( o _ { k } , a _ { k } ; \varphi ) = r _ { k } + \gamma w _ { \mu \parallel \pi _ { t } } ( a _ { k } | o _ { k } ) g _ { k + 1 } ^ { n - 1 } ( \mu \| \pi _ { t } ) + \gamma ^ { n } V ^ { \prime } ( o _ { k + n } ; \varphi ) } \\ & { \quad \bar { q } _ { \mu \parallel \pi _ { t } } ^ { + } ( o _ { k } , a _ { k } ; \varphi ) = \operatorname* { m a x } ( 0 , \bar { Q } _ { t - 1 } ^ { + } ( o _ { k } , a _ { k } ; \omega _ { t - 1 } ) - V _ { \pi _ { t - 1 } } ( o _ { k } ; \theta _ { t - 1 } ) ) + q _ { \mu \parallel \pi _ { t } } ( o _ { k } , a _ { k } ; \varphi ) . } \end{array}
|
| 364 |
+
$$
|
| 365 |
+
|
| 366 |
+
Note that the target value function $V ^ { \prime } ( o _ { k + n } ; \varphi )$ does not require an importance sampling correction because $V ^ { \prime }$ already approximates the on-policy value function $V _ { \pi _ { t } } \big ( o _ { k + n } ; \theta _ { t } \big )$ .
|
| 367 |
+
|
| 368 |
+
# 6.3 ADDITIONAL EXPERIMENTS
|
| 369 |
+
|
| 370 |
+
# 6.3.1 ATARI 2600 GAMES
|
| 371 |
+
|
| 372 |
+
Although our primary interest is in partially observable reinforcement learning domains, we also want to check that ARM works in nearly fully observable and Markovian environments, such as
|
| 373 |
+
|
| 374 |
+
Atari 2600 games. We consider two baselines: double deep Q-learning, and double deep fitted Qiteration which is a batch counterpart to double DQN. We find that double deep Q-learning is a strong baseline for learning to play Atari games, although ARM still successfully learns interesting policies. One major benefit of Q-learning-based methods is the ability to utilize a large off-policy replay memory. Our results on a suite of Atari games are in Figure 5.
|
| 375 |
+
|
| 376 |
+

|
| 377 |
+
Figure 5: Comparing double deep Q-learning (orange), double deep fitted Q-iteration (red), and ARM (blue) on a suite of seven Atari games from the Arcade Learning Environment. For each method, we plot the mean across 3 trials along with standard error bars.
|
| 378 |
+
|
| 379 |
+
# 6.3.2 RECURRENCE IN DOOM MYWAYHOME
|
| 380 |
+
|
| 381 |
+
We evaluated the effect of recurrent policy and value function estimation in the maze-like MyWayHome scenario of ViZDoom. We found that recurrence has a small positive effect on the convergence of A2C (Mnih et al., 2016), but was much less significant than the choice of algorithm. Our hyperparameters were similar to those described for A3C in Section 6.1.2, except we used a learning rate $\mathrm { \dot { 1 } 0 ^ { - 4 } }$ and gradient norm clip 0.5. For the recurrent policy and value function, we replaced the first fully connected operation with an LSTM featuring an equivalent number of hidden units (1024).
|
| 382 |
+
|
| 383 |
+

|
| 384 |
+
Figure 6: Comparing A2C with a feedforward convolutional network (blue) and a recurrent convolutional-LSTM network (orange) on the ViZDoom scenario MyWayHome.
|
parse/train/BkCV_W-AZ/BkCV_W-AZ_content_list.json
ADDED
|
@@ -0,0 +1,1972 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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onymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Deep reinforcement learning algorithms that estimate state and state-action value functions have been shown to be effective in a variety of challenging domains, including learning control strategies from raw image pixels. However, algorithms that estimate state and state-action value functions typically assume a fully observed state and must compensate for partial or non-Markovian observations by using finite-length frame-history observations or recurrent networks. In this work, we propose a new deep reinforcement learning algorithm based on counterfactual regret minimization that iteratively updates an approximation to a cumulative clipped advantage function and is robust to partially observed state. We demonstrate that on several partially observed reinforcement learning tasks, this new class of algorithms can substantially outperform strong baseline methods: on Pong with single-frame observations, and on the challenging Doom (ViZDoom) and Minecraft (Malmo) first-person navigation benchmarks. ¨ ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
268,
|
| 43 |
+
764,
|
| 44 |
+
449
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
479,
|
| 55 |
+
336,
|
| 56 |
+
496
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Many reinforcement learning problems of practical interest have the property of partial observability, where observations of state are generally non-Markovian. Despite the importance of partial observation in the real world, value function-based methods such as Q-learning (Mnih et al., 2013; 2015) generally assume a Markovian observation space. On the other hand, Monte Carlo policy gradient methods do not assume Markovian observations, but many practical policy gradient methods such as A3C (Mnih et al., 2016) introduce the Markov assumption when using a critic or state-dependent baseline in order to improve sample efficiency. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
513,
|
| 66 |
+
825,
|
| 67 |
+
609
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Consider deep reinforcement learning methods that learn a state or state-action value function. One common workaround for the problem of partial observation is to learn value functions on the space of finite-length frame-history observations, under the assumption that frame-histories of sufficient length will give the environment the approximate appearance of full observability. When learning to play Atari 2600 games from images, deep Q-learning algorithms (Mnih et al., 2013; 2015) concatenate the last 4 observed frames of the video screen buffer as input to a state-action value convolutional network. Not all non-Markovian tasks are amenable to finite-length frame-histories; recurrent value functions can incorporate longer and potentially infinite histories (Hausknecht & Stone, 2017; Foerster et al., 2016), but at the cost of solving a harder optimization problem. Can we develop methods that learn a variant of the value function that is more robust to partial observability? ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
617,
|
| 77 |
+
825,
|
| 78 |
+
756
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Our contribution is a new model-free deep reinforcement learning algorithm based on the principle of regret minimization which does not require access to a Markovian state. Our method learns a policy by estimating a cumulative clipped advantage function, which is an approximation to a type of regret that is central to two partial information game-solving algorithms from which we draw our primary inspiration: counterfactual regret minimization (CFR) (Zinkevich et al., 2007) and $\\mathrm { C F R + }$ (Tammelin, 2014). Hence we call our algorithm “advantage-based regret minimization” (ARM). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
763,
|
| 88 |
+
823,
|
| 89 |
+
847
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "We evaluate our approach on three visual reinforcement learning domains: Pong with varying framehistory lengths (Bellemare et al., 2013), and the first-person games Doom (Kempka et al., 2016) and Minecraft (Johnson et al., 2016). Doom and Minecraft exhibit a first-person viewpoint in a 3- dimensional environment and should appear non-Markovian even with frame-history observations. We find that our method offers substantial improvement over prior methods in these partially observable environments: on both Doom and Minecraft, our method can learn well-performing policies within about 1 million simulator steps using only visual input frame-history observations. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
854,
|
| 99 |
+
823,
|
| 100 |
+
924
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "",
|
| 107 |
+
"bbox": [
|
| 108 |
+
173,
|
| 109 |
+
103,
|
| 110 |
+
823,
|
| 111 |
+
132
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "2 RELATED WORK ",
|
| 118 |
+
"text_level": 1,
|
| 119 |
+
"bbox": [
|
| 120 |
+
176,
|
| 121 |
+
151,
|
| 122 |
+
344,
|
| 123 |
+
167
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "Deep reinforcement learning algorithms have been demonstrated to achieve excellent results on a range of complex tasks, including playing games (Mnih et al., 2015; Oh et al., 2016) and continuous control (Schulman et al., 2015; Lillicrap et al., 2016; Levine et al., 2016). Prior deep reinforcement learning algorithms either learn state or state-action value functions (Mnih et al., 2013), learn policies using policy gradients (Schulman et al., 2015), or perform a combination of the two using actor-critic architectures (Mnih et al., 2016). Policy gradient methods typically do not need to assume a Markovian state, but tend to suffer from poor sample complexity, due to their inability to use off-policy data. Methods based on learning Q-functions can use replay buffers to include off-policy data, accelerating learning (Lillicrap et al., 2016). However, learning Q-functions with Bellman error minimization typically requires a Markovian state space. When learning from observations such as images, the inputs might not be Markovian. Prior methods have proposed to mitigate this issue by using recurrent critics and Q-functions (Hausknecht & Stone, 2017; Oh et al., 2016; Mnih et al., 2016; Heess et al., 2015), and learning Q-functions that depend on entire histories of observations. Heuristics such as concatenation of short observation sequences have also been used (Mnih et al., 2015). However, all of these changes increase the size of the input space, increasing variance, and make the optimization problem more complex. Our method instead learns cumulative advantage functions that depend only on the current state, but can still handle non-Markovian problems. ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
174,
|
| 132 |
+
184,
|
| 133 |
+
825,
|
| 134 |
+
419
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "The form of our advantage function update resembles positive temporal difference methods (Peng et al., 2016; van Hasselt & Wiering, 2007). Additionally, our update rule for a modified cumulative Q-function resembles the average Q-function (Anschel et al., 2017) used for variance reduction in Q-learning. In both cases, the theoretical foundations of our method are based on cumulative regret minimization, and the motivation is substantively different. Previous work by Ross et al. (2011); Ross & Bagnell (2014) has connected regret minimization to reinforcement learning, imitation learning, and structured prediction, although not with counterfactual regret minimization. Regression regret matching (Waugh et al., 2015) is based on a closely related idea, which is to directly approximate the regret with a linear regression model, however the use of a linear model is limited in representation compared to deep function approximation. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
426,
|
| 144 |
+
825,
|
| 145 |
+
565
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "3 ADVANTAGE-BASED REGRET MINIMIZATION ",
|
| 152 |
+
"text_level": 1,
|
| 153 |
+
"bbox": [
|
| 154 |
+
174,
|
| 155 |
+
584,
|
| 156 |
+
578,
|
| 157 |
+
601
|
| 158 |
+
],
|
| 159 |
+
"page_idx": 1
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"type": "text",
|
| 163 |
+
"text": "In this section, we provide background on CFR and $\\mathrm { C F R + }$ , describe ARM in detail, and give some intuition for why ARM works. ",
|
| 164 |
+
"bbox": [
|
| 165 |
+
173,
|
| 166 |
+
616,
|
| 167 |
+
823,
|
| 168 |
+
643
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 1
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "3.1 COUNTERFACTUAL REGRET MINIMIZATION (CFR) ",
|
| 175 |
+
"text_level": 1,
|
| 176 |
+
"bbox": [
|
| 177 |
+
173,
|
| 178 |
+
660,
|
| 179 |
+
563,
|
| 180 |
+
675
|
| 181 |
+
],
|
| 182 |
+
"page_idx": 1
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"type": "text",
|
| 186 |
+
"text": "In this section we review the algorithm of counterfactual regret minimization (Zinkevich et al., 2007). We closely follow the version of CFR as described in the Supplementary Material of Bowling et al. (2015), except that we try to use the notation of reinforcement learning where appropriate. ",
|
| 187 |
+
"bbox": [
|
| 188 |
+
174,
|
| 189 |
+
686,
|
| 190 |
+
825,
|
| 191 |
+
728
|
| 192 |
+
],
|
| 193 |
+
"page_idx": 1
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"type": "text",
|
| 197 |
+
"text": "Consider the setting of an extensive game. There are $N$ players numbered $i = 1 , \\ldots , N$ . An additional player may be considered a “chance” player to simulate random events. At each time step of the game, one player chooses an action $a \\in A _ { i }$ . Define the following concepts and notation: ",
|
| 198 |
+
"bbox": [
|
| 199 |
+
176,
|
| 200 |
+
736,
|
| 201 |
+
825,
|
| 202 |
+
779
|
| 203 |
+
],
|
| 204 |
+
"page_idx": 1
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"type": "text",
|
| 208 |
+
"text": "• Sequences: A sequence specifically refers to a sequence of actions starting from an initial game state. (It is assumed that a sequence of actions, including actions of the “chance” player, is sufficient for defining state within the extensive game.) Let $\\mathcal { H }$ be the space of all sequences, and let $\\mathcal { Z }$ be the space of terminal sequences. \nInformation sets: Let $\\mathcal { T }$ be the space of information sets; that is, for each $I \\in \\mathcal { Z }$ , $I$ is a set of sequences $h \\in I$ which are indistinguishable to the current player. Information sets are a represention of partial observability. \nStrategies: Let $\\pi _ { i } ( a | I )$ be the strategy of the $i$ -th player, where $\\pi _ { i } ( a | I )$ is a probability distribution over action $a$ conditioned on information set $I$ . Let $\\pi = ( \\pi _ { 1 } , \\ldots , \\pi _ { N } )$ denote ",
|
| 209 |
+
"bbox": [
|
| 210 |
+
215,
|
| 211 |
+
790,
|
| 212 |
+
825,
|
| 213 |
+
924
|
| 214 |
+
],
|
| 215 |
+
"page_idx": 1
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "text",
|
| 219 |
+
"text": "the strategy profile for all players, and let $\\pi _ { - i } = ( \\pi _ { 1 } , \\ldots , \\pi _ { i - 1 } , \\pi _ { i + 1 } , \\ldots , \\pi _ { N } )$ denote the strategy profile for all players except the $i$ -th player. ",
|
| 220 |
+
"bbox": [
|
| 221 |
+
225,
|
| 222 |
+
103,
|
| 223 |
+
823,
|
| 224 |
+
132
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 2
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "text",
|
| 230 |
+
"text": "• Sequence probabilities: Let $\\rho ^ { \\pi } ( h )$ be the probability of reaching the sequence $h$ when all players follow $\\pi$ . Additionally, let $\\rho ^ { \\pi } ( h , h ^ { \\prime } )$ be the probability of reaching $h ^ { \\prime }$ conditioned on $h$ having already been reached. Similarly, define $\\rho _ { i } ^ { \\pi }$ and $\\rho _ { - i } ^ { \\pi }$ to contain the contributions of respectively only the $i$ -th player or of all players except the $i$ -th. ",
|
| 231 |
+
"bbox": [
|
| 232 |
+
217,
|
| 233 |
+
136,
|
| 234 |
+
825,
|
| 235 |
+
193
|
| 236 |
+
],
|
| 237 |
+
"page_idx": 2
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"type": "text",
|
| 241 |
+
"text": "• Values: Let $u _ { i } ( z )$ be the value of a terminal sequence $z$ to the $i$ -th player. Let the expected value of a strategy profile $\\pi$ to the $i$ -th player be $\\begin{array} { r } { J _ { i } ( \\pi ) = \\sum _ { z \\in Z } \\rho ^ { \\bar { \\pi } } ( z ) u _ { i } ( z ) } \\end{array}$ . ",
|
| 242 |
+
"bbox": [
|
| 243 |
+
217,
|
| 244 |
+
195,
|
| 245 |
+
825,
|
| 246 |
+
227
|
| 247 |
+
],
|
| 248 |
+
"page_idx": 2
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"type": "text",
|
| 252 |
+
"text": "Define the counterfactual value $Q _ { \\pi , i } ^ { \\mathrm { C F } }$ of all players following strategy $\\pi$ , except the $i$ -th player plays to reach information set and to then take action $a$ : ",
|
| 253 |
+
"bbox": [
|
| 254 |
+
174,
|
| 255 |
+
237,
|
| 256 |
+
821,
|
| 257 |
+
266
|
| 258 |
+
],
|
| 259 |
+
"page_idx": 2
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"type": "equation",
|
| 263 |
+
"img_path": "images/88abbee838cbafa4b7110d39b93b3ddf80870cdaa7356cd25e48d9a60b43cbd4.jpg",
|
| 264 |
+
"text": "$$\nQ _ { \\pi , i } ^ { \\mathrm { C F } } ( I , a ) = \\sum _ { h \\in I } \\sum _ { z \\in \\mathcal { Z } : h \\sqsubseteq z } \\rho _ { - i } ^ { \\pi } ( z ) \\rho _ { i } ^ { \\pi | I a } ( h , z ) u _ { i } ( z ) .\n$$",
|
| 265 |
+
"text_format": "latex",
|
| 266 |
+
"bbox": [
|
| 267 |
+
325,
|
| 268 |
+
268,
|
| 269 |
+
673,
|
| 270 |
+
304
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 2
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "text",
|
| 276 |
+
"text": "The notation $h \\sqsubset h ^ { \\prime }$ denotes that $h$ is a prefix of $h ^ { \\prime }$ , while $\\pi | I a$ denotes that action $a$ is to be performed when $I$ is observed. The counterfactual value $Q _ { \\pi , i } ^ { \\mathrm { C F } } ( I , a )$ is a calculation that assumes the $i$ -th player reaches any $h \\in I$ , and upon reaching any $h \\in I$ it always chooses $a$ . ",
|
| 277 |
+
"bbox": [
|
| 278 |
+
174,
|
| 279 |
+
309,
|
| 280 |
+
826,
|
| 281 |
+
353
|
| 282 |
+
],
|
| 283 |
+
"page_idx": 2
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"type": "text",
|
| 287 |
+
"text": "Consider a learning scenario where at the $t$ -th iteration the players follow a strategy profile $\\pi ^ { t }$ . The $i$ -th player’s regret after $T$ iterations is defined in terms of the $i$ -th player’s optimal strategy $\\pi _ { i } ^ { * }$ : ",
|
| 288 |
+
"bbox": [
|
| 289 |
+
173,
|
| 290 |
+
359,
|
| 291 |
+
823,
|
| 292 |
+
388
|
| 293 |
+
],
|
| 294 |
+
"page_idx": 2
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"type": "equation",
|
| 298 |
+
"img_path": "images/98e1fee090244906b394537eb68957dfa7e5b12c9e0331f246f0bcdd7fc2be40.jpg",
|
| 299 |
+
"text": "$$\nR _ { i } ^ { T } = \\sum _ { t = 0 } ^ { T - 1 } J _ { i } ( ( \\pi _ { 1 } ^ { t } , \\cdot \\cdot \\cdot , \\pi _ { i - 1 } ^ { t } , \\pi _ { i } ^ { * } , \\pi _ { i + 1 } ^ { t } , \\cdot \\cdot \\cdot , \\pi _ { N } ^ { t } ) ) - J _ { i } ( \\pi ^ { t } ) .\n$$",
|
| 300 |
+
"text_format": "latex",
|
| 301 |
+
"bbox": [
|
| 302 |
+
303,
|
| 303 |
+
393,
|
| 304 |
+
694,
|
| 305 |
+
438
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 2
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "text",
|
| 311 |
+
"text": "The average regret is the average over learning iterations: $( 1 / T ) R _ { i } ^ { T }$ . Now define the counterfactual regret of the $i$ -th player for taking action $a$ at information set $I$ : ",
|
| 312 |
+
"bbox": [
|
| 313 |
+
174,
|
| 314 |
+
444,
|
| 315 |
+
821,
|
| 316 |
+
473
|
| 317 |
+
],
|
| 318 |
+
"page_idx": 2
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "equation",
|
| 322 |
+
"img_path": "images/266c4eee562ba8164965686fbd7ea075f7e24b13e6703afd7bdd82eb7caba22e.jpg",
|
| 323 |
+
"text": "$$\n\\begin{array} { r l } & { ( R _ { i } ^ { \\mathrm { ( C F ) } } ) ^ { T } ( I , a ) = \\displaystyle \\sum _ { t = 0 } ^ { T - 1 } \\left( Q _ { \\pi ^ { t } , i } ^ { \\mathrm { C F } } ( I , a ) - \\sum _ { a ^ { \\prime } \\in A } \\pi _ { i } ^ { t } ( a ^ { \\prime } | I ) Q _ { \\pi ^ { t } , i } ^ { \\mathrm { C F } } ( I , a ^ { \\prime } ) \\right) } \\\\ & { \\quad \\quad \\quad \\quad = ( R _ { i } ^ { \\mathrm { ( C F ) } } ) ^ { T - 1 } ( I , a ) + Q _ { \\pi ^ { T - 1 } , i } ^ { \\mathrm { C F } } ( I , a ) - \\displaystyle \\sum _ { a ^ { \\prime } \\in A } \\pi _ { i } ^ { T - 1 } ( a ^ { \\prime } | I ) Q _ { \\pi ^ { T - 1 } , i } ^ { \\mathrm { C F } } ( I , a ^ { \\prime } ) . } \\end{array}\n$$",
|
| 324 |
+
"text_format": "latex",
|
| 325 |
+
"bbox": [
|
| 326 |
+
214,
|
| 327 |
+
479,
|
| 328 |
+
784,
|
| 329 |
+
559
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 2
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "The counterfactual regret (Equation (3)) can be shown to majorize the regret (Equation (2)) (Theorem 3, Zinkevich et al. (2007)). CFR can then be described as a learning algorithm where the strategy is updated using regret matching (Hart & Mas-Colell, 2000) applied to the counterfactual regret calculated in the most recent iteration: ",
|
| 336 |
+
"bbox": [
|
| 337 |
+
176,
|
| 338 |
+
563,
|
| 339 |
+
825,
|
| 340 |
+
618
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 2
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "equation",
|
| 346 |
+
"img_path": "images/3cae9e16be414bec467d7401c5feceb58bf64a20f6d65b50ee507711ec236601.jpg",
|
| 347 |
+
"text": "$$\n\\pi _ { i } ^ { T + 1 } ( a | I ) = \\left\\{ \\begin{array} { l l } { \\frac { \\operatorname* { m a x } ( 0 , ( R _ { i } ^ { \\mathrm { ( C F ) } } ) ^ { T + 1 } ( I , a ) ) } { \\sum _ { a ^ { \\prime } \\in A } \\operatorname* { m a x } ( 0 , ( R _ { i } ^ { \\mathrm { ( C F ) } } ) ^ { T + 1 } ( I , a ^ { \\prime } ) ) } } & { \\mathrm { i f } \\sum _ { a ^ { \\prime } \\in A } \\operatorname* { m a x } ( 0 , ( R _ { i } ^ { \\mathrm { ( C F ) } } ) ^ { T + 1 } ( I , a ^ { \\prime } ) ) > 0 } \\\\ { \\frac { 1 } { | A | } } & { \\mathrm { o t h e r w i s e } . } \\end{array} \\right.\n$$",
|
| 348 |
+
"text_format": "latex",
|
| 349 |
+
"bbox": [
|
| 350 |
+
196,
|
| 351 |
+
625,
|
| 352 |
+
781,
|
| 353 |
+
674
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 2
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"text": "If all players follow the CFR regret matching strategy (Equation (5)), then at the $T$ -th iteration the players’ average regrets are bounded by ${ \\cal O } ( T ^ { - 1 / 2 } )$ (Theorem 4, Zinkevich et al. (2007)). ",
|
| 360 |
+
"bbox": [
|
| 361 |
+
171,
|
| 362 |
+
679,
|
| 363 |
+
825,
|
| 364 |
+
710
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 2
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "3.2 $\\mathrm { C F R + }$ ",
|
| 371 |
+
"text_level": 1,
|
| 372 |
+
"bbox": [
|
| 373 |
+
174,
|
| 374 |
+
726,
|
| 375 |
+
258,
|
| 376 |
+
739
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 2
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "text",
|
| 382 |
+
"text": "$\\mathrm { C F R + }$ (Tammelin, 2014) consists of a modification to CFR, in which instead of calculating the full counterfactual regret as in (4), instead the counterfactual regret is recursively positively clipped to yield the clipped counterfactual regret: ",
|
| 383 |
+
"bbox": [
|
| 384 |
+
173,
|
| 385 |
+
751,
|
| 386 |
+
825,
|
| 387 |
+
794
|
| 388 |
+
],
|
| 389 |
+
"page_idx": 2
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"type": "equation",
|
| 393 |
+
"img_path": "images/91e78d1e40a3505e02e4d5b3d603ae18acd740eafde0079349ca0df45fbfab1f.jpg",
|
| 394 |
+
"text": "$$\n( R _ { i } ^ { \\mathrm { ( C F + } } ) ^ { T } ( I , a ) = \\operatorname* { m a x } ( 0 , ( R _ { i } ^ { \\mathrm { ( C F + } } ) ) ^ { T - 1 } ( I , a ) ) + Q _ { \\pi ^ { T - 1 } , i } ^ { \\mathrm { C F } } ( I , a ) - \\sum _ { a ^ { \\prime } \\in A } \\pi _ { i } ^ { T - 1 } ( a ^ { \\prime } | I ) Q _ { \\pi ^ { T - 1 } , i } ^ { \\mathrm { C F } } ( I , a ^ { \\prime } ) .\n$$",
|
| 395 |
+
"text_format": "latex",
|
| 396 |
+
"bbox": [
|
| 397 |
+
181,
|
| 398 |
+
799,
|
| 399 |
+
820,
|
| 400 |
+
833
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 2
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "text",
|
| 406 |
+
"text": "Comparing Equation (4) with Equation (6), one can see that the only difference in CFR is that the previous iteration’s counterfactual regret is positively clipped in the recursion. The one-line change of $\\mathrm { C F R + }$ turns out to yield a large practical improvement in the performance of the algorithm (Bowling et al., 2015), and there is also an associated regret bound for $\\mathrm { C F R + }$ that is as strong as the bound for CFR (Tammelin et al., 2015). ",
|
| 407 |
+
"bbox": [
|
| 408 |
+
173,
|
| 409 |
+
853,
|
| 410 |
+
825,
|
| 411 |
+
924
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 2
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "text",
|
| 417 |
+
"text": "3.3 FROM CFR AND $\\mathrm { C F R + }$ TO ARM ",
|
| 418 |
+
"text_level": 1,
|
| 419 |
+
"bbox": [
|
| 420 |
+
176,
|
| 421 |
+
103,
|
| 422 |
+
442,
|
| 423 |
+
117
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 3
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "CFR and $\\mathrm { C F R + }$ are formulated for imperfect information extensive-form games, so they are naturally generalized to partially observed stochastic games since a stochastic game can always be represented in extensive form. A 1-player partially observed stochastic game is simply a POMDP with observation space $\\mathcal { O }$ (Littman, 1994). By mapping information sets $I \\in \\mathcal { T }$ to observations $o \\in \\mathcal { O }$ e counterfactual value as a kind of statio that assumes the agent follows the policy ary observation-actioexcept on observing value, after $Q _ { \\pi , i } ^ { \\mathrm { C F } } ( I , a ) \\equiv Q _ { \\pi | o \\mapsto a } ^ { ( \\mathrm { s t a t } ) } ( o , a )$ $\\pi$ $o$ $a$ $Q _ { \\pi | o \\mapsto a } ^ { ( \\mathrm { s t a t } ) } ( o , a ) \\approx Q _ { \\pi } ( o , a )$ , where $Q _ { \\pi }$ is the usual action value function, is valid when observations are rarely seen more than once in a trajectory. By approximating $Q _ { \\pi | o \\mapsto a } ^ { ( \\mathrm { s t a t } ) } ( o , a ) \\approx Q _ { \\pi } ( o , a )$ , we get a recurrence in terms of more familiar value functions (compare Equations (6) and (7)): ",
|
| 430 |
+
"bbox": [
|
| 431 |
+
173,
|
| 432 |
+
128,
|
| 433 |
+
825,
|
| 434 |
+
284
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 3
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "equation",
|
| 440 |
+
"img_path": "images/e29127386e43d87b927f420a09d485b4512f37e9eb1083e88ac4d1c208ac5541.jpg",
|
| 441 |
+
"text": "$$\n\\begin{array} { l } { \\bar { A } _ { t } ^ { + } ( o _ { k } , a _ { k } ) = \\operatorname* { m a x } ( 0 , \\bar { A } _ { t - 1 } ^ { + } ( o _ { k } , a _ { k } ) ) + Q _ { \\pi _ { t } } ( o _ { k } , a _ { k } ) - { \\displaystyle \\sum _ { a ^ { \\prime } \\in \\mathcal { A } } } \\pi _ { t } ( a ^ { \\prime } | o _ { k } ) Q _ { \\pi _ { t } } ( o _ { k } , a ^ { \\prime } ) } \\\\ { = \\operatorname* { m a x } ( 0 , \\bar { A } _ { t - 1 } ^ { + } ( o _ { k } , a _ { k } ) ) + Q _ { \\pi _ { t } } ( o _ { k } , a _ { k } ) - V _ { \\pi _ { t } } ( o _ { k } ) } \\\\ { = \\operatorname* { m a x } ( 0 , \\bar { A } _ { t - 1 } ^ { + } ( o _ { k } , a _ { k } ) ) + A _ { \\pi _ { t } } ( o _ { k } , a _ { k } ) } \\end{array}\n$$",
|
| 442 |
+
"text_format": "latex",
|
| 443 |
+
"bbox": [
|
| 444 |
+
228,
|
| 445 |
+
287,
|
| 446 |
+
766,
|
| 447 |
+
366
|
| 448 |
+
],
|
| 449 |
+
"page_idx": 3
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"type": "text",
|
| 453 |
+
"text": "where $\\bar { A } _ { t } ^ { + } ( o , a )$ is the cumulative clipped advantage function, and $A _ { \\pi _ { t } } ( o , a )$ is the ordinary advantage function evaluated at policy $\\pi _ { t }$ . Advantage-based regret minimization (ARM) is the resulting reinforcement learning algorithm that updates the policy to regret match on the cumulative clipped advantage function: ",
|
| 454 |
+
"bbox": [
|
| 455 |
+
174,
|
| 456 |
+
368,
|
| 457 |
+
825,
|
| 458 |
+
425
|
| 459 |
+
],
|
| 460 |
+
"page_idx": 3
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"type": "equation",
|
| 464 |
+
"img_path": "images/00a8dd0f887669543e408d791345c087c22c8147b6dfc387db7fec7cd3ff96ae.jpg",
|
| 465 |
+
"text": "$$\n\\pi _ { t + 1 } ( a _ { k } | o _ { k } ) = \\left\\{ \\begin{array} { l l } { \\frac { \\operatorname* { m a x } ( 0 , \\bar { A } _ { t } ^ { + } ( o _ { k } , a _ { k } ) ) } { \\sum _ { a ^ { \\prime } \\in A } \\operatorname* { m a x } ( 0 , \\bar { A } _ { t } ^ { + } ( o _ { k } , a ^ { \\prime } ) ) } } & { \\mathrm { i f ~ } \\sum _ { a ^ { \\prime } \\in A } \\operatorname* { m a x } ( 0 , \\bar { A } _ { t } ^ { + } ( o _ { k } , a ^ { \\prime } ) ) > 0 } \\\\ { \\frac { 1 } { | \\bar { A } | } } & { \\mathrm { o t h e r w i s e } . } \\end{array} \\right.\n$$",
|
| 466 |
+
"text_format": "latex",
|
| 467 |
+
"bbox": [
|
| 468 |
+
238,
|
| 469 |
+
429,
|
| 470 |
+
758,
|
| 471 |
+
479
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 3
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "text",
|
| 477 |
+
"text": "Equations (9) and (10) suggest the outline of a batch-mode deep reinforcement learning algorithm. At the $t$ -th sampling iteration, a batch of data is collected by sampling trajectories using the current policy $\\pi _ { t }$ , followed by two processing steps: (a) fit $\\bar { A } _ { t } ^ { + }$ using Equation (9), then (b) set the next iteration’s policy $\\pi _ { t + 1 }$ using Equation (10). ",
|
| 478 |
+
"bbox": [
|
| 479 |
+
176,
|
| 480 |
+
483,
|
| 481 |
+
823,
|
| 482 |
+
540
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 3
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "text",
|
| 488 |
+
"text": "3.4 IMPLEMENTATION OF ARM ",
|
| 489 |
+
"text_level": 1,
|
| 490 |
+
"bbox": [
|
| 491 |
+
176,
|
| 492 |
+
555,
|
| 493 |
+
406,
|
| 494 |
+
570
|
| 495 |
+
],
|
| 496 |
+
"page_idx": 3
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"type": "text",
|
| 500 |
+
"text": "To implement Equation (9) with deep function approximation, we define two value function approximations, $V _ { \\pi _ { t } } \\left( o _ { k } ; \\theta _ { t } \\right)$ and $\\bar { Q } _ { t } ^ { + } ( o _ { k } , a _ { k } ; \\omega _ { t } )$ , as well as a target value function $V ^ { \\prime } ( o _ { k } ; \\varphi )$ , where $\\theta _ { t } , \\omega _ { t }$ , and $\\varphi$ are the learnable parameters. The cumulative clipped advantage function is represented as $\\bar { A } _ { t } ^ { + } ( \\dot { o } _ { k } , a _ { k } ) = \\bar { Q } _ { t } ^ { + } ( o _ { k } , \\dot { a _ { k } } ; \\omega _ { t } ) - V _ { \\pi _ { t } } ( o _ { k } ; \\theta _ { t } )$ . Within each sampling iteration, the value functions are fitted using stochastic gradient descent by sampling minibatches and performing gradient steps. The state-value function $V _ { \\pi _ { t } } ( o _ { k } ; \\theta _ { t } )$ is fit to minimize an $n$ -step temporal difference loss with a moving target $V ^ { \\prime } ( o _ { k + n } ; \\varphi )$ , essentially using the estimator of the deep deterministic policy gradient (DDPG) (Lillicrap et al., 2016). In the same minibatch, $\\bar { Q } _ { t } ^ { + } ( o _ { k } , a _ { k } ; \\theta _ { t } )$ is fit to a similar loss, but with an additional target reward bonus that incorporates the previous iteration’s cumulative clipped advantage, $\\operatorname* { m a x } ( 0 , \\bar { A } _ { t - 1 } ^ { \\mp } ( o _ { k } , a _ { k } ) )$ . The regression targets $v ( o _ { k } ; \\varphi )$ and $\\bar { q } ^ { + } ( o _ { k } , a _ { k } ; \\varphi )$ are defined in terms of the $n$ -step returns $\\begin{array} { r } { g _ { k } ^ { n } = \\sum _ { k ^ { \\prime } = k } ^ { k + n - 1 } \\gamma ^ { k ^ { \\prime } - k } r _ { k ^ { \\prime } } } \\end{array}$ ",
|
| 501 |
+
"bbox": [
|
| 502 |
+
173,
|
| 503 |
+
580,
|
| 504 |
+
825,
|
| 505 |
+
742
|
| 506 |
+
],
|
| 507 |
+
"page_idx": 3
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"type": "equation",
|
| 511 |
+
"img_path": "images/f28bc657f0bd394364ac682cb887ba79893917e08a2a822a0e96e9def84b670a.jpg",
|
| 512 |
+
"text": "$$\n\\begin{array} { r l } & { \\qquad v ( o _ { k } ; \\varphi ) \\triangleq g _ { k } ^ { n } + \\gamma ^ { n } V ^ { \\prime } ( o _ { k + n } ; \\varphi ) } \\\\ & { \\qquad q ( o _ { k } , a _ { k } ; \\varphi ) \\triangleq r _ { k } + \\gamma g _ { k + 1 } ^ { n - 1 } + \\gamma ^ { n } V ^ { \\prime } ( o _ { k + n } ; \\varphi ) } \\\\ & { \\qquad q ^ { + } ( o _ { k } , a _ { k } ; \\varphi ) \\triangleq \\operatorname* { m a x } ( 0 , \\bar { Q } _ { t - 1 } ^ { + } ( o _ { k } , a _ { k } ; \\omega _ { t - 1 } ) - V _ { \\pi _ { t - 1 } } ( o _ { k } ; \\theta _ { t - 1 } ) ) + q ( o _ { k } , a _ { k } ; \\varphi ) . } \\end{array}\n$$",
|
| 513 |
+
"text_format": "latex",
|
| 514 |
+
"bbox": [
|
| 515 |
+
235,
|
| 516 |
+
746,
|
| 517 |
+
761,
|
| 518 |
+
810
|
| 519 |
+
],
|
| 520 |
+
"page_idx": 3
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"type": "text",
|
| 524 |
+
"text": "Altogether, each minibatch step of the optimization subproblem consists of the following three parameter updates in terms of the regression targets $v ( o _ { k } ; \\varphi )$ and $\\bar { q } ^ { + } ( o _ { k } , a _ { k } ; \\varphi )$ : ",
|
| 525 |
+
"bbox": [
|
| 526 |
+
174,
|
| 527 |
+
811,
|
| 528 |
+
820,
|
| 529 |
+
840
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 3
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "equation",
|
| 535 |
+
"img_path": "images/54daf7a6d7b822377ba971ff9cf7f7de6ecbec704169a5a4217b79fc9f66f892.jpg",
|
| 536 |
+
"text": "$$\n\\begin{array} { r l } & { \\theta _ { t } ^ { ( \\ell + 1 ) } \\theta _ { t } ^ { ( \\ell ) } - \\frac { \\alpha } { 2 } \\nabla _ { \\theta _ { t } ^ { ( \\ell ) } } ( V _ { \\pi _ { t } } ( o _ { k } ; \\theta _ { t } ^ { ( \\ell ) } ) - v ( o _ { k } ; \\varphi ^ { ( \\ell ) } ) ) ^ { 2 } } \\\\ & { \\omega _ { t } ^ { ( \\ell + 1 ) } \\omega _ { t } ^ { ( \\ell ) } - \\frac { \\alpha } { 2 } \\nabla _ { \\omega _ { t } ^ { ( \\ell ) } } ( \\bar { Q } _ { t } ^ { + } ( o _ { k } , a _ { k } ; \\omega _ { t } ^ { ( \\ell ) } ) - \\bar { q } ^ { + } ( o _ { k } , a _ { k } ; \\varphi ^ { ( \\ell ) } ) ) ^ { 2 } } \\\\ & { \\varphi ^ { ( \\ell + 1 ) } \\varphi ^ { ( \\ell ) } + \\tau ( \\theta _ { t } ^ { ( \\ell + 1 ) } - \\varphi ^ { ( \\ell ) } ) . } \\end{array}\n$$",
|
| 537 |
+
"text_format": "latex",
|
| 538 |
+
"bbox": [
|
| 539 |
+
284,
|
| 540 |
+
844,
|
| 541 |
+
712,
|
| 542 |
+
924
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 3
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "table",
|
| 548 |
+
"img_path": "images/e4a9a6d5fda0b6f53f78a15d89e91c7fd4a6d6733234a94d222a6af083a63ce6.jpg",
|
| 549 |
+
"table_caption": [
|
| 550 |
+
"Algorithm 1 Advantage-based regret minimization (ARM). "
|
| 551 |
+
],
|
| 552 |
+
"table_footnote": [],
|
| 553 |
+
"table_body": "<table><tr><td>initialize πo ←uniform,θ-1,ω-1 ←arbitrary for tin O,...do collect batch of trajectory data Dt ~ t initialize0t←0t-1,Wt←Wt-1,←0t-1 forlinO,...do sample transitions (Ok,ak,rk,.::, Ok+n-1,ak+n-1,rk+n-1,Ok+n) ~ Dt</td></tr><tr><td>calculate n-step returns g = ∑k=k k+n-1 k'-krk' set δk+n ← I[ok+n is terminal] if t=O then set k←0</td></tr><tr><td>else setΦk ←max(0,Qt-1(Ok,ak; Wt-1) -Vπt-1(Ok;0t-1)) end if</td></tr><tr><td>set v(ok) ←gκ+γn(1-δk+n)V'(0k+n;φ) update 0t with step size α and targets v(ok) (Equation (14))</td></tr><tr><td>update Wt with step size α and targets q+(Ok, ak) (Equation (15)) update with moving average step size T (Equation (16)) end for set πt+1(alo) x max(0,Qt(o,a; wt)-Vπt(o;0t))</td></tr></table>",
|
| 554 |
+
"bbox": [
|
| 555 |
+
176,
|
| 556 |
+
119,
|
| 557 |
+
707,
|
| 558 |
+
420
|
| 559 |
+
],
|
| 560 |
+
"page_idx": 4
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"type": "text",
|
| 564 |
+
"text": "The overall advantage-based regret minimization algorithm is summarized in Algorithm 1. ",
|
| 565 |
+
"bbox": [
|
| 566 |
+
169,
|
| 567 |
+
446,
|
| 568 |
+
764,
|
| 569 |
+
462
|
| 570 |
+
],
|
| 571 |
+
"page_idx": 4
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"type": "text",
|
| 575 |
+
"text": "We note that the mechanics of the ARM updates are similar to on-policy value function estimation, but ARM learns a modified on-policy Q-function from transitions with the added reward bonus $\\operatorname* { m a x } ( 0 , \\bar { A } _ { t - 1 } ^ { + } ( o _ { k } , a _ { k } ) )$ (Equation (13)). This reward bonus can be thought of a kind of “optimism in the face of uncertainty.” ",
|
| 576 |
+
"bbox": [
|
| 577 |
+
173,
|
| 578 |
+
468,
|
| 579 |
+
825,
|
| 580 |
+
525
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 4
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "3.5 ARM VS. EXISTING POLICY GRADIENT METHODS ",
|
| 587 |
+
"text_level": 1,
|
| 588 |
+
"bbox": [
|
| 589 |
+
174,
|
| 590 |
+
541,
|
| 591 |
+
555,
|
| 592 |
+
555
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 4
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "text",
|
| 598 |
+
"text": "In this section, we accentuate that ARM represents an inherently different update compared to existing policy gradient methods. ",
|
| 599 |
+
"bbox": [
|
| 600 |
+
171,
|
| 601 |
+
566,
|
| 602 |
+
823,
|
| 603 |
+
595
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 4
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "text",
|
| 609 |
+
"text": "Recent work has shown that policy gradient methods and Q-learning methods are connected via entropy regularization (O’Donoghue et al., 2017; Haarnoja et al., 2017; Nachum et al., 2017; Schulman et al., 2017; Anonymous, 2018). One perspective is from the soft policy iteration framework for batch-mode reinforcement learning (Anonymous, 2018), where at each batch iteration the updated policy is obtained by minimizing the average KL-divergence between the policy class $\\Pi$ and a target policy $f$ . Below is the soft policy iteration update, where the subscript $t$ refers to the batch iteration: ",
|
| 610 |
+
"bbox": [
|
| 611 |
+
176,
|
| 612 |
+
602,
|
| 613 |
+
823,
|
| 614 |
+
686
|
| 615 |
+
],
|
| 616 |
+
"page_idx": 4
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"type": "equation",
|
| 620 |
+
"img_path": "images/00a1130ebc139d37dd043b6c527b1640657ed3cb585175e1fc8c7245df40ec1e.jpg",
|
| 621 |
+
"text": "$$\n\\begin{array} { r l } & { \\pi _ { t + 1 } \\gets \\arg \\underset { \\pi \\in \\Pi } { \\operatorname* { m i n } } \\mathbb { E } _ { o \\sim \\rho _ { t } } [ D _ { \\mathrm { K L } } ( \\pi \\| f ) ] } \\\\ & { \\qquad = \\arg \\underset { \\pi \\in \\Pi } { \\operatorname* { m i n } } \\mathbb { E } _ { o \\sim \\rho _ { t } } [ \\mathbb { E } _ { a \\sim \\pi ( \\cdot | o ) } [ \\log ( \\pi ( a | o ) ) - \\log ( f ( a | o ) ) ] ] . } \\end{array}\n$$",
|
| 622 |
+
"text_format": "latex",
|
| 623 |
+
"bbox": [
|
| 624 |
+
292,
|
| 625 |
+
691,
|
| 626 |
+
705,
|
| 627 |
+
742
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 4
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "text",
|
| 633 |
+
"text": "Using the connection between policy gradient methods and Q-learning, we define the policy gradient target policy as the softmax distribution on the entropy regularized advantage function Aβ-soft: ",
|
| 634 |
+
"bbox": [
|
| 635 |
+
173,
|
| 636 |
+
746,
|
| 637 |
+
826,
|
| 638 |
+
775
|
| 639 |
+
],
|
| 640 |
+
"page_idx": 4
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"type": "equation",
|
| 644 |
+
"img_path": "images/66769bc45464b30009cc10fa228d4d1a4bed06a06020ce6941430dce238b48d5.jpg",
|
| 645 |
+
"text": "$$\nf ^ { \\mathrm { P G } } ( a | o ) \\triangleq \\frac { \\exp ( \\beta A _ { t } ^ { \\beta \\mathrm { - s o f t } } ( o , a ) ) } { \\sum _ { a ^ { \\prime } \\in \\mathcal { A } } \\exp ( \\beta A _ { t } ^ { \\beta \\mathrm { - s o f t } } ( o , a ^ { \\prime } ) ) } .\n$$",
|
| 646 |
+
"text_format": "latex",
|
| 647 |
+
"bbox": [
|
| 648 |
+
361,
|
| 649 |
+
780,
|
| 650 |
+
637,
|
| 651 |
+
820
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 4
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "text",
|
| 657 |
+
"text": "We note that it is more conventional in the literature to use the soft Q-function $Q ^ { \\beta - \\mathrm { s o f t } } ( o , a )$ rather than the soft advantage function $A ^ { \\beta - \\mathrm { s o f t } } ( o , a )$ , however since they differ only by a function of $o$ then they both induce the same target softmax policy. Now, parameterizing the policy $\\pi$ in terms of an explicit parameter $\\theta$ , we obtain the expression for the existing policy gradient, where $b ( o )$ is a baseline function: ",
|
| 658 |
+
"bbox": [
|
| 659 |
+
174,
|
| 660 |
+
827,
|
| 661 |
+
825,
|
| 662 |
+
897
|
| 663 |
+
],
|
| 664 |
+
"page_idx": 4
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"type": "equation",
|
| 668 |
+
"img_path": "images/eec5ec662c0f38f1ec6fe3bd9666cad720b22a21d64536f058d3ded2bf44f492.jpg",
|
| 669 |
+
"text": "$$\n\\Delta \\theta ^ { \\mathrm { P G } } \\propto \\mathbb { E } _ { o \\sim \\rho _ { t } } [ \\mathbb { E } _ { a \\sim \\pi ( \\cdot | a ; \\theta ) } [ \\nabla _ { \\theta } \\log ( \\pi ( o | a ; \\theta ) ) ( ( 1 / \\beta ) \\log ( \\pi ( o | a ; \\theta ) ) - A _ { t } ^ { \\beta \\sim \\mathrm { o f f } } ( o , a ) + b ( o ) ) ] ] .\n$$",
|
| 670 |
+
"text_format": "latex",
|
| 671 |
+
"bbox": [
|
| 672 |
+
181,
|
| 673 |
+
900,
|
| 674 |
+
789,
|
| 675 |
+
921
|
| 676 |
+
],
|
| 677 |
+
"page_idx": 4
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"type": "text",
|
| 681 |
+
"text": "The classic policy gradient arises in the limit $\\beta \\to \\infty$ . ",
|
| 682 |
+
"bbox": [
|
| 683 |
+
174,
|
| 684 |
+
103,
|
| 685 |
+
527,
|
| 686 |
+
118
|
| 687 |
+
],
|
| 688 |
+
"page_idx": 5
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"type": "text",
|
| 692 |
+
"text": "Note that an alternative choice of target policy $f$ will lead to a different kind of policy gradient update. A policy gradient algorithm based on ARM instead proposes the following target policy based on the regret-matching distribution: ",
|
| 693 |
+
"bbox": [
|
| 694 |
+
173,
|
| 695 |
+
125,
|
| 696 |
+
825,
|
| 697 |
+
166
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 5
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "equation",
|
| 703 |
+
"img_path": "images/a05657fdd36fd48acdef7772662f7dddff9cb39a07b094a899127d73f40780c8.jpg",
|
| 704 |
+
"text": "$$\nf ^ { \\mathrm { A R M } } ( a | o ) \\triangleq \\frac { \\operatorname* { m a x } ( 0 , \\bar { A } _ { t } ^ { + } ( o , a ) ) } { \\sum _ { a ^ { \\prime } \\in \\mathcal { A } } \\operatorname* { m a x } ( 0 , \\bar { A } _ { t } ^ { + } ( o , a ^ { \\prime } ) ) } .\n$$",
|
| 705 |
+
"text_format": "latex",
|
| 706 |
+
"bbox": [
|
| 707 |
+
359,
|
| 708 |
+
170,
|
| 709 |
+
638,
|
| 710 |
+
208
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 5
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "text",
|
| 716 |
+
"text": "Similarly, we can express the ARM-like policy gradient, where again $b ( o )$ is a baseline: ",
|
| 717 |
+
"bbox": [
|
| 718 |
+
174,
|
| 719 |
+
212,
|
| 720 |
+
746,
|
| 721 |
+
227
|
| 722 |
+
],
|
| 723 |
+
"page_idx": 5
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"type": "equation",
|
| 727 |
+
"img_path": "images/a8d6ae8c1234e8136539588f9f25a1172298321b065c32764e9c8b0a238335f5.jpg",
|
| 728 |
+
"text": "$$\n\\begin{array} { r } { \\mathtt { D } \\theta ^ { \\mathrm { A R M } } = \\mathbb { E } _ { o \\sim \\rho _ { \\mathrm { f } } } [ \\mathbb { E } _ { a \\sim \\pi ( \\cdot | \\sigma ; \\theta ) } [ \\nabla _ { \\theta } \\log ( \\pi ( o | a ; \\theta ) ) ( \\log ( \\pi ( o | a ; \\theta ) ) - \\log ( \\operatorname* { m a x } ( 0 , \\bar { A } _ { t } ^ { + } ( o , a ) ) ) + b ( o ) ) ] ] . } \\end{array}\n$$",
|
| 729 |
+
"text_format": "latex",
|
| 730 |
+
"bbox": [
|
| 731 |
+
181,
|
| 732 |
+
231,
|
| 733 |
+
823,
|
| 734 |
+
250
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 5
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "text",
|
| 740 |
+
"text": "Comparing Equations (20) and (22), we see that the ARM-like policy gradient (Equation (22)) has a logarithmic dependence on the advantage-like function $\\bar { A } ^ { + }$ , whereas the existing policy gradient (Equation (20)) is only linearly dependent on the advantage function $A ^ { \\beta - \\mathrm { s o f t } }$ . This difference in logarithmic vs. linear dependence is responsible for a large part of the inherent distinction of ARM from existing policy gradient methods. One consequence of the difference in logarithmic vs. linear dependence is that the ARM-like update should be less sensitive to large positive advantages that may result from overestimation compared to existing policy gradient methods. ",
|
| 741 |
+
"bbox": [
|
| 742 |
+
173,
|
| 743 |
+
266,
|
| 744 |
+
825,
|
| 745 |
+
366
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 5
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "text",
|
| 751 |
+
"text": "We also see that for the existing policy gradient (Equation (20)), the $( 1 / \\beta ) \\log ( \\pi ( a | o ; \\theta ) )$ term, which is derived from the policy entropy, is vanishing for large $\\beta$ (e.g. $\\beta = 1 0 0$ is a common choice in practice). On the other hand, for the ARM-like policy gradient (Equation (22)), there is no similar vanishing effect, suggesting that ARM may perform a kind of entropy regularization by default. ",
|
| 752 |
+
"bbox": [
|
| 753 |
+
174,
|
| 754 |
+
371,
|
| 755 |
+
825,
|
| 756 |
+
428
|
| 757 |
+
],
|
| 758 |
+
"page_idx": 5
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"type": "text",
|
| 762 |
+
"text": "In practice we cannot implement an ARM-like policy gradient exactly as in Equation (22), as due to the positive clipping $\\operatorname* { m a x } ( 0 , { \\bar { A } } ^ { + } )$ there can appear $\\log ( 0 )$ . However we believe this is not an intrinsic obstacle, leaving the issue of implementing an ARM-like policy gradient to future work. ",
|
| 763 |
+
"bbox": [
|
| 764 |
+
174,
|
| 765 |
+
434,
|
| 766 |
+
825,
|
| 767 |
+
477
|
| 768 |
+
],
|
| 769 |
+
"page_idx": 5
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "text",
|
| 773 |
+
"text": "3.6 WHY DOES ARM WORK BETTER IN PARTIALLY OBSERVABLE DOMAINS? ",
|
| 774 |
+
"text_level": 1,
|
| 775 |
+
"bbox": [
|
| 776 |
+
176,
|
| 777 |
+
493,
|
| 778 |
+
714,
|
| 779 |
+
507
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 5
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "text",
|
| 785 |
+
"text": "In the previous Section 3.5, we showed that ARM and existing policy gradient methods can be distinguished by their choices of target policy and the nature of their dependence on their respective advantage-like functions. In this section, we argue that the convergence results of CFR and $\\mathrm { C F R + }$ suggest that ARM, to the degree that it inherits the properties of $\\mathrm { C F R / C F R + }$ , ought to benefit from greater partial observability compared to other methods. ",
|
| 786 |
+
"bbox": [
|
| 787 |
+
174,
|
| 788 |
+
518,
|
| 789 |
+
825,
|
| 790 |
+
588
|
| 791 |
+
],
|
| 792 |
+
"page_idx": 5
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "text",
|
| 796 |
+
"text": "We assume that regret bounds are a useful way to compare the convergence of different RL algorithms, due to the interpretation of regret as “area over the learning curve (and under the optimal√ expected value $J ^ { * }$ ).” Specifically, the regret bound of CFR and $\\mathrm { C F R + }$ is $O ( | O | \\sqrt { T } )$ where $| \\mathcal { O } |$ is the size of the observation space (Zinkevich et al., 2007; Tammelin et al., 2015). The policy gradient method with a suitable baseline has a learning rate $\\eta$ -dependent regret bound derived from the stochastic gradient method; assuming parameter norm bound $B$ and gradient estimator second moments $G ^ { 2 }$ , by setting the learning rate $\\eta \\propto T ^ { - 1 / 2 }$ policy gradient achieves a regret bound of $O ( \\sqrt { T } )$ with no explicit dependence on the observation space size $| \\mathcal { O } |$ (Dick, 2015). ",
|
| 797 |
+
"bbox": [
|
| 798 |
+
174,
|
| 799 |
+
595,
|
| 800 |
+
825,
|
| 801 |
+
712
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 5
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "text",
|
| 807 |
+
"text": "We argue that possessing a regret bound proportional to the observation space size $| \\mathcal { O } |$ is beneficial in highly partially observable domains. Let us fix an underlying state space $s$ . Compare two RL algorithms, where algorithm 1 (which is ARM-like) has a regret bound $c _ { 1 } | \\mathcal { O } | \\sqrt { T }$ , whereas algorithm 2 (which is policy gradient-like) has a regret bound $c _ { 2 } \\sqrt { T }$ ; here, $c _ { 1 }$ and $c _ { 2 }$ are constants. Note that if $c _ { 1 } | \\mathcal { O } | = c _ { 2 }$ or equivalently $| \\mathcal { O } | = c _ { 2 } / c _ { 1 }$ , then the two RL algorithms possess the exact same regret bound. If on the other hand $\\left| \\mathcal { O } \\right| < c _ { 2 } / c _ { 1 }$ , then the regret bound of RL algorithm 1 is actually lower than that of RL algorithm 2. Applying this intuition to CFR and hence ARM suggests that ARM can benefit from greater partial observability if the degree of partial observability is above a threshold. ",
|
| 808 |
+
"bbox": [
|
| 809 |
+
173,
|
| 810 |
+
717,
|
| 811 |
+
825,
|
| 812 |
+
833
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 5
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "text",
|
| 818 |
+
"text": "For Q-learning per se, we are not aware of any known regret bound. Szepesvari proved that the ´ convergence rate of Q-learning in the $L ^ { \\infty }$ -norm, assuming a fixed exploration strategy, depends on a condition number $C$ , which is the ratio of the minimum to maximum state-action occupation frequencies (Szepesvari, 1998), and which describes how “balanced” the exploration strategy is. If ´ partial observability leads to imbalanced exploration due to confounding of states from perceptual aliasing (McCallum, 1997), then Q-learning should be negatively affected. ",
|
| 819 |
+
"bbox": [
|
| 820 |
+
173,
|
| 821 |
+
840,
|
| 822 |
+
825,
|
| 823 |
+
924
|
| 824 |
+
],
|
| 825 |
+
"page_idx": 5
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "text",
|
| 829 |
+
"text": "We note that there remains a gap between ARM as implemented and the theory of CFR: the use of (a) function approximation and sampling over tabular enumeration; (b) the “ordinary” Q-function instead of the “stationary” Q-function; and (c) $n$ -step bootstrapped values instead of full returns for value function estimation. Waugh et al. (2015) address CFR with function approximation via a noisy version of a generalized Blackwell’s condition (Cesa-Bianchi & Lugosi, 2003). Even the original implementation of CFR used sampling in place of enumeration (Zinkevich et al., 2007). We refer the reader to Bellemare et al. (2016) for a more in-depth discussion of the stationary Q-function. Although only the full returns are guaranteed to be unbiased in non-Markovian settings, it is quite common for practical RL algorithms to trade off strict unbiasedness in favor of lower variance by using $n$ -step returns or variations thereof (Schulman et al., 2016; Gu et al., 2017). ",
|
| 830 |
+
"bbox": [
|
| 831 |
+
174,
|
| 832 |
+
103,
|
| 833 |
+
825,
|
| 834 |
+
242
|
| 835 |
+
],
|
| 836 |
+
"page_idx": 6
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"text": "4 EXPERIMENTS ",
|
| 841 |
+
"text_level": 1,
|
| 842 |
+
"bbox": [
|
| 843 |
+
176,
|
| 844 |
+
263,
|
| 845 |
+
326,
|
| 846 |
+
279
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 6
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "Because we hypothesize that ARM should perform well in partially observable reinforcement learning environments, we conduct our experiments on visual domains that naturally provide partial observations of state. All of our evaluations use feedforward convnets with frame-history observations. We are interested in comparing ARM with methods that assume Markovian observations, namely double deep Q-learning (van Hasselt et al., 2016), as well as methods that can handle non-Markovian observations, primarily TRPO (Schulman et al., 2015; 2016), and to a lesser extent A3C (Mnih et al., 2016) whose critic assumes Markovian observations. We are also interested in controlling for the advantage structure of ARM by comparing with other advantage-structured methods, which include dueling networks (Wang et al., 2016), as well as policy gradient methods that estimate an empirical advantage using a baseline state-value function or critic (e.g. TRPO, A3C). ",
|
| 853 |
+
"bbox": [
|
| 854 |
+
174,
|
| 855 |
+
294,
|
| 856 |
+
825,
|
| 857 |
+
433
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 6
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "4.1 LEARNING TO PLAY PONG WITH A SINGLE FRAME ",
|
| 864 |
+
"text_level": 1,
|
| 865 |
+
"bbox": [
|
| 866 |
+
174,
|
| 867 |
+
450,
|
| 868 |
+
562,
|
| 869 |
+
464
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 6
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "text",
|
| 875 |
+
"text": "Atari games consist of a small set of moving sprites with fixed shapes and palettes, and the motion of sprites can be highly deterministic, so that with only 4 recently observed frames as input one can predict hundreds of frames into the future on some games using only a feedforward model (Oh et al., 2015). To increase the partial observability of Atari games, one may artificially limit the amount of frame history fed as input to the networks (Hausknecht & Stone, 2017). As a proof of concept of ARM, we trained agents to play Pong via the Arcade Learning Environment (Bellemare et al., 2013) when the frame-history length is varied between 4 (the default) and 1. We found that the performance of double deep Q-learning degraded noticeably when the frame-history length was reduced from 4 to 1, whereas performance of ARM was not affected nearly as much. Our results on Pong are summarized in Figure 1. ",
|
| 876 |
+
"bbox": [
|
| 877 |
+
173,
|
| 878 |
+
476,
|
| 879 |
+
825,
|
| 880 |
+
614
|
| 881 |
+
],
|
| 882 |
+
"page_idx": 6
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "image",
|
| 886 |
+
"img_path": "images/d17a3f8ac400502818872bfd8c6491354010200aa08ebf771c86d4e4b1b0fcb7.jpg",
|
| 887 |
+
"image_caption": [
|
| 888 |
+
"Figure 1: Comparing double deep Q-learning (orange) and ARM (blue) on Pong. "
|
| 889 |
+
],
|
| 890 |
+
"image_footnote": [],
|
| 891 |
+
"bbox": [
|
| 892 |
+
331,
|
| 893 |
+
626,
|
| 894 |
+
656,
|
| 895 |
+
762
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 6
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "4.2 LEARNING TO NAVIGATE IN VIZDOOM ",
|
| 902 |
+
"text_level": 1,
|
| 903 |
+
"bbox": [
|
| 904 |
+
176,
|
| 905 |
+
814,
|
| 906 |
+
485,
|
| 907 |
+
828
|
| 908 |
+
],
|
| 909 |
+
"page_idx": 6
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"type": "text",
|
| 913 |
+
"text": "We evaluated ARM on the task of learning first-person navigation in the ViZDoom (Kempka et al., 2016) domain based on the game of Doom. Doom is a substantially more complex domain than Atari, featuring an egocentric viewpoint, 3D perspective, and complex visuals. We expect that Doom exhibits a substantial degree of partial observability and therefore serves as a more difficult evaluation of reinforcement learning algorithms’ effectiveness on partially observable domains. We performed our evaluation on two standard ViZDoom navigation benchmarks, “HealthGathering” ",
|
| 914 |
+
"bbox": [
|
| 915 |
+
174,
|
| 916 |
+
840,
|
| 917 |
+
825,
|
| 918 |
+
922
|
| 919 |
+
],
|
| 920 |
+
"page_idx": 6
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"type": "text",
|
| 924 |
+
"text": "and “MyWayHome.” In “HealthGathering,” the agent is placed in a toxic room and continually loses life points, but can navigate toward healthkit objects to prolong its life; the goal is to survive for as long as possible. In “MyWayHome,” the agent is randomly placed in a small maze and must find a target object that has a fixed visual appearance and is in a fixed location in the maze; the goal is to reach the target object before time runs out. Figure 2 (top row) shows example observations from the two ViZDoom scenarios. ",
|
| 925 |
+
"bbox": [
|
| 926 |
+
174,
|
| 927 |
+
103,
|
| 928 |
+
825,
|
| 929 |
+
186
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 7
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "Unlike previous evaluations which augmented the raw pixel frames with extra information about the game state, e.g. elapsed time ticks or remaining health (Kempka et al., 2016; Dosovitskiy & Koltun, 2017), in our evaluation we forced all networks to learn using only visual input. Despite this restriction, ARM is still able to quickly learn policies with minimal tuning of hyperparameters and reach close to the maximum score in under 1 million steps. On “HealthGathering,” we observed that ARM very quickly learns a policy that can achieve close to the maximum episode return of 2100. Double deep Q-learning learns a more consistent policy on “HealthGathering” compared to ARM and TRPO, but we believe this to be the result of evaluating double DQN’s $\\epsilon$ -greedy policy with small $\\epsilon$ compared to the truly stochastic policies learned by ARM and TRPO. On “MyWayHome,” we observed that ARM generally learned a well-performing policy more quickly than other methods. Additionally, we found that ARM is able to take advantage of an off-policy replay memory when learning on ViZDoom by storing the trajectories of previous sampling batches and applying an importance sampling correction to the $n$ -step returns; please see Section 6.2 in the Appendix for details. Our Doom results are in Figure 6. ",
|
| 936 |
+
"bbox": [
|
| 937 |
+
173,
|
| 938 |
+
194,
|
| 939 |
+
825,
|
| 940 |
+
388
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 7
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "image",
|
| 946 |
+
"img_path": "images/eb67b2bf92537bb9e524252d79c88f95c44e030b7fa632f8399695fb74da885d.jpg",
|
| 947 |
+
"image_caption": [
|
| 948 |
+
"Figure 2: Top row: Doom screenshots from (left) “HealthGathering” and (right) “MyWayHome.” Bottom row: Minecraft screenshots from (leftmost) “L1” through (rightmost) “L5” "
|
| 949 |
+
],
|
| 950 |
+
"image_footnote": [],
|
| 951 |
+
"bbox": [
|
| 952 |
+
184,
|
| 953 |
+
412,
|
| 954 |
+
820,
|
| 955 |
+
575
|
| 956 |
+
],
|
| 957 |
+
"page_idx": 7
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "image",
|
| 961 |
+
"img_path": "images/a578e0fde415fbaa29313d8eef053a0758257658bc7097447ce30625994816f4.jpg",
|
| 962 |
+
"image_caption": [
|
| 963 |
+
"Figure 3: Evaluating double deep Q-learning (orange), dueling double DQN (red), A3C (purple), TRPO (green), ARM (blue), and ARM with off-policy data (cyan) on two ViZDoom scenarios. "
|
| 964 |
+
],
|
| 965 |
+
"image_footnote": [],
|
| 966 |
+
"bbox": [
|
| 967 |
+
254,
|
| 968 |
+
667,
|
| 969 |
+
723,
|
| 970 |
+
859
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 7
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "text",
|
| 976 |
+
"text": "4.3 LEARNING TO NAVIGATE IN MINECRAFT ",
|
| 977 |
+
"text_level": 1,
|
| 978 |
+
"bbox": [
|
| 979 |
+
176,
|
| 980 |
+
103,
|
| 981 |
+
493,
|
| 982 |
+
117
|
| 983 |
+
],
|
| 984 |
+
"page_idx": 8
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"type": "text",
|
| 988 |
+
"text": "We finally evaluated ARM on the task of learning first-person navigation in the Malmo domain ¨ based on the game of Minecraft (Johnson et al., 2016). Minecraft has similar visual complexity to Doom and should possess a comparable degree of partial observability, but Minecraft has the potential to be more difficult than Doom due to the diversity of possible Minecraft environments that can be generated. Our evaluation on Minecraft is adapted from the teacher-student curriculum learning protocol (Matiisen et al., 2017), which consists of 5 consecutive “levels” that successively increase the difficulty of completing the simple task of reaching a target block: the first level (“L1”) consists of a single room; the intermediate levels (“L2”–“L4”) consist of a corridor with lava-bridge and wall-gap obstacles; and the final level (“L5”) consists of a $2 \\times 2$ arrangement of rooms randomly separated by lava-bridge or wall-gap obstacles. Figure 2 (bottom row) shows example observations from the five Minecraft levels. ",
|
| 989 |
+
"bbox": [
|
| 990 |
+
174,
|
| 991 |
+
132,
|
| 992 |
+
825,
|
| 993 |
+
284
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 8
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "text",
|
| 999 |
+
"text": "We performed our Minecraft experiments using fixed curriculum learning schedules to evaluate the sample efficiency of different algorithms: the agent is initially placed in the first level (“L1”), and the agent is advanced to the next level whenever a preselected number of simulator steps have elapsed, until the agent reaches the last level (“L5”). We found that ARM and dueling double DQN both were able to learn on an aggressive “fast” schedule of only 62500 simulator steps between levels. TRPO required a “slow” schedule of 93750 simulator steps between levels to reliably learn. ARM was able to consistently learn a well performing policy on all of the levels, whereas double DQN learned more slowly on some of the intermediate levels. ARM also more consistently reached a high score on the final, most difficult level (“L5”). Our Minecraft results are shown in Figure 4. ",
|
| 1000 |
+
"bbox": [
|
| 1001 |
+
174,
|
| 1002 |
+
291,
|
| 1003 |
+
825,
|
| 1004 |
+
416
|
| 1005 |
+
],
|
| 1006 |
+
"page_idx": 8
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"type": "image",
|
| 1010 |
+
"img_path": "images/d9207a568dbbd2bbee8c90f7edd9b397fc7e3f523d0ae82626197667af5e147c.jpg",
|
| 1011 |
+
"image_caption": [
|
| 1012 |
+
"Figure 4: Evaluating double deep Q-learning (orange), dueling double DQN (red), TRPO (green), and ARM (blue) on a Minecraft curriculum learning protocol. The simulator step counts at which each level begins are labeled and demarcated with dashed vertical lines. "
|
| 1013 |
+
],
|
| 1014 |
+
"image_footnote": [],
|
| 1015 |
+
"bbox": [
|
| 1016 |
+
189,
|
| 1017 |
+
433,
|
| 1018 |
+
802,
|
| 1019 |
+
559
|
| 1020 |
+
],
|
| 1021 |
+
"page_idx": 8
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"type": "text",
|
| 1025 |
+
"text": "5 DISCUSSION ",
|
| 1026 |
+
"text_level": 1,
|
| 1027 |
+
"bbox": [
|
| 1028 |
+
174,
|
| 1029 |
+
652,
|
| 1030 |
+
310,
|
| 1031 |
+
669
|
| 1032 |
+
],
|
| 1033 |
+
"page_idx": 8
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"type": "text",
|
| 1037 |
+
"text": "In this paper, we presented a novel deep reinforcement learning algorithm based on counterfactual regret minimization (CFR). We call our method advantage-based regret minimization (ARM). Similarly to prior methods that learn state or state-action value functions, our method learns a cumulative clipped advantage function of observation and action. However, in contrast to these prior methods, ARM is well suited to partially observed or non-Markovian environments, making it an appealing choice in a number of difficult domains. When compared to baseline methods, including deep Q-learning and TRPO, on non-Markovian tasks such as the challenging ViZDoom and Malmo first- ¨ person navigation benchmarks, ARM achieves substantially better results. This illustrates the value of ARM for partially observable problems. In future work, we plan to further explore applications of ARM to more complex tasks, including continuous action spaces. ",
|
| 1038 |
+
"bbox": [
|
| 1039 |
+
174,
|
| 1040 |
+
689,
|
| 1041 |
+
825,
|
| 1042 |
+
828
|
| 1043 |
+
],
|
| 1044 |
+
"page_idx": 8
|
| 1045 |
+
},
|
| 1046 |
+
{
|
| 1047 |
+
"type": "text",
|
| 1048 |
+
"text": "REFERENCES ",
|
| 1049 |
+
"text_level": 1,
|
| 1050 |
+
"bbox": [
|
| 1051 |
+
174,
|
| 1052 |
+
854,
|
| 1053 |
+
285,
|
| 1054 |
+
869
|
| 1055 |
+
],
|
| 1056 |
+
"page_idx": 8
|
| 1057 |
+
},
|
| 1058 |
+
{
|
| 1059 |
+
"type": "text",
|
| 1060 |
+
"text": "Anonymous. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. International Conference on Learning Representations, 2018. URL https: //openreview.net/forum?id=HJjvxl-Cb. ",
|
| 1061 |
+
"bbox": [
|
| 1062 |
+
176,
|
| 1063 |
+
882,
|
| 1064 |
+
823,
|
| 1065 |
+
922
|
| 1066 |
+
],
|
| 1067 |
+
"page_idx": 8
|
| 1068 |
+
},
|
| 1069 |
+
{
|
| 1070 |
+
"type": "text",
|
| 1071 |
+
"text": "Oron Anschel, Nir Baram, and Nahum Shimkin. Averaged-DQN: Variance Reduction and Stabilization for Deep Reinforcement Learning. In International Conference on Machine Learning, pp. 176–185, 2017. ",
|
| 1072 |
+
"bbox": [
|
| 1073 |
+
173,
|
| 1074 |
+
103,
|
| 1075 |
+
823,
|
| 1076 |
+
146
|
| 1077 |
+
],
|
| 1078 |
+
"page_idx": 9
|
| 1079 |
+
},
|
| 1080 |
+
{
|
| 1081 |
+
"type": "text",
|
| 1082 |
+
"text": "Marc G. Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The Arcade Learning Environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47:253–279, 2013. ",
|
| 1083 |
+
"bbox": [
|
| 1084 |
+
174,
|
| 1085 |
+
155,
|
| 1086 |
+
821,
|
| 1087 |
+
198
|
| 1088 |
+
],
|
| 1089 |
+
"page_idx": 9
|
| 1090 |
+
},
|
| 1091 |
+
{
|
| 1092 |
+
"type": "text",
|
| 1093 |
+
"text": "Mark G. Bellemare, Georg Ostrovski, Arthur Guez, Philip S. Thomas, and Remi Munos. Increasing ´ the Action Gap: New Operators for Reinforcement Learning. In AAAI, 2016. ",
|
| 1094 |
+
"bbox": [
|
| 1095 |
+
173,
|
| 1096 |
+
208,
|
| 1097 |
+
821,
|
| 1098 |
+
237
|
| 1099 |
+
],
|
| 1100 |
+
"page_idx": 9
|
| 1101 |
+
},
|
| 1102 |
+
{
|
| 1103 |
+
"type": "text",
|
| 1104 |
+
"text": "Michael Bowling, Neil Burch, Michael Johanson, and Oskari Tammelin. Heads-up limit hold’em poker is solved. Science, 347(6218):145–149, 2015. ",
|
| 1105 |
+
"bbox": [
|
| 1106 |
+
171,
|
| 1107 |
+
246,
|
| 1108 |
+
821,
|
| 1109 |
+
276
|
| 1110 |
+
],
|
| 1111 |
+
"page_idx": 9
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"type": "text",
|
| 1115 |
+
"text": "Nicolo Cesa-Bianchi and G \\` abor Lugosi. Potential-Based Algorithms in On-Line Prediction and ´ Game Theory. Machine Learning, 51(3):239–261, 2003. ",
|
| 1116 |
+
"bbox": [
|
| 1117 |
+
173,
|
| 1118 |
+
285,
|
| 1119 |
+
823,
|
| 1120 |
+
314
|
| 1121 |
+
],
|
| 1122 |
+
"page_idx": 9
|
| 1123 |
+
},
|
| 1124 |
+
{
|
| 1125 |
+
"type": "text",
|
| 1126 |
+
"text": "Travis Dick. Policy Gradient Reinforcement Learning Without Regret. Master’s thesis, University of Alberta, 2015. ",
|
| 1127 |
+
"bbox": [
|
| 1128 |
+
173,
|
| 1129 |
+
324,
|
| 1130 |
+
823,
|
| 1131 |
+
353
|
| 1132 |
+
],
|
| 1133 |
+
"page_idx": 9
|
| 1134 |
+
},
|
| 1135 |
+
{
|
| 1136 |
+
"type": "text",
|
| 1137 |
+
"text": "Alexey Dosovitskiy and Vladlen Koltun. Learning to Act by Predicting the Future. arXiv preprint arXiv:1611.01779v2, 2017. ",
|
| 1138 |
+
"bbox": [
|
| 1139 |
+
173,
|
| 1140 |
+
362,
|
| 1141 |
+
823,
|
| 1142 |
+
392
|
| 1143 |
+
],
|
| 1144 |
+
"page_idx": 9
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"type": "text",
|
| 1148 |
+
"text": "Jakob N. Foerster, Yannis M. Assael, Nando de Freitas, and Shimon Whiteson. Learning to Communicate with Deep Multi-Agent Reinforcement Learning. In Advances in Neural Information Processing Systems 29, 2016. ",
|
| 1149 |
+
"bbox": [
|
| 1150 |
+
173,
|
| 1151 |
+
400,
|
| 1152 |
+
823,
|
| 1153 |
+
444
|
| 1154 |
+
],
|
| 1155 |
+
"page_idx": 9
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"type": "text",
|
| 1159 |
+
"text": "Shixiang Gu, Timothy Lillicrap, Zoubin Ghahramani, Richard E. Turner, Bernhard Scholkopf, and ¨ Sergey Levine. Interpolated Policy Gradient: Merging On-Policy and Off-Policy Gradient Estimation for Deep Reinforcement Learning. arXiv preprint arXiv:1706.00387v1, 2017. ",
|
| 1160 |
+
"bbox": [
|
| 1161 |
+
178,
|
| 1162 |
+
453,
|
| 1163 |
+
823,
|
| 1164 |
+
497
|
| 1165 |
+
],
|
| 1166 |
+
"page_idx": 9
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"type": "text",
|
| 1170 |
+
"text": "Tuomas Haarnoja, Haoran Tang, Pieter Abbeel, and Sergey Levine. Reinforcement Learning with Deep Energy-Based Policies. arXiv preprint arXiv:1702.08165v2, 2017. ",
|
| 1171 |
+
"bbox": [
|
| 1172 |
+
171,
|
| 1173 |
+
506,
|
| 1174 |
+
823,
|
| 1175 |
+
535
|
| 1176 |
+
],
|
| 1177 |
+
"page_idx": 9
|
| 1178 |
+
},
|
| 1179 |
+
{
|
| 1180 |
+
"type": "text",
|
| 1181 |
+
"text": "Sergiu Hart and Andreu Mas-Colell. A Simple Adaptive Procedure Leading to Correlated Equilibrium. Econometrica, 68(5):1127–1150, 2000. ",
|
| 1182 |
+
"bbox": [
|
| 1183 |
+
173,
|
| 1184 |
+
544,
|
| 1185 |
+
821,
|
| 1186 |
+
574
|
| 1187 |
+
],
|
| 1188 |
+
"page_idx": 9
|
| 1189 |
+
},
|
| 1190 |
+
{
|
| 1191 |
+
"type": "text",
|
| 1192 |
+
"text": "Matthew Hausknecht and Peter Stone. Deep Recurrent Q-Learning for Partially Observable MDPs. arXiv preprint arXiv:1507.06527v4, 2017. ",
|
| 1193 |
+
"bbox": [
|
| 1194 |
+
174,
|
| 1195 |
+
583,
|
| 1196 |
+
820,
|
| 1197 |
+
613
|
| 1198 |
+
],
|
| 1199 |
+
"page_idx": 9
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"type": "text",
|
| 1203 |
+
"text": "Nicolas Heess, Jonathan J. Hunt, Timothy P. Lillicrap, and David Silver. Memory-based control with recurrent neural networks. arXiv preprint arXiv:1512.04455v1, 2015. ",
|
| 1204 |
+
"bbox": [
|
| 1205 |
+
173,
|
| 1206 |
+
621,
|
| 1207 |
+
823,
|
| 1208 |
+
651
|
| 1209 |
+
],
|
| 1210 |
+
"page_idx": 9
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"type": "text",
|
| 1214 |
+
"text": "Edward L Ionides. Truncated Importance Sampling. Journal of Computational and Graphical Statistics, 17(2):295–311, 2008. ",
|
| 1215 |
+
"bbox": [
|
| 1216 |
+
173,
|
| 1217 |
+
660,
|
| 1218 |
+
823,
|
| 1219 |
+
689
|
| 1220 |
+
],
|
| 1221 |
+
"page_idx": 9
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"type": "text",
|
| 1225 |
+
"text": "Matthew Johnson, Katja Hofmann, Tim Hutton, and David Bignell. The Malmo Platform for Artificial Intelligence Experimentation. In Proceedings of the 25th International Joint Conference on Artificial Intelligence, 2016. ",
|
| 1226 |
+
"bbox": [
|
| 1227 |
+
173,
|
| 1228 |
+
699,
|
| 1229 |
+
823,
|
| 1230 |
+
742
|
| 1231 |
+
],
|
| 1232 |
+
"page_idx": 9
|
| 1233 |
+
},
|
| 1234 |
+
{
|
| 1235 |
+
"type": "text",
|
| 1236 |
+
"text": "Michal Kempka, Marek Wydmuch, Grzegorz Runc, Jakub Toczek, and Wojciech Jaskowski. ViZ- ´ Doom: A Doom-based AI Research Platform for Visual Reinforcement Learning. arXiv preprint arXiv:1605.02097v2, 2016. ",
|
| 1237 |
+
"bbox": [
|
| 1238 |
+
174,
|
| 1239 |
+
751,
|
| 1240 |
+
823,
|
| 1241 |
+
795
|
| 1242 |
+
],
|
| 1243 |
+
"page_idx": 9
|
| 1244 |
+
},
|
| 1245 |
+
{
|
| 1246 |
+
"type": "text",
|
| 1247 |
+
"text": "Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel. End-to-end training of deep visuomotor policies. The Journal of Machine Learning Research, 17(1):1334–1373, 2016. ",
|
| 1248 |
+
"bbox": [
|
| 1249 |
+
169,
|
| 1250 |
+
804,
|
| 1251 |
+
823,
|
| 1252 |
+
833
|
| 1253 |
+
],
|
| 1254 |
+
"page_idx": 9
|
| 1255 |
+
},
|
| 1256 |
+
{
|
| 1257 |
+
"type": "text",
|
| 1258 |
+
"text": "Timothy P. Lillicrap, Jonathan J. Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971v5, 2016. ",
|
| 1259 |
+
"bbox": [
|
| 1260 |
+
173,
|
| 1261 |
+
843,
|
| 1262 |
+
823,
|
| 1263 |
+
886
|
| 1264 |
+
],
|
| 1265 |
+
"page_idx": 9
|
| 1266 |
+
},
|
| 1267 |
+
{
|
| 1268 |
+
"type": "text",
|
| 1269 |
+
"text": "Michael L. Littman. Markov games as a framework for multi-agent reinforcement learning. In Proceedings of the 11th International Conference on Machine Learning, pp. 157–163, 1994. ",
|
| 1270 |
+
"bbox": [
|
| 1271 |
+
173,
|
| 1272 |
+
895,
|
| 1273 |
+
821,
|
| 1274 |
+
924
|
| 1275 |
+
],
|
| 1276 |
+
"page_idx": 9
|
| 1277 |
+
},
|
| 1278 |
+
{
|
| 1279 |
+
"type": "text",
|
| 1280 |
+
"text": "Tambet Matiisen, Avital Oliver, Taco Cohen, and John Schulman. Teacher-Student Curriculum Learning. arXiv preprint arXiv:1707.00183v1, 2017. ",
|
| 1281 |
+
"bbox": [
|
| 1282 |
+
171,
|
| 1283 |
+
103,
|
| 1284 |
+
825,
|
| 1285 |
+
132
|
| 1286 |
+
],
|
| 1287 |
+
"page_idx": 10
|
| 1288 |
+
},
|
| 1289 |
+
{
|
| 1290 |
+
"type": "text",
|
| 1291 |
+
"text": "Andrew Kachites McCallum. Efficient Exploration in Reinforcement Learning with Hidden State. In AAAI Fall Symposium on Model-directed Autonomous Systems, 1997. ",
|
| 1292 |
+
"bbox": [
|
| 1293 |
+
171,
|
| 1294 |
+
141,
|
| 1295 |
+
821,
|
| 1296 |
+
171
|
| 1297 |
+
],
|
| 1298 |
+
"page_idx": 10
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"type": "text",
|
| 1302 |
+
"text": "Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing Atari with Deep Reinforcement Learning. arXiv preprint arXiv:1312.5602v1, 2013. ",
|
| 1303 |
+
"bbox": [
|
| 1304 |
+
176,
|
| 1305 |
+
179,
|
| 1306 |
+
823,
|
| 1307 |
+
223
|
| 1308 |
+
],
|
| 1309 |
+
"page_idx": 10
|
| 1310 |
+
},
|
| 1311 |
+
{
|
| 1312 |
+
"type": "text",
|
| 1313 |
+
"text": "Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin Riedmiller, Andreas K. Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015. ",
|
| 1314 |
+
"bbox": [
|
| 1315 |
+
174,
|
| 1316 |
+
232,
|
| 1317 |
+
823,
|
| 1318 |
+
275
|
| 1319 |
+
],
|
| 1320 |
+
"page_idx": 10
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "text",
|
| 1324 |
+
"text": "Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In International Conference on Machine Learning, pp. 1928–1937, 2016. ",
|
| 1325 |
+
"bbox": [
|
| 1326 |
+
176,
|
| 1327 |
+
284,
|
| 1328 |
+
823,
|
| 1329 |
+
328
|
| 1330 |
+
],
|
| 1331 |
+
"page_idx": 10
|
| 1332 |
+
},
|
| 1333 |
+
{
|
| 1334 |
+
"type": "text",
|
| 1335 |
+
"text": "Ofir Nachum, Mohammad Norouzi, Kelvin Xu, and Dale Schuurmans. Bridging the Gap Between Value and Policy Based Reinforcement Learning. In 31st Conference on Neural Information Processing Systems, 2017. ",
|
| 1336 |
+
"bbox": [
|
| 1337 |
+
176,
|
| 1338 |
+
337,
|
| 1339 |
+
825,
|
| 1340 |
+
380
|
| 1341 |
+
],
|
| 1342 |
+
"page_idx": 10
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"type": "text",
|
| 1346 |
+
"text": "Brendan O’Donoghue, Remi Munos, Koray Kavukcuoglu, and Volodymyr Mnih. Combining policy ´ gradient and Q-learning. arXiv preprint arXiv:1611.01626v3, 2017. ",
|
| 1347 |
+
"bbox": [
|
| 1348 |
+
169,
|
| 1349 |
+
388,
|
| 1350 |
+
823,
|
| 1351 |
+
419
|
| 1352 |
+
],
|
| 1353 |
+
"page_idx": 10
|
| 1354 |
+
},
|
| 1355 |
+
{
|
| 1356 |
+
"type": "text",
|
| 1357 |
+
"text": "Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard L Lewis, and Satinder Singh. Action-Conditional Video Prediction using Deep Networks in Atari Games. In Advances in Neural Information Processing Systems, pp. 2863–2871, 2015. ",
|
| 1358 |
+
"bbox": [
|
| 1359 |
+
174,
|
| 1360 |
+
428,
|
| 1361 |
+
823,
|
| 1362 |
+
470
|
| 1363 |
+
],
|
| 1364 |
+
"page_idx": 10
|
| 1365 |
+
},
|
| 1366 |
+
{
|
| 1367 |
+
"type": "text",
|
| 1368 |
+
"text": "Junhyuk Oh, Valliappa Chockalingam, Satinder Singh, and Honglak Lee. Control of memory, active perception, and action in minecraft. In Proceedings of The 33rd International Conference on Machine Learning, pp. 2790–2799, 2016. ",
|
| 1369 |
+
"bbox": [
|
| 1370 |
+
174,
|
| 1371 |
+
479,
|
| 1372 |
+
823,
|
| 1373 |
+
523
|
| 1374 |
+
],
|
| 1375 |
+
"page_idx": 10
|
| 1376 |
+
},
|
| 1377 |
+
{
|
| 1378 |
+
"type": "text",
|
| 1379 |
+
"text": "Xue Bin Peng, Glen Berseth, and Michiel van de Penne. Terrain-Adaptive Locomotion Skills Using Deep Reinforcement Learning. ACM Transactions on Graphics, 35(4):81, 2016. ",
|
| 1380 |
+
"bbox": [
|
| 1381 |
+
173,
|
| 1382 |
+
531,
|
| 1383 |
+
820,
|
| 1384 |
+
561
|
| 1385 |
+
],
|
| 1386 |
+
"page_idx": 10
|
| 1387 |
+
},
|
| 1388 |
+
{
|
| 1389 |
+
"type": "text",
|
| 1390 |
+
"text": "Stephane Ross and J. Andrew Bagnell. Reinforcement and Imitation Learning via Interactive No-´ Regret Learning. arXiv preprint arXiv:1406.5979v1, 2014. ",
|
| 1391 |
+
"bbox": [
|
| 1392 |
+
171,
|
| 1393 |
+
570,
|
| 1394 |
+
821,
|
| 1395 |
+
601
|
| 1396 |
+
],
|
| 1397 |
+
"page_idx": 10
|
| 1398 |
+
},
|
| 1399 |
+
{
|
| 1400 |
+
"type": "text",
|
| 1401 |
+
"text": "Stephane Ross, Geoffrey J. Gordon, and J. Andrew Bagnell. A Reduction of Imitation Learning and ´ Structured Prediction to No-Regret Online Learning. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, pp. 627–635, 2011. ",
|
| 1402 |
+
"bbox": [
|
| 1403 |
+
174,
|
| 1404 |
+
608,
|
| 1405 |
+
823,
|
| 1406 |
+
652
|
| 1407 |
+
],
|
| 1408 |
+
"page_idx": 10
|
| 1409 |
+
},
|
| 1410 |
+
{
|
| 1411 |
+
"type": "text",
|
| 1412 |
+
"text": "John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In Proceedings of the 32nd International Conference on Machine Learning (ICML-15), pp. 1889–1897, 2015. ",
|
| 1413 |
+
"bbox": [
|
| 1414 |
+
173,
|
| 1415 |
+
661,
|
| 1416 |
+
823,
|
| 1417 |
+
704
|
| 1418 |
+
],
|
| 1419 |
+
"page_idx": 10
|
| 1420 |
+
},
|
| 1421 |
+
{
|
| 1422 |
+
"type": "text",
|
| 1423 |
+
"text": "John Schulman, Philipp Moritz, Sergey Levine, Michael I. Jordan, and Pieter Abbeel. HighDimensional Continuous Control Using Generalized Advantage Estimation. arXiv preprint arXiv:1506.02438v5, 2016. ",
|
| 1424 |
+
"bbox": [
|
| 1425 |
+
173,
|
| 1426 |
+
713,
|
| 1427 |
+
823,
|
| 1428 |
+
756
|
| 1429 |
+
],
|
| 1430 |
+
"page_idx": 10
|
| 1431 |
+
},
|
| 1432 |
+
{
|
| 1433 |
+
"type": "text",
|
| 1434 |
+
"text": "John Schulman, Xi Chen, and Pieter Abbeel. Equivalence Between Policy Gradients and Soft QLearning. arXiv preprint arXiv:1704.06440v1, 2017. ",
|
| 1435 |
+
"bbox": [
|
| 1436 |
+
168,
|
| 1437 |
+
765,
|
| 1438 |
+
823,
|
| 1439 |
+
795
|
| 1440 |
+
],
|
| 1441 |
+
"page_idx": 10
|
| 1442 |
+
},
|
| 1443 |
+
{
|
| 1444 |
+
"type": "text",
|
| 1445 |
+
"text": "Csaba Szepesvari. The Asymptotic Convergence-Rate of Q-learning. In ´ Advances in Neural Information Processing Systems, pp. 1064–1070, 1998. ",
|
| 1446 |
+
"bbox": [
|
| 1447 |
+
171,
|
| 1448 |
+
804,
|
| 1449 |
+
823,
|
| 1450 |
+
833
|
| 1451 |
+
],
|
| 1452 |
+
"page_idx": 10
|
| 1453 |
+
},
|
| 1454 |
+
{
|
| 1455 |
+
"type": "text",
|
| 1456 |
+
"text": "Oskari Tammelin. Solving Large Imperfect Information Games Using $\\mathrm { C F R + }$ . arXiv preprint arXiv:1407.5042v1, 2014. ",
|
| 1457 |
+
"bbox": [
|
| 1458 |
+
171,
|
| 1459 |
+
842,
|
| 1460 |
+
823,
|
| 1461 |
+
872
|
| 1462 |
+
],
|
| 1463 |
+
"page_idx": 10
|
| 1464 |
+
},
|
| 1465 |
+
{
|
| 1466 |
+
"type": "text",
|
| 1467 |
+
"text": "Oskari Tammelin, Neil Burch, Michael Johanson, and Michael Bowling. Solving Heads-up Limit Texas Hold’em. In Proceedings of the 24th International Joint Conference on Artificial Intelligence, 2015. ",
|
| 1468 |
+
"bbox": [
|
| 1469 |
+
174,
|
| 1470 |
+
881,
|
| 1471 |
+
825,
|
| 1472 |
+
924
|
| 1473 |
+
],
|
| 1474 |
+
"page_idx": 10
|
| 1475 |
+
},
|
| 1476 |
+
{
|
| 1477 |
+
"type": "text",
|
| 1478 |
+
"text": "Hado van Hasselt and Marco A. Wiering. Reinforcement Learning in Continuous Action Spaces. In Proceedings of the 2007 IEEE Symposium on Approximate Dynamic Programming and Reinforcement Learning, pp. 272–279, 2007. ",
|
| 1479 |
+
"bbox": [
|
| 1480 |
+
176,
|
| 1481 |
+
103,
|
| 1482 |
+
820,
|
| 1483 |
+
146
|
| 1484 |
+
],
|
| 1485 |
+
"page_idx": 11
|
| 1486 |
+
},
|
| 1487 |
+
{
|
| 1488 |
+
"type": "text",
|
| 1489 |
+
"text": "Hado van Hasselt, Arthur Guez, and David Silver. Deep Reinforcement Learning and Double QLearning. In Proceedings of the Thirtieth AAAI Conference on Artificial Intelligence, 2016. ",
|
| 1490 |
+
"bbox": [
|
| 1491 |
+
171,
|
| 1492 |
+
155,
|
| 1493 |
+
823,
|
| 1494 |
+
184
|
| 1495 |
+
],
|
| 1496 |
+
"page_idx": 11
|
| 1497 |
+
},
|
| 1498 |
+
{
|
| 1499 |
+
"type": "text",
|
| 1500 |
+
"text": "Ziyu Wang, Tom Schaul, Matteo Hessel, Hado van Hasselt, Marc Lanctot, and Nando de Freitas. Dueling Network Architectures for Deep Reinforcement Learning. In Proceedings of the $3 3 r d$ International Conference on Machine Learning, pp. 1995–2003, 2016. ",
|
| 1501 |
+
"bbox": [
|
| 1502 |
+
176,
|
| 1503 |
+
193,
|
| 1504 |
+
823,
|
| 1505 |
+
236
|
| 1506 |
+
],
|
| 1507 |
+
"page_idx": 11
|
| 1508 |
+
},
|
| 1509 |
+
{
|
| 1510 |
+
"type": "text",
|
| 1511 |
+
"text": "Ziyu Wang, Victor Bapst, Nicolas Heess, Volodymyr Mnih, Remi Munos, Koray Kavukcuoglu, and Nando de Freitas. Sample Efficient Actor-Critic with Experience Replay. arXiv preprint arXiv:1611.01224v2, 2017. ",
|
| 1512 |
+
"bbox": [
|
| 1513 |
+
173,
|
| 1514 |
+
243,
|
| 1515 |
+
823,
|
| 1516 |
+
286
|
| 1517 |
+
],
|
| 1518 |
+
"page_idx": 11
|
| 1519 |
+
},
|
| 1520 |
+
{
|
| 1521 |
+
"type": "text",
|
| 1522 |
+
"text": "Kevin Waugh, Dustin Morrill, J. Andrew Bagnell, and Michael Bowling. Solving Games with Functional Regret Estimation. In Workshops at the Twenty-Ninth AAAI Conference on Artificial Intelligence, 2015. Supplementary material in arXiv preprint arXiv:1411.7974v2. ",
|
| 1523 |
+
"bbox": [
|
| 1524 |
+
174,
|
| 1525 |
+
295,
|
| 1526 |
+
826,
|
| 1527 |
+
338
|
| 1528 |
+
],
|
| 1529 |
+
"page_idx": 11
|
| 1530 |
+
},
|
| 1531 |
+
{
|
| 1532 |
+
"type": "text",
|
| 1533 |
+
"text": "Martin Zinkevich, Michael Johanson, Michael H. Bowling, and Carmelo Piccione. Regret Minimization in Games with Incomplete Information. In Advances in Neural Information Processing Systems 20, pp. 1729–1736, 2007. ",
|
| 1534 |
+
"bbox": [
|
| 1535 |
+
174,
|
| 1536 |
+
348,
|
| 1537 |
+
825,
|
| 1538 |
+
390
|
| 1539 |
+
],
|
| 1540 |
+
"page_idx": 11
|
| 1541 |
+
},
|
| 1542 |
+
{
|
| 1543 |
+
"type": "text",
|
| 1544 |
+
"text": "6 APPENDIX ",
|
| 1545 |
+
"text_level": 1,
|
| 1546 |
+
"bbox": [
|
| 1547 |
+
174,
|
| 1548 |
+
102,
|
| 1549 |
+
294,
|
| 1550 |
+
117
|
| 1551 |
+
],
|
| 1552 |
+
"page_idx": 12
|
| 1553 |
+
},
|
| 1554 |
+
{
|
| 1555 |
+
"type": "text",
|
| 1556 |
+
"text": "6.1 EXPERIMENTAL DETAILS ",
|
| 1557 |
+
"text_level": 1,
|
| 1558 |
+
"bbox": [
|
| 1559 |
+
174,
|
| 1560 |
+
142,
|
| 1561 |
+
388,
|
| 1562 |
+
156
|
| 1563 |
+
],
|
| 1564 |
+
"page_idx": 12
|
| 1565 |
+
},
|
| 1566 |
+
{
|
| 1567 |
+
"type": "text",
|
| 1568 |
+
"text": "6.1.1 PONG (ARCADE LEARNING ENVIRONMENT) ",
|
| 1569 |
+
"text_level": 1,
|
| 1570 |
+
"bbox": [
|
| 1571 |
+
174,
|
| 1572 |
+
174,
|
| 1573 |
+
535,
|
| 1574 |
+
189
|
| 1575 |
+
],
|
| 1576 |
+
"page_idx": 12
|
| 1577 |
+
},
|
| 1578 |
+
{
|
| 1579 |
+
"type": "text",
|
| 1580 |
+
"text": "We use the preprocessing and convolutional network model of (Mnih et al., 2013). Specifically, we view every 4th emulator frame, convert the raw frames to grayscale, and perform downsampling to generate a single observed frame. The input observation of the convnet is a concatenation of the most recent frames (either 4 frames or 1 frame). The convnet consists of an $8 \\times 8$ convolution with stride 4 and 16 filters followed by ReLU, a $4 \\times 4$ convolution with stride 2 and 32 filters followed by ReLU, a linear map with 256 filters followed by ReLU, and a linear map with $| { \\cal A } |$ filters where $| { \\cal A } |$ is the action space cardinality $\\lvert \\lvert A \\rvert = 6$ for Pong). ",
|
| 1581 |
+
"bbox": [
|
| 1582 |
+
174,
|
| 1583 |
+
205,
|
| 1584 |
+
825,
|
| 1585 |
+
304
|
| 1586 |
+
],
|
| 1587 |
+
"page_idx": 12
|
| 1588 |
+
},
|
| 1589 |
+
{
|
| 1590 |
+
"type": "text",
|
| 1591 |
+
"text": "We used Adam with a constant learning rate of $\\alpha = 1 0 ^ { - 4 }$ , a minibatch size of 32, and the moment decay rates set to their defaults $\\beta _ { 1 } = 0 . 9$ and $\\beta _ { 2 } = 0 . 9 9 9$ . Our results on each method are averaged across 3 random seeds. ",
|
| 1592 |
+
"bbox": [
|
| 1593 |
+
174,
|
| 1594 |
+
309,
|
| 1595 |
+
825,
|
| 1596 |
+
352
|
| 1597 |
+
],
|
| 1598 |
+
"page_idx": 12
|
| 1599 |
+
},
|
| 1600 |
+
{
|
| 1601 |
+
"type": "text",
|
| 1602 |
+
"text": "We ran ARM with the hyperparameters: sampling batch size of 12500, 4000/3000 minibatches of Adam for the first/subsequent sampling iterations respectively, and target update step size $\\tau = 0 . 0 1$ . Double DQN uses the tuned hyperparameters (van Hasselt et al., 2016). Note that our choice of ARM hyperparameters yields an equivalent number of minibatch gradient updates per sample as used by DQN and double DQN, i.e. 1 minibatch gradient update per 4 simulator steps. ",
|
| 1603 |
+
"bbox": [
|
| 1604 |
+
174,
|
| 1605 |
+
358,
|
| 1606 |
+
825,
|
| 1607 |
+
429
|
| 1608 |
+
],
|
| 1609 |
+
"page_idx": 12
|
| 1610 |
+
},
|
| 1611 |
+
{
|
| 1612 |
+
"type": "text",
|
| 1613 |
+
"text": "6.1.2 DOOM (VIZDOOM) ",
|
| 1614 |
+
"text_level": 1,
|
| 1615 |
+
"bbox": [
|
| 1616 |
+
176,
|
| 1617 |
+
459,
|
| 1618 |
+
364,
|
| 1619 |
+
474
|
| 1620 |
+
],
|
| 1621 |
+
"page_idx": 12
|
| 1622 |
+
},
|
| 1623 |
+
{
|
| 1624 |
+
"type": "text",
|
| 1625 |
+
"text": "We used a convolutional network architecture similar to those of (Kempka et al., 2016) and (Dosovitskiy & Koltun, 2017). The Doom screen was rendered at a resolution of $1 6 0 \\times 1 2 0$ and downsized to $8 4 \\times 8 4$ . Only every 4th frame was rendered, and the input observation to the convnet is a concatenation of the last 4 rendered RGB frames for a total of 12 input channels. The convnet contains 3 convolutions with 32 filters each: the first is size $8 \\times 8$ with stride 4, the second is size $4 \\times 4$ with stride 2, and the third is size $3 \\times 3$ with stride 1. The final convolution is followed by a linear map with 1024 filters. A second linear map yields the output. Hidden activations are gated by ReLUs. ",
|
| 1626 |
+
"bbox": [
|
| 1627 |
+
174,
|
| 1628 |
+
489,
|
| 1629 |
+
825,
|
| 1630 |
+
588
|
| 1631 |
+
],
|
| 1632 |
+
"page_idx": 12
|
| 1633 |
+
},
|
| 1634 |
+
{
|
| 1635 |
+
"type": "text",
|
| 1636 |
+
"text": "For “HealthGathering” only, we scaled rewards by a factor of 0.01. We did not scale rewards for “MyWayHome.” We used Adam with a constant learning rate of $\\alpha = 1 0 ^ { - 5 }$ and a minibatch size of 32 to train all networks (except TRPO). For “HealthGathering” we set $\\beta _ { 1 } = 0 . 9 5$ , whereas for “MyWayHome” we set $\\beta _ { 1 } = 0 . 9$ . We set $\\beta _ { 2 } = 0 . 9 9 9$ for both scenarios. Our results on each method are averaged across 3 random seeds. ",
|
| 1637 |
+
"bbox": [
|
| 1638 |
+
174,
|
| 1639 |
+
594,
|
| 1640 |
+
825,
|
| 1641 |
+
665
|
| 1642 |
+
],
|
| 1643 |
+
"page_idx": 12
|
| 1644 |
+
},
|
| 1645 |
+
{
|
| 1646 |
+
"type": "text",
|
| 1647 |
+
"text": "Double DQN and dueling double DQN: $n = 5$ step returns; update interval 30000; 1 minibatch gradient update per 4 simulator steps; replay memory uniform initialization size 50000; replay memory maximum size 240000; exploration period 240000; with final exploration rate $\\epsilon = 0 . 0 1$ . ",
|
| 1648 |
+
"bbox": [
|
| 1649 |
+
174,
|
| 1650 |
+
671,
|
| 1651 |
+
825,
|
| 1652 |
+
713
|
| 1653 |
+
],
|
| 1654 |
+
"page_idx": 12
|
| 1655 |
+
},
|
| 1656 |
+
{
|
| 1657 |
+
"type": "text",
|
| 1658 |
+
"text": "A3C: 16 workers; $n = 2 0$ steps for “HealthGathering” and $n = 4 0$ steps for “MyWayHome”; \nnegentropy regularization $\\beta = 0 . 0 1$ ; and gradient norm clip 5. ",
|
| 1659 |
+
"bbox": [
|
| 1660 |
+
174,
|
| 1661 |
+
719,
|
| 1662 |
+
821,
|
| 1663 |
+
750
|
| 1664 |
+
],
|
| 1665 |
+
"page_idx": 12
|
| 1666 |
+
},
|
| 1667 |
+
{
|
| 1668 |
+
"type": "text",
|
| 1669 |
+
"text": "TRPO: sampling batch size 12500; KL-divergence step size $\\delta = 0 . 0 1$ ; 10 conjugate gradient iterations; and Fisher information/Gauss-Newton damping coefficient $\\lambda = 0 . 1$ . ",
|
| 1670 |
+
"bbox": [
|
| 1671 |
+
171,
|
| 1672 |
+
755,
|
| 1673 |
+
821,
|
| 1674 |
+
784
|
| 1675 |
+
],
|
| 1676 |
+
"page_idx": 12
|
| 1677 |
+
},
|
| 1678 |
+
{
|
| 1679 |
+
"type": "text",
|
| 1680 |
+
"text": "ARM: $n = 5$ step returns; sampling batch size 12500; 4000 Adam minibatches in the first sampling iteration, 3000 Adam minibatches in all subsequent sampling iterations; target update step size $\\tau = 0 . 0 1$ . Again, our choice of ARM hyperparameters yields an equivalent number of minibatch gradient updates per sample as used by DQN and double DQN. For “HealthGathering” only, because ARM converges so quickly we annealed the Adam learning rate to $\\alpha = 2 . 5 \\times 1 0 ^ { - 6 }$ after 500000 elapsed simulator steps. ",
|
| 1681 |
+
"bbox": [
|
| 1682 |
+
174,
|
| 1683 |
+
790,
|
| 1684 |
+
825,
|
| 1685 |
+
875
|
| 1686 |
+
],
|
| 1687 |
+
"page_idx": 12
|
| 1688 |
+
},
|
| 1689 |
+
{
|
| 1690 |
+
"type": "text",
|
| 1691 |
+
"text": "Off-policy ARM: $n = 5$ step returns; sampling batch size 1563, replay cache sample size 25000; 400 Adam minibatches per sampling iteration; target update step size $\\tau = 0 . 0 1$ ; and importance sampling weight clip $c = 1$ . ",
|
| 1692 |
+
"bbox": [
|
| 1693 |
+
176,
|
| 1694 |
+
882,
|
| 1695 |
+
823,
|
| 1696 |
+
924
|
| 1697 |
+
],
|
| 1698 |
+
"page_idx": 12
|
| 1699 |
+
},
|
| 1700 |
+
{
|
| 1701 |
+
"type": "text",
|
| 1702 |
+
"text": "6.1.3 MINECRAFT (MALMO¨ ) ",
|
| 1703 |
+
"text_level": 1,
|
| 1704 |
+
"bbox": [
|
| 1705 |
+
174,
|
| 1706 |
+
103,
|
| 1707 |
+
388,
|
| 1708 |
+
118
|
| 1709 |
+
],
|
| 1710 |
+
"page_idx": 13
|
| 1711 |
+
},
|
| 1712 |
+
{
|
| 1713 |
+
"type": "text",
|
| 1714 |
+
"text": "Our Minecraft tasks generally were the same as the ones used by Matiisen et al. (2017), with a few differences. Instead of using a continuous action space, we used a discrete action space with 4 move and turn actions. To aid learning on the last level (“L5”), we removed the reward penalty upon episode timeout and we increased the timeout on “L5” from 45 seconds to 75 seconds due to the larger size of the environment. We scaled rewards for all levels by 0.001. ",
|
| 1715 |
+
"bbox": [
|
| 1716 |
+
173,
|
| 1717 |
+
127,
|
| 1718 |
+
825,
|
| 1719 |
+
198
|
| 1720 |
+
],
|
| 1721 |
+
"page_idx": 13
|
| 1722 |
+
},
|
| 1723 |
+
{
|
| 1724 |
+
"type": "text",
|
| 1725 |
+
"text": "We use the same convolutional network architecture for Minecraft as we used for ViZDoom in Section 4.2. The Minecraft screen was rendered at a resolution of $3 2 0 \\times 2 4 0$ and downsized to $8 4 \\times$ 84. Only every 5th frame was rendered, and the input observation of the convnet is a concatenation of the last 4 rendered RGB frames for a total of 12 input channels. We used Adam with constant learning rate $\\alpha = 1 0 ^ { - 5 }$ , moment decay rates $\\beta _ { 1 } = 0 . 9$ and $\\beta _ { 2 } = 0 . 9 9 9$ , and minibatch size 32 to train all networks (except TRPO). Our results on each method are averaged across 5 random seeds. ",
|
| 1726 |
+
"bbox": [
|
| 1727 |
+
174,
|
| 1728 |
+
204,
|
| 1729 |
+
825,
|
| 1730 |
+
289
|
| 1731 |
+
],
|
| 1732 |
+
"page_idx": 13
|
| 1733 |
+
},
|
| 1734 |
+
{
|
| 1735 |
+
"type": "text",
|
| 1736 |
+
"text": "Double DQN and dueling double DQN: $n = 5$ step returns; update interval 12500; 1 minibatch gradient update per 4 simulator steps; replay memory uniform initialization size 12500; replay memory maximum size 62500; exploration period 62500; with final exploration rate $\\epsilon = 0 . 0 1$ . ",
|
| 1737 |
+
"bbox": [
|
| 1738 |
+
174,
|
| 1739 |
+
295,
|
| 1740 |
+
825,
|
| 1741 |
+
338
|
| 1742 |
+
],
|
| 1743 |
+
"page_idx": 13
|
| 1744 |
+
},
|
| 1745 |
+
{
|
| 1746 |
+
"type": "text",
|
| 1747 |
+
"text": "TRPO: sampling batch size 6250; KL-divergence step size $\\delta = 0 . 0 1$ ; 10 conjugate gradient iterations; and Fisher information/Gauss-Newton damping coefficient $\\lambda = 0 . 1$ . ",
|
| 1748 |
+
"bbox": [
|
| 1749 |
+
169,
|
| 1750 |
+
343,
|
| 1751 |
+
823,
|
| 1752 |
+
373
|
| 1753 |
+
],
|
| 1754 |
+
"page_idx": 13
|
| 1755 |
+
},
|
| 1756 |
+
{
|
| 1757 |
+
"type": "text",
|
| 1758 |
+
"text": "ARM: $n = 5$ step returns; sampling batch size 12500; 4000 Adam minibatches in the first sampling iteration, 3000 Adam minibatches in all subsequent sampling iterations; target update step size $\\tau = 0 . 0 1$ . ",
|
| 1759 |
+
"bbox": [
|
| 1760 |
+
174,
|
| 1761 |
+
378,
|
| 1762 |
+
825,
|
| 1763 |
+
421
|
| 1764 |
+
],
|
| 1765 |
+
"page_idx": 13
|
| 1766 |
+
},
|
| 1767 |
+
{
|
| 1768 |
+
"type": "text",
|
| 1769 |
+
"text": "6.2 OFF-POLICY ARM VIA IMPORTANCE SAMPLING ",
|
| 1770 |
+
"text_level": 1,
|
| 1771 |
+
"bbox": [
|
| 1772 |
+
174,
|
| 1773 |
+
438,
|
| 1774 |
+
547,
|
| 1775 |
+
452
|
| 1776 |
+
],
|
| 1777 |
+
"page_idx": 13
|
| 1778 |
+
},
|
| 1779 |
+
{
|
| 1780 |
+
"type": "text",
|
| 1781 |
+
"text": "Our current approach to running ARM with off-policy data consists of applying an importance sampling correction directly to the $n$ -step returns. Given the behavior policy $\\mu$ under which the data was sampled, the current policy $\\pi _ { t }$ under which we want to perform estimation, and an importance sampling weight clip $c$ for variance reduction, the corrected $n$ -step return we use is: ",
|
| 1782 |
+
"bbox": [
|
| 1783 |
+
174,
|
| 1784 |
+
463,
|
| 1785 |
+
825,
|
| 1786 |
+
520
|
| 1787 |
+
],
|
| 1788 |
+
"page_idx": 13
|
| 1789 |
+
},
|
| 1790 |
+
{
|
| 1791 |
+
"type": "equation",
|
| 1792 |
+
"img_path": "images/00de119b584548f124d2ae0529ead548b6420a81912d6aca99411541e38eb2bf.jpg",
|
| 1793 |
+
"text": "$$\ng _ { k } ^ { n } ( \\mu \\| \\pi _ { t } ) = \\sum _ { k ^ { \\prime } = k } ^ { k + n - 1 } \\gamma ^ { k ^ { \\prime } - k } \\left( \\prod _ { \\ell = k } ^ { k ^ { \\prime } } w _ { \\mu \\| \\pi _ { t } } ( a _ { \\ell } | o _ { \\ell } ) \\right) r _ { k ^ { \\prime } }\n$$",
|
| 1794 |
+
"text_format": "latex",
|
| 1795 |
+
"bbox": [
|
| 1796 |
+
330,
|
| 1797 |
+
522,
|
| 1798 |
+
666,
|
| 1799 |
+
571
|
| 1800 |
+
],
|
| 1801 |
+
"page_idx": 13
|
| 1802 |
+
},
|
| 1803 |
+
{
|
| 1804 |
+
"type": "text",
|
| 1805 |
+
"text": "where the truncated importance weight $\\scriptstyle w _ { \\mu \\parallel \\pi _ { t } } ( a | o )$ is defined (Ionides, 2008): ",
|
| 1806 |
+
"bbox": [
|
| 1807 |
+
174,
|
| 1808 |
+
574,
|
| 1809 |
+
684,
|
| 1810 |
+
590
|
| 1811 |
+
],
|
| 1812 |
+
"page_idx": 13
|
| 1813 |
+
},
|
| 1814 |
+
{
|
| 1815 |
+
"type": "equation",
|
| 1816 |
+
"img_path": "images/ae61e9bf15c0a5fe19a559673152ce4c73d7747c3620d39c649fbf182a54c1de.jpg",
|
| 1817 |
+
"text": "$$\nw _ { \\boldsymbol { \\mu } \\parallel \\pi _ { t } } ( a | o ) = \\operatorname* { m i n } \\left( c , \\frac { \\pi _ { t } ( a | o ) } { \\mu ( a | o ) } \\right) .\n$$",
|
| 1818 |
+
"text_format": "latex",
|
| 1819 |
+
"bbox": [
|
| 1820 |
+
385,
|
| 1821 |
+
593,
|
| 1822 |
+
612,
|
| 1823 |
+
627
|
| 1824 |
+
],
|
| 1825 |
+
"page_idx": 13
|
| 1826 |
+
},
|
| 1827 |
+
{
|
| 1828 |
+
"type": "text",
|
| 1829 |
+
"text": "Our choice of $c = 1$ in our experiments was inspired by Wang et al. (2017). We found that $c = 1$ worked well but note other choices for $c$ may also be reasonable. ",
|
| 1830 |
+
"bbox": [
|
| 1831 |
+
174,
|
| 1832 |
+
628,
|
| 1833 |
+
823,
|
| 1834 |
+
657
|
| 1835 |
+
],
|
| 1836 |
+
"page_idx": 13
|
| 1837 |
+
},
|
| 1838 |
+
{
|
| 1839 |
+
"type": "text",
|
| 1840 |
+
"text": "When applying our importance sampling correction, we preserve all details of the ARM algorithm except for two aspects: the transition sampling strategy (a finite memory of previous batches are cached and uniformly sampled) and the regression targets for learning the value functions. Specifically, the regression targets $v ( o _ { k } ; \\varphi )$ , $q ( o _ { k } , a _ { k } ; \\varphi )$ , and $\\bar { q } ^ { + } ( o _ { k } , a _ { k } ; \\bar { \\varphi } )$ (Equations (11)–(13)) are modified to the following: ",
|
| 1841 |
+
"bbox": [
|
| 1842 |
+
174,
|
| 1843 |
+
664,
|
| 1844 |
+
825,
|
| 1845 |
+
734
|
| 1846 |
+
],
|
| 1847 |
+
"page_idx": 13
|
| 1848 |
+
},
|
| 1849 |
+
{
|
| 1850 |
+
"type": "equation",
|
| 1851 |
+
"img_path": "images/e261536418495d6a281284211e30b69430a5e175be5aab9fc5b30e7501eb253d.jpg",
|
| 1852 |
+
"text": "$$\n\\begin{array} { r l } & { \\quad v _ { \\mu \\parallel \\pi _ { t } } ( o _ { k } ; \\varphi ) = g _ { k } ^ { n } ( \\mu \\| \\pi _ { t } ) + \\gamma ^ { n } V ^ { \\prime } ( o _ { k + n } ; \\varphi ) } \\\\ & { \\quad q _ { \\mu \\parallel \\pi _ { t } } ( o _ { k } , a _ { k } ; \\varphi ) = r _ { k } + \\gamma w _ { \\mu \\parallel \\pi _ { t } } ( a _ { k } | o _ { k } ) g _ { k + 1 } ^ { n - 1 } ( \\mu \\| \\pi _ { t } ) + \\gamma ^ { n } V ^ { \\prime } ( o _ { k + n } ; \\varphi ) } \\\\ & { \\quad \\bar { q } _ { \\mu \\parallel \\pi _ { t } } ^ { + } ( o _ { k } , a _ { k } ; \\varphi ) = \\operatorname* { m a x } ( 0 , \\bar { Q } _ { t - 1 } ^ { + } ( o _ { k } , a _ { k } ; \\omega _ { t - 1 } ) - V _ { \\pi _ { t - 1 } } ( o _ { k } ; \\theta _ { t - 1 } ) ) + q _ { \\mu \\parallel \\pi _ { t } } ( o _ { k } , a _ { k } ; \\varphi ) . } \\end{array}\n$$",
|
| 1853 |
+
"text_format": "latex",
|
| 1854 |
+
"bbox": [
|
| 1855 |
+
199,
|
| 1856 |
+
734,
|
| 1857 |
+
771,
|
| 1858 |
+
797
|
| 1859 |
+
],
|
| 1860 |
+
"page_idx": 13
|
| 1861 |
+
},
|
| 1862 |
+
{
|
| 1863 |
+
"type": "text",
|
| 1864 |
+
"text": "Note that the target value function $V ^ { \\prime } ( o _ { k + n } ; \\varphi )$ does not require an importance sampling correction because $V ^ { \\prime }$ already approximates the on-policy value function $V _ { \\pi _ { t } } \\big ( o _ { k + n } ; \\theta _ { t } \\big )$ . ",
|
| 1865 |
+
"bbox": [
|
| 1866 |
+
173,
|
| 1867 |
+
800,
|
| 1868 |
+
823,
|
| 1869 |
+
830
|
| 1870 |
+
],
|
| 1871 |
+
"page_idx": 13
|
| 1872 |
+
},
|
| 1873 |
+
{
|
| 1874 |
+
"type": "text",
|
| 1875 |
+
"text": "6.3 ADDITIONAL EXPERIMENTS ",
|
| 1876 |
+
"text_level": 1,
|
| 1877 |
+
"bbox": [
|
| 1878 |
+
174,
|
| 1879 |
+
845,
|
| 1880 |
+
408,
|
| 1881 |
+
859
|
| 1882 |
+
],
|
| 1883 |
+
"page_idx": 13
|
| 1884 |
+
},
|
| 1885 |
+
{
|
| 1886 |
+
"type": "text",
|
| 1887 |
+
"text": "6.3.1 ATARI 2600 GAMES ",
|
| 1888 |
+
"text_level": 1,
|
| 1889 |
+
"bbox": [
|
| 1890 |
+
176,
|
| 1891 |
+
871,
|
| 1892 |
+
366,
|
| 1893 |
+
886
|
| 1894 |
+
],
|
| 1895 |
+
"page_idx": 13
|
| 1896 |
+
},
|
| 1897 |
+
{
|
| 1898 |
+
"type": "text",
|
| 1899 |
+
"text": "Although our primary interest is in partially observable reinforcement learning domains, we also want to check that ARM works in nearly fully observable and Markovian environments, such as ",
|
| 1900 |
+
"bbox": [
|
| 1901 |
+
174,
|
| 1902 |
+
895,
|
| 1903 |
+
825,
|
| 1904 |
+
924
|
| 1905 |
+
],
|
| 1906 |
+
"page_idx": 13
|
| 1907 |
+
},
|
| 1908 |
+
{
|
| 1909 |
+
"type": "text",
|
| 1910 |
+
"text": "Atari 2600 games. We consider two baselines: double deep Q-learning, and double deep fitted Qiteration which is a batch counterpart to double DQN. We find that double deep Q-learning is a strong baseline for learning to play Atari games, although ARM still successfully learns interesting policies. One major benefit of Q-learning-based methods is the ability to utilize a large off-policy replay memory. Our results on a suite of Atari games are in Figure 5. ",
|
| 1911 |
+
"bbox": [
|
| 1912 |
+
174,
|
| 1913 |
+
103,
|
| 1914 |
+
825,
|
| 1915 |
+
174
|
| 1916 |
+
],
|
| 1917 |
+
"page_idx": 14
|
| 1918 |
+
},
|
| 1919 |
+
{
|
| 1920 |
+
"type": "image",
|
| 1921 |
+
"img_path": "images/785ce79df806fb81361c2e129888ddc1c489cd18e3df2c9458a2b66c42dc610d.jpg",
|
| 1922 |
+
"image_caption": [
|
| 1923 |
+
"Figure 5: Comparing double deep Q-learning (orange), double deep fitted Q-iteration (red), and ARM (blue) on a suite of seven Atari games from the Arcade Learning Environment. For each method, we plot the mean across 3 trials along with standard error bars. "
|
| 1924 |
+
],
|
| 1925 |
+
"image_footnote": [],
|
| 1926 |
+
"bbox": [
|
| 1927 |
+
250,
|
| 1928 |
+
185,
|
| 1929 |
+
741,
|
| 1930 |
+
378
|
| 1931 |
+
],
|
| 1932 |
+
"page_idx": 14
|
| 1933 |
+
},
|
| 1934 |
+
{
|
| 1935 |
+
"type": "text",
|
| 1936 |
+
"text": "6.3.2 RECURRENCE IN DOOM MYWAYHOME",
|
| 1937 |
+
"text_level": 1,
|
| 1938 |
+
"bbox": [
|
| 1939 |
+
174,
|
| 1940 |
+
457,
|
| 1941 |
+
501,
|
| 1942 |
+
472
|
| 1943 |
+
],
|
| 1944 |
+
"page_idx": 14
|
| 1945 |
+
},
|
| 1946 |
+
{
|
| 1947 |
+
"type": "text",
|
| 1948 |
+
"text": "We evaluated the effect of recurrent policy and value function estimation in the maze-like MyWayHome scenario of ViZDoom. We found that recurrence has a small positive effect on the convergence of A2C (Mnih et al., 2016), but was much less significant than the choice of algorithm. Our hyperparameters were similar to those described for A3C in Section 6.1.2, except we used a learning rate $\\mathrm { \\dot { 1 } 0 ^ { - 4 } }$ and gradient norm clip 0.5. For the recurrent policy and value function, we replaced the first fully connected operation with an LSTM featuring an equivalent number of hidden units (1024). ",
|
| 1949 |
+
"bbox": [
|
| 1950 |
+
173,
|
| 1951 |
+
481,
|
| 1952 |
+
825,
|
| 1953 |
+
565
|
| 1954 |
+
],
|
| 1955 |
+
"page_idx": 14
|
| 1956 |
+
},
|
| 1957 |
+
{
|
| 1958 |
+
"type": "image",
|
| 1959 |
+
"img_path": "images/c2b69a73a11245bd1cb2c803496cf6279e9e9540805079b1798a35ff8d4befbc.jpg",
|
| 1960 |
+
"image_caption": [
|
| 1961 |
+
"Figure 6: Comparing A2C with a feedforward convolutional network (blue) and a recurrent convolutional-LSTM network (orange) on the ViZDoom scenario MyWayHome. "
|
| 1962 |
+
],
|
| 1963 |
+
"image_footnote": [],
|
| 1964 |
+
"bbox": [
|
| 1965 |
+
390,
|
| 1966 |
+
577,
|
| 1967 |
+
609,
|
| 1968 |
+
768
|
| 1969 |
+
],
|
| 1970 |
+
"page_idx": 14
|
| 1971 |
+
}
|
| 1972 |
+
]
|
parse/train/BkCV_W-AZ/BkCV_W-AZ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BkCV_W-AZ/BkCV_W-AZ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1zriGeCZ/H1zriGeCZ.md
ADDED
|
@@ -0,0 +1,461 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# HYPERPARAMETER OPTIMIZATION:A SPECTRAL APPROACH
|
| 2 |
+
|
| 3 |
+
Elad Hazan Princeton University and Google Brain ehazan@cs.princeton.edu
|
| 4 |
+
|
| 5 |
+
Adam Klivans Department of Computer Science University of Texas at Austin klivans@cs.utexas.edu
|
| 6 |
+
|
| 7 |
+
Yang Yuan
|
| 8 |
+
Department of Computer Science Cornell University
|
| 9 |
+
yangyuan@cs.cornell.edu
|
| 10 |
+
|
| 11 |
+
# ABSTRACT
|
| 12 |
+
|
| 13 |
+
We give a simple, fast algorithm for hyperparameter optimization inspired by techniques from the analysis of Boolean functions. We focus on the high-dimensional regime where the canonical example is training a neural network with a large number of hyperparameters. The algorithm — an iterative application of compressed sensing techniques for orthogonal polynomials — requires only uniform sampling of the hyperparameters and is thus easily parallelizable.
|
| 14 |
+
|
| 15 |
+
Experiments for training deep neural networks on Cifar-10 show that compared to state-of-the-art tools (e.g., Hyperband and Spearmint), our algorithm finds significantly improved solutions, in some cases better than what is attainable by handtuning. In terms of overall running time (i.e., time required to sample various settings of hyperparameters plus additional computation time), we are at least an order of magnitude faster than Hyperband and Bayesian Optimization. We also outperform Random Search $8 \times$ .
|
| 16 |
+
|
| 17 |
+
Our method is inspired by provably-efficient algorithms for learning decision trees using the discrete Fourier transform. We obtain improved sample-complexty bounds for learning decision trees while matching state-of-the-art bounds on running time (polynomial and quasipolynomial, respectively).
|
| 18 |
+
|
| 19 |
+
# 1 INTRODUCTION
|
| 20 |
+
|
| 21 |
+
Large scale machine learning and optimization systems usually involve a large number of free parameters for the user to fix according to their application. A timely example is the training of deep neural networks for a signal processing application: the ML specialist needs to decide on an architecture, depth of the network, choice of connectivity per layer (convolutional, fully-connected, etc.), choice of optimization algorithm and recursively choice of parameters inside the optimization library itself (learning rate, momentum, etc.).
|
| 22 |
+
|
| 23 |
+
Given a set of hyperparameters and their potential assignments, the naive practice is to search through the entire grid of parameter assignments and pick the one that performed the best, a.k.a. “grid search”. As the number of hyperparameters increases, the number of possible assignments increases exponentially and a grid search becomes quickly infeasible. It is thus crucial to find a method for automatic tuning of these parameters.
|
| 24 |
+
|
| 25 |
+
This auto-tuning, or finding a good setting of these parameters, is now referred to as hyperparameter optimization (HPO), or simply automatic machine learning (auto-ML). For continuous hyperparameters, gradient descent is usually the method of choice (Maclaurin et al., 2015; Luketina et al., 2015; Fu et al., 2016). Discrete parameters, however, such as choice of architecture, number of layers, connectivity and so forth are significantly more challenging. More formally, let
|
| 26 |
+
|
| 27 |
+
$$
|
| 28 |
+
f : \{ - 1 , 1 \} ^ { n } \mapsto [ 0 , 1 ]
|
| 29 |
+
$$
|
| 30 |
+
|
| 31 |
+
be a function mapping hyperparameter choices to test error of our model. That is, each dimension corresponds to a certain hyperparameter (number of layers, connectivity, etc.), and for simplicity of illustration we encode the choices for each parameter as binary numbers $\{ - 1 , 1 \}$ . The goal of HPO is to approximate the minimizer $\begin{array} { r } { x ^ { * } = \arg \operatorname* { m i n } _ { x \in \{ 0 , 1 \} ^ { n } } f ( x ) } \end{array}$ in the following setting:
|
| 32 |
+
|
| 33 |
+
1. Oracle model: evaluation of $f$ for a given choice of hyperparameters is assumed to be very expensive. Such is the case of training a given architecture of a huge dataset. 2. Parallelism is crucial: testing several model hyperparameters in parallel is entirely possible in cloud architecture, and dramatically reduces overall optimization time. 3. $f$ is structured.
|
| 34 |
+
|
| 35 |
+
The third point is very important since clearly HPO is information-theoretically hard and $2 ^ { n }$ evaluations of the function are necessary in the worst case. Different works have considered exploiting one or more of the properties above. The approach of Bayesian optimization (Snoek et al., 2012) addresses the structure of $f$ , and assumes that a useful prior distribution over the structure of $f$ is known in advance. Multi-armed bandit algorithms (Li et al., 2016), and Random Search (Bergstra & Bengio, 2012), exploit computational parallelism very well, but do not exploit any particular structure of $f ^ { 1 }$ . These approaches are surveyed in more detail later.
|
| 36 |
+
|
| 37 |
+
# 1.1 OUR CONTRIBUTION
|
| 38 |
+
|
| 39 |
+
In this paper we introduce a new spectral approach to hyperparameter optimization. Our main idea is to make assumptions on the structure of $f$ in the Fourier domain. Specifically we assume that $f$ can be approximated by a sparse and low degree polynomial in the Fourier basis. This means intuitively that it can be approximated well by a decision tree.
|
| 40 |
+
|
| 41 |
+
The implication of this assumption is that we can obtain a rigorous theoretical guarantee: approximate minimization of $f$ over the boolean hypercube with function evaluations only linear in sparsity that can be carried out in parallel. We further give improved heuristics on this basic construction and show experiments showing our assumptions are validated in practice for HPO as applied to deep learning over image datasets.
|
| 42 |
+
|
| 43 |
+
Thus our contributions can be listed as:
|
| 44 |
+
|
| 45 |
+
• A new spectral method called Harmonica that has provable guarantees: sample-efficient recovery if the underlying objective is a sparse (noisy) polynomial and easy to implement on parallel architectures. We demonstrate significant improvements in accuracy, sample complexity, and running time for deep neural net training experiments. We compare ourselves to state-of-the-art solvers from Bayesian optimization, Multi-armed bandit techniques, and Random Search. Projecting to even higher numbers of hyperparameters, we perform simulations that show several orders-of-magnitude of speedup versus Bayesian optimization techniques. Improved bounds on the sample complexity of learning noisy, size $s$ decision trees over $n$ variables under the uniform distribution. We observe that the classical sample complexity bound of $n ^ { O ( \log ( s / \varepsilon ) ) }$ due to Linial et al. (1993) can be improved to quadratic in the size of the tree ${ \tilde { O } } ( s ^ { 2 } / \varepsilon \cdot \log n )$ while matching the best known quasipolynomial bound in running time.
|
| 46 |
+
|
| 47 |
+
# 1.2 PREVIOUS WORK
|
| 48 |
+
|
| 49 |
+
The literature on discrete-domain HPO can be roughly divided into two: probabilistic approaches and decision-theoretic methods. In critical applications, researchers usually use a grid search over all parameter space, but that becomes quickly prohibitive as the number of hyperparameter grows. Gradient-based methods such as (Maclaurin et al., 2015; Luketina et al., 2015; Fu et al., 2016; Bengio, 2000) are applicable only to continuous hyperparameters which we do not consider. Neural network structural search based on reinforcement learning is an active direction (Baker et al., 2016; Zoph & Le, 2016; Zhong et al., 2017), which usually needs many samples of network architectures. 1 except that they could implicitly utilize smoothness or other local properties of the space.
|
| 50 |
+
|
| 51 |
+
Probabilistic methods and Bayesian optimization. Bayesian optimization (BO) algorithms (Bergstra et al., 2011; Snoek et al., 2012; Swersky et al., 2013; Snoek et al., 2014; Gardner et al., 2014; Wang et al., 2013; Ilievski et al., 2017) tune hyperparameters by assuming a prior distribution of the loss function, and then keep updating this prior distribution based on the new observations. Each new observation is selected according to an acquisition function, which balances exploration and exploitation such that the new observation gives us a better result, or helps gain more information. The BO approach is inherently serial and difficult to parallelize, and its theoretical guarantees have thus far been limited to statistical consistency (convergence in the limit).
|
| 52 |
+
|
| 53 |
+
Decision-theoretic methods. Perhaps the simplest approach to HPO is random sampling of different choices of parameters and picking the best amongst the chosen evaluations (Bergstra & Bengio, 2012). It is naturally very easy to implement and parallelize. Upon this simple technique, researchers have tried to allocate different budgets to the different evaluations, depending on their early performance. Using adaptive resource allocation techniques found in the multi-armed bandit literature, Successive Halving (SH) algorithm was introduced (Jamieson & Talwalkar, 2016). Hyperband further improves SH by automatically tuning the hyperparameters in SH (Li et al., 2016).
|
| 54 |
+
|
| 55 |
+
Learning decision trees. Prior work for learning decision trees (more generally Boolean functions that are approximated by low-degree polynomials) used the celebrated “low-degree” algorithm of Linial et al. (1993). Their algorithm uses random sampling to estimate each low-degree Fourier coefficient to high accuracy.
|
| 56 |
+
|
| 57 |
+
We make use of the approach of Stobbe & Krause (2012), who showed how to learn low-degree, sparse Boolean functions using tools from compressed sensing (similar approaches were taken by Kocaoglu et al. (2014) and Negahban & Shah (2012)). We observe that their approach can be extended to learn functions that are both “approximately sparse” (in the sense that the $L _ { 1 }$ norm of the coefficients is bounded) and “approximately low-degree” (in the sense that most of the $L _ { 2 }$ mass of the Fourier spectrum resides on monomials of low-degree). This implies the first decision tree learning algorithm with polynomial sample complexity that handles adversarial noise. In addition, we obtain the optimal dependence on the error parameter $\varepsilon$ .
|
| 58 |
+
|
| 59 |
+
For the problem of learning exactly $k$ -sparse Boolean functions over $n$ variables, Haviv & Regev (2015) have recently shown that $O ( n k \log n )$ uniformly random samples suffice. Their result is not algorithmic but does provide an upper bound on the information-theoretic problem of how many samples are required to learn. The best algorithm in terms of running time for learning $k$ -sparse Boolean functions is due to Feldman et al. (2009), and requires time $2 ^ { { \bar { \Omega } } ( n / \log n ) }$ . It is based on the Blum et al. (2003) algorithm for learning parities with noise.
|
| 60 |
+
|
| 61 |
+
Techniques. Our methods are heavily based on known results from the analysis of boolean functions as well as compressed sensing.
|
| 62 |
+
|
| 63 |
+
# 2 SETUP AND DEFINITIONS
|
| 64 |
+
|
| 65 |
+
The problem of hyperparameter optimization is that of minimizing a discrete, real-valued function, which we denote by $f : \{ - 1 , 1 \} ^ { n } \mapsto [ - 1 , 1 ]$ (we can handle arbitrary inputs, binary is chosen for simplicity of presentation).
|
| 66 |
+
|
| 67 |
+
In the context of hyperparameter optimization, function evaluation is very expensive, although parallelizable, as it corresponds to training a deep neural net. In contrast, any computation that does not involve function evaluation is considered less expensive, such as computations that require time $\Omega ( n ^ { d } )$ for “somewhat large” $d$ or are subexponential (we still consider runtimes that are exponential in $n$ to be costly).
|
| 68 |
+
|
| 69 |
+
# 2.1 BASICS OF FOURIER ANALYSIS
|
| 70 |
+
|
| 71 |
+
The reader is referred to O’Donnell (2014) for an in depth treatment of Fourier analysis of Boolean functions. Let $f : \mathcal { X } \mapsto [ - 1 , 1 ]$ be a function over domain $\mathcal { X } \subseteq \mathbb { R } ^ { n }$ . Let $\mathcal { D }$ a probability distribution on $\mathcal { X }$ . We write $g \equiv _ { \varepsilon } f$ and say that $f , g$ are $\varepsilon$ -close if $\begin{array} { r } { \mathbb { E } _ { x \sim \mathcal { D } } [ ( f ( x ) - g ( x ) ) ^ { \bar { 2 } } ] \le \varepsilon } \end{array}$ .
|
| 72 |
+
|
| 73 |
+
Definition 1. (Rauhut, 2010) We say a family of functions $\psi _ { 1 } , \ldots , \psi _ { N }$ ( $\psi _ { i }$ maps $\mathcal { X }$ to $\mathbb { R }$ ) is a Random Orthonormal Family with respect to $\mathcal { D }$ if
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
\mathbb { E } _ { \mathcal { D } } [ \psi _ { i } ( X ) \cdot \psi _ { j } ( X ) ] = \delta _ { i j } = \left\{ \begin{array} { l l } { 1 } & { \mathrm { ~ i f ~ } i = j } \\ { 0 } & { \mathrm { ~ o t h e r w i s e } } \end{array} \right. .
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
The expectation is taken with respect to probability distribution $\mathcal { D }$ . We say that the family is $K$ - bounded if $\begin{array} { r } { \operatorname* { s u p } _ { x \in \mathcal { X } } | \psi _ { i } ( x ) | \le K } \end{array}$ for every $i$ . Henceforth we assume $K = 1$ .
|
| 80 |
+
|
| 81 |
+
An important example of a random orthonormal family is the class of parity functions with respect to the uniform distribution on $\{ - 1 , 1 \} ^ { n }$ :
|
| 82 |
+
|
| 83 |
+
Definition 2. A parity function on some subset of variables $S \subseteq [ n ]$ is the function $\chi _ { S } : \{ - 1 , 1 \} ^ { n } \mapsto$ $\{ - 1 , 1 \}$ where $\begin{array} { r } { \bar { \chi } _ { S } ( x ) = \prod _ { i \in S } x _ { i } } \end{array}$ .
|
| 84 |
+
|
| 85 |
+
It is easy to see that the set of all $2 ^ { n }$ parity functions $\{ \chi _ { S } \}$ , one for each $S \subseteq [ n ]$ , form a random orthonormal family with respect to the uniform distribution on $\{ - 1 , 1 \} ^ { n }$ .
|
| 86 |
+
|
| 87 |
+
This random orthonormal family is often referred to as the Fourier basis, as it is a complete orthonormal basis for the class of Boolean functions with respect to the uniform distribution on $\{ - 1 , 1 \} ^ { n }$ . More generally, for any $f : \{ - 1 , 1 \} ^ { n } \mapsto \mathbb { R }$ , $f$ can be uniquely represented in this basis as $\begin{array} { r } { f ( x ) = \sum _ { S \subseteq [ n ] } \hat { f } _ { S } \chi _ { S } ( x ) } \end{array}$ where $\hat { f } _ { S } = \langle f , \chi _ { S } \rangle = \mathbb { E } _ { x \in \{ - 1 , 1 \} ^ { n } } [ f ( x ) \chi _ { S } ( x ) ]$ is the Fourier coefficient corresponding to $S$ where $x$ is drawn uniformly from $\{ - 1 , 1 \} ^ { n }$ . We also have Parseval’s identity: $\begin{array} { r } { \mathbb { E } [ f ^ { 2 } ] = \sum _ { S } \hat { f } _ { S } ^ { 2 } } \end{array}$ .
|
| 88 |
+
|
| 89 |
+
In this paper, we will work exclusively with the above parity basis. Our results apply more generally, however, to any orthogonal family of polynomials (and corresponding product measure on $\mathbb { R } ^ { n }$ ). For example, if we wished to work with continuous hyperparameters, we could work with families of Hermite orthogonal polynomials with respect to multivariate spherical Gaussian distributions.
|
| 90 |
+
|
| 91 |
+
We conclude with a definition of low-degree, approximately sparse (bounded $L _ { 1 }$ norm) functions:
|
| 92 |
+
|
| 93 |
+
Definition 3 (Approximately sparse function). Let $\{ \chi _ { S } \}$ be the parity basis, and let $\mathcal { C }$ be a class of functions mapping $\{ - 1 , 1 \} ^ { n }$ to $\mathbb { R }$ . Thus for $f \in { \mathcal { C } }$ , $\begin{array} { r } { f = \sum _ { S } \hat { f } ( S ) \chi _ { S } } \end{array}$ . We say a function $f \in C$ is $s$ -sparse if $L _ { 0 } ( f ) ~ \le ~ s$ , ie., f has at most $s$ nonzero entries in its polynomial expansion. $f$ is $( \varepsilon , d )$ -concentrated if $\begin{array} { r } { \mathbb { E } [ ( f - \sum _ { S , | S | } \le _ { d } \hat { f } ( S ) \chi _ { S } ) ^ { 2 } ] \ge 1 - \varepsilon . { \mathcal C } } \end{array}$ is $( \varepsilon , d , s )$ -bounded if for every $f \in { \mathcal { C } }$ , $f$ is $( \varepsilon , d )$ -concentrated and in addition $\mathcal { C }$ has $L _ { 1 }$ norm bounded by $s$ , that is, for every $f \in { \mathcal { C } }$ we have $\Sigma _ { S } \left| \hat { f } ( S ) \right| \le s$ .
|
| 94 |
+
|
| 95 |
+
It is easy to see that the class of functions with bounded $L _ { 1 }$ norm is more general than sparse functions. For example, the Boolean AND function has $L _ { 1 }$ norm bounded by 1 but is not sparse.
|
| 96 |
+
|
| 97 |
+
We also have the following simple fact:
|
| 98 |
+
|
| 99 |
+
Fact 4. (Mansour, 1994) Let $f$ be such that $L _ { 1 } ( f ) ~ \leq ~ s .$ . Then there exists $g$ such that $g$ is $s ^ { 2 } / \varepsilon$ sparse and $E [ ( f - g ) ^ { 2 } ] \ \leq \ \varepsilon .$ . The function $g$ is constructed by taking all coefficients of magnitude $\varepsilon / s$ or larger in $f$ ’s expansion as a polynomial.
|
| 100 |
+
|
| 101 |
+
# 2.2 COMPRESSED SENSING AND SPARSE RECOVERY
|
| 102 |
+
|
| 103 |
+
In the problem of sparse recovery, a learner attempts to recover a sparse vector $x \in \mathbb { R } ^ { n }$ which is $s$ sparse, i.e. $\| x \| _ { 0 } ~ \leq ~ s$ , from an observation vector $y \in R ^ { m }$ that is assumed to equal $y =$ $A x + e$ , where $e$ is assumed to be zero-mean, usually Gaussian, noise. The seminal work of Candes et al. (2006); Donoho (2006) shows how $x$ can be recovered exactly under various conditions on the observation matrix $A \in \mathbb { R } ^ { m \times n }$ and the noise. The usual method for recovering the signal proceeds by solving a convex optimization problem consisting of $\ell _ { 1 }$ minimization as follows (for some parameter $\lambda > 0$ ):
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
\operatorname* { m i n } _ { x \in \mathbb { R } ^ { n } } \left\{ \| x \| _ { 1 } + \lambda \| A x - y \| _ { 2 } ^ { 2 } \right\} .
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
The above formulation comes in many equivalent forms (e.g., Lasso), where one of the objective parts may appear as a hard constraint.
|
| 110 |
+
|
| 111 |
+

|
| 112 |
+
Figure 1: Compressed sensing over the Fourier domain: Harmonica recovers the Fourier coefficients of a sparse low degree polynomial $\textstyle \sum _ { S } \alpha _ { S } \Psi _ { S } ( x _ { i } )$ from observations $f ( x _ { i } )$ of randomly chosen points $x _ { i } \in$ $\{ - 1 , 1 \} ^ { n }$ .
|
| 113 |
+
|
| 114 |
+
For our work, the most relevant extension of traditional sparse recovery is due to Rauhut (2010), who considers the problem of sparse recovery when the measurements are evaluated according to a random orthonormal family. More concretely, fix $x \in \mathbb { R } ^ { n }$ with $s$ non-zero entries. For $K$ - bounded random orthonormal family $\mathcal { F } = \{ \psi _ { 1 } , . . . , \psi _ { N } \}$ , and $m$ independent draws $z ^ { 1 } , \ldots , z ^ { m }$ from corresponding distribution $\mathcal { D }$ define the $m \times N$ matrix $A$ such that $A _ { i j } = \psi _ { j } ( z ^ { i } )$ . Rauhut gives the following result for recovering sparse vectors $x$ :
|
| 115 |
+
|
| 116 |
+
Theorem 5 (Sparse Recovery for Random Orthonormal Families, (Rauhut, 2010) Theorem 4.4). Given as input matrix √ $A \ \in \ \mathbb { R } ^ { m \times N }$ and vector $y$ with $y _ { i } ~ = ~ A x + e _ { i }$ for some vector e with $\| e \| _ { 2 } ~ \le ~ \bar { \eta \sqrt { m } } ,$ , mathematical program (1) finds a vector $x ^ { * }$ such that for constants $c _ { 1 }$ and $c _ { 2 }$ , $\begin{array} { r } { \| x - x ^ { * } \| _ { 2 } \ \leq \ c _ { 1 } \frac { \sigma _ { s } ( x ) _ { 1 } } { \sqrt { s } } + c _ { 2 } \eta } \end{array}$ with probability $1 - \delta$ as long as for sufficiently large constant $C _ { i }$ , $m \ge C K ^ { 2 } \log K \cdot s \log ^ { 3 } s \cdot \log ^ { 2 } N \cdot \log ( 1 / \delta )$ .
|
| 117 |
+
|
| 118 |
+
The term $\sigma _ { s } ( x ) _ { 1 }$ is equal to $\operatorname* { m i n } \{ \| x - z \| _ { 1 } , z$ is $s$ sparse}. Recent work (Bourgain, 2014; Haviv & Regev, 2016) has improved the dependence on the polylog factors in the lower bound for $m$ .
|
| 119 |
+
|
| 120 |
+
# 3 BASIC ALGORITHM AND MAIN THEORETICAL RESULTS
|
| 121 |
+
|
| 122 |
+
The main component of our spectral algorithm for hyperparameter optimization is given in Algorithm $1 ^ { 2 }$ . It is essentially an extension of sparse recovery (basis pursuit or Lasso) to the orthogonal basis of polynomials in addition to an optimization step. See Figure 1 for an illustration. We prove Harmonica’s theoretical guarantee, and show how it gives rise to new theoretical results in learning from the uniform distribution.
|
| 123 |
+
|
| 124 |
+
In the next section we describe extensions of this basic algorithm to a more practical algorithm with various heuristics to improve its performance.
|
| 125 |
+
|
| 126 |
+
# Algorithm 1 Harmonica-1
|
| 127 |
+
|
| 128 |
+
1: Input: oracle for $f$ , number of samples $T$ , sparsity $s$ , degree $d$ , parameter $\lambda$ .
|
| 129 |
+
2: Invoke $\mathrm { P S R } ( f , T , s , d , \lambda )$ (Procedure 2) to obtain $( g , J )$ , where $g$ is a function defined on vari
|
| 130 |
+
ables specified by index set $J \subseteq [ n ]$ .
|
| 131 |
+
3: Set the variables in $[ n ] \mid J$ to arbitrary values, compute a minimizer $x ^ { \star } \in \arg \operatorname* { m i n } g ( x )$ .
|
| 132 |
+
4: return $x ^ { \star }$
|
| 133 |
+
|
| 134 |
+
Theorem 6 (Noiseless recovery). Let $\{ \psi _ { S } \}$ be a 1-bounded orthonormal polynomial basis for distribution $\mathcal { D }$ . Let $f : \mathbb { R } ^ { n } \mapsto \mathbb { R }$ be a $( 0 , d , s )$ -bounded function as per definition $^ 3$ with respect to the basis $\psi _ { S }$ . Then Algorithm $^ { l }$ , in time $n ^ { O ( d ) }$ and sample complexity $T = { \tilde { O } } ( s \cdot d \log n )$ , returns $x ^ { \star }$ such that $x ^ { \star } \in \arg \operatorname* { m i n } f ( x )$ .
|
| 135 |
+
|
| 136 |
+
This theorem, and indeed most of the results in this paper, follows from the main recovery properties of Procedure 2. This recovery procedure satisfies the following main lemma. See its proof in Section A.1.
|
| 137 |
+
|
| 138 |
+
Lemma 7 (Noisy recovery). Let $\{ \psi _ { S } \}$ be a 1-bounded orthonormal polynomial basis for distribution $\mathcal { D }$ . Let $f ~ : ~ \mathbb { R } ^ { n } \ \mapsto \ \mathbb { R }$ be a $( \varepsilon / 4 , d , s )$ -bounded as per definition 3 with respect to the
|
| 139 |
+
|
| 140 |
+
# Procedure 2 Polynomial Sparse Recovery (PSR)
|
| 141 |
+
|
| 142 |
+
1: Input: oracle for $f$ , number of samples $T$ , sparsity $s$ , degree $d$ , regularization parameter $\lambda$
|
| 143 |
+
2: Query $T$ random samples: $\{ f ( x _ { 1 } ) , . . . . , f ( x _ { T } ) \}$ .
|
| 144 |
+
|
| 145 |
+
3: Solve sparse $d$ -polynomial regression over all polynomials up to degree $d$
|
| 146 |
+
|
| 147 |
+
$$
|
| 148 |
+
\arg \operatorname* { m i n } _ { \alpha \in \mathbb { R } ^ { \left( \frac { n } { d } \right) } } \left\{ \sum _ { i = 1 } ^ { T } \left( \sum _ { | S | \leq d } \alpha _ { S } \psi _ { S } ( x _ { i } ) - f ( x _ { i } ) \right) ^ { 2 } + \lambda \| \alpha \| _ { 1 } \right\}
|
| 149 |
+
$$
|
| 150 |
+
|
| 151 |
+
4: Let $S _ { 1 } , . . . , S _ { s }$ be the indices of the largest coefficients of $\vec { \alpha }$ .
|
| 152 |
+
|
| 153 |
+
5: return $\begin{array} { r } { g \triangleq \sum _ { i \in [ s ] } \alpha _ { S _ { i } } \psi _ { S _ { i } } ( x ) } \end{array}$ and $J = \cup _ { i = 1 } ^ { s } S _ { i }$ basis $\psi _ { S }$ . Then Procedure 2 finds a function $\begin{array} { l l } { \boldsymbol { \mathit { g } } } & { \equiv _ { \varepsilon } } & { \boldsymbol { \mathit { f } } } \end{array}$ in time $O ( n ^ { d } )$ and sample complexity $T = \tilde { O } ( s ^ { 2 } / \varepsilon \cdot d \log n )$ .
|
| 154 |
+
|
| 155 |
+
Remark: Note that the above Lemma also holds in the adversarial or agnostic noise setting. That is, an adversary could add a noise vector $v$ to the labels received by the learner. In this case, the learner will see label vector $y = A x + e + v$ . If $\| v \| _ { 2 } ~ \le ~ \sqrt { \gamma m }$ , then we will recover a polynomial with squared-error at most $\varepsilon + O ( \gamma )$ via re-scaling $\varepsilon$ by a constant factor and applying the triangle inequality to $\lVert e + v \rVert _ { 2 }$ .
|
| 156 |
+
|
| 157 |
+
While this noisy recovery lemma is the basis for our enhanced algorithm in the next section as well as the learning-theoretic result on learning of decision trees detailed in the next subsection, it does not imply recovery of the global optimum. The reason is that noisy recovery guarantees that we output a hypothesis close to the underlying function, but even a single noisy point can completely change the optimum.
|
| 158 |
+
|
| 159 |
+
Nevertheless, we can use our techniques to prove recovery of optimality for functions that are computed exactly by a sparse, low-degree polynomial (Theorem 6). See the proof in Section A.2.
|
| 160 |
+
|
| 161 |
+
# 3.1 APPLICATION: LEARNING DECISION TREES IN QUASI-POLYNOMIAL TIME AND POLYNOMIAL SAMPLE COMPLEXITY
|
| 162 |
+
|
| 163 |
+
Lemma 7 has important applications for learning (in the PAC model (Valiant, 1984)) well-studied function classes with respect to the uniform distribution on $\{ - 1 , 1 \} ^ { n 3 }$ . For example, we obtain the first quasi-polynomial time algorithm for learning decision trees with respect to the uniform distribution on $\bar { \{ - 1 , 1 \} } ^ { n }$ with polynomial sample complexity:
|
| 164 |
+
|
| 165 |
+
Corollary 8. Let $\mathcal { X } = \{ - 1 , 1 \} ^ { n }$ and let $\mathcal { C }$ be the class of all decision trees of size s on n variables. Then $\mathcal { C }$ is learnable with respect to the uniform distribution in time $n ^ { O ( \log ( s / \varepsilon ) ) }$ and sample complexity $m = \tilde { O } ( s ^ { 2 } / \varepsilon \cdot \log n )$ . Further, if the labels are corrupted by arbitrary noise vector $v$ such that $\| v \| _ { 2 } ~ \le ~ \sqrt { \gamma m }$ , then the output classifier will have squared-error at most $\varepsilon + O ( \gamma )$ .
|
| 166 |
+
|
| 167 |
+
See the proof of Corollary 8 in Section A.3.
|
| 168 |
+
|
| 169 |
+
Comparison with the “Low-Degree” Algorithm. Prior work for learning decision trees (more generally Boolean functions that are approximated by low-degree polynomials) used the celebrated “low-degree” algorithm of Linial et al. (1993). Their algorithm uses random sampling to estimate each low-degree Fourier coefficient to high accuracy. In contrast, our approach is to use algorithms for compressed sensing to estimate the coefficients. Tools for compressed sensing take advantage of the incoherence of the design matrix and give improved results that seem unattainable from the “low-degree” algorithm.
|
| 170 |
+
|
| 171 |
+
For learning noiseless, Boolean decision trees, the low-degree algorithm uses quasipolynomial time and sample complexity ${ \tilde { O } } ( s ^ { 2 } / \varepsilon ^ { 2 } \cdot \log n )$ to learn to accuracy $\varepsilon$ . It is not clear, however, how to obtain any noise tolerance from their approach.
|
| 172 |
+
|
| 173 |
+
For general real-valued decision trees where $B$ is an upper bound on the maximum value at any leaf of a size $s$ tree, our algorithm will succeed with sample complexity $\tilde { O } ( B ^ { 2 } s ^ { 2 } / \varepsilon \cdot \log n )$ and be tolerant to noise while the low-degree algorithm will use $\bar { \tilde { O } } ( B ^ { 4 } s ^ { 2 } \bar { / } \varepsilon ^ { 2 } \cdot \mathrm { l o g } n )$ (and will have no noise tolerance properties). Note our improvement in the dependence on $\varepsilon$ (even in the noiseless setting), which is a consequence of the RIP property of the random orthonormal family.
|
| 174 |
+
|
| 175 |
+
# 4 HARMONICA: THE FULL ALGORITHM
|
| 176 |
+
|
| 177 |
+
Rather than applying Algorithm 1 directly, we found that performance is greatly enhanced by iteratively using Procedure 2 to estimate the most influential hyperparameters and their optimal values.
|
| 178 |
+
|
| 179 |
+
In the rest of this section we describe this iterative heuristic, which essentially runs Algorithm 1 for multiple stages. More concretely, we continue to invoke the PSR subroutine until the search space becomes small enough for us to use a “base” hyperparameter optimizer (in our case either SH or Random Search).
|
| 180 |
+
|
| 181 |
+
The space of minimizing assignments to a multivariate polynomial is a highly non-convex set that may contain many distinct points. As such, we take an average of several of the best minimizers (of subsets of hyperparameters) during each stage.
|
| 182 |
+
|
| 183 |
+
In order to describe this formally we need the following definition of a restriction of function:
|
| 184 |
+
|
| 185 |
+
Definition 9 (restriction (O’Donnell, 2014)). Let $f \in \{ - 1 , 1 \} ^ { n } \mapsto \mathbb { R }$ , $J \subseteq [ n ]$ , and $z \in \{ - 1 , 1 \} ^ { J }$ be given. We call $( J , z )$ a restriction pair of function $f$ . We denote $f _ { J , z }$ the function over $n - | J |$ variables given by setting the variables of $J$ to $z$ .
|
| 186 |
+
|
| 187 |
+
We can now describe our main algorithm (Algorithm 3). Here $q$ is the number of stages for which we apply the PSR subroutine, and the restriction size $t$ serves as a tie-breaking rule for the best minimizers (which can be set to 1).
|
| 188 |
+
|
| 189 |
+
# Algorithm 3 Harmonica- $q$
|
| 190 |
+
|
| 191 |
+
1: Input: oracle for $f$ , number of samples $T$ , sparsity $s$ , degree $d$ , regularization parameter $\lambda$ ,
|
| 192 |
+
number of stages $q$ , restriction size $t$ , base hyperparameter optimizer ALG.
|
| 193 |
+
2: for stage $i = 1$ to $q$ do
|
| 194 |
+
3: Invoke $\mathrm { P S R } ( f , T , s , d , \lambda )$ (Procedure 2) to obtain $( g _ { i } , J _ { i } )$ , where $g _ { i }$ is a function defined on
|
| 195 |
+
variables specified by index set $J _ { i } \subseteq [ n ]$ .
|
| 196 |
+
4: Let $M _ { i } = \left\{ x _ { 1 } ^ { \star } , . . . , x _ { t } ^ { \star } \right\} = \arg \operatorname* { m i n } g _ { i } ( x )$ be the best $t$ minimizers of $g _ { i }$ .
|
| 197 |
+
5: Let $f _ { i } = \mathbb { E } _ { k \in [ t ] } [ f _ { J _ { i } , x _ { k } ^ { \star } } ]$ be the expected restriction of $f$ according to minimizers $M _ { i }$ . 4
|
| 198 |
+
6: Set $f = f _ { i }$ .
|
| 199 |
+
7: end for
|
| 200 |
+
8: return Search for the global minimizer of $f _ { q }$ using base optimizer ALG
|
| 201 |
+
|
| 202 |
+
We defer the comparison of Harmonica and other algorithms in Section B.
|
| 203 |
+
|
| 204 |
+
# 5 EXPERIMENTS WITH TRAINING DEEP NETWORKS
|
| 205 |
+
|
| 206 |
+
We compare Harmonica5 with Spearmint6 (Snoek et al., 2012), Hyperband, $\mathrm { S H } ^ { 7 }$ and Random Search. Both Spearmint and Hyperband are state-of-the-art algorithms, and it is observed that Random Search $2 \mathbf { x }$ (Random Search with doubled function evaluation resources) is a very competitive benchmark that beats many algorithms8.
|
| 207 |
+
|
| 208 |
+
Our first experiment is over training residual network on Cifar-10 dataset9. We included 39 binary hyperparameters, including initialization, optimization method, learning rate schedule, momentum rate, etc. Table 1 (Section C.1) details the hyperparameters considered. We also include 21 dummy variables to make the task more challenging. Notice that Hyperband, SH, and Random Search are agnostic to the dummy variables in the sense that they just set the value of dummy variables randomly, therefore select essentially the same set of configurations with or without the dummy variables. Only Harmonica and Spearmint are sensitive to the dummy variables as they try to learn the high dimensional function space. To make a fair comparison, we run Spearmint without any dummy variables.
|
| 209 |
+
|
| 210 |
+

|
| 211 |
+
Figure 2: Distribution of the best results and running time of different algorithms
|
| 212 |
+
|
| 213 |
+

|
| 214 |
+
Figure 3: Comparing different variants of Harmonica with SH on test error and running time
|
| 215 |
+
|
| 216 |
+
As most hyperparameters have a consistent effect as the network becomes deeper, a common handtuning strategy is “tune on small network, then apply the knowledge to big network” (See discussion in Section C.3). Harmonica can also exploit this strategy as it selects important features stageby-stage. More specifically, during the feature selection stages, we run Harmonica for tuning an 8 layer neural network with 30 training epochs. At each stage, we take 300 samples to extract 5 important features, and set restriction size $t \ : = \ : 4$ (see Procedure 2). After that, we fix all the important features, and run the SH or Random Search as our base algorithm on the big 56 layer neural network for training the whole 160 epochs10. To clarify, “stage” means the stages of the hyperparameter algorithms, while “epoch” means the epochs for training the neural network.
|
| 217 |
+
|
| 218 |
+
# 5.1 PERFORMANCE
|
| 219 |
+
|
| 220 |
+
We tried three versions of Harmonica for this experiment, Harmonica with 1 stage (Harmonica-1), 2 stages (Harmonica-2) and 3 stages (Harmonica-3). All of them use SH as the base algorithm. The top 10 test error results and running times of the different algorithms are depicted in Figure 2. SH based algorithms may return fewer than 10 results. For more runs of variants of Harmonica and its resulting test error, see Figure 3 (the results are similar to Figure 2).
|
| 221 |
+
|
| 222 |
+
Test error and scalability: Harmonica-1 uses less than $1 / 5$ time of Spearmint, $1 / 7$ time of Hyperband and $1 / 8$ time compared with Random Search, but gets better results than the competing algorithms. It beats the Random Search 8x benchmark (stronger than Random Search $2 \mathbf { x }$ benchmark of Li et al. (2016)). Harmonica-2 uses slightly more time, but is able to find better results.
|
| 223 |
+
|
| 224 |
+
Improving upon human-tuned parameters: Harmonica-3 obtains a better test error $( 6 . 5 8 \% )$ ) as compared to the best hand-tuning rate $6 . 9 7 \%$ reported in (He et al., 2016)11. Harmonica-3 uses only 6.1 GPU days, which is less than half day in our environment, as we have 20 GPUs running in parallel. Notice that we did not cherry pick the results for Harmonica-3. In Section 5.3 we show by running Harmonica-3 for longer time, one can obtain a few other solutions better than hand tuning.
|
| 225 |
+
|
| 226 |
+
Performance of provable methods: Harmonica-1 has noiseless and noisy recovery guarantees (Lemma 7), which are validated experimentally.
|
| 227 |
+
|
| 228 |
+
# 5.2 AVERAGE TEST ERROR FOR EACH STAGE
|
| 229 |
+
|
| 230 |
+
We computed the average test error among 300 random samples for an 8 layer network with 30 epochs after each stage. See Figure 4 in Appendix. After selecting 5 features in stage 1, the average test error drops from 60.16 to 33.3, which indicates the top 5 features are very important. As we proceed to stage 3, the improvement on test error becomes less significant as the selected features at stage 3 have mild contributions.
|
| 231 |
+
|
| 232 |
+
# 5.3 HYPERPARAMETERS FOR HARMONICA
|
| 233 |
+
|
| 234 |
+
To be clear, Harmonica itself has six hyperparameters that one needs to set including the number of stages, $\ell _ { 1 }$ regularizer for Lasso, the number of features selected per stage, base algorithm, small network configuration, and the number of samples per stage. Note, however, that we have reduced the search space of general hyperparameter optimization down to a set of only six hyperparameters. Empirically, our algorithm is robust to different settings of these parameters, and we did not even attempt to tune some of them (e.g., small network configuration).
|
| 235 |
+
|
| 236 |
+
Base algorithm and #stages. We tried different versions of Harmonica, including Harmonica with 1 stage, 2 stages and 3 stages using SH as the base algorithm (Harmonica-1, Harmonica-2, Harmonica-3), with 1 stage and 2 stages using Random Search as the base algorithm (Harmonica-1- Random-Search, Harmonica-2-Random-Search), and with 2 stages and 3 stages running SH as the base for longer time (Harmonica-2-Long, Harmonica-3-Long). As can be seen in Figure 3, most variants produce better results than SH and use less running time. Moreover, if we run SH for longer time, we will obtain more stable solutions with less variance in test error.
|
| 237 |
+
|
| 238 |
+
Lasso parameters are stable. See Table 3 in Appendix for stable range for regularization term $\lambda$ and the number of samples. Here stable range means as long as the parameters are set in this range, the top 5 features and the signs of their weights (which are what we need for computing $g ( x )$ in Procedure 2) do not change. In other words, the feature selection outcome is not affected. When parameters are outside the stable ranges, usually the top features are still unchanged, and we miss only one or two out of the five features.
|
| 239 |
+
|
| 240 |
+
On the degree of features. We set degree to be three because it does not find any important features with degree larger than this. Since Lasso can be solved efficiently (less than 5 minutes in our experiments), the choice of degree can be decided automatically.
|
| 241 |
+
|
| 242 |
+
# 5.4 EXPERIMENTS WITH SYNTHETIC FUNCTIONS
|
| 243 |
+
|
| 244 |
+
Our second experiment considers a synthetic hierarchically bounded function $h ( x )$ . In this experiment, we showed that the optimization time of Harmonica is significantly faster than Spearmint, and the estimation error of Harmonica is linear in the noise level of the function. See Section C.4 for details.
|
| 245 |
+
|
| 246 |
+
# 6 ACKNOWLEDGEMENTS
|
| 247 |
+
|
| 248 |
+
We thank Sanjeev Arora for helpful discussions and encouragement. We thank anonymous reviewers for their helpful comments. Elad Hazan is supported by NSF grant 1523815. This project is supported by a Microsoft Azure research award and Amazon AWS research award.
|
| 249 |
+
|
| 250 |
+
# REFERENCES
|
| 251 |
+
|
| 252 |
+
Bowen Baker, Otkrist Gupta, Nikhil Naik, and Ramesh Raskar. Designing neural network architectures using reinforcement learning. CoRR, abs/1611.02167, 2016.
|
| 253 |
+
|
| 254 |
+
Yoshua Bengio. Gradient-based optimization of hyperparameters. Neural Computation, 12(8): 1889–1900, 2000.
|
| 255 |
+
|
| 256 |
+
James Bergstra and Yoshua Bengio. Random search for hyper-parameter optimization. J. Mach. Learn. Res., 13:281–305, February 2012. ISSN 1532-4435.
|
| 257 |
+
|
| 258 |
+
James S. Bergstra, Remi Bardenet, Yoshua Bengio, and Bal ´ azs K ´ egl. Algorithms for hyper- ´ parameter optimization. In J. Shawe-Taylor, R. S. Zemel, P. L. Bartlett, F. Pereira, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 24, pp. 2546–2554. Curran Associates, Inc., 2011.
|
| 259 |
+
|
| 260 |
+
Avrim Blum, Adam Kalai, and Hal Wasserman. Noise-tolerant learning, the parity problem, and the statistical query model. J. ACM, 50(4):506–519, July 2003. ISSN 0004-5411.
|
| 261 |
+
|
| 262 |
+
Jean Bourgain. An Improved Estimate in the Restricted Isometry Problem, pp. 65–70. Springer International Publishing, Cham, 2014.
|
| 263 |
+
|
| 264 |
+
E. J. Candes, J. Romberg, and T. Tao. Robust uncertainty principles: Exact signal reconstruction from highly incomplete frequency information. IEEE Trans. Inf. Theor., 52(2):489–509, February 2006. ISSN 0018-9448.
|
| 265 |
+
|
| 266 |
+
D. L. Donoho. Compressed sensing. IEEE Trans. Inf. Theor., 52(4):1289–1306, April 2006. ISSN 0018-9448.
|
| 267 |
+
|
| 268 |
+
V. Feldman, Parikshit Gopalan, Subhash Khot, and Ashok Kumar Ponnuswami. On agnostic learning parities, monomials,and halfspaces. SIAM Journal on Computing, 39(2):606–645, 2009. ISSN 0097-5397.
|
| 269 |
+
|
| 270 |
+
Jie Fu, Hongyin Luo, Jiashi Feng, Kian Hsiang Low, and Tat-Seng Chua. Drmad: Distilling reversemode automatic differentiation for optimizing hyperparameters of deep neural networks. CoRR, abs/1601.00917, 2016.
|
| 271 |
+
|
| 272 |
+
Jacob R. Gardner, Matt J. Kusner, Zhixiang Eddie Xu, Kilian Q. Weinberger, and John P. Cunningham. Bayesian optimization with inequality constraints. In Proceedings of the 31th International Conference on Machine Learning, ICML 2014, Beijing, China, 21-26 June 2014, pp. 937–945, 2014.
|
| 273 |
+
|
| 274 |
+
Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, AISTATS 2010, Chia Laguna Resort, Sardinia, Italy, May 13-15, 2010, pp. 249– 256, 2010.
|
| 275 |
+
|
| 276 |
+
Ishay Haviv and Oded Regev. The list-decoding size of fourier-sparse boolean functions. In David Zuckerman (ed.), 30th Conference on Computational Complexity, CCC 2015, June 17- 19, 2015, Portland, Oregon, USA, volume 33 of LIPIcs, pp. 58–71. Schloss Dagstuhl - LeibnizZentrum fuer Informatik, 2015. ISBN 978-3-939897-81-1. URL http://www.dagstuhl. de/dagpub/978-3-939897-81-1.
|
| 277 |
+
|
| 278 |
+
Ishay Haviv and Oded Regev. The restricted isometry property of subsampled fourier matrices. In Proceedings of the Twenty-seventh Annual ACM-SIAM Symposium on Discrete Algorithms, SODA ’16, pp. 288–297, Philadelphia, PA, USA, 2016. Society for Industrial and Applied Mathematics. ISBN 978-1-611974-33-1. URL http://dl.acm.org/citation.cfm?id= 2884435.2884457.
|
| 279 |
+
|
| 280 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In 2015 IEEE International Conference on Computer Vision, ICCV 2015, Santiago, Chile, December 7-13, 2015, pp. 1026–1034, 2015.
|
| 281 |
+
|
| 282 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pp. 770–778, 2016.
|
| 283 |
+
|
| 284 |
+
Gao Huang, Zhuang Liu, and Kilian Q. Weinberger. Densely connected convolutional networks. CoRR, abs/1608.06993, 2016.
|
| 285 |
+
|
| 286 |
+
Ilija Ilievski, Taimoor Akhtar, Jiashi Feng, and Christine Annette Shoemaker. Efficient hyperparameter optimization for deep learning algorithms using deterministic RBF surrogates. In Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence, February 4-9, 2017, San Francisco, California, USA., pp. 822–829, 2017.
|
| 287 |
+
|
| 288 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, pp. 448–456, 2015.
|
| 289 |
+
|
| 290 |
+
Kevin G. Jamieson and Ameet Talwalkar. Non-stochastic best arm identification and hyperparameter optimization. In Proceedings of the 19th International Conference on Artificial Intelligence and Statistics, AISTATS 2016, Cadiz, Spain, May 9-11, 2016, pp. 240–248, 2016.
|
| 291 |
+
|
| 292 |
+
Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2014.
|
| 293 |
+
|
| 294 |
+
Murat Kocaoglu, Karthikeyan Shanmugam, Alexandros G. Dimakis, and Adam R. Klivans. Sparse polynomial learning and graph sketching. In Zoubin Ghahramani, Max Welling, Corinna Cortes, Neil D. Lawrence, and Kilian Q. Weinberger (eds.), Advances in Neural Information Processing Systems 27: Annual Conference on Neural Information Processing Systems 2014, December 8-13 2014, Montreal, Quebec, Canada, pp. 3122–3130, 2014. URL http://papers.nips.cc/ book/advances-in-neural-information-processing-systems-27-2014.
|
| 295 |
+
|
| 296 |
+
L. Li, K. Jamieson, G. DeSalvo, A. Rostamizadeh, and A. Talwalkar. Hyperband: A Novel BanditBased Approach to Hyperparameter Optimization. ArXiv e-prints, March 2016.
|
| 297 |
+
|
| 298 |
+
Nathan Linial, Yishay Mansour, and Noam Nisan. Constant depth circuits, fourier transform, and learnability. J. ACM, 40(3):607–620, July 1993. ISSN 0004-5411.
|
| 299 |
+
|
| 300 |
+
Jelena Luketina, Mathias Berglund, Klaus Greff, and Tapani Raiko. Scalable gradient-based tuning of continuous regularization hyperparameters. CoRR, abs/1511.06727, 2015.
|
| 301 |
+
|
| 302 |
+
Dougal Maclaurin, David Duvenaud, and Ryan P. Adams. Gradient-based hyperparameter optimization through reversible learning. In Proceedings of the 32Nd International Conference on International Conference on Machine Learning - Volume 37, ICML’15, pp. 2113–2122. JMLR.org, 2015. URL http://dl.acm.org/citation.cfm?id=3045118.3045343.
|
| 303 |
+
|
| 304 |
+
Yishay Mansour. Learning Boolean Functions via the Fourier Transform, pp. 391–424. Springer US, Boston, MA, 1994. doi: 10.1007/978-1-4615-2696-4 11.
|
| 305 |
+
|
| 306 |
+
Sahand Negahban and Devavrat Shah. Learning sparse boolean polynomials. In Allerton, pp. 2032– 2036. IEEE, 2012. ISBN 978-1-4673-4537-8. URL http://ieeexplore.ieee.org/ xpl/mostRecentIssue.jsp?punumber $=$ 6475439.
|
| 307 |
+
|
| 308 |
+
Ryan O’Donnell. Analysis of Boolean Functions. Cambridge University Press, New York, NY, USA, 2014. ISBN 1107038324, 9781107038325.
|
| 309 |
+
|
| 310 |
+
Holger Rauhut. Compressive sensing and structured random matrices. Theoretical foundations and numerical methods for sparse recovery, 9:1–92, 2010.
|
| 311 |
+
|
| 312 |
+
Benjamin Recht. Embracing the random. http://www.argmin.net/2016/06/23/ hyperband/, 2016a.
|
| 313 |
+
|
| 314 |
+
Benjamin Recht. The news on auto-tuning. http://www.argmin.net/2016/06/20/ hypertuning/, 2016b.
|
| 315 |
+
|
| 316 |
+
Jasper Snoek, Hugo Larochelle, and Ryan P. Adams. Practical bayesian optimization of machine learning algorithms. In Advances in Neural Information Processing Systems 25: 26th Annual Conference on Neural Information Processing Systems 2012. Proceedings of a meeting held December 3-6, 2012, Lake Tahoe, Nevada, United States., pp. 2960–2968, 2012.
|
| 317 |
+
|
| 318 |
+
Jasper Snoek, Kevin Swersky, Richard S. Zemel, and Ryan P. Adams. Input warping for bayesian optimization of non-stationary functions. In Proceedings of the 31th International Conference on Machine Learning, ICML 2014, Beijing, China, 21-26 June 2014, pp. 1674–1682, 2014.
|
| 319 |
+
|
| 320 |
+
Nitish Srivastava, Geoffrey E. Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1):1929–1958, 2014.
|
| 321 |
+
|
| 322 |
+
Peter Stobbe and Andreas Krause. Learning fourier sparse set functions. In Neil D. Lawrence and Mark A. Girolami (eds.), Proceedings of the Fifteenth International Conference on Artificial Intelligence and Statistics, AISTATS 2012, La Palma, Canary Islands, April 21-23, 2012, volume 22 of JMLR Proceedings, pp. 1125–1133. JMLR.org, 2012. URL http://jmlr.org/ proceedings/papers/v22/.
|
| 323 |
+
|
| 324 |
+
Ilya Sutskever, James Martens, George E. Dahl, and Geoffrey E. Hinton. On the importance of initialization and momentum in deep learning. In Proceedings of the 30th International Conference on Machine Learning, ICML 2013, Atlanta, GA, USA, 16-21 June 2013, pp. 1139–1147, 2013.
|
| 325 |
+
|
| 326 |
+
Kevin Swersky, Jasper Snoek, and Ryan Prescott Adams. Multi-task bayesian optimization. In Advances in Neural Information Processing Systems 26: 27th Annual Conference on Neural Information Processing Systems 2013. Proceedings of a meeting held December 5-8, 2013, Lake Tahoe, Nevada, United States., pp. 2004–2012, 2013.
|
| 327 |
+
|
| 328 |
+
R. Tibshirani. Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society (Series B), 58:267–288, 1996.
|
| 329 |
+
|
| 330 |
+
Leslie G Valiant. A theory of the learnable. Communications of the ACM, 27(11):1134–1142, 1984.
|
| 331 |
+
|
| 332 |
+
Ziyu Wang, Masrour Zoghi, Frank Hutter, David Matheson, and Nando de Freitas. Bayesian optimization in high dimensions via random embeddings. In IJCAI 2013, Proceedings of the $2 3 r d$ International Joint Conference on Artificial Intelligence, Beijing, China, August 3-9, 2013, pp. 1778–1784, 2013.
|
| 333 |
+
|
| 334 |
+
Jian Wu and Peter I. Frazier. The parallel knowledge gradient method for batch bayesian optimization. In Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016, December 5-10, 2016, Barcelona, Spain, pp. 3126–3134, 2016.
|
| 335 |
+
|
| 336 |
+
Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. CoRR, abs/1605.07146, 2016.
|
| 337 |
+
|
| 338 |
+
Zhao Zhong, Junjie Yan, and Cheng-Lin Liu. Practical network blocks design with q-learning. CoRR, abs/1708.05552, 2017.
|
| 339 |
+
|
| 340 |
+
Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. CoRR, abs/1611.01578, 2016.
|
| 341 |
+
|
| 342 |
+
# A MISSING PROOFS
|
| 343 |
+
|
| 344 |
+
A.1 PROOF OF LEMMA 7
|
| 345 |
+
|
| 346 |
+
Recall the Chebyshev inequality:
|
| 347 |
+
|
| 348 |
+
Fact 10 (Multidimensional Chebyshev inequality). Let $X$ be an m dimensional random vector, with expected value $\mu = \operatorname { \mathbb { E } } [ X ]$ , and covariance matrix $V = \mathbb { E } [ ( X - \mu ) ( X - \mu ) ^ { T } ]$ .
|
| 349 |
+
|
| 350 |
+
If $V$ is a positive definite matrix, for any real number $\delta > 0$ :
|
| 351 |
+
|
| 352 |
+
$$
|
| 353 |
+
\mathbb { P } ( \sqrt { ( X - \mu ) ^ { T } V ^ { - 1 } ( X - \mu ) } > \delta ) \le \frac { m } { \delta ^ { 2 } }
|
| 354 |
+
$$
|
| 355 |
+
|
| 356 |
+
For ease of notation we assume $K = 1$ . Let $f$ be an $( \varepsilon / 4 , s , d )$ -bounded function written in the orthonormal basis as $\textstyle \sum _ { S } { \hat { f } } ( S ) \psi _ { S }$ . We can equivalently write $f$ as $f = h + g$ , where $h$ is a degree $d$ polynomial that only includes coefficients of magnitude at least $\varepsilon / 4 s$ and the constant term of the polynomial expansion of $f$ .
|
| 357 |
+
|
| 358 |
+
Since $\begin{array} { r } { L _ { 1 } ( f ) = \sum _ { S } | \hat { f } _ { S } | \le s } \end{array}$ , by Fact 4 we have that $h$ is $4 s ^ { 2 } / \varepsilon + 1$ sparse. The function $g$ is thus the sum of the remaining ${ \hat { f } } ( S ) \psi _ { S }$ terms not included in $h$ .
|
| 359 |
+
|
| 360 |
+
Draw $m$ (to be chosen later) random labeled examples $\{ ( z ^ { 1 } , y ^ { 1 } ) , \dots , ( z ^ { m } , y ^ { m } ) \}$ and enumerate all $N = n ^ { d }$ basis functions $\psi _ { S }$ for $| S | \le d$ as $\{ \psi _ { 1 } , \ldots , \psi _ { N } \}$ . Form matrix $A$ such that $A _ { i j } = \psi _ { j } ( z ^ { i } )$ and consider the problem of recovering $4 s ^ { 2 } / \varepsilon + 1$ sparse $x$ given $A x + e = y$ where $x$ is the vector of coefficients of $h$ , the $i$ th entry of $y$ equals $y ^ { i }$ , and $e _ { i } = g ( \bar { z } ^ { i } )$ .
|
| 361 |
+
|
| 362 |
+
We will prove that with constant probability over the choice $m$ random examples, $\| e \| _ { 2 } ~ \le ~ \sqrt { \varepsilon m }$ . Applying Theorem 5 by setting $\eta = \sqrt { \varepsilon }$ and observing that $\sigma _ { 4 s ^ { 2 } / \varepsilon + 1 } ( x ) _ { 1 } = 0$ , we will recover $x ^ { \prime }$ such that $\| x - x ^ { \prime } \| _ { 2 } ^ { 2 } \ \leq \ c _ { 2 } ^ { 2 } \varepsilon$ for some constant $c _ { 2 }$ . As such, for the function $\begin{array} { r } { \tilde { f } = \sum _ { i = 1 } ^ { N } x _ { i } ^ { \prime } \psi _ { i } } \end{array}$ we will have $\mathbb { E } [ \| h - \tilde { f } \| ^ { 2 } ] \ \leq \ c _ { 2 } ^ { 2 } \varepsilon$ by Parseval’s identity. Note, however, that we may rescale $\varepsilon$ by constant factor $1 / ( 2 c _ { 2 } ^ { 2 } )$ to obtain error $\varepsilon / 2$ and only incur an additional constant (multiplicative) factor in the sample complexity bound.
|
| 363 |
+
|
| 364 |
+
By the definition of $g$ , we have
|
| 365 |
+
|
| 366 |
+
$$
|
| 367 |
+
\| g \| ^ { 2 } = \left( \sum _ { S , | S | > d } \hat { f } ( S ) ^ { 2 } + \sum _ { R } \hat { f } ( R ) ^ { 2 } \right)
|
| 368 |
+
$$
|
| 369 |
+
|
| 370 |
+
where each ${ \hat { f } } ( R )$ is of magnitude at most $\varepsilon / 4 s$ . By Fact 4 and Parseval’s identity we have $\textstyle \sum _ { R } { \hat { f } } ( R ) ^ { 2 } \ \leq \ \varepsilon / 4$ . Since $f$ is $( \varepsilon / 4 , d )$ -concentrated we have $\begin{array} { r } { \sum _ { S , | S | > d } { \hat { f } } ( S ) ^ { 2 } ~ \le ~ \varepsilon / 4 } \end{array}$ . Thus, $\| g \| ^ { 2 }$ is at most $\varepsilon / 2$ . Therefore, by triangle inequality $\mathbb { E } [ \| f - \tilde { f } \| ^ { 2 } ] \le \mathbb { E } [ \| h - \tilde { f } \| ^ { 2 } ] + \mathbb { E } [ \| g \| ^ { 2 } ] \le \varepsilon$ . It remains to bound $\| e \| _ { 2 }$ . Note that since the examples are chosen independently, the entries $e _ { i } =$ $g ( z ^ { i } )$ are independent random variables. Since $g$ is a linear combination of orthonormal monomials (not including the constant term), we have $\mathbb { E } _ { z \sim D } [ g ( z ) ] = 0$ . Here we can apply linearity of variance (the covariance of $\psi _ { i }$ and $\psi _ { j }$ is zero for all $i \neq j$ ) and calculate the variance
|
| 371 |
+
|
| 372 |
+
$$
|
| 373 |
+
\mathbf { V a r } ( g ( z ^ { i } ) ) = ( \sum _ { S , | S | > d } { \hat { f } } ( S ) ^ { 2 } + \sum _ { R } { \hat { f } } ( R ) ^ { 2 } )
|
| 374 |
+
$$
|
| 375 |
+
|
| 376 |
+
With the same calculation as (3), we know ${ \mathbf { V a r } } ( g ( z ^ { i } ) )$ is at most $\varepsilon / 2$ .
|
| 377 |
+
|
| 378 |
+
Now consider the covariance matrix $V$ of the vector $e$ which equals $\mathbb { E } [ e e ^ { \top } ]$ (recall every entry of $e$ has mean 0). Then $V$ is a diagonal matrix (covariance between two independent samples is zero), and every diagonal entry is at most $\varepsilon / 2$ . Applying Fact 10 we have
|
| 379 |
+
|
| 380 |
+
$$
|
| 381 |
+
\mathbb { P } ( \| e \| _ { 2 } > \sqrt { \frac { \varepsilon } { 2 } } \delta ) \ \leq \ \frac { m } { \delta ^ { 2 } } .
|
| 382 |
+
$$
|
| 383 |
+
|
| 384 |
+
Setting $\delta = { \sqrt { 2 m } }$ , we conclude that $\mathbb { P } ( \| e \| _ { 2 } > { \sqrt { \varepsilon m } } ) \leq { \frac { 1 } { 2 } }$ . Hence with probability at least $1 / 2$ , we have that $\| e \| _ { 2 } ~ \le ~ \sqrt { \varepsilon m }$ . From Theorem 5, we may choose $m = \tilde { O } ( s ^ { 2 } / \varepsilon \cdot \log n ^ { d } )$ . This completes the proof. Note that the probability $1 / 2$ above can be boosted to any constant probability with a constant factor loss in sample complexity.
|
| 385 |
+
|
| 386 |
+
# A.2 PROOF OF THEOREM 6
|
| 387 |
+
|
| 388 |
+
There are at most $N = n ^ { d }$ polynomials $\psi _ { S }$ with $| S | \le d$ . Let the enumeration of these polynomials be $\psi _ { 1 } , \ldots , \psi _ { N }$ . Draw $m$ labeled examples $\{ ( z ^ { 1 } , y ^ { 1 } ) , \dots , ( z ^ { m } , y ^ { m } ) \}$ independently from $\mathcal { D }$ and construct an $m \times N$ matrix $A$ with $A _ { i j } = \psi _ { j } ( z ^ { i } )$ . Since $f$ can be written as an $s$ sparse linear combination of $\psi _ { 1 } , \dots , \psi _ { N }$ , there exists an $s$ -sparse vector $x$ such that $A x = y$ where the ith entry of $y$ is $y ^ { i }$ . Hence we can apply Theorem 5 to recover $x$ exactly. These are the $s$ non-zero coefficients of $f$ ’s expansion in terms of $\{ \psi _ { S } \}$ . Since $f$ is recovered exactly, its minimizer is found in the optimization step.
|
| 389 |
+
|
| 390 |
+
# A.3 PROOF OF COROLLARY 8
|
| 391 |
+
|
| 392 |
+
As mentioned earlier, the orthonormal polynomial basis for the class of Boolean functions with respect to the uniform distribution on $\{ - 1 , 1 \} ^ { n }$ is the class of parity functions $\{ \chi _ { S } \}$ for $S \subseteq \{ - 1 , 1 \} ^ { n }$ . Further, it is easy to show that for Boolean function $f$ , if $\mathbb { E } [ ( h - f ) ^ { 2 } ] ~ \leq ~ \varepsilon$ then $\mathbb { P } [ \mathsf { s i g n } ( h ( x ) ) \neq$ $f ( x ) ] \ \leq \ \varepsilon$ . The corollary now follows by applying Lemma 7 and two known structural facts about decision trees: 1) a tree of size $s$ is $( \varepsilon , \log ( s / \varepsilon ) )$ -concentrated and has $L _ { 1 }$ norm bounded by $s$ (see e.g., Mansour Mansour (1994)) and 2) by Fact 4, for any function $f$ with $L _ { 1 }$ norm bounded by $s$ (i.e., a decision tree of size $s$ ), there exists an $s ^ { 2 } / \varepsilon$ sparse function $g$ such that $\mathbb { E } [ ( f - g ) ^ { 2 } ] \ \leq \ \varepsilon$ . The noise tolerance property follows immediately from the remark after the proof of Lemma 7.
|
| 393 |
+
|
| 394 |
+
# B ALGORITHM ATTRIBUTES AND HEURISTICS
|
| 395 |
+
|
| 396 |
+
Scalability. If the hidden function if $s$ -sparse, Harmonica can find such a sparse function using $\tilde { O } ( s \log s )$ samples. If at every stage of Harmonica, the target function can be approximated by an $s$ sparse function, we only need ${ \tilde { O } } ( q s \log s )$ samples where $q$ is the number of stages. For real world applications such as deep neural network hyperparameter tuning, it seems (empirically) reasonable to assume that the hidden function is indeed sparse at every stage (see Section 5).
|
| 397 |
+
|
| 398 |
+
For Hyperband (Li et al., 2016), SH (Jamieson & Talwalkar, 2016) or Random Search, even if the function is $s$ -sparse, in order to cover the optimal configuration by random sampling, we need $\Omega ( 2 ^ { s } )$ samples.
|
| 399 |
+
|
| 400 |
+
Optimization time. Harmonica runs the Lasso (Tibshirani, 1996) algorithm after each stage to solve (2), which is a well studied convex optimization problem and has very fast implementations. Hyperband and SH are also efficient in terms of running time as a function of the number of function evaluations, and require sorting or other simple computations. The running time of Bayesian optimization is cubic in number of function evaluations, which limits applicability for large number of evaluations / high dimensionality, as we shall see in Section C.4.
|
| 401 |
+
|
| 402 |
+
Parallelizability. Harmonica, similar to Hyperband, SH, and Random Search, has straightforward parallel implementations. In every stage of those algorithms, we could simply evaluate the objective functions over randomly chosen points in parallel.
|
| 403 |
+
|
| 404 |
+
It is hard to run Bayesian optimization algorithm in parallel due to its inherent serial nature. Previous works explored variants in which multiple points are evaluated at the same time in parallel (Wu & Frazier, 2016), though speed ups do not grow linearly in the number of machines, and the batch size is usually limited to a small number.
|
| 405 |
+
|
| 406 |
+
Feature Extraction. Harmonica is able to extract important features with weights in each stages, which automatically sorts all the features according to their importance. See Section C.2.
|
| 407 |
+
|
| 408 |
+
# C EXPERIMENTAL DETAILS
|
| 409 |
+
|
| 410 |
+
# C.1 OPTIONS
|
| 411 |
+
|
| 412 |
+
Table 1: 60 options used in Section 5
|
| 413 |
+
|
| 414 |
+
<table><tr><td colspan="1" rowspan="1">Option Name</td><td colspan="1" rowspan="1">Description</td></tr><tr><td colspan="1" rowspan="1">01. Weight initialization</td><td colspan="1" rowspan="1">Use standard initializations or other initializations?</td></tr><tr><td colspan="1" rowspan="1">02. Weight initialization (Detail 1)</td><td colspan="1" rowspan="1"> Xavier Glorot (Glorot & Bengio,2010), Kaiming (He et al., 2015),1/n,or1/n2?</td></tr><tr><td colspan="1" rowspan="1">03.Optimization method</td><td colspan="1" rowspan="1"> SGD or ADAM? (Kingma & Ba, 2014)</td></tr><tr><td colspan="1" rowspan="1">04. Initial learning rate</td><td colspan="1" rowspan="1">≥ 0.01 or<0.01?</td></tr><tr><td colspan="1" rowspan="1">05. Initial learning rate (Detail 1)</td><td colspan="1" rowspan="1">≥ 0.1,<0.1,≥ 0.001,0r<0.001?</td></tr><tr><td colspan="1" rowspan="1">06. Initial learning rate (Detail 2)</td><td colspan="1" rowspan="1">0.3,0.1, 0.03,0.01,0.003,0.001,0.0003,0r 0.0001?</td></tr><tr><td colspan="1" rowspan="1"> 07. Learning rate drop</td><td colspan="1" rowspan="1">Do we need to decrease learning rate as we train? Yes or No?</td></tr><tr><td colspan="1" rowspan="1">08. Learning rate first drop time</td><td colspan="1" rowspan="1">If drop learning rate, when is the first time to drop by 1/1O? Epoch 40or Epoch 60?</td></tr><tr><td colspan="1" rowspan="1">09. Learning rate second drop time</td><td colspan="1" rowspan="1">If drop learning rate, when is the second time to drop by 1/10o? Epoch80 or Epoch 100?</td></tr><tr><td colspan="1" rowspan="1">10. Use momentum (Sutskever et al.,2013)</td><td colspan="1" rowspan="1">Yes or No?</td></tr><tr><td colspan="1" rowspan="1">11.Momentum rate</td><td colspan="1" rowspan="1">If use momentum, rate is 0.9 or 0.99?</td></tr><tr><td colspan="1" rowspan="1">12. Initial residual link weight</td><td colspan="1" rowspan="1">What is the initial residual link weight? All constant 1 or a randomnumber in [0,1]?</td></tr><tr><td colspan="1" rowspan="1">13.Tune residual link weight</td><td colspan="1" rowspan="1">Do we want to use back propagation to tune the weight of residual links?Yes or No?</td></tr><tr><td colspan="1" rowspan="1">14.Tune time of residual link weight</td><td colspan="1" rowspan="1">When do we start to tune residual link weight? At the first epoch orepoch 10?</td></tr><tr><td colspan="1" rowspan="1">15. Resblock first activation</td><td colspan="1" rowspan="1">Do we want to add activation layer after the first convolution? Yes orNo?</td></tr><tr><td colspan="1" rowspan="1">16. Resblock second activation</td><td colspan="1" rowspan="1">Do we want to add activation layer after the second convolution? YesorNo?</td></tr><tr><td colspan="1" rowspan="1">17. Resblock third activation</td><td colspan="1" rowspan="1">Do we want to add activation layer after adding the residual link? Yesor No?</td></tr><tr><td colspan="1" rowspan="1">18.Convolution bias</td><td colspan="1" rowspan="1">Do we want to have bias term in convolutional layers? Yes or No?</td></tr><tr><td colspan="1" rowspan="1">19.Activation</td><td colspan="1" rowspan="1">What kind of activations do we use? ReLU or others?</td></tr><tr><td colspan="1" rowspan="1">20. Activation (Detail 1)</td><td colspan="1" rowspan="1">ReLU, ReLU, Sigmoid,or Tanh?</td></tr><tr><td colspan="1" rowspan="1">21. Use dropout (Srivastava et al., 2014)</td><td colspan="1" rowspan="1">Yes or No?</td></tr><tr><td colspan="1" rowspan="1">22. Dropout rate</td><td colspan="1" rowspan="1"> If use dropout, rate is high or low?</td></tr><tr><td colspan="1" rowspan="1">23. Dropout rate (Detail 1)</td><td colspan="1" rowspan="1">If use dropout, the rate is 0.3, 0.2, 0.1, or 0.05?</td></tr><tr><td colspan="1" rowspan="1">24.Batch norm (Ioffe & Szegedy, 2015)</td><td colspan="1" rowspan="1">Do we use batch norm? Yes or No?</td></tr><tr><td colspan="1" rowspan="1">25. Batch norm tuning</td><td colspan="1" rowspan="1">If we use batch norm,do we tune the parameters in the batch normlayers? Yes or No?</td></tr><tr><td colspan="1" rowspan="1">26. Resnet shortcut type</td><td colspan="1" rowspan="1">What kind of resnet shortcut type do we use? Identity or others?</td></tr><tr><td colspan="1" rowspan="1">27. Resnet shortcut type (Detail 1)</td><td colspan="1" rowspan="1">Identity, Identity, Type B or Type C?</td></tr><tr><td colspan="1" rowspan="1">28.Weight decay</td><td colspan="1" rowspan="1">Do we use weight decay during the training? Yes or No?</td></tr><tr><td colspan="1" rowspan="1">29.Weight decay parameter</td><td colspan="1" rowspan="1">If use weight decay, what is the parameter? 1e - 3 or 1e - 4?</td></tr><tr><td colspan="1" rowspan="1">30.Batch Size</td><td colspan="1" rowspan="1">What is the batch size we should use? Big or Small?</td></tr><tr><td colspan="1" rowspan="1">31.Batch Size (Detail 1)</td><td colspan="1" rowspan="1">256,128,64,or 32?</td></tr><tr><td colspan="1" rowspan="1">32. Optnet</td><td colspan="1" rowspan="1"> An option specific to the codel2. Yes or No?</td></tr><tr><td colspan="1" rowspan="1">33.Share gradInput</td><td colspan="1" rowspan="1"> An option specific to the code. Yes or No?</td></tr><tr><td colspan="1" rowspan="1">34.Backend</td><td colspan="1" rowspan="1">What kind of backend shall we use? cudnn or cunn?</td></tr><tr><td colspan="1" rowspan="1">35.cudnn running state</td><td colspan="1" rowspan="1">If use cudnn, shall we use fastest of other states?</td></tr><tr><td colspan="1" rowspan="1"> 36. cudnn running state (Detail 1)</td><td colspan="1" rowspan="1">Fastest,Fastest, default, deterministic</td></tr><tr><td colspan="1" rowspan="1">37. nthreads</td><td colspan="1" rowspan="1">How many threads shall we use? Many or few?</td></tr><tr><td>38.nthreads (Detail 1)</td><td>8,4,2,or 1?</td></tr><tr><td>39-60.Dummy variables</td><td>Just dummy variables,no effect at all.</td></tr></table>
|
| 415 |
+
|
| 416 |
+
See Table 1 for the specific hyperparameter options that we use in Section 5. For those variables with $k$ options $( k > 2 )$ , we use $\log k$ binary variables under the same name to represent them. For example, we have two variables (01, 02) and their binary representation to denote four kinds of possible initializations: Xavier Glorot (Glorot & Bengio, 2010), Kaiming (He et al., 2015), $1 / n$ , or $\mathbf { { \bar { 1 } } } / n ^ { 2 }$ .
|
| 417 |
+
|
| 418 |
+
# C.2 IMPORTANCE FEATURES
|
| 419 |
+
|
| 420 |
+
We show the selected important features and their weights during the first 3 stages in Table 2, where each feature is a monomial of variables with degree at most 3. We do not include the 4th stage because in that stage there are no features with nonzero weights.
|
| 421 |
+
|
| 422 |
+
Smart choices on important options. Based on Table 2, Harmonica will fix the following variables (sorted according to their importance): Batch Norm (Yes), Activation (ReLU), Initial learning rate ([0.001, 0.1]), Optimization method (Adam), Use momentum (Yes), Resblock first activation (Yes), Resblcok third activation (No), Weight decay (No if initial learning rate is comparatively small and Yes otherwise), Batch norm tuning (Yes). Most of these choices match what people are doing in practice.
|
| 423 |
+
|
| 424 |
+
A metric for the importance of variables. The features that Harmonica finds can serve as a metric for measuring the importance of different variables. For example, Batch Norm turns out to be the most significant variable, and ReLU is second important. By contrast, Dropout, when Batch Norm is presented, does not have significant contributions. This actually matches with the observations in (Ioffe & Szegedy, 2015).
|
| 425 |
+
|
| 426 |
+
No dummy/irrelevant variables selected. Although there are 21/60 dummy variables, we never select any of them. Moreover, the irrelevant variables like cudnn, backend, nthreads, which do not affect the test error, were not selected.
|
| 427 |
+
|
| 428 |
+
Table 2: Important features
|
| 429 |
+
|
| 430 |
+
<table><tr><td rowspan=1 colspan=1>Stage</td><td rowspan=1 colspan=1>Feature Name</td><td rowspan=1 colspan=1>Weights</td></tr><tr><td rowspan=1 colspan=1>1-1</td><td rowspan=1 colspan=1>24.Batch norm</td><td rowspan=1 colspan=1>8.05</td></tr><tr><td rowspan=1 colspan=1>1-2</td><td rowspan=1 colspan=1>19. Activation</td><td rowspan=1 colspan=1>3.47</td></tr><tr><td rowspan=1 colspan=1>1-3</td><td rowspan=1 colspan=1> 04. Initial learning rate * O5. Initial learning rate (Detail 1)</td><td rowspan=1 colspan=1>3.12</td></tr><tr><td rowspan=1 colspan=1>1-4</td><td rowspan=1 colspan=1>19. Activation * 24. Batch norm</td><td rowspan=1 colspan=1>-2.55</td></tr><tr><td rowspan=1 colspan=1>1-5</td><td rowspan=1 colspan=1>04. Initial learning rate</td><td rowspan=1 colspan=1>-2.34</td></tr><tr><td rowspan=1 colspan=1>1-6</td><td rowspan=1 colspan=1>28. Weight decay</td><td rowspan=1 colspan=1>-1.90</td></tr><tr><td rowspan=1 colspan=1>1-7</td><td rowspan=1 colspan=1>24. Batch norm * 28. Weight decay</td><td rowspan=1 colspan=1>1.79</td></tr><tr><td rowspan=1 colspan=1>1-8</td><td rowspan=1 colspan=1> 34. Optnet * 35. Share gradInput * 52. Dummy13</td><td rowspan=1 colspan=1>1.54</td></tr><tr><td rowspan=1 colspan=1>2-1</td><td rowspan=1 colspan=1>03.Optimization method</td><td rowspan=1 colspan=1>-4.22</td></tr><tr><td rowspan=1 colspan=1>2-2</td><td rowspan=1 colspan=1>03.Optimization method * 10. Use momentum</td><td rowspan=1 colspan=1>-3.02</td></tr><tr><td rowspan=1 colspan=1>2-3</td><td rowspan=1 colspan=1>15.Resblock first activation</td><td rowspan=1 colspan=1>2.80</td></tr><tr><td rowspan=1 colspan=1>2-4</td><td rowspan=1 colspan=1>10.Use momentum</td><td rowspan=1 colspan=1>2.19</td></tr><tr><td rowspan=1 colspan=1>2-5</td><td rowspan=1 colspan=1>15.Resblock first activation * 17. Resblock third activation</td><td rowspan=1 colspan=1>1.68</td></tr><tr><td rowspan=1 colspan=1>2-6</td><td rowspan=1 colspan=1>01.Good initialization</td><td rowspan=1 colspan=1>-1.26</td></tr><tr><td rowspan=1 colspan=1>2-7</td><td rowspan=1 colspan=1>01.Good initialization *10. Use momentum</td><td rowspan=1 colspan=1>-1.12</td></tr><tr><td rowspan=1 colspan=1>2-8</td><td rowspan=1 colspan=1>01.Good initialization * O3.Optimization method</td><td rowspan=1 colspan=1>0.67</td></tr><tr><td rowspan=1 colspan=1>3-1</td><td rowspan=1 colspan=1>29.Weight decayparameter</td><td rowspan=1 colspan=1>-0.49</td></tr><tr><td rowspan=1 colspan=1>3-2</td><td rowspan=1 colspan=1>28.Weight decay</td><td rowspan=1 colspan=1>-0.26</td></tr><tr><td rowspan=1 colspan=1>3-3</td><td rowspan=1 colspan=1>06. Initial learning rate (Detail 3) * 28. Weight decay</td><td rowspan=1 colspan=1>0.23</td></tr><tr><td rowspan=1 colspan=1>3-4</td><td rowspan=1 colspan=1>25. Batch norm tuning</td><td rowspan=1 colspan=1>0.21</td></tr><tr><td rowspan=1 colspan=1>3-5</td><td rowspan=1 colspan=1>28.Weight decay * 29. Weight decay parameter</td><td rowspan=1 colspan=1>0.20</td></tr></table>
|
| 431 |
+
|
| 432 |
+

|
| 433 |
+
Figure 4: Average test error drops.
|
| 434 |
+
|
| 435 |
+

|
| 436 |
+
Figure 5: Optimization time comparison
|
| 437 |
+
|
| 438 |
+
Table 3: Stable ranges for parameters in Lasso
|
| 439 |
+
|
| 440 |
+
<table><tr><td rowspan=1 colspan=1>Parameter</td><td rowspan=1 colspan=1>Stage 1</td><td rowspan=1 colspan=1>Stage 2</td><td rowspan=1 colspan=1>Stage 3</td></tr><tr><td rowspan=1 colspan=1>入</td><td rowspan=1 colspan=1>[0.01,4.5]</td><td rowspan=1 colspan=1>[0.1,2.5]</td><td rowspan=1 colspan=1>[0.5, 1.1]</td></tr><tr><td rowspan=1 colspan=1>#Samples</td><td rowspan=1 colspan=1>≥250</td><td rowspan=1 colspan=1>≥180</td><td rowspan=1 colspan=1>≥150</td></tr></table>
|
| 441 |
+
|
| 442 |
+
# C.3 GENERALIZING FROM SMALL NETWORKS TO BIG NETWORKS
|
| 443 |
+
|
| 444 |
+
In our experiments, Harmonica first runs on a small network to extract important features and then uses these features to do fine tuning on a big network. Since Harmonica finds significantly better solutions, it is natural to ask whether other algorithms can also exploit this strategy to improve performance.
|
| 445 |
+
|
| 446 |
+
Unfortunately, it seems that all the other algorithms do not naturally support feature extraction from a small network. For Bayesian Optimization techniques, small networks and large networks have different optimization spaces. Therefore without some modification, Spearmint cannot use information from the small network to update the prior distribution for the large network.
|
| 447 |
+
|
| 448 |
+
Random-search-based techniques are able to find configurations with low test error on the small network, which might be good candidates for the large network. However, based on our simulation, good configurations of hyperparameters from random search do not generalize from small networks to large networks. This is in contrast to important features in our (Fourier) space, which do seem to generalize.
|
| 449 |
+
|
| 450 |
+
To test the latter observation using Cifar-10 dataset, we first spent 7 GPU days on 8 layer network to find top 10 configurations among 300 random selected configurations. Then we apply these 10 configurations, as well as 90 locally perturbed configurations (each of them is obtained by switching one random option from one top-10 configuration), so in total 100 “promising” configurations, to the large 56 layer network. This simulation takes 27 GPU days, but the best test error we obtained is only $1 1 . 1 \%$ , even worse than purely random search. Since Hyperband is essentially a fast version of Random Search, it also does not support feature extraction.
|
| 451 |
+
|
| 452 |
+
Hence, being able to extract important features from small networks seems empirically to be a unique feature of Harmonica.
|
| 453 |
+
|
| 454 |
+
# C.4 EXPERIMENTS WITH SYNTHETIC FUNCTIONS
|
| 455 |
+
|
| 456 |
+
Our second experiment considers a synthetic hierarchically bounded function $h ( x )$ . We run Harmonica with 100 samples, 5 features selected per stage, for 3 stages, using degree 3 features. See Figure 5 for optimization time comparison. We only plot the optimization time for Spearmint when $n = 6 0$ , which takes more than one day for 500 samples. Harmonica is several magnitudes faster than Spearmint. In Figure 6, we show that Harmonica is able to estimate the hidden function with error proportional to the noise level.
|
| 457 |
+
|
| 458 |
+
The synthetic function $h ( x ) \in \{ - 1 , + 1 \} ^ { n } \to \mathbb { R }$ is defined as follows. $h ( x )$ has three stages, and in $i$ -th stage $( i = 0 , 1 , 2 )$ , it has $3 2 ^ { i }$ sparse vectors $s _ { i , j }$ for $j = 0 , \cdots , 3 2 ^ { i } - 1$ . Each $s _ { i , j }$ contains 5 pairs of weight $w _ { i , j } ^ { k }$ and feature $f _ { i , j } ^ { k }$ for $k = 1 , \cdots 5$ , where $w _ { i , j } ^ { k } \in [ 1 0 + 1 0 ^ { - i } , 1 0 ^ { \top } + 1 0 ^ { 2 - i } ]$ . and $f _ { i , j } ^ { k }$ is a monomial on $x$ with degree at most 3. Therefore, for input $x \in \mathbb { R } ^ { n }$ , the sparse vector $\begin{array} { r } { s _ { i , j } ( x ) = \sum _ { k = 1 } ^ { 5 } w _ { i , j } ^ { k } f _ { i , j } ^ { k } ( x ) } \end{array}$ . Since $x \in \{ - 1 , + 1 \} ^ { n }$ , $f _ { i , j } ^ { k } ( x )$ is binary. Therefore, $\{ f _ { i , j } ^ { k } ( x ) \} _ { k = 1 } ^ { 5 }$ contains 5 binaries and represents a integer in $\left[ 0 , 3 1 \right]$ , denoted as $c _ { i , j } ( \boldsymbol { x } )$ . Let $h ( x ) = s _ { 1 , 1 } ( x ) +$ $s _ { 2 , c _ { 1 , 1 } ( x ) } ( x ) + s _ { 3 , c _ { 1 , 1 } ( x ) * 3 2 + c _ { 2 , c _ { 1 , 1 } ( x ) } ( x ) } ( x ) + \xi$ , where $\xi$ is the noise uniformly sampled from $[ - A , A ]$ ( $\boldsymbol { \cdot } \boldsymbol { A }$ is the noise level). In other words, in every stage $i$ we will get a sparse vector $s _ { i , j }$ . Based on $s _ { i , j } ( x )$ , we pick a the next sparse function and proceed to the next stage.
|
| 459 |
+
|
| 460 |
+

|
| 461 |
+
Figure 6: The estimation error of Harmonica is linear in noise level.
|
parse/train/H1zriGeCZ/H1zriGeCZ_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1zriGeCZ/H1zriGeCZ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1zriGeCZ/H1zriGeCZ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/_WnGcwXLYOE/_WnGcwXLYOE.md
ADDED
|
@@ -0,0 +1,255 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# FLEX: Unifying Evaluation for Few-Shot NLP
|
| 2 |
+
|
| 3 |
+
Jonathan Bragg∗ Arman Cohan∗ Kyle Lo Iz Beltagy
|
| 4 |
+
|
| 5 |
+
Allen Institute for AI, Seattle, WA {jbragg,armanc,kylel,beltagy}@allenai.org
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Few-shot NLP research is highly active, yet conducted in disjoint research threads with evaluation suites that lack challenging-yet-realistic testing setups and fail to employ careful experimental design. Consequently, the community does not know which techniques perform best or even if they outperform simple baselines. In response, we formulate the FLEX Principles, a set of requirements and best practices for unified, rigorous, valid, and cost-sensitive few-shot NLP evaluation. These principles include Sample Size Design, a novel approach to benchmark design that optimizes statistical accuracy and precision while keeping evaluation costs manageable. Following the principles, we release the FLEX benchmark,2 which includes four few-shot transfer settings, zero-shot evaluation, and a public leaderboard that covers diverse NLP tasks. In addition, we present UniFew,3 a prompt-based model for few-shot learning that unifies pretraining and finetuning prompt formats, eschewing complex machinery of recent prompt-based approaches in adapting downstream task formats to language model pretraining objectives. We demonstrate that despite simplicity, UniFew achieves results competitive with both popular meta-learning and prompt-based approaches.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Few-shot learning, the challenge of learning from a small number of examples, is critical for developing efficient, robust NLP techniques [71, 76]. In recent years, separate threads of few-shot NLP research have pursued goals like generalization to new classes [e.g., 5, 25], adaptation to new domains and tasks [e.g., 3, 4, 21], and direct application of pretrained language models (LMs) [e.g., 10, 24, 55, 56]. Unfortunately, despite the shared goal of advancing few-shot NLP techniques, the community does not know which techniques work best or even if they perform better than simple baselines. Evaluation suites across these research threads are disjoint, lack challenging-yet-realistic testing setups (e.g., class imbalance, variable training set sizes, etc.), and do not employ careful experimental design to ensure accurate and precise evaluation estimates and minimal computational burden. Prior work in few-shot learning outside of NLP serves as a stark warning of the consequences of improper measurement: Dhillon et al. [19] showed that techniques from several years of prior work did not make clear progress due to large overlapping accuracy distributions and, moreover, do not outperform a simple, carefully-tuned baseline.
|
| 14 |
+
|
| 15 |
+
Need for systematic benchmark design As such, a high-quality benchmark is urgently needed to enable rigorous comparison of techniques across disjoint, highly-active threads of few-shot NLP research. But what should such an evaluation suite look like? Some best practices for evaluation of few-shot methods have been introduced in the computer vision (CV) literature [19, 67] and should be applied to NLP. However, unifying few-shot NLP work introduces new challenges. For example, the benchmark needs to test all types of transfer studied in separate research threads to measure progress on new techniques that make gains in each of these important generalization settings (§2). Also, given the importance of zero-shot learning and learning from task descriptions [29, 73], the benchmark needs to include zero-shot episodes and textual labels to enable measuring progress for models that do not use conventional supervised training, including methods that leverage the latent knowledge in pretrained LMs [10, 24, 78]. Further, the benchmark must accommodate new, computationally-expensive approaches, without overly reducing the number of evaluation episodes at the expense of statistical accuracy [3, 24, 75].
|
| 16 |
+
|
| 17 |
+
Table 1: Comparison of the FLEX benchmark with closest prior work. Our benchmark consists of episodes with variable number of shots in the range [1-5] and with class imbalance. “No extra test data” refers to excluding validation data from testing tasks, to avoid unfairly advantaging models that use such data [50]. Our benchmark’s number of test episodes is selected to balance statistical accuracy and precision, which suffers in few-episode setups, and compute requirements, which is too costly in many-episode setups (§5).
|
| 18 |
+
|
| 19 |
+
<table><tr><td></td><td></td><td></td><td></td><td></td><td></td><td>CrosSFit[75]LM-BFF[24] GPT-3[10]DS[5]SMLMT[4] FewGlue[56]FLEX(ours)</td><td></td></tr><tr><td>Class Transfer</td><td></td><td></td><td></td><td>√</td><td></td><td></td><td></td></tr><tr><td>Domain Transfer</td><td></td><td></td><td></td><td></td><td>√</td><td></td><td></td></tr><tr><td>Task Transfer</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Pretraining Transfer</td><td></td><td>√</td><td><</td><td></td><td></td><td>√</td><td>>>>></td></tr><tr><td>Shots per class</td><td>{16,32}</td><td>16</td><td>variable</td><td>{1,5}</td><td>{4,8,16,32}</td><td>{total 32}4</td><td>[1-5]</td></tr><tr><td>Variable shots</td><td></td><td>1</td><td>√</td><td></td><td></td><td></td><td></td></tr><tr><td>Unbalanced</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Textual labels</td><td></td><td>√</td><td></td><td></td><td></td><td>√</td><td></td></tr><tr><td>Zero-shot</td><td></td><td>√</td><td>√</td><td></td><td></td><td>-</td><td></td></tr><tr><td>No extra test data</td><td></td><td></td><td></td><td>√</td><td>√</td><td>mixed5</td><td>>>>>>0</td></tr><tr><td># test episodes</td><td>5</td><td>5</td><td>1</td><td>1000</td><td>10</td><td>1</td><td></td></tr><tr><td>Reporting</td><td>avg</td><td>avg,SD</td><td>ag</td><td>avg, SD</td><td>avg,SD</td><td>avg, SD</td><td>al16</td></tr><tr><td>#datasets</td><td>160</td><td>16</td><td></td><td>7</td><td>18</td><td>8</td><td>20</td></tr></table>
|
| 20 |
+
|
| 21 |
+
Need for a robust few-shot model Recent prompt-based models [10] have shown strong results in few-shot learning. These models leverage the power of (often large) pretrained language models and adapt the format of downstream tasks to the underlying pretraining objective (e.g., Masked Language Modeling). This way, given the right natural language prompt (and sometimes verbalizers [55] and additional demonstrative examples), the model can quickly fine-tune on the downstream task [24, 43, 44, 55, 56]. However, adapting task formats to the underlying (masked) language modeling objectives is not straightforward; such models have been shown to be sensitive to varying choices of the prompt/demonstrations, training settings, hyperparameters, and learning algorithms [33, 50, 78], often requiring large held out sets and/or complex methods to overcomes such challenges. Can models eschew complex prompt engineering by unifying pretraining and downstream task formats?
|
| 22 |
+
|
| 23 |
+
In this paper, we tackle these key issues by introducing FLEX—Few-shot Language Evaluation across $\mathbf { \delta } ( \mathbf { X } )$ many transfer types—and contributing the following:
|
| 24 |
+
|
| 25 |
+
• FLEX Principles (§3), a set of requirements and best practices for few-shot NLP evaluation that enables unified, rigorous, valid, and cost-sensitive measurements. – Sample Size Design: In support of valid, cost-sensitive measurement, we introduce a novel approach to few-shot sample size design (§5) that optimizes for a benchmark’s statistical accuracy and precision while keeping computational costs accessible to a broad range of researchers.
|
| 26 |
+
• FLEX benchmark (§4), an implementation of the FLEX Principles. It tests across four few-shot transfer settings,7 and includes a public leaderboard for few-shot NLP that covers 20 datasets across diverse NLP tasks (e.g., NLI, relation classification, entity typing). Table 1 summarizes key differences between FLEX and other few-shot NLP evaluation suites.
|
| 27 |
+
|
| 28 |
+
• UniFew (§6), a prompt-based model for few-shot learning in NLP. While most existing methods leverage pre-trained LMs for few-shot learning, LM pre-training tasks do not closely match natural downstream task formats, requiring complex methods (e.g., extensive prompt-engineering, use of verbalizers, episodic hyperparameter tuning, custom learning algorithms) to make these models work in few-shot setting. Instead, the key idea of our model, UniFew, is to close the gap between pre-training and fine-tuning formats by posing tasks as multiple-choice QA and using an underlying model that is pre-trained on a similar natural QA task format. This eliminates the need for complexities of adapting downstream tasks to the LM objectives, while resulting in competitive performance with both recent few-shot and meta-learning methods.
|
| 29 |
+
|
| 30 |
+
To aid similar efforts, our release of FLEX includes a toolkit for benchmark creation and few-shot NLP model development, which we used to create the FLEX benchmark and train UniFew.
|
| 31 |
+
|
| 32 |
+
# 2 Background and Related Work
|
| 33 |
+
|
| 34 |
+
We first provide background and notation for few-shot learning and evaluation, then discuss related work in NLP and outside NLP that motivated us to create the FLEX Principles and benchmark.
|
| 35 |
+
|
| 36 |
+
Few-shot background and notation Broadly, modern approaches to few-shot learning are evaluated in a three-phase procedure [68]. In the first phase, a general-purpose pretrained model is obtained. In the subsequent “meta-training” phase,8 techniques aim to adapt the model to be well-suited for few-shot generalization. Finally, a “meta-testing” phase evaluates the adapted model in new few-shot prediction settings.
|
| 37 |
+
|
| 38 |
+
Let $\mathcal { D }$ be a dataset of $( x , y )$ examples with full label set $\mathcal { V } _ { D }$ . From it, we construct three sets of episodes, corresponding to meta-training, meta-validation, and meta-testing and denoted by ${ \mathcal { E } } _ { \operatorname* { t r a i n } }$ ${ \mathcal E } _ { \mathrm { v a l } }$ , and ${ \mathcal { E } } _ { \mathrm { t e s t } }$ , respectively. Each episode in each of these sets is a few-shot problem with its own test set and other attributes. Forsampled subset of labels in ly, e and $E$ is a tuplee disjoint $( \mathcal { D } _ { \mathrm { t r a i n } } ^ { E } , \mathcal { D } _ { \mathrm { v a l } } ^ { E } , \dot { \mathcal { D } } _ { \mathrm { t e s t } } ^ { E } , \mathcal { y } _ { \mathcal { D } } ^ { E } )$ wherewith l $y _ { \mathcal { D } } ^ { E }$ is a ls in $\mathcal { V } _ { D }$ $\mathcal { D } _ { \mathrm { t r a i n | v a l | t e s t } } ^ { E }$ $\mathcal { D }$ $y _ { \mathcal { D } } ^ { E }$ . 9 For each episode, the model’s objective is to correctly predict labels for examples $\mathcal { D } _ { \mathrm { t e s t } } ^ { E }$ . To accomplish this, models make use of labeled examples in $\mathcal { D } _ { \mathrm { t r a i n } } ^ { E }$ , which is typically configured such that each label $i$ in $y _ { \mathcal { D } } ^ { E }$ has $K _ { i } ^ { E }$ provided examples; $K _ { i } ^ { E }$ is known as the shot, and the setting when a class has no examples in $\mathcal { D } _ { \mathrm { t r a i n } } ^ { E }$ (i.e., $K _ { i } ^ { E } = 0$ ) is called zero-shot.
|
| 39 |
+
|
| 40 |
+
Few-shot evaluation in NLP Research in few-shot NLP has proceeded in several parallel threads, each focused on a different type of transfer ability [76]. Each thread has separate evaluation practices, and the vast majority of few-shot NLP research has limited evaluation to a single transfer type (see Table 1). Here, we describe these types of transfer and their evaluation practices.
|
| 41 |
+
|
| 42 |
+
Following the CV literature [67, 68], one thread of few-shot NLP focuses on class transfer, the problem of generalizing from a supervised set of classes at meta-train time to a differenfrom the same dataset at meta-test time. Evaluation typically involves splitting classes $\mathcal { V } _ { D }$ of c into $\mathcal { V } _ { \mathrm { t r a i n } } ^ { \mathcal { D } }$ $y _ { \mathrm { v a l } } ^ { \mathcal { D } }$ and $\mathcal { V } _ { \mathrm { t e s t } } ^ { \mathcal { D } }$ disjoint subsets. Class transfer has been studied on many text classification tasks [5], including relation classification [25, 28, 64], intent classification [37, 64], inter alia. In contrast, domain transfer keeps the same classes between meta-training and meta-testing but changes the textual domain (e.g., generalizing from MNLI to science-focused SciTail [4, 21]). Evaluation then requires identifying pairs of datasets with the same classes $\mathcal { \ V } _ { D }$ , where one dataset’s episodes are assigned to ${ \mathcal { E } } _ { \operatorname* { t r a i n } }$ and the other’s to ${ \mathcal { E } } _ { \mathrm { t e s t } }$ . Domain transfer has also been studied on many tasks [3, 4], including dialogue intent detection & slot tagging [31], sentiment classification [77], NLI [21], and machine translation [27, 58].
|
| 43 |
+
|
| 44 |
+
Researchers have also begun to study task transfer, the problem of generalizing from a set of tasks at meta-train time to unseen tasks at meta-test time. Evaluation requires tasks (e.g., NLI) appearing in ${ \mathcal { E } } _ { \mathrm { t e s t } }$ not to appear in ${ \mathcal { E } } _ { \mathrm { t r a i n } }$ or ${ \mathcal E } _ { \mathrm { v a l } }$ . Prior work has used GLUE tasks [70] for meta-training before meta-testing on tasks such as entity typing [3, 4], while other work instead used GLUE for meta-testing [21]. Very recent work has studied task transfer over a large set of datasets [75, 80]. A limited amount of work evaluates both domain and task transfer [3, 4, 21]. An important emerging line of work (not noted by Yin [76]) is pretraining transfer, the problem of whether pretrained language models can perform well at meta-test time without any meta-training. Evaluation in this setting requires ${ \mathcal { E } } _ { \mathrm { t r a i n } }$ , $\bar { \mathcal { E } } _ { \mathrm { v a l } } = \emptyset$ . Prior work has shown that pretrained language models are capable of surprising performance on many few-shot tasks, even without fine-tuning [10]. More recent work, mainly focusing on text classification, has reported further gains with cloze-style formats [55, 56, 65], prompt engineering [24], or calibration [78]. FLEX is designed to exercise all four of these transfer types from previous work.
|
| 45 |
+
|
| 46 |
+
Few-shot evaluation outside NLP The few-shot learning literature has largely focused on image classification, with the introduction of increasingly complex meta-learning algorithms [e.g., 23, 39, 54, 61, 68]. However, more recent work has shown that simple fine-tuning baselines are in fact competitive, and attribute this delayed discovery to problematic evaluation methodology [15, 19]. FLEX adopts recommended methodology [19, 67], and we introduce an analogous baseline (UniFew) to provide a strong measurement foundation for few-shot NLP.
|
| 47 |
+
|
| 48 |
+
# 3 FLEX Principles for Few-Shot NLP Evaluation
|
| 49 |
+
|
| 50 |
+
We now enumerate key desiderata for a few-shot NLP benchmark capable of solving the urgent problems with few-shot NLP evaluation, including separate evaluations for each transfer type and failure to incorporate best measurement practices from other domains (§2).
|
| 51 |
+
|
| 52 |
+
Diversity of transfer types To make NLP models broadly useful, few-shot NLP techniques must be capable of class, domain, and task transfer. Moreover, techniques should make use of the relevant supervision provided during meta-training to increase performance compared to the pretraining transfer setting. The benchmark should measure all four transfer settings to ensure that the community develops techniques that improve on strong pretraining transfer baselines, and enable comparison across these currently separate threads of research.
|
| 53 |
+
|
| 54 |
+
Variable number of shots and classes To better simulate a variety of real-world scenarios, the benchmark should include a variety of training set sizes and numbers of classes [67]. Testing robustness to these factors is crucial; few-shot techniques are often sensitive to changes in these factors [12], yet all prior few-shot NLP evaluations we are aware of used a fixed number of training shots and classes, known in advance during meta-training.
|
| 55 |
+
|
| 56 |
+
Unbalanced training sets The benchmark should also include unbalanced training sets with different training shots per class, another realistic setting adopted by CV benchmarks [67]. Class imbalance has also been observed to degrade performance [11, 47], yet prior few-shot NLP evaluations do not include this setting either.
|
| 57 |
+
|
| 58 |
+
Textual labels While numerical label values are often used in classification tasks, descriptive textual labels are also present for many tasks. Making these textual labels available for use by few-shot techniques enables the development of techniques that can leverage the class name, like in-context learning [10], template generation [24], and meta-learning [45]. Textual labels are crucial in particular for zero-shot evaluation.
|
| 59 |
+
|
| 60 |
+
Zero-shot evaluation We believe zero-shot evaluation is integral to the goals of few-shot evaluation. Similar to the motivation for measuring pretraining transfer, zero-shot evaluation is an important use case and also provides a strong baseline for some tasks. In the absence of training examples, textual class labels or richer task descriptions [73] must be provided. Some recent few-shot NLP work [e.g., 10, 24] evaluated with zero training shots, but most [e.g., 3, 5, 75] did not.
|
| 61 |
+
|
| 62 |
+
No extra meta-testing data We believe the benchmark should not provide validation data $\langle \mathcal { D } _ { \mathrm { v a l } } ^ { E } =$ $\emptyset , \forall E \in { \mathcal { E } } _ { \mathrm { t e s t } } )$ or unlabeled data for meta-testing tasks, since few-shot learning seeks to enable high performance in environments where collecting additional data is costly.10 Variation in these dimensions in prior NLP work makes comparison of results extremely difficult because it is often under-reported and gives unfair advantage to approaches that leverage such data [50]. For example, per-episode hyperparameter tuning on extra data has been shown to greatly inflate evaluation scores [24]. A few researchers [5, 65] follow our suggested approach, but others have used many different settings, from validation sets of various sizes [10, 24, 79] to no validation set but a large set of unlabeled examples [55, 56].
|
| 63 |
+
|
| 64 |
+
Principled sample size design Promising few-shot techniques can incur significant computational cost per episode, e.g., due to fine-tuning model parameters [4], searching for prompts [24], inter alia. To alleviate these costs, related works often evaluate with a limited number of episodes, which precludes statistically accurate or precise performance estimates. We believe the benchmark’s test sample size should be optimized to enable proper performance evaluation for such techniques, while ensuring the computational burden is inclusive toward researchers without large compute resources.
|
| 65 |
+
|
| 66 |
+
Proper reporting of CIs, SDs, and individual results The benchmark should report confidence intervals (CIs) of performance estimates and follow recent guidelines [19] to report standard deviations (SDs) for understanding variability. Moreover, we newly advocate for controlling for the same sampled few-shot episodes across all methods and reporting individual episode results, so that researchers can run higher-powered paired statistical tests when comparing results [22], crucial when the benchmark has been optimized for low evaluation budgets.
|
| 67 |
+
|
| 68 |
+
# 4 FLEX Benchmark
|
| 69 |
+
|
| 70 |
+
The FLEX benchmark is a unifying, rigorous evaluation suite for few-shot learning in NLP, which implements the desiderata outlined in the previous section. In this section, we describe detailed design decisions and our accompanying few-shot NLP toolkit (§4.4), which we are releasing to facilitate easily adding NLP datasets and advanced sampling options to future benchmarks. We also describe the FLEX leaderboard (§4.5).
|
| 71 |
+
|
| 72 |
+
# 4.1 Task and Dataset Selection
|
| 73 |
+
|
| 74 |
+
Following GLUE [70] and other prior work [3, 5, 24, 78], we focus on tasks formatted as classification. Despite recent advances, NLP state-of-the-art models remain significantly worse than human performance on many text classification tasks, particularly in the few-shot setting. Automatic scoring of classification tasks is also more reliable than text generation tasks.
|
| 75 |
+
|
| 76 |
+
We selected datasets across three recent few-shot NLP evaluation suites, which separately studied class transfer [5], domain and task transfer [3, 4], and pretraining transfer [24]. Our benchmark includes a broad mix of tasks (NLI, question classification, entity typing, relation classification, and sentiment analysis) and formats (document, sentence, sentence pair). More complete dataset and license details are available in the following subsection and Appendix A.
|
| 77 |
+
|
| 78 |
+
# 4.2 Meta-Evaluation Protocols
|
| 79 |
+
|
| 80 |
+
As discussed earlier, FLEX evaluates four different types of transfer: Class, Domain, Task, and Pretraining Transfer. To support all types, we report results to the FLEX benchmark both without metatraining (pretraining-only) and with meta-training. This reporting scheme evaluates the performance of the basic pretrained model and the benefit (or lack thereof) of meta-training. A similar reporting scheme was proposed by Triantafillou et al. [67] for CV.
|
| 81 |
+
|
| 82 |
+
Pretraining-Only In this setting, the pretrained model is directly meta-tested on our benchmark without any additional training. This is the Pretraining Transfer setting, and it is the most difficult, but given the recent success of pretrained models in NLP for few-shot learning [10, 24], we believe that comparison to models without any meta-training is important for NLP tasks.
|
| 83 |
+
|
| 84 |
+
Meta-Trained In this setting, the model is meta-trained then meta-tested on our benchmark. We carefully selected and split datasets across meta-train/validation/test in order to enable testing of Class, Domain, and Task transfer with a single meta-training phase (to reduce computational burden). Datasets involved in each transfer setting (detailed split information in Table 4 in Appendix A):
|
| 85 |
+
|
| 86 |
+
• Class Transfer: FewRel [28], HuffPost [46], Amazon [30], 20News [38], and Reuters [41] take part in meta-training and meta-testing but with different classes. • Domain Transfer: MR [49], CR [32], SNLI [9], and SciTail [35] are only in the meta-testing phase, but the corresponding sentiment and NLI datasets exist in the meta-training phase (MNLI [74], QNLI [52], and SST-2 [62]).
|
| 87 |
+
|
| 88 |
+
• Task Transfer: Subj [48], TREC [69], and CoNLL [66] are also for meta-testing only, and they represent tasks that the model does not encounter during meta-training.
|
| 89 |
+
|
| 90 |
+
Instead of per-episode hyperparameter tuning, we provide meta-validation episodes ${ \mathcal E } _ { \mathrm { v a l } }$ for learning (during meta-training) global hyperparameters that work across all episodes. Specifically, the metavalidation dataset splits (see Table 4) consist of CoLa [72] for task transfer, WNLI [40] for domain transfer, and the validation splits used by Bao et al. [5] for all class transfer datasets. Following [3], we also include meta-training datasets MRPC [20], RTE [6, 8, 17, 26], and QQP [70].
|
| 91 |
+
|
| 92 |
+
# 4.3 Episode Sampling
|
| 93 |
+
|
| 94 |
+
We describe how our benchmark samples meta-testing episodes ${ \mathcal { E } } _ { \mathrm { t e s t } }$ . For meta-training, we allow users to sample from ${ \mathcal { E } } _ { \operatorname* { t r a i n } }$ , ${ \mathcal E } _ { \mathrm { v a l } }$ in any way, or directly use the underlying dataset splits.
|
| 95 |
+
|
| 96 |
+
Number of classes For Class Transfer datasets, FLEX evaluates model robustness to variable number of new classes. When constructing episode $E$ from one of these datasets $\mathcal { D }$ , our benchmark samples an episode-specific number of classes from dataset $D$ , the sampler picks a random number from the range $\mathcal { V } _ { D } ^ { E } \sim \mathrm { \bar { U n i f } } ( 5 , \operatorname* { m i n } ( | \mathcal { V } _ { D } | , 1 0 ) )$ . 11 For Domain and Task Transfer, the number of classes is fixed to the maximum number of classes in each dataset because Class Transfer is not being evaluated.
|
| 97 |
+
|
| 98 |
+
Number of shots Following prior work outside NLP [47, 67], our benchmark samples the training shot independently for each episode $E$ and class $i$ , as $K _ { i } ^ { E } \sim \mathrm { U n i f } ( K _ { \operatorname* { m i n } } , K _ { \operatorname* { m a x } } )$ , where $K _ { \operatorname* { m i n } } = 1$ Given strong performance of NLP models with few or even zero examples [10, 73] and following prior work [5], we set the limit $K _ { \operatorname* { m a x } } = 5$ . Separately, we allocate an equal number of episodes as zero-shot, where we instead set $\mathcal { D } _ { \mathrm { t r a i n } } ^ { E } = \varnothing$ (equivalently, $K _ { i } ^ { E } = 0 , \forall i )$ . In each episode, examples are sampled uniformly at random without replacement (but can be reused across episodes).12 Following Triantafillou et al. [67], we select a testing shot that is balanced across classes and leaves roughly half of examples for sampling the training examples. The total number of episodes for each reported configuration (pair of dataset and either zero- or few-shot) is set to 90 using Sample Size Design (§5).
|
| 99 |
+
|
| 100 |
+
# 4.4 Extensible Toolkit for Benchmark Creation and Model Training & Evaluation
|
| 101 |
+
|
| 102 |
+
Alongside the FLEX benchmark, we release an extensible, highly-configurable Python toolkit, which we used to generate the benchmark, and train and evaluate our models. Unlike existing meta-learning frameworks (e.g., Torchmeta [18], learn2learn [2]), our framework makes available a wide range of community-contributed NLP datasets and utilities via HuggingFace Datasets [42].13 Our code also provides advanced sampling utilities (e.g., for class imbalance), ensures reproducibility by checksumming generated episodes, and reports all recommended statistics.
|
| 103 |
+
|
| 104 |
+
# 4.5 Public Leaderboard
|
| 105 |
+
|
| 106 |
+
We provide public leaderboards for each of the meta-evaluation protocols: Pretraining-Only14 and Meta-Trained.15 Submissions take the form of a text label predictions file, which is produced by our toolkit. Results are reported with confidence intervals, standard deviations, and individual predictions on request. See Appendix G for a screenshot of the results interface.
|
| 107 |
+
|
| 108 |
+
# 5 Sample Size Design: Balancing Statistical Measurement & Compute Cost
|
| 109 |
+
|
| 110 |
+
We demonstrate a principled approach to determining the optimal sample size configuration in our few-shot benchmark. A proper benchmark should produce performance estimates that are accurate, close to the true value, and precise, low variance. A large (test) sample size can achieve this, yet must be considered alongside computational cost so that a broad community of researchers with differing amounts of compute resources can participate. This decision is further complicated in the few-shot setting, where sample size refers to both the number of test episodes $| \mathcal { E } _ { \mathrm { t e s t } } |$ and the number of test examples $| \mathcal { D } _ { \mathrm { t e s t } } ^ { E } |$ per episode $E \in \mathcal { E } _ { \mathrm { t e s t } }$ . For practicality, we consider $\overline { { | \mathcal { D } _ { \mathrm { t e s t } } | } }$ , the mean $| \mathcal { D } _ { \mathrm { t e s t } } ^ { E } |$ across all episodes, rather than every $| \mathcal { D } _ { \mathrm { t e s t } } ^ { E } |$ . It remains unknown how one should best distribute test examples between $| \mathcal { E } _ { \mathrm { t e s t } } |$ and $\overline { { | \mathcal { D } _ { \mathrm { t e s t } } | } }$ : More episodes each with fewer examples, or fewer episodes each with many examples? Prior work has been inconsistent in this regard. For example, Gao et al. [24] used $| \mathcal { E } _ { \mathrm { t e s t } } | = 5$ and large $\overline { { | \mathcal { D } _ { \mathrm { t e s t } } | } }$ , while Bao et al. [5] used $| \mathcal { E } _ { \mathrm { t e s t } } | = 1 0 0 0$ and much smaller $\overline { { | \mathcal { D } _ { \mathrm { t e s t } } | } }$ .
|
| 111 |
+
|
| 112 |
+

|
| 113 |
+
Figure 1: Results of simulation study described in $\ S 5$ . Each curve corresponds to a compute budget constraint $C$ (GPU-hours). Each point on a curve is an allocation of test data between the number of test episodes $| \mathcal { E } _ { \mathrm { t e s t } } |$ or mean number of examples per episode $\overline { { | \mathcal { D } _ { \mathrm { t e s t } } | } }$ such that evaluation can be completed within given budget. Per curve, lower values of $| \mathcal { E } _ { \mathrm { t e s t } } |$ correspond linearly to larger values of $\overline { { | \mathcal { D } _ { \mathrm { t e s t } } | } }$ , which are shown as numerical text annotations in (b). Error bars represent the $1 0 ^ { t h }$ and $9 0 ^ { t h }$ percentile values from repeated simulations across $\mu _ { a c c } \in \{ 0 . 3 , 0 . 3 5 , \ldots , 0 . 9 5 \}$ .
|
| 114 |
+
|
| 115 |
+
Inspired by simulation techniques for informing statistically-powered experimental design [13], we study how different configurations of $| \mathcal { E } _ { \mathrm { t e s t } } |$ and $\overline { { | \mathcal { D } _ { \mathrm { t e s t } } | } }$ across different compute budgets $C$ impact the accuracy and precision of our estimated CIs, specifically with respect to coverage probability [53] and width. First, we estimate per-episode and per-test-example costs of our few-shot model (§6) to obtain valid $( C , \vert \mathcal { E } _ { \mathrm { t e s t } } \vert , \vert \overline { { \mathcal { D } _ { \mathrm { t e s t } } } } \vert )$ configurations s.t. the full benchmark completes within given $C$ (GPU-hours).16 Then, for each $( C , \vert \mathcal { E } _ { \mathrm { t e s t } } \vert , \vert \overline { { \mathcal { D } _ { \mathrm { t e s t } } } } \vert )$ , we perform 1000 simulation runs, in which each run samples predictions under a true model accuracy $\mu _ { a c c }$ and computes a single $9 5 \%$ CI, its width, and whether it correctly covers $\mu _ { a c c }$ . Averaging over simulation runs gives us estimates for the coverage probability and width of our benchmark’s CI for a single $( C , \vert \mathcal { E } _ { \mathrm { t e s t } } \vert , \vert \overline { { \mathcal { D } _ { \mathrm { t e s t } } } } \vert )$ . We repeat this whole procedure for different $\mu _ { a c c } \in \{ 0 . 3 , 0 . 3 5 , \ldots , 0 . 9 5 \}$ to cover a wide range of possible model performances observed across many datasets (see Table 3).
|
| 116 |
+
|
| 117 |
+
Figure 1 shows CI coverage probability and width for many $( C , \vert \mathcal { E } _ { \mathrm { t e s t } } \vert , \overline { { \vert D _ { \mathrm { t e s t } } \vert } } )$ configurations. First, we find in Figure 1a that sufficiently-many test episodes (i.e., $\vert \mathcal { E } _ { \mathrm { t e s t } } \vert > 6 0 )$ is needed to guarantee coverage probability of our CIs is within one percentage point of the target $9 5 \%$ , a trend that holds regardless of compute budget. Small $| \mathcal { E } _ { \mathrm { t e s t } } |$ also corresponds to large CI widths across all considered budgets in Figure 1b. This suggests that the choices of $| \mathcal { E } _ { \mathrm { t e s t } } | = 1 , 5 , 1 0$ in prior work [4, 24, 56, 75] can mean inaccurate and wide CIs, while choices of $| \mathcal { E } _ { \mathrm { t e s t } } | = 1 0 0 0$ [5] can be prohibitively costly for methods with high training cost.
|
| 118 |
+
|
| 119 |
+
Next, Figure 1b reveals (i) diminishing returns in $\mathrm { C I }$ width (decrease in $y$ -axis) as compute increases, and (ii) existence of an optimal balance between $| \mathcal { E } _ { \mathrm { t e s t } } |$ and $\overline { { | \mathcal { D } _ { \mathrm { t e s t } } | } }$ for each budget. Restricting our consideration to budgets with optima satisfying sufficient coverage probability $\lvert \mathcal { E } _ { \mathrm { t e s t } } \rvert > 6 0 )$ , the minimum viable budget is 36 GPU-hours. Then, assessing the marginal benefit of each 12 GPU-hour budget increase in terms of marginal reduction in CI width between optima, we arrive at our FLEX configuration of $| \mathcal { E } _ { \mathrm { t e s t } } | = 9 0$ and $\overline { { | \mathscr { D } _ { \mathrm { t e s t } } | } } \approx 4 7 0$ under a budget of $C = 4 8$ GPU-hours.17 Further details are in Appendix B.
|
| 120 |
+
|
| 121 |
+
# 6 UniFew: A Few-Shot Learning Model by Unifying Pre-training and Downstream Task Formats
|
| 122 |
+
|
| 123 |
+
Despite their encouraging results, existing works on few-shot learning in NLP are based on either customized and often complex meta-learning algorithms [3, 4, 5, 60], heavy manual/automated engineering of textual descriptions or prompts [24, 55, 59, 78], ordering of training examples [44, 56], extensive hyperparameter tuning on held-out sets [24, 44, 55], or custom learning algorithms [55, 65]. We present UniFew, a strong few-shot learning model across all transfer settings and datasets tested, that eschews the need for incorporating the above-mentioned complexities and challenges.
|
| 124 |
+
|
| 125 |
+
UniFew is a prompt-based model [56], a class of models that tailor the input/output format of their data to match the format used during pretraining. While this technique allows them to perform a task without the need for additional classification layers, prompt-based models are typically sensitive to the choice of the prompts, which can require extensive search, trial-and-error, and even additional models to get right [24, 78]. To avoid this issue while still leveraging the strong capabilities of pretrained models, UniFew (1) converts examples into multiple-choice question-answer (QA) format, and (2) uses UnifiedQA [34], a T5 [51] model further pretrained on a large collection of QA pairs.18,19
|
| 126 |
+
|
| 127 |
+
Compared to other prompt-based models, UniFew has two main strengths. First, the prompt design problem is much simpler because UnifiedQA questions had well-defined formats. For example, we only need four general prompt templates which cover all 20 datasets in the FLEX benchmark, while prior works have needed specialized prompts for each dataset. Second, UnifiedQA’s multiple-choice format ensures the model outputs a valid class label, without the need for learned or manually-defined mappings or verbalizers required for other prompt-based methods [24, 55].20 In concurrent work, Zhong et al. [80] also show the benefit of performing meta-tuning on a variety of datasets; while their task setup as Q/A is similar to UniFew, they focus exclusively on binary zero-shot classification tasks and, unlike UniFew, do not handle multi-class or few-shot problems.
|
| 128 |
+
|
| 129 |
+
We experiment with UniFew both without and with meta-training on the FLEX benchmark’s metatraining data, following the FLEX protocol (§4.2). We call the meta-trained variant $\mathrm { U n i F e w } _ { \mathrm { m e t a } }$ . We use simple prompts in the format of question followed by choices followed by the answer (according to the UnifiedQA original format). The exact prompts used are provided in Appendix C.
|
| 130 |
+
|
| 131 |
+
Training details For meta-training and meta-validation of UniFew, we sampled ${ \mathcal { E } } _ { \operatorname* { t r a i n } }$ and ${ \mathcal E } _ { \mathrm { v a l } }$ with 5-class, 5-training-shot sampling with the same number of shots per class.21 We trained the model for total number of 30K steps, using a linear learning rate scheduler with peak rate of $3 e { - 5 }$ , 200 warmup steps, and batch size of 4; we selected the best checkpoint based on ${ \mathcal E } _ { \mathrm { v a l } }$ performance. At meta-test time, for each episode, we trained the model on the episode’s training examples (if they exist) and predicted the outputs on test examples. For training at meta-test time, we used constant learning rate of $3 e { \mathrm { - } } 5$ and batch size of 4, and trained the model for 400 steps.22 We used NVidia RTX8000 GPUs, which take about 7 GPU-hours for meta-training and 48 GPU-hours for meta-testing. For meta-testing we split the episodes among 8 GPUs to speed up evaluations.
|
| 132 |
+
|
| 133 |
+
# 7 Experiments
|
| 134 |
+
|
| 135 |
+
Comparing UniFew with prior work To demonstrate the efficacy of UniFew, we evaluate it against state-of-the-art approaches for few-shot and meta-learning in NLP: LM-BFF [24], a language
|
| 136 |
+
|
| 137 |
+
(a) H-SMLMT (Bansal et al. [4])
|
| 138 |
+
|
| 139 |
+
Table 2: Comparing UniFew with prior methods on their respective test suites, reporting mean accuracy (and standard deviation). For each test suite, for each result set on same number of shots, we indicate with $\vartriangleright$ when results are directly comparable: (i) either both use meta-training (H-SMLMT & DS with $\mathrm { U n i F e w } _ { \mathrm { m e t a } } )$ or neither do (LM-BFF with UniFew). We bold the better of the two.
|
| 140 |
+
(b) LM-BFF (Gao et al. [24])
|
| 141 |
+
|
| 142 |
+
<table><tr><td>Model</td><td></td><td>Shots</td><td>CR</td><td>MR</td><td>SNLI</td><td>Subj</td><td>TREC</td></tr><tr><td>□</td><td>LM-BFFman 23</td><td>024</td><td>79.5</td><td>80.8</td><td>49.5</td><td>51.4</td><td>32.0</td></tr><tr><td>□</td><td>UniFew</td><td>0</td><td>78.8</td><td>74.8</td><td>54.4</td><td>50.3</td><td>15.0</td></tr><tr><td></td><td>UniFeWmeta.</td><td>0.</td><td>92.1</td><td>90.5.</td><td>83.8</td><td>56.8</td><td>39.1</td></tr><tr><td>□</td><td>LM-BFF</td><td>16/1625</td><td>91.0 ±0.9</td><td>87.7 ±1.4</td><td>77.5 ±3.5</td><td>91.4 ±1.8</td><td>89.4 ±1.7</td></tr><tr><td>□</td><td>UniFew</td><td>16/16</td><td>92.2 ±0.8</td><td>87.2 ±0.1</td><td>75.6 ±1.5</td><td>84.6 ±5.4</td><td>86.7 ±0.3</td></tr><tr><td></td><td>UniFeWmeta</td><td>16/16</td><td>92.7 ±0.4</td><td>90.2 ±0.8</td><td>84.9 ±0.5</td><td>87.6 ±2.0</td><td>86.1 ±0.4</td></tr><tr><td colspan="8">(c) Distributional Signature (Bao et al. [5])</td></tr><tr><td>Model □ DS</td><td></td><td>Shots 1</td><td>Amznt 62.7</td><td>FRelt 67.1</td><td>HuffP+ 43.1</td><td>20N+ 52.2</td><td>Reut+ 81.8</td></tr><tr><td></td><td>UniFew</td><td>1</td><td>±0.7 82.1</td><td>±0.9 75.7</td><td>±0.2 65.9</td><td>±0.7 58.4</td><td>±1.6 92.0</td></tr><tr><td>□</td><td>UniFeWmeta</td><td>1</td><td>±8.5 84.3</td><td>±13.2 90.6</td><td>±13.4 78.6</td><td>±11.6 70.3</td><td>±8.3 96.9</td></tr><tr><td></td><td></td><td></td><td>±8.9</td><td>±6.2</td><td>±6.9</td><td>±9.1</td><td>±2.5</td></tr><tr><td colspan="8"></td></tr><tr><td>□</td><td>DS</td><td>5</td><td>81.2 ±0.3</td><td>83.5 ±0.3</td><td>63.5 ±0.1</td><td>68.3 ±0.2</td><td>96.0 ±0.3</td></tr><tr><td></td><td>UniFew</td><td>5</td><td>88.5 ±7.4</td><td>88.8 ±6.5</td><td>77.1 ±6.0</td><td>72.2 ±8.4</td><td>97.0 ±2.8</td></tr><tr><td>□</td><td>UniFeWmeta</td><td>5</td><td>90.5 ±5.9</td><td>93.1 ±4.4</td><td>81.7 ±5.2</td><td>76.2 ±7.1</td><td>98.0 ±2.0</td></tr></table>
|
| 143 |
+
|
| 144 |
+
<table><tr><td>Model</td><td>Shots</td><td>CNLL</td><td>SciT</td></tr><tr><td>H-SMLMT</td><td>4</td><td>57.6 ±7.1</td><td>76.8 ±3.4</td></tr><tr><td>UniFew</td><td>4</td><td>76.6 ±2.6</td><td>65.1 ±9.9</td></tr><tr><td>UniFeWmeta</td><td>4</td><td>79.7 ±2.8</td><td>85.4 ±2.5</td></tr><tr><td> H-SMLMT</td><td>8</td><td>70.2 ±3.0</td><td>79.1 ±1.1</td></tr><tr><td>UniFew</td><td>8</td><td>80.6 ±3.7</td><td>70.9 ±5.2</td></tr><tr><td>V UniFeWmeta</td><td>8</td><td>81.2 ±3.8</td><td>86.8 ±1.4</td></tr><tr><td>> H-SMLMT</td><td>16</td><td>80.6 ±2.8</td><td>80.4 ±1.4</td></tr><tr><td>UniFew</td><td>16</td><td>85.8 ±1.9</td><td>76.7 ±4.6</td></tr><tr><td>V UniFeWmeta</td><td>16</td><td>87.9 ±1.9</td><td>85.4 ±2.5</td></tr></table>
|
| 145 |
+
|
| 146 |
+
model prompt-based fine-tuning method, as well as Distributional Signatures (DS) [5] and H-SMLMT [4], two state-of-the-art meta-learning techniques. Refer to Appendix D for details on these methods.
|
| 147 |
+
|
| 148 |
+
We compare to these methods using the datasets in the FLEX benchmark to establish the quality of our model. Since we constructed our benchmark from disjoint subsets of datasets evaluated in each of these prior works (§4.1), we compare each method with its corresponding subset of datasets. Each of these prior works evaluates their methods using different experimental setups (classes, number of episodes, shots) than our benchmark and was not designed to handle FLEX’s challenging episode characteristics like class imbalance. To enable fair comparison, we test UniFew on the exact data splits released by the authors when available (H-SMLMT and LM-BFF). For DS, we sample (balanced) episodes using our framework after matching their test settings (number of shots and classes, class splits, etc.) and reproduce their reported results to within $1 \%$ absolute difference using their model code; we use these episodes for our experiments. The results in Table 2 show that UniFewmeta outperforms both H-SMLMT and DS meta-learning approaches by relatively large margins, while achieving competitive results compared with LM-BFF. Note that UniFew’s strong results are without meta-learning approaches, extensive prompt-engineering, or per-episode hyperparameter search.
|
| 149 |
+
|
| 150 |
+
Evaluating UniFew on the FLEX benchmark Having established UniFew as a strong model comparable to recent, state-of-the art techniques, we present its results on the final version of our benchmark (with class imbalance, etc.). From Table 3, we observe three findings. First, pretraining is an effective technique for infusing an NLP model with the ability to perform few-shot generalization even without any meta-training, as UniFew is able to score $\Delta _ { \mathrm { f e w } } = + 1 2 . 8$ higher when provided few rather than zero examples. Second, by comparing UniFew $\mathrm { \ m e t a }$ and UniFew, we see that metatraining has a substantial impact on zero-shot performance $\Delta _ { \mathrm { m e t a } } = + 1 4 . 5 )$ , but its benefit, while still substantial, is less in the few-shot setting $\Delta _ { \mathrm { m e t a } } = + 8 . 6 )$ . Third, while meta-training adds roughly the same benefit to zero and few-shot performance for both domain and task transfer settings, meta-training disproportionately benefits zero-shot class transfer $\langle \Delta _ { \mathrm { m e t a } } = + 1 6 . 2 \rangle$ over few-shot class transfer $\Delta _ { \mathrm { { m e t a } } } = + 4 . 3 )$ . Such observations are made possible through unified evaluation and comparison across different transfer types. The full FLEX benchmark results broken down by individual datasets are in Appendix E.
|
| 151 |
+
|
| 152 |
+
Table 3: Mean accuracy of UniFew and UniFew $\mathrm { \ m e t a }$ on FLEX benchmark in zero and few-shot setups.
|
| 153 |
+
|
| 154 |
+
<table><tr><td></td><td colspan="3">Zero-shot</td><td></td><td colspan="3">Few-shot</td><td></td><td></td></tr><tr><td></td><td>Class</td><td>Domain</td><td>Task</td><td>Overall</td><td>Class</td><td>Domain</td><td>Task</td><td>Overall</td><td>△few (Overall)</td></tr><tr><td>UniFew</td><td>59.5</td><td>67.9</td><td>36.6</td><td>56.5</td><td>75.8</td><td>72.4</td><td>54.3</td><td>69.3</td><td>+12.8</td></tr><tr><td>UniFeWmeta</td><td>75.6</td><td>87.6</td><td>41.1</td><td>71.0</td><td>80.2</td><td>86.8</td><td>62.4</td><td>77.9</td><td>+6.9</td></tr><tr><td>△meta</td><td>+16.2</td><td>+19.7</td><td>+4.5</td><td>+14.5</td><td>+4.3</td><td>+14.4</td><td>+8.1</td><td>+8.6</td><td></td></tr></table>
|
| 155 |
+
|
| 156 |
+
# 8 Limitations and Future Work
|
| 157 |
+
|
| 158 |
+
While the initial FLEX benchmark is focused on classification tasks, we aim to use our benchmark creation toolkit (§4.4) to incorporate additional task formats like span selection or text generation. Furthermore, the benchmark currently only supports English language tasks; to study language transfer, we aim to incorporate new datasets using our toolkit. Adding diverse datasets has its own challenges; while we’ve selected datasets for our benchmark based on prior work adoption and have attempted to verify their licensing for research use, we were unable to find license details for some datasets (Appendix A). We believe it is crucial to continually evolve the suite of datasets to remain challenging for the best models [36] and to tackle real-world challenges [1].
|
| 159 |
+
|
| 160 |
+
In addition, Sample Size Design (§5) simulations currently rely on our own available training estimates. We plan to gather a more representative sample from community leaderboard submissions.
|
| 161 |
+
|
| 162 |
+
Our public leaderboard could benefit from extended support for detailed comparisons between submissions based on properties of techniques. For example, approaches may vary in terms of model characteristics (e.g., number of parameters), data and supervision used during pretraining, amount of compute, etc. We encourage reporting all these factors to enable the community to analyze and make progress on important sub-spaces in the overall few-shot technique design space.
|
| 163 |
+
|
| 164 |
+
Finally, we believe the benefits of improving few-shot NLP techniques outweigh potential risks, but we acknowledge potential harms associated with language models [7, 14, 57, 63]. Few-shot models learn a task from a few examples but rely heavily on knowledge encoded in the pretrained model. Thus, few-shot models are more likely to inherit the biases of the pretrained models, compared to more fully supervised models; as the community focuses more on few-shot learning, it is more important than ever for future pretrained models to be careful about biases in the underlying pretraining corpora.
|
| 165 |
+
|
| 166 |
+
# 9 Conclusion
|
| 167 |
+
|
| 168 |
+
In this work, we unify and bring rigor to few-shot NLP evaluation. We formulate the FLEX Principles, a set of requirements and best practices that enables unified, rigorous, valid, and cost-sensitive measurement. We advance the principles with new Sample Size Design methodology for optimizing statistical accuracy and precision while keeping costs low. The FLEX benchmark is our instantiation of the FLEX Principles; it employs Sample Size Design and includes four few-shot transfer settings, zero-shot evaluation, and a public leaderboard with diverse NLP tasks. We present UniFew, a promptbased model that aligns pretraining and downstream task formats, achieving results competitive with recent few-shot methods despite using trivial prompt engineering. Finally, we release an extensible, open-source toolkit (used to train UniFew and generate the FLEX benchmark) to support future benchmark creation and few-shot NLP model training.
|
| 169 |
+
|
| 170 |
+
# Acknowledgments and Disclosure of Funding
|
| 171 |
+
|
| 172 |
+
We would like to thank Chandra Bhagavatula, Matt Gardner, Matt Peters, Doug Downey, Dan Weld, and the four anonymous reviewers for helpful comments, suggestions and feedback. We would also like to acknowledge the large community effort involved in the creation of the datasets and open-source tools we utilize.
|
| 173 |
+
|
| 174 |
+
# References
|
| 175 |
+
|
| 176 |
+
[1] Neel Alex, Eli Lifland, Lewis Tunstall, Abhishek Thakur, Pegah Maham, C. Jess Riedel, Emmie Hine, Carolyn Ashurst, Paul Sedille, Alexis Carlier, Michael Noetel, and Andreas Stuhlmüller. 2021. RAFT: A real-world few-shot text classification benchmark. CoRR, abs/2109.14076.
|
| 177 |
+
[2] Sébastien M R Arnold, Praateek Mahajan, Debajyoti Datta, Ian Bunner, and Konstantinos Saitas Zarkias. 2020. learn2learn: A library for Meta-Learning research.
|
| 178 |
+
[3] Trapit Bansal, Rishikesh Jha, and Andrew McCallum. 2020. Learning to Few-Shot Learn Across Diverse Natural Language Classification Tasks. In COLING.
|
| 179 |
+
[4] Trapit Bansal, Rishikesh Jha, Tsendsuren Munkhdalai, and Andrew McCallum. 2020. SelfSupervised Meta-Learning for Few-Shot Natural Language Classification Tasks. In EMNLP.
|
| 180 |
+
[5] Yujia Bao, Menghua Wu, Shiyu Chang, and Regina Barzilay. 2020. Few-shot Text Classification with Distributional Signatures. In ICLR.
|
| 181 |
+
[6] Roy Bar-Haim, Ido Dagan, Bill Dolan, L. Ferro, Danilo Giampiccolo, and B. Magnini. 2006. The second PASCAL recognising textual entailment challenge.
|
| 182 |
+
[7] Emily M. Bender, Timnit Gebru, Angelina McMillan-Major, and Shmargaret Shmitchell. 2021. On the dangers of stochastic parrots: Can language models be too big? FAccT.
|
| 183 |
+
[8] Luisa Bentivogli, Peter Clark, Ido Dagan, and Danilo Giampiccolo. 2009. The fifth PASCAL recognizing textual entailment challenge. In TAC.
|
| 184 |
+
[9] Samuel R. Bowman, Gabor Angeli, Christopher Potts, and Christopher D. Manning. 2015. A large annotated corpus for learning natural language inference. In EMNLP.
|
| 185 |
+
[10] Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. In NeurIPS.
|
| 186 |
+
[11] Mateusz Buda, Atsuto Maki, and Maciej A. Mazurowski. 2018. A systematic study of the class imbalance problem in convolutional neural networks. Neural Networks, 106:249–259.
|
| 187 |
+
[12] Tianshi Cao, Marc T. Law, and Sanja Fidler. 2020. A Theoretical Analysis of the Number of Shots in Few-Shot Learning. In ICLR.
|
| 188 |
+
[13] Dallas Card, Peter Henderson, Urvashi Khandelwal, Robin Jia, Kyle Mahowald, and Dan Jurafsky. 2020. With little power comes great responsibility. In EMNLP.
|
| 189 |
+
[14] Nicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom B. Brown, Dawn Song, Úlfar Erlingsson, Alina Oprea, and Colin Raffel. 2020. Extracting training data from large language models. CoRR, abs/2012.07805.
|
| 190 |
+
[15] Wei-Yu Chen, Yen-Cheng Liu, Zsolt Kira, Yu-Chiang Frank Wang, and Jia-Bin Huang. 2019. A closer look at few-shot classification. In ICLR.
|
| 191 |
+
[16] Christopher Clark, Kenton Lee, Ming-Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina Toutanova. 2019. BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questions. In NAACL.
|
| 192 |
+
[17] Ido Dagan, Oren Glickman, and Bernardo Magnini. 2005. The PASCAL recognising textual entailment challenge. In International Conference on Machine Learning Challenges.
|
| 193 |
+
[18] Tristan Deleu, Tobias Würfl, Mandana Samiei, Joseph Paul Cohen, and Yoshua Bengio. 2019. Torchmeta: A Meta-Learning library for PyTorch. Available at: https://github.com/tristandeleu/pytorch-meta.
|
| 194 |
+
[19] Guneet S. Dhillon, Pratik Chaudhari, Avinash Ravichandran, and Stefano Soatto. 2020. A Baseline for Few-Shot Image Classification. In ICLR.
|
| 195 |
+
[20] William B. Dolan and Chris Brockett. 2005. Automatically Constructing a Corpus of Sentential Paraphrases. In Proceedings of the Third International Workshop on Paraphrasing (IWP2005).
|
| 196 |
+
[21] Zi-Yi Dou, Keyi Yu, and Antonios Anastasopoulos. 2019. Investigating Meta-Learning Algorithms for Low-Resource Natural Language Understanding Tasks. In EMNLP.
|
| 197 |
+
[22] Rotem Dror, Gili Baumer, Segev Shlomov, and Roi Reichart. 2018. The Hitchhiker’s Guide to Testing Statistical Significance in Natural Language Processing. In ACL.
|
| 198 |
+
[23] Chelsea Finn, Pieter Abbeel, and Sergey Levine. 2017. Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks. In ICML.
|
| 199 |
+
[24] Tianyu Gao, Adam Fisch, and Danqi Chen. 2021. Making pre-trained language models better few-shot learners. In ACL.
|
| 200 |
+
[25] Tianyu Gao, Xu Han, Zhiyuan Liu, and Maosong Sun. 2019. Hybrid Attention-Based Prototypical Networks for Noisy Few-Shot Relation Classification. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 6407–6414.
|
| 201 |
+
[26] Danilo Giampiccolo, Bernardo Magnini, Ido Dagan, and Bill Dolan. 2007. The Third PASCAL Recognizing Textual Entailment Challenge. In Proceedings of the ACL-PASCAL Workshop on Textual Entailment and Paraphrasing, pages 1–9, Prague. Association for Computational Linguistics.
|
| 202 |
+
[27] Jiatao Gu, Yong Wang, Yun Chen, Victor O. K. Li, and Kyunghyun Cho. 2018. Meta-Learning for Low-Resource Neural Machine Translation. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 3622–3631, Brussels, Belgium. Association for Computational Linguistics.
|
| 203 |
+
[28] Xu Han, Hao Zhu, Pengfei Yu, Ziyun Wang, Yuan Yao, Zhiyuan Liu, and Maosong Sun. 2018. FewRel: A Large-Scale Supervised Few-Shot Relation Classification Dataset with State-of-the-Art Evaluation. In EMNLP.
|
| 204 |
+
[29] Peter Hase and Mohit Bansal. 2021. When can models learn from explanations? A formal framework for understanding the roles of explanation data. CoRR, abs/2102.02201.
|
| 205 |
+
[30] Ruining He and Julian McAuley. 2016. Ups and Downs: Modeling the Visual Evolution of Fashion Trends with One-Class Collaborative Filtering. In WWW, pages 507–517.
|
| 206 |
+
[31] Yutai Hou, Jiafeng Mao, Yongkui Lai, Cheng Chen, Wanxiang Che, Zhigang Chen, and Ting Liu. 2020. FewJoint: A few-shot learning benchmark for joint language understanding. CoRR, abs/2009.08138.
|
| 207 |
+
[32] Minqing Hu and Bing Liu. 2004. Mining and summarizing customer reviews. In KDD.
|
| 208 |
+
[33] Robert L. Logan IV, Ivana Balazevic, Eric Wallace, Fabio Petroni, Sameer Singh, and Sebastian Riedel. 2021. Cutting down on prompts and parameters: Simple few-shot learning with language models. CoRR, abs/2106.13353.
|
| 209 |
+
[34] Daniel Khashabi, Sewon Min, Tushar Khot, Ashish Sabharwal, Oyvind Tafjord, P. Clark, and Hannaneh Hajishirzi. 2020. UnifiedQA: Crossing Format Boundaries With a Single QA System. In EMNLP.
|
| 210 |
+
[35] Tushar Khot, Ashish Sabharwal, and Peter Clark. 2018. SciTaiL: A Textual Entailment Dataset from Science Question Answering. In AAAI.
|
| 211 |
+
[36] Pang Wei Koh, Shiori Sagawa, Henrik Marklund, Sang Michael Xie, Marvin Zhang, Akshay Balsubramani, Wei hua Hu, Michihiro Yasunaga, Richard L. Phillips, Sara Beery, Jure Leskovec, Anshul Kundaje, Emma Pierson, Sergey Levine, Chelsea Finn, and Percy Liang. 2021. Wilds: A benchmark of in-the-wild distribution shifts. In ICML.
|
| 212 |
+
[37] Jason Krone, Yi Zhang, and Mona Diab. 2020. Learning to classify intents and slot labels given a handful of examples. In Workshop on Natural Language Processing for Conversational AI.
|
| 213 |
+
[38] Ken Lang. 1995. NewsWeeder: Learning to Filter Netnews. In ICML.
|
| 214 |
+
[39] Kwonjoon Lee, Subhransu Maji, Avinash Ravichandran, and Stefano Soatto. 2019. Metalearning with differentiable convex optimization. In CVPR.
|
| 215 |
+
[40] Hector Levesque, Ernest Davis, and Leora Morgenstern. 2011. The Winograd schema challenge. AAAI Spring Symposium: Logical Formalizations of Commonsense Reasoning, 46:47.
|
| 216 |
+
[41] David D. Lewis. 1997. Reuters-21578 text categorization test collection, distribution 1.0.
|
| 217 |
+
[42] Quentin Lhoest, Patrick von Platen, Thomas Wolf, Albert Villanova del Moral, Yacine Jernite, Abhishek Thakur, Suraj Patil, Lewis Tunstall, Mariama Drame, Julien Chaumond, Julien Plu, Joe Davison, Simon Brandeis, Victor Sanh, Teven Le Scao, Kevin Canwen Xu, Nicolas Patry, Angelina McMillan-Major, Philipp Schmid, Sylvain Gugger, Clément Delangue, Théo Matussière, Lysandre Debut, Stas Bekman, and François Lagunas. 2021. huggingface/datasets: 1.9.0.
|
| 218 |
+
[43] Xiaodong Liu, Pengcheng He, Weizhu Chen, and Jianfeng Gao. 2019. Multi-Task Deep Neural Networks for Natural Language Understanding. In ACL.
|
| 219 |
+
[44] Yao Lu, Max Bartolo, Alastair Moore, Sebastian Riedel, and Pontus Stenetorp. 2021. Fantastically ordered prompts and where to find them: Overcoming few-shot prompt order sensitivity. CoRR, abs/2104.08786.
|
| 220 |
+
[45] Qiaoyang Luo, Lingqiao Liu, Yuhao Lin, and Wei Zhang. 2021. Don’t miss the labels: Labelsemantic augmented meta-learner for few-shot text classification. In Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021.
|
| 221 |
+
[46] Rishabh Misra. 2018. News category dataset.
|
| 222 |
+
[47] Mateusz Ochal, Massimiliano Patacchiola, Amos Storkey, Jose Vazquez, and Sen Wang. 2021. Few-Shot Learning with Class Imbalance.
|
| 223 |
+
[48] Bo Pang and Lillian Lee. 2004. A Sentimental Education: Sentiment Analysis Using Subjectivity Summarization Based on Minimum Cuts. In ACL.
|
| 224 |
+
[49] Bo Pang and Lillian Lee. 2005. Seeing Stars: Exploiting Class Relationships for Sentiment Categorization with Respect to Rating Scales. In ACL.
|
| 225 |
+
[50] Ethan Perez, Douwe Kiela, and Kyunghyun Cho. 2021. True few-shot learning with language models. CoRR, abs/2105.11447.
|
| 226 |
+
[51] Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, W. Li, and Peter J. Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21:140:1–140:67.
|
| 227 |
+
[52] Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. 2016. SQuAD: $^ { 1 0 0 , 0 0 0 + }$ Questions for Machine Comprehension of Text. In EMNLP.
|
| 228 |
+
[53] D. B. Rubin and N. Schenker. 1986. Efficiently simulating the coverage properties of interval estimates. Journal of the Royal Statistical Society: Series $C$ (Applied Statistics), 35(2):159–167.
|
| 229 |
+
[54] Andrei A. Rusu, Dushyant Rao, Jakub Sygnowski, Oriol Vinyals, Razvan Pascanu, Simon Osindero, and Raia Hadsell. 2019. Meta-learning with latent embedding optimization. In ICLR.
|
| 230 |
+
[55] Timo Schick and Hinrich Schütze. 2021. Exploiting cloze-questions for few-shot text classification and natural language inference. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, EACL.
|
| 231 |
+
[56] Timo Schick and Hinrich Schütze. 2021. It’s not just size that matters: Small language models are also few-shot learners. In NAACL.
|
| 232 |
+
[57] Roy Schwartz, Jesse Dodge, Noah A. Smith, and Oren Etzioni. 2020. Green AI. Communications of the ACM, 63:54 – 63.
|
| 233 |
+
[58] Amr Sharaf, Hany Hassan, and Hal Daumé III. 2020. Meta-Learning for Few-Shot NMT Adaptation. In Proceedings of the Fourth Workshop on Neural Generation and Translation, pages 43–53, Online. Association for Computational Linguistics.
|
| 234 |
+
[59] Taylor Shin, Yasaman Razeghi, Robert L. Logan IV, Eric Wallace, and Sameer Singh. 2020. AutoPrompt: Eliciting knowledge from language models with automatically generated prompts. In EMNLP.
|
| 235 |
+
[60] Xujie Si, Yuan Yang, Hanjun Dai, Mayur Naik, and Le Song. 2019. Learning a meta-solver for syntax-guided program synthesis. In ICLR.
|
| 236 |
+
[61] Jake Snell, Kevin Swersky, and Richard Zemel. 2017. Prototypical networks for few-shot learning. In NeurIPS.
|
| 237 |
+
[62] Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew $\mathrm { N g }$ , and Christopher Potts. 2013. Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank. In EMNLP.
|
| 238 |
+
[63] Irene Solaiman, Miles Brundage, Jack Clark, Amanda Askell, Ariel Herbert-Voss, Jeff Wu, Alec Radford, and Jasmine Wang. 2019. Release strategies and the social impacts of language models. CoRR, abs/1908.09203.
|
| 239 |
+
[64] Shengli Sun, Qingfeng Sun, Kevin Zhou, and Tengchao Lv. 2019. Hierarchical Attention Prototypical Networks for Few-Shot Text Classification. In EMNLP.
|
| 240 |
+
[65] Derek Tam, Rakesh R. Menon, Mohit Bansal, Shashank Srivastava, and Colin Raffel. 2021. Improving and simplifying pattern exploiting training. CoRR, abs/2103.11955.
|
| 241 |
+
[66] Erik F. Tjong Kim Sang and Fien De Meulder. 2003. Introduction to the CoNLL-2003 Shared Task: Language-Independent Named Entity Recognition. In Proceedings of the Seventh Conference on Natural Language Learning at HLT-NAACL 2003, pages 142–147.
|
| 242 |
+
[67] Eleni Triantafillou, Tyler Zhu, Vincent Dumoulin, Pascal Lamblin, Utku Evci, Kelvin Xu, Ross Goroshin, Carles Gelada, Kevin Swersky, Pierre-Antoine Manzagol, and Hugo Larochelle. 2020. Meta-Dataset: A Dataset of Datasets for Learning to Learn from Few Examples. In ICLR.
|
| 243 |
+
[68] Oriol Vinyals, Charles Blundell, Tim Lillicrap, Koray Kavukcuoglu, and Daan Wierstra. 2016. Matching networks for one shot learning. In Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016.
|
| 244 |
+
[69] Ellen M. Voorhees and Dawn M. Tice. 2000. Building a question answering test collection. In SIGIR.
|
| 245 |
+
[70] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2018. GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding. In ICLR.
|
| 246 |
+
[71] Yaqing Wang, Quanming Yao, James T. Kwok, and Lionel M. Ni. 2020. Generalizing from a Few Examples: A Survey on Few-shot Learning. ACM Computing Surveys, 53(3):63:1–63:34.
|
| 247 |
+
[72] Alex Warstadt, Amanpreet Singh, and Samuel R. Bowman. 2019. Neural Network Acceptability Judgments. TACL, 7:625–641.
|
| 248 |
+
[73] Orion Weller, Nicholas Lourie, Matt Gardner, and Matthew Peters. 2020. Learning from Task Descriptions. In EMNLP.
|
| 249 |
+
[74] Adina Williams, Nikita Nangia, and Samuel Bowman. 2018. A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference. In NAACL.
|
| 250 |
+
[75] Qinyuan Ye, Bill Yuchen Lin, and Xiang Ren. 2021. CrossFit: A few-shot learning challenge for cross-task generalization in NLP. CoRR, abs/2104.08835.
|
| 251 |
+
[76] Wenpeng Yin. 2020. Meta-learning for few-shot natural language processing: A survey. CoRR, abs/2007.09604.
|
| 252 |
+
[77] Mo Yu, Xiaoxiao Guo, Jinfeng Yi, Shiyu Chang, Saloni Potdar, Yu Cheng, Gerald Tesauro, Haoyu Wang, and Bowen Zhou. 2018. Diverse Few-Shot Text Classification with Multiple Metrics. In NAACL.
|
| 253 |
+
[78] Tony Z. Zhao, Eric Wallace, Shi Feng, Dan Klein, and Sameer Singh. 2021. Calibrate before use: Improving few-shot performance of language models. CoRR, abs/2102.09690.
|
| 254 |
+
[79] Yanan Zheng, Jing Zhou, Yujie Qian, Ming Ding, Jian Li, Ruslan Salakhutdinov, Jie Tang, Sebastian Ruder, and Zhilin Yang. 2021. FewNLU: Benchmarking state-of-the-art methods for few-shot natural language understanding. CoRR, abs/2109.12742.
|
| 255 |
+
[80] Ruiqi Zhong, Kristy Lee, Zheng Zhang, and Dan Klein. 2021. Adapting language models for zero-shot learning by meta-tuning on dataset and prompt collections. CoRR, abs/2104.04670.
|
parse/train/_WnGcwXLYOE/_WnGcwXLYOE_content_list.json
ADDED
|
@@ -0,0 +1,1066 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "FLEX: Unifying Evaluation for Few-Shot NLP ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
214,
|
| 8 |
+
122,
|
| 9 |
+
781,
|
| 10 |
+
148
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Jonathan Bragg∗ Arman Cohan∗ Kyle Lo Iz Beltagy ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
269,
|
| 19 |
+
200,
|
| 20 |
+
720,
|
| 21 |
+
215
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Allen Institute for AI, Seattle, WA {jbragg,armanc,kylel,beltagy}@allenai.org ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
341,
|
| 30 |
+
219,
|
| 31 |
+
658,
|
| 32 |
+
250
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Abstract ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
462,
|
| 42 |
+
285,
|
| 43 |
+
535,
|
| 44 |
+
301
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Few-shot NLP research is highly active, yet conducted in disjoint research threads with evaluation suites that lack challenging-yet-realistic testing setups and fail to employ careful experimental design. Consequently, the community does not know which techniques perform best or even if they outperform simple baselines. In response, we formulate the FLEX Principles, a set of requirements and best practices for unified, rigorous, valid, and cost-sensitive few-shot NLP evaluation. These principles include Sample Size Design, a novel approach to benchmark design that optimizes statistical accuracy and precision while keeping evaluation costs manageable. Following the principles, we release the FLEX benchmark,2 which includes four few-shot transfer settings, zero-shot evaluation, and a public leaderboard that covers diverse NLP tasks. In addition, we present UniFew,3 a prompt-based model for few-shot learning that unifies pretraining and finetuning prompt formats, eschewing complex machinery of recent prompt-based approaches in adapting downstream task formats to language model pretraining objectives. We demonstrate that despite simplicity, UniFew achieves results competitive with both popular meta-learning and prompt-based approaches. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
316,
|
| 54 |
+
766,
|
| 55 |
+
537
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 Introduction ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
563,
|
| 66 |
+
310,
|
| 67 |
+
580
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Few-shot learning, the challenge of learning from a small number of examples, is critical for developing efficient, robust NLP techniques [71, 76]. In recent years, separate threads of few-shot NLP research have pursued goals like generalization to new classes [e.g., 5, 25], adaptation to new domains and tasks [e.g., 3, 4, 21], and direct application of pretrained language models (LMs) [e.g., 10, 24, 55, 56]. Unfortunately, despite the shared goal of advancing few-shot NLP techniques, the community does not know which techniques work best or even if they perform better than simple baselines. Evaluation suites across these research threads are disjoint, lack challenging-yet-realistic testing setups (e.g., class imbalance, variable training set sizes, etc.), and do not employ careful experimental design to ensure accurate and precise evaluation estimates and minimal computational burden. Prior work in few-shot learning outside of NLP serves as a stark warning of the consequences of improper measurement: Dhillon et al. [19] showed that techniques from several years of prior work did not make clear progress due to large overlapping accuracy distributions and, moreover, do not outperform a simple, carefully-tuned baseline. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
594,
|
| 77 |
+
825,
|
| 78 |
+
775
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Need for systematic benchmark design As such, a high-quality benchmark is urgently needed to enable rigorous comparison of techniques across disjoint, highly-active threads of few-shot NLP research. But what should such an evaluation suite look like? Some best practices for evaluation of few-shot methods have been introduced in the computer vision (CV) literature [19, 67] and should be applied to NLP. However, unifying few-shot NLP work introduces new challenges. For example, the benchmark needs to test all types of transfer studied in separate research threads to measure progress on new techniques that make gains in each of these important generalization settings (§2). Also, given the importance of zero-shot learning and learning from task descriptions [29, 73], the benchmark needs to include zero-shot episodes and textual labels to enable measuring progress for models that do not use conventional supervised training, including methods that leverage the latent knowledge in pretrained LMs [10, 24, 78]. Further, the benchmark must accommodate new, computationally-expensive approaches, without overly reducing the number of evaluation episodes at the expense of statistical accuracy [3, 24, 75]. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
781,
|
| 88 |
+
825,
|
| 89 |
+
837
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "table",
|
| 95 |
+
"img_path": "images/ddbb10b1d9c8d0ff0e495c9401cbc567c3f40287ce86aef6d1b43ef1552ab798.jpg",
|
| 96 |
+
"table_caption": [
|
| 97 |
+
"Table 1: Comparison of the FLEX benchmark with closest prior work. Our benchmark consists of episodes with variable number of shots in the range [1-5] and with class imbalance. “No extra test data” refers to excluding validation data from testing tasks, to avoid unfairly advantaging models that use such data [50]. Our benchmark’s number of test episodes is selected to balance statistical accuracy and precision, which suffers in few-episode setups, and compute requirements, which is too costly in many-episode setups (§5). "
|
| 98 |
+
],
|
| 99 |
+
"table_footnote": [],
|
| 100 |
+
"table_body": "<table><tr><td></td><td></td><td></td><td></td><td></td><td></td><td>CrosSFit[75]LM-BFF[24] GPT-3[10]DS[5]SMLMT[4] FewGlue[56]FLEX(ours)</td><td></td></tr><tr><td>Class Transfer</td><td></td><td></td><td></td><td>√</td><td></td><td></td><td></td></tr><tr><td>Domain Transfer</td><td></td><td></td><td></td><td></td><td>√</td><td></td><td></td></tr><tr><td>Task Transfer</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Pretraining Transfer</td><td></td><td>√</td><td><</td><td></td><td></td><td>√</td><td>>>>></td></tr><tr><td>Shots per class</td><td>{16,32}</td><td>16</td><td>variable</td><td>{1,5}</td><td>{4,8,16,32}</td><td>{total 32}4</td><td>[1-5]</td></tr><tr><td>Variable shots</td><td></td><td>1</td><td>√</td><td></td><td></td><td></td><td></td></tr><tr><td>Unbalanced</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Textual labels</td><td></td><td>√</td><td></td><td></td><td></td><td>√</td><td></td></tr><tr><td>Zero-shot</td><td></td><td>√</td><td>√</td><td></td><td></td><td>-</td><td></td></tr><tr><td>No extra test data</td><td></td><td></td><td></td><td>√</td><td>√</td><td>mixed5</td><td>>>>>>0</td></tr><tr><td># test episodes</td><td>5</td><td>5</td><td>1</td><td>1000</td><td>10</td><td>1</td><td></td></tr><tr><td>Reporting</td><td>avg</td><td>avg,SD</td><td>ag</td><td>avg, SD</td><td>avg,SD</td><td>avg, SD</td><td>al16</td></tr><tr><td>#datasets</td><td>160</td><td>16</td><td></td><td>7</td><td>18</td><td>8</td><td>20</td></tr></table>",
|
| 101 |
+
"bbox": [
|
| 102 |
+
173,
|
| 103 |
+
181,
|
| 104 |
+
833,
|
| 105 |
+
354
|
| 106 |
+
],
|
| 107 |
+
"page_idx": 1
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"type": "text",
|
| 111 |
+
"text": "",
|
| 112 |
+
"bbox": [
|
| 113 |
+
173,
|
| 114 |
+
380,
|
| 115 |
+
826,
|
| 116 |
+
506
|
| 117 |
+
],
|
| 118 |
+
"page_idx": 1
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"type": "text",
|
| 122 |
+
"text": "Need for a robust few-shot model Recent prompt-based models [10] have shown strong results in few-shot learning. These models leverage the power of (often large) pretrained language models and adapt the format of downstream tasks to the underlying pretraining objective (e.g., Masked Language Modeling). This way, given the right natural language prompt (and sometimes verbalizers [55] and additional demonstrative examples), the model can quickly fine-tune on the downstream task [24, 43, 44, 55, 56]. However, adapting task formats to the underlying (masked) language modeling objectives is not straightforward; such models have been shown to be sensitive to varying choices of the prompt/demonstrations, training settings, hyperparameters, and learning algorithms [33, 50, 78], often requiring large held out sets and/or complex methods to overcomes such challenges. Can models eschew complex prompt engineering by unifying pretraining and downstream task formats? ",
|
| 123 |
+
"bbox": [
|
| 124 |
+
173,
|
| 125 |
+
511,
|
| 126 |
+
825,
|
| 127 |
+
650
|
| 128 |
+
],
|
| 129 |
+
"page_idx": 1
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"type": "text",
|
| 133 |
+
"text": "In this paper, we tackle these key issues by introducing FLEX—Few-shot Language Evaluation across $\\mathbf { \\delta } ( \\mathbf { X } )$ many transfer types—and contributing the following: ",
|
| 134 |
+
"bbox": [
|
| 135 |
+
173,
|
| 136 |
+
655,
|
| 137 |
+
823,
|
| 138 |
+
684
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "• FLEX Principles (§3), a set of requirements and best practices for few-shot NLP evaluation that enables unified, rigorous, valid, and cost-sensitive measurements. – Sample Size Design: In support of valid, cost-sensitive measurement, we introduce a novel approach to few-shot sample size design (§5) that optimizes for a benchmark’s statistical accuracy and precision while keeping computational costs accessible to a broad range of researchers. \n• FLEX benchmark (§4), an implementation of the FLEX Principles. It tests across four few-shot transfer settings,7 and includes a public leaderboard for few-shot NLP that covers 20 datasets across diverse NLP tasks (e.g., NLI, relation classification, entity typing). Table 1 summarizes key differences between FLEX and other few-shot NLP evaluation suites. ",
|
| 145 |
+
"bbox": [
|
| 146 |
+
210,
|
| 147 |
+
695,
|
| 148 |
+
825,
|
| 149 |
+
844
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "• UniFew (§6), a prompt-based model for few-shot learning in NLP. While most existing methods leverage pre-trained LMs for few-shot learning, LM pre-training tasks do not closely match natural downstream task formats, requiring complex methods (e.g., extensive prompt-engineering, use of verbalizers, episodic hyperparameter tuning, custom learning algorithms) to make these models work in few-shot setting. Instead, the key idea of our model, UniFew, is to close the gap between pre-training and fine-tuning formats by posing tasks as multiple-choice QA and using an underlying model that is pre-trained on a similar natural QA task format. This eliminates the need for complexities of adapting downstream tasks to the LM objectives, while resulting in competitive performance with both recent few-shot and meta-learning methods. ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
217,
|
| 158 |
+
90,
|
| 159 |
+
825,
|
| 160 |
+
229
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 2
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "To aid similar efforts, our release of FLEX includes a toolkit for benchmark creation and few-shot NLP model development, which we used to create the FLEX benchmark and train UniFew. ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
176,
|
| 169 |
+
241,
|
| 170 |
+
823,
|
| 171 |
+
270
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 2
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "2 Background and Related Work ",
|
| 178 |
+
"text_level": 1,
|
| 179 |
+
"bbox": [
|
| 180 |
+
176,
|
| 181 |
+
290,
|
| 182 |
+
465,
|
| 183 |
+
308
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 2
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "We first provide background and notation for few-shot learning and evaluation, then discuss related work in NLP and outside NLP that motivated us to create the FLEX Principles and benchmark. ",
|
| 190 |
+
"bbox": [
|
| 191 |
+
176,
|
| 192 |
+
321,
|
| 193 |
+
826,
|
| 194 |
+
349
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 2
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "Few-shot background and notation Broadly, modern approaches to few-shot learning are evaluated in a three-phase procedure [68]. In the first phase, a general-purpose pretrained model is obtained. In the subsequent “meta-training” phase,8 techniques aim to adapt the model to be well-suited for few-shot generalization. Finally, a “meta-testing” phase evaluates the adapted model in new few-shot prediction settings. ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
174,
|
| 203 |
+
366,
|
| 204 |
+
825,
|
| 205 |
+
435
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 2
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "Let $\\mathcal { D }$ be a dataset of $( x , y )$ examples with full label set $\\mathcal { V } _ { D }$ . From it, we construct three sets of episodes, corresponding to meta-training, meta-validation, and meta-testing and denoted by ${ \\mathcal { E } } _ { \\operatorname* { t r a i n } }$ ${ \\mathcal E } _ { \\mathrm { v a l } }$ , and ${ \\mathcal { E } } _ { \\mathrm { t e s t } }$ , respectively. Each episode in each of these sets is a few-shot problem with its own test set and other attributes. Forsampled subset of labels in ly, e and $E$ is a tuplee disjoint $( \\mathcal { D } _ { \\mathrm { t r a i n } } ^ { E } , \\mathcal { D } _ { \\mathrm { v a l } } ^ { E } , \\dot { \\mathcal { D } } _ { \\mathrm { t e s t } } ^ { E } , \\mathcal { y } _ { \\mathcal { D } } ^ { E } )$ wherewith l $y _ { \\mathcal { D } } ^ { E }$ is a ls in $\\mathcal { V } _ { D }$ $\\mathcal { D } _ { \\mathrm { t r a i n | v a l | t e s t } } ^ { E }$ $\\mathcal { D }$ $y _ { \\mathcal { D } } ^ { E }$ . 9 For each episode, the model’s objective is to correctly predict labels for examples $\\mathcal { D } _ { \\mathrm { t e s t } } ^ { E }$ . To accomplish this, models make use of labeled examples in $\\mathcal { D } _ { \\mathrm { t r a i n } } ^ { E }$ , which is typically configured such that each label $i$ in $y _ { \\mathcal { D } } ^ { E }$ has $K _ { i } ^ { E }$ provided examples; $K _ { i } ^ { E }$ is known as the shot, and the setting when a class has no examples in $\\mathcal { D } _ { \\mathrm { t r a i n } } ^ { E }$ (i.e., $K _ { i } ^ { E } = 0$ ) is called zero-shot. ",
|
| 212 |
+
"bbox": [
|
| 213 |
+
173,
|
| 214 |
+
441,
|
| 215 |
+
825,
|
| 216 |
+
579
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 2
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "Few-shot evaluation in NLP Research in few-shot NLP has proceeded in several parallel threads, each focused on a different type of transfer ability [76]. Each thread has separate evaluation practices, and the vast majority of few-shot NLP research has limited evaluation to a single transfer type (see Table 1). Here, we describe these types of transfer and their evaluation practices. ",
|
| 223 |
+
"bbox": [
|
| 224 |
+
174,
|
| 225 |
+
593,
|
| 226 |
+
825,
|
| 227 |
+
648
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "Following the CV literature [67, 68], one thread of few-shot NLP focuses on class transfer, the problem of generalizing from a supervised set of classes at meta-train time to a differenfrom the same dataset at meta-test time. Evaluation typically involves splitting classes $\\mathcal { V } _ { D }$ of c into $\\mathcal { V } _ { \\mathrm { t r a i n } } ^ { \\mathcal { D } }$ $y _ { \\mathrm { v a l } } ^ { \\mathcal { D } }$ and $\\mathcal { V } _ { \\mathrm { t e s t } } ^ { \\mathcal { D } }$ disjoint subsets. Class transfer has been studied on many text classification tasks [5], including relation classification [25, 28, 64], intent classification [37, 64], inter alia. In contrast, domain transfer keeps the same classes between meta-training and meta-testing but changes the textual domain (e.g., generalizing from MNLI to science-focused SciTail [4, 21]). Evaluation then requires identifying pairs of datasets with the same classes $\\mathcal { \\ V } _ { D }$ , where one dataset’s episodes are assigned to ${ \\mathcal { E } } _ { \\operatorname* { t r a i n } }$ and the other’s to ${ \\mathcal { E } } _ { \\mathrm { t e s t } }$ . Domain transfer has also been studied on many tasks [3, 4], including dialogue intent detection & slot tagging [31], sentiment classification [77], NLI [21], and machine translation [27, 58]. ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
174,
|
| 236 |
+
655,
|
| 237 |
+
825,
|
| 238 |
+
809
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "Researchers have also begun to study task transfer, the problem of generalizing from a set of tasks at meta-train time to unseen tasks at meta-test time. Evaluation requires tasks (e.g., NLI) appearing in ${ \\mathcal { E } } _ { \\mathrm { t e s t } }$ not to appear in ${ \\mathcal { E } } _ { \\mathrm { t r a i n } }$ or ${ \\mathcal E } _ { \\mathrm { v a l } }$ . Prior work has used GLUE tasks [70] for meta-training before meta-testing on tasks such as entity typing [3, 4], while other work instead used GLUE for meta-testing [21]. Very recent work has studied task transfer over a large set of datasets [75, 80]. A limited amount of work evaluates both domain and task transfer [3, 4, 21]. An important emerging line of work (not noted by Yin [76]) is pretraining transfer, the problem of whether pretrained language models can perform well at meta-test time without any meta-training. Evaluation in this setting requires ${ \\mathcal { E } } _ { \\mathrm { t r a i n } }$ , $\\bar { \\mathcal { E } } _ { \\mathrm { v a l } } = \\emptyset$ . Prior work has shown that pretrained language models are capable of surprising performance on many few-shot tasks, even without fine-tuning [10]. More recent work, mainly focusing on text classification, has reported further gains with cloze-style formats [55, 56, 65], prompt engineering [24], or calibration [78]. FLEX is designed to exercise all four of these transfer types from previous work. ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
176,
|
| 247 |
+
815,
|
| 248 |
+
823,
|
| 249 |
+
871
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "",
|
| 256 |
+
"bbox": [
|
| 257 |
+
174,
|
| 258 |
+
90,
|
| 259 |
+
826,
|
| 260 |
+
215
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 3
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "text",
|
| 266 |
+
"text": "Few-shot evaluation outside NLP The few-shot learning literature has largely focused on image classification, with the introduction of increasingly complex meta-learning algorithms [e.g., 23, 39, 54, 61, 68]. However, more recent work has shown that simple fine-tuning baselines are in fact competitive, and attribute this delayed discovery to problematic evaluation methodology [15, 19]. FLEX adopts recommended methodology [19, 67], and we introduce an analogous baseline (UniFew) to provide a strong measurement foundation for few-shot NLP. ",
|
| 267 |
+
"bbox": [
|
| 268 |
+
173,
|
| 269 |
+
229,
|
| 270 |
+
825,
|
| 271 |
+
314
|
| 272 |
+
],
|
| 273 |
+
"page_idx": 3
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"type": "text",
|
| 277 |
+
"text": "3 FLEX Principles for Few-Shot NLP Evaluation ",
|
| 278 |
+
"text_level": 1,
|
| 279 |
+
"bbox": [
|
| 280 |
+
174,
|
| 281 |
+
332,
|
| 282 |
+
599,
|
| 283 |
+
349
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 3
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "text",
|
| 289 |
+
"text": "We now enumerate key desiderata for a few-shot NLP benchmark capable of solving the urgent problems with few-shot NLP evaluation, including separate evaluations for each transfer type and failure to incorporate best measurement practices from other domains (§2). ",
|
| 290 |
+
"bbox": [
|
| 291 |
+
174,
|
| 292 |
+
363,
|
| 293 |
+
825,
|
| 294 |
+
405
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 3
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "text",
|
| 300 |
+
"text": "Diversity of transfer types To make NLP models broadly useful, few-shot NLP techniques must be capable of class, domain, and task transfer. Moreover, techniques should make use of the relevant supervision provided during meta-training to increase performance compared to the pretraining transfer setting. The benchmark should measure all four transfer settings to ensure that the community develops techniques that improve on strong pretraining transfer baselines, and enable comparison across these currently separate threads of research. ",
|
| 301 |
+
"bbox": [
|
| 302 |
+
174,
|
| 303 |
+
411,
|
| 304 |
+
825,
|
| 305 |
+
494
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 3
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "text",
|
| 311 |
+
"text": "Variable number of shots and classes To better simulate a variety of real-world scenarios, the benchmark should include a variety of training set sizes and numbers of classes [67]. Testing robustness to these factors is crucial; few-shot techniques are often sensitive to changes in these factors [12], yet all prior few-shot NLP evaluations we are aware of used a fixed number of training shots and classes, known in advance during meta-training. ",
|
| 312 |
+
"bbox": [
|
| 313 |
+
174,
|
| 314 |
+
501,
|
| 315 |
+
825,
|
| 316 |
+
570
|
| 317 |
+
],
|
| 318 |
+
"page_idx": 3
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "text",
|
| 322 |
+
"text": "Unbalanced training sets The benchmark should also include unbalanced training sets with different training shots per class, another realistic setting adopted by CV benchmarks [67]. Class imbalance has also been observed to degrade performance [11, 47], yet prior few-shot NLP evaluations do not include this setting either. ",
|
| 323 |
+
"bbox": [
|
| 324 |
+
174,
|
| 325 |
+
577,
|
| 326 |
+
823,
|
| 327 |
+
632
|
| 328 |
+
],
|
| 329 |
+
"page_idx": 3
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"type": "text",
|
| 333 |
+
"text": "Textual labels While numerical label values are often used in classification tasks, descriptive textual labels are also present for many tasks. Making these textual labels available for use by few-shot techniques enables the development of techniques that can leverage the class name, like in-context learning [10], template generation [24], and meta-learning [45]. Textual labels are crucial in particular for zero-shot evaluation. ",
|
| 334 |
+
"bbox": [
|
| 335 |
+
174,
|
| 336 |
+
638,
|
| 337 |
+
825,
|
| 338 |
+
708
|
| 339 |
+
],
|
| 340 |
+
"page_idx": 3
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"type": "text",
|
| 344 |
+
"text": "Zero-shot evaluation We believe zero-shot evaluation is integral to the goals of few-shot evaluation. Similar to the motivation for measuring pretraining transfer, zero-shot evaluation is an important use case and also provides a strong baseline for some tasks. In the absence of training examples, textual class labels or richer task descriptions [73] must be provided. Some recent few-shot NLP work [e.g., 10, 24] evaluated with zero training shots, but most [e.g., 3, 5, 75] did not. ",
|
| 345 |
+
"bbox": [
|
| 346 |
+
174,
|
| 347 |
+
715,
|
| 348 |
+
825,
|
| 349 |
+
785
|
| 350 |
+
],
|
| 351 |
+
"page_idx": 3
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"type": "text",
|
| 355 |
+
"text": "No extra meta-testing data We believe the benchmark should not provide validation data $\\langle \\mathcal { D } _ { \\mathrm { v a l } } ^ { E } =$ $\\emptyset , \\forall E \\in { \\mathcal { E } } _ { \\mathrm { t e s t } } )$ or unlabeled data for meta-testing tasks, since few-shot learning seeks to enable high performance in environments where collecting additional data is costly.10 Variation in these dimensions in prior NLP work makes comparison of results extremely difficult because it is often under-reported and gives unfair advantage to approaches that leverage such data [50]. For example, per-episode hyperparameter tuning on extra data has been shown to greatly inflate evaluation scores [24]. A few researchers [5, 65] follow our suggested approach, but others have used many different settings, from validation sets of various sizes [10, 24, 79] to no validation set but a large set of unlabeled examples [55, 56]. ",
|
| 356 |
+
"bbox": [
|
| 357 |
+
174,
|
| 358 |
+
791,
|
| 359 |
+
825,
|
| 360 |
+
888
|
| 361 |
+
],
|
| 362 |
+
"page_idx": 3
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"type": "text",
|
| 366 |
+
"text": "",
|
| 367 |
+
"bbox": [
|
| 368 |
+
173,
|
| 369 |
+
90,
|
| 370 |
+
823,
|
| 371 |
+
119
|
| 372 |
+
],
|
| 373 |
+
"page_idx": 4
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"type": "text",
|
| 377 |
+
"text": "Principled sample size design Promising few-shot techniques can incur significant computational cost per episode, e.g., due to fine-tuning model parameters [4], searching for prompts [24], inter alia. To alleviate these costs, related works often evaluate with a limited number of episodes, which precludes statistically accurate or precise performance estimates. We believe the benchmark’s test sample size should be optimized to enable proper performance evaluation for such techniques, while ensuring the computational burden is inclusive toward researchers without large compute resources. ",
|
| 378 |
+
"bbox": [
|
| 379 |
+
173,
|
| 380 |
+
126,
|
| 381 |
+
825,
|
| 382 |
+
209
|
| 383 |
+
],
|
| 384 |
+
"page_idx": 4
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"type": "text",
|
| 388 |
+
"text": "Proper reporting of CIs, SDs, and individual results The benchmark should report confidence intervals (CIs) of performance estimates and follow recent guidelines [19] to report standard deviations (SDs) for understanding variability. Moreover, we newly advocate for controlling for the same sampled few-shot episodes across all methods and reporting individual episode results, so that researchers can run higher-powered paired statistical tests when comparing results [22], crucial when the benchmark has been optimized for low evaluation budgets. ",
|
| 389 |
+
"bbox": [
|
| 390 |
+
174,
|
| 391 |
+
215,
|
| 392 |
+
825,
|
| 393 |
+
299
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 4
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "text",
|
| 399 |
+
"text": "4 FLEX Benchmark ",
|
| 400 |
+
"text_level": 1,
|
| 401 |
+
"bbox": [
|
| 402 |
+
174,
|
| 403 |
+
316,
|
| 404 |
+
359,
|
| 405 |
+
334
|
| 406 |
+
],
|
| 407 |
+
"page_idx": 4
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"type": "text",
|
| 411 |
+
"text": "The FLEX benchmark is a unifying, rigorous evaluation suite for few-shot learning in NLP, which implements the desiderata outlined in the previous section. In this section, we describe detailed design decisions and our accompanying few-shot NLP toolkit (§4.4), which we are releasing to facilitate easily adding NLP datasets and advanced sampling options to future benchmarks. We also describe the FLEX leaderboard (§4.5). ",
|
| 412 |
+
"bbox": [
|
| 413 |
+
174,
|
| 414 |
+
348,
|
| 415 |
+
825,
|
| 416 |
+
417
|
| 417 |
+
],
|
| 418 |
+
"page_idx": 4
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"type": "text",
|
| 422 |
+
"text": "4.1 Task and Dataset Selection ",
|
| 423 |
+
"text_level": 1,
|
| 424 |
+
"bbox": [
|
| 425 |
+
174,
|
| 426 |
+
434,
|
| 427 |
+
400,
|
| 428 |
+
449
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 4
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "text",
|
| 434 |
+
"text": "Following GLUE [70] and other prior work [3, 5, 24, 78], we focus on tasks formatted as classification. Despite recent advances, NLP state-of-the-art models remain significantly worse than human performance on many text classification tasks, particularly in the few-shot setting. Automatic scoring of classification tasks is also more reliable than text generation tasks. ",
|
| 435 |
+
"bbox": [
|
| 436 |
+
174,
|
| 437 |
+
458,
|
| 438 |
+
825,
|
| 439 |
+
515
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 4
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "text",
|
| 445 |
+
"text": "We selected datasets across three recent few-shot NLP evaluation suites, which separately studied class transfer [5], domain and task transfer [3, 4], and pretraining transfer [24]. Our benchmark includes a broad mix of tasks (NLI, question classification, entity typing, relation classification, and sentiment analysis) and formats (document, sentence, sentence pair). More complete dataset and license details are available in the following subsection and Appendix A. ",
|
| 446 |
+
"bbox": [
|
| 447 |
+
174,
|
| 448 |
+
521,
|
| 449 |
+
825,
|
| 450 |
+
590
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 4
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "text",
|
| 456 |
+
"text": "4.2 Meta-Evaluation Protocols ",
|
| 457 |
+
"text_level": 1,
|
| 458 |
+
"bbox": [
|
| 459 |
+
176,
|
| 460 |
+
606,
|
| 461 |
+
400,
|
| 462 |
+
621
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 4
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "text",
|
| 468 |
+
"text": "As discussed earlier, FLEX evaluates four different types of transfer: Class, Domain, Task, and Pretraining Transfer. To support all types, we report results to the FLEX benchmark both without metatraining (pretraining-only) and with meta-training. This reporting scheme evaluates the performance of the basic pretrained model and the benefit (or lack thereof) of meta-training. A similar reporting scheme was proposed by Triantafillou et al. [67] for CV. ",
|
| 469 |
+
"bbox": [
|
| 470 |
+
174,
|
| 471 |
+
632,
|
| 472 |
+
825,
|
| 473 |
+
702
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 4
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "text",
|
| 479 |
+
"text": "Pretraining-Only In this setting, the pretrained model is directly meta-tested on our benchmark without any additional training. This is the Pretraining Transfer setting, and it is the most difficult, but given the recent success of pretrained models in NLP for few-shot learning [10, 24], we believe that comparison to models without any meta-training is important for NLP tasks. ",
|
| 480 |
+
"bbox": [
|
| 481 |
+
174,
|
| 482 |
+
707,
|
| 483 |
+
825,
|
| 484 |
+
763
|
| 485 |
+
],
|
| 486 |
+
"page_idx": 4
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"type": "text",
|
| 490 |
+
"text": "Meta-Trained In this setting, the model is meta-trained then meta-tested on our benchmark. We carefully selected and split datasets across meta-train/validation/test in order to enable testing of Class, Domain, and Task transfer with a single meta-training phase (to reduce computational burden). Datasets involved in each transfer setting (detailed split information in Table 4 in Appendix A): ",
|
| 491 |
+
"bbox": [
|
| 492 |
+
176,
|
| 493 |
+
770,
|
| 494 |
+
825,
|
| 495 |
+
827
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 4
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "text",
|
| 501 |
+
"text": "• Class Transfer: FewRel [28], HuffPost [46], Amazon [30], 20News [38], and Reuters [41] take part in meta-training and meta-testing but with different classes. • Domain Transfer: MR [49], CR [32], SNLI [9], and SciTail [35] are only in the meta-testing phase, but the corresponding sentiment and NLI datasets exist in the meta-training phase (MNLI [74], QNLI [52], and SST-2 [62]). ",
|
| 502 |
+
"bbox": [
|
| 503 |
+
217,
|
| 504 |
+
837,
|
| 505 |
+
825,
|
| 506 |
+
911
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 4
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "text",
|
| 512 |
+
"text": "• Task Transfer: Subj [48], TREC [69], and CoNLL [66] are also for meta-testing only, and they represent tasks that the model does not encounter during meta-training. ",
|
| 513 |
+
"bbox": [
|
| 514 |
+
212,
|
| 515 |
+
90,
|
| 516 |
+
823,
|
| 517 |
+
119
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 5
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "Instead of per-episode hyperparameter tuning, we provide meta-validation episodes ${ \\mathcal E } _ { \\mathrm { v a l } }$ for learning (during meta-training) global hyperparameters that work across all episodes. Specifically, the metavalidation dataset splits (see Table 4) consist of CoLa [72] for task transfer, WNLI [40] for domain transfer, and the validation splits used by Bao et al. [5] for all class transfer datasets. Following [3], we also include meta-training datasets MRPC [20], RTE [6, 8, 17, 26], and QQP [70]. ",
|
| 524 |
+
"bbox": [
|
| 525 |
+
174,
|
| 526 |
+
132,
|
| 527 |
+
825,
|
| 528 |
+
200
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 5
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "text",
|
| 534 |
+
"text": "4.3 Episode Sampling ",
|
| 535 |
+
"text_level": 1,
|
| 536 |
+
"bbox": [
|
| 537 |
+
174,
|
| 538 |
+
217,
|
| 539 |
+
339,
|
| 540 |
+
232
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 5
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "text",
|
| 546 |
+
"text": "We describe how our benchmark samples meta-testing episodes ${ \\mathcal { E } } _ { \\mathrm { t e s t } }$ . For meta-training, we allow users to sample from ${ \\mathcal { E } } _ { \\operatorname* { t r a i n } }$ , ${ \\mathcal E } _ { \\mathrm { v a l } }$ in any way, or directly use the underlying dataset splits. ",
|
| 547 |
+
"bbox": [
|
| 548 |
+
174,
|
| 549 |
+
242,
|
| 550 |
+
823,
|
| 551 |
+
270
|
| 552 |
+
],
|
| 553 |
+
"page_idx": 5
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"type": "text",
|
| 557 |
+
"text": "Number of classes For Class Transfer datasets, FLEX evaluates model robustness to variable number of new classes. When constructing episode $E$ from one of these datasets $\\mathcal { D }$ , our benchmark samples an episode-specific number of classes from dataset $D$ , the sampler picks a random number from the range $\\mathcal { V } _ { D } ^ { E } \\sim \\mathrm { \\bar { U n i f } } ( 5 , \\operatorname* { m i n } ( | \\mathcal { V } _ { D } | , 1 0 ) )$ . 11 For Domain and Task Transfer, the number of classes is fixed to the maximum number of classes in each dataset because Class Transfer is not being evaluated. ",
|
| 558 |
+
"bbox": [
|
| 559 |
+
174,
|
| 560 |
+
276,
|
| 561 |
+
825,
|
| 562 |
+
345
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 5
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "text",
|
| 568 |
+
"text": "Number of shots Following prior work outside NLP [47, 67], our benchmark samples the training shot independently for each episode $E$ and class $i$ , as $K _ { i } ^ { E } \\sim \\mathrm { U n i f } ( K _ { \\operatorname* { m i n } } , K _ { \\operatorname* { m a x } } )$ , where $K _ { \\operatorname* { m i n } } = 1$ Given strong performance of NLP models with few or even zero examples [10, 73] and following prior work [5], we set the limit $K _ { \\operatorname* { m a x } } = 5$ . Separately, we allocate an equal number of episodes as zero-shot, where we instead set $\\mathcal { D } _ { \\mathrm { t r a i n } } ^ { E } = \\varnothing$ (equivalently, $K _ { i } ^ { E } = 0 , \\forall i )$ . In each episode, examples are sampled uniformly at random without replacement (but can be reused across episodes).12 Following Triantafillou et al. [67], we select a testing shot that is balanced across classes and leaves roughly half of examples for sampling the training examples. The total number of episodes for each reported configuration (pair of dataset and either zero- or few-shot) is set to 90 using Sample Size Design (§5). ",
|
| 569 |
+
"bbox": [
|
| 570 |
+
174,
|
| 571 |
+
352,
|
| 572 |
+
825,
|
| 573 |
+
478
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 5
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "text",
|
| 579 |
+
"text": "4.4 Extensible Toolkit for Benchmark Creation and Model Training & Evaluation ",
|
| 580 |
+
"text_level": 1,
|
| 581 |
+
"bbox": [
|
| 582 |
+
173,
|
| 583 |
+
494,
|
| 584 |
+
754,
|
| 585 |
+
510
|
| 586 |
+
],
|
| 587 |
+
"page_idx": 5
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "text",
|
| 591 |
+
"text": "Alongside the FLEX benchmark, we release an extensible, highly-configurable Python toolkit, which we used to generate the benchmark, and train and evaluate our models. Unlike existing meta-learning frameworks (e.g., Torchmeta [18], learn2learn [2]), our framework makes available a wide range of community-contributed NLP datasets and utilities via HuggingFace Datasets [42].13 Our code also provides advanced sampling utilities (e.g., for class imbalance), ensures reproducibility by checksumming generated episodes, and reports all recommended statistics. ",
|
| 592 |
+
"bbox": [
|
| 593 |
+
174,
|
| 594 |
+
520,
|
| 595 |
+
825,
|
| 596 |
+
603
|
| 597 |
+
],
|
| 598 |
+
"page_idx": 5
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"type": "text",
|
| 602 |
+
"text": "4.5 Public Leaderboard ",
|
| 603 |
+
"text_level": 1,
|
| 604 |
+
"bbox": [
|
| 605 |
+
174,
|
| 606 |
+
619,
|
| 607 |
+
352,
|
| 608 |
+
633
|
| 609 |
+
],
|
| 610 |
+
"page_idx": 5
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"type": "text",
|
| 614 |
+
"text": "We provide public leaderboards for each of the meta-evaluation protocols: Pretraining-Only14 and Meta-Trained.15 Submissions take the form of a text label predictions file, which is produced by our toolkit. Results are reported with confidence intervals, standard deviations, and individual predictions on request. See Appendix G for a screenshot of the results interface. ",
|
| 615 |
+
"bbox": [
|
| 616 |
+
174,
|
| 617 |
+
645,
|
| 618 |
+
825,
|
| 619 |
+
700
|
| 620 |
+
],
|
| 621 |
+
"page_idx": 5
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"type": "text",
|
| 625 |
+
"text": "5 Sample Size Design: Balancing Statistical Measurement & Compute Cost ",
|
| 626 |
+
"text_level": 1,
|
| 627 |
+
"bbox": [
|
| 628 |
+
171,
|
| 629 |
+
719,
|
| 630 |
+
816,
|
| 631 |
+
737
|
| 632 |
+
],
|
| 633 |
+
"page_idx": 5
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"type": "text",
|
| 637 |
+
"text": "We demonstrate a principled approach to determining the optimal sample size configuration in our few-shot benchmark. A proper benchmark should produce performance estimates that are accurate, close to the true value, and precise, low variance. A large (test) sample size can achieve this, yet must be considered alongside computational cost so that a broad community of researchers with differing amounts of compute resources can participate. This decision is further complicated in the few-shot setting, where sample size refers to both the number of test episodes $| \\mathcal { E } _ { \\mathrm { t e s t } } |$ and the number of test examples $| \\mathcal { D } _ { \\mathrm { t e s t } } ^ { E } |$ per episode $E \\in \\mathcal { E } _ { \\mathrm { t e s t } }$ . For practicality, we consider $\\overline { { | \\mathcal { D } _ { \\mathrm { t e s t } } | } }$ , the mean $| \\mathcal { D } _ { \\mathrm { t e s t } } ^ { E } |$ across all episodes, rather than every $| \\mathcal { D } _ { \\mathrm { t e s t } } ^ { E } |$ . It remains unknown how one should best distribute test examples between $| \\mathcal { E } _ { \\mathrm { t e s t } } |$ and $\\overline { { | \\mathcal { D } _ { \\mathrm { t e s t } } | } }$ : More episodes each with fewer examples, or fewer episodes each with many examples? Prior work has been inconsistent in this regard. For example, Gao et al. [24] used $| \\mathcal { E } _ { \\mathrm { t e s t } } | = 5$ and large $\\overline { { | \\mathcal { D } _ { \\mathrm { t e s t } } | } }$ , while Bao et al. [5] used $| \\mathcal { E } _ { \\mathrm { t e s t } } | = 1 0 0 0$ and much smaller $\\overline { { | \\mathcal { D } _ { \\mathrm { t e s t } } | } }$ . ",
|
| 638 |
+
"bbox": [
|
| 639 |
+
173,
|
| 640 |
+
751,
|
| 641 |
+
825,
|
| 642 |
+
820
|
| 643 |
+
],
|
| 644 |
+
"page_idx": 5
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"type": "image",
|
| 648 |
+
"img_path": "images/20b72aa04b5ecaf7008d376f1db2ef72f6b0892ea549c2a8081f72b78f0af4b9.jpg",
|
| 649 |
+
"image_caption": [
|
| 650 |
+
"Figure 1: Results of simulation study described in $\\ S 5$ . Each curve corresponds to a compute budget constraint $C$ (GPU-hours). Each point on a curve is an allocation of test data between the number of test episodes $| \\mathcal { E } _ { \\mathrm { t e s t } } |$ or mean number of examples per episode $\\overline { { | \\mathcal { D } _ { \\mathrm { t e s t } } | } }$ such that evaluation can be completed within given budget. Per curve, lower values of $| \\mathcal { E } _ { \\mathrm { t e s t } } |$ correspond linearly to larger values of $\\overline { { | \\mathcal { D } _ { \\mathrm { t e s t } } | } }$ , which are shown as numerical text annotations in (b). Error bars represent the $1 0 ^ { t h }$ and $9 0 ^ { t h }$ percentile values from repeated simulations across $\\mu _ { a c c } \\in \\{ 0 . 3 , 0 . 3 5 , \\ldots , 0 . 9 5 \\}$ . "
|
| 651 |
+
],
|
| 652 |
+
"image_footnote": [],
|
| 653 |
+
"bbox": [
|
| 654 |
+
214,
|
| 655 |
+
89,
|
| 656 |
+
789,
|
| 657 |
+
262
|
| 658 |
+
],
|
| 659 |
+
"page_idx": 6
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"type": "text",
|
| 663 |
+
"text": "",
|
| 664 |
+
"bbox": [
|
| 665 |
+
173,
|
| 666 |
+
392,
|
| 667 |
+
825,
|
| 668 |
+
487
|
| 669 |
+
],
|
| 670 |
+
"page_idx": 6
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"type": "text",
|
| 674 |
+
"text": "Inspired by simulation techniques for informing statistically-powered experimental design [13], we study how different configurations of $| \\mathcal { E } _ { \\mathrm { t e s t } } |$ and $\\overline { { | \\mathcal { D } _ { \\mathrm { t e s t } } | } }$ across different compute budgets $C$ impact the accuracy and precision of our estimated CIs, specifically with respect to coverage probability [53] and width. First, we estimate per-episode and per-test-example costs of our few-shot model (§6) to obtain valid $( C , \\vert \\mathcal { E } _ { \\mathrm { t e s t } } \\vert , \\vert \\overline { { \\mathcal { D } _ { \\mathrm { t e s t } } } } \\vert )$ configurations s.t. the full benchmark completes within given $C$ (GPU-hours).16 Then, for each $( C , \\vert \\mathcal { E } _ { \\mathrm { t e s t } } \\vert , \\vert \\overline { { \\mathcal { D } _ { \\mathrm { t e s t } } } } \\vert )$ , we perform 1000 simulation runs, in which each run samples predictions under a true model accuracy $\\mu _ { a c c }$ and computes a single $9 5 \\%$ CI, its width, and whether it correctly covers $\\mu _ { a c c }$ . Averaging over simulation runs gives us estimates for the coverage probability and width of our benchmark’s CI for a single $( C , \\vert \\mathcal { E } _ { \\mathrm { t e s t } } \\vert , \\vert \\overline { { \\mathcal { D } _ { \\mathrm { t e s t } } } } \\vert )$ . We repeat this whole procedure for different $\\mu _ { a c c } \\in \\{ 0 . 3 , 0 . 3 5 , \\ldots , 0 . 9 5 \\}$ to cover a wide range of possible model performances observed across many datasets (see Table 3). ",
|
| 675 |
+
"bbox": [
|
| 676 |
+
173,
|
| 677 |
+
491,
|
| 678 |
+
825,
|
| 679 |
+
654
|
| 680 |
+
],
|
| 681 |
+
"page_idx": 6
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "text",
|
| 685 |
+
"text": "Figure 1 shows CI coverage probability and width for many $( C , \\vert \\mathcal { E } _ { \\mathrm { t e s t } } \\vert , \\overline { { \\vert D _ { \\mathrm { t e s t } } \\vert } } )$ configurations. First, we find in Figure 1a that sufficiently-many test episodes (i.e., $\\vert \\mathcal { E } _ { \\mathrm { t e s t } } \\vert > 6 0 )$ is needed to guarantee coverage probability of our CIs is within one percentage point of the target $9 5 \\%$ , a trend that holds regardless of compute budget. Small $| \\mathcal { E } _ { \\mathrm { t e s t } } |$ also corresponds to large CI widths across all considered budgets in Figure 1b. This suggests that the choices of $| \\mathcal { E } _ { \\mathrm { t e s t } } | = 1 , 5 , 1 0$ in prior work [4, 24, 56, 75] can mean inaccurate and wide CIs, while choices of $| \\mathcal { E } _ { \\mathrm { t e s t } } | = 1 0 0 0$ [5] can be prohibitively costly for methods with high training cost. ",
|
| 686 |
+
"bbox": [
|
| 687 |
+
173,
|
| 688 |
+
660,
|
| 689 |
+
825,
|
| 690 |
+
758
|
| 691 |
+
],
|
| 692 |
+
"page_idx": 6
|
| 693 |
+
},
|
| 694 |
+
{
|
| 695 |
+
"type": "text",
|
| 696 |
+
"text": "Next, Figure 1b reveals (i) diminishing returns in $\\mathrm { C I }$ width (decrease in $y$ -axis) as compute increases, and (ii) existence of an optimal balance between $| \\mathcal { E } _ { \\mathrm { t e s t } } |$ and $\\overline { { | \\mathcal { D } _ { \\mathrm { t e s t } } | } }$ for each budget. Restricting our consideration to budgets with optima satisfying sufficient coverage probability $\\lvert \\mathcal { E } _ { \\mathrm { t e s t } } \\rvert > 6 0 )$ , the minimum viable budget is 36 GPU-hours. Then, assessing the marginal benefit of each 12 GPU-hour budget increase in terms of marginal reduction in CI width between optima, we arrive at our FLEX configuration of $| \\mathcal { E } _ { \\mathrm { t e s t } } | = 9 0$ and $\\overline { { | \\mathscr { D } _ { \\mathrm { t e s t } } | } } \\approx 4 7 0$ under a budget of $C = 4 8$ GPU-hours.17 Further details are in Appendix B. ",
|
| 697 |
+
"bbox": [
|
| 698 |
+
173,
|
| 699 |
+
763,
|
| 700 |
+
825,
|
| 701 |
+
837
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 6
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "",
|
| 708 |
+
"bbox": [
|
| 709 |
+
171,
|
| 710 |
+
89,
|
| 711 |
+
826,
|
| 712 |
+
119
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 7
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "6 UniFew: A Few-Shot Learning Model by Unifying Pre-training and Downstream Task Formats ",
|
| 719 |
+
"text_level": 1,
|
| 720 |
+
"bbox": [
|
| 721 |
+
173,
|
| 722 |
+
138,
|
| 723 |
+
767,
|
| 724 |
+
174
|
| 725 |
+
],
|
| 726 |
+
"page_idx": 7
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "text",
|
| 730 |
+
"text": "Despite their encouraging results, existing works on few-shot learning in NLP are based on either customized and often complex meta-learning algorithms [3, 4, 5, 60], heavy manual/automated engineering of textual descriptions or prompts [24, 55, 59, 78], ordering of training examples [44, 56], extensive hyperparameter tuning on held-out sets [24, 44, 55], or custom learning algorithms [55, 65]. We present UniFew, a strong few-shot learning model across all transfer settings and datasets tested, that eschews the need for incorporating the above-mentioned complexities and challenges. ",
|
| 731 |
+
"bbox": [
|
| 732 |
+
173,
|
| 733 |
+
189,
|
| 734 |
+
826,
|
| 735 |
+
272
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 7
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "UniFew is a prompt-based model [56], a class of models that tailor the input/output format of their data to match the format used during pretraining. While this technique allows them to perform a task without the need for additional classification layers, prompt-based models are typically sensitive to the choice of the prompts, which can require extensive search, trial-and-error, and even additional models to get right [24, 78]. To avoid this issue while still leveraging the strong capabilities of pretrained models, UniFew (1) converts examples into multiple-choice question-answer (QA) format, and (2) uses UnifiedQA [34], a T5 [51] model further pretrained on a large collection of QA pairs.18,19 ",
|
| 742 |
+
"bbox": [
|
| 743 |
+
174,
|
| 744 |
+
279,
|
| 745 |
+
825,
|
| 746 |
+
376
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 7
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "Compared to other prompt-based models, UniFew has two main strengths. First, the prompt design problem is much simpler because UnifiedQA questions had well-defined formats. For example, we only need four general prompt templates which cover all 20 datasets in the FLEX benchmark, while prior works have needed specialized prompts for each dataset. Second, UnifiedQA’s multiple-choice format ensures the model outputs a valid class label, without the need for learned or manually-defined mappings or verbalizers required for other prompt-based methods [24, 55].20 In concurrent work, Zhong et al. [80] also show the benefit of performing meta-tuning on a variety of datasets; while their task setup as Q/A is similar to UniFew, they focus exclusively on binary zero-shot classification tasks and, unlike UniFew, do not handle multi-class or few-shot problems. ",
|
| 753 |
+
"bbox": [
|
| 754 |
+
174,
|
| 755 |
+
381,
|
| 756 |
+
825,
|
| 757 |
+
507
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 7
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "We experiment with UniFew both without and with meta-training on the FLEX benchmark’s metatraining data, following the FLEX protocol (§4.2). We call the meta-trained variant $\\mathrm { U n i F e w } _ { \\mathrm { m e t a } }$ . We use simple prompts in the format of question followed by choices followed by the answer (according to the UnifiedQA original format). The exact prompts used are provided in Appendix C. ",
|
| 764 |
+
"bbox": [
|
| 765 |
+
174,
|
| 766 |
+
512,
|
| 767 |
+
825,
|
| 768 |
+
569
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 7
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "Training details For meta-training and meta-validation of UniFew, we sampled ${ \\mathcal { E } } _ { \\operatorname* { t r a i n } }$ and ${ \\mathcal E } _ { \\mathrm { v a l } }$ with 5-class, 5-training-shot sampling with the same number of shots per class.21 We trained the model for total number of 30K steps, using a linear learning rate scheduler with peak rate of $3 e { - 5 }$ , 200 warmup steps, and batch size of 4; we selected the best checkpoint based on ${ \\mathcal E } _ { \\mathrm { v a l } }$ performance. At meta-test time, for each episode, we trained the model on the episode’s training examples (if they exist) and predicted the outputs on test examples. For training at meta-test time, we used constant learning rate of $3 e { \\mathrm { - } } 5$ and batch size of 4, and trained the model for 400 steps.22 We used NVidia RTX8000 GPUs, which take about 7 GPU-hours for meta-training and 48 GPU-hours for meta-testing. For meta-testing we split the episodes among 8 GPUs to speed up evaluations. ",
|
| 775 |
+
"bbox": [
|
| 776 |
+
173,
|
| 777 |
+
574,
|
| 778 |
+
825,
|
| 779 |
+
700
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 7
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "text",
|
| 785 |
+
"text": "7 Experiments ",
|
| 786 |
+
"text_level": 1,
|
| 787 |
+
"bbox": [
|
| 788 |
+
174,
|
| 789 |
+
719,
|
| 790 |
+
312,
|
| 791 |
+
737
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 7
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "text",
|
| 797 |
+
"text": "Comparing UniFew with prior work To demonstrate the efficacy of UniFew, we evaluate it against state-of-the-art approaches for few-shot and meta-learning in NLP: LM-BFF [24], a language ",
|
| 798 |
+
"bbox": [
|
| 799 |
+
176,
|
| 800 |
+
751,
|
| 801 |
+
825,
|
| 802 |
+
780
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 7
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "(a) H-SMLMT (Bansal et al. [4]) ",
|
| 809 |
+
"bbox": [
|
| 810 |
+
174,
|
| 811 |
+
161,
|
| 812 |
+
367,
|
| 813 |
+
174
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 8
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "table",
|
| 819 |
+
"img_path": "images/becdc4cbff04696b88d93c8d0c741b148f54dd17189ce5f0adff7e0aaf0ecb01.jpg",
|
| 820 |
+
"table_caption": [
|
| 821 |
+
"Table 2: Comparing UniFew with prior methods on their respective test suites, reporting mean accuracy (and standard deviation). For each test suite, for each result set on same number of shots, we indicate with $\\vartriangleright$ when results are directly comparable: (i) either both use meta-training (H-SMLMT & DS with $\\mathrm { U n i F e w } _ { \\mathrm { m e t a } } )$ or neither do (LM-BFF with UniFew). We bold the better of the two. ",
|
| 822 |
+
"(b) LM-BFF (Gao et al. [24]) "
|
| 823 |
+
],
|
| 824 |
+
"table_footnote": [],
|
| 825 |
+
"table_body": "<table><tr><td>Model</td><td></td><td>Shots</td><td>CR</td><td>MR</td><td>SNLI</td><td>Subj</td><td>TREC</td></tr><tr><td>□</td><td>LM-BFFman 23</td><td>024</td><td>79.5</td><td>80.8</td><td>49.5</td><td>51.4</td><td>32.0</td></tr><tr><td>□</td><td>UniFew</td><td>0</td><td>78.8</td><td>74.8</td><td>54.4</td><td>50.3</td><td>15.0</td></tr><tr><td></td><td>UniFeWmeta.</td><td>0.</td><td>92.1</td><td>90.5.</td><td>83.8</td><td>56.8</td><td>39.1</td></tr><tr><td>□</td><td>LM-BFF</td><td>16/1625</td><td>91.0 ±0.9</td><td>87.7 ±1.4</td><td>77.5 ±3.5</td><td>91.4 ±1.8</td><td>89.4 ±1.7</td></tr><tr><td>□</td><td>UniFew</td><td>16/16</td><td>92.2 ±0.8</td><td>87.2 ±0.1</td><td>75.6 ±1.5</td><td>84.6 ±5.4</td><td>86.7 ±0.3</td></tr><tr><td></td><td>UniFeWmeta</td><td>16/16</td><td>92.7 ±0.4</td><td>90.2 ±0.8</td><td>84.9 ±0.5</td><td>87.6 ±2.0</td><td>86.1 ±0.4</td></tr><tr><td colspan=\"8\">(c) Distributional Signature (Bao et al. [5])</td></tr><tr><td>Model □ DS</td><td></td><td>Shots 1</td><td>Amznt 62.7</td><td>FRelt 67.1</td><td>HuffP+ 43.1</td><td>20N+ 52.2</td><td>Reut+ 81.8</td></tr><tr><td></td><td>UniFew</td><td>1</td><td>±0.7 82.1</td><td>±0.9 75.7</td><td>±0.2 65.9</td><td>±0.7 58.4</td><td>±1.6 92.0</td></tr><tr><td>□</td><td>UniFeWmeta</td><td>1</td><td>±8.5 84.3</td><td>±13.2 90.6</td><td>±13.4 78.6</td><td>±11.6 70.3</td><td>±8.3 96.9</td></tr><tr><td></td><td></td><td></td><td>±8.9</td><td>±6.2</td><td>±6.9</td><td>±9.1</td><td>±2.5</td></tr><tr><td colspan=\"8\"></td></tr><tr><td>□</td><td>DS</td><td>5</td><td>81.2 ±0.3</td><td>83.5 ±0.3</td><td>63.5 ±0.1</td><td>68.3 ±0.2</td><td>96.0 ±0.3</td></tr><tr><td></td><td>UniFew</td><td>5</td><td>88.5 ±7.4</td><td>88.8 ±6.5</td><td>77.1 ±6.0</td><td>72.2 ±8.4</td><td>97.0 ±2.8</td></tr><tr><td>□</td><td>UniFeWmeta</td><td>5</td><td>90.5 ±5.9</td><td>93.1 ±4.4</td><td>81.7 ±5.2</td><td>76.2 ±7.1</td><td>98.0 ±2.0</td></tr></table>",
|
| 826 |
+
"bbox": [
|
| 827 |
+
423,
|
| 828 |
+
180,
|
| 829 |
+
812,
|
| 830 |
+
511
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 8
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "table",
|
| 836 |
+
"img_path": "images/48a8a40f8c1a5612705c02554534d74936750128bae4c8f82fe1deaff5488aff.jpg",
|
| 837 |
+
"table_caption": [],
|
| 838 |
+
"table_footnote": [],
|
| 839 |
+
"table_body": "<table><tr><td>Model</td><td>Shots</td><td>CNLL</td><td>SciT</td></tr><tr><td>H-SMLMT</td><td>4</td><td>57.6 ±7.1</td><td>76.8 ±3.4</td></tr><tr><td>UniFew</td><td>4</td><td>76.6 ±2.6</td><td>65.1 ±9.9</td></tr><tr><td>UniFeWmeta</td><td>4</td><td>79.7 ±2.8</td><td>85.4 ±2.5</td></tr><tr><td> H-SMLMT</td><td>8</td><td>70.2 ±3.0</td><td>79.1 ±1.1</td></tr><tr><td>UniFew</td><td>8</td><td>80.6 ±3.7</td><td>70.9 ±5.2</td></tr><tr><td>V UniFeWmeta</td><td>8</td><td>81.2 ±3.8</td><td>86.8 ±1.4</td></tr><tr><td>> H-SMLMT</td><td>16</td><td>80.6 ±2.8</td><td>80.4 ±1.4</td></tr><tr><td>UniFew</td><td>16</td><td>85.8 ±1.9</td><td>76.7 ±4.6</td></tr><tr><td>V UniFeWmeta</td><td>16</td><td>87.9 ±1.9</td><td>85.4 ±2.5</td></tr></table>",
|
| 840 |
+
"bbox": [
|
| 841 |
+
174,
|
| 842 |
+
181,
|
| 843 |
+
388,
|
| 844 |
+
426
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 8
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "text",
|
| 850 |
+
"text": "model prompt-based fine-tuning method, as well as Distributional Signatures (DS) [5] and H-SMLMT [4], two state-of-the-art meta-learning techniques. Refer to Appendix D for details on these methods. ",
|
| 851 |
+
"bbox": [
|
| 852 |
+
174,
|
| 853 |
+
536,
|
| 854 |
+
823,
|
| 855 |
+
565
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 8
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "We compare to these methods using the datasets in the FLEX benchmark to establish the quality of our model. Since we constructed our benchmark from disjoint subsets of datasets evaluated in each of these prior works (§4.1), we compare each method with its corresponding subset of datasets. Each of these prior works evaluates their methods using different experimental setups (classes, number of episodes, shots) than our benchmark and was not designed to handle FLEX’s challenging episode characteristics like class imbalance. To enable fair comparison, we test UniFew on the exact data splits released by the authors when available (H-SMLMT and LM-BFF). For DS, we sample (balanced) episodes using our framework after matching their test settings (number of shots and classes, class splits, etc.) and reproduce their reported results to within $1 \\%$ absolute difference using their model code; we use these episodes for our experiments. The results in Table 2 show that UniFewmeta outperforms both H-SMLMT and DS meta-learning approaches by relatively large margins, while achieving competitive results compared with LM-BFF. Note that UniFew’s strong results are without meta-learning approaches, extensive prompt-engineering, or per-episode hyperparameter search. ",
|
| 862 |
+
"bbox": [
|
| 863 |
+
174,
|
| 864 |
+
570,
|
| 865 |
+
825,
|
| 866 |
+
751
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 8
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "text",
|
| 872 |
+
"text": "Evaluating UniFew on the FLEX benchmark Having established UniFew as a strong model comparable to recent, state-of-the art techniques, we present its results on the final version of our benchmark (with class imbalance, etc.). From Table 3, we observe three findings. First, pretraining is an effective technique for infusing an NLP model with the ability to perform few-shot generalization even without any meta-training, as UniFew is able to score $\\Delta _ { \\mathrm { f e w } } = + 1 2 . 8$ higher when provided few rather than zero examples. Second, by comparing UniFew $\\mathrm { \\ m e t a }$ and UniFew, we see that metatraining has a substantial impact on zero-shot performance $\\Delta _ { \\mathrm { m e t a } } = + 1 4 . 5 )$ , but its benefit, while still substantial, is less in the few-shot setting $\\Delta _ { \\mathrm { m e t a } } = + 8 . 6 )$ . Third, while meta-training adds roughly the same benefit to zero and few-shot performance for both domain and task transfer settings, meta-training disproportionately benefits zero-shot class transfer $\\langle \\Delta _ { \\mathrm { m e t a } } = + 1 6 . 2 \\rangle$ over few-shot class transfer $\\Delta _ { \\mathrm { { m e t a } } } = + 4 . 3 )$ . Such observations are made possible through unified evaluation and comparison across different transfer types. The full FLEX benchmark results broken down by individual datasets are in Appendix E. ",
|
| 873 |
+
"bbox": [
|
| 874 |
+
173,
|
| 875 |
+
765,
|
| 876 |
+
825,
|
| 877 |
+
835
|
| 878 |
+
],
|
| 879 |
+
"page_idx": 8
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"type": "table",
|
| 883 |
+
"img_path": "images/7ab5c165d123b82ff094ee43197eb8b6e00dfb7af3e3c3cbe07da9c8b89f4b54.jpg",
|
| 884 |
+
"table_caption": [
|
| 885 |
+
"Table 3: Mean accuracy of UniFew and UniFew $\\mathrm { \\ m e t a }$ on FLEX benchmark in zero and few-shot setups. "
|
| 886 |
+
],
|
| 887 |
+
"table_footnote": [],
|
| 888 |
+
"table_body": "<table><tr><td></td><td colspan=\"3\">Zero-shot</td><td></td><td colspan=\"3\">Few-shot</td><td></td><td></td></tr><tr><td></td><td>Class</td><td>Domain</td><td>Task</td><td>Overall</td><td>Class</td><td>Domain</td><td>Task</td><td>Overall</td><td>△few (Overall)</td></tr><tr><td>UniFew</td><td>59.5</td><td>67.9</td><td>36.6</td><td>56.5</td><td>75.8</td><td>72.4</td><td>54.3</td><td>69.3</td><td>+12.8</td></tr><tr><td>UniFeWmeta</td><td>75.6</td><td>87.6</td><td>41.1</td><td>71.0</td><td>80.2</td><td>86.8</td><td>62.4</td><td>77.9</td><td>+6.9</td></tr><tr><td>△meta</td><td>+16.2</td><td>+19.7</td><td>+4.5</td><td>+14.5</td><td>+4.3</td><td>+14.4</td><td>+8.1</td><td>+8.6</td><td></td></tr></table>",
|
| 889 |
+
"bbox": [
|
| 890 |
+
205,
|
| 891 |
+
127,
|
| 892 |
+
792,
|
| 893 |
+
213
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 9
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "",
|
| 900 |
+
"bbox": [
|
| 901 |
+
174,
|
| 902 |
+
241,
|
| 903 |
+
825,
|
| 904 |
+
352
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 9
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "8 Limitations and Future Work ",
|
| 911 |
+
"text_level": 1,
|
| 912 |
+
"bbox": [
|
| 913 |
+
176,
|
| 914 |
+
373,
|
| 915 |
+
452,
|
| 916 |
+
391
|
| 917 |
+
],
|
| 918 |
+
"page_idx": 9
|
| 919 |
+
},
|
| 920 |
+
{
|
| 921 |
+
"type": "text",
|
| 922 |
+
"text": "While the initial FLEX benchmark is focused on classification tasks, we aim to use our benchmark creation toolkit (§4.4) to incorporate additional task formats like span selection or text generation. Furthermore, the benchmark currently only supports English language tasks; to study language transfer, we aim to incorporate new datasets using our toolkit. Adding diverse datasets has its own challenges; while we’ve selected datasets for our benchmark based on prior work adoption and have attempted to verify their licensing for research use, we were unable to find license details for some datasets (Appendix A). We believe it is crucial to continually evolve the suite of datasets to remain challenging for the best models [36] and to tackle real-world challenges [1]. ",
|
| 923 |
+
"bbox": [
|
| 924 |
+
174,
|
| 925 |
+
406,
|
| 926 |
+
825,
|
| 927 |
+
517
|
| 928 |
+
],
|
| 929 |
+
"page_idx": 9
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"type": "text",
|
| 933 |
+
"text": "In addition, Sample Size Design (§5) simulations currently rely on our own available training estimates. We plan to gather a more representative sample from community leaderboard submissions. ",
|
| 934 |
+
"bbox": [
|
| 935 |
+
176,
|
| 936 |
+
523,
|
| 937 |
+
821,
|
| 938 |
+
553
|
| 939 |
+
],
|
| 940 |
+
"page_idx": 9
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"type": "text",
|
| 944 |
+
"text": "Our public leaderboard could benefit from extended support for detailed comparisons between submissions based on properties of techniques. For example, approaches may vary in terms of model characteristics (e.g., number of parameters), data and supervision used during pretraining, amount of compute, etc. We encourage reporting all these factors to enable the community to analyze and make progress on important sub-spaces in the overall few-shot technique design space. ",
|
| 945 |
+
"bbox": [
|
| 946 |
+
174,
|
| 947 |
+
558,
|
| 948 |
+
825,
|
| 949 |
+
628
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 9
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "text",
|
| 955 |
+
"text": "Finally, we believe the benefits of improving few-shot NLP techniques outweigh potential risks, but we acknowledge potential harms associated with language models [7, 14, 57, 63]. Few-shot models learn a task from a few examples but rely heavily on knowledge encoded in the pretrained model. Thus, few-shot models are more likely to inherit the biases of the pretrained models, compared to more fully supervised models; as the community focuses more on few-shot learning, it is more important than ever for future pretrained models to be careful about biases in the underlying pretraining corpora. ",
|
| 956 |
+
"bbox": [
|
| 957 |
+
174,
|
| 958 |
+
633,
|
| 959 |
+
825,
|
| 960 |
+
718
|
| 961 |
+
],
|
| 962 |
+
"page_idx": 9
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"type": "text",
|
| 966 |
+
"text": "9 Conclusion ",
|
| 967 |
+
"text_level": 1,
|
| 968 |
+
"bbox": [
|
| 969 |
+
174,
|
| 970 |
+
739,
|
| 971 |
+
299,
|
| 972 |
+
756
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 9
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "text",
|
| 978 |
+
"text": "In this work, we unify and bring rigor to few-shot NLP evaluation. We formulate the FLEX Principles, a set of requirements and best practices that enables unified, rigorous, valid, and cost-sensitive measurement. We advance the principles with new Sample Size Design methodology for optimizing statistical accuracy and precision while keeping costs low. The FLEX benchmark is our instantiation of the FLEX Principles; it employs Sample Size Design and includes four few-shot transfer settings, zero-shot evaluation, and a public leaderboard with diverse NLP tasks. We present UniFew, a promptbased model that aligns pretraining and downstream task formats, achieving results competitive with recent few-shot methods despite using trivial prompt engineering. Finally, we release an extensible, open-source toolkit (used to train UniFew and generate the FLEX benchmark) to support future benchmark creation and few-shot NLP model training. ",
|
| 979 |
+
"bbox": [
|
| 980 |
+
174,
|
| 981 |
+
772,
|
| 982 |
+
826,
|
| 983 |
+
911
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 9
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "Acknowledgments and Disclosure of Funding ",
|
| 990 |
+
"text_level": 1,
|
| 991 |
+
"bbox": [
|
| 992 |
+
174,
|
| 993 |
+
88,
|
| 994 |
+
553,
|
| 995 |
+
107
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 10
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "We would like to thank Chandra Bhagavatula, Matt Gardner, Matt Peters, Doug Downey, Dan Weld, and the four anonymous reviewers for helpful comments, suggestions and feedback. We would also like to acknowledge the large community effort involved in the creation of the datasets and open-source tools we utilize. ",
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
174,
|
| 1004 |
+
119,
|
| 1005 |
+
826,
|
| 1006 |
+
175
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 10
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"type": "text",
|
| 1012 |
+
"text": "References ",
|
| 1013 |
+
"text_level": 1,
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
174,
|
| 1016 |
+
194,
|
| 1017 |
+
266,
|
| 1018 |
+
210
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 10
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "[1] Neel Alex, Eli Lifland, Lewis Tunstall, Abhishek Thakur, Pegah Maham, C. Jess Riedel, Emmie Hine, Carolyn Ashurst, Paul Sedille, Alexis Carlier, Michael Noetel, and Andreas Stuhlmüller. 2021. RAFT: A real-world few-shot text classification benchmark. CoRR, abs/2109.14076. \n[2] Sébastien M R Arnold, Praateek Mahajan, Debajyoti Datta, Ian Bunner, and Konstantinos Saitas Zarkias. 2020. learn2learn: A library for Meta-Learning research. \n[3] Trapit Bansal, Rishikesh Jha, and Andrew McCallum. 2020. Learning to Few-Shot Learn Across Diverse Natural Language Classification Tasks. In COLING. \n[4] Trapit Bansal, Rishikesh Jha, Tsendsuren Munkhdalai, and Andrew McCallum. 2020. SelfSupervised Meta-Learning for Few-Shot Natural Language Classification Tasks. In EMNLP. \n[5] Yujia Bao, Menghua Wu, Shiyu Chang, and Regina Barzilay. 2020. Few-shot Text Classification with Distributional Signatures. In ICLR. \n[6] Roy Bar-Haim, Ido Dagan, Bill Dolan, L. Ferro, Danilo Giampiccolo, and B. Magnini. 2006. The second PASCAL recognising textual entailment challenge. \n[7] Emily M. Bender, Timnit Gebru, Angelina McMillan-Major, and Shmargaret Shmitchell. 2021. On the dangers of stochastic parrots: Can language models be too big? FAccT. \n[8] Luisa Bentivogli, Peter Clark, Ido Dagan, and Danilo Giampiccolo. 2009. The fifth PASCAL recognizing textual entailment challenge. In TAC. \n[9] Samuel R. Bowman, Gabor Angeli, Christopher Potts, and Christopher D. Manning. 2015. A large annotated corpus for learning natural language inference. In EMNLP. \n[10] Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. In NeurIPS. \n[11] Mateusz Buda, Atsuto Maki, and Maciej A. Mazurowski. 2018. A systematic study of the class imbalance problem in convolutional neural networks. Neural Networks, 106:249–259. \n[12] Tianshi Cao, Marc T. Law, and Sanja Fidler. 2020. A Theoretical Analysis of the Number of Shots in Few-Shot Learning. In ICLR. \n[13] Dallas Card, Peter Henderson, Urvashi Khandelwal, Robin Jia, Kyle Mahowald, and Dan Jurafsky. 2020. With little power comes great responsibility. In EMNLP. \n[14] Nicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom B. Brown, Dawn Song, Úlfar Erlingsson, Alina Oprea, and Colin Raffel. 2020. Extracting training data from large language models. CoRR, abs/2012.07805. \n[15] Wei-Yu Chen, Yen-Cheng Liu, Zsolt Kira, Yu-Chiang Frank Wang, and Jia-Bin Huang. 2019. A closer look at few-shot classification. In ICLR. \n[16] Christopher Clark, Kenton Lee, Ming-Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina Toutanova. 2019. BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questions. In NAACL. \n[17] Ido Dagan, Oren Glickman, and Bernardo Magnini. 2005. The PASCAL recognising textual entailment challenge. In International Conference on Machine Learning Challenges. \n[18] Tristan Deleu, Tobias Würfl, Mandana Samiei, Joseph Paul Cohen, and Yoshua Bengio. 2019. Torchmeta: A Meta-Learning library for PyTorch. Available at: https://github.com/tristandeleu/pytorch-meta. \n[19] Guneet S. Dhillon, Pratik Chaudhari, Avinash Ravichandran, and Stefano Soatto. 2020. A Baseline for Few-Shot Image Classification. In ICLR. \n[20] William B. Dolan and Chris Brockett. 2005. Automatically Constructing a Corpus of Sentential Paraphrases. In Proceedings of the Third International Workshop on Paraphrasing (IWP2005). \n[21] Zi-Yi Dou, Keyi Yu, and Antonios Anastasopoulos. 2019. Investigating Meta-Learning Algorithms for Low-Resource Natural Language Understanding Tasks. In EMNLP. \n[22] Rotem Dror, Gili Baumer, Segev Shlomov, and Roi Reichart. 2018. The Hitchhiker’s Guide to Testing Statistical Significance in Natural Language Processing. In ACL. \n[23] Chelsea Finn, Pieter Abbeel, and Sergey Levine. 2017. Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks. In ICML. \n[24] Tianyu Gao, Adam Fisch, and Danqi Chen. 2021. Making pre-trained language models better few-shot learners. In ACL. \n[25] Tianyu Gao, Xu Han, Zhiyuan Liu, and Maosong Sun. 2019. Hybrid Attention-Based Prototypical Networks for Noisy Few-Shot Relation Classification. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 6407–6414. \n[26] Danilo Giampiccolo, Bernardo Magnini, Ido Dagan, and Bill Dolan. 2007. The Third PASCAL Recognizing Textual Entailment Challenge. In Proceedings of the ACL-PASCAL Workshop on Textual Entailment and Paraphrasing, pages 1–9, Prague. Association for Computational Linguistics. \n[27] Jiatao Gu, Yong Wang, Yun Chen, Victor O. K. Li, and Kyunghyun Cho. 2018. Meta-Learning for Low-Resource Neural Machine Translation. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 3622–3631, Brussels, Belgium. Association for Computational Linguistics. \n[28] Xu Han, Hao Zhu, Pengfei Yu, Ziyun Wang, Yuan Yao, Zhiyuan Liu, and Maosong Sun. 2018. FewRel: A Large-Scale Supervised Few-Shot Relation Classification Dataset with State-of-the-Art Evaluation. In EMNLP. \n[29] Peter Hase and Mohit Bansal. 2021. When can models learn from explanations? A formal framework for understanding the roles of explanation data. CoRR, abs/2102.02201. \n[30] Ruining He and Julian McAuley. 2016. Ups and Downs: Modeling the Visual Evolution of Fashion Trends with One-Class Collaborative Filtering. In WWW, pages 507–517. \n[31] Yutai Hou, Jiafeng Mao, Yongkui Lai, Cheng Chen, Wanxiang Che, Zhigang Chen, and Ting Liu. 2020. FewJoint: A few-shot learning benchmark for joint language understanding. CoRR, abs/2009.08138. \n[32] Minqing Hu and Bing Liu. 2004. Mining and summarizing customer reviews. In KDD. \n[33] Robert L. Logan IV, Ivana Balazevic, Eric Wallace, Fabio Petroni, Sameer Singh, and Sebastian Riedel. 2021. Cutting down on prompts and parameters: Simple few-shot learning with language models. CoRR, abs/2106.13353. \n[34] Daniel Khashabi, Sewon Min, Tushar Khot, Ashish Sabharwal, Oyvind Tafjord, P. Clark, and Hannaneh Hajishirzi. 2020. UnifiedQA: Crossing Format Boundaries With a Single QA System. In EMNLP. \n[35] Tushar Khot, Ashish Sabharwal, and Peter Clark. 2018. SciTaiL: A Textual Entailment Dataset from Science Question Answering. In AAAI. \n[36] Pang Wei Koh, Shiori Sagawa, Henrik Marklund, Sang Michael Xie, Marvin Zhang, Akshay Balsubramani, Wei hua Hu, Michihiro Yasunaga, Richard L. Phillips, Sara Beery, Jure Leskovec, Anshul Kundaje, Emma Pierson, Sergey Levine, Chelsea Finn, and Percy Liang. 2021. Wilds: A benchmark of in-the-wild distribution shifts. In ICML. \n[37] Jason Krone, Yi Zhang, and Mona Diab. 2020. Learning to classify intents and slot labels given a handful of examples. In Workshop on Natural Language Processing for Conversational AI. \n[38] Ken Lang. 1995. NewsWeeder: Learning to Filter Netnews. In ICML. \n[39] Kwonjoon Lee, Subhransu Maji, Avinash Ravichandran, and Stefano Soatto. 2019. Metalearning with differentiable convex optimization. In CVPR. \n[40] Hector Levesque, Ernest Davis, and Leora Morgenstern. 2011. The Winograd schema challenge. AAAI Spring Symposium: Logical Formalizations of Commonsense Reasoning, 46:47. \n[41] David D. Lewis. 1997. Reuters-21578 text categorization test collection, distribution 1.0. \n[42] Quentin Lhoest, Patrick von Platen, Thomas Wolf, Albert Villanova del Moral, Yacine Jernite, Abhishek Thakur, Suraj Patil, Lewis Tunstall, Mariama Drame, Julien Chaumond, Julien Plu, Joe Davison, Simon Brandeis, Victor Sanh, Teven Le Scao, Kevin Canwen Xu, Nicolas Patry, Angelina McMillan-Major, Philipp Schmid, Sylvain Gugger, Clément Delangue, Théo Matussière, Lysandre Debut, Stas Bekman, and François Lagunas. 2021. huggingface/datasets: 1.9.0. \n[43] Xiaodong Liu, Pengcheng He, Weizhu Chen, and Jianfeng Gao. 2019. Multi-Task Deep Neural Networks for Natural Language Understanding. In ACL. \n[44] Yao Lu, Max Bartolo, Alastair Moore, Sebastian Riedel, and Pontus Stenetorp. 2021. Fantastically ordered prompts and where to find them: Overcoming few-shot prompt order sensitivity. CoRR, abs/2104.08786. \n[45] Qiaoyang Luo, Lingqiao Liu, Yuhao Lin, and Wei Zhang. 2021. Don’t miss the labels: Labelsemantic augmented meta-learner for few-shot text classification. In Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021. \n[46] Rishabh Misra. 2018. News category dataset. \n[47] Mateusz Ochal, Massimiliano Patacchiola, Amos Storkey, Jose Vazquez, and Sen Wang. 2021. Few-Shot Learning with Class Imbalance. \n[48] Bo Pang and Lillian Lee. 2004. A Sentimental Education: Sentiment Analysis Using Subjectivity Summarization Based on Minimum Cuts. In ACL. \n[49] Bo Pang and Lillian Lee. 2005. Seeing Stars: Exploiting Class Relationships for Sentiment Categorization with Respect to Rating Scales. In ACL. \n[50] Ethan Perez, Douwe Kiela, and Kyunghyun Cho. 2021. True few-shot learning with language models. CoRR, abs/2105.11447. \n[51] Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, W. Li, and Peter J. Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21:140:1–140:67. \n[52] Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. 2016. SQuAD: $^ { 1 0 0 , 0 0 0 + }$ Questions for Machine Comprehension of Text. In EMNLP. \n[53] D. B. Rubin and N. Schenker. 1986. Efficiently simulating the coverage properties of interval estimates. Journal of the Royal Statistical Society: Series $C$ (Applied Statistics), 35(2):159–167. \n[54] Andrei A. Rusu, Dushyant Rao, Jakub Sygnowski, Oriol Vinyals, Razvan Pascanu, Simon Osindero, and Raia Hadsell. 2019. Meta-learning with latent embedding optimization. In ICLR. \n[55] Timo Schick and Hinrich Schütze. 2021. Exploiting cloze-questions for few-shot text classification and natural language inference. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, EACL. \n[56] Timo Schick and Hinrich Schütze. 2021. It’s not just size that matters: Small language models are also few-shot learners. In NAACL. \n[57] Roy Schwartz, Jesse Dodge, Noah A. Smith, and Oren Etzioni. 2020. Green AI. Communications of the ACM, 63:54 – 63. \n[58] Amr Sharaf, Hany Hassan, and Hal Daumé III. 2020. Meta-Learning for Few-Shot NMT Adaptation. In Proceedings of the Fourth Workshop on Neural Generation and Translation, pages 43–53, Online. Association for Computational Linguistics. \n[59] Taylor Shin, Yasaman Razeghi, Robert L. Logan IV, Eric Wallace, and Sameer Singh. 2020. AutoPrompt: Eliciting knowledge from language models with automatically generated prompts. In EMNLP. \n[60] Xujie Si, Yuan Yang, Hanjun Dai, Mayur Naik, and Le Song. 2019. Learning a meta-solver for syntax-guided program synthesis. In ICLR. \n[61] Jake Snell, Kevin Swersky, and Richard Zemel. 2017. Prototypical networks for few-shot learning. In NeurIPS. \n[62] Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew $\\mathrm { N g }$ , and Christopher Potts. 2013. Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank. In EMNLP. \n[63] Irene Solaiman, Miles Brundage, Jack Clark, Amanda Askell, Ariel Herbert-Voss, Jeff Wu, Alec Radford, and Jasmine Wang. 2019. Release strategies and the social impacts of language models. CoRR, abs/1908.09203. \n[64] Shengli Sun, Qingfeng Sun, Kevin Zhou, and Tengchao Lv. 2019. Hierarchical Attention Prototypical Networks for Few-Shot Text Classification. In EMNLP. \n[65] Derek Tam, Rakesh R. Menon, Mohit Bansal, Shashank Srivastava, and Colin Raffel. 2021. Improving and simplifying pattern exploiting training. CoRR, abs/2103.11955. \n[66] Erik F. Tjong Kim Sang and Fien De Meulder. 2003. Introduction to the CoNLL-2003 Shared Task: Language-Independent Named Entity Recognition. In Proceedings of the Seventh Conference on Natural Language Learning at HLT-NAACL 2003, pages 142–147. \n[67] Eleni Triantafillou, Tyler Zhu, Vincent Dumoulin, Pascal Lamblin, Utku Evci, Kelvin Xu, Ross Goroshin, Carles Gelada, Kevin Swersky, Pierre-Antoine Manzagol, and Hugo Larochelle. 2020. Meta-Dataset: A Dataset of Datasets for Learning to Learn from Few Examples. In ICLR. \n[68] Oriol Vinyals, Charles Blundell, Tim Lillicrap, Koray Kavukcuoglu, and Daan Wierstra. 2016. Matching networks for one shot learning. In Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016. \n[69] Ellen M. Voorhees and Dawn M. Tice. 2000. Building a question answering test collection. In SIGIR. \n[70] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2018. GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding. In ICLR. \n[71] Yaqing Wang, Quanming Yao, James T. Kwok, and Lionel M. Ni. 2020. Generalizing from a Few Examples: A Survey on Few-shot Learning. ACM Computing Surveys, 53(3):63:1–63:34. \n[72] Alex Warstadt, Amanpreet Singh, and Samuel R. Bowman. 2019. Neural Network Acceptability Judgments. TACL, 7:625–641. \n[73] Orion Weller, Nicholas Lourie, Matt Gardner, and Matthew Peters. 2020. Learning from Task Descriptions. In EMNLP. \n[74] Adina Williams, Nikita Nangia, and Samuel Bowman. 2018. A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference. In NAACL. \n[75] Qinyuan Ye, Bill Yuchen Lin, and Xiang Ren. 2021. CrossFit: A few-shot learning challenge for cross-task generalization in NLP. CoRR, abs/2104.08835. \n[76] Wenpeng Yin. 2020. Meta-learning for few-shot natural language processing: A survey. CoRR, abs/2007.09604. \n[77] Mo Yu, Xiaoxiao Guo, Jinfeng Yi, Shiyu Chang, Saloni Potdar, Yu Cheng, Gerald Tesauro, Haoyu Wang, and Bowen Zhou. 2018. Diverse Few-Shot Text Classification with Multiple Metrics. In NAACL. \n[78] Tony Z. Zhao, Eric Wallace, Shi Feng, Dan Klein, and Sameer Singh. 2021. Calibrate before use: Improving few-shot performance of language models. CoRR, abs/2102.09690. \n[79] Yanan Zheng, Jing Zhou, Yujie Qian, Ming Ding, Jian Li, Ruslan Salakhutdinov, Jie Tang, Sebastian Ruder, and Zhilin Yang. 2021. FewNLU: Benchmarking state-of-the-art methods for few-shot natural language understanding. CoRR, abs/2109.12742. \n[80] Ruiqi Zhong, Kristy Lee, Zheng Zhang, and Dan Klein. 2021. Adapting language models for zero-shot learning by meta-tuning on dataset and prompt collections. CoRR, abs/2104.04670. ",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
173,
|
| 1027 |
+
219,
|
| 1028 |
+
826,
|
| 1029 |
+
911
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 10
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "text",
|
| 1035 |
+
"text": "",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
171,
|
| 1038 |
+
42,
|
| 1039 |
+
828,
|
| 1040 |
+
915
|
| 1041 |
+
],
|
| 1042 |
+
"page_idx": 11
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"type": "text",
|
| 1046 |
+
"text": "",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
171,
|
| 1049 |
+
49,
|
| 1050 |
+
828,
|
| 1051 |
+
917
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 12
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "text",
|
| 1057 |
+
"text": "",
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
171,
|
| 1060 |
+
85,
|
| 1061 |
+
828,
|
| 1062 |
+
823
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 13
|
| 1065 |
+
}
|
| 1066 |
+
]
|
parse/train/_WnGcwXLYOE/_WnGcwXLYOE_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/_WnGcwXLYOE/_WnGcwXLYOE_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/piLPYqxtWuA/piLPYq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SPEECH
|
| 2 |
+
|
| 3 |
+
Yi Ren1∗, Chenxu $\mathbf { H } \mathbf { u } ^ { 1 }$ ∗, Xu Tan2, Tao $\mathbf { Q } \mathbf { i n } ^ { 2 }$ , Sheng Zhao3, Zhou Zhao1†, Tie-Yan Liu2
|
| 4 |
+
|
| 5 |
+
1Zhejiang University {rayeren,chenxuhu,zhaozhou}@zju.edu.cn
|
| 6 |
+
|
| 7 |
+
2Microsoft Research Asia {xuta,taoqin,tyliu}@microsoft.com
|
| 8 |
+
|
| 9 |
+
3Microsoft Azure Speech Sheng.Zhao@microsoft.com
|
| 10 |
+
|
| 11 |
+
# ABSTRACT
|
| 12 |
+
|
| 13 |
+
Non-autoregressive text to speech (TTS) models such as FastSpeech (Ren et al., 2019) can synthesize speech significantly faster than previous autoregressive models with comparable quality. The training of FastSpeech model relies on an autoregressive teacher model for duration prediction (to provide more information as input) and knowledge distillation (to simplify the data distribution in output), which can ease the one-to-many mapping problem (i.e., multiple speech variations correspond to the same text) in TTS. However, FastSpeech has several disadvantages: 1) the teacher-student distillation pipeline is complicated and time-consuming, 2) the duration extracted from the teacher model is not accurate enough, and the target mel-spectrograms distilled from teacher model suffer from information loss due to data simplification, both of which limit the voice quality. In this paper, we propose FastSpeech 2, which addresses the issues in FastSpeech and better solves the one-to-many mapping problem in TTS by 1) directly training the model with ground-truth target instead of the simplified output from teacher, and 2) introducing more variation information of speech (e.g., pitch, energy and more accurate duration) as conditional inputs. Specifically, we extract duration, pitch and energy from speech waveform and directly take them as conditional inputs in training and use predicted values in inference. We further design FastSpeech 2s, which is the first attempt to directly generate speech waveform from text in parallel, enjoying the benefit of fully end-to-end inference. Experimental results show that 1) FastSpeech 2 achieves a 3x training speed-up over FastSpeech, and FastSpeech 2s enjoys even faster inference speed; 2) FastSpeech 2 and 2s outperform FastSpeech in voice quality, and FastSpeech 2 can even surpass autoregressive models. Audio samples are available at https://speechresearch.github.io/fastspeech2/.
|
| 14 |
+
|
| 15 |
+
# 1 INTRODUCTION
|
| 16 |
+
|
| 17 |
+
Neural network based text to speech (TTS) has made rapid progress and attracted a lot of attention in the machine learning and speech community in recent years (Wang et al., 2017; Shen et al., 2018; Ming et al., 2016; Arik et al., 2017; Ping et al., 2018; Ren et al., 2019; Li et al., 2019). Previous neural TTS models (Wang et al., 2017; Shen et al., 2018; Ping et al., 2018; Li et al., 2019) first generate mel-spectrograms autoregressively from text and then synthesize speech from the generated mel-spectrograms using a separately trained vocoder (Van Den Oord et al., 2016; Oord et al., 2017; Prenger et al., 2019; Kim et al., 2018; Yamamoto et al., 2020; Kumar et al.,
|
| 18 |
+
|
| 19 |
+
2019). They usually suffer from slow inference speed and robustness (word skipping and repeating) issues (Ren et al., 2019; Chen et al., 2020). In recent years, non-autoregressive TTS models (Ren et al., 2019; Łancucki, 2020; Kim et al., 2020; Lim et al., 2020; Miao et al., 2020; Peng et al., 2019) ´ are designed to address these issues, which generate mel-spectrograms with extremely fast speed and avoid robustness issues, while achieving comparable voice quality with previous autoregressive models.
|
| 20 |
+
|
| 21 |
+
Among those non-autoregressive TTS methods, FastSpeech (Ren et al., 2019) is one of the most successful models. FastSpeech designs two ways to alleviate the one-to-many mapping problem: 1) Reducing data variance in the target side by using the generated mel-spectrogram from an autoregressive teacher model as the training target (i.e., knowledge distillation). 2) Introducing the duration information (extracted from the attention map of the teacher model) to expand the text sequence to match the length of the mel-spectrogram sequence. While these designs in FastSpeech ease the learning of the one-to-many mapping problem (see Section 2.1) in TTS, they also bring several disadvantages: 1) The two-stage teacher-student training pipeline makes the training process complicated. 2) The target mel-spectrograms generated from the teacher model have some information loss1 compared with the ground-truth ones, since the quality of the audio synthesized from the generated mel-spectrograms is usually worse than that from the ground-truth ones. 3) The duration extracted from the attention map of teacher model is not accurate enough.
|
| 22 |
+
|
| 23 |
+
In this work, we propose FastSpeech 2 to address the issues in FastSpeech and better handle the one-to-many mapping problem in non-autoregressive TTS. To simplify the training pipeline and avoid the information loss due to data simplification in teacher-student distillation, we directly train the FastSpeech 2 model with ground-truth target instead of the simplified output from a teacher. To reduce the information gap (input does not contain all the information to predict the target) between the input (text sequence) and target output (mel-spectrograms) and alleviate the one-to-many mapping problem for non-autoregressive TTS model training, we introduce some variation information of speech including pitch, energy and more accurate duration into FastSpeech: in training, we extract duration, pitch and energy from the target speech waveform and directly take them as conditional inputs; in inference, we use values predicted by the predictors that are jointly trained with the FastSpeech 2 model. Considering the pitch is important for the prosody of speech and is also difficult to predict due to the large fluctuations along time, we convert the pitch contour into pitch spectrogram using continuous wavelet transform (Tuteur, 1988; Grossmann & Morlet, 1984) and predict the pitch in the frequency domain, which can improve the accuracy of predicted pitch. To further simplify the speech synthesis pipeline, we introduce FastSpeech 2s, which does not use mel-spectrograms as intermediate output and directly generates speech waveform from text in inference, enjoying low latency in inference. Experiments on the LJSpeech (Ito, 2017) dataset show that 1) FastSpeech 2 enjoys much simpler training pipeline (3x training time reduction) than FastSpeech while inherits its advantages of fast, robust and controllable (even more controllable in pitch and energy) speech synthesis, and FastSpeech 2s enjoys even faster inference speed; 2) FastSpeech 2 and 2s outperform FastSpeech in voice quality, and FastSpeech 2 can even surpass autoregressive models. We attach audio samples generated by FastSpeech 2 and 2s at https://speechresearch.github.io/fastspeech2/.
|
| 24 |
+
|
| 25 |
+
The main contributions of this work are summarized as follows:
|
| 26 |
+
|
| 27 |
+
• FastSpeech 2 achieves a 3x training speed-up over FastSpeech by simplifying the training pipeline.
|
| 28 |
+
• FastSpeech 2 alleviates the one-to-many mapping problem in TTS and achieves better voice quality.
|
| 29 |
+
• FastSpeech 2s further simplifies the inference pipeline for speech synthesis while maintaining high voice quality, by directly generating speech waveform from text.
|
| 30 |
+
|
| 31 |
+
# 2 FASTSPEECH 2 AND 2S
|
| 32 |
+
|
| 33 |
+
In this section, we first describe the motivation of the design in FastSpeech 2, and then introduce the architecture of FastSpeech 2, which aims to improve FastSpeech to better handle the one-to
|
| 34 |
+
|
| 35 |
+

|
| 36 |
+
Figure 1: The overall architecture for FastSpeech 2 and 2s. LR in subfigure (b) denotes the length regulator proposed in FastSpeech. LN in subfigure (c) denotes layer normalization.
|
| 37 |
+
|
| 38 |
+
many mapping problem, with simpler training pipeline and higher voice quality. At last, we extend FastSpeech 2 to FastSpeech 2s for fully end-to-end text-to-waveform synthesis2.
|
| 39 |
+
|
| 40 |
+
# 2.1 MOTIVATION
|
| 41 |
+
|
| 42 |
+
TTS is a typical one-to-many mapping problem (Wang et al., 2017; Zhu et al., 2017; Jayne et al., 2012; Gadermayr et al., 2020; Chen et al., 2021), since multiple possible speech sequences can correspond to a text sequence due to variations in speech, such as pitch, duration, sound volume and prosody. In non-autoregressive TTS, the only input information is text which is not enough to fully predict the variance in speech. In this case, the model is prone to overfit to the variations of the target speech in the training set, resulting in poor generalization ability. As mentioned in Section 1, although FastSpeech designs two ways to alleviate the one-to-many mapping problem, they also bring about several issues including 1) the complicated training pipeline; 2) information loss of target mel-spectrogram as analyzed in Table 1; and 3) not accurate enough ground-truth duration as shown in Table 5a. In the following subsection, we introduce the detailed design of FastSpeech 2 which aims to address these issues.
|
| 43 |
+
|
| 44 |
+
# 2.2 MODEL OVERVIEW
|
| 45 |
+
|
| 46 |
+
The overall model architecture of FastSpeech 2 is shown in Figure 1a. The encoder converts the phoneme embedding sequence into the phoneme hidden sequence, and then the variance adaptor adds different variance information such as duration, pitch and energy into the hidden sequence, finally the mel-spectrogram decoder converts the adapted hidden sequence into mel-spectrogram sequence in parallel. We use the feed-forward Transformer block, which is a stack of selfattention (Vaswani et al., 2017) layer and 1D-convolution as in FastSpeech (Ren et al., 2019), as the basic structure for the encoder and mel-spectrogram decoder. Different from FastSpeech that relies on a teacher-student distillation pipeline and the phoneme duration from a teacher model, FastSpeech 2 makes several improvements. First, we remove the teacher-student distillation pipeline, and directly use ground-truth mel-spectrograms as target for model training, which can avoid the information loss in distilled mel-spectrograms and increase the upper bound of the voice quality. Second, our variance adaptor consists of not only duration predictor but also pitch and energy predictors, where 1) the duration predictor uses the phoneme duration obtained by forced alignment (McAuliffe et al., 2017) as training target, which is more accurate than that extracted from the attention map of autoregressive teacher model as verified experimentally in Section 3.2.2; and 2) the additional pitch and energy predictors can provide more variance information, which is important to ease the one-to-many mapping problem in TTS. Third, to further simplify the training pipeline and push it towards a fully end-to-end system, we propose FastSpeech 2s, which directly generates waveform from text, without cascaded mel-spectrogram generation (acoustic model) and waveform generation (vocoder). In the following subsections, we describe detailed designs of the variance adaptor and direct waveform generation in our method.
|
| 47 |
+
|
| 48 |
+
# 2.3 VARIANCE ADAPTOR
|
| 49 |
+
|
| 50 |
+
The variance adaptor aims to add variance information (e.g., duration, pitch, energy, etc.) to the phoneme hidden sequence, which can provide enough information to predict variant speech for the one-to-many mapping problem in TTS. We briefly introduce the variance information as follows: 1) phoneme duration, which represents how long the speech voice sounds; 2) pitch, which is a key feature to convey emotions and greatly affects the speech prosody; 3) energy, which indicates framelevel magnitude of mel-spectrograms and directly affects the volume and prosody of speech. More variance information can be added in the variance adaptor, such as emotion, style and speaker, and we leave it for future work. Correspondingly, the variance adaptor consists of 1) a duration predictor (i.e., the length regulator, as used in FastSpeech), 2) a pitch predictor, and 3) an energy predictor, as shown in Figure 1b. In training, we take the ground-truth value of duration, pitch and energy extracted from the recordings as input into the hidden sequence to predict the target speech. At the same time, we use the ground-truth duration, pitch and energy as targets to train the duration, pitch and energy predictors, which are used in inference to synthesize target speech. As shown in Figure 1c, the duration, pitch and energy predictors share similar model structure (but different model parameters), which consists of a 2-layer 1D-convolutional network with ReLU activation, each followed by the layer normalization and the dropout layer, and an extra linear layer to project the hidden states into the output sequence. In the following paragraphs, we describe the details of the three predictors respectively.
|
| 51 |
+
|
| 52 |
+
Duration Predictor The duration predictor takes the phoneme hidden sequence as input and predicts the duration of each phoneme, which represents how many mel frames correspond to this phoneme, and is converted into logarithmic domain for ease of prediction. The duration predictor is optimized with mean square error (MSE) loss, taking the extracted duration as training target. Instead of extracting the phoneme duration using a pre-trained autoregressive TTS model in FastSpeech, we use Montreal forced alignment (MFA) (McAuliffe et al., 2017) tool3 to extract the phoneme duration, in order to improve the alignment accuracy and thus reduce the information gap between the model input and output.
|
| 53 |
+
|
| 54 |
+
Pitch Predictor Previous neural network based TTS systems with pitch prediction (Arik et al., 2017; Gibiansky et al., 2017) often predict pitch contour directly. However, due to high variations of ground-truth pitch, the distribution of predicted pitch values is very different from ground-truth distribution, as analyzed in Section 3.2.2. To better predict the variations in pitch contour, we use continuous wavelet transform (CWT) to decompose the continuous pitch series into pitch spectrogram (Suni et al., 2013; Hirose & Tao, 2015) and take the pitch spectrogram as the training target for the pitch predictor which is optimized with MSE loss. In inference, the pitch predictor predicts the pitch spectrogram, which is further converted back into pitch contour using inverse continuous wavelet transform (iCWT). We describe the details of pitch extraction, CWT, iCWT and pitch predictor architecture in Appendix D. To take the pitch contour as input in both training and inference, we quantize pitch $F _ { 0 }$ (ground-truth/predicted value for train/inference respectively) of each frame to 256 possible values in log-scale and further convert it into pitch embedding vector $p$ and add it to the expanded hidden sequence.
|
| 55 |
+
|
| 56 |
+
Energy Predictor We compute L2-norm of the amplitude of each short-time Fourier transform (STFT) frame as the energy. Then we quantize energy of each frame to 256 possible values uniformly, encoded it into energy embedding $e$ and add it to the expanded hidden sequence similarly to pitch. We use an energy predictor to predict the original values of energy instead of the quantized values and optimize the energy predictor with MSE loss4.
|
| 57 |
+
|
| 58 |
+
# 2.4 FASTSPEECH 2S
|
| 59 |
+
|
| 60 |
+
To enable fully end-to-end text-to-waveform generation, in this subsection, we extend FastSpeech 2 to FastSpeech 2s, which directly generates waveform from text, without cascaded mel-spectrogram generation (acoustic model) and waveform generation (vocoder). As shown in Figure 1a, FastSpeech 2s generates waveform conditioning on intermediate hidden, which makes it more compact in inference by discarding mel-spectrogram decoder and achieve comparable performance with a cascaded system. We first discuss the challenges in non-autoregressive text-to-waveform generation, then describe details of FastSpeech 2s, including model structure and training and inference processes.
|
| 61 |
+
|
| 62 |
+
Challenges in Text-to-Waveform Generation When pushing TTS pipeline towards fully endto-end framework, there are several challenges: 1) Since the waveform contains more variance information (e.g., phase) than mel-spectrograms, the information gap between the input and output is larger than that in text-to-spectrogram generation. 2) It is difficult to train on the audio clip that corresponds to the full text sequence due to the extremely long waveform samples and limited GPU memory. As a result, we can only train on a short audio clip that corresponds to a partial text sequence which makes it hard for the model to capture the relationship among phonemes in different partial text sequences and thus harms the text feature extraction.
|
| 63 |
+
|
| 64 |
+
Our Method To tackle the challenges above, we make several designs in the waveform decoder: 1) Considering that the phase information is difficult to predict using a variance predictor (Engel et al., 2020), we introduce adversarial training in the waveform decoder to force it to implicitly recover the phase information by itself (Yamamoto et al., 2020). 2) We leverage the mel-spectrogram decoder of FastSpeech 2, which is trained on the full text sequence to help on the text feature extraction. As shown in Figure 1d, the waveform decoder is based on the structure of WaveNet (Van Den Oord et al., 2016) including non-causal convolutions and gated activation (Van den Oord et al., 2016). The waveform decoder takes a sliced hidden sequence corresponding to a short audio clip as input and upsamples it with transposed 1D-convolution to match the length of audio clip. The discriminator in the adversarial training adopts the same structure in Parallel WaveGAN (Yamamoto et al., 2020) which consists of ten layers of non-causal dilated 1-D convolutions with leaky ReLU activation function. The waveform decoder is optimized by the multi-resolution STFT loss and the LSGAN discriminator loss following Parallel WaveGAN. In inference, we discard the mel-spectrogram decoder and only use the waveform decoder to synthesize speech audio.
|
| 65 |
+
|
| 66 |
+
# 2.5 DISCUSSIONS
|
| 67 |
+
|
| 68 |
+
In this subsection, we discuss how FastSpeech 2 and 2s differentiate from previous and concurrent works.
|
| 69 |
+
|
| 70 |
+
Compared with Deep Voice (Arik et al., 2017), Deep Voice 2 (Gibiansky et al., 2017) and other methods Fan et al. (2014); Ze et al. (2013) which generate waveform autoregressively and also predict variance information such as duration and pitch, Fastspeech 2 and 2s adopt self-attention based feed-forward network to generate mel-spectrograms or waveform in parallel. While some existing non-autoregressive acoustic models (Zeng et al., 2020; Lim et al., 2020; Kim et al., 2020) mostly focus on improving the duration accuracy, FastSpeech 2 and 2s provide more variation information (duration, pitch and energy) as inputs to reduce the information gap between the input and output. A concurrent work (Łancucki, 2020) employs pitch prediction in phoneme level, while FastSpeech 2 ´ and 2s predict more fine-grained pitch contour in frame level. In addition, to improve the prosody in synthesized speech, FastSpeech 2 and 2s further introduce continuous wavelet transform to model the variations in pitch.
|
| 71 |
+
|
| 72 |
+
While some text-to-waveform models such as ClariNet (Ping et al., 2019) jointly train an autoregressive acoustic model and a non-autoregressive vocoder, FastSpeech 2s embraces the fully nonautoregressive architecture for fast inference. A concurrent work called EATS (Donahue et al., 2020)
|
| 73 |
+
|
| 74 |
+
also employs non-autoregressive architecture and adversarial training to convert text to waveform directly and mainly focuses on predicting the duration of each phoneme end-to-end using a differentiable monotonic interpolation scheme. Compared with EATS, FastSpeech 2s additionally provides more variation information to ease the one-to-many mapping problem in TTS.
|
| 75 |
+
|
| 76 |
+
Previous non-autoregressive vocoders (Oord et al., 2017; Prenger et al., 2019; Yamamoto et al., 2020; Kumar et al., 2019) are not complete text-to-speech systems, since they convert time aligned linguistic features to waveforms, and require a separate linguistic model to convert input text to linguistic features or an acoustic model to convert input text to acoustic features (e.g., melspectrograms). FastSpeech 2s is the first attempt to directly generate waveform from phoneme sequence fully in parallel, instead of linguistic features or mel-spectrograms.
|
| 77 |
+
|
| 78 |
+
# 3 EXPERIMENTS AND RESULTS
|
| 79 |
+
|
| 80 |
+
# 3.1 EXPERIMENTAL SETUP
|
| 81 |
+
|
| 82 |
+
Datasets We evaluate FastSpeech 2 and 2s on LJSpeech dataset (Ito, 2017). LJSpeech contains 13,100 English audio clips (about 24 hours) and corresponding text transcripts. We split the dataset into three sets: 12,228 samples for training, 349 samples (with document title LJ003) for validation and 523 samples (with document title LJ001 and LJ002) for testing. For subjective evaluation, we randomly choose 100 samples in test set. To alleviate the mispronunciation problem, we convert the text sequence into the phoneme sequence (Arik et al., 2017; Wang et al., 2017; Shen et al., 2018; Sun et al., 2019) with an open-source grapheme-to-phoneme tool5. We transform the raw waveform into mel-spectrograms following Shen et al. (2018) and set frame size and hop size to 1024 and 256 with respect to the sample rate 22050.
|
| 83 |
+
|
| 84 |
+
Model Configuration Our FastSpeech 2 consists of 4 feed-forward Transformer (FFT) blocks (Ren et al., 2019) in the encoder and the mel-spectrogram decoder. The output linear layer in the decoder converts the hidden states into 80-dimensional mel-spectrograms and our model is optimized with mean absolute error (MAE). We add more detailed configurations of FastSpeech 2 and 2s used in our experiments in Appendix A. The details of training and inference are added in Appendix B.
|
| 85 |
+
|
| 86 |
+
# 3.2 RESULTS
|
| 87 |
+
|
| 88 |
+
<table><tr><td>Method</td><td>CMOS</td></tr><tr><td>FastSpeech 2</td><td>一 0.000</td></tr><tr><td>FastSpeech Transformer TTS</td><td>-0.885 -0.235</td></tr></table>
|
| 89 |
+
|
| 90 |
+
Table 1: Audio quality comparison.
|
| 91 |
+
|
| 92 |
+
<table><tr><td>Method</td><td>MOS</td></tr><tr><td>GT</td><td>4.30± 0.07</td></tr><tr><td>GT (Mel + PWG)</td><td>3.92 ± 0.08</td></tr><tr><td>Tacotron 2 (Shen et al.,2018) (Mel + PWG)</td><td>3.70± 0.08</td></tr><tr><td>Transformer TTS (Li et al.,2019) (Mel + PWG)</td><td>3.72 ± 0.07</td></tr><tr><td>FastSpeech (Ren et al.,2019) (Mel + PWG)</td><td>3.68± 0.09</td></tr><tr><td>FastSpeech 2 (Mel + PWG)</td><td>3.83 ± 0.08</td></tr><tr><td>FastSpeech 2s</td><td>3.71 ± 0.09</td></tr></table>
|
| 93 |
+
|
| 94 |
+
(a) The MOS with $9 5 \%$ confidence intervals.
|
| 95 |
+
|
| 96 |
+
(b) CMOS comparison.
|
| 97 |
+
|
| 98 |
+
In this section, we first evaluate the audio quality, training and inference speedup of FastSpeech 2 and 2s. Then we conduct analyses and ablation studies of our method6.
|
| 99 |
+
|
| 100 |
+
# 3.2.1 MODEL PERFORMANCE
|
| 101 |
+
|
| 102 |
+
Audio Quality To evaluate the perceptual quality, we perform mean opinion score (MOS) (Chu & Peng, 2006) evaluation on the test set. Twenty native English speakers are asked to make quality judgments about the synthesized speech samples. The text content keeps consistent among different systems so that all testers only examine the audio quality without other interference factors. We compare the MOS of the audio samples generated by FastSpeech 2 and FastSpeech $2 s$ with other systems, including 1) $G T .$ , the ground-truth recordings; 2) GT $( M e l + P W G )$ ), where we first convert the ground-truth audio into mel-spectrograms, and then convert the mel-spectrograms back to audio using Parallel WaveGAN (Yamamoto et al., 2020) (PWG); 3) Tacotron 2 (Shen et al., 2018) $( M e l + P W G )$ ; 4) Transformer TTS (Li et al., 2019) $( M e l + P W G )$ ; 5) FastSpeech (Ren et al., 2019) $( M e l + P W G )$ . All the systems in 3), 4) and 5) use Parallel WaveGAN as the vocoder for a fair comparison. The results are shown in Table 1. It can be seen that FastSpeech 2 can surpass and FastSpeech 2s can match the voice quality of autoregressive models Transformer TTS and Tacotron 2. Importantly, FastSpeech 2 outperforms FastSpeech, which demonstrates the effectiveness of providing variance information such as pitch, energy and more accurate duration and directly taking ground-truth speech as training target without using teacher-student distillation pipeline.
|
| 103 |
+
|
| 104 |
+
Table 2: The comparison of training time and inference latency in waveform synthesis. The training time of FastSpeech includes teacher and student training. RTF denotes the real-time factor, that is the time (in seconds) required for the system to synthesize one second waveform. The training and inference latency tests are conducted on a server with 36 Intel Xeon CPUs, 256GB memory, 1 NVIDIA V100 GPU and batch size of 48 for training and 1 for inference. Besides, we do not include the time of GPU memory garbage collection and transferring input and output data between the CPU and the GPU. The speedup in waveform synthesis for FastSpeech is larger than that reported in Ren et al. (2019) since we use Parallel WaveGAN as the vocoder which is much faster than WaveGlow.
|
| 105 |
+
|
| 106 |
+
<table><tr><td>Method</td><td>Training Time (h)</td><td>Inference Speed (RTF)</td><td>Inference Speedup</td></tr><tr><td>Transformer TTS (Li et al.,2019)</td><td>38.64</td><td>9.32 × 10-1</td><td>/</td></tr><tr><td>FastSpeech (Ren et al.,2019)</td><td>53.12</td><td>1.92 × 10-2</td><td>48.5×</td></tr><tr><td>FastSpeech 2</td><td>17.02</td><td>1.95 × 10-2</td><td>47.8×</td></tr><tr><td>FastSpeech 2s</td><td>92.18</td><td>1.80 × 10-2</td><td>51.8×</td></tr></table>
|
| 107 |
+
|
| 108 |
+
Training and Inference Speedup FastSpeech 2 simplifies the training pipeline of FastSpeech by removing the teacher-student distillation process, and thus reduces the training time. We list the total training time of Transformer TTS (the autoregressive teacher model), FastSpeech (including the training of Transformer TTS teacher model and FastSpeech student model) and FastSpeech 2 in Table 2. It can be seen that FastSpeech 2 reduces the total training time by $3 . 1 2 \times$ compared with FastSpeech. Note that training time here only includes acoustic model training, without considering the vocoder training. Therefore, we do not compare the training time of FastSpeech 2s here. We then evaluate the inference latency of FastSpeech 2 and 2s compared with the autoregressive Transformer TTS model, which has the similar number of model parameters with FastSpeech 2 and 2s. We show the inference speedup for waveform generation in Table 2. It can be seen that compared with the Transformer TTS model, FastSpeech 2 and 2s speeds up the audio generation by $4 7 . 8 \times$ and $5 1 . 8 \times$ respectively in waveform synthesis. We can also see that FastSpeech 2s is faster than FastSpeech 2 due to fully end-to-end generation.
|
| 109 |
+
|
| 110 |
+
3.2.2 ANALYSES ON VARIANCE INFORMATION
|
| 111 |
+
|
| 112 |
+
<table><tr><td>Method</td><td>9</td><td>Y</td><td>K</td><td>DTW</td></tr><tr><td>GT</td><td>54.4</td><td>0.836</td><td>0.977</td><td>/</td></tr><tr><td>Tacotron 2</td><td>44.1</td><td>1.28</td><td>1.311</td><td>26.32</td></tr><tr><td>TransformerTTS</td><td>40.8</td><td>0.703</td><td>1.419</td><td>24.40</td></tr><tr><td>FastSpeech</td><td>50.8</td><td>0.724</td><td>-0.041</td><td>24.89</td></tr><tr><td>FastSpeech 2</td><td>54.1</td><td>0.881</td><td>0.996</td><td>24.39</td></tr><tr><td>FastSpeech 2 - CWT</td><td>42.3</td><td>0.771</td><td>1.115</td><td>25.13</td></tr><tr><td>FastSpeech 2s</td><td>53.9</td><td>0.872</td><td>0.998</td><td>24.37</td></tr></table>
|
| 113 |
+
|
| 114 |
+
Table 3: Standard deviation $( \sigma )$ , skewness $( \gamma )$ , kurtosis $( \kappa )$ and average DTW distances (DTW) of pitch in ground-truth and synthesized audio.
|
| 115 |
+
|
| 116 |
+
More Accurate Variance Information in Synthesized Speech In the paragraph, we measure if providing more variance information (e.g., pitch and energy) as input in FastSpeech 2 and 2s can indeed synthesize speech with more accurate pitch and energy.
|
| 117 |
+
|
| 118 |
+
For pitch, we compute the moments (standard deviation $( \sigma )$ , skewness $( \gamma )$ and kurtosis $( \kappa )$ ) (Andreeva et al., 2014; Niebuhr & Skarnitzl, 2019) and average dynamic time warping (DTW) Muller ¨ (2007) distance of the pitch distribution for the ground-truth speech and synthesized speech. The results are shown in Table 3. It can be seen that compared with FastSpeech, the moments $( \sigma , \gamma$ and $\kappa$ ) of generated audio of FastSpeech 2/2s are more close to the ground-truth audio and the average DTW distances to the ground-truth pitch are smaller than other methods, demonstrating that FastSpeech 2/2s can generate speech with more natural pitch contour (which can result in better prosody) than FastSpeech. We also conduct a case study on generated pitch contours in Appendix D.
|
| 119 |
+
|
| 120 |
+
<table><tr><td></td><td></td><td></td><td>Method|FastSpeech |FastSpeech 2|FastSpeech 2s</td></tr><tr><td>MAE</td><td>0.142</td><td>0.131</td><td>0.133</td></tr></table>
|
| 121 |
+
|
| 122 |
+
Table 4: The mean absolute error (MAE) of the energy in synthesized speech audio.
|
| 123 |
+
|
| 124 |
+
For energy, we compute the mean absolute error (MAE) between the frame-wise energy extracted from the generated waveform and the ground-truth speech. To ensure that the numbers of frames in the synthesized and ground-truth speech are the same, we use the ground-truth duration extracted by MFA in both FastSpeech and FastSpeech 2. The results are shown in Table 4. We can see that the MAE of the energy for FastSpeech 2/2s are smaller than that for FastSpeech, indicating that they both synthesize speech audio with more similar energy to the ground-truth audio.
|
| 125 |
+
|
| 126 |
+
More Accurate Duration for Model Training We then analyze the accuracy of the provided duration information to train the duration predictor and the effectiveness of more accurate duration for better voice quality based on FastSpeech. We manually align 50 audio generated by the teacher model and the corresponding text in phoneme level and get the ground-truth phoneme-level duration. We compute the average of absolute phoneme boundary differences (McAuliffe et al., 2017) using the duration from the teacher model of FastSpeech and from MFA as used in this paper respectively. The results are shown in Table 5a. We can see that MFA can generate more accurate duration than the teacher model of FastSpeech. Next, we replace the duration used in FastSpeech (from teacher model) with that extracted by MFA, and conduct the CMOS (Loizou, 2011) test to compare the voice quality between the two FastSpeech models trained with different durations7. The results are listed in Table 5b and it can be seen that more accurate duration information improves the voice quality of FastSpeech, which verifies the effectiveness of our improved duration from MFA.
|
| 127 |
+
|
| 128 |
+
<table><tr><td>Method</td><td>△(ms)</td></tr><tr><td>Duration from teacher model</td><td>19.68</td></tr><tr><td>Duration from MFA</td><td>12.47</td></tr></table>
|
| 129 |
+
|
| 130 |
+
<table><tr><td>Setting</td><td>CMOS</td></tr><tr><td>FastSpeech + Duration from teacher</td><td>0</td></tr><tr><td>FastSpeech + Duration from MFA</td><td>+0.195</td></tr></table>
|
| 131 |
+
|
| 132 |
+
(a) Alignment accuracy comparison.
|
| 133 |
+
|
| 134 |
+
(b) CMOS comparison.
|
| 135 |
+
|
| 136 |
+
Table 5: The comparison of the duration from teacher model and MFA. $\Delta$ means the average of absolute boundary differences.
|
| 137 |
+
|
| 138 |
+
# 3.2.3 ABLATION STUDY
|
| 139 |
+
|
| 140 |
+
Pitch and Energy Input We conduct ablation studies to demonstrate the effectiveness of several variance information of FastSpeech 2 and 2s, including pitch and energy8. We conduct CMOS evaluation for these ablation studies. The results are shown in Table 6. We find that removing the energy (Row 3 in both subtables) in FastSpeech 2 and 2s results in performance drop in terms of voice quality (-0.040 and -0.160 CMOS respectively), indicating that energy is effective for FastSpeech 2 in improving the voice quality, and more effective for FastSpeech 2s. We also find that removing the pitch (Row 4 in both subtables) in FastSpeech 2 and 2s results in -0.245 and -1.130 CMOS respectively, which demonstrates the effectiveness of pitch. When we remove both pitch and energy (the last row in both subtables), the voice quality further drops, indicating that both pitch and energy can help improve the performance of FastSpeech 2 and 2s.
|
| 141 |
+
|
| 142 |
+
Predicting Pitch in Frequency Domain To study the effectiveness of predicting pitch in frequency domain using continuous wavelet transform (CWT) as described in Section 2.3, we directly fit the pitch contour with mean square error like energy in FastSpeech 2 and 2s. We conduct CMOS evaluation and get CMOS drops of 0.185 and 0.201 for FastSpeech 2 and 2s respectively. We also compute the moments of pitch and average DTW distance to the ground-truth pitch as shown in row 6 (denoeted as FastSpeech $2 \cdot C W T$ ) in Table 3. The results demonstrate that CWT can help model the pitch better and improve the prosody of synthesized speech, and thus obtaining better CMOS score.
|
| 143 |
+
|
| 144 |
+
Mel-Spectrogram Decoder in FastSpeech 2s To verify the effectiveness of the mel-spectrogram decoder in FastSpeech 2s on text feature extraction as described in Section 2.4, we remove the mel-spectrogram decoder and conduct CMOS evaluation. It causes a 0.285 CMOS drop, which demonstrates that the mel-spectrogram decoder is essential to high-quality waveform generation.
|
| 145 |
+
|
| 146 |
+
Table 6: CMOS comparison in the ablation studies.
|
| 147 |
+
|
| 148 |
+
<table><tr><td>Setting</td><td>CMOS</td></tr><tr><td>FastSpeech 2</td><td>0</td></tr><tr><td>FastSpeech 2 - energy</td><td>-0.040</td></tr><tr><td>FastSpeech2-pitch</td><td>-0.245</td></tr><tr><td>FastSpeech 2-pitch -energy</td><td>-0.370</td></tr></table>
|
| 149 |
+
|
| 150 |
+
<table><tr><td>Setting</td><td>CMOS</td></tr><tr><td>FastSpeech 2s</td><td>0</td></tr><tr><td>FastSpeech 2s - energy</td><td>-0.160</td></tr><tr><td>FastSpeech 2s-pitch</td><td>-1.130</td></tr><tr><td>FastSpeech 2s-pitch -energy</td><td>-1.355</td></tr></table>
|
| 151 |
+
|
| 152 |
+
(b) CMOS comparison for FastSpeech 2s.
|
| 153 |
+
|
| 154 |
+
(a) CMOS comparison for FastSpeech 2.
|
| 155 |
+
|
| 156 |
+
# 4 CONCLUSION
|
| 157 |
+
|
| 158 |
+
In this work, we proposed FastSpeech 2, a fast and high-quality end-to-end TTS system, to address the issues in FastSpeech and ease the one-to-many mapping problem: 1) we directly train the model with ground-truth mel-spectrograms to simplify the training pipeline and also avoid information loss compared with FastSpeech; and 2) we improve the duration accuracy and introduce more variance information including pitch and energy to ease the one-to-many mapping problem, and improve pitch prediction by introducing continuous wavelet transform. Moreover, based on FastSpeech 2, we further developed FastSpeech 2s, a non-autoregressive text-to-waveform generation model, which enjoys the benefit of fully end-to-end inference and achieves faster inference speed. Our experimental results show that FastSpeech 2 and 2s outperform FastSpeech, and FastSpeech 2 can even surpass autoregressive models in terms of voice quality, with much simpler training pipeline while inheriting the advantages of fast, robust and controllable speech synthesis of FastSpeech.
|
| 159 |
+
|
| 160 |
+
High quality, fast and fully end-to-end training without any external libraries is definitely the ultimate goal of neural TTS and also a very challenging problem. To ensure high quality of FastSpeech 2, we use an external high-performance alignment tool and pitch extraction tools, which may seem a little complicated, but are very helpful for high-quality and fast speech synthesis. We believe there will be more simpler solutions to achieve this goal in the future and we will certainly work on fully end-to-end TTS without external alignment models and tools. We will also consider more variance information (Zhang et al., 2021) to further improve the voice quality and speed up the inference with more light-weight model (Luo et al., 2021).
|
| 161 |
+
|
| 162 |
+
# ACKNOWLEDGMENTS
|
| 163 |
+
|
| 164 |
+
This work was supported in part by the National Key R&D Program of China (Grant No.2018AAA0100603), National Natural Science Foundation of China (Grant No.62072397), Zhejiang Natural Science Foundation (Grant No.LR19F020006), National Natural Science Foundation of China (Grant No.61836002) and X Lab, the Second Academy of CASIC, Beijing, 100854, China.
|
| 165 |
+
|
| 166 |
+
# REFERENCES
|
| 167 |
+
|
| 168 |
+
Bistra Andreeva, Grazyna Demenko, Bernd M ˙ obius, Frank Zimmerer, Jeanin J ¨ ugler, and Magdalena ¨ Oleskowicz-Popiel. Differences of pitch profiles in germanic and slavic languages. In Fifteenth Annual Conference of the International Speech Communication Association, 2014.
|
| 169 |
+
|
| 170 |
+
Sercan O Arik, Mike Chrzanowski, Adam Coates, Gregory Diamos, Andrew Gibiansky, Yongguo Kang, Xian Li, John Miller, Andrew Ng, Jonathan Raiman, et al. Deep voice: Real-time neural text-to-speech. arXiv preprint arXiv:1702.07825, 2017.
|
| 171 |
+
|
| 172 |
+
Mingjian Chen, Xu Tan, Yi Ren, Jin Xu, Hao Sun, Sheng Zhao, and Tao Qin. Multispeech: Multispeaker text to speech with transformer. In INTERSPEECH, pp. 4024–4028, 2020.
|
| 173 |
+
|
| 174 |
+
Mingjian Chen, Xu Tan, Bohan Li, Yanqing Liu, Tao Qin, sheng zhao, and Tie-Yan Liu. Adaspeech: Adaptive text to speech for custom voice. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ Drynvt7gg4L.
|
| 175 |
+
|
| 176 |
+
Min Chu and Hu Peng. Objective measure for estimating mean opinion score of synthesized speech, April 4 2006. US Patent 7,024,362.
|
| 177 |
+
|
| 178 |
+
Jeff Donahue, Sander Dieleman, Mikołaj Binkowski, Erich Elsen, and Karen Simonyan. End-to-end ´ adversarial text-to-speech. arXiv preprint arXiv:2006.03575, 2020.
|
| 179 |
+
|
| 180 |
+
Jesse Engel, Lamtharn Hantrakul, Chenjie Gu, and Adam Roberts. Ddsp: Differentiable digital signal processing. arXiv preprint arXiv:2001.04643, 2020.
|
| 181 |
+
|
| 182 |
+
Yuchen Fan, Yao Qian, Feng-Long Xie, and Frank K Soong. Tts synthesis with bidirectional lstm based recurrent neural networks. In Fifteenth Annual Conference of the International Speech Communication Association, 2014.
|
| 183 |
+
|
| 184 |
+
Michael Gadermayr, Maximilian Tschuchnig, Dorit Merhof, Nils Kramer, Daniel Truhn, and ¨ Burkhard Gess. An asymetric cycle-consistency loss for dealing with many-to-one mappings in image translation: A study on thigh mr scans. arXiv preprint arXiv:2004.11001, 2020.
|
| 185 |
+
|
| 186 |
+
Andrew Gibiansky, Sercan Arik, Gregory Diamos, John Miller, Kainan Peng, Wei Ping, Jonathan Raiman, and Yanqi Zhou. Deep voice 2: Multi-speaker neural text-to-speech. In Advances in neural information processing systems, pp. 2962–2970, 2017.
|
| 187 |
+
|
| 188 |
+
Alexander Grossmann and Jean Morlet. Decomposition of hardy functions into square integrable wavelets of constant shape. SIAM journal on mathematical analysis, 15(4):723–736, 1984.
|
| 189 |
+
|
| 190 |
+
Keikichi Hirose and Jianhua Tao. Speech Prosody in Speech Synthesis: Modeling and generation of prosody for high quality and flexible speech synthesis. Springer, 2015.
|
| 191 |
+
|
| 192 |
+
Keith Ito. The lj speech dataset. https://keithito.com/LJ-Speech-Dataset/, 2017.
|
| 193 |
+
|
| 194 |
+
Chrisina Jayne, Andreas Lanitis, and Chris Christodoulou. One-to-many neural network mapping techniques for face image synthesis. Expert Systems with Applications, 39(10):9778–9787, 2012.
|
| 195 |
+
|
| 196 |
+
Jaehyeon Kim, Sungwon Kim, Jungil Kong, and Sungroh Yoon. Glow-tts: A generative flow for text-to-speech via monotonic alignment search. arXiv preprint arXiv:2005.11129, 2020.
|
| 197 |
+
|
| 198 |
+
Sungwon Kim, Sang-gil Lee, Jongyoon Song, Jaehyeon Kim, and Sungroh Yoon. Flowavenet: A generative flow for raw audio. arXiv preprint arXiv:1811.02155, 2018.
|
| 199 |
+
|
| 200 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 201 |
+
|
| 202 |
+
Kundan Kumar, Rithesh Kumar, Thibault de Boissiere, Lucas Gestin, Wei Zhen Teoh, Jose Sotelo, Alexandre de Brebisson, Yoshua Bengio, and Aaron C Courville. Melgan: Generative adversarial´ networks for conditional waveform synthesis. In Advances in Neural Information Processing Systems, pp. 14881–14892, 2019.
|
| 203 |
+
|
| 204 |
+
Adrian Łancucki. Fastpitch: Parallel text-to-speech with pitch prediction. ´ arXiv preprint arXiv:2006.06873, 2020.
|
| 205 |
+
|
| 206 |
+
Naihan Li, Shujie Liu, Yanqing Liu, Sheng Zhao, and Ming Liu. Neural speech synthesis with transformer network. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 6706–6713, 2019.
|
| 207 |
+
|
| 208 |
+
Dan Lim, Won Jang, Hyeyeong Park, Bongwan Kim, Jesam Yoon, et al. Jdi-t: Jointly trained duration informed transformer for text-to-speech without explicit alignment. arXiv preprint arXiv:2005.07799, 2020.
|
| 209 |
+
|
| 210 |
+
Philipos C Loizou. Speech quality assessment. In Multimedia analysis, processing and communications, pp. 623–654. Springer, 2011.
|
| 211 |
+
|
| 212 |
+
Renqian Luo, Xu Tan, Rui Wang, Tao Qin, Jinzhu Li, Sheng Zhao, Enhong Chen, and Tie-Yan Liu. Lightspeech: Lightweight and fast text to speech with neural architecture search. In 2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 2021.
|
| 213 |
+
|
| 214 |
+
Michael McAuliffe, Michaela Socolof, Sarah Mihuc, Michael Wagner, and Morgan Sonderegger. Montreal forced aligner: Trainable text-speech alignment using kaldi. In Interspeech, pp. 498– 502, 2017.
|
| 215 |
+
|
| 216 |
+
Chenfeng Miao, Shuang Liang, Minchuan Chen, Jun Ma, Shaojun Wang, and Jing Xiao. Flowtts: A non-autoregressive network for text to speech based on flow. In ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 7209–7213. IEEE, 2020.
|
| 217 |
+
|
| 218 |
+
Huaiping Ming, Dongyan Huang, Lei Xie, Jie Wu, Minghui Dong, and Haizhou Li. Deep bidirectional lstm modeling of timbre and prosody for emotional voice conversion. 2016.
|
| 219 |
+
|
| 220 |
+
Meinard Muller. Dynamic time warping. ¨ Information retrieval for music and motion, pp. 69–84, 2007.
|
| 221 |
+
|
| 222 |
+
Oliver Niebuhr and Radek Skarnitzl. Measuring a speaker’s acoustic correlates of pitch–but which? a contrastive analysis based on perceived speaker charisma. In Proceedings of 19th International Congress of Phonetic Sciences, 2019.
|
| 223 |
+
|
| 224 |
+
Aaron van den Oord, Yazhe Li, Igor Babuschkin, Karen Simonyan, Oriol Vinyals, Koray Kavukcuoglu, George van den Driessche, Edward Lockhart, Luis C Cobo, Florian Stimberg, et al. Parallel wavenet: Fast high-fidelity speech synthesis. arXiv preprint arXiv:1711.10433, 2017.
|
| 225 |
+
|
| 226 |
+
Kainan Peng, Wei Ping, Zhao Song, and Kexin Zhao. Parallel neural text-to-speech. arXiv preprint arXiv:1905.08459, 2019.
|
| 227 |
+
|
| 228 |
+
Wei Ping, Kainan Peng, Andrew Gibiansky, Sercan O. Arik, Ajay Kannan, Sharan Narang, Jonathan Raiman, and John Miller. Deep voice 3: 2000-speaker neural text-to-speech. In International Conference on Learning Representations, 2018.
|
| 229 |
+
|
| 230 |
+
Wei Ping, Kainan Peng, and Jitong Chen. Clarinet: Parallel wave generation in end-to-end text-tospeech. In International Conference on Learning Representations, 2019.
|
| 231 |
+
|
| 232 |
+
Ryan Prenger, Rafael Valle, and Bryan Catanzaro. Waveglow: A flow-based generative network for speech synthesis. In ICASSP 2019-2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 3617–3621. IEEE, 2019.
|
| 233 |
+
|
| 234 |
+
Yi Ren, Yangjun Ruan, Xu Tan, Tao Qin, Sheng Zhao, Zhou Zhao, and Tie-Yan Liu. Fastspeech: Fast, robust and controllable text to speech. In Advances in Neural Information Processing Systems, pp. 3165–3174, 2019.
|
| 235 |
+
|
| 236 |
+
Harold Ryan. Ricker, ormsby; klander, bntterwo-a choice of wavelets, 1994.
|
| 237 |
+
|
| 238 |
+
Jonathan Shen, Ruoming Pang, Ron J Weiss, Mike Schuster, Navdeep Jaitly, Zongheng Yang, Zhifeng Chen, Yu Zhang, Yuxuan Wang, Rj Skerrv-Ryan, et al. Natural tts synthesis by conditioning wavenet on mel spectrogram predictions. In 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 4779–4783. IEEE, 2018.
|
| 239 |
+
|
| 240 |
+
Hao Sun, Xu Tan, Jun-Wei Gan, Hongzhi Liu, Sheng Zhao, Tao Qin, and Tie-Yan Liu. Token-level ensemble distillation for grapheme-to-phoneme conversion. In INTERSPEECH, 2019.
|
| 241 |
+
|
| 242 |
+
Antti Santeri Suni, Daniel Aalto, Tuomo Raitio, Paavo Alku, Martti Vainio, et al. Wavelets for intonation modeling in hmm speech synthesis. In 8th ISCA Workshop on Speech Synthesis, Proceedings, Barcelona, August 31-September 2, 2013. ISCA, 2013.
|
| 243 |
+
|
| 244 |
+
Franz B Tuteur. Wavelet transformations in signal detection. IFAC Proceedings Volumes, 21(9): 1061–1065, 1988.
|
| 245 |
+
|
| 246 |
+
Aaron Van Den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, ¨ Nal Kalchbrenner, Andrew W Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. SSW, 125, 2016.
|
| 247 |
+
|
| 248 |
+
Aaron Van den Oord, Nal Kalchbrenner, Lasse Espeholt, Oriol Vinyals, Alex Graves, et al. Conditional image generation with pixelcnn decoders. In Advances in neural information processing systems, pp. 4790–4798, 2016.
|
| 249 |
+
|
| 250 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pp. 5998–6008, 2017.
|
| 251 |
+
|
| 252 |
+
Yuxuan Wang, RJ Skerry-Ryan, Daisy Stanton, Yonghui Wu, Ron J Weiss, Navdeep Jaitly, Zongheng Yang, Ying Xiao, Zhifeng Chen, Samy Bengio, et al. Tacotron: Towards end-to-end speech synthesis. arXiv preprint arXiv:1703.10135, 2017.
|
| 253 |
+
|
| 254 |
+
Ryuichi Yamamoto, Eunwoo Song, and Jae-Min Kim. Parallel wavegan: A fast waveform generation model based on generative adversarial networks with multi-resolution spectrogram. In ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 6199–6203. IEEE, 2020.
|
| 255 |
+
|
| 256 |
+
Heiga Ze, Andrew Senior, and Mike Schuster. Statistical parametric speech synthesis using deep neural networks. In 2013 ieee international conference on acoustics, speech and signal processing, pp. 7962–7966. IEEE, 2013.
|
| 257 |
+
|
| 258 |
+
Zhen Zeng, Jianzong Wang, Ning Cheng, Tian Xia, and Jing Xiao. Aligntts: Efficient feed-forward text-to-speech system without explicit alignment. In ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 6714–6718. IEEE, 2020.
|
| 259 |
+
|
| 260 |
+
Chen Zhang, Yi Ren, Xu Tan, Jinglin Liu, Kejun Zhang, Tao Qin, Sheng Zhao, and Tie-Yan Liu. Denoispeech: Denoising text to speech with frame-level noise modeling. In 2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 2021.
|
| 261 |
+
|
| 262 |
+
Jun-Yan Zhu, Richard Zhang, Deepak Pathak, Trevor Darrell, Alexei A Efros, Oliver Wang, and Eli Shechtman. Toward multimodal image-to-image translation. In Advances in neural information processing systems, pp. 465–476, 2017.
|
| 263 |
+
|
| 264 |
+
# A MODEL CONFIGURATION
|
| 265 |
+
|
| 266 |
+
Our FastSpeech 2 consists of 4 feed-forward Transformer (FFT) blocks (Ren et al., 2019) in the encoder and the mel-spectrogram decoder. In each FFT block, the dimension of phoneme embeddings and the hidden size of the self-attention are set to 256. The number of attention heads is set to 2 and the kernel sizes of the 1D-convolution in the 2-layer convolutional network after the self-attention layer are set to 9 and 1, with input/output size of 256/1024 for the first layer and 1024/256 in the second layer. The size of the phoneme vocabulary is 76, including punctuations. In the variance predictor, the kernel sizes of the 1D-convolution are set to 3, with input/output sizes of 256/256 for both layers and the dropout rate is set to 0.5. Our waveform decoder consists of 1-layer transposed 1D-convolution with filter size 64 and 30 dilated residual convolution blocks, whose skip channel size and kernel size of 1D-convolution are set to 64 and 3. The configurations of the discriminator in FastSpeech 2s are the same as Parallel WaveGAN (Yamamoto et al., 2020). We list hyperparameters and configurations of all models used in our experiments in Table 7.
|
| 267 |
+
|
| 268 |
+
Table 7: Hyperparameters of Transformer TTS, FastSpeech and FastSpeech 2/2s.
|
| 269 |
+
|
| 270 |
+
<table><tr><td rowspan=1 colspan=1>Hyperparameter</td><td rowspan=1 colspan=1>TransformerTTS</td><td rowspan=1 colspan=1>FastSpeech/FastSpeech 2/2s</td></tr><tr><td rowspan=1 colspan=1>Phoneme Embedding Dimension</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td></tr><tr><td rowspan=1 colspan=1>Pre-netLayers</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>Pre-net Hidden</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>/</td></tr><tr><td rowspan=1 colspan=1>EncoderLayers</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>4</td></tr><tr><td rowspan=1 colspan=1>EncoderHidden</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td></tr><tr><td rowspan=1 colspan=1>Encoder Conv1D Kernel</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>9</td></tr><tr><td rowspan=1 colspan=1>Encoder Conv1D Filter Size</td><td rowspan=1 colspan=1>1024</td><td rowspan=1 colspan=1>1024</td></tr><tr><td rowspan=1 colspan=1>Encoder Attention Heads</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>2</td></tr><tr><td rowspan=1 colspan=1> Mel-Spectrogram Decoder Layers</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>4</td></tr><tr><td rowspan=1 colspan=1>Mel-Spectrogram Decoder Hidden</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td></tr><tr><td rowspan=1 colspan=1>Mel-Spectrogram Decoder Conv1D Kernel</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>9</td></tr><tr><td rowspan=1 colspan=1>Mel-Spectrogram Decoder Conv1D Filter Size</td><td rowspan=1 colspan=1>1024</td><td rowspan=1 colspan=1>1024</td></tr><tr><td rowspan=1 colspan=1>Mel-Spectrogram Decoder Attention Headers</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>2</td></tr><tr><td rowspan=1 colspan=1>Encoder/Decoder Dropout</td><td rowspan=1 colspan=1>0.1</td><td rowspan=1 colspan=1>0.1</td></tr><tr><td rowspan=1 colspan=1>Variance Predictor Conv1DKernel</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>3</td></tr><tr><td rowspan=1 colspan=1>Variance Predictor Conv1DFilter Size</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>256</td></tr><tr><td rowspan=1 colspan=1>Variance Predictor Dropout</td><td rowspan=1 colspan=1>/</td><td rowspan=1 colspan=1>0.5</td></tr><tr><td rowspan=1 colspan=1>Waveform Decoder ConvolutionBlocks</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>30</td></tr><tr><td rowspan=1 colspan=1>Waveform Decoder Dilated Conv1D Kernel size</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>3</td></tr><tr><td rowspan=1 colspan=1>Waveform Decoder Transposed Conv1D Filter Size</td><td rowspan=1 colspan=1>/</td><td rowspan=1 colspan=1>64</td></tr><tr><td rowspan=1 colspan=1>WaveformDecoderSkip Channlel Size</td><td rowspan=1 colspan=1>/</td><td rowspan=1 colspan=1>64</td></tr><tr><td rowspan=1 colspan=1>Batch Size</td><td rowspan=1 colspan=1>48</td><td rowspan=1 colspan=1>48/48/12</td></tr><tr><td rowspan=1 colspan=1>Total Numberof Parameters</td><td rowspan=1 colspan=1>24M</td><td rowspan=1 colspan=1>23M/27M/28M</td></tr></table>
|
| 271 |
+
|
| 272 |
+
# B TRAINING AND INFERENCE
|
| 273 |
+
|
| 274 |
+
We train FastSpeech 2 on 1 NVIDIA V100 GPU, with batchsize of 48 sentences. We use the Adam optimizer (Kingma & Ba, 2014) with $\beta _ { 1 } = 0 . 9$ , $\beta _ { 2 } = 0 . 9 8$ , $\varepsilon = 1 0 ^ { - 9 }$ and follow the same learning rate schedule in Vaswani et al. (2017). It takes $1 6 0 \mathrm { k }$ steps for training until convergence. In the inference process, the output mel-spectrograms of our FastSpeech 2 are transformed into audio samples using pre-trained Parallel WaveGAN (Yamamoto et al., $2 0 2 0 ) ^ { 9 }$ . For FastSpeech 2s, we train the model on 2 NVIDIA V100 GPUs, with batchsize of 6 sentences on each GPU. The waveform decoder takes the sliced hidden states corresponding to 20,480 waveform sample clips as input. The optimizer and learning rate schedule for FastSpeech 2s are the same as FastSpeech 2. The details of the adversarial training follow Parallel WaveGAN (Yamamoto et al., 2020). It takes $6 0 0 \mathrm { k }$ steps for training until convergence for FastSpeech 2s.
|
| 275 |
+
|
| 276 |
+
# C MODELING PITCH WITH CONTINUOUS WAVELET TRANSFORM
|
| 277 |
+
|
| 278 |
+
# C.1 CONTINUOUS WAVELET TRANSFORM
|
| 279 |
+
|
| 280 |
+
Given a continous pitch contour function $F _ { 0 }$ , we can convert it to pitch spectrogram $W ( \tau , t )$ using continuous wavelet transform (Tuteur, 1988; Grossmann $\&$ Morlet, 1984):
|
| 281 |
+
|
| 282 |
+
$$
|
| 283 |
+
W ( \tau , t ) = \tau ^ { - 1 / 2 } \int _ { - \infty } ^ { + \infty } F _ { 0 } ( x ) \psi ( \frac { x - t } { \tau } ) d x
|
| 284 |
+
$$
|
| 285 |
+
|
| 286 |
+
where $\psi$ is the Mexican hat mother wavelet (Ryan, 1994), $F _ { 0 } ( x )$ is the pitch value in position $x$ , $\tau$ and $t$ are scale and position of wavelet respectively. The original pitch contour $F _ { 0 }$ can be recovered from the wavelet representation $W ( \tau , t )$ by inverse continuous wavelet transform (iCWT) using the following formula:
|
| 287 |
+
|
| 288 |
+
$$
|
| 289 |
+
F _ { 0 } ( t ) = \int _ { - \infty } ^ { + \infty } \int _ { 0 } ^ { + \infty } W \left( \tau , t \right) \tau ^ { - 5 / 2 } \psi \left( \frac { x - t } { \tau } \right) d x d \tau
|
| 290 |
+
$$
|
| 291 |
+
|
| 292 |
+
Suppose that we decompose the pitch contour $F _ { 0 }$ into 10 scales (Ming et al., 2016), $F _ { 0 }$ can be represented by 10 separate components given by:
|
| 293 |
+
|
| 294 |
+
$$
|
| 295 |
+
W _ { i } ( t ) = { W ( 2 ^ { i + 1 } \tau _ { 0 } , t ) ( i + 2 . 5 ) ^ { - 5 / 2 } }
|
| 296 |
+
$$
|
| 297 |
+
|
| 298 |
+
where $i = 1 , . . . , 1 0$ and $\tau _ { 0 } = 5 m s$ , which is originally proposed in Suni et al. (2013). Given 10 wavelet components ${ \hat { W } } _ { i } ( t )$ , we can recompose pitch contour $\hat { F } _ { 0 }$ by the following formula (Ming et al., 2016):
|
| 299 |
+
|
| 300 |
+
$$
|
| 301 |
+
\hat { F _ { 0 } } ( t ) = \sum _ { i = 1 } ^ { 1 0 } \hat { W _ { i } } ( t ) ( i + 2 . 5 ) ^ { - 5 / 2 }
|
| 302 |
+
$$
|
| 303 |
+
|
| 304 |
+
# C.2 IMPLEMENTATION DETAILS
|
| 305 |
+
|
| 306 |
+
First we extract the pitch contour using PyWorldVocoder10. Since CWT is very sensitive to discontinuous signals, we preprocess the pitch contour as follows: 1) we use linear interpolation to fill the unvoiced frame in pitch contour; 2) we transform the resulting pitch contour to logarithmic scale; 3) we normalize it to zero mean and unit variance for each utterance, and we have to save the original utterance-level mean and variance for pitch contour reconstruction; and 4) we convert the normalized pitch contour to pitch spectrogram using continuous wavelet transform following Equation 1.
|
| 307 |
+
|
| 308 |
+
As shown in Figure 2, pitch predictor consists of a 2-layer 1Dconvolutional network with ReLU activation, each followed by the layer normalization and the dropout layer, and an extra linear layer to project the hidden states into the pitch spectrogram. To predict the mean/variance of recovered pitch contour for each utterance, we average the hidden states output by the 1D-convolutional network on the time dimension to a global vector and project it to mean and variance using a linear layer.
|
| 309 |
+
|
| 310 |
+
We train the pitch predictor with ground-truth pitch spectrogram and the mean/variance of pitch contour and optimize it with mean square error. During inference, we predict the pitch spectrogram and the mean/variance of recovered pitch contour using pitch predictor, inverse the pitch spectrogram to pitch contour with inverse continuous wavelet transform (iCWT) following Equation 2, and finally denormalize it with the predicted mean/variance.
|
| 311 |
+
|
| 312 |
+

|
| 313 |
+
Figure 2: Details in pitch predictor. CWT and iCWT denote continuous wavelet transform and inverse continuous wavelet transform respectively.
|
| 314 |
+
|
| 315 |
+
# D CASE STUDY ON PITCH CONTOUR
|
| 316 |
+
|
| 317 |
+
In this section, we conduct the case study on pitch contours of the audios generated by different methods. We randomly choose 1 utterance from the test set and plot the pitch countor of groundtruth audio samples and that generated by FastSpeech, FastSpeech 2, FastSpeech $2 s$ in Figure 3. We can see that FastSpeech 2 and 2s can capture the variations in pitch better than FastSpeech thanks to taking pitch information as input.
|
| 318 |
+
|
| 319 |
+

|
| 320 |
+
Figure 3: Pitch contours extracted from generated and ground-truth audio samples. We only plot the voiced part of pitch contour. The input text is “The worst, which perhaps was the English, was a terrible falling-off from the work of the earlier presses”.
|
| 321 |
+
|
| 322 |
+
# E VARIANCE CONTROL
|
| 323 |
+
|
| 324 |
+
FastSpeech 2 and 2s introduce several variance information to ease the one-to-many mapping problem in TTS. As a byproduct, they also make the synthesized speech more controllable and can be used to manually control pitch, duration and energy (volume) of synthesized audio. As a demonstration, we manipulate pitch input to control the pitch of synthesized speech in this subsubsection. We show the mel-spectrograms before and after the pitch manipulation in Figure 4. From the samples, we can see that FastSpeech 2 generates high-quality mel-spectrograms after adjusting the $\hat { F } _ { 0 }$ from 0.75 to 1.50 times. Such manipulation can also be applied to FastSpeech 2s and the results are put in the supplementary materials. We also put the audio samples controlled by other variance information in supplementary materials.
|
| 325 |
+
|
| 326 |
+

|
| 327 |
+
Figure 4: The mel-spectrograms of the voice with different $\hat { F } _ { 0 }$ . $F _ { 0 }$ is the fundamental frequency of original audio. The red curves denote $\hat { F } _ { 0 }$ contours. The input text is “They discarded this for a more completely Roman and far less beautiful letter.”
|
parse/train/piLPYqxtWuA/piLPYqxtWuA_content_list.json
ADDED
|
@@ -0,0 +1,1779 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "FASTSPEECH 2: FAST AND HIGH-QUALITY END-TOEND TEXT TO SPEECH ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Yi Ren1∗, Chenxu $\\mathbf { H } \\mathbf { u } ^ { 1 }$ ∗, Xu Tan2, Tao $\\mathbf { Q } \\mathbf { i n } ^ { 2 }$ , Sheng Zhao3, Zhou Zhao1†, Tie-Yan Liu2 ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
181,
|
| 19 |
+
167,
|
| 20 |
+
812,
|
| 21 |
+
185
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1Zhejiang University {rayeren,chenxuhu,zhaozhou}@zju.edu.cn ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
184,
|
| 30 |
+
198,
|
| 31 |
+
553,
|
| 32 |
+
227
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "2Microsoft Research Asia {xuta,taoqin,tyliu}@microsoft.com ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
184,
|
| 41 |
+
239,
|
| 42 |
+
506,
|
| 43 |
+
268
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "3Microsoft Azure Speech Sheng.Zhao@microsoft.com ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
184,
|
| 52 |
+
282,
|
| 53 |
+
423,
|
| 54 |
+
310
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "ABSTRACT ",
|
| 61 |
+
"text_level": 1,
|
| 62 |
+
"bbox": [
|
| 63 |
+
454,
|
| 64 |
+
348,
|
| 65 |
+
544,
|
| 66 |
+
363
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "Non-autoregressive text to speech (TTS) models such as FastSpeech (Ren et al., 2019) can synthesize speech significantly faster than previous autoregressive models with comparable quality. The training of FastSpeech model relies on an autoregressive teacher model for duration prediction (to provide more information as input) and knowledge distillation (to simplify the data distribution in output), which can ease the one-to-many mapping problem (i.e., multiple speech variations correspond to the same text) in TTS. However, FastSpeech has several disadvantages: 1) the teacher-student distillation pipeline is complicated and time-consuming, 2) the duration extracted from the teacher model is not accurate enough, and the target mel-spectrograms distilled from teacher model suffer from information loss due to data simplification, both of which limit the voice quality. In this paper, we propose FastSpeech 2, which addresses the issues in FastSpeech and better solves the one-to-many mapping problem in TTS by 1) directly training the model with ground-truth target instead of the simplified output from teacher, and 2) introducing more variation information of speech (e.g., pitch, energy and more accurate duration) as conditional inputs. Specifically, we extract duration, pitch and energy from speech waveform and directly take them as conditional inputs in training and use predicted values in inference. We further design FastSpeech 2s, which is the first attempt to directly generate speech waveform from text in parallel, enjoying the benefit of fully end-to-end inference. Experimental results show that 1) FastSpeech 2 achieves a 3x training speed-up over FastSpeech, and FastSpeech 2s enjoys even faster inference speed; 2) FastSpeech 2 and 2s outperform FastSpeech in voice quality, and FastSpeech 2 can even surpass autoregressive models. Audio samples are available at https://speechresearch.github.io/fastspeech2/. ",
|
| 73 |
+
"bbox": [
|
| 74 |
+
232,
|
| 75 |
+
380,
|
| 76 |
+
764,
|
| 77 |
+
727
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "1 INTRODUCTION ",
|
| 84 |
+
"text_level": 1,
|
| 85 |
+
"bbox": [
|
| 86 |
+
176,
|
| 87 |
+
755,
|
| 88 |
+
336,
|
| 89 |
+
771
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Neural network based text to speech (TTS) has made rapid progress and attracted a lot of attention in the machine learning and speech community in recent years (Wang et al., 2017; Shen et al., 2018; Ming et al., 2016; Arik et al., 2017; Ping et al., 2018; Ren et al., 2019; Li et al., 2019). Previous neural TTS models (Wang et al., 2017; Shen et al., 2018; Ping et al., 2018; Li et al., 2019) first generate mel-spectrograms autoregressively from text and then synthesize speech from the generated mel-spectrograms using a separately trained vocoder (Van Den Oord et al., 2016; Oord et al., 2017; Prenger et al., 2019; Kim et al., 2018; Yamamoto et al., 2020; Kumar et al., ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
787,
|
| 99 |
+
825,
|
| 100 |
+
886
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "2019). They usually suffer from slow inference speed and robustness (word skipping and repeating) issues (Ren et al., 2019; Chen et al., 2020). In recent years, non-autoregressive TTS models (Ren et al., 2019; Łancucki, 2020; Kim et al., 2020; Lim et al., 2020; Miao et al., 2020; Peng et al., 2019) ´ are designed to address these issues, which generate mel-spectrograms with extremely fast speed and avoid robustness issues, while achieving comparable voice quality with previous autoregressive models. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
103,
|
| 110 |
+
825,
|
| 111 |
+
186
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Among those non-autoregressive TTS methods, FastSpeech (Ren et al., 2019) is one of the most successful models. FastSpeech designs two ways to alleviate the one-to-many mapping problem: 1) Reducing data variance in the target side by using the generated mel-spectrogram from an autoregressive teacher model as the training target (i.e., knowledge distillation). 2) Introducing the duration information (extracted from the attention map of the teacher model) to expand the text sequence to match the length of the mel-spectrogram sequence. While these designs in FastSpeech ease the learning of the one-to-many mapping problem (see Section 2.1) in TTS, they also bring several disadvantages: 1) The two-stage teacher-student training pipeline makes the training process complicated. 2) The target mel-spectrograms generated from the teacher model have some information loss1 compared with the ground-truth ones, since the quality of the audio synthesized from the generated mel-spectrograms is usually worse than that from the ground-truth ones. 3) The duration extracted from the attention map of teacher model is not accurate enough. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
194,
|
| 121 |
+
825,
|
| 122 |
+
361
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "In this work, we propose FastSpeech 2 to address the issues in FastSpeech and better handle the one-to-many mapping problem in non-autoregressive TTS. To simplify the training pipeline and avoid the information loss due to data simplification in teacher-student distillation, we directly train the FastSpeech 2 model with ground-truth target instead of the simplified output from a teacher. To reduce the information gap (input does not contain all the information to predict the target) between the input (text sequence) and target output (mel-spectrograms) and alleviate the one-to-many mapping problem for non-autoregressive TTS model training, we introduce some variation information of speech including pitch, energy and more accurate duration into FastSpeech: in training, we extract duration, pitch and energy from the target speech waveform and directly take them as conditional inputs; in inference, we use values predicted by the predictors that are jointly trained with the FastSpeech 2 model. Considering the pitch is important for the prosody of speech and is also difficult to predict due to the large fluctuations along time, we convert the pitch contour into pitch spectrogram using continuous wavelet transform (Tuteur, 1988; Grossmann & Morlet, 1984) and predict the pitch in the frequency domain, which can improve the accuracy of predicted pitch. To further simplify the speech synthesis pipeline, we introduce FastSpeech 2s, which does not use mel-spectrograms as intermediate output and directly generates speech waveform from text in inference, enjoying low latency in inference. Experiments on the LJSpeech (Ito, 2017) dataset show that 1) FastSpeech 2 enjoys much simpler training pipeline (3x training time reduction) than FastSpeech while inherits its advantages of fast, robust and controllable (even more controllable in pitch and energy) speech synthesis, and FastSpeech 2s enjoys even faster inference speed; 2) FastSpeech 2 and 2s outperform FastSpeech in voice quality, and FastSpeech 2 can even surpass autoregressive models. We attach audio samples generated by FastSpeech 2 and 2s at https://speechresearch.github.io/fastspeech2/. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
173,
|
| 131 |
+
367,
|
| 132 |
+
825,
|
| 133 |
+
686
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "The main contributions of this work are summarized as follows: ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
694,
|
| 143 |
+
593,
|
| 144 |
+
708
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "• FastSpeech 2 achieves a 3x training speed-up over FastSpeech by simplifying the training pipeline. \n• FastSpeech 2 alleviates the one-to-many mapping problem in TTS and achieves better voice quality. \n• FastSpeech 2s further simplifies the inference pipeline for speech synthesis while maintaining high voice quality, by directly generating speech waveform from text. ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
174,
|
| 153 |
+
718,
|
| 154 |
+
825,
|
| 155 |
+
811
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 1
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "2 FASTSPEECH 2 AND 2S ",
|
| 162 |
+
"text_level": 1,
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
829,
|
| 166 |
+
398,
|
| 167 |
+
845
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "In this section, we first describe the motivation of the design in FastSpeech 2, and then introduce the architecture of FastSpeech 2, which aims to improve FastSpeech to better handle the one-to",
|
| 174 |
+
"bbox": [
|
| 175 |
+
176,
|
| 176 |
+
861,
|
| 177 |
+
821,
|
| 178 |
+
890
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "image",
|
| 184 |
+
"img_path": "images/c4eac523ab73b3722b1bf9ee27b2fe85770fe8eba476e2f0b528a407fa242280.jpg",
|
| 185 |
+
"image_caption": [
|
| 186 |
+
"Figure 1: The overall architecture for FastSpeech 2 and 2s. LR in subfigure (b) denotes the length regulator proposed in FastSpeech. LN in subfigure (c) denotes layer normalization. "
|
| 187 |
+
],
|
| 188 |
+
"image_footnote": [],
|
| 189 |
+
"bbox": [
|
| 190 |
+
183,
|
| 191 |
+
117,
|
| 192 |
+
812,
|
| 193 |
+
354
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 2
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "many mapping problem, with simpler training pipeline and higher voice quality. At last, we extend FastSpeech 2 to FastSpeech 2s for fully end-to-end text-to-waveform synthesis2. ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
176,
|
| 202 |
+
411,
|
| 203 |
+
821,
|
| 204 |
+
440
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 2
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "2.1 MOTIVATION ",
|
| 211 |
+
"text_level": 1,
|
| 212 |
+
"bbox": [
|
| 213 |
+
176,
|
| 214 |
+
457,
|
| 215 |
+
305,
|
| 216 |
+
470
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 2
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "TTS is a typical one-to-many mapping problem (Wang et al., 2017; Zhu et al., 2017; Jayne et al., 2012; Gadermayr et al., 2020; Chen et al., 2021), since multiple possible speech sequences can correspond to a text sequence due to variations in speech, such as pitch, duration, sound volume and prosody. In non-autoregressive TTS, the only input information is text which is not enough to fully predict the variance in speech. In this case, the model is prone to overfit to the variations of the target speech in the training set, resulting in poor generalization ability. As mentioned in Section 1, although FastSpeech designs two ways to alleviate the one-to-many mapping problem, they also bring about several issues including 1) the complicated training pipeline; 2) information loss of target mel-spectrogram as analyzed in Table 1; and 3) not accurate enough ground-truth duration as shown in Table 5a. In the following subsection, we introduce the detailed design of FastSpeech 2 which aims to address these issues. ",
|
| 223 |
+
"bbox": [
|
| 224 |
+
174,
|
| 225 |
+
483,
|
| 226 |
+
825,
|
| 227 |
+
636
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "2.2 MODEL OVERVIEW ",
|
| 234 |
+
"text_level": 1,
|
| 235 |
+
"bbox": [
|
| 236 |
+
176,
|
| 237 |
+
654,
|
| 238 |
+
348,
|
| 239 |
+
667
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "The overall model architecture of FastSpeech 2 is shown in Figure 1a. The encoder converts the phoneme embedding sequence into the phoneme hidden sequence, and then the variance adaptor adds different variance information such as duration, pitch and energy into the hidden sequence, finally the mel-spectrogram decoder converts the adapted hidden sequence into mel-spectrogram sequence in parallel. We use the feed-forward Transformer block, which is a stack of selfattention (Vaswani et al., 2017) layer and 1D-convolution as in FastSpeech (Ren et al., 2019), as the basic structure for the encoder and mel-spectrogram decoder. Different from FastSpeech that relies on a teacher-student distillation pipeline and the phoneme duration from a teacher model, FastSpeech 2 makes several improvements. First, we remove the teacher-student distillation pipeline, and directly use ground-truth mel-spectrograms as target for model training, which can avoid the information loss in distilled mel-spectrograms and increase the upper bound of the voice quality. Second, our variance adaptor consists of not only duration predictor but also pitch and energy predictors, where 1) the duration predictor uses the phoneme duration obtained by forced alignment (McAuliffe et al., 2017) as training target, which is more accurate than that extracted from the attention map of autoregressive teacher model as verified experimentally in Section 3.2.2; and 2) the additional pitch and energy predictors can provide more variance information, which is important to ease the one-to-many mapping problem in TTS. Third, to further simplify the training pipeline and push it towards a fully end-to-end system, we propose FastSpeech 2s, which directly generates waveform from text, without cascaded mel-spectrogram generation (acoustic model) and waveform generation (vocoder). In the following subsections, we describe detailed designs of the variance adaptor and direct waveform generation in our method. ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
174,
|
| 248 |
+
680,
|
| 249 |
+
825,
|
| 250 |
+
887
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "",
|
| 257 |
+
"bbox": [
|
| 258 |
+
174,
|
| 259 |
+
103,
|
| 260 |
+
825,
|
| 261 |
+
186
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 3
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "2.3 VARIANCE ADAPTOR ",
|
| 268 |
+
"text_level": 1,
|
| 269 |
+
"bbox": [
|
| 270 |
+
176,
|
| 271 |
+
204,
|
| 272 |
+
361,
|
| 273 |
+
218
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 3
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "The variance adaptor aims to add variance information (e.g., duration, pitch, energy, etc.) to the phoneme hidden sequence, which can provide enough information to predict variant speech for the one-to-many mapping problem in TTS. We briefly introduce the variance information as follows: 1) phoneme duration, which represents how long the speech voice sounds; 2) pitch, which is a key feature to convey emotions and greatly affects the speech prosody; 3) energy, which indicates framelevel magnitude of mel-spectrograms and directly affects the volume and prosody of speech. More variance information can be added in the variance adaptor, such as emotion, style and speaker, and we leave it for future work. Correspondingly, the variance adaptor consists of 1) a duration predictor (i.e., the length regulator, as used in FastSpeech), 2) a pitch predictor, and 3) an energy predictor, as shown in Figure 1b. In training, we take the ground-truth value of duration, pitch and energy extracted from the recordings as input into the hidden sequence to predict the target speech. At the same time, we use the ground-truth duration, pitch and energy as targets to train the duration, pitch and energy predictors, which are used in inference to synthesize target speech. As shown in Figure 1c, the duration, pitch and energy predictors share similar model structure (but different model parameters), which consists of a 2-layer 1D-convolutional network with ReLU activation, each followed by the layer normalization and the dropout layer, and an extra linear layer to project the hidden states into the output sequence. In the following paragraphs, we describe the details of the three predictors respectively. ",
|
| 280 |
+
"bbox": [
|
| 281 |
+
174,
|
| 282 |
+
232,
|
| 283 |
+
825,
|
| 284 |
+
479
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 3
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "Duration Predictor The duration predictor takes the phoneme hidden sequence as input and predicts the duration of each phoneme, which represents how many mel frames correspond to this phoneme, and is converted into logarithmic domain for ease of prediction. The duration predictor is optimized with mean square error (MSE) loss, taking the extracted duration as training target. Instead of extracting the phoneme duration using a pre-trained autoregressive TTS model in FastSpeech, we use Montreal forced alignment (MFA) (McAuliffe et al., 2017) tool3 to extract the phoneme duration, in order to improve the alignment accuracy and thus reduce the information gap between the model input and output. ",
|
| 291 |
+
"bbox": [
|
| 292 |
+
174,
|
| 293 |
+
496,
|
| 294 |
+
825,
|
| 295 |
+
608
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 3
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "Pitch Predictor Previous neural network based TTS systems with pitch prediction (Arik et al., 2017; Gibiansky et al., 2017) often predict pitch contour directly. However, due to high variations of ground-truth pitch, the distribution of predicted pitch values is very different from ground-truth distribution, as analyzed in Section 3.2.2. To better predict the variations in pitch contour, we use continuous wavelet transform (CWT) to decompose the continuous pitch series into pitch spectrogram (Suni et al., 2013; Hirose & Tao, 2015) and take the pitch spectrogram as the training target for the pitch predictor which is optimized with MSE loss. In inference, the pitch predictor predicts the pitch spectrogram, which is further converted back into pitch contour using inverse continuous wavelet transform (iCWT). We describe the details of pitch extraction, CWT, iCWT and pitch predictor architecture in Appendix D. To take the pitch contour as input in both training and inference, we quantize pitch $F _ { 0 }$ (ground-truth/predicted value for train/inference respectively) of each frame to 256 possible values in log-scale and further convert it into pitch embedding vector $p$ and add it to the expanded hidden sequence. ",
|
| 302 |
+
"bbox": [
|
| 303 |
+
174,
|
| 304 |
+
623,
|
| 305 |
+
825,
|
| 306 |
+
803
|
| 307 |
+
],
|
| 308 |
+
"page_idx": 3
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"type": "text",
|
| 312 |
+
"text": "Energy Predictor We compute L2-norm of the amplitude of each short-time Fourier transform (STFT) frame as the energy. Then we quantize energy of each frame to 256 possible values uniformly, encoded it into energy embedding $e$ and add it to the expanded hidden sequence similarly to pitch. We use an energy predictor to predict the original values of energy instead of the quantized values and optimize the energy predictor with MSE loss4. ",
|
| 313 |
+
"bbox": [
|
| 314 |
+
174,
|
| 315 |
+
819,
|
| 316 |
+
825,
|
| 317 |
+
861
|
| 318 |
+
],
|
| 319 |
+
"page_idx": 3
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"type": "text",
|
| 323 |
+
"text": "",
|
| 324 |
+
"bbox": [
|
| 325 |
+
173,
|
| 326 |
+
103,
|
| 327 |
+
823,
|
| 328 |
+
132
|
| 329 |
+
],
|
| 330 |
+
"page_idx": 4
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"type": "text",
|
| 334 |
+
"text": "2.4 FASTSPEECH 2S ",
|
| 335 |
+
"text_level": 1,
|
| 336 |
+
"bbox": [
|
| 337 |
+
176,
|
| 338 |
+
148,
|
| 339 |
+
326,
|
| 340 |
+
162
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 4
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "To enable fully end-to-end text-to-waveform generation, in this subsection, we extend FastSpeech 2 to FastSpeech 2s, which directly generates waveform from text, without cascaded mel-spectrogram generation (acoustic model) and waveform generation (vocoder). As shown in Figure 1a, FastSpeech 2s generates waveform conditioning on intermediate hidden, which makes it more compact in inference by discarding mel-spectrogram decoder and achieve comparable performance with a cascaded system. We first discuss the challenges in non-autoregressive text-to-waveform generation, then describe details of FastSpeech 2s, including model structure and training and inference processes. ",
|
| 347 |
+
"bbox": [
|
| 348 |
+
174,
|
| 349 |
+
174,
|
| 350 |
+
825,
|
| 351 |
+
272
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 4
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "text",
|
| 357 |
+
"text": "Challenges in Text-to-Waveform Generation When pushing TTS pipeline towards fully endto-end framework, there are several challenges: 1) Since the waveform contains more variance information (e.g., phase) than mel-spectrograms, the information gap between the input and output is larger than that in text-to-spectrogram generation. 2) It is difficult to train on the audio clip that corresponds to the full text sequence due to the extremely long waveform samples and limited GPU memory. As a result, we can only train on a short audio clip that corresponds to a partial text sequence which makes it hard for the model to capture the relationship among phonemes in different partial text sequences and thus harms the text feature extraction. ",
|
| 358 |
+
"bbox": [
|
| 359 |
+
173,
|
| 360 |
+
286,
|
| 361 |
+
825,
|
| 362 |
+
398
|
| 363 |
+
],
|
| 364 |
+
"page_idx": 4
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"type": "text",
|
| 368 |
+
"text": "Our Method To tackle the challenges above, we make several designs in the waveform decoder: 1) Considering that the phase information is difficult to predict using a variance predictor (Engel et al., 2020), we introduce adversarial training in the waveform decoder to force it to implicitly recover the phase information by itself (Yamamoto et al., 2020). 2) We leverage the mel-spectrogram decoder of FastSpeech 2, which is trained on the full text sequence to help on the text feature extraction. As shown in Figure 1d, the waveform decoder is based on the structure of WaveNet (Van Den Oord et al., 2016) including non-causal convolutions and gated activation (Van den Oord et al., 2016). The waveform decoder takes a sliced hidden sequence corresponding to a short audio clip as input and upsamples it with transposed 1D-convolution to match the length of audio clip. The discriminator in the adversarial training adopts the same structure in Parallel WaveGAN (Yamamoto et al., 2020) which consists of ten layers of non-causal dilated 1-D convolutions with leaky ReLU activation function. The waveform decoder is optimized by the multi-resolution STFT loss and the LSGAN discriminator loss following Parallel WaveGAN. In inference, we discard the mel-spectrogram decoder and only use the waveform decoder to synthesize speech audio. ",
|
| 369 |
+
"bbox": [
|
| 370 |
+
173,
|
| 371 |
+
414,
|
| 372 |
+
825,
|
| 373 |
+
608
|
| 374 |
+
],
|
| 375 |
+
"page_idx": 4
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"type": "text",
|
| 379 |
+
"text": "2.5 DISCUSSIONS ",
|
| 380 |
+
"text_level": 1,
|
| 381 |
+
"bbox": [
|
| 382 |
+
174,
|
| 383 |
+
625,
|
| 384 |
+
310,
|
| 385 |
+
638
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 4
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "text",
|
| 391 |
+
"text": "In this subsection, we discuss how FastSpeech 2 and 2s differentiate from previous and concurrent works. ",
|
| 392 |
+
"bbox": [
|
| 393 |
+
176,
|
| 394 |
+
651,
|
| 395 |
+
823,
|
| 396 |
+
679
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 4
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "text",
|
| 402 |
+
"text": "Compared with Deep Voice (Arik et al., 2017), Deep Voice 2 (Gibiansky et al., 2017) and other methods Fan et al. (2014); Ze et al. (2013) which generate waveform autoregressively and also predict variance information such as duration and pitch, Fastspeech 2 and 2s adopt self-attention based feed-forward network to generate mel-spectrograms or waveform in parallel. While some existing non-autoregressive acoustic models (Zeng et al., 2020; Lim et al., 2020; Kim et al., 2020) mostly focus on improving the duration accuracy, FastSpeech 2 and 2s provide more variation information (duration, pitch and energy) as inputs to reduce the information gap between the input and output. A concurrent work (Łancucki, 2020) employs pitch prediction in phoneme level, while FastSpeech 2 ´ and 2s predict more fine-grained pitch contour in frame level. In addition, to improve the prosody in synthesized speech, FastSpeech 2 and 2s further introduce continuous wavelet transform to model the variations in pitch. ",
|
| 403 |
+
"bbox": [
|
| 404 |
+
174,
|
| 405 |
+
685,
|
| 406 |
+
825,
|
| 407 |
+
838
|
| 408 |
+
],
|
| 409 |
+
"page_idx": 4
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "text",
|
| 413 |
+
"text": "While some text-to-waveform models such as ClariNet (Ping et al., 2019) jointly train an autoregressive acoustic model and a non-autoregressive vocoder, FastSpeech 2s embraces the fully nonautoregressive architecture for fast inference. A concurrent work called EATS (Donahue et al., 2020) ",
|
| 414 |
+
"bbox": [
|
| 415 |
+
174,
|
| 416 |
+
845,
|
| 417 |
+
825,
|
| 418 |
+
887
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 4
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": "also employs non-autoregressive architecture and adversarial training to convert text to waveform directly and mainly focuses on predicting the duration of each phoneme end-to-end using a differentiable monotonic interpolation scheme. Compared with EATS, FastSpeech 2s additionally provides more variation information to ease the one-to-many mapping problem in TTS. ",
|
| 425 |
+
"bbox": [
|
| 426 |
+
174,
|
| 427 |
+
103,
|
| 428 |
+
823,
|
| 429 |
+
159
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 5
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "text",
|
| 435 |
+
"text": "Previous non-autoregressive vocoders (Oord et al., 2017; Prenger et al., 2019; Yamamoto et al., 2020; Kumar et al., 2019) are not complete text-to-speech systems, since they convert time aligned linguistic features to waveforms, and require a separate linguistic model to convert input text to linguistic features or an acoustic model to convert input text to acoustic features (e.g., melspectrograms). FastSpeech 2s is the first attempt to directly generate waveform from phoneme sequence fully in parallel, instead of linguistic features or mel-spectrograms. ",
|
| 436 |
+
"bbox": [
|
| 437 |
+
174,
|
| 438 |
+
166,
|
| 439 |
+
825,
|
| 440 |
+
251
|
| 441 |
+
],
|
| 442 |
+
"page_idx": 5
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"type": "text",
|
| 446 |
+
"text": "3 EXPERIMENTS AND RESULTS ",
|
| 447 |
+
"text_level": 1,
|
| 448 |
+
"bbox": [
|
| 449 |
+
178,
|
| 450 |
+
270,
|
| 451 |
+
447,
|
| 452 |
+
285
|
| 453 |
+
],
|
| 454 |
+
"page_idx": 5
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"type": "text",
|
| 458 |
+
"text": "3.1 EXPERIMENTAL SETUP ",
|
| 459 |
+
"text_level": 1,
|
| 460 |
+
"bbox": [
|
| 461 |
+
176,
|
| 462 |
+
300,
|
| 463 |
+
375,
|
| 464 |
+
314
|
| 465 |
+
],
|
| 466 |
+
"page_idx": 5
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"type": "text",
|
| 470 |
+
"text": "Datasets We evaluate FastSpeech 2 and 2s on LJSpeech dataset (Ito, 2017). LJSpeech contains 13,100 English audio clips (about 24 hours) and corresponding text transcripts. We split the dataset into three sets: 12,228 samples for training, 349 samples (with document title LJ003) for validation and 523 samples (with document title LJ001 and LJ002) for testing. For subjective evaluation, we randomly choose 100 samples in test set. To alleviate the mispronunciation problem, we convert the text sequence into the phoneme sequence (Arik et al., 2017; Wang et al., 2017; Shen et al., 2018; Sun et al., 2019) with an open-source grapheme-to-phoneme tool5. We transform the raw waveform into mel-spectrograms following Shen et al. (2018) and set frame size and hop size to 1024 and 256 with respect to the sample rate 22050. ",
|
| 471 |
+
"bbox": [
|
| 472 |
+
174,
|
| 473 |
+
325,
|
| 474 |
+
825,
|
| 475 |
+
450
|
| 476 |
+
],
|
| 477 |
+
"page_idx": 5
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"type": "text",
|
| 481 |
+
"text": "Model Configuration Our FastSpeech 2 consists of 4 feed-forward Transformer (FFT) blocks (Ren et al., 2019) in the encoder and the mel-spectrogram decoder. The output linear layer in the decoder converts the hidden states into 80-dimensional mel-spectrograms and our model is optimized with mean absolute error (MAE). We add more detailed configurations of FastSpeech 2 and 2s used in our experiments in Appendix A. The details of training and inference are added in Appendix B. ",
|
| 482 |
+
"bbox": [
|
| 483 |
+
174,
|
| 484 |
+
465,
|
| 485 |
+
825,
|
| 486 |
+
549
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 5
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "3.2 RESULTS ",
|
| 493 |
+
"text_level": 1,
|
| 494 |
+
"bbox": [
|
| 495 |
+
174,
|
| 496 |
+
565,
|
| 497 |
+
277,
|
| 498 |
+
580
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 5
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "table",
|
| 504 |
+
"img_path": "images/5d2d5684152a166a9297c7fba3bcb9fe371be485e0549c0c9f94b9892d4cfb72.jpg",
|
| 505 |
+
"table_caption": [],
|
| 506 |
+
"table_footnote": [],
|
| 507 |
+
"table_body": "<table><tr><td>Method</td><td>CMOS</td></tr><tr><td>FastSpeech 2</td><td>一 0.000</td></tr><tr><td>FastSpeech Transformer TTS</td><td>-0.885 -0.235</td></tr></table>",
|
| 508 |
+
"bbox": [
|
| 509 |
+
611,
|
| 510 |
+
619,
|
| 511 |
+
795,
|
| 512 |
+
693
|
| 513 |
+
],
|
| 514 |
+
"page_idx": 5
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"type": "table",
|
| 518 |
+
"img_path": "images/920d572ffca8b8c81818c300a2fef98691d0ffde7486b66f476d99dd1124ed5f.jpg",
|
| 519 |
+
"table_caption": [
|
| 520 |
+
"Table 1: Audio quality comparison. "
|
| 521 |
+
],
|
| 522 |
+
"table_footnote": [
|
| 523 |
+
"(a) The MOS with $9 5 \\%$ confidence intervals. "
|
| 524 |
+
],
|
| 525 |
+
"table_body": "<table><tr><td>Method</td><td>MOS</td></tr><tr><td>GT</td><td>4.30± 0.07</td></tr><tr><td>GT (Mel + PWG)</td><td>3.92 ± 0.08</td></tr><tr><td>Tacotron 2 (Shen et al.,2018) (Mel + PWG)</td><td>3.70± 0.08</td></tr><tr><td>Transformer TTS (Li et al.,2019) (Mel + PWG)</td><td>3.72 ± 0.07</td></tr><tr><td>FastSpeech (Ren et al.,2019) (Mel + PWG)</td><td>3.68± 0.09</td></tr><tr><td>FastSpeech 2 (Mel + PWG)</td><td>3.83 ± 0.08</td></tr><tr><td>FastSpeech 2s</td><td>3.71 ± 0.09</td></tr></table>",
|
| 526 |
+
"bbox": [
|
| 527 |
+
191,
|
| 528 |
+
593,
|
| 529 |
+
586,
|
| 530 |
+
729
|
| 531 |
+
],
|
| 532 |
+
"page_idx": 5
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"type": "text",
|
| 536 |
+
"text": "(b) CMOS comparison. ",
|
| 537 |
+
"bbox": [
|
| 538 |
+
635,
|
| 539 |
+
733,
|
| 540 |
+
774,
|
| 541 |
+
747
|
| 542 |
+
],
|
| 543 |
+
"page_idx": 5
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"type": "text",
|
| 547 |
+
"text": "In this section, we first evaluate the audio quality, training and inference speedup of FastSpeech 2 and 2s. Then we conduct analyses and ablation studies of our method6. ",
|
| 548 |
+
"bbox": [
|
| 549 |
+
173,
|
| 550 |
+
780,
|
| 551 |
+
825,
|
| 552 |
+
808
|
| 553 |
+
],
|
| 554 |
+
"page_idx": 5
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"type": "text",
|
| 558 |
+
"text": "3.2.1 MODEL PERFORMANCE ",
|
| 559 |
+
"text_level": 1,
|
| 560 |
+
"bbox": [
|
| 561 |
+
174,
|
| 562 |
+
823,
|
| 563 |
+
393,
|
| 564 |
+
837
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 5
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "Audio Quality To evaluate the perceptual quality, we perform mean opinion score (MOS) (Chu & Peng, 2006) evaluation on the test set. Twenty native English speakers are asked to make quality judgments about the synthesized speech samples. The text content keeps consistent among different systems so that all testers only examine the audio quality without other interference factors. We compare the MOS of the audio samples generated by FastSpeech 2 and FastSpeech $2 s$ with other systems, including 1) $G T .$ , the ground-truth recordings; 2) GT $( M e l + P W G )$ ), where we first convert the ground-truth audio into mel-spectrograms, and then convert the mel-spectrograms back to audio using Parallel WaveGAN (Yamamoto et al., 2020) (PWG); 3) Tacotron 2 (Shen et al., 2018) $( M e l + P W G )$ ; 4) Transformer TTS (Li et al., 2019) $( M e l + P W G )$ ; 5) FastSpeech (Ren et al., 2019) $( M e l + P W G )$ . All the systems in 3), 4) and 5) use Parallel WaveGAN as the vocoder for a fair comparison. The results are shown in Table 1. It can be seen that FastSpeech 2 can surpass and FastSpeech 2s can match the voice quality of autoregressive models Transformer TTS and Tacotron 2. Importantly, FastSpeech 2 outperforms FastSpeech, which demonstrates the effectiveness of providing variance information such as pitch, energy and more accurate duration and directly taking ground-truth speech as training target without using teacher-student distillation pipeline. ",
|
| 571 |
+
"bbox": [
|
| 572 |
+
174,
|
| 573 |
+
847,
|
| 574 |
+
823,
|
| 575 |
+
876
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 5
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "table",
|
| 581 |
+
"img_path": "images/764aae824c78169261e5d705476a40567f787dd9994e4b5f9c16b6f9d03464de.jpg",
|
| 582 |
+
"table_caption": [
|
| 583 |
+
"Table 2: The comparison of training time and inference latency in waveform synthesis. The training time of FastSpeech includes teacher and student training. RTF denotes the real-time factor, that is the time (in seconds) required for the system to synthesize one second waveform. The training and inference latency tests are conducted on a server with 36 Intel Xeon CPUs, 256GB memory, 1 NVIDIA V100 GPU and batch size of 48 for training and 1 for inference. Besides, we do not include the time of GPU memory garbage collection and transferring input and output data between the CPU and the GPU. The speedup in waveform synthesis for FastSpeech is larger than that reported in Ren et al. (2019) since we use Parallel WaveGAN as the vocoder which is much faster than WaveGlow. "
|
| 584 |
+
],
|
| 585 |
+
"table_footnote": [],
|
| 586 |
+
"table_body": "<table><tr><td>Method</td><td>Training Time (h)</td><td>Inference Speed (RTF)</td><td>Inference Speedup</td></tr><tr><td>Transformer TTS (Li et al.,2019)</td><td>38.64</td><td>9.32 × 10-1</td><td>/</td></tr><tr><td>FastSpeech (Ren et al.,2019)</td><td>53.12</td><td>1.92 × 10-2</td><td>48.5×</td></tr><tr><td>FastSpeech 2</td><td>17.02</td><td>1.95 × 10-2</td><td>47.8×</td></tr><tr><td>FastSpeech 2s</td><td>92.18</td><td>1.80 × 10-2</td><td>51.8×</td></tr></table>",
|
| 587 |
+
"bbox": [
|
| 588 |
+
184,
|
| 589 |
+
102,
|
| 590 |
+
812,
|
| 591 |
+
184
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 6
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "text",
|
| 597 |
+
"text": "",
|
| 598 |
+
"bbox": [
|
| 599 |
+
173,
|
| 600 |
+
329,
|
| 601 |
+
825,
|
| 602 |
+
511
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 6
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "text",
|
| 608 |
+
"text": "Training and Inference Speedup FastSpeech 2 simplifies the training pipeline of FastSpeech by removing the teacher-student distillation process, and thus reduces the training time. We list the total training time of Transformer TTS (the autoregressive teacher model), FastSpeech (including the training of Transformer TTS teacher model and FastSpeech student model) and FastSpeech 2 in Table 2. It can be seen that FastSpeech 2 reduces the total training time by $3 . 1 2 \\times$ compared with FastSpeech. Note that training time here only includes acoustic model training, without considering the vocoder training. Therefore, we do not compare the training time of FastSpeech 2s here. We then evaluate the inference latency of FastSpeech 2 and 2s compared with the autoregressive Transformer TTS model, which has the similar number of model parameters with FastSpeech 2 and 2s. We show the inference speedup for waveform generation in Table 2. It can be seen that compared with the Transformer TTS model, FastSpeech 2 and 2s speeds up the audio generation by $4 7 . 8 \\times$ and $5 1 . 8 \\times$ respectively in waveform synthesis. We can also see that FastSpeech 2s is faster than FastSpeech 2 due to fully end-to-end generation. ",
|
| 609 |
+
"bbox": [
|
| 610 |
+
173,
|
| 611 |
+
530,
|
| 612 |
+
825,
|
| 613 |
+
712
|
| 614 |
+
],
|
| 615 |
+
"page_idx": 6
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"type": "table",
|
| 619 |
+
"img_path": "images/87346be1654cb6d1e58a05cb634ba6b79b1e78fd678628288e27ac0dfdbf0eec.jpg",
|
| 620 |
+
"table_caption": [
|
| 621 |
+
"3.2.2 ANALYSES ON VARIANCE INFORMATION "
|
| 622 |
+
],
|
| 623 |
+
"table_footnote": [
|
| 624 |
+
"Table 3: Standard deviation $( \\sigma )$ , skewness $( \\gamma )$ , kurtosis $( \\kappa )$ and average DTW distances (DTW) of pitch in ground-truth and synthesized audio. "
|
| 625 |
+
],
|
| 626 |
+
"table_body": "<table><tr><td>Method</td><td>9</td><td>Y</td><td>K</td><td>DTW</td></tr><tr><td>GT</td><td>54.4</td><td>0.836</td><td>0.977</td><td>/</td></tr><tr><td>Tacotron 2</td><td>44.1</td><td>1.28</td><td>1.311</td><td>26.32</td></tr><tr><td>TransformerTTS</td><td>40.8</td><td>0.703</td><td>1.419</td><td>24.40</td></tr><tr><td>FastSpeech</td><td>50.8</td><td>0.724</td><td>-0.041</td><td>24.89</td></tr><tr><td>FastSpeech 2</td><td>54.1</td><td>0.881</td><td>0.996</td><td>24.39</td></tr><tr><td>FastSpeech 2 - CWT</td><td>42.3</td><td>0.771</td><td>1.115</td><td>25.13</td></tr><tr><td>FastSpeech 2s</td><td>53.9</td><td>0.872</td><td>0.998</td><td>24.37</td></tr></table>",
|
| 627 |
+
"bbox": [
|
| 628 |
+
320,
|
| 629 |
+
766,
|
| 630 |
+
678,
|
| 631 |
+
895
|
| 632 |
+
],
|
| 633 |
+
"page_idx": 6
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"type": "text",
|
| 637 |
+
"text": "More Accurate Variance Information in Synthesized Speech In the paragraph, we measure if providing more variance information (e.g., pitch and energy) as input in FastSpeech 2 and 2s can indeed synthesize speech with more accurate pitch and energy. ",
|
| 638 |
+
"bbox": [
|
| 639 |
+
174,
|
| 640 |
+
103,
|
| 641 |
+
823,
|
| 642 |
+
146
|
| 643 |
+
],
|
| 644 |
+
"page_idx": 7
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"type": "text",
|
| 648 |
+
"text": "For pitch, we compute the moments (standard deviation $( \\sigma )$ , skewness $( \\gamma )$ and kurtosis $( \\kappa )$ ) (Andreeva et al., 2014; Niebuhr & Skarnitzl, 2019) and average dynamic time warping (DTW) Muller ¨ (2007) distance of the pitch distribution for the ground-truth speech and synthesized speech. The results are shown in Table 3. It can be seen that compared with FastSpeech, the moments $( \\sigma , \\gamma$ and $\\kappa$ ) of generated audio of FastSpeech 2/2s are more close to the ground-truth audio and the average DTW distances to the ground-truth pitch are smaller than other methods, demonstrating that FastSpeech 2/2s can generate speech with more natural pitch contour (which can result in better prosody) than FastSpeech. We also conduct a case study on generated pitch contours in Appendix D. ",
|
| 649 |
+
"bbox": [
|
| 650 |
+
173,
|
| 651 |
+
152,
|
| 652 |
+
825,
|
| 653 |
+
277
|
| 654 |
+
],
|
| 655 |
+
"page_idx": 7
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"type": "table",
|
| 659 |
+
"img_path": "images/d2d2bd1178e4ddd6c7a57c0c0e5eaf3c4af6757180a5f55419fa8eb8f35e1001.jpg",
|
| 660 |
+
"table_caption": [],
|
| 661 |
+
"table_footnote": [],
|
| 662 |
+
"table_body": "<table><tr><td></td><td></td><td></td><td>Method|FastSpeech |FastSpeech 2|FastSpeech 2s</td></tr><tr><td>MAE</td><td>0.142</td><td>0.131</td><td>0.133</td></tr></table>",
|
| 663 |
+
"bbox": [
|
| 664 |
+
320,
|
| 665 |
+
287,
|
| 666 |
+
676,
|
| 667 |
+
329
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 7
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"text": "Table 4: The mean absolute error (MAE) of the energy in synthesized speech audio. ",
|
| 674 |
+
"bbox": [
|
| 675 |
+
222,
|
| 676 |
+
339,
|
| 677 |
+
769,
|
| 678 |
+
354
|
| 679 |
+
],
|
| 680 |
+
"page_idx": 7
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "text",
|
| 684 |
+
"text": "For energy, we compute the mean absolute error (MAE) between the frame-wise energy extracted from the generated waveform and the ground-truth speech. To ensure that the numbers of frames in the synthesized and ground-truth speech are the same, we use the ground-truth duration extracted by MFA in both FastSpeech and FastSpeech 2. The results are shown in Table 4. We can see that the MAE of the energy for FastSpeech 2/2s are smaller than that for FastSpeech, indicating that they both synthesize speech audio with more similar energy to the ground-truth audio. ",
|
| 685 |
+
"bbox": [
|
| 686 |
+
173,
|
| 687 |
+
362,
|
| 688 |
+
825,
|
| 689 |
+
446
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 7
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "More Accurate Duration for Model Training We then analyze the accuracy of the provided duration information to train the duration predictor and the effectiveness of more accurate duration for better voice quality based on FastSpeech. We manually align 50 audio generated by the teacher model and the corresponding text in phoneme level and get the ground-truth phoneme-level duration. We compute the average of absolute phoneme boundary differences (McAuliffe et al., 2017) using the duration from the teacher model of FastSpeech and from MFA as used in this paper respectively. The results are shown in Table 5a. We can see that MFA can generate more accurate duration than the teacher model of FastSpeech. Next, we replace the duration used in FastSpeech (from teacher model) with that extracted by MFA, and conduct the CMOS (Loizou, 2011) test to compare the voice quality between the two FastSpeech models trained with different durations7. The results are listed in Table 5b and it can be seen that more accurate duration information improves the voice quality of FastSpeech, which verifies the effectiveness of our improved duration from MFA. ",
|
| 696 |
+
"bbox": [
|
| 697 |
+
174,
|
| 698 |
+
462,
|
| 699 |
+
825,
|
| 700 |
+
627
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 7
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "table",
|
| 706 |
+
"img_path": "images/4a2714ca84fc1897b56373db25468067c4b2b7bf2291b118200f2c6df0be78f3.jpg",
|
| 707 |
+
"table_caption": [],
|
| 708 |
+
"table_footnote": [],
|
| 709 |
+
"table_body": "<table><tr><td>Method</td><td>△(ms)</td></tr><tr><td>Duration from teacher model</td><td>19.68</td></tr><tr><td>Duration from MFA</td><td>12.47</td></tr></table>",
|
| 710 |
+
"bbox": [
|
| 711 |
+
218,
|
| 712 |
+
641,
|
| 713 |
+
475,
|
| 714 |
+
695
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 7
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "table",
|
| 720 |
+
"img_path": "images/515fa78c55b2ea4e8b7c1cff4aca5052ae8d4581087371681a3c04f832894477.jpg",
|
| 721 |
+
"table_caption": [],
|
| 722 |
+
"table_footnote": [],
|
| 723 |
+
"table_body": "<table><tr><td>Setting</td><td>CMOS</td></tr><tr><td>FastSpeech + Duration from teacher</td><td>0</td></tr><tr><td>FastSpeech + Duration from MFA</td><td>+0.195</td></tr></table>",
|
| 724 |
+
"bbox": [
|
| 725 |
+
501,
|
| 726 |
+
641,
|
| 727 |
+
802,
|
| 728 |
+
694
|
| 729 |
+
],
|
| 730 |
+
"page_idx": 7
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"type": "text",
|
| 734 |
+
"text": "(a) Alignment accuracy comparison. ",
|
| 735 |
+
"bbox": [
|
| 736 |
+
238,
|
| 737 |
+
700,
|
| 738 |
+
455,
|
| 739 |
+
713
|
| 740 |
+
],
|
| 741 |
+
"page_idx": 7
|
| 742 |
+
},
|
| 743 |
+
{
|
| 744 |
+
"type": "text",
|
| 745 |
+
"text": "(b) CMOS comparison. ",
|
| 746 |
+
"bbox": [
|
| 747 |
+
580,
|
| 748 |
+
700,
|
| 749 |
+
720,
|
| 750 |
+
713
|
| 751 |
+
],
|
| 752 |
+
"page_idx": 7
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"type": "text",
|
| 756 |
+
"text": "Table 5: The comparison of the duration from teacher model and MFA. $\\Delta$ means the average of absolute boundary differences. ",
|
| 757 |
+
"bbox": [
|
| 758 |
+
173,
|
| 759 |
+
724,
|
| 760 |
+
823,
|
| 761 |
+
753
|
| 762 |
+
],
|
| 763 |
+
"page_idx": 7
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"type": "text",
|
| 767 |
+
"text": "3.2.3 ABLATION STUDY ",
|
| 768 |
+
"text_level": 1,
|
| 769 |
+
"bbox": [
|
| 770 |
+
176,
|
| 771 |
+
766,
|
| 772 |
+
354,
|
| 773 |
+
781
|
| 774 |
+
],
|
| 775 |
+
"page_idx": 7
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"type": "text",
|
| 779 |
+
"text": "Pitch and Energy Input We conduct ablation studies to demonstrate the effectiveness of several variance information of FastSpeech 2 and 2s, including pitch and energy8. We conduct CMOS evaluation for these ablation studies. The results are shown in Table 6. We find that removing the energy (Row 3 in both subtables) in FastSpeech 2 and 2s results in performance drop in terms of voice quality (-0.040 and -0.160 CMOS respectively), indicating that energy is effective for FastSpeech 2 in improving the voice quality, and more effective for FastSpeech 2s. We also find that removing the pitch (Row 4 in both subtables) in FastSpeech 2 and 2s results in -0.245 and -1.130 CMOS respectively, which demonstrates the effectiveness of pitch. When we remove both pitch and energy (the last row in both subtables), the voice quality further drops, indicating that both pitch and energy can help improve the performance of FastSpeech 2 and 2s. ",
|
| 780 |
+
"bbox": [
|
| 781 |
+
173,
|
| 782 |
+
790,
|
| 783 |
+
825,
|
| 784 |
+
875
|
| 785 |
+
],
|
| 786 |
+
"page_idx": 7
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"type": "text",
|
| 790 |
+
"text": "",
|
| 791 |
+
"bbox": [
|
| 792 |
+
174,
|
| 793 |
+
103,
|
| 794 |
+
823,
|
| 795 |
+
159
|
| 796 |
+
],
|
| 797 |
+
"page_idx": 8
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"type": "text",
|
| 801 |
+
"text": "Predicting Pitch in Frequency Domain To study the effectiveness of predicting pitch in frequency domain using continuous wavelet transform (CWT) as described in Section 2.3, we directly fit the pitch contour with mean square error like energy in FastSpeech 2 and 2s. We conduct CMOS evaluation and get CMOS drops of 0.185 and 0.201 for FastSpeech 2 and 2s respectively. We also compute the moments of pitch and average DTW distance to the ground-truth pitch as shown in row 6 (denoeted as FastSpeech $2 \\cdot C W T$ ) in Table 3. The results demonstrate that CWT can help model the pitch better and improve the prosody of synthesized speech, and thus obtaining better CMOS score. ",
|
| 802 |
+
"bbox": [
|
| 803 |
+
174,
|
| 804 |
+
174,
|
| 805 |
+
825,
|
| 806 |
+
285
|
| 807 |
+
],
|
| 808 |
+
"page_idx": 8
|
| 809 |
+
},
|
| 810 |
+
{
|
| 811 |
+
"type": "text",
|
| 812 |
+
"text": "Mel-Spectrogram Decoder in FastSpeech 2s To verify the effectiveness of the mel-spectrogram decoder in FastSpeech 2s on text feature extraction as described in Section 2.4, we remove the mel-spectrogram decoder and conduct CMOS evaluation. It causes a 0.285 CMOS drop, which demonstrates that the mel-spectrogram decoder is essential to high-quality waveform generation. ",
|
| 813 |
+
"bbox": [
|
| 814 |
+
174,
|
| 815 |
+
300,
|
| 816 |
+
825,
|
| 817 |
+
357
|
| 818 |
+
],
|
| 819 |
+
"page_idx": 8
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"type": "table",
|
| 823 |
+
"img_path": "images/0c6a0d90d327debd201c0301e2a5b36e6dc8344a996b5cda80a30a4c2142af38.jpg",
|
| 824 |
+
"table_caption": [
|
| 825 |
+
"Table 6: CMOS comparison in the ablation studies. "
|
| 826 |
+
],
|
| 827 |
+
"table_footnote": [],
|
| 828 |
+
"table_body": "<table><tr><td>Setting</td><td>CMOS</td></tr><tr><td>FastSpeech 2</td><td>0</td></tr><tr><td>FastSpeech 2 - energy</td><td>-0.040</td></tr><tr><td>FastSpeech2-pitch</td><td>-0.245</td></tr><tr><td>FastSpeech 2-pitch -energy</td><td>-0.370</td></tr></table>",
|
| 829 |
+
"bbox": [
|
| 830 |
+
215,
|
| 831 |
+
368,
|
| 832 |
+
470,
|
| 833 |
+
454
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 8
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "table",
|
| 839 |
+
"img_path": "images/69872a0607c99baaff632a2c88ad75e3941020bc4c9771831ef5245ab9f0402e.jpg",
|
| 840 |
+
"table_caption": [],
|
| 841 |
+
"table_footnote": [
|
| 842 |
+
"(b) CMOS comparison for FastSpeech 2s. "
|
| 843 |
+
],
|
| 844 |
+
"table_body": "<table><tr><td>Setting</td><td>CMOS</td></tr><tr><td>FastSpeech 2s</td><td>0</td></tr><tr><td>FastSpeech 2s - energy</td><td>-0.160</td></tr><tr><td>FastSpeech 2s-pitch</td><td>-1.130</td></tr><tr><td>FastSpeech 2s-pitch -energy</td><td>-1.355</td></tr></table>",
|
| 845 |
+
"bbox": [
|
| 846 |
+
524,
|
| 847 |
+
368,
|
| 848 |
+
784,
|
| 849 |
+
454
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 8
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"text": "(a) CMOS comparison for FastSpeech 2. ",
|
| 856 |
+
"bbox": [
|
| 857 |
+
222,
|
| 858 |
+
459,
|
| 859 |
+
464,
|
| 860 |
+
473
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 8
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "4 CONCLUSION ",
|
| 867 |
+
"text_level": 1,
|
| 868 |
+
"bbox": [
|
| 869 |
+
174,
|
| 870 |
+
515,
|
| 871 |
+
318,
|
| 872 |
+
531
|
| 873 |
+
],
|
| 874 |
+
"page_idx": 8
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"type": "text",
|
| 878 |
+
"text": "In this work, we proposed FastSpeech 2, a fast and high-quality end-to-end TTS system, to address the issues in FastSpeech and ease the one-to-many mapping problem: 1) we directly train the model with ground-truth mel-spectrograms to simplify the training pipeline and also avoid information loss compared with FastSpeech; and 2) we improve the duration accuracy and introduce more variance information including pitch and energy to ease the one-to-many mapping problem, and improve pitch prediction by introducing continuous wavelet transform. Moreover, based on FastSpeech 2, we further developed FastSpeech 2s, a non-autoregressive text-to-waveform generation model, which enjoys the benefit of fully end-to-end inference and achieves faster inference speed. Our experimental results show that FastSpeech 2 and 2s outperform FastSpeech, and FastSpeech 2 can even surpass autoregressive models in terms of voice quality, with much simpler training pipeline while inheriting the advantages of fast, robust and controllable speech synthesis of FastSpeech. ",
|
| 879 |
+
"bbox": [
|
| 880 |
+
174,
|
| 881 |
+
545,
|
| 882 |
+
825,
|
| 883 |
+
699
|
| 884 |
+
],
|
| 885 |
+
"page_idx": 8
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"type": "text",
|
| 889 |
+
"text": "High quality, fast and fully end-to-end training without any external libraries is definitely the ultimate goal of neural TTS and also a very challenging problem. To ensure high quality of FastSpeech 2, we use an external high-performance alignment tool and pitch extraction tools, which may seem a little complicated, but are very helpful for high-quality and fast speech synthesis. We believe there will be more simpler solutions to achieve this goal in the future and we will certainly work on fully end-to-end TTS without external alignment models and tools. We will also consider more variance information (Zhang et al., 2021) to further improve the voice quality and speed up the inference with more light-weight model (Luo et al., 2021). ",
|
| 890 |
+
"bbox": [
|
| 891 |
+
174,
|
| 892 |
+
705,
|
| 893 |
+
825,
|
| 894 |
+
818
|
| 895 |
+
],
|
| 896 |
+
"page_idx": 8
|
| 897 |
+
},
|
| 898 |
+
{
|
| 899 |
+
"type": "text",
|
| 900 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 901 |
+
"text_level": 1,
|
| 902 |
+
"bbox": [
|
| 903 |
+
176,
|
| 904 |
+
838,
|
| 905 |
+
356,
|
| 906 |
+
852
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 8
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "This work was supported in part by the National Key R&D Program of China (Grant No.2018AAA0100603), National Natural Science Foundation of China (Grant No.62072397), Zhejiang Natural Science Foundation (Grant No.LR19F020006), National Natural Science Foundation of China (Grant No.61836002) and X Lab, the Second Academy of CASIC, Beijing, 100854, China. ",
|
| 913 |
+
"bbox": [
|
| 914 |
+
174,
|
| 915 |
+
867,
|
| 916 |
+
823,
|
| 917 |
+
922
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 8
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "REFERENCES ",
|
| 924 |
+
"text_level": 1,
|
| 925 |
+
"bbox": [
|
| 926 |
+
174,
|
| 927 |
+
103,
|
| 928 |
+
287,
|
| 929 |
+
117
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 9
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "Bistra Andreeva, Grazyna Demenko, Bernd M ˙ obius, Frank Zimmerer, Jeanin J ¨ ugler, and Magdalena ¨ Oleskowicz-Popiel. Differences of pitch profiles in germanic and slavic languages. In Fifteenth Annual Conference of the International Speech Communication Association, 2014. ",
|
| 936 |
+
"bbox": [
|
| 937 |
+
176,
|
| 938 |
+
126,
|
| 939 |
+
823,
|
| 940 |
+
169
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 9
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "text",
|
| 946 |
+
"text": "Sercan O Arik, Mike Chrzanowski, Adam Coates, Gregory Diamos, Andrew Gibiansky, Yongguo Kang, Xian Li, John Miller, Andrew Ng, Jonathan Raiman, et al. Deep voice: Real-time neural text-to-speech. arXiv preprint arXiv:1702.07825, 2017. ",
|
| 947 |
+
"bbox": [
|
| 948 |
+
176,
|
| 949 |
+
176,
|
| 950 |
+
821,
|
| 951 |
+
219
|
| 952 |
+
],
|
| 953 |
+
"page_idx": 9
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "text",
|
| 957 |
+
"text": "Mingjian Chen, Xu Tan, Yi Ren, Jin Xu, Hao Sun, Sheng Zhao, and Tao Qin. Multispeech: Multispeaker text to speech with transformer. In INTERSPEECH, pp. 4024–4028, 2020. ",
|
| 958 |
+
"bbox": [
|
| 959 |
+
169,
|
| 960 |
+
227,
|
| 961 |
+
823,
|
| 962 |
+
257
|
| 963 |
+
],
|
| 964 |
+
"page_idx": 9
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"type": "text",
|
| 968 |
+
"text": "Mingjian Chen, Xu Tan, Bohan Li, Yanqing Liu, Tao Qin, sheng zhao, and Tie-Yan Liu. Adaspeech: Adaptive text to speech for custom voice. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ Drynvt7gg4L. ",
|
| 969 |
+
"bbox": [
|
| 970 |
+
174,
|
| 971 |
+
265,
|
| 972 |
+
821,
|
| 973 |
+
309
|
| 974 |
+
],
|
| 975 |
+
"page_idx": 9
|
| 976 |
+
},
|
| 977 |
+
{
|
| 978 |
+
"type": "text",
|
| 979 |
+
"text": "Min Chu and Hu Peng. Objective measure for estimating mean opinion score of synthesized speech, April 4 2006. US Patent 7,024,362. ",
|
| 980 |
+
"bbox": [
|
| 981 |
+
171,
|
| 982 |
+
316,
|
| 983 |
+
823,
|
| 984 |
+
345
|
| 985 |
+
],
|
| 986 |
+
"page_idx": 9
|
| 987 |
+
},
|
| 988 |
+
{
|
| 989 |
+
"type": "text",
|
| 990 |
+
"text": "Jeff Donahue, Sander Dieleman, Mikołaj Binkowski, Erich Elsen, and Karen Simonyan. End-to-end ´ adversarial text-to-speech. arXiv preprint arXiv:2006.03575, 2020. ",
|
| 991 |
+
"bbox": [
|
| 992 |
+
171,
|
| 993 |
+
353,
|
| 994 |
+
823,
|
| 995 |
+
383
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 9
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "Jesse Engel, Lamtharn Hantrakul, Chenjie Gu, and Adam Roberts. Ddsp: Differentiable digital signal processing. arXiv preprint arXiv:2001.04643, 2020. ",
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
169,
|
| 1004 |
+
390,
|
| 1005 |
+
823,
|
| 1006 |
+
420
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 9
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"type": "text",
|
| 1012 |
+
"text": "Yuchen Fan, Yao Qian, Feng-Long Xie, and Frank K Soong. Tts synthesis with bidirectional lstm based recurrent neural networks. In Fifteenth Annual Conference of the International Speech Communication Association, 2014. ",
|
| 1013 |
+
"bbox": [
|
| 1014 |
+
176,
|
| 1015 |
+
428,
|
| 1016 |
+
823,
|
| 1017 |
+
472
|
| 1018 |
+
],
|
| 1019 |
+
"page_idx": 9
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"type": "text",
|
| 1023 |
+
"text": "Michael Gadermayr, Maximilian Tschuchnig, Dorit Merhof, Nils Kramer, Daniel Truhn, and ¨ Burkhard Gess. An asymetric cycle-consistency loss for dealing with many-to-one mappings in image translation: A study on thigh mr scans. arXiv preprint arXiv:2004.11001, 2020. ",
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
174,
|
| 1026 |
+
479,
|
| 1027 |
+
823,
|
| 1028 |
+
523
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 9
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "text",
|
| 1034 |
+
"text": "Andrew Gibiansky, Sercan Arik, Gregory Diamos, John Miller, Kainan Peng, Wei Ping, Jonathan Raiman, and Yanqi Zhou. Deep voice 2: Multi-speaker neural text-to-speech. In Advances in neural information processing systems, pp. 2962–2970, 2017. ",
|
| 1035 |
+
"bbox": [
|
| 1036 |
+
176,
|
| 1037 |
+
531,
|
| 1038 |
+
821,
|
| 1039 |
+
574
|
| 1040 |
+
],
|
| 1041 |
+
"page_idx": 9
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"type": "text",
|
| 1045 |
+
"text": "Alexander Grossmann and Jean Morlet. Decomposition of hardy functions into square integrable wavelets of constant shape. SIAM journal on mathematical analysis, 15(4):723–736, 1984. ",
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
173,
|
| 1048 |
+
582,
|
| 1049 |
+
821,
|
| 1050 |
+
611
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 9
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "Keikichi Hirose and Jianhua Tao. Speech Prosody in Speech Synthesis: Modeling and generation of prosody for high quality and flexible speech synthesis. Springer, 2015. ",
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
174,
|
| 1059 |
+
619,
|
| 1060 |
+
821,
|
| 1061 |
+
648
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 9
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "text",
|
| 1067 |
+
"text": "Keith Ito. The lj speech dataset. https://keithito.com/LJ-Speech-Dataset/, 2017. ",
|
| 1068 |
+
"bbox": [
|
| 1069 |
+
173,
|
| 1070 |
+
656,
|
| 1071 |
+
820,
|
| 1072 |
+
672
|
| 1073 |
+
],
|
| 1074 |
+
"page_idx": 9
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "text",
|
| 1078 |
+
"text": "Chrisina Jayne, Andreas Lanitis, and Chris Christodoulou. One-to-many neural network mapping techniques for face image synthesis. Expert Systems with Applications, 39(10):9778–9787, 2012. ",
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
173,
|
| 1081 |
+
680,
|
| 1082 |
+
823,
|
| 1083 |
+
709
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 9
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "Jaehyeon Kim, Sungwon Kim, Jungil Kong, and Sungroh Yoon. Glow-tts: A generative flow for text-to-speech via monotonic alignment search. arXiv preprint arXiv:2005.11129, 2020. ",
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
171,
|
| 1092 |
+
717,
|
| 1093 |
+
823,
|
| 1094 |
+
747
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 9
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "text",
|
| 1100 |
+
"text": "Sungwon Kim, Sang-gil Lee, Jongyoon Song, Jaehyeon Kim, and Sungroh Yoon. Flowavenet: A generative flow for raw audio. arXiv preprint arXiv:1811.02155, 2018. ",
|
| 1101 |
+
"bbox": [
|
| 1102 |
+
173,
|
| 1103 |
+
755,
|
| 1104 |
+
823,
|
| 1105 |
+
785
|
| 1106 |
+
],
|
| 1107 |
+
"page_idx": 9
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "text",
|
| 1111 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 1112 |
+
"bbox": [
|
| 1113 |
+
173,
|
| 1114 |
+
792,
|
| 1115 |
+
823,
|
| 1116 |
+
821
|
| 1117 |
+
],
|
| 1118 |
+
"page_idx": 9
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"type": "text",
|
| 1122 |
+
"text": "Kundan Kumar, Rithesh Kumar, Thibault de Boissiere, Lucas Gestin, Wei Zhen Teoh, Jose Sotelo, Alexandre de Brebisson, Yoshua Bengio, and Aaron C Courville. Melgan: Generative adversarial´ networks for conditional waveform synthesis. In Advances in Neural Information Processing Systems, pp. 14881–14892, 2019. ",
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
173,
|
| 1125 |
+
830,
|
| 1126 |
+
825,
|
| 1127 |
+
886
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 9
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "text",
|
| 1133 |
+
"text": "Adrian Łancucki. Fastpitch: Parallel text-to-speech with pitch prediction. ´ arXiv preprint arXiv:2006.06873, 2020. ",
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
173,
|
| 1136 |
+
895,
|
| 1137 |
+
821,
|
| 1138 |
+
924
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 9
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "text",
|
| 1144 |
+
"text": "Naihan Li, Shujie Liu, Yanqing Liu, Sheng Zhao, and Ming Liu. Neural speech synthesis with transformer network. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 6706–6713, 2019. ",
|
| 1145 |
+
"bbox": [
|
| 1146 |
+
173,
|
| 1147 |
+
103,
|
| 1148 |
+
823,
|
| 1149 |
+
146
|
| 1150 |
+
],
|
| 1151 |
+
"page_idx": 10
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"type": "text",
|
| 1155 |
+
"text": "Dan Lim, Won Jang, Hyeyeong Park, Bongwan Kim, Jesam Yoon, et al. Jdi-t: Jointly trained duration informed transformer for text-to-speech without explicit alignment. arXiv preprint arXiv:2005.07799, 2020. ",
|
| 1156 |
+
"bbox": [
|
| 1157 |
+
173,
|
| 1158 |
+
156,
|
| 1159 |
+
823,
|
| 1160 |
+
199
|
| 1161 |
+
],
|
| 1162 |
+
"page_idx": 10
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"type": "text",
|
| 1166 |
+
"text": "Philipos C Loizou. Speech quality assessment. In Multimedia analysis, processing and communications, pp. 623–654. Springer, 2011. ",
|
| 1167 |
+
"bbox": [
|
| 1168 |
+
171,
|
| 1169 |
+
209,
|
| 1170 |
+
821,
|
| 1171 |
+
238
|
| 1172 |
+
],
|
| 1173 |
+
"page_idx": 10
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"type": "text",
|
| 1177 |
+
"text": "Renqian Luo, Xu Tan, Rui Wang, Tao Qin, Jinzhu Li, Sheng Zhao, Enhong Chen, and Tie-Yan Liu. Lightspeech: Lightweight and fast text to speech with neural architecture search. In 2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 2021. ",
|
| 1178 |
+
"bbox": [
|
| 1179 |
+
173,
|
| 1180 |
+
247,
|
| 1181 |
+
826,
|
| 1182 |
+
291
|
| 1183 |
+
],
|
| 1184 |
+
"page_idx": 10
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"type": "text",
|
| 1188 |
+
"text": "Michael McAuliffe, Michaela Socolof, Sarah Mihuc, Michael Wagner, and Morgan Sonderegger. Montreal forced aligner: Trainable text-speech alignment using kaldi. In Interspeech, pp. 498– 502, 2017. ",
|
| 1189 |
+
"bbox": [
|
| 1190 |
+
173,
|
| 1191 |
+
301,
|
| 1192 |
+
823,
|
| 1193 |
+
343
|
| 1194 |
+
],
|
| 1195 |
+
"page_idx": 10
|
| 1196 |
+
},
|
| 1197 |
+
{
|
| 1198 |
+
"type": "text",
|
| 1199 |
+
"text": "Chenfeng Miao, Shuang Liang, Minchuan Chen, Jun Ma, Shaojun Wang, and Jing Xiao. Flowtts: A non-autoregressive network for text to speech based on flow. In ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 7209–7213. IEEE, 2020. ",
|
| 1200 |
+
"bbox": [
|
| 1201 |
+
173,
|
| 1202 |
+
353,
|
| 1203 |
+
825,
|
| 1204 |
+
410
|
| 1205 |
+
],
|
| 1206 |
+
"page_idx": 10
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"type": "text",
|
| 1210 |
+
"text": "Huaiping Ming, Dongyan Huang, Lei Xie, Jie Wu, Minghui Dong, and Haizhou Li. Deep bidirectional lstm modeling of timbre and prosody for emotional voice conversion. 2016. ",
|
| 1211 |
+
"bbox": [
|
| 1212 |
+
171,
|
| 1213 |
+
420,
|
| 1214 |
+
820,
|
| 1215 |
+
450
|
| 1216 |
+
],
|
| 1217 |
+
"page_idx": 10
|
| 1218 |
+
},
|
| 1219 |
+
{
|
| 1220 |
+
"type": "text",
|
| 1221 |
+
"text": "Meinard Muller. Dynamic time warping. ¨ Information retrieval for music and motion, pp. 69–84, 2007. ",
|
| 1222 |
+
"bbox": [
|
| 1223 |
+
173,
|
| 1224 |
+
460,
|
| 1225 |
+
823,
|
| 1226 |
+
488
|
| 1227 |
+
],
|
| 1228 |
+
"page_idx": 10
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"type": "text",
|
| 1232 |
+
"text": "Oliver Niebuhr and Radek Skarnitzl. Measuring a speaker’s acoustic correlates of pitch–but which? a contrastive analysis based on perceived speaker charisma. In Proceedings of 19th International Congress of Phonetic Sciences, 2019. ",
|
| 1233 |
+
"bbox": [
|
| 1234 |
+
173,
|
| 1235 |
+
500,
|
| 1236 |
+
826,
|
| 1237 |
+
541
|
| 1238 |
+
],
|
| 1239 |
+
"page_idx": 10
|
| 1240 |
+
},
|
| 1241 |
+
{
|
| 1242 |
+
"type": "text",
|
| 1243 |
+
"text": "Aaron van den Oord, Yazhe Li, Igor Babuschkin, Karen Simonyan, Oriol Vinyals, Koray Kavukcuoglu, George van den Driessche, Edward Lockhart, Luis C Cobo, Florian Stimberg, et al. Parallel wavenet: Fast high-fidelity speech synthesis. arXiv preprint arXiv:1711.10433, 2017. ",
|
| 1244 |
+
"bbox": [
|
| 1245 |
+
174,
|
| 1246 |
+
551,
|
| 1247 |
+
821,
|
| 1248 |
+
594
|
| 1249 |
+
],
|
| 1250 |
+
"page_idx": 10
|
| 1251 |
+
},
|
| 1252 |
+
{
|
| 1253 |
+
"type": "text",
|
| 1254 |
+
"text": "Kainan Peng, Wei Ping, Zhao Song, and Kexin Zhao. Parallel neural text-to-speech. arXiv preprint arXiv:1905.08459, 2019. ",
|
| 1255 |
+
"bbox": [
|
| 1256 |
+
171,
|
| 1257 |
+
604,
|
| 1258 |
+
823,
|
| 1259 |
+
633
|
| 1260 |
+
],
|
| 1261 |
+
"page_idx": 10
|
| 1262 |
+
},
|
| 1263 |
+
{
|
| 1264 |
+
"type": "text",
|
| 1265 |
+
"text": "Wei Ping, Kainan Peng, Andrew Gibiansky, Sercan O. Arik, Ajay Kannan, Sharan Narang, Jonathan Raiman, and John Miller. Deep voice 3: 2000-speaker neural text-to-speech. In International Conference on Learning Representations, 2018. ",
|
| 1266 |
+
"bbox": [
|
| 1267 |
+
174,
|
| 1268 |
+
643,
|
| 1269 |
+
825,
|
| 1270 |
+
688
|
| 1271 |
+
],
|
| 1272 |
+
"page_idx": 10
|
| 1273 |
+
},
|
| 1274 |
+
{
|
| 1275 |
+
"type": "text",
|
| 1276 |
+
"text": "Wei Ping, Kainan Peng, and Jitong Chen. Clarinet: Parallel wave generation in end-to-end text-tospeech. In International Conference on Learning Representations, 2019. ",
|
| 1277 |
+
"bbox": [
|
| 1278 |
+
174,
|
| 1279 |
+
696,
|
| 1280 |
+
823,
|
| 1281 |
+
727
|
| 1282 |
+
],
|
| 1283 |
+
"page_idx": 10
|
| 1284 |
+
},
|
| 1285 |
+
{
|
| 1286 |
+
"type": "text",
|
| 1287 |
+
"text": "Ryan Prenger, Rafael Valle, and Bryan Catanzaro. Waveglow: A flow-based generative network for speech synthesis. In ICASSP 2019-2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 3617–3621. IEEE, 2019. ",
|
| 1288 |
+
"bbox": [
|
| 1289 |
+
173,
|
| 1290 |
+
736,
|
| 1291 |
+
825,
|
| 1292 |
+
779
|
| 1293 |
+
],
|
| 1294 |
+
"page_idx": 10
|
| 1295 |
+
},
|
| 1296 |
+
{
|
| 1297 |
+
"type": "text",
|
| 1298 |
+
"text": "Yi Ren, Yangjun Ruan, Xu Tan, Tao Qin, Sheng Zhao, Zhou Zhao, and Tie-Yan Liu. Fastspeech: Fast, robust and controllable text to speech. In Advances in Neural Information Processing Systems, pp. 3165–3174, 2019. ",
|
| 1299 |
+
"bbox": [
|
| 1300 |
+
174,
|
| 1301 |
+
789,
|
| 1302 |
+
823,
|
| 1303 |
+
832
|
| 1304 |
+
],
|
| 1305 |
+
"page_idx": 10
|
| 1306 |
+
},
|
| 1307 |
+
{
|
| 1308 |
+
"type": "text",
|
| 1309 |
+
"text": "Harold Ryan. Ricker, ormsby; klander, bntterwo-a choice of wavelets, 1994. ",
|
| 1310 |
+
"bbox": [
|
| 1311 |
+
173,
|
| 1312 |
+
842,
|
| 1313 |
+
674,
|
| 1314 |
+
857
|
| 1315 |
+
],
|
| 1316 |
+
"page_idx": 10
|
| 1317 |
+
},
|
| 1318 |
+
{
|
| 1319 |
+
"type": "text",
|
| 1320 |
+
"text": "Jonathan Shen, Ruoming Pang, Ron J Weiss, Mike Schuster, Navdeep Jaitly, Zongheng Yang, Zhifeng Chen, Yu Zhang, Yuxuan Wang, Rj Skerrv-Ryan, et al. Natural tts synthesis by conditioning wavenet on mel spectrogram predictions. In 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 4779–4783. IEEE, 2018. ",
|
| 1321 |
+
"bbox": [
|
| 1322 |
+
174,
|
| 1323 |
+
867,
|
| 1324 |
+
825,
|
| 1325 |
+
924
|
| 1326 |
+
],
|
| 1327 |
+
"page_idx": 10
|
| 1328 |
+
},
|
| 1329 |
+
{
|
| 1330 |
+
"type": "text",
|
| 1331 |
+
"text": "Hao Sun, Xu Tan, Jun-Wei Gan, Hongzhi Liu, Sheng Zhao, Tao Qin, and Tie-Yan Liu. Token-level ensemble distillation for grapheme-to-phoneme conversion. In INTERSPEECH, 2019. ",
|
| 1332 |
+
"bbox": [
|
| 1333 |
+
171,
|
| 1334 |
+
103,
|
| 1335 |
+
823,
|
| 1336 |
+
132
|
| 1337 |
+
],
|
| 1338 |
+
"page_idx": 11
|
| 1339 |
+
},
|
| 1340 |
+
{
|
| 1341 |
+
"type": "text",
|
| 1342 |
+
"text": "Antti Santeri Suni, Daniel Aalto, Tuomo Raitio, Paavo Alku, Martti Vainio, et al. Wavelets for intonation modeling in hmm speech synthesis. In 8th ISCA Workshop on Speech Synthesis, Proceedings, Barcelona, August 31-September 2, 2013. ISCA, 2013. ",
|
| 1343 |
+
"bbox": [
|
| 1344 |
+
174,
|
| 1345 |
+
141,
|
| 1346 |
+
823,
|
| 1347 |
+
184
|
| 1348 |
+
],
|
| 1349 |
+
"page_idx": 11
|
| 1350 |
+
},
|
| 1351 |
+
{
|
| 1352 |
+
"type": "text",
|
| 1353 |
+
"text": "Franz B Tuteur. Wavelet transformations in signal detection. IFAC Proceedings Volumes, 21(9): 1061–1065, 1988. ",
|
| 1354 |
+
"bbox": [
|
| 1355 |
+
168,
|
| 1356 |
+
193,
|
| 1357 |
+
823,
|
| 1358 |
+
222
|
| 1359 |
+
],
|
| 1360 |
+
"page_idx": 11
|
| 1361 |
+
},
|
| 1362 |
+
{
|
| 1363 |
+
"type": "text",
|
| 1364 |
+
"text": "Aaron Van Den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, ¨ Nal Kalchbrenner, Andrew W Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. SSW, 125, 2016. ",
|
| 1365 |
+
"bbox": [
|
| 1366 |
+
173,
|
| 1367 |
+
231,
|
| 1368 |
+
823,
|
| 1369 |
+
272
|
| 1370 |
+
],
|
| 1371 |
+
"page_idx": 11
|
| 1372 |
+
},
|
| 1373 |
+
{
|
| 1374 |
+
"type": "text",
|
| 1375 |
+
"text": "Aaron Van den Oord, Nal Kalchbrenner, Lasse Espeholt, Oriol Vinyals, Alex Graves, et al. Conditional image generation with pixelcnn decoders. In Advances in neural information processing systems, pp. 4790–4798, 2016. ",
|
| 1376 |
+
"bbox": [
|
| 1377 |
+
173,
|
| 1378 |
+
281,
|
| 1379 |
+
823,
|
| 1380 |
+
324
|
| 1381 |
+
],
|
| 1382 |
+
"page_idx": 11
|
| 1383 |
+
},
|
| 1384 |
+
{
|
| 1385 |
+
"type": "text",
|
| 1386 |
+
"text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pp. 5998–6008, 2017. ",
|
| 1387 |
+
"bbox": [
|
| 1388 |
+
173,
|
| 1389 |
+
333,
|
| 1390 |
+
823,
|
| 1391 |
+
376
|
| 1392 |
+
],
|
| 1393 |
+
"page_idx": 11
|
| 1394 |
+
},
|
| 1395 |
+
{
|
| 1396 |
+
"type": "text",
|
| 1397 |
+
"text": "Yuxuan Wang, RJ Skerry-Ryan, Daisy Stanton, Yonghui Wu, Ron J Weiss, Navdeep Jaitly, Zongheng Yang, Ying Xiao, Zhifeng Chen, Samy Bengio, et al. Tacotron: Towards end-to-end speech synthesis. arXiv preprint arXiv:1703.10135, 2017. ",
|
| 1398 |
+
"bbox": [
|
| 1399 |
+
174,
|
| 1400 |
+
385,
|
| 1401 |
+
823,
|
| 1402 |
+
428
|
| 1403 |
+
],
|
| 1404 |
+
"page_idx": 11
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"type": "text",
|
| 1408 |
+
"text": "Ryuichi Yamamoto, Eunwoo Song, and Jae-Min Kim. Parallel wavegan: A fast waveform generation model based on generative adversarial networks with multi-resolution spectrogram. In ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 6199–6203. IEEE, 2020. ",
|
| 1409 |
+
"bbox": [
|
| 1410 |
+
173,
|
| 1411 |
+
435,
|
| 1412 |
+
826,
|
| 1413 |
+
493
|
| 1414 |
+
],
|
| 1415 |
+
"page_idx": 11
|
| 1416 |
+
},
|
| 1417 |
+
{
|
| 1418 |
+
"type": "text",
|
| 1419 |
+
"text": "Heiga Ze, Andrew Senior, and Mike Schuster. Statistical parametric speech synthesis using deep neural networks. In 2013 ieee international conference on acoustics, speech and signal processing, pp. 7962–7966. IEEE, 2013. ",
|
| 1420 |
+
"bbox": [
|
| 1421 |
+
176,
|
| 1422 |
+
501,
|
| 1423 |
+
823,
|
| 1424 |
+
545
|
| 1425 |
+
],
|
| 1426 |
+
"page_idx": 11
|
| 1427 |
+
},
|
| 1428 |
+
{
|
| 1429 |
+
"type": "text",
|
| 1430 |
+
"text": "Zhen Zeng, Jianzong Wang, Ning Cheng, Tian Xia, and Jing Xiao. Aligntts: Efficient feed-forward text-to-speech system without explicit alignment. In ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 6714–6718. IEEE, 2020. ",
|
| 1431 |
+
"bbox": [
|
| 1432 |
+
174,
|
| 1433 |
+
553,
|
| 1434 |
+
823,
|
| 1435 |
+
597
|
| 1436 |
+
],
|
| 1437 |
+
"page_idx": 11
|
| 1438 |
+
},
|
| 1439 |
+
{
|
| 1440 |
+
"type": "text",
|
| 1441 |
+
"text": "Chen Zhang, Yi Ren, Xu Tan, Jinglin Liu, Kejun Zhang, Tao Qin, Sheng Zhao, and Tie-Yan Liu. Denoispeech: Denoising text to speech with frame-level noise modeling. In 2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 2021. ",
|
| 1442 |
+
"bbox": [
|
| 1443 |
+
176,
|
| 1444 |
+
604,
|
| 1445 |
+
821,
|
| 1446 |
+
648
|
| 1447 |
+
],
|
| 1448 |
+
"page_idx": 11
|
| 1449 |
+
},
|
| 1450 |
+
{
|
| 1451 |
+
"type": "text",
|
| 1452 |
+
"text": "Jun-Yan Zhu, Richard Zhang, Deepak Pathak, Trevor Darrell, Alexei A Efros, Oliver Wang, and Eli Shechtman. Toward multimodal image-to-image translation. In Advances in neural information processing systems, pp. 465–476, 2017. ",
|
| 1453 |
+
"bbox": [
|
| 1454 |
+
174,
|
| 1455 |
+
656,
|
| 1456 |
+
825,
|
| 1457 |
+
700
|
| 1458 |
+
],
|
| 1459 |
+
"page_idx": 11
|
| 1460 |
+
},
|
| 1461 |
+
{
|
| 1462 |
+
"type": "text",
|
| 1463 |
+
"text": "A MODEL CONFIGURATION ",
|
| 1464 |
+
"text_level": 1,
|
| 1465 |
+
"bbox": [
|
| 1466 |
+
178,
|
| 1467 |
+
102,
|
| 1468 |
+
419,
|
| 1469 |
+
117
|
| 1470 |
+
],
|
| 1471 |
+
"page_idx": 12
|
| 1472 |
+
},
|
| 1473 |
+
{
|
| 1474 |
+
"type": "text",
|
| 1475 |
+
"text": "Our FastSpeech 2 consists of 4 feed-forward Transformer (FFT) blocks (Ren et al., 2019) in the encoder and the mel-spectrogram decoder. In each FFT block, the dimension of phoneme embeddings and the hidden size of the self-attention are set to 256. The number of attention heads is set to 2 and the kernel sizes of the 1D-convolution in the 2-layer convolutional network after the self-attention layer are set to 9 and 1, with input/output size of 256/1024 for the first layer and 1024/256 in the second layer. The size of the phoneme vocabulary is 76, including punctuations. In the variance predictor, the kernel sizes of the 1D-convolution are set to 3, with input/output sizes of 256/256 for both layers and the dropout rate is set to 0.5. Our waveform decoder consists of 1-layer transposed 1D-convolution with filter size 64 and 30 dilated residual convolution blocks, whose skip channel size and kernel size of 1D-convolution are set to 64 and 3. The configurations of the discriminator in FastSpeech 2s are the same as Parallel WaveGAN (Yamamoto et al., 2020). We list hyperparameters and configurations of all models used in our experiments in Table 7. ",
|
| 1476 |
+
"bbox": [
|
| 1477 |
+
174,
|
| 1478 |
+
137,
|
| 1479 |
+
825,
|
| 1480 |
+
304
|
| 1481 |
+
],
|
| 1482 |
+
"page_idx": 12
|
| 1483 |
+
},
|
| 1484 |
+
{
|
| 1485 |
+
"type": "table",
|
| 1486 |
+
"img_path": "images/6213612414a35f13d9948ab1b81a42d1fb000b47a73df4cee0ceb013ebdc3431.jpg",
|
| 1487 |
+
"table_caption": [
|
| 1488 |
+
"Table 7: Hyperparameters of Transformer TTS, FastSpeech and FastSpeech 2/2s. "
|
| 1489 |
+
],
|
| 1490 |
+
"table_footnote": [],
|
| 1491 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Hyperparameter</td><td rowspan=1 colspan=1>TransformerTTS</td><td rowspan=1 colspan=1>FastSpeech/FastSpeech 2/2s</td></tr><tr><td rowspan=1 colspan=1>Phoneme Embedding Dimension</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td></tr><tr><td rowspan=1 colspan=1>Pre-netLayers</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>Pre-net Hidden</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>/</td></tr><tr><td rowspan=1 colspan=1>EncoderLayers</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>4</td></tr><tr><td rowspan=1 colspan=1>EncoderHidden</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td></tr><tr><td rowspan=1 colspan=1>Encoder Conv1D Kernel</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>9</td></tr><tr><td rowspan=1 colspan=1>Encoder Conv1D Filter Size</td><td rowspan=1 colspan=1>1024</td><td rowspan=1 colspan=1>1024</td></tr><tr><td rowspan=1 colspan=1>Encoder Attention Heads</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>2</td></tr><tr><td rowspan=1 colspan=1> Mel-Spectrogram Decoder Layers</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>4</td></tr><tr><td rowspan=1 colspan=1>Mel-Spectrogram Decoder Hidden</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td></tr><tr><td rowspan=1 colspan=1>Mel-Spectrogram Decoder Conv1D Kernel</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>9</td></tr><tr><td rowspan=1 colspan=1>Mel-Spectrogram Decoder Conv1D Filter Size</td><td rowspan=1 colspan=1>1024</td><td rowspan=1 colspan=1>1024</td></tr><tr><td rowspan=1 colspan=1>Mel-Spectrogram Decoder Attention Headers</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>2</td></tr><tr><td rowspan=1 colspan=1>Encoder/Decoder Dropout</td><td rowspan=1 colspan=1>0.1</td><td rowspan=1 colspan=1>0.1</td></tr><tr><td rowspan=1 colspan=1>Variance Predictor Conv1DKernel</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>3</td></tr><tr><td rowspan=1 colspan=1>Variance Predictor Conv1DFilter Size</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>256</td></tr><tr><td rowspan=1 colspan=1>Variance Predictor Dropout</td><td rowspan=1 colspan=1>/</td><td rowspan=1 colspan=1>0.5</td></tr><tr><td rowspan=1 colspan=1>Waveform Decoder ConvolutionBlocks</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>30</td></tr><tr><td rowspan=1 colspan=1>Waveform Decoder Dilated Conv1D Kernel size</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>3</td></tr><tr><td rowspan=1 colspan=1>Waveform Decoder Transposed Conv1D Filter Size</td><td rowspan=1 colspan=1>/</td><td rowspan=1 colspan=1>64</td></tr><tr><td rowspan=1 colspan=1>WaveformDecoderSkip Channlel Size</td><td rowspan=1 colspan=1>/</td><td rowspan=1 colspan=1>64</td></tr><tr><td rowspan=1 colspan=1>Batch Size</td><td rowspan=1 colspan=1>48</td><td rowspan=1 colspan=1>48/48/12</td></tr><tr><td rowspan=1 colspan=1>Total Numberof Parameters</td><td rowspan=1 colspan=1>24M</td><td rowspan=1 colspan=1>23M/27M/28M</td></tr></table>",
|
| 1492 |
+
"bbox": [
|
| 1493 |
+
173,
|
| 1494 |
+
324,
|
| 1495 |
+
825,
|
| 1496 |
+
643
|
| 1497 |
+
],
|
| 1498 |
+
"page_idx": 12
|
| 1499 |
+
},
|
| 1500 |
+
{
|
| 1501 |
+
"type": "text",
|
| 1502 |
+
"text": "B TRAINING AND INFERENCE ",
|
| 1503 |
+
"text_level": 1,
|
| 1504 |
+
"bbox": [
|
| 1505 |
+
176,
|
| 1506 |
+
712,
|
| 1507 |
+
436,
|
| 1508 |
+
727
|
| 1509 |
+
],
|
| 1510 |
+
"page_idx": 12
|
| 1511 |
+
},
|
| 1512 |
+
{
|
| 1513 |
+
"type": "text",
|
| 1514 |
+
"text": "We train FastSpeech 2 on 1 NVIDIA V100 GPU, with batchsize of 48 sentences. We use the Adam optimizer (Kingma & Ba, 2014) with $\\beta _ { 1 } = 0 . 9$ , $\\beta _ { 2 } = 0 . 9 8$ , $\\varepsilon = 1 0 ^ { - 9 }$ and follow the same learning rate schedule in Vaswani et al. (2017). It takes $1 6 0 \\mathrm { k }$ steps for training until convergence. In the inference process, the output mel-spectrograms of our FastSpeech 2 are transformed into audio samples using pre-trained Parallel WaveGAN (Yamamoto et al., $2 0 2 0 ) ^ { 9 }$ . For FastSpeech 2s, we train the model on 2 NVIDIA V100 GPUs, with batchsize of 6 sentences on each GPU. The waveform decoder takes the sliced hidden states corresponding to 20,480 waveform sample clips as input. The optimizer and learning rate schedule for FastSpeech 2s are the same as FastSpeech 2. The details of the adversarial training follow Parallel WaveGAN (Yamamoto et al., 2020). It takes $6 0 0 \\mathrm { k }$ steps for training until convergence for FastSpeech 2s. ",
|
| 1515 |
+
"bbox": [
|
| 1516 |
+
174,
|
| 1517 |
+
747,
|
| 1518 |
+
825,
|
| 1519 |
+
887
|
| 1520 |
+
],
|
| 1521 |
+
"page_idx": 12
|
| 1522 |
+
},
|
| 1523 |
+
{
|
| 1524 |
+
"type": "text",
|
| 1525 |
+
"text": "C MODELING PITCH WITH CONTINUOUS WAVELET TRANSFORM ",
|
| 1526 |
+
"text_level": 1,
|
| 1527 |
+
"bbox": [
|
| 1528 |
+
173,
|
| 1529 |
+
101,
|
| 1530 |
+
727,
|
| 1531 |
+
119
|
| 1532 |
+
],
|
| 1533 |
+
"page_idx": 13
|
| 1534 |
+
},
|
| 1535 |
+
{
|
| 1536 |
+
"type": "text",
|
| 1537 |
+
"text": "C.1 CONTINUOUS WAVELET TRANSFORM ",
|
| 1538 |
+
"text_level": 1,
|
| 1539 |
+
"bbox": [
|
| 1540 |
+
176,
|
| 1541 |
+
133,
|
| 1542 |
+
478,
|
| 1543 |
+
148
|
| 1544 |
+
],
|
| 1545 |
+
"page_idx": 13
|
| 1546 |
+
},
|
| 1547 |
+
{
|
| 1548 |
+
"type": "text",
|
| 1549 |
+
"text": "Given a continous pitch contour function $F _ { 0 }$ , we can convert it to pitch spectrogram $W ( \\tau , t )$ using continuous wavelet transform (Tuteur, 1988; Grossmann $\\&$ Morlet, 1984): ",
|
| 1550 |
+
"bbox": [
|
| 1551 |
+
174,
|
| 1552 |
+
160,
|
| 1553 |
+
823,
|
| 1554 |
+
189
|
| 1555 |
+
],
|
| 1556 |
+
"page_idx": 13
|
| 1557 |
+
},
|
| 1558 |
+
{
|
| 1559 |
+
"type": "equation",
|
| 1560 |
+
"img_path": "images/294cd90b8c8915030286471f7b9e8392c20c7f39c20949c995289f68d9a0b1d1.jpg",
|
| 1561 |
+
"text": "$$\nW ( \\tau , t ) = \\tau ^ { - 1 / 2 } \\int _ { - \\infty } ^ { + \\infty } F _ { 0 } ( x ) \\psi ( \\frac { x - t } { \\tau } ) d x\n$$",
|
| 1562 |
+
"text_format": "latex",
|
| 1563 |
+
"bbox": [
|
| 1564 |
+
357,
|
| 1565 |
+
196,
|
| 1566 |
+
640,
|
| 1567 |
+
233
|
| 1568 |
+
],
|
| 1569 |
+
"page_idx": 13
|
| 1570 |
+
},
|
| 1571 |
+
{
|
| 1572 |
+
"type": "text",
|
| 1573 |
+
"text": "where $\\psi$ is the Mexican hat mother wavelet (Ryan, 1994), $F _ { 0 } ( x )$ is the pitch value in position $x$ , $\\tau$ and $t$ are scale and position of wavelet respectively. The original pitch contour $F _ { 0 }$ can be recovered from the wavelet representation $W ( \\tau , t )$ by inverse continuous wavelet transform (iCWT) using the following formula: ",
|
| 1574 |
+
"bbox": [
|
| 1575 |
+
173,
|
| 1576 |
+
247,
|
| 1577 |
+
826,
|
| 1578 |
+
305
|
| 1579 |
+
],
|
| 1580 |
+
"page_idx": 13
|
| 1581 |
+
},
|
| 1582 |
+
{
|
| 1583 |
+
"type": "equation",
|
| 1584 |
+
"img_path": "images/920728e78b0e70118c7a94b24c0e841658b4de33e0f53e2025f7ff848b02c469.jpg",
|
| 1585 |
+
"text": "$$\nF _ { 0 } ( t ) = \\int _ { - \\infty } ^ { + \\infty } \\int _ { 0 } ^ { + \\infty } W \\left( \\tau , t \\right) \\tau ^ { - 5 / 2 } \\psi \\left( \\frac { x - t } { \\tau } \\right) d x d \\tau\n$$",
|
| 1586 |
+
"text_format": "latex",
|
| 1587 |
+
"bbox": [
|
| 1588 |
+
316,
|
| 1589 |
+
311,
|
| 1590 |
+
681,
|
| 1591 |
+
349
|
| 1592 |
+
],
|
| 1593 |
+
"page_idx": 13
|
| 1594 |
+
},
|
| 1595 |
+
{
|
| 1596 |
+
"type": "text",
|
| 1597 |
+
"text": "Suppose that we decompose the pitch contour $F _ { 0 }$ into 10 scales (Ming et al., 2016), $F _ { 0 }$ can be represented by 10 separate components given by: ",
|
| 1598 |
+
"bbox": [
|
| 1599 |
+
173,
|
| 1600 |
+
356,
|
| 1601 |
+
821,
|
| 1602 |
+
385
|
| 1603 |
+
],
|
| 1604 |
+
"page_idx": 13
|
| 1605 |
+
},
|
| 1606 |
+
{
|
| 1607 |
+
"type": "equation",
|
| 1608 |
+
"img_path": "images/936cea555ec9fae93ad7665cfb7c83fc9d823b290cfeca9c105a12cfbfdf1af5.jpg",
|
| 1609 |
+
"text": "$$\nW _ { i } ( t ) = { W ( 2 ^ { i + 1 } \\tau _ { 0 } , t ) ( i + 2 . 5 ) ^ { - 5 / 2 } }\n$$",
|
| 1610 |
+
"text_format": "latex",
|
| 1611 |
+
"bbox": [
|
| 1612 |
+
377,
|
| 1613 |
+
392,
|
| 1614 |
+
620,
|
| 1615 |
+
412
|
| 1616 |
+
],
|
| 1617 |
+
"page_idx": 13
|
| 1618 |
+
},
|
| 1619 |
+
{
|
| 1620 |
+
"type": "text",
|
| 1621 |
+
"text": "where $i = 1 , . . . , 1 0$ and $\\tau _ { 0 } = 5 m s$ , which is originally proposed in Suni et al. (2013). Given 10 wavelet components ${ \\hat { W } } _ { i } ( t )$ , we can recompose pitch contour $\\hat { F } _ { 0 }$ by the following formula (Ming et al., 2016): ",
|
| 1622 |
+
"bbox": [
|
| 1623 |
+
174,
|
| 1624 |
+
419,
|
| 1625 |
+
825,
|
| 1626 |
+
463
|
| 1627 |
+
],
|
| 1628 |
+
"page_idx": 13
|
| 1629 |
+
},
|
| 1630 |
+
{
|
| 1631 |
+
"type": "equation",
|
| 1632 |
+
"img_path": "images/7bd48b7fff7ba570cd0cf157098a21ceaac9c753c5422f816d2730b2f59f4843.jpg",
|
| 1633 |
+
"text": "$$\n\\hat { F _ { 0 } } ( t ) = \\sum _ { i = 1 } ^ { 1 0 } \\hat { W _ { i } } ( t ) ( i + 2 . 5 ) ^ { - 5 / 2 }\n$$",
|
| 1634 |
+
"text_format": "latex",
|
| 1635 |
+
"bbox": [
|
| 1636 |
+
390,
|
| 1637 |
+
463,
|
| 1638 |
+
607,
|
| 1639 |
+
507
|
| 1640 |
+
],
|
| 1641 |
+
"page_idx": 13
|
| 1642 |
+
},
|
| 1643 |
+
{
|
| 1644 |
+
"type": "text",
|
| 1645 |
+
"text": "C.2 IMPLEMENTATION DETAILS ",
|
| 1646 |
+
"text_level": 1,
|
| 1647 |
+
"bbox": [
|
| 1648 |
+
174,
|
| 1649 |
+
522,
|
| 1650 |
+
408,
|
| 1651 |
+
537
|
| 1652 |
+
],
|
| 1653 |
+
"page_idx": 13
|
| 1654 |
+
},
|
| 1655 |
+
{
|
| 1656 |
+
"type": "text",
|
| 1657 |
+
"text": "First we extract the pitch contour using PyWorldVocoder10. Since CWT is very sensitive to discontinuous signals, we preprocess the pitch contour as follows: 1) we use linear interpolation to fill the unvoiced frame in pitch contour; 2) we transform the resulting pitch contour to logarithmic scale; 3) we normalize it to zero mean and unit variance for each utterance, and we have to save the original utterance-level mean and variance for pitch contour reconstruction; and 4) we convert the normalized pitch contour to pitch spectrogram using continuous wavelet transform following Equation 1. ",
|
| 1658 |
+
"bbox": [
|
| 1659 |
+
173,
|
| 1660 |
+
547,
|
| 1661 |
+
647,
|
| 1662 |
+
675
|
| 1663 |
+
],
|
| 1664 |
+
"page_idx": 13
|
| 1665 |
+
},
|
| 1666 |
+
{
|
| 1667 |
+
"type": "text",
|
| 1668 |
+
"text": "As shown in Figure 2, pitch predictor consists of a 2-layer 1Dconvolutional network with ReLU activation, each followed by the layer normalization and the dropout layer, and an extra linear layer to project the hidden states into the pitch spectrogram. To predict the mean/variance of recovered pitch contour for each utterance, we average the hidden states output by the 1D-convolutional network on the time dimension to a global vector and project it to mean and variance using a linear layer. ",
|
| 1669 |
+
"bbox": [
|
| 1670 |
+
174,
|
| 1671 |
+
681,
|
| 1672 |
+
647,
|
| 1673 |
+
792
|
| 1674 |
+
],
|
| 1675 |
+
"page_idx": 13
|
| 1676 |
+
},
|
| 1677 |
+
{
|
| 1678 |
+
"type": "text",
|
| 1679 |
+
"text": "We train the pitch predictor with ground-truth pitch spectrogram and the mean/variance of pitch contour and optimize it with mean square error. During inference, we predict the pitch spectrogram and the mean/variance of recovered pitch contour using pitch predictor, inverse the pitch spectrogram to pitch contour with inverse continuous wavelet transform (iCWT) following Equation 2, and finally denormalize it with the predicted mean/variance. ",
|
| 1680 |
+
"bbox": [
|
| 1681 |
+
174,
|
| 1682 |
+
799,
|
| 1683 |
+
645,
|
| 1684 |
+
897
|
| 1685 |
+
],
|
| 1686 |
+
"page_idx": 13
|
| 1687 |
+
},
|
| 1688 |
+
{
|
| 1689 |
+
"type": "image",
|
| 1690 |
+
"img_path": "images/bf9bed2a42dc1a351732e545084a5a753e996bbef70e51460ae9a1546298efa6.jpg",
|
| 1691 |
+
"image_caption": [
|
| 1692 |
+
"Figure 2: Details in pitch predictor. CWT and iCWT denote continuous wavelet transform and inverse continuous wavelet transform respectively. "
|
| 1693 |
+
],
|
| 1694 |
+
"image_footnote": [],
|
| 1695 |
+
"bbox": [
|
| 1696 |
+
669,
|
| 1697 |
+
531,
|
| 1698 |
+
813,
|
| 1699 |
+
761
|
| 1700 |
+
],
|
| 1701 |
+
"page_idx": 13
|
| 1702 |
+
},
|
| 1703 |
+
{
|
| 1704 |
+
"type": "text",
|
| 1705 |
+
"text": "D CASE STUDY ON PITCH CONTOUR ",
|
| 1706 |
+
"text_level": 1,
|
| 1707 |
+
"bbox": [
|
| 1708 |
+
173,
|
| 1709 |
+
102,
|
| 1710 |
+
496,
|
| 1711 |
+
118
|
| 1712 |
+
],
|
| 1713 |
+
"page_idx": 14
|
| 1714 |
+
},
|
| 1715 |
+
{
|
| 1716 |
+
"type": "text",
|
| 1717 |
+
"text": "In this section, we conduct the case study on pitch contours of the audios generated by different methods. We randomly choose 1 utterance from the test set and plot the pitch countor of groundtruth audio samples and that generated by FastSpeech, FastSpeech 2, FastSpeech $2 s$ in Figure 3. We can see that FastSpeech 2 and 2s can capture the variations in pitch better than FastSpeech thanks to taking pitch information as input. ",
|
| 1718 |
+
"bbox": [
|
| 1719 |
+
174,
|
| 1720 |
+
133,
|
| 1721 |
+
825,
|
| 1722 |
+
204
|
| 1723 |
+
],
|
| 1724 |
+
"page_idx": 14
|
| 1725 |
+
},
|
| 1726 |
+
{
|
| 1727 |
+
"type": "image",
|
| 1728 |
+
"img_path": "images/49fcd4b77521aaa914be775df287f82d91643e9b73be51681aa45eefa274bd8a.jpg",
|
| 1729 |
+
"image_caption": [
|
| 1730 |
+
"Figure 3: Pitch contours extracted from generated and ground-truth audio samples. We only plot the voiced part of pitch contour. The input text is “The worst, which perhaps was the English, was a terrible falling-off from the work of the earlier presses”. "
|
| 1731 |
+
],
|
| 1732 |
+
"image_footnote": [],
|
| 1733 |
+
"bbox": [
|
| 1734 |
+
187,
|
| 1735 |
+
220,
|
| 1736 |
+
808,
|
| 1737 |
+
500
|
| 1738 |
+
],
|
| 1739 |
+
"page_idx": 14
|
| 1740 |
+
},
|
| 1741 |
+
{
|
| 1742 |
+
"type": "text",
|
| 1743 |
+
"text": "E VARIANCE CONTROL ",
|
| 1744 |
+
"text_level": 1,
|
| 1745 |
+
"bbox": [
|
| 1746 |
+
174,
|
| 1747 |
+
582,
|
| 1748 |
+
383,
|
| 1749 |
+
598
|
| 1750 |
+
],
|
| 1751 |
+
"page_idx": 14
|
| 1752 |
+
},
|
| 1753 |
+
{
|
| 1754 |
+
"type": "text",
|
| 1755 |
+
"text": "FastSpeech 2 and 2s introduce several variance information to ease the one-to-many mapping problem in TTS. As a byproduct, they also make the synthesized speech more controllable and can be used to manually control pitch, duration and energy (volume) of synthesized audio. As a demonstration, we manipulate pitch input to control the pitch of synthesized speech in this subsubsection. We show the mel-spectrograms before and after the pitch manipulation in Figure 4. From the samples, we can see that FastSpeech 2 generates high-quality mel-spectrograms after adjusting the $\\hat { F } _ { 0 }$ from 0.75 to 1.50 times. Such manipulation can also be applied to FastSpeech 2s and the results are put in the supplementary materials. We also put the audio samples controlled by other variance information in supplementary materials. ",
|
| 1756 |
+
"bbox": [
|
| 1757 |
+
173,
|
| 1758 |
+
613,
|
| 1759 |
+
825,
|
| 1760 |
+
741
|
| 1761 |
+
],
|
| 1762 |
+
"page_idx": 14
|
| 1763 |
+
},
|
| 1764 |
+
{
|
| 1765 |
+
"type": "image",
|
| 1766 |
+
"img_path": "images/5968f23f25df75c0e7431a42294dd9f4f6378cc2bbfd946461216707be862aa9.jpg",
|
| 1767 |
+
"image_caption": [
|
| 1768 |
+
"Figure 4: The mel-spectrograms of the voice with different $\\hat { F } _ { 0 }$ . $F _ { 0 }$ is the fundamental frequency of original audio. The red curves denote $\\hat { F } _ { 0 }$ contours. The input text is “They discarded this for a more completely Roman and far less beautiful letter.” "
|
| 1769 |
+
],
|
| 1770 |
+
"image_footnote": [],
|
| 1771 |
+
"bbox": [
|
| 1772 |
+
183,
|
| 1773 |
+
755,
|
| 1774 |
+
813,
|
| 1775 |
+
847
|
| 1776 |
+
],
|
| 1777 |
+
"page_idx": 14
|
| 1778 |
+
}
|
| 1779 |
+
]
|
parse/train/piLPYqxtWuA/piLPYqxtWuA_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/piLPYqxtWuA/piLPYqxtWuA_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vlm/train/-1AAgrS5FF/0.png
ADDED
|
Git LFS Details
|
vlm/train/-1AAgrS5FF/1.png
ADDED
|
Git LFS Details
|
vlm/train/-1AAgrS5FF/10.png
ADDED
|
Git LFS Details
|
vlm/train/-1AAgrS5FF/11.png
ADDED
|
Git LFS Details
|
vlm/train/-1AAgrS5FF/12.png
ADDED
|
Git LFS Details
|
vlm/train/-1AAgrS5FF/13.png
ADDED
|
Git LFS Details
|
vlm/train/-1AAgrS5FF/14.png
ADDED
|
Git LFS Details
|
vlm/train/-1AAgrS5FF/2.png
ADDED
|
Git LFS Details
|
vlm/train/-1AAgrS5FF/3.png
ADDED
|
Git LFS Details
|
vlm/train/-1AAgrS5FF/4.png
ADDED
|
Git LFS Details
|
vlm/train/-1AAgrS5FF/5.png
ADDED
|
Git LFS Details
|
vlm/train/-1AAgrS5FF/6.png
ADDED
|
Git LFS Details
|
vlm/train/-1AAgrS5FF/7.png
ADDED
|
Git LFS Details
|
vlm/train/-1AAgrS5FF/8.png
ADDED
|
Git LFS Details
|
vlm/train/-1AAgrS5FF/9.png
ADDED
|
Git LFS Details
|
vlm/train/-_FVMKvxVCQo1/0.png
ADDED
|
Git LFS Details
|
vlm/train/-_FVMKvxVCQo1/1.png
ADDED
|
Git LFS Details
|
vlm/train/-_FVMKvxVCQo1/10.png
ADDED
|
Git LFS Details
|
vlm/train/-_FVMKvxVCQo1/11.png
ADDED
|
Git LFS Details
|
vlm/train/-_FVMKvxVCQo1/2.png
ADDED
|
Git LFS Details
|
vlm/train/-_FVMKvxVCQo1/3.png
ADDED
|
Git LFS Details
|
vlm/train/-_FVMKvxVCQo1/4.png
ADDED
|
Git LFS Details
|
vlm/train/-_FVMKvxVCQo1/5.png
ADDED
|
Git LFS Details
|
vlm/train/-_FVMKvxVCQo1/6.png
ADDED
|
Git LFS Details
|
vlm/train/-_FVMKvxVCQo1/7.png
ADDED
|
Git LFS Details
|
vlm/train/-_FVMKvxVCQo1/8.png
ADDED
|
Git LFS Details
|
vlm/train/-_FVMKvxVCQo1/9.png
ADDED
|
Git LFS Details
|
vlm/train/3WbWmdTd8fN/0.png
ADDED
|
Git LFS Details
|
vlm/train/3WbWmdTd8fN/1.png
ADDED
|
Git LFS Details
|
vlm/train/3WbWmdTd8fN/10.png
ADDED
|
Git LFS Details
|