ZHANGYUXUAN-zR commited on
Commit
282e851
·
verified ·
1 Parent(s): 544eff8

Add files using upload-large-folder tool

Browse files
parse/train/3-GCM92yaB3/3-GCM92yaB3.md ADDED
@@ -0,0 +1,331 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # The Unbalanced Gromov Wasserstein Distance: Conic Formulation and Relaxation
2
+
3
+ Thibault Séjourné Ecole Normale Supérieure, DMA, PSL thibault.sejourne@ens.fr
4
+
5
+ François-Xavier Vialard Université Gustave Eiffel francois-xavier.vialard@u-pem.fr
6
+
7
+ Gabriel Peyré Ecole Normale Supérieure, DMA, CNRS, PSL gabriel.peyre@ens.fr
8
+
9
+ # Abstract
10
+
11
+ Comparing metric measure spaces (i.e. a metric space endowed with a probability distribution) is at the heart of many machine learning problems. The most popular distance between such metric measure spaces is the Gromov-Wasserstein (GW) distance, which is the solution of a quadratic assignment problem. The GW distance is however limited to the comparison of metric measure spaces endowed with a probability distribution. To alleviate this issue, we introduce two Unbalanced Gromov-Wasserstein formulations: a distance and a more tractable upper-bounding relaxation. They both allow the comparison of metric spaces equipped with arbitrary positive measures up to isometries. The first formulation is a positive and definite divergence based on a relaxation of the mass conservation constraint using a novel type of quadratically-homogeneous divergence. This divergence works hand in hand with the entropic regularization approach which is popular to solve large scale optimal transport problems. We show that the underlying non-convex optimization problem can be efficiently tackled using a highly parallelizable and GPU-friendly iterative scheme. The second formulation is a distance between mm-spaces up to isometries based on a conic lifting. Lastly, we provide numerical experiments on synthetic examples and domain adaptation data with a Positive-Unlabeled learning task to highlight the salient features of the unbalanced divergence and its potential applications in ML.
12
+
13
+ # 1 Introduction
14
+
15
+ Comparing data distributions on different metric spaces is a basic problem in machine learning. This class of problems is for instance at the heart of surfaces [Bronstein et al., 2006] or graph matching $\mathrm { [ X u }$ et al., 2019] (equipping the surface or graph with its associated geodesic distance), regression problems in quantum chemistry [Gilmer et al., 2017] (viewing the molecules as distributions of points in $\mathbb { R } ^ { 3 }$ ) and natural language processing [Grave et al., 2019, Alvarez-Melis and Jaakkola, 2018] (where texts in different languages are embedded as points distributions in different vector spaces).
16
+
17
+ Metric measure spaces. The mathematical way to formalize these problems is to model the data as metric measure spaces (mm-spaces). A mm-space is denoted as $\mathbf { \bar { \boldsymbol { X } } } = ( X , d , \mu )$ where $X$ is a complete separable set endowed with a distance $d$ and a positive Borel measure $\mu \in { \mathcal { M } } _ { + } ( X )$ . For instance, if $\bar { X } = ( x _ { i } ) _ { i }$ is a finite set of points, then $\mu = \bar { \Sigma _ { i } } m _ { i } \delta _ { x _ { i } }$ (here $\delta _ { x _ { i } }$ is the Dirac mass at $x _ { i }$ ) is simply a set of positive weights $m _ { i } = \dot { \mu } ( \{ x _ { i } \} ) \ge \dot { 0 }$ associated to each point $x _ { i }$ , which accounts for its mass or importance. For instance, setting some $m _ { i }$ to 0 is equivalent to removing the point $x _ { i }$ . We refer to Sturm [2012] for a mathematical account on the theory of mm-spaces. In all the applications highlighted above, it makes sense to perform the comparisons up to isometric transformations of the data. Two mm-spaces $\mathcal { X } = ( X , d _ { X } , \mu )$ and $\mathcal { V } = ( Y , d _ { Y } , \nu )$ are considered to be equal (denoted $\mathcal { X } \sim \mathcal { V }$ ) if they are isometric, meaning that there is a bijection $\psi : \mathrm { s p t } ( \mu ) \to \mathrm { s p t } ( \nu )$ (where $\operatorname { s p t } ( \mu )$ is the support of $\mu$ ) such that $d _ { X } ( x , y ) { \overset { \cdot } { = } } d _ { Y } ( \psi ( x ) , \psi ( y ) )$ and $\psi _ { \sharp } \mu = \nu$ . Here $\psi _ { \sharp }$ is the push-forward operator, so that $\psi _ { \sharp } \mu = \nu$ is equivalent to imposing $\nu ( A ) = \mu ( \psi ^ { - 1 } ( A ) )$ for any set $A \subset Y$ . For discrete spaces where $\begin{array} { r } { \mu = \sum _ { i } m _ { i } \delta _ { x _ { i } } } \end{array}$ , then one should have $\begin{array} { r } { \nu = \psi _ { \sharp } \mu = \sum _ { i } m _ { i } \delta _ { \psi ( x _ { i } ) } , } \end{array}$ . As highlighted by Mémoli [2011], considering mm-spaces up to isometry is a powerful way to formalize and analyze a wide variety of problems such as matching, regression and classification of distributions of points belonging to different spaces. Most often, the objects of interest come with a natural distance such as an intrinsic or extrinsic distance and the uniform measure is the usual choice to make mm-spaces widely applicable. The key to unlock all these problems is the computation of a distance between mm-spaces up to isometry. So far, existing distances (reviewed below) assume that $\mu$ is a probability distribution, i.e. $\mu ( X ) = 1$ . This constraint is not natural and sometimes problematic for most of the practical applications to machine learning. The goal of this paper is to alleviate this restriction. We define for the first time a class of distances between unbalanced metric measure spaces, these distances being upper-bounded by divergences which can be approximated by an efficient numerical scheme.
18
+
19
+ Csiszár divergences The simplest case is when $X = Y$ and one simply ignores the underlying metric. One can then use Csiszár divergences (or $\varphi$ -divergences), which perform a pointwise comparison (in contrast with optimal transport distances, which perform a displacement comparison). It is defined using an entropy function $\varphi : \mathbb { R } _ { + } \to [ 0 , + \infty ]$ , which is a convex, lower semi-continuous, positive function with $\varphi ( 1 ) = 0$ . The Csiszár $\varphi$ -divergence reads $\begin{array} { r } { \mathbf { D } _ { \varphi } ( \mu | \nu ) \triangleq \int _ { X } \varphi \big ( \frac { \mathrm { d } \mu } { \mathrm { d } \nu } \big ) \mathrm { d } \nu + } \end{array}$ $\varphi _ { \infty } ^ { \prime } \int _ { X } \mathrm { d } \mu ^ { \perp }$ , where $\begin{array} { r } { \mu = \frac { \mathrm { d } \mu } { \mathrm { d } \nu } \nu + \mu ^ { \perp } } \end{array}$ is called the Radon-Nikodym or the Lebesgue decomposition of $\mu$ with respect to $\nu$ and $\begin{array} { r } { \varphi _ { \infty } ^ { \prime } = \operatorname* { l i m } _ { r \to \infty } \varphi ( r ) / r \in \mathbb { R } \cup \{ + \infty \} } \end{array}$ is called the recession constant. This divergence $\mathrm { D } _ { \varphi }$ is convex, positive, 1-homogeneous and weak\* lower-semicontinuous, see Liero et al. [2015] for details. Particular instances of $\varphi$ -divergences are Kullback-Leibler (KL) for $\varphi ( r ) =$ $r \log ( r ) - r + 1$ (note that $\varphi _ { \infty } ^ { \prime } = \infty ,$ ) and Total Variation (TV) for $\varphi ( r ) = | r - 1 |$ .
20
+
21
+ Balanced and unbalanced optimal transport. If the common embedding space $X$ is equipped with a distance $d ( x , y )$ , one can use more elaborated methods such as optimal transport (OT) distances, which are computed by solving convex optimization problems. This type of methods has proven useful for ML problems as diverse as domain adaptation [Courty et al., 2014], supervised learning over histograms [Frogner et al., 2015] and unsupervised learning of generative models [Arjovsky et al., 2017]. In this case, the extension from probability distributions to arbitrary positive measures $( \mu , \nu ) \in$ $\mathcal { M } _ { + } ( X ) ^ { 2 }$ is now well understood and corresponds to the theory of unbalanced OT. Following Liero et al. [2015], Chizat et al. [2018a], a family of unbalanced Wasserstein distances is defined by solving
22
+
23
+ $$
24
+ \mathrm { U W } ( \mu , \nu ) ^ { q } \triangleq \operatorname* { i n f } _ { \pi \in \mathcal { M } ( X \times X ) } \int \lambda ( d ( x , y ) ) \mathrm { d } \pi ( x , y ) + { \mathbf { D } _ { \varphi } } ( \pi _ { 1 } | \mu ) + { \mathbf { D } _ { \varphi } } ( \pi _ { 2 } | \mu ) .
25
+ $$
26
+
27
+ Here $( \pi _ { 1 } , \pi _ { 2 } )$ are the two marginals of the joint distribution $\pi$ , defined by $\pi _ { 1 } ( A ) = \pi ( A \times Y )$ for $A \subset X$ . The mapping $\lambda : \mathbb { R } ^ { + } \mathbb { R }$ and exponent $q \geq 1$ should be chosen wisely to ensure for instance that UW defines a distance (see Section 2.2.1). It is frequent to take $\rho \mathrm { D } _ { \varphi }$ instead of $\mathrm { D } _ { \varphi }$ (i.e. take $\psi = \rho \varphi ,$ ) to adjust the strength of the marginals’ penalization. Balanced OT is retrieved with the convex indicator $\varphi = \iota _ { \{ 1 \} }$ (i.e. $\varphi ( 1 ) = 0$ and $\varphi ( x ) = + \infty$ otherwise) or by taking the limit $\rho + \infty$ , which enforces $\pi _ { 1 } = \mu$ and $\pi _ { 2 } = \nu$ . When $0 < \rho < + \infty$ , unbalanced OT operates a trade-off between transportation and creation of mass, which is crucial to be robust to outliers in the data and to cope with mass variations in the modes of the distributions. For supervised tasks, the value of $\rho$ should be cross-validated to obtain the best performances. Its use is gaining popularity in applications, such as medical imaging registration [Feydy et al., 2019a], videos [Lee et al., 2019], generative learning [Balaji et al., 2020] and gradient flow to train neural networks [Chizat and Bach, 2018, Rotskoff et al., 2019]. Furthermore, existing efficient algorithms for balanced OT extend to this unbalanced problem. In particular Sinkhorn’s iterations, introduced in ML for balanced OT by Cuturi [2013], extend to unbalanced OT [Chizat et al., 2018b, Séjourné et al., 2019], as detailed in Section 3.
28
+
29
+ The Gromov-Wasserstein distance and its applications. The Gromov-Wasserstein (GW) distance [Mémoli, 2011, Sturm, 2012] generalizes the notion of OT to the setting of mm-spaces up to isometries. It replaces the linear cost $\textstyle \int \lambda ( d ) \mathrm { d } \pi$ of OT by a quadratic function. It reads
30
+
31
+ $$
32
+ \mathbf { G W } ( \mathcal { X } , \mathcal { Y } ) ^ { q } \triangleq \operatorname* { m i n } _ { \pi \in \mathcal { M } _ { + } ( X \times Y ) } \left\{ \int \lambda \big ( | d _ { X } ( x , x ^ { \prime } ) - d _ { Y } ( y , y ^ { \prime } ) | \big ) \mathrm { d } \pi ( x , y ) \mathrm { d } \pi ( x ^ { \prime } , y ^ { \prime } ) : \operatorname { \Lambda } _ { \pi _ { 2 } = \nu } ^ { \pi _ { 1 } = \mu } \right\} .
33
+ $$
34
+
35
+ It is proved in Mémoli [2011], Sturm [2012] that GW defines with $\lambda ( t ) = t ^ { q }$ a distance up to isometries on balanced mm-spaces (i.e. the measures are probability distributions). The GW distance is applied successfully in natural language processing for unsupervised translation learning [Grave et al., 2019, Alvarez-Melis and Jaakkola, 2018], in generative learning for objects lying in spaces of different dimensions [Bunne et al., 2019] and to build VAE for graphs [Xu et al., 2020]. It has been adapted for domain adaptation over different spaces [Redko et al., 2020]. It is also a relevant distance to compute barycenters between graphs or shapes [Vayer et al., 2018, Chowdhury and Needham, 2020]. When $( \mathcal { X } , \mathcal { Y } )$ are Euclidean spaces, this distance compares distributions up to rigid isometry, and is closely related (but not equal) to metrics defined by procrustes analysis [Grave et al., 2019, Alvarez-Melis et al., 2019]. The problem (2) is non convex because the quadratic form $\begin{array} { r } { \int \lambda ( | d _ { X } - d _ { Y } | ) \mathrm { d } \pi \otimes \pi } \end{array}$ is not positive in general. It is in fact closely related to quadratic assignment problems [Burkard et al., 1998], which are used for graph matching problems, and are known to be NP-hard in general. Nevertheless, non-convex optimization methods have been shown to be successful in practice to use GW distances for ML problems. This includes for instance alternating minimization [Mémoli, 2011, Redko et al., 2020] and entropic regularization [Peyré et al., 2016, Gold and Rangarajan, 1996].
36
+
37
+ Related works and contributions. The concomitant work of De Ponti and Mondino [2020] extends the $L ^ { p }$ transportation distance defined in Sturm et al. [2006] to unbalanced mm-spaces and studies its geometric properties. This distortion distance is not equivalent to the GW distance, and is more difficult to estimate numerically because it explicitly imposes a triangle inequality constraint in the optimization problem. The work of Chapel et al. [2020] relaxes the GW distance to the unbalanced setting by hybridizing GW with partial OT [Figalli, 2010] for unsupervised labeling. It ressembles one particular setting of our formulation, but with some important differences, detailed in Section 2. Our construction is also connected to partial matching methods, which find numerous applications in graphics and vision [Cosmo et al., 2016]. In particular, Rodola et al. [2012] introduces a mass conservation relaxation of the GW problem.
38
+
39
+ The two main contributions of this paper are the definition of two formulations relaxing the GW distance. The first one is called the Unbalanced Gromov-Wasserstein (UGW) divergence and can be computed efficiently on GPUs. The second one is called the Conic Gromov-Wasserstein distance (CGW). It is proved to be a distance between mm-spaces endowed with positive measures up to isometries, as stated in Theorem 1 which is the main theoretical result of this paper. We also prove in Theorem 1 that UGW can be used as a surrogate upper-bounding CGW. We present those concepts and their properties in Section 2. We also detail in Section 3 an efficient computational scheme for a particular setting of UGW. This method computes an approximate stationary point of a biconvex relaxation of our formulations. Even though it is a lower bound of the original problem, we provide in Theorem 3 conditions ensuring the tightness of this relaxation in many cases of interest. The algorithm leverages the strength of entropic regularization and the Sinkhorn algorithm, namely that it is GPU-friendly and defines smooth loss functions amenable to back-propagation for ML applications. Section 4 provides some numerical experiments to highlight the qualitative behavior of this algorithm and its ability to cope with outliers and mass variations in the modes of the distributions. We illustrate numerically the tightness of the relation between UGW and CGW, showing that UGW is a reasonnable proxy of a distance, at least locally. We provide an application of our divergence in the positive unlabeled learning setting, using domain adaptation data, and display results which are at par or outperform the computable competitor Chapel et al. [2020].
40
+
41
+ # 2 Unbalanced Gromov-Wasserstein formulations
42
+
43
+ We present in this section our two new formulations and their properties. The first one, called UGW, is exploited in Sections 3 and 4 to derive an efficient algorithm used in numerical experiments. The second one, called CGW, defines a distance between mm-spaces up to isometries. Those results build upon the work of Liero et al. [2015], and a summary of the construction of UOT is detailed in Appendix A. In all what follows, we consider complete separable mm-spaces endowed with a metric and a positive measure.
44
+
45
+ # 2.1 The unbalanced Gromov-Wasserstein divergence
46
+
47
+ This new formulation makes use of quadratic $\varphi$ -divergences, defined as $ { \mathbf { D } } _ { \varphi } ^ { \otimes } ( \rho | { \boldsymbol { \nu } } ) \triangleq { \mathbf { D } } _ { \varphi } ( \rho \otimes \rho | { \boldsymbol { \nu } } \otimes { \boldsymbol { \nu } } )$ , where $\rho \otimes \rho \in \mathcal { M } _ { + } ( X ^ { 2 } )$ is the tensor product measure defined by $\mathrm { d } ( \rho \otimes \rho ) ( x , y ) = \mathrm { d } \rho ( x ) \mathrm { d } \rho ( y )$ . Note that $\mathrm { D } _ { \varphi } ^ { \otimes }$ is not a convex function in general.
48
+
49
+ Definition 1 (Unbalanced GW). The Unbalanced Gromov-Wasserstein divergence is defined as $\begin{array} { r } { \mathrm { U G W } ( \mathcal { X } , \mathcal { Y } ) = \operatorname* { i n f } _ { \pi \in \mathcal { M } ^ { + } ( X \times Y ) } \mathcal { L } ( \pi ) \triangleq \mathcal { G } ( \pi ) + { \mathbf { D } } _ { \varphi } ^ { \otimes } ( \pi _ { 1 } | \mu ) + { \mathbf { D } } _ { \varphi } ^ { \otimes } ( \pi _ { 2 } | \nu ) . } \end{array}$ .
50
+
51
+ This definition can be understood as an hybridation between (1) and (2) but with a twist: one needs to use the quadratic divergence $\mathrm { D } _ { \varphi _ { \bullet } } ^ { \otimes }$ in place of $\mathrm { D } _ { \varphi }$ . To the best of our knowledge, it is the first time such quadratic divergences are being used and studied. In the TV case, this is the most important distinction between UGW and partial-GW [Chapel et al., 2020]. Note also that the balanced GW distance (2) is recovered as a particular case when using $\varphi = \iota _ { \{ 1 \} }$ or by letting $\rho + \infty$ for an entropy $\psi = \rho \varphi$ .
52
+
53
+ Using quadratic divergences results in UGW being 2-homogeneous: for $\theta \geq 0$ , writing $( \mathscr { X } _ { \theta } , \mathscr { y } _ { \theta } )$ equiped with $( \theta \mu , \theta \nu )$ , one has $\theta ^ { - 2 } \mathrm { U G W } ( \mathcal { X } _ { \theta } , \mathcal { Y } _ { \theta } ) \bar { \ } = \mathrm { U G W } ( \mathcal { X } , \mathcal { Y } )$ . When using non tensorized $\varphi$ -divergences, the resulting unbalanced Gromov-Wassertein functional between $\mathcal { X } _ { \theta }$ and $\mathcal { { D } } _ { \theta }$ have very different and inconsistent behaviors when $\theta 0$ and $\theta \to + \infty$ . Indeed, once normalized by $\theta ^ { - \bar { 2 } }$ and $\theta ^ { - 1 }$ , one obtains respectively balanced GW and a Hellinger-type distance. Using tensorized divergences ensures that the behavior does not depends on $\theta$ . It is also fundamental to connect UGW with our distance CGW, see Theorem 1 and Appendix B.
54
+
55
+ We first prove the existence of optimal plans $\pi$ minimizing $\mathcal { L }$ , which holds for the three key settings of Section 2.2.1, namely for KL, TV, and for compact metric spaces (such as finite pointclouds and graphs). All proofs are deferred in Appendix B.
56
+
57
+ Proposition 1 (Existence of minimizers). We assume that $( X , Y )$ are compact and that either $( i ) \varphi$ superlinear, i.e $\varphi _ { \infty } ^ { \prime } = \infty$ , or (ii) $\lambda$ has compact sublevel sets in $\mathbb { R } _ { + }$ and $2 \varphi _ { \infty } ^ { \prime } + \operatorname* { i n f } \lambda > 0$ . Then there exists $\pi \in { \mathcal { M } } _ { + } ( X \times Y )$ such that $\mathrm { U G } \mathrm { \bar { w } } ( \mathcal { X } , \mathcal { Y } ) = \mathcal { L } ( \pi )$ .
58
+
59
+ The following proposition ensures that the functional UGW can be used to compare mm-spaces.
60
+
61
+ Proposition 2 (Definiteness of UGW). Assume that $\varphi ^ { - 1 } ( \{ 0 \} ) = \{ 1 \}$ and $\lambda ^ { - 1 } ( \{ 0 \} ) = \{ 0 \}$ . Then $\mathrm { U G W } ( \mathcal { X } , \mathcal { Y } ) \ge 0$ and is 0 if and only if $\mathcal { X } \sim \mathcal { V }$ .
62
+
63
+ We end this section with a reformulation of UGW which is important to make the connection with the second formulation CGW of the following section. It splits UGW into two parts: the term $\varphi ( 0 ) ( | ( \mu \otimes \mu ) ^ { \perp } | + | ( \nu \otimes \nu ) ^ { \perp } | )$ accounts for the pure creation/destruction of mass and a new transport cost $L _ { c }$ accounts for the remaining part (partial/pure transport and partial creation/destruction of mass).
64
+
65
+ Lemma 1. Defining $L _ { c } ( a , b ) \triangleq c + a \varphi ( 1 / a ) + b \varphi ( 1 / b ) \operatorname { \mathrm { , } }$ , and writing $\begin{array} { r } { ( f \triangleq \frac { \mathrm { d } \mu } { \mathrm { d } \pi _ { 1 } } , g \triangleq \frac { \mathrm { d } \nu } { \mathrm { d } \pi _ { 2 } } ) } \end{array}$ the Lebesgue densities of $( \mu , \nu )$ w.r.t. $( \pi _ { 1 } , \pi _ { 2 } )$ such that $\mu = f \pi _ { 1 } + \mu ^ { \perp }$ and $\nu = g \pi _ { 2 } + \nu ^ { \perp }$ , one has
66
+
67
+ $$
68
+ \mathcal { L } ( \pi ) = \int _ { X ^ { 2 } \times Y ^ { 2 } } L _ { \lambda ( | d _ { X } - d _ { Y } | ) } ( f \otimes f , g \otimes g ) \mathrm { d } \pi \mathrm { d } \pi + \varphi ( 0 ) ( | ( \mu \otimes \mu ) ^ { \perp } | + | ( \nu \otimes \nu ) ^ { \perp } | ) .
69
+ $$
70
+
71
+ Proof. Write $\begin{array} { r } { f = \frac { \mathrm { d } \mu } { \mathrm { d } \pi _ { 1 } } } \end{array}$ and $\begin{array} { r } { g = \frac { \mathrm { d } \nu } { \mathrm { d } \pi _ { 2 } } } \end{array}$ The Lebesgue decompositions read $\mu \otimes \mu = ( f \otimes f ) \pi _ { 1 } \otimes$ $\pi _ { 1 } + ( \mu \otimes \mu ) ^ { \perp }$ and $\nu \otimes \nu = ( g \otimes g ) \pi _ { 2 } \otimes \pi _ { 2 } + ( \nu \otimes \nu ) ^ { \perp }$ , thanks to the tensorized structure of the decomposed plans. To prove Equation (3), we need to define the reverse entropy Liero et al. [2015] such that $\mathrm { D } _ { \varphi } ( \alpha | \mu ) = \mathrm { D } _ { \psi } ( \mu | \alpha )$ , where $\psi ( x ) \triangleq x \varphi ( { \frac { 1 } { x } } )$ is also an entropy function satisfying $\psi _ { \infty } ^ { \prime } = \varphi ( 0 )$ . One then has
72
+
73
+ $$
74
+ \begin{array} { r } { \mathcal { L } ( \pi ) = \displaystyle \int _ { X ^ { 2 } \times Y ^ { 2 } } \lambda ( \Gamma ) \mathrm { d } \pi \mathrm { d } \pi + \mathbf { D } _ { \varphi } ^ { \otimes } ( \pi _ { 1 } | \mu ) + \mathbf { D } _ { \varphi } ^ { \otimes } ( \pi _ { 2 } | \nu ) } \\ { = \displaystyle \int _ { X ^ { 2 } \times Y ^ { 2 } } \lambda ( \Gamma ) \mathrm { d } \pi \mathrm { d } \pi + \mathbf { D } _ { \psi } ^ { \otimes } ( \mu | \pi _ { 1 } ) + \mathbf { D } _ { \psi } ^ { \otimes } ( \nu | \pi _ { 2 } ) } \end{array}
75
+ $$
76
+
77
+ $$
78
+ \begin{array} { l } { \displaystyle \mathcal { L } ( \pi ) = \int _ { X ^ { 2 } \times Y ^ { 2 } } \lambda ( \Gamma ) \mathrm { d } \pi \mathrm { d } \pi + \int _ { X ^ { 2 } } \psi ( f \otimes f ) \mathrm { d } \pi _ { 1 } \mathrm { d } \pi _ { 1 } + \int _ { Y ^ { 2 } } \psi ( g \otimes g ) \mathrm { d } \pi _ { 2 } \mathrm { d } \pi _ { 2 } } \\ { \displaystyle \qquad + \varphi ( 0 ) ( | ( \mu \otimes \mu ) ^ { \perp } | + | ( \nu \otimes \nu ) ^ { \perp } | ) } \\ { \displaystyle = \int _ { X ^ { 2 } \times Y ^ { 2 } } L _ { \lambda ( \Gamma ) } ( f \otimes f , g \otimes g ) \mathrm { d } \pi \mathrm { d } \pi + \varphi ( 0 ) ( | ( \mu \otimes \mu ) ^ { \perp } | + | ( \nu \otimes \nu ) ^ { \perp } | ) . } \end{array}
79
+ $$
80
+
81
+ Using the definition of $\psi$ in $L _ { c }$ ends the proof.
82
+
83
+ # 2.2 The conic Gromov-Wasserstein distance
84
+
85
+ We introduce a second “conic” formulation of unbalanced GW, which is connected to UGW, and whose construction is inspired by the conic formulation of UOT (see Appendix A for an overview).
86
+
87
+ # 2.2.1 Background on cone sets and distances
88
+
89
+ The conic formulation lifts a point $x \in X$ to a couple $( x , r ) \in X \times \mathbb { R } ^ { + }$ where $r$ encodes some (power of a) mass. Then we seek optimal transport plans defined over ${ \mathfrak { C } } [ X ] \triangleq X \times \mathbb { R } _ { + } / ( X \times \{ 0 \} )$ , where coordinates $( x , r = 0 )$ ) with no mass are merged into a single point $\circ _ { X }$ called the apex of the cone. In the sequel, points of $X \times \mathbb { R } _ { + }$ are noted $( x , r )$ , while $[ x , r ]$ are quotiented points of ${ \mathfrak { C } } [ X ]$ .
90
+
91
+ While transport plans depend on variables $\left( [ x , r ] , [ y , s ] \right)$ and $( [ x ^ { \prime } , r ^ { \prime } ] , [ y ^ { \prime } , s ^ { \prime } ] )$ in ${ \mathfrak { C } } [ X ] \times { \mathfrak { C } } [ Y ]$ , the transportation cost involved in our conic formulation only makes use of the 2-D cone ${ \mathfrak { C } } [ \mathbb { R } _ { + } ]$ over $\mathbb { R } _ { + }$ endowed with the distance $\left| u - v \right|$ (note that any other distance on $\mathbb { R }$ could be used as well). More specifically, we consider coordinates of the form $( [ u , a ] , [ v , b ] ) = ( [ d _ { X } ( x , x ^ { \prime } ) , r r ^ { \prime } ] , [ d _ { Y } ( y , y ^ { \prime } ) , s s ^ { \bar { \prime } } ] ) \in$ ${ \mathfrak { C } } [ \mathbb { R } _ { + } ] \times { \mathfrak { C } } [ \mathbb { R } _ { + } ]$ . Thus we now describe conic discrepancies $\mathcal { D }$ on ${ \mathfrak { C } } [ \mathbb { R } _ { + } ]$ , which are defined for $( p , q ) \geq 1$ as ${ \mathcal { D } } ( [ u , a ] , [ v , b ] ) ^ { q } \triangleq H _ { \lambda ( \vert u - v \vert ) } ( a ^ { p } , b ^ { p } )$ , where $\begin{array} { r } { H _ { c } ( a ^ { p } , b ^ { p } ) \triangleq \operatorname* { i n f } _ { \theta \geq 0 } \theta L _ { c } ( \frac { a ^ { p } } { \theta } , \frac { b ^ { p } } { \theta } ) } \end{array}$ is the perspective transform of $L _ { c }$ introduced in Lemma 1. The intuition underpinning the definition of this cost is that the perspective transform accounts for the possibility to rescale a transport plan $\pi$ by a scalar $\theta$ but the scaling is performed pointwise instead of globally. In general $\mathcal { D }$ is not a distance, but it is always definite as stated by this result proved in Appendix A.
92
+
93
+ Proposition 3. Assume $\lambda ^ { - 1 } ( \{ 0 \} ) = \{ 0 \}$ , $\varphi ^ { - 1 } ( \{ 0 \} ) = \{ 1 \}$ and $\varphi$ is coercive. Then $\mathcal { D }$ is definite on $\mathfrak { C } [ \mathbb { R } ^ { + } ] \mathrm { . }$ , i.e. $\mathcal { D } ( [ u , a ] , [ v , b ] ) = \mathrm { \dot { 0 } }$ if and only if $\overset { \prime } { a } = b = 0$ ) or ${ a = b }$ and $u = v$ ).
94
+
95
+ Of particular interest are those $\varphi$ where $\mathcal { D }$ is a distance, which necessitates a careful choice of $\lambda , p$ and $q$ . We now detail three examples where this is the case.
96
+
97
+ Gaussian Hellinger distance (GH). When $\mathrm { D } _ { \varphi } = \mathrm { K L }$ , $\lambda ( t ) = t ^ { 2 }$ and $q = p = 2$ , then one has $\mathcal { D } ( [ u , a ] , [ v , b ] ) ^ { 2 } = a ^ { 2 } + b ^ { 2 } - 2 a b e ^ { - | u - v | / 2 }$ . This cone distance [Burago et al., 2001] is further generalized by De Ponti [2019] who shows that $\mathcal { D }$ is a distance for power entropies $\begin{array} { r } { \varphi ( s ) = \frac { s ^ { p } - p ( s - 1 ) - 1 } { p ( p - 1 ) } } \end{array}$ if $p \geq 1$ (the case $p = 1$ corresponding to $\mathrm { D } _ { \varphi } = \mathrm { K L }$ ).
98
+
99
+ Hellinger-Kantorovich (HK) $/$ Wasserstein-Fisher-Rao distance (WFR). When $\mathrm { D } _ { \varphi } ~ = ~ \mathrm { K L }$ , $\begin{array} { r } { \lambda ( t ) = - \log \cos ^ { 2 } ( t \wedge \frac { \pi } { 2 } ) } \end{array}$ and $q = p = 2$ , then one has $\begin{array} { r } { \mathcal { D } ( [ u , a ] , [ v , b ] ) ^ { 2 } = a ^ { 2 } + b ^ { 2 } - 2 a b \cos ( \frac { \pi } { 2 } \wedge | u - } \end{array}$ $v | ,$ . This construction, which might seem peculiar, corresponds to the one used to make unbalanced OT a geodesic distance, as detailed in [Liero et al., 2015, Chizat et al., 2018a].
100
+
101
+ Partial optimal transport distance (PT). When $\mathbf { D } _ { \varphi } = \mathrm { T V }$ , $\lambda ( t ) = t ^ { q }$ , $q \geq 1$ and $p = 1$ , then ${ \mathcal { D } } ( [ u , a ] , { \bar { [ } } v , b ] ) ^ { q } = a + { \bar { b } } - ( a \wedge b ) ( 2 - | u - v | ^ { q } ) _ { + }$ defines a cone distance [Chizat et al., 2018a].
102
+
103
+ # 2.2.2 Definitions and properties
104
+
105
+ The conic formulation consists in solving a GW problem on the cone, with the addition of two linear constraints. Informally speaking, $L _ { c }$ from Lemma 1 becomes $\mathcal { D }$ , the term $( | ( \mu \otimes \mu ) ^ { \perp } | + | ( \nu \otimes \nu ) ^ { \perp } | )$ is taken into account by the constraints (5) below, and the variables $( f , g )$ are replaced by $( r ^ { p } , s ^ { p } )$ . It reads $\begin{array} { r } { \mathrm { C G W } ( \mathcal { X } , \mathcal { Y } ) \triangleq \operatorname* { i n f } _ { \alpha \in \mathcal { U } _ { p } ( \mu , \nu ) } \mathcal { H } ( \alpha ) } \end{array}$ where
106
+
107
+ $$
108
+ \mathcal { H } ( \alpha ) \triangleq \int \mathcal { D } ( [ d _ { X } ( x , x ^ { \prime } ) , r r ^ { \prime } ] , [ d _ { Y } ( y , y ^ { \prime } ) , s s ^ { \prime } ] ) ^ { q } \mathrm { d } \alpha ( [ x , r ] , [ y , s ] ) \mathrm { d } \alpha ( [ x ^ { \prime } , r ^ { \prime } ] , [ y ^ { \prime } , s ^ { \prime } ] ) ,
109
+ $$
110
+
111
+ and $\mathcal { U } _ { p } ( \mu , \nu )$ is defined as the set
112
+
113
+ $$
114
+ \mathcal { U } _ { p } ( \mu , \nu ) \triangleq \left\{ \alpha \in \mathcal { M } _ { + } ( \mathfrak { C } [ X ] \times \mathfrak { C } [ Y ] ) , \ \int _ { \mathbb { R } _ { + } } r ^ { p } \mathrm { d } \alpha _ { 1 } ( \cdot , r ) = \mu , \ \int _ { \mathbb { R } _ { + } } s ^ { p } \mathrm { d } \alpha _ { 2 } ( \cdot , s ) = \nu \right\} .
115
+ $$
116
+
117
+ It is similar to the conic formulation of UW, see Appendix A. Note that similarly to the GW formulation (2) – and in sharp contrast with the conic formulation of UW – here the transport plans are defined on the cone ${ \mathfrak { C } } [ X ] ^ { - } \times { \mathfrak { C } } [ Y ]$ but the cost $\mathcal { D }$ is a distance on ${ \mathfrak { C } } [ \mathbb { R } _ { + } ]$ .
118
+
119
+ We present now the main contributions of this paper, proved in Appendix C. We state that CGW defines a distance under conditions that hold for the settings of Section 2.2.1, and that it is upperbounded by UGW. The divergence UGW can be approximated with efficient numerical schemes as detailed in Section 3.
120
+
121
+ Theorem 1. (i) The divergence CGW is symmetric, positive and definite up to isometries. (ii) If $\mathcal { D }$ is a distance on ${ \mathfrak { C } } [ \mathbb { R } _ { + } ]$ , then $\mathrm { C G W ^ { 1 / \boldsymbol { q } } }$ is a distance on the set of mm-spaces up to isometries. (iii) For any $( \mathbf { D } _ { \varphi } , \lambda , p , q )$ with associated cost $\mathcal { D }$ on the cone, one has $\mathrm { U G W } \geq \mathrm { C G W }$ .
122
+
123
+ # 3 Algorithms
124
+
125
+ We focus in this section on the numerical computation of the upper bound UGW using a bi-convex relaxation and derive an alternate minimization scheme coupled with entropic regularization. We also propose to approximate CGW by doing a similar alternate minimization, as detailed in Appendix E. We provide guarantees of tightness on the bi-convex relaxation for CGW (see Theorem 3). The computation of the distance CGW is heavy in practice because it requires an optimization over a lifted conic space, which needs to be discretized. Thus it does not scale to large problem for CGW, but allows to explore numerically how tight is the upper bound $\mathrm { U G W } \geq \mathrm { C G W }$ , see Section 4. The algorithm for UGW is presented on arbitrary measures, the special case of discrete measures being a particular case. The discretized formulas and algorithms are detailed in Appendix D, see also Chizat et al. [2018b], Peyré et al. [2016]. All implementations are available at https: //github.com/thibsej/unbalanced_gromov_wasserstein, and installable in Python with the command pip install unbalancedgw.
126
+
127
+ # 3.1 Bi-convex relaxation and tightness
128
+
129
+ In order to derive a simple numerical approximation scheme, following Mémoli [2011], we introduce a lower bound obtained by introducing two transportation plans. To further accelerate the method and enable GPU-friendly iterations, similarly to Gold et al. [1996], Solomon et al. [2016], we consider an entropic regularization. It reads, for any $\varepsilon \geq 0$ ,
130
+
131
+ $$
132
+ \begin{array} { r l r } { \mathrm { U G W } _ { \varepsilon } ( X , y ) \triangleq \underset { \pi } { \operatorname { i n f } } \mathscr { L } ( \pi ) + \varepsilon \mathrm { K L } ^ { \otimes } ( \pi | \mu \otimes \nu ) \geq \underset { \pi , \gamma } { \operatorname { i n f } } \mathscr { F } ( \pi , \gamma ) + \varepsilon \mathrm { K L } ( \pi \otimes \gamma | ( \mu \otimes \nu ) ^ { \otimes 2 } ) , } & { } & { ( 6 ) } \\ { \mathrm { a n d } } & { \mathscr { F } ( \pi , \gamma ) \triangleq \displaystyle \int _ { X ^ { 2 } \times Y ^ { 2 } } \lambda ( | d _ { X } - d _ { Y } | ) \mathrm { d } \pi \otimes \gamma + \mathrm { D } _ { \varphi } ( \pi _ { 1 } \otimes \gamma _ { 1 } | \mu \otimes \mu ) + \mathrm { D } _ { \varphi } ( \pi _ { 2 } \otimes \gamma _ { 2 } | \nu \otimes \nu ) , } & { } & \end{array}
133
+ $$
134
+
135
+ where $( \gamma _ { 1 } , \gamma _ { 2 } )$ denote the marginals of the plan $\gamma$ . In the sequel we write $\mathcal { F } _ { \varepsilon } = \mathcal { F } + \varepsilon \mathrm { K L } ^ { \otimes }$ . Note that in contrast to the entropic regularization of GW Peyré et al. [2016], here we use a tensorized entropy to maintain the overall homogeneity of the energy. A simple method to approximate this lower bound is to perform an alternate minimization on $\pi$ and $\gamma$ , which is known to converge for smooth $\varphi$ to a stationary point since the coupling term in the functional is smooth [Tseng, 2001]. Note that if $\pi \otimes \gamma$ is optimal then so is $\left( s \pi \right) \bar { \otimes } \left( { \textstyle { \frac { 1 } { s } } } \bar { \gamma } \right)$ with $s \geq 0$ . Thus without loss of generality we can optimize under the constraint $m ( \pi ) = m ( \gamma )$ by setting $s = \sqrt { m ( \gamma ) / m ( \pi ) }$ .
136
+
137
+ We now discuss the tightness of the bi-convex relaxation by generalizing a result of Konno. We first present a result which applies to general quadratic assignment problems, then state its application to our setting.
138
+
139
+ Theorem 2 (Tight relaxation). Let $B$ a Banach space, let $f : B \mapsto \mathbb { R } \cup \{ + \infty \}$ be a function and let $\mathcal { L } : C \subset B \mapsto \mathbb { R }$ the function defined on the convex set $C \subset B$ by $\begin{array} { r } { \mathcal { L } ( { \boldsymbol \pi } ) = \frac { 1 } { 2 } \langle { \boldsymbol \pi } , k ( { \boldsymbol \pi } ) \rangle + 2 f ( { \boldsymbol \pi } ) } \end{array}$ where $k$ is a symmetric bilinear map which is negative (not necessarily definite) on $\Delta C \triangleq { \mathrm { S p a n } } ( \{ \pi -$ $\gamma ; ( \pi , \overset { \cdot } { \gamma } ) \in C \}$ ), that is, for any $z \in \Delta C$ , $\langle z , k z \rangle \leq 0$ . Assume that there exists $\pi _ { 0 } \in C$ such that $\mathcal { L } ( \pi _ { 0 } ) < + \infty$ , and define $\mathcal { F } ( \pi , \gamma ) \triangleq \frac { _ 1 } { ^ 2 } \langle \pi , k ( \gamma ) \rangle + f ( \pi ) + f ( \gamma )$ . Then, for any $( \pi _ { * } , \gamma _ { * } ) \in$ arg min $\mathcal { F } ( \pi , \gamma )$ , we have $\mathcal { F } ( \pi _ { * } , \pi _ { * } ) = \mathcal { F } ( \bar { \gamma _ { * } } , \gamma _ { * } ) = \mathcal { F } ( \pi _ { * } , \gamma _ { * } )$ . Moreover, if one assumes either that $k$ is a definite kernel or $f$ is strictly convex, one gets $\pi _ { * } = \gamma _ { * }$ .
140
+
141
+ The above Theorem 2 is proved in Appendix D. As an application, we now state our tightness result for $\mathrm { G W } _ { \varepsilon }$ and CGW. In those settings the optimizers of the bi-convex relaxation are also optimal for the original problem.
142
+
143
+ Theorem 3. For $G W _ { \varepsilon }$ with $\varepsilon \geq 0$ or for CGW, assume that $\lambda ( t ) = t ^ { 2 }$ and that $( d _ { X } , d _ { Y } )$ are both conditionnally negative (or conditionally positive) kernels. Then the bi-convex relaxation of both problems is tight.
144
+
145
+ Proof. The proof for CGW is detailed in Appendix E, we prove the tightness for $\mathrm { G W } _ { \varepsilon }$ . When $\lambda ( t ) =$ $t ^ { 2 }$ the kernel $k = \lambda ( | d _ { X } - d _ { Y } | )$ is conditionally negative on the set $\{ ( \pi , \gamma ) , \ \pi _ { 1 } = \gamma _ { 1 }$ and $\pi _ { 2 } = \gamma _ { 2 } \}$ , i.e. we have $\langle ( \pi - \gamma ) \rangle$ , $k ( \pi - \gamma ) \rangle \leq 0$ (see Maron and Lipman [2018]). For $\mathrm { G W } _ { \varepsilon }$ one has $\pi _ { 1 } = \gamma _ { 1 } = \mu$ and $\pi _ { 2 } = \gamma _ { 2 } = \nu$ thanks to the constraints on marginals. Thus the kernel is negative semi-definite and the proof of Theorem 2 applies, hence the tightness of the relaxation. □
146
+
147
+ Konno’s result Konno [1976] applies for unregularized $\mathit { \Omega } ( \varepsilon = 0 ) ,$ ), Balanced-GW. The novelty of Theorem 3 is its extension to both $\mathrm { G W } _ { \varepsilon }$ and CGW. So far it is an open question whether the relaxation is tight or not for $\mathrm { U G W } _ { \varepsilon }$ , because the above proof no longer holds. Note that in all our numerical simulations, our solvers always found solutions of $\mathrm { U G W } _ { \varepsilon }$ such that $\pi = \gamma$ when $| d _ { X } - d _ { Y } | ^ { 2 }$ is conditonally negative. The property that the kernel $| d _ { X } - d _ { Y } | ^ { 2 }$ is negative does not hold in general (e.g. for graph geodesic distances) and the tightness of the relaxation remains open in this setting. We know from [Maron and Lipman, 2018, Theorem 1] that it is conditionally negative semi-definite when both $( d _ { X } , d _ { Y } )$ are conditionally negative kernels. Examples of distances which are negative kernels are tree metrics in the case of graphs, as well as Euclidean, spherical and hyperbolic distances over their respective manifolds Feragen et al. [2015]. In practice, when $\varepsilon$ is small, we observed in the indefinite setting that the relaxation outputs more frequently spurious minima than in the negative semi-definite setting.
148
+
149
+ # 3.2 Alternate Sinkhorn minimization
150
+
151
+ Minimizing the lower bound (6) with respect to either $\pi$ or $\gamma$ is non-trivial for an arbitrary $\varphi$ . We restrict our attention to the Kullback-Leibler case $\mathrm { D } _ { \varphi } = \rho \mathrm { K L }$ with $\rho > 0$ , which can be addressed by solving a regularized and convex unbalanced problem as studied in Chizat et al. [2018b], Séjourné et al. [2019]. It is explained in the following proposition.
152
+
153
+ Proposition 4. For a fixed $\gamma _ { i }$ , the optimal $\pi \in \arg \operatorname* { m i n } _ { \pi } \mathcal { F } ( \pi , \gamma ) + \varepsilon \mathrm { K L } ( \pi \otimes \gamma | ( \mu \otimes \nu ) ^ { \otimes 2 } )$ solves
154
+
155
+ $$
156
+ \operatorname* { m i n } _ { \pi } \int c _ { \gamma } ^ { \varepsilon } ( x , y ) \mathrm { d } \pi ( x , y ) + \rho m ( \gamma ) \mathrm { K L } ( \pi _ { 1 } | \mu ) + \rho m ( \gamma ) \mathrm { K L } ( \pi _ { 2 } | \nu ) + \varepsilon m ( \gamma ) \mathrm { K L } ( \pi | \mu \otimes \nu ) ,
157
+ $$
158
+
159
+ where $m ( \gamma ) \triangleq \gamma ( X \times Y )$ is the mass of $\gamma _ { i }$ , and where we define the cost associated to $\gamma$ as
160
+
161
+ $$
162
+ \varepsilon _ { \gamma } ^ { \varepsilon } ( x , y ) \triangleq \int \lambda ( | d x ( x , \cdot ) - d _ { Y } ( y , \cdot ) | ) \mathrm { d } \gamma + \rho \int \log ( \frac { \mathrm { d } \gamma _ { 1 } } { \mathrm { d } \mu } ) \mathrm { d } \gamma _ { 1 } + \rho \int \log ( \frac { \mathrm { d } \gamma _ { 2 } } { \mathrm { d } \nu } ) \mathrm { d } \gamma _ { 2 } + \varepsilon \int \log ( \frac { \mathrm { d } \gamma } { \mathrm { d } \mu \mathrm { d } \nu } ) \mathrm { d } \gamma .
163
+ $$
164
+
165
+ Computing the cost $c _ { \gamma } ^ { \varepsilon }$ for spaces $X$ and $Y$ of $n$ points has in general a cost ${ \dot { O } } ( n ^ { 4 } )$ in time and memory. However, as explained for instance in Peyré et al. [2016], for the special case $\lambda ( t ) = t ^ { 2 }$ , this cost is reduced to $O ( n ^ { 3 } )$ in time and ${ \dot { O } } ( n ^ { 2 } )$ in memory. This is the setting we consider in the numerical simulations. This makes the method applicable for scales of the order of $1 0 ^ { 4 }$ points. For larger datasets one should use approximation schemes such as hierarchical approaches [Xu et al., 2019] or Nyström compression of the kernel [Altschuler et al., 2018].
166
+
167
+ The resulting alternate minimization method is detailed in Algorithm 1, see Appendix D for a discretized version. It uses the unbalanced Sinkhorn algorithm of Chizat et al. [2018b], Séjourné et al. [2019] as subiterations and takes $\pi = \mu \otimes \nu / \sqrt { m ( \mu ) m ( \nu ) }$ to ini
168
+
169
+ $$
170
+ \overline { { \mathbf { A l g o r i t h m 1 - U G W } ( \mathcal { X } , \mathcal { V } , \rho , \varepsilon ) } }
171
+ $$
172
+
173
+ Input: mm-spaces $( \mathcal { X } , \mathcal { Y } )$ , relax. $\rho$ , regul. $\varepsilon$
174
+ Output: $\pi , \gamma$ solving (6) Init. $\pi = \gamma = \mu \otimes \nu / { \sqrt { m ( \mu ) m ( \nu ) } } , g =$ $g = 0$ . while $( \pi , \gamma )$ has not converged do Update $\pi \gamma$ , then $c \gets c _ { \pi } ^ { \varepsilon } , \tilde { \rho } \gets m ( \pi ) \rho , \tilde { \varepsilon } \gets m ( \pi ) \varepsilon$ while $( f , g )$ has not converged do $\begin{array} { r } { f \gets - \frac { \tilde { \varepsilon } \tilde { \rho } } { \tilde { \varepsilon } + \tilde { \rho } } \log { \int e ^ { ( g ( y ) - c ( \cdot , y ) ) / \tilde { \varepsilon } } \mathrm { d } \nu ( y ) } } \end{array}$ $\begin{array} { r } { g \gets - \frac { \tilde { \varepsilon } \tilde { \rho } } { \tilde { \varepsilon } + \tilde { \rho } } \log \int e ^ { ( f ( x ) - c ( x , \cdot ) ) / \tilde { \varepsilon } } \mathrm { d } \mu ( x ) } \end{array}$ end while Upd. $\begin{array} { l } { { \widehat { \gamma ( x , y ) } { } e ^ { \frac { f ( x ) + g ( y ) - c ( x , y ) } { \widehat { \varepsilon } } } \mu ( x ) \nu ( y ) } } \end{array}$ Rescale $\gamma \sqrt { m ( \pi ) / m ( \gamma ) } \gamma$ end while Return $( \pi , \gamma )$ .
175
+
176
+ tialize the updates. This Sinkhorn algorithm operates over a pair of continuous functions (so-called
177
+
178
+ Kantorovitch potentials) $f ( x )$ and $g ( y )$ . For discrete spaces $X$ and $Y$ of size $n$ , these functions are stored in vectors of size $n$ , and that integral involved in the updates becomes a sum. Each iteration of Sinkhorn thus has a cost $n ^ { 2 }$ , and all the involved operation can be efficiently mapped to parallelizable GPU routines as detailed in Chizat et al. [2018b], Séjourné et al. [2019]. Another advantage of using an unbalanced Sinkhorn algorithm is its complexity $O ( n ^ { 2 } / \varepsilon )$ to compute an $\varepsilon$ -approximation, as stated in Pham et al. [2020], which should be compared to ${ \cal O } ( n ^ { 2 } / \varepsilon ^ { 2 } )$ operations for balanced Sinkhorn.
179
+
180
+ Note also that balanced GW is recovered as a special case when setting $\rho \to + \infty$ , so that $\tilde { \rho } / ( \tilde { \varepsilon } +$ $\tilde { \rho } ) 1$ should be used in the iterations. In order to speed up Sinkhorn inner-loops, especially for small values of $\varepsilon$ , one can use linear extrapolation [Thibault et al., 2017] or non-linear Anderson acceleration [Anderson, 1965, Scieur et al., 2016].
181
+
182
+ There is an extra scaling step after computing $\gamma$ involving the mass $m ( \pi )$ . It corresponds to the scaling $s$ of $\pi \otimes \gamma$ such that $m ( \pi ) = m ( \gamma )$ , and we observe that this scaling is key not only to impose this mass equality but also to stabilize the algorithm. Otherwise we observed that $m ( \gamma ) < 1 < \bar { m } ( \pi )$ and underflows whenever $m ( \gamma ) \to 0$ and $\bar { m ( \pi ) } \to \infty$ .
183
+
184
+ # 4 Numerical experiments
185
+
186
+ This section presents simulations on synthetic examples to highlight the qualitative behavior of UGW and the tightness of the bound $\mathrm { U G W } \geq \mathrm { C G W }$ . Other illustrations on UGW are available in Appendix E. We end the section with a learning application of UGW in a positive-unlabeled setting, using domain adaptation data so as to compare with PGW Chapel et al. [2020]. In the synthetic experiments, $\mu$ and $\nu$ are probability distributions, which allows us to compare GW with UGW.
187
+
188
+ Robustness to imbalanced classes. In this first example, we take $X = \mathbb { R } ^ { 3 }$ , $Y = \mathbb { R } ^ { 2 }$ and consider $\mathcal { E } _ { 2 } , \mathcal { E } _ { 3 }$ , $\mathcal { C }$ and $s$ to be uniform distributions on a 2D and 3D ellipse, a square and a sphere. We consider mm-spaces of different dimensions to emphasize the ability of (U)GW to compare different spaces. Figure 1 contrasts the transportation plan obtained by GW and UGW for a fixed $\mu = 0 . 5 \mathcal { E } _ { 3 } + 0 . 5 \mathcal { S }$ and $\nu$ obtained using two different mixtures of ${ \mathcal { E } } _ { 2 }$ and $\mathcal { C }$ . The black segments show the largest entries of the transportation matrix $\pi$ , for a sub-sampled set of points (to ease visibility), thus effectively displaying the matching induced by the plan. Furthermore, the width of the dots are scaled according to the mass of the marginals $\pi _ { 1 } \approx \mu$ and $\pi _ { 2 } \approx \nu$ , i.e. the smaller the point, the smaller is the amount of transported mass. This figure shows that the exact conservation of mass imposed by GW leads to a poor geometrical matching of the shapes which have different global mass. As this should be expected, UGW recovers coherent matchings. We suspect the alternate minimization algorithm is able to find the global minimum in these cases.
189
+
190
+ ![](images/f47db5fb8f3450982a0a66e1916d139eb5e73fda2c541eaadd7d5cfe24ea392e.jpg)
191
+ Figure 1: GW vs. UGW transportation plan, using $\nu = 0 . 3 \mathcal { E } _ { 2 } { + } 0 . 7 \mathcal { C }$ on the left, and $\nu = 0 . 7 \mathcal { E } _ { 2 } \mathrm { + } 0 . 3 \mathcal { C }$ on the right. The 2D mm-spaces is lifted into $\mathbb { R } ^ { 3 }$ by padding the third coordinate to zero.
192
+
193
+ Tightness of the bound $\mathbf { C G W } { \leq } \mathbf { U G W }$ We propose to approximate CGW by doing a similar alternate minimization as for UGW, as detailed in Appendix E. This numerical scheme does not scale to large problems, but allows us to explore numerically how tight is the upper bound $\mathrm { U G W } \geq \mathrm { C G W }$ Figure 2 highlights the fact that in Euclidean space $\dot { X } = \dot { Y } = \mathbb { R } ^ { d }$ , this bound seems to be tight when the two measures are sufficiently close. We consider discrete measures $\begin{array} { r } { \mu = \frac { 1 } { n } \sum _ { i } \delta _ { x _ { i } } } \end{array}$ in $X = Y = \mathbb { R } ^ { d }$ and $\begin{array} { r } { \nu _ { t } = \frac { 1 } { n } \sum _ { i } \delta _ { y _ { i } } } \end{array}$ where $y _ { i } = x _ { i } + t \Delta _ { i }$ where $\Delta _ { i }$ are random perturbations and denote $( \mathcal { X } , \mathcal { Y } _ { t } )$ the two mm-spaces associated to the Euclidean distance. As $t 0$ , $\mu$ and $\nu _ { t }$ get closer, we observe numerically that $\mathrm { U G W } \approx \mathrm { C G W }$ . Figure 3 considers random points $( x _ { i } ) _ { i }$ and $( y _ { i } ) _ { i }$ and displays the histograms of the ratio CGW/UGW for $n = 3$ . This shows that while the bound $\mathrm { C G W } \leq \mathrm { U G W }$ seems not tight, the ratio appears to be bounded even for points not being close. This numerical experiment suggests that UGW and CGW are locally equivalent and that UGW is in practice an acceptable proxy of the distance CGW. We leave for future works a tighter analysis of the gap between UGW and CGW.
194
+
195
+ Positive unlabeled learning experiments Positive Unlabeled (PU) learning is a semi-supervised classification problem, where instead of learning from positive and negative samples $( x _ { i } , \ell _ { i } ) _ { i }$ with labels $\ell _ { i } \in \bar { \{ - 1 , 1 \} }$ we only learn from one class labeled with positives, i.e. only those $X \ \triangleq \ \{ x _ { i } : \ell _ { i } = 1 \}$ . The task is to leverage $X$ to predict the classes $\ell = \ell ( y ) \in$ $\{ - 1 , + 1 \}$ of unlabelled $y \in Y$ belong to a separate space. We consider here that $X , Y$ are embedded in Euclidean space, and denote $\mathcal { X } , \mathcal { y }$ the associated labelled and unlabelled mm-spaces, equipped with the uniform distribution. Our experiments are adapted from Partial-GW (PGW) Chapel et al. [2020], which used partial GW to solve PU-learning. The rationale of using unbalanced OT methods for PU learning stems from the fact that positive samples should be matched with positive due to their similar features, while negative samples would be ignored due to dissimilar features that induce a laziness to transport mass and match them.
196
+
197
+ ![](images/e4475ff8de7094efc40c50b639287430c08143782b69fb86b6cbf08cb3d44283.jpg)
198
+ Figure 2: Comparison of $\operatorname { U G W } ( \mathcal { X } , \mathcal { Y } _ { t } )$ and $\bar { \mathrm { C G W } } ( \mathcal { X } , \mathcal { Y } _ { t } )$ as the support gets shifted by a perturbation.
199
+
200
+ We consider PU learning over the Caltech office dataset used for domain adaptation tasks (with domains Caltech (C) Griffin et al. [2007], Amazon (A), Webcam (W) and DSLR (D) Saenko et al. [2010]). The Caltech datasets are represented with two embeddings based on Surf and Decaf features Saenko et al. [2010], Donahue et al. [2014]. On the latter datasets, we perform PU learning over similar features (e.g. surf- $C $ surf-\* or decaf-C decaf-\*) and from one feature format to the other (e.g. surf- $C $ decaf-\* or surf- $C $ decaf-\*). Those features are projected via PCA to subspaces of dimension 10 for surf features and 40 for decaf features. In the last task, one cannot use standard PU-method, and to the best of our knowledge, Unbalanced-GW methods are the only approaches for PU learning across different domains/features.
201
+
202
+ The procedure is the following. We solve the PU learning problem by computing the optimal plan $\pi$ for $\operatorname { U G W } ( \mathcal { X } , \mathcal { Y } )$ We compute its first marginal $\pi _ { 2 }$ on $\mathcal { V }$ , and predict the labels of some $y \in Y$ as $\ell ( y ) \triangleq \operatorname { s i g n } ( \pi _ { 2 } ( y ) - q )$ where $q$ is the quantile of $\pi _ { 2 }$ corresponding to the proportion $r$ of positives samples in $Y$ . Following Chapel et al. [2020] which is adapted from Kato et al. [2018], Hsieh et al. [2019], this proportion $r$ is assumed to be known. We report the accuracy of the prediction over the same 20 folds of the datasets, and use 20 other folds to validate the parameters of UGW. We consider 100 random samples for each fold of $( X , Y )$ , a ratio of positive samples $r = 0 . 1$ for domains (C,A,W,D), and a ratio $r = 0 . 2$ for domains (C,A,W).
203
+
204
+ ![](images/4a0dc32811e8a949315913b7b5c5a46c11a6ea0b91869c0999eefd388abd4f75.jpg)
205
+ Figure 3: Histograms of the ratio CGW/UGW for random spaces with $n \in \{ 2 , 3 , 5 \}$ samples. Ratios over 1 are due to local minima.
206
+
207
+ Since the GW objective is non-convex, the initialization of the minimization algorithms is key to obtain good performances. In Chapel et al. [2020] and our experiments, for tasks where $Y$ and $Y$ belong to the same Euclidean space, (e.g. surf- $\mathbf { \partial } \cdot \mathbf { C } \to \operatorname { s u r f } - ^ { * }$ ) we initialize $\pi$ with the Partial-Wasserstein (PW) solution with a squared Euclidean cost. For cross-domain prediction (e.g. surf- $C $ decaf-\*), following Chapel et al. [2020], PGW is initialized with a list of plans built using a coarsened representation of the data with $k$ -NN. While Chapel et al. [2020] makes use in an oracle manner of the plan providing the best accuracy, we modified their protocol and keep the plan which has the lowest PGW cost, which seems fairer, hence the difference in performance with Chapel et al. [2020]. To initialize UGW when $X$ and $Y$ do not belong to the same Euclidean space, we use a UOT solution of a matching between distance histograms called FLB Mémoli [2011]. We define FLB in our UGW setting as
208
+
209
+ Table 1: Accuracy for all tasks. The left block are domain adaptation experiments with similar features, where both PGW and UGW are initialised with PW. The right block are domain adaptation experiments with different features, and the reported init is FLB (see Appendix E) used for UGW.
210
+
211
+ <table><tr><td>Dataset</td><td>prior</td><td>Init (PW)</td><td>PGW</td><td>UGW</td><td>Dataset</td><td>prior</td><td>Init (FLB)</td><td>PGW</td><td>UGW</td></tr><tr><td>surf-C→surf-C</td><td>0.1</td><td>89.9</td><td>84.9</td><td>83.9</td><td>surf-C→decaf-C</td><td>0.1</td><td>85.0</td><td>85.1</td><td>85.6</td></tr><tr><td>surf-C →surf-A</td><td>0.1</td><td>81.8</td><td>82.2</td><td>83.5</td><td>surf-C→decaf-A</td><td>0.1</td><td>84.2</td><td>87.1</td><td>83.6</td></tr><tr><td>surf-C→ surf-W</td><td>0.1</td><td>81.9</td><td>81.3</td><td>80.3</td><td>surf-C→decaf-W</td><td>0.1</td><td>86.2</td><td>88.6</td><td>86.8</td></tr><tr><td>surf-C→surf-D</td><td>0.1</td><td>80.0</td><td>81.4</td><td>83.2</td><td>surf-C →decaf-D</td><td>0.1</td><td>84.7</td><td>91.1</td><td>90.7</td></tr><tr><td>surf-C→surf-C</td><td>0.2</td><td>79.7</td><td>75.7</td><td>75.4</td><td>surf-C→decaf-C</td><td>0.2</td><td>74.8</td><td>75.6</td><td>75.9</td></tr><tr><td>surf-C →surf-A</td><td>0.2</td><td>65.6</td><td>66.0</td><td>76.4</td><td>surf-C →decaf-A</td><td>0.2</td><td>76.2</td><td>87.9</td><td>82.4</td></tr><tr><td>surf-C→surf-W</td><td>0.2</td><td>65.1</td><td>64.3</td><td>67.3</td><td>surf-C→decaf-W</td><td>0.2</td><td>81.5</td><td>88.4</td><td>89.9</td></tr><tr><td>decaf-C→decaf-C</td><td>0.1</td><td>93.9</td><td>83.0</td><td>86.8</td><td>decaf-C→surf-C</td><td>0.1</td><td>81.7</td><td>81.0</td><td>81.1</td></tr><tr><td>decaf-C →decaf-A</td><td>0.1</td><td>80.1</td><td>81.4</td><td>85.6</td><td>decaf-C- →surf-A</td><td>0.1</td><td>80.9</td><td>81.2</td><td>82.4</td></tr><tr><td>decaf-C→decaf-W</td><td>0.1</td><td>80.1</td><td>82.7</td><td>86.1</td><td>decaf-C→ surf-W</td><td>0.1</td><td>82.0</td><td>81.3</td><td>83.5</td></tr><tr><td>decaf-C→decaf-D</td><td>0.1</td><td>80.6</td><td>83.8</td><td>83.4</td><td>decaf-C→surf-D</td><td>0.1</td><td>80.0</td><td>80.8</td><td>81.5</td></tr><tr><td>decaf-C→decaf-C</td><td>0.2</td><td>90.6</td><td>76.7</td><td>80.5</td><td>decaf-C →surf-C</td><td>0.2</td><td>66.6</td><td>63.7</td><td>65.2</td></tr><tr><td>decaf-C→decaf-A</td><td>0.2</td><td>62.5</td><td>68.7</td><td>74.7</td><td>decaf-C- →surf-A</td><td>0.2</td><td>62.9</td><td>62.4</td><td>69.3</td></tr><tr><td>decaf-C → decaf-W</td><td>0.2</td><td>65.7</td><td>75.9</td><td>79.2</td><td>decaf-C→surf-W</td><td>0.2</td><td>65.1</td><td>61.4</td><td>83.3</td></tr></table>
212
+
213
+ $$
214
+ \mathrm { F L B } ( \mathcal { X } , \mathcal { Y } ) \triangleq \operatorname* { m i n } \int _ { X \times \mathcal { Y } } | \bar { \mu } \star d _ { X } - \bar { \nu } \star d _ { Y } | ^ { 2 } \mathrm { d } \pi + \rho \mathrm { K L } ( \pi _ { 1 } | \mu ) + \rho \mathrm { K L } ( \pi _ { 2 } | \nu ) + \varepsilon \mathrm { K L } ( \pi | \mu \otimes \nu ) ,
215
+ $$
216
+
217
+ where $\begin{array} { r } { \mu \star d _ { X } ( x ) \triangleq \int d _ { X } ( x , x ^ { \prime } ) \mathrm { d } \mu ( x ^ { \prime } ) } \end{array}$ is the eccentricity, i.e. a histogram of aggregated distances, and $\bar { \mu } = \mu / m ( \mu )$ . Contrary to GW Mémoli [2011], there is a priori no link between FLB and UGW.
218
+
219
+ In the experiments we slightly generalize UGW and use two different marginal penalties $\rho _ { 1 } \mathrm { K L } ^ { \otimes } ( \pi _ { 1 } ^ { \cdot } | \mu ) + \rho _ { 2 } \mathrm { K L } ^ { \otimes } ( \pi _ { 2 } \overline { { { | } } } \nu )$ with two parameters $( \rho _ { 1 } , \rho _ { 2 } )$ to take into account shifts between domains/features. Note that PGW has a single parameter (which plays a role similar to $\left( \rho _ { 1 } , \rho _ { 2 } \right) )$ which controls the cost of mass creation/destruction. We set $\varepsilon = 2 ^ { - 9 }$ , which avoids introducing an extra parameter in the method. The value $( \rho _ { 1 } , \rho _ { 2 } ) \in \{ 2 ^ { - k }$ , $k \in [ [ 5 , 1 0 ] ] ^ { 2 }$ are cross validated for each J Ktask on the validation folds, and we report the average accuracy on the testing folds. We discuss in Appendix E the impact of reducing the number of parameters on the performance. Comparison with other methods – PU and PUSB Kato et al. [2018], Du Plessis et al. [2014] – are provided in Chapel et al. [2020] and we focus here on the comparison with PGW only.
220
+
221
+ The results are reported in Table 1. We display the performance of PGW, UGW and the initialization used for UGW to guarantee that using UGW does improve the performance. We observe that when the source and target dataset is the same $\mathrm { C } { } \mathrm { C }$ tasks), the PW initialization performs better and PGW/UGW degrade the performance, so that in this setting Optimal Transport should be preferred over GW, which is to be expected. However when the domains are different, applying UGW improves the performance over the initialization (which is FLB) in almost all tasks. Note that in that case the methods PU, PUSB or PW cannot be used. Overall, this shows that GW methods are able to solve to some extent the PU learning problem across different spaces, and that using a “softer” KL penalties in UGW is at least at par with Partial GW, and performs better in some settings.
222
+
223
+ # 5 Conclusion and perspectives
224
+
225
+ This paper defines two Unbalanced Gromov-Wasserstein formulations: CGW and UGW. We prove that they are both positive and definite. We provide a scalable, GPU-friendly algorithm to compute UGW illustrate its applicability in learning tasks, and show that CGW is a distance between mmspaces up to isometry. These divergences and distances allow for the first time to blend in a seamless way the transportation geometry of GW with creation and destruction of mass. This hybridization is the key to unlock both theoretical and practical issues. This work opens new questions for future works, for instance removing the bias introduced by the use of entropic regularization, which is important for applications to ML. Note that such a debiasing was successfully applied for BalancedGW in Bunne et al. [2019] and is shown to lead to a valid divergence for balanced OT in Feydy et al. [2019b] and UW in Séjourné et al. [2019]. The design of efficient numerical solvers for CGW is also an interesting avenue for future works, as well as the study of its induced topology.
226
+
227
+ # Acknowledgements
228
+
229
+ The works of Thibault Séjourné and Gabriel Peyré is supported by the ERC grant NORIA. The work of G. Peyré was supported in part by the French government under management of Agence Nationale de la Recherche as part of the "Investissements d’avenir" program, reference ANR19-P3IA-0001 (PRAIRIE 3IA Institute).
230
+
231
+ The authors thank Rémi Flamary for his remarks and advices, as well as Laetitia Chapel for her help to reproduce her experiments.
232
+
233
+ # References
234
+
235
+ Alexander M Bronstein, Michael M Bronstein, and Ron Kimmel. Generalized multidimensional scaling: a framework for isometry-invariant partial surface matching. Proceedings of the National Academy of Sciences, 103(5):1168–1172, 2006.
236
+
237
+ Hongteng Xu, Dixin Luo, and Lawrence Carin. Scalable gromov-wasserstein learning for graph partitioning and matching. In Advances in neural information processing systems, pages 3046– 3056, 2019.
238
+
239
+ Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 1263–1272. JMLR. org, 2017.
240
+
241
+ Edouard Grave, Armand Joulin, and Quentin Berthet. Unsupervised alignment of embeddings with wasserstein procrustes. In The 22nd International Conference on Artificial Intelligence and Statistics, pages 1880–1890, 2019.
242
+
243
+ David Alvarez-Melis and Tommi S Jaakkola. Gromov-wasserstein alignment of word embedding spaces. arXiv preprint arXiv:1809.00013, 2018.
244
+
245
+ Karl-Theodor Sturm. The space of spaces: curvature bounds and gradient flows on the space of metric measure spaces. arXiv preprint arXiv:1208.0434, 2012.
246
+
247
+ Facundo Mémoli. Gromov–wasserstein distances and the metric approach to object matching. Foundations of computational mathematics, 11(4):417–487, 2011.
248
+
249
+ Matthias Liero, Alexander Mielke, and Giuseppe Savaré. Optimal entropy-transport problems and a new hellinger–kantorovich distance between positive measures. Inventiones mathematicae, pages 1–149, 2015.
250
+
251
+ Nicolas Courty, Rémi Flamary, and Devis Tuia. Domain adaptation with regularized optimal transport. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pages 274–289. Springer, 2014.
252
+
253
+ Charlie Frogner, Chiyuan Zhang, Hossein Mobahi, Mauricio Araya, and Tomaso A Poggio. Learning with a Wasserstein loss. In Advances in Neural Information Processing Systems, pages 2053–2061, 2015.
254
+
255
+ Martin Arjovsky, Soumith Chintala, and Léon Bottou. Wasserstein GAN. arXiv preprint arXiv:1701.07875, 2017.
256
+
257
+ Lénaïc Chizat, Gabriel Peyré, Bernhard Schmitzer, and François-Xavier Vialard. Unbalanced optimal transport: Dynamic and kantorovich formulations. Journal of Functional Analysis, 274(11): 3090–3123, 2018a.
258
+
259
+ Jean Feydy, Pierre Roussillon, Alain Trouvé, and Pietro Gori. Fast and scalable optimal transport for brain tractograms. In International Conference on Medical Image Computing and ComputerAssisted Intervention, pages 636–644. Springer, 2019a.
260
+
261
+ John Lee, Nicholas P Bertrand, and Christopher J Rozell. Parallel unbalanced optimal transport regularization for large scale imaging problems. arXiv preprint arXiv:1909.00149, 2019.
262
+
263
+ Yogesh Balaji, Rama Chellappa, and Soheil Feizi. Robust optimal transport with applications in generative modeling and domain adaptation. Advances in Neural Information Processing Systems, 33, 2020.
264
+
265
+ Lenaic Chizat and Francis Bach. On the global convergence of gradient descent for over-parameterized models using optimal transport. In Advances in neural information processing systems, pages 3036–3046, 2018.
266
+
267
+ Grant Rotskoff, Samy Jelassi, Joan Bruna, and Eric Vanden-Eijnden. Global convergence of neuron birth-death dynamics. arXiv preprint arXiv:1902.01843, 2019.
268
+
269
+ Marco Cuturi. Sinkhorn distances: Lightspeed computation of optimal transport. In Adv. in Neural Information Processing Systems, pages 2292–2300, 2013.
270
+
271
+ Lenaic Chizat, Gabriel Peyré, Bernhard Schmitzer, and François-Xavier Vialard. Scaling algorithms for unbalanced transport problems. to appear in Mathematics of Computation, 2018b.
272
+
273
+ Thibault Séjourné, Jean Feydy, François-Xavier Vialard, Alain Trouvé, and Gabriel Peyré. Sinkhorn divergences for unbalanced optimal transport. arXiv preprint arXiv:1910.12958, 2019.
274
+
275
+ Charlotte Bunne, David Alvarez-Melis, Andreas Krause, and Stefanie Jegelka. Learning generative models across incomparable spaces. arXiv preprint arXiv:1905.05461, 2019.
276
+
277
+ Hongteng Xu, Dixin Luo, Ricardo Henao, Svati Shah, and Lawrence Carin. Learning autoencoders with relational regularization. arXiv preprint arXiv:2002.02913, 2020.
278
+
279
+ Ivegen Redko, Titouan Vayer, Rémi Flamary, and Nicolas Courty. Co-optimal transport. arXiv preprint arXiv:2002.03731, 2020.
280
+
281
+ Titouan Vayer, Laetita Chapel, Rémi Flamary, Romain Tavenard, and Nicolas Courty. Fused gromovwasserstein distance for structured objects: theoretical foundations and mathematical properties. arXiv preprint arXiv:1811.02834, 2018.
282
+
283
+ Samir Chowdhury and Tom Needham. Gromov-wasserstein averaging in a riemannian framework. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pages 842–843, 2020.
284
+
285
+ David Alvarez-Melis, Stefanie Jegelka, and Tommi S Jaakkola. Towards optimal transport with global invariances. In The 22nd International Conference on Artificial Intelligence and Statistics, pages 1870–1879. PMLR, 2019.
286
+
287
+ Rainer E Burkard, Eranda Cela, Panos M Pardalos, and Leonidas S Pitsoulis. The quadratic assignment problem. In Handbook of combinatorial optimization, pages 1713–1809. Springer, 1998.
288
+
289
+ Gabriel Peyré, Marco Cuturi, and Justin Solomon. Gromov-wasserstein averaging of kernel and distance matrices. In International Conference on Machine Learning, pages 2664–2672, 2016.
290
+
291
+ Steven Gold and Anand Rangarajan. A graduated assignment algorithm for graph matching. IEEE Transactions on pattern analysis and machine intelligence, 18(4):377–388, 1996.
292
+
293
+ Nicoló De Ponti and Andrea Mondino. Entropy-transport distances between unbalanced metric measure spaces. arXiv preprint arXiv:2009.10636, 2020.
294
+
295
+ Karl-Theodor Sturm et al. On the geometry of metric measure spaces. Acta mathematica, 196(1): 65–131, 2006.
296
+
297
+ Laetitia Chapel, Mokhtar Z Alaya, and Gilles Gasso. Partial gromov-wasserstein with applications on positive-unlabeled learning. arXiv preprint arXiv:2002.08276, 2020.
298
+
299
+ Alessio Figalli. The optimal partial transport problem. Archive for rational mechanics and analysis, 195(2):533–560, 2010.
300
+
301
+ Luca Cosmo, Emanuele Rodolà, Michael M Bronstein, Andrea Torsello, Daniel Cremers, and Y Sahillioglu. Shrec’16: Partial matching of deformable shapes. Proc. 3DOR, 2(9):12, 2016.
302
+
303
+ Emanuele Rodola, Alex M Bronstein, Andrea Albarelli, Filippo Bergamasco, and Andrea Torsello. A game-theoretic approach to deformable shape matching. In 2012 IEEE Conference on Computer Vision and Pattern Recognition, pages 182–189. IEEE, 2012.
304
+ Dmitri Burago, Iu D Burago, Yuri Burago, Sergei A Ivanov, and Sergei Ivanov. A course in metric geometry, volume 33. American Mathematical Soc., 2001.
305
+ Nicolò De Ponti. Metric properties of homogeneous and spatially inhomogeneous $f$ -divergences. IEEE Transactions on Information Theory, 66(5):2872–2890, 2019.
306
+ Steven Gold, Anand Rangarajan, et al. Softmax to softassign: Neural network algorithms for combinatorial optimization. Journal of Artificial Neural Networks, 2(4):381–399, 1996.
307
+ J. Solomon, G. Peyré, V. Kim, and S. Sra. Entropic metric alignment for correspondence problems. ACM Transactions on Graphics (TOG), 35(4), 2016.
308
+ Paul Tseng. Convergence of a block coordinate descent method for nondifferentiable minimization. Journal of optimization theory and applications, 109(3):475–494, 2001.
309
+ Haggai Maron and Yaron Lipman. (probably) concave graph matching. arXiv preprint arXiv:1807.09722, 2018.
310
+ Hiroshi Konno. Maximization of a convex quadratic function under linear constraints. Mathematical programming, 11(1):117–127, 1976.
311
+ Aasa Feragen, Francois Lauze, and Soren Hauberg. Geodesic exponential kernels: When curvature and linearity conflict. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3032–3042, 2015.
312
+ Jason Altschuler, Francis Bach, Alessandro Rudi, and Jonathan Weed. Massively scalable Sinkhorn distances via the nystr\" om method. arXiv preprint arXiv:1812.05189, 2018.
313
+ Khiem Pham, Khang Le, Nhat Ho, Tung Pham, and Hung Bui. On unbalanced optimal transport: An analysis of sinkhorn algorithm. arXiv preprint arXiv:2002.03293, 2020.
314
+ Alexis Thibault, Lénaïc Chizat, Charles Dossal, and Nicolas Papadakis. Overrelaxed Sinkhorn-Knopp algorithm for regularized optimal transport. arXiv preprint arXiv:1711.01851, 2017.
315
+ Donald G Anderson. Iterative procedures for nonlinear integral equations. Journal of the ACM (JACM), 12(4):547–560, 1965.
316
+ Damien Scieur, Alexandre d’Aspremont, and Francis Bach. Regularized nonlinear acceleration. In Advances In Neural Information Processing Systems, pages 712–720, 2016.
317
+ Gregory Griffin, Alex Holub, and Pietro Perona. Caltech-256 object category dataset. 2007.
318
+ Kate Saenko, Brian Kulis, Mario Fritz, and Trevor Darrell. Adapting visual category models to new domains. In European conference on computer vision, pages 213–226. Springer, 2010.
319
+ Jeff Donahue, Yangqing Jia, Oriol Vinyals, Judy Hoffman, Ning Zhang, Eric Tzeng, and Trevor Darrell. Decaf: A deep convolutional activation feature for generic visual recognition. In International conference on machine learning, pages 647–655. PMLR, 2014.
320
+ Masahiro Kato, Takeshi Teshima, and Junya Honda. Learning from positive and unlabeled data with a selection bias. In International Conference on Learning Representations, 2018.
321
+ Yu-Guan Hsieh, Gang Niu, and Masashi Sugiyama. Classification from positive, unlabeled and biased negative data. In International Conference on Machine Learning, pages 2820–2829. PMLR, 2019.
322
+ Marthinus C Du Plessis, Gang Niu, and Masashi Sugiyama. Analysis of learning from positive and unlabeled data. Advances in neural information processing systems, 27:703–711, 2014.
323
+ Jean Feydy, Thibault Séjourné, François-Xavier Vialard, Shun-ichi Amari, Alain Trouvé, and Gabriel Peyré. Interpolating between optimal transport and mmd using sinkhorn divergences. In The 22nd International Conference on Artificial Intelligence and Statistics, pages 2681–2690, 2019b.
324
+
325
+ Matthias Liero, Alexander Mielke, and Giuseppe Savaré. Optimal transport in competition with reaction: The hellinger–kantorovich distance and geodesic curves. SIAM Journal on Mathematical Analysis, 48(4):2869–2911, 2016.
326
+
327
+ Lenaic Chizat, Gabriel Peyré, Bernhard Schmitzer, and François-Xavier Vialard. An interpolating distance between optimal transport and fisher–rao metrics. Foundations of Computational Mathematics, 18(1):1–44, 2018c.
328
+
329
+ Cedric Villani. Topics in C. Transportation. Graduate studies in Math. AMS, 2003.
330
+
331
+ Rémi Flamary and Nicolas Courty. Pot python optimal transport library. GitHub: https://github. com/rflamary/POT, 2017.
parse/train/3-GCM92yaB3/3-GCM92yaB3_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/3-GCM92yaB3/3-GCM92yaB3_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/3-GCM92yaB3/3-GCM92yaB3_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1dh6Ax0Z/H1dh6Ax0Z.md ADDED
@@ -0,0 +1,375 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TREEQN AND ATREEC: DIFFERENTIABLE TREE-STRUCTURED MODELS FOR DEEP REINFORCEMENT LEARNING
2
+
3
+ Gregory Farquhar1 gregory.farquhar@cs.ox.ac.uk
4
+
5
+ Tim Rocktaschel¨ 1 tim.rocktaschel@cs.ox.ac.uk
6
+
7
+ Maximilian Igl1 maximilian.igl@cs.ox.ac.uk
8
+
9
+ Shimon Whiteson1 shimon.whiteson@cs.ox.ac.uk
10
+
11
+ 1University of Oxford, United Kingdom
12
+
13
+ # ABSTRACT
14
+
15
+ Combining deep model-free reinforcement learning with on-line planning is a promising approach to building on the successes of deep RL. On-line planning with look-ahead trees has proven successful in environments where transition models are known a priori. However, in complex environments where transition models need to be learned from data, the deficiencies of learned models have limited their utility for planning. To address these challenges, we propose TreeQN, a differentiable, recursive, tree-structured model that serves as a drop-in replacement for any value function network in deep RL with discrete actions. TreeQN dynamically constructs a tree by recursively applying a transition model in a learned abstract state space and then aggregating predicted rewards and state-values using a tree backup to estimate $Q$ -values. We also propose ATreeC, an actor-critic variant that augments TreeQN with a softmax layer to form a stochastic policy network. Both approaches are trained end-to-end, such that the learned model is optimised for its actual use in the tree. We show that TreeQN and ATreeC outperform $n$ -step DQN and A2C on a box-pushing task, as well as $n$ -step DQN and value prediction networks (Oh et al., 2017) on multiple Atari games. Furthermore, we present ablation studies that demonstrate the effect of different auxiliary losses on learning transition models.
16
+
17
+ # 1 INTRODUCTION
18
+
19
+ A promising approach to improving model-free deep reinforcement learning (RL) is to combine it with on-line planning. The model-free value function can be viewed as a rough global estimate which is then locally refined on the fly for the current state by the on-line planner. Crucially, this does not require new samples from the environment but only additional computation, which is often available.
20
+
21
+ One strategy for on-line planning is to use look-ahead tree search (Knuth & Moore, 1975; Browne et al., 2012). Traditionally, such methods have been limited to domains where perfect environment simulators are available, such as board or card games (Coulom, 2006; Sturtevant, 2008). However, in general, models for complex environments with high dimensional observation spaces and complex dynamics must be learned from agent experience. Unfortunately, to date, it has proven difficult to learn models for such domains with sufficient fidelity to realise the benefits of look-ahead planning (Oh et al., 2015; Talvitie, 2017).
22
+
23
+ A simple approach to learning environment models is to maximise a similarity metric between model predictions and ground truth in the observation space. This approach has been applied with some success in cases where model fidelity is less important, e.g., for improving exploration (Chiappa et al., 2017; Oh et al., 2015). However, this objective causes significant model capacity to be devoted to predicting irrelevant aspects of the environment dynamics, such as noisy backgrounds, at the expense of value-critical features that may occupy only a small part of the observation space (Pathak et al.,
24
+
25
+ 2017). Consequently, current state-of-the-art models still accumulate errors too rapidly to be used for look-ahead planning in complex environments.
26
+
27
+ Another strategy is to train a model such that, when it is used to predict a value function, the error in those predictions is minimised. Doing so can encourage the model to focus on features of the observations that are relevant for the control task. An example is the predictron (Silver et al., 2017b), where the model is used to aid policy evaluation without addressing control. Value prediction networks (VPNs, Oh et al., 2017) take a similar approach but use the model to construct a look-ahead tree only when constructing bootstrap targets and selecting actions, similarly to TD-search (Silver et al., 2012). Crucially, the model is not embedded in a planning algorithm during optimisation.
28
+
29
+ We propose a new tree-structured neural network architecture to address the aforementioned problems. By formulating the tree look-ahead in a differentiable way and integrating it directly into the $Q$ - function or policy, we train the entire agent, including its learned transition model, end-to-end. This ensures that the model is optimised for the correct goal and is suitable for on-line planning during execution of the policy.
30
+
31
+ Since the transition model is only weakly grounded in the actual environment, our approach can alternatively be viewed as a model-free method in which the fully connected layers of DQN are replaced by a recursive network that applies transition functions with shared parameters at each tree node expansion.
32
+
33
+ The resulting architecture, which we call TreeQN, encodes an inductive bias based on the prior knowledge that the environment is a stationary Markov process, which facilitates faster learning of better policies. We also present an actor-critic variant, ATreeC, in which the tree is augmented with a softmax layer and used as a policy network.
34
+
35
+ We show that TreeQN and ATreeC outperform their DQN-based counterparts in a box-pushing domain and a suite of Atari games, with deeper trees often outperforming shallower trees, and TreeQN outperforming VPN (Oh et al., 2017) on most Atari games. We also present ablation studies investigating various auxiliary losses for grounding the transition model more strongly in the environment, which could improve performance as well as lead to interpretable internal plans. While we show that grounding the reward function is valuable, we conclude that how to learn strongly grounded transition models and generate reliably interpretable plans without compromising performance remains an open research question.
36
+
37
+ # 2 BACKGROUND
38
+
39
+ We consider an agent learning to act in a Markovimising its expected discounted sum of rewards $\begin{array} { r } { R _ { t } = \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } r _ { t } } \end{array}$ s (MDP), with the goa, by learning a policy $\pi ( \mathbf { s } )$ max-that maps states to actions . The state-action value function $Q$ -function) is defined as $\begin{array} { r } { Q ^ { \pi } ( \mathbf { s } , a ) = \mathbb { E } _ { \pi } \left[ R _ { t } | \mathbf { s } _ { t } = \mathbf { s } , a _ { t } = a \right] } \end{array}$ ; the optimal $Q$ -function is $Q ^ { * } ( \mathbf { s } , a ) = \operatorname* { m a x } _ { \pi } Q ^ { \pi } ( \mathbf { s } , a )$ .
40
+
41
+ The Bellman optimality equation writes $Q ^ { * }$ recursively as
42
+
43
+ $$
44
+ Q ^ { * } ( \mathbf { s } , a ) = T Q ^ { * } ( \mathbf { s } , a ) \equiv r ( \mathbf { s } , a ) + \gamma \sum _ { \mathbf { s ^ { \prime } } } P ( \mathbf { s } ^ { \prime } | \mathbf { s } , a ) \operatorname* { m a x } _ { a ^ { \prime } } Q ^ { * } ( \mathbf { s } ^ { \prime } , a ^ { \prime } ) ,
45
+ $$
46
+
47
+ where $P$ is the MDP state transition function and $r$ is a reward function, which for simplicity we assume to be deterministic. $Q$ -learning (Watkins $\&$ Dayan, 1992) uses a single-sample approximation of the contraction operator $\tau$ to iteratively improve an estimate of $Q ^ { * }$ .
48
+
49
+ In deep $Q$ -learning (Mnih et al., 2015), $Q$ is represented by a deep neural network with parameters $\theta$ , and is improved by regressing $Q ( \mathbf { s } , a )$ to a target $r + \bar { \gamma } \operatorname* { m a x } _ { a ^ { \prime } } Q ( \mathbf { s } ^ { \prime } , a ^ { \prime } ; \theta ^ { - } )$ , where $\theta ^ { - }$ are the parameters of a target network periodically copied from $\theta$ .
50
+
51
+ We use a version of $n$ -step $Q$ -learning (Mnih et al., 2016) with synchronous environment threads. In particular, starting at a timestep $t$ , we roll forward $n _ { \mathrm { e n v } } = 1 6$ threads for $n = 5$ timesteps each. We then bootstrap off the final states only and gather all $n _ { \mathrm { e n v } } \times n = 8 0$ transitions in a single batch for
52
+
53
+ the backward pass, minimising the loss:
54
+
55
+ $$
56
+ \mathcal { L } _ { \mathrm { n s t e p . Q } } = \sum _ { \mathrm { e n v s } } \sum _ { j = 1 } ^ { n } \left( \sum _ { k = 1 } ^ { j } \left[ \gamma ^ { j - k } r _ { t + n - k } \right] + \gamma ^ { j } \operatorname* { m a x } _ { a ^ { \prime } } Q \left( \mathbf { s } _ { t + n } , a ^ { \prime } , \theta ^ { - } \right) - Q \left( \mathbf { s } _ { t + n - j } , a _ { t + n - j } , \theta \right) \right) ^ { 2 } .
57
+ $$
58
+
59
+ If the episode terminates, we use the remaining episode return as the target, without bootstrapping.
60
+
61
+ This algorithm’s actor-critic counterpart is A2C, a synchronous variant of A3C (Mnih et al., 2016) in which a policy $\pi$ and state-value function $V ( s )$ are trained using the gradient:
62
+
63
+ $$
64
+ \Delta \theta = \sum _ { \mathrm { e n v s } } \sum _ { j = 1 } ^ { n } \nabla _ { \theta _ { \tau } } \log \pi ( a _ { t + n - j } | s _ { t + n - j } ) A _ { j } ( s _ { t + n - j } , a _ { t + n - j } ) + \beta \nabla _ { \theta _ { \tau } } H ( \pi ( s _ { t + n - j } ) )
65
+ $$
66
+
67
+ $$
68
+ + \alpha \nabla _ { \theta _ { V } } A _ { j } ( s _ { t + n - j } , a _ { t + n - j } ) ^ { 2 } ,
69
+ $$
70
+
71
+ where $A _ { j }$ is an advantage estimate given by $\begin{array} { r } { \sum _ { k = 1 } ^ { j } \gamma ^ { j - k } r _ { t + n - k } + \gamma ^ { j } V ( \mathbf { s } _ { t + n } ) - V ( \mathbf { s } _ { t + n - j } ) , . } \end{array}$ $H$ is the policy entropy, $\beta$ is a hyperparameter tuning the degree of entropy regularisation, and $\alpha$ is a hyperparameter controlling the relative learning rates of actor and critic.
72
+
73
+ These algorithms were chosen for their simplicity and reasonable wallclock speeds, but TreeQN can also be used in other algorithms, as described in Section 3. Our implementations are based on OpenAI Baselines (Hesse et al., 2017).
74
+
75
+ The canonical neural network architecture in deep RL with visual observations has a series of convolutional layers followed by two fully connected layers, where the final layer produces one output for each action-value. We can think of this network as first calculating an encoding $\mathbf { z } _ { t }$ of the state $\mathbf { s } _ { t }$ which is then evaluated by the final layer to estimate $Q ^ { * } ( \mathbf { s } _ { t } , a )$ (see Fig. 1).
76
+
77
+ ![](images/a1c8aa777b391aa8e4813f2342fedb38e83445bf81cda679495660e595151def.jpg)
78
+ Figure 1: High-level structure of DQN.
79
+
80
+ In tree-search on-line planning, a look-ahead tree of possible future states is constructed by recursively applying an environment model. These states are typically evaluated by a heuristic, a learned value function, or Monte-Carlo rollouts. Backups through the tree aggregate these values along with the immediate rewards accumulated along each path to estimate the value of taking an action in the current state. This paper focuses on a simple tree-search with a deterministic transition function and no value uncertainty estimates, but our approach can be extended to tree-search variants like UCT (Kocsis & Szepesvari´ , 2006; Silver et al., 2016) if the components remain differentiable.
81
+
82
+ # 3 TREEQN
83
+
84
+ In this section, we propose TreeQN, a novel end-to-end differentiable tree-structured architecture for deep reinforcement learning. We first give an overview of the architecture, followed by details of each model component and the training procedure.
85
+
86
+ TreeQN uses a recursive tree-structured neural network between the encoded state $\mathbf { z } _ { t }$ and the predicted state-action values $Q ( \mathbf { s } _ { t } , a )$ , instead of directly estimating the state-action value from the current encoded state $\mathbf { z } _ { t }$ using fully connected layers as in DQN (Mnih et al., 2015). Specifically, TreeQN uses a recursive model to refine its estimate of $Q ( \mathbf { s } _ { t } , a )$ via learned transition, reward, and value functions, and a tree backup (see Fig. 2). Because these learned components are shared throughout the tree, TreeQN implements an inductive bias, missing from DQN, that reflects the prior knowledge that the $Q$ -values are properties of a stationary Markov process. We also encode the inductive bias that $Q$ -values may be expressed as a sum of scalar rewards and values.
87
+
88
+ $\mathbf { z } _ { l \mid t }$ cifically, TreeQN learns an action-de, predicts the next state representation $\mathbf { z } _ { l + 1 | t } ^ { a _ { i } }$ t transitiofor action $a _ { i } \in { \mathcal { A } }$ n that, given a state representa, and the corresponding reward $\hat { r } _ { l | t } ^ { a _ { i } }$ To make the distinction between internal planning steps and steps taken in the environment explicit, we write $\mathbf { z } _ { l \mid t }$ to denote the encoded state at time $t$ after $l$ internal transitions, starting with ${ \bf z } _ { 0 \mid t }$ for the encoding of $\mathbf { s } _ { t }$ . TreeQN applies this transition function recursively to construct a tree containing the state representations and rewards received for all possible sequences of actions up to some predefined depth $d$ (“Tree Transitioning” in Fig. 2).
89
+
90
+ ![](images/e166e58c3a5bca1ad7d1969b9d7a51bd50882c1420e24550565fb81a4f0a5e82.jpg)
91
+ Figure 2: High-level structure of TreeQN with a tree depth of two and shared transition and evaluation functions (reward prediction and value mixing omitted for simplicity).
92
+
93
+ The value of each predicted state $V ( \mathbf { z } )$ is estimated with a value function module. Using these values and the predicted rewards, TreeQN then performs a tree backup, mixing the $k$ -step returns along each path in the tree using $\mathrm { T D } ( \lambda )$ (Sutton, 1988; Sutton & Barto, 1998). This corresponds to “Value Prediction & Backup” in Fig. 2 and can be formalized as
94
+
95
+ $$
96
+ \begin{array} { r l } & { Q ^ { l } ( \mathbf { z } _ { l \mid t } , a _ { i } ) = r ( \mathbf { z } _ { l \mid t } , a _ { i } ) + \gamma V ^ { ( \lambda ) } ( \mathbf { z } _ { l + 1 \mid t } ) } \\ & { V ^ { ( \lambda ) } ( \mathbf { z } _ { l \mid t } ) = \left\{ V ( \mathbf { z } _ { l \mid t } ^ { a _ { i } } ) \right. \ } & { l = d } \\ & { \left. ( 1 - \lambda ) V ( \mathbf { z } _ { l \mid t } ^ { a _ { i } } ) + \lambda \mathrm { b } ( Q ^ { l + 1 } ( \mathbf { z } _ { l + 1 \mid t } ^ { a _ { i } } , a _ { j } ) ) \right. \ l < d } \end{array}
97
+ $$
98
+
99
+ where $\mathrm { b }$ is a function to recursively perform the backup. For $0 < \lambda < 1$ , value estimates of the intermediate states are mixed into the final $Q$ -estimate, which encourages the intermediate nodes of the tree to correspond to meaningful states, and reduces the impact of outlier values.
100
+
101
+ When $\lambda = 1$ , and $\mathrm { b }$ is the standard hard max function, then Eq. 3 simplifies to a backup through the tree using the familiar Bellman equation:
102
+
103
+ $$
104
+ Q ( \mathbf { z } _ { l | t } , a _ { i } ) = r ( \mathbf { z } _ { l | t } , a _ { i } ) + \left\{ \begin{array} { l l } { \gamma V ( \mathbf { z } _ { d | t } ^ { a _ { i } } ) } & { l = d - 1 } \\ { \gamma \operatorname* { m a x } _ { a _ { j } } Q ( \mathbf { z } _ { l + 1 | t } ^ { a _ { i } } , a _ { j } ) } & { l < d - 1 . } \end{array} \right.
105
+ $$
106
+
107
+ We note that even for a tree depth of only one, TreeQN imposes a significant structure on the value function by decomposing it as a sum of action-conditional reward and next-state value, and using a shared value function to evaluate each next-state representation.
108
+
109
+ Crucially, during training we backpropagate all the way from the final $Q$ -estimate, through the value prediction, tree transitioning, and encoding layers of the tree, i.e., the entire network shown in Fig. 2. Learning these components jointly ensures that they are useful for planning on-line.
110
+
111
+ # 3.1 MODEL COMPONENTS
112
+
113
+ In this section, we describe each of TreeQN’s components in more detail.
114
+
115
+ Encoder function. As in DQN, a series of convolutional layers produces an embedding of the observed state, $\mathbf { z } _ { 0 \mid t } = \mathsf { e n c o d e } ( \mathbf { s } _ { t } )$ .
116
+
117
+ Transition function. We first apply a single fully connected layer to the current state embedding, shared by all actions. This generates an intermediate representation $( \mathbf z _ { l + 1 | t } ^ { \mathrm { e n v } } )$ that could carry information about action-agnostic changes to the environment. In addition, we use a fully connected layer per action, which is applied to the intermediate representation to calculate a next-state representation that carries information about the effect of taking action $a _ { i }$ . We use residual connections for these layers:
118
+
119
+ $$
120
+ \begin{array} { r l } & { \mathbf { z } _ { l + 1 \mid t } ^ { \mathrm { e n v } } = \mathbf { z } _ { l \mid t } + \operatorname { t a n h } ( W ^ { \mathrm { e n v } } \mathbf { z } _ { l \mid t } + \mathbf { b } ^ { \mathrm { e n v } } ) , } \\ & { \mathbf { z } _ { l + 1 \mid t } ^ { a _ { i } } = \mathbf { z } _ { l + 1 \mid t } ^ { \mathrm { e n v } } + \operatorname { t a n h } ( W ^ { a _ { i } } \mathbf { z } _ { l + 1 \mid t } ^ { \mathrm { e n v } } ) , } \end{array}
121
+ $$
122
+
123
+ where $W ^ { a _ { i } } , W ^ { \mathrm { e n v } } \in \mathbb R ^ { k \times k } , \mathbf { b } ^ { \mathrm { e n v } } \in \mathbb R ^ { k }$ are learnable parameters. Note that the next-state representation is calculated for every action $a _ { i }$ independently using the respective transition matrix $W ^ { a _ { i } }$ , but this transition function is shared for the same action throughout the tree.
124
+
125
+ A caveat is that the model can still learn to use different parts of the latent state space in different parts of the tree, which could undermine the intended parameter sharing in the model structure. To help TreeQN learn useful transition functions that maintain quality and diversity in their latent states, we introduce a unit-length projection of the state representations by simply dividing a state’s vector representation by its L2 norm before each application of the transition function, $\mathbf { z } _ { l | t } : = \mathbf { z } _ { l | t } / \left| \left| \mathbf { z } _ { l | t } \right| \right|$ This prevents the magnitude of the representation from growing or shrinking, which encourages the behaviour of the transition function to be more consistent throughout the tree.
126
+
127
+ Reward function. In addition to predicting the next state, we also predict the immediate reward for every action $a _ { i } \in { \mathcal { A } }$ in state $\mathbf { z } _ { l \mid t }$ using
128
+
129
+ $$
130
+ \hat { \mathbf { r } } ( \mathbf { z } _ { l \mid t } ) = W _ { 2 } ^ { r } \mathrm { R e L U } ( W _ { 1 } ^ { r } \mathbf { z } _ { l \mid t } + \mathbf { b } _ { 1 } ^ { r } ) + \mathbf { b } _ { 2 } ^ { r } ,
131
+ $$
132
+
133
+ where $W _ { 1 } ^ { r } \in \mathbb { R } ^ { m \times k }$ , $W _ { 2 } ^ { r } \in \mathbb { R } ^ { | \mathcal { A } | \times m }$ and ReLU is the rectified linear unit (Nair & Hinton, 2010), and the predicted reward for a particular action $\hat { r } _ { l | t } ^ { a _ { i } }$ is the $i$ -th element of the vector $\hat { \mathbf { r } } ( \mathbf { z } _ { l \mid t } )$ .
134
+
135
+ Value function. The value of a state representation $\mathbf { z }$ is estimated as
136
+
137
+ $$
138
+ V ( \mathbf { z } ) = \mathbf { w } ^ { \top } \mathbf { z } + b ,
139
+ $$
140
+
141
+ where $\mathbf { w } \in \mathbb { R } ^ { k }$
142
+
143
+ Backup function. We use the following function that can be recursively applied to calculate the tree backup:
144
+
145
+ $$
146
+ \mathrm { b } ( \mathbf { x } ) = \sum _ { i } x _ { i } \mathrm { s o f t m a x } ( \mathbf { x } ) _ { i } .
147
+ $$
148
+
149
+ Using a hard max for calculating the backup would result in gradient information only being used to update parameters along the maximal path in the tree. By contrast, the softmax allows us to use downstream gradient information to update parameters along all paths. Furthermore, it potentially reduces the impact of outlier value predictions. With a learned temperature for the softmax, this function could represent the hard max arbitrarily closely. However, we did not find an empirical difference so we left the temperature at 1.
150
+
151
+ # 3.2 GROUNDING THE MODEL COMPONENTS
152
+
153
+ The TreeQN architecture is fully differentiable, so we can directly use it in the place of a $Q$ -function in any deep RL algorithm with discrete actions. Differentiating through the entire tree ensures that the learned components are useful for planning on-line, as long as that planning is performed in the same way as during training.
154
+
155
+ However, it seems plausible that auxiliary objectives based on minimising the error in predicting rewards or observations could improve the performance by helping to ground the transition and reward functions to the environment. It could also encourage TreeQN to perform model-based planning in an interpretable manner. In principle, such objectives could give rise to a spectrum of methods from model-free to fully model-based. At one extreme, TreeQN without auxiliary objectives can be seen as a model-free approach that draws inspiration from tree-search planning to encode valuable inductive biases into the neural network architecture. At the other extreme, perfect, grounded reward and transition models could in principle be learned. Using them in our architecture would then correspond to standard model-based lookahead planning. The sweet spot could be an intermediate level of grounding that maintains the flexibility of end-to-end model-free learning while benefiting from the additional supervision of explicit model learning. To investigate this spectrum, we experiment with two auxiliary objectives.
156
+
157
+ Reward grounding. We experiment with an L2 loss regressing rˆat:t+l−1| , the predicted reward at level $l$ of the tree corresponding to the selected action sequence $\left\{ a _ { t } \ldots a _ { t + l - 1 } \right\}$ , to the true observed rewards. For each of the $n$ timesteps of $n$ -step Q-learning this gives:
158
+
159
+ $$
160
+ \mathcal { L } = \mathcal { L } _ { \mathrm { n s t e p } \cdot \mathrm { Q } } + \eta _ { r } \sum _ { \mathrm { e n v s } } \sum _ { j = 1 } ^ { n } \sum _ { l = 1 } ^ { \bar { d } } \left( \hat { r } _ { l \mid t + j } ^ { a _ { t + j : t + j + l - 1 } } - r _ { t + j + l - 1 } \right) ^ { 2 } ,
161
+ $$
162
+
163
+ where $\eta _ { r }$ is a hyperparameter weighting the loss, and $\bar { d } = \operatorname* { m i n } ( d , n - j + 1 )$ restricts the sum to rewards for which we have already observed the true value.
164
+
165
+ State grounding. We experiment with a grounding in the latent space, using an L2 loss to regress the predicted latent state $\mathbf { z } _ { l \mid t } ^ { a _ { t : t + l } }$ at level $l$ of the tree to $\mathbf { z } _ { 0 \mid t + l }$ , the initial encoding of the true state corresponding to the actions actually taken:
166
+
167
+ $$
168
+ \mathcal { L } = \mathcal { L } _ { \mathrm { n s t e p } \cdot \mathrm { Q } } + \eta _ { s } \sum _ { \mathrm { e n v s } } \sum _ { j = 1 } ^ { n } \sum _ { l = 1 } ^ { \bar { d } } \left( \mathbf { z } _ { l \mid t + j } ^ { a _ { t + j : t + j + l - 1 } } - \mathbf { z } _ { 0 \mid t + j + l } \right) ^ { 2 } .
169
+ $$
170
+
171
+ By employing an additional decoder module, we could use a similar loss to regress decoded observations to the true observations. In informal experiments, joint training with such a decoder loss did not yield good performance, as also found by Oh et al. (2017).
172
+
173
+ In Section 7.1, we present results on the use these objectives, showing that reward grounding gives better performance, but that our method for state grounding does not.
174
+
175
+ # 4 ATREEC
176
+
177
+ The intuitions guiding the design of TreeQN are as applicable to policy search as to valuebased RL, in that a policy can use a tree planner to improve its estimates of the optimal action probabilities (Gelly & Silver, 2007; Silver et al., 2017a). As our proposed architecture is trained end-to-end, it can be easily adapted for use as a policy network.
178
+
179
+ In particular, we propose ATreeC, an actor-critic extension of TreeQN. In this architecture, the policy network is identical to TreeQN, with an additional softmax layer that converts the $Q$ estimates into the probabilities of a stochastic policy.
180
+
181
+ ![](images/c25055870dfdd057fb07bebcc4851a33c1d3f8f989097e46a5424ba4be71f1b0.jpg)
182
+ Figure 3: High-level structure of ATreeC.
183
+
184
+ The critic shares the encoder parameters, and predicts a scalar state value with a single fully connected layer: $V _ { \mathrm { c r } } ( \mathbf { s } ) = \mathbf { w } _ { \mathrm { c r } } ^ { \top } \mathbf { z } + b _ { \mathrm { c r } }$ . We used different parameters for the critic value function and the actor’s tree-value-function module, but found that sharing these parameters had little effect on performance. The entire setup, shown in Fig. 3, is trained with A2C as described in Section 2, with the addition of the same auxiliary losses used for TreeQN. Note that TreeQN could also be used in the critic, but we leave this possibility to future work.
185
+
186
+ # 5 RELATED WORK
187
+
188
+ There is a long history of work combining model-based and model-free RL. An early example is Dyna-Q (Sutton, 1990) which trains a model-free algorithm with samples drawn from a learned model. Similarly, van Seijen et al. (2011) train a sparse model with some environment samples that can be used to refine a model-free $Q$ -function. Gu et al. (2016) use local linear models to generate additional samples for their model-free algorithm. However, these approaches do not attempt to use the model on-line to improve value estimates.
189
+
190
+ In deep RL, value iteration networks (Tamar et al., 2016) use a learned differentiable model to plan on the fly, but require planning over the full state space, which must also possess a spatial structure with local dynamics such that convolution operations can execute the planning algorithm.
191
+
192
+ The predictron (Silver et al., 2017b) instead learns abstract-state transition functions in order to predict values. However, it is restricted to policy evaluation without control. Value prediction networks (VPNs, Oh et al., 2017) take a similar approach but are more closely related to our work because the learned model components are used in a tree for planning. However, in their work this tree is only used to construct targets and choose actions, and not to compute the value estimates during training. Such estimates are instead produced from non-branching trajectories following on-policy action sequences. By contrast, TreeQN is a unified architecture that constructs the tree dynamically at every timestep and differentiates through it, eliminating any mismatch between the model at training and test time. Furthermore, we do not use convolutional transition functions, and hence do not impose spatial structure on the latent state representations. These differences simplify training, allow our model to be used more flexibly in other training regimes, and explain in part our substantially improved performance on the Atari benchmark.
193
+
194
+ Donti et al. (2017) propose differentiating through a stochastic programming optimisation using a probabilistic model to learn model parameters with respect to their true objective rather than a maximum likelihood surrogate. However, they do not tackle the full RL setting, and do not use the model to repeatedly or recursively refine predictions.
195
+
196
+ Imagination-augmented agents (Weber et al., 2017) learn to improve policies by aggregating rollouts predicted by a model. However, they rely on pretraining an observation-space model, which we argue will scale poorly to more complex environments. Further, their aggregation of rollout trajectories takes the form of a generic RNN rather than a value function and tree backup, so the inductive bias based on the structure of the MDP is not explicitly present.
197
+
198
+ A class of value gradient methods (Deisenroth & Rasmussen, 2011; Fairbank & Alonso, 2012; Heess et al., 2015) also differentiates through models to train a policy. However, this approach does not use the model during execution to refine the policy, and requires continuous action spaces.
199
+
200
+ Oh et al. (2015) and Chiappa et al. (2017) propose methods for learning observation-prediction models in the Atari domain, but use these models only to improve exploration. Variants of scheduled sampling (Bengio et al., 2015) may be used to improve robustness of these models, but scaling to complex domains has proven challenging (Talvitie, 2014).
201
+
202
+ # 6 EXPERIMENTS
203
+
204
+ We evaluate TreeQN and ATreeC in a simple box-pushing environment, as well as on the subset of nine Atari environments that Oh et al. (2017) use to evaluate VPN. The experiments are designed to determine whether or not TreeQN and ATreeC outperform DQN, A2C, and VPN, and whether they can scale to complex domains. We also investigate how to best ground the the transition function with auxiliary losses. Furthermore, we compare against alternative ways to increase the number of parameters and computations of a standard DQN architecture, and study the impact of tree depth. Full details of the experimental setup, as well as architecture and training hyperparameters, are given in the appendix.
205
+
206
+ Grounding. We perform a hyperparameter search over the coefficients $\eta _ { r }$ and $\eta _ { s }$ of the reward and state grounding auxiliary losses, on the Atari environment Seaquest. These experiments aim to determine the relevant trade-offs between the flexibility of a model-free approach and the potential benefits of a more model-based algorithm.
207
+
208
+ Box Pushing. We randomly place an agent, 12 boxes, 5 goals and 6 obstacles on the center $6 \times 6$ tiles of an $8 \times 8$ grid. The agent’s goal is to push boxes into goals in as few steps as possible while avoiding obstacles. Boxes may not be pushed into each other. The obstacles, however, are ‘soft’ in that they are do not block movement, but generate a negative reward if the agent or a box moves onto an obstacle. This rewards better planning without causing excessive gridlock. This environment is inspired by Sokoban, as used by Weber et al. (2017), in that poor actions can generate irreversibly bad configurations. However, the level generation process for Sokoban is challenging to reproduce exactly and has not been open-sourced. More details of the environment and rewards are given in Appendix A.1.
209
+
210
+ ![](images/97da6ea8c2b8e8eaa44c239e1def910645c5c0d4ba1ee593d6f68ab36d648d3a.jpg)
211
+ Figure 4: Grounding the reward and transition functions using auxiliary losses: final returns on Seaquest plotted against the coefficient of the auxiliary loss.
212
+
213
+ Atari. To demonstrate the general applicability of TreeQN and ATreeC to complex environments, we evaluate them on the Atari 2600 suite (Bellemare et al., 2013). Following Oh et al. (2017), we use their set of nine environments and a frameskip of 10 to facilitate planning over reasonable timescales.
214
+
215
+ TreeQN adds additional parameters to a standard DQN architecture. We compare TreeQN to two baseline architectures with increased computation and numbers of parameters to verify the benefit of the additional structure and grounding. DQN-Wide doubles the size of the embedding dimension (1024 instead of 512). DQN-Deep inserts two additional fully connected layers with shared parameters and residual connections between the two fully-connected layers of DQN. This is in effect a non-branching version of the TreeQN architecture that also lacks explicit reward prediction.
216
+
217
+ # 7 RESULTS & DISCUSSION
218
+
219
+ In this section, we present our experimental results for TreeQN and ATreeC.
220
+
221
+ # 7.1 GROUNDING
222
+
223
+ Fig. 4 shows the result of a hyperparameter search on $\eta _ { r }$ and $\eta _ { s }$ , the coefficients of the auxiliary losses on the predicted rewards and latent states. An intermediate value of $\eta _ { r }$ helps performance but there is no benefit to using the latent space loss. Subsequent experiments use $\eta _ { r } = 1$ and $\eta _ { s } = 0$ .
224
+
225
+ The predicted rewards that the reward-grounding objective encourages the model to learn appear both in its own $Q$ -value prediction and in the target for $n$ -step $Q$ -learning. Consequently, we expect this auxiliary loss to be well aligned with the true objective. By contrast, the state-grounding loss (and other potential auxiliary losses) might help representation learning but would not explicitly learn any part of the desired target. It is possible that this mismatch between the auxiliary and primary objective leads to degraded performance when using this form of state grounding. One potential route to overcoming this obstacle to joint training would be pre-training a model, as done by Weber et al. (2017). Inside TreeQN this model could then be fine-tuned to perform well inside the planner. We leave this possiblity to future work.
226
+
227
+ # 7.2 BOX PUSHING
228
+
229
+ Fig. 5a shows the results of TreeQN with tree depths 1, 2, and 3, compared to a DQN baseline. In this domain, there is a clear advantage for the TreeQN architecture over DQN. TreeQN learns policies that are substantially better at avoiding obstacles and lining boxes up with goals so they can be easily pushed in later. TreeQN also substantially speeds up learning. We believe that the greater structure brought by our architecture regularises the model, encouraging appropriate state representations to be learned quickly. Even a depth-1 tree improves performance significantly, as disentangling the estimation of rewards and next-state values makes them easier to learn. This is further facilitated by the sharing of value-function parameters across branches.
230
+
231
+ ![](images/bbb23d8d559767eabf733b8c2ecddefc93e437f2c2583281060880ce9d7b044a.jpg)
232
+ Figure 5: Box-pushing results: the $x$ -axis shows the number of transitions observed across all of the synchronous environment threads.
233
+
234
+ When trained with $n$ -step Q-learning, the deeper depth-2 and depth-3 trees learn faster and plateau higher than the shallow depth-1 tree. In the this domain, useful transition functions are relatively easy to learn, and the extra computation time with those transition modules can help refine value estimates, yielding advantages for additional depth.
235
+
236
+ Fig. 5b shows the results of ATreeC with tree depths 1, 2, and 3, compared to an A2C baseline. As with TreeQN, ATreeC substantially outperforms the baseline. Furthermore, thanks to its stochastic policy, it substantially outperforms TreeQN. Whereas TreeQN and DQN sometimes indecisively bounce back and forth between adjacent states, ATreeC captures this uncertainty in its policy probabilities and thus acts more decisively. However, unlike TreeQN, ATreeC shows no pronounced differences for different tree depths. This is in part due to a ceiling effect in this domain. However, ATreeC is also gated by the quality of the critic’s value function, which in these experiments was a single linear layer after the state encoding as described in Section 4. Nonetheless, this result demonstrates the ease with which TreeQN can be used as a drop-in replacement for any deep RL algorithm that learns policies or value functions for discrete actions.
237
+
238
+ # 7.3 ATARI
239
+
240
+ Table 1 summarises all our Atari results, while Fig. 6 shows learning curves in depth. TreeQN shows substantial benefits in many environments compared to our DQN baseline, which itself often outperforms VPN (Oh et al., 2017). ATreeC always matches or outperforms A2C. We present the mean performance of five random seeds, while the VPN results reported by Oh et al. (2017), shown as dashed lines in Fig. 6, are the mean of the best five seeds of an unspecified number of trials.
241
+
242
+ TreeQN. In all environments except Frostbite, TreeQN outperforms DQN on average, with the most significant gains in Alien, CrazyClimber, Enduro, Krull, and Seaquest. Many of these environments seem well suited to short horizon look-ahead planning, with simple dynamics that generalise well and tradeoffs between actions that become apparent only after several timesteps. For example, an incorrect action in Alien can trap the agent down a corridor with an alien. In Seaquest, looking ahead could help determine whether it is better to go deeper to collect more points or to surface for oxygen. However, even in a game with mostly reactive decisions like the racing game Enduro, TreeQN shows significant benefits.
243
+
244
+ TreeQN also outperforms the additional baselines of DQN-Wide and DQN-Deep, indicating that the additional structure and grounding of our architecture brings benefits beyond simply adding model capacity and computation. In particular, it is interesting that DQN-Deep is often outperformed by the vanilla DQN baseline, as optimisation difficulties grow with depth. In contrast, the additional structure and auxiliary loss employed by TreeQN turn its additional depth from a liability into a strength.
245
+
246
+ ![](images/8a8b0162732a2a7f45e78c6ce7220ef0c080f2a73238d623627d2ab9ddf1a446.jpg)
247
+ Figure 6: Results for the Atari domain. The y-axis shows the moving average over 100 episodes. Each of five random seeds is plotted faintly, with the mean in bold.
248
+
249
+ Table 1: Summary of Atari results. Each number is the best score throughout training, calculated as the mean of the last 100 episode rewards averaged over exactly five agents trained with different random seeds. Note that Oh et al. (2017) report the same statistic, but average instead over the best five of an unspecified number of agents.
250
+
251
+ <table><tr><td></td><td>Alien</td><td>Amidar</td><td>Crazy Climber</td><td>Enduro</td><td>Frostbite</td><td>Krull</td><td>Ms.Pacman</td><td>Q*Bert</td><td>Seaquest</td></tr><tr><td>DQN (Oh et al., 2017)</td><td>1804</td><td>535</td><td>41658</td><td>326</td><td>3058</td><td>12438</td><td>2804</td><td>12592</td><td>2951</td></tr><tr><td>VPN (Oh et al.,2017)</td><td>1429</td><td>641</td><td>54119</td><td>382</td><td>3811</td><td>15930</td><td>2689</td><td>14517</td><td>5628</td></tr><tr><td>n-step DQN</td><td>1969</td><td>1033</td><td>71623</td><td>625</td><td>3968</td><td>7860</td><td>2774</td><td>14468</td><td>3465</td></tr><tr><td>DQN-Deep</td><td>1906</td><td>825</td><td>53101</td><td>745</td><td>493</td><td>8605</td><td>2410</td><td>15094</td><td>3575</td></tr><tr><td>DQN-Wide</td><td>2187</td><td>1074</td><td>91380</td><td>682</td><td>3493</td><td>6603</td><td>3061</td><td>15794</td><td>3909</td></tr><tr><td>TreeQN-1</td><td>2321</td><td>1030</td><td>107983</td><td>800</td><td>2254</td><td>10836</td><td>3030</td><td>15688</td><td>9302</td></tr><tr><td>TreeQN-2</td><td>2497</td><td>1170</td><td>104932</td><td>825</td><td>581</td><td>11035</td><td>3277</td><td>15970</td><td>8241</td></tr><tr><td>A2C</td><td>2673</td><td>1525</td><td>102776</td><td>642</td><td>297</td><td>5784</td><td>4352</td><td>24451</td><td>1734</td></tr><tr><td>ATreeC-1</td><td>3448</td><td>1578</td><td>102546</td><td>678</td><td>1035</td><td>8227</td><td>4866</td><td>25159</td><td>1734</td></tr><tr><td>ATreeC-2</td><td>2813</td><td>1566</td><td>110712</td><td>649</td><td>281</td><td>8134</td><td>4450</td><td>25459</td><td>2176</td></tr></table>
252
+
253
+ ATreeC. ATreeC matches or outperforms its baseline (A2C) in all environments. Compared to TreeQN, ATreeC’s performance is better across most environments, particularly on Qbert, reflecting an overall advantage for actor-critic also found by Mnih et al. (2016) and in our box-pushing experiments. However, performance is much worse on Seaquest, revealing a deficiency in exploration as policy entropy collapses too rapidly and consequently the propensity of policy gradient methods to become trapped in a local optimum.
254
+
255
+ In Krull and Frostbite, most algorithms have poor performance, or high variance in returns from run to run, as agents are gated by their ability to explore. Both of these games require the completion of sub-levels in order to accumulate large scores, and none of our agents reliably explore beyond the initial stages of the game. Mean performance appears to favor TreeQN and ATreeC in Krull, and perhaps DQN in Frostbite, but the returns are too variable to draw conclusions from this number of random seeds. Combining TreeQN and ATreeC with smart exploration mechanisms is an interesting direction for future work to improve robustness of training in these types of environments.
256
+
257
+ Compared to the box-pushing domain, there is less of a clear performance difference between trees of different depths. In some environments (Amidar, MsPacman), greater depth does appear to be employed usefully by TreeQN to a small extent, resulting in the best-performing individual agents. However, for the Atari domain the embedding size for the transition function we use is much larger (512 compared to 128), and the dynamics are much more complex. Consequently, we expect that optimisation difficulties, and the challenge of learning abstract-state transition functions, impede the utility of deeper trees in some cases. We look to future work to further refine methods for learning to plan abstractly in complex domains. However, the decomposition of Q-value into reward and next-state value employed by the first tree expansion is clearly of utility in a broad range of tasks.
258
+
259
+ When inspecting the learned policies and trees, we find that the values sometimes correspond to intuitive reasoning about sensible policies, scoring superior action sequences above poorer ones. However, we find that the actions corresponding to branches of the tree that are scored most highly are frequently not taken in future timesteps. The flexibility of TreeQN and ATreeC allows our agents to find any useful way to exploit the computation in the tree to refine action-value estimates. As we found no effective way to strongly ground the model components without sacrificing performance, the interpretability of learned trees is limited.
260
+
261
+ # 8 CONCLUSIONS & FUTURE WORK
262
+
263
+ We presented TreeQN and ATreeC, new architectures for deep reinforcement learning in discreteaction domains that integrate differentiable on-line tree planning into the action-value function or policy. Experiments on a box-pushing domain and a set of Atari games show the benefit of these architectures over their counterparts, as well as over VPN. In future work, we intend to investigate enabling more efficient optimisation of deeper trees, encouraging the transition functions to produce interpretable plans, and integrating smart exploration.
264
+
265
+ # ACKNOWLEDGMENTS
266
+
267
+ We thank Sasha Salter, Luisa Zintgraf, and Wendelin Bohmer for their contributions and valuable ¨ comments on drafts of this paper. This work was supported by the UK EPSRC CDT in Autonomous Intelligent Machines and Systems. This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement #637713). The NVIDIA DGX-1 used for this research was donated by the NVIDIA Corporation.
268
+
269
+ # REFERENCES
270
+
271
+ Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. J. Artif. Intell. Res.(JAIR), 47:253–279, 2013.
272
+
273
+ Samy Bengio, Oriol Vinyals, Navdeep Jaitly, and Noam Shazeer. Scheduled sampling for sequence prediction with recurrent neural networks. In Advances in Neural Information Processing Systems, pp. 1171–1179, 2015.
274
+
275
+ Cameron B Browne, Edward Powley, Daniel Whitehouse, Simon M Lucas, Peter I Cowling, Philipp Rohlfshagen, Stephen Tavener, Diego Perez, Spyridon Samothrakis, and Simon Colton. A survey of monte carlo tree search methods. IEEE Transactions on Computational Intelligence and AI in games, 4(1):1–43, 2012.
276
+
277
+ Silvia Chiappa, Sebastien Racaniere, Daan Wierstra, and Shakir Mohamed. Recurrent environment ´ simulators. arXiv preprint arXiv:1704.02254, 2017.
278
+
279
+ Remi Coulom. Efficient selectivity and backup operators in monte-carlo tree search. In ´ Computers and Games, 5th International Conference, CG 2006, Turin, Italy, May 29-31, 2006. Revised Papers, pp. 72–83, 2006. doi: 10.1007/978-3-540-75538-8 7.
280
+
281
+ Marc Deisenroth and Carl E Rasmussen. Pilco: A model-based and data-efficient approach to policy search. In Proceedings of the 28th International Conference on machine learning (ICML-11), pp. 465–472, 2011.
282
+
283
+ Priya L Donti, Brandon Amos, and J Zico Kolter. Task-based end-to-end model learning. arXiv preprint arXiv:1703.04529, 2017.
284
+
285
+ Michael Fairbank and Eduardo Alonso. Value-gradient learning. In Neural Networks (IJCNN), The 2012 International Joint Conference on, pp. 1–8. IEEE, 2012.
286
+
287
+ Sylvain Gelly and David Silver. Combining online and offline knowledge in uct. In Proceedings of the 24th international conference on Machine learning, pp. 273–280. ACM, 2007.
288
+
289
+ Shixiang Gu, Timothy Lillicrap, Ilya Sutskever, and Sergey Levine. Continuous deep q-learning with model-based acceleration. In International Conference on Machine Learning, pp. 2829–2838, 2016.
290
+
291
+ Nicolas Heess, Gregory Wayne, David Silver, Tim Lillicrap, Tom Erez, and Yuval Tassa. Learning continuous control policies by stochastic value gradients. In Advances in Neural Information Processing Systems, pp. 2944–2952, 2015.
292
+
293
+ Christopher Hesse, Matthias Plappert, Alec Radford, John Schulman, Szymon Sidor, and Yuhuai Wu. Openai baselines. https://github.com/openai/baselines, 2017.
294
+
295
+ Donald E Knuth and Ronald W Moore. An analysis of alpha-beta pruning. Artificial intelligence, 6 (4):293–326, 1975.
296
+
297
+ Levente Kocsis and Csaba Szepesvari. Bandit based monte-carlo planning. In ´ Machine Learning: ECML 2006, 17th European Conference on Machine Learning, Berlin, Germany, September 18-22, 2006, Proceedings, pp. 282–293, 2006. doi: 10.1007/11871842 29.
298
+
299
+ Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin A. Riedmiller, Andreas Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015. doi: 10.1038/nature14236.
300
+
301
+ Volodymyr Mnih, Adria Puigdom \` enech Badia, Mehdi Mirza, Alex Graves, Timothy P. Lillicrap, Tim \` Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In Proceedings of the 33nd International Conference on Machine Learning, ICML 2016, New York City, NY, USA, June 19-24, 2016, pp. 1928–1937, 2016.
302
+
303
+ Vinod Nair and Geoffrey E. Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), June 21-24, 2010, Haifa, Israel, pp. 807–814, 2010.
304
+
305
+ Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard L Lewis, and Satinder Singh. Action-conditional video prediction using deep networks in atari games. In Advances in Neural Information Processing Systems, pp. 2863–2871, 2015.
306
+
307
+ Junhyuk Oh, Satinder Singh, and Honglak Lee. Value prediction network. arXiv preprint arXiv:1707.03497, 2017.
308
+
309
+ Deepak Pathak, Pulkit Agrawal, Alexei A Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. arXiv preprint arXiv:1705.05363, 2017.
310
+
311
+ David Silver, Richard S. Sutton, and Martin Muller. Temporal-difference search in computer go.¨ Machine Learning, 87(2):183–219, 2012. doi: 10.1007/s10994-012-5280-0.
312
+
313
+ David Silver, Aja Huang, Chris J. Maddison, Arthur Guez, Laurent Sifre, George van den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Vedavyas Panneershelvam, Marc Lanctot, Sander Dieleman, Dominik Grewe, John Nham, Nal Kalchbrenner, Ilya Sutskever, Timothy P. Lillicrap, Madeleine Leach, Koray Kavukcuoglu, Thore Graepel, and Demis Hassabis. Mastering the game of go with deep neural networks and tree search. Nature, 529(7587):484–489, 2016. doi: 10.1038/nature16961.
314
+
315
+ David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of go without human knowledge. Nature, 550(7676):354–359, 2017a.
316
+
317
+ David Silver, Hado van Hasselt, Matteo Hessel, Tom Schaul, Arthur Guez, Tim Harley, Gabriel Dulac-Arnold, David P. Reichert, Neil Rabinowitz, Andre Barreto, and Thomas Degris. The ´ predictron: End-to-end learning and planning. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, pp. 3191–3199, 2017b.
318
+
319
+ Nathan R Sturtevant. An analysis of uct in multi-player games. In International Conference on Computers and Games, pp. 37–49. Springer, 2008.
320
+
321
+ Richard S Sutton. Learning to predict by the methods of temporal differences. Machine learning, 3 (1):9–44, 1988.
322
+
323
+ Richard S. Sutton. Integrated architectures for learning, planning, and reacting based on approximating dynamic programming. In Machine Learning, Proceedings of the Seventh International Conference on Machine Learning, Austin, Texas, USA, June 21-23, 1990, pp. 216–224, 1990.
324
+
325
+ Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction, volume 1. MIT press Cambridge, 1998.
326
+
327
+ Erik Talvitie. Model regularization for stable sample rollouts. In UAI, pp. 780–789, 2014.
328
+
329
+ Erik Talvitie. Self-correcting models for model-based reinforcement learning. In AAAI, pp. 2597– 2603, 2017.
330
+
331
+ Aviv Tamar, Sergey Levine, Pieter Abbeel, Yi Wu, and Garrett Thomas. Value iteration networks. In Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016, December 5-10, 2016, Barcelona, Spain, pp. 2146–2154, 2016.
332
+
333
+ Tijmen Tieleman and Geoffrey Hinton. Lecture 6.5-rmsprop: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural networks for machine learning, 4(2):26–31, 2012.
334
+
335
+ Harm van Seijen, Shimon Whiteson, Hado van Hasselt, and Marco Wiering. Exploiting best-match equations for efficient reinforcement learning. Journal of Machine Learning Research, 12(Jun): 2045–2094, 2011.
336
+
337
+ Christopher J. C. H. Watkins and Peter Dayan. Q-learning. Machine Learning, 8:279–292, 1992. doi: 10.1007/BF00992698.
338
+
339
+ Theophane Weber, Sebastien Racani ´ ere, David P. Reichert, Lars Buesing, Arthur Guez, \` Danilo Jimenez Rezende, Adria Puigdom \` enech Badia, Oriol Vinyals, Nicolas Heess, Yujia Li, \` Razvan Pascanu, Peter Battaglia, David Silver, and Daan Wierstra. Imagination-augmented agents for deep reinforcement learning. CoRR, abs/1707.06203, 2017.
340
+
341
+ # A APPENDIX
342
+
343
+ # A.1 BOX PUSHING
344
+
345
+ Environment. For each episode, a new level is generated by placing an agent, 12 boxes, 5 goals and 6 obstacles in the center $6 \times 6$ tiles of an $8 \times 8$ grid, sampling locations uniformly. The outer tiles are left empty to prevent initial situations where boxes cannot be recovered.
346
+
347
+ The agent may move in the four cardinal directions. If the agent steps off the grid, the episode ends and the agent receives a penalty of $- 1$ . If the agent moves into a box, it is pushed in the direction of movement. Moving a box out of the grid generates a penalty of $- 0 . 1$ . Moving a box into another box is not allowed and trying to do so generates a penalty of $- 0 . 1$ while leaving all positions unchanged. When a box is pushed into a goal, it is removed and the agent receives a reward of $+ 1$ .
348
+
349
+ Obstacles generate a penalty of $- 0 . 2$ when the agent or a box is moved onto them. Moving the agent over goals incurs no penalty. Lastly, at each timestep the agent receives a penalty of $- 0 . 0 1$ . Episodes terminate when 75 timesteps have elapsed, the agent has left the grid, or no boxes remain.
350
+
351
+ The observation is given to the model as a tensor of size $5 \times 8 \times 8$ . The first four channels are binary encodings of the position of the agent, goals, boxes, and obstacles respectively. The final channel is filled with the number of timesteps remaining (normalised by the total number of timesteps allowed).
352
+
353
+ Architecture. The encoder consists of (conv-3x3-1-24, conv-3x3-1-24, conv-4x4-1-48, fc-128), where conv-wxh-s-n denotes a convolution with $n$ filters of size $w \times h$ and stride $s$ , and fc-h denotes a fully connected layer with $h$ hidden units. All layers are separated with ReLU nonlinearities. The hidden layer of the reward function MLP has 64 hidden units.
354
+
355
+ # A.2 ATARI
356
+
357
+ Preprocessing of inputs follows the procedure of Mnih et al. (2015), including concatenation of the last four frames as input, although we use a frameskip of 10.
358
+
359
+ Architecture. The Atari experiments have the same architecture as for box-pushing, except for the encoder architecture which is as follows: (conv-8x8-4-16, conv-4x4-2-32, fc-512).
360
+
361
+ # A.3 OTHER HYPERPARAMETERS
362
+
363
+ All experiments use RMSProp (Tieleman & Hinton, 2012) with a learning rate of 1e-4, a decay of $\alpha = 0 . 9 9$ , and $\epsilon = 1 \mathrm { e } { - } 5$ .
364
+
365
+ The learning rate was tuned coarsely by running DQN on the Seaquest environment, and kept the same for all subsequent experiments (box-pushing and Atari).
366
+
367
+ For DQN and TreeQN, $\epsilon$ for $\epsilon$ -greedy exploration was decayed linearly from 1 to 0.05 over the first 4 million environment transitions observed (after frameskipping, so over 40 million atomic Atari timesteps).
368
+
369
+ For A2C and ATreeC, we use a value-function loss coefficient $\alpha = 0 . 5$ and an entropy regularisation $\beta = 0 . 0 1$ .
370
+
371
+ The reward prediction loss was scaled by $\eta _ { r } = 1$
372
+
373
+ We use $n _ { \mathrm { s t e p s } } = 5$ and $n _ { \mathrm { e n v s } } = 1 6$ , for a total batch size of 80.
374
+
375
+ The discount factor is $\gamma = 0 . 9 9$ and the target networks are updated every $4 0 , 0 0 0$ environment transitions.
parse/train/H1dh6Ax0Z/H1dh6Ax0Z_content_list.json ADDED
@@ -0,0 +1,2034 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "TREEQN AND ATREEC: DIFFERENTIABLE TREE-STRUCTURED MODELS FOR DEEP REINFORCEMENT LEARNING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 821,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Gregory Farquhar1 gregory.farquhar@cs.ox.ac.uk ",
17
+ "bbox": [
18
+ 184,
19
+ 194,
20
+ 459,
21
+ 223
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Tim Rocktaschel¨ 1 tim.rocktaschel@cs.ox.ac.uk ",
28
+ "bbox": [
29
+ 547,
30
+ 195,
31
+ 813,
32
+ 223
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Maximilian Igl1 maximilian.igl@cs.ox.ac.uk ",
39
+ "bbox": [
40
+ 184,
41
+ 243,
42
+ 441,
43
+ 273
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Shimon Whiteson1 shimon.whiteson@cs.ox.ac.uk ",
50
+ "bbox": [
51
+ 547,
52
+ 244,
53
+ 813,
54
+ 272
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "1University of Oxford, United Kingdom ",
61
+ "bbox": [
62
+ 186,
63
+ 292,
64
+ 447,
65
+ 308
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "ABSTRACT ",
72
+ "text_level": 1,
73
+ "bbox": [
74
+ 454,
75
+ 345,
76
+ 544,
77
+ 361
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "Combining deep model-free reinforcement learning with on-line planning is a promising approach to building on the successes of deep RL. On-line planning with look-ahead trees has proven successful in environments where transition models are known a priori. However, in complex environments where transition models need to be learned from data, the deficiencies of learned models have limited their utility for planning. To address these challenges, we propose TreeQN, a differentiable, recursive, tree-structured model that serves as a drop-in replacement for any value function network in deep RL with discrete actions. TreeQN dynamically constructs a tree by recursively applying a transition model in a learned abstract state space and then aggregating predicted rewards and state-values using a tree backup to estimate $Q$ -values. We also propose ATreeC, an actor-critic variant that augments TreeQN with a softmax layer to form a stochastic policy network. Both approaches are trained end-to-end, such that the learned model is optimised for its actual use in the tree. We show that TreeQN and ATreeC outperform $n$ -step DQN and A2C on a box-pushing task, as well as $n$ -step DQN and value prediction networks (Oh et al., 2017) on multiple Atari games. Furthermore, we present ablation studies that demonstrate the effect of different auxiliary losses on learning transition models. ",
84
+ "bbox": [
85
+ 233,
86
+ 377,
87
+ 766,
88
+ 613
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "1 INTRODUCTION ",
95
+ "text_level": 1,
96
+ "bbox": [
97
+ 176,
98
+ 641,
99
+ 336,
100
+ 656
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "A promising approach to improving model-free deep reinforcement learning (RL) is to combine it with on-line planning. The model-free value function can be viewed as a rough global estimate which is then locally refined on the fly for the current state by the on-line planner. Crucially, this does not require new samples from the environment but only additional computation, which is often available. ",
107
+ "bbox": [
108
+ 174,
109
+ 672,
110
+ 825,
111
+ 728
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "One strategy for on-line planning is to use look-ahead tree search (Knuth & Moore, 1975; Browne et al., 2012). Traditionally, such methods have been limited to domains where perfect environment simulators are available, such as board or card games (Coulom, 2006; Sturtevant, 2008). However, in general, models for complex environments with high dimensional observation spaces and complex dynamics must be learned from agent experience. Unfortunately, to date, it has proven difficult to learn models for such domains with sufficient fidelity to realise the benefits of look-ahead planning (Oh et al., 2015; Talvitie, 2017). ",
118
+ "bbox": [
119
+ 174,
120
+ 736,
121
+ 825,
122
+ 833
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "A simple approach to learning environment models is to maximise a similarity metric between model predictions and ground truth in the observation space. This approach has been applied with some success in cases where model fidelity is less important, e.g., for improving exploration (Chiappa et al., 2017; Oh et al., 2015). However, this objective causes significant model capacity to be devoted to predicting irrelevant aspects of the environment dynamics, such as noisy backgrounds, at the expense of value-critical features that may occupy only a small part of the observation space (Pathak et al., ",
129
+ "bbox": [
130
+ 174,
131
+ 840,
132
+ 825,
133
+ 924
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2017). Consequently, current state-of-the-art models still accumulate errors too rapidly to be used for look-ahead planning in complex environments. ",
140
+ "bbox": [
141
+ 171,
142
+ 103,
143
+ 823,
144
+ 132
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "Another strategy is to train a model such that, when it is used to predict a value function, the error in those predictions is minimised. Doing so can encourage the model to focus on features of the observations that are relevant for the control task. An example is the predictron (Silver et al., 2017b), where the model is used to aid policy evaluation without addressing control. Value prediction networks (VPNs, Oh et al., 2017) take a similar approach but use the model to construct a look-ahead tree only when constructing bootstrap targets and selecting actions, similarly to TD-search (Silver et al., 2012). Crucially, the model is not embedded in a planning algorithm during optimisation. ",
151
+ "bbox": [
152
+ 174,
153
+ 138,
154
+ 825,
155
+ 237
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "We propose a new tree-structured neural network architecture to address the aforementioned problems. By formulating the tree look-ahead in a differentiable way and integrating it directly into the $Q$ - function or policy, we train the entire agent, including its learned transition model, end-to-end. This ensures that the model is optimised for the correct goal and is suitable for on-line planning during execution of the policy. ",
162
+ "bbox": [
163
+ 174,
164
+ 243,
165
+ 825,
166
+ 313
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "Since the transition model is only weakly grounded in the actual environment, our approach can alternatively be viewed as a model-free method in which the fully connected layers of DQN are replaced by a recursive network that applies transition functions with shared parameters at each tree node expansion. ",
173
+ "bbox": [
174
+ 174,
175
+ 319,
176
+ 825,
177
+ 376
178
+ ],
179
+ "page_idx": 1
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "The resulting architecture, which we call TreeQN, encodes an inductive bias based on the prior knowledge that the environment is a stationary Markov process, which facilitates faster learning of better policies. We also present an actor-critic variant, ATreeC, in which the tree is augmented with a softmax layer and used as a policy network. ",
184
+ "bbox": [
185
+ 174,
186
+ 382,
187
+ 825,
188
+ 439
189
+ ],
190
+ "page_idx": 1
191
+ },
192
+ {
193
+ "type": "text",
194
+ "text": "We show that TreeQN and ATreeC outperform their DQN-based counterparts in a box-pushing domain and a suite of Atari games, with deeper trees often outperforming shallower trees, and TreeQN outperforming VPN (Oh et al., 2017) on most Atari games. We also present ablation studies investigating various auxiliary losses for grounding the transition model more strongly in the environment, which could improve performance as well as lead to interpretable internal plans. While we show that grounding the reward function is valuable, we conclude that how to learn strongly grounded transition models and generate reliably interpretable plans without compromising performance remains an open research question. ",
195
+ "bbox": [
196
+ 173,
197
+ 445,
198
+ 825,
199
+ 558
200
+ ],
201
+ "page_idx": 1
202
+ },
203
+ {
204
+ "type": "text",
205
+ "text": "2 BACKGROUND ",
206
+ "text_level": 1,
207
+ "bbox": [
208
+ 174,
209
+ 592,
210
+ 326,
211
+ 608
212
+ ],
213
+ "page_idx": 1
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "We consider an agent learning to act in a Markovimising its expected discounted sum of rewards $\\begin{array} { r } { R _ { t } = \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } r _ { t } } \\end{array}$ s (MDP), with the goa, by learning a policy $\\pi ( \\mathbf { s } )$ max-that maps states to actions . The state-action value function $Q$ -function) is defined as $\\begin{array} { r } { Q ^ { \\pi } ( \\mathbf { s } , a ) = \\mathbb { E } _ { \\pi } \\left[ R _ { t } | \\mathbf { s } _ { t } = \\mathbf { s } , a _ { t } = a \\right] } \\end{array}$ ; the optimal $Q$ -function is $Q ^ { * } ( \\mathbf { s } , a ) = \\operatorname* { m a x } _ { \\pi } Q ^ { \\pi } ( \\mathbf { s } , a )$ . ",
218
+ "bbox": [
219
+ 174,
220
+ 632,
221
+ 825,
222
+ 690
223
+ ],
224
+ "page_idx": 1
225
+ },
226
+ {
227
+ "type": "text",
228
+ "text": "The Bellman optimality equation writes $Q ^ { * }$ recursively as ",
229
+ "bbox": [
230
+ 174,
231
+ 695,
232
+ 553,
233
+ 710
234
+ ],
235
+ "page_idx": 1
236
+ },
237
+ {
238
+ "type": "equation",
239
+ "img_path": "images/f0325e8db1192dd6201596cb4422597d173141d7c85562bc1cc2675910818cf7.jpg",
240
+ "text": "$$\nQ ^ { * } ( \\mathbf { s } , a ) = T Q ^ { * } ( \\mathbf { s } , a ) \\equiv r ( \\mathbf { s } , a ) + \\gamma \\sum _ { \\mathbf { s ^ { \\prime } } } P ( \\mathbf { s } ^ { \\prime } | \\mathbf { s } , a ) \\operatorname* { m a x } _ { a ^ { \\prime } } Q ^ { * } ( \\mathbf { s } ^ { \\prime } , a ^ { \\prime } ) ,\n$$",
241
+ "text_format": "latex",
242
+ "bbox": [
243
+ 276,
244
+ 731,
245
+ 720,
246
+ 763
247
+ ],
248
+ "page_idx": 1
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "where $P$ is the MDP state transition function and $r$ is a reward function, which for simplicity we assume to be deterministic. $Q$ -learning (Watkins $\\&$ Dayan, 1992) uses a single-sample approximation of the contraction operator $\\tau$ to iteratively improve an estimate of $Q ^ { * }$ . ",
253
+ "bbox": [
254
+ 174,
255
+ 784,
256
+ 825,
257
+ 827
258
+ ],
259
+ "page_idx": 1
260
+ },
261
+ {
262
+ "type": "text",
263
+ "text": "In deep $Q$ -learning (Mnih et al., 2015), $Q$ is represented by a deep neural network with parameters $\\theta$ , and is improved by regressing $Q ( \\mathbf { s } , a )$ to a target $r + \\bar { \\gamma } \\operatorname* { m a x } _ { a ^ { \\prime } } Q ( \\mathbf { s } ^ { \\prime } , a ^ { \\prime } ; \\theta ^ { - } )$ , where $\\theta ^ { - }$ are the parameters of a target network periodically copied from $\\theta$ . ",
264
+ "bbox": [
265
+ 174,
266
+ 832,
267
+ 825,
268
+ 875
269
+ ],
270
+ "page_idx": 1
271
+ },
272
+ {
273
+ "type": "text",
274
+ "text": "We use a version of $n$ -step $Q$ -learning (Mnih et al., 2016) with synchronous environment threads. In particular, starting at a timestep $t$ , we roll forward $n _ { \\mathrm { e n v } } = 1 6$ threads for $n = 5$ timesteps each. We then bootstrap off the final states only and gather all $n _ { \\mathrm { e n v } } \\times n = 8 0$ transitions in a single batch for ",
275
+ "bbox": [
276
+ 174,
277
+ 881,
278
+ 823,
279
+ 924
280
+ ],
281
+ "page_idx": 1
282
+ },
283
+ {
284
+ "type": "text",
285
+ "text": "the backward pass, minimising the loss: ",
286
+ "bbox": [
287
+ 174,
288
+ 103,
289
+ 436,
290
+ 118
291
+ ],
292
+ "page_idx": 2
293
+ },
294
+ {
295
+ "type": "equation",
296
+ "img_path": "images/cb4fe8eae95faef35b8d32e21ad413f41a947335fbd30d9afcfdb492e52878de.jpg",
297
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { n s t e p . Q } } = \\sum _ { \\mathrm { e n v s } } \\sum _ { j = 1 } ^ { n } \\left( \\sum _ { k = 1 } ^ { j } \\left[ \\gamma ^ { j - k } r _ { t + n - k } \\right] + \\gamma ^ { j } \\operatorname* { m a x } _ { a ^ { \\prime } } Q \\left( \\mathbf { s } _ { t + n } , a ^ { \\prime } , \\theta ^ { - } \\right) - Q \\left( \\mathbf { s } _ { t + n - j } , a _ { t + n - j } , \\theta \\right) \\right) ^ { 2 } .\n$$",
298
+ "text_format": "latex",
299
+ "bbox": [
300
+ 181,
301
+ 122,
302
+ 818,
303
+ 170
304
+ ],
305
+ "page_idx": 2
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "If the episode terminates, we use the remaining episode return as the target, without bootstrapping. ",
310
+ "bbox": [
311
+ 174,
312
+ 180,
313
+ 820,
314
+ 195
315
+ ],
316
+ "page_idx": 2
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "This algorithm’s actor-critic counterpart is A2C, a synchronous variant of A3C (Mnih et al., 2016) in which a policy $\\pi$ and state-value function $V ( s )$ are trained using the gradient: ",
321
+ "bbox": [
322
+ 173,
323
+ 202,
324
+ 825,
325
+ 231
326
+ ],
327
+ "page_idx": 2
328
+ },
329
+ {
330
+ "type": "equation",
331
+ "img_path": "images/c120c1ff46dc5e6c8e6fa8d0a5c89be14191aa3a3273e48447fb78ca5074f944.jpg",
332
+ "text": "$$\n\\Delta \\theta = \\sum _ { \\mathrm { e n v s } } \\sum _ { j = 1 } ^ { n } \\nabla _ { \\theta _ { \\tau } } \\log \\pi ( a _ { t + n - j } | s _ { t + n - j } ) A _ { j } ( s _ { t + n - j } , a _ { t + n - j } ) + \\beta \\nabla _ { \\theta _ { \\tau } } H ( \\pi ( s _ { t + n - j } ) )\n$$",
333
+ "text_format": "latex",
334
+ "bbox": [
335
+ 189,
336
+ 236,
337
+ 763,
338
+ 279
339
+ ],
340
+ "page_idx": 2
341
+ },
342
+ {
343
+ "type": "equation",
344
+ "img_path": "images/88d945befa96c109b91c575e4ff7b3015918194da7a50939bdf6db8d9cf667d2.jpg",
345
+ "text": "$$\n+ \\alpha \\nabla _ { \\theta _ { V } } A _ { j } ( s _ { t + n - j } , a _ { t + n - j } ) ^ { 2 } ,\n$$",
346
+ "text_format": "latex",
347
+ "bbox": [
348
+ 578,
349
+ 281,
350
+ 787,
351
+ 300
352
+ ],
353
+ "page_idx": 2
354
+ },
355
+ {
356
+ "type": "text",
357
+ "text": "where $A _ { j }$ is an advantage estimate given by $\\begin{array} { r } { \\sum _ { k = 1 } ^ { j } \\gamma ^ { j - k } r _ { t + n - k } + \\gamma ^ { j } V ( \\mathbf { s } _ { t + n } ) - V ( \\mathbf { s } _ { t + n - j } ) , . } \\end{array}$ $H$ is the policy entropy, $\\beta$ is a hyperparameter tuning the degree of entropy regularisation, and $\\alpha$ is a hyperparameter controlling the relative learning rates of actor and critic. ",
358
+ "bbox": [
359
+ 176,
360
+ 304,
361
+ 823,
362
+ 348
363
+ ],
364
+ "page_idx": 2
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "These algorithms were chosen for their simplicity and reasonable wallclock speeds, but TreeQN can also be used in other algorithms, as described in Section 3. Our implementations are based on OpenAI Baselines (Hesse et al., 2017). ",
369
+ "bbox": [
370
+ 176,
371
+ 354,
372
+ 823,
373
+ 397
374
+ ],
375
+ "page_idx": 2
376
+ },
377
+ {
378
+ "type": "text",
379
+ "text": "The canonical neural network architecture in deep RL with visual observations has a series of convolutional layers followed by two fully connected layers, where the final layer produces one output for each action-value. We can think of this network as first calculating an encoding $\\mathbf { z } _ { t }$ of the state $\\mathbf { s } _ { t }$ which is then evaluated by the final layer to estimate $Q ^ { * } ( \\mathbf { s } _ { t } , a )$ (see Fig. 1). ",
380
+ "bbox": [
381
+ 174,
382
+ 404,
383
+ 576,
384
+ 488
385
+ ],
386
+ "page_idx": 2
387
+ },
388
+ {
389
+ "type": "image",
390
+ "img_path": "images/a1c8aa777b391aa8e4813f2342fedb38e83445bf81cda679495660e595151def.jpg",
391
+ "image_caption": [
392
+ "Figure 1: High-level structure of DQN. "
393
+ ],
394
+ "image_footnote": [],
395
+ "bbox": [
396
+ 604,
397
+ 417,
398
+ 808,
399
+ 494
400
+ ],
401
+ "page_idx": 2
402
+ },
403
+ {
404
+ "type": "text",
405
+ "text": "In tree-search on-line planning, a look-ahead tree of possible future states is constructed by recursively applying an environment model. These states are typically evaluated by a heuristic, a learned value function, or Monte-Carlo rollouts. Backups through the tree aggregate these values along with the immediate rewards accumulated along each path to estimate the value of taking an action in the current state. This paper focuses on a simple tree-search with a deterministic transition function and no value uncertainty estimates, but our approach can be extended to tree-search variants like UCT (Kocsis & Szepesvari´ , 2006; Silver et al., 2016) if the components remain differentiable. ",
406
+ "bbox": [
407
+ 173,
408
+ 494,
409
+ 576,
410
+ 536
411
+ ],
412
+ "page_idx": 2
413
+ },
414
+ {
415
+ "type": "text",
416
+ "text": "",
417
+ "bbox": [
418
+ 174,
419
+ 536,
420
+ 825,
421
+ 606
422
+ ],
423
+ "page_idx": 2
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "3 TREEQN ",
428
+ "text_level": 1,
429
+ "bbox": [
430
+ 176,
431
+ 625,
432
+ 281,
433
+ 642
434
+ ],
435
+ "page_idx": 2
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "In this section, we propose TreeQN, a novel end-to-end differentiable tree-structured architecture for deep reinforcement learning. We first give an overview of the architecture, followed by details of each model component and the training procedure. ",
440
+ "bbox": [
441
+ 174,
442
+ 656,
443
+ 825,
444
+ 699
445
+ ],
446
+ "page_idx": 2
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "TreeQN uses a recursive tree-structured neural network between the encoded state $\\mathbf { z } _ { t }$ and the predicted state-action values $Q ( \\mathbf { s } _ { t } , a )$ , instead of directly estimating the state-action value from the current encoded state $\\mathbf { z } _ { t }$ using fully connected layers as in DQN (Mnih et al., 2015). Specifically, TreeQN uses a recursive model to refine its estimate of $Q ( \\mathbf { s } _ { t } , a )$ via learned transition, reward, and value functions, and a tree backup (see Fig. 2). Because these learned components are shared throughout the tree, TreeQN implements an inductive bias, missing from DQN, that reflects the prior knowledge that the $Q$ -values are properties of a stationary Markov process. We also encode the inductive bias that $Q$ -values may be expressed as a sum of scalar rewards and values. ",
451
+ "bbox": [
452
+ 173,
453
+ 705,
454
+ 825,
455
+ 816
456
+ ],
457
+ "page_idx": 2
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "$\\mathbf { z } _ { l \\mid t }$ cifically, TreeQN learns an action-de, predicts the next state representation $\\mathbf { z } _ { l + 1 | t } ^ { a _ { i } }$ t transitiofor action $a _ { i } \\in { \\mathcal { A } }$ n that, given a state representa, and the corresponding reward $\\hat { r } _ { l | t } ^ { a _ { i } }$ To make the distinction between internal planning steps and steps taken in the environment explicit, we write $\\mathbf { z } _ { l \\mid t }$ to denote the encoded state at time $t$ after $l$ internal transitions, starting with ${ \\bf z } _ { 0 \\mid t }$ for the encoding of $\\mathbf { s } _ { t }$ . TreeQN applies this transition function recursively to construct a tree containing the state representations and rewards received for all possible sequences of actions up to some predefined depth $d$ (“Tree Transitioning” in Fig. 2). ",
462
+ "bbox": [
463
+ 173,
464
+ 823,
465
+ 825,
466
+ 924
467
+ ],
468
+ "page_idx": 2
469
+ },
470
+ {
471
+ "type": "image",
472
+ "img_path": "images/e166e58c3a5bca1ad7d1969b9d7a51bd50882c1420e24550565fb81a4f0a5e82.jpg",
473
+ "image_caption": [
474
+ "Figure 2: High-level structure of TreeQN with a tree depth of two and shared transition and evaluation functions (reward prediction and value mixing omitted for simplicity). "
475
+ ],
476
+ "image_footnote": [],
477
+ "bbox": [
478
+ 205,
479
+ 98,
480
+ 792,
481
+ 393
482
+ ],
483
+ "page_idx": 3
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "The value of each predicted state $V ( \\mathbf { z } )$ is estimated with a value function module. Using these values and the predicted rewards, TreeQN then performs a tree backup, mixing the $k$ -step returns along each path in the tree using $\\mathrm { T D } ( \\lambda )$ (Sutton, 1988; Sutton & Barto, 1998). This corresponds to “Value Prediction & Backup” in Fig. 2 and can be formalized as ",
488
+ "bbox": [
489
+ 174,
490
+ 458,
491
+ 825,
492
+ 515
493
+ ],
494
+ "page_idx": 3
495
+ },
496
+ {
497
+ "type": "equation",
498
+ "img_path": "images/d1a7e940d2c3897a727fa0dfe9800605bfaf952fcd3e922fa620bede71e4badf.jpg",
499
+ "text": "$$\n\\begin{array} { r l } & { Q ^ { l } ( \\mathbf { z } _ { l \\mid t } , a _ { i } ) = r ( \\mathbf { z } _ { l \\mid t } , a _ { i } ) + \\gamma V ^ { ( \\lambda ) } ( \\mathbf { z } _ { l + 1 \\mid t } ) } \\\\ & { V ^ { ( \\lambda ) } ( \\mathbf { z } _ { l \\mid t } ) = \\left\\{ V ( \\mathbf { z } _ { l \\mid t } ^ { a _ { i } } ) \\right. \\ } & { l = d } \\\\ & { \\left. ( 1 - \\lambda ) V ( \\mathbf { z } _ { l \\mid t } ^ { a _ { i } } ) + \\lambda \\mathrm { b } ( Q ^ { l + 1 } ( \\mathbf { z } _ { l + 1 \\mid t } ^ { a _ { i } } , a _ { j } ) ) \\right. \\ l < d } \\end{array}\n$$",
500
+ "text_format": "latex",
501
+ "bbox": [
502
+ 284,
503
+ 521,
504
+ 715,
505
+ 588
506
+ ],
507
+ "page_idx": 3
508
+ },
509
+ {
510
+ "type": "text",
511
+ "text": "where $\\mathrm { b }$ is a function to recursively perform the backup. For $0 < \\lambda < 1$ , value estimates of the intermediate states are mixed into the final $Q$ -estimate, which encourages the intermediate nodes of the tree to correspond to meaningful states, and reduces the impact of outlier values. ",
512
+ "bbox": [
513
+ 174,
514
+ 593,
515
+ 825,
516
+ 637
517
+ ],
518
+ "page_idx": 3
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "When $\\lambda = 1$ , and $\\mathrm { b }$ is the standard hard max function, then Eq. 3 simplifies to a backup through the tree using the familiar Bellman equation: ",
523
+ "bbox": [
524
+ 171,
525
+ 642,
526
+ 823,
527
+ 671
528
+ ],
529
+ "page_idx": 3
530
+ },
531
+ {
532
+ "type": "equation",
533
+ "img_path": "images/5af72a52b71e0a2003db1334e62e824a5cf92651056c2f02750a0961ddf1191d.jpg",
534
+ "text": "$$\nQ ( \\mathbf { z } _ { l | t } , a _ { i } ) = r ( \\mathbf { z } _ { l | t } , a _ { i } ) + \\left\\{ \\begin{array} { l l } { \\gamma V ( \\mathbf { z } _ { d | t } ^ { a _ { i } } ) } & { l = d - 1 } \\\\ { \\gamma \\operatorname* { m a x } _ { a _ { j } } Q ( \\mathbf { z } _ { l + 1 | t } ^ { a _ { i } } , a _ { j } ) } & { l < d - 1 . } \\end{array} \\right.\n$$",
535
+ "text_format": "latex",
536
+ "bbox": [
537
+ 287,
538
+ 679,
539
+ 710,
540
+ 722
541
+ ],
542
+ "page_idx": 3
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "We note that even for a tree depth of only one, TreeQN imposes a significant structure on the value function by decomposing it as a sum of action-conditional reward and next-state value, and using a shared value function to evaluate each next-state representation. ",
547
+ "bbox": [
548
+ 174,
549
+ 737,
550
+ 825,
551
+ 779
552
+ ],
553
+ "page_idx": 3
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "Crucially, during training we backpropagate all the way from the final $Q$ -estimate, through the value prediction, tree transitioning, and encoding layers of the tree, i.e., the entire network shown in Fig. 2. Learning these components jointly ensures that they are useful for planning on-line. ",
558
+ "bbox": [
559
+ 174,
560
+ 786,
561
+ 825,
562
+ 829
563
+ ],
564
+ "page_idx": 3
565
+ },
566
+ {
567
+ "type": "text",
568
+ "text": "3.1 MODEL COMPONENTS",
569
+ "text_level": 1,
570
+ "bbox": [
571
+ 176,
572
+ 847,
573
+ 370,
574
+ 861
575
+ ],
576
+ "page_idx": 3
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "In this section, we describe each of TreeQN’s components in more detail. ",
581
+ "bbox": [
582
+ 173,
583
+ 873,
584
+ 653,
585
+ 888
586
+ ],
587
+ "page_idx": 3
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "Encoder function. As in DQN, a series of convolutional layers produces an embedding of the observed state, $\\mathbf { z } _ { 0 \\mid t } = \\mathsf { e n c o d e } ( \\mathbf { s } _ { t } )$ . ",
592
+ "bbox": [
593
+ 173,
594
+ 895,
595
+ 825,
596
+ 924
597
+ ],
598
+ "page_idx": 3
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "Transition function. We first apply a single fully connected layer to the current state embedding, shared by all actions. This generates an intermediate representation $( \\mathbf z _ { l + 1 | t } ^ { \\mathrm { e n v } } )$ that could carry information about action-agnostic changes to the environment. In addition, we use a fully connected layer per action, which is applied to the intermediate representation to calculate a next-state representation that carries information about the effect of taking action $a _ { i }$ . We use residual connections for these layers: ",
603
+ "bbox": [
604
+ 173,
605
+ 103,
606
+ 825,
607
+ 176
608
+ ],
609
+ "page_idx": 4
610
+ },
611
+ {
612
+ "type": "equation",
613
+ "img_path": "images/1cc56226dca3fd2c74e9e3e263dce01cc30a270adb40a317f460914e1a6070f9.jpg",
614
+ "text": "$$\n\\begin{array} { r l } & { \\mathbf { z } _ { l + 1 \\mid t } ^ { \\mathrm { e n v } } = \\mathbf { z } _ { l \\mid t } + \\operatorname { t a n h } ( W ^ { \\mathrm { e n v } } \\mathbf { z } _ { l \\mid t } + \\mathbf { b } ^ { \\mathrm { e n v } } ) , } \\\\ & { \\mathbf { z } _ { l + 1 \\mid t } ^ { a _ { i } } = \\mathbf { z } _ { l + 1 \\mid t } ^ { \\mathrm { e n v } } + \\operatorname { t a n h } ( W ^ { a _ { i } } \\mathbf { z } _ { l + 1 \\mid t } ^ { \\mathrm { e n v } } ) , } \\end{array}\n$$",
615
+ "text_format": "latex",
616
+ "bbox": [
617
+ 366,
618
+ 181,
619
+ 629,
620
+ 224
621
+ ],
622
+ "page_idx": 4
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "where $W ^ { a _ { i } } , W ^ { \\mathrm { e n v } } \\in \\mathbb R ^ { k \\times k } , \\mathbf { b } ^ { \\mathrm { e n v } } \\in \\mathbb R ^ { k }$ are learnable parameters. Note that the next-state representation is calculated for every action $a _ { i }$ independently using the respective transition matrix $W ^ { a _ { i } }$ , but this transition function is shared for the same action throughout the tree. ",
627
+ "bbox": [
628
+ 174,
629
+ 228,
630
+ 825,
631
+ 272
632
+ ],
633
+ "page_idx": 4
634
+ },
635
+ {
636
+ "type": "text",
637
+ "text": "A caveat is that the model can still learn to use different parts of the latent state space in different parts of the tree, which could undermine the intended parameter sharing in the model structure. To help TreeQN learn useful transition functions that maintain quality and diversity in their latent states, we introduce a unit-length projection of the state representations by simply dividing a state’s vector representation by its L2 norm before each application of the transition function, $\\mathbf { z } _ { l | t } : = \\mathbf { z } _ { l | t } / \\left| \\left| \\mathbf { z } _ { l | t } \\right| \\right|$ This prevents the magnitude of the representation from growing or shrinking, which encourages the behaviour of the transition function to be more consistent throughout the tree. ",
638
+ "bbox": [
639
+ 173,
640
+ 277,
641
+ 825,
642
+ 377
643
+ ],
644
+ "page_idx": 4
645
+ },
646
+ {
647
+ "type": "text",
648
+ "text": "Reward function. In addition to predicting the next state, we also predict the immediate reward for every action $a _ { i } \\in { \\mathcal { A } }$ in state $\\mathbf { z } _ { l \\mid t }$ using ",
649
+ "bbox": [
650
+ 174,
651
+ 382,
652
+ 821,
653
+ 411
654
+ ],
655
+ "page_idx": 4
656
+ },
657
+ {
658
+ "type": "equation",
659
+ "img_path": "images/d17ef4c2d86919d0fb624edbb517804f5b93c41fc71b74c246b652b5fa77f495.jpg",
660
+ "text": "$$\n\\hat { \\mathbf { r } } ( \\mathbf { z } _ { l \\mid t } ) = W _ { 2 } ^ { r } \\mathrm { R e L U } ( W _ { 1 } ^ { r } \\mathbf { z } _ { l \\mid t } + \\mathbf { b } _ { 1 } ^ { r } ) + \\mathbf { b } _ { 2 } ^ { r } ,\n$$",
661
+ "text_format": "latex",
662
+ "bbox": [
663
+ 359,
664
+ 419,
665
+ 637,
666
+ 438
667
+ ],
668
+ "page_idx": 4
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "where $W _ { 1 } ^ { r } \\in \\mathbb { R } ^ { m \\times k }$ , $W _ { 2 } ^ { r } \\in \\mathbb { R } ^ { | \\mathcal { A } | \\times m }$ and ReLU is the rectified linear unit (Nair & Hinton, 2010), and the predicted reward for a particular action $\\hat { r } _ { l | t } ^ { a _ { i } }$ is the $i$ -th element of the vector $\\hat { \\mathbf { r } } ( \\mathbf { z } _ { l \\mid t } )$ . ",
673
+ "bbox": [
674
+ 176,
675
+ 443,
676
+ 825,
677
+ 474
678
+ ],
679
+ "page_idx": 4
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "Value function. The value of a state representation $\\mathbf { z }$ is estimated as ",
684
+ "bbox": [
685
+ 174,
686
+ 482,
687
+ 622,
688
+ 497
689
+ ],
690
+ "page_idx": 4
691
+ },
692
+ {
693
+ "type": "equation",
694
+ "img_path": "images/24d866580076ae34f26d604f1667a9e9c5077c010694fcd6e973310df20d538c.jpg",
695
+ "text": "$$\nV ( \\mathbf { z } ) = \\mathbf { w } ^ { \\top } \\mathbf { z } + b ,\n$$",
696
+ "text_format": "latex",
697
+ "bbox": [
698
+ 436,
699
+ 502,
700
+ 560,
701
+ 521
702
+ ],
703
+ "page_idx": 4
704
+ },
705
+ {
706
+ "type": "text",
707
+ "text": "where $\\mathbf { w } \\in \\mathbb { R } ^ { k }$ ",
708
+ "bbox": [
709
+ 174,
710
+ 529,
711
+ 276,
712
+ 542
713
+ ],
714
+ "page_idx": 4
715
+ },
716
+ {
717
+ "type": "text",
718
+ "text": "Backup function. We use the following function that can be recursively applied to calculate the tree backup: ",
719
+ "bbox": [
720
+ 173,
721
+ 550,
722
+ 825,
723
+ 579
724
+ ],
725
+ "page_idx": 4
726
+ },
727
+ {
728
+ "type": "equation",
729
+ "img_path": "images/5375297e5372a93344aa95adc3a94f5401317bf8a2952c1c9636c483110a219e.jpg",
730
+ "text": "$$\n\\mathrm { b } ( \\mathbf { x } ) = \\sum _ { i } x _ { i } \\mathrm { s o f t m a x } ( \\mathbf { x } ) _ { i } .\n$$",
731
+ "text_format": "latex",
732
+ "bbox": [
733
+ 401,
734
+ 584,
735
+ 594,
736
+ 617
737
+ ],
738
+ "page_idx": 4
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "Using a hard max for calculating the backup would result in gradient information only being used to update parameters along the maximal path in the tree. By contrast, the softmax allows us to use downstream gradient information to update parameters along all paths. Furthermore, it potentially reduces the impact of outlier value predictions. With a learned temperature for the softmax, this function could represent the hard max arbitrarily closely. However, we did not find an empirical difference so we left the temperature at 1. ",
743
+ "bbox": [
744
+ 173,
745
+ 622,
746
+ 825,
747
+ 707
748
+ ],
749
+ "page_idx": 4
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "3.2 GROUNDING THE MODEL COMPONENTS",
754
+ "text_level": 1,
755
+ "bbox": [
756
+ 176,
757
+ 723,
758
+ 488,
759
+ 738
760
+ ],
761
+ "page_idx": 4
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "The TreeQN architecture is fully differentiable, so we can directly use it in the place of a $Q$ -function in any deep RL algorithm with discrete actions. Differentiating through the entire tree ensures that the learned components are useful for planning on-line, as long as that planning is performed in the same way as during training. ",
766
+ "bbox": [
767
+ 174,
768
+ 750,
769
+ 825,
770
+ 806
771
+ ],
772
+ "page_idx": 4
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "However, it seems plausible that auxiliary objectives based on minimising the error in predicting rewards or observations could improve the performance by helping to ground the transition and reward functions to the environment. It could also encourage TreeQN to perform model-based planning in an interpretable manner. In principle, such objectives could give rise to a spectrum of methods from model-free to fully model-based. At one extreme, TreeQN without auxiliary objectives can be seen as a model-free approach that draws inspiration from tree-search planning to encode valuable inductive biases into the neural network architecture. At the other extreme, perfect, grounded reward and transition models could in principle be learned. Using them in our architecture would then correspond to standard model-based lookahead planning. The sweet spot could be an intermediate level of grounding that maintains the flexibility of end-to-end model-free learning while benefiting from the additional supervision of explicit model learning. To investigate this spectrum, we experiment with two auxiliary objectives. ",
777
+ "bbox": [
778
+ 174,
779
+ 811,
780
+ 825,
781
+ 924
782
+ ],
783
+ "page_idx": 4
784
+ },
785
+ {
786
+ "type": "text",
787
+ "text": "",
788
+ "bbox": [
789
+ 174,
790
+ 103,
791
+ 825,
792
+ 160
793
+ ],
794
+ "page_idx": 5
795
+ },
796
+ {
797
+ "type": "text",
798
+ "text": "Reward grounding. We experiment with an L2 loss regressing rˆat:t+l−1| , the predicted reward at level $l$ of the tree corresponding to the selected action sequence $\\left\\{ a _ { t } \\ldots a _ { t + l - 1 } \\right\\}$ , to the true observed rewards. For each of the $n$ timesteps of $n$ -step Q-learning this gives: ",
799
+ "bbox": [
800
+ 174,
801
+ 165,
802
+ 825,
803
+ 213
804
+ ],
805
+ "page_idx": 5
806
+ },
807
+ {
808
+ "type": "equation",
809
+ "img_path": "images/3e35f4ada56ea365bf7935959899e01fb826572b58d596c6ddb305b66cbc9cff.jpg",
810
+ "text": "$$\n\\mathcal { L } = \\mathcal { L } _ { \\mathrm { n s t e p } \\cdot \\mathrm { Q } } + \\eta _ { r } \\sum _ { \\mathrm { e n v s } } \\sum _ { j = 1 } ^ { n } \\sum _ { l = 1 } ^ { \\bar { d } } \\left( \\hat { r } _ { l \\mid t + j } ^ { a _ { t + j : t + j + l - 1 } } - r _ { t + j + l - 1 } \\right) ^ { 2 } ,\n$$",
811
+ "text_format": "latex",
812
+ "bbox": [
813
+ 299,
814
+ 219,
815
+ 697,
816
+ 265
817
+ ],
818
+ "page_idx": 5
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "where $\\eta _ { r }$ is a hyperparameter weighting the loss, and $\\bar { d } = \\operatorname* { m i n } ( d , n - j + 1 )$ restricts the sum to rewards for which we have already observed the true value. ",
823
+ "bbox": [
824
+ 173,
825
+ 273,
826
+ 825,
827
+ 303
828
+ ],
829
+ "page_idx": 5
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "State grounding. We experiment with a grounding in the latent space, using an L2 loss to regress the predicted latent state $\\mathbf { z } _ { l \\mid t } ^ { a _ { t : t + l } }$ at level $l$ of the tree to $\\mathbf { z } _ { 0 \\mid t + l }$ , the initial encoding of the true state corresponding to the actions actually taken: ",
834
+ "bbox": [
835
+ 174,
836
+ 309,
837
+ 825,
838
+ 354
839
+ ],
840
+ "page_idx": 5
841
+ },
842
+ {
843
+ "type": "equation",
844
+ "img_path": "images/c8252bdd7d3e5bed7dff7ea41d218882400e1f1b9433929b4c06e741ca7f67ad.jpg",
845
+ "text": "$$\n\\mathcal { L } = \\mathcal { L } _ { \\mathrm { n s t e p } \\cdot \\mathrm { Q } } + \\eta _ { s } \\sum _ { \\mathrm { e n v s } } \\sum _ { j = 1 } ^ { n } \\sum _ { l = 1 } ^ { \\bar { d } } \\left( \\mathbf { z } _ { l \\mid t + j } ^ { a _ { t + j : t + j + l - 1 } } - \\mathbf { z } _ { 0 \\mid t + j + l } \\right) ^ { 2 } .\n$$",
846
+ "text_format": "latex",
847
+ "bbox": [
848
+ 302,
849
+ 361,
850
+ 696,
851
+ 407
852
+ ],
853
+ "page_idx": 5
854
+ },
855
+ {
856
+ "type": "text",
857
+ "text": "By employing an additional decoder module, we could use a similar loss to regress decoded observations to the true observations. In informal experiments, joint training with such a decoder loss did not yield good performance, as also found by Oh et al. (2017). ",
858
+ "bbox": [
859
+ 174,
860
+ 414,
861
+ 825,
862
+ 457
863
+ ],
864
+ "page_idx": 5
865
+ },
866
+ {
867
+ "type": "text",
868
+ "text": "In Section 7.1, we present results on the use these objectives, showing that reward grounding gives better performance, but that our method for state grounding does not. ",
869
+ "bbox": [
870
+ 173,
871
+ 462,
872
+ 825,
873
+ 492
874
+ ],
875
+ "page_idx": 5
876
+ },
877
+ {
878
+ "type": "text",
879
+ "text": "4 ATREEC ",
880
+ "text_level": 1,
881
+ "bbox": [
882
+ 174,
883
+ 512,
884
+ 279,
885
+ 527
886
+ ],
887
+ "page_idx": 5
888
+ },
889
+ {
890
+ "type": "text",
891
+ "text": "The intuitions guiding the design of TreeQN are as applicable to policy search as to valuebased RL, in that a policy can use a tree planner to improve its estimates of the optimal action probabilities (Gelly & Silver, 2007; Silver et al., 2017a). As our proposed architecture is trained end-to-end, it can be easily adapted for use as a policy network. ",
892
+ "bbox": [
893
+ 174,
894
+ 544,
895
+ 485,
896
+ 656
897
+ ],
898
+ "page_idx": 5
899
+ },
900
+ {
901
+ "type": "text",
902
+ "text": "In particular, we propose ATreeC, an actor-critic extension of TreeQN. In this architecture, the policy network is identical to TreeQN, with an additional softmax layer that converts the $Q$ estimates into the probabilities of a stochastic policy. ",
903
+ "bbox": [
904
+ 173,
905
+ 662,
906
+ 485,
907
+ 732
908
+ ],
909
+ "page_idx": 5
910
+ },
911
+ {
912
+ "type": "image",
913
+ "img_path": "images/c25055870dfdd057fb07bebcc4851a33c1d3f8f989097e46a5424ba4be71f1b0.jpg",
914
+ "image_caption": [
915
+ "Figure 3: High-level structure of ATreeC. "
916
+ ],
917
+ "image_footnote": [],
918
+ "bbox": [
919
+ 504,
920
+ 553,
921
+ 823,
922
+ 693
923
+ ],
924
+ "page_idx": 5
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "The critic shares the encoder parameters, and predicts a scalar state value with a single fully connected layer: $V _ { \\mathrm { c r } } ( \\mathbf { s } ) = \\mathbf { w } _ { \\mathrm { c r } } ^ { \\top } \\mathbf { z } + b _ { \\mathrm { c r } }$ . We used different parameters for the critic value function and the actor’s tree-value-function module, but found that sharing these parameters had little effect on performance. The entire setup, shown in Fig. 3, is trained with A2C as described in Section 2, with the addition of the same auxiliary losses used for TreeQN. Note that TreeQN could also be used in the critic, but we leave this possibility to future work. ",
929
+ "bbox": [
930
+ 174,
931
+ 732,
932
+ 826,
933
+ 815
934
+ ],
935
+ "page_idx": 5
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "5 RELATED WORK ",
940
+ "text_level": 1,
941
+ "bbox": [
942
+ 176,
943
+ 835,
944
+ 344,
945
+ 852
946
+ ],
947
+ "page_idx": 5
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "There is a long history of work combining model-based and model-free RL. An early example is Dyna-Q (Sutton, 1990) which trains a model-free algorithm with samples drawn from a learned model. Similarly, van Seijen et al. (2011) train a sparse model with some environment samples that can be used to refine a model-free $Q$ -function. Gu et al. (2016) use local linear models to generate additional samples for their model-free algorithm. However, these approaches do not attempt to use the model on-line to improve value estimates. ",
952
+ "bbox": [
953
+ 174,
954
+ 867,
955
+ 825,
956
+ 924
957
+ ],
958
+ "page_idx": 5
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "",
963
+ "bbox": [
964
+ 173,
965
+ 103,
966
+ 823,
967
+ 132
968
+ ],
969
+ "page_idx": 6
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "In deep RL, value iteration networks (Tamar et al., 2016) use a learned differentiable model to plan on the fly, but require planning over the full state space, which must also possess a spatial structure with local dynamics such that convolution operations can execute the planning algorithm. ",
974
+ "bbox": [
975
+ 176,
976
+ 138,
977
+ 821,
978
+ 180
979
+ ],
980
+ "page_idx": 6
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "The predictron (Silver et al., 2017b) instead learns abstract-state transition functions in order to predict values. However, it is restricted to policy evaluation without control. Value prediction networks (VPNs, Oh et al., 2017) take a similar approach but are more closely related to our work because the learned model components are used in a tree for planning. However, in their work this tree is only used to construct targets and choose actions, and not to compute the value estimates during training. Such estimates are instead produced from non-branching trajectories following on-policy action sequences. By contrast, TreeQN is a unified architecture that constructs the tree dynamically at every timestep and differentiates through it, eliminating any mismatch between the model at training and test time. Furthermore, we do not use convolutional transition functions, and hence do not impose spatial structure on the latent state representations. These differences simplify training, allow our model to be used more flexibly in other training regimes, and explain in part our substantially improved performance on the Atari benchmark. ",
985
+ "bbox": [
986
+ 174,
987
+ 188,
988
+ 825,
989
+ 354
990
+ ],
991
+ "page_idx": 6
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "Donti et al. (2017) propose differentiating through a stochastic programming optimisation using a probabilistic model to learn model parameters with respect to their true objective rather than a maximum likelihood surrogate. However, they do not tackle the full RL setting, and do not use the model to repeatedly or recursively refine predictions. ",
996
+ "bbox": [
997
+ 174,
998
+ 361,
999
+ 825,
1000
+ 417
1001
+ ],
1002
+ "page_idx": 6
1003
+ },
1004
+ {
1005
+ "type": "text",
1006
+ "text": "Imagination-augmented agents (Weber et al., 2017) learn to improve policies by aggregating rollouts predicted by a model. However, they rely on pretraining an observation-space model, which we argue will scale poorly to more complex environments. Further, their aggregation of rollout trajectories takes the form of a generic RNN rather than a value function and tree backup, so the inductive bias based on the structure of the MDP is not explicitly present. ",
1007
+ "bbox": [
1008
+ 174,
1009
+ 424,
1010
+ 825,
1011
+ 494
1012
+ ],
1013
+ "page_idx": 6
1014
+ },
1015
+ {
1016
+ "type": "text",
1017
+ "text": "A class of value gradient methods (Deisenroth & Rasmussen, 2011; Fairbank & Alonso, 2012; Heess et al., 2015) also differentiates through models to train a policy. However, this approach does not use the model during execution to refine the policy, and requires continuous action spaces. ",
1018
+ "bbox": [
1019
+ 176,
1020
+ 501,
1021
+ 820,
1022
+ 542
1023
+ ],
1024
+ "page_idx": 6
1025
+ },
1026
+ {
1027
+ "type": "text",
1028
+ "text": "Oh et al. (2015) and Chiappa et al. (2017) propose methods for learning observation-prediction models in the Atari domain, but use these models only to improve exploration. Variants of scheduled sampling (Bengio et al., 2015) may be used to improve robustness of these models, but scaling to complex domains has proven challenging (Talvitie, 2014). ",
1029
+ "bbox": [
1030
+ 174,
1031
+ 549,
1032
+ 825,
1033
+ 606
1034
+ ],
1035
+ "page_idx": 6
1036
+ },
1037
+ {
1038
+ "type": "text",
1039
+ "text": "6 EXPERIMENTS ",
1040
+ "text_level": 1,
1041
+ "bbox": [
1042
+ 176,
1043
+ 627,
1044
+ 326,
1045
+ 642
1046
+ ],
1047
+ "page_idx": 6
1048
+ },
1049
+ {
1050
+ "type": "text",
1051
+ "text": "We evaluate TreeQN and ATreeC in a simple box-pushing environment, as well as on the subset of nine Atari environments that Oh et al. (2017) use to evaluate VPN. The experiments are designed to determine whether or not TreeQN and ATreeC outperform DQN, A2C, and VPN, and whether they can scale to complex domains. We also investigate how to best ground the the transition function with auxiliary losses. Furthermore, we compare against alternative ways to increase the number of parameters and computations of a standard DQN architecture, and study the impact of tree depth. Full details of the experimental setup, as well as architecture and training hyperparameters, are given in the appendix. ",
1052
+ "bbox": [
1053
+ 173,
1054
+ 659,
1055
+ 825,
1056
+ 770
1057
+ ],
1058
+ "page_idx": 6
1059
+ },
1060
+ {
1061
+ "type": "text",
1062
+ "text": "Grounding. We perform a hyperparameter search over the coefficients $\\eta _ { r }$ and $\\eta _ { s }$ of the reward and state grounding auxiliary losses, on the Atari environment Seaquest. These experiments aim to determine the relevant trade-offs between the flexibility of a model-free approach and the potential benefits of a more model-based algorithm. ",
1063
+ "bbox": [
1064
+ 174,
1065
+ 777,
1066
+ 823,
1067
+ 833
1068
+ ],
1069
+ "page_idx": 6
1070
+ },
1071
+ {
1072
+ "type": "text",
1073
+ "text": "Box Pushing. We randomly place an agent, 12 boxes, 5 goals and 6 obstacles on the center $6 \\times 6$ tiles of an $8 \\times 8$ grid. The agent’s goal is to push boxes into goals in as few steps as possible while avoiding obstacles. Boxes may not be pushed into each other. The obstacles, however, are ‘soft’ in that they are do not block movement, but generate a negative reward if the agent or a box moves onto an obstacle. This rewards better planning without causing excessive gridlock. This environment is inspired by Sokoban, as used by Weber et al. (2017), in that poor actions can generate irreversibly bad configurations. However, the level generation process for Sokoban is challenging to reproduce exactly and has not been open-sourced. More details of the environment and rewards are given in Appendix A.1. ",
1074
+ "bbox": [
1075
+ 174,
1076
+ 840,
1077
+ 825,
1078
+ 924
1079
+ ],
1080
+ "page_idx": 6
1081
+ },
1082
+ {
1083
+ "type": "image",
1084
+ "img_path": "images/97da6ea8c2b8e8eaa44c239e1def910645c5c0d4ba1ee593d6f68ab36d648d3a.jpg",
1085
+ "image_caption": [
1086
+ "Figure 4: Grounding the reward and transition functions using auxiliary losses: final returns on Seaquest plotted against the coefficient of the auxiliary loss. "
1087
+ ],
1088
+ "image_footnote": [],
1089
+ "bbox": [
1090
+ 205,
1091
+ 102,
1092
+ 794,
1093
+ 301
1094
+ ],
1095
+ "page_idx": 7
1096
+ },
1097
+ {
1098
+ "type": "text",
1099
+ "text": "",
1100
+ "bbox": [
1101
+ 176,
1102
+ 367,
1103
+ 823,
1104
+ 410
1105
+ ],
1106
+ "page_idx": 7
1107
+ },
1108
+ {
1109
+ "type": "text",
1110
+ "text": "Atari. To demonstrate the general applicability of TreeQN and ATreeC to complex environments, we evaluate them on the Atari 2600 suite (Bellemare et al., 2013). Following Oh et al. (2017), we use their set of nine environments and a frameskip of 10 to facilitate planning over reasonable timescales. ",
1111
+ "bbox": [
1112
+ 174,
1113
+ 416,
1114
+ 823,
1115
+ 459
1116
+ ],
1117
+ "page_idx": 7
1118
+ },
1119
+ {
1120
+ "type": "text",
1121
+ "text": "TreeQN adds additional parameters to a standard DQN architecture. We compare TreeQN to two baseline architectures with increased computation and numbers of parameters to verify the benefit of the additional structure and grounding. DQN-Wide doubles the size of the embedding dimension (1024 instead of 512). DQN-Deep inserts two additional fully connected layers with shared parameters and residual connections between the two fully-connected layers of DQN. This is in effect a non-branching version of the TreeQN architecture that also lacks explicit reward prediction. ",
1122
+ "bbox": [
1123
+ 174,
1124
+ 465,
1125
+ 825,
1126
+ 549
1127
+ ],
1128
+ "page_idx": 7
1129
+ },
1130
+ {
1131
+ "type": "text",
1132
+ "text": "7 RESULTS & DISCUSSION ",
1133
+ "text_level": 1,
1134
+ "bbox": [
1135
+ 176,
1136
+ 570,
1137
+ 411,
1138
+ 587
1139
+ ],
1140
+ "page_idx": 7
1141
+ },
1142
+ {
1143
+ "type": "text",
1144
+ "text": "In this section, we present our experimental results for TreeQN and ATreeC. ",
1145
+ "bbox": [
1146
+ 174,
1147
+ 603,
1148
+ 671,
1149
+ 618
1150
+ ],
1151
+ "page_idx": 7
1152
+ },
1153
+ {
1154
+ "type": "text",
1155
+ "text": "7.1 GROUNDING",
1156
+ "text_level": 1,
1157
+ "bbox": [
1158
+ 176,
1159
+ 636,
1160
+ 302,
1161
+ 650
1162
+ ],
1163
+ "page_idx": 7
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "Fig. 4 shows the result of a hyperparameter search on $\\eta _ { r }$ and $\\eta _ { s }$ , the coefficients of the auxiliary losses on the predicted rewards and latent states. An intermediate value of $\\eta _ { r }$ helps performance but there is no benefit to using the latent space loss. Subsequent experiments use $\\eta _ { r } = 1$ and $\\eta _ { s } = 0$ . ",
1168
+ "bbox": [
1169
+ 174,
1170
+ 662,
1171
+ 823,
1172
+ 704
1173
+ ],
1174
+ "page_idx": 7
1175
+ },
1176
+ {
1177
+ "type": "text",
1178
+ "text": "The predicted rewards that the reward-grounding objective encourages the model to learn appear both in its own $Q$ -value prediction and in the target for $n$ -step $Q$ -learning. Consequently, we expect this auxiliary loss to be well aligned with the true objective. By contrast, the state-grounding loss (and other potential auxiliary losses) might help representation learning but would not explicitly learn any part of the desired target. It is possible that this mismatch between the auxiliary and primary objective leads to degraded performance when using this form of state grounding. One potential route to overcoming this obstacle to joint training would be pre-training a model, as done by Weber et al. (2017). Inside TreeQN this model could then be fine-tuned to perform well inside the planner. We leave this possiblity to future work. ",
1179
+ "bbox": [
1180
+ 174,
1181
+ 712,
1182
+ 825,
1183
+ 837
1184
+ ],
1185
+ "page_idx": 7
1186
+ },
1187
+ {
1188
+ "type": "text",
1189
+ "text": "7.2 BOX PUSHING ",
1190
+ "text_level": 1,
1191
+ "bbox": [
1192
+ 176,
1193
+ 854,
1194
+ 313,
1195
+ 869
1196
+ ],
1197
+ "page_idx": 7
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "Fig. 5a shows the results of TreeQN with tree depths 1, 2, and 3, compared to a DQN baseline. In this domain, there is a clear advantage for the TreeQN architecture over DQN. TreeQN learns policies that are substantially better at avoiding obstacles and lining boxes up with goals so they can be easily pushed in later. TreeQN also substantially speeds up learning. We believe that the greater structure brought by our architecture regularises the model, encouraging appropriate state representations to be learned quickly. Even a depth-1 tree improves performance significantly, as disentangling the estimation of rewards and next-state values makes them easier to learn. This is further facilitated by the sharing of value-function parameters across branches. ",
1202
+ "bbox": [
1203
+ 174,
1204
+ 882,
1205
+ 823,
1206
+ 924
1207
+ ],
1208
+ "page_idx": 7
1209
+ },
1210
+ {
1211
+ "type": "image",
1212
+ "img_path": "images/bbb23d8d559767eabf733b8c2ecddefc93e437f2c2583281060880ce9d7b044a.jpg",
1213
+ "image_caption": [
1214
+ "Figure 5: Box-pushing results: the $x$ -axis shows the number of transitions observed across all of the synchronous environment threads. "
1215
+ ],
1216
+ "image_footnote": [],
1217
+ "bbox": [
1218
+ 200,
1219
+ 103,
1220
+ 794,
1221
+ 285
1222
+ ],
1223
+ "page_idx": 8
1224
+ },
1225
+ {
1226
+ "type": "text",
1227
+ "text": "",
1228
+ "bbox": [
1229
+ 174,
1230
+ 349,
1231
+ 825,
1232
+ 420
1233
+ ],
1234
+ "page_idx": 8
1235
+ },
1236
+ {
1237
+ "type": "text",
1238
+ "text": "When trained with $n$ -step Q-learning, the deeper depth-2 and depth-3 trees learn faster and plateau higher than the shallow depth-1 tree. In the this domain, useful transition functions are relatively easy to learn, and the extra computation time with those transition modules can help refine value estimates, yielding advantages for additional depth. ",
1239
+ "bbox": [
1240
+ 174,
1241
+ 428,
1242
+ 825,
1243
+ 483
1244
+ ],
1245
+ "page_idx": 8
1246
+ },
1247
+ {
1248
+ "type": "text",
1249
+ "text": "Fig. 5b shows the results of ATreeC with tree depths 1, 2, and 3, compared to an A2C baseline. As with TreeQN, ATreeC substantially outperforms the baseline. Furthermore, thanks to its stochastic policy, it substantially outperforms TreeQN. Whereas TreeQN and DQN sometimes indecisively bounce back and forth between adjacent states, ATreeC captures this uncertainty in its policy probabilities and thus acts more decisively. However, unlike TreeQN, ATreeC shows no pronounced differences for different tree depths. This is in part due to a ceiling effect in this domain. However, ATreeC is also gated by the quality of the critic’s value function, which in these experiments was a single linear layer after the state encoding as described in Section 4. Nonetheless, this result demonstrates the ease with which TreeQN can be used as a drop-in replacement for any deep RL algorithm that learns policies or value functions for discrete actions. ",
1250
+ "bbox": [
1251
+ 173,
1252
+ 489,
1253
+ 825,
1254
+ 628
1255
+ ],
1256
+ "page_idx": 8
1257
+ },
1258
+ {
1259
+ "type": "text",
1260
+ "text": "7.3 ATARI ",
1261
+ "text_level": 1,
1262
+ "bbox": [
1263
+ 176,
1264
+ 647,
1265
+ 258,
1266
+ 661
1267
+ ],
1268
+ "page_idx": 8
1269
+ },
1270
+ {
1271
+ "type": "text",
1272
+ "text": "Table 1 summarises all our Atari results, while Fig. 6 shows learning curves in depth. TreeQN shows substantial benefits in many environments compared to our DQN baseline, which itself often outperforms VPN (Oh et al., 2017). ATreeC always matches or outperforms A2C. We present the mean performance of five random seeds, while the VPN results reported by Oh et al. (2017), shown as dashed lines in Fig. 6, are the mean of the best five seeds of an unspecified number of trials. ",
1273
+ "bbox": [
1274
+ 174,
1275
+ 672,
1276
+ 823,
1277
+ 742
1278
+ ],
1279
+ "page_idx": 8
1280
+ },
1281
+ {
1282
+ "type": "text",
1283
+ "text": "TreeQN. In all environments except Frostbite, TreeQN outperforms DQN on average, with the most significant gains in Alien, CrazyClimber, Enduro, Krull, and Seaquest. Many of these environments seem well suited to short horizon look-ahead planning, with simple dynamics that generalise well and tradeoffs between actions that become apparent only after several timesteps. For example, an incorrect action in Alien can trap the agent down a corridor with an alien. In Seaquest, looking ahead could help determine whether it is better to go deeper to collect more points or to surface for oxygen. However, even in a game with mostly reactive decisions like the racing game Enduro, TreeQN shows significant benefits. ",
1284
+ "bbox": [
1285
+ 174,
1286
+ 750,
1287
+ 825,
1288
+ 861
1289
+ ],
1290
+ "page_idx": 8
1291
+ },
1292
+ {
1293
+ "type": "text",
1294
+ "text": "TreeQN also outperforms the additional baselines of DQN-Wide and DQN-Deep, indicating that the additional structure and grounding of our architecture brings benefits beyond simply adding model capacity and computation. In particular, it is interesting that DQN-Deep is often outperformed by the vanilla DQN baseline, as optimisation difficulties grow with depth. In contrast, the additional structure and auxiliary loss employed by TreeQN turn its additional depth from a liability into a strength. ",
1295
+ "bbox": [
1296
+ 174,
1297
+ 867,
1298
+ 823,
1299
+ 924
1300
+ ],
1301
+ "page_idx": 8
1302
+ },
1303
+ {
1304
+ "type": "image",
1305
+ "img_path": "images/8a8b0162732a2a7f45e78c6ce7220ef0c080f2a73238d623627d2ab9ddf1a446.jpg",
1306
+ "image_caption": [
1307
+ "Figure 6: Results for the Atari domain. The y-axis shows the moving average over 100 episodes. Each of five random seeds is plotted faintly, with the mean in bold. "
1308
+ ],
1309
+ "image_footnote": [],
1310
+ "bbox": [
1311
+ 174,
1312
+ 88,
1313
+ 813,
1314
+ 897
1315
+ ],
1316
+ "page_idx": 9
1317
+ },
1318
+ {
1319
+ "type": "table",
1320
+ "img_path": "images/ccf7558c76007770d4c8c57c9209fe12aa2e1548dce9149da409f75499bdf920.jpg",
1321
+ "table_caption": [
1322
+ "Table 1: Summary of Atari results. Each number is the best score throughout training, calculated as the mean of the last 100 episode rewards averaged over exactly five agents trained with different random seeds. Note that Oh et al. (2017) report the same statistic, but average instead over the best five of an unspecified number of agents. "
1323
+ ],
1324
+ "table_footnote": [],
1325
+ "table_body": "<table><tr><td></td><td>Alien</td><td>Amidar</td><td>Crazy Climber</td><td>Enduro</td><td>Frostbite</td><td>Krull</td><td>Ms.Pacman</td><td>Q*Bert</td><td>Seaquest</td></tr><tr><td>DQN (Oh et al., 2017)</td><td>1804</td><td>535</td><td>41658</td><td>326</td><td>3058</td><td>12438</td><td>2804</td><td>12592</td><td>2951</td></tr><tr><td>VPN (Oh et al.,2017)</td><td>1429</td><td>641</td><td>54119</td><td>382</td><td>3811</td><td>15930</td><td>2689</td><td>14517</td><td>5628</td></tr><tr><td>n-step DQN</td><td>1969</td><td>1033</td><td>71623</td><td>625</td><td>3968</td><td>7860</td><td>2774</td><td>14468</td><td>3465</td></tr><tr><td>DQN-Deep</td><td>1906</td><td>825</td><td>53101</td><td>745</td><td>493</td><td>8605</td><td>2410</td><td>15094</td><td>3575</td></tr><tr><td>DQN-Wide</td><td>2187</td><td>1074</td><td>91380</td><td>682</td><td>3493</td><td>6603</td><td>3061</td><td>15794</td><td>3909</td></tr><tr><td>TreeQN-1</td><td>2321</td><td>1030</td><td>107983</td><td>800</td><td>2254</td><td>10836</td><td>3030</td><td>15688</td><td>9302</td></tr><tr><td>TreeQN-2</td><td>2497</td><td>1170</td><td>104932</td><td>825</td><td>581</td><td>11035</td><td>3277</td><td>15970</td><td>8241</td></tr><tr><td>A2C</td><td>2673</td><td>1525</td><td>102776</td><td>642</td><td>297</td><td>5784</td><td>4352</td><td>24451</td><td>1734</td></tr><tr><td>ATreeC-1</td><td>3448</td><td>1578</td><td>102546</td><td>678</td><td>1035</td><td>8227</td><td>4866</td><td>25159</td><td>1734</td></tr><tr><td>ATreeC-2</td><td>2813</td><td>1566</td><td>110712</td><td>649</td><td>281</td><td>8134</td><td>4450</td><td>25459</td><td>2176</td></tr></table>",
1326
+ "bbox": [
1327
+ 176,
1328
+ 101,
1329
+ 821,
1330
+ 237
1331
+ ],
1332
+ "page_idx": 10
1333
+ },
1334
+ {
1335
+ "type": "text",
1336
+ "text": "",
1337
+ "bbox": [
1338
+ 176,
1339
+ 325,
1340
+ 823,
1341
+ 354
1342
+ ],
1343
+ "page_idx": 10
1344
+ },
1345
+ {
1346
+ "type": "text",
1347
+ "text": "ATreeC. ATreeC matches or outperforms its baseline (A2C) in all environments. Compared to TreeQN, ATreeC’s performance is better across most environments, particularly on Qbert, reflecting an overall advantage for actor-critic also found by Mnih et al. (2016) and in our box-pushing experiments. However, performance is much worse on Seaquest, revealing a deficiency in exploration as policy entropy collapses too rapidly and consequently the propensity of policy gradient methods to become trapped in a local optimum. ",
1348
+ "bbox": [
1349
+ 174,
1350
+ 361,
1351
+ 825,
1352
+ 445
1353
+ ],
1354
+ "page_idx": 10
1355
+ },
1356
+ {
1357
+ "type": "text",
1358
+ "text": "In Krull and Frostbite, most algorithms have poor performance, or high variance in returns from run to run, as agents are gated by their ability to explore. Both of these games require the completion of sub-levels in order to accumulate large scores, and none of our agents reliably explore beyond the initial stages of the game. Mean performance appears to favor TreeQN and ATreeC in Krull, and perhaps DQN in Frostbite, but the returns are too variable to draw conclusions from this number of random seeds. Combining TreeQN and ATreeC with smart exploration mechanisms is an interesting direction for future work to improve robustness of training in these types of environments. ",
1359
+ "bbox": [
1360
+ 174,
1361
+ 452,
1362
+ 825,
1363
+ 550
1364
+ ],
1365
+ "page_idx": 10
1366
+ },
1367
+ {
1368
+ "type": "text",
1369
+ "text": "Compared to the box-pushing domain, there is less of a clear performance difference between trees of different depths. In some environments (Amidar, MsPacman), greater depth does appear to be employed usefully by TreeQN to a small extent, resulting in the best-performing individual agents. However, for the Atari domain the embedding size for the transition function we use is much larger (512 compared to 128), and the dynamics are much more complex. Consequently, we expect that optimisation difficulties, and the challenge of learning abstract-state transition functions, impede the utility of deeper trees in some cases. We look to future work to further refine methods for learning to plan abstractly in complex domains. However, the decomposition of Q-value into reward and next-state value employed by the first tree expansion is clearly of utility in a broad range of tasks. ",
1370
+ "bbox": [
1371
+ 174,
1372
+ 556,
1373
+ 825,
1374
+ 683
1375
+ ],
1376
+ "page_idx": 10
1377
+ },
1378
+ {
1379
+ "type": "text",
1380
+ "text": "When inspecting the learned policies and trees, we find that the values sometimes correspond to intuitive reasoning about sensible policies, scoring superior action sequences above poorer ones. However, we find that the actions corresponding to branches of the tree that are scored most highly are frequently not taken in future timesteps. The flexibility of TreeQN and ATreeC allows our agents to find any useful way to exploit the computation in the tree to refine action-value estimates. As we found no effective way to strongly ground the model components without sacrificing performance, the interpretability of learned trees is limited. ",
1381
+ "bbox": [
1382
+ 174,
1383
+ 689,
1384
+ 825,
1385
+ 786
1386
+ ],
1387
+ "page_idx": 10
1388
+ },
1389
+ {
1390
+ "type": "text",
1391
+ "text": "8 CONCLUSIONS & FUTURE WORK ",
1392
+ "text_level": 1,
1393
+ "bbox": [
1394
+ 176,
1395
+ 808,
1396
+ 482,
1397
+ 824
1398
+ ],
1399
+ "page_idx": 10
1400
+ },
1401
+ {
1402
+ "type": "text",
1403
+ "text": "We presented TreeQN and ATreeC, new architectures for deep reinforcement learning in discreteaction domains that integrate differentiable on-line tree planning into the action-value function or policy. Experiments on a box-pushing domain and a set of Atari games show the benefit of these architectures over their counterparts, as well as over VPN. In future work, we intend to investigate enabling more efficient optimisation of deeper trees, encouraging the transition functions to produce interpretable plans, and integrating smart exploration. ",
1404
+ "bbox": [
1405
+ 174,
1406
+ 839,
1407
+ 825,
1408
+ 924
1409
+ ],
1410
+ "page_idx": 10
1411
+ },
1412
+ {
1413
+ "type": "text",
1414
+ "text": "ACKNOWLEDGMENTS ",
1415
+ "text_level": 1,
1416
+ "bbox": [
1417
+ 176,
1418
+ 104,
1419
+ 326,
1420
+ 117
1421
+ ],
1422
+ "page_idx": 11
1423
+ },
1424
+ {
1425
+ "type": "text",
1426
+ "text": "We thank Sasha Salter, Luisa Zintgraf, and Wendelin Bohmer for their contributions and valuable ¨ comments on drafts of this paper. This work was supported by the UK EPSRC CDT in Autonomous Intelligent Machines and Systems. This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement #637713). The NVIDIA DGX-1 used for this research was donated by the NVIDIA Corporation. ",
1427
+ "bbox": [
1428
+ 174,
1429
+ 128,
1430
+ 825,
1431
+ 212
1432
+ ],
1433
+ "page_idx": 11
1434
+ },
1435
+ {
1436
+ "type": "text",
1437
+ "text": "REFERENCES ",
1438
+ "text_level": 1,
1439
+ "bbox": [
1440
+ 176,
1441
+ 234,
1442
+ 285,
1443
+ 250
1444
+ ],
1445
+ "page_idx": 11
1446
+ },
1447
+ {
1448
+ "type": "text",
1449
+ "text": "Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. J. Artif. Intell. Res.(JAIR), 47:253–279, 2013. ",
1450
+ "bbox": [
1451
+ 174,
1452
+ 257,
1453
+ 826,
1454
+ 299
1455
+ ],
1456
+ "page_idx": 11
1457
+ },
1458
+ {
1459
+ "type": "text",
1460
+ "text": "Samy Bengio, Oriol Vinyals, Navdeep Jaitly, and Noam Shazeer. Scheduled sampling for sequence prediction with recurrent neural networks. In Advances in Neural Information Processing Systems, pp. 1171–1179, 2015. ",
1461
+ "bbox": [
1462
+ 174,
1463
+ 310,
1464
+ 825,
1465
+ 353
1466
+ ],
1467
+ "page_idx": 11
1468
+ },
1469
+ {
1470
+ "type": "text",
1471
+ "text": "Cameron B Browne, Edward Powley, Daniel Whitehouse, Simon M Lucas, Peter I Cowling, Philipp Rohlfshagen, Stephen Tavener, Diego Perez, Spyridon Samothrakis, and Simon Colton. A survey of monte carlo tree search methods. IEEE Transactions on Computational Intelligence and AI in games, 4(1):1–43, 2012. ",
1472
+ "bbox": [
1473
+ 174,
1474
+ 363,
1475
+ 825,
1476
+ 420
1477
+ ],
1478
+ "page_idx": 11
1479
+ },
1480
+ {
1481
+ "type": "text",
1482
+ "text": "Silvia Chiappa, Sebastien Racaniere, Daan Wierstra, and Shakir Mohamed. Recurrent environment ´ simulators. arXiv preprint arXiv:1704.02254, 2017. ",
1483
+ "bbox": [
1484
+ 171,
1485
+ 430,
1486
+ 825,
1487
+ 460
1488
+ ],
1489
+ "page_idx": 11
1490
+ },
1491
+ {
1492
+ "type": "text",
1493
+ "text": "Remi Coulom. Efficient selectivity and backup operators in monte-carlo tree search. In ´ Computers and Games, 5th International Conference, CG 2006, Turin, Italy, May 29-31, 2006. Revised Papers, pp. 72–83, 2006. doi: 10.1007/978-3-540-75538-8 7. ",
1494
+ "bbox": [
1495
+ 174,
1496
+ 470,
1497
+ 825,
1498
+ 513
1499
+ ],
1500
+ "page_idx": 11
1501
+ },
1502
+ {
1503
+ "type": "text",
1504
+ "text": "Marc Deisenroth and Carl E Rasmussen. Pilco: A model-based and data-efficient approach to policy search. In Proceedings of the 28th International Conference on machine learning (ICML-11), pp. 465–472, 2011. ",
1505
+ "bbox": [
1506
+ 173,
1507
+ 523,
1508
+ 823,
1509
+ 566
1510
+ ],
1511
+ "page_idx": 11
1512
+ },
1513
+ {
1514
+ "type": "text",
1515
+ "text": "Priya L Donti, Brandon Amos, and J Zico Kolter. Task-based end-to-end model learning. arXiv preprint arXiv:1703.04529, 2017. ",
1516
+ "bbox": [
1517
+ 169,
1518
+ 577,
1519
+ 825,
1520
+ 606
1521
+ ],
1522
+ "page_idx": 11
1523
+ },
1524
+ {
1525
+ "type": "text",
1526
+ "text": "Michael Fairbank and Eduardo Alonso. Value-gradient learning. In Neural Networks (IJCNN), The 2012 International Joint Conference on, pp. 1–8. IEEE, 2012. ",
1527
+ "bbox": [
1528
+ 171,
1529
+ 617,
1530
+ 823,
1531
+ 646
1532
+ ],
1533
+ "page_idx": 11
1534
+ },
1535
+ {
1536
+ "type": "text",
1537
+ "text": "Sylvain Gelly and David Silver. Combining online and offline knowledge in uct. In Proceedings of the 24th international conference on Machine learning, pp. 273–280. ACM, 2007. ",
1538
+ "bbox": [
1539
+ 173,
1540
+ 655,
1541
+ 823,
1542
+ 685
1543
+ ],
1544
+ "page_idx": 11
1545
+ },
1546
+ {
1547
+ "type": "text",
1548
+ "text": "Shixiang Gu, Timothy Lillicrap, Ilya Sutskever, and Sergey Levine. Continuous deep q-learning with model-based acceleration. In International Conference on Machine Learning, pp. 2829–2838, 2016. ",
1549
+ "bbox": [
1550
+ 174,
1551
+ 695,
1552
+ 825,
1553
+ 738
1554
+ ],
1555
+ "page_idx": 11
1556
+ },
1557
+ {
1558
+ "type": "text",
1559
+ "text": "Nicolas Heess, Gregory Wayne, David Silver, Tim Lillicrap, Tom Erez, and Yuval Tassa. Learning continuous control policies by stochastic value gradients. In Advances in Neural Information Processing Systems, pp. 2944–2952, 2015. ",
1560
+ "bbox": [
1561
+ 173,
1562
+ 748,
1563
+ 825,
1564
+ 791
1565
+ ],
1566
+ "page_idx": 11
1567
+ },
1568
+ {
1569
+ "type": "text",
1570
+ "text": "Christopher Hesse, Matthias Plappert, Alec Radford, John Schulman, Szymon Sidor, and Yuhuai Wu. Openai baselines. https://github.com/openai/baselines, 2017. ",
1571
+ "bbox": [
1572
+ 171,
1573
+ 803,
1574
+ 825,
1575
+ 832
1576
+ ],
1577
+ "page_idx": 11
1578
+ },
1579
+ {
1580
+ "type": "text",
1581
+ "text": "Donald E Knuth and Ronald W Moore. An analysis of alpha-beta pruning. Artificial intelligence, 6 (4):293–326, 1975. ",
1582
+ "bbox": [
1583
+ 173,
1584
+ 842,
1585
+ 823,
1586
+ 871
1587
+ ],
1588
+ "page_idx": 11
1589
+ },
1590
+ {
1591
+ "type": "text",
1592
+ "text": "Levente Kocsis and Csaba Szepesvari. Bandit based monte-carlo planning. In ´ Machine Learning: ECML 2006, 17th European Conference on Machine Learning, Berlin, Germany, September 18-22, 2006, Proceedings, pp. 282–293, 2006. doi: 10.1007/11871842 29. ",
1593
+ "bbox": [
1594
+ 174,
1595
+ 882,
1596
+ 826,
1597
+ 924
1598
+ ],
1599
+ "page_idx": 11
1600
+ },
1601
+ {
1602
+ "type": "text",
1603
+ "text": "Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin A. Riedmiller, Andreas Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015. doi: 10.1038/nature14236. ",
1604
+ "bbox": [
1605
+ 176,
1606
+ 103,
1607
+ 826,
1608
+ 174
1609
+ ],
1610
+ "page_idx": 12
1611
+ },
1612
+ {
1613
+ "type": "text",
1614
+ "text": "Volodymyr Mnih, Adria Puigdom \\` enech Badia, Mehdi Mirza, Alex Graves, Timothy P. Lillicrap, Tim \\` Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In Proceedings of the 33nd International Conference on Machine Learning, ICML 2016, New York City, NY, USA, June 19-24, 2016, pp. 1928–1937, 2016. ",
1615
+ "bbox": [
1616
+ 174,
1617
+ 184,
1618
+ 826,
1619
+ 241
1620
+ ],
1621
+ "page_idx": 12
1622
+ },
1623
+ {
1624
+ "type": "text",
1625
+ "text": "Vinod Nair and Geoffrey E. Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), June 21-24, 2010, Haifa, Israel, pp. 807–814, 2010. ",
1626
+ "bbox": [
1627
+ 174,
1628
+ 251,
1629
+ 823,
1630
+ 292
1631
+ ],
1632
+ "page_idx": 12
1633
+ },
1634
+ {
1635
+ "type": "text",
1636
+ "text": "Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard L Lewis, and Satinder Singh. Action-conditional video prediction using deep networks in atari games. In Advances in Neural Information Processing Systems, pp. 2863–2871, 2015. ",
1637
+ "bbox": [
1638
+ 171,
1639
+ 303,
1640
+ 823,
1641
+ 345
1642
+ ],
1643
+ "page_idx": 12
1644
+ },
1645
+ {
1646
+ "type": "text",
1647
+ "text": "Junhyuk Oh, Satinder Singh, and Honglak Lee. Value prediction network. arXiv preprint arXiv:1707.03497, 2017. ",
1648
+ "bbox": [
1649
+ 171,
1650
+ 356,
1651
+ 825,
1652
+ 385
1653
+ ],
1654
+ "page_idx": 12
1655
+ },
1656
+ {
1657
+ "type": "text",
1658
+ "text": "Deepak Pathak, Pulkit Agrawal, Alexei A Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. arXiv preprint arXiv:1705.05363, 2017. ",
1659
+ "bbox": [
1660
+ 173,
1661
+ 395,
1662
+ 823,
1663
+ 424
1664
+ ],
1665
+ "page_idx": 12
1666
+ },
1667
+ {
1668
+ "type": "text",
1669
+ "text": "David Silver, Richard S. Sutton, and Martin Muller. Temporal-difference search in computer go.¨ Machine Learning, 87(2):183–219, 2012. doi: 10.1007/s10994-012-5280-0. ",
1670
+ "bbox": [
1671
+ 176,
1672
+ 434,
1673
+ 821,
1674
+ 463
1675
+ ],
1676
+ "page_idx": 12
1677
+ },
1678
+ {
1679
+ "type": "text",
1680
+ "text": "David Silver, Aja Huang, Chris J. Maddison, Arthur Guez, Laurent Sifre, George van den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Vedavyas Panneershelvam, Marc Lanctot, Sander Dieleman, Dominik Grewe, John Nham, Nal Kalchbrenner, Ilya Sutskever, Timothy P. Lillicrap, Madeleine Leach, Koray Kavukcuoglu, Thore Graepel, and Demis Hassabis. Mastering the game of go with deep neural networks and tree search. Nature, 529(7587):484–489, 2016. doi: 10.1038/nature16961. ",
1681
+ "bbox": [
1682
+ 173,
1683
+ 472,
1684
+ 826,
1685
+ 556
1686
+ ],
1687
+ "page_idx": 12
1688
+ },
1689
+ {
1690
+ "type": "text",
1691
+ "text": "David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of go without human knowledge. Nature, 550(7676):354–359, 2017a. ",
1692
+ "bbox": [
1693
+ 176,
1694
+ 566,
1695
+ 825,
1696
+ 609
1697
+ ],
1698
+ "page_idx": 12
1699
+ },
1700
+ {
1701
+ "type": "text",
1702
+ "text": "David Silver, Hado van Hasselt, Matteo Hessel, Tom Schaul, Arthur Guez, Tim Harley, Gabriel Dulac-Arnold, David P. Reichert, Neil Rabinowitz, Andre Barreto, and Thomas Degris. The ´ predictron: End-to-end learning and planning. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, pp. 3191–3199, 2017b. ",
1703
+ "bbox": [
1704
+ 173,
1705
+ 619,
1706
+ 825,
1707
+ 689
1708
+ ],
1709
+ "page_idx": 12
1710
+ },
1711
+ {
1712
+ "type": "text",
1713
+ "text": "Nathan R Sturtevant. An analysis of uct in multi-player games. In International Conference on Computers and Games, pp. 37–49. Springer, 2008. ",
1714
+ "bbox": [
1715
+ 174,
1716
+ 700,
1717
+ 823,
1718
+ 729
1719
+ ],
1720
+ "page_idx": 12
1721
+ },
1722
+ {
1723
+ "type": "text",
1724
+ "text": "Richard S Sutton. Learning to predict by the methods of temporal differences. Machine learning, 3 (1):9–44, 1988. ",
1725
+ "bbox": [
1726
+ 173,
1727
+ 739,
1728
+ 823,
1729
+ 768
1730
+ ],
1731
+ "page_idx": 12
1732
+ },
1733
+ {
1734
+ "type": "text",
1735
+ "text": "Richard S. Sutton. Integrated architectures for learning, planning, and reacting based on approximating dynamic programming. In Machine Learning, Proceedings of the Seventh International Conference on Machine Learning, Austin, Texas, USA, June 21-23, 1990, pp. 216–224, 1990. ",
1736
+ "bbox": [
1737
+ 174,
1738
+ 779,
1739
+ 823,
1740
+ 821
1741
+ ],
1742
+ "page_idx": 12
1743
+ },
1744
+ {
1745
+ "type": "text",
1746
+ "text": "Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction, volume 1. MIT press Cambridge, 1998. ",
1747
+ "bbox": [
1748
+ 169,
1749
+ 830,
1750
+ 823,
1751
+ 859
1752
+ ],
1753
+ "page_idx": 12
1754
+ },
1755
+ {
1756
+ "type": "text",
1757
+ "text": "Erik Talvitie. Model regularization for stable sample rollouts. In UAI, pp. 780–789, 2014. ",
1758
+ "bbox": [
1759
+ 169,
1760
+ 869,
1761
+ 763,
1762
+ 886
1763
+ ],
1764
+ "page_idx": 12
1765
+ },
1766
+ {
1767
+ "type": "text",
1768
+ "text": "Erik Talvitie. Self-correcting models for model-based reinforcement learning. In AAAI, pp. 2597– 2603, 2017. ",
1769
+ "bbox": [
1770
+ 173,
1771
+ 895,
1772
+ 823,
1773
+ 924
1774
+ ],
1775
+ "page_idx": 12
1776
+ },
1777
+ {
1778
+ "type": "text",
1779
+ "text": "Aviv Tamar, Sergey Levine, Pieter Abbeel, Yi Wu, and Garrett Thomas. Value iteration networks. In Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016, December 5-10, 2016, Barcelona, Spain, pp. 2146–2154, 2016. ",
1780
+ "bbox": [
1781
+ 178,
1782
+ 103,
1783
+ 823,
1784
+ 146
1785
+ ],
1786
+ "page_idx": 13
1787
+ },
1788
+ {
1789
+ "type": "text",
1790
+ "text": "Tijmen Tieleman and Geoffrey Hinton. Lecture 6.5-rmsprop: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural networks for machine learning, 4(2):26–31, 2012. ",
1791
+ "bbox": [
1792
+ 178,
1793
+ 155,
1794
+ 823,
1795
+ 196
1796
+ ],
1797
+ "page_idx": 13
1798
+ },
1799
+ {
1800
+ "type": "text",
1801
+ "text": "Harm van Seijen, Shimon Whiteson, Hado van Hasselt, and Marco Wiering. Exploiting best-match equations for efficient reinforcement learning. Journal of Machine Learning Research, 12(Jun): 2045–2094, 2011. ",
1802
+ "bbox": [
1803
+ 174,
1804
+ 207,
1805
+ 826,
1806
+ 248
1807
+ ],
1808
+ "page_idx": 13
1809
+ },
1810
+ {
1811
+ "type": "text",
1812
+ "text": "Christopher J. C. H. Watkins and Peter Dayan. Q-learning. Machine Learning, 8:279–292, 1992. doi: 10.1007/BF00992698. ",
1813
+ "bbox": [
1814
+ 174,
1815
+ 257,
1816
+ 823,
1817
+ 286
1818
+ ],
1819
+ "page_idx": 13
1820
+ },
1821
+ {
1822
+ "type": "text",
1823
+ "text": "Theophane Weber, Sebastien Racani ´ ere, David P. Reichert, Lars Buesing, Arthur Guez, \\` Danilo Jimenez Rezende, Adria Puigdom \\` enech Badia, Oriol Vinyals, Nicolas Heess, Yujia Li, \\` Razvan Pascanu, Peter Battaglia, David Silver, and Daan Wierstra. Imagination-augmented agents for deep reinforcement learning. CoRR, abs/1707.06203, 2017. ",
1824
+ "bbox": [
1825
+ 174,
1826
+ 295,
1827
+ 825,
1828
+ 352
1829
+ ],
1830
+ "page_idx": 13
1831
+ },
1832
+ {
1833
+ "type": "text",
1834
+ "text": "A APPENDIX ",
1835
+ "text_level": 1,
1836
+ "bbox": [
1837
+ 176,
1838
+ 102,
1839
+ 299,
1840
+ 117
1841
+ ],
1842
+ "page_idx": 14
1843
+ },
1844
+ {
1845
+ "type": "text",
1846
+ "text": "A.1 BOX PUSHING ",
1847
+ "text_level": 1,
1848
+ "bbox": [
1849
+ 176,
1850
+ 133,
1851
+ 318,
1852
+ 148
1853
+ ],
1854
+ "page_idx": 14
1855
+ },
1856
+ {
1857
+ "type": "text",
1858
+ "text": "Environment. For each episode, a new level is generated by placing an agent, 12 boxes, 5 goals and 6 obstacles in the center $6 \\times 6$ tiles of an $8 \\times 8$ grid, sampling locations uniformly. The outer tiles are left empty to prevent initial situations where boxes cannot be recovered. ",
1859
+ "bbox": [
1860
+ 174,
1861
+ 160,
1862
+ 825,
1863
+ 202
1864
+ ],
1865
+ "page_idx": 14
1866
+ },
1867
+ {
1868
+ "type": "text",
1869
+ "text": "The agent may move in the four cardinal directions. If the agent steps off the grid, the episode ends and the agent receives a penalty of $- 1$ . If the agent moves into a box, it is pushed in the direction of movement. Moving a box out of the grid generates a penalty of $- 0 . 1$ . Moving a box into another box is not allowed and trying to do so generates a penalty of $- 0 . 1$ while leaving all positions unchanged. When a box is pushed into a goal, it is removed and the agent receives a reward of $+ 1$ . ",
1870
+ "bbox": [
1871
+ 174,
1872
+ 208,
1873
+ 825,
1874
+ 279
1875
+ ],
1876
+ "page_idx": 14
1877
+ },
1878
+ {
1879
+ "type": "text",
1880
+ "text": "Obstacles generate a penalty of $- 0 . 2$ when the agent or a box is moved onto them. Moving the agent over goals incurs no penalty. Lastly, at each timestep the agent receives a penalty of $- 0 . 0 1$ . Episodes terminate when 75 timesteps have elapsed, the agent has left the grid, or no boxes remain. ",
1881
+ "bbox": [
1882
+ 174,
1883
+ 285,
1884
+ 825,
1885
+ 327
1886
+ ],
1887
+ "page_idx": 14
1888
+ },
1889
+ {
1890
+ "type": "text",
1891
+ "text": "The observation is given to the model as a tensor of size $5 \\times 8 \\times 8$ . The first four channels are binary encodings of the position of the agent, goals, boxes, and obstacles respectively. The final channel is filled with the number of timesteps remaining (normalised by the total number of timesteps allowed). ",
1892
+ "bbox": [
1893
+ 174,
1894
+ 333,
1895
+ 825,
1896
+ 376
1897
+ ],
1898
+ "page_idx": 14
1899
+ },
1900
+ {
1901
+ "type": "text",
1902
+ "text": "Architecture. The encoder consists of (conv-3x3-1-24, conv-3x3-1-24, conv-4x4-1-48, fc-128), where conv-wxh-s-n denotes a convolution with $n$ filters of size $w \\times h$ and stride $s$ , and fc-h denotes a fully connected layer with $h$ hidden units. All layers are separated with ReLU nonlinearities. The hidden layer of the reward function MLP has 64 hidden units. ",
1903
+ "bbox": [
1904
+ 174,
1905
+ 382,
1906
+ 825,
1907
+ 439
1908
+ ],
1909
+ "page_idx": 14
1910
+ },
1911
+ {
1912
+ "type": "text",
1913
+ "text": "A.2 ATARI ",
1914
+ "text_level": 1,
1915
+ "bbox": [
1916
+ 174,
1917
+ 457,
1918
+ 263,
1919
+ 470
1920
+ ],
1921
+ "page_idx": 14
1922
+ },
1923
+ {
1924
+ "type": "text",
1925
+ "text": "Preprocessing of inputs follows the procedure of Mnih et al. (2015), including concatenation of the last four frames as input, although we use a frameskip of 10. ",
1926
+ "bbox": [
1927
+ 176,
1928
+ 482,
1929
+ 821,
1930
+ 511
1931
+ ],
1932
+ "page_idx": 14
1933
+ },
1934
+ {
1935
+ "type": "text",
1936
+ "text": "Architecture. The Atari experiments have the same architecture as for box-pushing, except for the encoder architecture which is as follows: (conv-8x8-4-16, conv-4x4-2-32, fc-512). ",
1937
+ "bbox": [
1938
+ 173,
1939
+ 517,
1940
+ 823,
1941
+ 546
1942
+ ],
1943
+ "page_idx": 14
1944
+ },
1945
+ {
1946
+ "type": "text",
1947
+ "text": "A.3 OTHER HYPERPARAMETERS ",
1948
+ "text_level": 1,
1949
+ "bbox": [
1950
+ 176,
1951
+ 563,
1952
+ 411,
1953
+ 577
1954
+ ],
1955
+ "page_idx": 14
1956
+ },
1957
+ {
1958
+ "type": "text",
1959
+ "text": "All experiments use RMSProp (Tieleman & Hinton, 2012) with a learning rate of 1e-4, a decay of $\\alpha = 0 . 9 9$ , and $\\epsilon = 1 \\mathrm { e } { - } 5$ . ",
1960
+ "bbox": [
1961
+ 173,
1962
+ 588,
1963
+ 823,
1964
+ 617
1965
+ ],
1966
+ "page_idx": 14
1967
+ },
1968
+ {
1969
+ "type": "text",
1970
+ "text": "The learning rate was tuned coarsely by running DQN on the Seaquest environment, and kept the same for all subsequent experiments (box-pushing and Atari). ",
1971
+ "bbox": [
1972
+ 174,
1973
+ 623,
1974
+ 823,
1975
+ 652
1976
+ ],
1977
+ "page_idx": 14
1978
+ },
1979
+ {
1980
+ "type": "text",
1981
+ "text": "For DQN and TreeQN, $\\epsilon$ for $\\epsilon$ -greedy exploration was decayed linearly from 1 to 0.05 over the first 4 million environment transitions observed (after frameskipping, so over 40 million atomic Atari timesteps). ",
1982
+ "bbox": [
1983
+ 174,
1984
+ 660,
1985
+ 825,
1986
+ 702
1987
+ ],
1988
+ "page_idx": 14
1989
+ },
1990
+ {
1991
+ "type": "text",
1992
+ "text": "For A2C and ATreeC, we use a value-function loss coefficient $\\alpha = 0 . 5$ and an entropy regularisation $\\beta = 0 . 0 1$ . ",
1993
+ "bbox": [
1994
+ 173,
1995
+ 708,
1996
+ 821,
1997
+ 736
1998
+ ],
1999
+ "page_idx": 14
2000
+ },
2001
+ {
2002
+ "type": "text",
2003
+ "text": "The reward prediction loss was scaled by $\\eta _ { r } = 1$ ",
2004
+ "bbox": [
2005
+ 176,
2006
+ 743,
2007
+ 495,
2008
+ 758
2009
+ ],
2010
+ "page_idx": 14
2011
+ },
2012
+ {
2013
+ "type": "text",
2014
+ "text": "We use $n _ { \\mathrm { s t e p s } } = 5$ and $n _ { \\mathrm { e n v s } } = 1 6$ , for a total batch size of 80. ",
2015
+ "bbox": [
2016
+ 173,
2017
+ 765,
2018
+ 573,
2019
+ 780
2020
+ ],
2021
+ "page_idx": 14
2022
+ },
2023
+ {
2024
+ "type": "text",
2025
+ "text": "The discount factor is $\\gamma = 0 . 9 9$ and the target networks are updated every $4 0 , 0 0 0$ environment transitions. ",
2026
+ "bbox": [
2027
+ 173,
2028
+ 786,
2029
+ 823,
2030
+ 814
2031
+ ],
2032
+ "page_idx": 14
2033
+ }
2034
+ ]
parse/train/H1dh6Ax0Z/H1dh6Ax0Z_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1dh6Ax0Z/H1dh6Ax0Z_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJlzxgBtwH/HJlzxgBtwH.md ADDED
@@ -0,0 +1,384 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Minimally distorted Adversarial Examples with a Fast Adaptive Boundary Attack
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # Abstract
6
+
7
+ The evaluation of robustness against adversarial manipulations of neural networks-based classifiers is mainly tested with empirical attacks as the methods for the exact computation, even when available, do not scale to large networks. We propose in this paper a new white-box adversarial attack wrt the $l _ { p }$ -norms for $p \in \{ 1 , 2 , \infty \}$ aiming at finding the minimal perturbation necessary to change the class of a given input. It has an intuitive geometric meaning, yields quickly high quality results, minimizes the size of the perturbation (so that it returns the robust accuracy at every threshold with a single run). It performs better or similarly to state-of-the-art attacks which are partially specialized to one $l _ { p }$ -norm.
8
+
9
+ # 1 Introduction
10
+
11
+ The finding of the vulnerability of neural networks-based classifiers to adversarial examples, that is small perturbations of the input able to modify the decision of the models, started a fast development of a variety of attack algorithms. The high effectiveness of adversarial attacks reveals the fragility of these networks which questions their safe and reliable use in the real world, especially in safety critical applications. Many defenses have been proposed to fix this issue (Gu & Rigazio, 2015; Zheng et al., 2016; Papernot et al., 2016; Huang et al., 2016; Bastani et al., 2016; Madry et al., 2018), but with limited success, as new more powerful attacks showed (Carlini & Wagner, 2017b; Athalye et al., 2018; Mosbach et al., 2018). In order to trust the decision of a model, it is necessary to evaluate the exact adversarial robustness. Although this is possible for ReLU networks (Katz et al., 2017; Tjeng et al., 2019) these techniques do not scale to commonly used large networks. Thus, the robustness is evaluated approximating the solution of the minimal adversarial perturbation problem through adversarial attacks.
12
+
13
+ One can distinguish attacks into black-box (Narodytska & Kasiviswanathan, 2016; Brendel et al., 2018; Su et al., 2019), where one is only allowed to query the classifier, and white-box attacks, where one has full control over the network, according to the attack model used to create adversarial examples (typically some $l _ { p }$ -norm, but others have become popular as well, e.g. Brown et al. (2017); Engstrom et al. (2017); Wong et al.), whether they aim at the minimal adversarial perturbation (Carlini & Wagner, 2017a; Chen et al., 2018; Croce et al., 2019) or rather any perturbation below a threshold (Kurakin et al., 2017; Madry et al., 2018; Zheng et al., 2019), if they have lower (Moosavi-Dezfooli et al., 2016; Modas et al., 2019) or higher (Carlini & Wagner, 2017a; Croce et al., 2019) computational cost. Moreover, it is clear that due to the non-convexity of the problem there exists no universally best attack (apart from the exact methods), since this depends on runtime constraints, networks architecture, dataset, etc. However, our goal is to have an attack which performs well under a broad spectrum of conditions with minimal amount of hyperparameter tuning.
14
+
15
+ In this paper we propose a new white-box attacking scheme which performs comparably or better than established attacks and has the following features: first, it tries to produce adversarial samples with minimal distortion compared to the original point, measured wrt the $l _ { p }$ -norms with $p \in \{ 1 , 2 , \infty \}$ . Respect to the quite popular PGD-attack of Madry et al. (2018) this has the clear advantage that our method does not need to be restarted for every threshold $\epsilon$ if one wants to evaluate the success rate of the attack with perturbations constrained to be in $\{ \delta \in \mathbb { R } ^ { d } \mid \left\| \delta \right\| _ { p } \leq \epsilon \}$ . Thus it is particularly suitable to get a complete picture on the robustness of a classifier with low computational cost. Second, it achieves fast good quality in terms of average distortion or robust accuracy. At the same time we show that increasing the number of restarts keeps improving the results and makes it competitive with the strongest available attacks. Third, although it comes with a few parameters, these mostly generalize across datasets, architectures and norms considered, so that we have an almost off-the-shelf method. Most importantly, unlike PGD and other methods, there is no step size parameter which potentially has to be carefully adapted to every new network.
16
+
17
+ # 2 FAB: a Fast Adaptive Boundary Attack
18
+
19
+ We first introduce minimal adversarial perturbations, then we recall the definition and properties of the projection wrt the $l _ { p }$ -norms of a point on the intersection of a hyperplane and box constraints, as they are an essential part of our attack. Finally, we present our FAB-attack algorithm to generate minimally distorted adversarial examples.
20
+
21
+ # 2.1 Minimal adversarial examples
22
+
23
+ Let $f : \mathbb { R } ^ { d } \mathbb { R } ^ { K }$ be a classifier which assigns every input $x \in \mathbb { R } ^ { d }$ (with $d$ the dimension of the input space) to one of the $K$ classes according to arg max $f _ { r } ( x )$ . In many scenarios $r { = } 1 , { \ldots } , K$
24
+
25
+ the input of $f$ has to satisfy a specific set of constraints $C$ , e.g. images are represented as elements of $[ 0 , 1 ] ^ { d }$ . Then, given a point $x \in \mathbb { R } ^ { d }$ with true class $c$ , we define the minimal adversarial perturbation for $x$ wrt the $l _ { p }$ -norm as
26
+
27
+ $$
28
+ \delta _ { \operatorname* { m i n } , p } = \operatorname* { a r g m i n } _ { \delta \in \mathbb { R } ^ { d } } \ \| \delta \| _ { p } , \quad \mathrm { s . t h . } \quad \operatorname* { m a x } _ { l \neq c } \ f _ { l } ( x + \delta ) \geq f _ { c } ( x + \delta ) , \quad x + \delta \in C .
29
+ $$
30
+
31
+ The optimization problem (1) is non-convex and NP-hard for non-trivial classifiers (Katz et al. (2017)) and, although for some classes of networks it can be formulated as a mixed-integer program (see Tjeng et al. (2019)), the computational cost of solving it is prohibitive for large, normally trained networks. Thus, $\delta _ { \mathrm { m i n } , p }$ is usually approximated by an attack algorithm, which can be seen as a heuristic to solve (1). We will see in the experiments that current attacks sometimes drastically overestimate $\Vert \delta _ { \mathrm { m i n } , p } \Vert _ { p }$ and thus the robustness of the networks.
32
+
33
+ # 2.2 Projection on a hyperplane with box constraints
34
+
35
+ Let $w ~ \in ~ \mathbb { R } ^ { d }$ and $b \in \mathbb { R }$ be the normal vector and the offset defining the hyperplane $\pi : \langle w , x \rangle + b = 0$ . Let $x \in \mathbb { R } ^ { d }$ , we denote by the box-constrained projection wrt the $l _ { p }$ -norm of $x$ on $\pi$ (projection onto the intersection of the box $C = \{ z \in \mathbb { R } ^ { d } : l _ { i } \leq z _ { i } \leq u _ { i } \}$ and the hyperplane $\pi$ ) the following minimization problem:
36
+
37
+ $$
38
+ z ^ { * } = \underset { z \in \mathbb { R } ^ { d } } { \mathrm { a r g } \mathrm { m i n } } \ \lVert z - x \rVert _ { p } \quad \mathrm { s . t h . } \quad \langle w , z \rangle + b = 0 , \quad l _ { i } \leq z _ { i } \leq u _ { i } , \quad i = 1 , \ldots , d ,
39
+ $$
40
+
41
+ where $l _ { i } , u _ { i } \in \mathbb { R }$ are lower and upper bounds on each component of $z$ . For $p \geq 1$ the optimization problem (2) is convex. Hein $\&$ Andriushchenko (2017) proved that for $p \in$ $\{ 1 , 2 , \infty \}$ the solution can be obtained in ${ \mathcal { O } } ( d \log d )$ time, that is the complexity of sorting a vector of $d$ elements, as well as determining that it has no solution.
42
+
43
+ Since this projection is part of our iterative scheme, we need to handle specifically the case of (2) being infeasible. In this case, defining $\rho = \mathrm { s i g n } ( \langle w , x \rangle + b )$ , we instead compute
44
+
45
+ $$
46
+ z ^ { \prime } = \underset { z \in \mathbb { R } ^ { d } } { \arg \operatorname* { m i n } } \ \rho ( \langle w , z \rangle + b ) \quad \mathrm { s . t h . } \quad l _ { i } \leq z _ { i } \leq u _ { i } , \quad i = 1 , \ldots , d ,
47
+ $$
48
+
49
+ $z _ { i } = \left\{ { \begin{array} { l } { l _ { i } } \\ { u _ { i } } \\ { x _ { i } } \end{array} } \right.$ if $\rho w _ { i } > 0$ , whose solution is given componentwise, for every $i = 1 , \ldots , d$ , by if $\rho w _ { i } < 0 , .$ if $w _ { i } = 0$
50
+
51
+ Assuming that the point $x$ satisfies the box constraints (as it will be in our algorithm), this is equivalent to identifying the corner of the $d$ -dimensional box defined by the componentwise constraints on $z$ closest to the hyperplane $\pi$ . Notice that if (2) is infeasible then the objective
52
+
53
+ function of (3) stays positive and the points $x$ and $z$ are strictly contained in the same of the two halfspaces divided by $\pi$ . Finally, we define the operator
54
+
55
+ $$
56
+ \mathrm { p r o j } _ { p } : ( x , \pi , C ) \longmapsto { \left\{ \begin{array} { l l } { z ^ { * } } & { { \mathrm { i f ~ } } \mathrm { P r o b l e m ~ ( 2 ) ~ i s ~ f e a s i b l e } } \\ { z ^ { \prime } } & { { \mathrm { e l s e } } } \end{array} \right. }
57
+ $$
58
+
59
+ yielding the point which gets as close as possible to $\pi$ without violating the box constraints.
60
+
61
+ # 2.3 FAB Attack
62
+
63
+ We introduce now our algorithm to produce minimally distorted adversarial examples, wrt any $l _ { p }$ -norm for $p \in \{ 1 , 2 , \infty \}$ , for a given point $x _ { \mathrm { o r i g } }$ initially correctly classified by $f$ as class $c$ . The high-level idea is that we use the linearization of the classifier at the current iterate $\boldsymbol { x } ^ { ( i ) }$ , compute the box-constrained projections of $\boldsymbol { x } ^ { ( i ) }$ respectively $x _ { \mathrm { o r i g } }$ onto the approximated decision hyperplane and take a convex combinations of these projections depending on the distance of $\boldsymbol { x } ^ { ( i ) }$ and to the decision hyperplane, followed by some extrapolation step. $x _ { \mathrm { o r i g } }$
64
+ We explain below the geometric motivation behind these steps. The attack closest in spirit is DeepFool (Moosavi-Dezfooli et al. (2016)) which is known to be very fast but suffers from low quality. DeepFool just tries to find the decision boundary quickly but has no incentive to provide a solution close to $x _ { \mathrm { o r i g } }$ . Our scheme resolves this main problem and, together with the exact projection we use, leads to a principled way to track the decision boundary (the surface where the decision of $f$ changes) close to $x _ { \mathrm { o r i g } }$ .
65
+
66
+ If $f$ was a linear classifier then the closest point to $\boldsymbol { x } ^ { ( i ) }$ on the decision hyperplane could be found in closed form. Although neural networks are highly non-linear, ReLU networks (neural networks which use ReLU as activation function) are piecewise affine functions and thus locally a linearization of the network is an exact description of the classifier. Let $l \neq c$ , then the decision boundary between classes $\it l$ and $c$ can be locally approximated using a first order Taylor expansion at $\boldsymbol { x } ^ { ( i ) }$ by the hyperplane
67
+
68
+ $$
69
+ \pi \iota ( z ) : f _ { l } ( x ^ { ( i ) } ) - f _ { c } ( x ^ { ( i ) } ) + \left. \nabla f _ { l } ( x ^ { ( i ) } ) - \nabla f _ { c } ( x ^ { ( i ) } ) , z - x ^ { ( i ) } \right. = 0 .
70
+ $$
71
+
72
+ Moreover the $l _ { p }$ -distance $d _ { p } ( \pi , x ^ { ( i ) } )$ of $\boldsymbol { x } ^ { ( i ) }$ to $\pi _ { l }$ is given by
73
+
74
+ $$
75
+ d _ { p } ( \pi _ { l } , x ^ { ( i ) } ) = \frac { | f _ { l } ( x ^ { ( i ) } ) - f _ { c } ( x ^ { ( i ) } ) | } { \left\| \nabla f _ { l } ( x ^ { ( i ) } ) - \nabla f _ { c } ( x ^ { ( i ) } ) \right\| _ { q } } , \quad \mathrm { w i t h } \quad \frac { 1 } { p } + \frac { 1 } { q } = 1 .
76
+ $$
77
+
78
+ Note that if $d _ { p } ( \pi _ { l } , x ^ { ( i ) } ) = 0$ then $\boldsymbol { x } ^ { ( i ) }$ belongs to the true decision boundary. Moreover, if the local linear approximation of the network is correct then the class $s$ with the decision hyperplane closest to the point $\boldsymbol { x } ^ { ( i ) }$ can be computed as
79
+
80
+ $$
81
+ s = \underset { l \neq c } { \arg \operatorname* { m i n } } \frac { \lvert f _ { l } ( \boldsymbol { x } ^ { ( i ) } ) - f _ { c } ( \boldsymbol { x } ^ { ( i ) } ) \rvert } { \left. \nabla f _ { l } ( \boldsymbol { x } ^ { ( i ) } ) - \nabla f _ { c } ( \boldsymbol { x } ^ { ( i ) } ) \right. _ { q } } .
82
+ $$
83
+
84
+ Thus, given that the approximation holds in some large enough neighborhood, the projection $\mathrm { p r o j } _ { p } ( \boldsymbol { x } ^ { ( i ) } , \pi _ { s } , C )$ of $x ^ { ( i ) }$ onto $\pi _ { s }$ lies on the decision boundary (unless (2) is infeasible).
85
+
86
+ Biased gradient step: The iterative algorithm $\begin{array} { r } { \boldsymbol { x } _ { . } ^ { ( i + 1 ) } = \mathrm { p r o j } _ { p } ( \boldsymbol { x } ^ { ( i ) } , \pi _ { s } , C ) } \end{array}$ would be similar to DeepFool except that our projection operator is exact whereas they project onto the hyperplane and then clip to $[ 0 , 1 ] ^ { d }$ . This scheme is not biased towards the original target point $x _ { \mathrm { o r i g } }$ , thus it goes typically further than necessary to find a point on the decision boundary as basically the algorithm does not aim at the minimal adversarial perturbation. Thus we consider additionally $\mathrm { p r o j } _ { p } ( x _ { \mathrm { o r i g } } , \pi _ { s } , C )$ and use instead the iterative step, with $x ^ { ( 0 ) } = x _ { \mathrm { o r i g } }$ , defined as
87
+
88
+ $$
89
+ x ^ { ( i + 1 ) } = ( 1 - \alpha ) \cdot \mathrm { p r o j } _ { p } ( x ^ { ( i ) } , \pi _ { s } , C ) + \alpha \cdot \mathrm { p r o j } _ { p } ( x _ { \mathrm { o r i g } } , \pi _ { s } , C ) ,
90
+ $$
91
+
92
+ which biases the step towards $x _ { \mathrm { o r i g } }$ (see Figure 1). Note that this is a convex combination of two points on $\pi _ { s }$ and in $C$ and thus also $x ^ { ( i + 1 ) }$ lies on $\pi _ { s }$ and is contained in $C$ . As we wish
93
+
94
+ ![](images/61ed5aa11b8b88c56205a2e11f05df1d055acd5f0879cc50a81c5020bc1a1661.jpg)
95
+ Figure 1: Visualization of FAB-attack scheme, with on the left the case $\eta = 1$ , on the right $\eta > 1$ . In blue we represent the next iterate $x ^ { ( i + 1 ) }$ one would get without any bias toward the original point , in green the effect of the bias we introduce and in red the $x ^ { ( i + 1 ) }$ $x _ { \mathrm { o r i g } }$ obtained with our scheme in (10). We see that our algorithm tends to stay closer to the original point compared to the one with an unbiased gradient step.
96
+
97
+ a scheme with minimal amount of parameters, we want to have an automatic selection of $\alpha$ based on the available geometric quantities. Let
98
+
99
+ $$
100
+ \delta ^ { ( i ) } = \mathrm { p r o j } _ { p } ( x ^ { ( i ) } , \pi _ { s } , C ) - x ^ { ( i ) } \quad \mathrm { ~ a n d ~ } \quad \delta _ { \mathrm { o r i g } } ^ { ( i ) } = \mathrm { p r o j } _ { p } ( x _ { \mathrm { o r i g } } , \pi _ { s } , C ) - x _ { \mathrm { o r i g } } .
101
+ $$
102
+
103
+ Note that $\left. \delta ^ { ( i ) } \right. _ { p }$ and $\left\| \delta _ { \mathrm { o r i g } } ^ { ( i ) } \right\| _ { p }$ are the distances of $\boldsymbol { x } ^ { ( i ) }$ and to (inside $C$ ). We $x _ { \mathrm { o r i g } }$ $\pi _ { s }$ propose to use for the parameter $\alpha$ the relative magnitude of these two distances, that is
104
+
105
+ $$
106
+ \alpha = \operatorname* { m i n } \left\{ \frac { \left\| \delta ^ { ( i ) } \right\| _ { p } } { \left\| \delta ^ { ( i ) } \right\| _ { p } + \left\| \delta _ { \mathrm { o r i g } } ^ { ( i ) } \right\| _ { p } } , \alpha _ { \mathrm { m a x } } \right\} \in [ 0 , 1 ] .
107
+ $$
108
+
109
+ The motivation for doing so is that if $\boldsymbol { x } ^ { ( i ) }$ is close to the decision boundary, then we should stay close to this point (note that $\pi _ { s }$ is the approximation of $f$ computed at $\boldsymbol { x } ^ { ( i ) }$ and thus it is valid in a small neighborhood of $\boldsymbol { x } ^ { ( i ) }$ , whereas is farther away). On the other hand we want to have the bias towards $x _ { \mathrm { o r i g } }$ in order not to go too far away from $x _ { \mathrm { o r i g } }$ . This is why $\alpha$ depends on the distances of $\boldsymbol { x } ^ { ( i ) }$ and $x _ { \mathrm { o r i g } }$ to $\pi _ { s }$ but we limit it from above with $\alpha _ { \mathrm { m a x } }$ . Finally, we use a small extrapolation step as we noted empirically, similarly to Moosavi-Dezfooli et al. (2016), that this helps to cross faster the decision boundary and get an adversarial sample. This leads to the final scheme:
110
+
111
+ $$
112
+ x ^ { ( i + 1 ) } = \mathrm { p r o j } _ { C } \Big ( ( 1 - \alpha ) ( x ^ { ( i ) } + \eta \delta ^ { ( i ) } ) + \alpha ( x _ { \mathrm { o r i g } } + \eta \delta _ { \mathrm { o r i g } } ^ { ( i ) } ) \Big ) ,
113
+ $$
114
+
115
+ where $\alpha$ is chosen as in (9), $\eta \geq 1$ and proj is just the projection onto the box which can be $C$
116
+ done by clippinand the vectors Figuand we visualize the scheme: in black one can see the hyperplane , in blue the step we would make going to the decision bounda $\pi _ { s }$ $\delta _ { \mathrm { o r i g } } ^ { ( i ) }$ $\delta ^ { ( i ) }$
117
+ with the DeepFool variant, while in red the actual step we have in our method. The green
118
+ vector represents instead the bias towards the original point we introduce. On the left of
119
+ Figure 1 we use $\eta = 1$ , while on the right we use overshooting $\eta > 1$ .
120
+
121
+ Interpretation of $\mathbf { p r o j } _ { p } ( x _ { \mathbf { o r i g } } , \pi _ { s } , C )$ : The projection of the target point onto the intersection of $\pi _ { s }$ and $C$ is defined as
122
+
123
+ $$
124
+ \operatorname * { a r g m i n } _ { z \in \mathbb { R } ^ { d } } \left\| z - x _ { \mathrm { o r i g } } \right\| _ { p } \mathrm { \quad { s . t h . \quad } } \left. w , z \right. + b = 0 , \quad l _ { i } \leq z _ { i } \leq u _ { i } ,
125
+ $$
126
+
127
+ Note that replacing $z$ by $\boldsymbol { x } ^ { ( i ) } + \delta$ we can rewrite this as
128
+
129
+ $$
130
+ \underset { \delta \in \mathbb R ^ { d } } { \arg \operatorname* { m i n } } \left\| x ^ { ( i ) } + \delta - x _ { \mathrm { o r i g } } \right\| _ { p } \quad \mathrm { s . t h . } \quad \langle w , x + \delta \rangle + b = 0 , \quad l _ { i } \leq x _ { i } + \delta _ { i } \leq u _ { i } .
131
+ $$
132
+
133
+ This can be interpreted as the minimization of the distance of the next iterate $\boldsymbol { x } ^ { ( i ) } + \delta$ to the target point $x _ { \mathrm { o r i g } }$ so that $\boldsymbol { x } ^ { ( i ) } + \delta$ lies on the intersection of the (approximate) decision hyperplane and the box $C$ . This point of view on the projection $\mathrm { p r o j } _ { p } ( x _ { \mathrm { o r i g } } , \pi _ { s } , C )$ again justifies using a convex combination of the two projections in our iterative scheme in (10).
134
+
135
+ Backward step: The described scheme finds in a few iterations adversarial perturbations. However, we are interested in minimizing their norms. Thus, once we have a new point $x ^ { ( i + 1 ) }$ , we check whether it is assigned by $f$ to a class different from $c$ . In this case, we apply
136
+
137
+ $$
138
+ x ^ { ( i + 1 ) } = ( 1 - \beta ) x _ { \mathrm { o r i g } } + \beta x ^ { ( i + 1 ) } , \quad \beta \in ( 0 , 1 ) ,
139
+ $$
140
+
141
+ that is we go back towards $x _ { \mathrm { o r i g } }$ on the segment $[ x ^ { ( i + 1 ) } , x _ { \mathrm { o r i g } } ]$ , effectively starting again the algorithm at a point which is quite close to the decision boundary. In this way, due to the bias of the method towards $x _ { \mathrm { o r i g } }$ we successively find adversarial perturbations of smaller norm, meaning that the algorithm tracks the decision boundary while getting closer to $x _ { \mathrm { o r i g } }$
142
+
143
+ Final search: Our scheme finds points close to the decision boundary but often they are slightly off as the linear approximation is not exact and we apply the extrapolation step with $\eta > 1$ . Thus, after finishing $N _ { \mathrm { i t e r } }$ iterations of our algorithmic scheme, we perform a last, fast step to further improve the quality of the adversarial examples. Let $x _ { \mathrm { o u t } }$ be the closest point to $x _ { \mathrm { o r i g } }$ classified differently from $c$ , say $s \neq c$ , found with the iterative scheme. It holds that $f _ { s } ( x _ { \mathrm { o u t } } ) - f _ { c } ( x _ { \mathrm { o u t } } ) > 0$ and $f _ { s } ( x _ { \mathrm { o r i g } } ) - f _ { c } ( x _ { \mathrm { o r i g } } ) < 0$ . This means that, assuming $f$ continuous, there exists a point $x ^ { * }$ on the segment $[ x _ { \mathrm { o u t } } , x _ { \mathrm { o r i g } } ]$ such that $f _ { s } ( x ^ { * } ) - f _ { c } ( x ^ { * } ) = 0$ and $\left\| x ^ { * } - x _ { \mathrm { o r i g } } \right\| _ { p } < \left\| x _ { \mathrm { o u t } } - x _ { \mathrm { o r i g } } \right\| _ { p }$ . If $f$ is linear
144
+
145
+ $$
146
+ x ^ { * } = x _ { \mathrm { o u t } } - { \frac { f _ { s } ( x _ { \mathrm { o u t } } ) - f _ { c } ( x _ { \mathrm { o u t } } ) } { f _ { s } ( x _ { \mathrm { o u t } } ) - f _ { c } ( x _ { \mathrm { o u t } } ) + f _ { s } ( x _ { \mathrm { o r i g } } ) - f _ { c } ( x _ { \mathrm { o r i g } } ) } } ( x _ { \mathrm { o u t } } - x _ { \mathrm { o r i g } } ) .
147
+ $$
148
+
149
+ Since $f$ is typically non-linear, but close to linear, we compute iteratively for a few steps
150
+
151
+ $$
152
+ x _ { \mathrm { { t e m p } } } = x _ { \mathrm { { o u t } } } - { \frac { f _ { s } ( x _ { \mathrm { { o u t } } } ) - f _ { c } ( x _ { \mathrm { { o u t } } } ) } { f _ { s } ( x _ { \mathrm { { o u t } } } ) - f _ { c } ( x _ { \mathrm { { o u t } } } ) + f _ { s } ( x _ { \mathrm { { o r i g } } } ) - f _ { c } ( x _ { \mathrm { { o r i g } } } ) } } ( x _ { \mathrm { { o u t } } } - x _ { \mathrm { { o r i g } } } ) ,
153
+ $$
154
+
155
+ each time replacing in (13) $x _ { \mathrm { o u t } }$ with $x _ { \mathrm { t e m p } }$ if $f _ { s } ( x _ { \mathrm { t e m p } } ) - f _ { c } ( x _ { \mathrm { t e m p } } ) > 0$ or $x _ { \mathrm { o r i g } }$ with $x _ { \mathrm { t e m p } }$ if instead $f _ { s } ( x _ { \mathrm { t e m p } } ) - f _ { c } ( x _ { \mathrm { t e m p } } ) < 0$ . With this kind of modified binary search one can find a better adversarial sample with the cost of a few forward passes of the network.
156
+
157
+ Random restarts: So far all the steps are deterministic. To improve the results, we introduce the option of random restarts, that is $x ^ { ( 0 ) }$ is randomly sampled in proximity of $x _ { \mathrm { o r i g } }$ instead of being $x _ { \mathrm { o r i g } }$ itself. Most attacks benefit from random restarts, e.g. Madry et al. (2018); Zheng et al. (2019), especially dealing with gradient-masking defenses (Mosbach et al. (2018)), as it allows a wider exploration of the input space. We choose to sample from the $l _ { p }$ -sphere centered in the original point with radius half the $l _ { p }$ -norm of the current best adversarial perturbation (or a given threshold if no adversarial example has been found yet).
158
+
159
+ Computational cost: Our attack, in Algorithm 1, consists of two main operations: the computation of $f$ and its gradients and solving the projection (2). We perform, for each iteration, a forward and a backward pass of the network in the gradient step and a forward pass in the backward step. The projection can be efficiently implemented to run in batches on the GPU and its complexity depends only on the input dimension. Thus, except for shallow models, its cost is much smaller than the passes through the network. We can approximate the computational cost of our algorithm by the total number of calls of the classifier
160
+
161
+ $$
162
+ N _ { \mathrm { i t e r } } \times N _ { \mathrm { r e s t a r t s } } \times ( 2 \times \mathrm { f o r w a r d ~ p a s s e s } + 1 \times \mathrm { b a c k w a r d ~ p a s s } ) .
163
+ $$
164
+
165
+ One has to add the forward passes for the final search, fixed to 3, that happens just once.
166
+
167
+ # 2.4 Comparison to DeepFool
168
+
169
+ The idea of exploiting the first order local approximation of the decision boundary is not novel but the basis of one of the first white-box adversarial attacks, DeepFool (DF) from Moosavi-Dezfooli et al. (2016). While DF and our FAB-attack share the strategy of using a linear approximation of the classifier and projecting on the decision hyperplanes, we want to point out many key differences: first, DF does not solve the projection (2) but its simpler version without box constraints, clipping afterwards. Second, their gradient step does not have any bias towards the original point, that is equivalent to $\alpha = 0$ in (10). Third, DF does
170
+
171
+ # Algorithm 1: FAB-attack
172
+
173
+ Input : $x _ { \mathrm { o r i g } }$ original point, $c$ original class, $N _ { \mathrm { r e s t a r t s } } , N _ { \mathrm { i t e r } } , \alpha _ { \mathrm { m a x } } , \beta , \eta , \epsilon , p$
174
+ Output : $x _ { \mathrm { o u t } }$ adversarial example
175
+ 1 $u + \infty$
176
+ 2 for $j = 1 , \ldots , N _ { r e s t a r t s }$ do
177
+ 3 if $j = 1$ then $x ^ { ( 0 ) } x _ { \mathrm { o r i g } }$ ;
178
+ 4 else $x ^ { ( 0 ) } \gets$ randomly sampled s.th. $\left. x ^ { ( 0 ) } - x _ { \mathrm { o r i g } } \right. _ { p } = \operatorname* { m i n } \{ u , \epsilon \} / 2$ ;
179
+ 5 for $i = 0 , \ldots , N _ { i t e r } - 1$ do
180
+ 6 $\begin{array} { r } { s \gets \underset { l \neq c } { \arg \operatorname* { m i n } } \frac { | f _ { l } ( x ^ { ( i ) } ) - f _ { c } ( x ^ { ( i ) } ) | } { \left\| \nabla f _ { l } ( x ^ { ( i ) } ) - \nabla f _ { c } ( x ^ { ( i ) } ) \right\| _ { q } } } \end{array}$
181
+ 7 δ(i) ← projp(x(i), πs, C)
182
+ 8 δ(i)orig ← projp(xorig, πs, C)
183
+ 9 compute $\alpha$ as in Equation (9)
184
+ 10 $\begin{array} { r } { x ^ { ( i + 1 ) } \mathrm { p r o j } _ { C } \Big ( ( 1 - \alpha ) ( x ^ { ( i ) } + \eta \delta ^ { ( i ) } ) + \alpha \big ( x _ { \mathrm { o r i g } } + \eta \delta _ { \mathrm { o r i g } } ^ { ( i ) } \big ) \Big ) } \end{array}$
185
+ 11 if $x ^ { ( i + 1 ) }$ is not classified in $c$ then
186
+ 12 if $\left\| x ^ { ( i + 1 ) } - x _ { o r i g } \right\| _ { p } < u$ then
187
+ 13 xout ← x(i+1)
188
+ 14 u ←
189
+ 15 end
190
+ 16 $x ^ { ( i + 1 ) } \gets ( 1 - \beta ) x _ { \mathrm { o r i g } } + \beta x ^ { ( i + 1 ) }$
191
+ 17 end
192
+ 18 end
193
+ 19 end
194
+ 20 perform 3 steps of final search on $x _ { \mathrm { o u t } }$ as in (13)
195
+
196
+ ![](images/c36d6befcaeaf09f239f81e0fdfe2fc4bf7e25ae495c809b46c51d2545890baf.jpg)
197
+ Figure 2: Ablation study to DeepFool for $l _ { \infty }$ -attacks. The introduction of the convex combination ( $\alpha _ { \mathrm { m a x } } = 0 . 1$ , no backward step) already improves over DeepFool. Moreover, if one does our full approach, the case $\alpha _ { \mathrm { m a x } } = 0$ (can be seen as an improved iterative DeepFool) is worse than $\alpha _ { \mathrm { m a x } } = 0 . 1$ with the same number of restarts. In the plots we show the robust accuracy as a function of the threshold $\epsilon$ under the different attacks on the ${ \mathit { l } } _ { \infty }$ -AT model on MNIST.
198
+
199
+ not have any backward step, final search or restart, as it stops as soon as a misclassified point is found (its goal is to provide quickly an adversarial perturbation of average quality). We perform an ablation study of the differences to DF in Figure 2, where we show the curves of the robust accuracy as a function of the threshold $\epsilon$ (lower is better). We present the results of DeepFool (blue) and FAB-attack with the following variations: $\alpha _ { \mathrm { m a x } } = 0 . 1$ and no backward step (magenta), $\alpha _ { \mathrm { m a x } } = 0$ (that is no bias in the gradient step) and no restarts (light green), $\alpha _ { \mathrm { m a x } } = 0 . 1$ and no restarts (orange), $\alpha _ { \mathrm { m a x } } = 0$ and 100 restarts (dark green) and $\alpha _ { \mathrm { m a x } } = 0 . 1$ and 100 restarts, that is FAB-attack, (red). We can see how every addition we make to the original scheme of DeepFool contributes to the significantly improved performance of FAB-attack when compared to the original DeepFool.
200
+
201
+ # 3 Experiments
202
+
203
+ Models: We run experiments on MNIST, CIFAR-10 (Krizhevsky et al.) and Restricted ImageNet (Tsipras et al. (2019)). For each dataset we consider a naturally trained model (plain) and two adversarially trained ones as in Madry et al. (2018), one to achieve robustness wrt the ${ \mathit { l } } _ { \infty }$ -norm ( $\imath _ { \infty }$ -AT) and the other wrt the $l _ { 2 }$ -norm ( $l _ { 2 }$ -AT) (see A.1).
204
+
205
+ Attacks: We compare the performances of FAB-attack to those of attacks representing the state-of-the-art in each norm: DeepFool (DF) (Moosavi-Dezfooli et al. (2016)), CarliniWagner $l _ { 2 }$ -attack (CW) (Carlini & Wagner (2017a)), Linear Region $l _ { 2 }$ -Attack (LRA) (Croce et al. (2019)), Projected Gradient Descent on the cross-entropy function (PGD) (Kurakin et al., 2017; Madry et al., 2018; Tramèr & Boneh, 2019), Distributionally Adversarial Attack (DAA) (Zheng et al. (2019)), SparseFool (SF) (Modas et al. (2019)), Elastic-net Attack (EAD) (Chen et al. (2018)). We use DF from Rauber et al. (2017), CW and EAD as in Papernot et al. (2017), DAA and LRA with the code from the original papers, while we reimplemented SF and PGD. For MNIST and CIFAR-10 we used DAA with 50 restarts, PGD and FAB with 100 restarts. For Restricted ImageNet, we used DAA, PGD and FAB with 10 restarts (for $l _ { 1 }$ we used 5 restarts, since both methods benefit from more iterations). Moreover, we could not use LRA since it hardly scales to such models and CW and EAD for compatibility issues between the implementations of attacks and models. See A.2 for more details e.g. regarding number of iterations and other hyperparameters.
206
+
207
+ Evaluation metrics: The robust accuracy of a model at a threshold $\epsilon$ is defined as the classification accuracy (in percentage) the model achieves when an attack is allowed to change every input of the test set with perturbations of $l _ { p }$ -norm smaller than $\epsilon$ in order to change the decision. Thus stronger attacks produce lower robust accuracies. For each model and dataset we fix five thresholds at which we compute the robust accuracy for each attack (we choose the thresholds to have values of the robust accuracy that cover the range between clean accuracy and $0$ ). We evaluate the attacks through the following statistics: i) avg. rob. accuracy: the mean of all the values of robust accuracy given by the attack over all models and thresholds, ii) # best: how many times the attack achieves the lowest robust accuracy (it is the most effective), iii) avg. difference to best: for each model/threshold we compute the difference between the robust accuracy of the attack and the best one across all the attacks, then we average over all models/thresholds, iv) max difference to best: as "avg. difference to best", but with the maximum difference instead of the average one. In A.4 we report the average $l _ { p }$ -norm of the adversarial perturbations given by the attacks.
208
+
209
+ Results: We report the complete results in Tables 5 to 13 of the Appendix, while we summarize them in Tables 1 (MNIST and CIFAR-10 aggregated, as we used the same attacks) and 2 (Restricted ImageNet). Our FAB-attack achieves the best results in all statistics for every norm (with the only exception of "max diff. to best" in ${ \mathit { l } } _ { \infty }$ ) on MNIST $^ +$ CIFAR-10, meaning that it is the most effective attack. In particular, while on ${ \mathit { l } } _ { \infty }$ the "avg. robust accuracy" of PGD is not far from that of FAB, the gap is large when considering $l _ { 2 }$ and $l _ { 1 }$ . Interestingly, the second best attack, at least in terms of average robust accuracy, is different for every norm (PGD for ${ \mathit { l } } _ { \infty }$ , LRA for $l _ { 2 }$ , EAD for $l _ { 1 }$ ), which implies that FAB outperforms algorithms specialized in the individual norms.
210
+
211
+ We also report the results of FAB-10, that is our attack with only 10 restarts, to show that FAB yields high quality results already with a low budget in terms of time/computational cost. In fact, FAB-10 has "avg. robust accuracy" better than or very close to that of the strongest versions of the other methods (see below for a runtime analysis, where one observes that FAB-10 is the fastest attack excluding DF and SF which however give much worse results). On Restricted ImageNet, FAB-attack gets the best results in all statistics for $l _ { 1 }$ , while for ${ \mathit { l } } _ { \infty }$ and $l _ { 2 }$ , although PGD performs often better, the difference in "avg. robust accuracy" is small, meaning that FAB performs mostly similarly to PGD.
212
+
213
+ Table 1: Performance summary of all attacks on MNIST and CIFAR-10 (aggregated). We report, for each norm, "avg. rob. acc.", the mean of the values of robust accuracy across all the models and datasets, "# best", number of times the attack is the best one, "avg. diff. to best" and "max diff. to best", the mean and maximum differences between the robust accuracy of the attack and that of the best attack for each model/threshold (on the first 1000 points for $l _ { \infty }$ and $l _ { 1 }$ , 500 for $l _ { 2 }$ , of the test sets). The numbers after the name of the attacks indicates the number of restarts used. In total we consider 5 thresholds $\times \textup { 6 }$ models $= 3 0$ cases for each of the 3 norms. \*Note that for FAB-10 (i.e. with 10 restarts) the "# best" is computed excluding the results of FAB-100.
214
+
215
+ statistics on MNIST $^ +$ CIFAR-10
216
+
217
+ <table><tr><td rowspan=2 colspan=1>loo-norm</td><td rowspan=2 colspan=3></td><td rowspan=2 colspan=1>DF</td><td rowspan=2 colspan=1>DAA-50</td><td rowspan=2 colspan=1>PGD-100</td><td rowspan=2 colspan=1>FAB-10</td><td></td></tr><tr><td rowspan=1 colspan=1>FAB-100</td></tr><tr><td rowspan=1 colspan=1>avg.rob.acc.</td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=1>58.81</td><td rowspan=1 colspan=1>60.67</td><td rowspan=1 colspan=1>46.07</td><td rowspan=1 colspan=1>46.18</td><td rowspan=2 colspan=1>45.4717</td></tr><tr><td rowspan=3 colspan=1>#bestavg. diff. to bestmax diff. to best</td><td rowspan=3 colspan=3></td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>13*</td></tr><tr><td rowspan=2 colspan=1>14.5878.10</td><td rowspan=1 colspan=1>16.45</td><td rowspan=1 colspan=1>1.85</td><td rowspan=2 colspan=1>1.9620.30</td><td rowspan=2 colspan=1>1.2517.10</td></tr><tr><td rowspan=1 colspan=1>49.00</td><td rowspan=1 colspan=1>10.70</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=2 colspan=1>FAB-10</td><td rowspan=2 colspan=1>FAB-100</td></tr><tr><td rowspan=1 colspan=1>l2-norm</td><td rowspan=1 colspan=3>CW</td><td rowspan=1 colspan=1>DF</td><td rowspan=1 colspan=1>LRA</td><td rowspan=1 colspan=1>PGD-100</td></tr><tr><td rowspan=1 colspan=1>avg.rob.acc.</td><td rowspan=1 colspan=3>45.09</td><td rowspan=1 colspan=1>56.10</td><td rowspan=1 colspan=1>36.97</td><td rowspan=1 colspan=1>44.94</td><td rowspan=1 colspan=1>36.41</td><td rowspan=4 colspan=1>35.57230.131.60</td></tr><tr><td rowspan=2 colspan=1>#bestavg. diff. to best</td><td rowspan=2 colspan=3>49.65</td><td rowspan=2 colspan=1>120.67</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>11</td><td rowspan=1 colspan=1>19*</td><td rowspan=3 colspan=1>19*0.988.40</td></tr><tr><td rowspan=1 colspan=1>1.54</td><td rowspan=1 colspan=1>9.51</td><td></td></tr><tr><td rowspan=1 colspan=1>max diff. to best</td><td rowspan=1 colspan=3>65.40</td><td rowspan=1 colspan=1>91.40</td><td rowspan=1 colspan=1>13.60</td><td rowspan=1 colspan=1>64.80</td><td></td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=1></td><td rowspan=2 colspan=1>LRA</td><td rowspan=2 colspan=1>PGD-100</td><td rowspan=2 colspan=1>FAB-10</td><td rowspan=2 colspan=1>FAB-100</td></tr><tr><td rowspan=1 colspan=1>l2-norm wo/Madry&#x27;s model</td><td rowspan=1 colspan=3>CW</td><td rowspan=1 colspan=1>DF</td></tr><tr><td rowspan=1 colspan=1>avg.rob.acc.</td><td rowspan=1 colspan=3>40.85</td><td rowspan=1 colspan=1>49.18</td><td rowspan=1 colspan=1>40.25</td><td rowspan=1 colspan=1>42.95</td><td rowspan=1 colspan=1>39.98</td><td rowspan=4 colspan=1>39.57180.161.60</td></tr><tr><td rowspan=3 colspan=1># best avg. diff. to best max diff. to best</td><td rowspan=2 colspan=3>41.44</td><td rowspan=2 colspan=1>19.78</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>11</td><td rowspan=3 colspan=1>14*0.574.20</td></tr><tr><td rowspan=1 colspan=1>0.84</td><td rowspan=1 colspan=1>3.54</td></tr><tr><td rowspan=1 colspan=3>8.80</td><td rowspan=1 colspan=1>44.00</td><td rowspan=1 colspan=1>4.00</td><td rowspan=1 colspan=1>22.00</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=1></td><td rowspan=2 colspan=1>EAD</td><td rowspan=2 colspan=1>PGD-100</td><td rowspan=2 colspan=1>FAB-10</td><td rowspan=2 colspan=1>FAB-100</td></tr><tr><td rowspan=1 colspan=1>l1-norm</td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=1>SF</td></tr><tr><td rowspan=1 colspan=1>avg.rob. acc.</td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=1>64.47</td><td rowspan=1 colspan=1>35.79</td><td rowspan=1 colspan=1>49.51</td><td rowspan=3 colspan=1>33.2610*4.1021.80</td><td rowspan=3 colspan=1>29.46170.301.60</td></tr><tr><td rowspan=2 colspan=1>#bestavg. diff. to bestmax diff. to best</td><td rowspan=2 colspan=3></td><td rowspan=2 colspan=1>035.3195.90</td><td rowspan=1 colspan=1>136.63</td><td rowspan=1 colspan=1>020.35</td></tr><tr><td rowspan=1 colspan=1>58.40</td><td rowspan=1 colspan=1>74.00</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=3></td><td rowspan=2 colspan=1>SF</td><td rowspan=2 colspan=1>EAD</td><td rowspan=2 colspan=1>PGD-100</td><td rowspan=2 colspan=1>FAB-10</td><td rowspan=2 colspan=1>FAB-100</td></tr><tr><td rowspan=1 colspan=1>l1-norm wo/Madry&#x27;smodel</td><td rowspan=1 colspan=3></td></tr><tr><td rowspan=4 colspan=1>avg. rob. acc.# best avg. diff. to bestmax diff. to best</td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=1>58.06</td><td rowspan=1 colspan=1>32.56</td><td rowspan=1 colspan=1>43.82</td><td rowspan=1 colspan=1>33.79</td><td rowspan=4 colspan=1>32.06120.361.60</td></tr><tr><td rowspan=1 colspan=2></td><td rowspan=2 colspan=2></td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>13</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>5*</td></tr><tr><td rowspan=2 colspan=3></td><td rowspan=1 colspan=1>26.36</td><td rowspan=1 colspan=1>0.87</td><td rowspan=1 colspan=1>12.12</td><td rowspan=1 colspan=1>2.10</td></tr><tr><td rowspan=1 colspan=1>53.10</td><td rowspan=1 colspan=1>4.80</td><td rowspan=1 colspan=1>31.90</td><td rowspan=1 colspan=1>3.90</td></tr></table>
218
+
219
+ In general, both average and maximum difference to best of FAB-attack are small for all the datasets and norms, implying that it does not suffer severe failures, which makes it an efficient, high quality technique to evaluate the robustness of classifiers for all $l _ { p }$ -norms. Finally, we show in Table 4 that FAB-attack outperforms or matches the competitors in 16 out of 18 cases when comparing the average $l _ { p }$ -norms of the generated adversarial perturbations.
220
+
221
+ Runtime comparison: DF and SF are definitely much faster than the others as their primary goal is to find as soon as possible adversarial examples, without emphasis on minimizing their norms, while LRA is rather expensive as noted in the original paper. Below we report the runtimes (for 1000 points on MNIST and CIFAR-10, 50 on R-ImageNet) for the attacks as used in the experiments (if not specified otherwise, it includes all the restarts). For PGD and DAA this is the time for evaluating the robust accuracy at 5 thresholds, while for the other methods a single run is sufficient to compute all the statistics.
222
+
223
+ MNIST: DAA-50 11736s, PGD-100 3825s for $l _ { \infty } / l _ { 2 }$ and PGD-100 14106s for $l _ { 1 }$ , CW 944s, EAD 606s, FAB-10 161s, FAB-100 1613s. CIFAR-10: DAA-50 11625s, PGD-100 31900s
224
+
225
+ Table 2: As in Table 1 statistics of the performance of different attacks on Restricted ImageNet (on the first 500 points of the validation set). In total we consider 5 thresholds $\times$ 3 models = 15 cases for each of the 3 norms.
226
+
227
+ statistics on Restricted ImageNet
228
+
229
+ <table><tr><td rowspan="3"></td><td colspan="4">lo-norm</td><td colspan="3"> l2-norm</td><td colspan="3">l1-norm</td></tr><tr><td>DF</td><td>DAA- 10</td><td>PGD- 10</td><td>FAB- 10</td><td>DF</td><td>PGD- 10</td><td>FAB- 10</td><td>EAD</td><td>PGD- 5</td><td>FAB- 5</td></tr><tr><td>avg.rob. acc.</td><td>35.61</td><td>38.44</td><td>26.91</td><td>27.83</td><td>45.69</td><td>31.75</td><td>33.24</td><td>71.31</td><td>40.64</td><td>38.12</td></tr><tr><td>#best</td><td>0</td><td>1</td><td>13</td><td>3</td><td>0</td><td>14</td><td>1</td><td>0</td><td>3</td><td>12</td></tr><tr><td>avg. diff. best</td><td>8.75</td><td>11.57</td><td>0.04</td><td>0.96</td><td>13.99</td><td>0.04</td><td>1.53</td><td>33.52</td><td>2.85</td><td>0.33</td></tr><tr><td>max diff. best</td><td>14.60</td><td>37.20</td><td>0.40</td><td>2.00</td><td>25.40</td><td>0.60</td><td>3.40</td><td>59.00</td><td>6.20</td><td>2.40</td></tr></table>
230
+
231
+ for $l _ { \infty } / l _ { 2 }$ and 70110s for $l _ { 1 }$ , CW 3691s, EAD 3398s, FAB-10 1209s, FAB-100 12093s. RImageNet: DAA-10 6890s, PGD-10 4738s for $l _ { \infty } / l _ { 2 }$ and PGD-5 24158s for $l _ { 1 }$ , FAB-10 2268s for $l _ { \infty } / l _ { 2 }$ and FAC-5 3146s for $l _ { 1 }$ (note that different numbers of restarts/iterations for $l _ { 1 }$ are used on R-ImageNet).
232
+
233
+ PGD needs a forward and a backward pass of the network for each iteration. Thus it is given 1.5 times more iterations than FAB, so that overall they have same budget of passes (we assume here that forward and backward passes take the same amount of time). In Appendix B.2 we compare PGD-1 versus FAB-1 as a function of the number of passes (2 passes are one iteration of PGD, 3 passes are one iteration of FAB - the plots show 300 passes meaning 150 iterations of PGD and 100 iterations of FAB) so that the comparison is fair concerning runtime in order to compare the performance of PGD-1 and FAB-1 as a function of runtime. If one considers just the performance up to 20 passes (10 iterations PGD, 7 iterations FAB) then FAB outperforms PGD in 18 out of 27 cases. However, one also observes that there is no general superiority of one method. For both PGD-1 and FAB-1 there are cases where the method requires the full amount of 300 passes to get to a good performance whereas the other method achieves it with significantly less iterations/passes.
234
+
235
+ # 4 Conclusion
236
+
237
+ In summary, our geometrically motivated FAB-attack outperforms in terms of runtime and on average in terms of quality all other high quality state-of-the-art attacks and can be used for all $p$ -norms in $p \in \{ 1 , 2 , \infty \}$ which is not the case for most other methods.
238
+
239
+ # References
240
+
241
+ A. Athalye, N. Carlini, and D. A. Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. In ICML, 2018.
242
+ O. Bastani, Y. Ioannou, L. Lampropoulos, D. Vytiniotis, A. Nori, and A. Criminisi. Measuring neural net robustness with constraints. In NeurIPS, 2016.
243
+ W. Brendel, J. Rauber, and M. Bethge. Decision-based adversarial attacks: Reliable attacks against black-box machine learning models. In ICLR, 2018.
244
+ T. B. Brown, D. Mané, A. Roy, M. Abadi, and J. Gilmer. Adversarial patch. In NeurIPS 2017 Workshop on Machine Learning and Computer Security, 2017.
245
+ N. Carlini and D. Wagner. Towards evaluating the robustness of neural networks. In IEEE Symposium on Security and Privacy, 2017a.
246
+ N. Carlini and D. Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. In ACM Workshop on Artificial Intelligence and Security, 2017b.
247
+ P. Chen, Y. Sharma, H. Zhang, J. Yi, and C. Hsieh. Ead: Elastic-net attacks to deep neural networks via adversarial examples. In AAAI, 2018.
248
+ F. Croce, J. Rauber, and M. Hein. Scaling up the randomized gradient-free adversarial attack reveals overestimation of robustness using established attacks. preprint, arXiv:1903.11359, 2019.
249
+ L. Engstrom, B. Tran, D. Tsipras, L. Schmidt, and A. Madry. A rotation and a translation suffice: Fooling CNNs with simple transformations. In NeurIPS 2017 Workshop on Machine Learning and Computer Security, 2017.
250
+ S. Gu and L. Rigazio. Towards deep neural network architectures robust to adversarial examples. In ICLR Workshop, 2015.
251
+ K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In CVPR, pp. 770–778, 2016.
252
+ M. Hein and M. Andriushchenko. Formal guarantees on the robustness of a classifier against adversarial manipulation. In NeurIPS, 2017.
253
+ R. Huang, B. Xu, D. Schuurmans, and C. Szepesvari. Learning with a strong adversary. In ICLR, 2016.
254
+ G. Katz, C. Barrett, D. Dill, K. Julian, and M. Kochenderfer. Reluplex: An efficient smt solver for verifying deep neural networks. In CAV, 2017.
255
+ A. Krizhevsky, V. Nair, and G. Hinton. Cifar-10 (canadian institute for advanced research). URL http://www.cs.toronto.edu/\~kriz/cifar.html.
256
+ A. Kurakin, I. J. Goodfellow, and S. Bengio. Adversarial examples in the physical world. In ICLR Workshop, 2017.
257
+ A. Madry, A. Makelov, L. Schmidt, D. Tsipras, and A. Valdu. Towards deep learning models resistant to adversarial attacks. In ICLR, 2018.
258
+ A. Modas, S. Moosavi-Dezfooli, and P. Frossard. Sparsefool: a few pixels make a big difference. In CVPR, 2019.
259
+ S.-M. Moosavi-Dezfooli, A. Fawzi, and P. Frossard. Deepfool: a simple and accurate method to fool deep neural networks. In CVPR, pp. 2574–2582, 2016.
260
+ M. Mosbach, M. Andriushchenko, T. Trost, M. Hein, and D. Klakow. Logit pairing methods can fool gradient-based attacks. In NeurIPS 2018 Workshop on Security in Machine Learning, 2018.
261
+ N. Narodytska and S. P. Kasiviswanathan. Simple black-box adversarial perturbations for deep networks. In CVPR 2017 Workshops, 2016.
262
+ N. Papernot, P. McDonald, X. Wu, S. Jha, and A. Swami. Distillation as a defense to adversarial perturbations against deep networks. In IEEE Symposium on Security & Privacy, 2016.
263
+ N. Papernot, N. Carlini, I. Goodfellow, R. Feinman, F. Faghri, A. Matyasko, K. Hambardzumyan, Y.-L. Juang, A. Kurakin, R. Sheatsley, A. Garg, and Y.-C. Lin. cleverhans v2.0.0: an adversarial machine learning library. preprint, arXiv:1610.00768, 2017.
264
+ J. Rauber, W. Brendel, and M. Bethge. Foolbox: A python toolbox to benchmark the robustness of machine learning models. In ICML Reliable Machine Learning in the Wild Workshop, 2017.
265
+ J. Su, D. V. Vargas, and S. Kouichi. One pixel attack for fooling deep neural networks. preprint, arXiv:1710.08864v5, 2019.
266
+ V. Tjeng, K. Xiao, and R. Tedrake. Evaluating robustness of neural networks with mixed integer programming. In ICLR, 2019.
267
+ F. Tramèr and D. Boneh. Adversarial training and robustness for multiple perturbations. preprint, arXiv:1904.13000, 2019.
268
+ D. Tsipras, S. Santurkar, L. Engstrom, A. Turner, and A. Madry. Robustness may be at odds with accuracy. In ICLR, 2019.
269
+ E. Wong, F. R. Schmidt, and J. Z. Kolter. Wasserstein adversarial examples via projected sinkhorn iterations. preprint, arXiv:1902.07906.
270
+ S. Zheng, Y. Song, T. Leung, and I. J. Goodfellow. Improving the robustness of deep neural networks via stability training. In CVPR, 2016.
271
+ T. Zheng, C. Chen, and K. Ren. Distributionally adversarial attack. In AAAI, 2019.
272
+
273
+ # A Experiments
274
+
275
+ # A.1 Models
276
+
277
+ The plain and $l _ { \infty }$ -AT models on MNIST are those available at https://github.com/ MadryLab/mnist_challenge and consist of two convolutional and two fully-connected layers. The architecture of the CIFAR-10 models has 8 convolutional layers (with number of filters increasing from 96 to 384) and 2 dense layers, while on Restricted ImageNet we use the models (ResNet-50 He et al. (2016)) from Tsipras et al. (2019) and available at https://github.com/MadryLab/robust-features-code.
278
+
279
+ The models on MNIST achieve the following clean accuracy: plain $9 8 . 7 \%$ , $l _ { \infty }$ -AT $9 8 . 5 \%$ , $l _ { 2 }$ -AT $9 8 . 6 \%$ . The models on CIFAR-10 achieve the following clean accuracy: plain $8 9 . 2 \%$ , $l _ { \infty }$ -AT $7 9 . 4 \%$ , $l _ { 2 }$ -AT $8 1 . 2 \%$ .
280
+
281
+ # A.2 Attacks
282
+
283
+ We use CW with 10000 iterations and confidence 0, EAD with 1000 iterations, $l _ { 1 }$ decision rule and $\beta \ : = \ : 0 . 0 5$ . In both cases we set the parameters to achieve minimally (wrt $l _ { 2 }$ for CW and $l _ { 1 }$ for EAD) distorted adversarial examples. We could not use these methods on Restricted ImageNet since, to be compatible with the attack from Papernot et al. (2017), it would be necessary to reimplement from scratch the models of Tsipras et al. (2019), as done in https://github.com/tensorflow/cleverhans/tree/master/ cleverhans/model_zoo/madry_lab_challenges for a similar situation.
284
+
285
+ For DAA we use 200 iterations for MNIST, 50 for the other datasets and, given a threshold , a step size of $\epsilon / 3 0$ for MNIST, $\epsilon / 1 0$ otherwise.
286
+
287
+ We perform PGD with 150 iterations, except for the case of $l _ { 1 }$ on Restricted ImageNet where we use 450 iterations. For PGD wrt ${ \mathit { l } } _ { \infty }$ we use, given a threshold $\epsilon$ , a step size of $\epsilon / 1 0$ in the direction of the sign of the gradient of the cross entropy loss, for PGD wrt $l _ { 2 }$ we perform at each iteration a step in the direction of the gradient of size $\epsilon / 4$ , for PGD wrt $l _ { 1 }$ we use the gradient step suggested in Tramèr & Boneh (2019) (with sparsity levels of $1 \%$ for MNIST and $1 0 \%$ for CIFAR-10 and Restricted ImageNet), with size $\epsilon / 2$ . The above stepsize parameters $\epsilon / { } _ { 4 }$ for $l _ { 2 }$ and $\epsilon / 1 0$ for $l _ { \infty }$ for PGD were obtained, by doing a grid search for each norm separately and using the values working best on average on MNIST and CIFAR-10. In Appendix we discuss the influence of the step-size and show that our chosen values perform best on average, see Figure 3.
288
+
289
+ For FAB-attack we set 100 iterations, except for the case of $l _ { 1 }$ on Restricted ImageNet where we use 300 iterations. Moreover, we use the following parameters for all the cases on MNIST and CIFAR-10: $\alpha _ { \mathrm { m a x } } = 0 . 1$ , $\eta = 1 . 0 5$ , $\beta = 0 . 9$ . On Restricted ImageNet we set $\alpha _ { \mathrm { m a x } } = 0 . 0 5$ , $\eta = 1 . 3$ , $\beta = 0 . 9$ . When using random restarts, FAB-attack needs a value for the parameters $\epsilon$ . It represents the radius of the $l _ { p }$ -ball around the original point inside which we sample the starting point of the algorithm, at least until a sufficiently small adversarial perturbation is found (see Algorithm 1). We use the values of $\epsilon$ reported in Table 3. Note however that the attack usually finds at the first run an adversarial perturbation small enough so that $\epsilon$ in practice rarely comes into play.
290
+
291
+ Table 3: We report the values of $\epsilon$ used for sampling in case our FAB-attack uses random restarts.
292
+
293
+ values of $\epsilon$ used for random restarts
294
+
295
+ <table><tr><td></td><td colspan="3">MNIST</td><td colspan="3">CIFAR-10</td><td colspan="3">Restricted ImageNet</td></tr><tr><td></td><td>plain</td><td>lo-AT</td><td>l2-AT</td><td>plain</td><td>lo-AT</td><td>l2-AT</td><td>plain</td><td>loo-AT</td><td>l2-AT</td></tr><tr><td>1</td><td>0.15</td><td>0.3</td><td>0.3</td><td>0.0</td><td>0.02</td><td>0.02</td><td>0.02</td><td>0.08</td><td>0.08</td></tr><tr><td>12</td><td>2.0</td><td>2.0</td><td>2.0</td><td>0.5</td><td>4.0</td><td>4.0</td><td>5.0</td><td>5.0</td><td>5.0</td></tr><tr><td>l</td><td>40.0</td><td>40.0</td><td>40.0</td><td>10.0</td><td>10.0</td><td>10.0</td><td>100.0</td><td>250.0</td><td>250.0</td></tr></table>
296
+
297
+ # A.3 Complete results
298
+
299
+ In Tables 5 to 13 we report the complete values of the robust accuracy, wrt either ${ \mathit { l } } _ { \infty }$ , $l _ { 2 }$ or $l _ { 1 }$ , computed by every attack, for 3 datasets, 3 models for each dataset, 5 thresholds for each model (135 evaluations overall).
300
+
301
+ # A.4 Further results
302
+
303
+ In Table 4 we report the average $l _ { p }$ -norm of the adversarial perturbations found by the different attacks, computed on the originally correctly classified points on which the attack is successful. Note that we cannot show this statistic for the attacks which do not minimize the distance of the adversarial example to the clean input (PGD and DAA). FAB-attack produces also in this metric the best results in most of the cases, being the best for every model when considering ${ \mathit { l } } _ { \infty }$ and $l _ { 2 }$ , and the best in 4 out of 6 cases in $l _ { 1 }$ (lower values mean a stronger attack).
304
+
305
+ Table 4: We report mean $l _ { p }$ -norm of the adversarial perturbations found by the attacks (when successful, excluding the already misclassified points) for every model.
306
+ average norm of adversarial perturbations
307
+
308
+ <table><tr><td>lo-norm</td><td></td><td></td><td>DF</td><td>FAB</td></tr><tr><td rowspan="3">MNIST</td><td>plain</td><td rowspan="3"></td><td>0.078</td><td>0.066</td></tr><tr><td>lo-at</td><td>0.508</td><td>0.326</td></tr><tr><td>l2-at</td><td>0.249 0.008</td><td>0.170</td></tr><tr><td rowspan="3">CIFAR-10</td><td>plain lo-at</td><td colspan="2">0.032</td><td>0.006</td></tr><tr><td>l2-at</td><td colspan="2"></td><td>0.024</td></tr><tr><td></td><td></td><td>0.026</td><td>0.019</td></tr><tr><td> l2-norm</td><td colspan="4">DF CW</td></tr><tr><td rowspan="3">MNIST</td><td>plain</td><td>1.13 1.01</td><td>LRA</td><td>FAB</td></tr><tr><td></td><td>1.76</td><td>1.00</td><td>1.00</td></tr><tr><td>loo-at l2-at</td><td>4.95 3.10 2.35</td><td>1.25</td><td>1.12</td></tr><tr><td rowspan="3">CIFAR-10</td><td>plain</td><td>0.28 0.21</td><td>2.25</td><td>2.24</td></tr><tr><td>loo-at</td><td>0.96 0.74</td><td>0.22</td><td>0.21</td></tr><tr><td>l2-at</td><td>0.91 0.71</td><td>0.74</td><td>0.73</td></tr><tr><td></td><td></td><td></td><td>0.72</td><td>0.70</td></tr><tr><td> l1-norm</td><td></td><td colspan="2">EAD</td><td>FAB</td></tr><tr><td rowspan="3">MNIST</td><td>plain</td><td colspan="2">6.38</td><td>6.04</td></tr><tr><td>lo-at</td><td colspan="2">8.26</td><td>3.36</td></tr><tr><td>l2-at</td><td colspan="2">12.18</td><td>12.16</td></tr><tr><td rowspan="3">CIFAR-10</td><td>plain</td><td colspan="2"></td><td>2.87</td></tr><tr><td>loo-at</td><td></td><td>3.01 5.79</td><td>6.03</td></tr><tr><td>l2-at</td><td colspan="2">7.94</td><td>8.05</td></tr><tr><td></td><td></td><td colspan="2"></td><td></td></tr></table>
309
+
310
+ Table 5: Comparison of $l _ { \infty }$ -, $l _ { 2 }$ - and $l _ { 1 }$ -attacks on a naturally trained model on MNIST. We report the accuracy in percentage of the classifier on the test set if the attack is allowed to perturb the test points of $\epsilon$ in $l _ { p }$ -distance. The statistics are computed on the first 1000 points on the test set for ${ \mathit { l } } _ { \infty }$ and $l _ { 1 }$ , on 500 points for $l _ { 2 }$ .
311
+
312
+ Robust accuracy of MNIST plain model
313
+
314
+ <table><tr><td>metric</td><td>E</td><td>DF</td><td>DAA- 1</td><td>DAA- 50</td><td>PGD- 1</td><td>PGD- 10</td><td>PGD- 100</td><td>FAB- 1</td><td>FAB- 10</td><td>FAB- 100</td></tr><tr><td rowspan="5">18</td><td>0.03 0.05</td><td>93.2</td><td>91.9</td><td>91.9</td><td>92.0</td><td>91.9</td><td>91.9</td><td>92.0</td><td>92.0</td><td>92.0</td></tr><tr><td></td><td>83.4</td><td>78.2</td><td>76.7</td><td>76.0</td><td>74.9</td><td>74.6</td><td>77.2</td><td>76.8</td><td>76.1</td></tr><tr><td>0.07</td><td>61.5</td><td>59.8</td><td>56.3</td><td>43.8</td><td>41.8</td><td>40.4</td><td>44.3</td><td>43.1</td><td>42.6</td></tr><tr><td>0.09</td><td>33.2</td><td>46.7</td><td>41.0</td><td>16.5</td><td>14.2</td><td>12.8</td><td>16.2</td><td>14.8</td><td>14.4</td></tr><tr><td>0.11</td><td>13.1</td><td>34.4</td><td>26.2</td><td>4.0</td><td>2.8</td><td>2.4</td><td>3.3</td><td>3.1</td><td>2.4</td></tr><tr><td></td><td></td><td>CW</td><td>DF</td><td>LRA</td><td>PGD- 1</td><td>PGD- 10</td><td>PGD- 100</td><td>FAB- 1</td><td>FAB- 10</td><td>FAB- 100</td></tr><tr><td rowspan="5">12</td><td>0.5</td><td>92.6</td><td>93.6</td><td>92.6</td><td>92.6</td><td>92.6</td><td>92.6</td><td>92.6</td><td>92.6</td><td>92.6</td></tr><tr><td>1</td><td>47.4</td><td>58.6</td><td>47.4</td><td>48.4</td><td>47.4</td><td>46.2</td><td>47.0</td><td>46.8</td><td>46.2</td></tr><tr><td>1.5</td><td>8.8</td><td>19.8</td><td>7.8</td><td>9.8</td><td>8.8</td><td>8.2</td><td>7.8</td><td>7.2</td><td>7.0</td></tr><tr><td>2</td><td>0.6</td><td>1.8</td><td>0.2</td><td>1.2</td><td>0.6</td><td>0.6</td><td>0.2</td><td>0.2</td><td>0.2</td></tr><tr><td>2.5</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.6</td><td>0.2</td><td>0.2</td><td>0.0</td><td>0.0</td><td>0.0</td></tr><tr><td colspan="2"></td><td colspan="2">SparseFool</td><td>EAD</td><td>PGD-</td><td>PGD-</td><td>PGD-</td><td>FAB-</td><td>FAB-</td><td>FAB-</td></tr><tr><td rowspan="5">l</td><td></td><td colspan="2"></td><td></td><td>1</td><td>10</td><td>100</td><td>1</td><td>10</td><td>100</td></tr><tr><td>2 4</td><td colspan="2">95.5</td><td>93.6 76.7</td><td>94.4</td><td>93.9</td><td>93.7</td><td>94.2</td><td>93.7</td><td>93.5</td></tr><tr><td>6</td><td colspan="2">88.9 75.8</td><td>48.1</td><td>79.8</td><td>77.5</td><td>76.9</td><td>80.2</td><td>76.6</td><td>75.2</td></tr><tr><td></td><td colspan="2"></td><td></td><td>57.4</td><td>52.2 36.3</td><td>49.3</td><td>54.5</td><td>47.2</td><td>43.3</td></tr><tr><td>8 10</td><td colspan="2">60.3 43.8</td><td>26.6 11.2</td><td>46.7 40.0</td><td>27.4</td><td>31.6 22.1</td><td>31.3 15.2</td><td>25.3 9.8</td><td>22.4 8.4</td></tr></table>
315
+
316
+ Table 6: Comparison of ${ \mathit { l } } _ { \infty }$ -, $l _ { 2 }$ - and $l _ { 1 }$ -attacks on an $l _ { \infty }$ -robust model on MNIST. We report the accuracy on the test set if the attack is allowed to perturb the test points of $\epsilon$ in $l _ { p }$ -distance. The statistics are computed on the first 1000 points on the test set for $l _ { \infty }$ and $l _ { 1 }$ , on 500 points for $l _ { 2 }$ .
317
+
318
+ Robust accuracy of MNIST $l _ { \infty }$ -robust model
319
+
320
+ <table><tr><td>metric</td><td>E</td><td>DF</td><td>DAA- 1</td><td>DAA- 50</td><td>PGD- 1</td><td>PGD- 10</td><td>PGD- 100</td><td>FAB- 1</td><td>FAB- 10</td><td>FAB- 100</td></tr><tr><td rowspan="5">1</td><td>0.2 0.25</td><td>95.2 94.7</td><td>94.6 92.7</td><td>93.7 91.1</td><td>95.0 93.1</td><td>94.2 91.8</td><td>93.7 91.4</td><td>94.6</td><td>94.4</td><td>93.9</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>93.3</td><td>92.1</td><td>91.7</td></tr><tr><td>0.3</td><td>93.9</td><td>89.5</td><td>87.2</td><td>91.3</td><td>88.3</td><td>87.6</td><td>91.2</td><td>89.2</td><td>88.5</td></tr><tr><td>0.325</td><td>92.5</td><td>72.1</td><td>64.2</td><td>74.9</td><td>68.4</td><td>64.7</td><td>86.2</td><td>83.1</td><td>81.3</td></tr><tr><td>0.35</td><td>89.8</td><td>19.7</td><td>11.7</td><td>32.1</td><td>19.3</td><td>13.8</td><td>48.7</td><td>32.0</td><td>23.8</td></tr><tr><td colspan="9"></td></tr><tr><td rowspan="5"></td><td></td><td>CW</td><td>DF</td><td>LRA</td><td>PGD- 1</td><td>PGD- 10</td><td>PGD- 100</td><td>FAB- 1</td><td>FAB- 10</td><td>FAB- 100</td></tr><tr><td>1</td><td>88.8</td><td>94.6</td><td>73.6</td><td>92.2</td><td>90.8</td><td>89.8</td><td>84.2</td><td>70.6</td><td>65.4</td></tr><tr><td>1.5</td><td>77.6</td><td>93.0</td><td>25.8</td><td>86.0</td><td>81.2</td><td>77.0</td><td>47.0</td><td>20.6</td><td>12.2</td></tr><tr><td>2</td><td>64.4</td><td>91.6</td><td>3.2</td><td>77.8</td><td>67.0</td><td>57.8</td><td>15.6</td><td>1.8</td><td>0.2</td></tr><tr><td>2.5 3</td><td>53.8 46.8</td><td>89.6 84.6</td><td>0.4</td><td>68.2</td><td>49.6</td><td>36.4</td><td>3.8</td><td>0.0</td><td>0.0</td></tr><tr><td colspan="9"></td></tr><tr><td rowspan="5"></td><td></td><td rowspan="5">SparseFool</td><td></td><td>0.0</td><td>59.8</td><td>29.6</td><td>13.4</td><td>1.4</td><td>0.0</td><td>0.0</td></tr><tr><td></td><td></td><td>EAD</td><td>PGD- 1</td><td>PGD- 10</td><td>PGD- 100</td><td>FAB- 1</td><td>FAB- 10</td><td>FAB- 100</td></tr><tr><td>2.5</td><td>96.8</td><td>92.2</td><td>94.1</td><td>93.7</td><td>93.6</td><td>90.1</td><td>74.3</td><td>56.9</td></tr><tr><td>5</td><td>96.5</td><td>76.0</td><td>90.9 85.2</td><td>88.9 81.4</td><td>88.2 79.0</td><td>85.8 82.6</td><td>39.4 19.8</td><td>17.6 5.0</td></tr><tr><td>7.5 10</td><td colspan="2">96.4 96.4</td><td>49.5 27.4</td><td>80.2</td><td>73.5</td><td>70.3</td><td>78.4</td><td>11.9</td></tr></table>
321
+
322
+ Table 7: Comparison of ${ \mathit { l } } _ { \infty }$ -, $l _ { 2 }$ - and $l _ { 1 }$ -attacks on an $l _ { 2 }$ -robust model on MNIST. We report the accuracy in percentage of the classifier on the test set if the attack is allowed to perturb the test points of $\epsilon$ in $l _ { p }$ -distance. The statistics are computed on the first 1000 points on the test set for ${ \mathit { l } } _ { \infty }$ and $l _ { 1 }$ , on 500 points for $l _ { 2 }$ .
323
+
324
+ Robust accuracy of MNIST $l _ { 2 }$ -robust model
325
+
326
+ <table><tr><td>metric</td><td>E</td><td>DF</td><td>DAA- 1</td><td>DAA- 50</td><td>PGD- 1</td><td>PGD- 10</td><td>PGD- 100</td><td>FAB- 1</td><td>FAB- 10</td><td>FAB- 100</td></tr><tr><td rowspan="5">18</td><td>0.05 0.1</td><td>96.7</td><td>96.4</td><td>96.3</td><td>96.4</td><td>96.3</td><td>96.3</td><td>96.4</td><td>96.3</td><td>96.3</td></tr><tr><td></td><td>93.4</td><td>91.0</td><td>90.2</td><td>90.7</td><td>90.4</td><td>90.2</td><td>90.8</td><td>90.4</td><td>90.4</td></tr><tr><td>0.15</td><td>86.4</td><td>74.3</td><td>72.3</td><td>74.6</td><td>73.2</td><td>72.4</td><td>74.0</td><td>72.3</td><td>72.0</td></tr><tr><td>0.2</td><td>73.8</td><td>34.5</td><td>27.2</td><td>36.2</td><td>29.8</td><td>26.5</td><td>34.1</td><td>28.2</td><td>24.4</td></tr><tr><td>0.25</td><td>55.1</td><td>1.5</td><td>0.9</td><td>2.6</td><td>1.5</td><td>1.0</td><td>1.9</td><td>0.9</td><td>0.8</td></tr><tr><td colspan="9"></td></tr><tr><td rowspan="5"></td><td></td><td>CW</td><td>DF</td><td>LRA</td><td>PGD-</td><td>PGD- 10</td><td>PGD- 100</td><td>FAB-</td><td>FAB- 10</td><td>FAB- 100</td></tr><tr><td>1</td><td>92.6</td><td>93.8</td><td>92.6</td><td>1 93.0</td><td>93.0</td><td>93.0</td><td>1 92.6</td><td>92.6</td><td>92.6</td></tr><tr><td>1.5</td><td>84.8</td><td>87.2</td><td>83.4</td><td>83.8</td><td>83.4</td><td>83.4</td><td>83.8</td><td>83.6</td><td>83.6</td></tr><tr><td>2</td><td>70.6</td><td>79.0</td><td>68.0</td><td>68.8</td><td>68.0</td><td>67.6</td><td>69.8</td><td>69.0</td><td>67.8</td></tr><tr><td>2.5 3</td><td>46.4 17.2</td><td>67.4 54.2</td><td>41.6</td><td>45.6</td><td>40.4</td><td>37.6</td><td>45.6</td><td>41.8</td><td>39.2 11.0</td></tr><tr><td colspan="9"></td></tr><tr><td colspan="2"></td><td colspan="2">SparseFool</td><td>11.2 EAD</td><td>17.4 PGD-</td><td>12.4 PGD-</td><td>10.2 PGD-</td><td>18.6 FAB-</td><td>13.4 FAB-</td><td>FAB-</td></tr><tr><td rowspan="5"></td><td colspan="10"></td></tr><tr><td>5</td><td colspan="2">94.9</td><td>89.8</td><td>1 90.3</td><td>10 90.2</td><td>100 90.2</td><td>1 90.5</td><td>10 90.2</td><td>100 90.0</td></tr><tr><td>8.75</td><td colspan="2">89.1</td><td>71.2</td><td>75.5</td><td>74.0</td><td>72.7</td><td>75.3</td><td>73.7</td><td>72.2</td></tr><tr><td>12.5</td><td colspan="2">81.0</td><td>45.9</td><td>61.1</td><td>57.5</td><td>54.9</td><td>55.6</td><td>49.2</td><td>45.7</td></tr><tr><td>16.25 20</td><td colspan="2">72.8 60.8</td><td>20.6 8.3</td><td>49.2 41.4</td><td>42.3 29.6</td><td>38.4 23.2</td><td>32.2 15.2</td><td>24.1 9.4</td><td>20.8 7.7</td></tr></table>
327
+
328
+ Table 8: Comparison of $l _ { \infty } .$ -, $l _ { 2 ^ { - } }$ and $l _ { 1 } .$ -attacks on a naturally trained model on CIFAR-10. We report the accuracy in percentage of the classifier on the test set if the attack is allowed to perturb the test points of $\epsilon$ in $l _ { p }$ -distance. The statistics are computed on the first 1000 points on the test set for $l _ { \infty }$ and $l _ { 1 }$ , on 500 points for $l _ { 2 }$ .
329
+
330
+ Robust accuracy of CIFAR-10 plain model
331
+
332
+ <table><tr><td>metric</td><td>E</td><td>DF</td><td>DAA- 1</td><td>DAA- 50</td><td>PGD- 1</td><td>PGD- 10</td><td>PGD- 100</td><td>FAB- 1</td><td>FAB- 10</td><td>FAB- 100</td></tr><tr><td rowspan="5">18</td><td rowspan="5">1/255 1.5/255 2/255</td><td>62.6</td><td>65.7</td><td>64.1</td><td>56.1</td><td>55.8</td><td>55.6</td><td>56.5</td><td>55.9</td><td>55.7</td></tr><tr><td>49.3</td><td>63.2</td><td>60.8</td><td>38.9</td><td>37.9</td><td>37.4</td><td>38.5</td><td>37.7</td><td>37.4</td></tr><tr><td>37.3</td><td>62.4</td><td>58.5</td><td>24.3</td><td>23.3</td><td>22.9</td><td>23.4</td><td>21.9</td><td>21.2</td></tr><tr><td>26.4</td><td>61.2</td><td>56.3</td><td>16.2</td><td>14.8</td><td>14.0</td><td>13.2</td><td>12.0</td><td>11.8</td></tr><tr><td>19.0</td><td>60.2</td><td>54.4</td><td>10.7</td><td>9.2</td><td>8.6</td><td>7.4</td><td>5.8</td><td>5.4</td></tr><tr><td rowspan="2"></td><td></td><td>CW</td><td>DF</td><td>LRA</td><td>PGD-</td><td>PGD-</td><td>PGD-</td><td>FAB-</td><td>FAB-</td><td>FAB-</td></tr><tr><td>0.1</td><td>69.4</td><td>72.2</td><td>69.0</td><td>1 68.4</td><td>10 67.6</td><td>100 67.6</td><td>1 68.4</td><td>10 68.4</td><td>100 68.4</td></tr><tr><td rowspan="4">l2</td><td>0.15</td><td>55.4</td><td>62.6</td><td>55.0</td><td>54.6</td><td>53.8</td><td>53.8</td><td>54.6</td><td>54.0</td><td>53.8</td></tr><tr><td>0.2</td><td>43.4</td><td>51.2</td><td>43.4</td><td>43.8</td><td>42.8</td><td>42.0</td><td>42.4</td><td>42.0</td><td>41.8</td></tr><tr><td>0.3</td><td>21.6</td><td>33.8</td><td>22.0</td><td>24.8</td><td>24.2</td><td>23.6</td><td>21.6</td><td>20.8</td><td>20.6</td></tr><tr><td>0.4</td><td>9.4</td><td>20.8</td><td>9.8</td><td>18.2</td><td>16.2</td><td>15.4</td><td>9.6</td><td>8.2</td><td>8.0</td></tr><tr><td rowspan="2"></td><td></td><td colspan="2">SparseFool</td><td>EAD</td><td>PGD-</td><td>PGD-</td><td>PGD-</td><td>FAB-</td><td>FAB-</td><td>FAB-</td></tr><tr><td></td><td colspan="2"></td><td></td><td>1</td><td>10</td><td>100</td><td>1</td><td>10</td><td>100</td></tr><tr><td rowspan="4">l</td><td>2 4</td><td colspan="2">72.1</td><td>54.7</td><td>54.9</td><td>54.4</td><td>53.9</td><td>55.5</td><td>52.2</td><td>50.8</td></tr><tr><td></td><td colspan="2">58.6 45.6</td><td>24.1</td><td>30.0</td><td>29.1</td><td>28.9</td><td>30.7</td><td>25.1</td><td>22.4</td></tr><tr><td>6</td><td colspan="2"></td><td>8.9</td><td>18.8</td><td>18.6</td><td>18.4</td><td>17.0</td><td>10.5</td><td>8.1</td></tr><tr><td>8 10</td><td colspan="2">34.3 27.2</td><td>3.0 0.7</td><td>14.2 12.9</td><td>14.1 12.5</td><td>14.0 12.3</td><td>7.8 4.7</td><td>3.8 1.5</td><td>2.5 1.0</td></tr></table>
333
+
334
+ Table 9: Comparison of $l _ { \infty }$ -, $l _ { 2 }$ - and $l _ { 1 }$ -attacks on an ${ \mathit { l } } _ { \infty }$ -robust model on CIFAR-10. We report the accuracy in percentage of the classifier on the test set if the attack is allowed to perturb the test points of $\epsilon$ in $l _ { p }$ -distance. The statistics are computed on the first 1000 points on the test set for ${ \mathit { l } } _ { \infty }$ and $l _ { 1 }$ , on 500 points for $l _ { 2 }$ .
335
+
336
+ Robust accuracy of CIFAR-10 $l _ { \infty }$ -robust model
337
+
338
+ <table><tr><td>metric</td><td>E</td><td>DF</td><td>DAA- 1</td><td>DAA- 50</td><td>PGD- 1</td><td>PGD- 10</td><td>PGD- 100</td><td>FAB- 1</td><td>FAB- 10</td><td>FAB- 100</td></tr><tr><td rowspan="5">18</td><td>2/255 4/255</td><td>66.8</td><td>66.9</td><td>66.3</td><td>65.5</td><td>65.5</td><td>65.5</td><td>65.8</td><td>65.8</td><td>65.7</td></tr><tr><td></td><td>53.2</td><td>63.8</td><td>61.4</td><td>49.8</td><td>49.3</td><td>49.0</td><td>49.2</td><td>49.1</td><td>48.9</td></tr><tr><td>6/255</td><td>42.9</td><td>63.1</td><td>58.4</td><td>38.0</td><td>36.9</td><td>36.6</td><td>35.4</td><td>34.7</td><td>34.6</td></tr><tr><td>8/255</td><td>32.9</td><td>61.2</td><td>56.3</td><td>30.5</td><td>30.0</td><td>29.6</td><td>23.8</td><td>23.5</td><td>23.3</td></tr><tr><td>10/255</td><td>24.5</td><td>59.8</td><td>54.1</td><td>25.8</td><td>23.7</td><td>22.4</td><td>15.4</td><td>14.7</td><td>14.4</td></tr><tr><td></td><td></td><td>CW</td><td>DF</td><td>LRA</td><td>PGD-</td><td>PGD-</td><td>PGD- 100</td><td>FAB-</td><td>FAB- 10</td><td>FAB- 100</td></tr><tr><td rowspan="5">12</td><td>0.25</td><td>64.6</td><td>67.0</td><td>64.4</td><td>1 64.4</td><td>10 64.4</td><td>64.4</td><td>1 64.8</td><td>64.6</td><td>64.4</td></tr><tr><td>0.5</td><td>48.4</td><td>53.0</td><td>48.8</td><td></td><td></td><td>48.0</td><td></td><td>48.4</td><td>48.2</td></tr><tr><td>0.75</td><td>33.4</td><td>41.4</td><td>33.4</td><td>49.0</td><td>48.4 38.2</td><td></td><td>48.4</td><td>33.2</td><td>33.0</td></tr><tr><td>1</td><td>22.8</td><td></td><td></td><td>39.0</td><td></td><td>37.4</td><td>33.6</td><td></td><td>21.4</td></tr><tr><td>1.25</td><td>12.0</td><td>32.6 24.2</td><td>22.8 13.0</td><td>35.0 34.6</td><td>34.4 34.2</td><td>33.8 33.2</td><td>22.2 12.2</td><td>21.6 11.2</td><td>11.2</td></tr><tr><td colspan="2"></td><td colspan="2">SparseFool</td><td>EAD</td><td>PGD-</td><td>PGD-</td><td>PGD-</td><td>FAB-</td><td>FAB-</td><td>FAB-</td></tr><tr><td rowspan="5">l</td><td></td><td colspan="2"></td><td></td><td>1</td><td>10</td><td>100</td><td>1</td><td>10</td><td>100</td></tr><tr><td>5 8.75</td><td colspan="2">57.8</td><td>36.8</td><td>47.3</td><td>46.6</td><td>46.2</td><td>43.1</td><td>39.9</td><td>37.9</td></tr><tr><td>12.5</td><td colspan="2">44.7 34.9</td><td>19.2</td><td>37.4</td><td>37.0</td><td>36.8</td><td>25.7</td><td>22.5</td><td>20.2</td></tr><tr><td></td><td colspan="2"></td><td>7.1</td><td>34.0</td><td>33.9</td><td>33.9</td><td>13.7</td><td>10.9</td><td>8.7</td></tr><tr><td>16.25 20</td><td colspan="2">27.6 20.2</td><td>3.0 0.9</td><td>33.3 32.9</td><td>33.2 32.8</td><td>33.1 32.8</td><td>7.1 3.8</td><td>4.3 1.7</td><td>3.5 1.3</td></tr></table>
339
+
340
+ Table 10: Comparison of $l _ { \infty } -$ , $l _ { 2 ^ { - } }$ and $l _ { 1 }$ -attacks on an $l _ { 2 }$ -robust model on CIFAR-10. We report the accuracy in percentage of the classifier on the test set if the attack is allowed to perturb the test points of $\epsilon$ in $l _ { p }$ -distance. The statistics are computed on the first 1000 points on the test set for $l _ { \infty }$ and $l _ { 1 }$ , on 500 points for $l _ { 2 }$ .
341
+
342
+ Robust accuracy of CIFAR-10 $l _ { 2 }$ -robust model
343
+
344
+ <table><tr><td>metric</td><td>E</td><td>DF</td><td>DAA- 1</td><td>DAA- 50</td><td>PGD- 1</td><td>PGD- 10</td><td>PGD- 100</td><td>FAB- 1</td><td>FAB- 10</td><td>FAB- 100</td></tr><tr><td rowspan="5">18</td><td>2/255 4/255</td><td>64.1</td><td>67.2</td><td>66.3</td><td>62.6</td><td>62.5</td><td>62.4</td><td>62.7</td><td>62.6</td><td>62.6</td></tr><tr><td></td><td>49.0</td><td>65.0</td><td>62.8</td><td>45.3</td><td>45.0</td><td>44.9</td><td>44.4</td><td>44.2</td><td>44.2</td></tr><tr><td>6/255</td><td>36.9</td><td>64.2</td><td>60.8</td><td>32.9</td><td>31.6</td><td>31.1</td><td>27.2</td><td>26.8</td><td>26.7</td></tr><tr><td>8/255</td><td>25.8</td><td>62.3</td><td>58.0</td><td>25.7</td><td>24.9</td><td>23.9</td><td>14.8</td><td>14.1</td><td>13.8</td></tr><tr><td>10/255</td><td>17.6</td><td>61.9</td><td>54.8</td><td>21.9</td><td>19.8</td><td>18.6</td><td>8.6</td><td>8.0</td><td>7.9</td></tr><tr><td colspan="9"></td><td></td></tr><tr><td rowspan="5">l2</td><td></td><td>CW</td><td>DF</td><td>LRA</td><td>PGD- 1</td><td>PGD- 10</td><td>PGD- 100</td><td>FAB- 1</td><td>FAB- 10</td><td>FAB- 100</td></tr><tr><td>0.25</td><td>66.0</td><td>67.0</td><td>65.6</td><td>65.8</td><td>65.6</td><td>65.6</td><td>65.6</td><td>65.6</td><td>65.6</td></tr><tr><td>0.5</td><td>48.2</td><td>53.8</td><td>47.8</td><td>49.6</td><td>48.8</td><td>48.8</td><td>48.4</td><td>48.2</td><td>48.0</td></tr><tr><td>0.75</td><td>32.6</td><td>42.2</td><td>32.4</td><td>38.4</td><td>37.2</td><td>36.4</td><td>32.8</td><td>32.4</td><td>32.2</td></tr><tr><td>1 1.25</td><td>21.6 11.4</td><td>30.0</td><td>21.6</td><td>35.4</td><td>33.6</td><td>33.0</td><td>21.8</td><td>21.4</td><td>21.0</td></tr><tr><td colspan="9"></td></tr><tr><td rowspan="5"></td><td></td><td rowspan="5"></td><td>22.4</td><td>12.4</td><td>34.2</td><td>31.6</td><td>31.2</td><td>12.2</td><td>12.2</td><td>11.4</td></tr><tr><td></td><td>SparseFool</td><td>EAD</td><td>PGD- 1</td><td>PGD-</td><td>PGD-</td><td>FAB-</td><td>FAB-</td><td>FAB-</td></tr><tr><td>3</td><td>69.5</td><td>62.2</td><td>64.5</td><td>10 64.4</td><td>100 64.4</td><td>1 63.4</td><td>10 63.2</td><td>100 63.0</td></tr><tr><td>6</td><td>61.6</td><td>45.5</td><td>51.9</td><td>51.9</td><td>51.8</td><td>48.6</td><td>47.2</td><td>45.6</td></tr><tr><td>9</td><td colspan="2">53.1</td><td>27.7</td><td>42.8</td><td></td><td></td><td></td><td></td></tr><tr><td rowspan="3">l1</td><td rowspan="2">12</td><td colspan="2"></td><td>17.9</td><td>38.5</td><td>42.5</td><td>42.5 38.0</td><td>33.9</td><td>30.6</td><td>28.8</td></tr><tr><td></td><td>44.4 37.0</td><td>10.4</td><td>35.8</td><td>38.3 35.8</td><td></td><td>23.8</td><td>19.8</td><td>17.3</td></tr><tr><td>15</td><td colspan="2"></td><td></td><td></td><td></td><td>35.4</td><td>16.0</td><td>12.4</td><td>11.2</td></tr></table>
345
+
346
+ Table 11: Comparison of ${ \mathit { l } } _ { \infty }$ -, $l _ { 2 }$ - and $l _ { 1 }$ -attacks on a naturally trained model on Restricted ImageNet. We report the accuracy in percentage of the classifier on the test set if the attack is allowed to perturb the test points of $\epsilon$ in $l _ { p }$ -distance. The statistics are computed on the first 500 points of the test set.
347
+
348
+ Robust accuracy of Restricted ImageNet plain model
349
+
350
+ <table><tr><td>metric</td><td>E</td><td>DF</td><td>DAA- 1</td><td>DAA- 10</td><td>PGD- 1</td><td>PGD- 10</td><td>FAB- 1</td><td>FAB- 10</td></tr><tr><td rowspan="5">1</td><td>0.25/ /255 0.5/255</td><td>76.6 52.0</td><td>74.8 51.8</td><td>74.8 48.2</td><td>74.8 38.2</td><td>74.6 37.8</td><td>75.2 39.6</td><td>75.2 39.6</td></tr><tr><td>0.75/255</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>26.8</td><td>46.0</td><td>41.0</td><td>12.2</td><td>12.2</td><td>14.2</td><td>14.2</td></tr><tr><td>1/255</td><td>11.2</td><td>43.2</td><td>39.4</td><td>3.8</td><td>3.8</td><td>3.6</td><td>3.6</td></tr><tr><td>1.25/255</td><td>5.0</td><td>41.2</td><td>38.2</td><td>1.0</td><td>1.0</td><td>1.2</td><td>1.0</td></tr><tr><td></td><td></td><td></td><td></td><td>DF</td><td>PGD- 1</td><td>PGD-</td><td>FAB-</td><td>FAB-</td></tr><tr><td rowspan="5">l2</td><td>0.2</td><td></td><td></td><td></td><td></td><td>10</td><td>1</td><td>10</td></tr><tr><td>0.4</td><td></td><td></td><td>80.2 58.4</td><td>76.0</td><td>76.0</td><td>77.0</td><td>76.8</td></tr><tr><td>0.6</td><td></td><td></td><td>33.8</td><td>40.8 15.4</td><td>40.6 14.8</td><td>43.0 19.0</td><td>42.2 18.2</td></tr><tr><td>0.8</td><td></td><td></td><td></td><td>4.0</td><td>4.0</td><td></td><td></td></tr><tr><td>1</td><td></td><td></td><td>18.8 8.6</td><td>1.6</td><td>1.6</td><td>4.6 1.2</td><td>4.4 1.0</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td rowspan="5">1</td><td></td><td></td><td>SparseFool</td><td>PGD-</td><td>1</td><td>PGD- 5</td><td>FAB- 1</td><td>FAB- 5</td></tr><tr><td>5</td><td></td><td></td><td>88.6</td><td>81.8</td><td>81.8</td><td>79.6</td><td>78.0</td></tr><tr><td>16</td><td></td><td></td><td>80.0</td><td>45.2</td><td>45.2</td><td>46.8</td><td>40.0</td></tr><tr><td>27</td><td></td><td></td><td>70.6</td><td>17.8</td><td>17.4</td><td>25.6</td><td>19.8</td></tr><tr><td>38 49</td><td></td><td></td><td>65.0 55.4</td><td>6.2 2.2</td><td>6.0 2.2</td><td>13.6 6.8</td><td>7.0 3.8</td></tr></table>
351
+
352
+ Table 12: Comparison of $l _ { \infty }$ -, $l _ { 2 ^ { - } }$ and $l _ { 1 }$ -attacks on an $l _ { \infty }$ -robust model on Restricted ImageNet. We report the accuracy in percentage of the classifier on the test set if the attack is allowed to perturb the test points of $\epsilon$ in $l _ { p }$ -distance. The statistics are computed on the first 500 points of the test set.
353
+
354
+ Robust accuracy of Restricted ImageNet $l _ { \infty }$ -robust model
355
+
356
+ <table><tr><td>metric</td><td>E</td><td>DF</td><td>DAA- 1</td><td>DAA- 10</td><td>PGD- 1</td><td>PGD- 10</td><td>FAB- 1</td><td>FAB- 10</td></tr><tr><td rowspan="5">18</td><td>2/255</td><td>75.8</td><td>75.0</td><td>75.0</td><td>74.6</td><td>74.6</td><td>75.2</td><td>75.2</td></tr><tr><td>4/255</td><td>53.0</td><td>46.2</td><td>46.2</td><td>45.4</td><td>45.4</td><td>47.4</td><td>47.4</td></tr><tr><td>6/255</td><td>32.4</td><td>24.6</td><td>23.8</td><td>19.4</td><td>19.4</td><td>21.2</td><td>21.0</td></tr><tr><td>8/255</td><td>19.4</td><td>17.0</td><td>14.6</td><td>6.2</td><td>6.2</td><td>6.8</td><td>6.8</td></tr><tr><td>10/255</td><td>10.8</td><td>12.8</td><td>11.6</td><td>1.0</td><td>0.8</td><td>1.2</td><td>1.2</td></tr><tr><td></td><td></td><td></td><td></td><td>DF</td><td>PGD-</td><td>PGD-</td><td>FAB-</td><td>FAB-</td></tr><tr><td rowspan="5">l2</td><td>1</td><td></td><td></td><td>79.4</td><td>1 76.6</td><td>10 76.6</td><td>1 77.0</td><td>10 76.8</td></tr><tr><td>2</td><td></td><td></td><td>65.0</td><td>46.8</td><td>46.2</td><td>49.8</td><td>49.2</td></tr><tr><td>3</td><td></td><td></td><td>46.8</td><td>22.4</td><td>21.4</td><td>24.4</td><td>23.8</td></tr><tr><td>4</td><td></td><td></td><td>32.8</td><td>9.0</td><td>8.6</td><td>10.8</td><td>10.6</td></tr><tr><td>5</td><td></td><td></td><td>20.4</td><td>3.0</td><td>2.8</td><td>3.2</td><td>3.2</td></tr><tr><td></td><td></td><td></td><td>SparseFool</td><td></td><td>PGD-</td><td>PGD-</td><td>FAB-</td><td>FAB-</td></tr><tr><td rowspan="5">l</td><td></td><td></td><td></td><td></td><td>1</td><td>5</td><td>1</td><td>5</td></tr><tr><td>15</td><td></td><td></td><td>81.8</td><td>69.8</td><td>69.8</td><td>69.6</td><td>68.2</td></tr><tr><td>25</td><td></td><td></td><td>76.4</td><td>58.6</td><td>58.2</td><td>56.2</td><td>53.6</td></tr><tr><td>40</td><td></td><td></td><td>71.4</td><td>41.0</td><td>41.0</td><td>41.2</td><td>37.6</td></tr><tr><td>60 100</td><td></td><td></td><td>63.2 49.2</td><td>28.8 12.0</td><td>28.8 11.6</td><td>28.2 14.6</td><td>23.8 11.2</td></tr></table>
357
+
358
+ Table 13: Comparison of ${ \mathit { l } } _ { \infty }$ -, $l _ { 2 }$ - and $l _ { 1 }$ -attacks on an $l _ { 2 }$ -robust model on Restricted ImageNet. We report the accuracy in percentage of the classifier on the test set if the attack is allowed to perturb the test points of $\epsilon$ in $l _ { p }$ -distance. The statistics are computed on the first 500 points of the test set.
359
+
360
+ Robust accuracy of Restricted ImageNet $l _ { 2 }$ -robust model
361
+
362
+ <table><tr><td>metric</td><td>E</td><td>DF</td><td>DAA- 1</td><td>DAA- 10</td><td>PGD- 1</td><td>PGD- 10</td><td>FAB- 1</td><td>FAB- 10</td></tr><tr><td rowspan="5">18</td><td>2/255</td><td>74.4</td><td>73.0</td><td>73.0</td><td>73.0</td><td>73.0</td><td>73.8</td><td>73.8</td></tr><tr><td>4/255</td><td>49.0</td><td>39.6</td><td>39.2</td><td>37.6</td><td>37.6</td><td>39.6</td><td>39.4</td></tr><tr><td>6/255</td><td>27.4</td><td>22.6</td><td>21.0</td><td>13.2</td><td>13.2</td><td>15.0</td><td>15.0</td></tr><tr><td>8/255</td><td>13.8</td><td>18.6</td><td>16.8</td><td>3.6</td><td>3.6</td><td>3.6</td><td>3.2</td></tr><tr><td>10/255</td><td>6.6</td><td>15.6</td><td>13.8</td><td>0.4</td><td>0.4</td><td>0.8</td><td>0.8</td></tr><tr><td></td><td></td><td></td><td></td><td>DF</td><td>PGD-</td><td>PGD-</td><td>FAB-</td><td>FAB-</td></tr><tr><td rowspan="5">12</td><td>2</td><td></td><td></td><td></td><td>1</td><td>50</td><td>1</td><td>10 72.8</td></tr><tr><td>3</td><td></td><td></td><td>74.2 61.6</td><td>71.8 51.4</td><td>71.8 51.0</td><td>72.8 52.4</td><td>52.4</td></tr><tr><td>4</td><td></td><td></td><td>45.6</td><td>31.0</td><td>30.8</td><td>34.4</td><td>33.8</td></tr><tr><td>5</td><td></td><td></td><td>34.6</td><td>20.4</td><td>20.4</td><td>22.6</td><td>21.8</td></tr><tr><td>6</td><td></td><td></td><td>25.2</td><td>9.6</td><td>9.6</td><td>11.8</td><td>11.6</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>PGD-</td><td></td><td></td><td>FAB-</td></tr><tr><td rowspan="5">l1</td><td></td><td></td><td>SparseFool</td><td></td><td>1</td><td>PGD- 5</td><td>FAB- 1</td><td>5</td></tr><tr><td>50</td><td></td><td></td><td>85.4</td><td>81.0</td><td>81.0</td><td>78.6</td><td>78.4</td></tr><tr><td>100</td><td></td><td></td><td>79.6</td><td>63.8</td><td>63.6</td><td>60.8</td><td>59.0</td></tr><tr><td>150</td><td></td><td></td><td>74.4</td><td>48.4</td><td>48.4</td><td>45.2</td><td>42.2</td></tr><tr><td>200 250</td><td></td><td></td><td>68.6 60.0</td><td>32.2 23.0</td><td>32.2 22.4</td><td>31.0 22.8</td><td>29.0 20.2</td></tr></table>
363
+
364
+ ![](images/0be78c0b205f94556f564bff0531004766b5d68fd7f6ceb6b6ef3b91fe2e6bc9.jpg)
365
+ Figure 3: We plot for different step sizes of PGD robust accuracy over iterations. In red the step size we used in the experiments of Section 3. We clearly see that our chosen step-size is on average the best one. The models used are those trained on MNIST (top row) and CIFAR-10 (bottom row).
366
+
367
+ # B Analysis of the attacks
368
+
369
+ # B.1 Choice of the step size of PGD
370
+
371
+ We here show the performance of PGD wrt $l _ { 2 }$ on MNIST and CIFAR-10 under different choices of the step size. In particular we focus here on the largest $\epsilon$ and the middle $\epsilon$ values chosen in the evaluation where the different stepsize choices have the largest impact. We report the robust accuracy for at each of the 150 iterations. We test step sizes $\epsilon / t$ for $t \in \{ 1 , 2 , 4 , 1 0 , 2 5 , 7 5 \}$ . For each step size we run the attack 10 times with random initialization and show the run which achieves the lowest robust accuracy after 150 iterations. Note however that the behaviour of different runs varies minimally. In Figure 3 we show the results for the three models for MNIST and CIFAR-10 for two different choices of $\epsilon$ used in Section 3, with step size decreasing the blue becoming darker, while our chosen step size, that is $\epsilon / 4$ , is highlighted in red. We see that it achieves in all the models best or close to best robust accuracy and is clearly the best on average.
372
+
373
+ # B.2 Evolution across iteration
374
+
375
+ We here want to compare the evolution of the robust accuracy across the iterations of a single run of PGD and FAB, that is PGD-1 and FAB-1 from Tables 5 to 13. Since PGD performs 1 forward and 1 backward pass for each iteration and FAB 2 forward passes and 1 backward pass, we rescale the robust accuracy so to compare the two methods when they have exploited the same number of passes of the network. Then 300 passes correspond to 150 iterations of PGD and to 100 of FAB. In Figures 4, 5 and 6 we show the evolution of robust accuracy for the different dataset, models and threat models ( ${ \mathit { l } } _ { \infty }$ , $l _ { 2 }$ and $l _ { 1 }$ ), computed at the threshold $\epsilon$ median among the five used in Tables 5 to 13.
376
+
377
+ ![](images/394080302f40b08a5199f7f3435e273bccfdbce94e40a64e3c6d2627f1248542.jpg)
378
+ Figure 4: Evolution of accuracy across iterations on MNIST. We compare the robust accuracy of PGD-1 (magenta) and FAB-1 (black) as a function of the employed forward/backward passes in the algorithm (one iteration of PGD corresponds to 2 passes, one iteration of FAB corresponds to 3 passes). Models: plain in the first column, $l _ { \infty }$ -at in the second and $l _ { 2 }$ -at in the third. Threat models: ${ \mathit { l } } _ { \infty }$ in the first row, $l _ { 2 }$ in the second and $l _ { 1 }$ in the third. The thresholds $\epsilon$ used can be read above the plots. Note that the result of FAB-1 on ${ \mathit { l } } _ { \infty }$ -at wrt $l _ { 1 }$ does not match that in Table 6 due to a typo in the statistics in the table.
379
+
380
+ ![](images/e5545fdce41d433a09a74a6c59602e331c782191c55f6c6c75d988a99d575142.jpg)
381
+ Figure 5: Evolution of accuracy across iterations on CIFAR-10. We compare the robust accuracy of PGD-1 (magenta) and FAB-1 (black) as a function of the employed forward/backward passes in the algorithm (one iteration of PGD corresponds to 2 passes, one iteration of FAB corresponds to 3 passes). Models: plain in the first column, $l _ { \infty }$ -at in the second and $l _ { 2 }$ -at in the third. Threat models: ${ \mathit { l } } _ { \infty }$ in the first row, $l _ { 2 }$ in the second and $l _ { 1 }$ in the third. The thresholds $\epsilon$ used can be read above the plots.
382
+
383
+ ![](images/f662f60af47b70ef9e9be2d11736c4a60d3e7a49f05574d06c79cbdcac04334b.jpg)
384
+ Figure 6: Evolution of robust accuracy across iterations on Restricted ImageNet. We compare the robust accuracy of PGD-1 (magenta) and FAB-1 (black) as a function of the employed forward/backward passes in the algorithm (one iteration of PGD corresponds to 2 passes, one iteration of FAB corresponds to 3 passes). Models: plain in the first column, ${ \mathit { l } } _ { \infty }$ -at in the second and $l _ { 2 }$ -at in the third. Threat models: ${ \mathit { l } } _ { \infty }$ in the first row, $l _ { 2 }$ in the second and $l _ { 1 }$ in the third. The thresholds $\epsilon$ used can be read above the plots.
parse/train/HJlzxgBtwH/HJlzxgBtwH_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJlzxgBtwH/HJlzxgBtwH_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJlzxgBtwH/HJlzxgBtwH_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SyZI0GWCZ/SyZI0GWCZ.md ADDED
@@ -0,0 +1,264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DECISION-BASED ADVERSARIAL ATTACKS: RELIABLE ATTACKS AGAINST BLACK-BOX MACHINE LEARNING MODELS
2
+
3
+ Wieland Brendel∗, Jonas Rauber∗ & Matthias Bethge Werner Reichardt Centre for Integrative Neuroscience, Eberhard Karls University Tubingen, Germany ¨ {wieland,jonas,matthias}@bethgelab.org
4
+
5
+ # ABSTRACT
6
+
7
+ Many machine learning algorithms are vulnerable to almost imperceptible perturbations of their inputs. So far it was unclear how much risk adversarial perturbations carry for the safety of real-world machine learning applications because most methods used to generate such perturbations rely either on detailed model information (gradient-based attacks) or on confidence scores such as class probabilities (score-based attacks), neither of which are available in most real-world scenarios. In many such cases one currently needs to retreat to transfer-based attacks which rely on cumbersome substitute models, need access to the training data and can be defended against. Here we emphasise the importance of attacks which solely rely on the final model decision. Such decision-based attacks are (1) applicable to real-world black-box models such as autonomous cars, (2) need less knowledge and are easier to apply than transfer-based attacks and (3) are more robust to simple defences than gradient- or score-based attacks. Previous attacks in this category were limited to simple models or simple datasets. Here we introduce the Boundary Attack, a decision-based attack that starts from a large adversarial perturbation and then seeks to reduce the perturbation while staying adversarial. The attack is conceptually simple, requires close to no hyperparameter tuning, does not rely on substitute models and is competitive with the best gradient-based attacks in standard computer vision tasks like ImageNet. We apply the attack on two black-box algorithms from Clarifai.com. The Boundary Attack in particular and the class of decision-based attacks in general open new avenues to study the robustness of machine learning models and raise new questions regarding the safety of deployed machine learning systems. An implementation of the attack is available as part of Foolbox (https://github.com/bethgelab/foolbox).
8
+
9
+ ![](images/29bebf96fcff48a12bde8b3b7384b02342998228447068b194f990d2e47a7930.jpg)
10
+ Figure 1: (Left) Taxonomy of adversarial attack methods. The Boundary Attack is applicable to realworld ML algorithms because it only needs access to the final decision of a model (e.g. class-label or transcribed sentence) and does not rely on model information like the gradient or the confidence scores. (Right) Application to the Clarifai Brand Recognition Model.
11
+
12
+ # 1 INTRODUCTION
13
+
14
+ Many high-performance machine learning algorithms used in computer vision, speech recognition and other areas are susceptible to minimal changes of their inputs (Szegedy et al., 2013). As a concrete example, a modern deep neural network like VGG-19 trained on object recognition might perfectly recognize the main object in an image as a tiger cat, but if the pixel values are only slightly perturbed in a specific way then the prediction of the very same network is drastically altered (e.g. to bus). These so-called adversarial perturbations are ubiquitous in many machine learning models and are often imperceptible to humans. Algorithms that seek to find such adversarial perturbations are generally denoted as adversarial attacks.
15
+
16
+ Adversarial perturbations have drawn interest from two different sides. On the one side, they are worrisome for the integrity and security of deployed machine learning algorithms such as autonomous cars or face recognition systems. Minimal perturbations on street signs (e.g. turning a stop-sign into a $2 0 0 \mathrm { k m / h }$ speed limit) or street lights (e.g. turning a red into a green light) can have severe consequences. On the other hand, adversarial perturbations provide an exciting spotlight on the gap between the sensory information processing in humans and machines and thus provide guidance towards more robust, human-like architectures.
17
+
18
+ Adversarial attacks can be roughly divided into three categories: gradient-based, score-based and transfer-based attacks (cp. Figure 1). Gradient-based and score-based attacks are often denoted as white-box and oracle attacks respectively, but we try to be as explicit as possible as to what information is being used in each category1. A severe problem affecting attacks in all of these categories is that they are surprisingly straight-forward to defend against:
19
+
20
+ • Gradient-based attacks. Most existing attacks rely on detailed model information including the gradient of the loss w.r.t. the input. Examples are the Fast-Gradient Sign Method (FGSM), the Basic Iterative Method (BIM) (Kurakin et al., 2016), DeepFool (MoosaviDezfooli et al., 2015), the Jacobian-based Saliency Map Attack (JSMA) (Papernot et al., 2015), Houdini (Cisse et al., 2017) and the Carlini & Wagner attack (Carlini & Wagner, 2016a).
21
+
22
+ Defence: A simple way to defend against gradient-based attacks is to mask the gradients, for example by adding non-differentiable elements either implicitly through means like defensive distillation (Papernot et al., 2016) or saturated non-linearities (Nayebi & Ganguli, 2017), or explicitly through means like non-differentiable classifiers (Lu et al., 2017).
23
+
24
+ • Score-based attacks. A few attacks are more agnostic and only rely on the predicted scores (e.g. class probabilities or logits) of the model. On a conceptual level these attacks use the predictions to numerically estimate the gradient. This includes black-box variants of JSMA (Narodytska & Kasiviswanathan, 2016) and of the Carlini & Wagner attack (Chen et al., 2017) as well as generator networks that predict adversarials (Hayes & Danezis, 2017).
25
+
26
+ Defence: It is straight-forward to severely impede the numerical gradient estimate by adding stochastic elements like dropout into the model. Also, many robust training methods introduce a sharp-edged plateau around samples (Tramer et al., 2017) which not only masks gradients themselves but also their numerical estimate.
27
+
28
+ • Transfer-based attacks. Transfer-based attacks do not rely on model information but need information about the training data. This data is used to train a fully observable substitute model from which adversarial perturbations can be synthesized (Papernot et al., 2017a). They rely on the empirical observation that adversarial examples often transfer between models. If adversarial examples are created on an ensemble of substitute models the success rate on the attacked model can reach up to $100 \%$ in certain scenarios (Liu et al., 2016).
29
+
30
+ Defence: A recent defence method against transfer attacks (Tramer et al., 2017), which is based on robust training on a dataset augmented by adversarial examples from an ensemble of substitute models, has proven highly successful against basically all attacks in the 2017 Kaggle Competition on Adversarial Attacks2.
31
+
32
+ The fact that many attacks can be easily averted makes it often extremely difficult to assess whether a model is truly robust or whether the attacks are just too weak, which has lead to premature claims of robustness for DNNs (Carlini & Wagner, 2016b; Brendel & Bethge, 2017).
33
+
34
+ This motivates us to focus on a category of adversarial attacks that has so far received fairly little attention:
35
+
36
+ • Decision-based attacks. Direct attacks that solely rely on the final decision of the model (such as the top-1 class label or the transcribed sentence).
37
+
38
+ The delineation of this category is justified for the following reasons: First, compared to score-based attacks decision-based attacks are much more relevant in real-world machine learning applications where confidence scores or logits are rarely accessible. At the same time decision-based attacks have the potential to be much more robust to standard defences like gradient masking, intrinsic stochasticity or robust training than attacks from the other categories. Finally, compared to transferbased attacks they need much less information about the model (neither architecture nor training data) and are much simpler to apply.
39
+
40
+ There currently exists no effective decision-based attack that scales to natural datasets such as ImageNet and is applicable to deep neural networks (DNNs). The most relevant prior work is a variant of transfer attacks in which the training set needed to learn the substitute model is replaced by a synthetic dataset (Papernot et al., 2017b). This synthetic dataset is generated by the adversary alongside the training of the substitute; the labels for each synthetic sample are drawn from the black-box model. While this approach works well on datasets for which the intra-class variability is low (such as MNIST) it has yet to be shown that it scales to more complex natural datasets such as CIFAR or ImageNet. Other decision-based attacks are specific to linear or convex-inducing classifiers (Dalvi et al., 2004; Lowd & Meek, 2005; Nelson et al., 2012) and are not applicable to other machine learning models. The work by (Biggio et al., 2013) basically stands between transfer attacks and decision-based attacks in that the substitute model is trained on a dataset for which the labels have been observed from the black-box model. This attack still requires knowledge about the data distribution on which the black-box models was trained on and so we don’t consider it a pure decision-based attack. Finally, some naive attacks such as a line-search along a random direction away from the original sample can qualify as decision-based attacks but they induce large and very visible perturbations that are orders of magnitude larger than typical gradient-based, score-based or transfer-based attacks.
41
+
42
+ Throughout the paper we focus on the threat scenario in which the adversary aims to change the decision of a model (either targeted or untargeted) for a particular input sample by inducing a minimal perturbation to the sample. The adversary can observe the final decision of the model for arbitrary inputs and it knows at least one perturbation, however large, for which the perturbed sample is adversarial.
43
+
44
+ The contributions of this paper are as follows:
45
+
46
+ • We emphasise decision-based attacks as an important category of adversarial attacks that are highly relevant for real-world applications and important to gauge model robustness. We introduce the first effective decision-based attack that scales to complex machine learning models and natural datasets. The Boundary Attack is (1) conceptually surprisingly simple, (2) extremely flexible, (3) requires little hyperparameter tuning and (4) is competitive with the best gradient-based attacks in both targeted and untargeted computer vision scenarios.
47
+ We show that the Boundary Attack is able to break previously suggested defence mechanisms like defensive distillation. We demonstrate the practical applicability of the Boundary Attack on two black-box machine learning models for brand and celebrity recognition available on Clarifai.com.
48
+
49
+ # 1.1 NOTATION
50
+
51
+ Throughout the paper we use the following notation: $^ o$ refers to the original input (e.g. an image), $\begin{array} { r } { y = \bar { F } ( o ) } \end{array}$ refers to the full prediction of the model $F ( \cdot )$ (e.g. logits or probabilities), $y _ { m a x }$ is the
52
+
53
+ predicted label (e.g. class-label). Similarly, $\tilde { o }$ refers to the adversarially perturbed image, $\tilde { o } ^ { k }$ refers to the perturbed image at the $k$ -th step of an attack algorithm. Vectors are denoted in bold.
54
+
55
+ # 2 BOUNDARY ATTACK
56
+
57
+ The basic intuition behind the boundary attack algorithm is depicted in Figure 2: the algorithm is initialized from a point that is already adversarial and then performs a random walk along the boundary between the adversarial and the non-adversarial region such that (1) it stays in the adversarial region and (2) the distance towards the target image is reduced. In other words we perform rejection sampling with a suitable proposal distribution $\mathcal { P }$ to find progressively smaller adversarial perturbations according to a given adversarial criterion $c ( . )$ . The basic logic of the algorithm is described in Algorithm 1, each individual building block is detailed in the next subsections.
58
+
59
+ Data: original image o, adversarial criterion $c ( . )$ , decision of model $d ( . )$
60
+ Result: adversarial example $\tilde { o }$ such that the distance $d ( \pmb { o } , \tilde { \pmb { o } } ) = \lVert \pmb { o } - \tilde { \pmb { o } } \rVert _ { 2 } ^ { 2 }$ is minimized
61
+ initialization: $k = 0$ , $\tilde { \sigma } ^ { 0 } \sim \mathcal { U } ( 0 , 1 )$ s.t. $\tilde { \bullet } ^ { 0 }$ is adversarial;
62
+ while $k <$ maximum number of steps do draw random perturbation from proposal distribution $\eta _ { k } \sim \mathcal { P } ( \tilde { o } ^ { k - 1 } )$ ; if $\tilde { o } ^ { k - 1 } + \eta _ { k }$ is adversarial then set $\tilde { \pmb { o } } ^ { k } = \tilde { \pmb { o } } ^ { k - 1 } + \eta _ { k }$ ; else set $\tilde { o } ^ { k } = \tilde { o } ^ { k - 1 }$ ; end $k = k + 1$
63
+ end
64
+
65
+ Algorithm 1: Minimal version of the Boundary Attack.
66
+
67
+ # 2.1 INITIALISATION
68
+
69
+ The Boundary Attack needs to be initialized with a sample that is already adversarial3. In an untargeted scenario we simply sample from a maximum entropy distribution given the valid domain of the input. In the computer vision applications below, where the input is constrained to a range of [0, 255] per pixel, we sample each pixel in the initial image $\mathbf { \tilde { o } ^ { 0 } }$ from a uniform distribution $\mathcal { U } ( 0 , \bar { 2 } 5 5 )$ . We reject samples that are not adversarial. In a targeted scenario we start from any sample that is classified by the model as being from the target class.
70
+
71
+ # 2.2 PROPOSAL DISTRIBUTION
72
+
73
+ The efficiency of the algorithm crucially depends on the proposal distribution $\mathcal { P }$ , i.e. which random directions are explored in each step of the algorithm. The optimal proposal distribution will generally depend on the domain and / or model to be attacked, but for all vision-related problems tested here a very simple proposal distribution worked surprisingly well. The basic idea behind this proposal distribution is as follows: in the $k$ -th step we want to draw perturbations $\eta ^ { k }$ from a maximum entropy distribution subject to the following constraints:
74
+
75
+ 1. The perturbed sample lies within the input domain,
76
+
77
+ $$
78
+ \tilde { o } _ { i } ^ { k - 1 } + \eta _ { i } ^ { k } \in [ 0 , 2 5 5 ] .
79
+ $$
80
+
81
+ 2. The perturbation has a relative size of $\delta$ ,
82
+
83
+ $$
84
+ \left\| \pmb { \eta } ^ { k } \right\| _ { 2 } = \delta \cdot d ( \mathbf { o } , \tilde { \mathbf { o } } ^ { \mathbf { k } - \mathbf { 1 } } ) .
85
+ $$
86
+
87
+ 3. The perturbation reduces the distance of the perturbed image towards the original input by a relative amount $\epsilon$ ,
88
+
89
+ $$
90
+ d ( { \bf o } , \tilde { \bf o } ^ { { \bf k } - 1 } ) - d ( { \bf o } , \tilde { \bf o } ^ { { \bf k } - 1 } + \eta ^ { k } ) = \epsilon \cdot d ( { \bf o } , \tilde { \bf o } ^ { { \bf k } - 1 } ) .
91
+ $$
92
+
93
+ ![](images/c9a81d4b166c0bc0a33a374cca7d988a2eea34ac136d9734d6e84454672850a0.jpg)
94
+ Figure 2: (Left) In essence the Boundary Attack performs rejection sampling along the boundary between adversarial and non-adversarial images. (Center) In each step we draw a new random direction by (#1) drawing from an iid Gaussian and projecting on a sphere, and by (#2) making a small move towards the target image. (Right) The two step-sizes (orthogonal and towards the original input) are dynamically adjusted according to the local geometry of the boundary.
95
+
96
+ In practice it is difficult to sample from this distribution, and so we resort to a simpler heuristic: first, we sample from an iid Gaussian distribution $\eta _ { i } ^ { k } \sim \mathcal { N } ( 0 , 1 )$ and then rescale and clip the sample such that (1) and (2) hold. In a second step we project $\eta ^ { k }$ onto a sphere around the original image $^ o$ such that $d ( o , \tilde { o } ^ { k - 1 } + \eta ^ { k } ) = d ( o , \tilde { o } ^ { k - 1 } )$ and (1) hold. We denote this as the orthogonal perturbation and use it later for hyperparameter tuning. In the last step we make a small movement towards the original image such that (1) and (3) hold. For high-dimensional inputs and small $\delta , \epsilon$ the constraint (2) will also hold approximately.
97
+
98
+ # 2.3 ADVERSARIAL CRITERION
99
+
100
+ A typical criterion by which an input is classified as adversarial is misclassification, i.e. whether the model assigns the perturbed input to some class different from the class label of the original input. Another common choice is targeted misclassification for which the perturbed input has to be classified in a given target class. Other choices include top-k misclassification (the top-k classes predicted for the perturbed input do not contain the original class label) or thresholds on certain confidence scores. Outside of computer vision many other choices exist such as criteria on the worderror rates. In comparison to most other attacks, the Boundary Attack is extremely flexible with regards to the adversarial criterion. It basically allows any criterion (including non-differentiable ones) as long as for that criterion an initial adversarial can be found (which is trivial in most cases).
101
+
102
+ # 2.4 HYPERPARAMETER ADJUSTMENT
103
+
104
+ The Boundary Attack has only two relevant parameters: the length of the total perturbation $\delta$ and the length of the step $\epsilon$ towards the original input (see Fig. 2). We adjust both parameters dynamically according to the local geometry of the boundary. The adjustment is inspired by Trust Region methods. In essence, we first test whether the orthogonal perturbation is still adversarial. If this is true, then we make a small movement towards the target and test again. The orthogonal step tests whether the step-size is small enough so that we can treat the decision boundary between the adversarial and the non-adversarial region as being approximately linear. If this is the case, then we expect around $50 \%$ of the orthogonal perturbations to still be adversarial. If this ratio is much lower, we reduce the step-size $\delta$ , if it is close to $50 \%$ or higher we increase it. If the orthogonal perturbation is still adversarial we add a small step towards the original input. The maximum size of this step depends on the angle of the decision boundary in the local neighbourhood (see also Figure 2). If the success rate is too small we decrease $\epsilon$ , if it is too large we increase it. Typically, the closer we get to the original image, the flatter the decision boundary becomes and the smaller $\epsilon$ has to be to still make progress. The attack is converged whenever $\epsilon$ converges to zero.
105
+
106
+ # 3 COMPARISON WITH OTHER ATTACKS
107
+
108
+ We quantify the performance of the Boundary Attack on three different standard datasets: MNIST (LeCun et al., 1998), CIFAR-10 (Krizhevsky & Hinton, 2009) and ImageNet-1000 (Deng et al., 2009). To make the comparison with previous results as easy and transparent as possible, we here use the same MNIST and CIFAR networks as Carlini & Wagner (2016a)4. In a nutshell, both the MNIST and CIFAR model feature nine layers with four convolutional layers, two max-pooling layers and two fully-connected layers. For all details, including training parameters, we refer the reader to (Carlini & Wagner, 2016a). On ImageNet we use the pretrained networks VGG-19 (Simonyan & Zisserman, 2014), ResNet-50 (He et al., 2015) and Inception-v3 (Szegedy et al., 2015) provided by Keras5.
109
+
110
+ We evaluate the Boundary Attack in two settings: an (1) untargeted setting in which the adversarial perturbation flips the label of the original sample to any other label, and a (2) targeted setting in which the adversarial flips the label to a specific target class. In the untargeted setting we compare the Boundary Attack against three gradient-based attack algorithms:
111
+
112
+ • Fast-Gradient Sign Method (FGSM). FGSM is among the simplest and most widely used untargeted adversarial attack methods. In a nutshell, FGSM computes the gradient ${ \textbf { 0 } } =$ $\nabla _ { o } \mathcal { L } ( o , c )$ that maximizes the loss $\mathcal { L }$ for the true class-label $c$ and then seeks the smallest $\epsilon$ for which $\mathbf { \omega } _ { o + \epsilon } . \mathbf { \omega } _ { g }$ is still adversarial. We use the implementation in Foolbox 0.10.0 (Rauber et al., 2017). DeepFool. DeepFool is a simple yet very effective attack. In each iteration it computes for each class $\ell \neq \ell _ { 0 }$ the minimum distance $d ( \ell , \ell _ { 0 } )$ that it takes to reach the class boundary by approximating the model classifier with a linear classifier. It then makes a corresponding step in the direction of the class with the smallest distance. We use the implementation in Foolbox 0.10.0 (Rauber et al., 2017). Carlini & Wagner. The attack by Carlini & Wagner (Carlini & Wagner, 2016a) is essentially a refined iterative gradient attack that uses the Adam optimizer, multiple starting points, a tanh-nonlinearity to respect box-constraints and a max-based adversarial constraint function. We use the original implementation provided by the authors with all hyperparameters left at their default values4.
113
+
114
+ To evaluate the success of each attack we use the following metric: let $\pmb { \eta } _ { A , M } ( \pmb { o } _ { i } ) \in \mathbb { R } ^ { N }$ be the adversarial perturbation that the attack $A$ finds on model $M$ for the $i$ -th sample $\mathbf { o } _ { i }$ . The total score $\mathcal { S } _ { A }$ for $A$ is the median squared L2-distance across all samples,
115
+
116
+ $$
117
+ \mathcal { S } _ { A } ( M ) = \mathrm { m e d i a n } \left( \frac { 1 } { N } \left. \pmb { \eta } _ { A , M } ( \pmb { o } _ { i } ) \right. _ { 2 } ^ { 2 } \right) .
118
+ $$
119
+
120
+ For MNIST and CIFAR we evaluate 1000 randomly drawn samples from the validation set, for ImageNet we use 250 images.
121
+
122
+ # 3.1 UNTARGETED ATTACK
123
+
124
+ In the untargeted setting an adversarial is any image for which the predicted label is different from the label of the original image. We show adversarial samples synthesized by the Boundary Attack for each dataset in Figure 3. The score (4) for each attack and each dataset is as follows:
125
+
126
+ ImageNet
127
+
128
+ <table><tr><td></td><td>Attack Type</td><td>MNIST</td><td>CIFAR</td><td>VGG-19</td><td>ResNet-50</td><td>Inception-v3</td></tr><tr><td>FGSM</td><td>gradient-based</td><td>4.2e-02</td><td>2.5e-05</td><td>1.0e-06</td><td>1.0e-06</td><td>9.7e-07</td></tr><tr><td>DeepFool</td><td>gradient-based</td><td>4.3e-03</td><td>5.8e-06</td><td>1.9e-07</td><td>7.5e-08</td><td>5.2e-08</td></tr><tr><td>Carlini &amp; Wagner</td><td>gradient-based</td><td>2.2e-03</td><td>7.5e-06</td><td>5.7e-07</td><td>2.2e-07</td><td>7.6e-08</td></tr><tr><td>Boundary (ours)</td><td>decision-based</td><td>3.6e-03</td><td>5.6e-06</td><td>2.9e-07</td><td>1.0e-07</td><td>6.5e-08</td></tr></table>
129
+
130
+ ![](images/eeb7e498a6f3dda6b80f2fdd07715a54125dc071e8a27bf1b9e1a9682e877d9e.jpg)
131
+ Figure 3: Adversarial examples generated by the Boundary Attack for an MNIST, CIFAR and ImageNet network. For MNIST, the difference shows positive (blue) and negative (red) changes. For CIFAR and ImageNet, we take the norm across color channels. All differences have been scaled up for improved visibility.
132
+
133
+ ![](images/224fd7d916d70367db5cbec645c4cb5aa8c9276b5fe4430a32d62d409dd41f11.jpg)
134
+ Figure 4: Example of an untargeted attack. Here the goal is to synthesize an image that is as close as possible (in L2-metric) to the original image while being misclassified (the original image is correctly classified). For each image we report the total number of model calls (predictions) until that point (above the image) and the mean squared error between the adversarial and the original (below the image).
135
+
136
+ Despite its simplicity the Boundary Attack is competitive with gradient-based attacks in terms of the minimal adversarial perturbations and very stable against the choice of the initial point (Figure 5). This finding is quite remarkable given that gradient-based attacks can fully observe the model whereas the Boundary Attack is severely restricted to the final class prediction. To compensate for this lack of information the Boundary Attack needs many more iterations to converge. As a rough measure for the run-time of an attack independent of the quality of its implementation we tracked the number of forward passes (predictions) and backward passes (gradients) through the network requested by each of the attacks to find an adversarial for ResNet-50: averaged over 20 samples and under the same conditions as before, DeepFool needs about 7 forward and 37 backward passes, the Carlini & Wagner attack requires 16.000 forward and the same number of backward passes, and the Boundary Attack uses 1.200.000 forward passes but zero backward passes. While that (unsurprisingly) makes the Boundary Attack more expensive to run it is important to note that the Boundary Attacks needs much fewer iterations if one is only interested in imperceptible perturbations, see figures 4 and 6.
137
+
138
+ # 3.2 TARGETED ATTACK
139
+
140
+ We can also apply the Boundary Attack in a targeted setting. In this case we initialize the attack from a sample of the target class that is correctly identified by the model. A sample trajectory from the starting point to the original sample is shown in Figure 7. After around $1 0 ^ { 4 }$ calls to the model the perturbed image is already clearly identified as a cat by humans and contains no trace of the Dalmatian dog, as which the image is still classified by the model.
141
+
142
+ ![](images/a182715ad2d667ed65ca2ebb2779a3bcb68058efa6b45bdb4d123f50179eb937.jpg)
143
+ Figure 5: Adversarial perturbation (difference between the adversarial and the original image) for ten repetitions of the Boundary Attack on the same image. There are basically two different minima with similar distance (first row and second row) to which the Boundary Attack converges.
144
+
145
+ ![](images/c6a777ffa8fb8799bffa6b639846bc5e2222923e9088233bf6dffdd0db0a6b1f.jpg)
146
+ Figure 6: Distance between adversarial and original image over number of model calls for 12 different images (until convergence). Very few steps are already sufficient to get almost imperceptible perturbations.
147
+
148
+ ![](images/3762b35219c7d357b48af44610d0275cae626e52f01443af83b519d540c06334.jpg)
149
+ Figure 7: Example of a targeted attack. Here the goal is to synthesize an image that is as close as possible (in L2-metric) to a given image of a tiger cat (2nd row, right) but is classified as a dalmatian dog. For each image we report the total number of model calls (predictions) until that point.
150
+
151
+ In order to compare the Boundary Attack to Carlini & Wagner we define the target target label for each sample in the following way: on MNIST and CIFAR a sample with label $\ell$ gets the target label $\ell + 1$ modulo 10. On ImageNet we draw the target label randomly but consistent across attacks. The results are as follows:
152
+
153
+ <table><tr><td></td><td>Attack Type</td><td>MNIST</td><td>CIFAR</td><td>VGG-19</td></tr><tr><td>Carlini &amp;Wagner</td><td>gradient-based</td><td>4.8e-03</td><td>3.0e-05</td><td>5.7e-06</td></tr><tr><td>Boundary (ours)</td><td>decision-based</td><td>6.5e-03</td><td>3.3e-05</td><td>9.9e-06</td></tr></table>
154
+
155
+ # 4 THE IMPORTANCE OF DECISION-BASED ATTACKS TO EVALUATE MODEL ROBUSTNESS
156
+
157
+ As discussed in the introduction, many attack methods are straight-forward to defend against. One common nuisance is gradient masking in which a model is implicitely or explicitely modified to yield masked gradients. An interesting example is the saturated sigmoid network (Nayebi & Ganguli, 2017) in which an additional regularization term leads the sigmoid activations to saturate, which in turn leads to vanishing gradients and failing gradient-based attacks (Brendel & Bethge, 2017).
158
+
159
+ Another example is defensive distillation (Papernot et al., 2016). In a nutshell defensive distillation uses a temperature-augmented softmax of the type
160
+
161
+ $$
162
+ s o f t m a x ( x , T ) _ { i } = \frac { e ^ { x _ { i } / T } } { \sum _ { j } e ^ { x _ { j } / T } }
163
+ $$
164
+
165
+ and works as follows:
166
+
167
+ 1. Train a teacher network as usual but with temperature $T$ .
168
+ 2. Train a distilled network—with the same architecture as the teacher—on the softmax outputs of the teacher. Both the distilled network and the teacher use temperature $T$ .
169
+ 3. Evaluate the distilled network at temperature $T = 1$ at test time.
170
+
171
+ Initial results were promising: the success rate of gradient-based attacks dropped from close to $100 \%$ down to $0 . 5 \%$ . It later became clear that the distilled networks only appeared to be robust because they masked their gradients of the cross-entropy loss (Carlini & Wagner, 2016b): as the temperature of the softmax is decreased at test time, the input to the softmax increases by a factor of $T$ and so the probabilities saturate at 0 and 1. This leads to vanishing gradients of the cross-entropy loss w.r.t. to the input on which gradient-based attacks rely. If the same attacks are instead applied to the logits the success rate recovers to almost $1 0 0 \%$ (Carlini & Wagner, 2016a).
172
+
173
+ Decision-based attacks are immune to such defences. To demonstrate this we here apply the Boundary Attack to two distilled networks trained on MNIST and CIFAR. The architecture is the same as in section 3 and we use the implementation and training protocol by (Carlini & Wagner, 2016a) which is available at https://github.com/carlini/nn_robust_attacks. Most importantly, we do not operate on the logits but provide only the class label with maximum probability to the Boundary Attack. The results are as follows:
174
+
175
+ <table><tr><td rowspan="2"></td><td rowspan="2">Attack Type</td><td colspan="2">MNIST</td><td colspan="2">CIFAR</td></tr><tr><td>standard</td><td>distilled</td><td>standard</td><td>distilled</td></tr><tr><td>FGSM</td><td>gradient-based</td><td>4.2e-02</td><td>fails</td><td>2.5e-05</td><td>fails</td></tr><tr><td>Boundary (ours)</td><td>decision-based</td><td>3.6e-03</td><td>4.2e-03</td><td>5.6e-06</td><td>1.3e-05</td></tr></table>
176
+
177
+ The size of the adversarial perturbations that the Boundary Attack finds is fairly similar for the distilled and the undistilled network. This demonstrates that defensive distillation does not significantly increase the robustness of network models and that the Boundary Attack is able to break defences based on gradient masking.
178
+
179
+ # 5 ATTACKS ON REAL-WORLD APPLICATIONS
180
+
181
+ In many real-world machine learning applications the attacker has no access to the architecture or the training data but can only observe the final decision. This is true for security systems (e.g. face identification), autonomous cars or speech recognition systems like Alexa or Cortana.
182
+
183
+ In this section we apply the Boundary Attack to two models of the cloud-based computer vision API by Clarifai6. The first model identifies brand names in natural images and recognizes over 500 brands. The second model identifies celebrities and can recognize over 10.000 individuals. Multiple identifications per image are possible but we only consider the one with the highest confidence score. It is important to note that Clarifai does provide confidence scores for each identified class (but not for all possible classes). However, in our experiments we do not provide this confidence score to the Boundary Attack. Instead, our attack only receives the name of the identified object (e.g. Pepsi or Verizon in the brand-name detection task).
184
+
185
+ We selected several samples of natural images with clearly visible brand names or portraits of celebrities. We then make a square crop and resize the image to $1 0 0 \times 1 0 0$ pixels. For each sample we make sure that the brand or the celebrity is clearly visible and that the corresponding Clarifai model correctly identifies the content. The adversarial criterion was misclassification, i.e. Clarifai should report a different brand / celebrity or None on the adversarially perturbed sample.
186
+
187
+ ![](images/e7839d3f976c5105c19b1e4c52f53e928122f89340e84a1444ce3924a0bbd7dd.jpg)
188
+ Figure 8: Adversarial examples generated by the Boundary Attack for two black-box models by Clarifai for brand-detection (left side) and celebrity detection (right side).
189
+
190
+ We show five samples for each model alongside the adversarial image generated by the Boundary Attack in Figure 8. We generally observed that the Clarifai models were more difficult to attack than ImageNet models like VGG-19: while for some samples we did succeed to find adversarial perturbations of the same order $( 1 e ^ { - 7 } )$ as in section 3 (e.g. for Shell or $S A P$ ), most adversarial perturbations were on the order of $1 e ^ { - 2 }$ to $1 e ^ { - 3 }$ resulting in some slightly noticeable noise in some adversarial examples. Nonetheless, for most samples the original and the adversarial image are close to being perceptually indistinguishable.
191
+
192
+ # 6 DISCUSSION & OUTLOOK
193
+
194
+ In this paper we emphasised the importance of a mostly neglected category of adversarial attacks— decision-based attacks—that can find adversarial examples in models for which only the final decision can be observed. We argue that this category is important for three reasons: first, attacks in this class are highly relevant for many real-world deployed machine learning systems like autonomous cars for which the internal decision making process is unobservable. Second, attacks in this class do not rely on substitute models that are trained on similar data as the model to be attacked, thus making real-world applications much more straight-forward. Third, attacks in this class have the potential to be much more robust against common deceptions like gradient masking, intrinsic stochasticity or robust training.
195
+
196
+ We also introduced the first effective attack in this category that is applicable to general machine learning algorithms and complex natural datasets: the Boundary Attack. At its core the Boundary Attack follows the decision boundary between adversarial and non-adversarial samples using a very simple rejection sampling algorithm in conjunction with a simple proposal distribution and a dynamic step-size adjustment inspired by Trust Region methods. Its basic operating principle— starting from a large perturbation and successively reducing it—inverts the logic of essentially all previous adversarial attacks. Besides being surprisingly simple, the Boundary attack is also extremely flexible in terms of the possible adversarial criteria and performs on par with gradient-based attacks on standard computer vision tasks in terms of the size of minimal perturbations.
197
+
198
+ The mere fact that a simple constrained iid Gaussian distribution can serve as an effective proposal perturbation for each step of the Boundary attack is surprising and sheds light on the brittle information processing of current computer vision architectures. Nonetheless, there are many ways in which the Boundary attack can be made even more effective, in particular by learning a suitable proposal distribution for a given model or by conditioning the proposal distribution on the recent history of successful and unsuccessful proposals.
199
+
200
+ Decision-based attacks will be highly relevant to assess the robustness of machine learning models and to highlight the security risks of closed-source machine learning systems like autonomous cars. We hope that the Boundary attack will inspire future work in this area.
201
+
202
+ # ACKNOWLEDGMENTS
203
+
204
+ This work was supported by the Carl Zeiss Foundation (0563-2.8/558/3), the Bosch Forschungsstiftung (Stifterverband, T113/30057/17), the International Max Planck Research School for Intelligent Systems (IMPRS-IS), the German Research Foundation (DFG, CRC 1233, Robust Vision: Inference Principles and Neural Mechanisms) and the Intelligence Advanced Research Projects Activity (IARPA) via Department of Interior/Interior Business Center (DoI/IBC) contract number D16PC00003. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright annotation thereon. Disclaimer: The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of IARPA, DoI/IBC, or the U.S. Government.
205
+
206
+ # REFERENCES
207
+
208
+ Battista Biggio, Igino Corona, Davide Maiorca, Blaine Nelson, Nedim Srndi ˇ c, Pavel Laskov, Gior- ´ gio Giacinto, and Fabio Roli. Evasion attacks against machine learning at test time. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 387– 402. Springer, 2013.
209
+
210
+ Wieland Brendel and Matthias Bethge. Comment on “biologically inspired protection of deep networks from adversarial attacks”. CoRR, abs/1704.01547, 2017. URL http://arxiv.org/ abs/1704.01547.
211
+
212
+ Nicholas Carlini and David A. Wagner. Towards evaluating the robustness of neural networks. CoRR, abs/1608.04644, 2016a. URL http://arxiv.org/abs/1608.04644.
213
+
214
+ Nicholas Carlini and David A. Wagner. Defensive distillation is not robust to adversarial examples. CoRR, abs/1607.04311, 2016b. URL http://arxiv.org/abs/1607.04311.
215
+
216
+ Pin-Yu Chen, Huan Zhang, Yash Sharma, Jinfeng Yi, and Cho-Jui Hsieh. Zoo: Zeroth order optimization based black-box attacks to deep neural networks without training substitute models. CoRR, abs/1708.03999, 2017. URL http://arxiv.org/abs/1708.03999.
217
+
218
+ Moustapha Cisse, Yossi Adi, Natalia Neverova, and Joseph Keshet. Houdini: Fooling deep structured prediction models. CoRR, abs/1707.05373, 2017. URL http://arxiv.org/abs/ 1707.05373.
219
+
220
+ Nilesh Dalvi, Pedro Domingos, Mausam, Sumit Sanghai, and Deepak Verma. Adversarial classification. In Proceedings of the Tenth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’04, pp. 99–108, New York, NY, USA, 2004. ACM. ISBN 1-58113-888-1. doi: 10.1145/1014052.1014066. URL http://doi.acm.org/10.1145/ 1014052.1014066.
221
+
222
+ Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pp. 248–255. IEEE, 2009.
223
+
224
+ Jamie Hayes and George Danezis. Machine learning as an adversarial service: Learning blackbox adversarial examples. CoRR, abs/1708.05207, 2017. URL http://arxiv.org/abs/ 1708.05207.
225
+
226
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CoRR, abs/1512.03385, 2015. URL http://arxiv.org/abs/1512.03385.
227
+
228
+ Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
229
+
230
+ Alexey Kurakin, Ian J. Goodfellow, and Samy Bengio. Adversarial examples in the physical world. CoRR, abs/1607.02533, 2016. URL http://arxiv.org/abs/1607.02533.
231
+
232
+ 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.
233
+
234
+ Yanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial examples and black-box attacks. CoRR, abs/1611.02770, 2016. URL http://arxiv.org/abs/ 1611.02770.
235
+
236
+ Daniel Lowd and Christopher Meek. Adversarial learning. In Proceedings of the Eleventh ACM SIGKDD International Conference on Knowledge Discovery in Data Mining, KDD ’05, pp. 641– 647, New York, NY, USA, 2005. ACM. ISBN 1-59593-135-X. doi: 10.1145/1081870.1081950. URL http://doi.acm.org/10.1145/1081870.1081950.
237
+
238
+ Jiajun Lu, Theerasit Issaranon, and David A. Forsyth. Safetynet: Detecting and rejecting adversarial examples robustly. CoRR, abs/1704.00103, 2017. URL http://arxiv.org/abs/1704. 00103.
239
+
240
+ Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: a simple and accurate method to fool deep neural networks. CoRR, abs/1511.04599, 2015. URL http: //arxiv.org/abs/1511.04599.
241
+
242
+ Nina Narodytska and Shiva Prasad Kasiviswanathan. Simple black-box adversarial perturbations for deep networks. CoRR, abs/1612.06299, 2016. URL http://arxiv.org/abs/1612. 06299.
243
+
244
+ Aran Nayebi and Surya Ganguli. Biologically inspired protection of deep networks from adversarial attacks. CoRR, abs/1703.09202, 2017. URL http://arxiv.org/abs/1703.09202.
245
+
246
+ Blaine Nelson, Benjamin I. P. Rubinstein, Ling Huang, Anthony D. Joseph, Steven J. Lee, Satish Rao, and J. D. Tygar. Query strategies for evading convex-inducing classifiers. J. Mach. Learn. Res., 13:1293–1332, May 2012. ISSN 1532-4435. URL http://dl.acm.org/citation. cfm?id=2188385.2343688.
247
+
248
+ Nicolas Papernot, Patrick D. McDaniel, Somesh Jha, Matt Fredrikson, Z. Berkay Celik, and Ananthram Swami. The limitations of deep learning in adversarial settings. CoRR, abs/1511.07528, 2015. URL http://arxiv.org/abs/1511.07528.
249
+
250
+ Nicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks. In Security and Privacy (SP), 2016 IEEE Symposium on, pp. 582–597. IEEE, 2016.
251
+
252
+ Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security, pp. 506–519. ACM, 2017a.
253
+
254
+ Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z. Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security, ASIA CCS ’17, pp. 506–519, New York, NY, USA, 2017b. ACM. ISBN 978-1-4503-4944-4. doi: 10.1145/3052973.3053009. URL http://doi.acm.org/10.1145/3052973.3053009.
255
+
256
+ Jonas Rauber, Wieland Brendel, and Matthias Bethge. Foolbox v0.8.0: A python toolbox to benchmark the robustness of machine learning models. CoRR, abs/1707.04131, 2017. URL http://arxiv.org/abs/1707.04131.
257
+
258
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014. URL http://arxiv.org/abs/1409.1556.
259
+
260
+ Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. CoRR, abs/1312.6199, 2013. URL http://arxiv.org/abs/1312.6199.
261
+
262
+ Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. CoRR, abs/1512.00567, 2015. URL http://arxiv.org/abs/1512.00567.
263
+
264
+ Florian Tramer, Alexey Kurakin, Nicolas Papernot, Dan Boneh, and Patrick McDaniel. Ensemble adversarial training: Attacks and defenses. CoRR, abs/1705.07204, May 2017. URL http: //arxiv.org/abs/1705.07204.
parse/train/SyZI0GWCZ/SyZI0GWCZ_content_list.json ADDED
@@ -0,0 +1,1403 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DECISION-BASED ADVERSARIAL ATTACKS: RELIABLE ATTACKS AGAINST BLACK-BOX MACHINE LEARNING MODELS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 173,
8
+ 99,
9
+ 825,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Wieland Brendel∗, Jonas Rauber∗ & Matthias Bethge Werner Reichardt Centre for Integrative Neuroscience, Eberhard Karls University Tubingen, Germany ¨ {wieland,jonas,matthias}@bethgelab.org ",
17
+ "bbox": [
18
+ 184,
19
+ 195,
20
+ 555,
21
+ 252
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 287,
32
+ 544,
33
+ 303
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Many machine learning algorithms are vulnerable to almost imperceptible perturbations of their inputs. So far it was unclear how much risk adversarial perturbations carry for the safety of real-world machine learning applications because most methods used to generate such perturbations rely either on detailed model information (gradient-based attacks) or on confidence scores such as class probabilities (score-based attacks), neither of which are available in most real-world scenarios. In many such cases one currently needs to retreat to transfer-based attacks which rely on cumbersome substitute models, need access to the training data and can be defended against. Here we emphasise the importance of attacks which solely rely on the final model decision. Such decision-based attacks are (1) applicable to real-world black-box models such as autonomous cars, (2) need less knowledge and are easier to apply than transfer-based attacks and (3) are more robust to simple defences than gradient- or score-based attacks. Previous attacks in this category were limited to simple models or simple datasets. Here we introduce the Boundary Attack, a decision-based attack that starts from a large adversarial perturbation and then seeks to reduce the perturbation while staying adversarial. The attack is conceptually simple, requires close to no hyperparameter tuning, does not rely on substitute models and is competitive with the best gradient-based attacks in standard computer vision tasks like ImageNet. We apply the attack on two black-box algorithms from Clarifai.com. The Boundary Attack in particular and the class of decision-based attacks in general open new avenues to study the robustness of machine learning models and raise new questions regarding the safety of deployed machine learning systems. An implementation of the attack is available as part of Foolbox (https://github.com/bethgelab/foolbox). ",
40
+ "bbox": [
41
+ 232,
42
+ 320,
43
+ 764,
44
+ 652
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "image",
50
+ "img_path": "images/29bebf96fcff48a12bde8b3b7384b02342998228447068b194f990d2e47a7930.jpg",
51
+ "image_caption": [
52
+ "Figure 1: (Left) Taxonomy of adversarial attack methods. The Boundary Attack is applicable to realworld ML algorithms because it only needs access to the final decision of a model (e.g. class-label or transcribed sentence) and does not rely on model information like the gradient or the confidence scores. (Right) Application to the Clarifai Brand Recognition Model. "
53
+ ],
54
+ "image_footnote": [],
55
+ "bbox": [
56
+ 173,
57
+ 675,
58
+ 823,
59
+ 789
60
+ ],
61
+ "page_idx": 0
62
+ },
63
+ {
64
+ "type": "text",
65
+ "text": "1 INTRODUCTION ",
66
+ "text_level": 1,
67
+ "bbox": [
68
+ 176,
69
+ 102,
70
+ 336,
71
+ 117
72
+ ],
73
+ "page_idx": 1
74
+ },
75
+ {
76
+ "type": "text",
77
+ "text": "Many high-performance machine learning algorithms used in computer vision, speech recognition and other areas are susceptible to minimal changes of their inputs (Szegedy et al., 2013). As a concrete example, a modern deep neural network like VGG-19 trained on object recognition might perfectly recognize the main object in an image as a tiger cat, but if the pixel values are only slightly perturbed in a specific way then the prediction of the very same network is drastically altered (e.g. to bus). These so-called adversarial perturbations are ubiquitous in many machine learning models and are often imperceptible to humans. Algorithms that seek to find such adversarial perturbations are generally denoted as adversarial attacks. ",
78
+ "bbox": [
79
+ 174,
80
+ 133,
81
+ 825,
82
+ 244
83
+ ],
84
+ "page_idx": 1
85
+ },
86
+ {
87
+ "type": "text",
88
+ "text": "Adversarial perturbations have drawn interest from two different sides. On the one side, they are worrisome for the integrity and security of deployed machine learning algorithms such as autonomous cars or face recognition systems. Minimal perturbations on street signs (e.g. turning a stop-sign into a $2 0 0 \\mathrm { k m / h }$ speed limit) or street lights (e.g. turning a red into a green light) can have severe consequences. On the other hand, adversarial perturbations provide an exciting spotlight on the gap between the sensory information processing in humans and machines and thus provide guidance towards more robust, human-like architectures. ",
89
+ "bbox": [
90
+ 174,
91
+ 252,
92
+ 825,
93
+ 349
94
+ ],
95
+ "page_idx": 1
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "Adversarial attacks can be roughly divided into three categories: gradient-based, score-based and transfer-based attacks (cp. Figure 1). Gradient-based and score-based attacks are often denoted as white-box and oracle attacks respectively, but we try to be as explicit as possible as to what information is being used in each category1. A severe problem affecting attacks in all of these categories is that they are surprisingly straight-forward to defend against: ",
100
+ "bbox": [
101
+ 176,
102
+ 356,
103
+ 825,
104
+ 426
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "• Gradient-based attacks. Most existing attacks rely on detailed model information including the gradient of the loss w.r.t. the input. Examples are the Fast-Gradient Sign Method (FGSM), the Basic Iterative Method (BIM) (Kurakin et al., 2016), DeepFool (MoosaviDezfooli et al., 2015), the Jacobian-based Saliency Map Attack (JSMA) (Papernot et al., 2015), Houdini (Cisse et al., 2017) and the Carlini & Wagner attack (Carlini & Wagner, 2016a). ",
111
+ "bbox": [
112
+ 218,
113
+ 438,
114
+ 823,
115
+ 521
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "Defence: A simple way to defend against gradient-based attacks is to mask the gradients, for example by adding non-differentiable elements either implicitly through means like defensive distillation (Papernot et al., 2016) or saturated non-linearities (Nayebi & Ganguli, 2017), or explicitly through means like non-differentiable classifiers (Lu et al., 2017). ",
122
+ "bbox": [
123
+ 228,
124
+ 525,
125
+ 823,
126
+ 580
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "• Score-based attacks. A few attacks are more agnostic and only rely on the predicted scores (e.g. class probabilities or logits) of the model. On a conceptual level these attacks use the predictions to numerically estimate the gradient. This includes black-box variants of JSMA (Narodytska & Kasiviswanathan, 2016) and of the Carlini & Wagner attack (Chen et al., 2017) as well as generator networks that predict adversarials (Hayes & Danezis, 2017). ",
133
+ "bbox": [
134
+ 220,
135
+ 585,
136
+ 825,
137
+ 655
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "Defence: It is straight-forward to severely impede the numerical gradient estimate by adding stochastic elements like dropout into the model. Also, many robust training methods introduce a sharp-edged plateau around samples (Tramer et al., 2017) which not only masks gradients themselves but also their numerical estimate. ",
144
+ "bbox": [
145
+ 227,
146
+ 659,
147
+ 823,
148
+ 713
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "• Transfer-based attacks. Transfer-based attacks do not rely on model information but need information about the training data. This data is used to train a fully observable substitute model from which adversarial perturbations can be synthesized (Papernot et al., 2017a). They rely on the empirical observation that adversarial examples often transfer between models. If adversarial examples are created on an ensemble of substitute models the success rate on the attacked model can reach up to $100 \\%$ in certain scenarios (Liu et al., 2016). ",
155
+ "bbox": [
156
+ 218,
157
+ 718,
158
+ 825,
159
+ 801
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "Defence: A recent defence method against transfer attacks (Tramer et al., 2017), which is based on robust training on a dataset augmented by adversarial examples from an ensemble of substitute models, has proven highly successful against basically all attacks in the 2017 Kaggle Competition on Adversarial Attacks2. ",
166
+ "bbox": [
167
+ 232,
168
+ 806,
169
+ 823,
170
+ 861
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "The fact that many attacks can be easily averted makes it often extremely difficult to assess whether a model is truly robust or whether the attacks are just too weak, which has lead to premature claims of robustness for DNNs (Carlini & Wagner, 2016b; Brendel & Bethge, 2017). ",
177
+ "bbox": [
178
+ 174,
179
+ 103,
180
+ 823,
181
+ 146
182
+ ],
183
+ "page_idx": 2
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "This motivates us to focus on a category of adversarial attacks that has so far received fairly little attention: ",
188
+ "bbox": [
189
+ 174,
190
+ 152,
191
+ 823,
192
+ 180
193
+ ],
194
+ "page_idx": 2
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "• Decision-based attacks. Direct attacks that solely rely on the final decision of the model (such as the top-1 class label or the transcribed sentence). ",
199
+ "bbox": [
200
+ 210,
201
+ 193,
202
+ 823,
203
+ 220
204
+ ],
205
+ "page_idx": 2
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "The delineation of this category is justified for the following reasons: First, compared to score-based attacks decision-based attacks are much more relevant in real-world machine learning applications where confidence scores or logits are rarely accessible. At the same time decision-based attacks have the potential to be much more robust to standard defences like gradient masking, intrinsic stochasticity or robust training than attacks from the other categories. Finally, compared to transferbased attacks they need much less information about the model (neither architecture nor training data) and are much simpler to apply. ",
210
+ "bbox": [
211
+ 174,
212
+ 233,
213
+ 825,
214
+ 330
215
+ ],
216
+ "page_idx": 2
217
+ },
218
+ {
219
+ "type": "text",
220
+ "text": "There currently exists no effective decision-based attack that scales to natural datasets such as ImageNet and is applicable to deep neural networks (DNNs). The most relevant prior work is a variant of transfer attacks in which the training set needed to learn the substitute model is replaced by a synthetic dataset (Papernot et al., 2017b). This synthetic dataset is generated by the adversary alongside the training of the substitute; the labels for each synthetic sample are drawn from the black-box model. While this approach works well on datasets for which the intra-class variability is low (such as MNIST) it has yet to be shown that it scales to more complex natural datasets such as CIFAR or ImageNet. Other decision-based attacks are specific to linear or convex-inducing classifiers (Dalvi et al., 2004; Lowd & Meek, 2005; Nelson et al., 2012) and are not applicable to other machine learning models. The work by (Biggio et al., 2013) basically stands between transfer attacks and decision-based attacks in that the substitute model is trained on a dataset for which the labels have been observed from the black-box model. This attack still requires knowledge about the data distribution on which the black-box models was trained on and so we don’t consider it a pure decision-based attack. Finally, some naive attacks such as a line-search along a random direction away from the original sample can qualify as decision-based attacks but they induce large and very visible perturbations that are orders of magnitude larger than typical gradient-based, score-based or transfer-based attacks. ",
221
+ "bbox": [
222
+ 174,
223
+ 338,
224
+ 825,
225
+ 573
226
+ ],
227
+ "page_idx": 2
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "Throughout the paper we focus on the threat scenario in which the adversary aims to change the decision of a model (either targeted or untargeted) for a particular input sample by inducing a minimal perturbation to the sample. The adversary can observe the final decision of the model for arbitrary inputs and it knows at least one perturbation, however large, for which the perturbed sample is adversarial. ",
232
+ "bbox": [
233
+ 176,
234
+ 580,
235
+ 825,
236
+ 650
237
+ ],
238
+ "page_idx": 2
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "The contributions of this paper are as follows: ",
243
+ "bbox": [
244
+ 176,
245
+ 656,
246
+ 473,
247
+ 671
248
+ ],
249
+ "page_idx": 2
250
+ },
251
+ {
252
+ "type": "text",
253
+ "text": "• We emphasise decision-based attacks as an important category of adversarial attacks that are highly relevant for real-world applications and important to gauge model robustness. We introduce the first effective decision-based attack that scales to complex machine learning models and natural datasets. The Boundary Attack is (1) conceptually surprisingly simple, (2) extremely flexible, (3) requires little hyperparameter tuning and (4) is competitive with the best gradient-based attacks in both targeted and untargeted computer vision scenarios. \nWe show that the Boundary Attack is able to break previously suggested defence mechanisms like defensive distillation. We demonstrate the practical applicability of the Boundary Attack on two black-box machine learning models for brand and celebrity recognition available on Clarifai.com. ",
254
+ "bbox": [
255
+ 215,
256
+ 684,
257
+ 825,
258
+ 853
259
+ ],
260
+ "page_idx": 2
261
+ },
262
+ {
263
+ "type": "text",
264
+ "text": "1.1 NOTATION ",
265
+ "text_level": 1,
266
+ "bbox": [
267
+ 174,
268
+ 869,
269
+ 287,
270
+ 883
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "Throughout the paper we use the following notation: $^ o$ refers to the original input (e.g. an image), $\\begin{array} { r } { y = \\bar { F } ( o ) } \\end{array}$ refers to the full prediction of the model $F ( \\cdot )$ (e.g. logits or probabilities), $y _ { m a x }$ is the ",
277
+ "bbox": [
278
+ 176,
279
+ 895,
280
+ 823,
281
+ 924
282
+ ],
283
+ "page_idx": 2
284
+ },
285
+ {
286
+ "type": "text",
287
+ "text": "predicted label (e.g. class-label). Similarly, $\\tilde { o }$ refers to the adversarially perturbed image, $\\tilde { o } ^ { k }$ refers to the perturbed image at the $k$ -th step of an attack algorithm. Vectors are denoted in bold. ",
288
+ "bbox": [
289
+ 171,
290
+ 103,
291
+ 823,
292
+ 132
293
+ ],
294
+ "page_idx": 3
295
+ },
296
+ {
297
+ "type": "text",
298
+ "text": "2 BOUNDARY ATTACK ",
299
+ "text_level": 1,
300
+ "bbox": [
301
+ 176,
302
+ 151,
303
+ 375,
304
+ 167
305
+ ],
306
+ "page_idx": 3
307
+ },
308
+ {
309
+ "type": "text",
310
+ "text": "The basic intuition behind the boundary attack algorithm is depicted in Figure 2: the algorithm is initialized from a point that is already adversarial and then performs a random walk along the boundary between the adversarial and the non-adversarial region such that (1) it stays in the adversarial region and (2) the distance towards the target image is reduced. In other words we perform rejection sampling with a suitable proposal distribution $\\mathcal { P }$ to find progressively smaller adversarial perturbations according to a given adversarial criterion $c ( . )$ . The basic logic of the algorithm is described in Algorithm 1, each individual building block is detailed in the next subsections. ",
311
+ "bbox": [
312
+ 173,
313
+ 183,
314
+ 825,
315
+ 280
316
+ ],
317
+ "page_idx": 3
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "Data: original image o, adversarial criterion $c ( . )$ , decision of model $d ( . )$ \nResult: adversarial example $\\tilde { o }$ such that the distance $d ( \\pmb { o } , \\tilde { \\pmb { o } } ) = \\lVert \\pmb { o } - \\tilde { \\pmb { o } } \\rVert _ { 2 } ^ { 2 }$ is minimized \ninitialization: $k = 0$ , $\\tilde { \\sigma } ^ { 0 } \\sim \\mathcal { U } ( 0 , 1 )$ s.t. $\\tilde { \\bullet } ^ { 0 }$ is adversarial; \nwhile $k <$ maximum number of steps do draw random perturbation from proposal distribution $\\eta _ { k } \\sim \\mathcal { P } ( \\tilde { o } ^ { k - 1 } )$ ; if $\\tilde { o } ^ { k - 1 } + \\eta _ { k }$ is adversarial then set $\\tilde { \\pmb { o } } ^ { k } = \\tilde { \\pmb { o } } ^ { k - 1 } + \\eta _ { k }$ ; else set $\\tilde { o } ^ { k } = \\tilde { o } ^ { k - 1 }$ ; end $k = k + 1$ \nend ",
322
+ "bbox": [
323
+ 174,
324
+ 295,
325
+ 745,
326
+ 469
327
+ ],
328
+ "page_idx": 3
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "Algorithm 1: Minimal version of the Boundary Attack. ",
333
+ "bbox": [
334
+ 315,
335
+ 469,
336
+ 681,
337
+ 484
338
+ ],
339
+ "page_idx": 3
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "2.1 INITIALISATION ",
344
+ "text_level": 1,
345
+ "bbox": [
346
+ 174,
347
+ 510,
348
+ 326,
349
+ 525
350
+ ],
351
+ "page_idx": 3
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "The Boundary Attack needs to be initialized with a sample that is already adversarial3. In an untargeted scenario we simply sample from a maximum entropy distribution given the valid domain of the input. In the computer vision applications below, where the input is constrained to a range of [0, 255] per pixel, we sample each pixel in the initial image $\\mathbf { \\tilde { o } ^ { 0 } }$ from a uniform distribution $\\mathcal { U } ( 0 , \\bar { 2 } 5 5 )$ . We reject samples that are not adversarial. In a targeted scenario we start from any sample that is classified by the model as being from the target class. ",
356
+ "bbox": [
357
+ 174,
358
+ 536,
359
+ 825,
360
+ 619
361
+ ],
362
+ "page_idx": 3
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "2.2 PROPOSAL DISTRIBUTION ",
367
+ "text_level": 1,
368
+ "bbox": [
369
+ 176,
370
+ 637,
371
+ 393,
372
+ 651
373
+ ],
374
+ "page_idx": 3
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "The efficiency of the algorithm crucially depends on the proposal distribution $\\mathcal { P }$ , i.e. which random directions are explored in each step of the algorithm. The optimal proposal distribution will generally depend on the domain and / or model to be attacked, but for all vision-related problems tested here a very simple proposal distribution worked surprisingly well. The basic idea behind this proposal distribution is as follows: in the $k$ -th step we want to draw perturbations $\\eta ^ { k }$ from a maximum entropy distribution subject to the following constraints: ",
379
+ "bbox": [
380
+ 173,
381
+ 662,
382
+ 825,
383
+ 746
384
+ ],
385
+ "page_idx": 3
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "1. The perturbed sample lies within the input domain, ",
390
+ "bbox": [
391
+ 214,
392
+ 756,
393
+ 568,
394
+ 771
395
+ ],
396
+ "page_idx": 3
397
+ },
398
+ {
399
+ "type": "equation",
400
+ "img_path": "images/348e347ad0a2c0dcd2d0a2cc0426e52dac30f4ac56252c0418e77d8bf07ee017.jpg",
401
+ "text": "$$\n\\tilde { o } _ { i } ^ { k - 1 } + \\eta _ { i } ^ { k } \\in [ 0 , 2 5 5 ] .\n$$",
402
+ "text_format": "latex",
403
+ "bbox": [
404
+ 454,
405
+ 775,
406
+ 602,
407
+ 795
408
+ ],
409
+ "page_idx": 3
410
+ },
411
+ {
412
+ "type": "text",
413
+ "text": "2. The perturbation has a relative size of $\\delta$ , ",
414
+ "bbox": [
415
+ 214,
416
+ 799,
417
+ 496,
418
+ 814
419
+ ],
420
+ "page_idx": 3
421
+ },
422
+ {
423
+ "type": "equation",
424
+ "img_path": "images/ae2a469cc5bde9d87c2658a147365fcf69f87e4f1a52170e248fe96dbb1fb7ec.jpg",
425
+ "text": "$$\n\\left\\| \\pmb { \\eta } ^ { k } \\right\\| _ { 2 } = \\delta \\cdot d ( \\mathbf { o } , \\tilde { \\mathbf { o } } ^ { \\mathbf { k } - \\mathbf { 1 } } ) .\n$$",
426
+ "text_format": "latex",
427
+ "bbox": [
428
+ 444,
429
+ 818,
430
+ 611,
431
+ 839
432
+ ],
433
+ "page_idx": 3
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "3. The perturbation reduces the distance of the perturbed image towards the original input by a relative amount $\\epsilon$ , ",
438
+ "bbox": [
439
+ 209,
440
+ 843,
441
+ 823,
442
+ 871
443
+ ],
444
+ "page_idx": 3
445
+ },
446
+ {
447
+ "type": "equation",
448
+ "img_path": "images/a97013d8f560c84fb463e8588ce8246d2dae234258e38c18d3774901971b67f4.jpg",
449
+ "text": "$$\nd ( { \\bf o } , \\tilde { \\bf o } ^ { { \\bf k } - 1 } ) - d ( { \\bf o } , \\tilde { \\bf o } ^ { { \\bf k } - 1 } + \\eta ^ { k } ) = \\epsilon \\cdot d ( { \\bf o } , \\tilde { \\bf o } ^ { { \\bf k } - 1 } ) .\n$$",
450
+ "text_format": "latex",
451
+ "bbox": [
452
+ 364,
453
+ 873,
454
+ 691,
455
+ 893
456
+ ],
457
+ "page_idx": 3
458
+ },
459
+ {
460
+ "type": "image",
461
+ "img_path": "images/c9a81d4b166c0bc0a33a374cca7d988a2eea34ac136d9734d6e84454672850a0.jpg",
462
+ "image_caption": [
463
+ "Figure 2: (Left) In essence the Boundary Attack performs rejection sampling along the boundary between adversarial and non-adversarial images. (Center) In each step we draw a new random direction by (#1) drawing from an iid Gaussian and projecting on a sphere, and by (#2) making a small move towards the target image. (Right) The two step-sizes (orthogonal and towards the original input) are dynamically adjusted according to the local geometry of the boundary. "
464
+ ],
465
+ "image_footnote": [],
466
+ "bbox": [
467
+ 171,
468
+ 102,
469
+ 826,
470
+ 297
471
+ ],
472
+ "page_idx": 4
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "In practice it is difficult to sample from this distribution, and so we resort to a simpler heuristic: first, we sample from an iid Gaussian distribution $\\eta _ { i } ^ { k } \\sim \\mathcal { N } ( 0 , 1 )$ and then rescale and clip the sample such that (1) and (2) hold. In a second step we project $\\eta ^ { k }$ onto a sphere around the original image $^ o$ such that $d ( o , \\tilde { o } ^ { k - 1 } + \\eta ^ { k } ) = d ( o , \\tilde { o } ^ { k - 1 } )$ and (1) hold. We denote this as the orthogonal perturbation and use it later for hyperparameter tuning. In the last step we make a small movement towards the original image such that (1) and (3) hold. For high-dimensional inputs and small $\\delta , \\epsilon$ the constraint (2) will also hold approximately. ",
477
+ "bbox": [
478
+ 174,
479
+ 415,
480
+ 825,
481
+ 515
482
+ ],
483
+ "page_idx": 4
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "2.3 ADVERSARIAL CRITERION ",
488
+ "text_level": 1,
489
+ "bbox": [
490
+ 176,
491
+ 534,
492
+ 398,
493
+ 546
494
+ ],
495
+ "page_idx": 4
496
+ },
497
+ {
498
+ "type": "text",
499
+ "text": "A typical criterion by which an input is classified as adversarial is misclassification, i.e. whether the model assigns the perturbed input to some class different from the class label of the original input. Another common choice is targeted misclassification for which the perturbed input has to be classified in a given target class. Other choices include top-k misclassification (the top-k classes predicted for the perturbed input do not contain the original class label) or thresholds on certain confidence scores. Outside of computer vision many other choices exist such as criteria on the worderror rates. In comparison to most other attacks, the Boundary Attack is extremely flexible with regards to the adversarial criterion. It basically allows any criterion (including non-differentiable ones) as long as for that criterion an initial adversarial can be found (which is trivial in most cases). ",
500
+ "bbox": [
501
+ 174,
502
+ 559,
503
+ 825,
504
+ 684
505
+ ],
506
+ "page_idx": 4
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "2.4 HYPERPARAMETER ADJUSTMENT ",
511
+ "text_level": 1,
512
+ "bbox": [
513
+ 178,
514
+ 703,
515
+ 444,
516
+ 717
517
+ ],
518
+ "page_idx": 4
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "The Boundary Attack has only two relevant parameters: the length of the total perturbation $\\delta$ and the length of the step $\\epsilon$ towards the original input (see Fig. 2). We adjust both parameters dynamically according to the local geometry of the boundary. The adjustment is inspired by Trust Region methods. In essence, we first test whether the orthogonal perturbation is still adversarial. If this is true, then we make a small movement towards the target and test again. The orthogonal step tests whether the step-size is small enough so that we can treat the decision boundary between the adversarial and the non-adversarial region as being approximately linear. If this is the case, then we expect around $50 \\%$ of the orthogonal perturbations to still be adversarial. If this ratio is much lower, we reduce the step-size $\\delta$ , if it is close to $50 \\%$ or higher we increase it. If the orthogonal perturbation is still adversarial we add a small step towards the original input. The maximum size of this step depends on the angle of the decision boundary in the local neighbourhood (see also Figure 2). If the success rate is too small we decrease $\\epsilon$ , if it is too large we increase it. Typically, the closer we get to the original image, the flatter the decision boundary becomes and the smaller $\\epsilon$ has to be to still make progress. The attack is converged whenever $\\epsilon$ converges to zero. ",
523
+ "bbox": [
524
+ 174,
525
+ 729,
526
+ 825,
527
+ 924
528
+ ],
529
+ "page_idx": 4
530
+ },
531
+ {
532
+ "type": "text",
533
+ "text": "3 COMPARISON WITH OTHER ATTACKS ",
534
+ "text_level": 1,
535
+ "bbox": [
536
+ 174,
537
+ 102,
538
+ 509,
539
+ 117
540
+ ],
541
+ "page_idx": 5
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "We quantify the performance of the Boundary Attack on three different standard datasets: MNIST (LeCun et al., 1998), CIFAR-10 (Krizhevsky & Hinton, 2009) and ImageNet-1000 (Deng et al., 2009). To make the comparison with previous results as easy and transparent as possible, we here use the same MNIST and CIFAR networks as Carlini & Wagner (2016a)4. In a nutshell, both the MNIST and CIFAR model feature nine layers with four convolutional layers, two max-pooling layers and two fully-connected layers. For all details, including training parameters, we refer the reader to (Carlini & Wagner, 2016a). On ImageNet we use the pretrained networks VGG-19 (Simonyan & Zisserman, 2014), ResNet-50 (He et al., 2015) and Inception-v3 (Szegedy et al., 2015) provided by Keras5. ",
546
+ "bbox": [
547
+ 174,
548
+ 133,
549
+ 825,
550
+ 258
551
+ ],
552
+ "page_idx": 5
553
+ },
554
+ {
555
+ "type": "text",
556
+ "text": "We evaluate the Boundary Attack in two settings: an (1) untargeted setting in which the adversarial perturbation flips the label of the original sample to any other label, and a (2) targeted setting in which the adversarial flips the label to a specific target class. In the untargeted setting we compare the Boundary Attack against three gradient-based attack algorithms: ",
557
+ "bbox": [
558
+ 176,
559
+ 265,
560
+ 825,
561
+ 321
562
+ ],
563
+ "page_idx": 5
564
+ },
565
+ {
566
+ "type": "text",
567
+ "text": "• Fast-Gradient Sign Method (FGSM). FGSM is among the simplest and most widely used untargeted adversarial attack methods. In a nutshell, FGSM computes the gradient ${ \\textbf { 0 } } =$ $\\nabla _ { o } \\mathcal { L } ( o , c )$ that maximizes the loss $\\mathcal { L }$ for the true class-label $c$ and then seeks the smallest $\\epsilon$ for which $\\mathbf { \\omega } _ { o + \\epsilon } . \\mathbf { \\omega } _ { g }$ is still adversarial. We use the implementation in Foolbox 0.10.0 (Rauber et al., 2017). DeepFool. DeepFool is a simple yet very effective attack. In each iteration it computes for each class $\\ell \\neq \\ell _ { 0 }$ the minimum distance $d ( \\ell , \\ell _ { 0 } )$ that it takes to reach the class boundary by approximating the model classifier with a linear classifier. It then makes a corresponding step in the direction of the class with the smallest distance. We use the implementation in Foolbox 0.10.0 (Rauber et al., 2017). Carlini & Wagner. The attack by Carlini & Wagner (Carlini & Wagner, 2016a) is essentially a refined iterative gradient attack that uses the Adam optimizer, multiple starting points, a tanh-nonlinearity to respect box-constraints and a max-based adversarial constraint function. We use the original implementation provided by the authors with all hyperparameters left at their default values4. ",
568
+ "bbox": [
569
+ 214,
570
+ 333,
571
+ 825,
572
+ 553
573
+ ],
574
+ "page_idx": 5
575
+ },
576
+ {
577
+ "type": "text",
578
+ "text": "To evaluate the success of each attack we use the following metric: let $\\pmb { \\eta } _ { A , M } ( \\pmb { o } _ { i } ) \\in \\mathbb { R } ^ { N }$ be the adversarial perturbation that the attack $A$ finds on model $M$ for the $i$ -th sample $\\mathbf { o } _ { i }$ . The total score $\\mathcal { S } _ { A }$ for $A$ is the median squared L2-distance across all samples, ",
579
+ "bbox": [
580
+ 176,
581
+ 564,
582
+ 821,
583
+ 607
584
+ ],
585
+ "page_idx": 5
586
+ },
587
+ {
588
+ "type": "equation",
589
+ "img_path": "images/854e1a35e347ec241ff85371dbff001b24d383cad711fcf1fd55f2565c035d42.jpg",
590
+ "text": "$$\n\\mathcal { S } _ { A } ( M ) = \\mathrm { m e d i a n } \\left( \\frac { 1 } { N } \\left. \\pmb { \\eta } _ { A , M } ( \\pmb { o } _ { i } ) \\right. _ { 2 } ^ { 2 } \\right) .\n$$",
591
+ "text_format": "latex",
592
+ "bbox": [
593
+ 362,
594
+ 613,
595
+ 635,
596
+ 648
597
+ ],
598
+ "page_idx": 5
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "For MNIST and CIFAR we evaluate 1000 randomly drawn samples from the validation set, for ImageNet we use 250 images. ",
603
+ "bbox": [
604
+ 173,
605
+ 652,
606
+ 823,
607
+ 681
608
+ ],
609
+ "page_idx": 5
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "3.1 UNTARGETED ATTACK ",
614
+ "text_level": 1,
615
+ "bbox": [
616
+ 176,
617
+ 698,
618
+ 370,
619
+ 712
620
+ ],
621
+ "page_idx": 5
622
+ },
623
+ {
624
+ "type": "text",
625
+ "text": "In the untargeted setting an adversarial is any image for which the predicted label is different from the label of the original image. We show adversarial samples synthesized by the Boundary Attack for each dataset in Figure 3. The score (4) for each attack and each dataset is as follows: ",
626
+ "bbox": [
627
+ 174,
628
+ 723,
629
+ 825,
630
+ 766
631
+ ],
632
+ "page_idx": 5
633
+ },
634
+ {
635
+ "type": "table",
636
+ "img_path": "images/15d735d7a955403f256629b55a9a4ff0addd16794b4cb1e58d110033ac569452.jpg",
637
+ "table_caption": [
638
+ "ImageNet "
639
+ ],
640
+ "table_footnote": [],
641
+ "table_body": "<table><tr><td></td><td>Attack Type</td><td>MNIST</td><td>CIFAR</td><td>VGG-19</td><td>ResNet-50</td><td>Inception-v3</td></tr><tr><td>FGSM</td><td>gradient-based</td><td>4.2e-02</td><td>2.5e-05</td><td>1.0e-06</td><td>1.0e-06</td><td>9.7e-07</td></tr><tr><td>DeepFool</td><td>gradient-based</td><td>4.3e-03</td><td>5.8e-06</td><td>1.9e-07</td><td>7.5e-08</td><td>5.2e-08</td></tr><tr><td>Carlini &amp; Wagner</td><td>gradient-based</td><td>2.2e-03</td><td>7.5e-06</td><td>5.7e-07</td><td>2.2e-07</td><td>7.6e-08</td></tr><tr><td>Boundary (ours)</td><td>decision-based</td><td>3.6e-03</td><td>5.6e-06</td><td>2.9e-07</td><td>1.0e-07</td><td>6.5e-08</td></tr></table>",
642
+ "bbox": [
643
+ 174,
644
+ 801,
645
+ 823,
646
+ 875
647
+ ],
648
+ "page_idx": 5
649
+ },
650
+ {
651
+ "type": "image",
652
+ "img_path": "images/eeb7e498a6f3dda6b80f2fdd07715a54125dc071e8a27bf1b9e1a9682e877d9e.jpg",
653
+ "image_caption": [
654
+ "Figure 3: Adversarial examples generated by the Boundary Attack for an MNIST, CIFAR and ImageNet network. For MNIST, the difference shows positive (blue) and negative (red) changes. For CIFAR and ImageNet, we take the norm across color channels. All differences have been scaled up for improved visibility. "
655
+ ],
656
+ "image_footnote": [],
657
+ "bbox": [
658
+ 171,
659
+ 98,
660
+ 820,
661
+ 258
662
+ ],
663
+ "page_idx": 6
664
+ },
665
+ {
666
+ "type": "image",
667
+ "img_path": "images/224fd7d916d70367db5cbec645c4cb5aa8c9276b5fe4430a32d62d409dd41f11.jpg",
668
+ "image_caption": [
669
+ "Figure 4: Example of an untargeted attack. Here the goal is to synthesize an image that is as close as possible (in L2-metric) to the original image while being misclassified (the original image is correctly classified). For each image we report the total number of model calls (predictions) until that point (above the image) and the mean squared error between the adversarial and the original (below the image). "
670
+ ],
671
+ "image_footnote": [],
672
+ "bbox": [
673
+ 176,
674
+ 353,
675
+ 820,
676
+ 515
677
+ ],
678
+ "page_idx": 6
679
+ },
680
+ {
681
+ "type": "text",
682
+ "text": "Despite its simplicity the Boundary Attack is competitive with gradient-based attacks in terms of the minimal adversarial perturbations and very stable against the choice of the initial point (Figure 5). This finding is quite remarkable given that gradient-based attacks can fully observe the model whereas the Boundary Attack is severely restricted to the final class prediction. To compensate for this lack of information the Boundary Attack needs many more iterations to converge. As a rough measure for the run-time of an attack independent of the quality of its implementation we tracked the number of forward passes (predictions) and backward passes (gradients) through the network requested by each of the attacks to find an adversarial for ResNet-50: averaged over 20 samples and under the same conditions as before, DeepFool needs about 7 forward and 37 backward passes, the Carlini & Wagner attack requires 16.000 forward and the same number of backward passes, and the Boundary Attack uses 1.200.000 forward passes but zero backward passes. While that (unsurprisingly) makes the Boundary Attack more expensive to run it is important to note that the Boundary Attacks needs much fewer iterations if one is only interested in imperceptible perturbations, see figures 4 and 6. ",
683
+ "bbox": [
684
+ 173,
685
+ 636,
686
+ 825,
687
+ 829
688
+ ],
689
+ "page_idx": 6
690
+ },
691
+ {
692
+ "type": "text",
693
+ "text": "3.2 TARGETED ATTACK ",
694
+ "text_level": 1,
695
+ "bbox": [
696
+ 176,
697
+ 853,
698
+ 348,
699
+ 867
700
+ ],
701
+ "page_idx": 6
702
+ },
703
+ {
704
+ "type": "text",
705
+ "text": "We can also apply the Boundary Attack in a targeted setting. In this case we initialize the attack from a sample of the target class that is correctly identified by the model. A sample trajectory from the starting point to the original sample is shown in Figure 7. After around $1 0 ^ { 4 }$ calls to the model the perturbed image is already clearly identified as a cat by humans and contains no trace of the Dalmatian dog, as which the image is still classified by the model. ",
706
+ "bbox": [
707
+ 176,
708
+ 882,
709
+ 823,
710
+ 924
711
+ ],
712
+ "page_idx": 6
713
+ },
714
+ {
715
+ "type": "image",
716
+ "img_path": "images/a182715ad2d667ed65ca2ebb2779a3bcb68058efa6b45bdb4d123f50179eb937.jpg",
717
+ "image_caption": [
718
+ "Figure 5: Adversarial perturbation (difference between the adversarial and the original image) for ten repetitions of the Boundary Attack on the same image. There are basically two different minima with similar distance (first row and second row) to which the Boundary Attack converges. "
719
+ ],
720
+ "image_footnote": [],
721
+ "bbox": [
722
+ 178,
723
+ 103,
724
+ 552,
725
+ 241
726
+ ],
727
+ "page_idx": 7
728
+ },
729
+ {
730
+ "type": "image",
731
+ "img_path": "images/c6a777ffa8fb8799bffa6b639846bc5e2222923e9088233bf6dffdd0db0a6b1f.jpg",
732
+ "image_caption": [
733
+ "Figure 6: Distance between adversarial and original image over number of model calls for 12 different images (until convergence). Very few steps are already sufficient to get almost imperceptible perturbations. "
734
+ ],
735
+ "image_footnote": [],
736
+ "bbox": [
737
+ 575,
738
+ 103,
739
+ 820,
740
+ 239
741
+ ],
742
+ "page_idx": 7
743
+ },
744
+ {
745
+ "type": "image",
746
+ "img_path": "images/3762b35219c7d357b48af44610d0275cae626e52f01443af83b519d540c06334.jpg",
747
+ "image_caption": [
748
+ "Figure 7: Example of a targeted attack. Here the goal is to synthesize an image that is as close as possible (in L2-metric) to a given image of a tiger cat (2nd row, right) but is classified as a dalmatian dog. For each image we report the total number of model calls (predictions) until that point. "
749
+ ],
750
+ "image_footnote": [],
751
+ "bbox": [
752
+ 173,
753
+ 363,
754
+ 825,
755
+ 501
756
+ ],
757
+ "page_idx": 7
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "",
762
+ "bbox": [
763
+ 173,
764
+ 601,
765
+ 823,
766
+ 628
767
+ ],
768
+ "page_idx": 7
769
+ },
770
+ {
771
+ "type": "text",
772
+ "text": "In order to compare the Boundary Attack to Carlini & Wagner we define the target target label for each sample in the following way: on MNIST and CIFAR a sample with label $\\ell$ gets the target label $\\ell + 1$ modulo 10. On ImageNet we draw the target label randomly but consistent across attacks. The results are as follows: ",
773
+ "bbox": [
774
+ 173,
775
+ 635,
776
+ 825,
777
+ 690
778
+ ],
779
+ "page_idx": 7
780
+ },
781
+ {
782
+ "type": "table",
783
+ "img_path": "images/16ddf00a6c26f914b691bb7924461fc8257200c15f41def47136baae93b77590.jpg",
784
+ "table_caption": [],
785
+ "table_footnote": [],
786
+ "table_body": "<table><tr><td></td><td>Attack Type</td><td>MNIST</td><td>CIFAR</td><td>VGG-19</td></tr><tr><td>Carlini &amp;Wagner</td><td>gradient-based</td><td>4.8e-03</td><td>3.0e-05</td><td>5.7e-06</td></tr><tr><td>Boundary (ours)</td><td>decision-based</td><td>6.5e-03</td><td>3.3e-05</td><td>9.9e-06</td></tr></table>",
787
+ "bbox": [
788
+ 174,
789
+ 710,
790
+ 825,
791
+ 757
792
+ ],
793
+ "page_idx": 7
794
+ },
795
+ {
796
+ "type": "text",
797
+ "text": "4 THE IMPORTANCE OF DECISION-BASED ATTACKS TO EVALUATE MODEL ROBUSTNESS ",
798
+ "text_level": 1,
799
+ "bbox": [
800
+ 176,
801
+ 797,
802
+ 730,
803
+ 830
804
+ ],
805
+ "page_idx": 7
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "As discussed in the introduction, many attack methods are straight-forward to defend against. One common nuisance is gradient masking in which a model is implicitely or explicitely modified to yield masked gradients. An interesting example is the saturated sigmoid network (Nayebi & Ganguli, 2017) in which an additional regularization term leads the sigmoid activations to saturate, which in turn leads to vanishing gradients and failing gradient-based attacks (Brendel & Bethge, 2017). ",
810
+ "bbox": [
811
+ 174,
812
+ 853,
813
+ 825,
814
+ 924
815
+ ],
816
+ "page_idx": 7
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "Another example is defensive distillation (Papernot et al., 2016). In a nutshell defensive distillation uses a temperature-augmented softmax of the type ",
821
+ "bbox": [
822
+ 173,
823
+ 103,
824
+ 823,
825
+ 132
826
+ ],
827
+ "page_idx": 8
828
+ },
829
+ {
830
+ "type": "equation",
831
+ "img_path": "images/20f7695db05025ce644576bdf1b72cc315a800daaa9008e364438faef6a93350.jpg",
832
+ "text": "$$\ns o f t m a x ( x , T ) _ { i } = \\frac { e ^ { x _ { i } / T } } { \\sum _ { j } e ^ { x _ { j } / T } }\n$$",
833
+ "text_format": "latex",
834
+ "bbox": [
835
+ 397,
836
+ 138,
837
+ 601,
838
+ 178
839
+ ],
840
+ "page_idx": 8
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "and works as follows: ",
845
+ "bbox": [
846
+ 174,
847
+ 183,
848
+ 318,
849
+ 198
850
+ ],
851
+ "page_idx": 8
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "1. Train a teacher network as usual but with temperature $T$ . \n2. Train a distilled network—with the same architecture as the teacher—on the softmax outputs of the teacher. Both the distilled network and the teacher use temperature $T$ . \n3. Evaluate the distilled network at temperature $T = 1$ at test time. ",
856
+ "bbox": [
857
+ 207,
858
+ 209,
859
+ 823,
860
+ 276
861
+ ],
862
+ "page_idx": 8
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "Initial results were promising: the success rate of gradient-based attacks dropped from close to $100 \\%$ down to $0 . 5 \\%$ . It later became clear that the distilled networks only appeared to be robust because they masked their gradients of the cross-entropy loss (Carlini & Wagner, 2016b): as the temperature of the softmax is decreased at test time, the input to the softmax increases by a factor of $T$ and so the probabilities saturate at 0 and 1. This leads to vanishing gradients of the cross-entropy loss w.r.t. to the input on which gradient-based attacks rely. If the same attacks are instead applied to the logits the success rate recovers to almost $1 0 0 \\%$ (Carlini & Wagner, 2016a). ",
867
+ "bbox": [
868
+ 174,
869
+ 287,
870
+ 825,
871
+ 385
872
+ ],
873
+ "page_idx": 8
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "Decision-based attacks are immune to such defences. To demonstrate this we here apply the Boundary Attack to two distilled networks trained on MNIST and CIFAR. The architecture is the same as in section 3 and we use the implementation and training protocol by (Carlini & Wagner, 2016a) which is available at https://github.com/carlini/nn_robust_attacks. Most importantly, we do not operate on the logits but provide only the class label with maximum probability to the Boundary Attack. The results are as follows: ",
878
+ "bbox": [
879
+ 173,
880
+ 392,
881
+ 825,
882
+ 476
883
+ ],
884
+ "page_idx": 8
885
+ },
886
+ {
887
+ "type": "table",
888
+ "img_path": "images/e0f2b5468a317f65b2a4abd815a0fba69c9adf644595628da3a41e5a20a09e68.jpg",
889
+ "table_caption": [],
890
+ "table_footnote": [],
891
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td rowspan=\"2\">Attack Type</td><td colspan=\"2\">MNIST</td><td colspan=\"2\">CIFAR</td></tr><tr><td>standard</td><td>distilled</td><td>standard</td><td>distilled</td></tr><tr><td>FGSM</td><td>gradient-based</td><td>4.2e-02</td><td>fails</td><td>2.5e-05</td><td>fails</td></tr><tr><td>Boundary (ours)</td><td>decision-based</td><td>3.6e-03</td><td>4.2e-03</td><td>5.6e-06</td><td>1.3e-05</td></tr></table>",
892
+ "bbox": [
893
+ 169,
894
+ 497,
895
+ 828,
896
+ 558
897
+ ],
898
+ "page_idx": 8
899
+ },
900
+ {
901
+ "type": "text",
902
+ "text": "The size of the adversarial perturbations that the Boundary Attack finds is fairly similar for the distilled and the undistilled network. This demonstrates that defensive distillation does not significantly increase the robustness of network models and that the Boundary Attack is able to break defences based on gradient masking. ",
903
+ "bbox": [
904
+ 173,
905
+ 574,
906
+ 825,
907
+ 630
908
+ ],
909
+ "page_idx": 8
910
+ },
911
+ {
912
+ "type": "text",
913
+ "text": "5 ATTACKS ON REAL-WORLD APPLICATIONS ",
914
+ "text_level": 1,
915
+ "bbox": [
916
+ 174,
917
+ 651,
918
+ 558,
919
+ 666
920
+ ],
921
+ "page_idx": 8
922
+ },
923
+ {
924
+ "type": "text",
925
+ "text": "In many real-world machine learning applications the attacker has no access to the architecture or the training data but can only observe the final decision. This is true for security systems (e.g. face identification), autonomous cars or speech recognition systems like Alexa or Cortana. ",
926
+ "bbox": [
927
+ 174,
928
+ 681,
929
+ 825,
930
+ 723
931
+ ],
932
+ "page_idx": 8
933
+ },
934
+ {
935
+ "type": "text",
936
+ "text": "In this section we apply the Boundary Attack to two models of the cloud-based computer vision API by Clarifai6. The first model identifies brand names in natural images and recognizes over 500 brands. The second model identifies celebrities and can recognize over 10.000 individuals. Multiple identifications per image are possible but we only consider the one with the highest confidence score. It is important to note that Clarifai does provide confidence scores for each identified class (but not for all possible classes). However, in our experiments we do not provide this confidence score to the Boundary Attack. Instead, our attack only receives the name of the identified object (e.g. Pepsi or Verizon in the brand-name detection task). ",
937
+ "bbox": [
938
+ 174,
939
+ 729,
940
+ 825,
941
+ 842
942
+ ],
943
+ "page_idx": 8
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "We selected several samples of natural images with clearly visible brand names or portraits of celebrities. We then make a square crop and resize the image to $1 0 0 \\times 1 0 0$ pixels. For each sample we make sure that the brand or the celebrity is clearly visible and that the corresponding Clarifai model correctly identifies the content. The adversarial criterion was misclassification, i.e. Clarifai should report a different brand / celebrity or None on the adversarially perturbed sample. ",
948
+ "bbox": [
949
+ 174,
950
+ 849,
951
+ 825,
952
+ 890
953
+ ],
954
+ "page_idx": 8
955
+ },
956
+ {
957
+ "type": "image",
958
+ "img_path": "images/e7839d3f976c5105c19b1e4c52f53e928122f89340e84a1444ce3924a0bbd7dd.jpg",
959
+ "image_caption": [
960
+ "Figure 8: Adversarial examples generated by the Boundary Attack for two black-box models by Clarifai for brand-detection (left side) and celebrity detection (right side). "
961
+ ],
962
+ "image_footnote": [],
963
+ "bbox": [
964
+ 173,
965
+ 99,
966
+ 818,
967
+ 222
968
+ ],
969
+ "page_idx": 9
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "",
974
+ "bbox": [
975
+ 174,
976
+ 311,
977
+ 823,
978
+ 340
979
+ ],
980
+ "page_idx": 9
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "We show five samples for each model alongside the adversarial image generated by the Boundary Attack in Figure 8. We generally observed that the Clarifai models were more difficult to attack than ImageNet models like VGG-19: while for some samples we did succeed to find adversarial perturbations of the same order $( 1 e ^ { - 7 } )$ as in section 3 (e.g. for Shell or $S A P$ ), most adversarial perturbations were on the order of $1 e ^ { - 2 }$ to $1 e ^ { - 3 }$ resulting in some slightly noticeable noise in some adversarial examples. Nonetheless, for most samples the original and the adversarial image are close to being perceptually indistinguishable. ",
985
+ "bbox": [
986
+ 174,
987
+ 347,
988
+ 825,
989
+ 445
990
+ ],
991
+ "page_idx": 9
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "6 DISCUSSION & OUTLOOK ",
996
+ "text_level": 1,
997
+ "bbox": [
998
+ 176,
999
+ 483,
1000
+ 419,
1001
+ 500
1002
+ ],
1003
+ "page_idx": 9
1004
+ },
1005
+ {
1006
+ "type": "text",
1007
+ "text": "In this paper we emphasised the importance of a mostly neglected category of adversarial attacks— decision-based attacks—that can find adversarial examples in models for which only the final decision can be observed. We argue that this category is important for three reasons: first, attacks in this class are highly relevant for many real-world deployed machine learning systems like autonomous cars for which the internal decision making process is unobservable. Second, attacks in this class do not rely on substitute models that are trained on similar data as the model to be attacked, thus making real-world applications much more straight-forward. Third, attacks in this class have the potential to be much more robust against common deceptions like gradient masking, intrinsic stochasticity or robust training. ",
1008
+ "bbox": [
1009
+ 174,
1010
+ 526,
1011
+ 825,
1012
+ 652
1013
+ ],
1014
+ "page_idx": 9
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "We also introduced the first effective attack in this category that is applicable to general machine learning algorithms and complex natural datasets: the Boundary Attack. At its core the Boundary Attack follows the decision boundary between adversarial and non-adversarial samples using a very simple rejection sampling algorithm in conjunction with a simple proposal distribution and a dynamic step-size adjustment inspired by Trust Region methods. Its basic operating principle— starting from a large perturbation and successively reducing it—inverts the logic of essentially all previous adversarial attacks. Besides being surprisingly simple, the Boundary attack is also extremely flexible in terms of the possible adversarial criteria and performs on par with gradient-based attacks on standard computer vision tasks in terms of the size of minimal perturbations. ",
1019
+ "bbox": [
1020
+ 174,
1021
+ 659,
1022
+ 825,
1023
+ 784
1024
+ ],
1025
+ "page_idx": 9
1026
+ },
1027
+ {
1028
+ "type": "text",
1029
+ "text": "The mere fact that a simple constrained iid Gaussian distribution can serve as an effective proposal perturbation for each step of the Boundary attack is surprising and sheds light on the brittle information processing of current computer vision architectures. Nonetheless, there are many ways in which the Boundary attack can be made even more effective, in particular by learning a suitable proposal distribution for a given model or by conditioning the proposal distribution on the recent history of successful and unsuccessful proposals. ",
1030
+ "bbox": [
1031
+ 174,
1032
+ 791,
1033
+ 825,
1034
+ 875
1035
+ ],
1036
+ "page_idx": 9
1037
+ },
1038
+ {
1039
+ "type": "text",
1040
+ "text": "Decision-based attacks will be highly relevant to assess the robustness of machine learning models and to highlight the security risks of closed-source machine learning systems like autonomous cars. We hope that the Boundary attack will inspire future work in this area. ",
1041
+ "bbox": [
1042
+ 176,
1043
+ 882,
1044
+ 823,
1045
+ 924
1046
+ ],
1047
+ "page_idx": 9
1048
+ },
1049
+ {
1050
+ "type": "text",
1051
+ "text": "ACKNOWLEDGMENTS ",
1052
+ "text_level": 1,
1053
+ "bbox": [
1054
+ 176,
1055
+ 104,
1056
+ 326,
1057
+ 117
1058
+ ],
1059
+ "page_idx": 10
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "This work was supported by the Carl Zeiss Foundation (0563-2.8/558/3), the Bosch Forschungsstiftung (Stifterverband, T113/30057/17), the International Max Planck Research School for Intelligent Systems (IMPRS-IS), the German Research Foundation (DFG, CRC 1233, Robust Vision: Inference Principles and Neural Mechanisms) and the Intelligence Advanced Research Projects Activity (IARPA) via Department of Interior/Interior Business Center (DoI/IBC) contract number D16PC00003. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright annotation thereon. Disclaimer: The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of IARPA, DoI/IBC, or the U.S. Government. ",
1064
+ "bbox": [
1065
+ 174,
1066
+ 127,
1067
+ 825,
1068
+ 266
1069
+ ],
1070
+ "page_idx": 10
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "REFERENCES ",
1075
+ "text_level": 1,
1076
+ "bbox": [
1077
+ 174,
1078
+ 287,
1079
+ 285,
1080
+ 303
1081
+ ],
1082
+ "page_idx": 10
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "Battista Biggio, Igino Corona, Davide Maiorca, Blaine Nelson, Nedim Srndi ˇ c, Pavel Laskov, Gior- ´ gio Giacinto, and Fabio Roli. Evasion attacks against machine learning at test time. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 387– 402. Springer, 2013. ",
1087
+ "bbox": [
1088
+ 174,
1089
+ 310,
1090
+ 826,
1091
+ 367
1092
+ ],
1093
+ "page_idx": 10
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "Wieland Brendel and Matthias Bethge. Comment on “biologically inspired protection of deep networks from adversarial attacks”. CoRR, abs/1704.01547, 2017. URL http://arxiv.org/ abs/1704.01547. ",
1098
+ "bbox": [
1099
+ 173,
1100
+ 375,
1101
+ 821,
1102
+ 417
1103
+ ],
1104
+ "page_idx": 10
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "Nicholas Carlini and David A. Wagner. Towards evaluating the robustness of neural networks. CoRR, abs/1608.04644, 2016a. URL http://arxiv.org/abs/1608.04644. ",
1109
+ "bbox": [
1110
+ 171,
1111
+ 426,
1112
+ 823,
1113
+ 455
1114
+ ],
1115
+ "page_idx": 10
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "Nicholas Carlini and David A. Wagner. Defensive distillation is not robust to adversarial examples. CoRR, abs/1607.04311, 2016b. URL http://arxiv.org/abs/1607.04311. ",
1120
+ "bbox": [
1121
+ 173,
1122
+ 463,
1123
+ 825,
1124
+ 493
1125
+ ],
1126
+ "page_idx": 10
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "Pin-Yu Chen, Huan Zhang, Yash Sharma, Jinfeng Yi, and Cho-Jui Hsieh. Zoo: Zeroth order optimization based black-box attacks to deep neural networks without training substitute models. CoRR, abs/1708.03999, 2017. URL http://arxiv.org/abs/1708.03999. ",
1131
+ "bbox": [
1132
+ 173,
1133
+ 501,
1134
+ 821,
1135
+ 544
1136
+ ],
1137
+ "page_idx": 10
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "Moustapha Cisse, Yossi Adi, Natalia Neverova, and Joseph Keshet. Houdini: Fooling deep structured prediction models. CoRR, abs/1707.05373, 2017. URL http://arxiv.org/abs/ 1707.05373. ",
1142
+ "bbox": [
1143
+ 174,
1144
+ 551,
1145
+ 821,
1146
+ 594
1147
+ ],
1148
+ "page_idx": 10
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "Nilesh Dalvi, Pedro Domingos, Mausam, Sumit Sanghai, and Deepak Verma. Adversarial classification. In Proceedings of the Tenth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’04, pp. 99–108, New York, NY, USA, 2004. ACM. ISBN 1-58113-888-1. doi: 10.1145/1014052.1014066. URL http://doi.acm.org/10.1145/ 1014052.1014066. ",
1153
+ "bbox": [
1154
+ 171,
1155
+ 603,
1156
+ 825,
1157
+ 672
1158
+ ],
1159
+ "page_idx": 10
1160
+ },
1161
+ {
1162
+ "type": "text",
1163
+ "text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pp. 248–255. IEEE, 2009. ",
1164
+ "bbox": [
1165
+ 173,
1166
+ 681,
1167
+ 821,
1168
+ 724
1169
+ ],
1170
+ "page_idx": 10
1171
+ },
1172
+ {
1173
+ "type": "text",
1174
+ "text": "Jamie Hayes and George Danezis. Machine learning as an adversarial service: Learning blackbox adversarial examples. CoRR, abs/1708.05207, 2017. URL http://arxiv.org/abs/ 1708.05207. ",
1175
+ "bbox": [
1176
+ 173,
1177
+ 732,
1178
+ 823,
1179
+ 775
1180
+ ],
1181
+ "page_idx": 10
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CoRR, abs/1512.03385, 2015. URL http://arxiv.org/abs/1512.03385. ",
1186
+ "bbox": [
1187
+ 173,
1188
+ 784,
1189
+ 821,
1190
+ 813
1191
+ ],
1192
+ "page_idx": 10
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009. ",
1197
+ "bbox": [
1198
+ 173,
1199
+ 820,
1200
+ 820,
1201
+ 849
1202
+ ],
1203
+ "page_idx": 10
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "Alexey Kurakin, Ian J. Goodfellow, and Samy Bengio. Adversarial examples in the physical world. CoRR, abs/1607.02533, 2016. URL http://arxiv.org/abs/1607.02533. ",
1208
+ "bbox": [
1209
+ 174,
1210
+ 858,
1211
+ 823,
1212
+ 887
1213
+ ],
1214
+ "page_idx": 10
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "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. ",
1219
+ "bbox": [
1220
+ 174,
1221
+ 895,
1222
+ 823,
1223
+ 924
1224
+ ],
1225
+ "page_idx": 10
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "Yanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial examples and black-box attacks. CoRR, abs/1611.02770, 2016. URL http://arxiv.org/abs/ 1611.02770. ",
1230
+ "bbox": [
1231
+ 176,
1232
+ 103,
1233
+ 823,
1234
+ 146
1235
+ ],
1236
+ "page_idx": 11
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "Daniel Lowd and Christopher Meek. Adversarial learning. In Proceedings of the Eleventh ACM SIGKDD International Conference on Knowledge Discovery in Data Mining, KDD ’05, pp. 641– 647, New York, NY, USA, 2005. ACM. ISBN 1-59593-135-X. doi: 10.1145/1081870.1081950. URL http://doi.acm.org/10.1145/1081870.1081950. ",
1241
+ "bbox": [
1242
+ 179,
1243
+ 154,
1244
+ 821,
1245
+ 209
1246
+ ],
1247
+ "page_idx": 11
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "text": "Jiajun Lu, Theerasit Issaranon, and David A. Forsyth. Safetynet: Detecting and rejecting adversarial examples robustly. CoRR, abs/1704.00103, 2017. URL http://arxiv.org/abs/1704. 00103. ",
1252
+ "bbox": [
1253
+ 173,
1254
+ 217,
1255
+ 823,
1256
+ 258
1257
+ ],
1258
+ "page_idx": 11
1259
+ },
1260
+ {
1261
+ "type": "text",
1262
+ "text": "Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: a simple and accurate method to fool deep neural networks. CoRR, abs/1511.04599, 2015. URL http: //arxiv.org/abs/1511.04599. ",
1263
+ "bbox": [
1264
+ 174,
1265
+ 267,
1266
+ 823,
1267
+ 310
1268
+ ],
1269
+ "page_idx": 11
1270
+ },
1271
+ {
1272
+ "type": "text",
1273
+ "text": "Nina Narodytska and Shiva Prasad Kasiviswanathan. Simple black-box adversarial perturbations for deep networks. CoRR, abs/1612.06299, 2016. URL http://arxiv.org/abs/1612. 06299. ",
1274
+ "bbox": [
1275
+ 173,
1276
+ 318,
1277
+ 823,
1278
+ 359
1279
+ ],
1280
+ "page_idx": 11
1281
+ },
1282
+ {
1283
+ "type": "text",
1284
+ "text": "Aran Nayebi and Surya Ganguli. Biologically inspired protection of deep networks from adversarial attacks. CoRR, abs/1703.09202, 2017. URL http://arxiv.org/abs/1703.09202. ",
1285
+ "bbox": [
1286
+ 168,
1287
+ 367,
1288
+ 825,
1289
+ 396
1290
+ ],
1291
+ "page_idx": 11
1292
+ },
1293
+ {
1294
+ "type": "text",
1295
+ "text": "Blaine Nelson, Benjamin I. P. Rubinstein, Ling Huang, Anthony D. Joseph, Steven J. Lee, Satish Rao, and J. D. Tygar. Query strategies for evading convex-inducing classifiers. J. Mach. Learn. Res., 13:1293–1332, May 2012. ISSN 1532-4435. URL http://dl.acm.org/citation. cfm?id=2188385.2343688. ",
1296
+ "bbox": [
1297
+ 173,
1298
+ 404,
1299
+ 823,
1300
+ 460
1301
+ ],
1302
+ "page_idx": 11
1303
+ },
1304
+ {
1305
+ "type": "text",
1306
+ "text": "Nicolas Papernot, Patrick D. McDaniel, Somesh Jha, Matt Fredrikson, Z. Berkay Celik, and Ananthram Swami. The limitations of deep learning in adversarial settings. CoRR, abs/1511.07528, 2015. URL http://arxiv.org/abs/1511.07528. ",
1307
+ "bbox": [
1308
+ 174,
1309
+ 467,
1310
+ 823,
1311
+ 511
1312
+ ],
1313
+ "page_idx": 11
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "text": "Nicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks. In Security and Privacy (SP), 2016 IEEE Symposium on, pp. 582–597. IEEE, 2016. ",
1318
+ "bbox": [
1319
+ 173,
1320
+ 517,
1321
+ 823,
1322
+ 560
1323
+ ],
1324
+ "page_idx": 11
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security, pp. 506–519. ACM, 2017a. ",
1329
+ "bbox": [
1330
+ 173,
1331
+ 566,
1332
+ 825,
1333
+ 611
1334
+ ],
1335
+ "page_idx": 11
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z. Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security, ASIA CCS ’17, pp. 506–519, New York, NY, USA, 2017b. ACM. ISBN 978-1-4503-4944-4. doi: 10.1145/3052973.3053009. URL http://doi.acm.org/10.1145/3052973.3053009. ",
1340
+ "bbox": [
1341
+ 173,
1342
+ 617,
1343
+ 825,
1344
+ 688
1345
+ ],
1346
+ "page_idx": 11
1347
+ },
1348
+ {
1349
+ "type": "text",
1350
+ "text": "Jonas Rauber, Wieland Brendel, and Matthias Bethge. Foolbox v0.8.0: A python toolbox to benchmark the robustness of machine learning models. CoRR, abs/1707.04131, 2017. URL http://arxiv.org/abs/1707.04131. ",
1351
+ "bbox": [
1352
+ 173,
1353
+ 695,
1354
+ 821,
1355
+ 738
1356
+ ],
1357
+ "page_idx": 11
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014. URL http://arxiv.org/abs/1409.1556. ",
1362
+ "bbox": [
1363
+ 173,
1364
+ 744,
1365
+ 821,
1366
+ 773
1367
+ ],
1368
+ "page_idx": 11
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. CoRR, abs/1312.6199, 2013. URL http://arxiv.org/abs/1312.6199. ",
1373
+ "bbox": [
1374
+ 174,
1375
+ 781,
1376
+ 823,
1377
+ 824
1378
+ ],
1379
+ "page_idx": 11
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. CoRR, abs/1512.00567, 2015. URL http://arxiv.org/abs/1512.00567. ",
1384
+ "bbox": [
1385
+ 174,
1386
+ 830,
1387
+ 821,
1388
+ 875
1389
+ ],
1390
+ "page_idx": 11
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "text": "Florian Tramer, Alexey Kurakin, Nicolas Papernot, Dan Boneh, and Patrick McDaniel. Ensemble adversarial training: Attacks and defenses. CoRR, abs/1705.07204, May 2017. URL http: //arxiv.org/abs/1705.07204. ",
1395
+ "bbox": [
1396
+ 174,
1397
+ 882,
1398
+ 825,
1399
+ 924
1400
+ ],
1401
+ "page_idx": 11
1402
+ }
1403
+ ]
parse/train/SyZI0GWCZ/SyZI0GWCZ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SyZI0GWCZ/SyZI0GWCZ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ki4eJ1fSJNq/ki4eJ1fSJNq.md ADDED
@@ -0,0 +1,457 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Fitting large mixture models using stochastic component selection
2
+
3
+ Anonymous Author(s)
4
+ Affiliation
5
+ Address
6
+ email
7
+
8
+ # Abstract
9
+
10
+ 1 Traditional methods for unsupervised learning of finite mixture models require to
11
+ 2 evaluate the likelihood of all components of the mixture. This becomes computa
12
+ 3 tionally prohibitive when the number of components is large, as it is, for example,
13
+ 4 in the sum-product (transform) networks. As a remedy, we propose an approach
14
+ 5 combining the expectation maximization and the Metropolis-Hastings algorithm
15
+ 6 to evaluate only a small number of, stochastically sampled, components, thus
16
+ 7 substantially reducing the computational cost. We put emphasis on generality of
17
+ 8 our method, equipping it with the ability to train both shallow and deep mixture
18
+ 9 models which involve complex, and possibly nonlinear, transformations. The
19
+ 10 performance of our method is illustrated in a variety of synthetic and real-data
20
+ 11 contexts, considering deep models, such as mixtures of normalizing flows and
21
+ 12 sum-product (transform) networks.
22
+
23
+ # 13 1 Introduction
24
+
25
+ 14 Finite mixture models [40] constitute a fundamental class of density estimation models. They
26
+ 15 have been successfully applied in diverse fields, including bioinformatics [49], econometrics [10],
27
+ 16 engineering [33], etc. A mixture model relies on a weighted sum of probability distributions—here
28
+ 17 referred to as components—to cluster $N$ unlabelled datapoints into $K$ categories. The traditional
29
+ 18 maximum likelihood techniques train the model by optimizing either (i) the marginal likelihood via
30
+ 19 gradient-descent [50] or (ii) the evidence lower bound via variational methods [4], including the
31
+ 20 expectation-maximization (EM) [13]. The dependence structure among approximate, variational,
32
+ 21 distributions then ranges from the fully independent (mean-field) [25] to fully dependent [30]. The
33
+ 22 sampling-based techniques target the posterior distribution using sequential Monte Carlo [9] or
34
+ 23 Markov chain Monte Carlo [52], e.g. via the Gibbs [34] or Metropolis-Hastings sampling [38]. The
35
+ 24 computational cost of these methods typically scales with $\mathcal { O } ( T K N D )$ operations, where $N$ and $K$
36
+ 25 are defined above, $T$ is the number of iterations and $D$ is the dimension of data.
37
+ 26 Various methods to decrease the computational cost via any factor in $\mathcal { O } ( T K N D )$ have been proposed.
38
+ 27 $T$ can be lowered by proper initialization, e.g. the optimal seeding [5]; an efficient step-size schedule,
39
+ 28 e.g. the line-search [58]; or increased estimation precision, e.g. the variance reduction [8]. $N$ is often
40
+ 29 reduced using the coreset methods, which approximate the original dataset by a weighted dataset
41
+ 30 such that the exact and approximate marginal likelihoods are close. The weighted variants of the
42
+ 31 variational [17, 59, 6] and sampling-based [39] methods then process the coresets. Reducing $D$ relies
43
+ 32 on the compression of data into smaller representations via random projections [53, 2], which is
44
+ 33 achieved in two ways: (i) each data item is projected into an individual representation [11]; (ii) all
45
+ 34 data items are projected into an overall representation, commonly referred to as sketch [28, 22].
46
+ 35 Nevertheless, all the aforementioned techniques—including those with reduced computational cost—
47
+ 36 evaluate all $K$ components. This is very demanding for large models, and the problem is even more
48
+ 37 severe for mixtures involving intricate models, such as neural networks [21, 42], Gaussian processes
49
+ 38 [57], normalizing flows [48]; or deep mixtures, including sum-product (transform) networks [45, 47],
50
+ 39 deep Gaussian mixture models [55], etc. In spite of this, a little attention has been paid to the design
51
+ 40 of algorithms which does not evaluate all $K$ components. The notable exceptions are the sparse EM
52
+ 41 algorithm [24] and the truncated variational EM algorithm [18], see Table 1 and Section 5 for details.
53
+ 42 Moreover, the methods are mostly tailored for a specific class of mixture models, e.g. the Gaussian
54
+ 43 mixture models.
55
+
56
+ Table 1: The computational features of various EM algorithms. We compare whether the methods (i) perform the computations with a reduced number of data (minibatching), (ii) update a lower number of statistics, (iii) make less evaluations of the conditional likelihood, and (iv) are suitable for training of deep models. Here, EM, SA, S, T, MC and MH stand for expectation-maximization, stochastic approximation, sparse, truncated, Monte Carlo and Metropolis-Hastings, respectively.
57
+
58
+ <table><tr><td>Feature/Algorithm</td><td>EM [13]</td><td>SAEM [44]</td><td>SSAEM [24]</td><td>TSAEM [18]</td><td>MCSAEM [1]</td><td>MHSAEM (ours)</td></tr><tr><td>B&lt;Ndatapoints</td><td>×</td><td></td><td></td><td>√</td><td></td><td></td></tr><tr><td>M&lt;K statistics</td><td>xx</td><td></td><td></td><td></td><td>厂</td><td></td></tr><tr><td>M&lt;Klikelihoods</td><td></td><td>xx</td><td>×</td><td></td><td>X</td><td></td></tr><tr><td>deep models</td><td>×</td><td>×</td><td>×</td><td>X</td><td>×</td><td></td></tr></table>
59
+
60
+ 44 In this paper, we make the following contributions:
61
+
62
+ 45 • We propose an EM-based algorithm which relies on the MH sampler to stochastically evaluate less
63
+ 46 components in mixture models, substantially reducing the computational cost.
64
+ 7 • We design our method to enable optimization of fairly generic EM objective functions, making it
65
+ 48 suitable for training of both shallow and deep mixture models.
66
+ 49 • We apply our approach to Gaussian mixture mdoels (GMMs) and their generalizations: sum
67
+ 50 product-transform networks (SPTNs) and mixtures of real-valued non-volume preserving (real
68
+ 51 NVP) flows [15], reaching approximately $1 0 0 \times$ speed-up compared to state-of-the-art methods.
69
+
70
+ # 52 2 Problem formulation
71
+
72
+ A finite mixture model characterizes the relation between an observed (known) variable, 53 $\boldsymbol { x } \in \times \subseteq \mathbb { R } ^ { D }$ , 54 and a latent (unknown) variable, $z \in Z : = \{ 1 , \dots , K \}$ , via the marginal (incomplete-data) likelihood 55 in the following form:
73
+
74
+ $$
75
+ p _ { \theta } ( x ) = \sum _ { k = 1 } ^ { K } p _ { \eta _ { k } } ( x | z = k ) p _ { \pi _ { k } } ( z = k ) ,
76
+ $$
77
+
78
+ 56 where $\theta : = ( \pi _ { 1 } , \eta _ { 1 } , \dots , \pi _ { K } , \eta _ { K } ) \in \Theta$ are unknown parameters. Here, $\eta _ { z }$ are the parameters of the 57 conditional likelihood, $p _ { \eta _ { z } } ( x | z )$ , and $\pi _ { z }$ is the weight which parameterizes the prior, $p _ { \pi _ { z } } ( z ) = \pi _ { z }$ , and satisfies 58 $0 \leq \pi _ { k } \leq 1$ for each $k \in { \mathord { \mathbb { Z } } }$ and $\textstyle \sum _ { k = 1 } ^ { K } \pi _ { k } = 1$ .
79
+
80
+ 59 Given a set of independent and identically distributed data, $\mathbf { x } : = ( x _ { i } ) _ { i = 1 } ^ { N }$ , our goal is to learn the
81
+ 60 unknown parameters of the marginal log-likelihood,
82
+
83
+ $$
84
+ \mathcal { L } ( \theta ) : = \log p _ { \theta } ( \mathbf { x } ) = \sum _ { i = 1 } ^ { N } \log \sum _ { k = 1 } ^ { K } p _ { \eta _ { k } } ( x _ { i } | z _ { i } = k ) p _ { \pi _ { k } } ( z _ { i } = k ) .
85
+ $$
86
+
87
+ 61 The marginalization in (2) is tractable for almost all forms of $p _ { \eta _ { z } } ( x | z )$ . Indeed, we consider $p _ { \eta _ { z } } ( x | z )$
88
+ 62 to belong to an arbitrary family of $\eta _ { z }$ -differentiable probability distributions. However, we assume that
89
+ 63 $K$ is high, making the marginalization in (2) computationally costly, thus rendering the optimization
90
+ 64 objective presumably intractable. Therefore, we want to design a computationally efficient algorithm,
91
+ 65 requiring only $M < K$ evaluations of $p _ { \eta _ { z } } ( x | z )$ at each iteration.
92
+ 67 The maximum likelihood estimation seeks the parameters maximizing the marginal log-likelihood,
93
+ 68 $\theta ^ { M L } : = \arg \operatorname* { m a x } _ { \theta \in \Theta } \mathcal { L } ( \theta )$ . The traditional EM algorithm [13] addresses this task indirectly, i.e. by
94
+ 69 optimizing the evidence lower bound (ELBO),
95
+
96
+ $$
97
+ \mathcal { L } ( \theta ) \geq \mathcal { Q } ( \theta ) + \mathcal { H } ( \hat { \theta } ) : = \mathrm { E L B O } ( \hat { \theta } ) ,
98
+ $$
99
+
100
+ where 70 $\mathcal { H } ( \hat { \theta } ) : = - \mathsf E _ { p _ { \hat { \theta } } ( \mathbf { z } | \mathbf { x } ) } [ \log p _ { \hat { \theta } } ( \mathbf { z } | \mathbf { x } ) ]$ is the differential entropy at an estimate, $\hat { \theta } \in \Theta$ , and
101
+
102
+ $$
103
+ \mathcal { Q } ( \theta ) : = \mathsf { E } _ { p _ { \hat { \theta } } ( \mathbf { z } | \mathbf { x } ) } [ \log p _ { \theta } ( \mathbf { z } , \mathbf { x } ) ] = \sum _ { i = 1 } ^ { N } \sum _ { k = 1 } ^ { K } p _ { \theta } ( z _ { i } = k | x _ { i } ) \log p _ { \theta } ( z _ { i } = k , x _ { i } )
104
+ $$
105
+
106
+ 71 is the EM objective function. Here, $p _ { \theta } ( \mathbf { z } , \mathbf { x } )$ is the joint (complete-data) likelihood, and $p _ { \theta } ( \mathbf { z } | \mathbf { x } )$ is
107
+ 72 the posterior distribution over the latent variables $\dot { \mathbf { z } } : = ( z _ { i } ) _ { i = 1 } ^ { N }$ . Given an initial value, $\theta _ { 0 }$ , the EM
108
+ 73 algorithm produces a sequence of estimates, $( \theta _ { t } ) _ { t = 1 } ^ { T }$ , by alternating between the expectation (E) and
109
+ 74 maximization (M) steps,
110
+
111
+ $$
112
+ \begin{array} { r l } & { \mathrm { E \mathrm { - } s t e p } ; ~ \mathcal { Q } _ { t - 1 } ( \theta ) , } \\ & { \mathrm { M \mathrm { - } s t e p } ; ~ \theta _ { t } : = \arg \operatorname* { m a x } _ { \theta \in \Theta } \mathcal { Q } _ { t - 1 } ( \theta ) . } \end{array}
113
+ $$
114
+
115
+ 75 This sequence is guaranteed to monotonically tighten the ELBO, arriving at a local optimum of (2)
116
+ 76 under mild regularity assumptions [56].
117
+ 77 The EM algorithm is computationally expensive, since (4) evaluates $p _ { \theta } ( z _ { i } , x _ { i } )$ for each $z _ { i } \in \mathbb { Z }$ and
118
+ 78 $i \in ( 1 , \ldots , N )$ . This has to be performed for all $t \in ( 1 , \ldots , T )$ in (5). Albeit the marginal factor,
119
+ 79 $p _ { \pi _ { z } } ( z )$ , is just the cheap categorical distribution, the conditional factor, $p _ { \eta _ { z } } ( x | z )$ , typically involves
120
+ 80 high-dimensional operations (e.g., the inversion of the full $D \times D$ -dimensional covariance matrices
121
+ 81 in the GMMs). Moreover, the M-step (6) is also expensive for large $K$ . This holds despite that (6)
122
+ 82 can be reduced to closed-form updates of expected sufficient statistics for $p _ { \eta _ { z } } ( x | z )$ belonging to the
123
+ 83 exponential family [44] (again, due to high $D$ ). All in all, the computational complexity of the EM
124
+ 84 algorithm scales with $\mathcal { O } ( T D N K )$ .
125
+
126
+ If (6) cannot be computed under a closed-form solution, one can resort to direct gradient-descent optimization of $\mathcal { Q } ( \boldsymbol { \theta } )$ , where arg max is replaced by one (or more) step(s) of a gradient descent technique. The EM algorithm is then referred to as the generalized EM algorithm [56].
127
+
128
+ # 88 4 The generalized MHSAEM algorithm
129
+
130
+ 89 We design a version of the generalized EM algorithm suitable for scenarios where (4) can represent
131
+ 90 deep, discrete, latent variable models, thus being parameterized by possibly complex nonlinear
132
+ 91 transformations. We particularly focus on decreasing the the number of operations in the generalized
133
+ 92 EM algorithm from $\mathcal { O } ( T D N K )$ to $\mathcal { O } ( T D B M )$ , where $B \ll N$ and $M \ll K$ .
134
+
135
+ # 4.1 E-step
136
+
137
+ 94 We reduce the cost of evaluating the EM objective function (4) by combining the minibatching (as
138
+ 95 used many times before) and the Monte Carlo sampling. Namely, the specific application of the latter
139
+ 96 to generic mixture models is the key contribution of this paper.
140
+ 97 Minibatching. At each iteration, $t$ , we compute the conditional expectation in (4) only for a subset—
141
+ 98 here referred to as a minibatch—of the original full dataset, i.e. $( x _ { i } ) _ { i \in I }$ . Here, $I$ is a set of $B \ll N$
142
+ 99 indices, $i$ , sampled uniformly without replacement from $( 1 , \ldots , \dot { N } )$ . This substantially decreases the
143
+ 100 necessary computations compared to the full sweep over all $N$ datapoints [23].
144
+ 101 Monte Carlo sampling. For each $i \in I$ , we want to draw $M \ll K$ random samples from $p _ { \theta } ( z _ { i } | x _ { i } )$ in
145
+ 102 order to obtain a Monte Carlo estimate of (4). The straightforward way to do this would be to draw
146
+ 103 the samples directly from $p _ { \theta } ( z _ { i } | x _ { i } )$ . However, direct sampling from $p _ { \theta } ( z _ { i } | x _ { i } )$ does not lead to any
147
+ 104 substantial decrease in the number of operations. This is caused by the fact that even for a single
148
+ 105 sample of $z _ { i }$ , we have to first compute the normalizing factor, $p _ { \theta } ( x _ { i } )$ , to obtaining the posterior,
149
+ 106 $p _ { \theta } ( z _ { i } | x _ { i } )$ . This requires $K$ expensive evaluations of $p _ { \theta } ( z _ { i } , x _ { i } )$ , which is precisely what we want to
150
+ 107 avoid. Our approach is to resort to the Markov chain Monte Carlo (MCMC), which allows us to
151
+ 108 sample from $p _ { \theta } ( z _ { i } | x _ { i } )$ , with the computational complexity decreasing to only a single evaluation of
152
+ 109 $p _ { \theta } ( z _ { i } , x _ { i } )$ per a single sample of $z _ { i }$ .
153
+ 110 MCMC methods obviate the computation of the normalizing factor in $p _ { \theta } ( z _ { i } | x _ { i } )$ by simulating a
154
+ 111 Markov chain, $( z _ { i , t } ) _ { t = 1 } ^ { T }$ , from a transition kernel, $z _ { i , t } \sim P ( z _ { i , t - 1 } , \cdot )$ , which leaves $p _ { \theta } ( z _ { i } | x _ { i } )$ as its
155
+ 112 unique stationary (invariant) distribution, starting from an initial value $z _ { i , 0 }$ . The specific form of $P$
156
+ 113 determines the structure of an MCMC method. We chose the Metropolis-Hastings (MH) sampler,
157
+ 114 which represents $P ( z _ { i , t - 1 } , z _ { i , t } )$ as follows: given $\bar { z } _ { i } : = z _ { i , t - 1 }$ , draw a sample from the proposal
158
+ 115 distribution $z _ { i } \sim q ( \cdot | \bar { z } _ { i } )$ , compute the acceptance ratio,
159
+
160
+ $$
161
+ \alpha ( \bar { z } _ { i } , z _ { i } ) : = \operatorname* { m i n } \biggr \{ 1 , \frac { p _ { \eta _ { z _ { i } , t - 1 } } ( x _ { i } | z _ { i } ) \pi _ { z _ { i } , t - 1 } q ( \bar { z } _ { i } | z _ { i } ) } { p _ { \eta _ { \bar { z } _ { i } , t - 1 } } ( x _ { i } | \bar { z } _ { i } ) \pi _ { \bar { z } _ { i } , t - 1 } q ( z _ { i } | \bar { z } _ { i } ) } \biggr \} ,
162
+ $$
163
+
164
+ 116 and, if $u < \alpha \big ( \bar { z } _ { i } , z _ { i } \big )$ —where $u$ is drawn from a uniform distribution, Uniform $( 0 , 1 )$ —accept the
165
+ 117 sample and set $z _ { i , t } = z _ { i }$ ; otherwise, set $z _ { i , t } = \bar { z } _ { i }$ . For each $i \in I$ and $t \in ( 1 , \ldots , T )$ , we repeat
166
+ 118 this process $M$ times, construing a set $\mathbf { z } _ { i , t } = ( z _ { i , t } ^ { 1 } , \dots , z _ { i , t } ^ { M } )$ . Therefore, at every current iteration,
167
+ 119 120 $t$ , we caking $\bar { z } _ { i } = z _ { i , t - 1 } ^ { M }$ extend the chain from the point where we left at the previous iteration, . Under mild regularity assumptions [52], the chain passes the transiti $t - 1$ , byriod
168
+ 121 (the burn-in phase), and the samples can then be used to approximate the conditional expectation in
169
+ 122 (4) as follows:
170
+
171
+ $$
172
+ \widehat { \mathcal { Q } } _ { t - 1 } ( \theta ) = \frac { 1 } { M } \sum _ { i \in I } \sum _ { z \in \mathbf { z } _ { i , t } } \log p _ { \eta _ { z } } ( x _ { i } | z ) \pi _ { z } .
173
+ $$
174
+
175
+ 123 Note that, to ensure this approach is truly efficient, we have to draw only $M \ll K$ samples at each
176
+ 124 iteration, $t$ ; otherwise, for $M \approx K$ , we may rather compute the exact marginalization in (4), since it
177
+ 125 is tractable (but computationally costly).
178
+
179
+ # 4.2 M-step
180
+
181
+ 127 Assume for a moment that (6) with $\mathcal { Q } _ { t - 1 } ( \theta )$ given by (8) has a closed-form solution, yielding an
182
+ 128 estimate of $\theta$ . Such an estimate would have a high variance, converging only for $M \to \infty$ and
183
+ 129 $T \to \infty$ [19]. The main reason is that the samples would not be reused over the iterations, $t$ ,
184
+ 130 thus wasting computational resources. We consider that there is no closed-form solution of (6),
185
+ 131 and—to ensure that the samples (and thus computations) are recycled over the iterations—we use
186
+ 132 the stochastic approximation (SA) [51] to optimize (8). This is analogous to applying a stochastic
187
+ 133 gradient-descent method, $\theta _ { t } = \theta _ { t - 1 } + \gamma _ { t } \nabla _ { \theta } \tilde { \mathcal { Q } } _ { t - 1 } ( \theta )$ , where $\gamma _ { t }$ is the step-size, satisfying the Robbins
188
+ 134 Monro constraints, $\begin{array} { r } { \gamma _ { t } \in [ 0 , 1 ] , \sum _ { t \geq 1 } \gamma _ { t } = \infty , \sum _ { t \geq 1 } \gamma _ { t } ^ { 2 } < \infty , } \end{array}$ and $\nabla _ { \theta }$ is the gradient w.r.t. $\theta$ . In this
189
+ 135 way, the computations made in $\nabla _ { \boldsymbol { \theta } } \widehat { \mathcal { Q } }$ are accumulated via $\theta _ { t }$ and reused over the iterations.
190
+ 136 The parameters $\eta _ { z }$ have a different form based on a specific case of $p _ { \eta _ { z } } ( x | z )$ , whereas $\pi _ { z }$ is a
191
+ 137 permanent structure in (1). Therefore, without loss of generality, we split (6) into a generic part and a
192
+ 138 fixed part as follows:
193
+
194
+ $$
195
+ \begin{array} { r l } & { \eta _ { k , t } = \eta _ { k , t - 1 } + \gamma _ { t } \nabla _ { \eta _ { k } } \widehat { \mathcal { Q } } _ { t - 1 } ( \theta ) , } \\ & { \nu _ { k , t } = \nu _ { k , t - 1 } + \gamma _ { t } \nabla _ { \nu _ { k } } \widehat { \mathcal { Q } } _ { t - 1 } ( \theta ) , } \end{array}
196
+ $$
197
+
198
+ 139 where—to ensure that the probabilities, $( \pi _ { k , t } ) _ { k = 1 } ^ { K }$ , satisfy the constraints (Section 2)—we transform
199
+ 140 $\nabla _ { \pi _ { k } } \widehat { \mathcal { Q } }$ via $\nu _ { k } = \log \pi _ { k }$ and optimize w.r.t. $\nu _ { k }$ . Then, to obtain $( \pi _ { k , t } ) _ { k = 1 } ^ { K }$ from $\nu _ { t } : = ( \nu _ { k , t } ) _ { k = 1 } ^ { K }$ , we
200
+ 141 k b use the softmax function, i.e. $\pi _ { k , t } : = \mathrm { s o f t m a x } ( \pmb { \nu } _ { t } ) _ { k } : = \exp ( \nu _ { k , t } ) / \sum _ { l = 1 } ^ { K } \exp ( \nu _ { l , t } )$ .
201
+
202
+ Computing the gradients for all pairs of $( \nu _ { k } , \eta _ { k } ) _ { k = 1 } ^ { K }$ would be inefficient, especially since ${ \bf z } _ { i , t }$ contains only a small number of unique values of Z for $M \ll K$ . Consequently, we compute $\dot { \nabla } _ { \eta _ { k } } \widehat { \mathcal { Q } }$ and $\nabla _ { \nu _ { k } } \widehat { \mathcal { Q } }$ only for $k \in { \mathrm { u n i q u e } } ( \mathbf { z } _ { i , t } )$ . We summarize the proposed approach in Algorithm 1.
203
+
204
+ # 4.3 Proposal distribution
205
+
206
+ 146 The choice of the proposal distribution has a significant impact on the speed of convergence and the computational cost of the proposed algorithm. Here, we discuss various possible choices of 147 $q \big ( z _ { i } | \bar { z } _ { i } \big )$ .
207
+
208
+ Input: $\theta _ { 0 }$ , $( \mathbf { z } _ { i , 0 } ) _ { i = 1 } ^ { N }$ , $( \mathbf { x } _ { i } ) _ { i = 1 } ^ { N }$
209
+ Output: $( \theta _ { t } ) _ { t = 1 } ^ { T }$ for $t \in ( 1 , \ldots , T )$ or until convergence do form the set $\dot { I } = ( i _ { j } ) _ { j = 1 } ^ { B }$ by sampling (without replacement) $B$ indices $i \sim ( 1 , \dots , N )$ for $i \in I$ do set $\bar { z } _ { i }$ as the last element of $\mathbf { z } _ { i , t - 1 }$ for $j \in ( 1 , \ldots , M )$ do sample $z _ { i } \sim q ( z _ { i } | \bar { z } _ { i } )$ sample $u \sim \mathrm { U n i f o r m } ( 0 , 1 )$ compute $\alpha ( \bar { z } _ { i } , z _ { i } )$ in (7) if $u < \alpha \big ( \bar { z } _ { i } , z _ { i } \big )$ then set $z _ { i , t } ^ { j } = z _ { i }$ and $\bar { z } _ { i } = z _ { i }$ else set $z _ { i , t } ^ { j } = \bar { z } _ { i }$ end if end for set $\mathbf { z } _ { i , t } = ( z _ { i , t } ^ { 1 } , \dots , z _ { i , t } ^ { M } )$ end for compute (8) compute (9) for $k \in { \mathrm { u n i q u e } } ( \mathbf { z } _ { i , t } )$ compute $\pi _ { k , t } : = \mathrm { s o f t m a x } ( \pmb { \nu } _ { t } ) _ { k }$ for $k \in { \mathord { \mathbb { Z } } }$ end for
210
+
211
+ 148 Optimal proposal $( O )$ . The optimal proposal distribution is $q ( z _ { i } | \bar { z } _ { i } ) : = q ( z _ { i } ) : = p _ { \theta } ( z _ { i } | x _ { i } )$ . This
212
+ 149 ensures that the acceptance rate (7) is always $\alpha ( \bar { z } _ { i } , z _ { i } ) = 1$ . However, the need to perform $K$
213
+ 150 expensive evaluations of $p _ { \theta } ( z _ { i } , x _ { i } )$ before sampling from $p _ { \theta } ( z _ { i } | x _ { i } )$ is the reason we resorted to
214
+ 151 the MH sampler in the first place. We consider this case only to set the upper limit on admissible
215
+ 152 computational cost and to study the impact of sub-optimal proposal distribtions.
216
+ 153 Uniform proposal $( U )$ . The uniform distribution on the discrete interval from 1 to $K$ , i.e. $q ( z _ { i } | \bar { z } _ { i } ) : =$
217
+ 154 $q ( z _ { i } ) : = \mathrm { U n i f o r m } ( 1 , K )$ , is the simplest and computationally cheapest variant of the proposal
218
+ 155 distribution. However, due to poor mixing properties, the algorithm may converge slowly for high $K$ .
219
+ 156 Tabular proposal with forgetting $( T F )$ . The key requirement to design a proposal distribution is to
220
+ 157 restrict its computational complexity somewhere between that of the $\mathrm { U }$ and $\mathrm { o }$ proposals. One way to
221
+ 158 satisfy this constraint is to use the Markov chain, $( z _ { i , t } ) _ { t = 1 } ^ { T }$ , to learn a transition kernel, $p ( z _ { i } | \bar { z } _ { i } )$ , see,
222
+ 159 e.g. [3]. Unfortunately, this would require us to store a table with $K ^ { 2 }$ entries for each $i \in ( 1 , \ldots , N )$ ,
223
+ 160 161 which is very demanding evethe Markov chain and define: $q ( z _ { i } | \bar { z } _ { i } ) : = q _ { \alpha _ { i } } ( z _ { i } ) : = \mathcal { C } ( \alpha _ { i } )$ $K$ $N$ herefore, where $\mathcal { C } ( \pmb { \alpha } _ { i } ) \propto \Pi _ { k = 1 } ^ { K } \alpha _ { k , i } ^ { \bar { 1 ( } z _ { i } = k ) }$ nce inis the
224
+ 162 categorical distribution with the weights $\pmb { \alpha } _ { i } : = ( \alpha _ { 1 , i } , \dots , \alpha _ { K , i } )$ . For $\mathcal { L } ( \pmb { \alpha } _ { i } ) : = \Sigma _ { \tau = 1 } ^ { t } \log q _ { \pmb { \alpha } _ { i } } ( z _ { i , \tau } )$
225
+ 163 we obtain an estimate of $\alpha _ { i }$ at iteration $t$ as follows: $\begin{array} { r } { \alpha _ { i , t } : = \mathrm { \ a r g m a x } _ { \alpha _ { i } } \mathcal L ( \alpha _ { i } ) \ = \ \frac { n _ { i , t } } { t } } \end{array}$ t , with
226
+ 164 $n _ { i , t } = \Sigma _ { \tau = 1 } ^ { t } \mathbf { e } _ { z _ { i , t } }$ , where $\mathbf { e } _ { k }$ is the standard basis vector (a one-hot vector) with one at $k$ th position
227
+ 165 and zeros otherwise. This can be further rewritten into a recursive form: $n _ { i , t } = n _ { i , t - 1 } + \mathbf { e } _ { z _ { i , t } }$ or,
228
+ 166 using the Robbins-Monro step-size, $n _ { i , t } = ( { \bf 1 } - { \bf e } _ { z _ { i , t } } \gamma _ { t } ) \odot n _ { i , t - 1 } + \gamma _ { t } { \bf e } _ { z _ { i , t } }$ , where 1 is the vector of
229
+ 167 ones, and $\odot$ is the Hadamard product. We refer to this case simply as “table with forgetting” (TF)
230
+ 168 due to that it represents $N \times K$ table in the memory and $\gamma _ { t }$ is a forgetting factor.
231
+
232
+ # 169 5 Related work
233
+
234
+ Stochastic approximation expectation-maximization. The application of SA to prevent the evaluation
235
+ 1 of all $K$ components in mixture models has been overlooked for a long time. The reason is that the
236
+ 72 original motivation to combine the EM algorithm with SA is to address the analytical intractability
237
+ 73 of the expected value under $p _ { \theta } ( z | x )$ in (4), which is, however, almost always tractable for mixture
238
+ 74 models. The intractability issue is addressed by either the Monte Carlo SAEM (MCSAEM) [12]
239
+ 75 or the Markov chain Monte Carlo SAEM (MCMCSAEM) [31]. Applying the former approach to
240
+ 76 mixture models would be inefficient, since it evaluates $K$ joint distributions, $p _ { \theta } ( z , x )$ , before drawing
241
+ 177 $M$ samples from $p _ { \theta } ( z | x )$ . Therefore, this method reduces only the computational cost of updating the
242
+ 178 sufficient statistics. This is addressed by the latter approach, where $M < K$ samples from a proposal
243
+ 179 distribution, $q ( z | x )$ , is used to calculate $p _ { \theta } ( z , x )$ and also the sufficient statistics. However, all these
244
+ 180 methods process all data at every iteration, providing only a limited advantage over the conventional
245
+ 181 EM algorithm. Minibatch versions of these techniques have recently been proposed [27, 32, 1].
246
+ 182 All the above methods commonly assume $p _ { \theta } ( z , x )$ belonging to the exponential family. This provides
247
+ 183 a convenient, but limiting, property which allows (6) to be computed under a closed-form solution.
248
+ 184 The main contribution of our work is to release this restrictive assumption by admitting that $p _ { \theta } ( z , x )$
249
+ 185 (and thus $\mathcal { Q }$ ) is given by possibly complex and intractable transformations.
250
+ 186 Sparse and truncated variational techniques. There is only a small body of methods explicitly
251
+ 187 reducing the number of evaluated components. Their common aspect is that they follow from the
252
+ 188 variational framework, where the exact posterior, $p _ { \theta } ( z | x )$ , is approximated by a variational posterior,
253
+ 189 $q ( z | x )$ . This sparse, approximate, posterior is defined over a lower number of components, $M \ll K$ ,
254
+ 190 such that only the important components are selected, relying on relaxation of the hard EM algorithm
255
+ 191 from taking a single $M = 1$ assignment [26] to taking multiple $M \ll K$ assignments. The sparse
256
+ 192 SAEM (SSAEM) algorithm [24] selects the components by a quick partial sorting of the posterior
257
+ 193 probabilities, $p _ { \theta } ( z | x )$ . Again, this requires $K$ evaluations of $p _ { \theta } ( z , x )$ before the sorting, thus only
258
+ 194 reducing the amount of updated statistics. Similarly, the truncated SAEM (TSAEM) algorithm [18]
259
+ 195 selects $M < K$ cluster-to-cluster and $\bar { M } < K$ cluster-to-datapoint minimal Euclidean distances,
260
+ 196 preventing the problem in the SSAEM algorithm. However, all these distances are evaluated for all
261
+ 197 components in a pairwise manner, leading to $K ^ { 2 }$ -computational complexity, which makes the saving
262
+ 198 dubious. Similarly as before, these methods assume $p _ { \theta } ( z , x )$ to belong to the exponential family.
263
+
264
+ ![](images/0c516376ee7ecf27c7edaec6674fb19224d829bc10798ac37d421adee064aa0e.jpg)
265
+ Figure 1: The training log-likelihood, $\mathcal { L } ( \boldsymbol { \theta } _ { t } )$ , versus the computational time (in seconds). Here, on the $\mathbf { X }$ -axis, the computational time at a current iteration, $t$ , is obtained by accumulating the time from the previous iterations. corresponds to $\mathcal { L } ( \boldsymbol { \theta } _ { t _ { 9 5 } } )$ , where $t _ { 9 5 }$ is the iteration of reaching $9 5 \%$ of max $\mathcal { L } ( \boldsymbol { \theta } _ { t } )$ . The projection of $^ { \circ }$ on the $\mathbf { X }$ -axis gives the time to reach $\mathcal { L } ( \boldsymbol { \theta } _ { t _ { 9 5 } } )$ . This experiment was performed with the following settings: $( D , \bar { K } , N , \omega , B , M , T ) = ( 1 0 , 1 0 0 , 1 0 k , 0 . 1 , \bar { 2 } 0 0 , 2 , 2 0 k )$ , see Section 6.1 for details. The results are averaged over five repetitions.
266
+
267
+ 199 We summarize the distinguishing features of the above discussed methods in Table 1.
268
+
269
+ # 6 Experiments
270
+
271
+ To demonstrate the key features of our algorithm—its low computational complexity, competitive learning performance, and generality—we use it below to train: (i) GMMs on synthetic datasets, and (ii) SPTNs [47] and (iii) mixtures of real NVP flows [48] on real datasets. All experiments have been performed on a Slurm cluster equipped with Intel Xeon Scalable Gold 6146 with 384GB of RAM.
272
+
273
+ # 6.1 Gaussian mixture models
274
+
275
+ Consider the special case of a data-generating distribution given by (1), with the components taking the form of the multivariate Gaussian distribution, $p _ { \eta _ { z } } ( x | z ) = \mathcal { N } ( x ; \mu _ { z } , \Sigma _ { z } )$ , where $\mu _ { z }$ is the mean value and $\Sigma _ { z }$ is the covariance matrix. The difficulty of learning GMMs heavily depends on the degree of interaction among all mixture components, hence having the ability to generate synthetic datasets with arbitrary overlap characteristics between all pairs of components is crucial for systematic
276
+
277
+ ![](images/0ced572977ae404a4e785379dc4987ce758b6f6930ca4d73adbe35955ed678b7.jpg)
278
+ Figure 2: The absolute error, $\mathrm { A E } = | \mathcal { L } ( \theta _ { t _ { 9 5 } } ) - \mathcal { L } ( \theta ) |$ , versus the computational time (in seconds). All experiments use the following settings: $( D , K , \dot { N } , \omega , B , M , T ) = \bar { ( } 1 0 , 1 0 0 , 1 0 k , 0 . 1 , 2 0 0 , 2 , 2 0 k )$ , where the number of components, $K$ , (left), the batchsize, $B$ , (middle) and the number of samples, $M$ , (right) change for different values denoted by $( + , \sqsupset , \circ , \pmb { \triangle } )$ . At each of these points (marks), we perform an experiment as illustrated in Figure 1, find $\mathcal { L } ( \boldsymbol { \theta } _ { t _ { 9 5 } } )$ to compute the AE, and record the time corresponding to $t _ { 9 5 }$ . The results are averaged over five repetitions.
279
+
280
+ 211 evaluation of performance of learning algorithms [43]. Traditional techniques usually define overlap
281
+ 212 (or separation) of components only in terms of their mean vectors and maximum eigenvalues of the
282
+ 213 covariance matrices, not accounting for their rotation and mixing weights (see [36] for a detailed
283
+ 214 treatment of the problem). We therefore use a more objective measure of the clustering complexity
284
+ 215 defined by the total probability of misclassification [41], which allows to generate data with a
285
+ 216 user-defined degree of maximum pairwise overlap, $\omega$ .
286
+ 217 Experiment settings: We generate the parameters of (1), and the corresponding dataset, uniquely for a
287
+ 218 given quadruple $( D , K , N , \omega )$ . Therefore, the parameters of the generative model are known and we
288
+ 219 can measure and display the convergence of the training log-likelihood, $\mathcal { L } ( \boldsymbol { \theta } _ { t } )$ , compared to the exact
289
+ 220 log-likelihood, $\mathcal { L } ( \boldsymbol { \theta } ) \dot { }$ , for $t = ( 1 , \ldots , T )$ . We are further interested in the absolute error between the
290
+ 221 training log-likelihood at the iteration of reaching $9 5 \%$ of its maximum value, $t _ { 9 5 }$ , and the exact
291
+ 222 log-likelihood, i.e. $\mathrm { A E } = | \mathcal { L } ( \theta _ { t _ { 9 5 } } ) - \mathcal { L } ( \theta ) |$ .
292
+ 23 We also measure the computational time until reaching $t _ { 9 5 }$ . We have used $9 5 \%$ of the maximum
293
+ 24 value instead of the maximum value to prevent cases, where the model oscillate around target value,
294
+ 25 making the estimate of convergence time very noisy (for example MCSAEM in Figure 1).
295
+ 226 Algorithms: The GMMs belong to the exponential family of probability distributions. This allows us
296
+ 227 to find a closed-form, recursive, solution of (6), relying on a Robbins-Monro type of the step-size
297
+ 228 sequence, $( \gamma _ { t } ) _ { t = 1 } ^ { T }$ , [7, 44]. In this setting, we compare our MHSAEM algorithm with a number of
298
+ 229 related methods in Table 1. Note we use the acronyms U and TF to specify the proposal distribution of
299
+ 230 the MHSAEM algorithm (Section 4.3). However, we do not use the O-proposal, since the MHSAEM
300
+ 231 O algorithm is equivalent to the MCSAEM algorithm. All the SA-variants in Table 1 use a minibatch
301
+ 232 of size $B$ . The key quantity to reduce the number of evaluated components and/or sufficient statistics
302
+ 233 in the SSAEM, TSAEM, MCSAEM and MHSAEM algorithms is collectively denoted by $M$ (Section
303
+ 234 5). Note that we always keep $M = \bar { M }$ in the TSAEM algorithm (see Figure 1 and 2 for concrete
304
+ 235 numbers). We use the step-size given by $\gamma _ { t } = 1$ for $t = 1 , \ldots , 5 0$ and $\gamma _ { t } = 0 . 0 5$ otherwise. In
305
+ 236 this section, to counteract the issue of attaining poor local optima, we equip all algorithms with the
306
+ 237 anti-annealing schedule $( \beta _ { t } ) _ { t = 1 } ^ { T }$ , starting with $\beta _ { 1 } = 0 . 1$ , reaching $\beta _ { 2 / 3 T } = 1 . 2$ , and decreasing back
307
+ 238 to $\beta _ { T } = 1 . 0$ , see [43] for details. The initial estimates of: (i) $\mu _ { k }$ are uniformly drawn from the unit
308
+ 239 hyper-cube, (ii) $\Sigma _ { k }$ are fixed to unit diagonal matrix, and (iii) $\pi _ { k }$ are uniformly drawn from the unit
309
+ 240 interval (followed by normalization).
310
+ 241 Results: Figure 1 shows that the EM [13] and SAEM [44] algorithms take the longest time to
311
+ 242 converge, attaining a poor local optima. On the other hand, the MCSAEM [1] and MHSAEM (U
312
+ 243 and TF) algorithms achieve $\mathcal { L } ( \boldsymbol { \theta } _ { t _ { 9 5 } } )$ closest to the likelihood $\mathcal { L } ( \boldsymbol { \theta } )$ of the true model. Moreover, both
313
+ 244 MHSAEM algorithms reach this value in the shortest time compared to all the other methods. The
314
+ 245 SSAEM [24] and TSAEM [18] algorithms are comparable in terms of the computational time, but
315
+ 246 they both provide the lowest $\mathcal { L } ( \boldsymbol { \theta } _ { t _ { 9 5 } } )$ . In Figure 2, we investigate sensitivity of fitting the model to
316
+ 47 increasing values of $K$ , $B$ and $M$ by measuring the time and the likelihood again. In all the cases,
317
+ 48 the proposed MHSAEM algorithms achieve the lowest AE in the shortest time.
318
+
319
+ SSAEM and TSAEM algorithms failed to converge for $M > 2$ and for $K > 5 0$ respectively. We believe this is caused by selecting only $M$ maximal probabilities in the SSAEM (or distances in the TSAEM) algorithm (Section 5), which prevents certain, but not a negligible number of, components from being updated, thus providing only a crude approximation of $\bar { p } _ { \theta } \bar { ( } z | x )$ . The results then suffer from substantial variational gap to the exact log-likelihood (Figure 1). On the contrary, MH sampler provides samples which consistently approximate $p _ { \theta } ( z | x )$ despite evaluating much lower number of components in each step.
320
+
321
+ # 6.2 Sum-product transform networks
322
+
323
+ The sum product networks (SPNs) are a deep learning extension of finite mixture models. They can be interpreted as a mixture of trees [60], where each tree corresponds to a component. Therefore, they can be cast into the form of (1), but the number of components grows exponentially with their depth. In this section, we use recently proposed SPTNs which introduce additional transformation nodes to provide better expressiveness than the SPNs (SPTNs effectively generalize SPNs and flow models into one large family of models).
324
+
325
+ Experimental settings: We use 19 real datasets from the UCI database [16, 37, 35, 54], preprocessed in the same way as in [46]. For each experiment, we randomly split the data into $64 \%$ , $16 \%$ and $20 \%$ for training, validation and testing, respectively. We calculate the average log-likelihood on the test set and measure again the time to reach $9 5 \%$ of the maximal training log-likelihood, $\mathcal { L } ( \boldsymbol { \theta } _ { t _ { 9 5 } } )$ .
326
+
327
+ To evaluate various (possibly shallow and/or deep) architectures of SPTNs, we fit each dataset with all the following combinations of hyper-parameters1: $s \in ( 8 , 3 2 , 1 2 8 )$ , $b \in ( 2 , 4 , 6 , 8 )$ , $l \in ( 2 , 3 , 4 )$ , where $s$ is the number of children of each sum node, $b$ is the number of partitions of each product node, and $l$ is the number of layers (one layer contains sum and product nodes). The number of components of the SPTN, after its conversion into (1), is given as follows: $K = s ^ { l }$ . Note that the maximum number of components for the investigated parameters of the SPTN is 268,435,456. To reduce the space of possible architectures, we restrict ourselves only to (i) the leaf nodes given by $\mathcal { N } ( 0 , \bf { I } )$ ; (ii) affine transformations fixed to the singular value decomposition, choosing the the Givens parameterization for the unitary matrices [47]; and (iii) no sharing of any type of nodes [47].
328
+
329
+ 276 Algorithms: We evaluate only on the MHSAEM-U algorithm—due to its favourable computational
330
+ 277 complexity and simplicity—and compare it with the stochastic gradient-descent (SGD) algorithm,
331
+ 278 which is routinely used to train SP(T)Ns [45, 47]. In this case, SGD in each iteration performs
332
+ 279 computations over all subtrees of the network, whereas the MHSAEM-U algorithm computes with
333
+ 280 only $M = 1$ subtrees, thus we should observe speed-up of the computations. In our implementation,
334
+ 281 both these methods perform optimization of their respective objective functions—the log-likelihood
335
+ 282 (2) for SGD and the EM objective (8) for MHSAEM-U—via the use of the automatic differentiation
336
+ 283 and the ADAM optimizer [29], using $B = 1 0 0$ and $T = 2 0 0 0 0$ .
337
+
338
+ Results: Since each dataset might benefit from a different architecture, Table 6.2 shows the test log-likelihood of the architectures selected according to the best likelihood measured on the validation set and the corresponding speed-up. The test log-likelihoods reveal that the MHSAEM-U algorithm outperforms the SGD algorithm on 10 out of 19 datasets, which was not originally the goal, but the added stochasticity helps to escape poor local minima. The speed-up demonstrates lower computational complexity of the MHSAEM-U algorithm on 17 out of 19 datasets, which was the main goal. The magic-telescope and wine datasets show approximately $1 0 2 \times$ and $7 5 \times$ speed-up, respectively, while on very small datasets (pima-indians and iris), the SGD is faster due to effective implementation. In the supplementary material, we present Table 3, exhibiting the same trends on a fixed architecture.
339
+
340
+ # 6.3 Mixtures of real NVP flows
341
+
342
+ We consider another class of mixture models (1), where each component $p _ { \eta _ { z } } ( x | z )$ is transformed by the flow model—real NVP [15]. These transformations are parameterized via deep neural networks, allowing for flexible adjustment of the learning capacity of each component.
343
+
344
+ Table 2: The speed-up and test log-likelihood, $\mathcal { L } ^ { \mathrm { t e s t } }$ , for the SGD and MHSAEM-U algorithms. The test log-likelihood (higher is better) is computed for the best model, with the corresponding $K$ , which is selected based on the validation log-likelihood. The speed-up is computed as the ratio of MHSAEM-U to SGD, i.e. their time to reach $9 5 \%$ of the training log-likelihood. The results are averaged over five repetitions. Then, the higher test log-likelihood is highlighted with bold blue, and and no speed-up is highlighted with red. The average rank is computed as the standard competition (“1224”) ranking [14] on each dataset (lower is better).
345
+
346
+ <table><tr><td rowspan="3"></td><td colspan="5">Sum-product transformnetworks</td><td colspan="5">Mixtures of real NVP flows SGD</td></tr><tr><td rowspan="2"></td><td colspan="2">SGD</td><td colspan="2">MHSAEM-U</td><td colspan="2"></td><td colspan="2"></td><td colspan="2">MHSAEM-U</td></tr><tr><td>speed-up</td><td>Ltest</td><td>K</td><td>Ltest</td><td>K</td><td>speed-up</td><td>Ltest</td><td>K 32</td><td>Ltest</td><td>K</td></tr><tr><td>breast-cancer-wisconsin</td><td>4.66</td><td>-4.66</td><td>64</td><td>1.43</td><td>1024</td><td>0.63</td><td>-99.85</td><td></td><td>-39.31</td><td></td><td>128</td></tr><tr><td>cardiotocography</td><td>10.55</td><td>59.52</td><td>512</td><td>31.04</td><td>1024</td><td></td><td>9.85</td><td>54.34</td><td>32</td><td>56.08</td><td>128</td></tr><tr><td>magic-telescope</td><td>102.53</td><td>-3.65</td><td>512</td><td>-5.03</td><td>1024</td><td></td><td>3.74</td><td>-3.97</td><td>8</td><td>-4.22</td><td>8</td></tr><tr><td>pendigits</td><td>4.89</td><td>0.88</td><td>1024</td><td>-4.86</td><td>16384</td><td></td><td>4.17</td><td>1.46</td><td>8</td><td>0.48</td><td>8</td></tr><tr><td>pima-indians</td><td>0.37</td><td>-8.54</td><td>64</td><td>-7.62</td><td></td><td>64</td><td>1.35</td><td>-20.09</td><td>128</td><td>-16.33</td><td>128</td></tr><tr><td>wall-following-robot</td><td>3.43</td><td>1.84</td><td>1024</td><td>-11.3</td><td>16384</td><td></td><td>22.21</td><td>-14.26</td><td>128</td><td>-17.56</td><td>128</td></tr><tr><td>waveform-1</td><td>4.35</td><td>-26.14</td><td>64</td><td>-23.91</td><td>1024</td><td></td><td>3.72</td><td>-34.12</td><td>8</td><td>-33.42</td><td>8</td></tr><tr><td>waveform-2</td><td>4.82</td><td>-26.21</td><td>64</td><td>-23.91</td><td></td><td>1024</td><td>4.12</td><td>-34.15</td><td>8</td><td>-33.64</td><td>8</td></tr><tr><td>yeast</td><td>20.57</td><td>10.26</td><td>512</td><td>5.18</td><td>1024</td><td></td><td>14.49</td><td>6.61</td><td>128</td><td>9.59</td><td>128</td></tr><tr><td>ecoli</td><td>1.86</td><td>-5.5</td><td>64</td><td>-0.22</td><td>1024</td><td></td><td>2.15</td><td>-11.37</td><td>128</td><td>-10.64</td><td>128</td></tr><tr><td>ionosphere</td><td>1.88</td><td>-20.27</td><td>64</td><td>-5.93</td><td></td><td>512</td><td>2.74</td><td>-87.01</td><td>128</td><td>-42.75</td><td>128</td></tr><tr><td>iris</td><td>0.23</td><td>-10.65</td><td>64</td><td>-1.49</td><td>16384</td><td></td><td>3.28</td><td>-16.34</td><td>128</td><td>-9.21</td><td>32</td></tr><tr><td>page-blocks</td><td>12.18</td><td>12.21</td><td>512</td><td>6.84</td><td>1024</td><td></td><td>44.95</td><td>17.13</td><td>128</td><td>17.94</td><td>32</td></tr><tr><td>parkinsons</td><td>1.46</td><td>-21.85</td><td>64</td><td>0.5</td><td></td><td>512</td><td>3.09</td><td>-566.58</td><td>128</td><td>-33.31</td><td>32</td></tr><tr><td>sonar</td><td>2.96</td><td>-95.39</td><td>512</td><td>-69.29</td><td></td><td>64</td><td>2.52</td><td>-622.2</td><td>128</td><td>-88.81</td><td>128</td></tr><tr><td>statlog-segment</td><td>1.44</td><td>47.35</td><td>512</td><td>26.53</td><td>16384</td><td></td><td>38.49</td><td>35.84</td><td>128</td><td>42.04</td><td>32</td></tr><tr><td>statlog-vehicle</td><td>2.97</td><td>-4.25</td><td>64</td><td>-5.45</td><td>1024</td><td></td><td>6.78</td><td>-31.34</td><td>32</td><td>-26.43</td><td>128</td></tr><tr><td>wine rank</td><td>75.42</td><td>-25.99</td><td>1024</td><td>-13.27</td><td></td><td>1024</td><td>2.05</td><td>-171.58</td><td>128</td><td>-25.57</td><td>128</td></tr><tr><td></td><td></td><td>1.56</td><td></td><td>1.44</td><td></td><td></td><td></td><td>1.83</td><td></td><td>1.17</td><td></td></tr></table>
347
+
348
+ 298 Experimental settings: We use the same experimental settings and evaluation metrics as in Section
349
+ 299 6.2. We apply the mixture model on all datasets, changing the number of components as follows:
350
+ 300 $K \in ( 8 , 3 2 , 1 2 8 )$ . Each real NVP-based component in the mixture model has (i) the translation
351
+ 301 function parameterized via multi-layer perceptron with a single hidden layer of dimension 10, using
352
+ 302 the rectified linear activation function; and (ii) the scale function parameterized via the same network
353
+ 303 except with the hyperbolic tangent activation function. We do not use the batch normalization [15] and
354
+ 304 we stack two layers of the translation-scale transformation (we have used implementation from [20]).
355
+
356
+ Algorithms: The algorithms and their settings are the same as those in Section 6.2.
357
+
358
+ 306 Results: The experimental results are presented in right part of Table 6.2. They are similar to those
359
+ 307 obtained in the previous section. In terms of the test log-likelihood, the MHSAEM-U algorithm
360
+ 308 outperforms the SGD algorithm on all but three datasets, and it provides a substantial speed-up on all
361
+ 309 datasets except one. The test likelihood of models with the real NVP flows is most of the time worse
362
+ 310 than that of SPTNs with the affine transformations. As explained in the supplementary, this is due to
363
+ 311 the overfitting, which has been observed in [47].
364
+
365
+ # 312 7 Conclusion
366
+
367
+ 313 This paper has presented a method to decrease computational complexity of fitting mixture models,
368
+ 314 including their generalizations, such as sum-product-(transform) networks and mixtures of flow
369
+ 315 models. The speed-up is achieved by evaluating and updating only a single component (per iteration),
370
+ 316 where the Metropolis-Hasting algorithm ensures sampling of components from a proper posterior. An
371
+ 317 experimental comparison on all three classes of models mentioned above confirmed the theoretical
372
+ 318 expectations. The method significantly speeds-up the fitting time and, importantly, without sacrificing
373
+ 319 the quality of the fit. In fact, the likelihood was better than that of the models fitted by the EM
374
+ 320 algorithm or the SGD algorithm in more than $50 \%$ of cases. We attribute this to higher stochasticity,
375
+ 321 which helps to escape from poor local minima.
376
+ 322 In the experiments, the proposed method has used a uniform proposal distribution in the MH sampler.
377
+ 323 Despite outperforming the alternative methods, we conjecture that this limits the speed of convergence.
378
+ 324 Therefore, we believe that there is still a room for improvement in the implementation. We plan to
379
+ 325 address these issues in future work.
380
+
381
+ The presented method decreases the computational complexity of fitting large (and deep) mixture models, which leads to five to hundred time speed-up depending on a size of the problem (although negative exceptions occurs). We believe this line of research, which we want to continue, to have important benefits. First, it is directly related to decrease in energy consumption and in production of CO2 (we expect similar rates as the speedup). Second, it has a positive effect on financial aspects of deploying (and experimenting with) mixture models. Third, it decreases the hardware requirements, as in all experiments presented above the model was fitted on a single-core.
382
+
383
+ # References
384
+
385
+ [1] S. Allassonnière and J. Chevallier. A new class of stochastic EM algorithms: Escaping local maxima and handling intractable sampling. Computational Statistics & Data Analysis, 159:107159, 2021.
386
+ [2] S. Ayesha, M. K. Hanif, and R. Talib. Overview and comparative study of dimensionality reduction techniques for high dimensional data. Information Fusion, 59:44–58, 2020.
387
+ [3] D. S. Bai. Efficient estimation of transition probabilities in a Markov chain. The Annals of Statistics, pages 1305–1317, 1975.
388
+ [4] D. M. Blei, A. Kucukelbir, and J. D. McAuliffe. Variational inference: A review for statisticians. Journal of the American statistical Association, 112(518):859–877, 2017.
389
+ [5] J. Blömer and K. Bujna. Adaptive seeding for Gaussian mixture models. In Pacific-asia conference on knowledge discovery and data mining, pages 296–308. Springer, 2016.
390
+ [6] T. Campbell and B. Beronov. Sparse variational inference: Bayesian coresets from scratch. arXiv preprint arXiv:1906.03329, 2019.
391
+ [7] O. Cappé and E. Moulines. On-line expectation–maximization algorithm for latent data models. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 71(3):593–613, 2009.
392
+ [8] J. Chen, J. Zhu, Y. Teh, and T. Zhang. Stochastic expectation maximization with variance reduction. Advances in Neural Information Processing Systems, page 7967, 2018.
393
+ [9] N. Chopin. A sequential particle filter method for static models. Biometrika, 89(3):539–552, 2002.
394
+ [10] G. Compiani and Y. Kitamura. Using mixtures in econometric models: A brief review and some new results. The Econometrics Journal, 19(3):C95–C127, 2016.
395
+ [11] S. Dasgupta. Learning mixtures of Gaussians. In 40th Annual Symposium on Foundations of Computer Science (Cat. No. 99CB37039), pages 634–644. IEEE, 1999.
396
+ [12] B. Delyon, M. Lavielle, E. Moulines, et al. Convergence of a stochastic approximation version of the EM algorithm. The Annals of Statistics, 27(1):94–128, 1999.
397
+ [13] A. P. Dempster, N. M. Laird, and D. B. Rubin. Maximum likelihood from incomplete data via the EM algorithm. Journal of the Royal Statistical Society: Series B (Methodological), 39(1):1–22, 1977.
398
+ [14] J. Demšar. Statistical comparisons of classifiers over multiple data sets. The Journal of Machine Learning Research, 7:1–30, 2006.
399
+ [15] L. Dinh, J. Sohl-Dickstein, and S. Bengio. Density estimation using real NVP. In 5th International Conference on Learning Representations, ICLR 2017, 2017.
400
+ [16] D. Dua and C. Graff. UCI machine learning repository, 2017.
401
+
402
+ [17] D. Feldman, M. Faulkner, and A. Krause. Scalable training of mixture models via coresets. In Proceedings of the 24th International Conference on Neural Information Processing Systems, pages 2142–2150, 2011. 372 [18] D. Forster and J. Lücke. Can clustering scale sublinearly with its clusters? A variational EM acceleration of GMMs and k-means. In International Conference on Artificial Intelligence and Statistics, pages 124–132. PMLR, 2018. [19] G. Fort, E. Moulines, et al. Convergence of the Monte Carlo expectation maximization for curved exponential families. Annals of Statistics, 31(4):1220–1259, 2003. [20] J. Franc˚u. Continuousflows.jl. https://github.com/janfrancu/ContinuousFlows.jl, 2020. [21] K. Greff, S. van Steenkiste, and J. Schmidhuber. Neural expectation maximization. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 6694–6704, 2017. [22] R. Gribonval, A. Chatalic, N. Keriven, V. Schellekens, L. Jacques, and P. Schniter. Sketching datasets for large-scale learning (long version). arXiv preprint arXiv:2008.01839, 2020. [23] M. D. Hoffman, D. M. Blei, C. Wang, and J. Paisley. Stochastic variational inference. Journal of Machine Learning Research, 14(5), 2013. [24] M. C. Hughes and E. B. Sudderth. Fast learning of clusters and topics via sparse posteriors. arXiv preprint arXiv:1609.07521, 2016. [25] K. Humphreys and D. Titterington. Approximate Bayesian inference for simple mixtures. In COMPSTAT, pages 331–336. Springer, 2000. [26] B.-H. Juang and L. R. Rabiner. The segmental K-means algorithm for estimating parameters of hidden Markov models. IEEE Transactions on acoustics, speech, and signal Processing, 38(9):1639–1641, 1990. [27] B. Karimi, M. Lavielle, and É. Moulines. On the convergence properties of the mini-batch EM and MCEM algorithms, 2019. [28] N. Keriven, A. Bourrier, R. Gribonval, and P. Pérez. Sketching for large-scale learning of mixture models. Information and Inference: A Journal of the IMA, 7(3):447–508, 2018. [29] D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. [30] A. Kucukelbir, D. Tran, R. Ranganath, A. Gelman, and D. M. Blei. Automatic differentiation variational inference. The Journal of Machine Learning Research, 18(1):430–474, 2017. [31] E. Kuhn and M. Lavielle. Coupling a stochastic approximation version of EM with an MCMC procedure. ESAIM: Probability and Statistics, 8:115–131, 2004. [32] E. Kuhn, C. Matias, and T. Rebafka. Properties of the stochastic approximation EM algorithm with mini-batch sampling. Statistics and Computing, 30(6):1725–1739, 2020. [33] A. Lagrange, M. Fauvel, and M. Grizonnet. Large-scale feature selection with Gaussian mixture models for the classification of high dimensional remote sensing images. IEEE Transactions on Computational Imaging, 3(2):230–242, 2017. [34] M. Lavine and M. West. A Bayesian method for classification and discrimination. Canadian Journal of Statistics, 20(4):451–461, 1992. [35] M. Little, P. McSharry, S. Roberts, D. Costello, and I. Moroz. Exploiting nonlinear recurrence and fractal scaling properties for voice disorder detection. Nature Precedings, pages 1–1, 2007. [36] R. Maitra and V. Melnykov. Simulating data to study performance of finite mixture modeling and clustering algorithms. Journal of Computational and Graphical Statistics, 19(2):354–376, 2010.
403
+
404
+ 15 [37] O. L. Mangasarian and W. H. Wolberg. Cancer diagnosis via linear programming. Technical report, University of Wisconsin-Madison Department of Computer Sciences, 1990.
405
+ 17 [38] J.-M. Marin, K. Mengersen, and C. P. Robert. Bayesian modelling and inference on mixtures of distributions. Handbook of statistics, 25:459–507, 2005.
406
+ 19 [39] C. A. McGrory, D. C. Ahfock, J. A. Horsley, and C. L. Alston. Weighted Gibbs sampling for mixture modelling of massive datasets via coresets. Stat, 3(1):291–299, 2014. [40] G. J. McLachlan, S. X. Lee, and S. I. Rathnayake. Finite mixture models. Annual review of statistics and its application, 6:355–378, 2019.
407
+ 423 [41] V. Melnykov, W.-C. Chen, and R. Maitra. MixSim: An R package for simulating data to study performance of clustering algorithms. Journal of Statistical Software, 51(12):1, 2012.
408
+ 25 [42] T. Monnier, T. Groueix, and M. Aubry. Deep transformation-invariant clustering. In Conference on Neural Information Processing Systems (NeurIPS 2020), 2020. [43] I. Naim and D. Gildea. Convergence of the EM algorithm for Gaussian mixtures with unbalanced mixing coefficients. In Proceedings of the 29th International Coference on International Conference on Machine Learning, pages 1427–1431, 2012. [44] H. D. Nguyen, F. Forbes, and G. J. McLachlan. Mini-batch learning of exponential family finite mixture models. Statistics and Computing, pages 1–18, 2020. [45] R. Peharz, A. Vergari, K. Stelzner, A. Molina, X. Shao, M. Trapp, K. Kersting, and Z. Ghahramani. Random sum-product networks: A simple and effective approach to probabilistic deep learning. In Uncertainty in Artificial Intelligence, pages 334–344. PMLR, 2020. [46] T. Pevný. Loda: Lightweight on-line detector of anomalies. Machine Learning, 102(2):275–304, 2016. [47] T. Pevný, V. Šmídl, M. Trapp, O. Polácek, and T. Oberhuber. Sum-product-transform networks: ˇ Exploiting symmetries using invertible transformations. arXiv preprint arXiv:2005.01297, 2020. [48] G. G. Pires and M. A. Figueiredo. Variational mixture of normalizing flows. arXiv preprint arXiv:2009.00585, 2020.
409
+ 42 [49] A. Rau, C. Maugis-Rabusseau, M.-L. Martin-Magniette, and G. Celeux. Co-expression analysis of high-throughput transcriptome sequencing data with Poisson mixture models. Bioinformatics, 31(9):1420–1427, 2015.
410
+ 45 [50] R. A. Redner and H. F. Walker. Mixture densities, maximum likelihood and the EM algorithm. SIAM review, 26(2):195–239, 1984.
411
+ 47 [51] H. Robbins and S. Monro. A stochastic approximation method. The annals of mathematical statistics, pages 400–407, 1951.
412
+ 49 [52] C. Robert and G. Casella. Monte Carlo statistical methods. Springer Science & Business Media, 2013. [53] W. Siblini, P. Kuntz, and F. Meyer. A review on dimensionality reduction for multi-label classification. IEEE Transactions on Knowledge and Data Engineering, 2019.
413
+ 53 [54] J. P. Siebert. Vehicle recognition using rule based methods. 1987. [55] C. Viroli and G. J. McLachlan. Deep gaussian mixture models. Statistics and Computing, 29(1):43–51, 2019.
414
+ 56 [56] C. F. J. Wu. On the convergence properties of the EM algorithm. The Annals of statistics, pages 95–103, 1983.
415
+ 58 [57] D. Wu and J. Ma. An effective EM algorithm for mixtures of Gaussian processes via the MCMC sampling and approximation. Neurocomputing, 331:366–374, 2019.
416
+
417
+ 60 [58] W. Xiang, A. Karfoul, C. Yang, H. Shu, and R. L. B. Jeannès. An exact line search scheme to
418
+ 61 accelerate the EM algorithm: Application to Gaussian mixture models identification. Journal of
419
+ 62 computational science, 41:101073, 2020.
420
+ 63 [59] M. Zhang, Y. Fu, K. M. Bennett, and T. Wu. Computational efficient variational Bayesian Gaus
421
+ 64 sian mixture models via coreset. In 2016 International Conference on Computer, Information
422
+ 65 and Telecommunication Systems (CITS), pages 1–5. IEEE, 2016.
423
+ 66 [60] H. Zhao, P. Poupart, and G. Gordon. A unified approach for learning the parameters of sum
424
+ 67 product networks. In Proceedings of the 30th International Conference on Neural Information
425
+ 68 Processing Systems, pages 433–441, 2016.
426
+
427
+ 1. For all authors...
428
+
429
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
430
+ (b) Did you describe the limitations of your work? [Yes] Our main contribution is computational speedup. Cases where it was not achieved are highlighted in the experimental section.
431
+ (c) Did you discuss any potential negative societal impacts of your work? [No] We do not foresee any potential negative impact.
432
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
433
+
434
+ 2. If you are including theoretical results...
435
+
436
+ (a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
437
+
438
+ 3. If you ran experiments...
439
+
440
+ (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] The code is available in a github repository. All dataset are public from the UCI database.
441
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 6.
442
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] We report only average of Monte Carlo repetitions, the error bars were too small to have any visual impact in the reported logarithmic scale.
443
+ (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]
444
+
445
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
446
+
447
+ (a) If your work uses existing assets, did you cite the creators? [Yes] We use 20 datasets from UCI, we cite the required papers for each dataset, mostly the UCI database and few additional publications.
448
+ (b) Did you mention the license of the assets? [No] The data are publically available, we comply with the requirement on citing appropriate publications.
449
+ (c) Did you include any new assets either in the supplemental material or as a URL? [No]
450
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
451
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
452
+
453
+ 5. If you used crowdsourcing or conducted research with human subjects...
454
+
455
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
456
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
457
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/train/ki4eJ1fSJNq/ki4eJ1fSJNq_content_list.json ADDED
@@ -0,0 +1,1195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Fitting large mixture models using stochastic component selection ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 228,
8
+ 122,
9
+ 769,
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 Traditional methods for unsupervised learning of finite mixture models require to \n2 evaluate the likelihood of all components of the mixture. This becomes computa \n3 tionally prohibitive when the number of components is large, as it is, for example, \n4 in the sum-product (transform) networks. As a remedy, we propose an approach \n5 combining the expectation maximization and the Metropolis-Hastings algorithm \n6 to evaluate only a small number of, stochastically sampled, components, thus \n7 substantially reducing the computational cost. We put emphasis on generality of \n8 our method, equipping it with the ability to train both shallow and deep mixture \n9 models which involve complex, and possibly nonlinear, transformations. The \n10 performance of our method is illustrated in a variety of synthetic and real-data \n11 contexts, considering deep models, such as mixtures of normalizing flows and \n12 sum-product (transform) networks. ",
40
+ "bbox": [
41
+ 148,
42
+ 348,
43
+ 766,
44
+ 515
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "13 1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 148,
54
+ 539,
55
+ 312,
56
+ 556
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "14 Finite mixture models [40] constitute a fundamental class of density estimation models. They \n15 have been successfully applied in diverse fields, including bioinformatics [49], econometrics [10], \n16 engineering [33], etc. A mixture model relies on a weighted sum of probability distributions—here \n17 referred to as components—to cluster $N$ unlabelled datapoints into $K$ categories. The traditional \n18 maximum likelihood techniques train the model by optimizing either (i) the marginal likelihood via \n19 gradient-descent [50] or (ii) the evidence lower bound via variational methods [4], including the \n20 expectation-maximization (EM) [13]. The dependence structure among approximate, variational, \n21 distributions then ranges from the fully independent (mean-field) [25] to fully dependent [30]. The \n22 sampling-based techniques target the posterior distribution using sequential Monte Carlo [9] or \n23 Markov chain Monte Carlo [52], e.g. via the Gibbs [34] or Metropolis-Hastings sampling [38]. The \n24 computational cost of these methods typically scales with $\\mathcal { O } ( T K N D )$ operations, where $N$ and $K$ \n25 are defined above, $T$ is the number of iterations and $D$ is the dimension of data. \n26 Various methods to decrease the computational cost via any factor in $\\mathcal { O } ( T K N D )$ have been proposed. \n27 $T$ can be lowered by proper initialization, e.g. the optimal seeding [5]; an efficient step-size schedule, \n28 e.g. the line-search [58]; or increased estimation precision, e.g. the variance reduction [8]. $N$ is often \n29 reduced using the coreset methods, which approximate the original dataset by a weighted dataset \n30 such that the exact and approximate marginal likelihoods are close. The weighted variants of the \n31 variational [17, 59, 6] and sampling-based [39] methods then process the coresets. Reducing $D$ relies \n32 on the compression of data into smaller representations via random projections [53, 2], which is \n33 achieved in two ways: (i) each data item is projected into an individual representation [11]; (ii) all \n34 data items are projected into an overall representation, commonly referred to as sketch [28, 22]. \n35 Nevertheless, all the aforementioned techniques—including those with reduced computational cost— \n36 evaluate all $K$ components. This is very demanding for large models, and the problem is even more \n37 severe for mixtures involving intricate models, such as neural networks [21, 42], Gaussian processes \n38 [57], normalizing flows [48]; or deep mixtures, including sum-product (transform) networks [45, 47], \n39 deep Gaussian mixture models [55], etc. In spite of this, a little attention has been paid to the design \n40 of algorithms which does not evaluate all $K$ components. The notable exceptions are the sparse EM \n41 algorithm [24] and the truncated variational EM algorithm [18], see Table 1 and Section 5 for details. \n42 Moreover, the methods are mostly tailored for a specific class of mixture models, e.g. the Gaussian \n43 mixture models. ",
63
+ "bbox": [
64
+ 147,
65
+ 570,
66
+ 825,
67
+ 736
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "",
74
+ "bbox": [
75
+ 145,
76
+ 742,
77
+ 825,
78
+ 867
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 148,
87
+ 873,
88
+ 828,
89
+ 901
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "table",
95
+ "img_path": "images/5e346a33d4bf96097d66d042d2edb3a796cd7475f2111dc5b8813d4424db6d24.jpg",
96
+ "table_caption": [
97
+ "Table 1: The computational features of various EM algorithms. We compare whether the methods (i) perform the computations with a reduced number of data (minibatching), (ii) update a lower number of statistics, (iii) make less evaluations of the conditional likelihood, and (iv) are suitable for training of deep models. Here, EM, SA, S, T, MC and MH stand for expectation-maximization, stochastic approximation, sparse, truncated, Monte Carlo and Metropolis-Hastings, respectively. "
98
+ ],
99
+ "table_footnote": [],
100
+ "table_body": "<table><tr><td>Feature/Algorithm</td><td>EM [13]</td><td>SAEM [44]</td><td>SSAEM [24]</td><td>TSAEM [18]</td><td>MCSAEM [1]</td><td>MHSAEM (ours)</td></tr><tr><td>B&lt;Ndatapoints</td><td>×</td><td></td><td></td><td>√</td><td></td><td></td></tr><tr><td>M&lt;K statistics</td><td>xx</td><td></td><td></td><td></td><td>厂</td><td></td></tr><tr><td>M&lt;Klikelihoods</td><td></td><td>xx</td><td>×</td><td></td><td>X</td><td></td></tr><tr><td>deep models</td><td>×</td><td>×</td><td>×</td><td>X</td><td>×</td><td></td></tr></table>",
101
+ "bbox": [
102
+ 222,
103
+ 165,
104
+ 774,
105
+ 244
106
+ ],
107
+ "page_idx": 1
108
+ },
109
+ {
110
+ "type": "text",
111
+ "text": "",
112
+ "bbox": [
113
+ 147,
114
+ 273,
115
+ 826,
116
+ 372
117
+ ],
118
+ "page_idx": 1
119
+ },
120
+ {
121
+ "type": "text",
122
+ "text": "44 In this paper, we make the following contributions: ",
123
+ "bbox": [
124
+ 147,
125
+ 377,
126
+ 509,
127
+ 392
128
+ ],
129
+ "page_idx": 1
130
+ },
131
+ {
132
+ "type": "text",
133
+ "text": "45 • We propose an EM-based algorithm which relies on the MH sampler to stochastically evaluate less \n46 components in mixture models, substantially reducing the computational cost. \n7 • We design our method to enable optimization of fairly generic EM objective functions, making it \n48 suitable for training of both shallow and deep mixture models. \n49 • We apply our approach to Gaussian mixture mdoels (GMMs) and their generalizations: sum \n50 product-transform networks (SPTNs) and mixtures of real-valued non-volume preserving (real \n51 NVP) flows [15], reaching approximately $1 0 0 \\times$ speed-up compared to state-of-the-art methods. ",
134
+ "bbox": [
135
+ 151,
136
+ 405,
137
+ 825,
138
+ 434
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "",
145
+ "bbox": [
146
+ 155,
147
+ 441,
148
+ 823,
149
+ 472
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "",
156
+ "bbox": [
157
+ 148,
158
+ 479,
159
+ 825,
160
+ 522
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "52 2 Problem formulation ",
167
+ "text_level": 1,
168
+ "bbox": [
169
+ 148,
170
+ 553,
171
+ 382,
172
+ 570
173
+ ],
174
+ "page_idx": 1
175
+ },
176
+ {
177
+ "type": "text",
178
+ "text": "A finite mixture model characterizes the relation between an observed (known) variable, 53 $\\boldsymbol { x } \\in \\times \\subseteq \\mathbb { R } ^ { D }$ , 54 and a latent (unknown) variable, $z \\in Z : = \\{ 1 , \\dots , K \\}$ , via the marginal (incomplete-data) likelihood 55 in the following form: ",
179
+ "bbox": [
180
+ 147,
181
+ 587,
182
+ 825,
183
+ 630
184
+ ],
185
+ "page_idx": 1
186
+ },
187
+ {
188
+ "type": "equation",
189
+ "img_path": "images/1fd8c64bc931f74af8171cacb46094a19b2d53d8b9408dc1581f5a44dfea91a9.jpg",
190
+ "text": "$$\np _ { \\theta } ( x ) = \\sum _ { k = 1 } ^ { K } p _ { \\eta _ { k } } ( x | z = k ) p _ { \\pi _ { k } } ( z = k ) ,\n$$",
191
+ "text_format": "latex",
192
+ "bbox": [
193
+ 369,
194
+ 633,
195
+ 627,
196
+ 678
197
+ ],
198
+ "page_idx": 1
199
+ },
200
+ {
201
+ "type": "text",
202
+ "text": "56 where $\\theta : = ( \\pi _ { 1 } , \\eta _ { 1 } , \\dots , \\pi _ { K } , \\eta _ { K } ) \\in \\Theta$ are unknown parameters. Here, $\\eta _ { z }$ are the parameters of the 57 conditional likelihood, $p _ { \\eta _ { z } } ( x | z )$ , and $\\pi _ { z }$ is the weight which parameterizes the prior, $p _ { \\pi _ { z } } ( z ) = \\pi _ { z }$ , and satisfies 58 $0 \\leq \\pi _ { k } \\leq 1$ for each $k \\in { \\mathord { \\mathbb { Z } } }$ and $\\textstyle \\sum _ { k = 1 } ^ { K } \\pi _ { k } = 1$ . ",
203
+ "bbox": [
204
+ 145,
205
+ 685,
206
+ 826,
207
+ 734
208
+ ],
209
+ "page_idx": 1
210
+ },
211
+ {
212
+ "type": "text",
213
+ "text": "59 Given a set of independent and identically distributed data, $\\mathbf { x } : = ( x _ { i } ) _ { i = 1 } ^ { N }$ , our goal is to learn the \n60 unknown parameters of the marginal log-likelihood, ",
214
+ "bbox": [
215
+ 148,
216
+ 739,
217
+ 825,
218
+ 770
219
+ ],
220
+ "page_idx": 1
221
+ },
222
+ {
223
+ "type": "equation",
224
+ "img_path": "images/3a533a8160c37e7b9fa1209ffe45b29c0eb14f6404e4bc9e51f2458ababc808c.jpg",
225
+ "text": "$$\n\\mathcal { L } ( \\theta ) : = \\log p _ { \\theta } ( \\mathbf { x } ) = \\sum _ { i = 1 } ^ { N } \\log \\sum _ { k = 1 } ^ { K } p _ { \\eta _ { k } } ( x _ { i } | z _ { i } = k ) p _ { \\pi _ { k } } ( z _ { i } = k ) .\n$$",
226
+ "text_format": "latex",
227
+ "bbox": [
228
+ 295,
229
+ 780,
230
+ 700,
231
+ 824
232
+ ],
233
+ "page_idx": 1
234
+ },
235
+ {
236
+ "type": "text",
237
+ "text": "61 The marginalization in (2) is tractable for almost all forms of $p _ { \\eta _ { z } } ( x | z )$ . Indeed, we consider $p _ { \\eta _ { z } } ( x | z )$ \n62 to belong to an arbitrary family of $\\eta _ { z }$ -differentiable probability distributions. However, we assume that \n63 $K$ is high, making the marginalization in (2) computationally costly, thus rendering the optimization \n64 objective presumably intractable. Therefore, we want to design a computationally efficient algorithm, \n65 requiring only $M < K$ evaluations of $p _ { \\eta _ { z } } ( x | z )$ at each iteration. \n67 The maximum likelihood estimation seeks the parameters maximizing the marginal log-likelihood, \n68 $\\theta ^ { M L } : = \\arg \\operatorname* { m a x } _ { \\theta \\in \\Theta } \\mathcal { L } ( \\theta )$ . The traditional EM algorithm [13] addresses this task indirectly, i.e. by \n69 optimizing the evidence lower bound (ELBO), ",
238
+ "bbox": [
239
+ 147,
240
+ 840,
241
+ 826,
242
+ 912
243
+ ],
244
+ "page_idx": 1
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "",
249
+ "bbox": [
250
+ 147,
251
+ 121,
252
+ 825,
253
+ 162
254
+ ],
255
+ "page_idx": 2
256
+ },
257
+ {
258
+ "type": "equation",
259
+ "img_path": "images/df55efbf1dd9a5a5ef40f11a29cb92a7c818d04135e3c849687eb5724cd486b5.jpg",
260
+ "text": "$$\n\\mathcal { L } ( \\theta ) \\geq \\mathcal { Q } ( \\theta ) + \\mathcal { H } ( \\hat { \\theta } ) : = \\mathrm { E L B O } ( \\hat { \\theta } ) ,\n$$",
261
+ "text_format": "latex",
262
+ "bbox": [
263
+ 379,
264
+ 170,
265
+ 619,
266
+ 189
267
+ ],
268
+ "page_idx": 2
269
+ },
270
+ {
271
+ "type": "text",
272
+ "text": "where 70 $\\mathcal { H } ( \\hat { \\theta } ) : = - \\mathsf E _ { p _ { \\hat { \\theta } } ( \\mathbf { z } | \\mathbf { x } ) } [ \\log p _ { \\hat { \\theta } } ( \\mathbf { z } | \\mathbf { x } ) ]$ is the differential entropy at an estimate, $\\hat { \\theta } \\in \\Theta$ , and ",
273
+ "bbox": [
274
+ 140,
275
+ 198,
276
+ 771,
277
+ 215
278
+ ],
279
+ "page_idx": 2
280
+ },
281
+ {
282
+ "type": "equation",
283
+ "img_path": "images/8dc49814f958acdf8ce0e11b963a6e6101e3e5d1439603310c411ba01588b3e9.jpg",
284
+ "text": "$$\n\\mathcal { Q } ( \\theta ) : = \\mathsf { E } _ { p _ { \\hat { \\theta } } ( \\mathbf { z } | \\mathbf { x } ) } [ \\log p _ { \\theta } ( \\mathbf { z } , \\mathbf { x } ) ] = \\sum _ { i = 1 } ^ { N } \\sum _ { k = 1 } ^ { K } p _ { \\theta } ( z _ { i } = k | x _ { i } ) \\log p _ { \\theta } ( z _ { i } = k , x _ { i } )\n$$",
285
+ "text_format": "latex",
286
+ "bbox": [
287
+ 254,
288
+ 222,
289
+ 743,
290
+ 267
291
+ ],
292
+ "page_idx": 2
293
+ },
294
+ {
295
+ "type": "text",
296
+ "text": "71 is the EM objective function. Here, $p _ { \\theta } ( \\mathbf { z } , \\mathbf { x } )$ is the joint (complete-data) likelihood, and $p _ { \\theta } ( \\mathbf { z } | \\mathbf { x } )$ is \n72 the posterior distribution over the latent variables $\\dot { \\mathbf { z } } : = ( z _ { i } ) _ { i = 1 } ^ { N }$ . Given an initial value, $\\theta _ { 0 }$ , the EM \n73 algorithm produces a sequence of estimates, $( \\theta _ { t } ) _ { t = 1 } ^ { T }$ , by alternating between the expectation (E) and \n74 maximization (M) steps, ",
297
+ "bbox": [
298
+ 145,
299
+ 273,
300
+ 825,
301
+ 332
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "equation",
307
+ "img_path": "images/b0f69e94b819f6dec2b2f46df7d892633bd8e60b66ed31dbb1985f882bcb2f60.jpg",
308
+ "text": "$$\n\\begin{array} { r l } & { \\mathrm { E \\mathrm { - } s t e p } ; ~ \\mathcal { Q } _ { t - 1 } ( \\theta ) , } \\\\ & { \\mathrm { M \\mathrm { - } s t e p } ; ~ \\theta _ { t } : = \\arg \\operatorname* { m a x } _ { \\theta \\in \\Theta } \\mathcal { Q } _ { t - 1 } ( \\theta ) . } \\end{array}\n$$",
309
+ "text_format": "latex",
310
+ "bbox": [
311
+ 387,
312
+ 337,
313
+ 607,
314
+ 382
315
+ ],
316
+ "page_idx": 2
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "75 This sequence is guaranteed to monotonically tighten the ELBO, arriving at a local optimum of (2) \n76 under mild regularity assumptions [56]. \n77 The EM algorithm is computationally expensive, since (4) evaluates $p _ { \\theta } ( z _ { i } , x _ { i } )$ for each $z _ { i } \\in \\mathbb { Z }$ and \n78 $i \\in ( 1 , \\ldots , N )$ . This has to be performed for all $t \\in ( 1 , \\ldots , T )$ in (5). Albeit the marginal factor, \n79 $p _ { \\pi _ { z } } ( z )$ , is just the cheap categorical distribution, the conditional factor, $p _ { \\eta _ { z } } ( x | z )$ , typically involves \n80 high-dimensional operations (e.g., the inversion of the full $D \\times D$ -dimensional covariance matrices \n81 in the GMMs). Moreover, the M-step (6) is also expensive for large $K$ . This holds despite that (6) \n82 can be reduced to closed-form updates of expected sufficient statistics for $p _ { \\eta _ { z } } ( x | z )$ belonging to the \n83 exponential family [44] (again, due to high $D$ ). All in all, the computational complexity of the EM \n84 algorithm scales with $\\mathcal { O } ( T D N K )$ . ",
321
+ "bbox": [
322
+ 143,
323
+ 388,
324
+ 825,
325
+ 417
326
+ ],
327
+ "page_idx": 2
328
+ },
329
+ {
330
+ "type": "text",
331
+ "text": "",
332
+ "bbox": [
333
+ 145,
334
+ 422,
335
+ 825,
336
+ 535
337
+ ],
338
+ "page_idx": 2
339
+ },
340
+ {
341
+ "type": "text",
342
+ "text": "If (6) cannot be computed under a closed-form solution, one can resort to direct gradient-descent optimization of $\\mathcal { Q } ( \\boldsymbol { \\theta } )$ , where arg max is replaced by one (or more) step(s) of a gradient descent technique. The EM algorithm is then referred to as the generalized EM algorithm [56]. ",
343
+ "bbox": [
344
+ 160,
345
+ 540,
346
+ 823,
347
+ 583
348
+ ],
349
+ "page_idx": 2
350
+ },
351
+ {
352
+ "type": "text",
353
+ "text": "88 4 The generalized MHSAEM algorithm ",
354
+ "text_level": 1,
355
+ "bbox": [
356
+ 148,
357
+ 602,
358
+ 521,
359
+ 619
360
+ ],
361
+ "page_idx": 2
362
+ },
363
+ {
364
+ "type": "text",
365
+ "text": "89 We design a version of the generalized EM algorithm suitable for scenarios where (4) can represent \n90 deep, discrete, latent variable models, thus being parameterized by possibly complex nonlinear \n91 transformations. We particularly focus on decreasing the the number of operations in the generalized \n92 EM algorithm from $\\mathcal { O } ( T D N K )$ to $\\mathcal { O } ( T D B M )$ , where $B \\ll N$ and $M \\ll K$ . ",
366
+ "bbox": [
367
+ 147,
368
+ 633,
369
+ 825,
370
+ 690
371
+ ],
372
+ "page_idx": 2
373
+ },
374
+ {
375
+ "type": "text",
376
+ "text": "4.1 E-step ",
377
+ "text_level": 1,
378
+ "bbox": [
379
+ 161,
380
+ 705,
381
+ 256,
382
+ 720
383
+ ],
384
+ "page_idx": 2
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "94 We reduce the cost of evaluating the EM objective function (4) by combining the minibatching (as \n95 used many times before) and the Monte Carlo sampling. Namely, the specific application of the latter \n96 to generic mixture models is the key contribution of this paper. \n97 Minibatching. At each iteration, $t$ , we compute the conditional expectation in (4) only for a subset— \n98 here referred to as a minibatch—of the original full dataset, i.e. $( x _ { i } ) _ { i \\in I }$ . Here, $I$ is a set of $B \\ll N$ \n99 indices, $i$ , sampled uniformly without replacement from $( 1 , \\ldots , \\dot { N } )$ . This substantially decreases the \n100 necessary computations compared to the full sweep over all $N$ datapoints [23]. \n101 Monte Carlo sampling. For each $i \\in I$ , we want to draw $M \\ll K$ random samples from $p _ { \\theta } ( z _ { i } | x _ { i } )$ in \n102 order to obtain a Monte Carlo estimate of (4). The straightforward way to do this would be to draw \n103 the samples directly from $p _ { \\theta } ( z _ { i } | x _ { i } )$ . However, direct sampling from $p _ { \\theta } ( z _ { i } | x _ { i } )$ does not lead to any \n104 substantial decrease in the number of operations. This is caused by the fact that even for a single \n105 sample of $z _ { i }$ , we have to first compute the normalizing factor, $p _ { \\theta } ( x _ { i } )$ , to obtaining the posterior, \n106 $p _ { \\theta } ( z _ { i } | x _ { i } )$ . This requires $K$ expensive evaluations of $p _ { \\theta } ( z _ { i } , x _ { i } )$ , which is precisely what we want to \n107 avoid. Our approach is to resort to the Markov chain Monte Carlo (MCMC), which allows us to \n108 sample from $p _ { \\theta } ( z _ { i } | x _ { i } )$ , with the computational complexity decreasing to only a single evaluation of \n109 $p _ { \\theta } ( z _ { i } , x _ { i } )$ per a single sample of $z _ { i }$ . \n110 MCMC methods obviate the computation of the normalizing factor in $p _ { \\theta } ( z _ { i } | x _ { i } )$ by simulating a \n111 Markov chain, $( z _ { i , t } ) _ { t = 1 } ^ { T }$ , from a transition kernel, $z _ { i , t } \\sim P ( z _ { i , t - 1 } , \\cdot )$ , which leaves $p _ { \\theta } ( z _ { i } | x _ { i } )$ as its \n112 unique stationary (invariant) distribution, starting from an initial value $z _ { i , 0 }$ . The specific form of $P$ \n113 determines the structure of an MCMC method. We chose the Metropolis-Hastings (MH) sampler, \n114 which represents $P ( z _ { i , t - 1 } , z _ { i , t } )$ as follows: given $\\bar { z } _ { i } : = z _ { i , t - 1 }$ , draw a sample from the proposal \n115 distribution $z _ { i } \\sim q ( \\cdot | \\bar { z } _ { i } )$ , compute the acceptance ratio, ",
389
+ "bbox": [
390
+ 147,
391
+ 731,
392
+ 825,
393
+ 773
394
+ ],
395
+ "page_idx": 2
396
+ },
397
+ {
398
+ "type": "text",
399
+ "text": "",
400
+ "bbox": [
401
+ 147,
402
+ 779,
403
+ 825,
404
+ 835
405
+ ],
406
+ "page_idx": 2
407
+ },
408
+ {
409
+ "type": "text",
410
+ "text": "",
411
+ "bbox": [
412
+ 142,
413
+ 842,
414
+ 825,
415
+ 911
416
+ ],
417
+ "page_idx": 2
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "",
422
+ "bbox": [
423
+ 140,
424
+ 90,
425
+ 825,
426
+ 147
427
+ ],
428
+ "page_idx": 3
429
+ },
430
+ {
431
+ "type": "text",
432
+ "text": "",
433
+ "bbox": [
434
+ 140,
435
+ 152,
436
+ 825,
437
+ 238
438
+ ],
439
+ "page_idx": 3
440
+ },
441
+ {
442
+ "type": "equation",
443
+ "img_path": "images/4e2865ff49fb5c3c34577e0a148cbc695663514dff1302f39bca47fd492f0e3e.jpg",
444
+ "text": "$$\n\\alpha ( \\bar { z } _ { i } , z _ { i } ) : = \\operatorname* { m i n } \\biggr \\{ 1 , \\frac { p _ { \\eta _ { z _ { i } , t - 1 } } ( x _ { i } | z _ { i } ) \\pi _ { z _ { i } , t - 1 } q ( \\bar { z } _ { i } | z _ { i } ) } { p _ { \\eta _ { \\bar { z } _ { i } , t - 1 } } ( x _ { i } | \\bar { z } _ { i } ) \\pi _ { \\bar { z } _ { i } , t - 1 } q ( z _ { i } | \\bar { z } _ { i } ) } \\biggr \\} ,\n$$",
445
+ "text_format": "latex",
446
+ "bbox": [
447
+ 321,
448
+ 241,
449
+ 676,
450
+ 279
451
+ ],
452
+ "page_idx": 3
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "116 and, if $u < \\alpha \\big ( \\bar { z } _ { i } , z _ { i } \\big )$ —where $u$ is drawn from a uniform distribution, Uniform $( 0 , 1 )$ —accept the \n117 sample and set $z _ { i , t } = z _ { i }$ ; otherwise, set $z _ { i , t } = \\bar { z } _ { i }$ . For each $i \\in I$ and $t \\in ( 1 , \\ldots , T )$ , we repeat \n118 this process $M$ times, construing a set $\\mathbf { z } _ { i , t } = ( z _ { i , t } ^ { 1 } , \\dots , z _ { i , t } ^ { M } )$ . Therefore, at every current iteration, \n119 120 $t$ , we caking $\\bar { z } _ { i } = z _ { i , t - 1 } ^ { M }$ extend the chain from the point where we left at the previous iteration, . Under mild regularity assumptions [52], the chain passes the transiti $t - 1$ , byriod \n121 (the burn-in phase), and the samples can then be used to approximate the conditional expectation in \n122 (4) as follows: ",
457
+ "bbox": [
458
+ 140,
459
+ 282,
460
+ 825,
461
+ 382
462
+ ],
463
+ "page_idx": 3
464
+ },
465
+ {
466
+ "type": "equation",
467
+ "img_path": "images/e43005c66ee8eb883ede3aeefb994947aa4f14879ab1b3689fc3176b2f635909.jpg",
468
+ "text": "$$\n\\widehat { \\mathcal { Q } } _ { t - 1 } ( \\theta ) = \\frac { 1 } { M } \\sum _ { i \\in I } \\sum _ { z \\in \\mathbf { z } _ { i , t } } \\log p _ { \\eta _ { z } } ( x _ { i } | z ) \\pi _ { z } .\n$$",
469
+ "text_format": "latex",
470
+ "bbox": [
471
+ 359,
472
+ 378,
473
+ 637,
474
+ 419
475
+ ],
476
+ "page_idx": 3
477
+ },
478
+ {
479
+ "type": "text",
480
+ "text": "123 Note that, to ensure this approach is truly efficient, we have to draw only $M \\ll K$ samples at each \n124 iteration, $t$ ; otherwise, for $M \\approx K$ , we may rather compute the exact marginalization in (4), since it \n125 is tractable (but computationally costly). ",
481
+ "bbox": [
482
+ 142,
483
+ 420,
484
+ 825,
485
+ 463
486
+ ],
487
+ "page_idx": 3
488
+ },
489
+ {
490
+ "type": "text",
491
+ "text": "4.2 M-step ",
492
+ "text_level": 1,
493
+ "bbox": [
494
+ 166,
495
+ 478,
496
+ 263,
497
+ 493
498
+ ],
499
+ "page_idx": 3
500
+ },
501
+ {
502
+ "type": "text",
503
+ "text": "127 Assume for a moment that (6) with $\\mathcal { Q } _ { t - 1 } ( \\theta )$ given by (8) has a closed-form solution, yielding an \n128 estimate of $\\theta$ . Such an estimate would have a high variance, converging only for $M \\to \\infty$ and \n129 $T \\to \\infty$ [19]. The main reason is that the samples would not be reused over the iterations, $t$ , \n130 thus wasting computational resources. We consider that there is no closed-form solution of (6), \n131 and—to ensure that the samples (and thus computations) are recycled over the iterations—we use \n132 the stochastic approximation (SA) [51] to optimize (8). This is analogous to applying a stochastic \n133 gradient-descent method, $\\theta _ { t } = \\theta _ { t - 1 } + \\gamma _ { t } \\nabla _ { \\theta } \\tilde { \\mathcal { Q } } _ { t - 1 } ( \\theta )$ , where $\\gamma _ { t }$ is the step-size, satisfying the Robbins \n134 Monro constraints, $\\begin{array} { r } { \\gamma _ { t } \\in [ 0 , 1 ] , \\sum _ { t \\geq 1 } \\gamma _ { t } = \\infty , \\sum _ { t \\geq 1 } \\gamma _ { t } ^ { 2 } < \\infty , } \\end{array}$ and $\\nabla _ { \\theta }$ is the gradient w.r.t. $\\theta$ . In this \n135 way, the computations made in $\\nabla _ { \\boldsymbol { \\theta } } \\widehat { \\mathcal { Q } }$ are accumulated via $\\theta _ { t }$ and reused over the iterations. \n136 The parameters $\\eta _ { z }$ have a different form based on a specific case of $p _ { \\eta _ { z } } ( x | z )$ , whereas $\\pi _ { z }$ is a \n137 permanent structure in (1). Therefore, without loss of generality, we split (6) into a generic part and a \n138 fixed part as follows: ",
504
+ "bbox": [
505
+ 140,
506
+ 502,
507
+ 826,
508
+ 636
509
+ ],
510
+ "page_idx": 3
511
+ },
512
+ {
513
+ "type": "text",
514
+ "text": "",
515
+ "bbox": [
516
+ 143,
517
+ 641,
518
+ 828,
519
+ 684
520
+ ],
521
+ "page_idx": 3
522
+ },
523
+ {
524
+ "type": "equation",
525
+ "img_path": "images/e1b6543f038daf2078a131f2fa387f7478babb5133579989565df178123b0c85.jpg",
526
+ "text": "$$\n\\begin{array} { r l } & { \\eta _ { k , t } = \\eta _ { k , t - 1 } + \\gamma _ { t } \\nabla _ { \\eta _ { k } } \\widehat { \\mathcal { Q } } _ { t - 1 } ( \\theta ) , } \\\\ & { \\nu _ { k , t } = \\nu _ { k , t - 1 } + \\gamma _ { t } \\nabla _ { \\nu _ { k } } \\widehat { \\mathcal { Q } } _ { t - 1 } ( \\theta ) , } \\end{array}\n$$",
527
+ "text_format": "latex",
528
+ "bbox": [
529
+ 390,
530
+ 688,
531
+ 606,
532
+ 732
533
+ ],
534
+ "page_idx": 3
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "139 where—to ensure that the probabilities, $( \\pi _ { k , t } ) _ { k = 1 } ^ { K }$ , satisfy the constraints (Section 2)—we transform \n140 $\\nabla _ { \\pi _ { k } } \\widehat { \\mathcal { Q } }$ via $\\nu _ { k } = \\log \\pi _ { k }$ and optimize w.r.t. $\\nu _ { k }$ . Then, to obtain $( \\pi _ { k , t } ) _ { k = 1 } ^ { K }$ from $\\nu _ { t } : = ( \\nu _ { k , t } ) _ { k = 1 } ^ { K }$ , we \n141 k b use the softmax function, i.e. $\\pi _ { k , t } : = \\mathrm { s o f t m a x } ( \\pmb { \\nu } _ { t } ) _ { k } : = \\exp ( \\nu _ { k , t } ) / \\sum _ { l = 1 } ^ { K } \\exp ( \\nu _ { l , t } )$ . ",
539
+ "bbox": [
540
+ 142,
541
+ 734,
542
+ 825,
543
+ 787
544
+ ],
545
+ "page_idx": 3
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "Computing the gradients for all pairs of $( \\nu _ { k } , \\eta _ { k } ) _ { k = 1 } ^ { K }$ would be inefficient, especially since ${ \\bf z } _ { i , t }$ contains only a small number of unique values of Z for $M \\ll K$ . Consequently, we compute $\\dot { \\nabla } _ { \\eta _ { k } } \\widehat { \\mathcal { Q } }$ and $\\nabla _ { \\nu _ { k } } \\widehat { \\mathcal { Q } }$ only for $k \\in { \\mathrm { u n i q u e } } ( \\mathbf { z } _ { i , t } )$ . We summarize the proposed approach in Algorithm 1. ",
550
+ "bbox": [
551
+ 160,
552
+ 792,
553
+ 825,
554
+ 843
555
+ ],
556
+ "page_idx": 3
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "4.3 Proposal distribution ",
561
+ "text_level": 1,
562
+ "bbox": [
563
+ 171,
564
+ 857,
565
+ 361,
566
+ 872
567
+ ],
568
+ "page_idx": 3
569
+ },
570
+ {
571
+ "type": "text",
572
+ "text": "146 The choice of the proposal distribution has a significant impact on the speed of convergence and the computational cost of the proposed algorithm. Here, we discuss various possible choices of 147 $q \\big ( z _ { i } | \\bar { z } _ { i } \\big )$ . ",
573
+ "bbox": [
574
+ 145,
575
+ 882,
576
+ 828,
577
+ 912
578
+ ],
579
+ "page_idx": 3
580
+ },
581
+ {
582
+ "type": "text",
583
+ "text": "Input: $\\theta _ { 0 }$ , $( \\mathbf { z } _ { i , 0 } ) _ { i = 1 } ^ { N }$ , $( \\mathbf { x } _ { i } ) _ { i = 1 } ^ { N }$ \nOutput: $( \\theta _ { t } ) _ { t = 1 } ^ { T }$ for $t \\in ( 1 , \\ldots , T )$ or until convergence do form the set $\\dot { I } = ( i _ { j } ) _ { j = 1 } ^ { B }$ by sampling (without replacement) $B$ indices $i \\sim ( 1 , \\dots , N )$ for $i \\in I$ do set $\\bar { z } _ { i }$ as the last element of $\\mathbf { z } _ { i , t - 1 }$ for $j \\in ( 1 , \\ldots , M )$ do sample $z _ { i } \\sim q ( z _ { i } | \\bar { z } _ { i } )$ sample $u \\sim \\mathrm { U n i f o r m } ( 0 , 1 )$ compute $\\alpha ( \\bar { z } _ { i } , z _ { i } )$ in (7) if $u < \\alpha \\big ( \\bar { z } _ { i } , z _ { i } \\big )$ then set $z _ { i , t } ^ { j } = z _ { i }$ and $\\bar { z } _ { i } = z _ { i }$ else set $z _ { i , t } ^ { j } = \\bar { z } _ { i }$ end if end for set $\\mathbf { z } _ { i , t } = ( z _ { i , t } ^ { 1 } , \\dots , z _ { i , t } ^ { M } )$ end for compute (8) compute (9) for $k \\in { \\mathrm { u n i q u e } } ( \\mathbf { z } _ { i , t } )$ compute $\\pi _ { k , t } : = \\mathrm { s o f t m a x } ( \\pmb { \\nu } _ { t } ) _ { k }$ for $k \\in { \\mathord { \\mathbb { Z } } }$ end for ",
584
+ "bbox": [
585
+ 173,
586
+ 108,
587
+ 787,
588
+ 421
589
+ ],
590
+ "page_idx": 4
591
+ },
592
+ {
593
+ "type": "text",
594
+ "text": "148 Optimal proposal $( O )$ . The optimal proposal distribution is $q ( z _ { i } | \\bar { z } _ { i } ) : = q ( z _ { i } ) : = p _ { \\theta } ( z _ { i } | x _ { i } )$ . This \n149 ensures that the acceptance rate (7) is always $\\alpha ( \\bar { z } _ { i } , z _ { i } ) = 1$ . However, the need to perform $K$ \n150 expensive evaluations of $p _ { \\theta } ( z _ { i } , x _ { i } )$ before sampling from $p _ { \\theta } ( z _ { i } | x _ { i } )$ is the reason we resorted to \n151 the MH sampler in the first place. We consider this case only to set the upper limit on admissible \n152 computational cost and to study the impact of sub-optimal proposal distribtions. \n153 Uniform proposal $( U )$ . The uniform distribution on the discrete interval from 1 to $K$ , i.e. $q ( z _ { i } | \\bar { z } _ { i } ) : =$ \n154 $q ( z _ { i } ) : = \\mathrm { U n i f o r m } ( 1 , K )$ , is the simplest and computationally cheapest variant of the proposal \n155 distribution. However, due to poor mixing properties, the algorithm may converge slowly for high $K$ . \n156 Tabular proposal with forgetting $( T F )$ . The key requirement to design a proposal distribution is to \n157 restrict its computational complexity somewhere between that of the $\\mathrm { U }$ and $\\mathrm { o }$ proposals. One way to \n158 satisfy this constraint is to use the Markov chain, $( z _ { i , t } ) _ { t = 1 } ^ { T }$ , to learn a transition kernel, $p ( z _ { i } | \\bar { z } _ { i } )$ , see, \n159 e.g. [3]. Unfortunately, this would require us to store a table with $K ^ { 2 }$ entries for each $i \\in ( 1 , \\ldots , N )$ , \n160 161 which is very demanding evethe Markov chain and define: $q ( z _ { i } | \\bar { z } _ { i } ) : = q _ { \\alpha _ { i } } ( z _ { i } ) : = \\mathcal { C } ( \\alpha _ { i } )$ $K$ $N$ herefore, where $\\mathcal { C } ( \\pmb { \\alpha } _ { i } ) \\propto \\Pi _ { k = 1 } ^ { K } \\alpha _ { k , i } ^ { \\bar { 1 ( } z _ { i } = k ) }$ nce inis the \n162 categorical distribution with the weights $\\pmb { \\alpha } _ { i } : = ( \\alpha _ { 1 , i } , \\dots , \\alpha _ { K , i } )$ . For $\\mathcal { L } ( \\pmb { \\alpha } _ { i } ) : = \\Sigma _ { \\tau = 1 } ^ { t } \\log q _ { \\pmb { \\alpha } _ { i } } ( z _ { i , \\tau } )$ \n163 we obtain an estimate of $\\alpha _ { i }$ at iteration $t$ as follows: $\\begin{array} { r } { \\alpha _ { i , t } : = \\mathrm { \\ a r g m a x } _ { \\alpha _ { i } } \\mathcal L ( \\alpha _ { i } ) \\ = \\ \\frac { n _ { i , t } } { t } } \\end{array}$ t , with \n164 $n _ { i , t } = \\Sigma _ { \\tau = 1 } ^ { t } \\mathbf { e } _ { z _ { i , t } }$ , where $\\mathbf { e } _ { k }$ is the standard basis vector (a one-hot vector) with one at $k$ th position \n165 and zeros otherwise. This can be further rewritten into a recursive form: $n _ { i , t } = n _ { i , t - 1 } + \\mathbf { e } _ { z _ { i , t } }$ or, \n166 using the Robbins-Monro step-size, $n _ { i , t } = ( { \\bf 1 } - { \\bf e } _ { z _ { i , t } } \\gamma _ { t } ) \\odot n _ { i , t - 1 } + \\gamma _ { t } { \\bf e } _ { z _ { i , t } }$ , where 1 is the vector of \n167 ones, and $\\odot$ is the Hadamard product. We refer to this case simply as “table with forgetting” (TF) \n168 due to that it represents $N \\times K$ table in the memory and $\\gamma _ { t }$ is a forgetting factor. ",
595
+ "bbox": [
596
+ 140,
597
+ 449,
598
+ 825,
599
+ 518
600
+ ],
601
+ "page_idx": 4
602
+ },
603
+ {
604
+ "type": "text",
605
+ "text": "",
606
+ "bbox": [
607
+ 142,
608
+ 525,
609
+ 826,
610
+ 568
611
+ ],
612
+ "page_idx": 4
613
+ },
614
+ {
615
+ "type": "text",
616
+ "text": "",
617
+ "bbox": [
618
+ 140,
619
+ 573,
620
+ 826,
621
+ 763
622
+ ],
623
+ "page_idx": 4
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "169 5 Related work ",
628
+ "text_level": 1,
629
+ "bbox": [
630
+ 145,
631
+ 782,
632
+ 316,
633
+ 799
634
+ ],
635
+ "page_idx": 4
636
+ },
637
+ {
638
+ "type": "text",
639
+ "text": "Stochastic approximation expectation-maximization. The application of SA to prevent the evaluation \n1 of all $K$ components in mixture models has been overlooked for a long time. The reason is that the \n72 original motivation to combine the EM algorithm with SA is to address the analytical intractability \n73 of the expected value under $p _ { \\theta } ( z | x )$ in (4), which is, however, almost always tractable for mixture \n74 models. The intractability issue is addressed by either the Monte Carlo SAEM (MCSAEM) [12] \n75 or the Markov chain Monte Carlo SAEM (MCMCSAEM) [31]. Applying the former approach to \n76 mixture models would be inefficient, since it evaluates $K$ joint distributions, $p _ { \\theta } ( z , x )$ , before drawing \n177 $M$ samples from $p _ { \\theta } ( z | x )$ . Therefore, this method reduces only the computational cost of updating the \n178 sufficient statistics. This is addressed by the latter approach, where $M < K$ samples from a proposal \n179 distribution, $q ( z | x )$ , is used to calculate $p _ { \\theta } ( z , x )$ and also the sufficient statistics. However, all these \n180 methods process all data at every iteration, providing only a limited advantage over the conventional \n181 EM algorithm. Minibatch versions of these techniques have recently been proposed [27, 32, 1]. \n182 All the above methods commonly assume $p _ { \\theta } ( z , x )$ belonging to the exponential family. This provides \n183 a convenient, but limiting, property which allows (6) to be computed under a closed-form solution. \n184 The main contribution of our work is to release this restrictive assumption by admitting that $p _ { \\theta } ( z , x )$ \n185 (and thus $\\mathcal { Q }$ ) is given by possibly complex and intractable transformations. \n186 Sparse and truncated variational techniques. There is only a small body of methods explicitly \n187 reducing the number of evaluated components. Their common aspect is that they follow from the \n188 variational framework, where the exact posterior, $p _ { \\theta } ( z | x )$ , is approximated by a variational posterior, \n189 $q ( z | x )$ . This sparse, approximate, posterior is defined over a lower number of components, $M \\ll K$ , \n190 such that only the important components are selected, relying on relaxation of the hard EM algorithm \n191 from taking a single $M = 1$ assignment [26] to taking multiple $M \\ll K$ assignments. The sparse \n192 SAEM (SSAEM) algorithm [24] selects the components by a quick partial sorting of the posterior \n193 probabilities, $p _ { \\theta } ( z | x )$ . Again, this requires $K$ evaluations of $p _ { \\theta } ( z , x )$ before the sorting, thus only \n194 reducing the amount of updated statistics. Similarly, the truncated SAEM (TSAEM) algorithm [18] \n195 selects $M < K$ cluster-to-cluster and $\\bar { M } < K$ cluster-to-datapoint minimal Euclidean distances, \n196 preventing the problem in the SSAEM algorithm. However, all these distances are evaluated for all \n197 components in a pairwise manner, leading to $K ^ { 2 }$ -computational complexity, which makes the saving \n198 dubious. Similarly as before, these methods assume $p _ { \\theta } ( z , x )$ to belong to the exponential family. ",
640
+ "bbox": [
641
+ 155,
642
+ 814,
643
+ 823,
644
+ 911
645
+ ],
646
+ "page_idx": 4
647
+ },
648
+ {
649
+ "type": "image",
650
+ "img_path": "images/0c516376ee7ecf27c7edaec6674fb19224d829bc10798ac37d421adee064aa0e.jpg",
651
+ "image_caption": [
652
+ "Figure 1: The training log-likelihood, $\\mathcal { L } ( \\boldsymbol { \\theta } _ { t } )$ , versus the computational time (in seconds). Here, on the $\\mathbf { X }$ -axis, the computational time at a current iteration, $t$ , is obtained by accumulating the time from the previous iterations. corresponds to $\\mathcal { L } ( \\boldsymbol { \\theta } _ { t _ { 9 5 } } )$ , where $t _ { 9 5 }$ is the iteration of reaching $9 5 \\%$ of max $\\mathcal { L } ( \\boldsymbol { \\theta } _ { t } )$ . The projection of $^ { \\circ }$ on the $\\mathbf { X }$ -axis gives the time to reach $\\mathcal { L } ( \\boldsymbol { \\theta } _ { t _ { 9 5 } } )$ . This experiment was performed with the following settings: $( D , \\bar { K } , N , \\omega , B , M , T ) = ( 1 0 , 1 0 0 , 1 0 k , 0 . 1 , \\bar { 2 } 0 0 , 2 , 2 0 k )$ , see Section 6.1 for details. The results are averaged over five repetitions. "
653
+ ],
654
+ "image_footnote": [],
655
+ "bbox": [
656
+ 285,
657
+ 92,
658
+ 699,
659
+ 236
660
+ ],
661
+ "page_idx": 5
662
+ },
663
+ {
664
+ "type": "text",
665
+ "text": "",
666
+ "bbox": [
667
+ 142,
668
+ 356,
669
+ 825,
670
+ 426
671
+ ],
672
+ "page_idx": 5
673
+ },
674
+ {
675
+ "type": "text",
676
+ "text": "",
677
+ "bbox": [
678
+ 142,
679
+ 433,
680
+ 825,
681
+ 488
682
+ ],
683
+ "page_idx": 5
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "",
688
+ "bbox": [
689
+ 140,
690
+ 494,
691
+ 826,
692
+ 674
693
+ ],
694
+ "page_idx": 5
695
+ },
696
+ {
697
+ "type": "text",
698
+ "text": "199 We summarize the distinguishing features of the above discussed methods in Table 1. ",
699
+ "bbox": [
700
+ 151,
701
+ 680,
702
+ 728,
703
+ 695
704
+ ],
705
+ "page_idx": 5
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "6 Experiments ",
710
+ "text_level": 1,
711
+ "bbox": [
712
+ 166,
713
+ 714,
714
+ 312,
715
+ 731
716
+ ],
717
+ "page_idx": 5
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "To demonstrate the key features of our algorithm—its low computational complexity, competitive learning performance, and generality—we use it below to train: (i) GMMs on synthetic datasets, and (ii) SPTNs [47] and (iii) mixtures of real NVP flows [48] on real datasets. All experiments have been performed on a Slurm cluster equipped with Intel Xeon Scalable Gold 6146 with 384GB of RAM. ",
722
+ "bbox": [
723
+ 174,
724
+ 744,
725
+ 825,
726
+ 800
727
+ ],
728
+ "page_idx": 5
729
+ },
730
+ {
731
+ "type": "text",
732
+ "text": "6.1 Gaussian mixture models ",
733
+ "text_level": 1,
734
+ "bbox": [
735
+ 171,
736
+ 816,
737
+ 388,
738
+ 830
739
+ ],
740
+ "page_idx": 5
741
+ },
742
+ {
743
+ "type": "text",
744
+ "text": "Consider the special case of a data-generating distribution given by (1), with the components taking the form of the multivariate Gaussian distribution, $p _ { \\eta _ { z } } ( x | z ) = \\mathcal { N } ( x ; \\mu _ { z } , \\Sigma _ { z } )$ , where $\\mu _ { z }$ is the mean value and $\\Sigma _ { z }$ is the covariance matrix. The difficulty of learning GMMs heavily depends on the degree of interaction among all mixture components, hence having the ability to generate synthetic datasets with arbitrary overlap characteristics between all pairs of components is crucial for systematic ",
745
+ "bbox": [
746
+ 173,
747
+ 842,
748
+ 823,
749
+ 911
750
+ ],
751
+ "page_idx": 5
752
+ },
753
+ {
754
+ "type": "image",
755
+ "img_path": "images/0ced572977ae404a4e785379dc4987ce758b6f6930ca4d73adbe35955ed678b7.jpg",
756
+ "image_caption": [
757
+ "Figure 2: The absolute error, $\\mathrm { A E } = | \\mathcal { L } ( \\theta _ { t _ { 9 5 } } ) - \\mathcal { L } ( \\theta ) |$ , versus the computational time (in seconds). All experiments use the following settings: $( D , K , \\dot { N } , \\omega , B , M , T ) = \\bar { ( } 1 0 , 1 0 0 , 1 0 k , 0 . 1 , 2 0 0 , 2 , 2 0 k )$ , where the number of components, $K$ , (left), the batchsize, $B$ , (middle) and the number of samples, $M$ , (right) change for different values denoted by $( + , \\sqsupset , \\circ , \\pmb { \\triangle } )$ . At each of these points (marks), we perform an experiment as illustrated in Figure 1, find $\\mathcal { L } ( \\boldsymbol { \\theta } _ { t _ { 9 5 } } )$ to compute the AE, and record the time corresponding to $t _ { 9 5 }$ . The results are averaged over five repetitions. "
758
+ ],
759
+ "image_footnote": [],
760
+ "bbox": [
761
+ 196,
762
+ 89,
763
+ 805,
764
+ 250
765
+ ],
766
+ "page_idx": 6
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "211 evaluation of performance of learning algorithms [43]. Traditional techniques usually define overlap \n212 (or separation) of components only in terms of their mean vectors and maximum eigenvalues of the \n213 covariance matrices, not accounting for their rotation and mixing weights (see [36] for a detailed \n214 treatment of the problem). We therefore use a more objective measure of the clustering complexity \n215 defined by the total probability of misclassification [41], which allows to generate data with a \n216 user-defined degree of maximum pairwise overlap, $\\omega$ . \n217 Experiment settings: We generate the parameters of (1), and the corresponding dataset, uniquely for a \n218 given quadruple $( D , K , N , \\omega )$ . Therefore, the parameters of the generative model are known and we \n219 can measure and display the convergence of the training log-likelihood, $\\mathcal { L } ( \\boldsymbol { \\theta } _ { t } )$ , compared to the exact \n220 log-likelihood, $\\mathcal { L } ( \\boldsymbol { \\theta } ) \\dot { }$ , for $t = ( 1 , \\ldots , T )$ . We are further interested in the absolute error between the \n221 training log-likelihood at the iteration of reaching $9 5 \\%$ of its maximum value, $t _ { 9 5 }$ , and the exact \n222 log-likelihood, i.e. $\\mathrm { A E } = | \\mathcal { L } ( \\theta _ { t _ { 9 5 } } ) - \\mathcal { L } ( \\theta ) |$ . \n23 We also measure the computational time until reaching $t _ { 9 5 }$ . We have used $9 5 \\%$ of the maximum \n24 value instead of the maximum value to prevent cases, where the model oscillate around target value, \n25 making the estimate of convergence time very noisy (for example MCSAEM in Figure 1). \n226 Algorithms: The GMMs belong to the exponential family of probability distributions. This allows us \n227 to find a closed-form, recursive, solution of (6), relying on a Robbins-Monro type of the step-size \n228 sequence, $( \\gamma _ { t } ) _ { t = 1 } ^ { T }$ , [7, 44]. In this setting, we compare our MHSAEM algorithm with a number of \n229 related methods in Table 1. Note we use the acronyms U and TF to specify the proposal distribution of \n230 the MHSAEM algorithm (Section 4.3). However, we do not use the O-proposal, since the MHSAEM \n231 O algorithm is equivalent to the MCSAEM algorithm. All the SA-variants in Table 1 use a minibatch \n232 of size $B$ . The key quantity to reduce the number of evaluated components and/or sufficient statistics \n233 in the SSAEM, TSAEM, MCSAEM and MHSAEM algorithms is collectively denoted by $M$ (Section \n234 5). Note that we always keep $M = \\bar { M }$ in the TSAEM algorithm (see Figure 1 and 2 for concrete \n235 numbers). We use the step-size given by $\\gamma _ { t } = 1$ for $t = 1 , \\ldots , 5 0$ and $\\gamma _ { t } = 0 . 0 5$ otherwise. In \n236 this section, to counteract the issue of attaining poor local optima, we equip all algorithms with the \n237 anti-annealing schedule $( \\beta _ { t } ) _ { t = 1 } ^ { T }$ , starting with $\\beta _ { 1 } = 0 . 1$ , reaching $\\beta _ { 2 / 3 T } = 1 . 2$ , and decreasing back \n238 to $\\beta _ { T } = 1 . 0$ , see [43] for details. The initial estimates of: (i) $\\mu _ { k }$ are uniformly drawn from the unit \n239 hyper-cube, (ii) $\\Sigma _ { k }$ are fixed to unit diagonal matrix, and (iii) $\\pi _ { k }$ are uniformly drawn from the unit \n240 interval (followed by normalization). \n241 Results: Figure 1 shows that the EM [13] and SAEM [44] algorithms take the longest time to \n242 converge, attaining a poor local optima. On the other hand, the MCSAEM [1] and MHSAEM (U \n243 and TF) algorithms achieve $\\mathcal { L } ( \\boldsymbol { \\theta } _ { t _ { 9 5 } } )$ closest to the likelihood $\\mathcal { L } ( \\boldsymbol { \\theta } )$ of the true model. Moreover, both \n244 MHSAEM algorithms reach this value in the shortest time compared to all the other methods. The \n245 SSAEM [24] and TSAEM [18] algorithms are comparable in terms of the computational time, but \n246 they both provide the lowest $\\mathcal { L } ( \\boldsymbol { \\theta } _ { t _ { 9 5 } } )$ . In Figure 2, we investigate sensitivity of fitting the model to \n47 increasing values of $K$ , $B$ and $M$ by measuring the time and the likelihood again. In all the cases, \n48 the proposed MHSAEM algorithms achieve the lowest AE in the shortest time. ",
771
+ "bbox": [
772
+ 140,
773
+ 387,
774
+ 825,
775
+ 470
776
+ ],
777
+ "page_idx": 6
778
+ },
779
+ {
780
+ "type": "text",
781
+ "text": "",
782
+ "bbox": [
783
+ 140,
784
+ 477,
785
+ 825,
786
+ 561
787
+ ],
788
+ "page_idx": 6
789
+ },
790
+ {
791
+ "type": "text",
792
+ "text": "",
793
+ "bbox": [
794
+ 156,
795
+ 566,
796
+ 826,
797
+ 608
798
+ ],
799
+ "page_idx": 6
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "",
804
+ "bbox": [
805
+ 140,
806
+ 614,
807
+ 826,
808
+ 821
809
+ ],
810
+ "page_idx": 6
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "",
815
+ "bbox": [
816
+ 140,
817
+ 828,
818
+ 825,
819
+ 912
820
+ ],
821
+ "page_idx": 6
822
+ },
823
+ {
824
+ "type": "text",
825
+ "text": "",
826
+ "bbox": [
827
+ 151,
828
+ 90,
829
+ 825,
830
+ 119
831
+ ],
832
+ "page_idx": 7
833
+ },
834
+ {
835
+ "type": "text",
836
+ "text": "SSAEM and TSAEM algorithms failed to converge for $M > 2$ and for $K > 5 0$ respectively. We believe this is caused by selecting only $M$ maximal probabilities in the SSAEM (or distances in the TSAEM) algorithm (Section 5), which prevents certain, but not a negligible number of, components from being updated, thus providing only a crude approximation of $\\bar { p } _ { \\theta } \\bar { ( } z | x )$ . The results then suffer from substantial variational gap to the exact log-likelihood (Figure 1). On the contrary, MH sampler provides samples which consistently approximate $p _ { \\theta } ( z | x )$ despite evaluating much lower number of components in each step. ",
837
+ "bbox": [
838
+ 173,
839
+ 126,
840
+ 825,
841
+ 223
842
+ ],
843
+ "page_idx": 7
844
+ },
845
+ {
846
+ "type": "text",
847
+ "text": "6.2 Sum-product transform networks ",
848
+ "text_level": 1,
849
+ "bbox": [
850
+ 166,
851
+ 239,
852
+ 446,
853
+ 253
854
+ ],
855
+ "page_idx": 7
856
+ },
857
+ {
858
+ "type": "text",
859
+ "text": "The sum product networks (SPNs) are a deep learning extension of finite mixture models. They can be interpreted as a mixture of trees [60], where each tree corresponds to a component. Therefore, they can be cast into the form of (1), but the number of components grows exponentially with their depth. In this section, we use recently proposed SPTNs which introduce additional transformation nodes to provide better expressiveness than the SPNs (SPTNs effectively generalize SPNs and flow models into one large family of models). ",
860
+ "bbox": [
861
+ 173,
862
+ 265,
863
+ 825,
864
+ 348
865
+ ],
866
+ "page_idx": 7
867
+ },
868
+ {
869
+ "type": "text",
870
+ "text": "Experimental settings: We use 19 real datasets from the UCI database [16, 37, 35, 54], preprocessed in the same way as in [46]. For each experiment, we randomly split the data into $64 \\%$ , $16 \\%$ and $20 \\%$ for training, validation and testing, respectively. We calculate the average log-likelihood on the test set and measure again the time to reach $9 5 \\%$ of the maximal training log-likelihood, $\\mathcal { L } ( \\boldsymbol { \\theta } _ { t _ { 9 5 } } )$ . ",
871
+ "bbox": [
872
+ 171,
873
+ 354,
874
+ 825,
875
+ 410
876
+ ],
877
+ "page_idx": 7
878
+ },
879
+ {
880
+ "type": "text",
881
+ "text": "To evaluate various (possibly shallow and/or deep) architectures of SPTNs, we fit each dataset with all the following combinations of hyper-parameters1: $s \\in ( 8 , 3 2 , 1 2 8 )$ , $b \\in ( 2 , 4 , 6 , 8 )$ , $l \\in ( 2 , 3 , 4 )$ , where $s$ is the number of children of each sum node, $b$ is the number of partitions of each product node, and $l$ is the number of layers (one layer contains sum and product nodes). The number of components of the SPTN, after its conversion into (1), is given as follows: $K = s ^ { l }$ . Note that the maximum number of components for the investigated parameters of the SPTN is 268,435,456. To reduce the space of possible architectures, we restrict ourselves only to (i) the leaf nodes given by $\\mathcal { N } ( 0 , \\bf { I } )$ ; (ii) affine transformations fixed to the singular value decomposition, choosing the the Givens parameterization for the unitary matrices [47]; and (iii) no sharing of any type of nodes [47]. ",
882
+ "bbox": [
883
+ 161,
884
+ 416,
885
+ 825,
886
+ 541
887
+ ],
888
+ "page_idx": 7
889
+ },
890
+ {
891
+ "type": "text",
892
+ "text": "276 Algorithms: We evaluate only on the MHSAEM-U algorithm—due to its favourable computational \n277 complexity and simplicity—and compare it with the stochastic gradient-descent (SGD) algorithm, \n278 which is routinely used to train SP(T)Ns [45, 47]. In this case, SGD in each iteration performs \n279 computations over all subtrees of the network, whereas the MHSAEM-U algorithm computes with \n280 only $M = 1$ subtrees, thus we should observe speed-up of the computations. In our implementation, \n281 both these methods perform optimization of their respective objective functions—the log-likelihood \n282 (2) for SGD and the EM objective (8) for MHSAEM-U—via the use of the automatic differentiation \n283 and the ADAM optimizer [29], using $B = 1 0 0$ and $T = 2 0 0 0 0$ . ",
893
+ "bbox": [
894
+ 142,
895
+ 547,
896
+ 825,
897
+ 659
898
+ ],
899
+ "page_idx": 7
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "Results: Since each dataset might benefit from a different architecture, Table 6.2 shows the test log-likelihood of the architectures selected according to the best likelihood measured on the validation set and the corresponding speed-up. The test log-likelihoods reveal that the MHSAEM-U algorithm outperforms the SGD algorithm on 10 out of 19 datasets, which was not originally the goal, but the added stochasticity helps to escape poor local minima. The speed-up demonstrates lower computational complexity of the MHSAEM-U algorithm on 17 out of 19 datasets, which was the main goal. The magic-telescope and wine datasets show approximately $1 0 2 \\times$ and $7 5 \\times$ speed-up, respectively, while on very small datasets (pima-indians and iris), the SGD is faster due to effective implementation. In the supplementary material, we present Table 3, exhibiting the same trends on a fixed architecture. ",
904
+ "bbox": [
905
+ 171,
906
+ 665,
907
+ 825,
908
+ 803
909
+ ],
910
+ "page_idx": 7
911
+ },
912
+ {
913
+ "type": "text",
914
+ "text": "6.3 Mixtures of real NVP flows ",
915
+ "text_level": 1,
916
+ "bbox": [
917
+ 173,
918
+ 819,
919
+ 400,
920
+ 834
921
+ ],
922
+ "page_idx": 7
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "We consider another class of mixture models (1), where each component $p _ { \\eta _ { z } } ( x | z )$ is transformed by the flow model—real NVP [15]. These transformations are parameterized via deep neural networks, allowing for flexible adjustment of the learning capacity of each component. ",
927
+ "bbox": [
928
+ 176,
929
+ 845,
930
+ 825,
931
+ 887
932
+ ],
933
+ "page_idx": 7
934
+ },
935
+ {
936
+ "type": "table",
937
+ "img_path": "images/82dc83ba06aea51dfe211f3df1e7f4eb07c99ebac951998df4d56e6c0d99003a.jpg",
938
+ "table_caption": [
939
+ "Table 2: The speed-up and test log-likelihood, $\\mathcal { L } ^ { \\mathrm { t e s t } }$ , for the SGD and MHSAEM-U algorithms. The test log-likelihood (higher is better) is computed for the best model, with the corresponding $K$ , which is selected based on the validation log-likelihood. The speed-up is computed as the ratio of MHSAEM-U to SGD, i.e. their time to reach $9 5 \\%$ of the training log-likelihood. The results are averaged over five repetitions. Then, the higher test log-likelihood is highlighted with bold blue, and and no speed-up is highlighted with red. The average rank is computed as the standard competition (“1224”) ranking [14] on each dataset (lower is better). "
940
+ ],
941
+ "table_footnote": [],
942
+ "table_body": "<table><tr><td rowspan=\"3\"></td><td colspan=\"5\">Sum-product transformnetworks</td><td colspan=\"5\">Mixtures of real NVP flows SGD</td></tr><tr><td rowspan=\"2\"></td><td colspan=\"2\">SGD</td><td colspan=\"2\">MHSAEM-U</td><td colspan=\"2\"></td><td colspan=\"2\"></td><td colspan=\"2\">MHSAEM-U</td></tr><tr><td>speed-up</td><td>Ltest</td><td>K</td><td>Ltest</td><td>K</td><td>speed-up</td><td>Ltest</td><td>K 32</td><td>Ltest</td><td>K</td></tr><tr><td>breast-cancer-wisconsin</td><td>4.66</td><td>-4.66</td><td>64</td><td>1.43</td><td>1024</td><td>0.63</td><td>-99.85</td><td></td><td>-39.31</td><td></td><td>128</td></tr><tr><td>cardiotocography</td><td>10.55</td><td>59.52</td><td>512</td><td>31.04</td><td>1024</td><td></td><td>9.85</td><td>54.34</td><td>32</td><td>56.08</td><td>128</td></tr><tr><td>magic-telescope</td><td>102.53</td><td>-3.65</td><td>512</td><td>-5.03</td><td>1024</td><td></td><td>3.74</td><td>-3.97</td><td>8</td><td>-4.22</td><td>8</td></tr><tr><td>pendigits</td><td>4.89</td><td>0.88</td><td>1024</td><td>-4.86</td><td>16384</td><td></td><td>4.17</td><td>1.46</td><td>8</td><td>0.48</td><td>8</td></tr><tr><td>pima-indians</td><td>0.37</td><td>-8.54</td><td>64</td><td>-7.62</td><td></td><td>64</td><td>1.35</td><td>-20.09</td><td>128</td><td>-16.33</td><td>128</td></tr><tr><td>wall-following-robot</td><td>3.43</td><td>1.84</td><td>1024</td><td>-11.3</td><td>16384</td><td></td><td>22.21</td><td>-14.26</td><td>128</td><td>-17.56</td><td>128</td></tr><tr><td>waveform-1</td><td>4.35</td><td>-26.14</td><td>64</td><td>-23.91</td><td>1024</td><td></td><td>3.72</td><td>-34.12</td><td>8</td><td>-33.42</td><td>8</td></tr><tr><td>waveform-2</td><td>4.82</td><td>-26.21</td><td>64</td><td>-23.91</td><td></td><td>1024</td><td>4.12</td><td>-34.15</td><td>8</td><td>-33.64</td><td>8</td></tr><tr><td>yeast</td><td>20.57</td><td>10.26</td><td>512</td><td>5.18</td><td>1024</td><td></td><td>14.49</td><td>6.61</td><td>128</td><td>9.59</td><td>128</td></tr><tr><td>ecoli</td><td>1.86</td><td>-5.5</td><td>64</td><td>-0.22</td><td>1024</td><td></td><td>2.15</td><td>-11.37</td><td>128</td><td>-10.64</td><td>128</td></tr><tr><td>ionosphere</td><td>1.88</td><td>-20.27</td><td>64</td><td>-5.93</td><td></td><td>512</td><td>2.74</td><td>-87.01</td><td>128</td><td>-42.75</td><td>128</td></tr><tr><td>iris</td><td>0.23</td><td>-10.65</td><td>64</td><td>-1.49</td><td>16384</td><td></td><td>3.28</td><td>-16.34</td><td>128</td><td>-9.21</td><td>32</td></tr><tr><td>page-blocks</td><td>12.18</td><td>12.21</td><td>512</td><td>6.84</td><td>1024</td><td></td><td>44.95</td><td>17.13</td><td>128</td><td>17.94</td><td>32</td></tr><tr><td>parkinsons</td><td>1.46</td><td>-21.85</td><td>64</td><td>0.5</td><td></td><td>512</td><td>3.09</td><td>-566.58</td><td>128</td><td>-33.31</td><td>32</td></tr><tr><td>sonar</td><td>2.96</td><td>-95.39</td><td>512</td><td>-69.29</td><td></td><td>64</td><td>2.52</td><td>-622.2</td><td>128</td><td>-88.81</td><td>128</td></tr><tr><td>statlog-segment</td><td>1.44</td><td>47.35</td><td>512</td><td>26.53</td><td>16384</td><td></td><td>38.49</td><td>35.84</td><td>128</td><td>42.04</td><td>32</td></tr><tr><td>statlog-vehicle</td><td>2.97</td><td>-4.25</td><td>64</td><td>-5.45</td><td>1024</td><td></td><td>6.78</td><td>-31.34</td><td>32</td><td>-26.43</td><td>128</td></tr><tr><td>wine rank</td><td>75.42</td><td>-25.99</td><td>1024</td><td>-13.27</td><td></td><td>1024</td><td>2.05</td><td>-171.58</td><td>128</td><td>-25.57</td><td>128</td></tr><tr><td></td><td></td><td>1.56</td><td></td><td>1.44</td><td></td><td></td><td></td><td>1.83</td><td></td><td>1.17</td><td></td></tr></table>",
943
+ "bbox": [
944
+ 186,
945
+ 194,
946
+ 813,
947
+ 422
948
+ ],
949
+ "page_idx": 8
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "298 Experimental settings: We use the same experimental settings and evaluation metrics as in Section \n299 6.2. We apply the mixture model on all datasets, changing the number of components as follows: \n300 $K \\in ( 8 , 3 2 , 1 2 8 )$ . Each real NVP-based component in the mixture model has (i) the translation \n301 function parameterized via multi-layer perceptron with a single hidden layer of dimension 10, using \n302 the rectified linear activation function; and (ii) the scale function parameterized via the same network \n303 except with the hyperbolic tangent activation function. We do not use the batch normalization [15] and \n304 we stack two layers of the translation-scale transformation (we have used implementation from [20]). ",
954
+ "bbox": [
955
+ 147,
956
+ 455,
957
+ 825,
958
+ 553
959
+ ],
960
+ "page_idx": 8
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "Algorithms: The algorithms and their settings are the same as those in Section 6.2. ",
965
+ "bbox": [
966
+ 161,
967
+ 559,
968
+ 710,
969
+ 574
970
+ ],
971
+ "page_idx": 8
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "306 Results: The experimental results are presented in right part of Table 6.2. They are similar to those \n307 obtained in the previous section. In terms of the test log-likelihood, the MHSAEM-U algorithm \n308 outperforms the SGD algorithm on all but three datasets, and it provides a substantial speed-up on all \n309 datasets except one. The test likelihood of models with the real NVP flows is most of the time worse \n310 than that of SPTNs with the affine transformations. As explained in the supplementary, this is due to \n311 the overfitting, which has been observed in [47]. ",
976
+ "bbox": [
977
+ 140,
978
+ 580,
979
+ 825,
980
+ 664
981
+ ],
982
+ "page_idx": 8
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "312 7 Conclusion ",
987
+ "text_level": 1,
988
+ "bbox": [
989
+ 142,
990
+ 689,
991
+ 299,
992
+ 707
993
+ ],
994
+ "page_idx": 8
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "313 This paper has presented a method to decrease computational complexity of fitting mixture models, \n314 including their generalizations, such as sum-product-(transform) networks and mixtures of flow \n315 models. The speed-up is achieved by evaluating and updating only a single component (per iteration), \n316 where the Metropolis-Hasting algorithm ensures sampling of components from a proper posterior. An \n317 experimental comparison on all three classes of models mentioned above confirmed the theoretical \n318 expectations. The method significantly speeds-up the fitting time and, importantly, without sacrificing \n319 the quality of the fit. In fact, the likelihood was better than that of the models fitted by the EM \n320 algorithm or the SGD algorithm in more than $50 \\%$ of cases. We attribute this to higher stochasticity, \n321 which helps to escape from poor local minima. \n322 In the experiments, the proposed method has used a uniform proposal distribution in the MH sampler. \n323 Despite outperforming the alternative methods, we conjecture that this limits the speed of convergence. \n324 Therefore, we believe that there is still a room for improvement in the implementation. We plan to \n325 address these issues in future work. ",
999
+ "bbox": [
1000
+ 140,
1001
+ 724,
1002
+ 825,
1003
+ 849
1004
+ ],
1005
+ "page_idx": 8
1006
+ },
1007
+ {
1008
+ "type": "text",
1009
+ "text": "",
1010
+ "bbox": [
1011
+ 142,
1012
+ 856,
1013
+ 825,
1014
+ 911
1015
+ ],
1016
+ "page_idx": 8
1017
+ },
1018
+ {
1019
+ "type": "text",
1020
+ "text": "The presented method decreases the computational complexity of fitting large (and deep) mixture models, which leads to five to hundred time speed-up depending on a size of the problem (although negative exceptions occurs). We believe this line of research, which we want to continue, to have important benefits. First, it is directly related to decrease in energy consumption and in production of CO2 (we expect similar rates as the speedup). Second, it has a positive effect on financial aspects of deploying (and experimenting with) mixture models. Third, it decreases the hardware requirements, as in all experiments presented above the model was fitted on a single-core. ",
1021
+ "bbox": [
1022
+ 173,
1023
+ 121,
1024
+ 826,
1025
+ 218
1026
+ ],
1027
+ "page_idx": 9
1028
+ },
1029
+ {
1030
+ "type": "text",
1031
+ "text": "References ",
1032
+ "text_level": 1,
1033
+ "bbox": [
1034
+ 169,
1035
+ 239,
1036
+ 266,
1037
+ 255
1038
+ ],
1039
+ "page_idx": 9
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "[1] S. Allassonnière and J. Chevallier. A new class of stochastic EM algorithms: Escaping local maxima and handling intractable sampling. Computational Statistics & Data Analysis, 159:107159, 2021. \n[2] S. Ayesha, M. K. Hanif, and R. Talib. Overview and comparative study of dimensionality reduction techniques for high dimensional data. Information Fusion, 59:44–58, 2020. \n[3] D. S. Bai. Efficient estimation of transition probabilities in a Markov chain. The Annals of Statistics, pages 1305–1317, 1975. \n[4] D. M. Blei, A. Kucukelbir, and J. D. McAuliffe. Variational inference: A review for statisticians. Journal of the American statistical Association, 112(518):859–877, 2017. \n[5] J. Blömer and K. Bujna. Adaptive seeding for Gaussian mixture models. In Pacific-asia conference on knowledge discovery and data mining, pages 296–308. Springer, 2016. \n[6] T. Campbell and B. Beronov. Sparse variational inference: Bayesian coresets from scratch. arXiv preprint arXiv:1906.03329, 2019. \n[7] O. Cappé and E. Moulines. On-line expectation–maximization algorithm for latent data models. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 71(3):593–613, 2009. \n[8] J. Chen, J. Zhu, Y. Teh, and T. Zhang. Stochastic expectation maximization with variance reduction. Advances in Neural Information Processing Systems, page 7967, 2018. \n[9] N. Chopin. A sequential particle filter method for static models. Biometrika, 89(3):539–552, 2002. \n[10] G. Compiani and Y. Kitamura. Using mixtures in econometric models: A brief review and some new results. The Econometrics Journal, 19(3):C95–C127, 2016. \n[11] S. Dasgupta. Learning mixtures of Gaussians. In 40th Annual Symposium on Foundations of Computer Science (Cat. No. 99CB37039), pages 634–644. IEEE, 1999. \n[12] B. Delyon, M. Lavielle, E. Moulines, et al. Convergence of a stochastic approximation version of the EM algorithm. The Annals of Statistics, 27(1):94–128, 1999. \n[13] A. P. Dempster, N. M. Laird, and D. B. Rubin. Maximum likelihood from incomplete data via the EM algorithm. Journal of the Royal Statistical Society: Series B (Methodological), 39(1):1–22, 1977. \n[14] J. Demšar. Statistical comparisons of classifiers over multiple data sets. The Journal of Machine Learning Research, 7:1–30, 2006. \n[15] L. Dinh, J. Sohl-Dickstein, and S. Bengio. Density estimation using real NVP. In 5th International Conference on Learning Representations, ICLR 2017, 2017. \n[16] D. Dua and C. Graff. UCI machine learning repository, 2017. ",
1044
+ "bbox": [
1045
+ 178,
1046
+ 260,
1047
+ 828,
1048
+ 917
1049
+ ],
1050
+ "page_idx": 9
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "[17] D. Feldman, M. Faulkner, and A. Krause. Scalable training of mixture models via coresets. In Proceedings of the 24th International Conference on Neural Information Processing Systems, pages 2142–2150, 2011. 372 [18] D. Forster and J. Lücke. Can clustering scale sublinearly with its clusters? A variational EM acceleration of GMMs and k-means. In International Conference on Artificial Intelligence and Statistics, pages 124–132. PMLR, 2018. [19] G. Fort, E. Moulines, et al. Convergence of the Monte Carlo expectation maximization for curved exponential families. Annals of Statistics, 31(4):1220–1259, 2003. [20] J. Franc˚u. Continuousflows.jl. https://github.com/janfrancu/ContinuousFlows.jl, 2020. [21] K. Greff, S. van Steenkiste, and J. Schmidhuber. Neural expectation maximization. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 6694–6704, 2017. [22] R. Gribonval, A. Chatalic, N. Keriven, V. Schellekens, L. Jacques, and P. Schniter. Sketching datasets for large-scale learning (long version). arXiv preprint arXiv:2008.01839, 2020. [23] M. D. Hoffman, D. M. Blei, C. Wang, and J. Paisley. Stochastic variational inference. Journal of Machine Learning Research, 14(5), 2013. [24] M. C. Hughes and E. B. Sudderth. Fast learning of clusters and topics via sparse posteriors. arXiv preprint arXiv:1609.07521, 2016. [25] K. Humphreys and D. Titterington. Approximate Bayesian inference for simple mixtures. In COMPSTAT, pages 331–336. Springer, 2000. [26] B.-H. Juang and L. R. Rabiner. The segmental K-means algorithm for estimating parameters of hidden Markov models. IEEE Transactions on acoustics, speech, and signal Processing, 38(9):1639–1641, 1990. [27] B. Karimi, M. Lavielle, and É. Moulines. On the convergence properties of the mini-batch EM and MCEM algorithms, 2019. [28] N. Keriven, A. Bourrier, R. Gribonval, and P. Pérez. Sketching for large-scale learning of mixture models. Information and Inference: A Journal of the IMA, 7(3):447–508, 2018. [29] D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. [30] A. Kucukelbir, D. Tran, R. Ranganath, A. Gelman, and D. M. Blei. Automatic differentiation variational inference. The Journal of Machine Learning Research, 18(1):430–474, 2017. [31] E. Kuhn and M. Lavielle. Coupling a stochastic approximation version of EM with an MCMC procedure. ESAIM: Probability and Statistics, 8:115–131, 2004. [32] E. Kuhn, C. Matias, and T. Rebafka. Properties of the stochastic approximation EM algorithm with mini-batch sampling. Statistics and Computing, 30(6):1725–1739, 2020. [33] A. Lagrange, M. Fauvel, and M. Grizonnet. Large-scale feature selection with Gaussian mixture models for the classification of high dimensional remote sensing images. IEEE Transactions on Computational Imaging, 3(2):230–242, 2017. [34] M. Lavine and M. West. A Bayesian method for classification and discrimination. Canadian Journal of Statistics, 20(4):451–461, 1992. [35] M. Little, P. McSharry, S. Roberts, D. Costello, and I. Moroz. Exploiting nonlinear recurrence and fractal scaling properties for voice disorder detection. Nature Precedings, pages 1–1, 2007. [36] R. Maitra and V. Melnykov. Simulating data to study performance of finite mixture modeling and clustering algorithms. Journal of Computational and Graphical Statistics, 19(2):354–376, 2010. ",
1055
+ "bbox": [
1056
+ 145,
1057
+ 93,
1058
+ 828,
1059
+ 920
1060
+ ],
1061
+ "page_idx": 10
1062
+ },
1063
+ {
1064
+ "type": "text",
1065
+ "text": "15 [37] O. L. Mangasarian and W. H. Wolberg. Cancer diagnosis via linear programming. Technical report, University of Wisconsin-Madison Department of Computer Sciences, 1990. \n17 [38] J.-M. Marin, K. Mengersen, and C. P. Robert. Bayesian modelling and inference on mixtures of distributions. Handbook of statistics, 25:459–507, 2005. \n19 [39] C. A. McGrory, D. C. Ahfock, J. A. Horsley, and C. L. Alston. Weighted Gibbs sampling for mixture modelling of massive datasets via coresets. Stat, 3(1):291–299, 2014. [40] G. J. McLachlan, S. X. Lee, and S. I. Rathnayake. Finite mixture models. Annual review of statistics and its application, 6:355–378, 2019. \n423 [41] V. Melnykov, W.-C. Chen, and R. Maitra. MixSim: An R package for simulating data to study performance of clustering algorithms. Journal of Statistical Software, 51(12):1, 2012. \n25 [42] T. Monnier, T. Groueix, and M. Aubry. Deep transformation-invariant clustering. In Conference on Neural Information Processing Systems (NeurIPS 2020), 2020. [43] I. Naim and D. Gildea. Convergence of the EM algorithm for Gaussian mixtures with unbalanced mixing coefficients. In Proceedings of the 29th International Coference on International Conference on Machine Learning, pages 1427–1431, 2012. [44] H. D. Nguyen, F. Forbes, and G. J. McLachlan. Mini-batch learning of exponential family finite mixture models. Statistics and Computing, pages 1–18, 2020. [45] R. Peharz, A. Vergari, K. Stelzner, A. Molina, X. Shao, M. Trapp, K. Kersting, and Z. Ghahramani. Random sum-product networks: A simple and effective approach to probabilistic deep learning. In Uncertainty in Artificial Intelligence, pages 334–344. PMLR, 2020. [46] T. Pevný. Loda: Lightweight on-line detector of anomalies. Machine Learning, 102(2):275–304, 2016. [47] T. Pevný, V. Šmídl, M. Trapp, O. Polácek, and T. Oberhuber. Sum-product-transform networks: ˇ Exploiting symmetries using invertible transformations. arXiv preprint arXiv:2005.01297, 2020. [48] G. G. Pires and M. A. Figueiredo. Variational mixture of normalizing flows. arXiv preprint arXiv:2009.00585, 2020. \n42 [49] A. Rau, C. Maugis-Rabusseau, M.-L. Martin-Magniette, and G. Celeux. Co-expression analysis of high-throughput transcriptome sequencing data with Poisson mixture models. Bioinformatics, 31(9):1420–1427, 2015. \n45 [50] R. A. Redner and H. F. Walker. Mixture densities, maximum likelihood and the EM algorithm. SIAM review, 26(2):195–239, 1984. \n47 [51] H. Robbins and S. Monro. A stochastic approximation method. The annals of mathematical statistics, pages 400–407, 1951. \n49 [52] C. Robert and G. Casella. Monte Carlo statistical methods. Springer Science & Business Media, 2013. [53] W. Siblini, P. Kuntz, and F. Meyer. A review on dimensionality reduction for multi-label classification. IEEE Transactions on Knowledge and Data Engineering, 2019. \n53 [54] J. P. Siebert. Vehicle recognition using rule based methods. 1987. [55] C. Viroli and G. J. McLachlan. Deep gaussian mixture models. Statistics and Computing, 29(1):43–51, 2019. \n56 [56] C. F. J. Wu. On the convergence properties of the EM algorithm. The Annals of statistics, pages 95–103, 1983. \n58 [57] D. Wu and J. Ma. An effective EM algorithm for mixtures of Gaussian processes via the MCMC sampling and approximation. Neurocomputing, 331:366–374, 2019. ",
1066
+ "bbox": [
1067
+ 155,
1068
+ 85,
1069
+ 830,
1070
+ 920
1071
+ ],
1072
+ "page_idx": 11
1073
+ },
1074
+ {
1075
+ "type": "text",
1076
+ "text": "60 [58] W. Xiang, A. Karfoul, C. Yang, H. Shu, and R. L. B. Jeannès. An exact line search scheme to \n61 accelerate the EM algorithm: Application to Gaussian mixture models identification. Journal of \n62 computational science, 41:101073, 2020. \n63 [59] M. Zhang, Y. Fu, K. M. Bennett, and T. Wu. Computational efficient variational Bayesian Gaus \n64 sian mixture models via coreset. In 2016 International Conference on Computer, Information \n65 and Telecommunication Systems (CITS), pages 1–5. IEEE, 2016. \n66 [60] H. Zhao, P. Poupart, and G. Gordon. A unified approach for learning the parameters of sum \n67 product networks. In Proceedings of the 30th International Conference on Neural Information \n68 Processing Systems, pages 433–441, 2016. ",
1077
+ "bbox": [
1078
+ 150,
1079
+ 90,
1080
+ 826,
1081
+ 237
1082
+ ],
1083
+ "page_idx": 12
1084
+ },
1085
+ {
1086
+ "type": "text",
1087
+ "text": "1. For all authors... ",
1088
+ "bbox": [
1089
+ 214,
1090
+ 116,
1091
+ 339,
1092
+ 131
1093
+ ],
1094
+ "page_idx": 13
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "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] Our main contribution is computational speedup. Cases where it was not achieved are highlighted in the experimental section. \n(c) Did you discuss any potential negative societal impacts of your work? [No] We do not foresee any potential negative impact. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
1099
+ "bbox": [
1100
+ 238,
1101
+ 135,
1102
+ 825,
1103
+ 267
1104
+ ],
1105
+ "page_idx": 13
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "2. If you are including theoretical results... ",
1110
+ "bbox": [
1111
+ 215,
1112
+ 272,
1113
+ 493,
1114
+ 286
1115
+ ],
1116
+ "page_idx": 13
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A] ",
1121
+ "bbox": [
1122
+ 238,
1123
+ 290,
1124
+ 736,
1125
+ 321
1126
+ ],
1127
+ "page_idx": 13
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "3. If you ran experiments... ",
1132
+ "bbox": [
1133
+ 212,
1134
+ 325,
1135
+ 393,
1136
+ 340
1137
+ ],
1138
+ "page_idx": 13
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "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] The code is available in a github repository. All dataset are public from the UCI database. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 6. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] We report only average of Monte Carlo repetitions, the error bars were too small to have any visual impact in the reported logarithmic scale. \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] ",
1143
+ "bbox": [
1144
+ 238,
1145
+ 344,
1146
+ 825,
1147
+ 489
1148
+ ],
1149
+ "page_idx": 13
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1154
+ "bbox": [
1155
+ 215,
1156
+ 494,
1157
+ 823,
1158
+ 510
1159
+ ],
1160
+ "page_idx": 13
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "(a) If your work uses existing assets, did you cite the creators? [Yes] We use 20 datasets from UCI, we cite the required papers for each dataset, mostly the UCI database and few additional publications. \n(b) Did you mention the license of the assets? [No] The data are publically available, we comply with the requirement on citing appropriate publications. \n(c) Did you include any new assets either in the supplemental material or as a URL? [No] \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] ",
1165
+ "bbox": [
1166
+ 238,
1167
+ 513,
1168
+ 825,
1169
+ 662
1170
+ ],
1171
+ "page_idx": 13
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1176
+ "bbox": [
1177
+ 215,
1178
+ 666,
1179
+ 707,
1180
+ 681
1181
+ ],
1182
+ "page_idx": 13
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "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] ",
1187
+ "bbox": [
1188
+ 238,
1189
+ 685,
1190
+ 825,
1191
+ 773
1192
+ ],
1193
+ "page_idx": 13
1194
+ }
1195
+ ]
parse/train/ki4eJ1fSJNq/ki4eJ1fSJNq_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ki4eJ1fSJNq/ki4eJ1fSJNq_model.json ADDED
The diff for this file is too large to render. See raw diff