ZHANGYUXUAN-zR commited on
Commit
64848d8
·
verified ·
1 Parent(s): 52dc369

Add files using upload-large-folder tool

Browse files
parse/train/9DlCh34E1bN/9DlCh34E1bN_content_list.json ADDED
@@ -0,0 +1,1370 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "On the Expressivity of Markov Reward ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 259,
8
+ 122,
9
+ 740,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "David Abel DeepMind dmabel@deepmind.com ",
17
+ "bbox": [
18
+ 196,
19
+ 200,
20
+ 361,
21
+ 243
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Will Dabney DeepMind wdabney@deepmind.com ",
28
+ "bbox": [
29
+ 390,
30
+ 200,
31
+ 565,
32
+ 243
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Anna Harutyunyan DeepMind harutyunyan@deepmind.com ",
39
+ "bbox": [
40
+ 593,
41
+ 200,
42
+ 802,
43
+ 243
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Mark K. Ho Department of Computer Science Princeton University mho@princeton.edu ",
50
+ "bbox": [
51
+ 240,
52
+ 263,
53
+ 462,
54
+ 320
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Michael L. Littman Department of Computer Science Brown University mlittman@cs.brown.edu ",
61
+ "bbox": [
62
+ 534,
63
+ 263,
64
+ 758,
65
+ 320
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "Doina Precup DeepMind doinap@deepmind.com ",
72
+ "bbox": [
73
+ 277,
74
+ 340,
75
+ 444,
76
+ 383
77
+ ],
78
+ "page_idx": 0
79
+ },
80
+ {
81
+ "type": "text",
82
+ "text": "Satinder Singh DeepMind baveja@deepmind.com ",
83
+ "bbox": [
84
+ 553,
85
+ 340,
86
+ 720,
87
+ 383
88
+ ],
89
+ "page_idx": 0
90
+ },
91
+ {
92
+ "type": "text",
93
+ "text": "Abstract ",
94
+ "text_level": 1,
95
+ "bbox": [
96
+ 462,
97
+ 419,
98
+ 535,
99
+ 435
100
+ ],
101
+ "page_idx": 0
102
+ },
103
+ {
104
+ "type": "text",
105
+ "text": "Reward is the driving force for reinforcement-learning agents. This paper is dedicated to understanding the expressivity of reward as a way to capture tasks that we would want an agent to perform. We frame this study around three new abstract notions of “task” that might be desirable: (1) a set of acceptable behaviors, (2) a partial ordering over behaviors, or (3) a partial ordering over trajectories. Our main results prove that while reward can express many of these tasks, there exist instances of each task type that no Markov reward function can capture. We then provide a set of polynomial-time algorithms that construct a Markov reward function that allows an agent to optimize tasks of each of these three types, and correctly determine when no such reward function exists. We conclude with an empirical study that corroborates and illustrates our theoretical findings. ",
106
+ "bbox": [
107
+ 233,
108
+ 450,
109
+ 766,
110
+ 603
111
+ ],
112
+ "page_idx": 0
113
+ },
114
+ {
115
+ "type": "text",
116
+ "text": "1 Introduction ",
117
+ "text_level": 1,
118
+ "bbox": [
119
+ 174,
120
+ 630,
121
+ 310,
122
+ 647
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "How are we to use algorithms for reinforcement learning (RL) to solve problems of relevance in the world? Reward plays a significant role as a general purpose signal: For any desired behavior, task, or other characteristic of agency, there must exist a reward signal that can incentivize an agent to learn to realize these desires. Indeed, the expressivity of reward is taken as a backdrop assumption that frames RL, sometimes called the reward hypothesis: “...all of what we mean by goals and purposes can be well thought of as maximization of the expected value of the cumulative sum of a received scalar signal (reward)” [53, 29, 6]. In this paper, we establish first steps toward a systematic study of the reward hypothesis by examining the expressivity of reward as a signal. We proceed in three steps. ",
129
+ "bbox": [
130
+ 174,
131
+ 662,
132
+ 825,
133
+ 773
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "1. An Account of “Task”. As rewards encode tasks, goals, or desires, we first ask, “what is a task?”. We frame our study around a thought experiment (Figure 1) involving the interactions between a designer, Alice, and a learning agent, Bob, drawing inspiration from Ackley and Littman [2], Sorg [50], and Singh et al. [46]. In this thought experiment, we draw a distinction between how Alice thinks of a task (TASKQ) and the means by which Alice incentivizes Bob to pursue this task (EXPRESSIONQ). This distinction allows us to analyze the expressivity of reward as an answer to the latter question, conditioned on how we answer the former. Concretely, we study three answers to the TASKQ in the context of finite Markov Decision Processes (MDPs): A task is either (1) a set of acceptable behaviors (policies), (2) a partial ordering over behaviors, or (3) a partial ordering over trajectories. Further detail and motivation for these task types is provided in Section 3, but broadly they can be viewed as generalizations of typical notions of task such as a choice of goal or optimal behavior. Given these three answers to the TASKQ, we then examine the expressivity of reward. ",
140
+ "bbox": [
141
+ 174,
142
+ 789,
143
+ 825,
144
+ 900
145
+ ],
146
+ "page_idx": 0
147
+ },
148
+ {
149
+ "type": "image",
150
+ "img_path": "images/e8e8abd164d3f79d4a7a8a028af7674de12a1b7ef923da00922c85226e319ab2.jpg",
151
+ "image_caption": [
152
+ "Figure 1: Alice, Bob, and the artifacts of task definition (blue) and task expression (purple). "
153
+ ],
154
+ "image_footnote": [],
155
+ "bbox": [
156
+ 287,
157
+ 87,
158
+ 709,
159
+ 224
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "",
166
+ "bbox": [
167
+ 174,
168
+ 272,
169
+ 825,
170
+ 328
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "2. Expressivity of Markov Reward. The core of our study asks whether there are tasks Alice would like to convey—as captured by the answers to the TASKQ—that admit no characterization in terms of a Markov reward function. Our emphasis on Markov reward functions, as opposed to arbitrary history-based reward functions, is motivated by several factors. First, disciplines such as computer science, psychology, biology, and economics typically rely on a notion of reward as a numerical proxy for the immediate worth of states of affairs (such as the financial cost of buying a solar panel or the fitness benefits of a phenotype). Given an appropriate way to describe states of affairs, Markov reward functions can represent immediate worth in an intuitive manner that also allows for reasoning about combinations, sequences, or re-occurrences of such states of affairs. Second, it is not clear that general history-based rewards are a reasonable target for learning as they suffer from the curse of dimensionality in the length of the history. Lastly, Markov reward functions are the standard in RL. A rigorous analysis of which tasks they can and cannot convey may provide guidance into when it is necessary to draw on alternative formulations of a problem. Given our focus on Markov rewards, we treat a reward function as accurately expressing a task just when the value function it induces in an environment adheres to the constraints of a given task. ",
177
+ "bbox": [
178
+ 174,
179
+ 342,
180
+ 825,
181
+ 549
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "3. Main Results. We find that, for all three task types, there are environment–task pairs for which there is no Markov reward function that realizes the task (Theorem 4.1). In light of this finding, we design polynomial-time algorithms that can determine, for any given task and environment, whether a reward function exists in the environment that captures the task (Theorem 4.3). When such a reward function does exist, the algorithms also return it. Finally, we conduct simple experiments with these procedures to provide empirical insight into the expressivity of reward (Section 5). ",
188
+ "bbox": [
189
+ 173,
190
+ 564,
191
+ 825,
192
+ 647
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "Collectively, our results demonstrate that there are tasks that cannot be expressed by Markov reward in a rigorous sense, but we can efficiently construct such reward functions when they do exist (and determine when they do not). We take these findings to shed light on the nature of reward maximization as a principle, and highlight many pathways for further investigation. ",
199
+ "bbox": [
200
+ 174,
201
+ 654,
202
+ 825,
203
+ 710
204
+ ],
205
+ "page_idx": 1
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "2 Background ",
210
+ "text_level": 1,
211
+ "bbox": [
212
+ 174,
213
+ 728,
214
+ 308,
215
+ 746
216
+ ],
217
+ "page_idx": 1
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "RL defines the problem facing an agent that learns to improve its behavior over time by interacting with its environment. We make the typical assumption that the RL problem is well modeled by an agent interacting with a finite Markov Decision Process (MDP), defined by the tuple $( S , \\mathcal { A } , R , T , \\gamma , s _ { 0 } )$ . An MDP gives rise to deterministic behavioral policies, $\\pi : { \\mathcal { S } } A$ , and the value, $V ^ { \\pi } : { \\mathcal { S } } \\mathbb { R }$ , and action–value, $Q ^ { \\pi } : S \\times \\mathcal { A } \\mathbb { R }$ , functions that measure their quality. We will refer to a Controlled Markov Process (CMP) as an MDP without a reward function, which we denote $E$ for environment. We assume that all reward functions are deterministic, and may be a function of either state, stateaction pairs, or state-action-state triples, but not history. Henceforth, we simply use “reward function” to refer to a deterministic Markov reward function for brevity, but note that more sophisticated settings beyond MDPs and deterministic Markov reward functions are important directions for future work. For more on MDPs or RL, see the books by Puterman [41] and Sutton and Barto [54] respectively. ",
222
+ "bbox": [
223
+ 174,
224
+ 758,
225
+ 826,
226
+ 911
227
+ ],
228
+ "page_idx": 1
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "2.1 Other Perspectives on Reward ",
233
+ "text_level": 1,
234
+ "bbox": [
235
+ 176,
236
+ 90,
237
+ 423,
238
+ 106
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "We here briefly summarize relevant literature that provides distinct perspectives on reward. ",
245
+ "bbox": [
246
+ 171,
247
+ 116,
248
+ 766,
249
+ 131
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "Two Roles of Reward. As Sorg [50] identifies (Chapter 2), reward can both define the task the agent learns to solve, and define the “bread crumbs” that allow agents to efficiently learn to solve the task. This distinction has been raised elsewhere [2, 46, 47], and is similar to the extrinsic-intrinsic reward divide [45, 66]. Tools such as reward design [34, 51] or reward shaping [36] focus on offering more efficient learning in a variety of environments, so as to avoid issues of sparsity and long-term credit assignment. We concentrate primarily on reward’s capacity to express a task, and defer learning dynamics to an (important) stage of future work. ",
256
+ "bbox": [
257
+ 174,
258
+ 145,
259
+ 825,
260
+ 242
261
+ ],
262
+ "page_idx": 2
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "Discounts, Expectations, and Rationality. Another important facet of reward is how it is used in producing behavior. The classical view offered by the Bellman equation (and the reward hypothesis) is that the quantity of interest to maximize is expected, discounted, cumulative reward. Yet it is possible to disentangle reward from the expectation [5], to attend only to ordinal [60] or maximal rewards [26], or to adopt different forms of discounting [61, 11]. In this work, we take the standard view that agents will seek to maximize value for a particular discount factor $\\gamma$ , but recognize that there are interesting directions beyond these commitments, such as inspecting the limits of reward in constrained MDPs as studied by Szepesvári [56]. We also note the particular importance of work by Pitis [40], who examines the relationship between classical decision theory [59] and MDPs by incorporating additional axioms that account for stochastic processes with discounting [24, 35, 48, 49]. Drawing inspiration from Pitis [40] and Sunehag and Hutter [52], we foresee valuable pathways for future work that further makes contact between RL and various axioms of rationality. ",
267
+ "bbox": [
268
+ 174,
269
+ 257,
270
+ 825,
271
+ 422
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "Preferences. In place of numerical rewards, preferences of different kinds may be used to evaluate an agent’s behaviors, drawing from the literature on preference-learning [25] and ordinal dynamic programming [8, 35, 48]. This premise gives rise to preference-based reinforcement learning (PbRL) in which an agent interacts with a CMP and receives evaluative signals in the form of preferences over states, actions, or trajectories. This kind of feedback inspires and closely parallels the task types we propose in this work. A comprehensive survey of PbRL by Wirth et al. [64] identifies critical differences in this setup from traditional RL, categorizes recent algorithmic approaches, and highlights important open questions. Recent work focuses on analysing the sample efficiency of such methods [65, 38] with close connections to learning from human feedback in real time [23, 32, 7]. ",
278
+ "bbox": [
279
+ 174,
280
+ 438,
281
+ 825,
282
+ 563
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "Teaching and Inverse RL. The inverse RL (IRL) and apprenticeship learning literature examine the problem of learning directly from behavior [37, 1]. The classical problem of IRL is to identify which reward function (often up to an equivalence class) a given demonstrator is optimizing. We emphasize the relevance of two approaches: First, work by Syed et al. [55], who first illustrate the applicability of linear programming [22] to apprenticeship learning; and second, work by Amin et al. [4], who examine the repeated form of IRL. The methods of IRL have recently been expanded to include variations of cooperative IRL [14], and assistive learning [43], which offer different perspectives on how to frame interactive learning problems. ",
289
+ "bbox": [
290
+ 174,
291
+ 577,
292
+ 825,
293
+ 688
294
+ ],
295
+ "page_idx": 2
296
+ },
297
+ {
298
+ "type": "text",
299
+ "text": "Reward Misspecification. Reward is also notoriously hard to specify. As pointed out by Littman et al. [30], “putting a meaningful dollar figure on scuffing a wall or dropping a clean fork is challenging.” Along these lines, Hadfield-Menell et al. [16] identify cases in which well-intentioned designers create reward functions that produce unintended behavior [39]. MacGlashan et al. [33] find that human-provided rewards tend to depend on a learning agent’s entire policy, rather than just the current state. Further, work by Hadfield-Menell et al. [15] and Kumar et al. [27] suggest that there are problems with reward as a learning mechanism due to misspecification and reward tampering [10]. These problems have given rise to approaches to reward learning, in which a reward function is inferred from some evidence such as behavior or comparisons thereof [20]. ",
300
+ "bbox": [
301
+ 174,
302
+ 702,
303
+ 825,
304
+ 827
305
+ ],
306
+ "page_idx": 2
307
+ },
308
+ {
309
+ "type": "text",
310
+ "text": "Other Notions of Task. As a final note, we highlight alternative approaches to task specification. Building on the Free Energy Principle [13, 12], Hafner et al. [17] consider a variety of task types in terms of minimization of distance to a desired target distribution [3]. Alternatively, Littman et al. [30] and Li et al. [28] propose variations of linear temporal logic (LTL) as a mechanism for specifying a task to RL agents, with related literature extending LTL to the multi-task [58] and multi-agent [18] settings, or using reward machines for capturing task structure [19]. Jothimurugan et al. [21] take a similar approach and propose a task specification language for RL based on logical formulas that evaluate whether trajectories satisfy the task, similar in spirit to the logical task compositions framework developed by Tasse et al. [57]. Many of these notions of task are more general than those we consider. A natural direction for future work broadens our analysis to include these kinds of task. ",
311
+ "bbox": [
312
+ 174,
313
+ 842,
314
+ 825,
315
+ 911
316
+ ],
317
+ "page_idx": 2
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "",
322
+ "bbox": [
323
+ 174,
324
+ 92,
325
+ 825,
326
+ 160
327
+ ],
328
+ "page_idx": 3
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "3 An Account of Reward’s Expressivity: The TASKQ and EXPRESSIONQ ",
333
+ "text_level": 1,
334
+ "bbox": [
335
+ 171,
336
+ 184,
337
+ 800,
338
+ 203
339
+ ],
340
+ "page_idx": 3
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "Consider an onlooker, Alice, and an earnest learning agent, Bob, engaged in the interaction pictured in Figure 1. Suppose that Alice has a particular task in mind that she would like Bob to learn to solve, and that Alice constructs a reward function to incentivize Bob to pursue this task. Here, Alice is playing the role of “all of what we mean by goals and purposes” for Bob to pursue, with Bob playing the role of the standard reward-maximizing RL agent. ",
345
+ "bbox": [
346
+ 174,
347
+ 219,
348
+ 825,
349
+ 290
350
+ ],
351
+ "page_idx": 3
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "Two Questions About Task. To give us leverage to study the expressivity of reward, it is useful to draw a distinction between two stages of this process: 1) Alice thinks of a task that she would like Bob to learn to solve, and 2) Alice creates a reward function (and perhaps chooses $\\gamma$ ) that conveys the chosen task to Bob. We inspect these two separately, framed by the following two questions. The first we call the task-definition question (TASKQ) which asks: What is a task? The second we call the task-expression question (EXPRESSIONQ) which asks: Which learning signal can be used as a mechanism for expressing any task to Bob? ",
356
+ "bbox": [
357
+ 174,
358
+ 309,
359
+ 825,
360
+ 406
361
+ ],
362
+ "page_idx": 3
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "Reward Answers The EXPRESSIONQ. We suggest that it may be useful to treat reward as an answer to the EXPRESSIONQ rather than the TASKQ. On this view, reward is treated as an expressive language for incentivizing reward-maximizing agents: Alice may attempt to translate any task into a reward function that incentivizes Bob to pursue the task, no matter which environment Bob inhabits, which task Alice has chosen, or how she has represented the task to herself. Indeed, it might be the case that Alice’s knowledge of the task far exceeds Bob’s representational or perceptual capacity. Alice may know every detail of the environment and define the task based on this holistic vantage, while Bob must learn to solve the task through interaction alone, relying only on a restricted class of functions for modeling and decision making. ",
367
+ "bbox": [
368
+ 174,
369
+ 426,
370
+ 825,
371
+ 551
372
+ ],
373
+ "page_idx": 3
374
+ },
375
+ {
376
+ "type": "text",
377
+ "text": "Under this view, we can assess the expressivity of reward as an answer to the EXPRESSIONQ conditioned on how we answer the TASKQ. For example, if the TASKQ is answered in terms of natural language descriptions of desired states of affairs, then reward may fail to convey the chosen task due to the apparent mismatch in abstraction between natural language and reward (though some work has studied such a proposal [31, 62]). ",
378
+ "bbox": [
379
+ 174,
380
+ 558,
381
+ 825,
382
+ 627
383
+ ],
384
+ "page_idx": 3
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "3.1 Answers to the TASKQ: What is a Task? ",
389
+ "text_level": 1,
390
+ "bbox": [
391
+ 174,
392
+ 648,
393
+ 493,
394
+ 664
395
+ ],
396
+ "page_idx": 3
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "In RL, tasks are often associated with a choice of goal, reward function $( R )$ , reward-discount pair $( R , \\gamma )$ , or perhaps a choice of optimal policy (alongside those task types surveyed previously, such as LTL). However, it is unclear whether these constructs capture the entirety of what we mean by “task”. ",
401
+ "bbox": [
402
+ 176,
403
+ 676,
404
+ 823,
405
+ 718
406
+ ],
407
+ "page_idx": 3
408
+ },
409
+ {
410
+ "type": "text",
411
+ "text": "For example, consider the Russell and Norvig [42] grid world: A $4 \\times 3$ grid with one wall, one terminal fire state, and one terminal goal state (pictured with a particular reward function in Figure 4a). In such an environment, how might we think about tasks? A standard view is that the task is to reach the goal as quickly as possible. This account, however, fails to distinguish between the non-optimal behaviors, such as the costly behavior of the agent moving directly into the fire and the neutral behavior of the agent spending its existence in the start state. Indeed, characterizing a task in terms of choice of $\\pi ^ { * }$ or goal fails to capture these distinctions. Our view is that a suitably rich account of task should allow for the characterization of this sort of preference, offering the flexibility to scale from specifying only the desirable behavior (or outcomes) to an arbitrary ordering over behaviors (or outcomes). ",
412
+ "bbox": [
413
+ 174,
414
+ 724,
415
+ 825,
416
+ 849
417
+ ],
418
+ "page_idx": 3
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "In light of these considerations, we propose three answers to the TASKQ that can convey general preferences over behavior or outcome: 1) A set of acceptable policies, 2) A partial ordering over policies, or 3) A partial ordering over trajectories. We adopt these three as they can capture many kinds of task while also allowing a great deal of flexibility in the level of detail of the specification. ",
423
+ "bbox": [
424
+ 176,
425
+ 856,
426
+ 823,
427
+ 911
428
+ ],
429
+ "page_idx": 3
430
+ },
431
+ {
432
+ "type": "table",
433
+ "img_path": "images/5cfaee9a6d89f7040c6162dbf74013b3034be4fd35df387b50610650c954d1a6.jpg",
434
+ "table_caption": [],
435
+ "table_footnote": [
436
+ "Table 1: A summary of the three proposed task types. We further list the constraints that determine whether a reward function realizes each task type in an MDP, where we take $\\oplus$ to be one of $\\cdot _ { < } , \\cdot >$ , or $\" = \"$ , and $G$ is the discounted return of the trajectory. "
437
+ ],
438
+ "table_body": "<table><tr><td></td><td></td><td></td><td>NameNotation GeneralizesConstraints Induced by F</td></tr><tr><td>SOAPIIG</td><td></td><td>task-as-π*</td><td>equal: V&quot;g(so)= V&quot;g&#x27;(s0)&gt; Vπb(s0),∀πg,πg∈IIG,πb∈IIB range: Vπg (so) &gt; Vπb(so),∀πg∈llg,πb∈IIB</td></tr><tr><td>PO</td><td>LI</td><td>SOAP</td><td>(π1④π2)∈LI =→V1(so)④V″²(s0)</td></tr><tr><td>TO</td><td>LT,N</td><td></td><td>task-as-g0al (T1 ④ T2) ∈ LT,N =→ G(T1; So) ④ G(T2; S0)</td></tr></table>",
439
+ "bbox": [
440
+ 174,
441
+ 88,
442
+ 821,
443
+ 208
444
+ ],
445
+ "page_idx": 4
446
+ },
447
+ {
448
+ "type": "text",
449
+ "text": "3.2 SOAPs, POs, and TOs ",
450
+ "text_level": 1,
451
+ "bbox": [
452
+ 176,
453
+ 290,
454
+ 367,
455
+ 305
456
+ ],
457
+ "page_idx": 4
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "(SOAP) Set Of Acceptable Policies. A classical view of the equivalence of two reward functions is based on the optimal policies they induce. For instance, $\\mathrm { N g }$ et al. [36] develop potential-based reward shaping by inspecting which shaped reward signals will ensure that the optimal policy is unchanged. Extrapolating, it is natural to say that for any environment $E$ , two reward functions are equivalent if the optimal policies they induce in $E$ are the same. In this way, a task is viewed as a choice of optimal policy. As discussed in the grid world example above, this notion of task fails to allow for the specification of the quality of other behaviors. For this reason, we generalize task-as-optimal-policy to a set of acceptable policies, defined as follows. ",
462
+ "bbox": [
463
+ 174,
464
+ 315,
465
+ 825,
466
+ 428
467
+ ],
468
+ "page_idx": 4
469
+ },
470
+ {
471
+ "type": "text",
472
+ "text": "Definition 3.1. A set of acceptable policies $( S O A P )$ is a non-empty subset of the deterministic policies, $\\Pi _ { G } \\subseteq \\Pi$ , with Π the set of all deterministic mappings from $s$ to $\\mathcal { A }$ for a given $E$ . ",
473
+ "bbox": [
474
+ 174,
475
+ 433,
476
+ 820,
477
+ 462
478
+ ],
479
+ "page_idx": 4
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "With one task type defined, it is important to address what it means for a reward function to properly realize, express, or capture a task in a given environment. We offer the following account. ",
484
+ "bbox": [
485
+ 176,
486
+ 473,
487
+ 821,
488
+ 501
489
+ ],
490
+ "page_idx": 4
491
+ },
492
+ {
493
+ "type": "text",
494
+ "text": "Definition 3.2. A reward function is said to realize a task $\\mathcal { T }$ in an environment $E$ just when the start-state value (or return) induced by the reward function exactly adheres to the constraints of $\\mathcal { T }$ ",
495
+ "bbox": [
496
+ 174,
497
+ 506,
498
+ 820,
499
+ 535
500
+ ],
501
+ "page_idx": 4
502
+ },
503
+ {
504
+ "type": "text",
505
+ "text": "Precise conditions for the realization of each task type are provided alongside each task definition, with a summary presented in column four of Table 1. ",
506
+ "bbox": [
507
+ 176,
508
+ 546,
509
+ 823,
510
+ 575
511
+ ],
512
+ "page_idx": 4
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "For SOAPs, we take the start-state value $V ^ { \\pi } ( s _ { 0 } )$ to be the mechanism by which a reward function realizes a SOAP. That is, for a given $E$ and $\\Pi _ { G }$ , a reward function $R$ is said to realize the $\\Pi _ { G }$ in $E$ when the start-state value function is optimal for all good policies, and strictly higher than the start-state value of all other policies. It is clear that SOAP strictly generalizes a task in terms of a choice of optimal policy, as captured by the SOAP $\\Pi _ { G } = \\{ \\pi ^ { * } \\}$ . ",
517
+ "bbox": [
518
+ 174,
519
+ 582,
520
+ 825,
521
+ 651
522
+ ],
523
+ "page_idx": 4
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "We note that there are two natural ways for a reward function to realize a SOAP: First, each $\\pi _ { g } \\in \\Pi _ { G }$ has optimal start-state value and all other policies are sub-optimal. We call this type equal-SOAP, or just SOAP for brevity. Alternatively, we might only require that the acceptable policies are each near-optimal, but are allowed to differ in start-state value so long as they are all better than every bad policy $\\pi _ { b } \\in \\Pi _ { B }$ . That is, in this second kind, there exists an $\\epsilon \\geq 0$ such that every $\\pi _ { g } \\in \\Pi _ { G }$ is $\\epsilon$ -optimal in start-state value, $V ^ { \\ast } ( s _ { 0 } ) - V ^ { \\pi _ { g } } ( s _ { 0 } ) \\leq \\epsilon$ , while all other policies are worse. We call this second realization condition range-SOAP. We note that the range realization generalizes the equal one: Every equal-SOAP is a range-SOAP (by letting $\\epsilon = 0$ ). However, there exist range-SOAPs that are expressible by Markov rewards that are not realizable as an equal-SOAP. We illustrate this fact with the following proposition. All proofs are presented in Appendix B. ",
528
+ "bbox": [
529
+ 173,
530
+ 657,
531
+ 825,
532
+ 796
533
+ ],
534
+ "page_idx": 4
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "Proposition 3.1. There exists a CMP, $E$ , and choice of $\\Pi _ { G }$ such that $\\Pi _ { G }$ can be realized under the range-SOAP criterion, but cannot be realized under the equal-SOAP criterion. ",
539
+ "bbox": [
540
+ 173,
541
+ 801,
542
+ 821,
543
+ 829
544
+ ],
545
+ "page_idx": 4
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "One such CMP is pictured Figure 2b. Consider the SOAP $\\Pi _ { G } = \\left\\{ \\pi _ { 1 1 } , \\pi _ { 1 2 } , \\pi _ { 2 1 } \\right\\}$ : Under the equalSOAP criterion, if each of these three policies are made optimal, any reward function will also make $\\pi _ { 2 2 }$ (the only bad policy) optimal as well. In contrast, for the range criterion, we can choose a reward function that assigns lower rewards to $a _ { 2 }$ than $a _ { 1 }$ in both states. In general, we take the equal-SOAP realization as canonical, as it is naturally subsumed by our next task type. ",
550
+ "bbox": [
551
+ 174,
552
+ 842,
553
+ 825,
554
+ 911
555
+ ],
556
+ "page_idx": 4
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "(PO) Partial Ordering on Policies. Next, we suppose that Alice chooses a partial ordering on the deterministic policy space. That is, Alice might identify a some great policies, some good, and some bad policies to strictly avoid, and remain indifferent to the rest. POs strictly generalize equal SOAPs, as any such SOAP is a special choice of PO with only two equivalence classes. We offer the following definition of a PO. ",
561
+ "bbox": [
562
+ 174,
563
+ 92,
564
+ 825,
565
+ 160
566
+ ],
567
+ "page_idx": 5
568
+ },
569
+ {
570
+ "type": "text",
571
+ "text": "Definition 3.3. A policy order $( P O )$ of the deterministic policies $\\Pi$ is a partial order, denoted $L _ { \\Pi }$ ",
572
+ "bbox": [
573
+ 174,
574
+ 164,
575
+ 813,
576
+ 179
577
+ ],
578
+ "page_idx": 5
579
+ },
580
+ {
581
+ "type": "text",
582
+ "text": "As with SOAPs, we take the start-state value $V ^ { \\pi } ( s _ { 0 } )$ induced by a reward function $R$ as the mechanism by which policies are ordered. That is, given $E$ and $L _ { \\Pi }$ , we say that a reward function $R$ realizes $L _ { \\Pi }$ in $E$ if and only if the resulting MDP, $M = ( E , R )$ , produces a start-state value function that orders $\\Pi$ according to $L _ { \\Pi }$ . ",
583
+ "bbox": [
584
+ 176,
585
+ 189,
586
+ 825,
587
+ 246
588
+ ],
589
+ "page_idx": 5
590
+ },
591
+ {
592
+ "type": "text",
593
+ "text": "(TO) Partial Ordering on Trajectories. A natural generalization of goal specification enriches a notion of task to include the details of how a goal is satisfied—that is, for Alice to relay some preference over trajectory space [63], as is done in preference based RL [64]. Concretely, we suppose Alice specifies a partial ordering on length $N$ trajectories of $( s , a )$ pairs, defined as follows. ",
594
+ "bbox": [
595
+ 174,
596
+ 260,
597
+ 823,
598
+ 315
599
+ ],
600
+ "page_idx": 5
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "Definition 3.4. A trajectory ordering $( T O )$ of length $N \\in { \\mathbb { N } }$ is a partial ordering $L _ { \\tau , N }$ , with each trajectory $\\tau$ consisting of $N$ state–action pairs, $\\left\\{ ( s _ { 0 } , a _ { 0 } ) , \\ldots , ( a _ { N - 1 } , s _ { N - 1 } ) \\right\\}$ , with $s _ { 0 }$ the start state. ",
605
+ "bbox": [
606
+ 174,
607
+ 319,
608
+ 823,
609
+ 348
610
+ ],
611
+ "page_idx": 5
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "As with PO, we say that a reward function realizes a trajectory ordering $L _ { \\tau , N }$ if the ordering determined by each trajectory’s cumulative discounted $N$ -step return from $s _ { 0 }$ , denoted $G ( \\tau ; s _ { 0 } )$ , matches that of the given $L _ { \\tau , N }$ . We note that trajectory orderings can generalize goal-based tasks at the expense of a larger specification. For instance, a TO can convey the task, “Safely reach the goal in less than thirty steps, or just get to the subgoal in less than twenty steps.” ",
616
+ "bbox": [
617
+ 174,
618
+ 358,
619
+ 825,
620
+ 428
621
+ ],
622
+ "page_idx": 5
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "Recap. We propose to assess the expressivity of reward by first answering the TASKQ in terms of SOAPs, POs, or TOs, as summarized by Table 1. We say that a task $\\mathcal { T }$ is realized in an environment $E$ under reward function $R$ if the start-state value function (or return) produced by $R$ imposes the constraints specified by $\\mathcal { T }$ , and are interested in whether reward can always realize a given task in any choice of $E$ . We make a number of assumptions along the way, including: (1) Reward functions are Markov and deterministic, (2) Policies of interest are deterministic, (3) The environment is a finite CMP, (4) $\\gamma$ is part of the environment, (5) We ignore reward’s role in shaping the learning process, (6) Start-state value or return is the appropriate mechanism to determine if a reward function realizes a given task. Relaxation of these assumptions is a critical direction for future work. ",
627
+ "bbox": [
628
+ 173,
629
+ 443,
630
+ 825,
631
+ 568
632
+ ],
633
+ "page_idx": 5
634
+ },
635
+ {
636
+ "type": "text",
637
+ "text": "4 Analysis: The Expressivity of Markov Reward ",
638
+ "text_level": 1,
639
+ "bbox": [
640
+ 173,
641
+ 585,
642
+ 593,
643
+ 603
644
+ ],
645
+ "page_idx": 5
646
+ },
647
+ {
648
+ "type": "text",
649
+ "text": "With our definitions and objectives in place, we now present our main results. ",
650
+ "bbox": [
651
+ 176,
652
+ 617,
653
+ 679,
654
+ 632
655
+ ],
656
+ "page_idx": 5
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "4.1 Express SOAPs, POs, and TOs ",
661
+ "text_level": 1,
662
+ "bbox": [
663
+ 176,
664
+ 647,
665
+ 426,
666
+ 662
667
+ ],
668
+ "page_idx": 5
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "We first ask whether reward can always realize a given SOAP, PO, or TO, for an arbitrary $E$ . Our first result states that the answer is “no”—there are tasks that cannot be realized by any reward function. ",
673
+ "bbox": [
674
+ 174,
675
+ 672,
676
+ 825,
677
+ 700
678
+ ],
679
+ "page_idx": 5
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "Theorem 4.1. For each of SOAP, PO, and $T O$ , there exist $( E , \\mathcal { T } )$ pairs for which no Markow reward function realizes $\\mathcal { T }$ in $E$ . ",
684
+ "bbox": [
685
+ 173,
686
+ 704,
687
+ 823,
688
+ 733
689
+ ],
690
+ "page_idx": 5
691
+ },
692
+ {
693
+ "type": "text",
694
+ "text": "Thus, reward is incapable of capturing certain tasks. What tasks are they, precisely? Intuitively, inexpressible tasks involve policies or trajectories that must be correlated in value in an MDP. That is, if two policies are nearly identical in behavior, it is unlikely that reward can capture the PO that places them at opposite ends of the ordering. A simple example is the “always move the same direction” task in a grid world, with state defined as an $( x , y )$ pair. The SOAP $\\Pi _ { G } = \\{ \\pi _ { \\left. } , \\pi _ { \\uparrow } , \\pi _ { \\right. } , \\pi _ { \\downarrow } \\}$ conveys this task, but no Markov reward function can make these policies strictly higher in value than all others. ",
695
+ "bbox": [
696
+ 173,
697
+ 744,
698
+ 825,
699
+ 827
700
+ ],
701
+ "page_idx": 5
702
+ },
703
+ {
704
+ "type": "text",
705
+ "text": "Example: Inexpressible SOAPs. Observe the two CMPs pictured in Figure 2, depicting two kinds of inexpressible SOAPs. On the left, we consider the SOAP $\\bar { \\Pi } _ { G } = \\{ \\pi _ { 2 1 } \\}$ , containing only the policy that executes $a _ { 2 }$ in the left state $( s _ { 0 } )$ , and $a _ { 1 }$ in the right $( s _ { 1 } )$ . This SOAP is inexpressible through reward, but only because reward cannot distinguish the start-state value of $\\pi _ { 2 1 }$ and $\\pi _ { 2 2 }$ since the policies differ only in an unreachable state. This is reminiscent of Axiom 5 from Pitis [40], which explicitly excludes preferences of this sort. On the right, we find a more interesting case: The chosen SOAP is similar to the XOR function, $\\Pi _ { G } = \\{ \\pi _ { 1 2 } , \\pi _ { 2 1 } \\}$ . Here, the task requires that the agent choose each action in exactly one state. However, there cannot exist a reward function that makes only these policies optimal, as by consequence, both policies $\\pi _ { 1 1 }$ and $\\pi _ { 2 2 }$ must be optimal as well. ",
706
+ "bbox": [
707
+ 174,
708
+ 842,
709
+ 823,
710
+ 911
711
+ ],
712
+ "page_idx": 5
713
+ },
714
+ {
715
+ "type": "image",
716
+ "img_path": "images/7e2521434653bc359042031494792030a541697f55fdd0726f183527d25b6f71.jpg",
717
+ "image_caption": [
718
+ "Figure 2: Two CMPs in which there is a SOAP that is not expressible under any Markov reward function. On the left, $\\Pi _ { G } = \\{ \\pi _ { 2 1 } \\}$ is not realizable, as $\\pi _ { 2 1 }$ can not be made better than $\\pi _ { 2 2 }$ because $s _ { 1 }$ is never reached. On the right, the XOR-like-SOAP, $\\Pi _ { G } = \\{ \\pi _ { 1 2 } , \\pi _ { 2 1 } \\}$ is not realizable: To make these two policies optimal, it is entailed that $\\pi _ { 2 2 }$ and $\\pi _ { 1 1 }$ must be optimal, too. "
719
+ ],
720
+ "image_footnote": [],
721
+ "bbox": [
722
+ 228,
723
+ 102,
724
+ 764,
725
+ 185
726
+ ],
727
+ "page_idx": 6
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "",
732
+ "bbox": [
733
+ 173,
734
+ 273,
735
+ 825,
736
+ 330
737
+ ],
738
+ "page_idx": 6
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "Next, we show that Theorem 4.1 is not limited to a particular choice of transition function or $\\gamma$ ",
743
+ "bbox": [
744
+ 171,
745
+ 335,
746
+ 795,
747
+ 349
748
+ ],
749
+ "page_idx": 6
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "Proposition 4.2. There exist choices of $E _ { \\neg T } = ( S , A , \\gamma , s _ { 0 } )$ or $E _ { \\neg \\gamma } = ( S , A , T , s _ { 0 } )$ , together with a task $\\mathcal { T }$ , such that there is no $( T , R )$ pair that realizes $\\mathcal { T }$ in $E _ { \\neg T }$ or $( R , \\gamma )$ in $E _ { \\neg \\gamma }$ . ",
754
+ "bbox": [
755
+ 171,
756
+ 352,
757
+ 823,
758
+ 382
759
+ ],
760
+ "page_idx": 6
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "This result suggests that the scope of Theorem 4.1 is actually quite broad—even if the transition function or $\\gamma$ are taken as part of the reward specification, there are tasks that cannot be expressed. We suspect there are ways to give a precise characterization of all inexpressible tasks from an axiomatic perspective, which we hope to study in future work. ",
765
+ "bbox": [
766
+ 173,
767
+ 391,
768
+ 825,
769
+ 446
770
+ ],
771
+ "page_idx": 6
772
+ },
773
+ {
774
+ "type": "text",
775
+ "text": "4.2 Constructive Algorithms: Task to Reward ",
776
+ "text_level": 1,
777
+ "bbox": [
778
+ 173,
779
+ 463,
780
+ 506,
781
+ 478
782
+ ],
783
+ "page_idx": 6
784
+ },
785
+ {
786
+ "type": "text",
787
+ "text": "We now analyze how to determine whether an appropriate reward function can be constructed for any $( E , \\mathcal { T } )$ pair. We pose a general form of the reward-design problem [34, 51, 9] as follows. ",
788
+ "bbox": [
789
+ 173,
790
+ 488,
791
+ 823,
792
+ 517
793
+ ],
794
+ "page_idx": 6
795
+ },
796
+ {
797
+ "type": "text",
798
+ "text": "Definition 4.1. The REWARDDESIGN problem is: Given $E = ( \\mathcal { S } , \\mathcal { A } , T , \\gamma , s _ { 0 } )$ , and a $\\mathcal { T }$ , output a reward function $R _ { a l i c e }$ that ensures $\\mathcal { T }$ is realized in $M = \\left( E , R _ { a l i c e } \\right)$ . ",
799
+ "bbox": [
800
+ 173,
801
+ 518,
802
+ 821,
803
+ 549
804
+ ],
805
+ "page_idx": 6
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "Indeed, for all three task types, there is an efficient algorithm for solving the reward-design problem. Theorem 4.3. The REWARDDESIGN problem can be solved in polynomial time, for any finite $E$ , and any $\\mathcal { T }$ , so long as reward functions with infinitely many outputs are considered. ",
810
+ "bbox": [
811
+ 174,
812
+ 558,
813
+ 826,
814
+ 603
815
+ ],
816
+ "page_idx": 6
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "Therefore, for any choice of finite CMP, $E$ , and a SOAP, PO, or TO, we can find a reward function that perfectly realizes the task in the given environment, if such a reward function exists. Each of the three algorithms are based on forming a linear program that matches the constraints of the given task type, which is why reward functions with infinitely many outputs are required. Pseudo-code for SOAP-based reward design is presented in Algorithm 1. Intuitively, the algorithms compute the discounted expected-state visitation distribution for a collection of policies; in the case of SOAP, for instance, these policies include $\\Pi _ { G }$ and what we call the “fringe”, the set of policies that differ from a $\\pi _ { g } \\in \\Pi _ { G }$ by exactly one action. Then, we use these distributions to describe linear inequality constraints ensuring that the start-state value of the good policies are better than those of the fringe. ",
821
+ "bbox": [
822
+ 174,
823
+ 613,
824
+ 825,
825
+ 739
826
+ ],
827
+ "page_idx": 6
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "As highlighted by Theorem 4.1 there are SOAPs, POs, and TOs that are not realizable. Thus, it is important to determine how the algorithms mentioned in Theorem 4.3 will handle such cases. Our next corollary illustrates that the desirable outcome is achieved: For any $E$ and $\\mathcal { T }$ , the algorithms will output a reward function that realizes $\\mathcal { T }$ in $E$ , or output $_ { \\perp } ,$ when no such function exists. ",
832
+ "bbox": [
833
+ 174,
834
+ 744,
835
+ 825,
836
+ 800
837
+ ],
838
+ "page_idx": 6
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "Corollary 4.4. For any task $\\mathcal { T }$ and environment $E$ , deciding whether $\\mathcal { T }$ is expressible in $E$ is solvable in polynomial time. ",
843
+ "bbox": [
844
+ 173,
845
+ 803,
846
+ 825,
847
+ 832
848
+ ],
849
+ "page_idx": 6
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "Together, Theorem 4.1 and Theorem 4.3 constitute our main results: There are environment–task pairs in which Markov reward cannot express the chosen task for each of SOAPs, POs, and TOs. However, there are efficient algorithms for deciding whether a task is expressible, and for constructing the realizing reward function when it exists. We will study the use of one of these algorithms in Section 5, but first attend to other aspects of reward’s expressivity. ",
854
+ "bbox": [
855
+ 174,
856
+ 842,
857
+ 825,
858
+ 911
859
+ ],
860
+ "page_idx": 6
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "Algorithm 1 SOAP Reward Design ",
865
+ "text_level": 1,
866
+ "bbox": [
867
+ 174,
868
+ 90,
869
+ 410,
870
+ 106
871
+ ],
872
+ "page_idx": 7
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "INPUT: $E = ( { \\mathcal { S } } , A , T , \\gamma , s _ { 0 } ) , \\Pi _ { G }$ . \nOUTPUT: $R$ , or $\\perp$ . \n1: Πfringe = compute_fringe $\\left( \\Pi _ { G } \\right)$ \n2: for $\\bar { \\pi } _ { g , i } \\in \\Pi _ { G }$ do . Compute state-visitation distributions. 3: $\\rho _ { g , i } =$ compute_exp_visit $( \\pi _ { g , i } , E )$ \n4: for $\\pi _ { f , i } \\in \\Pi _ { \\mathrm { f r i n g e } }$ do \n5: $\\rho _ { f , i } =$ compute_exp_visit $( \\pi _ { f , i } , E )$ \n6: $C _ { \\mathrm { { e q } } } = \\{ \\}$ . Make Equality Constraints. 7: for $\\pi _ { g , i } \\in \\Pi _ { G }$ do \n8: $C _ { \\mathrm { e q . } } \\mathsf { a d d } ( \\rho _ { g , 0 } ( s _ { 0 } ) \\cdot X = \\rho _ { g , i } ( s _ { 0 } ) \\cdot X )$ \n9: $C _ { \\mathrm { i n e q } } = \\{ \\}$ . Make Inequality Constraints. 10: for $\\bar { \\pi } _ { f , j } \\in \\Pi _ { \\mathrm { f r i n g e } }$ do \n11: $\\begin{array} { r } { \\check { C } _ { \\mathrm { i n e q . } } \\mathsf { a d d } ( \\check { \\rho _ { f , j } } ( s _ { 0 } ) \\cdot X + \\epsilon \\le \\rho _ { g , 0 } ( s _ { 0 } ) \\cdot X ) } \\end{array}$ \n12: $R _ { \\mathrm { o u t } }$ , $\\epsilon _ { \\mathrm { o u t } } =$ linear_programming(obj. $= { \\mathrm { m a x } } \\epsilon$ , constraints $= C _ { \\mathrm { i n e q } } , C _ { \\mathrm { e q } } )$ . Solve LP. 13: if $\\epsilon _ { \\mathrm { o u t } } > 0$ then $\\triangleright$ Check if successful. return $R _ { \\mathrm { o u t } }$ \n14: else \nreturn ⊥ ",
877
+ "bbox": [
878
+ 174,
879
+ 108,
880
+ 828,
881
+ 434
882
+ ],
883
+ "page_idx": 7
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "4.3 Other Aspects of Reward’s Expressivity ",
888
+ "text_level": 1,
889
+ "bbox": [
890
+ 174,
891
+ 458,
892
+ 490,
893
+ 473
894
+ ],
895
+ "page_idx": 7
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "We next briefly summarize other considerations about the expressivity of reward. As noted, Theorem 4.3 requires the use of a reward function that can produce infinitely many outputs. Our next result proves this requirement is strict for efficient reward design. ",
900
+ "bbox": [
901
+ 174,
902
+ 483,
903
+ 825,
904
+ 525
905
+ ],
906
+ "page_idx": 7
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "Theorem 4.5. A variant of the REWARDDESIGN problem with finite reward outputs is NP-hard. ",
911
+ "bbox": [
912
+ 171,
913
+ 529,
914
+ 807,
915
+ 544
916
+ ],
917
+ "page_idx": 7
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "We provide further details about the precise problem studied in Appendix B. Beyond reward functions with finitely-many outputs, we are also interested in extensions of our results to multiple environments. We next present a positive result indicating our algorithms can extend to the case where Alice would like to design a reward function for a single task across multiple environments. ",
922
+ "bbox": [
923
+ 174,
924
+ 553,
925
+ 825,
926
+ 609
927
+ ],
928
+ "page_idx": 7
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "Proposition 4.6. For any SOAP, PO, or TO, given a finite set of CMPs, $\\mathcal { E } = \\{ E _ { 1 } , \\ldots , E _ { n } \\}$ , with shared state–action space, there exists a polynomial time algorithm that outputs one reward function that realizes the task (when possible) in all CMPs in $\\mathcal { E }$ . ",
933
+ "bbox": [
934
+ 174,
935
+ 613,
936
+ 825,
937
+ 655
938
+ ],
939
+ "page_idx": 7
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "A natural follow up question to the above result asks whether task realization is closed under a set of CMPs. Our next result answers this question in the negative. ",
944
+ "bbox": [
945
+ 173,
946
+ 665,
947
+ 823,
948
+ 694
949
+ ],
950
+ "page_idx": 7
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "Theorem 4.7. Task realization is not closed under sets of CMPs with shared state-action space. That is, there exist choices of $\\mathcal { T }$ and $\\mathcal { E } = \\{ E _ { 1 } , \\ldots , E _ { n } \\}$ such that $\\mathcal { T }$ is realizable in each $E _ { i } \\in \\mathcal { E }$ independently, but there is not a single reward function that realizes $\\mathcal { T }$ in all $E _ { i } \\in \\mathcal { E }$ simultaneously. ",
955
+ "bbox": [
956
+ 174,
957
+ 696,
958
+ 825,
959
+ 739
960
+ ],
961
+ "page_idx": 7
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "Intuitively, this shows that Alice must know precisely which environment Bob will inhabit if she is to design an appropriate reward function. Otherwise, her uncertainty over $E$ may prevent her from designing a realizing reward function. We foresee iterative extensions of our algorithms in which Alice and Bob can react to one another, drawing inspiration from repeated IRL by Amin et al. [4]. ",
966
+ "bbox": [
967
+ 174,
968
+ 750,
969
+ 825,
970
+ 806
971
+ ],
972
+ "page_idx": 7
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "5 Experiments ",
977
+ "text_level": 1,
978
+ "bbox": [
979
+ 174,
980
+ 824,
981
+ 312,
982
+ 842
983
+ ],
984
+ "page_idx": 7
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "We next conduct experiments to shed further light on the findings of our analysis. Our focus is on SOAPs, though we anticipate the insights extend to POs and TOs as well with little complication. In the first experiment, we study the fraction of SOAPs that are expressible in small CMPs as we vary aspects of the environment or task (Figure 3). In the second, we use one algorithm from Theorem 4.3 to design a reward function, and contrast learning curves under a SOAP-designed reward function compared to standard rewards. Full details about the experiments are found in Appendix C. ",
989
+ "bbox": [
990
+ 174,
991
+ 856,
992
+ 825,
993
+ 911
994
+ ],
995
+ "page_idx": 7
996
+ },
997
+ {
998
+ "type": "image",
999
+ "img_path": "images/5005b54dfa05ba36af75a15b9ecb041099a770578c98353866ee22a5d1d671a8.jpg",
1000
+ "image_caption": [
1001
+ "Figure 3: The approximate fraction of SOAPs that are expressible by reward in CMPs with a handful of states and actions, with $9 5 \\%$ confidence intervals. In each plot, we vary a different parameter of the environment or task to illustrate how this change impacts the expressivity of reward, showing both equal (color) and range (grey) realization of SOAP. "
1002
+ ],
1003
+ "image_footnote": [],
1004
+ "bbox": [
1005
+ 209,
1006
+ 106,
1007
+ 787,
1008
+ 351
1009
+ ],
1010
+ "page_idx": 8
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "",
1015
+ "bbox": [
1016
+ 173,
1017
+ 443,
1018
+ 823,
1019
+ 472
1020
+ ],
1021
+ "page_idx": 8
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "SOAP Expressivity. First, we estimate the fraction of SOAPs that are expressible in small environments. For each data point, we sample 200 random SOAPs and run Algorithm 1 described by Theorem 4.3 to determine whether each SOAP is realizable in the given CMP. We ask this question for both the equal (color) variant of SOAP realization and the range (grey) variant. We inspect SOAP expressivity as we vary six different characteristics of $E$ or $\\Pi _ { G }$ : The number of actions, the number of states, the discount $\\gamma$ , the number of good policies in each SOAP, the Shannon entropy of $T$ at each $( s , a )$ pair, and the “spread” of each SOAP. The spread approximates average edit distance among policies in $\\Pi _ { G }$ determined by randomly permuting actions of a reference policy by a coin weighted according to the value on the $\\mathbf { X }$ -axis. We use the same set of CMPs for each environment up to any deviations explicitly made by the varied parameter (such as $\\gamma$ or entropy). Unless otherwise stated, each CMP has four states and three actions, with a fixed but randomly chosen transition function. ",
1026
+ "bbox": [
1027
+ 173,
1028
+ 487,
1029
+ 825,
1030
+ 638
1031
+ ],
1032
+ "page_idx": 8
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "Results are presented in Figure 3. We find that our theory is borne out in a number of ways. First, as Theorem 4.1 suggests, we find SOAP expressivity is strictly less than one in nearly all cases. This is evidence that inexpressible tasks are not only found in manufactured corner cases, but rather that expressivity is a spectrum. We further observe—as predicted by Proposition 3.1—clear separation between the expressivity of range-SOAP (grey) vs. equal-SOAP (color); there are many cases where we can find a reward function that makes the good policies near optimal and better than the bad, but cannot make those good policies all exactly optimal. Additionally, several trends emerge as we vary the parameter of environment or task, though we note that such trends are likely specific to the choice of CMP and may not hold in general. Perhaps the most striking trend is in Figure 3f, which shows a decrease in expressivity as the SOAPs become more spread out. This is quite sensible: A more spread out SOAP is likely to lead to more entailments of the kind discussed in Figure 2b. ",
1037
+ "bbox": [
1038
+ 173,
1039
+ 646,
1040
+ 825,
1041
+ 797
1042
+ ],
1043
+ "page_idx": 8
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "Learning with SOAP-designed Rewards. Next, we contrast the learning performance of Qlearning under a SOAP-designed reward function (visualized in Figure 4a) with that of the regular goal-based reward in the Russell and Norvig [42] grid world. In this domain, there is 0.35 slip probability such that, on a ‘slip’ event, the agent randomly applies one of the two orthogonal action effects. The regular goal-based reward function provides $+ 1$ when the agent enters the terminal flag cell, and $- 1$ when the agent enters the terminal fire cell. The bottom left state is the start-state, and the black cell is an impassable wall. ",
1048
+ "bbox": [
1049
+ 174,
1050
+ 814,
1051
+ 825,
1052
+ 911
1053
+ ],
1054
+ "page_idx": 8
1055
+ },
1056
+ {
1057
+ "type": "image",
1058
+ "img_path": "images/5d021953e8f8f26210e83664393ef931c7293318456b15ff88a24ede527d7e3a.jpg",
1059
+ "image_caption": [
1060
+ "Figure 4: A SOAP-designed reward function (left) and the resulting learning curves (right) for Qlearning compared to the traditional reward function for the Russell and Norvig [42] grid world. Each series presents average performance over 50 runs of the experiment with $9 5 \\%$ confidence intervals. "
1061
+ ],
1062
+ "image_footnote": [],
1063
+ "bbox": [
1064
+ 189,
1065
+ 104,
1066
+ 782,
1067
+ 256
1068
+ ],
1069
+ "page_idx": 9
1070
+ },
1071
+ {
1072
+ "type": "text",
1073
+ "text": "Results are presented in Figure 4. On the right, we present a particular kind of learning curve contrasting the performance of Q-learning with the SOAP reward (blue) and regular reward (green). The y-axis measures, at the end of each episode, the average (inverse) minimum edit distance between Q-learning’s greedy policy and any policy in the SOAP. Thus, when the series reaches 1.0, Q-learning’s greedy policy is identical to one of the two SOAP policies. We first find that Q-learning is able to quickly learn a $\\pi _ { g } \\in \\Pi _ { G }$ under the designed reward function. We further observe that the typical reward does not induce a perfect match in policy—at convergence, the green curve hovers slightly below the blue, indicating that the default reward function is incentivizing different policies to be optimal. This is entirely sensible, as the two SOAP policies are extremely cautious around the fire; they choose the orthogonal (and thus, safe) action in fire-adjacent states, relying on slip probability to progress. Lastly, as expected given the amount of knowledge contained in the SOAP, the SOAP reward function allows Q-learning to rapidly identify a good policy compared to the typical reward. ",
1074
+ "bbox": [
1075
+ 174,
1076
+ 338,
1077
+ 825,
1078
+ 506
1079
+ ],
1080
+ "page_idx": 9
1081
+ },
1082
+ {
1083
+ "type": "text",
1084
+ "text": "6 Conclusion ",
1085
+ "text_level": 1,
1086
+ "bbox": [
1087
+ 174,
1088
+ 531,
1089
+ 297,
1090
+ 547
1091
+ ],
1092
+ "page_idx": 9
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "We have here investigated the expressivity of Markov reward, framed around three new accounts of task. Our main results show that there exist choices of task and environment in which Markov reward cannot express the chosen task, but there are efficient algorithms that decide whether a task is expressible and construct a reward function that captures the task when such a function exists. We conclude with an empirical examination of our analysis, corroborating the findings of our theory. We take these to be first steps toward understanding the full scope of the reward hypothesis. ",
1097
+ "bbox": [
1098
+ 174,
1099
+ 566,
1100
+ 825,
1101
+ 650
1102
+ ],
1103
+ "page_idx": 9
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "There are many routes forward. A key direction moves beyond the task types we study here, and relaxes our core assumptions—the environment might not be a finite CMP, Alice may not know the environment precisely, reward may be a function of history, or Alice may not know how Bob represents state. Along similar lines, a critical direction incorporates how reward impacts Bob’s learning dynamics rather than start-state value. Further, we note the potential relevance to the recent reward-is-enough hypothesis proposed by Silver et al. [44]; we foresee pathways to extend our analysis to examine this newer hypothesis, too. For instance, in future work, it is important to assess whether reward is capable of inducing the right kinds of attributes of cognition, not just behavior. ",
1108
+ "bbox": [
1109
+ 174,
1110
+ 656,
1111
+ 825,
1112
+ 767
1113
+ ],
1114
+ "page_idx": 9
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "Acknowledgments and Disclosure of Funding ",
1119
+ "text_level": 1,
1120
+ "bbox": [
1121
+ 176,
1122
+ 792,
1123
+ 553,
1124
+ 810
1125
+ ],
1126
+ "page_idx": 9
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "The authors would like to thank André Barreto, Diana Borsa, Michael Bowling, Wilka Carvalho, Brian Christian, Jess Hamrick, Steven Hansen, Zac Kenton, Ramana Kumar, Katrina McKinney, Rémi Munos, Matt Overlan, Hado van Hasselt, and Ben Van Roy for helpful discussions. We would also like to thank the anonymous reviewers for their thoughtful feedback, and Brendan O’Donoghue for catching a typo in the appendix. Michael Littman was supported in part by funding from DARPA L2M, ONR MURI, NSF FMitF, and NSF RI. ",
1131
+ "bbox": [
1132
+ 174,
1133
+ 827,
1134
+ 825,
1135
+ 911
1136
+ ],
1137
+ "page_idx": 9
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "References \n[1] Pieter Abbeel and Andrew Y. Ng. Apprenticeship learning via inverse reinforcement learning. In Proceedings of the International Conference on Machine learning, 2004. \n[2] David Ackley and Michael L. Littman. Interactions between learning and evolution. Artificial Life II, 1992. \n[3] Sundararaman Akshay, Nathalie Bertrand, Serge Haddad, and Loic Helouet. The steady-state control problem for Markov decision processes. In Proceedings of the International Conference on Quantitative Evaluation of Systems, 2013. \n[4] Kareem Amin, Nan Jiang, and Satinder Singh. Repeated inverse reinforcement learning. In Advances in Neural Information Processing Systems, 2017. \n[5] Marc G. Bellemare, Will Dabney, and Rémi Munos. A distributional perspective on reinforcement learning. In Proceedings of the International Conference on Machine Learning, 2017. \n[6] Brian Christian. The Alignment Problem: Machine Learning and Human Values, pages 130–131. Atlantic Books, 2021. \n[7] Paul F. Christiano, Jan Leike, Tom B. Brown, Miljan Martic, Shane Legg, and Dario Amodei. Deep reinforcement learning from human preferences. In Advances in Neural Information Processing Systems, 2017. \n[8] Gerard Debreu. Representation of a preference ordering by a numerical function. Decision Processes, 3:159–165, 1954. \n[9] Daniel Dewey. Reinforcement learning and the reward engineering principle. In Proceedings of the AAAI Spring Symposium Series, 2014. \n[10] Tom Everitt, Victoria Krakovna, Laurent Orseau, Marcus Hutter, and Shane Legg. Reinforcement learning with a corrupted reward channel. In Proceedings of the International Joint Conference on Artificial Intelligence, 2017. \n[11] William Fedus, Carles Gelada, Yoshua Bengio, Marc G. Bellemare, and Hugo Larochelle. Hyperbolic discounting and learning over multiple horizons. arXiv preprint arXiv:1902.06865, 2019. \n[12] Karl J. Friston. The free-energy principle: a unified brain theory? Nature reviews neuroscience, 11(2):127–138, 2010. \n[13] Karl J. Friston, Jean Daunizeau, and Stefan J. Kiebel. Reinforcement learning or active inference? PloS One, 4(7):e6421, 2009. \n[14] Dylan Hadfield-Menell, Anca Dragan, Pieter Abbeel, and Stuart Russell. Cooperative inverse reinforcement learning. In Advances in Neural Information Processing Systems, 2016. \n[15] Dylan Hadfield-Menell, Anca Dragan, Pieter Abbeel, and Stuart Russell. The off-switch game. In Proceedings of the International Joint Conference on Artificial Intelligence, 2017. \n[16] Dylan Hadfield-Menell, Smitha Milli, Pieter Abbeel, Stuart Russell, and Anca Dragan. Inverse reward design. In Advances in Neural Information Processing Systems, 2017. \n[17] Danijar Hafner, Pedro A. Ortega, Jimmy Ba, Thomas Parr, Karl J. Friston, and Nicolas Heess. Action and perception as divergence minimization. arXiv preprint arXiv:2009.01791, 2020. \n[18] Lewis Hammond, Alessandro Abate, Julian Gutierrez, and Michael Wooldridge. Multi-agent reinforcement learning with temporal logic specifications. In Proceedings of the International Conference on Autonomous Agents and Multiagent Systems, 2021. \n[19] Rodrigo Toro Icarte, Toryn Klassen, Richard Valenzano, and Sheila McIlraith. Using reward machines for high-level task specification and decomposition in reinforcement learning. In Proceedings of the International Conference on Machine Learning, 2018. ",
1142
+ "bbox": [
1143
+ 171,
1144
+ 68,
1145
+ 828,
1146
+ 916
1147
+ ],
1148
+ "page_idx": 10
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "[20] Hong Jun Jeon, Smitha Milli, and Anca Dragan. Reward-rational (implicit) choice: A unifying formalism for reward learning. In Advances in Neural Information Processing Systems, 2020. ",
1153
+ "bbox": [
1154
+ 173,
1155
+ 90,
1156
+ 825,
1157
+ 121
1158
+ ],
1159
+ "page_idx": 11
1160
+ },
1161
+ {
1162
+ "type": "text",
1163
+ "text": "[21] Kishor Jothimurugan, Rajeev Alur, and Osbert Bastani. A composable specification language for reinforcement learning tasks. In Advances in Neural Information Processing Systems, 2020. ",
1164
+ "bbox": [
1165
+ 176,
1166
+ 128,
1167
+ 823,
1168
+ 159
1169
+ ],
1170
+ "page_idx": 11
1171
+ },
1172
+ {
1173
+ "type": "text",
1174
+ "text": "[22] Narendra Karmarkar. A new polynomial-time algorithm for linear programming. In Proceedings of the Annual ACM Symposium on Theory of Computing, 1984. ",
1175
+ "bbox": [
1176
+ 174,
1177
+ 167,
1178
+ 823,
1179
+ 196
1180
+ ],
1181
+ "page_idx": 11
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "[23] W. Bradley Knox and Peter Stone. Interactively shaping agents via human reinforcement: The TAMER framework. In Proceedings of the International Conference on Knowledge Capture, 2009. ",
1186
+ "bbox": [
1187
+ 178,
1188
+ 207,
1189
+ 823,
1190
+ 248
1191
+ ],
1192
+ "page_idx": 11
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "[24] Tjalling C. Koopmans. Stationary ordinal utility and impatience. Econometrica: Journal of the Econometric Society, pages 287–309, 1960. ",
1197
+ "bbox": [
1198
+ 174,
1199
+ 258,
1200
+ 825,
1201
+ 287
1202
+ ],
1203
+ "page_idx": 11
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "[25] David Kreps. Notes on the Theory of Choice. Westview Press, 1988. ",
1208
+ "bbox": [
1209
+ 174,
1210
+ 296,
1211
+ 661,
1212
+ 313
1213
+ ],
1214
+ "page_idx": 11
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "[26] Sai Krishna Gottipati, Yashaswi Pathak, Rohan Nuttall, Raviteja Chunduru, Ahmed Touati, Sriram Ganapathi Subramanian, Matthew E. Taylor, and Sarath Chandar. Maximum reward formulation in reinforcement learning. In NeurIPS Workshop on Deep Reinforcement Learning, 2020. ",
1219
+ "bbox": [
1220
+ 176,
1221
+ 321,
1222
+ 825,
1223
+ 377
1224
+ ],
1225
+ "page_idx": 11
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "[27] Ramana Kumar, Jonathan Uesato, Richard Ngo, Tom Everitt, Victoria Krakovna, and Shane Legg. REALab: An embedded perspective on tampering. arXiv preprint arXiv:2011.08820, 2020. ",
1230
+ "bbox": [
1231
+ 173,
1232
+ 387,
1233
+ 823,
1234
+ 430
1235
+ ],
1236
+ "page_idx": 11
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "[28] Xiao Li, Cristian-Ioan Vasile, and Calin Belta. Reinforcement learning with temporal logic rewards. In Proceedings of the International Conference on Intelligent Robots and Systems, 2017. ",
1241
+ "bbox": [
1242
+ 174,
1243
+ 440,
1244
+ 823,
1245
+ 482
1246
+ ],
1247
+ "page_idx": 11
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "text": "[29] Michael L. Littman. The reward hypothesis, 2017. URL https:// www.coursera.org/lecture/fundamentals-of-reinforcement-learning/ michael-littman-the-reward-hypothesis-q6x0e. ",
1252
+ "bbox": [
1253
+ 173,
1254
+ 492,
1255
+ 825,
1256
+ 535
1257
+ ],
1258
+ "page_idx": 11
1259
+ },
1260
+ {
1261
+ "type": "text",
1262
+ "text": "[30] Michael L. Littman, Ufuk Topcu, Jie Fu, Charles Isbell, Min Wen, and James MacGlashan. Environment-independent task specifications via GLTL. arXiv preprint arXiv:1704.04341, 2017. ",
1263
+ "bbox": [
1264
+ 171,
1265
+ 545,
1266
+ 826,
1267
+ 587
1268
+ ],
1269
+ "page_idx": 11
1270
+ },
1271
+ {
1272
+ "type": "text",
1273
+ "text": "[31] James MacGlashan, Monica Babes-Vroman, Marie desJardins, Michael L. Littman, Smaranda Muresan, Shawn Squire, Stefanie Tellex, Dilip Arumugam, and Lei Yang. Grounding English commands to reward functions. In Proceedings of Robotics: Science and Systems, 2015. ",
1274
+ "bbox": [
1275
+ 173,
1276
+ 597,
1277
+ 823,
1278
+ 640
1279
+ ],
1280
+ "page_idx": 11
1281
+ },
1282
+ {
1283
+ "type": "text",
1284
+ "text": "[32] James MacGlashan, Michael L. Littman, David L. Roberts, Robert Loftin, Bei Peng, and Matthew E. Taylor. Convergent actor critic by humans. In Proceedings of the International Conference on Intelligent Robots and Systems, 2016. ",
1285
+ "bbox": [
1286
+ 173,
1287
+ 648,
1288
+ 823,
1289
+ 691
1290
+ ],
1291
+ "page_idx": 11
1292
+ },
1293
+ {
1294
+ "type": "text",
1295
+ "text": "[33] James MacGlashan, Mark K. Ho, Robert Loftin, Bei Peng, Guan Wang, David L. Roberts, Matthew E. Taylor, and Michael L. Littman. Interactive learning from policy-dependent human feedback. In Proceedings of the International Conference on Machine Learning. PMLR, 2017. ",
1296
+ "bbox": [
1297
+ 173,
1298
+ 700,
1299
+ 825,
1300
+ 744
1301
+ ],
1302
+ "page_idx": 11
1303
+ },
1304
+ {
1305
+ "type": "text",
1306
+ "text": "[34] Maja J. Mataric. Reward functions for accelerated learning. In Proceedings of the International Conference on Machine Learning, 1994. ",
1307
+ "bbox": [
1308
+ 171,
1309
+ 753,
1310
+ 825,
1311
+ 784
1312
+ ],
1313
+ "page_idx": 11
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "text": "[35] L. G. Mitten. Preference order dynamic programming. Management Science, 21(1):43–46, 1974. ",
1318
+ "bbox": [
1319
+ 171,
1320
+ 791,
1321
+ 826,
1322
+ 821
1323
+ ],
1324
+ "page_idx": 11
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "[36] Andrew Y. Ng, Daishi Harada, and Stuart Russell. Policy invariance under reward transformations: Theory and application to reward shaping. In Proceedings of the International Conference on Machine Learning, 1999. ",
1329
+ "bbox": [
1330
+ 173,
1331
+ 830,
1332
+ 823,
1333
+ 873
1334
+ ],
1335
+ "page_idx": 11
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "[37] Andrew Y. Ng, Stuart J. Russell, et al. Algorithms for inverse reinforcement learning. In Proceedings of the International Conference on Machine Learning, 2000. ",
1340
+ "bbox": [
1341
+ 173,
1342
+ 882,
1343
+ 820,
1344
+ 912
1345
+ ],
1346
+ "page_idx": 11
1347
+ },
1348
+ {
1349
+ "type": "text",
1350
+ "text": "[38] Ellen Novoseller, Yibing Wei, Yanan Sui, Yisong Yue, and Joel Burdick. Dueling posterior sampling for preference-based reinforcement learning. In Proceedings of the Conference on Uncertainty in Artificial Intelligence, 2020. \n[39] Pedro A. Ortega, Vishal Maini, and the DeepMind Safety Team. Building safe artificial intelligence: specification, robustness, and assurance, 2018. URL https://medium.com/@deepmindsafetyresearch/ building-safe-artificial-intelligence-52f5f75058f1. \n[40] Silviu Pitis. Rethinking the discount factor in reinforcement learning: A decision theoretic approach. In Proceedings of the AAAI Conference on Artificial Intelligence, 2019. \n[41] Martin L. Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming. John Wiley & Sons, 2014. \n[42] Stuart J. Russell and Peter Norvig. Artificial Intelligence: A Modern Approach. Prentice-Hall, Englewood Cliffs, NJ, 1994. ISBN 0-13-103805-2. \n[43] Rohin Shah, Pedro Freire, Neel Alex, Rachel Freedman, Dmitrii Krasheninnikov, Lawrence Chan, Michael D. Dennis, Pieter Abbeel, Anca Dragan, and Stuart Russell. Benefits of assistance over reward learning, 2021. URL https://openreview.net/forum?id $\\ c =$ DFIoGDZejIB. \n[44] David Silver, Satinder Singh, Doina Precup, and Richard S. Sutton. Reward is enough. Artificial Intelligence, page 103535, 2021. \n[45] Satinder Singh, Andrew G. Barto, and Nuttapong Chentanez. Intrinsically motivated reinforcement learning. Technical report, University of Massachusetts at Amherst Department of Computer Science, 2005. \n[46] Satinder Singh, Richard L Lewis, and Andrew G Barto. Where do rewards come from? In Proceedings of the Annual Conference of the Cognitive Science Society, 2009. \n[47] Satinder Singh, Richard L. Lewis, Jonathan Sorg, Andrew G. Barto, and Akram Helou. On separating agent designer goals from agent goals: Breaking the preferences–parameters confound, 2010. \n[48] Matthew J. Sobel. Ordinal dynamic programming. Management science, 21(9):967–975, 1975. \n[49] Matthew J. Sobel. Discounting axioms imply risk neutrality. Annals of Operations Research, 208(1):417–432, 2013. \n[50] Jonathan Sorg. The Optimal Reward Problem: Designing Effective Reward for Bounded Agents. PhD thesis, University of Michigan, 2011. \n[51] Jonathan Sorg, Richard L. Lewis, and Satinder Singh. Reward design via online gradient ascent. Advances in Neural Information Processing Systems, 2010. \n[52] Peter Sunehag and Marcus Hutter. Axioms for rational reinforcement learning. In Proceedings of the International Conference on Algorithmic Learning Theory, 2011. \n[53] Richard S. Sutton. The reward hypothesis, 2004. URL http://incompleteideas.net/ rlai.cs.ualberta.ca/RLAI/rewardhypothesis.html. \n[54] Richard S. Sutton and Andrew G. Barto. Reinforcement Learning: An Introduction. MIT Press, 2018. \n[55] Umar Syed, Michael Bowling, and Robert E. Schapire. Apprenticeship learning using linear programming. In Proceedings of the International Conference on Machine Learning, 2008. \n[56] Csaba Szepesvári. Constrained MDPs and the reward hypothesis, 2020. URL http:// readingsml.blogspot.com/2020/03/constrained-mdps-and-reward-hypothesis. html. \n[57] Geraud Nangue Tasse, Steven James, and Benjamin Rosman. A Boolean task algebra for reinforcement learning. In Advances in Neural Information Processing Systems, 2020. \n[58] Rodrigo Toro Icarte, Toryn Q. Klassen, Richard Valenzano, and Sheila A. McIlraith. Teaching multiple tasks to an RL agent using LTL. In Proceedings of the International Conference on Autonomous Agents and Multiagent Systems, 2018. \n[59] John von Neumann and Oskar Morgenstern. Theory of Games and Economic Behavior. Princeton University Press, 1953. \n[60] Paul Weng. Markov decision processes with ordinal rewards: Reference point-based preferences. In Proceedings of the International Conference on Automated Planning and Scheduling, 2011. \n[61] Martha White. Unifying task specification in reinforcement learning. In Proceedings of the International Conference on Machine Learning, 2017. \n[62] Edward C. Williams, Nakul Gopalan, Mine Rhee, and Stefanie Tellex. Learning to parse natural language to grounded reward functions with weak supervision. In Proceedings of the International Conference on Robotics and Automation, 2018. \n[63] Aaron Wilson, Alan Fern, and Prasad Tadepalli. A Bayesian approach for policy learning from trajectory preference queries. In Advances in Neural Information Processing Systems, 2012. \n[64] Christian Wirth, Riad Akrour, Gerhard Neumann, and Johannes Fürnkranz. A survey of preference-based reinforcement learning methods. The Journal of Machine Learning Research, 18(1):4945–4990, 2017. \n[65] Yichong Xu, Ruosong Wang, Lin Yang, Aarti Singh, and Artur Dubrawski. Preference-based reinforcement learning with finite-time guarantees. Advances in Neural Information Processing Systems, 33, 2020. \n[66] Zeyu Zheng, Junhyuk Oh, Matteo Hessel, Zhongwen Xu, Manuel Kroiss, Hado van Hasselt, David Silver, and Satinder Singh. What can learned intrinsic rewards capture? In Proceedings of the International Conference on Machine Learning, 2020. ",
1351
+ "bbox": [
1352
+ 171,
1353
+ 47,
1354
+ 830,
1355
+ 921
1356
+ ],
1357
+ "page_idx": 12
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "text": "",
1362
+ "bbox": [
1363
+ 171,
1364
+ 89,
1365
+ 828,
1366
+ 494
1367
+ ],
1368
+ "page_idx": 13
1369
+ }
1370
+ ]
parse/train/9DlCh34E1bN/9DlCh34E1bN_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H11lAfbCW/H11lAfbCW.md ADDED
@@ -0,0 +1,275 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ON CHARACTERIZING THE CAPACITY OF NEURAL NETWORKS USING ALGEBRAIC TOPOLOGY
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ The learnability of different neural architectures can be characterized directly by computable measures of data complexity. In this paper, we reframe the problem of architecture selection as understanding how data determines the most expressive and generalizable architectures suited to that data, beyond inductive bias. After suggesting algebraic topology as a measure for data complexity, we show that the power of a network to express the topological complexity of a dataset in its decision boundary is a strictly limiting factor in its ability to generalize. We then provide the first empirical characterization of the topological capacity of neural networks. Our empirical analysis shows that at every level of dataset complexity, neural networks exhibit topological phase transitions and stratification. This observation allowed us to connect existing theory to empirically driven conjectures on the choice of architectures for a single hidden layer neural networks.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Deep learning has rapidly become one of the most pervasively applied techniques in machine learning. From computer vision (Krizhevsky et al. (2012)) and reinforcement learning (Mnih et al. (2013)) to natural language processing (Wu et al. (2016)) and speech recognition (Hinton et al. (2012)), the core principles of hierarchical representation and optimization central to deep learning have revolutionized the state of the art; see Goodfellow et al. (2016). In each domain, a major difficulty lies in selecting the architectures of models that most optimally take advantage of structure in the data. In computer vision, for example, a large body of work (Simonyan & Zisserman (2014), Szegedy et al. (2014), He et al. (2015), etc.) focuses on improving the initial architectural choices of Krizhevsky et al. (2012) by developing novel network topologies and optimization schemes specific to vision tasks. Despite the success of this approach, there are still not general principles for choosing architectures in arbitrary settings, and in order for deep learning to scale efficiently to new problems and domains without expert architecture designers, the problem of architecture selection must be better understood.
12
+
13
+ Theoretically, substantial analysis has explored how various properties of neural networks, (eg. the depth, width, and connectivity) relate to their expressivity and generalization capability (Raghu et al. (2016), Daniely et al. (2016), Guss (2016)). However, the foregoing theory can only be used to determine an architecture in practice if it is understood how expressive a model need be in order to solve a problem. On the other hand, neural architecture search (NAS) views architecture selection as a compositional hyperparameter search (Saxena & Verbeek (2016), Fernando et al. (2017), Zoph & Le (2017)). As a result NAS ideally yields expressive and powerful architectures, but it is often difficult to interperate the resulting architectures beyond justifying their use from their emperical optimality.
14
+
15
+ We propose a third alternative to the foregoing: data-first architecture selection. In practice, experts design architectures with some inductive bias about the data, and more generally, like any hyperparameter selection problem, the most expressive neural architectures for learning on a particular dataset are solely determined by the nature of the true data distribution. Therefore, architecture selection can be rephrased as follows: given a learning problem (some dataset), which architectures are suitably regularized and expressive enough to learn and generalize on that problem?
16
+
17
+ A natural approach to this question is to develop some objective measure of data complexity, and then characterize neural architectures by their ability to learn subject to that complexity. Then given some new dataset, the problem of architecture selection is distilled to computing the data complexity and chosing the appropriate architecture.
18
+
19
+ ![](images/8aae215ebe2d7d9a8b91538c0c83f5fdacb92abfe99dfca7d96ab030eab0ed2a.jpg)
20
+ Figure 1: The positive label outptus of single hidden layer neural networks, $h _ { 1 2 }$ and $h _ { 2 6 }$ , of 2 inputs with 12 and 26 hidden units respectively after training on datasets $\mathcal { D } _ { 1 }$ and $\mathcal { D } _ { 2 }$ with positive examples in red. Highlighted regions of the output constitute the positive decision region.
21
+
22
+ For example, take the two datasets $\mathcal { D } _ { 1 }$ and $\mathcal { D } _ { 2 }$ given in Figure 1(ab) and Figure 1(cd) respectively. The first dataset, $\mathcal { D } _ { 1 }$ , consists of positive examples sampled from two disks and negative examples from their compliment. On the right, dataset $\mathcal { D } _ { 2 }$ consists of positive points sampled from two disks and two rings with hollow centers. Under some geometric measure of complexity $\mathcal { D } _ { 2 }$ appears more ’complicated’ than $\mathcal { D } _ { 1 }$ because it contains more holes and clusters. As one trains single layer neural networks of increasing hidden dimension on both datasets, the minimum number of hidden units required to achieve zero testing error is ordered according to this geometric complexity. Visually in Figure 1, regardless of initialization no single hidden layer neural network with $\leq 1 2$ units, denoted $h _ { \leq 1 2 }$ , can express the two holes and clusters in $\mathcal { D } _ { 2 }$ . Whereas on the simpler $\mathcal { D } _ { 1 }$ , both $h _ { 1 2 }$ and $h _ { 2 6 }$ can express the decision boundary perfectly. Returning to architecture selection, one wonders if this characterization can be extrapolated; that is, is it true that for datasets with ’similar’ geometric complexity to $\mathcal { D } _ { 1 }$ , any architecture with $\geq 1 2$ hidden learns perfectly, and likewise for those datasets similar in complexity to $\mathcal { D } _ { 2 }$ , architectures with $\leq 1 2$ hidden units can never learn to completion?
23
+
24
+ # 1.1 OUR CONTRIBUTION
25
+
26
+ In this paper, we formalize the above of geometric complexity in the language of algebraic topology. We show that questions of architecture selection can be answered by understanding the ’topological capacity’ of different neural networks. In particular, a geometric complexity measure, called persistent homology, characterizes the capacity of neural architectures in direct relation to their ability to generalize on data. Using persistent homology, we develop a method which gives the first empirical insight into the learnability of different architectures as data complexity increases. In addition, our method allows us to generate conjectures which tighten known theoretical bounds on the expressivity of neural networks. Finally, we show that topological characterizations of architectures are possible and useful for architecture selection in practice by computing the persistent homology of CIFAR-10 and several UCI datasets.
27
+
28
+ # 2 BACKGROUND
29
+
30
+ # 2.1 GENERAL TOPOLOGY
31
+
32
+ In order to more formally describe notions of geometric complexity in datasets, we will turn to the language of topology. Broadly speaking, topology is a branch of mathematics that deals with characterizing shapes, spaces, and sets by their connectivity. In the context of characterizing neural networks, we will work towards defining the topological complexity of a dataset in terms of how that dataset is ’connected’, and then group neural networks by their capacity to produce decision regions of the same connectivity.
33
+
34
+ In topology, one understands the relationships between two different spaces of points by the continuous maps between them. Informally, we say that two topological spaces $A$ and $B$ are equivalent $A \cong B$ ) if there is a continuous function $f : A B$ that has an inverse $f ^ { - 1 }$ that is also continuous. When $f$ exists, we say that $A$ and $B$ are homeomorphic and $f$ is their homeomorphism; for a more detailed treatment of general topology see Bredon (2013). Take for example, the classic example of the coffee cup and the donut in
35
+
36
+ ![](images/4d2f84897c4384afb308d50a4222dad3c9430d02d76ee479d364fa289dec173f.jpg)
37
+ Figure 2: A continuous deformation of a coffee cup into a donut, showing that both are topologically equivalent (Kato et al. (2014)).
38
+
39
+ Figure 2. They are homeomorphic because one can define a continuous deformation of one into the other which shrinks, twists, and morphs without tearing or gluing, as in Figure 2. Note that if the donut had two holes, it would no longer be equivalent to the mug. Likewise, in an informal way, $\mathcal { D } _ { 1 } \not \cong \mathcal { D } _ { 2 }$ in Figure 1 since if there were a homeomorphism $f : \mathcal { D } _ { 1 } \mathcal { D } _ { 2 }$ at least one of the clusters in $\mathcal { D } _ { 1 }$ would need to be split in order to produce the four different regions in $\mathcal { D } _ { 2 }$ .
40
+
41
+ The power of topology lies in its capacity to differentiate sets (topological spaces) in a meaningful geometric way that discards certain irrelevant properties such as rotation, translation, curvature, etc. For the purposes of defining geometric complexity, non-topological properties1 like curvature would further fine-tune architecture selection–say if $\mathcal { D } _ { 2 }$ had the same regions but with squigly (differentially complex) boundaries, certain architectures might not converge–but as we will show, grouping neural networks by ’topological capacity’ provides a powerful minimality condition. That is, we will show that if a certain architecture is incapable of expressing a decision region that is equivalent in topology to training data, then there is no hope of it ever generalizing to the true data.
42
+
43
+ # 2.2 ALGEBRAIC TOPOLOGY
44
+
45
+ Algebraic topology provides the tools necessary to not only build the foregoing notion of topological equivalence into a measure of geometric complexity, but also to compute that measure on real data (Betti (1872), Dey et al. (1998), Bredon (2013)). At its core, algebraic topology takes topological spaces (shapes and sets with certain properties) and assigns them algebraic objects such as groups, chains, and other more exotic constructs. In doing so, two spaces can be shown to be topologically equivalent (or distinct) if the algebraic objects to which they are assigned are isomorphic (or not). Thus algebraic topology will allow us to compare the complexity of decision boundaries and datasets by the objects to which they are assigned.
46
+
47
+ Although there are many flavors of algebraic topology, a powerful and computationally realizable tool is homology.
48
+
49
+ Definition 2.1 (Informal, Bredon (2013)). If $X$ is a topological space, then $H _ { n } ( X ) = \mathbb { Z } ^ { \beta _ { n } }$ is called the nth homology group of $X$ if the power $\beta _ { n }$ is the number of ’holes’ of dimension $n$ in $X$ . Note that $\beta _ { 0 }$ is the number of separate connected components. We call $\beta _ { n } ( X )$ the nth Betti number of $X$ . Finally, the homology2 of $X$ is defined as $H ( X ) = \{ H _ { n } ( X ) \} _ { n = 0 } ^ { \infty }$ .
50
+
51
+ Immediately homology brings us closer to defining the complexity of $\mathcal { D } _ { 1 }$ and $\mathcal { D } _ { 2 }$ . If we assume that $\mathcal { D } _ { 1 }$ is not actually a collection of $N$ datapoints, but really the union of 2 solid balls, and likewise that $\mathcal { D } _ { 2 }$ is the union of 2 solid balls and 2 rings, then we can compute the homology directly. In this case $H _ { 0 } ( \mathcal { D } _ { 1 } ) = \mathbb { Z } ^ { 2 }$ since there are two connected components3; $H _ { 1 } ( \mathcal { D } _ { 1 } ) = \{ 0 \}$ since there are no circles (one-dimensional holes); and clearly, $H _ { n } ( \mathcal { D } _ { 1 } ) = { \overline { { \{ 0 \} } } }$ for $n \geq 2$ . Performing the same computation in the second case, we get $H _ { 0 } ( \mathcal { D } _ { 2 } ) = \mathbb { Z } ^ { 4 }$ and $H _ { 1 } ( \dot { \mathcal { D } } _ { 2 } ) = \mathbb { Z } ^ { 2 }$ as there are 4 seperate clusters and 2 rings/holes. With respect to any reasonable ordering on homology, $\mathcal { D } _ { 2 }$ is more complex than $\mathcal { D } _ { 1 }$ . The measure yields non-trivial differentiation of spaces in higher dimension. For example, the homology of a hollow donut is $\{ \mathbb { Z } ^ { 1 } , \mathbb { Z } ^ { 2 } , \mathbb { Z } ^ { 1 } , 0 , \dots \}$ .
52
+
53
+ Surprisingly, the homology of a space contains a great deal of information about its topological complexity1. The following theorem suggests the absolute power of homology to group topologically similar spaces, and therefore neural networks with topologically similar decision regions.
54
+
55
+ Theorem 2.2 (Informal). Let $X$ and $Y$ be topological spaces. If $X \cong Y$ then $H ( X ) = H ( Y )$ . 4
56
+
57
+ Intuitively, Theorem 2.2 states that number of ’holes’ (and in the case of $H _ { 0 } ( X )$ , connected components) are topologically invariant, and can be used to show that two shapes (or decision regions) are different.
58
+
59
+ # 2.3 COMPUTATIONAL METHODS FOR HOMOLOGICAL COMPLEXITY
60
+
61
+ In order to compute the homology of both $\mathcal { D } _ { 1 }$ and $\mathcal { D } _ { 2 }$ we needed to assume that they were actually the geometric shapes from which they were sampled. Without such assumptions, for any dataset $\mathcal { D }$ a $\mathbf { \bar { \theta } } _ { H ( \mathcal { D } ) } = \{ \mathbb { Z } ^ { N } , 0 , \dots \}$ where $N$ is the number of data points. This is because, at small enough scales each data point can be isolated as its own connected component; that is, as sets each pair of different positive points $d _ { 1 } , d _ { 2 } \in \mathcal { D }$ are disjoint. To properly utilize homological complexity in better understanding architecture selection, we need to be able to compute the homology of the data directly and still capture meaningful topological information.
62
+
63
+ ![](images/ce901e1ad962a6e99edd3134c0007ad15c149dea7da34314eecf1cd53b1f3396.jpg)
64
+ Figure 3: Left: The local disconnectedness of datasets prevents direct computation of their homology. Right: An illustration of computing persistent homology on a collection of points (Topaz et al. (2015))
65
+
66
+ Persistent homology, introduced in Zomorodian & Carlsson (2005), avoids the trivialization of computation of dataset homology by providing an algorithm to calculate the homology of a filtration of a space. Specifically, a filtration is a topological space $X$ equipped with a sequence of subspaces $X _ { 0 } \subset X _ { 1 } \subset \cdots \subset X$ . In Figure 3 one such particular filtration is given by growing balls of size $\epsilon$ centered at each point, and then letting $X _ { \epsilon }$ be the resulting subspace in the filtration. Define $\beta _ { n } ( X )$ to be the nth Betti number of the homology $H ( X _ { \epsilon } )$ of $X _ { \epsilon }$ . Then for example at $\epsilon = 1 . 5$ , $\beta _ { 0 } ( X _ { \epsilon } ) = 1 9$ and $\beta _ { 1 } ( X _ { \epsilon } ) = 0$ as every ball is disjoint. At $\epsilon = 5 . 0$ some connected components merge and $\beta _ { 0 } ( X _ { \epsilon } ) = 1 2$ and $\beta _ { 1 } ( X _ { \epsilon } ) = 0$ . Finally at $\epsilon = 7$ , the union of the balls forms a hole towards the center of the dataset and $\beta _ { 1 } ( X _ { \epsilon } ) > 0$ with $\beta _ { 0 } ( X _ { \epsilon } ) = 4$ .
67
+
68
+ All together the change in homology and therefore Betti numbers for $X _ { \epsilon }$ as $\epsilon$ changes can be summarized succinctly in the persistence barcode diagram given in Figure 3. Each bar in the section $\beta _ { n } ( X )$ denotes a ’hole’ of dimension $n$ . The left endpoint of the bar is the point at which homology detects that particular component, and the right endpoint is when that component becomes indistinguishable in the filtration. When calculating the persistent homology of datasets we will frequently use these diagrams.
69
+
70
+ With the foregoing algorithms established, we are now equipped with the tools to study the capacity of neural networks in the language of algebraic topology.
71
+
72
+ # 3 HOMOLOGICAL CHARACTERIZATION OF NEURAL ARCHITECTURES
73
+
74
+ In the forthcoming section, we will apply persistent homology to emperically characterize the power of certain neural architectures. To understand why homological complexity is a powerful measure for differentiating architectures, we present the following principle.
75
+
76
+ Suppose that $\mathcal { D }$ is some dataset drawn from a joint distribution $F$ with continuous CDF on some topological space $X \times \{ 0 , 1 \}$ . Let $X ^ { + }$ denote the support of the distribution of points with positive labels, and $X ^ { - }$ denote that of the points with negative labels. Then let $H _ { S } ( f ) \mathrel { \mathop : } = H [ f ^ { - 1 } ( \dot { ( 0 , \infty ) } ) ]$ denote the support homology of some function $f : X \to \{ 0 , 1 \}$ . Essentially $H _ { S } ( f )$ is homology of the set of $x$ such that $f ( x ) > 0$ . For a binary classifier, $f$ , $H _ { S } ( f )$ is roughly a characterization of how many ’holes’ are in the positive decision region of $f$ . We will sometimes use $\beta _ { n } ( f )$ to denote the $n$ th Betti number of this support homology. Finally let ${ \mathcal { F } } = \{ f : X \to \{ 0 , 1 \} \}$ be some family of binary classifiers on $X$ .
77
+
78
+ Theorem 3.1 (The Homological Principle of Generalization). If $X = X ^ { - } \sqcup X ^ { + }$ and for all $f \in { \mathcal { F } }$ with $H _ { S } ( f ) \neq H ( X ^ { + } )$ , then for all $f \in { \mathcal { F } }$ there exists $A \subset X ^ { + }$ so $f$ misclassifies every $x \in A$ .
79
+
80
+ Essential Theorem 3.1 says that if an architecture (a family of models $\mathcal { F }$ ) is incapable of producing a certain homological complexity, then for any model using that architecture there will always be a set $A$ of true data points on which the model will fail. Note that the above principle holds regardless of how $f \in { \mathcal { F } }$ is attained, learned or otherwise. However, the principle does imply that no matter how well some $\mathcal { F }$ learns to correctly classify $\mathcal { D }$ there will always be a counter examples in the true data.
81
+
82
+ In the context of architecture selection, the foregoing minimality condition significantly reduces the size of the search space by eliminating smaller architectures which cannot even express the ’holes’ (persistent homology) of the data $H ( \mathcal D )$ . This allows us to return to our original question of finding suitably expressive and generalizeable architectures but in the very computable language of homological complexity: Let ${ \mathcal { F } } _ { A }$ the set of all neural networks with ’architecture’ $A$ , then
83
+
84
+ Given a dataset $\mathcal { D }$ , for which architectures $A$ does there exist a neural network $f \in { \mathcal { F } } _ { A }$ such that $H _ { S } ( f ) = H ( \mathcal { D } )$ ?
85
+
86
+ We will resurface a contemporary theoretical view on this question, and thereafter make the first steps towards an emperical characterization of the capacity of neural architectures in the view of topology.
87
+
88
+ # 3.1 THEORETICAL BASIS FOR NEURAL HOMOLOGY
89
+
90
+ Theoretically, the homological complexity of neural network can be framed in terms of the sum of the number of holes expressible by certain architectures. In particular, Bianchini et al. (2014) gives an analysis of how the maximum sum of Betti numbers grows as ${ \mathcal { F } } _ { A }$ changes. The results, summarized in Table 1, show that the width, depth, and activation of a fully connected architecture effect its topological expressivity to varying polynomial and exponential degrees. What is unclear from this analysis is how these bounds describe expressivity in terms of individual Betti numbers. For example, with a tanh activation function, $n$ inputs, $\ell$ layers, and $h$ hidden units, there is no description of what the number of connected components $\operatorname* { m a x } _ { f \in { \mathcal { F } } _ { A } } \beta _ { 0 } ( f )$ or 1-dimensional holes $\operatorname* { m a x } _ { f \in { \mathcal { F } } _ { A } } { \beta _ { 1 } ( f ) }$ actually is. With regards to tighter bounds Bianchini et al. (2014) stipulate that improvements to their results are deeply tied to several unsolved problems in algebraic topology.
91
+
92
+ Table 1: Upper bounds on homological expressivity of neural architectures (Bianchini et al. (2014).)
93
+
94
+ <table><tr><td colspan="4">Architecture A</td><td>maxfeFA∑=1 βk(f)</td></tr><tr><td></td><td>Inputs Layers Units</td><td></td><td>Activation</td><td></td></tr><tr><td>n</td><td>3</td><td>h</td><td>threshold</td><td>O(hn)</td></tr><tr><td>n</td><td>3</td><td>h</td><td>arctan</td><td>O((n + h)n+2)</td></tr><tr><td>n</td><td>3</td><td>h</td><td>polynomial, deg. r</td><td>1(2+r)(1+r)n-1</td></tr><tr><td>1</td><td>3</td><td>h</td><td>arctan</td><td>h</td></tr><tr><td>n</td><td>l</td><td>h</td><td>arctan</td><td>2h(2h-1)O(nl + n)n+2h)</td></tr><tr><td>n</td><td>l</td><td>h</td><td>tanh</td><td>2h(h-1)/20(nl + n)n+h)</td></tr><tr><td>n</td><td>l</td><td>h</td><td>polynomial, deg. r</td><td>1(2+r)(1+r)n-1)</td></tr></table>
95
+
96
+ ![](images/c46bee0ab369538b1d7704c20d9dd3698824ca588addc9699d3cef8b27d074a4.jpg)
97
+ Figure 4: Topological phase transitions in low dimensional neural networks as the homological complexity of the data increases. The upper right corner of each plot is a dataset on which the neural networks of increasing hidden dimension are trained.
98
+
99
+ # 3.2 EMPIRICAL RESULTS
100
+
101
+ To understand how the homology of data determines expressive architectures we turn to an empirical characterization of neural networks. In this setting, we can tighten the bounds given in Table 1 by training different architectures on datasets with known homologies and then recording the decision regions observed over the course of training.
102
+
103
+ # 3.2.1 HOMOLOGICAL CAPACITY OF HIDDEN UNITS.
104
+
105
+ In the most basic case, one is interested in studying how the number of hidden units in a single hidden layer neural network affect its homological capacity. The results of Bianchini et al. (2014) say for certain activation functions we should expect a polynomial dependence on the sum of Betti numbers $\sum \beta _ { n }$ , but is this true of individual numbers? Having an individual characterization would allow for architecture selection by computing the homology of the dataset, and then finding which architectures meet the minimal criterion for each Betti number $\beta _ { n }$ .
106
+
107
+ Restricting5 our analysis to the case of two inputs, $n = 2$ , we characterize the capacities of architectures with an increasing number of hidden units to learn on datasets with homological complexities ranging from $\{ \mathbb { Z } ^ { 1 } , 0 \}$ to $\{ \mathbb { Z } ^ { 2 0 } , \mathbb { Z } ^ { 2 0 } \}$ . In our experiment, we generate datasets of each particular homological complexity by sampling different combinations of balls, rings, and scaling, twisting, and gluing them at random. After generating the foregoing datasets with $N \approx 9 0 0 0 0$ samples we train 100 randomly (truncated normal) initialized single hidden layer architectures with hidden units $h \in \{ 1 , \ldots , 2 5 5 \}$ and tanh activation functions for $\mathrm { \bar { 1 0 ^ { 6 } } }$ minibatches of size 128. During training, every 2500 batches we sample the decision boundary of each neural network over a grid of $5 0 0 \times 5 0 0$ samples, producing $1 . 0 2 \times 1 \bar { 0 } ^ { 6 }$ recorded decision boundaries. Using the resulting data, we not only characterize different architectures but observed interesting topological phenomena during learning.
108
+
109
+ ![](images/df13f063452a7b093c38f4d767e507e5d0d5e3997ffa5161525ec22388e7d060.jpg)
110
+ Figure 5: Several different views of the probability of converging to zero-error for single hidden layer neural networks on datasets with different homological complexities.
111
+
112
+ ![](images/6b67d6c291699926908cc5543af035d5f293fcf22c21ea6c21611262e372bc58.jpg)
113
+ Figure 6: An example of topological stratification for single hidden layer networks. (a) The number of connected components in the decision regions during training. (b) Correlation of Betti numbers.
114
+
115
+ First, neural networks exhibit a statistically significant topological phase transition in their convergence which depends directly on the homological complexity of the data. For any dataset in the experiment and any random homeomorphism applied thereto, the best test error of architectures with $h$ hidden units is strictly ordered in magnitude and convergence time for $h < h _ { p h a s e }$ where $h _ { p h a s e }$ is a number of hidden units required to express the homology of the data. In Figure 4 we plot the best performing test error of architectures $h \in \{ 1 , \ldots , 1 5 \}$ on some example datasets $\mathcal { D } _ { 0 } , \mathcal { D } _ { 1 }$ , and $\mathcal { D } _ { 2 }$ with $H ( \tilde { \mathcal { D } _ { 0 } } ) \approx \{ \mathbb { Z } ^ { 2 } , 0 \}$ , $H ( \mathcal { D } _ { 1 } ) \approx \{ \mathbb { Z } ^ { 3 } , 0 \}$ , $H ( \mathcal { D } _ { 2 } ) \overset { \cdot } { \approx } \{ \mathbb Z ^ { 3 } , \mathbb Z ^ { 2 } \}$ . In this example $h _ { p h a s e } ( \mathcal { D } _ { 0 } ) = 4 , h _ { p h a s e } ( \mathcal { D } _ { 1 } ) = 6$ , and $h _ { p h a s e } ( \mathcal { D } _ { 2 } ) = 1 0$ . Surprisingly, leading up to the phase transition point, each different architecture falls into its own band of optimal convergence. This suggests that additional hidden units do in fact add to the topological capacity of an architecture in a consistent way.
116
+
117
+ Using topological phase transitions we now return to the original question of existence of expressive architectures. In Figure 5, we accumulate the probabilities that neural networks of varying hidden dimension train to zero-error on datasets of different homological complexities. The table gives different views into how expressive an architecture need be in order to converge, and therefore we are able to conjecture tighter bounds on the capacity of hidden units. Extrapolating from the first view, if $H _ { 0 } ( \mathcal { D } ) = \mathbb { Z } ^ { m }$ then there exists a single hidden layer neural network with $h = m + 2$ that converges to zero error on $\mathcal { D }$ . Likewise we claim that if $H _ { 0 } ( \mathcal { D } ) = \mathbb { Z } ^ { m }$ and $H _ { 1 } ( \mathcal { D } ) = 1$ then the same holds with $h \geq 3 m - 1$ . Further empirical analysis of convergence probabilities yields additional conjectures. However, claiming converse conjectures about a failure to generalize in the view of Theorem 3.1 requires exhaustive computation of decision boundary homologies.
118
+
119
+ By applying persistent homology to the decision boundaries of certain networks during training, we observe that given sufficient data, neural networks exhibit topological stratification. For example, consider the homologies of different architecture decision regions as training progresses in Figure 6(a). At the beginning of training every model captures the global topological information of the dataset and is homologically correlated with one another. However as training continues, the architectures stratify into two groups with homological complexities ordered by the capacities of the models. In this example, $h _ { 3 } , h _ { 4 }$ , and $h _ { 5 }$ are unable to express as many holes as the other architectures and so never specialize to more complex and local topological properties of the data. Figure 6(b) depicts topological stratification in terms of the correlation between Betti numbers. Topologically speaking, networks with less than 6 hidden units are distinct from those with more for most of training. Furthermore, this correlative view shows that stratification is consistent with topological phase transition; that is, across all decision boundary homologies recorded during the experiment stratification occurs just when the number of hidden units is slightly less than $h _ { p h a s e }$ .
120
+
121
+ # 4 THE TOPOLOGY OF REAL DATA
122
+
123
+ We have thus far demonstrated the discriminatory power of homological complexity in determining the expressivity of architectures. However, for homological complexity to have any practical use in architecture selection, it must be computable on real data, and more generally real data must have non-trivial homology; if all data were topologically simple our characterization would have no predictive power. In the following section we will compute the persistent homologies up to dimension 2 of different real world datasets.
124
+
125
+ ![](images/f6d31e598d183daf15b5a69fa794ca5d0b0151956341748e6c2824d4c467ca63.jpg)
126
+ Figure 7: The persistent homology barcodes of classes in the CIFAR-10 and UCI Protein Localization Datasets. Left: The bardcode for dimension 0 and 1 of the ’CYT’ class along side its local linear embedding into $\mathbb { R } ^ { 2 }$ . Right: The barcode for the dimensions 0 and 1 for the ’cars’ class along side different samples thereof in CIFAR-10. Note how different orientations are shown.
127
+
128
+ CIFAR-10. We compute the persistent homology of several classes of CIFAR-10 using the Python library Dionysus. Currently algorithms for persistent homology do not deal well with high dimensional data, so we embed the entire dataset in $\mathbb { R } ^ { 3 }$ using local linear embedding (LLE; Saul & Roweis (2000)) with $K = 1 2 0$ neighbors. After embedding the dataset, we take a sample of 1000 points from example class ’car’ and build a persistent filtration by constructing a Vietoris-Rips complex on the data. The resulting complex has 20833750 simplices and took $4 . 3 \mathrm { { m i n } }$ . to generate. Finally, computation of the persistence diagram shown in Figure 7 took $8 . 4 \mathrm { { m i n } }$ . locked to a single thread on a Intel Core i7 processor. The one-time cost of computing persistent homology could easily augment any neural architecture search.
129
+
130
+ Although we only give an analysis of dimension 2 topological features–and there is certainly higher dimensional homological information in CIFAR-10–the persistence barcode diagram is rich with different components in both $H _ { 0 } ( \mathcal { D } )$ and $H _ { 1 } ( \mathcal { D } )$ . Intuitively, CIFAR contains pictures of cars rotated accross a range of different orientations and this is exhibited in the homology. In particular, several holes are born and die in the range $\epsilon \in [ 0 . 1 5 , 0 . 3 7 5 ]$ and one large loop from $\epsilon \in [ 0 . 6 2 5 , 0 . 8 2 ]$ .
131
+
132
+ UCI Datasets. We further compute the homology of three low dimensional UCI datasets and attempt to assert the of non-trivial , $h _ { p h a s e }$ . Specifically, we compute the persistent homology of the majority classes in the Yeast Protein Localization Sites, UCI Ecoli Protein Localization Sites, and HTRU2 datasets. For these datasets no dimensionality reduction was used. In Figure 7(left), the persistence barcode exhibits two seperate significant loops (holes) at $\epsilon \in [ 0 . 1 9 , 0 . 3 1 ]$ and $\epsilon \in [ 0 . 7 6 , 0 . 8 5 ]$ , as well as two major connected components in $\beta _ { 0 } ( \mathcal { D } )$ . The Other persistence diagrams are relegated to the appendix.
133
+
134
+ Existing Data. Outside of the primary machine learning literature, topological data analysis yields non-trivial computations in wide variety of fields and datasets. Of particular interest is the work of Carlsson et al. (2008), which computes the homological complexity of collections of $n \times n$ patches of natural images. Even in these simple collections of images, the authors found topologies of Klein Bottles $( \mathbf { \bar { \cal H } } ( \cdot ) = \{ \mathbb { Z } , \mathbb { Z } ^ { 2 } / 2 \mathbb { Z } , 0 \ldots \} )$ and other exotic topological objects. Other authors have calculated non-trivial dataset homologies in biological (Topaz et al. (2015)), natural language (Michel et al. (2017)), and other domains (Wu et al. (2017), Xia & Wei (2014)).
135
+
136
+ # 5 RELATED WORK
137
+
138
+ We will place this work in the context of deep learning theory as it relates to expressivity. Since the seminal work of Cybenko (1989) which established standard universal approximation results for neural networks, many theorists have endeavored to understand the expressivity of certain neural architectures. Pascanu et al. (2013) and MacKay (2003) provided the first analysis relating the depth and width of architectures to the complexitity of the sublevel sets they can express. Motivated therefrom, Bianchini et al. (2014) expressed this theme in the language of Pfefferian functions, thereby bounding the sum of Betti numbers expressed by sublevel sets. Finally Guss (2016) gave an account of how topological assumptions on the input data lead to optimally expressive architectures. In parallel, Eldan & Shamir (2016) presented the first analytical minimality result in expressivity theory; that is, the authors show that there are simple functions that cannot be expressed by two layer neural networks with out exponential dependence on input dimension. This work spurred the work ofPoole et al. (2016), Raghu et al. (2016) which reframed expressivity in a differential geometric lense.
139
+
140
+ Our work presents the first method to derive expressivity results empirically. Our topological viewpoint sits dually with its differential geometric counterpart, and in conjunction with the work of Poole et al. (2016) and Bianchini et al. (2014), this duallity implies that when topological expression is not possible, exponential differential expressivity allows networks to bypass homological constaints at the cost of adversarial sets. Furthermore, our work opens a practical connectio nbetween the foregoing theory on neural expressivity and architecture selection, with the potential to drastically improve neural architecture search (Zoph & Le (2017)) by directly computing the capacities of different architectures.
141
+
142
+ # 6 CONCLUSION
143
+
144
+ Architectural power is deeply related to the algebraic topology of decision boundaries. In this work we distilled neural network expressivity into an empirical question of the generalization capabilities of architectures with respect to the homological complexity of learning problems. This view allowed us to provide an empirical method for developing tighter characterizations on the the capacity of different architectures in addition to a principled approach to guiding architecture selection by computation of persistent homology on real data.
145
+
146
+ There are several potential avenues of future research in using homological complexity to better understand neural architectures. First, a full characterization of neural networks with many layers or convolutional linearities is a crucial next step. Our empirical results suggest that the their are exact formulas describing the of power of neural networks to express decision boundaries with certain properties. Future theoretical work in determining these forms would significantly increase the efficiency and power of neural architecture search, constraining the search space by the persistent homology of the data. Additionally, we intend on studying how the topological complexity of data changes as it is propagated through deeper architectures.
147
+
148
+ # REFERENCES
149
+
150
+ E Betti. Il nuovo cimento. Series, 2:7, 1872.
151
+
152
+ Monica Bianchini et al. On the complexity of shallow and deep neural network classifiers. In ESANN, 2014.
153
+
154
+ Glen E Bredon. Topology and geometry, volume 139. Springer Science & Business Media, 2013.
155
+
156
+ Gunnar Carlsson, Tigran Ishkhanov, Vin De Silva, and Afra Zomorodian. On the local behavior of spaces of natural images. International journal of computer vision, 76(1):1–12, 2008.
157
+
158
+ Frédéric Chazal, Brittany Fasy, Fabrizio Lecci, Bertrand Michel, Alessandro Rinaldo, and Larry Wasserman. Subsampling methods for persistent homology. In Proceedings of the 32nd International Conference on Machine Learning (ICML-15), pp. 2143–2151, 2015.
159
+
160
+ George Cybenko. Approximation by superpositions of a sigmoidal function. Mathematics of Control, Signals, and Systems (MCSS), 2(4):303–314, 1989.
161
+
162
+ Amit Daniely, Roy Frostig, and Yoram Singer. Toward deeper understanding of neural networks: The power of initialization and a dual view on expressivity. In Advances In Neural Information Processing Systems, pp. 2253–2261, 2016.
163
+
164
+ TK Dey, H Edelsbrunner, and S Guha. Computational topology, invited paper in advances in discrete and computational geometry, eds. b. chazelle, je goodmann and r. pollack. Contemporary Mathematics, AMS, 1998.
165
+
166
+ Ronen Eldan and Ohad Shamir. The power of depth for feedforward neural networks. In Conference on Learning Theory, pp. 907–940, 2016.
167
+
168
+ Chrisantha Fernando, Dylan Banarse, Charles Blundell, Yori Zwols, David Ha, Andrei A. Rusu, Alexander Pritzel, and Daan Wierstra. Pathnet: Evolution channels gradient descent in super neural networks. CoRR, abs/1701.08734, 2017. URL http://arxiv.org/abs/1701.08734.
169
+
170
+ Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep Learning. MIT Press, 2016. http: //www.deeplearningbook.org.
171
+
172
+ William H Guss. Deep function machines: Generalized neural networks for topological layer expression. arXiv preprint arXiv:1612.04799, 2016.
173
+
174
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CoRR, abs/1512.03385, 2015. URL http://arxiv.org/abs/1512.03385.
175
+
176
+ Geoffrey Hinton, Li Deng, Dong Yu, George E Dahl, Abdel-rahman Mohamed, Navdeep Jaitly, Andrew Senior, Vincent Vanhoucke, Patrick Nguyen, Tara N Sainath, et al. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine, 29(6):82–97, 2012.
177
+
178
+ Yasuyuki Kato, Daisuke Yamamoto, and Ippei Danshita. Quantum tricriticality at the superfluidinsulator transition of binary bose mixtures. Phys. Rev. Lett., 112:055301, Feb 2014. doi: 10.1103/PhysRevLett.112.055301. URL https://link.aps.org/doi/10.1103/ PhysRevLett.112.055301.
179
+
180
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
181
+
182
+ David JC MacKay. Information theory, inference and learning algorithms. Cambridge university press, 2003.
183
+
184
+ Paul Michel, Abhilasha Ravichander, and Shruti Rijhwani. Does the geometry of word embeddings help document classification? a case study on persistent homology based representations. arXiv preprint arXiv:1705.10900, 2017.
185
+
186
+ 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.
187
+
188
+ Razvan Pascanu, Guido Montufar, and Yoshua Bengio. On the number of response regions of deep feed forward networks with piece-wise linear activations. arXiv preprint arXiv:1312.6098, 2013.
189
+
190
+ Ben Poole, Subhaneil Lahiri, Maithreyi Raghu, Jascha Sohl-Dickstein, and Surya Ganguli. Exponential expressivity in deep neural networks through transient chaos. In Advances In Neural Information Processing Systems, pp. 3360–3368, 2016.
191
+
192
+ Maithra Raghu, Ben Poole, Jon Kleinberg, Surya Ganguli, and Jascha Sohl-Dickstein. On the expressive power of deep neural networks. arXiv preprint arXiv:1606.05336, 2016.
193
+
194
+ Lawrence K Saul and Sam T Roweis. An introduction to locally linear embedding. unpublished. Available at: http://www. cs. toronto. edu/˜ roweis/lle/publications. html, 2000.
195
+
196
+ Shreyas Saxena and Jakob Verbeek. Convolutional neural fabrics. CoRR, abs/1606.02492, 2016. URL http://arxiv.org/abs/1606.02492.
197
+
198
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014. URL http://arxiv.org/abs/1409.1556.
199
+
200
+ Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott E. Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. CoRR, abs/1409.4842, 2014. URL http://arxiv.org/abs/1409.4842.
201
+
202
+ Chad M Topaz, Lori Ziegelmeier, and Tom Halverson. Topological data analysis of biological aggregation models. PloS one, 10(5):e0126383, 2015.
203
+
204
+ Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016.
205
+
206
+ Yu Wu, Gabriel Shindnes, Vaibhav Karve, Derrek Yager, Daniel B Work, Arnab Chakraborty, and Richard B Sowers. Congestion barcodes: Exploring the topology of urban congestion using persistent homology. arXiv preprint arXiv:1707.08557, 2017.
207
+
208
+ Kelin Xia and Guo-Wei Wei. Persistent homology analysis of protein structure, flexibility, and folding. International journal for numerical methods in biomedical engineering, 30(8):814–844, 2014.
209
+
210
+ Afra Zomorodian and Gunnar Carlsson. Computing persistent homology. Discrete & Computational Geometry, 33(2):249–274, 2005.
211
+
212
+ Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. 2017. URL https://arxiv.org/abs/1611.01578.
213
+
214
+ # A PROOFS, CONJECTURES, AND FORMAL DEFINITIONS
215
+
216
+ # A.1 HOMOLOGY
217
+
218
+ Homology is naturally described using the language of category theory. Let $T o p ^ { 2 }$ denote the category of topological spaces and $A b$ the category of abelian groups.
219
+
220
+ Definition A.1 (Homology Theory, Bredon (2013)). A homology theory on the on $T o p ^ { 2 }$ is a function $H : T o p ^ { 2 } A b$ assigning to each pair $( X , A )$ of spaces a graded (abelian) group $\{ H _ { p } ( X , A ) \}$ , and to each map $f : ( X , A ) \to ( Y , B )$ , homomorphisms $f _ { * } : H _ { p } ( X , A ) \to H _ { p } ( Y , B )$ , together with a natural transformation of functors $\partial _ { * } : H _ { p } ( X , A ) \to H _ { p - 1 } ( X , A )$ , called the connecting homomorphism (where we use $H _ { * } ( A )$ to denote $H _ { * } ( A , \varnothing )$ ) such that the following five axioms are satisfied.
221
+
222
+ 1. If $f \simeq g : ( X , A ) ( Y , B )$ then $f _ { * } = g _ { * } : H _ { * } ( X , A ) \to H _ { * } ( Y , B ) .$
223
+
224
+ 2. For the inclusions $i : A \to X$ and $j : X \to ( X , A )$ the sequence sequence of inclusions and connecting homomorphisms are exact.
225
+
226
+ 3. Given the pair $( X , A )$ and an open set $U \subset X$ such that $c l ( U ) \subset i n t ( A )$ then the inclusion $k : ( X - U , A - U ) \to ( X , A )$ induces an isomorphism $k _ { * } : H _ { * } ( X - U , A - U ) \to$ $H _ { * } ( X , A )$
227
+
228
+ 4. For a one point space $P , H _ { i } ( P ) = 0$ for all $i \neq 0$ .
229
+
230
+ 5. For a topological sum $X = + _ { \alpha } X _ { \alpha }$ the homomorphism
231
+
232
+ $$
233
+ \bigoplus ( i _ { \alpha } ) _ { * } : \bigoplus H _ { n } ( X _ { \alpha } ) \to H _ { n } ( X )
234
+ $$
235
+
236
+ is an isomorphism, where $i _ { \alpha } : X _ { \alpha } \to X$ is the inclusion.
237
+
238
+ For related definitions and requisite notions we refer the reader to Bredon (2013).
239
+
240
+ # A.2 PROOF OF THEOREM 3.1
241
+
242
+ Theorem A.2. Let $X$ be a topological space and $X ^ { + }$ be some open subspace. If ${ \mathcal { F } } \subset 2 ^ { X }$ such that $f \in { \mathcal { F } }$ implies $H _ { S } ( f ) \neq H ( \bar { X } ^ { + } )$ , then for all $f \in { \mathcal { F } }$ there exists $A \subset X$ so that $f ( A \cap X ^ { + } ) = \{ 0 \}$ and $f ( A \cap ( X \setminus X ^ { + } ) ) = \{ 1 \}$ .
243
+
244
+ Proof. Suppose the for the sake of contraiction that for all $f \in { \mathcal { F } }$ , $H _ { S } ( f ) \ne H ( X ^ { + } )$ and yet there exists an $f$ such that for all $A \subset X$ , there exists an $x \in A$ such that $f ( x ) = 1$ . Then take $\mathcal { A } = \{ x \} _ { x \in X }$ , and note that $f$ maps each singleton into its proper partition on $X$ . We have that for any open subset of $V \subset X ^ { + }$ , $f ( \bar { V } ) = \{ 1 \}$ , and for any closed subset $W \subset X \setminus X ^ { + }$ , $f ( W ) = \{ 0 \}$ . Therefore X+ = SA∈τX+∩X $X ^ { + } = \textstyle \bigcup _ { A \in \tau _ { X ^ { + } \cap X } } A \subset s u p p ( f )$ as the subspace topology $\tau _ { X ^ { + } \cap X } = \tau _ { X ^ { + } } \cap \tau _ { X }$ where $\tau _ { X ^ { + } } = \{ A \in \tau _ { X } | A \subset { \dot { X } } ^ { + } \}$ and $\tau _ { X }$ denotes the topology of $X$ . Likewise, $i n t ( X ^ { - } ) \subset X \backslash s u p p ( F )$ under the same logic. Therefore $s u p p ( f )$ has the exact same topology as $X ^ { + }$ and so by Theorem 2.2 $H ( X ^ { + } ) = H ( s u \bar { p } p ( f ) )$ but this is a contradiction. This completes the proof. □
245
+
246
+ # A.3 THE NEURAL HOMOLOGY PRINCIPLE
247
+
248
+ Conjecture A.3. If $N$ is some neural network with $\ell$ layers and $h$ hidden units, and $H _ { S } ( N ) \neq$ $H ( X ^ { + } )$ then $\mathbb { E } [ L ( \mathrm { \bar { N } } , \mathcal { D } ) ] > c$ for some fixed $c ( \ell , h ) > 0$ .
249
+
250
+ ![](images/77273b4d16c2680ef1cc2134a32082dcba78d3d14d189be37b108b3e092f2d46.jpg)
251
+ Figure 8: Topological phase transitions for datasets with $\beta ( \mathcal { D } ) \in \{ ( 2 , 0 ) , ( 2 , 1 ) , ( 3 , 0 ) , ( 3 , 1 ) \}$
252
+
253
+ ![](images/e27383b283d68b6c0607704c6df459226986a6e81af9c11222a9210c8e749b94.jpg)
254
+ Figure 9: Topological phase transitions for datasets with $\beta ( \mathcal { D } ) \in \{ ( 3 , 2 ) , ( 4 , 0 ) , ( 4 , 1 ) , ( 4 , 2 ) \}$
255
+
256
+ ![](images/7ea7091547b0d613980c98d1bc1a7e62068f7eb5fbe42da2343373e874b7ac9d.jpg)
257
+ Figure 10: Topological phase transitions for datasets with $\beta ( \mathcal { D } ) \in \{ ( 4 , 3 ) , ( 5 , 0 ) \}$
258
+
259
+ # C EXAMPLE TOPOLOGICAL STRATIFICATIONS
260
+
261
+ ![](images/8a2ae195ba397629afe30da13627f735fddf56b3439dbaa5fca35732f4717701.jpg)
262
+ Figure 11: Topological stratification for $\{ h _ { 3 } , . . . , h _ { 1 5 } \}$ on a random dataset $\mathcal { D }$ with $\beta _ { 0 } ( \mathcal { D } ) = 2 5$ , $\beta _ { 1 } ( \mathcal { D } ) = 1 6$ .
263
+
264
+ ![](images/75ed16e4c46d1ef4418f9175de2547afc1090f8f9612b1bc15e53dbf6e7aa384.jpg)
265
+ Figure 12: Topological stratification for $\{ h _ { 1 } , \ldots , h _ { 5 } \}$ on a random dataset $\mathcal { D }$ with $\beta _ { 0 } ( \mathcal { D } ) = 3$ , $\beta _ { 1 } \mathsf { \bar { ( } } D ) = 0$ .
266
+
267
+ ![](images/4ff6976e387af4a2dd76433cd7b86100763aeac8828b4749dbf98cef8c31501f.jpg)
268
+ Figure 13: Topological stratification for $\{ h _ { 3 } , \ldots , h _ { 7 } \}$ on a random dataset $\mathcal { D }$ with $\beta _ { 0 } ( \mathcal { D } ) = 3$ , $\beta _ { 1 } ( \mathcal { D } ) = 0$ .
269
+
270
+ D ADDITIONAL TOPOLOGY OF REAL DATA
271
+
272
+ ![](images/1ecf1eca77077c1a6148f2224eda13a3d65cf665230e2c3dde6515a73b7b7e6b.jpg)
273
+ Figure 14: The persistence diagrams of other data.
274
+
275
+ ![](images/81b346f8954e4988c73cd34fff398e0ddeef9837b79107fd94f7fba420f7ed86.jpg)
parse/train/H11lAfbCW/H11lAfbCW_content_list.json ADDED
@@ -0,0 +1,1540 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "ON CHARACTERIZING THE CAPACITY OF NEURAL NETWORKS USING ALGEBRAIC TOPOLOGY ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "The learnability of different neural architectures can be characterized directly by computable measures of data complexity. In this paper, we reframe the problem of architecture selection as understanding how data determines the most expressive and generalizable architectures suited to that data, beyond inductive bias. After suggesting algebraic topology as a measure for data complexity, we show that the power of a network to express the topological complexity of a dataset in its decision boundary is a strictly limiting factor in its ability to generalize. We then provide the first empirical characterization of the topological capacity of neural networks. Our empirical analysis shows that at every level of dataset complexity, neural networks exhibit topological phase transitions and stratification. This observation allowed us to connect existing theory to empirically driven conjectures on the choice of architectures for a single hidden layer neural networks. ",
40
+ "bbox": [
41
+ 233,
42
+ 268,
43
+ 766,
44
+ 434
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 465,
55
+ 336,
56
+ 482
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Deep learning has rapidly become one of the most pervasively applied techniques in machine learning. From computer vision (Krizhevsky et al. (2012)) and reinforcement learning (Mnih et al. (2013)) to natural language processing (Wu et al. (2016)) and speech recognition (Hinton et al. (2012)), the core principles of hierarchical representation and optimization central to deep learning have revolutionized the state of the art; see Goodfellow et al. (2016). In each domain, a major difficulty lies in selecting the architectures of models that most optimally take advantage of structure in the data. In computer vision, for example, a large body of work (Simonyan & Zisserman (2014), Szegedy et al. (2014), He et al. (2015), etc.) focuses on improving the initial architectural choices of Krizhevsky et al. (2012) by developing novel network topologies and optimization schemes specific to vision tasks. Despite the success of this approach, there are still not general principles for choosing architectures in arbitrary settings, and in order for deep learning to scale efficiently to new problems and domains without expert architecture designers, the problem of architecture selection must be better understood. ",
63
+ "bbox": [
64
+ 174,
65
+ 498,
66
+ 825,
67
+ 665
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Theoretically, substantial analysis has explored how various properties of neural networks, (eg. the depth, width, and connectivity) relate to their expressivity and generalization capability (Raghu et al. (2016), Daniely et al. (2016), Guss (2016)). However, the foregoing theory can only be used to determine an architecture in practice if it is understood how expressive a model need be in order to solve a problem. On the other hand, neural architecture search (NAS) views architecture selection as a compositional hyperparameter search (Saxena & Verbeek (2016), Fernando et al. (2017), Zoph & Le (2017)). As a result NAS ideally yields expressive and powerful architectures, but it is often difficult to interperate the resulting architectures beyond justifying their use from their emperical optimality. ",
74
+ "bbox": [
75
+ 173,
76
+ 672,
77
+ 825,
78
+ 797
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "We propose a third alternative to the foregoing: data-first architecture selection. In practice, experts design architectures with some inductive bias about the data, and more generally, like any hyperparameter selection problem, the most expressive neural architectures for learning on a particular dataset are solely determined by the nature of the true data distribution. Therefore, architecture selection can be rephrased as follows: given a learning problem (some dataset), which architectures are suitably regularized and expressive enough to learn and generalize on that problem? ",
85
+ "bbox": [
86
+ 174,
87
+ 805,
88
+ 825,
89
+ 888
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "A natural approach to this question is to develop some objective measure of data complexity, and then characterize neural architectures by their ability to learn subject to that complexity. Then given some new dataset, the problem of architecture selection is distilled to computing the data complexity and chosing the appropriate architecture. ",
96
+ "bbox": [
97
+ 174,
98
+ 895,
99
+ 823,
100
+ 924
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/8aae215ebe2d7d9a8b91538c0c83f5fdacb92abfe99dfca7d96ab030eab0ed2a.jpg",
107
+ "image_caption": [
108
+ "Figure 1: The positive label outptus of single hidden layer neural networks, $h _ { 1 2 }$ and $h _ { 2 6 }$ , of 2 inputs with 12 and 26 hidden units respectively after training on datasets $\\mathcal { D } _ { 1 }$ and $\\mathcal { D } _ { 2 }$ with positive examples in red. Highlighted regions of the output constitute the positive decision region. "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 184,
113
+ 101,
114
+ 805,
115
+ 272
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "",
122
+ "bbox": [
123
+ 173,
124
+ 353,
125
+ 823,
126
+ 381
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "For example, take the two datasets $\\mathcal { D } _ { 1 }$ and $\\mathcal { D } _ { 2 }$ given in Figure 1(ab) and Figure 1(cd) respectively. The first dataset, $\\mathcal { D } _ { 1 }$ , consists of positive examples sampled from two disks and negative examples from their compliment. On the right, dataset $\\mathcal { D } _ { 2 }$ consists of positive points sampled from two disks and two rings with hollow centers. Under some geometric measure of complexity $\\mathcal { D } _ { 2 }$ appears more ’complicated’ than $\\mathcal { D } _ { 1 }$ because it contains more holes and clusters. As one trains single layer neural networks of increasing hidden dimension on both datasets, the minimum number of hidden units required to achieve zero testing error is ordered according to this geometric complexity. Visually in Figure 1, regardless of initialization no single hidden layer neural network with $\\leq 1 2$ units, denoted $h _ { \\leq 1 2 }$ , can express the two holes and clusters in $\\mathcal { D } _ { 2 }$ . Whereas on the simpler $\\mathcal { D } _ { 1 }$ , both $h _ { 1 2 }$ and $h _ { 2 6 }$ can express the decision boundary perfectly. Returning to architecture selection, one wonders if this characterization can be extrapolated; that is, is it true that for datasets with ’similar’ geometric complexity to $\\mathcal { D } _ { 1 }$ , any architecture with $\\geq 1 2$ hidden learns perfectly, and likewise for those datasets similar in complexity to $\\mathcal { D } _ { 2 }$ , architectures with $\\leq 1 2$ hidden units can never learn to completion? ",
133
+ "bbox": [
134
+ 173,
135
+ 388,
136
+ 825,
137
+ 569
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "1.1 OUR CONTRIBUTION ",
144
+ "text_level": 1,
145
+ "bbox": [
146
+ 176,
147
+ 588,
148
+ 361,
149
+ 602
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "In this paper, we formalize the above of geometric complexity in the language of algebraic topology. We show that questions of architecture selection can be answered by understanding the ’topological capacity’ of different neural networks. In particular, a geometric complexity measure, called persistent homology, characterizes the capacity of neural architectures in direct relation to their ability to generalize on data. Using persistent homology, we develop a method which gives the first empirical insight into the learnability of different architectures as data complexity increases. In addition, our method allows us to generate conjectures which tighten known theoretical bounds on the expressivity of neural networks. Finally, we show that topological characterizations of architectures are possible and useful for architecture selection in practice by computing the persistent homology of CIFAR-10 and several UCI datasets. ",
156
+ "bbox": [
157
+ 174,
158
+ 614,
159
+ 825,
160
+ 753
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "2 BACKGROUND ",
167
+ "text_level": 1,
168
+ "bbox": [
169
+ 176,
170
+ 776,
171
+ 326,
172
+ 794
173
+ ],
174
+ "page_idx": 1
175
+ },
176
+ {
177
+ "type": "text",
178
+ "text": "2.1 GENERAL TOPOLOGY ",
179
+ "text_level": 1,
180
+ "bbox": [
181
+ 176,
182
+ 810,
183
+ 366,
184
+ 824
185
+ ],
186
+ "page_idx": 1
187
+ },
188
+ {
189
+ "type": "text",
190
+ "text": "In order to more formally describe notions of geometric complexity in datasets, we will turn to the language of topology. Broadly speaking, topology is a branch of mathematics that deals with characterizing shapes, spaces, and sets by their connectivity. In the context of characterizing neural networks, we will work towards defining the topological complexity of a dataset in terms of how that dataset is ’connected’, and then group neural networks by their capacity to produce decision regions of the same connectivity. ",
191
+ "bbox": [
192
+ 174,
193
+ 837,
194
+ 825,
195
+ 921
196
+ ],
197
+ "page_idx": 1
198
+ },
199
+ {
200
+ "type": "text",
201
+ "text": "In topology, one understands the relationships between two different spaces of points by the continuous maps between them. Informally, we say that two topological spaces $A$ and $B$ are equivalent $A \\cong B$ ) if there is a continuous function $f : A B$ that has an inverse $f ^ { - 1 }$ that is also continuous. When $f$ exists, we say that $A$ and $B$ are homeomorphic and $f$ is their homeomorphism; for a more detailed treatment of general topology see Bredon (2013). Take for example, the classic example of the coffee cup and the donut in ",
202
+ "bbox": [
203
+ 174,
204
+ 106,
205
+ 522,
206
+ 243
207
+ ],
208
+ "page_idx": 2
209
+ },
210
+ {
211
+ "type": "image",
212
+ "img_path": "images/4d2f84897c4384afb308d50a4222dad3c9430d02d76ee479d364fa289dec173f.jpg",
213
+ "image_caption": [
214
+ "Figure 2: A continuous deformation of a coffee cup into a donut, showing that both are topologically equivalent (Kato et al. (2014)). "
215
+ ],
216
+ "image_footnote": [],
217
+ "bbox": [
218
+ 560,
219
+ 98,
220
+ 800,
221
+ 176
222
+ ],
223
+ "page_idx": 2
224
+ },
225
+ {
226
+ "type": "text",
227
+ "text": "Figure 2. They are homeomorphic because one can define a continuous deformation of one into the other which shrinks, twists, and morphs without tearing or gluing, as in Figure 2. Note that if the donut had two holes, it would no longer be equivalent to the mug. Likewise, in an informal way, $\\mathcal { D } _ { 1 } \\not \\cong \\mathcal { D } _ { 2 }$ in Figure 1 since if there were a homeomorphism $f : \\mathcal { D } _ { 1 } \\mathcal { D } _ { 2 }$ at least one of the clusters in $\\mathcal { D } _ { 1 }$ would need to be split in order to produce the four different regions in $\\mathcal { D } _ { 2 }$ . ",
228
+ "bbox": [
229
+ 174,
230
+ 244,
231
+ 825,
232
+ 313
233
+ ],
234
+ "page_idx": 2
235
+ },
236
+ {
237
+ "type": "text",
238
+ "text": "The power of topology lies in its capacity to differentiate sets (topological spaces) in a meaningful geometric way that discards certain irrelevant properties such as rotation, translation, curvature, etc. For the purposes of defining geometric complexity, non-topological properties1 like curvature would further fine-tune architecture selection–say if $\\mathcal { D } _ { 2 }$ had the same regions but with squigly (differentially complex) boundaries, certain architectures might not converge–but as we will show, grouping neural networks by ’topological capacity’ provides a powerful minimality condition. That is, we will show that if a certain architecture is incapable of expressing a decision region that is equivalent in topology to training data, then there is no hope of it ever generalizing to the true data. ",
239
+ "bbox": [
240
+ 174,
241
+ 320,
242
+ 825,
243
+ 431
244
+ ],
245
+ "page_idx": 2
246
+ },
247
+ {
248
+ "type": "text",
249
+ "text": "2.2 ALGEBRAIC TOPOLOGY ",
250
+ "text_level": 1,
251
+ "bbox": [
252
+ 176,
253
+ 455,
254
+ 380,
255
+ 469
256
+ ],
257
+ "page_idx": 2
258
+ },
259
+ {
260
+ "type": "text",
261
+ "text": "Algebraic topology provides the tools necessary to not only build the foregoing notion of topological equivalence into a measure of geometric complexity, but also to compute that measure on real data (Betti (1872), Dey et al. (1998), Bredon (2013)). At its core, algebraic topology takes topological spaces (shapes and sets with certain properties) and assigns them algebraic objects such as groups, chains, and other more exotic constructs. In doing so, two spaces can be shown to be topologically equivalent (or distinct) if the algebraic objects to which they are assigned are isomorphic (or not). Thus algebraic topology will allow us to compare the complexity of decision boundaries and datasets by the objects to which they are assigned. ",
262
+ "bbox": [
263
+ 174,
264
+ 483,
265
+ 825,
266
+ 595
267
+ ],
268
+ "page_idx": 2
269
+ },
270
+ {
271
+ "type": "text",
272
+ "text": "Although there are many flavors of algebraic topology, a powerful and computationally realizable tool is homology. ",
273
+ "bbox": [
274
+ 174,
275
+ 602,
276
+ 823,
277
+ 631
278
+ ],
279
+ "page_idx": 2
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "Definition 2.1 (Informal, Bredon (2013)). If $X$ is a topological space, then $H _ { n } ( X ) = \\mathbb { Z } ^ { \\beta _ { n } }$ is called the nth homology group of $X$ if the power $\\beta _ { n }$ is the number of ’holes’ of dimension $n$ in $X$ . Note that $\\beta _ { 0 }$ is the number of separate connected components. We call $\\beta _ { n } ( X )$ the nth Betti number of $X$ . Finally, the homology2 of $X$ is defined as $H ( X ) = \\{ H _ { n } ( X ) \\} _ { n = 0 } ^ { \\infty }$ . ",
284
+ "bbox": [
285
+ 174,
286
+ 637,
287
+ 825,
288
+ 695
289
+ ],
290
+ "page_idx": 2
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "Immediately homology brings us closer to defining the complexity of $\\mathcal { D } _ { 1 }$ and $\\mathcal { D } _ { 2 }$ . If we assume that $\\mathcal { D } _ { 1 }$ is not actually a collection of $N$ datapoints, but really the union of 2 solid balls, and likewise that $\\mathcal { D } _ { 2 }$ is the union of 2 solid balls and 2 rings, then we can compute the homology directly. In this case $H _ { 0 } ( \\mathcal { D } _ { 1 } ) = \\mathbb { Z } ^ { 2 }$ since there are two connected components3; $H _ { 1 } ( \\mathcal { D } _ { 1 } ) = \\{ 0 \\}$ since there are no circles (one-dimensional holes); and clearly, $H _ { n } ( \\mathcal { D } _ { 1 } ) = { \\overline { { \\{ 0 \\} } } }$ for $n \\geq 2$ . Performing the same computation in the second case, we get $H _ { 0 } ( \\mathcal { D } _ { 2 } ) = \\mathbb { Z } ^ { 4 }$ and $H _ { 1 } ( \\dot { \\mathcal { D } } _ { 2 } ) = \\mathbb { Z } ^ { 2 }$ as there are 4 seperate clusters and 2 rings/holes. With respect to any reasonable ordering on homology, $\\mathcal { D } _ { 2 }$ is more complex than $\\mathcal { D } _ { 1 }$ . The measure yields non-trivial differentiation of spaces in higher dimension. For example, the homology of a hollow donut is $\\{ \\mathbb { Z } ^ { 1 } , \\mathbb { Z } ^ { 2 } , \\mathbb { Z } ^ { 1 } , 0 , \\dots \\}$ . ",
295
+ "bbox": [
296
+ 174,
297
+ 708,
298
+ 825,
299
+ 835
300
+ ],
301
+ "page_idx": 2
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "Surprisingly, the homology of a space contains a great deal of information about its topological complexity1. The following theorem suggests the absolute power of homology to group topologically similar spaces, and therefore neural networks with topologically similar decision regions. ",
306
+ "bbox": [
307
+ 174,
308
+ 104,
309
+ 821,
310
+ 147
311
+ ],
312
+ "page_idx": 3
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "Theorem 2.2 (Informal). Let $X$ and $Y$ be topological spaces. If $X \\cong Y$ then $H ( X ) = H ( Y )$ . 4 ",
317
+ "bbox": [
318
+ 171,
319
+ 155,
320
+ 802,
321
+ 170
322
+ ],
323
+ "page_idx": 3
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "Intuitively, Theorem 2.2 states that number of ’holes’ (and in the case of $H _ { 0 } ( X )$ , connected components) are topologically invariant, and can be used to show that two shapes (or decision regions) are different. ",
328
+ "bbox": [
329
+ 174,
330
+ 185,
331
+ 825,
332
+ 227
333
+ ],
334
+ "page_idx": 3
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "2.3 COMPUTATIONAL METHODS FOR HOMOLOGICAL COMPLEXITY ",
339
+ "text_level": 1,
340
+ "bbox": [
341
+ 174,
342
+ 253,
343
+ 655,
344
+ 268
345
+ ],
346
+ "page_idx": 3
347
+ },
348
+ {
349
+ "type": "text",
350
+ "text": "In order to compute the homology of both $\\mathcal { D } _ { 1 }$ and $\\mathcal { D } _ { 2 }$ we needed to assume that they were actually the geometric shapes from which they were sampled. Without such assumptions, for any dataset $\\mathcal { D }$ a $\\mathbf { \\bar { \\theta } } _ { H ( \\mathcal { D } ) } = \\{ \\mathbb { Z } ^ { N } , 0 , \\dots \\}$ where $N$ is the number of data points. This is because, at small enough scales each data point can be isolated as its own connected component; that is, as sets each pair of different positive points $d _ { 1 } , d _ { 2 } \\in \\mathcal { D }$ are disjoint. To properly utilize homological complexity in better understanding architecture selection, we need to be able to compute the homology of the data directly and still capture meaningful topological information. ",
351
+ "bbox": [
352
+ 173,
353
+ 284,
354
+ 825,
355
+ 381
356
+ ],
357
+ "page_idx": 3
358
+ },
359
+ {
360
+ "type": "image",
361
+ "img_path": "images/ce901e1ad962a6e99edd3134c0007ad15c149dea7da34314eecf1cd53b1f3396.jpg",
362
+ "image_caption": [
363
+ "Figure 3: Left: The local disconnectedness of datasets prevents direct computation of their homology. Right: An illustration of computing persistent homology on a collection of points (Topaz et al. (2015)) "
364
+ ],
365
+ "image_footnote": [],
366
+ "bbox": [
367
+ 176,
368
+ 404,
369
+ 821,
370
+ 560
371
+ ],
372
+ "page_idx": 3
373
+ },
374
+ {
375
+ "type": "text",
376
+ "text": "Persistent homology, introduced in Zomorodian & Carlsson (2005), avoids the trivialization of computation of dataset homology by providing an algorithm to calculate the homology of a filtration of a space. Specifically, a filtration is a topological space $X$ equipped with a sequence of subspaces $X _ { 0 } \\subset X _ { 1 } \\subset \\cdots \\subset X$ . In Figure 3 one such particular filtration is given by growing balls of size $\\epsilon$ centered at each point, and then letting $X _ { \\epsilon }$ be the resulting subspace in the filtration. Define $\\beta _ { n } ( X )$ to be the nth Betti number of the homology $H ( X _ { \\epsilon } )$ of $X _ { \\epsilon }$ . Then for example at $\\epsilon = 1 . 5$ , $\\beta _ { 0 } ( X _ { \\epsilon } ) = 1 9$ and $\\beta _ { 1 } ( X _ { \\epsilon } ) = 0$ as every ball is disjoint. At $\\epsilon = 5 . 0$ some connected components merge and $\\beta _ { 0 } ( X _ { \\epsilon } ) = 1 2$ and $\\beta _ { 1 } ( X _ { \\epsilon } ) = 0$ . Finally at $\\epsilon = 7$ , the union of the balls forms a hole towards the center of the dataset and $\\beta _ { 1 } ( X _ { \\epsilon } ) > 0$ with $\\beta _ { 0 } ( X _ { \\epsilon } ) = 4$ . ",
377
+ "bbox": [
378
+ 173,
379
+ 619,
380
+ 825,
381
+ 746
382
+ ],
383
+ "page_idx": 3
384
+ },
385
+ {
386
+ "type": "text",
387
+ "text": "All together the change in homology and therefore Betti numbers for $X _ { \\epsilon }$ as $\\epsilon$ changes can be summarized succinctly in the persistence barcode diagram given in Figure 3. Each bar in the section $\\beta _ { n } ( X )$ denotes a ’hole’ of dimension $n$ . The left endpoint of the bar is the point at which homology detects that particular component, and the right endpoint is when that component becomes indistinguishable in the filtration. When calculating the persistent homology of datasets we will frequently use these diagrams. ",
388
+ "bbox": [
389
+ 174,
390
+ 752,
391
+ 825,
392
+ 837
393
+ ],
394
+ "page_idx": 3
395
+ },
396
+ {
397
+ "type": "text",
398
+ "text": "With the foregoing algorithms established, we are now equipped with the tools to study the capacity of neural networks in the language of algebraic topology. ",
399
+ "bbox": [
400
+ 174,
401
+ 842,
402
+ 823,
403
+ 872
404
+ ],
405
+ "page_idx": 3
406
+ },
407
+ {
408
+ "type": "text",
409
+ "text": "3 HOMOLOGICAL CHARACTERIZATION OF NEURAL ARCHITECTURES ",
410
+ "text_level": 1,
411
+ "bbox": [
412
+ 169,
413
+ 103,
414
+ 767,
415
+ 119
416
+ ],
417
+ "page_idx": 4
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "In the forthcoming section, we will apply persistent homology to emperically characterize the power of certain neural architectures. To understand why homological complexity is a powerful measure for differentiating architectures, we present the following principle. ",
422
+ "bbox": [
423
+ 174,
424
+ 133,
425
+ 823,
426
+ 176
427
+ ],
428
+ "page_idx": 4
429
+ },
430
+ {
431
+ "type": "text",
432
+ "text": "Suppose that $\\mathcal { D }$ is some dataset drawn from a joint distribution $F$ with continuous CDF on some topological space $X \\times \\{ 0 , 1 \\}$ . Let $X ^ { + }$ denote the support of the distribution of points with positive labels, and $X ^ { - }$ denote that of the points with negative labels. Then let $H _ { S } ( f ) \\mathrel { \\mathop : } = H [ f ^ { - 1 } ( \\dot { ( 0 , \\infty ) } ) ]$ denote the support homology of some function $f : X \\to \\{ 0 , 1 \\}$ . Essentially $H _ { S } ( f )$ is homology of the set of $x$ such that $f ( x ) > 0$ . For a binary classifier, $f$ , $H _ { S } ( f )$ is roughly a characterization of how many ’holes’ are in the positive decision region of $f$ . We will sometimes use $\\beta _ { n } ( f )$ to denote the $n$ th Betti number of this support homology. Finally let ${ \\mathcal { F } } = \\{ f : X \\to \\{ 0 , 1 \\} \\}$ be some family of binary classifiers on $X$ . ",
433
+ "bbox": [
434
+ 174,
435
+ 181,
436
+ 825,
437
+ 294
438
+ ],
439
+ "page_idx": 4
440
+ },
441
+ {
442
+ "type": "text",
443
+ "text": "Theorem 3.1 (The Homological Principle of Generalization). If $X = X ^ { - } \\sqcup X ^ { + }$ and for all $f \\in { \\mathcal { F } }$ with $H _ { S } ( f ) \\neq H ( X ^ { + } )$ , then for all $f \\in { \\mathcal { F } }$ there exists $A \\subset X ^ { + }$ so $f$ misclassifies every $x \\in A$ . ",
444
+ "bbox": [
445
+ 174,
446
+ 296,
447
+ 823,
448
+ 325
449
+ ],
450
+ "page_idx": 4
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "Essential Theorem 3.1 says that if an architecture (a family of models $\\mathcal { F }$ ) is incapable of producing a certain homological complexity, then for any model using that architecture there will always be a set $A$ of true data points on which the model will fail. Note that the above principle holds regardless of how $f \\in { \\mathcal { F } }$ is attained, learned or otherwise. However, the principle does imply that no matter how well some $\\mathcal { F }$ learns to correctly classify $\\mathcal { D }$ there will always be a counter examples in the true data. ",
455
+ "bbox": [
456
+ 174,
457
+ 334,
458
+ 825,
459
+ 404
460
+ ],
461
+ "page_idx": 4
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "In the context of architecture selection, the foregoing minimality condition significantly reduces the size of the search space by eliminating smaller architectures which cannot even express the ’holes’ (persistent homology) of the data $H ( \\mathcal D )$ . This allows us to return to our original question of finding suitably expressive and generalizeable architectures but in the very computable language of homological complexity: Let ${ \\mathcal { F } } _ { A }$ the set of all neural networks with ’architecture’ $A$ , then ",
466
+ "bbox": [
467
+ 174,
468
+ 411,
469
+ 825,
470
+ 481
471
+ ],
472
+ "page_idx": 4
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "Given a dataset $\\mathcal { D }$ , for which architectures $A$ does there exist a neural network $f \\in { \\mathcal { F } } _ { A }$ such that $H _ { S } ( f ) = H ( \\mathcal { D } )$ ? ",
477
+ "bbox": [
478
+ 297,
479
+ 484,
480
+ 700,
481
+ 513
482
+ ],
483
+ "page_idx": 4
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "We will resurface a contemporary theoretical view on this question, and thereafter make the first steps towards an emperical characterization of the capacity of neural architectures in the view of topology. ",
488
+ "bbox": [
489
+ 176,
490
+ 517,
491
+ 823,
492
+ 546
493
+ ],
494
+ "page_idx": 4
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "3.1 THEORETICAL BASIS FOR NEURAL HOMOLOGY ",
499
+ "text_level": 1,
500
+ "bbox": [
501
+ 174,
502
+ 561,
503
+ 547,
504
+ 575
505
+ ],
506
+ "page_idx": 4
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "Theoretically, the homological complexity of neural network can be framed in terms of the sum of the number of holes expressible by certain architectures. In particular, Bianchini et al. (2014) gives an analysis of how the maximum sum of Betti numbers grows as ${ \\mathcal { F } } _ { A }$ changes. The results, summarized in Table 1, show that the width, depth, and activation of a fully connected architecture effect its topological expressivity to varying polynomial and exponential degrees. What is unclear from this analysis is how these bounds describe expressivity in terms of individual Betti numbers. For example, with a tanh activation function, $n$ inputs, $\\ell$ layers, and $h$ hidden units, there is no description of what the number of connected components $\\operatorname* { m a x } _ { f \\in { \\mathcal { F } } _ { A } } \\beta _ { 0 } ( f )$ or 1-dimensional holes $\\operatorname* { m a x } _ { f \\in { \\mathcal { F } } _ { A } } { \\beta _ { 1 } ( f ) }$ actually is. With regards to tighter bounds Bianchini et al. (2014) stipulate that improvements to their results are deeply tied to several unsolved problems in algebraic topology. ",
511
+ "bbox": [
512
+ 173,
513
+ 587,
514
+ 825,
515
+ 727
516
+ ],
517
+ "page_idx": 4
518
+ },
519
+ {
520
+ "type": "table",
521
+ "img_path": "images/087685a812597e3fdcf0d216a5cee81e8bdad9c8485d11e218e22532461952e4.jpg",
522
+ "table_caption": [
523
+ "Table 1: Upper bounds on homological expressivity of neural architectures (Bianchini et al. (2014).) "
524
+ ],
525
+ "table_footnote": [],
526
+ "table_body": "<table><tr><td colspan=\"4\">Architecture A</td><td>maxfeFA∑=1 βk(f)</td></tr><tr><td></td><td>Inputs Layers Units</td><td></td><td>Activation</td><td></td></tr><tr><td>n</td><td>3</td><td>h</td><td>threshold</td><td>O(hn)</td></tr><tr><td>n</td><td>3</td><td>h</td><td>arctan</td><td>O((n + h)n+2)</td></tr><tr><td>n</td><td>3</td><td>h</td><td>polynomial, deg. r</td><td>1(2+r)(1+r)n-1</td></tr><tr><td>1</td><td>3</td><td>h</td><td>arctan</td><td>h</td></tr><tr><td>n</td><td>l</td><td>h</td><td>arctan</td><td>2h(2h-1)O(nl + n)n+2h)</td></tr><tr><td>n</td><td>l</td><td>h</td><td>tanh</td><td>2h(h-1)/20(nl + n)n+h)</td></tr><tr><td>n</td><td>l</td><td>h</td><td>polynomial, deg. r</td><td>1(2+r)(1+r)n-1)</td></tr></table>",
527
+ "bbox": [
528
+ 253,
529
+ 765,
530
+ 745,
531
+ 915
532
+ ],
533
+ "page_idx": 4
534
+ },
535
+ {
536
+ "type": "image",
537
+ "img_path": "images/c46bee0ab369538b1d7704c20d9dd3698824ca588addc9699d3cef8b27d074a4.jpg",
538
+ "image_caption": [
539
+ "Figure 4: Topological phase transitions in low dimensional neural networks as the homological complexity of the data increases. The upper right corner of each plot is a dataset on which the neural networks of increasing hidden dimension are trained. "
540
+ ],
541
+ "image_footnote": [],
542
+ "bbox": [
543
+ 178,
544
+ 102,
545
+ 816,
546
+ 281
547
+ ],
548
+ "page_idx": 5
549
+ },
550
+ {
551
+ "type": "text",
552
+ "text": "3.2 EMPIRICAL RESULTS ",
553
+ "text_level": 1,
554
+ "bbox": [
555
+ 176,
556
+ 354,
557
+ 361,
558
+ 367
559
+ ],
560
+ "page_idx": 5
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "To understand how the homology of data determines expressive architectures we turn to an empirical characterization of neural networks. In this setting, we can tighten the bounds given in Table 1 by training different architectures on datasets with known homologies and then recording the decision regions observed over the course of training. ",
565
+ "bbox": [
566
+ 174,
567
+ 382,
568
+ 825,
569
+ 438
570
+ ],
571
+ "page_idx": 5
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "3.2.1 HOMOLOGICAL CAPACITY OF HIDDEN UNITS. ",
576
+ "text_level": 1,
577
+ "bbox": [
578
+ 174,
579
+ 458,
580
+ 549,
581
+ 472
582
+ ],
583
+ "page_idx": 5
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "In the most basic case, one is interested in studying how the number of hidden units in a single hidden layer neural network affect its homological capacity. The results of Bianchini et al. (2014) say for certain activation functions we should expect a polynomial dependence on the sum of Betti numbers $\\sum \\beta _ { n }$ , but is this true of individual numbers? Having an individual characterization would allow for architecture selection by computing the homology of the dataset, and then finding which architectures meet the minimal criterion for each Betti number $\\beta _ { n }$ . ",
588
+ "bbox": [
589
+ 173,
590
+ 483,
591
+ 825,
592
+ 568
593
+ ],
594
+ "page_idx": 5
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "Restricting5 our analysis to the case of two inputs, $n = 2$ , we characterize the capacities of architectures with an increasing number of hidden units to learn on datasets with homological complexities ranging from $\\{ \\mathbb { Z } ^ { 1 } , 0 \\}$ to $\\{ \\mathbb { Z } ^ { 2 0 } , \\mathbb { Z } ^ { 2 0 } \\}$ . In our experiment, we generate datasets of each particular homological complexity by sampling different combinations of balls, rings, and scaling, twisting, and gluing them at random. After generating the foregoing datasets with $N \\approx 9 0 0 0 0$ samples we train 100 randomly (truncated normal) initialized single hidden layer architectures with hidden units $h \\in \\{ 1 , \\ldots , 2 5 5 \\}$ and tanh activation functions for $\\mathrm { \\bar { 1 0 ^ { 6 } } }$ minibatches of size 128. During training, every 2500 batches we sample the decision boundary of each neural network over a grid of $5 0 0 \\times 5 0 0$ samples, producing $1 . 0 2 \\times 1 \\bar { 0 } ^ { 6 }$ recorded decision boundaries. Using the resulting data, we not only characterize different architectures but observed interesting topological phenomena during learning. ",
599
+ "bbox": [
600
+ 174,
601
+ 574,
602
+ 486,
603
+ 866
604
+ ],
605
+ "page_idx": 5
606
+ },
607
+ {
608
+ "type": "image",
609
+ "img_path": "images/df13f063452a7b093c38f4d767e507e5d0d5e3997ffa5161525ec22388e7d060.jpg",
610
+ "image_caption": [
611
+ "Figure 5: Several different views of the probability of converging to zero-error for single hidden layer neural networks on datasets with different homological complexities. "
612
+ ],
613
+ "image_footnote": [],
614
+ "bbox": [
615
+ 496,
616
+ 584,
617
+ 825,
618
+ 792
619
+ ],
620
+ "page_idx": 5
621
+ },
622
+ {
623
+ "type": "image",
624
+ "img_path": "images/6b67d6c291699926908cc5543af035d5f293fcf22c21ea6c21611262e372bc58.jpg",
625
+ "image_caption": [
626
+ "Figure 6: An example of topological stratification for single hidden layer networks. (a) The number of connected components in the decision regions during training. (b) Correlation of Betti numbers. "
627
+ ],
628
+ "image_footnote": [],
629
+ "bbox": [
630
+ 210,
631
+ 79,
632
+ 787,
633
+ 258
634
+ ],
635
+ "page_idx": 6
636
+ },
637
+ {
638
+ "type": "text",
639
+ "text": "First, neural networks exhibit a statistically significant topological phase transition in their convergence which depends directly on the homological complexity of the data. For any dataset in the experiment and any random homeomorphism applied thereto, the best test error of architectures with $h$ hidden units is strictly ordered in magnitude and convergence time for $h < h _ { p h a s e }$ where $h _ { p h a s e }$ is a number of hidden units required to express the homology of the data. In Figure 4 we plot the best performing test error of architectures $h \\in \\{ 1 , \\ldots , 1 5 \\}$ on some example datasets $\\mathcal { D } _ { 0 } , \\mathcal { D } _ { 1 }$ , and $\\mathcal { D } _ { 2 }$ with $H ( \\tilde { \\mathcal { D } _ { 0 } } ) \\approx \\{ \\mathbb { Z } ^ { 2 } , 0 \\}$ , $H ( \\mathcal { D } _ { 1 } ) \\approx \\{ \\mathbb { Z } ^ { 3 } , 0 \\}$ , $H ( \\mathcal { D } _ { 2 } ) \\overset { \\cdot } { \\approx } \\{ \\mathbb Z ^ { 3 } , \\mathbb Z ^ { 2 } \\}$ . In this example $h _ { p h a s e } ( \\mathcal { D } _ { 0 } ) = 4 , h _ { p h a s e } ( \\mathcal { D } _ { 1 } ) = 6$ , and $h _ { p h a s e } ( \\mathcal { D } _ { 2 } ) = 1 0$ . Surprisingly, leading up to the phase transition point, each different architecture falls into its own band of optimal convergence. This suggests that additional hidden units do in fact add to the topological capacity of an architecture in a consistent way. ",
640
+ "bbox": [
641
+ 174,
642
+ 315,
643
+ 825,
644
+ 469
645
+ ],
646
+ "page_idx": 6
647
+ },
648
+ {
649
+ "type": "text",
650
+ "text": "Using topological phase transitions we now return to the original question of existence of expressive architectures. In Figure 5, we accumulate the probabilities that neural networks of varying hidden dimension train to zero-error on datasets of different homological complexities. The table gives different views into how expressive an architecture need be in order to converge, and therefore we are able to conjecture tighter bounds on the capacity of hidden units. Extrapolating from the first view, if $H _ { 0 } ( \\mathcal { D } ) = \\mathbb { Z } ^ { m }$ then there exists a single hidden layer neural network with $h = m + 2$ that converges to zero error on $\\mathcal { D }$ . Likewise we claim that if $H _ { 0 } ( \\mathcal { D } ) = \\mathbb { Z } ^ { m }$ and $H _ { 1 } ( \\mathcal { D } ) = 1$ then the same holds with $h \\geq 3 m - 1$ . Further empirical analysis of convergence probabilities yields additional conjectures. However, claiming converse conjectures about a failure to generalize in the view of Theorem 3.1 requires exhaustive computation of decision boundary homologies. ",
651
+ "bbox": [
652
+ 174,
653
+ 477,
654
+ 825,
655
+ 616
656
+ ],
657
+ "page_idx": 6
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "By applying persistent homology to the decision boundaries of certain networks during training, we observe that given sufficient data, neural networks exhibit topological stratification. For example, consider the homologies of different architecture decision regions as training progresses in Figure 6(a). At the beginning of training every model captures the global topological information of the dataset and is homologically correlated with one another. However as training continues, the architectures stratify into two groups with homological complexities ordered by the capacities of the models. In this example, $h _ { 3 } , h _ { 4 }$ , and $h _ { 5 }$ are unable to express as many holes as the other architectures and so never specialize to more complex and local topological properties of the data. Figure 6(b) depicts topological stratification in terms of the correlation between Betti numbers. Topologically speaking, networks with less than 6 hidden units are distinct from those with more for most of training. Furthermore, this correlative view shows that stratification is consistent with topological phase transition; that is, across all decision boundary homologies recorded during the experiment stratification occurs just when the number of hidden units is slightly less than $h _ { p h a s e }$ . ",
662
+ "bbox": [
663
+ 174,
664
+ 622,
665
+ 826,
666
+ 803
667
+ ],
668
+ "page_idx": 6
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "4 THE TOPOLOGY OF REAL DATA ",
673
+ "text_level": 1,
674
+ "bbox": [
675
+ 176,
676
+ 830,
677
+ 468,
678
+ 847
679
+ ],
680
+ "page_idx": 6
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "We have thus far demonstrated the discriminatory power of homological complexity in determining the expressivity of architectures. However, for homological complexity to have any practical use in architecture selection, it must be computable on real data, and more generally real data must have non-trivial homology; if all data were topologically simple our characterization would have no predictive power. In the following section we will compute the persistent homologies up to dimension 2 of different real world datasets. ",
685
+ "bbox": [
686
+ 174,
687
+ 867,
688
+ 823,
689
+ 924
690
+ ],
691
+ "page_idx": 6
692
+ },
693
+ {
694
+ "type": "image",
695
+ "img_path": "images/f6d31e598d183daf15b5a69fa794ca5d0b0151956341748e6c2824d4c467ca63.jpg",
696
+ "image_caption": [
697
+ "Figure 7: The persistent homology barcodes of classes in the CIFAR-10 and UCI Protein Localization Datasets. Left: The bardcode for dimension 0 and 1 of the ’CYT’ class along side its local linear embedding into $\\mathbb { R } ^ { 2 }$ . Right: The barcode for the dimensions 0 and 1 for the ’cars’ class along side different samples thereof in CIFAR-10. Note how different orientations are shown. "
698
+ ],
699
+ "image_footnote": [],
700
+ "bbox": [
701
+ 181,
702
+ 92,
703
+ 818,
704
+ 199
705
+ ],
706
+ "page_idx": 7
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "",
711
+ "bbox": [
712
+ 173,
713
+ 281,
714
+ 821,
715
+ 309
716
+ ],
717
+ "page_idx": 7
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "CIFAR-10. We compute the persistent homology of several classes of CIFAR-10 using the Python library Dionysus. Currently algorithms for persistent homology do not deal well with high dimensional data, so we embed the entire dataset in $\\mathbb { R } ^ { 3 }$ using local linear embedding (LLE; Saul & Roweis (2000)) with $K = 1 2 0$ neighbors. After embedding the dataset, we take a sample of 1000 points from example class ’car’ and build a persistent filtration by constructing a Vietoris-Rips complex on the data. The resulting complex has 20833750 simplices and took $4 . 3 \\mathrm { { m i n } }$ . to generate. Finally, computation of the persistence diagram shown in Figure 7 took $8 . 4 \\mathrm { { m i n } }$ . locked to a single thread on a Intel Core i7 processor. The one-time cost of computing persistent homology could easily augment any neural architecture search. ",
722
+ "bbox": [
723
+ 174,
724
+ 316,
725
+ 825,
726
+ 441
727
+ ],
728
+ "page_idx": 7
729
+ },
730
+ {
731
+ "type": "text",
732
+ "text": "Although we only give an analysis of dimension 2 topological features–and there is certainly higher dimensional homological information in CIFAR-10–the persistence barcode diagram is rich with different components in both $H _ { 0 } ( \\mathcal { D } )$ and $H _ { 1 } ( \\mathcal { D } )$ . Intuitively, CIFAR contains pictures of cars rotated accross a range of different orientations and this is exhibited in the homology. In particular, several holes are born and die in the range $\\epsilon \\in [ 0 . 1 5 , 0 . 3 7 5 ]$ and one large loop from $\\epsilon \\in [ 0 . 6 2 5 , 0 . 8 2 ]$ . ",
733
+ "bbox": [
734
+ 174,
735
+ 449,
736
+ 825,
737
+ 518
738
+ ],
739
+ "page_idx": 7
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "UCI Datasets. We further compute the homology of three low dimensional UCI datasets and attempt to assert the of non-trivial , $h _ { p h a s e }$ . Specifically, we compute the persistent homology of the majority classes in the Yeast Protein Localization Sites, UCI Ecoli Protein Localization Sites, and HTRU2 datasets. For these datasets no dimensionality reduction was used. In Figure 7(left), the persistence barcode exhibits two seperate significant loops (holes) at $\\epsilon \\in [ 0 . 1 9 , 0 . 3 1 ]$ and $\\epsilon \\in [ 0 . 7 6 , 0 . 8 5 ]$ , as well as two major connected components in $\\beta _ { 0 } ( \\mathcal { D } )$ . The Other persistence diagrams are relegated to the appendix. ",
744
+ "bbox": [
745
+ 173,
746
+ 525,
747
+ 825,
748
+ 622
749
+ ],
750
+ "page_idx": 7
751
+ },
752
+ {
753
+ "type": "text",
754
+ "text": "Existing Data. Outside of the primary machine learning literature, topological data analysis yields non-trivial computations in wide variety of fields and datasets. Of particular interest is the work of Carlsson et al. (2008), which computes the homological complexity of collections of $n \\times n$ patches of natural images. Even in these simple collections of images, the authors found topologies of Klein Bottles $( \\mathbf { \\bar { \\cal H } } ( \\cdot ) = \\{ \\mathbb { Z } , \\mathbb { Z } ^ { 2 } / 2 \\mathbb { Z } , 0 \\ldots \\} )$ and other exotic topological objects. Other authors have calculated non-trivial dataset homologies in biological (Topaz et al. (2015)), natural language (Michel et al. (2017)), and other domains (Wu et al. (2017), Xia & Wei (2014)). ",
755
+ "bbox": [
756
+ 174,
757
+ 630,
758
+ 825,
759
+ 727
760
+ ],
761
+ "page_idx": 7
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "5 RELATED WORK ",
766
+ "text_level": 1,
767
+ "bbox": [
768
+ 176,
769
+ 751,
770
+ 343,
771
+ 767
772
+ ],
773
+ "page_idx": 7
774
+ },
775
+ {
776
+ "type": "text",
777
+ "text": "We will place this work in the context of deep learning theory as it relates to expressivity. Since the seminal work of Cybenko (1989) which established standard universal approximation results for neural networks, many theorists have endeavored to understand the expressivity of certain neural architectures. Pascanu et al. (2013) and MacKay (2003) provided the first analysis relating the depth and width of architectures to the complexitity of the sublevel sets they can express. Motivated therefrom, Bianchini et al. (2014) expressed this theme in the language of Pfefferian functions, thereby bounding the sum of Betti numbers expressed by sublevel sets. Finally Guss (2016) gave an account of how topological assumptions on the input data lead to optimally expressive architectures. In parallel, Eldan & Shamir (2016) presented the first analytical minimality result in expressivity theory; that is, the authors show that there are simple functions that cannot be expressed by two layer neural networks with out exponential dependence on input dimension. This work spurred the work ofPoole et al. (2016), Raghu et al. (2016) which reframed expressivity in a differential geometric lense. ",
778
+ "bbox": [
779
+ 174,
780
+ 784,
781
+ 825,
782
+ 924
783
+ ],
784
+ "page_idx": 7
785
+ },
786
+ {
787
+ "type": "text",
788
+ "text": "",
789
+ "bbox": [
790
+ 174,
791
+ 104,
792
+ 821,
793
+ 147
794
+ ],
795
+ "page_idx": 8
796
+ },
797
+ {
798
+ "type": "text",
799
+ "text": "Our work presents the first method to derive expressivity results empirically. Our topological viewpoint sits dually with its differential geometric counterpart, and in conjunction with the work of Poole et al. (2016) and Bianchini et al. (2014), this duallity implies that when topological expression is not possible, exponential differential expressivity allows networks to bypass homological constaints at the cost of adversarial sets. Furthermore, our work opens a practical connectio nbetween the foregoing theory on neural expressivity and architecture selection, with the potential to drastically improve neural architecture search (Zoph & Le (2017)) by directly computing the capacities of different architectures. ",
800
+ "bbox": [
801
+ 174,
802
+ 154,
803
+ 825,
804
+ 265
805
+ ],
806
+ "page_idx": 8
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "6 CONCLUSION ",
811
+ "text_level": 1,
812
+ "bbox": [
813
+ 176,
814
+ 286,
815
+ 318,
816
+ 301
817
+ ],
818
+ "page_idx": 8
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "Architectural power is deeply related to the algebraic topology of decision boundaries. In this work we distilled neural network expressivity into an empirical question of the generalization capabilities of architectures with respect to the homological complexity of learning problems. This view allowed us to provide an empirical method for developing tighter characterizations on the the capacity of different architectures in addition to a principled approach to guiding architecture selection by computation of persistent homology on real data. ",
823
+ "bbox": [
824
+ 174,
825
+ 318,
826
+ 825,
827
+ 401
828
+ ],
829
+ "page_idx": 8
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "There are several potential avenues of future research in using homological complexity to better understand neural architectures. First, a full characterization of neural networks with many layers or convolutional linearities is a crucial next step. Our empirical results suggest that the their are exact formulas describing the of power of neural networks to express decision boundaries with certain properties. Future theoretical work in determining these forms would significantly increase the efficiency and power of neural architecture search, constraining the search space by the persistent homology of the data. Additionally, we intend on studying how the topological complexity of data changes as it is propagated through deeper architectures. ",
834
+ "bbox": [
835
+ 174,
836
+ 409,
837
+ 825,
838
+ 520
839
+ ],
840
+ "page_idx": 8
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "REFERENCES ",
845
+ "text_level": 1,
846
+ "bbox": [
847
+ 176,
848
+ 541,
849
+ 285,
850
+ 556
851
+ ],
852
+ "page_idx": 8
853
+ },
854
+ {
855
+ "type": "text",
856
+ "text": "E Betti. Il nuovo cimento. Series, 2:7, 1872. ",
857
+ "bbox": [
858
+ 176,
859
+ 564,
860
+ 465,
861
+ 579
862
+ ],
863
+ "page_idx": 8
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "Monica Bianchini et al. On the complexity of shallow and deep neural network classifiers. In ESANN, 2014. ",
868
+ "bbox": [
869
+ 169,
870
+ 590,
871
+ 825,
872
+ 618
873
+ ],
874
+ "page_idx": 8
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "Glen E Bredon. Topology and geometry, volume 139. Springer Science & Business Media, 2013. ",
879
+ "bbox": [
880
+ 171,
881
+ 630,
882
+ 810,
883
+ 645
884
+ ],
885
+ "page_idx": 8
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "Gunnar Carlsson, Tigran Ishkhanov, Vin De Silva, and Afra Zomorodian. On the local behavior of spaces of natural images. International journal of computer vision, 76(1):1–12, 2008. ",
890
+ "bbox": [
891
+ 171,
892
+ 655,
893
+ 825,
894
+ 684
895
+ ],
896
+ "page_idx": 8
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "Frédéric Chazal, Brittany Fasy, Fabrizio Lecci, Bertrand Michel, Alessandro Rinaldo, and Larry Wasserman. Subsampling methods for persistent homology. In Proceedings of the 32nd International Conference on Machine Learning (ICML-15), pp. 2143–2151, 2015. ",
901
+ "bbox": [
902
+ 173,
903
+ 694,
904
+ 826,
905
+ 738
906
+ ],
907
+ "page_idx": 8
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "George Cybenko. Approximation by superpositions of a sigmoidal function. Mathematics of Control, Signals, and Systems (MCSS), 2(4):303–314, 1989. ",
912
+ "bbox": [
913
+ 173,
914
+ 748,
915
+ 825,
916
+ 777
917
+ ],
918
+ "page_idx": 8
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "Amit Daniely, Roy Frostig, and Yoram Singer. Toward deeper understanding of neural networks: The power of initialization and a dual view on expressivity. In Advances In Neural Information Processing Systems, pp. 2253–2261, 2016. ",
923
+ "bbox": [
924
+ 174,
925
+ 787,
926
+ 823,
927
+ 830
928
+ ],
929
+ "page_idx": 8
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "TK Dey, H Edelsbrunner, and S Guha. Computational topology, invited paper in advances in discrete and computational geometry, eds. b. chazelle, je goodmann and r. pollack. Contemporary Mathematics, AMS, 1998. ",
934
+ "bbox": [
935
+ 174,
936
+ 842,
937
+ 823,
938
+ 883
939
+ ],
940
+ "page_idx": 8
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "Ronen Eldan and Ohad Shamir. The power of depth for feedforward neural networks. In Conference on Learning Theory, pp. 907–940, 2016. ",
945
+ "bbox": [
946
+ 173,
947
+ 895,
948
+ 821,
949
+ 924
950
+ ],
951
+ "page_idx": 8
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "Chrisantha Fernando, Dylan Banarse, Charles Blundell, Yori Zwols, David Ha, Andrei A. Rusu, Alexander Pritzel, and Daan Wierstra. Pathnet: Evolution channels gradient descent in super neural networks. CoRR, abs/1701.08734, 2017. URL http://arxiv.org/abs/1701.08734. ",
956
+ "bbox": [
957
+ 176,
958
+ 104,
959
+ 823,
960
+ 147
961
+ ],
962
+ "page_idx": 9
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep Learning. MIT Press, 2016. http: //www.deeplearningbook.org. ",
967
+ "bbox": [
968
+ 176,
969
+ 156,
970
+ 821,
971
+ 186
972
+ ],
973
+ "page_idx": 9
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "William H Guss. Deep function machines: Generalized neural networks for topological layer expression. arXiv preprint arXiv:1612.04799, 2016. ",
978
+ "bbox": [
979
+ 174,
980
+ 195,
981
+ 821,
982
+ 224
983
+ ],
984
+ "page_idx": 9
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CoRR, abs/1512.03385, 2015. URL http://arxiv.org/abs/1512.03385. ",
989
+ "bbox": [
990
+ 173,
991
+ 233,
992
+ 821,
993
+ 263
994
+ ],
995
+ "page_idx": 9
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "Geoffrey Hinton, Li Deng, Dong Yu, George E Dahl, Abdel-rahman Mohamed, Navdeep Jaitly, Andrew Senior, Vincent Vanhoucke, Patrick Nguyen, Tara N Sainath, et al. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine, 29(6):82–97, 2012. ",
1000
+ "bbox": [
1001
+ 173,
1002
+ 272,
1003
+ 826,
1004
+ 329
1005
+ ],
1006
+ "page_idx": 9
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "Yasuyuki Kato, Daisuke Yamamoto, and Ippei Danshita. Quantum tricriticality at the superfluidinsulator transition of binary bose mixtures. Phys. Rev. Lett., 112:055301, Feb 2014. doi: 10.1103/PhysRevLett.112.055301. URL https://link.aps.org/doi/10.1103/ PhysRevLett.112.055301. ",
1011
+ "bbox": [
1012
+ 174,
1013
+ 338,
1014
+ 826,
1015
+ 393
1016
+ ],
1017
+ "page_idx": 9
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012. ",
1022
+ "bbox": [
1023
+ 174,
1024
+ 404,
1025
+ 825,
1026
+ 446
1027
+ ],
1028
+ "page_idx": 9
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "David JC MacKay. Information theory, inference and learning algorithms. Cambridge university press, 2003. ",
1033
+ "bbox": [
1034
+ 174,
1035
+ 455,
1036
+ 823,
1037
+ 486
1038
+ ],
1039
+ "page_idx": 9
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "Paul Michel, Abhilasha Ravichander, and Shruti Rijhwani. Does the geometry of word embeddings help document classification? a case study on persistent homology based representations. arXiv preprint arXiv:1705.10900, 2017. ",
1044
+ "bbox": [
1045
+ 174,
1046
+ 494,
1047
+ 825,
1048
+ 537
1049
+ ],
1050
+ "page_idx": 9
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602, 2013. ",
1055
+ "bbox": [
1056
+ 174,
1057
+ 546,
1058
+ 825,
1059
+ 589
1060
+ ],
1061
+ "page_idx": 9
1062
+ },
1063
+ {
1064
+ "type": "text",
1065
+ "text": "Razvan Pascanu, Guido Montufar, and Yoshua Bengio. On the number of response regions of deep feed forward networks with piece-wise linear activations. arXiv preprint arXiv:1312.6098, 2013. ",
1066
+ "bbox": [
1067
+ 171,
1068
+ 598,
1069
+ 825,
1070
+ 628
1071
+ ],
1072
+ "page_idx": 9
1073
+ },
1074
+ {
1075
+ "type": "text",
1076
+ "text": "Ben Poole, Subhaneil Lahiri, Maithreyi Raghu, Jascha Sohl-Dickstein, and Surya Ganguli. Exponential expressivity in deep neural networks through transient chaos. In Advances In Neural Information Processing Systems, pp. 3360–3368, 2016. ",
1077
+ "bbox": [
1078
+ 173,
1079
+ 637,
1080
+ 825,
1081
+ 681
1082
+ ],
1083
+ "page_idx": 9
1084
+ },
1085
+ {
1086
+ "type": "text",
1087
+ "text": "Maithra Raghu, Ben Poole, Jon Kleinberg, Surya Ganguli, and Jascha Sohl-Dickstein. On the expressive power of deep neural networks. arXiv preprint arXiv:1606.05336, 2016. ",
1088
+ "bbox": [
1089
+ 169,
1090
+ 689,
1091
+ 823,
1092
+ 719
1093
+ ],
1094
+ "page_idx": 9
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "Lawrence K Saul and Sam T Roweis. An introduction to locally linear embedding. unpublished. Available at: http://www. cs. toronto. edu/˜ roweis/lle/publications. html, 2000. ",
1099
+ "bbox": [
1100
+ 171,
1101
+ 728,
1102
+ 823,
1103
+ 757
1104
+ ],
1105
+ "page_idx": 9
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "Shreyas Saxena and Jakob Verbeek. Convolutional neural fabrics. CoRR, abs/1606.02492, 2016. URL http://arxiv.org/abs/1606.02492. ",
1110
+ "bbox": [
1111
+ 171,
1112
+ 766,
1113
+ 825,
1114
+ 795
1115
+ ],
1116
+ "page_idx": 9
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014. URL http://arxiv.org/abs/1409.1556. ",
1121
+ "bbox": [
1122
+ 171,
1123
+ 804,
1124
+ 823,
1125
+ 834
1126
+ ],
1127
+ "page_idx": 9
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott E. Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. CoRR, abs/1409.4842, 2014. URL http://arxiv.org/abs/1409.4842. ",
1132
+ "bbox": [
1133
+ 176,
1134
+ 843,
1135
+ 823,
1136
+ 886
1137
+ ],
1138
+ "page_idx": 9
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "Chad M Topaz, Lori Ziegelmeier, and Tom Halverson. Topological data analysis of biological aggregation models. PloS one, 10(5):e0126383, 2015. ",
1143
+ "bbox": [
1144
+ 173,
1145
+ 895,
1146
+ 821,
1147
+ 924
1148
+ ],
1149
+ "page_idx": 9
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016. ",
1154
+ "bbox": [
1155
+ 174,
1156
+ 104,
1157
+ 826,
1158
+ 161
1159
+ ],
1160
+ "page_idx": 10
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "Yu Wu, Gabriel Shindnes, Vaibhav Karve, Derrek Yager, Daniel B Work, Arnab Chakraborty, and Richard B Sowers. Congestion barcodes: Exploring the topology of urban congestion using persistent homology. arXiv preprint arXiv:1707.08557, 2017. ",
1165
+ "bbox": [
1166
+ 176,
1167
+ 171,
1168
+ 823,
1169
+ 213
1170
+ ],
1171
+ "page_idx": 10
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "Kelin Xia and Guo-Wei Wei. Persistent homology analysis of protein structure, flexibility, and folding. International journal for numerical methods in biomedical engineering, 30(8):814–844, 2014. ",
1176
+ "bbox": [
1177
+ 174,
1178
+ 224,
1179
+ 823,
1180
+ 253
1181
+ ],
1182
+ "page_idx": 10
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "text": "Afra Zomorodian and Gunnar Carlsson. Computing persistent homology. Discrete & Computational Geometry, 33(2):249–274, 2005. ",
1187
+ "bbox": [
1188
+ 173,
1189
+ 263,
1190
+ 825,
1191
+ 291
1192
+ ],
1193
+ "page_idx": 10
1194
+ },
1195
+ {
1196
+ "type": "text",
1197
+ "text": "Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. 2017. URL https://arxiv.org/abs/1611.01578. ",
1198
+ "bbox": [
1199
+ 173,
1200
+ 301,
1201
+ 825,
1202
+ 330
1203
+ ],
1204
+ "page_idx": 10
1205
+ },
1206
+ {
1207
+ "type": "text",
1208
+ "text": "A PROOFS, CONJECTURES, AND FORMAL DEFINITIONS ",
1209
+ "text_level": 1,
1210
+ "bbox": [
1211
+ 174,
1212
+ 102,
1213
+ 650,
1214
+ 121
1215
+ ],
1216
+ "page_idx": 11
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "A.1 HOMOLOGY ",
1221
+ "text_level": 1,
1222
+ "bbox": [
1223
+ 176,
1224
+ 140,
1225
+ 303,
1226
+ 155
1227
+ ],
1228
+ "page_idx": 11
1229
+ },
1230
+ {
1231
+ "type": "text",
1232
+ "text": "Homology is naturally described using the language of category theory. Let $T o p ^ { 2 }$ denote the category of topological spaces and $A b$ the category of abelian groups. ",
1233
+ "bbox": [
1234
+ 174,
1235
+ 170,
1236
+ 823,
1237
+ 199
1238
+ ],
1239
+ "page_idx": 11
1240
+ },
1241
+ {
1242
+ "type": "text",
1243
+ "text": "Definition A.1 (Homology Theory, Bredon (2013)). A homology theory on the on $T o p ^ { 2 }$ is a function $H : T o p ^ { 2 } A b$ assigning to each pair $( X , A )$ of spaces a graded (abelian) group $\\{ H _ { p } ( X , A ) \\}$ , and to each map $f : ( X , A ) \\to ( Y , B )$ , homomorphisms $f _ { * } : H _ { p } ( X , A ) \\to H _ { p } ( Y , B )$ , together with a natural transformation of functors $\\partial _ { * } : H _ { p } ( X , A ) \\to H _ { p - 1 } ( X , A )$ , called the connecting homomorphism (where we use $H _ { * } ( A )$ to denote $H _ { * } ( A , \\varnothing )$ ) such that the following five axioms are satisfied. ",
1244
+ "bbox": [
1245
+ 173,
1246
+ 207,
1247
+ 826,
1248
+ 291
1249
+ ],
1250
+ "page_idx": 11
1251
+ },
1252
+ {
1253
+ "type": "text",
1254
+ "text": "1. If $f \\simeq g : ( X , A ) ( Y , B )$ then $f _ { * } = g _ { * } : H _ { * } ( X , A ) \\to H _ { * } ( Y , B ) .$ ",
1255
+ "bbox": [
1256
+ 210,
1257
+ 306,
1258
+ 679,
1259
+ 325
1260
+ ],
1261
+ "page_idx": 11
1262
+ },
1263
+ {
1264
+ "type": "text",
1265
+ "text": "2. For the inclusions $i : A \\to X$ and $j : X \\to ( X , A )$ the sequence sequence of inclusions and connecting homomorphisms are exact. ",
1266
+ "bbox": [
1267
+ 210,
1268
+ 335,
1269
+ 825,
1270
+ 366
1271
+ ],
1272
+ "page_idx": 11
1273
+ },
1274
+ {
1275
+ "type": "text",
1276
+ "text": "3. Given the pair $( X , A )$ and an open set $U \\subset X$ such that $c l ( U ) \\subset i n t ( A )$ then the inclusion $k : ( X - U , A - U ) \\to ( X , A )$ induces an isomorphism $k _ { * } : H _ { * } ( X - U , A - U ) \\to$ $H _ { * } ( X , A )$ ",
1277
+ "bbox": [
1278
+ 212,
1279
+ 377,
1280
+ 825,
1281
+ 422
1282
+ ],
1283
+ "page_idx": 11
1284
+ },
1285
+ {
1286
+ "type": "text",
1287
+ "text": "4. For a one point space $P , H _ { i } ( P ) = 0$ for all $i \\neq 0$ . ",
1288
+ "bbox": [
1289
+ 210,
1290
+ 434,
1291
+ 560,
1292
+ 450
1293
+ ],
1294
+ "page_idx": 11
1295
+ },
1296
+ {
1297
+ "type": "text",
1298
+ "text": "5. For a topological sum $X = + _ { \\alpha } X _ { \\alpha }$ the homomorphism ",
1299
+ "bbox": [
1300
+ 210,
1301
+ 462,
1302
+ 594,
1303
+ 478
1304
+ ],
1305
+ "page_idx": 11
1306
+ },
1307
+ {
1308
+ "type": "equation",
1309
+ "img_path": "images/d664804d511749c5e49b13f5d8eb1f80187d02b6ea58fd095b33ad6e50241d00.jpg",
1310
+ "text": "$$\n\\bigoplus ( i _ { \\alpha } ) _ { * } : \\bigoplus H _ { n } ( X _ { \\alpha } ) \\to H _ { n } ( X )\n$$",
1311
+ "text_format": "latex",
1312
+ "bbox": [
1313
+ 408,
1314
+ 493,
1315
+ 647,
1316
+ 517
1317
+ ],
1318
+ "page_idx": 11
1319
+ },
1320
+ {
1321
+ "type": "text",
1322
+ "text": "is an isomorphism, where $i _ { \\alpha } : X _ { \\alpha } \\to X$ is the inclusion. ",
1323
+ "bbox": [
1324
+ 230,
1325
+ 532,
1326
+ 604,
1327
+ 547
1328
+ ],
1329
+ "page_idx": 11
1330
+ },
1331
+ {
1332
+ "type": "text",
1333
+ "text": "For related definitions and requisite notions we refer the reader to Bredon (2013). ",
1334
+ "bbox": [
1335
+ 173,
1336
+ 563,
1337
+ 705,
1338
+ 578
1339
+ ],
1340
+ "page_idx": 11
1341
+ },
1342
+ {
1343
+ "type": "text",
1344
+ "text": "A.2 PROOF OF THEOREM 3.1 ",
1345
+ "text_level": 1,
1346
+ "bbox": [
1347
+ 176,
1348
+ 604,
1349
+ 388,
1350
+ 619
1351
+ ],
1352
+ "page_idx": 11
1353
+ },
1354
+ {
1355
+ "type": "text",
1356
+ "text": "Theorem A.2. Let $X$ be a topological space and $X ^ { + }$ be some open subspace. If ${ \\mathcal { F } } \\subset 2 ^ { X }$ such that $f \\in { \\mathcal { F } }$ implies $H _ { S } ( f ) \\neq H ( \\bar { X } ^ { + } )$ , then for all $f \\in { \\mathcal { F } }$ there exists $A \\subset X$ so that $f ( A \\cap X ^ { + } ) = \\{ 0 \\}$ and $f ( A \\cap ( X \\setminus X ^ { + } ) ) = \\{ 1 \\}$ . ",
1357
+ "bbox": [
1358
+ 173,
1359
+ 635,
1360
+ 825,
1361
+ 679
1362
+ ],
1363
+ "page_idx": 11
1364
+ },
1365
+ {
1366
+ "type": "text",
1367
+ "text": "Proof. Suppose the for the sake of contraiction that for all $f \\in { \\mathcal { F } }$ , $H _ { S } ( f ) \\ne H ( X ^ { + } )$ and yet there exists an $f$ such that for all $A \\subset X$ , there exists an $x \\in A$ such that $f ( x ) = 1$ . Then take $\\mathcal { A } = \\{ x \\} _ { x \\in X }$ , and note that $f$ maps each singleton into its proper partition on $X$ . We have that for any open subset of $V \\subset X ^ { + }$ , $f ( \\bar { V } ) = \\{ 1 \\}$ , and for any closed subset $W \\subset X \\setminus X ^ { + }$ , $f ( W ) = \\{ 0 \\}$ . Therefore X+ = SA∈τX+∩X $X ^ { + } = \\textstyle \\bigcup _ { A \\in \\tau _ { X ^ { + } \\cap X } } A \\subset s u p p ( f )$ as the subspace topology $\\tau _ { X ^ { + } \\cap X } = \\tau _ { X ^ { + } } \\cap \\tau _ { X }$ where $\\tau _ { X ^ { + } } = \\{ A \\in \\tau _ { X } | A \\subset { \\dot { X } } ^ { + } \\}$ and $\\tau _ { X }$ denotes the topology of $X$ . Likewise, $i n t ( X ^ { - } ) \\subset X \\backslash s u p p ( F )$ under the same logic. Therefore $s u p p ( f )$ has the exact same topology as $X ^ { + }$ and so by Theorem 2.2 $H ( X ^ { + } ) = H ( s u \\bar { p } p ( f ) )$ but this is a contradiction. This completes the proof. □ ",
1368
+ "bbox": [
1369
+ 173,
1370
+ 722,
1371
+ 826,
1372
+ 839
1373
+ ],
1374
+ "page_idx": 11
1375
+ },
1376
+ {
1377
+ "type": "text",
1378
+ "text": "A.3 THE NEURAL HOMOLOGY PRINCIPLE ",
1379
+ "text_level": 1,
1380
+ "bbox": [
1381
+ 174,
1382
+ 864,
1383
+ 480,
1384
+ 880
1385
+ ],
1386
+ "page_idx": 11
1387
+ },
1388
+ {
1389
+ "type": "text",
1390
+ "text": "Conjecture A.3. If $N$ is some neural network with $\\ell$ layers and $h$ hidden units, and $H _ { S } ( N ) \\neq$ $H ( X ^ { + } )$ then $\\mathbb { E } [ L ( \\mathrm { \\bar { N } } , \\mathcal { D } ) ] > c$ for some fixed $c ( \\ell , h ) > 0$ . ",
1391
+ "bbox": [
1392
+ 173,
1393
+ 895,
1394
+ 823,
1395
+ 924
1396
+ ],
1397
+ "page_idx": 11
1398
+ },
1399
+ {
1400
+ "type": "image",
1401
+ "img_path": "images/77273b4d16c2680ef1cc2134a32082dcba78d3d14d189be37b108b3e092f2d46.jpg",
1402
+ "image_caption": [
1403
+ "Figure 8: Topological phase transitions for datasets with $\\beta ( \\mathcal { D } ) \\in \\{ ( 2 , 0 ) , ( 2 , 1 ) , ( 3 , 0 ) , ( 3 , 1 ) \\}$ "
1404
+ ],
1405
+ "image_footnote": [],
1406
+ "bbox": [
1407
+ 178,
1408
+ 156,
1409
+ 818,
1410
+ 502
1411
+ ],
1412
+ "page_idx": 12
1413
+ },
1414
+ {
1415
+ "type": "image",
1416
+ "img_path": "images/e27383b283d68b6c0607704c6df459226986a6e81af9c11222a9210c8e749b94.jpg",
1417
+ "image_caption": [
1418
+ "Figure 9: Topological phase transitions for datasets with $\\beta ( \\mathcal { D } ) \\in \\{ ( 3 , 2 ) , ( 4 , 0 ) , ( 4 , 1 ) , ( 4 , 2 ) \\}$ "
1419
+ ],
1420
+ "image_footnote": [],
1421
+ "bbox": [
1422
+ 178,
1423
+ 563,
1424
+ 816,
1425
+ 909
1426
+ ],
1427
+ "page_idx": 12
1428
+ },
1429
+ {
1430
+ "type": "image",
1431
+ "img_path": "images/7ea7091547b0d613980c98d1bc1a7e62068f7eb5fbe42da2343373e874b7ac9d.jpg",
1432
+ "image_caption": [
1433
+ "Figure 10: Topological phase transitions for datasets with $\\beta ( \\mathcal { D } ) \\in \\{ ( 4 , 3 ) , ( 5 , 0 ) \\}$ "
1434
+ ],
1435
+ "image_footnote": [],
1436
+ "bbox": [
1437
+ 179,
1438
+ 111,
1439
+ 816,
1440
+ 366
1441
+ ],
1442
+ "page_idx": 13
1443
+ },
1444
+ {
1445
+ "type": "text",
1446
+ "text": "C EXAMPLE TOPOLOGICAL STRATIFICATIONS ",
1447
+ "text_level": 1,
1448
+ "bbox": [
1449
+ 173,
1450
+ 429,
1451
+ 573,
1452
+ 445
1453
+ ],
1454
+ "page_idx": 13
1455
+ },
1456
+ {
1457
+ "type": "image",
1458
+ "img_path": "images/8a2ae195ba397629afe30da13627f735fddf56b3439dbaa5fca35732f4717701.jpg",
1459
+ "image_caption": [
1460
+ "Figure 11: Topological stratification for $\\{ h _ { 3 } , . . . , h _ { 1 5 } \\}$ on a random dataset $\\mathcal { D }$ with $\\beta _ { 0 } ( \\mathcal { D } ) = 2 5$ , $\\beta _ { 1 } ( \\mathcal { D } ) = 1 6$ . "
1461
+ ],
1462
+ "image_footnote": [],
1463
+ "bbox": [
1464
+ 227,
1465
+ 473,
1466
+ 772,
1467
+ 628
1468
+ ],
1469
+ "page_idx": 13
1470
+ },
1471
+ {
1472
+ "type": "image",
1473
+ "img_path": "images/75ed16e4c46d1ef4418f9175de2547afc1090f8f9612b1bc15e53dbf6e7aa384.jpg",
1474
+ "image_caption": [
1475
+ "Figure 12: Topological stratification for $\\{ h _ { 1 } , \\ldots , h _ { 5 } \\}$ on a random dataset $\\mathcal { D }$ with $\\beta _ { 0 } ( \\mathcal { D } ) = 3$ , $\\beta _ { 1 } \\mathsf { \\bar { ( } } D ) = 0$ . "
1476
+ ],
1477
+ "image_footnote": [],
1478
+ "bbox": [
1479
+ 225,
1480
+ 714,
1481
+ 774,
1482
+ 872
1483
+ ],
1484
+ "page_idx": 13
1485
+ },
1486
+ {
1487
+ "type": "image",
1488
+ "img_path": "images/4ff6976e387af4a2dd76433cd7b86100763aeac8828b4749dbf98cef8c31501f.jpg",
1489
+ "image_caption": [
1490
+ "Figure 13: Topological stratification for $\\{ h _ { 3 } , \\ldots , h _ { 7 } \\}$ on a random dataset $\\mathcal { D }$ with $\\beta _ { 0 } ( \\mathcal { D } ) = 3$ , $\\beta _ { 1 } ( \\mathcal { D } ) = 0$ . "
1491
+ ],
1492
+ "image_footnote": [],
1493
+ "bbox": [
1494
+ 225,
1495
+ 102,
1496
+ 774,
1497
+ 258
1498
+ ],
1499
+ "page_idx": 14
1500
+ },
1501
+ {
1502
+ "type": "text",
1503
+ "text": "D ADDITIONAL TOPOLOGY OF REAL DATA ",
1504
+ "bbox": [
1505
+ 173,
1506
+ 310,
1507
+ 549,
1508
+ 327
1509
+ ],
1510
+ "page_idx": 14
1511
+ },
1512
+ {
1513
+ "type": "image",
1514
+ "img_path": "images/1ecf1eca77077c1a6148f2224eda13a3d65cf665230e2c3dde6515a73b7b7e6b.jpg",
1515
+ "image_caption": [
1516
+ "Figure 14: The persistence diagrams of other data. "
1517
+ ],
1518
+ "image_footnote": [],
1519
+ "bbox": [
1520
+ 178,
1521
+ 347,
1522
+ 820,
1523
+ 568
1524
+ ],
1525
+ "page_idx": 14
1526
+ },
1527
+ {
1528
+ "type": "image",
1529
+ "img_path": "images/81b346f8954e4988c73cd34fff398e0ddeef9837b79107fd94f7fba420f7ed86.jpg",
1530
+ "image_caption": [],
1531
+ "image_footnote": [],
1532
+ "bbox": [
1533
+ 202,
1534
+ 604,
1535
+ 794,
1536
+ 915
1537
+ ],
1538
+ "page_idx": 14
1539
+ }
1540
+ ]
parse/train/H11lAfbCW/H11lAfbCW_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H11lAfbCW/H11lAfbCW_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkgTkhRcKQ/HkgTkhRcKQ.md ADDED
@@ -0,0 +1,742 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ADASHIFT: DECORRELATION AND CONVERGENCE OF ADAPTIVE LEARNING RATE METHODS
2
+
3
+ Zhiming Zhou∗†, Qingru Zhang∗‡, Guansong Lu, Hongwei Wang, Weinan Zhang, Yong Yu
4
+ Shanghai Jiao Tong University
5
+ †heyohai@apex.sjtu.edu.cn,‡neverquit@sjtu.edu.cn
6
+
7
+ # ABSTRACT
8
+
9
+ Adam is shown not being able to converge to the optimal solution in certain cases. Researchers recently propose several algorithms to avoid the issue of nonconvergence of Adam, but their efficiency turns out to be unsatisfactory in practice. In this paper, we provide a new insight into the non-convergence issue of Adam as well as other adaptive learning rate methods. We argue that there exists an inappropriate correlation between gradient $g _ { t }$ and the second moment term $v _ { t }$ in Adam $t$ is the timestep), which results in that a large gradient is likely to have small step size while a small gradient may have a large step size. We demonstrate that such unbalanced step sizes are the fundamental cause of non-convergence of Adam, and we further prove that decorrelating $v _ { t }$ and $g _ { t }$ will lead to unbiased step size for each gradient, thus solving the non-convergence problem of Adam. Finally, we propose AdaShift, a novel adaptive learning rate method that decorrelates $v _ { t }$ and $g _ { t }$ by temporal shifting, i.e., using temporally shifted gradient $g _ { t - n }$ to calculate $v _ { t }$ . The experiment results demonstrate that AdaShift is able to address the non-convergence issue of Adam, while still maintaining a competitive performance with Adam in terms of both training speed and generalization.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ First-order optimization algorithms with adaptive learning rate play an important role in deep learning due to their efficiency in solving large-scale optimization problems. Denote $g _ { t } \in \mathbb { R } ^ { n }$ as the gradient of loss function $f$ with respect to its parameters $\boldsymbol \theta \in \mathbb { R } ^ { n }$ at timestep $t$ , then the general updating rule of these algorithms can be written as follows (Reddi et al., 2018):
14
+
15
+ $$
16
+ \theta _ { t + 1 } = \theta _ { t } - { \frac { \alpha _ { t } } { \sqrt { v _ { t } } } } m _ { t } .
17
+ $$
18
+
19
+ In the above equation, $m _ { t } \triangleq \phi ( g _ { 1 } , \ldots , g _ { t } ) \in \mathbb { R } ^ { n }$ is a function of the historical gradients; $v _ { t } \ { \stackrel { \triangle } { = } }$ $\psi ( g _ { 1 } , \ldots , g _ { t } ) \in \mathbb { R } _ { + } ^ { n }$ is an $n$ -dimension vector with non-negative elements, which adapts the learning rate for the $n$ elements in $g _ { t }$ respectively; $\alpha _ { t }$ is the base learning rate; and √αtv is the adaptive step size for $m _ { t }$ .
20
+
21
+ One common choice of $\phi ( g _ { 1 } , \ldots , g _ { t } )$ is the exponential moving average of the gradients used in Momentum (Qian, 1999) and Adam (Kingma & Ba, 2014), which helps alleviate gradient oscillations. The commonly-used $\psi ( g _ { 1 } , \dots , g _ { t } )$ in deep learning community is the exponential moving average of squared gradients, such as Adadelta (Zeiler, 2012), RMSProp (Tieleman & Hinton, 2012), Adam (Kingma & Ba, 2014) and Nadam (Dozat, 2016).
22
+
23
+ Adam (Kingma & Ba, 2014) is a typical adaptive learning rate method, which assembles the idea of using exponential moving average of first and second moments and bias correction. In general, Adam is robust and efficient in both dense and sparse gradient cases, and is popular in deep learning research. However, Adam is shown not being able to converge to optimal solution in certain cases. Reddi et al. (2018) point out that the key issue in the convergence proof of Adam lies in the quantity
24
+
25
+ $$
26
+ \Gamma _ { t } \triangleq \bigg ( \frac { \sqrt { v _ { t } } } { \alpha _ { t } } - \frac { \sqrt { v _ { t - 1 } } } { \alpha _ { t - 1 } } \bigg ) ,
27
+ $$
28
+
29
+ which is assumed to be positive, but unfortunately, such an assumption does not always hold in Adam. They provide a set of counterexamples and demonstrate that the violation of positiveness of $\Gamma _ { t }$ will lead to undesirable convergence behavior in Adam.
30
+
31
+ Reddi et al. (2018) then propose two variants, AMSGrad and AdamNC, to address the issue by keeping $\Gamma _ { t }$ positive. Specifically, AMSGrad defines $\hat { v _ { t } }$ as the historical maximum of $v _ { t }$ , i.e., $\hat { v _ { t } } =$ max $\{ v _ { i } \} _ { i = 1 } ^ { t }$ , and replaces $v _ { t }$ with $\hat { v _ { t } }$ to keep $v _ { t }$ non-decreasing and therefore forces $\Gamma _ { t }$ to be positive; while AdamNC forces $v _ { t }$ to have “long-term memory” of past gradients and calculates $v _ { t }$ as their average to make it stable. Though these two algorithms solve the non-convergence problem of Adam to a certain extent, they turn out to be inefficient in practice: they have to maintain a very large $v _ { t }$ once a large gradient appears, and a large $v _ { t }$ decreases the adaptive learning rate $\frac { \alpha _ { t } } { \sqrt { v _ { t } } }$ and slows down the training process.
32
+
33
+ In this paper, we provide a new insight into adaptive learning rate methods, which brings a new perspective on solving the non-convergence issue of Adam. Specifically, in Section 3, we study the counterexamples provided by Reddi et al. (2018) via analyzing the accumulated step size of each gradient $g _ { t }$ . We observe that in the common adaptive learning rate methods, a large gradient tends to have a relatively small step size, while a small gradient is likely to have a relatively large step size. We show that the unbalanced step sizes stem from the inappropriate positive correlation between $v _ { t }$ and $g _ { t }$ , and we argue that this is the fundamental cause of the non-convergence issue of Adam.
34
+
35
+ In Section 4, we further prove that decorrelating $v _ { t }$ and $g _ { t }$ leads to equal and unbiased expected step size for each gradient, thus solving the non-convergence issue of Adam. We subsequently propose AdaShift, a decorrelated variant of adaptive learning rate methods, which achieves decorrelation between $v _ { t }$ and $g _ { t }$ by calculating $v _ { t }$ using temporally shifted gradients. Finally, in Section 5, we study the performance of our proposed AdaShift, and demonstrate that it solves the non-convergence issue of Adam, while still maintaining a decent performance compared with Adam in terms of both training speed and generalization.
36
+
37
+ # 2 PRELIMINARIES
38
+
39
+ Adam. In Adam, $m _ { t }$ and $v _ { t }$ are defined as the exponential moving average of $g _ { t }$ and $g _ { t } ^ { 2 }$
40
+
41
+ $$
42
+ m _ { t } = \beta _ { 1 } m _ { t - 1 } + ( 1 - \beta _ { 1 } ) g _ { t } { \mathrm { a n d } } v _ { t } = \beta _ { 2 } v _ { t - 1 } + ( 1 - \beta _ { 2 } ) g _ { t } ^ { 2 } ,
43
+ $$
44
+
45
+ where $\beta _ { 1 } \in [ 0 , 1 )$ and $\beta _ { 2 } \in [ 0 , 1 )$ are the exponential decay rates for $m _ { t }$ and $v _ { t }$ , respectively, with $m _ { 0 } = 0$ and $v _ { 0 } = 0$ . They can also be written as:
46
+
47
+ $$
48
+ m _ { t } = ( 1 - \beta _ { 1 } ) \sum _ { i = 1 } ^ { t } \beta _ { 1 } ^ { t - i } g _ { i } \mathrm { a n d } v _ { t } = ( 1 - \beta _ { 2 } ) \sum _ { i = 1 } ^ { t } \beta _ { 2 } ^ { t - i } g _ { i } ^ { 2 } .
49
+ $$
50
+
51
+ To avoid the bias in the estimation of the expected value at the initial timesteps, Kingma & Ba (2014) propose to apply bias correction to $m _ { t }$ and $v _ { t }$ . Using $m _ { t }$ as instance, it works as follows:
52
+
53
+ $$
54
+ m _ { t } = \frac { ( 1 - \beta _ { 1 } ) \sum _ { i = 1 } ^ { t } \beta _ { 1 } ^ { t - i } g _ { i } } { ( 1 - \beta _ { 1 } ) \sum _ { i = 1 } ^ { t } \beta _ { 1 } ^ { t - i } } = \frac { \sum _ { i = 1 } ^ { t } \beta _ { 1 } ^ { t - i } g _ { i } } { \sum _ { i = 1 } ^ { t } \beta _ { 1 } ^ { t - i } } = \frac { ( 1 - \beta _ { 1 } ) \sum _ { i = 1 } ^ { t } \beta _ { 1 } ^ { t - i } g _ { i } } { 1 - \beta _ { 1 } ^ { t } } .
55
+ $$
56
+
57
+ Online optimization problem. An online optimization problem consists of a sequence of cost functions ${ \bf \bar { \phi } } _ { f _ { 1 } ( \theta ) , \dots , f _ { t } ( \theta ) , . . . , f _ { T } ( \theta ) }$ , where the optimizer predicts the parameter $\theta _ { t }$ at each timestep $t$ and evaluate it on an unknown cost function $f _ { t } ( \theta )$ . The performance of the optimizer is usually evaluated by regreonline prediction $\begin{array} { r } { R ( T ) \stackrel { \Delta } { = } \sum _ { t = 1 } ^ { T } [ f _ { t } ( \theta _ { t } ) - f _ { t } ( \theta ^ { * } ) ] } \end{array}$ , which is the sum oarameter prediction fference between thefor all the previous $f _ { t } ( \theta _ { t } )$ $f _ { t } ( \theta ^ { * } )$ steps, where $\begin{array} { r } { \theta ^ { * } = \arg \operatorname* { m i n } _ { \theta \in \vartheta } \sum _ { t = 1 } ^ { T } f _ { t } ( \theta ) } \end{array}$ is the best fixed-point parameter from a feasible set $\vartheta$ .
58
+
59
+ Counterexamples. Reddi et al. (2018) highlight that for any fixed $\beta _ { 1 }$ and $\beta _ { 2 }$ , there exists an online optimization problem where Adam has non-zero average regret, i.e., Adam does not converge to optimal solution . The counterexamples in the sequential version are given as follows:
60
+
61
+ $$
62
+ f _ { t } ( \theta ) = { \left\{ \begin{array} { l l } { C \theta , } & { { \mathrm { i f ~ t ~ m o d ~ } } d = 1 ; } \\ { - \theta , } & { { \mathrm { o t h e r w i s e } } , } \end{array} \right. }
63
+ $$
64
+
65
+ where $C$ is a relatively large constant and $d$ is the length of an epoch. In Equation 6, most gradients of $f _ { t } ( \theta )$ with respect to $\theta$ are $- 1$ , but the large positive gradient $C$ at the beginning of each epoch makes the overall gradient of each epoch positive, which means that one should decrease $\theta _ { t }$ to minimize the loss. However, according to (Reddi et al., 2018), the accumulated update of $\theta$ in Adam under some circumstance is opposite (i.e., $\theta _ { t }$ is increased), thus Adam cannot converge in such case. Reddi et al. (2018) argue that the reason of the non-convergence of Adam lies in that the positive assumption of $\Gamma _ { t } \triangleq ( \sqrt { v _ { t } } / \alpha _ { t } - \sqrt { v _ { t - 1 } } / \alpha _ { t - 1 } )$ does not always hold in Adam.
66
+
67
+ The counterexamples are also extended to stochastic cases in (Reddi et al., 2018), where a finite set of cost functions appear in a stochastic order. Compared with sequential online optimization counterexample, the stochastic version is more general and closer to the practical situation. For the simplest one dimensional case, at each timestep $t$ , the function $f _ { t } ( \theta )$ is chosen as i.i.d.:
68
+
69
+ $$
70
+ \begin{array} { r } { f _ { t } ( \theta ) = \left\{ \begin{array} { l l } { C \theta , } & { \mathrm { w i t h } \mathrm { p r o b a b i l i t y } p = \frac { 1 + \delta } { C + 1 } ; } \\ { - \theta , } & { \mathrm { w i t h } \mathrm { p r o b a b i l i t y } 1 - p = \frac { C - \delta } { C + 1 } , } \end{array} \right. } \end{array}
71
+ $$
72
+
73
+ where $\delta$ is a small positive constant that is smaller than $C$ . The expected cost function of the above problem is $\begin{array} { r } { F ( \theta ) \stackrel { \bullet } { = } \frac { 1 + \delta } { C + 1 } C \theta - \frac { C - \delta } { C + 1 } \theta = \delta \theta } \end{array}$ C−δC+1 θ = δθ, therefore, one should decrease θ to minimize the loss. Reddi et al. (2018) prove that when $C$ is large enough, the expectation of accumulated parameter update in Adam is positive and results in increasing $\theta$ .
74
+
75
+ Basic Solutions Reddi et al. (2018) propose maintaining the strict positiveness of $\Gamma _ { t }$ as solution, for example, keeping $v _ { t }$ non-decreasing or using increasing $\beta _ { 2 }$ . In fact, keeping $\Gamma _ { t }$ positive is not the only way to guarantee the convergence of Adam. Another important observation is that for any fixed sequential online optimization problem with infinitely repeating epochs (e.g., Equation 6), Adam will converge as long as $\beta _ { 1 }$ is large enough. Formally, we have the following theorem:
76
+
77
+ Theorem 1 (The influence of $\beta _ { 1 }$ ). For any fixed sequential online convex optimization problem with infinitely repeating of finite length epochs ( $d$ is the length of an epoch), if $\exists G \in \mathbb { R }$ such that $\| \nabla f _ { t } ( \theta ) \| _ { \infty } \leq G$ and $\exists T \in \mathbb { N } , \exists \epsilon _ { 2 } > \epsilon _ { 1 } > 0$ such that $\begin{array} { r } { \epsilon _ { 1 } < \bar { \phi } _ { t } \bar { G } ^ { 2 } < \bar { \epsilon } _ { 2 } } \end{array}$ holds for all $t > T$ , then, for any fixed $\beta _ { 2 } \in [ 0 , 1 )$ , there exists a $\beta _ { 1 } \in [ 0 , 1 )$ such that Adam has average regret $\leq \epsilon _ { 2 }$ ;
78
+
79
+ The intuition behind Theorem 1 is that, if $\beta _ { 1 } 1$ , then $\begin{array} { r } { m _ { t } \sum _ { i = 1 } ^ { d } g _ { i } / d } \end{array}$ , i.e., $m _ { t }$ approaches the average gradient of an epoch, according to Equation 5. Therefore, no matter what the adaptive learning rate $\alpha _ { t } / \sqrt { v _ { t } }$ is, Adam will always converge along the correct direction.
80
+
81
+ # 3 THE CAUSE OF NON-CONVERGENCE: UNBALANCED STEP SIZE
82
+
83
+ In this section, we study the non-convergence issue by analyzing the counterexamples provided by Reddi et al. (2018). We show that the fundamental problem of common adaptive learning rate methods is that: √ $v _ { t }$ is positively correlated to the scale of gradient $g _ { t }$ , which results in a small step size $\alpha _ { t } / \sqrt { v _ { t } }$ for a large gradient, and a large step size for a small gradient. We argue that such an unbalanced step size is the cause of non-convergence.
84
+
85
+ We will first define net update factor for the analysis of the accumulated influence of each gradient $g _ { t }$ , then apply the net update factor to study the behaviors of Adam using Equation 6 as an example. The argument will be extended to the stochastic online optimization problem and general cases.
86
+
87
+ # 3.1 NET UPDATE FACTOR
88
+
89
+ When $\beta _ { 1 } \neq 0$ , due to the exponential moving effect of $m _ { t }$ , the influence of $g _ { t }$ exists in all of its following timesteps. For timestep $i$ $( i \geq t )$ , the weight of $g _ { t }$ is $( 1 - \beta _ { 1 } ) \beta _ { 1 } ^ { i - t }$ . We accordingly define a new tool for our analysis: the net update $n e t ( g _ { t } )$ of each gradient $g _ { t }$ , which is its accumulated influence on the entire optimization process:
90
+
91
+ $$
92
+ n e t ( g _ { t } ) \triangleq \sum _ { i = t } ^ { \infty } \frac { \alpha _ { i } } { \sqrt { v _ { i } } } [ ( 1 - \beta _ { 1 } ) \beta _ { 1 } ^ { i - t } g _ { t } ] = k ( g _ { t } ) \cdot g _ { t } , \mathrm { ~ w h e r e ~ } k ( g _ { t } ) = \sum _ { i = t } ^ { \infty } \frac { \alpha _ { i } } { \sqrt { v _ { i } } } ( 1 - \beta _ { 1 } ) \beta _ { 1 } ^ { i - t } ,
93
+ $$
94
+
95
+ and we call $k ( g _ { t } )$ the net update factor of $g _ { t }$ , which is the equivalent accumulated step size for gradient $g _ { t }$ . Note that $k ( g _ { t } )$ depends on $\{ v _ { i } \} _ { i = t } ^ { \infty }$ , and in Adam, if $\beta _ { 1 } \neq 0$ , then all elements in $\bar { \{ } v _ { i } \} _ { i = t } ^ { \infty }$ are related to $g _ { t }$ . Therefore, $k ( g _ { t } )$ is a function of $g _ { t }$ .
96
+
97
+ It is worth noticing that in Momentum method, $v _ { t }$ is equivalently set as 1. Therefore, we have $k ( g _ { t } ) = \alpha _ { t }$ and $n e t ( g _ { t } ) = \alpha _ { t } g _ { t }$ , which means that the accumulated influence of each gradient $g _ { t }$ in Momentum is the same as vanilla SGD (Stochastic Gradient Decent). Hence, the convergence of Momentum is similar to vanilla SGD. However, in adaptive learning rate methods, $v _ { t }$ is function over the past gradients, which makes its convergence nontrivial.
98
+
99
+ # 3.2 ANALYSIS ON ONLINE OPTIMIZATION COUNTEREXAMPLES
100
+
101
+ Note that $v _ { t }$ exists in the definition of net update factor (Equation 8). Before further analyzing the convergence of Adam using the net update factor, we first study the pattern of $v _ { t }$ in the sequential online optimization problem in Equation 6. Since Equation 6 is deterministic, we can derive the formula of $v _ { t }$ as follows:
102
+
103
+ Lemma 2. In the sequential online optimization problem in Equation 6, denote $\beta _ { 1 } , \beta _ { 2 } \in [ 0 , 1 )$ as the decay rates, $d \in \mathbb { N }$ as the length of an epoch, $n \in \mathbb { N }$ as the index of epoch, and $i \in \{ 1 , 2 , . . . , d \}$ as the index of timestep in one epoch. Then the limit of $v _ { n d + i }$ when $n \to \infty$ is:
104
+
105
+ $$
106
+ \operatorname * { l i m } _ { n \infty } v _ { n d + i } = \frac { 1 - \beta _ { 2 } } { 1 - \beta _ { 2 } ^ { d } } ( C ^ { 2 } - 1 ) \beta _ { 2 } ^ { i - 1 } + 1 .
107
+ $$
108
+
109
+ Given the formula of $v _ { t }$ in Equation 9, we now study the net update factor of each gradient. We start with a simple case where $\beta _ { 1 } = 0$ . In this case we have
110
+
111
+ $$
112
+ \operatorname* { l i m } _ { n \to \infty } k ( g _ { n d + i } ) = \operatorname* { l i m } _ { n \to \infty } \frac { \alpha _ { t } } { \sqrt { v _ { n d + i } } } .
113
+ $$
114
+
115
+ Since the limit of $v _ { n d + i }$ in each epoch monotonically decreases with the increase of index $i$ according to Equation 9, the limit of $k ( g _ { n d + i } )$ monotonically increases in each epoch. Specifically, the first gradient $g _ { n d + 1 } = C$ in epoch $n$ represents the correct updating direction, but its influence is the smallest in this epoch. In contrast, the net update factor of the subsequent gradients $- 1$ are relatively larger, though they indicate a wrong updating direction.
116
+
117
+ We further consider the general case where $\beta _ { 1 } \neq 0$ . The result is presented in the following lemma:
118
+
119
+ Lemma 3. In the sequential online optimization problem in Equation 6, when $n \to \infty$ , the limit of net update factor $k ( g _ { n d + i } )$ of epoch $n$ satisfies: $\exists 1 \leq j \leq d$ such that
120
+
121
+ $$
122
+ \operatorname* { l i m } _ { n \to \infty } k ( C ) = \operatorname* { l i m } _ { n \to \infty } k ( g _ { n d + 1 } ) < \operatorname* { l i m } _ { n \to \infty } k ( g _ { n d + 2 } ) < \cdots < \operatorname* { l i m } _ { n \to \infty } k ( g _ { n d + j } ) ,
123
+ $$
124
+
125
+ and
126
+
127
+ $$
128
+ \operatorname* { l i m } _ { n \to \infty } k ( g _ { n d + j } ) > \operatorname* { l i m } _ { n \to \infty } k ( g _ { n d + j + 1 } ) > \cdots > \operatorname* { l i m } _ { n \to \infty } k ( g _ { n d + d + 1 } ) = \operatorname* { l i m } _ { n \to \infty } k ( C ) ,
129
+ $$
130
+
131
+ where $k ( C )$ denotes the net update factor for gradient $g _ { i } = C$ .
132
+
133
+ Lemma 3 tells us that, in sequential online optimization problem in Equation 6, the net update factors are unbalanced. Specifically, the net update factor for the large gradient $C$ is the smallest in the entire epoch, while all gradients $- 1$ have larger net update factors. Such unbalanced net update factors will possibly lead Adam to a wrong accumulated update direction.
134
+
135
+ Similar conclusion also holds in the stochastic online optimization problem in Equation 7. We derive the expectation of the net update factor for each gradient in the following lemma:
136
+
137
+ Lemma 4. In the stochastic online optimization problem in Equation 7, assuming $\alpha _ { t } = 1$ , it holds that $k ( C ) < k ( - 1 )$ , where $k ( C )$ denote the expectation net update factor for $g _ { i } = C$ and $k ( - 1 )$ denote the expectation net update factor for $g _ { i } = - 1$ .
138
+
139
+ Though the formulas of net update factors in the stochastic case are more complicated than those in deterministic case, the analysis is actually more easier: the gradients with the same scale share the same expected net update factor, so we only need to analyze $k ( C )$ and $k ( - 1 )$ . From Lemma 4, we can see that in terms of the expectation net update factor, $k ( C )$ is smaller than $k ( - 1 )$ , which means the accumulated influence of gradient $C$ is smaller than gradient $- 1$ .
140
+
141
+ # 3.3 ANALYSIS ON NON-CONVERGENCE OF ADAM
142
+
143
+ As we have observed in the previous section, a common characteristic of these counterexamples is that the net update factor for the gradient with large magnitude is smaller than these with small magnitude. The above observation can also be interpreted as a direct consequence of inappropriate correlation between $v _ { t }$ and $g _ { t }$ . Recall that $v _ { t } = \beta _ { 2 } { v _ { t - 1 } } + ( 1 - \beta _ { 2 } ) g _ { t } ^ { 2 }$ . Assuming $v _ { t - 1 }$ is independent of $g _ { t }$ , then: when a new gradient $g _ { t }$ arrives, if $g _ { t }$ is large, $v _ { t }$ is likely to be larger; and if $g _ { t }$ is small, $v _ { t }$ is also likely to be smaller. If $\beta _ { 1 } = 0$ , then $k ( g _ { t } ) = \alpha _ { t } / \sqrt { v _ { t } }$ . As a result, a large gradient is likely to have a small net update factor, while a small gradient is likely to have a large net update factor in Adam.
144
+
145
+ When it comes to the scenario where $\beta _ { 1 } > 0$ , the arguments are actually quite similar. Given $v _ { t } =$ $\beta _ { 2 } v _ { t - 1 } + ( 1 - \beta _ { 2 } ) g _ { t } ^ { 2 }$ . Assuming $v _ { t - 1 }$ and $\{ g _ { t + i } \} _ { i = 1 } ^ { \infty }$ are independent from $g _ { t }$ , then: not only does $v _ { t }$ positively correlate with the magnitude of , but also the entire infinite sequence $\{ v _ { i } \} _ { i = t } ^ { \infty }$ positively correlates with the magnitude of $g _ { t }$ . Since the net update factor $\begin{array} { r } { k ( g _ { t } ) = \sum _ { i = t } ^ { \infty } \ \alpha _ { i } / \sqrt { v _ { i } } ( 1 - \beta _ { 1 } ) \beta _ { 1 } ^ { i - t } } \end{array}$ negatively correlates with each $v _ { i }$ in $\{ v _ { i } \} _ { i = t } ^ { \infty }$ , it is thus negatively correlated with the magnitude of $g _ { t }$ . That is, $k ( g _ { t } )$ for a large gradient is likely to be smaller, while $k ( g _ { t } )$ for a small gradient is likely to be larger.
146
+
147
+ The unbalanced net update factors cause the non-convergence problem of Adam as well as all other adaptive learning rate methods where $v _ { t }$ correlates with $g _ { t }$ . To construct a counterexample, the same pattern is that: the large gradient is along the “correct” direction, while the small gradient is along the opposite direction. Due to the fact that the accumulated influence of a large gradient is small while the accumulated influence of a small gradient is large, Adam may update parameters along the wrong direction.
148
+
149
+ Finally, we would like to emphasize that even if Adam updates parameters along the right direction in general, the unbalanced net update factors are still unfavorable since they slow down the convergence.
150
+
151
+ # 4 THE PROPOSED METHOD: DECORRELATION VIA TEMPORAL SHIFTING
152
+
153
+ According to the previous discussion, we conclude that the main cause of the non-convergence of Adam is the inappropriate correlation between $v _ { t }$ and $g _ { t }$ . Currently we have two possible solutions: (1) making $v _ { t }$ act like a constant, which declines the correlation, e.g., using a large $\beta _ { 2 }$ or keep $v _ { t }$ nondecreasing (Reddi et al., 2018); (2) using a large $\beta _ { 1 }$ (Theorem 1), where the aggressive momentum term helps to mitigate the impact of unbalanced net update factors. However, neither of them solves the problem fundamentally.
154
+
155
+ The dilemma caused by $v _ { t }$ enforces us to rethink its role. In adaptive learning rate methods, $v _ { t }$ plays the role of estimating the second moments of gradients, which reflects the scale of gradient on average. With the adaptive learning rate $\alpha _ { t } / \sqrt { v _ { t } }$ , the update step of $g _ { t }$ is scaled down by $\sqrt { v _ { t } }$ and achieves rescaling invariance with respect to the scale of $g _ { t }$ , which is practically useful to make the training process easy to control and the training system robust. However, the current scheme of $v _ { t }$ , i.e., $v _ { t } = \beta _ { 2 } v _ { t - 1 } + ( 1 - \beta _ { 2 } ) g _ { t } ^ { 2 }$ , brings a positive correlation between $v _ { t }$ and $g _ { t }$ , which results in reducing the effect of large gradients and increasing the effect of small gradients, and finally causes the non-convergence problem. Therefore, the key is to let $v _ { t }$ be a quantity that reflects the scale of the gradients, while at the same time, be decorrelated with current gradient $g _ { t }$ . Formally, we have the following theorem:
156
+
157
+ Theorem 5 (Decorrelation leads to convergence). For any fixed online optimization problem with infinitely repeating of a finite set of cost functions $\{ f _ { 1 } ( { \boldsymbol { \theta } } ) , \dots , f _ { t } ( { \boldsymbol { \theta } } ) , \dots { \bar { f } } _ { n } ( { \boldsymbol { \theta } } ) \}$ , assuming $\beta _ { 1 } = 0$ and $\alpha _ { t }$ is fixed, we have, if $v _ { t }$ follows a fixed distribution and is independent of the current gradient $g _ { t }$ , then the expected net update factor for each gradient is identical.
158
+
159
+ Let $P _ { v }$ denote the distribution of $v _ { t }$ . In the infinitely repeating online optimization scheme, the expectation of net update factor for each gradient $g _ { t }$ is
160
+
161
+ $$
162
+ \mathbb { E } [ k ( g _ { t } ) ] = \sum _ { i = t } ^ { \infty } \mathbb { E } _ { v _ { i } \sim P _ { v } } [ \frac { \alpha _ { i } } { \sqrt { v _ { i } } } ( 1 - \beta _ { 1 } ) \beta _ { 1 } ^ { i - t } ] .
163
+ $$
164
+
165
+ Given $P _ { v }$ is independent of $g _ { t }$ , the expectation of the net update factor $\mathbb { E } [ k ( g _ { t } ) ]$ is independent of $g _ { t }$ and remains the same for different gradients. With the expected net update factor being a fixed constant, the convergence of the adaptive learning rate method reduces to vanilla SGD.
166
+
167
+ Momentum (Qian, 1999) can be viewed as setting $v _ { t }$ as a constant, which makes $v _ { t }$ and $g _ { t }$ independent. Furthermore, in our view, using an increasing $\beta _ { 2 }$ (AdamNC) or keeping $\hat { v _ { t } }$ as the largest $v _ { t }$ (AMSGrad) is also to make $v _ { t }$ almost fixed. However, fixing $v _ { t }$ is not a desirable solution, because it damages the adaptability of Adam with respect to the adapting of step size.
168
+
169
+ We next introduce the proposed solution to make $v _ { t }$ independent of $g _ { t }$ , which is based on temporal independent assumption among gradients. We first introduce the idea of temporal decorrelation, then extend our solution to make use of the spatial information of gradients. Finally, we incorporate first moment estimation. The pseudo code of the proposed algorithm is presented as follows.
170
+
171
+ # Algorithm 1 AdaShift: Temporal Shifting with Block-wise Spatial Operation
172
+
173
+ Input: $n , \beta _ { 1 } , \beta _ { 2 } , \phi , \theta _ { 0 } , \{ f _ { t } ( \theta ) \} _ { t = 1 } ^ { T } , \{ \alpha _ { t } \} _ { t = 1 } ^ { T } , \{ g _ { - t } \} _ { t = 0 } ^ { n - 1 } ,$ ,
174
+ $v _ { 0 } = 0$
175
+ 2: for $t = 1$ to $T$ do
176
+ 3: $g _ { t } = \nabla f _ { t } ( \theta _ { t } )$
177
+ 4: $\begin{array} { r } { m _ { t } = \sum _ { i = 0 } ^ { n - 1 } \beta _ { 1 } ^ { i } g _ { t - i } / \sum _ { i = 0 } ^ { n - 1 } \beta _ { 1 } ^ { i } } \end{array}$
178
+ 5: for $i = 1$ to M do
179
+ 6: $v _ { t } [ i ] = \beta _ { 2 } v _ { t - 1 } [ i ] + ( 1 - \beta _ { 2 } ) \phi ( g _ { t - n } ^ { 2 } [ i ] )$
180
+ 7: $\theta _ { t } [ i ] = \theta _ { t - 1 } [ i ] - \alpha _ { t } / \sqrt { v _ { t } [ i ] } \cdot m _ { t } [ i$ ]
181
+ 8: end for
182
+ 9: end for
183
+ 10: // We ignore the bias-correction, epsilon and other misc for the sake of clarity
184
+
185
+ # 4.1 TEMPORAL DECORRELATION
186
+
187
+ In practical setting, $f _ { t } ( \theta )$ usually involves different mini-batches $x _ { t }$ , i.e., $f _ { t } ( \theta ) = f ( \theta ; x _ { t } )$ . Given the randomness of mini-batch, we assume that the mini-batch $x _ { t }$ is independent of each other and further assume that $f ( \theta ; x )$ keeps unchanged over time, then the gradient $g _ { t } = \nabla f ( \theta ; x _ { t } )$ of each mini-batch is independent of each other.
188
+
189
+ Therefore, we could change the update rule for $v _ { t }$ to involve $g _ { t - n }$ instead of $g _ { t }$ , which makes $v _ { t }$ and $g _ { t }$ temporally shifted and hence decorrelated:
190
+
191
+ $$
192
+ v _ { t } = \beta _ { 2 } v _ { t - 1 } + ( 1 - \beta _ { 2 } ) g _ { t - n } ^ { 2 } .
193
+ $$
194
+
195
+ Note that in the sequential online optimization problem, the assumption $^ { \bullet } g _ { t }$ is independent of each other” does not hold. However, in the stochastic online optimization problem and practical neural network settings, our assumption generally holds.
196
+
197
+ # 4.2 MAKING USE OF THE SPATIAL ELEMENTS OF PREVIOUS TIMESTEPS
198
+
199
+ Most optimization schemes involve a great many parameters. The dimension of $\theta$ is high, thus $g _ { t }$ and $v _ { t }$ are also of high dimension. However, $v _ { t }$ is element-wisely computed in Equation 14. Specifically, we only use the $i$ -th dimension of $g _ { t - n }$ to calculate the $i$ -th dimension of $v _ { t }$ . In other words, it only makes use of the independence between $g _ { t - n } [ i ]$ and $g _ { t } [ i ]$ , where $g _ { t } [ i ]$ denotes the $i$ -th element of $g _ { t }$ . Actually, in the case of high-dimensional $g _ { t }$ and $v _ { t }$ , we can further assume that all elements of gradient $g _ { t - n }$ at previous timesteps are independent with the $i$ -th dimension of $g _ { t }$ . Therefore, all elements in $g _ { t - n }$ can be used to compute $v _ { t }$ without introducing correlation. To this end, we propose introducing a function $\phi$ over all elements of $g _ { t - n } ^ { 2 }$ , i.e.,
200
+
201
+ $$
202
+ v _ { t } = \beta _ { 2 } v _ { t - 1 } + ( 1 - \beta _ { 2 } ) \phi ( g _ { t - n } ^ { 2 } ) .
203
+ $$
204
+
205
+ For easy reference, we name the elements of $g _ { t - n }$ other than $g _ { t - n } [ i ]$ as the spatial elements of $g _ { t - n }$ and name $\phi$ the spatial function or spatial operation. There is no restriction on the choice of $\phi$ , and we use $\phi ( x ) = \mathrm { m a x } _ { i } x [ i ]$ for most of our experiments, which is shown to be a good choice. The $\operatorname* { m a x } _ { i } x [ i ]$ operation has a side effect that turns the adaptive learning rate $v _ { t }$ into a shared scalar.
206
+
207
+ An important thing here is that, we no longer interpret $v _ { t }$ as the second moment of $g _ { t }$ . It is merely a random variable that is independent of $g _ { t }$ , while at the same time, reflects the overall gradient scale. We leave further investigations on $\phi$ as future work.
208
+
209
+ # 4.3 BLOCK-WISE ADAPTIVE LEARNING RATE SGD
210
+
211
+ In practical setting, e.g., deep neural network, $\theta$ usually consists of many parameter blocks, e.g., the weight and bias for each layer. In deep neural network, the gradient scales (i.e., the variance) for different layers tend to be different (Glorot & Bengio, 2010; He et al., 2015). Different gradient scales make it hard to find a learning rate that is suitable for all layers, when using SGD and Momentum methods. In traditional adaptive learning rate methods, they apply element-wise rescaling for each gradient dimension, which achieves rescaling-invariance and somehow solves the above problem. However, Adam sometimes does not generalize better than SGD (Wilson et al., 2017; Keskar & Socher, 2017), which might relate to the excessive learning rate adaptation in Adam.
212
+
213
+ In our temporal decorrelation with spatial operation scheme, we can solve the “different gradient scales” issue more naturally, by applying $\phi$ block-wisely and outputs a shared adaptive learning rate scalar $v _ { t } [ i ]$ for each block:
214
+
215
+ $$
216
+ v _ { t } [ i ] = \beta _ { 2 } v _ { t - 1 } [ i ] + ( 1 - \beta _ { 2 } ) \phi ( g _ { t - n } ^ { 2 } [ i ] ) .
217
+ $$
218
+
219
+ It makes the algorithm work like an adaptive learning rate SGD, where each block has an adaptive learning rate $\alpha _ { t } / \sqrt { v _ { t } [ i ] }$ while the relative gradient scale among in-block elements keep unchanged. As illustrated in Algorithm 1, the parameters $\theta _ { t }$ including the related $g _ { t }$ and $v _ { t }$ are divided into $M$ blocks. Every block contains the parameters of the same type or same layer in neural network.
220
+
221
+ # 4.4 INCORPORATING FIRST MOMENT ESTIMATION: MOVING AVERAGING WINDOWS
222
+
223
+ First moment estimation, i.e., defining $m _ { t }$ as a moving average of $g _ { t }$ , is an important technique of modern first order optimization algorithms, which alleviates mini-batch oscillations. In this section, we extend our algorithm to incorporate first moment estimation.
224
+
225
+ We have argued that $v _ { t }$ needs to be decorrelated with $g _ { t }$ . Analogously, when introducing the first moment estimation, we need to make $v _ { t }$ and $m _ { t }$ independent to make the expected net update factor unbiased. Based on our assumption of temporal independence, we further keep out the latest $n$ gradients $\{ g _ { t - i } \} _ { i = 0 } ^ { n - 1 }$ , and update $v _ { t }$ and $m _ { t }$ via
226
+
227
+ $$
228
+ v _ { t } = \beta _ { 2 } v _ { t - 1 } + ( 1 - \beta _ { 2 } ) \phi ( g _ { t - n } ^ { 2 } ) \mathrm { a n d } m _ { t } = \frac { \sum _ { i = 0 } ^ { n - 1 } \beta _ { 1 } ^ { i } g _ { t - i } } { \sum _ { i = 0 } ^ { n - 1 } \beta _ { 1 } ^ { i } } .
229
+ $$
230
+
231
+ In Equation 17, $\beta _ { 1 } \in [ 0 , 1 ]$ plays the role of decay rate for temporal elements. It can be viewed as a truncated version of exponential moving average that only applied to the latest few elements. Since we use truncating, it is feasible to use large $\beta _ { 1 }$ without taking the risk of using too old gradients. In the extreme case where $\beta _ { 1 } = 1$ , it becomes vanilla averaging.
232
+
233
+ The pseudo code of the algorithm that unifies all proposed techniques is presented in Algorithm 1 and a more detailed version can be found in the Appendix. It has the following parameters: spatial operation $\phi$ , $n \in \mathbb { N } ^ { + }$ , $\beta _ { 1 } \in [ 0 , 1 ]$ , $\beta _ { 2 } \in [ 0 , 1 )$ and $\alpha _ { t }$ .
234
+
235
+ Summary The key difference between Adam and the proposed method is that the latter temporally shifts the gradient $g _ { t }$ for $n$ -step, i.e., using $g _ { t - n }$ for calculating $v _ { t }$ and using the kept-out $n$ gradients to evaluate $m _ { t }$ (Equation 17), which makes $v _ { t }$ and $m _ { t }$ decorrelated and consequently solves the nonconvergence issue. In addition, based on our new perspective on adaptive learning rate methods, $v _ { t }$ is not necessarily the second moment and it is valid to further involve the calculation of $v _ { t }$ with the spatial elements of previous gradients. We thus proposed to introduce the spatial operation $\phi$ that outputs a shared scalar for each block. The resulting algorithm turns out to be closely related to SGD, where each block has an overall adaptive learning rate and the relative gradient scale in each block is maintained. We name the proposed method that makes use of temporal-shifting to decorrelated $v _ { t }$ and $m _ { t }$ AdaShift, which means “ADAptive learning rate method with temporal SHIFTing”.
236
+
237
+ # 5 EXPERIMENTS
238
+
239
+ In this section, we empirically study the proposed method and compare them with Adam, AMSGrad and SGD, on various tasks in terms of training performance and generalization. Without additional declaration, the reported result for each algorithm is the best we have found via parameter grid search. The anonymous code is provided at http://bit.ly/2NDXX6x.
240
+
241
+ # 5.1 ONLINE OPTIMIZATION COUNTEREXAMPLES
242
+
243
+ Firstly, we verify our analysis on the stochastic online optimization problem in Equation 7, where we set $C = 1 0 1$ and $\delta = 0 . 0 2$ . We compare Adam, AMSGrad and AdaShift in this experiment. For fair comparison, we set $\alpha = 0 . 0 0 1$ , $\beta _ { 1 } = 0$ and $\beta _ { 2 } = 0 . 9 9 9$ for all these methods. The results are shown in Figure 1a. We can see that Adam tends to increase $\theta$ , that is, the accumulate update of $\theta$ in Adam is along the wrong direction, while AMSGrad and AdaShift update $\theta$ in the correct direction. Furthermore, given the same learning rate, AdaShift decreases $\theta$ faster than AMSGrad, which validates our argument that AMSGrad has a relatively higher $v _ { t }$ that slows down the training.
244
+
245
+ In this experiment, we also verify Theorem 1. As shown in Figure 1b, Adam is also able to converge to the correct direction with a sufficiently large $\beta _ { 1 }$ and $\beta _ { 2 }$ . Note that (1) AdaShift still converges with the fastest speed; (2) a small $\beta _ { 1 }$ (e.g., $\beta _ { 1 } = 0 . 9$ , the light-blue line in Figure 1b) does not make Adam converge to the correct direction. We do not conduct the experiments on the sequential online optimization problem in Equation 6, because it does not fit our temporal independence assumption. To make it converge, one can use a large $\beta _ { 1 }$ or $\beta _ { 2 }$ , or set $v _ { t }$ as a constant.
246
+
247
+ ![](images/b67d5d57908700704c39f9f77b9ca18b3c4e531139cdd09843ed80f54b70e8b2.jpg)
248
+ Figure 1: Experiments on stochastic counterexample.
249
+
250
+ 5.2 LOGISTIC REGRESSION AND MULTILAYER PERCEPTRON ON MNIST
251
+
252
+ We further compare the proposed method with Adam, AMSGrad and SGD by using Logistic Regression and Multilayer Perceptron on MNIST, where the Multilayer Perceptron has two hidden layers and each has 256 hidden units with no internal activation. The results are shown in Figure 2 and Figure 3, respectively. We find that in Logistic Regression, these learning algorithms achieve very similar final results in terms of both training speed and generalization. In Multilayer Perceptron, we compare Adam, AMSGrad and AdaShift with reduce-max spatial operation (max-AdaShift) and without spatial operation (non-AdaShift). We observe that max-AdaShift achieves the lowest training loss, while non-AdaShift has mild training loss oscillation and at the same time achieves better generalization. The worse generalization of max-AdaShift may be due to overfitting in this task, and the better generalization of non-AdaShift may stem from the regularization effect of its relatively unstable step size.
253
+
254
+ # 5.3 DENSENET AND RESNET ON CIFAR-10
255
+
256
+ ResNet (He et al., 2016) and DenseNet (Huang et al., 2017) are two typical modern neural networks, which are efficient and widely-used. We test our algorithm with ResNet and DenseNet on CIFAR10 datasets. We use a 18-layer ResNet and 100-layer DenseNet in our experiments. We plot the best results of Adam, AMSGrad and AdaShift in Figure 4 and Figure 5 for ResNet and DenseNet, respectively. We can see that AMSGrad is relatively worse in terms of both training speed and generalization. Adam and AdaShift share competitive results, while AdaShift is generally slightly better, especially the test accuracy of ResNet and the training loss of DenseNet.
257
+
258
+ ![](images/bd51369853f8aec60078c8659a93d415440cb9b18bfc71be48f83a7050035ea0.jpg)
259
+ Figure 2: Logistic Regression on MNIST.
260
+
261
+ ![](images/8e66fbbe4e0b50013bb35536a392346c0e1b9c4e541224ee110184b81109212a.jpg)
262
+ Figure 3: Multilayer Perceptron on MNIST.
263
+
264
+ ![](images/fbaa38bd707fe0382ac36d2d9e629a004ebf88e1ce77a74afb68adaee66797ed.jpg)
265
+ Figure 4: ResNet on Cifar-10.
266
+
267
+ ![](images/c04f60e04a7ca3c512459a0a3dee778074683efb1679b4d8ecc4b5fd55bb6470.jpg)
268
+ Figure 5: DenseNet on Cifar-10.
269
+
270
+ # 5.4 DENSENET WITH TINY-IMAGENET
271
+
272
+ We further increase the complexity of dataset, switching from CIFAR-10 to Tiny-ImageNet, and compare the performance of Adam, AMSGrad and AdaShift with DenseNet. The results are shown in Figure 6, from which we can see that the training curves of Adam and AdaShift are basically overlapped, but AdaShift achieves higher test accuracy than Adam. AMSGrad has relatively higher training loss, and its test accuracy is relatively lower at the initial stage.
273
+
274
+ # 5.5 GENERATIVE MODEL AND RECURRENT MODEL
275
+
276
+ We also test our algorithm on the training of generative model and recurrent model. We choose WGAN-GP (Gulrajani et al., 2017) that involves Lipschitz continuity condition (which is hard to optimize), and Neural Machine Translation (NMT) (Luong et al., 2017) that involves typical recurrent unit LSTM, respectively. In Figure 7a, we compare the performance of Adam, AMSGrad and AdaShift in the training of WGAN-GP discriminator, given a fixed generator. We notice that AdaShift is significantly better than Adam, while the performance of AMSGrad is relatively unsatisfactory. The test performance in terms of BLEU of NMT is shown in Figure 7b, where AdaShift achieves a higher BLEU than Adam and AMSGrad.
277
+
278
+ ![](images/20ec1a7deed75bd258b76d979f134c79b4c8916ef2e3b7b9b540f7bc15630ddc.jpg)
279
+ Figure 6: DenseNet on Tiny-ImageNet.
280
+
281
+ ![](images/a5e0903b8c3033d4c49375bc3b49d4d104ad2cb273564be3e66dd307ff9e10b6.jpg)
282
+ Figure 7: Generative and Recurrent model.
283
+
284
+ # 6 CONCLUSION
285
+
286
+ In this paper, we study the non-convergence issue of adaptive learning rate methods from the perspective of the equivalent accumulated step size of each gradient, i.e., the net update factor defined in this paper. We show that there exists an inappropriate correlation between $v _ { t }$ and $g _ { t }$ , which leads to unbalanced net update factor for each gradient. We demonstrate that such unbalanced step sizes are the fundamental cause of non-convergence of Adam, and we further prove that decorrelating $v _ { t }$ and $g _ { t }$ will lead to unbiased expected step size for each gradient, thus solving the non-convergence problem of Adam. Finally, we propose AdaShift, a novel adaptive learning rate method that decorrelates $v _ { t }$ and $g _ { t }$ via calculating $v _ { t }$ using temporally shifted gradient $g _ { t - n }$ .
287
+
288
+ In addition, based on our new perspective on adaptive learning rate methods, $v _ { t }$ is no longer necessarily the second moment of $g _ { t }$ , but a random variable that is independent of $g _ { t }$ and reflects the overall gradient scale. Thus, it is valid to calculate $v _ { t }$ with the spatial elements of previous gradients. We further found that when the spatial operation $\phi$ outputs a shared scalar for each block, the resulting algorithm turns out to be closely related to SGD, where each block has an overall adaptive learning rate and the relative gradient scale in each block is maintained. The experiment results demonstrate that AdaShift is able to solve the non-convergence issue of Adam. In the meantime, AdaShift achieves competitive and even better training and testing performance when compared with Adam.
289
+
290
+ # REFERENCES
291
+
292
+ Timothy Dozat. Incorporating nesterov momentum into adam. International Conference on Learning Representations, Workshop track, 2016.
293
+
294
+ Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the thirteenth international conference on artificial intelligence and statistics, pp. 249–256, 2010.
295
+
296
+ Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of wasserstein gans. In Advances in Neural Information Processing Systems, pp. 5767–5777, 2017.
297
+
298
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pp. 1026–1034, 2015.
299
+
300
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
301
+
302
+ Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. 2017.
303
+
304
+ Nitish Shirish Keskar and Richard Socher. Improving generalization performance by switching from adam to sgd. arXiv preprint arXiv:1712.07628, 2017.
305
+
306
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
307
+
308
+ Minh-Thang Luong, Eugene Brevdo, and Rui Zhao. Neural machine translation (seq2seq) tutorial. https://github.com/tensorflow/nmt, 2017.
309
+
310
+ Ning Qian. On the momentum term in gradient descent learning algorithms. Neural networks, 12 (1):145–151, 1999.
311
+
312
+ Ali Rahimi and Ben Recht. test of time talk at nips 2017. URL http://www.argmin.net/ 2017/12/11/alchemy-addendum/.
313
+
314
+ Sashank J. Reddi, Satyen Kale, and Sanjiv Kumar. On the convergence of adam and beyond. In International Conference on Learning Representations, 2018. URL https://openreview. net/forum?id=ryQu7f-RZ.
315
+
316
+ Tijmen Tieleman and Geoffrey Hinton. Lecture 6.5-rmsprop: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural networks for machine learning, 4(2):26– 31, 2012.
317
+
318
+ Ashia C Wilson, Rebecca Roelofs, Mitchell Stern, Nati Srebro, and Benjamin Recht. The marginal value of adaptive gradient methods in machine learning. In Advances in Neural Information Processing Systems, pp. 4148–4158, 2017.
319
+
320
+ Matthew D Zeiler. Adadelta: an adaptive learning rate method. arXiv preprint arXiv:1212.5701, 2012.
321
+
322
+ ![](images/0f1428bf9a4b5ea3e7038a6fc053cf608aa64dd49c3d7f51c95a51345e47f0b9.jpg)
323
+
324
+ ![](images/0b88985c986fbd97c6e83f175daa5f7cc99b1b609e0bbe5044a8dd861b65f749.jpg)
325
+ (a) Final result of $\theta$ for sequential problem after 2000 updates, varied with $\beta _ { 1 }$ and $\beta _ { 2 }$ .
326
+
327
+ (b) Critical value of $C$ with varying $\beta _ { 1 }$ and $\beta _ { 2 }$ under the sequential optimization setting.
328
+
329
+ ![](images/9e4358443f5c208023f7f61ce5f96916b5e7409efd53fbae328f6e7121cd711c.jpg)
330
+
331
+ ![](images/38e63ad53b224fa9722d6f5a883d1a05903150e6fec5456ac478dc85509086d6.jpg)
332
+ (d) Critical value of $C$ with varying $\beta _ { 1 }$ and $\beta _ { 2 }$ under the stochastic optimization setting.
333
+
334
+ (c) Final result of $\theta$ for stochastic problem after 2000 updates, varied with $\beta _ { 1 }$ and $\beta _ { 2 }$ .
335
+
336
+ Figure 8: Both $\beta _ { 1 }$ and $\beta _ { 2 }$ influence the direction and speed of optimization in Adam. Critical value of $C _ { t }$ , at which Adam gets into non-convergence, increases as $\beta _ { 1 }$ and $\beta _ { 2 }$ getting large. Leftmost two for the sequential online optimization problem and rightmost two for stochastic online problem.
337
+
338
+ # A THE RELATION AMONG $\beta _ { 1 }$ , $\beta _ { 2 }$ AND $C$
339
+
340
+ To provide an intuitive impression on the relation among $C , d , \beta _ { 1 } , \beta _ { 2 }$ and the convergence of Adam, we let $C = d = 6 $ , initialize $\theta _ { 1 } = 0$ , vary $\beta _ { 1 }$ and $\beta _ { 2 }$ among $[ 0 , 1 )$ and let Adam go through 2000 timesteps (iterations). The final result of $\theta$ is shown in Figure 8a. It suggests that for a fixed sequential online optimization problem, both of $\beta _ { 1 }$ and $\beta _ { 2 }$ determine the direction and speed of Adam optimization process. Furthermore, we also study the threshold point of $C$ and $d$ , under which Adam will change to the incorrect direction, for each fixed $\beta _ { 1 }$ and $\beta _ { 2 }$ that vary among $[ 0 , 1 )$ . To simplify the experiments, we keep $d = C$ such that the overall gradient of each epoch being $+ 1$ . The result is shown in Figure 8b, which suggests, at the condition of larger $\beta _ { 1 }$ or larger $\beta _ { 2 }$ , it needs a larger $C$ to make Adam stride on the opposite direction. In other words, large $\beta _ { 1 }$ and $\beta _ { 2 }$ will make the non-convergence rare to happen.
341
+
342
+ We also conduct the experiment in the stochastic problem to analyze the relation among $C$ , $\beta _ { 1 }$ , $\beta _ { 2 }$ and the convergence behavior of Adam. Results are shown in the Figure 8c and Figure 8d and the observations are similar to the previous: larger $C$ will cause non-convergence more easily and a larger $\beta _ { 1 }$ or $\beta _ { 2 }$ somehow help to resolve non-convergence issue. In this experiment, we set $\delta = 1$ .
343
+
344
+ Lemma 6 (Critical condition). In the sequential online optimization problem Equation 6, let $\alpha _ { t }$ being fixed, define $S ( \beta _ { 1 } , \beta _ { 2 } , C , d )$ to be the sum of the limits of step updates in a $d$ -step epoch:
345
+
346
+ $$
347
+ \begin{array} { l } { \displaystyle { S ( \beta _ { 1 } , \beta _ { 2 } , C ) \triangleq \sum _ { i = 1 } ^ { d } \operatorname* { l i m } _ { n d \infty } \frac { m _ { n d + i } } { \sqrt { v _ { n d + i } } } . } } \end{array}
348
+ $$
349
+
350
+ Let $S ( \beta _ { 1 } , \beta _ { 2 } , C ) = 0$ , assuming $\beta _ { 2 }$ and $C$ are large enough such that $v _ { t } \gg 1$ , we get the equation:
351
+
352
+ $$
353
+ C + 1 = \frac { ( 1 - \beta _ { 1 } ^ { d } ) ( \sqrt { \beta _ { 2 } ^ { d } } - \beta _ { 1 } ^ { d } ) ( 1 - \sqrt { \beta _ { 2 } } ) } { ( 1 - \beta _ { 1 } ) ( \sqrt { \beta _ { 2 } } - \beta _ { 1 } ) ( 1 - \sqrt { \beta _ { 2 } ^ { d } } ) } .
354
+ $$
355
+
356
+ Equation 19, though being quite complex, tells that both $\beta _ { 1 }$ and $\beta _ { 2 }$ are closely related to the counterexamples, and there exists a critical condition among these parameters.
357
+
358
+ # B THE ADASHIFT PSEUDO CODE
359
+
360
+ Algorithm 2 AdaShift: We use a first-in-first-out queue $Q$ to denote the averaging window with the
361
+
362
+ <table><tr><td>length of n. Push(Q,gt) denotes pushing vector gt to the tail of Q, while Pop(Q) pops and returns the head vector of Q.And W is the weight vector calculated via β1.</td></tr><tr><td>Input: n,β1,β2,,∈,00,{ft(0)}T=1,{at}T=1</td></tr><tr><td>1:set vo = O,po =1 2:W=[-1,Br-2,., 1,1/∑= 7</td></tr><tr><td>3:fort=i toTdo</td></tr><tr><td>4: gt=Vft(0t)</td></tr><tr><td>5: ift≤nthen</td></tr><tr><td>6: Push(Q,gt) 7: else</td></tr><tr><td>8: 9t-n = Pop(Q)</td></tr><tr><td>9: Push(Q,gt)</td></tr><tr><td>10: mt =W.Q</td></tr><tr><td>11: Pt =Pt-1β2</td></tr><tr><td>12: fori=1 to M do</td></tr><tr><td>13: Ut[i]=β2Ut-1[i]+(1-β2)(g²-n[i])</td></tr><tr><td>14: 0t[i]=0t-1[i]-αt/(√Ut[i]/(1-pt)+∈)·mt[i]</td></tr><tr><td>15: end for</td></tr><tr><td>16: end if 17: end for</td></tr></table>
363
+
364
+ We provided the anonymous code where a Tensorflow implementation of this algorithm is available.
365
+
366
+ # C CORRELATION BETWEEN $g _ { t }$ AND $v _ { t }$
367
+
368
+ In order to verify the correlation between $g _ { t }$ and $v _ { t }$ in Adam and AdaShift, we conduct experiments to calculate the correlation coefficient between $g _ { t }$ and $v _ { t }$ . We train the Multilayer Perceptron on MNIST until converge and gather the gradient of the second hidden layer of each step. Based on these data, we calculate $v _ { t }$ and the correlation coefficient between $g _ { t } [ i ]$ and $g _ { t - n } [ i ]$ , between $g _ { t } [ i ]$ and $g _ { t - n } [ j ]$ and between $g _ { t } [ i ]$ and $v _ { t } [ i ]$ of the last 10 epochs using the Pearson correlation coefficient, which is formulated as follows:
369
+
370
+ $$
371
+ \rho = \frac { \sum _ { i = 1 } ^ { n } ( X _ { i } - \bar { X } ) ( Y _ { i } - \bar { Y } ) } { \sqrt { \sum _ { i = 1 } ^ { n } ( X _ { i } - \bar { X } ) ^ { 2 } } \sqrt { \sum _ { i = 1 } ^ { n } ( Y _ { i } - \bar { Y } ) ^ { 2 } } } .
372
+ $$
373
+
374
+ To verify the temporal correlation between $g _ { t } [ i ]$ and $g _ { t - n } [ i ]$ , we range $n$ from 1 to 10 and calculate the average temporal correlation coefficient of all variables $i$ . Results are shown in Table 1.
375
+
376
+ Table 1: Temporal correlation coefficient between $g _ { t } [ i ]$ and $g _ { t - n } [ i ]$ .
377
+
378
+ <table><tr><td rowspan=1 colspan=1>n</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>5</td></tr><tr><td rowspan=1 colspan=1>p</td><td rowspan=1 colspan=1>-0.000368929</td><td rowspan=1 colspan=1>-0.000989286</td><td rowspan=1 colspan=1>-0.001540511</td><td rowspan=1 colspan=1>-0.00116966</td><td rowspan=1 colspan=1>-0.001613395</td></tr><tr><td rowspan=1 colspan=1>n</td><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1>7</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>10</td></tr><tr><td rowspan=1 colspan=1>p</td><td rowspan=1 colspan=1>-0.001211721</td><td rowspan=1 colspan=1>0.000357474</td><td rowspan=1 colspan=1>-0.00082293</td><td rowspan=1 colspan=1>-0.001755237</td><td rowspan=1 colspan=1>-0.001267641</td></tr></table>
379
+
380
+ To verify the spatial correlation between $g _ { t } [ i ]$ and $g _ { t - n } [ j ]$ , we again range $n$ from 1 to 10 and randomly sample some pairs of $i$ and $j$ and calculate the average spatial correlation coefficient of all the selected pairs. Results are shown in Table 2.
381
+
382
+ To verify the correlation between $g _ { t } [ i ]$ and $v _ { t } [ i ]$ within Adam, we calculate $v _ { t }$ and the average correlation coefficient between $g _ { t } ^ { 2 }$ and $v _ { t }$ of all variables $i$ . The result is 0.435885276.
383
+
384
+ To verify the correlation between $g _ { t - n } [ i ]$ and $v _ { t } [ i ]$ within non-AdaShift and between $g _ { t - n } [ i ]$ and $v _ { t }$ within max-AdaShift, we range the keep number $n$ from 1 to 10 to calculate $v _ { t }$ and the average correlation coefficient of all variables $i$ . The result is shown in Table 3 and Table 4.
385
+
386
+ Table 2: Spatial correlation coefficient between $g _ { t } [ i ]$ and $g _ { t - n } [ j ]$ .
387
+
388
+ <table><tr><td rowspan=1 colspan=1>n</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>5</td></tr><tr><td rowspan=1 colspan=1>p</td><td rowspan=1 colspan=1>-0.000609471</td><td rowspan=1 colspan=1>-0.001948853</td><td rowspan=1 colspan=1>-0.001426661</td><td rowspan=1 colspan=1>0.000904615</td><td rowspan=1 colspan=1>0.000329359</td></tr><tr><td rowspan=1 colspan=1>n</td><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1>7</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>10</td></tr><tr><td rowspan=1 colspan=1>p</td><td rowspan=1 colspan=1>0.000971337</td><td rowspan=1 colspan=1>-0.000644563</td><td rowspan=1 colspan=1>-0.00137805</td><td rowspan=1 colspan=1>-0.001147973</td><td rowspan=1 colspan=1>-0.000592037</td></tr></table>
389
+
390
+ Table 3: Correlation coefficient between $g _ { t - n } ^ { 2 } [ i ]$ and $v _ { t } [ i ]$ in non-AdaShift.
391
+
392
+ <table><tr><td rowspan=1 colspan=1>n</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>5</td></tr><tr><td rowspan=1 colspan=1>p</td><td rowspan=1 colspan=1>-0.010897023</td><td rowspan=1 colspan=1>-0.010952548</td><td rowspan=1 colspan=1>-0.010890854</td><td rowspan=1 colspan=1>-0.010853069</td><td rowspan=1 colspan=1>-0.010810747</td></tr><tr><td rowspan=1 colspan=1>n</td><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1>7</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>10</td></tr><tr><td rowspan=1 colspan=1>p</td><td rowspan=1 colspan=1>-0.010777789</td><td rowspan=1 colspan=1>-0.01075946</td><td rowspan=1 colspan=1>-0.010739279</td><td rowspan=1 colspan=1>-0.010728553</td><td rowspan=1 colspan=1>-0.010720019</td></tr></table>
393
+
394
+ Table 4: Correlation coefficient between $g _ { t - n } ^ { 2 } [ i ]$ and $v _ { t }$ in max-AdaShift.
395
+
396
+ <table><tr><td rowspan=1 colspan=1>n</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>5</td></tr><tr><td rowspan=1 colspan=1>p</td><td rowspan=1 colspan=1>-0.000706289</td><td rowspan=1 colspan=1>-0.000794959</td><td rowspan=1 colspan=1>-0.00076306</td><td rowspan=1 colspan=1>-0.000712474</td><td rowspan=1 colspan=1>-0.000668459</td></tr><tr><td rowspan=1 colspan=1>n</td><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1>7</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>10</td></tr><tr><td rowspan=1 colspan=1>p</td><td rowspan=1 colspan=1>-0.000623162</td><td rowspan=1 colspan=1>-0.000566573</td><td rowspan=1 colspan=1>-0.000542046</td><td rowspan=1 colspan=1>-0.000598015</td><td rowspan=1 colspan=1>-0.000592707</td></tr></table>
397
+
398
+ # D PROOF OF THEOREM 1
399
+
400
+ Proof.
401
+
402
+ With bias correction, the formulation of $m _ { t }$ is written as follows
403
+
404
+ $$
405
+ m _ { t } = \frac { ( 1 - \beta _ { 1 } ) \sum _ { i = 1 } ^ { t } \beta _ { 1 } ^ { t - i } g _ { i } } { ( 1 - \beta _ { 1 } ) \sum _ { i = 1 } ^ { t } \beta _ { 1 } ^ { t - i } } = \frac { \sum _ { i = 1 } ^ { t } \beta _ { 1 } ^ { t - i } g _ { i } } { \sum _ { i = 1 } ^ { t } \beta _ { 1 } ^ { t - i } } .
406
+ $$
407
+
408
+ According to L’Hospitals rule, we can draw the following:
409
+
410
+ $$
411
+ \operatorname* { l i m } _ { \beta _ { 1 } \to 1 } \sum _ { i = 1 } ^ { t } \beta _ { 1 } ^ { t - i } = \operatorname* { l i m } _ { \beta _ { 1 } \to 1 } \frac { 1 - \beta _ { 1 } ^ { t } } { 1 - \beta _ { 1 } } = t .
412
+ $$
413
+
414
+ Thus,
415
+
416
+ $$
417
+ \operatorname* { l i m } _ { \beta _ { 1 } \to 1 } m _ { t } = \frac { \sum _ { i = 1 } ^ { t } g _ { i } } { t } .
418
+ $$
419
+
420
+ According to the definition of limitation, let $\begin{array} { r } { g ^ { * } = \frac { \sum _ { i = 1 } ^ { t } g _ { i } } { t } } \end{array}$ , we have, $\forall \epsilon > 0$ , $\exists \beta _ { 1 } \in ( 0 , 1 )$ , such that
421
+
422
+ $$
423
+ \| m _ { t } - g ^ { * } \| _ { \infty } < \epsilon .
424
+ $$
425
+
426
+ We set $\epsilon$ to be $\big | \frac { g ^ { * } } { 2 } \big |$ , then for each dimension of $m _ { t }$ , i.e. $m _ { t } [ i ]$ ,
427
+
428
+ $$
429
+ \frac { g ^ { * } [ i ] } { 2 } \leq m _ { t } [ i ] \leq \frac { 3 g ^ { * } [ i ] } { 2 }
430
+ $$
431
+
432
+ So, $m _ { t }$ shares the same sign with $g ^ { * }$ in every dimension.
433
+
434
+ Given it is a convex optimization problem, let the optimal parameter be $\theta ^ { * }$ , and the maximum step size is $\frac { \alpha _ { t } } { \sqrt { v _ { t } } } G$ that holds $\begin{array} { r } { \epsilon _ { 1 } / G < \frac { \bar { \alpha } _ { t } } { \sqrt { v _ { t } } } G < \epsilon _ { 2 } / G } \end{array}$ , we have,
435
+
436
+ $$
437
+ \operatorname* { l i m } _ { t \to \infty } \| \theta _ { t } - \theta ^ { * } \| _ { \infty } < \epsilon _ { 2 } / G .
438
+ $$
439
+
440
+ Given $\| \nabla f _ { t } ( \theta ) \| _ { \infty } \leq G$ , we have $f _ { t } ( \theta ) - f _ { t } ( \theta ^ { * } ) < \epsilon _ { 2 }$ , which implies the average regret
441
+
442
+ $$
443
+ R ( T ) / T = \sum _ { t = 1 } ^ { T } [ f _ { t } ( \theta _ { t } ) - f _ { t } ( \theta ^ { * } ) ] / T < \epsilon _ { 2 } .
444
+ $$
445
+
446
+ # E PROOF OF LEMMA 2
447
+
448
+ Proof. Let $\beta _ { 1 } , \beta _ { 2 } \in [ 0 , 1 )$ , $d \in \mathbb { N }$ , $1 \leq i \leq d$ and $i \in \mathbb N$ .
449
+
450
+ $$
451
+ \begin{array} { l } { { \displaystyle m _ { n d + i } = ( 1 - \beta _ { 1 } ) \sum _ { j = 1 } ^ { n d + i } \beta _ { 1 } ^ { n d + i - j } g _ { j } } } \\ { { \displaystyle \quad \quad = ( 1 - \beta _ { 1 } ) \left[ ( C + 1 ) \sum _ { j = 0 } ^ { n } \beta _ { 1 } ^ { j d + i - 1 } - \sum _ { j = 0 } ^ { n d + i - 1 } \beta _ { 1 } ^ { j } \right] } } \\ { { \displaystyle \quad \quad = ( 1 - \beta _ { 1 } ) \left[ \frac { 1 - \beta _ { 1 } ^ { ( n + 1 ) d } } { 1 - \beta _ { 1 } ^ { d } } \beta _ { 1 } ^ { i - 1 } ( C + 1 ) - \frac { 1 - \beta _ { 1 } ^ { n d + i } } { 1 - \beta _ { 1 } } \right] } } \\ { { \displaystyle \quad \quad = \frac { 1 - \beta _ { 1 } ^ { ( n + 1 ) d } } { 1 - \beta _ { 1 } ^ { d } } ( 1 - \beta _ { 1 } ) \beta _ { 1 } ^ { i - 1 } ( C + 1 ) - ( 1 - \beta _ { 1 } ^ { n d + i } ) } } \end{array}
452
+ $$
453
+
454
+ For a fixed $d$ , as $n$ approach infinity, we get the limit of $m _ { n d + i }$ as:
455
+
456
+ $$
457
+ \operatorname* { l i m } _ { n d \infty } m _ { n d + i } = \frac { 1 - \beta _ { 1 } } { 1 - \beta _ { 1 } ^ { d } } ( C + 1 ) \beta _ { 1 } ^ { i - 1 } - 1
458
+ $$
459
+
460
+ Similarly, for $v _ { n d + i }$ :
461
+
462
+ $$
463
+ \begin{array} { l } { { \displaystyle v _ { n d + i } = \left( 1 - \beta _ { 2 } \right) \sum _ { j = 1 } ^ { n d + i } \beta _ { 2 } ^ { n d + i - j } g _ { j } ^ { 2 } } } \\ { { \displaystyle \qquad = \left( 1 - \beta _ { 2 } \right) \left[ ( C ^ { 2 } - 1 ) \sum _ { j = 0 } ^ { n } \beta _ { 2 } ^ { j d + i - 1 } + \sum _ { j = 0 } ^ { n d + i - 1 } \beta _ { 2 } ^ { j } \right] } } \\ { { \displaystyle \qquad = \left( 1 - \beta _ { 2 } \right) \left[ \frac { 1 - \beta _ { 2 } ^ { ( n + 1 ) d } } { 1 - \beta _ { 2 } ^ { d } } \beta _ { 2 } ^ { i - 1 } ( C ^ { 2 } - 1 ) + \frac { 1 - \beta _ { 2 } ^ { n d + i } } { 1 - \beta _ { 2 } } \right] } } \\ { { \displaystyle \qquad = \frac { 1 - \beta _ { 2 } ^ { ( n + 1 ) d } } { 1 - \beta _ { 2 } ^ { d } } \left( 1 - \beta _ { 2 } \right) \beta _ { 2 } ^ { i - 1 } ( C + 1 ) - \left( 1 - \beta _ { 2 } ^ { n d + i } \right) } } \end{array}
464
+ $$
465
+
466
+ For a fixed $d$ , as $n$ approach infinity, we get the limit of $v _ { n d + i }$ as:
467
+
468
+ $$
469
+ \operatorname * { l i m } _ { n d \infty } v _ { n d + i } = \frac { 1 - \beta _ { 2 } } { 1 - \beta _ { 2 } ^ { d } } ( C ^ { 2 } - 1 ) \beta _ { 2 } ^ { i - 1 } + 1 .
470
+ $$
471
+
472
+ # F PROOF OF LEMMA 3
473
+
474
+ Proof. First, we define $\widetilde { V } _ { i }$ as:
475
+
476
+ $$
477
+ \widetilde V _ { i } = \operatorname* { l i m } _ { n d \infty } \frac { 1 } { \sqrt { v _ { n d + i } } } = \frac { 1 } { \sqrt { \frac { 1 - \beta _ { 2 } } { 1 - \beta _ { 2 } ^ { d } } ( C ^ { 2 } - 1 ) \beta _ { 2 } ^ { ( i - 1 ) } + 1 } }
478
+ $$
479
+
480
+ where $1 \leq i \leq d$ and $i \in \mathbb N$ . And $\widetilde { V } _ { i }$ has a period of $d$ . Let $t ^ { ' } = t - n d$ , then we can draw:
481
+
482
+ $$
483
+ \begin{array} { r l } { \underset { \mathrm { C } ^ { \prime } \times \mathrm { R } ^ { \prime } } { = } } & { V _ { \mathrm { { o } } } ( \lambda _ { 2 , 1 } ) = : - \underset { \mathrm { C } ^ { \prime } \times \mathrm { R } ^ { \prime } } { \overset { \cdot } { \sum } } \underset { \mathrm { C } ^ { \prime } \times \mathrm { R } ^ { \prime } } { = } \langle \frac { \mathrm { S } } { \mathrm { R } ^ { \prime } } , \frac { \mathrm { S } } { \mathrm { R } ^ { \prime } } \rangle _ { \mathrm { C } ^ { \prime } } ^ { 2 } \mathrm { { R } } \mathrm { { R } } ^ { - 1 } } \\ & { - \underset { \mathrm { C } ^ { \prime } \times \mathrm { R } ^ { \prime } } { = } \langle \frac { \mathrm { S } } { \mathrm { R } ^ { \prime } } , \frac { \mathrm { S } } { \mathrm { R } ^ { \prime } } , \frac { \mathrm { S } } { \mathrm { R } ^ { \prime } } \rangle _ { \mathrm { C } ^ { \prime } } ^ { 2 } \mathrm { { R } } \mathrm { { R } } ^ { - 1 } + 1 } \\ & { - \underset { \mathrm { C } ^ { \prime } \times \mathrm { R } ^ { \prime } } { = } \langle \frac { \mathrm { S } } { \mathrm { R } ^ { \prime } } , \frac { \mathrm { S } } { \mathrm { R } ^ { \prime } } , \frac { \mathrm { S } } { \mathrm { R } ^ { \prime } } \rangle _ { \mathrm { C } ^ { \prime } } ^ { 2 } \mathrm { { R } } \mathrm { { R } } ^ { - 1 } } \\ & { - \underset { \mathrm { C } ^ { \prime } \times \mathrm { R } ^ { \prime } } { = } \langle \frac { \mathrm { S } } { \mathrm { R } ^ { \prime } } , \frac { \mathrm { S } } { \mathrm { R } ^ { \prime } } , \frac { \mathrm { S } } { \mathrm { R } ^ { \prime } } \rangle _ { \mathrm { C } ^ { \prime } } ^ { 2 } \mathrm { { R } } \mathrm { { R } } ^ { - 1 } } \\ & - \underset { \mathrm { C } ^ { \prime } \times \mathrm { R } ^ { \prime } } { = } \langle \frac { \mathrm { S } } { \mathrm { R } ^ { \prime } } , \frac { \mathrm { S } } { \mathrm { R } ^ { \prime } } , \frac { \mathrm { S } } { \mathrm { R } ^ { \prime } } \rangle _ { \mathrm { C } ^ { \prime } } \\ & - \underset \mathrm { C } ^ { \prime } \times \mathrm \end{array}
484
+ $$
485
+
486
+ Thus, we can get the forward difference of $k ( g _ { n d + i } )$ as:
487
+
488
+ $$
489
+ \begin{array} { l } { \underset { \displaystyle \mathcal { A } \to \infty } { \operatorname* { l i m } } k ( g _ { n d + i + 1 } ) - \underset { n d \to \infty } { \operatorname* { l i m } } k ( g _ { n d + i } ) = \displaystyle \sum _ { l = 1 } ^ { \infty } \beta _ { 1 } ^ { ( l - 1 ) d } \left[ ( 1 - \beta _ { 1 } ) ^ { 2 } \displaystyle \sum _ { j = 0 } ^ { \infty } \beta _ { 1 } ^ { j } \cdot \widetilde { V } _ { j + i + 1 } + ( 1 - \beta _ { 1 } ) ^ { 2 } \displaystyle \sum _ { j = 0 } ^ { \infty } \beta _ { 1 } ^ { j } \cdot \widetilde { V } _ { j + i + 1 } \right. + } \\ { \left. \left. = ( 1 - \beta _ { 1 } ) ^ { 2 } \displaystyle \sum _ { l = 1 } ^ { \infty } \beta _ { 1 } ^ { ( l - 1 ) d } \displaystyle \sum _ { j = 0 } ^ { d - 1 } \beta _ { 1 } ^ { j } \cdot \left[ \widetilde { V } _ { j + i + 1 } - \widetilde { V } _ { i } \right] \right. \right. } \end{array}
490
+ $$
491
+
492
+ $\widetilde { V } _ { n d + 1 i }$ monotonically increases within one period, when $1 \leq i \leq d$ and $i \in \mathbb N$ . And the weigh $\beta _ { 1 } ^ { j }$ for every difference term $\left[ \widetilde { V } _ { j + i + 1 } - \widetilde { V } _ { i } \right]$ is fixed when $i$ varies. Thus, the weighted summation Pd−1j=0 βj1 · h $\begin{array} { r } { \sum _ { j = 0 } ^ { d - 1 } \beta _ { 1 } ^ { j } \cdot \left[ \widetilde { V } _ { j + i + 1 } - \widetilde { V } _ { i } \right] } \\ { . } \end{array}$ is monotonically decreasing from positive to negative. In other words, the forward difference is monotonically decreasing, such that there exists $j$ , $1 \leq j \leq d$ and $\operatorname* { l i m } _ { n d \to \infty } k ( g _ { n d + 1 } )$ is the maximum among all net updates. Moreover, it is obvious that $\operatorname* { l i m } _ { n d \to \infty } k ( g _ { n d + 1 } )$ is the minimum.
493
+
494
+ Hence, we can draw the conclusion: $\exists 1 \leq j \leq d$ , such that
495
+
496
+ $$
497
+ \operatorname* { l i m } _ { n d \to \infty } k ( C ) = \operatorname* { l i m } _ { n d \to \infty } k ( g _ { n d + 1 } ) < \operatorname* { l i m } _ { n d \to \infty } k ( g _ { n d + 2 } ) < \cdots < \operatorname* { l i m } _ { n d \to \infty } k ( g _ { n d + j } )
498
+ $$
499
+
500
+ and
501
+
502
+ $$
503
+ \operatorname* { l i m } _ { n d \to \infty } k ( g _ { n d + j } ) > \operatorname* { l i m } _ { n d \to \infty } k ( g _ { n d + j + 1 } ) > \cdots > \operatorname* { l i m } _ { n d \to \infty } k ( g _ { n d + d + 1 } ) = \operatorname* { l i m } _ { n d \to \infty } k ( C ) ,
504
+ $$
505
+
506
+ where $K ( C )$ is the net update factor for gradient $g _ { i } = C$ .
507
+
508
+ # G PROOF OF LEMMA 4
509
+
510
+ Lemma 7. 1 For a bounded random variable $X$ and a differentiable function $f ( x )$ , the expectation of $f ( X )$ is as follows:
511
+
512
+ $$
513
+ \mathbb { E } [ f ( X ) ] = f ( \mathbb { E } [ X ] ) + \frac { f ^ { \prime \prime } ( \mathbb { E } [ X ] ) } { 2 } D ( X ) + R _ { 3 }
514
+ $$
515
+
516
+ where $D ( X )$ is variance of $X$ , and $R _ { 3 }$ is as follows:
517
+
518
+ $$
519
+ \begin{array} { r l } & { R _ { 3 } = \displaystyle \frac { f ^ { [ 3 ] } ( \alpha ) } { 3 } \mathbb { E } ( X - \mathbb { E } [ X ] ) ^ { 3 } + } \\ & { \quad + \displaystyle \int _ { | x - \mathbb { E } [ X ] | > c } \left( f ( \mathbb { E } [ X ] ) + f ^ { ' } ( \mathbb { E } [ X ] ) ( x - \mathbb { E } [ X ] ) ^ { 2 } + f ( X ) \right) d F ( x ) } \end{array}
520
+ $$
521
+
522
+ $F ( x )$ is the distribution function of $X , R _ { 3 }$ is a small quantity under some condition. And $c$ is large enough, such that: for any $\epsilon > 0$ ,
523
+
524
+ $$
525
+ P ( X \in [ \mathbb { E } [ X ] - c , \mathbb { E } [ X ] + c ] ) = P ( | X - \mathbb { E } [ X ] | \leq c ) \leq 1 - \epsilon
526
+ $$
527
+
528
+ Proof. (Proof of Lemma 4 ) In the stochastic online optimization problem equation 7, the gradient subjects the distribution as:
529
+
530
+ $$
531
+ g _ { i } = \left\{ \begin{array} { l l } { { C , } } & { { \mathrm { w i t h ~ p r o b a b i l i t y } \ : p : = \frac { 1 + \delta } { C + 1 } ; } } \\ { { - 1 , } } & { { \mathrm { w i t h ~ p r o b a b i l i t y } \ : 1 - p : = \frac { C - \delta } { C + 1 } . } } \end{array} \right. ,
532
+ $$
533
+
534
+ Then we can get the expectation of $g _ { i }$ :
535
+
536
+ $$
537
+ \begin{array} { c } { { \cdot \qquad \mathbb { E } [ g _ { i } ] = \delta } } \\ { { \mathbb { E } [ g _ { i } ^ { 2 } ] = C ^ { 2 } \cdot \displaystyle \frac { 1 + \delta } { C + 1 } + \displaystyle \frac { C - \delta } { C + 1 } = C + \delta ( C + 1 ) } } \\ { { D [ g _ { i } ] = C + \delta ( C + 1 ) - \delta ^ { 2 } } } \\ { { \mathbb { E } [ g _ { i } ^ { 4 } ] = C ( C ^ { 2 } - C + 1 ) + \delta ( C - 1 ) ( C ^ { 2 } + 1 ) } } \\ { { D [ g _ { i } ^ { 2 } ] = C ^ { 3 } - 2 C ^ { 2 } + C + \delta ( C ^ { 3 } - 3 C ^ { 2 } - C - 1 ) - \delta ^ { 2 } ( C + 1 ) ^ { 2 } } } \end{array}
538
+ $$
539
+
540
+ Meanwhile, under the assumption that gradients are i.i.d., the expectation and variance of $v _ { i }$ are as following when $n d \infty$ :
541
+
542
+ $$
543
+ \mathbb { E } [ v _ { i } ] = \operatorname* { l i m } _ { i \to \infty } ( 1 - \beta _ { 2 } ) \sum _ { j = 1 } ^ { i } \beta _ { 2 } ^ { i - j } \mathbb { E } [ g _ { j } ^ { 2 } ] = \operatorname* { l i m } _ { i \to \infty } ( 1 - \beta _ { 2 } ^ { i } ) \mathbb { E } [ g _ { j } ^ { 2 } ] = C + \delta ( C + 1 )
544
+ $$
545
+
546
+ $$
547
+ D [ v _ { i } ] = \operatorname * { l i m } _ { i \to \infty } ( 1 - \beta _ { 2 } ) \sum _ { j = 1 } ^ { i } \beta _ { 2 } ^ { i - j } D [ g _ { j } ^ { 2 } ] = \operatorname * { l i m } _ { i \to \infty } ( 1 - \beta _ { 2 } ^ { i } ) D [ g _ { j } ^ { 2 } ] = D [ g _ { j } ^ { 2 } ]
548
+ $$
549
+
550
+ Then, for the gradient $g _ { i }$ , the net update factor is as follows:
551
+
552
+ $$
553
+ k ( g _ { i } ) = \sum _ { t = 0 } ^ { \infty } \frac { ( 1 - \beta _ { 1 } ) \beta _ { 1 } ^ { t } } { \sqrt { \beta _ { 2 } ^ { t + 1 } v _ { i - 1 } + ( 1 - \beta _ { 2 } ) \beta _ { 2 } ^ { t } \cdot g _ { i } ^ { 2 } + ( 1 - \beta _ { 2 } ) \sum _ { j = 1 } ^ { t } \beta _ { 2 } ^ { t - j } g _ { i + j } ^ { 2 } } }
554
+ $$
555
+
556
+ It should to be clarified that we define $\textstyle \sum _ { j = 1 } ^ { t } \beta _ { 2 } ^ { t - j } g _ { i + j } ^ { 2 }$ equal to zero when $t = 0$ . Then we define $X _ { t }$ as:
557
+
558
+ $$
559
+ \begin{array} { r l } & { \quad X _ { t } = \beta _ { 2 } ^ { t + 1 } v _ { t - 1 } + ( 1 - \beta _ { 2 } ) \beta _ { 2 } ^ { t } \cdot g _ { t } ^ { 2 } + ( 1 - \beta _ { 2 } ) \sum _ { j = 0 } ^ { \ell - 1 } g _ { t + j } ^ { 2 } } \\ & { \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \end{array}
560
+ $$
561
+
562
+ For the function $\textstyle f ( x ) = { \frac { 1 } { \sqrt { x } } }$ :
563
+
564
+ $$
565
+ f ^ { ^ { \prime \prime } } ( x ) = { \frac { 3 \cdot x ^ { - 5 / 2 } } { 8 } }
566
+ $$
567
+
568
+ According to lemma 7, we can the expectation of $f ( X _ { t } )$ as follows:
569
+
570
+ $$
571
+ \mathbb { E } [ f ( X _ { t } ) ] = \left( \mathbb { E } [ X _ { t } ] \right) ^ { - 1 / 2 } + { \frac { 3 } { 8 } } { \big ( } \mathbb { E } [ X _ { t } ] { \big ) } ^ { - 5 / 2 } \cdot D [ X _ { t } ]
572
+ $$
573
+
574
+ $\mathbb { E } [ X _ { t } ]$ and $D [ X _ { t } ]$ are expressed by equation 35 and equation 38. Then we can obtain the expectation expression of net update factor as follows:
575
+
576
+ $$
577
+ \begin{array} { r } { k ( g _ { i } ) = \sum _ { t = 0 } ^ { \infty } ( 1 - \beta _ { 1 } ) \beta _ { 1 } ^ { t } \left[ \frac { 1 } { \sqrt { ( 1 - \beta _ { 2 } ) \beta _ { 2 } ^ { t } g _ { i } ^ { 2 } + ( 1 + \beta _ { 2 } ^ { t + 1 } - \beta _ { 2 } ^ { k } ) \mathbb { E } [ g _ { i } ^ { 2 } ] } } + \frac { 3 D _ { t } } { 8 [ ( 1 - \beta _ { 2 } ) \beta _ { 2 } ^ { t } g _ { i } ^ { 2 } + ( 1 + \beta _ { 2 } ^ { t + 1 } - \beta _ { 2 } ^ { t } ) \mathbb { E } [ g _ { i } ^ { 2 } ] ] ^ { \frac { 5 } { 2 } } } \right] } \end{array}
578
+ $$
579
+
580
+ where $D _ { t } = D [ X _ { k } ]$ . Then for gradient $C$ and $- 1$ , the net update factor is as follows:
581
+
582
+ $$
583
+ \begin{array} { r } { k ( C ) = \sum _ { t = 0 } ^ { \infty } ( 1 - \beta _ { 1 } ) \beta _ { 1 } ^ { t } \left[ \frac { 1 } { \sqrt { ( 1 - \beta _ { 2 } ) \beta _ { 2 } ^ { t } C ^ { 2 } + ( 1 + \beta _ { 2 } ^ { t + 1 } - \beta _ { 2 } ^ { k } ) \mathbb E [ g _ { i } ^ { 2 } ] } } + \frac { 3 D _ { t } } { 8 [ ( 1 - \beta _ { 2 } ) \beta _ { 2 } ^ { t } C ^ { 2 } + ( 1 + \beta _ { 2 } ^ { t + 1 } - \beta _ { 2 } ^ { t } ) \mathbb E [ g _ { i } ^ { 2 } ] ] ^ { \frac { 5 } { 2 } } } \right] } \end{array}
584
+ $$
585
+
586
+ and
587
+
588
+ $$
589
+ \begin{array} { r } { k ( - 1 ) = \sum _ { t = 0 } ^ { \infty } ( 1 - \beta _ { 1 } ) \beta _ { 1 } ^ { t } \left[ \frac { 1 } { \sqrt { ( 1 - \beta _ { 2 } ) \beta _ { 2 } ^ { t } + ( 1 + \beta _ { 2 } ^ { t + 1 } - \beta _ { 2 } ^ { k } ) \mathbb { E } [ g _ { \ast } ^ { 2 } ] } } + \frac { 3 D _ { t } } { 8 [ ( 1 - \beta _ { 2 } ) \beta _ { 2 } ^ { t } + ( 1 + \beta _ { 2 } ^ { t + 1 } - \beta _ { 2 } ^ { t } ) \mathbb { E } [ g _ { \ast } ^ { 2 } ] ] ^ { \frac { 5 } { 2 } } } \right] } \end{array}
590
+ $$
591
+
592
+ We can see that each term in the infinite series of $k ( C )$ is smaller than the corresponding one in $k ( - 1 )$ . Thus, $k ( C ) < k ( - 1 )$ .
593
+
594
+ # H PROOF OF LEMMA 6
595
+
596
+ Proof. From Lemma 2, we can get:
597
+
598
+ $$
599
+ \operatorname* { l i m } _ { n d \infty } { \frac { m _ { n d + i } } { \sqrt { v _ { n d + i } } } } = { \frac { { \frac { 1 - \beta _ { 1 } } { 1 - \beta _ { 1 } ^ { d } } } ( C + 1 ) \beta _ { 1 } ^ { i - 1 } - 1 } { \sqrt { { \frac { 1 - \beta _ { 2 } } { 1 - \beta _ { 2 } ^ { d } } } ( C ^ { 2 } - 1 ) \beta _ { 2 } ^ { i - 1 } + 1 } } }
600
+ $$
601
+
602
+ We sum up all updates in an epoch, and define the summation as $S ( \beta _ { 1 } , \beta _ { 2 } , C )$ .
603
+
604
+ $$
605
+ \displaystyle { \mathcal { S } } ( \beta _ { 1 } , \beta _ { 2 } , C ) = \sum _ { i = 1 } ^ { d } \operatorname* { l i m } _ { n d \infty } { \frac { m _ { n d + i } } { \sqrt { v _ { n d + i } } } }
606
+ $$
607
+
608
+ Assume $\beta _ { 2 }$ and $C$ are large enough such that $v _ { t } \gg 1$ , we get the approximation of limit of $v _ { n d + i }$ as:
609
+
610
+ $$
611
+ \operatorname* { l i m } _ { n d \infty } v _ { n d + i } \approx \frac { 1 - \beta _ { 2 } } { 1 - \beta _ { 2 } ^ { d } } ( C ^ { 2 } - 1 ) \beta _ { 2 } ^ { i - 1 }
612
+ $$
613
+
614
+ Then we can draw the expression of $S ( \beta _ { 1 } , \beta _ { 2 } , C )$ as:
615
+
616
+ $$
617
+ \begin{array} { r l } { \xi ( \beta _ { 1 } , \beta _ { 2 } , C ) = \displaystyle \sum _ { i = 1 } ^ { d } \frac { \frac { 1 - \beta _ { i } } { 2 \beta _ { 2 } ^ { i } } ( C + 1 ) \beta _ { 1 } ^ { i - 1 } - 1 } { \sqrt { \frac { 1 - \beta _ { i } } { 1 - \beta _ { 2 } ^ { i } } ( C ^ { 2 } - 1 ) \beta _ { 2 } ^ { i - 1 } } } } \\ { = \displaystyle \sum _ { i = 1 } ^ { d } \frac { \frac { 1 - \beta _ { i } } { 2 \beta _ { 1 } ^ { i } } ( C + 1 ) \beta _ { 1 } ^ { i - 1 } } { \sqrt { \frac { 1 - \beta _ { i } } { 1 - \beta _ { 2 } ^ { i } } ( C ^ { 2 } - 1 ) \beta _ { 2 } ^ { i - 1 } } } - \displaystyle \sum _ { i = 1 } ^ { d } \frac { 1 } { \sqrt { \frac { 1 - \beta _ { 2 } } { 1 - \beta _ { 2 } ^ { i } } ( C ^ { 2 } - 1 ) \beta _ { 2 } ^ { i - 1 } } } } \\ { = \displaystyle \sqrt { \frac { 1 - \beta _ { 2 } ^ { d } } { ( 1 - \beta _ { 2 } ) \beta _ { 2 } ^ { d - 1 } } } \sqrt { \frac { C + 1 } { C - 1 } } \cdot \frac { 1 - \beta _ { 1 } } { 1 - \beta _ { 1 } ^ { d } } \cdot \sqrt { \frac { \beta _ { 2 } ^ { d } - \beta _ { 1 } ^ { d } } { \sqrt { 2 } - \beta _ { 1 } } } - \sqrt { \frac { 1 - \beta _ { 2 } ^ { d } } { ( 1 - \beta _ { 2 } ) \beta _ { 2 } ^ { d - 1 } } } \cdot \frac { 1 } { \sqrt { C ^ { 2 } - 1 } } \frac { \sqrt { \beta _ { 2 } ^ { d } } } { \sqrt { \beta _ { 2 } } } } \\ = \displaystyle \sqrt { \frac { 1 - \beta _ { 2 } ^ { d } } { ( 1 - \beta _ { 2 } ) \beta _ { 2 } ^ { d - 1 } ( C - 1 ) } } [ \frac { ( 1 - \beta _ { 1 } ) ( \beta _ { 2 } ^ { d } - \beta _ { 1 } ^ { d } ) \sqrt { C + 1 } } { ( 1 - \beta _ { 1 } ^ { d } ) ( \sqrt { 2 } - \beta _ { 1 } ) } - \frac { \sqrt { \beta _ { 2 } ^ { d } } - 1 } \sqrt { C + 1 } ( \sqrt { \beta _ { 2 } } - \end{array}
618
+ $$
619
+
620
+ Let $S ( \beta _ { 1 } , \beta _ { 2 } , C ) = 0$ , we get the equation about critical condition:
621
+
622
+ $$
623
+ C + 1 = \frac { ( 1 - \beta _ { 1 } ^ { d } ) ( \sqrt { \beta _ { 2 } ^ { d } } - \beta _ { 1 } ^ { d } ) ( 1 - \sqrt { \beta _ { 2 } } ) } { ( 1 - \beta _ { 1 } ) ( \sqrt { \beta _ { 2 } } - \beta _ { 1 } ) ( 1 - \sqrt { \beta _ { 2 } ^ { d } } ) }
624
+ $$
625
+
626
+ # I HYPER-PARAMETERS INVESTIGATION
627
+
628
+ # I.1 HYPER-PARAMETERS SETTING
629
+
630
+ Here, we list all hyper-parameter setting of all above experiments.
631
+
632
+ Table 5: Hyper-parameter setting of logistic regression in Figure 2.
633
+
634
+ <table><tr><td rowspan=1 colspan=1>Optimizer</td><td rowspan=1 colspan=1>learning rate</td><td rowspan=1 colspan=1>β1</td><td rowspan=1 colspan=1>β</td><td rowspan=1 colspan=1>n</td></tr><tr><td rowspan=1 colspan=1>SGD</td><td rowspan=1 colspan=1>0.1</td><td rowspan=1 colspan=1>N/A</td><td rowspan=1 colspan=1>N/A</td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>Adam</td><td rowspan=1 colspan=1>0.001</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0.999</td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>AMSGrad</td><td rowspan=1 colspan=1>0.001</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0.999</td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>non-AdaShift</td><td rowspan=1 colspan=1>0.001</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0.999</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>max-AdaShift</td><td rowspan=1 colspan=1>0.01</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0.999</td><td rowspan=1 colspan=1>1</td></tr></table>
635
+
636
+ Table 6: Hyper-parameter setting of Multilayer Perceptron on MNIST in Figure 3.
637
+
638
+ <table><tr><td rowspan=1 colspan=1>Optimizer</td><td rowspan=1 colspan=1>learning rate</td><td rowspan=1 colspan=1>β1</td><td rowspan=1 colspan=1>β2</td><td rowspan=1 colspan=1>n</td></tr><tr><td rowspan=1 colspan=1>SGD</td><td rowspan=1 colspan=1>0.001</td><td rowspan=1 colspan=1>N/A</td><td rowspan=1 colspan=1>N/A</td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>Adam</td><td rowspan=1 colspan=1>0.001</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0.999</td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>AMSGrad</td><td rowspan=1 colspan=1>0.001</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0.999</td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>non-AdaShift</td><td rowspan=1 colspan=1>0.0005</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0.999</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>max-AdaShift</td><td rowspan=1 colspan=1>0.01</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0.999</td><td rowspan=1 colspan=1>1</td></tr></table>
639
+
640
+ Table 7: Hyper-parameter setting of WGAN-GP in Figure 7a.
641
+
642
+ <table><tr><td rowspan=1 colspan=1>Optimizer</td><td rowspan=1 colspan=1>learning rate</td><td rowspan=1 colspan=1>β1</td><td rowspan=1 colspan=1>β</td><td rowspan=1 colspan=1>n</td></tr><tr><td rowspan=1 colspan=1>Adam</td><td rowspan=1 colspan=1>1e-5</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0.999</td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>AMSGrad</td><td rowspan=1 colspan=1>1e-5</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0.999</td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>AdaShift</td><td rowspan=1 colspan=1>1.5e-4</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0.999</td><td rowspan=1 colspan=1>1</td></tr></table>
643
+
644
+ Table 8: Hyper-parameter setting of Neural Machine Translation BLEU in Figure 7b.
645
+
646
+ <table><tr><td rowspan=1 colspan=1>Optimizer</td><td rowspan=1 colspan=1>learning rate</td><td rowspan=1 colspan=1>β1</td><td rowspan=1 colspan=1>β</td><td rowspan=1 colspan=1>n</td></tr><tr><td rowspan=1 colspan=1>Adam</td><td rowspan=1 colspan=1>0.0001</td><td rowspan=1 colspan=1>0.9</td><td rowspan=1 colspan=1>0.999</td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>AMSGrad</td><td rowspan=1 colspan=1>0.0001</td><td rowspan=1 colspan=1>0.9</td><td rowspan=1 colspan=1>0.999</td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>AdaShift</td><td rowspan=1 colspan=1>0.01</td><td rowspan=1 colspan=1>0.9</td><td rowspan=1 colspan=1>0.999</td><td rowspan=1 colspan=1>30</td></tr></table>
647
+
648
+ Table 9: Hyper-parameter setting of ResNet on Cifar-10 in Figure 4, DenseNet on Cifar-10 in Figure 5 and DenseNet on Tiny-Imagenet in Figure 6.
649
+
650
+ <table><tr><td rowspan=1 colspan=1>Optimizer</td><td rowspan=1 colspan=1>learning rate</td><td rowspan=1 colspan=1>β1</td><td rowspan=1 colspan=1>β</td><td rowspan=1 colspan=1>n</td></tr><tr><td rowspan=1 colspan=1>Adam</td><td rowspan=1 colspan=1>0.001</td><td rowspan=1 colspan=1>0.9</td><td rowspan=1 colspan=1>0.999</td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>AMSGrad</td><td rowspan=1 colspan=1>0.001</td><td rowspan=1 colspan=1>0.9</td><td rowspan=1 colspan=1>0.999</td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>AdaShift</td><td rowspan=1 colspan=1>0.01</td><td rowspan=1 colspan=1>0.9</td><td rowspan=1 colspan=1>0.999</td><td rowspan=1 colspan=1>10</td></tr></table>
651
+
652
+ # I.2 LEARNING RATE $\alpha _ { t }$ SENSITIVITY
653
+
654
+ In this section, we discuss the learning rate $\alpha _ { t }$ sensitivity of AdaShift. We set $\alpha _ { t } \in$ $\{ 0 . 1 , 0 . 0 1 , 0 . 0 0 1 \}$ and let $n = 1 0$ , $\beta _ { 1 } = 0 . 9$ and $\beta _ { 2 } ~ = ~ 0 . 9 9 9$ . The results are shown in Figure 9 and Figure 10. Empirically, we found that when using the max spatial operation, the best learning rate for AdaShift is around ten times of Adam.
655
+
656
+ ![](images/4909f0aa650c12fc621d18f78fa81dcc3607d1662116578f1074f92971972268.jpg)
657
+ Figure 9: Learning rate sensitivity experiment with ResNet on CIFAR-10.
658
+
659
+ ![](images/b8da852604c7acdfb7df1f564048ada98e0832aedd7a2fde94e219b89deaa30d.jpg)
660
+ Figure 10: Learning rate sensitivity experiment with DenseNet on CIFAR-10.
661
+
662
+ # I.3 $\beta _ { 1 }$ AND $\beta _ { 2 }$ SENSITIVITY
663
+
664
+ In this section, we discuss the $\beta _ { 1 }$ and $\beta _ { 2 }$ sensitivity of AdaShift. We set $\alpha = 0 . 0 1$ , $n = 1 0$ and let $\beta _ { 1 } \in \{ 0 , 0 . 9 \}$ and $\beta _ { 2 } \in \{ 0 . 9 , 0 . 9 9 , 0 . 9 9 9 \}$ . The results are shown in Figure 11 and Figure 12. According to the results, AdaShift holds a low sensitivity to $\beta _ { 1 }$ and $\beta _ { 2 }$ . In some tasks, using the first moment estimation (with $\beta _ { 1 } = 0 . 9$ and $n = 1 0$ ) or using a large $\beta _ { 2 }$ , e.g., 0.999 can attain better performance. The suggested parameters setting is $n = 1 0 , \beta _ { 1 } = 0 . 9 , \beta _ { 2 } = 0 . 9 9 9$ .
665
+
666
+ ![](images/8e7bb46a383387bd3524591b4c8cb89de059dd625839a1a322e4e80b19df406a.jpg)
667
+ Figure 11: $\beta _ { 1 }$ and $\beta _ { 2 }$ sensitivity experiment with ResNet on CIFAR-10.
668
+
669
+ ![](images/c85774be92122c65af3a80fbb5f0fd00083975edd04234d9d8b32b7a218d3fa2.jpg)
670
+ Figure 12: $\beta _ { 1 }$ and $\beta _ { 2 }$ sensitivity experiment with DenseNet on CIFAR-10.
671
+
672
+ # I.4 $n$ AND $m$ SENSITIVITY
673
+
674
+ In this section, we discuss the $n$ sensitivity of AdaShift. Here we also test a extended version of first moment estimation where it only uses the latest $m$ gradients $( m \leq n )$ ):
675
+
676
+ $$
677
+ v _ { t } = \beta _ { 2 } v _ { t - 1 } + ( 1 - \beta _ { 2 } ) \phi ( g _ { t - n } ^ { 2 } ) \mathrm { a n d } m _ { t } = \frac { \sum _ { i = 0 } ^ { m - 1 } \beta _ { 1 } ^ { i } g _ { t - i } } { \sum _ { i = 0 } ^ { m - 1 } \beta _ { 1 } ^ { i } } .
678
+ $$
679
+
680
+ We set $\beta _ { 1 } = 0 . 9$ , $\beta _ { 2 } = 0 . 9 9 9$ . The results are shown in Figure 13, Figure 14 and Figure 15. In these experiments, AdaShift is fairly stable when changing $n$ and $m$ . We have not find a clear pattern on the performance change with respect to $n$ and $m$ .
681
+
682
+ ![](images/d20198ba19bd14cdcebb3328bf7211062951399b92c25c689d8ae862a767a33d.jpg)
683
+ Figure 13: $n$ sensitivity experiment with DenseNet on Tiny-ImageNet.
684
+
685
+ ![](images/80fcf03bfa6bd2d8ab43b04564de3c04dd7e155e690a450f03c7072bfad35f30.jpg)
686
+ Figure 14: $m$ sensitivity experiment with DenseNet on Tiny-ImageNet.
687
+
688
+ ![](images/032e91db08eeaebf993a78a6617028a753cd2e2342db789dd673befa4d40ad36.jpg)
689
+ Figure 15: $n$ and $m$ sensitivity experiment with Neural Machine Translation BLEU.
690
+
691
+ # J TEMPORAL-ONLY AND SPATIAL-ONLY
692
+
693
+ In our proposed algorithm, we apply a spatial operation on the temporally shifted gradient $g _ { t - n }$ to update $v _ { t }$ : $v _ { t } [ i ] \ \stackrel { } { = } \ \beta _ { 2 } v _ { t - 1 } [ i ] \ \stackrel { } { + } \ ( 1 - \stackrel { } { \beta } _ { 2 } ) \phi ( g _ { t - n } ^ { \bar { 2 } } [ i ] )$ . It is based on the temporal independent assumption, i.e., $g _ { t - n }$ is independent of $g _ { t }$ . And according to our argument in Section 4.2, one can further assume every element in $g _ { t - n }$ is independent of the $i$ -th dimension of $g _ { t }$ .
694
+
695
+ We purposely avoid involving the spatial elements of the current gradient $g _ { t }$ , where the independence might not holds: when a sample which is rare and has a large gradient appear in the mini-batch $x _ { t }$ , the overall scale of gradient $g _ { t }$ might increase. However, for the temporally already decorrelation $g _ { t - i }$ , further taking the advantage of the spatial irrelevance will not suffer from this problem.
696
+
697
+ We here provide extended experiments on two variants of AdaShift: (i) AdaShift (temporal-only), which only uses the vanilla temporal independent assumption and evaluate $v _ { t }$ with: $v _ { t } = \beta _ { 2 } v _ { t - 1 } +$ $( 1 - \beta _ { 2 } ) g _ { t - n } ^ { \bar { 2 } }$ ; (ii) AdaShift (spatial-only), which directly uses the spatial elements without temporal shifting.
698
+
699
+ ![](images/43ded6d429086b1ca8120caff4411bc4247d739e2994a25a060cb2893c8638e1.jpg)
700
+ Figure 16: ResNet on CIFAR-10.
701
+
702
+ ![](images/158ec95ec8fc937fd7d74963d4f18458944c13d5eb1ae5f51ab36073ab513882.jpg)
703
+ Figure 17: DenseNet on CIFAR-10.
704
+
705
+ According to our experiments, AdaShift (temporal-only), i.e., without the spatial operation, is less stable than AdaShift. In some tasks, AdaShift (temporal-only) works just fine; while in some other cases, AdaShift (temporal-only) suffers from explosive gradient and requires a relatively small learning rate. The performance of AdaShift (spatial-only) is close to Adam. More experiments for AdaShift (spatial-only) are included in the next section.
706
+
707
+ # K EXTENDED EXPERIMENTS: NADAM AND ADASHIFT(SPACE ONLY)
708
+
709
+ In this section, we extend the experiments and add the comparisons with Nadam and AdaShift (spatial-only). The results are shown in Figure 18, Figure19 and Figure20. According to these experiments, Nadam and AdaShift (spatial-only) share similar performence as Adam.
710
+
711
+ ![](images/f143612acf98740673c3532f8adbc8d7dd054de401589894b586c34337d21efc.jpg)
712
+ Figure 18: ResNet on CIFAR-10.
713
+
714
+ ![](images/273296fa14c86b0b96fb32df1e7c0c51ee384892d3a7f05744a0a7cb2f0953de.jpg)
715
+ Figure 19: DenseNet on CIFAR-10.
716
+
717
+ ![](images/5ffcc99112b37cf81aa8293c8c94951ff38d3378e1f9e80a0298167ffab3d8c4.jpg)
718
+ Figure 20: DenseNet on Tiny-ImageNet.
719
+
720
+ Rahimi & Recht raise the point, at test of time talk at NIPS 2017, that it is suspicious that gradient descent (aka back-propagation) is ultimate solution for optimization. A ill-conditioned quadratic problem with Two Layer Linear Net is showed to be challenging for gradient descent based methods, while alternative solutions, e.g., Levenberg-Marquardt, may converge faster and better. The problem is defined as follows:
721
+
722
+ $$
723
+ L ( W _ { 1 } , W _ { 2 } ; A ) = \mathbb { E } _ { x \in N ( 0 , 1 ) } \| W _ { 1 } W _ { 2 } x - A x \| ^ { 2 }
724
+ $$
725
+
726
+ where $A$ is some known badly conditioned matrix $k = 1 0 ^ { 2 0 }$ or $1 0 ^ { 5 }$ ), and $W _ { 1 }$ and $W _ { 2 }$ are the trainable parameters.
727
+
728
+ We test SGD, Adam and AdaShift with this problem, the results are shown in Figure 21, Figure 24. It turns out as long as the training goes enough long, SGD, Adam, AdaShift all basically converge in this problem. Though SGD is significantly better than Adam and AdaShift.
729
+
730
+ We would tend to believe this is a general issue of adaptive learning rate method when comparing with vanilla SGD. Because these adaptive learning rate methods generally are scale-invariance, i.e., the step-size in terms of $g _ { t } / s q r t ( v _ { t } )$ is basically around one, which makes it hard to converge very well in such a ill-conditioning quadratic problem. SGD, in contrast, has a step-size $g _ { t }$ ; as the training converges SGD would have a decreasing step-size, makes it much easier to converge better. The above analysis is confirmed with Figure 22 and Figure 23, with a decreasing learning rate, Adam and AdaShfit both converge very good.
731
+
732
+ ![](images/0c76e5cd1e56d1881ec8ccb489a5bb4f769063ad71e849b3d967357413f9a967.jpg)
733
+ Figure 21: Ill-conditioned quadratic problem, with fixed learning rate.
734
+
735
+ ![](images/2785842fb7b0951df69a97b128b1108c050d819477f6f3c3d5d7ec9e9a9350a5.jpg)
736
+ Figure 22: Ill-conditioned quadratic problem, with linear learning rate decay.
737
+
738
+ ![](images/f2186ddf0b881239064971896f44276acbdcf14a8b799ac08027a20feeda9590.jpg)
739
+ Figure 23: Ill-conditioned quadratic problem, with exp learning rate decay.
740
+
741
+ ![](images/4dbbb975886d297abc8b0d28430ec3c5c80fe7e38ec1e751180a99fb8124666c.jpg)
742
+ Figure 24: Ill-conditioned quadratic problem, with fixed learning rate and insufficient iterations.
parse/train/HkgTkhRcKQ/HkgTkhRcKQ_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkgTkhRcKQ/HkgTkhRcKQ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkgTkhRcKQ/HkgTkhRcKQ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJgMK64Ywr/SJgMK64Ywr.md ADDED
@@ -0,0 +1,283 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ASSEMBLENET: SEARCHING FOR MULTI-STREAM NEURAL CONNECTIVITY IN VIDEO ARCHITECTURES
2
+
3
+ Michael S. Ryoo1,2, AJ Piergiovanni1,2,3, Mingxing Tan2 & Anelia Angelova1,2
4
+
5
+ 1Robotics at Google
6
+ 2Google Research
7
+ 3Indiana University Bloomington
8
+ mryoo@google.com
9
+
10
+ # ABSTRACT
11
+
12
+ Learning to represent videos is a very challenging task both algorithmically and computationally. Standard video CNN architectures have been designed by directly extending architectures devised for image understanding to include the time dimension, using modules such as 3D convolutions, or by using two-stream design to capture both appearance and motion in videos. We interpret a video CNN as a collection of multi-stream convolutional blocks connected to each other, and propose the approach of automatically finding neural architectures with better connectivity and spatio-temporal interactions for video understanding. This is done by evolving a population of overly-connected architectures guided by connection weight learning. Architectures combining representations that abstract different input types (i.e., RGB and optical flow) at multiple temporal resolutions are searched for, allowing different types or sources of information to interact with each other. Our method, referred to as AssembleNet, outperforms prior approaches on public video datasets, in some cases by a great margin. We obtain $5 8 . 6 \%$ mAP on Charades and $3 4 . 2 7 \%$ accuracy on Moments-in-Time.
13
+
14
+ # 1 INTRODUCTION
15
+
16
+ Learning to represent videos is a challenging problem. Because a video contains spatio-temporal data, its representation is required to abstract both appearance and motion information. This is particularly important for tasks such as activity recognition, as understanding detailed semantic contents of the video is needed. Previously, researchers approached this challenge by designing a two-stream model for appearance and motion information respectively, combining them by late or intermediate fusion to obtain successful results: Simonyan & Zisserman (2014); Feichtenhofer et al. (2016b;a; 2017; 2018). However, combining appearance and motion information is an open problem and the study on how and where different modalities should interchange representations and what temporal aspect/resolution each stream (or module) should focus on has been very limited.
17
+
18
+ In this paper, we investigate how to learn feature representations across spatial and motion visual clues. We propose a new multi-stream neural architecture search algorithm with connection learning guided evolution, which focuses on finding higher-level connectivity between network blocks taking multiple input streams at different temporal resolutions. Each block itself is composed of multiple residual modules with space-time convolutional layers, learning spatio-temporal representations. Our architecture learning not only considers the connectivity between such multi-stream, multi-resolution blocks, but also merges and splits network blocks to find better multi-stream video CNN architectures. Our objective is to address two main questions in video representation learning: (1) what feature representations are needed at each intermediate stage of the network and at which resolution and (2) how to combine or exchange such intermediate representations (i.e., connectivity learning). Unlike previous neural architecture search methods for images that focus on finding a good ‘module’ of convolutional layers to be repeated in a single-stream networks (Zoph et al., 2018; Real et al., 2019), our objective is to search for higher-level connections between multiple sequential or concurrent blocks to form multi-stream architectures.
19
+
20
+ We propose the concept of AssembleNet, a new method of fusing different sub-networks with different input modalities and temporal resolutions. AssembleNet is a general formulation that allows representing various forms of multi-stream CNNs as directed graphs, coupled with an efficient evolutionary algorithm to explore the network connectivity. Specifically, this is done by utilizing the learned connection weights to guide evolution, in addition to randomly combining, splitting, or connecting sub-network blocks. AssembleNet is a ‘family’ of learnable architectures; they provide a generic approach to learn connectivity among feature representations across input modalities, while being optimized for the target task. We believe this is the first work to (i) conduct research on automated architecture search with multi-stream connections for video understanding, and (ii) introduce the new connection-learning-guided evolutionary algorithm for neural architecture search.
21
+
22
+ ![](images/86acc0df5d6ad2360fb3f4e70dbfe72203edd22f47c166a12055c9b3d50d9f2c.jpg)
23
+ Figure 1: AssembleNet with multiple intermediate streams. Example learned architecture. Darker colors of connections indicate stronger connections. At each convolutional block, multiple 2D and $( 2 + 1 ) \mathrm { D }$ residual modules are repeated alternatingly. Our network has 4 block levels $^ +$ the stem level connected to raw data). Each convolutional block has its own output channel size (i.e., the number of filters) $C$ and the temporal resolution $r$ controlling the 1D temporal convolutional layers in it.
24
+
25
+ Figure 1 shows an example learned AssembleNet. The proposed algorithm for learning video architectures is very effective: it outperforms all prior work and baselines on two very challenging benchmark datasets, and establishes a new state-of-the-art. AssembleNet models use equivalent number of parameters to standard two-stream $( 2 + 1 ) \mathrm { D }$ ResNet models.
26
+
27
+ # 2 PREVIOUS WORK
28
+
29
+ A video is a spatio-temporal data (i.e., image frames concatenated along time axis), and its representation must abstract both spatial and temporal information. Full 3D space-time (i.e., XYT) convolutional layers as well as $( 2 + 1 ) \mathrm { D }$ convolutional layers have been popularly used to represent videos (Tran et al., 2014; Carreira & Zisserman, 2017; Tran et al., 2018; Xie et al., 2018). Researchers studied replacing 2D convolutional layers in standard image-based CNNs such as Inception (Szegedy et al., 2016) and ResNet (He et al., 2016), so that it can be directly used for video classification.
30
+
31
+ Two-stream network designs, which combine motion and appearance inputs, are commonly used (e.g., Simonyan & Zisserman, 2014; Feichtenhofer et al., 2016a; 2017; 2016b). Combining appearance information at two different temporal resolutions (e.g., 24 vs. 3 frames per second) with intermediate connections has been proposed by Feichtenhofer et al. (2018). Late fusion of the two-stream representations or architectures with more intermediate connections (Diba et al., 2019), have also been explored. However, these video CNN architectures are the result of careful manual designs by human experts.
32
+
33
+ Neural Architecture Search (NAS), the concept of automatically finding better architectures based on data, is becoming increasingly popular (Zoph & Le, 2017; Zoph et al., 2018; Liu et al., 2018). Rather than relying on human expert knowledge to design a CNN model, neural architecture search allows the machines to generate better performing models optimized for the data. The use of reinforcement learning controllers (Zoph & Le, 2017; Zoph et al., 2018) as well as evolutionary algorithms (Real et al., 2019) have been studied, and they meaningfully outperform handcrafted architectures. Most of these works focus on learning architectures of modules (i.e., groupings of layers and their connections) to be repeated within a fixed single-stream meta-architecture (e.g., ResNet) for image-based object classification. One-shot architecture search to learn differentiable connections (Bender et al., 2018; Liu et al., 2019) has also been successful for images. However, it is very challenging to directly extend such work to find multi-stream models for videos, as it requires preparing all possible layers and interactions the final architecture may consider using. In multi-stream video CNNs, there are many possible convolutional blocks with different resolutions, and fully connecting them requires a significant amount of memory and training data, which makes it infeasible.
34
+
35
+ Our work is also related to Ahmed & Torresani (2017) which used learnable gating to connect multiple residual module branches, and to the RandWire network (Xie et al., 2019), which showed that randomly connecting a sufficient number of convolutional layers creates performant architectures. However, similar to previous NAS work, the latter focuses only on generating connections between the layers within a block. The meta-architecture is fixed as a single stream model with a single input modality. In this work, our objective is to learn high-level connectivity between multi-stream blocks for video understanding driven by data. We confirm experimentally that in the multi-stream video CNNs, where multiple types of input modalities need to be considered at various resolutions, randomly connecting blocks is insufficient and the proposed architecture learning strategy is necessary.
36
+
37
+ # 3 ASSEMBLENET
38
+
39
+ We propose a new principled way to find better neural architectures for video representation learning. We first expand a video CNN to a multi-resolution, multi-stream model composed of multiple sequential and concurrent neural blocks, and introduce a novel algorithm to search for the optimal connectivity between the blocks for a given task.
40
+
41
+ We model a video CNN architecture as a collection of convolutional blocks (i.e., sub-networks) connected to each other. Each block is composed of a residual module of space-time convolutional layers repeated multiple times, while having its own temporal resolution. The objective of our video architecture search is to automatically (1) decide the number of parallel blocks (i.e., how many streams to have) at each level of the network, (2) choose their temporal resolutions, and (3) find the optimal connectivity between such multi-stream neural blocks across various levels. The highly interconnected convolutional blocks allow learning of the video representations combining multiple input modalities at various temporal resolutions. We introduce the concept of connection-learningguided architecture evolution to enable multi-stream architecture search.
42
+
43
+ We name our final architecture as an ‘AssembleNet’, since it is formulated by assembling (i.e., merging, splitting, and connecting) multiple building blocks.
44
+
45
+ # 3.1 GRAPH FORMULATION
46
+
47
+ In order to make our neural architecture evolution consider multiple different streams with different modalities at different temporal resolutions, we formulate the multi-stream model as a directed acyclic graph. Each node in the graph corresponds to a sub-network composed of multiple convolutional layers (i.e., a block), and the edges specify the connections between such sub-networks. Each architecture is denoted as $G _ { i } = ( \bar { N } _ { i } , \bar { E _ { i } } )$ where $N _ { i } = \{ n _ { 0 i } , n _ { 1 i } , n _ { 2 i } , \cdot \cdot \cdot \}$ is the set of nodes and $E _ { i }$ is the set of edges defining their connectivity.
48
+
49
+ Nodes. A node in our graph representation is a ResNet block composed of a fixed number of interleaved 2D and $( 2 + 1 ) \mathrm { D }$ residual modules. A ‘2D module’ is composed of a 1x1 conv. layer, one 2D conv. layer with filter size 3x3, and one 1x1 convolutional layer. A $( 2 + 1 ) \mathrm { D }$ module’ consists of a temporal 1D convolutional layer (with filter size 3), a 2D conv. layer, and a 1x1 conv. layer. In each block, we repeat a regular 2D residual module followed by the $( 2 + 1 ) \mathrm { D }$ residual module $m$ times.
50
+
51
+ Each node has its own block level, which naturally decides the directions of the edges connected to it. Similar to the standard ResNet models, we made the nodes have a total of four block levels ( $^ +$ the stem level). Having multiple nodes of the same level means the architecture has multiple parallel ‘streams’. Figure 1 illustrates an example. Each level has a different $m$ value: 1.5, 2, 3, and 1.5. $m = 1 . 5$ means that there is one 2D module, one $( 2 + 1 ) \mathrm { D }$ module, and one more 2D module. As a result, the depth of our network is 50 conv. layers. We also have a batch normalization layer followed by a ReLU after every conv. layer.
52
+
53
+ There are two special types of nodes with different layer configurations: source nodes and sink nodes. A source node in the graph directly takes the input and applies a small number of convolutional/pooling layers (it is often referred as the ‘stem’ of a CNN model). In video CNNs, the input is a 4D tensor (XYT $^ +$ channel) obtained by concatenating either RGB frames or optical flow images along the time axis. Source nodes are treated as level-0 nodes. The source node is composed of one 2D conv. layer of filter size $7 \mathbf { x } 7$ , one 1D temporal conv. layer of filter size 5, and one spatial max pooling layer. The 1D conv. is omitted in optical flow stems. A sink node generates the final output of the model, and it is composed of one pooling, one fully connected, and one softmax layer. The sink node is also responsible for combining the outputs of multiple nodes at the highest level, by concatenating them after the pooling. More details are provided in Appendix.
54
+
55
+ Each node in the graph also has two attributes controlling the convolutional block: its temporal resolution and the number of channels. We use temporally dilated 1D convolution to dynamically change the resolution of the temporal convolutional layers in different blocks, which are discussed more below. The channel size (i.e., the number of filters) of a node could take arbitrary values, but we constrain the sum of the channels of all nodes in the same block level to be a constant so that the capacity of an AssembleNet model is equivalent to a ResNet model with the same number of layers.
56
+
57
+ Temporally Dilated 1D Convolution. One of the objectives is to allow the video architectures to look at multiple possible temporal resolutions. This could be done by preparing actual videos with different temporal resolutions as in Feichtenhofer et al. (2018) or by using temporally ‘dilated convolutions as we introduce here. Having dilated filters allow temporal 1D conv. layers to focus on different temporal resolution without losing temporal granularity. This essentially is a 1D temporal version of standard 2D dilated convolutions used in Chen et al. (2018) or Yu & Koltun (2016):
58
+
59
+ Let $k$ be a temporal filter (i.e., a vector) with size $2 d + 1$ . The dilated convolution operator $* _ { r }$ is similar to regular convolution but has different steps for the summation, described as:
60
+
61
+ $$
62
+ ( F * _ { r } k ) ( t ) = \sum _ { t _ { 1 } + r t _ { 2 } = t } F ( t _ { 1 } ) k ( t _ { 2 } + d )
63
+ $$
64
+
65
+ where $t$ , $t _ { 1 }$ , and $t _ { 2 }$ are time indexes. $r$ indicates the temporal resolution (or the amount of dilation), and the standard 1D temporal convolution is a special case where $r = 1$ . In the actual implementation, this is done by inserting $r - 1$ number of zeros between each element of $k$ to generate $k ^ { \prime }$ , and then convolving such zero-inflated filters with the input: $F * _ { r } k = F * k ^ { \prime }$ . Importantly, the use of the dilated convolution allows different intermediate sub-network blocks (i.e., not just input stems) to focus on very different temporal resolutions at different levels of the convolutional architecture.
66
+
67
+ Note that our temporally dilated convolution is different from the one used in Lea et al. (2017), which designed a specific layer to combine representations from different frames with various step sizes. Our layers dilate the temporal filters themselves. Our dilated convolution can be viewed as a direct temporal version of the standard dilated convolutions used in Chen et al. (2018); Yu & Koltun (2016).
68
+
69
+ Edges. Each directed edge specifies the connection between two sub-network blocks, and it describes how a representation is transferred from one block to another block. We constrain the direction of each edge so that it is connected from a lower level block to a higher level block to avoid forming a cycle and allow parallel streams. A node may receive inputs from any number of lower-level nodes (including skip connections) and provide its output to any number of higher-level nodes.
70
+
71
+ Our architectures use a (learnable) weighted summation to aggregate inputs given from multiple connected nodes. That is, an input to a node is computed as $F ^ { i n } = \Sigma _ { i }$ sigmoid $( w _ { i } ) \cdot F _ { i } ^ { o u t }$ , where $F _ { i } ^ { o u t }$ are output tensors (i.e., representations) of the nodes connected to the node and $w _ { i }$ are their corresponding weights. Importantly, each $w _ { i }$ is considered as a variable that has to be learned from training data through back propagation. This has two key advantages compared to conventional feature map concatenation: (i) The input tensor size is consistent regardless of the number of connections. (ii) We use learned connection weights to ‘guide’ our architecture evolution algorithm in a preferable way, which we discuss more in Section 3.2.
72
+
73
+ If the inputs from different nodes differ in their spatial size, we add spatial max pooling and striding to match their spatial size. If the inputs have different channel sizes, we add a 1x1 conv. layer to match the bigger channel size. Temporal sizes of the representations is always consistent in our graphs, as there is no temporal striding in our formulation and the layers in the nodes are fully convolutional.
74
+
75
+ ![](images/194c3d7588b709dce9d1701e42c4db805139f652c555b67dd26f782fa6908d2d.jpg)
76
+ Figure 2: An example showing a sequence of architecture evolution. These architectures have actual parent-child relationships. The fitness of the third model was worse than the second model (due to random mutations), but it was high enough to survive in the population pool and eventually evolve into a better model.
77
+
78
+ # 3.2 EVOLUTION
79
+
80
+ We design an evolutionary algorithm with discrete mutation operators that modify nodes and edges in architectures over iterations. The algorithm maintains a population of $P$ different architectures, $P = \{ G _ { 1 } , G _ { 2 } , \cdot \cdot \cdot , G _ { | P | } \}$ , where each architecture $G$ is represented with a set of nodes and their edges as described above.
81
+
82
+ The initial population is formed by preparing a fixed number of randomly connected architectures (e.g., $| P | = 2 0 ,$ ). Specifically, we (1) prepare a fixed number of stems and nodes at each level (e.g., two per level), (2) apply a number of node split/merge mutation operators which we discuss more below, and (3) randomly connect nodes with the probability $p = 0 . 5$ while discarding architectures with graph depth $< 4$ . As mentioned above, edges are constrained so that there is no directed edge reversing the level ordering. Essentially, a set of overly-connected architectures are used as a starting point. Temporal resolutions are randomly assigned to the nodes.
83
+
84
+ We use the tournament selection algorithm (Goldberg & Deb, 1991) as the main evolution framework: At each evolution round, the algorithm updates the population by selecting a ‘parent’ architecture and mutating (i.e., modifying) it to generate a new ‘child’ architecture. The parent is selected by randomly sampling a subset of the entire population $P ^ { \prime } \subset P$ , and then computing the architecture with the highest ‘fitness’: $G _ { p } = \mathrm { a r g m a x } _ { G _ { i } \in P ^ { \prime } } f ( G _ { i } )$ where $f ( G )$ is the fitness function. Our fitness is defined as a video classification accuracy of the model, measured by training the model with a certain number of initial iterations and then evaluating it on the validation set as its proxy task. More specifically, we use top-1 accuracy $^ +$ top-5 accuracy as the fitness function. The child is added into the population, and the model with the least fitness is discarded from the population.
85
+
86
+ A child is evolved from the parent by following two steps. First, it changes the block connectivity (i.e., edges) based on their learned weights: ‘connection-learning-guided evolution’. Next, it applies a random number of mutation operators to further modify the node configuration. The mutation operators include (1) a random modification of the temporal resolution of a convolutional block (i.e., a node) as well as (2) a merge or split of a block. When splitting a node into two nodes, we make their input/output connections identical while making the number of channels in their convolutional layers half that of the node before the split (i.e., $C = C _ { p } / 2$ where $C _ { p }$ is the channel size of the parent). More details are found in Appendix. As a result, we maintain the total number of parameters, since splitting or merging does not change the number of parameters of the convolutional blocks.
87
+
88
+ Connection-Learning-Guided Mutation. Instead of randomly adding, removing or modifying block connections to generate the child architecture, we take advantage of the learned connection weights from its parent architecture. Let $E _ { p }$ be the set of edges of the parent architecture. Then the edges of the child architecture $E _ { c }$ are inherited from $E _ { p }$ , by only maintaining high-weight connections while replacing the low-weight connections with new random ones. Specifically, $E _ { c } = E _ { c } ^ { 1 } \cup E _ { c } ^ { 2 }$ :
89
+
90
+ $$
91
+ E _ { c } ^ { 1 } = \left\{ e \in E _ { p } \mid W _ { e } > B \right\} , \quad E _ { c } ^ { 2 } = \left\{ e \in \left( E _ { * } - E _ { p } \right) \mid \frac { | E _ { p } - E _ { c } ^ { 1 } | } { | E - E _ { p } | } > X _ { e } \right\}
92
+ $$
93
+
94
+ where $X \sim \mathrm { u n i f } ( 0 , 1 )$ and $E _ { * }$ is the set of all possible edges. $E _ { c } ^ { 1 }$ corresponds to the edges the child architecture inherits from the parent architecture, decided based on the learned weight of the edge $W _ { e }$
95
+
96
+ ![](images/c1e825f4d108f3f9a43072bb9b56751de0658480b6cd479476bd11664238a9c4.jpg)
97
+ Figure 3: More AssembleNet examples. Similarly good performing diverse architectures, all with higher-than- $50 \%$ mean-average precision on Charades. For instance, even our simpler two-stem AssembleNet-50 (left) got $5 1 . 4 \%$ mAP on Charades. Darker edges mean higher weights.
98
+
99
+ This is possible because our fitness measure involves initial proxy training of each model, providing the learned connection weight values $W _ { e }$ of the parent.
100
+
101
+ $B$ , which controls whether or not to keep an edge from the parent architecture, could either be a constant threshold or a random variable following a uniform distribution: $B = b$ or $B = X _ { B } \sim$ unif $( 0 , 1 )$ . $E _ { c } ^ { 2 }$ corresponds to the new randomly added edges which were not in the parent architecture. We enumerate through each possible new edge, and randomly add it with the probably of $| E _ { p } -$ $E _ { c } ^ { 1 } | / | E - E _ { p } |$ . This makes the expected total number of added edges to be $| E _ { p } - E _ { c } ^ { 1 } |$ , maintaining the size of $E _ { c }$ . Figure 2 shows an example of the evolution process and Figure 3 shows final architectures.
102
+
103
+ Evolution Implementation Details. Initial architectures are formed by randomly preparing either $\{ 2 \mathrm { o r } 4 \}$ stems, two nodes per level at levels 1 to 3, and one node at level 4. We then apply $1 { \sim } 5$ random number of node split operators so that each initial architecture has a different number of nodes. Each node is initialized with a random temporal resolution of 1, 2, 4, or 8. As mentioned, each possible connection is then added with the probability of $p = 0 . 5$ .
104
+
105
+ At each evolution round, the best-performing parent architecture is selected from a random subset of 5 from the population. The child architecture is generated by modifying the connections from the parent architecture (Section 3.2). A random number of node split, merge, or temporal resolution change mutation operators $( 0 { \sim } 4 )$ are then applied. Evaluation of each architecture (i.e., measuring the fitness) is done by training the model for 10K iterations and then measuring its top- $1 + \mathrm { t o p } { - } 5$ accuracy on the validation subset. The Moments-in-Time dataset, described in the next section, is used as the proxy dataset to measure fitness. The evolution was run for ${ \sim } 2 0 0$ rounds, although a good performing architecture was found within only 40 rounds (e.g., Figure 3-right). Figure 1 shows the model found at the 165th round. 10K training iterations of each model during evolution took $3 { \sim } 5$ hours; with our setting, evolving a model for 40 rounds took less than a day with 10 parallel workers.
106
+
107
+ # 4 EXPERIMENTS
108
+
109
+ # 4.1 DATASETS
110
+
111
+ Charades Dataset. We first test on the popular Charades dataset (Sigurdsson et al., 2016) which is unique in the activity recognition domain as it contains long sequences. It is one of the largest public datasets with continuous action videos, containing 9848 videos of 157 classes (7985 training and 1863 testing videos). Each video is ${ \sim } 3 0 $ seconds. It is a challenging dataset due to the duration and variety of the activities. Activities may temporally overlap in a Charades video, requiring the model to predict multiple class labels per video. We used the standard ‘Charades v1 classify’ setting for the evaluation. To comply with prior work (e.g. Feichtenhofer et al., 2018), we also report results when pre-training on Kinetics (Carreira & Zisserman, 2017), which is another large-scale dataset.
112
+
113
+ Table 1: Reported state-of-the-art action classification performances (vs. AssembleNet) on Charades. ‘2-stream $( 2 + 1 ) \mathrm { D }$ ResNet-50’ is the two-stream model with connection learning for level-4 fusion.
114
+
115
+ <table><tr><td>Method</td><td>pre-train</td><td>modality</td><td>mAP</td></tr><tr><td>2-stream (Simonyan &amp; Zisserman, 2014)</td><td>UCF101</td><td>RGB+Flow</td><td>18.6</td></tr><tr><td>Asyn-TF (Sigurdsson et al., 2017)</td><td>UCF101</td><td>RGB+Flow</td><td>22.4</td></tr><tr><td>CoViAR (Wu et al., 2018b)</td><td>ImageNet</td><td>Compressed</td><td>21.9</td></tr><tr><td>MultiScale TRN (Zhou et al., 2018)</td><td>ImageNet</td><td>RGB</td><td>25.2</td></tr><tr><td>I3D (Carreira &amp; Zisserman, 2017)</td><td>Kinetics</td><td>RGB</td><td>32.9</td></tr><tr><td>I3D (from Wang et al., 2018)</td><td>Kinetics</td><td>RGB</td><td>35.5</td></tr><tr><td>I3D-NL (Wang et al., 2018)</td><td>Kinetics</td><td>RGB</td><td>37.5</td></tr><tr><td>STRG (Wang &amp; Gupta, 2018)</td><td>Kinetics</td><td>RGB</td><td>39.7</td></tr><tr><td>LFB-101 (Wu et al., 2018a)</td><td>Kinetics</td><td>RGB</td><td>42.5</td></tr><tr><td>SlowFast-1O1 (Feichtenhofer et al., 2018)</td><td>Kinetics</td><td>RGB+RGB</td><td>45.2</td></tr><tr><td>2-stream (2+1)D ResNet-50 (ours)</td><td>MiT</td><td>RGB+Flow</td><td>48.7</td></tr><tr><td>2-stream (2+1)D ResNet-50 (ours)</td><td>Kinetics</td><td>RGB+Flow</td><td>50.4</td></tr><tr><td>2-stream (2+1)D ResNet-101 (ours)</td><td>Kinetics</td><td>RGB+Flow</td><td>50.6</td></tr><tr><td>AssembleNet-50 (ours)</td><td>MiT</td><td>RGB+Flow</td><td>53.0</td></tr><tr><td>AssembleNet-50 (ours)</td><td>Kinetics</td><td>RGB+Flow</td><td>56.6</td></tr><tr><td>AssembleNet-101 (ours)</td><td>Kinetics</td><td>RGB+Flow</td><td>58.6</td></tr></table>
116
+
117
+ Table 2: State-of-the-art action classification accuracies on Moments in Time (Monfort et al., 2018).
118
+
119
+ <table><tr><td>Method</td><td>modality</td><td>Top-1</td><td>Top-5</td></tr><tr><td>ResNet50-ImageNet</td><td>RGB</td><td>27.16</td><td>51.68</td></tr><tr><td>TSN (Wang et al., 2016)</td><td>RGB</td><td>24.11</td><td>49.10</td></tr><tr><td>Ioffe &amp; Szegedy (2015)</td><td>Flow</td><td>11.60</td><td>27.40</td></tr><tr><td>TSN-Flow (Wang et al.,2016)</td><td>Flow</td><td>15.71</td><td>34.65</td></tr><tr><td>TSN-2Stream (Wang et al., 2016)</td><td>RGB+F</td><td>25.32</td><td>50.10</td></tr><tr><td>TRN-Multi (Zhou et al.,2018)</td><td>RGB+F</td><td>28.27</td><td>53.87</td></tr><tr><td>Two-stream (2+1)D ResNet-50</td><td>RGB+F</td><td>28.97</td><td>55.55</td></tr><tr><td>I3D (Carreira &amp; Zisserman,2017)</td><td>RGB+F</td><td>29.51</td><td>56.06</td></tr><tr><td>AssembleNet-50</td><td>RGB+F</td><td>31.41</td><td>58.33</td></tr><tr><td>AssembleNet-50 (with Kinetics)</td><td>RGB+F</td><td>33.91</td><td>60.86</td></tr><tr><td>AssembleNet-101 (with Kinetics)</td><td>RGB+F</td><td>34.27</td><td>62.71</td></tr></table>
120
+
121
+ ![](images/2c86efeaf42b69f2963779f0a8591a645031fcb5cfc9c26136087e6b04284d67.jpg)
122
+ Figure 4: Comparison of different search methods.
123
+
124
+ We note that Kinetics is shrinking in size $( \sim 1 5 \%$ videos removed from the original Kinetics-400) and the previous versions are no longer available from the official site.
125
+
126
+ Moments in Time (MiT) Dataset. The Moments in Time (MiT) dataset (Monfort et al., 2018) is a large-scale video classification dataset with more than 800K videos ${ \sim } 3$ seconds per video). It is a very challenging dataset with the state-of-the-art models obtaining less than $30 \%$ accuracy. We use this dataset for the architecture evolution, and train/test the evolved models. We chose the MiT dataset because it provides a sufficient amount of training data for video CNN models and allows stable comparison against previous models. We used its standard classification evaluation setting.
127
+
128
+ # 4.2 RESULTS
129
+
130
+ Tables 1 and 2 compare the performance of AssembleNet against the state-of-the-art models. We denote AssembleNet more specifically as AssembleNet-50, since its depth is 50 layers and has an equivalent number of parameters to ResNet-50. AssembleNet-101 is its 101 layer version having equivalent number of parameters to ResNet-101. AssembleNet is outperforming prior works on both datasets, setting new state-of-the-art results for them. Its performance on MiT is the first above $34 \%$ . We also note that the performances on Charades is even more impressive at 58.6 whereas previous known best results are 42.5 and 45.2. For these experiments, the architecture search was done on the MiT dataset, and then the found models are trained and tested on both datasets, which demonstrates that the found architectures are useful across datasets.
131
+
132
+ Table 3: Comparison between AssembleNet and architectures without evolution, but with connection weight learning. Four-stream models are reported here for the first time, and are very effective. All these models have a similar number of parameters.
133
+
134
+ <table><tr><td>Architecture</td><td>MiT Charades</td></tr><tr><td>Two-stream (late fusion) 28.97</td><td>46.5</td></tr><tr><td>Two-stream (fusion at lv. 4) Two-stream (flow-→RGB inter.)</td><td>30.00 48.7 30.21</td></tr><tr><td>Two-stream (fully, fuse at 4)</td><td>49.5 29.87 50.5</td></tr><tr><td>Four-stream (fully, fuse at 4)</td><td>29.98 50.7</td></tr><tr><td>Random (+ connection learning) 2</td><td>29.91 50.1</td></tr><tr><td>AssembleNet-50</td><td>31.41 53.0</td></tr></table>
135
+
136
+ Table 4: Ablation comparing different AssembleNet architectures found with full vs. constrained search spaces. The models are trained from scratch.
137
+
138
+ <table><tr><td>Architecture MiT</td></tr><tr><td>Baseline (random + conn. learning) 29.91</td></tr><tr><td>No mutation 30.26</td></tr><tr><td>RGB-only 30.30</td></tr><tr><td>Without temporal dilation 30.49</td></tr><tr><td>Two-stem only 30.75</td></tr><tr><td>Full AssembleNet-50 31.41</td></tr></table>
139
+
140
+ In addition, we compare the proposed connection-learning-guided evolution with random architecture search and the standard evolutionary algorithm with random connection mutations. We made the standard evolutionary algorithm randomly modify 1/3 of the total connections at each round, as that is roughly the number of edges the connection-learning-guided evolution modifies. Figure 4 shows the results, visualizing the average fitness score of the three top-performing models in each pool. We observe that the connection-learning-guided evolution is able to find better architectures, and it is able to do so more quickly. The standard evolution performs similarly to random search and is not as effective. We believe this is due to the large search space the approach is required to handle, which is exponential to the number of possible connections. For instance, if there are $N$ nodes, the search space complexity is $2 ^ { O ( N ^ { 2 } ) }$ just for the connectivity search. Note that the initial ${ \sim } 3 0 $ rounds are always used for random initialization of the model population, regardless of the search method.
141
+
142
+ # 4.3 ABLATION STUDIES
143
+
144
+ We conduct an ablation study comparing the evolved AssembleNet to multiple $( 2 + 1 ) \mathrm { D }$ two-stream (or multi-stream) architectures which are designed to match the abilities of Assemblenet but without evolution. We note that these include very strong architectures that have not been explored before, such as the four-stream model with dense intermediate connectivity. We design competitive networks having various connections between streams, where the connection weights are also learned (see the supplementary material for detailed descriptions and visualizations). Note that all these models have equivalent capacity (i.e., number of parameters). The performance difference is due to network structure. Table 3 shows the results, demonstrating that these architectures with learnable interconnectivity are very powerful themselves and evolution is further beneficial. The Moments in Time models were trained from scratch, and the Charades models were pre-trained on MiT. In particular, we evaluated an architecture with intermediate connectivity from the flow stream to RGB, inspired by Feichtenhofer et al. (2016b; 2018) $^ +$ connection weight learning). It gave $3 0 . 2 \%$ accuracy on MiT and $4 9 . 5 \%$ on Charades, which are not as accurate as AssembleNet. Randomly generated models (from 50 rounds of search) are also evaluated, confirming that such architectures do not perform well.
145
+
146
+ Further, we conduct another ablation to confirm the effectiveness of our search space. Table 4 compares the models found with our full search space vs. more constrained search spaces, such as only using two stems and not using temporal dilation (i.e., fixed temporal resolution).
147
+
148
+ # 4.4 GENERAL FINDINGS
149
+
150
+ As the result of connection-learning-guided architecture evolution, non-obvious and non-intuitive connections are found (Figure 3). As expected, more than one possible “connectivity” solution can yield similarly good results. Simultaneously, models with random connectivity perform poorly compared to the found AssembleNet. Our observations also include: (1) The models prefer to have only one block at the highest level, although we allow the search to consider having more than one block at that level. (2) The final block prefers simple connections gathering all outputs of the blocks in the 2nd to last level. (3) Many models use multiple blocks with different temporal resolutions at the same level, justifying the necessity of the multi-stream architectures. (4) Often, there are 1 or 2 blocks heavily connected to many other blocks. (5) Architectures prefer using more than 2 streams, usually using 4 at many levels.
151
+
152
+ # 5 CONCLUSION
153
+
154
+ We present AssembleNet, a new approach for neural architecture search using connection-learningguided architecture evolution. AssembleNet finds multi-stream architectures with better connectivity and temporal resolutions for video representation learning. Our experiments confirm that the learned models significantly outperform previous models on two challenging benchmarks.
155
+
156
+ # REFERENCES
157
+
158
+ Karim Ahmed and Lorenzo Torresani. Connectivity learning in multi-branch networks. In Workshop on Meta-Learning (MetaLearn), NeurIPS, 2017.
159
+
160
+ Gabriel Bender, Pieter-Jan Kindermans, Barret Zoph, Vijay Vasudevan, and Quoc Le. Understanding and simplifying one-shot architecture search. In International Conference on Machine Learning (ICML), 2018.
161
+
162
+ Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
163
+
164
+ Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L. Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE TPAMI, 40(4), 2018.
165
+
166
+ Ali Diba, Mohsen Fayyaz, Vivek Sharma, Manohar Paluri, Jurgen Gall, , Rainer Stiefelhagen, and Luc Van Gool. Holistic large scale video understanding. In CoRR:1904.11451, 2019.
167
+
168
+ Christoph Feichtenhofer, Axel Pinz, and Richard Wildes. Spatiotemporal residual networks for video action recognition. In Advances in Neural Information Processing Systems (NeurIPS), pp. 3468–3476, 2016a.
169
+
170
+ Christoph Feichtenhofer, Axel Pinz, and Andrew Zisserman. Convolutional two-stream network fusion for video action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1933–1941, 2016b.
171
+
172
+ Christoph Feichtenhofer, Axel Pinz, and Richard P Wildes. Spatiotemporal multiplier networks for video action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4768–4777, 2017.
173
+
174
+ Christoph Feichtenhofer, Haoqi Fan, Jitendra Malik, and Kaiming He. Slowfast networks for video recognition. arXiv preprint arXiv:1812.03982, 2018.
175
+
176
+ David E. Goldberg and Kalyanmoy Deb. A comparative analysis of selection schemes used in genetic algorithms. In Foundations of Genetic Algorithms, pp. 69–93. Morgan Kaufmann, 1991.
177
+
178
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
179
+
180
+ Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning (ICML), 2015.
181
+
182
+ Colin Lea, Michael D. Flynn, Rene Vidal, Austin Reiter, and Gregory D. Hager. Temporal convolutional networks for action segmentation and detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
183
+
184
+ Chenxi Liu, Barret Zoph, Maxim Neumann, Jonathon Shlens, Wei Hua, Li-Jia Li, Li Fei-Fei, Alan Yuille, Jonathan Huang, and Kevin Murphy. Progressive neural architecture search. In Proceedings of European Conference on Computer Vision (ECCV), 2018.
185
+
186
+ Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: Differentiable architecture seach. In International Conference on Learning Representations (ICLR), 2019.
187
+
188
+ Mathew Monfort, Alex Andonian, Bolei Zhou, Kandan Ramakrishnan, Sarah Adel Bargal, Tom Yan, Lisa Brown, Quanfu Fan, Dan Gutfruend, Carl Vondrick, et al. Moments in time dataset: one million videos for event understanding. arXiv preprint arXiv:1801.03150, 2018.
189
+
190
+ AJ Piergiovanni and Michael S Ryoo. Representation flow for action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
191
+
192
+ Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V. Le. Regularized evolution for image classifier architecture search. In Proceedings of AAAI Conference on Artificial Intelligence (AAAI), 2019.
193
+
194
+ Gunnar A. Sigurdsson, Gul Varol, Xiaolong Wang, Ali Farhadi, Ivan Laptev, and Abhinav Gupta. ¨ Hollywood in homes: Crowdsourcing data collection for activity understanding. In Proceedings of European Conference on Computer Vision (ECCV), 2016.
195
+
196
+ Gunnar A Sigurdsson, Santosh Divvala, Ali Farhadi, and Abhinav Gupta. Asynchronous temporal fields for action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
197
+
198
+ Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In Advances in Neural Information Processing Systems (NeurIPS), pp. 568–576, 2014.
199
+
200
+ Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2818–2826, 2016.
201
+
202
+ Du Tran, Lubomir D Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. C3d: generic features for video analysis. CoRR, abs/1412.0767, 2(7):8, 2014.
203
+
204
+ Du Tran, Heng Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6450–6459, 2018.
205
+
206
+ Limin Wang, Yuanjun Xiong, Zhe Wang, Yu Qiao, Dahua Lin, Xiaoou Tang, and Luc Van Gool. Temporal segment networks: Towards good practices for deep action recognition. In Proceedings of European Conference on Computer Vision (ECCV), pp. 20–36. Springer, 2016.
207
+
208
+ Xiaolong Wang and Abhinav Gupta. Videos as space-time region graphs. In Proceedings of European Conference on Computer Vision (ECCV), pp. 399–417, 2018.
209
+
210
+ Xiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 7794–7803, 2018.
211
+
212
+ Chao-Yuan Wu, Christoph Feichtenhofer, Haoqi Fan, Kaiming He, Philipp Krahenb ¨ uhl, and Ross Gir- ¨ shick. Long-term feature banks for detailed video understanding. arXiv preprint arXiv:1812.05038, 2018a.
213
+
214
+ Chao-Yuan Wu, Manzil Zaheer, Hexiang Hu, R Manmatha, Alexander J Smola, and Philipp Krahenb ¨ uhl. Compressed video action recognition. In ¨ Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6026–6035, 2018b.
215
+
216
+ Saining Xie, Chen Sun, Jonathan Huang, Zhuowen Tu, and Kevin Murphy. Rethinking spatiotemporal feature learning: Speed-accuracy trade-offs in video classification. In Proceedings of European Conference on Computer Vision (ECCV), pp. 305–321, 2018.
217
+
218
+ Saining Xie, Alexander Kirillov, Ross Girshick, and Kaiming He. Exploring randomly wired neural networks for image recognition. In CoRR:1904.01569, 2019.
219
+
220
+ Fisher Yu and Vladlen Koltun. Multi-scale context aggregation by dilated convolutions. In International Conference on Learning Representations (ICLR), 2016.
221
+
222
+ Christopher Zach, Thomas Pock, and Horst Bischof. A duality based approach for realtime tv-l 1 optical flow. In Joint Pattern Recognition Symposium, pp. 214–223. Springer, 2007.
223
+
224
+ Bolei Zhou, Alex Andonian, Aude Oliva, and Antonio Torralba. Temporal relational reasoning in videos. In Proceedings of European Conference on Computer Vision (ECCV), pp. 803–818, 2018.
225
+
226
+ Barret Zoph and Quoc Le. Neural architecture search with reinforcement learning. In International Conference on Learning Representations (ICLR), 2017.
227
+
228
+ Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V. Le. Learning transferable architectures for scalable image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
229
+
230
+ # A APPENDIX
231
+
232
+ # A.1 SUPER-GRAPH VISUALIZATION OF THE CONNECTIVITY SEARCH SPACE
233
+
234
+ Figure 5 visualizes all possible connections and channel/temporal resolution options our architecture evolution is able to consider. The objective of our evolutionary algorithm could be interpreted as finding the optimal sub-graph (of this super-graph) that maximizes the performance while maintaining the number of total parameters. Trying to directly fit such entire super-graph into the memory was infeasible in our experiments.
235
+
236
+ ![](images/ada175942c052a2ee09b2247ff89198586ec5515117df6d58adb8174098cc07c.jpg)
237
+ Figure 5: Visualization of the super-graph corresponding to our video architecture search space.
238
+
239
+ A.2 CHANNEL SIZES OF THE LAYERS AND NODE SPLIT/MERGE MUTATIONS
240
+
241
+ As we described in the paper, each node (i.e., a convolutional block) has a parameter $C$ controlling the number of filters of the convolutional layers in the block. When splitting or merging blocks, the number of filters are split or combined respectively. Figure 6 provides a visualization of a block with number of filter specified to the right and a split operation. While many designs are possible, we design the blocks and splitting as follows. The size of 1x1 convolutional layers and 1D temporal convolutional layers are strictly governed by $C$ , having the channel size of $C$ (some $4 C$ ). On the other hand, the number of 2D convolutional layer is fixed per level as a constant $D _ { v }$ where $v$ is the level of the block. $D _ { 1 } = 6 4$ , $D _ { 2 } = 1 2 8$ , $D _ { 3 } = 2 5 6$ , and $D _ { 4 } = 5 1 2$ . The layers in the stems have 64 channels if there are only two stems and 32 if there are four stems.
242
+
243
+ When a node is split into two nodes, we update the resulting two nodes’ channel sizes to be half of their original node. This enables us to maintain the total number of model parameters before and after the node split to be identical. The first 1x1 convolutional layer will have half the parameters after the split, since its output channel size is now 1/2. The 2D convolutional layer will also have exactly half the parameters, since its input channel size is $1 / 2$ while the output channel size is staying fixed. The next 1x1 convolutional layer will have the fixed input channel size while the output channel size becomes 1/2: thus the total number of parameters would be $1 / 2$ of the original parameters.
244
+
245
+ Merging of the nodes is done in an inverse of the way we split. When merging two nodes into one, the merged node inherits all input/output connections from the two nodes: we take a union of all the connections. The channel size of the merged node is the sum of the channel sizes of the two nodes being merged. The temporal dilation rate of the merged node is randomly chosen between the two nodes before the merge.
246
+
247
+ # A.3 HAND-DESIGNED MODELS USED IN THE ABLATION STUDY
248
+
249
+ Figure 7 illustrates the actual architectures of the hand-designed $( 2 + 1 ) \mathrm { D }$ CNN models used in our ablation study. We also show the final learned weights of the connections, illustrating which connections the model ended up using or not using. We note that these architectures are also very enlightening as the connectivity within them are learned in the process. We observe that stronger connections tend to be formed later for 2-stream architectures. For 4-stream architectures, stronger connections do form early, and, not surprisingly, a connection to at least one node of a different modality is established, i.e. a node stemming from RGB will connect to at least one flow node at the next level and vice versa.
250
+
251
+ ![](images/18130f671084e14cf9eacf7ef1ff26dd093fb31702ea9bb8a07aff6a4b8ea181.jpg)
252
+ Figure 6: An illustration of the node split mutation operator, used for both evolution and initial architecture population generation.
253
+
254
+ ![](images/f887a20794a882d74bdda474110c89e5d746f2f44ddc2b1095cc3fc5ef2ebbea.jpg)
255
+ Figure 7: Illustration of hand-designed baseline $( 2 + 1 ) \mathrm { D }$ CNN models used in our ablation study.
256
+
257
+ Below is a more detailed description of the networks used in the paper: “Two-stream (late fusion)” means that the model has two separate streams at every level including the level 4, and the outputs of such two level 4 nodes are combined for the final classification. “Fusion at lv. 4” is the model that only has one level 4 node to combine the outputs of the two level 3 nodes using a weighted summation. “Two-stream (fully)” means that the model has two nodes at each level 1-3 and one node at level 4, and each node is always connected to every node in the immediate next level. “Flow RGB” means that only the RGB stream nodes combine outputs from both RGB and flow stream nodes of the immediate lower level.
258
+
259
+ Table 5: The table form of the AssembleNet model with detailed parameters. This model corresponds to Figure 1. The parameters correspond to {node level, input node list, $C , r .$ , and spatial stride}
260
+
261
+ <table><tr><td rowspan=1 colspan=1>Index</td><td rowspan=1 colspan=1>Block parameters</td></tr><tr><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0,[RGB], 32, 4, 4</td></tr><tr><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0,[RGB], 32,4,4</td></tr><tr><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>0,[Flow], 32,1, 4</td></tr><tr><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>0,[Flow], 32, 1, 4</td></tr><tr><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>1, [1], 32, 1, 1</td></tr><tr><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>1, [0], 32, 4, 1</td></tr><tr><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1>1,[0,1,2,3], 32, 1,1</td></tr><tr><td rowspan=1 colspan=1>7</td><td rowspan=1 colspan=1>1,[2,3], 32,2, 1</td></tr><tr><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>2, [0, 4, 5, 6, 7], 64, 2, 2</td></tr><tr><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>2,[0,2,4,7],64,1,2</td></tr><tr><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>2, [0, 5, 7], 64, 4, 2</td></tr><tr><td rowspan=1 colspan=1>11</td><td rowspan=1 colspan=1>2, [0, 5], 64,1,2</td></tr><tr><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>3, [4, 8, 10, 11], 256, 1, 2</td></tr><tr><td rowspan=1 colspan=1>13</td><td rowspan=1 colspan=1>3, [8, 9], 256, 4, 2</td></tr><tr><td rowspan=1 colspan=1>14</td><td rowspan=1 colspan=1>4,[12, 13], 512, 2, 2</td></tr></table>
262
+
263
+ # A.4 ASSEMBLENET MODEL/LAYER DETAILS
264
+
265
+ We also provide the final AssembleNet model in table form in Table 5. In particular, the 2nd element of each block description shows the list of where the input to that block is coming from (i.e., the connections). As already mentioned, 2D and $( 2 + 1 ) \mathrm { D }$ residual modules are repeated in each block. The number of repetitions $m$ are 1.5, 2, 3, and 1.5 at each level. $m = 1 . 5$ means that we have one 2D residual module, one $( 2 + 1 ) \mathrm { D }$ module, and one more 2D module. This makes the number of convolutional layers of each block at levels 1-4 to be 9, 12, 18, and 9. In addition, a stem has at most 2 convolutional layers. The total depth of our network is 50, similar to a conventional $( 2 + 1 ) \mathrm { D }$ ResNet-50. For AssembleNet-101, we use $m = 1 . 5$ , 2, 11.5, and 1.5 at each level.
266
+
267
+ If a block has a spatial stride of 2, the striding happens at the first 2D convolutional layer of the block. In the stem which has the spatial stride of 4, the striding of size 2 happens twice, once at the 2D convolutional layer and at the max pooling layer. As mentioned, the model has a batch normalization layer followed by ReLU after every convolutional layer regardless of its type (i.e., 2D, 1D, and 1x1). 2D conv. filter sizes are $3 { \tt X } 3$ , and 1D conv. filter sizes are 3.
268
+
269
+ # A.5 SINK NODE DETAILS
270
+
271
+ When each evolved or baseline $( 2 + 1 ) \mathrm { D }$ model is applied to a video, it generates a 5D (BTYXC) tensor after the final convolutional layer, where B is the size of the batch and C is the number of channels. The sink node is responsible for mapping this into the output vector, whose dimensionality is identical to the number of video classes in the dataset. The sink node first applies a spatial average pooling to generate a 3D (BTC) tensor. If there are multiple level 4 nodes (which rarely is the case), the sink node combines them into a single tensor by averaging/concatenating them. Averaging or concatenating does not make much difference empirically. Next, temporal average/max pooling is applied to make the representation a 2D (BC) tensor (average pooling was used for the MiT dataset and max pooling was used for Charades), and the final fully connected layer and the soft max layer is applied to generate the final output.
272
+
273
+ # A.6 TRAINING DETAILS
274
+
275
+ For the Moments in Time (MiT) dataset training, 8 videos are provided per TPU core (with 16GB memory): the total batch size (for each gradient update) is 512 with 32 frames per video. The batch size used for Charades is 128 with 128 frames per video. The base framerate we used is 12.5 fps for MiT and 6 fps for Charades. The spatial input resolution is $2 2 4 \mathbf { x } 2 2 4$ during training. We used the standard Momentum Optimizer in TensorFlow. We used a learning rate of 3.2 (for MiT) and 25.6 (for Charades), 12k warmup iterations, and cosine decay. No dropout is used, weight decay is set to 1e-4 and label smoothing set to 0.2.
276
+
277
+ Training a model for $1 0 \mathrm { k }$ iterations (during evolution) took $3 { \sim } 5$ hours and fully training the model (for 50k iterations) took ${ \sim } 2 4$ hours per dataset.
278
+
279
+ We used the TV-L1 optical flow extraction algorithm (Zach et al., 2007) implemented with tensor operations by Piergiovanni & Ryoo (2019) to obtain flow input.
280
+
281
+ # A.7 EVALUATION DETAILS
282
+
283
+ When evaluating a model on the MiT dataset, we provide 36 frames per video. The duration of each MiT video is 3 seconds, making 36 frames roughly correspond to the entire video. For the Charades dataset where each video duration is roughly ${ \sim } 3 0 $ seconds, the final class labels are obtained by applying the model to five random 128 frame crops (i.e., segments) of each video. The output multi-class labels are max-pooled to get the final label, and is compared to the ground truth to measure the average precision scores. The spatial resolution used for the testing is $2 5 6 \times 2 5 6$ .
parse/train/SJgMK64Ywr/SJgMK64Ywr_content_list.json ADDED
@@ -0,0 +1,1543 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "ASSEMBLENET: SEARCHING FOR MULTI-STREAM NEURAL CONNECTIVITY IN VIDEO ARCHITECTURES ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 821,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Michael S. Ryoo1,2, AJ Piergiovanni1,2,3, Mingxing Tan2 & Anelia Angelova1,2 ",
17
+ "bbox": [
18
+ 184,
19
+ 169,
20
+ 728,
21
+ 184
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1Robotics at Google \n2Google Research \n3Indiana University Bloomington \nmryoo@google.com ",
28
+ "bbox": [
29
+ 184,
30
+ 185,
31
+ 405,
32
+ 241
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 277,
43
+ 544,
44
+ 292
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Learning to represent videos is a very challenging task both algorithmically and computationally. Standard video CNN architectures have been designed by directly extending architectures devised for image understanding to include the time dimension, using modules such as 3D convolutions, or by using two-stream design to capture both appearance and motion in videos. We interpret a video CNN as a collection of multi-stream convolutional blocks connected to each other, and propose the approach of automatically finding neural architectures with better connectivity and spatio-temporal interactions for video understanding. This is done by evolving a population of overly-connected architectures guided by connection weight learning. Architectures combining representations that abstract different input types (i.e., RGB and optical flow) at multiple temporal resolutions are searched for, allowing different types or sources of information to interact with each other. Our method, referred to as AssembleNet, outperforms prior approaches on public video datasets, in some cases by a great margin. We obtain $5 8 . 6 \\%$ mAP on Charades and $3 4 . 2 7 \\%$ accuracy on Moments-in-Time. ",
51
+ "bbox": [
52
+ 233,
53
+ 306,
54
+ 766,
55
+ 512
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 535,
66
+ 336,
67
+ 551
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Learning to represent videos is a challenging problem. Because a video contains spatio-temporal data, its representation is required to abstract both appearance and motion information. This is particularly important for tasks such as activity recognition, as understanding detailed semantic contents of the video is needed. Previously, researchers approached this challenge by designing a two-stream model for appearance and motion information respectively, combining them by late or intermediate fusion to obtain successful results: Simonyan & Zisserman (2014); Feichtenhofer et al. (2016b;a; 2017; 2018). However, combining appearance and motion information is an open problem and the study on how and where different modalities should interchange representations and what temporal aspect/resolution each stream (or module) should focus on has been very limited. ",
74
+ "bbox": [
75
+ 174,
76
+ 565,
77
+ 825,
78
+ 689
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In this paper, we investigate how to learn feature representations across spatial and motion visual clues. We propose a new multi-stream neural architecture search algorithm with connection learning guided evolution, which focuses on finding higher-level connectivity between network blocks taking multiple input streams at different temporal resolutions. Each block itself is composed of multiple residual modules with space-time convolutional layers, learning spatio-temporal representations. Our architecture learning not only considers the connectivity between such multi-stream, multi-resolution blocks, but also merges and splits network blocks to find better multi-stream video CNN architectures. Our objective is to address two main questions in video representation learning: (1) what feature representations are needed at each intermediate stage of the network and at which resolution and (2) how to combine or exchange such intermediate representations (i.e., connectivity learning). Unlike previous neural architecture search methods for images that focus on finding a good ‘module’ of convolutional layers to be repeated in a single-stream networks (Zoph et al., 2018; Real et al., 2019), our objective is to search for higher-level connections between multiple sequential or concurrent blocks to form multi-stream architectures. ",
85
+ "bbox": [
86
+ 174,
87
+ 696,
88
+ 825,
89
+ 888
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "We propose the concept of AssembleNet, a new method of fusing different sub-networks with different input modalities and temporal resolutions. AssembleNet is a general formulation that allows representing various forms of multi-stream CNNs as directed graphs, coupled with an efficient evolutionary algorithm to explore the network connectivity. Specifically, this is done by utilizing the learned connection weights to guide evolution, in addition to randomly combining, splitting, or connecting sub-network blocks. AssembleNet is a ‘family’ of learnable architectures; they provide a generic approach to learn connectivity among feature representations across input modalities, while being optimized for the target task. We believe this is the first work to (i) conduct research on automated architecture search with multi-stream connections for video understanding, and (ii) introduce the new connection-learning-guided evolutionary algorithm for neural architecture search. ",
96
+ "bbox": [
97
+ 174,
98
+ 895,
99
+ 821,
100
+ 924
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/86acc0df5d6ad2360fb3f4e70dbfe72203edd22f47c166a12055c9b3d50d9f2c.jpg",
107
+ "image_caption": [
108
+ "Figure 1: AssembleNet with multiple intermediate streams. Example learned architecture. Darker colors of connections indicate stronger connections. At each convolutional block, multiple 2D and $( 2 + 1 ) \\mathrm { D }$ residual modules are repeated alternatingly. Our network has 4 block levels $^ +$ the stem level connected to raw data). Each convolutional block has its own output channel size (i.e., the number of filters) $C$ and the temporal resolution $r$ controlling the 1D temporal convolutional layers in it. "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 325,
113
+ 102,
114
+ 676,
115
+ 309
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "",
122
+ "bbox": [
123
+ 174,
124
+ 416,
125
+ 825,
126
+ 527
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "Figure 1 shows an example learned AssembleNet. The proposed algorithm for learning video architectures is very effective: it outperforms all prior work and baselines on two very challenging benchmark datasets, and establishes a new state-of-the-art. AssembleNet models use equivalent number of parameters to standard two-stream $( 2 + 1 ) \\mathrm { D }$ ResNet models. ",
133
+ "bbox": [
134
+ 174,
135
+ 534,
136
+ 825,
137
+ 589
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "2 PREVIOUS WORK ",
144
+ "text_level": 1,
145
+ "bbox": [
146
+ 176,
147
+ 613,
148
+ 348,
149
+ 630
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "A video is a spatio-temporal data (i.e., image frames concatenated along time axis), and its representation must abstract both spatial and temporal information. Full 3D space-time (i.e., XYT) convolutional layers as well as $( 2 + 1 ) \\mathrm { D }$ convolutional layers have been popularly used to represent videos (Tran et al., 2014; Carreira & Zisserman, 2017; Tran et al., 2018; Xie et al., 2018). Researchers studied replacing 2D convolutional layers in standard image-based CNNs such as Inception (Szegedy et al., 2016) and ResNet (He et al., 2016), so that it can be directly used for video classification. ",
156
+ "bbox": [
157
+ 174,
158
+ 647,
159
+ 825,
160
+ 729
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "Two-stream network designs, which combine motion and appearance inputs, are commonly used (e.g., Simonyan & Zisserman, 2014; Feichtenhofer et al., 2016a; 2017; 2016b). Combining appearance information at two different temporal resolutions (e.g., 24 vs. 3 frames per second) with intermediate connections has been proposed by Feichtenhofer et al. (2018). Late fusion of the two-stream representations or architectures with more intermediate connections (Diba et al., 2019), have also been explored. However, these video CNN architectures are the result of careful manual designs by human experts. ",
167
+ "bbox": [
168
+ 174,
169
+ 737,
170
+ 825,
171
+ 834
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Neural Architecture Search (NAS), the concept of automatically finding better architectures based on data, is becoming increasingly popular (Zoph & Le, 2017; Zoph et al., 2018; Liu et al., 2018). Rather than relying on human expert knowledge to design a CNN model, neural architecture search allows the machines to generate better performing models optimized for the data. The use of reinforcement learning controllers (Zoph & Le, 2017; Zoph et al., 2018) as well as evolutionary algorithms (Real et al., 2019) have been studied, and they meaningfully outperform handcrafted architectures. Most of these works focus on learning architectures of modules (i.e., groupings of layers and their connections) to be repeated within a fixed single-stream meta-architecture (e.g., ResNet) for image-based object classification. One-shot architecture search to learn differentiable connections (Bender et al., 2018; Liu et al., 2019) has also been successful for images. However, it is very challenging to directly extend such work to find multi-stream models for videos, as it requires preparing all possible layers and interactions the final architecture may consider using. In multi-stream video CNNs, there are many possible convolutional blocks with different resolutions, and fully connecting them requires a significant amount of memory and training data, which makes it infeasible. ",
178
+ "bbox": [
179
+ 174,
180
+ 840,
181
+ 825,
182
+ 924
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "",
189
+ "bbox": [
190
+ 174,
191
+ 103,
192
+ 825,
193
+ 213
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "Our work is also related to Ahmed & Torresani (2017) which used learnable gating to connect multiple residual module branches, and to the RandWire network (Xie et al., 2019), which showed that randomly connecting a sufficient number of convolutional layers creates performant architectures. However, similar to previous NAS work, the latter focuses only on generating connections between the layers within a block. The meta-architecture is fixed as a single stream model with a single input modality. In this work, our objective is to learn high-level connectivity between multi-stream blocks for video understanding driven by data. We confirm experimentally that in the multi-stream video CNNs, where multiple types of input modalities need to be considered at various resolutions, randomly connecting blocks is insufficient and the proposed architecture learning strategy is necessary. ",
200
+ "bbox": [
201
+ 174,
202
+ 220,
203
+ 825,
204
+ 344
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "3 ASSEMBLENET ",
211
+ "text_level": 1,
212
+ "bbox": [
213
+ 176,
214
+ 364,
215
+ 333,
216
+ 381
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "We propose a new principled way to find better neural architectures for video representation learning. We first expand a video CNN to a multi-resolution, multi-stream model composed of multiple sequential and concurrent neural blocks, and introduce a novel algorithm to search for the optimal connectivity between the blocks for a given task. ",
223
+ "bbox": [
224
+ 174,
225
+ 396,
226
+ 825,
227
+ 450
228
+ ],
229
+ "page_idx": 2
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "We model a video CNN architecture as a collection of convolutional blocks (i.e., sub-networks) connected to each other. Each block is composed of a residual module of space-time convolutional layers repeated multiple times, while having its own temporal resolution. The objective of our video architecture search is to automatically (1) decide the number of parallel blocks (i.e., how many streams to have) at each level of the network, (2) choose their temporal resolutions, and (3) find the optimal connectivity between such multi-stream neural blocks across various levels. The highly interconnected convolutional blocks allow learning of the video representations combining multiple input modalities at various temporal resolutions. We introduce the concept of connection-learningguided architecture evolution to enable multi-stream architecture search. ",
234
+ "bbox": [
235
+ 174,
236
+ 458,
237
+ 825,
238
+ 582
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "We name our final architecture as an ‘AssembleNet’, since it is formulated by assembling (i.e., merging, splitting, and connecting) multiple building blocks. ",
245
+ "bbox": [
246
+ 173,
247
+ 589,
248
+ 823,
249
+ 617
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "3.1 GRAPH FORMULATION ",
256
+ "text_level": 1,
257
+ "bbox": [
258
+ 176,
259
+ 633,
260
+ 370,
261
+ 647
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "In order to make our neural architecture evolution consider multiple different streams with different modalities at different temporal resolutions, we formulate the multi-stream model as a directed acyclic graph. Each node in the graph corresponds to a sub-network composed of multiple convolutional layers (i.e., a block), and the edges specify the connections between such sub-networks. Each architecture is denoted as $G _ { i } = ( \\bar { N } _ { i } , \\bar { E _ { i } } )$ where $N _ { i } = \\{ n _ { 0 i } , n _ { 1 i } , n _ { 2 i } , \\cdot \\cdot \\cdot \\}$ is the set of nodes and $E _ { i }$ is the set of edges defining their connectivity. ",
268
+ "bbox": [
269
+ 174,
270
+ 660,
271
+ 823,
272
+ 742
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "Nodes. A node in our graph representation is a ResNet block composed of a fixed number of interleaved 2D and $( 2 + 1 ) \\mathrm { D }$ residual modules. A ‘2D module’ is composed of a 1x1 conv. layer, one 2D conv. layer with filter size 3x3, and one 1x1 convolutional layer. A $( 2 + 1 ) \\mathrm { D }$ module’ consists of a temporal 1D convolutional layer (with filter size 3), a 2D conv. layer, and a 1x1 conv. layer. In each block, we repeat a regular 2D residual module followed by the $( 2 + 1 ) \\mathrm { D }$ residual module $m$ times. ",
279
+ "bbox": [
280
+ 174,
281
+ 751,
282
+ 825,
283
+ 820
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "Each node has its own block level, which naturally decides the directions of the edges connected to it. Similar to the standard ResNet models, we made the nodes have a total of four block levels ( $^ +$ the stem level). Having multiple nodes of the same level means the architecture has multiple parallel ‘streams’. Figure 1 illustrates an example. Each level has a different $m$ value: 1.5, 2, 3, and 1.5. $m = 1 . 5$ means that there is one 2D module, one $( 2 + 1 ) \\mathrm { D }$ module, and one more 2D module. As a result, the depth of our network is 50 conv. layers. We also have a batch normalization layer followed by a ReLU after every conv. layer. ",
290
+ "bbox": [
291
+ 174,
292
+ 827,
293
+ 825,
294
+ 924
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "There are two special types of nodes with different layer configurations: source nodes and sink nodes. A source node in the graph directly takes the input and applies a small number of convolutional/pooling layers (it is often referred as the ‘stem’ of a CNN model). In video CNNs, the input is a 4D tensor (XYT $^ +$ channel) obtained by concatenating either RGB frames or optical flow images along the time axis. Source nodes are treated as level-0 nodes. The source node is composed of one 2D conv. layer of filter size $7 \\mathbf { x } 7$ , one 1D temporal conv. layer of filter size 5, and one spatial max pooling layer. The 1D conv. is omitted in optical flow stems. A sink node generates the final output of the model, and it is composed of one pooling, one fully connected, and one softmax layer. The sink node is also responsible for combining the outputs of multiple nodes at the highest level, by concatenating them after the pooling. More details are provided in Appendix. ",
301
+ "bbox": [
302
+ 173,
303
+ 103,
304
+ 825,
305
+ 242
306
+ ],
307
+ "page_idx": 3
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "Each node in the graph also has two attributes controlling the convolutional block: its temporal resolution and the number of channels. We use temporally dilated 1D convolution to dynamically change the resolution of the temporal convolutional layers in different blocks, which are discussed more below. The channel size (i.e., the number of filters) of a node could take arbitrary values, but we constrain the sum of the channels of all nodes in the same block level to be a constant so that the capacity of an AssembleNet model is equivalent to a ResNet model with the same number of layers. ",
312
+ "bbox": [
313
+ 174,
314
+ 248,
315
+ 825,
316
+ 332
317
+ ],
318
+ "page_idx": 3
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "Temporally Dilated 1D Convolution. One of the objectives is to allow the video architectures to look at multiple possible temporal resolutions. This could be done by preparing actual videos with different temporal resolutions as in Feichtenhofer et al. (2018) or by using temporally ‘dilated convolutions as we introduce here. Having dilated filters allow temporal 1D conv. layers to focus on different temporal resolution without losing temporal granularity. This essentially is a 1D temporal version of standard 2D dilated convolutions used in Chen et al. (2018) or Yu & Koltun (2016): ",
323
+ "bbox": [
324
+ 174,
325
+ 343,
326
+ 825,
327
+ 426
328
+ ],
329
+ "page_idx": 3
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "Let $k$ be a temporal filter (i.e., a vector) with size $2 d + 1$ . The dilated convolution operator $* _ { r }$ is similar to regular convolution but has different steps for the summation, described as: ",
334
+ "bbox": [
335
+ 174,
336
+ 433,
337
+ 823,
338
+ 462
339
+ ],
340
+ "page_idx": 3
341
+ },
342
+ {
343
+ "type": "equation",
344
+ "img_path": "images/fa86f30b2e6106cf21226a635b6d45c0b8058fc791dc7801ac69a826b3fc6982.jpg",
345
+ "text": "$$\n( F * _ { r } k ) ( t ) = \\sum _ { t _ { 1 } + r t _ { 2 } = t } F ( t _ { 1 } ) k ( t _ { 2 } + d )\n$$",
346
+ "text_format": "latex",
347
+ "bbox": [
348
+ 367,
349
+ 472,
350
+ 629,
351
+ 506
352
+ ],
353
+ "page_idx": 3
354
+ },
355
+ {
356
+ "type": "text",
357
+ "text": "where $t$ , $t _ { 1 }$ , and $t _ { 2 }$ are time indexes. $r$ indicates the temporal resolution (or the amount of dilation), and the standard 1D temporal convolution is a special case where $r = 1$ . In the actual implementation, this is done by inserting $r - 1$ number of zeros between each element of $k$ to generate $k ^ { \\prime }$ , and then convolving such zero-inflated filters with the input: $F * _ { r } k = F * k ^ { \\prime }$ . Importantly, the use of the dilated convolution allows different intermediate sub-network blocks (i.e., not just input stems) to focus on very different temporal resolutions at different levels of the convolutional architecture. ",
358
+ "bbox": [
359
+ 174,
360
+ 515,
361
+ 825,
362
+ 598
363
+ ],
364
+ "page_idx": 3
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "Note that our temporally dilated convolution is different from the one used in Lea et al. (2017), which designed a specific layer to combine representations from different frames with various step sizes. Our layers dilate the temporal filters themselves. Our dilated convolution can be viewed as a direct temporal version of the standard dilated convolutions used in Chen et al. (2018); Yu & Koltun (2016). ",
369
+ "bbox": [
370
+ 174,
371
+ 604,
372
+ 825,
373
+ 661
374
+ ],
375
+ "page_idx": 3
376
+ },
377
+ {
378
+ "type": "text",
379
+ "text": "Edges. Each directed edge specifies the connection between two sub-network blocks, and it describes how a representation is transferred from one block to another block. We constrain the direction of each edge so that it is connected from a lower level block to a higher level block to avoid forming a cycle and allow parallel streams. A node may receive inputs from any number of lower-level nodes (including skip connections) and provide its output to any number of higher-level nodes. ",
380
+ "bbox": [
381
+ 174,
382
+ 672,
383
+ 825,
384
+ 743
385
+ ],
386
+ "page_idx": 3
387
+ },
388
+ {
389
+ "type": "text",
390
+ "text": "Our architectures use a (learnable) weighted summation to aggregate inputs given from multiple connected nodes. That is, an input to a node is computed as $F ^ { i n } = \\Sigma _ { i }$ sigmoid $( w _ { i } ) \\cdot F _ { i } ^ { o u t }$ , where $F _ { i } ^ { o u t }$ are output tensors (i.e., representations) of the nodes connected to the node and $w _ { i }$ are their corresponding weights. Importantly, each $w _ { i }$ is considered as a variable that has to be learned from training data through back propagation. This has two key advantages compared to conventional feature map concatenation: (i) The input tensor size is consistent regardless of the number of connections. (ii) We use learned connection weights to ‘guide’ our architecture evolution algorithm in a preferable way, which we discuss more in Section 3.2. ",
391
+ "bbox": [
392
+ 174,
393
+ 750,
394
+ 825,
395
+ 861
396
+ ],
397
+ "page_idx": 3
398
+ },
399
+ {
400
+ "type": "text",
401
+ "text": "If the inputs from different nodes differ in their spatial size, we add spatial max pooling and striding to match their spatial size. If the inputs have different channel sizes, we add a 1x1 conv. layer to match the bigger channel size. Temporal sizes of the representations is always consistent in our graphs, as there is no temporal striding in our formulation and the layers in the nodes are fully convolutional. ",
402
+ "bbox": [
403
+ 174,
404
+ 868,
405
+ 825,
406
+ 924
407
+ ],
408
+ "page_idx": 3
409
+ },
410
+ {
411
+ "type": "image",
412
+ "img_path": "images/194c3d7588b709dce9d1701e42c4db805139f652c555b67dd26f782fa6908d2d.jpg",
413
+ "image_caption": [
414
+ "Figure 2: An example showing a sequence of architecture evolution. These architectures have actual parent-child relationships. The fitness of the third model was worse than the second model (due to random mutations), but it was high enough to survive in the population pool and eventually evolve into a better model. "
415
+ ],
416
+ "image_footnote": [],
417
+ "bbox": [
418
+ 174,
419
+ 99,
420
+ 826,
421
+ 226
422
+ ],
423
+ "page_idx": 4
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "3.2 EVOLUTION ",
428
+ "text_level": 1,
429
+ "bbox": [
430
+ 174,
431
+ 316,
432
+ 299,
433
+ 330
434
+ ],
435
+ "page_idx": 4
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "We design an evolutionary algorithm with discrete mutation operators that modify nodes and edges in architectures over iterations. The algorithm maintains a population of $P$ different architectures, $P = \\{ G _ { 1 } , G _ { 2 } , \\cdot \\cdot \\cdot , G _ { | P | } \\}$ , where each architecture $G$ is represented with a set of nodes and their edges as described above. ",
440
+ "bbox": [
441
+ 173,
442
+ 342,
443
+ 825,
444
+ 398
445
+ ],
446
+ "page_idx": 4
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "The initial population is formed by preparing a fixed number of randomly connected architectures (e.g., $| P | = 2 0 ,$ ). Specifically, we (1) prepare a fixed number of stems and nodes at each level (e.g., two per level), (2) apply a number of node split/merge mutation operators which we discuss more below, and (3) randomly connect nodes with the probability $p = 0 . 5$ while discarding architectures with graph depth $< 4$ . As mentioned above, edges are constrained so that there is no directed edge reversing the level ordering. Essentially, a set of overly-connected architectures are used as a starting point. Temporal resolutions are randomly assigned to the nodes. ",
451
+ "bbox": [
452
+ 173,
453
+ 405,
454
+ 825,
455
+ 502
456
+ ],
457
+ "page_idx": 4
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "We use the tournament selection algorithm (Goldberg & Deb, 1991) as the main evolution framework: At each evolution round, the algorithm updates the population by selecting a ‘parent’ architecture and mutating (i.e., modifying) it to generate a new ‘child’ architecture. The parent is selected by randomly sampling a subset of the entire population $P ^ { \\prime } \\subset P$ , and then computing the architecture with the highest ‘fitness’: $G _ { p } = \\mathrm { a r g m a x } _ { G _ { i } \\in P ^ { \\prime } } f ( G _ { i } )$ where $f ( G )$ is the fitness function. Our fitness is defined as a video classification accuracy of the model, measured by training the model with a certain number of initial iterations and then evaluating it on the validation set as its proxy task. More specifically, we use top-1 accuracy $^ +$ top-5 accuracy as the fitness function. The child is added into the population, and the model with the least fitness is discarded from the population. ",
462
+ "bbox": [
463
+ 173,
464
+ 508,
465
+ 825,
466
+ 633
467
+ ],
468
+ "page_idx": 4
469
+ },
470
+ {
471
+ "type": "text",
472
+ "text": "A child is evolved from the parent by following two steps. First, it changes the block connectivity (i.e., edges) based on their learned weights: ‘connection-learning-guided evolution’. Next, it applies a random number of mutation operators to further modify the node configuration. The mutation operators include (1) a random modification of the temporal resolution of a convolutional block (i.e., a node) as well as (2) a merge or split of a block. When splitting a node into two nodes, we make their input/output connections identical while making the number of channels in their convolutional layers half that of the node before the split (i.e., $C = C _ { p } / 2$ where $C _ { p }$ is the channel size of the parent). More details are found in Appendix. As a result, we maintain the total number of parameters, since splitting or merging does not change the number of parameters of the convolutional blocks. ",
473
+ "bbox": [
474
+ 173,
475
+ 638,
476
+ 825,
477
+ 763
478
+ ],
479
+ "page_idx": 4
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "Connection-Learning-Guided Mutation. Instead of randomly adding, removing or modifying block connections to generate the child architecture, we take advantage of the learned connection weights from its parent architecture. Let $E _ { p }$ be the set of edges of the parent architecture. Then the edges of the child architecture $E _ { c }$ are inherited from $E _ { p }$ , by only maintaining high-weight connections while replacing the low-weight connections with new random ones. Specifically, $E _ { c } = E _ { c } ^ { 1 } \\cup E _ { c } ^ { 2 }$ : ",
484
+ "bbox": [
485
+ 173,
486
+ 772,
487
+ 825,
488
+ 844
489
+ ],
490
+ "page_idx": 4
491
+ },
492
+ {
493
+ "type": "equation",
494
+ "img_path": "images/6602eae358959b5e5bf5ec58c8904d97bb6d9def5450234b6a0a5a7f41a58a95.jpg",
495
+ "text": "$$\nE _ { c } ^ { 1 } = \\left\\{ e \\in E _ { p } \\mid W _ { e } > B \\right\\} , \\quad E _ { c } ^ { 2 } = \\left\\{ e \\in \\left( E _ { * } - E _ { p } \\right) \\mid \\frac { | E _ { p } - E _ { c } ^ { 1 } | } { | E - E _ { p } | } > X _ { e } \\right\\}\n$$",
496
+ "text_format": "latex",
497
+ "bbox": [
498
+ 250,
499
+ 852,
500
+ 748,
501
+ 887
502
+ ],
503
+ "page_idx": 4
504
+ },
505
+ {
506
+ "type": "text",
507
+ "text": "where $X \\sim \\mathrm { u n i f } ( 0 , 1 )$ and $E _ { * }$ is the set of all possible edges. $E _ { c } ^ { 1 }$ corresponds to the edges the child architecture inherits from the parent architecture, decided based on the learned weight of the edge $W _ { e }$ ",
508
+ "bbox": [
509
+ 174,
510
+ 895,
511
+ 825,
512
+ 924
513
+ ],
514
+ "page_idx": 4
515
+ },
516
+ {
517
+ "type": "image",
518
+ "img_path": "images/c1e825f4d108f3f9a43072bb9b56751de0658480b6cd479476bd11664238a9c4.jpg",
519
+ "image_caption": [
520
+ "Figure 3: More AssembleNet examples. Similarly good performing diverse architectures, all with higher-than- $50 \\%$ mean-average precision on Charades. For instance, even our simpler two-stem AssembleNet-50 (left) got $5 1 . 4 \\%$ mAP on Charades. Darker edges mean higher weights. "
521
+ ],
522
+ "image_footnote": [],
523
+ "bbox": [
524
+ 174,
525
+ 99,
526
+ 823,
527
+ 338
528
+ ],
529
+ "page_idx": 5
530
+ },
531
+ {
532
+ "type": "text",
533
+ "text": "This is possible because our fitness measure involves initial proxy training of each model, providing the learned connection weight values $W _ { e }$ of the parent. ",
534
+ "bbox": [
535
+ 174,
536
+ 414,
537
+ 823,
538
+ 441
539
+ ],
540
+ "page_idx": 5
541
+ },
542
+ {
543
+ "type": "text",
544
+ "text": "$B$ , which controls whether or not to keep an edge from the parent architecture, could either be a constant threshold or a random variable following a uniform distribution: $B = b$ or $B = X _ { B } \\sim$ unif $( 0 , 1 )$ . $E _ { c } ^ { 2 }$ corresponds to the new randomly added edges which were not in the parent architecture. We enumerate through each possible new edge, and randomly add it with the probably of $| E _ { p } -$ $E _ { c } ^ { 1 } | / | E - E _ { p } |$ . This makes the expected total number of added edges to be $| E _ { p } - E _ { c } ^ { 1 } |$ , maintaining the size of $E _ { c }$ . Figure 2 shows an example of the evolution process and Figure 3 shows final architectures. ",
545
+ "bbox": [
546
+ 173,
547
+ 449,
548
+ 825,
549
+ 534
550
+ ],
551
+ "page_idx": 5
552
+ },
553
+ {
554
+ "type": "text",
555
+ "text": "Evolution Implementation Details. Initial architectures are formed by randomly preparing either $\\{ 2 \\mathrm { o r } 4 \\}$ stems, two nodes per level at levels 1 to 3, and one node at level 4. We then apply $1 { \\sim } 5$ random number of node split operators so that each initial architecture has a different number of nodes. Each node is initialized with a random temporal resolution of 1, 2, 4, or 8. As mentioned, each possible connection is then added with the probability of $p = 0 . 5$ . ",
556
+ "bbox": [
557
+ 174,
558
+ 539,
559
+ 825,
560
+ 608
561
+ ],
562
+ "page_idx": 5
563
+ },
564
+ {
565
+ "type": "text",
566
+ "text": "At each evolution round, the best-performing parent architecture is selected from a random subset of 5 from the population. The child architecture is generated by modifying the connections from the parent architecture (Section 3.2). A random number of node split, merge, or temporal resolution change mutation operators $( 0 { \\sim } 4 )$ are then applied. Evaluation of each architecture (i.e., measuring the fitness) is done by training the model for 10K iterations and then measuring its top- $1 + \\mathrm { t o p } { - } 5$ accuracy on the validation subset. The Moments-in-Time dataset, described in the next section, is used as the proxy dataset to measure fitness. The evolution was run for ${ \\sim } 2 0 0$ rounds, although a good performing architecture was found within only 40 rounds (e.g., Figure 3-right). Figure 1 shows the model found at the 165th round. 10K training iterations of each model during evolution took $3 { \\sim } 5$ hours; with our setting, evolving a model for 40 rounds took less than a day with 10 parallel workers. ",
567
+ "bbox": [
568
+ 173,
569
+ 611,
570
+ 825,
571
+ 750
572
+ ],
573
+ "page_idx": 5
574
+ },
575
+ {
576
+ "type": "text",
577
+ "text": "4 EXPERIMENTS ",
578
+ "text_level": 1,
579
+ "bbox": [
580
+ 176,
581
+ 770,
582
+ 326,
583
+ 785
584
+ ],
585
+ "page_idx": 5
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "4.1 DATASETS ",
590
+ "text_level": 1,
591
+ "bbox": [
592
+ 174,
593
+ 794,
594
+ 287,
595
+ 808
596
+ ],
597
+ "page_idx": 5
598
+ },
599
+ {
600
+ "type": "text",
601
+ "text": "Charades Dataset. We first test on the popular Charades dataset (Sigurdsson et al., 2016) which is unique in the activity recognition domain as it contains long sequences. It is one of the largest public datasets with continuous action videos, containing 9848 videos of 157 classes (7985 training and 1863 testing videos). Each video is ${ \\sim } 3 0 $ seconds. It is a challenging dataset due to the duration and variety of the activities. Activities may temporally overlap in a Charades video, requiring the model to predict multiple class labels per video. We used the standard ‘Charades v1 classify’ setting for the evaluation. To comply with prior work (e.g. Feichtenhofer et al., 2018), we also report results when pre-training on Kinetics (Carreira & Zisserman, 2017), which is another large-scale dataset. ",
602
+ "bbox": [
603
+ 174,
604
+ 813,
605
+ 825,
606
+ 924
607
+ ],
608
+ "page_idx": 5
609
+ },
610
+ {
611
+ "type": "table",
612
+ "img_path": "images/21a7de76ffce7ca89bb297b352e714fa8ae643809ea7255c723b4e1bea80641a.jpg",
613
+ "table_caption": [
614
+ "Table 1: Reported state-of-the-art action classification performances (vs. AssembleNet) on Charades. ‘2-stream $( 2 + 1 ) \\mathrm { D }$ ResNet-50’ is the two-stream model with connection learning for level-4 fusion. "
615
+ ],
616
+ "table_footnote": [],
617
+ "table_body": "<table><tr><td>Method</td><td>pre-train</td><td>modality</td><td>mAP</td></tr><tr><td>2-stream (Simonyan &amp; Zisserman, 2014)</td><td>UCF101</td><td>RGB+Flow</td><td>18.6</td></tr><tr><td>Asyn-TF (Sigurdsson et al., 2017)</td><td>UCF101</td><td>RGB+Flow</td><td>22.4</td></tr><tr><td>CoViAR (Wu et al., 2018b)</td><td>ImageNet</td><td>Compressed</td><td>21.9</td></tr><tr><td>MultiScale TRN (Zhou et al., 2018)</td><td>ImageNet</td><td>RGB</td><td>25.2</td></tr><tr><td>I3D (Carreira &amp; Zisserman, 2017)</td><td>Kinetics</td><td>RGB</td><td>32.9</td></tr><tr><td>I3D (from Wang et al., 2018)</td><td>Kinetics</td><td>RGB</td><td>35.5</td></tr><tr><td>I3D-NL (Wang et al., 2018)</td><td>Kinetics</td><td>RGB</td><td>37.5</td></tr><tr><td>STRG (Wang &amp; Gupta, 2018)</td><td>Kinetics</td><td>RGB</td><td>39.7</td></tr><tr><td>LFB-101 (Wu et al., 2018a)</td><td>Kinetics</td><td>RGB</td><td>42.5</td></tr><tr><td>SlowFast-1O1 (Feichtenhofer et al., 2018)</td><td>Kinetics</td><td>RGB+RGB</td><td>45.2</td></tr><tr><td>2-stream (2+1)D ResNet-50 (ours)</td><td>MiT</td><td>RGB+Flow</td><td>48.7</td></tr><tr><td>2-stream (2+1)D ResNet-50 (ours)</td><td>Kinetics</td><td>RGB+Flow</td><td>50.4</td></tr><tr><td>2-stream (2+1)D ResNet-101 (ours)</td><td>Kinetics</td><td>RGB+Flow</td><td>50.6</td></tr><tr><td>AssembleNet-50 (ours)</td><td>MiT</td><td>RGB+Flow</td><td>53.0</td></tr><tr><td>AssembleNet-50 (ours)</td><td>Kinetics</td><td>RGB+Flow</td><td>56.6</td></tr><tr><td>AssembleNet-101 (ours)</td><td>Kinetics</td><td>RGB+Flow</td><td>58.6</td></tr></table>",
618
+ "bbox": [
619
+ 258,
620
+ 138,
621
+ 740,
622
+ 390
623
+ ],
624
+ "page_idx": 6
625
+ },
626
+ {
627
+ "type": "table",
628
+ "img_path": "images/569849bc47654ea2b055475d70d45351440c947060e5cb63805b98bd5f543352.jpg",
629
+ "table_caption": [
630
+ "Table 2: State-of-the-art action classification accuracies on Moments in Time (Monfort et al., 2018). "
631
+ ],
632
+ "table_footnote": [],
633
+ "table_body": "<table><tr><td>Method</td><td>modality</td><td>Top-1</td><td>Top-5</td></tr><tr><td>ResNet50-ImageNet</td><td>RGB</td><td>27.16</td><td>51.68</td></tr><tr><td>TSN (Wang et al., 2016)</td><td>RGB</td><td>24.11</td><td>49.10</td></tr><tr><td>Ioffe &amp; Szegedy (2015)</td><td>Flow</td><td>11.60</td><td>27.40</td></tr><tr><td>TSN-Flow (Wang et al.,2016)</td><td>Flow</td><td>15.71</td><td>34.65</td></tr><tr><td>TSN-2Stream (Wang et al., 2016)</td><td>RGB+F</td><td>25.32</td><td>50.10</td></tr><tr><td>TRN-Multi (Zhou et al.,2018)</td><td>RGB+F</td><td>28.27</td><td>53.87</td></tr><tr><td>Two-stream (2+1)D ResNet-50</td><td>RGB+F</td><td>28.97</td><td>55.55</td></tr><tr><td>I3D (Carreira &amp; Zisserman,2017)</td><td>RGB+F</td><td>29.51</td><td>56.06</td></tr><tr><td>AssembleNet-50</td><td>RGB+F</td><td>31.41</td><td>58.33</td></tr><tr><td>AssembleNet-50 (with Kinetics)</td><td>RGB+F</td><td>33.91</td><td>60.86</td></tr><tr><td>AssembleNet-101 (with Kinetics)</td><td>RGB+F</td><td>34.27</td><td>62.71</td></tr></table>",
634
+ "bbox": [
635
+ 173,
636
+ 441,
637
+ 537,
638
+ 608
639
+ ],
640
+ "page_idx": 6
641
+ },
642
+ {
643
+ "type": "image",
644
+ "img_path": "images/2c86efeaf42b69f2963779f0a8591a645031fcb5cfc9c26136087e6b04284d67.jpg",
645
+ "image_caption": [
646
+ "Figure 4: Comparison of different search methods. "
647
+ ],
648
+ "image_footnote": [],
649
+ "bbox": [
650
+ 565,
651
+ 401,
652
+ 813,
653
+ 569
654
+ ],
655
+ "page_idx": 6
656
+ },
657
+ {
658
+ "type": "text",
659
+ "text": "We note that Kinetics is shrinking in size $( \\sim 1 5 \\%$ videos removed from the original Kinetics-400) and the previous versions are no longer available from the official site. ",
660
+ "bbox": [
661
+ 174,
662
+ 637,
663
+ 821,
664
+ 665
665
+ ],
666
+ "page_idx": 6
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "Moments in Time (MiT) Dataset. The Moments in Time (MiT) dataset (Monfort et al., 2018) is a large-scale video classification dataset with more than 800K videos ${ \\sim } 3$ seconds per video). It is a very challenging dataset with the state-of-the-art models obtaining less than $30 \\%$ accuracy. We use this dataset for the architecture evolution, and train/test the evolved models. We chose the MiT dataset because it provides a sufficient amount of training data for video CNN models and allows stable comparison against previous models. We used its standard classification evaluation setting. ",
671
+ "bbox": [
672
+ 174,
673
+ 679,
674
+ 825,
675
+ 762
676
+ ],
677
+ "page_idx": 6
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "4.2 RESULTS ",
682
+ "text_level": 1,
683
+ "bbox": [
684
+ 174,
685
+ 779,
686
+ 277,
687
+ 792
688
+ ],
689
+ "page_idx": 6
690
+ },
691
+ {
692
+ "type": "text",
693
+ "text": "Tables 1 and 2 compare the performance of AssembleNet against the state-of-the-art models. We denote AssembleNet more specifically as AssembleNet-50, since its depth is 50 layers and has an equivalent number of parameters to ResNet-50. AssembleNet-101 is its 101 layer version having equivalent number of parameters to ResNet-101. AssembleNet is outperforming prior works on both datasets, setting new state-of-the-art results for them. Its performance on MiT is the first above $34 \\%$ . We also note that the performances on Charades is even more impressive at 58.6 whereas previous known best results are 42.5 and 45.2. For these experiments, the architecture search was done on the MiT dataset, and then the found models are trained and tested on both datasets, which demonstrates that the found architectures are useful across datasets. ",
694
+ "bbox": [
695
+ 173,
696
+ 799,
697
+ 825,
698
+ 922
699
+ ],
700
+ "page_idx": 6
701
+ },
702
+ {
703
+ "type": "table",
704
+ "img_path": "images/e52eb4c56e25347322948be9bd6c95cc384c6e509299c6255d12e6e505396dd5.jpg",
705
+ "table_caption": [
706
+ "Table 3: Comparison between AssembleNet and architectures without evolution, but with connection weight learning. Four-stream models are reported here for the first time, and are very effective. All these models have a similar number of parameters. "
707
+ ],
708
+ "table_footnote": [],
709
+ "table_body": "<table><tr><td>Architecture</td><td>MiT Charades</td></tr><tr><td>Two-stream (late fusion) 28.97</td><td>46.5</td></tr><tr><td>Two-stream (fusion at lv. 4) Two-stream (flow-→RGB inter.)</td><td>30.00 48.7 30.21</td></tr><tr><td>Two-stream (fully, fuse at 4)</td><td>49.5 29.87 50.5</td></tr><tr><td>Four-stream (fully, fuse at 4)</td><td>29.98 50.7</td></tr><tr><td>Random (+ connection learning) 2</td><td>29.91 50.1</td></tr><tr><td>AssembleNet-50</td><td>31.41 53.0</td></tr></table>",
710
+ "bbox": [
711
+ 173,
712
+ 181,
713
+ 506,
714
+ 309
715
+ ],
716
+ "page_idx": 7
717
+ },
718
+ {
719
+ "type": "table",
720
+ "img_path": "images/c44f4bed90ac53cda9454f79b6078bb0cd707dc10db794ac5672c0ca9674af0b.jpg",
721
+ "table_caption": [
722
+ "Table 4: Ablation comparing different AssembleNet architectures found with full vs. constrained search spaces. The models are trained from scratch. "
723
+ ],
724
+ "table_footnote": [],
725
+ "table_body": "<table><tr><td>Architecture MiT</td></tr><tr><td>Baseline (random + conn. learning) 29.91</td></tr><tr><td>No mutation 30.26</td></tr><tr><td>RGB-only 30.30</td></tr><tr><td>Without temporal dilation 30.49</td></tr><tr><td>Two-stem only 30.75</td></tr><tr><td>Full AssembleNet-50 31.41</td></tr></table>",
726
+ "bbox": [
727
+ 522,
728
+ 181,
729
+ 818,
730
+ 295
731
+ ],
732
+ "page_idx": 7
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "In addition, we compare the proposed connection-learning-guided evolution with random architecture search and the standard evolutionary algorithm with random connection mutations. We made the standard evolutionary algorithm randomly modify 1/3 of the total connections at each round, as that is roughly the number of edges the connection-learning-guided evolution modifies. Figure 4 shows the results, visualizing the average fitness score of the three top-performing models in each pool. We observe that the connection-learning-guided evolution is able to find better architectures, and it is able to do so more quickly. The standard evolution performs similarly to random search and is not as effective. We believe this is due to the large search space the approach is required to handle, which is exponential to the number of possible connections. For instance, if there are $N$ nodes, the search space complexity is $2 ^ { O ( N ^ { 2 } ) }$ just for the connectivity search. Note that the initial ${ \\sim } 3 0 $ rounds are always used for random initialization of the model population, regardless of the search method. ",
737
+ "bbox": [
738
+ 173,
739
+ 330,
740
+ 825,
741
+ 484
742
+ ],
743
+ "page_idx": 7
744
+ },
745
+ {
746
+ "type": "text",
747
+ "text": "4.3 ABLATION STUDIES ",
748
+ "text_level": 1,
749
+ "bbox": [
750
+ 174,
751
+ 496,
752
+ 352,
753
+ 508
754
+ ],
755
+ "page_idx": 7
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "We conduct an ablation study comparing the evolved AssembleNet to multiple $( 2 + 1 ) \\mathrm { D }$ two-stream (or multi-stream) architectures which are designed to match the abilities of Assemblenet but without evolution. We note that these include very strong architectures that have not been explored before, such as the four-stream model with dense intermediate connectivity. We design competitive networks having various connections between streams, where the connection weights are also learned (see the supplementary material for detailed descriptions and visualizations). Note that all these models have equivalent capacity (i.e., number of parameters). The performance difference is due to network structure. Table 3 shows the results, demonstrating that these architectures with learnable interconnectivity are very powerful themselves and evolution is further beneficial. The Moments in Time models were trained from scratch, and the Charades models were pre-trained on MiT. In particular, we evaluated an architecture with intermediate connectivity from the flow stream to RGB, inspired by Feichtenhofer et al. (2016b; 2018) $^ +$ connection weight learning). It gave $3 0 . 2 \\%$ accuracy on MiT and $4 9 . 5 \\%$ on Charades, which are not as accurate as AssembleNet. Randomly generated models (from 50 rounds of search) are also evaluated, confirming that such architectures do not perform well. ",
760
+ "bbox": [
761
+ 173,
762
+ 515,
763
+ 826,
764
+ 707
765
+ ],
766
+ "page_idx": 7
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "Further, we conduct another ablation to confirm the effectiveness of our search space. Table 4 compares the models found with our full search space vs. more constrained search spaces, such as only using two stems and not using temporal dilation (i.e., fixed temporal resolution). ",
771
+ "bbox": [
772
+ 174,
773
+ 714,
774
+ 821,
775
+ 756
776
+ ],
777
+ "page_idx": 7
778
+ },
779
+ {
780
+ "type": "text",
781
+ "text": "4.4 GENERAL FINDINGS ",
782
+ "text_level": 1,
783
+ "bbox": [
784
+ 174,
785
+ 766,
786
+ 354,
787
+ 780
788
+ ],
789
+ "page_idx": 7
790
+ },
791
+ {
792
+ "type": "text",
793
+ "text": "As the result of connection-learning-guided architecture evolution, non-obvious and non-intuitive connections are found (Figure 3). As expected, more than one possible “connectivity” solution can yield similarly good results. Simultaneously, models with random connectivity perform poorly compared to the found AssembleNet. Our observations also include: (1) The models prefer to have only one block at the highest level, although we allow the search to consider having more than one block at that level. (2) The final block prefers simple connections gathering all outputs of the blocks in the 2nd to last level. (3) Many models use multiple blocks with different temporal resolutions at the same level, justifying the necessity of the multi-stream architectures. (4) Often, there are 1 or 2 blocks heavily connected to many other blocks. (5) Architectures prefer using more than 2 streams, usually using 4 at many levels. ",
794
+ "bbox": [
795
+ 173,
796
+ 786,
797
+ 825,
798
+ 924
799
+ ],
800
+ "page_idx": 7
801
+ },
802
+ {
803
+ "type": "text",
804
+ "text": "5 CONCLUSION ",
805
+ "text_level": 1,
806
+ "bbox": [
807
+ 176,
808
+ 102,
809
+ 318,
810
+ 118
811
+ ],
812
+ "page_idx": 8
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "We present AssembleNet, a new approach for neural architecture search using connection-learningguided architecture evolution. AssembleNet finds multi-stream architectures with better connectivity and temporal resolutions for video representation learning. Our experiments confirm that the learned models significantly outperform previous models on two challenging benchmarks. ",
817
+ "bbox": [
818
+ 174,
819
+ 133,
820
+ 826,
821
+ 189
822
+ ],
823
+ "page_idx": 8
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "REFERENCES ",
828
+ "text_level": 1,
829
+ "bbox": [
830
+ 174,
831
+ 210,
832
+ 287,
833
+ 227
834
+ ],
835
+ "page_idx": 8
836
+ },
837
+ {
838
+ "type": "text",
839
+ "text": "Karim Ahmed and Lorenzo Torresani. Connectivity learning in multi-branch networks. In Workshop on Meta-Learning (MetaLearn), NeurIPS, 2017. ",
840
+ "bbox": [
841
+ 173,
842
+ 233,
843
+ 823,
844
+ 262
845
+ ],
846
+ "page_idx": 8
847
+ },
848
+ {
849
+ "type": "text",
850
+ "text": "Gabriel Bender, Pieter-Jan Kindermans, Barret Zoph, Vijay Vasudevan, and Quoc Le. Understanding and simplifying one-shot architecture search. In International Conference on Machine Learning (ICML), 2018. ",
851
+ "bbox": [
852
+ 174,
853
+ 272,
854
+ 826,
855
+ 314
856
+ ],
857
+ "page_idx": 8
858
+ },
859
+ {
860
+ "type": "text",
861
+ "text": "Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. ",
862
+ "bbox": [
863
+ 173,
864
+ 324,
865
+ 826,
866
+ 367
867
+ ],
868
+ "page_idx": 8
869
+ },
870
+ {
871
+ "type": "text",
872
+ "text": "Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L. Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE TPAMI, 40(4), 2018. ",
873
+ "bbox": [
874
+ 174,
875
+ 376,
876
+ 823,
877
+ 419
878
+ ],
879
+ "page_idx": 8
880
+ },
881
+ {
882
+ "type": "text",
883
+ "text": "Ali Diba, Mohsen Fayyaz, Vivek Sharma, Manohar Paluri, Jurgen Gall, , Rainer Stiefelhagen, and Luc Van Gool. Holistic large scale video understanding. In CoRR:1904.11451, 2019. ",
884
+ "bbox": [
885
+ 169,
886
+ 428,
887
+ 823,
888
+ 458
889
+ ],
890
+ "page_idx": 8
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "Christoph Feichtenhofer, Axel Pinz, and Richard Wildes. Spatiotemporal residual networks for video action recognition. In Advances in Neural Information Processing Systems (NeurIPS), pp. 3468–3476, 2016a. ",
895
+ "bbox": [
896
+ 173,
897
+ 467,
898
+ 825,
899
+ 510
900
+ ],
901
+ "page_idx": 8
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "Christoph Feichtenhofer, Axel Pinz, and Andrew Zisserman. Convolutional two-stream network fusion for video action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1933–1941, 2016b. ",
906
+ "bbox": [
907
+ 173,
908
+ 518,
909
+ 825,
910
+ 561
911
+ ],
912
+ "page_idx": 8
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "Christoph Feichtenhofer, Axel Pinz, and Richard P Wildes. Spatiotemporal multiplier networks for video action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4768–4777, 2017. ",
917
+ "bbox": [
918
+ 173,
919
+ 570,
920
+ 825,
921
+ 614
922
+ ],
923
+ "page_idx": 8
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "Christoph Feichtenhofer, Haoqi Fan, Jitendra Malik, and Kaiming He. Slowfast networks for video recognition. arXiv preprint arXiv:1812.03982, 2018. ",
928
+ "bbox": [
929
+ 174,
930
+ 623,
931
+ 823,
932
+ 652
933
+ ],
934
+ "page_idx": 8
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "David E. Goldberg and Kalyanmoy Deb. A comparative analysis of selection schemes used in genetic algorithms. In Foundations of Genetic Algorithms, pp. 69–93. Morgan Kaufmann, 1991. ",
939
+ "bbox": [
940
+ 173,
941
+ 661,
942
+ 825,
943
+ 691
944
+ ],
945
+ "page_idx": 8
946
+ },
947
+ {
948
+ "type": "text",
949
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. ",
950
+ "bbox": [
951
+ 173,
952
+ 700,
953
+ 825,
954
+ 742
955
+ ],
956
+ "page_idx": 8
957
+ },
958
+ {
959
+ "type": "text",
960
+ "text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning (ICML), 2015. ",
961
+ "bbox": [
962
+ 171,
963
+ 752,
964
+ 825,
965
+ 781
966
+ ],
967
+ "page_idx": 8
968
+ },
969
+ {
970
+ "type": "text",
971
+ "text": "Colin Lea, Michael D. Flynn, Rene Vidal, Austin Reiter, and Gregory D. Hager. Temporal convolutional networks for action segmentation and detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. ",
972
+ "bbox": [
973
+ 174,
974
+ 790,
975
+ 825,
976
+ 833
977
+ ],
978
+ "page_idx": 8
979
+ },
980
+ {
981
+ "type": "text",
982
+ "text": "Chenxi Liu, Barret Zoph, Maxim Neumann, Jonathon Shlens, Wei Hua, Li-Jia Li, Li Fei-Fei, Alan Yuille, Jonathan Huang, and Kevin Murphy. Progressive neural architecture search. In Proceedings of European Conference on Computer Vision (ECCV), 2018. ",
983
+ "bbox": [
984
+ 174,
985
+ 843,
986
+ 823,
987
+ 886
988
+ ],
989
+ "page_idx": 8
990
+ },
991
+ {
992
+ "type": "text",
993
+ "text": "Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: Differentiable architecture seach. In International Conference on Learning Representations (ICLR), 2019. ",
994
+ "bbox": [
995
+ 173,
996
+ 895,
997
+ 823,
998
+ 924
999
+ ],
1000
+ "page_idx": 8
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "Mathew Monfort, Alex Andonian, Bolei Zhou, Kandan Ramakrishnan, Sarah Adel Bargal, Tom Yan, Lisa Brown, Quanfu Fan, Dan Gutfruend, Carl Vondrick, et al. Moments in time dataset: one million videos for event understanding. arXiv preprint arXiv:1801.03150, 2018. ",
1005
+ "bbox": [
1006
+ 176,
1007
+ 103,
1008
+ 821,
1009
+ 146
1010
+ ],
1011
+ "page_idx": 9
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "AJ Piergiovanni and Michael S Ryoo. Representation flow for action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. ",
1016
+ "bbox": [
1017
+ 171,
1018
+ 154,
1019
+ 825,
1020
+ 184
1021
+ ],
1022
+ "page_idx": 9
1023
+ },
1024
+ {
1025
+ "type": "text",
1026
+ "text": "Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V. Le. Regularized evolution for image classifier architecture search. In Proceedings of AAAI Conference on Artificial Intelligence (AAAI), 2019. ",
1027
+ "bbox": [
1028
+ 176,
1029
+ 191,
1030
+ 823,
1031
+ 234
1032
+ ],
1033
+ "page_idx": 9
1034
+ },
1035
+ {
1036
+ "type": "text",
1037
+ "text": "Gunnar A. Sigurdsson, Gul Varol, Xiaolong Wang, Ali Farhadi, Ivan Laptev, and Abhinav Gupta. ¨ Hollywood in homes: Crowdsourcing data collection for activity understanding. In Proceedings of European Conference on Computer Vision (ECCV), 2016. ",
1038
+ "bbox": [
1039
+ 174,
1040
+ 243,
1041
+ 825,
1042
+ 286
1043
+ ],
1044
+ "page_idx": 9
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "Gunnar A Sigurdsson, Santosh Divvala, Ali Farhadi, and Abhinav Gupta. Asynchronous temporal fields for action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. ",
1049
+ "bbox": [
1050
+ 173,
1051
+ 295,
1052
+ 826,
1053
+ 338
1054
+ ],
1055
+ "page_idx": 9
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In Advances in Neural Information Processing Systems (NeurIPS), pp. 568–576, 2014. ",
1060
+ "bbox": [
1061
+ 173,
1062
+ 347,
1063
+ 823,
1064
+ 376
1065
+ ],
1066
+ "page_idx": 9
1067
+ },
1068
+ {
1069
+ "type": "text",
1070
+ "text": "Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2818–2826, 2016. ",
1071
+ "bbox": [
1072
+ 174,
1073
+ 383,
1074
+ 823,
1075
+ 428
1076
+ ],
1077
+ "page_idx": 9
1078
+ },
1079
+ {
1080
+ "type": "text",
1081
+ "text": "Du Tran, Lubomir D Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. C3d: generic features for video analysis. CoRR, abs/1412.0767, 2(7):8, 2014. ",
1082
+ "bbox": [
1083
+ 173,
1084
+ 435,
1085
+ 823,
1086
+ 465
1087
+ ],
1088
+ "page_idx": 9
1089
+ },
1090
+ {
1091
+ "type": "text",
1092
+ "text": "Du Tran, Heng Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6450–6459, 2018. ",
1093
+ "bbox": [
1094
+ 173,
1095
+ 473,
1096
+ 821,
1097
+ 517
1098
+ ],
1099
+ "page_idx": 9
1100
+ },
1101
+ {
1102
+ "type": "text",
1103
+ "text": "Limin Wang, Yuanjun Xiong, Zhe Wang, Yu Qiao, Dahua Lin, Xiaoou Tang, and Luc Van Gool. Temporal segment networks: Towards good practices for deep action recognition. In Proceedings of European Conference on Computer Vision (ECCV), pp. 20–36. Springer, 2016. ",
1104
+ "bbox": [
1105
+ 174,
1106
+ 525,
1107
+ 823,
1108
+ 568
1109
+ ],
1110
+ "page_idx": 9
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "Xiaolong Wang and Abhinav Gupta. Videos as space-time region graphs. In Proceedings of European Conference on Computer Vision (ECCV), pp. 399–417, 2018. ",
1115
+ "bbox": [
1116
+ 171,
1117
+ 577,
1118
+ 823,
1119
+ 606
1120
+ ],
1121
+ "page_idx": 9
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "Xiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 7794–7803, 2018. ",
1126
+ "bbox": [
1127
+ 174,
1128
+ 613,
1129
+ 825,
1130
+ 656
1131
+ ],
1132
+ "page_idx": 9
1133
+ },
1134
+ {
1135
+ "type": "text",
1136
+ "text": "Chao-Yuan Wu, Christoph Feichtenhofer, Haoqi Fan, Kaiming He, Philipp Krahenb ¨ uhl, and Ross Gir- ¨ shick. Long-term feature banks for detailed video understanding. arXiv preprint arXiv:1812.05038, 2018a. ",
1137
+ "bbox": [
1138
+ 173,
1139
+ 665,
1140
+ 825,
1141
+ 708
1142
+ ],
1143
+ "page_idx": 9
1144
+ },
1145
+ {
1146
+ "type": "text",
1147
+ "text": "Chao-Yuan Wu, Manzil Zaheer, Hexiang Hu, R Manmatha, Alexander J Smola, and Philipp Krahenb ¨ uhl. Compressed video action recognition. In ¨ Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6026–6035, 2018b. ",
1148
+ "bbox": [
1149
+ 174,
1150
+ 717,
1151
+ 823,
1152
+ 760
1153
+ ],
1154
+ "page_idx": 9
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "Saining Xie, Chen Sun, Jonathan Huang, Zhuowen Tu, and Kevin Murphy. Rethinking spatiotemporal feature learning: Speed-accuracy trade-offs in video classification. In Proceedings of European Conference on Computer Vision (ECCV), pp. 305–321, 2018. ",
1159
+ "bbox": [
1160
+ 176,
1161
+ 767,
1162
+ 823,
1163
+ 811
1164
+ ],
1165
+ "page_idx": 9
1166
+ },
1167
+ {
1168
+ "type": "text",
1169
+ "text": "Saining Xie, Alexander Kirillov, Ross Girshick, and Kaiming He. Exploring randomly wired neural networks for image recognition. In CoRR:1904.01569, 2019. ",
1170
+ "bbox": [
1171
+ 173,
1172
+ 819,
1173
+ 823,
1174
+ 848
1175
+ ],
1176
+ "page_idx": 9
1177
+ },
1178
+ {
1179
+ "type": "text",
1180
+ "text": "Fisher Yu and Vladlen Koltun. Multi-scale context aggregation by dilated convolutions. In International Conference on Learning Representations (ICLR), 2016. ",
1181
+ "bbox": [
1182
+ 174,
1183
+ 857,
1184
+ 821,
1185
+ 886
1186
+ ],
1187
+ "page_idx": 9
1188
+ },
1189
+ {
1190
+ "type": "text",
1191
+ "text": "Christopher Zach, Thomas Pock, and Horst Bischof. A duality based approach for realtime tv-l 1 optical flow. In Joint Pattern Recognition Symposium, pp. 214–223. Springer, 2007. ",
1192
+ "bbox": [
1193
+ 174,
1194
+ 895,
1195
+ 821,
1196
+ 924
1197
+ ],
1198
+ "page_idx": 9
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "Bolei Zhou, Alex Andonian, Aude Oliva, and Antonio Torralba. Temporal relational reasoning in videos. In Proceedings of European Conference on Computer Vision (ECCV), pp. 803–818, 2018. ",
1203
+ "bbox": [
1204
+ 173,
1205
+ 103,
1206
+ 825,
1207
+ 132
1208
+ ],
1209
+ "page_idx": 10
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "Barret Zoph and Quoc Le. Neural architecture search with reinforcement learning. In International Conference on Learning Representations (ICLR), 2017. ",
1214
+ "bbox": [
1215
+ 174,
1216
+ 140,
1217
+ 823,
1218
+ 170
1219
+ ],
1220
+ "page_idx": 10
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V. Le. Learning transferable architectures for scalable image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. ",
1225
+ "bbox": [
1226
+ 178,
1227
+ 178,
1228
+ 823,
1229
+ 220
1230
+ ],
1231
+ "page_idx": 10
1232
+ },
1233
+ {
1234
+ "type": "text",
1235
+ "text": "A APPENDIX ",
1236
+ "text_level": 1,
1237
+ "bbox": [
1238
+ 176,
1239
+ 102,
1240
+ 297,
1241
+ 117
1242
+ ],
1243
+ "page_idx": 11
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "text": "A.1 SUPER-GRAPH VISUALIZATION OF THE CONNECTIVITY SEARCH SPACE ",
1248
+ "text_level": 1,
1249
+ "bbox": [
1250
+ 174,
1251
+ 135,
1252
+ 705,
1253
+ 148
1254
+ ],
1255
+ "page_idx": 11
1256
+ },
1257
+ {
1258
+ "type": "text",
1259
+ "text": "Figure 5 visualizes all possible connections and channel/temporal resolution options our architecture evolution is able to consider. The objective of our evolutionary algorithm could be interpreted as finding the optimal sub-graph (of this super-graph) that maximizes the performance while maintaining the number of total parameters. Trying to directly fit such entire super-graph into the memory was infeasible in our experiments. ",
1260
+ "bbox": [
1261
+ 173,
1262
+ 160,
1263
+ 825,
1264
+ 229
1265
+ ],
1266
+ "page_idx": 11
1267
+ },
1268
+ {
1269
+ "type": "image",
1270
+ "img_path": "images/ada175942c052a2ee09b2247ff89198586ec5515117df6d58adb8174098cc07c.jpg",
1271
+ "image_caption": [
1272
+ "Figure 5: Visualization of the super-graph corresponding to our video architecture search space. "
1273
+ ],
1274
+ "image_footnote": [],
1275
+ "bbox": [
1276
+ 174,
1277
+ 242,
1278
+ 823,
1279
+ 415
1280
+ ],
1281
+ "page_idx": 11
1282
+ },
1283
+ {
1284
+ "type": "text",
1285
+ "text": "A.2 CHANNEL SIZES OF THE LAYERS AND NODE SPLIT/MERGE MUTATIONS ",
1286
+ "bbox": [
1287
+ 178,
1288
+ 468,
1289
+ 705,
1290
+ 482
1291
+ ],
1292
+ "page_idx": 11
1293
+ },
1294
+ {
1295
+ "type": "text",
1296
+ "text": "As we described in the paper, each node (i.e., a convolutional block) has a parameter $C$ controlling the number of filters of the convolutional layers in the block. When splitting or merging blocks, the number of filters are split or combined respectively. Figure 6 provides a visualization of a block with number of filter specified to the right and a split operation. While many designs are possible, we design the blocks and splitting as follows. The size of 1x1 convolutional layers and 1D temporal convolutional layers are strictly governed by $C$ , having the channel size of $C$ (some $4 C$ ). On the other hand, the number of 2D convolutional layer is fixed per level as a constant $D _ { v }$ where $v$ is the level of the block. $D _ { 1 } = 6 4$ , $D _ { 2 } = 1 2 8$ , $D _ { 3 } = 2 5 6$ , and $D _ { 4 } = 5 1 2$ . The layers in the stems have 64 channels if there are only two stems and 32 if there are four stems. ",
1297
+ "bbox": [
1298
+ 173,
1299
+ 492,
1300
+ 825,
1301
+ 617
1302
+ ],
1303
+ "page_idx": 11
1304
+ },
1305
+ {
1306
+ "type": "text",
1307
+ "text": "When a node is split into two nodes, we update the resulting two nodes’ channel sizes to be half of their original node. This enables us to maintain the total number of model parameters before and after the node split to be identical. The first 1x1 convolutional layer will have half the parameters after the split, since its output channel size is now 1/2. The 2D convolutional layer will also have exactly half the parameters, since its input channel size is $1 / 2$ while the output channel size is staying fixed. The next 1x1 convolutional layer will have the fixed input channel size while the output channel size becomes 1/2: thus the total number of parameters would be $1 / 2$ of the original parameters. ",
1308
+ "bbox": [
1309
+ 173,
1310
+ 625,
1311
+ 825,
1312
+ 720
1313
+ ],
1314
+ "page_idx": 11
1315
+ },
1316
+ {
1317
+ "type": "text",
1318
+ "text": "Merging of the nodes is done in an inverse of the way we split. When merging two nodes into one, the merged node inherits all input/output connections from the two nodes: we take a union of all the connections. The channel size of the merged node is the sum of the channel sizes of the two nodes being merged. The temporal dilation rate of the merged node is randomly chosen between the two nodes before the merge. ",
1319
+ "bbox": [
1320
+ 174,
1321
+ 727,
1322
+ 825,
1323
+ 797
1324
+ ],
1325
+ "page_idx": 11
1326
+ },
1327
+ {
1328
+ "type": "text",
1329
+ "text": "A.3 HAND-DESIGNED MODELS USED IN THE ABLATION STUDY ",
1330
+ "text_level": 1,
1331
+ "bbox": [
1332
+ 174,
1333
+ 815,
1334
+ 620,
1335
+ 829
1336
+ ],
1337
+ "page_idx": 11
1338
+ },
1339
+ {
1340
+ "type": "text",
1341
+ "text": "Figure 7 illustrates the actual architectures of the hand-designed $( 2 + 1 ) \\mathrm { D }$ CNN models used in our ablation study. We also show the final learned weights of the connections, illustrating which connections the model ended up using or not using. We note that these architectures are also very enlightening as the connectivity within them are learned in the process. We observe that stronger connections tend to be formed later for 2-stream architectures. For 4-stream architectures, stronger connections do form early, and, not surprisingly, a connection to at least one node of a different modality is established, i.e. a node stemming from RGB will connect to at least one flow node at the next level and vice versa. ",
1342
+ "bbox": [
1343
+ 173,
1344
+ 840,
1345
+ 825,
1346
+ 924
1347
+ ],
1348
+ "page_idx": 11
1349
+ },
1350
+ {
1351
+ "type": "image",
1352
+ "img_path": "images/18130f671084e14cf9eacf7ef1ff26dd093fb31702ea9bb8a07aff6a4b8ea181.jpg",
1353
+ "image_caption": [
1354
+ "Figure 6: An illustration of the node split mutation operator, used for both evolution and initial architecture population generation. "
1355
+ ],
1356
+ "image_footnote": [],
1357
+ "bbox": [
1358
+ 271,
1359
+ 103,
1360
+ 725,
1361
+ 381
1362
+ ],
1363
+ "page_idx": 12
1364
+ },
1365
+ {
1366
+ "type": "image",
1367
+ "img_path": "images/f887a20794a882d74bdda474110c89e5d746f2f44ddc2b1095cc3fc5ef2ebbea.jpg",
1368
+ "image_caption": [
1369
+ "Figure 7: Illustration of hand-designed baseline $( 2 + 1 ) \\mathrm { D }$ CNN models used in our ablation study. "
1370
+ ],
1371
+ "image_footnote": [],
1372
+ "bbox": [
1373
+ 171,
1374
+ 436,
1375
+ 826,
1376
+ 717
1377
+ ],
1378
+ "page_idx": 12
1379
+ },
1380
+ {
1381
+ "type": "text",
1382
+ "text": "",
1383
+ "bbox": [
1384
+ 173,
1385
+ 779,
1386
+ 823,
1387
+ 806
1388
+ ],
1389
+ "page_idx": 12
1390
+ },
1391
+ {
1392
+ "type": "text",
1393
+ "text": "Below is a more detailed description of the networks used in the paper: “Two-stream (late fusion)” means that the model has two separate streams at every level including the level 4, and the outputs of such two level 4 nodes are combined for the final classification. “Fusion at lv. 4” is the model that only has one level 4 node to combine the outputs of the two level 3 nodes using a weighted summation. “Two-stream (fully)” means that the model has two nodes at each level 1-3 and one node at level 4, and each node is always connected to every node in the immediate next level. “Flow RGB” means that only the RGB stream nodes combine outputs from both RGB and flow stream nodes of the immediate lower level. ",
1394
+ "bbox": [
1395
+ 174,
1396
+ 813,
1397
+ 826,
1398
+ 924
1399
+ ],
1400
+ "page_idx": 12
1401
+ },
1402
+ {
1403
+ "type": "table",
1404
+ "img_path": "images/95d10c48cffac1552be7f06215e378597ade17e3d8b9a6cb31f16fccf65d4861.jpg",
1405
+ "table_caption": [
1406
+ "Table 5: The table form of the AssembleNet model with detailed parameters. This model corresponds to Figure 1. The parameters correspond to {node level, input node list, $C , r .$ , and spatial stride} "
1407
+ ],
1408
+ "table_footnote": [],
1409
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Index</td><td rowspan=1 colspan=1>Block parameters</td></tr><tr><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0,[RGB], 32, 4, 4</td></tr><tr><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0,[RGB], 32,4,4</td></tr><tr><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>0,[Flow], 32,1, 4</td></tr><tr><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>0,[Flow], 32, 1, 4</td></tr><tr><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>1, [1], 32, 1, 1</td></tr><tr><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>1, [0], 32, 4, 1</td></tr><tr><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1>1,[0,1,2,3], 32, 1,1</td></tr><tr><td rowspan=1 colspan=1>7</td><td rowspan=1 colspan=1>1,[2,3], 32,2, 1</td></tr><tr><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>2, [0, 4, 5, 6, 7], 64, 2, 2</td></tr><tr><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>2,[0,2,4,7],64,1,2</td></tr><tr><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>2, [0, 5, 7], 64, 4, 2</td></tr><tr><td rowspan=1 colspan=1>11</td><td rowspan=1 colspan=1>2, [0, 5], 64,1,2</td></tr><tr><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>3, [4, 8, 10, 11], 256, 1, 2</td></tr><tr><td rowspan=1 colspan=1>13</td><td rowspan=1 colspan=1>3, [8, 9], 256, 4, 2</td></tr><tr><td rowspan=1 colspan=1>14</td><td rowspan=1 colspan=1>4,[12, 13], 512, 2, 2</td></tr></table>",
1410
+ "bbox": [
1411
+ 379,
1412
+ 141,
1413
+ 617,
1414
+ 371
1415
+ ],
1416
+ "page_idx": 13
1417
+ },
1418
+ {
1419
+ "type": "text",
1420
+ "text": "A.4 ASSEMBLENET MODEL/LAYER DETAILS ",
1421
+ "text_level": 1,
1422
+ "bbox": [
1423
+ 176,
1424
+ 392,
1425
+ 493,
1426
+ 406
1427
+ ],
1428
+ "page_idx": 13
1429
+ },
1430
+ {
1431
+ "type": "text",
1432
+ "text": "We also provide the final AssembleNet model in table form in Table 5. In particular, the 2nd element of each block description shows the list of where the input to that block is coming from (i.e., the connections). As already mentioned, 2D and $( 2 + 1 ) \\mathrm { D }$ residual modules are repeated in each block. The number of repetitions $m$ are 1.5, 2, 3, and 1.5 at each level. $m = 1 . 5$ means that we have one 2D residual module, one $( 2 + 1 ) \\mathrm { D }$ module, and one more 2D module. This makes the number of convolutional layers of each block at levels 1-4 to be 9, 12, 18, and 9. In addition, a stem has at most 2 convolutional layers. The total depth of our network is 50, similar to a conventional $( 2 + 1 ) \\mathrm { D }$ ResNet-50. For AssembleNet-101, we use $m = 1 . 5$ , 2, 11.5, and 1.5 at each level. ",
1433
+ "bbox": [
1434
+ 174,
1435
+ 417,
1436
+ 825,
1437
+ 529
1438
+ ],
1439
+ "page_idx": 13
1440
+ },
1441
+ {
1442
+ "type": "text",
1443
+ "text": "If a block has a spatial stride of 2, the striding happens at the first 2D convolutional layer of the block. In the stem which has the spatial stride of 4, the striding of size 2 happens twice, once at the 2D convolutional layer and at the max pooling layer. As mentioned, the model has a batch normalization layer followed by ReLU after every convolutional layer regardless of its type (i.e., 2D, 1D, and 1x1). 2D conv. filter sizes are $3 { \\tt X } 3$ , and 1D conv. filter sizes are 3. ",
1444
+ "bbox": [
1445
+ 174,
1446
+ 535,
1447
+ 825,
1448
+ 603
1449
+ ],
1450
+ "page_idx": 13
1451
+ },
1452
+ {
1453
+ "type": "text",
1454
+ "text": "A.5 SINK NODE DETAILS ",
1455
+ "text_level": 1,
1456
+ "bbox": [
1457
+ 176,
1458
+ 621,
1459
+ 359,
1460
+ 635
1461
+ ],
1462
+ "page_idx": 13
1463
+ },
1464
+ {
1465
+ "type": "text",
1466
+ "text": "When each evolved or baseline $( 2 + 1 ) \\mathrm { D }$ model is applied to a video, it generates a 5D (BTYXC) tensor after the final convolutional layer, where B is the size of the batch and C is the number of channels. The sink node is responsible for mapping this into the output vector, whose dimensionality is identical to the number of video classes in the dataset. The sink node first applies a spatial average pooling to generate a 3D (BTC) tensor. If there are multiple level 4 nodes (which rarely is the case), the sink node combines them into a single tensor by averaging/concatenating them. Averaging or concatenating does not make much difference empirically. Next, temporal average/max pooling is applied to make the representation a 2D (BC) tensor (average pooling was used for the MiT dataset and max pooling was used for Charades), and the final fully connected layer and the soft max layer is applied to generate the final output. ",
1467
+ "bbox": [
1468
+ 174,
1469
+ 646,
1470
+ 825,
1471
+ 785
1472
+ ],
1473
+ "page_idx": 13
1474
+ },
1475
+ {
1476
+ "type": "text",
1477
+ "text": "A.6 TRAINING DETAILS ",
1478
+ "text_level": 1,
1479
+ "bbox": [
1480
+ 176,
1481
+ 801,
1482
+ 352,
1483
+ 815
1484
+ ],
1485
+ "page_idx": 13
1486
+ },
1487
+ {
1488
+ "type": "text",
1489
+ "text": "For the Moments in Time (MiT) dataset training, 8 videos are provided per TPU core (with 16GB memory): the total batch size (for each gradient update) is 512 with 32 frames per video. The batch size used for Charades is 128 with 128 frames per video. The base framerate we used is 12.5 fps for MiT and 6 fps for Charades. The spatial input resolution is $2 2 4 \\mathbf { x } 2 2 4$ during training. We used the standard Momentum Optimizer in TensorFlow. We used a learning rate of 3.2 (for MiT) and 25.6 (for Charades), 12k warmup iterations, and cosine decay. No dropout is used, weight decay is set to 1e-4 and label smoothing set to 0.2. ",
1490
+ "bbox": [
1491
+ 174,
1492
+ 827,
1493
+ 825,
1494
+ 924
1495
+ ],
1496
+ "page_idx": 13
1497
+ },
1498
+ {
1499
+ "type": "text",
1500
+ "text": "Training a model for $1 0 \\mathrm { k }$ iterations (during evolution) took $3 { \\sim } 5$ hours and fully training the model (for 50k iterations) took ${ \\sim } 2 4$ hours per dataset. ",
1501
+ "bbox": [
1502
+ 173,
1503
+ 103,
1504
+ 823,
1505
+ 132
1506
+ ],
1507
+ "page_idx": 14
1508
+ },
1509
+ {
1510
+ "type": "text",
1511
+ "text": "We used the TV-L1 optical flow extraction algorithm (Zach et al., 2007) implemented with tensor operations by Piergiovanni & Ryoo (2019) to obtain flow input. ",
1512
+ "bbox": [
1513
+ 173,
1514
+ 138,
1515
+ 823,
1516
+ 166
1517
+ ],
1518
+ "page_idx": 14
1519
+ },
1520
+ {
1521
+ "type": "text",
1522
+ "text": "A.7 EVALUATION DETAILS ",
1523
+ "text_level": 1,
1524
+ "bbox": [
1525
+ 176,
1526
+ 184,
1527
+ 372,
1528
+ 198
1529
+ ],
1530
+ "page_idx": 14
1531
+ },
1532
+ {
1533
+ "type": "text",
1534
+ "text": "When evaluating a model on the MiT dataset, we provide 36 frames per video. The duration of each MiT video is 3 seconds, making 36 frames roughly correspond to the entire video. For the Charades dataset where each video duration is roughly ${ \\sim } 3 0 $ seconds, the final class labels are obtained by applying the model to five random 128 frame crops (i.e., segments) of each video. The output multi-class labels are max-pooled to get the final label, and is compared to the ground truth to measure the average precision scores. The spatial resolution used for the testing is $2 5 6 \\times 2 5 6$ . ",
1535
+ "bbox": [
1536
+ 174,
1537
+ 209,
1538
+ 825,
1539
+ 292
1540
+ ],
1541
+ "page_idx": 14
1542
+ }
1543
+ ]
parse/train/SJgMK64Ywr/SJgMK64Ywr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJgMK64Ywr/SJgMK64Ywr_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJxeI6EYwS/SJxeI6EYwS.md ADDED
@@ -0,0 +1,304 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SIMPLE AND EFFECTIVE STOCHASTIC NEURAL NETWORKS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Stochastic neural networks (SNNs) are currently topical, with several paradigms being actively investigated including dropout, Bayesian neural networks, variational information bottleneck (VIB) and noise regularized learning. These neural network variants impact several major considerations, including generalization, network compression, and robustness against adversarial attack and label noise. However, many existing networks are complicated and expensive to train, and/or only address one or two of these practical considerations. In this paper we propose a simple and effective stochastic neural network (SE-SNN) architecture for discriminative learning by directly modeling activation uncertainty and encouraging high activation variability. Compared to existing SNNs, our SE-SNN is simpler to implement and faster to train, and produces state of the art results on network compression by pruning, adversarial defense and learning with label noise.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Stochastic neural networks (SNNs) have a long history. Recently various stochastic neural network instantiations have been topical in their applications to reducing overfitting (Gal & Ghahramani, 2016; Neelakantan et al., 2015) and training data requirements (Garnelo et al., 2018), providing confidence estimates on predictions (Gal & Ghahramani, 2016), enabling network compression (Dai et al., 2018), improving robustness to adversarial attack (Alemi et al., 2017), improving optimization (Neelakantan et al., 2015), generative modeling (Kingma & Welling, 2014), and inputting or producing probability distributions (de Bie et al., 2019; Frogner et al., 2019).
12
+
13
+ One of the most theoretically appealing stochastic neural network formulations is Bayesian neural networks, which place a prior distribution on the weights of the network (Graves, 2011; Blundell et al., 2015; Ritter et al., 2018). However this usually necessitates more complex learning and inference procedures that rely on variational approximations or sampling. Another group of works instead focus on modeling the uncertainty in neural network activations. Notably the variational information bottleneck (VIB) approach (Alemi et al., 2017) is motivated by information theoretic considerations (Tishby et al., 1999) to learn a hidden representation that carries maximum information about the output and minimum information about the input. Evaluating the required mutual information terms requires modeling probability distributions over activations rather than weights. Deep VIB (Alemi et al., 2017) leads to improved generalization, adversarial robustness and model compression algorithms (Dai et al., 2018). Furthermore, modeling stochastic activations through noise is often practically useful for improving exploration and local minima escape during optimization, generalization and adversarial robustness (You et al., 2018; Noh et al., 2017; Bishop, 1995; Gulcehre et al., 2016), and in some cases can be linked back to Bayesian models of weights (Noh et al., 2017; Gal & Ghahramani, 2016) when the noise added at each activation can be considered as a result of different samples from the weight posterior.
14
+
15
+ In this paper we propose a simple and effective stochastic neural network (SE-SNN) that models activation uncertainty through predicting a Gaussian mean and variance at each layer, which is then sampled during the forward pass. This is similar to the strategy used to model activation distributions in VAE (Kingma & Welling, 2014) and VIB (Alemi et al., 2017). Differently, we then place a non-informative prior on activation distribution and derive an activation regularizer that directly encourages high activation variability via preferring high-entropy activations. In conjunction with a discriminative learning loss, this means that the network is optimized for activation patterns that have high uncertainty while simultaneously being predictive of the target variable. The interplay between these two objectives leads to several appealing capabilities in pruning, adversarial defense and learning with label noise. Pruning: Optimizing for high per-activation variability/uncertainty and predictive accuracy simultaneously lead to the network packing more entropy into the least significant neurons – so that the most crucial neurons are free to operate unperturbed. This leads to a simple pruning criterion based on each neuron’s entropy value. Adversarial defense: By optimizing for both peractivation uncertainty and the network’s predictive accuracy, a representation-level data augmentation policy is trained that perturbs the internal features during training for increased robustness (Alemi et al., 2017; You et al., 2018). Label noise: With SE-SNN, per-activation uncertainty can be easily aggregated to produce per-instance uncertainty. By optimizing for per-instance uncertainty and predictive accuracy, the network allocates the uncertainty to spread the representation and prediction of the hard-to-classify instances so as to downweight their influence on parameter learning. The result is a model robust to label noise as well as outlying training samples.
16
+
17
+ ![](images/3d6cee1a31d4fb965a58f7b1cd414df15ae004bec72581ec40f5d3409024eca1.jpg)
18
+ Figure 1: An illustration of the stochastic learning module in a SE-SNN. The output of layer $l$ is sampled from the learned distribution defined by $f ^ { \mu } ( h ^ { l - 1 } )$ and $f ^ { \sigma } ( h ^ { l - 1 } )$ .
19
+
20
+ To summarize, our contributions are: (1) A new simple yet effective stochastic neural network formulation. (2) We show that our SE-SNN has connections to VIB (Alemi et al., 2017), Dropout (Srivastava et al., 2014) and non-informative activation priors while being simpler to implement and faster to train, as well as impactful on a variety of practical problems. (3) Comprehensive evaluations show excellent performance on pruning-based model compression, adversarial defense, and label noise robust learning.
21
+
22
+ # 2 METHODOLOGY
23
+
24
+ Stochastic Layers We consider a neural network discriminatively trained for a predictive task such as object recognition. Instead computing fixed point estimates of feature vectors, we propose to use stochastic neurons. More specifically, for an input $h$ , a layer will output a series of univariate distributions. By sampling from those distributions independently, we get a random output $z$ . Finally we apply the non-linear activation function $\psi ( \cdot )$ to $z$ and get the input for the next layer. In this study, we choose to use Gaussian distribution with parameterized mean and variance, which has been popularized by VAE (Kingma & Welling, 2014) and VIB (Alemi et al., 2017) due to the ease of reparameterization. Formally, for the $l$ -th layer, this forward-pass process can be written as (omitting neuron index for notation simplicity),
25
+
26
+ $$
27
+ \begin{array} { r l r } & { } & { \mu ^ { ( l ) } = f ^ { \mu } \big ( h ^ { ( l - 1 ) } \big ) , } \\ & { } & { \sigma ^ { ( l ) } = f ^ { \sigma } \big ( h ^ { ( l - 1 ) } \big ) , } \\ & { } & { z ^ { ( l ) } \sim \mathcal { N } ( \mu ^ { ( l ) } , \sigma ^ { ( l ) } ) , } \\ & { } & { h ^ { ( l ) } = \psi ( z ^ { ( l ) } ) . } \end{array}
28
+ $$
29
+
30
+ This process is illustrated in Figure 1, where each standard deviation predictor $f ^ { \sigma }$ comes with a softplus activation $f ( x ) = \log ( \bar { 1 } + \exp ( x ) )$ to ensure non-negativity.
31
+
32
+ Supervised Learning Loss We can choose to replace some or all intermediate layers of a vanilla neural network with such stochastic layers. For the final layer (i.e., the classifier) we opt for a standard linear layer, and the classification loss is the same as that of a vanilla neural network, e.g., cross-entropy. Since a Gaussian distribution is fully reparameterizable, the network can be trained end-to-end as long as the sampling process $z \sim \mathcal { N } ( \mu , \overline { { \sigma } } )$ is realized by $z = \mu + \epsilon \cdot \sigma$ where $\epsilon \sim \mathcal { N } ( 0 , 1 )$ .
33
+
34
+ Max-entropy Regularization We place a non-informative prior on the produced Gaussian (denoted as $\mathcal { N } ( \mu _ { 1 } , \sigma _ { 1 } ) )$ . The non-informative prior is a Gaussian with arbitrary mean $( \mu _ { 1 } )$ and infinite variance $( \sigma _ { 1 } ^ { 2 } )$ . This reflects the prior that none of neurons is meaningful for predictive purposes. The non-informative prior leads to a regularization term that minimizes the KL divergence of the produced Gaussian ( $\mathcal { N } ( \mu _ { 2 } , \sigma _ { 2 } ) )$ and the infinite-variance Gaussian
35
+
36
+ $$
37
+ \begin{array} { r l r } & { \underset { \mu _ { 1 } , \sigma _ { 1 } } { \mathrm { m i n } } \ ( \underset { \sigma _ { 2 } \to \infty } { \mathrm { l i m } } \mathrm { K L } ( \mathcal { N } ( \mu _ { 1 } , \sigma _ { 1 } ) | | \mathcal { N } ( \mu _ { 2 } , \sigma _ { 2 } ) ) ) , \ } & { \qquad } & { \forall \mu _ { 2 } \in \mathbb { R } } \\ & { \Rightarrow \ \underset { \mu _ { 1 } , \sigma _ { 1 } } { \mathrm { m i n } } \ ( \underset { \sigma _ { 2 } \to \infty } { \mathrm { l i m } } ( \log \frac { \sigma _ { 2 } } { \sigma _ { 1 } } + \frac { \sigma _ { 1 } ^ { 2 } + ( \mu _ { 1 } - \mu _ { 2 } ) ^ { 2 } } { 2 \sigma _ { 2 } ^ { 2 } } - \frac { 1 } { 2 } ) ) , \ } & { \qquad } & { \forall \mu _ { 2 } \in \mathbb { R } } \\ & { \Rightarrow \ \underset { \sigma _ { 1 } } { \mathrm { m i n } } \ ( \underset { \sigma _ { 2 } \to \infty } { \mathrm { l i m } } ( \log \frac { \sigma _ { 2 } } { \sigma _ { 1 } } ) ) } & { \Rightarrow \ \underset { \sigma _ { 1 } } { \mathrm { m i n } } \ ( - \log \sigma _ { 1 } ) } \end{array}
38
+ $$
39
+
40
+ Eq. 2 suggests that we simply need to maximize the predicted standard deviation, or equivalently the entropy of the predicted Gaussian. Thus we call it a max-entropy regularizer $\Omega$ . It can be easily used in any existing neural network architecture:
41
+
42
+ $$
43
+ \operatorname* { m i n } _ { \theta } - \log ( \sigma ( h | \theta ) )
44
+ $$
45
+
46
+ where $\sigma ( h | \theta )$ denotes the predicted standard deviation of hidden unit $h$ given the neuron uncertainty prediction parameter $\theta$ . For numerical safety, we introduce a margin $b$ in the loss,
47
+
48
+ $$
49
+ \operatorname* { m i n } _ { \theta } { ( b - \log ( \sigma ( h | \theta ) ) ^ { + } }
50
+ $$
51
+
52
+ This means that the regularization does not punish the model as long as the entropy is larger than a threshold $b$ . Note that, this loss design is not absolutely necessary as the increment for $\sigma$ shrinks (since the gradient is $- { \frac { 1 } { \sigma } } .$ ) during training, and thus never reaches infinity with a finite number of updates. However, one can think of it as an early-stopping mechanism for this regularization term.
53
+
54
+ So far we have introduced the stochasticity to the smallest unit of a network, i.e., a single neuron. To compute the value of the regularizer over a mini-batch consisting of $N$ training samples, we need to aggregate the entropy of multiple neurons and set the margin $b$ on the aggregation. How to aggregate exactly is task-dependent, and we next provide some suggestions for three tasks including network pruning, adversarial defense, and label noise defense.
55
+
56
+ Pruning For network pruning, we aggregate entropy over samples for each neuron, and then penalize if that neuron’s aggregated entropy is low. To this end, the regularizer is formulated as:
57
+
58
+ $$
59
+ \Omega ( \theta ) = \frac { 1 } { K } \sum _ { j = 1 } ^ { K } ( b - \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \log ( \sigma _ { i , j } ) ) ^ { + } ,
60
+ $$
61
+
62
+ where $i = 1 \dots N$ indexes the training samples, and $j = 1 \ldots K$ neurons in a layer (i.e., feature channels). This regularizer aims to make neurons very stochastic, to the point of compromising their reliability for computing a supervised learning task. Thus only those neurons that are most useful for the task get their entropy lowered and thus pay the regularization cost. Less useful neurons get their entropy maximized, allowing them to be detected and pruned after training.
63
+
64
+ Label Noise Different from pruning, we aim to identify uncertain samples. Therefore, we aggregate entropy over neurons for each sample, and prefer high sample-wise entropy, leading to
65
+
66
+ $$
67
+ \Omega ( \theta ) = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } ( b - \frac { 1 } { K } \sum _ { j = 1 } ^ { K } \log ( \sigma _ { i , j } ) ) ^ { + } .
68
+ $$
69
+
70
+ With this regularizer, inlier samples pay the entropy cost in order to produce a clean feature for classification to satisfy the supervised learning loss. Outlier samples, caused by either label noise or being out-of-distribution, are anyway hard to classify; the regularizer naturally inflates their entropy since doing so does not impact the supervised learning loss. This high-variance representation in turn reduces their (negative) impact on network fitting.
71
+
72
+ Adversarial Defense To defend against adversarial samples, we aim to inflate entropy over both the neuron- and sample-axes to produce a highly stochastic model:
73
+
74
+ $$
75
+ \Omega ( \theta ) = \frac { 1 } { N } \frac { 1 } { K } \sum _ { i = 1 } ^ { N } \sum _ { j = 1 } ^ { K } ( b - \log ( \sigma _ { i , j } ) ) ^ { + }
76
+ $$
77
+
78
+ This looks similar to VIB’s adversarial defense (Alemi et al., 2017), but with the vital difference that our entropy regularizer is not restricted to the $\mathcal { N } ( 0 , 1 )$ prior used in VIB. It can be seen as learning a layer-wise data augmentation policy, which turns out to be very useful for adversarial defense in practice (see Sec. 4.2).
79
+
80
+ # 3 RELATED WORK
81
+
82
+ Connection to VIB and Sparse VD Though we derive the max-entropy regularizer from the perspective of a non-informative activation prior, our work is closely related to VIB (Alemi et al., 2017) and sparse variational dropout (VD) (Molchanov et al., 2017a), despite their different perspectives. Specifically, if we replace our infinite-variance Gaussian with a standard Gaussian, it becomes VIB (see Eq. 17 in (Alemi et al., 2017)). The max-entropy regularizer is also linked to Eq. 14 in Sparse VD (Molchanov et al., 2017a), which also encourages large variance/entropy (at a different rate). But again, Sparse VD (Molchanov et al., 2017a) is derived with a completely different motivation: It has an intuitive explanation that the regularizer corresponds to a sparsity prior on the weights. We note that enforcing uncertainty on activations rather than weights has a number of advantages: (i) The weight prior is intractable analytically, which leads to the fact that Sparse VD regularization is itself an approximation. (ii) Deriving the regularizer from a weight prior is unnecessarily complicated for the purpose of sparsifying the model compared to ours. In contrast, our approach sidesteps the need to sample weights and avoids keeping multiple copies of the network, which can potentially improve efficiency (e.g., in memory usage).
83
+
84
+ Note that stochastic layers have been used in several other works in order to achieve better classification or regression accuracy. Kingma et al. (2015) proposes a generalization of Gaussian dropout where the dropout rates are learned, leading to higher classification accuracy. Natural-parameter networks (NPN) (Wang et al., 2016) is a class of probabilistic neural networks where the input, target output, weights, and neurons can all be modeled by arbitrary exponential-family distributions (e.g., Poisson distributions for word counts) instead of being limited to Gaussian distributions, achieving state-of-the-art performance on classification, regression, and representation learning tasks. To reduce computational cost, Postels et al. (2019) approximates uncertainty estimates using a sampling-free approach and obtains better results on classification and regression tasks.
85
+
86
+ Network Compression Network compression based on pruning typically uses heuristics based on pruning low-importance weights or low-activation neurons (Molchanov et al., 2017b; Wen et al., 2016), often assisted by sparsity-enhancing priors such as lasso (Wen et al., 2016). We avoid the complication of Bayesian learning of weights by proposing a simpler and direct activation prior that predisposes neurons towards deactivation unless necessary to solve the supervised task.
87
+
88
+ Adversarial Defense Our method is related to existing randomization-based methods for adversarial defense (Liu et al., 2018; Xie et al., 2018; Alemi et al., 2017; Ye & Zhu, 2018; Liu et al., 2019). However unlike these studies which use a fixed distribution for noise (Liu et al., 2018; Alemi et al., 2017), a learned model distribution for effective randomization (Liu et al., 2019), image perturbations (Xie et al., 2018) or a learned adversarial data-generating distribution (Ye & Zhu, 2018), our randomization-based defense is both learned, and data-dependent since the variance at each layer is generated based on the output of the previous layer.
89
+
90
+ Label Noise Robustness A number of existing label noise-robust deep learning approaches require a subset of noisy data to be reliably re-annotated (cleaned) to verify which samples contain noise (Lee et al., 2017; Jiang et al., 2018). In contrast, some others including SE-SNN do not rely on additional human noise annotation. These methods address label noise by either iterative label correction via bootstrapping (Reed et al., 2015), adding additional layers on top of a softmax classification layer to estimate the noise pattern (Sukhbaatar et al., 2015; Goldberger & Ben-Reuven, 2017), or loss correlation (Patrini et al., 2017). By allocating large uncertainty to outlying samples, SE-SNN can handle both label noise and out-of-distribution samples with correct labels. This approach to label noise robustness is appealingly simple in that it requires neither explicit detection of noisy samples, nor additional annotation. However label noise robustness has been largely ignored by existing SNNs.
91
+
92
+ # 4 EXPERIMENTS
93
+
94
+ Experiments are carried out to evaluate the efficacy of the proposed framework in three applications: neural network pruning, adversarial attack defense and learning with label noise.
95
+
96
+ # 4.1 NEURAL NETWORK PRUNING
97
+
98
+ Competitors We follow the architecture/dataset combinations used in most recent neural network pruning studies, including LeNet-5-Caffe1 network on MNIST (LeCun, 1998), VGG-16 (Simonyan & Zisserman, 2015) on CIFAR10 (Krizhevsky & Hinton, 2009) and a variant of VGG–16 on CIFAR100. Under these settings, the proposed method is compared with the following contemporary state-of-the-art methods including Generalized Dropout (GD) (Srinivas & Babu, 2016), Group Lasso (GL) (Wen et al., 2016), Sparse Variational Dropout (VD) (Molchanov et al., 2017a), Structured Bayesian Pruning (SBP) (Neklyudov et al., 2017), Bayesian Compression with Group Normal Jeffreys Prior (BC-GNJ) and Group Horseshoe Prior (BC-GHS) (Louizos et al., 2017), Sparse l0 Regularization (L0) and L0 with separate $\lambda$ for each layer (L0-sep) (Louizos et al., 2018), Variational Information Bottleneck (VIBNet) (Dai et al., 2018), and Network Slimming (NS) (Liu et al., 2017).
99
+
100
+ Evaluation Metrics Following the majority of the existing evaluations, we monitor the test error while focusing on the following three compression/complexity metrics: (a) Model size: The ratio of nonzero weights in the compressed network versus the original model. (b) FLOPs: The number of floating point operations required to predict a label from an input image during test2. (c) Run-time memory footprint: The ratio of the space for storing hidden feature maps during run-time in the pruned network versus the original network.
101
+
102
+ Training While many existing studies remove redundant weights, we remove redundant neurons during compression. Therefore, we can use the pipeline proposed in Molchanov et al. (2017b). Specifically, after training the neural network, an initial batch pruning stage is followed by a loop of removing the least important neuron and fine-tuning. Since SE-SNN is designed to discount unimportant neurons through inflating their pre-activation variance, we find that the network achieves this by simultaneously assigning high-variance and negative mean. As a result, a large portion of redundant neurons never activate their RELU non-linearity. In the initial batch pruning stage, neuron inactivity thus provides a single-step pruning criterion before the iterative pruning begins (and one that is guaranteed not to affect the test accuracy since these neurons propagate no information). The pruning then enters the second stage where the least important neuron removal $^ +$ fine-tuning loop continues until reaching the target trade-off between accuracy and model compression objectives. Since one neuron/channel is removed at each iteration, the accuracy never drops sharply. We set the uncertainty loss/regularizer weighting factor and margin $b$ (Eq. 5) as 0.0001 and 4, respectively.
103
+
104
+ Testing During testing, only the mean of the learned distribution is passed between layers. So there are no additional parameters and inference cost compared to the network’s deterministic counterpart. The distribution generation branches are only used during training to identify redundant neurons.
105
+
106
+ Results on MNIST The most commonly used benchmark and architecture is MNIST with LeNet5-Caffe. We follow the standard training and testing protocols. The results are shown in Table 1. It is clear that SE-SNN achieves the best performance on FLOPs, run-time memory footprint, and test error. In terms of model size, our model is only comparable with the state of art. This is because it does not prune the linear layer as much as other methods. Instead, it focuses on pruning the convolutional filters, hence the excellent performance on FLOPS and memory footprint.
107
+
108
+ Results on CIFAR10 For CIFAR10, several VGG16 variants and training protocols have been proposed in different works. We use the standard VGG16 architecture but change the dimension of linear layers from 4096 to 512, as in (Louizos et al., 2017; Dai et al., 2018). The results in Table 2 compare our method with (Louizos et al., 2017; Dai et al., 2018). The error rate for VIBNet in parentheses was obtained by further fine-tuning the pruned architecture. Our model achieves the best performance across all the evaluation metrics and error rates.
109
+
110
+ Table 1: Compression results on MNIST using LeNet-5-Caffe.
111
+
112
+ <table><tr><td>Methods</td><td>Model size (%)</td><td>FLOPs (Mil)</td><td>Memory (%)</td><td>Error(%)</td></tr><tr><td>GD (Srinivas &amp; Babu,2016)</td><td>1.38</td><td>0.250</td><td>32.00</td><td>1.1</td></tr><tr><td>GL (Wen et al., 2016)</td><td>23.69</td><td>0.201</td><td>19.35</td><td>1.0</td></tr><tr><td>VD (Molchanov et al., 2017a)</td><td>9.29</td><td>0.660</td><td>60.78</td><td>1.0</td></tr><tr><td>SBP (Neklyudov et al., 2017)</td><td>19.66</td><td>0.213</td><td>21.15</td><td>0.9</td></tr><tr><td>BC-GNJ (Louizos et al., 2017)</td><td>0.95</td><td>0.283</td><td>35.03</td><td>1.0</td></tr><tr><td>BC-GHS (Louizos et al., 2017)</td><td>0.64</td><td>0.153</td><td>22.80</td><td>1.0</td></tr><tr><td>LO (Louizos et al., 2018)</td><td>8.92</td><td>1.113</td><td>85.82</td><td>0.9</td></tr><tr><td>LO-sep (Louizos et al., 2018)</td><td>1.08</td><td>0.389</td><td>40.36</td><td>1.0</td></tr><tr><td>VIBNet (Dai et al., 2018)</td><td>0.83</td><td>0.094</td><td>15.55</td><td>1.0</td></tr><tr><td>SE-SNN</td><td>2.35</td><td>0.061</td><td>11.08</td><td>0.9</td></tr></table>
113
+
114
+ Table 2: Compression results on CIFAR10 using VGG16.
115
+
116
+ <table><tr><td>Methods</td><td>Model size (%)</td><td>FLOPs (Mil)</td><td>Memory (%)</td><td>Error (%)</td></tr><tr><td>BC-GNJ (Louizos et al., 2017)</td><td>6.57</td><td>141.50</td><td>81.68</td><td>8.6</td></tr><tr><td>BC-GHS (Louizos et al., 2017)</td><td>5.40</td><td>121.90</td><td>74.82</td><td>9.0</td></tr><tr><td>VIBNet (Dai et al.,2018)</td><td>5.30</td><td>70.63</td><td>49.57</td><td>8.8(8.5)</td></tr><tr><td>SE-SNN</td><td>2.57</td><td>53.61</td><td>49.41</td><td>8.0</td></tr></table>
117
+
118
+ Results on CIFAR100 We compare with the study in (Liu et al., 2017), which uses the same VGG16 variant that replaces two fully connected layers with three convolutional layers. This architecture improves accuracy at the expense of FLOPs and memory. The results in Table 3 show that our model produces the best compression result while maintaining comparable accuracy. Note that the $2 6 . 2 \%$ error rate achieved by our model is identical to that of the original network. So if the accuracy drop is used as a compression metric, our model is as good as any competitor.
119
+
120
+ # 4.2 ADVERSARIAL DEFENSE
121
+
122
+ Experimental Setting Following Alemi et al. (2017), we focus on two types of adversarial attacks: Fast Gradient Sign (FGS) (Goodfellow et al., 2015) and an optimization-based attack – CW-L2 (Carlini & Wagner, 2017). We evaluate untargeted FGS attacks with attack magnitude $\epsilon$ ranging from 0.0 to 0.5 and untargeted CW-L2 attack on models trained on MNIST. We use a popular architecture including three FC layers with 1024, 1024 and 256 output neurons respectively. The third FC layer is implemented as a stochastic layer. We set the uncertainty loss/regularizer weighting factor and margin as 0.1 and 16, respectively. Results averaged over 20 runs are reported. We compare against the original (undefended) network, termed as ‘Baseline’, Deep VIB (Alemi et al., 2017) using the variational information bottleneck, Bayesian Adversarial Learning (BAL) (Ye & Zhu, 2018) putting a distribution on the adversarial data-generating process and Adv-BNN (Liu et al., 2019) learning a BNN to incorporate the effective randomness and using adversarial training to seek the best model distribution. Since our model is stochastic, we follow the best practice recommended in (Athalye et al., 2018) for attacking stochastic models: We compute the expected gradient over multiple stochastic samples for each input when constructing attacks. This is because using the expected gradient over multiple posterior samples produces a better gradient estimator for the attacker, allowing it to generate samples that are much harder to defend against (Athalye et al., 2018). For the FGS attack, we evaluate two settings, namely normal training and adversarial training, the latter of which generates and uses FGS attack samples during training to increase adversarial robustness.
123
+
124
+ Results From the comparative results shown in Figure 2a, we can see that our SE-SNN outperforms the competing defense methods over a range of FGS attack strengths when trained with adversarial attack samples (Figure $2 \mathrm { a } ( \mathrm { R } ) )$ or with only normal samples (Figure 2a(L)). The advantage of SE-SNN is particularly pronounced when the attack magnitude is large. We can also see from Figure 2b that under the stronger CW attacks the Baseline now fails completely. In this case SE-SNN provides the most effective defense. It is worth pointing out that, unlike BAL (Ye & Zhu, 2018), which learns their models with explicit adversarial sampling, our SE-SNN can also work with training with only normal samples - Figure 2a suggests that our SE-SNN beats BAL even without being trained with adversarial attack samples (comparing SE-SNN in Figure 2a(L) to BAL in Figure 2a(R)).
125
+
126
+ Table 3: Compression results on CIFAR100 using a VGG16 variant.
127
+
128
+ <table><tr><td>Methods</td><td>Model size (%)</td><td>FLOPs (Mil)</td><td>Memory (%)</td><td>Error (%)</td></tr><tr><td>NS-Single (Liu et al., 2017)</td><td>24.90</td><td>250.50</td><td>1</td><td>26.5</td></tr><tr><td>NS-Best (Liu et al., 2017)</td><td>20.80</td><td>214.80</td><td>1</td><td>26.0</td></tr><tr><td>VIBNet (Dai et al., 2018)</td><td>15.08</td><td>203.10</td><td>73.80</td><td>25.9(25.7)</td></tr><tr><td>SE-SNN</td><td>14.93</td><td>181.31</td><td>70.16</td><td>26.2</td></tr></table>
129
+
130
+ ![](images/4e0db648e6cbb51b018d1fcb324b9df469c62eba7c8c388da09529c50da9fdb8.jpg)
131
+ Figure 2: Adversarial defense accuracy (mean $^ +$ standard deviation) under untargeted FGS and CW attacks on MNIST.
132
+
133
+ # 4.3 ROBUSTNESS AGAINST LABEL NOISE
134
+
135
+ In this section, tasks including digit recognition and person re-identification (ReID) are considered. Compared to Digit recognition, ReID is much more challenging. Particularly, ReID is an instance recognition task, which aims to match people under disjoint camera views. Although the performance of state-of-the-art ReID models on public benchmarks approaches saturation, ReID with label noise remains an unsolved and under-studied problem.
136
+
137
+ Datasets The label noise robustness of our SE-SNN is evaluated for digit recognition using MNIST and ReID using Market-1501 (Zheng et al., 2015) benchmark. Market1501 is collected by 6 cameras and contains 751 training identities (12,936 images) and 750 test identities (19,281 images). The test set is organized into a query set and a gallery set. Cumulative Matching Characteristics (CMC) ranks and mean Average Precision are used as the performance measure.
138
+
139
+ Noise Generation We consider patterned label noise which is more common in practice. Specifically, for MNIST, one class label will be flipped to a different one at a strength $p$ . The flipping pattern is fixed for each run but varies across different runs following (Hendrycks et al., 2018). For Market-1501, we use the commonly used ResNet-50 (He et al., 2016) trained on the clean data to obtain the feature of each training sample and find the most visually similar samples using feature Euclidean distance. Then for randomly selected training samples, their identity labels are assigned to that of the most similar sample that has a different identity, imitating human annotation errors.
140
+
141
+ Competitors Baseline: The main baseline is the original network without adding our stochastic layers. For a fair comparison, we add a parallel layer to the penultimate (feature) layer in the baseline to guarantee the two networks have the same number of parameters. The input of the added layer is the same as the feature layer, and its output is element-wise added along with the output of the feature layer to get the final feature, which is then fed to a fully connected layer for computing the classification loss. Bootstrap_hard and Bootstrap_soft (Reed et al., 2015): Both iteratively use the model-predicted labels to refine the original labels that are potentially corrupted by noise. They differ in whether the updated label is binary or continuous. Forward Correction (Patrini et al., 2017): This model predicts the label corruption matrix (capturing the label flipping pattern) by first training a classifier on the noisy labels followed by corruption matrix estimation using the resulting softmax probabilities. The estimated matrix is then employed to regularize the retraining of the model. For MNIST, we stick to the original setting, which uses the argmax at the 97th percentile of softmax probabilities for label noise detection. For the ReID experiment, we replace this with the argmax over all softmax probabilities for a given class following what Patrini et al. (2017) did on datasets of more classes such as CIFAR100. CleanNet (Lee et al., 2017): different from other models, this one requires a subset of noisy training samples to be re-annotated by a more reliable source (i.e., cleaned). It then learns the similarity between class and query-embedding vectors, which is further used to detect noisy samples for sample pruning. Having a cleaned subset gives CleanNet an unfair advantage over other compared models. The model requires at least 5 FC layers so cannot be implemented for the MNIST backbone. For person ReID, $10 \%$ of the training set without noise is used as a clean reference set to train CleanNet using the author-provided code. After training, $20 \%$ of the whole training set deemed most likely to be noisy are removed before the final ReID model is trained on the remainder. Note that unlike the four competitors, our SE-SNN does not have any additional steps to refine the label or prune the training samples. As explained earlier, it works by discounting/neutralizing the negative influence of noisy samples (hence also works on out-of-distribution samples with correct labels). Having said that, it can be easily combined with a label refinement procedure such as the corruption matrix based one in Forward Correction (Patrini et al., 2017).
142
+
143
+ ![](images/6216d76c2639e3deccd582e6c00e11213c98d68b8fd0f0d0e000006fffe91fca.jpg)
144
+ Figure 3: Label noise results on MINIST (a) and ablation study results on Market-1501 (b,c). In (c), the top row shows samples with the highest variance and bottom row those with the lowest when there is no label noise. The high variance uncertain samples correspond to poor detections and occlusions.
145
+
146
+ <table><tr><td rowspan="2">Strengths Models</td><td colspan="4">10%</td><td colspan="4">20%</td><td colspan="4">50%</td></tr><tr><td>mAP</td><td>Rank1</td><td>Rank5</td><td>Rank10</td><td>mAP</td><td>Rank1</td><td>Rank5</td><td>Rank10</td><td>mAP</td><td>Rank1</td><td>Rank5</td><td>Rank10</td></tr><tr><td>B</td><td>25.87</td><td>51.46</td><td>70.21</td><td>76.81</td><td>23.49</td><td>48.44</td><td>67.85</td><td>74.67</td><td>20.74</td><td>44.04</td><td>64.32</td><td>72.27</td></tr><tr><td>H</td><td>25.76</td><td>51.08</td><td>70.11</td><td>77.06</td><td>23.40</td><td>48.25</td><td>67.34</td><td>74.40</td><td>19.87</td><td>42.87</td><td>63.37</td><td>71.40</td></tr><tr><td>S</td><td>25.50</td><td>50.47</td><td>69.43</td><td>76.32</td><td>24.08</td><td>49.51</td><td>68.77</td><td>75.62</td><td>20.72</td><td>43.86</td><td>64.49</td><td>72.55</td></tr><tr><td>C</td><td>26.64</td><td>52.47</td><td>70.90</td><td>77.41</td><td>24.28</td><td>49.54</td><td>68.35</td><td>75.33</td><td>19.90</td><td>43.01</td><td>63.13</td><td>71.34</td></tr><tr><td>F</td><td>21.17</td><td>45.88</td><td>64.79</td><td>71.69</td><td>18.91</td><td>42.11</td><td>62.12</td><td>69.99</td><td>15.34</td><td>36.06</td><td>56.23</td><td>64.55</td></tr><tr><td>SE-SNN</td><td>27.30</td><td>53.21</td><td>71.03</td><td>77.38</td><td>24.72</td><td>49.87</td><td>68.90</td><td>76.10</td><td>21.32</td><td>44.86</td><td>65.03</td><td>72.93</td></tr></table>
147
+
148
+ Table 4: Re-ID results on Market-1501 with label-noise. Model abbreviations: B: ResNet-Baseline, H: Bootstrap_hard (Reed et al., 2015), S: Bootstrap_soft (Reed et al., 2015), C: CleanNet (Lee et al., 2017), F: Forward Correction (Patrini et al., 2017).
149
+
150
+ Results The results on MNIST are shown in Figure 3a. We can see that even without any label correction/refinement procedure, our SE-SNN is already very competitive – it is only beaten by Forward Correction when the corruption strength (percentage of samples with label noise) is large $( > 0 . 2 )$ . Once our SE-SNN is combined with the same procedure adopted by Forward Correction (SE-SNN $+$ Forward), we achieve the best result. On the more challenging ReID task in Market-1501 (Table 4), our SE-SNN also achieves the best overall performance - even beating CleanNet which needs an additional cleaned training subset. Note that the strongest competitor on MNIST, Forward Correction now is the weakest. This is because, as admitted in (Patrini et al., 2017), it struggles with estimating an accurate correction matrix given a small number of training samples per class (e.g., 500 per class in CIFAR100). The $< 2 0$ class size in Market-1501 means that the label correction procedure only has a detrimental effect. Figure 3b compares the average variance/uncertainty inferred for clean and noisy data in Market-1501. We can see that, indeed the variance of noisy data is larger than that of clean data on average. We also notice that even when there is no label noise, SE-SNN beats the baseline by a clear margin ( $7 0 . 2 0 \%$ mAP vs. $6 7 . 6 6 \%$ ). This suggests that the mechanism of neutralizing outlying samples is still in play when the labels are clean. To validate this, we show some examples of outliers (those with the largest variance) in Figure 3c when there is no label noise. It is clear that these are mostly caused by either poor person detection or occlusion (i.e., outliers). In contrast, images with the smallest variance mostly contain people detected perfectly and without occlusion – the model is thus most confident about the feature representations for these.
151
+
152
+ More SE-SNN implementation details for the label noise robust learning and more results can be found in the Appendix A. Further analyses across all tasks including hyperparameter analysis, solving multiple tasks in one model, effects of the number of stochastic layers are given in Appendix B.
153
+
154
+ # 5 CONCLUSION
155
+
156
+ We proposed a simple and effective stochastic neural network framework. Our model is related to VIB and variational dropout, but provides a simpler and more direct realization via neuron regularization by a non-informative activation prior. Our extensive experiments show that this simple framework has diverse benefits for network pruning, adversarial defense and label noise robust learning.
157
+
158
+ # REFERENCES
159
+
160
+ Alexander A Alemi, Ian Fischer, Joshua V Dillon, and Kevin Murphy. Deep variational information bottleneck. In ICLR, 2017.
161
+
162
+ Anish Athalye, Nicholas Carlini, and David Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. In ICML, 2018.
163
+
164
+ Chris M. Bishop. Training with noise is equivalent to tikhonov regularization. Neural Computation, 7(1):108–116, 1995.
165
+
166
+ Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural networks. In ICML, 2015.
167
+
168
+ Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In IEEESSP, 2017.
169
+
170
+ Bin Dai, Chen Zhu, Baining Guo, and David Wipf. Compressing neural networks using the variational information bottleneck. In ICML, 2018.
171
+
172
+ Gwendoline de Bie, Gabriel Peyré, and Marco Cuturi. Stochastic deep networks. In ICML, 2019.
173
+
174
+ Charlie Frogner, Farzaneh Mirzazadeh, and Justin Solomon. Learning embeddings into entropic wasserstein spaces. In ICLR, 2019.
175
+
176
+ Yarin Gal and Zoubin Ghahramani. Dropout as a Bayesian approximation: Representing model uncertainty in deep learning. In ICML, 2016.
177
+
178
+ Marta Garnelo, Dan Rosenbaum, Christopher Maddison, Tiago Ramalho, David Saxton, Murray Shanahan, Yee Whye Teh, Danilo Rezende, and S. M. Ali Eslami. Conditional neural processes. In ICML, 2018.
179
+
180
+ Jacob Goldberger and Ehud Ben-Reuven. Training deep neural-networks using a noise adaptation layer. In ICLR, 2017.
181
+
182
+ Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In ICLR, 2015.
183
+
184
+ Alex Graves. Practical variational inference for neural networks. In NIPS, 2011.
185
+
186
+ Caglar Gulcehre, Marcin Moczulski, Misha Denil, and Yoshua Bengio. Noisy activation functions. In ICML, 2016.
187
+
188
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
189
+
190
+ Dan Hendrycks, Mantas Mazeika, Duncan Wilson, and Kevin Gimpel. Using trusted data to train deep networks on labels corrupted by severe noise. In NIPS, 2018.
191
+
192
+ Lu Jiang, Zhengyuan Zhou, Thomas Leung, Li-Jia Li, and Li Fei-Fei. Mentornet: Learning datadriven curriculum for very deep neural networks on corrupted labels. In ICML, 2018.
193
+
194
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
195
+
196
+ Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. In ICLR, 2014.
197
+
198
+ Durk P Kingma, Tim Salimans, and Max Welling. Variational dropout and the local reparameterization trick. In NIPS, 2015.
199
+
200
+ Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
201
+
202
+ Yann LeCun. The mnist database of handwritten digits. http://yann. lecun. com/exdb/mnist/, 1998.
203
+
204
+ Kuang-Huei Lee, Xiaodong He, Lei Zhang, and Linjun Yang. Cleannet: Transfer learning for scalable image classifier training with label noise. In ICCV, 2017.
205
+
206
+ Xuanqing Liu, Minhao Cheng, Huan Zhang, and Cho-Jui Hsieh. Towards robust neural networks via random self-ensemble. In ECCV, 2018.
207
+
208
+ Xuanqing Liu, Yao Li, Chongruo Wu, and Cho-Jui Hsieh. Adv-bnn: Improved adversarial defense through robust bayesian neural network. In ICLR, 2019.
209
+
210
+ Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through network slimming. In ICCV, 2017.
211
+
212
+ Christos Louizos, Karen Ullrich, and Max Welling. Bayesian compression for deep learning. In NIPS, 2017.
213
+
214
+ Christos Louizos, Max Welling, and Diederik P Kingma. Learning sparse neural networks through l_0 regularization. In ICLR, 2018.
215
+
216
+ Dmitry Molchanov, Arsenii Ashukha, and Dmitry Vetrov. Variational dropout sparsifies deep neural networks. In ICML, 2017a.
217
+
218
+ Pavlo Molchanov, Stephen Tyree, Tero Karras, Timo Aila, and Jan Kautz. Pruning convolutional neural networks for resource efficient inference. In ICLR, 2017b.
219
+
220
+ Arvind Neelakantan, Luke Vilnis, Quoc V. Le, Lukasz Kaiser, Karol Kurach, Ilya Sutskever, and James Martens. Adding gradient noise improves learning for very deep networks. CoRR, abs/1511.06807, 2015.
221
+
222
+ Kirill Neklyudov, Dmitry Molchanov, Arsenii Ashukha, and Dmitry P Vetrov. Structured bayesian pruning via log-normal multiplicative noise. In NIPS, 2017.
223
+
224
+ Hyeonwoo Noh, Tackgeun You, Jonghwan Mun, and Bohyung Han. Regularizing deep neural networks by noise: Its interpretation and optimization. In NIPS, 2017.
225
+
226
+ Giorgio Patrini, Alessandro Rozza, Aditya Krishna Menon, Richard Nock, and Lizhen Qu. Making deep neural networks robust to label noise: A loss correction approach. In CVPR, 2017.
227
+
228
+ Janis Postels, Francesco Ferroni, Huseyin Coskun, Nassir Navab, and Federico Tombari. Samplingfree epistemic uncertainty estimation using approximated variance propagation. In ICCV, 2019.
229
+
230
+ Scott E. Reed, Honglak Lee, Dragomir Anguelov, Christian Szegedy, Dumitru Erhan, and Andrew Rabinovich. Training deep neural networks on noisy labels with bootstrapping. In ICLR Workshop, 2015.
231
+
232
+ Hippolyt Ritter, Aleksandar Botev, and David Barber. A scalable laplace approximation for neural networks. In ICLR, 2018.
233
+
234
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
235
+
236
+ Suraj Srinivas and R Venkatesh Babu. Generalized dropout. CoRR, abs/1611.06791, 2016.
237
+
238
+ Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. JMLR, 15:1929–1958, 2014.
239
+
240
+ Sainbayar Sukhbaatar, Joan Bruna, Manohar Paluri, Lubomir Bourdev, and Rob Fergus. Training convolutional networks with noisy labels. In ICLR, 2015.
241
+
242
+ Table A.1: Standard deviation value of Re-ID results on Market-1501 with label-noise.
243
+
244
+ <table><tr><td>Strengths</td><td colspan="4">10%</td><td colspan="4">20%</td><td colspan="4">50%</td></tr><tr><td>Models</td><td>mAP</td><td>Rank1</td><td>Rank5</td><td>Rank10</td><td>mAP</td><td>Rank1</td><td>Rank5</td><td>Rank10</td><td>mAP</td><td>Rank1</td><td>Rank5</td><td>Rank10</td></tr><tr><td>B</td><td>0.41</td><td>0.83</td><td>0.75</td><td>0.98</td><td>0.56</td><td>0.82</td><td>0.74</td><td>0.62</td><td>1.25</td><td>2.04</td><td>1.48</td><td>1.56</td></tr><tr><td>H</td><td>0.60</td><td>0.76</td><td>1.34</td><td>1.12</td><td>0.70</td><td>0.97</td><td>0.57</td><td>0.77</td><td>0.93</td><td>1.82</td><td>1.55</td><td>0.97</td></tr><tr><td>S</td><td>0.78</td><td>0.93</td><td>0.85</td><td>0.95</td><td>0.82</td><td>1.48</td><td>1.45</td><td>1.38</td><td>0.51</td><td>1.11</td><td>0.85</td><td>0.61</td></tr><tr><td>C</td><td>0.83</td><td>1.45</td><td>0.98</td><td>0.90</td><td>0.44</td><td>0.53</td><td>0.96</td><td>0.58</td><td>1.08</td><td>1.68</td><td>1.85</td><td>1.66</td></tr><tr><td>F</td><td>1.03</td><td>1.64</td><td>1.98</td><td>1.53</td><td>0.82</td><td>1.50</td><td>1.12</td><td>0.86</td><td>0.56</td><td>1.48</td><td>1.63</td><td>1.97</td></tr><tr><td>SE-SNN</td><td>0.43</td><td>1.11</td><td>0.88</td><td>0.74</td><td>0.24</td><td>0.68</td><td>0.67</td><td>0.44</td><td>0.94</td><td>1.46</td><td>1.42</td><td>1.11</td></tr></table>
245
+
246
+ Naftali Tishby, Fernando C Pereira, and William Bialek. The information bottleneck method. In Allerton, 1999.
247
+
248
+ Hao Wang, SHI Xingjian, and Dit-Yan Yeung. Natural-parameter networks: A class of probabilistic neural networks. In NIPS, 2016.
249
+
250
+ Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In NIPS, 2016.
251
+
252
+ Cihang Xie, Jianyu Wang, Zhishuai Zhang, Zhou Ren, and Alan L. Yuille. Mitigating adversarial effects through randomization. In ICLR, 2018.
253
+
254
+ Nanyang Ye and Zhanxing Zhu. Bayesian adversarial learning. In NIPS, 2018.
255
+
256
+ Zhonghui You, Jinmian Ye, Kunming Li, and Ping Wang. Adversarial noise layer: Regularize neural network by adding noise. CoRR, abs/1805.08000, 2018.
257
+
258
+ Liang Zheng, Liyue Shen, Lu Tian, Shengjin Wang, Jingdong Wang, and Qi Tian. Scalable person re-identification: A benchmark. In ICCV, 2015.
259
+
260
+ # A EXPERIMENTAL DETAILS OF LABEL NOISE
261
+
262
+ For the experiments on MNIST, we follow (Patrini et al., 2017) to train a neural network with two FC layers of dimension 128, where both FC layers are implemented as stochastic layers. For Market-1501, following most recent state-of-the-art ReID models we use ResNet-50 (He et al., 2016) as the backbone. In this model, only the last unit of the final residual block is implemented as a stochastic layer.
263
+
264
+ For Market-1501, we train our model for two stages: (1) We fine-tune ImageNet pretrained ResNet-50 (for identity classification) on Market-1501 training set for 60, 000 iterations. We use batch size 32 and Adam optimizer (Kingma & Ba, 2015) with learning rate $3 . 5 \times 1 0 ^ { - 4 }$ . (2) We retain the model parameters trained in stage (1) and extend the last unit to a stochastic layer with randomly initialized $\sigma$ layer. Then, we train the stochastic layer and the classifier for another 20, 000 iterations with a lower learning rate $5 \times 1 0 ^ { - 4 }$ . The margin $b$ is set as 4 in the max-entropy regularization loss (Eq. 6) and a loss weight $1 0 ^ { - 2 }$ is assigned.
265
+
266
+ For both benchmarks, due to the randomness of noisy samples in selection and label reassignment, multiple runs of experiments are conducted. The standard deviation values of Re-ID results on Market-1501 with label-noise are shown in Table A.1.
267
+
268
+ # B FURTHER ANALYSIS
269
+
270
+ # B.1 HYPER-PARAMETERS ANALYSIS
271
+
272
+ In this section, we analyze the impact of loss weight, which is denoted as $\omega$ , and the margin $b$ for regularizers of all tasks on MNIST. We report the FLOPs of the compressed model (Network pruning), adversarial defense accuracy under the FGSM attack (Adversarial defense) and test accuracy of a model trained with $40 \%$ label noise (Label noise) in Figure B.1.
273
+
274
+ In Figure B.1(top), we evaluate the effects of having different values of $\omega$ from $[ 1 0 ^ { - 1 } , 1 0 ^ { - 2 } , 1 0 ^ { - 3 } ]$ . We can see that, for all three values and across the three tasks, the performance of our method is only marginally impacted by $\omega$ and the overall best performance is achieved when $\omega = 1 0 ^ { - 2 }$ .
275
+
276
+ ![](images/69c8feecd27f570b16ac7a611be0422a7581dd894cbc28c6ef71861ff9971777.jpg)
277
+ Figure B.1: Impact analysis of loss weight $\omega$ (top) and margin $b$ (bottom) on MNIST.
278
+
279
+ ![](images/028d8326137d39ac1891ff96be9dee83b9175deb4c795ae551b871da30c2fb6e.jpg)
280
+ Figure B.2: Test accuracy of different methods trained on MNIST with label noise.
281
+
282
+ ![](images/640e1e2b7367e65565fdf284527e3c8ce681a6727157ab254bf1f5475ab1e94f.jpg)
283
+ Figure B.3: Effect of the number of stochastic layers on MNIST with label noise.
284
+
285
+ ![](images/5596edc72715a074b4f2443056bd4fabd64c4d21b7e94c9087f4af4d6a73d26e.jpg)
286
+ Figure B.4: Convergence Curve on MNIST with label noise .
287
+
288
+ In Figure B.1(bottom), we investigate the sensitivity of our model to the values of margin $b$ . Three values, $[ \log ( 1 ) , \log ( 4 ) , \log ( 1 6 ) ]$ are considered. Recall that our SE-SNN uses a non-informative prior to regularize the uncertainty of neuron activations, and a margin $b$ is employed to upper-bound the standard deviation of the stochastic layers in SE-SNN. Therefore, larger values of $b$ will lead to a higher degree of uncertainty of stochastic layers. From Figure B.1(bottom), we can see that increasing the value of $b$ improves the performance of our method on adversarial defense and label noise. However, for network pruning, smaller $b$ is preferred. Overall, our model is insensitive to the value of $b$ .
289
+
290
+ # B.2 COMBINATION OF NETWORK PRUNING AND LABEL NOISE
291
+
292
+ The effectiveness of our SE-SNN has been demonstrated on the three tasks separately, but there is no reason why it cannot be deployed to deal with multiple tasks simultaneously. To validate this, in this experiment, we train SE-SNN on MNIST with $40 \%$ label noise while conducting model pruning. We use the same architecture with three FC layers (784-128-128-10) as the previous label noise experiments, and make the first two layers stochastic layers. We compare the trained model with two competitors, including the baseline model (without stochastic layers) and our normal SE-SNN (without pruning) both trained with label noise.
293
+
294
+ From the results in Figure B.2, we can see that we get a pruned SE-SNN (145-26-15-10) trained with label noise achieving $9 5 . 2 0 \%$ test accuracy, which is even slightly better than our normal SE-SNN $( 9 5 . 1 7 \% )$ and much better than the baseline $( 8 1 . 0 4 \% )$ .
295
+
296
+ # B.3 EFFECT OF THE NUMBER OF STOCHASTIC LAYERS
297
+
298
+ In this section, we study the effect of the number of used stochastic layers (SLs). The experiments are run on the label noise robust learning task with network comprising two FC layers. For the network
299
+
300
+ with one SL, we make the penultimate layer stochastic. Note that the network with zero SL is the baseline. Figure B.3 shows the test accuracy of models with different numbers of SLs used. We can see that increasing the number of SLs helps improve the model’s robustness to label noise.
301
+
302
+ # B.4 CONVERGENCE CURVE
303
+
304
+ The training efficiency of the proposed method is studied here by examining how fast the algorithm converges. The experiments are run on the label noise robust learning task. Figure B.4 shows the losses of different methods during 10 training epochs. It is observed that Bootstrap and Forward have larger loss values than the rest. This is because they use losses in addition to the classification loss. Overall our method is shown to be as efficient as other methods, despite the fact that we have introduced stochastic layers and used a reparameterization trick during training.
parse/train/SJxeI6EYwS/SJxeI6EYwS_content_list.json ADDED
@@ -0,0 +1,1615 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "SIMPLE AND EFFECTIVE STOCHASTIC NEURAL NETWORKS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 826,
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
+ 250
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Stochastic neural networks (SNNs) are currently topical, with several paradigms being actively investigated including dropout, Bayesian neural networks, variational information bottleneck (VIB) and noise regularized learning. These neural network variants impact several major considerations, including generalization, network compression, and robustness against adversarial attack and label noise. However, many existing networks are complicated and expensive to train, and/or only address one or two of these practical considerations. In this paper we propose a simple and effective stochastic neural network (SE-SNN) architecture for discriminative learning by directly modeling activation uncertainty and encouraging high activation variability. Compared to existing SNNs, our SE-SNN is simpler to implement and faster to train, and produces state of the art results on network compression by pruning, adversarial defense and learning with label noise. ",
40
+ "bbox": [
41
+ 233,
42
+ 266,
43
+ 766,
44
+ 434
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 460,
55
+ 336,
56
+ 477
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Stochastic neural networks (SNNs) have a long history. Recently various stochastic neural network instantiations have been topical in their applications to reducing overfitting (Gal & Ghahramani, 2016; Neelakantan et al., 2015) and training data requirements (Garnelo et al., 2018), providing confidence estimates on predictions (Gal & Ghahramani, 2016), enabling network compression (Dai et al., 2018), improving robustness to adversarial attack (Alemi et al., 2017), improving optimization (Neelakantan et al., 2015), generative modeling (Kingma & Welling, 2014), and inputting or producing probability distributions (de Bie et al., 2019; Frogner et al., 2019). ",
63
+ "bbox": [
64
+ 174,
65
+ 492,
66
+ 825,
67
+ 590
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "One of the most theoretically appealing stochastic neural network formulations is Bayesian neural networks, which place a prior distribution on the weights of the network (Graves, 2011; Blundell et al., 2015; Ritter et al., 2018). However this usually necessitates more complex learning and inference procedures that rely on variational approximations or sampling. Another group of works instead focus on modeling the uncertainty in neural network activations. Notably the variational information bottleneck (VIB) approach (Alemi et al., 2017) is motivated by information theoretic considerations (Tishby et al., 1999) to learn a hidden representation that carries maximum information about the output and minimum information about the input. Evaluating the required mutual information terms requires modeling probability distributions over activations rather than weights. Deep VIB (Alemi et al., 2017) leads to improved generalization, adversarial robustness and model compression algorithms (Dai et al., 2018). Furthermore, modeling stochastic activations through noise is often practically useful for improving exploration and local minima escape during optimization, generalization and adversarial robustness (You et al., 2018; Noh et al., 2017; Bishop, 1995; Gulcehre et al., 2016), and in some cases can be linked back to Bayesian models of weights (Noh et al., 2017; Gal & Ghahramani, 2016) when the noise added at each activation can be considered as a result of different samples from the weight posterior. ",
74
+ "bbox": [
75
+ 174,
76
+ 597,
77
+ 825,
78
+ 819
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In this paper we propose a simple and effective stochastic neural network (SE-SNN) that models activation uncertainty through predicting a Gaussian mean and variance at each layer, which is then sampled during the forward pass. This is similar to the strategy used to model activation distributions in VAE (Kingma & Welling, 2014) and VIB (Alemi et al., 2017). Differently, we then place a non-informative prior on activation distribution and derive an activation regularizer that directly encourages high activation variability via preferring high-entropy activations. In conjunction with a discriminative learning loss, this means that the network is optimized for activation patterns that have high uncertainty while simultaneously being predictive of the target variable. The interplay between these two objectives leads to several appealing capabilities in pruning, adversarial defense and learning with label noise. Pruning: Optimizing for high per-activation variability/uncertainty and predictive accuracy simultaneously lead to the network packing more entropy into the least significant neurons – so that the most crucial neurons are free to operate unperturbed. This leads to a simple pruning criterion based on each neuron’s entropy value. Adversarial defense: By optimizing for both peractivation uncertainty and the network’s predictive accuracy, a representation-level data augmentation policy is trained that perturbs the internal features during training for increased robustness (Alemi et al., 2017; You et al., 2018). Label noise: With SE-SNN, per-activation uncertainty can be easily aggregated to produce per-instance uncertainty. By optimizing for per-instance uncertainty and predictive accuracy, the network allocates the uncertainty to spread the representation and prediction of the hard-to-classify instances so as to downweight their influence on parameter learning. The result is a model robust to label noise as well as outlying training samples. ",
85
+ "bbox": [
86
+ 174,
87
+ 827,
88
+ 823,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "image",
95
+ "img_path": "images/3d6cee1a31d4fb965a58f7b1cd414df15ae004bec72581ec40f5d3409024eca1.jpg",
96
+ "image_caption": [
97
+ "Figure 1: An illustration of the stochastic learning module in a SE-SNN. The output of layer $l$ is sampled from the learned distribution defined by $f ^ { \\mu } ( h ^ { l - 1 } )$ and $f ^ { \\sigma } ( h ^ { l - 1 } )$ . "
98
+ ],
99
+ "image_footnote": [],
100
+ "bbox": [
101
+ 276,
102
+ 101,
103
+ 722,
104
+ 185
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "",
111
+ "bbox": [
112
+ 173,
113
+ 241,
114
+ 825,
115
+ 422
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "To summarize, our contributions are: (1) A new simple yet effective stochastic neural network formulation. (2) We show that our SE-SNN has connections to VIB (Alemi et al., 2017), Dropout (Srivastava et al., 2014) and non-informative activation priors while being simpler to implement and faster to train, as well as impactful on a variety of practical problems. (3) Comprehensive evaluations show excellent performance on pruning-based model compression, adversarial defense, and label noise robust learning. ",
122
+ "bbox": [
123
+ 174,
124
+ 429,
125
+ 825,
126
+ 513
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "2 METHODOLOGY ",
133
+ "text_level": 1,
134
+ "bbox": [
135
+ 176,
136
+ 537,
137
+ 341,
138
+ 554
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "Stochastic Layers We consider a neural network discriminatively trained for a predictive task such as object recognition. Instead computing fixed point estimates of feature vectors, we propose to use stochastic neurons. More specifically, for an input $h$ , a layer will output a series of univariate distributions. By sampling from those distributions independently, we get a random output $z$ . Finally we apply the non-linear activation function $\\psi ( \\cdot )$ to $z$ and get the input for the next layer. In this study, we choose to use Gaussian distribution with parameterized mean and variance, which has been popularized by VAE (Kingma & Welling, 2014) and VIB (Alemi et al., 2017) due to the ease of reparameterization. Formally, for the $l$ -th layer, this forward-pass process can be written as (omitting neuron index for notation simplicity), ",
145
+ "bbox": [
146
+ 173,
147
+ 574,
148
+ 825,
149
+ 702
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "equation",
155
+ "img_path": "images/528edaa7ae4378774316fa5664296d4d3cfc8262ef9128925bcf610a94296f0a.jpg",
156
+ "text": "$$\n\\begin{array} { r l r } & { } & { \\mu ^ { ( l ) } = f ^ { \\mu } \\big ( h ^ { ( l - 1 ) } \\big ) , } \\\\ & { } & { \\sigma ^ { ( l ) } = f ^ { \\sigma } \\big ( h ^ { ( l - 1 ) } \\big ) , } \\\\ & { } & { z ^ { ( l ) } \\sim \\mathcal { N } ( \\mu ^ { ( l ) } , \\sigma ^ { ( l ) } ) , } \\\\ & { } & { h ^ { ( l ) } = \\psi ( z ^ { ( l ) } ) . } \\end{array}\n$$",
157
+ "text_format": "latex",
158
+ "bbox": [
159
+ 411,
160
+ 710,
161
+ 552,
162
+ 792
163
+ ],
164
+ "page_idx": 1
165
+ },
166
+ {
167
+ "type": "text",
168
+ "text": "This process is illustrated in Figure 1, where each standard deviation predictor $f ^ { \\sigma }$ comes with a softplus activation $f ( x ) = \\log ( \\bar { 1 } + \\exp ( x ) )$ to ensure non-negativity. ",
169
+ "bbox": [
170
+ 173,
171
+ 801,
172
+ 825,
173
+ 830
174
+ ],
175
+ "page_idx": 1
176
+ },
177
+ {
178
+ "type": "text",
179
+ "text": "Supervised Learning Loss We can choose to replace some or all intermediate layers of a vanilla neural network with such stochastic layers. For the final layer (i.e., the classifier) we opt for a standard linear layer, and the classification loss is the same as that of a vanilla neural network, e.g., cross-entropy. Since a Gaussian distribution is fully reparameterizable, the network can be trained end-to-end as long as the sampling process $z \\sim \\mathcal { N } ( \\mu , \\overline { { \\sigma } } )$ is realized by $z = \\mu + \\epsilon \\cdot \\sigma$ where $\\epsilon \\sim \\mathcal { N } ( 0 , 1 )$ . ",
180
+ "bbox": [
181
+ 173,
182
+ 839,
183
+ 825,
184
+ 924
185
+ ],
186
+ "page_idx": 1
187
+ },
188
+ {
189
+ "type": "text",
190
+ "text": "Max-entropy Regularization We place a non-informative prior on the produced Gaussian (denoted as $\\mathcal { N } ( \\mu _ { 1 } , \\sigma _ { 1 } ) )$ . The non-informative prior is a Gaussian with arbitrary mean $( \\mu _ { 1 } )$ and infinite variance $( \\sigma _ { 1 } ^ { 2 } )$ . This reflects the prior that none of neurons is meaningful for predictive purposes. The non-informative prior leads to a regularization term that minimizes the KL divergence of the produced Gaussian ( $\\mathcal { N } ( \\mu _ { 2 } , \\sigma _ { 2 } ) )$ and the infinite-variance Gaussian ",
191
+ "bbox": [
192
+ 174,
193
+ 102,
194
+ 825,
195
+ 174
196
+ ],
197
+ "page_idx": 2
198
+ },
199
+ {
200
+ "type": "equation",
201
+ "img_path": "images/0f70d59b0666c4e862275a9f3fa2ee7f5b5b024a713e11f1ea6ce90606218514.jpg",
202
+ "text": "$$\n\\begin{array} { r l r } & { \\underset { \\mu _ { 1 } , \\sigma _ { 1 } } { \\mathrm { m i n } } \\ ( \\underset { \\sigma _ { 2 } \\to \\infty } { \\mathrm { l i m } } \\mathrm { K L } ( \\mathcal { N } ( \\mu _ { 1 } , \\sigma _ { 1 } ) | | \\mathcal { N } ( \\mu _ { 2 } , \\sigma _ { 2 } ) ) ) , \\ } & { \\qquad } & { \\forall \\mu _ { 2 } \\in \\mathbb { R } } \\\\ & { \\Rightarrow \\ \\underset { \\mu _ { 1 } , \\sigma _ { 1 } } { \\mathrm { m i n } } \\ ( \\underset { \\sigma _ { 2 } \\to \\infty } { \\mathrm { l i m } } ( \\log \\frac { \\sigma _ { 2 } } { \\sigma _ { 1 } } + \\frac { \\sigma _ { 1 } ^ { 2 } + ( \\mu _ { 1 } - \\mu _ { 2 } ) ^ { 2 } } { 2 \\sigma _ { 2 } ^ { 2 } } - \\frac { 1 } { 2 } ) ) , \\ } & { \\qquad } & { \\forall \\mu _ { 2 } \\in \\mathbb { R } } \\\\ & { \\Rightarrow \\ \\underset { \\sigma _ { 1 } } { \\mathrm { m i n } } \\ ( \\underset { \\sigma _ { 2 } \\to \\infty } { \\mathrm { l i m } } ( \\log \\frac { \\sigma _ { 2 } } { \\sigma _ { 1 } } ) ) } & { \\Rightarrow \\ \\underset { \\sigma _ { 1 } } { \\mathrm { m i n } } \\ ( - \\log \\sigma _ { 1 } ) } \\end{array}\n$$",
203
+ "text_format": "latex",
204
+ "bbox": [
205
+ 251,
206
+ 171,
207
+ 745,
208
+ 267
209
+ ],
210
+ "page_idx": 2
211
+ },
212
+ {
213
+ "type": "text",
214
+ "text": "Eq. 2 suggests that we simply need to maximize the predicted standard deviation, or equivalently the entropy of the predicted Gaussian. Thus we call it a max-entropy regularizer $\\Omega$ . It can be easily used in any existing neural network architecture: ",
215
+ "bbox": [
216
+ 173,
217
+ 267,
218
+ 825,
219
+ 309
220
+ ],
221
+ "page_idx": 2
222
+ },
223
+ {
224
+ "type": "equation",
225
+ "img_path": "images/f803b3abfc30be7aa561231fdc73426a2511c4b7d71fd8c0337314fc6b34cf49.jpg",
226
+ "text": "$$\n\\operatorname* { m i n } _ { \\theta } - \\log ( \\sigma ( h | \\theta ) )\n$$",
227
+ "text_format": "latex",
228
+ "bbox": [
229
+ 431,
230
+ 311,
231
+ 566,
232
+ 334
233
+ ],
234
+ "page_idx": 2
235
+ },
236
+ {
237
+ "type": "text",
238
+ "text": "where $\\sigma ( h | \\theta )$ denotes the predicted standard deviation of hidden unit $h$ given the neuron uncertainty prediction parameter $\\theta$ . For numerical safety, we introduce a margin $b$ in the loss, ",
239
+ "bbox": [
240
+ 173,
241
+ 338,
242
+ 825,
243
+ 366
244
+ ],
245
+ "page_idx": 2
246
+ },
247
+ {
248
+ "type": "equation",
249
+ "img_path": "images/9df35fc34ff407249661977e3da85190b70dace5336d8bea2d2ee3c0b392597c.jpg",
250
+ "text": "$$\n\\operatorname* { m i n } _ { \\theta } { ( b - \\log ( \\sigma ( h | \\theta ) ) ^ { + } }\n$$",
251
+ "text_format": "latex",
252
+ "bbox": [
253
+ 418,
254
+ 368,
255
+ 578,
256
+ 391
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "This means that the regularization does not punish the model as long as the entropy is larger than a threshold $b$ . Note that, this loss design is not absolutely necessary as the increment for $\\sigma$ shrinks (since the gradient is $- { \\frac { 1 } { \\sigma } } .$ ) during training, and thus never reaches infinity with a finite number of updates. However, one can think of it as an early-stopping mechanism for this regularization term. ",
263
+ "bbox": [
264
+ 173,
265
+ 393,
266
+ 825,
267
+ 450
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "So far we have introduced the stochasticity to the smallest unit of a network, i.e., a single neuron. To compute the value of the regularizer over a mini-batch consisting of $N$ training samples, we need to aggregate the entropy of multiple neurons and set the margin $b$ on the aggregation. How to aggregate exactly is task-dependent, and we next provide some suggestions for three tasks including network pruning, adversarial defense, and label noise defense. ",
274
+ "bbox": [
275
+ 173,
276
+ 457,
277
+ 825,
278
+ 527
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "Pruning For network pruning, we aggregate entropy over samples for each neuron, and then penalize if that neuron’s aggregated entropy is low. To this end, the regularizer is formulated as: ",
285
+ "bbox": [
286
+ 174,
287
+ 536,
288
+ 820,
289
+ 565
290
+ ],
291
+ "page_idx": 2
292
+ },
293
+ {
294
+ "type": "equation",
295
+ "img_path": "images/470c48eed0fd43bd3ba4e26f5ae5f6bb11cb0472f7a7893d1ec0d2581903f542.jpg",
296
+ "text": "$$\n\\Omega ( \\theta ) = \\frac { 1 } { K } \\sum _ { j = 1 } ^ { K } ( b - \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } \\log ( \\sigma _ { i , j } ) ) ^ { + } ,\n$$",
297
+ "text_format": "latex",
298
+ "bbox": [
299
+ 366,
300
+ 568,
301
+ 629,
302
+ 613
303
+ ],
304
+ "page_idx": 2
305
+ },
306
+ {
307
+ "type": "text",
308
+ "text": "where $i = 1 \\dots N$ indexes the training samples, and $j = 1 \\ldots K$ neurons in a layer (i.e., feature channels). This regularizer aims to make neurons very stochastic, to the point of compromising their reliability for computing a supervised learning task. Thus only those neurons that are most useful for the task get their entropy lowered and thus pay the regularization cost. Less useful neurons get their entropy maximized, allowing them to be detected and pruned after training. ",
309
+ "bbox": [
310
+ 173,
311
+ 614,
312
+ 825,
313
+ 685
314
+ ],
315
+ "page_idx": 2
316
+ },
317
+ {
318
+ "type": "text",
319
+ "text": "Label Noise Different from pruning, we aim to identify uncertain samples. Therefore, we aggregate entropy over neurons for each sample, and prefer high sample-wise entropy, leading to ",
320
+ "bbox": [
321
+ 173,
322
+ 694,
323
+ 823,
324
+ 723
325
+ ],
326
+ "page_idx": 2
327
+ },
328
+ {
329
+ "type": "equation",
330
+ "img_path": "images/279fc3c75b7d65f608e309ff1161e0c6f7a2ae109e09661dfd825825e97828d6.jpg",
331
+ "text": "$$\n\\Omega ( \\theta ) = \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } ( b - \\frac { 1 } { K } \\sum _ { j = 1 } ^ { K } \\log ( \\sigma _ { i , j } ) ) ^ { + } .\n$$",
332
+ "text_format": "latex",
333
+ "bbox": [
334
+ 382,
335
+ 726,
336
+ 647,
337
+ 770
338
+ ],
339
+ "page_idx": 2
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "With this regularizer, inlier samples pay the entropy cost in order to produce a clean feature for classification to satisfy the supervised learning loss. Outlier samples, caused by either label noise or being out-of-distribution, are anyway hard to classify; the regularizer naturally inflates their entropy since doing so does not impact the supervised learning loss. This high-variance representation in turn reduces their (negative) impact on network fitting. ",
344
+ "bbox": [
345
+ 173,
346
+ 772,
347
+ 825,
348
+ 843
349
+ ],
350
+ "page_idx": 2
351
+ },
352
+ {
353
+ "type": "text",
354
+ "text": "Adversarial Defense To defend against adversarial samples, we aim to inflate entropy over both the neuron- and sample-axes to produce a highly stochastic model: ",
355
+ "bbox": [
356
+ 173,
357
+ 852,
358
+ 821,
359
+ 881
360
+ ],
361
+ "page_idx": 2
362
+ },
363
+ {
364
+ "type": "equation",
365
+ "img_path": "images/45e78c4a98c1663faa2da318e2849716aab61c2cc0d57c5ae7d9fb303cd32e16.jpg",
366
+ "text": "$$\n\\Omega ( \\theta ) = \\frac { 1 } { N } \\frac { 1 } { K } \\sum _ { i = 1 } ^ { N } \\sum _ { j = 1 } ^ { K } ( b - \\log ( \\sigma _ { i , j } ) ) ^ { + }\n$$",
367
+ "text_format": "latex",
368
+ "bbox": [
369
+ 385,
370
+ 882,
371
+ 643,
372
+ 928
373
+ ],
374
+ "page_idx": 2
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "This looks similar to VIB’s adversarial defense (Alemi et al., 2017), but with the vital difference that our entropy regularizer is not restricted to the $\\mathcal { N } ( 0 , 1 )$ prior used in VIB. It can be seen as learning a layer-wise data augmentation policy, which turns out to be very useful for adversarial defense in practice (see Sec. 4.2). ",
379
+ "bbox": [
380
+ 174,
381
+ 103,
382
+ 825,
383
+ 160
384
+ ],
385
+ "page_idx": 3
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "3 RELATED WORK ",
390
+ "text_level": 1,
391
+ "bbox": [
392
+ 176,
393
+ 207,
394
+ 344,
395
+ 223
396
+ ],
397
+ "page_idx": 3
398
+ },
399
+ {
400
+ "type": "text",
401
+ "text": "Connection to VIB and Sparse VD Though we derive the max-entropy regularizer from the perspective of a non-informative activation prior, our work is closely related to VIB (Alemi et al., 2017) and sparse variational dropout (VD) (Molchanov et al., 2017a), despite their different perspectives. Specifically, if we replace our infinite-variance Gaussian with a standard Gaussian, it becomes VIB (see Eq. 17 in (Alemi et al., 2017)). The max-entropy regularizer is also linked to Eq. 14 in Sparse VD (Molchanov et al., 2017a), which also encourages large variance/entropy (at a different rate). But again, Sparse VD (Molchanov et al., 2017a) is derived with a completely different motivation: It has an intuitive explanation that the regularizer corresponds to a sparsity prior on the weights. We note that enforcing uncertainty on activations rather than weights has a number of advantages: (i) The weight prior is intractable analytically, which leads to the fact that Sparse VD regularization is itself an approximation. (ii) Deriving the regularizer from a weight prior is unnecessarily complicated for the purpose of sparsifying the model compared to ours. In contrast, our approach sidesteps the need to sample weights and avoids keeping multiple copies of the network, which can potentially improve efficiency (e.g., in memory usage). ",
402
+ "bbox": [
403
+ 174,
404
+ 260,
405
+ 825,
406
+ 454
407
+ ],
408
+ "page_idx": 3
409
+ },
410
+ {
411
+ "type": "text",
412
+ "text": "Note that stochastic layers have been used in several other works in order to achieve better classification or regression accuracy. Kingma et al. (2015) proposes a generalization of Gaussian dropout where the dropout rates are learned, leading to higher classification accuracy. Natural-parameter networks (NPN) (Wang et al., 2016) is a class of probabilistic neural networks where the input, target output, weights, and neurons can all be modeled by arbitrary exponential-family distributions (e.g., Poisson distributions for word counts) instead of being limited to Gaussian distributions, achieving state-of-the-art performance on classification, regression, and representation learning tasks. To reduce computational cost, Postels et al. (2019) approximates uncertainty estimates using a sampling-free approach and obtains better results on classification and regression tasks. ",
413
+ "bbox": [
414
+ 174,
415
+ 460,
416
+ 825,
417
+ 585
418
+ ],
419
+ "page_idx": 3
420
+ },
421
+ {
422
+ "type": "text",
423
+ "text": "Network Compression Network compression based on pruning typically uses heuristics based on pruning low-importance weights or low-activation neurons (Molchanov et al., 2017b; Wen et al., 2016), often assisted by sparsity-enhancing priors such as lasso (Wen et al., 2016). We avoid the complication of Bayesian learning of weights by proposing a simpler and direct activation prior that predisposes neurons towards deactivation unless necessary to solve the supervised task. ",
424
+ "bbox": [
425
+ 174,
426
+ 597,
427
+ 825,
428
+ 666
429
+ ],
430
+ "page_idx": 3
431
+ },
432
+ {
433
+ "type": "text",
434
+ "text": "Adversarial Defense Our method is related to existing randomization-based methods for adversarial defense (Liu et al., 2018; Xie et al., 2018; Alemi et al., 2017; Ye & Zhu, 2018; Liu et al., 2019). However unlike these studies which use a fixed distribution for noise (Liu et al., 2018; Alemi et al., 2017), a learned model distribution for effective randomization (Liu et al., 2019), image perturbations (Xie et al., 2018) or a learned adversarial data-generating distribution (Ye & Zhu, 2018), our randomization-based defense is both learned, and data-dependent since the variance at each layer is generated based on the output of the previous layer. ",
435
+ "bbox": [
436
+ 173,
437
+ 676,
438
+ 825,
439
+ 775
440
+ ],
441
+ "page_idx": 3
442
+ },
443
+ {
444
+ "type": "text",
445
+ "text": "Label Noise Robustness A number of existing label noise-robust deep learning approaches require a subset of noisy data to be reliably re-annotated (cleaned) to verify which samples contain noise (Lee et al., 2017; Jiang et al., 2018). In contrast, some others including SE-SNN do not rely on additional human noise annotation. These methods address label noise by either iterative label correction via bootstrapping (Reed et al., 2015), adding additional layers on top of a softmax classification layer to estimate the noise pattern (Sukhbaatar et al., 2015; Goldberger & Ben-Reuven, 2017), or loss correlation (Patrini et al., 2017). By allocating large uncertainty to outlying samples, SE-SNN can handle both label noise and out-of-distribution samples with correct labels. This approach to label noise robustness is appealingly simple in that it requires neither explicit detection of noisy samples, nor additional annotation. However label noise robustness has been largely ignored by existing SNNs. ",
446
+ "bbox": [
447
+ 173,
448
+ 785,
449
+ 825,
450
+ 924
451
+ ],
452
+ "page_idx": 3
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "4 EXPERIMENTS ",
457
+ "text_level": 1,
458
+ "bbox": [
459
+ 176,
460
+ 102,
461
+ 326,
462
+ 117
463
+ ],
464
+ "page_idx": 4
465
+ },
466
+ {
467
+ "type": "text",
468
+ "text": "Experiments are carried out to evaluate the efficacy of the proposed framework in three applications: neural network pruning, adversarial attack defense and learning with label noise. ",
469
+ "bbox": [
470
+ 176,
471
+ 133,
472
+ 823,
473
+ 161
474
+ ],
475
+ "page_idx": 4
476
+ },
477
+ {
478
+ "type": "text",
479
+ "text": "4.1 NEURAL NETWORK PRUNING ",
480
+ "text_level": 1,
481
+ "bbox": [
482
+ 176,
483
+ 179,
484
+ 421,
485
+ 193
486
+ ],
487
+ "page_idx": 4
488
+ },
489
+ {
490
+ "type": "text",
491
+ "text": "Competitors We follow the architecture/dataset combinations used in most recent neural network pruning studies, including LeNet-5-Caffe1 network on MNIST (LeCun, 1998), VGG-16 (Simonyan & Zisserman, 2015) on CIFAR10 (Krizhevsky & Hinton, 2009) and a variant of VGG–16 on CIFAR100. Under these settings, the proposed method is compared with the following contemporary state-of-the-art methods including Generalized Dropout (GD) (Srinivas & Babu, 2016), Group Lasso (GL) (Wen et al., 2016), Sparse Variational Dropout (VD) (Molchanov et al., 2017a), Structured Bayesian Pruning (SBP) (Neklyudov et al., 2017), Bayesian Compression with Group Normal Jeffreys Prior (BC-GNJ) and Group Horseshoe Prior (BC-GHS) (Louizos et al., 2017), Sparse l0 Regularization (L0) and L0 with separate $\\lambda$ for each layer (L0-sep) (Louizos et al., 2018), Variational Information Bottleneck (VIBNet) (Dai et al., 2018), and Network Slimming (NS) (Liu et al., 2017). ",
492
+ "bbox": [
493
+ 174,
494
+ 208,
495
+ 825,
496
+ 348
497
+ ],
498
+ "page_idx": 4
499
+ },
500
+ {
501
+ "type": "text",
502
+ "text": "Evaluation Metrics Following the majority of the existing evaluations, we monitor the test error while focusing on the following three compression/complexity metrics: (a) Model size: The ratio of nonzero weights in the compressed network versus the original model. (b) FLOPs: The number of floating point operations required to predict a label from an input image during test2. (c) Run-time memory footprint: The ratio of the space for storing hidden feature maps during run-time in the pruned network versus the original network. ",
503
+ "bbox": [
504
+ 174,
505
+ 357,
506
+ 825,
507
+ 441
508
+ ],
509
+ "page_idx": 4
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "Training While many existing studies remove redundant weights, we remove redundant neurons during compression. Therefore, we can use the pipeline proposed in Molchanov et al. (2017b). Specifically, after training the neural network, an initial batch pruning stage is followed by a loop of removing the least important neuron and fine-tuning. Since SE-SNN is designed to discount unimportant neurons through inflating their pre-activation variance, we find that the network achieves this by simultaneously assigning high-variance and negative mean. As a result, a large portion of redundant neurons never activate their RELU non-linearity. In the initial batch pruning stage, neuron inactivity thus provides a single-step pruning criterion before the iterative pruning begins (and one that is guaranteed not to affect the test accuracy since these neurons propagate no information). The pruning then enters the second stage where the least important neuron removal $^ +$ fine-tuning loop continues until reaching the target trade-off between accuracy and model compression objectives. Since one neuron/channel is removed at each iteration, the accuracy never drops sharply. We set the uncertainty loss/regularizer weighting factor and margin $b$ (Eq. 5) as 0.0001 and 4, respectively. ",
514
+ "bbox": [
515
+ 174,
516
+ 453,
517
+ 825,
518
+ 632
519
+ ],
520
+ "page_idx": 4
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "Testing During testing, only the mean of the learned distribution is passed between layers. So there are no additional parameters and inference cost compared to the network’s deterministic counterpart. The distribution generation branches are only used during training to identify redundant neurons. ",
525
+ "bbox": [
526
+ 174,
527
+ 643,
528
+ 825,
529
+ 685
530
+ ],
531
+ "page_idx": 4
532
+ },
533
+ {
534
+ "type": "text",
535
+ "text": "Results on MNIST The most commonly used benchmark and architecture is MNIST with LeNet5-Caffe. We follow the standard training and testing protocols. The results are shown in Table 1. It is clear that SE-SNN achieves the best performance on FLOPs, run-time memory footprint, and test error. In terms of model size, our model is only comparable with the state of art. This is because it does not prune the linear layer as much as other methods. Instead, it focuses on pruning the convolutional filters, hence the excellent performance on FLOPS and memory footprint. ",
536
+ "bbox": [
537
+ 174,
538
+ 695,
539
+ 825,
540
+ 779
541
+ ],
542
+ "page_idx": 4
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "Results on CIFAR10 For CIFAR10, several VGG16 variants and training protocols have been proposed in different works. We use the standard VGG16 architecture but change the dimension of linear layers from 4096 to 512, as in (Louizos et al., 2017; Dai et al., 2018). The results in Table 2 compare our method with (Louizos et al., 2017; Dai et al., 2018). The error rate for VIBNet in parentheses was obtained by further fine-tuning the pruned architecture. Our model achieves the best performance across all the evaluation metrics and error rates. ",
547
+ "bbox": [
548
+ 174,
549
+ 790,
550
+ 825,
551
+ 873
552
+ ],
553
+ "page_idx": 4
554
+ },
555
+ {
556
+ "type": "table",
557
+ "img_path": "images/655e2edbc264f083d80735d6b43865e95b915eb2e932b61e410e81453281e821.jpg",
558
+ "table_caption": [
559
+ "Table 1: Compression results on MNIST using LeNet-5-Caffe. "
560
+ ],
561
+ "table_footnote": [],
562
+ "table_body": "<table><tr><td>Methods</td><td>Model size (%)</td><td>FLOPs (Mil)</td><td>Memory (%)</td><td>Error(%)</td></tr><tr><td>GD (Srinivas &amp; Babu,2016)</td><td>1.38</td><td>0.250</td><td>32.00</td><td>1.1</td></tr><tr><td>GL (Wen et al., 2016)</td><td>23.69</td><td>0.201</td><td>19.35</td><td>1.0</td></tr><tr><td>VD (Molchanov et al., 2017a)</td><td>9.29</td><td>0.660</td><td>60.78</td><td>1.0</td></tr><tr><td>SBP (Neklyudov et al., 2017)</td><td>19.66</td><td>0.213</td><td>21.15</td><td>0.9</td></tr><tr><td>BC-GNJ (Louizos et al., 2017)</td><td>0.95</td><td>0.283</td><td>35.03</td><td>1.0</td></tr><tr><td>BC-GHS (Louizos et al., 2017)</td><td>0.64</td><td>0.153</td><td>22.80</td><td>1.0</td></tr><tr><td>LO (Louizos et al., 2018)</td><td>8.92</td><td>1.113</td><td>85.82</td><td>0.9</td></tr><tr><td>LO-sep (Louizos et al., 2018)</td><td>1.08</td><td>0.389</td><td>40.36</td><td>1.0</td></tr><tr><td>VIBNet (Dai et al., 2018)</td><td>0.83</td><td>0.094</td><td>15.55</td><td>1.0</td></tr><tr><td>SE-SNN</td><td>2.35</td><td>0.061</td><td>11.08</td><td>0.9</td></tr></table>",
563
+ "bbox": [
564
+ 178,
565
+ 99,
566
+ 816,
567
+ 257
568
+ ],
569
+ "page_idx": 5
570
+ },
571
+ {
572
+ "type": "table",
573
+ "img_path": "images/745fb58c60f14300632a7e9a73a4962d80f59888133b8c081edc0bcbab489c55.jpg",
574
+ "table_caption": [
575
+ "Table 2: Compression results on CIFAR10 using VGG16. "
576
+ ],
577
+ "table_footnote": [],
578
+ "table_body": "<table><tr><td>Methods</td><td>Model size (%)</td><td>FLOPs (Mil)</td><td>Memory (%)</td><td>Error (%)</td></tr><tr><td>BC-GNJ (Louizos et al., 2017)</td><td>6.57</td><td>141.50</td><td>81.68</td><td>8.6</td></tr><tr><td>BC-GHS (Louizos et al., 2017)</td><td>5.40</td><td>121.90</td><td>74.82</td><td>9.0</td></tr><tr><td>VIBNet (Dai et al.,2018)</td><td>5.30</td><td>70.63</td><td>49.57</td><td>8.8(8.5)</td></tr><tr><td>SE-SNN</td><td>2.57</td><td>53.61</td><td>49.41</td><td>8.0</td></tr></table>",
579
+ "bbox": [
580
+ 179,
581
+ 292,
582
+ 815,
583
+ 367
584
+ ],
585
+ "page_idx": 5
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "Results on CIFAR100 We compare with the study in (Liu et al., 2017), which uses the same VGG16 variant that replaces two fully connected layers with three convolutional layers. This architecture improves accuracy at the expense of FLOPs and memory. The results in Table 3 show that our model produces the best compression result while maintaining comparable accuracy. Note that the $2 6 . 2 \\%$ error rate achieved by our model is identical to that of the original network. So if the accuracy drop is used as a compression metric, our model is as good as any competitor. ",
590
+ "bbox": [
591
+ 174,
592
+ 400,
593
+ 825,
594
+ 484
595
+ ],
596
+ "page_idx": 5
597
+ },
598
+ {
599
+ "type": "text",
600
+ "text": "4.2 ADVERSARIAL DEFENSE ",
601
+ "text_level": 1,
602
+ "bbox": [
603
+ 174,
604
+ 507,
605
+ 387,
606
+ 521
607
+ ],
608
+ "page_idx": 5
609
+ },
610
+ {
611
+ "type": "text",
612
+ "text": "Experimental Setting Following Alemi et al. (2017), we focus on two types of adversarial attacks: Fast Gradient Sign (FGS) (Goodfellow et al., 2015) and an optimization-based attack – CW-L2 (Carlini & Wagner, 2017). We evaluate untargeted FGS attacks with attack magnitude $\\epsilon$ ranging from 0.0 to 0.5 and untargeted CW-L2 attack on models trained on MNIST. We use a popular architecture including three FC layers with 1024, 1024 and 256 output neurons respectively. The third FC layer is implemented as a stochastic layer. We set the uncertainty loss/regularizer weighting factor and margin as 0.1 and 16, respectively. Results averaged over 20 runs are reported. We compare against the original (undefended) network, termed as ‘Baseline’, Deep VIB (Alemi et al., 2017) using the variational information bottleneck, Bayesian Adversarial Learning (BAL) (Ye & Zhu, 2018) putting a distribution on the adversarial data-generating process and Adv-BNN (Liu et al., 2019) learning a BNN to incorporate the effective randomness and using adversarial training to seek the best model distribution. Since our model is stochastic, we follow the best practice recommended in (Athalye et al., 2018) for attacking stochastic models: We compute the expected gradient over multiple stochastic samples for each input when constructing attacks. This is because using the expected gradient over multiple posterior samples produces a better gradient estimator for the attacker, allowing it to generate samples that are much harder to defend against (Athalye et al., 2018). For the FGS attack, we evaluate two settings, namely normal training and adversarial training, the latter of which generates and uses FGS attack samples during training to increase adversarial robustness. ",
613
+ "bbox": [
614
+ 174,
615
+ 536,
616
+ 826,
617
+ 787
618
+ ],
619
+ "page_idx": 5
620
+ },
621
+ {
622
+ "type": "text",
623
+ "text": "Results From the comparative results shown in Figure 2a, we can see that our SE-SNN outperforms the competing defense methods over a range of FGS attack strengths when trained with adversarial attack samples (Figure $2 \\mathrm { a } ( \\mathrm { R } ) )$ or with only normal samples (Figure 2a(L)). The advantage of SE-SNN is particularly pronounced when the attack magnitude is large. We can also see from Figure 2b that under the stronger CW attacks the Baseline now fails completely. In this case SE-SNN provides the most effective defense. It is worth pointing out that, unlike BAL (Ye & Zhu, 2018), which learns their models with explicit adversarial sampling, our SE-SNN can also work with training with only normal samples - Figure 2a suggests that our SE-SNN beats BAL even without being trained with adversarial attack samples (comparing SE-SNN in Figure 2a(L) to BAL in Figure 2a(R)). ",
624
+ "bbox": [
625
+ 174,
626
+ 799,
627
+ 825,
628
+ 924
629
+ ],
630
+ "page_idx": 5
631
+ },
632
+ {
633
+ "type": "table",
634
+ "img_path": "images/f9b9fb7eff4ff7260ecde3d5dcc8c92cec5a1c78ea22d58b68163e9111c36c97.jpg",
635
+ "table_caption": [
636
+ "Table 3: Compression results on CIFAR100 using a VGG16 variant. "
637
+ ],
638
+ "table_footnote": [],
639
+ "table_body": "<table><tr><td>Methods</td><td>Model size (%)</td><td>FLOPs (Mil)</td><td>Memory (%)</td><td>Error (%)</td></tr><tr><td>NS-Single (Liu et al., 2017)</td><td>24.90</td><td>250.50</td><td>1</td><td>26.5</td></tr><tr><td>NS-Best (Liu et al., 2017)</td><td>20.80</td><td>214.80</td><td>1</td><td>26.0</td></tr><tr><td>VIBNet (Dai et al., 2018)</td><td>15.08</td><td>203.10</td><td>73.80</td><td>25.9(25.7)</td></tr><tr><td>SE-SNN</td><td>14.93</td><td>181.31</td><td>70.16</td><td>26.2</td></tr></table>",
640
+ "bbox": [
641
+ 186,
642
+ 101,
643
+ 808,
644
+ 174
645
+ ],
646
+ "page_idx": 6
647
+ },
648
+ {
649
+ "type": "image",
650
+ "img_path": "images/4e0db648e6cbb51b018d1fcb324b9df469c62eba7c8c388da09529c50da9fdb8.jpg",
651
+ "image_caption": [
652
+ "Figure 2: Adversarial defense accuracy (mean $^ +$ standard deviation) under untargeted FGS and CW attacks on MNIST. "
653
+ ],
654
+ "image_footnote": [],
655
+ "bbox": [
656
+ 178,
657
+ 205,
658
+ 823,
659
+ 324
660
+ ],
661
+ "page_idx": 6
662
+ },
663
+ {
664
+ "type": "text",
665
+ "text": "4.3 ROBUSTNESS AGAINST LABEL NOISE",
666
+ "text_level": 1,
667
+ "bbox": [
668
+ 176,
669
+ 377,
670
+ 473,
671
+ 392
672
+ ],
673
+ "page_idx": 6
674
+ },
675
+ {
676
+ "type": "text",
677
+ "text": "In this section, tasks including digit recognition and person re-identification (ReID) are considered. Compared to Digit recognition, ReID is much more challenging. Particularly, ReID is an instance recognition task, which aims to match people under disjoint camera views. Although the performance of state-of-the-art ReID models on public benchmarks approaches saturation, ReID with label noise remains an unsolved and under-studied problem. ",
678
+ "bbox": [
679
+ 174,
680
+ 405,
681
+ 825,
682
+ 476
683
+ ],
684
+ "page_idx": 6
685
+ },
686
+ {
687
+ "type": "text",
688
+ "text": "Datasets The label noise robustness of our SE-SNN is evaluated for digit recognition using MNIST and ReID using Market-1501 (Zheng et al., 2015) benchmark. Market1501 is collected by 6 cameras and contains 751 training identities (12,936 images) and 750 test identities (19,281 images). The test set is organized into a query set and a gallery set. Cumulative Matching Characteristics (CMC) ranks and mean Average Precision are used as the performance measure. ",
689
+ "bbox": [
690
+ 174,
691
+ 486,
692
+ 825,
693
+ 555
694
+ ],
695
+ "page_idx": 6
696
+ },
697
+ {
698
+ "type": "text",
699
+ "text": "Noise Generation We consider patterned label noise which is more common in practice. Specifically, for MNIST, one class label will be flipped to a different one at a strength $p$ . The flipping pattern is fixed for each run but varies across different runs following (Hendrycks et al., 2018). For Market-1501, we use the commonly used ResNet-50 (He et al., 2016) trained on the clean data to obtain the feature of each training sample and find the most visually similar samples using feature Euclidean distance. Then for randomly selected training samples, their identity labels are assigned to that of the most similar sample that has a different identity, imitating human annotation errors. ",
700
+ "bbox": [
701
+ 174,
702
+ 565,
703
+ 825,
704
+ 664
705
+ ],
706
+ "page_idx": 6
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "Competitors Baseline: The main baseline is the original network without adding our stochastic layers. For a fair comparison, we add a parallel layer to the penultimate (feature) layer in the baseline to guarantee the two networks have the same number of parameters. The input of the added layer is the same as the feature layer, and its output is element-wise added along with the output of the feature layer to get the final feature, which is then fed to a fully connected layer for computing the classification loss. Bootstrap_hard and Bootstrap_soft (Reed et al., 2015): Both iteratively use the model-predicted labels to refine the original labels that are potentially corrupted by noise. They differ in whether the updated label is binary or continuous. Forward Correction (Patrini et al., 2017): This model predicts the label corruption matrix (capturing the label flipping pattern) by first training a classifier on the noisy labels followed by corruption matrix estimation using the resulting softmax probabilities. The estimated matrix is then employed to regularize the retraining of the model. For MNIST, we stick to the original setting, which uses the argmax at the 97th percentile of softmax probabilities for label noise detection. For the ReID experiment, we replace this with the argmax over all softmax probabilities for a given class following what Patrini et al. (2017) did on datasets of more classes such as CIFAR100. CleanNet (Lee et al., 2017): different from other models, this one requires a subset of noisy training samples to be re-annotated by a more reliable source (i.e., cleaned). It then learns the similarity between class and query-embedding vectors, which is further used to detect noisy samples for sample pruning. Having a cleaned subset gives CleanNet an unfair advantage over other compared models. The model requires at least 5 FC layers so cannot be implemented for the MNIST backbone. For person ReID, $10 \\%$ of the training set without noise is used as a clean reference set to train CleanNet using the author-provided code. After training, $20 \\%$ of the whole training set deemed most likely to be noisy are removed before the final ReID model is trained on the remainder. Note that unlike the four competitors, our SE-SNN does not have any additional steps to refine the label or prune the training samples. As explained earlier, it works by discounting/neutralizing the negative influence of noisy samples (hence also works on out-of-distribution samples with correct labels). Having said that, it can be easily combined with a label refinement procedure such as the corruption matrix based one in Forward Correction (Patrini et al., 2017). ",
711
+ "bbox": [
712
+ 173,
713
+ 674,
714
+ 825,
715
+ 924
716
+ ],
717
+ "page_idx": 6
718
+ },
719
+ {
720
+ "type": "image",
721
+ "img_path": "images/6216d76c2639e3deccd582e6c00e11213c98d68b8fd0f0d0e000006fffe91fca.jpg",
722
+ "image_caption": [
723
+ "Figure 3: Label noise results on MINIST (a) and ablation study results on Market-1501 (b,c). In (c), the top row shows samples with the highest variance and bottom row those with the lowest when there is no label noise. The high variance uncertain samples correspond to poor detections and occlusions. "
724
+ ],
725
+ "image_footnote": [],
726
+ "bbox": [
727
+ 174,
728
+ 101,
729
+ 820,
730
+ 219
731
+ ],
732
+ "page_idx": 7
733
+ },
734
+ {
735
+ "type": "table",
736
+ "img_path": "images/815995a0b25ae2d25b2b777ede3d626a42c004da9953d06fdad9c55b3d99a3f4.jpg",
737
+ "table_caption": [],
738
+ "table_footnote": [
739
+ "Table 4: Re-ID results on Market-1501 with label-noise. Model abbreviations: B: ResNet-Baseline, H: Bootstrap_hard (Reed et al., 2015), S: Bootstrap_soft (Reed et al., 2015), C: CleanNet (Lee et al., 2017), F: Forward Correction (Patrini et al., 2017). "
740
+ ],
741
+ "table_body": "<table><tr><td rowspan=\"2\">Strengths Models</td><td colspan=\"4\">10%</td><td colspan=\"4\">20%</td><td colspan=\"4\">50%</td></tr><tr><td>mAP</td><td>Rank1</td><td>Rank5</td><td>Rank10</td><td>mAP</td><td>Rank1</td><td>Rank5</td><td>Rank10</td><td>mAP</td><td>Rank1</td><td>Rank5</td><td>Rank10</td></tr><tr><td>B</td><td>25.87</td><td>51.46</td><td>70.21</td><td>76.81</td><td>23.49</td><td>48.44</td><td>67.85</td><td>74.67</td><td>20.74</td><td>44.04</td><td>64.32</td><td>72.27</td></tr><tr><td>H</td><td>25.76</td><td>51.08</td><td>70.11</td><td>77.06</td><td>23.40</td><td>48.25</td><td>67.34</td><td>74.40</td><td>19.87</td><td>42.87</td><td>63.37</td><td>71.40</td></tr><tr><td>S</td><td>25.50</td><td>50.47</td><td>69.43</td><td>76.32</td><td>24.08</td><td>49.51</td><td>68.77</td><td>75.62</td><td>20.72</td><td>43.86</td><td>64.49</td><td>72.55</td></tr><tr><td>C</td><td>26.64</td><td>52.47</td><td>70.90</td><td>77.41</td><td>24.28</td><td>49.54</td><td>68.35</td><td>75.33</td><td>19.90</td><td>43.01</td><td>63.13</td><td>71.34</td></tr><tr><td>F</td><td>21.17</td><td>45.88</td><td>64.79</td><td>71.69</td><td>18.91</td><td>42.11</td><td>62.12</td><td>69.99</td><td>15.34</td><td>36.06</td><td>56.23</td><td>64.55</td></tr><tr><td>SE-SNN</td><td>27.30</td><td>53.21</td><td>71.03</td><td>77.38</td><td>24.72</td><td>49.87</td><td>68.90</td><td>76.10</td><td>21.32</td><td>44.86</td><td>65.03</td><td>72.93</td></tr></table>",
742
+ "bbox": [
743
+ 173,
744
+ 286,
745
+ 825,
746
+ 377
747
+ ],
748
+ "page_idx": 7
749
+ },
750
+ {
751
+ "type": "text",
752
+ "text": "",
753
+ "bbox": [
754
+ 174,
755
+ 462,
756
+ 825,
757
+ 601
758
+ ],
759
+ "page_idx": 7
760
+ },
761
+ {
762
+ "type": "text",
763
+ "text": "Results The results on MNIST are shown in Figure 3a. We can see that even without any label correction/refinement procedure, our SE-SNN is already very competitive – it is only beaten by Forward Correction when the corruption strength (percentage of samples with label noise) is large $( > 0 . 2 )$ . Once our SE-SNN is combined with the same procedure adopted by Forward Correction (SE-SNN $+$ Forward), we achieve the best result. On the more challenging ReID task in Market-1501 (Table 4), our SE-SNN also achieves the best overall performance - even beating CleanNet which needs an additional cleaned training subset. Note that the strongest competitor on MNIST, Forward Correction now is the weakest. This is because, as admitted in (Patrini et al., 2017), it struggles with estimating an accurate correction matrix given a small number of training samples per class (e.g., 500 per class in CIFAR100). The $< 2 0$ class size in Market-1501 means that the label correction procedure only has a detrimental effect. Figure 3b compares the average variance/uncertainty inferred for clean and noisy data in Market-1501. We can see that, indeed the variance of noisy data is larger than that of clean data on average. We also notice that even when there is no label noise, SE-SNN beats the baseline by a clear margin ( $7 0 . 2 0 \\%$ mAP vs. $6 7 . 6 6 \\%$ ). This suggests that the mechanism of neutralizing outlying samples is still in play when the labels are clean. To validate this, we show some examples of outliers (those with the largest variance) in Figure 3c when there is no label noise. It is clear that these are mostly caused by either poor person detection or occlusion (i.e., outliers). In contrast, images with the smallest variance mostly contain people detected perfectly and without occlusion – the model is thus most confident about the feature representations for these. ",
764
+ "bbox": [
765
+ 173,
766
+ 611,
767
+ 825,
768
+ 875
769
+ ],
770
+ "page_idx": 7
771
+ },
772
+ {
773
+ "type": "text",
774
+ "text": "More SE-SNN implementation details for the label noise robust learning and more results can be found in the Appendix A. Further analyses across all tasks including hyperparameter analysis, solving multiple tasks in one model, effects of the number of stochastic layers are given in Appendix B. ",
775
+ "bbox": [
776
+ 176,
777
+ 882,
778
+ 823,
779
+ 924
780
+ ],
781
+ "page_idx": 7
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "5 CONCLUSION ",
786
+ "text_level": 1,
787
+ "bbox": [
788
+ 174,
789
+ 102,
790
+ 318,
791
+ 118
792
+ ],
793
+ "page_idx": 8
794
+ },
795
+ {
796
+ "type": "text",
797
+ "text": "We proposed a simple and effective stochastic neural network framework. Our model is related to VIB and variational dropout, but provides a simpler and more direct realization via neuron regularization by a non-informative activation prior. Our extensive experiments show that this simple framework has diverse benefits for network pruning, adversarial defense and label noise robust learning. ",
798
+ "bbox": [
799
+ 174,
800
+ 133,
801
+ 825,
802
+ 190
803
+ ],
804
+ "page_idx": 8
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "REFERENCES ",
809
+ "text_level": 1,
810
+ "bbox": [
811
+ 174,
812
+ 212,
813
+ 287,
814
+ 227
815
+ ],
816
+ "page_idx": 8
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "Alexander A Alemi, Ian Fischer, Joshua V Dillon, and Kevin Murphy. Deep variational information bottleneck. In ICLR, 2017. ",
821
+ "bbox": [
822
+ 174,
823
+ 234,
824
+ 823,
825
+ 263
826
+ ],
827
+ "page_idx": 8
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "Anish Athalye, Nicholas Carlini, and David Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. In ICML, 2018. ",
832
+ "bbox": [
833
+ 174,
834
+ 273,
835
+ 823,
836
+ 303
837
+ ],
838
+ "page_idx": 8
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "Chris M. Bishop. Training with noise is equivalent to tikhonov regularization. Neural Computation, 7(1):108–116, 1995. ",
843
+ "bbox": [
844
+ 173,
845
+ 313,
846
+ 823,
847
+ 342
848
+ ],
849
+ "page_idx": 8
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural networks. In ICML, 2015. ",
854
+ "bbox": [
855
+ 173,
856
+ 352,
857
+ 825,
858
+ 381
859
+ ],
860
+ "page_idx": 8
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In IEEESSP, 2017. ",
865
+ "bbox": [
866
+ 173,
867
+ 390,
868
+ 825,
869
+ 420
870
+ ],
871
+ "page_idx": 8
872
+ },
873
+ {
874
+ "type": "text",
875
+ "text": "Bin Dai, Chen Zhu, Baining Guo, and David Wipf. Compressing neural networks using the variational information bottleneck. In ICML, 2018. ",
876
+ "bbox": [
877
+ 176,
878
+ 429,
879
+ 823,
880
+ 459
881
+ ],
882
+ "page_idx": 8
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "Gwendoline de Bie, Gabriel Peyré, and Marco Cuturi. Stochastic deep networks. In ICML, 2019. ",
887
+ "bbox": [
888
+ 176,
889
+ 468,
890
+ 810,
891
+ 484
892
+ ],
893
+ "page_idx": 8
894
+ },
895
+ {
896
+ "type": "text",
897
+ "text": "Charlie Frogner, Farzaneh Mirzazadeh, and Justin Solomon. Learning embeddings into entropic wasserstein spaces. In ICLR, 2019. ",
898
+ "bbox": [
899
+ 173,
900
+ 493,
901
+ 820,
902
+ 523
903
+ ],
904
+ "page_idx": 8
905
+ },
906
+ {
907
+ "type": "text",
908
+ "text": "Yarin Gal and Zoubin Ghahramani. Dropout as a Bayesian approximation: Representing model uncertainty in deep learning. In ICML, 2016. ",
909
+ "bbox": [
910
+ 176,
911
+ 532,
912
+ 820,
913
+ 563
914
+ ],
915
+ "page_idx": 8
916
+ },
917
+ {
918
+ "type": "text",
919
+ "text": "Marta Garnelo, Dan Rosenbaum, Christopher Maddison, Tiago Ramalho, David Saxton, Murray Shanahan, Yee Whye Teh, Danilo Rezende, and S. M. Ali Eslami. Conditional neural processes. In ICML, 2018. ",
920
+ "bbox": [
921
+ 174,
922
+ 571,
923
+ 825,
924
+ 614
925
+ ],
926
+ "page_idx": 8
927
+ },
928
+ {
929
+ "type": "text",
930
+ "text": "Jacob Goldberger and Ehud Ben-Reuven. Training deep neural-networks using a noise adaptation layer. In ICLR, 2017. ",
931
+ "bbox": [
932
+ 171,
933
+ 625,
934
+ 823,
935
+ 654
936
+ ],
937
+ "page_idx": 8
938
+ },
939
+ {
940
+ "type": "text",
941
+ "text": "Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In ICLR, 2015. ",
942
+ "bbox": [
943
+ 171,
944
+ 662,
945
+ 825,
946
+ 693
947
+ ],
948
+ "page_idx": 8
949
+ },
950
+ {
951
+ "type": "text",
952
+ "text": "Alex Graves. Practical variational inference for neural networks. In NIPS, 2011. ",
953
+ "bbox": [
954
+ 171,
955
+ 702,
956
+ 702,
957
+ 718
958
+ ],
959
+ "page_idx": 8
960
+ },
961
+ {
962
+ "type": "text",
963
+ "text": "Caglar Gulcehre, Marcin Moczulski, Misha Denil, and Yoshua Bengio. Noisy activation functions. In ICML, 2016. ",
964
+ "bbox": [
965
+ 171,
966
+ 727,
967
+ 825,
968
+ 757
969
+ ],
970
+ "page_idx": 8
971
+ },
972
+ {
973
+ "type": "text",
974
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. ",
975
+ "bbox": [
976
+ 173,
977
+ 766,
978
+ 823,
979
+ 796
980
+ ],
981
+ "page_idx": 8
982
+ },
983
+ {
984
+ "type": "text",
985
+ "text": "Dan Hendrycks, Mantas Mazeika, Duncan Wilson, and Kevin Gimpel. Using trusted data to train deep networks on labels corrupted by severe noise. In NIPS, 2018. ",
986
+ "bbox": [
987
+ 173,
988
+ 805,
989
+ 823,
990
+ 835
991
+ ],
992
+ "page_idx": 8
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "Lu Jiang, Zhengyuan Zhou, Thomas Leung, Li-Jia Li, and Li Fei-Fei. Mentornet: Learning datadriven curriculum for very deep neural networks on corrupted labels. In ICML, 2018. ",
997
+ "bbox": [
998
+ 173,
999
+ 844,
1000
+ 823,
1001
+ 875
1002
+ ],
1003
+ "page_idx": 8
1004
+ },
1005
+ {
1006
+ "type": "text",
1007
+ "text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. ",
1008
+ "bbox": [
1009
+ 171,
1010
+ 883,
1011
+ 808,
1012
+ 898
1013
+ ],
1014
+ "page_idx": 8
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. In ICLR, 2014. ",
1019
+ "bbox": [
1020
+ 171,
1021
+ 909,
1022
+ 753,
1023
+ 924
1024
+ ],
1025
+ "page_idx": 8
1026
+ },
1027
+ {
1028
+ "type": "text",
1029
+ "text": "Durk P Kingma, Tim Salimans, and Max Welling. Variational dropout and the local reparameterization trick. In NIPS, 2015. ",
1030
+ "bbox": [
1031
+ 173,
1032
+ 103,
1033
+ 825,
1034
+ 132
1035
+ ],
1036
+ "page_idx": 9
1037
+ },
1038
+ {
1039
+ "type": "text",
1040
+ "text": "Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009. ",
1041
+ "bbox": [
1042
+ 173,
1043
+ 140,
1044
+ 823,
1045
+ 170
1046
+ ],
1047
+ "page_idx": 9
1048
+ },
1049
+ {
1050
+ "type": "text",
1051
+ "text": "Yann LeCun. The mnist database of handwritten digits. http://yann. lecun. com/exdb/mnist/, 1998. ",
1052
+ "bbox": [
1053
+ 176,
1054
+ 178,
1055
+ 820,
1056
+ 195
1057
+ ],
1058
+ "page_idx": 9
1059
+ },
1060
+ {
1061
+ "type": "text",
1062
+ "text": "Kuang-Huei Lee, Xiaodong He, Lei Zhang, and Linjun Yang. Cleannet: Transfer learning for scalable image classifier training with label noise. In ICCV, 2017. ",
1063
+ "bbox": [
1064
+ 173,
1065
+ 202,
1066
+ 823,
1067
+ 232
1068
+ ],
1069
+ "page_idx": 9
1070
+ },
1071
+ {
1072
+ "type": "text",
1073
+ "text": "Xuanqing Liu, Minhao Cheng, Huan Zhang, and Cho-Jui Hsieh. Towards robust neural networks via random self-ensemble. In ECCV, 2018. ",
1074
+ "bbox": [
1075
+ 173,
1076
+ 239,
1077
+ 825,
1078
+ 270
1079
+ ],
1080
+ "page_idx": 9
1081
+ },
1082
+ {
1083
+ "type": "text",
1084
+ "text": "Xuanqing Liu, Yao Li, Chongruo Wu, and Cho-Jui Hsieh. Adv-bnn: Improved adversarial defense through robust bayesian neural network. In ICLR, 2019. ",
1085
+ "bbox": [
1086
+ 171,
1087
+ 277,
1088
+ 823,
1089
+ 308
1090
+ ],
1091
+ "page_idx": 9
1092
+ },
1093
+ {
1094
+ "type": "text",
1095
+ "text": "Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through network slimming. In ICCV, 2017. ",
1096
+ "bbox": [
1097
+ 171,
1098
+ 315,
1099
+ 823,
1100
+ 345
1101
+ ],
1102
+ "page_idx": 9
1103
+ },
1104
+ {
1105
+ "type": "text",
1106
+ "text": "Christos Louizos, Karen Ullrich, and Max Welling. Bayesian compression for deep learning. In NIPS, 2017. ",
1107
+ "bbox": [
1108
+ 176,
1109
+ 353,
1110
+ 823,
1111
+ 382
1112
+ ],
1113
+ "page_idx": 9
1114
+ },
1115
+ {
1116
+ "type": "text",
1117
+ "text": "Christos Louizos, Max Welling, and Diederik P Kingma. Learning sparse neural networks through l_0 regularization. In ICLR, 2018. ",
1118
+ "bbox": [
1119
+ 171,
1120
+ 390,
1121
+ 823,
1122
+ 421
1123
+ ],
1124
+ "page_idx": 9
1125
+ },
1126
+ {
1127
+ "type": "text",
1128
+ "text": "Dmitry Molchanov, Arsenii Ashukha, and Dmitry Vetrov. Variational dropout sparsifies deep neural networks. In ICML, 2017a. ",
1129
+ "bbox": [
1130
+ 173,
1131
+ 428,
1132
+ 823,
1133
+ 458
1134
+ ],
1135
+ "page_idx": 9
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "text": "Pavlo Molchanov, Stephen Tyree, Tero Karras, Timo Aila, and Jan Kautz. Pruning convolutional neural networks for resource efficient inference. In ICLR, 2017b. ",
1140
+ "bbox": [
1141
+ 171,
1142
+ 465,
1143
+ 825,
1144
+ 496
1145
+ ],
1146
+ "page_idx": 9
1147
+ },
1148
+ {
1149
+ "type": "text",
1150
+ "text": "Arvind Neelakantan, Luke Vilnis, Quoc V. Le, Lukasz Kaiser, Karol Kurach, Ilya Sutskever, and James Martens. Adding gradient noise improves learning for very deep networks. CoRR, abs/1511.06807, 2015. ",
1151
+ "bbox": [
1152
+ 176,
1153
+ 503,
1154
+ 823,
1155
+ 547
1156
+ ],
1157
+ "page_idx": 9
1158
+ },
1159
+ {
1160
+ "type": "text",
1161
+ "text": "Kirill Neklyudov, Dmitry Molchanov, Arsenii Ashukha, and Dmitry P Vetrov. Structured bayesian pruning via log-normal multiplicative noise. In NIPS, 2017. ",
1162
+ "bbox": [
1163
+ 171,
1164
+ 555,
1165
+ 823,
1166
+ 585
1167
+ ],
1168
+ "page_idx": 9
1169
+ },
1170
+ {
1171
+ "type": "text",
1172
+ "text": "Hyeonwoo Noh, Tackgeun You, Jonghwan Mun, and Bohyung Han. Regularizing deep neural networks by noise: Its interpretation and optimization. In NIPS, 2017. ",
1173
+ "bbox": [
1174
+ 171,
1175
+ 593,
1176
+ 823,
1177
+ 623
1178
+ ],
1179
+ "page_idx": 9
1180
+ },
1181
+ {
1182
+ "type": "text",
1183
+ "text": "Giorgio Patrini, Alessandro Rozza, Aditya Krishna Menon, Richard Nock, and Lizhen Qu. Making deep neural networks robust to label noise: A loss correction approach. In CVPR, 2017. ",
1184
+ "bbox": [
1185
+ 174,
1186
+ 631,
1187
+ 823,
1188
+ 660
1189
+ ],
1190
+ "page_idx": 9
1191
+ },
1192
+ {
1193
+ "type": "text",
1194
+ "text": "Janis Postels, Francesco Ferroni, Huseyin Coskun, Nassir Navab, and Federico Tombari. Samplingfree epistemic uncertainty estimation using approximated variance propagation. In ICCV, 2019. ",
1195
+ "bbox": [
1196
+ 174,
1197
+ 667,
1198
+ 823,
1199
+ 699
1200
+ ],
1201
+ "page_idx": 9
1202
+ },
1203
+ {
1204
+ "type": "text",
1205
+ "text": "Scott E. Reed, Honglak Lee, Dragomir Anguelov, Christian Szegedy, Dumitru Erhan, and Andrew Rabinovich. Training deep neural networks on noisy labels with bootstrapping. In ICLR Workshop, 2015. ",
1206
+ "bbox": [
1207
+ 173,
1208
+ 705,
1209
+ 826,
1210
+ 750
1211
+ ],
1212
+ "page_idx": 9
1213
+ },
1214
+ {
1215
+ "type": "text",
1216
+ "text": "Hippolyt Ritter, Aleksandar Botev, and David Barber. A scalable laplace approximation for neural networks. In ICLR, 2018. ",
1217
+ "bbox": [
1218
+ 173,
1219
+ 757,
1220
+ 823,
1221
+ 787
1222
+ ],
1223
+ "page_idx": 9
1224
+ },
1225
+ {
1226
+ "type": "text",
1227
+ "text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. ",
1228
+ "bbox": [
1229
+ 173,
1230
+ 795,
1231
+ 825,
1232
+ 825
1233
+ ],
1234
+ "page_idx": 9
1235
+ },
1236
+ {
1237
+ "type": "text",
1238
+ "text": "Suraj Srinivas and R Venkatesh Babu. Generalized dropout. CoRR, abs/1611.06791, 2016. ",
1239
+ "bbox": [
1240
+ 169,
1241
+ 833,
1242
+ 769,
1243
+ 849
1244
+ ],
1245
+ "page_idx": 9
1246
+ },
1247
+ {
1248
+ "type": "text",
1249
+ "text": "Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. JMLR, 15:1929–1958, 2014. ",
1250
+ "bbox": [
1251
+ 176,
1252
+ 857,
1253
+ 823,
1254
+ 887
1255
+ ],
1256
+ "page_idx": 9
1257
+ },
1258
+ {
1259
+ "type": "text",
1260
+ "text": "Sainbayar Sukhbaatar, Joan Bruna, Manohar Paluri, Lubomir Bourdev, and Rob Fergus. Training convolutional networks with noisy labels. In ICLR, 2015. ",
1261
+ "bbox": [
1262
+ 176,
1263
+ 895,
1264
+ 821,
1265
+ 924
1266
+ ],
1267
+ "page_idx": 9
1268
+ },
1269
+ {
1270
+ "type": "table",
1271
+ "img_path": "images/f1169214c5179021dc74711cb96fbd089c6ff0e7a07db9c61fad298ddef37fd0.jpg",
1272
+ "table_caption": [
1273
+ "Table A.1: Standard deviation value of Re-ID results on Market-1501 with label-noise. "
1274
+ ],
1275
+ "table_footnote": [],
1276
+ "table_body": "<table><tr><td>Strengths</td><td colspan=\"4\">10%</td><td colspan=\"4\">20%</td><td colspan=\"4\">50%</td></tr><tr><td>Models</td><td>mAP</td><td>Rank1</td><td>Rank5</td><td>Rank10</td><td>mAP</td><td>Rank1</td><td>Rank5</td><td>Rank10</td><td>mAP</td><td>Rank1</td><td>Rank5</td><td>Rank10</td></tr><tr><td>B</td><td>0.41</td><td>0.83</td><td>0.75</td><td>0.98</td><td>0.56</td><td>0.82</td><td>0.74</td><td>0.62</td><td>1.25</td><td>2.04</td><td>1.48</td><td>1.56</td></tr><tr><td>H</td><td>0.60</td><td>0.76</td><td>1.34</td><td>1.12</td><td>0.70</td><td>0.97</td><td>0.57</td><td>0.77</td><td>0.93</td><td>1.82</td><td>1.55</td><td>0.97</td></tr><tr><td>S</td><td>0.78</td><td>0.93</td><td>0.85</td><td>0.95</td><td>0.82</td><td>1.48</td><td>1.45</td><td>1.38</td><td>0.51</td><td>1.11</td><td>0.85</td><td>0.61</td></tr><tr><td>C</td><td>0.83</td><td>1.45</td><td>0.98</td><td>0.90</td><td>0.44</td><td>0.53</td><td>0.96</td><td>0.58</td><td>1.08</td><td>1.68</td><td>1.85</td><td>1.66</td></tr><tr><td>F</td><td>1.03</td><td>1.64</td><td>1.98</td><td>1.53</td><td>0.82</td><td>1.50</td><td>1.12</td><td>0.86</td><td>0.56</td><td>1.48</td><td>1.63</td><td>1.97</td></tr><tr><td>SE-SNN</td><td>0.43</td><td>1.11</td><td>0.88</td><td>0.74</td><td>0.24</td><td>0.68</td><td>0.67</td><td>0.44</td><td>0.94</td><td>1.46</td><td>1.42</td><td>1.11</td></tr></table>",
1277
+ "bbox": [
1278
+ 174,
1279
+ 101,
1280
+ 825,
1281
+ 193
1282
+ ],
1283
+ "page_idx": 10
1284
+ },
1285
+ {
1286
+ "type": "text",
1287
+ "text": "Naftali Tishby, Fernando C Pereira, and William Bialek. The information bottleneck method. In Allerton, 1999. ",
1288
+ "bbox": [
1289
+ 171,
1290
+ 227,
1291
+ 825,
1292
+ 256
1293
+ ],
1294
+ "page_idx": 10
1295
+ },
1296
+ {
1297
+ "type": "text",
1298
+ "text": "Hao Wang, SHI Xingjian, and Dit-Yan Yeung. Natural-parameter networks: A class of probabilistic neural networks. In NIPS, 2016. ",
1299
+ "bbox": [
1300
+ 173,
1301
+ 263,
1302
+ 823,
1303
+ 292
1304
+ ],
1305
+ "page_idx": 10
1306
+ },
1307
+ {
1308
+ "type": "text",
1309
+ "text": "Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In NIPS, 2016. ",
1310
+ "bbox": [
1311
+ 176,
1312
+ 301,
1313
+ 825,
1314
+ 329
1315
+ ],
1316
+ "page_idx": 10
1317
+ },
1318
+ {
1319
+ "type": "text",
1320
+ "text": "Cihang Xie, Jianyu Wang, Zhishuai Zhang, Zhou Ren, and Alan L. Yuille. Mitigating adversarial effects through randomization. In ICLR, 2018. ",
1321
+ "bbox": [
1322
+ 176,
1323
+ 338,
1324
+ 823,
1325
+ 366
1326
+ ],
1327
+ "page_idx": 10
1328
+ },
1329
+ {
1330
+ "type": "text",
1331
+ "text": "Nanyang Ye and Zhanxing Zhu. Bayesian adversarial learning. In NIPS, 2018. ",
1332
+ "bbox": [
1333
+ 174,
1334
+ 375,
1335
+ 694,
1336
+ 390
1337
+ ],
1338
+ "page_idx": 10
1339
+ },
1340
+ {
1341
+ "type": "text",
1342
+ "text": "Zhonghui You, Jinmian Ye, Kunming Li, and Ping Wang. Adversarial noise layer: Regularize neural network by adding noise. CoRR, abs/1805.08000, 2018. ",
1343
+ "bbox": [
1344
+ 176,
1345
+ 397,
1346
+ 823,
1347
+ 426
1348
+ ],
1349
+ "page_idx": 10
1350
+ },
1351
+ {
1352
+ "type": "text",
1353
+ "text": "Liang Zheng, Liyue Shen, Lu Tian, Shengjin Wang, Jingdong Wang, and Qi Tian. Scalable person re-identification: A benchmark. In ICCV, 2015. ",
1354
+ "bbox": [
1355
+ 176,
1356
+ 434,
1357
+ 823,
1358
+ 463
1359
+ ],
1360
+ "page_idx": 10
1361
+ },
1362
+ {
1363
+ "type": "text",
1364
+ "text": "A EXPERIMENTAL DETAILS OF LABEL NOISE ",
1365
+ "text_level": 1,
1366
+ "bbox": [
1367
+ 174,
1368
+ 487,
1369
+ 570,
1370
+ 503
1371
+ ],
1372
+ "page_idx": 10
1373
+ },
1374
+ {
1375
+ "type": "text",
1376
+ "text": "For the experiments on MNIST, we follow (Patrini et al., 2017) to train a neural network with two FC layers of dimension 128, where both FC layers are implemented as stochastic layers. For Market-1501, following most recent state-of-the-art ReID models we use ResNet-50 (He et al., 2016) as the backbone. In this model, only the last unit of the final residual block is implemented as a stochastic layer. ",
1377
+ "bbox": [
1378
+ 174,
1379
+ 518,
1380
+ 825,
1381
+ 588
1382
+ ],
1383
+ "page_idx": 10
1384
+ },
1385
+ {
1386
+ "type": "text",
1387
+ "text": "For Market-1501, we train our model for two stages: (1) We fine-tune ImageNet pretrained ResNet-50 (for identity classification) on Market-1501 training set for 60, 000 iterations. We use batch size 32 and Adam optimizer (Kingma & Ba, 2015) with learning rate $3 . 5 \\times 1 0 ^ { - 4 }$ . (2) We retain the model parameters trained in stage (1) and extend the last unit to a stochastic layer with randomly initialized $\\sigma$ layer. Then, we train the stochastic layer and the classifier for another 20, 000 iterations with a lower learning rate $5 \\times 1 0 ^ { - 4 }$ . The margin $b$ is set as 4 in the max-entropy regularization loss (Eq. 6) and a loss weight $1 0 ^ { - 2 }$ is assigned. ",
1388
+ "bbox": [
1389
+ 174,
1390
+ 595,
1391
+ 825,
1392
+ 693
1393
+ ],
1394
+ "page_idx": 10
1395
+ },
1396
+ {
1397
+ "type": "text",
1398
+ "text": "For both benchmarks, due to the randomness of noisy samples in selection and label reassignment, multiple runs of experiments are conducted. The standard deviation values of Re-ID results on Market-1501 with label-noise are shown in Table A.1. ",
1399
+ "bbox": [
1400
+ 174,
1401
+ 699,
1402
+ 825,
1403
+ 741
1404
+ ],
1405
+ "page_idx": 10
1406
+ },
1407
+ {
1408
+ "type": "text",
1409
+ "text": "B FURTHER ANALYSIS ",
1410
+ "text_level": 1,
1411
+ "bbox": [
1412
+ 176,
1413
+ 761,
1414
+ 379,
1415
+ 777
1416
+ ],
1417
+ "page_idx": 10
1418
+ },
1419
+ {
1420
+ "type": "text",
1421
+ "text": "B.1 HYPER-PARAMETERS ANALYSIS ",
1422
+ "text_level": 1,
1423
+ "bbox": [
1424
+ 176,
1425
+ 792,
1426
+ 441,
1427
+ 808
1428
+ ],
1429
+ "page_idx": 10
1430
+ },
1431
+ {
1432
+ "type": "text",
1433
+ "text": "In this section, we analyze the impact of loss weight, which is denoted as $\\omega$ , and the margin $b$ for regularizers of all tasks on MNIST. We report the FLOPs of the compressed model (Network pruning), adversarial defense accuracy under the FGSM attack (Adversarial defense) and test accuracy of a model trained with $40 \\%$ label noise (Label noise) in Figure B.1. ",
1434
+ "bbox": [
1435
+ 174,
1436
+ 818,
1437
+ 825,
1438
+ 875
1439
+ ],
1440
+ "page_idx": 10
1441
+ },
1442
+ {
1443
+ "type": "text",
1444
+ "text": "In Figure B.1(top), we evaluate the effects of having different values of $\\omega$ from $[ 1 0 ^ { - 1 } , 1 0 ^ { - 2 } , 1 0 ^ { - 3 } ]$ . We can see that, for all three values and across the three tasks, the performance of our method is only marginally impacted by $\\omega$ and the overall best performance is achieved when $\\omega = 1 0 ^ { - 2 }$ . ",
1445
+ "bbox": [
1446
+ 176,
1447
+ 881,
1448
+ 825,
1449
+ 924
1450
+ ],
1451
+ "page_idx": 10
1452
+ },
1453
+ {
1454
+ "type": "image",
1455
+ "img_path": "images/69c8feecd27f570b16ac7a611be0422a7581dd894cbc28c6ef71861ff9971777.jpg",
1456
+ "image_caption": [
1457
+ "Figure B.1: Impact analysis of loss weight $\\omega$ (top) and margin $b$ (bottom) on MNIST. "
1458
+ ],
1459
+ "image_footnote": [],
1460
+ "bbox": [
1461
+ 171,
1462
+ 99,
1463
+ 825,
1464
+ 349
1465
+ ],
1466
+ "page_idx": 11
1467
+ },
1468
+ {
1469
+ "type": "image",
1470
+ "img_path": "images/028d8326137d39ac1891ff96be9dee83b9175deb4c795ae551b871da30c2fb6e.jpg",
1471
+ "image_caption": [
1472
+ "Figure B.2: Test accuracy of different methods trained on MNIST with label noise. "
1473
+ ],
1474
+ "image_footnote": [],
1475
+ "bbox": [
1476
+ 183,
1477
+ 388,
1478
+ 369,
1479
+ 474
1480
+ ],
1481
+ "page_idx": 11
1482
+ },
1483
+ {
1484
+ "type": "image",
1485
+ "img_path": "images/640e1e2b7367e65565fdf284527e3c8ce681a6727157ab254bf1f5475ab1e94f.jpg",
1486
+ "image_caption": [
1487
+ "Figure B.3: Effect of the number of stochastic layers on MNIST with label noise. "
1488
+ ],
1489
+ "image_footnote": [],
1490
+ "bbox": [
1491
+ 406,
1492
+ 387,
1493
+ 594,
1494
+ 474
1495
+ ],
1496
+ "page_idx": 11
1497
+ },
1498
+ {
1499
+ "type": "image",
1500
+ "img_path": "images/5596edc72715a074b4f2443056bd4fabd64c4d21b7e94c9087f4af4d6a73d26e.jpg",
1501
+ "image_caption": [
1502
+ "Figure B.4: Convergence Curve on MNIST with label noise . "
1503
+ ],
1504
+ "image_footnote": [],
1505
+ "bbox": [
1506
+ 627,
1507
+ 388,
1508
+ 815,
1509
+ 474
1510
+ ],
1511
+ "page_idx": 11
1512
+ },
1513
+ {
1514
+ "type": "text",
1515
+ "text": "In Figure B.1(bottom), we investigate the sensitivity of our model to the values of margin $b$ . Three values, $[ \\log ( 1 ) , \\log ( 4 ) , \\log ( 1 6 ) ]$ are considered. Recall that our SE-SNN uses a non-informative prior to regularize the uncertainty of neuron activations, and a margin $b$ is employed to upper-bound the standard deviation of the stochastic layers in SE-SNN. Therefore, larger values of $b$ will lead to a higher degree of uncertainty of stochastic layers. From Figure B.1(bottom), we can see that increasing the value of $b$ improves the performance of our method on adversarial defense and label noise. However, for network pruning, smaller $b$ is preferred. Overall, our model is insensitive to the value of $b$ . ",
1516
+ "bbox": [
1517
+ 174,
1518
+ 551,
1519
+ 825,
1520
+ 662
1521
+ ],
1522
+ "page_idx": 11
1523
+ },
1524
+ {
1525
+ "type": "text",
1526
+ "text": "B.2 COMBINATION OF NETWORK PRUNING AND LABEL NOISE ",
1527
+ "text_level": 1,
1528
+ "bbox": [
1529
+ 174,
1530
+ 681,
1531
+ 614,
1532
+ 694
1533
+ ],
1534
+ "page_idx": 11
1535
+ },
1536
+ {
1537
+ "type": "text",
1538
+ "text": "The effectiveness of our SE-SNN has been demonstrated on the three tasks separately, but there is no reason why it cannot be deployed to deal with multiple tasks simultaneously. To validate this, in this experiment, we train SE-SNN on MNIST with $40 \\%$ label noise while conducting model pruning. We use the same architecture with three FC layers (784-128-128-10) as the previous label noise experiments, and make the first two layers stochastic layers. We compare the trained model with two competitors, including the baseline model (without stochastic layers) and our normal SE-SNN (without pruning) both trained with label noise. ",
1539
+ "bbox": [
1540
+ 174,
1541
+ 705,
1542
+ 825,
1543
+ 803
1544
+ ],
1545
+ "page_idx": 11
1546
+ },
1547
+ {
1548
+ "type": "text",
1549
+ "text": "From the results in Figure B.2, we can see that we get a pruned SE-SNN (145-26-15-10) trained with label noise achieving $9 5 . 2 0 \\%$ test accuracy, which is even slightly better than our normal SE-SNN $( 9 5 . 1 7 \\% )$ and much better than the baseline $( 8 1 . 0 4 \\% )$ . ",
1550
+ "bbox": [
1551
+ 176,
1552
+ 810,
1553
+ 825,
1554
+ 852
1555
+ ],
1556
+ "page_idx": 11
1557
+ },
1558
+ {
1559
+ "type": "text",
1560
+ "text": "B.3 EFFECT OF THE NUMBER OF STOCHASTIC LAYERS ",
1561
+ "text_level": 1,
1562
+ "bbox": [
1563
+ 174,
1564
+ 871,
1565
+ 562,
1566
+ 883
1567
+ ],
1568
+ "page_idx": 11
1569
+ },
1570
+ {
1571
+ "type": "text",
1572
+ "text": "In this section, we study the effect of the number of used stochastic layers (SLs). The experiments are run on the label noise robust learning task with network comprising two FC layers. For the network ",
1573
+ "bbox": [
1574
+ 174,
1575
+ 895,
1576
+ 825,
1577
+ 924
1578
+ ],
1579
+ "page_idx": 11
1580
+ },
1581
+ {
1582
+ "type": "text",
1583
+ "text": "with one SL, we make the penultimate layer stochastic. Note that the network with zero SL is the baseline. Figure B.3 shows the test accuracy of models with different numbers of SLs used. We can see that increasing the number of SLs helps improve the model’s robustness to label noise. ",
1584
+ "bbox": [
1585
+ 173,
1586
+ 103,
1587
+ 825,
1588
+ 146
1589
+ ],
1590
+ "page_idx": 12
1591
+ },
1592
+ {
1593
+ "type": "text",
1594
+ "text": "B.4 CONVERGENCE CURVE ",
1595
+ "text_level": 1,
1596
+ "bbox": [
1597
+ 176,
1598
+ 162,
1599
+ 377,
1600
+ 176
1601
+ ],
1602
+ "page_idx": 12
1603
+ },
1604
+ {
1605
+ "type": "text",
1606
+ "text": "The training efficiency of the proposed method is studied here by examining how fast the algorithm converges. The experiments are run on the label noise robust learning task. Figure B.4 shows the losses of different methods during 10 training epochs. It is observed that Bootstrap and Forward have larger loss values than the rest. This is because they use losses in addition to the classification loss. Overall our method is shown to be as efficient as other methods, despite the fact that we have introduced stochastic layers and used a reparameterization trick during training. ",
1607
+ "bbox": [
1608
+ 174,
1609
+ 188,
1610
+ 825,
1611
+ 272
1612
+ ],
1613
+ "page_idx": 12
1614
+ }
1615
+ ]
parse/train/SJxeI6EYwS/SJxeI6EYwS_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJxeI6EYwS/SJxeI6EYwS_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/WGWzwdjm8mS/WGWzwdjm8mS_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/WGWzwdjm8mS/WGWzwdjm8mS_model.json ADDED
The diff for this file is too large to render. See raw diff