ZHANGYUXUAN-zR commited on
Commit
f4da8bd
·
verified ·
1 Parent(s): f469bcb

Add files using upload-large-folder tool

Browse files
parse/train/B1xGGTEtDH/B1xGGTEtDH.md ADDED
@@ -0,0 +1,608 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # UNIVERSAL APPROXIMATION WITH DEEP NARROW NETWORKS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ The classical Universal Approximation Theorem certifies that the universal approximation property holds for the class of neural networks of arbitrary width. Here we consider the natural ‘dual’ theorem for width-bounded networks of arbitrary depth. Precisely, let $n$ be the number of inputs neurons, $m$ be the number of output neurons, and let $\rho$ be any nonaffine continuous function, with a continuous nonzero derivative at some point. Then we show that the class of neural networks of arbitrary depth, width $n + m + 2$ , and activation function $\rho$ , exhibits the universal approximation property with respect to the uniform norm on compact subsets of $\mathbb { R } ^ { n }$ . This covers every activation function possible to use in practice; in particular this includes polynomial activation functions, making this genuinely different to the classical case. We go on to consider extensions of this result. First we show an analogous result for a certain class of nowhere differentiable activation functions. Second we establish an analogous result for noncompact domains, by showing that deep narrow networks with the ReLU activation function exhibit the universal approximation property with respect to the $p$ -norm on $\mathbb { R } ^ { n }$ . Finally we show that width of only $n + m + 1$ suffices for ‘most’ activation functions.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ The Universal Approximation Theorem (Cybenko, 1989; Hornik, 1991; Pinkus, 1999) states that universal approximation holds for the class of neural networks with a single hidden layer of arbitrary width, with any continuous nonpolynomial activation function:
12
+
13
+ Theorem 1.1. Let $\rho \colon \mathbb { R } \mathbb { R }$ be any continuous function. Let $\mathcal { N } _ { n } ^ { \rho }$ represent the class of neural networks with activation function $\rho _ { i }$ , with n neurons in the input layer, one neuron in the output layer, and one hidden layer with an arbitrary number of neurons. Let $K \subseteq \mathbb { R } ^ { n }$ be compact. Then $\dot { \mathcal { N } } _ { n } ^ { \rho }$ is dense in $C ( K )$ if and only if ρ is nonpolynomial.
14
+
15
+ What if arbitrary width is replaced with arbitrary depth? Put more precisely, can networks of bounded width and arbitrary depth provide universal approximation? In some sense this poses a question ‘dual’ to the problem answered by the classical Universal Approximation Theorem. We refer to networks of this type as deep, narrow networks.
16
+
17
+ Furthermore we might ask how narrow the network may be, and what activation functions may be admitted. We provide a near-complete answer to these various questions.
18
+
19
+ Universal approximation may be established with respect to more than one topology. Continuous activation functions beget networks representing continuous functions. Thus when working with respect to the uniform norm, it is natural to seek density in $C ( K ; \mathbb { R } ^ { m } )$ for $K \subseteq \mathbb { R } ^ { n }$ . When working with respect to the $p$ -norm, it is natural to seek density in $L ^ { p } ( \mathbb { R } ^ { n } ; \mathbb { R } ^ { m } )$ for $p \in [ 1 , \infty )$ . In this latter case we may hope to generalise to noncompact domains, as functions in $L ^ { p } ( \mathbb { R } ^ { n } ; \mathbb { R } ^ { m } )$ must exhibit some sort of decay.
20
+
21
+ The primary motivation for this work stems from the work of Lu et al. (2017), who study this question in the special case of the popular ReLU activation function, and who establish density in $L ^ { 1 } ( \mathbb { R } ^ { n } )$ . The other notable result we are aware of is the work of Hanin & Sellke (2017), who show another special case: they also consider the ReLU activation function, and establish density in $C ( K ; \mathbb { R } ^ { m } )$ for $K \subseteq \mathbb { R } ^ { n }$ compact.
22
+
23
+ This article demonstrates generalisations of these results, in particular to general activation functions, without relying on the strong algebraic and analytic properties of the ReLU activation function. This also improves certain results specific to the ReLU.
24
+
25
+ The rest of the paper is laid out as follows. Section 2 discusses existing work. Section 3 provides a brief summary of our results; these are then presented in detail in Section 4. Section 5 is the conclusion. Several proofs are deferred to the appendices, due to length and technical content.
26
+
27
+ # 2 CONTEXT
28
+
29
+ Some positive results have been established showing that particular classes of networks are dense in certain spaces. Some negative results have also been established, showing that insufficiently wide networks will fail to be dense.
30
+
31
+ Hanin & Sellke (2017) have shown that deep narrow networks with the ReLU activation function exhibit the universal approximation property in $C ( K ; \mathbb { R } ^ { m } )$ for $K \subseteq \mathbb { R } ^ { n }$ compact.
32
+
33
+ Lu et al. (2017) have shown that deep narrow networks with the ReLU activation function exhibit the universal approximation property in $L ^ { 1 } ( \mathbb { R } ^ { n } )$ , whilst Lin & Jegelka (2018) have shown that a particular description of residual networks, with the ReLU activation function, also exhibit the universal approximation property in this space. We are not aware of any results for the general case of $L ^ { p } ( \mathbb { R } ^ { n } ; \mathbb { R } ^ { m } )$ for $p \in [ 1 , \infty )$ .
34
+
35
+ We do not know of any positive results applying to activation functions other than the ReLU.
36
+
37
+ Regarding widths insufficient for a class of deep narrow networks to exhibit the universal approximation property, consider the case of a network with $n$ input neurons and a single output neuron. For certain activation functions, Johnson (2019) shows that width $n$ is insufficient to give density in $C ( K )$ . For the ReLU activation function, Lu et al. (2017) show that width $n$ is insufficient to give density in $L ^ { 1 } ( \mathbb { R } ^ { n } )$ , and that width $n - 1$ is insufficient in $L ^ { 1 } ( [ - 1 , 1 ] ^ { n } )$ . For the ReLU activation function, Hanin & Sellke (2017) shows that width $n$ is insufficient to give density in $C ( K )$ , and that in fact that this is the greatest possible width not achieving universal approximation in this context.
38
+
39
+ The precise minimum width for activation functions other than ReLU, or for multiple output neurons, remains unknown.
40
+
41
+ Everything discussed so far is in the most general case of approximating functions on Euclidean space: in the language of machine learning, they are regression tasks. There has been some related work in the special case of classification tasks, for example Beise et al. (2018); Szymanski & McCane (2012); Rojas (2003); Nguyen et al. (2018). There has also been some related work in the special case of certain finite domains; Le Roux & Bengio (2010) show that networks with sigmoid activation function and width $n$ can approximate any distribution on $\{ 0 , 1 \} ^ { n }$ . See also Sutskever & Hinton (2008). Montufar (2014) considers the analogous scenario for distributions on ´ $\{ 0 , 1 , \ldots , q - 1 \} ^ { n }$ .
42
+
43
+ # 3 SUMMARY OF RESULTS
44
+
45
+ Definition 3.1. Let $\rho \colon \mathbb { R } \mathbb { R }$ and $n , m , k \in \mathbb { N }$ . Then let N ρn,m,k represent the class of functions $\mathbb { R } ^ { n } \to \mathbb { R } ^ { m }$ described by neural networks with $n$ neurons in the input layer, $m$ neurons in the output layer, $k$ neurons in each hidden layer, and an arbitrary number of hidden layers, such that every neuron in every hidden layer has activation function $\rho$ , and every neuron in the output layer has the identity activation function.
46
+
47
+ Our central result is the following theorem.
48
+
49
+ Theorem 3.2. Let $\rho \colon \mathbb { R } \mathbb { R }$ be any continuous function which is continuously differentiable at at least one point, with nonzero derivative at that point. Let $K \subseteq \mathbb { R } ^ { n }$ be compact. Then $\mathcal { N N } _ { n , m , n + m + 2 } ^ { \rho }$ is dense in $C ( K ; \mathbb { R } ^ { m } )$ .
50
+
51
+ The technical condition is very weak; in particular it is satisfied by every piecewise- $C ^ { 1 }$ function not identically zero. Thus any activation function that one might practically imagine using on a computer must satisfy this property.
52
+
53
+ Theorem 3.2 is proved by handling particular classes of activation functions as special cases. First we have the result for nonpolynomial activation functions, for which the width can be made slightly smaller.
54
+
55
+ Theorem 4.4. Let $\rho \colon \mathbb { R } \mathbb { R }$ be any continuous nonpolynomial function which is continuously differentiable at at least one point, with nonzero derivative at that point. Let $K \subseteq \mathbb { R } ^ { n }$ be compact. Then $\mathcal { N N } _ { n , m , n + m + 1 } ^ { \rho }$ is dense in $C ( K ; \mathbb { R } ^ { m } )$ .
56
+
57
+ We observe a corollary for noncompact domains, which generalises Lu et al. (2017, Theorem 1) to multiple output neurons, a narrower width, and $L ^ { p }$ for $p \geqslant 1$ instead of just $p = 1$ .
58
+
59
+ Corollary 4.6. Let $\rho$ be the ReLU activation function. Let $p \in [ 1 , \infty )$ . Then $\mathcal { N N } _ { n , m , n + m + 1 } ^ { \rho }$ dense in $L ^ { p } ( \mathbb { R } ^ { n } ; \mathbb { R } ^ { m } )$ .
60
+
61
+ Moving on to polynomial activation functions, the smaller width of $n + m + 1$ also suffices for a large class of polynomials.
62
+
63
+ 4.8. and $\rho \colon \mathbb { R } \mathbb { R }$ polynomial for whibe compact. Then a point is dens $\alpha \in \mathbb { R }$ at. $\rho ^ { \prime } ( \alpha ) = 0$ $\rho ^ { \prime \prime } ( \alpha ) \neq 0$ $K \subseteq \mathbb { R } ^ { n }$ $\mathcal { N N } _ { n , m , n + m + 1 } ^ { \rho }$ $C ( K ; \mathbb { R } ^ { m } )$
64
+
65
+ The simplest example of such a $\rho$ is $x \mapsto x ^ { 2 }$ . Note that in the classical arbitrary-width case it is both necessary and sufficient that the activation function be nonpolynomial. Here, however, the same restriction does not hold. Polynomial activation functions are a reasonable choice in this context.
66
+
67
+ The technical restrictions on the polynomial may be lifted by allowing the full $n + m + 2$ neurons per hidden layer.
68
+
69
+ Theorem 4.10. Let $\rho \colon \mathbb { R } \mathbb { R }$ be any nonaffine polynomial. Let $K \subseteq \mathbb { R } ^ { n }$ be compact. Then $\mathcal { N N } _ { n , m , n + m + 2 } ^ { \rho }$ is dense in $C ( K ; \mathbb { R } ^ { m } )$ .
70
+
71
+ It is clear that Theorems 4.4 and 4.10 together imply Theorem 3.2.
72
+
73
+ Finally we observe that even pathological cases not satisfying the technical condition of Theorem 3.2 may exhibit the universal approximation property.
74
+
75
+ Proposition 4.13. Let $w \colon \mathbb { R } \mathbb { R }$ be any bounded continuous nowhere differentiable function. Let $\rho ( x ) = \sin ( x ) + w ( x ) \mathrm { e } ^ { - x }$ , whise in o be nowhere differentiable. Let . $K \subseteq \mathbb { R } ^ { n }$ be compact. $\mathcal { N N } _ { n , m , n + m + 1 } ^ { \rho }$ $C ( K ; \mathbb { R } ^ { m } )$
76
+
77
+ Whilst not of direct practical application, this result exemplifies that little necessarily needs to be assumed about an activation function to understand the corresponding class of neural networks.
78
+
79
+ Remark 3.3. Every proof in this article is constructive, and can in principle be traced so as to determine how depth changes with approximation error. We have instead chosen to focus on quantifying the width necessary for universal approximation. In fact there are places in our arguments where we have used a deeper network over a shallower one, when the deeper network is more easily explained.
80
+
81
+ Remark 3.4. An understanding of universal approximation in deep narrow networks is applicable to an understanding of bottlenecks, when information must be discarded due to space constraints, for example in autoencoders (Bengio et al., 2006). This article demonstrates that certain narrow networks will not constitute a bottleneck; a converse example is Johnson (2019), who demonstrates that networks of insufficient width are forced to maintain certain topological invariants.
82
+
83
+ # 4 UNIVERSAL APPROXIMATION
84
+
85
+ # 4.1 PRELIMINARIES
86
+
87
+ Remark 4.1. A neuron is usually defined as an activation function composed with an affine function. For ease, we shall extend the definition of a neuron to allow it to represent a function of the form $\psi \circ \rho \circ \phi$ , where $\psi$ and $\phi$ are affine functions, and $\rho$ is the activation function. This does not increase the representational power of the network, as the new affine functions may be absorbed into the affine parts of the next layer, but it will make the neural representation of many functions easier to present. We refer to these as enhanced neurons. It is similarly allowable to take affine combinations of multiple enhanced neurons; we will use this fact as well.
88
+
89
+ One of the key ideas behind our constructions is that most reasonable activation functions can be taken to approximate the identity function. Indeed, this is essentially the notion that differentiability captures: that a function is locally affine. This makes it possible to treat neurons as ‘registers’, in which information may be stored and preserved through the layers. This allows for preserving the input values between layers, which is crucial to performing computations in a memory-bounded regime. Thus our constructions have strong overtones of space-limited algorithm design in traditional computer science settings.
90
+
91
+ Lemma 4.2. Let $\rho \colon \mathbb { R } \mathbb { R }$ be any continuous function which is continuously differentiable at at least one point, with nonzero derivative at that point. Let $L \subseteq \mathbb { R }$ be compact. Then a single enhanced neuron with activation function $\rho$ may uniformly approximate the identity function $\iota \colon \mathbb { R } \mathbb { R }$ on $L$ , with arbitrarily small error.
92
+
93
+ Proof. By assumption, as $\rho$ is continuously differentiable, there exists $[ a , b ] \subseteq \mathbb { R }$ with $a \neq b$ , on some neighbourhood of which $\rho$ is differentiable, and $\alpha \in ( a , b )$ at which $\rho ^ { \prime }$ is continuous, and for which $\rho ^ { \prime } ( \alpha )$ is nonzero.
94
+
95
+ For $h \in \mathbb { R } \setminus \{ 0 \}$ , let $\phi _ { h } ( x ) = h x + \alpha .$ , and let
96
+
97
+ $$
98
+ \psi _ { h } ( x ) = \frac { x - \rho ( \alpha ) } { h \rho ^ { \prime } ( \alpha ) } .
99
+ $$
100
+
101
+ Then
102
+
103
+ $$
104
+ \iota _ { h } = \psi _ { h } \circ \rho \circ \phi _ { h }
105
+ $$
106
+
107
+ is of the form that an enhanced neuron can represent. Then for all $u \in [ a , b ]$ , by the Mean Value Theorem there exists $\xi _ { u }$ between $u$ and $\alpha$ such that
108
+
109
+ $$
110
+ \rho ( u ) = \rho ( \alpha ) + ( u - \alpha ) \rho ^ { \prime } ( \xi _ { u } ) ,
111
+ $$
112
+
113
+ and hence
114
+
115
+ $$
116
+ \begin{array} { l } { \iota _ { h } ( x ) = ( \psi _ { h } \circ \rho \circ \phi _ { h } ) ( x ) } \\ { \qquad = \psi _ { h } \left( \rho ( \alpha ) + h x \rho ^ { \prime } ( \xi _ { h x + \alpha } ) \right) } \\ { \qquad = \frac { x \rho ^ { \prime } ( \xi _ { h x + \alpha } ) } { \rho ^ { \prime } ( \alpha ) } } \end{array}
117
+ $$
118
+
119
+ for $h$ sufficiently small that $\phi _ { h } ( L ) \subseteq [ a , b ]$ .
120
+
121
+ Now let $\rho ^ { \prime }$ have modulus of continuity $\omega$ on $[ a , b ]$ . Let $\iota \colon \mathbb { R } \mathbb { R }$ represent the identity function. Then for all $x \in L$ ,
122
+
123
+ $$
124
+ \begin{array} { l } { | \iota _ { h } ( x ) - \iota ( x ) | = | x | \left| \frac { \rho ^ { \prime } ( \xi _ { h x + \alpha } ) - \rho ^ { \prime } ( \alpha ) } { \rho ^ { \prime } ( \alpha ) } \right| } \\ { \displaystyle \leqslant \frac { | x | } { | \rho ^ { \prime } ( \alpha ) | } \omega ( h x ) , } \end{array}
125
+ $$
126
+
127
+ and so $\iota _ { h } \iota$ uniformly over $L$ .
128
+
129
+ Notation. Throughout the rest of this paper $\iota _ { h }$ will be used to denote such an approximation to the identity function, where $\iota _ { h } \iota$ uniformly as $h 0$ .
130
+
131
+ An enhnaced neuron may be described as performing (for example) the computation $x \mapsto \iota _ { h } ( 4 x { + } 3 )$ . This is possible as the affine transformation $x \mapsto 4 x + 3$ and the affine transformation $\phi _ { h }$ (from the description of $\iota _ { h }$ ) may be combined together into a single affine transformation.
132
+
133
+ # 4.2 NONPOLYNOMIAL ACTIVATION FUNCTIONS
134
+
135
+ We consider the ‘Register Model’, which represents a simplification of a neural network.
136
+
137
+ $\mathcal { T } _ { n , m , n + m \pm 1 } ^ { \rho }$ 4.3 repyer, Model). Let class of neurneurons in e $\rho \colon \mathbb { R } \mathbb { R }$ be any continuous nonpolynomial function. Let with n neurons in the input layer, m neurons in layer, an arbitrary number of hidden layers, and $n + m + 1$
138
+ for which neuron in $n + m$ of the neurons in each hidden layeidden layer has activation function have. Let tity activation funcbe compact. Then $\rho$ $K \subseteq \mathbb { R } ^ { n }$ $\mathcal { I } _ { n , m , n + m + 1 } ^ { \rho }$
139
+ is dense in $C ( K ; \mathbb { R } ^ { m } )$ .
140
+
141
+ ![](images/540adab59ada4efbc4c2aa54a6e857e3295f505448124700139b6997dfa485f5.jpg)
142
+ Figure 1: A simple example of how to prove the Register Model. The values $x _ { 1 } , \ldots , x _ { n }$ are inputs to the network, and the value $\textstyle \sum _ { j = 1 } ^ { M } \sigma _ { j }$ is the output. Each cell represents one neuron. Each $\sigma _ { i }$ is of the form $\psi _ { i } \circ \rho \circ \phi _ { i }$ , where $\psi _ { i }$ and $\phi _ { i }$ are affine functions and $\rho$ is the activation function.
143
+
144
+ See Appendix A for the proof.
145
+
146
+ A simplified depiction of the proof of the Register Model is shown in Figure 1, for the special case of $m = 1$ . It uses $n$ neurons in each layer as registers to preserve the input values. A single neuron in each layer performs a computation based off of the input values, which were preserved in the previous layer. The remaining neuron in each layer also acts a register, gradually summing up the results of the computation neurons. The computation neurons may be shown to exist by the classical Universal Approximation Theorem.
147
+
148
+ The Register Model is similar to Hanin & Sellke (2017), who have a related construction specific to the ReLU. The idea of the Register Model may also be thought of as thematically similar to residual networks, as in Lin & Jegelka (2018): in both cases the network is almost applying the identity transformation at each layer, with only a small amount of nonlinearity.
149
+
150
+ Theorem 4.4. Let $\rho \colon \mathbb { R } \mathbb { R }$ be any continuous nonpolynomial function which is continuously differentiable at at least one point, with nonzero derivative at that point. Let $K \subseteq \mathbb { R } ^ { n }$ be compact. Then $\mathcal { N N } _ { n , m , n + m + 1 } ^ { \rho }$ is dense in $C ( K ; \mathbb { R } ^ { m } )$ .
151
+
152
+ Proof. Let $f \in C ( K ; \mathbb { R } ^ { m } )$ and $\varepsilon > 0$ . Set up a neural network as in the Register Model (Proposition 4.3), approximating $f$ to within $\varepsilon / 2$ . Every neuron requiring an identity activation function in the Register Model will instead approximate the identity, in the manner of Lemma 4.2.
153
+
154
+ Uniform continuity preserves uniform convergence, compactness is preserved by continuous functions, and a composition of two uniformly convergent sequences of functions with uniformly continuous limits is again uniformly convergent. So as a neural network is a layer-by-layer composition of functions then the new model can be taken within $\varepsilon / 2$ of the Register Model, with respect to $\| \cdot \| _ { \infty }$ in $K$ , by taking $h$ sufficiently small.
155
+
156
+ Remark 4.5. This of course implies approximation in $L ^ { p } ( K , \mathbb { R } ^ { m } )$ for $p \in [ 1 , \infty )$ . However, when $\rho$ is the ReLU activation function, then the next corollary shows that in fact the result may be generalised to unbounded domains.
157
+
158
+ Corollary 4.6. Let $\rho$ be the ReLU activation function. Let $p \in [ 1 , \infty )$ . Then $\mathcal { N N } _ { n , m , n + m + 1 } ^ { \rho }$ dense in $L ^ { p } ( \mathbb { R } ^ { n } ; \mathbb { R } ^ { m } )$ .
159
+
160
+ See Appendix B for the proof.
161
+
162
+ Given some $f \in L ^ { p } ( \mathbb { R } ^ { n } ; \mathbb { R } ^ { m } )$ , the essential idea of the proof is to choose a compact set $K \subseteq \mathbb { R } ^ { n }$ on which $f$ places most of its mass, and find a neural approximation to $f$ on $K$ in the manner of Theorem 4.4. Once this is done, a cut-off function is applied outside the set, so that the network takes the value zero in $\mathbb { R } ^ { n } \setminus K$ . The interesting bit is finding a neural representation of such cut-off behaviour.
163
+
164
+ In particular the ‘obvious’ thing to do – multiply by a cut-off function – does not appear to have a suitable neural representation, as merely approximating the multiplication operation is not necessarily enough on an unbounded domain. Instead the strategy is to take a maximum and a minimum with suitable cut-off functions.
165
+
166
+ For the classical Universal Approximation Theorem, it was necessary that the activation function be nonpolynomial. However that turns out to be unnecessary here; deep narrow networks are different to shallow wide networks, and polynomial activations functions are reasonable choices.
167
+
168
+ We begin with the simplest possible nonaffine polynomial, namely $\rho ( x ) = x ^ { 2 }$ .
169
+
170
+ Proposi uare Model). Let $\rho ( x ) = x ^ { 2 }$ . Let $K \subseteq \mathbb { R } ^ { n }$ be compact. Then $\mathcal { N N } _ { n , m , n + m + 1 } ^ { \rho }$ $C ( K ; \mathbb { R } ^ { m } )$
171
+
172
+ See Appendix C for the proof. As might be expected, density is established with the help of the Stone–Weierstrass theorem, reducing the problem to the approximation of arbitrary polynomials.
173
+
174
+ We remark that it is actually straightforward to find a construction showing that N n,m,n+m+2 is dense in $C ( K ; \mathbb { R } ^ { m } )$ when $\rho ( x ) = x ^ { 2 }$ , note the increased width. This is because the square activation function can be used to perform multiplication, via $x y = ( ( x + y ) ^ { 2 } - ( x - y ) ^ { 2 } ) / 4$ , and this makes it easy to construct arbitrary polynomials. In fact this is what is done in the proof of Proposition 4.7 for finding $m - 1$ of the $m$ outputs, when there is still a ‘spare’ neuron in each layer. It is computing the final output that actually requires the bulk of the work. The key to this argument is a width-efficient approximation to division.
175
+
176
+ It is a consequence of Proposition 4.7 that any (polynomial) activation function which can approximate the square activation function, in a suitable manner, is also capable of universal approximation.
177
+
178
+ 4.8. and $\rho \colon \mathbb { R } \mathbb { R }$ polynomial for whibe compact. Then a point is dens $\alpha \in \mathbb { R }$ at. $\rho ^ { \prime } ( \alpha ) = 0$ $\rho ^ { \prime \prime } ( \alpha ) \neq 0$ $K \subseteq \mathbb { R } ^ { n }$ $\mathcal { N N } _ { n , m , n + m + 1 } ^ { \rho }$ $C ( K ; \mathbb { R } ^ { m } )$
179
+
180
+ Proof. Let $h \in \mathbb { R } \setminus \{ 0 \}$ . Define $\rho _ { h } \colon \mathbb { R } \to \mathbb { R }$ by
181
+
182
+ $$
183
+ \rho _ { h } ( x ) = \frac { \rho ( \alpha + h x ) - \rho ( \alpha ) } { h ^ { 2 } \rho ^ { \prime \prime } ( \alpha ) / 2 } .
184
+ $$
185
+
186
+ Then, taking a Taylor explansion around $\alpha$
187
+
188
+ $$
189
+ \begin{array} { l c r } { \rho _ { h } ( x ) = \displaystyle \frac { \rho ( \alpha ) + h x \rho ^ { \prime } ( \alpha ) + h ^ { 2 } x ^ { 2 } \rho ^ { \prime \prime } ( \alpha ) / 2 + \mathcal { O } ( h ^ { 3 } x ^ { 3 } ) - \rho ( \alpha ) } { h ^ { 2 } \rho ^ { \prime \prime } ( \alpha ) / 2 } } \\ { = x ^ { 2 } + \mathcal { O } ( h x ^ { 3 } ) . } \end{array}
190
+ $$
191
+
192
+ Let $s ( x ) = x ^ { 2 }$ . Then $\rho _ { h } \to s$ uniformly over any compact set as $h 0$ .
193
+
194
+ Now set up a network as in the Square Model (Proposition 4.7), with every neuron using the square activation function. Call this network $N$ . Create a network $N _ { h }$ by copying $N$ and giving every neuron in the network the activation function $\rho _ { h }$ instead.
195
+
196
+ Uniform continuity preserves uniform convergence, compactness is preserved by continuous functions, and a composition of two uniformly convergent sequences of functions with uniformly continuous limits is again uniformly convergent. So as a neural network is a layer-by-layer composition of functions, then the difference between $N$ and $N _ { h }$ , with respect to $\| \cdot \| _ { \infty }$ on $K$ , may be taken arbitrarily small by taking $h$ arbitrarily small.
197
+
198
+ Furthermore note that $\rho _ { h }$ is just $\rho$ pre- and post-composed with affine functions. (Note that there is only one term in the definition of $\rho _ { h } ( x )$ which depends on $x$ .) This means that any network which may be represented with activation function $\rho _ { h }$ may be precisely represented with activation function $\rho$ , by combining the affine transformations involved. □
199
+
200
+ Remark 4.9. That $\rho$ is polynomial is never really used in the proof of Theorem 4.8. Only a certain amount of differentiability is required, and all such nonpolynomial functions are already covered by Theorem 4.4, as a nonzero second derivative at $\alpha$ implies a nonzero first derivative somewhere close to $\alpha$ . Nonetheless in principle this provides another possible construction by which certain networks may be shown to exhibit universal approximation.
201
+
202
+ Note that the converse strategy (applying nonpolynomial techniques to the polynomial case) fails. This is because the Register Model requires nonpolynomial activation functions due to its dependence on the classical Universal Approximation Theorem.
203
+
204
+ ![](images/77a1f1c40712be63d7bf1a1e9d1de9dcc7f38e3a02e4a29d54050d0305512ccb.jpg)
205
+ Figure 2: A layer with square activation functions is equivalent to multiple layers with only a single square activation function in each layer. The other neurons use the identity activation function, denoted $\iota$ .
206
+
207
+ Theorem 4.10. Let $\rho \colon \mathbb { R } \mathbb { R }$ be any nonaffine polynomial. Let $K \subseteq \mathbb { R } ^ { n }$ be compact. Then $\mathcal { N N } _ { n , m , n + m + 2 } ^ { \rho }$ is dense in $C ( K ; \mathbb { R } ^ { m } )$ .
208
+
209
+ Proof. Fix $\alpha \in \mathbb { R }$ such that $\rho ^ { \prime \prime } ( \alpha ) \neq 0$ , which exists as $\rho$ is nonaffine. Now let $h \in ( 0 , \infty )$ . Define $\sigma _ { h } \colon { \mathbb { R } } \to { \mathbb { R } }$ by
210
+
211
+ $$
212
+ \sigma _ { h } ( x ) = { \frac { \rho ( \alpha + h x ) - 2 \rho ( \alpha ) + \rho ( \alpha - h x ) } { h ^ { 2 } \rho ^ { \prime \prime } ( \alpha ) } } .
213
+ $$
214
+
215
+ Then Taylor expanding $\rho ( \alpha + h x )$ and $\rho ( \alpha - h x )$ around $\alpha$ ,
216
+
217
+ $$
218
+ \begin{array} { c c l } { \displaystyle \sigma _ { h } ( x ) = \frac { \rho ( \alpha ) + h x \rho ^ { \prime } ( \alpha ) + h ^ { 2 } x ^ { 2 } \rho ^ { \prime \prime } ( \alpha ) / 2 + \mathcal { O } ( h ^ { 3 } x ^ { 3 } ) } { h ^ { 2 } \rho ^ { \prime \prime } ( \alpha ) } - \frac { 2 \rho ( \alpha ) } { h ^ { 2 } \rho ^ { \prime \prime } ( \alpha ) } + } \\ { \displaystyle \frac { \rho ( \alpha ) - h x \rho ^ { \prime } ( \alpha ) + h ^ { 2 } x ^ { 2 } \rho ^ { \prime \prime } ( \alpha ) / 2 + \mathcal { O } ( h ^ { 3 } x ^ { 3 } ) } { h ^ { 2 } \rho ^ { \prime \prime } ( \alpha ) } } \\ { = x ^ { 2 } + \mathcal { O } ( h x ^ { 3 } ) . } \end{array}
219
+ $$
220
+
221
+ Observe that $\sigma _ { h }$ needs precisely two operations of $\rho$ on (affine transformations of) $x$ , and so may be computed by two enhanced neurons with activation function $\rho$ . Thus the operation of a single enhanced neuron with square activation function may be approximated by two enhanced neurons with activation function $\rho$ .
222
+
223
+ Let $N$ be a network as in the Square Model (Proposition 4.7) with every neuron using the square activation function. Let $\ell$ be any hidden layer of $N$ ; it contains $n + m + 1$ neurons. Let $\eta$ be a vector of the values of the neurons of the previous layer. Let $\phi _ { i }$ be the affine part of the ith neuron of $\ell$ , so that $\ell$ computes $\phi _ { 1 } ( \eta ) ^ { 2 } , \dots , \phi _ { n + m + 1 } \overline { { { ( \eta ) } } } ^ { 2 }$ . Then this may equivalently be calculated with $n + m + 1$ layers of $n + m + 1$ neurons each, with $n + m$ of the neurons in each of these new layers using the identity function, and one neuron using the square activation function. The first of these new layers applies the $\phi _ { i }$ , and the $i$ th layer squares the value of the $i$ th neuron. See Figure 2.
224
+
225
+ Apply this procedure to every layer of $N$ ; call the resulting network $\widetilde N$ . It will compute exactly the same function as $N$ , and will have $n + m + 1$ times as many layers, but will use only a single squaring operation in each layer.
226
+
227
+ Create a copy of $\widetilde N$ , call it $\widetilde { N } _ { h }$ . Replace its identity activation functions with approximations in the manner of Lemma 4.2, using activation function $\rho$ . Replace its square activation functions (one in each layer) by approximations in the manner described above with $\sigma _ { h }$ ; this requires an extra neuron in each hidden layer, so that the network is now of width $n + m + 2$ . Thus $\widetilde { N } _ { h }$ uses the activation function $\rho$ throughout.
228
+
229
+ Uniform continuity preserves uniform convergence, compactness is preserved by continuous functions, and a composition of two uniformly convergent sequences of functions with uniformly continuous limits is again uniformly convergent. So as a neural network is a layer-by-layer composition of functions, then the difference between $\widetilde { N } _ { h }$ and $\widetilde { N }$ , with respect to $\| \cdot \| _ { \infty }$ on $K$ , may be taken arbitrarily small by taking $h$ arbitrarily small.
230
+
231
+ Remark 4.11. It is possible to construct shallower networks analogous to $\widetilde N$ . The proof of Proposition 4.7 in Appendix C, uses most of the network’s neurons to approximate the identity anyway; only a few in each layer are used to square a valued that is desired to be squared. These are the only neurons that actually require the procedure used in Figure 2 and the proof of Theorem 4.10.
232
+
233
+ # 4.4 NONDIFFERENTIABLE ACTIVATION FUNCTIONS
234
+
235
+ Although not of direct practical application, results for nondifferentiable activation functions demonstrate how certain pathological cases are still capable of being handled.
236
+
237
+ Lemma 4.12. Let $w \colon \mathbb { R } \mathbb { R }$ be any bounded continuous nowhere differentiable function. Let $\rho ( x ) = \sin ( x ) + w ( x ) \mathrm { e } ^ { - x }$ . Let $L \subseteq \mathbb { R }$ be compact. Then a single enhanced neuron with activation function $\rho$ may uniformly approximate the identity function $\iota \colon \mathbb { R } \mathbb { R }$ on $L$ , with arbitrarily small error.
238
+
239
+ Proof. For $h \in \mathbb { R } \setminus \{ 0 \}$ and $A \in 2 \pi \mathbb { N }$ , let $\phi _ { h , A } ( x ) = h x + A$ , and let $\psi ( x ) = x / h$ . Let
240
+
241
+ $$
242
+ \iota _ { h , A } = \psi _ { h } \circ \rho \circ \phi _ { h , A } ,
243
+ $$
244
+
245
+ which is of the form that an enhanced neuron can represent. Then jointly taking $h$ small enough and $A$ large enough it is clear that $^ { l } h , A$ may be taken uniformly close to $\iota$ on $L$ . □
246
+
247
+ Proposition 4.13. Let $w \colon \mathbb { R } \mathbb { R }$ be any bounded continuous nowhere differentiable function. Let $\rho ( x ) = \sin ( x ) + w ( x ) \mathrm { e } ^ { - x }$ , which will also be nowhere differentiable. Let $K \subseteq \mathbb { R } ^ { n }$ be compact. Then $\mathcal { N N } _ { n , m , n + m + 1 } ^ { \rho }$ is dense in $C ( K ; \mathbb { R } ^ { m } )$ .
248
+
249
+ Proof. As the proof of Theorem 4.4, except substituting Lemma 4.12 for Lemma 4.2.
250
+
251
+ This manner of proof may be extended to other nondifferentiable activation functions as well.
252
+
253
+ # 5 CONCLUSION
254
+
255
+ There is a large literature on theoretical properties of neural networks, but much of it deals only with the ReLU.1 However how to select an activation function remains a poorly understood topic, and many other options have been proposed: leaky ReLU, PReLU, RRelu, ELU, SELU and other more exotic activation functions as well.2
256
+
257
+ Our central contribution is to provide results for universal approximation using general activation functions (Theorems 3.2, 4.4, 4.8 and 4.10). In contrast to previous work, these results do not rely on the nice properties of the ReLU, and in particular do not rely on its explicit description. The techniques we use are straightforward, and robust enough to handle even the pathological case of nondifferentiable activation functions (Proposition 4.13).
258
+
259
+ We also consider approximation in $L ^ { p }$ norm (Remark 4.5), and generalise previous work to smaller widths, multiple output neurons, and $p \geqslant 1$ in place of $p = 1$ (Corollary 4.6).
260
+
261
+ In contrast to much previous work, every result we show also handles the general case of multiple output neurons.
262
+
263
+ # ACKNOWLEDGEMENTS
264
+
265
+ (Redacted from anonymised submission)
266
+
267
+ REFERENCES
268
+ R. Arora, A. Basu, P. Mianjy, and A. Mukherjee. Understanding Deep Neural Networks with Rectified Linear Units. In International Conference on Learning Representations, 2018.
269
+ H.-P. Beise, S. D. Da Cruz, and U. Schroder. On decision regions of narrow deep neural networks. ¨ CoRR, arXiv:1807.01194, 2018.
270
+ Y. Bengio, P. Lamblin, D. Popovici, and H. Larochelle. Greedy layer-wise training of deep networks. In Proceedings of the 19th International Conference on Neural Information Processing Systems, NIPS’06, pp. 153–160, Cambridge, MA, USA, 2006. MIT Press.
271
+ D.-A. Clevert, T. Unterthiner, and S. Hochreiter. Fast and Accurate Deep Network Learning by Exponential Linear Units (ELUs). In International Conference on Learning Representations, 2016.
272
+ G. Cybenko. Approximation by superpositions of a sigmoidal function. Math. Control Signals Syst., 2(4):303–314, 1989.
273
+ I. Daubechies, R. DeVore, S. Foucart, B. Hanin, and G. Petrova. Nonlinear Approximation and (Deep) ReLU Networks. arXiv:1905.02199, 2019.
274
+ I. Guhring, G. Kutyniok, and P. Petersen. Error bounds for approximations with deep ReLU neural ¨ networks in $W ^ { s , p }$ norms. Proceedings of the AMS. In press.
275
+ B. Hanin and M. Sellke. Approximating Continuous Functions by ReLU Nets of Minimal Width. arXiv:1710.11278, 2017.
276
+ K. He, X. Zhang, S. Ren, and J. Sun. Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification. In Proceedings of the 2015 IEEE International Conference on Computer Vision (ICCV), ICCV ’15, pp. 1026–1034, Washington, DC, USA, 2015. IEEE Computer Society.
277
+ K. Hornik. Approximation capabilities of multilayer feedforward networks. Neural Netw., 4(2): 251–257, 1991.
278
+ J. Johnson. Deep, Skinny Neural Networks are not Universal Approximators. In International Conference on Learning Representations, 2019.
279
+ G. Klambauer, T. Unterthiner, A. Mayr, and S. Hochreiter. Self-normalizing neural networks. In Advances in Neural Information Processing Systems 30, pp. 971–980. Curran Associates, Inc., 2017.
280
+ A. Krizhevsky. Convolutional Deep Belief Networks on CIFAR-10. 2012.
281
+ N. Le Roux and Y. Bengio. Deep Belief Networks are Compact Universal Approximators. Neural Comput., 22(8):2192–2207, 2010.
282
+ H. Lin and S. Jegelka. ResNet with one-neuron hidden layers is a Universal Approximator. In Advances in Neural Information Processing Systems 31, pp. 6169–6178. Curran Associates, Inc., 2018.
283
+ Z. Lu, H. Pu, F. Wang, Z. Hu, and L. Wang. The Expressive Power of Neural Networks: A View from the Width. In Advances in Neural Information Processing Systems 30, pp. 6231–6239. Curran Associates, Inc., 2017.
284
+ A. Maas, A. Hannun, and A. Ng. Rectifier Nonlinearities Improve Neural Network Acoustic Models. In International Conference on Learning Representations, 2013.
285
+ A. Molina, P. Schramowski, and K. Kersting. Pade Activation Units: End-to-end Learning of Flexi- ´ ble Activation Functions in Deep Networks. arXiv:1907.06732, 2019.
286
+ G. F. Montufar. Universal Approximation Depth and Errors of Narrow Belief Networks with Dis-´ crete Units. Neural Comput., 26(7):1386–1407, 2014. ISSN 0899-7667.
287
+ Q. Nguyen, M. C. Mukkamala, and M. Hein. Neural Networks Should Be Wide Enough to Learn Disconnected Decision Regions. In Proceedings of the 35th International Conference on Machine Learning. PMLR 80, Stockholm, Sweden, 2018.
288
+ P. Petersen and F. Voigtlaender. Optimal approximation of piecewise smooth functions using deep ReLU neural networks. Neural Netw., 108:296–330, 2018.
289
+ A. Pinkus. Approximation theory of the MLP model in neural networks. Acta Numer., 8:143–195, 1999.
290
+ R. Rojas. Networks of width one are universal classifiers. In Proceedings of the International Joint Conference on Neural Networks, volume 4, pp. 3124–3127, 2003.
291
+ I. Sutskever and G. E. Hinton. Deep, Narrow Sigmoid Belief Networks Are Universal Approximators. Neural Comput., 20(11):2629–2636, 2008. ISSN 0899-7667. doi: 10.1162/neco.2008. 12-07-661.
292
+ L. Szymanski and B. McCane. Deep, super-narrow neural network is a universal classifier. In The 2012 International Joint Conference on Neural Networks (IJCNN), pp. 1–8, 2012.
293
+ B. Xu, N. Wang, T. Chen, and M. Li. Empirical Evaluation of Rectified Activations in Convolutional Network. arXiv:1505.00853, 2015.
294
+
295
+ # A PROOF OF THE REGISTER MODEL (PROPOSITION 4.3)
296
+
297
+ First, we recall the classical Universal Approximation Theorem (Pinkus, 1999):
298
+
299
+ Theorem 1.1. Let $\rho \colon \mathbb { R } \mathbb { R }$ be any continuous function. Let $\mathcal { N } _ { n } ^ { \rho }$ represent the class of neural networks with activation function $\rho ,$ , with n neurons in the input layer, one neuron in the output layer, and one hidden layer with an arbitrary number of neurons. Let $K \subseteq \mathbb { R } ^ { n }$ be compact. Then $\mathcal { N } _ { n } ^ { \rho }$ is dense in $C ( K )$ if and only if ρ is nonpolynomial.
300
+
301
+ The Register Model is created by suitably reorganising the neurons from a collection of such shallow networks.
302
+
303
+ Proposition 4.3 (Register Model). Let $\mathcal { T } _ { n , m , n + m \pm 1 } ^ { \rho }$ repyer, class of neural networks with n neurons in the input layer, m neurons inneurons in each hidden layer, an arbitrary number of hidden layers, and $\rho \colon \mathbb { R } \mathbb { R }$ be any continuous nonpolynomial function. Let $n + m + 1$
304
+ for which neuron in $n + m$ of the neurons in each hidden layeidden layer has activation function have. Let tity activation funcbe compact. Then $\rho$ $K \subseteq \mathbb { R } ^ { n }$ $\mathcal { I } _ { n , m , n + m + 1 } ^ { \rho }$
305
+ is dense in $C ( K ; \mathbb { R } ^ { m } )$ .
306
+
307
+ Proof. Fix $f \in C ( K ; \mathbb { R } ^ { m } )$ . Let $f = ( f _ { 1 } , \ldots , f _ { m } )$ . Fix $\varepsilon > 0$ . By Theorem 1.1, there exist singlehidden-layer neural networks $g _ { 1 } , \ldots , g _ { m } \in \mathcal { N } _ { n } ^ { \rho }$ with activation function $\rho$ approximating $f _ { 1 } , \ldots , f _ { m }$ respectively. Each approximation is to within error $\varepsilon$ with respect to $\| \cdot \| _ { \infty }$ on $K$ . Let each $g _ { i }$ have $\beta _ { i }$ hidden neurons. Let $\sigma _ { i , j }$ represent the operation of its $j$ th hidden neuron, for $j \in \{ 1 , \dots , \beta _ { i } \}$ . In keeping with the idea of enhanced neurons, let each $\sigma _ { i , j }$ include the affine function that comes after it in the output layer of $g _ { i }$ , so that $\begin{array} { r } { g _ { i } = \sum _ { j = 1 } ^ { \beta _ { i } } \sigma _ { i , j } } \end{array}$ . Let $\begin{array} { r } { M = \sum _ { i = 1 } ^ { m } \beta _ { i } } \end{array}$ .
308
+
309
+ We seek to construct a neural network $N \in \mathbb { Z } _ { n , m , n + m + 1 } ^ { \rho }$ . Given input $( x _ { 1 } , \ldots , x _ { n } ) \in \mathbb { R } ^ { n }$ , it will output $( G _ { 1 } , \dots , G _ { m } ) \in \mathbb { R } ^ { m }$ , such that $G _ { i } = g _ { i } ( x _ { 1 } , \ldots , x _ { n } )$ for each $i$ . That is, it will compute all of the shallow networks $g _ { 1 } , \ldots , g _ { m }$ . Thus it will approximate $f$ to within error $\varepsilon$ with respect to $\| \cdot \| _ { \infty }$ on $K$ .
310
+
311
+ The construction of $N$ is mostly easily expressed pictorially; see Figure 3. In each cell, representing a neuron, we define its value as a function of the values of the neurons in the previous layer. In every layer, all but one of the neurons uses the identity activation function $\iota \colon \mathbb { R } \mathbb { R }$ , whilst one neuron in each layer performs a computation of the form $\sigma _ { i , j }$ .
312
+
313
+ The construction can be summed up as follows.
314
+
315
+ Each layer has $n + m + 1$ neurons, arranged into a group of $n$ neurons, a group of a single neuron, and a group of $m$ neurons.
316
+
317
+ The first $n$ neurons in each layer simply record the input $( x _ { 1 } , \ldots , x _ { n } )$ , by applying an identity activation function. We refer to these as the ‘in-register neurons’.
318
+
319
+ Next we consider $g _ { 1 } , \ldots , g _ { m }$ , which are all shallow networks. The neurons in the hidden layers of $g _ { 1 } , \ldots , g _ { m }$ are arranged ‘vertically’ in our deep network, one in each layer. This is the neuron in each layer that uses the activation function $\rho$ . We refer to these as the ‘computation neurons’. Each computation neuron performs its computation based off of the inputs preserved in the in-register neurons.
320
+
321
+ The final group of $m$ neurons also use the identity activation function; their affine parts gradually sum up the results of the computation neurons. We refer to these as the ‘out-register neurons’. The $i$ th out-register neuron in each layer will sum up the results of the computation neurons computing $\sigma _ { i , j }$ for all $j \in \{ 1 , \dots , \beta _ { i } \}$ .
322
+
323
+ Finally, the neurons in the output layer of the network are connected to the out-register neurons of the final hidden layer. As each of the neurons in the output layer has, as usual, the identity activation function, they will now have computed the desired results. □
324
+
325
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>(1-W1+I-WuS)=Wu5</td><td rowspan=1 colspan=1>(-1+-5)+=I-wu5</td><td rowspan=2 colspan=1></td><td rowspan=2 colspan=2>0=+Tgu5:…</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>0=z+Igu5</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>0=Ig‘u5</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>0=bu5</td><td rowspan=1 colspan=1>0=8u5</td><td rowspan=1 colspan=1>0=5</td><td rowspan=1 colspan=1>0=Iu5</td></tr><tr><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=2>:</td><td rowspan=1 colspan=1>:…</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>::</td><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=1>…</td><td rowspan=1 colspan=1>:…</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>::</td><td rowspan=1 colspan=1>:…</td><td rowspan=1 colspan=1>::</td><td rowspan=1 colspan=1>::</td></tr><tr><td rowspan=1 colspan=1>=</td><td rowspan=1 colspan=1>=W5(1-W25)1</td><td rowspan=1 colspan=1>=1-W5(-5)</td><td rowspan=7 colspan=1>·</td><td rowspan=7 colspan=1>…</td><td rowspan=1 colspan=1>1-++1-=g+g5</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>(2+11++21=8+1g&#x27;5</td><td rowspan=1 colspan=1>(+1g)1= +g&#x27;5</td><td rowspan=1 colspan=1>0=I+1g‘)</td><td rowspan=1 colspan=1>0=1g5</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>0=v5</td><td rowspan=1 colspan=1>0=85</td><td rowspan=1 colspan=1>0=5</td><td rowspan=1 colspan=1>0=15</td></tr><tr><td rowspan=1 colspan=1>W&#x27;S=5</td><td rowspan=1 colspan=1>=w15(1-W&#x27;15)1</td><td rowspan=1 colspan=1>=I-Wt5(-W15)</td><td rowspan=1 colspan=1>(-g+1g15)=g+1g5</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>=8+1g5(+1g15)7</td><td rowspan=1 colspan=1>=+tg&#x27;5(t+1g15)1</td><td rowspan=1 colspan=1>(11+15)=I+Ig5</td><td rowspan=1 colspan=1>(-11+1-1g15)=1g15</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>1+5151= v15</td><td rowspan=1 colspan=1>(+1+=85</td><td rowspan=1 colspan=1>()=T5</td><td rowspan=1 colspan=1>0=115</td></tr><tr><td></td><td rowspan=1 colspan=1>(I-W‘uLc...I-W&#x27;I)ug‘uo=W⊥</td><td rowspan=1 colspan=1>(z-wu/....-w))-ugu)=I-W</td><td rowspan=1 colspan=1>(-y+1.-+))=g+g</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>(z+g/-.)+)80=s</td><td rowspan=1 colspan=1>(1g&#x27;us.*1+)0= z+⊥</td><td rowspan=1 colspan=1>(g‘u....gu)o= I+g⊥</td><td rowspan=1 colspan=1>(1-1gu..1-1g)1=1</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>(εu...ε/))10=v)</td><td rowspan=1 colspan=1>2/.../)1=))</td><td rowspan=1 colspan=1>(/..)1=)</td><td rowspan=1 colspan=1>(ux..·x)1&#x27;1o=I</td></tr><tr><td></td><td rowspan=1 colspan=1>0=Wu</td><td rowspan=1 colspan=1>=I-Wu(-Wu)</td><td rowspan=1 colspan=1>(-g+1g)=g+Igu</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>=8+Igu(z+Ig&#x27;uL)</td><td rowspan=1 colspan=1>=+Igu(1+Ig‘u)</td><td rowspan=1 colspan=1>=I+Igu(gu)</td><td rowspan=1 colspan=1>(1-g‘u)=Igu</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>=u(ε²u)</td><td rowspan=1 colspan=1>=8u(u)</td><td rowspan=1 colspan=1>=u(t&#x27;u)</td><td rowspan=1 colspan=1>=u(ux)</td></tr><tr><td></td><td rowspan=1 colspan=1>::</td><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=2>::</td><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=2>:</td><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=2>: :</td></tr><tr><td></td><td rowspan=1 colspan=1>0=W</td><td rowspan=1 colspan=1>=-(-)</td><td rowspan=1 colspan=1>(1-+)=g+g</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>=8+g(+g)</td><td rowspan=1 colspan=1>=+g(+g)</td><td rowspan=1 colspan=1>=+g(g)</td><td rowspan=1 colspan=1>(-g)=g</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>=(8)</td><td rowspan=1 colspan=1>=8()</td><td rowspan=1 colspan=1>=(1)</td><td rowspan=1 colspan=1>=(x)7</td></tr><tr><td></td><td rowspan=1 colspan=1>0=W</td><td rowspan=1 colspan=1>=-W(-)1</td><td rowspan=1 colspan=1>(1-+=g+g</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>=8+g(+g)</td><td rowspan=1 colspan=1>=+g(1+Ig)</td><td rowspan=1 colspan=1>=I+Ig()</td><td rowspan=1 colspan=1>(1-1g)=g</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>=(1)</td><td rowspan=1 colspan=1>=8()</td><td rowspan=1 colspan=1>=(1)</td><td rowspan=1 colspan=1>=It(1x)7</td></tr></table>
326
+
327
+ # B PROOF OF COROLLARY 4.6
328
+
329
+ Lemma B.1. Let $a , b , c , d \in \mathbb { R }$ be such that $a < b < c < d .$ . Let $U _ { a , b , c , d } \colon \mathbb { R } \to \mathbb { R }$ be the unique continuous piecewise affine function which is one on $[ b , c ]$ and zero on $( - \infty , a ] \cup [ d , \infty )$ . Then two layers of two enhanced neurons each, with ReLU activation function, may exactly represent the function $U _ { a , b , c , d }$ .
330
+
331
+ Proof. Let $x \in \mathbb { R }$ be the input. Let $m _ { 1 } = 1 / ( b - a )$ . Let $m _ { 2 } = 1 / ( d - c )$ . Let $\eta _ { 1 } , \eta _ { 2 }$ represent the first neuron in each layer, and $\zeta _ { 1 } , \zeta _ { 2 }$ represent the second neuron in each layer. We assign them values as follows.
332
+
333
+ $$
334
+ \begin{array} { l l } { \eta _ { 1 } = \operatorname* { m a x } \{ 0 , m _ { 1 } ( x - a ) \} , } & { \qquad \zeta _ { 1 } = \operatorname* { m a x } \{ 0 , m _ { 2 } ( x - c ) \} , } \\ { \eta _ { 2 } = \operatorname* { m a x } \{ 0 , 1 - \eta _ { 1 } \} , } & { \qquad \zeta _ { 2 } = \operatorname* { m a x } \{ 0 , 1 - \zeta _ { 1 } \} . } \end{array}
335
+ $$
336
+
337
+ Then $U _ { a , b , c , d } ( x ) = \zeta _ { 2 } - \eta _ { 2 }$ . (This final affine transformation is allowed, in keeping with the notion of enhanced neurons.)
338
+
339
+ Lemma B.2. One layer of two enhanced neurons, with ReLU activation function, may exactly represent the function $( x , y ) \mapsto \operatorname* { m i n } \{ x , y \}$ on $[ 0 , \infty ) ^ { 2 }$ .
340
+
341
+ Proof. Let the first neuron compute $\eta = \operatorname* { m a x } \{ 0 , x - y \}$ . Let the second neuron compute $\zeta =$ $\operatorname* { m a x } \{ 0 , x \}$ . Then $\operatorname* { m i n } \{ x , y \} = \bar { \zeta } - \eta$ . $\boxed { \begin{array} { r l } \end{array} }$
342
+
343
+ Corollary 4.6. Let $\rho$ be the ReLU activation function. Let $p \in [ 1 , \infty )$ . Then $\mathcal { N N } _ { n , m , n + m + 1 } ^ { \rho }$ dense in $L ^ { p } ( \mathbb { R } ^ { n } ; \mathbb { R } ^ { m } )$ .
344
+
345
+ Proof. Let $f \in L ^ { p } ( \mathbb { R } ^ { n } ; \mathbb { R } ^ { m } )$ and $\varepsilon > 0$ . For simplicity assume that $\mathbb { R } ^ { m }$ is endowed with the $\| \cdot \| _ { \infty }$ norm; other norms are of course equivalent. Let $\widehat { f } = ( \widehat { f } _ { 1 } , \ldots , \widehat { f } _ { m } ) \in C _ { c } ( \mathbb { R } ^ { n } ; \mathbb { R } ^ { m } )$ be such that
346
+
347
+ $$
348
+ \left\| f - { \widehat { f } } \right\| _ { p } < \varepsilon / 3 .
349
+ $$
350
+
351
+ Let
352
+
353
+ $$
354
+ C = \operatorname* { s u p } _ { x \in \mathbb { R } ^ { n } } \operatorname* { m a x } _ { i } { \widehat { f } } _ { i } ( x ) + 1
355
+ $$
356
+
357
+ and
358
+
359
+ $$
360
+ c = \operatorname* { i n f } _ { x \in \mathbb { R } ^ { n } } \operatorname* { m i n } _ { i } { \widehat { f } } _ { i } ( x ) - 1
361
+ $$
362
+
363
+ Pick $a _ { 1 } , b _ { 1 } , \ldots , a _ { n } , b _ { n } \in \mathbb { R }$ such that $J$ defined by
364
+
365
+ $$
366
+ J = [ a _ { 1 } , b _ { 1 } ] \times \cdot \cdot \cdot \times [ a _ { n } , b _ { n } ]
367
+ $$
368
+
369
+ is such that $\operatorname { s u p p } { \widehat { f } } \subseteq J$ . Furthermore, for $\delta > 0$ that we shall fix in a moment, let
370
+
371
+ $$
372
+ \begin{array} { r } { A _ { i } = a _ { i } - \delta , } \\ { B _ { i } = b _ { i } + \delta , } \end{array}
373
+ $$
374
+
375
+ and let $K$ be defined by
376
+
377
+ $$
378
+ { \cal K } = [ A _ { 1 } , B _ { 1 } ] \times \cdots \times [ A _ { n } , B _ { n } ] .
379
+ $$
380
+
381
+ Fix $\delta$ small enough that
382
+
383
+ $$
384
+ | K \setminus J | ^ { 1 / p } \cdot \operatorname* { m a x } { \{ | C | , | c | \} } < \frac { \varepsilon } { 6 } .
385
+ $$
386
+
387
+ $g = ( g _ { 1 } , \ldots , g _ { m } ) \in \mathcal { N } _ { n , m , n + m + 1 } ^ { \rho }$ be such that
388
+
389
+ $$
390
+ \operatorname* { s u p } _ { x \in K } \left| { \widehat { f } } ( x ) - g ( x ) \right| < \operatorname* { m i n } \left\{ { \frac { \varepsilon } { 3 { \big | } J { \big | } ^ { 1 / p } } } , 1 \right\} ,
391
+ $$
392
+
393
+ which exists by Theorem 4.4. Note that $g$ is defined on all of $\mathbb { R } ^ { n }$ ; it simply happens to be close to $\widehat { f }$ on $K$ . In particular it will takes values close to zero on $K \backslash J$ , and may take arbitrary values in $\mathbb { R } ^ { n } \setminus K$ . By equations (B.2), (B.3), (B.5), it is the case that
394
+
395
+ $$
396
+ \begin{array} { r } { C \geqslant \underset { x \in K } { \operatorname* { s u p } } \underset { i } { \operatorname* { m a x } } g _ { i } ( x ) , } \\ { c \leqslant \underset { x \in K } { \operatorname* { i n f } } \underset { i } { \operatorname* { m i n } } g _ { i } ( x ) . } \end{array}
397
+ $$
398
+
399
+ Now consider the network describing $g$ ; it will be modified slightly. The goal is to create a network which takes value $g$ on $J$ , zero in $\mathbb { R } ^ { n } \setminus K$ , and moves between these values in the interface region $K \backslash J$ . Such a network will provide a suitable approximation to $\widehat { f } .$ . This is done by first constructing a function which is approximately the indicator function for $J$ , with support in $K$ ; call such a function $U$ . The idea then is to construct a neural representation of $G _ { i }$ defined by
400
+
401
+ $$
402
+ G _ { i } = \operatorname* { m i n } \{ \operatorname* { m a x } \{ g _ { i } , c U \} , C U \} .
403
+ $$
404
+
405
+ Provided $| K \setminus J |$ is small enough then $G = ( G _ { 1 } , \dots , G _ { m } )$ will be the desired approximation; this is proved this below.
406
+
407
+ We move on to presenting the neural representation of this construction.
408
+
409
+ First we observe that because the activation function is the ReLU, then the identity approximations used in the proof of Theorem 4.4 may in fact exactly represent the identity function on some compact set: $x \mapsto \operatorname* { m a x } \{ 0 , x + N \} - N$ is exactly the identity function, for suitably large $N$ , and is of the form that an enhanced neuron may represent. This observation isn’t strictly necessary for the proof, but it does simplify the presentation somewhat, as the values preserved in the in-register neurons of $g$ are now exactly the inputs $x = ( x _ { 1 } , \ldots , x _ { n } ) $ for $x \in K$ . For sufficiently negative $x _ { i }$ , outside of $K$ , they will take the value $- N$ instead, but by insisting that is $N$ sufficiently large that
410
+
411
+ $$
412
+ - N < A _ { i }
413
+ $$
414
+
415
+ for all $i$ , then this will not be an issue for the proof.
416
+
417
+ So take the network representing $g$ , and remove the output layer. (If the output layer is performing any affine transformations then treat them as being part of the final hidden layer, in the manner of enhanced neurons. Thus the output layer that is being removed is just applying the identity function to the out-register neurons.) Some more hidden layers will be placed on top, and then a new output layer will be placed on top. In the following description, all neurons not otherwise specified will be performing the identity function, so as to preserve the values of the corresponding neurons in the preceding layer. As all functions involved are continuous and $K$ is compact, and compactness is preserved by continuous functions, and continuous functions are bounded on compact sets, then this is possible for all $x \in K$ by taking $N$ large enough.
418
+
419
+ The first task is to modify the value stored in the in-register neurons corresponding to $x _ { 1 }$ . At present it stores the value $x _ { 1 }$ ; by using this in-register neuron and the computation neuron in two extra layers, its value may be replaced with $U _ { A _ { 1 } , a _ { 1 } , b _ { 1 } , B _ { 1 } } ( x _ { 1 } )$ , via Lemma B.1. Place another two layers on top, and use them to replace the value of $x _ { 2 }$ in the second in-register neuron with $U _ { A _ { 2 } , a _ { 2 } , b _ { 2 } , B _ { 2 } } ( x _ { 2 } )$ , and so on. The in-register neurons now store the values $( U _ { A _ { 1 } , a _ { 1 } , b _ { 1 } , B _ { 1 } } ( x _ { 1 } ) , \dots , U _ { A _ { n } , a _ { n } , b _ { n } , B _ { n } } ( x _ { n } ) )$ .
420
+
421
+ Once this is complete, place another layer on top and use the first two in-register neurons to compute the minimum of their values, in the manner of Lemma B.2, thus computing $\operatorname* { m i n } \{ U _ { A _ { 1 } , a _ { 1 } , b _ { 1 } , B _ { 1 } } ^ { - } ( x _ { 1 } ) , U _ { A _ { 2 } , a _ { 2 } , b _ { 2 } , B _ { 2 } } ( x _ { 2 } ) \}$ . Place another layer on top and use another two inregister neurons to compute the minimum of this value and the value presently stored in the third in-register neuron, that is $U _ { A _ { 3 } , a _ { 3 } , b _ { 3 } , B _ { 3 } } ( x _ { 3 } )$ , so that
422
+
423
+ $$
424
+ \operatorname* { m i n } \{ U _ { A _ { 1 } , a _ { 1 } , b _ { 1 } , B _ { 1 } } ( x _ { 1 } ) , U _ { A _ { 2 } , a _ { 2 } , b _ { 2 } , B _ { 2 } } ( x _ { 2 } ) , U _ { A _ { 3 } , a _ { 3 } , b _ { 3 } , B _ { 3 } } ( x _ { 3 } ) \} _ { [ \mathrm { f } ] }
425
+ $$
426
+
427
+ has now been computed. Continue to repeat this process until the in-register neurons have computed.3
428
+
429
+ $$
430
+ U = \operatorname* { m i n } _ { i \in \{ 1 , . . . , n \} } U _ { A _ { i } , a _ { i } , b _ { i } , B _ { i } } ( x _ { i } ) .
431
+ $$
432
+
433
+ Observe how $U$ represents an approximation to the indicator function for $J$ , with support in $K$ , evaluated at $( x _ { 1 } , \ldots , x _ { n } )$ .
434
+
435
+ This is a highly destructive set of operations: the network no longer remembers the values of its inputs. Thankfully, it no longer needs them. Note how the small foible regarding how an in-register neuron would only record $- N$ instead of $x _ { i }$ , for $x _ { i } < - N$ , is not an issue. This is because of equation (B.7), which implies that $U _ { A _ { i } , a _ { i } , b _ { i } , B _ { i } } ( x _ { i } ) = 0 = U _ { A _ { i } , a _ { i } , b _ { i } , B _ { i } } ( - N )$ , thus leaving the value of $U$ unaffected.
436
+
437
+ The out-register neurons presently store the values $g _ { 1 } , \ldots , g _ { m }$ , where $g _ { i } = g _ { i } ( x _ { 1 } , \ldots , x _ { n } )$ . Now add another layer. Let the value of its out-register neurons be $\theta _ { 1 } , \ldots , \theta _ { m }$ , where
438
+
439
+ $$
440
+ \theta _ { i } = \operatorname* { m a x } \{ 0 , g _ { i } - c U \} .
441
+ $$
442
+
443
+ Add one more hidden layer. Let the value of its out-register neurons be $\lambda _ { 1 } , \ldots , \lambda _ { m }$ , where
444
+
445
+ $$
446
+ \lambda _ { i } = \operatorname* { m a x } \{ 0 , - \theta _ { i } + ( C - c ) U \} .
447
+ $$
448
+
449
+ Finally place the output layer on top. Let the value of its neurons be $G _ { 1 } , \ldots , G _ { m }$ , where
450
+
451
+ $$
452
+ G _ { i } = - \lambda _ { i } + C U .
453
+ $$
454
+
455
+ Then in fact
456
+
457
+ $$
458
+ G _ { i } = \operatorname* { m i n } \{ \operatorname* { m a x } \{ g _ { i } , c U \} , C U \}
459
+ $$
460
+
461
+ as desired.
462
+
463
+ All that remains to show is that $G = ( G _ { 1 } , \dots , G _ { m } )$ of this form is indeed a suitable approximation. First, as $G$ and $g$ coincide in $J$ , and by equation (B.5),
464
+
465
+ $$
466
+ \begin{array} { l } { \displaystyle \left( \displaystyle \int _ { J } \left| \widehat { f } ( x ) - G ( x ) \right| ^ { p } \mathrm { d } x \right) ^ { 1 / p } \leqslant \left| J \right| ^ { 1 / p } \operatorname* { s u p } _ { x \in J } \left| \widehat { f } ( x ) - G ( x ) \right| } \\ { \displaystyle \qquad = | J | ^ { 1 / p } \operatorname* { s u p } _ { x \in J } \left| \widehat { f } ( x ) - g ( x ) \right| } \\ { \displaystyle \qquad < \frac { \varepsilon } { 3 } . } \end{array}
467
+ $$
468
+
469
+ Secondly, by equations (B.2), (B.3), (B.6), (B.8) and then equation (B.4),
470
+
471
+ $$
472
+ \begin{array} { r l } { { ( \int _ { K \setminus J } \Big | \widehat { f } ( x ) - G ( x ) \Big | ^ { p } \mathrm { d } x ) ^ { 1 / p } \leqslant \vert K \setminus J \vert ^ { 1 / p } \operatorname* { s u p } _ { x \in K \setminus J } \Big \vert \widehat { f } ( x ) - G ( x ) \Big \vert } } \\ & { \leqslant \vert K \setminus J \vert ^ { 1 / p } \cdot 2 \operatorname* { m a x } \big \{ \vert C \vert , \vert c \vert \big \} } \\ & { < \frac { \varepsilon } { 3 } . } \end{array}
473
+ $$
474
+
475
+ Thirdly,
476
+
477
+ $$
478
+ \left( \int _ { \mathbb { R } ^ { n } \setminus K } \Big | \widehat { f } ( x ) - G ( x ) \Big | ^ { p } \mathrm { d } x \right) ^ { 1 / p } = 0 ,
479
+ $$
480
+
481
+ as both $\widehat { f }$ and $G$ have support in $K$ .
482
+
483
+ So by equations (B.1), (B.9), (B.10) and (B.11),
484
+
485
+ $$
486
+ \begin{array} { l } { \displaystyle \| f - G \| _ { p } \leqslant \left\| f - \widehat { f } \right\| _ { p } + \left( \int _ { \mathbb R ^ { n } } \left| \widehat { f } ( x ) - G ( x ) \right| ^ { p } \mathrm { d } x \right) ^ { 1 / p } } \\ { \displaystyle < \frac \varepsilon 3 + \frac \varepsilon 3 + \frac \varepsilon 3 } \\ { = \varepsilon . } \end{array}
487
+ $$
488
+
489
+ # C PROOF OF THE SQUARE MODEL (PROPOSITION 4.7)
490
+
491
+ Lemma C.1. One layer of two enhanced neurons, with square activation function, may exactly represent the multiplication function $( x , y ) \mapsto x y$ on $\mathbb { R } ^ { 2 }$ .
492
+
493
+ Proof. Let the first neuron compute $\eta = ( x + y ) ^ { 2 } / 4$ . Let the second neuron compute $\zeta = ( x - y ) ^ { 2 } / 4$ Then $x y = \eta - \zeta$ . □
494
+
495
+ Lemma C.2. Fix $L \subseteq \mathbb { R } ^ { 2 }$ compact. Three layers of two enhanced neurons each, with square activation function, may uniformly approximate $( x , y ) ( x ^ { 2 } , y ( x + 1 ) )$ arbitrarily well on $L$ .
496
+
497
+ Proof. Let $h , s \in \mathbb { R } \setminus \{ 0 \}$ . Let $\eta _ { 1 } , \eta _ { 2 } , \eta _ { 3 }$ represent the first neuron in each layer; let $\zeta _ { 1 } , \zeta _ { 2 } , \zeta _ { 3 }$ represent the second neuron in each layer. Let $\iota _ { h }$ represent an approximation to the identity in the manner of Lemma 4.2. Using $\cdot \approx $ as an informal notation to represent ‘equal to up to the use of $\iota _ { h }$ in place $\iota ^ { \prime }$ , just to help keep track of why we are performing these operations, assign values to $\eta _ { 1 } , \eta _ { 2 } , \eta _ { 3 }$ and $\zeta _ { 1 } , \zeta _ { 2 } , \zeta _ { 3 }$ as follows:
498
+
499
+ $$
500
+ \begin{array} { c c c } { { \eta _ { 1 } = \iota _ { h } ( x ) } } & { { } } & { { \zeta _ { 1 } = ( x + s y + 1 ) ^ { 2 } } } \\ { { } } & { { \approx x , } } & { { = x ^ { 2 } + 2 s x y + s ^ { 2 } y ^ { 2 } + 2 x + 2 s y + 1 , } } \\ { { } } & { { \eta _ { 2 } = ( \eta _ { 1 } ) ^ { 2 } } } & { { \zeta _ { 2 } = \iota _ { h } ( \zeta _ { 1 } - 2 \eta _ { 1 } - 1 ) } } \\ { { } } & { { \approx x ^ { 2 } , } } & { { \approx x ^ { 2 } + 2 s x y + s ^ { 2 } y ^ { 2 } + 2 s y , } } \\ { { } } & { { \eta _ { 3 } = \iota _ { h } ( \eta _ { 2 } ) } } & { { \zeta _ { 3 } = \iota _ { h } ( ( \zeta _ { 2 } - \eta _ { 2 } ) / 2 s ) } } \\ { { } } & { { } } & { { \approx x y + y + s y ^ { 2 } / 2 . } } \end{array}
501
+ $$
502
+
503
+ And so $\eta _ { 3 }$ may be taken arbitrarily close to $x ^ { 2 }$ and $\zeta _ { 3 }$ may be taken arbitrarily close to $y ( x + 1 )$ , with respect to $\| \cdot \| _ { \infty }$ on $L$ , by first taking $s$ arbitrarily small, and then taking $h$ arbitrarily small. □
504
+
505
+ Proposition C.3. Fix $L \subseteq ( 0 , 2 )$ compact. Then multiple layers of two enhanced neurons each, with square activation function, may uniformly approximate $x \mapsto 1 / x$ arbitrarily well on $L$ .
506
+
507
+ (Unlike Lemma C.2, the number of layers necessary will depend on the quality of approximation.)
508
+
509
+ Proof. First note that
510
+
511
+ $$
512
+ \prod _ { i = 0 } ^ { n } ( 1 + x ^ { 2 ^ { i } } ) \to { \frac { 1 } { 1 - x } }
513
+ $$
514
+
515
+ as $n \to \infty$ , uniformly over compact subsets of $( - 1 , 1 )$ . Thus,
516
+
517
+ $$
518
+ ( 2 - x ) \prod _ { i = 1 } ^ { n } ( 1 + ( 1 - x ) ^ { 2 ^ { i } } ) = \prod _ { i = 0 } ^ { n } ( 1 + ( 1 - x ) ^ { 2 ^ { i } } ) { \frac { 1 } { x } }
519
+ $$
520
+
521
+ uniformly over $L$
522
+
523
+ This has the following neural approximation: let $\eta _ { 1 } = ( 1 - x ) ^ { 2 }$ and $\zeta _ { 1 } = \iota _ { h } ( 2 - x )$ be the neurons in the first layer, where $\iota _ { h }$ is some approximation of the identity as in Lemma 4.2. Let $\kappa _ { h }$ represent an approximation to $( x , y ) \mapsto ( x ^ { 2 } , { \bar { y ( x + 1 ) } } )$ in the manner of Lemma C.2, with error made arbitrarily small as $h 0$ . Now for $i \in \{ 1 , 4 , 7 , 1 0 , . . . , 3 n - 2 \}$ , recursively define $( \eta _ { i + 3 } , \zeta _ { i + 3 } ) = \kappa _ { h } ( \eta _ { i } , \zeta _ { i } )$ , where we increase the index by three to represent the fact that three layers are used to perform this operation. So up to approximation, $\eta _ { i + 3 } \approx ( \eta _ { i } ) ^ { 2 }$ , and $\zeta _ { i + 3 } \approx \zeta _ { i } ( \eta _ { i } + 1 )$ .
524
+
525
+ So $\begin{array} { r } { \zeta _ { 3 n + 1 } \to ( 2 - x ) \prod _ { i = 1 } ^ { n } ( 1 + ( 1 - x ) ^ { 2 ^ { i } } ) } \end{array}$ uniformly over $L$ as $h 0$ . Thus the result is obtained by taking first $n$ large enough and then $h$ small enough. □
526
+
527
+ Remark C.4. Our approach to Proposition C.3 is to find a suitable polynomial approximation of the reciprocal function, and then represent that with a network of multiple layers of two neurons each. It is fortunate, then, that this polynomial happens to be of a form that may be represented by such a network, as it is not clear that this should necessarily be the case for all polynomials. Even if Proposition 4.7 were already known, it requires a network of width three to represent arbitrary polynomials $\mathbb { R } \to \mathbb { R }$ , whereas Proposition C.3 uses a network of only width two. It remains unclear whether an arbitrary-depth network of width two, with square activation function, is capable of universal approximation in $C ( K )$ .
528
+
529
+ Proposition 4.7 (Square Model). Let $\rho ( x ) = x ^ { 2 }$ . Let $K \subseteq \mathbb { R } ^ { n }$ be compact. Then $\mathcal { N N } _ { n , m , n + m + 1 } ^ { \rho }$ is dense in $C ( K ; \mathbb { R } ^ { m } )$ .
530
+
531
+ Proof. Fix $f \in C ( K ; \mathbb { R } ^ { m } )$ . Let $f = ( f _ { 1 } , \dots , f _ { m } )$ . Fix $\varepsilon > 0$ . By precomposing with an affine function – which may be absorbed into the first layer of the network – assume without loss of generality that
532
+
533
+ $$
534
+ K \subseteq ( 1 , 2 ) ^ { n } .
535
+ $$
536
+
537
+ By the Stone–Weierstrass theorem there exist polynomials $g _ { 1 } , \ldots , g _ { m }$ in $x _ { 1 } , \ldots . x _ { n }$ approximating $f _ { 1 } , \ldots , f _ { m }$ to within $\varepsilon / 3$ with respect to $\| \cdot \| _ { \infty }$ .
538
+
539
+ We will construct a network that evaluates arbitrarily good approximations to $g _ { 1 } , \ldots , g _ { n }$ . There are a total of $n + m + 1$ neurons in each layer; group them as in the proof of the Register Model (Proposition 4.3), see Appendix A, so that in each layer there is a group of $n$ neurons that we refer to as ‘in-register neurons’, a single neuron that we refer to as the ‘computation neuron’, and a group of $m$ neurons that we refer to as the ‘out-register neurons’.
540
+
541
+ As before, every in-register neuron will simply apply an approximate identity function to the corresponding in-register neuron in the previous layer, so that they preserve the inputs to the network, up to an arbitrarily good approximation of the identity. (For now, at least – later, when constructing the approximation to $g _ { 1 }$ , which will be the final approximation that is handled, then these neurons will be repurposed to perform that computation.) For the sake of sanity of notation, we shall suppress this detail in our notation, and refer to our neurons in later layers as having e.g. $\cdot _ { x _ { 1 } } ,$ as an input to them to them; in practice this means some arbitrarily good approximation to $x _ { 1 }$ . The out-register neurons will eventually store the desired outputs of the network; thus there is an out-register neuron in each layer ‘corresponding’ to each of the $g _ { i }$ .
542
+
543
+ Now suppose $m > 1$ ; if $m = 1$ then this paragraph and the next three paragraphs may simply be skipped. It is easy to build a network approximating $g _ { 2 } , \ldots g _ { m }$ , as there is at least one ‘extra’ neuron per layer thafollows. Let o use: the ou, where each egister neuron corresponding to is a monomial. Using the comp $g _ { 1 }$ . The strategy is asation neuron and the $\begin{array} { r } { g _ { 2 } = \sum _ { j = 1 } ^ { N } \delta _ { j } } \end{array}$ $\delta _ { j }$
544
+ C.1 to compute the value of $\delta _ { 1 }$ . For example, if $\delta _ { 1 } = x _ { 1 } ^ { 2 } x _ { 2 } x _ { 3 }$ , then this chain of multiplications is $x _ { 1 } ( x _ { 1 } ( x _ { 2 } x _ { 3 } ) )$ . The computation neuron and the ‘extra’ out-register neuron in the first layer compute the multiplication $\alpha = x _ { 2 } x _ { 3 }$ , these neurons in the second layer compute the multiplication $\beta = x _ { 1 } \alpha$ , and these neurons in the third layer compute $x _ { 1 } \beta$ . This value is then stored in the out-register neuron corresponding to $g _ { 2 } - \mathsf { b y }$ using the affine part of the operation of this neuron – and kept through the layers via approximate identity functions, as per Lemma 4.2.
545
+
546
+ This process is then repeated for $\delta _ { 2 }$ . The result is then added on – via the affine part of the operation of the out-register neuron corresponding to $g _ { 2 }$ – to the value stored in the out-register neuron corresponding to $g _ { 2 }$ . Repeat for all $j$ until all of the $\delta _ { j }$ have been computed and the out-register neuron stores an approximation to $g _ { 2 }$ . This is only an approximation in that it requires the use of approximate identity functions; other than that it is exact. As such, by taking sufficiently good approximations of the identity function, this will be a uniform approximation to $g _ { 2 }$ over $K$ .
547
+
548
+ Now repeat this whole process for $g _ { 3 } , \ldots g _ { m }$
549
+
550
+ For the rest of the layers of the network, the out-register neurons corresponding to $g _ { 2 } , \ldots , g _ { m }$ will now simply apply approximate identity functions to maintain their values: these will eventually form the outputs of the network. Let these computed values be denoted $\widehat { g } _ { 2 } , \ldots , \widehat { g } _ { m }$ . (With the ‘hat’ notation becuse of the fact that these are not the values $g _ { 2 } , \ldots , g _ { m }$ b b, due to the approximate identity functions in between.)
551
+
552
+ The difficult bit is computing an approximation to $g _ { 1 }$ , as it must be done without the ‘extra’ neuron in each layer. In total, then, in each layer, there are $n + 2$ neurons available: the $n$ in-register neurons (which have so far been storing the inputs $x _ { 1 } , \ldots x _ { n } )$ ), the computation neuron, and the out-register neuron corresponding to $g _ { 1 }$ .
553
+
554
+ Written in terms of monomials, let $\begin{array} { r } { g _ { 1 } = \sum _ { j = 1 } ^ { M } \gamma _ { j } } \end{array}$ . Then $g _ { 1 }$ may be written as
555
+
556
+ $$
557
+ g _ { 1 } = \gamma _ { 1 } \left( 1 + \frac { \gamma _ { 2 } } { \gamma _ { 1 } } \left( 1 + \frac { \gamma _ { 3 } } { \gamma _ { 2 } } \left( \cdots \left( 1 + \frac { \gamma _ { M - 1 } } { \gamma _ { M - 2 } } \left( 1 + \frac { \gamma _ { M } } { \gamma _ { M - 1 } } \right) \right) \cdots \right) \right) \right) .
558
+ $$
559
+
560
+ Note that this description is defined over $K$ , as $K$ is bounded away from the origin.
561
+
562
+ In particular, let $\begin{array} { r } { \gamma _ { j } = \prod _ { k = 1 } ^ { n } x _ { k } ^ { \theta _ { j , k } } } \end{array}$ xθj,kk , for θj,k ∈ N0. Substituting this in,
563
+
564
+ $$
565
+ g _ { 1 } = [ \prod _ { k = 1 } ^ { n } x _ { k } ^ { \theta _ { 1 , k } } ] ( 1 + \prod _ { k = 1 } ^ { n } x _ { k } ^ { \theta _ { 2 , k } } ( 1 + \prod _ { k = 1 } ^ { n } x _ { k } ^ { \theta _ { 3 , k } } ( \cdot \cdot \cdot \\ \prod _ { k = 1 } ^ { n } x _ { k } ^ { \theta _ { 1 , k } } ( 1 + \prod _ { k = 1 } ^ { n } x _ { k } ^ { \theta _ { 2 , k } } ( 1 + \frac { \prod _ { k = 1 } ^ { n } x _ { k } ^ { \theta _ { M , k } } } { \prod _ { k = 1 } ^ { n } x _ { k } ^ { \theta _ { M - 1 , k } } } ) ) \cdot \cdot \cdot ) ) ) .
566
+ $$
567
+
568
+ Now let $\operatorname* { s u p } K$ be defined by
569
+
570
+ $$
571
+ \operatorname* { s u p } K = \operatorname* { s u p } \{ x _ { i } \mid ( x _ { 1 } , \ldots , x _ { n } ) \in K \} ,
572
+ $$
573
+
574
+ so that $1 < \operatorname* { s u p } K < 2$ . Let $r$ be an approximation to $x \mapsto 1 / x$ in the manner of Proposition C.3, with the $L$ of that proposition given by
575
+
576
+ $$
577
+ L = [ ( \operatorname* { s u p } K ) ^ { - 1 } - \alpha , \operatorname* { s u p } K + \alpha ] \subseteq ( 0 , 2 ) ,
578
+ $$
579
+
580
+ where $\alpha > 0$ is taken small enough that the inclusion holds.
581
+
582
+ Let $r ^ { a }$ denote $r$ composed $a$ times. By taking $r$ to be a suitably good approximation, we may ensure that $\widetilde { g } _ { 1 }$ defined by
583
+
584
+ $$
585
+ \begin{array} { r l } { \widetilde { \eta } _ { 1 } - \displaystyle \prod _ { i = 1 } ^ { n } \gamma ^ { 2 M - 2 } ( z _ { i \ell } ) ^ { \theta _ { i , i } } \Bigg | } & { \Bigg ( 1 + \displaystyle \prod _ { i = 1 } ^ { n } \gamma ^ { 2 M - 3 } ( z _ { i \ell } ) ^ { \theta _ { i , i } } ) ^ { \theta _ { i , i } } \Bigg | \left[ \displaystyle \prod _ { i = 1 } ^ { n } \gamma ^ { 2 M - 4 } ( z _ { i \ell } ) ^ { \theta _ { i , i } } \right] } \\ & { \Bigg ( 1 + \displaystyle \prod _ { i = 1 } ^ { n } \gamma ^ { 2 M - 3 } ( z _ { i \ell } ) ^ { \theta _ { i , i } } \Bigg ) \displaystyle \prod _ { i = 1 } ^ { n } \gamma ^ { 3 \ell - 3 } ( z _ { i \ell } ) ^ { \theta _ { i , i } } \Bigg ] } \\ & { \Bigg ( \displaystyle \prod _ { i = 1 } ^ { n } \bigg ( \displaystyle \prod _ { i = 1 } ^ { n } \gamma ^ { 3 } ( z _ { i \ell } ) ^ { \theta _ { i , i } } \bigg ) ^ { \theta _ { i } } \Bigg ) } \\ & { \Bigg ( 1 + \displaystyle \prod _ { i = 1 } ^ { n } \gamma ^ { 3 } ( z _ { i \ell } ) ^ { \theta _ { i , i } } \Bigg ) ^ { \theta _ { i } } \left[ \displaystyle \prod _ { i = 1 } ^ { n } \gamma ^ { 2 } ( z _ { i \ell } ) ^ { \theta _ { i , i } } \cdots \right] \Bigg | } \\ & { \Bigg ( 1 + \displaystyle \prod _ { i = 1 } ^ { n } \gamma ^ { 3 } ( z _ { i \ell } ) ^ { \theta _ { i , i } } \cdots \bigg ) \Bigg [ \displaystyle \prod _ { i = 1 } ^ { n } \alpha _ { i } ^ { \theta _ { i , i } } \cdots \bigg ] \Bigg ) \Bigg ) ^ { \theta _ { i } } } \\ & { \quad \cdots \Bigg ) \Bigg ) \Bigg ) } \end{array}
586
+ $$
587
+
588
+ is an approximation to $g _ { 1 }$ in $K$ , to within $\varepsilon / 3$ , with respect to $\| \cdot \| _ { \infty }$ . This is possible by equations (C.1) and (C.2); in particular the approximation should be sufficiently precise that
589
+
590
+ $$
591
+ r ^ { 2 M - 2 } ( [ ( \operatorname { s u p } K ) ^ { - 1 } , \operatorname { s u p } K ] ) \subseteq L ,
592
+ $$
593
+
594
+ which is why $\alpha > 0$ is needed: note how $r ^ { 2 }$ , and thus $r ^ { 4 } , r ^ { 6 } , . . . , r ^ { 2 M - 2 }$ , are approximately the identity function on $L$ .
595
+
596
+ This description of $\widetilde { g } _ { 1 }$ is now amenable to representation with a neural network. The key fact about this description of $\widetilde { g } _ { 1 }$ is that, working from the most nested set of brackets outwards, the value of $\widetilde { g } _ { 1 }$ e emay be computed by performing a single chain of multiplications and additions, and occasionally taking the reciprocal of all of the input values.
597
+
598
+ So let the computation neuron and the out-register neuron corresponding to $g _ { 1 }$ perform the multiplications, layer-by-layer, to compute Qnk=1 xk θM,k in the manner of Lemma C.1. Store this value in the out-register neuron.
599
+
600
+ Now use the computation neurons and the in-register neurons corresponding to $x _ { 1 }$ (across multiple layers) to compute $r ( x _ { 1 } )$ , in the manner of Proposition C.3: eventually the in-register neuron is now storing $r ( x _ { 1 } ) \approx 1 / x _ { 1 }$ . Repeat for the other in-register neurons, so that they are collectively storing $r ( x _ { 1 } ) , \ldots , r ( x _ { n } )$ .
601
+
602
+ Now the computation neuron and the out-register neuron may start multipying $r ( x _ { 1 } ) , \ldots , r ( x _ { n } )$ on to Qnk=1 xk θM,k (which is the value presently stored in the out-register neuron) the appropriate number to times to compute $\left[ \prod _ { k = 1 } ^ { n } r ( x _ { k } ) ^ { \theta _ { M - 1 , k } } \right] \left[ \prod _ { k = 1 } ^ { n } x _ { k } ^ { \theta _ { M , k } } \right]$ , by Lemma C.1. Store this value in the out-register neuron. Then add one (using the affine part of a layer). The out-register neuron has now computed the expression in the innermost bracket in the description of $\widetilde { g } _ { 1 }$ .
603
+
604
+ The general pattern is now clear: apply $r$ to all of the in-register neurons again to compute $r ^ { 2 } ( x _ { i } )$ , multiply them on to the value in the out-register neuron, and so on. Eventually the out-register neuron corresponding to $g _ { 1 }$ will have computed the value $\widetilde { g } _ { 1 }$ . Actually, it will have computed an approximation $\widehat { g } _ { 1 }$ eto this value, because of the identity approximations involved.
605
+
606
+ By taking all of the (many) identity approximations throughout the network to be suitably precise, the values of $\widetilde { g } _ { 1 }$ and $\widehat { g } _ { 1 }$ may be taken within $\varepsilon / 3$ of each other, and the values of $\widehat { g } _ { 2 } , \ldots , \widehat { g } _ { m }$ and $g _ { 2 } , \ldots , g _ { m }$ e b may be taken within $2 \varepsilon / 3$ of each other, in each case with respect to $\| \cdot \| _ { \infty }$ on $K$ .
607
+
608
+ Thus $( \widehat { g } _ { 1 } , \ldots , \widehat { g } _ { m } )$ approximates $f$ with total error no more than $\varepsilon$ , and the proof is complete.
parse/train/B1xGGTEtDH/B1xGGTEtDH_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1xGGTEtDH/B1xGGTEtDH_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1xGGTEtDH/B1xGGTEtDH_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJUOHGWRb/HJUOHGWRb.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJUOHGWRb/HJUOHGWRb_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJUOHGWRb/HJUOHGWRb_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJUOHGWRb/HJUOHGWRb_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyQJ-mclg/HyQJ-mclg.md ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # INCREMENTAL NETWORK QUANTIZATION: TOWARDS LOSSLESS CNNS WITH LOW-PRECISION WEIGHTS
2
+
3
+ Aojun Zhou∗, Anbang Yao, Yiwen Guo, Lin Xu, and Yurong Chen
4
+ Intel Labs China
5
+ {aojun.zhou, anbang.yao, yiwen.guo, lin.x.xu, yurong.chen}@intel.com
6
+
7
+ # ABSTRACT
8
+
9
+ This paper presents incremental network quantization (INQ), a novel method, targeting to efficiently convert any pre-trained full-precision convolutional neural network (CNN) model into a low-precision version whose weights are constrained to be either powers of two or zero. Unlike existing methods which are struggled in noticeable accuracy loss, our INQ has the potential to resolve this issue, as benefiting from two innovations. On one hand, we introduce three interdependent operations, namely weight partition, group-wise quantization and re-training. A well-proven measure is employed to divide the weights in each layer of a pretrained CNN model into two disjoint groups. The weights in the first group are responsible to form a low-precision base, thus they are quantized by a variablelength encoding method. The weights in the other group are responsible to compensate for the accuracy loss from the quantization, thus they are the ones to be re-trained. On the other hand, these three operations are repeated on the latest re-trained group in an iterative manner until all the weights are converted into low-precision ones, acting as an incremental network quantization and accuracy enhancement procedure. Extensive experiments on the ImageNet classification task using almost all known deep CNN architectures including AlexNet, VGG-16, GoogleNet and ResNets well testify the efficacy of the proposed method. Specifically, at 5-bit quantization (a variable-length encoding: 1 bit for representing zero value, and the remaining 4 bits represent at most 16 different values for the powers of two) 1, our models have improved accuracy than the 32-bit floating-point references. Taking ResNet-18 as an example, we further show that our quantized models with 4-bit, 3-bit and 2-bit ternary weights have improved or very similar accuracy against its 32-bit floating-point baseline. Besides, impressive results with the combination of network pruning and INQ are also reported. We believe that our method sheds new insights on how to make deep CNNs to be applicable on mobile or embedded devices. The code will be made publicly available.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Deep convolutional neural networks (CNNs) have demonstrated record breaking results on a variety of computer vision tasks such as image classification (Krizhevsky et al., 2012; Simonyan & Zisserman, 2015), face recognition (Taigman et al., 2014; Sun et al., 2014), semantic segmentation (Long et al., 2015; Chen et al., 2015a) and object detection (Girshick, 2015; Ren et al., 2015). Regardless of the availability of significantly improved training resources such as abundant annotated data, powerful computational platforms and diverse training frameworks, the promising results of deep CNNs are mainly attributed to the large number of learnable parameters, ranging from tens of millions to even hundreds of millions. Recent progress further shows clear evidence that CNNs could easily enjoy the accuracy gain from the increased network depth and width (He et al., 2016; Szegedy et al., 2015; 2016). However, this in turn lays heavy burdens on the memory and other computational resources. For instance, ResNet-152, a specific instance of the latest residual network architecture wining ImageNet classification challenge in 2015, has a model size of about 230 MB and needs to perform about 11.3 billion FLOPs to classify a $2 2 4 \times 2 2 4$ image crop. Therefore, it is very challenging to deploy deep CNNs on the devices with limited computation and power budgets.
14
+
15
+ Substantial efforts have been made to the speed-up and compression on CNNs during training, feedforward test or both of them. Among existing methods, the category of network quantization methods attracts great attention from researches and developers. Some network quantization works try to compress pre-trained full-precision CNN models directly. Gong et al. (2014) address the storage problem of AlexNet (Krizhevsky et al., 2012) with vector quantization techniques. By replacing the weights in each of the three fully connected layers with respective floating-point centroid values obtained from the clustering, they can get over $2 0 \times$ model compression at about $1 \%$ loss in top-5 recognition rate. HashedNet (Chen et al., 2015b) uses a hash function to randomly map pre-trained weights into hash buckets, and all the weights in the same hash bucket are constrained to share a single floating-point value. In HashedNet, only the fully connected layers of several shallow CNN models are considered. For better compression, Han et al. (2016) present deep compression method which combines the pruning (Han et al., 2015), vector quantization and Huffman coding, and reduce the model storage by $3 5 \times$ on AlexNet and $4 9 \times$ on VGG-16 (Simonyan & Zisserman, 2015). Vanhoucke et al. (2011) use an SSE 8-bit fixed-point implementation to improve the computation of neural networks on the modern Intel $\mathbf { \boldsymbol { x } } 8 6$ CPUs in feed-forward test, yielding $3 \times$ speed-up over an optimized floating-point baseline. Training CNNs by substituting the 32-bit floating-point representation with the 16-bit fixed-point representation has also been explored in Gupta et al. (2015). Other seminal works attempt to restrict CNNs into low-precision versions during training phase. Soudry et al. (2014) propose expectation backpropagation (EBP) to estimate the posterior distribution of deterministic network weights. With EBP, the network weights can be constrained to $+ 1$ and $^ { - 1 }$ during feed-forward test in a probabilistic way. BinaryConnect (Courbariaux et al., 2015) further extends the idea behind EBP to binarize network weights during training phase directly. It has two versions of network weights: floating-point and binary. The floating-point version is used as the reference for weight binarization. BinaryConnect achieves state-of-the-art accuracy using shallow CNNs for small datasets such as MNIST (LeCun et al., 1998) and CIFAR-10. Later on, a series of efforts have been invested to train CNNs with low-precision weights, low-precision activations and even low-precision gradients, including but not limited to BinaryNet (Courbariaux et al., 2016), XNOR-Net (Rastegari et al., 2016), ternary weight network (TWN) (Li & Liu, 2016), DoReFa-Net (Zhou et al., 2016) and quantized neural network (QNN) (Hubara et al., 2016).
16
+
17
+ Despite these tremendous advances, CNN quantization still remains an open problem due to two critical issues which have not been well resolved yet, especially under scenarios of using low-precision weights for quantization. The first issue is the non-negligible accuracy loss for CNN quantization methods, and the other issue is the increased number of training iterations for ensuring convergence. In this paper, we attempt to address these two issues by presenting a novel incremental network quantization (INQ) method.
18
+
19
+ In our INQ, there is no assumption on the CNN architecture, and its basic goal is to efficiently convert any pre-trained full-precision (i.e., 32-bit floating-point) CNN model into a low-precision version whose weights are constrained to be either powers of two or zero. The advantage of such kind of low-precision models is that the original floating-point multiplication operations can be replaced by cheaper binary bit shift operations on dedicated hardware like FPGA. We noticed that most existing network quantization methods adopt a global strategy in which all the weights are simultaneously converted to low-precision ones (that are usually in the floating-point types). That is, they have not considered the different importance of network weights, leaving the room to retain network accuracy limited. In sharp contrast to existing methods, our INQ makes a very careful handling for the model accuracy drop from network quantization. To be more specific, it incorporates three interdependent operations: weight partition, group-wise quantization and re-training. Weight partition uses a pruning-inspired measure (Han et al., 2015; Guo et al., 2016) to divide the weights in each layer of a pre-trained full-precision CNN model into two disjoint groups which play complementary roles in our INQ. The weights in the first group are quantized to be either powers of two or zero by a variable-length encoding method, forming a low-precision base for the original model. The weights in the other group are re-trained while keeping the quantized weights fixed, compensating for the accuracy loss resulted from the quantization. Furthermore, these three operations are repeated on the latest re-trained weight group in an iterative manner until all the weights are quantized, acting as an incremental network quantization and accuracy enhancement procedure (as illustrated in Figure 1).
20
+
21
+ ![](images/450f6613f97d9601a580c5c41c8086953fe819a0c5d0d4e38305e967fdbf1359.jpg)
22
+ Figure 1: An overview of our incremental network quantization method. (a) Pre-trained fullprecision model used as a reference. (b) Model update with three proposed operations: weight partition, group-wise quantization (green connections) and re-training (blue connections). (c) Final low-precision model with all the weights constrained to be either powers of two or zero. In the figure, operation (1) represents a single run of (b), and operation (2) denotes the procedure of repeating operation (1) on the latest re-trained weight group until all the non-zero weights are quantized. Our method does not lead to accuracy loss when using 5-bit, 4-bit and even 3-bit approximations in network quantization. For better visualization, here we just use a 3-layer fully connected network as an illustrative example, and the newly re-trained weights are divided into two disjoint groups of the same size at each run of operation (1) except the last run which only performs quantization on the re-trained floating-point weights occupying $12 . 5 \%$ of the model weights.
23
+
24
+ The main insight of our INQ is that a compact combination of the proposed weight partition, groupwise quantization and re-training operations has the potential to get a lossless low-precision CNN model from any full-precision reference. We conduct extensive experiments on the ImageNet large scale classification task using almost all known deep CNN architectures to validate the effectiveness of our method. We show that: (1) For AlexNet, VGG-16, GoogleNet and ResNets with 5-bit quantization, INQ achieves improved accuracy in comparison with their respective full-precision baselines. The absolute top-1 accuracy gain ranges from ${ \bf 0 . 1 3 \% }$ to $2 . 2 8 \%$ , and the absolute top-5 accuracy gain is in the range of $0 . 2 3 \%$ to $1 . 6 5 \%$ . (2) INQ has the property of easy convergence in training. In general, re-training with less than 8 epochs could consistently generate a lossless model with 5-bit weights in the experiments. (3) Taking ResNet-18 as an example, our quantized models with 4-bit, 3-bit and 2-bit ternary weights also have improved or very similar accuracy compared with its 32-bit floating-point baseline. (4) Taking AlexNet as an example, the combination of our network pruning and INQ outperforms deep compression method (Han et al., 2016) with significant margins.
25
+
26
+ # 2 INCREMENTAL NETWORK QUANTIZATION
27
+
28
+ In this section, we clarify the insight of our INQ, describe its key components, and detail its implementation.
29
+
30
+ # 2.1 WEIGHT QUANTIZATION WITH VARIABLE-LENGTH ENCODING
31
+
32
+ Suppose a pre-trained full-precision (i.e., 32-bit floating-point) CNN model can be represented by $\{ \mathbf { W } _ { l } : 1 \le l \le L \}$ , where $\mathbf { W } _ { l }$ denotes the weight set of the ${ \bf \chi } _ { l ^ { t h } }$ layer, and $L$ denotes the number of learnable layers in the model. To simplify the explanation, we only consider convolutional layers and fully connected layers. For CNN models like AlexNet, VGG-16, GoogleNet and ResNets as tested in this paper, $\mathbf { W } _ { l }$ can be a $4 D$ tensor for the convolutional layer, or a $2 D$ matrix for the fully connected layer. For simplicity, here the dimension difference is not considered in the expression. Given a pre-trained full-precision CNN model, the main goal of our INQ is to convert all 32-bit floating-point weights to be either powers of two or zero without loss of model accuracy. Besides, we also attempt to explore the limit of the expected bit-width under the premise of guaranteeing lossless network quantization. Here, we start with our basic network quantization method on how to convert $\mathbf { W } _ { l }$ to be a low-precision version $\widehat { \mathbf { W } } _ { l }$ , and each of its entries is chosen from
33
+
34
+ $$
35
+ \mathbf { P } _ { l } = \{ \pm 2 ^ { n _ { 1 } } , \cdot \cdot \cdot , \pm 2 ^ { n _ { 2 } } , 0 \} ,
36
+ $$
37
+
38
+ where $n _ { 1 }$ and $n _ { 2 }$ are two integer numbers, and they satisfy $n _ { 2 } \leq n _ { 1 }$ . Mathematically, $n _ { 1 }$ and $n _ { 2 }$ help to bound ${ \bf P } _ { l }$ in the sense that its non-zero elements are constrained to be in the range of either $[ - 2 ^ { n _ { 1 } } , - 2 ^ { n _ { 2 } } ]$ or $[ 2 ^ { n _ { 2 } } , 2 ^ { n _ { 1 } } ]$ . That is, network weights with absolute values smaller than $2 ^ { n _ { 2 } }$ will be pruned away (i.e., set to zero) in the final low-precision model. Obviously, the problem is how to determine $n _ { 1 }$ and $n _ { 2 }$ . In our INQ, the expected bit-width $b$ for storing the indices in ${ \bf P } _ { l }$ is set beforehand, thus the only hyper-parameter shall be determined is $n _ { 1 }$ because $n _ { 2 }$ can be naturally computed once $b$ and $n _ { 1 }$ are available. Here, $n _ { 1 }$ is calculated by using a tricky yet practically effective formula as
39
+
40
+ $$
41
+ n _ { 1 } = \mathrm { { f l o o r } ( l o g _ { 2 } ( 4 { s / 3 } ) ) , }
42
+ $$
43
+
44
+ where $\operatorname { f l o o r } ( \cdot )$ indicates the round down operation and $s$ is calculated by using
45
+
46
+ $$
47
+ s = \operatorname* { m a x } ( \operatorname { a b s } ( \mathbf { W } _ { l } ) ) ,
48
+ $$
49
+
50
+ where $\mathrm { a b s } ( \cdot )$ is an element-wise operation and $\operatorname* { m a x } ( { \mathord { \cdot } } )$ outputs the largest element of its input. In fact, Equation (2) helps to match the rounding power of 2 for $s$ , and it could be easily implemented in practical programming. After $n _ { 1 }$ is obtained, $n _ { 2 }$ can be naturally determined as $n _ { 2 } = n _ { 1 } + 1 -$ $2 ^ { ( b - 1 ) } / 2$ . For instance, if $b = 3$ and $n _ { 1 } = - 1$ , it is easy to get $n _ { 2 } = - 2$ .
51
+
52
+ Once $\mathbf { P } _ { l }$ is determined, we further use the ladder of powers to convert every entry of $\mathbf { W } _ { l }$ into a low-precision one by using
53
+
54
+ $$
55
+ \widehat { \mathbf { W } } _ { l } ( i , j ) = \left\{ \begin{array} { l l } { \beta \mathrm { s g n } ( \mathbf { W } _ { l } ( i , j ) ) } & { \mathrm { i f } ( \alpha + \beta ) / 2 \leq \mathrm { a b s } ( \mathbf { W } _ { l } ( i , j ) ) < 3 \beta / 2 } \\ { 0 } & { \mathrm { o t h e r w i s e } , } \end{array} \right.
56
+ $$
57
+
58
+ where $\alpha$ and $\beta$ are two adjacent elements in the sorted ${ \bf P } _ { l }$ , making the above equation as a numerical rounding to the quantum values. It should be emphasized that factor $4 / 3$ in Equation (2) is set to make sure that all the elements in ${ \bf P } _ { l }$ correspond with the quantization rule defined in Equation (4). In other words, factor $4 / 3$ in Equation (2) highly correlates with factor $3 / 2$ in Equation (4).
59
+
60
+ Here, an important thing we want to clarify is the definition of the expected bit-width $b$ . Taking 5-bit quantization as an example, since zero value cannot be written as the power of two, we use 1 bit to represent zero value, and the remaining 4 bits to represent at most 16 different values for the powers of two. That is, the number of candidate quantum values is at most $2 ^ { b - 1 } + 1$ , so our quantization method actually adopts a variable-length encoding scheme. It is clear that the quantization described above is performed in a linear scale. An alternative solution is to perform the quantization in the log scale. Although it may also be effective, it should be a little bit more difficult in implementation and may cause some extra computational overhead in comparison to our method.
61
+
62
+ # 2.2 INCREMENTAL QUANTIZATION STRATEGY
63
+
64
+ We can naturally use the above described method to quantize any pre-trained full-precision CNN model. However, noticeable accuracy loss appeared in the experiments when using small bit-width values (e.g., 5-bit, 4-bit, 3-bit and 2-bit).
65
+
66
+ In the literature, there are many existing network quantization works such as HashedNet (Chen et al., 2015b), vector quantization (Gong et al., 2014), fixed-point representation (Vanhoucke et al., 2011; Gupta et al., 2015), BinaryConnect (Courbariaux et al., 2015), BinaryNet (Courbariaux et al., 2016), XNOR-Net (Rastegari et al., 2016), TWN (Li & Liu, 2016), DoReFa-Net (Zhou et al., 2016) and QNN (Hubara et al., 2016). Similar to our basic network quantization method, they also suffer from non-negligible accuracy loss on deep CNNs, especially when being applied on the ImageNet large scale classification dataset. For all these methods, a common fact is that they adopt a global strategy in which all the weights are simultaneously converted into low-precision ones, which in turn causes accuracy loss. Compared with the methods focusing on the pre-trained models, accuracy loss becomes worse for the methods such as XNOR-Net, TWN, DoReFa-Net and QNN which intend to train low-precision CNNs from scratch.
67
+
68
+ Recall that our main goal is to achieve lossless low-precision quantization for any pre-trained fullprecision CNN model with no assumption on its architecture. To this end, our INQ makes a special handling of the strategy for suppressing resulting quantization loss in model accuracy. We are partially inspired by the latest progress in network pruning (Han et al., 2015; Guo et al., 2016). In these methods, the accuracy loss from removing less important network weights of a pre-trained neural network model could be well compensated by following re-training steps. Therefore, we conjecture that the nature of changing network weight importance is critical to achieve lossless network quantization.
69
+
70
+ ![](images/2dc0441050f3b20ced1e13c4a46fed6509dbb2251f6016d5491c6f7ceef84095.jpg)
71
+ Figure 2: Result illustrations. First row: results from the $1 ^ { s t }$ iteration of the proposed three operations. The top left cube illustrates weight partition operation generating two disjoint groups, the middle image illustrates the quantization operation on the first weight group (green cells), and the top right cube illustrates the re-training operation on the second weight group (light blue cells). Second row: results from the $2 ^ { n d }$ , $3 ^ { r d }$ and $\dot { 4 } ^ { t h }$ iterations of the INQ. In the figure, the accumulated portion of the weights which have been quantized undergoes from $5 0 \% { } 7 5 \% { } 8 7 . 5 \% { } 1 0 0 \%$ .
72
+
73
+ Base on this assumption, we present INQ which incorporates three interdependent operations: weight partition, group-wise quantization and re-training. Weight partition is to divide the weights in each layer of a pre-trained full-precision CNN model into two disjoint groups which play complementary roles in our INQ. The weights in the first group are responsible for forming a low-precision base for the original model, thus they are quantized by using Equation (4). The weights in the second group adapt to compensate for the loss in model accuracy, thus they are the ones to be re-trained. Once the first run of the quantization and re-training operations is finished, all the three operations are further conducted on the second weight group in an iterative manner, until all the weights are converted to be either powers of two or zero, acting as an incremental network quantization and accuracy enhancement procedure. As a result, accuracy loss under low-precision CNN quantization can be well suppressed by our INQ. Illustrative results at iterative steps of our INQ are provided in Figure 2.
74
+
75
+ For the $l ^ { t h }$ layer, weight partition can be defined as
76
+
77
+ $$
78
+ \mathbf { A } _ { l } ^ { ( 1 ) } \cup \mathbf { A } _ { l } ^ { ( 2 ) } = \{ \mathbf { W } _ { l } ( i , j ) \} , \mathrm { a n d } \mathbf { A } _ { l } ^ { ( 1 ) } \cap \mathbf { A } _ { l } ^ { ( 2 ) } = \varnothing ,
79
+ $$
80
+
81
+ where ${ \bf A } _ { l } ^ { ( 1 ) }$ denotes the first weight group that needs to be quantized, and ${ \bf A } _ { 2 }$ denotes the other weight group that needs to be re-trained. We leave the strategies for group partition to be chosen in the experiment section. Here, we define a binary matrix $\mathbf { T } _ { l }$ to help distinguish above two categories of weights. That is, $\mathbf T _ { l } ( i , j ) = 0$ means $\mathbf { W } _ { l } ( i , j ) \in \mathbf { A } _ { l } ^ { ( 1 ) }$ , and $\mathbf T _ { l } ( i , j ) = 1$ means $\mathbf { W } _ { l } ( i , j ) \in \mathbf { A } _ { l } ^ { ( 2 ) }$ .
82
+
83
+ # 2.3 INCREMENTAL NETWORK QUANTIZATION ALGORITHM
84
+
85
+ Now, we come to the training method. Taking the $l ^ { t h }$ layer as an example, the basic optimization problem of making its weights to be either powers of two or zero can be expressed as
86
+
87
+ $$
88
+ \begin{array} { r l } { \underset { \mathbf { W } _ { l } } { \operatorname* { m i n } } } & { E ( \mathbf { W } _ { l } ) = L ( \mathbf { W } _ { l } ) + \lambda R ( \mathbf { W } _ { l } ) } \\ { \mathrm { s . t . } } & { \mathbf { W } _ { l } ( i , j ) \in \mathbf { P } _ { l } , 1 \leq l \leq L , } \end{array}
89
+ $$
90
+
91
+ where $L ( \mathbf { W } _ { l } )$ is the network loss, $R ( { \mathbf W } _ { l } )$ is the regularization term, $\lambda$ is a positive coefficient, and the constraint term indicates each weight entry ${ \bf W } _ { l } ( i , j )$ should be chosen from the set $\mathbf { P } _ { l }$ consisting of a fixed number of the values of powers of two plus zero. Direct solving above optimization problem in training from scratch is challenging since it is very easy to undergo convergence problem.
92
+
93
+ By performing weight partition and group-wise quantization operations beforehand, the optimization problem defined in (6) can be reshaped into a easier version. That is, we only need to optimize the following objective function
94
+
95
+ $$
96
+ \begin{array} { r l } { \underset { \mathbf { W } _ { l } } { \mathop { \operatorname* { m i n } } } } & { E ( \mathbf { W } _ { l } ) = L ( \mathbf { W } _ { l } ) + \lambda R ( \mathbf { W } _ { l } ) } \\ { \mathrm { s . t . } } & { \mathbf { W } _ { l } ( i , j ) \in \mathbf { P } _ { l } , \mathrm { ~ i f ~ } \mathbf { T } _ { l } ( i , j ) = 0 , 1 \leq l \leq L , } \end{array}
97
+ $$
98
+
99
+ where $\mathbf { P } _ { l }$ is determined at group-wise quantization operation, and the binary matrix $\mathbf { T } _ { l }$ acts as a mask which is determined by weight partition operation. Since $\mathbf { P } _ { l }$ and $\mathbf { T } _ { l }$ are known, the optimization problem (7) can be solved using popular stochastic gradient decent (SGD) method. That is, in INQ, we can get the update scheme for the re-training as
100
+
101
+ $$
102
+ \mathbf { W } _ { l } ( i , j ) \mathbf { W } _ { l } ( i , j ) - \gamma \frac { \partial E } { \partial ( \mathbf { W } _ { l } ( i , j ) ) } \mathbf { T } _ { l } ( i , j ) ,
103
+ $$
104
+
105
+ where $\gamma$ is a positive learning rate. Note that the binary matrix $\mathbf { T } _ { l }$ forces zero update to the weights that have been quantized. That is, only the weights still keep with floating-point values are updated, akin to the latest pruning methods (Han et al., 2015; Guo et al., 2016) in which only the weights that are not currently removed are re-trained to enhance network accuracy. The whole procedure of our INQ is summarized as Algorithm 1.
106
+
107
+ We would like to highlight that the merits of our INQ are in three aspects: (1) Weight partition introduces the importance-aware weight quantization. (2) Group-wise weight quantization introduces much less accuracy loss than simultaneously quantizing all the network weights, thus making retraining have larger room to recover model accuracy. (3) By integrating the operations of weight partition, group-wise quantization and re-training into a nested loop, our INQ has the potential to obtain lossless low-precision CNN model from the pre-trained full-precision reference.
108
+
109
+ g
110
+ Input: $X$ : the training data, $\{ \mathbf { W } _ { l } : 1 \le l \le L \}$ : the pre-trained full-precision CNN model, $\{ \sigma _ { 1 } , \sigma _ { 2 } , \cdots , \sigma _ { N } \}$ : the accumulated portions of weights quantized at iterative steps
111
+ Output: $\{ \widehat { \mathbf { W } } _ { l } : 1 \leq l \leq L \}$ : the final low-precision model with the weights constrained to be either powers of two or zero 1: Initialize $\mathbf { A } _ { l } ^ { ( 1 ) } \varnothing , \mathbf { A } _ { l } ^ { ( 2 ) } \{ \mathbf { W } _ { l } ( i , j ) \} , \mathbf { T } _ { l } \mathbf { 1 } , \operatorname { f o r } 1 \leq l \leq L$ 2: for $n = 1 , 2 , \ldots , N$ do 3: Reset the base learning rate and the learning policy 4: According to $\sigma _ { n }$ , perform layer-wise weight partition and update $\mathbf { A } _ { l } ^ { ( 1 ) } , \mathbf { A } _ { l } ^ { ( 2 ) }$ and $\mathbf { T } _ { l }$ 5: Based on ${ \bf A } _ { l } ^ { ( 1 ) }$ , determine $\mathbf { P } _ { l }$ layer-wisely 6: Quantize the weights in ${ \bf A } _ { l } ^ { ( 1 ) }$ by Equation (4) layer-wisely 7: Calculate feed-forward loss, and update weights in $\{ \mathbf { A } _ { l } ^ { ( 2 ) } : 1 \le l \le L \}$ by Equation (8) 8: end for
112
+
113
+ # 3 EXPERIMENTAL RESULTS
114
+
115
+ To analyze the performance of our INQ, we perform extensive experiments on the ImageNet large scale classification task, which is known as the most challenging image classification benchmark so far. ImageNet dataset has about 1.2 million training images and 50 thousand validation images. Each image is annotated as one of 1000 object classes. We apply our INQ to AlexNet, VGG-16, GoogleNet, ResNet-18 and ResNet-50, covering almost all known deep CNN architectures. Using the center crops of validation images, we report the results with two standard measures: top-1 error rate and top-5 error rate. For fair comparison, all pre-trained full-precision (i.e., 32-bit floatingpoint) CNN models except ResNet-18 are taken from the Caffe model ${ \mathrm { z o o } } ^ { 2 }$ . Note that He et al. (2016) do not release their pre-trained ResNet-18 model to the public, so we use a publicly available re-implementation by Facebook3. Since our method is implemented with Caffe, we make use of an open source tool4 to convert the pre-trained ResNet-18 model from Torch to Caffe.
116
+
117
+ # 3.1 RESULTS ON IMAGENET
118
+
119
+ Table 1: Our INQ well converts diverse full-precision deep CNN models (including AlexNet, VGG16, GoogleNet, ResNet-18 and ResNet-50) to 5-bit low-precision versions with consistently improved model accuracy.
120
+
121
+ <table><tr><td>Network</td><td>Bit-width</td><td>Top-1 error</td><td>Top-5 error</td><td>Decrease in top-1/top-5 error</td></tr><tr><td>AlexNet ref</td><td>32</td><td>42.76%</td><td>19.77%</td><td></td></tr><tr><td>AlexNet VGG-16 ref</td><td>5 32</td><td>42.61% 31.46%</td><td>19.54% 11.35%</td><td>0.15%/0.23%</td></tr><tr><td>VGG-16</td><td>5</td><td>29.18%</td><td>9.70%</td><td>2.28%/1.65%</td></tr><tr><td>GoogleNet ref</td><td></td><td></td><td></td><td></td></tr><tr><td>GoogleNet</td><td>32</td><td>31.11%</td><td>10.97%</td><td></td></tr><tr><td>ResNet-18 ref</td><td>5</td><td>30.98%</td><td>10.72%</td><td>0.13%/0.25%</td></tr><tr><td>ResNet-18</td><td>32</td><td>31.73%</td><td>11.31%</td><td></td></tr><tr><td></td><td>5</td><td>31.02%</td><td>10.90%</td><td>0.71%/0.41%</td></tr><tr><td>ResNet-50 ref</td><td>32</td><td>26.78%</td><td>8.76%</td><td></td></tr><tr><td>ResNet-50</td><td>5</td><td>25.19%</td><td>7.55%</td><td>1.59%/1.21%</td></tr></table>
122
+
123
+ Setting expected bit-width to 5, the first set of experiments is performed to testify the efficacy of our INQ on different CNN architectures. Regarding weight partition, there are several candidate strategies as we tried in our previous work for efficient network pruning (Guo et al., 2016). In Guo et al. (2016), we found random partition and pruning-inspired partition are the two best choices compared with the others. Thus in this paper, we directly compare these two strategies for weight partition. In random strategy, the weights in each layer of any pre-trained full-precision deep CNN model are randomly split into two disjoint groups. In pruning-inspired strategy, the weights are divided into two disjoint groups by comparing their absolute values with layer-wise thresholds which are automatically determined by a given splitting ratio. Here we directly use pruning-inspired strategy and the experimental results in Section 3.2 will show why. After the re-training with no more than 8 epochs over each pre-trained full-precision model, we obtain the results as shown in Table 1. It can be concluded that the 5-bit CNN models generated by our INQ show consistently improved top-1 and top-5 recognition rates compared with respective full-precision references. Parameter settings are described below.
124
+
125
+ AlexNet: AlexNet has 5 convolutional layers and 3 fully-connected layers. We set the accumulated portions of quantized weights at iterative steps as $\{ 0 . 3 , \dot { 0 } . 6 , 0 . 8 , 1 \}$ , the batch size as 256, the weight decay as 0.0005, and the momentum as 0.9.
126
+
127
+ VGG-16: Compared with AlexNet, VGG-16 has 13 convolutional layers and more parameters. We set the accumulated portions of quantized weights at iterative steps as $\{ 0 . 5 , 0 . 7 5 , 0 . 8 7 5 , 1 \}$ , the batch size as 32, the weight decay as 0.0005, and the momentum as 0.9.
128
+
129
+ GoogleNet: Compared with AlexNet and VGG-16, GoogleNet is more difficult to quantize due to a smaller number of parameters and the increased network width. We set the accumulated portions of quantized weights at iterative steps as $\{ 0 . 2 , 0 . 4 , 0 . 6 , 0 . 8 , 1 \}$ , the batch size as 80, the weight decay as 0.0002, and the momentum as 0.9.
130
+
131
+ ResNet-18: Different from above three networks, ResNets have batch normalization layers and relief the vanishing gradient problem by using shortcut connections. We first test the 18-layer version for exploratory purpose and test the 50-layer version later on. The network architectures of ResNet18 and ResNet-34 are very similar. The only difference is the number of filters in every convolutional layer. We set the accumulated portions of quantized weights at iterative steps as {0.5, 0.75, 0.875, $1 \}$ , the batch size as 80, the weight decay as 0.0005, and the momentum as 0.9.
132
+
133
+ ResNet-50: Besides significantly increased network depth, ResNet-50 has a more complex network architecture in comparison to ResNet-18. However, regarding network architecture, ResNet-50 is very similar to ResNet-101 and ResNet-152. The only difference is the number of filters in every convolutional layer. We set the accumulated portions of quantized weights at iterative steps as $\{ 0 . 5$ , 0.75, 0.875, 1}, the batch size as 32, the weight decay as 0.0005, and the momentum as 0.9.
134
+
135
+ # 3.2 ANALYSIS OF WEIGHT PARTITION STRATEGIES
136
+
137
+ In our INQ, the first operation is weight partition whose result will directly affect the following group-wise quantization and re-training operations. Therefore, the second set of experiments is conducted to analyze two candidate strategies for weight partition. As mentioned in the previous section, we use pruning-inspired strategy for weight partition. Unlike random strategy in which all the weights have equal probability to fall into the two disjoint groups, pruning-inspired strategy considers that the weights with larger absolute values are more important than the smaller ones to form a low-precision base for the original CNN model. We use ResNet-18 as a test case to compare the performance of these two strategies. In the experiments, the parameter settings are completely the same as described in Section 3.1. We set 4 epochs for weight re-training. Table 2 summarizes the results of our INQ with 5-bit quantization. It can be seen that our INQ achieves top-1 error rate of $3 2 . 1 1 \%$ and top-5 error rate of $1 1 . 7 3 \%$ by using random partition. Comparatively, pruning-inspired partition brings $1 . 0 9 \%$ and $0 . 8 3 \%$ decrease in top-1 and top-5 error rates, respectively. Apparently, pruning-inspired partition is better than random partition, and this is the reason why we use it in this paper. For future works, weight partition based on quantization error could also be an option worth exploring.
138
+
139
+ Table 2: Comparison of two different strategies for weight partition on ResNet-18.
140
+
141
+ <table><tr><td>Strategy</td><td>Bit-width</td><td>Top-1 error</td><td>Top-5 error</td></tr><tr><td>Random partition</td><td>5</td><td>32.11%</td><td>11.73%</td></tr><tr><td>Pruning-inspired partition</td><td>5</td><td>31.02%</td><td>10.90%</td></tr></table>
142
+
143
+ # 3.3 THE TRADE-OFF BETWEEN EXPECTED BIT-WIDTH AND MODEL ACCURACY
144
+
145
+ The third set of experiments is performed to explore the limit of the expected bit-width under which our INQ can still achieve lossless network quantization. Similar to the second set of experiments, we also use ResNet-18 as a test case, and the parameter settings for the batch size, the weight decay and the momentum are completely the same. Finally, lower-precision models with 4-bit, 3-bit and even 2-bit ternary weights are generated for comparisons. As the expected bit-width goes down, the number of candidate quantum values will be decreased significantly, thus we shall increase the number of iterative steps accordingly for enhancing the accuracy of final low-precision model. Specifically, we set the accumulated portions of quantized weights at iterative steps as $\{ 0 . 3 , 0 . 5$ , 0.8, 0.9, 0.95, $1 \}$ , $\{ 0 . 2 , 0 . 4 , 0 . 6 , 0 . 7 , \bar { 0 } . 8 , 0 . 9 , 0 . 9 \bar { 5 } , 1 \}$ and $\{ 0 . 2 , 0 . 4 , 0 . 6 , 0 . 7 , 0 . 8 , \bar { 0 } . 8 5 , \bar { 0 } . 9 , 0 . 9 5 _ { \cdotp }$ , $0 . 9 7 5 , 1 \}$ for 4-bit, 3-bit and 2-bit ternary models, respectively. The required number of epochs also increases when the expected bit-width goes down, and it reaches 30 when training our 2-bit ternary model. Although our 4-bit model shows slightly decreased accuracy when compared with the 5-bit model, its accuracy is still better than that of the pre-trained full-precision model. Comparatively, even when the expected bit-width goes down to 3, our low-precision model shows only ${ \bar { 0 . 1 9 \% } }$ and
146
+
147
+ $0 . 3 3 \%$ losses in top-1 and top-5 recognition rates, respectively. As for our 2-bit ternary model, although it incurs $2 . 2 5 \%$ decrease in top-1 error rate and $1 . 5 6 \%$ decrease in top-5 error rate in comparison to the pre-trained full-precision reference, its accuracy is considerably better than stateof-the-art results reported for binary-weight network (BWN) (Rastegari et al., 2016) and ternary weight network (TWN) (Li & Liu, 2016). Detailed results are summarized in Table 3 and Table 4.
148
+
149
+ Table 3: Our INQ generates extremely low-precision (4-bit and 3-bit) models with improved or very similar accuracy compared with the full-precision ResNet-18 model.
150
+
151
+ <table><tr><td>Model</td><td>Bit-width</td><td>Top-1 error</td><td>Top-5 error</td></tr><tr><td>ResNet-18 ref</td><td>32</td><td>31.73%</td><td>11.31%</td></tr><tr><td>INQ</td><td>5</td><td>31.02%</td><td>10.90%</td></tr><tr><td>INQ</td><td>4</td><td>31.11%</td><td>10.99%</td></tr><tr><td>INQ</td><td>3</td><td>31.92%</td><td>11.64%</td></tr><tr><td>INQ</td><td>2 (ternary)</td><td>33.98%</td><td>12.87%</td></tr></table>
152
+
153
+ Table 4: Comparison of our 2-bit ternary model and some other binary or ternary models, including the BWN and the TWN approximations of ResNet-18.
154
+
155
+ <table><tr><td>Method</td><td>Bit-width</td><td>Top-1 error</td><td>Top-5 error</td></tr><tr><td>BWN(Rastegari et al., 2016)</td><td>1</td><td>39.20%</td><td>17.00%</td></tr><tr><td>TWN(Li &amp; Liu, 2016)</td><td>2 (ternary)</td><td>38.20%</td><td>15.80%</td></tr><tr><td>INQ (ours)</td><td>2 (ternary)</td><td>33.98%</td><td>12.87%</td></tr></table>
156
+
157
+ # 3.4 LOW-BIT DEEP COMPRESSION
158
+
159
+ In the literature, recently proposed deep compression method (Han et al., 2016) reports so far best results on network compression without loss of model accuracy. Therefore, the last set of experiments is conducted to explore the potential of our INQ for much better deep compression. Note that Han et al. (2016) is a hybrid network compression solution combining three different techniques, namely network pruning (Han et al., 2015), vector quantization (Gong et al., 2014) and Huffman coding. Taking AlexNet as an example, network pruning gets $9 \times$ compression, however this result is mainly obtained from the fully connected layers. Actually its compression performance on the convolutional layers is less than $3 \times$ (as can be seen in the Table 4 of Han et al. (2016)). Besides, network pruning is realized by separately performing pruning and re-training in an iterative way, which is very time-consuming. It will cost at least several weeks for compressing AlexNet. We solved this problem by our dynamic network surgery (DNS) method (Guo et al., 2016) which achieves about $7 \times$ speed-up in training and improves the performance of network pruning from $9 \times$ to $1 7 . 7 \times$ . In Han et al. (2016), after network pruning, vector quantization further improves compression ratio from $9 \times$ to $2 7 \times$ , and Huffman coding finally boosts compression ratio up to $3 5 \times$ . For fair comparison, we combine our proposed INQ and DNS, and compare the resulting method with Han et al. (2016). Detailed results are summarized in Table 5. When combing our proposed INQ and DNS, we achieve much better compression results compared with Han et al. (2016). Specifically, with 5-bit quantization, we can achieve $5 3 \times$ compression with slightly larger gains both in top-5 and top-1 recognition rates, yielding $5 1 . 4 3 \% / 9 6 . 3 0 \%$ absolute improvement in compression performance compared with full version/fair version (i.e., the combination of network pruning and vector quantization) of Han et al. (2016), respectively. Consistently better results have also obtained for our 4-bit and 3-bit models.
160
+
161
+ Besides, we also perform a set of experiments on AlexNet to compare the performance of our INQ and vector quantization (Gong et al., 2014). For fair comparison, re-training is also used to enhance the performance of vector quantization, and we set the number of cluster centers for all of 5 convolutional layers and 3 fully connect layers to 32 (i.e., 5-bit quantization). In the experiment, vector quantization incurs over $3 \%$ loss in model accuracy. When we change the number of cluster centers for convolutional layers from 32 to 128, it gets an accuracy loss of $0 . 9 8 \%$ . This is consistent with the results reported in (Gong et al., 2014). Comparatively, vector quantization is mainly proposed to compress the parameters in the fully connected layers of a pre-trained full-precision CNN model, while our INQ addresses all network layers simultaneously and has no accuracy loss for 5-bit and 4-bit quantization. Therefore, it is evident that our INQ is much better than vector quantization. Last but not least, the final weights for vector quantization (Gong et al., 2014), network pruning (Han et al., 2015) and deep compression (Han et al., 2016) are still floating-point values, but the final weights for our INQ are in the form of either powers of two or zero. The direct advantage of our INQ is that the original floating-point multiplication operations can be replaced by cheaper binary bit shift operations on dedicated hardware like FPGA.
162
+
163
+ Table 5: Comparison of the combination of our INQ and DNS, and deep compression method on AlexNet. Conv: Convolutional layer, FC: Fully connected layer, P: Pruning, Q: Quantization, H: Huffman coding.
164
+
165
+ <table><tr><td>Method</td><td>Bit-width(Conv/FC)</td><td>Compression ratio</td><td>Decrease in top-1/top5 error</td></tr><tr><td>Han et al. (2016) (P+Q)</td><td>8/5</td><td>27×</td><td>0.00%/0.03%</td></tr><tr><td>Han et al. (2016) (P+Q+H)</td><td>8/5</td><td>35×</td><td>0.00%/0.03%</td></tr><tr><td>Han et al. (2016) (P+Q+H)</td><td>8/4</td><td>1</td><td>-0.01%/0.00%</td></tr><tr><td>Our method (P+Q)</td><td>5/5</td><td>53×</td><td>0.08%/0.03%</td></tr><tr><td>Han et al. (2016) (P+Q+H)</td><td>4/2</td><td>1</td><td>-1.99%/-2.60%</td></tr><tr><td>Our method (P+Q)</td><td>4/4</td><td>71×</td><td>-0.52%/-0.20%</td></tr><tr><td>Our method (P+Q)</td><td>3/3</td><td>89×</td><td>-1.47 %/-0.96%</td></tr></table>
166
+
167
+ # 4 CONCLUSIONS
168
+
169
+ In this paper, we present INQ, a new network quantization method, to address the problem of how to convert any pre-trained full-precision (i.e., 32-bit floating-point) CNN model into a lossless lowprecision version whose weights are constrained to be either powers of two or zero. Unlike existing methods which usually quantize all the network weights simultaneously, INQ is a more compact quantization framework. It incorporates three interdependent operations: weight partition, groupwise quantization and re-training. Weight partition splits the weights in each layer of a pre-trained full-precision CNN model into two disjoint groups which play complementary roles in INQ. The weights in the first group is directly quantized by a variable-length encoding method, forming a low-precision base for the original CNN model. The weights in the other group are re-trained while keeping all the quantized weights fixed, compensating for the accuracy loss from network quantization. More importantly, the operations of weight partition, group-wise quantization and re-training are repeated on the latest re-trained weight group in an iterative manner until all the weights are quantized, acting as an incremental network quantization and accuracy enhancement procedure. On the ImageNet large scale classification task, we conduct extensive experiments and show that our quantized CNN models with 5-bit, 4-bit, 3-bit and even 2-bit ternary weights have improved or at least comparable accuracy against their full-precision baselines, including AlexNet, VGG-16, GoogleNet and ResNets. As for future works, we plan to extend incremental idea behind INQ from low-precision weights to low-precision activations and low-precision gradients (we have actually already made some good progress on it, as shown in our supplementary materials). We will also investigate computation and power efficiency by implementing our low-precision CNN models on hardware platforms.
170
+
171
+ # REFERENCES
172
+
173
+ Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and L. Yuille Alan. Semantic image segmentation with deep convolutional nets and fully connected crfs. In ICLR, 2015a.
174
+
175
+ Wenlin Chen, James T. Wilson, Stephen Tyree, Kilian Q. Weinberger, and Yixin Chen. Compressing neural networks with the hashing trick. In ICML, 2015b.
176
+
177
+ Matthieu Courbariaux, Bengio Yoshua, and David Jean-Pierre. Binaryconnect: Training deep neural networks with binary weights during propagations. In NIPS, 2015.
178
+
179
+ Matthieu Courbariaux, Itay Hubara, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks: Training deep neural networks with weights and activations constrained to $+ 1$ or -1. arXiv preprint arXiv:1602.02830v3, 2016.
180
+
181
+ Ross Girshick. Fast r-cnn. In ICCV, 2015.
182
+
183
+ Yunchao Gong, Liu Liu, Ming Yang, and Lubomir Bourdev. Compressing deep concolutional networks using vector quantization. arXiv preprint arXiv:1412.6115v1, 2014.
184
+
185
+ Yiwen Guo, Anbang Yao, and Yurong Chen. Dynamic network surgery for efficient dnns. In NIPS, 2016.
186
+
187
+ Suyog Gupta, Ankur Agrawal, Kailash Gopalakrishnan, and Pritish Narayanan. Deep learning with limited numerical precision. In ICML, 2015.
188
+
189
+ Song Han, Jeff Pool, John Tran, and William J. Dally. Learning both weights and connections for efficient neural networks. In NIPS, 2015.
190
+
191
+ Song Han, Jeff Pool, John Tran, and William J. Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. In ICLR, 2016.
192
+
193
+ Kaiming He, Zhang Xiangyu, Ren Shaoqing, and Sun Jian. Deep residual learning for image recognition. In CVPR, 2016.
194
+
195
+ Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Quantized neural networks: Training neural networks with low precision weights and activations. arXiv preprint arXiv:1609.07061v1, 2016.
196
+
197
+ Alex Krizhevsky, Sutskever Ilya, and E. Hinton Geoffrey. Imagenet classification with deep convolutional neural networks. In NIPS, 2012.
198
+
199
+ Yann LeCun, Bottou Leon, Yoshua Bengio, and Patrick Hadner. Gradient-based learning applied to documentrecognition. In NIPS, 1998.
200
+
201
+ Fengfu Li and Bin Liu. Ternary weight networks. arXiv preprint arXiv:1605.04711v1, 2016.
202
+
203
+ Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In CVPR, 2015.
204
+
205
+ Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. arXiv preprint arXiv:1603.05279v4, 2016.
206
+
207
+ Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NIPS, 2015.
208
+
209
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
210
+
211
+ Daniel Soudry, Itay Hubara, and Ron Meir. Expectation backpropagation: Parameter-free training of multilayer neural networks with continuous or discrete weights. In NIPS, 2014.
212
+
213
+ Yi Sun, Xiaogang Wang, and Xiaoou Tang. Deep learning face representation from predicting 10,000 classes. In CVPR, 2014.
214
+
215
+ Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In CVPR, 2015.
216
+
217
+ Christian Szegedy, Sergey Ioffe, and Vincent Vanhoucke. Inception-v4, inception-resnet and the impact of residual connections on learning. arXiv preprint arXiv:1602.07261v1, 2016.
218
+
219
+ Yaniv Taigman, Ming Yang, Marc’ Aurelio Ranzato, and Lior Wolf. Deepface: Closing the gap to human-level performance in face verification. In CVPR, 2014.
220
+
221
+ Vincent Vanhoucke, Andrew Senior, and Mark Z. Mao. Improving the speed of neural networks on cpus. In Deep Learning and Unsupervised Feature Learning Workshop, NIPS, 2011.
222
+
223
+ Shuchang Zhou, Zekun Ni, Xinyu Zhou, He Wen, Yuxin Wu, and Yuheng Zou. Dorefa-net: Training low bitwidth convolutional neural networks with low bitwidth gradients. arXiv preprint arXiv:1605.04711v1, 2016.
224
+
225
+ # A APPENDIX 1: STATISTICAL ANALYSIS OF THE QUANTIZED WEIGHTS
226
+
227
+ Taking our 5-bit AlexNet model as an example, we analyze the distribution of the quantized weights. Detailed statistical results are summarized in Table 6. We can find: (1) in the $1 ^ { s t }$ and $2 ^ { n d }$ convolutional layers, the values of $\{ - 2 ^ { - 6 } , - 2 ^ { - 5 } , - 2 ^ { - 4 } , 2 ^ { - 6 } , 2 ^ { - 5 } , 2 ^ { - 4 } \}$ and $\{ - 2 ^ { - 8 } , - 2 ^ { - 7 } , - 2 ^ { - 6 } , - 2 ^ { - 5 }$ , $0 , 2 ^ { - 8 } , \dot { 2 } ^ { - 7 } , 2 ^ { - 6 } , 2 ^ { - 5 } \}$ occupy over $60 \%$ and $94 \%$ of all quantized weights, respectively; (2) the distributions of the quantized weights in the $3 ^ { r d }$ , $4 ^ { t h }$ and $5 ^ { t h }$ convolutional layers are similar to that of the $2 ^ { n d }$ convolutional layer, and more weights are quantized into zero in the $2 ^ { n d }$ , $3 ^ { r d }$ , $4 ^ { t h }$ and $5 ^ { t h }$ convolutional layers compared with the $1 ^ { s t }$ convolutional layer; (3) in the $1 ^ { s t }$ fully connected layer, the values of $\left\{ - 2 ^ { - 1 0 } , \ - 2 ^ { - 9 } , - 2 ^ { - 8 } , - 2 ^ { - 7 } , 0 , 2 ^ { - 1 0 } , 2 ^ { - 9 } , 2 ^ { - 8 } , 2 ^ { - 7 } \right\}$ occupy about $98 \%$ of all quantized weights, and similar results can be seen for the $2 ^ { n d }$ fully connected layer; (4) generally, the distributions of the quantized weights in the convolutional layers are usually more scattered compared with the fully connected layers. This may be partially the reason why it is much easier to get good compression performance on fully connected layers in comparison to convolutional layers, when using methods such as network hashing (Chen et al., 2015b) and vector quantization (Gong et al., 2014); (5) for 5-bit AlexNet model, the required bit-width for each layer is actually 4 but not 5.
228
+
229
+ Table 6: A statistical distribution of the quantized weights in our 5-bit AlexNet model.
230
+
231
+ <table><tr><td>Weight</td><td>Conv1</td><td>Conv2</td><td>Conv3</td><td>Conv4</td><td>Conv5</td><td>FC6</td><td>FC7</td><td>FC8</td></tr><tr><td>-2-10</td><td></td><td></td><td>=</td><td>=</td><td></td><td>8.95%</td><td>6.37%</td><td>3.86%</td></tr><tr><td>-2-9</td><td>=</td><td></td><td>=</td><td></td><td></td><td>12.29%</td><td>9.58%</td><td>6.19%</td></tr><tr><td>-2-8</td><td>5.04%</td><td>10.55%</td><td>11.58%</td><td>10.09%</td><td>9.88%</td><td>16.48%</td><td>16.13%</td><td>12.90%</td></tr><tr><td>-2-7</td><td>6.56%</td><td>12.09%</td><td>14.34%</td><td>14.24%</td><td>14.68%</td><td>10.84%</td><td>17.87%</td><td>19.51%</td></tr><tr><td>-2-6</td><td>9.22%</td><td>13.08%</td><td>15.26%</td><td>18.49%</td><td>20.66%</td><td>0.79%</td><td>3.43%</td><td>11.09%</td></tr><tr><td>-2-5</td><td>10.52%</td><td>8.73%</td><td>5.92%</td><td>7.77%</td><td>9.79%</td><td>0.002%</td><td>0.004%</td><td>0.40%</td></tr><tr><td>-2-4</td><td>9.75%</td><td>2.70%</td><td>0.49%</td><td>0.38%</td><td>0.55%</td><td>1</td><td>1</td><td>1</td></tr><tr><td>-2-3</td><td>4.61%</td><td>0.39%</td><td>0.02%</td><td>0.01%</td><td>0.004%</td><td></td><td></td><td></td></tr><tr><td>-2-2</td><td>0.67%</td><td>0.01%</td><td>1e-4%</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>0</td><td>5.51%</td><td>11.30%</td><td>12.24%</td><td>9.70%</td><td>8.97%</td><td>8.86%</td><td>6.17%</td><td>3.62%</td></tr><tr><td>2-10</td><td></td><td></td><td></td><td></td><td></td><td>8.30%</td><td>5.81%</td><td>3.40%</td></tr><tr><td>2-9</td><td>1</td><td></td><td></td><td></td><td></td><td>10.51%</td><td>7.84%</td><td>4.69%</td></tr><tr><td>2-8</td><td>5.20%</td><td>9.70%</td><td>10.44%</td><td>8.60%</td><td>7.69%</td><td>12.91%</td><td>11.30%</td><td>8.08%</td></tr><tr><td>2-7</td><td>6.79%</td><td>11.01%</td><td>11.66%</td><td>10.33%</td><td>8.95%</td><td>8.95%</td><td>11.90%</td><td>10.94%</td></tr><tr><td>2-6</td><td>9.99%</td><td>11.05%</td><td>11.86%</td><td>12.25%</td><td>10.67%</td><td>1.12%</td><td>3.54%</td><td>12.56%</td></tr><tr><td>2-5</td><td>11.15%</td><td>6.57%</td><td>5.22%</td><td>6.81%</td><td>6.37%</td><td>0.01%</td><td>0.06%</td><td>2.75%</td></tr><tr><td>2-4</td><td>10.14%</td><td>2.26%</td><td>0.86%</td><td>1.24%</td><td>1.62%</td><td>1e-5%</td><td>2e-5%</td><td>0.01%</td></tr><tr><td>2-3</td><td>4.26%</td><td>0.53%</td><td>0.09%</td><td>0.08%</td><td>0.16%</td><td>-</td><td>=</td><td></td></tr><tr><td>2-2</td><td>0.60%</td><td>0.05%</td><td>0.01%</td><td>0.003%</td><td>0.01%</td><td></td><td></td><td></td></tr><tr><td>2-1</td><td>1</td><td>3e-4%</td><td>2e-4%</td><td>3e-4%</td><td>1</td><td>1</td><td>=</td><td></td></tr><tr><td>Total</td><td>100%</td><td>100%</td><td>100%</td><td>100%</td><td>100%</td><td>100%</td><td>100%</td><td>1</td></tr><tr><td>Bit-width</td><td>4</td><td>4</td><td>4</td><td>4</td><td>4</td><td>4</td><td>4</td><td>100% 4</td></tr></table>
232
+
233
+ # B APPENDIX 2: LOSSLESS CNNS WITH LOW-PRECISION WEIGHTS AND LOW-PRECISION ACTIVATIONS
234
+
235
+ Table 7: Comparison of our VGG-16 model with 5-bit weights and 4-bit activations, and the pretrained reference with 32-bit floating-point weights and 32-bit float-point activations.
236
+
237
+ <table><tr><td>Network</td><td>Bit-width for weight/activation</td><td>Top-1 error</td><td>Top-5 error</td><td>Decrease in top-1/top-5 error</td></tr><tr><td>VGG-16 ref</td><td>32/32</td><td>31.46%</td><td>11.35%</td><td></td></tr><tr><td>VGG-16</td><td>5/4</td><td>29.82%</td><td>10.19%</td><td>1.64%/1.16%</td></tr></table>
238
+
239
+ Recently, we have made some good progress on developing our INQ for lossless CNNs with both low-precision weights and low-precision activations. According to the results summarized in Table 7, it can be seen that our VGG-16 model with 5-bit weights and 4-bit activations shows improved top-5 and top-1 recognition rates in comparison to the pre-trained reference with 32-bit floating-point weights and 32-bit floating-point activations. To the best of our knowledge, this should be the best results reported on VGG-16 architecture so far.
parse/train/HyQJ-mclg/HyQJ-mclg_content_list.json ADDED
@@ -0,0 +1,1254 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "INCREMENTAL NETWORK QUANTIZATION: TOWARDS LOSSLESS CNNS WITH LOW-PRECISION WEIGHTS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Aojun Zhou∗, Anbang Yao, Yiwen Guo, Lin Xu, and Yurong Chen \nIntel Labs China \n{aojun.zhou, anbang.yao, yiwen.guo, lin.x.xu, yurong.chen}@intel.com ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 848,
21
+ 213
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 250,
32
+ 544,
33
+ 263
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "This paper presents incremental network quantization (INQ), a novel method, targeting to efficiently convert any pre-trained full-precision convolutional neural network (CNN) model into a low-precision version whose weights are constrained to be either powers of two or zero. Unlike existing methods which are struggled in noticeable accuracy loss, our INQ has the potential to resolve this issue, as benefiting from two innovations. On one hand, we introduce three interdependent operations, namely weight partition, group-wise quantization and re-training. A well-proven measure is employed to divide the weights in each layer of a pretrained CNN model into two disjoint groups. The weights in the first group are responsible to form a low-precision base, thus they are quantized by a variablelength encoding method. The weights in the other group are responsible to compensate for the accuracy loss from the quantization, thus they are the ones to be re-trained. On the other hand, these three operations are repeated on the latest re-trained group in an iterative manner until all the weights are converted into low-precision ones, acting as an incremental network quantization and accuracy enhancement procedure. Extensive experiments on the ImageNet classification task using almost all known deep CNN architectures including AlexNet, VGG-16, GoogleNet and ResNets well testify the efficacy of the proposed method. Specifically, at 5-bit quantization (a variable-length encoding: 1 bit for representing zero value, and the remaining 4 bits represent at most 16 different values for the powers of two) 1, our models have improved accuracy than the 32-bit floating-point references. Taking ResNet-18 as an example, we further show that our quantized models with 4-bit, 3-bit and 2-bit ternary weights have improved or very similar accuracy against its 32-bit floating-point baseline. Besides, impressive results with the combination of network pruning and INQ are also reported. We believe that our method sheds new insights on how to make deep CNNs to be applicable on mobile or embedded devices. The code will be made publicly available. ",
40
+ "bbox": [
41
+ 232,
42
+ 284,
43
+ 764,
44
+ 656
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 686,
55
+ 334,
56
+ 702
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Deep convolutional neural networks (CNNs) have demonstrated record breaking results on a variety of computer vision tasks such as image classification (Krizhevsky et al., 2012; Simonyan & Zisserman, 2015), face recognition (Taigman et al., 2014; Sun et al., 2014), semantic segmentation (Long et al., 2015; Chen et al., 2015a) and object detection (Girshick, 2015; Ren et al., 2015). Regardless of the availability of significantly improved training resources such as abundant annotated data, powerful computational platforms and diverse training frameworks, the promising results of deep CNNs are mainly attributed to the large number of learnable parameters, ranging from tens of millions to even hundreds of millions. Recent progress further shows clear evidence that CNNs could easily enjoy the accuracy gain from the increased network depth and width (He et al., 2016; Szegedy et al., 2015; 2016). However, this in turn lays heavy burdens on the memory and other computational resources. For instance, ResNet-152, a specific instance of the latest residual network architecture wining ImageNet classification challenge in 2015, has a model size of about 230 MB and needs to perform about 11.3 billion FLOPs to classify a $2 2 4 \\times 2 2 4$ image crop. Therefore, it is very challenging to deploy deep CNNs on the devices with limited computation and power budgets. ",
63
+ "bbox": [
64
+ 174,
65
+ 719,
66
+ 825,
67
+ 858
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "",
74
+ "bbox": [
75
+ 174,
76
+ 103,
77
+ 825,
78
+ 172
79
+ ],
80
+ "page_idx": 1
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Substantial efforts have been made to the speed-up and compression on CNNs during training, feedforward test or both of them. Among existing methods, the category of network quantization methods attracts great attention from researches and developers. Some network quantization works try to compress pre-trained full-precision CNN models directly. Gong et al. (2014) address the storage problem of AlexNet (Krizhevsky et al., 2012) with vector quantization techniques. By replacing the weights in each of the three fully connected layers with respective floating-point centroid values obtained from the clustering, they can get over $2 0 \\times$ model compression at about $1 \\%$ loss in top-5 recognition rate. HashedNet (Chen et al., 2015b) uses a hash function to randomly map pre-trained weights into hash buckets, and all the weights in the same hash bucket are constrained to share a single floating-point value. In HashedNet, only the fully connected layers of several shallow CNN models are considered. For better compression, Han et al. (2016) present deep compression method which combines the pruning (Han et al., 2015), vector quantization and Huffman coding, and reduce the model storage by $3 5 \\times$ on AlexNet and $4 9 \\times$ on VGG-16 (Simonyan & Zisserman, 2015). Vanhoucke et al. (2011) use an SSE 8-bit fixed-point implementation to improve the computation of neural networks on the modern Intel $\\mathbf { \\boldsymbol { x } } 8 6$ CPUs in feed-forward test, yielding $3 \\times$ speed-up over an optimized floating-point baseline. Training CNNs by substituting the 32-bit floating-point representation with the 16-bit fixed-point representation has also been explored in Gupta et al. (2015). Other seminal works attempt to restrict CNNs into low-precision versions during training phase. Soudry et al. (2014) propose expectation backpropagation (EBP) to estimate the posterior distribution of deterministic network weights. With EBP, the network weights can be constrained to $+ 1$ and $^ { - 1 }$ during feed-forward test in a probabilistic way. BinaryConnect (Courbariaux et al., 2015) further extends the idea behind EBP to binarize network weights during training phase directly. It has two versions of network weights: floating-point and binary. The floating-point version is used as the reference for weight binarization. BinaryConnect achieves state-of-the-art accuracy using shallow CNNs for small datasets such as MNIST (LeCun et al., 1998) and CIFAR-10. Later on, a series of efforts have been invested to train CNNs with low-precision weights, low-precision activations and even low-precision gradients, including but not limited to BinaryNet (Courbariaux et al., 2016), XNOR-Net (Rastegari et al., 2016), ternary weight network (TWN) (Li & Liu, 2016), DoReFa-Net (Zhou et al., 2016) and quantized neural network (QNN) (Hubara et al., 2016). ",
85
+ "bbox": [
86
+ 174,
87
+ 180,
88
+ 825,
89
+ 582
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Despite these tremendous advances, CNN quantization still remains an open problem due to two critical issues which have not been well resolved yet, especially under scenarios of using low-precision weights for quantization. The first issue is the non-negligible accuracy loss for CNN quantization methods, and the other issue is the increased number of training iterations for ensuring convergence. In this paper, we attempt to address these two issues by presenting a novel incremental network quantization (INQ) method. ",
96
+ "bbox": [
97
+ 174,
98
+ 589,
99
+ 825,
100
+ 672
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "In our INQ, there is no assumption on the CNN architecture, and its basic goal is to efficiently convert any pre-trained full-precision (i.e., 32-bit floating-point) CNN model into a low-precision version whose weights are constrained to be either powers of two or zero. The advantage of such kind of low-precision models is that the original floating-point multiplication operations can be replaced by cheaper binary bit shift operations on dedicated hardware like FPGA. We noticed that most existing network quantization methods adopt a global strategy in which all the weights are simultaneously converted to low-precision ones (that are usually in the floating-point types). That is, they have not considered the different importance of network weights, leaving the room to retain network accuracy limited. In sharp contrast to existing methods, our INQ makes a very careful handling for the model accuracy drop from network quantization. To be more specific, it incorporates three interdependent operations: weight partition, group-wise quantization and re-training. Weight partition uses a pruning-inspired measure (Han et al., 2015; Guo et al., 2016) to divide the weights in each layer of a pre-trained full-precision CNN model into two disjoint groups which play complementary roles in our INQ. The weights in the first group are quantized to be either powers of two or zero by a variable-length encoding method, forming a low-precision base for the original model. The weights in the other group are re-trained while keeping the quantized weights fixed, compensating for the accuracy loss resulted from the quantization. Furthermore, these three operations are repeated on the latest re-trained weight group in an iterative manner until all the weights are quantized, acting as an incremental network quantization and accuracy enhancement procedure (as illustrated in Figure 1). ",
107
+ "bbox": [
108
+ 174,
109
+ 680,
110
+ 825,
111
+ 916
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/450f6613f97d9601a580c5c41c8086953fe819a0c5d0d4e38305e967fdbf1359.jpg",
118
+ "image_caption": [
119
+ "Figure 1: An overview of our incremental network quantization method. (a) Pre-trained fullprecision model used as a reference. (b) Model update with three proposed operations: weight partition, group-wise quantization (green connections) and re-training (blue connections). (c) Final low-precision model with all the weights constrained to be either powers of two or zero. In the figure, operation (1) represents a single run of (b), and operation (2) denotes the procedure of repeating operation (1) on the latest re-trained weight group until all the non-zero weights are quantized. Our method does not lead to accuracy loss when using 5-bit, 4-bit and even 3-bit approximations in network quantization. For better visualization, here we just use a 3-layer fully connected network as an illustrative example, and the newly re-trained weights are divided into two disjoint groups of the same size at each run of operation (1) except the last run which only performs quantization on the re-trained floating-point weights occupying $12 . 5 \\%$ of the model weights. "
120
+ ],
121
+ "image_footnote": [],
122
+ "bbox": [
123
+ 173,
124
+ 99,
125
+ 826,
126
+ 217
127
+ ],
128
+ "page_idx": 2
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "",
133
+ "bbox": [
134
+ 176,
135
+ 420,
136
+ 821,
137
+ 449
138
+ ],
139
+ "page_idx": 2
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "The main insight of our INQ is that a compact combination of the proposed weight partition, groupwise quantization and re-training operations has the potential to get a lossless low-precision CNN model from any full-precision reference. We conduct extensive experiments on the ImageNet large scale classification task using almost all known deep CNN architectures to validate the effectiveness of our method. We show that: (1) For AlexNet, VGG-16, GoogleNet and ResNets with 5-bit quantization, INQ achieves improved accuracy in comparison with their respective full-precision baselines. The absolute top-1 accuracy gain ranges from ${ \\bf 0 . 1 3 \\% }$ to $2 . 2 8 \\%$ , and the absolute top-5 accuracy gain is in the range of $0 . 2 3 \\%$ to $1 . 6 5 \\%$ . (2) INQ has the property of easy convergence in training. In general, re-training with less than 8 epochs could consistently generate a lossless model with 5-bit weights in the experiments. (3) Taking ResNet-18 as an example, our quantized models with 4-bit, 3-bit and 2-bit ternary weights also have improved or very similar accuracy compared with its 32-bit floating-point baseline. (4) Taking AlexNet as an example, the combination of our network pruning and INQ outperforms deep compression method (Han et al., 2016) with significant margins. ",
144
+ "bbox": [
145
+ 174,
146
+ 455,
147
+ 825,
148
+ 650
149
+ ],
150
+ "page_idx": 2
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 INCREMENTAL NETWORK QUANTIZATION ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 174,
158
+ 674,
159
+ 555,
160
+ 690
161
+ ],
162
+ "page_idx": 2
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "In this section, we clarify the insight of our INQ, describe its key components, and detail its implementation. ",
167
+ "bbox": [
168
+ 176,
169
+ 708,
170
+ 821,
171
+ 736
172
+ ],
173
+ "page_idx": 2
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "2.1 WEIGHT QUANTIZATION WITH VARIABLE-LENGTH ENCODING ",
178
+ "text_level": 1,
179
+ "bbox": [
180
+ 176,
181
+ 757,
182
+ 648,
183
+ 771
184
+ ],
185
+ "page_idx": 2
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "Suppose a pre-trained full-precision (i.e., 32-bit floating-point) CNN model can be represented by $\\{ \\mathbf { W } _ { l } : 1 \\le l \\le L \\}$ , where $\\mathbf { W } _ { l }$ denotes the weight set of the ${ \\bf \\chi } _ { l ^ { t h } }$ layer, and $L$ denotes the number of learnable layers in the model. To simplify the explanation, we only consider convolutional layers and fully connected layers. For CNN models like AlexNet, VGG-16, GoogleNet and ResNets as tested in this paper, $\\mathbf { W } _ { l }$ can be a $4 D$ tensor for the convolutional layer, or a $2 D$ matrix for the fully connected layer. For simplicity, here the dimension difference is not considered in the expression. Given a pre-trained full-precision CNN model, the main goal of our INQ is to convert all 32-bit floating-point weights to be either powers of two or zero without loss of model accuracy. Besides, we also attempt to explore the limit of the expected bit-width under the premise of guaranteeing lossless network quantization. Here, we start with our basic network quantization method on how to convert $\\mathbf { W } _ { l }$ to be a low-precision version $\\widehat { \\mathbf { W } } _ { l }$ , and each of its entries is chosen from ",
190
+ "bbox": [
191
+ 174,
192
+ 784,
193
+ 825,
194
+ 924
195
+ ],
196
+ "page_idx": 2
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "",
201
+ "bbox": [
202
+ 173,
203
+ 101,
204
+ 723,
205
+ 118
206
+ ],
207
+ "page_idx": 3
208
+ },
209
+ {
210
+ "type": "equation",
211
+ "img_path": "images/063d9025c44a7c383e718512d7decf01b18a85bd4520b478c1affe7741370588.jpg",
212
+ "text": "$$\n\\mathbf { P } _ { l } = \\{ \\pm 2 ^ { n _ { 1 } } , \\cdot \\cdot \\cdot , \\pm 2 ^ { n _ { 2 } } , 0 \\} ,\n$$",
213
+ "text_format": "latex",
214
+ "bbox": [
215
+ 401,
216
+ 126,
217
+ 593,
218
+ 143
219
+ ],
220
+ "page_idx": 3
221
+ },
222
+ {
223
+ "type": "text",
224
+ "text": "where $n _ { 1 }$ and $n _ { 2 }$ are two integer numbers, and they satisfy $n _ { 2 } \\leq n _ { 1 }$ . Mathematically, $n _ { 1 }$ and $n _ { 2 }$ help to bound ${ \\bf P } _ { l }$ in the sense that its non-zero elements are constrained to be in the range of either $[ - 2 ^ { n _ { 1 } } , - 2 ^ { n _ { 2 } } ]$ or $[ 2 ^ { n _ { 2 } } , 2 ^ { n _ { 1 } } ]$ . That is, network weights with absolute values smaller than $2 ^ { n _ { 2 } }$ will be pruned away (i.e., set to zero) in the final low-precision model. Obviously, the problem is how to determine $n _ { 1 }$ and $n _ { 2 }$ . In our INQ, the expected bit-width $b$ for storing the indices in ${ \\bf P } _ { l }$ is set beforehand, thus the only hyper-parameter shall be determined is $n _ { 1 }$ because $n _ { 2 }$ can be naturally computed once $b$ and $n _ { 1 }$ are available. Here, $n _ { 1 }$ is calculated by using a tricky yet practically effective formula as ",
225
+ "bbox": [
226
+ 173,
227
+ 148,
228
+ 825,
229
+ 260
230
+ ],
231
+ "page_idx": 3
232
+ },
233
+ {
234
+ "type": "equation",
235
+ "img_path": "images/a74c241828b54be419125e3da1b0152e0dcce20d6436b884dad81f09a6d2dd39.jpg",
236
+ "text": "$$\nn _ { 1 } = \\mathrm { { f l o o r } ( l o g _ { 2 } ( 4 { s / 3 } ) ) , }\n$$",
237
+ "text_format": "latex",
238
+ "bbox": [
239
+ 415,
240
+ 258,
241
+ 580,
242
+ 276
243
+ ],
244
+ "page_idx": 3
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "where $\\operatorname { f l o o r } ( \\cdot )$ indicates the round down operation and $s$ is calculated by using ",
249
+ "bbox": [
250
+ 176,
251
+ 280,
252
+ 687,
253
+ 295
254
+ ],
255
+ "page_idx": 3
256
+ },
257
+ {
258
+ "type": "equation",
259
+ "img_path": "images/41afd528d11c405728ff4d873f9b8cf19a4c359ff0b1e365eb31b37bd57d4c6c.jpg",
260
+ "text": "$$\ns = \\operatorname* { m a x } ( \\operatorname { a b s } ( \\mathbf { W } _ { l } ) ) ,\n$$",
261
+ "text_format": "latex",
262
+ "bbox": [
263
+ 428,
264
+ 301,
265
+ 568,
266
+ 319
267
+ ],
268
+ "page_idx": 3
269
+ },
270
+ {
271
+ "type": "text",
272
+ "text": "where $\\mathrm { a b s } ( \\cdot )$ is an element-wise operation and $\\operatorname* { m a x } ( { \\mathord { \\cdot } } )$ outputs the largest element of its input. In fact, Equation (2) helps to match the rounding power of 2 for $s$ , and it could be easily implemented in practical programming. After $n _ { 1 }$ is obtained, $n _ { 2 }$ can be naturally determined as $n _ { 2 } = n _ { 1 } + 1 -$ $2 ^ { ( b - 1 ) } / 2$ . For instance, if $b = 3$ and $n _ { 1 } = - 1$ , it is easy to get $n _ { 2 } = - 2$ . ",
273
+ "bbox": [
274
+ 174,
275
+ 325,
276
+ 825,
277
+ 383
278
+ ],
279
+ "page_idx": 3
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "Once $\\mathbf { P } _ { l }$ is determined, we further use the ladder of powers to convert every entry of $\\mathbf { W } _ { l }$ into a low-precision one by using ",
284
+ "bbox": [
285
+ 171,
286
+ 390,
287
+ 825,
288
+ 419
289
+ ],
290
+ "page_idx": 3
291
+ },
292
+ {
293
+ "type": "equation",
294
+ "img_path": "images/ae159406671e2bfaa47936d645ee9bd5fb2d14adf82c95388f8bf528ca105806.jpg",
295
+ "text": "$$\n\\widehat { \\mathbf { W } } _ { l } ( i , j ) = \\left\\{ \\begin{array} { l l } { \\beta \\mathrm { s g n } ( \\mathbf { W } _ { l } ( i , j ) ) } & { \\mathrm { i f } ( \\alpha + \\beta ) / 2 \\leq \\mathrm { a b s } ( \\mathbf { W } _ { l } ( i , j ) ) < 3 \\beta / 2 } \\\\ { 0 } & { \\mathrm { o t h e r w i s e } , } \\end{array} \\right.\n$$",
296
+ "text_format": "latex",
297
+ "bbox": [
298
+ 261,
299
+ 426,
300
+ 735,
301
+ 462
302
+ ],
303
+ "page_idx": 3
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "where $\\alpha$ and $\\beta$ are two adjacent elements in the sorted ${ \\bf P } _ { l }$ , making the above equation as a numerical rounding to the quantum values. It should be emphasized that factor $4 / 3$ in Equation (2) is set to make sure that all the elements in ${ \\bf P } _ { l }$ correspond with the quantization rule defined in Equation (4). In other words, factor $4 / 3$ in Equation (2) highly correlates with factor $3 / 2$ in Equation (4). ",
308
+ "bbox": [
309
+ 174,
310
+ 468,
311
+ 825,
312
+ 525
313
+ ],
314
+ "page_idx": 3
315
+ },
316
+ {
317
+ "type": "text",
318
+ "text": "Here, an important thing we want to clarify is the definition of the expected bit-width $b$ . Taking 5-bit quantization as an example, since zero value cannot be written as the power of two, we use 1 bit to represent zero value, and the remaining 4 bits to represent at most 16 different values for the powers of two. That is, the number of candidate quantum values is at most $2 ^ { b - 1 } + 1$ , so our quantization method actually adopts a variable-length encoding scheme. It is clear that the quantization described above is performed in a linear scale. An alternative solution is to perform the quantization in the log scale. Although it may also be effective, it should be a little bit more difficult in implementation and may cause some extra computational overhead in comparison to our method. ",
319
+ "bbox": [
320
+ 174,
321
+ 531,
322
+ 825,
323
+ 643
324
+ ],
325
+ "page_idx": 3
326
+ },
327
+ {
328
+ "type": "text",
329
+ "text": "2.2 INCREMENTAL QUANTIZATION STRATEGY ",
330
+ "text_level": 1,
331
+ "bbox": [
332
+ 174,
333
+ 660,
334
+ 508,
335
+ 674
336
+ ],
337
+ "page_idx": 3
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "We can naturally use the above described method to quantize any pre-trained full-precision CNN model. However, noticeable accuracy loss appeared in the experiments when using small bit-width values (e.g., 5-bit, 4-bit, 3-bit and 2-bit). ",
342
+ "bbox": [
343
+ 174,
344
+ 686,
345
+ 825,
346
+ 728
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "In the literature, there are many existing network quantization works such as HashedNet (Chen et al., 2015b), vector quantization (Gong et al., 2014), fixed-point representation (Vanhoucke et al., 2011; Gupta et al., 2015), BinaryConnect (Courbariaux et al., 2015), BinaryNet (Courbariaux et al., 2016), XNOR-Net (Rastegari et al., 2016), TWN (Li & Liu, 2016), DoReFa-Net (Zhou et al., 2016) and QNN (Hubara et al., 2016). Similar to our basic network quantization method, they also suffer from non-negligible accuracy loss on deep CNNs, especially when being applied on the ImageNet large scale classification dataset. For all these methods, a common fact is that they adopt a global strategy in which all the weights are simultaneously converted into low-precision ones, which in turn causes accuracy loss. Compared with the methods focusing on the pre-trained models, accuracy loss becomes worse for the methods such as XNOR-Net, TWN, DoReFa-Net and QNN which intend to train low-precision CNNs from scratch. ",
353
+ "bbox": [
354
+ 174,
355
+ 734,
356
+ 825,
357
+ 888
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "Recall that our main goal is to achieve lossless low-precision quantization for any pre-trained fullprecision CNN model with no assumption on its architecture. To this end, our INQ makes a special handling of the strategy for suppressing resulting quantization loss in model accuracy. We are partially inspired by the latest progress in network pruning (Han et al., 2015; Guo et al., 2016). In these methods, the accuracy loss from removing less important network weights of a pre-trained neural network model could be well compensated by following re-training steps. Therefore, we conjecture that the nature of changing network weight importance is critical to achieve lossless network quantization. ",
364
+ "bbox": [
365
+ 173,
366
+ 895,
367
+ 821,
368
+ 924
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "image",
374
+ "img_path": "images/2dc0441050f3b20ced1e13c4a46fed6509dbb2251f6016d5491c6f7ceef84095.jpg",
375
+ "image_caption": [
376
+ "Figure 2: Result illustrations. First row: results from the $1 ^ { s t }$ iteration of the proposed three operations. The top left cube illustrates weight partition operation generating two disjoint groups, the middle image illustrates the quantization operation on the first weight group (green cells), and the top right cube illustrates the re-training operation on the second weight group (light blue cells). Second row: results from the $2 ^ { n d }$ , $3 ^ { r d }$ and $\\dot { 4 } ^ { t h }$ iterations of the INQ. In the figure, the accumulated portion of the weights which have been quantized undergoes from $5 0 \\% { } 7 5 \\% { } 8 7 . 5 \\% { } 1 0 0 \\%$ . "
377
+ ],
378
+ "image_footnote": [],
379
+ "bbox": [
380
+ 191,
381
+ 98,
382
+ 810,
383
+ 363
384
+ ],
385
+ "page_idx": 4
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "",
390
+ "bbox": [
391
+ 173,
392
+ 502,
393
+ 825,
394
+ 587
395
+ ],
396
+ "page_idx": 4
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "Base on this assumption, we present INQ which incorporates three interdependent operations: weight partition, group-wise quantization and re-training. Weight partition is to divide the weights in each layer of a pre-trained full-precision CNN model into two disjoint groups which play complementary roles in our INQ. The weights in the first group are responsible for forming a low-precision base for the original model, thus they are quantized by using Equation (4). The weights in the second group adapt to compensate for the loss in model accuracy, thus they are the ones to be re-trained. Once the first run of the quantization and re-training operations is finished, all the three operations are further conducted on the second weight group in an iterative manner, until all the weights are converted to be either powers of two or zero, acting as an incremental network quantization and accuracy enhancement procedure. As a result, accuracy loss under low-precision CNN quantization can be well suppressed by our INQ. Illustrative results at iterative steps of our INQ are provided in Figure 2. ",
401
+ "bbox": [
402
+ 173,
403
+ 593,
404
+ 825,
405
+ 761
406
+ ],
407
+ "page_idx": 4
408
+ },
409
+ {
410
+ "type": "text",
411
+ "text": "For the $l ^ { t h }$ layer, weight partition can be defined as ",
412
+ "bbox": [
413
+ 173,
414
+ 766,
415
+ 509,
416
+ 782
417
+ ],
418
+ "page_idx": 4
419
+ },
420
+ {
421
+ "type": "equation",
422
+ "img_path": "images/c74caf5196b64bc0440043dec6582bc0c8aa183c49d8e991fdf6da9e023f90b1.jpg",
423
+ "text": "$$\n\\mathbf { A } _ { l } ^ { ( 1 ) } \\cup \\mathbf { A } _ { l } ^ { ( 2 ) } = \\{ \\mathbf { W } _ { l } ( i , j ) \\} , \\mathrm { a n d } \\mathbf { A } _ { l } ^ { ( 1 ) } \\cap \\mathbf { A } _ { l } ^ { ( 2 ) } = \\varnothing ,\n$$",
424
+ "text_format": "latex",
425
+ "bbox": [
426
+ 328,
427
+ 801,
428
+ 668,
429
+ 823
430
+ ],
431
+ "page_idx": 4
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "where ${ \\bf A } _ { l } ^ { ( 1 ) }$ denotes the first weight group that needs to be quantized, and ${ \\bf A } _ { 2 }$ denotes the other weight group that needs to be re-trained. We leave the strategies for group partition to be chosen in the experiment section. Here, we define a binary matrix $\\mathbf { T } _ { l }$ to help distinguish above two categories of weights. That is, $\\mathbf T _ { l } ( i , j ) = 0$ means $\\mathbf { W } _ { l } ( i , j ) \\in \\mathbf { A } _ { l } ^ { ( 1 ) }$ , and $\\mathbf T _ { l } ( i , j ) = 1$ means $\\mathbf { W } _ { l } ( i , j ) \\in \\mathbf { A } _ { l } ^ { ( 2 ) }$ . ",
436
+ "bbox": [
437
+ 173,
438
+ 844,
439
+ 825,
440
+ 925
441
+ ],
442
+ "page_idx": 4
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "2.3 INCREMENTAL NETWORK QUANTIZATION ALGORITHM ",
447
+ "text_level": 1,
448
+ "bbox": [
449
+ 173,
450
+ 103,
451
+ 599,
452
+ 118
453
+ ],
454
+ "page_idx": 5
455
+ },
456
+ {
457
+ "type": "text",
458
+ "text": "Now, we come to the training method. Taking the $l ^ { t h }$ layer as an example, the basic optimization problem of making its weights to be either powers of two or zero can be expressed as ",
459
+ "bbox": [
460
+ 173,
461
+ 128,
462
+ 825,
463
+ 159
464
+ ],
465
+ "page_idx": 5
466
+ },
467
+ {
468
+ "type": "equation",
469
+ "img_path": "images/0274fd925a2b82221032a8a49d586cda947850729fec2758cc916f7e48f2917a.jpg",
470
+ "text": "$$\n\\begin{array} { r l } { \\underset { \\mathbf { W } _ { l } } { \\operatorname* { m i n } } } & { E ( \\mathbf { W } _ { l } ) = L ( \\mathbf { W } _ { l } ) + \\lambda R ( \\mathbf { W } _ { l } ) } \\\\ { \\mathrm { s . t . } } & { \\mathbf { W } _ { l } ( i , j ) \\in \\mathbf { P } _ { l } , 1 \\leq l \\leq L , } \\end{array}\n$$",
471
+ "text_format": "latex",
472
+ "bbox": [
473
+ 374,
474
+ 174,
475
+ 625,
476
+ 219
477
+ ],
478
+ "page_idx": 5
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "where $L ( \\mathbf { W } _ { l } )$ is the network loss, $R ( { \\mathbf W } _ { l } )$ is the regularization term, $\\lambda$ is a positive coefficient, and the constraint term indicates each weight entry ${ \\bf W } _ { l } ( i , j )$ should be chosen from the set $\\mathbf { P } _ { l }$ consisting of a fixed number of the values of powers of two plus zero. Direct solving above optimization problem in training from scratch is challenging since it is very easy to undergo convergence problem. ",
483
+ "bbox": [
484
+ 174,
485
+ 229,
486
+ 825,
487
+ 286
488
+ ],
489
+ "page_idx": 5
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "By performing weight partition and group-wise quantization operations beforehand, the optimization problem defined in (6) can be reshaped into a easier version. That is, we only need to optimize the following objective function ",
494
+ "bbox": [
495
+ 174,
496
+ 292,
497
+ 825,
498
+ 335
499
+ ],
500
+ "page_idx": 5
501
+ },
502
+ {
503
+ "type": "equation",
504
+ "img_path": "images/53397c396e27483e01a1bc37b65e5df028f23d05cfe614ec51875aebad7e67ab.jpg",
505
+ "text": "$$\n\\begin{array} { r l } { \\underset { \\mathbf { W } _ { l } } { \\mathop { \\operatorname* { m i n } } } } & { E ( \\mathbf { W } _ { l } ) = L ( \\mathbf { W } _ { l } ) + \\lambda R ( \\mathbf { W } _ { l } ) } \\\\ { \\mathrm { s . t . } } & { \\mathbf { W } _ { l } ( i , j ) \\in \\mathbf { P } _ { l } , \\mathrm { ~ i f ~ } \\mathbf { T } _ { l } ( i , j ) = 0 , 1 \\leq l \\leq L , } \\end{array}\n$$",
506
+ "text_format": "latex",
507
+ "bbox": [
508
+ 330,
509
+ 352,
510
+ 666,
511
+ 397
512
+ ],
513
+ "page_idx": 5
514
+ },
515
+ {
516
+ "type": "text",
517
+ "text": "where $\\mathbf { P } _ { l }$ is determined at group-wise quantization operation, and the binary matrix $\\mathbf { T } _ { l }$ acts as a mask which is determined by weight partition operation. Since $\\mathbf { P } _ { l }$ and $\\mathbf { T } _ { l }$ are known, the optimization problem (7) can be solved using popular stochastic gradient decent (SGD) method. That is, in INQ, we can get the update scheme for the re-training as ",
518
+ "bbox": [
519
+ 174,
520
+ 406,
521
+ 825,
522
+ 463
523
+ ],
524
+ "page_idx": 5
525
+ },
526
+ {
527
+ "type": "equation",
528
+ "img_path": "images/595d3c22243faffae94fbc176af0274cad661faeb0d9ee751158637e0f3a4f4f.jpg",
529
+ "text": "$$\n\\mathbf { W } _ { l } ( i , j ) \\mathbf { W } _ { l } ( i , j ) - \\gamma \\frac { \\partial E } { \\partial ( \\mathbf { W } _ { l } ( i , j ) ) } \\mathbf { T } _ { l } ( i , j ) ,\n$$",
530
+ "text_format": "latex",
531
+ "bbox": [
532
+ 341,
533
+ 479,
534
+ 655,
535
+ 513
536
+ ],
537
+ "page_idx": 5
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "where $\\gamma$ is a positive learning rate. Note that the binary matrix $\\mathbf { T } _ { l }$ forces zero update to the weights that have been quantized. That is, only the weights still keep with floating-point values are updated, akin to the latest pruning methods (Han et al., 2015; Guo et al., 2016) in which only the weights that are not currently removed are re-trained to enhance network accuracy. The whole procedure of our INQ is summarized as Algorithm 1. ",
542
+ "bbox": [
543
+ 173,
544
+ 522,
545
+ 825,
546
+ 594
547
+ ],
548
+ "page_idx": 5
549
+ },
550
+ {
551
+ "type": "text",
552
+ "text": "We would like to highlight that the merits of our INQ are in three aspects: (1) Weight partition introduces the importance-aware weight quantization. (2) Group-wise weight quantization introduces much less accuracy loss than simultaneously quantizing all the network weights, thus making retraining have larger room to recover model accuracy. (3) By integrating the operations of weight partition, group-wise quantization and re-training into a nested loop, our INQ has the potential to obtain lossless low-precision CNN model from the pre-trained full-precision reference. ",
553
+ "bbox": [
554
+ 173,
555
+ 599,
556
+ 825,
557
+ 684
558
+ ],
559
+ "page_idx": 5
560
+ },
561
+ {
562
+ "type": "text",
563
+ "text": "g \nInput: $X$ : the training data, $\\{ \\mathbf { W } _ { l } : 1 \\le l \\le L \\}$ : the pre-trained full-precision CNN model, $\\{ \\sigma _ { 1 } , \\sigma _ { 2 } , \\cdots , \\sigma _ { N } \\}$ : the accumulated portions of weights quantized at iterative steps \nOutput: $\\{ \\widehat { \\mathbf { W } } _ { l } : 1 \\leq l \\leq L \\}$ : the final low-precision model with the weights constrained to be either powers of two or zero 1: Initialize $\\mathbf { A } _ { l } ^ { ( 1 ) } \\varnothing , \\mathbf { A } _ { l } ^ { ( 2 ) } \\{ \\mathbf { W } _ { l } ( i , j ) \\} , \\mathbf { T } _ { l } \\mathbf { 1 } , \\operatorname { f o r } 1 \\leq l \\leq L$ 2: for $n = 1 , 2 , \\ldots , N$ do 3: Reset the base learning rate and the learning policy 4: According to $\\sigma _ { n }$ , perform layer-wise weight partition and update $\\mathbf { A } _ { l } ^ { ( 1 ) } , \\mathbf { A } _ { l } ^ { ( 2 ) }$ and $\\mathbf { T } _ { l }$ 5: Based on ${ \\bf A } _ { l } ^ { ( 1 ) }$ , determine $\\mathbf { P } _ { l }$ layer-wisely 6: Quantize the weights in ${ \\bf A } _ { l } ^ { ( 1 ) }$ by Equation (4) layer-wisely 7: Calculate feed-forward loss, and update weights in $\\{ \\mathbf { A } _ { l } ^ { ( 2 ) } : 1 \\le l \\le L \\}$ by Equation (8) 8: end for ",
564
+ "bbox": [
565
+ 174,
566
+ 712,
567
+ 825,
568
+ 911
569
+ ],
570
+ "page_idx": 5
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "3 EXPERIMENTAL RESULTS ",
575
+ "text_level": 1,
576
+ "bbox": [
577
+ 176,
578
+ 102,
579
+ 419,
580
+ 118
581
+ ],
582
+ "page_idx": 6
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "To analyze the performance of our INQ, we perform extensive experiments on the ImageNet large scale classification task, which is known as the most challenging image classification benchmark so far. ImageNet dataset has about 1.2 million training images and 50 thousand validation images. Each image is annotated as one of 1000 object classes. We apply our INQ to AlexNet, VGG-16, GoogleNet, ResNet-18 and ResNet-50, covering almost all known deep CNN architectures. Using the center crops of validation images, we report the results with two standard measures: top-1 error rate and top-5 error rate. For fair comparison, all pre-trained full-precision (i.e., 32-bit floatingpoint) CNN models except ResNet-18 are taken from the Caffe model ${ \\mathrm { z o o } } ^ { 2 }$ . Note that He et al. (2016) do not release their pre-trained ResNet-18 model to the public, so we use a publicly available re-implementation by Facebook3. Since our method is implemented with Caffe, we make use of an open source tool4 to convert the pre-trained ResNet-18 model from Torch to Caffe. ",
587
+ "bbox": [
588
+ 173,
589
+ 133,
590
+ 825,
591
+ 286
592
+ ],
593
+ "page_idx": 6
594
+ },
595
+ {
596
+ "type": "text",
597
+ "text": "3.1 RESULTS ON IMAGENET ",
598
+ "text_level": 1,
599
+ "bbox": [
600
+ 176,
601
+ 304,
602
+ 383,
603
+ 319
604
+ ],
605
+ "page_idx": 6
606
+ },
607
+ {
608
+ "type": "table",
609
+ "img_path": "images/f0be6d262bbab5baf18e528321b86286200392a5184ed3b0334f7465cc3f708e.jpg",
610
+ "table_caption": [
611
+ "Table 1: Our INQ well converts diverse full-precision deep CNN models (including AlexNet, VGG16, GoogleNet, ResNet-18 and ResNet-50) to 5-bit low-precision versions with consistently improved model accuracy. "
612
+ ],
613
+ "table_footnote": [],
614
+ "table_body": "<table><tr><td>Network</td><td>Bit-width</td><td>Top-1 error</td><td>Top-5 error</td><td>Decrease in top-1/top-5 error</td></tr><tr><td>AlexNet ref</td><td>32</td><td>42.76%</td><td>19.77%</td><td></td></tr><tr><td>AlexNet VGG-16 ref</td><td>5 32</td><td>42.61% 31.46%</td><td>19.54% 11.35%</td><td>0.15%/0.23%</td></tr><tr><td>VGG-16</td><td>5</td><td>29.18%</td><td>9.70%</td><td>2.28%/1.65%</td></tr><tr><td>GoogleNet ref</td><td></td><td></td><td></td><td></td></tr><tr><td>GoogleNet</td><td>32</td><td>31.11%</td><td>10.97%</td><td></td></tr><tr><td>ResNet-18 ref</td><td>5</td><td>30.98%</td><td>10.72%</td><td>0.13%/0.25%</td></tr><tr><td>ResNet-18</td><td>32</td><td>31.73%</td><td>11.31%</td><td></td></tr><tr><td></td><td>5</td><td>31.02%</td><td>10.90%</td><td>0.71%/0.41%</td></tr><tr><td>ResNet-50 ref</td><td>32</td><td>26.78%</td><td>8.76%</td><td></td></tr><tr><td>ResNet-50</td><td>5</td><td>25.19%</td><td>7.55%</td><td>1.59%/1.21%</td></tr></table>",
615
+ "bbox": [
616
+ 200,
617
+ 395,
618
+ 797,
619
+ 554
620
+ ],
621
+ "page_idx": 6
622
+ },
623
+ {
624
+ "type": "text",
625
+ "text": "Setting expected bit-width to 5, the first set of experiments is performed to testify the efficacy of our INQ on different CNN architectures. Regarding weight partition, there are several candidate strategies as we tried in our previous work for efficient network pruning (Guo et al., 2016). In Guo et al. (2016), we found random partition and pruning-inspired partition are the two best choices compared with the others. Thus in this paper, we directly compare these two strategies for weight partition. In random strategy, the weights in each layer of any pre-trained full-precision deep CNN model are randomly split into two disjoint groups. In pruning-inspired strategy, the weights are divided into two disjoint groups by comparing their absolute values with layer-wise thresholds which are automatically determined by a given splitting ratio. Here we directly use pruning-inspired strategy and the experimental results in Section 3.2 will show why. After the re-training with no more than 8 epochs over each pre-trained full-precision model, we obtain the results as shown in Table 1. It can be concluded that the 5-bit CNN models generated by our INQ show consistently improved top-1 and top-5 recognition rates compared with respective full-precision references. Parameter settings are described below. ",
626
+ "bbox": [
627
+ 174,
628
+ 578,
629
+ 825,
630
+ 772
631
+ ],
632
+ "page_idx": 6
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "AlexNet: AlexNet has 5 convolutional layers and 3 fully-connected layers. We set the accumulated portions of quantized weights at iterative steps as $\\{ 0 . 3 , \\dot { 0 } . 6 , 0 . 8 , 1 \\}$ , the batch size as 256, the weight decay as 0.0005, and the momentum as 0.9. ",
637
+ "bbox": [
638
+ 176,
639
+ 780,
640
+ 820,
641
+ 820
642
+ ],
643
+ "page_idx": 6
644
+ },
645
+ {
646
+ "type": "text",
647
+ "text": "VGG-16: Compared with AlexNet, VGG-16 has 13 convolutional layers and more parameters. We set the accumulated portions of quantized weights at iterative steps as $\\{ 0 . 5 , 0 . 7 5 , 0 . 8 7 5 , 1 \\}$ , the batch size as 32, the weight decay as 0.0005, and the momentum as 0.9. ",
648
+ "bbox": [
649
+ 176,
650
+ 829,
651
+ 823,
652
+ 871
653
+ ],
654
+ "page_idx": 6
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "GoogleNet: Compared with AlexNet and VGG-16, GoogleNet is more difficult to quantize due to a smaller number of parameters and the increased network width. We set the accumulated portions of quantized weights at iterative steps as $\\{ 0 . 2 , 0 . 4 , 0 . 6 , 0 . 8 , 1 \\}$ , the batch size as 80, the weight decay as 0.0002, and the momentum as 0.9. ",
659
+ "bbox": [
660
+ 174,
661
+ 103,
662
+ 823,
663
+ 159
664
+ ],
665
+ "page_idx": 7
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "ResNet-18: Different from above three networks, ResNets have batch normalization layers and relief the vanishing gradient problem by using shortcut connections. We first test the 18-layer version for exploratory purpose and test the 50-layer version later on. The network architectures of ResNet18 and ResNet-34 are very similar. The only difference is the number of filters in every convolutional layer. We set the accumulated portions of quantized weights at iterative steps as {0.5, 0.75, 0.875, $1 \\}$ , the batch size as 80, the weight decay as 0.0005, and the momentum as 0.9. ",
670
+ "bbox": [
671
+ 173,
672
+ 166,
673
+ 825,
674
+ 251
675
+ ],
676
+ "page_idx": 7
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "ResNet-50: Besides significantly increased network depth, ResNet-50 has a more complex network architecture in comparison to ResNet-18. However, regarding network architecture, ResNet-50 is very similar to ResNet-101 and ResNet-152. The only difference is the number of filters in every convolutional layer. We set the accumulated portions of quantized weights at iterative steps as $\\{ 0 . 5$ , 0.75, 0.875, 1}, the batch size as 32, the weight decay as 0.0005, and the momentum as 0.9. ",
681
+ "bbox": [
682
+ 174,
683
+ 257,
684
+ 825,
685
+ 327
686
+ ],
687
+ "page_idx": 7
688
+ },
689
+ {
690
+ "type": "text",
691
+ "text": "3.2 ANALYSIS OF WEIGHT PARTITION STRATEGIES",
692
+ "text_level": 1,
693
+ "bbox": [
694
+ 174,
695
+ 344,
696
+ 542,
697
+ 359
698
+ ],
699
+ "page_idx": 7
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "In our INQ, the first operation is weight partition whose result will directly affect the following group-wise quantization and re-training operations. Therefore, the second set of experiments is conducted to analyze two candidate strategies for weight partition. As mentioned in the previous section, we use pruning-inspired strategy for weight partition. Unlike random strategy in which all the weights have equal probability to fall into the two disjoint groups, pruning-inspired strategy considers that the weights with larger absolute values are more important than the smaller ones to form a low-precision base for the original CNN model. We use ResNet-18 as a test case to compare the performance of these two strategies. In the experiments, the parameter settings are completely the same as described in Section 3.1. We set 4 epochs for weight re-training. Table 2 summarizes the results of our INQ with 5-bit quantization. It can be seen that our INQ achieves top-1 error rate of $3 2 . 1 1 \\%$ and top-5 error rate of $1 1 . 7 3 \\%$ by using random partition. Comparatively, pruning-inspired partition brings $1 . 0 9 \\%$ and $0 . 8 3 \\%$ decrease in top-1 and top-5 error rates, respectively. Apparently, pruning-inspired partition is better than random partition, and this is the reason why we use it in this paper. For future works, weight partition based on quantization error could also be an option worth exploring. ",
704
+ "bbox": [
705
+ 174,
706
+ 371,
707
+ 825,
708
+ 579
709
+ ],
710
+ "page_idx": 7
711
+ },
712
+ {
713
+ "type": "table",
714
+ "img_path": "images/73ecc432bc17a02559e3f0592b3b349f982811d9d8005b8a84ffa0394ac1efa1.jpg",
715
+ "table_caption": [
716
+ "Table 2: Comparison of two different strategies for weight partition on ResNet-18. "
717
+ ],
718
+ "table_footnote": [],
719
+ "table_body": "<table><tr><td>Strategy</td><td>Bit-width</td><td>Top-1 error</td><td>Top-5 error</td></tr><tr><td>Random partition</td><td>5</td><td>32.11%</td><td>11.73%</td></tr><tr><td>Pruning-inspired partition</td><td>5</td><td>31.02%</td><td>10.90%</td></tr></table>",
720
+ "bbox": [
721
+ 264,
722
+ 625,
723
+ 730,
724
+ 672
725
+ ],
726
+ "page_idx": 7
727
+ },
728
+ {
729
+ "type": "text",
730
+ "text": "3.3 THE TRADE-OFF BETWEEN EXPECTED BIT-WIDTH AND MODEL ACCURACY ",
731
+ "text_level": 1,
732
+ "bbox": [
733
+ 176,
734
+ 703,
735
+ 736,
736
+ 718
737
+ ],
738
+ "page_idx": 7
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "The third set of experiments is performed to explore the limit of the expected bit-width under which our INQ can still achieve lossless network quantization. Similar to the second set of experiments, we also use ResNet-18 as a test case, and the parameter settings for the batch size, the weight decay and the momentum are completely the same. Finally, lower-precision models with 4-bit, 3-bit and even 2-bit ternary weights are generated for comparisons. As the expected bit-width goes down, the number of candidate quantum values will be decreased significantly, thus we shall increase the number of iterative steps accordingly for enhancing the accuracy of final low-precision model. Specifically, we set the accumulated portions of quantized weights at iterative steps as $\\{ 0 . 3 , 0 . 5$ , 0.8, 0.9, 0.95, $1 \\}$ , $\\{ 0 . 2 , 0 . 4 , 0 . 6 , 0 . 7 , \\bar { 0 } . 8 , 0 . 9 , 0 . 9 \\bar { 5 } , 1 \\}$ and $\\{ 0 . 2 , 0 . 4 , 0 . 6 , 0 . 7 , 0 . 8 , \\bar { 0 } . 8 5 , \\bar { 0 } . 9 , 0 . 9 5 _ { \\cdotp }$ , $0 . 9 7 5 , 1 \\}$ for 4-bit, 3-bit and 2-bit ternary models, respectively. The required number of epochs also increases when the expected bit-width goes down, and it reaches 30 when training our 2-bit ternary model. Although our 4-bit model shows slightly decreased accuracy when compared with the 5-bit model, its accuracy is still better than that of the pre-trained full-precision model. Comparatively, even when the expected bit-width goes down to 3, our low-precision model shows only ${ \\bar { 0 . 1 9 \\% } }$ and ",
743
+ "bbox": [
744
+ 174,
745
+ 729,
746
+ 825,
747
+ 924
748
+ ],
749
+ "page_idx": 7
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "$0 . 3 3 \\%$ losses in top-1 and top-5 recognition rates, respectively. As for our 2-bit ternary model, although it incurs $2 . 2 5 \\%$ decrease in top-1 error rate and $1 . 5 6 \\%$ decrease in top-5 error rate in comparison to the pre-trained full-precision reference, its accuracy is considerably better than stateof-the-art results reported for binary-weight network (BWN) (Rastegari et al., 2016) and ternary weight network (TWN) (Li & Liu, 2016). Detailed results are summarized in Table 3 and Table 4. ",
754
+ "bbox": [
755
+ 173,
756
+ 103,
757
+ 825,
758
+ 174
759
+ ],
760
+ "page_idx": 8
761
+ },
762
+ {
763
+ "type": "table",
764
+ "img_path": "images/709c2174f9fa8ab8d02fdce20bc36d23eb293418d1f13d38326d001991459693.jpg",
765
+ "table_caption": [
766
+ "Table 3: Our INQ generates extremely low-precision (4-bit and 3-bit) models with improved or very similar accuracy compared with the full-precision ResNet-18 model. "
767
+ ],
768
+ "table_footnote": [],
769
+ "table_body": "<table><tr><td>Model</td><td>Bit-width</td><td>Top-1 error</td><td>Top-5 error</td></tr><tr><td>ResNet-18 ref</td><td>32</td><td>31.73%</td><td>11.31%</td></tr><tr><td>INQ</td><td>5</td><td>31.02%</td><td>10.90%</td></tr><tr><td>INQ</td><td>4</td><td>31.11%</td><td>10.99%</td></tr><tr><td>INQ</td><td>3</td><td>31.92%</td><td>11.64%</td></tr><tr><td>INQ</td><td>2 (ternary)</td><td>33.98%</td><td>12.87%</td></tr></table>",
770
+ "bbox": [
771
+ 303,
772
+ 233,
773
+ 694,
774
+ 321
775
+ ],
776
+ "page_idx": 8
777
+ },
778
+ {
779
+ "type": "table",
780
+ "img_path": "images/e5fd9da4669cecfaa7d6bd62ed8e045e5cf2622c2c9d9e5021727c06dd6ed38f.jpg",
781
+ "table_caption": [
782
+ "Table 4: Comparison of our 2-bit ternary model and some other binary or ternary models, including the BWN and the TWN approximations of ResNet-18. "
783
+ ],
784
+ "table_footnote": [],
785
+ "table_body": "<table><tr><td>Method</td><td>Bit-width</td><td>Top-1 error</td><td>Top-5 error</td></tr><tr><td>BWN(Rastegari et al., 2016)</td><td>1</td><td>39.20%</td><td>17.00%</td></tr><tr><td>TWN(Li &amp; Liu, 2016)</td><td>2 (ternary)</td><td>38.20%</td><td>15.80%</td></tr><tr><td>INQ (ours)</td><td>2 (ternary)</td><td>33.98%</td><td>12.87%</td></tr></table>",
786
+ "bbox": [
787
+ 254,
788
+ 395,
789
+ 741,
790
+ 455
791
+ ],
792
+ "page_idx": 8
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "3.4 LOW-BIT DEEP COMPRESSION ",
797
+ "text_level": 1,
798
+ "bbox": [
799
+ 176,
800
+ 487,
801
+ 428,
802
+ 502
803
+ ],
804
+ "page_idx": 8
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "In the literature, recently proposed deep compression method (Han et al., 2016) reports so far best results on network compression without loss of model accuracy. Therefore, the last set of experiments is conducted to explore the potential of our INQ for much better deep compression. Note that Han et al. (2016) is a hybrid network compression solution combining three different techniques, namely network pruning (Han et al., 2015), vector quantization (Gong et al., 2014) and Huffman coding. Taking AlexNet as an example, network pruning gets $9 \\times$ compression, however this result is mainly obtained from the fully connected layers. Actually its compression performance on the convolutional layers is less than $3 \\times$ (as can be seen in the Table 4 of Han et al. (2016)). Besides, network pruning is realized by separately performing pruning and re-training in an iterative way, which is very time-consuming. It will cost at least several weeks for compressing AlexNet. We solved this problem by our dynamic network surgery (DNS) method (Guo et al., 2016) which achieves about $7 \\times$ speed-up in training and improves the performance of network pruning from $9 \\times$ to $1 7 . 7 \\times$ . In Han et al. (2016), after network pruning, vector quantization further improves compression ratio from $9 \\times$ to $2 7 \\times$ , and Huffman coding finally boosts compression ratio up to $3 5 \\times$ . For fair comparison, we combine our proposed INQ and DNS, and compare the resulting method with Han et al. (2016). Detailed results are summarized in Table 5. When combing our proposed INQ and DNS, we achieve much better compression results compared with Han et al. (2016). Specifically, with 5-bit quantization, we can achieve $5 3 \\times$ compression with slightly larger gains both in top-5 and top-1 recognition rates, yielding $5 1 . 4 3 \\% / 9 6 . 3 0 \\%$ absolute improvement in compression performance compared with full version/fair version (i.e., the combination of network pruning and vector quantization) of Han et al. (2016), respectively. Consistently better results have also obtained for our 4-bit and 3-bit models. ",
809
+ "bbox": [
810
+ 173,
811
+ 513,
812
+ 825,
813
+ 819
814
+ ],
815
+ "page_idx": 8
816
+ },
817
+ {
818
+ "type": "text",
819
+ "text": "Besides, we also perform a set of experiments on AlexNet to compare the performance of our INQ and vector quantization (Gong et al., 2014). For fair comparison, re-training is also used to enhance the performance of vector quantization, and we set the number of cluster centers for all of 5 convolutional layers and 3 fully connect layers to 32 (i.e., 5-bit quantization). In the experiment, vector quantization incurs over $3 \\%$ loss in model accuracy. When we change the number of cluster centers for convolutional layers from 32 to 128, it gets an accuracy loss of $0 . 9 8 \\%$ . This is consistent with the results reported in (Gong et al., 2014). Comparatively, vector quantization is mainly proposed to compress the parameters in the fully connected layers of a pre-trained full-precision CNN model, while our INQ addresses all network layers simultaneously and has no accuracy loss for 5-bit and 4-bit quantization. Therefore, it is evident that our INQ is much better than vector quantization. Last but not least, the final weights for vector quantization (Gong et al., 2014), network pruning (Han et al., 2015) and deep compression (Han et al., 2016) are still floating-point values, but the final weights for our INQ are in the form of either powers of two or zero. The direct advantage of our INQ is that the original floating-point multiplication operations can be replaced by cheaper binary bit shift operations on dedicated hardware like FPGA. ",
820
+ "bbox": [
821
+ 173,
822
+ 827,
823
+ 825,
824
+ 924
825
+ ],
826
+ "page_idx": 8
827
+ },
828
+ {
829
+ "type": "table",
830
+ "img_path": "images/8d0fa65f7749b8cbbbf674b92d9532548aa470e8745f5e064fea8412d23c52a4.jpg",
831
+ "table_caption": [
832
+ "Table 5: Comparison of the combination of our INQ and DNS, and deep compression method on AlexNet. Conv: Convolutional layer, FC: Fully connected layer, P: Pruning, Q: Quantization, H: Huffman coding. "
833
+ ],
834
+ "table_footnote": [],
835
+ "table_body": "<table><tr><td>Method</td><td>Bit-width(Conv/FC)</td><td>Compression ratio</td><td>Decrease in top-1/top5 error</td></tr><tr><td>Han et al. (2016) (P+Q)</td><td>8/5</td><td>27×</td><td>0.00%/0.03%</td></tr><tr><td>Han et al. (2016) (P+Q+H)</td><td>8/5</td><td>35×</td><td>0.00%/0.03%</td></tr><tr><td>Han et al. (2016) (P+Q+H)</td><td>8/4</td><td>1</td><td>-0.01%/0.00%</td></tr><tr><td>Our method (P+Q)</td><td>5/5</td><td>53×</td><td>0.08%/0.03%</td></tr><tr><td>Han et al. (2016) (P+Q+H)</td><td>4/2</td><td>1</td><td>-1.99%/-2.60%</td></tr><tr><td>Our method (P+Q)</td><td>4/4</td><td>71×</td><td>-0.52%/-0.20%</td></tr><tr><td>Our method (P+Q)</td><td>3/3</td><td>89×</td><td>-1.47 %/-0.96%</td></tr></table>",
836
+ "bbox": [
837
+ 189,
838
+ 160,
839
+ 807,
840
+ 290
841
+ ],
842
+ "page_idx": 9
843
+ },
844
+ {
845
+ "type": "text",
846
+ "text": "",
847
+ "bbox": [
848
+ 174,
849
+ 324,
850
+ 825,
851
+ 435
852
+ ],
853
+ "page_idx": 9
854
+ },
855
+ {
856
+ "type": "text",
857
+ "text": "4 CONCLUSIONS ",
858
+ "text_level": 1,
859
+ "bbox": [
860
+ 176,
861
+ 460,
862
+ 328,
863
+ 477
864
+ ],
865
+ "page_idx": 9
866
+ },
867
+ {
868
+ "type": "text",
869
+ "text": "In this paper, we present INQ, a new network quantization method, to address the problem of how to convert any pre-trained full-precision (i.e., 32-bit floating-point) CNN model into a lossless lowprecision version whose weights are constrained to be either powers of two or zero. Unlike existing methods which usually quantize all the network weights simultaneously, INQ is a more compact quantization framework. It incorporates three interdependent operations: weight partition, groupwise quantization and re-training. Weight partition splits the weights in each layer of a pre-trained full-precision CNN model into two disjoint groups which play complementary roles in INQ. The weights in the first group is directly quantized by a variable-length encoding method, forming a low-precision base for the original CNN model. The weights in the other group are re-trained while keeping all the quantized weights fixed, compensating for the accuracy loss from network quantization. More importantly, the operations of weight partition, group-wise quantization and re-training are repeated on the latest re-trained weight group in an iterative manner until all the weights are quantized, acting as an incremental network quantization and accuracy enhancement procedure. On the ImageNet large scale classification task, we conduct extensive experiments and show that our quantized CNN models with 5-bit, 4-bit, 3-bit and even 2-bit ternary weights have improved or at least comparable accuracy against their full-precision baselines, including AlexNet, VGG-16, GoogleNet and ResNets. As for future works, we plan to extend incremental idea behind INQ from low-precision weights to low-precision activations and low-precision gradients (we have actually already made some good progress on it, as shown in our supplementary materials). We will also investigate computation and power efficiency by implementing our low-precision CNN models on hardware platforms. ",
870
+ "bbox": [
871
+ 174,
872
+ 494,
873
+ 825,
874
+ 785
875
+ ],
876
+ "page_idx": 9
877
+ },
878
+ {
879
+ "type": "text",
880
+ "text": "REFERENCES ",
881
+ "text_level": 1,
882
+ "bbox": [
883
+ 174,
884
+ 810,
885
+ 285,
886
+ 825
887
+ ],
888
+ "page_idx": 9
889
+ },
890
+ {
891
+ "type": "text",
892
+ "text": "Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and L. Yuille Alan. Semantic image segmentation with deep convolutional nets and fully connected crfs. In ICLR, 2015a. ",
893
+ "bbox": [
894
+ 174,
895
+ 837,
896
+ 823,
897
+ 878
898
+ ],
899
+ "page_idx": 9
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "Wenlin Chen, James T. Wilson, Stephen Tyree, Kilian Q. Weinberger, and Yixin Chen. Compressing neural networks with the hashing trick. In ICML, 2015b. ",
904
+ "bbox": [
905
+ 174,
906
+ 895,
907
+ 821,
908
+ 922
909
+ ],
910
+ "page_idx": 9
911
+ },
912
+ {
913
+ "type": "text",
914
+ "text": "Matthieu Courbariaux, Bengio Yoshua, and David Jean-Pierre. Binaryconnect: Training deep neural networks with binary weights during propagations. In NIPS, 2015. ",
915
+ "bbox": [
916
+ 171,
917
+ 103,
918
+ 823,
919
+ 132
920
+ ],
921
+ "page_idx": 10
922
+ },
923
+ {
924
+ "type": "text",
925
+ "text": "Matthieu Courbariaux, Itay Hubara, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks: Training deep neural networks with weights and activations constrained to $+ 1$ or -1. arXiv preprint arXiv:1602.02830v3, 2016. ",
926
+ "bbox": [
927
+ 176,
928
+ 141,
929
+ 821,
930
+ 184
931
+ ],
932
+ "page_idx": 10
933
+ },
934
+ {
935
+ "type": "text",
936
+ "text": "Ross Girshick. Fast r-cnn. In ICCV, 2015. ",
937
+ "bbox": [
938
+ 174,
939
+ 194,
940
+ 450,
941
+ 208
942
+ ],
943
+ "page_idx": 10
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "Yunchao Gong, Liu Liu, Ming Yang, and Lubomir Bourdev. Compressing deep concolutional networks using vector quantization. arXiv preprint arXiv:1412.6115v1, 2014. ",
948
+ "bbox": [
949
+ 171,
950
+ 218,
951
+ 823,
952
+ 247
953
+ ],
954
+ "page_idx": 10
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "Yiwen Guo, Anbang Yao, and Yurong Chen. Dynamic network surgery for efficient dnns. In NIPS, 2016. ",
959
+ "bbox": [
960
+ 174,
961
+ 256,
962
+ 821,
963
+ 285
964
+ ],
965
+ "page_idx": 10
966
+ },
967
+ {
968
+ "type": "text",
969
+ "text": "Suyog Gupta, Ankur Agrawal, Kailash Gopalakrishnan, and Pritish Narayanan. Deep learning with limited numerical precision. In ICML, 2015. ",
970
+ "bbox": [
971
+ 174,
972
+ 294,
973
+ 821,
974
+ 324
975
+ ],
976
+ "page_idx": 10
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "Song Han, Jeff Pool, John Tran, and William J. Dally. Learning both weights and connections for efficient neural networks. In NIPS, 2015. ",
981
+ "bbox": [
982
+ 174,
983
+ 332,
984
+ 820,
985
+ 362
986
+ ],
987
+ "page_idx": 10
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "Song Han, Jeff Pool, John Tran, and William J. Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. In ICLR, 2016. ",
992
+ "bbox": [
993
+ 174,
994
+ 369,
995
+ 820,
996
+ 400
997
+ ],
998
+ "page_idx": 10
999
+ },
1000
+ {
1001
+ "type": "text",
1002
+ "text": "Kaiming He, Zhang Xiangyu, Ren Shaoqing, and Sun Jian. Deep residual learning for image recognition. In CVPR, 2016. ",
1003
+ "bbox": [
1004
+ 173,
1005
+ 409,
1006
+ 821,
1007
+ 438
1008
+ ],
1009
+ "page_idx": 10
1010
+ },
1011
+ {
1012
+ "type": "text",
1013
+ "text": "Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Quantized neural networks: Training neural networks with low precision weights and activations. arXiv preprint arXiv:1609.07061v1, 2016. ",
1014
+ "bbox": [
1015
+ 173,
1016
+ 446,
1017
+ 825,
1018
+ 489
1019
+ ],
1020
+ "page_idx": 10
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "Alex Krizhevsky, Sutskever Ilya, and E. Hinton Geoffrey. Imagenet classification with deep convolutional neural networks. In NIPS, 2012. ",
1025
+ "bbox": [
1026
+ 174,
1027
+ 498,
1028
+ 823,
1029
+ 527
1030
+ ],
1031
+ "page_idx": 10
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "text": "Yann LeCun, Bottou Leon, Yoshua Bengio, and Patrick Hadner. Gradient-based learning applied to documentrecognition. In NIPS, 1998. ",
1036
+ "bbox": [
1037
+ 173,
1038
+ 536,
1039
+ 823,
1040
+ 566
1041
+ ],
1042
+ "page_idx": 10
1043
+ },
1044
+ {
1045
+ "type": "text",
1046
+ "text": "Fengfu Li and Bin Liu. Ternary weight networks. arXiv preprint arXiv:1605.04711v1, 2016. ",
1047
+ "bbox": [
1048
+ 173,
1049
+ 575,
1050
+ 782,
1051
+ 590
1052
+ ],
1053
+ "page_idx": 10
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In CVPR, 2015. ",
1058
+ "bbox": [
1059
+ 171,
1060
+ 599,
1061
+ 825,
1062
+ 628
1063
+ ],
1064
+ "page_idx": 10
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. arXiv preprint arXiv:1603.05279v4, 2016. ",
1069
+ "bbox": [
1070
+ 173,
1071
+ 637,
1072
+ 825,
1073
+ 680
1074
+ ],
1075
+ "page_idx": 10
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NIPS, 2015. ",
1080
+ "bbox": [
1081
+ 171,
1082
+ 689,
1083
+ 825,
1084
+ 719
1085
+ ],
1086
+ "page_idx": 10
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. ",
1091
+ "bbox": [
1092
+ 171,
1093
+ 728,
1094
+ 825,
1095
+ 757
1096
+ ],
1097
+ "page_idx": 10
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "Daniel Soudry, Itay Hubara, and Ron Meir. Expectation backpropagation: Parameter-free training of multilayer neural networks with continuous or discrete weights. In NIPS, 2014. ",
1102
+ "bbox": [
1103
+ 171,
1104
+ 766,
1105
+ 823,
1106
+ 796
1107
+ ],
1108
+ "page_idx": 10
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "Yi Sun, Xiaogang Wang, and Xiaoou Tang. Deep learning face representation from predicting 10,000 classes. In CVPR, 2014. ",
1113
+ "bbox": [
1114
+ 171,
1115
+ 804,
1116
+ 823,
1117
+ 833
1118
+ ],
1119
+ "page_idx": 10
1120
+ },
1121
+ {
1122
+ "type": "text",
1123
+ "text": "Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In CVPR, 2015. ",
1124
+ "bbox": [
1125
+ 173,
1126
+ 843,
1127
+ 825,
1128
+ 886
1129
+ ],
1130
+ "page_idx": 10
1131
+ },
1132
+ {
1133
+ "type": "text",
1134
+ "text": "Christian Szegedy, Sergey Ioffe, and Vincent Vanhoucke. Inception-v4, inception-resnet and the impact of residual connections on learning. arXiv preprint arXiv:1602.07261v1, 2016. ",
1135
+ "bbox": [
1136
+ 173,
1137
+ 895,
1138
+ 821,
1139
+ 924
1140
+ ],
1141
+ "page_idx": 10
1142
+ },
1143
+ {
1144
+ "type": "text",
1145
+ "text": "Yaniv Taigman, Ming Yang, Marc’ Aurelio Ranzato, and Lior Wolf. Deepface: Closing the gap to human-level performance in face verification. In CVPR, 2014. ",
1146
+ "bbox": [
1147
+ 173,
1148
+ 103,
1149
+ 823,
1150
+ 132
1151
+ ],
1152
+ "page_idx": 11
1153
+ },
1154
+ {
1155
+ "type": "text",
1156
+ "text": "Vincent Vanhoucke, Andrew Senior, and Mark Z. Mao. Improving the speed of neural networks on cpus. In Deep Learning and Unsupervised Feature Learning Workshop, NIPS, 2011. ",
1157
+ "bbox": [
1158
+ 173,
1159
+ 140,
1160
+ 823,
1161
+ 170
1162
+ ],
1163
+ "page_idx": 11
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "Shuchang Zhou, Zekun Ni, Xinyu Zhou, He Wen, Yuxin Wu, and Yuheng Zou. Dorefa-net: Training low bitwidth convolutional neural networks with low bitwidth gradients. arXiv preprint arXiv:1605.04711v1, 2016. ",
1168
+ "bbox": [
1169
+ 176,
1170
+ 179,
1171
+ 821,
1172
+ 222
1173
+ ],
1174
+ "page_idx": 11
1175
+ },
1176
+ {
1177
+ "type": "text",
1178
+ "text": "A APPENDIX 1: STATISTICAL ANALYSIS OF THE QUANTIZED WEIGHTS",
1179
+ "text_level": 1,
1180
+ "bbox": [
1181
+ 173,
1182
+ 102,
1183
+ 782,
1184
+ 118
1185
+ ],
1186
+ "page_idx": 12
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "Taking our 5-bit AlexNet model as an example, we analyze the distribution of the quantized weights. Detailed statistical results are summarized in Table 6. We can find: (1) in the $1 ^ { s t }$ and $2 ^ { n d }$ convolutional layers, the values of $\\{ - 2 ^ { - 6 } , - 2 ^ { - 5 } , - 2 ^ { - 4 } , 2 ^ { - 6 } , 2 ^ { - 5 } , 2 ^ { - 4 } \\}$ and $\\{ - 2 ^ { - 8 } , - 2 ^ { - 7 } , - 2 ^ { - 6 } , - 2 ^ { - 5 }$ , $0 , 2 ^ { - 8 } , \\dot { 2 } ^ { - 7 } , 2 ^ { - 6 } , 2 ^ { - 5 } \\}$ occupy over $60 \\%$ and $94 \\%$ of all quantized weights, respectively; (2) the distributions of the quantized weights in the $3 ^ { r d }$ , $4 ^ { t h }$ and $5 ^ { t h }$ convolutional layers are similar to that of the $2 ^ { n d }$ convolutional layer, and more weights are quantized into zero in the $2 ^ { n d }$ , $3 ^ { r d }$ , $4 ^ { t h }$ and $5 ^ { t h }$ convolutional layers compared with the $1 ^ { s t }$ convolutional layer; (3) in the $1 ^ { s t }$ fully connected layer, the values of $\\left\\{ - 2 ^ { - 1 0 } , \\ - 2 ^ { - 9 } , - 2 ^ { - 8 } , - 2 ^ { - 7 } , 0 , 2 ^ { - 1 0 } , 2 ^ { - 9 } , 2 ^ { - 8 } , 2 ^ { - 7 } \\right\\}$ occupy about $98 \\%$ of all quantized weights, and similar results can be seen for the $2 ^ { n d }$ fully connected layer; (4) generally, the distributions of the quantized weights in the convolutional layers are usually more scattered compared with the fully connected layers. This may be partially the reason why it is much easier to get good compression performance on fully connected layers in comparison to convolutional layers, when using methods such as network hashing (Chen et al., 2015b) and vector quantization (Gong et al., 2014); (5) for 5-bit AlexNet model, the required bit-width for each layer is actually 4 but not 5. ",
1191
+ "bbox": [
1192
+ 173,
1193
+ 133,
1194
+ 825,
1195
+ 340
1196
+ ],
1197
+ "page_idx": 12
1198
+ },
1199
+ {
1200
+ "type": "table",
1201
+ "img_path": "images/4dce5fa55b39479a05fa2990215f3f0a3bccd931f1c5604e7dd0b85e60cf11fd.jpg",
1202
+ "table_caption": [
1203
+ "Table 6: A statistical distribution of the quantized weights in our 5-bit AlexNet model. "
1204
+ ],
1205
+ "table_footnote": [],
1206
+ "table_body": "<table><tr><td>Weight</td><td>Conv1</td><td>Conv2</td><td>Conv3</td><td>Conv4</td><td>Conv5</td><td>FC6</td><td>FC7</td><td>FC8</td></tr><tr><td>-2-10</td><td></td><td></td><td>=</td><td>=</td><td></td><td>8.95%</td><td>6.37%</td><td>3.86%</td></tr><tr><td>-2-9</td><td>=</td><td></td><td>=</td><td></td><td></td><td>12.29%</td><td>9.58%</td><td>6.19%</td></tr><tr><td>-2-8</td><td>5.04%</td><td>10.55%</td><td>11.58%</td><td>10.09%</td><td>9.88%</td><td>16.48%</td><td>16.13%</td><td>12.90%</td></tr><tr><td>-2-7</td><td>6.56%</td><td>12.09%</td><td>14.34%</td><td>14.24%</td><td>14.68%</td><td>10.84%</td><td>17.87%</td><td>19.51%</td></tr><tr><td>-2-6</td><td>9.22%</td><td>13.08%</td><td>15.26%</td><td>18.49%</td><td>20.66%</td><td>0.79%</td><td>3.43%</td><td>11.09%</td></tr><tr><td>-2-5</td><td>10.52%</td><td>8.73%</td><td>5.92%</td><td>7.77%</td><td>9.79%</td><td>0.002%</td><td>0.004%</td><td>0.40%</td></tr><tr><td>-2-4</td><td>9.75%</td><td>2.70%</td><td>0.49%</td><td>0.38%</td><td>0.55%</td><td>1</td><td>1</td><td>1</td></tr><tr><td>-2-3</td><td>4.61%</td><td>0.39%</td><td>0.02%</td><td>0.01%</td><td>0.004%</td><td></td><td></td><td></td></tr><tr><td>-2-2</td><td>0.67%</td><td>0.01%</td><td>1e-4%</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>0</td><td>5.51%</td><td>11.30%</td><td>12.24%</td><td>9.70%</td><td>8.97%</td><td>8.86%</td><td>6.17%</td><td>3.62%</td></tr><tr><td>2-10</td><td></td><td></td><td></td><td></td><td></td><td>8.30%</td><td>5.81%</td><td>3.40%</td></tr><tr><td>2-9</td><td>1</td><td></td><td></td><td></td><td></td><td>10.51%</td><td>7.84%</td><td>4.69%</td></tr><tr><td>2-8</td><td>5.20%</td><td>9.70%</td><td>10.44%</td><td>8.60%</td><td>7.69%</td><td>12.91%</td><td>11.30%</td><td>8.08%</td></tr><tr><td>2-7</td><td>6.79%</td><td>11.01%</td><td>11.66%</td><td>10.33%</td><td>8.95%</td><td>8.95%</td><td>11.90%</td><td>10.94%</td></tr><tr><td>2-6</td><td>9.99%</td><td>11.05%</td><td>11.86%</td><td>12.25%</td><td>10.67%</td><td>1.12%</td><td>3.54%</td><td>12.56%</td></tr><tr><td>2-5</td><td>11.15%</td><td>6.57%</td><td>5.22%</td><td>6.81%</td><td>6.37%</td><td>0.01%</td><td>0.06%</td><td>2.75%</td></tr><tr><td>2-4</td><td>10.14%</td><td>2.26%</td><td>0.86%</td><td>1.24%</td><td>1.62%</td><td>1e-5%</td><td>2e-5%</td><td>0.01%</td></tr><tr><td>2-3</td><td>4.26%</td><td>0.53%</td><td>0.09%</td><td>0.08%</td><td>0.16%</td><td>-</td><td>=</td><td></td></tr><tr><td>2-2</td><td>0.60%</td><td>0.05%</td><td>0.01%</td><td>0.003%</td><td>0.01%</td><td></td><td></td><td></td></tr><tr><td>2-1</td><td>1</td><td>3e-4%</td><td>2e-4%</td><td>3e-4%</td><td>1</td><td>1</td><td>=</td><td></td></tr><tr><td>Total</td><td>100%</td><td>100%</td><td>100%</td><td>100%</td><td>100%</td><td>100%</td><td>100%</td><td>1</td></tr><tr><td>Bit-width</td><td>4</td><td>4</td><td>4</td><td>4</td><td>4</td><td>4</td><td>4</td><td>100% 4</td></tr></table>",
1207
+ "bbox": [
1208
+ 173,
1209
+ 385,
1210
+ 823,
1211
+ 719
1212
+ ],
1213
+ "page_idx": 12
1214
+ },
1215
+ {
1216
+ "type": "text",
1217
+ "text": "B APPENDIX 2: LOSSLESS CNNS WITH LOW-PRECISION WEIGHTS AND LOW-PRECISION ACTIVATIONS ",
1218
+ "text_level": 1,
1219
+ "bbox": [
1220
+ 176,
1221
+ 756,
1222
+ 787,
1223
+ 790
1224
+ ],
1225
+ "page_idx": 12
1226
+ },
1227
+ {
1228
+ "type": "table",
1229
+ "img_path": "images/fd2dabc808ee2c829122068119fef895f5c81e0c10026102779a914047f2ca0d.jpg",
1230
+ "table_caption": [
1231
+ "Table 7: Comparison of our VGG-16 model with 5-bit weights and 4-bit activations, and the pretrained reference with 32-bit floating-point weights and 32-bit float-point activations. "
1232
+ ],
1233
+ "table_footnote": [],
1234
+ "table_body": "<table><tr><td>Network</td><td>Bit-width for weight/activation</td><td>Top-1 error</td><td>Top-5 error</td><td>Decrease in top-1/top-5 error</td></tr><tr><td>VGG-16 ref</td><td>32/32</td><td>31.46%</td><td>11.35%</td><td></td></tr><tr><td>VGG-16</td><td>5/4</td><td>29.82%</td><td>10.19%</td><td>1.64%/1.16%</td></tr></table>",
1235
+ "bbox": [
1236
+ 222,
1237
+ 854,
1238
+ 774,
1239
+ 915
1240
+ ],
1241
+ "page_idx": 12
1242
+ },
1243
+ {
1244
+ "type": "text",
1245
+ "text": "Recently, we have made some good progress on developing our INQ for lossless CNNs with both low-precision weights and low-precision activations. According to the results summarized in Table 7, it can be seen that our VGG-16 model with 5-bit weights and 4-bit activations shows improved top-5 and top-1 recognition rates in comparison to the pre-trained reference with 32-bit floating-point weights and 32-bit floating-point activations. To the best of our knowledge, this should be the best results reported on VGG-16 architecture so far. ",
1246
+ "bbox": [
1247
+ 174,
1248
+ 103,
1249
+ 825,
1250
+ 186
1251
+ ],
1252
+ "page_idx": 13
1253
+ }
1254
+ ]
parse/train/HyQJ-mclg/HyQJ-mclg_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyQJ-mclg/HyQJ-mclg_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJlpM3RqKQ/SJlpM3RqKQ.md ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # EXPANDING THE REACH OF FEDERATED LEARNING BY REDUCING CLIENT RESOURCE REQUIREMENTS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Communication on heterogeneous edge networks is a fundamental bottleneck in Federated Learning (FL), restricting both model capacity and user participation. To address this issue, we introduce two novel strategies to reduce communication costs: (1) the use of lossy compression on the global model sent serverto-client; and (2) Federated Dropout, which allows users to efficiently train locally on smaller subsets of the global model and also provides a reduction in both client-to-server communication and local computation. We empirically show that these strategies, combined with existing compression approaches for client-toserver communication, collectively provide up to a $1 4 \times$ reduction in server-toclient communication, a $1 . 7 \times$ reduction in local computation, and a $2 8 \times$ reduction in upload communication, all without degrading the quality of the final model. We thus comprehensively reduce FL’s impact on client device resources, allowing higher capacity models to be trained, and a more diverse set of users to be reached.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Federated Learning (FL) allows users to reap the benefits of models trained from rich yet sensitive data captured by their mobile devices, without the need to centrally store such data (McMahan et al., 2017; Konecnˇ y et al., 2016a; Smith et al., 2017). Under the FL paradigm, each device performs ´ training on samples available locally and only communicates intermediate model updates.
12
+
13
+ Network speed and number of nodes are two of the core systems aspects that differentiate FL from traditional distributed learning in data centers, with network bandwidth being potentially orders of magnitude slower and the number of worker nodes orders of magnitude larger. Together, these issues exacerbate the communication bottlenecks usually associated with distributed learning, increasing both the number of stragglers and the probability of devices dropping out altogether. The problem is further aggravated when working with high capacity models with large numbers of parameters.
14
+
15
+ Insisting on training these large models using existing federated optimization methods can lead to the systematic exclusion of clients with restricted bandwidth or limited network access from the training stage, and thus to a degraded user experience once these models are served. One naive solution involves training low capacity models with smaller communication footprints, at the expense of model accuracy. As a middle ground, we could develop strategies to reduce the communication footprint of larger, high-capacity models. Recent work (Konecnˇ y et al., 2016b) has in fact taken ´ this approach, but only in the context of client-to-server FL communication. Their success with lossy compression strategies is perhaps not surprising, as the clients’ lossy, yet unbiased, updates are eventually averaged over many users. However, server-to-client exchanges do not benefit from such averaging. As such, they remain a main bottleneck in our goal of expanding FL’s reach.
16
+
17
+ In this work, we propose two novel strategies to mitigate the server-to-client communication footprint, and empirically demonstrate their efficacy and seamless integration with existing client-toserver strategies. The specific contributions of this paper are as follows:
18
+
19
+ 1. We study lossily compressing the models downloaded by the clients, thus addressing the open question as to whether these approaches are amenable in the context of server-to-client exchanges. We also introduce the use of the theoretically motivated Kashin’s representation to reduce the error associated with the lossy compression (Lyubarskii & Vershynin, 2010; Kashin, 1977).
20
+
21
+ ![](images/09f2c19b96d2be5f52ed90bc55800a74b6fd0ad93b78c70fc4916cc96768b8a1.jpg)
22
+ Figure 1: Combination of our proposed strategies during FL training. We reduce the size of the model to be communicated by (1) constructing a sub-model via Federated Dropout, and by (2) lossily compressing the resulting object. This compressed model is then sent to the client, who (3) decompresses and trains it using local data, and (4) compresses the final update. This update is sent back to the server, where it is (5) decompressed and finally, (6) aggregated into the global model.
23
+
24
+ 2. We introduce Federated Dropout, a technique that builds upon the popular idea of dropout (Srivastava et al., 2014), yet is primarily motivated by systems-related concerns. Our approach enables each device to locally operate on a smaller sub-model (i.e. with smaller weight matrices) while still providing updates that can be applied to the larger global model on the server. It thus reduces communication costs by allowing for these smaller sub-models to be exchanged between server and clients, while also reducing the computational cost of local training.
25
+
26
+ 3. We empirically show that not only are these approaches compatible with one another, but with existing client-to-server compression. Combining these approaches during FL training (see Figure 1) reduces the size of the downloaded models up to $1 4 \times$ , the size of the corresponding updates up to $2 8 \times$ , and the required local computations by up to $1 . 7 \times$ , all without degrading the model’s accuracy and only at the expense of a slightly slower convergence rate (in terms of number of communication rounds).
27
+
28
+ # 2 RELATED WORK
29
+
30
+ We review the relevant related work given our objective of reducing the communication footprint in server-to-client exchanges in Federated Learning (FL).
31
+
32
+ Federated Learning Federated Learning (FL) is a technique that aims to learn a global model over data distributed across multiple edge devices (usually mobile phones) without the data ever leaving the device on which it was generated (McMahan et al., 2017). It brings along a set of statistical (nonIID, unbalanced data) and systems (stragglers, communication bottlenecks, etc.) challenges which differentiate it from traditional distributed learning in the data center, and which have been tackled by several works. For instance, McMahan et al. (2017) propose Federated Averaging (FedAvg), which in its canonical form works by (1) sending the global model to a subset of the available devices, (2) training the model on each device using the available local data, and (3) averaging the local updates to thus end a round of training. In contrast Smith et al. (2017) present a multi-task variant that also models the relationship between clients in order to learn personalized yet related models for each device. Nonetheless, all approaches we are aware of (including the two aforementioned ones) require continued exchanges between a central server and its clients across a potentially slow network.
33
+
34
+ Communication-efficient distributed learning Distributed learning is known to suffer from communication overheads associated with the frequent gradient updates exchanged among nodes (Wang et al., 2018; Dean et al., 2012; Smith et al., 2018; Reddi et al., 2016). To reduce these bottlenecks, recent studies focus on communicating a sparsified, quantized or randomly subsampled version of the updates. Although these operations introduce noise, they have been shown both empirically and theoretically to maintain the quality of the trained models. We refer the reader to the introduction of Wang et al. (2018) for more details and references.
35
+
36
+ In the context of FL, Konecnˇ y et al. (2016b) successfully perform lossy compression on the client- ´ to-server exchanges (i.e. the model updates). Of particular interest is their use of the randomized Hadamard transform to reduce the error incurred by the subsequent quantization. This is due to the fact that the Hadamard transform, in expectation, spreads a vector’s information more evenly across its components (Suresh et al., 2017; Konecnˇ y & Richt ´ arik, 2016). ´
37
+
38
+ We note, however, that neither the work on traditional distributed learning nor the work of Konecnˇ y´ et al. (2016b) considers compressing the server-to-client exchanges. Nevertheless, in FL, downloading a large model can still be a considerable burden for users, particularly for those in regions with network constraints. Furthermore, as FL is expected to deal with a large number of devices, communicating the global model may even become a bottleneck for the server (as it would, ideally, send the model to the clients in parallel).
39
+
40
+ Model compression Deep models tend to demand significant computational resources both for training and inference. Using them on edge devices is therefore not a straightforward task. Because of this, several recent works have proposed compressing the models before deploying them on-device (Ravi, 2018). Popular alternatives include pruning the least useful connections in a network (Han et al., 2016; 2015), weight quantization (Hubara et al., 2016; Lin et al., 2017; De Sa et al., 2018), and model distillation (Hinton et al., 2015). Many of these approaches, however, are not applicable for the problems addressed in this work, as they are either ingrained in the training procedure (and our server holds no data and performs no actual training) or are mostly optimized for inference. In the context of FL, we need something computationally light that can be efficiently applied in every round and that also allows for subsequent local training. We do note, however, that some of the previously mentioned approaches could potentially be leveraged at inference time in the federated setting, and exploring these directions would be an interesting avenue for further research.
41
+
42
+ # 3 METHODS
43
+
44
+ In this section, we present our proposed strategies for reducing Federated Learning’s (FL) serverto-client communication costs, namely lossy compression techniques (Section 3.1) and Federated Dropout (Section 3.2). We introduce the strategies separately, but they are fully compatible with one another (as we show in Section 4.4).
45
+
46
+ # 3.1 LOSSY COMPRESSION
47
+
48
+ Our first approach at reducing bandwidth usage consists of using lightweight lossy compression techniques that can be applied to an already trained model and that, when reversed (i.e. after decompression), maintain the model’s quality. The particular set of techniques we propose are inspired by those successfully used by Konecnˇ y et al. (2016b) to compress the client-to-server updates. We ap- ´ ply them, however, to the server-to-client exchanges, meaning we do not get the benefit of averaging the noisy decompressions over many updates.
49
+
50
+ Our method works as follows: we reshape each to-be-compressed weight matrix in our model into a vector $\textbf { \em w }$ and (1) apply a basis transform to it. We then (2) subsample and (3) quantize the resulting vector and finally send it through the network. Once received, we simply execute the respective inverse transformations to finally obtain a noisy version of $\pmb { w }$ .
51
+
52
+ Basis transform Previous work (Lyubarskii & Vershynin, 2010; Konecnˇ y et al., 2016b) has ex- ´ plored the idea of using a basis transform to reduce the error that will later be incurred by perturbations such as quantization. In particular, Konecnˇ y et al. (2016b) use the random Hadamard transform ´ to more evenly spread out a vector’s information among its dimensions. We go even further and also apply the classical results of Kashin (1977) to spread a vector’s information as much as possible in every dimension (Lyubarskii $\&$ Vershynin, 2010). Thus, Kashin’s representation mitigates the error incurred by subsequent quantization compared to using the random Hadamard transform. For a more detailed discussion, we refer the reader to Section A.3 in the Appendix.
53
+
54
+ Subsampling For $s \in [ 0 , 1 )$ , we zero out a $1 - s$ fraction of the elements in each weight matrix, appropriately re-scaling the remaining values. The elements to zero out are picked uniformly at random. Thus, we only communicate the non-zero values and a random seed which allows recovery of the corresponding indices.
55
+
56
+ (i) Original network, with a , ${ \sf b } _ { 2 ^ { \prime } }$ and ${ \mathsf { C } } _ { 3 }$ marked for dropout (ii) On-device network after Federated Dropout
57
+
58
+ ![](images/509a5f9d97f548d4b7f1844c109cda9e7aa6e67e540756f0f785fd692a5e0cd1.jpg)
59
+
60
+ ![](images/68b77fed3a5f430e2c1b733186023a45d7375fed0a3e875ae3bd3a6d27095687.jpg)
61
+ Figure 2: Federated Dropout applied to two fully-connected layers. Notices activation vectors $a , b =$ $\sigma ( U a )$ and $c = \sigma ( V b )$ in (I). In this example, we randomly select exactly one activation from each layer to drop, namely $a _ { 1 } , b _ { 2 }$ , and $c _ { 3 }$ , producing a sub-model with $2 \times 2$ dense matrices, as in (II).
62
+
63
+ Probabilistic quantization For a vector $\pmb { w } = ( w _ { 1 } , \dots , w _ { n } )$ , let us denote $\begin{array} { r } { w _ { \operatorname* { m i n } } = \operatorname* { m i n } _ { j } \{ w _ { j } \} _ { j = 1 } ^ { n } } \end{array}$ and $w _ { \mathrm { m a x } } = \operatorname* { m a x } _ { j } \{ w _ { j } \} _ { j = 1 } ^ { n }$ . Uniform probabilistic 1-bit quantization replaces every element $w _ { i }$ by $w _ { \mathrm { m i n } }$ with probability $\frac { w _ { \mathrm { m a x } } - w _ { i } } { w _ { \mathrm { m a x } } - w _ { \mathrm { m i n } } }$ , and by $w _ { \mathrm { m a x } }$ otherwise. It is straightforward to verify this yields an unbiased estimate of $\pmb { w }$ . Now, for $q$ -bit uniform quantization, we first equally divide $[ w _ { \mathrm { m i n } } , w _ { \mathrm { m a x } } ]$ into $2 ^ { q }$ intervals. If $w _ { i }$ falls in the interval bounded by $w ^ { \prime }$ and $w ^ { \prime \prime }$ , the quantization operates by replacing $w _ { \mathrm { m i n } }$ and $w _ { \mathrm { m a x } }$ in step two of the above algorithm by $w ^ { \prime }$ and $w ^ { \prime \prime }$ , respectively.
64
+
65
+ # 3.2 FEDERATED DROPOUT
66
+
67
+ To further reduce communication costs, we propose an algorithm in which each client, instead of locally training an update to the whole global model, trains an update to a smaller sub-model. These sub-models are subsets of the global model and, as such, the computed local updates have a natural interpretation as updates to the larger global model. We call this technique Federated Dropout as it is inspired by the well known idea of dropout (Srivastava et al., 2014), albeit motivated primarily by systems-level concerns rather than as a strategy for regularization.
68
+
69
+ In traditional dropout, hidden units are multiplied by a random binary mask in order to drop an expected fraction of neurons during each training pass through the network. Because the mask changes in each pass, each pass is effectively computing a gradient with respect to a different submodel. These sub-models can have different sizes (architectures) depending on how many neurons are dropped in each layer. Now, even though some units are dropped, in all implementations we are aware of, activations are still multiplied with the original weight matrices, they just have some useless rows and columns.
70
+
71
+ To extend this idea to FL and realize communication and computation savings, we instead zero out a fixed number of activations at each fully-connected layer, so all possible sub-models have the same reduced architecture; see Figure 2. The server can map the necessary values into this reduced architecture, meaning only the necessary coefficients are transmitted to the client, re-packed as smaller dense matrices. The client (which may be fully unaware of the original model’s architecture) trains its sub-model and sends its update, which the server then maps back to the global model1. For convolutional layers, zeroing out activations would not realize any space savings, so we instead drop out a fixed percentage of filters.
72
+
73
+ This technique brings two additional benefits beyond savings in server-to-client communication. First, the size of the client-to-server updates is also reduced. Second, the local training procedure now requires a smaller number of FLOPS per gradient evaluation, either because all matrixmultiplies are now of smaller dimensions (for fully-connected layers) or because less filters have to be applied (for convolutional ones). Thus, we reduce local computational costs.
74
+
75
+ # 4 EXPERIMENTAL RESULTS
76
+
77
+ In this section, we first present our experimental setup (Section 4.1) before presenting results for our lossy compression (Section 4.2) and Federated Dropout (Section 4.3) strategies. Finally, we
78
+
79
+ Table 1: Summary of Datasets used in the experiments.
80
+
81
+ <table><tr><td>Dataset</td><td># of users</td><td>ID</td><td>Training samples per user mean</td><td>0</td><td>Test samples per user</td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>mean</td><td>0</td></tr><tr><td>MNIST</td><td>100</td><td>Yes</td><td>600</td><td>0</td><td>100</td><td>0</td></tr><tr><td>CIFAR-10</td><td>100</td><td>Yes</td><td>500</td><td>0</td><td>100</td><td>0</td></tr><tr><td>EMNIST</td><td>3550</td><td>No</td><td>181.46</td><td>71.15</td><td>45.37</td><td>17.79</td></tr></table>
82
+
83
+ show experiments that use both of these strategies in tandem with those proposed in Konecnˇ y et al.´ (2016b) to also compress client-to-server exchanges (Section 4.4).
84
+
85
+ # 4.1 EXPERIMENTAL SETUP
86
+
87
+ Optimization Algorithm We focus on testing our strategies against already established FL benchmarks. In particular, we restrict our experiments to the use of Federated Averaging (FedAvg) (McMahan et al., 2017).
88
+
89
+ Datasets We use three datasets in our experiments: MNIST (LeCun et al., 1998), CIFAR10 (Krizhevsky & Hinton, 2009) and Extended MNIST or EMNIST (Cohen et al., 2017). The first two were used to benchmark the performance of FedAvg and of lossy compression for clientto-server updates (Konecnˇ y et al., 2016b). For these two datasets, we use the artificial IID partition ´ proposed by these previous works. Meanwhile, EMNIST is a dataset that has only recently been introduced as a useful benchmark for FL. Derived from the same source as MNIST, it also includes the identifier of the user that wrote the character (digit, lower or upper case letter), creating a natural and much more realistic partition of the data. Table 1 summarizes the basic dataset properties. Due to space constraints, we relegate the MNIST results to Appendix B, though all conclusions presented here also qualitatively hold for these experiments.
90
+
91
+ Models For MNIST’s digit recognition task we use the same model as McMahan et al. (2017): a CNN with two $5 \mathrm { x } 5$ convolution layers (the first with 32 channels, the second with 64, each followed by $2 \mathbf { x } 2$ max pooling), a fully connected layer with 512 units and ReLu activation, and a final softmax output layer, for a total of more than $\mathrm { 1 0 ^ { 6 } }$ parameters. For CIFAR-10, we use the all convolutional model taken from what is described as “Model $\mathbf { { C } } ^ { \ast }$ in Springenberg et al. (2015), which also has a total of over $1 0 ^ { 6 }$ parameters. Finally, for EMNIST we use a variant of the MNIST model with 2048 units in the final fully connected layer. While none of these models is the state-of-the-art, they are sufficient for evaluating our methods, as we wish to measure accuracy degradation against a baseline and not to achieve the best possible accuracy on these tasks.
92
+
93
+ Hyperparameters We do not optimize our experiments for FedAvg’s hyperparameters, always using those that proved to work reasonably well in our baseline setting which involves no compression and no Federated Dropout. For local training at each client we use static learning rates of 0.15 for MNIST, 0.05 for CIFAR-10 and 0.035 for EMNIST. We select 10 random clients per round for MNIST and CIFAR-10, and 35 for EMNIST. Finally, each selected client trains for one epoch per round using a batch size of 10.
94
+
95
+ # 4.2 LOSSY COMPRESSION
96
+
97
+ We focus on testing how the compression strategies presented in Section 3.1 impact the global model’s accuracy. Like Konecnˇ y et al. (2016b), we don’t compress all variables of our models. As ´ they mention, compressing smaller variables causes significant accuracy degradation but translates into minuscule communication savings. As such, we don’t compress biases for any of the models2.
98
+
99
+ In our experiments, we vary three parameters:
100
+
101
+ 1. The type of basis transform applied: no transform or identity (I), randomized Hadamard transform (HD) and Kashin’s representation (K).
102
+
103
+ ![](images/4e198c0b75739883172b561a02f9a11936f1fe7be1f337102e3e6aec37d9a0af.jpg)
104
+ Figure 3: Effect of varying our lossy compression parameters on CIFAR-10 and EMNIST.
105
+
106
+ 2. The subsampling rate $s$ , which refers to the fraction of weights that are kept (i.e. $1 - s$ of the weights are zeroed out).
107
+
108
+ 3. The number of quantization bits $q$
109
+
110
+ Figure 3 shows the effect of varying these parameters for CIFAR-10 and EMNIST. We repeat each experiment 10 times and report the mean accuracy among these repetitions. The three main takeaways from these experiments are: (1) for every model, we are able find a setting of compression parameters that at the very least matches our baseline; (2) Kashin’s representation proves to be most useful for aggressive quantization values; and (3) it appears that subsampling is not all that helpful in the server-to-client setting. We proceed to give more details about these highlights.
111
+
112
+ The first takeaway is that, for every model, we are indeed able find a setting of compression parameters that matches or, in some cases, slightly outperforms our baseline. In particular, we are able to quantize every model to 4 bits, which translates to a reduction in communication of nearly $8 \times$ .
113
+
114
+ The second takeaway is that Kashin’s representation proves to be most useful for aggressive quantization values, i.e. for low values of $q$ . In our experiments, gains were observed only in regimes where the overall accuracy had already degraded, but we hypothesize that the use of Kashin’s representation may provide clearer benefits in the compression of client-to-server gradient updates, where more aggressive quantization is admissible. We also highlight that using Kashin’s representation may be beneficial for other datasets. Indeed, its computational costs are comparable to that of the random Hadamard transform while also providing better theoretical error rates (see Section A.1). We refer the reader to Section A.3 in the Appendix, where we show preliminary results that demonstrate Kashin’s potential to dominate over the randomized Hadamard transform in compressing fully-trained models, particularly for small values of $q$ .
115
+
116
+ Finally, it appears that subsampling is not all that helpful in this server-to-client setting. This contrasts with the results presented by Konecnˇ y et al. (2016b) for compressed client-to-server updates, ´ where aggressive values of s were admissible. This trend extends to the other compression parameters: server-to-client compression of global models requires much more conservative settings than client-to-server compression of model updates. For example, for CIFAR-10, Konecnˇ y et al. ´ (2016b) get away with using $s = 0 . 2 5$ and $q = 8$ under a random Hadamard transform representation3. Meanwhile, in Figure 3 we can see that, for the same $q$ and representation, $s = 0 . 5$ already causes an unacceptable degradation of the accuracy. This is not surprising, since it is expected that the updates’ error will cancel out once several of them get aggregated at the server, which is not true for model downloads.
117
+
118
+ ![](images/b8cee57370ffcda99e8a75f325bfa49d39c0015a0e8228e901acbf70aef7b22e.jpg)
119
+ Figure 4: Results for Federated Dropout, varying the percentage of neurons kept in each layer.
120
+
121
+ # 4.3 FEDERATED DROPOUT
122
+
123
+ We focus on testing how the global model’s accuracy deteriorates once we use the strategy proposed in Section 3.2. In these experiments, we vary the percentage of neurons (or filters for the case of convolutional layers) that are kept on each layer of our models (we call this the federated dropout rate). We always keep the totality of the input and logits layers, and never drop the neuron that can be associated to the bias term.
124
+
125
+ Figure 4 shows how the convergence of our three models behaves under different federated dropout rates. We repeat each experiment 10 times and report the mean among these repetitions. The main takeaway from these experiments is that, for every model, it is possible to find a federated dropout rate less than 1.0 that matches or, in some cases, even improves on the final accuracy of the model.
126
+
127
+ A federated dropout rate of 0.75 seems to work across the board. This corresponds to dropping $2 5 \%$ of the rows and columns of the weight matrices of fully-connected layers (which translates to $\smash { 1 \sim 4 3 \% }$ reduction in size), and to dropping the same percentage of filters of each convolutional layer. Now, because fully connected layers correspond to most of the parameters of the MNIST and EMNIST models, the $\sim 4 3 \%$ reduction will apply to them both in terms of the amount of data that has to be communicated and of the number of FLOPS required for local training. Meanwhile, because our CIFAR model is fully convolutional, gains will be of $2 5 \%$ .
128
+
129
+ As a final comment, we note that more aggressive federated dropout rates tend to slow down the convergence rate of the model, even if they sometimes result in a higher accuracy.
130
+
131
+ # 4.4 REDUCING THE OVERALL COMMUNICATION COST
132
+
133
+ Our final set of experiments shows how our models behave once we combine our two strategies, lossy compression and Federated Dropout, with existing client-to-server compression schemes (Konecnˇ y et al., 2016b), in order to explore how the different components of this end- ´ to-end, communication efficient framework interact. To do this, we evaluate how our models behave under 3 different compression schemes (aggressive, moderate and conservative) and 4 different federated dropout rates (0.5, 0.625, 0.75 and 0.875). The values for these schemes and rates were picked based on the observed behavior during the previous experiments, being somewhat more conservative as we are now combining different sources of noise. Table 2 describes the settings for each scheme.
134
+
135
+ Figure 5 shows how our CIFAR-10 and EMNIST models behave under each of the previously mentioned conditions. We repeat each experiment 5 times and report the mean among these repetitions. For all three models, a federated dropout rate of 0.75 resulted in models with no accuracy degradation under all compression schemes except for the most aggressive. For MNIST and EMNIST, this translates into server-to-client communication savings of $1 4 \times$ , client-to-server savings of $2 8 \times$ and a reduction of $1 . 7 \times$ in local computation, all without degrading the accuracy of the final global model (and sometimes even improving it). For CIFAR-10, we provide server-to-client communication savings of $1 0 \times$ , client-to-server savings of $2 1 \times$ and local computation savings of $1 . 3 \times$ .
136
+
137
+ Based on these results, we also hypothesize that a federated dropout rate of 0.75 combined with a moderate or conservative compression scheme will be a good starting point when setting these parameters in practice.
138
+
139
+ Table 2: Settings for each of our proposed compression schemes.
140
+
141
+ <table><tr><td>Scheme</td><td colspan="3">Client-to-Server</td><td colspan="3">Server-to-Client</td></tr><tr><td></td><td>transf.</td><td>S</td><td>q</td><td>transf.</td><td>S</td><td>q</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Aggressive</td><td>Kashin&#x27;s</td><td>0.4</td><td>2</td><td>Kashin&#x27;s</td><td>1.0</td><td>3</td></tr><tr><td>Moderate</td><td>Kashin&#x27;s</td><td>0.5</td><td>4</td><td>Kashin&#x27;s</td><td>1.0</td><td>5</td></tr><tr><td>Conservative</td><td>Kashin&#x27;s</td><td>1.0</td><td>8</td><td>Kashin&#x27;s</td><td>1.0</td><td>8</td></tr></table>
142
+
143
+ ![](images/6f647972ab35ad2d0bac0fe55163b5e6c42b4362445a0a8fa5dba0fb4a5fdebd.jpg)
144
+ Figure 5: Effect of using both compression and Federated Dropout on CIFAR-10 and EMNIST.
145
+
146
+ # 5 CONCLUSIONS AND OPEN QUESTIONS
147
+
148
+ The ecosystem currently targeted by Federated Learning (FL) is marked by heterogeneous edge networks that can potentially be orders of magnitude slower than the ones in datacenters. At the same time, FL can be quite demanding in terms of bandwidth, particularly when used to train deep models. We are thus at risk of either restricting the type of models we are able to train using this technique, or of excluding large groups of users from federated training. Both issues are problematic, but because access to high-end networks also appears to be correlated to sensitive factors such as income and age (Anzilotti, 2016; Pew Research Center, 2018), the latter may have implications related to fairness, making it particularly sensitive as we continue the adoption of FL systems.
149
+
150
+ Our work dramatically reduces the communication overheads in FL by (1) using lossy compression techniques on the server-to-client exchanges and by (2) using Federated Dropout, a technique that only communicates subsets of the global model to each client. We empirically show that a combination of our strategies with previous work allows for up to a $1 4 \times$ reduction in server-to-client communication, a $1 . 7 \times$ reduction in local computation and a $2 8 \times$ reduction in client-to-server communication.
151
+
152
+ In future work, we plan to: explore the efficacy of introducing a server step size in order to account for the use of different sub-models in Federated Dropout; investigate the possibility of using the same sub-models for all the selected clients in one round; and further characterize the benefits of Kashin’s representation in compressing the gradient updates in FL and in traditional model serving. An additional future direction to pursue related to fairness involves studying the effect of adaptively using these strategies (i.e. using more aggressive compression and federated dropout rates for some users) to prevent unfairly biased models. Finally, we note that the success of Federated Dropout suggests an entirely new avenue of research in which smaller, perhaps personalized, sub-models are eventually aggregated into a larger, more complex model that can be managed by the server. Contrary to the classic datacenter setting, the computational overhead associated with first creating and then aggregating the sub-models is justified in FL.
153
+
154
+ REFERENCES
155
+ Eillie Anzilotti. Visualizing the state of global internet connectivity, Aug 2016. URL https://www.citylab.com/life/2016/08/ visualizing-the-state-of-global-internet-connectivity/496328/.
156
+ Emmanuel J Candes, Justin K Romberg, and Terence Tao. Stable signal recovery from incomplete and inaccurate measurements. Communications on Pure and Applied Mathematics: A Journal Issued by the Courant Institute of Mathematical Sciences, 59(8):1207–1223, 2006.
157
+ Gregory Cohen, Saeed Afshar, Jonathan Tapson, and Andre van Schaik. EMNIST: an extension of ´ MNIST to handwritten letters. arXiv preprint arXiv:1702.05373, 2017.
158
+ Christopher De Sa, Megan Leszczynski, Jian Zhang, Alana Marzoev, Christopher R Aberger, Kunle Olukotun, and Christopher Re. High-accuracy low-precision training. ´ arXiv preprint arXiv:1803.03383, 2018.
159
+ Jeffrey Dean, Greg Corrado, Rajat Monga, Kai Chen, Matthieu Devin, Mark Mao, Andrew Senior, Paul Tucker, Ke Yang, Quoc V Le, et al. Large scale distributed deep networks. In Advances in neural information processing systems, pp. 1223–1231, 2012.
160
+ Simon Foucart and Holger Rauhut. A mathematical introduction to compressive sensing, volume 1. Birkhauser Basel, 2013. ¨
161
+ Song Han, Jeff Pool, John Tran, and William J Dally. Learning both weights and connections for efficient neural network. In Advances in neural information processing systems, pp. 1135–1143, 2015.
162
+ Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. International Conference on Learning Representations, 2016.
163
+ Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
164
+ Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks. In Advances in neural information processing systems, pp. 4107–4115, 2016.
165
+ Boris Sergeevich Kashin. Diameters of some finite-dimensional sets and classes of smooth functions. Izvestiya Rossiiskoi Akademii Nauk. Seriya Matematicheskaya, 41(2):334–351, 1977.
166
+ Jakub Konecnˇ y and Peter Richt ´ arik. Randomized distributed mean estimation: Accuracy vs com- ´ munication. arXiv preprint arXiv:1611.07555, 2016.
167
+ Jakub Konecnˇ y, H Brendan McMahan, Daniel Ramage, and Peter Richt ´ arik. Federated optimization: ´ Distributed machine learning for on-device intelligence. arXiv preprint arXiv:1610.02527, 2016a.
168
+ Jakub Konecnˇ y, H Brendan McMahan, Felix X Yu, Peter Richt ´ arik, Ananda Theertha Suresh, and ´ Dave Bacon. Federated learning: Strategies for improving communication efficiency. arXiv preprint arXiv:1610.05492, 2016b.
169
+ Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
170
+ Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
171
+ Xiaofan Lin, Cong Zhao, and Wei Pan. Towards accurate binary convolutional neural network. In Advances in Neural Information Processing Systems, pp. 345–353, 2017.
172
+ Yurii Lyubarskii and Roman Vershynin. Uncertainty principles and vector quantization. IEEE Transactions on Information Theory, 56(7):3491–3501, 2010.
173
+
174
+ H Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. pp. 1273–1282, 2017.
175
+
176
+ Pew Research Center. Mobile fact sheet, Feb 2018. URL http://www.pewinternet.org/ fact-sheet/mobile/.
177
+
178
+ Sujith Ravi. Custom On-Device ML Models with Learn2Compress, May 2018. URL https: //ai.googleblog.com/2018/05/custom-on-device-ml-models.html.
179
+
180
+ Sashank J Reddi, Jakub Konecnˇ y, Peter Richt ´ arik, Barnab ´ as P ´ ocz ´ os, and Alex Smola. Aide: fast ´ and communication efficient distributed optimization. arXiv preprint arXiv:1608.06879, 2016.
181
+
182
+ Virginia Smith, Chao-Kai Chiang, Maziar Sanjabi, and Ameet S Talwalkar. Federated multi-task learning. In Advances in Neural Information Processing Systems, pp. 4424–4434, 2017.
183
+
184
+ Virginia Smith, Simone Forte, Ma Chenxin, Martin Taka´c, Michael I Jordan, and Martin Jaggi. ˇ Cocoa: A general framework for communication-efficient distributed optimization. Journal of Machine Learning Research, 18:230, 2018.
185
+
186
+ Jost Tobias Springenberg, Alexey Dosovitskiy, Thomas Brox, and Martin Riedmiller. Striving for simplicity: The all convolutional net. International Conference on Learning Representations (workshop track), 2015.
187
+
188
+ Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research, 15(1):1929–1958, 2014.
189
+
190
+ Ananda Theertha Suresh, Felix X Yu, Sanjiv Kumar, and H Brendan McMahan. Distributed mean estimation with limited communication. In International Conference on Machine Learning, pp. 3329–3337, 2017.
191
+
192
+ Hongyi Wang, Scott Sievert, Zachary Charles, Dimitris Papailiopoulos, and Stephen Wright. ATOMO: Communication-efficient Learning via Atomic Sparsification. arXiv preprint arXiv:1806.04090, 2018.
193
+
194
+ # A KASHIN’S REPRESENTATION
195
+
196
+ For reasons of space, we have relegated a more detailed discussion of Kashin’s representation (see Section 3) to the Appendix. In this section, we briefly discuss Kashin’s representation both from a theoretical (Section A.1) and practical (Section A.2) standpoints. Finally, we present some preliminary results that argue the potential of Kashin’s representation to dominate over the random Hadamard transform with respect to the size vs. accuracy trade-off (Section A.3).
197
+
198
+ # A.1 THEORETICAL OVERVIEW
199
+
200
+ The idea of using the classical results of Kashin (1977) to increase the robustness of coefficients to perturbations was first introduced by Lyubarskii & Vershynin (2010). Their result states that, given a tight frame satisfying a form of uncertainty principle, a weaker notion of the RIP (Candes et al., 2006), it is possible to convert the frame representation of every vector into the more robust Kashin’s representation, whose coefficients will have the smallest possible dynamic range.
201
+
202
+ Error rates Since the results of Suresh et al. (2017) (who quantified the reduction in quantization error due to the Hadamard transform) rely on exactly this notion of dynamic range, and assuming the subsampled randomized Hadamard transform satisfies the uncertainty principle, Theorem 3.5 of Lyubarskii & Vershynin (2010) can be directly used as a drop-in replacement for Lemma 7 in Suresh et al. (2017), removing the logarithmic dependence on dimension from Theorem 3 therein, matching the lower bounds. We do not provide the complete proof as, beyond drawing this connection, it does not imply any novelty whatsoever. However, an open question remains, as we are not aware of a result showing what are the parameters of the uncertainty principle guaranteed by the subsampled randomized Hadamard transform. They exist however, as the transform is known to satisfy the RIP (Foucart & Rauhut, 2013), which is a stronger notion.
203
+
204
+ # A.2 PRACTICAL CONSIDERATIONS
205
+
206
+ In practice, given a tight frame, the algorithm for computing Kashin’s representation is straightforward. It runs for $n$ iterations, and takes parameters $\eta , \delta$ as input. In a single iteration, one first computes the frame coefficients, projects them onto a $L _ { \infty }$ ball, and reconstructs the error in the original domain. Another iteration proceeds starting with the reconstructed error and a smaller ball. We refer the reader to Lyubarskii & Vershynin (2010) for more details regarding $\eta , \delta$ and their relationship with the uncertainty principle.
207
+
208
+ In our work, we use the randomized Hadamard transform as the initial tight frame (see Section A.1 for details on why this is possible). We also run the algorithm for just $n = 2$ iterations (as very often this provides most of the benefit), fixed $\delta = 1$ , and used a variant of the algorithm which yields an exact representation (omitting the $L _ { \infty }$ projection in the last iteration). Given this, the choice of $\eta$ is irrelevant. The dominant part of the computation is then three applications of the fast Walsh-Hadamard transform, as opposed to a single one in Konecnˇ y et al. (2016b)). ´
209
+
210
+ As a particular example, say we are to compress an 80-dimensional vector. We first pad the vector with zeros, so that its dimension is 128 (the closest larger power of 2). Then, we multiply the vector by a diagonal matrix with independent Rademacher random variables $( D \in \mathbb { R } ^ { 1 2 8 \times 1 2 8 }$ ), followed by the application of the fast Walsh-Hadamard transform $( H \in \mathbb { R } ^ { 1 2 8 \times 1 2 8 } ,$ ). The first 80 columns of the matrix $H D$ correspond to the tight frame used to find the Kashin’s representation. Nonetheless, we avoid representing this explicitly.
211
+
212
+ Finally, note that, if the initial dimension was a power of 2, we need to pad zeros to the next power of 2 in order to realize any benefit over just using the Hadamard transform.
213
+
214
+ # A.3 DOMINANCE OVER HADAMARD
215
+
216
+ Given the theoretical properties of Kashin’s representation, we hypothesize it should dominate the random Hadamard transform when it comes to the size vs. accuracy trade-off. A preliminary experiment to corroborate this hypothesis is the following:
217
+
218
+ 1. We train an MNIST model until we get an accuracy of around $9 9 . 3 \%$
219
+
220
+ 2. We compress the original model using some linear transform, some subsampling ratio and some number of quantization bits.
221
+
222
+ 3. We decompress the model and evaluate both its new accuracy and its $L _ { 2 }$ distance to the original model.
223
+
224
+ 4. We repeat the previous two steps for different linear transforms (identity, random Hadamard transform and Kashin’s representation), subsampling ratios (0.25, 0.5 and 1.0) and quantization bits (1, 2, 4, 8, 16).
225
+
226
+ An important detail is that, whenever we use Kashin’s representation, we do a grid search over the best values for $n$ (from 1 to 10) and $\eta$ . However, $\delta$ is kept fixed as 1.
227
+
228
+ The results of this experiment are shown in Figure 6. In the legend, R corresponds to rotation — I for identity, HD for randomized Hadamard, Kashin for Kashin based on the randomized Hadamard; and SR corresponds to subsampling ratio — the fraction of elements to be kept non-zero. In the top row, the figure shows the relationship of the accuracy of the compressed model vs. the number of bits used for quantization, and vs. the model’s size (in MB). In the bottom row, the $L _ { 2 }$ error incurred is plotted against the same. It is very clear then that Kashin’s representation does dominate the other two representations when it comes to the size vs. accuracy trade-off, making up the Pareto frontier for all combinations of subsampling ratio and quantization bits. Nevertheless, we did optimize over the parameters associated with Kashin’s algorithm, something that does not need to be done for the random Hadamard transform. In Section A.2, we propose a set of values that worked well enough for our experiments, but further exploration on how to easily determine these values is in order.
229
+
230
+ ![](images/abf34396d464b2bb8d7b9fa4e35ae23bba50f9800a6aa216d47354b141f7e471.jpg)
231
+ Figure 6: Compressing an already trained MNIST model with linear transform $^ +$ subsampling $^ +$ uniform quantization.
232
+
233
+ # B MNIST EXPERIMENTAL RESULTS
234
+
235
+ For reasons of space, we have relegated the experimental results using MNIST (see Section 4) (Section A) to the Appendix.
236
+
237
+ Figure 7 shows the results of using our lossy compression on MNIST under the experimental setup presented in Section 4.2. Meanwhile, Figure 8 shows the results of using Federated Dropout (see Section 4.3 for details). Finally, Figure 9 shows the results of performing both lossy compression for downloads and uploads, as well as Federated Dropout, as described in Section 4.4.
238
+
239
+ ![](images/76b0d59f01e9eb0328dc020065b77b91433f5eec90e30a1e84877121f28377b3.jpg)
240
+ Figure 7: Effect of varying our lossy compression parameters on the convergence MNIST.
241
+
242
+ ![](images/09ea07f075bbf2194d3e9f2122c5ec2706362418c4a9d51d750b66d8b33eca43.jpg)
243
+ Figure 8: Effect of varying the percentage of neurons kept in each layer on MNIST.
244
+
245
+ ![](images/76fe8639e916dacc9a7c5c53cddd74600a52a6c614b2572b179f9d9a8004aa1c.jpg)
246
+ Figure 9: Effect of using both lossy compression and Federated Dropout on MNIST.
parse/train/SJlpM3RqKQ/SJlpM3RqKQ_content_list.json ADDED
@@ -0,0 +1,1267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "EXPANDING THE REACH OF FEDERATED LEARNING BY REDUCING CLIENT RESOURCE REQUIREMENTS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 795,
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
+ 172,
20
+ 398,
21
+ 200
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 237,
32
+ 544,
33
+ 252
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Communication on heterogeneous edge networks is a fundamental bottleneck in Federated Learning (FL), restricting both model capacity and user participation. To address this issue, we introduce two novel strategies to reduce communication costs: (1) the use of lossy compression on the global model sent serverto-client; and (2) Federated Dropout, which allows users to efficiently train locally on smaller subsets of the global model and also provides a reduction in both client-to-server communication and local computation. We empirically show that these strategies, combined with existing compression approaches for client-toserver communication, collectively provide up to a $1 4 \\times$ reduction in server-toclient communication, a $1 . 7 \\times$ reduction in local computation, and a $2 8 \\times$ reduction in upload communication, all without degrading the quality of the final model. We thus comprehensively reduce FL’s impact on client device resources, allowing higher capacity models to be trained, and a more diverse set of users to be reached. ",
40
+ "bbox": [
41
+ 233,
42
+ 267,
43
+ 764,
44
+ 446
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 472,
55
+ 336,
56
+ 487
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Federated Learning (FL) allows users to reap the benefits of models trained from rich yet sensitive data captured by their mobile devices, without the need to centrally store such data (McMahan et al., 2017; Konecnˇ y et al., 2016a; Smith et al., 2017). Under the FL paradigm, each device performs ´ training on samples available locally and only communicates intermediate model updates. ",
63
+ "bbox": [
64
+ 174,
65
+ 502,
66
+ 823,
67
+ 558
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Network speed and number of nodes are two of the core systems aspects that differentiate FL from traditional distributed learning in data centers, with network bandwidth being potentially orders of magnitude slower and the number of worker nodes orders of magnitude larger. Together, these issues exacerbate the communication bottlenecks usually associated with distributed learning, increasing both the number of stragglers and the probability of devices dropping out altogether. The problem is further aggravated when working with high capacity models with large numbers of parameters. ",
74
+ "bbox": [
75
+ 174,
76
+ 565,
77
+ 825,
78
+ 648
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Insisting on training these large models using existing federated optimization methods can lead to the systematic exclusion of clients with restricted bandwidth or limited network access from the training stage, and thus to a degraded user experience once these models are served. One naive solution involves training low capacity models with smaller communication footprints, at the expense of model accuracy. As a middle ground, we could develop strategies to reduce the communication footprint of larger, high-capacity models. Recent work (Konecnˇ y et al., 2016b) has in fact taken ´ this approach, but only in the context of client-to-server FL communication. Their success with lossy compression strategies is perhaps not surprising, as the clients’ lossy, yet unbiased, updates are eventually averaged over many users. However, server-to-client exchanges do not benefit from such averaging. As such, they remain a main bottleneck in our goal of expanding FL’s reach. ",
85
+ "bbox": [
86
+ 174,
87
+ 655,
88
+ 825,
89
+ 795
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In this work, we propose two novel strategies to mitigate the server-to-client communication footprint, and empirically demonstrate their efficacy and seamless integration with existing client-toserver strategies. The specific contributions of this paper are as follows: ",
96
+ "bbox": [
97
+ 174,
98
+ 801,
99
+ 820,
100
+ 843
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "1. We study lossily compressing the models downloaded by the clients, thus addressing the open question as to whether these approaches are amenable in the context of server-to-client exchanges. We also introduce the use of the theoretically motivated Kashin’s representation to reduce the error associated with the lossy compression (Lyubarskii & Vershynin, 2010; Kashin, 1977). ",
107
+ "bbox": [
108
+ 176,
109
+ 854,
110
+ 823,
111
+ 922
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/09f2c19b96d2be5f52ed90bc55800a74b6fd0ad93b78c70fc4916cc96768b8a1.jpg",
118
+ "image_caption": [
119
+ "Figure 1: Combination of our proposed strategies during FL training. We reduce the size of the model to be communicated by (1) constructing a sub-model via Federated Dropout, and by (2) lossily compressing the resulting object. This compressed model is then sent to the client, who (3) decompresses and trains it using local data, and (4) compresses the final update. This update is sent back to the server, where it is (5) decompressed and finally, (6) aggregated into the global model. "
120
+ ],
121
+ "image_footnote": [],
122
+ "bbox": [
123
+ 248,
124
+ 104,
125
+ 754,
126
+ 246
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "2. We introduce Federated Dropout, a technique that builds upon the popular idea of dropout (Srivastava et al., 2014), yet is primarily motivated by systems-related concerns. Our approach enables each device to locally operate on a smaller sub-model (i.e. with smaller weight matrices) while still providing updates that can be applied to the larger global model on the server. It thus reduces communication costs by allowing for these smaller sub-models to be exchanged between server and clients, while also reducing the computational cost of local training. ",
133
+ "bbox": [
134
+ 174,
135
+ 366,
136
+ 825,
137
+ 450
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "3. We empirically show that not only are these approaches compatible with one another, but with existing client-to-server compression. Combining these approaches during FL training (see Figure 1) reduces the size of the downloaded models up to $1 4 \\times$ , the size of the corresponding updates up to $2 8 \\times$ , and the required local computations by up to $1 . 7 \\times$ , all without degrading the model’s accuracy and only at the expense of a slightly slower convergence rate (in terms of number of communication rounds). ",
144
+ "bbox": [
145
+ 174,
146
+ 457,
147
+ 825,
148
+ 541
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 RELATED WORK ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 176,
158
+ 570,
159
+ 344,
160
+ 585
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "We review the relevant related work given our objective of reducing the communication footprint in server-to-client exchanges in Federated Learning (FL). ",
167
+ "bbox": [
168
+ 174,
169
+ 603,
170
+ 823,
171
+ 632
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Federated Learning Federated Learning (FL) is a technique that aims to learn a global model over data distributed across multiple edge devices (usually mobile phones) without the data ever leaving the device on which it was generated (McMahan et al., 2017). It brings along a set of statistical (nonIID, unbalanced data) and systems (stragglers, communication bottlenecks, etc.) challenges which differentiate it from traditional distributed learning in the data center, and which have been tackled by several works. For instance, McMahan et al. (2017) propose Federated Averaging (FedAvg), which in its canonical form works by (1) sending the global model to a subset of the available devices, (2) training the model on each device using the available local data, and (3) averaging the local updates to thus end a round of training. In contrast Smith et al. (2017) present a multi-task variant that also models the relationship between clients in order to learn personalized yet related models for each device. Nonetheless, all approaches we are aware of (including the two aforementioned ones) require continued exchanges between a central server and its clients across a potentially slow network. ",
178
+ "bbox": [
179
+ 173,
180
+ 638,
181
+ 825,
182
+ 818
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "Communication-efficient distributed learning Distributed learning is known to suffer from communication overheads associated with the frequent gradient updates exchanged among nodes (Wang et al., 2018; Dean et al., 2012; Smith et al., 2018; Reddi et al., 2016). To reduce these bottlenecks, recent studies focus on communicating a sparsified, quantized or randomly subsampled version of the updates. Although these operations introduce noise, they have been shown both empirically and theoretically to maintain the quality of the trained models. We refer the reader to the introduction of Wang et al. (2018) for more details and references. ",
189
+ "bbox": [
190
+ 173,
191
+ 825,
192
+ 825,
193
+ 922
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "In the context of FL, Konecnˇ y et al. (2016b) successfully perform lossy compression on the client- ´ to-server exchanges (i.e. the model updates). Of particular interest is their use of the randomized Hadamard transform to reduce the error incurred by the subsequent quantization. This is due to the fact that the Hadamard transform, in expectation, spreads a vector’s information more evenly across its components (Suresh et al., 2017; Konecnˇ y & Richt ´ arik, 2016). ´ ",
200
+ "bbox": [
201
+ 174,
202
+ 103,
203
+ 823,
204
+ 174
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "We note, however, that neither the work on traditional distributed learning nor the work of Konecnˇ y´ et al. (2016b) considers compressing the server-to-client exchanges. Nevertheless, in FL, downloading a large model can still be a considerable burden for users, particularly for those in regions with network constraints. Furthermore, as FL is expected to deal with a large number of devices, communicating the global model may even become a bottleneck for the server (as it would, ideally, send the model to the clients in parallel). ",
211
+ "bbox": [
212
+ 174,
213
+ 180,
214
+ 825,
215
+ 263
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "Model compression Deep models tend to demand significant computational resources both for training and inference. Using them on edge devices is therefore not a straightforward task. Because of this, several recent works have proposed compressing the models before deploying them on-device (Ravi, 2018). Popular alternatives include pruning the least useful connections in a network (Han et al., 2016; 2015), weight quantization (Hubara et al., 2016; Lin et al., 2017; De Sa et al., 2018), and model distillation (Hinton et al., 2015). Many of these approaches, however, are not applicable for the problems addressed in this work, as they are either ingrained in the training procedure (and our server holds no data and performs no actual training) or are mostly optimized for inference. In the context of FL, we need something computationally light that can be efficiently applied in every round and that also allows for subsequent local training. We do note, however, that some of the previously mentioned approaches could potentially be leveraged at inference time in the federated setting, and exploring these directions would be an interesting avenue for further research. ",
222
+ "bbox": [
223
+ 174,
224
+ 271,
225
+ 825,
226
+ 438
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "3 METHODS ",
233
+ "text_level": 1,
234
+ "bbox": [
235
+ 174,
236
+ 460,
237
+ 290,
238
+ 477
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "In this section, we present our proposed strategies for reducing Federated Learning’s (FL) serverto-client communication costs, namely lossy compression techniques (Section 3.1) and Federated Dropout (Section 3.2). We introduce the strategies separately, but they are fully compatible with one another (as we show in Section 4.4). ",
245
+ "bbox": [
246
+ 174,
247
+ 493,
248
+ 825,
249
+ 549
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "3.1 LOSSY COMPRESSION ",
256
+ "text_level": 1,
257
+ "bbox": [
258
+ 176,
259
+ 569,
260
+ 367,
261
+ 583
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "Our first approach at reducing bandwidth usage consists of using lightweight lossy compression techniques that can be applied to an already trained model and that, when reversed (i.e. after decompression), maintain the model’s quality. The particular set of techniques we propose are inspired by those successfully used by Konecnˇ y et al. (2016b) to compress the client-to-server updates. We ap- ´ ply them, however, to the server-to-client exchanges, meaning we do not get the benefit of averaging the noisy decompressions over many updates. ",
268
+ "bbox": [
269
+ 174,
270
+ 595,
271
+ 825,
272
+ 679
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "Our method works as follows: we reshape each to-be-compressed weight matrix in our model into a vector $\\textbf { \\em w }$ and (1) apply a basis transform to it. We then (2) subsample and (3) quantize the resulting vector and finally send it through the network. Once received, we simply execute the respective inverse transformations to finally obtain a noisy version of $\\pmb { w }$ . ",
279
+ "bbox": [
280
+ 176,
281
+ 688,
282
+ 825,
283
+ 742
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "Basis transform Previous work (Lyubarskii & Vershynin, 2010; Konecnˇ y et al., 2016b) has ex- ´ plored the idea of using a basis transform to reduce the error that will later be incurred by perturbations such as quantization. In particular, Konecnˇ y et al. (2016b) use the random Hadamard transform ´ to more evenly spread out a vector’s information among its dimensions. We go even further and also apply the classical results of Kashin (1977) to spread a vector’s information as much as possible in every dimension (Lyubarskii $\\&$ Vershynin, 2010). Thus, Kashin’s representation mitigates the error incurred by subsequent quantization compared to using the random Hadamard transform. For a more detailed discussion, we refer the reader to Section A.3 in the Appendix. ",
290
+ "bbox": [
291
+ 174,
292
+ 750,
293
+ 825,
294
+ 861
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "Subsampling For $s \\in [ 0 , 1 )$ , we zero out a $1 - s$ fraction of the elements in each weight matrix, appropriately re-scaling the remaining values. The elements to zero out are picked uniformly at random. Thus, we only communicate the non-zero values and a random seed which allows recovery of the corresponding indices. ",
301
+ "bbox": [
302
+ 174,
303
+ 867,
304
+ 823,
305
+ 924
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "(i) Original network, with a , ${ \\sf b } _ { 2 ^ { \\prime } }$ and ${ \\mathsf { C } } _ { 3 }$ marked for dropout (ii) On-device network after Federated Dropout ",
312
+ "bbox": [
313
+ 176,
314
+ 108,
315
+ 508,
316
+ 121
317
+ ],
318
+ "page_idx": 3
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "",
323
+ "bbox": [
324
+ 552,
325
+ 108,
326
+ 820,
327
+ 119
328
+ ],
329
+ "page_idx": 3
330
+ },
331
+ {
332
+ "type": "image",
333
+ "img_path": "images/509a5f9d97f548d4b7f1844c109cda9e7aa6e67e540756f0f785fd692a5e0cd1.jpg",
334
+ "image_caption": [],
335
+ "image_footnote": [],
336
+ "bbox": [
337
+ 555,
338
+ 126,
339
+ 787,
340
+ 209
341
+ ],
342
+ "page_idx": 3
343
+ },
344
+ {
345
+ "type": "image",
346
+ "img_path": "images/68b77fed3a5f430e2c1b733186023a45d7375fed0a3e875ae3bd3a6d27095687.jpg",
347
+ "image_caption": [
348
+ "Figure 2: Federated Dropout applied to two fully-connected layers. Notices activation vectors $a , b =$ $\\sigma ( U a )$ and $c = \\sigma ( V b )$ in (I). In this example, we randomly select exactly one activation from each layer to drop, namely $a _ { 1 } , b _ { 2 }$ , and $c _ { 3 }$ , producing a sub-model with $2 \\times 2$ dense matrices, as in (II). "
349
+ ],
350
+ "image_footnote": [],
351
+ "bbox": [
352
+ 186,
353
+ 126,
354
+ 488,
355
+ 218
356
+ ],
357
+ "page_idx": 3
358
+ },
359
+ {
360
+ "type": "text",
361
+ "text": "Probabilistic quantization For a vector $\\pmb { w } = ( w _ { 1 } , \\dots , w _ { n } )$ , let us denote $\\begin{array} { r } { w _ { \\operatorname* { m i n } } = \\operatorname* { m i n } _ { j } \\{ w _ { j } \\} _ { j = 1 } ^ { n } } \\end{array}$ and $w _ { \\mathrm { m a x } } = \\operatorname* { m a x } _ { j } \\{ w _ { j } \\} _ { j = 1 } ^ { n }$ . Uniform probabilistic 1-bit quantization replaces every element $w _ { i }$ by $w _ { \\mathrm { m i n } }$ with probability $\\frac { w _ { \\mathrm { m a x } } - w _ { i } } { w _ { \\mathrm { m a x } } - w _ { \\mathrm { m i n } } }$ , and by $w _ { \\mathrm { m a x } }$ otherwise. It is straightforward to verify this yields an unbiased estimate of $\\pmb { w }$ . Now, for $q$ -bit uniform quantization, we first equally divide $[ w _ { \\mathrm { m i n } } , w _ { \\mathrm { m a x } } ]$ into $2 ^ { q }$ intervals. If $w _ { i }$ falls in the interval bounded by $w ^ { \\prime }$ and $w ^ { \\prime \\prime }$ , the quantization operates by replacing $w _ { \\mathrm { m i n } }$ and $w _ { \\mathrm { m a x } }$ in step two of the above algorithm by $w ^ { \\prime }$ and $w ^ { \\prime \\prime }$ , respectively. ",
362
+ "bbox": [
363
+ 174,
364
+ 304,
365
+ 825,
366
+ 395
367
+ ],
368
+ "page_idx": 3
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "3.2 FEDERATED DROPOUT ",
373
+ "text_level": 1,
374
+ "bbox": [
375
+ 176,
376
+ 411,
377
+ 370,
378
+ 425
379
+ ],
380
+ "page_idx": 3
381
+ },
382
+ {
383
+ "type": "text",
384
+ "text": "To further reduce communication costs, we propose an algorithm in which each client, instead of locally training an update to the whole global model, trains an update to a smaller sub-model. These sub-models are subsets of the global model and, as such, the computed local updates have a natural interpretation as updates to the larger global model. We call this technique Federated Dropout as it is inspired by the well known idea of dropout (Srivastava et al., 2014), albeit motivated primarily by systems-level concerns rather than as a strategy for regularization. ",
385
+ "bbox": [
386
+ 174,
387
+ 438,
388
+ 825,
389
+ 521
390
+ ],
391
+ "page_idx": 3
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "In traditional dropout, hidden units are multiplied by a random binary mask in order to drop an expected fraction of neurons during each training pass through the network. Because the mask changes in each pass, each pass is effectively computing a gradient with respect to a different submodel. These sub-models can have different sizes (architectures) depending on how many neurons are dropped in each layer. Now, even though some units are dropped, in all implementations we are aware of, activations are still multiplied with the original weight matrices, they just have some useless rows and columns. ",
396
+ "bbox": [
397
+ 174,
398
+ 527,
399
+ 825,
400
+ 625
401
+ ],
402
+ "page_idx": 3
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "To extend this idea to FL and realize communication and computation savings, we instead zero out a fixed number of activations at each fully-connected layer, so all possible sub-models have the same reduced architecture; see Figure 2. The server can map the necessary values into this reduced architecture, meaning only the necessary coefficients are transmitted to the client, re-packed as smaller dense matrices. The client (which may be fully unaware of the original model’s architecture) trains its sub-model and sends its update, which the server then maps back to the global model1. For convolutional layers, zeroing out activations would not realize any space savings, so we instead drop out a fixed percentage of filters. ",
407
+ "bbox": [
408
+ 173,
409
+ 632,
410
+ 825,
411
+ 743
412
+ ],
413
+ "page_idx": 3
414
+ },
415
+ {
416
+ "type": "text",
417
+ "text": "This technique brings two additional benefits beyond savings in server-to-client communication. First, the size of the client-to-server updates is also reduced. Second, the local training procedure now requires a smaller number of FLOPS per gradient evaluation, either because all matrixmultiplies are now of smaller dimensions (for fully-connected layers) or because less filters have to be applied (for convolutional ones). Thus, we reduce local computational costs. ",
418
+ "bbox": [
419
+ 174,
420
+ 751,
421
+ 823,
422
+ 820
423
+ ],
424
+ "page_idx": 3
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "4 EXPERIMENTAL RESULTS ",
429
+ "text_level": 1,
430
+ "bbox": [
431
+ 176,
432
+ 840,
433
+ 419,
434
+ 857
435
+ ],
436
+ "page_idx": 3
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "In this section, we first present our experimental setup (Section 4.1) before presenting results for our lossy compression (Section 4.2) and Federated Dropout (Section 4.3) strategies. Finally, we ",
441
+ "bbox": [
442
+ 176,
443
+ 872,
444
+ 823,
445
+ 900
446
+ ],
447
+ "page_idx": 3
448
+ },
449
+ {
450
+ "type": "table",
451
+ "img_path": "images/7fab6f6b1b6426028fb4ac2120eba03ea0f7f0869de40e84c17928908754b11a.jpg",
452
+ "table_caption": [
453
+ "Table 1: Summary of Datasets used in the experiments. "
454
+ ],
455
+ "table_footnote": [],
456
+ "table_body": "<table><tr><td>Dataset</td><td># of users</td><td>ID</td><td>Training samples per user mean</td><td>0</td><td>Test samples per user</td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>mean</td><td>0</td></tr><tr><td>MNIST</td><td>100</td><td>Yes</td><td>600</td><td>0</td><td>100</td><td>0</td></tr><tr><td>CIFAR-10</td><td>100</td><td>Yes</td><td>500</td><td>0</td><td>100</td><td>0</td></tr><tr><td>EMNIST</td><td>3550</td><td>No</td><td>181.46</td><td>71.15</td><td>45.37</td><td>17.79</td></tr></table>",
457
+ "bbox": [
458
+ 228,
459
+ 131,
460
+ 769,
461
+ 213
462
+ ],
463
+ "page_idx": 4
464
+ },
465
+ {
466
+ "type": "text",
467
+ "text": "show experiments that use both of these strategies in tandem with those proposed in Konecnˇ y et al.´ (2016b) to also compress client-to-server exchanges (Section 4.4). ",
468
+ "bbox": [
469
+ 174,
470
+ 244,
471
+ 821,
472
+ 272
473
+ ],
474
+ "page_idx": 4
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "4.1 EXPERIMENTAL SETUP ",
479
+ "text_level": 1,
480
+ "bbox": [
481
+ 174,
482
+ 290,
483
+ 375,
484
+ 304
485
+ ],
486
+ "page_idx": 4
487
+ },
488
+ {
489
+ "type": "text",
490
+ "text": "Optimization Algorithm We focus on testing our strategies against already established FL benchmarks. In particular, we restrict our experiments to the use of Federated Averaging (FedAvg) (McMahan et al., 2017). ",
491
+ "bbox": [
492
+ 176,
493
+ 315,
494
+ 821,
495
+ 357
496
+ ],
497
+ "page_idx": 4
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "Datasets We use three datasets in our experiments: MNIST (LeCun et al., 1998), CIFAR10 (Krizhevsky & Hinton, 2009) and Extended MNIST or EMNIST (Cohen et al., 2017). The first two were used to benchmark the performance of FedAvg and of lossy compression for clientto-server updates (Konecnˇ y et al., 2016b). For these two datasets, we use the artificial IID partition ´ proposed by these previous works. Meanwhile, EMNIST is a dataset that has only recently been introduced as a useful benchmark for FL. Derived from the same source as MNIST, it also includes the identifier of the user that wrote the character (digit, lower or upper case letter), creating a natural and much more realistic partition of the data. Table 1 summarizes the basic dataset properties. Due to space constraints, we relegate the MNIST results to Appendix B, though all conclusions presented here also qualitatively hold for these experiments. ",
502
+ "bbox": [
503
+ 173,
504
+ 364,
505
+ 825,
506
+ 503
507
+ ],
508
+ "page_idx": 4
509
+ },
510
+ {
511
+ "type": "text",
512
+ "text": "Models For MNIST’s digit recognition task we use the same model as McMahan et al. (2017): a CNN with two $5 \\mathrm { x } 5$ convolution layers (the first with 32 channels, the second with 64, each followed by $2 \\mathbf { x } 2$ max pooling), a fully connected layer with 512 units and ReLu activation, and a final softmax output layer, for a total of more than $\\mathrm { 1 0 ^ { 6 } }$ parameters. For CIFAR-10, we use the all convolutional model taken from what is described as “Model $\\mathbf { { C } } ^ { \\ast }$ in Springenberg et al. (2015), which also has a total of over $1 0 ^ { 6 }$ parameters. Finally, for EMNIST we use a variant of the MNIST model with 2048 units in the final fully connected layer. While none of these models is the state-of-the-art, they are sufficient for evaluating our methods, as we wish to measure accuracy degradation against a baseline and not to achieve the best possible accuracy on these tasks. ",
513
+ "bbox": [
514
+ 173,
515
+ 510,
516
+ 825,
517
+ 636
518
+ ],
519
+ "page_idx": 4
520
+ },
521
+ {
522
+ "type": "text",
523
+ "text": "Hyperparameters We do not optimize our experiments for FedAvg’s hyperparameters, always using those that proved to work reasonably well in our baseline setting which involves no compression and no Federated Dropout. For local training at each client we use static learning rates of 0.15 for MNIST, 0.05 for CIFAR-10 and 0.035 for EMNIST. We select 10 random clients per round for MNIST and CIFAR-10, and 35 for EMNIST. Finally, each selected client trains for one epoch per round using a batch size of 10. ",
524
+ "bbox": [
525
+ 174,
526
+ 642,
527
+ 825,
528
+ 726
529
+ ],
530
+ "page_idx": 4
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "4.2 LOSSY COMPRESSION ",
535
+ "text_level": 1,
536
+ "bbox": [
537
+ 176,
538
+ 743,
539
+ 369,
540
+ 757
541
+ ],
542
+ "page_idx": 4
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "We focus on testing how the compression strategies presented in Section 3.1 impact the global model’s accuracy. Like Konecnˇ y et al. (2016b), we don’t compress all variables of our models. As ´ they mention, compressing smaller variables causes significant accuracy degradation but translates into minuscule communication savings. As such, we don’t compress biases for any of the models2. ",
547
+ "bbox": [
548
+ 174,
549
+ 768,
550
+ 825,
551
+ 825
552
+ ],
553
+ "page_idx": 4
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "In our experiments, we vary three parameters: ",
558
+ "bbox": [
559
+ 174,
560
+ 833,
561
+ 473,
562
+ 847
563
+ ],
564
+ "page_idx": 4
565
+ },
566
+ {
567
+ "type": "text",
568
+ "text": "1. The type of basis transform applied: no transform or identity (I), randomized Hadamard transform (HD) and Kashin’s representation (K). ",
569
+ "bbox": [
570
+ 176,
571
+ 858,
572
+ 821,
573
+ 887
574
+ ],
575
+ "page_idx": 4
576
+ },
577
+ {
578
+ "type": "image",
579
+ "img_path": "images/4e198c0b75739883172b561a02f9a11936f1fe7be1f337102e3e6aec37d9a0af.jpg",
580
+ "image_caption": [
581
+ "Figure 3: Effect of varying our lossy compression parameters on CIFAR-10 and EMNIST. "
582
+ ],
583
+ "image_footnote": [],
584
+ "bbox": [
585
+ 176,
586
+ 99,
587
+ 820,
588
+ 306
589
+ ],
590
+ "page_idx": 5
591
+ },
592
+ {
593
+ "type": "text",
594
+ "text": "2. The subsampling rate $s$ , which refers to the fraction of weights that are kept (i.e. $1 - s$ of the weights are zeroed out). ",
595
+ "bbox": [
596
+ 174,
597
+ 383,
598
+ 823,
599
+ 411
600
+ ],
601
+ "page_idx": 5
602
+ },
603
+ {
604
+ "type": "text",
605
+ "text": "3. The number of quantization bits $q$ ",
606
+ "bbox": [
607
+ 176,
608
+ 412,
609
+ 421,
610
+ 426
611
+ ],
612
+ "page_idx": 5
613
+ },
614
+ {
615
+ "type": "text",
616
+ "text": "Figure 3 shows the effect of varying these parameters for CIFAR-10 and EMNIST. We repeat each experiment 10 times and report the mean accuracy among these repetitions. The three main takeaways from these experiments are: (1) for every model, we are able find a setting of compression parameters that at the very least matches our baseline; (2) Kashin’s representation proves to be most useful for aggressive quantization values; and (3) it appears that subsampling is not all that helpful in the server-to-client setting. We proceed to give more details about these highlights. ",
617
+ "bbox": [
618
+ 173,
619
+ 445,
620
+ 825,
621
+ 530
622
+ ],
623
+ "page_idx": 5
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "The first takeaway is that, for every model, we are indeed able find a setting of compression parameters that matches or, in some cases, slightly outperforms our baseline. In particular, we are able to quantize every model to 4 bits, which translates to a reduction in communication of nearly $8 \\times$ . ",
628
+ "bbox": [
629
+ 174,
630
+ 536,
631
+ 825,
632
+ 578
633
+ ],
634
+ "page_idx": 5
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "The second takeaway is that Kashin’s representation proves to be most useful for aggressive quantization values, i.e. for low values of $q$ . In our experiments, gains were observed only in regimes where the overall accuracy had already degraded, but we hypothesize that the use of Kashin’s representation may provide clearer benefits in the compression of client-to-server gradient updates, where more aggressive quantization is admissible. We also highlight that using Kashin’s representation may be beneficial for other datasets. Indeed, its computational costs are comparable to that of the random Hadamard transform while also providing better theoretical error rates (see Section A.1). We refer the reader to Section A.3 in the Appendix, where we show preliminary results that demonstrate Kashin’s potential to dominate over the randomized Hadamard transform in compressing fully-trained models, particularly for small values of $q$ . ",
639
+ "bbox": [
640
+ 174,
641
+ 585,
642
+ 825,
643
+ 724
644
+ ],
645
+ "page_idx": 5
646
+ },
647
+ {
648
+ "type": "text",
649
+ "text": "Finally, it appears that subsampling is not all that helpful in this server-to-client setting. This contrasts with the results presented by Konecnˇ y et al. (2016b) for compressed client-to-server updates, ´ where aggressive values of s were admissible. This trend extends to the other compression parameters: server-to-client compression of global models requires much more conservative settings than client-to-server compression of model updates. For example, for CIFAR-10, Konecnˇ y et al. ´ (2016b) get away with using $s = 0 . 2 5$ and $q = 8$ under a random Hadamard transform representation3. Meanwhile, in Figure 3 we can see that, for the same $q$ and representation, $s = 0 . 5$ already causes an unacceptable degradation of the accuracy. This is not surprising, since it is expected that the updates’ error will cancel out once several of them get aggregated at the server, which is not true for model downloads. ",
650
+ "bbox": [
651
+ 174,
652
+ 731,
653
+ 825,
654
+ 869
655
+ ],
656
+ "page_idx": 5
657
+ },
658
+ {
659
+ "type": "image",
660
+ "img_path": "images/b8cee57370ffcda99e8a75f325bfa49d39c0015a0e8228e901acbf70aef7b22e.jpg",
661
+ "image_caption": [
662
+ "Figure 4: Results for Federated Dropout, varying the percentage of neurons kept in each layer. "
663
+ ],
664
+ "image_footnote": [],
665
+ "bbox": [
666
+ 225,
667
+ 102,
668
+ 771,
669
+ 210
670
+ ],
671
+ "page_idx": 6
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "4.3 FEDERATED DROPOUT ",
676
+ "text_level": 1,
677
+ "bbox": [
678
+ 176,
679
+ 277,
680
+ 370,
681
+ 291
682
+ ],
683
+ "page_idx": 6
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "We focus on testing how the global model’s accuracy deteriorates once we use the strategy proposed in Section 3.2. In these experiments, we vary the percentage of neurons (or filters for the case of convolutional layers) that are kept on each layer of our models (we call this the federated dropout rate). We always keep the totality of the input and logits layers, and never drop the neuron that can be associated to the bias term. ",
688
+ "bbox": [
689
+ 174,
690
+ 306,
691
+ 825,
692
+ 376
693
+ ],
694
+ "page_idx": 6
695
+ },
696
+ {
697
+ "type": "text",
698
+ "text": "Figure 4 shows how the convergence of our three models behaves under different federated dropout rates. We repeat each experiment 10 times and report the mean among these repetitions. The main takeaway from these experiments is that, for every model, it is possible to find a federated dropout rate less than 1.0 that matches or, in some cases, even improves on the final accuracy of the model. ",
699
+ "bbox": [
700
+ 174,
701
+ 383,
702
+ 825,
703
+ 439
704
+ ],
705
+ "page_idx": 6
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "A federated dropout rate of 0.75 seems to work across the board. This corresponds to dropping $2 5 \\%$ of the rows and columns of the weight matrices of fully-connected layers (which translates to $\\smash { 1 \\sim 4 3 \\% }$ reduction in size), and to dropping the same percentage of filters of each convolutional layer. Now, because fully connected layers correspond to most of the parameters of the MNIST and EMNIST models, the $\\sim 4 3 \\%$ reduction will apply to them both in terms of the amount of data that has to be communicated and of the number of FLOPS required for local training. Meanwhile, because our CIFAR model is fully convolutional, gains will be of $2 5 \\%$ . ",
710
+ "bbox": [
711
+ 174,
712
+ 445,
713
+ 825,
714
+ 544
715
+ ],
716
+ "page_idx": 6
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "As a final comment, we note that more aggressive federated dropout rates tend to slow down the convergence rate of the model, even if they sometimes result in a higher accuracy. ",
721
+ "bbox": [
722
+ 174,
723
+ 550,
724
+ 823,
725
+ 579
726
+ ],
727
+ "page_idx": 6
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "4.4 REDUCING THE OVERALL COMMUNICATION COST ",
732
+ "text_level": 1,
733
+ "bbox": [
734
+ 178,
735
+ 604,
736
+ 555,
737
+ 616
738
+ ],
739
+ "page_idx": 6
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "Our final set of experiments shows how our models behave once we combine our two strategies, lossy compression and Federated Dropout, with existing client-to-server compression schemes (Konecnˇ y et al., 2016b), in order to explore how the different components of this end- ´ to-end, communication efficient framework interact. To do this, we evaluate how our models behave under 3 different compression schemes (aggressive, moderate and conservative) and 4 different federated dropout rates (0.5, 0.625, 0.75 and 0.875). The values for these schemes and rates were picked based on the observed behavior during the previous experiments, being somewhat more conservative as we are now combining different sources of noise. Table 2 describes the settings for each scheme. ",
744
+ "bbox": [
745
+ 174,
746
+ 631,
747
+ 825,
748
+ 756
749
+ ],
750
+ "page_idx": 6
751
+ },
752
+ {
753
+ "type": "text",
754
+ "text": "Figure 5 shows how our CIFAR-10 and EMNIST models behave under each of the previously mentioned conditions. We repeat each experiment 5 times and report the mean among these repetitions. For all three models, a federated dropout rate of 0.75 resulted in models with no accuracy degradation under all compression schemes except for the most aggressive. For MNIST and EMNIST, this translates into server-to-client communication savings of $1 4 \\times$ , client-to-server savings of $2 8 \\times$ and a reduction of $1 . 7 \\times$ in local computation, all without degrading the accuracy of the final global model (and sometimes even improving it). For CIFAR-10, we provide server-to-client communication savings of $1 0 \\times$ , client-to-server savings of $2 1 \\times$ and local computation savings of $1 . 3 \\times$ . ",
755
+ "bbox": [
756
+ 174,
757
+ 762,
758
+ 825,
759
+ 875
760
+ ],
761
+ "page_idx": 6
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "Based on these results, we also hypothesize that a federated dropout rate of 0.75 combined with a moderate or conservative compression scheme will be a good starting point when setting these parameters in practice. ",
766
+ "bbox": [
767
+ 176,
768
+ 882,
769
+ 823,
770
+ 924
771
+ ],
772
+ "page_idx": 6
773
+ },
774
+ {
775
+ "type": "table",
776
+ "img_path": "images/3c0006cd346f022b4e611c0a82122cb23d3252ffcbac246b703d442e7e406ef9.jpg",
777
+ "table_caption": [
778
+ "Table 2: Settings for each of our proposed compression schemes. "
779
+ ],
780
+ "table_footnote": [],
781
+ "table_body": "<table><tr><td>Scheme</td><td colspan=\"3\">Client-to-Server</td><td colspan=\"3\">Server-to-Client</td></tr><tr><td></td><td>transf.</td><td>S</td><td>q</td><td>transf.</td><td>S</td><td>q</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Aggressive</td><td>Kashin&#x27;s</td><td>0.4</td><td>2</td><td>Kashin&#x27;s</td><td>1.0</td><td>3</td></tr><tr><td>Moderate</td><td>Kashin&#x27;s</td><td>0.5</td><td>4</td><td>Kashin&#x27;s</td><td>1.0</td><td>5</td></tr><tr><td>Conservative</td><td>Kashin&#x27;s</td><td>1.0</td><td>8</td><td>Kashin&#x27;s</td><td>1.0</td><td>8</td></tr></table>",
782
+ "bbox": [
783
+ 312,
784
+ 132,
785
+ 686,
786
+ 212
787
+ ],
788
+ "page_idx": 7
789
+ },
790
+ {
791
+ "type": "image",
792
+ "img_path": "images/6f647972ab35ad2d0bac0fe55163b5e6c42b4362445a0a8fa5dba0fb4a5fdebd.jpg",
793
+ "image_caption": [
794
+ "Figure 5: Effect of using both compression and Federated Dropout on CIFAR-10 and EMNIST. "
795
+ ],
796
+ "image_footnote": [],
797
+ "bbox": [
798
+ 176,
799
+ 233,
800
+ 821,
801
+ 436
802
+ ],
803
+ "page_idx": 7
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "5 CONCLUSIONS AND OPEN QUESTIONS ",
808
+ "text_level": 1,
809
+ "bbox": [
810
+ 176,
811
+ 496,
812
+ 526,
813
+ 513
814
+ ],
815
+ "page_idx": 7
816
+ },
817
+ {
818
+ "type": "text",
819
+ "text": "The ecosystem currently targeted by Federated Learning (FL) is marked by heterogeneous edge networks that can potentially be orders of magnitude slower than the ones in datacenters. At the same time, FL can be quite demanding in terms of bandwidth, particularly when used to train deep models. We are thus at risk of either restricting the type of models we are able to train using this technique, or of excluding large groups of users from federated training. Both issues are problematic, but because access to high-end networks also appears to be correlated to sensitive factors such as income and age (Anzilotti, 2016; Pew Research Center, 2018), the latter may have implications related to fairness, making it particularly sensitive as we continue the adoption of FL systems. ",
820
+ "bbox": [
821
+ 174,
822
+ 527,
823
+ 825,
824
+ 640
825
+ ],
826
+ "page_idx": 7
827
+ },
828
+ {
829
+ "type": "text",
830
+ "text": "Our work dramatically reduces the communication overheads in FL by (1) using lossy compression techniques on the server-to-client exchanges and by (2) using Federated Dropout, a technique that only communicates subsets of the global model to each client. We empirically show that a combination of our strategies with previous work allows for up to a $1 4 \\times$ reduction in server-to-client communication, a $1 . 7 \\times$ reduction in local computation and a $2 8 \\times$ reduction in client-to-server communication. ",
831
+ "bbox": [
832
+ 174,
833
+ 647,
834
+ 825,
835
+ 729
836
+ ],
837
+ "page_idx": 7
838
+ },
839
+ {
840
+ "type": "text",
841
+ "text": "In future work, we plan to: explore the efficacy of introducing a server step size in order to account for the use of different sub-models in Federated Dropout; investigate the possibility of using the same sub-models for all the selected clients in one round; and further characterize the benefits of Kashin’s representation in compressing the gradient updates in FL and in traditional model serving. An additional future direction to pursue related to fairness involves studying the effect of adaptively using these strategies (i.e. using more aggressive compression and federated dropout rates for some users) to prevent unfairly biased models. Finally, we note that the success of Federated Dropout suggests an entirely new avenue of research in which smaller, perhaps personalized, sub-models are eventually aggregated into a larger, more complex model that can be managed by the server. Contrary to the classic datacenter setting, the computational overhead associated with first creating and then aggregating the sub-models is justified in FL. ",
842
+ "bbox": [
843
+ 174,
844
+ 737,
845
+ 825,
846
+ 890
847
+ ],
848
+ "page_idx": 7
849
+ },
850
+ {
851
+ "type": "text",
852
+ "text": "REFERENCES \nEillie Anzilotti. Visualizing the state of global internet connectivity, Aug 2016. URL https://www.citylab.com/life/2016/08/ visualizing-the-state-of-global-internet-connectivity/496328/. \nEmmanuel J Candes, Justin K Romberg, and Terence Tao. Stable signal recovery from incomplete and inaccurate measurements. Communications on Pure and Applied Mathematics: A Journal Issued by the Courant Institute of Mathematical Sciences, 59(8):1207–1223, 2006. \nGregory Cohen, Saeed Afshar, Jonathan Tapson, and Andre van Schaik. EMNIST: an extension of ´ MNIST to handwritten letters. arXiv preprint arXiv:1702.05373, 2017. \nChristopher De Sa, Megan Leszczynski, Jian Zhang, Alana Marzoev, Christopher R Aberger, Kunle Olukotun, and Christopher Re. High-accuracy low-precision training. ´ arXiv preprint arXiv:1803.03383, 2018. \nJeffrey Dean, Greg Corrado, Rajat Monga, Kai Chen, Matthieu Devin, Mark Mao, Andrew Senior, Paul Tucker, Ke Yang, Quoc V Le, et al. Large scale distributed deep networks. In Advances in neural information processing systems, pp. 1223–1231, 2012. \nSimon Foucart and Holger Rauhut. A mathematical introduction to compressive sensing, volume 1. Birkhauser Basel, 2013. ¨ \nSong Han, Jeff Pool, John Tran, and William J Dally. Learning both weights and connections for efficient neural network. In Advances in neural information processing systems, pp. 1135–1143, 2015. \nSong Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. International Conference on Learning Representations, 2016. \nGeoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. \nItay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks. In Advances in neural information processing systems, pp. 4107–4115, 2016. \nBoris Sergeevich Kashin. Diameters of some finite-dimensional sets and classes of smooth functions. Izvestiya Rossiiskoi Akademii Nauk. Seriya Matematicheskaya, 41(2):334–351, 1977. \nJakub Konecnˇ y and Peter Richt ´ arik. Randomized distributed mean estimation: Accuracy vs com- ´ munication. arXiv preprint arXiv:1611.07555, 2016. \nJakub Konecnˇ y, H Brendan McMahan, Daniel Ramage, and Peter Richt ´ arik. Federated optimization: ´ Distributed machine learning for on-device intelligence. arXiv preprint arXiv:1610.02527, 2016a. \nJakub Konecnˇ y, H Brendan McMahan, Felix X Yu, Peter Richt ´ arik, Ananda Theertha Suresh, and ´ Dave Bacon. Federated learning: Strategies for improving communication efficiency. arXiv preprint arXiv:1610.05492, 2016b. \nAlex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009. \nYann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. \nXiaofan Lin, Cong Zhao, and Wei Pan. Towards accurate binary convolutional neural network. In Advances in Neural Information Processing Systems, pp. 345–353, 2017. \nYurii Lyubarskii and Roman Vershynin. Uncertainty principles and vector quantization. IEEE Transactions on Information Theory, 56(7):3491–3501, 2010. ",
853
+ "bbox": [
854
+ 169,
855
+ 82,
856
+ 828,
857
+ 931
858
+ ],
859
+ "page_idx": 8
860
+ },
861
+ {
862
+ "type": "text",
863
+ "text": "H Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. pp. 1273–1282, 2017. ",
864
+ "bbox": [
865
+ 176,
866
+ 103,
867
+ 823,
868
+ 146
869
+ ],
870
+ "page_idx": 9
871
+ },
872
+ {
873
+ "type": "text",
874
+ "text": "Pew Research Center. Mobile fact sheet, Feb 2018. URL http://www.pewinternet.org/ fact-sheet/mobile/. ",
875
+ "bbox": [
876
+ 173,
877
+ 155,
878
+ 821,
879
+ 184
880
+ ],
881
+ "page_idx": 9
882
+ },
883
+ {
884
+ "type": "text",
885
+ "text": "Sujith Ravi. Custom On-Device ML Models with Learn2Compress, May 2018. URL https: //ai.googleblog.com/2018/05/custom-on-device-ml-models.html. ",
886
+ "bbox": [
887
+ 173,
888
+ 193,
889
+ 820,
890
+ 222
891
+ ],
892
+ "page_idx": 9
893
+ },
894
+ {
895
+ "type": "text",
896
+ "text": "Sashank J Reddi, Jakub Konecnˇ y, Peter Richt ´ arik, Barnab ´ as P ´ ocz ´ os, and Alex Smola. Aide: fast ´ and communication efficient distributed optimization. arXiv preprint arXiv:1608.06879, 2016. ",
897
+ "bbox": [
898
+ 171,
899
+ 229,
900
+ 823,
901
+ 260
902
+ ],
903
+ "page_idx": 9
904
+ },
905
+ {
906
+ "type": "text",
907
+ "text": "Virginia Smith, Chao-Kai Chiang, Maziar Sanjabi, and Ameet S Talwalkar. Federated multi-task learning. In Advances in Neural Information Processing Systems, pp. 4424–4434, 2017. ",
908
+ "bbox": [
909
+ 173,
910
+ 267,
911
+ 823,
912
+ 297
913
+ ],
914
+ "page_idx": 9
915
+ },
916
+ {
917
+ "type": "text",
918
+ "text": "Virginia Smith, Simone Forte, Ma Chenxin, Martin Taka´c, Michael I Jordan, and Martin Jaggi. ˇ Cocoa: A general framework for communication-efficient distributed optimization. Journal of Machine Learning Research, 18:230, 2018. ",
919
+ "bbox": [
920
+ 178,
921
+ 305,
922
+ 823,
923
+ 348
924
+ ],
925
+ "page_idx": 9
926
+ },
927
+ {
928
+ "type": "text",
929
+ "text": "Jost Tobias Springenberg, Alexey Dosovitskiy, Thomas Brox, and Martin Riedmiller. Striving for simplicity: The all convolutional net. International Conference on Learning Representations (workshop track), 2015. ",
930
+ "bbox": [
931
+ 174,
932
+ 357,
933
+ 823,
934
+ 400
935
+ ],
936
+ "page_idx": 9
937
+ },
938
+ {
939
+ "type": "text",
940
+ "text": "Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research, 15(1):1929–1958, 2014. ",
941
+ "bbox": [
942
+ 176,
943
+ 409,
944
+ 823,
945
+ 452
946
+ ],
947
+ "page_idx": 9
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "Ananda Theertha Suresh, Felix X Yu, Sanjiv Kumar, and H Brendan McMahan. Distributed mean estimation with limited communication. In International Conference on Machine Learning, pp. 3329–3337, 2017. ",
952
+ "bbox": [
953
+ 171,
954
+ 460,
955
+ 823,
956
+ 503
957
+ ],
958
+ "page_idx": 9
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "Hongyi Wang, Scott Sievert, Zachary Charles, Dimitris Papailiopoulos, and Stephen Wright. ATOMO: Communication-efficient Learning via Atomic Sparsification. arXiv preprint arXiv:1806.04090, 2018. ",
963
+ "bbox": [
964
+ 174,
965
+ 512,
966
+ 825,
967
+ 554
968
+ ],
969
+ "page_idx": 9
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "A KASHIN’S REPRESENTATION ",
974
+ "text_level": 1,
975
+ "bbox": [
976
+ 178,
977
+ 102,
978
+ 449,
979
+ 117
980
+ ],
981
+ "page_idx": 10
982
+ },
983
+ {
984
+ "type": "text",
985
+ "text": "For reasons of space, we have relegated a more detailed discussion of Kashin’s representation (see Section 3) to the Appendix. In this section, we briefly discuss Kashin’s representation both from a theoretical (Section A.1) and practical (Section A.2) standpoints. Finally, we present some preliminary results that argue the potential of Kashin’s representation to dominate over the random Hadamard transform with respect to the size vs. accuracy trade-off (Section A.3). ",
986
+ "bbox": [
987
+ 174,
988
+ 135,
989
+ 825,
990
+ 204
991
+ ],
992
+ "page_idx": 10
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "A.1 THEORETICAL OVERVIEW ",
997
+ "text_level": 1,
998
+ "bbox": [
999
+ 176,
1000
+ 222,
1001
+ 398,
1002
+ 237
1003
+ ],
1004
+ "page_idx": 10
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "The idea of using the classical results of Kashin (1977) to increase the robustness of coefficients to perturbations was first introduced by Lyubarskii & Vershynin (2010). Their result states that, given a tight frame satisfying a form of uncertainty principle, a weaker notion of the RIP (Candes et al., 2006), it is possible to convert the frame representation of every vector into the more robust Kashin’s representation, whose coefficients will have the smallest possible dynamic range. ",
1009
+ "bbox": [
1010
+ 174,
1011
+ 248,
1012
+ 825,
1013
+ 319
1014
+ ],
1015
+ "page_idx": 10
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "Error rates Since the results of Suresh et al. (2017) (who quantified the reduction in quantization error due to the Hadamard transform) rely on exactly this notion of dynamic range, and assuming the subsampled randomized Hadamard transform satisfies the uncertainty principle, Theorem 3.5 of Lyubarskii & Vershynin (2010) can be directly used as a drop-in replacement for Lemma 7 in Suresh et al. (2017), removing the logarithmic dependence on dimension from Theorem 3 therein, matching the lower bounds. We do not provide the complete proof as, beyond drawing this connection, it does not imply any novelty whatsoever. However, an open question remains, as we are not aware of a result showing what are the parameters of the uncertainty principle guaranteed by the subsampled randomized Hadamard transform. They exist however, as the transform is known to satisfy the RIP (Foucart & Rauhut, 2013), which is a stronger notion. ",
1020
+ "bbox": [
1021
+ 174,
1022
+ 325,
1023
+ 825,
1024
+ 465
1025
+ ],
1026
+ "page_idx": 10
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "A.2 PRACTICAL CONSIDERATIONS ",
1031
+ "text_level": 1,
1032
+ "bbox": [
1033
+ 178,
1034
+ 483,
1035
+ 428,
1036
+ 497
1037
+ ],
1038
+ "page_idx": 10
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "text": "In practice, given a tight frame, the algorithm for computing Kashin’s representation is straightforward. It runs for $n$ iterations, and takes parameters $\\eta , \\delta$ as input. In a single iteration, one first computes the frame coefficients, projects them onto a $L _ { \\infty }$ ball, and reconstructs the error in the original domain. Another iteration proceeds starting with the reconstructed error and a smaller ball. We refer the reader to Lyubarskii & Vershynin (2010) for more details regarding $\\eta , \\delta$ and their relationship with the uncertainty principle. ",
1043
+ "bbox": [
1044
+ 174,
1045
+ 510,
1046
+ 823,
1047
+ 593
1048
+ ],
1049
+ "page_idx": 10
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "In our work, we use the randomized Hadamard transform as the initial tight frame (see Section A.1 for details on why this is possible). We also run the algorithm for just $n = 2$ iterations (as very often this provides most of the benefit), fixed $\\delta = 1$ , and used a variant of the algorithm which yields an exact representation (omitting the $L _ { \\infty }$ projection in the last iteration). Given this, the choice of $\\eta$ is irrelevant. The dominant part of the computation is then three applications of the fast Walsh-Hadamard transform, as opposed to a single one in Konecnˇ y et al. (2016b)). ´ ",
1054
+ "bbox": [
1055
+ 174,
1056
+ 601,
1057
+ 823,
1058
+ 684
1059
+ ],
1060
+ "page_idx": 10
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "As a particular example, say we are to compress an 80-dimensional vector. We first pad the vector with zeros, so that its dimension is 128 (the closest larger power of 2). Then, we multiply the vector by a diagonal matrix with independent Rademacher random variables $( D \\in \\mathbb { R } ^ { 1 2 8 \\times 1 2 8 }$ ), followed by the application of the fast Walsh-Hadamard transform $( H \\in \\mathbb { R } ^ { 1 2 8 \\times 1 2 8 } ,$ ). The first 80 columns of the matrix $H D$ correspond to the tight frame used to find the Kashin’s representation. Nonetheless, we avoid representing this explicitly. ",
1065
+ "bbox": [
1066
+ 174,
1067
+ 690,
1068
+ 825,
1069
+ 775
1070
+ ],
1071
+ "page_idx": 10
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "Finally, note that, if the initial dimension was a power of 2, we need to pad zeros to the next power of 2 in order to realize any benefit over just using the Hadamard transform. ",
1076
+ "bbox": [
1077
+ 174,
1078
+ 781,
1079
+ 823,
1080
+ 809
1081
+ ],
1082
+ "page_idx": 10
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "A.3 DOMINANCE OVER HADAMARD ",
1087
+ "text_level": 1,
1088
+ "bbox": [
1089
+ 176,
1090
+ 828,
1091
+ 437,
1092
+ 842
1093
+ ],
1094
+ "page_idx": 10
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "Given the theoretical properties of Kashin’s representation, we hypothesize it should dominate the random Hadamard transform when it comes to the size vs. accuracy trade-off. A preliminary experiment to corroborate this hypothesis is the following: ",
1099
+ "bbox": [
1100
+ 176,
1101
+ 854,
1102
+ 823,
1103
+ 897
1104
+ ],
1105
+ "page_idx": 10
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "1. We train an MNIST model until we get an accuracy of around $9 9 . 3 \\%$ ",
1110
+ "bbox": [
1111
+ 174,
1112
+ 909,
1113
+ 648,
1114
+ 924
1115
+ ],
1116
+ "page_idx": 10
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "2. We compress the original model using some linear transform, some subsampling ratio and some number of quantization bits. ",
1121
+ "bbox": [
1122
+ 173,
1123
+ 103,
1124
+ 823,
1125
+ 131
1126
+ ],
1127
+ "page_idx": 11
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "3. We decompress the model and evaluate both its new accuracy and its $L _ { 2 }$ distance to the original model. ",
1132
+ "bbox": [
1133
+ 173,
1134
+ 132,
1135
+ 821,
1136
+ 159
1137
+ ],
1138
+ "page_idx": 11
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "4. We repeat the previous two steps for different linear transforms (identity, random Hadamard transform and Kashin’s representation), subsampling ratios (0.25, 0.5 and 1.0) and quantization bits (1, 2, 4, 8, 16). ",
1143
+ "bbox": [
1144
+ 176,
1145
+ 160,
1146
+ 823,
1147
+ 200
1148
+ ],
1149
+ "page_idx": 11
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "An important detail is that, whenever we use Kashin’s representation, we do a grid search over the best values for $n$ (from 1 to 10) and $\\eta$ . However, $\\delta$ is kept fixed as 1. ",
1154
+ "bbox": [
1155
+ 174,
1156
+ 213,
1157
+ 821,
1158
+ 241
1159
+ ],
1160
+ "page_idx": 11
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "The results of this experiment are shown in Figure 6. In the legend, R corresponds to rotation — I for identity, HD for randomized Hadamard, Kashin for Kashin based on the randomized Hadamard; and SR corresponds to subsampling ratio — the fraction of elements to be kept non-zero. In the top row, the figure shows the relationship of the accuracy of the compressed model vs. the number of bits used for quantization, and vs. the model’s size (in MB). In the bottom row, the $L _ { 2 }$ error incurred is plotted against the same. It is very clear then that Kashin’s representation does dominate the other two representations when it comes to the size vs. accuracy trade-off, making up the Pareto frontier for all combinations of subsampling ratio and quantization bits. Nevertheless, we did optimize over the parameters associated with Kashin’s algorithm, something that does not need to be done for the random Hadamard transform. In Section A.2, we propose a set of values that worked well enough for our experiments, but further exploration on how to easily determine these values is in order. ",
1165
+ "bbox": [
1166
+ 173,
1167
+ 247,
1168
+ 825,
1169
+ 401
1170
+ ],
1171
+ "page_idx": 11
1172
+ },
1173
+ {
1174
+ "type": "image",
1175
+ "img_path": "images/abf34396d464b2bb8d7b9fa4e35ae23bba50f9800a6aa216d47354b141f7e471.jpg",
1176
+ "image_caption": [
1177
+ "Figure 6: Compressing an already trained MNIST model with linear transform $^ +$ subsampling $^ +$ uniform quantization. "
1178
+ ],
1179
+ "image_footnote": [],
1180
+ "bbox": [
1181
+ 174,
1182
+ 415,
1183
+ 820,
1184
+ 681
1185
+ ],
1186
+ "page_idx": 11
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "B MNIST EXPERIMENTAL RESULTS ",
1191
+ "text_level": 1,
1192
+ "bbox": [
1193
+ 174,
1194
+ 102,
1195
+ 493,
1196
+ 118
1197
+ ],
1198
+ "page_idx": 12
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "For reasons of space, we have relegated the experimental results using MNIST (see Section 4) (Section A) to the Appendix. ",
1203
+ "bbox": [
1204
+ 176,
1205
+ 133,
1206
+ 823,
1207
+ 161
1208
+ ],
1209
+ "page_idx": 12
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "Figure 7 shows the results of using our lossy compression on MNIST under the experimental setup presented in Section 4.2. Meanwhile, Figure 8 shows the results of using Federated Dropout (see Section 4.3 for details). Finally, Figure 9 shows the results of performing both lossy compression for downloads and uploads, as well as Federated Dropout, as described in Section 4.4. ",
1214
+ "bbox": [
1215
+ 173,
1216
+ 169,
1217
+ 825,
1218
+ 226
1219
+ ],
1220
+ "page_idx": 12
1221
+ },
1222
+ {
1223
+ "type": "image",
1224
+ "img_path": "images/76b0d59f01e9eb0328dc020065b77b91433f5eec90e30a1e84877121f28377b3.jpg",
1225
+ "image_caption": [
1226
+ "Figure 7: Effect of varying our lossy compression parameters on the convergence MNIST. "
1227
+ ],
1228
+ "image_footnote": [],
1229
+ "bbox": [
1230
+ 179,
1231
+ 239,
1232
+ 821,
1233
+ 340
1234
+ ],
1235
+ "page_idx": 12
1236
+ },
1237
+ {
1238
+ "type": "image",
1239
+ "img_path": "images/09ea07f075bbf2194d3e9f2122c5ec2706362418c4a9d51d750b66d8b33eca43.jpg",
1240
+ "image_caption": [
1241
+ "Figure 8: Effect of varying the percentage of neurons kept in each layer on MNIST. "
1242
+ ],
1243
+ "image_footnote": [],
1244
+ "bbox": [
1245
+ 354,
1246
+ 397,
1247
+ 642,
1248
+ 491
1249
+ ],
1250
+ "page_idx": 12
1251
+ },
1252
+ {
1253
+ "type": "image",
1254
+ "img_path": "images/76fe8639e916dacc9a7c5c53cddd74600a52a6c614b2572b179f9d9a8004aa1c.jpg",
1255
+ "image_caption": [
1256
+ "Figure 9: Effect of using both lossy compression and Federated Dropout on MNIST. "
1257
+ ],
1258
+ "image_footnote": [],
1259
+ "bbox": [
1260
+ 178,
1261
+ 547,
1262
+ 821,
1263
+ 648
1264
+ ],
1265
+ "page_idx": 12
1266
+ }
1267
+ ]
parse/train/SJlpM3RqKQ/SJlpM3RqKQ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJlpM3RqKQ/SJlpM3RqKQ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/yehlf2AvSD_/yehlf2AvSD_.md ADDED
@@ -0,0 +1,480 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Mean-Square Analysis with An Application to Optimal Dimension Dependence of Langevin Monte Carlo
2
+
3
+ Anonymous Author(s)
4
+ Affiliation
5
+ Address
6
+ email
7
+
8
+ # Abstract
9
+
10
+ 1 Sampling algorithms based on discretizations of Stochastic Differential Equations
11
+ 2 (SDEs) compose a rich and popular subset of MCMC methods. This work pro
12
+ 3 vides a general framework for the non-asymptotic analysis of sampling error in
13
+ 4 2-Wasserstein distance, which also leads to a bound of mixing time. The method
14
+ 5 applies to any consistent discretization of contractive SDEs. When applied to
15
+ 6 Langevin Monte Carlo algorithm, it establishes $\widetilde { \mathcal { O } } \left( \sqrt { d } / \epsilon \right)$ mixing time, without
16
+ 7 warm start, under the common log-smooth and log-strongly-convex conditions,
17
+ 8 plus a growth condition on the potential of target measures at infinity. This bound
18
+ 9 improves the best previously known $\widetilde { \mathcal { O } } \left( { d } / { \epsilon } \right)$ result and is optimal in both dimension
19
+ 10 $d$ and accuracy tolerance $\epsilon$ for log-smooth and log-strongly-convex target measures.
20
+ 11 Our theoretical analysis is further validated by numerical experiments.
21
+
22
+ # 12 1 Introduction
23
+
24
+ 13 The problem of sampling statistical distributions has attracted considerable attention, not only in
25
+ 14 the fields of statistics and scientific computing, but also in machine learning (Robert and Casella,
26
+ 15 2013; Andrieu et al., 2003; Liu, 2008); for example, how various sampling algorithms scale with
27
+ 16 the dimension of the target distribution is a popular recent topic in statistical deep learning (see
28
+ 17 discussions below for references). For samplers that can be viewed as discretizations of SDEs, the
29
+ 18 idea is to use an ergodic SDE whose equilibrium distribution agrees with the target distribution,
30
+ 19 and employ an appropriate numerical algorithm that discretizes (the time of) the SDE. The iterates
31
+ 20 of the numerical algorithm will approximately follow the target distribution when converged, and
32
+ 21 can be used for various downstream applications such as Bayesian inference and inverse problem
33
+ 22 (Dashti and Stuart, 2017). One notable example is the Langevin Monte Carlo algorithm (LMC),
34
+ 23 which corresponds to Euler-Maruyama discretization of overdamped Langevin equation. Its study
35
+ 24 dated back to at least the 90s (Roberts et al., 1996) but keeps on leading to important discoveries, for
36
+ 25 example, on non-asymptotics and dimension dependence, which are relevant to machine learning
37
+ 26 (e.g., Dalalyan (2017a,b); Cheng et al. (2018a); Durmus et al. (2019a,b); Vempala and Wibisono
38
+ 27 (2019); Dalalyan and Riou-Durand (2020); Erdogdu and Hosseinzadeh (2020); Mou et al. (2019)).
39
+ 28 LMC is closely related to SGD too (e.g., Mandt et al. (2017)). Many other examples exist, based
40
+ 29 on alternative SDEs and different discretizations (e.g., Dalalyan and Riou-Durand (2020); Ma et al.
41
+ 30 (2021); Mou et al. (2021); Li et al. (2020); Roberts and Rosenthal (1998); Chewi et al. (2020); Shen
42
+ 31 and Lee (2019)).
43
+ 32 Quantitatively characterizing the non-asymptotic sampling error of numerical algorithms is usually
44
+ 33 critical for choosing the appropriate algorithm for a specific downstream application, for providing
45
+ 34 practical guidance on hyperparameter selection and experiment design, and for designing improved
46
+ 35 samplers. A powerful tool that dates back to (Jordan et al., 1998) is a paradigm of non-asymptotic
47
+ 36 error analysis, namely to view sampling as optimization in probability space, and it led to many
48
+ 37 important recent results (e.g., Liu and Wang (2016); Dalalyan (2017a); Wibisono (2018); Zhang
49
+ 38 et al. (2018); Frogner and Poggio (2020); Chizat and Bach (2018); Chen et al. (2018); Ma et al.
50
+ 39 (2021); Erdogdu and Hosseinzadeh (2020)). It works by choosing an objective functional, typically
51
+ 40 some statistical distances/diverges, and showing that the law of the iterates of sampling algorithms
52
+ 41 converges in that objective functional. However, the choice of the objective functional often needs to
53
+ 42 be customized for different sampling algorithms. For example, KL divergence works for LMC (Cheng
54
+ 43 and Bartlett, 2018), but a carefully hand-crafted cross term needs to be added to KL divergence for
55
+ 44 analyzing KLMC (Ma et al., 2021). Even for the same underlying SDE, different discretization
56
+ 45 schemes exist and lead to different sampling algorithms, and the analyses of them had usually been
57
+ 46 case by case (e.g., Cheng et al. (2018b); Dalalyan and Riou-Durand (2020); Shen and Lee (2019)).
58
+ 47 Therefore, it would be a desirable complement to have a unified, general framework to study the
59
+ 48 non-asymptotic error of SDE-based sampling algorithms.
60
+ 49 As an important member of the family of SDE-based sampling algorithms, Langevin Monte Carlo is
61
+ 50 widely used in practice. Its stochastic gradient version is implemented in common machine learning
62
+ 51 systems, such as Tensorflow (Abadi et al., 2016), and is the off-the-shelf algorithm for large scale
63
+ 52 Bayesian inference. With the ever-growing size of parameter space, the non-asymptotic error of LMC
64
+ 53 is of central theoretical and practical interest, in particular, its dependence on the dimension of the
65
+ 54 sample space. The best current known upper bound of the mixing time in 2-Wasserstein distance for
66
+ 55 LMC is $\begin{array} { r } { \bar { \mathcal { O } } \left( \frac { d } { \epsilon } \right) } \end{array}$ (Durmus et al., 2019b). Motivated by a recent result (Chewi et al., 2020) that shows
67
+ 56 better dimension dependence for a Metropolis-Adjusted improvement of LMC, we wonder if the
68
+ 57 current bound for (unadjusted) LMC is tight, and if not, what is the optimal dimension dependence?
69
+ 58 Our contribution We study a broad family of numerical algorithms that discretize SDEs that
70
+ 59 have a contraction property (possibly after a coordinate transformation). For this type of problems,
71
+ 60 we revisit the classical mean-square analysis (Milstein and Tretyakov, 2013) in numerical SDE
72
+ 61 literature and extend its the global error bound from finite time to infinite time. Same as in classical
73
+ 62 mean-square analysis, we show the global error is only half order lower than the order of local strong
74
+ 63 error $\left( p _ { 2 } \right)$ . We further obtain a $\tilde { \mathcal { O } } \left( C ^ { \frac { 1 } { p _ { 2 } - \frac { 1 } { 2 } } } \underbrace { \frac { 1 } { \epsilon ^ { \frac { 1 } { p _ { 2 } - \frac { 1 } { 2 } } } } } \right)$ mixing time upper bound in 2-Wasserstein
75
+ 64 distance for the family of algorithms, where $C$ is a constant containing various information of the
76
+ 65 underlying problem, e.g., the dimension $d$ .
77
+ 66 As an application of the general mixing time result, we study the widely used Langevin Monte
78
+ 67 Carlo algorithm (LMC) for sampling from a Gibbs distribution $\mu \propto \mathrm { e x p } \left( - f ( \pmb { x } ) \right)$ , which is an
79
+ 68 Euler-Maruyama discretization of Langevin dynamics. Under the standard smoothness and strong
80
+ 69 convexity assumptions, plus an additional linear growth condition on the third-order derivative of $f$ ,
81
+ 70 we obtain a $\begin{array} { r } { \widetilde { \mathcal { O } } \left( \frac { \sqrt { d } } { \epsilon } \right) } \end{array}$ mixing time in 2-Wasserstein distance, which improves upon the previously best
82
+ 71 known $\begin{array} { r } { \widetilde { \mathcal { O } } \left( \frac { d } { \epsilon } \right) } \end{array}$ result (Durmus et al., 2019b). For a comparison, note it was known that discretized
83
+ 72 kinetic Langevin dynamics can lead to $\sqrt { d }$ dependence on dimension (Cheng and Bartlett, 2018;
84
+ 73 Dalalyan and Riou-Durand, 2020) and some believe that it is the introduction of momentum that
85
+ 74 improves the dimension dependence, but our result shows that discretized overdamped Langevin (no√
86
+ 75 momentum) can also have mixing time scaling like $\sqrt { d }$ . In fact, it is important to mention that it was
87
+ 76 recently shown that Metropolis-Adjusted Euler-Maruyama discretization of overdamped Langevin
88
+ 77 (i.e., MALA) has an optimal dimension dependence of $\widetilde { \mathcal { O } } \left( \sqrt { d } \right)$ (Chewi et al., 2020), while what we
89
+ 78 analyze here is the unadjusted version (i.e., LMC), and it has the same dimension dependence (note
90
+ 79 however that our $\epsilon$ dependence is not as good as that for MALA; more discussion in Section 4). We
91
+ 80 also constructed an example that shows that the mixing time of LMC is at least $\begin{array} { r } { \widetilde \Omega \left( \frac { \sqrt { d } } { \epsilon } \right) } \end{array}$ . Hence, our
92
+ 81 mixing time bound has the optimal dependence on both $d$ and $\epsilon$ . Our theoretical analysis is further
93
+ 82 validated by empirical investigation of numerical examples.
94
+
95
+ # 83 2 Preliminaries
96
+
97
+ 84 Notation Use the symbol $_ { x }$ to denote a $d$ -dimensional vector, and the plain symbol $x$ to denote a
98
+ 85 scalar variable. Use $\lVert \boldsymbol { x } \rVert$ to denote the Euclidean norm of vector $_ { x }$ . A numerical algorithm is denoted
99
+ 86 by $\mathcal { A }$ and its $k$ -th iterate is denoted by $\bar { \pmb { x } } _ { k }$ . We slightly abuse notation by identifying measures with
100
+ 87 their density function w.r.t. Lebesgue measure. We use the convention $\begin{array} { r } { \tilde { \mathcal { O } } \left( \cdot \right) = \mathbf { \bar { \mathcal { O } } } ( \cdot ) \log ^ { \mathcal { O } ( 1 ) } ( \cdot ) } \end{array}$
101
+ 88 i.e., the $\widetilde { \mathcal { O } } \left( \cdot \right)$ notation ignores the dependence on logarithmic factors. We use the notation $\widetilde { \Omega } ( \cdot )$
102
+ 89 similarly. Denote 2-Wasserstein distance by $\begin{array} { r } { W _ { 2 } ( \mu _ { 1 } , \mu _ { 2 } ) = \left( \operatorname* { i n f } _ { ( \pmb { X } , \pmb { Y } ) \sim \Pi ( \mu _ { 1 } , \mu _ { 2 } ) } \mathbb { E } \left\| \pmb { X } - \pmb { Y } \right\| ^ { 2 } \right) ^ { \frac { 1 } { 2 } } } \end{array}$ ,
103
+ 90 where $\Pi ( \mu _ { 1 } , \mu _ { 2 } )$ is the set of couplings, i.e. all joint measures with $X$ and $Y$ marginals being
104
+ 91 $\mu _ { 1 }$ and $\mu _ { 2 }$ . Denote the target distribution by $\mu$ and the law of a random variable $\boldsymbol { X }$ by $\operatorname { L a w } ( X )$ .
105
+ 92 Finally, denote the mixing time of an sampling algorithm $\mathcal { A }$ converging to its target distribution $\mu$ in
106
+ 93 2-Wasserstein distance by $\begin{array} { r } { \tau _ { \operatorname* { m i x } } ( \epsilon ; W _ { 2 } ; A ) = \operatorname* { i n f } \{ k \geq 0 | W _ { 2 } ( \operatorname { L a w } ( \bar { x } _ { k } ) , \mu ) \leq \epsilon \} . } \end{array}$ .
107
+
108
+ # 94 SDE for Sampling Consider a general SDE
109
+
110
+ $$
111
+ d { \pmb x } _ { t } = { \pmb b } ( t , { \pmb x } _ { t } ) d t + { \pmb \sigma } ( t , { \pmb x } _ { t } ) d { \pmb B } _ { t }
112
+ $$
113
+
114
+ 95 where $\pmb { b } \in \mathbb { R } ^ { d }$ is a drift term, $\pmb { \sigma } \in \mathbb { R } ^ { d \times l }$ is a diffusion coefficient matrix and $\mathbf { \delta } _ { B _ { t } }$ is a $l$ -dimensional
115
+ 96 Wiener process. Under mild condition (Pavliotis, 2014, Theorem 3.1), there exists a unique strong
116
+ 97 solution $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { t } }$ to Eq. (1). Some SDEs admit geometric ergodicity, so that their solutions converge
117
+ 98 exponentially fast to a unique invariant distribution, and examples include the classical overdamped
118
+ 99 and kinetic Langevin dynamics, but are not limited to those (e.g., Mou et al. (2021); Li et al. (2020)).
119
+ 100 Such SDE are desired for sampling purposes, because one can set the target distribution to be the
120
+ 101 invariant distribution by choosing an SDE with an appropriate potential, and then solve the solution
121
+ 102 $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { t } }$ of the SDE and push the time $t$ to infinity, so that (approximate) samples of the target distribution
122
+ 103 can be obtained. Except for a few known cases, however, explicit solutions of Eq. (1) are elusive and
123
+ 104 we have to resort to numerical schemes to simulate/integrate SDE. Such example schemes include,
124
+ 105 but are not limited to Euler-Maruyama method, Milstein methods and Runge-Kutta method (e.g.,
125
+ 106 Kloeden and Platen (1992); Milstein and Tretyakov (2013)). With constant stepsize $h$ and at $k$ -th
126
+ 107 iteration, a typical numerical algorithm takes a previous iterate $\bar { \pmb { x } } _ { k - 1 }$ and outputs a new iterate $\bar { \pmb { x } } _ { k }$ as
127
+ 108 an approximation of the solution $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { t } }$ of Eq. (1) at time $t = k h$ .
128
+
129
+ 109 Langevin Monte Carlo Algorithm LMC algorithm is defined by the following update rule
130
+
131
+ $$
132
+ \bar { \pmb { x } } _ { k } = \bar { \pmb { x } } _ { k - 1 } - h \nabla f ( \bar { \pmb { x } } _ { k - 1 } ) + \sqrt { 2 h } \pmb { \xi } _ { k } , \quad k = 1 , 2 , \cdots
133
+ $$
134
+
135
+ where $\{ \pmb { \xi } _ { k } \} _ { k \in \mathbb { Z } _ { > 0 } }$ are i.i.d. standard $d$ -dimensional Gaussian vectors. LMC corresponds to an EulerMaruyama discretization of the continuous overdamped Langevin dynamics $d { \pmb x } _ { t } = - \nabla f ( { \pmb x } _ { t } ) d t +$ $\sqrt { 2 } d B _ { t }$ , which converges to an equilibrium distribution $\mu \sim \exp ( - f ( \pmb { x } ) )$ .
136
+
137
+ 13 Dalalyan (2017b) provided a non-asymptotic analysis of LMC. An $\begin{array} { r } { \widetilde { \mathcal { O } } \left( \frac { d } { \epsilon ^ { 2 } } \right) } \end{array}$ mixing time bound in
138
+ 14 $W _ { 2 }$ for log-smooth and log-strongly-convex target measures (Dalalyan, 2017a; Cheng et al., 2018a;
139
+ 15 Durmus et al., 2019a) has been established. It was further improved to $\begin{array} { r } { \widetilde { \mathcal { O } } \left( \frac { d } { \epsilon } \right) } \end{array}$ under additional
140
+ 16 Lipschitz assumption on the Hessian of $f$ (Durmus et al., 2019b). Mixing time bounds of LMC
141
+ 17 in other statistical distances/divergences have also been studied, including total variation distance
142
+ 118 (Dalalyan, 2017b; Durmus et al., 2017) and KL divergence (Cheng and Bartlett, 2018).
143
+ 119 Classical Mean-Square Analysis A powerful framework for quantifying the global discretization
144
+ 120 error of a numerical algorithm for Eq. (1), i.e., $e _ { k } = \left\{ \mathbb { E } \left\| \pmb { x } _ { k h } - \bar { \pmb { x } } _ { k } \right\| \right\} ^ { \frac { 1 } { 2 } }$ , is mean-square analysis
145
+ 121 (e.g., the monograph of Milstein and Tretyakov (2013)). Mean-square analysis studies how local
146
+ 122 integration error propagate and accumulate into global integration error; in particular, if one-step
147
+ 123 (local) weak error and strong error (both the exact solution $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { t } }$ and the numerical approximation start
148
+ 124 from the same initial value $_ { \textbf { \em x } }$ ) satisfy
149
+
150
+ $$
151
+ \begin{array} { r l } & { \left\| \mathbb { E } x _ { h } - \mathbb { E } \bar { { \bar { x } } } _ { 1 } \right\| \leq C _ { 1 } \left( 1 + \mathbb { E } \left\| x \right\| ^ { 2 } \right) ^ { \frac { 1 } { 2 } } h ^ { p _ { 1 } } , \quad \mathrm { ( l o c a l ~ w e a k ~ e r r o r ) } } \\ & { \left( \mathbb { E } \left\| x _ { h } - \bar { x } _ { 1 } \right\| ^ { 2 } \right) ^ { \frac { 1 } { 2 } } \leq C _ { 2 } \left( 1 + \mathbb { E } \left\| x \right\| ^ { 2 } \right) ^ { \frac { 1 } { 2 } } h ^ { p _ { 2 } } , \quad \mathrm { ( l o c a l ~ s t r o n g ~ e r r o r ) } } \end{array}
152
+ $$
153
+
154
+ over a time interval 125 $[ 0 , K h ]$ for some constants $C _ { 1 } , C _ { 2 } > 0$ , $p _ { 2 } \geq { \frac { 1 } { 2 } }$ and $\begin{array} { r } { p _ { 1 } \geq p _ { 2 } + \frac { 1 } { 2 } } \end{array}$ , then the global error can be bounded by 126 $\begin{array} { r } { \displaystyle { e _ { k } \leq C \left( 1 + \mathbb { E } \left\| x _ { 0 } \right\| ^ { 2 } \right) ^ { \frac { 1 } { 2 } } h ^ { p _ { 2 } - \frac { 1 } { 2 } } } } \end{array}$ , $k = 1 , 2 , \cdots , K$ for some constant 127 $C > 0$ dependent on $K h$ .
155
+
156
+ 128 Although classical mean-square analysis is only concerned with numerical integration error, sampling
157
+ 129 error can be also inferred. However, there is a limitation that prevents directly employing mean-square
158
+ 130 analysis in the non-asymptotic analysis of sampling algorithms. The bound of global error only holds
159
+ 131 in finite time because the constant $C$ can grow exponentially as $K$ increases, rendering the bound
160
+ 132 useless when $K \infty$ .
161
+
162
+ # 3 Mean-Square Analysis of Samplers Based on Contractive SDE
163
+
164
+ In order to prepare for the analysis of sampling error, we first show that the finite time limitation of integration error analysis can be lifted if the SDE being discretized is contractive.
165
+
166
+ 136 More precisely, one bottleneck that prevents the results of classical mean-square analysis from
167
+ 137 extending to infinite time horizon, is the fact that the solution of a general SDE may not be bounded,
168
+ 138 and neither is its discretization. Note that local error (Eq. (3)) depends on the initial value. To go
169
+ 139 from local to global error, these ‘initial’ values correspond to iterates of numerical algorithms, which
170
+ 140 change from iteration to iteration and can be unbounded, hence when accumulated together, it is
171
+ 141 possible that the global error may blow up.
172
+ 142 Samplers considered here, on the other hand, are based on stochastic differential equations, each of
173
+ 143 which weakly converges to a limiting distributions. The solution of the underlying converging SDE,
174
+ 144 as it converges to the invariant measure, gradually inherits boundedness properties from the target
175
+ 145 measure. Thus, as long as the target measure has bounded 2nd-moment, a sampling algorithm based
176
+ 146 on a reasonable discretization of the SDE should also have bounded 2nd-moment. Motivated by this
177
+ 147 observation, we will assume the sampling algorithms we study are based on contractive SDEs, which
178
+ 148 is a sufficient condition to ensure the underlying SDE converges to a statistical distribution.
179
+
180
+ 149 Definition 3.1. A stochastic differential equation is contractive if there exists a non-singular constant matrix 150 $A \in \mathbb { R } ^ { d \times d }$ , a constant $\beta > 0$ , such that any pair of solutions of the SDE satisfy
181
+
182
+ $$
183
+ \begin{array} { r } { \left( \mathbb { E } \left\| A \left( \pmb { x } _ { t } - \pmb { y } _ { t } \right) \right\| ^ { 2 } \right) ^ { \frac { 1 } { 2 } } \leq \left\| A \left( \pmb { x } - \pmb { y } \right) \right\| \exp ( - \beta t ) , } \end{array}
184
+ $$
185
+
186
+ 151 where $\mathbf { \boldsymbol { x } } _ { t } , \mathbf { \boldsymbol { y } } _ { t }$ are two solutions, driven by the same Brownian motion but evolved respectively from
187
+ 152 initial conditions $_ { \textbf { \em x } }$ and $\textbf { { y } }$ .
188
+ 53 Remark. As long as $^ { b }$ and $\sigma$ in (1) are not explicitly dependent on time, it suffices to find an
189
+ 54 arbitrarily small $t _ { 0 } > 0$ and show (4) holds for all $t < t _ { 0 }$ .
190
+
191
+ Remark. Sometimes contraction is not easy to establish directly, but can be shown after an appropriate coordinate transformation, see (Dalalyan and Riou-Durand, 2020, Proposition 1) for such a treatment for kinetic Langevin dynamics. The introduction of $A$ permits such transformations.
192
+
193
+ 158 We now use contractivity to remove the finite time limitation. We will first need a lemma, which is a
194
+ 159 local (short time) result.
195
+ 160 Lemma 3.2. (Milstein and Tretyakov, 2013, Lemma 1.3) Suppose $^ { b }$ and $\pmb { \sigma }$ in Eq.(1) are Lipschitz
196
+ 161 continuous. For two solutions $\mathbf { \boldsymbol { x } } _ { t } , \mathbf { \boldsymbol { y } } _ { t }$ of Eq. (1) starting from $\mathbf { \nabla } _ { \mathbf { x } , \mathbf { y } }$ respectively, denote $z : =$
197
+ 162 $( { \pmb x } _ { t } - { \pmb x } ) - ( { \pmb y } _ { t } - { \pmb y } )$ , then there exist $C _ { 0 } > 0$ and $h _ { 0 } > 0$ such that
198
+
199
+ $$
200
+ \begin{array} { r } { \mathbb { E } \left\| z \right\| ^ { 2 } \leq C _ { 0 } \left\| x - y \right\| ^ { 2 } t , \quad \forall x , y , 0 < t \leq h _ { 0 } . } \end{array}
201
+ $$
202
+
203
+ 163 Then we will have a sequence of results that connects sampling error (a statistical property) with
204
+ 164 local integration error (a simulation property). This justifies our generic produce for non-asymptotic
205
+ 165 sampling error analysis, which only requires bounding the orders of local weak and strong integration
206
+ 166 errors (in addition to establishing contractivity of the continuous dynamics).
207
+ 167 Theorem 3.3. (Global Integration Error, Infinite Time Version) Suppose Eq.(1) is contractive with
208
+ 168 rate $\beta$ and with respect to a non-singular matrix $A \in \mathbb { R } ^ { d \times d }$ , with Lipschitz continuous $^ { b }$ and $\pmb { \sigma }$
209
+ 169 and there is a numerical algorithm $\mathcal { A }$ with step size $h$ simulating the solution $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { t } }$ of the $S D E$ , whose
210
+ 170 iterates are denoted by $\bar { \boldsymbol { x } } _ { k } , k = 0 , 1 , \cdots$ . Suppose there exists $0 < h _ { 0 } \leq 1 , C _ { 1 } , C _ { 2 } > 0 , D _ { 1 } , D _ { 2 } \geq$
211
+ 171 $0 , p _ { 1 } \geq 1 , \frac { 1 } { 2 } < p _ { 2 } \leq \dot { p _ { 1 } } - \frac { 1 } { 2 }$ such that for any $0 < h \leq h _ { 0 }$ , the algorithm $\mathcal { A }$ has, respectively, local
212
+ 172 weak and strong error of order $p _ { 1 }$ and $p _ { 2 }$ , defined as
213
+
214
+ $$
215
+ \begin{array} { r l } & { \left\{ \left. \mathbb { E } \left( { \pmb x } _ { h } - { \bar { \pmb x } } _ { 1 } \right) \right. \right\} \leq \left( C _ { 1 } + D _ { 1 } \sqrt { \mathbb { E } \left. \pmb x \right. ^ { 2 } } \right) h ^ { p _ { 1 } } , } \\ & { \left( \mathbb { E } \left. \pmb x _ { h } - { \bar { \pmb x } } _ { 1 } \right. ^ { 2 } \right) ^ { \frac { 1 } { 2 } } \leq \left( C _ { 2 } ^ { 2 } + D _ { 2 } ^ { 2 } \mathbb { E } \left. \pmb x \right. ^ { 2 } \right) ^ { \frac { 1 } { 2 } } h ^ { p _ { 2 } } , } \end{array}
216
+ $$
217
+
218
+ 173 where $\scriptstyle { \mathbf { 2 } } ( { \mathbf { 2 } } \scriptscriptstyle { h }$ solves Eq.(1) with any initial value $_ { \textbf { \em x } }$ and $\bar { \mathbf { x } } _ { 1 }$ is the result of applying $\mathcal { A }$ to $_ { \textbf { \em x } }$ for one step.
219
+ 174 If the solution of SDE $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { t } }$ and algorithm $\mathcal { A }$ both start from $\scriptstyle { \mathbf { { \mathit { x } } } } _ { 0 }$ , then for $0 ~ < ~ h ~ \leq ~ h _ { 1 }$ ,
220
+ 175 $\begin{array} { r l r } & { } & { \operatorname* { m i n } \left\{ h _ { 0 } , \frac { 1 } { 4 \beta } , \left( \frac { \sqrt { \beta } } { 4 \sqrt { 2 } \kappa _ { A } D _ { 2 } } \right) ^ { \frac { 1 } { p _ { 2 } - \frac { 1 } { 2 } } } , \left( \frac { \beta } { 8 \sqrt { 2 } \kappa _ { A } \left( D _ { 1 } + C _ { 0 } D _ { 2 } \right) } \right) ^ { \frac { 1 } { p _ { 2 } - \frac { 1 } { 2 } } } \right\} , t h e ~ g l o b a l ~ e r r } \\ & { } & { e _ { k } : = \left( { \mathbb E } \| x _ { k h } - \bar { x } _ { k } \| ^ { 2 } \right) ^ { \frac { 1 } { 2 } } \leq C h ^ { p _ { 2 } - \frac { 1 } { 2 } } , \quad k = 0 , 1 , 2 , \cdots } \end{array}$ r $e _ { k }$ is bounded as
221
+ 176
222
+
223
+ 177 where
224
+
225
+ $$
226
+ C = \frac { 2 } { \sqrt { \beta } } \kappa _ { A } ^ { 2 } \left( \frac { C _ { 1 } + C _ { 0 } C _ { 2 } + \sqrt { 2 } U ( D _ { 1 } + C _ { 0 } D _ { 2 } ) } { \sqrt { \beta } } + C _ { 2 } + \sqrt { 2 } D _ { 2 } U \right) ,
227
+ $$
228
+
229
+ 178 $C _ { 0 }$ is from Eq. (5), $\kappa _ { A }$ is the condition number of matrix $A$ and $U ^ { 2 } \triangleq 4 \left\| \pmb { x } _ { 0 } \right\| ^ { 2 } + 5 \mathbb { E } _ { \mu } \left\| \pmb { x } \right\| ^ { 2 } .$ .
230
+
231
+ 179 Remark. We use the convention $1 / 0 = \infty$ when $D _ { 1 } = D _ { 2 } = 0$ . This is pertinent when a numerical
232
+ 180 algorithm $\mathcal { A }$ , e.g. LMC (Lemma $D . 3$ ), produces bounded iterates. In such cases, the initial value in
233
+ 181 Eq. (6) are iterations of $\mathcal { A }$ and will be bounded, it then can be absorbed into $C _ { 1 } , C _ { 2 }$ and we may set
234
+ 182 $D _ { 1 } = D _ { 2 } = 0$ .
235
+
236
+ 83 Following Theorem 3.3, we obtain the following non-asymptotic bound of the sampling error in $W _ { 2 }$ :
237
+
238
+ 84 Theorem 3.4. (Non-Asymptotic Sampling Error Bound: General Case) Under the same assump
239
+ 185 tion and with the same notation of Theorem 3.3, we have
240
+
241
+ $$
242
+ W _ { 2 } ( L a w ( \bar { x } _ { k } ) , \mu ) \leq \sqrt { 2 } e ^ { - \beta k h } W _ { 2 } ( L a w ( x _ { 0 } ) , \mu ) + \sqrt { 2 } C h ^ { p _ { 2 } - \frac { 1 } { 2 } } , \quad \forall 0 < h \leq h _ { 1 } .
243
+ $$
244
+
245
+ 186 A corollary of Theorem 3.4 is a bound on the mixing time of the sampling algorithm:
246
+
247
+ 187 Corollary 3.5. (Upper Bound of Mixing Time: General Case) Under the same assumption and
248
+ 188 with the same notation of Theorem 3.3, we have
249
+
250
+ $$
251
+ \tau _ { \mathrm { m i x } } ( \epsilon ; W _ { 2 } ; A ) \leq \operatorname* { m a x } \left\{ \frac { 1 } { \beta h _ { 1 } } , \frac { 1 } { \beta } \left( \frac { 2 C } { \epsilon } \right) ^ { \frac { 1 } { p _ { 2 } - \frac { 1 } { 2 } } } \right\} \log \frac { 2 \sqrt { 2 } W _ { 2 } ( L a w ( x _ { 0 } ) \mu ) } { \epsilon }
252
+ $$
253
+
254
+ In particular, when high accuracy is needed, i.e.,  < 2Chp2− 121189 , we have
255
+
256
+ $$
257
+ \tau _ { \mathrm { m i x } } ( \epsilon ; W _ { 2 } ; A ) \leq \frac { ( 2 C ) ^ { \frac { 1 } { p _ { 2 } - \frac { 1 } { 2 } } } } { \beta } \frac { 1 } { \epsilon ^ { \frac { 1 } { p _ { 2 } - \frac { 1 } { 2 } } } } \log \frac { 2 \sqrt { 2 } W _ { 2 } ( L a w ( x _ { 0 } ) , \mu ) } { \epsilon } = \widetilde { \mathcal { O } } \left( \frac { C ^ { \frac { 1 } { p _ { 2 } - \frac { 1 } { 2 } } } } { \beta } \frac { 1 } { \epsilon ^ { \frac { 1 } { p _ { 2 } - \frac { 1 } { 2 } } } } \right)
258
+ $$
259
+
260
+ 190 Corollary 3.5 states how mixing time depends on the order of local (strong) error (i.e., $p _ { 2 } ^ { \phantom { } } ,$ ) of a
261
+ 191 numerical algorithm. The larger $p _ { 2 }$ is, the shorter the mixing time of the algorithm is, in term of
262
+ 192 the dependence on accuracy tolerance parameter $\epsilon$ . It is important to note that for constant stepsize
263
+ 193 discretizations that are deterministic on the filtration of the driving Brownian motion and use only its
264
+ 194 increments, there is a strong order barrier, namely $p _ { 2 } \leq 1 . 5$ (Rüemelin, 1982); however, methods
265
+ 195 involving multiple stochastic integrals (e.g., Kloeden and Platen (1992); Milstein and Tretyakov
266
+ 196 (2013)) and randomization (e.g., Shen and Lee (2019)) can yield a larger $p _ { 2 }$ .
267
+ 197 The constant $C$ defined in Eq. (7) typically contains rich information about the underlying SDE, e.g.
268
+ 198 dimension, Lipschitz constant of drift and noise diffusion, and the initial value $\scriptstyle { \mathbf { { \mathit { x } } } } _ { 0 }$ of the sampling
269
+ 199 algorithm. Through $C$ , we can uncover the dependence of mixing time bound on various parameters,
270
+ 200 such as the dimension $d$ . This will be exemplified with Langevin Monte Carlo in the next section.
271
+
272
+ # 201 4 Non-Asymptotic Analysis of Langevin Monte Carlo Algorithm
273
+
274
+ 202 This section quantifies how LMC samples from Gibbs target distribution $\mu \sim \exp \left( - f ( \pmb { x } ) \right)$ that has
275
+ 203 a finite second moment, i.e., $\begin{array} { r } { \int _ { \mathbb { R } ^ { d } } \left\| \pmb { x } \right\| ^ { 2 } d \mu < \infty } \end{array}$ . Assume without loss of generality that the origin is
276
+ 204 a local minimizer of $f$ , i.e. $\nabla f ( \mathbf { 0 } ) = \mathbf { 0 }$ ; this is for notational convenience in the analysis and can
277
+ 205 be realized via a simple coordinate shift, and it is not needed in the practical implementation. In
278
+ 206 addition, we assume the following two conditions hold:
279
+
280
+ A 1. (Smoothness and Strong Convexity) Assume 7 $f \in { \mathcal { C } } ^ { 2 }$ and is $L$ -smooth and $m$ -strongly-convex, i.e. there exists 08 $0 < m \le L$ such that $m \bar { I } _ { d } \preccurlyeq \nabla ^ { 2 } f ( \acute { \pmb x } ) \preccurlyeq L I _ { d } , \quad$ $\forall \pmb { x } \in \mathbb { R } ^ { d }$ .
281
+
282
+ Denote the condition number of 209 the standard assumption in the lit $f$ by atu $\kappa \triangleq { \frac { L } { m } }$ . The smoothness and strong-convexity assumption isalyzing LMC algorithm (Dalalyan, 2017a,b; Cheng and Bartlett, 2018; Durmus et al., 2019a,b).
283
+
284
+ A 2. (Linear Growth of the 3rd-order derivative) Assume $f \in \mathcal { C } ^ { 3 }$ and the operator $\nabla ( \Delta f )$ grows at most linearly, i.e., there exists a constant $G > 0$ such that $\begin{array} { r } { \left\| \nabla ( \Delta f ( \pmb { x } ) ) \right\| \leq G \left( 1 + \| \pmb { x } \| \right) } \end{array}$ .
285
+
286
+ Remark. The linear growth (at infinity) condition on $\nabla \Delta f$ is actually not as restrictive as it appears, and in some sense even weaker than some classical condition for the existence of solutions to SDE. For example, a standard condition for ensuring the existence and uniqueness of a global solution to SDE is at most a linear growth (at infinity) of the drift (Pavliotis, 2014, Theorem 3.1). If we consider monomial potentials, i.e., $f ( x ) = x ^ { p } , p \in \mathbb { N } _ { + }$ , then the linear growth condition on $\nabla \Delta f$ is met when $p \leq 4$ , whereas the classical condition for the existence of solutions holds only when $p \leq 2$ .
287
+
288
+ 220 To apply mean-square analysis to study LMC algorithm, we will need to ensure the underlying
289
+ 221 Langevin dynamics is contractive, which we verify in Section C and D in the appendix. In addition,
290
+ 222 we work out all required constants to determine the $C$ in Eq. 7 explicitly in the appendix. With all
291
+ 223 these necessary ingredients, we now invoke Theorem 3.4 and obtain the following result:
292
+
293
+ 224 Theorem 4.1. (Non-Asymptotic Error Bound: LMC) Suppose Assumption √ $\cdot$ and 2 hold. LMC iteration 225 $\bar { \pmb { x } } _ { k + 1 } = \bar { \pmb { x } } _ { k } - h \nabla f ( \bar { \pmb { x } } _ { k } ) + \sqrt { 2 h } \xi _ { k }$ satisfies
294
+
295
+ $$
296
+ \begin{array} { l } { { \displaystyle { W _ { 2 } } \big ( L a w ( \bar { x } _ { k } ) , \mu \big ) \le \sqrt 2 e ^ { - m k h } W _ { 2 } \big ( L a w ( x _ { 0 } ) , \mu \big ) + \sqrt 2 C _ { L M C } h , \quad 0 < h \le \frac 1 { 4 \kappa L } , k \in \mathbb N } } \\ { ~ } \\ { \displaystyle { { e ^ { } C _ { L M C } } = \frac { 1 0 ( L ^ { 2 } + G ) } { m ^ { \frac 3 2 } } \sqrt { 2 d + m \left( \left. x _ { 0 } \right. ^ { 2 } + 1 \right) } = \mathcal { O } ( \sqrt d ) . } } \end{array}
297
+ $$
298
+
299
+ 27 Corollary 3.5 combined with the above result gives the following bound on the mixing time of LMC:
300
+
301
+ 28 Theorem 4.2. (Upper Bound of Mixing Time: LMC) Suppose Assumption $I$ and 2 hold. If running
302
+ 29 LMC from $\scriptstyle { \mathbf { { \mathit { x } } } } _ { 0 }$ , we then have
303
+
304
+ $$
305
+ \tau _ { \operatorname* { m i x } } ( \epsilon ; W _ { 2 } ; \mathrm { L M C } ) \le \operatorname* { m a x } \{ 4 \kappa ^ { 2 } , \frac { 2 C _ { L M C } } { m } \frac { 1 } { \epsilon } \} \log \frac { 2 \sqrt { 2 } W _ { 2 } ( L a w ( x _ { 0 } ) , \mu ) } { \epsilon }
306
+ $$
307
+
308
+ where 230 $C _ { L M C }$ is the same in Theorem 4.1. When high accuracy is needed, i.e., $\begin{array} { r } { \epsilon \leq \frac { C _ { L M C } } { 2 m \kappa ^ { 2 } } } \end{array}$ CLMC 2mκ2 , we have
309
+
310
+ $$
311
+ \tau _ { \mathrm { m i x } } ( \epsilon ; W _ { 2 } ; \mathrm { L M C } ) \leq \frac { 2 C _ { L M C } } { m } \frac { 1 } { \epsilon } \log \frac { 2 \sqrt { 2 } W _ { 2 } ( L a w ( { \pmb x } _ { 0 } ) , \mu ) } { \epsilon } = \widetilde { \mathcal { O } } \left( \frac { \sqrt { d } } { \epsilon } \right) .
312
+ $$
313
+
314
+ 231 The $\begin{array} { r } { \widetilde { \mathcal { O } } \left( \frac { \sqrt { d } } { \epsilon } \right) } \end{array}$ mixing time bound in 2-Wasserstein distance improves upon the previous ones
315
+ 232 (Dalalyan, 2017a; Cheng and Bartlett, 2018; Durmus et al., 2019b,a) in the dependence of √ $d$ and/or $\epsilon$ .
316
+ 233 If further assuming $G = \mathcal { O } ( L ^ { 2 } )$ , we then have $C _ { \mathrm { L M C } } = \mathcal { O } ( \kappa ^ { 2 } \sqrt { m } \sqrt { d } )$ and Thm.4.2 shows the mixing
317
+ 234 time is $\widetilde { \mathcal { O } } \left( \frac { \kappa ^ { 2 } } { \sqrt { m } } \frac { \sqrt { d } } { \epsilon } \right)$ , which also improves the $\kappa$ dependence in some previous results (Dalalyan,
318
+ 235 $2 0 1 7 \mathrm { a }$ ; Cheng and Bartlett, 2018) in the regime $m \leq 1$ . A brief comparison is summarized in Table 1.
319
+ 236 Optimality In fact, the $\begin{array} { r } { \widetilde { \mathcal { O } } \left( \frac { \sqrt { d } } { \epsilon } \right) } \end{array}$ mixing time of LMC has the optimal scaling one can expect. This
320
+ 237 is in terms of the dependence on $d$ and $\epsilon$ , over the class of all log-smooth and log-strongly-convex
321
+ 238 target measures. To illustrate this, consider the following Gaussian target distribution whose potential
322
+ 239 is
323
+
324
+ $$
325
+ f ( \pmb { x } ) = \frac { m } { 2 } \sum _ { i = 1 } ^ { d } x _ { i } ^ { 2 } + \frac { L } { 2 } \sum _ { i = d + 1 } ^ { 2 d } x _ { i } ^ { 2 } , \quad \mathrm { { w i t h } } m = 1 , L \geq 4 m .
326
+ $$
327
+
328
+ 240 We now establish a lower bound on the mixing time of LMC algorithm for this target measure.
329
+
330
+ 241 Theorem 4.3. (Lower Bound of Mixing Time) Suppose we run LMC for the target measure defined
331
+ 242 in Eq. (11) from ${ \pmb x } _ { 0 } = { \bf 1 } _ { 2 d }$ , then for any choice of step size $h > 0$ within stability limit, we have
332
+
333
+ $$
334
+ \tau _ { \mathrm { m i x } } ( \epsilon ; W _ { 2 } ; \mathrm { L M C } ) \geq \frac { \sqrt { d } } { 8 \epsilon } \log \frac { \sqrt { d } } { \epsilon } = \widetilde \Omega \left( \frac { \sqrt { d } } { \epsilon } \right) .
335
+ $$
336
+
337
+ Table 1: Comparison of mixing time results in 2-Wassertein distance of LMC with $L$ -smooth and $m$ -strongly-convex potential. Constant step size is used and accuracy tolerance $\epsilon$ is small enough.
338
+
339
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=3>mixing time</td><td rowspan=1 colspan=1>Additional Assumption</td></tr><tr><td rowspan=1 colspan=1>(Dalalyan,2017a, Theorem 1)</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>K²</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>(Cheng and Bartlett, 2018, Theorem 1)</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>(Durmus et al., 2019a, Corollary 10)</td><td rowspan=1 colspan=3>8()</td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>(Durmus et al., 2019b, Theorem 8)</td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=1>|/V²f(x)-V²f(y)||≤L|x- yll</td></tr><tr><td rowspan=1 colspan=1>This work (Theorem 4.2)</td><td rowspan=1 colspan=3>6Em</td><td rowspan=1 colspan=1>Assumption 2 and G = O(L²)2</td></tr></table>
340
+
341
+ 243 Combining Theorem 4.2 and 4.3, we see that mean-square analysis provides a tight bound for LMC.
342
+
343
+ 244 However, there is one limitation of our result – Assumption 2, which is, although mild, still extra to the
344
+ 245 standard setup. Therefore, the gap between the upper bound and the lower bound of LMC algorithm
345
+ 246 over the entire family of log-smooth and log-strongly-convex target measures is not completely
346
+ 247 closed. We tend to believe that Assumption 2 may not be essential, but rather than an artifact of our
347
+ 248 proof technique. We hope to lift this restriction in future work.
348
+ 249 Comparison At least two sampling algorithms are closely related to LMC. One is Kinetic Langevin
349
+ 250 Monte Carlo algorithm (KLMC), which is discretized kinetic/underdamped Langevin dynamics, and
350
+ 251 the other is Metropolis-Adjusted Langevin Algorithm (MALA) which uses the one-step update of
351
+ 252 LMC as a proposal and then accepts/rejects them with a Metropolis-Hastings algorithm.
352
+
353
+ The $\begin{array} { r } { \widetilde { \mathcal { O } } \left( \frac { \sqrt { d } } { \epsilon } \right) } \end{array}$ mixing time in 2-Wasserstein distance of KLMC has been established for log-smooth and log-strongly-convex target measures in existing literature (Cheng et al., 2018b; Dalalyan and Riou-Durand, 2020). Due to its better dimension dependence over previously best known results of LMC, KLMC is understood to be the analog of Nesterov’s accelerated gradient method for sampling (Ma et al., 2021). Our findings show that LMC is able to achieve the same mixing time, albeit under an additional growth-at-infinity condition. However, this does not say anything about whether/how KLMC accelerates LMC, as the optimality of KLMC bound is not yet clear. We also note KLMC has better condition number dependence, although the $\kappa$ dependence in our bound may not be tight.
354
+
355
+ 261 In terms of MALA, a recent work (Chewi et al., 2020) establishes a $\widetilde { \mathcal { O } } \left( \sqrt { d } \right)$ mixing time in 2-
356
+ 262 Wasserstein distance with warm start, and the dimension dependence is shown to be optimal. We see
357
+ 263 that without the Metropolis adjustment, LMC can also achieve the optimal dimension dependence as
358
+ 264 MALA. But unlike LMC, MALA only has logarithmic dependence on $\frac { 1 } { \epsilon }$ . Under warm-start condition,
359
+ 265 is it possible/how to improve the dependence of $\frac { 1 } { \epsilon }$ for LMC, from polynomial to logarithmic? This
360
+ 266 question is beyond the scope of this paper but worth further investigation.
361
+
362
+ # 267 5 Numerical Examples
363
+
364
+ 268 This section numerically verifies our theoretical findings for LMC in Section 4, with a particular
365
+ 269 focus on the dependence of the discretization error in Theorem 4.1 on dimension $d$ and step size $h$ .
366
+ 270 To this end, we consider two target measures specified by the following two potentials:
367
+
368
+ $$
369
+ f _ { 1 } ( \boldsymbol { x } ) = \frac { 1 } { 2 } \left\| \boldsymbol { x } \right\| ^ { 2 } + \log \left( \sum _ { i = 1 } ^ { d } e ^ { x _ { i } } \right) \quad \mathrm { a n d } \quad f _ { 2 } ( \boldsymbol { x } ) = \frac { 1 } { 2 } \left\| \boldsymbol { x } \right\| ^ { 2 } - \frac { 1 } { 2 d ^ { \frac { 1 } { 2 } } } \sum _ { i = 1 } ^ { d } \cos \left( d ^ { \frac { 1 } { 4 } } \boldsymbol { x } _ { i } \right) .
370
+ $$
371
+
372
+ It is not hard to see that 271 $f _ { 1 }$ is 2-smooth and 1-strongly convex, $f _ { 2 }$ is 3 -smooth and 1-strongly272 convex. $f _ { 2 }$ is also used in (Chewi et al., 2020) to illustrate the optimal dimension dependence 273 of MALA. Explicit expression of 2-Wasserstein distance between non-Gaussian distributions is
373
+
374
+ 274 typically not available, instead, we use the Euclidean norm of the mean error as a surrogate because
375
+ 275 $\bigl | \bigl | \hat { \mathbb { E } } \bar { \pmb { x } } _ { k } - \mathbb { E } _ { \mu } \pmb { x } \bigr | \bigr | \leq W _ { 2 } \bigl ( \mathrm { L a w } ( \bar { \pmb { x } } _ { k } ) , \mu \bigr )$ due to Jensen’s inequality. To obtain an accurate estimate of the
376
+ 276 ground truth, we run $1 0 ^ { 8 }$ independent LMC realizations using a tiny step size $\mathrm { { h } = 0 . 0 0 1 }$ ), each till a
377
+ 277 fixed, long enough time, and use the empirical average to approximate $\mathbb { E } _ { \mu } \pmb { x }$ .
378
+ 278 To study the dimension dependence of sampling error, we fix step size $h = 0 . 1$ , and for each
379
+ 279 $d \in \{ 1 , 2 , 5 , 1 0 , 2 0 , 5 0 , 1 0 0 , 2 0 0 , 5 0 0 , 1 0 0 0 \}$ , we simulate $1 0 ^ { 4 }$ independent Markov chains using
380
+ 280 LMC algorithm for 100 iterations, which is long enough for the chain to be well-mixed. The mean
381
+ 281 and the standard deviation of the sampling error corresponding to the last 10 iterates are recorded.
382
+ 282 To study step size dependence of sampling error, dimension is fixed to be $d = 1 0$ . We experiment with
383
+ 283 step size $h \in \{ 1 , 2 , \bar { 3 } , 4 , 5 , 6 , 7 , 8 , 9 , \bar { 1 0 } \} \times 1 0 ^ { - 1 }$ . We fix a continuous time $T = 2 0$ , and run LMC
384
+ 284 algorithm for $\left\lceil { \frac { T } { h } } \right\rceil$ iterations for each $h$ . The procedure is repeated $1 0 ^ { 4 }$ times with different random
385
+ 285 seeds to obtain independent samples. When the corresponding continuous time $t = k h > 1 0$ , we see
386
+ 286 from Eq. (10) that LMC is well converged and the sampling error is saturated by the discretization
387
+ 287 error. Therefore, for each $h$ , we take the last $\lceil \frac { 1 0 } { h } \rceil$ iterates and record the mean and standard deviation
388
+ 288 of their sampling error.
389
+ 289 The experiment results shown in Figure 1 are consistent with our theoretical analysis of the sampling√
390
+ 290 error.Both linear dependence on $\sqrt { d }$ and $h$ can be identified in and supported by the empirical
391
+ 291 evidence. Note results with smaller $h$ are less accurate because one starts to see the error of empirical
392
+ 292 approximation due to finite samples. Experiments were conducted on a machine with a 2.20GHz
393
+ 293 Intel(R) Xeon(R) E5-2630 v4 CPU and an Nvidia GeForce GTX 1080 GPU.
394
+
395
+ ![](images/3259972bc31cdc763783ea24599784e0958d3e4f5af33daba50f010695753e2c.jpg)
396
+ Figure 1: (a) Dependence of the sampling error of LMC on dimension $d$ and step size $h$ for $f _ { 1 }$ and $f _ { 2 }$ Both axes in Figure 1a and 1b are in log scale. The shaded areas in Figure 1a and 1b represent one standard deviation of the last 10 iterates. The shaded areas in Figure 1c and 1d represent one standard deviation of the last $\lceil \frac { 1 0 } { h } \rceil$ iterations.
397
+
398
+ # 6 Conclusion
399
+
400
+ This paper extends the mean-square analysis framework for analyzing the integration error of SDE to analyzing the sampling error in 2-Wasserstein distance. Corresponding mixing time bound unveils how a high-order numerical algorithm can help improve dependence on accuracy tolerance , and potentially other parameters, such as the dimension. When applied to Langevin Monte Carlo algorithm, it obtains an improved and optimal $\widetilde { \mathcal { O } } \left( \sqrt { d } / \epsilon \right)$ bound, which was previously thought to be obtainable only with the addition of momentum.
401
+
402
+ 01 Here are some possible directions worth further investigations. (i) In data-intensive applications,
403
+ 02 stochastic gradients are typically used for better scalability. It seems natural to apply the mean-square
404
+ 03 analysis framework to study SDE-basd stochastic gradient MCMC methods; (ii) Assumption 2 is
405
+ 04 likely to be an artifact of our analysis; how to establish the optimal mixing time bound in the standard
406
+ 05 log-smooth and log-strongly-convex setup is still an open question; (iii) Motivated by the recent
407
+ 06 result of MALA (Chewi et al., 2020), it would be interesting to know whether the dependence on $\frac { 1 } { \epsilon }$
408
+ 07 can be improved to logarithmic, for example if LMC is initialized at a warm start.
409
+
410
+ # References
411
+
412
+ Abadi, M., Barham, P., Chen, J., Chen, Z., Davis, A., Dean, J., Devin, M., Ghemawat, S., Irving, G., Isard, M., Kudlur, M., Levenberg, J., Monga, R., Moore, S., Murray, D. G., Steiner, B., Tucker, P., Vasudevan, V., Warden, P., Wicke, M., Yu, Y., and Zheng, X. (2016). Tensorflow: A system for large-scale machine learning. In 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16), pages 265–283.
413
+ Andrieu, C., De Freitas, N., Doucet, A., and Jordan, M. I. (2003). An introduction to mcmc for machine learning. Machine learning, 50(1):5–43.
414
+ Chen, C., Zhang, R., Wang, W., Li, B., and Chen, L. (2018). A unified particle-optimization framework for scalable bayesian sampling. In The Conference on Uncertainty in Artificial Intelligence.
415
+ Cheng, X. and Bartlett, P. L. (2018). Convergence of langevin mcmc in kl-divergence. PMLR 83, (83):186–211.
416
+ Cheng, X., Chatterji, N. S., Abbasi-Yadkori, Y., Bartlett, P. L., and Jordan, M. I. (2018a). Sharp convergence rates for langevin dynamics in the nonconvex setting. arXiv preprint arXiv:1805.01648.
417
+ Cheng, X., Chatterji, N. S., Bartlett, P. L., and Jordan, M. I. (2018b). Underdamped langevin mcmc: A non-asymptotic analysis. Proceedings of the 31st Conference On Learning Theory, PMLR.
418
+ Chewi, S., Lu, C., Ahn, K., Cheng, X., Gouic, T. L., and Rigollet, P. (2020). Optimal dimension dependence of the metropolis-adjusted langevin algorithm. arXiv preprint arXiv:2012.12810.
419
+ Chizat, L. and Bach, F. (2018). On the global convergence of gradient descent for over-parameterized models using optimal transport. In Advances in neural information processing systems, pages 3036–3046.
420
+ Dalalyan, A. S. (2017a). Further and stronger analogy between sampling and optimization: Langevin monte carlo and gradient descent. Conference on Learning Theory, pages 678–689.
421
+ Dalalyan, A. S. (2017b). Theoretical guarantees for approximate sampling from smooth and logconcave densities. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 79(3):651–676.
422
+ Dalalyan, A. S. and Riou-Durand, L. (2020). On sampling from a log-concave density using kinetic Langevin diffusions. Bernoulli, 26(3):1956–1988.
423
+ Dashti, M. and Stuart, A. M. (2017). The Bayesian Approach to Inverse Problems, pages 311–428. Springer International Publishing, Cham.
424
+ Durmus, A., Majewski, S., and Miasojedow, B. (2019a). Analysis of langevin monte carlo via convex optimization. Journal of Machine Learning Research, 20:73–1.
425
+ Durmus, A., Moulines, E., et al. (2017). Nonasymptotic convergence analysis for the unadjusted langevin algorithm. Annals of Applied Probability, 27(3):1551–1587.
426
+ Durmus, A., Moulines, E., et al. (2019b). High-dimensional bayesian inference via the unadjusted langevin algorithm. Bernoulli, 25(4A):2854–2882.
427
+ Erdogdu, M. A. and Hosseinzadeh, R. (2020). On the convergence of langevin monte carlo: The interplay between tail growth and smoothness. arXiv preprint arXiv:2005.13097.
428
+ Frogner, C. and Poggio, T. (2020). Approximate inference with wasserstein gradient flows. In International Conference on Artificial Intelligence and Statistics.
429
+ Jordan, R., Kinderlehrer, D., and Otto, F. (1998). The variational formulation of the fokker–planck equation. SIAM journal on mathematical analysis, 29(1):1–17.
430
+ Kloeden, P. E. and Platen, E. (1992). Numerical solution of stochastic differential equations. Springer.
431
+ Li, R., Zha, H., and Tao, M. (2020). Hessian-free high-resolution nesterov acceleration for sampling. arXiv preprint arXiv:2006.09230.
432
+ Liu, J. S. (2008). Monte Carlo strategies in scientific computing. Springer Science & Business Media.
433
+ Liu, Q. and Wang, D. (2016). Stein variational gradient descent: A general purpose bayesian inference algorithm. In Advances in neural information processing systems, pages 2378–2386.
434
+ Ma, Y.-A., Chatterji, N. S., Cheng, X., Flammarion, N., Bartlett, P. L., and Jordan, M. I. (2021). Is there an analog of Nesterov acceleration for gradient-based MCMC? Bernoulli, 27(3):1942 – 1992.
435
+ Mandt, S., Hoffman, M. D., and Blei, D. M. (2017). Stochastic gradient descent as approximate bayesian inference. Journal of Machine Learning Research, 18(134):1–35.
436
+ Milstein, G. N. and Tretyakov, M. V. (2013). Stochastic numerics for mathematical physics. Springer Science & Business Media.
437
+ Mou, W., Flammarion, N., Wainwright, M. J., and Bartlett, P. L. (2019). Improved bounds for discretization of langevin diffusions: Near-optimal rates without convexity. arXiv preprint arXiv:1907.11331.
438
+ Mou, W., Ma, Y.-A., Wainwright, M. J., Bartlett, P. L., and Jordan, M. I. (2021). High-order langevin diffusion yields an accelerated mcmc algorithm. Journal of Machine Learning Research, 22(42):1–41.
439
+ Pavliotis, G. A. (2014). Stochastic processes and applications: diffusion processes, the Fokker-Planck and Langevin equations, volume 60. Springer.
440
+ Robert, C. and Casella, G. (2013). Monte Carlo statistical methods. Springer Science & Business Media.
441
+ Roberts, G. O. and Rosenthal, J. S. (1998). Optimal scaling of discrete approximations to langevin diffusions. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 60(1):255– 268.
442
+ Roberts, G. O., Tweedie, R. L., et al. (1996). Exponential convergence of langevin distributions and their discrete approximations. Bernoulli, 2(4):341–363.
443
+ Rüemelin, W. (1982). Numerical treatment of stochastic differential equations. SIAM Journal on Numerical Analysis, 19(3):604–613.
444
+ Shen, R. and Lee, Y. T. (2019). The randomized midpoint method for log-concave sampling. In Advances in Neural Information Processing Systems, pages 2098–2109.
445
+ Vempala, S. and Wibisono, A. (2019). Rapid convergence of the unadjusted langevin algorithm: Isoperimetry suffices. In Advances in Neural Information Processing Systems, pages 8092–8104.
446
+ Wibisono, A. (2018). Sampling as optimization in the space of measures: The langevin dynamics as a composite optimization problem. In Conference On Learning Theory, pages 2093–3027.
447
+ Zhang, R., Chen, C., Li, C., and Carin, L. (2018). Policy optimization as wasserstein gradient flows. In International Conference on Machine Learning, pages 5737–5746.
448
+
449
+ 1. For all authors...
450
+
451
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
452
+ (b) Did you describe the limitations of your work? [Yes] Limitation is discussed in the paragraph below Table 1.
453
+ (c) Did you discuss any potential negative societal impacts of your work? [N/A] To the best of our knowledge, this work does not have any potential negative societal impact.
454
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
455
+
456
+ 2. If you are including theoretical results...
457
+
458
+ (a) Did you state the full set of assumptions of all theoretical results? [Yes] Assumptions are fully, clearly stated in theorems.
459
+ (b) Did you include complete proofs of all theoretical results? [Yes] Complete proofs of all theoretical results are provided in supplementary materials.
460
+
461
+ 3. If you ran experiments...
462
+
463
+ (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] All are provided in supplementary materials.
464
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] Our experiments do not need training. We specify all the hyperparameters needed to run the experiments.
465
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Figure 1.
466
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] We report the hardware used to run our experiments.
467
+
468
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
469
+
470
+ (a) If your work uses existing assets, did you cite the creators? [N/A]
471
+ (b) Did you mention the license of the assets? [N/A]
472
+ (c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
473
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
474
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
475
+
476
+ 5. If you used crowdsourcing or conducted research with human subjects...
477
+
478
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
479
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
480
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/train/yehlf2AvSD_/yehlf2AvSD__content_list.json ADDED
@@ -0,0 +1,1219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Mean-Square Analysis with An Application to Optimal Dimension Dependence of Langevin Monte Carlo ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 165,
8
+ 122,
9
+ 823,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
17
+ "bbox": [
18
+ 423,
19
+ 226,
20
+ 580,
21
+ 281
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 318,
32
+ 535,
33
+ 334
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "1 Sampling algorithms based on discretizations of Stochastic Differential Equations \n2 (SDEs) compose a rich and popular subset of MCMC methods. This work pro \n3 vides a general framework for the non-asymptotic analysis of sampling error in \n4 2-Wasserstein distance, which also leads to a bound of mixing time. The method \n5 applies to any consistent discretization of contractive SDEs. When applied to \n6 Langevin Monte Carlo algorithm, it establishes $\\widetilde { \\mathcal { O } } \\left( \\sqrt { d } / \\epsilon \\right)$ mixing time, without \n7 warm start, under the common log-smooth and log-strongly-convex conditions, \n8 plus a growth condition on the potential of target measures at infinity. This bound \n9 improves the best previously known $\\widetilde { \\mathcal { O } } \\left( { d } / { \\epsilon } \\right)$ result and is optimal in both dimension \n10 $d$ and accuracy tolerance $\\epsilon$ for log-smooth and log-strongly-convex target measures. \n11 Our theoretical analysis is further validated by numerical experiments. ",
40
+ "bbox": [
41
+ 148,
42
+ 347,
43
+ 767,
44
+ 512
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "12 1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 148,
54
+ 535,
55
+ 312,
56
+ 551
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "13 The problem of sampling statistical distributions has attracted considerable attention, not only in \n14 the fields of statistics and scientific computing, but also in machine learning (Robert and Casella, \n15 2013; Andrieu et al., 2003; Liu, 2008); for example, how various sampling algorithms scale with \n16 the dimension of the target distribution is a popular recent topic in statistical deep learning (see \n17 discussions below for references). For samplers that can be viewed as discretizations of SDEs, the \n18 idea is to use an ergodic SDE whose equilibrium distribution agrees with the target distribution, \n19 and employ an appropriate numerical algorithm that discretizes (the time of) the SDE. The iterates \n20 of the numerical algorithm will approximately follow the target distribution when converged, and \n21 can be used for various downstream applications such as Bayesian inference and inverse problem \n22 (Dashti and Stuart, 2017). One notable example is the Langevin Monte Carlo algorithm (LMC), \n23 which corresponds to Euler-Maruyama discretization of overdamped Langevin equation. Its study \n24 dated back to at least the 90s (Roberts et al., 1996) but keeps on leading to important discoveries, for \n25 example, on non-asymptotics and dimension dependence, which are relevant to machine learning \n26 (e.g., Dalalyan (2017a,b); Cheng et al. (2018a); Durmus et al. (2019a,b); Vempala and Wibisono \n27 (2019); Dalalyan and Riou-Durand (2020); Erdogdu and Hosseinzadeh (2020); Mou et al. (2019)). \n28 LMC is closely related to SGD too (e.g., Mandt et al. (2017)). Many other examples exist, based \n29 on alternative SDEs and different discretizations (e.g., Dalalyan and Riou-Durand (2020); Ma et al. \n30 (2021); Mou et al. (2021); Li et al. (2020); Roberts and Rosenthal (1998); Chewi et al. (2020); Shen \n31 and Lee (2019)). \n32 Quantitatively characterizing the non-asymptotic sampling error of numerical algorithms is usually \n33 critical for choosing the appropriate algorithm for a specific downstream application, for providing \n34 practical guidance on hyperparameter selection and experiment design, and for designing improved \n35 samplers. A powerful tool that dates back to (Jordan et al., 1998) is a paradigm of non-asymptotic \n36 error analysis, namely to view sampling as optimization in probability space, and it led to many \n37 important recent results (e.g., Liu and Wang (2016); Dalalyan (2017a); Wibisono (2018); Zhang \n38 et al. (2018); Frogner and Poggio (2020); Chizat and Bach (2018); Chen et al. (2018); Ma et al. \n39 (2021); Erdogdu and Hosseinzadeh (2020)). It works by choosing an objective functional, typically \n40 some statistical distances/diverges, and showing that the law of the iterates of sampling algorithms \n41 converges in that objective functional. However, the choice of the objective functional often needs to \n42 be customized for different sampling algorithms. For example, KL divergence works for LMC (Cheng \n43 and Bartlett, 2018), but a carefully hand-crafted cross term needs to be added to KL divergence for \n44 analyzing KLMC (Ma et al., 2021). Even for the same underlying SDE, different discretization \n45 schemes exist and lead to different sampling algorithms, and the analyses of them had usually been \n46 case by case (e.g., Cheng et al. (2018b); Dalalyan and Riou-Durand (2020); Shen and Lee (2019)). \n47 Therefore, it would be a desirable complement to have a unified, general framework to study the \n48 non-asymptotic error of SDE-based sampling algorithms. \n49 As an important member of the family of SDE-based sampling algorithms, Langevin Monte Carlo is \n50 widely used in practice. Its stochastic gradient version is implemented in common machine learning \n51 systems, such as Tensorflow (Abadi et al., 2016), and is the off-the-shelf algorithm for large scale \n52 Bayesian inference. With the ever-growing size of parameter space, the non-asymptotic error of LMC \n53 is of central theoretical and practical interest, in particular, its dependence on the dimension of the \n54 sample space. The best current known upper bound of the mixing time in 2-Wasserstein distance for \n55 LMC is $\\begin{array} { r } { \\bar { \\mathcal { O } } \\left( \\frac { d } { \\epsilon } \\right) } \\end{array}$ (Durmus et al., 2019b). Motivated by a recent result (Chewi et al., 2020) that shows \n56 better dimension dependence for a Metropolis-Adjusted improvement of LMC, we wonder if the \n57 current bound for (unadjusted) LMC is tight, and if not, what is the optimal dimension dependence? \n58 Our contribution We study a broad family of numerical algorithms that discretize SDEs that \n59 have a contraction property (possibly after a coordinate transformation). For this type of problems, \n60 we revisit the classical mean-square analysis (Milstein and Tretyakov, 2013) in numerical SDE \n61 literature and extend its the global error bound from finite time to infinite time. Same as in classical \n62 mean-square analysis, we show the global error is only half order lower than the order of local strong \n63 error $\\left( p _ { 2 } \\right)$ . We further obtain a $\\tilde { \\mathcal { O } } \\left( C ^ { \\frac { 1 } { p _ { 2 } - \\frac { 1 } { 2 } } } \\underbrace { \\frac { 1 } { \\epsilon ^ { \\frac { 1 } { p _ { 2 } - \\frac { 1 } { 2 } } } } } \\right)$ mixing time upper bound in 2-Wasserstein \n64 distance for the family of algorithms, where $C$ is a constant containing various information of the \n65 underlying problem, e.g., the dimension $d$ . \n66 As an application of the general mixing time result, we study the widely used Langevin Monte \n67 Carlo algorithm (LMC) for sampling from a Gibbs distribution $\\mu \\propto \\mathrm { e x p } \\left( - f ( \\pmb { x } ) \\right)$ , which is an \n68 Euler-Maruyama discretization of Langevin dynamics. Under the standard smoothness and strong \n69 convexity assumptions, plus an additional linear growth condition on the third-order derivative of $f$ , \n70 we obtain a $\\begin{array} { r } { \\widetilde { \\mathcal { O } } \\left( \\frac { \\sqrt { d } } { \\epsilon } \\right) } \\end{array}$ mixing time in 2-Wasserstein distance, which improves upon the previously best \n71 known $\\begin{array} { r } { \\widetilde { \\mathcal { O } } \\left( \\frac { d } { \\epsilon } \\right) } \\end{array}$ result (Durmus et al., 2019b). For a comparison, note it was known that discretized \n72 kinetic Langevin dynamics can lead to $\\sqrt { d }$ dependence on dimension (Cheng and Bartlett, 2018; \n73 Dalalyan and Riou-Durand, 2020) and some believe that it is the introduction of momentum that \n74 improves the dimension dependence, but our result shows that discretized overdamped Langevin (no√ \n75 momentum) can also have mixing time scaling like $\\sqrt { d }$ . In fact, it is important to mention that it was \n76 recently shown that Metropolis-Adjusted Euler-Maruyama discretization of overdamped Langevin \n77 (i.e., MALA) has an optimal dimension dependence of $\\widetilde { \\mathcal { O } } \\left( \\sqrt { d } \\right)$ (Chewi et al., 2020), while what we \n78 analyze here is the unadjusted version (i.e., LMC), and it has the same dimension dependence (note \n79 however that our $\\epsilon$ dependence is not as good as that for MALA; more discussion in Section 4). We \n80 also constructed an example that shows that the mixing time of LMC is at least $\\begin{array} { r } { \\widetilde \\Omega \\left( \\frac { \\sqrt { d } } { \\epsilon } \\right) } \\end{array}$ . Hence, our \n81 mixing time bound has the optimal dependence on both $d$ and $\\epsilon$ . Our theoretical analysis is further \n82 validated by empirical investigation of numerical examples. ",
63
+ "bbox": [
64
+ 147,
65
+ 564,
66
+ 826,
67
+ 828
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "",
74
+ "bbox": [
75
+ 147,
76
+ 834,
77
+ 823,
78
+ 904
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 145,
87
+ 92,
88
+ 825,
89
+ 257
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 145,
98
+ 263,
99
+ 826,
100
+ 397
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 145,
109
+ 412,
110
+ 826,
111
+ 547
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "",
118
+ "bbox": [
119
+ 145,
120
+ 553,
121
+ 826,
122
+ 832
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "83 2 Preliminaries ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 156,
132
+ 851,
133
+ 318,
134
+ 868
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "84 Notation Use the symbol $_ { x }$ to denote a $d$ -dimensional vector, and the plain symbol $x$ to denote a \n85 scalar variable. Use $\\lVert \\boldsymbol { x } \\rVert$ to denote the Euclidean norm of vector $_ { x }$ . A numerical algorithm is denoted \n86 by $\\mathcal { A }$ and its $k$ -th iterate is denoted by $\\bar { \\pmb { x } } _ { k }$ . We slightly abuse notation by identifying measures with \n87 their density function w.r.t. Lebesgue measure. We use the convention $\\begin{array} { r } { \\tilde { \\mathcal { O } } \\left( \\cdot \\right) = \\mathbf { \\bar { \\mathcal { O } } } ( \\cdot ) \\log ^ { \\mathcal { O } ( 1 ) } ( \\cdot ) } \\end{array}$ \n88 i.e., the $\\widetilde { \\mathcal { O } } \\left( \\cdot \\right)$ notation ignores the dependence on logarithmic factors. We use the notation $\\widetilde { \\Omega } ( \\cdot )$ \n89 similarly. Denote 2-Wasserstein distance by $\\begin{array} { r } { W _ { 2 } ( \\mu _ { 1 } , \\mu _ { 2 } ) = \\left( \\operatorname* { i n f } _ { ( \\pmb { X } , \\pmb { Y } ) \\sim \\Pi ( \\mu _ { 1 } , \\mu _ { 2 } ) } \\mathbb { E } \\left\\| \\pmb { X } - \\pmb { Y } \\right\\| ^ { 2 } \\right) ^ { \\frac { 1 } { 2 } } } \\end{array}$ , \n90 where $\\Pi ( \\mu _ { 1 } , \\mu _ { 2 } )$ is the set of couplings, i.e. all joint measures with $X$ and $Y$ marginals being \n91 $\\mu _ { 1 }$ and $\\mu _ { 2 }$ . Denote the target distribution by $\\mu$ and the law of a random variable $\\boldsymbol { X }$ by $\\operatorname { L a w } ( X )$ . \n92 Finally, denote the mixing time of an sampling algorithm $\\mathcal { A }$ converging to its target distribution $\\mu$ in \n93 2-Wasserstein distance by $\\begin{array} { r } { \\tau _ { \\operatorname* { m i x } } ( \\epsilon ; W _ { 2 } ; A ) = \\operatorname* { i n f } \\{ k \\geq 0 | W _ { 2 } ( \\operatorname { L a w } ( \\bar { x } _ { k } ) , \\mu ) \\leq \\epsilon \\} . } \\end{array}$ . ",
141
+ "bbox": [
142
+ 148,
143
+ 882,
144
+ 825,
145
+ 911
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "",
152
+ "bbox": [
153
+ 145,
154
+ 90,
155
+ 826,
156
+ 224
157
+ ],
158
+ "page_idx": 2
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "94 SDE for Sampling Consider a general SDE ",
163
+ "text_level": 1,
164
+ "bbox": [
165
+ 147,
166
+ 236,
167
+ 477,
168
+ 251
169
+ ],
170
+ "page_idx": 2
171
+ },
172
+ {
173
+ "type": "equation",
174
+ "img_path": "images/0092a640f768def12071aec55e4c1f5818234dcad1e7f8be8c57b1eca1673d45.jpg",
175
+ "text": "$$\nd { \\pmb x } _ { t } = { \\pmb b } ( t , { \\pmb x } _ { t } ) d t + { \\pmb \\sigma } ( t , { \\pmb x } _ { t } ) d { \\pmb B } _ { t }\n$$",
176
+ "text_format": "latex",
177
+ "bbox": [
178
+ 390,
179
+ 253,
180
+ 609,
181
+ 271
182
+ ],
183
+ "page_idx": 2
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "95 where $\\pmb { b } \\in \\mathbb { R } ^ { d }$ is a drift term, $\\pmb { \\sigma } \\in \\mathbb { R } ^ { d \\times l }$ is a diffusion coefficient matrix and $\\mathbf { \\delta } _ { B _ { t } }$ is a $l$ -dimensional \n96 Wiener process. Under mild condition (Pavliotis, 2014, Theorem 3.1), there exists a unique strong \n97 solution $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { t } }$ to Eq. (1). Some SDEs admit geometric ergodicity, so that their solutions converge \n98 exponentially fast to a unique invariant distribution, and examples include the classical overdamped \n99 and kinetic Langevin dynamics, but are not limited to those (e.g., Mou et al. (2021); Li et al. (2020)). \n100 Such SDE are desired for sampling purposes, because one can set the target distribution to be the \n101 invariant distribution by choosing an SDE with an appropriate potential, and then solve the solution \n102 $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { t } }$ of the SDE and push the time $t$ to infinity, so that (approximate) samples of the target distribution \n103 can be obtained. Except for a few known cases, however, explicit solutions of Eq. (1) are elusive and \n104 we have to resort to numerical schemes to simulate/integrate SDE. Such example schemes include, \n105 but are not limited to Euler-Maruyama method, Milstein methods and Runge-Kutta method (e.g., \n106 Kloeden and Platen (1992); Milstein and Tretyakov (2013)). With constant stepsize $h$ and at $k$ -th \n107 iteration, a typical numerical algorithm takes a previous iterate $\\bar { \\pmb { x } } _ { k - 1 }$ and outputs a new iterate $\\bar { \\pmb { x } } _ { k }$ as \n108 an approximation of the solution $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { t } }$ of Eq. (1) at time $t = k h$ . ",
188
+ "bbox": [
189
+ 142,
190
+ 275,
191
+ 826,
192
+ 472
193
+ ],
194
+ "page_idx": 2
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "109 Langevin Monte Carlo Algorithm LMC algorithm is defined by the following update rule ",
199
+ "bbox": [
200
+ 147,
201
+ 483,
202
+ 785,
203
+ 500
204
+ ],
205
+ "page_idx": 2
206
+ },
207
+ {
208
+ "type": "equation",
209
+ "img_path": "images/ce250dcf9af2c029e895b14fa4d828af98cf8c2a69c3e35c60a47314bfa67b2c.jpg",
210
+ "text": "$$\n\\bar { \\pmb { x } } _ { k } = \\bar { \\pmb { x } } _ { k - 1 } - h \\nabla f ( \\bar { \\pmb { x } } _ { k - 1 } ) + \\sqrt { 2 h } \\pmb { \\xi } _ { k } , \\quad k = 1 , 2 , \\cdots\n$$",
211
+ "text_format": "latex",
212
+ "bbox": [
213
+ 321,
214
+ 502,
215
+ 674,
216
+ 522
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "where $\\{ \\pmb { \\xi } _ { k } \\} _ { k \\in \\mathbb { Z } _ { > 0 } }$ are i.i.d. standard $d$ -dimensional Gaussian vectors. LMC corresponds to an EulerMaruyama discretization of the continuous overdamped Langevin dynamics $d { \\pmb x } _ { t } = - \\nabla f ( { \\pmb x } _ { t } ) d t +$ $\\sqrt { 2 } d B _ { t }$ , which converges to an equilibrium distribution $\\mu \\sim \\exp ( - f ( \\pmb { x } ) )$ . ",
223
+ "bbox": [
224
+ 158,
225
+ 525,
226
+ 826,
227
+ 573
228
+ ],
229
+ "page_idx": 2
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "13 Dalalyan (2017b) provided a non-asymptotic analysis of LMC. An $\\begin{array} { r } { \\widetilde { \\mathcal { O } } \\left( \\frac { d } { \\epsilon ^ { 2 } } \\right) } \\end{array}$ mixing time bound in \n14 $W _ { 2 }$ for log-smooth and log-strongly-convex target measures (Dalalyan, 2017a; Cheng et al., 2018a; \n15 Durmus et al., 2019a) has been established. It was further improved to $\\begin{array} { r } { \\widetilde { \\mathcal { O } } \\left( \\frac { d } { \\epsilon } \\right) } \\end{array}$ under additional \n16 Lipschitz assumption on the Hessian of $f$ (Durmus et al., 2019b). Mixing time bounds of LMC \n17 in other statistical distances/divergences have also been studied, including total variation distance \n118 (Dalalyan, 2017b; Durmus et al., 2017) and KL divergence (Cheng and Bartlett, 2018). \n119 Classical Mean-Square Analysis A powerful framework for quantifying the global discretization \n120 error of a numerical algorithm for Eq. (1), i.e., $e _ { k } = \\left\\{ \\mathbb { E } \\left\\| \\pmb { x } _ { k h } - \\bar { \\pmb { x } } _ { k } \\right\\| \\right\\} ^ { \\frac { 1 } { 2 } }$ , is mean-square analysis \n121 (e.g., the monograph of Milstein and Tretyakov (2013)). Mean-square analysis studies how local \n122 integration error propagate and accumulate into global integration error; in particular, if one-step \n123 (local) weak error and strong error (both the exact solution $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { t } }$ and the numerical approximation start \n124 from the same initial value $_ { \\textbf { \\em x } }$ ) satisfy ",
234
+ "bbox": [
235
+ 148,
236
+ 579,
237
+ 825,
238
+ 681
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "",
245
+ "bbox": [
246
+ 140,
247
+ 694,
248
+ 826,
249
+ 784
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "equation",
255
+ "img_path": "images/408d9b981c4169cbc0f7c398b7e68733da0c55bc288a4335ab2687756da054d1.jpg",
256
+ "text": "$$\n\\begin{array} { r l } & { \\left\\| \\mathbb { E } x _ { h } - \\mathbb { E } \\bar { { \\bar { x } } } _ { 1 } \\right\\| \\leq C _ { 1 } \\left( 1 + \\mathbb { E } \\left\\| x \\right\\| ^ { 2 } \\right) ^ { \\frac { 1 } { 2 } } h ^ { p _ { 1 } } , \\quad \\mathrm { ( l o c a l ~ w e a k ~ e r r o r ) } } \\\\ & { \\left( \\mathbb { E } \\left\\| x _ { h } - \\bar { x } _ { 1 } \\right\\| ^ { 2 } \\right) ^ { \\frac { 1 } { 2 } } \\leq C _ { 2 } \\left( 1 + \\mathbb { E } \\left\\| x \\right\\| ^ { 2 } \\right) ^ { \\frac { 1 } { 2 } } h ^ { p _ { 2 } } , \\quad \\mathrm { ( l o c a l ~ s t r o n g ~ e r r o r ) } } \\end{array}\n$$",
257
+ "text_format": "latex",
258
+ "bbox": [
259
+ 276,
260
+ 786,
261
+ 722,
262
+ 851
263
+ ],
264
+ "page_idx": 2
265
+ },
266
+ {
267
+ "type": "text",
268
+ "text": "over a time interval 125 $[ 0 , K h ]$ for some constants $C _ { 1 } , C _ { 2 } > 0$ , $p _ { 2 } \\geq { \\frac { 1 } { 2 } }$ and $\\begin{array} { r } { p _ { 1 } \\geq p _ { 2 } + \\frac { 1 } { 2 } } \\end{array}$ , then the global error can be bounded by 126 $\\begin{array} { r } { \\displaystyle { e _ { k } \\leq C \\left( 1 + \\mathbb { E } \\left\\| x _ { 0 } \\right\\| ^ { 2 } \\right) ^ { \\frac { 1 } { 2 } } h ^ { p _ { 2 } - \\frac { 1 } { 2 } } } } \\end{array}$ , $k = 1 , 2 , \\cdots , K$ for some constant 127 $C > 0$ dependent on $K h$ . ",
269
+ "bbox": [
270
+ 145,
271
+ 853,
272
+ 821,
273
+ 912
274
+ ],
275
+ "page_idx": 2
276
+ },
277
+ {
278
+ "type": "text",
279
+ "text": "128 Although classical mean-square analysis is only concerned with numerical integration error, sampling \n129 error can be also inferred. However, there is a limitation that prevents directly employing mean-square \n130 analysis in the non-asymptotic analysis of sampling algorithms. The bound of global error only holds \n131 in finite time because the constant $C$ can grow exponentially as $K$ increases, rendering the bound \n132 useless when $K \\infty$ . ",
280
+ "bbox": [
281
+ 140,
282
+ 92,
283
+ 825,
284
+ 161
285
+ ],
286
+ "page_idx": 3
287
+ },
288
+ {
289
+ "type": "text",
290
+ "text": "3 Mean-Square Analysis of Samplers Based on Contractive SDE ",
291
+ "text_level": 1,
292
+ "bbox": [
293
+ 163,
294
+ 179,
295
+ 725,
296
+ 196
297
+ ],
298
+ "page_idx": 3
299
+ },
300
+ {
301
+ "type": "text",
302
+ "text": "In order to prepare for the analysis of sampling error, we first show that the finite time limitation of integration error analysis can be lifted if the SDE being discretized is contractive. ",
303
+ "bbox": [
304
+ 166,
305
+ 209,
306
+ 823,
307
+ 238
308
+ ],
309
+ "page_idx": 3
310
+ },
311
+ {
312
+ "type": "text",
313
+ "text": "136 More precisely, one bottleneck that prevents the results of classical mean-square analysis from \n137 extending to infinite time horizon, is the fact that the solution of a general SDE may not be bounded, \n138 and neither is its discretization. Note that local error (Eq. (3)) depends on the initial value. To go \n139 from local to global error, these ‘initial’ values correspond to iterates of numerical algorithms, which \n140 change from iteration to iteration and can be unbounded, hence when accumulated together, it is \n141 possible that the global error may blow up. \n142 Samplers considered here, on the other hand, are based on stochastic differential equations, each of \n143 which weakly converges to a limiting distributions. The solution of the underlying converging SDE, \n144 as it converges to the invariant measure, gradually inherits boundedness properties from the target \n145 measure. Thus, as long as the target measure has bounded 2nd-moment, a sampling algorithm based \n146 on a reasonable discretization of the SDE should also have bounded 2nd-moment. Motivated by this \n147 observation, we will assume the sampling algorithms we study are based on contractive SDEs, which \n148 is a sufficient condition to ensure the underlying SDE converges to a statistical distribution. ",
314
+ "bbox": [
315
+ 142,
316
+ 243,
317
+ 825,
318
+ 327
319
+ ],
320
+ "page_idx": 3
321
+ },
322
+ {
323
+ "type": "text",
324
+ "text": "",
325
+ "bbox": [
326
+ 140,
327
+ 333,
328
+ 825,
329
+ 431
330
+ ],
331
+ "page_idx": 3
332
+ },
333
+ {
334
+ "type": "text",
335
+ "text": "149 Definition 3.1. A stochastic differential equation is contractive if there exists a non-singular constant matrix 150 $A \\in \\mathbb { R } ^ { d \\times d }$ , a constant $\\beta > 0$ , such that any pair of solutions of the SDE satisfy ",
336
+ "bbox": [
337
+ 148,
338
+ 433,
339
+ 825,
340
+ 460
341
+ ],
342
+ "page_idx": 3
343
+ },
344
+ {
345
+ "type": "equation",
346
+ "img_path": "images/ddd70edc2a96e72119b0e51bc8d7ec2481beda9ef108844e580818a35616179a.jpg",
347
+ "text": "$$\n\\begin{array} { r } { \\left( \\mathbb { E } \\left\\| A \\left( \\pmb { x } _ { t } - \\pmb { y } _ { t } \\right) \\right\\| ^ { 2 } \\right) ^ { \\frac { 1 } { 2 } } \\leq \\left\\| A \\left( \\pmb { x } - \\pmb { y } \\right) \\right\\| \\exp ( - \\beta t ) , } \\end{array}\n$$",
348
+ "text_format": "latex",
349
+ "bbox": [
350
+ 331,
351
+ 460,
352
+ 665,
353
+ 492
354
+ ],
355
+ "page_idx": 3
356
+ },
357
+ {
358
+ "type": "text",
359
+ "text": "151 where $\\mathbf { \\boldsymbol { x } } _ { t } , \\mathbf { \\boldsymbol { y } } _ { t }$ are two solutions, driven by the same Brownian motion but evolved respectively from \n152 initial conditions $_ { \\textbf { \\em x } }$ and $\\textbf { { y } }$ . \n53 Remark. As long as $^ { b }$ and $\\sigma$ in (1) are not explicitly dependent on time, it suffices to find an \n54 arbitrarily small $t _ { 0 } > 0$ and show (4) holds for all $t < t _ { 0 }$ . ",
360
+ "bbox": [
361
+ 145,
362
+ 498,
363
+ 828,
364
+ 527
365
+ ],
366
+ "page_idx": 3
367
+ },
368
+ {
369
+ "type": "text",
370
+ "text": "",
371
+ "bbox": [
372
+ 153,
373
+ 529,
374
+ 823,
375
+ 558
376
+ ],
377
+ "page_idx": 3
378
+ },
379
+ {
380
+ "type": "text",
381
+ "text": "Remark. Sometimes contraction is not easy to establish directly, but can be shown after an appropriate coordinate transformation, see (Dalalyan and Riou-Durand, 2020, Proposition 1) for such a treatment for kinetic Langevin dynamics. The introduction of $A$ permits such transformations. ",
382
+ "bbox": [
383
+ 169,
384
+ 559,
385
+ 825,
386
+ 602
387
+ ],
388
+ "page_idx": 3
389
+ },
390
+ {
391
+ "type": "text",
392
+ "text": "158 We now use contractivity to remove the finite time limitation. We will first need a lemma, which is a \n159 local (short time) result. \n160 Lemma 3.2. (Milstein and Tretyakov, 2013, Lemma 1.3) Suppose $^ { b }$ and $\\pmb { \\sigma }$ in Eq.(1) are Lipschitz \n161 continuous. For two solutions $\\mathbf { \\boldsymbol { x } } _ { t } , \\mathbf { \\boldsymbol { y } } _ { t }$ of Eq. (1) starting from $\\mathbf { \\nabla } _ { \\mathbf { x } , \\mathbf { y } }$ respectively, denote $z : =$ \n162 $( { \\pmb x } _ { t } - { \\pmb x } ) - ( { \\pmb y } _ { t } - { \\pmb y } )$ , then there exist $C _ { 0 } > 0$ and $h _ { 0 } > 0$ such that ",
393
+ "bbox": [
394
+ 145,
395
+ 609,
396
+ 826,
397
+ 638
398
+ ],
399
+ "page_idx": 3
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "",
404
+ "bbox": [
405
+ 147,
406
+ 640,
407
+ 825,
408
+ 683
409
+ ],
410
+ "page_idx": 3
411
+ },
412
+ {
413
+ "type": "equation",
414
+ "img_path": "images/502bc98b0f941e127ebc54bfd4ab8af6cf10be50beb0da784fa62cc77a6002e9.jpg",
415
+ "text": "$$\n\\begin{array} { r } { \\mathbb { E } \\left\\| z \\right\\| ^ { 2 } \\leq C _ { 0 } \\left\\| x - y \\right\\| ^ { 2 } t , \\quad \\forall x , y , 0 < t \\leq h _ { 0 } . } \\end{array}\n$$",
416
+ "text_format": "latex",
417
+ "bbox": [
418
+ 338,
419
+ 684,
420
+ 656,
421
+ 702
422
+ ],
423
+ "page_idx": 3
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "163 Then we will have a sequence of results that connects sampling error (a statistical property) with \n164 local integration error (a simulation property). This justifies our generic produce for non-asymptotic \n165 sampling error analysis, which only requires bounding the orders of local weak and strong integration \n166 errors (in addition to establishing contractivity of the continuous dynamics). \n167 Theorem 3.3. (Global Integration Error, Infinite Time Version) Suppose Eq.(1) is contractive with \n168 rate $\\beta$ and with respect to a non-singular matrix $A \\in \\mathbb { R } ^ { d \\times d }$ , with Lipschitz continuous $^ { b }$ and $\\pmb { \\sigma }$ \n169 and there is a numerical algorithm $\\mathcal { A }$ with step size $h$ simulating the solution $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { t } }$ of the $S D E$ , whose \n170 iterates are denoted by $\\bar { \\boldsymbol { x } } _ { k } , k = 0 , 1 , \\cdots$ . Suppose there exists $0 < h _ { 0 } \\leq 1 , C _ { 1 } , C _ { 2 } > 0 , D _ { 1 } , D _ { 2 } \\geq$ \n171 $0 , p _ { 1 } \\geq 1 , \\frac { 1 } { 2 } < p _ { 2 } \\leq \\dot { p _ { 1 } } - \\frac { 1 } { 2 }$ such that for any $0 < h \\leq h _ { 0 }$ , the algorithm $\\mathcal { A }$ has, respectively, local \n172 weak and strong error of order $p _ { 1 }$ and $p _ { 2 }$ , defined as ",
428
+ "bbox": [
429
+ 142,
430
+ 709,
431
+ 825,
432
+ 765
433
+ ],
434
+ "page_idx": 3
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "",
439
+ "bbox": [
440
+ 140,
441
+ 767,
442
+ 825,
443
+ 852
444
+ ],
445
+ "page_idx": 3
446
+ },
447
+ {
448
+ "type": "equation",
449
+ "img_path": "images/79f58d7f4ff7f79206842025d61371e5c0c8e13ca028745690cf349ff5fbe675.jpg",
450
+ "text": "$$\n\\begin{array} { r l } & { \\left\\{ \\left. \\mathbb { E } \\left( { \\pmb x } _ { h } - { \\bar { \\pmb x } } _ { 1 } \\right) \\right. \\right\\} \\leq \\left( C _ { 1 } + D _ { 1 } \\sqrt { \\mathbb { E } \\left. \\pmb x \\right. ^ { 2 } } \\right) h ^ { p _ { 1 } } , } \\\\ & { \\left( \\mathbb { E } \\left. \\pmb x _ { h } - { \\bar { \\pmb x } } _ { 1 } \\right. ^ { 2 } \\right) ^ { \\frac { 1 } { 2 } } \\leq \\left( C _ { 2 } ^ { 2 } + D _ { 2 } ^ { 2 } \\mathbb { E } \\left. \\pmb x \\right. ^ { 2 } \\right) ^ { \\frac { 1 } { 2 } } h ^ { p _ { 2 } } , } \\end{array}\n$$",
451
+ "text_format": "latex",
452
+ "bbox": [
453
+ 323,
454
+ 853,
455
+ 656,
456
+ 915
457
+ ],
458
+ "page_idx": 3
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "173 where $\\scriptstyle { \\mathbf { 2 } } ( { \\mathbf { 2 } } \\scriptscriptstyle { h }$ solves Eq.(1) with any initial value $_ { \\textbf { \\em x } }$ and $\\bar { \\mathbf { x } } _ { 1 }$ is the result of applying $\\mathcal { A }$ to $_ { \\textbf { \\em x } }$ for one step. \n174 If the solution of SDE $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { t } }$ and algorithm $\\mathcal { A }$ both start from $\\scriptstyle { \\mathbf { { \\mathit { x } } } } _ { 0 }$ , then for $0 ~ < ~ h ~ \\leq ~ h _ { 1 }$ , \n175 $\\begin{array} { r l r } & { } & { \\operatorname* { m i n } \\left\\{ h _ { 0 } , \\frac { 1 } { 4 \\beta } , \\left( \\frac { \\sqrt { \\beta } } { 4 \\sqrt { 2 } \\kappa _ { A } D _ { 2 } } \\right) ^ { \\frac { 1 } { p _ { 2 } - \\frac { 1 } { 2 } } } , \\left( \\frac { \\beta } { 8 \\sqrt { 2 } \\kappa _ { A } \\left( D _ { 1 } + C _ { 0 } D _ { 2 } \\right) } \\right) ^ { \\frac { 1 } { p _ { 2 } - \\frac { 1 } { 2 } } } \\right\\} , t h e ~ g l o b a l ~ e r r } \\\\ & { } & { e _ { k } : = \\left( { \\mathbb E } \\| x _ { k h } - \\bar { x } _ { k } \\| ^ { 2 } \\right) ^ { \\frac { 1 } { 2 } } \\leq C h ^ { p _ { 2 } - \\frac { 1 } { 2 } } , \\quad k = 0 , 1 , 2 , \\cdots } \\end{array}$ r $e _ { k }$ is bounded as \n176 ",
463
+ "bbox": [
464
+ 140,
465
+ 90,
466
+ 826,
467
+ 167
468
+ ],
469
+ "page_idx": 4
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "177 where ",
474
+ "bbox": [
475
+ 142,
476
+ 199,
477
+ 217,
478
+ 213
479
+ ],
480
+ "page_idx": 4
481
+ },
482
+ {
483
+ "type": "equation",
484
+ "img_path": "images/c9367b955513434e5103ae08905143f0f2503b030c945f799cd94edca7c62cd8.jpg",
485
+ "text": "$$\nC = \\frac { 2 } { \\sqrt { \\beta } } \\kappa _ { A } ^ { 2 } \\left( \\frac { C _ { 1 } + C _ { 0 } C _ { 2 } + \\sqrt { 2 } U ( D _ { 1 } + C _ { 0 } D _ { 2 } ) } { \\sqrt { \\beta } } + C _ { 2 } + \\sqrt { 2 } D _ { 2 } U \\right) ,\n$$",
486
+ "text_format": "latex",
487
+ "bbox": [
488
+ 266,
489
+ 208,
490
+ 730,
491
+ 251
492
+ ],
493
+ "page_idx": 4
494
+ },
495
+ {
496
+ "type": "text",
497
+ "text": "178 $C _ { 0 }$ is from Eq. (5), $\\kappa _ { A }$ is the condition number of matrix $A$ and $U ^ { 2 } \\triangleq 4 \\left\\| \\pmb { x } _ { 0 } \\right\\| ^ { 2 } + 5 \\mathbb { E } _ { \\mu } \\left\\| \\pmb { x } \\right\\| ^ { 2 } .$ . ",
498
+ "bbox": [
499
+ 145,
500
+ 255,
501
+ 776,
502
+ 272
503
+ ],
504
+ "page_idx": 4
505
+ },
506
+ {
507
+ "type": "text",
508
+ "text": "179 Remark. We use the convention $1 / 0 = \\infty$ when $D _ { 1 } = D _ { 2 } = 0$ . This is pertinent when a numerical \n180 algorithm $\\mathcal { A }$ , e.g. LMC (Lemma $D . 3$ ), produces bounded iterates. In such cases, the initial value in \n181 Eq. (6) are iterations of $\\mathcal { A }$ and will be bounded, it then can be absorbed into $C _ { 1 } , C _ { 2 }$ and we may set \n182 $D _ { 1 } = D _ { 2 } = 0$ . ",
509
+ "bbox": [
510
+ 140,
511
+ 275,
512
+ 826,
513
+ 332
514
+ ],
515
+ "page_idx": 4
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "83 Following Theorem 3.3, we obtain the following non-asymptotic bound of the sampling error in $W _ { 2 }$ : ",
520
+ "bbox": [
521
+ 153,
522
+ 340,
523
+ 826,
524
+ 357
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "84 Theorem 3.4. (Non-Asymptotic Sampling Error Bound: General Case) Under the same assump \n185 tion and with the same notation of Theorem 3.3, we have ",
531
+ "bbox": [
532
+ 150,
533
+ 361,
534
+ 825,
535
+ 390
536
+ ],
537
+ "page_idx": 4
538
+ },
539
+ {
540
+ "type": "equation",
541
+ "img_path": "images/afcb3ca80cf0a4a26bbd44dccf992e286b41ee63bf8ff6eb9958d3ca2b6afb27.jpg",
542
+ "text": "$$\nW _ { 2 } ( L a w ( \\bar { x } _ { k } ) , \\mu ) \\leq \\sqrt { 2 } e ^ { - \\beta k h } W _ { 2 } ( L a w ( x _ { 0 } ) , \\mu ) + \\sqrt { 2 } C h ^ { p _ { 2 } - \\frac { 1 } { 2 } } , \\quad \\forall 0 < h \\leq h _ { 1 } .\n$$",
543
+ "text_format": "latex",
544
+ "bbox": [
545
+ 236,
546
+ 395,
547
+ 761,
548
+ 416
549
+ ],
550
+ "page_idx": 4
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "186 A corollary of Theorem 3.4 is a bound on the mixing time of the sampling algorithm: ",
555
+ "bbox": [
556
+ 150,
557
+ 428,
558
+ 733,
559
+ 444
560
+ ],
561
+ "page_idx": 4
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "187 Corollary 3.5. (Upper Bound of Mixing Time: General Case) Under the same assumption and \n188 with the same notation of Theorem 3.3, we have ",
566
+ "bbox": [
567
+ 142,
568
+ 446,
569
+ 828,
570
+ 476
571
+ ],
572
+ "page_idx": 4
573
+ },
574
+ {
575
+ "type": "equation",
576
+ "img_path": "images/ddd07dea97d6424c0245f93bf9ab36b5a9191c4b064d8a0b993886232fc55507.jpg",
577
+ "text": "$$\n\\tau _ { \\mathrm { m i x } } ( \\epsilon ; W _ { 2 } ; A ) \\leq \\operatorname* { m a x } \\left\\{ \\frac { 1 } { \\beta h _ { 1 } } , \\frac { 1 } { \\beta } \\left( \\frac { 2 C } { \\epsilon } \\right) ^ { \\frac { 1 } { p _ { 2 } - \\frac { 1 } { 2 } } } \\right\\} \\log \\frac { 2 \\sqrt { 2 } W _ { 2 } ( L a w ( x _ { 0 } ) \\mu ) } { \\epsilon }\n$$",
578
+ "text_format": "latex",
579
+ "bbox": [
580
+ 253,
581
+ 481,
582
+ 743,
583
+ 531
584
+ ],
585
+ "page_idx": 4
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "In particular, when high accuracy is needed, i.e., \u000f < 2Chp2− 121189 , we have ",
590
+ "bbox": [
591
+ 142,
592
+ 540,
593
+ 651,
594
+ 559
595
+ ],
596
+ "page_idx": 4
597
+ },
598
+ {
599
+ "type": "equation",
600
+ "img_path": "images/a43f2644234f715141d271c2214c07ef17e77cdf67b26d060a0840247ec4c92d.jpg",
601
+ "text": "$$\n\\tau _ { \\mathrm { m i x } } ( \\epsilon ; W _ { 2 } ; A ) \\leq \\frac { ( 2 C ) ^ { \\frac { 1 } { p _ { 2 } - \\frac { 1 } { 2 } } } } { \\beta } \\frac { 1 } { \\epsilon ^ { \\frac { 1 } { p _ { 2 } - \\frac { 1 } { 2 } } } } \\log \\frac { 2 \\sqrt { 2 } W _ { 2 } ( L a w ( x _ { 0 } ) , \\mu ) } { \\epsilon } = \\widetilde { \\mathcal { O } } \\left( \\frac { C ^ { \\frac { 1 } { p _ { 2 } - \\frac { 1 } { 2 } } } } { \\beta } \\frac { 1 } { \\epsilon ^ { \\frac { 1 } { p _ { 2 } - \\frac { 1 } { 2 } } } } \\right)\n$$",
602
+ "text_format": "latex",
603
+ "bbox": [
604
+ 197,
605
+ 564,
606
+ 781,
607
+ 614
608
+ ],
609
+ "page_idx": 4
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "190 Corollary 3.5 states how mixing time depends on the order of local (strong) error (i.e., $p _ { 2 } ^ { \\phantom { } } ,$ ) of a \n191 numerical algorithm. The larger $p _ { 2 }$ is, the shorter the mixing time of the algorithm is, in term of \n192 the dependence on accuracy tolerance parameter $\\epsilon$ . It is important to note that for constant stepsize \n193 discretizations that are deterministic on the filtration of the driving Brownian motion and use only its \n194 increments, there is a strong order barrier, namely $p _ { 2 } \\leq 1 . 5$ (Rüemelin, 1982); however, methods \n195 involving multiple stochastic integrals (e.g., Kloeden and Platen (1992); Milstein and Tretyakov \n196 (2013)) and randomization (e.g., Shen and Lee (2019)) can yield a larger $p _ { 2 }$ . \n197 The constant $C$ defined in Eq. (7) typically contains rich information about the underlying SDE, e.g. \n198 dimension, Lipschitz constant of drift and noise diffusion, and the initial value $\\scriptstyle { \\mathbf { { \\mathit { x } } } } _ { 0 }$ of the sampling \n199 algorithm. Through $C$ , we can uncover the dependence of mixing time bound on various parameters, \n200 such as the dimension $d$ . This will be exemplified with Langevin Monte Carlo in the next section. ",
614
+ "bbox": [
615
+ 140,
616
+ 626,
617
+ 825,
618
+ 724
619
+ ],
620
+ "page_idx": 4
621
+ },
622
+ {
623
+ "type": "text",
624
+ "text": "",
625
+ "bbox": [
626
+ 142,
627
+ 729,
628
+ 826,
629
+ 786
630
+ ],
631
+ "page_idx": 4
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "201 4 Non-Asymptotic Analysis of Langevin Monte Carlo Algorithm ",
636
+ "text_level": 1,
637
+ "bbox": [
638
+ 150,
639
+ 804,
640
+ 727,
641
+ 823
642
+ ],
643
+ "page_idx": 4
644
+ },
645
+ {
646
+ "type": "text",
647
+ "text": "202 This section quantifies how LMC samples from Gibbs target distribution $\\mu \\sim \\exp \\left( - f ( \\pmb { x } ) \\right)$ that has \n203 a finite second moment, i.e., $\\begin{array} { r } { \\int _ { \\mathbb { R } ^ { d } } \\left\\| \\pmb { x } \\right\\| ^ { 2 } d \\mu < \\infty } \\end{array}$ . Assume without loss of generality that the origin is \n204 a local minimizer of $f$ , i.e. $\\nabla f ( \\mathbf { 0 } ) = \\mathbf { 0 }$ ; this is for notational convenience in the analysis and can \n205 be realized via a simple coordinate shift, and it is not needed in the practical implementation. In \n206 addition, we assume the following two conditions hold: ",
648
+ "bbox": [
649
+ 143,
650
+ 835,
651
+ 825,
652
+ 911
653
+ ],
654
+ "page_idx": 4
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "A 1. (Smoothness and Strong Convexity) Assume 7 $f \\in { \\mathcal { C } } ^ { 2 }$ and is $L$ -smooth and $m$ -strongly-convex, i.e. there exists 08 $0 < m \\le L$ such that $m \\bar { I } _ { d } \\preccurlyeq \\nabla ^ { 2 } f ( \\acute { \\pmb x } ) \\preccurlyeq L I _ { d } , \\quad$ $\\forall \\pmb { x } \\in \\mathbb { R } ^ { d }$ . ",
659
+ "bbox": [
660
+ 158,
661
+ 90,
662
+ 826,
663
+ 121
664
+ ],
665
+ "page_idx": 5
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "Denote the condition number of 209 the standard assumption in the lit $f$ by atu $\\kappa \\triangleq { \\frac { L } { m } }$ . The smoothness and strong-convexity assumption isalyzing LMC algorithm (Dalalyan, 2017a,b; Cheng and Bartlett, 2018; Durmus et al., 2019a,b). ",
670
+ "bbox": [
671
+ 153,
672
+ 128,
673
+ 825,
674
+ 172
675
+ ],
676
+ "page_idx": 5
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "A 2. (Linear Growth of the 3rd-order derivative) Assume $f \\in \\mathcal { C } ^ { 3 }$ and the operator $\\nabla ( \\Delta f )$ grows at most linearly, i.e., there exists a constant $G > 0$ such that $\\begin{array} { r } { \\left\\| \\nabla ( \\Delta f ( \\pmb { x } ) ) \\right\\| \\leq G \\left( 1 + \\| \\pmb { x } \\| \\right) } \\end{array}$ . ",
681
+ "bbox": [
682
+ 165,
683
+ 174,
684
+ 823,
685
+ 207
686
+ ],
687
+ "page_idx": 5
688
+ },
689
+ {
690
+ "type": "text",
691
+ "text": "Remark. The linear growth (at infinity) condition on $\\nabla \\Delta f$ is actually not as restrictive as it appears, and in some sense even weaker than some classical condition for the existence of solutions to SDE. For example, a standard condition for ensuring the existence and uniqueness of a global solution to SDE is at most a linear growth (at infinity) of the drift (Pavliotis, 2014, Theorem 3.1). If we consider monomial potentials, i.e., $f ( x ) = x ^ { p } , p \\in \\mathbb { N } _ { + }$ , then the linear growth condition on $\\nabla \\Delta f$ is met when $p \\leq 4$ , whereas the classical condition for the existence of solutions holds only when $p \\leq 2$ . ",
692
+ "bbox": [
693
+ 173,
694
+ 208,
695
+ 825,
696
+ 291
697
+ ],
698
+ "page_idx": 5
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "220 To apply mean-square analysis to study LMC algorithm, we will need to ensure the underlying \n221 Langevin dynamics is contractive, which we verify in Section C and D in the appendix. In addition, \n222 we work out all required constants to determine the $C$ in Eq. 7 explicitly in the appendix. With all \n223 these necessary ingredients, we now invoke Theorem 3.4 and obtain the following result: ",
703
+ "bbox": [
704
+ 140,
705
+ 299,
706
+ 826,
707
+ 357
708
+ ],
709
+ "page_idx": 5
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "224 Theorem 4.1. (Non-Asymptotic Error Bound: LMC) Suppose Assumption √ $\\cdot$ and 2 hold. LMC iteration 225 $\\bar { \\pmb { x } } _ { k + 1 } = \\bar { \\pmb { x } } _ { k } - h \\nabla f ( \\bar { \\pmb { x } } _ { k } ) + \\sqrt { 2 h } \\xi _ { k }$ satisfies ",
714
+ "bbox": [
715
+ 147,
716
+ 358,
717
+ 826,
718
+ 390
719
+ ],
720
+ "page_idx": 5
721
+ },
722
+ {
723
+ "type": "equation",
724
+ "img_path": "images/f662137aa44dc2ca2777033cc0245c422dc2de469ad0402646baf56ce9fe2607.jpg",
725
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle { W _ { 2 } } \\big ( L a w ( \\bar { x } _ { k } ) , \\mu \\big ) \\le \\sqrt 2 e ^ { - m k h } W _ { 2 } \\big ( L a w ( x _ { 0 } ) , \\mu \\big ) + \\sqrt 2 C _ { L M C } h , \\quad 0 < h \\le \\frac 1 { 4 \\kappa L } , k \\in \\mathbb N } } \\\\ { ~ } \\\\ { \\displaystyle { { e ^ { } C _ { L M C } } = \\frac { 1 0 ( L ^ { 2 } + G ) } { m ^ { \\frac 3 2 } } \\sqrt { 2 d + m \\left( \\left. x _ { 0 } \\right. ^ { 2 } + 1 \\right) } = \\mathcal { O } ( \\sqrt d ) . } } \\end{array}\n$$",
726
+ "text_format": "latex",
727
+ "bbox": [
728
+ 205,
729
+ 391,
730
+ 769,
731
+ 458
732
+ ],
733
+ "page_idx": 5
734
+ },
735
+ {
736
+ "type": "text",
737
+ "text": "27 Corollary 3.5 combined with the above result gives the following bound on the mixing time of LMC: ",
738
+ "bbox": [
739
+ 155,
740
+ 463,
741
+ 826,
742
+ 479
743
+ ],
744
+ "page_idx": 5
745
+ },
746
+ {
747
+ "type": "text",
748
+ "text": "28 Theorem 4.2. (Upper Bound of Mixing Time: LMC) Suppose Assumption $I$ and 2 hold. If running \n29 LMC from $\\scriptstyle { \\mathbf { { \\mathit { x } } } } _ { 0 }$ , we then have ",
749
+ "bbox": [
750
+ 153,
751
+ 481,
752
+ 823,
753
+ 510
754
+ ],
755
+ "page_idx": 5
756
+ },
757
+ {
758
+ "type": "equation",
759
+ "img_path": "images/bc4c21186fe94b70d8283897e0087f639f56b31f1eb9719e3a9e0e61cfa3001d.jpg",
760
+ "text": "$$\n\\tau _ { \\operatorname* { m i x } } ( \\epsilon ; W _ { 2 } ; \\mathrm { L M C } ) \\le \\operatorname* { m a x } \\{ 4 \\kappa ^ { 2 } , \\frac { 2 C _ { L M C } } { m } \\frac { 1 } { \\epsilon } \\} \\log \\frac { 2 \\sqrt { 2 } W _ { 2 } ( L a w ( x _ { 0 } ) , \\mu ) } { \\epsilon }\n$$",
761
+ "text_format": "latex",
762
+ "bbox": [
763
+ 267,
764
+ 511,
765
+ 728,
766
+ 545
767
+ ],
768
+ "page_idx": 5
769
+ },
770
+ {
771
+ "type": "text",
772
+ "text": "where 230 $C _ { L M C }$ is the same in Theorem 4.1. When high accuracy is needed, i.e., $\\begin{array} { r } { \\epsilon \\leq \\frac { C _ { L M C } } { 2 m \\kappa ^ { 2 } } } \\end{array}$ CLMC 2mκ2 , we have ",
773
+ "bbox": [
774
+ 140,
775
+ 547,
776
+ 803,
777
+ 564
778
+ ],
779
+ "page_idx": 5
780
+ },
781
+ {
782
+ "type": "equation",
783
+ "img_path": "images/7ed887bd56ae233180d19684d51da84b8bde8d9e4c04ba81914ef85e919e01c9.jpg",
784
+ "text": "$$\n\\tau _ { \\mathrm { m i x } } ( \\epsilon ; W _ { 2 } ; \\mathrm { L M C } ) \\leq \\frac { 2 C _ { L M C } } { m } \\frac { 1 } { \\epsilon } \\log \\frac { 2 \\sqrt { 2 } W _ { 2 } ( L a w ( { \\pmb x } _ { 0 } ) , \\mu ) } { \\epsilon } = \\widetilde { \\mathcal { O } } \\left( \\frac { \\sqrt { d } } { \\epsilon } \\right) .\n$$",
785
+ "text_format": "latex",
786
+ "bbox": [
787
+ 259,
788
+ 568,
789
+ 736,
790
+ 609
791
+ ],
792
+ "page_idx": 5
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "231 The $\\begin{array} { r } { \\widetilde { \\mathcal { O } } \\left( \\frac { \\sqrt { d } } { \\epsilon } \\right) } \\end{array}$ mixing time bound in 2-Wasserstein distance improves upon the previous ones \n232 (Dalalyan, 2017a; Cheng and Bartlett, 2018; Durmus et al., 2019b,a) in the dependence of √ $d$ and/or $\\epsilon$ . \n233 If further assuming $G = \\mathcal { O } ( L ^ { 2 } )$ , we then have $C _ { \\mathrm { L M C } } = \\mathcal { O } ( \\kappa ^ { 2 } \\sqrt { m } \\sqrt { d } )$ and Thm.4.2 shows the mixing \n234 time is $\\widetilde { \\mathcal { O } } \\left( \\frac { \\kappa ^ { 2 } } { \\sqrt { m } } \\frac { \\sqrt { d } } { \\epsilon } \\right)$ , which also improves the $\\kappa$ dependence in some previous results (Dalalyan, \n235 $2 0 1 7 \\mathrm { a }$ ; Cheng and Bartlett, 2018) in the regime $m \\leq 1$ . A brief comparison is summarized in Table 1. \n236 Optimality In fact, the $\\begin{array} { r } { \\widetilde { \\mathcal { O } } \\left( \\frac { \\sqrt { d } } { \\epsilon } \\right) } \\end{array}$ mixing time of LMC has the optimal scaling one can expect. This \n237 is in terms of the dependence on $d$ and $\\epsilon$ , over the class of all log-smooth and log-strongly-convex \n238 target measures. To illustrate this, consider the following Gaussian target distribution whose potential \n239 is ",
797
+ "bbox": [
798
+ 140,
799
+ 617,
800
+ 828,
801
+ 710
802
+ ],
803
+ "page_idx": 5
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "",
808
+ "bbox": [
809
+ 138,
810
+ 720,
811
+ 826,
812
+ 785
813
+ ],
814
+ "page_idx": 5
815
+ },
816
+ {
817
+ "type": "equation",
818
+ "img_path": "images/db696df16ecb1527f8bc0f2a845ef70701977e77846c75b9bdbd7b02786418b6.jpg",
819
+ "text": "$$\nf ( \\pmb { x } ) = \\frac { m } { 2 } \\sum _ { i = 1 } ^ { d } x _ { i } ^ { 2 } + \\frac { L } { 2 } \\sum _ { i = d + 1 } ^ { 2 d } x _ { i } ^ { 2 } , \\quad \\mathrm { { w i t h } } m = 1 , L \\geq 4 m .\n$$",
820
+ "text_format": "latex",
821
+ "bbox": [
822
+ 303,
823
+ 781,
824
+ 694,
825
+ 827
826
+ ],
827
+ "page_idx": 5
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "240 We now establish a lower bound on the mixing time of LMC algorithm for this target measure. ",
832
+ "bbox": [
833
+ 140,
834
+ 827,
835
+ 794,
836
+ 842
837
+ ],
838
+ "page_idx": 5
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "241 Theorem 4.3. (Lower Bound of Mixing Time) Suppose we run LMC for the target measure defined \n242 in Eq. (11) from ${ \\pmb x } _ { 0 } = { \\bf 1 } _ { 2 d }$ , then for any choice of step size $h > 0$ within stability limit, we have ",
843
+ "bbox": [
844
+ 142,
845
+ 843,
846
+ 826,
847
+ 872
848
+ ],
849
+ "page_idx": 5
850
+ },
851
+ {
852
+ "type": "equation",
853
+ "img_path": "images/50ea99d863705d0f7c7d0eb826f6d84bc56ceead56b345b11a391978a5f45490.jpg",
854
+ "text": "$$\n\\tau _ { \\mathrm { m i x } } ( \\epsilon ; W _ { 2 } ; \\mathrm { L M C } ) \\geq \\frac { \\sqrt { d } } { 8 \\epsilon } \\log \\frac { \\sqrt { d } } { \\epsilon } = \\widetilde \\Omega \\left( \\frac { \\sqrt { d } } { \\epsilon } \\right) .\n$$",
855
+ "text_format": "latex",
856
+ "bbox": [
857
+ 338,
858
+ 875,
859
+ 658,
860
+ 916
861
+ ],
862
+ "page_idx": 5
863
+ },
864
+ {
865
+ "type": "table",
866
+ "img_path": "images/4783107cd73530dff9ceef60959a474757d93f3b67a58041830afee79f763424.jpg",
867
+ "table_caption": [
868
+ "Table 1: Comparison of mixing time results in 2-Wassertein distance of LMC with $L$ -smooth and $m$ -strongly-convex potential. Constant step size is used and accuracy tolerance $\\epsilon$ is small enough. "
869
+ ],
870
+ "table_footnote": [],
871
+ "table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=3>mixing time</td><td rowspan=1 colspan=1>Additional Assumption</td></tr><tr><td rowspan=1 colspan=1>(Dalalyan,2017a, Theorem 1)</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>K²</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>(Cheng and Bartlett, 2018, Theorem 1)</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>(Durmus et al., 2019a, Corollary 10)</td><td rowspan=1 colspan=3>8()</td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>(Durmus et al., 2019b, Theorem 8)</td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=1>|/V²f(x)-V²f(y)||≤L|x- yll</td></tr><tr><td rowspan=1 colspan=1>This work (Theorem 4.2)</td><td rowspan=1 colspan=3>6Em</td><td rowspan=1 colspan=1>Assumption 2 and G = O(L²)2</td></tr></table>",
872
+ "bbox": [
873
+ 174,
874
+ 125,
875
+ 823,
876
+ 258
877
+ ],
878
+ "page_idx": 6
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "243 Combining Theorem 4.2 and 4.3, we see that mean-square analysis provides a tight bound for LMC. ",
883
+ "bbox": [
884
+ 147,
885
+ 284,
886
+ 823,
887
+ 299
888
+ ],
889
+ "page_idx": 6
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "244 However, there is one limitation of our result – Assumption 2, which is, although mild, still extra to the \n245 standard setup. Therefore, the gap between the upper bound and the lower bound of LMC algorithm \n246 over the entire family of log-smooth and log-strongly-convex target measures is not completely \n247 closed. We tend to believe that Assumption 2 may not be essential, but rather than an artifact of our \n248 proof technique. We hope to lift this restriction in future work. \n249 Comparison At least two sampling algorithms are closely related to LMC. One is Kinetic Langevin \n250 Monte Carlo algorithm (KLMC), which is discretized kinetic/underdamped Langevin dynamics, and \n251 the other is Metropolis-Adjusted Langevin Algorithm (MALA) which uses the one-step update of \n252 LMC as a proposal and then accepts/rejects them with a Metropolis-Hastings algorithm. ",
894
+ "bbox": [
895
+ 140,
896
+ 304,
897
+ 825,
898
+ 375
899
+ ],
900
+ "page_idx": 6
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "",
905
+ "bbox": [
906
+ 142,
907
+ 388,
908
+ 826,
909
+ 445
910
+ ],
911
+ "page_idx": 6
912
+ },
913
+ {
914
+ "type": "text",
915
+ "text": "The $\\begin{array} { r } { \\widetilde { \\mathcal { O } } \\left( \\frac { \\sqrt { d } } { \\epsilon } \\right) } \\end{array}$ mixing time in 2-Wasserstein distance of KLMC has been established for log-smooth and log-strongly-convex target measures in existing literature (Cheng et al., 2018b; Dalalyan and Riou-Durand, 2020). Due to its better dimension dependence over previously best known results of LMC, KLMC is understood to be the analog of Nesterov’s accelerated gradient method for sampling (Ma et al., 2021). Our findings show that LMC is able to achieve the same mixing time, albeit under an additional growth-at-infinity condition. However, this does not say anything about whether/how KLMC accelerates LMC, as the optimality of KLMC bound is not yet clear. We also note KLMC has better condition number dependence, although the $\\kappa$ dependence in our bound may not be tight. ",
916
+ "bbox": [
917
+ 169,
918
+ 449,
919
+ 825,
920
+ 571
921
+ ],
922
+ "page_idx": 6
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "261 In terms of MALA, a recent work (Chewi et al., 2020) establishes a $\\widetilde { \\mathcal { O } } \\left( \\sqrt { d } \\right)$ mixing time in 2- \n262 Wasserstein distance with warm start, and the dimension dependence is shown to be optimal. We see \n263 that without the Metropolis adjustment, LMC can also achieve the optimal dimension dependence as \n264 MALA. But unlike LMC, MALA only has logarithmic dependence on $\\frac { 1 } { \\epsilon }$ . Under warm-start condition, \n265 is it possible/how to improve the dependence of $\\frac { 1 } { \\epsilon }$ for LMC, from polynomial to logarithmic? This \n266 question is beyond the scope of this paper but worth further investigation. ",
927
+ "bbox": [
928
+ 140,
929
+ 577,
930
+ 826,
931
+ 672
932
+ ],
933
+ "page_idx": 6
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "267 5 Numerical Examples ",
938
+ "text_level": 1,
939
+ "bbox": [
940
+ 151,
941
+ 691,
942
+ 379,
943
+ 709
944
+ ],
945
+ "page_idx": 6
946
+ },
947
+ {
948
+ "type": "text",
949
+ "text": "268 This section numerically verifies our theoretical findings for LMC in Section 4, with a particular \n269 focus on the dependence of the discretization error in Theorem 4.1 on dimension $d$ and step size $h$ . \n270 To this end, we consider two target measures specified by the following two potentials: ",
950
+ "bbox": [
951
+ 142,
952
+ 722,
953
+ 826,
954
+ 766
955
+ ],
956
+ "page_idx": 6
957
+ },
958
+ {
959
+ "type": "equation",
960
+ "img_path": "images/31c52780707d80b37fd0804a9f19e3bdd8e2728073382fc8da9dc3313fd897c4.jpg",
961
+ "text": "$$\nf _ { 1 } ( \\boldsymbol { x } ) = \\frac { 1 } { 2 } \\left\\| \\boldsymbol { x } \\right\\| ^ { 2 } + \\log \\left( \\sum _ { i = 1 } ^ { d } e ^ { x _ { i } } \\right) \\quad \\mathrm { a n d } \\quad f _ { 2 } ( \\boldsymbol { x } ) = \\frac { 1 } { 2 } \\left\\| \\boldsymbol { x } \\right\\| ^ { 2 } - \\frac { 1 } { 2 d ^ { \\frac { 1 } { 2 } } } \\sum _ { i = 1 } ^ { d } \\cos \\left( d ^ { \\frac { 1 } { 4 } } \\boldsymbol { x } _ { i } \\right) .\n$$",
962
+ "text_format": "latex",
963
+ "bbox": [
964
+ 200,
965
+ 772,
966
+ 767,
967
+ 823
968
+ ],
969
+ "page_idx": 6
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "It is not hard to see that 271 $f _ { 1 }$ is 2-smooth and 1-strongly convex, $f _ { 2 }$ is 3 -smooth and 1-strongly272 convex. $f _ { 2 }$ is also used in (Chewi et al., 2020) to illustrate the optimal dimension dependence 273 of MALA. Explicit expression of 2-Wasserstein distance between non-Gaussian distributions is ",
974
+ "bbox": [
975
+ 140,
976
+ 830,
977
+ 821,
978
+ 873
979
+ ],
980
+ "page_idx": 6
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "274 typically not available, instead, we use the Euclidean norm of the mean error as a surrogate because \n275 $\\bigl | \\bigl | \\hat { \\mathbb { E } } \\bar { \\pmb { x } } _ { k } - \\mathbb { E } _ { \\mu } \\pmb { x } \\bigr | \\bigr | \\leq W _ { 2 } \\bigl ( \\mathrm { L a w } ( \\bar { \\pmb { x } } _ { k } ) , \\mu \\bigr )$ due to Jensen’s inequality. To obtain an accurate estimate of the \n276 ground truth, we run $1 0 ^ { 8 }$ independent LMC realizations using a tiny step size $\\mathrm { { h } = 0 . 0 0 1 }$ ), each till a \n277 fixed, long enough time, and use the empirical average to approximate $\\mathbb { E } _ { \\mu } \\pmb { x }$ . \n278 To study the dimension dependence of sampling error, we fix step size $h = 0 . 1$ , and for each \n279 $d \\in \\{ 1 , 2 , 5 , 1 0 , 2 0 , 5 0 , 1 0 0 , 2 0 0 , 5 0 0 , 1 0 0 0 \\}$ , we simulate $1 0 ^ { 4 }$ independent Markov chains using \n280 LMC algorithm for 100 iterations, which is long enough for the chain to be well-mixed. The mean \n281 and the standard deviation of the sampling error corresponding to the last 10 iterates are recorded. \n282 To study step size dependence of sampling error, dimension is fixed to be $d = 1 0$ . We experiment with \n283 step size $h \\in \\{ 1 , 2 , \\bar { 3 } , 4 , 5 , 6 , 7 , 8 , 9 , \\bar { 1 0 } \\} \\times 1 0 ^ { - 1 }$ . We fix a continuous time $T = 2 0$ , and run LMC \n284 algorithm for $\\left\\lceil { \\frac { T } { h } } \\right\\rceil$ iterations for each $h$ . The procedure is repeated $1 0 ^ { 4 }$ times with different random \n285 seeds to obtain independent samples. When the corresponding continuous time $t = k h > 1 0$ , we see \n286 from Eq. (10) that LMC is well converged and the sampling error is saturated by the discretization \n287 error. Therefore, for each $h$ , we take the last $\\lceil \\frac { 1 0 } { h } \\rceil$ iterates and record the mean and standard deviation \n288 of their sampling error. \n289 The experiment results shown in Figure 1 are consistent with our theoretical analysis of the sampling√ \n290 error.Both linear dependence on $\\sqrt { d }$ and $h$ can be identified in and supported by the empirical \n291 evidence. Note results with smaller $h$ are less accurate because one starts to see the error of empirical \n292 approximation due to finite samples. Experiments were conducted on a machine with a 2.20GHz \n293 Intel(R) Xeon(R) E5-2630 v4 CPU and an Nvidia GeForce GTX 1080 GPU. ",
985
+ "bbox": [
986
+ 140,
987
+ 90,
988
+ 825,
989
+ 150
990
+ ],
991
+ "page_idx": 7
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "",
996
+ "bbox": [
997
+ 140,
998
+ 155,
999
+ 826,
1000
+ 212
1001
+ ],
1002
+ "page_idx": 7
1003
+ },
1004
+ {
1005
+ "type": "text",
1006
+ "text": "",
1007
+ "bbox": [
1008
+ 142,
1009
+ 217,
1010
+ 825,
1011
+ 318
1012
+ ],
1013
+ "page_idx": 7
1014
+ },
1015
+ {
1016
+ "type": "image",
1017
+ "img_path": "images/3259972bc31cdc763783ea24599784e0958d3e4f5af33daba50f010695753e2c.jpg",
1018
+ "image_caption": [
1019
+ "Figure 1: (a) Dependence of the sampling error of LMC on dimension $d$ and step size $h$ for $f _ { 1 }$ and $f _ { 2 }$ Both axes in Figure 1a and 1b are in log scale. The shaded areas in Figure 1a and 1b represent one standard deviation of the last 10 iterates. The shaded areas in Figure 1c and 1d represent one standard deviation of the last $\\lceil \\frac { 1 0 } { h } \\rceil$ iterations. "
1020
+ ],
1021
+ "image_footnote": [],
1022
+ "bbox": [
1023
+ 179,
1024
+ 330,
1025
+ 815,
1026
+ 448
1027
+ ],
1028
+ "page_idx": 7
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "",
1033
+ "bbox": [
1034
+ 140,
1035
+ 525,
1036
+ 825,
1037
+ 598
1038
+ ],
1039
+ "page_idx": 7
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "6 Conclusion ",
1044
+ "text_level": 1,
1045
+ "bbox": [
1046
+ 163,
1047
+ 617,
1048
+ 299,
1049
+ 633
1050
+ ],
1051
+ "page_idx": 7
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "text": "This paper extends the mean-square analysis framework for analyzing the integration error of SDE to analyzing the sampling error in 2-Wasserstein distance. Corresponding mixing time bound unveils how a high-order numerical algorithm can help improve dependence on accuracy tolerance \u000f, and potentially other parameters, such as the dimension. When applied to Langevin Monte Carlo algorithm, it obtains an improved and optimal $\\widetilde { \\mathcal { O } } \\left( \\sqrt { d } / \\epsilon \\right)$ bound, which was previously thought to be obtainable only with the addition of momentum. ",
1056
+ "bbox": [
1057
+ 169,
1058
+ 647,
1059
+ 825,
1060
+ 741
1061
+ ],
1062
+ "page_idx": 7
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "01 Here are some possible directions worth further investigations. (i) In data-intensive applications, \n02 stochastic gradients are typically used for better scalability. It seems natural to apply the mean-square \n03 analysis framework to study SDE-basd stochastic gradient MCMC methods; (ii) Assumption 2 is \n04 likely to be an artifact of our analysis; how to establish the optimal mixing time bound in the standard \n05 log-smooth and log-strongly-convex setup is still an open question; (iii) Motivated by the recent \n06 result of MALA (Chewi et al., 2020), it would be interesting to know whether the dependence on $\\frac { 1 } { \\epsilon }$ \n07 can be improved to logarithmic, for example if LMC is initialized at a warm start. ",
1067
+ "bbox": [
1068
+ 150,
1069
+ 746,
1070
+ 825,
1071
+ 844
1072
+ ],
1073
+ "page_idx": 7
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "References ",
1078
+ "text_level": 1,
1079
+ "bbox": [
1080
+ 142,
1081
+ 89,
1082
+ 267,
1083
+ 106
1084
+ ],
1085
+ "page_idx": 8
1086
+ },
1087
+ {
1088
+ "type": "text",
1089
+ "text": "Abadi, M., Barham, P., Chen, J., Chen, Z., Davis, A., Dean, J., Devin, M., Ghemawat, S., Irving, G., Isard, M., Kudlur, M., Levenberg, J., Monga, R., Moore, S., Murray, D. G., Steiner, B., Tucker, P., Vasudevan, V., Warden, P., Wicke, M., Yu, Y., and Zheng, X. (2016). Tensorflow: A system for large-scale machine learning. In 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16), pages 265–283. \nAndrieu, C., De Freitas, N., Doucet, A., and Jordan, M. I. (2003). An introduction to mcmc for machine learning. Machine learning, 50(1):5–43. \nChen, C., Zhang, R., Wang, W., Li, B., and Chen, L. (2018). A unified particle-optimization framework for scalable bayesian sampling. In The Conference on Uncertainty in Artificial Intelligence. \nCheng, X. and Bartlett, P. L. (2018). Convergence of langevin mcmc in kl-divergence. PMLR 83, (83):186–211. \nCheng, X., Chatterji, N. S., Abbasi-Yadkori, Y., Bartlett, P. L., and Jordan, M. I. (2018a). Sharp convergence rates for langevin dynamics in the nonconvex setting. arXiv preprint arXiv:1805.01648. \nCheng, X., Chatterji, N. S., Bartlett, P. L., and Jordan, M. I. (2018b). Underdamped langevin mcmc: A non-asymptotic analysis. Proceedings of the 31st Conference On Learning Theory, PMLR. \nChewi, S., Lu, C., Ahn, K., Cheng, X., Gouic, T. L., and Rigollet, P. (2020). Optimal dimension dependence of the metropolis-adjusted langevin algorithm. arXiv preprint arXiv:2012.12810. \nChizat, L. and Bach, F. (2018). On the global convergence of gradient descent for over-parameterized models using optimal transport. In Advances in neural information processing systems, pages 3036–3046. \nDalalyan, A. S. (2017a). Further and stronger analogy between sampling and optimization: Langevin monte carlo and gradient descent. Conference on Learning Theory, pages 678–689. \nDalalyan, A. S. (2017b). Theoretical guarantees for approximate sampling from smooth and logconcave densities. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 79(3):651–676. \nDalalyan, A. S. and Riou-Durand, L. (2020). On sampling from a log-concave density using kinetic Langevin diffusions. Bernoulli, 26(3):1956–1988. \nDashti, M. and Stuart, A. M. (2017). The Bayesian Approach to Inverse Problems, pages 311–428. Springer International Publishing, Cham. \nDurmus, A., Majewski, S., and Miasojedow, B. (2019a). Analysis of langevin monte carlo via convex optimization. Journal of Machine Learning Research, 20:73–1. \nDurmus, A., Moulines, E., et al. (2017). Nonasymptotic convergence analysis for the unadjusted langevin algorithm. Annals of Applied Probability, 27(3):1551–1587. \nDurmus, A., Moulines, E., et al. (2019b). High-dimensional bayesian inference via the unadjusted langevin algorithm. Bernoulli, 25(4A):2854–2882. \nErdogdu, M. A. and Hosseinzadeh, R. (2020). On the convergence of langevin monte carlo: The interplay between tail growth and smoothness. arXiv preprint arXiv:2005.13097. \nFrogner, C. and Poggio, T. (2020). Approximate inference with wasserstein gradient flows. In International Conference on Artificial Intelligence and Statistics. \nJordan, R., Kinderlehrer, D., and Otto, F. (1998). The variational formulation of the fokker–planck equation. SIAM journal on mathematical analysis, 29(1):1–17. \nKloeden, P. E. and Platen, E. (1992). Numerical solution of stochastic differential equations. Springer. \nLi, R., Zha, H., and Tao, M. (2020). Hessian-free high-resolution nesterov acceleration for sampling. arXiv preprint arXiv:2006.09230. \nLiu, J. S. (2008). Monte Carlo strategies in scientific computing. Springer Science & Business Media. \nLiu, Q. and Wang, D. (2016). Stein variational gradient descent: A general purpose bayesian inference algorithm. In Advances in neural information processing systems, pages 2378–2386. \nMa, Y.-A., Chatterji, N. S., Cheng, X., Flammarion, N., Bartlett, P. L., and Jordan, M. I. (2021). Is there an analog of Nesterov acceleration for gradient-based MCMC? Bernoulli, 27(3):1942 – 1992. \nMandt, S., Hoffman, M. D., and Blei, D. M. (2017). Stochastic gradient descent as approximate bayesian inference. Journal of Machine Learning Research, 18(134):1–35. \nMilstein, G. N. and Tretyakov, M. V. (2013). Stochastic numerics for mathematical physics. Springer Science & Business Media. \nMou, W., Flammarion, N., Wainwright, M. J., and Bartlett, P. L. (2019). Improved bounds for discretization of langevin diffusions: Near-optimal rates without convexity. arXiv preprint arXiv:1907.11331. \nMou, W., Ma, Y.-A., Wainwright, M. J., Bartlett, P. L., and Jordan, M. I. (2021). High-order langevin diffusion yields an accelerated mcmc algorithm. Journal of Machine Learning Research, 22(42):1–41. \nPavliotis, G. A. (2014). Stochastic processes and applications: diffusion processes, the Fokker-Planck and Langevin equations, volume 60. Springer. \nRobert, C. and Casella, G. (2013). Monte Carlo statistical methods. Springer Science & Business Media. \nRoberts, G. O. and Rosenthal, J. S. (1998). Optimal scaling of discrete approximations to langevin diffusions. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 60(1):255– 268. \nRoberts, G. O., Tweedie, R. L., et al. (1996). Exponential convergence of langevin distributions and their discrete approximations. Bernoulli, 2(4):341–363. \nRüemelin, W. (1982). Numerical treatment of stochastic differential equations. SIAM Journal on Numerical Analysis, 19(3):604–613. \nShen, R. and Lee, Y. T. (2019). The randomized midpoint method for log-concave sampling. In Advances in Neural Information Processing Systems, pages 2098–2109. \nVempala, S. and Wibisono, A. (2019). Rapid convergence of the unadjusted langevin algorithm: Isoperimetry suffices. In Advances in Neural Information Processing Systems, pages 8092–8104. \nWibisono, A. (2018). Sampling as optimization in the space of measures: The langevin dynamics as a composite optimization problem. In Conference On Learning Theory, pages 2093–3027. \nZhang, R., Chen, C., Li, C., and Carin, L. (2018). Policy optimization as wasserstein gradient flows. In International Conference on Machine Learning, pages 5737–5746. ",
1090
+ "bbox": [
1091
+ 161,
1092
+ 103,
1093
+ 828,
1094
+ 920
1095
+ ],
1096
+ "page_idx": 8
1097
+ },
1098
+ {
1099
+ "type": "text",
1100
+ "text": "",
1101
+ "bbox": [
1102
+ 158,
1103
+ 88,
1104
+ 828,
1105
+ 717
1106
+ ],
1107
+ "page_idx": 9
1108
+ },
1109
+ {
1110
+ "type": "text",
1111
+ "text": "1. For all authors... ",
1112
+ "bbox": [
1113
+ 214,
1114
+ 116,
1115
+ 339,
1116
+ 130
1117
+ ],
1118
+ "page_idx": 10
1119
+ },
1120
+ {
1121
+ "type": "text",
1122
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] Limitation is discussed in the paragraph below Table 1. \n(c) Did you discuss any potential negative societal impacts of your work? [N/A] To the best of our knowledge, this work does not have any potential negative societal impact. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
1123
+ "bbox": [
1124
+ 238,
1125
+ 135,
1126
+ 825,
1127
+ 253
1128
+ ],
1129
+ "page_idx": 10
1130
+ },
1131
+ {
1132
+ "type": "text",
1133
+ "text": "2. If you are including theoretical results... ",
1134
+ "bbox": [
1135
+ 214,
1136
+ 257,
1137
+ 493,
1138
+ 272
1139
+ ],
1140
+ "page_idx": 10
1141
+ },
1142
+ {
1143
+ "type": "text",
1144
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] Assumptions are fully, clearly stated in theorems. \n(b) Did you include complete proofs of all theoretical results? [Yes] Complete proofs of all theoretical results are provided in supplementary materials. ",
1145
+ "bbox": [
1146
+ 238,
1147
+ 276,
1148
+ 825,
1149
+ 335
1150
+ ],
1151
+ "page_idx": 10
1152
+ },
1153
+ {
1154
+ "type": "text",
1155
+ "text": "3. If you ran experiments... ",
1156
+ "bbox": [
1157
+ 214,
1158
+ 339,
1159
+ 393,
1160
+ 354
1161
+ ],
1162
+ "page_idx": 10
1163
+ },
1164
+ {
1165
+ "type": "text",
1166
+ "text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] All are provided in supplementary materials. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] Our experiments do not need training. We specify all the hyperparameters needed to run the experiments. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Figure 1. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] We report the hardware used to run our experiments. ",
1167
+ "bbox": [
1168
+ 238,
1169
+ 358,
1170
+ 825,
1171
+ 517
1172
+ ],
1173
+ "page_idx": 10
1174
+ },
1175
+ {
1176
+ "type": "text",
1177
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1178
+ "bbox": [
1179
+ 214,
1180
+ 522,
1181
+ 823,
1182
+ 536
1183
+ ],
1184
+ "page_idx": 10
1185
+ },
1186
+ {
1187
+ "type": "text",
1188
+ "text": "(a) If your work uses existing assets, did you cite the creators? [N/A] \n(b) Did you mention the license of the assets? [N/A] \n(c) Did you include any new assets either in the supplemental material or as a URL? [N/A] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
1189
+ "bbox": [
1190
+ 238,
1191
+ 541,
1192
+ 825,
1193
+ 662
1194
+ ],
1195
+ "page_idx": 10
1196
+ },
1197
+ {
1198
+ "type": "text",
1199
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1200
+ "bbox": [
1201
+ 215,
1202
+ 666,
1203
+ 705,
1204
+ 681
1205
+ ],
1206
+ "page_idx": 10
1207
+ },
1208
+ {
1209
+ "type": "text",
1210
+ "text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
1211
+ "bbox": [
1212
+ 238,
1213
+ 685,
1214
+ 825,
1215
+ 773
1216
+ ],
1217
+ "page_idx": 10
1218
+ }
1219
+ ]
parse/train/yehlf2AvSD_/yehlf2AvSD__middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/yehlf2AvSD_/yehlf2AvSD__model.json ADDED
The diff for this file is too large to render. See raw diff