ZHANGYUXUAN-zR commited on
Commit
8f116bc
·
verified ·
1 Parent(s): b3967f1

Add files using upload-large-folder tool

Browse files
parse/train/B1MbDj0ctQ/B1MbDj0ctQ_content_list.json ADDED
@@ -0,0 +1,1827 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "SWITCHING LINEAR DYNAMICS FOR VARIATIONAL BAYES FILTERING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 823,
10
+ 145
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "System identification of complex and nonlinear systems is a central problem for model predictive control and model-based reinforcement learning. Despite their complexity, such systems can often be approximated well by a set of linear dynamical systems if broken into appropriate subsequences. This mechanism not only helps us find good approximations of dynamics, but also gives us deeper insight into the underlying system. Leveraging Bayesian inference and Variational Autoencoders, we show how to learn a richer and more meaningful state space, e.g. encoding joint constraints and collisions with walls in a maze, from partial and high-dimensional observations. This representation translates into a gain of accuracy of the learned dynamics which we showcase on various simulated tasks. ",
40
+ "bbox": [
41
+ 233,
42
+ 265,
43
+ 766,
44
+ 405
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 430,
55
+ 334,
56
+ 446
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Learning dynamics from raw data (also known as system identification) is a key component of model predictive control and model-based reinforcement learning. Problematically, environments of interest often give rise to very complex and highly nonlinear dynamics which are seemingly difficult to approximate. However, switching linear dynamical systems (SLDS) approaches claim that those environments can often be broken down into simpler units made up of areas of equal and linear dynamics (Ackerson & Fu, 1970; Chang & Athans, 1978). Not only are those approaches capable of good predictive performance, which often is the sole goal of learning a system’s dynamics, they also encode valuable information into so called switching variables which determine the dynamics of the next transition. For example, when looking at the movement of an arm, one is intuitively aware of certain restrictions of possible movements, e.g. constraints to the movement due to joint constraints or obstacles. The knowledge is present without the need to simulate; it’s explicit. Exactly this kind of information will be encoded when successfully learning switching dynamics. Our goal in this work will therefore entail the search for richer representations in the form of latent state space models which encode knowledge about the underlying system dynamics. In turn, we expect this to improve the accuracy of our simulation as well. Such a representation alone could then be used in a reinforcement learning approach that possibly only takes advantage of the learned latent features but not necessarily its learned dynamics. ",
63
+ "bbox": [
64
+ 174,
65
+ 462,
66
+ 825,
67
+ 698
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "To learn richer representations, we identify one common problem with prevalent recurrent Variational Autoencoder models (Karl et al., 2017a; Krishnan et al., 2015; Chung et al., 2015; Fraccaro et al., 2016): the non-probabilistic treatment of the transition dynamics often modeled by a powerful nonlinear function approximator. From the history of the Autoencoder to the Variational Autoencoder, we know that in order to detect features in an unsupervised manner, probabilistic treatment of the latent space is paramount. As our starting point, we will build on previously proposed approaches by Krishnan et al. (2017) and Karl et al. (2017a). The latter already made use of locally linear dynamics, but only in a deterministic fashion. We extend their approaches by a stochastic switching LDS model and show that such treatment is vital for learning richer representations and simulation accuracy. ",
74
+ "bbox": [
75
+ 174,
76
+ 705,
77
+ 825,
78
+ 830
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "2 BACKGROUND ",
85
+ "text_level": 1,
86
+ "bbox": [
87
+ 176,
88
+ 849,
89
+ 326,
90
+ 866
91
+ ],
92
+ "page_idx": 0
93
+ },
94
+ {
95
+ "type": "text",
96
+ "text": "We consider discretized time-series data consisting of continuous observations $x _ { t } \\in \\mathcal { X } \\subset \\mathbb { R } ^ { n _ { x } }$ and control inputs $u _ { t } \\in \\mathcal { U } \\subset \\mathbb { R } ^ { n _ { u } }$ that we would like to model by corresponding latent states $z _ { t } \\in \\mathcal { Z } \\subset \\mathbb { R } ^ { n _ { z } }$ . We’ll denote sequences of variables by $x _ { 1 : T } = ( x _ { 1 } , x _ { 2 } , . . . , x _ { T } )$ . ",
97
+ "bbox": [
98
+ 176,
99
+ 882,
100
+ 823,
101
+ 924
102
+ ],
103
+ "page_idx": 0
104
+ },
105
+ {
106
+ "type": "image",
107
+ "img_path": "images/da18197c9717341f6caf03dbb955c01e82140562065970885fef03304c9f77aa.jpg",
108
+ "image_caption": [
109
+ "Figure 1: (a) $s _ { t }$ denote discrete switch variables, $z _ { t }$ are continuous latent variables, $x _ { t }$ continuous observed variables, $u _ { t }$ are (optional) continuous control inputs. (b) By introducing a special latent variable $w$ used for initial state inference, we want to make explicit that the first step is treated differently from the rest of the sequence. "
110
+ ],
111
+ "image_footnote": [],
112
+ "bbox": [
113
+ 225,
114
+ 99,
115
+ 771,
116
+ 236
117
+ ],
118
+ "page_idx": 1
119
+ },
120
+ {
121
+ "type": "text",
122
+ "text": "2.1 SWITCHING LINEAR DYNAMICAL SYSTEMS ",
123
+ "text_level": 1,
124
+ "bbox": [
125
+ 178,
126
+ 328,
127
+ 509,
128
+ 342
129
+ ],
130
+ "page_idx": 1
131
+ },
132
+ {
133
+ "type": "text",
134
+ "text": "Switching Linear Dynamical System models (SLDS) enable us to model nonlinear time series data by splitting it into sequences of linear dynamical models. At each time $t = 1 , 2 , . . . , T$ , a discrete switch variable $s _ { t } \\in { 1 , . . . , M }$ chooses of a set LDSs a system which is to be used to transform our continuous latent state $z _ { t }$ to the next time step (Barber, 2012). ",
135
+ "bbox": [
136
+ 173,
137
+ 353,
138
+ 825,
139
+ 410
140
+ ],
141
+ "page_idx": 1
142
+ },
143
+ {
144
+ "type": "equation",
145
+ "img_path": "images/528c362d6cd7f4191ab6bb40399b4ce081249e1a532df6581c5afc611e067a34.jpg",
146
+ "text": "$$\n\\begin{array} { r l r l } & { z _ { t } = A ( s _ { t } ) z _ { t - 1 } + B ( s _ { t } ) u _ { t - 1 } + \\epsilon ( s _ { t } ) \\quad } & & { \\epsilon ( s _ { t } ) \\sim { \\mathcal N } ( 0 , Q ( s _ { t } ) ) } \\\\ & { x _ { t } = H ( s _ { t } ) z _ { t } + \\eta ( s _ { t } ) \\quad } & & { \\eta ( s _ { t } ) \\sim { \\mathcal N } ( 0 , R ( s _ { t } ) ) } \\end{array}\n$$",
147
+ "text_format": "latex",
148
+ "bbox": [
149
+ 279,
150
+ 411,
151
+ 720,
152
+ 450
153
+ ],
154
+ "page_idx": 1
155
+ },
156
+ {
157
+ "type": "text",
158
+ "text": "Here $A \\in \\mathbb { R } ^ { n _ { z } \\times n _ { z } }$ is the state matrix, $B \\in \\mathbb { R } ^ { n _ { z } \\times n _ { u } }$ control matrix, $\\epsilon$ the transition noise with covariance matrix $Q$ and $\\eta$ the emission/sensor noise with covariance matrix $R$ . Finally, the observation matrix $H \\in \\mathbb { R } ^ { n _ { x } \\times n _ { z } }$ defines a linear mapping from latent to observation space which we will replace by a nonlinear transformation parameterized by a neural net. These equations imply the following joint distribution: ",
159
+ "bbox": [
160
+ 173,
161
+ 450,
162
+ 826,
163
+ 522
164
+ ],
165
+ "page_idx": 1
166
+ },
167
+ {
168
+ "type": "equation",
169
+ "img_path": "images/1f4d07b243b40a6c4de193d05428698c2f7a671afc77f1609982111863707b7a.jpg",
170
+ "text": "$$\np \\left( { x _ { 1 : T } , z _ { 1 : T } , s _ { 1 : T } } \\mid { u _ { 1 : T } } \\right) = \\prod _ { t = 1 } ^ { T } p \\left( { x _ { t } } \\mid { z _ { t } } \\right) p \\left( { z _ { t } } \\mid { z _ { t - 1 } , u _ { t - 1 } , s _ { t } } \\right) p \\left( { s _ { t } } \\mid { z _ { t - 1 } , u _ { t - 1 } , s _ { t - 1 } } \\right)\n$$",
171
+ "text_format": "latex",
172
+ "bbox": [
173
+ 210,
174
+ 525,
175
+ 785,
176
+ 568
177
+ ],
178
+ "page_idx": 1
179
+ },
180
+ {
181
+ "type": "text",
182
+ "text": "with $p ( z _ { 1 } \\mid z _ { 0 } , u _ { 0 } , s _ { 1 } ) = p ( z _ { 1 } )$ being the initial state distribution. The corresponding graphical model is shown in figure 1a. ",
183
+ "bbox": [
184
+ 173,
185
+ 570,
186
+ 825,
187
+ 599
188
+ ],
189
+ "page_idx": 1
190
+ },
191
+ {
192
+ "type": "text",
193
+ "text": "2.2 STOCHASTIC GRADIENT VARIATIONAL BAYES ",
194
+ "text_level": 1,
195
+ "bbox": [
196
+ 173,
197
+ 614,
198
+ 534,
199
+ 630
200
+ ],
201
+ "page_idx": 1
202
+ },
203
+ {
204
+ "type": "equation",
205
+ "img_path": "images/6910e38a813a46afc897c97aa82c998dfe1d244bb5129735a0af5fbd3226bb32.jpg",
206
+ "text": "$$\np ( x ) = \\int p ( x , z ) \\mathrm { d } z = \\int p ( x \\mid z ) p ( z ) \\mathrm { d } z\n$$",
207
+ "text_format": "latex",
208
+ "bbox": [
209
+ 357,
210
+ 637,
211
+ 640,
212
+ 670
213
+ ],
214
+ "page_idx": 1
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "Given the simple graphical model in equation (3), Kingma & Welling (2014) and Rezende et al. (2014) introduced the Variational Autoencoder (VAE) which overcomes the intractability of posterior inference of $q ( z \\mid x )$ by maximizing the evidence lower bound (ELBO) of the model log-likelihood. ",
219
+ "bbox": [
220
+ 173,
221
+ 670,
222
+ 826,
223
+ 712
224
+ ],
225
+ "page_idx": 1
226
+ },
227
+ {
228
+ "type": "equation",
229
+ "img_path": "images/f54fdc0841f282a006b20737fadbe7cc3d26f28c1642d92b94b7e5ac9bc9e9bf.jpg",
230
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { E L B O } } ( x ; \\theta , \\phi ) = \\mathbb { E } _ { q _ { \\phi } ( z | x ) } [ \\ln p _ { \\theta } ( x \\mid z ) ] - D _ { \\mathrm { K L } } ( q _ { \\phi } ( z \\mid x ) \\mid | p ( z ) ) \\le \\log p ( x )\n$$",
231
+ "text_format": "latex",
232
+ "bbox": [
233
+ 243,
234
+ 714,
235
+ 754,
236
+ 733
237
+ ],
238
+ "page_idx": 1
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "Their main innovation was to approximate the intractable posterior distribution by a recognition network $q _ { \\phi } ( z | x )$ from which they can sample via the reparameterization trick to allow for stochastic backpropagation through both the recognition and generative model at once. Assuming that the latent state is normally distributed, a simple transformation allows us to obtain a Monte Carlo gradient estimate of $\\mathbb { E } _ { q _ { \\phi } ( z | x ) } \\left[ \\ln p _ { \\theta } ( x | z ) \\right]$ w.r.t. to $\\phi$ . Given that $z \\sim \\mathcal { N } ( \\mu , \\sigma ^ { 2 } )$ , we can generate samples by drawing from an auxiliary variable $\\epsilon \\sim \\mathcal { N } ( 0 , 1 )$ and applying the deterministic and differentiable transformation $z = \\mu + \\sigma \\epsilon$ . ",
243
+ "bbox": [
244
+ 173,
245
+ 734,
246
+ 825,
247
+ 835
248
+ ],
249
+ "page_idx": 1
250
+ },
251
+ {
252
+ "type": "text",
253
+ "text": "2.3 THE CONCRETE DISTRIBUTION ",
254
+ "text_level": 1,
255
+ "bbox": [
256
+ 176,
257
+ 849,
258
+ 428,
259
+ 864
260
+ ],
261
+ "page_idx": 1
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "One simple and efficient way to obtain samples $d$ from a $k$ -dimensional categorical distribution with class probabilities $\\alpha$ is the Gumbel-Max trick: ",
266
+ "bbox": [
267
+ 176,
268
+ 876,
269
+ 825,
270
+ 905
271
+ ],
272
+ "page_idx": 1
273
+ },
274
+ {
275
+ "type": "equation",
276
+ "img_path": "images/5dd53b6378aee5fa5c426ed728c1a53b13e7dceafdeb1ee91857c70298cf9da4.jpg",
277
+ "text": "$$\nd = \\mathrm { o n e \\_ h o t } \\left( \\mathrm { a r g m a x } \\big [ g _ { i } + \\log \\alpha _ { i } \\big ] \\right) , \\quad \\mathrm { w i t h } \\ g _ { 1 } , \\dots , g _ { k } \\sim \\mathrm { G u m b e l } ( 0 , 1 )\n$$",
278
+ "text_format": "latex",
279
+ "bbox": [
280
+ 261,
281
+ 907,
282
+ 736,
283
+ 925
284
+ ],
285
+ "page_idx": 1
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "However, since the derivative of the argmax is 0 everywhere except at the boundary of state changes, where it is undefined, we can’t learn a parameterization by backpropagation. The Gumbel-Softmax trick approximates the argmax by a softmax which gives us a probability vector (Maddison et al., 2017; Jang et al., 2017). We can then draw samples via ",
290
+ "bbox": [
291
+ 174,
292
+ 103,
293
+ 826,
294
+ 160
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "equation",
300
+ "img_path": "images/28ad63d5b6f2143a0df104a7542c8fa8f00da71750c30c40fc096f5c8cd23040.jpg",
301
+ "text": "$$\nd _ { k } = \\frac { \\exp ( ( \\log \\alpha _ { k } + g _ { k } ) / \\lambda ) } { \\sum _ { i = 1 } ^ { n } \\exp ( ( \\log \\alpha _ { i } + g _ { i } ) / \\lambda ) } , \\quad \\mathrm { w i t h ~ } g _ { 1 } , \\dots , g _ { k } \\sim \\mathrm { G u m b e l } ( 0 , 1 )\n$$",
302
+ "text_format": "latex",
303
+ "bbox": [
304
+ 266,
305
+ 166,
306
+ 733,
307
+ 202
308
+ ],
309
+ "page_idx": 2
310
+ },
311
+ {
312
+ "type": "text",
313
+ "text": "This softmax computation approaches the discrete argmax as temperature $\\lambda 0$ , for $\\lambda \\to \\infty$ it approaches a uniform distribution. ",
314
+ "bbox": [
315
+ 174,
316
+ 208,
317
+ 825,
318
+ 237
319
+ ],
320
+ "page_idx": 2
321
+ },
322
+ {
323
+ "type": "text",
324
+ "text": "3 RELATED WORK ",
325
+ "text_level": 1,
326
+ "bbox": [
327
+ 176,
328
+ 257,
329
+ 344,
330
+ 273
331
+ ],
332
+ "page_idx": 2
333
+ },
334
+ {
335
+ "type": "text",
336
+ "text": "Our model can be viewed as a Deep Kalman Filter (Krishnan et al., 2015) with structured inference (Krishnan et al., 2017). In our case, structured inference entails another stochastic variable model with parameter sharing inspired by Karl et al. (2017b) and Karl et al. (2017a) which pointed out the importance of backpropagating the reconstruction error through the transition. We are different to a number of stochastic sequential models like Bayer & Osendorfer (2014); Chung et al. (2015); Shabanian et al. (2017); Goyal et al. (2017) by directly transitioning the stochastic latent variable over time instead of having an RNN augmented by stochastic inputs. Fraccaro et al. (2016) has a transition over both a deterministic and a stochastic latent state sequence, wanting to combine the best of both worlds. ",
337
+ "bbox": [
338
+ 173,
339
+ 289,
340
+ 825,
341
+ 414
342
+ ],
343
+ "page_idx": 2
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "Previous models (Watter et al., 2015; Karl et al., 2017a; Fraccaro et al., 2017) have already combined locally linear models with recurrent Variational Autoencoders, however they provide a weaker structural incentive for learning latent variables determining the transition function. Van Steenkiste et al. (2018) approach a similar multi bouncing ball problem (see section 5.1) by first distributing the representation of different balls into their own entities without supervision and then structurally hardwiring a transition function with interactions based on an attention mechanism. ",
348
+ "bbox": [
349
+ 174,
350
+ 420,
351
+ 825,
352
+ 506
353
+ ],
354
+ "page_idx": 2
355
+ },
356
+ {
357
+ "type": "text",
358
+ "text": "Recurrent switching linear dynamical systems (Linderman et al., 2016) uses message passing for approximate inference, but has restricted itself to low-dimensional observations and a multi-stage training process. Johnson et al. (2016) propose a similar model to ours but combine message passing for discrete switching variables with a neural network encoder for observations learned by stochastic backpropagation. Tackling the problem of propagating state uncertainty over time, various combinations of neural networks for inference and Gaussian processes for transition dynamics have been proposed (Eleftheriadis et al., 2017; Doerr et al., 2018). However, these models have not been demonstrated to work with high-dimensional observation spaces like images. One feature a switching LDS model may learn are interactions which have recently been approached by employing Graph Neural Networks (Battaglia et al., 2016; Kipf et al., 2018). These methods are similar in that they predict edges which encode interactions between components of the state space (nodes). ",
359
+ "bbox": [
360
+ 174,
361
+ 512,
362
+ 825,
363
+ 665
364
+ ],
365
+ "page_idx": 2
366
+ },
367
+ {
368
+ "type": "text",
369
+ "text": "4 PROPOSED APPROACH",
370
+ "text_level": 1,
371
+ "bbox": [
372
+ 176,
373
+ 685,
374
+ 392,
375
+ 702
376
+ ],
377
+ "page_idx": 2
378
+ },
379
+ {
380
+ "type": "text",
381
+ "text": "Our goal is to fit a series of continuous state $z _ { 1 : T }$ and switching variables $s _ { 2 : T }$ to a given sequence of observations $x _ { 1 : T }$ . We assume a nonlinear mapping between observations and latent space which we generally approximate by neural networks, apart from the transition which is modeled by a locally linear function. Our generative model is shown in figure 1b an our inference model in figure 2a. ",
382
+ "bbox": [
383
+ 174,
384
+ 717,
385
+ 825,
386
+ 775
387
+ ],
388
+ "page_idx": 2
389
+ },
390
+ {
391
+ "type": "text",
392
+ "text": "4.1 GENERATIVE MODEL ",
393
+ "text_level": 1,
394
+ "bbox": [
395
+ 174,
396
+ 791,
397
+ 362,
398
+ 806
399
+ ],
400
+ "page_idx": 2
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "Our generative model for a single $x _ { t }$ is described by ",
405
+ "bbox": [
406
+ 174,
407
+ 818,
408
+ 516,
409
+ 833
410
+ ],
411
+ "page_idx": 2
412
+ },
413
+ {
414
+ "type": "equation",
415
+ "img_path": "images/39b2c232fd3684b909531787ceabe9f2e9654f04763aebb2a7933af7ba4b69a5.jpg",
416
+ "text": "$$\np ( x _ { t } ) = \\int _ { s \\leq t } \\int _ { z \\leq t } p ( x _ { t } \\mid z _ { t } ) p ( z _ { t } \\mid z _ { t - 1 } , s _ { t } , u _ { t - 1 } ) p ( s _ { t } \\mid s _ { t - 1 } , z _ { t - 1 } , u _ { t - 1 } ) p ( z _ { t - 1 } , s _ { t - 1 } ) d s _ { t } d t .\n$$",
417
+ "text_format": "latex",
418
+ "bbox": [
419
+ 214,
420
+ 838,
421
+ 782,
422
+ 876
423
+ ],
424
+ "page_idx": 2
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "which is close to the one of the original SLDS model (see figure 1a). Latent states $z _ { t }$ are continuous and represent the state of the system while states $s _ { t }$ are the switching variables determining the transition. We approximate the discrete switching variables by a continuous relaxation, namely the Concrete distribution.1 Differently to the original model, we do not condition the likelihood of the current observation $p _ { \\theta } ( x _ { t } \\mid z _ { t } )$ directly on the switching variables. This limits the influence of the switching variables to choosing a proper transition dynamic for the continuous latent space. The likelihood model is parameterized by a neural network with either a Gaussian or a Bernoulli distribution as output depending on the data. ",
429
+ "bbox": [
430
+ 174,
431
+ 881,
432
+ 823,
433
+ 924
434
+ ],
435
+ "page_idx": 2
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "",
440
+ "bbox": [
441
+ 173,
442
+ 102,
443
+ 825,
444
+ 174
445
+ ],
446
+ "page_idx": 3
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "There is both a transition on the continuous states $z _ { t }$ and discrete latent states $s _ { t }$ . For the continuous state transition $p ( z _ { t } \\mid z _ { t - 1 } , s _ { t } , u _ { t - 1 } )$ we follow (1) and maintain a set of $M$ base matrices $\\{ \\left( A ^ { ( i ) } , B ^ { ( i ) } , Q ^ { ( i ) } \\right) | \\forall i . 0 < i < M \\}$ as our linear dynamical systems to choose from. For the transition on discrete latent states $p ( s _ { t } \\mid s _ { t - 1 } , z _ { t - 1 } , u _ { t - 1 } )$ , we usually require the learning of a Markov transition matrix. However, since we approximate our discrete switching variables by a continuous relaxation, we can parameterize this transition by a neural network. Therefore, our entire generative model can be learned end-to-end by (stochastic) backpropagation. Finally, the resulting dynamics matrices are computed through a linear combination of the base matrices: ",
451
+ "bbox": [
452
+ 173,
453
+ 180,
454
+ 825,
455
+ 295
456
+ ],
457
+ "page_idx": 3
458
+ },
459
+ {
460
+ "type": "equation",
461
+ "img_path": "images/3c7f3eaeae5f8244cfcbf5debf5cf0eb86062a50669c73a83710683b3493afc2.jpg",
462
+ "text": "$$\nA _ { t } ( s _ { t } ) = \\sum _ { i = 1 } ^ { M } s _ { t } ^ { ( i ) } A ^ { ( i ) } , \\qquad B ( s _ { t } ) = \\sum _ { i = 1 } ^ { M } s _ { t } ^ { ( i ) } B ^ { ( i ) } , \\qquad Q ( s _ { t } ) = \\sum _ { i = 1 } ^ { M } s _ { t } ^ { ( i ) } Q ^ { ( i ) }\n$$",
463
+ "text_format": "latex",
464
+ "bbox": [
465
+ 246,
466
+ 301,
467
+ 751,
468
+ 345
469
+ ],
470
+ "page_idx": 3
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "Both transition models – the continuous state transition $p _ { \\theta } ( z _ { t } \\mid z _ { t - 1 } , s _ { t } , u _ { t - 1 } )$ and concrete switching variables transition $p _ { \\theta } \\big ( s _ { t } \\ | \\ s _ { t - 1 } , z _ { t - 1 } , u _ { t - 1 } \\big ) -$ are shared with the inference model which is key for good performance. ",
475
+ "bbox": [
476
+ 176,
477
+ 352,
478
+ 826,
479
+ 395
480
+ ],
481
+ "page_idx": 3
482
+ },
483
+ {
484
+ "type": "equation",
485
+ "img_path": "images/b384a07004aa2e777e67a1ac5764f7e0e8df55f7e7c19f8f91330e22612189c3.jpg",
486
+ "text": "$$\n\\begin{array} { r l } & { \\quad p _ { \\theta } ( z _ { t } \\mid z _ { t - 1 } , s _ { t } , u _ { t - 1 } ) = \\mathcal { N } \\big ( \\mu , \\sigma ^ { 2 } \\big ) \\qquad \\mathrm { w h e r e } \\ [ \\mu , \\sigma ^ { 2 } ] = f _ { \\theta } ( z _ { t - 1 } , s _ { t } , u _ { t - 1 } ) } \\\\ & { \\quad p _ { \\theta } ( s _ { t } \\mid s _ { t - 1 } , z _ { t - 1 } , u _ { t - 1 } ) = \\mathrm { C o n c r e t e } ( \\alpha , \\lambda _ { \\mathrm { p r i o r } } ) \\qquad \\mathrm { w h e r e } \\ \\alpha = g _ { \\theta } ( z _ { t - 1 } , s _ { t - 1 } , u _ { t - 1 } ) } \\end{array}\n$$",
487
+ "text_format": "latex",
488
+ "bbox": [
489
+ 197,
490
+ 400,
491
+ 782,
492
+ 440
493
+ ],
494
+ "page_idx": 3
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "4.2 INFERENCE ",
499
+ "text_level": 1,
500
+ "bbox": [
501
+ 174,
502
+ 455,
503
+ 295,
504
+ 469
505
+ ],
506
+ "page_idx": 3
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "4.2.1 STRUCTURED INFERENCE OF CONTINUOUS LATENT STATE ",
511
+ "text_level": 1,
512
+ "bbox": [
513
+ 176,
514
+ 481,
515
+ 630,
516
+ 496
517
+ ],
518
+ "page_idx": 3
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "We split our inference model $q _ { \\phi } ( z _ { t } \\mid z _ { t - 1 } , s _ { t } , x _ { \\geq t } , u _ { \\geq t - 1 } )$ into two parts: 1) transition model $q _ { \\mathrm { t r a n s } } \\bar { ( } z _ { t } \\mid z _ { t - 1 } , s _ { t } , u _ { t - 1 } )$ and 2) inverse measurement model $q _ { \\mathrm { m e a s } } ( z _ { t } \\mid x _ { \\geq t } , u _ { \\geq t } )$ as previously proposed in Karl et al. (2017b). This split allows us to reuse our generative transition model in place of $q _ { \\mathrm { t r a n s } } ( z _ { t } \\mid z _ { t - 1 } , s _ { t } , u _ { t - 1 } )$ . This sharing of variables is essential for good performance as it forces the reconstruction error to be backpropagated throughwe only share the computation of the transition mean $\\mu _ { \\mathrm { t r a n s } }$ nsition model. For prbut not the variance $\\sigma _ { \\mathrm { t r a n s } } ^ { 2 }$ l reasons,between inference and generative model. Both parts, and $q _ { \\mathrm { t r a n s } }$ , will give us independent predictions about the new state $z _ { t }$ which will be combined in a manner akin to a Bayesian update in a Kalman Filter. ",
523
+ "bbox": [
524
+ 173,
525
+ 505,
526
+ 826,
527
+ 631
528
+ ],
529
+ "page_idx": 3
530
+ },
531
+ {
532
+ "type": "equation",
533
+ "img_path": "images/5972ef4bcbc8193183f6b4f578222127f21ffd67d9e218d368c62c741110945e.jpg",
534
+ "text": "$$\n\\begin{array} { r } { l \\phi \\left( z _ { t } \\mid z _ { t - 1 } , s _ { t } , x _ { \\geq t } , u _ { \\geq t - 1 } \\right) \\propto q _ { \\operatorname* { m e a s } } \\left( z _ { t } \\mid x _ { \\geq t } , u _ { \\geq t } \\right) \\times q _ { \\mathrm { t r a n s } } \\left( z _ { t } \\mid z _ { t - 1 } , s _ { t } , u _ { t - 1 } \\right) = \\mathcal { N } \\left( \\mu _ { q } , \\sigma _ { q } ^ { 2 } \\right) } \\\\ { q _ { \\operatorname* { m e a s } } \\left( z _ { t } \\mid x _ { \\geq t } , u _ { \\geq t } \\right) = \\mathcal { N } \\left( \\mu _ { \\operatorname* { m e a s } } , \\sigma _ { \\operatorname* { m e a s } } ^ { 2 } \\right) \\mathrm { ~ w h e r e ~ } \\left[ \\mu _ { \\operatorname* { m e a s } } , \\sigma _ { \\operatorname* { m e a s } } ^ { 2 } \\right] = h _ { \\phi } \\left( x _ { \\geq t } , u _ { \\geq t } \\right) \\quad \\mathrm { ( } 1 \\mathrm { ~ t ~ } } \\\\ { q _ { \\operatorname { t r a n s } } \\left( z _ { t } \\mid z _ { t - 1 } , s _ { t } , u _ { t - 1 } \\right) = \\mathcal { N } \\left( \\mu _ { \\operatorname { t r a n s } } , \\sigma _ { \\operatorname* { t r a n s } } ^ { 2 } \\right) \\mathrm { ~ w h e r e ~ } \\left[ \\mu _ { \\operatorname { t r a n s } } , \\sigma _ { \\operatorname { t r a n s } } ^ { 2 } \\right] = f _ { \\theta } \\left( z _ { t - 1 } , s _ { t } , u _ { t - 1 } \\right) } \\end{array}\n$$",
535
+ "text_format": "latex",
536
+ "bbox": [
537
+ 192,
538
+ 635,
539
+ 812,
540
+ 698
541
+ ],
542
+ "page_idx": 3
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "The densities of $q _ { \\mathrm { m e a s } }$ and $q _ { \\mathrm { t r a n s } }$ are multiplied resulting in another Gaussian density: ",
547
+ "bbox": [
548
+ 174,
549
+ 702,
550
+ 736,
551
+ 717
552
+ ],
553
+ "page_idx": 3
554
+ },
555
+ {
556
+ "type": "equation",
557
+ "img_path": "images/6a5bebbe71e753d29f75507dcfb97598ac8457e07119b655a1fc2ec9aa78bec7.jpg",
558
+ "text": "$$\n\\mu _ { q } = \\frac { \\mu _ { \\mathrm { t r a n s } } \\sigma _ { \\mathrm { m e a s } } ^ { 2 } + \\mu _ { \\mathrm { m e a s } } \\sigma _ { \\mathrm { t r a n s } } ^ { 2 } } { \\sigma _ { \\mathrm { m e a s } } ^ { 2 } + \\sigma _ { \\mathrm { t r a n s } } ^ { 2 } } , \\qquad \\sigma _ { q } ^ { 2 } = \\frac { \\sigma _ { \\mathrm { m e a s } } ^ { 2 } \\sigma _ { \\mathrm { t r a n s } } ^ { 2 } } { \\sigma _ { \\mathrm { m e a s } } ^ { 2 } + \\sigma _ { \\mathrm { t r a n s } } ^ { 2 } }\n$$",
559
+ "text_format": "latex",
560
+ "bbox": [
561
+ 297,
562
+ 723,
563
+ 700,
564
+ 758
565
+ ],
566
+ "page_idx": 3
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "This update scheme is highlighted in figure 2b. ",
571
+ "bbox": [
572
+ 174,
573
+ 772,
574
+ 482,
575
+ 787
576
+ ],
577
+ "page_idx": 3
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "We found empirically that conditioning the inverse measurement model $q _ { \\mathrm { m e a s } } ( z _ { t } \\mid x _ { \\geq t } , u _ { \\geq t } )$ solely on the current observation $x _ { t }$ instead of the entire remaining trajectory to lead to better results. We hypothesize that the recurrent model needlessly introduces very high-dimensional and complicated dynamics which are harder to approximate with our locally linear transition model. ",
582
+ "bbox": [
583
+ 174,
584
+ 794,
585
+ 825,
586
+ 851
587
+ ],
588
+ "page_idx": 3
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "For the initial state $z _ { 1 }$ we do not have a conditional prior from the transition model as in the rest of the sequence. Other methods (Krishnan et al., 2015) have used a standard normal prior, however this is not a good fit. We therefore decided that instead of predicting $z _ { 1 }$ directly to predict an auxiliary variable $w$ that is then mapped deterministically to a starting state $z _ { 1 }$ . A standard Gaussian prior is then applied to $w$ . Alternatively, we could specify a more complex or learned prior for the initial state like the VampPrior (Tomczak & Welling, 2017). Empirically, this has lead to worse results. ",
593
+ "bbox": [
594
+ 174,
595
+ 856,
596
+ 825,
597
+ 900
598
+ ],
599
+ "page_idx": 3
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "",
604
+ "bbox": [
605
+ 173,
606
+ 103,
607
+ 825,
608
+ 146
609
+ ],
610
+ "page_idx": 4
611
+ },
612
+ {
613
+ "type": "equation",
614
+ "img_path": "images/c3ff26bcd7abd47ab476a05840ccb91530cce3f1a9a94bb09a0ed145e4d31533.jpg",
615
+ "text": "$$\n\\begin{array} { r l } { q _ { \\phi } ( w \\mid x _ { 1 : T } , u _ { 1 : T } ) = { \\mathcal { N } } { \\big ( } w ; \\mu _ { w } , \\sigma _ { w } ^ { 2 } { \\big ) } } & { { } { \\mathrm { w h e r e } } \\quad [ \\mu _ { w } , \\sigma _ { w } ^ { 2 } ] = i _ { \\phi } ( x _ { 1 : T } , u _ { 1 : T } ) } \\\\ { z _ { 1 } = f _ { \\phi } ( w ) } & { { } } \\end{array}\n$$",
616
+ "text_format": "latex",
617
+ "bbox": [
618
+ 254,
619
+ 150,
620
+ 745,
621
+ 190
622
+ ],
623
+ "page_idx": 4
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "While we could condition on the entire sequence, we restrict it to just the first couple of observations. ",
628
+ "bbox": [
629
+ 174,
630
+ 194,
631
+ 825,
632
+ 209
633
+ ],
634
+ "page_idx": 4
635
+ },
636
+ {
637
+ "type": "image",
638
+ "img_path": "images/77ec647f77f9f545bed126f45f7c914263e5c545ff3e46593cee575823abc31e.jpg",
639
+ "image_caption": [
640
+ "Figure 2: (a) Depicts the inference model. $b _ { t }$ is the hidden state of the backward RNN of $q _ { \\phi } \\mathbf { \\bar { ( } } s _ { t } \\mid x _ { \\geq t } , u _ { \\geq t } )$ . Initial inference of $w$ may be conditioned on the entire sequence of observations, or just a subsequence. We’ve omitted the arrows for sake of clarity for the rest of the graph. (b) Shows schematically how we combine the transition with the inverse measurement model in the inference network. Transitions (in blue) are (partially) shared with the generative model. "
641
+ ],
642
+ "image_footnote": [],
643
+ "bbox": [
644
+ 218,
645
+ 219,
646
+ 766,
647
+ 356
648
+ ],
649
+ "page_idx": 4
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "4.2.2 INFERENCE OF SWITCHING VARIABLES ",
654
+ "text_level": 1,
655
+ "bbox": [
656
+ 173,
657
+ 460,
658
+ 501,
659
+ 474
660
+ ],
661
+ "page_idx": 4
662
+ },
663
+ {
664
+ "type": "text",
665
+ "text": "Following Maddison et al. (2017) and Jang et al. (2017), we can reparameterize a discrete latent variable with the Gumbel-softmax trick. Again, we split our inference network $q _ { \\phi } ( s _ { t } \\mid s _ { t - 1 } , z _ { t - 1 } , x _ { \\geq t } , u _ { \\geq t - 1 } )$ in an identical fashion into two components: 1) Transition model $q _ { \\mathrm { t r a n s } } ( s _ { t } \\mid s _ { t - 1 } , z _ { t - 1 } , u _ { t - 1 } )$ and 2) inverse measurement model $q _ { \\mathrm { m e a s } } ( s _ { t } \\mid x _ { \\geq t } , u _ { \\geq t } )$ . The transition model is again shared with the generative model and is implemented via a neural network as we potentially require quick changes to chosen dynamics. The inverse measurement model is parametrized by a backward LSTM. However, for the case of concrete variables, we cannot do the same Gauss multiplication as in the previous case. Therefore, we let each network predict the logits of a Concrete distribution and our inverse measurement model $q _ { \\phi } ( s _ { t } \\mid x _ { \\geq t } , u _ { \\geq t } )$ produces an additional vector $\\gamma$ , which determines the value of a gate deciding how the two predictions are to be weighted: ",
666
+ "bbox": [
667
+ 173,
668
+ 483,
669
+ 826,
670
+ 625
671
+ ],
672
+ "page_idx": 4
673
+ },
674
+ {
675
+ "type": "equation",
676
+ "img_path": "images/fd33379a8a3ccb0d71767781f8b1b69d701339b49a747a027414d6636311d73c.jpg",
677
+ "text": "$$\n\\begin{array} { r l } & { q _ { \\phi } \\big ( s _ { t } \\mid s _ { t - 1 } , z _ { t - 1 } , x _ { \\geq t } , u _ { \\geq t - 1 } \\big ) = \\mathrm { C o n c r e t e } \\big ( \\alpha , \\lambda _ { \\mathrm { p o s t e r i o r } } \\big ) \\quad \\mathrm { w i t h } \\quad \\alpha = \\gamma \\alpha _ { \\mathrm { t r a n s } } + ( 1 - \\gamma ) \\alpha _ { \\mathrm { m e a s } } } \\\\ & { q _ { \\operatorname* { m e a s } } \\big ( s _ { t } \\mid x _ { \\geq t } , u _ { \\geq t } \\big ) = \\mathrm { C o n c r e t e } \\big ( \\alpha _ { \\mathrm { m e a s } } , \\lambda _ { \\mathrm { p o s t e r i o r } } \\big ) \\quad \\mathrm { w h e r e } \\quad \\big [ \\alpha _ { \\mathrm { m e a s } } , \\gamma \\big ] = k _ { \\phi } \\big ( x _ { \\geq t } , u _ { \\geq t } \\big ) \\qquad ( 1 3 ) } \\\\ & { q _ { \\mathrm { t r a n s } } \\big ( s _ { t } \\mid s _ { t - 1 } , z _ { t - 1 } , u _ { t - 1 } \\big ) = \\mathrm { C o n c r e t e } \\big ( \\alpha _ { \\mathrm { t r a n s } } , \\lambda _ { \\mathrm { p r i o r } } \\big ) \\quad \\mathrm { w h e r e } \\quad \\alpha = g _ { \\theta } \\big ( z _ { t - 1 } , s _ { t - 1 } , u _ { t - 1 } \\big ) } \\end{array}\n$$",
678
+ "text_format": "latex",
679
+ "bbox": [
680
+ 183,
681
+ 627,
682
+ 816,
683
+ 683
684
+ ],
685
+ "page_idx": 4
686
+ },
687
+ {
688
+ "type": "text",
689
+ "text": "The temperatures $\\lambda _ { \\mathrm { p o s t e r i o r } }$ and $\\lambda _ { \\mathrm { p r i o r } }$ are set as a hyperparameter and can be set differently for the prior and approximate posterior. The gating mechanism gives the model the option to balance between prior and approximate posterior. If the prior is good enough to explain the next observation, $\\gamma$ will be pushed to 1 which ignores the measurement and minimizes the KL between prior and posterior by only propagating the prior. If the prior is not sufficient, information from the inverse measurement model can flow by decreasing $\\gamma$ and incurring a KL penalty. ",
690
+ "bbox": [
691
+ 173,
692
+ 686,
693
+ 825,
694
+ 771
695
+ ],
696
+ "page_idx": 4
697
+ },
698
+ {
699
+ "type": "text",
700
+ "text": "Since the concrete distribution is a relaxation of the categorical, our sample will not be a one-hot vector, but a vector whose elements sum up to 1. We face two options here: we could take a categorical sample by choosing the linear system corresponding to the highest value in the sample (hard forward pass) and only use the relaxation for our backward pass. This, however, means that we will follow a biased gradient. Alternatively, we can use the relaxed version for our forward pass and aggregate the linear systems based on their corresponding weighting (see (8)). Here, we lose the discrete switching of linear systems, but maintain a valid lower bound. We note that the hard forward pass has led to worse results and focus on the soft forward pass for this paper. ",
701
+ "bbox": [
702
+ 174,
703
+ 776,
704
+ 825,
705
+ 888
706
+ ],
707
+ "page_idx": 4
708
+ },
709
+ {
710
+ "type": "text",
711
+ "text": "Lastly, we could go further away from the theory and instead treat the switching variables also as normally distributed. If this worked better than the approach with Concrete variables, it would highlight still existing optimization problems of discrete random variables. As such, it will act as an ablation study for our model. The mixing coefficients for linear systems would then be determined by a linear combination of these latent variables: ",
712
+ "bbox": [
713
+ 173,
714
+ 895,
715
+ 823,
716
+ 924
717
+ ],
718
+ "page_idx": 4
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "",
723
+ "bbox": [
724
+ 173,
725
+ 103,
726
+ 825,
727
+ 146
728
+ ],
729
+ "page_idx": 5
730
+ },
731
+ {
732
+ "type": "equation",
733
+ "img_path": "images/84b23d969b74ee1ba010f73a54d0d9807ce3b7af2c09f5c098cfe27326bdbb68.jpg",
734
+ "text": "$$\n\\alpha = \\operatorname { s o f t m a x } ( W s _ { t } + b ) \\in \\mathbb { R } ^ { M }\n$$",
735
+ "text_format": "latex",
736
+ "bbox": [
737
+ 397,
738
+ 154,
739
+ 602,
740
+ 172
741
+ ],
742
+ "page_idx": 5
743
+ },
744
+ {
745
+ "type": "text",
746
+ "text": "Our inference scheme for normally distributed switching variables is then identical to the one described in the previous section. We compare both approaches throughout our experimental section. ",
747
+ "bbox": [
748
+ 174,
749
+ 180,
750
+ 825,
751
+ 210
752
+ ],
753
+ "page_idx": 5
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "4.3 TRAINING ",
758
+ "text_level": 1,
759
+ "bbox": [
760
+ 174,
761
+ 228,
762
+ 287,
763
+ 243
764
+ ],
765
+ "page_idx": 5
766
+ },
767
+ {
768
+ "type": "text",
769
+ "text": "Our objective function is the commonly used evidence lower bound for our hierarchical model. ",
770
+ "bbox": [
771
+ 173,
772
+ 256,
773
+ 795,
774
+ 271
775
+ ],
776
+ "page_idx": 5
777
+ },
778
+ {
779
+ "type": "equation",
780
+ "img_path": "images/97d616905939eabefebeb531dd43f658e7064817adace691f180a9f38a78ca70.jpg",
781
+ "text": "$$\n\\begin{array} { r l } { \\mathcal { L } _ { \\theta , \\phi } \\big ( x _ { 1 : T } \\ \\big | \\ u _ { 1 : T } \\big ) \\geq } & { \\mathbb { E } _ { q _ { \\phi } ( z _ { 1 : T } , s _ { 1 : T } \\mid x _ { 1 : T } ) } \\big [ \\log p _ { \\theta } \\big ( x _ { 1 : T } \\ \\big | \\ z _ { 1 : T } , s _ { 1 : T } , u _ { 1 : T } \\big ) \\big ] } \\\\ & { - D _ { \\mathrm { K L } } \\big ( q _ { \\phi } \\big ( z _ { 1 : T } , s _ { 1 : T } \\ \\big | \\ x _ { 1 : T } , u _ { 1 : T } \\big ) \\ \\big | \\ \\big | \\ p \\big ( z _ { 1 : T } , s _ { 1 : T } \\ \\big | \\ u _ { 1 : T } \\big ) \\big ) } \\end{array}\n$$",
782
+ "text_format": "latex",
783
+ "bbox": [
784
+ 240,
785
+ 277,
786
+ 759,
787
+ 319
788
+ ],
789
+ "page_idx": 5
790
+ },
791
+ {
792
+ "type": "text",
793
+ "text": "We choose to factorize over time, so the loss for a single observation $x _ { t }$ becomes: ",
794
+ "bbox": [
795
+ 171,
796
+ 324,
797
+ 707,
798
+ 340
799
+ ],
800
+ "page_idx": 5
801
+ },
802
+ {
803
+ "type": "equation",
804
+ "img_path": "images/c8f4317b5930396d07e7e1332bc12fe650f322675d18a21a2ec4e5b9af14aa46.jpg",
805
+ "text": "$$\n\\begin{array} { r l } & { \\mathcal { L } _ { \\theta , \\phi } ( x _ { t } \\mid u _ { 1 : T } ) = \\mathbb { E } _ { q _ { \\phi } \\left( s _ { t } \\mid s _ { t - 1 } , z _ { t - 1 } , x _ { \\geq t } , u _ { \\geq t - 1 } \\right) } \\left[ \\mathbb { E } _ { q _ { \\phi } \\left( z _ { t } \\mid s _ { t } , z _ { t - 1 } , x _ { \\geq t } , u _ { \\geq t - 1 } \\right) } \\left[ \\log p _ { \\theta } ( x _ { t } \\mid z _ { t } ) \\right] \\right] \\qquad ( 1 6 ) } \\\\ & { \\qquad - \\mathbb { E } _ { s _ { t - 1 } } \\left[ \\mathbb { E } _ { z _ { t - 1 } } \\left[ D _ { \\mathrm { K L } } \\left( q _ { \\phi } \\left( s _ { t } \\mid s _ { t - 1 } , z _ { t - 1 } , x _ { \\geq t } , u _ { \\geq t - 1 } \\right) \\mid \\mid p _ { \\theta } \\left( s _ { t } \\mid s _ { t - 1 } , z _ { t - 1 } , u _ { t - 1 } \\right) \\right) \\right] \\right] } \\\\ & { \\qquad - \\mathbb { E } _ { z _ { t - 1 } } \\left[ \\mathbb { E } _ { s _ { t } } \\left[ D _ { \\mathrm { K L } } \\left( q _ { \\phi } \\left( z _ { t } \\mid z _ { t - 1 } , s _ { t } , x _ { \\geq t } , u _ { \\geq t - 1 } \\right) \\mid \\mid p _ { \\theta } \\left( z _ { t } \\mid z _ { t - 1 } , s _ { t } , u _ { t - 1 } \\right) \\right) \\right] \\right] } \\end{array}\n$$",
806
+ "text_format": "latex",
807
+ "bbox": [
808
+ 181,
809
+ 348,
810
+ 828,
811
+ 417
812
+ ],
813
+ "page_idx": 5
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "The full derivation can be found in appendix A. We learn the parameters of our model by backpropagation through time and we (generally) approximate the expectations with one sample by using the reparametrization trick. The exception is the KL between two Concrete random variables in which case we take 10 samples for the approximation. For the KL on the switching variables, we further introduce a scaling factor $\\beta < 1$ (as first suggested in Higgins et al. (2016), although they suggested increasing the KL term) to down weigh its importance. More details on the training procedure can be found in appendix B.2. ",
818
+ "bbox": [
819
+ 173,
820
+ 421,
821
+ 826,
822
+ 521
823
+ ],
824
+ "page_idx": 5
825
+ },
826
+ {
827
+ "type": "text",
828
+ "text": "5 EXPERIMENTS ",
829
+ "text_level": 1,
830
+ "bbox": [
831
+ 174,
832
+ 542,
833
+ 326,
834
+ 559
835
+ ],
836
+ "page_idx": 5
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "In this section, we evaluate our approach on a diverse set of physics and robotics simulations based on partially observable system states or high-dimensional images as observations. We show that our model outperforms previous models and that our switching variables learn meaningful representations. ",
841
+ "bbox": [
842
+ 173,
843
+ 575,
844
+ 826,
845
+ 618
846
+ ],
847
+ "page_idx": 5
848
+ },
849
+ {
850
+ "type": "text",
851
+ "text": "Models we compare to are Deep Variational Bayes Filter (DVBF) (Karl et al., 2017a), DVBF Fusion (Karl et al., 2017b) (called fusion as they do the same Gauss multiplication in the inference network) which is closest to our model but doesn’t have a stochastic treatment of the transition, the Kalman VAE (KVAE) (Fraccaro et al., 2017) and a LSTM (Hochreiter & Schmidhuber, 1997). ",
852
+ "bbox": [
853
+ 174,
854
+ 625,
855
+ 825,
856
+ 681
857
+ ],
858
+ "page_idx": 5
859
+ },
860
+ {
861
+ "type": "image",
862
+ "img_path": "images/e0194ebf04f7331684f7436c765cd1d05be1f6ea391f318e881011b153ff9194.jpg",
863
+ "image_caption": [
864
+ "(a) Multi agent maze envi- (b) Variable encoding free (c) Variable encoding walls (d) System activation for ronment. space for agent 2. for agent 1. deterministic transition. "
865
+ ],
866
+ "image_footnote": [],
867
+ "bbox": [
868
+ 189,
869
+ 699,
870
+ 818,
871
+ 811
872
+ ],
873
+ "page_idx": 5
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "Figure 3: Figures (b) and (c) depict an agent’s position colored by the average value of a single latent variable $s$ marginalized over all control inputs $u$ and velocities. Figure (d) highlights a representative activation for a single transition system for the deterministic treatment of the transition dynamics. It doesn’t generalize to the entire maze and stays fairly active in proximity to the wall. ",
878
+ "bbox": [
879
+ 173,
880
+ 853,
881
+ 825,
882
+ 910
883
+ ],
884
+ "page_idx": 5
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "5.1 MULTIPLE BOUNCING BALLS IN A MAZE ",
889
+ "text_level": 1,
890
+ "bbox": [
891
+ 176,
892
+ 103,
893
+ 500,
894
+ 117
895
+ ],
896
+ "page_idx": 6
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "Our first experiment is a custom 3-agent maze environment simulated with Box2D. Each agent is fully described by its $x$ and $y$ coordinates and its current velocity and has the capability to accelerate in either direction. We learn in a partially observable setting and limit the observations to the agents’ positions, therefore $x \\in \\mathbb { R } ^ { 6 }$ while the true state space is in $\\mathbb { R } ^ { 1 2 }$ and $u \\in \\mathbb { R } ^ { 6 }$ . First, we train a linear regression model on the latent space $z$ to see if we have recovered a linear encoding of the unobserved velocities. We achieve an R2 score of 0.92 averaged over all agents and velocity directions. ",
901
+ "bbox": [
902
+ 174,
903
+ 131,
904
+ 825,
905
+ 213
906
+ ],
907
+ "page_idx": 6
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "Our focus shifts now to our switching variables which we expect to encode interactions with walls. We provide a visual confirmation of that in figure 3 where we see switching variables encoding all space where there is no interaction in the next time step, and variables which encode walls, distinguishing between vertical and horizontal ones. In figure 3d one can see show that if the choice of locally linear transition is treated deterministically, we don’t learn global features of the same kind. To confirm our visual inspection, we train a simple decision tree based on latent space $s$ in order to predict interaction with a wall. Here, we achieve an F1 score of 0.46. It is difficult to say what a good value should look like as collisions with low velocity are virtually indistinguishable from no collision. ",
912
+ "bbox": [
913
+ 174,
914
+ 220,
915
+ 826,
916
+ 332
917
+ ],
918
+ "page_idx": 6
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "We compare our prediction quality to several other methods in table 1 where we outperform all of our chosen baselines. Also, modeling switching variables by a Normal distribution outperforms the Concrete distribution in all of our experiments. Aside from known practical issues with training a discrete variable via backpropagation, we explore one reason why that may be in section 5.4, which is the greater susceptibility to the scale of temporal discretization. We provide plots of predicted trajectories in appendix D. Transitioning multiple agents with a single transition matrix comes with scalability issues with regards to switching dynamics which we explore further in appendix C. ",
923
+ "bbox": [
924
+ 174,
925
+ 339,
926
+ 825,
927
+ 436
928
+ ],
929
+ "page_idx": 6
930
+ },
931
+ {
932
+ "type": "table",
933
+ "img_path": "images/53338daf175f862068e9bdea02c507acea46542efc7ab2c8545c0962dce55727.jpg",
934
+ "table_caption": [
935
+ "Table 1: Mean squared error (MSE) on predicting future observations. Static refers to constantly predicting the first observation of the sequence. "
936
+ ],
937
+ "table_footnote": [],
938
+ "table_body": "<table><tr><td></td><td colspan=\"3\">REACHER</td><td colspan=\"3\">3-BALL MAZE</td></tr><tr><td>PREDICTION STEPS</td><td>1</td><td>5</td><td>10</td><td>1</td><td>5</td><td>10</td></tr><tr><td>STATIC</td><td>5.80E-02</td><td>5.36E-01</td><td>1.25E+00</td><td>1.40E-02</td><td>5.74E-01</td><td>2.65E+00</td></tr><tr><td>LSTM</td><td>3.07E-01</td><td>7.76E-01</td><td>1.22E+00</td><td>7.20E-02</td><td>1.58E-01</td><td>2.60E-01</td></tr><tr><td>DVBF</td><td>1.10E-01</td><td>3.08E-01</td><td>6.07E-01</td><td>6.20E-02</td><td>1.36E-01</td><td>1.82E-01</td></tr><tr><td>DVBFFUSION</td><td>4.90E-03</td><td>2.97E-02</td><td>8.25E-02</td><td>4.33E-03</td><td>2.03E-02</td><td>4.88E-02</td></tr><tr><td>OURS (CONCRETE)</td><td>1.06E-02</td><td>5.73E-02</td><td>1.56E-01</td><td>2.28E-03</td><td>1.22E-02</td><td>3.40E-02</td></tr><tr><td>OURS (NORMAL)</td><td>3.39E-03</td><td>1.85E-02</td><td>4.97E-02</td><td>1.30E-03</td><td>5.52E-03</td><td>1.38E-02</td></tr></table>",
939
+ "bbox": [
940
+ 179,
941
+ 497,
942
+ 813,
943
+ 621
944
+ ],
945
+ "page_idx": 6
946
+ },
947
+ {
948
+ "type": "text",
949
+ "text": "5.2 REACHER ",
950
+ "text_level": 1,
951
+ "bbox": [
952
+ 174,
953
+ 656,
954
+ 282,
955
+ 670
956
+ ],
957
+ "page_idx": 6
958
+ },
959
+ {
960
+ "type": "text",
961
+ "text": "We then evaluate our model on the Roboschool reacher environment. To make things more interesting, we learn only on partial observations, removing time derivative information (velocities), leaving us with just the positions or angles of various joints as observations. Table 1 shows a comparison of various methods on predicting the next couple of time steps. One critical point is the possible collision2 between lower and upper joint which is one we’d like our model to capture. We again learn a linear classifier based on latent space $s$ to see if this is successfully encoded and reach an F1 score of 0.46. ",
962
+ "bbox": [
963
+ 173,
964
+ 683,
965
+ 825,
966
+ 780
967
+ ],
968
+ "page_idx": 6
969
+ },
970
+ {
971
+ "type": "text",
972
+ "text": "5.3 BALL IN A BOX ON IMAGE DATA ",
973
+ "text_level": 1,
974
+ "bbox": [
975
+ 176,
976
+ 799,
977
+ 441,
978
+ 814
979
+ ],
980
+ "page_idx": 6
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "Finally, we evaluate our method on high-dimensional image observations using the single bouncing ball environment used by Fraccaro et al. (2017). They simulated 5000 sequences of 20 time steps each of a ball moving in a two-dimensional box, where each video frame is a $3 2 \\times 3 2$ binary image. There are no forces applied to the ball, except for the fully elastic collisions with the walls. Initial position and velocity are randomly sampled. ",
985
+ "bbox": [
986
+ 174,
987
+ 827,
988
+ 825,
989
+ 896
990
+ ],
991
+ "page_idx": 6
992
+ },
993
+ {
994
+ "type": "image",
995
+ "img_path": "images/e336e1bf737c0b1609bca209428a9329da2814fbc7a23379990da437d282bb0e.jpg",
996
+ "image_caption": [
997
+ "Figure 4: First row: data, second row: filtered reconstructions, third row: predictions. The first 4 steps are used to find a stable starting state, predictions start with step 5. "
998
+ ],
999
+ "image_footnote": [],
1000
+ "bbox": [
1001
+ 181,
1002
+ 104,
1003
+ 818,
1004
+ 180
1005
+ ],
1006
+ "page_idx": 7
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "In figure 5a we compare our model to both the smoothed and generative version of the KVAE. The smoothed version receives the final state of the trajectory after the $n$ predicted steps which is fed into the smoothing capability of the KVAE. One can see that our model learns a better transition model, even outperforming the smoothed KVAE for longer sequences. For short sequences, KVAE performs better which highlights the value of it disentangling the latent space into separate object and dynamics representation. A sample trajectory is plotted in figure 4. ",
1011
+ "bbox": [
1012
+ 174,
1013
+ 251,
1014
+ 825,
1015
+ 335
1016
+ ],
1017
+ "page_idx": 7
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "5.4 SUSCEPTIBILITY TO THE SCALE OF TEMPORAL DISCRETIZATION ",
1022
+ "text_level": 1,
1023
+ "bbox": [
1024
+ 176,
1025
+ 353,
1026
+ 658,
1027
+ 367
1028
+ ],
1029
+ "page_idx": 7
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "In this section, we’d like to explore how the choice of $\\Delta t$ when discretizing a system influences our results. In particular, we’d expect our model with discrete (concrete) switching latent variables to be more susceptible to it than when modeled by a continuous distribution. This is because in the latter case the switching variables can scale the various matrices more freely, while in the former scaling up one system necessitates scaling down another. For empirical comparison, we go back to our custom maze environment (this time with only one agent as this is not pertinent to our question at hand) and learn the dynamics on various discretization scales. Then we compare the absolute error’s growth for both approaches in figure 5b which supports our hypothesis. While the discrete approximation even outperforms for small $\\Delta t$ , there is a point where it rapidly becomes worse and gets overtaken by the continuous approximation. This suggests that $\\Delta t$ was simply chosen to be too large in both the reacher and the ball in a box with image observations experiment. ",
1034
+ "bbox": [
1035
+ 173,
1036
+ 378,
1037
+ 825,
1038
+ 532
1039
+ ],
1040
+ "page_idx": 7
1041
+ },
1042
+ {
1043
+ "type": "image",
1044
+ "img_path": "images/0e452e2e6f69830aa478e0687ad1ffd2d7d2264958af6ea33ad244daeec98297.jpg",
1045
+ "image_caption": [
1046
+ "Figure 5: (a) Our dynamics model is outperforming even the smoothed KVAE for longer trajectories. (b) Modeling switching variables as Concrete random variables scales less favorably. "
1047
+ ],
1048
+ "image_footnote": [],
1049
+ "bbox": [
1050
+ 207,
1051
+ 546,
1052
+ 787,
1053
+ 723
1054
+ ],
1055
+ "page_idx": 7
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "6 DISCUSSION ",
1060
+ "text_level": 1,
1061
+ "bbox": [
1062
+ 174,
1063
+ 794,
1064
+ 310,
1065
+ 809
1066
+ ],
1067
+ "page_idx": 7
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "We want to emphasize some subtle differences to previously proposed architectures that make an empirical difference, in particular for the case when $s _ { t }$ is chosen to be continuous. In Watter et al. (2015) and Karl et al. (2017a), the latent space is already used to draw transition matrices, however they do not extract features such as walls or joint constraints. There are a few key differences from our approach. First, our latent switching variables $s _ { t }$ are only involved in predicting the current observation $x _ { t }$ through the transition selection process. The likelihood model therefore doesn’t need to learn to ignore some input dimensions which are only helpful for reconstructing future observations but not the current one. There is also a clearer restriction on how $s _ { t }$ and $z _ { t }$ may interact: $s _ { t }$ may now only influence $z _ { t }$ by determining the dynamics, while previously $z _ { t }$ influenced both the choice of transition function as well as acted inside the transition. These two opposing roles lead to conflicting gradients as to what should be improved. Furthermore, the learning signal for $s _ { t }$ is rather weak so that scaling down the KL-regularization was necessary to detect good features. Lastly, a (locally) linear transition may not be a good fit for variables determining dynamics as such variables may change very abruptly. ",
1072
+ "bbox": [
1073
+ 173,
1074
+ 825,
1075
+ 825,
1076
+ 924
1077
+ ],
1078
+ "page_idx": 7
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "",
1083
+ "bbox": [
1084
+ 174,
1085
+ 103,
1086
+ 825,
1087
+ 202
1088
+ ],
1089
+ "page_idx": 8
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "7 CONCLUSION ",
1094
+ "text_level": 1,
1095
+ "bbox": [
1096
+ 176,
1097
+ 222,
1098
+ 318,
1099
+ 238
1100
+ ],
1101
+ "page_idx": 8
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "text": "We have shown that our construction of using switching variables encourages learning a richer and more interpretable latent space. In turn, the richer representation led to an improvement of simulation accuracy in various tasks. In the future, we’d like to look at other ways to approximate the discrete switching variables and exploit this approach for model-based control on real hardware systems. Furthermore, addressing the open problem of disentangling latent spaces is essential to fitting simple dynamics and would lead to significant improvements of this approach. ",
1106
+ "bbox": [
1107
+ 174,
1108
+ 253,
1109
+ 825,
1110
+ 337
1111
+ ],
1112
+ "page_idx": 8
1113
+ },
1114
+ {
1115
+ "type": "text",
1116
+ "text": "REFERENCES ",
1117
+ "text_level": 1,
1118
+ "bbox": [
1119
+ 176,
1120
+ 358,
1121
+ 285,
1122
+ 373
1123
+ ],
1124
+ "page_idx": 8
1125
+ },
1126
+ {
1127
+ "type": "text",
1128
+ "text": "G Ackerson and K Fu. On state estimation in switching environments. IEEE Transactions on Automatic Control, 15(1):10–17, 1970. \nD. Barber. Bayesian Reasoning and Machine Learning. Cambridge University Press, 2012. \nPeter Battaglia, Razvan Pascanu, Matthew Lai, Danilo Jimenez Rezende, et al. Interaction networks for learning about objects, relations and physics. In Advances in neural information processing systems, pp. 4502–4510, 2016. \nJustin Bayer and Christian Osendorfer. Learning stochastic recurrent networks. arXiv preprint arXiv:1411.7610, 2014. \nChaw-Bing Chang and Michael Athans. State estimation for discrete systems with switching parameters. IEEE Transactions on Aerospace and Electronic Systems, (3):418–425, 1978. \nJunyoung Chung, Kyle Kastner, Laurent Dinh, Kratarth Goel, Aaron C Courville, and Yoshua Bengio. A recurrent latent variable model for sequential data. In Advances in neural information processing systems, pp. 2980–2988, 2015. \nAndreas Doerr, Christian Daniel, Martin Schiegg, Duy Nguyen-Tuong, Stefan Schaal, Marc Toussaint, and Sebastian Trimpe. Probabilistic recurrent state-space models. arXiv preprint arXiv:1801.10395, 2018. \nStefanos Eleftheriadis, Tom Nicholson, Marc Deisenroth, and James Hensman. Identification of gaussian process state space models. In Advances in Neural Information Processing Systems, pp. 5309–5319, 2017. \nMarco Fraccaro, Søren Kaae Sønderby, Ulrich Paquet, and Ole Winther. Sequential neural models with stochastic layers. In Advances in neural information processing systems, pp. 2199–2207, 2016. \nMarco Fraccaro, Simon Kamronn, Ulrich Paquet, and Ole Winther. A disentangled recognition and nonlinear dynamics model for unsupervised learning. In Advances in Neural Information Processing Systems, pp. 3604–3613, 2017. \nAnirudh Goyal, Alessandro Sordoni, Marc-Alexandre Côté, Nan Ke, and Yoshua Bengio. Z-forcing: Training stochastic recurrent networks. In Advances in Neural Information Processing Systems, pp. 6713–6723, 2017. \nKaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
1129
+ "bbox": [
1130
+ 171,
1131
+ 381,
1132
+ 828,
1133
+ 930
1134
+ ],
1135
+ "page_idx": 8
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "text": "Irina Higgins, Loic Matthey, Xavier Glorot, Arka Pal, Benigno Uria, Charles Blundell, Shakir Mohamed, and Alexander Lerchner. Early Visual Concept Learning with Unsupervised Deep Learning. 2016. URL http://arxiv.org/abs/1606.05579. ",
1140
+ "bbox": [
1141
+ 179,
1142
+ 103,
1143
+ 823,
1144
+ 147
1145
+ ],
1146
+ "page_idx": 9
1147
+ },
1148
+ {
1149
+ "type": "text",
1150
+ "text": "Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8): 1735–1780, 1997. ",
1151
+ "bbox": [
1152
+ 171,
1153
+ 155,
1154
+ 825,
1155
+ 183
1156
+ ],
1157
+ "page_idx": 9
1158
+ },
1159
+ {
1160
+ "type": "text",
1161
+ "text": "Eric Jang, Shixiang Gu, and Ben Poole. Categorical Reparameterization with Gumbel-Softmax. International Conference on Learning Representations, pp. 1–13, nov 2017. URL http:// arxiv.org/abs/1611.01144. ",
1162
+ "bbox": [
1163
+ 173,
1164
+ 191,
1165
+ 825,
1166
+ 234
1167
+ ],
1168
+ "page_idx": 9
1169
+ },
1170
+ {
1171
+ "type": "text",
1172
+ "text": "Matthew Johnson, David K Duvenaud, Alex Wiltschko, Ryan P Adams, and Sandeep R Datta. Composing graphical models with neural networks for structured representations and fast inference. In Advances in neural information processing systems, pp. 2946–2954, 2016. ",
1173
+ "bbox": [
1174
+ 174,
1175
+ 242,
1176
+ 825,
1177
+ 286
1178
+ ],
1179
+ "page_idx": 9
1180
+ },
1181
+ {
1182
+ "type": "text",
1183
+ "text": "Maximilian Karl, Maximilian Soelch, Justin Bayer, and Patrick van der Smagt. Deep Variational Bayes Filters: Unsupervised Learning of State Space Models from Raw Data. In Proceedings of the International Conference on Learning Representations (ICLR), 2017a. ",
1184
+ "bbox": [
1185
+ 173,
1186
+ 294,
1187
+ 826,
1188
+ 338
1189
+ ],
1190
+ "page_idx": 9
1191
+ },
1192
+ {
1193
+ "type": "text",
1194
+ "text": "Maximilian Karl, Maximilian Soelch, Philip Becker-Ehmck, Djalel Benbouzid, Patrick van der Smagt, and Justin Bayer. Unsupervised real-time control through variational empowerment. arXiv preprint arXiv:1710.05101, 2017b. ",
1195
+ "bbox": [
1196
+ 174,
1197
+ 345,
1198
+ 826,
1199
+ 388
1200
+ ],
1201
+ "page_idx": 9
1202
+ },
1203
+ {
1204
+ "type": "text",
1205
+ "text": "D. P. Kingma and J. Ba. Adam: A Method for Stochastic Optimization. In Proceedings of the 3rd International Conference on Learning Representations (ICLR), 2015. ",
1206
+ "bbox": [
1207
+ 173,
1208
+ 397,
1209
+ 825,
1210
+ 426
1211
+ ],
1212
+ "page_idx": 9
1213
+ },
1214
+ {
1215
+ "type": "text",
1216
+ "text": "Diederik P Kingma and Max Welling. Auto-encoding variational Bayes. In Proceedings of the 2nd International Conference on Learning Representations (ICLR), 2014. ",
1217
+ "bbox": [
1218
+ 174,
1219
+ 434,
1220
+ 825,
1221
+ 464
1222
+ ],
1223
+ "page_idx": 9
1224
+ },
1225
+ {
1226
+ "type": "text",
1227
+ "text": "T. Kipf, E. Fetaya, K.-C. Wang, M. Welling, and R. Zemel. Neural relational inference for interacting systems. In Proceedings of the 35th International Conference on Machine Learning, 2018. ",
1228
+ "bbox": [
1229
+ 174,
1230
+ 472,
1231
+ 825,
1232
+ 502
1233
+ ],
1234
+ "page_idx": 9
1235
+ },
1236
+ {
1237
+ "type": "text",
1238
+ "text": "Rahul G. Krishnan, Uri Shalit, and David Sontag. Deep Kalman Filters. arXiv preprint arXiv:1511.05121, (2000):1–7, 2015. URL http://arxiv.org/abs/1511.05121. ",
1239
+ "bbox": [
1240
+ 174,
1241
+ 508,
1242
+ 825,
1243
+ 539
1244
+ ],
1245
+ "page_idx": 9
1246
+ },
1247
+ {
1248
+ "type": "text",
1249
+ "text": "Rahul G. Krishnan, Uri Shalit, and David Sontag. Structured inference networks for nonlinear state space models. In AAAI, pp. 2101–2109, 2017. ",
1250
+ "bbox": [
1251
+ 173,
1252
+ 546,
1253
+ 823,
1254
+ 577
1255
+ ],
1256
+ "page_idx": 9
1257
+ },
1258
+ {
1259
+ "type": "text",
1260
+ "text": "Scott W. Linderman, Andrew C. Miller, Ryan P. Adams, David M. Blei, Liam Paninski, and Matthew J. Johnson. Recurrent switching linear dynamical systems. 2016. URL http://arxiv.org/ abs/1610.08466. ",
1261
+ "bbox": [
1262
+ 174,
1263
+ 584,
1264
+ 826,
1265
+ 627
1266
+ ],
1267
+ "page_idx": 9
1268
+ },
1269
+ {
1270
+ "type": "text",
1271
+ "text": "Chris J. Maddison, Andriy Mnih, and Yee Whye Teh. The Concrete Distribution: A Continuous Relaxation of Discrete Random Variables. In Proceedings of the International Conference on Learning Representations (ICLR), pp. 1–17, 2017. ISBN 0780365402. URL http://arxiv. org/abs/1611.00712. ",
1272
+ "bbox": [
1273
+ 173,
1274
+ 636,
1275
+ 826,
1276
+ 693
1277
+ ],
1278
+ "page_idx": 9
1279
+ },
1280
+ {
1281
+ "type": "text",
1282
+ "text": "Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In Proceedings of the 31st International Conference on International Conference on Machine Learning - Volume 32, ICML’14, pp. II–1278– II–1286. JMLR.org, 2014. ",
1283
+ "bbox": [
1284
+ 173,
1285
+ 700,
1286
+ 826,
1287
+ 757
1288
+ ],
1289
+ "page_idx": 9
1290
+ },
1291
+ {
1292
+ "type": "text",
1293
+ "text": "Samira Shabanian, Devansh Arpit, Adam Trischler, and Yoshua Bengio. Variational Bi-LSTMs. 2017. URL http://arxiv.org/abs/1711.05717. ",
1294
+ "bbox": [
1295
+ 173,
1296
+ 765,
1297
+ 825,
1298
+ 796
1299
+ ],
1300
+ "page_idx": 9
1301
+ },
1302
+ {
1303
+ "type": "text",
1304
+ "text": "Jakub M Tomczak and Max Welling. Vae with a vampprior. arXiv preprint arXiv:1705.07120, 2017. ",
1305
+ "bbox": [
1306
+ 174,
1307
+ 803,
1308
+ 825,
1309
+ 820
1310
+ ],
1311
+ "page_idx": 9
1312
+ },
1313
+ {
1314
+ "type": "text",
1315
+ "text": "Sjoerd van Steenkiste, Michael Chang, Klaus Greff, and Jürgen Schmidhuber. Relational neural expectation maximization: Unsupervised discovery of objects and their interactions. In Proceedings of the International Conference on Learning Representations (ICLR), 2018. ",
1316
+ "bbox": [
1317
+ 176,
1318
+ 827,
1319
+ 825,
1320
+ 871
1321
+ ],
1322
+ "page_idx": 9
1323
+ },
1324
+ {
1325
+ "type": "text",
1326
+ "text": "Manuel Watter, Jost Springenberg, Joschka Boedecker, and Martin Riedmiller. Embed to control: A locally linear latent dynamics model for control from raw images. In Advances in neural information processing systems, pp. 2746–2754, 2015. ",
1327
+ "bbox": [
1328
+ 178,
1329
+ 878,
1330
+ 823,
1331
+ 921
1332
+ ],
1333
+ "page_idx": 9
1334
+ },
1335
+ {
1336
+ "type": "text",
1337
+ "text": "A LOWER BOUND DERIVATION ",
1338
+ "text_level": 1,
1339
+ "bbox": [
1340
+ 176,
1341
+ 102,
1342
+ 446,
1343
+ 118
1344
+ ],
1345
+ "page_idx": 10
1346
+ },
1347
+ {
1348
+ "type": "text",
1349
+ "text": "For brevity we omit conditioning on control inputs $u _ { 1 : T }$ . ",
1350
+ "bbox": [
1351
+ 173,
1352
+ 152,
1353
+ 545,
1354
+ 169
1355
+ ],
1356
+ "page_idx": 10
1357
+ },
1358
+ {
1359
+ "type": "equation",
1360
+ "img_path": "images/46fee95633a76fc398df7e16f83ffbaa41d93b491342486aac982859fcea1f8b.jpg",
1361
+ "text": "$$\n\\begin{array} { l } { \\displaystyle \\log p ( x _ { T } ) = \\log \\int _ { z _ { 1 : T } } \\int _ { s _ { 1 : T } } q _ { \\phi } ( s _ { 1 : T } , z _ { 1 : T } \\mid x _ { 1 : T } ) \\frac { p _ { \\theta } ( x _ { 1 : T } \\mid z _ { 1 : T } ) p _ { \\theta } ( z _ { 1 : T } , s _ { 1 : T } ) } { q _ { \\phi } ( s _ { 1 : T } , z _ { 1 : T } \\mid x _ { 1 : T } ) } } \\\\ { \\displaystyle \\geq \\int _ { z _ { 1 : T } } \\int _ { s _ { 1 : T } } q _ { \\phi } ( s _ { 1 : T } , z _ { 1 : T } \\mid x _ { 1 : T } ) \\log \\frac { p _ { \\theta } ( x _ { 1 : T } \\mid z _ { 1 : T } ) p _ { \\theta } ( z _ { 1 : T } , s _ { 1 : T } ) } { q _ { \\phi } ( s _ { 1 : T } , z _ { 1 : T } \\mid x _ { 1 : T } ) } } \\\\ { \\displaystyle = \\sum _ { t = 1 } ^ { T } \\mathbb { E } _ { s _ { t } } [ \\mathbb { E } _ { z _ { t } } [ p ( x _ { t } \\mid z _ { t } , s _ { t } ) ] ] - D _ { \\mathrm { K L } } ( q ( z _ { 1 : T } , s _ { 1 : T } \\mid x _ { 1 : T } ) \\mid | p ( z _ { 1 : T } , s _ { 1 : T } ) ) } \\end{array}\n$$",
1362
+ "text_format": "latex",
1363
+ "bbox": [
1364
+ 220,
1365
+ 204,
1366
+ 785,
1367
+ 320
1368
+ ],
1369
+ "page_idx": 10
1370
+ },
1371
+ {
1372
+ "type": "text",
1373
+ "text": "A.1 FACTORIZATION OF THE KL DIVERGENCE ",
1374
+ "text_level": 1,
1375
+ "bbox": [
1376
+ 176,
1377
+ 366,
1378
+ 508,
1379
+ 381
1380
+ ],
1381
+ "page_idx": 10
1382
+ },
1383
+ {
1384
+ "type": "text",
1385
+ "text": "The dependencies on data $x _ { T }$ and $u _ { T }$ as well as parameters $\\phi$ and $\\theta$ are omitted in the following for convenience. ",
1386
+ "bbox": [
1387
+ 174,
1388
+ 405,
1389
+ 825,
1390
+ 434
1391
+ ],
1392
+ "page_idx": 10
1393
+ },
1394
+ {
1395
+ "type": "equation",
1396
+ "img_path": "images/8e49b95be7fb2cebf829bed24f90f756358ac691cd732b07d90dcbda17acfaf1.jpg",
1397
+ "text": "$$\nD _ { \\mathrm { K L } } ( q ( z _ { 1 } , s _ { 2 } , \\ldots , s _ { T } , z _ { T } ) \\parallel p ( z _ { 1 } , s _ { 2 } , \\ldots , s _ { T } , z _ { T } ) )\n$$",
1398
+ "text_format": "latex",
1399
+ "bbox": [
1400
+ 217,
1401
+ 468,
1402
+ 555,
1403
+ 484
1404
+ ],
1405
+ "page_idx": 10
1406
+ },
1407
+ {
1408
+ "type": "equation",
1409
+ "img_path": "images/2236e69753a1a54cf78444cd6f8796c3817be059108bec6c5e0d5e2dbcb328e2.jpg",
1410
+ "text": "$$\n\\begin{array} { r l } { { } } & { { = \\displaystyle \\int _ { z _ { 1 } } \\int _ { s _ { 2 } } \\cdots \\int _ { s _ { T } } \\int _ { z _ { T } } q ( z _ { 1 } ) q ( s _ { 2 } \\mid z _ { 1 } ) \\ldots q ( s _ { T } \\mid z _ { T - 1 } , s _ { T - 1 } ) q ( z _ { T } \\mid z _ { T - 1 } , s _ { T } ) } } \\\\ { { } } & { { \\phantom { = \\displaystyle \\int _ { z _ { 1 } } \\int _ { s _ { 2 } } \\cdots \\int _ { s _ { T } } \\int _ { z _ { T } } q ( z _ { 1 } ) q ( s _ { 2 } \\mid z _ { 1 } ) \\ldots q ( s _ { T } \\mid z _ { T - 1 } , s _ { T - 1 } ) q ( z _ { T } \\mid z _ { T - 1 } , s _ { T } ) } } } \\\\ { { } } & { { \\phantom { = \\displaystyle \\int _ { z _ { 1 } } \\int _ { s _ { 2 } } \\cdots d \\int _ { z _ { T - 1 } } \\int _ { z _ { T - 1 } } s _ { T - 1 } \\int _ { z _ { T } } } } } \\end{array}\n$$",
1411
+ "text_format": "latex",
1412
+ "bbox": [
1413
+ 215,
1414
+ 503,
1415
+ 774,
1416
+ 574
1417
+ ],
1418
+ "page_idx": 10
1419
+ },
1420
+ {
1421
+ "type": "text",
1422
+ "text": "(Factorization of the prior) ",
1423
+ "bbox": [
1424
+ 215,
1425
+ 574,
1426
+ 395,
1427
+ 589
1428
+ ],
1429
+ "page_idx": 10
1430
+ },
1431
+ {
1432
+ "type": "equation",
1433
+ "img_path": "images/daca0f6b48330efe8627e783f0c5eb98c1992084b39e02f588797bc232d16939.jpg",
1434
+ "text": "$$\n\\begin{array} { r l } { { } } & { { = { \\displaystyle \\int _ { z _ { 1 } } \\int _ { s _ { 2 } } \\cdots \\int _ { s _ { T } } \\int _ { z _ { T } } q ( z _ { 1 } ) q ( s _ { 2 } \\mid z _ { 1 } ) \\ldots q ( s _ { T } \\mid z _ { T - 1 } , s _ { T - 1 } ) q ( z _ { T } \\mid z _ { T - 1 } , s _ { T } ) } } } \\\\ { { } } & { { { \\log \\frac { q ( z _ { 1 } ) q ( s _ { 2 } \\mid z _ { 1 } ) \\ldots q ( s _ { T } \\mid z _ { T - 1 } , s _ { T - 1 } ) q ( z _ { T } \\mid z _ { T - 1 } , s _ { T } ) } { p ( z _ { 1 } ) p ( s _ { 2 } \\mid z _ { 1 } ) \\ldots p ( s _ { T } \\mid z _ { T - 1 } , s _ { T - 1 } ) p ( z _ { T } \\mid z _ { T - 1 } , s _ { T } ) } } } } \\end{array}\n$$",
1435
+ "text_format": "latex",
1436
+ "bbox": [
1437
+ 215,
1438
+ 592,
1439
+ 781,
1440
+ 662
1441
+ ],
1442
+ "page_idx": 10
1443
+ },
1444
+ {
1445
+ "type": "text",
1446
+ "text": "(Expanding the logarithm by the product rule) ",
1447
+ "bbox": [
1448
+ 215,
1449
+ 662,
1450
+ 519,
1451
+ 678
1452
+ ],
1453
+ "page_idx": 10
1454
+ },
1455
+ {
1456
+ "type": "equation",
1457
+ "img_path": "images/c04eb8d928288d23f552fc06e2faf837e5282a8c0d87d4f2d42d24f6e592a93d.jpg",
1458
+ "text": "$$\n\\begin{array} { l } { { = \\displaystyle \\int _ { z _ { 1 } } q ( z _ { 1 } ) \\log \\frac { q ( z _ { 1 } ) } { p ( z _ { 1 } ) } + \\displaystyle \\int _ { z _ { 1 } } \\int _ { s _ { 1 } } q ( z _ { 1 } ) q ( s _ { 1 } \\mid z _ { 1 } ) \\log \\frac { q ( s _ { 1 } \\mid z _ { 1 } ) } { p ( s _ { 1 } \\mid z _ { 1 } ) } } } \\\\ { { + \\displaystyle \\sum _ { t = 2 } ^ { T } \\int _ { z _ { 1 } } \\int _ { s _ { 2 } } \\cdots \\int _ { s _ { T } } \\int _ { z _ { T } } q ( z _ { 1 } ) q ( s _ { 2 } \\mid z _ { 1 } ) \\ldots q ( z _ { T } \\mid z _ { T - 1 } , s _ { T } ) \\log \\frac { q ( z _ { t } \\mid z _ { t - 1 } , s _ { t } ) } { p ( z _ { t } \\mid z _ { t - 1 } , s _ { t } ) } } } \\\\ { { + \\displaystyle \\sum _ { t = 3 } ^ { T } \\int _ { z _ { 1 } } \\int _ { s _ { 2 } } \\cdots \\int _ { s _ { T } } \\int _ { z _ { T } } q ( z _ { 1 } ) q ( s _ { 2 } \\mid z _ { 1 } ) \\ldots q ( z _ { T } \\mid z _ { T - 1 } , s _ { T } ) \\log \\frac { q ( s _ { t } \\mid z _ { t - 1 } , s _ { t - 1 } ) } { p ( s _ { t } \\mid z _ { t - 1 } , s _ { t - 1 } ) } } } \\end{array}\n$$",
1459
+ "text_format": "latex",
1460
+ "bbox": [
1461
+ 217,
1462
+ 681,
1463
+ 782,
1464
+ 805
1465
+ ],
1466
+ "page_idx": 10
1467
+ },
1468
+ {
1469
+ "type": "text",
1470
+ "text": "(Ignoring constants) ",
1471
+ "bbox": [
1472
+ 214,
1473
+ 806,
1474
+ 352,
1475
+ 820
1476
+ ],
1477
+ "page_idx": 10
1478
+ },
1479
+ {
1480
+ "type": "equation",
1481
+ "img_path": "images/421c8a72b3727f9413d5ab4807cb8c40703c635642c6c338a772fbe15118719b.jpg",
1482
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle = D _ { \\mathrm { K L } } ( q ( z _ { 1 } ) \\mid | \\ p ( z _ { 1 } ) ) + \\mathbb { E } _ { z _ { 1 } \\sim q ( z _ { 1 } ) } [ D _ { \\mathrm { K L } } ( q ( s _ { 2 } \\mid z _ { 1 } ) \\mid | \\ p ( s _ { 2 } \\mid z _ { 1 } ) ) ] } } \\\\ { { \\displaystyle ~ + \\sum _ { t = 2 } ^ { T - 1 } \\mathbb { E } _ { s _ { t } , z _ { t - 1 } } [ D _ { \\mathrm { K L } } ( q ( z _ { t } \\mid z _ { t - 1 } , s _ { t } ) \\mid | \\ p ( z _ { t } \\mid z _ { t - 1 } , s _ { t } ) ) ] } } \\\\ { { \\displaystyle ~ + \\sum _ { t = 3 } ^ { T - 1 } \\mathbb { E } _ { s _ { t - 1 } , z _ { t - 1 } } [ D _ { \\mathrm { K L } } ( q ( s _ { t } \\mid z _ { t - 1 } , s _ { t - 1 } ) \\mid | \\ p ( s _ { t } \\mid z _ { t - 1 } , s _ { t - 1 } ) ) ] } } \\end{array}\n$$",
1483
+ "text_format": "latex",
1484
+ "bbox": [
1485
+ 215,
1486
+ 821,
1487
+ 658,
1488
+ 929
1489
+ ],
1490
+ "page_idx": 10
1491
+ },
1492
+ {
1493
+ "type": "table",
1494
+ "img_path": "images/3a9a6244447cadd7e5ef221bf24b639a74797971ffc37c258bdc8cb435728d36.jpg",
1495
+ "table_caption": [
1496
+ "Table 2: Dimensionality of environments. "
1497
+ ],
1498
+ "table_footnote": [],
1499
+ "table_body": "<table><tr><td>Dimensionality of(</td><td>Observation Space</td><td>Control Input Space</td><td>Ground Truth State Space</td></tr><tr><td>Reacher</td><td>7</td><td>2</td><td>9</td></tr><tr><td>Hopper</td><td>8</td><td>3</td><td>15</td></tr><tr><td>Multi Agent Maze</td><td>4</td><td>6</td><td>12</td></tr><tr><td>Image Ball in BoX</td><td>32 × 32</td><td>0</td><td>4</td></tr></table>",
1500
+ "bbox": [
1501
+ 186,
1502
+ 133,
1503
+ 808,
1504
+ 212
1505
+ ],
1506
+ "page_idx": 11
1507
+ },
1508
+ {
1509
+ "type": "text",
1510
+ "text": "B DETAILS OF THE EXPERIMENTAL SETUP ",
1511
+ "text_level": 1,
1512
+ "bbox": [
1513
+ 174,
1514
+ 242,
1515
+ 545,
1516
+ 258
1517
+ ],
1518
+ "page_idx": 11
1519
+ },
1520
+ {
1521
+ "type": "text",
1522
+ "text": "B.1 ENVIRONMENTS ",
1523
+ "text_level": 1,
1524
+ "bbox": [
1525
+ 174,
1526
+ 273,
1527
+ 331,
1528
+ 289
1529
+ ],
1530
+ "page_idx": 11
1531
+ },
1532
+ {
1533
+ "type": "text",
1534
+ "text": "B.1.1 ROBOSCHOOL REACHER ",
1535
+ "text_level": 1,
1536
+ "bbox": [
1537
+ 176,
1538
+ 300,
1539
+ 401,
1540
+ 314
1541
+ ],
1542
+ "page_idx": 11
1543
+ },
1544
+ {
1545
+ "type": "text",
1546
+ "text": "To generate data, we follow a Uniform distribution $\\mathcal { U } \\sim [ - 1 , 1 ]$ as the exploration policy. Before we record data, we take 20 warm-up steps in the environment to randomize our starting state. We take the data as is without any other preprocessing. ",
1547
+ "bbox": [
1548
+ 174,
1549
+ 324,
1550
+ 825,
1551
+ 367
1552
+ ],
1553
+ "page_idx": 11
1554
+ },
1555
+ {
1556
+ "type": "text",
1557
+ "text": "B.1.2 MULTI AGENT MAZE ",
1558
+ "text_level": 1,
1559
+ "bbox": [
1560
+ 176,
1561
+ 382,
1562
+ 380,
1563
+ 397
1564
+ ],
1565
+ "page_idx": 11
1566
+ },
1567
+ {
1568
+ "type": "text",
1569
+ "text": "Observations are normalized to be in $[ - 1 , 1 ]$ . Both position and velocity is randomized for the starting state. We again follow a Uniform distribution $\\mathcal { U } \\sim [ - 1 , 1 ]$ as the exploration policy. ",
1570
+ "bbox": [
1571
+ 174,
1572
+ 406,
1573
+ 821,
1574
+ 435
1575
+ ],
1576
+ "page_idx": 11
1577
+ },
1578
+ {
1579
+ "type": "text",
1580
+ "text": "B.2 TRAINING ",
1581
+ "text_level": 1,
1582
+ "bbox": [
1583
+ 174,
1584
+ 453,
1585
+ 289,
1586
+ 468
1587
+ ],
1588
+ "page_idx": 11
1589
+ },
1590
+ {
1591
+ "type": "text",
1592
+ "text": "Overall, training the Concrete distribution has given us the biggest challenge as it was very susceptible to various hyperparameters. We made use of the fact that we can use a different temperature for the prior and approximate posterior (Maddison et al., 2017) and we do independent hyperparameter search over both. For us, the best values were 0.75 for the posterior and 2 for the prior. Additionally, we employ an exponential annealing scheme for the temperature hyperparameter of the Concrete distribution. This leads to a more uniform combination of base matrices early in training which has two desirable effects. First, all matrices are scaled to a similar magnitude, making initialization less critical. Second, the model initially tries to fit a globally linear model, leading to a good starting state for optimization. We also tried increasing the number of samples taken (up to 100) to approximate the KL between the Concrete distributions, however we have not observed an improvement of performance. We therefore restrict ourselves to 10 samples for all experiments. ",
1593
+ "bbox": [
1594
+ 174,
1595
+ 479,
1596
+ 825,
1597
+ 632
1598
+ ],
1599
+ "page_idx": 11
1600
+ },
1601
+ {
1602
+ "type": "text",
1603
+ "text": "In all experiments, we train everything end-to-end with the ADAM optimizer.(Kingma & Ba, 2015) We start with learning rate of $5 \\mathrm { e } { - 4 }$ and use an exponential decay schedule with rate 0.97 every 2000 iterations. ",
1604
+ "bbox": [
1605
+ 176,
1606
+ 640,
1607
+ 825,
1608
+ 681
1609
+ ],
1610
+ "page_idx": 11
1611
+ },
1612
+ {
1613
+ "type": "text",
1614
+ "text": "B.3 NETWORK ARCHITECTURE ",
1615
+ "text_level": 1,
1616
+ "bbox": [
1617
+ 176,
1618
+ 699,
1619
+ 403,
1620
+ 713
1621
+ ],
1622
+ "page_idx": 11
1623
+ },
1624
+ {
1625
+ "type": "text",
1626
+ "text": "For most networks, we use MLPs implemented as residual nets (He et al., 2016) with ReLU activations. ",
1627
+ "bbox": [
1628
+ 176,
1629
+ 724,
1630
+ 825,
1631
+ 753
1632
+ ],
1633
+ "page_idx": 11
1634
+ },
1635
+ {
1636
+ "type": "text",
1637
+ "text": "Networks used for the reacher and maze experiments. ",
1638
+ "bbox": [
1639
+ 174,
1640
+ 760,
1641
+ 526,
1642
+ 775
1643
+ ],
1644
+ "page_idx": 11
1645
+ },
1646
+ {
1647
+ "type": "text",
1648
+ "text": "• $q _ { \\mathrm { m e a s } } ( z _ { t } \\mid \\cdot )$ : MLP consisting of two residual blocks with 256 neurons each. We only condition on the current observation $x _ { t }$ although we could condition on the entire sequence. This decision was taken based on empirical results. \n) $q _ { \\mathrm { t r a n s } } ( z _ { t } \\mid \\cdot )$ : In the case of Concrete random variables, we just combine the base matrices and apply the transition dynamics to $z _ { t - 1 }$ . For the Normal case, the combination of matrices is preceded by a linear combination with softmax activation. (see equation 14) $q _ { \\mathrm { m e a s } } ( s _ { t } \\mid \\cdot )$ : is implemented by a backward LSTM with 256 hidden units. We reuse the preprocessing of $q _ { m e a s } ( z _ { t } \\mid x _ { t } )$ and take the last hidden layer of that network as the input to the LSTM. \n• $q _ { \\mathrm { t r a n s } } ( s _ { t } \\mid \\cdot )$ : MLP consisting of one residual block with 256 neurons. \n• $q _ { \\mathrm { i n i t i a l } } ( w \\mid \\cdot )$ : MLP consisting of two residual block with 256 neurons optionally followed by a backward LSTM. We only condition on the first 3 or 4 observations for our experiments. \n• $q _ { \\mathrm { i n i t i a l } } ( s _ { 2 } )$ : The first switching variable in the sequence has no predecessor. We therefore require a replacement for $q _ { t r a n s } ( s _ { t } \\mid \\cdot )$ in the first time step, which we achieve by independently parameterizing another MLP. \n• $p ( x _ { t } \\mid z _ { t } )$ : MLP consisting of two residual block with 256 neurons. \n• $p ( \\boldsymbol { z } _ { t } \\mid \\cdot )$ : Shared parameters with $q _ { t r a n s } ( z _ { t } \\mid \\cdot )$ . \n• $p ( s _ { t } \\mid \\cdot )$ : Shared parameters with $q _ { t r a n s } ( s _ { t } \\mid \\cdot )$ . ",
1649
+ "bbox": [
1650
+ 215,
1651
+ 786,
1652
+ 825,
1653
+ 924
1654
+ ],
1655
+ "page_idx": 11
1656
+ },
1657
+ {
1658
+ "type": "text",
1659
+ "text": "",
1660
+ "bbox": [
1661
+ 215,
1662
+ 102,
1663
+ 826,
1664
+ 256
1665
+ ],
1666
+ "page_idx": 12
1667
+ },
1668
+ {
1669
+ "type": "text",
1670
+ "text": "We use the same architecture for the image ball in a box experiment, however we increase number of neurons of $q _ { \\mathrm { m e a s } } ( z _ { t } \\mid \\cdot )$ to 1024. ",
1671
+ "bbox": [
1672
+ 173,
1673
+ 265,
1674
+ 825,
1675
+ 295
1676
+ ],
1677
+ "page_idx": 12
1678
+ },
1679
+ {
1680
+ "type": "text",
1681
+ "text": "B.4 HYPERPARAMETERS ",
1682
+ "text_level": 1,
1683
+ "bbox": [
1684
+ 174,
1685
+ 310,
1686
+ 361,
1687
+ 325
1688
+ ],
1689
+ "page_idx": 12
1690
+ },
1691
+ {
1692
+ "type": "table",
1693
+ "img_path": "images/1f1746708b21bc9d06889b6359b16d5a494473a00c6120e7380856e09b783e41.jpg",
1694
+ "table_caption": [
1695
+ "Table 3: Overview of hyperparameters. "
1696
+ ],
1697
+ "table_footnote": [],
1698
+ "table_body": "<table><tr><td></td><td>Multi Agent Maze</td><td>Reacher</td><td>Image Ball in Box</td></tr><tr><td># episodes</td><td>50000</td><td>20000</td><td>5000</td></tr><tr><td>episode length</td><td>20</td><td>30</td><td>20</td></tr><tr><td>batch size</td><td>256</td><td>128</td><td>256</td></tr><tr><td>dimension of z</td><td>32</td><td>16</td><td>8</td></tr><tr><td>dimension of s</td><td>16</td><td>8</td><td>8</td></tr><tr><td>posterior temperature</td><td>0.75</td><td>0.75</td><td>0.67</td></tr><tr><td>prior temperature</td><td>2</td><td>2</td><td>2</td></tr><tr><td>temperature annealing steps</td><td>100</td><td>100</td><td>100</td></tr><tr><td>temperature annealing rate</td><td>0.97</td><td>0.97</td><td>0.98</td></tr><tr><td>β (KL-scaling of switching variables)</td><td>0.1</td><td>0.1</td><td>0.1</td></tr></table>",
1699
+ "bbox": [
1700
+ 189,
1701
+ 372,
1702
+ 808,
1703
+ 536
1704
+ ],
1705
+ "page_idx": 12
1706
+ },
1707
+ {
1708
+ "type": "text",
1709
+ "text": "C ON SCALING ISSUES OF SWITCHING LINEAR DYNAMICAL SYSTEMS ",
1710
+ "text_level": 1,
1711
+ "bbox": [
1712
+ 171,
1713
+ 571,
1714
+ 769,
1715
+ 587
1716
+ ],
1717
+ "page_idx": 12
1718
+ },
1719
+ {
1720
+ "type": "text",
1721
+ "text": "Let’s consider a simple representation of a ball in a rectangular box where its state is represented by its position and velocity. Given a small enough $\\Delta t$ , we can approximate the dynamics decently by just 3 systems: no interaction with the wall, interaction with a vertical or horizontal wall (ignoring the corner case of interacting with two walls at the same time). Now consider the growth of required base systems if we increase the number of balls in the box (even if these balls cannot interact with each other). We would require a system for all combinations of a single ball’s possible states: $3 ^ { 2 }$ This will grow exponentially with the number of balls in the environment. ",
1722
+ "bbox": [
1723
+ 173,
1724
+ 602,
1725
+ 825,
1726
+ 700
1727
+ ],
1728
+ "page_idx": 12
1729
+ },
1730
+ {
1731
+ "type": "text",
1732
+ "text": "One way to alleviate this problem that requires only a linear growth in base systems is to independently turn individual systems on and off and let the resulting system the sum of all activated systems. A base system may then represent solely the transition for a single ball being in specific state, while the complete system is then a combination of $N$ such systems where $N$ is the number of balls. Practically, this can be achieved by replacing the softmax by a sigmoid activation function or by replacing the categorical variable $s$ of dimension $M$ by $M$ Bernoulli variables indicating whether a single system is active or not. We do this for our multiple agents in a maze environment. ",
1733
+ "bbox": [
1734
+ 174,
1735
+ 707,
1736
+ 825,
1737
+ 804
1738
+ ],
1739
+ "page_idx": 12
1740
+ },
1741
+ {
1742
+ "type": "text",
1743
+ "text": "Theoretically, a preferred approach would be to disentangle multiple systems (like balls, joints) and apply transitions only to their respective states. This, however, would require a proper and unsupervised separation of (mostly) independent components. We defer this to future work. ",
1744
+ "bbox": [
1745
+ 174,
1746
+ 811,
1747
+ 825,
1748
+ 853
1749
+ ],
1750
+ "page_idx": 12
1751
+ },
1752
+ {
1753
+ "type": "text",
1754
+ "text": "D FURTHER RESULTS ",
1755
+ "text_level": 1,
1756
+ "bbox": [
1757
+ 174,
1758
+ 102,
1759
+ 370,
1760
+ 118
1761
+ ],
1762
+ "page_idx": 13
1763
+ },
1764
+ {
1765
+ "type": "text",
1766
+ "text": "D.1 3-AGENT MAZE ",
1767
+ "text_level": 1,
1768
+ "bbox": [
1769
+ 174,
1770
+ 133,
1771
+ 331,
1772
+ 148
1773
+ ],
1774
+ "page_idx": 13
1775
+ },
1776
+ {
1777
+ "type": "image",
1778
+ "img_path": "images/a6cbeb7cfa725ccd9d3588936bebbdaf170a4b93f96ae105d0b31e890791f724.jpg",
1779
+ "image_caption": [
1780
+ "Figure 6: Comparison of actual and predicted 20 step trajectories. The diamond marker denotes the starting position of a trajectory. "
1781
+ ],
1782
+ "image_footnote": [],
1783
+ "bbox": [
1784
+ 356,
1785
+ 164,
1786
+ 640,
1787
+ 376
1788
+ ],
1789
+ "page_idx": 13
1790
+ },
1791
+ {
1792
+ "type": "text",
1793
+ "text": "D.2 IMAGE BALL IN A BOX ",
1794
+ "text_level": 1,
1795
+ "bbox": [
1796
+ 174,
1797
+ 445,
1798
+ 379,
1799
+ 460
1800
+ ],
1801
+ "page_idx": 13
1802
+ },
1803
+ {
1804
+ "type": "image",
1805
+ "img_path": "images/591c3c42a554e02486eb4fda365270cf8b98b397e40d966b285967c2ff546d0a.jpg",
1806
+ "image_caption": [],
1807
+ "image_footnote": [],
1808
+ "bbox": [
1809
+ 179,
1810
+ 478,
1811
+ 818,
1812
+ 801
1813
+ ],
1814
+ "page_idx": 13
1815
+ },
1816
+ {
1817
+ "type": "text",
1818
+ "text": "Figure 7: First row: data, second row: reconstructions, third row: predictions. The first 4 steps are used to find a stable starting state, predictions start with step 5. ",
1819
+ "bbox": [
1820
+ 173,
1821
+ 814,
1822
+ 823,
1823
+ 843
1824
+ ],
1825
+ "page_idx": 13
1826
+ }
1827
+ ]
parse/train/SJi9WOeRb/SJi9WOeRb.md ADDED
@@ -0,0 +1,598 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # GRADIENT ESTIMATORS FOR IMPLICIT MODELS
2
+
3
+ Yingzhen Li & Richard E. Turner University of Cambridge Cambridge, CB2 1PZ, UK {yl494,ret26}@cam.ac.uk
4
+
5
+ # ABSTRACT
6
+
7
+ Implicit models, which allow for the generation of samples but not for point-wise evaluation of probabilities, are omnipresent in real-world problems tackled by machine learning and a hot topic of current research. Some examples include data simulators that are widely used in engineering and scientific research, generative adversarial networks (GANs) for image synthesis, and hot-off-the-press approximate inference techniques relying on implicit distributions. The majority of existing approaches to learning implicit models rely on approximating the intractable distribution or optimisation objective for gradient-based optimisation, which is liable to produce inaccurate updates and thus poor models. This paper alleviates the need for such approximations by proposing the Stein gradient estimator, which directly estimates the score function of the implicitly defined distribution. The efficacy of the proposed estimator is empirically demonstrated by examples that include gradient-free MCMC, meta-learning for approximate inference and entropy regularised GANs that provide improved sample diversity.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Modelling is fundamental to the success of technological innovations for artificial intelligence. A powerful model learns a useful representation of the observations for a specified prediction task, and generalises to unknown instances that follow similar generative mechanics. A well established area of machine learning research focuses on developing prescribed probabilistic models (Diggle & Gratton, 1984), where learning is based on evaluating the probability of observations under the model. Implicit probabilistic models, on the other hand, are defined by a stochastic procedure that allows for direct generation of samples, but not for the evaluation of model probabilities. These are omnipresent in scientific and engineering research involving data analysis, for instance ecology, climate science and geography, where simulators are used to fit real-world observations to produce forecasting results. Within the machine learning community there is a recent interest in a specific type of implicit models, generative adversarial networks (GANs) (Goodfellow et al., 2014), which has been shown to be one of the most successful approaches to image and text generation (Radford et al., 2016; Yu et al., 2017; Arjovsky et al., 2017; Berthelot et al., 2017). Very recently, implicit distributions have also been considered as approximate posterior distributions for Bayesian inference, e.g. see Liu & Feng (2016); Wang & Liu (2016); Li & Liu (2016); Karaletsos (2016); Mescheder et al. (2017); Huszar (2017); Li et al. (2017); Tran et al. (2017). These examples demonstrate the su-´ perior flexibility of implicit models, which provide highly expressive means of modelling complex data structures.
12
+
13
+ Whilst prescribed probabilistic models can be learned by standard (approximate) maximum likelihood or Bayesian inference, implicit probabilistic models require substantially more severe approximations due to the intractability of the model distribution. Many existing approaches first approximate the model distribution or optimisation objective function and then use those approximations to learn the associated parameters. However, for any finite number of data points there exists an infinite number of functions, with arbitrarily diverse gradients, that can approximate perfectly the objective function at the training datapoints, and optimising such approximations can lead to unstable training and poor results. Recent research on GANs, where the issue is highly prevalent, suggest that restricting the representational power of the discriminator is effective in stabilising training (e.g. see Arjovsky et al., 2017; Kodali et al., 2017). However, such restrictions often introduce undesirable biases, responsible for problems such as mode collapse in the context of GANs, and the underestimation of uncertainty in variational inference methods (Turner & Sahani, 2011).
14
+
15
+ ![](images/11baac80c9c0e12b40b681e1c4d420fc091d6a6fa494f594a8131dc46053395c.jpg)
16
+ Figure 1: A comparison between the two approximation schemes. Since in practice the optimiser only visits finite number of locations in the parameter space, it can lead to over-fitting if the neural network based functional approximator is not carefully regularised, and therefore the curvature information of the approximated loss can be very different from that of the original loss (shown in (a)). On the other hand, the gradient approximation scheme (b) can be more accurate since it only involves estimating the sensitivity of the loss function to the parameters in a local region.
17
+
18
+ In this paper we explore approximating the derivative of the log density, known as the score function, as an alternative method for training implicit models. An accurate approximation of the score function then allows the application of many well-studied algorithms, such as maximum likelihood, maximum entropy estimation, variational inference and gradient-based MCMC, to implicit models. Concretely, our contributions include:
19
+
20
+ • the Stein gradient estimator, a novel generalisation of the score matching gradient estimator (Hyvarinen, 2005), that includes both parametric and non-parametric forms; ¨ • a comparison of the proposed estimator with the score matching and the KDE plug-in estimators on performing gradient-free MCMC, meta-learning of approximate posterior samplers for Bayesian neural networks, and entropy based regularisation of GANs.
21
+
22
+ # 2 LEARNING IMPLICIT PROBABILISTIC MODELS
23
+
24
+ Given a dataset $\mathcal { D }$ containing i.i.d. samples we would like to learn a probabilistic model $p ( { \pmb x } )$ for the underlying data distribution $p _ { \mathcal { D } } ( \pmb { x } )$ . In the case of implicit models, $p ( { \pmb x } )$ is defined by a generative process. For example, to generate images, one might define a generative model $p ( { \pmb x } )$ that consists of sampling randomly a latent variable $z \sim p _ { 0 } ( z )$ and then defining $\mathbf { \boldsymbol { x } } = \mathbf { \boldsymbol { f } } _ { \boldsymbol { \theta } } ( \boldsymbol { z } )$ . Here $f$ is a function parametrised by $\pmb { \theta }$ , usually a deep neural network or a simulator. We assume $f$ to be differentiable w.r.t. $\pmb { \theta }$ . An extension to this scenario is presented by conditional implicit models, where the addition of a supervision signal $\textbf { { y } }$ , such as an image label, allows us to define a conditional distribution $p ( { \pmb x } | { \pmb y } )$ implicitly by the transformation $\pmb { x } = f _ { \pmb { \theta } } ( \pmb { z } , \pmb { y } )$ . A related methodology, wild variational inference (Liu & Feng, 2016; Li $\&$ Liu, 2016) assumes a tractable joint density $p ( { \pmb x } , { \pmb z } )$ , but uses implicit proposal distributions to approximate an intractable exact posterior $p ( \boldsymbol { z } | \boldsymbol { x } )$ . Here the approximate posterior $q ( \pmb { z } | \pmb { x } )$ can likewise be represented by a deep neural network, but also by a truncated Markov chain, such as that given by Langevin dynamics with learnable step-size.
25
+
26
+ Whilst providing extreme flexibility and expressive power, the intractability of density evaluation also brings serious optimisation issues for implicit models. This is because many learning algorithms, e.g. maximum likelihood estimation (MLE), rely on minimising a distance/divergence/discrepancy measure $\mathrm { D } [ p | | p _ { \mathcal { D } } ]$ , which often requires evaluating the model density (c.f. Ranganath et al., 2016; Liu & Feng, 2016). Thus good approximations to the optimisation procedure are the key to learning implicit models that can describe complex data structure. In the context of GANs, the Jensen-Shannon divergence is approximated by a variational lower-bound represented by a discriminator (Barber & Agakov, 2003; Goodfellow et al., 2014). Related work for wild variational inference (Li & Liu, 2016; Mescheder et al., 2017; Huszar, 2017; Tran et al., ´ 2017) uses a GAN-based technique to construct a density ratio estimator for $q / p _ { 0 }$ (Sugiyama et al., 2009; 2012; Uehara et al., 2016; Mohamed & Lakshminarayanan, 2016) and then approximates the KL-divergence term in the variational lower-bound:
27
+
28
+ $$
29
+ \begin{array} { r } { \mathcal { L } _ { \mathrm { V I } } ( q ) = \mathbb { E } _ { q } \left[ \log p ( \pmb { x } | \pmb { z } ) \right] - \mathrm { K L } [ q _ { \phi } ( \pmb { z } | \pmb { x } ) | | p _ { 0 } ( \pmb { z } ) ] . } \end{array}
30
+ $$
31
+
32
+ In addition, Li & Liu (2016) and Mescheder et al. (2017) exploit the additive structure of the KLdivergence and suggest discriminating between $q$ and an auxiliary distribution that is close to $q$ , making the density ratio estimation more accurate. Nevertheless all these algorithms involve a minimax optimisation, and the current practice of gradient-based optimisation is notoriously unstable.
33
+
34
+ The stabilisation of GAN training is itself a recent trend of related research (e.g. see Salimans et al., 2016; Arjovsky et al., 2017). However, as the gradient-based optimisation only interacts with gradients, there is no need to use a discriminator if an accurate approximation to the intractable gradients could be obtained. As an example, consider a variational inference task with the approximate posterior defined as $z \sim q _ { \phi } ( z | x ) \stackrel { \cdot } { \Leftrightarrow } \epsilon \sim \pi ( \epsilon ) , z = f _ { \phi } ( \epsilon , x )$ . Notice that the variational lower-bound can be rewritten as
35
+
36
+ $$
37
+ \begin{array} { r } { \mathcal { L } _ { \mathrm { V I } } ( q ) = \mathbb { E } _ { q } \left[ \log p ( \pmb { x } , z ) \right] + \mathbb { H } [ q _ { \phi } ( z | \pmb { x } ) ] , } \end{array}
38
+ $$
39
+
40
+ the gradient of the variational parameters $\phi$ can be computed by a sum of the path gradient of the first term (i.e. $\mathbb { E } _ { \boldsymbol { \pi } } \left[ \nabla _ { f } \log \bar { p } ( \boldsymbol { x } , f ( \boldsymbol { \epsilon } , \boldsymbol { x } ) ) ^ { \mathrm { T } } \nabla _ { \phi } f ( \boldsymbol { \epsilon } , \boldsymbol { x } ) \right] \bar { ) }$ and the gradient of the entropy term $\nabla _ { \phi } \mathbb { H } [ q ( \pmb { z } | \pmb { x } ) ]$ . Expanding the latter, we have
41
+
42
+ $$
43
+ \begin{array} { r l } & { \nabla _ { \phi } \mathbb { H } [ q _ { \phi } ( z | x ) ] = - \nabla _ { \phi } \mathbb { E } _ { \pi ( \epsilon ) } [ \log { q _ { \phi } ( f _ { \phi } ( \epsilon , x ) ) } ] } \\ & { \quad \quad \quad \quad \quad = - \mathbb { E } _ { \pi ( \epsilon ) } [ \nabla _ { \phi } \log { q _ { \phi } ( f _ { \phi } ( \epsilon , x ) ) } ] } \\ & { \quad \quad \quad \quad = - \mathbb { E } _ { \pi ( \epsilon ) } [ \nabla _ { \phi } \log { q _ { \phi } ( z | x ) } | _ { z = f _ { \phi } ( \epsilon , x ) } + \nabla _ { f } \log { q _ { \phi } ( f _ { \phi } ( \epsilon , x ) | x ) } \nabla _ { \phi } f _ { \phi } ( \epsilon , x ) ] } \\ & { \quad \quad \quad = - \mathbb { E } _ { q _ { \phi } ( z | x ) } [ \nabla _ { \phi } \log { q _ { \phi } ( z | x ) } ] - \mathbb { E } _ { \pi ( \epsilon ) } [ \nabla _ { f } \log { q _ { \phi } ( f _ { \phi } ( \epsilon , x ) | x ) } \nabla _ { \phi } f _ { \phi } ( \epsilon , x ) ] , } \end{array}
44
+ $$
45
+
46
+ in which the first term in the last line is zero (Roeder et al., 2017). As we typically assume the tractability of $\nabla _ { \phi } f$ , an accurate approximation to $\nabla _ { z } \log { q ( z | x ) }$ would remove the requirement of discriminators, speed-up the learning and obtain potentially a better model. Many gradient approximation techniques exist (Stone, 1985; Fan & Gijbels, 1996; Zhou & Wolfe, 2000; De Brabanter et al., 2013), and in particular, in the next section we will review kernel-based methods such as kernel density estimation (Singh, 1977) and score matching (Hyvarinen, 2005) in more detail, and ¨ motivate the main contribution of the paper.
47
+
48
+ # 3 GRADIENT APPROXIMATION WITH THE STEIN GRADIENT ESTIMATOR
49
+
50
+ We propose the Stein gradient estimator as a novel generalisation of the score matching gradient estimator. Before presenting it we first set-up the notation. Column vectors and matrices are boldfaced. The random variable under consideration is $\mathbf { \boldsymbol { x } } \in \mathcal { X }$ with $\mathcal { X } = \mathbb { R } ^ { d \times 1 }$ if not specifically mentioned. To avoid misleading notation we use the distribution $q ( { \pmb x } )$ to derive the gradient approximations for general cases. As Monte Carlo methods are heavily used for implicit models, in the rest of the paper we mainly consider approximating the gradient $\pmb { g } ( \pmb { x } ^ { k } ) : = \nabla _ { \pmb { x } ^ { k } } \mathrm { \tilde { l o g } } q ( \pmb { x } ^ { k } )$ for $\begin{array} { r } { \pmb { x } ^ { k } \sim q ( \pmb { x } ) , k = \hat { 1 } , . . . , K } \end{array}$ . We use $\boldsymbol { x } _ { j } ^ { i }$ to denote the $j$ th element of the ith sample $\mathbf { x } ^ { i }$ . We also denote the matrix form of the collected gradients as $\mathbf { G } : = \left( \nabla _ { \pmb { x } ^ { 1 } } \log q ( \pmb { x } ^ { 1 } ) , \cdots , \nabla _ { \pmb { x } ^ { K } } \log q ( \pmb { x } ^ { K } ) \right) ^ { \mathrm { T } } \in \mathbb { R } ^ { K \times d } .$ , and its approximation $\hat { \mathbf { G } } : = \left( \hat { g } ( \pmb { x } ^ { 1 } ) , \cdots , \hat { g } ( \pmb { x } ^ { K } ) \right) ^ { \mathrm { T } }$ with $\hat { g } ( \pmb { x } ^ { k } ) = \nabla _ { \pmb { x } ^ { k } } \log \hat { q } ( \pmb { x } ^ { k } )$ for some ${ \hat { q } } ( { \pmb x } )$ .
51
+
52
+ # 3.1 STEIN GRADIENT ESTIMATOR: INVERTING STEIN’S IDENTITY
53
+
54
+ We start from introducing Stein’s identity that was first developed for Gaussian random variables (Stein, 1972; 1981) then extended to general cases (Gorham $\&$ Mackey, 2015; Liu et al., 2016). Let $\pmb { h } : \mathbb { R } ^ { d \times 1 } \mathbb { R } ^ { d ^ { \prime } \times 1 }$ be a differentiable multivariate test function which maps $_ { \textbf { \em x } }$ to a column vector $\pmb { h } ( \pmb { x } ) = [ h _ { 1 } ( \pmb { x } ) , h _ { 2 } ( \pmb { x } ) , . . . , h _ { d ^ { \prime } } ( \pmb { x } ) ] ^ { \mathrm { T } }$ . We further assume the boundary condition for $^ { h }$ :
55
+
56
+ $$
57
+ q ( \pmb { x } ) \pmb { h } ( \pmb { x } ) | _ { \partial \mathcal { X } } = \mathbf { 0 } , \mathrm { ~ o r ~ } \operatorname* { l i m } _ { \pmb { x } \infty } q ( \pmb { x } ) \pmb { h } ( \pmb { x } ) = 0 \mathrm { ~ i f ~ } \mathcal { X } = \mathbb { R } ^ { d } .
58
+ $$
59
+
60
+ This condition holds for almost any test function if $q$ has sufficiently fast-decaying tails (e.g. Gaussian tails). Now we introduce Stein’s identity (Stein, 1981; Gorham & Mackey, 2015; Liu et al., 2016)
61
+
62
+ $$
63
+ \mathbb { E } _ { q } [ { \pmb h } ( { \pmb x } ) \nabla _ { \pmb x } \log q ( { \pmb x } ) ^ { \mathrm { T } } + \nabla _ { \pmb x } { \pmb h } ( { \pmb x } ) ] = { \bf 0 } ,
64
+ $$
65
+
66
+ in which the gradient matrix term $\nabla _ { \pmb { x } } \pmb { h } ( \pmb { x } ) = \left( \nabla _ { \pmb { x } } h _ { 1 } ( \pmb { x } ) , \cdots , \nabla _ { \pmb { x } } h _ { d ^ { \prime } } ( \pmb { x } ) \right) ^ { \mathrm { T } } \in \mathbb { R } ^ { d ^ { \prime } \times d }$ . This identity can be proved using integration by parts: for the ith row of the matrix $\pmb { h } ( \pmb { x } ) \nabla _ { \pmb { x } } \log q ( \pmb { x } ) ^ { \mathnormal { \mathrm { T } } }$ , we have
67
+
68
+ $$
69
+ \begin{array} { r l r } { { \mathbb { E } _ { q } [ h _ { i } ( \pmb { x } ) \nabla _ { \pmb { x } } \log q ( \pmb { x } ) ^ { \mathrm { T } } ] = \int h _ { i } ( \pmb { x } ) \nabla _ { \pmb { x } } q ( \pmb { x } ) ^ { \mathrm { T } } d \pmb { x } } } \\ & { } & { = q ( \pmb { x } ) h _ { i } ( \pmb { x } ) | _ { \partial \mathscr { X } } - \int q ( \pmb { x } ) \nabla _ { \pmb { x } } h _ { i } ( \pmb { x } ) ^ { \mathrm { T } } d \pmb { x } } \\ & { } & { = - \mathbb { E } _ { q } [ \nabla _ { \pmb { x } } h _ { i } ( \pmb { x } ) ^ { \mathrm { T } } ] . } \end{array}
70
+ $$
71
+
72
+ Observing that the gradient term $\nabla _ { \pmb { x } } \log { q ( \pmb { x } ) }$ of interest appears in Stein’s identity (5), we propose the Stein gradient estimator by inverting Stein’s identity. As the expectation in (5) is intractable, we further approximate the above with Monte Carlo (MC):
73
+
74
+ $$
75
+ \frac { 1 } { K } \sum _ { k = 1 } ^ { K } - h ( \boldsymbol { x } ^ { k } ) \nabla _ { \boldsymbol { x } ^ { k } } \log q ( \boldsymbol { x } ^ { k } ) ^ { \mathrm { T } } + \mathrm { e r r } = \frac { 1 } { K } \sum _ { k = 1 } ^ { K } \nabla _ { \boldsymbol { x } ^ { k } } h ( \boldsymbol { x } ^ { k } ) , \quad \boldsymbol { x } ^ { k } \sim q ( \boldsymbol { x } ^ { k } ) ,
76
+ $$
77
+
78
+ with err $\in \mathbb { R } ^ { d ^ { \prime } \times d }$ the random error due to MC approximation, which has mean 0 and vanishes as $K + \infty$ . Now by temporarily denoting $\mathbf { H } ~ = ~ \bigl ( h ( x ^ { 1 } ) , \cdot \cdot \cdot , h ( x ^ { K } ) \bigr ) \in \mathbb { R } ^ { d ^ { \prime } \times K } , \quad \overline { { \nabla _ { x } h } } =$ $\begin{array} { r } { \frac { 1 } { K } \sum _ { k = 1 } ^ { K } \nabla _ { \pmb { x } ^ { k } } h ( \pmb { x } ^ { k } ) \in \mathbb { R } ^ { d ^ { \prime } \times d } } \end{array}$ , equation (7) can be rewritten as $\begin{array} { r } { - \frac { 1 } { K } \mathbf { H } \mathbf G + \mathrm { e r r } = \overline { { \nabla _ { \mathbf { x } } h } } } \end{array}$ . Thus we consider a ridge regression method (i.e. adding an $\ell _ { 2 }$ regulariser) to estimate $\mathbf { G }$ :
79
+
80
+ $$
81
+ \hat { \mathbf { G } } _ { V } ^ { \mathrm { S t e i n } } : = \underset { \hat { \mathbf { G } } \in \mathbb { R } ^ { K \times d } } { \arg \operatorname* { m i n } } | | \overline { { \nabla _ { \mathbf { x } } h } } + \frac { 1 } { K } \mathbf { H } \hat { \mathbf { G } } | | _ { F } ^ { 2 } + \frac { \eta } { K ^ { 2 } } | | \hat { \mathbf { G } } | | _ { F } ^ { 2 } ,
82
+ $$
83
+
84
+ with $| | \cdot | | _ { F }$ the Frobenius norm of a matrix and $\eta \geq 0$ . Simple calculation shows that
85
+
86
+ $$
87
+ \hat { \mathbf { G } } _ { V } ^ { \mathrm { S t e i n } } = - ( \mathbf { K } + \eta \mathbf { I } ) ^ { - 1 } \langle \nabla , \mathbf { K } \rangle ,
88
+ $$
89
+
90
+ where $\mathbf { K } : = \mathbf { H } ^ { \mathrm { T } } \mathbf { H }$ , $\mathbf { K } _ { i j } = { \mathcal { K } } ( { \pmb x } ^ { i } , { \pmb x } ^ { j } ) : = h ( { \pmb x } ^ { i } ) ^ { \mathrm { T } } h ( { \pmb x } ^ { j } )$ , $\langle \nabla , { \bf K } \rangle : = K { \bf H } ^ { \mathrm { T } } \overline { { \nabla _ { \boldsymbol { x } } h } }$ , $\langle \nabla , { \bf K } \rangle _ { i j } =$ $\begin{array} { r l } { { \sum _ { k = 1 } ^ { K } \nabla _ { x _ { j } ^ { k } } \mathcal { K } ( \pmb { x } ^ { i } , \pmb { x } ^ { k } ) } } & { { } } \end{array}$ . One can show that the RBF kernel satisfies Stein’s identity (Liu et al., 2016). In this case $\pmb { h } ( \pmb { x } ) = \mathcal { K } ( \pmb { x } , \cdot ) , d ^ { \prime } = + \infty$ and by the reproducing kernel property (Berlinet & ThomasAgnan, 2011), $\begin{array} { r } { h ( { \boldsymbol x } ) ^ { \mathrm { T } } h ( { \boldsymbol x } ^ { \prime } ) = \langle \mathcal { K } ( { \boldsymbol x } , \cdot ) , \mathcal { K } ( { \boldsymbol x } ^ { \prime } , \cdot ) \rangle _ { \mathcal { H } } = \mathcal { K } ( { \boldsymbol x } , { \boldsymbol x } ^ { \prime } ) . } \end{array}$ .
91
+
92
+ # 3.2 STEIN GRADIENT ESTIMATOR MINIMISES THE KERNELISED STEIN DISCREPANCY
93
+
94
+ In this section we derive the Stein gradient estimator again, but from a divergence/discrepancy minimisation perspective. Stein’s method also provides a tool for checking if two distributions $q ( { \pmb x } )$ and ${ \hat { q } } ( { \pmb x } )$ are identical. If the test function set $\mathcal { H }$ is sufficiently rich, then one can define a Stein discrepancy measure by
95
+
96
+ $$
97
+ \begin{array} { r } { S ( \boldsymbol { q } , \hat { \boldsymbol { q } } ) : = \displaystyle \operatorname* { s u p } _ { \boldsymbol { h } \in \mathcal { H } } \mathbb { E } _ { \boldsymbol { q } } \left[ \nabla _ { \boldsymbol { x } } \log \hat { q } ( \boldsymbol { x } ) ^ { \mathrm { T } } \boldsymbol { h } ( \boldsymbol { x } ) + \langle \nabla , \boldsymbol { h } \rangle \right] , } \end{array}
98
+ $$
99
+
100
+ see Gorham & Mackey (2015) for an example derivation. When $\mathcal { H }$ is defined as a unit ball in an RKHS induced by a kernel $\kappa ( { \pmb x } , \cdot )$ , Liu et al. (2016) and Chwialkowski et al. (2016) showed that the supremum in (10) can be analytically obtained as (with ${ \boldsymbol { \kappa } } _ { { \boldsymbol { x } } { \boldsymbol { x } } ^ { \prime } }$ shorthand for $\kappa ( { \pmb x } , { \pmb x } ^ { \prime } ) )$ :
101
+
102
+ $$
103
+ \mathcal { S } ^ { 2 } ( \boldsymbol { q } , \hat { \boldsymbol { q } } ) = \mathbb { E } _ { \boldsymbol { x } , \boldsymbol { x } ^ { \prime } \sim \boldsymbol { q } } \left[ ( \hat { g } ( \boldsymbol { x } ) - g ( \boldsymbol { x } ) ) ^ { \mathrm { T } } \mathcal { K } _ { \boldsymbol { x } \boldsymbol { x } ^ { \prime } } ( \hat { g } ( \boldsymbol { x } ^ { \prime } ) - \boldsymbol { g } ( \boldsymbol { x } ^ { \prime } ) ) \right] ,
104
+ $$
105
+
106
+ which is also named the kernelised Stein discrepancy (KSD). Chwialkowski et al. (2016) showed that for $C _ { 0 }$ -universal kernels satisfying the boundary condition, KSD is indeed a discrepancy measure: $S ^ { 2 } ( q , \hat { q } ) = 0 \Leftrightarrow q = \hat { q }$ . Gorham & Mackey (2017) further characterised the power of KSD on detecting non-convergence cases. Furthermore, if the kernel is twice differentiable, then using the same technique as to derive (16) one can compute KSD by
107
+
108
+ $$
109
+ \begin{array} { r } { \mathcal { S } ^ { 2 } ( \boldsymbol { q } , \boldsymbol { \hat { q } } ) = \mathbb { E } _ { \boldsymbol { x } , \boldsymbol { x } ^ { \prime } \sim \boldsymbol { q } } \left[ \hat { g } ( \boldsymbol { x } ) ^ { \top } \boldsymbol { K } _ { \boldsymbol { x } \boldsymbol { x } ^ { \prime } } \hat { g } ( \boldsymbol { x } ^ { \prime } ) + \hat { g } ( \boldsymbol { x } ) ^ { \top } \nabla _ { \boldsymbol { x } ^ { \prime } } \boldsymbol { K } _ { \boldsymbol { x } \boldsymbol { x } ^ { \prime } } + \nabla _ { \boldsymbol { x } } \boldsymbol { K } _ { \boldsymbol { x } \boldsymbol { x } ^ { \prime } } ^ { \top } \hat { g } ( \boldsymbol { x } ^ { \prime } ) + \mathrm { T r } ( \nabla _ { \boldsymbol { x } , \boldsymbol { x } ^ { \prime } } \boldsymbol { K } _ { \boldsymbol { x } \boldsymbol { x } ^ { \prime } } ) \right] . } \end{array}
110
+ $$
111
+
112
+ In practice KSD is estimated with samples $\{ \pmb { x } ^ { k } \} _ { k = 1 } ^ { K } \sim q$ , and simple derivations show that the Vstatistic of KSD can be reformulated as $\begin{array} { r } { S _ { V } ^ { 2 } ( q , \hat { q } ) = \frac { 1 } { K ^ { 2 } } \mathrm { T r } ( \hat { \mathbf { G } } ^ { \mathrm { T } } \mathbf { K } \hat { \mathbf { G } } + 2 \hat { \mathbf { G } } ^ { \mathrm { T } } \langle \nabla , \mathbf { K } \rangle ) + C } \end{array}$ . Thus the $l _ { 2 }$ error in (8) is equivalent to the $\mathrm { V } .$ -statistic of KSD if $\mathbf { \dot { h } } ( \mathbf { x } ) = \mathcal { K } ( \mathbf { x } , \cdot )$ , and we have the following:
113
+
114
+ Theorem 1. $\hat { \mathbf { G } } _ { V } ^ { \mathrm { S t e i n } }$ is the solution of the following KSD V-statistic minimisation problem
115
+
116
+ $$
117
+ \hat { \mathbf { G } } _ { V } ^ { \mathrm { S t e i n } } = \underset { \hat { \mathbf { G } } \in \mathbb { R } ^ { K \times d } } { \arg \operatorname* { m i n } } S _ { V } ^ { 2 } ( q , \hat { q } ) + \frac { \eta } { K ^ { 2 } } | | \hat { \mathbf { G } } | | _ { F } ^ { 2 } .
118
+ $$
119
+
120
+ One can also minimise the U-statistic of KSD to obtain gradient approximations, and a full derivation of which, including the optimal solution, can be found in the appendix. In experiments we use $\mathrm { V } .$ - statistic solutions and leave comparisons between these methods to future work.
121
+
122
+ # 3.3 COMPARISONS TO EXISTING KERNEL-BASED GRADIENT ESTIMATORS
123
+
124
+ There exist other gradient estimators that do not require explicit evaluations of $\nabla _ { \pmb { x } } \log { q ( \pmb { x } ) }$ , e.g. the denoising auto-encoder (DAE) (Vincent et al., 2008; Vincent, 2011; Alain & Bengio, 2014) which, with infinitesimal noise, also provides an estimate of $\nabla _ { \pmb { x } } \log { q ( \pmb { x } ) }$ at convergence. However, applying such gradient estimators result in a double-loop optimisation procedure since the gradient approximation is repeatedly required for fitting implicit distributions, which can be significantly slower than the proposed approach. Therefore we focus on “quick and dirty” approximations and only include comparisons to kernel-based gradient estimators in the following.
125
+
126
+ # 3.3.1 KDE GRADIENT ESTIMATOR: PLUG-IN ESTIMATOR WITH DENSITY ESTIMATION
127
+
128
+ A naive approach for gradient approximation would first estimate the intractable density $\hat { q } ( { \pmb x } ) \approx$ $q ( { \pmb x } )$ (up to a constant), then approximate the exact gradient by $\nabla _ { \pmb { x } } \log \hat { q } ( \pmb { x } ) \approx \nabla _ { \pmb { x } } \log q ( \pmb { \dot { x } } )$ . Specifically, Singh (1977) considered kernel density estimation (KDE) $\begin{array} { r } { \hat { q } ( \pmb { x } ) = \frac { 1 } { K } \sum _ { k = 1 } ^ { K } { K ( \pmb { x } , \pmb { x } ^ { k } ) \times { C } } . } \end{array}$ ., then differentiated through the KDE estimate to obtain the gradient estimator:
129
+
130
+ $$
131
+ \hat { \mathbf { G } } _ { i j } ^ { \mathrm { K D E } } = \sum _ { k = 1 } ^ { K } \nabla _ { x _ { j } ^ { i } } K ( { \pmb x } ^ { i } , { \pmb x } ^ { k } ) / \sum _ { k = 1 } ^ { K } K ( { \pmb x } ^ { i } , { \pmb x } ^ { k } ) .
132
+ $$
133
+
134
+ Interestingly for translation invariant kernels $\begin{array} { r } { K ( \pmb { x } , \pmb { x } ^ { \prime } ) = K ( \pmb { x } - \pmb { x } ^ { \prime } ) } \end{array}$ the $K D E$ gradient estimator (14) can be rewritten as $\hat { \mathbf { G } } ^ { \mathrm { K D E } } = - \mathrm { d i a g } \left( \mathbf { K 1 } \right) ^ { - 1 } \langle \nabla , \mathbf { K } \rangle$ . Inspecting and comparing it with the Stein gradient estimator (9), one might notice that the Stein method uses the full kernel matrix as the pre-conditioner, while the KDE method computes an averaged “kernel similarity” for the denominator. We conjecture that this difference is key to the superior performance of the Stein gradient estimator when compared to the KDE gradient estimator (see later experiments). The KDE method only collects the similarity information between $\scriptstyle { \boldsymbol { x } } ^ { k }$ and other samples $\bar { \boldsymbol { x } } ^ { j }$ to form an estimate of $\nabla _ { \pmb { x } ^ { k } } \log \mathbf { \dot { q } } ( \pmb { x } ^ { k } )$ , whereas for the Stein gradient estimator, the kernel similarity between $\mathbf { \Delta } _ { \mathbf { \boldsymbol { x } } ^ { i } }$ and $\mathbf { \boldsymbol { x } } ^ { j }$ for all $i , j \neq k$ are also incorporated. Thus it is reasonable to conjecture that the Stein method can be more sample efficient, which also implies higher accuracy when the same number of samples are collected.
135
+
136
+ # 3.3.2 SCORE MATCHING GRADIENT ESTIMATOR: MINIMISING MSE
137
+
138
+ The KDE gradient estimator performs indirect approximation of the gradient via density estimation, which can be inaccurate. An alternative approach directly approximates the gradient $\nabla _ { \pmb { x } } \log { q ( \pmb { x } ) }$ by minimising the expected $\ell _ { 2 }$ error w.r.t. the approximation $\hat { \pmb g } ( { \pmb x } ) = \left( \hat { g } _ { 1 } ( { \pmb x } ) , \cdots , \hat { g } _ { d } ( { \pmb x } ) \right) ^ { \top }$ :
139
+
140
+ $$
141
+ \mathcal { F } ( \pmb { \hat { g } } ) : = \mathbb { E } _ { q } \left[ | | \pmb { \hat { g } } ( \pmb { x } ) - \nabla _ { \pmb { x } } \log q ( \pmb { x } ) | | _ { 2 } ^ { 2 } \right] .
142
+ $$
143
+
144
+ It has been shown in Hyvarinen (2005) that this objective can be reformulated as ¨
145
+
146
+ $$
147
+ \mathcal { F } ( \hat { \pmb g } ) = \mathbb { E } _ { q } \left[ | | \hat { \pmb g } ( { \pmb x } ) | | _ { 2 } ^ { 2 } + 2 \langle \nabla , \hat { \pmb g } ( { \pmb x } ) \rangle \right] + C , \quad \langle \nabla , \hat { \pmb g } ( { \pmb x } ) \rangle = \sum _ { j = 1 } ^ { d } \nabla _ { { \pmb x } _ { j } } \hat { g } _ { j } ( { \pmb x } ) .
148
+ $$
149
+
150
+ The key insight here is again the usage of integration by parts: after expanding the $\ell _ { 2 }$ loss objective, the cross term can be rewritten as $\bar { \mathbb { E } } _ { q } \left[ \hat { \pmb { g } } ( \pmb { x } ) ^ { \top } \nabla _ { \pmb { x } } \log \bar { \pmb { q } } ( \mathbf { \bar { x } } ) \right] = - \mathbb { E } _ { q } \left[ \langle \nabla , \hat { \pmb { g } } ( \mathbf { \bar { x } } ) \rangle \right]$ , if assuming the boundary condition (4) for $\hat { \pmb { g } }$ (see (6)). The optimum of (16) is referred as the score matching gradient estimator. The $\ell _ { 2 }$ objective (15) is also called Fisher divergence (Johnson, 2004) which is a special case of KSD (11) by selecting $\begin{array} { r } { K ( \pmb { x } , \pmb { x } ^ { \prime } ) = \delta _ { \pmb { x } = \pmb { x } ^ { \prime } } . } \end{array}$ . Thus the Stein gradient estimator can be viewed as a generalisation of the score matching estimator.
151
+
152
+ The comparison between the two estimators is more complicated. Certainly by the Cauchy-Schwarz inequality the Fisher divergence is stronger than KSD in terms of detecting convergence (Liu et al., 2016). However it is difficult to perform direct gradient estimation by minimising the Fisher divergence, since (i) the Dirac kernel is non-differentiable so that it is impossible to rewrite the divergence in a similar form to (12), and (ii) the transformation to (16) involves computing $\nabla _ { \pmb { x } } \hat { \pmb { g } } ( \pmb { x } )$ . So one needs to propose a parametric approximation to $\mathbf { G }$ and then optimise the associated parameters accordingly, and indeed Sasaki et al. (2014) and Strathmannby first approximating the log density up to a constant as $\begin{array} { r } { \log \hat { q } ( \pmb { x } ) : = \sum _ { k = 1 } ^ { K } a _ { k } \mathcal { K } ( \pmb { x } , \pmb { x } ^ { k } ) + C } \end{array}$ lution, then minimising (16) to obtain the coefficients and constructing the gradient estimator as
153
+
154
+ $$
155
+ \hat { \mathbf { G } } _ { i \cdot } ^ { \mathrm { s c o r e } } = \sum _ { k = 1 } ^ { K } \hat { a } _ { k } ^ { \mathrm { s c o r e } } \nabla _ { \pmb { x } ^ { i } } { K } ( { \pmb { x } } ^ { i } , { \pmb { x } } ^ { k } ) .
156
+ $$
157
+
158
+ Therefore the usage of parametric estimation can potentially remove the advantage of using a stronger divergence. Conversely, the proposed Stein gradient estimator (9) is non-parametric in that it directly optimises over functions evaluated at locations $\{ \pmb { x } _ { k } \} _ { k = 1 } ^ { K }$ . This brings in two key advantages over the score matching gradient estimator: (i) it removes the approximation error due to the use of restricted family of parametric approximations and thus can be potentially more accurate; (ii) it has a much simpler and ubiquitous form that applies to any kernel satisfying the boundary condition, whereas the score matching estimator requires tedious derivations for different kernels repeatedly (see appendix).
159
+
160
+ In terms of computation speed, since in most of the cases the computation of the score matching gradient estimator also involves kernel matrix inversions, both estimators are of the same order of complexity, which is $\mathcal { O } ( K ^ { 3 } + K ^ { 2 } d )$ (kernel matrix computation plus inversion). Low-rank approximations such as the Nystrom method (Smola & Sch ¨ okopf, 2000; Williams & Seeger, 2001) can ¨ enable speed-up, but this is not investigated in the paper. Again we note here that kernel-based gradient estimators can still be faster than e.g. the DAE estimator since no double-loop optimisation is required. Certainly it is possible to apply early-stopping for the inner-loop DAE fitting. However the resulting gradient approximation might be very poor, which leads to unstable training and poorly fitted implicit distributions.
161
+
162
+ # 3.4 ADDING PREDICTIVE POWER
163
+
164
+ Though providing potentially more accurate approximations, the non-parametric estimator (9) has no predictive power as described so far. Crucially, many tasks in machine learning require predicting gradient functions at samples drawn from distributions other than $q$ , for example, in MLE $q ( { \pmb x } )$ corresponds to the model distribution which is learned using samples from the data distribution instead. To address this issue, we derive two predictive estimators, one generalised from the nonparametric estimator and the other minimises KSD using parametric approximations.
165
+
166
+ Predictions using the non-parametric estimator. Let us consider an unseen datum $\textbf { { y } }$ . If $\textbf { { y } }$ is sampled from $q$ , then one can also apply the non-parametric estimator (9) for gradient approximation, given the observed data ${ \bf X } = \{ { \pmb x } ^ { \mathrm { i } } , . . . , { \pmb x } ^ { K } \} \sim \dot { { \boldsymbol q } } ^ { }$ . Concretely, if writing $\hat { \pmb g } ( \pmb y ) \overset { } { \approx } \nabla _ { \pmb y } \log \hat { q } ( \pmb y ) \in \mathbb R ^ { d \times 1 }$ then the non-parametric Stein gradient estimator computed on $\mathbf { X } \cup \{ y \}$ is
167
+
168
+ $$
169
+ \begin{array} { r } { \left[ \hat { g } ( y ) ^ { \mathrm { T } } \right] = - ( \mathbf { K } ^ { * } + \eta I ) ^ { - 1 } \left[ \nabla _ { y } K ( y , y ) + \sum _ { k = 1 } ^ { K } \nabla _ { x ^ { k } } K ( y , x ^ { k } ) \right] , \quad \mathbf { K } ^ { * } = \left[ \mathbf { K } _ { y y } \quad \mathbf { K } _ { y \mathbf { X } } \right] , } \\ { \left. \nabla , \mathbf { K } \right. + \nabla _ { y } K ( \cdot , y ) \qquad \quad \mathbf { K } ^ { * } = \left[ \mathbf { K } _ { \mathbf { X } y } \quad \mathbf { K } \right] , } \end{array}
170
+ $$
171
+
172
+ with $\nabla _ { \pmb { y } } K ( \cdot , \pmb { y } )$ denoting a $K \times d$ matrix with rows $\nabla _ { \pmb { y } } K ( \pmb { x } ^ { k } , \pmb { y } )$ , and $\nabla _ { \pmb { y } } K ( \pmb { y } , \pmb { y } )$ only differentiates through the second argument. Then we demonstrate in the appendix that, by simple matrix calculations and assuming a translation invariant kernel, we have (with column vector $\mathbf { 1 } \in \mathbb { R } ^ { K \times 1 }$ ):
173
+
174
+ $$
175
+ \begin{array} { r l } & { \nabla _ { y } \log q ( \pmb { y } ) ^ { \operatorname { T } } \approx - \left( \mathbf { K } _ { y y } + \eta - \mathbf { K } _ { y \mathbf { X } } ( \mathbf { K } + \eta \mathbf { I } ) ^ { - 1 } \mathbf { K } _ { \mathbf { X } y } \right) ^ { - 1 } } \\ & { \qquad \left( \mathbf { K } _ { y \mathbf { X } } \hat { \mathbf { G } } _ { V } ^ { \mathrm { { S t e i n } } } - \left( \mathbf { K } _ { y \mathbf { X } } ( \mathbf { K } + \eta \mathbf { I } ) ^ { - 1 } + \mathbf { 1 } ^ { \operatorname { T } } \right) \nabla _ { y } \mathcal { K } ( \cdot , y ) \right) . } \end{array}
176
+ $$
177
+
178
+ In practice one would store the computed gradient $\hat { \mathbf { G } } _ { V } ^ { \mathrm { S t e i n } }$ , the kernel matrix inverse $( \mathbf { K } + \eta \mathbf { I } ) ^ { - 1 }$ and $\eta$ as the “parameters” of the predictive estimator. For a new observation $\mathbf { \nabla } _ { \mathbf { \boldsymbol { y } } } \sim \mathbf { \nabla } _ { p }$ in general, one can “pretend” $\textbf { { y } }$ is a sample from $q$ and apply the above estimator as well. The approximation quality depends on the similarity between $q$ and $p$ , and we conjecture here that this similarity measure, if can be described, is closely related to the KSD.
179
+
180
+ Fitting a parametric estimator using KSD. The non-parametric predictive estimator could be computationally demanding. Setting aside the cost of fitting the “parameters”, in prediction the time complexity for the non-parametric estimator is $\mathcal { O } ( K ^ { 2 } + K d )$ . Also storing the “parameters” needs $\mathcal O ( K d )$ memory for $\hat { \mathbf { G } } _ { V } ^ { \mathrm { S t e i n } }$ . These costs make the non-parametric estimator undesirable for high-dimensional data, since in order to obtain accurate predictions it often requires $K$ scaling with $d$ as well. To address this, one can also minimise the KSD using parametric approximations, in a similar way as to derive the score matching estimator in Section 3.3.2. More precisely, we define a parametric approximation in a similar fashion as (17), and in the appendix we show that if the RBF kernel is used for both the KSD and the parametric approximation, then the linear coefficients $\pmb { a } = ( a _ { 1 } , . . . , a _ { K } ) ^ { \mathrm { T } }$ can be calculated analytically: $\hat { \pmb { a } } _ { V } ^ { \mathrm { S t e i n } } = \bar { ( \pmb { \Lambda } } + \eta \mathbf { I } ) ^ { - 1 } \pmb { b }$ , where
181
+
182
+ $$
183
+ \begin{array} { r l } & { \mathbf { A } = \mathbb { X } \odot ( \mathbf { K } \mathbf { K } \mathbf { K } ) + \mathbf { K } ( \mathbf { K } \odot \mathbb { X } ) \mathbf { K } - ( ( \mathbf { K } \mathbf { K } ) \odot \mathbb { X } ) \mathbf { K } - \mathbf { K } ( ( \mathbf { K } \mathbf { K } ) \odot \mathbb { X } ) , } \\ & { \mathbf { \Phi } b = ( \mathbf { K } \mathrm { d i a g } ( \mathbb { X } ) \mathbf { K } + ( \mathbf { K } \mathbf { K } ) \odot \mathbb { X } - \mathbf { K } ( \mathbf { K } \odot \mathbb { X } ) - ( \mathbf { K } \odot \mathbb { X } ) \mathbf { K } ) \mathbf { 1 } , } \end{array}
184
+ $$
185
+
186
+ with $\mathbb { X }$ the “gram matrix” that has elements $\mathbb X _ { i j } = ( { \pmb x } ^ { i } ) ^ { \mathrm T } { \pmb x } ^ { j }$ . Then for an unseen observation $\mathbf { \mu } _ { \mathbf { \mu } _ { y } \sim }$ $p$ the gradient approximation returns $\nabla _ { \pmb { y } } \log q ( \pmb { y } ) \approx ( \hat { \pmb { a } } _ { V } ^ { \mathrm { S t e i n } } ) ^ { \mathrm { T } } \nabla _ { \pmb { y } } \mathcal { K } ( \cdot , \pmb { y } )$ . In this case one only maintains the linear coefficients $\hat { \pmb { a } } _ { V } ^ { \mathrm { S t e i n } }$ and computes a linear combination in prediction, which takes $\mathcal O ( K )$ memory and $\mathcal O ( K d )$ time and therefore is computationally cheaper than the non-parametric prediction model (27).
187
+
188
+ # 4 APPLICATIONS
189
+
190
+ We present some case studies that apply the gradient estimators to implicit models. Detailed settings (architecture, learning rate, etc.) are presented in the appendix. Implementation is released at https://github.com/YingzhenLi/SteinGrad.
191
+
192
+ # 4.1 SYNTHETIC EXAMPLE: HAMILTONIAN FLOW WITH APPROXIMATE GRADIENTS
193
+
194
+ We first consider a simple synthetic example to demonstrate the accuracy of the proposed gradient estimator. More precisely we consider the kernel induced Hamiltonian flow (not an exact sampler) (Strathmann et al., 2015) on a 2-dimensional banana-shaped object: $\mathbf { \hat { x } } \ \sim \ B ( \mathbf { x } ; b \ = \ 0 . 0 3 , \bar { \upsilon } \ =$ $1 0 0 ) \Leftrightarrow x _ { 1 } \sim \mathcal { N } ( x _ { 1 } ; 0 , v ) , x _ { 2 } = \epsilon + b ( x _ { 1 } ^ { 2 } - v ) , \epsilon \sim \mathcal { N } ( \epsilon ; 0 , 1 )$ . The approximate Hamiltonian flow is constructed using the same operator as in Hamiltonian Monte Carlo (HMC) (Neal et al., 2011), except that the exact score function $\nabla _ { \pmb { x } } \log B ( \pmb { x } )$ is replaced by the approximate gradients. We still use the exact target density to compute the rejection step as we mainly focus on testing the accuracy of the gradient estimators. We test both versions of the predictive Stein gradient estimator (see section 3.4) since we require the particles of parallel chains to be independent with each other. We fit the gradient estimators on $K = 2 0 0$ training datapoints from the target density. The bandwidth of the RBF kernel is computed by the median heuristic and scaled up by a scalar between [1, 5]. All three methods are simulated for $T = 2 , 0 0 0$ iterations, share the same initial locations that are constructed by target distribution samples plus Gaussian noises of standard deviation 2.0, and the results are averaged over 200 parallel chains.
195
+
196
+ We visualise the samples and some MCMC statistics in Figure 2. In general all the resulting Hamiltonian flows are HMC-like, which give us the confidence that the gradient estimators extrapolate reasonably well at unseen locations. However all of these methods have trouble exploring the extremes, because at those locations there are very few or even no training data-points. Indeed we found it necessary to use large (but not too large) bandwidths, in order to both allow exploration of those extremes, and ensure that the corresponding test function is not too smooth. In terms of quantitative metrics, the acceptance rates are reasonably high for all the gradient estimators, and the KSD estimates (across chains) as a measure of sample quality are also close to that computed on HMC samples. The returned estimates of $\mathbb { E } [ x _ { 1 } ]$ are close to zero which is the ground true value. We found that the non-parametric Stein gradient estimator is more sensitive to hyper-parameters of the dynamics, e.g. the stepsize of each HMC step. We believe a careful selection of the kernel (e.g. those with long tails) and a better search for the hyper-parameters (for both the kernel and the dynamics) can further improve the sample quality and the chain mixing time, but this is not investigated here.
197
+
198
+ ![](images/bba07b55fa6904729682848bba8c5a5e2202a58574d1f75da2568b525bbfeed3.jpg)
199
+ Figure 2: Kernel induced Hamiltonian flow compared with HMC. Top: samples generated from the dynamics, training data (in cyan), an the trajectory of a particle for $T = 1$ to 200 starting at the star location (in yellow). Bottom: statistics computed during simulations. See main text for details.
200
+
201
+ # 4.2 META-LEARNING OF APPROXIMATE POSTERIOR SAMPLERS FOR BAYESIAN NNS
202
+
203
+ One of the recent focuses on meta-learning has been on learning optimisers for training deep neural networks, e.g. see (Andrychowicz et al., 2016). Could analogous goals be achieved for approximate inference? In this section we attempt to learn an approximate posterior sampler for Bayesian neural networks (Bayesian NNs, BNNs) that generalises to unseen datasets and architectures. A more detailed introduction of Bayesian neural networks is included in the appendix, and in a nutshell, we consider a binary classification task: $p ( y = 1 | x , \pmb { \theta } ) = \mathrm { s i g m o i d } ( \mathrm { N N } _ { \pmb { \theta } } ( \pmb { x } ) )$ , $p _ { 0 } ( \pmb { \theta } ) = \mathcal { N } ( \pmb { \theta } ; \mathbf { 0 } , \mathbf { I } )$ . After observing the training data $\boldsymbol { \mathcal { D } } = \{ ( \boldsymbol { x } _ { n } , y _ { n } ) \} _ { n = 1 } ^ { N }$ , we first obtain the approximate posterior $\begin{array} { r } { q _ { \phi } ( \pmb { \theta } ) \approx p ( \pmb { \theta } | \mathcal { D } ) \propto p _ { 0 } ( \pmb { \theta } ) \prod _ { n = 1 } ^ { N } p ( y _ { n } | \pmb { x } _ { n } , \pmb { \theta } ) } \end{array}$ , then approximate the predictive distribution for a new observation as $\begin{array} { r } { p ( y ^ { * } = 1 | x ^ { * } , \mathcal { D } ) \approx \frac { 1 } { K } \sum _ { k = 1 } ^ { K } p ( y ^ { * } = 1 | x ^ { * } , \pmb { \theta } ^ { k } ) , \pmb { \theta } ^ { k } \sim q _ { \phi } ( \pmb { \theta } ) . } \end{array}$ In this task we define an implicit approximate posterior distribution $q _ { \phi } ( \pmb \theta )$ as the following stochastic normalising flow (Rezende & Mohamed, 2015) $\pmb { \theta } _ { t + 1 } = \pmb { f } ( \pmb { \theta } _ { t } , \nabla _ { t } , \pmb { \epsilon } _ { t } )$ : given the current location $\theta _ { t }$ and the mini-batch data $\{ ( \pmb { x } _ { m } , y _ { m } ) \} _ { m = 1 } ^ { M }$ , the update for the next step is
204
+
205
+ $$
206
+ \begin{array} { r l r } & { \pmb { \theta } _ { t + 1 } = \pmb { \theta } _ { t } + \zeta \Delta _ { \phi } ( \pmb { \theta } _ { t } , \nabla _ { t } ) + \pmb { \sigma } _ { \phi } ( \pmb { \theta } _ { t } , \nabla _ { t } ) \odot \epsilon _ { t } , \quad \epsilon _ { t } \sim \mathcal { N } ( \epsilon ; \mathbf { 0 } , \mathbf { I } ) , } & \\ & { \nabla _ { t } = \nabla _ { \pmb { \theta } _ { t } } \left[ \frac { N } { M } \displaystyle \sum _ { m = 1 } ^ { M } \log p \big ( y _ { m } | \pmb { x } _ { m } , \pmb { \theta } _ { t } \big ) + \log p _ { 0 } ( \pmb { \theta } _ { t } ) \right] . } & \end{array}
207
+ $$
208
+
209
+ The coordinates of the noise standard deviation $\sigma _ { \phi } ( \theta _ { t } , \nabla _ { t } )$ and the moving direction $\Delta _ { \phi } ( \theta _ { t } , \nabla _ { t } )$ are parametrised by a coordinate-wise neural network. If properly trained, this neural network will learn the best combination of the current location and gradient information, and produce approximate posterior samples efficiently on different probabilistic modelling tasks. Here we propose using the variational inference objective (2) computed on the samples $\{ \pmb \theta _ { t } ^ { k } \}$ to learn the variational parameters $\phi$ . Since in this case the gradient of the log joint distribution can be computed analytically, we only approximate the gradient of the entropy term $\mathbb { H } [ q ]$ as in (3), with the exact score function replaced by the presented gradient estimators. We report the results using the non-parametric Stein gradient estimator as we found it works better than the parametric version. The RBF kernel is applied for gradient estimation, with the hyper-parameters determined by a grid search on the bandwidth $\sigma ^ { 2 } \overset { \smile } { \in } \{ 0 . 2 5 , 1 . 0 , 4 . 0 , 1 0 . 0$ , median trick} and $\eta \in \{ 0 . 1 , 0 . 5 , 1 . 0 , 2 . 0 \}$ .
210
+
211
+ We briefly describe the test protocol. We take from the UCI repository (Lichman, 2013) six binary classification datasets (australian, breast, crabs, ionosphere, pima, sonar), train an approximate sampler on crabs with a small neural network that has one 20-unit hidden layer with $R e L U$ activation, and generalise to the remaining datasets with a bigger network that has 50 hidden units and uses sigmoid activation. We use ionosphere as the validation set to tune $\zeta$ . The remaining 4 datasets are further split into $40 \%$ training subset for simulating samples from the approximate sampler, and $60 \%$ test subsets for evaluating the sampler’s performance.
212
+
213
+ Figure 3 presents the (negative) test log-likelihood (LL), classification error, and an estimate of the KSD U-statistic $\tilde { S _ { U } ^ { 2 } } ( \tilde { p ( \pmb { \theta } | \mathcal { D } ) } , q ( \pmb { \theta } ) )$ (with data sub-sampling) over 5 splits of each test dataset. Besides the gradient estimators we also compare with two baselines: an approximate posterior sampler trained by maximum a posteriori (MAP), and stochastic gradient Langevin dynamics (SGLD)
214
+
215
+ ![](images/acf7f7eec3f062f3f3268dc6c9364e38d43410d9404f6402f27ccd8ac48c052c.jpg)
216
+ Figure 3: Generalisation performances for trained approximate posterior samplers.
217
+
218
+ (Welling & Teh, 2011) evaluated on the test datasets directly. In summary, SGLD returns best results in KSD metric. The Stein approach performs equally well or a little better than SGLD in terms of test-LL and test error. The KDE method is slightly worse and is close to MAP, indicating that the KDE estimator does not provide a very informative gradient for the entropy term. Surprisingly the score matching estimator method produces considerably worse results (except for breast dataset), even after carefully tuning the bandwidth and the regularisation parameter $\eta$ . Future work should investigate the usage of advanced recurrent neural networks such as an LSTM (Hochreiter & Schmidhuber, 1997), which is expected to return better performance.
219
+
220
+ # 4.3 TOWARDS ADDRESSING MODE COLLAPSE IN GANS USING ENTROPY REGULARISATION
221
+
222
+ GANs are notoriously difficult to train in practice. Besides the instability of gradient-based minimax optimisation which has been partially addressed by many recent proposals (Salimans et al., 2016; Arjovsky et al., 2017; Berthelot et al., 2017), they also suffer from mode collapse. We propose adding an entropy regulariser to the GAN generator loss. Concretely, assume the generative model $p _ { \pmb { \theta } } ( \pmb { x } )$ is implicitly defined by $\pmb { x } = f _ { \pmb { \theta } } ( z ) , z \sim p _ { 0 } ( z )$ , then the generator’s loss is defined by
223
+
224
+ $$
225
+ \tilde { \mathcal { I } } _ { \mathrm { g e n } } ( \pmb { \theta } ) = \mathcal { I } _ { \mathrm { g e n } } ( \pmb { \theta } ) - \alpha \mathbb { H } [ p _ { \pmb { \theta } } ( \pmb { x } ) ] ,
226
+ $$
227
+
228
+ where $\mathcal { I } _ { \mathrm { g e n } } ( \pmb { \theta } )$ is the original loss function for the generator from any GAN algorithm and $\alpha$ is a hyper-parameter. In practice (the gradient of) (21) is estimated using Monte Carlo.
229
+
230
+ We empirically investigate the entropy regularisation idea on the very recently proposed boundary equilibrium GAN (BEGAN) (Berthelot et al., 2017) method using (continuous) MNIST, and we refer to the appendix for the detailed mathematical set-up. In this case the non-parametric V-statistic Stein gradient estimator is used. We use a convolutional generative network and a convolutional auto-encoder and select the hyper-parameters of BEGAN $\bar { \gamma } \in \lbrace 0 . 3 , 0 . 5 , 0 . 7 \rbrace$ , $\alpha \in [ 0 , 1 ]$ and $\lambda =$ 0.001. The Epanechnikov kernel $\begin{array} { r } { K ( \pmb { x } , \pmb { x } ^ { \prime } ) : = \frac { 1 } { d } \sum _ { j = 1 } ^ { d } ( 1 - ( x _ { j } - x _ { j } ^ { \prime } ) ^ { 2 } ) } \end{array}$ is used as the pixel values lie in a unit interval (see appendix for the expression of the score matching estimator), and to ensure the boundary condition we clip the pixel values into range $[ 1 0 ^ { - 8 } , 1 - 1 0 ^ { - 8 } ]$ . The generated images are visualised in Figure 4. BEGAN without the entropy regularisation fails to generate diverse samples even when trained with learning rate decay. The other three images clearly demonstrate the benefit of the entropy regularisation technique, with the Stein approach obtaining the highest diversity without compromising visual quality.
231
+
232
+ We further consider four metrics to assess the trained models quantitatively. First 500 samples are generated for each trained model, then we compute their nearest neighbours in the training set using $l _ { 1 }$ distance, and obtain a probability vector $\mathbf { p }$ by averaging over these neighbour images’ label vectors. In Figure 5 we depict the entropy of $\mathbf { p }$ (top left), averaged $l _ { 1 }$ distances to the nearest neighbour (top right), and the difference between the largest and smallest elements in $\mathbf { p }$ (bottom right). The error bars are obtained by 5 independent runs. These results demonstrate that the Stein approach performs significantly better than the other two, in that it learns a better generative model not only faster but also in a more stable way. Interestingly the KDE approach achieves the lowest average $l _ { 1 }$ distance to nearest neighbours, possibly because it tends to memorise training examples. We next train a fully connected network $\pi ( \boldsymbol { y } | \boldsymbol { x } )$ on MNIST that achieves $9 8 . 1 6 \%$ text accuracy, and compute on the generated images an empirical estimate of the inception score (Salimans et al., 2016) $\mathbb { E } _ { p ( \pmb { x } ) } [ \mathrm { K L } [ \pi ( \pmb { \bar { y } } | \pmb { x } ) | | \pi ( \pmb { y } ) ] ]$ with $\pi ( \pmb { y } ) \overset { \cdot } { = } \mathbb { E } _ { p ( \pmb { x } ) } [ \pi ( \pmb { y } | \pmb { x } ) ]$ (bottom left panel). High inception score indicates that the generate images tend to be both realistic looking and diverse, and again the Stein approach out-performs the others on this metric by a large margin.
233
+
234
+ ![](images/711c07aaa71533b03397353e9ad56fce9f23a20871bf052140a2ebe313f973cd.jpg)
235
+ Figure 4: Visualisation of generated images from trained BEGAN models.
236
+
237
+ ![](images/ae918fada81b3ecc38c292fbb7e2cc1cd5bcc0e7605ea4731056d367bd6ae0fe.jpg)
238
+ Figure 5: Quantitative evaluation on entropy regularised BEGAN. The higher the better for the LHS panels and the other way around for the RHS ones. See main text for details.
239
+
240
+ Concerning computation speed, all the three methods are of the same order: 10.20s/epoch for KDE, 10.85s/epoch for Score, and 10.30s/epoch for Stein.1 This is because $K < d$ (in the experiments $K ~ = ~ 1 0 0$ and $d \ = \ 7 8 4$ ) so that the complexity terms are dominated by kernel computations $( \mathcal { O } ( K ^ { 2 } d ) )$ required by all the three methods. Also for a comparison, the original BEGAN method without entropy regularisation runs for 9.05s/epoch. Therefore the main computation cost is dominated by the optimisation of the discriminator/generator, and the proposed entropy regularisation can be applied to many GAN frameworks with little computational burden.
241
+
242
+ # 5 CONCLUSIONS AND FUTURE WORK
243
+
244
+ We have presented the Stein gradient estimator as a novel generalisation to the score matching gradient estimator. With a focus on learning implicit models, we have empirically demonstrated the efficacy of the proposed estimator by showing how it opens the door to a range of novel learning tasks: approximating gradient-free MCMC, meta-learning for approximate inference, and unsupervised learning for image generation. Future work will expand the understanding of gradient estimators in both theoretical and practical aspects. Theoretical development will compare both the V-statistic and U-statistic Stein gradient estimators and formalise consistency proofs. Practical work will improve the sample efficiency of kernel estimators in high dimensions and develop fast yet accurate approximations to matrix inversion. It is also interesting to investigate applications of gradient approximation methods to training implicit generative models without the help of discriminators. Finally it remains an open question that how to generalise the Stein gradient estimator to non-kernel settings and discrete distributions.
245
+
246
+ # ACKNOWLEDGEMENT
247
+
248
+ We thank Marton Havasi, Jiri Hron, David Janz, Qiang Liu, Maria Lomeli, Cuong Viet Nguyen and Mark Rowland for their comments and helps on the manuscript. We also acknowledge the anonymous reviewers for their review. Yingzhen Li thanks Schlumberger Foundation FFTF fellowship. Richard E. Turner thanks Google and EPSRC grants EP/M0269571 and EP/L000776/1.
249
+
250
+ # REFERENCES
251
+
252
+ Guillaume Alain and Yoshua Bengio. What regularized auto-encoders learn from the data-generating distribution. The Journal of Machine Learning Research, 15(1):3563–3593, 2014.
253
+
254
+ Marcin Andrychowicz, Misha Denil, Sergio Gomez, Matthew W Hoffman, David Pfau, Tom Schaul, and Nando de Freitas. Learning to learn by gradient descent by gradient descent. In Advances in Neural Information Processing Systems, pp. 3981–3989, 2016.
255
+
256
+ Martin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein gan. arXiv preprint arXiv:1701.07875, 2017.
257
+
258
+ David Barber and Felix V Agakov. The im algorithm: A variational approach to information maximization. In NIPS, pp. 201–208, 2003.
259
+
260
+ Alain Berlinet and Christine Thomas-Agnan. Reproducing kernel Hilbert spaces in probability and statistics. Springer Science & Business Media, 2011.
261
+
262
+ David Berthelot, Tom Schumm, and Luke Metz. Began: Boundary equilibrium generative adversarial networks. arXiv preprint arXiv:1703.10717, 2017.
263
+
264
+ Kacper Chwialkowski, Heiko Strathmann, and Arthur Gretton. A kernel test of goodness of fit. In Proceedings of The 33rd International Conference on Machine Learning, pp. 2606–2615, 2016.
265
+
266
+ Kris De Brabanter, Jos De Brabanter, Bart De Moor, and Irene Gijbels. Derivative estimation with \` local polynomial fitting. The Journal of Machine Learning Research, 14(1):281–301, 2013.
267
+
268
+ Peter J Diggle and Richard J Gratton. Monte carlo methods of inference for implicit statistical models. Journal of the Royal Statistical Society. Series B (Methodological), pp. 193–227, 1984.
269
+
270
+ Jianqing Fan and Irne Gijbels. Local polynomial modelling and its applications. Chapman & Hall, 1996.
271
+
272
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NIPS, 2014.
273
+
274
+ Jackson Gorham and Lester Mackey. Measuring sample quality with stein’s method. In NIPS, 2015.
275
+
276
+ Jackson Gorham and Lester Mackey. Measuring sample quality with kernels. In ICML, 2017.
277
+
278
+ Geoffrey E Hinton. Training products of experts by minimizing contrastive divergence. Neural computation, 14(8):1771–1800, 2002.
279
+
280
+ Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997.
281
+
282
+ Ferenc Huszar. Variational inference using implicit distributions. ´ arXiv preprint arXiv:1702.08235, 2017.
283
+
284
+ Aapo Hyvarinen. Estimation of non-normalized statistical models by score matching. ¨ Journal of Machine Learning Research, 6(Apr):695–709, 2005.
285
+
286
+ Aapo Hyvarinen. Consistency of pseudolikelihood estimation of fully visible boltzmann machines.¨ Neural Computation, 18(10):2283–2292, 2006.
287
+
288
+ Oliver Thomas Johnson. Information theory and the central limit theorem. World Scientific, 2004.
289
+
290
+ Theofanis Karaletsos. Adversarial message passing for graphical models. arXiv preprint arXiv:1612.05048, 2016.
291
+ Diederick P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015.
292
+ Naveen Kodali, Jacob Abernethy, James Hays, and Zsolt Kira. How to train your dragan. arXiv preprint arXiv:1705.07215, 2017.
293
+ Yingzhen Li and Qiang Liu. Wild variational approximations. NIPS workshop on advances in approximate Bayesian inference, 2016.
294
+ Yingzhen Li, Richard E Turner, and Qiang Liu. Approximate inference with amortised mcmc. arXiv preprint arXiv:1702.08343, 2017.
295
+ M. Lichman. UCI machine learning repository, 2013. URL http://archive.ics.uci.edu/ ml.
296
+ Qiang Liu and Yihao Feng. Two methods for wild variational inference. arXiv preprint arXiv:1612.00081, 2016.
297
+ Qiang Liu, Jason D Lee, and Michael I Jordan. A kernelized stein discrepancy for goodness-of-fit tests and model evaluation. In ICML, 2016.
298
+ Siwei Lyu. Interpretation and generalization of score matching. In Proceedings of the Twenty-Fifth Conference on Uncertainty in Artificial Intelligence, pp. 359–366. AUAI Press, 2009.
299
+ Benjamin Marlin, Kevin Swersky, Bo Chen, and Nando Freitas. Inductive principles for restricted boltzmann machine learning. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pp. 509–516, 2010.
300
+ Lars Mescheder, Sebastian Nowozin, and Andreas Geiger. Adversarial variational bayes: Unifying variational autoencoders and generative adversarial networks. arXiv preprint arXiv:1701.04722, 2017.
301
+ Shakir Mohamed and Balaji Lakshminarayanan. Learning in implicit generative models. arXiv preprint arXiv:1610.03483, 2016.
302
+ Radford M Neal et al. Mcmc using hamiltonian dynamics. Handbook of Markov Chain Monte Carlo, 2:113–162, 2011.
303
+ Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. In ICLR, 2016.
304
+ Rajesh Ranganath, Jaan Altosaar, Dustin Tran, and David M. Blei. Operator variational inference. In NIPS, 2016.
305
+ Danilo Jimenez Rezende and Shakir Mohamed. Variational inference with normalizing flows. In ICML, 2015.
306
+ Geoffrey Roeder, Yuhuai Wu, and David Duvenaud. Sticking the landing: An asymptotically zerovariance gradient estimator for variational inference. arXiv preprint arXiv:1703.09194, 2017.
307
+ Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. In NIPS, 2016.
308
+ Jaakko Sarel ¨ a and Harri Valpola. Denoising source separation. ¨ Journal of machine learning research, 6(Mar):233–272, 2005.
309
+ Hiroaki Sasaki, Aapo Hyvarinen, and Masashi Sugiyama. Clustering via mode seeking by direct ¨ estimation of the gradient of a log-density. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 19–34. Springer, 2014.
310
+ Radhey S Singh. Improvement on some known nonparametric uniformly consistent estimators of derivatives of a density. The Annals of Statistics, pp. 394–399, 1977.
311
+
312
+ Alex J Smola and Bernhard Schokopf. Sparse greedy matrix approximation for machine learning. ¨ In Proceedings of the Seventeenth International Conference on Machine Learning, pp. 911–918. Morgan Kaufmann Publishers Inc., 2000.
313
+
314
+ Casper Kaae Sonderby, Jose Caballero, Lucas Theis, Wenzhe Shi, and Ferenc Huszar. Amortised ´ map inference for image super-resolution. In ICLR, 2017.
315
+
316
+ Charles Stein. A bound for the error in the normal approximation to the distribution of a sum of dependent random variables. In Proceedings of the Sixth Berkeley Symposium on Mathematical Statistics and Probability, Volume 2: Probability Theory, pp. 583–602, 1972.
317
+
318
+ Charles M Stein. Estimation of the mean of a multivariate normal distribution. The annals of Statistics, pp. 1135–1151, 1981.
319
+
320
+ Charles J Stone. Additive regression and other nonparametric models. The annals of Statistics, pp. 689–705, 1985.
321
+
322
+ Heiko Strathmann, Dino Sejdinovic, Samuel Livingstone, Zoltan Szabo, and Arthur Gretton. Gradient-free hamiltonian monte carlo with efficient kernel exponential families. In Advances in Neural Information Processing Systems, pp. 955–963, 2015.
323
+
324
+ Masashi Sugiyama, Takafumi Kanamori, Taiji Suzuki, Shohei Hido, Jun Sese, Ichiro Takeuchi, and Liwei Wang. A density-ratio framework for statistical data processing. Information and Media Technologies, 4(4):962–987, 2009.
325
+
326
+ Masashi Sugiyama, Taiji Suzuki, and Takafumi Kanamori. Density-ratio matching under the bregman divergence: a unified framework of density-ratio estimation. Annals of the Institute of Statistical Mathematics, 64(5):1009–1044, 2012.
327
+
328
+ Dustin Tran, Rajesh Ranganath, and David M Blei. Deep and hierarchical implicit models. arXiv preprint arXiv:1702.08896, 2017.
329
+
330
+ R. E. Turner and M. Sahani. Two problems with variational expectation maximisation for time-series models. In D. Barber, T. Cemgil, and S. Chiappa (eds.), Bayesian Time series models, chapter 5, pp. 109–130. Cambridge University Press, 2011.
331
+
332
+ Masatoshi Uehara, Issei Sato, Masahiro Suzuki, Kotaro Nakayama, and Yutaka Matsuo. Generative adversarial nets from a density ratio estimation perspective. arXiv preprint arXiv:1610.02920, 2016.
333
+
334
+ Pascal Vincent. A connection between score matching and denoising autoencoders. Neural computation, 23(7):1661–1674, 2011.
335
+
336
+ Pascal Vincent, Hugo Larochelle, Yoshua Bengio, and Pierre-Antoine Manzagol. Extracting and composing robust features with denoising autoencoders. In Proceedings of the 25th international conference on Machine learning, pp. 1096–1103. ACM, 2008.
337
+
338
+ Dilin Wang and Qiang Liu. Learning to draw samples: With application to amortized mle for generative adversarial learning. arXiv preprint arXiv:1611.01722, 2016.
339
+
340
+ Max Welling and Yee W Teh. Bayesian learning via stochastic gradient langevin dynamics. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pp. 681–688, 2011.
341
+
342
+ Christopher KI Williams and Matthias Seeger. Using the nystrom method to speed up kernel ma-¨ chines. In Advances in neural information processing systems, pp. 682–688, 2001.
343
+
344
+ Lantao Yu, Weinan Zhang, Jun Wang, and Yong Yu. Seqgan: sequence generative adversarial nets with policy gradient. In Thirty-First AAAI Conference on Artificial Intelligence, 2017.
345
+
346
+ Shanggang Zhou and Douglas A Wolfe. On derivative estimation in spline regression. Statistica Sinica, pp. 93–108, 2000.
347
+
348
+ # A SCORE MATCHING ESTIMATOR: REMARKS AND DERIVATIONS
349
+
350
+ In this section we provide more discussions and analytical solutions for the score matching estimator. More specifically, we will derive the linear coefficient $\pmb { a } = ( a _ { 1 } , . . . , a _ { K } )$ for the case of the Epanechnikov kernel.
351
+
352
+ # A.1 SOME REMARKS ON SCORE MATCHING
353
+
354
+ Remark. It has been shown in Sarel ¨ a & Valpola (2005); Alain & Bengio (2014) that de-noising auto- ¨ encoders (DAEs) (Vincent et al., 2008), once trained, can be used to compute the score function approximately. Briefly speaking, a DAE learns to reconstruct a datum $_ { \textbf { \em x } }$ from a corrupted input $\tilde { \mathbf { x } } = x { + } \sigma \epsilon , \epsilon \sim \mathcal { N } ( \mathbf { 0 } , \mathbf { I } )$ by minimising the mean square error. Then the optimal DAE can be used to approximate the score function as $\begin{array} { r } { \nabla _ { \pmb { x } } \log p ( \pmb { x } ) \approx \frac { 1 } { \sigma ^ { 2 } } ( \mathrm { { D A E ^ { * } } } ( \pmb { x } ) - \pmb { x } ) } \end{array}$ . Sonderby et al. (2017) applied this idea to train an implicit model for image super-resolution, providing some promising results in some metrics. However applying similar ideas to variational inference can be computationally expensive, because the estimation of $\nabla _ { z } \log { q ( z | x ) }$ is a sub-routine for VI which is repeatedly required. Therefore in the paper we deploy kernel machines that allow analytical solutions to the score matching estimator in order to avoid double loop optimisation.
355
+
356
+ Remark. As a side note, score matching can also be used to learn the parameters of an unnormalised density. In this case the target distribution $q$ would be the data distribution and $\hat { q }$ is often a Boltzmann distribution with intractable partition function. As a parameter estimation technique, score matching is also related to contrastive divergence (Hinton, 2002), pseudo likelihood estimation (Hyvarinen, 2006), and DAEs (Vincent, 2011; Alain & Bengio, 2014). Generalisations of score ¨ matching methods are also presented in e.g. Lyu (2009); Marlin et al. (2010).
357
+
358
+ # A.2 THE RBF KERNEL CASE
359
+
360
+ The derivations for the RBF kernel case is referred to (Strathmann et al., 2015), and for com$\begin{array} { r } { \log \hat { q } ( \pmb { x } ) = \sum _ { k = 1 } ^ { K } a _ { k } \mathcal { K } ( \pmb { x } , \pmb { x } ^ { k } ) + C } \end{array}$ e parametric approximation iel uses bandwidth parameter $\sigma$ defined as. then the $\hat { \pmb { a } } ^ { \mathrm { s c o r e } } = ( \pmb { \Sigma } + \eta \mathbf { I } ) ^ { - 1 } \pmb { v } ,$
361
+
362
+ $$
363
+ v = \sum _ { i = 1 } ^ { d } \left[ \sigma ^ { 2 } \mathbf { K } \mathbf { 1 } - \left( \mathbf { K } ( \mathbf { x } _ { i } \odot \mathbf { x } _ { i } ) + \mathrm { { d i a g } } ( \mathbf { x } _ { i } ) \mathbf { K } \mathbf { 1 } - 2 { \mathrm { d i a g } } ( \mathbf { x } _ { i } ) \mathbf { K } \mathbf { x } _ { i } \right) \right] ,
364
+ $$
365
+
366
+ $$
367
+ \pmb { \Sigma } = \sum _ { i = 1 } ^ { d } \left[ \mathrm { d i a g } ( \mathbf { x } _ { i } ) \mathbf { K } - \mathbf { K } \mathrm { d i a g } ( \mathbf { x } _ { i } ) \right] \left[ \mathbf { K } \mathrm { d i a g } ( \mathbf { x } _ { i } ) - \mathrm { d i a g } ( \mathbf { x } _ { i } ) \mathbf { K } \right] ,
368
+ $$
369
+
370
+ $$
371
+ \mathbf { x } _ { i } = ( x _ { i } ^ { 1 } , x _ { i } ^ { 2 } , . . . , x _ { i } ^ { K } ) ^ { \mathrm { T } } \in \mathbb { R } ^ { K \times 1 } .
372
+ $$
373
+
374
+ # A.3 THE EPANECHNIKOV KERNEL CASE
375
+
376
+ The Epanechnikov kernel is defined as $\begin{array} { r } { \mathcal { K } ( \pmb { x } , \pmb { x } ^ { \prime } ) = \frac { 1 } { d } \sum _ { i = 1 } ^ { d } ( 1 - ( x _ { i } - x _ { i } ^ { \prime } ) ^ { 2 } ) } \end{array}$ , where the first and second order gradients w.r.t. $x _ { i }$ is
377
+
378
+ $$
379
+ \nabla _ { x _ { i } } K ( { \pmb x } , { \pmb x } ^ { \prime } ) = \frac { 2 } { d } ( x _ { i } ^ { \prime } - x _ { i } ) , \quad \nabla _ { x _ { i } } \nabla _ { x _ { i } } K ( { \pmb x } , { \pmb x } ^ { \prime } ) = - \frac { 2 } { d } .
380
+ $$
381
+
382
+ Thus the score matching objective with $\begin{array} { r } { \log \hat { q } ( \pmb { x } ) = \sum _ { k = 1 } ^ { K } a _ { k } \mathcal { K } ( \pmb { x } , \pmb { x } ^ { k } ) + C } \end{array}$ is reduced to
383
+
384
+ $$
385
+ \begin{array} { l } { \displaystyle \mathcal { F } ( \pmb { a } ) = \frac { 1 } { K } \sum _ { j = 1 } ^ { K } \left[ | | \sum _ { k = 1 } ^ { K } a _ { k } \frac { 2 } { d } ( \pmb { x } ^ { k } - \pmb { x } ^ { j } ) | | _ { 2 } ^ { 2 } - 2 \sum _ { k = 1 } ^ { K } a _ { k } \frac { 2 } { d } d \right] } \\ { \displaystyle \qquad = \frac { 4 } { K } \sum _ { j = 1 } ^ { K } \left[ \frac { 1 } { d ^ { 2 } } \sum _ { k = 1 } ^ { K } \sum _ { k ^ { \prime } = 1 } ^ { K } a _ { k } a _ { k ^ { \prime } } ( \pmb { x } ^ { k } - \pmb { x } ^ { j } ) ^ { \mathrm { T } } ( \pmb { x } ^ { k ^ { \prime } } - \pmb { x } ^ { j } ) - \pmb { a } ^ { \mathrm { T } } \pmb { 1 } \right] } \\ { \displaystyle \qquad : = 4 ( \pmb { a } ^ { \mathrm { T } } \pmb { a } - \pmb { a } ^ { \mathrm { T } } \pmb { 1 } ) , } \end{array}
386
+ $$
387
+
388
+ with the matrix elements
389
+
390
+ $$
391
+ \Sigma _ { k k ^ { \prime } } = \frac { 1 } { d ^ { 2 } } \left[ ( \pmb { x } ^ { k } ) ^ { \mathrm { T } } \pmb { x } ^ { k ^ { \prime } } + \frac { 1 } { K } \sum _ { j = 1 } ^ { K } \left( | | \pmb { x } ^ { j } | | _ { 2 } ^ { 2 } - ( \pmb { x } ^ { k } + \pmb { x } ^ { k ^ { \prime } } ) ^ { \mathrm { T } } \pmb { x } ^ { j } \right) \right] .
392
+ $$
393
+
394
+ Define the “gram matrix” $\mathbb X _ { i j } = ( \pmb x ^ { i } ) ^ { \mathrm T } \pmb x ^ { j }$ , we write the matrix form of $\pmb { \Sigma }$ as
395
+
396
+ $$
397
+ \Sigma = \frac { 1 } { d ^ { 2 } } \left[ \mathbb { X } + \frac { 1 } { K } \left( \mathrm { T r } ( \mathbb { X } ) - 2 \mathbb { X } \mathbf { 1 } \mathbf { 1 } ^ { \mathrm { T } } \right) \right] .
398
+ $$
399
+
400
+ Thus with an $l _ { 2 }$ regulariser, the fitted coefficients are
401
+
402
+ $$
403
+ \hat { \pmb { a } } ^ { \mathrm { s c o r e } } = \frac { d ^ { 2 } } { 2 } \left[ \mathbb { X } + \frac { 1 } { K } \left( \mathrm { T r } ( \mathbb { X } ) - 2 \mathbb { X } { \bf 1 1 } ^ { \mathrm { T } } \right) + \eta { \bf I } \right] ^ { - 1 } { \bf 1 } .
404
+ $$
405
+
406
+ B STEIN GRADIENT ESTIMATOR: DERIVATIONS
407
+
408
+ B.1 DIRECT MINIMISATION OF KSD V-STATISTIC AND U-STATISTIC
409
+
410
+ The V-statistic of KSD is the following: given samples $\pmb { x } ^ { k } \sim q , k = 1 , . . . , K$ and recall ${ \bf K } _ { j l } = { \bf \Lambda } $ $\mathcal { K } ( \pmb { x } ^ { j } , \pmb { x } ^ { l } )$
411
+
412
+ $$
413
+ \mathfrak { S } _ { V } ^ { 2 } ( \mathfrak { q } , \hat { \mathfrak { q } } ) = \frac { 1 } { K ^ { 2 } } \sum _ { j = 1 } ^ { K } \sum _ { l = 1 } ^ { K } \left[ \hat { g } ( \mathfrak { x } ^ { j } ) ^ { \mathrm { T } } \mathbf { K } _ { j l } \hat { g } ( \mathfrak { x } ^ { l } ) + \hat { g } ( \mathfrak { x } ^ { j } ) ^ { \mathrm { T } } \nabla _ { \mathfrak { x } ^ { l } } \mathbf { K } _ { j l } + \nabla _ { \mathfrak { x } ^ { j } } \mathbf { K } _ { j l } ^ { \mathrm { T } } \hat { g } ( \mathfrak { x } ^ { l } ) + \mathrm { T r } ( \nabla _ { \mathfrak { x } ^ { j } , \mathfrak { x } ^ { l } } \mathbf { K } _ { j l } ) \right] .
414
+ $$
415
+
416
+ The last term $\nabla _ { \pmb { x } ^ { j } , \pmb { x } ^ { l } } \mathbf { K } _ { j l }$ will be ignored as it does not depend on the approximation $\hat { \pmb { g } }$ . Using matrix notations defined in the main text, readers can verify that the $\mathrm { V } .$ -statistic can be computed as
417
+
418
+ $$
419
+ \mathcal { S } _ { V } ^ { 2 } ( q , \hat { q } ) = \frac { 1 } { K ^ { 2 } } \mathrm { T r } ( \mathbf { K } \hat { \mathbf { G } } \hat { \mathbf { G } } ^ { \mathrm { T } } + 2 \langle \nabla , \mathbf { K } \rangle \hat { \mathbf { G } } ^ { \mathrm { T } } ) + C .
420
+ $$
421
+
422
+ Using the cyclic invariance of matrix trace leads to the desired result in the main text. The U-statistic of KSD removes terms indexed by $j = l$ in (23), in which the matrix form is
423
+
424
+ $$
425
+ \mathcal { S } _ { U } ^ { 2 } ( q , \hat { q } ) = \frac { 1 } { K ( K - 1 ) } \mathrm { T r } ( ( { \bf K } - \mathrm { d i a g } ( { \bf K } ) ) \hat { \bf G } \hat { \bf G } ^ { \mathrm { T } } + 2 ( \langle \nabla , { \bf K } \rangle - \nabla \mathrm { d i a g } ( { \bf K } ) ) \hat { \bf G } ^ { \mathrm { T } } ) + C .
426
+ $$
427
+
428
+ with the $j$ th row of $\nabla \mathrm { d i a g } ( \mathbf { K } )$ defined as $\nabla _ { \pmb { x } ^ { j } } \mathcal { K } ( \pmb { x } ^ { j } , \pmb { x } ^ { j } )$ . For most translation invariant kernels this extra term $\nabla \mathrm { d i a g } ( \mathbf { K } ) = \mathbf { 0 }$ , thus the optimal solution of $\hat { \mathbf { G } }$ by minimising KSD U-statistic is
429
+
430
+ $$
431
+ \hat { \mathbf { G } } _ { U } ^ { \mathrm { S t e i n } } = - ( \mathbf { K } - \mathrm { d i a g } ( \mathbf { K } ) + \eta \mathbf { I } ) ^ { - 1 } \langle \nabla , \mathbf { K } \rangle .
432
+ $$
433
+
434
+ # B.2 DERIVING THE NON-PARAMETRIC PREDICTIVE ESTIMATOR
435
+
436
+ Let us consider an unseen datum $\textbf { { y } }$ . If $\textbf { { y } }$ is sampled from the $q$ distribution, then one can also apply the non-parametric estimator (9) for gradient approximations, given the observed data $\mathbf { X } =$ $\{ \bar { \pmb { x } } ^ { 1 } , . . . , \pmb { x } ^ { K } \} \stackrel { - } { \sim } q$ . Concretely, if writing $\bar { \pmb g } ( \pmb y ) \approx \bar { \nabla _ { \pmb y } } \log q ( \pmb y ) \in \bar { \mathbb R ^ { d \times 1 } }$ then the non-parametric Stein gradient estimator (using $\mathrm { V } .$ -statistic) is
437
+
438
+ $$
439
+ \begin{array} { r } { \left[ \hat { g } ( y ) ^ { \mathrm { T } } \right] = - ( \mathbf { K } ^ { * } + \eta I ) ^ { - 1 } \left[ \nabla _ { y } K ( y , y ) + \sum _ { k = 1 } ^ { K } \nabla _ { x ^ { k } } K ( y , x ^ { k } ) \right] , \quad \mathbf { K } ^ { * } = \left[ \mathbf { K } _ { y y } \quad \mathbf { K } _ { y \mathbf { X } } \right] , } \\ { \left. \nabla , \mathbf { K } \right. + \nabla _ { y } K ( \cdot , y ) \qquad \quad \mathbf { K } ^ { * } = \left[ \mathbf { K } _ { \mathbf { X } y } \quad \mathbf { K } \right] , } \end{array}
440
+ $$
441
+
442
+ with $\nabla _ { \pmb { y } } K ( \cdot , \pmb { y } )$ denoting a $K \times d$ matrix with rows $\nabla _ { \pmb { y } } K ( \pmb { x } ^ { k } , \pmb { y } )$ , and $\nabla _ { \pmb { y } } K ( \pmb { y } , \pmb { y } )$ only differentiates through the second argument. Thus by simple matrix calculations, we have:
443
+
444
+ $$
445
+ \begin{array} { l } { \nabla _ { y } \log q ( { y } ) ^ { \mathrm { T } } \approx - \left( \mathbf K _ { y y } + \eta - \mathbf K _ { y \mathbf X } ( \mathbf K + \eta \mathbf I ) ^ { - 1 } \mathbf K _ { \mathbf X { y } } \right) ^ { - 1 } } \\ { \displaystyle \qquad \left( \nabla _ { y } K ( y , y ) + \sum _ { k = 1 } ^ { K } \nabla _ { x ^ { k } } K ( y , x ^ { k } ) + \mathbf K _ { y \mathbf X } \hat { \mathbf G } _ { V } ^ { \mathrm { S t e i n } } - \mathbf K _ { y \mathbf X } ( \mathbf K + \eta \mathbf I ) ^ { - 1 } \nabla _ { y } K ( \cdot , y ) \right) . } \end{array}
446
+ $$
447
+
448
+ For translation invariant kernels, typically $\nabla _ { \pmb { y } } \mathcal { K } ( \pmb { y } , \pmb { y } ) = \mathbf { 0 }$ , and more conveniently,
449
+
450
+ $$
451
+ \nabla _ { \pmb { x } ^ { k } } \mathcal { K } ( \pmb { y } , \pmb { x } ^ { k } ) = \nabla _ { \pmb { x } ^ { k } } ( \pmb { x } ^ { k } - \pmb { y } ) \nabla _ { ( \pmb { x } ^ { k } - \pmb { y } ) } \mathcal { K } ( \pmb { x } ^ { k } - \pmb { y } ) = - \nabla _ { \pmb { y } } \mathcal { K } ( \pmb { x } ^ { k } , \pmb { y } ) .
452
+ $$
453
+
454
+ Thus equation (27) can be further simplified to (with column vector $\mathbf { 1 } \in \mathbb { R } ^ { K \times 1 }$ )
455
+
456
+ $$
457
+ \begin{array} { r l } & { \nabla _ { y } \log q ( \pmb { y } ) ^ { \operatorname { T } } \approx - \left( \mathbf { K } _ { y y } + \eta - \mathbf { K } _ { y \mathbf { X } } ( \mathbf { K } + \eta \mathbf { I } ) ^ { - 1 } \mathbf { K } _ { \mathbf { X } y } \right) ^ { - 1 } } \\ & { \qquad \left( \mathbf { K } _ { y \mathbf { X } } \hat { \mathbf { G } } _ { V } ^ { \mathrm { { S t e i n } } } - \left( \mathbf { K } _ { y \mathbf { X } } ( \mathbf { K } + \eta \mathbf { I } ) ^ { - 1 } + \mathbf { 1 } ^ { \operatorname { T } } \right) \nabla _ { y } \mathcal { K } ( \cdot , y ) \right) . } \end{array}
458
+ $$
459
+
460
+ The solution for the U-statistic case can be derived accordingly which we omit here.
461
+
462
+ B.3 PARAMETRIC STEIN GRADIENT ESTIMATOR WITH THE RBF KERNEL
463
+
464
+ We define a parametric approximation in a similar way as for the score matching estimator:
465
+
466
+ $$
467
+ \log \hat { q } ( \pmb { x } ) : = \sum _ { k = 1 } ^ { K } a _ { k } K ( \pmb { x } , \pmb { x } ^ { k } ) + C , \quad K ( \pmb { x } , \pmb { x } ^ { \prime } ) = \exp \left[ - \frac { 1 } { 2 \sigma ^ { 2 } } | | \pmb { x } - \pmb { x } ^ { \prime } | | _ { 2 } ^ { 2 } \right] .
468
+ $$
469
+
470
+ Now we show the optimal solution of $\pmb { a } = ( a _ { 1 } , . . . , a _ { K } ) ^ { \mathrm { T } }$ by minimising (23). To simplify derivations we assume the approximation and KSD use the same kernel. First note that the gradient of the RBF kernel is
471
+
472
+ $$
473
+ \nabla _ { \pmb { x } } K ( \pmb { x } , \pmb { x } ^ { \prime } ) = \frac { 1 } { \sigma ^ { 2 } } K ( \pmb { x } , \pmb { x } ^ { \prime } ) ( \pmb { x } ^ { \prime } - \pmb { x } ) .
474
+ $$
475
+
476
+ Substituting (30) into (23):
477
+
478
+ $$
479
+ S _ { V } ^ { 2 } ( q , \hat { q } ) = C + \pmb { \mathscr { s } } + 2 \pmb { \mathscr { s } } ,
480
+ $$
481
+
482
+ $$
483
+ \ P \bullet \mathrm { = } \frac { 1 } { K ^ { \mathrm { 2 } } } \sum _ { k = 1 } ^ { K } \sum _ { k ^ { \prime } = 1 } ^ { K } \sum _ { j = 1 } ^ { K } \sum _ { l = 1 } ^ { K } a _ { k } a _ { k ^ { \prime } } \mathbf { K } _ { k j } \mathbf { K } _ { j l } \mathbf { K } _ { l k ^ { \prime } } \frac { 1 } { \sigma ^ { 4 } } ( { \pmb x } ^ { k } - { \pmb x } ^ { j } ) ^ { \mathrm { T } } ( { \pmb x } ^ { k ^ { \prime } } - { \pmb x } ^ { l } ) ,
484
+ $$
485
+
486
+ $$
487
+ \pmb { \diamond } = \frac { 1 } { K ^ { 2 } } \sum _ { k = 1 } ^ { K } \sum _ { j = 1 } ^ { K } \sum _ { l = 1 } ^ { K } a _ { k } \mathbf { K } _ { k j } \mathbf { K } _ { j l } \frac { 1 } { \sigma ^ { 4 } } ( \pmb { x } ^ { k } - \pmb { x } ^ { j } ) ^ { \mathrm { T } } ( \pmb { x } ^ { j } - \pmb { x } ^ { l } ) .
488
+ $$
489
+
490
+ We first consider summing the $j , l$ indices in $\clubsuit$ . Recall the “gram matrix” $\mathbb X _ { i j } = ( { \pmb x } ^ { i } ) ^ { \mathrm T } { \pmb x } ^ { j }$ , the inner product term in $\clubsuit$ can be expressed as ${ \mathbb X } _ { k k ^ { \prime } } + { \mathbb X } _ { j l } - { \mathbb X } _ { k l } - { \mathbb X } _ { j k ^ { \prime } }$ . Thus the summation over $j , l$ can be re-written as
491
+
492
+ $$
493
+ \begin{array} { r l } { { \boldsymbol { \Lambda } : = \sum _ { j = 1 } ^ { K } \sum _ { l = 1 } ^ { K } \mathbf { K } _ { k j } \mathbf { K } _ { j l } \mathbf { K } _ { l k ^ { \prime } } ( \mathbb { X } _ { k k ^ { \prime } } + \mathbb { X } _ { j l } - \mathbb { X } _ { k l } - \mathbb { X } _ { j k ^ { \prime } } ) } \quad } & { } \\ & { = \mathbb { X } \odot ( \mathbf { K } \mathbf { K } \mathbf { K } ) + \mathbf { K } ( \mathbf { K } \odot \mathbb { X } ) \mathbf { K } - ( ( \mathbf { K } \mathbf { K } ) \odot \mathbb { X } ) \mathbf { K } - \mathbf { K } ( ( \mathbf { K } \mathbf { K } ) \odot \mathbb { X } ) . } \end{array}
494
+ $$
495
+
496
+ And thus $\begin{array} { r } { \pmb { \mathscr { s } } = \frac { 1 } { \sigma ^ { 4 } } \pmb { a } ^ { \mathrm { T } } \pmb { \Lambda } \pmb { a } } \end{array}$ . Similarly the summation over $j , l$ in $\spadesuit$ can be simplified into
497
+
498
+ $$
499
+ \begin{array} { r l } & { - \pmb { b } : = \displaystyle \sum _ { j = 1 } ^ { K } \sum _ { l = 1 } ^ { K } \mathbf { K } _ { k j } \mathbf { K } _ { j l } ( \mathbb { X } _ { k j } + \mathbb { X } _ { j l } - \mathbb { X } _ { k l } - \mathbb { X } _ { j j } ) } \\ & { \quad \quad = \ : - \ : ( \mathbf { K } \mathrm { d i a g } ( \mathbb { X } ) \mathbf { K } + ( \mathbf { K } \mathbf { K } ) \odot \mathbb { X } - \mathbf { K } ( \mathbf { K } \odot \mathbb { X } ) - ( \mathbf { K } \odot \mathbb { X } ) \mathbf { K } ) \mathbf { 1 } , } \end{array}
500
+ $$
501
+
502
+ which leads to $\begin{array} { r } { \pmb { \langle \mathscr { s } \rangle } = - \frac { 1 } { \sigma ^ { 4 } } \pmb { a } ^ { \mathrm { T } } \pmb { b } } \end{array}$ . Thus minimising $S _ { V } ^ { 2 } ( q , \hat { q } )$ plus an $l _ { 2 }$ regulariser returns the Stein estimator $\hat { \pmb { a } } _ { V } ^ { \mathrm { S t e i n } }$ in the main text.
503
+
504
+ Similarly we can derive the solution for KSD U-statistic minimisation. The $\mathrm { U }$ statistic can also be represented in quadratic form $S _ { U } ^ { 2 } ( q , \hat { q } ) = C + \tilde { \tilde { \mathbf { \eta } } } + 2 \tilde { \tilde { \mathbf { \eta } } }$ , with $\tilde { \mathbf { A } } = \spadesuit$ and
505
+
506
+ $$
507
+ \tilde { \mathbf { a } } = \mathbf { a } - \frac { 1 } { K ^ { 2 } } \sum _ { k = 1 } ^ { K } \sum _ { k ^ { \prime } = 1 } ^ { K } \sum _ { j = 1 } ^ { K } a _ { k } a _ { k ^ { \prime } } \mathbf { K } _ { k j } \mathbf { K } _ { j j } \mathbf { K } _ { j k ^ { \prime } } \frac { 1 } { \sigma ^ { 4 } } \big ( \mathbb { X } _ { k k ^ { \prime } } + \mathbb { X } _ { j j } - \mathbb { X } _ { k j } - \mathbb { X } _ { j k ^ { \prime } } \big ) .
508
+ $$
509
+
510
+ Summing over the $j$ indices for the second term, we have
511
+
512
+ $$
513
+ \begin{array} { r l } { { \sum _ { j = 1 } ^ { K } { \mathbf { K } } _ { k j } \mathbf { K } _ { j j } \mathbf { K } _ { j k ^ { \prime } } ( { \mathbb { X } } _ { k k ^ { \prime } } + { \mathbb { X } } _ { j j } - { \mathbb { X } } _ { k j } - { \mathbb { X } } _ { j k ^ { \prime } } ) } \quad } & { } \\ & { = { \mathbb { X } } \odot ( { \mathbf { K } } \mathrm { d i a g } ( { \mathbf { K } } ) { \mathbf { K } } ) + { \mathbf { K } } \mathrm { d i a g } ( { \mathbf { K } } \odot { \mathbb { X } } ) { \mathbf { K } } - ( ( { \mathbf { K } } \mathrm { d i a g } ( { \mathbf { K } } ) ) \odot { \mathbb { X } } ) { \mathbf { K } } - { \mathbf { K } } ( ( \mathrm { d i a g } ( { \mathbf { K } } ) { \mathbf { K } } ) \odot { \mathbb { X } } ) . } \end{array}
514
+ $$
515
+
516
+ Working through the analogous derivations reveals that $\hat { \pmb { a } } _ { U } ^ { \mathrm { S t e i n } } = ( \tilde { \pmb { \Lambda } } + \eta { \bf I } ) ^ { - 1 } { \pmb { b } }$ , with
517
+
518
+ $$
519
+ \begin{array} { r l } & { \tilde { \mathbf { A } } = \mathbb { X } \odot ( \mathbf { K } ( \mathbf { K } - \mathrm { d i a g } ( \mathbf { K } ) ) \mathbf { K } ) + \mathbf { K } ( ( \mathbf { K } \odot \mathbb { X } ) - \mathrm { d i a g } ( \mathbf { K } \odot \mathbb { X } ) ) \mathbf { K } } \\ & { \qquad - \left( ( \mathbf { K } ( \mathbf { K } - \mathrm { d i a g } ( \mathbf { K } ) ) ) \odot \mathbb { X } \right) \mathbf { K } - \mathbf { K } ( ( ( \mathbf { K } - \mathrm { d i a g } ( \mathbf { K } ) ) \mathbf { K } ) \odot \mathbb { X } ) . } \end{array}
520
+ $$
521
+
522
+ # C MORE DETAILS ON THE EXPERIMENTS
523
+
524
+ We describe the detailed experimental set-up in this section. All experiments use Adam optimiser (Kingma & Ba, 2015) with standard parameter settings.
525
+
526
+ # C.1 APPROXIMATE POSTERIOR SAMPLER EXPERIMENTS
527
+
528
+ We start by reviewing Bayesian neural networks with binary classification as a running example. In this task, a normal deep neural network is constructed to predict $y = f _ { \theta } ( { \pmb x } )$ , and the neural network is parameterised by a set of weights (and bias vectors which we omit here for simplicity) $\pmb { \theta } = \{ \mathbf { W } ^ { l } \} _ { l = 1 } ^ { L }$ . In the Bayesian framework these network weights are treated as random variables, and a prior distribution, e.g. Gaussian, is also attached to them: $p _ { 0 } ( \pmb { \theta } ) = \mathcal { N } ( \pmb { \theta } ; \mathbf { 0 } , \mathbf { I } )$ . The likelihood function of $\pmb \theta$ is then defined as
529
+
530
+ $$
531
+ p ( y = 1 | \mathbf { x } , \pmb { \theta } ) = \mathrm { s i g m o i d } ( \mathrm { N N } _ { \pmb { \theta } } ( \pmb { x } ) ) ,
532
+ $$
533
+
534
+ and $p ( y = 0 | \mathbf { x } , \pmb { \theta } ) = 1 - p ( y = 1 | \mathbf { x } , \pmb { \theta } )$ accordingly. One can show that the usage of Bernoulli distribution here corresponds to applying cross entropy loss for training.
535
+
536
+ After framing the deep neural network as a probabilistic model, a Bayesian approach would find the posterior of the network weights $p ( \pmb \theta | \mathcal { D } )$ and use the uncertainty information encoded in it for future predictions. By Bayes’ rule, the exact posterior is
537
+
538
+ $$
539
+ p ( \pmb \theta | \mathcal { D } ) \propto p _ { 0 } ( \pmb \theta ) \prod _ { n = 1 } ^ { N } p ( y _ { n } | \pmb x _ { n } , \pmb \theta ) ,
540
+ $$
541
+
542
+ and the predictive distribution for a new input $\pmb { x } ^ { * }$ is
543
+
544
+ $$
545
+ p ( y ^ { \ast } = 1 | \pmb { x } ^ { \ast } , \mathcal { D } ) = \int p ( y ^ { \ast } = 1 | \pmb { x } ^ { \ast } , \pmb { \theta } ) p ( \pmb { \theta } | \mathcal { D } ) d \pmb { \theta } .
546
+ $$
547
+
548
+ Again the exact posterior is intractable, and approximate inference would fit an approximate posterior distribution $q _ { \phi } ( \pmb \theta )$ parameterised by the variational parameters $\phi$ to the exact posterior, and then use it to compute the (approximate) predictive distribution.
549
+
550
+ $$
551
+ p ( y ^ { \ast } = 1 | x ^ { \ast } , \mathcal { D } ) \approx \int p ( y ^ { \ast } = 1 | x ^ { \ast } , \pmb { \theta } ) q _ { \phi } ( \pmb { \theta } ) d \pmb { \theta } .
552
+ $$
553
+
554
+ Since in practice analytical integration for neural network weights is also intractable, the predictive distribution is further approximated by Monte Carlo:
555
+
556
+ $$
557
+ p ( y ^ { * } = 1 | x ^ { * } , \mathcal { D } ) \approx \frac { 1 } { K } \sum _ { k = 1 } ^ { K } p ( y ^ { * } = 1 | x ^ { * } , \pmb { \theta } ^ { k } ) , \quad \pmb { \theta } ^ { k } \sim q _ { \phi } ( \pmb { \theta } ) .
558
+ $$
559
+
560
+ Now it remains to fit the approximate posterior $q _ { \phi } ( \pmb \theta )$ , and in the experiment the approximate posterior is implicitly constructed by a stochastic flow. For the training task, we use a one hidden layer neural network with 20 hidden units to compute the noise variance and the moving direction of the next update. In a nutshell it takes the ith coordinate of the current position and the gradient $\pmb { \theta } _ { t } ( i ) , \bar { \nabla _ { t } } ( i )$ as the inputs, and output the corresponding coordinate of the moving direction $\Delta _ { \phi } ( \theta _ { t } , \nabla _ { t } ) ( i )$ and the noise variance $\sigma _ { \phi } ( \pmb { \theta } _ { t } , \nabla _ { t } ) ( i )$ . Softplus non-linearity is used for the hidden layer and to compute the noise variance we apply ReLU activation to ensure non-negativity. The step-size $\zeta$ is selected as 1e-5 which is tuned on the KDE approach. For SGLD step-size 1e-5 also returns overall good results.
561
+
562
+ The training process is the following. We simulate the approximate sampler for 10 transitions and sum over the variational lower-bounds computed on the samples of every step. Concretely, the maximisation objective is
563
+
564
+ $$
565
+ \mathcal { L } ( \phi ) = \sum _ { t = 1 } ^ { T } \mathcal { L } _ { \mathrm { V I } } ( q _ { t } ) ,
566
+ $$
567
+
568
+ where $T = 1 0 0$ and $q _ { t } ( \pmb \theta )$ is implicitly defined by the marginal distribution of $\theta _ { t }$ that is dependent on $\phi$ . In practice the variational lower-bound ${ \mathcal { L } } _ { \mathrm { V I } } ( q _ { t } )$ is further approximated by Monte Carlo and data sub-sampling:
569
+
570
+ $$
571
+ \mathcal { L } _ { \mathrm { V I } } ( q _ { t } ) \approx \frac { N } { M } \sum _ { m = 1 } ^ { M } \log p ( y _ { m } | x _ { m } , \pmb { \theta } _ { t } ) + \log p _ { 0 } ( \pmb { \theta } _ { t } ) - \log q _ { t } ( \pmb { \theta } _ { t } ) .
572
+ $$
573
+
574
+ The MAP baseline considers an alternative objective function by removing the $\log q _ { t } ( \pmb \theta _ { t } )$ term from the above MC-VI objective.
575
+
576
+ Truncated back-propagation is applied for every 10 steps in order to avoid vanishing/exploding gradients. The simulated samples at time $T$ are stored to initialise the Markov chain for the next iteration, and for every 50 iterations we restart the simulation by randomly sampling the locations from the prior. Early stopping is applied using the validation dataset, and the learning rate is set to 0.001, the number of epochs is set to 500.
577
+
578
+ We perform hyper-parameter search for the kernel, i.e. a grid search on the bandwidth $\sigma ^ { 2 } \in $ $\{ 0 . 2 \bar { 5 } , 1 . 0 , 4 . 0 , \bar { 1 0 } . 0$ , median trick} and $\eta \in \{ 0 . 1 , 0 . 5 , 1 . 0 , 2 . 0 \}$ . We found the median heuristic is sufficient for the KDE and Stein approaches. However, we failed to obtain desirable results using the score matching estimator with median heuristics, and for other settings the score matching approach underperforms when compared to KDE and Stein methods.
579
+
580
+ # C.2 BEGAN EXPERIMENTS
581
+
582
+ In this section we describe the experimental details of the BEGAN experiment, but first we introduce the mathematical idea and discuss how the entropy regulariser is applied.
583
+
584
+ Assume the generator is implicitly defined: $\pmb { x } \sim p _ { \pmb \theta } ( \pmb { x } ) \pmb { x } = \pmb { f _ { \pmb \theta } } ( z ) , z \sim p _ { 0 } ( z )$ . In BEGAN the discriminator is defined as an auto-encoder $D _ { \varphi } ( \pmb { x } )$ that reconstructs the input $_ { \textbf { \em x } }$ . After selecting a ratio parameter $\gamma > 0$ , a control rate $\beta _ { 0 }$ initialised at 0, and a “learning rate” $\lambda > 0$ for the control rate, the loss functions for the generator $\pmb { x } = \pmb { f _ { \theta } } ( z ) , z \sim p _ { 0 } ( z )$ and the discriminator are:
585
+
586
+ $$
587
+ \begin{array} { r l } & { \mathcal { I } ( \pmb { x } ) = | | D _ { \varphi } ( \pmb { x } ) - \pmb { x } | | , \quad | | \cdot | | = | | \cdot | | _ { 2 } ^ { 2 } \mathrm { o r } | \cdot | | _ { 1 } , } \\ & { \mathcal { I } _ { \mathtt { g e n } } ( \pmb { \theta } ; \pmb { \varphi } ) = \mathcal { I } ( \pmb { f } _ { \pmb { \theta } } ( z ) ) , \quad z \sim p _ { 0 } ( z ) } \\ & { \mathcal { I } _ { \mathrm { d i s } } ( \pmb { \varphi } ; \pmb { \theta } ) = \mathcal { I } ( \pmb { x } ) - \beta _ { t } \mathcal { I } _ { \mathtt { g e n } } ( \pmb { \theta } ; \pmb { \varphi } ) , \quad \pmb { x } \sim \mathcal { D } } \\ & { \beta _ { t + 1 } = \beta _ { t } + \lambda ( \gamma \mathcal { I } ( \pmb { x } ) - \mathcal { I } ( \pmb { f } _ { \pmb { \theta } } ( z ) ) ) . } \end{array}
588
+ $$
589
+
590
+ The main idea behind BEGAN is that, as the reconstruction loss $\mathcal { I } ( \cdot )$ is approximately Gaussian distributed, with $\gamma = 1$ the discriminator loss $\mathcal { T } _ { \mathrm { d i s } }$ is (approximately) proportional to the Wasserstein distance between loss distributions induced by the data distribution $p _ { \mathcal { D } } ( \pmb { x } )$ and the generator $p _ { \pmb { \theta } } ( \pmb { x } )$ . In practice it is beneficial to maintain the equilibrium $\gamma \mathbb { E } _ { p _ { \mathcal { D } } } \left[ \mathcal { I } ( \pmb { x } ) \right] = \mathbb { E } _ { p _ { \theta } } \left[ \mathcal { I } ( \pmb { x } ) \right]$ through the optimisation procedure described in (34) that is motivated by proportional control theory. This approach effectively stabilises training, however it suffers from catastrophic mode collapsing problem (see the left most panel in Figure 4). To address this issue, we simply subtract an entropy term from the generator’s loss function, i.e.
591
+
592
+ $$
593
+ \tilde { \mathcal { I } } _ { \mathrm { g e n } } ( \pmb { \theta } ; \varphi ) = \mathcal { I } _ { \mathrm { g e n } } ( \pmb { \theta } ; \varphi ) - \alpha \mathbb { H } [ p _ { \pmb { \theta } } ] ,
594
+ $$
595
+
596
+ where the rest of the optimisation objectives remains as in (34). This procedure would maintain the equilibrium $\gamma \mathbb { E } _ { p _ { D } } \left[ \mathcal { \bar { I } } ( \pmb { x } ) \right] = \mathbb { E } _ { p _ { \theta } } \left[ \mathcal { I } ( \pmb { x } ) \right] - \alpha \mathbb { H } [ p ]$ . We approximate the gradient $\nabla _ { \pmb { \theta } } \mathbb { H } [ p _ { \pmb { \theta } } ]$ using the estimators presented in the main text. For the purpose of updating the control rate $\beta _ { t }$ two strategies are considered to approximate the contribution of the entropy term. Given $K$ samples $\pmb { x } ^ { 1 } , . . . , \pmb { x } ^ { k } \sim p _ { \pmb { \theta } } ( \pmb { x } )$ , The first proposal considers a plug-in estimate of the entropy term with a KDE estimate of $p _ { \pmb { \theta } } ( \pmb { x } )$ , which is consistent with the KDE estimator but not necessary with the other two (as they use kernelsproxy of the entropy loss $\log p _ { \theta } ( { \pmb x } )$ $\nabla _ { \pmb { x } } \log p _ { \pmb { \theta } } ( \pmb { x } ) )$ . The second onerated samples es a and $\begin{array} { r } { - \mathbb { H } [ p ] \approx \frac { 1 } { K } \sum _ { k = 1 } ^ { K } \nabla _ { \pmb { x } ^ { k } } \log p _ { \pmb { \theta } } ( \pmb { x } ^ { k } ) ^ { \mathrm { T } } \pmb { x } ^ { k } } \end{array}$ $\{ \boldsymbol { x } ^ { k } \}$ $\nabla _ { \pmb { x } ^ { k } } \log p _ { \pmb { \theta } } ( \pmb { x } ^ { k } )$ approximated by the gradient estimator in use.
597
+
598
+ In the experiment, we construct a deconvolutional net for the generator and a convolutional autoencoder for the discriminator. The convolutional encoder consists of 3 convolutional layers with filter width 3, stride 2, and number of feature maps [32, 64, 64]. These convolutional layers are followed by two fully connected layers with [512, 64] units. The decoder and the generative net have a symmetric architecture but with stride convolutions replaced by deconvolutions. ReLU activation function is used for all layers except the last layer of the generator, which uses sigmoid non-linearity. The reconstruction loss in use is the squared $\ell _ { 2 }$ norm $| | \cdot | | _ { 2 } ^ { 2 }$ . The randomness $p _ { 0 } ( z )$ is selected as uniform distribution in [-1, 1] as suggested in the original paper (Berthelot et al., 2017). The minibatch size is set to $K = 1 0 0$ . Learning rate is initialised at 0.0002 and decayed by 0.9 every 10 epochs, which is tuned on the KDE model. The selected $\gamma$ and $\alpha$ values are: for KDE estimator approach $\gamma = 0 . 3 , \alpha \gamma = 0 . 0 5$ , for score matching estimator approach $\gamma = 0 . 3 , \alpha \gamma = 0 . 1$ , and for Stein approach $\gamma = 0 . 5$ and $\alpha \gamma = 0 . 3$ . The presented results use the KDE plug-in estimator for the entropy estimates (used to tune $\beta$ ) for the KDE and score matching approaches. Initial experiments found that for the Stein approach, using the KDE entropy estimator works slightly worse than the proxy loss, thus we report results using the proxy loss. An advantage of using the proxy loss is that it directly relates to the approximate gradient. Furthermore we empirically observe that the performance of the Stein approach is much more robust to the selection of $\gamma$ and $\alpha$ when compared to the other two methods.
parse/train/SJi9WOeRb/SJi9WOeRb_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJi9WOeRb/SJi9WOeRb_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJi9WOeRb/SJi9WOeRb_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJxbHkrKDH/SJxbHkrKDH.md ADDED
@@ -0,0 +1,434 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # EVOLUTIONARY POPULATION CURRICULUM FORSCALING MULTI-AGENT REINFORCEMENT LEARNING
2
+
3
+ Qian Long∗
4
+ CMU
5
+ qianlong@cs.cmu.edu
6
+ Zihan Zhou∗
7
+ SJTU
8
+ footoredo@sjtu.edu.cn
9
+
10
+ Abhibav Gupta CMU, Facebook AI Research abhinavg@cs.cmu.edu
11
+
12
+ Fei Fang
13
+ CMU
14
+ feif@cs.cmu.edu
15
+ Yi Wu†
16
+ OpenAI
17
+ jxwuyi@openai.com
18
+
19
+ Xiaolong Wang† UCSD xiw012@ucsd.edu
20
+
21
+ # ABSTRACT
22
+
23
+ In multi-agent games, the complexity of the environment can grow exponentially as the number of agents increases, so it is particularly challenging to learn good policies when the agent population is large. In this paper, we introduce Evolutionary Population Curriculum (EPC), a curriculum learning paradigm that scales up MultiAgent Reinforcement Learning (MARL) by progressively increasing the population of training agents in a stage-wise manner. Furthermore, EPC uses an evolutionary approach to fix an objective misalignment issue throughout the curriculum: agents successfully trained in an early stage with a small population are not necessarily the best candidates for adapting to later stages with scaled populations. Concretely, EPC maintains multiple sets of agents in each stage, performs mix-and-match and fine-tuning over these sets and promotes the sets of agents with the best adaptability to the next stage. We implement EPC on a popular MARL algorithm, MADDPG, and empirically show that our approach consistently outperforms baselines by a large margin as the number of agents grows exponentially. The source code and videos can be found at https://sites.google.com/view/epciclr2020/.
24
+
25
+ # 1 INTRODUCTION
26
+
27
+ Most real-world problems involve interactions between multiple agents and the problem becomes significantly harder when there exist complex cooperation and competition among agents. Inspired by the tremendous success of deep reinforcement learning (RL) in single-agent applications, such as Atari games (Mnih et al., 2013), robotics manipulation (Levine et al., 2016), and navigation (Zhu et al., 2017; Wu et al., 2018; Yang et al., 2019), it has become a popular trend to apply deep RL techniques into multi-agent applications, including communication (Foerster et al., 2016; Sukhbaatar et al., 2016; Mordatch & Abbeel, 2018), traffic light control (Wu et al., 2017), physical combats (Bansal et al., 2018), and video games (Liu et al., 2019; OpenAI, 2018).
28
+
29
+ A fundamental challenge for multi-agent reinforcement learning (MARL) is that, as the number of agents increases, the problem becomes significantly more complex and the variance of policy gradients can grow exponentially (Lowe et al., 2017). Despite the advances on tackling this challenge via actor-critic methods (Lowe et al., 2017; Foerster et al., 2018), which utilize decentralized actors and centralized critics to stabilize training, recent works still scale poorly and are mostly restricted to less than a dozen agents. However, many real-world applications involve a moderately large population of agents, such as algorithmic trading (Wellman et al., 2005), sport team competition (Hausknecht & Stone, 2015), and humanitarian assistance and disaster response (Meier, 2015), where one agent should collaborate and/or compete with all other agents. When directly applying the existing MARL algorithms to complex games with a large number of agents, as we will show in Sec. 5.3, the agents may fail to learn good strategies and end up with little interaction with other agents even when collaboration is significantly beneficial. Yang et al. (2018) proposed a provably-converged meanfield formulation to scale up the actor-critic framework by feeding the state information and the average value of nearby agents’ actions to the critic. However, this formulation strongly relies on the assumption that the value function for each agent can be well approximated by the mean of local pairwise interactions. This assumption often does not hold when the interactions between agents become complex, leading to a significant drop in the performance.
30
+
31
+ In this paper, we propose a general learning paradigm called Evolutionary Population Curriculum (EPC), which allows us to scale up the number of agents exponentially. The core idea of EPC is to progressively increase the population of agents throughout the training process. Particularly, we divide the learning procedure into multiple stages with increasing number of agents in the environment. The agents first learn to play in simpler scenarios with less agents and then leverage these experiences to gradually adapt to later stages with more agents and ultimately our desired population.
32
+
33
+ There are two key components in our curriculum learning paradigm. To process the varying number of agents during the curriculum procedure, the policy/critic needs to be population-invariant. So, we choose a self-attention (Vaswani et al., 2017) based architecture which can generalize to an arbitrary number of agents with a fixed number of parameters. More importantly, we introduce an evolutionary selection process, which helps address the misalignment of learning goals across stages and improves the agents’ performance in the target environment. Intuitively, our within-stage MARL training objective only incentivizes agents to overfit a particular population in the current stage. When moving towards a new stage with a larger population, the successfully trained agents may not adapt well to the scaled environment. To mitigate this issue, we maintain multiple sets of agents in each stage, evolve them through cross-set mix-and-match and parallel MARL fine-tuning in the scaled environment, and select those with better adaptability to the next stage.
34
+
35
+ EPC is RL-algorithm agnostic and can be potentially integrated with most existing MARL algorithms. In this paper, we illustrate the empirical benefits of EPC by implementing it on a popular MARL algorithm, MADDPG (Lowe et al., 2017), and experimenting on three challenging environments, including a predator-prey-style individual survival game, a mixed cooperative-and-competitive battle game, and a fully cooperative food collection game. We show that EPC outperforms baseline approaches by a large margin on all these environments as the number of agents grows even exponentially. We also demonstrate that our method can improve the stability of the training procedure.
36
+
37
+ # 2 RELATED WORK
38
+
39
+ Multi-Agent Reinforcement Learning: It has been a long history in applying RL to multi-agent games (Littman, 1994; Shoham et al., 2003; Panait & Luke, 2005; Wright et al., 2019). Recently, deep RL techniques have been applied into the multi-agent scenarios to solve complex Markov games and great algorithmic advances have been achieved. Foerster et al. (2016) and He et al. (2016) explored a multi-agent variant of deep Q-learning; Peng et al. (2017) studied a fully centralized actor-critic variant; Foerster et al. (2018) developed a decentralized multi-agent policy gradient algorithm with a centralized baseline; Lowe et al. (2017) proposes the MADDPG algorithm which extended DDPG to the multi-agent setting with decentralized policies and centralized Q functions. Our population curriculum approach is a general framework for scaling MARL which can be potentially combined with any of these algorithms. Particularly, we implement our method on top of the MADDPG algorithm in this paper and take different MADDPG variants as baselines in experiments. There are also other works studying large-scale MARL recently (Lin et al., 2018; Jiang & Lu, 2018; Yang et al., 2018; Suarez et al., 2019), which typically simplify the problem by weight sharing and taking only local observations. We consider a much more general setting with global observations and unsharedweight agents. Additionally, our approach is a general learning paradigm which is complementary to the specific techniques proposed in these works.
40
+
41
+ Attention-Based Policy Architecture: Attention mechanism is widely used in RL policy representation to capture object level information (Duan et al., 2017; Wang et al., 2018), represent relations (Zambaldi et al., 2018; Malysheva et al., 2018; Yang et al., 2019) and extract communication channels (Jiang & Lu, 2018). Iqbal & Sha (2019) use an attention-based critic. In our work, we utilize an attention module in both policy and critic, inspired by the transformer architecture (Vaswani et al., 2017), for the purpose of generalization to an arbitrary number of input entities.
42
+
43
+ Curriculum Learning: Curriculum learning can be tracked back to Elman (1993), and its core idea is to “start small”: learn the easier aspects of the task first and then gradually increase the task difficulty. It has been extended to deep neural networks on both vision and language tasks (Bengio et al., 2009) and much beyond: Karras et al. (2017) propose to progressively increase the network capacity for synthesizing high quality images; Murali et al. (2018) apply a curriculum over the control space for robotic manipulation tasks; several works (Wu & Tian, 2016; Florensa et al., 2017; Sukhbaatar et al., 2017; Wang et al., 2019) have proposed to first train RL agents on easier goals and switch to harder ones later. Baker et al. (2019) show that multi-agent self-play can also lead to autocurricula in open-ended environments. In our paper, we propose to progressively increase the number of the agents as a curriculum for better scaling multi-agent reinforcement learning.
44
+
45
+ Evolutionary Learning: Evolutionary algorithms, originally inspired by Darwin’s natural selection, has a long history (Back & Schwefel, 1993), which trains a population of agents in parallel, and ¨ let them evolve via crossover, mutation and selection processes. Recently, evolutionary algorithms have been applied to learn deep RL policies with various aims, such as to enhance training scalability (Salimans et al., 2017), to tune hyper-parameters (Jaderberg et al., 2017), to evolve intrinsic dense rewards (Jaderberg et al., 2018), to learn a neural loss for better generalization (Houthooft et al., 2018), to obtain diverse samples for faster off-policy learning (Khadka & Tumer, 2018), and to encourage exploration (Conti et al., 2018). Leveraging this insight, we apply evolutionary learning to better scale MARL: we train several groups of agents in each curriculum stage and keep evolving them to larger populations for the purpose of better adaptation towards the desired population scale and improved training stability. Czarnecki et al. (2018) proposed a similar evolutionary mix-and-match training paradigm to progressively increase agent capacity, i.e., larger action spaces and more parameters. Their work considers a fixed environment with an increasingly more complex agent and utilizes the traditional parameter crossover and mutation during evolution. By contrast, we focus on scaling MARL, namely an increasingly more complex environment with a growing number of agents. More importantly, we utilize MARL fine-tuning as an implicit mutation operator rather than the classical way of mutating parameters, which is more efficient, guided and applicable to even a very small number of evolution individuals. A similar idea of using learning for mutation is also considered by Gangwani & Peng (2018) in the single-agent setting.
46
+
47
+ # 3 BACKGROUND
48
+
49
+ Markov Games: We consider a multi-agent Markov decision processes (MDPs) (Littman, 1994). Such an $N$ -agent Markov game is defined by state space $s$ of the game, action spaces $\mathcal { A } _ { 1 } , . . . , \mathcal { A } _ { N }$ and observation spaces $\mathcal { O } _ { 1 } , . . . , \mathcal { O } _ { N }$ for each agent. Each agent $i$ receives a private observation correlated with the state $\mathbf { o } _ { i } : { \mathcal { S } } \mapsto { \mathcal { O } } _ { i }$ and produces an action by a stochastic policy $\pmb { \pi } _ { \pmb { \theta } _ { i } } : \mathcal { O } _ { i } \times \mathcal { A } _ { i } \mapsto [ 0 , 1 ]$ parameterized by $\theta _ { i }$ . Then the next states are produced according to the transition function $\tau$ : $\mathcal { S } \times \mathcal { A } _ { 1 } \times . . . \times \mathcal { A } _ { N } \mapsto \mathcal { S }$ . The initial state is determined by a distribution $\rho : { \cal S } \mapsto [ 0 , 1 ]$ . Each agent $i$ obtains rewards as a function of the state and its action $r _ { i } : S \times \mathcal { A } _ { i } \mapsto \mathbb { R }$ , and aims to maximize its own expected return $\begin{array} { r } { R _ { i } = \sum _ { t = 0 } ^ { T } \gamma ^ { t } r _ { i } ^ { t } ( s ^ { t } , a _ { i } ^ { t } ) } \end{array}$ , where $\gamma$ is a discount factor and $T$ is the time horizon. To minimize notation, we omit subscript of policy when there is no ambiguity.
50
+
51
+ Multi-Agent Deep Deterministic Policy Gradient (MADDPG): MADDPG (Lowe et al., 2017) is a multi-agent variant of the deterministic policy gradient algorithm (Silver et al., 2014). It learns a centralized $\mathrm { \bf Q }$ function for each agent which conditions on global state information to resolve the non-stationary issue. Consider $N$ agents with deterministic policies $\pmb { \mu } = \{ \pmb { \mu } _ { 1 } , . . . , \pmb { \mu } _ { N } \}$ where $\pmb { \mu } _ { i } : \mathcal { O } _ { i } \mapsto \mathcal { A } _ { i }$ is parameterized by $\theta _ { i }$ . The policy gradient for agent $i$ is:
52
+
53
+ $$
54
+ \nabla _ { \boldsymbol { \theta } _ { i } } J ( \boldsymbol { \theta } _ { i } ) = \mathbb { E } _ { \mathbf { x } , a \sim \mathcal { D } } [ \nabla _ { \boldsymbol { \theta } _ { i } } \mu _ { i } ( o _ { i } ) \nabla _ { a _ { i } } Q _ { i } ^ { \mu } ( \mathbf { x } , a _ { 1 } , . . . , a _ { N } ) | _ { a _ { i } = \mu _ { i } ( o _ { i } ) } ] ,
55
+ $$
56
+
57
+ Here $\mathcal { D }$ denotes the replay buffer while $Q _ { i } ^ { \pmb { \mu } } ( { \bf x } , a _ { 1 } , . . . , a _ { N } )$ is a centralized action-value function for agent $i$ that takes the actions of all agents, $a _ { 1 } , \dots , a _ { N }$ and the state information $\mathbf { x }$ (i.e., $\mathbf { x } =$ $\left( o _ { 1 } , . . . , o _ { N } \right)$ or simply $\mathbf { x } = s$ if $s$ is available). Let $\mathbf { x } ^ { \prime }$ denote the next state from the environment transition. The replay buffer $\mathcal { D }$ contains experiences in the form of tuples $( \mathbf { x } , \mathbf { x } ^ { \prime } , a _ { 1 } , \ldots , a _ { N } , r _ { 1 } , \ldots , r _ { N } )$ Suppose the centralized critic $Q _ { i } ^ { \mu }$ is parameterized by $\phi _ { i }$ . Then it is updated via:
58
+
59
+ $$
60
+ \begin{array} { r } { \mathcal { L } ( \boldsymbol { \phi } _ { i } ) = \mathbb { E } _ { \mathbf { x } , a , r , \mathbf { x } ^ { \prime } } [ ( Q _ { i } ^ { \mu } ( \mathbf { x } , a _ { 1 } , \dots , a _ { N } ) - y ) ^ { 2 } ] , \quad y = r _ { i } + \gamma Q _ { i } ^ { \mu ^ { \prime } } ( \mathbf { x } ^ { \prime } , a _ { 1 } ^ { \prime } , \dots , a _ { N } ^ { \prime } ) \big | _ { a _ { j } ^ { \prime } = \mu _ { j } ^ { \prime } ( o _ { j } ) } , } \end{array}
61
+ $$
62
+
63
+ where $\boldsymbol { \mu } ^ { \prime } = \{ \pmb { \mu } _ { \theta _ { 1 } ^ { \prime } } , . . . , \pmb { \mu } _ { \theta _ { N } ^ { \prime } } \}$ is the set of target policies with delayed parameters $\theta _ { i } ^ { \prime }$ . Note that the centralized critic is only used during training. At execution time, each policy $\pmb { \mu } _ { \theta _ { i } }$ remains decentralized and only takes local observation $o _ { i }$ .
64
+
65
+ # 4 EVOLUTIONARY POPULATION CURRICULUM
66
+
67
+ In this section, we will first describe the base network architecture with the self-attention mechanism (Vaswani et al., 2017) which allows us to incorporate a flexible number of agents during training. Then we will introduce the population curriculum paradigm and the evolutionary selection process.
68
+
69
+ ![](images/093992fce52d59fed8fcd540a0f8bcee9ca8c0cffad4a0073640b1e5aa0f6948.jpg)
70
+ Figure 1: Our population-invariant Q function: (a) utilizes the attention mechanism to combine embeddings from different observation-action encoder $f _ { i }$ ; (b) is a detailed description for $f _ { i }$ , which also utilizes an attention module to combine $M$ different entities in one observation.
71
+
72
+ # 4.1 POPULATION-INVARIANT ARCHITECTURE
73
+
74
+ We describe our choice of architecture based on the MADDPG algorithm (Lowe et al., 2017), which is population-invariant in the sense that both the Q function and the policy can take in an arbitrary number of input entities. We first introduce the Q function (Fig. 1) and then the policy.
75
+
76
+ We adopt the decentralized execution framework, so each agent has its own Q function and policy network. Particularly for agent $i$ , its centralized Q function is represented as follows:
77
+
78
+ $$
79
+ Q _ { i } ^ { \mu } ( \mathbf { x } , a _ { 1 } , \ldots , a _ { N } ) = h _ { i } ( [ g _ { i } ( f _ { i } ( o _ { i } , a _ { i } ) ) , v _ { i } ] ) , { \mathrm { ~ w h e r e ~ } } v _ { i } = \mathrm { a t t e n t i o n } ( f _ { i } ( o _ { j } , a _ { j } ) \forall j \neq i )
80
+ $$
81
+
82
+ Here $f _ { i } ( o _ { j } , a _ { j } )$ is an observation-action encoder (the green box in Fig. 1(a)) which takes in the observation $o _ { j }$ and the action $a _ { j }$ from agent $j$ , and outputs the agent embedding of agent $j ; v _ { i }$ denotes the global attention embedding (the orange box in Fig. 1(a)) over all the agent embeddings. We will explain $v _ { i }$ and $f _ { i }$ later. $g _ { i }$ is a 1-layer fully connected network processing the embedding of the ith agent’s own observation and action. $h _ { i }$ is a 2-layer fully connected network that takes the concatenation of the output of $g _ { i }$ and the global attention embedding $v _ { i }$ and outputs the final $\mathrm { Q }$ value.
83
+
84
+ Attention Embedding $v _ { i }$ : We define the attention embedding $v _ { i }$ by a weighted sum of each agent’s embedding $f _ { i } ( o _ { j } , a _ { j } )$ for $j \neq i$ :
85
+
86
+ $$
87
+ v _ { i } = \sum _ { j \neq i } \alpha _ { i , j } f _ { i } ( o _ { j } , a _ { j } )
88
+ $$
89
+
90
+ The coefficient $\alpha _ { i , j }$ is computed by
91
+
92
+ $$
93
+ \alpha _ { i , j } = \frac { \exp { ( \beta _ { i , j } ) } } { \sum _ { j \neq i } \exp { ( \beta _ { i , j } ) } } , \quad \beta _ { i , j } = f _ { i } ^ { T } ( o _ { i } , a _ { i } ) \boldsymbol { W } _ { \psi } ^ { T } \boldsymbol { W } _ { \phi } f _ { i } ( o _ { j } , a _ { j } )
94
+ $$
95
+
96
+ where $W _ { \psi }$ and $W _ { \phi }$ are parameters to learn. $\beta _ { i , j }$ computes the correlation between the embeddings of agent $i$ and every other agent $j$ via an inner product. $\alpha _ { i , j }$ is then obtained by normalizing $\beta _ { i , j }$ by a softmax function. Since we represent the observations and actions of other agents with a weighted mean $v _ { i }$ from Eq. 4, we can model the interactions between agent $i$ and an arbitrary number of other agents, which allows us to easily increase the number of agents in our curriculum training paradigm.
97
+
98
+ Observation-Action Encoder $f _ { i }$ : We now define the structure of $f _ { i } ( o _ { j } , a _ { j } )$ (Fig. 1(b)). Note that the observation of agent $j$ , $o _ { j }$ , also includes many entities, i.e., states of all visible agents and objects in the game. Suppose $o _ { j }$ contains $M$ entities, i.e., $o _ { j } = [ o _ { j , 1 } , \dotsc , o _ { j , M } ]$ . $M$ may also vary as the agent population scales over training procedure or simply during an episode when some agents die. Thus, we apply another attention module to combine these entity observations together in a similar way to how $v _ { i }$ is computed (Eq. 4, 5).
99
+
100
+ In more details, we first apply an entity encoder for each entity type to obtain entity embeddings of all the entities within that type. For example, in $o _ { j }$ , we can have embeddings for agent entities (green boxes in Fig. 1(b)) and landmark/object entities (purple boxes in Fig. 1(b)). Then we apply an attention module over each entity type by attending the entity embedding of agent $j$ to all the entities of this type to obtain an attended type embedding (the orange box in Fig. 1(b)). Next, we concatenate all the type embeddings together with the entity embedding of agent $j$ as well as its action embedding. Finally, this concatenated vector is forwarded to a fully connected layer to generate the output of $f _ { i } ( o _ { j } , a _ { j } )$ . Note that in the overall critic network of agent $i$ , the same encoder $f _ { i }$ is applied to every observation-action pair so that the network can maintain a fixed size of parameters even when the number of agents increases significantly.
101
+
102
+ Policy Network: The policy network $\pmb { \mu } _ { i } ( o _ { i } )$ has a similar structure as the observation-action encoder $f _ { i } ( o _ { i } , a _ { i } )$ , which uses an attention module over the entities of each type in the observation $o _ { i }$ to adapt to the changing population during training. The only difference in this network is that the action $a _ { i }$ is not included in the input. Notably, we do not share parameters between the Q function and the policy.
103
+
104
+ # 4.2 POPULATION CURRICULUM
105
+
106
+ We propose to progressively scale the number of agents in MARL with a curriculum. Before combining with the evolutionary selection process, we first introduce a simpler version, the vanilla population curriculum (PC), where we perform the following stage-wise procedure: (i) the initial stage starts with MARL training over a small number of agents using MADDPG and our populationinvariant architecture; (ii) we start a new stage and double1 the number of agents by cloning each of the existing agents; (iii) apply MADDPG training on this scaled population until convergence; (iv) if the desired number of agents is not reached, go back to step (ii).
107
+
108
+ Mathematically, given $N$ trained agents with parameters $\pmb { \theta } = \{ \theta _ { 1 } , . . . , \theta _ { N } \}$ from the previous stage, we want to increase the number of the agents to $2 N$ with new parameters $\tilde { \pmb { \theta } } = \{ \tilde { \theta } _ { 1 } , . . . , \tilde { \theta } _ { N } , . . . , \tilde { \theta } _ { 2 N } \}$ for the next stage . In this vanilla version of population curriculum, we simply initialize $\tilde { \pmb { \theta } }$ by setting $\tilde { \theta } _ { i } \gets \theta _ { i }$ and $\widetilde { \theta } _ { N + i } \theta _ { i }$ , and then continue MADDPG training on $\tilde { \pmb { \theta } }$ to get the final policies for the new stage. Although $\tilde { \theta _ { i } }$ and $\tilde { \theta } _ { N + i }$ are both initialized from $\theta _ { i }$ , as training proceeds, they will converge to different policies since these policies are trained in a decentralized manner in MADDPG.
109
+
110
+ # 4.3 EVOLUTIONARY SELECTION
111
+
112
+ Introducing new agents by directly cloning existing ones from the previous stage has a clear limitation: the policy parameters suitable for the previous environment are not necessarily the best initialization for the current stage as the population is scaled up. In the purpose of better performance in the final game with our desired population, we need to promote agents with better adaptation abilities during early stages of training.
113
+
114
+ Therefore, we propose an evolutionary selection process to facilitate the agents’ scaling adaption ability during the curriculum procedure. Instead of training a single set of agents, we maintain $K$ parallel sets of agents in each stage, and perform crossover, mutation and selection among them for the next stage. This is the last piece in our proposed Evolutionary Population Curriculum (EPC) paradigm, which is essentially population curriculum enhanced by the evolutionary selection process.
115
+
116
+ Specifically, we assume the agents in the multi-agent game have $\Omega$ different roles. Agents in the same role have the same action set and reward structure. For example, we have $\Omega = 2$ roles in a predator-prey game, namely predators and prey, and $\Omega = 1$ role of agents for a fully cooperative game with homogeneous agents. For notation conciseness, we assume there are $N _ { 1 }$ agents of role 1, namely $A _ { 1 } = \{ \pmb { \mu } _ { 1 } , . . . , \pmb { \mu } _ { N _ { 1 } } \}$ ; $N _ { 2 }$ agents of role 2, namely $A _ { 2 } = \{ \pmb { \mu } _ { N _ { 1 } + 1 } , . . . , \pmb { \mu } _ { N _ { 1 } + N _ { 2 } } \}$ , and so on. In each stage, we keep $K$ parallel sets for each role of agents, denoted by $A _ { i } ^ { ( 1 ) } , \ldots , A _ { i } ^ { ( K ) }$ for role $i$ , and take a 3-step procedure, i.e., mix-and-match (crossover), MARL fine-tuning (mutation) and selection, as follows to evolve these $K$ parallel sets of agents for the next stage.
117
+
118
+ Mix-and-Match (Crossover): In the beginning of a curriculum stage, we scale the population of agents from $N$ to $2 N$ . Note that we have $K$ parallel agent sets of size $N _ { i }$ for role $i$ , namely A(1)i , . $A _ { i } ^ { ( 1 ) } , \ldots , A _ { i } ^ { ( K ) }$ . We first perform a mix-and-match over these parallel sets within every role $i$ : for each set A(j), we pair it with all the $K$ sets of the same role, which leads to $K ( K + 1 ) / 2$ new scaled agent sets of size $2 N _ { i }$ . Given these scaled sets of agents, we then perform another mix-and-match across all the $\Omega$ roles: we pick one scaled set for each role and combine these $\Omega$ selected sets to produce a scaled game with $2 N$ agents. For example, in the case of $\Omega = 2$ , we can pick one agent set A(k1)1 from the first role and another agent set $A _ { 2 } ^ { ( k _ { 2 } ) }$ from the second role to form a scaled game.
119
+
120
+ Thus, there are $C _ { \mathrm { m a x } } = \left( K ( K + 1 ) / 2 \right) ^ { \Omega }$ different combinations in total through this mix-and-match process. We sample $C$ games from these combinations for mutation in the next step. Since we are mixing parallel sets of agents, this process can be considered as the crossover operator in standard evolutionary algorithms.
121
+
122
+ MARL Fine-Tuning (Mutation): In standard evolutionary algorithms, mutations are directly performed on the parameters, which is inefficient in high-dimensional spaces and typically requires a large amount of mutants to achieve sufficient diversity for evolution. Instead, here we adopt MARL fine-tuning in each curriculum stage (step (iii) in vanilla PC) as our guided mutation operator, which naturally and efficiently explores effective directions in the parameter space. Meanwhile, due to the training variance, MARL also introduces randomness which benefits the overall diversity of the evolutionary process. Concretely, we apply parallel MADDPG training on each of the $C$ scaled games generated from the mix-and-match step and obtain $C$ mutated sets of agents for each role.
123
+
124
+ Selection: Among these $C$ mutated sets of agents for each role, only the best $K$ mutants can survive. In the case of $\Omega = 1$ , the fitness score of a set of agents is computed as their average reward after MARL training. In other cases when $\Omega \geq 2$ , given a particular mutated set of agents of a specific role, we randomly generate games for this set of agents and other mutated sets from different agent roles. We take its average reward from these randomly generated games as the fitness score for this mutated set. We pick the top- $K$ scored sets of agents in each role to advance to the next curriculum stage.
125
+
126
+ # Algorithm 1: Evolutionary Population Curriculum
127
+
128
+ Data: environment $E ( N , \{ A _ { i } \} _ { 1 \leq i \leq \Omega } )$ with $N$ agents of $\Omega$ roles, desired population $N _ { d }$ , initial population $N _ { 0 }$ , evolution size $K$ , mix-and-match size $C$
129
+ Result: a set of $N _ { d }$ best policies
130
+ $N \gets N _ { 0 }$ ;
131
+ initialize $K$ parallel agent sets $A _ { i } ^ { ( 1 ) } , \ldots , A _ { i } ^ { ( K ) }$ for each role $1 \leq i \leq \Omega$ ;
132
+ initial parallel MARL training on $K$ games, $E ( N , \{ A _ { i } ^ { ( j ) } \} _ { 1 \leq i \leq \Omega } )$ for $1 \leq j \leq K$ ;
133
+ while $N < N _ { d }$ do $N \gets 2 \times N$ ; for $1 \leq j \leq C$ do $\lfloor$ for each role $1 \leq i \leq \Omega \colon j _ { 1 } , j _ { 2 } \gets \mathrm { u n i f } ( 1 , K ) , ~ \tilde { A } _ { i } ^ { ( j ) } \gets A _ { i } ^ { ( j _ { 1 } ) } + A _ { i } ^ { ( j _ { 2 } ) }$ (mix-and-match); MARL training in parallel on $E ( N , \{ \tilde { A } _ { i } ^ { ( j ) } \} _ { 1 \leq i \leq \Omega } )$ for $1 \leq j \leq C$ (guided mutation) ; for role $1 \leq i \leq \Omega$ do for $1 \leq j \leq C$ do $S _ { i } ^ { ( \bar { j } ) } \stackrel { \smile } { } { \mathbb { E } } _ { k _ { t \neq i } \sim [ 1 , C ] } [ \mathrm { a v g . r e w a r d s o n } E ( N , \{ \tilde { A } _ { 1 } ^ { ( k _ { 1 } ) } , \dots , \tilde { A } _ { i } ^ { ( j ) } , \dots , \tilde { A } _ { \Omega } ^ { ( k _ { \Omega } ) } \} ) ]$ (fitness); $A _ { i } ^ { ( 1 ) } , \ldots , A _ { i } ^ { ( K ) } \gets \mathrm { t o p } { - } K$ w.r.t. $S _ { i }$ from $\tilde { A } _ { i } ^ { ( 1 ) } , \ldots , \tilde { A } _ { i } ^ { ( C ) }$ (selection);
134
+
135
+ return the best set of agents in each role, i.e., $\{ A _ { i } ^ { ( k _ { i } ^ { \star } ) } | k _ { i } ^ { \star } \in [ 1 , K ] \ \forall 1 \leq i \leq \Omega \} \colon$ ;
136
+
137
+ Overall Algorithm: Finally, when the desired population is achieved, we take the best set of agents in each role based on their last fitness scores as the output. We conclude the detailed steps of EPC in Alg. 1. Note that in the first curriculum stage, we just train $K$ parallel games without mix-and-match or mutation. So, EPC simply selects the best from the $K$ initial sets in the first stage while the evolutionary selection process only takes effect starting from the second stage. We emphasize that although we evolve multiple sets of agents in each stage, the three operators, mix-and-match, MARL fine-tuning and selection, are all perfectly parallel. Thus, the evolutionary selection process only introduces little influence on the overall training time. Lastly, EPC is an RL-algorithm-agnostic learning paradigm that can be potentially integrated with any MARL algorithm other than MADDPG.
138
+
139
+ # 5 EXPERIMENT
140
+
141
+ We experiment on three challenging environments, including a predatory-prey-style Grassland game, a mixed-cooperative-and-competitive Adversarial Battle game and a fully cooperative Food Collection game. We compare EPC with multiple baseline methods on these environments with different scales of agent populations and show consistently large gains over the baselines. In the following, we will first introduce the environments and the baselines, and then both qualitative and quantitative performances of different methods on all three environments.
142
+
143
+ # 5.1 ENVIRONMENTS
144
+
145
+ All these environments are built on top of the particle-world environment (Mordatch & Abbeel, 2018) where agents take actions in discrete timesteps in a continous 2D world.
146
+
147
+ Grassland: In this game, we have $\Omega \ = \ 2$ roles of agents, $N _ { S }$ sheep and $N _ { W }$ wolves, where sheep moves twice as fast as wolves. We also have a fixed amount of $L$ grass pellets (food for sheep) as green landmarks (Fig. 2a). A wolf will be rewarded when it collides with (eats) a sheep,
148
+
149
+ ![](images/24e6b7437d63af3c204e1fdc3e21a6e3d6ca8187435e82821283ac9a9da897d4.jpg)
150
+ Figure 2: Environment Visualizations
151
+
152
+ and the (eaten) sheep will obtain a negative reward and becomes inactive (dead). A sheep will be rewarded when it comes across a grass pellet and the grass will be collected and respawned in another random position. Note that in this survival game, each individual agent has its own reward and does not share rewards with others.
153
+
154
+ Adversarial Battle: This scenario consists of $L$ units of resources as green landmarks and two teams of agents (i.e., $\Omega = 2$ for each team) competing for the resources (Fig. 2b). Both teams have the same number of agents $( N _ { 1 } = N _ { 2 }$ ). When an agent collects a unit of resource, the resource will be respawned and all the agents in its team will receive a positive reward. Furthermore, if there are more than two agents from team 1 collide with one agent from team 2, the whole team 1 will be rewarded while the trapped agent from team 2 will be deactivated (dead) and the whole team 2 will be penalized, and vice versa.
155
+
156
+ Food Collection: This game has $N$ food locations and $N$ fully cooperative agents $\Omega = 1 \times$ ). The agents need to collaboratively occupy as many food locations as possible within the game horizon (Fig. 2c). Whenever a food is occupied by any agent, the whole team will get a reward of $6 / N$ in that timestep for that food. The more food occupied, the more rewards the team will collect.
157
+
158
+ In addition, we introduce collision penalties as well as auxiliary shaped rewards for each agent in each game for easier training. All the environments are fully observable so that each agent needs to handle a lot of entities and react w.r.t. the global state. More environment details are in Appx. A.
159
+
160
+ # 5.2 METHODS AND METRIC
161
+
162
+ We evaluate the following approaches in our experiments: (1) the MADDPG algorithm (Lowe et al., 2017) with its original architecture (MADDPG); (2) the provably-converged mean-field algorithm (Yang et al., 2018) (mean-field); (3) the MADDPG algorithm with our population-invariant architecture (Att-MADDPG); (4) the vanilla population curriculum without evolutionary selection (vanilla-PC); and (5) our proposed EPC approach (EPC). For EPC parameters, we choose $K = 2$ for Grassland and Adversarial Battle and $K = 3$ for Food Collection; for the mix-and-match size $C$ , we simply set it $C _ { \mathrm { m a x } }$ and enumerate all possible mix-and-match combinations instead of random sampling. All the baseline methods are trained until the same amount of accumulative episodes as EPC took. More training details can be found in Appx. B.
163
+
164
+ For Grassland and Adversarial Battle with $\Omega = 2$ , we evaluate the performance of different methods by competing their trained agents against our EPC trained agents. Specifically, in Grassland, we let sheep trained by each approach compete with the wolves from EPC and collect the average sheep reward as the evaluation metric for sheep. Similarly, we take the same measurement for wolves from each method. In Adversarial Battle, since two teams are symmetric, we just evaluate the shared reward of one team trained by each baseline against another team by EPC as the metric. For Food Collection with $\Omega = 1$ , since it is fully cooperative, we take the team reward for each method as the evaluation metric. In addition, for better visualization, we plot the normalized scores by normalizing the rewards of different methods between 0 and 1 in each scale for each game. More evaluation details are in Appx. C.
165
+
166
+ # 5.3 QUALITATIVE RESULTS
167
+
168
+ In Grassland, as the number of wolves goes up, it becomes increasingly more challenging for sheep to survive; meanwhile, as the sheep become more intelligent, the wolves will be incentivized to be more aggressive accordingly. In Fig. 3, we illustrate two representative matches for competition, including one using the MADDPG sheep against the EPC wolves (Fig. 3a), and the other between the EPC sheep and the MADDPG wolves (Fig. 3b). From Fig. 3a, we can observe that the MADDPG sheep can be easily eaten up by the EPC wolves (note that dark circle means the sheep is eaten). On the other hand, in Fig. 3b, we can see that the EPC sheep learns to eat the grass and avoid the wolves at the same time.
169
+
170
+ ![](images/223ac5dab1c175bc806b98e6d1e31b9b70e2c3c0554197d641200100c99c1760.jpg)
171
+
172
+ ![](images/7376a966ff95eb5db154ad9aa83eee6220f22869d5760b9e508f4b27aa2dc26c.jpg)
173
+ (a) MADDPG sheep vs EPC wolves (b) MADDPG wolves vs EPC sheep Figure 3: Example matches between EPC and MADDPG trained agents in Grassland
174
+
175
+ ![](images/95a8287041fa44173e285dd951c6bfbfbb28a9224d26eb93736f12999dcd645e.jpg)
176
+ Figure 4: Adversarial Battle: dark particles are dead agents.
177
+
178
+ ![](images/9c0a25c31414a42411d7b4ec11e490d99524f9dfc5529ea1456d8a37d564f272.jpg)
179
+ Figure 5: Food Collection
180
+
181
+ In Adversarial Battle, we visualize two matches in Fig. 4 with one over agents by EPC (Fig. 4a) and the other over agents by MADDPG (Fig. 4b). We can clearly see the collaborations between the EPC agents: although the agents are initially spread over the environment, they learn to quickly gather as a group to protect themselves from being killed. While for the MADDPG agents, their behavior shows little incentives to cooperate or compete — these agents stay in their local regions throughout the episode and only collect resources or kill enemies very infrequently.
182
+
183
+ In Food Collection (Fig. 5), the EPC agents in Fig. 5a learn to spread out and occupy as many food as possible to maximize the team rewards. While only one agent among the MADDPG agents in Fig. 5b successfully occupies a food in the episode.
184
+
185
+ # 5.4 QUANTITATIVE RESULTS
186
+
187
+ # Quantitative Results in Grassland
188
+
189
+ In the Grassland game, we perform curriculum training by starting with 3 sheep and 2 wolves, and gradually increase the population of agents. We denote a game with $N _ { S }$ sheep and $N _ { W }$ wolves by “scale $N _ { S ^ { - } } N _ { W }$ ”. We start with scale 3-2 and gradually increase the game size to scales 6-4, 12-8 and finally 24-16.For the two curriculum learning approach, vanilla-PC and EPC, we train over $1 0 ^ { 5 }$ episodes in the first curriculum stage (scale 3-2) and fine-tune the agents with $5 \times 1 0 ^ { 4 }$ episodes after mix-and-match in each of the following stage. For other methods that train the agents from scratch, we take the same accumulative training iterations as the curriculum methods for a fair comparison.
190
+
191
+ Main Results: We report the performance of different methods for each game scale in Fig. 6a. Overall, there are little differences between the mean-field approach and the original MADDPG algorithm while the using the population-invariant architecture (i.e., Att-MADDPG) generally boosts the performance of MADDPG. For the method with population curriculum, vanilla-PC performs almost the same as training from scratch (Att-MADDPG) when the number of agents in the environment is small (i.e., 6-4) but the performance gap becomes much more significant when the population further grows (i.e., 12-18 and 24-16). For our proposed EPC method, it consistently outperforms all the baselines across all the scales. Particularly, in the largest scale 24-16, EPC sheep receive $1 0 \mathrm { x }$ more rewards than the best baseline sheep without curriculum training.
192
+
193
+ Detailed Statistics: Besides rewards, we also compute the statistics of sheep to understand how the trained sheep behave in the game. We perform competitions between sheep trained by different methods against the EPC wolves and measure the average number of total grass pellets eaten per episode, i.e, #grass eaten, and the average percentage of sheep that survive until the end of an episode, i.e., survival rate, in Fig. 6b. We can observe that as the population increases, it becomes increasingly harder for sheep to survive while EPC trained sheep remain a high survival rate even on the largest scale. Moreover, as more sheep in the game, EPC trained sheep consistently learn to eat more grass even under the strong pressure from wolves. In contrast, the amount of eaten grass of MADDPG approach (i.e., Att-MADDPG) drastically decreases when the number of wolves becomes large.
194
+
195
+ # Quantitative Results in Adversarial Battle
196
+
197
+ ![](images/27ec6c79dc58012bdf0b0d8a3c43208bfd6a13b74c3fc0d482c7d261d8041a1e.jpg)
198
+ Figure 6: Results in Grassland. In part (a), we show the normalized scores of wolves and sheep trained by different methods when competing with EPC sheep and EPC wolves respectively. In part (b), we measure the sheep statistics over different scales $\mathbf { \dot { x } }$ -axis), including the average number of total grass pellets eaten per episode (left) and the average percentage of sheep that survive until the end of episode (right). EPC trained agents (yellow) are consistently better than any baseline method.
199
+
200
+ In this game, we evaluate on environments with different sizes of agent population $N$ , denoted by scale $N _ { 1 } – N _ { 2 }$ where $N _ { 1 } = N _ { 2 } =$ $\bar { N } / 2$ . We start the curriculum from scale 4-4 and the increase the population size to scale 8-8 $N = 1 6$ ) and finally 16-16 $N = 3 2$ ). Both vanilla-PC and EPC take $5 \times 1 0 ^ { 4 }$ training episodes in the first stage and then $2 \times 1 0 ^ { 4 }$ episodes in the following two curriculum stages. We report the normalized scores of different methods in Fig. 7, where agents trained by EPC outperforms all the baseline methods increasingly more significant as the agent population grows.
201
+
202
+ # Quantitative Results in Food Collection
203
+
204
+ ![](images/a5ec3320b5797a63d2419f5b17f6bd6ef8cdb45a064214a96d2e2c2b71f33076.jpg)
205
+ Figure 7: Adversarial Battle
206
+
207
+ In this game, we begin curriculum training with $N = 3$ , namely 3 agents and 3 food locations, and progressively increase the population size $N$ to 6, 12 and finally 24. Both vanilla-PC and EPC perform training on $5 \times 1 0 ^ { 4 }$ episodes on the first stage of $N = 3$ and then $2 \times 1 0 ^ { \overline { { 4 } } }$ episodes in each of the following curriculum stage. We report the normalized scores for all the methods in Fig. 8, where EPC is always the best among all the approaches with a clear margin. Note that the performance of the original MADDPG and the meanfield approach drops drastically as the population size $N$ increases. Particularly, the mean-field approach performs even worse than the original MADDPG method. We believe this is because in this game, the agents must act according to the global team state collaboratively, which means the local approximation assumption in the mean-field approach does not hold clearly.
208
+
209
+ ![](images/f70986fc2a2058a05b780148d32f36862c5672218cbd862eefe5756cd2c3b85c.jpg)
210
+ Figure 8: Food Collection
211
+
212
+ # Ablative Analysis
213
+
214
+ Stability Analysis: The evolutionary selection process in EPC not only leads to better final performances but also stabilizes the training procedure. We validate the stability of EPC by computing the variance over 3 training seeds for the same experiment and comparing with the variance of vanilla-PC, which is also obtained from 3 training seeds. Specifically, we pick the second stage of curriculum learning and visualize the variance of agent scores throughout the stage of training. These scores are computed by competing against the final policy trained by EPC. We perform analysis on all the 3 environments: Grassland with scale 6-4 (Fig. 9a), Adversarial Battle with scale 8-8 (Fig. 9b) and Food Collection with scale 6 (Fig. 9c). We can observe that the variance of EPC is much smaller than vanilla-PC in different games.
215
+
216
+ Convergence Analysis: To illustrate that the self-attention based policies trained from a smaller scale is able to well adapt to a larger scale via fine-tuning, we pick a particular mutant by EPC in the second curriculum stage and visualize its learning curve throughout fine-tuning for all the environments, Grassland (Fig. 9d), Adversarial Battle (Fig. 9e) and Food Collection (Fig. 9f). The scores are computed in the same way as the stability analysis. By comparing to MADDPG and Att-MADDPG, which train policies from scratch, we can see that EPC starts learning with a much higher score, continues to improve during fine-tuning and quickly converges to a better solution. Note that all baselines are in fact trained much longer. The full convergence curves are in App. D.1.
217
+
218
+ Generalization: We investigate whether the learned policies can generalize to a different test environment with even a larger scale than the training ones. To do so, we take the best polices trained by different methods on the largest population and directly apply these policies to a new environment with a doubled population by self-cloning. We evaluate in all the environments with EPC, vanilla-PC and Att-MADDPG and measure the normalized scores of different methods, which is computed in the same way as the fitness score. In all cases, we observe a large advantage of EPC over the other two methods, indicating the better generalization ability for policies trained by EPC.
219
+
220
+ ![](images/10de18c8599cba73aa5c05edfdbffa4e5cffd36cb0afcd13096be8716675afd4.jpg)
221
+ Figure 9: Ablation analysis on the second curriculum stage in all the games over 3 different training seeds. Stability comparison (top) in (a), (b) and (c): We observe EPC has much less variance comparing to vanilla-PC. Normalized scores during fine-tuning (bottom) in (d), (e) and (f): This illustrates that EPC can successfully transfer the agents trained with a smaller population to a larger population by fine-tuning.
222
+
223
+ ![](images/a6e38641f77a8b32c6b9abb93d8524efa1b23b0448d5ab5582bc0f09f2730fb0.jpg)
224
+ Figure 10: Environment Generalization: We take the agents trained on the largest scale and test on an environment with twice the population. We perform experiments on all the games and show that EPC also advances the agents’ generalizability.
225
+
226
+ # 6 CONCLUSION
227
+
228
+ In this paper, we propose to scale multi-agent reinforcement learning by using curriculum learning over the agent population with evolutionary selection. Our approach has shown significant improvements over baselines not only in the performance but also the training stability. Given these encouraging results on different environments, we believe our method is general and can potentially benefit scaling other MARL algorithms. We also hope that learning with a large population of agents can also lead to the emergence of swarm intelligence in environments with simple rules in the future.
229
+
230
+ # ACKNOWLEDGMENT
231
+
232
+ This research is supported in part by ONR MURI N000141612007, ONR Young Investigator to AG. FF is also supported in part by NSF grant IIS-1850477, a research grant from Lockheed Martin, and the U.S. Army Combat Capabilities Development Command Army Research Laboratory Cooperative Agreement Number W911NF-13-2-0045 (ARL Cyber Security CRA). The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the funding agencies. We also sincerely thank Bowen Baker and Ingmar Kanitscheider from OpenAI for valuable suggestions and comments.
233
+
234
+ # REFERENCES
235
+
236
+ Thomas Back and Hans-Paul Schwefel. An overview of evolutionary algorithms for parameter optimization. ¨ Evolutionary computation, 1(1):1–23, 1993.
237
+
238
+ Bowen Baker, Ingmar Kanitscheider, Todor Markov, Yi Wu, Glenn Powell, Bob McGrew, and Igor Mordatch Emergent tool use from multi-agent autocurricula. arXiv preprint arXiv:1909.07528, 2019.
239
+
240
+ Trapit Bansal, Jakub Pachocki, Szymon Sidor, Ilya Sutskever, and Igor Mordatch. Emergent complexity via multi-agent competition. In ICLR, 2018.
241
+
242
+ Yoshua Bengio, Jer´ ome Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In ˆ ICML, pp. 41–48. ACM, 2009.
243
+
244
+ Edoardo Conti, Vashisht Madhavan, Felipe Petroski Such, Joel Lehman, Kenneth Stanley, and Jeff Clune. Improving exploration in evolution strategies for deep reinforcement learning via a population of noveltyseeking agents. In NeurIPS, pp. 5027–5038, 2018.
245
+
246
+ Wojciech Marian Czarnecki, Siddhant M Jayakumar, Max Jaderberg, Leonard Hasenclever, Yee Whye Teh, Nicolas Heess, Simon Osindero, and Razvan Pascanu. Mix & match agent curricula for reinforcement learning. In ICML, pp. 1095–1103, 2018.
247
+
248
+ Yan Duan, Marcin Andrychowicz, Bradly Stadie, Jonathan Ho, Jonas Schneider, Ilya Sutskever, Pieter Abbeel, and Wojciech Zaremba. One-shot imitation learning. In NIPS, pp. 1087–1098, 2017.
249
+
250
+ Jeffrey L Elman. Learning and development in neural networks: The importance of starting small. Cognition, 48(1):71–99, 1993.
251
+
252
+ Carlos Florensa, David Held, Markus Wulfmeier, Michael Zhang, and Pieter Abbeel. Reverse curriculum generation for reinforcement learning. In CoRL, pp. 482–495, 2017.
253
+
254
+ Jakob Foerster, Ioannis Alexandros Assael, Nando de Freitas, and Shimon Whiteson. Learning to communicate with deep multi-agent reinforcement learning. In NIPS, pp. 2137–2145, 2016.
255
+
256
+ Jakob N Foerster, Gregory Farquhar, Triantafyllos Afouras, Nantas Nardelli, and Shimon Whiteson. Counterfactual multi-agent policy gradients. In AAAI, 2018.
257
+
258
+ Tanmay Gangwani and Jian Peng. Genetic policy optimization. In ICLR, 2018.
259
+
260
+ Matthew Hausknecht and Peter Stone. Deep reinforcement learning in parameterized action space. arXiv preprint arXiv:1511.04143, 2015.
261
+
262
+ He He, Jordan Boyd-Graber, Kevin Kwok, and Hal Daume III. Opponent modeling in deep reinforcement ´ learning. In International Conference on Machine Learning, pp. 1804–1813, 2016.
263
+
264
+ Rein Houthooft, Yuhua Chen, Phillip Isola, Bradly Stadie, Filip Wolski, OpenAI Jonathan Ho, and Pieter Abbeel. Evolved policy gradients. In NeurIPS, pp. 5400–5409, 2018.
265
+
266
+ Shariq Iqbal and Fei Sha. Actor-attention-critic for multi-agent reinforcement learning. In ICML, pp. 2961–2970, 2019.
267
+
268
+ Max Jaderberg, Valentin Dalibard, Simon Osindero, Wojciech M Czarnecki, Jeff Donahue, Ali Razavi, Oriol Vinyals, Tim Green, Iain Dunning, Karen Simonyan, et al. Population based training of neural networks. arXiv preprint arXiv:1711.09846, 2017.
269
+
270
+ Max Jaderberg, Wojciech M Czarnecki, Iain Dunning, Luke Marris, Guy Lever, Antonio Garcia Castaneda, Charles Beattie, Neil C Rabinowitz, Ari S Morcos, Avraham Ruderman, et al. Human-level performance in first-person multiplayer games with population-based deep reinforcement learning. arXiv preprint arXiv:1807.01281, 2018.
271
+
272
+ Jiechuan Jiang and Zongqing Lu. Learning attentional communication for multi-agent cooperation. In NeurIPS, 2018.
273
+
274
+ Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. arXiv preprint arXiv:1710.10196, 2017.
275
+
276
+ Shauharda Khadka and Kagan Tumer. Evolution-guided policy gradient in reinforcement learning. In NeurIPS, pp. 1188–1200, 2018.
277
+
278
+ 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.
279
+
280
+ Kaixiang Lin, Renyu Zhao, Zhe Xu, and Jiayu Zhou. Efficient large-scale fleet management via multi-agent deep reinforcement learning. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 1774–1783. ACM, 2018.
281
+
282
+ Michael L Littman. Markov games as a framework for multi-agent reinforcement learning. In ICML, volume 157, pp. 157–163, 1994.
283
+
284
+ Siqi Liu, Guy Lever, Nicholas Heess, Josh Merel, Saran Tunyasuvunakool, and Thore Graepel. Emergent coordination through competition. In ICLR, 2019.
285
+
286
+ Ryan Lowe, Yi Wu, Aviv Tamar, Jean Harb, Pieter Abbeel, and Igor Mordatch. Multi-agent actor-critic for mixed cooperative-competitive environments. NIPS, 2017.
287
+
288
+ Aleksandra Malysheva, Tegg Taekyong Sung, Chae-Bong Sohn, Daniel Kudenko, and Aleksei Shpilman. Deep multi-agent reinforcement learning with relevance graphs. arXiv preprint arXiv:1811.12557, 2018.
289
+
290
+ Patrick Meier. Digital humanitarians: how big data is changing the face of humanitarian response. Routledge, 2015.
291
+
292
+ 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.5602, 2013.
293
+
294
+ Igor Mordatch and Pieter Abbeel. Emergence of grounded compositional language in multi-agent populations. In AAAI, 2018.
295
+
296
+ Adithyavairavan Murali, Lerrel Pinto, Dhiraj Gandhi, and Abhinav Gupta. Cassl: Curriculum accelerated self-supervised learning. In ICRA, pp. 6453–6460. IEEE, 2018.
297
+
298
+ OpenAI. OpenAI Five. https://blog.openai.com/openai-five/, 2018.
299
+
300
+ Liviu Panait and Sean Luke. Cooperative multi-agent learning: The state of the art. AAMAS, 11(3):387–434, 2005.
301
+
302
+ Peng Peng, Quan Yuan, Ying Wen, Yaodong Yang, Zhenkun Tang, Haitao Long, and Jun Wang. Multiagent bidirectionally-coordinated nets for learning to play starcraft combat games. arXiv preprint arXiv:1703.10069, 2, 2017.
303
+
304
+ Tim Salimans, Jonathan Ho, Xi Chen, Szymon Sidor, and Ilya Sutskever. Evolution strategies as a scalable alternative to reinforcement learning. arXiv preprint arXiv:1703.03864, 2017.
305
+
306
+ Yoav Shoham, Rob Powers, and Trond Grenager. Multi-agent reinforcement learning: a critical survey. Web manuscript, 2003.
307
+
308
+ David Silver, Guy Lever, Nicolas Heess, Thomas Degris, Daan Wierstra, and Martin Riedmiller. Deterministic policy gradient algorithms. In ICML, pp. 387–395, 2014.
309
+
310
+ Joseph Suarez, Yilun Du, Phillip Isola, and Igor Mordatch. Neural mmo: A massively multiagent game environment for training and evaluating intelligent agents. arXiv preprint arXiv:1903.00784, 2019.
311
+
312
+ Sainbayar Sukhbaatar, Rob Fergus, et al. Learning multiagent communication with backpropagation. In NIPS, pp. 2244–2252, 2016.
313
+
314
+ Sainbayar Sukhbaatar, Zeming Lin, Ilya Kostrikov, Gabriel Synnaeve, Arthur Szlam, and Rob Fergus. Intrinsic motivation and automatic curricula via asymmetric self-play. arXiv preprint arXiv:1703.05407, 2017.
315
+
316
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NIPS, pp. 5998–6008, 2017.
317
+
318
+ Rui Wang, Joel Lehman, Jeff Clune, and Kenneth O Stanley. Paired open-ended trailblazer (poet): Endlessly generating increasingly complex and diverse learning environments and their solutions. arXiv preprint arXiv:1901.01753, 2019.
319
+
320
+ Xiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In CVPR, 2018.
321
+
322
+ Michael P Wellman, Daniel M Reeves, Kevin M Lochner, Shih-Fen Cheng, and Rahul Suri. Approximate strategic reasoning through hierarchical reduction of large symmetric games. In AAAI, 2005.
323
+
324
+ Mason Wright, Yongzhao Wang, and Michael P Wellman. Iterated deep reinforcement learning in games: history-aware training for improved stability. In Proceedings of the 2019 ACM Conference on Economics and Computation, pp. 617–636. ACM, 2019.
325
+
326
+ Cathy Wu, Aboudy Kreidieh, Eugene Vinitsky, and Alexandre M Bayen. Emergent behaviors in mixed-autonomy traffic. In CoRL, pp. 398–407, 2017.
327
+ Yi Wu, Yuxin Wu, Georgia Gkioxari, and Yuandong Tian. Building generalizable agents with a realistic and rich 3d environment. arXiv preprint arXiv:1801.02209, 2018.
328
+ Yuxin Wu and Yuandong Tian. Training agent for first-person shooter game with actor-critic curriculum learning. In ICLR, 2016.
329
+ Wei Yang, Xiaolong Wang, Ali Farhadi, Abhinav Gupta, and Roozbeh Mottaghi. Visual semantic navigation using scene priors. In ICLR, 2019.
330
+ Yaodong Yang, Rui Luo, Minne Li, Ming Zhou, Weinan Zhang, and Jun Wang. Mean field multi-agent reinforcement learning. In ICML, pp. 5567–5576, 2018.
331
+ Vinicius Zambaldi, David Raposo, Adam Santoro, Victor Bapst, Yujia Li, Igor Babuschkin, Karl Tuyls, David Reichert, Timothy Lillicrap, Edward Lockhart, et al. Relational deep reinforcement learning. arXiv preprint arXiv:1806.01830, 2018.
332
+ Yuke Zhu, Roozbeh Mottaghi, Eric Kolve, Joseph J Lim, Abhinav Gupta, Li Fei-Fei, and Ali Farhadi. Targetdriven visual navigation in indoor scenes using deep reinforcement learning. In ICRA, pp. 3357–3364. IEEE, 2017.
333
+
334
+ # A ENVIRONMENT DETAILS
335
+
336
+ In the Grassland game, sheep gets $+ 2$ reward when he eats the grass, -5 reward when eaten by wolf. The wolf get $^ { + 5 }$ reward when eats a sheep. We also shape the reward by distance, sheep will get less negative reward when it is closer to grass and wolf will get less negative reward when it is closer to sheep. This game is adapted from the original Predator-prey game in the MADDPG paper (Lowe et al., 2017) by introducing grass and allowing agent to die.
337
+
338
+ In the Adversarial Battle game, agent will get $+ 1$ reward when he eats the food, $- 6$ reward when killed by other agents. If $N$ agents kill an enemy, they will be rewarded $+ 6 / N$ . We shape the reward by distance. Agent will receive less negative rewards when it is closer to other agents and grass. We want to encourage collision within agents and also will be easier for them to learn to eat. This game is adapted from the mean-field MARL paper (Yang et al., 2018) by converting it from a grid world to particle-world, introducing food and only allowing 2-agent cooperative killing.
339
+
340
+ In the Food Collection game, there are $N$ agents and $N$ food locations. Each agent will get a shared $+ 6 / N$ reward per timestep when one food is occupied by any agent. If one agent gets collision with another, all of the agents will get a punish of $- 6 / N$ . We shape the reward by distance. Agents will receive less negative rewards when it gets closer to the food. Since the number of agents and food are equal, we want to avoid the collision within agents and let the agents to learn to occupy as many food as possible. This is exactly the same game as the Cooperative Navigation game in the MADDPG paper. We slightly change the reward function to ensure it is bounded w.r.t. arbitrary number of agents.
341
+
342
+ We use the normalized reward as the score during evaluation. For a particular game with a particular scale, we first collect the reward for each type of agents, namely the average reward of each individual of that type without the shaped rewards. Then we re-scale the collected rewards by considering the lowest reward among all methods as score 0 and highest reward as score 1.
343
+
344
+ # B TRAINING DETAILS
345
+
346
+ We follow all the hyper-parameters in the original MADDPG paper (Lowe et al., 2017) for both EPC and all the baseline methods considered. Particularly, we use the Adam optimizer with learning rate 0.01, $\beta _ { 1 } = 0 . 9$ , $\beta _ { 2 } = 0 . 9 9 9$ and $\varepsilon = 1 0 ^ { - 8 }$ across all experiments. $\tau = 0 . 0 1$ is set for target network update and $\gamma = 0 . 9 5$ is used as discount factor. We also use a replay buffer of size $1 0 ^ { 6 }$ and we update the network parameters after every 100 samples. The batch size is 1024. All the baseline methods are trained for a number of episodes that equals the accumulative number of episodes that EPC has taken.
347
+
348
+ We set $K \ : = \ : 2$ in all the games during training except that $K \ : = \ : 3$ in the food collection game due to computational constraints. During EPC training, in the grassland game, we train the scale of 3 sheep 2 wolf for 100000 episodes. We train another 50000 episodes every time the agents number doubles. In the adversarial battle game and food collection game, we train the first scale for 50000 episodes. We train another 20000 episodes every time the agents number doubles.
349
+
350
+ In the grassland game, the entity types are the agent itself, other sheep, other wolf and food. We thus have four types of entity encoders for each of those entity types. In the adversarial battle game, Similar to grassland game, the entity types are agent itself, other teammates, enemies and food. We also have four types of entity encoders for each of those entity types. Since there is only one group in the food collection game, the entity types are agent itself, other teammates and food. We thus have three entity encoders in our network.
351
+
352
+ # C EVALUATION DETAILS
353
+
354
+ To evaluate the agents trained in the environment with $\Omega = 2$ , we make two roles of agents trained with different approaches compete against each other. Each competition is simulated for 10000 episodes. The average normalized reward over the 10000 episodes will be used as the competition score for each side. Note that in our experiments, we let all the methods compete against our EPC approach for evaluation. For adversarial battle game, we take the average score of two teams as the model’s final evaluation score, since the two teams in this game are completely symmetric.
355
+
356
+ In the food collection game, since there is only one role, we simply simulate the model for 10000 episodes. The average normalized reward over the 10000 episodes will be used as the score of the model.
357
+
358
+ # D ADDITIONAL DETAILS ON EXPERIMENT RESULTS
359
+
360
+ # D.1 FULL TRAINING CURVES FOR BASELINES
361
+
362
+ All the baseline methods are trained for a number of episodes that equals the accumulative number of episodes that EPC has taken.
363
+
364
+ The purpose of Figure 9e,9e,9f is simply showing the transfer performance, i.e., the initialization produced by EPC from the previous stage is effective and can indeed leverage past experiences to warm-start. The $\mathbf { X }$ -axis of
365
+
366
+ the plot was shrunk for visualization purpose. Here we illustrate the complete convergence curve of baselines, i.e., ATT-MADDPG and MADDPG, in Figure 11a,11b,11c for the 3 games respective. Although Att-MADDPG takes a much longer time to learn, its performance is still far worse than EPC.
367
+
368
+ ![](images/7ad0517d06250593c39fc1f7fe0c29605484bee30b01e016035364f31af19d2c.jpg)
369
+ Figure 11: Full learning curves on the second curriculum stage in all the games. EPC fine-tunes the policies obtained from the previous stage while MADDPG and Att-MADDPG are trained from scratch for a much longer time.
370
+
371
+ # D.2 RAW REWARD NUMBERS OF EVALUATION RESULTS
372
+
373
+ In this section, we provide the actual rewards without normalization when comparing all the baselines with EPC.
374
+ These scores are corresponding to the histograms reported in Figure 6a, 7, 8.
375
+
376
+ Grassland game, wolf rewards, corresponding to wolf in Figure 6a:
377
+
378
+ <table><tr><td rowspan=1 colspan=1>scale</td><td rowspan=1 colspan=1>MADDPG</td><td rowspan=1 colspan=1>mean field</td><td rowspan=1 colspan=1>Att-MADDPG</td><td rowspan=1 colspan=1>vanilla-PC</td><td rowspan=1 colspan=1>EPC</td></tr><tr><td rowspan=1 colspan=1>3-2</td><td rowspan=1 colspan=1>0.596</td><td rowspan=1 colspan=1>0.877</td><td rowspan=1 colspan=1>0.8145</td><td rowspan=1 colspan=1>0.8145</td><td rowspan=1 colspan=1>1.407</td></tr><tr><td rowspan=1 colspan=1>6-4</td><td rowspan=1 colspan=1>3.7735</td><td rowspan=1 colspan=1>0.9515</td><td rowspan=1 colspan=1>2.5905</td><td rowspan=1 colspan=1>2.001</td><td rowspan=1 colspan=1>3.7735</td></tr><tr><td rowspan=1 colspan=1>12-8</td><td rowspan=1 colspan=1>3.1915</td><td rowspan=1 colspan=1>3.385</td><td rowspan=1 colspan=1>10.2125</td><td rowspan=1 colspan=1>9.974</td><td rowspan=1 colspan=1>14.377</td></tr><tr><td rowspan=1 colspan=1>24-16</td><td rowspan=1 colspan=1>14.482</td><td rowspan=1 colspan=1>18.272</td><td rowspan=1 colspan=1>32.8945</td><td rowspan=1 colspan=1>47.6365</td><td rowspan=1 colspan=1>61.4245</td></tr></table>
379
+
380
+ Grassland game, sheep rewards, corresponding to sheep in Figure 6a:
381
+
382
+ <table><tr><td rowspan=1 colspan=1>scale</td><td rowspan=1 colspan=1>MADDPG</td><td rowspan=1 colspan=1>mean field</td><td rowspan=1 colspan=1>Att-MADDPG</td><td rowspan=1 colspan=1>vanilla-PC</td><td rowspan=1 colspan=1>EPC</td></tr><tr><td rowspan=1 colspan=1>3-2</td><td rowspan=1 colspan=1>-4.0026</td><td rowspan=1 colspan=1>-3.9947</td><td rowspan=1 colspan=1>2.66</td><td rowspan=1 colspan=1>2.66</td><td rowspan=1 colspan=1>8.3846</td></tr><tr><td rowspan=1 colspan=1>6-4</td><td rowspan=1 colspan=1>-20.2494</td><td rowspan=1 colspan=1>-20.5107</td><td rowspan=1 colspan=1>0.9892</td><td rowspan=1 colspan=1>1.1804</td><td rowspan=1 colspan=1>10.1455</td></tr><tr><td rowspan=1 colspan=1>12-8</td><td rowspan=1 colspan=1>-52.863</td><td rowspan=1 colspan=1>-53.6338</td><td rowspan=1 colspan=1>-42.4801</td><td rowspan=1 colspan=1>-11.3736</td><td rowspan=1 colspan=1>3.3774</td></tr><tr><td rowspan=1 colspan=1>24-16</td><td rowspan=1 colspan=1>-119.1327</td><td rowspan=1 colspan=1>-118.5668</td><td rowspan=1 colspan=1>-111.0656</td><td rowspan=1 colspan=1>-70.1981</td><td rowspan=1 colspan=1>-44.1031</td></tr></table>
383
+
384
+ Adversarial Battle game, rewards of team 1, corresponding to Figure 7:
385
+
386
+ Food Collection game, team rewards, corresponding to Figure 8:
387
+
388
+ <table><tr><td rowspan=1 colspan=1>scale</td><td rowspan=1 colspan=1>MADDPG</td><td rowspan=1 colspan=1>mean field</td><td rowspan=1 colspan=1>Att-MADDPG</td><td rowspan=1 colspan=1>vanilla-PC</td><td rowspan=1 colspan=1>EPC</td></tr><tr><td rowspan=1 colspan=1>4-4</td><td rowspan=1 colspan=1>7.51555</td><td rowspan=1 colspan=1>5.81165</td><td rowspan=1 colspan=1>22.6357</td><td rowspan=1 colspan=1>22.6357</td><td rowspan=1 colspan=1>26.86355</td></tr><tr><td rowspan=1 colspan=1>8-8</td><td rowspan=1 colspan=1>0.6692</td><td rowspan=1 colspan=1>-0.58115</td><td rowspan=1 colspan=1>43.7801</td><td rowspan=1 colspan=1>46.89595</td><td rowspan=1 colspan=1>65.75585</td></tr><tr><td rowspan=1 colspan=1>16-16</td><td rowspan=1 colspan=1>-46.6398</td><td rowspan=1 colspan=1>-35.5978</td><td rowspan=1 colspan=1>28.8336</td><td rowspan=1 colspan=1>109.4406</td><td rowspan=1 colspan=1>189.69775</td></tr></table>
389
+
390
+ <table><tr><td rowspan=1 colspan=1>scale</td><td rowspan=1 colspan=1>MADDPG</td><td rowspan=1 colspan=1>mean field</td><td rowspan=1 colspan=1>Att-MADDPG</td><td rowspan=1 colspan=1>vanilla-PC</td><td rowspan=1 colspan=1>EPC</td></tr><tr><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>55.06</td><td rowspan=1 colspan=1>42.74</td><td rowspan=1 colspan=1>61.6488</td><td rowspan=1 colspan=1>61.6488</td><td rowspan=1 colspan=1>64.822</td></tr><tr><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1>17.01</td><td rowspan=1 colspan=1>3.37</td><td rowspan=1 colspan=1>49.3626</td><td rowspan=1 colspan=1>58.0014</td><td rowspan=1 colspan=1>63.7004</td></tr><tr><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>6.32</td><td rowspan=1 colspan=1>6.735</td><td rowspan=1 colspan=1>49.45755</td><td rowspan=1 colspan=1>52.3625</td><td rowspan=1 colspan=1>59.54</td></tr><tr><td rowspan=1 colspan=1>24</td><td rowspan=1 colspan=1>10.346075</td><td rowspan=1 colspan=1>7.830975</td><td rowspan=1 colspan=1>33.435</td><td rowspan=1 colspan=1>49.998025</td><td rowspan=1 colspan=1>59.47035</td></tr></table>
391
+
392
+ # D.3 PAIRWISE COMPETITION RESULTS BETWEEN ALL METHODS IN COMPETITIVE GAMES
393
+
394
+ For visualization purpose, we only illustrate the scores of the competitions between baselines and EPC in the main paper. Here we provide the complete competition rewards between every pair of methods in both Grassland and Adversarial Battle with the largest population of agents as follows.
395
+
396
+ Here show the wolf rewards in Grassland with scale 24-16. For wolves trained by each approach, we compare them against the sheep by all the methods. EPC wolves always have the highest rewards as in the bottom row. Correspondingly, when different wolves compete against EPC sheep, they always obtain the lowest rewards as in the rightmost column.
397
+
398
+ <table><tr><td rowspan=1 colspan=1>sheepwolf</td><td rowspan=1 colspan=1>MADDPG</td><td rowspan=1 colspan=1>mean-field</td><td rowspan=1 colspan=1>Att-MADDPG</td><td rowspan=1 colspan=1>Vanilla-PC</td><td rowspan=1 colspan=1>EPC</td></tr><tr><td rowspan=1 colspan=1>MADDPG</td><td rowspan=1 colspan=1>66.914</td><td rowspan=1 colspan=1>67.0945</td><td rowspan=1 colspan=1>66.34</td><td rowspan=1 colspan=1>23.048</td><td rowspan=1 colspan=1>14.482</td></tr><tr><td rowspan=1 colspan=1>mean-field</td><td rowspan=1 colspan=1>75.7655</td><td rowspan=1 colspan=1>74.23</td><td rowspan=1 colspan=1>74.7375</td><td rowspan=1 colspan=1>28.3705</td><td rowspan=1 colspan=1>18.272</td></tr><tr><td rowspan=1 colspan=1>Att-MADDPG</td><td rowspan=1 colspan=1>103.22</td><td rowspan=1 colspan=1>103.326</td><td rowspan=1 colspan=1>98.07</td><td rowspan=1 colspan=1>49.557</td><td rowspan=1 colspan=1>32.8945</td></tr><tr><td rowspan=1 colspan=1>Vanilla-PC</td><td rowspan=1 colspan=1>110.333</td><td rowspan=1 colspan=1>111.3735</td><td rowspan=1 colspan=1>101.8975</td><td rowspan=1 colspan=1>64.53</td><td rowspan=1 colspan=1>47.6365</td></tr><tr><td rowspan=1 colspan=1>EPC</td><td rowspan=1 colspan=1>120.9025</td><td rowspan=1 colspan=1>121.4325</td><td rowspan=1 colspan=1>115.956</td><td rowspan=1 colspan=1>82.381</td><td rowspan=1 colspan=1>61.4245</td></tr></table>
399
+
400
+ Here show the sheep rewards in Grassland with scale 24-16. For sheep trained by each approach, we compete them against the all different wolves. EPC sheep always have the highest rewards as in the last row. Correspondingly, when competing different sheep against EPC wolves, the rewards are always the lowest as in the rightmost column.
401
+
402
+ <table><tr><td rowspan=1 colspan=1>wolfsheep</td><td rowspan=1 colspan=1>MADDPG</td><td rowspan=1 colspan=1>mean-field</td><td rowspan=1 colspan=1>Att-MADDPG</td><td rowspan=1 colspan=1>Vanilla-PC</td><td rowspan=1 colspan=1>EPC</td></tr><tr><td rowspan=1 colspan=1>MADDPG</td><td rowspan=1 colspan=1>-63.5096</td><td rowspan=1 colspan=1>-72.5443</td><td rowspan=1 colspan=1>-100.4636</td><td rowspan=1 colspan=1>-107.825</td><td rowspan=1 colspan=1>-119.1327</td></tr><tr><td rowspan=1 colspan=1>mean-field</td><td rowspan=1 colspan=1>-63.7089</td><td rowspan=1 colspan=1>-71.0714</td><td rowspan=1 colspan=1>-100.6304</td><td rowspan=1 colspan=1>-108.8917</td><td rowspan=1 colspan=1>-118.5668</td></tr><tr><td rowspan=1 colspan=1>Att-MADDPG</td><td rowspan=1 colspan=1>-62.9416</td><td rowspan=1 colspan=1>-71.3339</td><td rowspan=1 colspan=1>-95.0522</td><td rowspan=1 colspan=1>-99.1207</td><td rowspan=1 colspan=1>-111.0656</td></tr><tr><td rowspan=1 colspan=1>Vanilla-PC</td><td rowspan=1 colspan=1>-5.7086</td><td rowspan=1 colspan=1>-7.8011</td><td rowspan=1 colspan=1>-31.9936</td><td rowspan=1 colspan=1>-49.5186</td><td rowspan=1 colspan=1>-70.1981</td></tr><tr><td rowspan=1 colspan=1>EPC</td><td rowspan=1 colspan=1>9.2135</td><td rowspan=1 colspan=1>10.5892</td><td rowspan=1 colspan=1>-6.9846</td><td rowspan=1 colspan=1>-27.3475</td><td rowspan=1 colspan=1>-44.1031</td></tr></table>
403
+
404
+ Here we show the rewards of team 1 in Adversarial Battle with scale 16-16. For agents trained by each approach, we compare them as team 1 against all different methods as team 2. When EPC agents as team 1, no matter which opponent is, they always get the highest rewards as in the last row. When other methods compete against EPC, the obtained rewards are always the lowest as in the rightmost column.
405
+
406
+ <table><tr><td rowspan=1 colspan=1>comparedreported</td><td rowspan=1 colspan=1>MADDPG</td><td rowspan=1 colspan=1>mean-field</td><td rowspan=1 colspan=1>Att-MADDPG</td><td rowspan=1 colspan=1>Vanilla-PC</td><td rowspan=1 colspan=1>EPC</td></tr><tr><td rowspan=1 colspan=1>MADDPG</td><td rowspan=1 colspan=1>61.4555</td><td rowspan=1 colspan=1>17.1591</td><td rowspan=1 colspan=1>2.8033</td><td rowspan=1 colspan=1>-29.9242</td><td rowspan=1 colspan=1>-46.6398</td></tr><tr><td rowspan=1 colspan=1>mean-field</td><td rowspan=1 colspan=1>104.41315</td><td rowspan=1 colspan=1>59.01315</td><td rowspan=1 colspan=1>27.9004</td><td rowspan=1 colspan=1>11.1891</td><td rowspan=1 colspan=1>-35.5978</td></tr><tr><td rowspan=1 colspan=1>Att-MADDPG</td><td rowspan=1 colspan=1>146.9829</td><td rowspan=1 colspan=1>117.3804</td><td rowspan=1 colspan=1>81.702</td><td rowspan=1 colspan=1>18.57425</td><td rowspan=1 colspan=1>28.8336</td></tr><tr><td rowspan=1 colspan=1>Vanilla-PC</td><td rowspan=1 colspan=1>202.9163</td><td rowspan=1 colspan=1>155.2805</td><td rowspan=1 colspan=1>174.91965</td><td rowspan=1 colspan=1>123.7212</td><td rowspan=1 colspan=1>109.4406</td></tr><tr><td rowspan=1 colspan=1>EPC</td><td rowspan=1 colspan=1>339.63255</td><td rowspan=1 colspan=1>318.3223</td><td rowspan=1 colspan=1>256.8464</td><td rowspan=1 colspan=1>198.3621</td><td rowspan=1 colspan=1>189.69775</td></tr></table>
407
+
408
+ # D.4 VARIANCE OF PERFORMANCE EVALUATIONS
409
+
410
+ We present the performance of all approaches in all three games with the largest scale. We train all the approaches with 3 different seeds and show the normalized scores with variance as following. We can see that EPC not only gives better results but also much smaller variance.
411
+
412
+ E ADDITIONAL EXPERIMENTS ON THE ORIGINAL PREDATOR-PREY GAME Grassland is adapted from the Predator-prey game introduced by the original MADDPG paper (Lowe et al., 2017). To further validate our empirical results, we additionally study the performances of different algorithms on the unmodified Predator-prey game as follows.
413
+
414
+ ![](images/e0d570ad33e4661bc0897105082828623035242e35e446afc2e07eff4b7d26c9.jpg)
415
+ (a) Normalized scores with variances in Grassland in scale 24-16
416
+
417
+ ![](images/5636794dc9508a62df3bdc91c579a2bd12b03d89f153f9458ba4899e112580e0.jpg)
418
+ (b) Normalized scores with variances in Adversarial battle in scale 16-16
419
+
420
+ ![](images/6e5045416ab4949e110acc38daa49e0ea899f2e5e133e823194214af5c1c67e3.jpg)
421
+ (c) Normalized scores with variances in Food Collection with 24 agents
422
+
423
+ We first report the normalized score in Fig. 13 by comparing all the methods against EPC. EPC is consistently better than all methods in all the scales.
424
+
425
+ ![](images/9da201823fa2e419fb4a5093d6efce0dd5da78e7e7bcb0cceceefa37b0d18294.jpg)
426
+ Figure 13: Normalized scores in the original Predator-prey game
427
+
428
+ Besides, we also report the raw reward numbers when competing against EPC. Since the Predator-prey game is a zero-sum game, we simply report the predator rewards (the prey reward is exactly the negative value).
429
+
430
+ <table><tr><td rowspan=1 colspan=1>scale</td><td rowspan=1 colspan=1>MADDPG</td><td rowspan=1 colspan=1>mean field</td><td rowspan=1 colspan=1>Att-MADDPG</td><td rowspan=1 colspan=1>vanilla-PC</td><td rowspan=1 colspan=1>EPC</td></tr><tr><td rowspan=1 colspan=1>3-2</td><td rowspan=1 colspan=1>10.405</td><td rowspan=1 colspan=1>7.39</td><td rowspan=1 colspan=1>8.675</td><td rowspan=1 colspan=1>8.675</td><td rowspan=1 colspan=1>12.662</td></tr><tr><td rowspan=1 colspan=1>6-4</td><td rowspan=1 colspan=1>31.458</td><td rowspan=1 colspan=1>25.529</td><td rowspan=1 colspan=1>31.747</td><td rowspan=1 colspan=1>45.155</td><td rowspan=1 colspan=1>54.546</td></tr><tr><td rowspan=1 colspan=1>12-8</td><td rowspan=1 colspan=1>74.939</td><td rowspan=1 colspan=1>64.377</td><td rowspan=1 colspan=1>133.261</td><td rowspan=1 colspan=1>200.638</td><td rowspan=1 colspan=1>214.328</td></tr></table>
431
+
432
+ Furthermore, we also demonstrate the results of full pairwise competition between every two methods for scale 12-8 below. Consistently, we can see that EPC predators always have the highest scores as in the last row. When competing against EPC prey, the lowest rewards are observed.
433
+
434
+ <table><tr><td rowspan=1 colspan=1>preypredator</td><td rowspan=1 colspan=1>MADDPG</td><td rowspan=1 colspan=1>mean-field</td><td rowspan=1 colspan=1>Att-MADDPG</td><td rowspan=1 colspan=1>Vanilla-PC</td><td rowspan=1 colspan=1>EPC</td></tr><tr><td rowspan=1 colspan=1>MADDPG</td><td rowspan=1 colspan=1>229.887</td><td rowspan=1 colspan=1>249.4</td><td rowspan=1 colspan=1>247.423</td><td rowspan=1 colspan=1>122.878</td><td rowspan=1 colspan=1>74.939</td></tr><tr><td rowspan=1 colspan=1>mean-field</td><td rowspan=1 colspan=1>207.022</td><td rowspan=1 colspan=1>210.838</td><td rowspan=1 colspan=1>228.469</td><td rowspan=1 colspan=1>107.811</td><td rowspan=1 colspan=1>64.377</td></tr><tr><td rowspan=1 colspan=1>Att-MADDPG</td><td rowspan=1 colspan=1>569.862</td><td rowspan=1 colspan=1>532.611</td><td rowspan=1 colspan=1>373.979</td><td rowspan=1 colspan=1>204.743</td><td rowspan=1 colspan=1>133.261</td></tr><tr><td rowspan=1 colspan=1>Vanilla-PC</td><td rowspan=1 colspan=1>758.293</td><td rowspan=1 colspan=1>737.067</td><td rowspan=1 colspan=1>521.486</td><td rowspan=1 colspan=1>303.86</td><td rowspan=1 colspan=1>200.638</td></tr><tr><td rowspan=1 colspan=1>EPC</td><td rowspan=1 colspan=1>827.298</td><td rowspan=1 colspan=1>764.417</td><td rowspan=1 colspan=1>519.319</td><td rowspan=1 colspan=1>299.505</td><td rowspan=1 colspan=1>214.328</td></tr></table>
parse/train/SJxbHkrKDH/SJxbHkrKDH_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJxbHkrKDH/SJxbHkrKDH_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJxbHkrKDH/SJxbHkrKDH_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJzRZ-WCZ/SJzRZ-WCZ.md ADDED
@@ -0,0 +1,439 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LATENT SPACE ODDITY: ON THE CURVATURE OF DEEP GENERATIVE MODELS
2
+
3
+ Georgios Arvanitidis, Lars Kai Hansen, Søren Hauberg Technical University of Denmark, Section for Cognitive Systems {gear,lkai,sohau}@dtu.dk
4
+
5
+ # ABSTRACT
6
+
7
+ Deep generative models provide a systematic way to learn nonlinear data distributions through a set of latent variables and a nonlinear “generator” function that maps latent points into the input space. The nonlinearity of the generator implies that the latent space gives a distorted view of the input space. Under mild conditions, we show that this distortion can be characterized by a stochastic Riemannian metric, and we demonstrate that distances and interpolants are significantly improved under this metric. This in turn improves probability distributions, sampling algorithms and clustering in the latent space. Our geometric analysis further reveals that current generators provide poor variance estimates and we propose a new generator architecture with vastly improved variance estimates. Results are demonstrated on convolutional and fully connected variational autoencoders, but the formalism easily generalizes to other deep generative models.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Deep generative models (Goodfellow et al., 2014; Kingma & Welling, 2014; Rezende et al., 2014) model the data distribution of observations $\mathbf { x } \in \mathcal { X }$ through corresponding latent variables $\mathbf { z } \in { \mathcal { Z } }$ and a stochastic generator function $f : { \mathcal { Z } } \to { \mathcal { X } }$ as
12
+
13
+ $$
14
+ \mathbf { x } = f ( \mathbf { z } ) .
15
+ $$
16
+
17
+ Using reasonably low-dimensional latent variables and highly flexible generator functions allows these models to efficiently represent a useful distribution over the underlying data manifold. These approaches have recently attracted a lot of attention, as deep neural networks are suitable generators which lead to the impressive performance of current variational autoencoders (VAEs) (Kingma & Welling, 2014) and generative adversarial networks (GANs) (Goodfellow et al., 2014).
18
+
19
+ Consider the left panel of Fig. 1, which shows the latent representations of digits 0 and 1 from MNIST under a VAE. Three latent points are highlighted: one point (A) far away from the class boundary, and two points (B, C) near the boundary, but on opposite sides. Points B and C near the boundary seem to be very close to each other, while the third is far away from the others. Intuitively, we would hope that points from the same class (A and B) are closer to each other than to members of other classes (C), but this is seemingly not the case. In this paper, we argue this seemed conclusion is incorrect and only due to a misinterpretation of the latent space — in fact points $A$ and $B$ are closer to each other than to $c$ in the latent representation. Correcting this misinterpretation not only improves our understanding of generative models, but also improves interpolations, clusterings, latent probability distributions, sampling algorithms, interpretability and more.
20
+
21
+ In general, latent space distances lack physical units (making them difficult to interpret) and are sensitive to specifics of the underlying neural nets. It is therefore more robust to consider infinitesimal distances along the data manifold in the input space. Let $\mathbf { z }$ be a latent point and let $\Delta \mathbf { z } _ { 1 }$ and $\Delta { \bf z } _ { 2 }$ be infinitesimals, then we can compute the squared distance
22
+
23
+ $$
24
+ \left\| f ( \mathbf { z } + \Delta \mathbf { z } _ { 1 } ) - f ( \mathbf { z } + \Delta \mathbf { z } _ { 2 } ) \right\| _ { 2 } ^ { 2 } = ( \Delta \mathbf { z } _ { 1 } - \Delta \mathbf { z } _ { 2 } ) ^ { \mathsf { T } } \left( \mathbf { J } _ { \mathbf { z } } ^ { \mathsf { T } } \mathbf { J } _ { \mathbf { z } } \right) ( \Delta \mathbf { z } _ { 1 } - \Delta \mathbf { z } _ { 2 } ) , \quad \mathbf { J } _ { \mathbf { z } } = \frac { \partial f } { \partial \mathbf { z } } \bigg | _ { \mathbf { z } = \mathbf { z } } ,
25
+ $$
26
+
27
+ using Taylor’s Theorem. This implies that the natural distance function in $\mathcal { Z }$ changes locally as it is governed by the local Jacobian. Mathematically, the latent space should not then be seen as a linear Euclidean space, but rather as a curved space. The right panel of Fig. 1 provides an example of the implications of this curvature. The figure shows synthetic data from two classes, and the corresponding latent representation of the data. The background color of the latent space corresponds to $\mathrm { \sqrt { d e t } } ( \mathbf { J _ { z } ^ { \mathsf { T } } } \mathbf { J _ { z } } )$ , which can be seen as a measure of the local distortion of the latent space. We interpolate two points from the same class by walking along the connecting straight line (red); in the right panel, we show points along this straight line which have been mapped by the generator to the input space. Since the generator defines a surface in the input space, we can alternatively seek the shortest curve along this surface that connects the two points; this is perhaps the most natural choice of interpolant. We show this shortest curve in green. From the center panel it is evident that the natural interpolant is rather different from the straight line. This is due to the distortion of the latent space, which is the topic of the present paper.
28
+
29
+ ![](images/4f6ab73930c0c558bca7cac815f1ab4cf01c5f356a658bc9c3f933e9ccea2d5e.jpg)
30
+ Figure 1: Left: An example of how latent space distances do not reflect actual data distances. Right: Shortest paths on the surface spanned by the generator do not correspond to straight lines in the latent space, as is assumed by the Euclidean metric.
31
+
32
+ Outline. In Sec. 2 we briefly present the VAE as a representative instance of generative models. In Sec. 3 we connect generative models with their underlying geometry, and in Sec. 4 we argue that a stochastic Riemannian metric is naturally induced in the latent space by the generator. This metric enables us to compute length-minimizing curves and corresponding distances. This analysis, however, reveals that the traditional variance approximations in VAEs are rather poor and misleading; we propose a solution in Sec. 4.1. In Sec. 5 we demonstrate how the resulting view of the latent space improves latent interpolations, gives rise to more meaningful latent distributions, clusterings and more. We discuss related work in Sec. 6 and conclude the paper with an outlook in Sec. 7.
33
+
34
+ # 2 THE VARIATIONAL AUTOENCODERS ACTING AS THE GENERATOR
35
+
36
+ The variational autoencoder (VAE) proposed by Kingma & Welling (2014) is a simple yet powerful generative model which consists of two parts: (1) an inference network or recognition network (encoder) learns the latent representation (codes) of the data in the input space $\chi = \mathbb { R } ^ { D }$ ; and (2) the generator (decoder) learns how to reconstruct the data from these latent space codes in $\mathcal { Z } = \mathbb { R } ^ { d }$ .
37
+
38
+ Formally, a prior distribution is defined for the latent representations $p ( \mathbf { z } ) = \mathcal { N } ( \mathbf { 0 } , \mathbb { I } _ { d } )$ , and there exists a mapping function $\mu _ { \theta } : \mathcal { Z } \to \mathcal { X }$ that generates a surface in $\mathcal { X }$ . Moreover, we assume that another function $\sigma _ { \theta } : \mathcal { Z } \to \mathbb { R } _ { + } ^ { D }$ captures the error (or uncertainty) between the actual data observation $\mathbf { x } \in \mathcal { X }$ and its reconstruction as $\mathbf { x } = \pmb { \mu } _ { \boldsymbol { \theta } } ( \mathbf { z } ) + \pmb { \sigma } _ { \boldsymbol { \theta } } \odot \pmb { \epsilon } ,$ , where $\epsilon \sim \mathcal { N } ( \mathbf { 0 } , \mathbb { I } _ { D } )$ and $\odot$ is the Hadamard (element-wise) product. Then the likelihood is naturally defined as $p _ { \boldsymbol { \theta } } ( \mathbf { x } \mid \mathbf { z } ) =$ $\mathcal { N } ( \mathbf { x } \mid \pmb { \mu } _ { \boldsymbol { \theta } } ( \mathbf { z } ) , \mathbb { I } _ { D } \pmb { \sigma } _ { \boldsymbol { \theta } } ^ { 2 } ( \mathbf { z } ) )$ . The flexible functions $\mu _ { \theta }$ and $\pmb { \sigma } \theta$ are usually deep neural networks with parameters $\theta$ .
39
+
40
+ However, the corresponding posterior distribution $p _ { \theta } ( \mathbf { z } \mid \mathbf { x } )$ is unknown, as the marginal likelihood $p ( \mathbf { x } )$ is intractable. Hence, the posterior is approximated using a variational distribution $q _ { \phi } ( \mathbf { z } \mid \mathbf { x } ) =$ $\mathcal { N } ( \mathbf { z } \mid \pmb { \mu } _ { \phi } ( \mathbf { x } ) , \ \mathbb { I } _ { d } \pmb { \sigma } _ { \phi } ^ { 2 } ( \mathbf { x } ) )$ , where the functions $\mu _ { \phi } : \mathcal { X } \to \mathcal { Z }$ and $\pmb { \sigma } _ { \phi } : \mathcal { X } \mathbb { R } _ { + } ^ { d }$ are again deep neural networks with parameters $\phi$ . Since the generator (decoder) is a composition of linear maps and activation functions, its smoothness is based solely on the chosen activation functions.
41
+
42
+ The optimal parameters $\theta$ and $\phi$ are found by maximizing the evidence lower bound (ELBO) of the marginal likelihood $p ( \mathbf { x } )$ as
43
+
44
+ $$
45
+ \{ \theta ^ { * } , \phi ^ { * } \} = \underset { \theta , \phi } { \mathrm { a r g m a x } } \mathbb { E } _ { q _ { \phi } ( \mathbf { z } | \mathbf { x } ) } [ \log ( p _ { \theta } ( \mathbf { x } | \mathbf { z } ) ) ] - \mathrm { K L } ( q _ { \phi } ( \mathbf { z } | \mathbf { x } ) | | p ( \mathbf { z } ) ) ,
46
+ $$
47
+
48
+ where the bound follows from Jensen’s inequality. The optimization is based on variations of gradient descent using the reparametrization trick (Kingma $\&$ Welling, 2014; Rezende et al., 2014). Further improvements have been proposed that provide more flexible posterior approximations (Rezende & Mohamed, 2015; Kingma et al., 2016) or tighter lower bound (Burda et al., 2016). In this paper, we consider the standard VAE for simplicity. The optimization problem in Eq. 3 is difficult since poor reconstructions by $\mu _ { \theta }$ can be explained by increasing the corresponding variance $\sigma _ { \theta } ^ { 2 }$ . A common trick, which we also follow, is to optimize $\mu _ { \theta }$ while keeping $\sigma _ { \theta } ^ { 2 }$ constant, and then finally optimize for the variance $\sigma _ { \theta } ^ { 2 }$ .
49
+
50
+ # 3 SURFACES AS THE FOUNDATION OF GENERATIVE MODELS
51
+
52
+ Mathematically, a deterministic generative model ${ \bf x } = f ( { \bf z } )$ can be seen as a surface model (Gauss, 1827) if the generator $f$ is sufficiently smooth. Here, we briefly review the basic concepts on surfaces, as they form the mathematical foundation of this work.
53
+
54
+ Intuitively, a surface is a smoothly-connected set of points embedded in $\mathcal { X }$ . When we want to make computations on a surface, it is often convenient to parametrize the surface by a low-dimensional (latent) variable $\mathbf { z }$ along with an appropriate function $f : { \mathcal { Z } } \to$ $\mathcal { X }$ . We let $d = \dim ( { \mathcal { Z } } )$ denote the intrinsic dimensionality of the surface, while $D \ = \ \dim ( { \mathcal { X } } )$ is the dimensionality of the input space. If we consider a smooth (latent) curve $\gamma _ { t } ^ { - } : [ \bar { 0 } , 1 ] \ \to \ \mathcal { Z }$ , then it has length $\begin{array} { r } { \int _ { 0 } ^ { 1 } \| \dot { \gamma } _ { t } \| \mathrm { d } t } \end{array}$ , where $\dot { \gamma } _ { t } = \mathrm { d } \gamma _ { t } / \mathrm { d } t$ denotes the velocity of the curve. In practice, the low-dimensional parametrization $\mathcal { Z }$ often lacks a principled meaningful metric, so we measure lengths in input space by mapping the curve through $f$ ,
55
+
56
+ ![](images/afdcd561f0b146263dabebec35098f3e72223fbc41c96c86ec27fc4a512e1cf6.jpg)
57
+ Figure 2: The Jacobian $\mathbf { J }$ of a nonlinear function $f$ provides a local basis in the input space, while $\sqrt { \operatorname* { d e t } ( \mathbf { J } \boldsymbol { \tau } \mathbf { J } ) }$ measures the volume of an infinitesimal region.
58
+
59
+ $$
60
+ \operatorname { L e n g t h } [ f ( \gamma _ { t } ) ] = \int _ { 0 } ^ { 1 } \left\| { \dot { f } } ( \gamma _ { t } ) \right\| _ { 2 } \mathrm { d } t = \int _ { 0 } ^ { 1 } \left\| \mathbf { J } _ { \gamma _ { t } } { \dot { \gamma } } _ { t } \right\| _ { 2 } \mathrm { d } t , \qquad \mathbf { J } _ { \gamma _ { t } } = \frac { \partial f } { \partial \mathbf { z } } \bigg | _ { \mathbf { z } = \gamma _ { t } }
61
+ $$
62
+
63
+ where the last step follows from the chain rule. This implies that the length of a curve $\gamma _ { t }$ along the surface can be computed directly in the latent space using the (locally defined) norm
64
+
65
+ $$
66
+ \| \mathbf { J } _ { \gamma } \dot { \gamma } \| _ { 2 } = \sqrt { ( \mathbf { J } _ { \gamma } \dot { \gamma } ) ^ { \intercal } ( \mathbf { J } _ { \gamma } \dot { \gamma } ) } = \sqrt { \dot { \gamma } ^ { \intercal } ( \mathbf { J } _ { \gamma } ^ { \intercal } \mathbf { J } _ { \gamma } ) \dot { \gamma } } = \sqrt { \dot { \gamma } ^ { \intercal } \mathbf { M } _ { \gamma } \dot { \gamma } } .
67
+ $$
68
+
69
+ Here, ${ \bf M } _ { \gamma } = { \bf J } _ { \gamma } ^ { \top } { \bf J } _ { \gamma }$ is a symmetric positive definite matrix, which acts akin to a local Mahalanobis distance measure. This gives rise to the definition of a Riemannian metric, which represents a smoothly changing inner product structure.
70
+
71
+ Definition 1. A Riemannian metric $\mathbf { M } : \mathcal { Z } \mathbb { R } ^ { d \times d }$ is a smooth function that assigns a symmetric positive definite matrix to any point in $\mathcal { Z }$ .
72
+
73
+ It should be clear that if the generator function $f$ is sufficiently smooth, then ${ { \bf { M } } _ { \gamma } }$ in Eq. 5 is a Riemannian metric.
74
+
75
+ When defining distances across a given surface, it is meaningful to seek the shortest curve connecting two points. Then a distance can be defined as the length of this curve. The shortest curve connecting points $\mathbf { z } _ { 0 }$ and $\mathbf { z } _ { 1 }$ is by (trivial) definition
76
+
77
+ $$
78
+ \boldsymbol \gamma _ { t } ^ { ( \mathrm { s h o r t e s t } ) } = \underset { \boldsymbol \gamma _ { t } } { \mathrm { a r g m i n L e n g t h } } [ f ( \boldsymbol \gamma _ { t } ) ] , \qquad \boldsymbol \gamma _ { 0 } = \mathbf z _ { 0 } , \boldsymbol \gamma _ { 1 } = \mathbf z _ { 1 } .
79
+ $$
80
+
81
+ A classic result of differential geometry (do Carmo, 1992) is that solutions to this optimization problem satisfy the following system of ordinary differential equations (ODEs)
82
+
83
+ $$
84
+ \ddot { \gamma } _ { t } = - \frac { 1 } { 2 } \mathbf { M } _ { \gamma _ { t } } ^ { - 1 } \left[ 2 \big ( \mathbb { I } _ { d } \otimes \dot { \gamma } _ { t } ^ { \intercal } \big ) \frac { \partial \mathrm { v e c } \big [ \mathbf { M } _ { \gamma _ { t } } \big ] } { \partial \gamma _ { t } } \dot { \gamma } _ { t } - \frac { \partial \mathrm { v e c } \big [ \mathbf { M } _ { \gamma _ { t } } \big ] ^ { \intercal } } { \partial \gamma _ { t } } ( \dot { \gamma } _ { t } \otimes \dot { \gamma } _ { t } ) \right] ,
85
+ $$
86
+
87
+ where vec[·] stacks the columns of a matrix into a vector and $\otimes$ is the Kronecker product. For completeness, we provide a derivation of this result in Appendix A. Shortest curves can then be computed by solving the ODEs numerically; our implementation uses $_ { \mathrm { b v p } 5 \mathrm { c } }$ from Matlab.
88
+
89
+ # 4 THE GEOMETRY OF STOCHASTIC GENERATORS
90
+
91
+ In the previous section, we considered deterministic generators $f$ to provide relevant background information. We now extend these results to the stochastic case; in particular we consider
92
+
93
+ $$
94
+ f ( \mathbf { z } ) = \pmb { \mu } ( \mathbf { z } ) + \pmb { \sigma } ( \mathbf { z } ) \odot \epsilon , \qquad \pmb { \mu } : \mathscr { Z } \pmb { \chi } , ~ \pmb { \sigma } : \mathscr { Z } \mathbb { R } _ { + } ^ { D } , ~ \epsilon \sim \mathcal { N } ( \mathbf { 0 } , \mathbb { I } _ { D } ) .
95
+ $$
96
+
97
+ This is the generator driving VAEs and related models. For our purposes, we will call $\mu ( \cdot )$ the mean function and $\sigma ^ { 2 } ( \cdot )$ the variance function.
98
+
99
+ Following the discussion from the previous section, it is natural to consider the Riemannian metric $\mathbf { M _ { z } } = \mathbf { J _ { z } ^ { \intercal } } \mathbf { J _ { z } }$ in the latent space. Since the generator is now stochastic, this metric also becomes stochastic, which complicates analysis. The following results, however, simplify matters.
100
+
101
+ Theorem 1. If the stochastic generator in Eq. 8 has mean and variance functions that are at least twice differentiable, then the expected metric equals
102
+
103
+ $$
104
+ \overline { { \mathbf { M } } } _ { \mathbf { z } } = \mathbb { E } _ { p ( \boldsymbol { \epsilon } ) } [ \mathbf { M } _ { \mathbf { z } } ] = \left( \mathbf { J } _ { \mathbf { z } } ^ { ( \boldsymbol { \mu } ) } \right) ^ { \intercal } \left( \mathbf { J } _ { \mathbf { z } } ^ { ( \boldsymbol { \mu } ) } \right) + \left( \mathbf { J } _ { \mathbf { z } } ^ { ( \boldsymbol { \sigma } ) } \right) ^ { \intercal } \left( \mathbf { J } _ { \mathbf { z } } ^ { ( \boldsymbol { \sigma } ) } \right) ,
105
+ $$
106
+
107
+ where $\mathbf { J _ { z } ^ { ( \mu ) } }$ and $\mathbf { J } _ { \mathbf { z } } ^ { ( \sigma ) }$ are the Jacobian matrices of $\mu ( \cdot )$ and $\sigma ( \cdot )$
108
+
109
+ Proof. See Appendix B.
110
+
111
+ Remark 1. By Definition $I$ , the metric tensor must change smoothly, which implies that the Jacobians must be smooth functions as well. This is easily ensured with activation functions for the neural networks that are $\mathcal { C } ^ { 2 }$ differentiable, e.g. tanh $( \cdot ) ,$ , sigmoid(·), and softplus(·).
112
+
113
+ Theorem 2 (Due to Tosi et al. (2014)). The variance of the metric under the $L _ { 2 }$ measure vanishes when the data dimension goes to infinity, i.e. $\begin{array} { r } { \operatorname* { l i m } _ { D \to \infty } \mathrm { V a r } \left( \mathbf { M } _ { \mathbf { z } } \right) = 0 } \end{array}$ .
114
+
115
+ Theorem 2 suggests that the (deterministic) expected metric $\overline { { \mathbf { M } } } _ { \mathbf { z } }$ is a good approximation to the underlying stochastic metric when the data dimension is large. We make this approximation, which allows us to apply the theory of deterministic generators.
116
+
117
+ This expected metric has a particularly appealing form, where the two terms capture the distortion of the mean and the variance functions respectively. In particular, the variance term $( \mathbf { J _ { z } ^ { ( \sigma ) } } ) ^ { \mathsf { T } } ( \mathbf { J _ { z } ^ { ( \sigma ) } } )$ will be large in regions of the latent space, where the generator has large variance. This implies that induced distances will be large in regions of the latent space where the generator is highly uncertain, such that shortest paths will tend to avoid these regions. These paths will then tend to follow the data in the latent space, c.f. Fig. 3. It is worth stressing, that no learning is needed to compute this metric: it only consists of terms that can be derived directly from the generator.
118
+
119
+ ![](images/954871399527a17cead87d658d94f6a7dfe5fa2172e6093b0a13ea64a1641026.jpg)
120
+ Figure 3: Example shortest paths and distances.
121
+
122
+ # 4.1 ENSURING PROPER GEOMETRY THROUGH MEANINGFUL VARIANCE FUNCTIONS
123
+
124
+ Theorem 1 informs us about how the geometry of the generative model depends on both the mean and the variance of the generator. Assuming successful training of the generator, we can expect to have good estimates of the geometry in regions near the data. But what happens in regions further away from the data? In general, the mean function cannot be expected to give useful extrapolations to such regions, so it is reasonable to require that the generator has high variance in regions that are not near the data. In practice, the neural net used to represent the variance function is only trained in regions where data is available, which implies that variance estimates are extrapolated to regions with no data. As neural nets tend to extrapolate poorly, practical variance estimates tend to be arbitrarily poor in regions without data.
125
+
126
+ ![](images/fa99796e62b2e36f02959898009e95b045fb0cd0c77b64f431b6792bd61c83be.jpg)
127
+ Figure 4: From left to right: training data in $\mathcal { X }$ , latent representations in $\mathcal { Z }$ , the standard deviation $\begin{array} { r } { \log ( \sum _ { j = 1 } ^ { D } \sigma _ { j } ( { \mathbf z } ) ) } \end{array}$ for the standard variance network, and the proposed solution.
128
+
129
+ Figure 4 illustrates this problem. The first two panels show the data and its corresponding latent representations (here both input and latent dimensions are 2 to ease illustration). The third panel shows the variance function under a standard architecture, deep multilayer perceptron with softplus nonlinearity for the output layer. It is evident that variance estimates in regions without data are not representative of either uncertainty or error of the generative process; sometimes variance is high, sometimes it is low. From a probabilistic modeling point-of-view, this is disheartening. An informal survey of publicly available VAE implementations also reveals that it is common to enforce a constant unit variance everywhere; this is further disheartening.
130
+
131
+ For our purposes, we need well-behaved variance functions to ensure a well-behaved geometry, but reasonable variance estimates are of general use. Here, as a general strategy, we propose to model the inverse variance with a network that extrapolates towards zero. This at least ensures that variances are large in regions without data. Specifically, we model the precision as $\begin{array} { r } { \beta _ { \psi } ( \mathbf { z } ) = \frac { 1 } { \pmb { \sigma } _ { \psi } ^ { 2 } ( \mathbf { z } ) } } \end{array}$ , where all operations are element-wise. Then, we model this precision with a radial basis function $( R B F )$ neural network (Que & Belkin, 2016). Formally this is written
132
+
133
+ $$
134
+ \begin{array} { r } { \beta _ { \psi } ( { \bf z } ) = { \bf W } { \bf v } ( { \bf z } ) + \boldsymbol { \zeta } , \quad \mathrm { w i t h } \quad v _ { k } ( { \bf z } ) = \exp \left( - \lambda _ { k } \left. { \bf z } - { \bf c } _ { k } \right. _ { 2 } ^ { 2 } \right) , k = 1 , \dots , K , } \end{array}
135
+ $$
136
+
137
+ where $\psi$ are all parameters, $\mathbf { W } \in \mathbb { R } _ { > 0 } ^ { D \times K }$ are the positive weights of the n ork (positivity ensures a positive precision), and $\lambda _ { k }$ are the centers and the bandwidth of the $K$ and $\zeta \to 0$ is a vector of positive constants to prevent division by zero. It is easy to see that with this approach the variance of the generator increases with the distance to the centers. The rightmost panel of Fig. 4 shows an estimated variance function, which indeed has the desired property that variance is large outside the data support. Further, note the increased variance between the two clusters, which captures that even interpolating between clusters comes with a level of uncertainty. In Appendix C we also demonstrate that this simple variance model improves the marginal likelihood $p ( \mathbf { x } )$ on held-out data.
138
+
139
+ Training the variance network amounts to fitting the RBF network. Assuming we have already trained the inference network (Sec. 2), we can encode the training data, and use $k$ -means to estimate the RBF centers. Then, an estimate for the bandwidths of each kernel can be computed as
140
+
141
+ $$
142
+ \lambda _ { k } = \frac { 1 } { 2 } \left( a \frac { 1 } { | \mathcal { C } _ { k } | } \sum _ { \mathbf { z } _ { j } \in \mathcal { C } _ { k } } \left\| \mathbf { z } _ { j } - \mathbf { c } _ { k } \right\| _ { 2 } \right) ^ { - 2 }
143
+ $$
144
+
145
+ where the hyper-parameter $a \in \mathbb { R } _ { + }$ controls the curvature of the Riemannian metric, i.e. how fast it changes based on the uncertainty. Since the mean function of the generator is already trained, the weights of the RBF can be found using projected gradient descent to ensure positive weights.
146
+
147
+ One visualization of the distortion of the latent space relative to the input space is the geometric volume measure $\sqrt { \operatorname* { d e t } ( \mathbf { M } _ { \mathbf { z } } ) }$ , which captures the volume of an infinitesimal area in the input space. Figure 5 shows this volume measure for both standard variance functions as well as our proposed RBF model. We see the trend of the data, unlike the standard model.
148
+
149
+ ![](images/c7075f8077cba97a8ced072d15552c951119f42cbb37ef44a5700aff838d8091.jpg)
150
+ Figure 5: Comparison of (log) measures of standard (top) and proposed (bottom) variances.
151
+
152
+ # 5 EMPIRICAL RESULTS
153
+
154
+ We demonstrate the usefulness of the geometric view of the latent space with several experiments. Model and implementation details can be found in Appendix D. In all experiments we first train a VAE and then use the induced Riemannian metric.
155
+
156
+ # 5.1 MEANINGFUL DISTANCES
157
+
158
+ First we seek to quantify if the induced Riemannian distance in the latent space is more useful than the usual Euclidean distance. For this we perform basic $k$ -means clustering under the two metrics. We construct 3 sets of MNIST digits, using 1000 random samples for each digit. We train a VAE for
159
+
160
+ <table><tr><td>Digits</td><td>Linear</td><td>Riemannian</td></tr><tr><td>{0,1,2}</td><td>77.57(±0.87)%</td><td>94.28(±1.14)%</td></tr><tr><td>{3,4,7}</td><td>77.80(±0.91)%</td><td>89.54(±1.61)%</td></tr><tr><td>{5,6,9}</td><td>64.93(±0.96)%</td><td>81.13(±2.52)%</td></tr></table>
161
+
162
+ Table 1: The $F$ -measure results for $k$ -means.
163
+
164
+ each set, and then subdivide each into 10 sub-sets, and performed $k$ -means clustering under both distances. One example result is shown in Fig. 6. Here it is evident that, since the latent points roughly follow a unit Gaussian, there is little structure to be discovered by the Euclidean $k$ -means, and consequently it performs poorly. The Riemannian clustering is remarkably accurate. Summary statistics across all subsets are provided in Table 1, which shows the established $F$ -measure for clustering accuracy. Again, the Riemannian metric significantly improves clustering. This implies that the underlying Riemannian distance is more useful than its Euclidean counterpart.
165
+
166
+ ![](images/d806b849a937f63ce95cada43c48d104ccea6c002aa6302cf87a7bb9d7b7e0eb.jpg)
167
+ Figure 6: The result of $k$ -means comparing the distance measures. For the decision boundaries we used 7-NN classification.
168
+
169
+ # 5.2 INTERPOLATIONS
170
+
171
+ Next, we investigate whether the Riemannian metric gives more meaningful interpolations. First, we train a VAE for the digits 0 and 1 from MNIST. The upper left panel of Fig. 7 shows the latent space with the Riemannian measure as background color, together with two interpolations. Images generated by both Riemannian and Euclidean interpolations are shown in the bottom of Fig. 7. The Euclidean interpolations seem to have a very abrupt change when transitioning from one class to another. The Riemannian interpolant gives smoother changes in the generated images. The topright panel of the figure shows the auto-correlation of images along the interpolants; again we see a very abrupt change in the Euclidean interpolant, while the Riemannian is significantly smoother. We also train a convolutional VAE on frames from a video. Figure 8 shows the corresponding latent space and some sample interpolations. As before, we see more smooth changes in generated images when we take the Riemannian metric into account.
172
+
173
+ # 5.3 LATENT PROBABILITY DISTRIBUTIONS
174
+
175
+ We have seen strong indications that the Riemannian metric gives a more meaningful view of the latent space, which may also improve probability distributions in the latent space. A relevant candidate distribution is the locally adaptive normal distribution (LAND) (Arvanitidis et al., 2016)
176
+
177
+ $$
178
+ \mathrm { L A N D } ( { \bf z } \mid { \pmb \mu } , { \pmb \Sigma } ) \propto \exp \left( - \frac { 1 } { 2 } \mathrm { d i s t } _ { { \pmb \Sigma } } ^ { 2 } ( { \bf z } , { \pmb \mu } ) \right) ,
179
+ $$
180
+
181
+ ![](images/7c6c7604b2beef99c6958e92dc2f972869e6161897c59d460e8cbd4c5540d244.jpg)
182
+ Figure 7: Left: the latent space with example interpolants. Right: auto-correlations of Riemannian (top) and Euclidean (bottom) samples along the curves of the left panel. Bottom: decoded images along Euclidean (top rows) and Riemannian (bottom rows) interpolants.
183
+
184
+ ![](images/1a1c6b5de149bfc16c6c0898140b356140a1b13ca85c6283cfaa6b15b9031579.jpg)
185
+ Figure 8: Left: the latent space and geodesic interpolants. Right: samples comparing Euclidean (top row) with Riemannian (bottom row) interpolation. Corresponding videos can be found here.
186
+
187
+ where $\mathrm { d i s t } _ { \Sigma }$ is the Riemannian extension of Mahalanobis distance. We fit a mixture of two LANDs to the MNIST data from Sec. 5.2 alongside a mixture of Euclidean normal distributions. The first column of Fig. 9 shows the density functions of the two mixture models. Only the Riemannian model reveals the underlying clusters. We then sample 40 points from each component of these generative models1 (center column of the figure). We see that the Riemannian model generates high-quality samples, whereas the Euclidean model generates several samples in regions where the generator is not trained and therefore produces blurry images. Finally, the right column of Fig. 9 shows all pairwise distances between the latent points under both Riemannian and Euclidean distances. Again, we see that the geometric view clearly reveals the underlying clusters.
188
+
189
+ # 5.4 RANDOM WALK ON THE DATA MANIFOLD
190
+
191
+ Finally, we consider random walks over the data manifold, which is a common tool for exploring latent spaces. To avoid the walk drifting outside the data support, practical implementations artificially restrict the walk to stay inside the $[ - 1 , 1 ] ^ { d }$ hypercube. Here, we consider unrestricted Brownian motion under both the Euclidean and Riemannian metric. We perform this random walk in the latent space of the convolutional VAE from Sec. 5.2. Figure 10 shows example walks, while Fig. 11 shows generated images (video here). While the Euclidean random walk moves freely, the Riemannian walk stays within the support of the data. This is explained in the left panel of Fig. 10, which shows that the variance term in the Riemannian metric creates a “wall” around the data, which the random walk will only rarely cross. These “walls” also force shortest paths to follow the data.
192
+
193
+ ![](images/577991ffae81ea5905686dbc7921ef66cea4290c0a2a878688a739565cdce305.jpg)
194
+ Figure 9: From left to right: the mixture models, generated samples, and pairwise distances. Top row corresponds to the Riemannian model and bottom row to the Euclidean model.
195
+
196
+ ![](images/a5f5f765ad4230246a37dbc4b51550a3462afbf7f547424e14ddfc378ba24947.jpg)
197
+ Figure 10: Left: the measure in the latent space. Right: the random walks.
198
+
199
+ ![](images/ca933ecdb20184b747d5f8fde4b873b1da41d8ad609bc99fed8eed4945dbc9fb.jpg)
200
+ Figure 11: The comparison of the random walks, at the steps 200, 300, 3000, 4000 and 5000.
201
+
202
+ # 6 RELATED WORK
203
+
204
+ Generative models. This unsupervised learning category attracted a lot of attention, especially, due to the advances on the deep neural networks. We have considered VAEs (Kingma & Welling, 2014; Rezende et al., 2014), but the ideas extend to similar related models. These include extensions that provide more flexible approximate posteriors (Rezende & Mohamed, 2015; Kingma et al., 2016). GANs (Goodfellow et al., 2014) also fall in this category, as these models have an explicit generator. While the inference network is not a necessary component in the GAN model, it has been shown that incorporating it improves overall performance (Donahue et al., 2017; Dumoulin et al., 2017). The same thoughts hold for approaches that transform the latent space through a sequence of bijective functions (Dinh et al., 2017)
205
+
206
+ Geometry in neural networks. Bengio et al. (2013) discuss the importance of geometry in neural networks as a tool to understand local generalization. For instance, the Jacobian matrix is a measure of smoothness for a function that interpolates a surface to the given data. This is exactly the implication in (Rifai et al., 2011), where the norm of the Jacobian acts as a regularizer for the deterministic autoencoder. Recently, Kumar et al. (2017) used the Jacobian to inject invariances in a classifier.
207
+
208
+ Riemannian Geometry. Like the present paper, Tosi et al. (2014) derive a suitable Riemannian metric in Gaussian process (GP) latent variable models (Lawrence, 2005), but the computational complexity of GPs causes practical concerns. Unlike works that explicitly learn a Riemannian metric (Hauberg et al., 2012; Peltonen et al., 2004), our metric is fully derived from the generator and requires no extra learning once the generator is available.
209
+
210
+ # 7 DISCUSSION AND FURTHER EXTENSIONS
211
+
212
+ The geometric interpretation of representation learning is that the latent space is a compressed and flattened version of the data manifold. We show that the actual geometry of the data manifold can be more complex than it first appears.
213
+
214
+ Here we have initiated the study of proper geometries for generative models. We showed that the latent space not only provides a low-dimensional representation of the data manifold, but at the same time, can reveal the underlying geometrical structure. We proposed a new variance network for the generator, which provides meaningful uncertainty estimates while regularizing the geometry. The new detailed understanding of the geometry provides us with more relevant distance measures, as demonstrated by the fact that a $k$ -means clustering, on these distances, is better aligned with the ground truth label structure than a clustering based on conventional Euclidean distances. We also found that the new distance measure produces smoother interpolation, and when training Riemannian “LAND” mixture models based on the new geometry, the components aligned much better with the ground truth group structure. Finally, inspired by the recent interest in sequence generation by random walks in latent space, we found that geometrically informed random walks stayed on the manifold for much longer runs than sequences based on Euclidean random walks.
215
+
216
+ The presented analysis easily extends to sophisticated generative models, where the latent space will be potentially endowed with more flexible nonlinear structures. This directly implies particularly interesting geometrical models. An obvious question is: can the geometry of the latent space play a role while we learn the generative model? Either way, we believe that this geometric perspective provides a new way of thinking and further interpreting the generative models, while at the same time it encourages development of new nonlinear models in the representation space.
217
+
218
+ # ACKNOWLEDGMENTS
219
+
220
+ LKH is supported by Innovation Fund Denmark / the Danish Center for Big Data Analytics Driven Innovation. SH was supported by a research grant (15334) from VILLUM FONDEN. This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement $\boldsymbol { \mathrm { n ^ { \circ } } }$ 757360). We gratefully acknowledge the support of the NVIDIA Corporation with the donation of the used Titan Xp GPU.
221
+
222
+ # REFERENCES
223
+
224
+ Georgios Arvanitidis, Lars Kai Hansen, and Søren Hauberg. A Locally Adaptive Normal Distribution. In Advances in Neural Information Processing Systems (NIPS), 2016.
225
+
226
+ Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation Learning: A Review and New Perspectives. IEEE Trans. Pattern Anal. Mach. Intell., 35(8):1798–1828, August 2013.
227
+
228
+ Yuri Burda, Roger B. Grosse, and Ruslan Salakhutdinov. Importance Weighted Autoencoders. In International Conference on Learning Representations (ICLR), 2016.
229
+
230
+ Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using Real NVP. In International Conference on Learning Representations (ICLR), 2017.
231
+
232
+ M.P. do Carmo. Riemannian Geometry. Mathematics (Boston, Mass.). Birkhauser, 1992. ¨
233
+
234
+ Jeff Donahue, Philipp Krhenbhl, and Trevor Darrell. Adversarial Feature Learning. In International Conference on Learning Representations (ICLR), 2017.
235
+
236
+ Vincent Dumoulin, Ishmael Belghazi, Ben Poole, Alex Lamb, Martin Arjovsky, Olivier Mastropietro, and Aaron Courville. Adversarially Learned Inference. In International Conference on Learning Representations (ICLR), 2017.
237
+
238
+ Carl Friedrich Gauss. Disquisitiones generales circa superficies curvas. Commentationes Societatis Regiae Scientiarum Gottingesis Recentiores, VI:99–146, 1827.
239
+
240
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative Adversarial Nets. In Advances in Neural Information Processing Systems (NIPS), 2014.
241
+
242
+ Søren Hauberg, Oren Freifeld, and Michael J. Black. A Geometric Take on Metric Learning. In Advances in Neural Information Processing Systems (NIPS) 25, pp. 2033–2041, 2012.
243
+
244
+ Diederik P Kingma and Max Welling. Auto-Encoding Variational Bayes. In Proceedings of the 2nd International Conference on Learning Representations (ICLR), 2014.
245
+
246
+ Diederik P Kingma, Tim Salimans, Rafal Jozefowicz, Xi Chen, Ilya Sutskever, and Max Welling. Improved Variational Inference with Inverse Autoregressive Flow. In Advances in Neural Information Processing Systems (NIPS), 2016.
247
+
248
+ Abhishek Kumar, Prasanna Sattigeri, and Tom Fletcher. Improved Semi-supervised Learning with Gans using Manifold Invariances. In Advances in Neural Information Processing Systems (NIPS). 2017.
249
+
250
+ Neil Lawrence. Probabilistic non-linear principal component analysis with Gaussian process latent variable models. Journal of machine learning research, 6(Nov):1783–1816, 2005.
251
+
252
+ Jaakko. Peltonen, Arto Klami, and Samuel Kaski. Improved learning of riemannian metrics for exploratory analysis. Neural Networks, 17(8):1087–1100, 2004.
253
+
254
+ Qichao Que and Mikhail Belkin. Back to the future: Radial basis function networks revisited. In Artificial Intelligence and Statistics (AISTATS), 2016.
255
+
256
+ Danilo Rezende and Shakir Mohamed. Variational Inference with Normalizing Flows. In Proceedings of the 32nd International Conference on Machine Learning (ICML), 2015.
257
+
258
+ Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic Backpropagation and Approximate Inference in Deep Generative Models. In Proceedings of the 31st International Conference on Machine Learning (ICML), 2014.
259
+
260
+ Salah Rifai, Pascal Vincent, Xavier Muller, Xavier Glorot, and Yoshua Bengio. Contractive AutoEncoders: Explicit Invariance During Feature Extraction. In Proceedings of the 28th International Conference on Machine Learning (ICML), 2011.
261
+
262
+ Alessandra Tosi, Søren Hauberg, Alfredo Vellido, and Neil D. Lawrence. Metrics for Probabilistic Geometries. In The Conference on Uncertainty in Artificial Intelligence (UAI), July 2014.
263
+
264
+ # A THE DERIVATION OF THE GEODESIC DIFFERENTIAL EQUATION
265
+
266
+ The shortest path between two points $\mathbf { x } , \mathbf { y } \in \mathcal { M }$ on a Riemannian manifold $\mathcal { M }$ is found by optimizing the functional
267
+
268
+ $$
269
+ \gamma _ { t } ^ { ( \mathrm { s h o r t e s t } ) } = \underset { \gamma _ { t } } { \arg \operatorname* { m i n } } \int _ { 0 } ^ { 1 } \sqrt { \langle \dot { \gamma } _ { t } , \mathbf { M } _ { \gamma _ { t } } \dot { \gamma } _ { t } \rangle } \mathrm { d } t , \quad \gamma ( 0 ) = \mathbf { x } , \gamma ( 1 ) = \mathbf { y }
270
+ $$
271
+
272
+ where $\gamma _ { t } : [ 0 , 1 ] \to \mathcal { M }$ and $\begin{array} { r } { \dot { \gamma } _ { t } ~ = ~ \frac { \partial \gamma _ { t } } { \partial t } } \end{array}$ ∂γt∂t . The minima of this problem can be found instead by optimizing the curve energy (do Carmo, 1992), so the functional becomes
273
+
274
+ $$
275
+ \gamma _ { t } ^ { ( \mathrm { s h o r t e s t } ) } = \underset { \gamma _ { t } } { \operatorname { a r g m i n } } \int _ { 0 } ^ { 1 } \langle \dot { \gamma } _ { t } , \mathbf { M } _ { \gamma _ { t } } \dot { \gamma } _ { t } \rangle \mathrm { d } t , \quad \gamma ( 0 ) = \mathbf { x } , \gamma ( 1 ) = \mathbf { y } .
276
+ $$
277
+
278
+ The inner product can be written explicitly as
279
+
280
+ $$
281
+ L ( \gamma _ { t } , \dot { \gamma } _ { t } , \mathbf { M } _ { \gamma _ { t } } ) = \langle \dot { \gamma } _ { t } , \mathbf { M } _ { \gamma _ { t } } \dot { \gamma } _ { t } \rangle = \sum _ { i = 1 } ^ { d } \sum _ { j = 1 } ^ { d } \dot { \gamma } _ { t } ^ { ( i ) } \cdot \dot { \gamma } _ { t } ^ { ( j ) } \cdot M _ { \gamma _ { t } } ^ { ( i j ) } = ( \dot { \gamma } _ { t } \otimes \dot { \gamma } _ { t } ) ^ { \top } \mathrm { v e c } [ \mathbf { M } _ { \gamma _ { t } } ]
282
+ $$
283
+
284
+ where the index in the parenthesis represents the corresponding element in the vector or matrix. In the derivation the $\otimes$ is the usual Kronecker product and the $\mathrm { v e c } [ \cdot ]$ stacks the column of a matrix into a vector. We find the minimizers by the Euler-Lagrange equation
285
+
286
+ $$
287
+ { \frac { \partial L } { \partial \gamma _ { t } } } = { \frac { \partial } { \partial t } } { \frac { \partial L } { \partial { \dot { \gamma } } _ { t } } }
288
+ $$
289
+
290
+ where
291
+
292
+ $$
293
+ \frac { \partial } { \partial t } \frac { \partial L } { \partial \dot { \gamma } _ { t } } = \frac { \partial } { \partial t } \frac { \partial \langle \dot { \gamma } _ { t } , \mathbf { M } _ { \gamma _ { t } } \dot { \gamma } _ { t } \rangle } { \partial \dot { \gamma } _ { t } } = \frac { \partial } { \partial t } \left( 2 \cdot \mathbf { M } _ { \gamma _ { t } } \dot { \gamma } _ { t } \right) = 2 \left[ \frac { \partial \mathbf { M } _ { \gamma _ { t } } } { \partial t } \dot { \gamma } _ { t } + \mathbf { M } _ { \gamma _ { t } } \ddot { \gamma } _ { t } \right] .
294
+ $$
295
+
296
+ Since the term
297
+
298
+ $$
299
+ \frac { \partial \mathbf { M } _ { \gamma _ { t } } } { \partial t } = \left[ \begin{array} { c c c } { \frac { \partial M _ { \gamma _ { t } } ^ { ( 1 1 ) } } { \partial t } } & { \ldots } & { \frac { \partial M _ { \gamma _ { t } } ^ { ( 1 D ) } } { \partial t } } \\ { \frac { \partial M _ { \gamma _ { t } } ^ { ( 2 1 ) } } { \partial t } } & { \ldots } & { \frac { \partial M _ { \gamma _ { t } } ^ { ( 2 D ) } } { \partial t } } \\ { \vdots } & { \ddots } & { \vdots } \\ { \frac { \partial M _ { \gamma } ^ { ( D 1 ) } } { \partial t } } & { \ldots } & { \frac { \partial M _ { \gamma _ { t } } ^ { ( D D ) } } { \partial t } } \end{array} \right] = \left[ \begin{array} { c c c c } { \frac { \partial M _ { \gamma _ { t } } ^ { ( 1 1 ) } \mathsf { T } } { \partial \gamma _ { t } } \dot { \gamma } _ { t } } & { \ldots } & { \frac { \partial M _ { \gamma _ { t } } ^ { ( 1 D ) } } { \partial \gamma _ { t } } \dot { \gamma } _ { t } } \\ { \frac { \partial M _ { \gamma _ { t } } ^ { ( 2 1 ) } \mathsf { T } } { \partial \gamma _ { t } } \dot { \gamma } _ { t } } & { \ldots } & { \frac { \partial M _ { \gamma } ^ { ( 2 D ) } } { \partial \gamma _ { t } } \dot { \gamma } _ { t } } \\ { \vdots } & { \ddots } & { \vdots } \\ { \frac { \partial M _ { \gamma _ { t } } ^ { ( D 1 ) } \mathsf { T } } { \partial \gamma _ { t } } \dot { \gamma } _ { t } } & { \ldots } & { \frac { \partial M _ { \gamma _ { t } } ^ { ( D D ) } } { \partial \gamma _ { t } } \dot { \gamma } _ { t } } \end{array} \right]
300
+ $$
301
+
302
+ we can write the right hand side of the Eq. 16 as
303
+
304
+ $$
305
+ \frac { \partial } { \partial t } \frac { \partial L } { \partial \dot { \gamma } _ { t } } = 2 \left[ ( \mathbb { I } _ { d } \otimes \dot { \gamma } _ { t } ^ { \mathsf { T } } ) \frac { \partial \mathrm { v e c } \left[ \mathbf { M } _ { \gamma _ { t } } \right] } { \partial \gamma _ { t } } \dot { \gamma } _ { t } + \mathbf { M } _ { \gamma _ { t } } \ddot { \gamma } _ { t } \right] .
306
+ $$
307
+
308
+ The left hand side term of the Eq. 16 is equal to
309
+
310
+ $$
311
+ \frac { \partial L } { \partial \gamma _ { t } } = \frac { \partial } { \partial \gamma _ { t } } \left( ( \dot { \gamma } _ { t } \otimes \dot { \gamma } _ { t } ) ^ { \top } \mathrm { v e c } \big [ \mathbf { M } _ { \gamma _ { t } } \big ] \right) = ( \dot { \gamma } _ { t } \otimes \dot { \gamma } _ { t } ) ^ { \top } \frac { \partial \mathrm { v e c } \big [ \mathbf { M } _ { \gamma _ { t } } \big ] } { \partial \gamma _ { t } } .
312
+ $$
313
+
314
+ The final system of $2 ^ { \mathrm { n d } }$ order ordinary differential equations is
315
+
316
+ $$
317
+ \ddot { \gamma } _ { t } = - \frac { 1 } { 2 } \mathbf { M } _ { \gamma _ { t } } ^ { - 1 } \left[ 2 \cdot ( \mathbb { I } _ { d } \otimes \dot { \gamma } _ { t } ^ { \intercal } ) \frac { \partial \mathrm { v e c } \big [ \mathbf { M } _ { \gamma _ { t } } \big ] } { \partial \gamma _ { t } } \dot { \gamma } _ { t } - \frac { \partial \mathrm { v e c } \big [ \mathbf { M } _ { \gamma _ { t } } \big ] ^ { \intercal } } { \partial \gamma _ { t } } ( \dot { \gamma } _ { t } \otimes \dot { \gamma } _ { t } ) \right] .
318
+ $$
319
+
320
+ B THE DERIVATION OF THE RIEMANNIAN METRIC
321
+
322
+ The proof of Theorem 1.
323
+
324
+ Proof. As we introduced in Eq. 8 the stochastic generator is
325
+
326
+ $$
327
+ f ( \mathbf { z } ) = \pmb { \mu } ( \mathbf { z } ) + \pmb { \sigma } ( \mathbf { z } ) \odot \epsilon , \qquad \pmb { \mu } : \mathscr { Z } \pmb { \chi } , ~ \pmb { \sigma } : \mathscr { Z } \mathbb { R } _ { + } ^ { D } , ~ \epsilon \sim \mathcal { N } ( \mathbf { 0 } , \mathbb { I } _ { D } ) .
328
+ $$
329
+
330
+ Thus, we can compute the corresponding Jacobian as follows
331
+
332
+ $$
333
+ \begin{array} { c } { { \displaystyle \frac { \partial f ( { \bf z } ) } { \partial { \bf z } } = { \bf J } _ { \bf z } = [ \begin{array} { c c c } { { \displaystyle \frac { \partial f _ { { \bf z } } ^ { ( 1 ) } } { \partial z _ { { \bf z } } ^ { 2 } } } } & { { \displaystyle \frac { \partial f _ { { \bf z } } ^ { ( 1 ) } } { \partial z _ { { \bf z } } ^ { 2 } } } } & { { \bf \cdots } } & { { \displaystyle \frac { \partial f _ { { \bf z } } ^ { ( 1 ) } } { \partial z _ { { \bf z } } } } } \\ { { \displaystyle \frac { \partial f _ { { \bf z } } ^ { ( 2 ) } } { \partial z _ { { \bf z } } ^ { 2 } } } } & { { \displaystyle \frac { \partial f _ { { \bf z } } ^ { ( 2 ) } } { \partial z _ { { \bf z } } ^ { 2 } } } } & { { \bf \cdots } } & { { \displaystyle \frac { \partial f _ { { \bf z } } ^ { ( 2 ) } } { \partial z _ { { \bf z } } } } } \\ { { \vdots } } & { { \vdots } } & { { \ddots } } & { { \vdots } } \\ { { \displaystyle \frac { \partial f _ { { \bf z } } ^ { ( D ) } } { \partial z _ { { \bf z } } } } } & { { \displaystyle \frac { \partial f _ { { \bf z } } ^ { ( D ) } } { \partial z _ { { \bf z } } ^ { 2 } } } } & { { \bf \cdots } } & { { \displaystyle \frac { \partial f _ { { \bf z } } ^ { ( D ) } } { \partial z _ { { \bf z } } } } } \end{array} ] _ { D ^ { \times d } } } } \\ = [ \begin{array} { c c c } { { \displaystyle \frac { \partial f _ { { \bf z } } ^ { ( 1 ) } } { \partial z _ { { \bf z } } ^ { 2 } } } } & { { \displaystyle \frac { \partial \mu _ { { \bf z } } ^ { ( 1 ) } } { \partial z _ { { \bf z } } ^ { 2 } } } } & { { \bf \cdots } } & { { \displaystyle \frac { \partial \mu _ { { \bf z } } ^ { ( 1 ) } } { \partial z _ { { \bf z } } ^ { 2 } } } } \\ { { \displaystyle \frac { \partial \mu _ { { \bf z } } ^ { ( 2 ) } } { \partial z _ { { \bf z } } ^ { 2 } } } } & \displaystyle \frac { \partial f _ { { \bf z } } ^ { ( 1 ) } } \partial z _ { { \bf z } } ^ \end{array} \end{array}
334
+ $$
335
+
336
+ $$
337
+ \mathbf { S } _ { i } = \left[ \begin{array} { c c c c } { \frac { \partial \sigma _ { z } ^ { ( 1 ) } } { \partial z _ { i } } } & { 0 } & { \cdots } & { 0 } \\ { 0 } & { \frac { \partial \sigma _ { z } ^ { ( 2 ) } } { \partial z _ { i } } } & { \cdots } & { 0 } \\ { \vdots } & { \vdots } & { \ddots } & { \vdots } \\ { 0 } & { 0 } & { \cdots } & { \frac { \partial \sigma _ { z } ^ { ( D ) } } { \partial z _ { i } } } \end{array} \right] _ { D \times D } , i = 1 , \ldots , d
338
+ $$
339
+
340
+ and the resulting “random” metric in the latent space is $\mathbf { M _ { z } } = \mathbf { J _ { z } ^ { \intercal } } \mathbf { J _ { z } }$ . The randomness is due to the random variable $\epsilon$ , and thus, we can compute the expectation
341
+
342
+ $$
343
+ \begin{array} { r l } & { \mathbf { M _ { z } } = \mathbb { E } _ { p ( \epsilon ) } [ \mathbf { M _ { z } } ] = \mathbb { E } _ { p ( \epsilon ) } [ ( \mathbf { A } + \mathbf { B } ) ^ { \mathsf { T } } ( \mathbf { A } + \mathbf { B } ) ] = \mathbb { E } _ { p ( \epsilon ) } [ \mathbf { A ^ { \mathsf { T } } A } + \mathbf { A ^ { \mathsf { T } } B } + \mathbf { B ^ { \mathsf { T } } A } + \mathbf { B ^ { \mathsf { T } } B } ] . } \end{array}
344
+ $$
345
+
346
+ Using the linearity of expectation we get that
347
+
348
+ $$
349
+ \begin{array} { r } { \mathbb { E } _ { p ( \epsilon ) } [ \mathbf { A } ^ { \top } \mathbf { B } ] = \mathbb { E } _ { p ( \epsilon ) } \left[ \mathbf { A } ^ { \top } [ \mathbf { S } _ { 1 } \epsilon , \mathbf { S } _ { 2 } \epsilon , \cdot \cdot , \mathbf { S } _ { d } \epsilon ] \right] = \mathbf { A } ^ { \top } [ \mathbf { S } _ { 1 } \mathbb { E } _ { p ( \epsilon ) } [ \epsilon ] ^ { * } , \cdot \cdot , \mathbf { 0 } ] = 0 } \end{array}
350
+ $$
351
+
352
+ because $\mathbb { E } _ { p ( \epsilon ) } [ \epsilon ] = \mathbf { 0 }$ . The other term
353
+
354
+ $$
355
+ \begin{array} { r l } & { \mathbb { E } _ { p ( \epsilon ) } [ \mathbf { B } ^ { \mathsf { T } } \mathbf { B } ] = \mathbb { E } _ { p ( \epsilon ) } \left( \left[ \begin{array} { c } { \epsilon ^ { \mathsf { T } } \mathbf { S } _ { 1 } } \\ { \epsilon ^ { \mathsf { T } } \mathbf { S } _ { 2 } } \\ { \vdots } \\ { \epsilon ^ { \mathsf { T } } \mathbf { S } _ { d } } \end{array} \right] _ { d \times D } \quad [ \mathbf { S } _ { 1 } \epsilon , \mathbf { S } _ { 2 } \epsilon , \cdots , \mathbf { S } _ { d } \epsilon ] \right) } \\ & { \quad \quad \quad \quad = \mathbb { E } _ { p ( \epsilon ) } \left( \left[ \begin{array} { c c c c } { \epsilon ^ { \mathsf { T } } \mathbf { S } _ { 1 } \mathbf { S } _ { 1 } \epsilon } & { \epsilon ^ { \mathsf { T } } \mathbf { S } _ { 1 } \mathbf { S } _ { 2 } \epsilon } & { \cdots } & { \epsilon ^ { \mathsf { T } } \mathbf { S } _ { 1 } \mathbf { S } _ { d } \epsilon } \\ { \epsilon ^ { \mathsf { T } } \mathbf { S } _ { 2 } \mathbf { S } _ { 1 } \epsilon } & { \epsilon ^ { \mathsf { T } } \mathbf { S } _ { 2 } \mathbf { S } _ { 2 } \epsilon } & { \cdots } & { \epsilon ^ { \mathsf { T } } \mathbf { S } _ { 2 } \mathbf { S } _ { d } \epsilon } \\ { \vdots } & { \vdots } & { \vdots } \\ { \epsilon ^ { \mathsf { T } } \mathbf { S } _ { d } \mathbf { S } _ { 1 } \epsilon } & { \epsilon ^ { \mathsf { T } } \mathbf { S } _ { d } \mathbf { S } _ { 2 } \epsilon } & { \cdots } & { \epsilon ^ { \mathsf { T } } \mathbf { S } _ { d } \mathbf { S } _ { d } \epsilon } \end{array} \right] \right) } \end{array}
356
+ $$
357
+
358
+ with
359
+
360
+ $$
361
+ \begin{array} { r l } & { \mathbb { E } _ { p ( \epsilon ) } \left[ \epsilon ^ { \mathsf { T } } \mathbf { S } _ { i } \mathbf { S } _ { j } \epsilon \right] = \mathbb { E } _ { p ( \epsilon ) } \left[ \left( \epsilon _ { 1 } \frac { \partial \sigma _ { z } ^ { ( 1 ) } } { \partial z _ { i } } , \epsilon _ { 2 } \frac { \partial \sigma _ { z } ^ { ( 2 ) } } { \partial z _ { i } } , \cdots , \epsilon _ { D } \frac { \partial \sigma _ { z } ^ { ( D ) } } { \partial z _ { i } } \right) \left( \begin{array} { c } { \epsilon _ { 1 } \frac { \partial \sigma _ { z } ^ { ( 1 ) } } { \partial z _ { j } } } \\ { \epsilon _ { 2 } \frac { \partial \sigma _ { z } ^ { ( 2 ) } } { \partial z _ { j } } } \\ { \vdots } \\ { \epsilon _ { D } \frac { \partial \sigma _ { z } ^ { ( D ) } } { \partial z _ { j } } } \end{array} \right) \right] } \\ & { \quad = \mathbb { E } _ { p ( \epsilon ) } \left[ \epsilon _ { 1 } ^ { 2 } \left( \frac { \partial \sigma _ { z } ^ { ( 1 ) } } { \partial z _ { i } } \frac { \partial \sigma _ { z } ^ { ( 1 ) } } { \partial z _ { j } } \right) + \epsilon _ { 2 } ^ { 2 } \left( \frac { \partial \sigma _ { z } ^ { ( 2 ) } } { \partial z _ { i } } \frac { \partial \sigma _ { z } ^ { ( 2 ) } } { \partial z _ { j } } \right) + \cdots \epsilon _ { D } ^ { 2 } \left( \frac { \partial \sigma _ { z } ^ { ( D ) } } { \partial z _ { i } } \frac { \partial \sigma _ { z } ^ { ( D ) } } { \partial z _ { j } } \right) \right] } \end{array}
362
+ $$
363
+
364
+ $$
365
+ \begin{array} { r } { = d i a g ( \mathbf { S } _ { i } ) ^ { \mathsf { T } } d i a g ( \mathbf { S } _ { j } ) , } \end{array}
366
+ $$
367
+
368
+ because $\mathbb { E } _ { p ( \epsilon ) } [ \epsilon _ { i } ^ { 2 } ] = 1 , \forall i = 1 , \dots , D$ .
369
+
370
+ The matrix $\mathbf { A } = \mathbf { J } _ { \mathbf { z } } ^ { ( \mu ) }$ and for the variance network
371
+
372
+ $$
373
+ \mathbf { J } _ { \mathbf { z } } ^ { ( \sigma ) } = \left[ \begin{array} { c c c c } { \frac { \partial \sigma _ { \mathbf { z } } ^ { ( 1 ) } } { \partial z _ { 1 } } } & { \frac { \partial \sigma _ { \mathbf { z } } ^ { ( 1 ) } } { \partial z _ { 2 } } } & { \cdot \cdot \cdot } & { \frac { \partial \sigma _ { \mathbf { z } } ^ { ( 1 ) } } { \partial z _ { d } } } \\ { \frac { \partial \sigma _ { \mathbf { z } } ^ { ( 2 ) } } { \partial z _ { 1 } } } & { \frac { \partial \sigma _ { \mathbf { z } } ^ { ( 2 ) } } { \partial z _ { 2 } } } & { \cdot \cdot \cdot } & { \frac { \partial \sigma _ { \mathbf { z } } ^ { ( 2 ) } } { \partial z _ { d } } } \\ { \vdots } & { \vdots } & { \ddots } & { \vdots } \\ { \frac { \partial \sigma _ { \mathbf { z } } ^ { ( D ) } } { \partial z _ { 1 } } } & { \frac { \partial \sigma _ { \mathbf { z } } ^ { ( D ) } } { \partial z _ { 2 } } } & { \cdot \cdot \cdot } & { \frac { \partial \sigma _ { \mathbf { z } } ^ { ( D ) } } { \partial z _ { d } } } \end{array} \right]
374
+ $$
375
+
376
+ it is easy to see that $\mathbb { E } _ { p ( \epsilon ) } [ \mathbf { B } ^ { \intercal } \mathbf { B } ] = \left( \mathbf { J } _ { \mathbf { z } } ^ { ( \sigma ) } \right) ^ { \intercal } \mathbf { J } _ { \mathbf { z } } ^ { ( \sigma ) }$ . So the expectation of the induced Riemannian metric in the latent space by the generator is
377
+
378
+ $$
379
+ \bar { \mathbf { M _ { z } } } = \left( \mathbf { J _ { z } ^ { ( \mu ) } } \right) ^ { \mathsf { T } } \mathbf { J _ { z } ^ { ( \mu ) } } + \left( \mathbf { J _ { z } ^ { ( \sigma ) } } \right) ^ { \mathsf { T } } \mathbf { J _ { z } ^ { ( \sigma ) } }
380
+ $$
381
+
382
+ which concludes the proof.
383
+
384
+ # C INFLUENCE OF VARIANCE ON THE MARGINAL LIKELIHOOD
385
+
386
+ We trained a VAE on the digits 0 and 1 of the MNIST scaled to $[ - 1 , 1 ]$ . We randomly split the data to $9 0 \%$ training and $1 0 \%$ test data, ensuring balanced classes. First, we only trained the encoder and the mean function of the decoder. Then, keeping these fixed, we trained two variance functions: one based on standard deep neural network architecture, and the other using our proposed RBF model. Clearly, we have two generators with the same mean function, but different variance functions. Below we present the architectures for the standard neural networks. For the RBF model we used 32 centers and $a = 1$ .
387
+
388
+ <table><tr><td>Encoder/Decoder</td><td>Layer 1</td><td>Layer 2</td><td>Layer 3</td><td></td></tr><tr><td></td><td>64,(softplus)</td><td>32,(softplus)</td><td>d,(linear)</td><td rowspan="5"></td></tr><tr><td></td><td>64,(softplus)</td><td>32, (softplus)</td><td>d,(softplus)</td></tr><tr><td>μ</td><td>32,(softplus)</td><td>64,(softplus)</td><td>D,(tanh)</td></tr><tr><td>00</td><td>32, (softplus)</td><td>64,(softplus)</td><td>D,(softplus)</td></tr></table>
389
+
390
+ The numbers corresponds to the layer size together with the activation function in parenthesis. Further, the mean and the variance functions share the weights of the first layer. The input space dimension is $D = 7 8 4$ . Then, we computed the marginal likelihood $p ( \mathbf { x } )$ of the test data using Monte Carlo as:
391
+
392
+ $$
393
+ p ( \mathbf { x } ) = \int _ { \mathbb { Z } } p ( \mathbf { x } | \mathbf { z } ) p ( \mathbf { z } ) \mathrm { d } \mathbf { z } \simeq \frac { 1 } { S } \sum _ { s = 1 } p ( \mathbf { x } | \mathbf { z } _ { s } ) , \quad \mathbf { z } _ { s } \sim p ( \mathbf { z } )
394
+ $$
395
+
396
+ using $S = 1 0 0 0 0$ samples. The generator with the standard variance function achieved -68.25 mean log-marginal likelihood, while our proposed model -50.34, where the higher the better.
397
+
398
+ The reason why the proposed RBF model performs better can be easily analyzed. The marginal likelihood under the Monte Carlo estimation is, essentially, a large Gaussian mixture model with equal weights $\textstyle { \frac { 1 } { S } }$ . Each mixture component is defined by the generator through the likelihood $p ( \mathbf { x } | \mathbf { z } ) = \mathcal { N } \left( \mathbf { x } \mid \pmb { \mu } _ { \theta } ( \mathbf { z } ) , \mathbb { I } _ { D } \pmb { \sigma } _ { \theta } ^ { 2 } ( \mathbf { z } ) \right)$ . Considering the variance term, the standard neural network approach is trained on the given data points and the corresponding latent codes. Unfortunately, its behavior is arbitrary in regions where there are not any encoded data. On the other hand our proposed model assigns large variance to these regions, while on the regions where we have latent codes its behavior will be approximately the same with the standard neural network. This implies that the resulting marginal likelihood $p ( \mathbf { x } )$ for the two models are highly similar in regions of high data density, but significantly different elsewhere. The RBF variance model ensures that mixture components in these regions have high variance, whereas the standard architecture assign arbitrary variance. Consequently, the RBF-based $p ( \mathbf { x } )$ assigns minimal density to regions with no data, and, thus, attains higher marginal likelihood elsewhere.
399
+
400
+ # D IMPLEMENTATION DETAILS FOR THE EXPERIMENTS
401
+
402
+ Algorithm 1 The training of a VAE that ensures geometry
403
+
404
+ Output: the estimated parameters of the neural networks $\theta , \phi , \psi$ 1: Train the $\mu _ { \phi } , \pmb { \sigma } _ { \phi } , \pmb { \mu } _ { \theta }$ as in Kingma & Welling (2014), keeping $\sigma _ { \psi }$ fixed. 2: Train the $\sigma _ { \psi }$ as explained in Sec. 4.1.
405
+
406
+ Details for Experiments 5.1, 5.2 & 5.3. The pixel values of the images are scaled to the interval $[ 0 , 1 ]$ . We use for the functions $\mu _ { \phi } , \pmb { \sigma } _ { \phi } , \pmb { \mu } _ { \theta }$ multilayer perceptron (MLP) deep neural networks, and for the $\beta _ { \psi }$ the proposed RBF model with 64 centers, so $\mathbf { W } \in \mathbb { R } ^ { D \times 6 4 }$ and the parameter $a$ of Eq. 11 is set to 2. We used $L _ { 2 }$ regularization with parameter equal to $1 e ^ { - 5 }$ .
407
+
408
+ <table><tr><td>Encoder/Decoder</td><td>Layer 1</td><td>Layer 2</td><td>Layer 3</td></tr><tr><td></td><td>64,(tanh)</td><td>32,(tanh)</td><td>d,(linear)</td></tr><tr><td></td><td>64, (tanh)</td><td>32, (tanh)</td><td>d,(softplus)</td></tr><tr><td>μ</td><td>32,(tanh)</td><td>64,(tanh)</td><td>D,(sigmoid)</td></tr></table>
409
+
410
+ The number corresponds to the size of the layer, and in the parenthesis the activation function. For the encoder, the mean and the variance functions share the weights of the Layer 1. The input space dimension $D = 7 8 4$ . After the training, the geodesics can be computed by solving Eq. 7 numerically. The LAND mixture model is fitted as explained in (Arvanitidis et al., 2016).
411
+
412
+ Details for Experiments 5.4. In this experiment we used Convolutional Variational AutoEncoders. The pixel values of the images are scaled to the interval [0, 1]. For the $\beta _ { \psi }$ we used the proposed RBF model with 64 centers and the parameter $a$ of Eq. 11 is set to 2.
413
+
414
+ Considering the variance network during the decoding stage, the RBF generates an image, which represents intuitively the total variance of each pixel for the decoded final image, but in an initial sub-sampled version. Afterwards, this image is passed through a sequence of deconvolution layers, and at the end will represent the variance of every pixel for each RGB channel. However, it is critical that the weights of the filters must be clipped during the training to $\mathbb { R } _ { + }$ to ensure positive variance.
415
+
416
+ <table><tr><td>Encoder</td><td>Layer 1 (Conv)</td><td>Layer 2 (Conv)</td><td>Layer 3 (MLP)</td><td>Layer 4 (MLP)</td></tr><tr><td>山</td><td>32,3,2,(tanh)</td><td>32,3,2,(tanh)</td><td>1024, (tanh)</td><td>d,(linear)</td></tr><tr><td>o</td><td>32,3,2,(tanh)</td><td>32,3,2,(tanh)</td><td>1024, (tanh)</td><td>d,(softplus)</td></tr></table>
417
+
418
+ For the convolutional and deconvolutional layers, the first number is the number of applied filters, the second is the kernel size, and third is the stride. Also, for the encoder, the mean and the variance functions share the convolutional layers. We used $L _ { 2 }$ regularization with parameter equal to $1 e ^ { - 5 }$ .
419
+
420
+ $$
421
+ \begin{array}{c} \frac { \mathrm { D e c o d e r } \mathrm { ~ ~ \cal ~ L ~ } . 1 ( \mathrm { M L P } ) \mathrm { ~ ~ \cal ~ L . ~ } 2 ( \mathrm { M L P } ) \mathrm { ~ ~ \cal ~ L . ~ } 3 ( \mathrm { D E } ) \mathrm { ~ ~ \cal ~ L . ~ } 4 ( \mathrm { D E } ) \mathrm { ~ ~ \cal ~ L . ~ } 5 ( \mathrm { D E } ) \mathrm { ~ ~ \cal ~ L . ~ } 6 ( \mathrm { C O } ) } { \mu _ { \theta } } \frac { D / 4 , ( t ) } { 3 2 , 3 , 2 , ( t ) } \frac { 3 2 , 3 , 2 , ( t ) } { 3 2 , 3 , 2 , ( t ) } \mathrm { ~ ~ \cal ~ 3 . 2 , } 3 , 1 , ( t ) \mathrm { ~ ~ \cal ~ 3 , 3 , 1 , } 3 , 1 , ( s ) \mathrm { ~ ~ \cal ~ 3 , 3 , 1 ~ } , 0 ) \mathrm { ~ ~ \cal ~ O ~ } \end{array}
422
+ $$
423
+
424
+ For the decoder, the acronyms $\mathrm { ( D E ) = }$ Deconvolution, $\left( \mathbf { C O } \right) =$ Convolution and $( t )$ , (s) stand for tanh and sigmoid, respectively. Also, $D = w i d t h \times h e i g h t \times$ channels of the images, in our case 64,64,3. For all the convolutions and deconvolutions, the padding is set to same. We used $L _ { 2 }$ regularization with parameter equal to $1 e ^ { - 5 }$ .
425
+
426
+ <table><tr><td>Decoder</td><td>rLayer1(RBF)</td><td>Layer 2 (Deconv)Layer 3 (Conv)</td><td></td></tr><tr><td>β</td><td>W ∈ R(D/2)×64</td><td>1,3,2 (linear)</td><td>3,3,1 (linear)</td></tr></table>
427
+
428
+ The Brownian motion over the Riemannian manifold in the latent space is presented in Alg. 2.
429
+
430
+ # Algorithm 2 Brownian motion on a Riemannian manifold
431
+
432
+ Input: the starting point $\mathbf { z } \in \mathbb { R } ^ { d \times 1 }$ , stepsize $s$ , number of steps $N _ { s }$ , the metric tensor $\mathbf { M } ( \cdot )$ Output: the random steps Z ∈ RNs×d.
433
+
434
+ 1: for $n = 0$ to $N _ { s }$ do
435
+ 2: $\mathbf { L } , \mathbf { U } = e i g \left( \mathbf { M ( z ) } \right) .$ (L: eigenvalues, U: eigenvectors)
436
+ 3: $\mathbf { v } = \mathbf { U } \mathbf { L } ^ { - \frac { 1 } { 2 } } \boldsymbol { \epsilon } , \qquad \boldsymbol { \epsilon } \sim \mathcal { N } ( \mathbf { 0 } , \mathbb { I } _ { d } )$
437
+ 4: z = z + s · v
438
+ 5: Z(n, :) = z
439
+ 6: end for
parse/train/SJzRZ-WCZ/SJzRZ-WCZ_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJzRZ-WCZ/SJzRZ-WCZ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/UoVpP8R2Vn/UoVpP8R2Vn.md ADDED
@@ -0,0 +1,349 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PARP: Prune, Adjust and Re-Prune for Self-Supervised Speech Recognition
2
+
3
+ Cheng-I Jeff Lai1, Yang Zhang2⇤, Alexander H. Liu1⇤, Shiyu Chang2, 4⇤ Yi-Lun Liao1, Yung-Sung Chuang1, 3, Kaizhi Qian2, Sameer Khurana1 David $\mathbf { C o x } ^ { 2 }$ , James Glass1 1MIT CSAIL, 2MIT-IBM Watson AI Lab, 3National Taiwan University, $^ 4 \mathrm { U C }$ Santa Barbara
4
+
5
+ clai24@mit.edu
6
+
7
+ # Abstract
8
+
9
+ Self-supervised speech representation learning (speech SSL) has demonstrated the benefit of scale in learning rich representations for Automatic Speech Recognition (ASR) with limited paired data, such as wav2vec 2.0. We investigate the existence of sparse subnetworks in pre-trained speech SSL models that achieve even better low-resource ASR results. However, directly applying widely adopted pruning methods such as the Lottery Ticket Hypothesis (LTH) is suboptimal in the computational cost needed. Moreover, we show that the discovered subnetworks yield minimal performance gain compared to the original dense network.
10
+
11
+ We present Prune-Adjust-Re-Prune (PARP), which discovers and finetunes subnetworks for much better performance, while only requiring a single downstream ASR finetuning run. PARP is inspired by our surprising observation that subnetworks pruned for pre-training tasks need merely a slight adjustment to achieve a sizeable performance boost in downstream ASR tasks. Extensive experiments on lowresource ASR verify (1) sparse subnetworks exist in mono-lingual/multi-lingual pre-trained speech SSL, and (2) the computational advantage and performance gain of PARP over baseline pruning methods.
12
+
13
+ In particular, on the $1 0 \mathrm { { m i n } }$ Librispeech split without LM decoding, PARP discovers subnetworks from wav2vec 2.0 with an absolute $1 0 . 9 \% / 1 2 . 6 \%$ WER decrease compared to the full model. We further demonstrate the effectiveness of PARP via: cross-lingual pruning without any phone recognition degradation, the discovery of a multi-lingual subnetwork for 10 spoken languages in 1 finetuning run, and its applicability to pre-trained BERT/XLNet for natural language tasks1.
14
+
15
+ # 1 Introduction
16
+
17
+ For many low-resource spoken languages in the world, collecting large-scale transcribed corpora is very costly and sometimes infeasible. Inspired by efforts such as the IARPA BABEL program, Automatic Speech Recognition (ASR) trained without sufficient transcribed speech data has been a critical yet challenging research agenda in speech processing [31, 33, 42, 32, 21]. Recently, SelfSupervised Speech Representation Learning (speech SSL) has emerged as a promising pathway toward solving low-resource ASR [84, 25, 110, 6, 29, 127, 55, 27]. Speech SSL involves pre-training a speech representation module on large-scale unlabelled data with a self-supervised learning objective, followed by finetuning on a small amount of supervised transcriptions. Many recent studies have demonstrated the empirical successes of speech SSL on low-resource English and multi-lingual ASR, matching systems trained on fully-supervised settings [6, 29, 127, 4, 126]. Prior research attempts, however, focus on pre-training objectives [84, 25, 110, 72, 57, 74, 71, 73, 55, 22, 27, 17, 129], scaling up speech representation modules [5, 6, 53], pre-training data selections [108, 54, 107, 111, 78], or applications of pre-trained speech representations [26, 62, 94, 28, 63, 29, 76, 120, 64, 117, 112, 44, 4, 86, 59, 66, 2, 56, 102, 15, 30, 20]. In this work, we aim to develop an orthogonal approach that is complementary to these existing speech SSL studies, that achieves 1) lower architectural complexity and 2) higher performance (lower WER) under the same low-resource ASR settings.
18
+
19
+ Neural network pruning [65, 51, 49, 69], as well as the more recently proposed Lottery Ticket Hypothesis (LTH) $\mathbb { | \vert 3 9 \| }$ , provide a potential solution that accomplishes both objectives. According to LTH, there exists sparse subnetworks that can achieve the same or even better accuracy than the original dense network. Such phenomena have been successfully observed in various domains: Natural Language Processing (NLP) [123, 19, 88, 80], Computer Vision (CV) [18, 45], and many others. All finding sparse subnetworks with comparable or better performance than the dense network. Given the lack of similar studies on pruning self-supervised ASR, we intend to fill this gap by finding sparse subnetworks within a pre-trained speech SSL that can achieve superior performance to the full pre-trained model on downstream ASR tasks.
20
+
21
+ However, directly applying widely-adopted pruning methods, such as One-Shot Magnitude Pruning (OMP) and Iterative Magnitude Pruning (IMP) [49, 39], to pre-trained speech SSL suffers from two challenges. First, adopting these methods in the conventional pruning framework is extremely time-consuming for SOTA speech SSL models. OMP and IMP involve more than one round of finetuning on downstream tasks (c.f. Figure $\blacktriangleleft$ , and finetuning for ASR is timeconsuming and computationally demanding2. The second challenge is that we do not observe any performance improvement of the subnetworks over the original dense network with OMP or IMP. Figure 3 shows the WER under low-resource scenarios of the subnetworks identified by OMP (purple line) and IMP (blue dashed line) at different sparsity levels. None of the sparsity levels achieves a visible drop in WER compared to the zero sparsity case, corresponding to the original dense network. These two challenges have prompted us to ask – do there exist sparse subnetworks within pre-trained speech SSL with improved performance on low-resource ASR? How can we discover them efficiently in a single downstream finetuning run?
22
+
23
+ ![](images/5ad30abc480b483eec225c5622e6b8845d1bd60713e2b6d8a5af4e19dca47a3c.jpg)
24
+ Figure 1: Number of ASR finetuning iterations needed (y-axis) versus target sparsities $\mathbf { \check { X } }$ -axis) for each downstream task/language. Crossreferencing Figure $\textcircled { 3 }$ indicates that IMP requires linearly more compute to match the performance (either sparsity/WER) of PARP.
25
+
26
+ We propose a magnitude-based unstructured pruning method [41, 11], termed Prune-Adjust-Re-Prune (PARP), for discovering sparse subnetworks within pre-trained speech SSL. PARP consists of the following two steps:
27
+
28
+ 1. Directly prune the SSL pre-trained model at target sparsity, and obtain an initial subnetwork and an initial pruning mask.
29
+ 2. Finetune the initial subnetwork on target downstream task/language. During finetuning, zero out the pruned weights specified by the pruning mask, but allow the weights be updated by gradient descent during backpropogation. After a few number of model updates, re-prune the updated subnetwork at target sparsity again.
30
+
31
+ Step 1 provides an initial subnetwork that is agnostic to the downstream task, and Step 2 makes learnable adjustments by reviving pruned out weights. A formal and generalized description and its extension are introduced in Section $3 .$ Different from pruning methods in [49, 39], PARP allows pruned-out weights to be revived during finetuning. Although such a high-level idea was introduced in $\lVert \rVert \bigotimes \rVert$ , we provide an alternative insight: despite its flexibility, Step 2 only makes minimal adjustment to the initial subnetwork, and obtaining a good initial subnetwork in Step 1 is the key. We empirically show in Section $\textcircled { 3 }$ that any task-agnostic subnetwork surprisingly provides a good basis for Step 2, suggesting that the initial subnetwork can be cheaply obtained either from a readily available task/language or directly pruning the pre-trained SSL model itself. In addition, this observation allows us to perform cross-lingual pruning (mask transfer) experiments, where the initial subnetwork is obtained via a different language other than the target language.
32
+
33
+ Our Contributions. We conduct extensive PARP and baseline (OMP and IMP) pruning experiments on low-resource ASR with mono-lingual (pre-trained wav2vec 2.0 [6]) and cross-lingual (pre-trained XLSR-53 [29]) transfer. PARP finds significantly superior speech SSL subnetworks for low-resource
34
+
35
+ ASR, while only requiring a single pass of downstream ASR finetuning. Due to its simplicity, PARP adds minimal computation overhead to existing SSL downstream finetuning.
36
+
37
+ • We show that sparse subnetworks exist in pre-trained speech SSL when finetuned for low-resource ASR. In addition, PARP achieves superior results to OMP and IMP across all sparsities, amount of finetuning supervision, pre-trained model scale, and downstream spoken languages. Specifically, on Librispeech $1 0 \mathrm { { m i n } }$ without LM decoding, PARP discovers subnetworks from wav2vec 2.0 with an absolute $1 0 . 9 \% / 1 2 . 6 \%$ WER decrease compared to the full model, without modifying the finetuning hyper-parameters or objective (Section 4.1) • Ablation studies on demonstrating the importance of PARP’s initial subnetwork (Section 4.2) • PARP minimizes phone recognition error increases in cross-lingual mask transfer, where a subnetwork pruned for ASR in one spoken language is adapted for ASR in another language (Section $4 . 3 { \bar { ) } }$ . PARP can also be applied to efficient multi-lingual subnetwork discovery for 10 spoken languages (Section $4 . { \overset { \vartriangle } { 4 } } )$ • Last but not least, we demonstrate PARP’s effectiveness on pre-trained BERT/XLNet, mitigating the cross-task performance degradation reported in BERT-Ticket [19] (Section 4.5)
38
+
39
+ Significance. Findings of this work not only complement and advance current and future speech SSL for low-resource ASR, but also provide new insights for the rich body of pruning work.
40
+
41
+ # 2 Preliminaries
42
+
43
+ # 2.1 Problem Formulation
44
+
45
+ Consider the low-resource ASR problem, where there is only a small transcribed training set $( x , y ) \in$ $\mathcal { D } _ { l }$ . Here $x$ represents input audio, and $y$ represents output transcription. Subscript $l \in \{ 1 , 2 , \cdots \}$ represents the downstream spoken language identity. Because of the small dataset size, empirical risk minimization generally does not yield good results. Speech SSL instead assumes there is a much larger unannotated dataset $x \in \mathcal { D } _ { 0 }$ . SSL pre-trains a neural network $f ( x ; \theta )$ , where $\theta \in \mathcal { R } ^ { d }$ represents the network parameters and $d$ represents the number of parameters, on some self-supervised objective, and obtains the pre-trained weights $\theta _ { 0 }$ . $f ( x ; \theta _ { 0 } )$ is then finetuned on downstream ASR tasks specified by a downstream loss $\mathcal { L } _ { l } ( \boldsymbol { \theta } )$ , such as CTC, and evaluated on target dataset $\mathcal { D } _ { l }$ .
46
+
47
+ Our goal is to discover a subnetwork that minimizes downstream ASR WER on $\mathcal { D } _ { l }$ . Formally, denote $m \in \{ 0 , 1 \} ^ { d }$ , as a binary pruning mask for the pre-trained weights $\theta _ { 0 }$ , and $\theta ^ { l }$ as the finetuned weights on $\mathcal { D } _ { l }$ . The ideal pruning method should learn $( m , \theta ^ { l } )$ , such that the subnetwork $f ( x ; m \odot \theta ^ { l } )$ (where $\odot$ is element-wise product) achieves minimal finetuning $\mathcal { L } _ { l } ( \boldsymbol { \theta } )$ loss on $\mathcal { D } _ { l }$ .
48
+
49
+ # 2.2 Pruning Targets and Settings
50
+
51
+ We adopted pre-trained speech SSL wav2vec2 and xlsr for the pre-trained initialization $\theta _ { 0 }$ .
52
+
53
+ wav2vec 2.0 We took wav2vec 2.0 base (wav2vec2-base) and large (wav2vec2-large) pre-trained on Librispeech 960 hours $\textcircled { 6 }$ . During finetuning, a task specific linear layer is added on top of wav2vec2 and jointly finetuned with CTC loss. More details can be found in Appendix 8.
54
+
55
+ XLSR-53 (xlsr) shares the same architecture, pre-training and finetuning objectives as wav2vec2-large. xlsr is pre-trained on 53 languages sampled from CommonVoice, BABEL, and Multilingual LibriSpeech, totaling for 56k hours of multi-lingual speech data.
56
+
57
+ We consider three settings where wav2vec2 and xlsr are used as the basis for low-resource ASR:
58
+
59
+ LSR: Low-Resource English ASR. Mono-lingual pre-training and finetuning – an English pretrained speech SSL such as wav2vec2 is finetuned for low-resource English ASR.
60
+
61
+ H2L: High-to-Low Resource Transfer for Multi-lingual ASR. Mono-lingual pre-training and multi-lingual finetuning – a speech SSL pre-trained on a high-resource language such as English is finetuned for low-resource multi-lingual ASR.
62
+
63
+ CSR: Cross-lingual Transfer for Multi-lingual ASR. Multi-lingual pre-training and finetuning – a cross-lingual pretrained speech SSL such as xlsr is finetuned for low-resource multi-lingual ASR.
64
+
65
+ # 2.3 Subnetwork Discovery in Pre-trained SSL
66
+
67
+ One obvious solution to the aforementioned problem in Section $2 . 1$ is to directly apply pruning with rewinding to $\theta _ { 0 }$ , which has been successfully applied to pre-trained BERT $\dot { \mathbb { I D } }$ and SimCLR [18].
68
+
69
+ All pruning methods, including our proposed PARP, are based on Unstructured Magnitude Pruning (UMP) $\mathbb { B 9 } \mathbb { \breve { A 1 } }$ , where weights of the lowest magnitudes are pruned out regardless of the network structure to meet the target sparsity level. We introduce four pruning baselines below, and we also provide results with Random Pruning (RP) [39, 41, 19], where weights in $\theta _ { 0 }$ are randomly eliminated.
70
+
71
+ Task-Aware Subnetwork Discovery is pruning with target dataset $D _ { l }$ seen in advance, including One-Shot Magnitude Pruning (OMP) and Iterative Magnitude Pruning (IMP). OMP is summarized as:
72
+
73
+ 1. Finetune pretrained weights $\theta _ { 0 }$ on target dataset $\mathcal { D } _ { l }$ to get the finetuned weights $\theta ^ { l }$ .
74
+
75
+ 2. Apply UMP on $\theta ^ { l }$ and retrieve pruning mask $m$
76
+
77
+ IMP breaks down the above subnetwork discovery phase into multiple iterations – in our case multiple downstream ASR finetunings. Each iteration itself is an OMP with a fraction of the target sparsity pruned. We follow the IMP implementation described in BERT-Ticket $\mathbb { I m }$ , where each iteration prunes out $10 \%$ of the remaining weights. The main bottleneck for OMP and IMP is the computational cost, since multiple rounds of finetunings are required for subnetwork discovery.
78
+
79
+ Task-Agnostic Subnetwork Discovery refers to pruning without having seen $D _ { l }$ nor $l$ in advance. One instance is applying UMP directly on $\theta _ { 0 }$ without any downstream finetuning to retrieve $m$ , referred to as Magnitude Pruning at Pre-trained Initailizations (MPI). Another case is pruning weights finetuned for a different language $t$ , i.e. applying UMP on $\theta ^ { t }$ for the target language $l$ ; in our study, we refer to this as cross-lingual mask transfer. While these approaches do not require target task finetuning, the discovered subnetworks generally have worse performance than those from OMP or IMP.
80
+
81
+ The above methods are only for subnetwork discovery via applying pruning mask $m$ on $\theta _ { 0 }$ . The discovered subnetwork $f ( x ; m \odot \theta _ { 0 } )$ needs another downstream finetuning to recover the pruning loss3, i.e. finetune $f ( x ; m \odot \theta _ { 0 } )$ on $D _ { l }$ .
82
+
83
+ # 3 Method
84
+
85
+ In this section, we highlight our proposed pruning method, PARP (Section $3 . 1 )$ , its underlying intuition (Section $3 . 2 )$ , and an extension termed PARP-P (Section $\textcircled { 3 . 3 }$ .
86
+
87
+ # 3.1 Algorithm
88
+
89
+ We formally describe PARP with the notations from Section 2. A visual overview of PARP is Figure 8.
90
+
91
+ 1: Assume there are $N$ model updates in target task/language $l$ ’s downstream finetuning.
92
+ 2: Take a pre-trained SSL $f ( x ; { \bar { \theta } } _ { 0 } )$ model. Apply task-agnostic subnetwork discovery, such as MPI4 , at target
93
+ sparsity to obtain initial subnetwork $f ( x ; m _ { 0 } \odot \theta _ { 0 } )$ . Set $m = m _ { 0 }$ and variable .
94
+ 3: repeat
95
+ 4: Zero-out masked-out weights in $\theta _ { n 1 }$ given by $m$ . Lift up $m$ such that whole $\theta _ { n 1 }$ is updatable.
96
+ 5: Train $f ( x ; \theta _ { n 1 } )$ for $_ n$ model updates and obtain $f ( x ; \theta _ { n 2 } )$ .
97
+ 6: Apply UMP on $f ( x ; \theta _ { n 2 } )$ and adjust $m$ accordingly. The adjusted subnetwork is $f ( x ; m \odot \theta _ { n 2 } )$ . Set
98
+ variable $n _ { 1 } = n _ { 2 }$ .
99
+ 7: until total model updates reach $N$ .
100
+ 8: Return finetuned subnetwork $f ( x ; m \odot \theta _ { N } )$ .
101
+
102
+ Empirically, we found the choice of $n$ has little impact. In contrast to OMP/IMP/MPI, PARP allows the pruned-out weights to take gradient descent updates. A side benefit of PARP is it jointly discovers and finetunes subnetwork in a single pass, instead of two or more in OMP and IMP.
103
+
104
+ # 3.2 Obtaining and Adjusting the Initial Subnetwork
105
+
106
+ PARP achieves superior or comparable pruning results as task-aware subnetwork discovery, while inducing similar computational cost as task-agnostic subnetwork discovery. How does it get the best of both worlds? The key is the discovered subnetworks from task-aware and task-agnostic prunings have high, non-trivial overlaps in LSR, H2L, and CSR. We first define Intersection over Union (IOU) for quantifying subnetworks’ (represented by their pruning masks $m ^ { a }$ and $m ^ { b }$ ) similarity:
107
+
108
+ $$
109
+ \operatorname { I O U } ( m ^ { a } , m ^ { b } ) \triangleq { \frac { | ( m ^ { a } = 1 ) \cap ( m ^ { b } = 1 ) | } { | ( m ^ { a } = 1 ) \cup ( m ^ { b } = 1 ) | } }
110
+ $$
111
+
112
+ Take H2L and CSR for instance, Figure $2$ visualizes language pairs’ OMP pruning mask IOUs on wav2vec2 and xlsr. Observe the high overlaps across all pairs, but also the high IOUs with the MPI masks (second to last row). We generalize these observations to the following:
113
+
114
+ Observation 1 For any sparsity, any amount of finetuning supervision, any pre-training model scale, and any downstream spoken languages, the non-zero ASR pruning masks obtained from task-agnostic subnetwork discovery has high IOUs with those obtained from task-aware subnetwork discovery.
115
+
116
+ Observation 1 suggests that any task-agnostic subnetwork could sufficiently be a good initial subnetwork in PARP due to the high similarities. In the same instance for H2L and CSR, we could either take MPI on wav2vec2 and xlsr, or take OMP on a different spoken language as the initial subnetworks. Similarly in LSR, we take MPI on wav2vec2 as the initial subnetwork. The underlying message is – the initial subnetwork can be obtained cheaply, without target task finetuning.
117
+
118
+ Now, because of the high similarity, the initial subnetwork (represented by its pruning mask $m _ { 0 }$ ) needed merely a slight adjustment for the target downstream task. While there are techniques such as dynamic mask adjustment [48], important weights pruning $\mathbb { \underline { { \nabla 7 9 } } } ]$ , and deep rewiring $\mathbb { m }$ , we provide an even simpler alternative suited for our setting. Instead of permanently removing the masked-out weights from the computation graph, PARP merely zeroes them out. Weights that are important for the downstream task (the “important weights”) should emerge with gradient updates; those that are relatively irrelevant should decrease in magnitude, and thus be zero-outed at the end. Doing so circumvents the need of straight-through estimation or additional sparsity loss, see Table 1 of $\dot { \mathbb { Z } } \dot { \mathbb { Z } } \mathbb { I }$
119
+
120
+ # 3.3 PARP-Progressive (PARP-P)
121
+
122
+ An extension to PARP is PARP-P, where the second P stands for Progressive. In PARP-P, the initial subnetwork starts at a lower sparsity, and progressively prune up to the target sparsity $s$ in Step 2. The intuition is that despite Observation $\bigtriangledown$ not any subnetwork can be a good initial subnetwork, such as those obtained from RP, or those obtained at very high sparsities in MPI/OMP/IMP. We show later that PARP-P is especially effective in higher sparsity regions, e.g. $90 \%$ for LSR. Note that PARP-P has the same computational cost as PARP, and the only difference is the initial starting sparsity in Step 1.
123
+
124
+ ![](images/d1a8ab0cd8540ceffb7e200ce060ffbed2ea3fda8f98a261908fef21bcbe4cdc.jpg)
125
+ Figure 2: IOUs over all spoken language pairs’ OMP pruning masks on finetuned wav2vec2 and xlsr. Second to last row is the IOUs between OMP masks and the MPI masks from pre-trained wav2vec2 and xlsr. Here, we show the IOUs at $50 \%$ sparsity, and the rest can be found in Appendix $1 1 .$ Surprisingly at any sparsities, there is a high, non-trivial (c.f. RP in the last row), similarity $( > 9 0 \% )$ ) between all spoken language OMP masks, as well as with the MPI masks. Language IDs are in Appendix 9.
126
+
127
+ # 4 Experiments and Analysis
128
+
129
+ # 4.1 Comparing PARP, OMP, and IMP on LSR, H2L, and CSR
130
+
131
+ Our experimental setup can be found in Appendix $\bigtriangledown .$ We first investigate the existence of sparse subnetworks in speech SSL. Figure $3$ shows the pruning results on LSR. Observe that subnetworks discovered by PARP and PARP-P can achieve $60 \sim 8 0 \%$ sparsities with minimal degradation to the full models. The gap between PARP and other pruning methods also widens as sparsities increase. For instance, Table 1 compares PARP and PARP-P with OMP and IMP at $90 \%$ sparsity, and PARP-P has a $40 \%$ absolute WER reduction. In addition, observe the WER reduction with PARP in the low sparsity regions on the $1 0 \mathrm { { m i n } }$ split in Figure $3$ . The same effect is not seen with OMP, IMP, nor MPI. Table $\nsupseteq$ compares the subnetworks discovered by PARP with the full wav2vec2 and prior work on LSR under the same setting5. Surprisingly, the discovered subnetwork attains an absolute $1 0 . 9 \% / 1 2 . 6 \%$ WER reduction over the full wav2vec2-large. We hypothesize that the performance gains are attributed to pruning out generic, unnecessary weights while preserving important weights, which facilitates training convergence. In other words, PARP provides additional regularization effects to downstream finetuning. We also examined the effectiveness of IMP with different rewinding starting points as studied in $\mathbb { \lVert 4 0 , \rVert 9 3 \rVert }$ , and found rewinding initializations bear minimal effect on downstream ASR. Full rewinding details are in Appendix 10.
132
+
133
+ ![](images/0581ad7d5bca3d4e4c4e360ee99e63a3c6cf1c46b9eaea72b698a7344e6bc8c5.jpg)
134
+ Figure 3: Comparison of different pruning techniques on LSR (wav2vec2 with $1 0 \mathrm { { m i n } / 1 \mathrm { { h } / 1 0 \mathrm { { h } } } }$ Librispeech finetuning splits). PARP (black line) and PARP-P (black dashed line) are especially effective under ultra-low data regime (e.g. $1 0 \mathrm { { m i n } } )$ and high-sparsity $( 7 0 - 1 0 0 \% )$ regions.
135
+
136
+ Table 1: WER comparison of pruning LSR: wav2vec2-base at $90 \%$ sparsity with 10h finetuning on Librispeech without LM decoding. At $90 \%$ sparsity, OMP/IMP/MPI perform nearly as bad as RP. sub-finetuning stands for subnetwork finetuning.
137
+
138
+ <table><tr><td>Method</td><td>#ASR finetunings</td><td>test clean</td><td>test other</td></tr><tr><td>RP + sub-finetuning</td><td>1</td><td>94.5</td><td>96.4</td></tr><tr><td>MPI + sub-finetuning</td><td>1</td><td>93.6</td><td>96.1</td></tr><tr><td>OMP + sub-finetuning</td><td>2</td><td>92.0</td><td>95.3</td></tr><tr><td>IMP + sub-finetuning</td><td>10</td><td>89.6</td><td>93.9</td></tr><tr><td>PARP (90%→90%)</td><td>1</td><td>83.6</td><td>90.7</td></tr><tr><td>PARP-P 70%→90%</td><td>1</td><td>51.9</td><td>69.1</td></tr><tr><td>60%→80%→90%</td><td>2</td><td>33.6</td><td>53.3</td></tr></table>
139
+
140
+ Table 2: WER comparison of PARP for LSR with previous speech SSL results on Librispeech $1 0 \mathrm { { m i n } }$ . PARP discovers sparse subnetworks within wav2vec2 with lower WER while adding minimal computational cost to the original ASR finetuning.
141
+
142
+ <table><tr><td>Method</td><td>test clean</td><td>test other</td></tr><tr><td>Continuous BERT 国 + LM</td><td>49.5</td><td>66.3</td></tr><tr><td>Discrete BERT 国 + LM</td><td>16.3</td><td>25.2</td></tr><tr><td>wav2vec2-base reported 回</td><td>46.9</td><td>50.9</td></tr><tr><td>wav2vec2-large reported [6</td><td>43.5</td><td>45.3</td></tr><tr><td>wav2vec2-base replicated</td><td>49.3</td><td>53.2</td></tr><tr><td>wav2vec2-large replicated</td><td>46.3</td><td>48.1</td></tr><tr><td>wav2vec2-base w/10% PARP</td><td>38.0</td><td>44.3</td></tr><tr><td>wav2vec2-largew/10%PARP</td><td>33.7</td><td>37.2</td></tr></table>
143
+
144
+ Next, we examine if the pruning results of LSR transfers to H2L and CSR. Figure $\sharp$ is pruning H2L and CSR with 1h of Dutch $( n l )$ finetuning, and the same conclusion can be extended to other spoken languages. Comparing Figures $\textcircled { 3 }$ and $^ { 4 , }$ we notice that shapes of their pruning curves are different, which can be attributed to the effect of character versus phone predictions. Comparing left and center of Figure $\mathbb { H }$ we show that PARP and OMP reach $50 \%$ sparsity on H2L and $70 \%$ sparsity on CSR with minimal degradations. Furthermore, while PARP is more effective than OMP on H2L for all sparsities, such advantage is only visible in the higher sparsity regions on CSR. Lastly, Table $3$ compares the subnetworks from H2L and CSR with prior work. Even with as high as $90 \%$ sparsities in either settings, subnetworks from PARP and OMP out-performs prior art.
145
+
146
+ ![](images/368fc7de4c84f2fff3c1151872af912baa4191aaba16b87769268efdafa32b71.jpg)
147
+ Figure 4: Comparison of pruning techniques on H2L & CSR with 1h of Dutch $( n l )$ ASR finetuning. (Left) Pruning H2L (wav2vec2-base $+ n l )$ . (Center) Pruning CSR $( \mathbf { x } 1 \mathbf { s } \mathbf { r } + n l )$ . (Right) Pruning jointly-finetuned wav2vec2-base and xlsr on $n l$ . Trend is consistent for other 9 spoken languages.
148
+
149
+ Table 3: Comparing subnetworks discovered by OMP and PARP from wav2vec2-base and xlsr with prior work on H2L and CSR. PER is averaged over 10 languages.
150
+
151
+ <table><tr><td>Method</td><td>Pre-training</td><td>Sparsity</td><td>avg. PER</td></tr><tr><td>Bottleneck 38</td><td>Babel-1070h</td><td>0%</td><td>44.9</td></tr><tr><td>CPC 图</td><td>LS-100h</td><td>0%</td><td>50.9</td></tr><tr><td>Modified CPC 四</td><td>LS-360h</td><td>0%</td><td>44.5</td></tr><tr><td>wav2vec2-base</td><td>LS-960h</td><td>0%</td><td>18.7</td></tr><tr><td>wav2vec2+ OMP</td><td>LS-960h</td><td>70%</td><td>41.3</td></tr><tr><td>wav2vec2+PARP</td><td>LS-960h</td><td>90%</td><td>40.1</td></tr><tr><td> xlsr reported [29]</td><td>56,000h</td><td>0%</td><td>7.6</td></tr><tr><td>xlsr replicated</td><td>56.000h</td><td>0%</td><td>9.9</td></tr><tr><td>xlsr+OMP</td><td>56.000h</td><td>90%</td><td>33.9</td></tr><tr><td>xlsr+PARP-P</td><td>56,000h</td><td>90%</td><td>22.9</td></tr></table>
152
+
153
+ ![](images/a7694b462a9bd4edc7bebc7f494284e276f249da605557bab0d6e11d793a54a1.jpg)
154
+ Figure 5: PARP’s final subnetwork and its initial MPI subnetwork exceeds $9 9 . 9 9 \%$ IOU after $20 \%$ sparsity (black line).
155
+
156
+ # 4.2 How Important is the Initial Subnetwork (Step 1) in PARP?
157
+
158
+ Obtaining a good initial subnetwork (Step 1) is critical for PARP, as Adjust & Re-Prune (Step 2) is operated on top of it. In this section, we isolate the effect of Step 1 from Step 2 and examine the role of the initial subnetwork in PARP. Figure $\boxed { 6 }$ shows PARP with a random subnetwork from RP, instead of subnetwork from MPI, as the initial subnetwork. PARP with random initial subnetwork performs nearly as bad as RP (grey line), signifying the importance of the initial subnetwork.
159
+
160
+ Secondly, despite Observation 1, MPI in high sparsity regions (e.g. $90 \%$ in LSR) is not a good initial subnetwork, since the majority of the weights are already pruned out (thus is hard to be recovered from). From Figure 3, PARP performs only on par or even worse than IMP in high sparsity regions. In contrast, PARP-P starts with a relatively lower sparsity (e.g. $60 \%$ or $70 \%$ MPI), and progressively prunes up to the target sparsity. Doing so yields considerable performance gain (up to over $50 \%$ absolute WER reduction). Third, as shown in Figure $\underline { { \boldsymbol { \mathsf { F } } } } ,$ there is ${ > } 9 9 . 9 9 \%$ IOU between the final “adjusted” subnetwork from PARP and its initial MPI subnetwork after $2 0 \%$ sparsity, confirming Step 2 indeed only made minimal “adjustment” to the initial subnetwork.
161
+
162
+ ![](images/517450599b9f945f7458ac2802e6cf1240256e1de40f4600508dd23410512726.jpg)
163
+ Figure 6: PARP with random (red line) v.s. with MPI (black line) initial subnetworks in LSR.
164
+
165
+ ![](images/b448f34fe2f5b61d0a35a138bcba3b78cf3bdaf96af9e1f464158c795b7e04af.jpg)
166
+ Transferrability of Language Masks at $5 0 \%$ Sparsity in wav2vec 2.0 with PARP
167
+
168
+ ![](images/663911949f9d167024d6cfa3907289acfb193d6fa8fb47241943d41d0ad56c73.jpg)
169
+ Transferrability of Language Masks at $5 0 \%$ Sparsity in wav2vec 2.0
170
+ Figure 7: (Left) Cross-lingual OMP mask transfer with regular subnetwork finetuning. (Right) Cross-lingual OMP mask transfer with PARP. Last rows are RP. Values are relative PER gains over same-language pair transfer (hence the darker the bettter). Both are on H2L with pretrained wav2vec2. The same observation is observed on CSR with pretrained xlsr in Appendix 12.
171
+
172
+ # 4.3 Are Pruning Masks Transferrable across Spoken Languages?
173
+
174
+ Is it possible to discover subnetworks with the wrong guidance, and how transferrable are such subnetworks? More concretely, we investigate the transferability of OMP pruning mask discovered from a source language by finetuning its subnetwork on another target language. Such study should shed some insights on the underlying influence of spoken language structure on network pruning – that similar language pairs should be transferrable. From a practical perspective, consider pruning for an unseen new language in H2L, we could deploy the readily available discovered subnetworks and thus save the additional finetuning and memory costs.
175
+
176
+ In this case, the initial subnetwork of PARP is given by applying OMP on another spoken language. According to Observation $^ { 1 , }$ PARP’s Step 2 is effectively under-going cross-lingual subnetwork adaptation for the target language. Figure $\checkmark$ shows the transferability results on H2L with pre-trained wav2vec2-base. On the left is a subnetwork at $50 \%$ sparsity transfer with regular finetuning that contains subtle language clusters – for example, when finetuning on $r u$ , source masks from es, fr, it, ky, nl induces a much higher PER compare to that from sv-SE, tr, tt, zh-TW. On the right of Figure 7, we show that there is no cross-lingual PER degradation with PARP, supporting our claim above.
177
+
178
+ # 4.4 Discovering a Single Subnetwork for 10 Spoken Languages
179
+
180
+ A major downside of pruning pre-trained SSL models for many downstream tasks is the exponential computational and memory costs. In H2L and CSR, the same pruning method needs to be repeatedly re-run for each downstream spoken language at each given sparsity. Therefore, we investigate the possibility of obtaining a single shared subnetwork for all downstream languages. Instead of finetuning separately for each language, we construct a joint phoneme dictionary and finetune wav2vec2 and xlsr on all 10 languages jointly in H2L and CSR. Note that PARP with joint-finetuning can retrieve a shared subnetwork in a single run. The shared subnetwork can then be decoded for each language separately. The right side of Figure 4 illustrates the results.
181
+
182
+ Comparing joint-finetuning and individual-finetuning, in H2L, we found that the shared subnetwork obtained via OMP has lower PERs between $60 \sim 8 0 \%$ but slightly higher PERs in other sparsity regions; in CSR, the shared subnetwork from OMP has slightly worse PERs at all sparsities. Comparing PARP to OMP in joint-finetuning, we found that while PARP is effective in the individual-finetuning setting (left of Figure $\textcircled { 4 }$ , its shared subnetworks are only slightly better than OMP in both H2L and CSR (right of Figure $\bigoplus$ . The smaller performance gain of PARP over OMP in pruning jointly-finetuned models is expected, since the important weights for each language are disjoint and joint-finetuning may send mixed signal to the adjustment step in PARP (see Figure $\bigtriangledown$ for better illustration).
183
+
184
+ # 4.5 Does PARP work on Pre-trained BERT/XLNet?
185
+
186
+ We also analyzed whether Observation $\perp$ holds for pre-trained BERT/XLNet on 9 GLUE tasks. Surprisingly, we found that there are also high $( > 9 8 \% )$ overlaps between the 9 tasks’ IMP pruning masks. Given this observation, we replicated the cross-task subnetwork transfer experiment (take subnetwork found by IMP at task A and finetune it for task B) in BERT-Ticket $\mathbb { \oplus }$ on pre-trained BERT/XLNet with PARP. Table $\boxed { 4 }$ compares PARP (averaged for each target task) to regular finetuning, hinting the applicability of PARP to more pre-trained NLP models and downstream natural language tasks. Detailed scores and figures are in Appendix 13.
187
+
188
+ ![](images/6b33062236588c83677a91b2b658d463d018dbf68d345eb44aa4a62c1b368a57.jpg)
189
+ Figure 8: Conceptual sketch of pruning the few task-specific important weights in pretrained SSL. (A) Task-aware subnetwork discovery(OMP/IMP) is more effective than task-agnostic pruning (MPI) since it foresees the important weights in advance, via multiple downstream finetunings. $\mathbf { ( B ) }$ PARP starts with an initial subnetwork given by MPI. Observation 1 suggests that the subnetwork is only off by the few important weights, and thus Step 2 revives them by adjusting the initial subnetwork.
190
+
191
+ # 4.6 Implications
192
+
193
+ Observation 1 is consistent with the findings of probing large pre-trained NLP models, that pre-trained SSL models are over-parametrized and there exist task-oriented weights/neurons. Figure $2$ implies that these important weights only account for a small part of the pre-trained speech SSL. In fact, a large body of NLP work is dedicated to studying task-oriented weights in pre-trained models. To name a few, $\boxed { 1 3 7 } \boxed { 3 5 } \boxed { 7 } \boxed { 1 1 5 }$ measured, [7, 34, 61] leveraged, [81, 46] visualized, and [105, 36, 13] pruned out these important weights/neurons via probing and quantifying contextualized representations. Based on Observation 1, we can project that these NLP results should in general transfer to speech, see pioneering studies [9, 8, 24, 23]. However, different from them, PARP leverages important weights for UMP on the whole network structure instead of just the contextualized representations.
194
+
195
+ We could further hypothesize that a good pruning algorithm avoids pruning out task-specific neurons in pre-trained SSL [67, 48, 79], see Figure $8 .$ This hypothesis not only offers an explanation on why PARP is effective in high sparsity regions and cross-lingual mask transfer, it also suggests that an iterative method such as IMP is superior to OMP because IMP gradually avoids pruning out important weights in several iterations, at the cost of more compute6. Finally, we make connections to prior work that showed RP prevail [11, 19, 75, 77, 92] – under a certain threshold and setting, task-specific neurons are less likely to get “accidentally” pruned and thus accuracy is preserved even with RP.
196
+
197
+ # 5 Related Work
198
+
199
+ Modern Speech Paradigm and ASR Pruning. As model scale [101, 6, 50, 47, 124, 90, 89, 125, 16, 121, $\bar { \left\lfloor 6 8 \right\rfloor }$ and model pre-training [6, 127, 29, 60, 57, 63, 55, 118, 14, 58, 96, 95, 83, 86, 109] have become the two essential ingredients for obtaining SOTA performance in ASR and other speech tasks, applying and developing various forms of memory-efficient algorithms, such as network pruning, to these large-scale pre-trained models will predictably soon become an indispensable research endeavor. Early work on ASR pruning can be dated back to pruning decoding search spaces [1, 91, 100, 52, 116, 128] and HMM state space $\mathbb { I O 3 } \mathbb { I }$ . Since the seminal work of Yu et al. $\mathbb { \lVert 1 2 2 \rVert }$ , ASR pruning has focused primarily on end-to-end network architecture: [98, 114] applied pruning and quantization to LSTM-based RNN-Transducers, $\lVert \overline { { 8 5 } } \rVert$ applied knowledge distillation to Conformer-based RNN-Transducers, [104, 99, $\textcircled { 7 0 }$ designed efficient architecture/mechanisms for LSTM, Transformer, Conformer-based ASR models, $\pmb { \mathbb { B 2 } }$ applied pruning to Deep Speech, [12] introduced SNR-based probabilistic pruning on LSTM-based CTC model, $\check { \mathbb { B } } 3 \mathbb { I }$ proposed entropyregularizer for LSTM-based ASR model, [119, $\textcircled { 8 7 }$ applied SVD on ASR models’ weight matrices. We emphasize that our work is the first on pruning large self-supervised pre-trained models for low-resource and multi-lingual ASR. In addition, to our knowledge, none of the prior speech pruning work demonstrated the pruned models attain superior performance than its original counterpart.
200
+
201
+ # 6 Conclusions
202
+
203
+ We introduce PARP, a simple and intuitive pruning method for self-supervised speech recognition. We conduct extensive experiments on pruning pre-trained wav2vec 2.0 and XLSR-53 under three low-resource settings, demonstrating (1) PARP discovers better subnetworks than baseline pruning methods while requiring a fraction of their computational cost, (2) the discovered subnetworks yields over $10 \%$ WER reduction over the full model, (3) PARP induces minimal cross-lingual subnetwork adaptation errors, (4) PARP can discover a shared subnetwork for multiple spoken languages in one pass, and (5) PARP significantly reduces cross-task adaptation errors of pre-trained BERT/XLNet. Beyond the scope of our study, we aspire PARP as the beginning of many future endeavours on developing more efficient speech SSL models.
204
+
205
+ Broader Impact. The broader impact of this research work is making speech technologies more accessible in two orthogonal dimensions: (i) extending modern-day speech technology to many under-explored low-resource spoken languages, and (ii) introducing a new and flexible pruning technique to current and future speech SSL frameworks that reduces the computational costs required for adapting (finetuning) them to custom settings. We do not see its potential societal harm.
206
+
207
+ # Limitations and Future Work
208
+
209
+ We make clear of the major limitations of our work, and the full list is in Appendix 19. The basis of all the pruning methods in the study is unstructured magnitude weight pruning. Although sparsity is explicitly enforced in the models, we do not suggest that the sparse models are more memory or energy efficient than the original dense models. We do believe that our methodology and results should provide meaningful insights and be easily extended upon to more advanced unstructured or structured pruning methods. We are also curious of the possibility of finetuning or storing modern speech SSL models on local hardware devices.
210
+
211
+ Results on cross-lingual mask transfer on pre-trained wav2vec 2.0 in Section $\boxed { 4 . 3 }$ is limited to ASR. We do not claim pruning masks to be transferrable across speech tasks (e.g. prune wav2vec2 for speaker ID and transfer for ASR). We provide a pilot cross-task mask transfer study on 3 speech tasks (phone recognition, speaker recognition, slot-filling) in SUPERB [120], and results is in Appendix 16.
212
+
213
+ We claim PARP could improve the downstream ASR performance over the full wav2vec 2.0, yet we do not claim it as a plug-and-play method into any SOTA ASR pipeline, such as $\mathbb { L } 2 6 \mathbb { I }$ , to get a performance boost. We provide a preliminary experiment on combining PARP and transformer-LM decoding in Appendix $\boxed { 1 5 }$ Nonetheless, due to resource limitations and to isolate the effect of pruning, it remains upon investigations on the complete effects of speech pruning in different setups.
214
+
215
+ # Acknowledgments
216
+
217
+ We thank IBM for the donation to MIT of the Satori GPU cluster, and John Cohn for maintaining the cluster. We also thank Lucy Chai, Wei-Ning Hsu, Desh Raj, Shu-wen Leo Yang, Abdelrahman Mohamedm, Erica Cooper, and anonymous reviewers for helpful suggestions and paper editing. This work is part of the low-resource language learning project funded by the MIT-IBM Waston AI Lab.
218
+
219
+ # References
220
+
221
+ [1] Sherif Abdou and Michael S Scordilis. Beam search pruning in speech recognition using a posterior probability-based confidence measure. Speech Communication, 42(3-4):409–428, 2004.
222
+ [2] Junyi Ao, Rui Wang, Long Zhou, Shujie Liu, Shuo Ren, Yu Wu, Tom Ko, Qing Li, Yu Zhang, Zhihua Wei, et al. Speecht5: Unified-modal encoder-decoder pre-training for spoken language processing. arXiv preprint arXiv:2110.07205, 2021.
223
+ [3] Alexei Baevski, Michael Auli, and Abdelrahman Mohamed. Effectiveness of self-supervised pre-training for speech recognition. arXiv preprint arXiv:1911.03912, 2019.
224
+ [4] Alexei Baevski, Wei-Ning Hsu, Alexis Conneau, and Michael Auli. Unsupervised speech recognition. arXiv preprint arXiv:2105.11084, 2021.
225
+ [5] Alexei Baevski, Steffen Schneider, and Michael Auli. vq-wav2vec: Self-supervised learning of discrete speech representations. arXiv preprint arXiv:1910.05453, 2019.
226
+ [6] Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, and Michael Auli. wav2vec 2.0: A framework for self-supervised learning of speech representations. arXiv preprint arXiv:2006.11477, 2020.
227
+ [7] Anthony Bau, Yonatan Belinkov, Hassan Sajjad, Nadir Durrani, Fahim Dalvi, and James Glass. Identifying and controlling important neurons in neural machine translation. arXiv preprint arXiv:1811.01157, 2018.
228
+ [8] Yonatan Belinkov, Ahmed Ali, and James Glass. Analyzing phonetic and graphemic representations in end-to-end automatic speech recognition. arXiv preprint arXiv:1907.04224, 2019.
229
+ [9] Yonatan Belinkov and James Glass. Analyzing hidden representations in end-to-end automatic speech recognition systems. arXiv preprint arXiv:1709.04482, 2017.
230
+ [10] Guillaume Bellec, David Kappel, Wolfgang Maass, and Robert Legenstein. Deep rewiring: Training very sparse deep networks. arXiv preprint arXiv:1711.05136, 2017.
231
+ [11] Davis Blalock, Jose Javier Gonzalez Ortiz, Jonathan Frankle, and John Guttag. What is the state of neural network pruning? arXiv preprint arXiv:2003.03033, 2020.
232
+ [12] Stefan Braun and Shih-Chii Liu. Parameter uncertainty for end-to-end speech recognition. In ICASSP 2019-2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5636–5640. IEEE, 2019.
233
+ [13] Steven Cao, Victor Sanh, and Alexander M Rush. Low-complexity probing via finding subnetworks. arXiv preprint arXiv:2104.03514, 2021.
234
+ [14] William Chan, Daniel Park, Chris Lee, Yu Zhang, Quoc Le, and Mohammad Norouzi. Speechstew: Simply mix all available speech recognition data to train one large neural network. arXiv preprint arXiv:2104.02133, 2021.
235
+ [15] Xuankai Chang, Takashi Maekaku, Pengcheng Guo, Jing Shi, Yen-Ju Lu, Aswin Shanmugam Subramanian, Tianzi Wang, Shu-wen Yang, Yu Tsao, Hung-yi Lee, et al. An exploration of self-supervised pretrained representations for end-to-end speech recognition. arXiv preprint arXiv:2110.04590, 2021.
236
+ [16] Sanyuan Chen, Yu Wu, Zhuo Chen, Jian Wu, Jinyu Li, Takuya Yoshioka, Chengyi Wang, Shujie Liu, and Ming Zhou. Continuous speech separation with conformer. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5749–5753. IEEE, 2021.
237
+ [17] Sanyuan Chen, Yu Wu, Chengyi Wang, Zhengyang Chen, Zhuo Chen, Shujie Liu, Jian Wu, Yao Qian, Furu Wei, Jinyu Li, et al. Unispeech-sat: Universal speech representation learning with speaker aware pre-training. arXiv preprint arXiv:2110.05752, 2021.
238
+ [18] Tianlong Chen, Jonathan Frankle, Shiyu Chang, Sijia Liu, Yang Zhang, Michael Carbin, and Zhangyang Wang. The lottery tickets hypothesis for supervised and self-supervised pre-training in computer vision models. arXiv preprint arXiv:2012.06908, 2020.
239
+ [19] Tianlong Chen, Jonathan Frankle, Shiyu Chang, Sijia Liu, Yang Zhang, Zhangyang Wang, and Michael Carbin. The lottery ticket hypothesis for pre-trained bert networks. arXiv preprint arXiv:2007.12223, 2020.
240
+ [20] Yi-Chen Chen, Shu-wen Yang, Cheng-Kuang Lee, Simon See, and Hung-yi Lee. Speech representation learning through self-supervised pretraining and multi-task finetuning. arXiv preprint arXiv:2110.09930, 2021.
241
+ [21] Jaejin Cho, Murali Karthick Baskar, Ruizhi Li, Matthew Wiesner, Sri Harish Mallidi, Nelson Yalta, Martin Karafiat, Shinji Watanabe, and Takaaki Hori. Multilingual sequence-to-sequence speech recognition: architecture, transfer learning, and language modeling. In 2018 IEEE Spoken Language Technology Workshop (SLT), pages 521–527. IEEE, 2018.
242
+ [22] Jan Chorowski, Grzegorz Ciesielski, Jarosław Dzikowski, Adrian Łancucki, Ricard Marxer, Mateusz Opala, Piotr Pusz, Paweł Rychlikowski, and Michał Stypułkowski. Aligned contrastive predictive coding. arXiv preprint arXiv:2104.11946, 2021.
243
+ [23] Shammur Absar Chowdhury, Nadir Durrani, and Ahmed Ali. What do end-to-end speech models learn about speaker, language and channel information? a layer-wise and neuron-level analysis. arXiv preprint arXiv:2107.00439, 2021.
244
+ [24] Yu-An Chung, Yonatan Belinkov, and James Glass. Similarity analysis of self-supervised speech representations. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 3040–3044. IEEE, 2021.
245
+ [25] Yu-An Chung, Wei-Ning Hsu, Hao Tang, and James Glass. An unsupervised autoregressive model for speech representation learning. arXiv preprint arXiv:1904.03240, 2019.
246
+ [26] Yu-An Chung, Wei-Hung Weng, Schrasing Tong, and James Glass. Unsupervised cross-modal alignment of speech and text embedding spaces. arXiv preprint arXiv:1805.07467, 2018.
247
+ [27] Yu-An Chung, Yu Zhang, Wei Han, Chung-Cheng Chiu, James Qin, Ruoming Pang, and Yonghui Wu. W2v-bert: Combining contrastive learning and masked language modeling for self-supervised speech pre-training. arXiv preprint arXiv:2108.06209, 2021.
248
+ [28] Yu-An Chung, Chenguang Zhu, and Michael Zeng. Splat: Speech-language joint pre-training for spoken language understanding. arXiv preprint arXiv:2010.02295, 2020.
249
+ [29] Alexis Conneau, Alexei Baevski, Ronan Collobert, Abdelrahman Mohamed, and Michael Auli. Unsupervised cross-lingual representation learning for speech recognition. arXiv preprint arXiv:2006.13979, 2020.
250
+ [30] Erica Cooper, Wen-Chin Huang, Tomoki Toda, and Junichi Yamagishi. Generalization ability of mos prediction networks. arXiv preprint arXiv:2110.02635, 2021.
251
+ [31] Jia Cui, Xiaodong Cui, Bhuvana Ramabhadran, Janice Kim, Brian Kingsbury, Jonathan Mamou, Lidia Mangu, Michael Picheny, Tara N Sainath, and Abhinav Sethy. Developing speech recognition systems for corpus indexing under the iarpa babel program. In 2013 IEEE International Conference on Acoustics, Speech and Signal Processing, pages 6753–6757. IEEE, 2013.
252
+ [32] Jia Cui, Brian Kingsbury, Bhuvana Ramabhadran, Abhinav Sethy, Kartik Audhkhasi, Xiaodong Cui, Ellen Kislal, Lidia Mangu, Markus Nussbaum-Thom, Michael Picheny, et al. Multilingual representations for low resource speech recognition and keyword search. In 2015 IEEE Workshop on Automatic Speech Recognition and Understanding (ASRU), pages 259–266. IEEE, 2015.
253
+ [33] Xiaodong Cui, Brian Kingsbury, Jia Cui, Bhuvana Ramabhadran, Andrew Rosenberg, Mohammad Sadegh Rasooli, Owen Rambow, Nizar Habash, and Vaibhava Goel. Improving deep neural network acoustic modeling for audio corpus indexing under the iarpa babel program. In Fifteenth Annual Conference of the International Speech Communication Association, 2014.
254
+ [34] Damai Dai, Li Dong, Yaru Hao, Zhifang Sui, and Furu Wei. Knowledge neurons in pretrained transformers. arXiv preprint arXiv:2104.08696, 2021.
255
+ [35] Fahim Dalvi, Nadir Durrani, Hassan Sajjad, Yonatan Belinkov, Anthony Bau, and James Glass. What is one grain of sand in the desert? analyzing individual neurons in deep nlp models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 6309–6317, 2019.
256
+ [36] Fahim Dalvi, Hassan Sajjad, Nadir Durrani, and Yonatan Belinkov. Analyzing redundancy in pretrained transformer models. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 4908–4926, 2020.
257
+ [37] Nadir Durrani, Hassan Sajjad, Fahim Dalvi, and Yonatan Belinkov. Analyzing individual neurons in pre-trained language models. arXiv preprint arXiv:2010.02695, 2020.
258
+ [38] Radek Fer, Pavel Matejka, Franti ˇ šek Grézl, Oldˇrich Plchot, Karel Vesely, and Jan Honza \` Cernock ˇ y. \` Multilingually trained bottleneck features in spoken language recognition. Computer Speech & Language, 46:252–267, 2017.
259
+ [39] Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. arXiv preprint arXiv:1803.03635, 2018.
260
+ [40] Jonathan Frankle, Gintare Karolina Dziugaite, Daniel Roy, and Michael Carbin. Linear mode connectivity and the lottery ticket hypothesis. In International Conference on Machine Learning, pages 3259–3269. PMLR, 2020.
261
+ [41] Trevor Gale, Erich Elsen, and Sara Hooker. The state of sparsity in deep neural networks. arXiv preprint arXiv:1902.09574, 2019.
262
+ [42] Mark JF Gales, Kate M Knill, Anton Ragni, and Shakti P Rath. Speech recognition and keyword spotting for low-resource languages: Babel project research at cued. In Fourth International Workshop on Spoken Language Technologies for Under-Resourced Languages (SLTU-2014), pages 16–23. International Speech Communication Association (ISCA), 2014.
263
+ [43] Dawei Gao, Xiaoxi He, Zimu Zhou, Yongxin Tong, Ke Xu, and Lothar Thiele. Rethinking pruning for accelerating deep inference at the edge. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 155–164, 2020.
264
+ [44] Heting Gao, Junrui Ni, Yang Zhang, Kaizhi Qian, Shiyu Chang, and Mark Hasegawa-Johnson. Zero-shot cross-lingual phonetic recognition with external language embedding. Proc. Interspeech 2021, pages 1304–1308, 2021.
265
+ [45] Sharath Girish, Shishira R Maiya, Kamal Gupta, Hao Chen, Larry Davis, and Abhinav Shrivastava. The lottery ticket hypothesis for object recognition. arXiv preprint arXiv:2012.04643, 2020.
266
+ [46] Gabriel Goh, Nick Cammarata, Chelsea Voss, Shan Carter, Michael Petrov, Ludwig Schubert, Alec Radford, and Chris Olah. Multimodal neurons in artificial neural networks. Distill, 6(3):e30, 2021.
267
+ [47] Anmol Gulati, James Qin, Chung-Cheng Chiu, Niki Parmar, Yu Zhang, Jiahui Yu, Wei Han, Shibo Wang, Zhengdong Zhang, Yonghui Wu, et al. Conformer: Convolution-augmented transformer for speech recognition. arXiv preprint arXiv:2005.08100, 2020.
268
+ [48] Yiwen Guo, Anbang Yao, and Yurong Chen. Dynamic network surgery for efficient dnns. arXiv preprint arXiv:1608.04493, 2016.
269
+ [49] Song Han, Jeff Pool, John Tran, and William J Dally. Learning both weights and connections for efficient neural networks. arXiv preprint arXiv:1506.02626, 2015.
270
+ [50] Wei Han, Zhengdong Zhang, Yu Zhang, Jiahui Yu, Chung-Cheng Chiu, James Qin, Anmol Gulati, Ruoming Pang, and Yonghui Wu. Contextnet: Improving convolutional neural networks for automatic speech recognition with global context. arXiv preprint arXiv:2005.03191, 2020.
271
+ [51] Babak Hassibi and David G Stork. Second order derivatives for network pruning: Optimal brain surgeon. Morgan Kaufmann, 1993.
272
+ [52] Tianxing He, Yuchen Fan, Yanmin Qian, Tian Tan, and Kai Yu. Reshaping deep neural network for fast decoding by node-pruning. In 2014 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 245–249. IEEE, 2014.
273
+ [53] Wei-Ning Hsu, Benjamin Bolte, Yao-Hung Hubert Tsai, Kushal Lakhotia, Ruslan Salakhutdinov, and Abdelrahman Mohamed. Hubert: Self-supervised speech representation learning by masked prediction of hidden units. arXiv preprint arXiv:2106.07447, 2021.
274
+ [54] Wei-Ning Hsu, Anuroop Sriram, Alexei Baevski, Tatiana Likhomanenko, Qiantong Xu, Vineel Pratap, Jacob Kahn, Ann Lee, Ronan Collobert, Gabriel Synnaeve, et al. Robust wav2vec 2.0: Analyzing domain shift in self-supervised pre-training. arXiv preprint arXiv:2104.01027, 2021.
275
+ [55] Wei-Ning Hsu, Yao-Hung Hubert Tsai, Benjamin Bolte, Ruslan Salakhutdinov, and Abdelrahman Mohamed. Hubert: How much can a bad teacher benefit asr pre-training? In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6533–6537. IEEE, 2021.
276
+ [56] Wen-Chin Huang, Shu-Wen Yang, Tomoki Hayashi, Hung-Yi Lee, Shinji Watanabe, and Tomoki Toda. S3prl-vc: Open-source voice conversion framework with self-supervised speech representations. arXiv preprint arXiv:2110.06280, 2021.
277
+ [57] Dongwei Jiang, Wubo Li, Miao Cao, Ruixiong Zhang, Wei Zou, Kun Han, and Xiangang Li. Speech simclr: Combining contrastive and reconstruction objective for self-supervised speech representation learning. arXiv preprint arXiv:2010.13991, 2020.
278
+ [58] Naoyuki Kanda, Guoli Ye, Yu Wu, Yashesh Gaur, Xiaofei Wang, Zhong Meng, Zhuo Chen, and Takuya Yoshioka. Large-scale pre-training of end-to-end multi-talker asr for meeting transcription with single distant microphone. arXiv preprint arXiv:2103.16776, 2021.
279
+ [59] Eugene Kharitonov, Ann Lee, Adam Polyak, Yossi Adi, Jade Copet, Kushal Lakhotia, Tu-Anh Nguyen, Morgane Rivière, Abdelrahman Mohamed, Emmanuel Dupoux, et al. Text-free prosody-aware generative spoken language modeling. arXiv preprint arXiv:2109.03264, 2021.
280
+ [60] Qiuqiang Kong, Yin Cao, Turab Iqbal, Yuxuan Wang, Wenwu Wang, and Mark D Plumbley. Panns: Large-scale pretrained audio neural networks for audio pattern recognition. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 28:2880–2894, 2020.
281
+ [61] Olga Kovaleva, Alexey Romanov, Anna Rogers, and Anna Rumshisky. Revealing the dark secrets of bert. arXiv preprint arXiv:1908.08593, 2019.
282
+ [62] Cheng-I Lai. Contrastive predictive coding based feature for automatic speaker verification. arXiv preprint arXiv:1904.01575, 2019.
283
+ [63] Cheng-I Lai, Yung-Sung Chuang, Hung-Yi Lee, Shang-Wen Li, and James Glass. Semi-supervised spoken language understanding via self-supervised speech and language model pretraining. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 7468–7472. IEEE, 2021.
284
+ [64] Kushal Lakhotia, Evgeny Kharitonov, Wei-Ning Hsu, Yossi Adi, Adam Polyak, Benjamin Bolte, Tu-Anh Nguyen, Jade Copet, Alexei Baevski, Adelrahman Mohamed, et al. Generative spoken language modeling from raw audio. arXiv preprint arXiv:2102.01192, 2021.
285
+ [65] Yann LeCun, John S Denker, and Sara A Solla. Optimal brain damage. In Advances in neural information processing systems, pages 598–605, 1990.
286
+ [66] Ann Lee, Peng-Jen Chen, Changhan Wang, Jiatao Gu, Xutai Ma, Adam Polyak, Yossi Adi, Qing He, Yun Tang, Juan Pino, et al. Direct speech-to-speech translation with discrete units. arXiv preprint arXiv:2107.05604, 2021.
287
+ [67] Namhoon Lee, Thalaiyasingam Ajanthan, and Philip HS Torr. Snip: Single-shot network pruning based on connection sensitivity. arXiv preprint arXiv:1810.02340, 2018.
288
+ [68] Bo Li, Ruoming Pang, Tara N Sainath, Anmol Gulati, Yu Zhang, James Qin, Parisa Haghani, W Ronny Huang, and Min Ma. Scaling end-to-end models for large-scale multilingual asr. arXiv preprint arXiv:2104.14830, 2021.
289
+ [69] Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. arXiv preprint arXiv:1608.08710, 2016.
290
+ [70] Shengqiang Li, Menglong Xu, and Xiao-Lei Zhang. Efficient conformer-based speech recognition with linear attention. arXiv preprint arXiv:2104.06865, 2021.
291
+ [71] Shaoshi Ling and Yuzong Liu. Decoar 2.0: Deep contextualized acoustic representations with vector quantization. arXiv preprint arXiv:2012.06659, 2020.
292
+ [72] Alexander H Liu, Yu-An Chung, and James Glass. Non-autoregressive predictive coding for learning speech representations from local dependencies. arXiv preprint arXiv:2011.00406, 2020.
293
+ [73] Andy T Liu, Shang-Wen Li, and Hung-yi Lee. Tera: Self-supervised learning of transformer encoder representation for speech. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 29:2351– 2366, 2021.
294
+ [74] Andy T Liu, Shu-wen Yang, Po-Han Chi, Po-chun Hsu, and Hung-yi Lee. Mockingjay: Unsupervised speech representation learning with deep bidirectional transformer encoders. In ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6419–6423. IEEE, 2020.
295
+ [75] Zhuang Liu, Mingjie Sun, Tinghui Zhou, Gao Huang, and Trevor Darrell. Rethinking the value of network pruning. arXiv preprint arXiv:1810.05270, 2018.
296
+ [76] Takashi Maekaku, Xuankai Chang, Yuya Fujita, Li-Wei Chen, Shinji Watanabe, and Alexander Rudnicky. Speech representation learning combining conformer cpc with deep cluster for the zerospeech challenge 2021. arXiv preprint arXiv:2107.05899, 2021.
297
+ [77] Eran Malach, Gilad Yehudai, Shai Shalev-Schwartz, and Ohad Shamir. Proving the lottery ticket hypothesis: Pruning is all you need. In International Conference on Machine Learning, pages 6682–6691. PMLR, 2020.
298
+ [78] Yen Meng, Yi-Hui Chou, Andy T Liu, and Hung-yi Lee. Don’t speak too fast: The impact of data bias on self-supervised speech models. arXiv preprint arXiv:2110.07957, 2021.
299
+ [79] Pavlo Molchanov, Arun Mallya, Stephen Tyree, Iuri Frosio, and Jan Kautz. Importance estimation for neural network pruning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11264–11272, 2019.
300
+ [80] Rajiv Movva and Jason Y Zhao. Dissecting lottery ticket transformers: Structural and behavioral study of sparse neural machine translation. arXiv preprint arXiv:2009.13270, 2020.
301
+ [81] Jesse Mu and Jacob Andreas. Compositional explanations of neurons. arXiv preprint arXiv:2006.14032, 2020.
302
+ [82] Sharan Narang, Erich Elsen, Gregory Diamos, and Shubho Sengupta. Exploring sparsity in recurrent neural networks. arXiv preprint arXiv:1704.05119, 2017.
303
+ [83] Edwin G Ng, Chung-Cheng Chiu, Yu Zhang, and William Chan. Pushing the limits of non-autoregressive speech recognition. arXiv preprint arXiv:2104.03416, 2021.
304
+ [84] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
305
+ [85] Sankaran Panchapagesan, Daniel S Park, Chung-Cheng Chiu, Yuan Shangguan, Qiao Liang, and Alexander Gruenstein. Efficient knowledge distillation for rnn-transducer models. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5639–5643. IEEE, 2021.
306
+ [86] Adam Polyak, Yossi Adi, Jade Copet, Eugene Kharitonov, Kushal Lakhotia, Wei-Ning Hsu, Abdelrahman Mohamed, and Emmanuel Dupoux. Speech resynthesis from discrete disentangled self-supervised representations. arXiv preprint arXiv:2104.00355, 2021.
307
+ [87] Daniel Povey, Gaofeng Cheng, Yiming Wang, Ke Li, Hainan Xu, Mahsa Yarmohammadi, and Sanjeev Khudanpur. Semi-orthogonal low-rank matrix factorization for deep neural networks. In Interspeech, pages 3743–3747, 2018.
308
+ [88] Sai Prasanna, Anna Rogers, and Anna Rumshisky. When bert plays the lottery, all tickets are winning. arXiv preprint arXiv:2005.00561, 2020.
309
+ [89] Vineel Pratap, Anuroop Sriram, Paden Tomasello, Awni Hannun, Vitaliy Liptchinsky, Gabriel Synnaeve, and Ronan Collobert. Massively multilingual asr: 50 languages, 1 model, 1 billion parameters. arXiv preprint arXiv:2007.03001, 2020.
310
+ [90] Vineel Pratap, Qiantong Xu, Jacob Kahn, Gilad Avidov, Tatiana Likhomanenko, Awni Hannun, Vitaliy Liptchinsky, Gabriel Synnaeve, and Ronan Collobert. Scaling up online speech recognition using convnets. arXiv preprint arXiv:2001.09727, 2020.
311
+ [91] Janne Pylkkönen. New pruning criteria for efficient decoding. In Ninth European Conference on Speech Communication and Technology, 2005.
312
+ [92] Vivek Ramanujan, Mitchell Wortsman, Aniruddha Kembhavi, Ali Farhadi, and Mohammad Rastegari. What’s hidden in a randomly weighted neural network? In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11893–11902, 2020.
313
+ [93] Alex Renda, Jonathan Frankle, and Michael Carbin. Comparing rewinding and fine-tuning in neural network pruning. arXiv preprint arXiv:2003.02389, 2020.
314
+ [94] Morgane Rivière, Armand Joulin, Pierre-Emmanuel Mazaré, and Emmanuel Dupoux. Unsupervised pretraining transfers well across languages. In ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 7414–7418. IEEE, 2020.
315
+ [95] Aaqib Saeed, David Grangier, and Neil Zeghidour. Contrastive learning of general-purpose audio representations. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 3875–3879. IEEE, 2021.
316
+ [96] Ramon Sanabria, Austin Waters, and Jason Baldridge. Talk, don’t write: A study of direct speech-based image retrieval. arXiv preprint arXiv:2104.01894, 2021.
317
+ [97] Victor Sanh, Thomas Wolf, and Alexander M Rush. Movement pruning: Adaptive sparsity by fine-tuning. arXiv preprint arXiv:2005.07683, 2020.
318
+ [98] Yuan Shangguan, Jian Li, Qiao Liang, Raziel Alvarez, and Ian McGraw. Optimizing speech recognition for the edge. arXiv preprint arXiv:1909.12408, 2019.
319
+ [99] Yangyang Shi, Yongqiang Wang, Chunyang Wu, Ching-Feng Yeh, Julian Chan, Frank Zhang, Duc Le, and Mike Seltzer. Emformer: Efficient memory transformer based acoustic model for low latency streaming speech recognition. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6783–6787. IEEE, 2021.
320
+ [100] Vesa Siivola, Teemu Hirsimaki, and Sami Virpioja. On growing and pruning kneser–ney smoothed $_ n$ -gram models. IEEE Transactions on Audio, Speech, and Language Processing, 15(5):1617–1624, 2007.
321
+ [101] Gabriel Synnaeve, Qiantong Xu, Jacob Kahn, Tatiana Likhomanenko, Edouard Grave, Vineel Pratap, Anuroop Sriram, Vitaliy Liptchinsky, and Ronan Collobert. End-to-end asr: from supervised to semisupervised learning with modern architectures. arXiv preprint arXiv:1911.08460, 2019.
322
+ [102] Liang-Hsuan Tseng, Yu-Kuan Fu, Heng-Jui Chang, and Hung-yi Lee. Mandarin-english code-switching speech recognition with self-supervised speech representation models. arXiv preprint arXiv:2110.03504, 2021.
323
+ [103] Hugo Van Hamme and Filip Van Aelten. An adaptive-beam pruning technique for continuous speech recognition. In Proceeding of Fourth International Conference on Spoken Language Processing. ICSLP’96, volume 4, pages 2083–2086. IEEE, 1996.
324
+ [104] Ganesh Venkatesh, Alagappan Valliappan, Jay Mahadeokar, Yuan Shangguan, Christian Fuegen, Michael L Seltzer, and Vikas Chandra. Memory-efficient speech recognition on smart devices. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 8368–8372. IEEE, 2021.
325
+ [105] Elena Voita, David Talbot, Fedor Moiseev, Rico Sennrich, and Ivan Titov. Analyzing multi-head selfattention: Specialized heads do the heavy lifting, the rest can be pruned. arXiv preprint arXiv:1905.09418, 2019.
326
+ [106] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R Bowman. Glue: A multi-task benchmark and analysis platform for natural language understanding. arXiv preprint arXiv:1804.07461, 2018.
327
+ [107] Chengyi Wang, Yu Wu, Shujie Liu, Jinyu Li, Yao Qian, Kenichi Kumatani, and Furu Wei. Unispeech at scale: An empirical study of pre-training method on large-scale speech recognition dataset. arXiv preprint arXiv:2107.05233, 2021.
328
+ [108] Chengyi Wang, Yu Wu, Yao Qian, Kenichi Kumatani, Shujie Liu, Furu Wei, Michael Zeng, and Xuedong Huang. Unispeech: Unified speech representation learning with labeled and unlabeled data. arXiv preprint arXiv:2101.07597, 2021.
329
+ [109] Jun Wang, Max W Y Lam, Dan Su, and Dong Yu. Contrastive separative coding for self-supervised representation learning. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 3865–3869. IEEE, 2021.
330
+ [110] Weiran Wang, Qingming Tang, and Karen Livescu. Unsupervised pre-training of bidirectional speech encoders via masked reconstruction. In ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6889–6893. IEEE, 2020.
331
+ [111] Yiming Wang, Jinyu Li, Heming Wang, Yao Qian, Chengyi Wang, and Yu Wu. Wav2vec-switch: Contrastive learning from original-noisy speech pairs for robust speech recognition. arXiv preprint arXiv:2110.04934, 2021.
332
+ [112] Matthew Wiesner, Desh Raj, and Sanjeev Khudanpur. Injecting text and cross-lingual supervision in few-shot learning from self-supervised models. arXiv preprint arXiv:2110.04863, 2021.
333
+ [113] John M Wu, Yonatan Belinkov, Hassan Sajjad, Nadir Durrani, Fahim Dalvi, and James Glass. Similarity analysis of contextual word representation models. arXiv preprint arXiv:2005.01172, 2020.
334
+ [114] Zhaofeng Wu, Ding Zhao, Qiao Liang, Jiahui Yu, Anmol Gulati, and Ruoming Pang. Dynamic sparsity neural networks for automatic speech recognition. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6014–6018. IEEE, 2021.
335
+ [115] Ji Xin, Jimmy Lin, and Yaoliang Yu. What part of the neural network does this? understanding lstms by measuring and dissecting neurons. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 5827–5834, 2019.
336
+ [116] Hainan Xu, Tongfei Chen, Dongji Gao, Yiming Wang, Ke Li, Nagendra Goel, Yishay Carmiel, Daniel Povey, and Sanjeev Khudanpur. A pruned rnnlm lattice-rescoring algorithm for automatic speech recognition. In 2018 IEEE international conference on acoustics, speech and signal processing (ICASSP), pages 5929–5933. IEEE, 2018.
337
+ [117] Qiantong Xu, Alexei Baevski, and Michael Auli. Simple and effective zero-shot cross-lingual phoneme recognition. arXiv preprint arXiv:2109.11680, 2021.
338
+ [118] Qiantong Xu, Alexei Baevski, Tatiana Likhomanenko, Paden Tomasello, Alexis Conneau, Ronan Collobert, Gabriel Synnaeve, and Michael Auli. Self-training and pre-training are complementary for speech recognition. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 3030–3034. IEEE, 2021.
339
+ [119] Jian Xue, Jinyu Li, and Yifan Gong. Restructuring of deep neural network acoustic models with singular value decomposition. In Interspeech, pages 2365–2369, 2013.
340
+ [120] Shu-wen Yang, Po-Han Chi, Yung-Sung Chuang, Cheng-I Jeff Lai, Kushal Lakhotia, Yist Y Lin, Andy T Liu, Jiatong Shi, Xuankai Chang, Guan-Ting Lin, et al. Superb: Speech processing universal performance benchmark. arXiv preprint arXiv:2105.01051, 2021.
341
+ [121] Zhao You, Shulin Feng, Dan Su, and Dong Yu. Speechmoe: Scaling to large acoustic models with dynamic routing mixture of experts. arXiv preprint arXiv:2105.03036, 2021.
342
+ [122] Dong Yu, Frank Seide, Gang Li, and Li Deng. Exploiting sparseness in deep neural networks for large vocabulary speech recognition. In 2012 IEEE International conference on acoustics, speech and signal processing (ICASSP), pages 4409–4412. IEEE, 2012.
343
+ [123] Haonan Yu, Sergey Edunov, Yuandong Tian, and Ari S Morcos. Playing the lottery with rewards and multiple languages: lottery tickets in rl and nlp. arXiv preprint arXiv:1906.02768, 2019.
344
+ [124] Jiahui Yu, Wei Han, Anmol Gulati, Chung-Cheng Chiu, Bo Li, Tara N Sainath, Yonghui Wu, and Ruoming Pang. Universal asr: Unify and improve streaming asr with full-context modeling. arXiv preprint arXiv:2010.06030, 2020.
345
+ [125] Jiahui Yu, Wei Han, Anmol Gulati, Chung-Cheng Chiu, Bo Li, Tara N Sainath, Yonghui Wu, and Ruoming Pang. Dual-mode asr: Unify and improve streaming asr with full-context modeling. Proceedings of ICLR, 2021.
346
+ [126] Yu Zhang, Daniel S Park, Wei Han, James Qin, Anmol Gulati, Joel Shor, Aren Jansen, Yuanzhong Xu, Yanping Huang, Shibo Wang, et al. Bigssl: Exploring the frontier of large-scale semi-supervised learning for automatic speech recognition. arXiv preprint arXiv:2109.13226, 2021.
347
+ [127] Yu Zhang, James Qin, Daniel S Park, Wei Han, Chung-Cheng Chiu, Ruoming Pang, Quoc V Le, and Yonghui Wu. Pushing the limits of semi-supervised learning for automatic speech recognition. arXiv preprint arXiv:2010.10504, 2020.
348
+ [128] Yuekai Zhang, Sining Sun, and Long Ma. Tiny transducer: A highly-efficient speech recognition model on edge devices. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6024–6028. IEEE, 2021.
349
+ [129] Han Zhu, Li Wang, Ying Hou, Jindong Wang, Gaofeng Cheng, Pengyuan Zhang, and Yonghong Yan. Wav2vec-s: Semi-supervised pre-training for speech recognition. arXiv preprint arXiv:2110.04484, 2021.
parse/train/UoVpP8R2Vn/UoVpP8R2Vn_content_list.json ADDED
@@ -0,0 +1,1245 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "PARP: Prune, Adjust and Re-Prune for Self-Supervised Speech Recognition ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 259,
8
+ 122,
9
+ 733,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Cheng-I Jeff Lai1, Yang Zhang2⇤, Alexander H. Liu1⇤, Shiyu Chang2, 4⇤ Yi-Lun Liao1, Yung-Sung Chuang1, 3, Kaizhi Qian2, Sameer Khurana1 David $\\mathbf { C o x } ^ { 2 }$ , James Glass1 1MIT CSAIL, 2MIT-IBM Watson AI Lab, 3National Taiwan University, $^ 4 \\mathrm { U C }$ Santa Barbara ",
17
+ "bbox": [
18
+ 199,
19
+ 224,
20
+ 795,
21
+ 285
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "clai24@mit.edu ",
28
+ "bbox": [
29
+ 444,
30
+ 292,
31
+ 552,
32
+ 304
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 462,
42
+ 324,
43
+ 535,
44
+ 339
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Self-supervised speech representation learning (speech SSL) has demonstrated the benefit of scale in learning rich representations for Automatic Speech Recognition (ASR) with limited paired data, such as wav2vec 2.0. We investigate the existence of sparse subnetworks in pre-trained speech SSL models that achieve even better low-resource ASR results. However, directly applying widely adopted pruning methods such as the Lottery Ticket Hypothesis (LTH) is suboptimal in the computational cost needed. Moreover, we show that the discovered subnetworks yield minimal performance gain compared to the original dense network. ",
51
+ "bbox": [
52
+ 232,
53
+ 348,
54
+ 766,
55
+ 459
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "We present Prune-Adjust-Re-Prune (PARP), which discovers and finetunes subnetworks for much better performance, while only requiring a single downstream ASR finetuning run. PARP is inspired by our surprising observation that subnetworks pruned for pre-training tasks need merely a slight adjustment to achieve a sizeable performance boost in downstream ASR tasks. Extensive experiments on lowresource ASR verify (1) sparse subnetworks exist in mono-lingual/multi-lingual pre-trained speech SSL, and (2) the computational advantage and performance gain of PARP over baseline pruning methods. ",
62
+ "bbox": [
63
+ 232,
64
+ 460,
65
+ 766,
66
+ 571
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "In particular, on the $1 0 \\mathrm { { m i n } }$ Librispeech split without LM decoding, PARP discovers subnetworks from wav2vec 2.0 with an absolute $1 0 . 9 \\% / 1 2 . 6 \\%$ WER decrease compared to the full model. We further demonstrate the effectiveness of PARP via: cross-lingual pruning without any phone recognition degradation, the discovery of a multi-lingual subnetwork for 10 spoken languages in 1 finetuning run, and its applicability to pre-trained BERT/XLNet for natural language tasks1. ",
73
+ "bbox": [
74
+ 232,
75
+ 573,
76
+ 766,
77
+ 657
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 Introduction ",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 174,
87
+ 672,
88
+ 310,
89
+ 690
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "For many low-resource spoken languages in the world, collecting large-scale transcribed corpora is very costly and sometimes infeasible. Inspired by efforts such as the IARPA BABEL program, Automatic Speech Recognition (ASR) trained without sufficient transcribed speech data has been a critical yet challenging research agenda in speech processing [31, 33, 42, 32, 21]. Recently, SelfSupervised Speech Representation Learning (speech SSL) has emerged as a promising pathway toward solving low-resource ASR [84, 25, 110, 6, 29, 127, 55, 27]. Speech SSL involves pre-training a speech representation module on large-scale unlabelled data with a self-supervised learning objective, followed by finetuning on a small amount of supervised transcriptions. Many recent studies have demonstrated the empirical successes of speech SSL on low-resource English and multi-lingual ASR, matching systems trained on fully-supervised settings [6, 29, 127, 4, 126]. Prior research attempts, however, focus on pre-training objectives [84, 25, 110, 72, 57, 74, 71, 73, 55, 22, 27, 17, 129], scaling up speech representation modules [5, 6, 53], pre-training data selections [108, 54, 107, 111, 78], or applications of pre-trained speech representations [26, 62, 94, 28, 63, 29, 76, 120, 64, 117, 112, 44, 4, 86, 59, 66, 2, 56, 102, 15, 30, 20]. In this work, we aim to develop an orthogonal approach that is complementary to these existing speech SSL studies, that achieves 1) lower architectural complexity and 2) higher performance (lower WER) under the same low-resource ASR settings. ",
96
+ "bbox": [
97
+ 174,
98
+ 698,
99
+ 826,
100
+ 863
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 173,
109
+ 90,
110
+ 825,
111
+ 147
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Neural network pruning [65, 51, 49, 69], as well as the more recently proposed Lottery Ticket Hypothesis (LTH) $\\mathbb { | \\vert 3 9 \\| }$ , provide a potential solution that accomplishes both objectives. According to LTH, there exists sparse subnetworks that can achieve the same or even better accuracy than the original dense network. Such phenomena have been successfully observed in various domains: Natural Language Processing (NLP) [123, 19, 88, 80], Computer Vision (CV) [18, 45], and many others. All finding sparse subnetworks with comparable or better performance than the dense network. Given the lack of similar studies on pruning self-supervised ASR, we intend to fill this gap by finding sparse subnetworks within a pre-trained speech SSL that can achieve superior performance to the full pre-trained model on downstream ASR tasks. ",
118
+ "bbox": [
119
+ 174,
120
+ 151,
121
+ 825,
122
+ 277
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "However, directly applying widely-adopted pruning methods, such as One-Shot Magnitude Pruning (OMP) and Iterative Magnitude Pruning (IMP) [49, 39], to pre-trained speech SSL suffers from two challenges. First, adopting these methods in the conventional pruning framework is extremely time-consuming for SOTA speech SSL models. OMP and IMP involve more than one round of finetuning on downstream tasks (c.f. Figure $\\blacktriangleleft$ , and finetuning for ASR is timeconsuming and computationally demanding2. The second challenge is that we do not observe any performance improvement of the subnetworks over the original dense network with OMP or IMP. Figure 3 shows the WER under low-resource scenarios of the subnetworks identified by OMP (purple line) and IMP (blue dashed line) at different sparsity levels. None of the sparsity levels achieves a visible drop in WER compared to the zero sparsity case, corresponding to the original dense network. These two challenges have prompted us to ask – do there exist sparse subnetworks within pre-trained speech SSL with improved performance on low-resource ASR? How can we discover them efficiently in a single downstream finetuning run? ",
129
+ "bbox": [
130
+ 174,
131
+ 285,
132
+ 616,
133
+ 532
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "image",
139
+ "img_path": "images/5ad30abc480b483eec225c5622e6b8845d1bd60713e2b6d8a5af4e19dca47a3c.jpg",
140
+ "image_caption": [
141
+ "Figure 1: Number of ASR finetuning iterations needed (y-axis) versus target sparsities $\\mathbf { \\check { X } }$ -axis) for each downstream task/language. Crossreferencing Figure $\\textcircled { 3 }$ indicates that IMP requires linearly more compute to match the performance (either sparsity/WER) of PARP. "
142
+ ],
143
+ "image_footnote": [],
144
+ "bbox": [
145
+ 627,
146
+ 285,
147
+ 818,
148
+ 380
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "We propose a magnitude-based unstructured pruning method [41, 11], termed Prune-Adjust-Re-Prune (PARP), for discovering sparse subnetworks within pre-trained speech SSL. PARP consists of the following two steps: ",
155
+ "bbox": [
156
+ 174,
157
+ 539,
158
+ 823,
159
+ 580
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "1. Directly prune the SSL pre-trained model at target sparsity, and obtain an initial subnetwork and an initial pruning mask. \n2. Finetune the initial subnetwork on target downstream task/language. During finetuning, zero out the pruned weights specified by the pruning mask, but allow the weights be updated by gradient descent during backpropogation. After a few number of model updates, re-prune the updated subnetwork at target sparsity again. ",
166
+ "bbox": [
167
+ 212,
168
+ 584,
169
+ 825,
170
+ 669
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "Step 1 provides an initial subnetwork that is agnostic to the downstream task, and Step 2 makes learnable adjustments by reviving pruned out weights. A formal and generalized description and its extension are introduced in Section $3 .$ Different from pruning methods in [49, 39], PARP allows pruned-out weights to be revived during finetuning. Although such a high-level idea was introduced in $\\lVert \\rVert \\bigotimes \\rVert$ , we provide an alternative insight: despite its flexibility, Step 2 only makes minimal adjustment to the initial subnetwork, and obtaining a good initial subnetwork in Step 1 is the key. We empirically show in Section $\\textcircled { 3 }$ that any task-agnostic subnetwork surprisingly provides a good basis for Step 2, suggesting that the initial subnetwork can be cheaply obtained either from a readily available task/language or directly pruning the pre-trained SSL model itself. In addition, this observation allows us to perform cross-lingual pruning (mask transfer) experiments, where the initial subnetwork is obtained via a different language other than the target language. ",
177
+ "bbox": [
178
+ 173,
179
+ 672,
180
+ 826,
181
+ 824
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "Our Contributions. We conduct extensive PARP and baseline (OMP and IMP) pruning experiments on low-resource ASR with mono-lingual (pre-trained wav2vec 2.0 [6]) and cross-lingual (pre-trained XLSR-53 [29]) transfer. PARP finds significantly superior speech SSL subnetworks for low-resource ",
188
+ "bbox": [
189
+ 176,
190
+ 830,
191
+ 821,
192
+ 872
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "ASR, while only requiring a single pass of downstream ASR finetuning. Due to its simplicity, PARP adds minimal computation overhead to existing SSL downstream finetuning. ",
199
+ "bbox": [
200
+ 173,
201
+ 92,
202
+ 821,
203
+ 119
204
+ ],
205
+ "page_idx": 2
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "• We show that sparse subnetworks exist in pre-trained speech SSL when finetuned for low-resource ASR. In addition, PARP achieves superior results to OMP and IMP across all sparsities, amount of finetuning supervision, pre-trained model scale, and downstream spoken languages. Specifically, on Librispeech $1 0 \\mathrm { { m i n } }$ without LM decoding, PARP discovers subnetworks from wav2vec 2.0 with an absolute $1 0 . 9 \\% / 1 2 . 6 \\%$ WER decrease compared to the full model, without modifying the finetuning hyper-parameters or objective (Section 4.1) • Ablation studies on demonstrating the importance of PARP’s initial subnetwork (Section 4.2) • PARP minimizes phone recognition error increases in cross-lingual mask transfer, where a subnetwork pruned for ASR in one spoken language is adapted for ASR in another language (Section $4 . 3 { \\bar { ) } }$ . PARP can also be applied to efficient multi-lingual subnetwork discovery for 10 spoken languages (Section $4 . { \\overset { \\vartriangle } { 4 } } )$ • Last but not least, we demonstrate PARP’s effectiveness on pre-trained BERT/XLNet, mitigating the cross-task performance degradation reported in BERT-Ticket [19] (Section 4.5) ",
210
+ "bbox": [
211
+ 217,
212
+ 123,
213
+ 825,
214
+ 318
215
+ ],
216
+ "page_idx": 2
217
+ },
218
+ {
219
+ "type": "text",
220
+ "text": "Significance. Findings of this work not only complement and advance current and future speech SSL for low-resource ASR, but also provide new insights for the rich body of pruning work. ",
221
+ "bbox": [
222
+ 174,
223
+ 324,
224
+ 823,
225
+ 352
226
+ ],
227
+ "page_idx": 2
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "2 Preliminaries ",
232
+ "text_level": 1,
233
+ "bbox": [
234
+ 174,
235
+ 363,
236
+ 318,
237
+ 381
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "2.1 Problem Formulation ",
244
+ "text_level": 1,
245
+ "bbox": [
246
+ 174,
247
+ 387,
248
+ 364,
249
+ 401
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "Consider the low-resource ASR problem, where there is only a small transcribed training set $( x , y ) \\in$ $\\mathcal { D } _ { l }$ . Here $x$ represents input audio, and $y$ represents output transcription. Subscript $l \\in \\{ 1 , 2 , \\cdots \\}$ represents the downstream spoken language identity. Because of the small dataset size, empirical risk minimization generally does not yield good results. Speech SSL instead assumes there is a much larger unannotated dataset $x \\in \\mathcal { D } _ { 0 }$ . SSL pre-trains a neural network $f ( x ; \\theta )$ , where $\\theta \\in \\mathcal { R } ^ { d }$ represents the network parameters and $d$ represents the number of parameters, on some self-supervised objective, and obtains the pre-trained weights $\\theta _ { 0 }$ . $f ( x ; \\theta _ { 0 } )$ is then finetuned on downstream ASR tasks specified by a downstream loss $\\mathcal { L } _ { l } ( \\boldsymbol { \\theta } )$ , such as CTC, and evaluated on target dataset $\\mathcal { D } _ { l }$ . ",
256
+ "bbox": [
257
+ 173,
258
+ 406,
259
+ 825,
260
+ 517
261
+ ],
262
+ "page_idx": 2
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "Our goal is to discover a subnetwork that minimizes downstream ASR WER on $\\mathcal { D } _ { l }$ . Formally, denote $m \\in \\{ 0 , 1 \\} ^ { d }$ , as a binary pruning mask for the pre-trained weights $\\theta _ { 0 }$ , and $\\theta ^ { l }$ as the finetuned weights on $\\mathcal { D } _ { l }$ . The ideal pruning method should learn $( m , \\theta ^ { l } )$ , such that the subnetwork $f ( x ; m \\odot \\theta ^ { l } )$ (where $\\odot$ is element-wise product) achieves minimal finetuning $\\mathcal { L } _ { l } ( \\boldsymbol { \\theta } )$ loss on $\\mathcal { D } _ { l }$ . ",
267
+ "bbox": [
268
+ 173,
269
+ 522,
270
+ 825,
271
+ 580
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "2.2 Pruning Targets and Settings ",
278
+ "text_level": 1,
279
+ "bbox": [
280
+ 176,
281
+ 589,
282
+ 416,
283
+ 604
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "We adopted pre-trained speech SSL wav2vec2 and xlsr for the pre-trained initialization $\\theta _ { 0 }$ . ",
290
+ "bbox": [
291
+ 176,
292
+ 607,
293
+ 779,
294
+ 622
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "wav2vec 2.0 We took wav2vec 2.0 base (wav2vec2-base) and large (wav2vec2-large) pre-trained on Librispeech 960 hours $\\textcircled { 6 }$ . During finetuning, a task specific linear layer is added on top of wav2vec2 and jointly finetuned with CTC loss. More details can be found in Appendix 8. ",
301
+ "bbox": [
302
+ 173,
303
+ 627,
304
+ 825,
305
+ 670
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "XLSR-53 (xlsr) shares the same architecture, pre-training and finetuning objectives as wav2vec2-large. xlsr is pre-trained on 53 languages sampled from CommonVoice, BABEL, and Multilingual LibriSpeech, totaling for 56k hours of multi-lingual speech data. ",
312
+ "bbox": [
313
+ 173,
314
+ 676,
315
+ 823,
316
+ 718
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "We consider three settings where wav2vec2 and xlsr are used as the basis for low-resource ASR: ",
323
+ "bbox": [
324
+ 171,
325
+ 724,
326
+ 816,
327
+ 738
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "LSR: Low-Resource English ASR. Mono-lingual pre-training and finetuning – an English pretrained speech SSL such as wav2vec2 is finetuned for low-resource English ASR. ",
334
+ "bbox": [
335
+ 174,
336
+ 744,
337
+ 820,
338
+ 773
339
+ ],
340
+ "page_idx": 2
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "H2L: High-to-Low Resource Transfer for Multi-lingual ASR. Mono-lingual pre-training and multi-lingual finetuning – a speech SSL pre-trained on a high-resource language such as English is finetuned for low-resource multi-lingual ASR. ",
345
+ "bbox": [
346
+ 173,
347
+ 779,
348
+ 823,
349
+ 821
350
+ ],
351
+ "page_idx": 2
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "CSR: Cross-lingual Transfer for Multi-lingual ASR. Multi-lingual pre-training and finetuning – a cross-lingual pretrained speech SSL such as xlsr is finetuned for low-resource multi-lingual ASR. ",
356
+ "bbox": [
357
+ 171,
358
+ 827,
359
+ 823,
360
+ 856
361
+ ],
362
+ "page_idx": 2
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "2.3 Subnetwork Discovery in Pre-trained SSL ",
367
+ "text_level": 1,
368
+ "bbox": [
369
+ 173,
370
+ 864,
371
+ 504,
372
+ 880
373
+ ],
374
+ "page_idx": 2
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "One obvious solution to the aforementioned problem in Section $2 . 1$ is to directly apply pruning with rewinding to $\\theta _ { 0 }$ , which has been successfully applied to pre-trained BERT $\\dot { \\mathbb { I D } }$ and SimCLR [18]. ",
379
+ "bbox": [
380
+ 173,
381
+ 883,
382
+ 826,
383
+ 911
384
+ ],
385
+ "page_idx": 2
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "All pruning methods, including our proposed PARP, are based on Unstructured Magnitude Pruning (UMP) $\\mathbb { B 9 } \\mathbb { \\breve { A 1 } }$ , where weights of the lowest magnitudes are pruned out regardless of the network structure to meet the target sparsity level. We introduce four pruning baselines below, and we also provide results with Random Pruning (RP) [39, 41, 19], where weights in $\\theta _ { 0 }$ are randomly eliminated. ",
390
+ "bbox": [
391
+ 174,
392
+ 92,
393
+ 826,
394
+ 147
395
+ ],
396
+ "page_idx": 3
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "Task-Aware Subnetwork Discovery is pruning with target dataset $D _ { l }$ seen in advance, including One-Shot Magnitude Pruning (OMP) and Iterative Magnitude Pruning (IMP). OMP is summarized as: ",
401
+ "bbox": [
402
+ 173,
403
+ 154,
404
+ 823,
405
+ 181
406
+ ],
407
+ "page_idx": 3
408
+ },
409
+ {
410
+ "type": "text",
411
+ "text": "1. Finetune pretrained weights $\\theta _ { 0 }$ on target dataset $\\mathcal { D } _ { l }$ to get the finetuned weights $\\theta ^ { l }$ . ",
412
+ "bbox": [
413
+ 199,
414
+ 184,
415
+ 774,
416
+ 199
417
+ ],
418
+ "page_idx": 3
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "2. Apply UMP on $\\theta ^ { l }$ and retrieve pruning mask $m$ ",
423
+ "bbox": [
424
+ 210,
425
+ 200,
426
+ 537,
427
+ 215
428
+ ],
429
+ "page_idx": 3
430
+ },
431
+ {
432
+ "type": "text",
433
+ "text": "IMP breaks down the above subnetwork discovery phase into multiple iterations – in our case multiple downstream ASR finetunings. Each iteration itself is an OMP with a fraction of the target sparsity pruned. We follow the IMP implementation described in BERT-Ticket $\\mathbb { I m }$ , where each iteration prunes out $10 \\%$ of the remaining weights. The main bottleneck for OMP and IMP is the computational cost, since multiple rounds of finetunings are required for subnetwork discovery. ",
434
+ "bbox": [
435
+ 174,
436
+ 218,
437
+ 825,
438
+ 287
439
+ ],
440
+ "page_idx": 3
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "Task-Agnostic Subnetwork Discovery refers to pruning without having seen $D _ { l }$ nor $l$ in advance. One instance is applying UMP directly on $\\theta _ { 0 }$ without any downstream finetuning to retrieve $m$ , referred to as Magnitude Pruning at Pre-trained Initailizations (MPI). Another case is pruning weights finetuned for a different language $t$ , i.e. applying UMP on $\\theta ^ { t }$ for the target language $l$ ; in our study, we refer to this as cross-lingual mask transfer. While these approaches do not require target task finetuning, the discovered subnetworks generally have worse performance than those from OMP or IMP. ",
445
+ "bbox": [
446
+ 173,
447
+ 294,
448
+ 825,
449
+ 377
450
+ ],
451
+ "page_idx": 3
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "The above methods are only for subnetwork discovery via applying pruning mask $m$ on $\\theta _ { 0 }$ . The discovered subnetwork $f ( x ; m \\odot \\theta _ { 0 } )$ needs another downstream finetuning to recover the pruning loss3, i.e. finetune $f ( x ; m \\odot \\theta _ { 0 } )$ on $D _ { l }$ . ",
456
+ "bbox": [
457
+ 174,
458
+ 383,
459
+ 825,
460
+ 426
461
+ ],
462
+ "page_idx": 3
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "3 Method ",
467
+ "text_level": 1,
468
+ "bbox": [
469
+ 174,
470
+ 436,
471
+ 271,
472
+ 454
473
+ ],
474
+ "page_idx": 3
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "In this section, we highlight our proposed pruning method, PARP (Section $3 . 1 )$ , its underlying intuition (Section $3 . 2 )$ , and an extension termed PARP-P (Section $\\textcircled { 3 . 3 }$ . ",
479
+ "bbox": [
480
+ 176,
481
+ 460,
482
+ 821,
483
+ 489
484
+ ],
485
+ "page_idx": 3
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "3.1 Algorithm ",
490
+ "text_level": 1,
491
+ "bbox": [
492
+ 174,
493
+ 497,
494
+ 285,
495
+ 512
496
+ ],
497
+ "page_idx": 3
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "We formally describe PARP with the notations from Section 2. A visual overview of PARP is Figure 8. ",
502
+ "bbox": [
503
+ 176,
504
+ 515,
505
+ 823,
506
+ 531
507
+ ],
508
+ "page_idx": 3
509
+ },
510
+ {
511
+ "type": "text",
512
+ "text": "1: Assume there are $N$ model updates in target task/language $l$ ’s downstream finetuning. \n2: Take a pre-trained SSL $f ( x ; { \\bar { \\theta } } _ { 0 } )$ model. Apply task-agnostic subnetwork discovery, such as MPI4 , at target \nsparsity to obtain initial subnetwork $f ( x ; m _ { 0 } \\odot \\theta _ { 0 } )$ . Set $m = m _ { 0 }$ and variable . \n3: repeat \n4: Zero-out masked-out weights in $\\theta _ { n 1 }$ given by $m$ . Lift up $m$ such that whole $\\theta _ { n 1 }$ is updatable. \n5: Train $f ( x ; \\theta _ { n 1 } )$ for $_ n$ model updates and obtain $f ( x ; \\theta _ { n 2 } )$ . \n6: Apply UMP on $f ( x ; \\theta _ { n 2 } )$ and adjust $m$ accordingly. The adjusted subnetwork is $f ( x ; m \\odot \\theta _ { n 2 } )$ . Set \nvariable $n _ { 1 } = n _ { 2 }$ . \n7: until total model updates reach $N$ . \n8: Return finetuned subnetwork $f ( x ; m \\odot \\theta _ { N } )$ . ",
513
+ "bbox": [
514
+ 178,
515
+ 556,
516
+ 825,
517
+ 689
518
+ ],
519
+ "page_idx": 3
520
+ },
521
+ {
522
+ "type": "text",
523
+ "text": "Empirically, we found the choice of $n$ has little impact. In contrast to OMP/IMP/MPI, PARP allows the pruned-out weights to take gradient descent updates. A side benefit of PARP is it jointly discovers and finetunes subnetwork in a single pass, instead of two or more in OMP and IMP. ",
524
+ "bbox": [
525
+ 174,
526
+ 699,
527
+ 826,
528
+ 741
529
+ ],
530
+ "page_idx": 3
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "3.2 Obtaining and Adjusting the Initial Subnetwork ",
535
+ "text_level": 1,
536
+ "bbox": [
537
+ 173,
538
+ 750,
539
+ 547,
540
+ 765
541
+ ],
542
+ "page_idx": 3
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "PARP achieves superior or comparable pruning results as task-aware subnetwork discovery, while inducing similar computational cost as task-agnostic subnetwork discovery. How does it get the best of both worlds? The key is the discovered subnetworks from task-aware and task-agnostic prunings have high, non-trivial overlaps in LSR, H2L, and CSR. We first define Intersection over Union (IOU) for quantifying subnetworks’ (represented by their pruning masks $m ^ { a }$ and $m ^ { b }$ ) similarity: ",
547
+ "bbox": [
548
+ 173,
549
+ 767,
550
+ 825,
551
+ 837
552
+ ],
553
+ "page_idx": 3
554
+ },
555
+ {
556
+ "type": "equation",
557
+ "img_path": "images/ade60d5dea32bf3c0e93ea40adc82323075ae0a146e08752fe886c23a4224bc3.jpg",
558
+ "text": "$$\n\\operatorname { I O U } ( m ^ { a } , m ^ { b } ) \\triangleq { \\frac { | ( m ^ { a } = 1 ) \\cap ( m ^ { b } = 1 ) | } { | ( m ^ { a } = 1 ) \\cup ( m ^ { b } = 1 ) | } }\n$$",
559
+ "text_format": "latex",
560
+ "bbox": [
561
+ 362,
562
+ 840,
563
+ 635,
564
+ 876
565
+ ],
566
+ "page_idx": 3
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "Take H2L and CSR for instance, Figure $2$ visualizes language pairs’ OMP pruning mask IOUs on wav2vec2 and xlsr. Observe the high overlaps across all pairs, but also the high IOUs with the MPI masks (second to last row). We generalize these observations to the following: ",
571
+ "bbox": [
572
+ 173,
573
+ 90,
574
+ 823,
575
+ 133
576
+ ],
577
+ "page_idx": 4
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "Observation 1 For any sparsity, any amount of finetuning supervision, any pre-training model scale, and any downstream spoken languages, the non-zero ASR pruning masks obtained from task-agnostic subnetwork discovery has high IOUs with those obtained from task-aware subnetwork discovery. ",
582
+ "bbox": [
583
+ 196,
584
+ 143,
585
+ 800,
586
+ 199
587
+ ],
588
+ "page_idx": 4
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "Observation 1 suggests that any task-agnostic subnetwork could sufficiently be a good initial subnetwork in PARP due to the high similarities. In the same instance for H2L and CSR, we could either take MPI on wav2vec2 and xlsr, or take OMP on a different spoken language as the initial subnetworks. Similarly in LSR, we take MPI on wav2vec2 as the initial subnetwork. The underlying message is – the initial subnetwork can be obtained cheaply, without target task finetuning. ",
593
+ "bbox": [
594
+ 174,
595
+ 213,
596
+ 826,
597
+ 284
598
+ ],
599
+ "page_idx": 4
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "Now, because of the high similarity, the initial subnetwork (represented by its pruning mask $m _ { 0 }$ ) needed merely a slight adjustment for the target downstream task. While there are techniques such as dynamic mask adjustment [48], important weights pruning $\\mathbb { \\underline { { \\nabla 7 9 } } } ]$ , and deep rewiring $\\mathbb { m }$ , we provide an even simpler alternative suited for our setting. Instead of permanently removing the masked-out weights from the computation graph, PARP merely zeroes them out. Weights that are important for the downstream task (the “important weights”) should emerge with gradient updates; those that are relatively irrelevant should decrease in magnitude, and thus be zero-outed at the end. Doing so circumvents the need of straight-through estimation or additional sparsity loss, see Table 1 of $\\dot { \\mathbb { Z } } \\dot { \\mathbb { Z } } \\mathbb { I }$ ",
604
+ "bbox": [
605
+ 173,
606
+ 289,
607
+ 825,
608
+ 401
609
+ ],
610
+ "page_idx": 4
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "3.3 PARP-Progressive (PARP-P) ",
615
+ "text_level": 1,
616
+ "bbox": [
617
+ 176,
618
+ 410,
619
+ 406,
620
+ 424
621
+ ],
622
+ "page_idx": 4
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "An extension to PARP is PARP-P, where the second P stands for Progressive. In PARP-P, the initial subnetwork starts at a lower sparsity, and progressively prune up to the target sparsity $s$ in Step 2. The intuition is that despite Observation $\\bigtriangledown$ not any subnetwork can be a good initial subnetwork, such as those obtained from RP, or those obtained at very high sparsities in MPI/OMP/IMP. We show later that PARP-P is especially effective in higher sparsity regions, e.g. $90 \\%$ for LSR. Note that PARP-P has the same computational cost as PARP, and the only difference is the initial starting sparsity in Step 1. ",
627
+ "bbox": [
628
+ 174,
629
+ 428,
630
+ 825,
631
+ 512
632
+ ],
633
+ "page_idx": 4
634
+ },
635
+ {
636
+ "type": "image",
637
+ "img_path": "images/d1a8ab0cd8540ceffb7e200ce060ffbed2ea3fda8f98a261908fef21bcbe4cdc.jpg",
638
+ "image_caption": [
639
+ "Figure 2: IOUs over all spoken language pairs’ OMP pruning masks on finetuned wav2vec2 and xlsr. Second to last row is the IOUs between OMP masks and the MPI masks from pre-trained wav2vec2 and xlsr. Here, we show the IOUs at $50 \\%$ sparsity, and the rest can be found in Appendix $1 1 .$ Surprisingly at any sparsities, there is a high, non-trivial (c.f. RP in the last row), similarity $( > 9 0 \\% )$ ) between all spoken language OMP masks, as well as with the MPI masks. Language IDs are in Appendix 9. "
640
+ ],
641
+ "image_footnote": [],
642
+ "bbox": [
643
+ 189,
644
+ 517,
645
+ 810,
646
+ 700
647
+ ],
648
+ "page_idx": 4
649
+ },
650
+ {
651
+ "type": "text",
652
+ "text": "4 Experiments and Analysis ",
653
+ "text_level": 1,
654
+ "bbox": [
655
+ 176,
656
+ 786,
657
+ 423,
658
+ 803
659
+ ],
660
+ "page_idx": 4
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "4.1 Comparing PARP, OMP, and IMP on LSR, H2L, and CSR ",
665
+ "text_level": 1,
666
+ "bbox": [
667
+ 174,
668
+ 809,
669
+ 598,
670
+ 824
671
+ ],
672
+ "page_idx": 4
673
+ },
674
+ {
675
+ "type": "text",
676
+ "text": "Our experimental setup can be found in Appendix $\\bigtriangledown .$ We first investigate the existence of sparse subnetworks in speech SSL. Figure $3$ shows the pruning results on LSR. Observe that subnetworks discovered by PARP and PARP-P can achieve $60 \\sim 8 0 \\%$ sparsities with minimal degradation to the full models. The gap between PARP and other pruning methods also widens as sparsities increase. For instance, Table 1 compares PARP and PARP-P with OMP and IMP at $90 \\%$ sparsity, and PARP-P has a $40 \\%$ absolute WER reduction. In addition, observe the WER reduction with PARP in the low sparsity regions on the $1 0 \\mathrm { { m i n } }$ split in Figure $3$ . The same effect is not seen with OMP, IMP, nor MPI. Table $\\nsupseteq$ compares the subnetworks discovered by PARP with the full wav2vec2 and prior work on LSR under the same setting5. Surprisingly, the discovered subnetwork attains an absolute $1 0 . 9 \\% / 1 2 . 6 \\%$ WER reduction over the full wav2vec2-large. We hypothesize that the performance gains are attributed to pruning out generic, unnecessary weights while preserving important weights, which facilitates training convergence. In other words, PARP provides additional regularization effects to downstream finetuning. We also examined the effectiveness of IMP with different rewinding starting points as studied in $\\mathbb { \\lVert 4 0 , \\rVert 9 3 \\rVert }$ , and found rewinding initializations bear minimal effect on downstream ASR. Full rewinding details are in Appendix 10. ",
677
+ "bbox": [
678
+ 174,
679
+ 828,
680
+ 825,
681
+ 911
682
+ ],
683
+ "page_idx": 4
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "",
688
+ "bbox": [
689
+ 173,
690
+ 90,
691
+ 825,
692
+ 217
693
+ ],
694
+ "page_idx": 5
695
+ },
696
+ {
697
+ "type": "image",
698
+ "img_path": "images/0581ad7d5bca3d4e4c4e360ee99e63a3c6cf1c46b9eaea72b698a7344e6bc8c5.jpg",
699
+ "image_caption": [
700
+ "Figure 3: Comparison of different pruning techniques on LSR (wav2vec2 with $1 0 \\mathrm { { m i n } / 1 \\mathrm { { h } / 1 0 \\mathrm { { h } } } }$ Librispeech finetuning splits). PARP (black line) and PARP-P (black dashed line) are especially effective under ultra-low data regime (e.g. $1 0 \\mathrm { { m i n } } )$ and high-sparsity $( 7 0 - 1 0 0 \\% )$ regions. "
701
+ ],
702
+ "image_footnote": [],
703
+ "bbox": [
704
+ 205,
705
+ 219,
706
+ 790,
707
+ 481
708
+ ],
709
+ "page_idx": 5
710
+ },
711
+ {
712
+ "type": "table",
713
+ "img_path": "images/b5909bd5408a72df3a27c95b58c24b94ee65cb54fecb2928e1c5da743d77f6dc.jpg",
714
+ "table_caption": [
715
+ "Table 1: WER comparison of pruning LSR: wav2vec2-base at $90 \\%$ sparsity with 10h finetuning on Librispeech without LM decoding. At $90 \\%$ sparsity, OMP/IMP/MPI perform nearly as bad as RP. sub-finetuning stands for subnetwork finetuning. "
716
+ ],
717
+ "table_footnote": [],
718
+ "table_body": "<table><tr><td>Method</td><td>#ASR finetunings</td><td>test clean</td><td>test other</td></tr><tr><td>RP + sub-finetuning</td><td>1</td><td>94.5</td><td>96.4</td></tr><tr><td>MPI + sub-finetuning</td><td>1</td><td>93.6</td><td>96.1</td></tr><tr><td>OMP + sub-finetuning</td><td>2</td><td>92.0</td><td>95.3</td></tr><tr><td>IMP + sub-finetuning</td><td>10</td><td>89.6</td><td>93.9</td></tr><tr><td>PARP (90%→90%)</td><td>1</td><td>83.6</td><td>90.7</td></tr><tr><td>PARP-P 70%→90%</td><td>1</td><td>51.9</td><td>69.1</td></tr><tr><td>60%→80%→90%</td><td>2</td><td>33.6</td><td>53.3</td></tr></table>",
719
+ "bbox": [
720
+ 176,
721
+ 622,
722
+ 495,
723
+ 757
724
+ ],
725
+ "page_idx": 5
726
+ },
727
+ {
728
+ "type": "table",
729
+ "img_path": "images/95a680c68e44169a3371b0ef9598ed2f4f625366ddde816736783d65c435c4d4.jpg",
730
+ "table_caption": [
731
+ "Table 2: WER comparison of PARP for LSR with previous speech SSL results on Librispeech $1 0 \\mathrm { { m i n } }$ . PARP discovers sparse subnetworks within wav2vec2 with lower WER while adding minimal computational cost to the original ASR finetuning. "
732
+ ],
733
+ "table_footnote": [],
734
+ "table_body": "<table><tr><td>Method</td><td>test clean</td><td>test other</td></tr><tr><td>Continuous BERT 国 + LM</td><td>49.5</td><td>66.3</td></tr><tr><td>Discrete BERT 国 + LM</td><td>16.3</td><td>25.2</td></tr><tr><td>wav2vec2-base reported 回</td><td>46.9</td><td>50.9</td></tr><tr><td>wav2vec2-large reported [6</td><td>43.5</td><td>45.3</td></tr><tr><td>wav2vec2-base replicated</td><td>49.3</td><td>53.2</td></tr><tr><td>wav2vec2-large replicated</td><td>46.3</td><td>48.1</td></tr><tr><td>wav2vec2-base w/10% PARP</td><td>38.0</td><td>44.3</td></tr><tr><td>wav2vec2-largew/10%PARP</td><td>33.7</td><td>37.2</td></tr></table>",
735
+ "bbox": [
736
+ 529,
737
+ 622,
738
+ 815,
739
+ 757
740
+ ],
741
+ "page_idx": 5
742
+ },
743
+ {
744
+ "type": "text",
745
+ "text": "Next, we examine if the pruning results of LSR transfers to H2L and CSR. Figure $\\sharp$ is pruning H2L and CSR with 1h of Dutch $( n l )$ finetuning, and the same conclusion can be extended to other spoken languages. Comparing Figures $\\textcircled { 3 }$ and $^ { 4 , }$ we notice that shapes of their pruning curves are different, which can be attributed to the effect of character versus phone predictions. Comparing left and center of Figure $\\mathbb { H }$ we show that PARP and OMP reach $50 \\%$ sparsity on H2L and $70 \\%$ sparsity on CSR with minimal degradations. Furthermore, while PARP is more effective than OMP on H2L for all sparsities, such advantage is only visible in the higher sparsity regions on CSR. Lastly, Table $3$ compares the subnetworks from H2L and CSR with prior work. Even with as high as $90 \\%$ sparsities in either settings, subnetworks from PARP and OMP out-performs prior art. ",
746
+ "bbox": [
747
+ 173,
748
+ 763,
749
+ 826,
750
+ 888
751
+ ],
752
+ "page_idx": 5
753
+ },
754
+ {
755
+ "type": "image",
756
+ "img_path": "images/368fc7de4c84f2fff3c1151872af912baa4191aaba16b87769268efdafa32b71.jpg",
757
+ "image_caption": [
758
+ "Figure 4: Comparison of pruning techniques on H2L & CSR with 1h of Dutch $( n l )$ ASR finetuning. (Left) Pruning H2L (wav2vec2-base $+ n l )$ . (Center) Pruning CSR $( \\mathbf { x } 1 \\mathbf { s } \\mathbf { r } + n l )$ . (Right) Pruning jointly-finetuned wav2vec2-base and xlsr on $n l$ . Trend is consistent for other 9 spoken languages. "
759
+ ],
760
+ "image_footnote": [],
761
+ "bbox": [
762
+ 176,
763
+ 89,
764
+ 821,
765
+ 228
766
+ ],
767
+ "page_idx": 6
768
+ },
769
+ {
770
+ "type": "table",
771
+ "img_path": "images/a91fad9ca9fb13bc5b629abbb1cfd01530cd8bc871339c8c108f870e8db01460.jpg",
772
+ "table_caption": [
773
+ "Table 3: Comparing subnetworks discovered by OMP and PARP from wav2vec2-base and xlsr with prior work on H2L and CSR. PER is averaged over 10 languages. "
774
+ ],
775
+ "table_footnote": [],
776
+ "table_body": "<table><tr><td>Method</td><td>Pre-training</td><td>Sparsity</td><td>avg. PER</td></tr><tr><td>Bottleneck 38</td><td>Babel-1070h</td><td>0%</td><td>44.9</td></tr><tr><td>CPC 图</td><td>LS-100h</td><td>0%</td><td>50.9</td></tr><tr><td>Modified CPC 四</td><td>LS-360h</td><td>0%</td><td>44.5</td></tr><tr><td>wav2vec2-base</td><td>LS-960h</td><td>0%</td><td>18.7</td></tr><tr><td>wav2vec2+ OMP</td><td>LS-960h</td><td>70%</td><td>41.3</td></tr><tr><td>wav2vec2+PARP</td><td>LS-960h</td><td>90%</td><td>40.1</td></tr><tr><td> xlsr reported [29]</td><td>56,000h</td><td>0%</td><td>7.6</td></tr><tr><td>xlsr replicated</td><td>56.000h</td><td>0%</td><td>9.9</td></tr><tr><td>xlsr+OMP</td><td>56.000h</td><td>90%</td><td>33.9</td></tr><tr><td>xlsr+PARP-P</td><td>56,000h</td><td>90%</td><td>22.9</td></tr></table>",
777
+ "bbox": [
778
+ 199,
779
+ 342,
780
+ 539,
781
+ 494
782
+ ],
783
+ "page_idx": 6
784
+ },
785
+ {
786
+ "type": "image",
787
+ "img_path": "images/a7694b462a9bd4edc7bebc7f494284e276f249da605557bab0d6e11d793a54a1.jpg",
788
+ "image_caption": [
789
+ "Figure 5: PARP’s final subnetwork and its initial MPI subnetwork exceeds $9 9 . 9 9 \\%$ IOU after $20 \\%$ sparsity (black line). "
790
+ ],
791
+ "image_footnote": [],
792
+ "bbox": [
793
+ 578,
794
+ 292,
795
+ 816,
796
+ 421
797
+ ],
798
+ "page_idx": 6
799
+ },
800
+ {
801
+ "type": "text",
802
+ "text": "4.2 How Important is the Initial Subnetwork (Step 1) in PARP? ",
803
+ "text_level": 1,
804
+ "bbox": [
805
+ 173,
806
+ 515,
807
+ 620,
808
+ 530
809
+ ],
810
+ "page_idx": 6
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "Obtaining a good initial subnetwork (Step 1) is critical for PARP, as Adjust & Re-Prune (Step 2) is operated on top of it. In this section, we isolate the effect of Step 1 from Step 2 and examine the role of the initial subnetwork in PARP. Figure $\\boxed { 6 }$ shows PARP with a random subnetwork from RP, instead of subnetwork from MPI, as the initial subnetwork. PARP with random initial subnetwork performs nearly as bad as RP (grey line), signifying the importance of the initial subnetwork. ",
815
+ "bbox": [
816
+ 173,
817
+ 536,
818
+ 825,
819
+ 606
820
+ ],
821
+ "page_idx": 6
822
+ },
823
+ {
824
+ "type": "text",
825
+ "text": "Secondly, despite Observation 1, MPI in high sparsity regions (e.g. $90 \\%$ in LSR) is not a good initial subnetwork, since the majority of the weights are already pruned out (thus is hard to be recovered from). From Figure 3, PARP performs only on par or even worse than IMP in high sparsity regions. In contrast, PARP-P starts with a relatively lower sparsity (e.g. $60 \\%$ or $70 \\%$ MPI), and progressively prunes up to the target sparsity. Doing so yields considerable performance gain (up to over $50 \\%$ absolute WER reduction). Third, as shown in Figure $\\underline { { \\boldsymbol { \\mathsf { F } } } } ,$ there is ${ > } 9 9 . 9 9 \\%$ IOU between the final “adjusted” subnetwork from PARP and its initial MPI subnetwork after $2 0 \\%$ sparsity, confirming Step 2 indeed only made minimal “adjustment” to the initial subnetwork. ",
826
+ "bbox": [
827
+ 173,
828
+ 611,
829
+ 825,
830
+ 723
831
+ ],
832
+ "page_idx": 6
833
+ },
834
+ {
835
+ "type": "image",
836
+ "img_path": "images/517450599b9f945f7458ac2802e6cf1240256e1de40f4600508dd23410512726.jpg",
837
+ "image_caption": [
838
+ "Figure 6: PARP with random (red line) v.s. with MPI (black line) initial subnetworks in LSR. "
839
+ ],
840
+ "image_footnote": [],
841
+ "bbox": [
842
+ 174,
843
+ 742,
844
+ 825,
845
+ 877
846
+ ],
847
+ "page_idx": 6
848
+ },
849
+ {
850
+ "type": "image",
851
+ "img_path": "images/b448f34fe2f5b61d0a35a138bcba3b78cf3bdaf96af9e1f464158c795b7e04af.jpg",
852
+ "image_caption": [
853
+ "Transferrability of Language Masks at $5 0 \\%$ Sparsity in wav2vec 2.0 with PARP "
854
+ ],
855
+ "image_footnote": [],
856
+ "bbox": [
857
+ 511,
858
+ 97,
859
+ 807,
860
+ 267
861
+ ],
862
+ "page_idx": 7
863
+ },
864
+ {
865
+ "type": "image",
866
+ "img_path": "images/663911949f9d167024d6cfa3907289acfb193d6fa8fb47241943d41d0ad56c73.jpg",
867
+ "image_caption": [
868
+ "Transferrability of Language Masks at $5 0 \\%$ Sparsity in wav2vec 2.0 ",
869
+ "Figure 7: (Left) Cross-lingual OMP mask transfer with regular subnetwork finetuning. (Right) Cross-lingual OMP mask transfer with PARP. Last rows are RP. Values are relative PER gains over same-language pair transfer (hence the darker the bettter). Both are on H2L with pretrained wav2vec2. The same observation is observed on CSR with pretrained xlsr in Appendix 12. "
870
+ ],
871
+ "image_footnote": [],
872
+ "bbox": [
873
+ 186,
874
+ 97,
875
+ 482,
876
+ 267
877
+ ],
878
+ "page_idx": 7
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "4.3 Are Pruning Masks Transferrable across Spoken Languages? ",
883
+ "text_level": 1,
884
+ "bbox": [
885
+ 174,
886
+ 339,
887
+ 640,
888
+ 353
889
+ ],
890
+ "page_idx": 7
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "Is it possible to discover subnetworks with the wrong guidance, and how transferrable are such subnetworks? More concretely, we investigate the transferability of OMP pruning mask discovered from a source language by finetuning its subnetwork on another target language. Such study should shed some insights on the underlying influence of spoken language structure on network pruning – that similar language pairs should be transferrable. From a practical perspective, consider pruning for an unseen new language in H2L, we could deploy the readily available discovered subnetworks and thus save the additional finetuning and memory costs. ",
895
+ "bbox": [
896
+ 174,
897
+ 358,
898
+ 826,
899
+ 455
900
+ ],
901
+ "page_idx": 7
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "In this case, the initial subnetwork of PARP is given by applying OMP on another spoken language. According to Observation $^ { 1 , }$ PARP’s Step 2 is effectively under-going cross-lingual subnetwork adaptation for the target language. Figure $\\checkmark$ shows the transferability results on H2L with pre-trained wav2vec2-base. On the left is a subnetwork at $50 \\%$ sparsity transfer with regular finetuning that contains subtle language clusters – for example, when finetuning on $r u$ , source masks from es, fr, it, ky, nl induces a much higher PER compare to that from sv-SE, tr, tt, zh-TW. On the right of Figure 7, we show that there is no cross-lingual PER degradation with PARP, supporting our claim above. ",
906
+ "bbox": [
907
+ 174,
908
+ 462,
909
+ 825,
910
+ 559
911
+ ],
912
+ "page_idx": 7
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "4.4 Discovering a Single Subnetwork for 10 Spoken Languages ",
917
+ "text_level": 1,
918
+ "bbox": [
919
+ 173,
920
+ 568,
921
+ 622,
922
+ 582
923
+ ],
924
+ "page_idx": 7
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "A major downside of pruning pre-trained SSL models for many downstream tasks is the exponential computational and memory costs. In H2L and CSR, the same pruning method needs to be repeatedly re-run for each downstream spoken language at each given sparsity. Therefore, we investigate the possibility of obtaining a single shared subnetwork for all downstream languages. Instead of finetuning separately for each language, we construct a joint phoneme dictionary and finetune wav2vec2 and xlsr on all 10 languages jointly in H2L and CSR. Note that PARP with joint-finetuning can retrieve a shared subnetwork in a single run. The shared subnetwork can then be decoded for each language separately. The right side of Figure 4 illustrates the results. ",
929
+ "bbox": [
930
+ 173,
931
+ 587,
932
+ 825,
933
+ 698
934
+ ],
935
+ "page_idx": 7
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "Comparing joint-finetuning and individual-finetuning, in H2L, we found that the shared subnetwork obtained via OMP has lower PERs between $60 \\sim 8 0 \\%$ but slightly higher PERs in other sparsity regions; in CSR, the shared subnetwork from OMP has slightly worse PERs at all sparsities. Comparing PARP to OMP in joint-finetuning, we found that while PARP is effective in the individual-finetuning setting (left of Figure $\\textcircled { 4 }$ , its shared subnetworks are only slightly better than OMP in both H2L and CSR (right of Figure $\\bigoplus$ . The smaller performance gain of PARP over OMP in pruning jointly-finetuned models is expected, since the important weights for each language are disjoint and joint-finetuning may send mixed signal to the adjustment step in PARP (see Figure $\\bigtriangledown$ for better illustration). ",
940
+ "bbox": [
941
+ 173,
942
+ 703,
943
+ 825,
944
+ 815
945
+ ],
946
+ "page_idx": 7
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "4.5 Does PARP work on Pre-trained BERT/XLNet? ",
951
+ "text_level": 1,
952
+ "bbox": [
953
+ 174,
954
+ 821,
955
+ 537,
956
+ 837
957
+ ],
958
+ "page_idx": 7
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "We also analyzed whether Observation $\\perp$ holds for pre-trained BERT/XLNet on 9 GLUE tasks. Surprisingly, we found that there are also high $( > 9 8 \\% )$ overlaps between the 9 tasks’ IMP pruning masks. Given this observation, we replicated the cross-task subnetwork transfer experiment (take subnetwork found by IMP at task A and finetune it for task B) in BERT-Ticket $\\mathbb { \\oplus }$ on pre-trained BERT/XLNet with PARP. Table $\\boxed { 4 }$ compares PARP (averaged for each target task) to regular finetuning, hinting the applicability of PARP to more pre-trained NLP models and downstream natural language tasks. Detailed scores and figures are in Appendix 13. ",
963
+ "bbox": [
964
+ 174,
965
+ 842,
966
+ 825,
967
+ 911
968
+ ],
969
+ "page_idx": 7
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "",
974
+ "bbox": [
975
+ 173,
976
+ 92,
977
+ 823,
978
+ 121
979
+ ],
980
+ "page_idx": 8
981
+ },
982
+ {
983
+ "type": "image",
984
+ "img_path": "images/6b33062236588c83677a91b2b658d463d018dbf68d345eb44aa4a62c1b368a57.jpg",
985
+ "image_caption": [
986
+ "Figure 8: Conceptual sketch of pruning the few task-specific important weights in pretrained SSL. (A) Task-aware subnetwork discovery(OMP/IMP) is more effective than task-agnostic pruning (MPI) since it foresees the important weights in advance, via multiple downstream finetunings. $\\mathbf { ( B ) }$ PARP starts with an initial subnetwork given by MPI. Observation 1 suggests that the subnetwork is only off by the few important weights, and thus Step 2 revives them by adjusting the initial subnetwork. "
987
+ ],
988
+ "image_footnote": [],
989
+ "bbox": [
990
+ 174,
991
+ 160,
992
+ 825,
993
+ 523
994
+ ],
995
+ "page_idx": 8
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "4.6 Implications ",
1000
+ "text_level": 1,
1001
+ "bbox": [
1002
+ 174,
1003
+ 608,
1004
+ 300,
1005
+ 622
1006
+ ],
1007
+ "page_idx": 8
1008
+ },
1009
+ {
1010
+ "type": "text",
1011
+ "text": "Observation 1 is consistent with the findings of probing large pre-trained NLP models, that pre-trained SSL models are over-parametrized and there exist task-oriented weights/neurons. Figure $2$ implies that these important weights only account for a small part of the pre-trained speech SSL. In fact, a large body of NLP work is dedicated to studying task-oriented weights in pre-trained models. To name a few, $\\boxed { 1 3 7 } \\boxed { 3 5 } \\boxed { 7 } \\boxed { 1 1 5 }$ measured, [7, 34, 61] leveraged, [81, 46] visualized, and [105, 36, 13] pruned out these important weights/neurons via probing and quantifying contextualized representations. Based on Observation 1, we can project that these NLP results should in general transfer to speech, see pioneering studies [9, 8, 24, 23]. However, different from them, PARP leverages important weights for UMP on the whole network structure instead of just the contextualized representations. ",
1012
+ "bbox": [
1013
+ 173,
1014
+ 627,
1015
+ 825,
1016
+ 751
1017
+ ],
1018
+ "page_idx": 8
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "text": "We could further hypothesize that a good pruning algorithm avoids pruning out task-specific neurons in pre-trained SSL [67, 48, 79], see Figure $8 .$ This hypothesis not only offers an explanation on why PARP is effective in high sparsity regions and cross-lingual mask transfer, it also suggests that an iterative method such as IMP is superior to OMP because IMP gradually avoids pruning out important weights in several iterations, at the cost of more compute6. Finally, we make connections to prior work that showed RP prevail [11, 19, 75, 77, 92] – under a certain threshold and setting, task-specific neurons are less likely to get “accidentally” pruned and thus accuracy is preserved even with RP. ",
1023
+ "bbox": [
1024
+ 173,
1025
+ 757,
1026
+ 825,
1027
+ 856
1028
+ ],
1029
+ "page_idx": 8
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "5 Related Work ",
1034
+ "text_level": 1,
1035
+ "bbox": [
1036
+ 174,
1037
+ 89,
1038
+ 321,
1039
+ 106
1040
+ ],
1041
+ "page_idx": 9
1042
+ },
1043
+ {
1044
+ "type": "text",
1045
+ "text": "Modern Speech Paradigm and ASR Pruning. As model scale [101, 6, 50, 47, 124, 90, 89, 125, 16, 121, $\\bar { \\left\\lfloor 6 8 \\right\\rfloor }$ and model pre-training [6, 127, 29, 60, 57, 63, 55, 118, 14, 58, 96, 95, 83, 86, 109] have become the two essential ingredients for obtaining SOTA performance in ASR and other speech tasks, applying and developing various forms of memory-efficient algorithms, such as network pruning, to these large-scale pre-trained models will predictably soon become an indispensable research endeavor. Early work on ASR pruning can be dated back to pruning decoding search spaces [1, 91, 100, 52, 116, 128] and HMM state space $\\mathbb { I O 3 } \\mathbb { I }$ . Since the seminal work of Yu et al. $\\mathbb { \\lVert 1 2 2 \\rVert }$ , ASR pruning has focused primarily on end-to-end network architecture: [98, 114] applied pruning and quantization to LSTM-based RNN-Transducers, $\\lVert \\overline { { 8 5 } } \\rVert$ applied knowledge distillation to Conformer-based RNN-Transducers, [104, 99, $\\textcircled { 7 0 }$ designed efficient architecture/mechanisms for LSTM, Transformer, Conformer-based ASR models, $\\pmb { \\mathbb { B 2 } }$ applied pruning to Deep Speech, [12] introduced SNR-based probabilistic pruning on LSTM-based CTC model, $\\check { \\mathbb { B } } 3 \\mathbb { I }$ proposed entropyregularizer for LSTM-based ASR model, [119, $\\textcircled { 8 7 }$ applied SVD on ASR models’ weight matrices. We emphasize that our work is the first on pruning large self-supervised pre-trained models for low-resource and multi-lingual ASR. In addition, to our knowledge, none of the prior speech pruning work demonstrated the pruned models attain superior performance than its original counterpart. ",
1046
+ "bbox": [
1047
+ 173,
1048
+ 112,
1049
+ 825,
1050
+ 333
1051
+ ],
1052
+ "page_idx": 9
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "text": "6 Conclusions ",
1057
+ "text_level": 1,
1058
+ "bbox": [
1059
+ 174,
1060
+ 342,
1061
+ 307,
1062
+ 358
1063
+ ],
1064
+ "page_idx": 9
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "We introduce PARP, a simple and intuitive pruning method for self-supervised speech recognition. We conduct extensive experiments on pruning pre-trained wav2vec 2.0 and XLSR-53 under three low-resource settings, demonstrating (1) PARP discovers better subnetworks than baseline pruning methods while requiring a fraction of their computational cost, (2) the discovered subnetworks yields over $10 \\%$ WER reduction over the full model, (3) PARP induces minimal cross-lingual subnetwork adaptation errors, (4) PARP can discover a shared subnetwork for multiple spoken languages in one pass, and (5) PARP significantly reduces cross-task adaptation errors of pre-trained BERT/XLNet. Beyond the scope of our study, we aspire PARP as the beginning of many future endeavours on developing more efficient speech SSL models. ",
1069
+ "bbox": [
1070
+ 174,
1071
+ 361,
1072
+ 825,
1073
+ 486
1074
+ ],
1075
+ "page_idx": 9
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "Broader Impact. The broader impact of this research work is making speech technologies more accessible in two orthogonal dimensions: (i) extending modern-day speech technology to many under-explored low-resource spoken languages, and (ii) introducing a new and flexible pruning technique to current and future speech SSL frameworks that reduces the computational costs required for adapting (finetuning) them to custom settings. We do not see its potential societal harm. ",
1080
+ "bbox": [
1081
+ 174,
1082
+ 492,
1083
+ 825,
1084
+ 561
1085
+ ],
1086
+ "page_idx": 9
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "Limitations and Future Work ",
1091
+ "text_level": 1,
1092
+ "bbox": [
1093
+ 174,
1094
+ 569,
1095
+ 423,
1096
+ 587
1097
+ ],
1098
+ "page_idx": 9
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "We make clear of the major limitations of our work, and the full list is in Appendix 19. The basis of all the pruning methods in the study is unstructured magnitude weight pruning. Although sparsity is explicitly enforced in the models, we do not suggest that the sparse models are more memory or energy efficient than the original dense models. We do believe that our methodology and results should provide meaningful insights and be easily extended upon to more advanced unstructured or structured pruning methods. We are also curious of the possibility of finetuning or storing modern speech SSL models on local hardware devices. ",
1103
+ "bbox": [
1104
+ 173,
1105
+ 593,
1106
+ 825,
1107
+ 690
1108
+ ],
1109
+ "page_idx": 9
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "Results on cross-lingual mask transfer on pre-trained wav2vec 2.0 in Section $\\boxed { 4 . 3 }$ is limited to ASR. We do not claim pruning masks to be transferrable across speech tasks (e.g. prune wav2vec2 for speaker ID and transfer for ASR). We provide a pilot cross-task mask transfer study on 3 speech tasks (phone recognition, speaker recognition, slot-filling) in SUPERB [120], and results is in Appendix 16. ",
1114
+ "bbox": [
1115
+ 174,
1116
+ 696,
1117
+ 825,
1118
+ 752
1119
+ ],
1120
+ "page_idx": 9
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "We claim PARP could improve the downstream ASR performance over the full wav2vec 2.0, yet we do not claim it as a plug-and-play method into any SOTA ASR pipeline, such as $\\mathbb { L } 2 6 \\mathbb { I }$ , to get a performance boost. We provide a preliminary experiment on combining PARP and transformer-LM decoding in Appendix $\\boxed { 1 5 }$ Nonetheless, due to resource limitations and to isolate the effect of pruning, it remains upon investigations on the complete effects of speech pruning in different setups. ",
1125
+ "bbox": [
1126
+ 174,
1127
+ 758,
1128
+ 825,
1129
+ 828
1130
+ ],
1131
+ "page_idx": 9
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "Acknowledgments ",
1136
+ "text_level": 1,
1137
+ "bbox": [
1138
+ 174,
1139
+ 837,
1140
+ 330,
1141
+ 853
1142
+ ],
1143
+ "page_idx": 9
1144
+ },
1145
+ {
1146
+ "type": "text",
1147
+ "text": "We thank IBM for the donation to MIT of the Satori GPU cluster, and John Cohn for maintaining the cluster. We also thank Lucy Chai, Wei-Ning Hsu, Desh Raj, Shu-wen Leo Yang, Abdelrahman Mohamedm, Erica Cooper, and anonymous reviewers for helpful suggestions and paper editing. This work is part of the low-resource language learning project funded by the MIT-IBM Waston AI Lab. ",
1148
+ "bbox": [
1149
+ 176,
1150
+ 856,
1151
+ 823,
1152
+ 911
1153
+ ],
1154
+ "page_idx": 9
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "References ",
1159
+ "text_level": 1,
1160
+ "bbox": [
1161
+ 174,
1162
+ 90,
1163
+ 266,
1164
+ 106
1165
+ ],
1166
+ "page_idx": 10
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "[1] Sherif Abdou and Michael S Scordilis. Beam search pruning in speech recognition using a posterior probability-based confidence measure. Speech Communication, 42(3-4):409–428, 2004. \n[2] Junyi Ao, Rui Wang, Long Zhou, Shujie Liu, Shuo Ren, Yu Wu, Tom Ko, Qing Li, Yu Zhang, Zhihua Wei, et al. Speecht5: Unified-modal encoder-decoder pre-training for spoken language processing. arXiv preprint arXiv:2110.07205, 2021. \n[3] Alexei Baevski, Michael Auli, and Abdelrahman Mohamed. Effectiveness of self-supervised pre-training for speech recognition. arXiv preprint arXiv:1911.03912, 2019. \n[4] Alexei Baevski, Wei-Ning Hsu, Alexis Conneau, and Michael Auli. Unsupervised speech recognition. arXiv preprint arXiv:2105.11084, 2021. \n[5] Alexei Baevski, Steffen Schneider, and Michael Auli. vq-wav2vec: Self-supervised learning of discrete speech representations. arXiv preprint arXiv:1910.05453, 2019. \n[6] Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, and Michael Auli. wav2vec 2.0: A framework for self-supervised learning of speech representations. arXiv preprint arXiv:2006.11477, 2020. \n[7] Anthony Bau, Yonatan Belinkov, Hassan Sajjad, Nadir Durrani, Fahim Dalvi, and James Glass. Identifying and controlling important neurons in neural machine translation. arXiv preprint arXiv:1811.01157, 2018. \n[8] Yonatan Belinkov, Ahmed Ali, and James Glass. Analyzing phonetic and graphemic representations in end-to-end automatic speech recognition. arXiv preprint arXiv:1907.04224, 2019. \n[9] Yonatan Belinkov and James Glass. Analyzing hidden representations in end-to-end automatic speech recognition systems. arXiv preprint arXiv:1709.04482, 2017. \n[10] Guillaume Bellec, David Kappel, Wolfgang Maass, and Robert Legenstein. Deep rewiring: Training very sparse deep networks. arXiv preprint arXiv:1711.05136, 2017. \n[11] Davis Blalock, Jose Javier Gonzalez Ortiz, Jonathan Frankle, and John Guttag. What is the state of neural network pruning? arXiv preprint arXiv:2003.03033, 2020. \n[12] Stefan Braun and Shih-Chii Liu. Parameter uncertainty for end-to-end speech recognition. In ICASSP 2019-2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5636–5640. IEEE, 2019. \n[13] Steven Cao, Victor Sanh, and Alexander M Rush. Low-complexity probing via finding subnetworks. arXiv preprint arXiv:2104.03514, 2021. \n[14] William Chan, Daniel Park, Chris Lee, Yu Zhang, Quoc Le, and Mohammad Norouzi. Speechstew: Simply mix all available speech recognition data to train one large neural network. arXiv preprint arXiv:2104.02133, 2021. \n[15] Xuankai Chang, Takashi Maekaku, Pengcheng Guo, Jing Shi, Yen-Ju Lu, Aswin Shanmugam Subramanian, Tianzi Wang, Shu-wen Yang, Yu Tsao, Hung-yi Lee, et al. An exploration of self-supervised pretrained representations for end-to-end speech recognition. arXiv preprint arXiv:2110.04590, 2021. \n[16] Sanyuan Chen, Yu Wu, Zhuo Chen, Jian Wu, Jinyu Li, Takuya Yoshioka, Chengyi Wang, Shujie Liu, and Ming Zhou. Continuous speech separation with conformer. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5749–5753. IEEE, 2021. \n[17] Sanyuan Chen, Yu Wu, Chengyi Wang, Zhengyang Chen, Zhuo Chen, Shujie Liu, Jian Wu, Yao Qian, Furu Wei, Jinyu Li, et al. Unispeech-sat: Universal speech representation learning with speaker aware pre-training. arXiv preprint arXiv:2110.05752, 2021. \n[18] Tianlong Chen, Jonathan Frankle, Shiyu Chang, Sijia Liu, Yang Zhang, Michael Carbin, and Zhangyang Wang. The lottery tickets hypothesis for supervised and self-supervised pre-training in computer vision models. arXiv preprint arXiv:2012.06908, 2020. \n[19] Tianlong Chen, Jonathan Frankle, Shiyu Chang, Sijia Liu, Yang Zhang, Zhangyang Wang, and Michael Carbin. The lottery ticket hypothesis for pre-trained bert networks. arXiv preprint arXiv:2007.12223, 2020. \n[20] Yi-Chen Chen, Shu-wen Yang, Cheng-Kuang Lee, Simon See, and Hung-yi Lee. Speech representation learning through self-supervised pretraining and multi-task finetuning. arXiv preprint arXiv:2110.09930, 2021. \n[21] Jaejin Cho, Murali Karthick Baskar, Ruizhi Li, Matthew Wiesner, Sri Harish Mallidi, Nelson Yalta, Martin Karafiat, Shinji Watanabe, and Takaaki Hori. Multilingual sequence-to-sequence speech recognition: architecture, transfer learning, and language modeling. In 2018 IEEE Spoken Language Technology Workshop (SLT), pages 521–527. IEEE, 2018. \n[22] Jan Chorowski, Grzegorz Ciesielski, Jarosław Dzikowski, Adrian Łancucki, Ricard Marxer, Mateusz Opala, Piotr Pusz, Paweł Rychlikowski, and Michał Stypułkowski. Aligned contrastive predictive coding. arXiv preprint arXiv:2104.11946, 2021. \n[23] Shammur Absar Chowdhury, Nadir Durrani, and Ahmed Ali. What do end-to-end speech models learn about speaker, language and channel information? a layer-wise and neuron-level analysis. arXiv preprint arXiv:2107.00439, 2021. \n[24] Yu-An Chung, Yonatan Belinkov, and James Glass. Similarity analysis of self-supervised speech representations. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 3040–3044. IEEE, 2021. \n[25] Yu-An Chung, Wei-Ning Hsu, Hao Tang, and James Glass. An unsupervised autoregressive model for speech representation learning. arXiv preprint arXiv:1904.03240, 2019. \n[26] Yu-An Chung, Wei-Hung Weng, Schrasing Tong, and James Glass. Unsupervised cross-modal alignment of speech and text embedding spaces. arXiv preprint arXiv:1805.07467, 2018. \n[27] Yu-An Chung, Yu Zhang, Wei Han, Chung-Cheng Chiu, James Qin, Ruoming Pang, and Yonghui Wu. W2v-bert: Combining contrastive learning and masked language modeling for self-supervised speech pre-training. arXiv preprint arXiv:2108.06209, 2021. \n[28] Yu-An Chung, Chenguang Zhu, and Michael Zeng. Splat: Speech-language joint pre-training for spoken language understanding. arXiv preprint arXiv:2010.02295, 2020. \n[29] Alexis Conneau, Alexei Baevski, Ronan Collobert, Abdelrahman Mohamed, and Michael Auli. Unsupervised cross-lingual representation learning for speech recognition. arXiv preprint arXiv:2006.13979, 2020. \n[30] Erica Cooper, Wen-Chin Huang, Tomoki Toda, and Junichi Yamagishi. Generalization ability of mos prediction networks. arXiv preprint arXiv:2110.02635, 2021. \n[31] Jia Cui, Xiaodong Cui, Bhuvana Ramabhadran, Janice Kim, Brian Kingsbury, Jonathan Mamou, Lidia Mangu, Michael Picheny, Tara N Sainath, and Abhinav Sethy. Developing speech recognition systems for corpus indexing under the iarpa babel program. In 2013 IEEE International Conference on Acoustics, Speech and Signal Processing, pages 6753–6757. IEEE, 2013. \n[32] Jia Cui, Brian Kingsbury, Bhuvana Ramabhadran, Abhinav Sethy, Kartik Audhkhasi, Xiaodong Cui, Ellen Kislal, Lidia Mangu, Markus Nussbaum-Thom, Michael Picheny, et al. Multilingual representations for low resource speech recognition and keyword search. In 2015 IEEE Workshop on Automatic Speech Recognition and Understanding (ASRU), pages 259–266. IEEE, 2015. \n[33] Xiaodong Cui, Brian Kingsbury, Jia Cui, Bhuvana Ramabhadran, Andrew Rosenberg, Mohammad Sadegh Rasooli, Owen Rambow, Nizar Habash, and Vaibhava Goel. Improving deep neural network acoustic modeling for audio corpus indexing under the iarpa babel program. In Fifteenth Annual Conference of the International Speech Communication Association, 2014. \n[34] Damai Dai, Li Dong, Yaru Hao, Zhifang Sui, and Furu Wei. Knowledge neurons in pretrained transformers. arXiv preprint arXiv:2104.08696, 2021. \n[35] Fahim Dalvi, Nadir Durrani, Hassan Sajjad, Yonatan Belinkov, Anthony Bau, and James Glass. What is one grain of sand in the desert? analyzing individual neurons in deep nlp models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 6309–6317, 2019. \n[36] Fahim Dalvi, Hassan Sajjad, Nadir Durrani, and Yonatan Belinkov. Analyzing redundancy in pretrained transformer models. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 4908–4926, 2020. \n[37] Nadir Durrani, Hassan Sajjad, Fahim Dalvi, and Yonatan Belinkov. Analyzing individual neurons in pre-trained language models. arXiv preprint arXiv:2010.02695, 2020. \n[38] Radek Fer, Pavel Matejka, Franti ˇ šek Grézl, Oldˇrich Plchot, Karel Vesely, and Jan Honza \\` Cernock ˇ y. \\` Multilingually trained bottleneck features in spoken language recognition. Computer Speech & Language, 46:252–267, 2017. \n[39] Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. arXiv preprint arXiv:1803.03635, 2018. \n[40] Jonathan Frankle, Gintare Karolina Dziugaite, Daniel Roy, and Michael Carbin. Linear mode connectivity and the lottery ticket hypothesis. In International Conference on Machine Learning, pages 3259–3269. PMLR, 2020. \n[41] Trevor Gale, Erich Elsen, and Sara Hooker. The state of sparsity in deep neural networks. arXiv preprint arXiv:1902.09574, 2019. \n[42] Mark JF Gales, Kate M Knill, Anton Ragni, and Shakti P Rath. Speech recognition and keyword spotting for low-resource languages: Babel project research at cued. In Fourth International Workshop on Spoken Language Technologies for Under-Resourced Languages (SLTU-2014), pages 16–23. International Speech Communication Association (ISCA), 2014. \n[43] Dawei Gao, Xiaoxi He, Zimu Zhou, Yongxin Tong, Ke Xu, and Lothar Thiele. Rethinking pruning for accelerating deep inference at the edge. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 155–164, 2020. \n[44] Heting Gao, Junrui Ni, Yang Zhang, Kaizhi Qian, Shiyu Chang, and Mark Hasegawa-Johnson. Zero-shot cross-lingual phonetic recognition with external language embedding. Proc. Interspeech 2021, pages 1304–1308, 2021. \n[45] Sharath Girish, Shishira R Maiya, Kamal Gupta, Hao Chen, Larry Davis, and Abhinav Shrivastava. The lottery ticket hypothesis for object recognition. arXiv preprint arXiv:2012.04643, 2020. \n[46] Gabriel Goh, Nick Cammarata, Chelsea Voss, Shan Carter, Michael Petrov, Ludwig Schubert, Alec Radford, and Chris Olah. Multimodal neurons in artificial neural networks. Distill, 6(3):e30, 2021. \n[47] Anmol Gulati, James Qin, Chung-Cheng Chiu, Niki Parmar, Yu Zhang, Jiahui Yu, Wei Han, Shibo Wang, Zhengdong Zhang, Yonghui Wu, et al. Conformer: Convolution-augmented transformer for speech recognition. arXiv preprint arXiv:2005.08100, 2020. \n[48] Yiwen Guo, Anbang Yao, and Yurong Chen. Dynamic network surgery for efficient dnns. arXiv preprint arXiv:1608.04493, 2016. \n[49] Song Han, Jeff Pool, John Tran, and William J Dally. Learning both weights and connections for efficient neural networks. arXiv preprint arXiv:1506.02626, 2015. \n[50] Wei Han, Zhengdong Zhang, Yu Zhang, Jiahui Yu, Chung-Cheng Chiu, James Qin, Anmol Gulati, Ruoming Pang, and Yonghui Wu. Contextnet: Improving convolutional neural networks for automatic speech recognition with global context. arXiv preprint arXiv:2005.03191, 2020. \n[51] Babak Hassibi and David G Stork. Second order derivatives for network pruning: Optimal brain surgeon. Morgan Kaufmann, 1993. \n[52] Tianxing He, Yuchen Fan, Yanmin Qian, Tian Tan, and Kai Yu. Reshaping deep neural network for fast decoding by node-pruning. In 2014 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 245–249. IEEE, 2014. \n[53] Wei-Ning Hsu, Benjamin Bolte, Yao-Hung Hubert Tsai, Kushal Lakhotia, Ruslan Salakhutdinov, and Abdelrahman Mohamed. Hubert: Self-supervised speech representation learning by masked prediction of hidden units. arXiv preprint arXiv:2106.07447, 2021. \n[54] Wei-Ning Hsu, Anuroop Sriram, Alexei Baevski, Tatiana Likhomanenko, Qiantong Xu, Vineel Pratap, Jacob Kahn, Ann Lee, Ronan Collobert, Gabriel Synnaeve, et al. Robust wav2vec 2.0: Analyzing domain shift in self-supervised pre-training. arXiv preprint arXiv:2104.01027, 2021. \n[55] Wei-Ning Hsu, Yao-Hung Hubert Tsai, Benjamin Bolte, Ruslan Salakhutdinov, and Abdelrahman Mohamed. Hubert: How much can a bad teacher benefit asr pre-training? In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6533–6537. IEEE, 2021. \n[56] Wen-Chin Huang, Shu-Wen Yang, Tomoki Hayashi, Hung-Yi Lee, Shinji Watanabe, and Tomoki Toda. S3prl-vc: Open-source voice conversion framework with self-supervised speech representations. arXiv preprint arXiv:2110.06280, 2021. \n[57] Dongwei Jiang, Wubo Li, Miao Cao, Ruixiong Zhang, Wei Zou, Kun Han, and Xiangang Li. Speech simclr: Combining contrastive and reconstruction objective for self-supervised speech representation learning. arXiv preprint arXiv:2010.13991, 2020. \n[58] Naoyuki Kanda, Guoli Ye, Yu Wu, Yashesh Gaur, Xiaofei Wang, Zhong Meng, Zhuo Chen, and Takuya Yoshioka. Large-scale pre-training of end-to-end multi-talker asr for meeting transcription with single distant microphone. arXiv preprint arXiv:2103.16776, 2021. \n[59] Eugene Kharitonov, Ann Lee, Adam Polyak, Yossi Adi, Jade Copet, Kushal Lakhotia, Tu-Anh Nguyen, Morgane Rivière, Abdelrahman Mohamed, Emmanuel Dupoux, et al. Text-free prosody-aware generative spoken language modeling. arXiv preprint arXiv:2109.03264, 2021. \n[60] Qiuqiang Kong, Yin Cao, Turab Iqbal, Yuxuan Wang, Wenwu Wang, and Mark D Plumbley. Panns: Large-scale pretrained audio neural networks for audio pattern recognition. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 28:2880–2894, 2020. \n[61] Olga Kovaleva, Alexey Romanov, Anna Rogers, and Anna Rumshisky. Revealing the dark secrets of bert. arXiv preprint arXiv:1908.08593, 2019. \n[62] Cheng-I Lai. Contrastive predictive coding based feature for automatic speaker verification. arXiv preprint arXiv:1904.01575, 2019. \n[63] Cheng-I Lai, Yung-Sung Chuang, Hung-Yi Lee, Shang-Wen Li, and James Glass. Semi-supervised spoken language understanding via self-supervised speech and language model pretraining. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 7468–7472. IEEE, 2021. \n[64] Kushal Lakhotia, Evgeny Kharitonov, Wei-Ning Hsu, Yossi Adi, Adam Polyak, Benjamin Bolte, Tu-Anh Nguyen, Jade Copet, Alexei Baevski, Adelrahman Mohamed, et al. Generative spoken language modeling from raw audio. arXiv preprint arXiv:2102.01192, 2021. \n[65] Yann LeCun, John S Denker, and Sara A Solla. Optimal brain damage. In Advances in neural information processing systems, pages 598–605, 1990. \n[66] Ann Lee, Peng-Jen Chen, Changhan Wang, Jiatao Gu, Xutai Ma, Adam Polyak, Yossi Adi, Qing He, Yun Tang, Juan Pino, et al. Direct speech-to-speech translation with discrete units. arXiv preprint arXiv:2107.05604, 2021. \n[67] Namhoon Lee, Thalaiyasingam Ajanthan, and Philip HS Torr. Snip: Single-shot network pruning based on connection sensitivity. arXiv preprint arXiv:1810.02340, 2018. \n[68] Bo Li, Ruoming Pang, Tara N Sainath, Anmol Gulati, Yu Zhang, James Qin, Parisa Haghani, W Ronny Huang, and Min Ma. Scaling end-to-end models for large-scale multilingual asr. arXiv preprint arXiv:2104.14830, 2021. \n[69] Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. arXiv preprint arXiv:1608.08710, 2016. \n[70] Shengqiang Li, Menglong Xu, and Xiao-Lei Zhang. Efficient conformer-based speech recognition with linear attention. arXiv preprint arXiv:2104.06865, 2021. \n[71] Shaoshi Ling and Yuzong Liu. Decoar 2.0: Deep contextualized acoustic representations with vector quantization. arXiv preprint arXiv:2012.06659, 2020. \n[72] Alexander H Liu, Yu-An Chung, and James Glass. Non-autoregressive predictive coding for learning speech representations from local dependencies. arXiv preprint arXiv:2011.00406, 2020. \n[73] Andy T Liu, Shang-Wen Li, and Hung-yi Lee. Tera: Self-supervised learning of transformer encoder representation for speech. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 29:2351– 2366, 2021. \n[74] Andy T Liu, Shu-wen Yang, Po-Han Chi, Po-chun Hsu, and Hung-yi Lee. Mockingjay: Unsupervised speech representation learning with deep bidirectional transformer encoders. In ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6419–6423. IEEE, 2020. \n[75] Zhuang Liu, Mingjie Sun, Tinghui Zhou, Gao Huang, and Trevor Darrell. Rethinking the value of network pruning. arXiv preprint arXiv:1810.05270, 2018. \n[76] Takashi Maekaku, Xuankai Chang, Yuya Fujita, Li-Wei Chen, Shinji Watanabe, and Alexander Rudnicky. Speech representation learning combining conformer cpc with deep cluster for the zerospeech challenge 2021. arXiv preprint arXiv:2107.05899, 2021. \n[77] Eran Malach, Gilad Yehudai, Shai Shalev-Schwartz, and Ohad Shamir. Proving the lottery ticket hypothesis: Pruning is all you need. In International Conference on Machine Learning, pages 6682–6691. PMLR, 2020. \n[78] Yen Meng, Yi-Hui Chou, Andy T Liu, and Hung-yi Lee. Don’t speak too fast: The impact of data bias on self-supervised speech models. arXiv preprint arXiv:2110.07957, 2021. \n[79] Pavlo Molchanov, Arun Mallya, Stephen Tyree, Iuri Frosio, and Jan Kautz. Importance estimation for neural network pruning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11264–11272, 2019. \n[80] Rajiv Movva and Jason Y Zhao. Dissecting lottery ticket transformers: Structural and behavioral study of sparse neural machine translation. arXiv preprint arXiv:2009.13270, 2020. \n[81] Jesse Mu and Jacob Andreas. Compositional explanations of neurons. arXiv preprint arXiv:2006.14032, 2020. \n[82] Sharan Narang, Erich Elsen, Gregory Diamos, and Shubho Sengupta. Exploring sparsity in recurrent neural networks. arXiv preprint arXiv:1704.05119, 2017. \n[83] Edwin G Ng, Chung-Cheng Chiu, Yu Zhang, and William Chan. Pushing the limits of non-autoregressive speech recognition. arXiv preprint arXiv:2104.03416, 2021. \n[84] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. \n[85] Sankaran Panchapagesan, Daniel S Park, Chung-Cheng Chiu, Yuan Shangguan, Qiao Liang, and Alexander Gruenstein. Efficient knowledge distillation for rnn-transducer models. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 5639–5643. IEEE, 2021. \n[86] Adam Polyak, Yossi Adi, Jade Copet, Eugene Kharitonov, Kushal Lakhotia, Wei-Ning Hsu, Abdelrahman Mohamed, and Emmanuel Dupoux. Speech resynthesis from discrete disentangled self-supervised representations. arXiv preprint arXiv:2104.00355, 2021. \n[87] Daniel Povey, Gaofeng Cheng, Yiming Wang, Ke Li, Hainan Xu, Mahsa Yarmohammadi, and Sanjeev Khudanpur. Semi-orthogonal low-rank matrix factorization for deep neural networks. In Interspeech, pages 3743–3747, 2018. \n[88] Sai Prasanna, Anna Rogers, and Anna Rumshisky. When bert plays the lottery, all tickets are winning. arXiv preprint arXiv:2005.00561, 2020. \n[89] Vineel Pratap, Anuroop Sriram, Paden Tomasello, Awni Hannun, Vitaliy Liptchinsky, Gabriel Synnaeve, and Ronan Collobert. Massively multilingual asr: 50 languages, 1 model, 1 billion parameters. arXiv preprint arXiv:2007.03001, 2020. \n[90] Vineel Pratap, Qiantong Xu, Jacob Kahn, Gilad Avidov, Tatiana Likhomanenko, Awni Hannun, Vitaliy Liptchinsky, Gabriel Synnaeve, and Ronan Collobert. Scaling up online speech recognition using convnets. arXiv preprint arXiv:2001.09727, 2020. \n[91] Janne Pylkkönen. New pruning criteria for efficient decoding. In Ninth European Conference on Speech Communication and Technology, 2005. \n[92] Vivek Ramanujan, Mitchell Wortsman, Aniruddha Kembhavi, Ali Farhadi, and Mohammad Rastegari. What’s hidden in a randomly weighted neural network? In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11893–11902, 2020. \n[93] Alex Renda, Jonathan Frankle, and Michael Carbin. Comparing rewinding and fine-tuning in neural network pruning. arXiv preprint arXiv:2003.02389, 2020. \n[94] Morgane Rivière, Armand Joulin, Pierre-Emmanuel Mazaré, and Emmanuel Dupoux. Unsupervised pretraining transfers well across languages. In ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 7414–7418. IEEE, 2020. \n[95] Aaqib Saeed, David Grangier, and Neil Zeghidour. Contrastive learning of general-purpose audio representations. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 3875–3879. IEEE, 2021. \n[96] Ramon Sanabria, Austin Waters, and Jason Baldridge. Talk, don’t write: A study of direct speech-based image retrieval. arXiv preprint arXiv:2104.01894, 2021. \n[97] Victor Sanh, Thomas Wolf, and Alexander M Rush. Movement pruning: Adaptive sparsity by fine-tuning. arXiv preprint arXiv:2005.07683, 2020. \n[98] Yuan Shangguan, Jian Li, Qiao Liang, Raziel Alvarez, and Ian McGraw. Optimizing speech recognition for the edge. arXiv preprint arXiv:1909.12408, 2019. \n[99] Yangyang Shi, Yongqiang Wang, Chunyang Wu, Ching-Feng Yeh, Julian Chan, Frank Zhang, Duc Le, and Mike Seltzer. Emformer: Efficient memory transformer based acoustic model for low latency streaming speech recognition. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6783–6787. IEEE, 2021. \n[100] Vesa Siivola, Teemu Hirsimaki, and Sami Virpioja. On growing and pruning kneser–ney smoothed $_ n$ -gram models. IEEE Transactions on Audio, Speech, and Language Processing, 15(5):1617–1624, 2007. \n[101] Gabriel Synnaeve, Qiantong Xu, Jacob Kahn, Tatiana Likhomanenko, Edouard Grave, Vineel Pratap, Anuroop Sriram, Vitaliy Liptchinsky, and Ronan Collobert. End-to-end asr: from supervised to semisupervised learning with modern architectures. arXiv preprint arXiv:1911.08460, 2019. \n[102] Liang-Hsuan Tseng, Yu-Kuan Fu, Heng-Jui Chang, and Hung-yi Lee. Mandarin-english code-switching speech recognition with self-supervised speech representation models. arXiv preprint arXiv:2110.03504, 2021. \n[103] Hugo Van Hamme and Filip Van Aelten. An adaptive-beam pruning technique for continuous speech recognition. In Proceeding of Fourth International Conference on Spoken Language Processing. ICSLP’96, volume 4, pages 2083–2086. IEEE, 1996. \n[104] Ganesh Venkatesh, Alagappan Valliappan, Jay Mahadeokar, Yuan Shangguan, Christian Fuegen, Michael L Seltzer, and Vikas Chandra. Memory-efficient speech recognition on smart devices. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 8368–8372. IEEE, 2021. \n[105] Elena Voita, David Talbot, Fedor Moiseev, Rico Sennrich, and Ivan Titov. Analyzing multi-head selfattention: Specialized heads do the heavy lifting, the rest can be pruned. arXiv preprint arXiv:1905.09418, 2019. \n[106] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R Bowman. Glue: A multi-task benchmark and analysis platform for natural language understanding. arXiv preprint arXiv:1804.07461, 2018. \n[107] Chengyi Wang, Yu Wu, Shujie Liu, Jinyu Li, Yao Qian, Kenichi Kumatani, and Furu Wei. Unispeech at scale: An empirical study of pre-training method on large-scale speech recognition dataset. arXiv preprint arXiv:2107.05233, 2021. \n[108] Chengyi Wang, Yu Wu, Yao Qian, Kenichi Kumatani, Shujie Liu, Furu Wei, Michael Zeng, and Xuedong Huang. Unispeech: Unified speech representation learning with labeled and unlabeled data. arXiv preprint arXiv:2101.07597, 2021. \n[109] Jun Wang, Max W Y Lam, Dan Su, and Dong Yu. Contrastive separative coding for self-supervised representation learning. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 3865–3869. IEEE, 2021. \n[110] Weiran Wang, Qingming Tang, and Karen Livescu. Unsupervised pre-training of bidirectional speech encoders via masked reconstruction. In ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6889–6893. IEEE, 2020. \n[111] Yiming Wang, Jinyu Li, Heming Wang, Yao Qian, Chengyi Wang, and Yu Wu. Wav2vec-switch: Contrastive learning from original-noisy speech pairs for robust speech recognition. arXiv preprint arXiv:2110.04934, 2021. \n[112] Matthew Wiesner, Desh Raj, and Sanjeev Khudanpur. Injecting text and cross-lingual supervision in few-shot learning from self-supervised models. arXiv preprint arXiv:2110.04863, 2021. \n[113] John M Wu, Yonatan Belinkov, Hassan Sajjad, Nadir Durrani, Fahim Dalvi, and James Glass. Similarity analysis of contextual word representation models. arXiv preprint arXiv:2005.01172, 2020. \n[114] Zhaofeng Wu, Ding Zhao, Qiao Liang, Jiahui Yu, Anmol Gulati, and Ruoming Pang. Dynamic sparsity neural networks for automatic speech recognition. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6014–6018. IEEE, 2021. \n[115] Ji Xin, Jimmy Lin, and Yaoliang Yu. What part of the neural network does this? understanding lstms by measuring and dissecting neurons. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 5827–5834, 2019. \n[116] Hainan Xu, Tongfei Chen, Dongji Gao, Yiming Wang, Ke Li, Nagendra Goel, Yishay Carmiel, Daniel Povey, and Sanjeev Khudanpur. A pruned rnnlm lattice-rescoring algorithm for automatic speech recognition. In 2018 IEEE international conference on acoustics, speech and signal processing (ICASSP), pages 5929–5933. IEEE, 2018. \n[117] Qiantong Xu, Alexei Baevski, and Michael Auli. Simple and effective zero-shot cross-lingual phoneme recognition. arXiv preprint arXiv:2109.11680, 2021. \n[118] Qiantong Xu, Alexei Baevski, Tatiana Likhomanenko, Paden Tomasello, Alexis Conneau, Ronan Collobert, Gabriel Synnaeve, and Michael Auli. Self-training and pre-training are complementary for speech recognition. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 3030–3034. IEEE, 2021. \n[119] Jian Xue, Jinyu Li, and Yifan Gong. Restructuring of deep neural network acoustic models with singular value decomposition. In Interspeech, pages 2365–2369, 2013. \n[120] Shu-wen Yang, Po-Han Chi, Yung-Sung Chuang, Cheng-I Jeff Lai, Kushal Lakhotia, Yist Y Lin, Andy T Liu, Jiatong Shi, Xuankai Chang, Guan-Ting Lin, et al. Superb: Speech processing universal performance benchmark. arXiv preprint arXiv:2105.01051, 2021. \n[121] Zhao You, Shulin Feng, Dan Su, and Dong Yu. Speechmoe: Scaling to large acoustic models with dynamic routing mixture of experts. arXiv preprint arXiv:2105.03036, 2021. \n[122] Dong Yu, Frank Seide, Gang Li, and Li Deng. Exploiting sparseness in deep neural networks for large vocabulary speech recognition. In 2012 IEEE International conference on acoustics, speech and signal processing (ICASSP), pages 4409–4412. IEEE, 2012. \n[123] Haonan Yu, Sergey Edunov, Yuandong Tian, and Ari S Morcos. Playing the lottery with rewards and multiple languages: lottery tickets in rl and nlp. arXiv preprint arXiv:1906.02768, 2019. \n[124] Jiahui Yu, Wei Han, Anmol Gulati, Chung-Cheng Chiu, Bo Li, Tara N Sainath, Yonghui Wu, and Ruoming Pang. Universal asr: Unify and improve streaming asr with full-context modeling. arXiv preprint arXiv:2010.06030, 2020. \n[125] Jiahui Yu, Wei Han, Anmol Gulati, Chung-Cheng Chiu, Bo Li, Tara N Sainath, Yonghui Wu, and Ruoming Pang. Dual-mode asr: Unify and improve streaming asr with full-context modeling. Proceedings of ICLR, 2021. \n[126] Yu Zhang, Daniel S Park, Wei Han, James Qin, Anmol Gulati, Joel Shor, Aren Jansen, Yuanzhong Xu, Yanping Huang, Shibo Wang, et al. Bigssl: Exploring the frontier of large-scale semi-supervised learning for automatic speech recognition. arXiv preprint arXiv:2109.13226, 2021. \n[127] Yu Zhang, James Qin, Daniel S Park, Wei Han, Chung-Cheng Chiu, Ruoming Pang, Quoc V Le, and Yonghui Wu. Pushing the limits of semi-supervised learning for automatic speech recognition. arXiv preprint arXiv:2010.10504, 2020. \n[128] Yuekai Zhang, Sining Sun, and Long Ma. Tiny transducer: A highly-efficient speech recognition model on edge devices. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6024–6028. IEEE, 2021. \n[129] Han Zhu, Li Wang, Ying Hou, Jindong Wang, Gaofeng Cheng, Pengyuan Zhang, and Yonghong Yan. Wav2vec-s: Semi-supervised pre-training for speech recognition. arXiv preprint arXiv:2110.04484, 2021. ",
1171
+ "bbox": [
1172
+ 179,
1173
+ 116,
1174
+ 828,
1175
+ 916
1176
+ ],
1177
+ "page_idx": 10
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "",
1182
+ "bbox": [
1183
+ 178,
1184
+ 53,
1185
+ 828,
1186
+ 921
1187
+ ],
1188
+ "page_idx": 11
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "text": "",
1193
+ "bbox": [
1194
+ 178,
1195
+ 60,
1196
+ 828,
1197
+ 914
1198
+ ],
1199
+ "page_idx": 12
1200
+ },
1201
+ {
1202
+ "type": "text",
1203
+ "text": "",
1204
+ "bbox": [
1205
+ 176,
1206
+ 55,
1207
+ 828,
1208
+ 912
1209
+ ],
1210
+ "page_idx": 13
1211
+ },
1212
+ {
1213
+ "type": "text",
1214
+ "text": "",
1215
+ "bbox": [
1216
+ 171,
1217
+ 68,
1218
+ 828,
1219
+ 916
1220
+ ],
1221
+ "page_idx": 14
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "text": "",
1226
+ "bbox": [
1227
+ 171,
1228
+ 41,
1229
+ 828,
1230
+ 919
1231
+ ],
1232
+ "page_idx": 15
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "",
1237
+ "bbox": [
1238
+ 171,
1239
+ 92,
1240
+ 826,
1241
+ 247
1242
+ ],
1243
+ "page_idx": 16
1244
+ }
1245
+ ]
parse/train/UoVpP8R2Vn/UoVpP8R2Vn_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/UoVpP8R2Vn/UoVpP8R2Vn_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rsRq--gsiE/rsRq--gsiE.md ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Small random initialization is akin to spectral learning: Optimization and generalization guarantees for overparameterized low-rank matrix reconstruction
2
+
3
+ Dominik Stöger Katholische Universität Eichstätt-Ingolstadt 85072 Eichstätt, Germany Dominik.Stoeger@ku.de
4
+
5
+ Mahdi Soltanolkotabi University of Southern California Los Angeles, CA 90089 soltanol@usc.edu
6
+
7
+ # Abstract
8
+
9
+ Recently there has been significant theoretical progress on understanding the convergence and generalization of gradient-based methods on nonconvex losses with overparameterized models. Nevertheless, many aspects of optimization and generalization and in particular the critical role of small random initialization are not fully understood. In this paper, we take a step towards demystifying this role by proving that small random initialization followed by a few iterations of gradient descent behaves akin to popular spectral methods. We also show that this implicit spectral bias from small random initialization, which is provably more prominent for overparameterized models, also puts the gradient descent iterations on a particular trajectory towards solutions that are not only globally optimal but also generalize well. Concretely, we focus on the problem of reconstructing a low-rank matrix from a few measurements via a natural nonconvex formulation. In this setting, we show that the trajectory of the gradient descent iterations from small random initialization can be approximately decomposed into three phases: (I) a spectral or alignment phase where we show that that the iterates have an implicit spectral bias akin to spectral initialization allowing us to show that at the end of this phase the column space of the iterates and the underlying low-rank matrix are sufficiently aligned, (II) a saddle avoidance/refinement phase where we show that the trajectory of the gradient iterates moves away from certain degenerate saddle points, and (III) a local refinement phase where we show that after avoiding the saddles the iterates converge quickly to the underlying low-rank matrix. Underlying our analysis are insights for the analysis of overparameterized nonconvex optimization schemes that may have implications for computational problems beyond low-rank reconstruction.
10
+
11
+ # 1 Introduction
12
+
13
+ Many contemporary problems in machine learning and signal estimation spanning deep learning to low-rank matrix reconstruction involve fitting nonlinear models to training data. Despite tremendous empirical progress, theoretical understanding of these problems poses two fundamental challenges. First, from an optimization perspective, fitting these models often requires solving highly nonconvex optimization problems and except for a few special cases, it is not known how to provably find globally or approximately optimal solutions. Yet simple heuristics such as running (stochastic) gradient descent from (typically) small random initialization is surprisingly effective at finding globally optimal solutions. A second generalization challenge is that many modern learning models including neural network architectures are trained in an overparameterized regime where the parameters of the model exceed the size of the training dataset. It is well understood that in this overparameterized regime, these large models are highly expressive and have the capacity to (over)fit arbitrary training datasets including pure noise. Mysteriously however overparameterized models trained via simple algorithms such as (stochastic) gradient descent when initialized at random continue to predict well or generalize on yet unseen test data. In particular, it has been noted in a number of works that for many modern machine learning architectures, the scale of initialization is important for the generalization/test behavior [1, 2]. It has been noted that stronger generalization performance is typically observed for a smaller scale initialization. Indeed, small random initialization followed by (stochastic) gradient descent iterative updates is arguably the most widely used learning algorithm in modern machine learning and signal estimation.
14
+
15
+ There has been a large number of exciting results aimed at demystifying both the optimization and generalization aspects over the past few years. We will elaborate on these results in detail in the supplementary, however, we would like to briefly mention the common techniques and their existing limitations. On the optimization front a large body of work has emerged on providing guarantees for nonconvex optimization which can roughly be put into two categories: (I) smart initialization+local convergence and (II) landscape analysis $^ +$ saddle escaping algorithms. Approaches in (I) focus on showing local convergence of local search techniques from carefully designed spectral initializations [3, 4, 5, 6, 7, 8, 9, 10]. Approaches in (II) focus on showing that in some cases the optimization landscape is benign in the sense that all local minima are global (no spurious local minima) and the saddle points have a direction of strict negative curvature (strict saddle) [11]. Then specialized truncation or saddle escaping algorithms such as trust region, cubic regularization [12, 13], or noisy (stochastic) gradient-based methods [14, 15, 16, 17] are deployed to provably find a global optimum. Both approaches fail to fully explain the typical behavior of local search techniques in practice. Indeed, for many nonconvex problems local search techniques or simple variants, when initialized at random, quickly converge to globally optimal solutions without getting stuck in local optima/saddles without the need for sophisticated initialization or saddle escaping heuristics. We note that while for differentiable losses eventual convergence to local minimizers is known from a random initialization [18] on problems of the form (II), these results cannot rule out exponentially slow cases in the worst-case [19]. Indeed, it has been argued that in general a more granular analysis of the trajectory of gradient descent beyond the landscape may be necessary [20]. For example, some recent advances has been made by analysing the trajectory of gradient descent using a leave-one-out analysis for the phase retrieval problem [21].
16
+
17
+ Similarly, there has been a lot of exciting progress on the generalization front, especially for neural networks. Specific to generalization capabilities of gradient-based approaches these results broadly fall into two categories: (a) the first category is based on a linearization principle which characterizes the performance of nonlinear models such as neural networks by comparing it to a linearized kernel problem around the initialization (a.k.a. Neural Tangent Kernels) [22, 23, 24, 25, 26, 27, 28]. This has often been referred to as ”lazy training". (b) the second category is based on a continuous limit analysis in the limit of width going to infinity and learning rate going to zero (mean-field analysis) [29, 30, 31, 32, 33]. However, these existing analyses contain many idealized and nonrealistic assumptions (e.g. requiring large, random initialization in (a), which typically leads to worse generalization than what is observed in practice, or unrealistically large widths in (b)) and therefore cannot fully explain the success of overparameterized models or serve as a guiding principle for practitioners [34].
18
+
19
+ Despite the aforementioned exciting recent theoretical progress many aspects of optimization and generalization and in particular the role of random initialization remains mysterious. This leads us to the main challenge of this paper
20
+
21
+ Why is small random initialization combined with gradient descent updates so effective at finding globally optimal models that generalize well despite the nonconvex nature of the optimization landscape or model overparameterization?
22
+
23
+ In this paper we wish to take a step towards addressing the above challenge by demystifying the critical role of small random initialization in gradient-based approaches. Specifically we show that
24
+
25
+ Small random initialization followed by a few iterations of gradient descent behaves akin to spectral initialization.
26
+
27
+ By that, we mean more precisely, that if the initialization is chosen small enough, then in the initial stage of the training, gradient descent implicitly behaves like spectral initialization techniques such as those commonly used in techniques based on the method of moments. This implicit spectral bias of gradient descent from random initialization puts the gradient descent iterations on a particular trajectory towards solutions that are not only globally optimal but also generalize well for overparameterized models. We also show that with small random initialization this implicit spectral bias phenomenon is more prominent for more overparameterized models in the sense that it materializes after fewer iterations. This intriguing phenomenon is depicted in Figure 1 in the context of a low-rank reconstruction problem. This figure clearly demonstrates that the first few iterations of gradient descent starting from a small random initialization are virtually identical to that of running power iterations (a popular algorithm to find the spectral initialization, see, e.g. [35]).
28
+
29
+ ![](images/529cc7c147b35826e3f6274037ac6cf0cce6109d6a6d365cdfdb021513bce9d5.jpg)
30
+ Figure 1: Gradient descent from small random initialization is akin to spectral initialization. The left figure depicts the empirical landscape of a low-rank matrix reconstruction problem with the two green circles depicting the two global minima and the white circle the saddle point at the origin. In this figure, we also depict the trajectory of the gradient descent iterations (magenta) together with the power method based on a popular spectral initialization technique (blue). Both gradient descent and power method use the same small initialization near the origin. We see that in the early stage, the two trajectories are almost the same. The figure on the right depicts the angle between the gradient descent (magenta)/power method (blue) iterates and a popular spectral initialization technique, denoted by $\theta _ { G D }$ and $\theta _ { P }$ respectively. This figure clearly demonstrates that for the first iterations these angles are practically the same further confirming that the initial trajectory of gradient descent and power methods are similar. See Section 5 for further detail on the experimental setup. (In this figure we have used $r = r _ { \star } = 1 .$ )
31
+
32
+ Concretely we focus on the problem of low-rank matrix recovery, which appears in many different application areas such as recommendation systems, phase retrieval, and quantum tomography [36]. Here, our goal is to recover a low-rank matrix of the form $X X ^ { T }$ from a few linear measurements. We consider a natural, non-convex approach based on matrix factorization, where we minimize the loss function via gradient descent. In this paper, we show that, regardless of the amount of overparameterization used, for small random initialization vanilla gradient descent will always converge towards the low-rank solution. This holds as long as the measurement operator obeys a popular restricted isometry property [37].
33
+
34
+ Our analysis consists of three phases. The first phase is the aforementioned spectral or alignment phase where we show gradient descent from small random initialization behaves akin to spectral initialization, which is a key insight of this paper. Indeed, we show that the first few gradient descent iterates can be accurately approximated by power method iterates. Next, we show that after this first spectral or alignment phase, gradient descent enters a second phase, which we refer to as saddle avoidance phase. In this phase, we show that the trajectory of the gradient iterates moves away from degenerate saddle points, while the iterates maintain almost the same effective rank as $X X ^ { T }$ . In the third phase, the local refinement phase, we show that the iterates approximately converge towards the underlying low-rank matrix $X X ^ { T }$ with a geometric rate up to a certain error floor which depends on the initialization scale. In particular, by decreasing the scale of initialization this error threshold can be made arbitrarily small. While in this paper our main focus is on low-rank matrix reconstruction, we believe that our analysis holds more generally for a variety of contemporary machine learning and signal estimation tasks including neural networks.
35
+
36
+ Finally we note that while a similar setting has already been studied in [38], our analysis goes beyond it in many important ways. For example, our result holds for any amount of overparameterization and allows for arbitrarily small initialization. Maybe most importantly, we study the spectral phase phenomenon at initialization.
37
+
38
+ # 2 Low-rank matrix recovery via non-convex optimization
39
+
40
+ As mentioned earlier in this paper we focus on reconstructing a (possibly overparameterized) Positive Semidefinite (PSD) low rank matrix from a few measurements. In this problem, given $m$ observations of the form
41
+
42
+ $$
43
+ y _ { i } = \left. A _ { i } , X X ^ { T } \right. = \operatorname { T r } \left( A _ { i } X X ^ { T } \right) \qquad { \mathrm { ~ } } i = 1 , \ldots , m ,
44
+ $$
45
+
46
+ we wish to reconstruct the unknown matrix $X X ^ { T }$ . Here, $X \in \mathbb { R } ^ { n \times r _ { \star } }$ with $1 \leq r _ { \star } \leq n$ is a factor of the unknown matrix and $\left\{ A _ { i } \right\} _ { i = 1 } ^ { m }$ are known symmetric measurement matrices. A common approach to solving this problem is via minimizing the loss function
47
+
48
+ $$
49
+ \operatorname* { m i n } _ { \bar { U } \in \mathbb { R } ^ { n \times r } } f ( \bar { U } ) : = \operatorname* { m i n } _ { \bar { U } \in \mathbb { R } ^ { n \times r } } \frac { 1 } { 4 m } \sum _ { i = 1 } ^ { m } \left( y _ { i } - \langle A _ { i } , \bar { U } \bar { U } ^ { T } \rangle \right) ^ { 2 } ,
50
+ $$
51
+
52
+ with $r \geq r _ { \star }$ . More compactly one can rewrite the optimization problem above in the form
53
+
54
+ $$
55
+ \operatorname* { m i n } _ { \bar { U } \in \mathbb { R } ^ { n \times r } } f ( \bar { U } ) : = \operatorname* { m i n } _ { \bar { U } \in \mathbb { R } ^ { n \times r } } \frac { 1 } { 4 } \left. A \left( \bar { U } \bar { U } ^ { T } - X X ^ { T } \right) \right. _ { \ell _ { 2 } } ^ { 2 } ,
56
+ $$
57
+
58
+ where $\mathcal { A } : \mathbb { R } ^ { n \times n } \longrightarrow \mathbb { R } ^ { m }$ is the measurement operator defined by $\begin{array} { r } { [ \boldsymbol { \mathcal { A } } \left( Z \right) ] _ { i } : = \frac { 1 } { \sqrt { m } } \big \langle \boldsymbol { A } _ { i } , Z \big \rangle } \end{array}$ .
59
+
60
+ In order to solve the minimization problem (2) we run gradient descent iterations starting from (often small) random initialization. More specifically,
61
+
62
+ $$
63
+ \begin{array} { r l } & { U _ { t + 1 } = U _ { t } - \mu \nabla f \left( U _ { t } \right) = U _ { t } + \mu \mathcal { A } ^ { * } \left[ y - \mathcal { A } \left( U _ { t } U _ { t } ^ { T } \right) \right] U _ { t } } \\ & { \qquad = U _ { t } + \mu \left[ \left( \mathcal { A } ^ { * } \mathcal { A } \right) \left( X X ^ { T } - U _ { t } U _ { t } ^ { T } \right) \right] U _ { t } . } \end{array}
64
+ $$
65
+
66
+ where we have set $U _ { 0 } = \alpha U$ is the initialization matrix, $A ^ { * }$ denotes the adjoint operator of $\mathcal { A }$ and $y = \left( y _ { i } \right) _ { i = 1 } ^ { m } \in \mathbb { R } ^ { m }$ = A denotes the measurement vector. Here, $U \in \mathbb { R } ^ { n \times r }$ Ais a typically random matrix =which represents the form of the initialization and $\alpha > 0$ is a scaling parameter.
67
+
68
+ There are two challenges associated with analyzing such randomly initialized gradient descent updates. The first is an optimization challenge. Since $f$ is non-convex it is a priori not clear whether gradient descent converges to a global optimum or whether it gets stuck in a local minima and/or saddle. The second challenge is that of generalization. This is particularly pronounced in the overparameterized scenario where the number of parameters are larger than the number of data points i.e. $r n \geq m$ . In this case, there are infinitely many $\bar { U }$ such that $\check { f ( U ) } = 0$ , but $\| \bar { U } \bar { U } ^ { T } - X X ^ { T } \| _ { F }$ is arbitrarily large (see, e.g., [39, Proposition 1]). That is, even if gradient descent converges to a global optimum, i.e. $f \left( { \bar { U } } \right) { \bar { = } } 0$ , it is a priori not clear whether it has found the low-rank solution $X X ^ { T }$ (see also Figure 5).
69
+
70
+ # 3 Main results
71
+
72
+ In this section, we present our main results. Stating these results requires a couple of simple definitions.
73
+ The first definition concerns the measurement operator $\mathcal { A }$ .
74
+
75
+ Definition 3.1 (Restricted Isometry Property (RIP)). The measurement operator $\mathcal { A } : \mathbb { R } ^ { n \times n } \longrightarrow \mathbb { R } ^ { m }$ satisfies RIP of rank $r$ with constant $\delta > 0$ , if it holds for all matrices $Z$ of rank at most $r$
76
+
77
+ $$
78
+ \left( 1 - \delta \right) \left\| Z \right\| _ { F } ^ { 2 } \leq \left\| A \left( Z \right) \right\| _ { \ell _ { 2 } } ^ { 2 } \leq \left( 1 + \delta \right) \left\| Z \right\| _ { F } ^ { 2 } .
79
+ $$
80
+
81
+ We note that for a Gaussian measurement operator $A ^ { 1 }$ , RIP of rank $r$ and constant $\delta > 0$ holds with high probability, if the number of observations satisfies $m \gtrsim n r / \delta ^ { 2 }$ [37, 40].
82
+
83
+ The second definition concerns the condition number of the factor $X$ .
84
+
85
+ Definition 3.2 (condition number). We denote the condition number of $X \in \mathbb { R } ^ { n \times r _ { \star } }$ by $\kappa : = { \frac { \| X \| } { \sigma _ { r , \star } ( X ) } }$ , where $\sigma _ { r _ { \star } }$ $( X )$ denotes $r _ { \star }$ -th largest singular value of $X$ .
86
+
87
+ With these definitions in place we are now ready to state our main results. Due to space limitations in the main paper we focus on the case of $r \geq 2 r _ { \star }$ . With refer the reader to the supplementary for results covering all $r \geq r _ { \star }$ including two special cases: (1) the fully overparameterized case, i.e., $r = n$ along with comparisons with existing work, in this case [38], and (2) the scenario that $U$ has the same number of parameters as $X$ , i.e., $r = r _ { \star }$ .
88
+
89
+ Theorem 3.3. Let $X \in \mathbb { R } ^ { n \times r _ { * } }$ and assume we have m measurements of the low rank matrix $X X ^ { T }$ of the form $y = \mathcal { A } \left( X X ^ { T } \right)$ with $\mathcal { A }$ the measurement operator. We assume $\mathcal { A }$ satisfies the restricted isometry property for all matrices of rank at most $2 r _ { \star } + 1$ with constant $\delta \le c \kappa ^ { - 4 } { r _ { \star } } ^ { - 1 / 2 }$ . To reconstruct $X X ^ { T }$ from the measurements we fit a model of the form $\bar { U } \mapsto \mathcal { A } \left( \bar { U } \bar { U } ^ { T } \right)$ with $\bar { U } \in \mathbb { R } ^ { n \times r }$ via running gradient descent iterations of the form $U _ { t + 1 } = U _ { t } - \mu \nabla f \left( U _ { t } \right)$ on the objective (2) with a step size obeying $\mu \leq c \kappa ^ { - 4 } \| X \| ^ { - 2 }$ . Here, the initialization is given by $U _ { 0 } = \alpha U$ , where $U \in \mathbb { R } ^ { n \times r }$ has i.i.d. entries distributed as $\mathcal { N } \left( 0 , 1 / \sqrt { r } \right)$ . Furthermore, we assume $r \geq 2 r _ { \star }$ and that the scale of initialization fulfills
90
+
91
+ $$
92
+ \alpha \lesssim \operatorname* { m i n } \left\{ \frac { \left( \operatorname* { m i n } \left\{ r ; n \right\} \right) ^ { 1 / 4 } } { \kappa ^ { 1 / 2 } n ^ { 3 / 4 } } \left( 2 \kappa ^ { 2 } \sqrt { \frac { n } { \operatorname* { m i n } \left\{ r ; n \right\} } } \right) ^ { - 6 \kappa ^ { 2 } } ; \frac { 1 } { \kappa ^ { 7 } n } \right\} \| X \| .
93
+ $$
94
+
95
+ Then, after
96
+
97
+ $$
98
+ \hat { t } \lesssim \frac { 1 } { \mu \sigma _ { \mathrm { m i n } } \left( \boldsymbol X \right) ^ { 2 } } \ln \left( \frac { C _ { 1 } n \kappa } { \operatorname* { m i n } \left\{ \boldsymbol r ; n \right\} } \cdot \operatorname* { m a x } \left\{ 1 ; \frac { \kappa r _ { \star } } { \operatorname* { m i n } \left\{ \boldsymbol r ; n \right\} - r _ { \star } } \right\} \cdot \frac { \| \boldsymbol X \| } { \alpha } \right)
99
+ $$
100
+
101
+ iterations we have that
102
+
103
+ $$
104
+ \frac { \| U _ { \widehat { t } } U _ { \widehat { t } } ^ { T } - X X ^ { T } \| _ { F } } { \| X \| ^ { 2 } } \lesssim \frac { n ^ { 2 } \kappa ^ { 8 1 / 1 6 } r _ { \star } ^ { 1 / 8 } } { \left( \operatorname* { m i n } \left\{ r ; n \right\} \right) ^ { 1 5 / 1 6 } } \cdot \frac { \alpha ^ { 2 1 / 1 6 } } { \| X \| ^ { 2 1 / 1 6 } } ,
105
+ $$
106
+
107
+ holds with probability at least $1 - C e ^ { - \tilde { c } r }$ . Here, $c , \tilde { c } , C , C _ { 1 } > 0$ are fixed numerical constants.
108
+
109
+ Note that the test error $\| U _ { \hat { t } } U _ { \hat { t } _ { \cdot } } ^ { T } - X X ^ { T } \| _ { F } ^ { 2 }$ can be made arbitrarily small by choosing the scale of initialization $\alpha$ small enough. In particular, the dependence of the test error on $\alpha$ is polynomial and the dependence of the number of iterations on $\alpha$ is logarithmic, which means that reducing the test error by scaling down $\alpha$ introduces only modest additional computational cost. Hence, as long as the rank at most $2 r _ { \star } + 1$ RIP with constant $\delta \le c \kappa ^ { - 4 } { r _ { \star } } ^ { - 1 / 2 }$ holds, gradient descent converges to a point in the proximity of the low-rank solution, whenever the initialization is chosen small enough regardless of the choice of $r$ . This holds even when the model is overparameterized i.e. $r n \gg m$ and the optimization problem has many global optima many of which do not obey $U U ^ { T } \approx X X ^ { T }$ . This result thus further demonstrates that when initialized with a small random initialization gradient descent has an implicit bias towards solutions of low-rank or small nuclear norm. This is in sharp contrast to Neural Tangent Kernel (NTK)-based theory for low-rank matrix recovery (see [23, Section 4.2]) which will not approximately recover the ground truth matrix $X X ^ { T }$ due to the larger scale of initialization required when using that technique.
110
+
111
+ As discussed in Section 2, the restricted isometry property holds with high probability for a sample complexity $m \gtrsim n r _ { \star } ^ { 2 } \kappa ^ { 8 }$ for Gaussian measurement matrices. Up to constants, this sample complexity is optimal in $n$ , while it is sub-optimal in $r _ { \star }$ and $\kappa$ compared to approaches based on nuclear-norm minimization (see, e.g., [37]). While there is numerical evidence that the true scaling of $m$ in $r _ { \star }$ should also be linear in the non-convex case [41], we note that the optimal dependence of the sample complexity on $r _ { \star }$ is a major open problem in the field, as the sample complexities in all theoretical results for non-convex approaches in the literature scale at least quadratically in $r _ { \star }$ .
112
+
113
+ Interpretation: Recall from Section 1 that our convergence analysis can be divided into three phases: the spectral phase, the saddle avoidance phase, and the local refinement phase. As it will become clear from the proofs in the supplementary when $r \geq 2 r _ { \star }$ the bound on the number of iterations can
114
+
115
+ be decomposed as follows
116
+
117
+ $$
118
+ \begin{array} { r l } { \hat { t } \lesssim \frac { 1 } { \mu \sigma _ { \operatorname* { m i n } } ( X ) ^ { 2 } } \Bigg [ \ln ( 2 \kappa ^ { 2 } \sqrt { \frac { n } { \operatorname* { m i n } \{ r ; n \} } } ) + } & \ : \underbrace { \ln ( \frac { \sigma _ { \operatorname* { m i n } } ( X ) } { \alpha } ) } _ { \displaystyle \mu \sigma _ { \operatorname* { m i n } } ( X ) ; \frac { 1 } { \operatorname* { m i n } \{ r ; n \} - r _ { \star } } \} \frac { \| X \| } { \alpha } \Bigg ) \Bigg ] . } \end{array}
119
+ $$
120
+
121
+ Phase III: local refinement phase
122
+
123
+ First, we note that the duration of all three phases scales inversely with $\sigma _ { \mathrm { m i n } } \left( X \right) ^ { 2 }$ . This is due to the fact that in all three phases the dynamics associated the smallest singular value of $X$ is the slowest one and hence needs the most time to complete.
124
+
125
+ In the spectral phase, the eigenvectors corresponding to the leading $r _ { \star }$ eigenvalues of $U _ { t } U _ { t } ^ { T }$ become aligned with the eigenvectors corresponding to the leading $r _ { \star }$ eigenvalues of $\mathcal { A } ^ { \ast } \mathcal { A } \left( X X ^ { T } \right)$ . We observe in (6) that in the spectral phase increasing $r$ , i.e. the amount of parameters, decreases the number of iterations in this phase. As we will explain in the supplementary, the reason is that increasing $r$ decreases the angle between the column space of the initialization $U _ { 0 }$ and the span of the eigenvectors corresponding to the leading $r _ { \star }$ eigenvalues of $\mathcal { A } ^ { \ast } \mathcal { A } \left( X X ^ { T } \right)$ used in spectral initialization. As a consequence, gradient descent needs fewer iterations to align these two subspaces.
126
+
127
+ In the saddle avoidance phase (Phase II), $\sigma _ { r _ { \star } } \left( U _ { t } \right)$ , the $r _ { \star }$ th largest singular value of $U _ { t }$ , grows geometrically until it is on the order of $\sigma _ { \mathrm { m i n } } \left( X \right)$ . Hence, this duration depends on the ratio between the $\sigma _ { \mathrm { m i n } } \left( X \right)$ and the the scale of initialization $\alpha$ . This is clearly reflected in the upper bound on the number of needed iterations in equation (6).
128
+
129
+ In Phase III, the local refinement phase, the matrix $U _ { t } U _ { t } ^ { T }$ converges towards $X X ^ { T }$ . In particular, at iteration $\hat { t }$ the test error obeys (5). We observe that a smaller $\alpha$ allows for a smaller test error in (5) but per (6) this higher accuracy is achieved with a modest increase in the required iterations.
130
+
131
+ # 4 A glimpse of our analysis
132
+
133
+ In our proofs, we show that the trajectory of the gradient descent iterations can be approximately decomposed into three phases: (I) a spectral or alignment phase where we show that gradient descent from random initialization behaves akin to spectral initialization allowing us to show that at the end of this phase the column spaces of the iterates $U _ { t }$ and the ground truth matrix $X$ are sufficiently aligned, (II) a saddle avoidance phase, where we show that the trajectory of the gradient iterates move away from certain degenerate saddle points , and (III) a refinement phase, where the product of the gradient descent iterates $U _ { t } U _ { t } ^ { T }$ converges quickly to the underlying low-rank matrix $X X ^ { T }$ . The latter result holds up to a small error that is commensurate with the scale of the initialization and tends to zero as the scale of the initialization goes to zero.
134
+
135
+ To formalize the above, we use $L$ and $L _ { t }$ to denote the subspaces spanned by the eigenvectors corresponding to the $r _ { \star }$ largest eigenvalues of the matrix $\mathcal { A } ^ { \ast } \bar { \mathcal { A } } \left( X X ^ { \bar { T } } \right)$ , and $U _ { t } U _ { t } ^ { T }$ , respectively. Moreover, for a subspace $L$ of dimension $r _ { \star }$ we use $V _ { L } \in \mathbb { R } ^ { n \times r _ { \star } }$ to denote an orthonormal matrix whose columns span the subspace $L$ . Note that $L$ is the subspace, which is obtained by commonly used spectral methods. Using this notation, Figure 2a depicts the three phases described above.
136
+
137
+ In the spectral phase we will prove that we can approximate the iterate $U _ { t }$ by
138
+
139
+ $$
140
+ U _ { t } \approx \underbrace { \big ( \mathbf { I d } + \mu \mathbf { \mathcal { A } } ^ { * } \mathbf { \mathcal { A } } \left( X X ^ { T } \right) \big ) } _ { = : Z _ { t } } ^ { t } U _ { 0 } = Z _ { 1 } ^ { t } U _ { 0 } : = \tilde { U } _ { t } .
141
+ $$
142
+
143
+ We note that the matrix $Z _ { 1 } \ = \ \mathrm { I d } + \mu \mathcal { A } ^ { * } \mathcal { A } \left( X X ^ { T } \right)$ is the basis for the commonly used spectral initialization, where typically a factorization of the rank $r _ { * }$ approximation of this matrix is used as the initialization [6, 5, 42]. Therefore, the approximation (7) suggests that gradient descent iterates modulo the normalization are akin to running power method on $Z _ { 1 }$ . Hence, we expect that at the end of the spectral phase the subspace $L _ { t }$ to be closely aligned with the subspace $L$ , i.e. the subspace obtained by commonly used spectral initialization techniques. In particular, this also implies that $L _ { t }$ is also aligned with the subspace $X$ . Figure 2b clearly illustrates that the first few iterations of gradient descent behave essentially identical to the power method, confirming our intuition.
144
+
145
+ The description of the second and third phase is more elaborate and technical in nature and we defer to the supplementary for a more detailed and intuitive explanation. However, to give a brief description, in these two phases we will decompose the iterates $U _ { t }$ into the sum of two matrices, a "signal" matrix of rank $r _ { \star }$ and a "noise" matrix of rank at most $r - r _ { \star }$ . In Phase (II) we will prove that the smallest singular value of the signal term, which is approximately the same as $\sigma _ { r _ { \star } }$ $\left( U _ { t } \right)$ grows, whereas the spectral norm of the noise matrix grows at a much slower rate. We will also show that in this phase the columns of the signal term stay approximately aligned with the span of the matrix $X$ . As soon as the smallest singular value of the signal term of $U _ { t }$ is approximately at the same order than the smallest singular value of $X$ we enter Phase (III). In that Phase we provide a local convergence argument, which shows that the signal term of $U _ { t }$ converges towards $X$ (up to a rotation), whereas the noise term stays small.
146
+
147
+ ![](images/1bd5cd3f84f3b10d56dfbc66dd9d4cf467ad43f5bf6f2cea7b25b7f27b08514f.jpg)
148
+ Figure 2: (a) Depiction of the three phases of convergence. This figure demonstrates that the convergence analysis can be divided into three phases: (I) spectral/alignment phase; (II) saddle avoidance phase and (III) the refinement phase. We see that in the first phase the first $r _ { \star }$ eigenvectors of $U _ { t } U _ { t } ^ { T }$ rapidly learn the subspace corresponding to the first $r _ { \star }$ eigenvectors of $\mathcal { A } ^ { \ast } \mathcal { A } \left( X X ^ { T } \right)$ , i.e. the angle $\| V _ { L ^ { \bot } } ^ { T } V _ { L _ { t } } \|$ becomes small. The $r _ { \star }$ th largest singular value of $U _ { t }$ is still small in this phase and the (normalized) test error $\| U _ { t } U _ { t } - X X ^ { T } \| _ { F } ^ { 2 } / \| X X ^ { T } \| _ { F } ^ { 2 }$ has not decreased yet. In Phase (II), however, we see that $\sigma _ { r _ { \star } }$ $\left( U _ { t } \right)$ is growing, whereas the loss begins to decrease in this phase and the subspaces stay aligned. In Phase (III) we see that the test error is converging towards 0 rapidly, meaning that $U _ { t } U _ { t } ^ { T }$ converges to $X X ^ { T }$ . Consequently, $\sigma _ { r _ { \star } } \left( U _ { t } \right) / \sigma _ { r _ { \star } } \left( X \right)$ converges to 1 (red curve). We also see that in this phase the angle $\| V _ { L ^ { \bot } } ^ { T } V _ { L _ { t } } \|$ grows again, until it reaches a certain threshold. This is because in this phase the top $r _ { \star }$ eigenvalues of $U _ { t } U _ { t } ^ { T }$ become aligned with the eigenvectors of $X X ^ { T }$ . (b) Depiction of the spectral alignment phase: in the first few iterations, gradient descent with small initialization behaves like a power method. Denote by ${ \tilde { L } } _ { t }$ the subspace spanned by the eigenvectors corresponding to the $r _ { \star }$ largest eigenvalues of the matrix $\widetilde { U _ { t } } \widetilde { U _ { t } } ^ { T }$ . Analogously as before denote by $V _ { \tilde { L } _ { t } }$ an orthonormal matrix, whose columns span the subspace ${ \tilde { L } } _ { t }$ . In this figure, we observe that in the first iterations $U _ { t }$ and $\widetilde { U } _ { t }$ learn the subspace $L$ at almost exactly the same rate.
149
+
150
+ # 5 Numerical experiments
151
+
152
+ In this section, we perform several numerical experiments to corroborate our theoretical results.
153
+
154
+ Experimental setup. For the experiments we set the ground truth matrix $X \in \mathbb { R } ^ { n \times r _ { \star } }$ to be a random orthogonal matrix with $n = 2 0 0$ and $r _ { \star } = 5$ . Moreover, we use $m = 1 0 n { r _ { \star } } = 5 0 n$ random Gaussian measurements. The initialization $U$ is chosen as in Theorem 3.3 and we use a step size of $\mu = 1 / 4$ which is consistent with these theorems. We note that while all experimental depictions are based on a single trial, in line with the NeurIPS guidelines we have drawn these curves multiple times (not depicted) and the behavior of the plots do not change.
155
+
156
+ Depiction of the three phases and the role of overparameterization. In our first experiment, we want to examine how increasing the number of parameters via increasing the number of the columns $r$ of the matrix $U _ { t } \in \mathbb { R } ^ { n \times r }$ , affects the spectral phase. To this aim we set the scale of initialization to $\alpha = 1 / \left( 7 0 n ^ { 2 } \right)$ . Let $L$ denote the subspace spanned by the eigenvectors corresponding to the leading $r _ { \star }$ singular values of $\mathcal { A } ^ { \ast } \mathcal { A } ( X X ^ { T } )$ and $L _ { t }$ denotes the subspace spanned by the left-singular vectors corresponding to the largest $r _ { \star }$ singular values of $U _ { t }$ .
157
+
158
+ ![](images/665e23a4f08b841b53ae6d28270bed70053f954399ac8df02b5f30441b348f05.jpg)
159
+ Figure 3: Impact of different levels of overparameterization on (a) the angle $\| V _ { L ^ { \bot } } ^ { T } V _ { L _ { t } } \|$ and (b) the $r _ { \star }$ th largest singular value, (c) the trajectory of the (normalized) test error $\| U _ { t } U _ { t } ^ { T } - X X ^ { T } \| _ { F } / \| X X ^ { T } \| _ { F }$ .
160
+
161
+ Spectral phase and alignment under different levels of overparameterization. First, we examine how the angle between these two subspaces (i.e. $\| V _ { L ^ { \perp } } ^ { T } V _ { L _ { t } } \| ,$ ) changes in the first few iterations. We depict the results for different $r$ in Figure 3a. We see that in the first few iterations, i.e. in the spectral phase, this angle converges towards zero. This confirms the main conclusion of this paper that the first few iterations of gradient descent from small random initialization indeed behaves akin to running power method for spectral initialization. This experiment also shows that changing the number of columns $r$ of $U _ { t }$ has an interesting effect on the spectral phase. In particular, increasing $r$ allows the gradient descent algorithm to learn the subspace $L$ with fewer iterations, i.e. $\| V _ { L ^ { \bot } } ^ { T } V _ { L _ { t } } \|$ becomes small with fewer iterations. This is in accordance with our theory for $r _ { \star } \le r \le n$ (see, for example, the first summand on the right-hand side of equation (6)), where we show that more overparameterization allows gradient descent to leave the spectral phase earlier. Interestingly, this improvement continues to hold even when increasing $r$ beyond $n$ allowing for even faster convergence of $\| V _ { L ^ { \bot } } ^ { T } V _ { L _ { t } } \|$ . This holds even though in this case the rank of $U _ { 0 }$ is still not larger than $n$ . One potential explanation for this phenomenon might be that for such a choice of $r$ the matrix $U _ { 0 }$ is better conditioned.
162
+
163
+ Growth of $\sigma _ { r _ { \star } } \left( U _ { t } \right)$ and saddle avoidance. In Figure 3b we depict how $\sigma _ { r _ { \star } } \left( U _ { t } \right)$ grows during the training for different choices of $r$ . We see that the curves look similar, although for smaller $r$ the growth phase sets in at a slightly later time. This is due to the fact that for smaller $r$ , as we have seen in Figure 3a, Phase I, the spectral phase takes longer to complete.
164
+
165
+ Evolution of the test error and the refinement phase. Similarly, in Figure 3c we depict how the (normalized) test error $\| U _ { t } U _ { t } ^ { T } - X X ^ { T } \| _ { F } / \| X X ^ { T } \| _ { F }$ evolves during the training for different choices of $r$ . We observe that for smaller $r$ the third phase sets in slightly later. Again, this is due to the fact that for smaller $r$ the spectral phase takes slightly longer to complete (see inequality (6)).
166
+
167
+ Test error under different scales of initialization. In the next experiment, we focus on understanding how the scale of initialization $\alpha$ affects the generalization error $\| U _ { t } U _ { t } ^ { T } - X X ^ { T } \| _ { F } ^ { 2 }$
168
+
169
+ ![](images/f37264bb67eb12df04f997c4ce59e16a703a16cebf79bcfc5db995012edcdb80.jpg)
170
+ Figure 4: Relative test erro r ∥UtUTt −XXT ∥FT for different scales of initialization α .
171
+
172
+ ![](images/064c23755d50858b141e0a12e3b8fb4f590d169b4eaadbef14b71d65606dd375.jpg)
173
+ Figure 5: Change of test error $\| U _ { t } U _ { t } ^ { T } - X X ^ { T } \| _ { F } ^ { 2 }$ and train error $f \left( U _ { t } \right)$ for (a) small and (b) large $\alpha$ during training.
174
+
175
+ For that, we set $r = 1 8 0$ and run gradient descent with for different choices of $\alpha$ . We stop as soon as the training error becomes small $\dot { ( } f \left( U _ { t } \right) \le 0 . 5 \cdot 1 0 ^ { - 9 } )$ . We depict the results in Figure 4. We see that the test error decreases as $\alpha$ decreases. In particular, this figure indicates that the test error depends polynomially on the scale of initialization $\alpha$ . This is in line with our theory, where we also show that the test error decreases at least with the rate $\alpha ^ { 2 1 / 1 6 }$ (see inequality (5) in Theorem 3.3).
176
+
177
+ Change of test and train error during training. In the next experiment, we set $r = 1 8 0$ and examine how the test error $\| U _ { t } U _ { t } ^ { T } - X X ^ { T } \| _ { F } ^ { 2 }$ and the train error $f \left( U _ { t } \right)$ changes throughout training and, in particular, how this depends on the scale of initialization. To this aim, we run gradient descent with $\mathrm { \dot { 4 } \cdot 1 0 ^ { 5 } }$ iterations. We see that for a small scale of initialization, $\alpha = 1 0 ^ { - 3 }$ , which is the scenario studied in this paper, both test error and train error decrease throughout training.
178
+
179
+ We observe that in the beginning, as described our theory, both test and train error decrease rapidly. After that the decrease of both test and train error slows down significantly. Moreover, the train error converges towards zero, in contrast to the test error. One reason for the slow convergence in this phase might be that $U _ { t }$ is ill-conditioned in the sense that $\sigma _ { r _ { \star } }$ $( U _ { t } W _ { t } )$ is much larger than $\Vert U _ { t } W _ { t , \bot } \Vert$ ⋆It is an interesting future research direction to extend our theory to this part of the training.
180
+
181
+ For large scale of initialization $\alpha = 0 . 5$ , we observe a very different behaviour. We see that the train error converges with linear rate until machine precision is reached. However, the test error barely changes throughout the training. This scale of initialization corresponds to the lazy training regime [34], where the parameters stay close to the initialization during the training. We depict the results in Figure 5.
182
+
183
+ Number of iterations until convergence: In the last experiment, we set $\alpha = 1 0 ^ { - 3 }$ and examine how many iterations are needed until the test error $\| U _ { t } U _ { t } ^ { T } - X X ^ { T } \| _ { F } ^ { 2 }$ falls below a certain threshold of $1 0 ^ { - 4 }$ for different values of $r$ obeying $5 \leq r \leq 3 0$ . For each choice of $r$ we run the experiment ten times and then average the number of iterations for each choice of $r$ . The results are depicted in Figure 6. We observe that increasing the number of columns $r$ from 5 to 10, i.e., a small amount of overparameterization, decreases the number of iterations needed. After that the number of iterations needed stays roughly constant. This observation is in line with Figure 3, where we have seen that overparameterization leads to fast decrease of the test error in the spectral phase (with diminishing speedup as $r$ becomes larger and larger) without affecting the other two phases.
184
+
185
+ ![](images/708720b79c80fa2eb96e1f8e6541f2b603ed1c1fcec3c248b501d23e83e1bffe.jpg)
186
+ Figure 6: Number of iterations required for the test error to fall below $1 0 ^ { - 4 }$ for different levels of overparameterization.
187
+
188
+ # 6 Conclusion and Broader Impact
189
+
190
+ In this paper we focused on demystifying the role of initialization when training overparameterized models by showing that small random initialization followed by a few iterations of gradient descent behaves akin to popular spectral methods. We also show that this implicit spectral bias from small random initialization, which is provably more prominent for overparameterized models, also puts the gradient descent iterations on a particular trajectory towards solutions that are not only globally optimal but also generalize well.
191
+
192
+ We think that our results give rise to a number of interesting future research directions. For example, one could extend our results to scenarios where the measurement matrices are more structured such as in matrix completion [43] or in blind deconvolution [44]. Moreover, while our main results, e.g. Theorem 3.3 do require early stopping, our simulations (e.g. Figure 5a) indicate that early stopping is not needed. It would be interesting to examine whether we can remove the early stopping requirement. It is also an interesting future avenue to examine whether the quadratic dependence of the sample complexity $m$ on $r _ { \star }$ in our results is really needed.
193
+
194
+ Moreover, while in this paper our main focus was on low-rank matrix reconstruction, we believe that our analysis holds more generally for a variety of contemporary overparameterized machine learning and signal estimation tasks including neural network training. This is a tantalizing future research direction.
195
+
196
+ Despite being theoretical/foundational in nature our results have potential for broader practical impact. In particular, low rank reconstruction problems are an important component of many recommender engines and our insights may guide better algorithm and systems designs for such engines. More broadly, training overparameterized models using stochastic GD starting from small random initialization is the work-horse of modern learning ncluding deep learning and our insights may in the long term help enable more efficient/reliable training with a smaller carbon footprint and improved test accuracy. As with other technologies such insights may potentially also be used nefariously.
197
+
198
+ # Acknowledgments and Disclosure of Funding
199
+
200
+ M.S. is supported by the Packard Fellowship in Science and Engineering, a Sloan Research Fellowship in Mathematics, an NSF-CAREER under award #1846369, the Air Force Office of Scientific Research Young Investigator Program (AFOSR-YIP) under award #FA9550-18-1-0078, DARPA Learning with Less Labels (LwLL) and FastNICS programs, and NSF-CIF awards #1813877 and #2008443.
201
+
202
+ References
203
+ [1] Blake Woodworth, Suriya Gunasekar, Jason D. Lee, Edward Moroshko, Pedro Savarese, Itay Golan, Daniel Soudry, and Nathan Srebro. Kernel and rich regimes in overparametrized models. In Jacob Abernethy and Shivani Agarwal, editors, Proceedings of Thirty Third Conference on Learning Theory, volume 125 of Proceedings of Machine Learning Research, pages 3635–3673. PMLR, 09–12 Jul 2020.
204
+ [2] Behrooz Ghorbani, Song Mei, Theodor Misiakiewicz, and Andrea Montanari. When do neural networks outperform kernel methods? arXiv preprint arXiv:2006.13409, 2020.
205
+ [3] Emmanuel J. Candès, Xiaodong Li, and Mahdi Soltanolkotabi. Phase retrieval via Wirtinger flow: theory and algorithms. IEEE Trans. Inf. Theory, 61(4):1985–2007, 2015.
206
+ [4] Yuxin Chen and Emmanuel J. Candès. Solving random quadratic systems of equations is nearly as easy as solving linear systems. Commun. Pure Appl. Math., 70(5):822–883, 2017.
207
+ [5] Cong Ma, Kaizheng Wang, Yuejie Chi, and Yuxin Chen. Implicit regularization in nonconvex statistical estimation: gradient descent converges linearly for phase retrieval, matrix completion, and blind deconvolution. Found. Comput. Math., 20(3):451–632, 2020.
208
+ [6] S. Tu, R. Boczar, M. Simchowitz, M. Soltanolkotabi, and B. Recht. Low-rank solutions of linear matrix equations via procrustes flow. In Proceedings of the 33rd International Conference on International Conference on Machine Learning (ICML), volume 48, pages 964–973. Journal of Machine Learning Research, 2016.
209
+ [7] Xiaodong Li, Shuyang Ling, Thomas Strohmer, and Ke Wei. Rapid, robust, and reliable blind deconvolution via nonconvex optimization. Appl. Comput. Harmon. Anal., 47(3):893–934, 2019.
210
+ [8] Shuyang Ling and Thomas Strohmer. Regularized gradient descent: a non-convex recipe for fast joint blind deconvolution and demixing. Inf. Inference, 8(1):1–49, 2019.
211
+ [9] Praneeth Netrapalli, Prateek Jain, and Sujay Sanghavi. Phase retrieval using alternating minimization. IEEE Trans. Signal Process., 63(18):4814–4826, 2015.
212
+ [10] Irène Waldspurger. Phase retrieval with random Gaussian sensing vectors by alternating projections. IEEE Trans. Inf. Theory, 64(5):3301–3312, 2018.
213
+ [11] Ju Sun, Qing Qu, and John Wright. When are nonconvex problems not scary? arXiv preprint arXiv:1510.06096, 2015.
214
+ [12] Yurii Nesterov and Boris T. Polyak. Cubic regularization of Newton method and its global performance. Math. Program., 108(1 (A)):177–205, 2006.
215
+ [13] Jorge Nocedal and Stephen J. Wright. Trust-region methods. Numerical Optimization, pages 66–100, 2006.
216
+ [14] Chi Jin, Rong Ge, Praneeth Netrapalli, Sham M. Kakade, and Michael I. Jordan. How to escape saddle points efficiently. page 1724–1732, 2017.
217
+ [15] Rong Ge, Furong Huang, Chi Jin, and Yang. Yuan. Escaping from saddle points: online stochastic gradient for tensor decomposition. In Proceedings of The 28th Conference on Learning Theory, pages 797–842, 2015.
218
+ [16] Maxim Raginsky, Alexander Rakhlin, and Matus Telgarsky. Non-convex learning via stochastic gradient langevin dynamics: a nonasymptotic analysis. pages 1674–1703, 2017.
219
+ [17] Yuchen Zhang, Percy Liang, and Moses Charikar. A hitting time analysis of stochastic gradient langevin dynamics. In Satyen Kale and Ohad Shamir, editors, Proceedings of the 2017 Conference on Learning Theory, volume 65 of Proceedings of Machine Learning Research, pages 1980–2022. PMLR, 07–10 Jul 2017.
220
+ [18] Jason D. Lee, Max Simchowitz, Michael I. Jordan, and Benjamin Recht. Gradient descent only converges to minimizers. In Vitaly Feldman, Alexander Rakhlin, and Ohad Shamir, editors, 29th Annual Conference on Learning Theory, volume 49 of Proceedings of Machine Learning Research, pages 1246–1257, Columbia University, New York, New York, USA, 23–26 Jun 2016. PMLR.
221
+ [19] Simon S Du, Chi Jin, Jason D Lee, Michael I Jordan, Aarti Singh, and Barnabas Poczos. Gradient descent can take exponential time to escape saddle points. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017.
222
+ [20] Sanjeev Arora, Nadav Cohen, Wei Hu, and Yuping Luo. Implicit regularization in deep matrix factorization. In Advances in Neural Information Processing Systems, pages 7413–7424, 2019.
223
+ [21] Yuxin Chen, Yuejie Chi, Jianqing Fan, and Cong Ma. Gradient descent with random initialization: fast global convergence for nonconvex phase retrieval. Math. Program., 176(1-2 (B)):5–37, 2019.
224
+ [22] Arthur Jacot, Franck Gabriel, and Clément Hongler. Neural tangent kernel: Convergence and generalization in neural networks. In Advances in neural information processing systems, pages 8571–8580, 2018.
225
+ [23] Samet Oymak and Mahdi Soltanolkotabi. Overparameterized nonlinear learning: Gradient descent takes the shortest path? In International Conference on Machine Learning, pages 4951–4960. PMLR, 2019.
226
+ [24] Samet Oymak and Mahdi Soltanolkotabi. Towards moderate overparameterization: global convergence guarantees for training shallow neural networks. IEEE Journal on Selected Areas in Information Theory, 2020.
227
+ [25] Simon Du, Jason Lee, Haochuan Li, Liwei Wang, and Xiyu Zhai. Gradient descent finds global minima of deep neural networks. In International Conference on Machine Learning, pages 1675–1685. PMLR, 2019.
228
+ [26] Sanjeev Arora, Simon S Du, Wei Hu, Zhiyuan Li, and Ruosong Wang. Fine-grained analysis of optimization and generalization for overparameterized two-layer neural networks. In 36th International Conference on Machine Learning, ICML 2019, pages 477–502. International Machine Learning Society (IMLS), 2019.
229
+ [27] Sam Buchanan, Dar Gilboa, and John Wright. Deep networks and the multiple manifold problem. In International Conference on Learning Representations, 2021.
230
+ [28] Zixiang Chen, Yuan Cao, Difan Zou, and Quanquan Gu. How much over-parameterization is sufficient to learn deep re{lu} networks? In International Conference on Learning Representations, 2021.
231
+ [29] Song Mei, Andrea Montanari, and Phan-Minh Nguyen. A mean field view of the landscape of two-layer neural networks. Proceedings of the National Academy of Sciences, 115(33):E7665– E7671, 2018.
232
+ [30] Lénaïc Chizat and Francis Bach. On the global convergence of gradient descent for overparameterized models using optimal transport. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 31, pages 3036–3046. Curran Associates, Inc., 2018.
233
+ [31] Song Mei, Theodor Misiakiewicz, and Andrea Montanari. Mean-field theory of two-layers neural networks: dimension-free bounds and kernel limit. In Conference on Learning Theory, pages 2388–2464. PMLR, 2019.
234
+ [32] Adel Javanmard, Marco Mondelli, Andrea Montanari, et al. Analysis of a two-layer neural network via displacement convexity. Ann. Statist., 48(6):3619–3642, 2020.
235
+ [33] Justin Sirignano and Konstantinos Spiliopoulos. Mean field analysis of neural networks: a central limit theorem. Stochastic Processes Appl., 130(3):1820–1852, 2020.
236
+ [34] Lénaïc Chizat, Edouard Oyallon, and Francis Bach. On lazy training in differentiable programming. Advances in Neural Information Processing Systems, 32:2937–2947, 2019.
237
+ [35] Gene Golub and Charles F. Van Loan. Matrix computations. Baltimore, MD: The Johns Hopkins Univ. Press, 1996.
238
+ [36] Mark A Davenport and Justin Romberg. An overview of low-rank matrix recovery from incomplete observations. IEEE Journal of Selected Topics in Signal Processing, 10(4):608–622, 2016.
239
+ [37] Emmanuel J. Candès and Yaniv Plan. Tight oracle inequalities for low-rank matrix recovery from a minimal number of noisy random measurements. IEEE Trans. Inf. Theory, 57(4):2342–2359, 2011.
240
+ [38] Yuanzhi Li, Tengyu Ma, and Hongyang Zhang. Algorithmic regularization in over-parameterized matrix sensing and neural networks with quadratic activations. volume 75 of Proceedings of Machine Learning Research, pages 2–47. PMLR, 06–09 Jul 2018.
241
+ [39] Martin Slawski, Ping Li, and Matthias Hein. Regularization-free estimation in trace regression with symmetric positive semidefinite matrices. Advances in Neural Information Processing Systems, 28:2782–2790, 2015.
242
+ [40] Roman Vershynin. High-dimensional probability: An introduction with applications in data science, volume 47. Cambridge university press, 2018.
243
+ [41] Srinadh Bhojanapalli, Behnam Neyshabur, and Nati Srebro. Global optimality of local search for low rank matrix recovery. 29, 2016.
244
+ [42] Ji Chen, Dekai Liu, and Xiaodong Li. Nonconvex rectangular matrix completion via gradient descent without $\ell _ { 2 } , \infty$ regularization. IEEE Trans. Inf. Theory, 66(9):5806–5841, 2020.
245
+ [43] Emmanuel J. Candès and Benjamin Recht. Exact matrix completion via convex optimization. Found. Comput. Math., 9(6):717–772, 2009.
246
+ [44] Ali Ahmed, Benjamin Recht, and Justin Romberg. Blind deconvolution using convex programming. IEEE Trans. Inf. Theory, 60(3):1711–1732, 2014.
parse/train/rsRq--gsiE/rsRq--gsiE_content_list.json ADDED
@@ -0,0 +1,1100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Small random initialization is akin to spectral learning: Optimization and generalization guarantees for overparameterized low-rank matrix reconstruction ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 122,
9
+ 826,
10
+ 198
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Dominik Stöger Katholische Universität Eichstätt-Ingolstadt 85072 Eichstätt, Germany Dominik.Stoeger@ku.de ",
17
+ "bbox": [
18
+ 218,
19
+ 251,
20
+ 504,
21
+ 308
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Mahdi Soltanolkotabi University of Southern California Los Angeles, CA 90089 soltanol@usc.edu ",
28
+ "bbox": [
29
+ 558,
30
+ 251,
31
+ 779,
32
+ 306
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 462,
42
+ 343,
43
+ 535,
44
+ 359
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Recently there has been significant theoretical progress on understanding the convergence and generalization of gradient-based methods on nonconvex losses with overparameterized models. Nevertheless, many aspects of optimization and generalization and in particular the critical role of small random initialization are not fully understood. In this paper, we take a step towards demystifying this role by proving that small random initialization followed by a few iterations of gradient descent behaves akin to popular spectral methods. We also show that this implicit spectral bias from small random initialization, which is provably more prominent for overparameterized models, also puts the gradient descent iterations on a particular trajectory towards solutions that are not only globally optimal but also generalize well. Concretely, we focus on the problem of reconstructing a low-rank matrix from a few measurements via a natural nonconvex formulation. In this setting, we show that the trajectory of the gradient descent iterations from small random initialization can be approximately decomposed into three phases: (I) a spectral or alignment phase where we show that that the iterates have an implicit spectral bias akin to spectral initialization allowing us to show that at the end of this phase the column space of the iterates and the underlying low-rank matrix are sufficiently aligned, (II) a saddle avoidance/refinement phase where we show that the trajectory of the gradient iterates moves away from certain degenerate saddle points, and (III) a local refinement phase where we show that after avoiding the saddles the iterates converge quickly to the underlying low-rank matrix. Underlying our analysis are insights for the analysis of overparameterized nonconvex optimization schemes that may have implications for computational problems beyond low-rank reconstruction. ",
51
+ "bbox": [
52
+ 232,
53
+ 375,
54
+ 766,
55
+ 705
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 Introduction ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 174,
65
+ 731,
66
+ 310,
67
+ 747
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Many contemporary problems in machine learning and signal estimation spanning deep learning to low-rank matrix reconstruction involve fitting nonlinear models to training data. Despite tremendous empirical progress, theoretical understanding of these problems poses two fundamental challenges. First, from an optimization perspective, fitting these models often requires solving highly nonconvex optimization problems and except for a few special cases, it is not known how to provably find globally or approximately optimal solutions. Yet simple heuristics such as running (stochastic) gradient descent from (typically) small random initialization is surprisingly effective at finding globally optimal solutions. A second generalization challenge is that many modern learning models including neural network architectures are trained in an overparameterized regime where the parameters of the model exceed the size of the training dataset. It is well understood that in this overparameterized regime, these large models are highly expressive and have the capacity to (over)fit arbitrary training datasets including pure noise. Mysteriously however overparameterized models trained via simple algorithms such as (stochastic) gradient descent when initialized at random continue to predict well or generalize on yet unseen test data. In particular, it has been noted in a number of works that for many modern machine learning architectures, the scale of initialization is important for the generalization/test behavior [1, 2]. It has been noted that stronger generalization performance is typically observed for a smaller scale initialization. Indeed, small random initialization followed by (stochastic) gradient descent iterative updates is arguably the most widely used learning algorithm in modern machine learning and signal estimation. ",
74
+ "bbox": [
75
+ 174,
76
+ 762,
77
+ 825,
78
+ 900
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 174,
87
+ 90,
88
+ 825,
89
+ 215
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "There has been a large number of exciting results aimed at demystifying both the optimization and generalization aspects over the past few years. We will elaborate on these results in detail in the supplementary, however, we would like to briefly mention the common techniques and their existing limitations. On the optimization front a large body of work has emerged on providing guarantees for nonconvex optimization which can roughly be put into two categories: (I) smart initialization+local convergence and (II) landscape analysis $^ +$ saddle escaping algorithms. Approaches in (I) focus on showing local convergence of local search techniques from carefully designed spectral initializations [3, 4, 5, 6, 7, 8, 9, 10]. Approaches in (II) focus on showing that in some cases the optimization landscape is benign in the sense that all local minima are global (no spurious local minima) and the saddle points have a direction of strict negative curvature (strict saddle) [11]. Then specialized truncation or saddle escaping algorithms such as trust region, cubic regularization [12, 13], or noisy (stochastic) gradient-based methods [14, 15, 16, 17] are deployed to provably find a global optimum. Both approaches fail to fully explain the typical behavior of local search techniques in practice. Indeed, for many nonconvex problems local search techniques or simple variants, when initialized at random, quickly converge to globally optimal solutions without getting stuck in local optima/saddles without the need for sophisticated initialization or saddle escaping heuristics. We note that while for differentiable losses eventual convergence to local minimizers is known from a random initialization [18] on problems of the form (II), these results cannot rule out exponentially slow cases in the worst-case [19]. Indeed, it has been argued that in general a more granular analysis of the trajectory of gradient descent beyond the landscape may be necessary [20]. For example, some recent advances has been made by analysing the trajectory of gradient descent using a leave-one-out analysis for the phase retrieval problem [21]. ",
96
+ "bbox": [
97
+ 174,
98
+ 222,
99
+ 825,
100
+ 526
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Similarly, there has been a lot of exciting progress on the generalization front, especially for neural networks. Specific to generalization capabilities of gradient-based approaches these results broadly fall into two categories: (a) the first category is based on a linearization principle which characterizes the performance of nonlinear models such as neural networks by comparing it to a linearized kernel problem around the initialization (a.k.a. Neural Tangent Kernels) [22, 23, 24, 25, 26, 27, 28]. This has often been referred to as ”lazy training\". (b) the second category is based on a continuous limit analysis in the limit of width going to infinity and learning rate going to zero (mean-field analysis) [29, 30, 31, 32, 33]. However, these existing analyses contain many idealized and nonrealistic assumptions (e.g. requiring large, random initialization in (a), which typically leads to worse generalization than what is observed in practice, or unrealistically large widths in (b)) and therefore cannot fully explain the success of overparameterized models or serve as a guiding principle for practitioners [34]. ",
107
+ "bbox": [
108
+ 174,
109
+ 532,
110
+ 825,
111
+ 699
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Despite the aforementioned exciting recent theoretical progress many aspects of optimization and generalization and in particular the role of random initialization remains mysterious. This leads us to the main challenge of this paper ",
118
+ "bbox": [
119
+ 174,
120
+ 704,
121
+ 823,
122
+ 747
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Why is small random initialization combined with gradient descent updates so effective at finding globally optimal models that generalize well despite the nonconvex nature of the optimization landscape or model overparameterization? ",
129
+ "bbox": [
130
+ 230,
131
+ 756,
132
+ 767,
133
+ 797
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "In this paper we wish to take a step towards addressing the above challenge by demystifying the critical role of small random initialization in gradient-based approaches. Specifically we show that ",
140
+ "bbox": [
141
+ 173,
142
+ 808,
143
+ 825,
144
+ 837
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "Small random initialization followed by a few iterations of gradient descent behaves akin to spectral initialization. ",
151
+ "bbox": [
152
+ 230,
153
+ 844,
154
+ 764,
155
+ 875
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "By that, we mean more precisely, that if the initialization is chosen small enough, then in the initial stage of the training, gradient descent implicitly behaves like spectral initialization techniques such as those commonly used in techniques based on the method of moments. This implicit spectral bias of gradient descent from random initialization puts the gradient descent iterations on a particular trajectory towards solutions that are not only globally optimal but also generalize well for overparameterized models. We also show that with small random initialization this implicit spectral bias phenomenon is more prominent for more overparameterized models in the sense that it materializes after fewer iterations. This intriguing phenomenon is depicted in Figure 1 in the context of a low-rank reconstruction problem. This figure clearly demonstrates that the first few iterations of gradient descent starting from a small random initialization are virtually identical to that of running power iterations (a popular algorithm to find the spectral initialization, see, e.g. [35]). ",
162
+ "bbox": [
163
+ 174,
164
+ 882,
165
+ 821,
166
+ 911
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "image",
172
+ "img_path": "images/529cc7c147b35826e3f6274037ac6cf0cce6109d6a6d365cdfdb021513bce9d5.jpg",
173
+ "image_caption": [
174
+ "Figure 1: Gradient descent from small random initialization is akin to spectral initialization. The left figure depicts the empirical landscape of a low-rank matrix reconstruction problem with the two green circles depicting the two global minima and the white circle the saddle point at the origin. In this figure, we also depict the trajectory of the gradient descent iterations (magenta) together with the power method based on a popular spectral initialization technique (blue). Both gradient descent and power method use the same small initialization near the origin. We see that in the early stage, the two trajectories are almost the same. The figure on the right depicts the angle between the gradient descent (magenta)/power method (blue) iterates and a popular spectral initialization technique, denoted by $\\theta _ { G D }$ and $\\theta _ { P }$ respectively. This figure clearly demonstrates that for the first iterations these angles are practically the same further confirming that the initial trajectory of gradient descent and power methods are similar. See Section 5 for further detail on the experimental setup. (In this figure we have used $r = r _ { \\star } = 1 .$ ) "
175
+ ],
176
+ "image_footnote": [],
177
+ "bbox": [
178
+ 209,
179
+ 104,
180
+ 785,
181
+ 292
182
+ ],
183
+ "page_idx": 2
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "",
188
+ "bbox": [
189
+ 174,
190
+ 525,
191
+ 825,
192
+ 650
193
+ ],
194
+ "page_idx": 2
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "Concretely we focus on the problem of low-rank matrix recovery, which appears in many different application areas such as recommendation systems, phase retrieval, and quantum tomography [36]. Here, our goal is to recover a low-rank matrix of the form $X X ^ { T }$ from a few linear measurements. We consider a natural, non-convex approach based on matrix factorization, where we minimize the loss function via gradient descent. In this paper, we show that, regardless of the amount of overparameterization used, for small random initialization vanilla gradient descent will always converge towards the low-rank solution. This holds as long as the measurement operator obeys a popular restricted isometry property [37]. ",
199
+ "bbox": [
200
+ 174,
201
+ 656,
202
+ 825,
203
+ 767
204
+ ],
205
+ "page_idx": 2
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "Our analysis consists of three phases. The first phase is the aforementioned spectral or alignment phase where we show gradient descent from small random initialization behaves akin to spectral initialization, which is a key insight of this paper. Indeed, we show that the first few gradient descent iterates can be accurately approximated by power method iterates. Next, we show that after this first spectral or alignment phase, gradient descent enters a second phase, which we refer to as saddle avoidance phase. In this phase, we show that the trajectory of the gradient iterates moves away from degenerate saddle points, while the iterates maintain almost the same effective rank as $X X ^ { T }$ . In the third phase, the local refinement phase, we show that the iterates approximately converge towards the underlying low-rank matrix $X X ^ { T }$ with a geometric rate up to a certain error floor which depends on the initialization scale. In particular, by decreasing the scale of initialization this error threshold can be made arbitrarily small. While in this paper our main focus is on low-rank matrix reconstruction, we believe that our analysis holds more generally for a variety of contemporary machine learning and signal estimation tasks including neural networks. ",
210
+ "bbox": [
211
+ 174,
212
+ 772,
213
+ 825,
214
+ 911
215
+ ],
216
+ "page_idx": 2
217
+ },
218
+ {
219
+ "type": "text",
220
+ "text": "",
221
+ "bbox": [
222
+ 173,
223
+ 90,
224
+ 825,
225
+ 133
226
+ ],
227
+ "page_idx": 3
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "Finally we note that while a similar setting has already been studied in [38], our analysis goes beyond it in many important ways. For example, our result holds for any amount of overparameterization and allows for arbitrarily small initialization. Maybe most importantly, we study the spectral phase phenomenon at initialization. ",
232
+ "bbox": [
233
+ 173,
234
+ 138,
235
+ 825,
236
+ 195
237
+ ],
238
+ "page_idx": 3
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "2 Low-rank matrix recovery via non-convex optimization ",
243
+ "text_level": 1,
244
+ "bbox": [
245
+ 174,
246
+ 213,
247
+ 666,
248
+ 231
249
+ ],
250
+ "page_idx": 3
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "As mentioned earlier in this paper we focus on reconstructing a (possibly overparameterized) Positive Semidefinite (PSD) low rank matrix from a few measurements. In this problem, given $m$ observations of the form ",
255
+ "bbox": [
256
+ 174,
257
+ 244,
258
+ 823,
259
+ 284
260
+ ],
261
+ "page_idx": 3
262
+ },
263
+ {
264
+ "type": "equation",
265
+ "img_path": "images/17c5154753add6a12af58954611ee8af9e198530eb03c2ac9baab2ddfc5c65c4.jpg",
266
+ "text": "$$\ny _ { i } = \\left. A _ { i } , X X ^ { T } \\right. = \\operatorname { T r } \\left( A _ { i } X X ^ { T } \\right) \\qquad { \\mathrm { ~ } } i = 1 , \\ldots , m ,\n$$",
267
+ "text_format": "latex",
268
+ "bbox": [
269
+ 328,
270
+ 282,
271
+ 668,
272
+ 301
273
+ ],
274
+ "page_idx": 3
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "we wish to reconstruct the unknown matrix $X X ^ { T }$ . Here, $X \\in \\mathbb { R } ^ { n \\times r _ { \\star } }$ with $1 \\leq r _ { \\star } \\leq n$ is a factor of the unknown matrix and $\\left\\{ A _ { i } \\right\\} _ { i = 1 } ^ { m }$ are known symmetric measurement matrices. A common approach to solving this problem is via minimizing the loss function ",
279
+ "bbox": [
280
+ 174,
281
+ 303,
282
+ 825,
283
+ 345
284
+ ],
285
+ "page_idx": 3
286
+ },
287
+ {
288
+ "type": "equation",
289
+ "img_path": "images/ddc90aa63d2d53676d4778f3b6fb06592c1d61b6cbc5a010ccf4f32051ac0010.jpg",
290
+ "text": "$$\n\\operatorname* { m i n } _ { \\bar { U } \\in \\mathbb { R } ^ { n \\times r } } f ( \\bar { U } ) : = \\operatorname* { m i n } _ { \\bar { U } \\in \\mathbb { R } ^ { n \\times r } } \\frac { 1 } { 4 m } \\sum _ { i = 1 } ^ { m } \\left( y _ { i } - \\langle A _ { i } , \\bar { U } \\bar { U } ^ { T } \\rangle \\right) ^ { 2 } ,\n$$",
291
+ "text_format": "latex",
292
+ "bbox": [
293
+ 330,
294
+ 349,
295
+ 666,
296
+ 385
297
+ ],
298
+ "page_idx": 3
299
+ },
300
+ {
301
+ "type": "text",
302
+ "text": "with $r \\geq r _ { \\star }$ . More compactly one can rewrite the optimization problem above in the form ",
303
+ "bbox": [
304
+ 171,
305
+ 387,
306
+ 756,
307
+ 401
308
+ ],
309
+ "page_idx": 3
310
+ },
311
+ {
312
+ "type": "equation",
313
+ "img_path": "images/4c5da8d1b41552068c101dcc19f1dd19603b7a22028caa88ab2d7e7beeaa52fb.jpg",
314
+ "text": "$$\n\\operatorname* { m i n } _ { \\bar { U } \\in \\mathbb { R } ^ { n \\times r } } f ( \\bar { U } ) : = \\operatorname* { m i n } _ { \\bar { U } \\in \\mathbb { R } ^ { n \\times r } } \\frac { 1 } { 4 } \\left. A \\left( \\bar { U } \\bar { U } ^ { T } - X X ^ { T } \\right) \\right. _ { \\ell _ { 2 } } ^ { 2 } ,\n$$",
315
+ "text_format": "latex",
316
+ "bbox": [
317
+ 336,
318
+ 404,
319
+ 660,
320
+ 435
321
+ ],
322
+ "page_idx": 3
323
+ },
324
+ {
325
+ "type": "text",
326
+ "text": "where $\\mathcal { A } : \\mathbb { R } ^ { n \\times n } \\longrightarrow \\mathbb { R } ^ { m }$ is the measurement operator defined by $\\begin{array} { r } { [ \\boldsymbol { \\mathcal { A } } \\left( Z \\right) ] _ { i } : = \\frac { 1 } { \\sqrt { m } } \\big \\langle \\boldsymbol { A } _ { i } , Z \\big \\rangle } \\end{array}$ . ",
327
+ "bbox": [
328
+ 168,
329
+ 439,
330
+ 759,
331
+ 457
332
+ ],
333
+ "page_idx": 3
334
+ },
335
+ {
336
+ "type": "text",
337
+ "text": "In order to solve the minimization problem (2) we run gradient descent iterations starting from (often small) random initialization. More specifically, ",
338
+ "bbox": [
339
+ 173,
340
+ 464,
341
+ 823,
342
+ 492
343
+ ],
344
+ "page_idx": 3
345
+ },
346
+ {
347
+ "type": "equation",
348
+ "img_path": "images/5212d41b3fe1c490fdb557b77937af01bb0bfbd1876c21f70af82f85e2f5db8c.jpg",
349
+ "text": "$$\n\\begin{array} { r l } & { U _ { t + 1 } = U _ { t } - \\mu \\nabla f \\left( U _ { t } \\right) = U _ { t } + \\mu \\mathcal { A } ^ { * } \\left[ y - \\mathcal { A } \\left( U _ { t } U _ { t } ^ { T } \\right) \\right] U _ { t } } \\\\ & { \\qquad = U _ { t } + \\mu \\left[ \\left( \\mathcal { A } ^ { * } \\mathcal { A } \\right) \\left( X X ^ { T } - U _ { t } U _ { t } ^ { T } \\right) \\right] U _ { t } . } \\end{array}\n$$",
350
+ "text_format": "latex",
351
+ "bbox": [
352
+ 316,
353
+ 494,
354
+ 679,
355
+ 537
356
+ ],
357
+ "page_idx": 3
358
+ },
359
+ {
360
+ "type": "text",
361
+ "text": "where we have set $U _ { 0 } = \\alpha U$ is the initialization matrix, $A ^ { * }$ denotes the adjoint operator of $\\mathcal { A }$ and $y = \\left( y _ { i } \\right) _ { i = 1 } ^ { m } \\in \\mathbb { R } ^ { m }$ = A denotes the measurement vector. Here, $U \\in \\mathbb { R } ^ { n \\times r }$ Ais a typically random matrix =which represents the form of the initialization and $\\alpha > 0$ is a scaling parameter. ",
362
+ "bbox": [
363
+ 173,
364
+ 540,
365
+ 823,
366
+ 582
367
+ ],
368
+ "page_idx": 3
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "There are two challenges associated with analyzing such randomly initialized gradient descent updates. The first is an optimization challenge. Since $f$ is non-convex it is a priori not clear whether gradient descent converges to a global optimum or whether it gets stuck in a local minima and/or saddle. The second challenge is that of generalization. This is particularly pronounced in the overparameterized scenario where the number of parameters are larger than the number of data points i.e. $r n \\geq m$ . In this case, there are infinitely many $\\bar { U }$ such that $\\check { f ( U ) } = 0$ , but $\\| \\bar { U } \\bar { U } ^ { T } - X X ^ { T } \\| _ { F }$ is arbitrarily large (see, e.g., [39, Proposition 1]). That is, even if gradient descent converges to a global optimum, i.e. $f \\left( { \\bar { U } } \\right) { \\bar { = } } 0$ , it is a priori not clear whether it has found the low-rank solution $X X ^ { T }$ (see also Figure 5). ",
373
+ "bbox": [
374
+ 173,
375
+ 587,
376
+ 826,
377
+ 702
378
+ ],
379
+ "page_idx": 3
380
+ },
381
+ {
382
+ "type": "text",
383
+ "text": "3 Main results ",
384
+ "text_level": 1,
385
+ "bbox": [
386
+ 173,
387
+ 719,
388
+ 312,
389
+ 736
390
+ ],
391
+ "page_idx": 3
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "In this section, we present our main results. Stating these results requires a couple of simple definitions. \nThe first definition concerns the measurement operator $\\mathcal { A }$ . ",
396
+ "bbox": [
397
+ 174,
398
+ 750,
399
+ 825,
400
+ 779
401
+ ],
402
+ "page_idx": 3
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "Definition 3.1 (Restricted Isometry Property (RIP)). The measurement operator $\\mathcal { A } : \\mathbb { R } ^ { n \\times n } \\longrightarrow \\mathbb { R } ^ { m }$ satisfies RIP of rank $r$ with constant $\\delta > 0$ , if it holds for all matrices $Z$ of rank at most $r$ ",
407
+ "bbox": [
408
+ 166,
409
+ 780,
410
+ 820,
411
+ 809
412
+ ],
413
+ "page_idx": 3
414
+ },
415
+ {
416
+ "type": "equation",
417
+ "img_path": "images/6759ddba7e993a8560291f907f2696329738fd0752f4d383e96918226659b3d4.jpg",
418
+ "text": "$$\n\\left( 1 - \\delta \\right) \\left\\| Z \\right\\| _ { F } ^ { 2 } \\leq \\left\\| A \\left( Z \\right) \\right\\| _ { \\ell _ { 2 } } ^ { 2 } \\leq \\left( 1 + \\delta \\right) \\left\\| Z \\right\\| _ { F } ^ { 2 } .\n$$",
419
+ "text_format": "latex",
420
+ "bbox": [
421
+ 356,
422
+ 811,
423
+ 642,
424
+ 833
425
+ ],
426
+ "page_idx": 3
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "We note that for a Gaussian measurement operator $A ^ { 1 }$ , RIP of rank $r$ and constant $\\delta > 0$ holds with high probability, if the number of observations satisfies $m \\gtrsim n r / \\delta ^ { 2 }$ [37, 40]. ",
431
+ "bbox": [
432
+ 176,
433
+ 843,
434
+ 825,
435
+ 875
436
+ ],
437
+ "page_idx": 3
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "The second definition concerns the condition number of the factor $X$ . ",
442
+ "bbox": [
443
+ 173,
444
+ 90,
445
+ 629,
446
+ 106
447
+ ],
448
+ "page_idx": 4
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "Definition 3.2 (condition number). We denote the condition number of $X \\in \\mathbb { R } ^ { n \\times r _ { \\star } }$ by $\\kappa : = { \\frac { \\| X \\| } { \\sigma _ { r , \\star } ( X ) } }$ , where $\\sigma _ { r _ { \\star } }$ $( X )$ denotes $r _ { \\star }$ -th largest singular value of $X$ . ",
453
+ "bbox": [
454
+ 174,
455
+ 111,
456
+ 825,
457
+ 145
458
+ ],
459
+ "page_idx": 4
460
+ },
461
+ {
462
+ "type": "text",
463
+ "text": "With these definitions in place we are now ready to state our main results. Due to space limitations in the main paper we focus on the case of $r \\geq 2 r _ { \\star }$ . With refer the reader to the supplementary for results covering all $r \\geq r _ { \\star }$ including two special cases: (1) the fully overparameterized case, i.e., $r = n$ along with comparisons with existing work, in this case [38], and (2) the scenario that $U$ has the same number of parameters as $X$ , i.e., $r = r _ { \\star }$ . ",
464
+ "bbox": [
465
+ 173,
466
+ 155,
467
+ 825,
468
+ 227
469
+ ],
470
+ "page_idx": 4
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "Theorem 3.3. Let $X \\in \\mathbb { R } ^ { n \\times r _ { * } }$ and assume we have m measurements of the low rank matrix $X X ^ { T }$ of the form $y = \\mathcal { A } \\left( X X ^ { T } \\right)$ with $\\mathcal { A }$ the measurement operator. We assume $\\mathcal { A }$ satisfies the restricted isometry property for all matrices of rank at most $2 r _ { \\star } + 1$ with constant $\\delta \\le c \\kappa ^ { - 4 } { r _ { \\star } } ^ { - 1 / 2 }$ . To reconstruct $X X ^ { T }$ from the measurements we fit a model of the form $\\bar { U } \\mapsto \\mathcal { A } \\left( \\bar { U } \\bar { U } ^ { T } \\right)$ with $\\bar { U } \\in \\mathbb { R } ^ { n \\times r }$ via running gradient descent iterations of the form $U _ { t + 1 } = U _ { t } - \\mu \\nabla f \\left( U _ { t } \\right)$ on the objective (2) with a step size obeying $\\mu \\leq c \\kappa ^ { - 4 } \\| X \\| ^ { - 2 }$ . Here, the initialization is given by $U _ { 0 } = \\alpha U$ , where $U \\in \\mathbb { R } ^ { n \\times r }$ has i.i.d. entries distributed as $\\mathcal { N } \\left( 0 , 1 / \\sqrt { r } \\right)$ . Furthermore, we assume $r \\geq 2 r _ { \\star }$ and that the scale of initialization fulfills ",
475
+ "bbox": [
476
+ 173,
477
+ 229,
478
+ 826,
479
+ 352
480
+ ],
481
+ "page_idx": 4
482
+ },
483
+ {
484
+ "type": "equation",
485
+ "img_path": "images/162d86d2b1d8f411997e3798a30cb2ab74b715d57aa94d4b9c7a86f08be235bf.jpg",
486
+ "text": "$$\n\\alpha \\lesssim \\operatorname* { m i n } \\left\\{ \\frac { \\left( \\operatorname* { m i n } \\left\\{ r ; n \\right\\} \\right) ^ { 1 / 4 } } { \\kappa ^ { 1 / 2 } n ^ { 3 / 4 } } \\left( 2 \\kappa ^ { 2 } \\sqrt { \\frac { n } { \\operatorname* { m i n } \\left\\{ r ; n \\right\\} } } \\right) ^ { - 6 \\kappa ^ { 2 } } ; \\frac { 1 } { \\kappa ^ { 7 } n } \\right\\} \\| X \\| .\n$$",
487
+ "text_format": "latex",
488
+ "bbox": [
489
+ 282,
490
+ 361,
491
+ 715,
492
+ 405
493
+ ],
494
+ "page_idx": 4
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "Then, after ",
499
+ "bbox": [
500
+ 173,
501
+ 414,
502
+ 248,
503
+ 428
504
+ ],
505
+ "page_idx": 4
506
+ },
507
+ {
508
+ "type": "equation",
509
+ "img_path": "images/af090434c87aba7d91c2931f4b1681168dba555684ddab242acf08cff66a44d0.jpg",
510
+ "text": "$$\n\\hat { t } \\lesssim \\frac { 1 } { \\mu \\sigma _ { \\mathrm { m i n } } \\left( \\boldsymbol X \\right) ^ { 2 } } \\ln \\left( \\frac { C _ { 1 } n \\kappa } { \\operatorname* { m i n } \\left\\{ \\boldsymbol r ; n \\right\\} } \\cdot \\operatorname* { m a x } \\left\\{ 1 ; \\frac { \\kappa r _ { \\star } } { \\operatorname* { m i n } \\left\\{ \\boldsymbol r ; n \\right\\} - r _ { \\star } } \\right\\} \\cdot \\frac { \\| \\boldsymbol X \\| } { \\alpha } \\right)\n$$",
511
+ "text_format": "latex",
512
+ "bbox": [
513
+ 274,
514
+ 438,
515
+ 723,
516
+ 474
517
+ ],
518
+ "page_idx": 4
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "iterations we have that ",
523
+ "bbox": [
524
+ 174,
525
+ 483,
526
+ 326,
527
+ 497
528
+ ],
529
+ "page_idx": 4
530
+ },
531
+ {
532
+ "type": "equation",
533
+ "img_path": "images/17bbb920c78b2cfd3a2b45ef01616d95a1e6869581a5bb6e5f868b2974050008.jpg",
534
+ "text": "$$\n\\frac { \\| U _ { \\widehat { t } } U _ { \\widehat { t } } ^ { T } - X X ^ { T } \\| _ { F } } { \\| X \\| ^ { 2 } } \\lesssim \\frac { n ^ { 2 } \\kappa ^ { 8 1 / 1 6 } r _ { \\star } ^ { 1 / 8 } } { \\left( \\operatorname* { m i n } \\left\\{ r ; n \\right\\} \\right) ^ { 1 5 / 1 6 } } \\cdot \\frac { \\alpha ^ { 2 1 / 1 6 } } { \\| X \\| ^ { 2 1 / 1 6 } } ,\n$$",
535
+ "text_format": "latex",
536
+ "bbox": [
537
+ 325,
538
+ 503,
539
+ 671,
540
+ 545
541
+ ],
542
+ "page_idx": 4
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "holds with probability at least $1 - C e ^ { - \\tilde { c } r }$ . Here, $c , \\tilde { c } , C , C _ { 1 } > 0$ are fixed numerical constants. ",
547
+ "bbox": [
548
+ 174,
549
+ 554,
550
+ 779,
551
+ 570
552
+ ],
553
+ "page_idx": 4
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "Note that the test error $\\| U _ { \\hat { t } } U _ { \\hat { t } _ { \\cdot } } ^ { T } - X X ^ { T } \\| _ { F } ^ { 2 }$ can be made arbitrarily small by choosing the scale of initialization $\\alpha$ small enough. In particular, the dependence of the test error on $\\alpha$ is polynomial and the dependence of the number of iterations on $\\alpha$ is logarithmic, which means that reducing the test error by scaling down $\\alpha$ introduces only modest additional computational cost. Hence, as long as the rank at most $2 r _ { \\star } + 1$ RIP with constant $\\delta \\le c \\kappa ^ { - 4 } { r _ { \\star } } ^ { - 1 / 2 }$ holds, gradient descent converges to a point in the proximity of the low-rank solution, whenever the initialization is chosen small enough regardless of the choice of $r$ . This holds even when the model is overparameterized i.e. $r n \\gg m$ and the optimization problem has many global optima many of which do not obey $U U ^ { T } \\approx X X ^ { T }$ . This result thus further demonstrates that when initialized with a small random initialization gradient descent has an implicit bias towards solutions of low-rank or small nuclear norm. This is in sharp contrast to Neural Tangent Kernel (NTK)-based theory for low-rank matrix recovery (see [23, Section 4.2]) which will not approximately recover the ground truth matrix $X X ^ { T }$ due to the larger scale of initialization required when using that technique. ",
558
+ "bbox": [
559
+ 173,
560
+ 579,
561
+ 826,
562
+ 763
563
+ ],
564
+ "page_idx": 4
565
+ },
566
+ {
567
+ "type": "text",
568
+ "text": "As discussed in Section 2, the restricted isometry property holds with high probability for a sample complexity $m \\gtrsim n r _ { \\star } ^ { 2 } \\kappa ^ { 8 }$ for Gaussian measurement matrices. Up to constants, this sample complexity is optimal in $n$ , while it is sub-optimal in $r _ { \\star }$ and $\\kappa$ compared to approaches based on nuclear-norm minimization (see, e.g., [37]). While there is numerical evidence that the true scaling of $m$ in $r _ { \\star }$ should also be linear in the non-convex case [41], we note that the optimal dependence of the sample complexity on $r _ { \\star }$ is a major open problem in the field, as the sample complexities in all theoretical results for non-convex approaches in the literature scale at least quadratically in $r _ { \\star }$ . ",
569
+ "bbox": [
570
+ 174,
571
+ 768,
572
+ 825,
573
+ 867
574
+ ],
575
+ "page_idx": 4
576
+ },
577
+ {
578
+ "type": "text",
579
+ "text": "Interpretation: Recall from Section 1 that our convergence analysis can be divided into three phases: the spectral phase, the saddle avoidance phase, and the local refinement phase. As it will become clear from the proofs in the supplementary when $r \\geq 2 r _ { \\star }$ the bound on the number of iterations can ",
580
+ "bbox": [
581
+ 174,
582
+ 872,
583
+ 825,
584
+ 911
585
+ ],
586
+ "page_idx": 4
587
+ },
588
+ {
589
+ "type": "text",
590
+ "text": "be decomposed as follows ",
591
+ "bbox": [
592
+ 174,
593
+ 92,
594
+ 348,
595
+ 106
596
+ ],
597
+ "page_idx": 5
598
+ },
599
+ {
600
+ "type": "equation",
601
+ "img_path": "images/b57371d4b5693f30180964b2443fc9d0f31df5de1252696993d7f6734b3cf624.jpg",
602
+ "text": "$$\n\\begin{array} { r l } { \\hat { t } \\lesssim \\frac { 1 } { \\mu \\sigma _ { \\operatorname* { m i n } } ( X ) ^ { 2 } } \\Bigg [ \\ln ( 2 \\kappa ^ { 2 } \\sqrt { \\frac { n } { \\operatorname* { m i n } \\{ r ; n \\} } } ) + } & \\ : \\underbrace { \\ln ( \\frac { \\sigma _ { \\operatorname* { m i n } } ( X ) } { \\alpha } ) } _ { \\displaystyle \\mu \\sigma _ { \\operatorname* { m i n } } ( X ) ; \\frac { 1 } { \\operatorname* { m i n } \\{ r ; n \\} - r _ { \\star } } \\} \\frac { \\| X \\| } { \\alpha } \\Bigg ) \\Bigg ] . } \\end{array}\n$$",
603
+ "text_format": "latex",
604
+ "bbox": [
605
+ 181,
606
+ 107,
607
+ 820,
608
+ 148
609
+ ],
610
+ "page_idx": 5
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "Phase III: local refinement phase ",
615
+ "bbox": [
616
+ 629,
617
+ 152,
618
+ 759,
619
+ 161
620
+ ],
621
+ "page_idx": 5
622
+ },
623
+ {
624
+ "type": "text",
625
+ "text": "First, we note that the duration of all three phases scales inversely with $\\sigma _ { \\mathrm { m i n } } \\left( X \\right) ^ { 2 }$ . This is due to the fact that in all three phases the dynamics associated the smallest singular value of $X$ is the slowest one and hence needs the most time to complete. ",
626
+ "bbox": [
627
+ 174,
628
+ 181,
629
+ 825,
630
+ 224
631
+ ],
632
+ "page_idx": 5
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "In the spectral phase, the eigenvectors corresponding to the leading $r _ { \\star }$ eigenvalues of $U _ { t } U _ { t } ^ { T }$ become aligned with the eigenvectors corresponding to the leading $r _ { \\star }$ eigenvalues of $\\mathcal { A } ^ { \\ast } \\mathcal { A } \\left( X X ^ { T } \\right)$ . We observe in (6) that in the spectral phase increasing $r$ , i.e. the amount of parameters, decreases the number of iterations in this phase. As we will explain in the supplementary, the reason is that increasing $r$ decreases the angle between the column space of the initialization $U _ { 0 }$ and the span of the eigenvectors corresponding to the leading $r _ { \\star }$ eigenvalues of $\\mathcal { A } ^ { \\ast } \\mathcal { A } \\left( X X ^ { T } \\right)$ used in spectral initialization. As a consequence, gradient descent needs fewer iterations to align these two subspaces. ",
637
+ "bbox": [
638
+ 173,
639
+ 231,
640
+ 825,
641
+ 332
642
+ ],
643
+ "page_idx": 5
644
+ },
645
+ {
646
+ "type": "text",
647
+ "text": "In the saddle avoidance phase (Phase II), $\\sigma _ { r _ { \\star } } \\left( U _ { t } \\right)$ , the $r _ { \\star }$ th largest singular value of $U _ { t }$ , grows geometrically until it is on the order of $\\sigma _ { \\mathrm { m i n } } \\left( X \\right)$ . Hence, this duration depends on the ratio between the $\\sigma _ { \\mathrm { m i n } } \\left( X \\right)$ and the the scale of initialization $\\alpha$ . This is clearly reflected in the upper bound on the number of needed iterations in equation (6). ",
648
+ "bbox": [
649
+ 174,
650
+ 337,
651
+ 825,
652
+ 393
653
+ ],
654
+ "page_idx": 5
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "In Phase III, the local refinement phase, the matrix $U _ { t } U _ { t } ^ { T }$ converges towards $X X ^ { T }$ . In particular, at iteration $\\hat { t }$ the test error obeys (5). We observe that a smaller $\\alpha$ allows for a smaller test error in (5) but per (6) this higher accuracy is achieved with a modest increase in the required iterations. ",
659
+ "bbox": [
660
+ 173,
661
+ 398,
662
+ 826,
663
+ 444
664
+ ],
665
+ "page_idx": 5
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "4 A glimpse of our analysis ",
670
+ "text_level": 1,
671
+ "bbox": [
672
+ 176,
673
+ 462,
674
+ 415,
675
+ 478
676
+ ],
677
+ "page_idx": 5
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "In our proofs, we show that the trajectory of the gradient descent iterations can be approximately decomposed into three phases: (I) a spectral or alignment phase where we show that gradient descent from random initialization behaves akin to spectral initialization allowing us to show that at the end of this phase the column spaces of the iterates $U _ { t }$ and the ground truth matrix $X$ are sufficiently aligned, (II) a saddle avoidance phase, where we show that the trajectory of the gradient iterates move away from certain degenerate saddle points , and (III) a refinement phase, where the product of the gradient descent iterates $U _ { t } U _ { t } ^ { T }$ converges quickly to the underlying low-rank matrix $X X ^ { T }$ . The latter result holds up to a small error that is commensurate with the scale of the initialization and tends to zero as the scale of the initialization goes to zero. ",
682
+ "bbox": [
683
+ 173,
684
+ 491,
685
+ 826,
686
+ 617
687
+ ],
688
+ "page_idx": 5
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "To formalize the above, we use $L$ and $L _ { t }$ to denote the subspaces spanned by the eigenvectors corresponding to the $r _ { \\star }$ largest eigenvalues of the matrix $\\mathcal { A } ^ { \\ast } \\bar { \\mathcal { A } } \\left( X X ^ { \\bar { T } } \\right)$ , and $U _ { t } U _ { t } ^ { T }$ , respectively. Moreover, for a subspace $L$ of dimension $r _ { \\star }$ we use $V _ { L } \\in \\mathbb { R } ^ { n \\times r _ { \\star } }$ to denote an orthonormal matrix whose columns span the subspace $L$ . Note that $L$ is the subspace, which is obtained by commonly used spectral methods. Using this notation, Figure 2a depicts the three phases described above. ",
693
+ "bbox": [
694
+ 173,
695
+ 622,
696
+ 825,
697
+ 695
698
+ ],
699
+ "page_idx": 5
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "In the spectral phase we will prove that we can approximate the iterate $U _ { t }$ by ",
704
+ "bbox": [
705
+ 174,
706
+ 702,
707
+ 678,
708
+ 717
709
+ ],
710
+ "page_idx": 5
711
+ },
712
+ {
713
+ "type": "equation",
714
+ "img_path": "images/a5ffbedecb3f3b13b318a41b6e6d0ddb14fd617b694e76cee586e407e1d80034.jpg",
715
+ "text": "$$\nU _ { t } \\approx \\underbrace { \\big ( \\mathbf { I d } + \\mu \\mathbf { \\mathcal { A } } ^ { * } \\mathbf { \\mathcal { A } } \\left( X X ^ { T } \\right) \\big ) } _ { = : Z _ { t } } ^ { t } U _ { 0 } = Z _ { 1 } ^ { t } U _ { 0 } : = \\tilde { U } _ { t } .\n$$",
716
+ "text_format": "latex",
717
+ "bbox": [
718
+ 346,
719
+ 718,
720
+ 651,
721
+ 761
722
+ ],
723
+ "page_idx": 5
724
+ },
725
+ {
726
+ "type": "text",
727
+ "text": "We note that the matrix $Z _ { 1 } \\ = \\ \\mathrm { I d } + \\mu \\mathcal { A } ^ { * } \\mathcal { A } \\left( X X ^ { T } \\right)$ is the basis for the commonly used spectral initialization, where typically a factorization of the rank $r _ { * }$ approximation of this matrix is used as the initialization [6, 5, 42]. Therefore, the approximation (7) suggests that gradient descent iterates modulo the normalization are akin to running power method on $Z _ { 1 }$ . Hence, we expect that at the end of the spectral phase the subspace $L _ { t }$ to be closely aligned with the subspace $L$ , i.e. the subspace obtained by commonly used spectral initialization techniques. In particular, this also implies that $L _ { t }$ is also aligned with the subspace $X$ . Figure 2b clearly illustrates that the first few iterations of gradient descent behave essentially identical to the power method, confirming our intuition. ",
728
+ "bbox": [
729
+ 173,
730
+ 763,
731
+ 825,
732
+ 877
733
+ ],
734
+ "page_idx": 5
735
+ },
736
+ {
737
+ "type": "text",
738
+ "text": "The description of the second and third phase is more elaborate and technical in nature and we defer to the supplementary for a more detailed and intuitive explanation. However, to give a brief description, in these two phases we will decompose the iterates $U _ { t }$ into the sum of two matrices, a \"signal\" matrix of rank $r _ { \\star }$ and a \"noise\" matrix of rank at most $r - r _ { \\star }$ . In Phase (II) we will prove that the smallest singular value of the signal term, which is approximately the same as $\\sigma _ { r _ { \\star } }$ $\\left( U _ { t } \\right)$ grows, whereas the spectral norm of the noise matrix grows at a much slower rate. We will also show that in this phase the columns of the signal term stay approximately aligned with the span of the matrix $X$ . As soon as the smallest singular value of the signal term of $U _ { t }$ is approximately at the same order than the smallest singular value of $X$ we enter Phase (III). In that Phase we provide a local convergence argument, which shows that the signal term of $U _ { t }$ converges towards $X$ (up to a rotation), whereas the noise term stays small. ",
739
+ "bbox": [
740
+ 173,
741
+ 882,
742
+ 821,
743
+ 911
744
+ ],
745
+ "page_idx": 5
746
+ },
747
+ {
748
+ "type": "image",
749
+ "img_path": "images/1bd5cd3f84f3b10d56dfbc66dd9d4cf467ad43f5bf6f2cea7b25b7f27b08514f.jpg",
750
+ "image_caption": [
751
+ "Figure 2: (a) Depiction of the three phases of convergence. This figure demonstrates that the convergence analysis can be divided into three phases: (I) spectral/alignment phase; (II) saddle avoidance phase and (III) the refinement phase. We see that in the first phase the first $r _ { \\star }$ eigenvectors of $U _ { t } U _ { t } ^ { T }$ rapidly learn the subspace corresponding to the first $r _ { \\star }$ eigenvectors of $\\mathcal { A } ^ { \\ast } \\mathcal { A } \\left( X X ^ { T } \\right)$ , i.e. the angle $\\| V _ { L ^ { \\bot } } ^ { T } V _ { L _ { t } } \\|$ becomes small. The $r _ { \\star }$ th largest singular value of $U _ { t }$ is still small in this phase and the (normalized) test error $\\| U _ { t } U _ { t } - X X ^ { T } \\| _ { F } ^ { 2 } / \\| X X ^ { T } \\| _ { F } ^ { 2 }$ has not decreased yet. In Phase (II), however, we see that $\\sigma _ { r _ { \\star } }$ $\\left( U _ { t } \\right)$ is growing, whereas the loss begins to decrease in this phase and the subspaces stay aligned. In Phase (III) we see that the test error is converging towards 0 rapidly, meaning that $U _ { t } U _ { t } ^ { T }$ converges to $X X ^ { T }$ . Consequently, $\\sigma _ { r _ { \\star } } \\left( U _ { t } \\right) / \\sigma _ { r _ { \\star } } \\left( X \\right)$ converges to 1 (red curve). We also see that in this phase the angle $\\| V _ { L ^ { \\bot } } ^ { T } V _ { L _ { t } } \\|$ grows again, until it reaches a certain threshold. This is because in this phase the top $r _ { \\star }$ eigenvalues of $U _ { t } U _ { t } ^ { T }$ become aligned with the eigenvectors of $X X ^ { T }$ . (b) Depiction of the spectral alignment phase: in the first few iterations, gradient descent with small initialization behaves like a power method. Denote by ${ \\tilde { L } } _ { t }$ the subspace spanned by the eigenvectors corresponding to the $r _ { \\star }$ largest eigenvalues of the matrix $\\widetilde { U _ { t } } \\widetilde { U _ { t } } ^ { T }$ . Analogously as before denote by $V _ { \\tilde { L } _ { t } }$ an orthonormal matrix, whose columns span the subspace ${ \\tilde { L } } _ { t }$ . In this figure, we observe that in the first iterations $U _ { t }$ and $\\widetilde { U } _ { t }$ learn the subspace $L$ at almost exactly the same rate. "
752
+ ],
753
+ "image_footnote": [],
754
+ "bbox": [
755
+ 284,
756
+ 89,
757
+ 676,
758
+ 242
759
+ ],
760
+ "page_idx": 6
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "",
765
+ "bbox": [
766
+ 173,
767
+ 522,
768
+ 826,
769
+ 648
770
+ ],
771
+ "page_idx": 6
772
+ },
773
+ {
774
+ "type": "text",
775
+ "text": "5 Numerical experiments ",
776
+ "text_level": 1,
777
+ "bbox": [
778
+ 174,
779
+ 667,
780
+ 400,
781
+ 685
782
+ ],
783
+ "page_idx": 6
784
+ },
785
+ {
786
+ "type": "text",
787
+ "text": "In this section, we perform several numerical experiments to corroborate our theoretical results. ",
788
+ "bbox": [
789
+ 171,
790
+ 699,
791
+ 797,
792
+ 714
793
+ ],
794
+ "page_idx": 6
795
+ },
796
+ {
797
+ "type": "text",
798
+ "text": "Experimental setup. For the experiments we set the ground truth matrix $X \\in \\mathbb { R } ^ { n \\times r _ { \\star } }$ to be a random orthogonal matrix with $n = 2 0 0$ and $r _ { \\star } = 5$ . Moreover, we use $m = 1 0 n { r _ { \\star } } = 5 0 n$ random Gaussian measurements. The initialization $U$ is chosen as in Theorem 3.3 and we use a step size of $\\mu = 1 / 4$ which is consistent with these theorems. We note that while all experimental depictions are based on a single trial, in line with the NeurIPS guidelines we have drawn these curves multiple times (not depicted) and the behavior of the plots do not change. ",
799
+ "bbox": [
800
+ 174,
801
+ 719,
802
+ 825,
803
+ 804
804
+ ],
805
+ "page_idx": 6
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "Depiction of the three phases and the role of overparameterization. In our first experiment, we want to examine how increasing the number of parameters via increasing the number of the columns $r$ of the matrix $U _ { t } \\in \\mathbb { R } ^ { n \\times r }$ , affects the spectral phase. To this aim we set the scale of initialization to $\\alpha = 1 / \\left( 7 0 n ^ { 2 } \\right)$ . Let $L$ denote the subspace spanned by the eigenvectors corresponding to the leading $r _ { \\star }$ singular values of $\\mathcal { A } ^ { \\ast } \\mathcal { A } ( X X ^ { T } )$ and $L _ { t }$ denotes the subspace spanned by the left-singular vectors corresponding to the largest $r _ { \\star }$ singular values of $U _ { t }$ . ",
810
+ "bbox": [
811
+ 174,
812
+ 823,
813
+ 825,
814
+ 911
815
+ ],
816
+ "page_idx": 6
817
+ },
818
+ {
819
+ "type": "image",
820
+ "img_path": "images/665e23a4f08b841b53ae6d28270bed70053f954399ac8df02b5f30441b348f05.jpg",
821
+ "image_caption": [
822
+ "Figure 3: Impact of different levels of overparameterization on (a) the angle $\\| V _ { L ^ { \\bot } } ^ { T } V _ { L _ { t } } \\|$ and (b) the $r _ { \\star }$ th largest singular value, (c) the trajectory of the (normalized) test error $\\| U _ { t } U _ { t } ^ { T } - X X ^ { T } \\| _ { F } / \\| X X ^ { T } \\| _ { F }$ . "
823
+ ],
824
+ "image_footnote": [],
825
+ "bbox": [
826
+ 174,
827
+ 92,
828
+ 766,
829
+ 457
830
+ ],
831
+ "page_idx": 7
832
+ },
833
+ {
834
+ "type": "text",
835
+ "text": "Spectral phase and alignment under different levels of overparameterization. First, we examine how the angle between these two subspaces (i.e. $\\| V _ { L ^ { \\perp } } ^ { T } V _ { L _ { t } } \\| ,$ ) changes in the first few iterations. We depict the results for different $r$ in Figure 3a. We see that in the first few iterations, i.e. in the spectral phase, this angle converges towards zero. This confirms the main conclusion of this paper that the first few iterations of gradient descent from small random initialization indeed behaves akin to running power method for spectral initialization. This experiment also shows that changing the number of columns $r$ of $U _ { t }$ has an interesting effect on the spectral phase. In particular, increasing $r$ allows the gradient descent algorithm to learn the subspace $L$ with fewer iterations, i.e. $\\| V _ { L ^ { \\bot } } ^ { T } V _ { L _ { t } } \\|$ becomes small with fewer iterations. This is in accordance with our theory for $r _ { \\star } \\le r \\le n$ (see, for example, the first summand on the right-hand side of equation (6)), where we show that more overparameterization allows gradient descent to leave the spectral phase earlier. Interestingly, this improvement continues to hold even when increasing $r$ beyond $n$ allowing for even faster convergence of $\\| V _ { L ^ { \\bot } } ^ { T } V _ { L _ { t } } \\|$ . This holds even though in this case the rank of $U _ { 0 }$ is still not larger than $n$ . One potential explanation for this phenomenon might be that for such a choice of $r$ the matrix $U _ { 0 }$ is better conditioned. ",
836
+ "bbox": [
837
+ 173,
838
+ 535,
839
+ 826,
840
+ 733
841
+ ],
842
+ "page_idx": 7
843
+ },
844
+ {
845
+ "type": "text",
846
+ "text": "Growth of $\\sigma _ { r _ { \\star } } \\left( U _ { t } \\right)$ and saddle avoidance. In Figure 3b we depict how $\\sigma _ { r _ { \\star } } \\left( U _ { t } \\right)$ grows during the training for different choices of $r$ . We see that the curves look similar, although for smaller $r$ the growth phase sets in at a slightly later time. This is due to the fact that for smaller $r$ , as we have seen in Figure 3a, Phase I, the spectral phase takes longer to complete. ",
847
+ "bbox": [
848
+ 174,
849
+ 739,
850
+ 825,
851
+ 797
852
+ ],
853
+ "page_idx": 7
854
+ },
855
+ {
856
+ "type": "text",
857
+ "text": "Evolution of the test error and the refinement phase. Similarly, in Figure 3c we depict how the (normalized) test error $\\| U _ { t } U _ { t } ^ { T } - X X ^ { T } \\| _ { F } / \\| X X ^ { T } \\| _ { F }$ evolves during the training for different choices of $r$ . We observe that for smaller $r$ the third phase sets in slightly later. Again, this is due to the fact that for smaller $r$ the spectral phase takes slightly longer to complete (see inequality (6)). ",
858
+ "bbox": [
859
+ 173,
860
+ 803,
861
+ 825,
862
+ 863
863
+ ],
864
+ "page_idx": 7
865
+ },
866
+ {
867
+ "type": "text",
868
+ "text": "Test error under different scales of initialization. In the next experiment, we focus on understanding how the scale of initialization $\\alpha$ affects the generalization error $\\| U _ { t } U _ { t } ^ { T } - X X ^ { T } \\| _ { F } ^ { 2 }$ ",
869
+ "bbox": [
870
+ 173,
871
+ 882,
872
+ 823,
873
+ 911
874
+ ],
875
+ "page_idx": 7
876
+ },
877
+ {
878
+ "type": "image",
879
+ "img_path": "images/f37264bb67eb12df04f997c4ce59e16a703a16cebf79bcfc5db995012edcdb80.jpg",
880
+ "image_caption": [
881
+ "Figure 4: Relative test erro r ∥UtUTt −XXT ∥FT for different scales of initialization α . "
882
+ ],
883
+ "image_footnote": [],
884
+ "bbox": [
885
+ 382,
886
+ 87,
887
+ 619,
888
+ 232
889
+ ],
890
+ "page_idx": 8
891
+ },
892
+ {
893
+ "type": "image",
894
+ "img_path": "images/064c23755d50858b141e0a12e3b8fb4f590d169b4eaadbef14b71d65606dd375.jpg",
895
+ "image_caption": [
896
+ "Figure 5: Change of test error $\\| U _ { t } U _ { t } ^ { T } - X X ^ { T } \\| _ { F } ^ { 2 }$ and train error $f \\left( U _ { t } \\right)$ for (a) small and (b) large $\\alpha$ during training. "
897
+ ],
898
+ "image_footnote": [],
899
+ "bbox": [
900
+ 176,
901
+ 275,
902
+ 736,
903
+ 443
904
+ ],
905
+ "page_idx": 8
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "For that, we set $r = 1 8 0$ and run gradient descent with for different choices of $\\alpha$ . We stop as soon as the training error becomes small $\\dot { ( } f \\left( U _ { t } \\right) \\le 0 . 5 \\cdot 1 0 ^ { - 9 } )$ . We depict the results in Figure 4. We see that the test error decreases as $\\alpha$ decreases. In particular, this figure indicates that the test error depends polynomially on the scale of initialization $\\alpha$ . This is in line with our theory, where we also show that the test error decreases at least with the rate $\\alpha ^ { 2 1 / 1 6 }$ (see inequality (5) in Theorem 3.3). ",
910
+ "bbox": [
911
+ 173,
912
+ 507,
913
+ 825,
914
+ 579
915
+ ],
916
+ "page_idx": 8
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "Change of test and train error during training. In the next experiment, we set $r = 1 8 0$ and examine how the test error $\\| U _ { t } U _ { t } ^ { T } - X X ^ { T } \\| _ { F } ^ { 2 }$ and the train error $f \\left( U _ { t } \\right)$ changes throughout training and, in particular, how this depends on the scale of initialization. To this aim, we run gradient descent with $\\mathrm { \\dot { 4 } \\cdot 1 0 ^ { 5 } }$ iterations. We see that for a small scale of initialization, $\\alpha = 1 0 ^ { - 3 }$ , which is the scenario studied in this paper, both test error and train error decrease throughout training. ",
921
+ "bbox": [
922
+ 174,
923
+ 599,
924
+ 825,
925
+ 669
926
+ ],
927
+ "page_idx": 8
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "We observe that in the beginning, as described our theory, both test and train error decrease rapidly. After that the decrease of both test and train error slows down significantly. Moreover, the train error converges towards zero, in contrast to the test error. One reason for the slow convergence in this phase might be that $U _ { t }$ is ill-conditioned in the sense that $\\sigma _ { r _ { \\star } }$ $( U _ { t } W _ { t } )$ is much larger than $\\Vert U _ { t } W _ { t , \\bot } \\Vert$ ⋆It is an interesting future research direction to extend our theory to this part of the training. ",
932
+ "bbox": [
933
+ 174,
934
+ 675,
935
+ 825,
936
+ 744
937
+ ],
938
+ "page_idx": 8
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "For large scale of initialization $\\alpha = 0 . 5$ , we observe a very different behaviour. We see that the train error converges with linear rate until machine precision is reached. However, the test error barely changes throughout the training. This scale of initialization corresponds to the lazy training regime [34], where the parameters stay close to the initialization during the training. We depict the results in Figure 5. ",
943
+ "bbox": [
944
+ 174,
945
+ 751,
946
+ 825,
947
+ 820
948
+ ],
949
+ "page_idx": 8
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "Number of iterations until convergence: In the last experiment, we set $\\alpha = 1 0 ^ { - 3 }$ and examine how many iterations are needed until the test error $\\| U _ { t } U _ { t } ^ { T } - X X ^ { T } \\| _ { F } ^ { 2 }$ falls below a certain threshold of $1 0 ^ { - 4 }$ for different values of $r$ obeying $5 \\leq r \\leq 3 0$ . For each choice of $r$ we run the experiment ten times and then average the number of iterations for each choice of $r$ . The results are depicted in Figure 6. We observe that increasing the number of columns $r$ from 5 to 10, i.e., a small amount of overparameterization, decreases the number of iterations needed. After that the number of iterations needed stays roughly constant. This observation is in line with Figure 3, where we have seen that overparameterization leads to fast decrease of the test error in the spectral phase (with diminishing speedup as $r$ becomes larger and larger) without affecting the other two phases. ",
954
+ "bbox": [
955
+ 174,
956
+ 827,
957
+ 825,
958
+ 911
959
+ ],
960
+ "page_idx": 8
961
+ },
962
+ {
963
+ "type": "image",
964
+ "img_path": "images/708720b79c80fa2eb96e1f8e6541f2b603ed1c1fcec3c248b501d23e83e1bffe.jpg",
965
+ "image_caption": [
966
+ "Figure 6: Number of iterations required for the test error to fall below $1 0 ^ { - 4 }$ for different levels of overparameterization. "
967
+ ],
968
+ "image_footnote": [],
969
+ "bbox": [
970
+ 393,
971
+ 88,
972
+ 606,
973
+ 223
974
+ ],
975
+ "page_idx": 9
976
+ },
977
+ {
978
+ "type": "text",
979
+ "text": "",
980
+ "bbox": [
981
+ 174,
982
+ 300,
983
+ 825,
984
+ 343
985
+ ],
986
+ "page_idx": 9
987
+ },
988
+ {
989
+ "type": "text",
990
+ "text": "6 Conclusion and Broader Impact ",
991
+ "text_level": 1,
992
+ "bbox": [
993
+ 176,
994
+ 376,
995
+ 472,
996
+ 393
997
+ ],
998
+ "page_idx": 9
999
+ },
1000
+ {
1001
+ "type": "text",
1002
+ "text": "In this paper we focused on demystifying the role of initialization when training overparameterized models by showing that small random initialization followed by a few iterations of gradient descent behaves akin to popular spectral methods. We also show that this implicit spectral bias from small random initialization, which is provably more prominent for overparameterized models, also puts the gradient descent iterations on a particular trajectory towards solutions that are not only globally optimal but also generalize well. ",
1003
+ "bbox": [
1004
+ 174,
1005
+ 415,
1006
+ 825,
1007
+ 500
1008
+ ],
1009
+ "page_idx": 9
1010
+ },
1011
+ {
1012
+ "type": "text",
1013
+ "text": "We think that our results give rise to a number of interesting future research directions. For example, one could extend our results to scenarios where the measurement matrices are more structured such as in matrix completion [43] or in blind deconvolution [44]. Moreover, while our main results, e.g. Theorem 3.3 do require early stopping, our simulations (e.g. Figure 5a) indicate that early stopping is not needed. It would be interesting to examine whether we can remove the early stopping requirement. It is also an interesting future avenue to examine whether the quadratic dependence of the sample complexity $m$ on $r _ { \\star }$ in our results is really needed. ",
1014
+ "bbox": [
1015
+ 174,
1016
+ 506,
1017
+ 825,
1018
+ 603
1019
+ ],
1020
+ "page_idx": 9
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "Moreover, while in this paper our main focus was on low-rank matrix reconstruction, we believe that our analysis holds more generally for a variety of contemporary overparameterized machine learning and signal estimation tasks including neural network training. This is a tantalizing future research direction. ",
1025
+ "bbox": [
1026
+ 174,
1027
+ 609,
1028
+ 825,
1029
+ 665
1030
+ ],
1031
+ "page_idx": 9
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "text": "Despite being theoretical/foundational in nature our results have potential for broader practical impact. In particular, low rank reconstruction problems are an important component of many recommender engines and our insights may guide better algorithm and systems designs for such engines. More broadly, training overparameterized models using stochastic GD starting from small random initialization is the work-horse of modern learning ncluding deep learning and our insights may in the long term help enable more efficient/reliable training with a smaller carbon footprint and improved test accuracy. As with other technologies such insights may potentially also be used nefariously. ",
1036
+ "bbox": [
1037
+ 174,
1038
+ 670,
1039
+ 825,
1040
+ 782
1041
+ ],
1042
+ "page_idx": 9
1043
+ },
1044
+ {
1045
+ "type": "text",
1046
+ "text": "Acknowledgments and Disclosure of Funding ",
1047
+ "text_level": 1,
1048
+ "bbox": [
1049
+ 174,
1050
+ 815,
1051
+ 553,
1052
+ 833
1053
+ ],
1054
+ "page_idx": 9
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "M.S. is supported by the Packard Fellowship in Science and Engineering, a Sloan Research Fellowship in Mathematics, an NSF-CAREER under award #1846369, the Air Force Office of Scientific Research Young Investigator Program (AFOSR-YIP) under award #FA9550-18-1-0078, DARPA Learning with Less Labels (LwLL) and FastNICS programs, and NSF-CIF awards #1813877 and #2008443. ",
1059
+ "bbox": [
1060
+ 174,
1061
+ 854,
1062
+ 825,
1063
+ 911
1064
+ ],
1065
+ "page_idx": 9
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "References \n[1] Blake Woodworth, Suriya Gunasekar, Jason D. Lee, Edward Moroshko, Pedro Savarese, Itay Golan, Daniel Soudry, and Nathan Srebro. Kernel and rich regimes in overparametrized models. In Jacob Abernethy and Shivani Agarwal, editors, Proceedings of Thirty Third Conference on Learning Theory, volume 125 of Proceedings of Machine Learning Research, pages 3635–3673. PMLR, 09–12 Jul 2020. \n[2] Behrooz Ghorbani, Song Mei, Theodor Misiakiewicz, and Andrea Montanari. When do neural networks outperform kernel methods? arXiv preprint arXiv:2006.13409, 2020. \n[3] Emmanuel J. Candès, Xiaodong Li, and Mahdi Soltanolkotabi. Phase retrieval via Wirtinger flow: theory and algorithms. IEEE Trans. Inf. Theory, 61(4):1985–2007, 2015. \n[4] Yuxin Chen and Emmanuel J. Candès. Solving random quadratic systems of equations is nearly as easy as solving linear systems. Commun. Pure Appl. Math., 70(5):822–883, 2017. \n[5] Cong Ma, Kaizheng Wang, Yuejie Chi, and Yuxin Chen. Implicit regularization in nonconvex statistical estimation: gradient descent converges linearly for phase retrieval, matrix completion, and blind deconvolution. Found. Comput. Math., 20(3):451–632, 2020. \n[6] S. Tu, R. Boczar, M. Simchowitz, M. Soltanolkotabi, and B. Recht. Low-rank solutions of linear matrix equations via procrustes flow. In Proceedings of the 33rd International Conference on International Conference on Machine Learning (ICML), volume 48, pages 964–973. Journal of Machine Learning Research, 2016. \n[7] Xiaodong Li, Shuyang Ling, Thomas Strohmer, and Ke Wei. Rapid, robust, and reliable blind deconvolution via nonconvex optimization. Appl. Comput. Harmon. Anal., 47(3):893–934, 2019. \n[8] Shuyang Ling and Thomas Strohmer. Regularized gradient descent: a non-convex recipe for fast joint blind deconvolution and demixing. Inf. Inference, 8(1):1–49, 2019. \n[9] Praneeth Netrapalli, Prateek Jain, and Sujay Sanghavi. Phase retrieval using alternating minimization. IEEE Trans. Signal Process., 63(18):4814–4826, 2015. \n[10] Irène Waldspurger. Phase retrieval with random Gaussian sensing vectors by alternating projections. IEEE Trans. Inf. Theory, 64(5):3301–3312, 2018. \n[11] Ju Sun, Qing Qu, and John Wright. When are nonconvex problems not scary? arXiv preprint arXiv:1510.06096, 2015. \n[12] Yurii Nesterov and Boris T. Polyak. Cubic regularization of Newton method and its global performance. Math. Program., 108(1 (A)):177–205, 2006. \n[13] Jorge Nocedal and Stephen J. Wright. Trust-region methods. Numerical Optimization, pages 66–100, 2006. \n[14] Chi Jin, Rong Ge, Praneeth Netrapalli, Sham M. Kakade, and Michael I. Jordan. How to escape saddle points efficiently. page 1724–1732, 2017. \n[15] Rong Ge, Furong Huang, Chi Jin, and Yang. Yuan. Escaping from saddle points: online stochastic gradient for tensor decomposition. In Proceedings of The 28th Conference on Learning Theory, pages 797–842, 2015. \n[16] Maxim Raginsky, Alexander Rakhlin, and Matus Telgarsky. Non-convex learning via stochastic gradient langevin dynamics: a nonasymptotic analysis. pages 1674–1703, 2017. \n[17] Yuchen Zhang, Percy Liang, and Moses Charikar. A hitting time analysis of stochastic gradient langevin dynamics. In Satyen Kale and Ohad Shamir, editors, Proceedings of the 2017 Conference on Learning Theory, volume 65 of Proceedings of Machine Learning Research, pages 1980–2022. PMLR, 07–10 Jul 2017. \n[18] Jason D. Lee, Max Simchowitz, Michael I. Jordan, and Benjamin Recht. Gradient descent only converges to minimizers. In Vitaly Feldman, Alexander Rakhlin, and Ohad Shamir, editors, 29th Annual Conference on Learning Theory, volume 49 of Proceedings of Machine Learning Research, pages 1246–1257, Columbia University, New York, New York, USA, 23–26 Jun 2016. PMLR. \n[19] Simon S Du, Chi Jin, Jason D Lee, Michael I Jordan, Aarti Singh, and Barnabas Poczos. Gradient descent can take exponential time to escape saddle points. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017. \n[20] Sanjeev Arora, Nadav Cohen, Wei Hu, and Yuping Luo. Implicit regularization in deep matrix factorization. In Advances in Neural Information Processing Systems, pages 7413–7424, 2019. \n[21] Yuxin Chen, Yuejie Chi, Jianqing Fan, and Cong Ma. Gradient descent with random initialization: fast global convergence for nonconvex phase retrieval. Math. Program., 176(1-2 (B)):5–37, 2019. \n[22] Arthur Jacot, Franck Gabriel, and Clément Hongler. Neural tangent kernel: Convergence and generalization in neural networks. In Advances in neural information processing systems, pages 8571–8580, 2018. \n[23] Samet Oymak and Mahdi Soltanolkotabi. Overparameterized nonlinear learning: Gradient descent takes the shortest path? In International Conference on Machine Learning, pages 4951–4960. PMLR, 2019. \n[24] Samet Oymak and Mahdi Soltanolkotabi. Towards moderate overparameterization: global convergence guarantees for training shallow neural networks. IEEE Journal on Selected Areas in Information Theory, 2020. \n[25] Simon Du, Jason Lee, Haochuan Li, Liwei Wang, and Xiyu Zhai. Gradient descent finds global minima of deep neural networks. In International Conference on Machine Learning, pages 1675–1685. PMLR, 2019. \n[26] Sanjeev Arora, Simon S Du, Wei Hu, Zhiyuan Li, and Ruosong Wang. Fine-grained analysis of optimization and generalization for overparameterized two-layer neural networks. In 36th International Conference on Machine Learning, ICML 2019, pages 477–502. International Machine Learning Society (IMLS), 2019. \n[27] Sam Buchanan, Dar Gilboa, and John Wright. Deep networks and the multiple manifold problem. In International Conference on Learning Representations, 2021. \n[28] Zixiang Chen, Yuan Cao, Difan Zou, and Quanquan Gu. How much over-parameterization is sufficient to learn deep re{lu} networks? In International Conference on Learning Representations, 2021. \n[29] Song Mei, Andrea Montanari, and Phan-Minh Nguyen. A mean field view of the landscape of two-layer neural networks. Proceedings of the National Academy of Sciences, 115(33):E7665– E7671, 2018. \n[30] Lénaïc Chizat and Francis Bach. On the global convergence of gradient descent for overparameterized models using optimal transport. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 31, pages 3036–3046. Curran Associates, Inc., 2018. \n[31] Song Mei, Theodor Misiakiewicz, and Andrea Montanari. Mean-field theory of two-layers neural networks: dimension-free bounds and kernel limit. In Conference on Learning Theory, pages 2388–2464. PMLR, 2019. \n[32] Adel Javanmard, Marco Mondelli, Andrea Montanari, et al. Analysis of a two-layer neural network via displacement convexity. Ann. Statist., 48(6):3619–3642, 2020. \n[33] Justin Sirignano and Konstantinos Spiliopoulos. Mean field analysis of neural networks: a central limit theorem. Stochastic Processes Appl., 130(3):1820–1852, 2020. \n[34] Lénaïc Chizat, Edouard Oyallon, and Francis Bach. On lazy training in differentiable programming. Advances in Neural Information Processing Systems, 32:2937–2947, 2019. \n[35] Gene Golub and Charles F. Van Loan. Matrix computations. Baltimore, MD: The Johns Hopkins Univ. Press, 1996. \n[36] Mark A Davenport and Justin Romberg. An overview of low-rank matrix recovery from incomplete observations. IEEE Journal of Selected Topics in Signal Processing, 10(4):608–622, 2016. \n[37] Emmanuel J. Candès and Yaniv Plan. Tight oracle inequalities for low-rank matrix recovery from a minimal number of noisy random measurements. IEEE Trans. Inf. Theory, 57(4):2342–2359, 2011. \n[38] Yuanzhi Li, Tengyu Ma, and Hongyang Zhang. Algorithmic regularization in over-parameterized matrix sensing and neural networks with quadratic activations. volume 75 of Proceedings of Machine Learning Research, pages 2–47. PMLR, 06–09 Jul 2018. \n[39] Martin Slawski, Ping Li, and Matthias Hein. Regularization-free estimation in trace regression with symmetric positive semidefinite matrices. Advances in Neural Information Processing Systems, 28:2782–2790, 2015. \n[40] Roman Vershynin. High-dimensional probability: An introduction with applications in data science, volume 47. Cambridge university press, 2018. \n[41] Srinadh Bhojanapalli, Behnam Neyshabur, and Nati Srebro. Global optimality of local search for low rank matrix recovery. 29, 2016. \n[42] Ji Chen, Dekai Liu, and Xiaodong Li. Nonconvex rectangular matrix completion via gradient descent without $\\ell _ { 2 } , \\infty$ regularization. IEEE Trans. Inf. Theory, 66(9):5806–5841, 2020. \n[43] Emmanuel J. Candès and Benjamin Recht. Exact matrix completion via convex optimization. Found. Comput. Math., 9(6):717–772, 2009. \n[44] Ali Ahmed, Benjamin Recht, and Justin Romberg. Blind deconvolution using convex programming. IEEE Trans. Inf. Theory, 60(3):1711–1732, 2014. ",
1070
+ "bbox": [
1071
+ 173,
1072
+ 58,
1073
+ 828,
1074
+ 917
1075
+ ],
1076
+ "page_idx": 10
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "",
1081
+ "bbox": [
1082
+ 171,
1083
+ 83,
1084
+ 826,
1085
+ 920
1086
+ ],
1087
+ "page_idx": 11
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "",
1092
+ "bbox": [
1093
+ 171,
1094
+ 83,
1095
+ 828,
1096
+ 554
1097
+ ],
1098
+ "page_idx": 12
1099
+ }
1100
+ ]
parse/train/rsRq--gsiE/rsRq--gsiE_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rsRq--gsiE/rsRq--gsiE_model.json ADDED
The diff for this file is too large to render. See raw diff