ZHANGYUXUAN-zR commited on
Commit
6d3f41b
·
verified ·
1 Parent(s): f62c684

Add files using upload-large-folder tool

Browse files
parse/train/H1l_gA4KvH/H1l_gA4KvH.md ADDED
@@ -0,0 +1,729 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SURROGATE-BASED CONSTRAINED LANGEVIN SAMPLING WITH APPLICATIONS TO OPTIMAL MATERIAL CONFIGURATION DESIGN
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ We consider the problem of generating configurations that satisfy physical constraints for optimal material nano-pattern design, where multiple (and often conflicting) properties need to be simultaneously satisfied. Consider, for example, the trade-off between thermal resistance, electrical conductivity, and mechanical stability needed to design a nano-porous template with optimal thermoelectric efficiency. To that end, we leverage the posterior regularization framework and show that this constraint satisfaction problem can be formulated as sampling from a Gibbs distribution. The main challenges come from the black-box nature of those physical constraints, since they are obtained via solving highly non-linear PDEs. To overcome those difficulties, we introduce Surrogate-based Constrained Langevin dynamics for black-box sampling. We explore two surrogate approaches. The first approach exploits zero-order approximation of gradients in the Langevin Sampling and we refer to it as Zero-Order Langevin. In practice, this approach can be prohibitive since we still need to often query the expensive PDE solvers. The second approach approximates the gradients in the Langevin dynamics with deep neural networks, allowing us an efficient sampling strategy using the surrogate model. We prove the convergence of those two approaches when the target distribution is log-concave and smooth. We show the effectiveness of both approaches in designing optimal nano-porous material configurations, where the goal is to produce nano-pattern templates with low thermal conductivity and reasonable mechanical stability.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ In many real-world design problems, the optimal design needs to simultaneously satisfy multiple constraints, which can be expensive to estimate. For example, in computational material design, the goal is to come up with material configurations, or samples, satisfying a list of physical constraints that are given by black-box numerical Partial Differential Equations (PDE) solvers. Such solvers (for example, the Boltzmann Transport Equation solver) are often complex, expensive to evaluate, and offer no access to their inner variables or their gradients.
12
+
13
+ We pose this design-under-constraints problem as sampling from a Gibbs distribution defined on some compact support. The problem of sampling from a distribution with unknown likelihood that can only be point-wise evaluated is called black-box sampling (Chen & Schmeiser, 1998; Neal, 2003). We show in this paper that constrained black-box sampling can be cast as a constrained Langevin dynamics with gradient-free methods. Zero-order optimization via Gaussian smoothing was introduced in Nesterov & Spokoiny (2017) and extended to black-box sampling with Langevin dynamics in Shen et al. (2019). We extend this approach to the constrained setting from a black-box density with compact support.
14
+
15
+ However, one shortcoming of this approach is that it is computationally very expensive since it requires repeatedly querying PDE solvers in order to get an estimate of the gradient. To alleviate computational issues, we propose Surrogate Model Based Langevin dynamics, that consists of two steps: (i) Learning (using training data) an approximation of the gradient of the potential of the Gibbs distribution. We show that learning the gradient, rather than the potential itself, is important for the mixing of the Langevin dynamics towards the target Gibbs distribution. We devise several objective functions, as well as deep neural-network architectures for parameterizing the approximating function class, for learning the gradient of the potential function. (ii) We then use the surrogate gradient model in the constrained Langevin dynamics in lieu of the black-box potential. Using the surrogate enables more efficient sampling, since it avoids querying the expensive PDE solvers, and obtaining gradients is as efficient as evaluating the functions themselves using automatic differentiation frameworks such as PyTorch or TensorFlow.
16
+
17
+ To summarize, our main contributions are as follows:
18
+
19
+ 1. We cast the problem of generating samples under constraints in the black-box setting as sampling from a Gibbs distribution.
20
+ 2. We introduce Constrained Zero-Order Langevin Monte Carlo, using projection or proximal methods, and provide the proof of its convergence to the target Gibbs distribution.
21
+ 3. We introduce Surrogate Model Based Projected Langevin Monte Carlo via learning the gradient of the potential of the Gibbs distribution using deep neural networks or reproducing kernel spaces, and prove its convergence to the target distribution when used in conjunction with projection or proximal based methods. We shed the light on the importance of the approximation of the gradient of the potential, and we show how to achieve this using Hermite and Taylor learning.
22
+ 4. We showcase the usability and effectiveness of the proposed methods for the design of nanoporous configurations with improved thermoelectric efficiency. The design consists of finding new configurations with optimized pore locations, such that the resulting configurations have favorable thermal conductivity (i.e., minimal $\kappa$ ) and desired mechanical stability (von Mises Stress $\sigma \leq \tau$ , where $\tau$ is some preset threshold).
23
+
24
+ # 2 FROM CONSTRAINTS SATISFACTION TO SAMPLING FROM A GIBBS DISTRIBUTION: POSTERIOR REGULARIZATION
25
+
26
+ In black-box optimization problems (such as the material design under consideration), the goal is to find a posterior distribution $q$ of samples satisfying a list of equality and inequality constraints: $\psi _ { j } ( x ) = y _ { k } , j = 1 \ldots C _ { e }$ , and $\begin{array} { r } { \phi _ { k } ( x ) \le b _ { k } , k = 1 . . . C _ { i } } \end{array}$ where $x \in \Omega$ and $\Omega \doteq \mathbb { R } ^ { d }$ is a bounded domain. We assume a prior distribution $p _ { 0 }$ (whose analytical form is known). The main challenge in black-box optimization is that the functions $\psi _ { j }$ and $\phi _ { k }$ can be only evaluated point-wise, and neither do we have functional forms nor access to their gradients. For example, $\psi$ and $\phi$ might be obtained via aggregating some statistics on the solution of a nonlinear PDE given by a complex solver.
27
+
28
+ To make the problem of learning under constraints tractable, we choose Lagrangian parameters $\lambda _ { j } > 0$ and obtain the following relaxed objective:
29
+
30
+ $$
31
+ \operatorname* { m i n } _ { \substack { q , \int _ { \Omega } q ( x ) = 1 } } \mathrm { K L } ( q , p _ { 0 } ) + \sum _ { j = 1 } ^ { C _ { c } } \lambda _ { j } \mathbb { E } _ { x \sim q } ( \psi _ { j } ( x ) - y _ { k } ) ^ { 2 } + \sum _ { k = 1 } ^ { C _ { i } } \lambda _ { k } \mathbb { E } _ { x \sim q } ( \phi _ { k } ( x ) - b _ { k } ) _ { + }
32
+ $$
33
+
34
+ The formulation in Eq. 1 is similar in spirit to the posterior regularization framework of Ganchev et al. (2010); Hu et al. (2018). However, we highlight two differences: (i) our focus is on constrained settings (where $\Omega$ is bounded), and (ii) we assume a black-box setting. We first obtain:
35
+
36
+ Lemma 1 (Constraint Satisfaction as Sampling from a Gibbs Distribution). The solution to the distribution learning problem given in Eq. 1 is given by:
37
+
38
+ $$
39
+ \pi ( x ) = \frac { \exp ( - U ( x ) ) } { Z } \mathbb { 1 } _ { x \in \Omega }
40
+ $$
41
+
42
+ where $\begin{array} { r } { U ( x ) ~ = ~ - \log p _ { 0 } ( x ) + \sum _ { j = 1 } ^ { C _ { e } } \lambda _ { j } ( \psi _ { j } ( x ) - y _ { k } ) ^ { 2 } + \sum _ { k = 1 } ^ { C _ { i } } \lambda _ { k } ( \phi _ { k } ( x ) - b _ { k } ) _ { + } } \end{array}$ and $Z =$ $\begin{array} { r } { \int _ { x \in \Omega } \exp \left( - U ( x ) \right) d x } \end{array}$ .
43
+
44
+ Lemma 1 shows that the constraint satisfaction problem formulated in Eq. 1 amounts to sampling from a Gibbs distribution defined on a compact support given in Eq. 2. Sampling from a Gibbs distribution (also known as Boltzmann distribution) has a long history using Langevin dynamics. In the white-box setting when the functions defining the constraints have explicit analytical forms as well as their gradients, Langevin dynamics for Gibbs distribution sampling defined on a compact domain $\Omega$ and their mixing properties were actively studied in Bubeck et al. (2015); Brosse et al. (2017). In the next Section, we provide a more detailed review.
45
+
46
+ Remark 1 (Relation to Bayesian Optimization). While in Bayesian optimization we are interested in finding a point that satisfies the constraints, in our setting we are interested in finding a distribution of candidate samples that satisfy (black-box) constraints. See (Suzuki et al., 2019) for more details.
47
+
48
+ Remark 2. For the rest of the paper, we will assume $p _ { 0 }$ to be the uniform distribution on $\Omega$ , which means that its gradients are zero on the support of the domain $\Omega$ . Otherwise, if $p _ { 0 }$ is known and belongs to, for instance, an exponential family or a generative model prior (such as normalizing flows), we can sample from $\pi$ using a mixture of black-box sampling on the constraints $( \psi _ { j } , \phi _ { k } )$ and white-box sampling on $\log ( p _ { 0 } )$ .
49
+
50
+ # 3 WHITE-BOX SAMPLING: CONSTRAINED LANGEVIN DYNAMICS
51
+
52
+ We review in this section Langevin dynamics in the unconstrained case $\Omega = \mathbb { R } ^ { d }$ ) and the constrained setting $\smash { ( \Omega \subset \mathbb { R } ^ { d } ) }$ ). Below, $\lVert \cdot \rVert$ denotes the Euclidean norm unless otherwise specified. We are interested in sampling from
53
+
54
+ $$
55
+ \pi ( x ) = \frac { 1 } { Z } \exp ( - U ( x ) ) \mathbb { 1 } _ { x \in \Omega } ,
56
+ $$
57
+
58
+ Preliminaries. We give here assumptions, definitions and few preliminary known facts that will be useful later. Those assumptions are commonly used in Langevin sampling analysis (Dalalyan, 2017; Bubeck et al., 2015; Brosse et al., 2017; Durmus et al., 2019).
59
+
60
+ 1. Assumption A: We assume $\Omega$ is a convex such that $0 \in \Omega$ , $\Omega$ contains a Euclidean ball of radius $r$ , and $\Omega$ is contained in a Euclidean ball of radius R. (For example, $\Omega$ might encode box constraints.) The projection onto $\Omega , P _ { \Omega } ( x )$ is defined as follows: for all $x \in \Omega$ , $\begin{array} { r } { P _ { \Omega } ( x ) = \arg \operatorname* { m i n } _ { z \in \Omega } \left\| x - z \right\| ^ { 2 } } \end{array}$ . Let $R = \operatorname* { s u p } _ { x , x ^ { \prime } \in \Omega } | | x - x ^ { \prime } | | < \infty$ .
61
+
62
+ 2. Assumption B: We assume that $U$ is convex, $\beta$ -smooth, and with bounded gradients:
63
+
64
+ $$
65
+ \begin{array} { r l } & { \left\| \nabla _ { x } U ( x ) - \nabla _ { y } U ( y ) \right\| \leq \beta \left\| x - y \right\| , \quad \forall x , y \in \Omega \mathrm { ~ ( \beta \beta \mathrm { - } s m o o t h n e s s ) } . } \\ & { } \\ & { \left\| \nabla U ( x ) \right\| \leq L , \quad \forall x \in \Omega \mathrm { ~ ( B o u n d e d n e s s ) } . } \end{array}
66
+ $$
67
+
68
+ The Total Variation (TV) distance between two measures $\mu , \nu$ is defined as follows: $T V ( \mu , \nu ) =$ $\operatorname* { s u p } _ { A } | \mu ( A ) - \nu ( A ) |$ . Pinsker Inequality relates $\mathrm { K L }$ divergence to TV: $T V ( \mu , \nu ) \leq { \sqrt { 2 \mathrm { K L } ( \mu , \nu ) } }$ .
69
+
70
+ Unconstrained Langevin Dynamics. In the unconstrained case, the goal is to sample from a Gibbs distribution $\pi ( x ) = { \mathrm { e x p } } ( - U ( x ) ) / Z$ that has unbounded support. This sampling can be done via the Langevin Monte Carlo (LMC) algorithm, which is given by the following iteration:
71
+
72
+ $$
73
+ X _ { k + 1 } = X _ { k } - \eta \nabla _ { x } U ( X _ { k } ) + \sqrt { 2 \lambda \eta } \xi _ { k } , \quad k = 0 \ldots K - 1 \mathrm { ( L M C ) } ,
74
+ $$
75
+
76
+ where $\xi _ { k } \sim \mathcal { N } ( 0 , I _ { d } )$ , $\eta$ is the learning rate, and $\lambda > 0$ is a variance term.
77
+
78
+ Constrained Langevin Dynamics. In the constrained case, the goal is to sample from $\pi ( x ) =$ $\exp ( - U ( x ) ) / Z \mathbb { 1 } _ { x \in \Omega } .$ ,. We discuss two variants:
79
+
80
+ Projected Langevin Dynamics. Similar to projected gradient descent, Bubeck et al. (2015) introduced Projected Langevin Monte Carlo (PLMC) and proved its mixing propreties towards the stationary distribution $\pi$ . PLMC is given by the following iteration :
81
+
82
+ $$
83
+ X _ { k + 1 } = P _ { \Omega } \left( X _ { k } - \eta \nabla _ { x } U ( X _ { k } ) + \sqrt { 2 \lambda \eta } \xi _ { k } \right) , \quad k = 0 \ldots K - 1 \ \mathrm { ( P L M C ) } ,
84
+ $$
85
+
86
+ In essence, PLMC consists of a single iteration of LMC, followed by a projection on the set $\Omega$ using the operator $P _ { \Omega }$ .
87
+
88
+ Proximal Langevin Dynamics. Similar to proximal methods in constrained optimization, Brosse et al. (2017) introduced Proximal LMC (ProxLMC) that uses the iteration:
89
+
90
+ $$
91
+ X _ { k + 1 } = \left( 1 - { \frac { \eta } { \gamma } } \right) X _ { k } - \eta \nabla _ { x } U ( X _ { k } ) + { \frac { \eta } { \gamma } } P _ { \Omega } ( X _ { k } ) + { \sqrt { 2 \lambda \eta } } \xi _ { k } , k = 0 \ldots K - 1 , \ \mathbf { ( P r o x { L M C } ) }
92
+ $$
93
+
94
+ where $\eta$ is the step size and $\gamma$ is a regularization parameter. In essence, ProxLMC (Brosse et al., 2017) performs an ordinary LMC on $\bar { U } ^ { \gamma } ( x ) = U ( \bar { x } ) + i _ { \Omega } ^ { \gamma } ( x )$ , where $i _ { \Omega } ^ { \gamma } ( x )$ is the proximal operator:
95
+
96
+ $$
97
+ i _ { \Omega } ^ { \gamma } ( x ) = \operatorname* { i n f } _ { y } i _ { \Omega } ( x ) + ( 2 \gamma ) ^ { - 1 } \left\| x - y \right\| ^ { 2 } = ( 2 \gamma ) ^ { - 1 } \left\| x - P _ { \Omega } ( x ) \right\| ^ { 2 } ,
98
+ $$
99
+
100
+ where $i _ { \Omega } ( x ) = 0$ for $x \in \Omega$ and $i _ { \Omega } ( x ) = \infty$ for $x \notin \Omega$ . Therefore, the update in Eq. 6 is a regular Langevin update (as in Eq. 4) with potential gradient $\nabla _ { x } U ^ { \gamma } ( x ) = \nabla _ { x } U ( \boldsymbol { \dot { x } } ) + \gamma ^ { - 1 } \big ( \boldsymbol { \dot { x } } - P _ { \Omega } ( x ) \big )$ .
101
+
102
+ We denote by and $\mu _ { K } ^ { \mathrm { P r o x L M C } }$ he di ributions of $X _ { K }$ obtained by iterating Eq. 5 and Eq. 6 $\mathbf { A }$ $\mathbf { B }$
103
+ distribution $\pi$ in the total variation distance. In particular, Bubeck et al. (2015) showed that for
104
+ $\eta = \tilde { \Theta } ( R ^ { 2 } / K )$ , we obtain:
105
+
106
+ $$
107
+ T V ( \mu _ { K } ^ { \mathrm { P L M C } } , \pi ) \leq \varepsilon \ \mathrm { f o r } \ K = \tilde { \Omega } ( \varepsilon ^ { - 1 2 } d ^ { 1 2 } ) .
108
+ $$
109
+
110
+ Likewise, Brosse et al. (2017) showed that for $0 < \eta \leq \gamma ( 1 + \beta ^ { 2 } \gamma ^ { 2 } ) ^ { - 1 }$ , we obtain:
111
+
112
+ $$
113
+ T V ( \mu _ { K } ^ { \mathrm { { P r o x L M C } } } , \pi ) \le \varepsilon \ \mathrm { f o r } \ K = \tilde { \Omega } ( \varepsilon ^ { - 6 } d ^ { 5 } ) ,
114
+ $$
115
+
116
+ where the notation $\alpha _ { n } = \tilde { \Omega } ( \beta _ { n } )$ means that there exists $c \in \mathbb { R } , C > 0$ such that $\alpha _ { n } \geq C \beta _ { n } \log ^ { c } ( \beta _ { n } )$
117
+
118
+ # 4 CONSTRAINED LANGEVIN DYNAMICS IN THE BLACK-BOX SETTING
119
+
120
+ We now introduce our variants of constrained LMC for the black-box setting where explicit potential gradients are unavailable. We explore in this paper two strategies for approximating the gradient of $U$ in the black-box setting. In the first strategy, we borrow ideas from derivative-free optimization (in particular, evolutionary search). In the second strategy we learn a surrogate deep model that approximates the gradient of the potential. Below, let $G : \overline { { \Omega } } \mathbb { R } ^ { d }$ be a vector valued function that approximates the gradient of the potential, $\nabla _ { x } U$ . We make:
121
+
122
+ Assumption C. The surrogate gradient $G$ satisfies $\mathbb { E } \left\| G ( Y _ { k } ) \right\| ^ { 2 } < \infty , \forall k .$ .
123
+
124
+ Surrogate Projected Langevin Dynamics. Given $Y _ { 0 }$ , the Surrogate Projected LMC (S-PLMC) replaces the potential gradient $\nabla _ { x } U$ in Eq. 5 with the surrogate gradient $G$ :
125
+
126
+ $$
127
+ Y _ { k + 1 } = P _ { \Omega } \left( Y _ { k } - \eta \mathbf { G } ( Y _ { k } ) + \sqrt { 2 \lambda \eta } \xi _ { k } \right) , k = 0 \ldots K - 1 \ \mathbf { \Omega } ( \mathbf { S } \mathbf { - } \mathbf { P } \mathbf { L } \mathbf { M } \mathbf { C } )
128
+ $$
129
+
130
+ Surrogate Proximal Langevin Dynamics. Similarly, the Surrogate Proximal LMC (S-ProxLMC) replaces the unknown potential gradient $\nabla _ { x } U$ in Eq. 6 with the gradient surrogate $G$ :
131
+
132
+ $$
133
+ Y _ { k + 1 } = \left( 1 - { \frac { \eta } { \gamma } } \right) Y _ { k } - \eta \mathbf { G } ( Y _ { k } ) + { \frac { \eta } { \gamma } } P _ { \Omega } ( Y _ { k } ) + { \sqrt { 2 \lambda \eta } } \xi _ { k } , k = 0 \ldots K - 1 \ { \mathrm { ~ ( S - P r o x { L M C } ) } }
134
+ $$
135
+
136
+ We now present our main theorems on the approximation properties of surrogate LMC (S-PLMC, and S-ProxLMC). We do so by bounding the total variation distance between the trajectories of the surrogate Langevin dynamics (S-PLMC, and S-ProxLMC) and the true LMC dynamics (PLMC and ProxLMC). Theorem 1 is an application of techniques in Stochastic Differential Equations (SDE) introduced in Dalalyan & Tsybakov (2012) and is mainly based on a variant of Grisanov’s Theorem for change of measures (Lipster & Shiryaev, 2001) and Pinsker’s Inequality that bounds total variation in terms of Kullback-Leibler divergence.
137
+
138
+ Theorem 1 (S-PLMC and S-ProxLMC Mixing Properties). Under Assumption $\mathbf { C }$ , we have:
139
+
140
+ 1. S-PLMC Convergence. Let $\mu _ { K } ^ { \mathrm { P L M C } }$ be the distribution of the random variable $X _ { K }$ obtained by iterating PLMC Eq. 5, and $\mu _ { K } ^ { \mathrm { S - P L M C } }$ be the distribution of the random variable $Y _ { K }$ obtained by iteration S-PLMC given in Eq. 9. We have:
141
+
142
+ $$
143
+ T V ( \mu _ { K } ^ { \mathrm { { S - P L M C } } } , \mu _ { K } ^ { \mathrm { { P L M C } } } ) \leq \sqrt { \frac { \eta } { \lambda } } \left( \sum _ { k = 0 } ^ { K - 1 } \mathbb { E } \left\| G ( Y _ { k } ) - \nabla _ { x } U ( Y _ { k } ) \right\| ^ { 2 } + K \beta ^ { 2 } R ^ { 2 } \right) ^ { \frac { 1 } { 2 } } .
144
+ $$
145
+
146
+ 2. S-ProxLMC Convergence. Let µProxLMCK be the distribution of the random variable XK obtained by iterating ProxLMC Eq. 6, and $\mu _ { K } ^ { S - }$ ProxLMC be the distribution of the random variable $Y _ { K }$ obtained by iterating S-ProxLMC given in Eq. 10. We have:
147
+
148
+ $$
149
+ T V ( \mu _ { K } ^ { \mathrm { { S } \cdot P r o x L M C } } , \mu _ { K } ^ { \mathrm { { P r o x L M C } } } ) \leq \sqrt { \frac { \eta } { 2 \lambda } } \left( \sum _ { k = 0 } ^ { K - 1 } \mathbb { E } \left\| G ( X _ { k } ) - \nabla _ { x } U ( X _ { k } ) \right\| ^ { 2 } \right) ^ { \frac { 1 } { 2 } } .
150
+ $$
151
+
152
+ From Theorem 1, we see that it suffices to approximate the potential gradient $\nabla _ { x } U ( X )$ (and not the potential $U ( X ) )$ in order to guarantee convergence of surrogate-based Langevin sampling. Using the triangle inequality, and combining Theorem 1 and bounds in Eqs 7 and 8 we obtain:
153
+
154
+ Theorem 2. (Convergence of Surrogate Constrained LMC to the Gibbs distribution.) Under assumptions $^ { A , B }$ and $C$ we have:
155
+
156
+ 1. Assume in S-PLMC that there exists $\delta > 0$ such that E $\begin{array} { r } { \left\| G ( Y _ { k } ) - \nabla _ { x } U ( Y _ { k } ) \right\| ^ { 2 } \leq \delta , \forall k \geq 0 . } \end{array}$ . Set $\lambda = 1$ , and $-$ where $\alpha = 1 / ( \delta + \beta ^ { 2 } R ^ { 2 } )$ . Then for $K = \tilde { \Omega } ( \varepsilon ^ { - 1 2 } d ^ { 1 2 } )$ , we have:
157
+
158
+ $$
159
+ T V ( \mu _ { K } ^ { \mathtt { S - P L M C } } , \pi ) \le \varepsilon .
160
+ $$
161
+
162
+ 2. Assume in S-ProxLMC that there exists $\delta > 0$ such that $\begin{array} { r } { \mathbb { E } \left\| G ( X _ { k } ) - \nabla _ { x } U ( X _ { k } ) \right\| ^ { 2 } \leq \delta , \forall k \geq 0 . } \end{array}$ . Set $\lambda = 1$ , and $\begin{array} { r } { \eta = \operatorname* { m i n } ( \gamma ( 1 + \beta ^ { 2 } \gamma ^ { 2 } ) ^ { - 1 } , \frac { 1 } { \delta K ^ { 2 } } ) } \end{array}$ ). Then for $K = \tilde { \Omega } ( \varepsilon ^ { - 6 } d ^ { 5 } )$ we have:
163
+
164
+ $$
165
+ T V ( \mu _ { K } ^ { \mathrm { S - P r o x L M C } } , \pi ) \leq \varepsilon .
166
+ $$
167
+
168
+ # 5 ZERO-ORDER CONSTRAINED LANGEVIN DYNAMICS
169
+
170
+ In zero-order optimization (Nesterov & Spokoiny, 2017; Duchi et al., 2015; Ghadimi & Lan, 2013; Shen et al., 2019), one considers the Gaussian smoothed potential $U _ { \nu }$ defined as $U _ { \nu } ( x ) =$ $\mathbb { E } _ { g \sim \mathcal { N } ( 0 , I _ { d } ) } U ( x + \nu g )$ , and its gradient is given by $\begin{array} { r } { \nabla _ { x } U _ { \nu } ( x ) = \mathbb { E } _ { g } \frac { U ( x + \nu g ) - U ( x ) } { \nu } g } \end{array}$ . The following is a Monte Carlo estimate of ∇xUν (x): n
171
+
172
+ $$
173
+ \hat { G } _ { n } U ( x ) = \frac { 1 } { n } \sum _ { j = 1 } ^ { n } \left( \frac { U ( x + \nu g _ { j } ) - U ( x ) } { \nu } \right) g _ { j } ,
174
+ $$
175
+
176
+ where $g _ { 1 } , \ldots g _ { n }$ are i.i.d. standard normal vectors.
177
+
178
+ Zero-Order sampling from log-concave densities was recently studied in Shen et al. (2019). We extend it here to the constrained sampling case of log-concave densities with compact support. We define Constrained Zero-Order Projected LMC $\mathbf { Z }$ -PLMC) and Zero-Order Proximal LMC $\mathbf { Z }$ -ProxLMC) by setting $\mathbf { G } ( \mathbf { x } ) = \hat { \mathbf { G } } _ { \mathbf { n } } \mathbf { U } ( \mathbf { x } )$ in Eq. 9 and Eq. 10 respectively.
179
+
180
+ Lemma 2 (Zero-Order Gradient Approximation(Nesterov & Spokoiny, 2017; Shen et al., 2019)). Under Assumption $B$ , we have for all $x \in \Omega$ :
181
+
182
+ $$
183
+ \begin{array} { r } { \mathbb { E } _ { g _ { 1 } , \dots , g _ { n } } \left\| \hat { G } _ { n } U ( x ) - \nabla _ { x } U ( x ) \right\| ^ { 2 } \leq \left( \beta \nu ( d + 2 ) ^ { 3 / 2 } + ( d + 1 ) ^ { \frac { 1 } { 2 } } L \right) ^ { 2 } / n } \end{array}
184
+ $$
185
+
186
+ Thanks to Lemma 2 that ensures uniform approximation of gradients in expectation, we can apply Theorem 2 and get the following corollary for Z-PLMC and Z-ProxLMC:
187
+
188
+ Corollary 1 (Zero-order Constrained Langevin approximates the Gibbs distribution). Under Assumptions A and $\pmb { B }$ , let $\delta \in [ 0 , 1 ] ,$ , for $n \geq \left( \beta \nu ( d + 2 ) ^ { 3 / 2 } + ( d + 1 ) ^ { \frac { 1 } { 2 } } L \right) ^ { 2 } / \delta$ , we have the following bounds in expectation:
189
+
190
+ 1. Set $\lambda = 1$ , and $\eta = \tilde { \Theta } ( \operatorname* { m i n } ( R ^ { 2 } / K , \alpha / K ^ { 2 } ) )$ where $\alpha = 1 / ( \delta + \beta ^ { 2 } R ^ { 2 } )$ . For ${ \cal K } = \tilde { \Omega } ( \varepsilon ^ { - 1 2 } d ^ { 1 2 } ) ;$ we have:
191
+
192
+ $$
193
+ \mathbb { E } _ { g _ { 1 } , \dots g _ { n } } T V ( \mu _ { K } ^ { \mathrm { Z - P L M C } } , \pi ) \le \varepsilon .
194
+ $$
195
+
196
+ 2. Set $\lambda = 1$ , and $\begin{array} { r } { \eta = \operatorname* { m i n } ( \gamma ( 1 + \beta ^ { 2 } \gamma ^ { 2 } ) ^ { - 1 } , \frac { 1 } { \delta K ^ { 2 } } ) } \end{array}$ . For $K = \tilde { \Omega } ( \varepsilon ^ { - 6 } d ^ { 5 } )$ we have:
197
+
198
+ $$
199
+ \mathbb { E } _ { g _ { 1 } , \dots g _ { n } } T V ( \mu _ { K } ^ { \mathrm { Z - P r o x L M C } } , \pi ) \le \varepsilon .
200
+ $$
201
+
202
+ Remark 3. For simplicity, we state the above bound in terms of expectations over the randomness in estimating the gradients. It is possible to get finite-sample bounds using the Vector Bernstein concentration inequality, coupled with covering number estimates of $\Omega$ but omit them due to space.
203
+
204
+ # 6 SURROGATE MODEL BASED CONSTRAINED LANGEVIN DYNAMICS
205
+
206
+ Despite its theoretical guarantees, zero-order constrained Langevin (Z-PLMC and Z-ProxLMC) has a prohibitive computation cost as it needs $O ( n K )$ black-box queries (in our case, invocations of a nonlinear PDE solver). To alleviate this issue, we introduce in this Section a neural surrogate model as an alternative to the gradient of the true potential.
207
+
208
+ 6.1 HERMITE LEARNING OF GRADIENTS: JACOBIAN MATCHING OF ZERO-ODER ESTIMATES
209
+
210
+ From Theorem 2, we saw that in order to guarantee the convergence of constrained Langevin dynamics, we need a good estimate of the gradient of the potential of the Gibbs distribution. Recall that the potential given in Lemma 1 depends on $\psi _ { j }$ and $\phi _ { k }$ , which are scalar outputs of computationally heavy PDE solvers in our material design problem. To avoid this, we propose to train surrogate neural network models approximating each PDE output and their gradients. Concretely, suppose we are given a training set $S$ for a PDE solver for the property $\psi$ (dropping the index $j$ for simplicity):
211
+
212
+ $$
213
+ S = \{ ( x _ { i } , y _ { i } = \psi ( x _ { i } ) , \tilde { y } _ { i } = \hat { G } _ { n } \psi ( x _ { i } ) ) , x _ { i } \sim \rho _ { \Omega } \mathrm { i . i . d . } , i = 1 , \ldots , N \} ,
214
+ $$
215
+
216
+ where $\rho \Omega$ is the training distribution and ${ \hat { G } } _ { n } \psi ( . )$ is the zero-order estimate of the gradient of $\psi$ given in Eq. 13. We propose to learn a surrogate model belonging to a function class $\mathcal { H } _ { \theta }$ , $\hat { f } _ { \theta } \in \mathcal { H } _ { \theta }$ , that regresses the value of $\psi$ and matches the zero-order gradient estimates as follows:
217
+
218
+ $$
219
+ \underset { f _ { \theta } \in \mathcal H _ { \theta } } { \operatorname* { m i n } } \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \{ ( y _ { i } - f _ { \theta } ( x _ { i } ) ) ^ { 2 } + \| \nabla _ { x } f _ { \theta } ( x _ { i } ) - \tilde { y } _ { i } \| ^ { 2 } \} \mathrm { ( Z \ – H e r m i t e ~ L e a r n i n g ) }
220
+ $$
221
+
222
+ The problem in Eq. 17 was introduced and analyzed in Shi et al. (2010) where $\mathcal { H } _ { \theta }$ is a ball in a Reproducing Kernel Hilbert Space (RKHS). Following Shi et al. (2010), we refer to this type of learning as Hermite Learning. In the deep learning community, this type of learning is called Jacobian matching and was introduced in Srinivas & Fleuret (2018); Czarnecki et al. (2017) where $\mathcal { H } _ { \theta }$ is a deep neural network parameterized with weights $\theta$ . When $f _ { \theta }$ is a deep network, we can optimize this objective efficiently using common deep learning frameworks (PyTorch, TensorFlow).
223
+
224
+ (Shi et al., 2010) have shown that when $\mathcal { H } _ { \theta }$ is an RKHS ball and when $\tilde { y } _ { i } = \nabla _ { x } \psi ( x _ { i } )$ are exact gradients, for a sufficiently large training set with $N = O ( 1 / \epsilon ^ { 1 / ( 2 r \zeta ) } )$ (where $r , \zeta$ are exponents in $[ 0 , 1 ]$ that depend on the regularity of the function $\psi$ ). Under the assumption that $\cdot$ we have: $\begin{array} { r } { \int _ { \Omega } \| \dot { \nabla } _ { x } f _ { \theta } ( x ) - \nabla _ { x } \psi ( x ) \| ^ { 2 } \rho _ { \Omega } ( x ) d x \leq \epsilon } \end{array}$ . Since we are using inexact zero-order gradients, we will incur an additional numerical error that is also bounded as shown in Lemma 2.
225
+
226
+ # 6.2 TAYLOR LEARNING OF GRADIENTS
227
+
228
+ While Jacobian matching of zero-order gradients is a sound approach, it remains expensive to construct the dataset, as we need for each point to have $2 n + 1$ queries of the PDE solver. We exploit in this section the Taylor learning framework of gradients that was introduced in Mukherjee & Zhou (2006); Mukherjee & Wu (2006), and Wu et al. (2010). In a nutshell, Mukherjee & Zhou (2006) suggests to learn a surrogate potential $f _ { \theta }$ and gradient $G _ { \Lambda }$ that are consistent with the first-order taylor expansion. Given a training set $S = \{ ( x _ { i } , y _ { i } = \psi ( x _ { i } ) ) , x \sim \rho _ { \Omega } , i = 1 \ldots N \}$ , Wu et al. (2010) suggest the following objective:
229
+
230
+ $$
231
+ \operatorname* { m i n } _ { f _ { \theta } \in \mathcal { H } _ { \theta } , G _ { \Lambda } \in \mathcal { H } _ { \Lambda } ^ { d } } \frac { 1 } { N ^ { 2 } } \sum _ { i , j } w _ { i j } ^ { \sigma } ( y _ { i } - f _ { \theta } ( x _ { j } ) + \langle G _ { \Lambda } ( x _ { i } ) , x _ { j } - x _ { i } \rangle ) ^ { 2 } ( \mathbf { T a y l o r } - 2 ) ,
232
+ $$
233
+
234
+ where $\begin{array} { r } { w _ { i j } ^ { \sigma } = \exp \left( \frac { - \| x _ { i } - x _ { j } \| ^ { 2 } } { \sigma ^ { 2 } } \right) } \end{array}$ , $\mathcal { H } _ { \theta }$ is an RKHS ball of scalar valued functions, and $\mathcal { H } _ { \Lambda } ^ { d }$ is an RKHS ball of vector valued functions.
235
+
236
+ Under mild assumptions, Mukherjee & Zhou (2006) shows that we have for $N = O ( 1 / \epsilon ^ { d / 2 } )$ : $\begin{array} { r } { \int _ { \Omega } \left. G _ { \Lambda } ( x ) - \nabla _ { x } \psi ( x ) \right. ^ { 2 } \rho _ { \Omega } ( x ) d x \leq \epsilon } \end{array}$ . We simplify the problem in Eq. 18 and propose the following two objective functions and leverage the deep learning toolkit to parameterize the surrogate $f _ { \theta }$ :
237
+
238
+ $$
239
+ \operatorname* { m i n } _ { f _ { \theta } \in \mathcal { H } _ { \theta } } \frac { 1 } { N ^ { 2 } } \sum _ { i , j } w _ { i j } ^ { \sigma } ( y _ { i } - f _ { \theta } ( x _ { j } ) + \langle \nabla _ { x } f _ { \theta } ( x _ { i } ) , x _ { j } - x _ { i } \rangle ) ^ { 2 } ( \mathbf { \mathrm { T a y l o r } } \mathbf { - } \mathbf { 1 } ) ,
240
+ $$
241
+
242
+ $$
243
+ \operatorname* { m i n } _ { f _ { \theta } \in \mathcal { H } _ { \theta } } \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \{ ( y _ { i } - f _ { \theta } ( x _ { i } ) ) ^ { 2 } + \frac { \lambda } { N ^ { 2 } } \sum _ { i , j } w _ { i j } ^ { \sigma } ( y _ { i } - y _ { j } + \langle \nabla _ { x } f _ { \theta } ( x _ { i } ) , x _ { j } - x _ { i } \rangle ) ^ { 2 } \} , ( \mathbf { T a y l o r - R e g } ) \ .
244
+ $$
245
+
246
+ The objective in Eq. 19 uses a single surrogate to parameterize the potential and its gradient. The objective in Eq. 20 is similar in spirit to the Jacobian matching formulation in the sense that it adds a regularizer on the gradient of the surrogate to be consistent with the first-order Taylor expansion in local neighborhoods. The advantage of the Taylor learning approach is that we do not need to perform zero-order estimation of gradients to construct the training set and we rely instead on first-order approximation in local neighborhood.
247
+
248
+ # 6.3 SURROGATE MODEL CONSTRAINED LMC
249
+
250
+ Consider the surrogate model $f _ { \theta }$ obtained via Hermite Learning (Eq. 17) or via Taylor learning (Eqs 18, 19, 20). We are now ready to define the surrogate model LMC by replacing $\mathbf { G } ( \mathbf { x } ) = \nabla _ { \mathbf { x } } \mathbf { f } _ { \theta } ( \mathbf { x } )$ in the constrained Langevin dynamics in Eqs 9 and 10.
251
+
252
+ Both Hermite and Taylor learning come with theoretical guarantees when the approximation function space is an RKHS under some mild assumptions on the training distribution and the regularity of the target function $\psi$ . In Hermite learning (Theorem 2 in Shi et al. (2010)) we have: $E _ { x \sim p _ { \Omega } } \left\| \nabla _ { x } f _ { \theta } ( x ) - \nabla _ { x } \psi ( x ) \right\| ^ { 2 } \leq \epsilon$ for sufficiently large training set $N = O ( 1 / \epsilon ^ { 1 / ( 2 \zeta r ) } )$ (where exponents $\zeta , r \in [ 0 , 1 ]$ depend on regularity of $\psi$ ). In Taylor Learning with the objective function given in Eq. 18 (Proposition 7 in Wu et al. (2010) we have: $\begin{array} { r } { \mathbb { E } _ { x \sim \rho _ { \Omega } } \left\| G _ { \Lambda } ( x ) - \nabla _ { x } \psi ( x ) \right\| ^ { 2 } \leq \epsilon } \end{array}$ for $N = O ( 1 / \epsilon ^ { d / 2 } )$ . In order to apply Theorem 2 we need this gradient approximation error to hold in expectation on all intermediate distributions in the Langevin sampling. Hence, we need the following extra-assumption on the training distribution $p _ { \Omega }$ :
253
+
254
+ Assumption D: Assume we have a learned surrogate $G$ on training distribution $\rho \Omega$ such that $\begin{array} { r } { \mathbb { E } _ { { x } \sim \rho _ { \Omega } } \left\| { G } ( { x } ) - \nabla _ { { x } } { U } ( { x } ) \right\| ^ { 2 } \leq \epsilon } \end{array}$ . Assume $\rho _ { \Omega } ( x ) > 0 , \forall x \in \Omega$ and that it is a dominating measure of Langevin (PLMC, S-PLMC, Prox-LMC, S-ProxLMC ) intermediate distributions $\mu _ { k }$ , i.e. there exists $C > 0$ such that:
255
+
256
+ $$
257
+ \mu _ { k } ( x ) \leq C \rho _ { \Omega } ( x ) , \forall x \in \Omega , \forall k = 0 , \ldots K - 1 .
258
+ $$
259
+
260
+ Under Assumption $\mathbf { D }$ , it follows immediately that
261
+
262
+ $$
263
+ \mathbb { E } \| G ( X _ { k } ) - \nabla U ( X _ { k } ) \| ^ { 2 } = \int _ { \Omega } \| G ( x ) - \nabla U ( x \| ^ { 2 } \frac { \mu _ { k } ( x ) } { \rho _ { \Omega } ( x ) } \rho _ { \Omega } ( x ) \leq C \epsilon
264
+ $$
265
+
266
+ and hence we can apply Theorem 2 for $\delta = C \epsilon$ , and we obtain $\varepsilon$ -approximation of the target Gibbs distribution in terms of total variation distance.
267
+
268
+ Remark 4. Assumption $D$ on the $\epsilon$ -approximation of the gradient can be achieved for a large enough training set $N$ , when we use Hermite learning in RKHS under mild assumptions and in Taylor learning. The assumption on the dominance of the training distribution is natural and means that we need a large training set that accounts to what we may encounter in Surrogate LMC iterations.
269
+
270
+ In what follows we refer to surrogate constrained LMC, as $\mathbf { X }$ -PLMC or $\mathbf { X }$ -ProxLMC where x is one of four suffixes ({Z-Hermite, Taylor-2, Taylor-1, Taylor-Reg}).
271
+
272
+ # 7 RELATED WORK
273
+
274
+ Zero-Order Methods. Zero-order optimization with Gaussian smoothing was studied in Nesterov & Spokoiny (2017) and Duchi et al. (2015) in the convex setting. Non-convex zero order optimization was also addressed in Ghadimi & Lan (2013). The closest to our work is the zero-order Langevin Shen et al. (2019) introduced recently for black-box sampling from log concave density. The main difference in our setting, is that the density has a compact support and hence the need to appeal to projected LMC (Bubeck et al., 2015) and Proximal LMC (Brosse et al., 2017). It is worth nothing that Hsieh et al. (2018) introduced recently mirror Langevin sampling that can also be leveraged in our framework.
275
+
276
+ Gradients and Score functions Estimators. We used the approach of gradient distillation (Srinivas & Fleuret, 2018) and learning gradients of (Wu et al., 2010), since they are convenient for training on different constraints and they come with theoretical guarantees. However, other approaches can be also leveraged such as the score matching approach for learning the gradient of the log likelihood (Hyvärinen, 2005) and other variants appealing to dual embeddings (Dai et al., 2018). Estimating gradients can be also performed using Stein’s method as in (Li & Turner, 2017), or via maintaining a surrogate of the gradient as in Stein descent without gradient (Han & Liu, 2018).
277
+
278
+ Optimization approaches. Due to space limitation, we restrict the discussion to the optimization methods that are most commonly and recently used for optimal material (or molecule) design. A popular approach to deal with optimization of expensive black-box functions is Bayesian Optimization (BO) (Mockus, 1994; Jones et al., 1998; Frazier, 2018). The standard BO protocol is comprised of estimating the black-box function from data through a probabilistic surrogate model, usually a Gaussian process, and maximizing an acquisition function to decide where to sample next. BO is often performed over a latent space, as in (Gómez-Bombarelli et al., 2018). Hernández-Lobato et al. (2016) proposed an information-theoretic framework for extending BO to address optimization under black-box constraints, which is close to current problem scenario. Genetic Algorithms (GA), a class of meta-heuristic based evolutionary optimization techniques, is another widely used approach for generating (material) samples with desired property (Jennings et al., 2019) and has been also used for handling optimization under constraints (Chehouri et al., 2016). However, GA typically requires a large number of function evaluations, can get stuck in local optima, and does not scale well with complexity. Finally, Zhou et al. (2019) has used deep reinforcement learning technique of Deep Q-networks to optimize molecules under a specific constraint using desired properties as rewards. The advantage of our framework is that we obtain a distribution of optimal configurations (as opposed to a single optimized sample) that does not rely on training on a specific pre-existing dataset and can be further screened and tested for their optimality for the task at hand.
279
+
280
+ # 8 EXPERIMENTS
281
+
282
+ In this section, we demonstrate the usability of our black-blox Langevin sampling approach for the design of nano-porous configurations. We first show the performance of the surrogate models in learning the potential function, showcasing the results using four different variants: standard regression, Taylor regularization, Taylor-1 and Taylor-2. We then show how well the surrogate-based Langevin MC generates new samples under the thermal and mechanical constraints. We compare the sample quality on multiple criteria between the surrogate and zero-order approaches with either projection or proximal update step.
283
+
284
+ Data. We want to learn surrogate models to approximate the gradient of the potential from data. To this end, we generate a dataset of 50K nano-porous structures, each of size $1 0 0 \mathrm { { n m } \times 1 0 0 \mathrm { { n m } } }$ One such example is displayed in Fig. 1. Number of pores is fixed to 10 in this study and each pore is a square with a side length of $1 7 . 3 2 \mathrm { n m }$ . We sample the pore centers uniformly over the unit square and construct the corresponding structure after re-scaling them appropriately. Then, using the solvers OpenBTE (Romano & Grossman, 2015) and Summit $( \mathrm { { \sum } M I T }$ Development Group, 2018), we we collect two datasets: obtain for each structure $x$ $\{ ( x _ { i } , \kappa _ { i } ) \} _ { i = 1 } ^ { N }$ a pair of values: thermal conductivity and $\{ ( x _ { i } , \sigma _ { i } ) \} _ { i = 1 } ^ { N }$ with the same inputs $\kappa$ and von Mises stress $x _ { i }$ ’s and $N = 5 0 K$ $\sigma$ . Finally, samples. More details are given in Appendices B and C on the PDEs and their corresponding solvers.
285
+
286
+ Features. The pore locations are the natural input features to the surrogate models. Apart from the coordinates, we also derive some other features based on physical intuitions. For example, the distances between pores and the alignment along axes are informative of thermal conductivity (Romano & Grossman, 2016). As such, we compute pore-pore distances along each coordinate axis and add them as additional features.
287
+
288
+ Surrogate gradient methods. We use feed-forward neural networks to model the surrogates since obtaining gradients for such networks is efficient thanks to automatic differentiation frameworks. We use networks comprised of 4 hidden layers with sizes 128, 72, 64, 32 and apply the same architecture to approximate the gradients for $\kappa$ and $\sigma$ separately. The hidden layers use ReLU activations whereas sigmoid was used at the output layer (after the target output is properly normalized). For the Taylor-2 variant (in Eq. 18), we have an additional output vector of the same size as the input for the gradient prediction. The networks are trained on the corresponding objective functions set up earlier by an
289
+
290
+ ![](images/1b33f4afab0be01eb554ee28d0be82c7bb9d0e45b741425df2ed2d5b4b0daf0a.jpg)
291
+ Figure 1: Example of nano-porous structures with corresponding heat flux shown using a color gradient. Yellow regions indicate high phonons flux. The thermal conductivity $\kappa$ and von Mises stress $\sigma$ are reported below each structure. The arrows show the moving directions of the pores. (Left) A random sample. (Middle) The sample obtained by Taylor-Reg PMLC starting from the left structure with $\kappa$ constraint. (Right) The sample obtained by Taylor-Reg PMLC with both $\kappa$ and $\sigma$ constraints.
292
+
293
+ Adam optimizer with learning rate $1 0 ^ { - 4 }$ and decay 1.0. We fine-tune the networks with simple grid-search and select the best models for comparison. Due to the space constraint, we present the results in Appendix A and emphasize that Z-Hermite is not included in the entire comparison but in a small experiment performed with a more lightweight OpenBTE version.
294
+
295
+ Incorporating constraints and comparison metrics. We demonstrate the usability of our proposed black-box Langevin sampling for the design of nano-configurations under thermal conductivity and mechanical stability constraints that are provided by the corresponding PDE solvers. To compare sampling outcomes, we use the following metrics. We report the minimum value of $\kappa$ and Monte Carlo estimates for both $\kappa$ and $\sigma$ to compare the samples generated by different sampling methods and surrogate models. The Monte Carlo estimates are computed on 20 samples.
296
+
297
+ Single constraint. Our first task is to design nano-configurations under the thermal conductivity constraint where we want $\kappa$ as low as possible in order to achieve high thermo-electric efficiency. From the posterior regularization formulation Section 2, we pose the constraint satisfaction as sampling from the following Gibbs distribution:
298
+
299
+ $$
300
+ \pi ( x ) = p _ { 0 } ( x ) \frac { \exp ( - \lambda \kappa ( x ) ^ { 2 } ) } { Z } \mathbb { 1 } _ { x \in [ 0 , 1 ] ^ { 2 0 } }
301
+ $$
302
+
303
+ where $p _ { 0 } ( x )$ is the uniform distribution over the unit square, which is equivalent to the Poisson process of 10 pores on the square, and $\kappa ( x )$ is the thermal conductivity we want to minimize. Starting from 20 samples initialized from $p _ { 0 } ( x )$ , we run our proposed black-box Langevin MCs and obtain 20 new realizations from the target distribution $\pi ( x )$ . We use four different surrogates (including simple regression, Taylor-Reg, Taylor-1 and zero-order) and each surrogate with either projection or proximal update. We show the summary statistics of these samples in Table 1. The regression-PMLC in the first row and regression-ProxLMC in the fifth represent the sampling where the surrogate model are fitted on solely the mean square error objective. In all methods, we set $\lambda = 1 0 0$ , the step size $\eta = 1 \mathrm { e } { - 3 }$ and the exponential decay rate 0.8. Since keeping track of the true $\kappa$ value is expensive, we stop after $K = 1 0$ iterations. We first observe that the regression-based method (PLMC, ProxLMC) is less effective than the others simply because they do not have an implicit objective for approximating the gradients. Taylor-Reg and Taylor-1 demonstrate its effectiveness in approximating the gradient and are able to achieve lower thermal conductivity. In particular, Taylor-1-ProxLMC and Zero-order-PLMC perform in the similar range in terms of the minimum achieved, but the learned surrogate offers $\mathbf { 1 7 x }$ speed up (per sample) over zero order methods. Due to the space limit, we do not report Taylor-2 results in Table 1, and note that Taylor-2 works in the similar vein as Taylor-1.
304
+
305
+ <table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>Min K</td><td rowspan=1 colspan=1>Mean K</td><td rowspan=1 colspan=1>Per-sam. time (s)</td></tr><tr><td rowspan=1 colspan=1>Regression-PLMC</td><td rowspan=1 colspan=1>0.0757</td><td rowspan=1 colspan=1>0.1206± 0.0480</td><td rowspan=1 colspan=1>1055</td></tr><tr><td rowspan=1 colspan=1>Taylor-Reg-PLMC</td><td rowspan=1 colspan=1>0.0638</td><td rowspan=1 colspan=1>0.1196± 0.0495</td><td rowspan=1 colspan=1>899</td></tr><tr><td rowspan=1 colspan=1>Taylor-1-PLMC</td><td rowspan=1 colspan=1>0.0637</td><td rowspan=1 colspan=1>0.1278±0.0610</td><td rowspan=1 colspan=1>852</td></tr><tr><td rowspan=1 colspan=1>Zero-order-PLMC</td><td rowspan=1 colspan=1>0.0510</td><td rowspan=1 colspan=1>0.1093土:0.0271</td><td rowspan=1 colspan=1>14967</td></tr><tr><td rowspan=1 colspan=1>Regression-ProxLMC</td><td rowspan=1 colspan=1>0.0646</td><td rowspan=1 colspan=1>0.1282土0.0531</td><td rowspan=1 colspan=1>1107</td></tr><tr><td rowspan=1 colspan=1>Taylor-Reg-ProxLMC</td><td rowspan=1 colspan=1>0.0712</td><td rowspan=1 colspan=1>0.1205 ± 0.0455</td><td rowspan=1 colspan=1>899</td></tr><tr><td rowspan=1 colspan=1>Taylor-1-ProxLMC</td><td rowspan=1 colspan=1>0.0575</td><td rowspan=1 colspan=1>0.1297 ± 0.0543</td><td rowspan=1 colspan=1>874</td></tr><tr><td rowspan=1 colspan=1>Zero-order-ProxLMC</td><td rowspan=1 colspan=1>0.0719</td><td rowspan=1 colspan=1>0.1112 ± 0.0363</td><td rowspan=1 colspan=1>14938</td></tr></table>
306
+
307
+ Table 1: Statistics of 20 new samples obtained by running different surrogate-based Langevin MCs on $\pi$ with the thermal conductivity constraint (Eq. 21). We show the min and mean over the generated samples and the per-sample time. Initialized samples have min $\kappa = 0 . 0 6 1 9$ and mean $\sigma = 0 . 1 2 6 8$ .
308
+
309
+ Multiple constraints. Achieving the minimal thermal conductivity can be fulfilled without much difficulty (e.g. structures with all pores aligned along the vertical axis), but such structures are often mechanically unstable. In the next step, we study whether adding more (conflicting) constraints helps us design better nano-configurations. Hence, we consider both thermal conductivity $\kappa$ and mechanical stability provided via von Mises stress $\sigma$ . We want a sample $x$ that minimizes $\kappa ( x )$ to achieve high thermo-electric efficiency while maintaining $\sigma ( x )$ less than some threshold (which we explain below). Like the single constraint case, we pose this as sampling from the following Gibbs distribution:
310
+
311
+ $$
312
+ \pi ( x ) = p _ { 0 } ( x ) \frac { \exp ( - \lambda _ { 1 } \kappa ( x ) ^ { 2 } - \lambda _ { 2 } [ \sigma ( x ) - \tau ] _ { + } ) } { Z } \mathbb { 1 } _ { x \in [ 0 , 1 ] ^ { 2 0 } } ,
313
+ $$
314
+
315
+ where $p _ { 0 } ( x )$ is the same as above, $\sigma ( x )$ is the von Mises stress and $\tau$ is a threshold on the maximum value of $\sigma$ . With this framework, we relax the inequality constraint to the Hinge loss term on von Mises stress. The results are summarized in Table 2. Note that all the surrogate Langevin MCs are initialized from the same set of 20 samples as above. In this experiment, we set $\tau = 0 . 5$ , $\lambda _ { 1 } = 1 0 0$ , $\lambda _ { 2 } = 1 0$ the step size $\eta = 1 \mathrm { e } { - 3 }$ and the exponential decay rate 0.8. Comparing with Table 1, one can see that not only better $\kappa$ be achieved but also the $\sigma$ can be reduced simultaneously. These results suggest that our approach can effectively sample new configurations under multiple competing constraints. Examples of new nano-configurations are show in Fig. 1 and Appendix A Fig. 5, 6 and 7.
316
+
317
+ <table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>Min K</td><td rowspan=1 colspan=1>Mean K</td><td rowspan=1 colspan=1>Mean σ</td><td rowspan=1 colspan=1>Per-sam. time (s)</td></tr><tr><td rowspan=1 colspan=1>Taylor-Reg-PLMC</td><td rowspan=1 colspan=1>0.0613</td><td rowspan=1 colspan=1>0.1256 ± 0.0538</td><td rowspan=1 colspan=1>0.6590± 0.2261</td><td rowspan=1 colspan=1>952</td></tr><tr><td rowspan=1 colspan=1>Taylor-1-PLMC</td><td rowspan=1 colspan=1>0.0611</td><td rowspan=1 colspan=1>0.1278± 0.0610</td><td rowspan=1 colspan=1>0.6380± 0.1598</td><td rowspan=1 colspan=1>852</td></tr><tr><td rowspan=1 colspan=1>Zero-order-PLMC</td><td rowspan=1 colspan=1>0.0471</td><td rowspan=1 colspan=1>0.1148 ± 0.0475</td><td rowspan=1 colspan=1>0.6511 ± 0.1916</td><td rowspan=1 colspan=1>15677</td></tr><tr><td rowspan=1 colspan=1>Taylor-Reg-ProxLMC</td><td rowspan=1 colspan=1>0.0666</td><td rowspan=1 colspan=1>0.1195 ± 0.0534</td><td rowspan=1 colspan=1>0.6402 ± 0.1464</td><td rowspan=1 colspan=1>856</td></tr><tr><td rowspan=1 colspan=1>Taylor-1-ProxLMC</td><td rowspan=1 colspan=1>0.0548</td><td rowspan=1 colspan=1>0.1298 ± 0.0610</td><td rowspan=1 colspan=1>0.6156 ± 0.1463</td><td rowspan=1 colspan=1>972</td></tr><tr><td rowspan=1 colspan=1>Zero-order-ProxLMC</td><td rowspan=1 colspan=1>0.0354</td><td rowspan=1 colspan=1>0.1080 ± 0.0384</td><td rowspan=1 colspan=1>0.6029 ± 0.1376</td><td rowspan=1 colspan=1>15080</td></tr></table>
318
+
319
+ Table 2: Summary statistics of 20 new samples obtained by our sampling method on $\pi ( x )$ with $\kappa$ and $\sigma$ constraints Eq. 22. The starting samples are reused from the single constraint case (min $\kappa = 0 . 0 7 5 9$ , mean $\kappa = 0 . 1 2 6 8$ , and mean $\sigma = 0 . 8 1 8 1$ ; note that $\sigma$ can be as high as 16.)
320
+
321
+ # 9 CONCLUSION
322
+
323
+ In this paper we introduced Surrogate-Based Constrained Langevin Sampling for black-box sampling from a Gibbs distribution defined on a compact support. We studied two approaches for defining the surrogate: the first through zero-order methods and the second via learning gradient approximations using deep neural networks. We showed the proofs of convergence of the two approaches in the log-concave and smooth case. While zero-order Langevin had prohibitive computational cost, learned surrogate model Langevin enjoy a good tradeoff of lightweight computation and approximation power. We applied our black-box sampling scheme to the problem of nano-material configuration design, where the black box constraints are given by expensive PDE solvers, and showed the efficiency and the promise of our method in finding optimal configurations. Among different approaches for approximating the gradient, the zero-order ones (PLMC, ProxLMC) show overall superior performance, at a prohibitive computational cost. We established that the deep the surrogate (Taylor-1
324
+
325
+ ProxLMC) is a viable alternative to zero-order methods, achieving reasonable performance, and offering 15x speedup over zero-order methods.
326
+
327
+ # REFERENCES
328
+
329
+ Nicolas Brosse, Alain Durmus, Éric Moulines, and Marcelo Pereyra. Sampling from a log-concave distribution with compact support with proximal langevin monte carlo. In Conference on Learning Theory, pp. 319–342, 2017.
330
+
331
+ Sebastien Bubeck, Ronen Eldan, and Joseph Lehec. Finite-time analysis of projected langevin monte carlo. In Advances in Neural Information Processing Systems, pp. 1243–1251, 2015.
332
+
333
+ Adam Chehouri, Rafic Younes, Jean Perron, and Adrian Ilinca. A constraint-handling technique for genetic algorithms using a violation factor. arXiv preprint arXiv:1610.00976, 2016.
334
+
335
+ Gang Chen. Nanoscale energy transport and conversion: a parallel treatment of electrons, molecules, phonons, and photons. Oxford University Press, USA, 2005. URL https://www. amazon.com/Nanoscale-Energy-Transport-Conversion-MIT-Pappalardo/ dp/019515942X.
336
+
337
+ Ming-Hui Chen and Bruce Schmeiser. Toward black-box sampling: A random-direction interior-point markov chain approach. Journal of Computational and Graphical Statistics, 7(1):1–22, 1998.
338
+
339
+ Wojciech M. Czarnecki, Simon Osindero, Max Jaderberg, Grzegorz Swirszcz, and Razvan Pascanu. Sobolev training for neural networks. In Advances in Neural Information Processing Systems 30, pp. 4278–4287. 2017.
340
+
341
+ Bo Dai, Hanjun Dai, Arthur Gretton, Le Song, Dale Schuurmans, and Niao He. Kernel exponential family estimation via doubly dual embedding. arXiv preprint arXiv:1811.02228, 2018.
342
+
343
+ A. S. Dalalyan and A. B. Tsybakov. Sparse regression learning by aggregation and langevin montecarlo. J. Comput. Syst. Sci., 2012.
344
+
345
+ Arnak S Dalalyan. Theoretical guarantees for approximate sampling from smooth and log-concave densities. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 79(3): 651–676, 2017.
346
+
347
+ John C Duchi, Michael I Jordan, Martin J Wainwright, and Andre Wibisono. Optimal rates for zero-order convex optimization: The power of two function evaluations. IEEE Transactions on Information Theory, 61(5):2788–2806, 2015.
348
+
349
+ Alain Durmus, Eric Moulines, et al. High-dimensional bayesian inference via the unadjusted langevin algorithm. Bernoulli, 25(4A):2854–2882, 2019.
350
+
351
+ Peter I Frazier. A tutorial on bayesian optimization. arXiv preprint arXiv:1807.02811, 2018.
352
+
353
+ Kuzman Ganchev, Jennifer Gillenwater, Ben Taskar, et al. Posterior regularization for structured latent variable models. Journal of Machine Learning Research, 11(Jul):2001–2049, 2010.
354
+
355
+ Saeed Ghadimi and Guanghui Lan. Stochastic first-and zeroth-order methods for nonconvex stochastic programming. SIAM Journal on Optimization, 23(4):2341–2368, 2013.
356
+
357
+ Rafael Gómez-Bombarelli, Jennifer N Wei, David Duvenaud, José Miguel Hernández-Lobato, Benjamín Sánchez-Lengeling, Dennis Sheberla, Jorge Aguilera-Iparraguirre, Timothy D Hirzel, Ryan P Adams, and Alán Aspuru-Guzik. Automatic chemical design using a data-driven continuous representation of molecules. ACS central science, 4(2):268–276, 2018.
358
+
359
+ Jun Han and Qiang Liu. Stein variational gradient descent without gradient. In Proceedings of the 35th International Conference on Machine Learning, pp. 1900–1908, 2018.
360
+
361
+ José Miguel Hernández-Lobato, Michael A. Gelbart, Ryan P. Adams, Matthew W. Hoffman, and Zoubin Ghahramani. A general framework for constrained bayesian optimization using informationbased search. Journal of Machine Learning Research, 17(160):1–53, 2016. URL http://jmlr. org/papers/v17/15-616.html.
362
+
363
+ Ya-Ping Hsieh, Ali Kavis, Paul Rolland, and Volkan Cevher. Mirrored langevin dynamics. In Advances in Neural Information Processing Systems, pp. 2878–2887, 2018.
364
+
365
+ Zhiting Hu, Zichao Yang, Ruslan R Salakhutdinov, LIANHUI Qin, Xiaodan Liang, Haoye Dong, and Eric P Xing. Deep generative models with learnable knowledge constraints. In Advances in Neural Information Processing Systems, pp. 10501–10512, 2018.
366
+
367
+ Aapo Hyvärinen. Estimation of non-normalized statistical models by score matching. J. Mach. Learn. Res., 2005.
368
+
369
+ Paul C Jennings, Steen Lysgaard, Jens Strabo Hummelshøj, Tejs Vegge, and Thomas Bligaard. Genetic algorithms for computational materials discovery accelerated by machine learning. npj Computational Materials, 5(1):46, 2019.
370
+
371
+ Donald R Jones, Matthias Schonlau, and William J Welch. Efficient global optimization of expensive black-box functions. Journal of Global optimization, 13(4):455–492, 1998.
372
+
373
+ Yingzhen Li and Richard E Turner. Gradient estimators for implicit models. arXiv preprint arXiv:1705.07107, 2017.
374
+
375
+ Robert Lipster and Albert Shiryaev. Statistics of random processes. Springer, 2001.
376
+
377
+ Jonas Mockus. Application of bayesian approach to numerical methods of global and stochastic optimization. Journal of Global Optimization, 4(4):347–365, 1994.
378
+
379
+ Sayan Mukherjee and Qiang Wu. Estimation of gradients and coordinate covariation in classification. J. Mach. Learn. Res., 2006.
380
+
381
+ Sayan Mukherjee and Ding-Xuan Zhou. Learning coordinate covariances via gradients. J. Mach. Learn. Res., 2006.
382
+
383
+ Radford M Neal. Slice sampling. The Annals of Statistics, 31, 2003.
384
+
385
+ Yurii Nesterov and Vladimir Spokoiny. Random gradient-free minimization of convex functions. Found. Comput. Math., 2017.
386
+
387
+ Giuseppe Romano and Aldo Di Carlo. Multiscale electrothermal modeling of nanostructured devices. IEEE Trans. Nanotechnol., 10(6):1285–1292, 2011. URL http://ieeexplore.ieee.org/ document/5740609/?arnumber $\cdot$ 5740609&tag $^ { \cdot = 1 }$ .
388
+
389
+ Giuseppe Romano and Jeffrey C Grossman. Heat conduction in nanostructured materials predicted by phonon bulk mean free path distribution. J. Heat Transf., 137(7): 071302, 2015. URL https://heattransfer.asmedigitalcollection.asme. org/article.aspx?articleid $\bar { }$ 2119334.
390
+
391
+ Giuseppe Romano and Jeffrey C Grossman. Tuning thermal transport in disordered porous materials via phonon bottleneck identication. Phys. Rev. B, 1:3434, 2016.
392
+
393
+ Lingqing Shen, Krishnakumar Balasubramanian, and Saeed Ghadimi. Non-asymptotic results for langevin monte carlo: Coordinate-wise and black-box sampling. arXiv preprint arXiv:1902.01373, 2019.
394
+
395
+ Lei Shi, Xin Guo, and Ding-Xuan Zhou. Hermite learning with gradient data. J. Comput. Appl. Math., 2010.
396
+
397
+ Suraj Srinivas and François Fleuret. Knowledge transfer with jacobian matching. arXiv preprint arXiv:1803.00443, 2018.
398
+
399
+ The PMIT Development Group. $\sum \mathrm { m i t }$ , a scalable computational framework for large-scale simulation of complex mechanical response of materials, 2018. URL http://summit.mit.edu.
400
+
401
+ Shinya Suzuki, Shion Takeno, Tomoyuki Tamura, Kazuki Shitara, and Masayuki Karasuyama. Multiobjective bayesian optimization using pareto-frontier entropy. arXiv preprint arXiv:1906.00127, 2019.
402
+
403
+ Qiang Wu, Justin Guinney, Mauro Maggioni, and Sayan Mukherjee. Learning gradients: Predictive models that infer geometry and statistical dependence. J. Mach. Learn. Res., 2010.
404
+
405
+ Zhenpeng Zhou, Steven Kearnes, Li Li, Richard N Zare, and Patrick Riley. Optimization of molecules via deep reinforcement learning. Scientific reports, 9(1):10752, 2019.
406
+
407
+ # A SUPPLEMENTAL EXPERIMENTAL RESULTS
408
+
409
+ Surrogate gradient methods We use feed-forward neural networks to model the surrogates since obtaining gradients for such networks is efficient thanks to automatic differentiation frameworks. We use networks comprised of 4 hidden layers with sizes 128, 72, 64, 32 and apply the same architecture to approximate the gradients for $\kappa$ and $\sigma$ separately. The hidden layers compute ReLU activation whereas sigmoid was used at the output layer (after the target output is properly normalized). For the Taylor-2 variant (in Eq. 18), we have an output vector for the gradient prediction. The networks are trained on the corresponding objective functions set up earlier by Adam optimizer with learning rate $1 0 ^ { - 4 }$ and decay 1.0. We fine-tune the networks with simple grid-search and select the best models for comparison.
410
+
411
+ As emphasized throughout, our focus is more on approximating the gradient rather than learning the true function. However, we need to somehow evaluate the surrogate models on how well they generalize on a hold-out test set. Like canonical regression problems, we compare the surrogate variants against each other using root mean square error (RMSE) on the test set. Figures 2 and 3 shows the results. The left figure shows RMSE for predicting $\kappa$ and the right one shows RMSE for the von Mises stress $\sigma$ . We can see that the Taylor-Reg generalizes better and also converges faster than Taylor-1 and Taylor-2 to target RMSE for $\kappa$ , while all methods result similarly for $\sigma$ prediction. This is reasonable because the objectives of Taylor-1 and Taylor-2 are not to optimize the mean square error, which we evaluate on here. Figure 3 shows the learning in terms of sample complexity. Again, Taylor-Reg outperforms Taylor-1 and Taylor-2 for $\kappa$ prediction. In contrast, most models work similarly for $\sigma$ regression, particularly when the training size is reduced to $50 \%$ (25K).
412
+
413
+ ![](images/a6ad4fe4e01872fb2c58c72b469e2441c90067e0989fef49ed33aa237f05398e.jpg)
414
+ Figure 2: Comparison of the surrogate variants in testing RMSE. (Left) prediction accuracy for the thermal conductivity $\kappa$ . (Right) prediction accuracy for mechanical stability $\sigma$ . Note the difference in scale of $\kappa$ and $\sigma$ .
415
+
416
+ Effectiveness of Z-Hermite learning Notice that Z-Hermite learning is not included in this comparison and as a surrogate model in the black-blox Langevin sammpling in Section 8. The reason is that apart from the usual sample pair $( x _ { i } , y _ { i } )$ , we need the gradient $\tilde { y } _ { i }$ (See Eq. 17). Since we can query the solvers, this gradient can only be estimated using finite difference. For both $\kappa$ and $\sigma$ in our experiment, obtaining such data is extremely expensive. As a consequence, we do not have the full results of the Z-Hermite model. Instead, we ran a separate study to show the effectiveness of Z-Hermite surrogate LMC on a smaller data with a lightweight OpenBTE version (0.9.55). The results in Table 3 shows the working of $\textsf { Z }$ -Hermite learning in learning the gradient of $\kappa ( x )$ . Here, the entropy is based nearest neighbor estimate to demonstrate the diversity of the pore centers in the unit square. With the $( x _ { p } , y _ { p } )$ -coordinates of each pore $p$ , the entropy estimate is given by:
417
+
418
+ $$
419
+ H = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \log ( n \operatorname* { m i n } _ { j \neq i } \| p _ { i } - p _ { j } \| ) + \log 2 + C .
420
+ $$
421
+
422
+ ![](images/79f706b6c72619b01ff8332cf374b1e6dd2aebf363d10a85e6a19ccfde04a5cc.jpg)
423
+ Figure 3: Comparison of the surrogate models in RMSE on the same test set when the training size is varied. Note the scale difference in the figures due to the different range of values.
424
+
425
+ <table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>Mean K</td><td rowspan=1 colspan=1>Mean entropy</td><td rowspan=1 colspan=1>Per-sam. time (s)</td></tr><tr><td rowspan=1 colspan=1>Zero-order PLMC</td><td rowspan=1 colspan=1>0.0676</td><td rowspan=1 colspan=1>1.960</td><td rowspan=1 colspan=1>3658</td></tr><tr><td rowspan=1 colspan=1>Taylor-1 PLMC</td><td rowspan=1 colspan=1>0.0988</td><td rowspan=1 colspan=1>1.745</td><td rowspan=1 colspan=1>253</td></tr><tr><td rowspan=1 colspan=1>Z-Hermite PLMC</td><td rowspan=1 colspan=1>0.0946</td><td rowspan=1 colspan=1>1.739</td><td rowspan=1 colspan=1>227</td></tr><tr><td rowspan=1 colspan=1>Hybrid (Zero-order + Taylor-1)</td><td rowspan=1 colspan=1>0.0786</td><td rowspan=1 colspan=1>1.867</td><td rowspan=1 colspan=1>2136</td></tr></table>
426
+
427
+ Table 3: Z-Hermite learning is sample efficient at training time as well as for the Langevin sampling, but collecting the training set is prohibitive. Zero-order and deep surrogate can work in a hybird way and offer a better trade-off between accuracy and computation.
428
+
429
+ A hybrid algorithm between zero-order and Taylor-1 surrogate We can see in Tables 1, 2 and 3 the trade-off between computation and accuracy of our approach. While zero-order PLMC and ProxLMC can achieve the lowest thermal conductivity, their computational costs are prohibitive. In contrast, deep surrogate models (including Taylor-Reg, Taylor-1) are far more time-efficient but slightly worse in terms of achieving the optimal $\kappa$ . To mitigate the trade-off, we propose a simple hybrid method that combines the best of the zero-order and Taylor-1 surrogate models. The algorithm is shown in Figure A that alternates between using the gradient from the zero-order estimate and the gradient of the deep surrogate depending on whether taking this step would decrease the potential function (i.e. $\kappa _ { - }$ ). We show and compare the achieved $\kappa$ and running time in Table 3. Examples of the samples generated by Zero-order PLMC, Taylor-1 PLMC and the hybrid method are also depicted in Figure 4. The hybrid achieves the thermal conductivity that is lower than Taylor-1 PMLC while running almost $\cdot$ faster than zero-order PLMC. This suggests that the hybrid strategy offers a better trade-off in accuracy and computation. One way to further improve the hybrid is to collect the zero-order gradients while mixing and re-update the surrogate with Z-Hermite learning.
430
+
431
+ Algorithm 1 A hybrid PLMC algorithm alternating between zero-order and Taylor-1 surrogate gradients.
432
+
433
+ <table><tr><td>Train a network fe(x) with Taylor-1 Randomly sample xo from the uniform p(x) Perform a Langevin dynamic step</td></tr><tr><td>for t=1,2,...,K do if κ(x-nVxfe(x))&lt;κ(x) then</td></tr><tr><td>x←P(x-nVxfe(x)+√2nξ)</td></tr><tr><td>else estimate Vκ(x) using zero-order method</td></tr><tr><td>update x ← PΩ(x-n∀κ(x)+ √2nξ)</td></tr><tr><td>end if end for</td></tr><tr><td>Return a new sample x</td></tr></table>
434
+
435
+ ![](images/76b80df98db96b4f61582927af7f5366a61d93519bde044e5ae4ef192563b02c.jpg)
436
+ Figure 4: Samples from by Zero-order PLMC (left), Taylor-1 PLMC (middle) and the hybrid algorithm of Zero-order and Taylor-1 PLMC (right). All are run with the $\cdot$ constraint.
437
+
438
+ Additional generated samples We show additional configurations generated by our sampling approach (Taylor-Reg ProxLMC, Taylor-1 ProxLMC and Zero-order ProxLMC) in Fig. 5, 6 and 7.
439
+
440
+ ![](images/4b6120f2882bbc075bd04c38725d333db669e19d658a8e748b58b7a9f82b01b8.jpg)
441
+ Figure 5: Example of nano-porous structures with corresponding heat flux shown using a color gradient. Yellow regions indicate high phonons flux. The thermal conductivity $\kappa$ and von Mises stress $\sigma$ are reported below each structure. The arrows show the moving directions of the pores. (Left) A random sample. (Middle) The sample obtained by Taylor-Reg ProxLMC starting from the left structure with $\kappa$ constraint. (Right) The sample obtained by Taylor-Reg ProxLMC with both $\kappa$ and $\sigma$ constraints.
442
+
443
+ ![](images/8b032e4bba02e9603fb93e5e9718016febf36d67cb5ddbc70d204f17e6f6caea.jpg)
444
+ Figure 6: Example of nano-porous structures with corresponding heat flux shown using a color gradient. Yellow regions indicate high phonons flux. The thermal conductivity $\kappa$ and von Mises stress $\sigma$ are reported below each structure. The arrows show the moving directions of the pores. (Left) A random sample. (Middle) The sample obtained by Taylor-1 ProxLMC starting from the left structure with $\kappa$ constraint. (Right) The sample obtained by Taylor-1 ProxLMC with both $\kappa$ and $\sigma$ constraints.
445
+
446
+ ![](images/c365571973178b5b73a0229443cd1c1bf37d0a4299b0b43ab66bc93db9ea2f00.jpg)
447
+ Figure 7: Example of nano-porous structures with corresponding heat flux shown using a color gradient. Yellow regions indicate high phonons flux. The thermal conductivity $\kappa$ and von Mises stress $\sigma$ are reported below each structure. The arrows show the moving directions of the pores. (Left) A random sample. (Middle) The sample obtained by Zero-order ProxLMC starting from the left structure with $\kappa$ constraint. (Right) The sample obtained by Zero-order ProxLMC with both $\kappa$ and $\sigma$ constraints.
448
+
449
+ # B BACKGROUND ON MODELING NANOSCALE HEAT TRANSPORT
450
+
451
+ At the nanoscale, heat transport may exhibit strong ballistic behaviour and a non-diffusive model must be used (Chen, 2005). In this work we use the Boltzmann transport equation under the relaxation time approximation and in the mean-free-path (MFP) formulation (Romano & Grossman, 2015)
452
+
453
+ $$
454
+ \Lambda \hat { \mathbf { s } } \cdot \nabla T ( \Lambda ) + T ( \Lambda ) = \int \alpha ( \Lambda ^ { \prime } ) \langle T ( \Lambda ^ { \prime } ) \rangle d \Lambda ^ { \prime } ,
455
+ $$
456
+
457
+ where $T ( \Lambda )$ is the effective temperature associated to phonons with MFP $\Lambda$ and direction $\hat { \mathbf { s } }$ ; the notation $\langle . \rangle$ stands for an angular average. The coefficients $\alpha ( \Lambda ^ { \prime } )$ are given by
458
+
459
+ $$
460
+ \alpha ( \Lambda ^ { \prime } ) = \frac { K ( \Lambda ^ { \prime } ) } { \Lambda ^ { \prime } } \left[ \int \frac { K ( \Lambda ^ { \prime \prime } ) } { \Lambda ^ { \prime \prime } } d \Lambda ^ { \prime \prime } \right] ^ { - 1 } ,
461
+ $$
462
+
463
+ where $K ( \Lambda ^ { \prime } )$ is the bulk MFP distribution. In general, such a quantity can span several orders of magnitude; however, for simplicity we assume the gray model, i.e. all phonons travel with the same MFP, $\Lambda _ { 0 }$ . Within this approximation, we have ${ K ( \Lambda ) } = \kappa _ { \mathrm { b u l k } } \delta ( \Lambda - \Lambda _ { 0 } )$ . In this work we choose $\Lambda _ { 0 }$ $= 1 0 \mathrm { n m }$ , namely as large as the unit cell, so that significant phonons size effects occur. With no loss of generality, we set $\kappa _ { \mathrm { b u l k } } = 1 ~ \mathrm { { W m ^ { - 1 } K ^ { - 1 } } }$ . Eq. 23 is an integro-differential PDE, which is solved iteratively for each phonon direction over an unstructured mesh (Romano & Di Carlo, 2011). We apply periodic boundary conditions along the unit cell while imposing a difference of temperature of $\Delta T = 1 \mathrm { ~ K ~ }$ along the $x$ -axis. At the pores’ walls we apply diffusive boundary conditions. Upon convergence, the effective thermal conductivity is computed using Fourier’s law, i.e.
464
+
465
+ $$
466
+ \kappa _ { \mathrm { e f f } } = - \frac { L } { \Delta T A } \int _ { A } \mathbf { J } \cdot \hat { \mathbf { n } } d S ,
467
+ $$
468
+
469
+ where ${ \bf J } = ( \kappa _ { \mathrm { b u l k } } / \Lambda _ { 0 } ) \langle T ( \Lambda _ { 0 } ) \hat { \bf s } \rangle \hat { \bf n }$ is the heat flux, $L$ is the size of the unit cell, $A$ is the area of the cold contact (with normal $\hat { \mathbf { n } }$ ). Throughout the text we use the quantity $\kappa = \kappa _ { \mathrm { e f f } } / \kappa _ { \mathrm { b u l k } }$ as a measure of phonon size effects.
470
+
471
+ # C BACKGROUND ON MODELING MECHANICAL STRESS
472
+
473
+ We model mechanical stress by using the continuum linear elasticity equations
474
+
475
+ $$
476
+ { \frac { \partial } { \partial x _ { j } } } \sigma _ { i j } = f _ { i } ,
477
+ $$
478
+
479
+ where $f _ { i }$ is the body force (which is zero in this case), and $\sigma _ { i j }$ is the stress tensor. Note that we used the Einstein notation, i.e. repeated indexes are summed over. The strain $\epsilon _ { k l }$ is related to the stress via the fourth-rank tensor elastic constant $C _ { i j k l }$
480
+
481
+ $$
482
+ \sigma _ { i j } = C _ { i j k l } \epsilon _ { k l } .
483
+ $$
484
+
485
+ The strain is then related to the displacement $\mathbf { u }$ via
486
+
487
+ $$
488
+ \epsilon _ { k l } = \frac { 1 } { 2 } \left( \frac { \partial u _ { k } } { \partial x _ { l } } + \frac { \partial u _ { l } } { \partial u _ { k } } \right) .
489
+ $$
490
+
491
+ We apply periodic boundary conditions along the unit-cell and applied solicitation is a small in-plane expansion. Once the stress tensor is calculated, we compute the von Mises stress as
492
+
493
+ $$
494
+ \sigma _ { V M } = \sqrt { \frac { 1 } { 2 } \left( \sigma _ { 3 } - \sigma _ { 2 } \right) ^ { 2 } + \left( \sigma _ { 3 } - \sigma _ { 1 } \right) ^ { 2 } + \left( \sigma _ { 2 } - \sigma _ { 1 } \right) ^ { 2 } } ,
495
+ $$
496
+
497
+ where $\sigma _ { i }$ are the principal stress axis. As a mechanical stability estimator we use $\sigma = \operatorname* { m a x } _ { \mathbf { x } \in D } ( \sigma _ { V M } )$ where $D$ is the simulation domain. To avoid material’s plasticity, $\sigma$ needs to be smaller than the yield stress of a given material. For mechanical simulation we used the SUMIT code $( \mathrm { { \sum } M I T }$ Development Group, 2018).
498
+
499
+ # D BACKGROUND ON STOCHASTIC DIFFERENTIAL EQUATIONS (SDE): CHANGE OF MEASURE AND GRISANOV’S FORMULA
500
+
501
+ Theorem 3 (Grisanov Theorem, Change of Measure for Brownian Motion (Lipster & Shiryaev, 2001), Theorem 6.3 page 257). Let $( W _ { t } , \mathcal { F } _ { t } )$ be a Wiener process (Brownian motion) and $( \beta _ { t } , \mathcal { F } _ { t } ) a$ random process such that for any $T > 0$
502
+
503
+ $$
504
+ \int _ { 0 } ^ { T } \left\| \beta _ { t } \right\| ^ { 2 } d t < \infty a . s
505
+ $$
506
+
507
+ Then the random process : $d { \tilde { W } } _ { t } = d W _ { t } - \beta _ { t } d t$ or written equivalently: $\begin{array} { r } { \tilde { W } _ { t } = W _ { t } - \int _ { 0 } ^ { t } \beta _ { s } d s } \end{array}$ , is a Wiener process with respect to $\mathcal { F } _ { t }$ , $t \in [ 0 , T ]$ . Let $P _ { T } ^ { W } = \mathcal { L } ( W _ { [ 0 , T ] } )$ , and $P _ { T } ^ { \tilde { W } } = \mathcal { L } ( \tilde { W } _ { [ 0 , T ] } )$ the densities are given by: $\begin{array} { r } { \frac { d P _ { T } ^ { \tilde { W } } } { d P _ { T } ^ { W } } = \exp \left( \int _ { 0 } ^ { T } \langle \beta _ { s } , d W _ { s } \rangle - \frac { 1 } { 2 } \int _ { 0 } ^ { T } \left\| \beta _ { s } \right\| ^ { 2 } d s \right) . } \end{array}$ . It follows that:
508
+
509
+ $$
510
+ K L ( P _ { T } ^ { W } , P _ { T } ^ { \tilde { W } } ) = \frac { 1 } { 2 } \mathbb { E } _ { P _ { T } ^ { W } } \left[ \int _ { 0 } ^ { T } \left. \beta _ { s } \right. ^ { 2 } d s \right]
511
+ $$
512
+
513
+ Theorem 4 (Grisanov Theorem, Change of Measure for Diffusion Processes, (Lipster & Shiryaev, 2001), ()). Let $( X _ { t } ) _ { t \geq 0 }$ and $( Y _ { t } ) _ { t \geq 0 }$
514
+
515
+ $$
516
+ \begin{array} { r } { d X _ { t } = \alpha _ { t } ( X ) d t + d W _ { t } } \\ { d Y _ { t } = \beta _ { t } ( Y ) d t + d W _ { t } } \end{array}
517
+ $$
518
+
519
+ where $X _ { 0 } = Y _ { 0 }$ is an $\mathcal { F } _ { 0 }$ measurable random variable. Suppose that the non-anticipative functionals $\alpha _ { t } ( x )$ and $\beta _ { t } ( x )$ are such that a unique continuous strong solutions exits for both processes. If for any $T > 0$ :
520
+
521
+ $$
522
+ \int _ { 0 } ^ { T } \| \alpha _ { s } ( X ) \| ^ { 2 } + \| \beta _ { s } ( X ) \| ^ { 2 } d s < \infty ( a . s ) a n d \int _ { 0 } ^ { T } \| \alpha _ { s } ( Y ) \| ^ { 2 } + \| \beta _ { s } ( Y ) \| ^ { 2 } d s < \infty ( a . s ) .
523
+ $$
524
+
525
+ Let $P _ { T } ^ { X } = \mathcal { L } ( X _ { [ 0 , T ] } )$ , and $P _ { T } ^ { Y } = \mathcal { L } ( Y _ { [ 0 , T ] } )$ .
526
+
527
+ $$
528
+ \frac { d P _ { T } ^ { Y } } { d P _ { T } ^ { X } } ( X ) = \exp \left( - \int _ { 0 } ^ { T } \langle \alpha _ { s } ( X ) - \beta _ { s } ( X ) , d X _ { s } \rangle + \frac { 1 } { 2 } \int _ { 0 } ^ { T } ( \| \alpha _ { s } ( X ) \| - \| \beta _ { s } ( X ) \| ^ { 2 } ) d s \right) .
529
+ $$
530
+
531
+ $$
532
+ K L ( P _ { T } ^ { X } , P _ { T } ^ { Y } ) = \frac { 1 } { 2 } \mathbb { E } _ { P _ { T } ^ { X } } \left[ \int _ { 0 } ^ { T } \left. \alpha _ { s } ( X ) - \beta _ { s } ( X ) \right. ^ { 2 } d s \right] .
533
+ $$
534
+
535
+ # E BACKGROUND ON ZERO-ORDER OPTIMIZATION (GRADIENT-FREE)
536
+
537
+ Consider the smoothed potential $U _ { \nu }$ defined as follows:
538
+
539
+ $$
540
+ U _ { \nu } ( x ) = \mathbb { E } _ { g \sim \mathcal { N } ( 0 , I _ { d } ) } U ( x + \nu g )
541
+ $$
542
+
543
+ its gradient is given by:
544
+
545
+ $$
546
+ \nabla _ { \boldsymbol { x } } U _ { \nu } ( \boldsymbol { x } ) = \mathbb { E } _ { g } \frac { U ( \boldsymbol { x } + \nu g ) - U ( \boldsymbol { x } ) } { \nu } g ,
547
+ $$
548
+
549
+ A monte carlo estimate of $\nabla _ { x } U _ { \nu } ( x )$ is:
550
+
551
+ $$
552
+ \hat { G } _ { n } ( x ) = \frac { 1 } { n } \sum _ { j = 1 } ^ { n } \left( \frac { U ( x + \nu g _ { j } ) - U ( x ) } { \nu } \right) g _ { j } ,
553
+ $$
554
+
555
+ where $g _ { 1 } , \ldots g _ { n }$ are iid standard Gaussians vectors.
556
+
557
+ Using known results in zero order optimization under assumptions on smoothness and bounded gradients of the gradients we have for all $x$ ((Nesterov & Spokoiny, 2017; Shen et al., 2019)):
558
+
559
+ $$
560
+ \begin{array} { r } { \hat { G } _ { 1 } ( x ) - \nabla _ { x } U ( x ) \Big \| ^ { 2 } \leq \Big ( \beta \nu ( d + 2 ) ^ { 3 / 2 } + ( d + 1 ) ^ { \frac { 1 } { 2 } } \left\| \nabla _ { x } U ( x ) \right\| \Big ) ^ { 2 } \leq \Big ( \beta \nu ( d + 2 ) ^ { 3 / 2 } + ( d + 1 ) ^ { \frac { 1 } { 2 } } L \Big ) ^ { 2 } } \end{array}
561
+ $$
562
+
563
+ Finally by independence of $u _ { 1 } , \ldots . u _ { n }$ we have:
564
+
565
+ $$
566
+ \mathbb { E } _ { g _ { 1 } , \ldots , g _ { n } } \left\| \hat { G } _ { n } ( x ) - \nabla _ { x } U ( x ) \right\| ^ { 2 } \leq \frac { \Big ( \beta \nu ( d + 2 ) ^ { 3 / 2 } + ( d + 1 ) ^ { \frac { 1 } { 2 } } L \Big ) ^ { 2 } } { n }
567
+ $$
568
+
569
+ # F PROOFS
570
+
571
+ Proof of Lemma $I$ . Define the Lagrangian:
572
+
573
+ $$
574
+ \begin{array} { c } { { \displaystyle { \cal L } ( q , \eta ) = \int _ { \Omega } \log \left( \frac { q ( x ) } { p _ { 0 } ( x ) } \right) q ( x ) d x + \sum _ { j = 1 } ^ { C _ { e } } \lambda _ { j } \int _ { \Omega } ( \psi _ { j } ( x ) - y _ { j } ) ^ { 2 } q ( x ) d x } } \\ { { + \displaystyle { \sum _ { k = 1 } ^ { C _ { i } } \lambda _ { k } \int _ { x \in \Omega } ( \phi _ { k } ( x ) - b _ { k } ) _ { + } q ( x ) d x } + \eta \left( 1 - \displaystyle { \int _ { x \in \Omega } q ( x ) } \right) } } \end{array}
575
+ $$
576
+
577
+ Setting first order optimality conditions on $q$ , we have for $x \in \Omega$ :
578
+
579
+ $$
580
+ \log \left( \frac { q ( x ) } { p _ { 0 } ( x ) } \right) + 1 + \sum _ { j = 1 } ^ { C } \lambda _ { j } ( \psi _ { j } ( x ) - y _ { j } ) ^ { 2 } + \sum _ { k = 1 } ^ { C _ { i } } \lambda _ { k } ( \phi _ { k } ( x ) - b _ { k } ) _ { + } - \eta = 0
581
+ $$
582
+
583
+ Hence we have:
584
+
585
+ $$
586
+ q ( x ) = p _ { 0 } ( x ) \frac { \exp { \left( - \sum _ { j = 1 } ^ { C _ { c } } \lambda _ { j } ( \psi _ { j } ( x ) - y _ { j } ) ^ { 2 } - \sum _ { k = 1 } ^ { C _ { i } } \lambda _ { k } ( \phi _ { k } ( x ) - b _ { k } ) _ { + } \right) } } { e \exp { - \eta } } , x \in \Omega
587
+ $$
588
+
589
+ and
590
+
591
+ $$
592
+ q ( x ) = 0 , x \notin \Omega ,
593
+ $$
594
+
595
+ First order optimality on $\eta$ give us: $\textstyle \int _ { \Omega } q ( x ) = 1$ , we conclude by setting $e \exp ( - \eta ) = Z$ .
596
+
597
+ Proof of Theorem $1 \ I$ ) Projected Langevin. Let us define the following continuous processes by interpolation of $X _ { k }$ and $Y _ { K }$ (Piecewise constant):
598
+
599
+ $$
600
+ d \tilde { X } _ { t } = P _ { \Omega } ( \tilde { U } _ { t } ( \tilde { X } ) d t + \sqrt { 2 \lambda } d W _ { t } )
601
+ $$
602
+
603
+ where $\begin{array} { r } { \tilde { U } _ { t } ( \tilde { X } ) = - \sum _ { k = 0 } ^ { \infty } \nabla _ { x } U ( \tilde { X } _ { k \eta } ) \mathbb { 1 } _ { t \in [ k \eta , ( k + 1 ) \eta ] } ( t ) } \end{array}$ . Similarly let us define :
604
+
605
+ $$
606
+ d \tilde { Y } _ { t } = P _ { \Omega } ( G _ { t } ( \tilde { Y } ) d t + \sqrt { 2 \lambda } d W _ { t } )
607
+ $$
608
+
609
+ where $\begin{array} { r } { G _ { t } ( \tilde { Y } ) = - \sum _ { k = 0 } ^ { \infty } G ( \tilde { Y } _ { k \eta } ) \mathbb { 1 } _ { t \in [ k \eta , ( k + 1 ) \eta ] } ( t ) . } \end{array}$
610
+
611
+ It is easy to see that we have : $X _ { k } = \tilde { X } _ { k \eta }$ and $Y _ { k } = \tilde { Y } _ { k \eta }$
612
+
613
+ Let $\pi _ { \tilde { X } } ^ { T }$ and $\pi _ { \tilde { Y } } ^ { T }$ be the distributions of $( \tilde { X } _ { t } ) _ { t \in [ 0 , T ] }$ and $( \tilde { Y } ) _ { t \in [ 0 , T ] }$
614
+
615
+ Note that :
616
+
617
+ $$
618
+ d \tilde { Y } _ { t } = P _ { \Omega } \left( \tilde { U } _ { t } ( \tilde { X } _ { t } ) d t + \sqrt { 2 \lambda } ( d W _ { t } + \frac { 1 } { \sqrt { 2 \lambda } } ( G _ { t } ( \tilde { Y } _ { t } ) - \tilde { U } _ { t } ( \tilde { X } _ { t } ) ) d t ) \right)
619
+ $$
620
+
621
+ Let
622
+
623
+ $$
624
+ d \tilde { W } _ { t } = d W _ { t } + \frac { 1 } { \sqrt { 2 \lambda } } ( G _ { t } ( \tilde { Y } _ { t } ) - \tilde { U } _ { t } ( \tilde { X } _ { t } ) ) d t
625
+ $$
626
+
627
+ Hence we have :
628
+
629
+ $$
630
+ d \tilde { Y } _ { t } = P _ { \Omega } \left( \tilde { U } _ { t } ( \tilde { X } ) + \sqrt { 2 \lambda } d \tilde { W } _ { t } \right) ,
631
+ $$
632
+
633
+ Assume that $X _ { 0 } = Y _ { 0 }$ there exists $\mathcal { Q }$ such that , $X _ { T } = \mathcal { Q } ( \{ W _ { t } \} _ { t \in [ 0 , T ] } )$ and $Y _ { T } = \mathcal { Q } ( ( \tilde { W } _ { t } ) _ { t \in [ 0 , T ] } )$ . Let $\mu _ { T } ^ { \tilde { X } }$ be the law of $\tilde { X } _ { t \in [ 0 , T ] }$ . Same for $\mu _ { T } ^ { \tilde { Y } }$ . The proof here is similar to the proof of Lemma 8 in (Bubeck et al., 2015). By the data processing inequality we have:
634
+
635
+ $$
636
+ \mathrm { K L } ( \mu _ { T } ^ { \tilde { X } } , \mu _ { T } ^ { \tilde { Y } } ) \leq \mathrm { K L } ( W _ { t \in [ 0 , T ] } , \tilde { W } _ { t \in [ 0 , T ] } ) ,
637
+ $$
638
+
639
+ Now using Grisanov’s Theorem for change of measure of Brownian Motion (Theorem 3) we have:
640
+
641
+ $$
642
+ \mathrm { K L } ( W _ { t \in [ 0 , T ] } , \tilde { W } _ { t \in [ 0 , T ] } ) = \frac { 1 } { 4 \lambda } \mathbb { E } \int _ { 0 } ^ { T } | G _ { t } ( \tilde { Y } _ { t } ) - \tilde { U } _ { t } ( \tilde { X } _ { t } ) | ^ { 2 } d t
643
+ $$
644
+
645
+ Consider $T = K \eta$ , hence we have (with some abuse of notation we drop tilde as $Y _ { k } = \tilde { Y } _ { k \eta } )$ ):
646
+
647
+ $$
648
+ \begin{array} { l } { \displaystyle \mathrm { K L } ( \mu _ { T } ^ { \vec { X } } , \mu _ { T } ^ { \vec { V } } ) \leq \frac { 1 } { 4 \lambda } \sum _ { k = 0 } ^ { K - 1 } | G _ { t } ( \tilde { Y } _ { k } ) - \tilde { U } _ { t } ( \tilde { X } _ { t } ) | ^ { 2 } d l } \\ { \displaystyle \quad = \frac { 1 } { 4 \lambda } \mathrm { F } \sum _ { k = 0 } ^ { K - 1 } \int _ { \mathbb { R } ^ { d } } ^ { ( k + 1 ) \eta _ { q } } \| G ( \tilde { Y } _ { k n } ) - \nabla _ { x } U ( X _ { k n } ) \| ^ { 2 } d t } \\ { \displaystyle \quad = \frac { \eta } { 4 \lambda } \sum _ { k = 0 } ^ { K - 1 } \mathbb { E } \| G ( Y _ { k n } ) - \nabla _ { x } U ( X _ { k n } ) \| ^ { 2 } } \\ { \displaystyle \quad = \frac { \eta } { 4 \lambda } \sum _ { k = 0 } ^ { K - 1 } \mathbb { E } \| G ( Y _ { k n } ) - \nabla _ { x } U ( Y _ { k n } ) + \nabla _ { x } U ( Y _ { k n } ) - \nabla _ { x } U ( X _ { k n } ) \| ^ { 2 } } \\ { \displaystyle \quad = \frac { \eta } { 4 \lambda } \sum _ { k = 0 } ^ { K - 1 } \mathbb { E } \| G ( Y _ { k n } ) - \nabla _ { x } U ( Y _ { k n } ) \| ^ { 2 } + \mathbb { E } \| \nabla _ { x } U ( Y _ { k n } ) - \nabla _ { x } U ( X _ { k n } ) \| ^ { 2 } } \\ { \displaystyle \leq \frac { \eta } { 2 \lambda } \sum _ { k = 0 } ^ { K - 1 } \Big ( \mathbb { E } \| G ( Y _ { k n } ) - \nabla _ { x } U ( Y _ { k n } ) \| ^ { 2 } + \mathbb { E } \| \nabla _ { x } U ( Y _ { k n } ) - \nabla _ { x } U ( X _ { k n } ) \| ^ { 2 } \Big ) } \end{array}
649
+ $$
650
+
651
+ where in the last inequality we used the fact that $| | a - b | | ^ { 2 } \leq 2 ( | | a | | ^ { 2 } + | | b | | ^ { 2 } )$ . Note that we have by smoothness assumption on $U$ :
652
+
653
+ $$
654
+ \begin{array} { r } { \left\| { \nabla _ { x } U ( Y _ { k \eta } ) } - { \nabla _ { x } U ( X _ { k h } ) } \right\| ^ { 2 } \leq \beta ^ { 2 } \left\| { X _ { k h } - Y _ { k h } } \right\| ^ { 2 } } \end{array}
655
+ $$
656
+
657
+ Let $R$ be the diameter of $\Omega$ , we can get a bound as follows:
658
+
659
+ $$
660
+ \begin{array} { r l } { { \mathbf { K } \mathbf { L } ( \mu _ { T } ^ { \tilde { X } } , \mu _ { T } ^ { \tilde { Y } } ) \leq \frac { \eta } { 2 \lambda } ( \underbrace { \sum _ { k = 0 } ^ { K - 1 } \mathbb { E } \| G ( Y _ { k \eta } ) - \nabla _ { x } U ( Y _ { k \eta } ) \| ^ { 2 } } _ { \mathrm { G r a d i e n t ~ a p p r o x i m a t i o n ~ e r o r } } + \beta ^ { 2 } \sum _ { k = 0 } ^ { K - 1 } \mathbb { E } \| X _ { k h } - Y _ { k h } \| ^ { 2 } ) } } \\ & { \leq \frac { \eta } { 2 \lambda } ( \sum _ { k = 0 } ^ { K - 1 } \mathbb { E } \| G ( Y _ { k \eta } ) - \nabla _ { x } U ( Y _ { k \eta } ) \| ^ { 2 } + K \beta ^ { 2 } R ^ { 2 } ) } \end{array}
661
+ $$
662
+
663
+ Now using Pinsker inequality we have:
664
+
665
+ $$
666
+ T V ( \mu _ { T } ^ { \tilde { X } } , \mu _ { T } ^ { \tilde { Y } } ) ^ { 2 } \leq 2 \mathrm { K L } ( \mu _ { T } ^ { \tilde { X } } , \mu _ { T } ^ { \tilde { Y } } ) \leq \frac { \eta } { \lambda } \left( \sum _ { k = 0 } ^ { K - 1 } \mathbb { E } \left. G ( Y _ { k \eta } ) - \nabla _ { x } U ( Y _ { k \eta } ) \right. ^ { 2 } + K \beta ^ { 2 } R ^ { 2 } \right)
667
+ $$
668
+
669
+ Hence for $T = K \eta$ we have:
670
+
671
+ $$
672
+ T V ( \mu _ { K } ^ { \mathrm { { S - P L M C } } } , \mu _ { K } ^ { \mathrm { { P L M C } } } ) \leq \sqrt { \frac { \eta } { \lambda } } \left( \sum _ { k = 0 } ^ { K - 1 } \mathbb { E } \left\| G ( Y _ { k } ) - \nabla _ { x } U ( Y _ { k } ) \right\| ^ { 2 } + K \beta ^ { 2 } R ^ { 2 } \right) ^ { \frac { 1 } { 2 } } .
673
+ $$
674
+
675
+ Proof of Theorem $2$ ) Proximal LMC. Let us define the following continuous processes by interpolation of $X _ { k }$ and $Y _ { K }$ (Piecewise constant):
676
+
677
+ $$
678
+ d \tilde { X } _ { t } = \tilde { U } _ { t } ( \tilde { X } ) d t + \sqrt { 2 \lambda } d W _ { t }
679
+ $$
680
+
681
+ where $\begin{array} { r } { \tilde { U } _ { t } ( \tilde { \boldsymbol { X } } ) = - \sum _ { k = 0 } ^ { \infty } ( \nabla _ { \boldsymbol { x } } U ( \tilde { X } _ { k \eta } ) + \frac { 1 } { \gamma } ( \tilde { X } _ { k \eta } - P _ { \Omega } ( \tilde { X } _ { k \eta } ) ) ) \mathbb { 1 } _ { t \in [ k \eta , ( k + 1 ) \eta ] } ( t ) . } \end{array}$ . Similarly let us define :
682
+
683
+ $$
684
+ d \tilde { Y } _ { t } = G _ { t } ( \tilde { Y } ) d t + \sqrt { 2 \lambda } d W _ { t }
685
+ $$
686
+
687
+ where $\begin{array} { r } { G _ { t } ( \tilde { Y } ) = - \sum _ { k = 0 } ^ { \infty } ( G ( \tilde { Y } _ { k \eta } ) + \frac { 1 } { \gamma } ( \tilde { Y } _ { k \eta } - P _ { \Omega } ( \tilde { Y } _ { k \eta } ) ) ) \mathbb { 1 } _ { t \in [ k \eta , ( k + 1 ) \eta ] } ( t ) . } \end{array}$ . Now applying Grisanov’s Theorem for diffusions (Theorem 4) we have:
688
+
689
+ $$
690
+ \begin{array} { l } { \displaystyle \mathrm { K L } ( \mu _ { T } ^ { \tilde { X } } , \mu _ { T } ^ { \tilde { Y } } ) = \frac { 1 } { 4 \lambda } \mathbb { E } _ { P _ { T } ^ { X } } \left[ \int _ { 0 } ^ { T } \left\| U _ { t } ( \tilde { X } ) - G _ { t } ( \tilde { X } ) \right\| ^ { 2 } d t \right] } \\ { \displaystyle = \frac { 1 } { 4 \lambda } \mathbb { E } \sum _ { k = 0 } ^ { K - 1 } \int _ { k \eta } ^ { ( k + 1 ) \eta } \left\| G ( \tilde { X } _ { k \eta } ) - \nabla _ { x } U ( \tilde { X } _ { k \eta } ) \right\| ^ { 2 } d t } \\ { \displaystyle \quad = \frac { \eta } { 4 \lambda } \sum _ { k = 0 } ^ { K - 1 } \mathbb { E } \left\| G ( \tilde { X } _ { k \eta } ) - \nabla _ { x } U ( \tilde { X } _ { k \eta } ) \right\| ^ { 2 } } \\ { \displaystyle \quad = \frac { \eta } { 4 \lambda } \sum _ { k = 0 } ^ { K - 1 } \mathbb { E } \left\| G ( X _ { k } ) - \nabla _ { x } U ( X _ { k } ) \right\| ^ { 2 } . } \end{array}
691
+ $$
692
+
693
+ Now using Pinsker inequality we have:
694
+
695
+ $$
696
+ T V ( \mu _ { \tilde { X } } ^ { T } , \mu _ { \tilde { Y } } ^ { T } ) ^ { 2 } \le 2 \mathrm { K L } ( \mu _ { \tilde { X } } ^ { T } , \mu _ { \tilde { Y } } ^ { T } ) .
697
+ $$
698
+
699
+ Hence for $T = K \eta$ we have:
700
+
701
+ $$
702
+ T V ( \mu _ { K } ^ { \mathrm { { S } \cdot P r o x L M C } } , \mu _ { K } ^ { \mathrm { { P r o x L M C } } } ) \leq \sqrt { \frac { \eta } { 2 \lambda } } \left( \sum _ { k = 0 } ^ { K - 1 } \mathbb { E } \left\| G ( X _ { k } ) - \nabla _ { x } U ( X _ { k } ) \right\| ^ { 2 } \right) ^ { \frac { 1 } { 2 } } .
703
+ $$
704
+
705
+ Proof of Theorem 2 . S-PLMC. If we set $\lambda = 1$ , $\eta \le \alpha / K ^ { 2 }$ , where $\alpha = 1 / ( \delta + \beta ^ { 2 } R ^ { 2 } )$ , in this Corollary we obtain that : $\begin{array} { r } { T V ( \mu _ { K } ^ { S - P L M C } , \mu _ { K } ^ { P L M C } ) \le \frac { 1 } { \sqrt { K } } } \end{array}$ √1K . Assuming A, B and C we consider $\eta \le \operatorname* { m i n } ( R ^ { 2 } / K , \alpha / K ^ { 2 } )$ , and $K = \tilde { \Omega } ( \varepsilon ^ { - 1 2 } d ^ { 1 2 } )$ . Now using the triangle inequality together with the bounds in Eq.s 7 we have: $T V ( \mu _ { K } ^ { S - \dot { P } L M C } , \pi ) \le T V ( \mu _ { K } ^ { S - P L M C } , \bar { \mu } _ { K } ^ { P L M C } ) + \bar { T } V ( \bar { \mu } ^ { P L M C } , \pi ) \le$ $\varepsilon + { \frac { 1 } { \sqrt { K } } }$ .
706
+
707
+ S-ProxLMC. We conclude with a similar argument for µS−P roxLMC , π) using Eq.s 8. Considering $\eta = \operatorname* { m i n } ( \gamma ( 1 + \beta ^ { 2 } \gamma ^ { 2 } ) ^ { - 1 } , \frac { 1 } { \delta K ^ { 2 } } )$ , and $K = \tilde { \Omega } ( \varepsilon ^ { - 6 } d ^ { 5 } )$ , we obtain $\begin{array} { r } { ( \varepsilon + \frac { 1 } { \sqrt { K } } ) } \end{array}$ approximation in TV of the target Gibbs distribution.
708
+
709
+ # Proof of Corollary 1. Z-PLMC: We have:
710
+
711
+ $$
712
+ T V ( \mu _ { T } ^ { \tilde { X } } , \mu _ { T } ^ { \tilde { Y } } ) \leq \sqrt { \frac { \eta } { \lambda } \left( \sum _ { k = 0 } ^ { K - 1 } \mathbb { E } \left. G _ { n } U ( Y _ { k \eta } ) - \nabla _ { x } U ( Y _ { k \eta } ) \right. ^ { 2 } + K \beta ^ { 2 } R ^ { 2 } \right) }
713
+ $$
714
+
715
+ Taking the expectation we have:
716
+
717
+ $$
718
+ \begin{array} { r } { \mathbb { E } _ { g _ { 1 } \dots g _ { n } } T V ( \mu _ { T } ^ { \tilde { X } } , \mu _ { T } ^ { \tilde { Y } } ) \le \mathbb { E } _ { g _ { 1 } \dots g _ { n } } \sqrt { \frac { \eta } { \lambda } \left( \displaystyle \sum _ { k = 0 } ^ { K - 1 } \mathbb { E } \left\| G _ { n } U ( Y _ { k \eta } ) - \nabla _ { x } U ( Y _ { k \eta } ) \right\| ^ { 2 } + K \beta ^ { 2 } R ^ { 2 } \right) } } \\ { \le \sqrt { \displaystyle \frac { \eta } { \lambda } \left( \displaystyle \sum _ { k = 0 } ^ { K - 1 } \mathbb { E } _ { Y } \mathbb { E } _ { g _ { 1 } \dots g _ { n } } \left\| G _ { n } U ( Y _ { k \eta } ) - \nabla _ { x } U ( Y _ { k \eta } ) \right\| ^ { 2 } + K \beta ^ { 2 } R ^ { 2 } \right) } } \end{array}
719
+ $$
720
+
721
+ Note now that we have:
722
+
723
+ $$
724
+ \begin{array} { r } { \mathbb { E } _ { g _ { 1 } . . . g _ { n } } \left\| G _ { n } U ( Y _ { k \eta } ) - \nabla _ { x } U ( Y _ { k \eta } ) \right\| ^ { 2 } \leq \delta , \forall Y _ { k \eta } . } \end{array}
725
+ $$
726
+
727
+ For $n \geq \left( \beta \nu ( d + 2 ) ^ { 3 / 2 } + ( d + 1 ) ^ { \frac { 1 } { 2 } } L \right) ^ { 2 } / \delta$ The rest of the proof is an application of Theorem 2.
728
+
729
+ Z-ProxLMC. A similar argument holds.
parse/train/H1l_gA4KvH/H1l_gA4KvH_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1l_gA4KvH/H1l_gA4KvH_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1l_gA4KvH/H1l_gA4KvH_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Nl7VO_Y7K4Q/Nl7VO_Y7K4Q.md ADDED
@@ -0,0 +1,369 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Learning Policies with Zero or Bounded Constraint Violation for Constrained MDPs
2
+
3
+ Tao Liu∗ Texas A&M University tliu@tamu.edu
4
+
5
+ Ruida Zhou∗ Texas A&M University ruida@tamu.edu
6
+
7
+ Dileep Kalathil Texas A&M University dileep.kalathil@tamu.edu
8
+
9
+ P. R. Kumar Texas A&M University prk@tamu.edu
10
+
11
+ Chao Tian Texas A&M University chao.tian@tamu.edu
12
+
13
+ # Abstract
14
+
15
+ We address the issue of safety in reinforcement learning. We pose the problem in an episodic framework of a constrained Markov decision process. Existing√ results have shown that it is possible to achieve a reward regret of $\tilde { \mathcal { O } } ( \sqrt { K } )$ while allowing an $\tilde { \mathcal { O } } ( \sqrt { K } )$ constraint violation in $K$ episodes. A critical question that arises is whether it is possible to keep the constraint violation even smaller. We show that when a strictly safe policy is known, then one can confine the system to zero constraint violation with arbitrarily high probability while keeping the reward regret of order $\tilde { \mathcal { O } } ( \sqrt { K } )$ . The algorithm which does so employs the principle of optimistic pessimism in the face of uncertainty to achieve safe exploration. When no strictly safe policy is known, though one is known to exist, then it is possible to restrict the system to bounded constraint violation with arbitrarily high probability. This is shown to be realized by a primal-dual algorithm with an optimistic primal estimate and a pessimistic dual update.
16
+
17
+ # 1 Introduction
18
+
19
+ Reinforcement learning (RL) addresses the problem of learning an optimal control policy that maximizes the expected cumulative reward while interacting with an unknown environment [25]. Standard RL algorithms typically focus only on maximizing a single objective. However, in many real-world applications, the control policy learned by an RL algorithm has to additionally satisfy stringent safety constraints [9, 4]. For example, an autonomous vehicle may need to reach its destination in the minimum possible time without violating safety constraints such as crossing the middle of the road. The Constrained Markov Decision Process (CMDP) [2, 12] formalism, where one seeks to maximize a reward while satisfying safety constraints, is a standard approach for modeling the necessary safety criteria of a control problem via constraints on cumulative costs.
20
+
21
+ Several policy-gradient-based algorithms have been proposed to solve CMDPs. Lagrangian-based methods [26, 24, 21, 16] formulate the CMDP problem as a saddle-point problem and optimize it via primal-dual methods, while Constrained Policy Optimization [1, 29] (inspired by the trust region policy optimization [23]) computes new dual variables from scratch at each update to maintain constraints during learning. Although these algorithms provide ways to learn an optimal policy, performance guarantees about reward regret, safety violation or sample complexity are rare.
22
+
23
+ One class of RL algorithms for which performance guarantees are available follow the principle√ of Optimism in the Face of Uncertainty (OFU) [8, 10, 22], and provide an $\tilde { \mathcal { O } } ( \sqrt { K } )$ guarantee for the reward regret, where √ $K$ is the number of episodes. However, these algorithms also have $\tilde { \mathcal { O } } ( \sqrt { K } )$ safety violations. Such significant violation of the safety constraints during learning may be unacceptable in many safety-critical real-world applications such as the control of autonomous vehicles or power systems. These applications demand a class of safe RL algorithms that can provably guarantee safety during learning. With this goal in mind, we aim to answer the following open theoretical question in this paper:
24
+
25
+ Table 1: Regret and constraint violation comparisons for algorithms on episodic CMDPs
26
+
27
+ <table><tr><td>Algorithm</td><td>Regret2 Constraint violation ²</td></tr><tr><td>O(H√ OPDOP [8] OptCMDP[10] 3 O(H² OptCMDP-bonus [10] 3 O(H²√ OptDual-CMDP [10] 3 (H²IS|3IAK)</td><td>[S|2|A|K) (H3√SPIA|K) S|3|A|K) (H²√S|3IAK) s|3|A|K) (H²S|3AK) (H²√s3 A|K)</td></tr><tr><td>OptPrimalDual-CMDP[10] 3 C-UCRL [30] 4</td><td>(H²√Is|3|A|K) (H²√Is|3|A|K) (T 0</td></tr><tr><td>OptPess-LP 0( H T-C0 6 OptPess-PrimalDual H</td><td>/S|3|A|K) 0 v √S|3|A|K) 0(1) 5</td></tr></table>
28
+
29
+ Can we design safe RL algorithms that can achieve an $\tilde { \mathcal { O } } ( \sqrt { K } )$ regret with respect to the performance objective, while guaranteeing zero or bounded safety constraint violation with arbitrarily high probability?
30
+
31
+ We answer the above question affirmatively by proposing two algorithms and establishing their stringent safety performance during learning. Our focus is on the tabular episodic constrained RL setting (unknown transition probabilities, rewards, and costs). The key idea behind both algorithms is a concept used earlier for safe exploration in constrained bandits [20, 17], which we call “Optimistic Pessimism in the Face of Uncertainty (OPFU)” here. The optimistic aspect incentivizes the algorithm for using exploration policies that can visit new state-action pairs, while the pessimistic aspect disincentivizes the algorithm from using exploration policies that can violate safety constraints. By carefully balancing optimism and pessimism, the proposed algorithms guarantee zero or bounded√ safety constraint violation during learning while achieving an $\tilde { \mathcal { O } } ( \sqrt { K } )$ regret with respect to the reward objective.
32
+
33
+ The two algorithms address two different classes of the safe learning problem: whether a strictly safe policy is known a priori or not. The resulting exploration strategies are very different in the two cases.
34
+
35
+ 1. OptPess-LP Algorithm: This algorithm assumes the prior knowledge of a strictly safe policy. It ensures zero safety constraint violation during learning with high probability and utilizes the linear programming (LP) approach for solving a CMDP problem. The algorithm achieves a reward regret of O˜( H3τ−c0 $\begin{array} { r } { \tilde { \mathcal { O } } ( \frac { H ^ { 3 } } { \tau - c ^ { 0 } } \sqrt { | { \cal S } | ^ { 3 } | { \cal A } | K } ) } \end{array}$ with respect to the performance objective, where $H$ is the number of steps per episode, $\tau$ is the given constraint on safety violation, $c ^ { 0 }$ is the known safety constraint value of a strictly safe policy $\pi ^ { 0 }$ , and $| S |$ and $| { \cal A } |$ are the number of states and actions respectively.
36
+
37
+ 2. OptPess-PrimalDual Algorithm: This algorithm addresses the case where no strictly safe policy, but a feasible strictly safe cost is known. By allowing a bounded (in $K$ ) safety cost, it opens up space for exploration. The OptPess-PrimalDual algorithm avoids linear programming and its attendant complexity and exploits the primal-dual approach for solving a CMDP problem. The proposed approach improves the computational tractability, while ensuring a bounded safety constraint violation during learning and a reward regret of $\begin{array} { r l r } { { \tilde { \mathcal { O } } ( \frac { H ^ { 3 } } { \tau - c ^ { 0 } } \sqrt { | \boldsymbol { S } | ^ { 3 } | \boldsymbol { A } | K } ) } } \end{array}$ with respect to the objective.
38
+
39
+ Compared with the other methods listed in Table 1, though the proposed algorithms have an additional $H / ( \tau - c ^ { 0 } )$ or $\sqrt { | \boldsymbol { S } | } / ( \tau - c ^ { 0 } )$ factor in the regret bounds, they are able to reduce the constraint violation to zero or constant with high probability. This improvement in safety can be extremely important for many mission-critical applications.
40
+
41
+ # 1.1 Related work
42
+
43
+ The problem of learning an optimal control policy that satisfies safety constraints has been studied both in the RL setting and the multi-armed bandits setting.
44
+
45
+ Constrained RL: Several policy-gradient algorithms have seen success in practice [26, 24, 21, 16, 1, 29]. Also of interest are works which utilize Gaussian processes to model the transition probabilities and value functions [5, 27, 15, 7].
46
+
47
+ Several algorithms with provable guarantees are closely related to our work. Zheng et al. [30] considered the constrained RL problem in an infinite horizon setting with unknown reward and cost functions. The approach is similar to the UCRL2 algorithm [13] and achieves a sub-linear reward regret $\tilde { \mathcal { O } } ( T ^ { \frac { 3 } { 4 } } )$ while satisfying constraints with high probability during learning. In contrast to this work, we consider the setting of unknown transition probabilities. Efroni et al [10] focused on the episodic setting of unknown non-stationary transitions over a finite horizon, attaining both a reward regret and a constraint violation of $\tilde { \mathcal { O } } ( H ^ { 2 } \sqrt { | { \cal S } | ^ { 3 } | { \cal A } | K } )$ . Ding et al. [8] studied an episodic setting with linear function approximation (suitable for large state space cases), and proposed algorithms that√ can achieve $\tilde { \mathcal O } ( d H ^ { 3 } \sqrt { K } )$ for both the regret and the constraint violation (where $d$ is the dimension of the feature mapping). The regret analysis in [8] can be easily extended to the tabular case, yielding $\tilde { \mathcal { O } } ( H ^ { 3 } \sqrt { | { \cal S } | ^ { 2 } | \mathcal { A } | K } ) ^ { - }$ .
48
+
49
+ Constrained Multi-Armed Bandits: Multi-armed bandit problems are special cases of MDPs, with both the number of states as well as the episode length being one. Linear bandits with constraints (satisfied with high probability) have been investigated in different settings. One setting, referred to as conservative bandits [28, 14, 11], requires the cumulative reward to remain above a fixed percentage of the cumulative reward of a given baseline policy. Another setting is where each arm is associated with two unknown distributions (similar to our setting), generating reward and cost signals respectively [3, 20, 17, 18].
50
+
51
+ # 2 Problem formulation
52
+
53
+ A finite-horizon constrained non-stationary MDP model is defined as a tuple $\begin{array} { r l } { M } & { { } = } \end{array}$ $( \mathcal S , \mathcal A , H , P , r , c , \tau , \mu )$ , where $s$ is the state space, $\mathcal { A }$ is the action space, $H$ is the number of steps in each episode, $r : S \times A [ 0 , 1 ]$ is the unknown reward function of interest, $c : S \times A [ 0 , 1 ]$ is the unknown safety cost function used to model the constraint violation, $\tau \in ( 0 , H ]$ is the given constant used to define the safety constraint, and $\mu$ is the known initial distribution of the state. $P . ( \cdot | s , a ) \in \Delta _ { s } ^ { H } , \forall s \in S , \forall a \in \mathcal { A }$ , where $\Delta _ { \mathcal { S } }$ is the $| S |$ -dimensional probability simplex, and $P _ { h } ( s ^ { \prime } | s , a )$ is the unknown transition probability that the next state is $s ^ { \prime }$ when action $a$ is taken for state $s$ at step $h$ .
54
+
55
+ Some further notation is necessary to define the problem. A (randomized Markov) policy is defined by a map $\pi : S \times [ H ] \to \Delta _ { { \cal A } }$ , with $\pi _ { h } ( a | s )$ being the probability of taking action $a$ in state $s$ at time step $h$ . With $S _ { t }$ and $A _ { t }$ representing the state and the action at time $t$ respectively, let
56
+
57
+ $$
58
+ V _ { h } ^ { \pi } ( s ; g , P ) : = \mathbb { E } _ { P , \pi } \left[ \sum _ { t = h } ^ { H } g ( S _ { t } , A _ { t } ) | S _ { h } = s \right] , \quad \forall s \in \mathcal { S }
59
+ $$
60
+
61
+ denote the expected cumulative value with respect to a function $g : { \mathcal { S } } \times { \mathcal { A } } \to \mathbb { R } _ { + }$ under $P$ for a policy $\pi$ over a time interval $[ h , h + 1 , \ldots , H ]$ . With slightly abuse of notation, we use $V _ { 1 } ^ { \pi } ( \mu ; g , P )$ to denote $\mathbb { E } _ { S _ { 1 } \sim \mu } [ V _ { 1 } ^ { \pi } ( S _ { 1 } ; g , \dot { P } ) ]$ .
62
+
63
+ In the formulation below there are a total of $K$ episodes with $H$ steps each. Each episode $k \in [ K ]$ begins with an initial probability distribution $\mu$ for $S _ { 1 }$ . Then, the agent determines a randomized Markov policy $\pi ^ { k }$ for that episode based on the information gathered from the previous episodes, and executes it. At time step $h$ during the execution of the $k$ -th episode, after taking action $A _ { h } ^ { k }$ at state $S _ { h } ^ { k }$ , the agent receives a noisy reward and cost of $R _ { h } ^ { k } ( S _ { h } ^ { k } , A _ { h } ^ { k } ) = r _ { h } ( S _ { h } ^ { k } , A _ { h } ^ { k } ) + \xi _ { h } ^ { k } ( S _ { h } ^ { k } , A _ { h } ^ { k } ; r )$ and $\begin{array} { r } { \dot { C } _ { h } ^ { k } ( S _ { h } ^ { k } , A _ { h } ^ { k } ) = c _ { h } ( S _ { h } ^ { k } , A _ { h } ^ { k } ) + \xi _ { h } ^ { k } ( S _ { h } ^ { k } , A _ { h } ^ { k } ; c ) } \end{array}$ , respectively.
64
+
65
+ Assumption 2.1 (Sub-Gaussian noise). For all $h \in [ H ] , k \in [ K ]$ , the reward and cost noise random variables are conditionally independent zero-mean $1 / 2$ -sub-Gaussian, i.e., $\mathbb { E } [ \xi _ { h } ^ { k } | \mathcal { F } _ { k - 1 } ] = 0 ;$ , $\mathbb { E } [ \exp ( \lambda \xi _ { h } ^ { k } ) | \mathcal { F } _ { k - 1 } ] \le \exp ( \lambda ^ { 2 } / 4 ) , $ $\forall \lambda \in \mathbb { R }$ . Here $\mathcal { F } _ { k }$ is the $\sigma$ -algebra generated by the random variables up to episode $k$ .
66
+
67
+ Let $\pi ^ { * }$ denote the optimal policy of the following CMDP model:
68
+
69
+ $$
70
+ \operatorname* { m a x } _ { \pi } \quad V _ { 1 } ^ { \pi } ( \mu ; r , P ) \qquad \mathrm { s . t . } \quad V _ { 1 } ^ { \pi } ( \mu ; c , P ) \leq \tau .
71
+ $$
72
+
73
+ A policy $\pi$ is said to be strictly safe if $V _ { 1 } ^ { \pi } ( \mu ; c , P ) < \tau$ .
74
+
75
+ Assumption 2.2. There exists a strictly safe policy $\pi ^ { 0 }$ with ${ V _ { 1 } ^ { \pi } } ^ { 0 } ( \mu ; c , P ) = c ^ { 0 } < \tau .$ .
76
+
77
+ There are two important cases of the safe learning problem.
78
+
79
+ Zero constraint violation case: The agent has prior knowledge of a strictly safe policy $\pi ^ { 0 }$ and its safety cost value $c ^ { 0 } : = V _ { 1 } ^ { \pi ^ { 0 } } ( \mu ; c , P )$ . The agent wishes to attain a sublinear (in $K$ ) cumulative regret,
80
+
81
+ $$
82
+ R e g ( K ; r ) : = \sum _ { k = 1 } ^ { K } \Big ( { V _ { 1 } ^ { \pi } } ^ { * } ( \mu ; r , P ) - { V _ { 1 } ^ { \pi } } ^ { k } ( \mu ; r , P ) \Big ) ,
83
+ $$
84
+
85
+ while incurring zero constraint violation with at least a specified high probability $( 1 - \delta )$ , i.e.,
86
+
87
+ $$
88
+ \begin{array} { r } { \mathbb { P } \left( V _ { 1 } ^ { \pi ^ { k } } ( \mu ; c , P ) \leq \tau , \forall k \in [ K ] \right) \geq 1 - \delta . } \end{array}
89
+ $$
90
+
91
+ Bounded constraint violation case: The agent knows that there exists a strictly safe policy with a known safety cost value $c ^ { 0 }$ , but does not know any strictly safe policy. It aims to achieve a cumulative regret (2) that grows sublinearly with $K$ , while ensuring that the regret of constraint violation,
92
+
93
+ $$
94
+ R e g ( K ; c ) : = \left( \sum _ { k = 1 } ^ { K } \left( V _ { 1 } ^ { \pi ^ { k } } ( \mu ; c , P ) - \tau \right) \right) _ { + } \left( \mathrm { w h e r e } \left( a \right) _ { + } : = \operatorname * { m a x } \{ a , 0 \} \right) ,
95
+ $$
96
+
97
+ satisfies $\operatorname* { s u p } _ { K } R e g ( K ; c ) < + \infty$ with at least a specified high probability $( 1 - \delta )$ .
98
+
99
+ Remarks. For the zero constraint violation case, the assumption of knowing $c ^ { 0 }$ can be relaxed, as shown in Appendix E.
100
+
101
+ # 3 Zero constraint violation case
102
+
103
+ We start by considering the zero constraint violation case. On one hand, to balance the explorationexploitation trade-off, we employ an optimistic estimate of the reward function, as embodied in the OFU principle. On the other hand, to maintain absolute safety with high probability during the exploration, we employ a pessimistic estimate of the safety cost. Such an OPFU principle was previously discussed in constrained bandits [3] and we adapt it to the unknown CMDP setting.
104
+
105
+ At each episode $k$ , we begin by forming empirical estimates of the transition probabilities, the reward function, and the cost function from step $h$ of all previous episodes:
106
+
107
+ $$
108
+ \begin{array} { r l } & { \hat { P } _ { h } ^ { k } ( s ^ { \prime } | s , a ) : = \frac { \sum _ { k ^ { \prime } = 1 } ^ { k - 1 } \mathbb { 1 } \left( S _ { h } ^ { k ^ { \prime } } = s , A _ { h } ^ { k ^ { \prime } } = a , S _ { h + 1 } ^ { k ^ { \prime } } = s ^ { \prime } \right) } { N _ { h } ^ { k } ( s , a ) \vee 1 } , } \\ & { \hat { g } _ { h } ^ { k } ( s , a ) : = \frac { \sum _ { k ^ { \prime } = 1 } ^ { k - 1 } \mathbb { 1 } \left( S _ { h } ^ { k ^ { \prime } } = s , A _ { h } ^ { k ^ { \prime } } = a \right) \left( g _ { h } ( s , a ) + \xi _ { h } ^ { k } ( s , a ; g ) \right) } { N _ { h } ^ { k } ( s , a ) \vee 1 } , \quad \mathrm { ~ f o r ~ } g = r , c , } \end{array}
109
+ $$
110
+
111
+ where $a \vee b : = \operatorname* { m a x } \{ a , b \}$ , and
112
+
113
+ Next we fix some $\delta \in ( 0 , 1 )$ and form a common (for notational simplicity) confidence radius $\beta _ { h } ^ { k } ( s , a )$ for the transition probabilities, the rewards, and the costs,
114
+
115
+ $$
116
+ \beta _ { h } ^ { k } ( s , a ) : = \sqrt { \frac { 1 } { N _ { h } ^ { k } ( s , a ) \vee 1 } Z } , \quad \mathrm { w h e r e ~ } Z : = \log ( 1 6 | S | ^ { 2 } | A | H K / \delta ) .
117
+ $$
118
+
119
+ At each episode $k$ , we define the optimistically biased reward estimate as
120
+
121
+ $$
122
+ \bar { r } _ { h } ^ { k } ( s , a ) : = \hat { r } _ { h } ^ { k } ( s , a ) + \alpha _ { r } \beta _ { h } ^ { k } ( s , a ) , \quad \forall ( s , a , h ) \in \mathcal { S } \times \mathcal { A } \times [ H ] ,
123
+ $$
124
+
125
+ where the scaling factor is
126
+
127
+ $$
128
+ \alpha _ { r } : = 1 + | S | H + \frac { 4 H ( 1 + | S | H ) } { \tau - c ^ { 0 } } .
129
+ $$
130
+
131
+ To guarantee safe exploration, define the pessimistically biased safety cost estimate at episode $k$ as
132
+
133
+ $$
134
+ \begin{array} { r } { \underline { { \mathsf { c } } } _ { h } ^ { k } ( s , a ) : = \hat { c } _ { h } ^ { k } ( s , a ) + ( 1 + H | S | ) \beta _ { h } ^ { k } ( s , a ) , \quad \forall ( s , a , h ) \in S \times { \cal A } \times [ H ] . } \end{array}
135
+ $$
136
+
137
+ The policy we execute at episode $k$ is chosen from a “pessimistically safe" policy set $\Pi ^ { k }$ , defined as
138
+
139
+ $$
140
+ \Pi ^ { k } : = \left\{ \begin{array} { l l } { \{ \pi ^ { 0 } \} } & { { \mathrm { i f ~ } V _ { 1 } ^ { \pi ^ { 0 } } ( \mu ; \underline { { { c } } } ^ { k } , \hat { P } ^ { k } ) \geq ( \tau + c ^ { 0 } ) / 2 , } } \\ { \{ \pi : V _ { 1 } ^ { \pi } ( \mu ; \underline { { { c } } } ^ { k } , \hat { P } ^ { k } ) \leq \tau \} } & { { \mathrm { o t h e r w i s e . } } } \end{array} \right.
141
+ $$
142
+
143
+ We simply use the strictly safe policy $\pi ^ { 0 }$ until $V _ { 1 } ^ { \pi ^ { 0 } } ( \mu ; \underline { { { \mathrm { c } } } } ^ { k } , \hat { P } ^ { k } ) < ( \tau + c ^ { 0 } ) / 2$ , which is a sufficient condition to guarantee that the set $\{ \pi : V _ { 1 } ^ { \pi } ( \mu ; \underline { { { \mathrm { c } } } } ^ { k } , \hat { P } ^ { k } ) \leq \tau \}$ is non-empty. Within this set, we choose the optimistically best reward earning policy $\pi ^ { k }$ , which can be solved by linear programming with $\Theta ( | S | | A | H )$ decision variables and constraints [10]. The resulting Optimistic Pessimism-based Linear Programming (OptPess-LP) algorithm is presented below:
144
+
145
+ # Algorithm 1: OptPess-LP
146
+
147
+ Input: $K , \delta , \pi ^ { 0 } , c ^ { 0 } , \tau$ ;
148
+ Initialization: $N _ { h } ^ { 1 } ( s , a ) = 0$ , $\forall ( s , a , h ) \in \mathcal { S } \times \mathcal { A } \times [ H ] ;$ ;
149
+ for $k = 1 , 2 , \ldots , K$ do Update empirical model (i.e., $\hat { P } ^ { k } , \hat { r } ^ { k } , \hat { c } ^ { k } )$ as in Equations (3)-(5); Update $\bar { r } ^ { k } , \mathrm { c } ^ { k }$ , and $\Pi ^ { k }$ as in Equations (6)-(9); Calculate $\pi ^ { k } \in \arg \operatorname* { m a x } _ { \pi \in \Pi ^ { k } } V _ { 1 } ^ { \pi } ( \mu ; \bar { r } ^ { k } , \hat { P } ^ { k } )$ ; Execute $\pi ^ { k }$ and collect a trajectory $( S _ { h } ^ { k } , A _ { h } ^ { k } , R _ { h } ^ { k } , C _ { h } ^ { k } )$ , $\forall h \in [ H ]$ ; Update counters $N _ { h } ^ { k + 1 } ( S _ { h } ^ { k } , A _ { h } ^ { k } )$ , $\forall h \in [ H ]$ ;
150
+
151
+ end
152
+
153
+ Theorem 3.1 (Regret and constraint violation bounds for OptPess-LP). Fix any $\delta \in ( 0 , 1 )$ . With probability at least $( 1 - \delta )$ , OptPess- $. L P$ has zero constraint violation with
154
+
155
+ $$
156
+ R e g ^ { \theta P L P } ( K ; r ) = \tilde { \mathcal { O } } \left( \frac { H ^ { 3 } } { \tau - c ^ { 0 } } \sqrt { | \mathcal { S } | ^ { 3 } | \mathcal { A } | K } + \frac { H ^ { 5 } | \mathcal { S } | ^ { 3 } | \mathcal { A } | } { ( \tau - c ^ { 0 } ) ^ { 2 } \wedge ( \tau - c ^ { 0 } ) } \right) , w h e r e \ a \wedge b : = \operatorname* { m i n } \{ a , b \} .
157
+ $$
158
+
159
+ Theorem 3.1 shows that it is possible to achieve sublinear regret in $K$ , while simultaneously incurring no constraint violation with arbitrarily high probability. The proof is sketched in Section 5.1, with detailed proofs presented in Appendix B.
160
+
161
+ # 4 Bounded constraint violation case
162
+
163
+ Without prior knowledge of a strictly safe policy $\pi ^ { 0 }$ , we may not be able to guarantee zero constraint violation with high probability. However, by relaxing the requirement to bounded (in $K _ { \cdot }$ ) safety constraint violation, we can incorporate more exploration and design a more efficient algorithm by a primal-dual approach. It is inspired by the design of the pessimistic term in constrained bandits [17].
164
+
165
+ Different from traditional optimistic dual analysis methods in [10], we introduce an additive pessimistic term $\epsilon _ { k }$ at each episode $k$ in the original optimization problem (1), i.e.,
166
+
167
+ $$
168
+ \operatorname* { m a x } _ { \pi } \quad V _ { 1 } ^ { \pi } ( \mu ; r , P ) \qquad \mathrm { s . t . } \quad V _ { 1 } ^ { \pi } ( \mu ; c , P ) + \epsilon _ { k } \leq \tau .
169
+ $$
170
+
171
+ The pessimistic term restrains the constraint violation and will be progressively decreased as learning proceeds.
172
+
173
+ The CMDP problem in (10) may however not have any feasible solution. To overcome this, we consider the Lagrangian,
174
+
175
+ $$
176
+ L ^ { k } ( \pi , \lambda ) : = V _ { 1 } ^ { \pi } ( \mu ; r , P ) + \lambda ( \tau - \epsilon _ { k } - V _ { 1 } ^ { \pi } ( \mu ; c , P ) ) ,
177
+ $$
178
+
179
+ for which, given any Lagrange multiplier $\lambda$ , we can always solve for the optimizer $\operatorname* { m a x } _ { \pi } L ^ { k } ( \pi , \lambda )$ by dynamic programming.
180
+
181
+ With the introduction of the additive term $\epsilon _ { k }$ , the dual variable (denoted by $\lambda ^ { k }$ ) governed by the subgradient algorithm grows faster, which enhances safety constraints in the next episode.
182
+
183
+ In order to guarantee sufficient optimism of rewards and costs, we integrate the uncertainty of transitions into rewards and costs, i.e.,
184
+
185
+ $$
186
+ \begin{array} { r l } & { \tilde { r } _ { h } ^ { k } ( s , a ) : = \hat { r } _ { h } ^ { k } ( s , a ) + \beta ( n _ { k } ( s , a , h ) ) + H | S | \beta ( n _ { k } ( s , a , h ) ) , \quad \forall ( s , a , h ) \in S \times A \times [ H ] , } \\ & { \tilde { c } _ { h } ^ { k } ( s , a ) : = \hat { c } _ { h } ^ { k } ( s , a ) - \beta ( n _ { k } ( s , a , h ) ) - H | S | \beta ( n _ { k } ( s , a , h ) ) , \quad \forall ( s , a , h ) \in S \times A \times [ H ] . } \end{array}
187
+ $$
188
+
189
+ Note that in contrast to the zero constraint violation case, we optimistically estimate the safety cost function, with the pessimism only governed by $\epsilon _ { k }$ .
190
+
191
+ We employ truncated value functions due to the additional uncertainties from transitions, i.e.,
192
+
193
+ $$
194
+ \hat { V } _ { 1 } ^ { \pi } ( \mu ; \hat { r } ^ { k } , \hat { P } ^ { k } ) : = \operatorname* { m i n } \{ H , V _ { 1 } ^ { \pi } ( \mu ; \hat { r } ^ { k } , \hat { P } ^ { k } ) \} , \hat { V } _ { 1 } ^ { \pi } ( \mu ; \hat { c } ^ { k } , \hat { P } ^ { k } ) : = \operatorname* { m a x } \{ 0 , V _ { 1 } ^ { \pi } ( \mu ; \hat { c } ^ { k } , \hat { P } ^ { k } ) \} .
195
+ $$
196
+
197
+ For the policy update of the primal variable (denoted by $\pi ^ { k }$ ), we can apply standard dynamic programming by viewing $\begin{array} { r } { \tilde { r } _ { h } ^ { k } ( s , a ) - \frac { \lambda ^ { k } } { \eta ^ { k } } ( \tilde { c } _ { h } ^ { k } ( s , a ) - \tau ) } \end{array}$ as the reward function. Specifically, we apply backward induction to solve for the optimal policy:
198
+
199
+ $$
200
+ Q _ { h } ^ { k } ( s , a ) = \tilde { r } _ { h } ^ { k } ( s , a ) - \frac { \lambda ^ { k } } { \eta ^ { k } } ( \tilde { c } _ { h } ^ { k } ( s , a ) - \tau ) + \sum _ { s ^ { \prime } \in S } \hat { P } _ { h } ^ { k } ( s ^ { \prime } | s , a ) \operatorname* { m a x } _ { a ^ { \prime } } Q _ { h + 1 } ^ { k } ( s ^ { \prime } , a ^ { \prime } ) , \quad \forall h \in [ H ]
201
+ $$
202
+
203
+ with $Q _ { H + 1 } ^ { k } ( s , a ) = 0 , \forall ( s , a ) \in \mathcal { S } \times \mathcal { A }$ . Then, $\pi _ { h } ^ { k } \in \arg \operatorname* { m a x } _ { a } Q _ { h } ^ { k } ( s , a )$ , which is computationally efficient (as efficient as policy-gradient-based algorithms in the tabular case).
204
+
205
+ The resulting Optimistic Pessimism-based Primal-Dual (OptPess-PrimalDual) algorithm is shown in Algorithm 2. It chooses $\begin{array} { r } { \epsilon _ { k } : = 5 H ^ { 2 } \sqrt { | { \cal S } | ^ { 3 } | A | } ( \log \frac { k } { \delta ^ { \prime } } + 1 ) / \sqrt { k \log \frac { k } { \delta ^ { \prime } } } } \end{array}$ , $\delta ^ { \prime } = \delta / ( 1 6 | S | ^ { 2 } | A | H )$ , the scaling parameter $\eta ^ { k } : = ( \tau - c ^ { 0 } ) H \sqrt { k }$ in the primal policy update, and, for convenience, a step size of 1 for the dual update.
206
+
207
+ Theorem 4.1 (Regret and constraint violation bounds for OptPess-PrimalDual). Fix any $\delta \in ( 0 , 1 )$ . Then,
208
+
209
+ $$
210
+ \begin{array} { l } { { R e g ^ { O P P D } ( K ; r ) = \tilde { \mathcal { O } } \left( \displaystyle \frac { H ^ { 3 } } { \tau - c ^ { 0 } } \sqrt { | \mathcal { S } | ^ { 3 } | \mathcal { A } | K } + \displaystyle \frac { H ^ { 5 } | \mathcal { S } | ^ { 3 } | \mathcal { A } | } { ( \tau - c ^ { 0 } ) ^ { 2 } } \right) , } } \\ { { R e g ^ { O P P D } ( K ; c ) = \mathcal { O } \left( C ^ { \prime \prime } ( H - \tau ) + H ^ { 2 } \sqrt { | \mathcal { S } | ^ { 3 } | \mathcal { A } | C ^ { \prime \prime } } \right) = \mathcal { O } ( 1 ) , } } \end{array}
211
+ $$
212
+
213
+ where $\begin{array} { r } { C ^ { \prime \prime } = \mathcal { O } ( \frac { H ^ { 4 } | S | ^ { 3 } | A | } { ( \tau - c ^ { 0 } ) ^ { 2 } } \log \frac { H ^ { 4 } | S | ^ { 3 } | A | } { ( \tau - c ^ { 0 } ) ^ { 2 } \delta ^ { \prime } } ) } \end{array}$ is a coefficient independent of $K$
214
+
215
+ Theorem 4.1 shows that it is possible to achieve an $\tilde { \mathcal { O } } ( \sqrt { K } )$ reward regret, while only allowing bounded constraint violation with arbitrarily high probability. Detailed proofs are presented in Section 5.2 and Appendix $\textrm { C }$ .
216
+
217
+ Input: $K , \delta , c ^ { 0 } , \tau$ ;
218
+ Initialization: $N _ { h } ^ { 1 } ( s , a ) = 0 , \forall ( s , a , h ) \in \mathcal { S } \times \mathcal { A } \times [ H ] , \lambda ^ { 1 } = 0 ;$
219
+ for $k = 1 , 2 , \dots , \overset { \cdot } { K }$ do S $\begin{array} { r } { \mathfrak { x } \mathfrak { t } \mathfrak { \epsilon } _ { k } = 5 H ^ { 2 } \sqrt { | \mathcal { S } | ^ { 3 } | \mathcal { A } | } ( \log \frac { k } { \delta ^ { \prime } } + 1 ) / \sqrt { k \log \frac { k } { \delta ^ { \prime } } } , \delta ^ { \prime } = \delta / ( 1 6 | \mathcal { S } | ^ { 2 } | \mathcal { A } | H ) , } \end{array}$ $\eta ^ { k } = ( \tau - c ^ { 0 } ) H \sqrt { k } ;$ ; Update empirical model (i.e., $\hat { P } ^ { k } , \hat { r } ^ { k } , \hat { c } ^ { k } )$ as in Equations (3)-(5); Update $\tilde { r } ^ { k }$ , $\tilde { c } ^ { k }$ as in Equation (11); $\begin{array} { r l } & { \dot { ( P o l i c y ~ U p d a t e ) } \pi ^ { k } \in \overset { \cdot } { \arg \operatorname* { m a x } } _ { \pi \in \Pi } \hat { V } _ { 1 } ^ { \pi } ( \mu ; \tilde { r } ^ { k } , \hat { P } ^ { k } ) - \frac { \lambda ^ { k } } { \eta ^ { k } } \left( \hat { V } _ { 1 } ^ { \pi } ( \mu ; \tilde { c } ^ { k } , \hat { P } ^ { k } ) - \tau \right) ; } \\ & { ( D u a l ~ U p d a t e ) ~ \lambda ^ { k + 1 } = \Bigl ( \lambda ^ { k } + \hat { V } _ { 1 } ^ { \pi ^ { k } } ( \mu ; \tilde { c } ^ { k } , \hat { P } ^ { k } ) + \epsilon _ { k } - \tau \Bigr ) _ { + } ; } \end{array}$ Execute $\pi ^ { k }$ and collect a trajectory $( S _ { h } ^ { k } , A _ { h } ^ { k } , R _ { h } ^ { k } , C _ { h } ^ { k } )$ , $\forall h \in [ H ]$ ; Update counters $N _ { h } ^ { k + 1 } ( S _ { h } ^ { k } , A _ { h } ^ { k } )$ , $\forall h \in [ H ]$ ;
220
+ end
221
+
222
+ # 5 Regret and constraint violation analysis
223
+
224
+ We sketch the key steps in the proofs of Theorems 3.1 and 4.1. Full details are relegated to Appendices B and C, respectively. Note that our analysis and results are conditioned on the same high probability event (specifically defined in Appendix A), which occurs with probability at least $( 1 - \delta )$ .
225
+
226
+ # 5.1 Analysis of OptPess-LP (Algorithm 1)
227
+
228
+ Constraint violation analysis The zero constraint violation of OptPess-LP follows from the following property of the pessimistic policy set $\Pi ^ { k }$ :
229
+
230
+ Lemma 5.1. With probability at least $( 1 - \delta )$ , for any $k \in [ K ]$ and policy $\pi \in \Pi ^ { k }$ , $V _ { 1 } ^ { \pi } ( \mu ; c , P ) \leq \tau$
231
+
232
+ Regret of reward analysis When the parameters $c , P$ are not well estimated, there may not exist any policy $\pi$ such that $V _ { 1 } ^ { \pi } ( \mu ; \underline { { { \mathrm { c } } } } ^ { k } , \hat { P } ^ { k } ) \le \tau$ . Hence, as defined in (9), $\Pi ^ { k }$ is a singleton set $\{ \pi ^ { 0 } \}$ , and accordingly $\pi ^ { 0 }$ is executed, even though $\pi ^ { 0 }$ is not safe for $( \underline { { \mathrm { c } } } ^ { k } , \hat { P } ^ { k } )$ . It subsequently takes several episodes of exploration using $\pi ^ { 0 }$ until it becomes strictly safe for $( \underline { { \mathrm { c } } } ^ { k } , \hat { P } ^ { k } )$ . At that time, policies close enough to $\pi ^ { 0 }$ , of which there are infinitely many, are also safe for $( \underline { { \mathsf { c } } } ^ { k } , \hat { P } ^ { k } )$ , and so $| \Pi ^ { k } | = + \infty$ . At this point the learning algorithm can proceed to enhance reward while maintaining safety with respect to $( \underline { { \mathrm { c } } } ^ { k } , \hat { P } ^ { k } )$ .
233
+
234
+ To analyze the algorithm, we decompose the reward regret as follows:
235
+
236
+ $$
237
+ \begin{array} { l } { { \displaystyle { R e g ^ { \mathbf { o p L P } } ( K ; r ) = \sum _ { k = 1 } ^ { K } \mathbb { 1 } \left( | \Pi ^ { k } | = 1 \right) \left( V _ { 1 } ^ { \pi ^ { * } } ( \mu ; r , P ) - V _ { 1 } ^ { \pi ^ { 0 } } ( \mu ; r , P ) \right) } } } \\ { { \displaystyle { ~ + \sum _ { k = 1 } ^ { K } \mathbb { 1 } \left( | \Pi ^ { k } | > 1 \right) \left( V _ { 1 } ^ { \pi ^ { * } } ( \mu ; r , P ) - V _ { 1 } ^ { \pi ^ { k } } ( \mu ; \bar { r } ^ { k } , \hat { P } ^ { k } ) \right) } } } \\ { { \displaystyle { ~ + \sum _ { k = 1 } ^ { K } \mathbb { 1 } \left( | \Pi ^ { k } | > 1 \right) \left( V _ { 1 } ^ { \pi ^ { k } } ( \mu ; \bar { r } ^ { k } , \hat { P } ^ { k } ) - V _ { 1 } ^ { \pi ^ { k } } ( \mu ; r , P ) \right) } . } } \end{array}
238
+ $$
239
+
240
+ To bound the first term on the right-hand side (RHS) of (13), we have the following lemma which gives an upper bound on the number of episodes for exploration by policy $\pi ^ { 0 }$ :
241
+
242
+ Lemma 5.2. With probability at least $( 1 ~ - ~ \delta )$ $) , ~ \sum _ { k = 1 } ^ { K } \mathbb { 1 } ( | \Pi ^ { k } | ~ = ~ 1 ) ~ \le ~ C ^ { \prime } ,$ , where $\begin{array} { r l } { C ^ { \prime } } & { { } = } \end{array}$ $\tilde { \mathcal { O } } ( H ^ { 4 } | S | ^ { 3 } | A | / ( ( \tau - c ^ { 0 } ) ^ { 2 } \wedge ( \tau - c ^ { 0 } ) ) )$ .
243
+
244
+ Turning to the second term on the RHS of (13), we first note that $\pi ^ { * }$ may not be in $\Pi ^ { k }$ . To ensure that the term $V _ { 1 } ^ { \pi ^ { * } } ( \mu ; r , P ) - V _ { 1 } ^ { \pi ^ { k } } ( \mu ; \bar { r } ^ { k } , \hat { P } ^ { k } )$ is nevertheless non-positive even when $\pi ^ { * } \notin \Pi ^ { k }$ , we set $\alpha _ { r }$ to the large value shown in (7). This increases $\bar { r } ^ { k }$ , and hence also $V _ { 1 } ^ { \pi ^ { k } } ( \mu ; \bar { r } ^ { k } , \hat { P } ^ { k } )$ . In addition, we show that there is a policy $\hat { \pi } ^ { k }$ that attains the same reward as the (non-Markov) probabilistic mixed policy, $\tilde { \pi } ^ { k } : = B _ { \gamma _ { k } } \pi ^ { \bar { * } } + ( \mathrm { i } - B _ { \gamma _ { k } } ) \pi ^ { 0 }$ , where $B _ { \gamma _ { k } }$ is a Bernoulli distributed random variable with mean $\gamma _ { k }$ for $\gamma _ { k } \in [ 0 , 1 ]$ . $\gamma _ { k }$ will be chosen as the largest coefficient such that $V _ { 1 } ^ { \tilde { \pi } ^ { k } } ( \mu ; \underline { { { c } } } ^ { k } , \hat { P } ^ { k } ) \le \tau$ . This latter policy in turn has a larger reward than $\pi ^ { 0 }$ since it is a mixture with $\pi ^ { * }$ , yielding the following:
245
+
246
+ Lemma 5.3. With probability at least $( 1 - \delta )$
247
+
248
+ $$
249
+ \sum _ { k = 1 } ^ { K } \mathbb { 1 } ( | \Pi ^ { k } | > 1 ) \left( V _ { 1 } ^ { \pi ^ { * } } ( \mu ; r , P ) - V _ { 1 } ^ { \pi ^ { k } } ( \mu ; \bar { r } ^ { k } , \hat { P } ^ { k } ) \right) \leq 0 .
250
+ $$
251
+
252
+ Finally, concerning the third term on the RHS of (13), akin to the closed-loop identifiability property [6, 19], while $\hat { P } ^ { k }$ may not converge to $P$ , the difference in the rewards $V _ { 1 } ^ { \pi ^ { k } } ( \bar { \mu ; } \bar { r } ^ { k } , \hat { P } ^ { k } ) - \bar { V _ { 1 } ^ { \pi ^ { k } } } \bar { ( \mu ; \boldsymbol { r } , P ) }$ grows sublinearly in $k$ since the same policy $\pi ^ { k }$ is used in both values:
253
+
254
+ Lemma 5.4. With probability at least $( 1 - \delta )$ ,
255
+
256
+ $$
257
+ \sum _ { k = 1 } ^ { K } \mathbb { 1 } ( | \Pi ^ { k } | > 1 ) \left( V _ { 1 } ^ { \pi ^ { k } } ( \mu ; \bar { r } ^ { k } , \hat { P } ^ { k } ) - V _ { 1 } ^ { \pi ^ { k } } ( \mu ; r , P ) \right) = \tilde { \mathcal { O } } \left( \frac { H ^ { 3 } } { \tau - c ^ { 0 } } \sqrt { | { \cal S } | ^ { 3 } | { \cal A } | K } + \frac { H ^ { 5 } | { \cal S } | ^ { 3 } | { \cal A } | } { \tau - c ^ { 0 } } \right) .
258
+ $$
259
+
260
+ Combining Lemmas 5.2, 5.3, and 5.4 yields Theorem 3.1.
261
+
262
+ # 5.2 Analysis of OptPess-PrimalDual (Algorithm 2)
263
+
264
+ In this section, we outline the steps in the proof of Theorem 4.1 by analyzing regret and constraint violation of OptPess-PrimalDual respectively.
265
+
266
+ Recall $\begin{array} { r } { \epsilon _ { k } = 5 H ^ { 2 } \sqrt { | { \cal S } | ^ { 3 } | { \cal A } | } ( \log \frac { k } { \delta ^ { \prime } } + 1 ) / \sqrt { k \log \frac { k } { \delta ^ { \prime } } } } \end{array}$ , where $\delta ^ { \prime } = \delta / ( 1 6 | S | ^ { 2 } | A | H )$ . The existence of a feasible solution to (10) can be guaranteed if $\epsilon _ { k } \leq \tau - c ^ { 0 }$ . Let $C ^ { \prime \prime }$ be the smallest value such that $\forall k \geq$ $C ^ { \prime \prime } , \epsilon _ { k } \le ( \tau - c ^ { 0 } ) / 2$ . Then the perturbed optimization problem (y simple calculation, one can verify that $k \geq C ^ { \prime \prime }$ $\begin{array} { r } { C ^ { \prime \prime } = \mathcal { O } ( \frac { H ^ { 4 } | S | ^ { 3 } | A | } { ( \tau - c ^ { 0 } ) ^ { 2 } } \log \frac { H ^ { 4 } | S | ^ { 3 } | A | } { ( \tau - c ^ { 0 } ) ^ { 2 } \delta ^ { \prime } } ) } \end{array}$ Notice that $\epsilon _ { k }$ is a function not depending on , and so is the coefficient $C ^ { \prime \prime }$ .
267
+
268
+ Constraint violation analysis The bounded constraint violation of OptPess-PrimalDual is established as follows. We first decompose the constraint violation as
269
+
270
+ $$
271
+ \begin{array} { l } { { \displaystyle R e g ^ { \mathbf { o p p D } } ( K ; c ) = ( \sum _ { k = 1 } ^ { K } ( V _ { 1 } ^ { \pi ^ { k } } ( \mu ; c , P ) - \hat { V } _ { 1 } ^ { \pi ^ { k } } ( \mu ; \hat { c } ^ { k } , \hat { P } ^ { k } ) ) + \sum _ { k = 1 } ^ { K } ( \hat { V } _ { 1 } ^ { \pi ^ { k } } ( \mu ; \hat { c } ^ { k } , \hat { P } ^ { k } ) - \tau ) ) _ { + } } } \\ { { \displaystyle \qquad \leq ( \sum _ { k = 1 } ^ { K } ( V _ { 1 } ^ { \pi ^ { k } } ( \mu ; c , P ) - \hat { V } _ { 1 } ^ { \pi ^ { k } } ( \mu ; \hat { c } ^ { k } , \hat { P } ^ { k } ) ) + \lambda ^ { K + 1 } - \sum _ { k = 1 } ^ { K } \epsilon _ { k } ) _ { + } . \qquad ( 1 \otimes ( \tau ^ { k } ) ^ { K } ( \tau ^ { k } \otimes \tau ^ { k } \otimes \tau ^ { k } \otimes \tau ^ { k } \otimes \tau ^ { k } \otimes \tau ^ { k } \otimes \tau ^ { k } \otimes \tau ^ { k } \otimes \tau ^ { k } ) _ { - \tau ^ { k } } } } \end{array}
272
+ $$
273
+
274
+ The first summation term and $\lambda ^ { K + 1 }$ in (14) can be bounded as follows:
275
+
276
+ Lemma 5.5. Recall $\delta ^ { \prime } = \delta / ( 1 6 | S | ^ { 2 } | A | H )$ , with probability at least $( 1 - \delta )$ ,
277
+
278
+ $$
279
+ \sum _ { k = 1 } ^ { K } \left( V _ { 1 } ^ { \pi ^ { k } } ( \mu ; c , P ) - \hat { V } _ { 1 } ^ { \pi ^ { k } } ( \mu ; \hat { c } ^ { k } , \hat { P } ^ { k } ) \right) \leq 8 H ^ { 2 } \sqrt { | \mathcal { S } | ^ { 3 } | A | K \log \frac { K } { \delta ^ { \prime } } } + \mathcal { O } ( P o l y L o g ( K ) ) .
280
+ $$
281
+
282
+ Lemma 5.6. For any $k \geq C ^ { \prime \prime }$ , with probability at least $( 1 - \delta )$ ,
283
+
284
+ $$
285
+ \lambda ^ { k } \leq \frac { 1 } { \zeta } \ln \frac { 1 1 \nu _ { \mathrm { m a x } } ^ { 2 } } { 3 \rho ^ { 2 } } + C ^ { \prime \prime } ( H - \tau ) + \sum _ { u = 1 } ^ { C ^ { \prime \prime } } \epsilon _ { u } + H + \frac { 4 ( H ^ { 2 } + \epsilon _ { k } ^ { 2 } + \eta ^ { k } H ) } { \tau - c ^ { 0 } } ,
286
+ $$
287
+
288
+ where $\rho = ( \tau - c ^ { 0 } ) / 4$ , $\nu _ { \mathrm { m a x } } = H$ , $\zeta = \rho / ( \nu _ { \mathrm { m a x } } ^ { 2 } + \nu _ { \mathrm { m a x } } \rho / 3 )$ .
289
+
290
+ To guarantee bounded violation, we ensure that $\sum _ { k = 1 } ^ { K } \epsilon _ { k }$ in (14) can cancel the nt terms in the $( 1 - \delta )$ is bounded as
291
+
292
+ $$
293
+ R e g ^ { \mathbf { 0 p p D } } ( K ; c ) = { \mathcal { O } } \left( C ^ { \prime \prime } H + H ^ { 2 } { \sqrt { | S | ^ { 3 } | A | C ^ { \prime \prime } \log \left( C ^ { \prime \prime } / \delta ^ { \prime } \right) } } \right) .
294
+ $$
295
+
296
+ Regret of reward analysis For episode $k$ with $k \geq C ^ { \prime \prime }$ , let $\pi ^ { \epsilon _ { k } , * }$ be the optimal policy for (10), which is well-defined by the definition of $C ^ { \prime \prime }$ . We decompose the reward regret as
297
+
298
+ $$
299
+ \begin{array} { l } { { \displaystyle { 2 e g ^ { { \bf 0 } { \bf p } { \bf p } { \bf p } } } ( K ; r ) = \sum _ { k = 1 } ^ { C ^ { \prime \prime } } \left( { V _ { 1 } } ^ { \pi ^ { * } } ( \mu ; r , P ) - { V _ { 1 } ^ { \pi ^ { k } } } ( \mu ; r , P ) \right) } \ ~ } \\ { { \displaystyle ~ + \sum _ { k = C ^ { \prime \prime } } ^ { K } \left( { V _ { 1 } ^ { \pi ^ { * } } } ( \mu ; r , P ) - { V _ { 1 } ^ { \pi ^ { * } , k } } ^ { * } ( \mu ; r , P ) \right) + \sum _ { k = C ^ { \prime \prime } } ^ { K } \left( { V _ { 1 } ^ { \pi ^ { * } k , * } } ( \mu ; r , P ) - { \hat { V } _ { 1 } ^ { \pi ^ { * } k , * } } ( \mu ; \hat { r } ^ { k } , \hat { P } ^ { k } ) \right) } \ ~ } \\ { { \displaystyle ~ + \sum _ { k = C ^ { \prime \prime } } ^ { K } \left( { \hat { V } _ { 1 } ^ { \pi ^ { * } k , * } } \left( \mu ; { \hat { r } ^ { k } } , \hat { P } ^ { k } \right) - { \hat { V } _ { 1 } ^ { \pi ^ { k } } } ( \mu ; { \hat { r } ^ { k } } , \hat { P } ^ { k } ) \right) + \sum _ { k = C ^ { \prime \prime } } ^ { K } \left( { \hat { V } _ { 1 } ^ { \pi ^ { k } } } ( \mu ; { \hat { r } ^ { k } } , \hat { P } ^ { k } ) - { V _ { 1 } ^ { \pi ^ { k } } } ( \mu ; r , P ) \right) } . } \end{array}
300
+ $$
301
+
302
+ We upper bound each term on the RHS of (15). Since $V _ { 1 } ^ { \pi } ( \mu ; r , P ) \in [ 0 , H ]$ for any policy $\pi$ , the first term is upper bounded by $H C ^ { \prime \prime }$ . The second and third terms can be bounded by the following two lemmas:
303
+
304
+ Lemma 5.7. With probability at least $( 1 - \delta )$
305
+
306
+ $$
307
+ \sum _ { k = C ^ { \prime \prime } } ^ { K } \left( V _ { 1 } ^ { \pi ^ { * } } ( \mu ; r , P ) - V _ { 1 } ^ { \pi ^ { \epsilon _ { k } , * } } ( \mu ; r , P ) \right) \le \sum _ { k = C ^ { \prime \prime } } ^ { K } \frac { \epsilon _ { k } H } { \tau - c ^ { 0 } } = \tilde { \mathcal { O } } \left( \frac { H ^ { 3 } } { \tau - c ^ { 0 } } \sqrt { | \mathcal { S } | ^ { 3 } | \mathcal { A } | K } \right) .
308
+ $$
309
+
310
+ Lemma 5.8. With probability at least $\begin{array} { r l } & { ( 1 - \delta ) , \sum _ { k = C ^ { \prime \prime } } ^ { K } \Big ( V _ { 1 } ^ { \pi ^ { \epsilon _ { k } , * } } ( \mu ; r , P ) - \hat { V } _ { 1 } ^ { \pi ^ { \epsilon _ { k } , * } } ( \mu ; \tilde { r } ^ { k } , \hat { P } ^ { k } ) \Big ) \leq 0 . } \end{array}$
311
+
312
+ The pivotal step is to leverage optimism of $\pi ^ { k }$ to further decompose the fourth term on the RHS of (15), and utilize the projected dual update to transfer it into the form of $\lambda ^ { k } ( \lambda ^ { k } - \lambda ^ { k + 1 } )$ . The following lemmas provide high probability bounds for the remaining two terms on the RHS of (15):
313
+
314
+ Lemma 5.9. With probability at least $( 1 - \delta )$
315
+
316
+ $$
317
+ \sum _ { k = C ^ { \prime \prime } } ^ { K } \left( \hat { V } _ { 1 } ^ { \pi ^ { \epsilon _ { k } , * } } ( \mu ; \tilde { r } ^ { k } , \hat { P } ^ { k } ) - \hat { V } _ { 1 } ^ { \pi ^ { k } } ( \mu ; \tilde { r } ^ { k } , \hat { P } ^ { k } ) \right) = \tilde { \mathcal { O } } \left( \frac { H } { \tau - c ^ { 0 } } \sqrt { K } \right) .
318
+ $$
319
+
320
+ Lemma 5.10. With probability at least $( 1 - \delta )$ ,
321
+
322
+ $$
323
+ \sum _ { k = C ^ { \prime \prime } } ^ { K } \left( \hat { V } _ { 1 } ^ { \pi ^ { k } } ( \mu ; \tilde { r } ^ { k } , \hat { P } ^ { k } ) - V _ { 1 } ^ { \pi ^ { k } } ( \mu ; r , P ) \right) = \tilde { \mathcal { O } } \left( H ^ { 2 } \sqrt { | \mathcal { S } | ^ { 3 } | \hat { A } | K } + H ^ { 4 } | \mathcal { S } | ^ { 3 } | \hat { A } | \right) .
324
+ $$
325
+
326
+ Applying Lemmas 5.7, 5.8, 5.9, and 5.10 yields Theorem 4.1.
327
+
328
+ # 6 Concluding remarks
329
+
330
+ We present two optimistic pessimism-based algorithms that maintain stringent safety constraints (either zero or bounded safety constraint violation) for unknown CMDPs with high probability, while still attaining an $\tilde { \mathcal { O } } ( \sqrt { K } )$ regret of reward. The algorithms employ, respectively, a pessimistically safe policy set $\Pi ^ { k }$ or an additional pessimistic term $\epsilon _ { k }$ into the safety constraint. The first algorithm, OptPess-LP, guarantees zero violation with high probability by solving a linear programming with $\Theta ( | S | | A | H )$ decision variables, while the second algorithm, OptPess-PrimalDual, is as efficient as policy-gradient-based algorithms in the tabular case, but violates constraints during initial episodes. A possible future direction for exploration is the application of the above OPFU principle in model-free algorithms.
331
+
332
+ # Acknowledgement
333
+
334
+ P. R. Kumar’s work is partially supported by US National Science Foundation under CMMI-2038625, HDR Tripods CCF-1934904; US Office of Naval Research under N00014-21-1-2385; US ARO under W911NF1810331, W911NF2120064; and U.S. Department of Energy’s Office of Energy Efficiency and Renewable Energy (EERE) under the Solar Energy Technologies Office Award Number DEEE0009031. The views expressed herein and conclusions contained in this document are those of the authors and should not be interpreted as representing the views or official policies, either expressed or implied, of the U.S. NSF, ONR, ARO, Department of Energy or the United States Government. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notation herein.
335
+
336
+ Dileep Kalathil gratefully acknowledges funding from the U.S. National Science Foundation (NSF) grants NSF-CRII- CPS-1850206 and NSF-CAREER-EPCN-2045783.
337
+
338
+ # References
339
+
340
+ [1] J. Achiam, D. Held, A. Tamar, and P. Abbeel. Constrained policy optimization. In International Conference on Machine Learning, pages 22–31. PMLR, 2017.
341
+ [2] E. Altman. Constrained Markov decision processes, volume 7. CRC Press, 1999.
342
+ [3] S. Amani. Linear stochastic bandits under safety constraints. NeurIPS 2019, 2019.
343
+ [4] D. Amodei, C. Olah, J. Steinhardt, P. Christiano, J. Schulman, and D. Mané. Concrete problems in ai safety. arXiv preprint arXiv:1606.06565, 2016.
344
+ [5] F. Berkenkamp, M. Turchetta, A. P. Schoellig, and A. Krause. Safe model-based reinforcement learning with stability guarantees. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 908–919, 2017.
345
+ [6] V. Borkar and P. Varaiya. Adaptive control of Markov chains, I: Finite parameter set. IEEE Transactions on Automatic Control, 24(6):953–957, 1979.
346
+ [7] R. Cheng, G. Orosz, R. M. Murray, and J. W. Burdick. End-to-end safe reinforcement learning through barrier functions for safety-critical continuous control tasks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 3387–3395, 2019.
347
+ [8] D. Ding, X. Wei, Z. Yang, Z. Wang, and M. Jovanovic. Provably efficient safe exploration via primal-dual policy optimization. In International Conference on Artificial Intelligence and Statistics, pages 3304–3312. PMLR, 2021.
348
+ [9] G. Dulac-Arnold, D. Mankowitz, and T. Hester. Challenges of real-world reinforcement learning. arXiv preprint arXiv:1904.12901, 2019.
349
+ [10] Y. Efroni, S. Mannor, and M. Pirotta. Exploration-exploitation in constrained mdps. arXiv preprint arXiv:2003.02189, 2020.
350
+ [11] E. Garcelon, M. Ghavamzadeh, A. Lazaric, and M. Pirotta. Improved algorithms for conservative exploration in bandits. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 3962–3969, 2020.
351
+ [12] J. Garcıa and F. Fernández. A comprehensive survey on safe reinforcement learning. Journal of Machine Learning Research, 16(1):1437–1480, 2015.
352
+ [13] T. Jaksch, R. Ortner, and P. Auer. Near-optimal regret bounds for reinforcement learning. Journal of Machine Learning Research, 11(4), 2010.
353
+ [14] A. Kazerouni, M. Ghavamzadeh, Y. Abbasi-Yadkori, and B. Van Roy. Conservative contextual linear bandits. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 3913–3922, 2017.
354
+ [15] T. Koller, F. Berkenkamp, M. Turchetta, and A. Krause. Learning-based model predictive control for safe exploration. In 2018 IEEE Conference on Decision and Control (CDC), pages 6059–6066. IEEE, 2018.
355
+ [16] Q. Liang, F. Que, and E. Modiano. Accelerated primal-dual policy optimization for safe reinforcement learning. arXiv preprint arXiv:1802.06480, 2018.
356
+ [17] X. Liu, B. Li, P. Shi, and L. Ying. An efficient pessimistic-optimistic algorithm for constrained linear bandits. arXiv preprint arXiv:2102.05295, 2021.
357
+ [18] A. Moradipari, S. Amani, M. Alizadeh, and C. Thrampoulidis. Safe linear thompson sampling with side information. arXiv preprint arXiv:1911.02156, 2019.
358
+ [19] P. R. Kumar and A. Becker. A new family of optimal adaptive controllers for Markov chains. IEEE Transactions on Automatic Control, 27(1):137–146, 1982.
359
+ [20] A. Pacchiano, M. Ghavamzadeh, P. Bartlett, and H. Jiang. Stochastic bandits with linear constraints. In International Conference on Artificial Intelligence and Statistics, pages 2827– 2835. PMLR, 2021.
360
+ [21] S. Paternain, M. Calvo-Fullana, L. F. Chamon, and A. Ribeiro. Safe policies for reinforcement learning via primal-dual methods. arXiv preprint arXiv:1911.09101, 2019.
361
+ [22] S. Qiu, X. Wei, Z. Yang, J. Ye, and Z. Wang. Upper confidence primal-dual reinforcement learning for cmdp with adversarial loss. arXiv e-prints, pages arXiv–2003, 2020.
362
+ [23] J. Schulman, S. Levine, P. Abbeel, M. Jordan, and P. Moritz. Trust region policy optimization. In International conference on machine learning, pages 1889–1897. PMLR, 2015.
363
+ [24] A. Stooke, J. Achiam, and P. Abbeel. Responsive safety in reinforcement learning by pid lagrangian methods. In International Conference on Machine Learning, pages 9133–9143. PMLR, 2020.
364
+ [25] R. S. Sutton and A. G. Barto. Reinforcement learning: An introduction. MIT press, 2018.
365
+ [26] C. Tessler, D. J. Mankowitz, and S. Mannor. Reward constrained policy optimization. In International Conference on Learning Representations, 2018.
366
+ [27] A. Wachi, Y. Sui, Y. Yue, and M. Ono. Safe exploration and optimization of constrained mdps using gaussian processes. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018.
367
+ [28] Y. Wu, R. Shariff, T. Lattimore, and C. Szepesvári. Conservative bandits. In International Conference on Machine Learning, pages 1254–1262. PMLR, 2016.
368
+ [29] T.-Y. Yang, J. Rosca, K. Narasimhan, and P. J. Ramadge. Projection-based constrained policy optimization. In International Conference on Learning Representations, 2019.
369
+ [30] L. Zheng and L. Ratliff. Constrained upper confidence reinforcement learning. In Learning for Dynamics and Control, pages 620–629. PMLR, 2020.
parse/train/Nl7VO_Y7K4Q/Nl7VO_Y7K4Q_content_list.json ADDED
@@ -0,0 +1,1641 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Learning Policies with Zero or Bounded Constraint Violation for Constrained MDPs ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 187,
8
+ 122,
9
+ 810,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Tao Liu∗ Texas A&M University tliu@tamu.edu ",
17
+ "bbox": [
18
+ 204,
19
+ 222,
20
+ 357,
21
+ 263
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Ruida Zhou∗ Texas A&M University ruida@tamu.edu ",
28
+ "bbox": [
29
+ 395,
30
+ 222,
31
+ 549,
32
+ 263
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Dileep Kalathil Texas A&M University dileep.kalathil@tamu.edu ",
39
+ "bbox": [
40
+ 586,
41
+ 222,
42
+ 794,
43
+ 263
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "P. R. Kumar Texas A&M University prk@tamu.edu ",
50
+ "bbox": [
51
+ 284,
52
+ 285,
53
+ 439,
54
+ 327
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Chao Tian Texas A&M University chao.tian@tamu.edu ",
61
+ "bbox": [
62
+ 557,
63
+ 285,
64
+ 714,
65
+ 327
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "Abstract ",
72
+ "text_level": 1,
73
+ "bbox": [
74
+ 462,
75
+ 363,
76
+ 535,
77
+ 378
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "We address the issue of safety in reinforcement learning. We pose the problem in an episodic framework of a constrained Markov decision process. Existing√ results have shown that it is possible to achieve a reward regret of $\\tilde { \\mathcal { O } } ( \\sqrt { K } )$ while allowing an $\\tilde { \\mathcal { O } } ( \\sqrt { K } )$ constraint violation in $K$ episodes. A critical question that arises is whether it is possible to keep the constraint violation even smaller. We show that when a strictly safe policy is known, then one can confine the system to zero constraint violation with arbitrarily high probability while keeping the reward regret of order $\\tilde { \\mathcal { O } } ( \\sqrt { K } )$ . The algorithm which does so employs the principle of optimistic pessimism in the face of uncertainty to achieve safe exploration. When no strictly safe policy is known, though one is known to exist, then it is possible to restrict the system to bounded constraint violation with arbitrarily high probability. This is shown to be realized by a primal-dual algorithm with an optimistic primal estimate and a pessimistic dual update. ",
84
+ "bbox": [
85
+ 233,
86
+ 392,
87
+ 766,
88
+ 578
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "1 Introduction ",
95
+ "text_level": 1,
96
+ "bbox": [
97
+ 174,
98
+ 599,
99
+ 310,
100
+ 617
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Reinforcement learning (RL) addresses the problem of learning an optimal control policy that maximizes the expected cumulative reward while interacting with an unknown environment [25]. Standard RL algorithms typically focus only on maximizing a single objective. However, in many real-world applications, the control policy learned by an RL algorithm has to additionally satisfy stringent safety constraints [9, 4]. For example, an autonomous vehicle may need to reach its destination in the minimum possible time without violating safety constraints such as crossing the middle of the road. The Constrained Markov Decision Process (CMDP) [2, 12] formalism, where one seeks to maximize a reward while satisfying safety constraints, is a standard approach for modeling the necessary safety criteria of a control problem via constraints on cumulative costs. ",
107
+ "bbox": [
108
+ 174,
109
+ 631,
110
+ 825,
111
+ 756
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Several policy-gradient-based algorithms have been proposed to solve CMDPs. Lagrangian-based methods [26, 24, 21, 16] formulate the CMDP problem as a saddle-point problem and optimize it via primal-dual methods, while Constrained Policy Optimization [1, 29] (inspired by the trust region policy optimization [23]) computes new dual variables from scratch at each update to maintain constraints during learning. Although these algorithms provide ways to learn an optimal policy, performance guarantees about reward regret, safety violation or sample complexity are rare. ",
118
+ "bbox": [
119
+ 174,
120
+ 762,
121
+ 825,
122
+ 845
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "One class of RL algorithms for which performance guarantees are available follow the principle√ of Optimism in the Face of Uncertainty (OFU) [8, 10, 22], and provide an $\\tilde { \\mathcal { O } } ( \\sqrt { K } )$ guarantee for the reward regret, where √ $K$ is the number of episodes. However, these algorithms also have $\\tilde { \\mathcal { O } } ( \\sqrt { K } )$ safety violations. Such significant violation of the safety constraints during learning may be unacceptable in many safety-critical real-world applications such as the control of autonomous vehicles or power systems. These applications demand a class of safe RL algorithms that can provably guarantee safety during learning. With this goal in mind, we aim to answer the following open theoretical question in this paper: ",
129
+ "bbox": [
130
+ 176,
131
+ 852,
132
+ 821,
133
+ 882
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "table",
139
+ "img_path": "images/735952b1f9c29590e3231513d95d041c2d90779d8774f871fadc0ba467e94f1d.jpg",
140
+ "table_caption": [
141
+ "Table 1: Regret and constraint violation comparisons for algorithms on episodic CMDPs "
142
+ ],
143
+ "table_footnote": [],
144
+ "table_body": "<table><tr><td>Algorithm</td><td>Regret2 Constraint violation ²</td></tr><tr><td>O(H√ OPDOP [8] OptCMDP[10] 3 O(H² OptCMDP-bonus [10] 3 O(H²√ OptDual-CMDP [10] 3 (H²IS|3IAK)</td><td>[S|2|A|K) (H3√SPIA|K) S|3|A|K) (H²√S|3IAK) s|3|A|K) (H²S|3AK) (H²√s3 A|K)</td></tr><tr><td>OptPrimalDual-CMDP[10] 3 C-UCRL [30] 4</td><td>(H²√Is|3|A|K) (H²√Is|3|A|K) (T 0</td></tr><tr><td>OptPess-LP 0( H T-C0 6 OptPess-PrimalDual H</td><td>/S|3|A|K) 0 v √S|3|A|K) 0(1) 5</td></tr></table>",
145
+ "bbox": [
146
+ 230,
147
+ 109,
148
+ 767,
149
+ 280
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "",
156
+ "bbox": [
157
+ 174,
158
+ 305,
159
+ 825,
160
+ 391
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "Can we design safe RL algorithms that can achieve an $\\tilde { \\mathcal { O } } ( \\sqrt { K } )$ regret with respect to the performance objective, while guaranteeing zero or bounded safety constraint violation with arbitrarily high probability? ",
167
+ "bbox": [
168
+ 174,
169
+ 396,
170
+ 825,
171
+ 440
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "We answer the above question affirmatively by proposing two algorithms and establishing their stringent safety performance during learning. Our focus is on the tabular episodic constrained RL setting (unknown transition probabilities, rewards, and costs). The key idea behind both algorithms is a concept used earlier for safe exploration in constrained bandits [20, 17], which we call “Optimistic Pessimism in the Face of Uncertainty (OPFU)” here. The optimistic aspect incentivizes the algorithm for using exploration policies that can visit new state-action pairs, while the pessimistic aspect disincentivizes the algorithm from using exploration policies that can violate safety constraints. By carefully balancing optimism and pessimism, the proposed algorithms guarantee zero or bounded√ safety constraint violation during learning while achieving an $\\tilde { \\mathcal { O } } ( \\sqrt { K } )$ regret with respect to the reward objective. ",
178
+ "bbox": [
179
+ 174,
180
+ 446,
181
+ 825,
182
+ 587
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "The two algorithms address two different classes of the safe learning problem: whether a strictly safe policy is known a priori or not. The resulting exploration strategies are very different in the two cases. ",
189
+ "bbox": [
190
+ 176,
191
+ 593,
192
+ 825,
193
+ 622
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "1. OptPess-LP Algorithm: This algorithm assumes the prior knowledge of a strictly safe policy. It ensures zero safety constraint violation during learning with high probability and utilizes the linear programming (LP) approach for solving a CMDP problem. The algorithm achieves a reward regret of O˜( H3τ−c0 $\\begin{array} { r } { \\tilde { \\mathcal { O } } ( \\frac { H ^ { 3 } } { \\tau - c ^ { 0 } } \\sqrt { | { \\cal S } | ^ { 3 } | { \\cal A } | K } ) } \\end{array}$ with respect to the performance objective, where $H$ is the number of steps per episode, $\\tau$ is the given constraint on safety violation, $c ^ { 0 }$ is the known safety constraint value of a strictly safe policy $\\pi ^ { 0 }$ , and $| S |$ and $| { \\cal A } |$ are the number of states and actions respectively. ",
200
+ "bbox": [
201
+ 214,
202
+ 633,
203
+ 825,
204
+ 736
205
+ ],
206
+ "page_idx": 1
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "2. OptPess-PrimalDual Algorithm: This algorithm addresses the case where no strictly safe policy, but a feasible strictly safe cost is known. By allowing a bounded (in $K$ ) safety cost, it opens up space for exploration. The OptPess-PrimalDual algorithm avoids linear programming and its attendant complexity and exploits the primal-dual approach for solving a CMDP problem. The proposed approach improves the computational tractability, while ensuring a bounded safety constraint violation during learning and a reward regret of $\\begin{array} { r l r } { { \\tilde { \\mathcal { O } } ( \\frac { H ^ { 3 } } { \\tau - c ^ { 0 } } \\sqrt { | \\boldsymbol { S } | ^ { 3 } | \\boldsymbol { A } | K } ) } } \\end{array}$ with respect to the objective. ",
211
+ "bbox": [
212
+ 214,
213
+ 739,
214
+ 825,
215
+ 810
216
+ ],
217
+ "page_idx": 1
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "",
222
+ "bbox": [
223
+ 228,
224
+ 90,
225
+ 823,
226
+ 122
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "Compared with the other methods listed in Table 1, though the proposed algorithms have an additional $H / ( \\tau - c ^ { 0 } )$ or $\\sqrt { | \\boldsymbol { S } | } / ( \\tau - c ^ { 0 } )$ factor in the regret bounds, they are able to reduce the constraint violation to zero or constant with high probability. This improvement in safety can be extremely important for many mission-critical applications. ",
233
+ "bbox": [
234
+ 176,
235
+ 136,
236
+ 825,
237
+ 195
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "1.1 Related work ",
244
+ "text_level": 1,
245
+ "bbox": [
246
+ 174,
247
+ 210,
248
+ 307,
249
+ 226
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "The problem of learning an optimal control policy that satisfies safety constraints has been studied both in the RL setting and the multi-armed bandits setting. ",
256
+ "bbox": [
257
+ 174,
258
+ 237,
259
+ 823,
260
+ 265
261
+ ],
262
+ "page_idx": 2
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "Constrained RL: Several policy-gradient algorithms have seen success in practice [26, 24, 21, 16, 1, 29]. Also of interest are works which utilize Gaussian processes to model the transition probabilities and value functions [5, 27, 15, 7]. ",
267
+ "bbox": [
268
+ 174,
269
+ 280,
270
+ 825,
271
+ 323
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "Several algorithms with provable guarantees are closely related to our work. Zheng et al. [30] considered the constrained RL problem in an infinite horizon setting with unknown reward and cost functions. The approach is similar to the UCRL2 algorithm [13] and achieves a sub-linear reward regret $\\tilde { \\mathcal { O } } ( T ^ { \\frac { 3 } { 4 } } )$ while satisfying constraints with high probability during learning. In contrast to this work, we consider the setting of unknown transition probabilities. Efroni et al [10] focused on the episodic setting of unknown non-stationary transitions over a finite horizon, attaining both a reward regret and a constraint violation of $\\tilde { \\mathcal { O } } ( H ^ { 2 } \\sqrt { | { \\cal S } | ^ { 3 } | { \\cal A } | K } )$ . Ding et al. [8] studied an episodic setting with linear function approximation (suitable for large state space cases), and proposed algorithms that√ can achieve $\\tilde { \\mathcal O } ( d H ^ { 3 } \\sqrt { K } )$ for both the regret and the constraint violation (where $d$ is the dimension of the feature mapping). The regret analysis in [8] can be easily extended to the tabular case, yielding $\\tilde { \\mathcal { O } } ( H ^ { 3 } \\sqrt { | { \\cal S } | ^ { 2 } | \\mathcal { A } | K } ) ^ { - }$ . ",
278
+ "bbox": [
279
+ 173,
280
+ 329,
281
+ 825,
282
+ 489
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "Constrained Multi-Armed Bandits: Multi-armed bandit problems are special cases of MDPs, with both the number of states as well as the episode length being one. Linear bandits with constraints (satisfied with high probability) have been investigated in different settings. One setting, referred to as conservative bandits [28, 14, 11], requires the cumulative reward to remain above a fixed percentage of the cumulative reward of a given baseline policy. Another setting is where each arm is associated with two unknown distributions (similar to our setting), generating reward and cost signals respectively [3, 20, 17, 18]. ",
289
+ "bbox": [
290
+ 173,
291
+ 503,
292
+ 825,
293
+ 602
294
+ ],
295
+ "page_idx": 2
296
+ },
297
+ {
298
+ "type": "text",
299
+ "text": "2 Problem formulation ",
300
+ "text_level": 1,
301
+ "bbox": [
302
+ 174,
303
+ 621,
304
+ 382,
305
+ 638
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "A finite-horizon constrained non-stationary MDP model is defined as a tuple $\\begin{array} { r l } { M } & { { } = } \\end{array}$ $( \\mathcal S , \\mathcal A , H , P , r , c , \\tau , \\mu )$ , where $s$ is the state space, $\\mathcal { A }$ is the action space, $H$ is the number of steps in each episode, $r : S \\times A [ 0 , 1 ]$ is the unknown reward function of interest, $c : S \\times A [ 0 , 1 ]$ is the unknown safety cost function used to model the constraint violation, $\\tau \\in ( 0 , H ]$ is the given constant used to define the safety constraint, and $\\mu$ is the known initial distribution of the state. $P . ( \\cdot | s , a ) \\in \\Delta _ { s } ^ { H } , \\forall s \\in S , \\forall a \\in \\mathcal { A }$ , where $\\Delta _ { \\mathcal { S } }$ is the $| S |$ -dimensional probability simplex, and $P _ { h } ( s ^ { \\prime } | s , a )$ is the unknown transition probability that the next state is $s ^ { \\prime }$ when action $a$ is taken for state $s$ at step $h$ . ",
312
+ "bbox": [
313
+ 173,
314
+ 651,
315
+ 825,
316
+ 763
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "Some further notation is necessary to define the problem. A (randomized Markov) policy is defined by a map $\\pi : S \\times [ H ] \\to \\Delta _ { { \\cal A } }$ , with $\\pi _ { h } ( a | s )$ being the probability of taking action $a$ in state $s$ at time step $h$ . With $S _ { t }$ and $A _ { t }$ representing the state and the action at time $t$ respectively, let ",
323
+ "bbox": [
324
+ 174,
325
+ 770,
326
+ 825,
327
+ 813
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "equation",
333
+ "img_path": "images/56a550a3a43ec2c89a19cd73ef4933f4127325d21a26f614e15b5e07e1540402.jpg",
334
+ "text": "$$\nV _ { h } ^ { \\pi } ( s ; g , P ) : = \\mathbb { E } _ { P , \\pi } \\left[ \\sum _ { t = h } ^ { H } g ( S _ { t } , A _ { t } ) | S _ { h } = s \\right] , \\quad \\forall s \\in \\mathcal { S }\n$$",
335
+ "text_format": "latex",
336
+ "bbox": [
337
+ 310,
338
+ 819,
339
+ 689,
340
+ 863
341
+ ],
342
+ "page_idx": 2
343
+ },
344
+ {
345
+ "type": "text",
346
+ "text": "denote the expected cumulative value with respect to a function $g : { \\mathcal { S } } \\times { \\mathcal { A } } \\to \\mathbb { R } _ { + }$ under $P$ for a policy $\\pi$ over a time interval $[ h , h + 1 , \\ldots , H ]$ . With slightly abuse of notation, we use $V _ { 1 } ^ { \\pi } ( \\mu ; g , P )$ to denote $\\mathbb { E } _ { S _ { 1 } \\sim \\mu } [ V _ { 1 } ^ { \\pi } ( S _ { 1 } ; g , \\dot { P } ) ]$ . ",
347
+ "bbox": [
348
+ 174,
349
+ 869,
350
+ 826,
351
+ 912
352
+ ],
353
+ "page_idx": 2
354
+ },
355
+ {
356
+ "type": "text",
357
+ "text": "In the formulation below there are a total of $K$ episodes with $H$ steps each. Each episode $k \\in [ K ]$ begins with an initial probability distribution $\\mu$ for $S _ { 1 }$ . Then, the agent determines a randomized Markov policy $\\pi ^ { k }$ for that episode based on the information gathered from the previous episodes, and executes it. At time step $h$ during the execution of the $k$ -th episode, after taking action $A _ { h } ^ { k }$ at state $S _ { h } ^ { k }$ , the agent receives a noisy reward and cost of $R _ { h } ^ { k } ( S _ { h } ^ { k } , A _ { h } ^ { k } ) = r _ { h } ( S _ { h } ^ { k } , A _ { h } ^ { k } ) + \\xi _ { h } ^ { k } ( S _ { h } ^ { k } , A _ { h } ^ { k } ; r )$ and $\\begin{array} { r } { \\dot { C } _ { h } ^ { k } ( S _ { h } ^ { k } , A _ { h } ^ { k } ) = c _ { h } ( S _ { h } ^ { k } , A _ { h } ^ { k } ) + \\xi _ { h } ^ { k } ( S _ { h } ^ { k } , A _ { h } ^ { k } ; c ) } \\end{array}$ , respectively. ",
358
+ "bbox": [
359
+ 173,
360
+ 90,
361
+ 825,
362
+ 180
363
+ ],
364
+ "page_idx": 3
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "Assumption 2.1 (Sub-Gaussian noise). For all $h \\in [ H ] , k \\in [ K ]$ , the reward and cost noise random variables are conditionally independent zero-mean $1 / 2$ -sub-Gaussian, i.e., $\\mathbb { E } [ \\xi _ { h } ^ { k } | \\mathcal { F } _ { k - 1 } ] = 0 ;$ , $\\mathbb { E } [ \\exp ( \\lambda \\xi _ { h } ^ { k } ) | \\mathcal { F } _ { k - 1 } ] \\le \\exp ( \\lambda ^ { 2 } / 4 ) , $ $\\forall \\lambda \\in \\mathbb { R }$ . Here $\\mathcal { F } _ { k }$ is the $\\sigma$ -algebra generated by the random variables up to episode $k$ . ",
369
+ "bbox": [
370
+ 173,
371
+ 181,
372
+ 826,
373
+ 242
374
+ ],
375
+ "page_idx": 3
376
+ },
377
+ {
378
+ "type": "text",
379
+ "text": "Let $\\pi ^ { * }$ denote the optimal policy of the following CMDP model: ",
380
+ "bbox": [
381
+ 173,
382
+ 251,
383
+ 598,
384
+ 267
385
+ ],
386
+ "page_idx": 3
387
+ },
388
+ {
389
+ "type": "equation",
390
+ "img_path": "images/98627bae777ed6971b2ecd47446fc3cba442aac325eb8926b369ffbb8555951b.jpg",
391
+ "text": "$$\n\\operatorname* { m a x } _ { \\pi } \\quad V _ { 1 } ^ { \\pi } ( \\mu ; r , P ) \\qquad \\mathrm { s . t . } \\quad V _ { 1 } ^ { \\pi } ( \\mu ; c , P ) \\leq \\tau .\n$$",
392
+ "text_format": "latex",
393
+ "bbox": [
394
+ 341,
395
+ 272,
396
+ 655,
397
+ 295
398
+ ],
399
+ "page_idx": 3
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "A policy $\\pi$ is said to be strictly safe if $V _ { 1 } ^ { \\pi } ( \\mu ; c , P ) < \\tau$ . ",
404
+ "bbox": [
405
+ 173,
406
+ 308,
407
+ 539,
408
+ 324
409
+ ],
410
+ "page_idx": 3
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "Assumption 2.2. There exists a strictly safe policy $\\pi ^ { 0 }$ with ${ V _ { 1 } ^ { \\pi } } ^ { 0 } ( \\mu ; c , P ) = c ^ { 0 } < \\tau .$ . ",
415
+ "bbox": [
416
+ 173,
417
+ 328,
418
+ 723,
419
+ 345
420
+ ],
421
+ "page_idx": 3
422
+ },
423
+ {
424
+ "type": "text",
425
+ "text": "There are two important cases of the safe learning problem. ",
426
+ "bbox": [
427
+ 173,
428
+ 354,
429
+ 563,
430
+ 369
431
+ ],
432
+ "page_idx": 3
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "Zero constraint violation case: The agent has prior knowledge of a strictly safe policy $\\pi ^ { 0 }$ and its safety cost value $c ^ { 0 } : = V _ { 1 } ^ { \\pi ^ { 0 } } ( \\mu ; c , P )$ . The agent wishes to attain a sublinear (in $K$ ) cumulative regret, ",
437
+ "bbox": [
438
+ 171,
439
+ 376,
440
+ 825,
441
+ 409
442
+ ],
443
+ "page_idx": 3
444
+ },
445
+ {
446
+ "type": "equation",
447
+ "img_path": "images/caa634fcca0f120ab20a75b9488a43c1b5d730e0831558c71b43b7398135520b.jpg",
448
+ "text": "$$\nR e g ( K ; r ) : = \\sum _ { k = 1 } ^ { K } \\Big ( { V _ { 1 } ^ { \\pi } } ^ { * } ( \\mu ; r , P ) - { V _ { 1 } ^ { \\pi } } ^ { k } ( \\mu ; r , P ) \\Big ) ,\n$$",
449
+ "text_format": "latex",
450
+ "bbox": [
451
+ 325,
452
+ 412,
453
+ 671,
454
+ 457
455
+ ],
456
+ "page_idx": 3
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "while incurring zero constraint violation with at least a specified high probability $( 1 - \\delta )$ , i.e., ",
461
+ "bbox": [
462
+ 173,
463
+ 462,
464
+ 787,
465
+ 478
466
+ ],
467
+ "page_idx": 3
468
+ },
469
+ {
470
+ "type": "equation",
471
+ "img_path": "images/d7418194e63094bee69f37f4ae38d8391e4a1c04980a11d32f5bd7cbc1ac3951.jpg",
472
+ "text": "$$\n\\begin{array} { r } { \\mathbb { P } \\left( V _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; c , P ) \\leq \\tau , \\forall k \\in [ K ] \\right) \\geq 1 - \\delta . } \\end{array}\n$$",
473
+ "text_format": "latex",
474
+ "bbox": [
475
+ 356,
476
+ 483,
477
+ 640,
478
+ 511
479
+ ],
480
+ "page_idx": 3
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "Bounded constraint violation case: The agent knows that there exists a strictly safe policy with a known safety cost value $c ^ { 0 }$ , but does not know any strictly safe policy. It aims to achieve a cumulative regret (2) that grows sublinearly with $K$ , while ensuring that the regret of constraint violation, ",
485
+ "bbox": [
486
+ 174,
487
+ 522,
488
+ 826,
489
+ 565
490
+ ],
491
+ "page_idx": 3
492
+ },
493
+ {
494
+ "type": "equation",
495
+ "img_path": "images/21a2e141a24513af7caf8e3046c776a80f8a2c36c6e495ced9309676a82a990e.jpg",
496
+ "text": "$$\nR e g ( K ; c ) : = \\left( \\sum _ { k = 1 } ^ { K } \\left( V _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; c , P ) - \\tau \\right) \\right) _ { + } \\left( \\mathrm { w h e r e } \\left( a \\right) _ { + } : = \\operatorname * { m a x } \\{ a , 0 \\} \\right) ,\n$$",
497
+ "text_format": "latex",
498
+ "bbox": [
499
+ 250,
500
+ 570,
501
+ 746,
502
+ 617
503
+ ],
504
+ "page_idx": 3
505
+ },
506
+ {
507
+ "type": "text",
508
+ "text": "satisfies $\\operatorname* { s u p } _ { K } R e g ( K ; c ) < + \\infty$ with at least a specified high probability $( 1 - \\delta )$ . ",
509
+ "bbox": [
510
+ 171,
511
+ 622,
512
+ 714,
513
+ 637
514
+ ],
515
+ "page_idx": 3
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "Remarks. For the zero constraint violation case, the assumption of knowing $c ^ { 0 }$ can be relaxed, as shown in Appendix E. ",
520
+ "bbox": [
521
+ 169,
522
+ 642,
523
+ 823,
524
+ 671
525
+ ],
526
+ "page_idx": 3
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "3 Zero constraint violation case ",
531
+ "text_level": 1,
532
+ "bbox": [
533
+ 174,
534
+ 689,
535
+ 450,
536
+ 708
537
+ ],
538
+ "page_idx": 3
539
+ },
540
+ {
541
+ "type": "text",
542
+ "text": "We start by considering the zero constraint violation case. On one hand, to balance the explorationexploitation trade-off, we employ an optimistic estimate of the reward function, as embodied in the OFU principle. On the other hand, to maintain absolute safety with high probability during the exploration, we employ a pessimistic estimate of the safety cost. Such an OPFU principle was previously discussed in constrained bandits [3] and we adapt it to the unknown CMDP setting. ",
543
+ "bbox": [
544
+ 173,
545
+ 720,
546
+ 826,
547
+ 791
548
+ ],
549
+ "page_idx": 3
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "At each episode $k$ , we begin by forming empirical estimates of the transition probabilities, the reward function, and the cost function from step $h$ of all previous episodes: ",
554
+ "bbox": [
555
+ 173,
556
+ 796,
557
+ 823,
558
+ 825
559
+ ],
560
+ "page_idx": 3
561
+ },
562
+ {
563
+ "type": "equation",
564
+ "img_path": "images/84511d73305eb285007f2abe5039ae219a241fff305d13da2b2021f539cbc111.jpg",
565
+ "text": "$$\n\\begin{array} { r l } & { \\hat { P } _ { h } ^ { k } ( s ^ { \\prime } | s , a ) : = \\frac { \\sum _ { k ^ { \\prime } = 1 } ^ { k - 1 } \\mathbb { 1 } \\left( S _ { h } ^ { k ^ { \\prime } } = s , A _ { h } ^ { k ^ { \\prime } } = a , S _ { h + 1 } ^ { k ^ { \\prime } } = s ^ { \\prime } \\right) } { N _ { h } ^ { k } ( s , a ) \\vee 1 } , } \\\\ & { \\hat { g } _ { h } ^ { k } ( s , a ) : = \\frac { \\sum _ { k ^ { \\prime } = 1 } ^ { k - 1 } \\mathbb { 1 } \\left( S _ { h } ^ { k ^ { \\prime } } = s , A _ { h } ^ { k ^ { \\prime } } = a \\right) \\left( g _ { h } ( s , a ) + \\xi _ { h } ^ { k } ( s , a ; g ) \\right) } { N _ { h } ^ { k } ( s , a ) \\vee 1 } , \\quad \\mathrm { ~ f o r ~ } g = r , c , } \\end{array}\n$$",
566
+ "text_format": "latex",
567
+ "bbox": [
568
+ 218,
569
+ 830,
570
+ 774,
571
+ 911
572
+ ],
573
+ "page_idx": 3
574
+ },
575
+ {
576
+ "type": "text",
577
+ "text": "where $a \\vee b : = \\operatorname* { m a x } \\{ a , b \\}$ , and ",
578
+ "bbox": [
579
+ 173,
580
+ 90,
581
+ 382,
582
+ 106
583
+ ],
584
+ "page_idx": 4
585
+ },
586
+ {
587
+ "type": "text",
588
+ "text": "Next we fix some $\\delta \\in ( 0 , 1 )$ and form a common (for notational simplicity) confidence radius $\\beta _ { h } ^ { k } ( s , a )$ for the transition probabilities, the rewards, and the costs, ",
589
+ "bbox": [
590
+ 171,
591
+ 148,
592
+ 831,
593
+ 178
594
+ ],
595
+ "page_idx": 4
596
+ },
597
+ {
598
+ "type": "equation",
599
+ "img_path": "images/c3bfb6613ace6746f101d1afb76aaf401621e100cc001d9fab248bc6a3ec5457.jpg",
600
+ "text": "$$\n\\beta _ { h } ^ { k } ( s , a ) : = \\sqrt { \\frac { 1 } { N _ { h } ^ { k } ( s , a ) \\vee 1 } Z } , \\quad \\mathrm { w h e r e ~ } Z : = \\log ( 1 6 | S | ^ { 2 } | A | H K / \\delta ) .\n$$",
601
+ "text_format": "latex",
602
+ "bbox": [
603
+ 269,
604
+ 185,
605
+ 727,
606
+ 228
607
+ ],
608
+ "page_idx": 4
609
+ },
610
+ {
611
+ "type": "text",
612
+ "text": "At each episode $k$ , we define the optimistically biased reward estimate as ",
613
+ "bbox": [
614
+ 173,
615
+ 241,
616
+ 655,
617
+ 257
618
+ ],
619
+ "page_idx": 4
620
+ },
621
+ {
622
+ "type": "equation",
623
+ "img_path": "images/db836e49f6ab69c401ca0f5dc4df2477bb4563a1dd2384bfbab18e57a878da45.jpg",
624
+ "text": "$$\n\\bar { r } _ { h } ^ { k } ( s , a ) : = \\hat { r } _ { h } ^ { k } ( s , a ) + \\alpha _ { r } \\beta _ { h } ^ { k } ( s , a ) , \\quad \\forall ( s , a , h ) \\in \\mathcal { S } \\times \\mathcal { A } \\times [ H ] ,\n$$",
625
+ "text_format": "latex",
626
+ "bbox": [
627
+ 285,
628
+ 263,
629
+ 710,
630
+ 284
631
+ ],
632
+ "page_idx": 4
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "where the scaling factor is ",
637
+ "bbox": [
638
+ 173,
639
+ 290,
640
+ 348,
641
+ 304
642
+ ],
643
+ "page_idx": 4
644
+ },
645
+ {
646
+ "type": "equation",
647
+ "img_path": "images/27477da4893aca2e3265aec1595a94a476cfe97a398782b7b6ae3bd7727a9fa9.jpg",
648
+ "text": "$$\n\\alpha _ { r } : = 1 + | S | H + \\frac { 4 H ( 1 + | S | H ) } { \\tau - c ^ { 0 } } .\n$$",
649
+ "text_format": "latex",
650
+ "bbox": [
651
+ 379,
652
+ 311,
653
+ 619,
654
+ 344
655
+ ],
656
+ "page_idx": 4
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "To guarantee safe exploration, define the pessimistically biased safety cost estimate at episode $k$ as ",
661
+ "bbox": [
662
+ 171,
663
+ 358,
664
+ 820,
665
+ 373
666
+ ],
667
+ "page_idx": 4
668
+ },
669
+ {
670
+ "type": "equation",
671
+ "img_path": "images/ac820defeb5f9685bbf289d05b453687340de61c343ee1a8799560818610ad39.jpg",
672
+ "text": "$$\n\\begin{array} { r } { \\underline { { \\mathsf { c } } } _ { h } ^ { k } ( s , a ) : = \\hat { c } _ { h } ^ { k } ( s , a ) + ( 1 + H | S | ) \\beta _ { h } ^ { k } ( s , a ) , \\quad \\forall ( s , a , h ) \\in S \\times { \\cal A } \\times [ H ] . } \\end{array}\n$$",
673
+ "text_format": "latex",
674
+ "bbox": [
675
+ 256,
676
+ 380,
677
+ 740,
678
+ 400
679
+ ],
680
+ "page_idx": 4
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "The policy we execute at episode $k$ is chosen from a “pessimistically safe\" policy set $\\Pi ^ { k }$ , defined as ",
685
+ "bbox": [
686
+ 168,
687
+ 415,
688
+ 821,
689
+ 431
690
+ ],
691
+ "page_idx": 4
692
+ },
693
+ {
694
+ "type": "equation",
695
+ "img_path": "images/0384f6e64ca8f2e07e04491dedc27b13dbcf13a47a90f9c631ae99bd5c126d2a.jpg",
696
+ "text": "$$\n\\Pi ^ { k } : = \\left\\{ \\begin{array} { l l } { \\{ \\pi ^ { 0 } \\} } & { { \\mathrm { i f ~ } V _ { 1 } ^ { \\pi ^ { 0 } } ( \\mu ; \\underline { { { c } } } ^ { k } , \\hat { P } ^ { k } ) \\geq ( \\tau + c ^ { 0 } ) / 2 , } } \\\\ { \\{ \\pi : V _ { 1 } ^ { \\pi } ( \\mu ; \\underline { { { c } } } ^ { k } , \\hat { P } ^ { k } ) \\leq \\tau \\} } & { { \\mathrm { o t h e r w i s e . } } } \\end{array} \\right.\n$$",
697
+ "text_format": "latex",
698
+ "bbox": [
699
+ 266,
700
+ 438,
701
+ 727,
702
+ 481
703
+ ],
704
+ "page_idx": 4
705
+ },
706
+ {
707
+ "type": "text",
708
+ "text": "We simply use the strictly safe policy $\\pi ^ { 0 }$ until $V _ { 1 } ^ { \\pi ^ { 0 } } ( \\mu ; \\underline { { { \\mathrm { c } } } } ^ { k } , \\hat { P } ^ { k } ) < ( \\tau + c ^ { 0 } ) / 2$ , which is a sufficient condition to guarantee that the set $\\{ \\pi : V _ { 1 } ^ { \\pi } ( \\mu ; \\underline { { { \\mathrm { c } } } } ^ { k } , \\hat { P } ^ { k } ) \\leq \\tau \\}$ is non-empty. Within this set, we choose the optimistically best reward earning policy $\\pi ^ { k }$ , which can be solved by linear programming with $\\Theta ( | S | | A | H )$ decision variables and constraints [10]. The resulting Optimistic Pessimism-based Linear Programming (OptPess-LP) algorithm is presented below: ",
709
+ "bbox": [
710
+ 173,
711
+ 494,
712
+ 826,
713
+ 571
714
+ ],
715
+ "page_idx": 4
716
+ },
717
+ {
718
+ "type": "text",
719
+ "text": "Algorithm 1: OptPess-LP ",
720
+ "text_level": 1,
721
+ "bbox": [
722
+ 174,
723
+ 590,
724
+ 352,
725
+ 606
726
+ ],
727
+ "page_idx": 4
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "Input: $K , \\delta , \\pi ^ { 0 } , c ^ { 0 } , \\tau$ ; \nInitialization: $N _ { h } ^ { 1 } ( s , a ) = 0$ , $\\forall ( s , a , h ) \\in \\mathcal { S } \\times \\mathcal { A } \\times [ H ] ;$ ; \nfor $k = 1 , 2 , \\ldots , K$ do Update empirical model (i.e., $\\hat { P } ^ { k } , \\hat { r } ^ { k } , \\hat { c } ^ { k } )$ as in Equations (3)-(5); Update $\\bar { r } ^ { k } , \\mathrm { c } ^ { k }$ , and $\\Pi ^ { k }$ as in Equations (6)-(9); Calculate $\\pi ^ { k } \\in \\arg \\operatorname* { m a x } _ { \\pi \\in \\Pi ^ { k } } V _ { 1 } ^ { \\pi } ( \\mu ; \\bar { r } ^ { k } , \\hat { P } ^ { k } )$ ; Execute $\\pi ^ { k }$ and collect a trajectory $( S _ { h } ^ { k } , A _ { h } ^ { k } , R _ { h } ^ { k } , C _ { h } ^ { k } )$ , $\\forall h \\in [ H ]$ ; Update counters $N _ { h } ^ { k + 1 } ( S _ { h } ^ { k } , A _ { h } ^ { k } )$ , $\\forall h \\in [ H ]$ ; ",
732
+ "bbox": [
733
+ 173,
734
+ 609,
735
+ 627,
736
+ 734
737
+ ],
738
+ "page_idx": 4
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "end ",
743
+ "bbox": [
744
+ 173,
745
+ 731,
746
+ 202,
747
+ 743
748
+ ],
749
+ "page_idx": 4
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "Theorem 3.1 (Regret and constraint violation bounds for OptPess-LP). Fix any $\\delta \\in ( 0 , 1 )$ . With probability at least $( 1 - \\delta )$ , OptPess- $. L P$ has zero constraint violation with ",
754
+ "bbox": [
755
+ 173,
756
+ 772,
757
+ 823,
758
+ 803
759
+ ],
760
+ "page_idx": 4
761
+ },
762
+ {
763
+ "type": "equation",
764
+ "img_path": "images/39c2a3f8f0a54ccc7aab7bc20153ba435a009d1d5d1e886750048a448a95a3de.jpg",
765
+ "text": "$$\nR e g ^ { \\theta P L P } ( K ; r ) = \\tilde { \\mathcal { O } } \\left( \\frac { H ^ { 3 } } { \\tau - c ^ { 0 } } \\sqrt { | \\mathcal { S } | ^ { 3 } | \\mathcal { A } | K } + \\frac { H ^ { 5 } | \\mathcal { S } | ^ { 3 } | \\mathcal { A } | } { ( \\tau - c ^ { 0 } ) ^ { 2 } \\wedge ( \\tau - c ^ { 0 } ) } \\right) , w h e r e \\ a \\wedge b : = \\operatorname* { m i n } \\{ a , b \\} .\n$$",
766
+ "text_format": "latex",
767
+ "bbox": [
768
+ 181,
769
+ 809,
770
+ 825,
771
+ 844
772
+ ],
773
+ "page_idx": 4
774
+ },
775
+ {
776
+ "type": "text",
777
+ "text": "Theorem 3.1 shows that it is possible to achieve sublinear regret in $K$ , while simultaneously incurring no constraint violation with arbitrarily high probability. The proof is sketched in Section 5.1, with detailed proofs presented in Appendix B. ",
778
+ "bbox": [
779
+ 173,
780
+ 868,
781
+ 825,
782
+ 912
783
+ ],
784
+ "page_idx": 4
785
+ },
786
+ {
787
+ "type": "text",
788
+ "text": "4 Bounded constraint violation case ",
789
+ "text_level": 1,
790
+ "bbox": [
791
+ 174,
792
+ 88,
793
+ 488,
794
+ 107
795
+ ],
796
+ "page_idx": 5
797
+ },
798
+ {
799
+ "type": "text",
800
+ "text": "Without prior knowledge of a strictly safe policy $\\pi ^ { 0 }$ , we may not be able to guarantee zero constraint violation with high probability. However, by relaxing the requirement to bounded (in $K _ { \\cdot }$ ) safety constraint violation, we can incorporate more exploration and design a more efficient algorithm by a primal-dual approach. It is inspired by the design of the pessimistic term in constrained bandits [17]. ",
801
+ "bbox": [
802
+ 173,
803
+ 118,
804
+ 826,
805
+ 176
806
+ ],
807
+ "page_idx": 5
808
+ },
809
+ {
810
+ "type": "text",
811
+ "text": "Different from traditional optimistic dual analysis methods in [10], we introduce an additive pessimistic term $\\epsilon _ { k }$ at each episode $k$ in the original optimization problem (1), i.e., ",
812
+ "bbox": [
813
+ 169,
814
+ 180,
815
+ 823,
816
+ 210
817
+ ],
818
+ "page_idx": 5
819
+ },
820
+ {
821
+ "type": "equation",
822
+ "img_path": "images/3caa0ed73b684d8d2c0911f93e516e3c18a4ed50ce97bc038bd11c47fa5f4d82.jpg",
823
+ "text": "$$\n\\operatorname* { m a x } _ { \\pi } \\quad V _ { 1 } ^ { \\pi } ( \\mu ; r , P ) \\qquad \\mathrm { s . t . } \\quad V _ { 1 } ^ { \\pi } ( \\mu ; c , P ) + \\epsilon _ { k } \\leq \\tau .\n$$",
824
+ "text_format": "latex",
825
+ "bbox": [
826
+ 323,
827
+ 210,
828
+ 671,
829
+ 233
830
+ ],
831
+ "page_idx": 5
832
+ },
833
+ {
834
+ "type": "text",
835
+ "text": "The pessimistic term restrains the constraint violation and will be progressively decreased as learning proceeds. ",
836
+ "bbox": [
837
+ 176,
838
+ 239,
839
+ 823,
840
+ 270
841
+ ],
842
+ "page_idx": 5
843
+ },
844
+ {
845
+ "type": "text",
846
+ "text": "The CMDP problem in (10) may however not have any feasible solution. To overcome this, we consider the Lagrangian, ",
847
+ "bbox": [
848
+ 173,
849
+ 273,
850
+ 825,
851
+ 303
852
+ ],
853
+ "page_idx": 5
854
+ },
855
+ {
856
+ "type": "equation",
857
+ "img_path": "images/bd921b2b9af270c36f989399c99ed4e084f268122f6cf78f5957c599eba36308.jpg",
858
+ "text": "$$\nL ^ { k } ( \\pi , \\lambda ) : = V _ { 1 } ^ { \\pi } ( \\mu ; r , P ) + \\lambda ( \\tau - \\epsilon _ { k } - V _ { 1 } ^ { \\pi } ( \\mu ; c , P ) ) ,\n$$",
859
+ "text_format": "latex",
860
+ "bbox": [
861
+ 318,
862
+ 304,
863
+ 678,
864
+ 323
865
+ ],
866
+ "page_idx": 5
867
+ },
868
+ {
869
+ "type": "text",
870
+ "text": "for which, given any Lagrange multiplier $\\lambda$ , we can always solve for the optimizer $\\operatorname* { m a x } _ { \\pi } L ^ { k } ( \\pi , \\lambda )$ by dynamic programming. ",
871
+ "bbox": [
872
+ 178,
873
+ 325,
874
+ 823,
875
+ 354
876
+ ],
877
+ "page_idx": 5
878
+ },
879
+ {
880
+ "type": "text",
881
+ "text": "With the introduction of the additive term $\\epsilon _ { k }$ , the dual variable (denoted by $\\lambda ^ { k }$ ) governed by the subgradient algorithm grows faster, which enhances safety constraints in the next episode. ",
882
+ "bbox": [
883
+ 174,
884
+ 359,
885
+ 823,
886
+ 388
887
+ ],
888
+ "page_idx": 5
889
+ },
890
+ {
891
+ "type": "text",
892
+ "text": "In order to guarantee sufficient optimism of rewards and costs, we integrate the uncertainty of transitions into rewards and costs, i.e., ",
893
+ "bbox": [
894
+ 171,
895
+ 393,
896
+ 825,
897
+ 422
898
+ ],
899
+ "page_idx": 5
900
+ },
901
+ {
902
+ "type": "equation",
903
+ "img_path": "images/f11364cad7657181d9649d907223e096ed586b871299863f442984fb144029a9.jpg",
904
+ "text": "$$\n\\begin{array} { r l } & { \\tilde { r } _ { h } ^ { k } ( s , a ) : = \\hat { r } _ { h } ^ { k } ( s , a ) + \\beta ( n _ { k } ( s , a , h ) ) + H | S | \\beta ( n _ { k } ( s , a , h ) ) , \\quad \\forall ( s , a , h ) \\in S \\times A \\times [ H ] , } \\\\ & { \\tilde { c } _ { h } ^ { k } ( s , a ) : = \\hat { c } _ { h } ^ { k } ( s , a ) - \\beta ( n _ { k } ( s , a , h ) ) - H | S | \\beta ( n _ { k } ( s , a , h ) ) , \\quad \\forall ( s , a , h ) \\in S \\times A \\times [ H ] . } \\end{array}\n$$",
905
+ "text_format": "latex",
906
+ "bbox": [
907
+ 187,
908
+ 422,
909
+ 782,
910
+ 464
911
+ ],
912
+ "page_idx": 5
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "Note that in contrast to the zero constraint violation case, we optimistically estimate the safety cost function, with the pessimism only governed by $\\epsilon _ { k }$ . ",
917
+ "bbox": [
918
+ 171,
919
+ 468,
920
+ 825,
921
+ 498
922
+ ],
923
+ "page_idx": 5
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "We employ truncated value functions due to the additional uncertainties from transitions, i.e., ",
928
+ "bbox": [
929
+ 178,
930
+ 503,
931
+ 784,
932
+ 518
933
+ ],
934
+ "page_idx": 5
935
+ },
936
+ {
937
+ "type": "equation",
938
+ "img_path": "images/05aaf3bc50c422bb0d2ffcb07e7aeeb80c6a7141f3b6312fafcc17ae62c9ccb3.jpg",
939
+ "text": "$$\n\\hat { V } _ { 1 } ^ { \\pi } ( \\mu ; \\hat { r } ^ { k } , \\hat { P } ^ { k } ) : = \\operatorname* { m i n } \\{ H , V _ { 1 } ^ { \\pi } ( \\mu ; \\hat { r } ^ { k } , \\hat { P } ^ { k } ) \\} , \\hat { V } _ { 1 } ^ { \\pi } ( \\mu ; \\hat { c } ^ { k } , \\hat { P } ^ { k } ) : = \\operatorname* { m a x } \\{ 0 , V _ { 1 } ^ { \\pi } ( \\mu ; \\hat { c } ^ { k } , \\hat { P } ^ { k } ) \\} .\n$$",
940
+ "text_format": "latex",
941
+ "bbox": [
942
+ 192,
943
+ 518,
944
+ 777,
945
+ 539
946
+ ],
947
+ "page_idx": 5
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "For the policy update of the primal variable (denoted by $\\pi ^ { k }$ ), we can apply standard dynamic programming by viewing $\\begin{array} { r } { \\tilde { r } _ { h } ^ { k } ( s , a ) - \\frac { \\lambda ^ { k } } { \\eta ^ { k } } ( \\tilde { c } _ { h } ^ { k } ( s , a ) - \\tau ) } \\end{array}$ as the reward function. Specifically, we apply backward induction to solve for the optimal policy: ",
952
+ "bbox": [
953
+ 174,
954
+ 547,
955
+ 826,
956
+ 597
957
+ ],
958
+ "page_idx": 5
959
+ },
960
+ {
961
+ "type": "equation",
962
+ "img_path": "images/e869209efb6ea9bff41128de1033d67fb898e2f044c8a4396edd25df3b8a4f37.jpg",
963
+ "text": "$$\nQ _ { h } ^ { k } ( s , a ) = \\tilde { r } _ { h } ^ { k } ( s , a ) - \\frac { \\lambda ^ { k } } { \\eta ^ { k } } ( \\tilde { c } _ { h } ^ { k } ( s , a ) - \\tau ) + \\sum _ { s ^ { \\prime } \\in S } \\hat { P } _ { h } ^ { k } ( s ^ { \\prime } | s , a ) \\operatorname* { m a x } _ { a ^ { \\prime } } Q _ { h + 1 } ^ { k } ( s ^ { \\prime } , a ^ { \\prime } ) , \\quad \\forall h \\in [ H ]\n$$",
964
+ "text_format": "latex",
965
+ "bbox": [
966
+ 199,
967
+ 597,
968
+ 799,
969
+ 637
970
+ ],
971
+ "page_idx": 5
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "with $Q _ { H + 1 } ^ { k } ( s , a ) = 0 , \\forall ( s , a ) \\in \\mathcal { S } \\times \\mathcal { A }$ . Then, $\\pi _ { h } ^ { k } \\in \\arg \\operatorname* { m a x } _ { a } Q _ { h } ^ { k } ( s , a )$ , which is computationally efficient (as efficient as policy-gradient-based algorithms in the tabular case). ",
976
+ "bbox": [
977
+ 173,
978
+ 638,
979
+ 823,
980
+ 669
981
+ ],
982
+ "page_idx": 5
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "The resulting Optimistic Pessimism-based Primal-Dual (OptPess-PrimalDual) algorithm is shown in Algorithm 2. It chooses $\\begin{array} { r } { \\epsilon _ { k } : = 5 H ^ { 2 } \\sqrt { | { \\cal S } | ^ { 3 } | A | } ( \\log \\frac { k } { \\delta ^ { \\prime } } + 1 ) / \\sqrt { k \\log \\frac { k } { \\delta ^ { \\prime } } } } \\end{array}$ , $\\delta ^ { \\prime } = \\delta / ( 1 6 | S | ^ { 2 } | A | H )$ , the scaling parameter $\\eta ^ { k } : = ( \\tau - c ^ { 0 } ) H \\sqrt { k }$ in the primal policy update, and, for convenience, a step size of 1 for the dual update. ",
987
+ "bbox": [
988
+ 173,
989
+ 672,
990
+ 826,
991
+ 742
992
+ ],
993
+ "page_idx": 5
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "Theorem 4.1 (Regret and constraint violation bounds for OptPess-PrimalDual). Fix any $\\delta \\in ( 0 , 1 )$ . Then, ",
998
+ "bbox": [
999
+ 171,
1000
+ 743,
1001
+ 825,
1002
+ 772
1003
+ ],
1004
+ "page_idx": 5
1005
+ },
1006
+ {
1007
+ "type": "equation",
1008
+ "img_path": "images/0c36e89b169464f43b24634293426dcbba3f4e1d05e741866784d38cccbe2c1f.jpg",
1009
+ "text": "$$\n\\begin{array} { l } { { R e g ^ { O P P D } ( K ; r ) = \\tilde { \\mathcal { O } } \\left( \\displaystyle \\frac { H ^ { 3 } } { \\tau - c ^ { 0 } } \\sqrt { | \\mathcal { S } | ^ { 3 } | \\mathcal { A } | K } + \\displaystyle \\frac { H ^ { 5 } | \\mathcal { S } | ^ { 3 } | \\mathcal { A } | } { ( \\tau - c ^ { 0 } ) ^ { 2 } } \\right) , } } \\\\ { { R e g ^ { O P P D } ( K ; c ) = \\mathcal { O } \\left( C ^ { \\prime \\prime } ( H - \\tau ) + H ^ { 2 } \\sqrt { | \\mathcal { S } | ^ { 3 } | \\mathcal { A } | C ^ { \\prime \\prime } } \\right) = \\mathcal { O } ( 1 ) , } } \\end{array}\n$$",
1010
+ "text_format": "latex",
1011
+ "bbox": [
1012
+ 282,
1013
+ 772,
1014
+ 715,
1015
+ 835
1016
+ ],
1017
+ "page_idx": 5
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "where $\\begin{array} { r } { C ^ { \\prime \\prime } = \\mathcal { O } ( \\frac { H ^ { 4 } | S | ^ { 3 } | A | } { ( \\tau - c ^ { 0 } ) ^ { 2 } } \\log \\frac { H ^ { 4 } | S | ^ { 3 } | A | } { ( \\tau - c ^ { 0 } ) ^ { 2 } \\delta ^ { \\prime } } ) } \\end{array}$ is a coefficient independent of $K$ ",
1022
+ "bbox": [
1023
+ 174,
1024
+ 835,
1025
+ 661,
1026
+ 859
1027
+ ],
1028
+ "page_idx": 5
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "Theorem 4.1 shows that it is possible to achieve an $\\tilde { \\mathcal { O } } ( \\sqrt { K } )$ reward regret, while only allowing bounded constraint violation with arbitrarily high probability. Detailed proofs are presented in Section 5.2 and Appendix $\\textrm { C }$ . ",
1033
+ "bbox": [
1034
+ 174,
1035
+ 867,
1036
+ 823,
1037
+ 911
1038
+ ],
1039
+ "page_idx": 5
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "Input: $K , \\delta , c ^ { 0 } , \\tau$ ; \nInitialization: $N _ { h } ^ { 1 } ( s , a ) = 0 , \\forall ( s , a , h ) \\in \\mathcal { S } \\times \\mathcal { A } \\times [ H ] , \\lambda ^ { 1 } = 0 ;$ \nfor $k = 1 , 2 , \\dots , \\overset { \\cdot } { K }$ do S $\\begin{array} { r } { \\mathfrak { x } \\mathfrak { t } \\mathfrak { \\epsilon } _ { k } = 5 H ^ { 2 } \\sqrt { | \\mathcal { S } | ^ { 3 } | \\mathcal { A } | } ( \\log \\frac { k } { \\delta ^ { \\prime } } + 1 ) / \\sqrt { k \\log \\frac { k } { \\delta ^ { \\prime } } } , \\delta ^ { \\prime } = \\delta / ( 1 6 | \\mathcal { S } | ^ { 2 } | \\mathcal { A } | H ) , } \\end{array}$ $\\eta ^ { k } = ( \\tau - c ^ { 0 } ) H \\sqrt { k } ;$ ; Update empirical model (i.e., $\\hat { P } ^ { k } , \\hat { r } ^ { k } , \\hat { c } ^ { k } )$ as in Equations (3)-(5); Update $\\tilde { r } ^ { k }$ , $\\tilde { c } ^ { k }$ as in Equation (11); $\\begin{array} { r l } & { \\dot { ( P o l i c y ~ U p d a t e ) } \\pi ^ { k } \\in \\overset { \\cdot } { \\arg \\operatorname* { m a x } } _ { \\pi \\in \\Pi } \\hat { V } _ { 1 } ^ { \\pi } ( \\mu ; \\tilde { r } ^ { k } , \\hat { P } ^ { k } ) - \\frac { \\lambda ^ { k } } { \\eta ^ { k } } \\left( \\hat { V } _ { 1 } ^ { \\pi } ( \\mu ; \\tilde { c } ^ { k } , \\hat { P } ^ { k } ) - \\tau \\right) ; } \\\\ & { ( D u a l ~ U p d a t e ) ~ \\lambda ^ { k + 1 } = \\Bigl ( \\lambda ^ { k } + \\hat { V } _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; \\tilde { c } ^ { k } , \\hat { P } ^ { k } ) + \\epsilon _ { k } - \\tau \\Bigr ) _ { + } ; } \\end{array}$ Execute $\\pi ^ { k }$ and collect a trajectory $( S _ { h } ^ { k } , A _ { h } ^ { k } , R _ { h } ^ { k } , C _ { h } ^ { k } )$ , $\\forall h \\in [ H ]$ ; Update counters $N _ { h } ^ { k + 1 } ( S _ { h } ^ { k } , A _ { h } ^ { k } )$ , $\\forall h \\in [ H ]$ ; \nend ",
1044
+ "bbox": [
1045
+ 173,
1046
+ 113,
1047
+ 718,
1048
+ 324
1049
+ ],
1050
+ "page_idx": 6
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "5 Regret and constraint violation analysis ",
1055
+ "text_level": 1,
1056
+ "bbox": [
1057
+ 173,
1058
+ 351,
1059
+ 537,
1060
+ 369
1061
+ ],
1062
+ "page_idx": 6
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "We sketch the key steps in the proofs of Theorems 3.1 and 4.1. Full details are relegated to Appendices B and C, respectively. Note that our analysis and results are conditioned on the same high probability event (specifically defined in Appendix A), which occurs with probability at least $( 1 - \\delta )$ . ",
1067
+ "bbox": [
1068
+ 173,
1069
+ 382,
1070
+ 825,
1071
+ 425
1072
+ ],
1073
+ "page_idx": 6
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "5.1 Analysis of OptPess-LP (Algorithm 1) ",
1078
+ "text_level": 1,
1079
+ "bbox": [
1080
+ 174,
1081
+ 439,
1082
+ 475,
1083
+ 455
1084
+ ],
1085
+ "page_idx": 6
1086
+ },
1087
+ {
1088
+ "type": "text",
1089
+ "text": "Constraint violation analysis The zero constraint violation of OptPess-LP follows from the following property of the pessimistic policy set $\\Pi ^ { k }$ : ",
1090
+ "bbox": [
1091
+ 174,
1092
+ 465,
1093
+ 825,
1094
+ 494
1095
+ ],
1096
+ "page_idx": 6
1097
+ },
1098
+ {
1099
+ "type": "text",
1100
+ "text": "Lemma 5.1. With probability at least $( 1 - \\delta )$ , for any $k \\in [ K ]$ and policy $\\pi \\in \\Pi ^ { k }$ , $V _ { 1 } ^ { \\pi } ( \\mu ; c , P ) \\leq \\tau$ ",
1101
+ "bbox": [
1102
+ 173,
1103
+ 496,
1104
+ 825,
1105
+ 513
1106
+ ],
1107
+ "page_idx": 6
1108
+ },
1109
+ {
1110
+ "type": "text",
1111
+ "text": "Regret of reward analysis When the parameters $c , P$ are not well estimated, there may not exist any policy $\\pi$ such that $V _ { 1 } ^ { \\pi } ( \\mu ; \\underline { { { \\mathrm { c } } } } ^ { k } , \\hat { P } ^ { k } ) \\le \\tau$ . Hence, as defined in (9), $\\Pi ^ { k }$ is a singleton set $\\{ \\pi ^ { 0 } \\}$ , and accordingly $\\pi ^ { 0 }$ is executed, even though $\\pi ^ { 0 }$ is not safe for $( \\underline { { \\mathrm { c } } } ^ { k } , \\hat { P } ^ { k } )$ . It subsequently takes several episodes of exploration using $\\pi ^ { 0 }$ until it becomes strictly safe for $( \\underline { { \\mathrm { c } } } ^ { k } , \\hat { P } ^ { k } )$ . At that time, policies close enough to $\\pi ^ { 0 }$ , of which there are infinitely many, are also safe for $( \\underline { { \\mathsf { c } } } ^ { k } , \\hat { P } ^ { k } )$ , and so $| \\Pi ^ { k } | = + \\infty$ . At this point the learning algorithm can proceed to enhance reward while maintaining safety with respect to $( \\underline { { \\mathrm { c } } } ^ { k } , \\hat { P } ^ { k } )$ . ",
1112
+ "bbox": [
1113
+ 173,
1114
+ 525,
1115
+ 826,
1116
+ 636
1117
+ ],
1118
+ "page_idx": 6
1119
+ },
1120
+ {
1121
+ "type": "text",
1122
+ "text": "To analyze the algorithm, we decompose the reward regret as follows: ",
1123
+ "bbox": [
1124
+ 174,
1125
+ 641,
1126
+ 632,
1127
+ 656
1128
+ ],
1129
+ "page_idx": 6
1130
+ },
1131
+ {
1132
+ "type": "equation",
1133
+ "img_path": "images/2fb19d35978c9d1082e1ba9291aede521b3f39e79913fdfcd79f59c5e8dc3984.jpg",
1134
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle { R e g ^ { \\mathbf { o p L P } } ( K ; r ) = \\sum _ { k = 1 } ^ { K } \\mathbb { 1 } \\left( | \\Pi ^ { k } | = 1 \\right) \\left( V _ { 1 } ^ { \\pi ^ { * } } ( \\mu ; r , P ) - V _ { 1 } ^ { \\pi ^ { 0 } } ( \\mu ; r , P ) \\right) } } } \\\\ { { \\displaystyle { ~ + \\sum _ { k = 1 } ^ { K } \\mathbb { 1 } \\left( | \\Pi ^ { k } | > 1 \\right) \\left( V _ { 1 } ^ { \\pi ^ { * } } ( \\mu ; r , P ) - V _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; \\bar { r } ^ { k } , \\hat { P } ^ { k } ) \\right) } } } \\\\ { { \\displaystyle { ~ + \\sum _ { k = 1 } ^ { K } \\mathbb { 1 } \\left( | \\Pi ^ { k } | > 1 \\right) \\left( V _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; \\bar { r } ^ { k } , \\hat { P } ^ { k } ) - V _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; r , P ) \\right) } . } } \\end{array}\n$$",
1135
+ "text_format": "latex",
1136
+ "bbox": [
1137
+ 261,
1138
+ 660,
1139
+ 735,
1140
+ 794
1141
+ ],
1142
+ "page_idx": 6
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "To bound the first term on the right-hand side (RHS) of (13), we have the following lemma which gives an upper bound on the number of episodes for exploration by policy $\\pi ^ { 0 }$ : ",
1147
+ "bbox": [
1148
+ 173,
1149
+ 803,
1150
+ 823,
1151
+ 832
1152
+ ],
1153
+ "page_idx": 6
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "Lemma 5.2. With probability at least $( 1 ~ - ~ \\delta )$ $) , ~ \\sum _ { k = 1 } ^ { K } \\mathbb { 1 } ( | \\Pi ^ { k } | ~ = ~ 1 ) ~ \\le ~ C ^ { \\prime } ,$ , where $\\begin{array} { r l } { C ^ { \\prime } } & { { } = } \\end{array}$ $\\tilde { \\mathcal { O } } ( H ^ { 4 } | S | ^ { 3 } | A | / ( ( \\tau - c ^ { 0 } ) ^ { 2 } \\wedge ( \\tau - c ^ { 0 } ) ) )$ . ",
1158
+ "bbox": [
1159
+ 173,
1160
+ 834,
1161
+ 821,
1162
+ 871
1163
+ ],
1164
+ "page_idx": 6
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "Turning to the second term on the RHS of (13), we first note that $\\pi ^ { * }$ may not be in $\\Pi ^ { k }$ . To ensure that the term $V _ { 1 } ^ { \\pi ^ { * } } ( \\mu ; r , P ) - V _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; \\bar { r } ^ { k } , \\hat { P } ^ { k } )$ is nevertheless non-positive even when $\\pi ^ { * } \\notin \\Pi ^ { k }$ , we set $\\alpha _ { r }$ to the large value shown in (7). This increases $\\bar { r } ^ { k }$ , and hence also $V _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; \\bar { r } ^ { k } , \\hat { P } ^ { k } )$ . In addition, we show that there is a policy $\\hat { \\pi } ^ { k }$ that attains the same reward as the (non-Markov) probabilistic mixed policy, $\\tilde { \\pi } ^ { k } : = B _ { \\gamma _ { k } } \\pi ^ { \\bar { * } } + ( \\mathrm { i } - B _ { \\gamma _ { k } } ) \\pi ^ { 0 }$ , where $B _ { \\gamma _ { k } }$ is a Bernoulli distributed random variable with mean $\\gamma _ { k }$ for $\\gamma _ { k } \\in [ 0 , 1 ]$ . $\\gamma _ { k }$ will be chosen as the largest coefficient such that $V _ { 1 } ^ { \\tilde { \\pi } ^ { k } } ( \\mu ; \\underline { { { c } } } ^ { k } , \\hat { P } ^ { k } ) \\le \\tau$ . This latter policy in turn has a larger reward than $\\pi ^ { 0 }$ since it is a mixture with $\\pi ^ { * }$ , yielding the following: ",
1169
+ "bbox": [
1170
+ 173,
1171
+ 878,
1172
+ 823,
1173
+ 912
1174
+ ],
1175
+ "page_idx": 6
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "",
1180
+ "bbox": [
1181
+ 173,
1182
+ 88,
1183
+ 826,
1184
+ 166
1185
+ ],
1186
+ "page_idx": 7
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "Lemma 5.3. With probability at least $( 1 - \\delta )$ ",
1191
+ "bbox": [
1192
+ 174,
1193
+ 170,
1194
+ 478,
1195
+ 185
1196
+ ],
1197
+ "page_idx": 7
1198
+ },
1199
+ {
1200
+ "type": "equation",
1201
+ "img_path": "images/b7457220faf8b4b4efddc8b8c95f021b438a4a76732411553d99381f7b851468.jpg",
1202
+ "text": "$$\n\\sum _ { k = 1 } ^ { K } \\mathbb { 1 } ( | \\Pi ^ { k } | > 1 ) \\left( V _ { 1 } ^ { \\pi ^ { * } } ( \\mu ; r , P ) - V _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; \\bar { r } ^ { k } , \\hat { P } ^ { k } ) \\right) \\leq 0 .\n$$",
1203
+ "text_format": "latex",
1204
+ "bbox": [
1205
+ 308,
1206
+ 191,
1207
+ 686,
1208
+ 236
1209
+ ],
1210
+ "page_idx": 7
1211
+ },
1212
+ {
1213
+ "type": "text",
1214
+ "text": "Finally, concerning the third term on the RHS of (13), akin to the closed-loop identifiability property [6, 19], while $\\hat { P } ^ { k }$ may not converge to $P$ , the difference in the rewards $V _ { 1 } ^ { \\pi ^ { k } } ( \\bar { \\mu ; } \\bar { r } ^ { k } , \\hat { P } ^ { k } ) - \\bar { V _ { 1 } ^ { \\pi ^ { k } } } \\bar { ( \\mu ; \\boldsymbol { r } , P ) }$ grows sublinearly in $k$ since the same policy $\\pi ^ { k }$ is used in both values: ",
1215
+ "bbox": [
1216
+ 173,
1217
+ 257,
1218
+ 826,
1219
+ 305
1220
+ ],
1221
+ "page_idx": 7
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "text": "Lemma 5.4. With probability at least $( 1 - \\delta )$ , ",
1226
+ "bbox": [
1227
+ 173,
1228
+ 308,
1229
+ 478,
1230
+ 324
1231
+ ],
1232
+ "page_idx": 7
1233
+ },
1234
+ {
1235
+ "type": "equation",
1236
+ "img_path": "images/594a49da2c9a88966b1ce385c1b84d2a3516d22234b64c02b13ee81c58f43e42.jpg",
1237
+ "text": "$$\n\\sum _ { k = 1 } ^ { K } \\mathbb { 1 } ( | \\Pi ^ { k } | > 1 ) \\left( V _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; \\bar { r } ^ { k } , \\hat { P } ^ { k } ) - V _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; r , P ) \\right) = \\tilde { \\mathcal { O } } \\left( \\frac { H ^ { 3 } } { \\tau - c ^ { 0 } } \\sqrt { | { \\cal S } | ^ { 3 } | { \\cal A } | K } + \\frac { H ^ { 5 } | { \\cal S } | ^ { 3 } | { \\cal A } | } { \\tau - c ^ { 0 } } \\right) .\n$$",
1238
+ "text_format": "latex",
1239
+ "bbox": [
1240
+ 178,
1241
+ 330,
1242
+ 815,
1243
+ 371
1244
+ ],
1245
+ "page_idx": 7
1246
+ },
1247
+ {
1248
+ "type": "text",
1249
+ "text": "Combining Lemmas 5.2, 5.3, and 5.4 yields Theorem 3.1. ",
1250
+ "bbox": [
1251
+ 173,
1252
+ 395,
1253
+ 553,
1254
+ 411
1255
+ ],
1256
+ "page_idx": 7
1257
+ },
1258
+ {
1259
+ "type": "text",
1260
+ "text": "5.2 Analysis of OptPess-PrimalDual (Algorithm 2) ",
1261
+ "text_level": 1,
1262
+ "bbox": [
1263
+ 173,
1264
+ 426,
1265
+ 537,
1266
+ 443
1267
+ ],
1268
+ "page_idx": 7
1269
+ },
1270
+ {
1271
+ "type": "text",
1272
+ "text": "In this section, we outline the steps in the proof of Theorem 4.1 by analyzing regret and constraint violation of OptPess-PrimalDual respectively. ",
1273
+ "bbox": [
1274
+ 173,
1275
+ 452,
1276
+ 825,
1277
+ 482
1278
+ ],
1279
+ "page_idx": 7
1280
+ },
1281
+ {
1282
+ "type": "text",
1283
+ "text": "Recall $\\begin{array} { r } { \\epsilon _ { k } = 5 H ^ { 2 } \\sqrt { | { \\cal S } | ^ { 3 } | { \\cal A } | } ( \\log \\frac { k } { \\delta ^ { \\prime } } + 1 ) / \\sqrt { k \\log \\frac { k } { \\delta ^ { \\prime } } } } \\end{array}$ , where $\\delta ^ { \\prime } = \\delta / ( 1 6 | S | ^ { 2 } | A | H )$ . The existence of a feasible solution to (10) can be guaranteed if $\\epsilon _ { k } \\leq \\tau - c ^ { 0 }$ . Let $C ^ { \\prime \\prime }$ be the smallest value such that $\\forall k \\geq$ $C ^ { \\prime \\prime } , \\epsilon _ { k } \\le ( \\tau - c ^ { 0 } ) / 2$ . Then the perturbed optimization problem (y simple calculation, one can verify that $k \\geq C ^ { \\prime \\prime }$ $\\begin{array} { r } { C ^ { \\prime \\prime } = \\mathcal { O } ( \\frac { H ^ { 4 } | S | ^ { 3 } | A | } { ( \\tau - c ^ { 0 } ) ^ { 2 } } \\log \\frac { H ^ { 4 } | S | ^ { 3 } | A | } { ( \\tau - c ^ { 0 } ) ^ { 2 } \\delta ^ { \\prime } } ) } \\end{array}$ Notice that $\\epsilon _ { k }$ is a function not depending on , and so is the coefficient $C ^ { \\prime \\prime }$ . ",
1284
+ "bbox": [
1285
+ 173,
1286
+ 487,
1287
+ 826,
1288
+ 577
1289
+ ],
1290
+ "page_idx": 7
1291
+ },
1292
+ {
1293
+ "type": "text",
1294
+ "text": "Constraint violation analysis The bounded constraint violation of OptPess-PrimalDual is established as follows. We first decompose the constraint violation as ",
1295
+ "bbox": [
1296
+ 171,
1297
+ 589,
1298
+ 825,
1299
+ 619
1300
+ ],
1301
+ "page_idx": 7
1302
+ },
1303
+ {
1304
+ "type": "equation",
1305
+ "img_path": "images/57d9ef31705f6e51f28f714c531e21a5e4547b6a785126823cc69212462d7172.jpg",
1306
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle R e g ^ { \\mathbf { o p p D } } ( K ; c ) = ( \\sum _ { k = 1 } ^ { K } ( V _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; c , P ) - \\hat { V } _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; \\hat { c } ^ { k } , \\hat { P } ^ { k } ) ) + \\sum _ { k = 1 } ^ { K } ( \\hat { V } _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; \\hat { c } ^ { k } , \\hat { P } ^ { k } ) - \\tau ) ) _ { + } } } \\\\ { { \\displaystyle \\qquad \\leq ( \\sum _ { k = 1 } ^ { K } ( V _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; c , P ) - \\hat { V } _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; \\hat { c } ^ { k } , \\hat { P } ^ { k } ) ) + \\lambda ^ { K + 1 } - \\sum _ { k = 1 } ^ { K } \\epsilon _ { k } ) _ { + } . \\qquad ( 1 \\otimes ( \\tau ^ { k } ) ^ { K } ( \\tau ^ { k } \\otimes \\tau ^ { k } \\otimes \\tau ^ { k } \\otimes \\tau ^ { k } \\otimes \\tau ^ { k } \\otimes \\tau ^ { k } \\otimes \\tau ^ { k } \\otimes \\tau ^ { k } \\otimes \\tau ^ { k } ) _ { - \\tau ^ { k } } } } \\end{array}\n$$",
1307
+ "text_format": "latex",
1308
+ "bbox": [
1309
+ 191,
1310
+ 625,
1311
+ 805,
1312
+ 717
1313
+ ],
1314
+ "page_idx": 7
1315
+ },
1316
+ {
1317
+ "type": "text",
1318
+ "text": "The first summation term and $\\lambda ^ { K + 1 }$ in (14) can be bounded as follows: ",
1319
+ "bbox": [
1320
+ 173,
1321
+ 723,
1322
+ 642,
1323
+ 739
1324
+ ],
1325
+ "page_idx": 7
1326
+ },
1327
+ {
1328
+ "type": "text",
1329
+ "text": "Lemma 5.5. Recall $\\delta ^ { \\prime } = \\delta / ( 1 6 | S | ^ { 2 } | A | H )$ , with probability at least $( 1 - \\delta )$ , ",
1330
+ "bbox": [
1331
+ 174,
1332
+ 742,
1333
+ 676,
1334
+ 758
1335
+ ],
1336
+ "page_idx": 7
1337
+ },
1338
+ {
1339
+ "type": "equation",
1340
+ "img_path": "images/4894679ef6b106af3d7e781f57ddace360ee97584e8d4297d9387bc1617c47a7.jpg",
1341
+ "text": "$$\n\\sum _ { k = 1 } ^ { K } \\left( V _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; c , P ) - \\hat { V } _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; \\hat { c } ^ { k } , \\hat { P } ^ { k } ) \\right) \\leq 8 H ^ { 2 } \\sqrt { | \\mathcal { S } | ^ { 3 } | A | K \\log \\frac { K } { \\delta ^ { \\prime } } } + \\mathcal { O } ( P o l y L o g ( K ) ) .\n$$",
1342
+ "text_format": "latex",
1343
+ "bbox": [
1344
+ 209,
1345
+ 765,
1346
+ 787,
1347
+ 808
1348
+ ],
1349
+ "page_idx": 7
1350
+ },
1351
+ {
1352
+ "type": "text",
1353
+ "text": "Lemma 5.6. For any $k \\geq C ^ { \\prime \\prime }$ , with probability at least $( 1 - \\delta )$ , ",
1354
+ "bbox": [
1355
+ 173,
1356
+ 821,
1357
+ 593,
1358
+ 839
1359
+ ],
1360
+ "page_idx": 7
1361
+ },
1362
+ {
1363
+ "type": "equation",
1364
+ "img_path": "images/5d52fa70456e9ffe512875c03db86b07dbad7156746c780b1b59957200025fe8.jpg",
1365
+ "text": "$$\n\\lambda ^ { k } \\leq \\frac { 1 } { \\zeta } \\ln \\frac { 1 1 \\nu _ { \\mathrm { m a x } } ^ { 2 } } { 3 \\rho ^ { 2 } } + C ^ { \\prime \\prime } ( H - \\tau ) + \\sum _ { u = 1 } ^ { C ^ { \\prime \\prime } } \\epsilon _ { u } + H + \\frac { 4 ( H ^ { 2 } + \\epsilon _ { k } ^ { 2 } + \\eta ^ { k } H ) } { \\tau - c ^ { 0 } } ,\n$$",
1366
+ "text_format": "latex",
1367
+ "bbox": [
1368
+ 259,
1369
+ 845,
1370
+ 736,
1371
+ 890
1372
+ ],
1373
+ "page_idx": 7
1374
+ },
1375
+ {
1376
+ "type": "text",
1377
+ "text": "where $\\rho = ( \\tau - c ^ { 0 } ) / 4$ , $\\nu _ { \\mathrm { m a x } } = H$ , $\\zeta = \\rho / ( \\nu _ { \\mathrm { m a x } } ^ { 2 } + \\nu _ { \\mathrm { m a x } } \\rho / 3 )$ . ",
1378
+ "bbox": [
1379
+ 173,
1380
+ 895,
1381
+ 581,
1382
+ 915
1383
+ ],
1384
+ "page_idx": 7
1385
+ },
1386
+ {
1387
+ "type": "text",
1388
+ "text": "To guarantee bounded violation, we ensure that $\\sum _ { k = 1 } ^ { K } \\epsilon _ { k }$ in (14) can cancel the nt terms in the $( 1 - \\delta )$ is bounded as ",
1389
+ "bbox": [
1390
+ 173,
1391
+ 88,
1392
+ 825,
1393
+ 132
1394
+ ],
1395
+ "page_idx": 8
1396
+ },
1397
+ {
1398
+ "type": "equation",
1399
+ "img_path": "images/7a27f2f87480869706c22924dd479417e0e867135e22e5092feb0cabca3c021f.jpg",
1400
+ "text": "$$\nR e g ^ { \\mathbf { 0 p p D } } ( K ; c ) = { \\mathcal { O } } \\left( C ^ { \\prime \\prime } H + H ^ { 2 } { \\sqrt { | S | ^ { 3 } | A | C ^ { \\prime \\prime } \\log \\left( C ^ { \\prime \\prime } / \\delta ^ { \\prime } \\right) } } \\right) .\n$$",
1401
+ "text_format": "latex",
1402
+ "bbox": [
1403
+ 290,
1404
+ 135,
1405
+ 707,
1406
+ 162
1407
+ ],
1408
+ "page_idx": 8
1409
+ },
1410
+ {
1411
+ "type": "text",
1412
+ "text": "Regret of reward analysis For episode $k$ with $k \\geq C ^ { \\prime \\prime }$ , let $\\pi ^ { \\epsilon _ { k } , * }$ be the optimal policy for (10), which is well-defined by the definition of $C ^ { \\prime \\prime }$ . We decompose the reward regret as ",
1413
+ "bbox": [
1414
+ 173,
1415
+ 172,
1416
+ 826,
1417
+ 203
1418
+ ],
1419
+ "page_idx": 8
1420
+ },
1421
+ {
1422
+ "type": "equation",
1423
+ "img_path": "images/da9caedc668dc746c882de480be7bf26b039f5de6b324fbbbc3b64c8ea59c84b.jpg",
1424
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle { 2 e g ^ { { \\bf 0 } { \\bf p } { \\bf p } { \\bf p } } } ( K ; r ) = \\sum _ { k = 1 } ^ { C ^ { \\prime \\prime } } \\left( { V _ { 1 } } ^ { \\pi ^ { * } } ( \\mu ; r , P ) - { V _ { 1 } ^ { \\pi ^ { k } } } ( \\mu ; r , P ) \\right) } \\ ~ } \\\\ { { \\displaystyle ~ + \\sum _ { k = C ^ { \\prime \\prime } } ^ { K } \\left( { V _ { 1 } ^ { \\pi ^ { * } } } ( \\mu ; r , P ) - { V _ { 1 } ^ { \\pi ^ { * } , k } } ^ { * } ( \\mu ; r , P ) \\right) + \\sum _ { k = C ^ { \\prime \\prime } } ^ { K } \\left( { V _ { 1 } ^ { \\pi ^ { * } k , * } } ( \\mu ; r , P ) - { \\hat { V } _ { 1 } ^ { \\pi ^ { * } k , * } } ( \\mu ; \\hat { r } ^ { k } , \\hat { P } ^ { k } ) \\right) } \\ ~ } \\\\ { { \\displaystyle ~ + \\sum _ { k = C ^ { \\prime \\prime } } ^ { K } \\left( { \\hat { V } _ { 1 } ^ { \\pi ^ { * } k , * } } \\left( \\mu ; { \\hat { r } ^ { k } } , \\hat { P } ^ { k } \\right) - { \\hat { V } _ { 1 } ^ { \\pi ^ { k } } } ( \\mu ; { \\hat { r } ^ { k } } , \\hat { P } ^ { k } ) \\right) + \\sum _ { k = C ^ { \\prime \\prime } } ^ { K } \\left( { \\hat { V } _ { 1 } ^ { \\pi ^ { k } } } ( \\mu ; { \\hat { r } ^ { k } } , \\hat { P } ^ { k } ) - { V _ { 1 } ^ { \\pi ^ { k } } } ( \\mu ; r , P ) \\right) } . } \\end{array}\n$$",
1425
+ "text_format": "latex",
1426
+ "bbox": [
1427
+ 181,
1428
+ 207,
1429
+ 831,
1430
+ 342
1431
+ ],
1432
+ "page_idx": 8
1433
+ },
1434
+ {
1435
+ "type": "text",
1436
+ "text": "We upper bound each term on the RHS of (15). Since $V _ { 1 } ^ { \\pi } ( \\mu ; r , P ) \\in [ 0 , H ]$ for any policy $\\pi$ , the first term is upper bounded by $H C ^ { \\prime \\prime }$ . The second and third terms can be bounded by the following two lemmas: ",
1437
+ "bbox": [
1438
+ 173,
1439
+ 351,
1440
+ 828,
1441
+ 393
1442
+ ],
1443
+ "page_idx": 8
1444
+ },
1445
+ {
1446
+ "type": "text",
1447
+ "text": "Lemma 5.7. With probability at least $( 1 - \\delta )$ ",
1448
+ "bbox": [
1449
+ 173,
1450
+ 396,
1451
+ 478,
1452
+ 411
1453
+ ],
1454
+ "page_idx": 8
1455
+ },
1456
+ {
1457
+ "type": "equation",
1458
+ "img_path": "images/04f1db30ce3689974ebc7bab47b3ad1a66bb34b57469a9cfdaf7ac70574b8e1b.jpg",
1459
+ "text": "$$\n\\sum _ { k = C ^ { \\prime \\prime } } ^ { K } \\left( V _ { 1 } ^ { \\pi ^ { * } } ( \\mu ; r , P ) - V _ { 1 } ^ { \\pi ^ { \\epsilon _ { k } , * } } ( \\mu ; r , P ) \\right) \\le \\sum _ { k = C ^ { \\prime \\prime } } ^ { K } \\frac { \\epsilon _ { k } H } { \\tau - c ^ { 0 } } = \\tilde { \\mathcal { O } } \\left( \\frac { H ^ { 3 } } { \\tau - c ^ { 0 } } \\sqrt { | \\mathcal { S } | ^ { 3 } | \\mathcal { A } | K } \\right) .\n$$",
1460
+ "text_format": "latex",
1461
+ "bbox": [
1462
+ 210,
1463
+ 416,
1464
+ 784,
1465
+ 460
1466
+ ],
1467
+ "page_idx": 8
1468
+ },
1469
+ {
1470
+ "type": "text",
1471
+ "text": "Lemma 5.8. With probability at least $\\begin{array} { r l } & { ( 1 - \\delta ) , \\sum _ { k = C ^ { \\prime \\prime } } ^ { K } \\Big ( V _ { 1 } ^ { \\pi ^ { \\epsilon _ { k } , * } } ( \\mu ; r , P ) - \\hat { V } _ { 1 } ^ { \\pi ^ { \\epsilon _ { k } , * } } ( \\mu ; \\tilde { r } ^ { k } , \\hat { P } ^ { k } ) \\Big ) \\leq 0 . } \\end{array}$ ",
1472
+ "bbox": [
1473
+ 171,
1474
+ 470,
1475
+ 825,
1476
+ 496
1477
+ ],
1478
+ "page_idx": 8
1479
+ },
1480
+ {
1481
+ "type": "text",
1482
+ "text": "The pivotal step is to leverage optimism of $\\pi ^ { k }$ to further decompose the fourth term on the RHS of (15), and utilize the projected dual update to transfer it into the form of $\\lambda ^ { k } ( \\lambda ^ { k } - \\lambda ^ { k + 1 } )$ . The following lemmas provide high probability bounds for the remaining two terms on the RHS of (15): ",
1483
+ "bbox": [
1484
+ 173,
1485
+ 513,
1486
+ 826,
1487
+ 556
1488
+ ],
1489
+ "page_idx": 8
1490
+ },
1491
+ {
1492
+ "type": "text",
1493
+ "text": "Lemma 5.9. With probability at least $( 1 - \\delta )$ ",
1494
+ "bbox": [
1495
+ 173,
1496
+ 559,
1497
+ 478,
1498
+ 574
1499
+ ],
1500
+ "page_idx": 8
1501
+ },
1502
+ {
1503
+ "type": "equation",
1504
+ "img_path": "images/566bdf5af12bd5f69858156a3ed9e9ae839b82cc8c698716ec88bcbfeb6296c8.jpg",
1505
+ "text": "$$\n\\sum _ { k = C ^ { \\prime \\prime } } ^ { K } \\left( \\hat { V } _ { 1 } ^ { \\pi ^ { \\epsilon _ { k } , * } } ( \\mu ; \\tilde { r } ^ { k } , \\hat { P } ^ { k } ) - \\hat { V } _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; \\tilde { r } ^ { k } , \\hat { P } ^ { k } ) \\right) = \\tilde { \\mathcal { O } } \\left( \\frac { H } { \\tau - c ^ { 0 } } \\sqrt { K } \\right) .\n$$",
1506
+ "text_format": "latex",
1507
+ "bbox": [
1508
+ 274,
1509
+ 579,
1510
+ 722,
1511
+ 623
1512
+ ],
1513
+ "page_idx": 8
1514
+ },
1515
+ {
1516
+ "type": "text",
1517
+ "text": "Lemma 5.10. With probability at least $( 1 - \\delta )$ , ",
1518
+ "bbox": [
1519
+ 173,
1520
+ 635,
1521
+ 486,
1522
+ 651
1523
+ ],
1524
+ "page_idx": 8
1525
+ },
1526
+ {
1527
+ "type": "equation",
1528
+ "img_path": "images/d21ed6d9848f0b177aa1bcfe4624a98ad822497fa209b63f53558a8e5495cf56.jpg",
1529
+ "text": "$$\n\\sum _ { k = C ^ { \\prime \\prime } } ^ { K } \\left( \\hat { V } _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; \\tilde { r } ^ { k } , \\hat { P } ^ { k } ) - V _ { 1 } ^ { \\pi ^ { k } } ( \\mu ; r , P ) \\right) = \\tilde { \\mathcal { O } } \\left( H ^ { 2 } \\sqrt { | \\mathcal { S } | ^ { 3 } | \\hat { A } | K } + H ^ { 4 } | \\mathcal { S } | ^ { 3 } | \\hat { A } | \\right) .\n$$",
1530
+ "text_format": "latex",
1531
+ "bbox": [
1532
+ 233,
1533
+ 656,
1534
+ 763,
1535
+ 699
1536
+ ],
1537
+ "page_idx": 8
1538
+ },
1539
+ {
1540
+ "type": "text",
1541
+ "text": "Applying Lemmas 5.7, 5.8, 5.9, and 5.10 yields Theorem 4.1. ",
1542
+ "bbox": [
1543
+ 173,
1544
+ 718,
1545
+ 576,
1546
+ 734
1547
+ ],
1548
+ "page_idx": 8
1549
+ },
1550
+ {
1551
+ "type": "text",
1552
+ "text": "6 Concluding remarks ",
1553
+ "text_level": 1,
1554
+ "bbox": [
1555
+ 174,
1556
+ 752,
1557
+ 379,
1558
+ 770
1559
+ ],
1560
+ "page_idx": 8
1561
+ },
1562
+ {
1563
+ "type": "text",
1564
+ "text": "We present two optimistic pessimism-based algorithms that maintain stringent safety constraints (either zero or bounded safety constraint violation) for unknown CMDPs with high probability, while still attaining an $\\tilde { \\mathcal { O } } ( \\sqrt { K } )$ regret of reward. The algorithms employ, respectively, a pessimistically safe policy set $\\Pi ^ { k }$ or an additional pessimistic term $\\epsilon _ { k }$ into the safety constraint. The first algorithm, OptPess-LP, guarantees zero violation with high probability by solving a linear programming with $\\Theta ( | S | | A | H )$ decision variables, while the second algorithm, OptPess-PrimalDual, is as efficient as policy-gradient-based algorithms in the tabular case, but violates constraints during initial episodes. A possible future direction for exploration is the application of the above OPFU principle in model-free algorithms. ",
1565
+ "bbox": [
1566
+ 173,
1567
+ 782,
1568
+ 826,
1569
+ 911
1570
+ ],
1571
+ "page_idx": 8
1572
+ },
1573
+ {
1574
+ "type": "text",
1575
+ "text": "Acknowledgement ",
1576
+ "text_level": 1,
1577
+ "bbox": [
1578
+ 176,
1579
+ 89,
1580
+ 330,
1581
+ 106
1582
+ ],
1583
+ "page_idx": 9
1584
+ },
1585
+ {
1586
+ "type": "text",
1587
+ "text": "P. R. Kumar’s work is partially supported by US National Science Foundation under CMMI-2038625, HDR Tripods CCF-1934904; US Office of Naval Research under N00014-21-1-2385; US ARO under W911NF1810331, W911NF2120064; and U.S. Department of Energy’s Office of Energy Efficiency and Renewable Energy (EERE) under the Solar Energy Technologies Office Award Number DEEE0009031. The views expressed herein and conclusions contained in this document are those of the authors and should not be interpreted as representing the views or official policies, either expressed or implied, of the U.S. NSF, ONR, ARO, Department of Energy or the United States Government. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notation herein. ",
1588
+ "bbox": [
1589
+ 173,
1590
+ 121,
1591
+ 826,
1592
+ 246
1593
+ ],
1594
+ "page_idx": 9
1595
+ },
1596
+ {
1597
+ "type": "text",
1598
+ "text": "Dileep Kalathil gratefully acknowledges funding from the U.S. National Science Foundation (NSF) grants NSF-CRII- CPS-1850206 and NSF-CAREER-EPCN-2045783. ",
1599
+ "bbox": [
1600
+ 173,
1601
+ 252,
1602
+ 823,
1603
+ 280
1604
+ ],
1605
+ "page_idx": 9
1606
+ },
1607
+ {
1608
+ "type": "text",
1609
+ "text": "References ",
1610
+ "text_level": 1,
1611
+ "bbox": [
1612
+ 174,
1613
+ 301,
1614
+ 266,
1615
+ 316
1616
+ ],
1617
+ "page_idx": 9
1618
+ },
1619
+ {
1620
+ "type": "text",
1621
+ "text": "[1] J. Achiam, D. Held, A. Tamar, and P. Abbeel. Constrained policy optimization. In International Conference on Machine Learning, pages 22–31. PMLR, 2017. \n[2] E. Altman. Constrained Markov decision processes, volume 7. CRC Press, 1999. \n[3] S. Amani. Linear stochastic bandits under safety constraints. NeurIPS 2019, 2019. \n[4] D. Amodei, C. Olah, J. Steinhardt, P. Christiano, J. Schulman, and D. Mané. Concrete problems in ai safety. arXiv preprint arXiv:1606.06565, 2016. \n[5] F. Berkenkamp, M. Turchetta, A. P. Schoellig, and A. Krause. Safe model-based reinforcement learning with stability guarantees. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 908–919, 2017. \n[6] V. Borkar and P. Varaiya. Adaptive control of Markov chains, I: Finite parameter set. IEEE Transactions on Automatic Control, 24(6):953–957, 1979. \n[7] R. Cheng, G. Orosz, R. M. Murray, and J. W. Burdick. End-to-end safe reinforcement learning through barrier functions for safety-critical continuous control tasks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 3387–3395, 2019. \n[8] D. Ding, X. Wei, Z. Yang, Z. Wang, and M. Jovanovic. Provably efficient safe exploration via primal-dual policy optimization. In International Conference on Artificial Intelligence and Statistics, pages 3304–3312. PMLR, 2021. \n[9] G. Dulac-Arnold, D. Mankowitz, and T. Hester. Challenges of real-world reinforcement learning. arXiv preprint arXiv:1904.12901, 2019. \n[10] Y. Efroni, S. Mannor, and M. Pirotta. Exploration-exploitation in constrained mdps. arXiv preprint arXiv:2003.02189, 2020. \n[11] E. Garcelon, M. Ghavamzadeh, A. Lazaric, and M. Pirotta. Improved algorithms for conservative exploration in bandits. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 3962–3969, 2020. \n[12] J. Garcıa and F. Fernández. A comprehensive survey on safe reinforcement learning. Journal of Machine Learning Research, 16(1):1437–1480, 2015. \n[13] T. Jaksch, R. Ortner, and P. Auer. Near-optimal regret bounds for reinforcement learning. Journal of Machine Learning Research, 11(4), 2010. \n[14] A. Kazerouni, M. Ghavamzadeh, Y. Abbasi-Yadkori, and B. Van Roy. Conservative contextual linear bandits. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 3913–3922, 2017. \n[15] T. Koller, F. Berkenkamp, M. Turchetta, and A. Krause. Learning-based model predictive control for safe exploration. In 2018 IEEE Conference on Decision and Control (CDC), pages 6059–6066. IEEE, 2018. \n[16] Q. Liang, F. Que, and E. Modiano. Accelerated primal-dual policy optimization for safe reinforcement learning. arXiv preprint arXiv:1802.06480, 2018. \n[17] X. Liu, B. Li, P. Shi, and L. Ying. An efficient pessimistic-optimistic algorithm for constrained linear bandits. arXiv preprint arXiv:2102.05295, 2021. \n[18] A. Moradipari, S. Amani, M. Alizadeh, and C. Thrampoulidis. Safe linear thompson sampling with side information. arXiv preprint arXiv:1911.02156, 2019. \n[19] P. R. Kumar and A. Becker. A new family of optimal adaptive controllers for Markov chains. IEEE Transactions on Automatic Control, 27(1):137–146, 1982. \n[20] A. Pacchiano, M. Ghavamzadeh, P. Bartlett, and H. Jiang. Stochastic bandits with linear constraints. In International Conference on Artificial Intelligence and Statistics, pages 2827– 2835. PMLR, 2021. \n[21] S. Paternain, M. Calvo-Fullana, L. F. Chamon, and A. Ribeiro. Safe policies for reinforcement learning via primal-dual methods. arXiv preprint arXiv:1911.09101, 2019. \n[22] S. Qiu, X. Wei, Z. Yang, J. Ye, and Z. Wang. Upper confidence primal-dual reinforcement learning for cmdp with adversarial loss. arXiv e-prints, pages arXiv–2003, 2020. \n[23] J. Schulman, S. Levine, P. Abbeel, M. Jordan, and P. Moritz. Trust region policy optimization. In International conference on machine learning, pages 1889–1897. PMLR, 2015. \n[24] A. Stooke, J. Achiam, and P. Abbeel. Responsive safety in reinforcement learning by pid lagrangian methods. In International Conference on Machine Learning, pages 9133–9143. PMLR, 2020. \n[25] R. S. Sutton and A. G. Barto. Reinforcement learning: An introduction. MIT press, 2018. \n[26] C. Tessler, D. J. Mankowitz, and S. Mannor. Reward constrained policy optimization. In International Conference on Learning Representations, 2018. \n[27] A. Wachi, Y. Sui, Y. Yue, and M. Ono. Safe exploration and optimization of constrained mdps using gaussian processes. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018. \n[28] Y. Wu, R. Shariff, T. Lattimore, and C. Szepesvári. Conservative bandits. In International Conference on Machine Learning, pages 1254–1262. PMLR, 2016. \n[29] T.-Y. Yang, J. Rosca, K. Narasimhan, and P. J. Ramadge. Projection-based constrained policy optimization. In International Conference on Learning Representations, 2019. \n[30] L. Zheng and L. Ratliff. Constrained upper confidence reinforcement learning. In Learning for Dynamics and Control, pages 620–629. PMLR, 2020. ",
1622
+ "bbox": [
1623
+ 173,
1624
+ 319,
1625
+ 826,
1626
+ 916
1627
+ ],
1628
+ "page_idx": 9
1629
+ },
1630
+ {
1631
+ "type": "text",
1632
+ "text": "",
1633
+ "bbox": [
1634
+ 171,
1635
+ 90,
1636
+ 828,
1637
+ 728
1638
+ ],
1639
+ "page_idx": 10
1640
+ }
1641
+ ]
parse/train/Nl7VO_Y7K4Q/Nl7VO_Y7K4Q_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Nl7VO_Y7K4Q/Nl7VO_Y7K4Q_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Pg13X3rETW/Pg13X3rETW.md ADDED
@@ -0,0 +1,420 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Group-Aware Threshold Adaptation for Fair Classification
2
+
3
+ Anonymous Author(s)
4
+ Affiliation
5
+ Address
6
+ email
7
+
8
+ # Abstract
9
+
10
+ 1 The fairness in machine learning is getting increasing attention, as its applications
11
+ 2 in different fields continue to expand and diversify. To mitigate the discriminated
12
+ 3 model behaviors between different demographic groups, we introduce a novel post
13
+ 4 processing method to optimize over multiple fairness constraints through group
14
+ 5 aware threshold adaptation. We propose to learn adaptive classification thresholds
15
+ 6 for each demographic group by optimizing the confusion matrix estimated from
16
+ 7 the probability distribution of a classification model output. As we only need
17
+ 8 an estimated probability distribution of model output instead of the classification
18
+ 9 model structure, our post-processing model can be applied to a wide range of
19
+ 10 classification models and improve fairness in a model-agnostic manner to ensure
20
+ 11 privacy. This even allows us to post-process existing fairness methods to further
21
+ 12 improve the trade-off between accuracy and fairness. Moreover, our model is
22
+ 13 efficient with low computational cost by alternating optimization and flexible with
23
+ 14 the optimization over multiple fairness constraints. We provide Pareto frontier to
24
+ 15 characterize fairness-accuracy trade-off. Also, we provide a theoretical analysis
25
+ 16 of the optimal thresholds obtained from our model in terms of both accuracy
26
+ 17 and fairness in classification. Experimental results demonstrate that our method
27
+ 18 outperforms state-of-the-art methods and obtains the result that is closest to the
28
+ 19 theoretical accuracy-fairness trade-off boundary.
29
+
30
+ # 20 1 Introduction
31
+
32
+ 21 Machine learning is broadening its impact in various fields including autonomous driving, credit
33
+ 22 analysis, and job application screening. As a consequence, the role and importance of fairness in
34
+ 23 machine learning are emerging. However, recent models have been found to behave differently
35
+ 24 between demographic groups in favorable predictions. For example, it has been discovered that
36
+ 25 COMPAS, the criminal risk assessment software currently used to help pretrial release decisions,
37
+ 26 has biases between different races [4]. Specifically, blacks got higher risk scores predicted from the
38
+ 27 model than whites with similar profiles. Therefore, discrimination truly exists and resolving it in
39
+ 28 machine learning is very important and urgent because its direct and potential impact is growing
40
+ 29 tremendously.
41
+ 30 However, obtaining fairness is not a trivial problem, because the data set itself will be biased when it
42
+ 31 is accumulated artificially. Simply removing or manipulating sensitive features (such as race, gender)
43
+ 32 from the data does not solve the bias, because there is indirect discrimination [19] or disparate
44
+ 33 treatment [1] due to the feature redundancy and relevance, which means sensitive information can be
45
+ 34 inferred from other features.
46
+ 35 In order to alleviate discrimination from different perspectives, various quantitative measurements
47
+ 36 of group equity [7, 11, 2, 13] have been proposed. It has been proven that the pursuit of fairness is
48
+ 37 subject to a trade-off between fairness and accuracy [14, 10], i.e., if we want to improve fairness, we
49
+ 38 need to sacrifice accuracy.
50
+ 39 Moreover, Pleiss et al. [20] studied the trade-offs between fairness notions that cannot be satisfied
51
+ 40 at the same time. Therefore, recent works usually target at a certain fairness notion in different
52
+ 41 approaches such as pre-processing [6], in-processing [24], and post-processing [7] methods. However,
53
+ 42 these approaches suffer from the lack of flexibility, since it is difficult to adapt a fair model that
54
+ 43 is trained w.r.t. one certain fairness criterion so as to optimize over other fairness measures. If
55
+ 44 the fairness constraints change under some circumstances, traditional fairness models need to be
56
+ 45 re-trained from scratch, which is computationally demanding and sometimes inapplicable due to
57
+ 46 model settings. To overcome the limitations above, we propose a novel post-processing method to
58
+ 47 improve fairness in a model-agnostic manner. Our GSTAR (Group Specific Threshold Adaptation
59
+ 48 for faiR classification) model learns adaptive classification thresholds for each demographic group
60
+ 49 in classification task for improving the trade-off between fairness and accuracy. Given an existing
61
+ 50 classification model, GSTAR approximates the probability distribution of the model output via
62
+ 51 maximum likelihood estimation and utilizes confusion matrix to quantify accuracy and fairness w.r.t.
63
+ 52 the group-aware classification thresholds. This allows us to: 1) prevent from burdening additional
64
+ 53 complexity or deteriorate the stability of the training process of the classifier; 2) integrate different
65
+ 54 fairness notions into one unified objective function; 3) easily adapt one pre-trained model to other
66
+ 55 fairness constraints. We summarize our contributions of this paper as follows:
67
+
68
+ 1. We propose a novel post-processing method, GSTAR, which can learn group-aware thresholds to optimize the trade-off between fairness and accuracy in classification. We derive rigorous theoretical analysis on the trade-off in our model, and empirically show that GSTAR outperforms state-of-the-art methods.
69
+ 2. With GSTAR, we can simultaneously optimize over multiple fairness constraints with a low computational cost. GSTAR does not require multiple iterations over data, instead, it takes at most one pass of data in training for fast computation.
70
+ 3. GSTAR can be adapted to a wide range of classification models in a model-agnostic manner and can adapt an existing classification model from one fairness criterion to another without re-training the classifier.
71
+ 4. We derive Pareto frontiers of our model for the fairness-accuracy trade-offs that contextualize the quality of fair classification.
72
+
73
+ # 68 2 Related Works
74
+
75
+ 69 In order to achieve group fairness, which quantifies the discrimination among different sensitive
76
+ 70 groups, a diverse notion of fairness has been introduced. Equalized odds [7] enforce equality of true
77
+ 71 positive rates and false positive rates between different demographic groups. Pleiss et al. [20] relaxed
78
+ 72 equalized odds to satisfy the calibration. Demographic parity or disparate impact [1] suggests that a
79
+ 73 model is unbiased if the model prediction is independent of the protected attribute.
80
+ 74 Among different fairness methods, post-processing techniques propose to improve fairness by mod
81
+ 75 ifying the output of a black-box classifier. Hardt et al. [7] propose to ensure equalized odds by
82
+ 76 constraining the model output. Kamiran et al. [9] propose to give a favorable outcome to unprivileged
83
+ 77 and an unfavorable outcome to the privileged group when the confidence of the prediction is beyond a
84
+ 78 certain range. However, such static confidence window keeps the same regardless of the demographic
85
+ 79 group and is determined by grid search, so it is less efficient.
86
+ 80 Threshold adjustment (a.k.a. thresholding) was introduced to improve the performance of static
87
+ 81 thresholds. In the literature, Menon et al. [18] prove that instance-dependent thresholding of the
88
+ 82 predictive probability function is the optimal classifier in cost-sensitive fairness measures. Also,
89
+ 83 when considering immediate utility, Corbett-Davies et al. [3] show that optimal algorithm is achieved
90
+ 84 from group-specific threshold which is determined by group statistics. However, to the best of our
91
+ 85 knowledge, the threshold adjustment approach has not been deeply studied that neither encompasses
92
+ 86 broad group fairness metrics nor describes an explicit method to achieve the threshold.
93
+ 87 Trade-off between fairness and accuracy exists when we impose fairness constraint to a model. Recent
94
+ 88 studies [2, 25] prove that models targeting at such fairness notions conform to an information theoretic
95
+ 89 lower bound on the joint error across different sensitive groups. Therefore, our work presents a
96
+ 90 practical upper bound of the best achievable accuracy given the fairness constraints.
97
+ 91 Moreover, trade-offs between different fairness notions also exist if one has to consider multiple
98
+ 92 fairness criteria. Some of them are theoretically proven to be incompatible [6, 18, 14]. To express
99
+ 93 and formulate fairness, recent work [10] utilize confusion matrix and propose least-square accuracy
100
+ 94 fairness optimization problem on multiple fairness notions, and categorize the trade-offs between the
101
+ 95 fairness notions.
102
+ 96 Here, our work is the most related to the post-processing methods [7, 10]. Hardt et al. [7] propose
103
+ 97 a post-processing method that utilizes the mixing rate to meet the equalized odds. Ours is similar
104
+ 98 to Hardt et al. [7] in the manner that achieving group-wise threshold from the feasible region that
105
+ 99 is geometrically generated by the intersection between the receiver operating characteristic (ROC)
106
+ 100 curves conditioned on sensitive feature. Ours differ from [7] by generalizing the concept beyond
107
+ 101 equalized odds to other multiple fairness constraints into consideration. FACT [10] utilizes a single
108
+ 102 point (static) from the classifier to be post-processed as a reference which does not fully utilize the
109
+ 103 classifier for the post-processing. In contrast, by approximating the distribution of the continuous
110
+ 104 predicted logits, our GSTAR model enables a larger feasible region than [10] with a better fairness
111
+ 105 accuracy trade-off. We validate the improvement in trade-off via both theoretical and empical results.
112
+ 106 It is notable that these related methods [7, 10] can be considered as a special case of GSTAR.
113
+
114
+ # 7 3 GSTAR for Fair Classification
115
+
116
+ # 3.1 Motivation
117
+
118
+ Consider a binary classification problem with a binary sensitive feature, such that the sensitive feature $A \in \{ 0 , 1 \}$ and label $Y \in \{ 0 , 1 \}$ . In general, for a given data $X$ , a binary classification model outputs an unnormalized logit $h ( { \bar { X } } ) \in \mathbb { R }$ with the class label probability $p ( \dot { X } ) = \sigma ( h ( X ) ) \in [ 0 , 1 ]$ , where $\sigma$ is an activation function (sigmoid function in logistic regression and neural network). It is not necessary to calculate $p$ in a classification model, e.g. support vector machines directly use the positiveness/negativeness of logit $h ( X )$ to determine classification outcome. For traditional models, we use a cut-off threshold $\theta _ { h } = 0$ for $h ( X )$ (i.e., $\theta _ { p } = \sigma ( 0 ) = 0 . 5$ for $p ( X ) \}$ ) in classification, such that the predicted label is determined by $\hat { Y } = \mathbb { I } \{ h ( X ) \geq \theta _ { h } \}$ . In the following context, unless otherwise mentioned, we use $\theta$ to refer to the threshold $\theta _ { h }$ on logit $h$ since it is applicable to a wider range of classification models, and the corresponding threshold on label probability $\theta _ { p }$ can be easily inferred from the threshold on logit $h$ . Traditional models use the same cut-off threshold $\theta$ for different demographic groups. However, since the distribution of logits $h$ in different demographic groups can be different, using the same threshold $\theta$ brings biased classification.
119
+
120
+ 122 In Figure 1, we show a real-world example of image classification on CelebA dataset with
121
+ 123 ResNet50 [8] to show that the default setting of classification thresholds affects both accuracy
122
+ 124 and fairness in classification. The goal of this classification example is to predict the image of a
123
+ 125 person is whether attractive or not, and consider sensitive attribute as gender. This can be generalized
124
+ 126 to different sensitive attributes such as age or race [22, 16]. We can observe an obvious difference in
125
+ 127 the distribution of logit $h$ between two gender groups. In this case, if we use a unified classification
126
+ 128 threshold $\theta _ { 1 } = \theta _ { 0 } = 0$ , it naturally brings a difference in the true positive rate and true negative
127
+ 129 rate between two gender groups, thus renders bias in classification. Instead, we observe that the
128
+ 130 optimal group-specific threshold obtained from GSTAR $( \theta _ { 1 } ^ { * } > \theta _ { 1 }$ , and ${ \theta } _ { 0 } ^ { * } < { \theta } _ { 0 }$ ) can adapt to such
129
+ 131 discrepancy in distribution between two demographic groups to improve both fairness and accuracy.
130
+
131
+ # 3.2 Group-Aware Classification Thresholds
132
+
133
+ 133 Given an existing classification model and a sensitive attribute $a$ , we can denote true positive rate
134
+ 134 $( \mathrm { T P } _ { a } )$ , false positive rate $( \mathrm { F P } _ { a } )$ , true negative rate $( \mathrm { T N } _ { a } )$ , and false negative rate $( \mathrm { F N } _ { a } )$ in the confusion
135
+ 135 matrix. Most fairness notions can be represented with entries in the confusion matrix. For instance,
136
+ 136 Equal Opportunity (EOp) [7] requires $T P _ { 0 } = T P _ { 1 }$ , and Demographic Parity (DP) [1] requires
137
+
138
+ $$
139
+ \frac { T P _ { 1 } n _ { 1 1 } + F P _ { 1 } n _ { 0 1 } } { N _ { 1 } } = \frac { T P _ { 0 } n _ { 1 0 } + F P _ { 0 } n _ { 0 0 } } { N _ { 0 } } ,
140
+ $$
141
+
142
+ where 137 $n _ { y a }$ denotes the number of samples in the subset $\{ Y = y , A = a \}$ , $\begin{array} { r } { N _ { a } = \sum _ { y } n _ { y a } } \end{array}$ denotes the number of samples in 138 $\{ Y = y \}$ , and $\begin{array} { r } { N = \sum _ { y , a } n _ { y a } } \end{array}$ is the total number of samples.
143
+
144
+ ![](images/ae284a0093cee4b3affbd0d3bfb2f4a1f83a69b2bef20505d07b95f159ade15d.jpg)
145
+ Figure 1: Histograms of logit $h$ distribution from logistic regression on CelebA data, where logit $h$ is used to determine the predicted label $\hat { Y } = \mathbb { I } \{ h ( X ) \geq \theta \}$ , and $\theta$ is the classification threshold. The top plot is for positive samples $Y = 1$ , attractive), and the bottom plot for negative samples $( Y = 0$ , unattractive). In each plot, yellow/green bars represent the distribution of logit $h$ in different sensitive groups, and blue/red curves are estimated probability density functions of logit $h$ in different sensitive groups. $\theta _ { 0 } = \theta _ { 1 } = 0$ (black dashed line) are the default classification thresholds, that are identical for $A = 0$ and $A = 1$ groups. The default thresholds result in biased prediction towards the unprivileged group $A = 0$ due to the different logit $h$ distributions in different sensitive groups. $\theta _ { 0 } ^ { * }$ (red dashed line), $\theta _ { 1 } ^ { * }$ (blue dashed line) are group-aware thresholds from GSTAR for each sensitive group.
146
+
147
+ 139 Consider the group-aware classification threshold $\pmb { \theta } = ( \theta _ { 1 } , \theta _ { 0 } ) ^ { \top }$ , where $\theta _ { a }$ is the classification
148
+ 140 threshold for sensitive group $A = a$ . We can formulate the entries in the confusion matrix w.r.t. $\pmb { \theta }$ as
149
+ 141 below:
150
+
151
+ $$
152
+ \begin{array} { r l } { \mathrm { T P } _ { a } ( \theta _ { a } ) \approx 1 - \displaystyle \int _ { - \infty } ^ { \theta _ { a } } f _ { 1 a } ( x ) d x , } & { \qquad \mathrm { F N } _ { a } ( \theta _ { a } ) \approx \displaystyle \int _ { - \infty } ^ { \theta _ { a } } f _ { 1 a } ( x ) d x , } \\ { \mathrm { F P } _ { a } ( \theta _ { a } ) \approx 1 - \displaystyle \int _ { - \infty } ^ { \theta _ { a } } f _ { 0 a } ( x ) d x , } & { \qquad \mathrm { T N } _ { a } ( \theta _ { a } ) \approx \displaystyle \int _ { - \infty } ^ { \theta _ { a } } f _ { 0 a } ( x ) d x , } \end{array}
153
+ $$
154
+
155
+ 142 where $f _ { y a } ( x )$ is an estimated parametric probability density function of the distribution of output
156
+ 143 logit $h$ in the subset $\{ Y = y , { \bar { A } } = a \}$ . Here, we consider gamma, Student’s t, and normal distribution
157
+ 144 as the candidates for the estimated distribution, and select the one that has the maximum likelihood
158
+ 145 with the output distribution. Without loss of generality, this can be generalized with other parametric
159
+ 146 probability density function based on the needs or prior knowledge.
160
+ 147 Then, we formulate the fairness-constrained classification problem with the objective of minimizing
161
+ 148 classification error into a least-squared optimization problem. We denote our objective function
162
+ 149 as $\mathcal { L } ( \pmb { \theta } )$ which consists of the performance loss $\mathcal { L } _ { p e r } ( \pmb { \theta } )$ and fairness loss $\mathcal { L } _ { f a i r } ( \pmb { \theta } )$ . $\mathcal { L } _ { p e r } ( \pmb { \theta } )$ and
163
+ 150 $\mathcal { L } _ { f a i r } ( \pmb { \theta } )$ measures the error in performance and fairness respectively that are represented with the
164
+ 151 entries of the confusion matrix. In other words, our goal is to minimize the objective function $\mathcal { L } ( \pmb { \theta } )$
165
+ 152 as below:
166
+
167
+ $$
168
+ \begin{array} { r } { \mathcal { L } ( \pmb { \theta } ) = \mathcal { L } _ { p e r } ( \pmb { \theta } ) + \lambda \mathcal { L } _ { f a i r } ( \pmb { \theta } ) , } \end{array}
169
+ $$
170
+
171
+ 53 where $\lambda$ is a hyperparameter that determines how much fairness is enforced in the optimization.
172
+
173
+ 154 The performance error $\mathcal { L } _ { p e r } ( \pmb { \theta } )$ can be written as
174
+
175
+ $$
176
+ \mathcal { L } _ { p e r } ( \pmb { \theta } ) = \Big ( \frac { n _ { 0 1 } } { N } \mathrm { F P } _ { 1 } ( \theta _ { 1 } ) + \frac { n _ { 1 1 } } { N } \mathrm { F N } _ { 1 } ( \theta _ { 1 } ) + \frac { n _ { 0 0 } } { N } \mathrm { F P } _ { 0 } ( \theta _ { 0 } ) + \frac { n _ { 1 0 } } { N } \mathrm { F N } _ { 0 } ( \theta _ { 0 } ) \Big ) ^ { 2 } .
177
+ $$
178
+
179
+ 155 As for $\mathcal { L } _ { f a i r } ( \pmb { \theta } )$ , it can be formulated to any fairness metrics that are expressible with confusion matrix.
180
+ 156 For instance, when we impose EOp $\mathbf { \Delta T P _ { 1 } = T P _ { 0 } }$ ) and predictive equality (PE) $\mathbf { \mathrm { F P _ { 1 } } } = \mathbf { \mathrm { F P _ { 0 } } }$ ) [2], we
181
+ 157 can get the corresponding $\mathcal { L } _ { f a i r } ( \pmb { \theta } )$ by summing over the least squared form of each constraint. Also,
182
+ 158 satisfying EOp and PP is equivalent to satisfying Equalized Odds (EOd) [7], This can be formulated
183
+ 159 in our $\mathscr { L } _ { f a i r }$ as
184
+
185
+ $$
186
+ \begin{array} { r l } & { \mathcal { L } _ { f a i r } ^ { E O d } ( \pmb { \theta } ) = \mathcal { L } _ { f a i r } ^ { E O p } ( \pmb { \theta } ) + \mathcal { L } _ { f a i r } ^ { P P } ( \pmb { \theta } ) } \\ & { \quad \quad \quad = \left( T P _ { 1 } ( \theta _ { 1 } ) - T P _ { 0 } ( \theta _ { 0 } ) \right) ^ { 2 } + \left( F P _ { 1 } ( \theta _ { 1 } ) - F P _ { 0 } ( \theta _ { 0 } ) \right) ^ { 2 } . } \end{array}
187
+ $$
188
+
189
+ Note that a lower 160 $\mathcal { L } _ { f a i r }$ value indicates a fairer threshold. When $\mathcal { L } _ { f a i r } ^ { E O D } ( \pmb { \theta } ) = 0$ , we can interpret as 161 the satisfies the perfect EOd fairness.
190
+
191
+ 162 Similar to (4), we can enforce multiple fairness constraints by summing over the least squared of
192
+ 163 each metric with different weight constant $\lambda$ to each fairness constraints if needed.
193
+ 164 Also, it is notable that compared to the recent paper [10] that enforces fairness through confusion
194
+ 165 tensor, our formulation of fairness in $\mathcal { L } _ { f a i r } ( \pmb { \theta } )$ represents a direct notion of fairness metrics and
195
+ 166 improves the measures that allows us to achieve better performance and Pareto frontiers that is shown
196
+ 167 in Section 4.2 and Figure 2. For example, $A _ { \mathrm { E O d } }$ in the paper is calculated as $M _ { 1 } \mathrm { E O p } + M _ { 0 } \mathrm { P E }$ , where
197
+ 168 $M _ { y } = n _ { y 0 } + n _ { y 1 }$ , such that EOd is a weighted sum of EOp and PE with weights being the number of
198
+ 169 samples in each class. In this expression, the imbalance between the two fairness criteria will grow as
199
+ 170 the degree of imbalance in the data increases. In contrast, our formulation expresses the constraints
200
+ 171 as the exact notion of each metric that is not biased by the statistics of the datset and we observe
201
+ 172 improved Pareto frontier as in Figure 2.
202
+ 173 We propose to optimize our threshold $\pmb { \theta }$ with alternating optimization method. Here we take EOp
203
+ 174 constraint as an example to show the alternating optimization steps, then $\mathcal { L } _ { f a i r } ( \pmb { \theta } )$ can be written as
204
+
205
+ $$
206
+ \begin{array} { r } { \mathcal { L } _ { f a i r } ^ { E O p } ( \pmb { \theta } ) = \left( \mathrm { T P } _ { 1 } ( \theta _ { 1 } ) - \mathrm { T P } _ { 0 } ( \theta _ { 0 } ) \right) ^ { 2 } . } \end{array}
207
+ $$
208
+
209
+ 175 The first step is to fix $\theta _ { 0 }$ and update $\theta _ { 1 }$ . We can approximate the terms that are related to $\theta _ { 1 }$ (e.g.,
210
+ 176 $\mathrm { T P _ { 1 } , F P _ { 1 } , T N _ { 1 } , F N _ { 1 } ) }$ in (1) with first-order Taylor expansion at $\theta _ { 1 } ^ { \tau - 1 }$ . For example,
211
+
212
+ $$
213
+ \mathrm { T P _ { 1 } } ( \theta _ { 1 } ) \approx \mathrm { T P _ { 1 } } ( \theta _ { 1 } ^ { \tau - 1 } ) + \frac { \partial \mathrm { T P _ { 1 } } } { \partial \theta _ { 1 } } \Big | _ { \theta _ { 1 } = \theta _ { 1 } ^ { \tau - 1 } } ( \theta _ { 1 } - \theta _ { 1 } ^ { \tau - 1 } )
214
+ $$
215
+
216
+ 177 From (1), we can easily derive that
217
+
218
+ $$
219
+ \begin{array} { r l } { \mathrm { T P } _ { 1 } ( \theta _ { 1 } ^ { \tau - 1 } ) = } & { { } 1 - \displaystyle \int _ { - \infty } ^ { \theta _ { 1 } ^ { \tau - 1 } } f _ { 1 1 } ( x ) d x , } \\ { \displaystyle \frac { \partial \mathrm { T P } _ { 1 } } { \partial \theta _ { 1 } } = } & { { } - f _ { 1 1 } ( \theta _ { 1 } ^ { \tau - 1 } ) . } \end{array}
220
+ $$
221
+
222
+ 178 Similarly, we can find the first order Taylor expansion of $\mathrm { F P _ { 1 } , F N _ { 1 } }$ , and $\mathrm { T N _ { 1 } }$ . Then, the update of $\theta _ { 1 }$
223
+ 179 w.r.t. (2) can be approximated with the following minimization problem w.r.t. $\Delta _ { 1 }$
224
+
225
+ $$
226
+ \begin{array} { r } { \Delta _ { 1 } ^ { \tau } : = \underset { \Delta _ { 1 } } { \mathrm { a r g m i n } } ( \eta ^ { \tau } + \alpha ^ { \tau } \Delta _ { 1 } ) ^ { 2 } + \lambda ( \epsilon ^ { \tau } + \beta ^ { \tau } \Delta _ { 1 } ) ^ { 2 } , } \end{array}
227
+ $$
228
+
229
+ where 180 $\Delta _ { 1 } = \theta _ { 1 } - \theta _ { 1 } ^ { \tau - 1 }$ and
230
+
231
+ $$
232
+ \begin{array} { l l } { \displaystyle \alpha _ { 1 } ^ { \tau } = \frac { n _ { 1 1 } } { N } f _ { 1 1 } ( \theta _ { 1 } ^ { \tau - 1 } ) - \frac { n _ { 0 1 } } { N } f _ { 0 1 } ( \theta _ { 1 } ^ { \tau - 1 } ) , } \\ { \displaystyle \beta _ { 1 } ^ { \tau } = - f _ { 1 1 } ( \theta _ { 1 } ^ { \tau - 1 } ) , } \\ { \displaystyle \eta _ { 1 } ^ { \tau } = \int _ { - \infty } ^ { \theta _ { 1 } ^ { \tau - 1 } } \big ( \frac { n _ { 1 1 } } { N } f _ { 1 1 } ( x ) + \frac { n _ { 0 1 } } { N } ( 1 - f _ { 0 1 } ( x ) \big ) d x + \int _ { - \infty } ^ { \theta _ { 0 } ^ { \tau - 1 } } \big ( \frac { n _ { 1 0 } } { N } f _ { 1 0 } ( x ) + \frac { n _ { 0 0 } } { N } ( 1 - f _ { 0 0 } ( x ) \big ) d x , } \\ { \displaystyle \epsilon _ { 1 } ^ { \tau } = \int _ { \infty } ^ { \theta _ { 1 } ^ { \tau - 1 } } f _ { 1 1 } ( x ) d x - \int _ { \infty } ^ { \theta _ { 0 } ^ { \tau - 1 } } f _ { 0 1 } ( x ) d x . } \end{array}
233
+ $$
234
+
235
+ 181 Taking the derivative of (8) w.r.t. $\Delta _ { 1 }$ and setting it to 0, we can easily obtain the closed-form solution of 182 $\Delta _ { 1 } ^ { \tau }$ as
236
+
237
+ $$
238
+ \Delta _ { 1 } ^ { \tau } = - \frac { \alpha ^ { \tau } \eta ^ { \tau } + \lambda \beta ^ { \tau } \epsilon ^ { \tau } } { ( \alpha ^ { \tau } ) ^ { 2 } + \lambda ( \beta ^ { \tau } ) ^ { 2 } } .
239
+ $$
240
+
241
+ Input dataset $\mathcal { X } \times \mathcal { A } \times \mathcal { Y } = \{ ( \mathbf { x } _ { i } , \mathbf { a } _ { i } , \mathbf { y } _ { i } ) \} _ { i = 1 } ^ { n }$ , classification model $h ( X )$ , hyperparameter $\lambda$ .
242
+ Output Group-specific threshold $\pmb { \theta } = ( \theta _ { 1 } , \theta _ { 0 } )$ .
243
+ Initialize $\pmb { \theta } \overset { - } { = } ( \bar { \theta _ { 1 } } , \theta _ { 0 } ) = ( 0 , 0 )$ .
244
+ 1. Given a classifier $H ( x )$ , estimate probability density function $f _ { y a } , y , a \in \{ 0 , 1 \}$ by maximum
245
+ likelihood estimation.
246
+ while not converge do 2. Calculate the optimal step $\Delta _ { 1 }$ as $\begin{array} { r } { \Delta _ { 1 } = - \frac { \alpha _ { 1 } \eta _ { 1 } + \lambda \beta _ { 1 } \epsilon _ { 1 } } { \alpha _ { 1 } ^ { 2 } + \lambda \beta _ { 1 } ^ { 2 } } } \end{array}$ , with $\alpha _ { 1 } , \beta _ { 1 } , \eta _ { 1 } , \epsilon _ { 1 }$ values shown in (9); 3. Update the threshold: $\theta _ { 1 } \gets \theta _ { 1 } + \Delta _ { 1 }$ ; 4. Calculate the optimal step $\Delta _ { 0 }$ as $\begin{array} { r } { \Delta _ { 0 } = - \frac { \alpha _ { 0 } \eta _ { 0 } + \lambda \beta _ { 0 } \epsilon _ { 0 } } { \alpha _ { 0 } ^ { 2 } + \lambda \beta _ { 0 } ^ { 2 } } } \end{array}$ − α0η0+λβ00α2+λβ2 with α0, β0, η0, 0 values calculated in a similar way as in (9): 5. Update the threshold: $\theta _ { 0 } \theta _ { 0 } + \Delta _ { 0 }$ .
247
+ end while
248
+
249
+ 183 The second step is to fix $\theta _ { 1 }$ and update $\theta _ { 0 }$ , and this can be achieved in a similar way of updating $\theta _ { 1 }$
250
+ 184 Then we can finalize the alternating optimization as:
251
+
252
+ $$
253
+ \begin{array} { r } { \theta _ { 0 } ^ { \tau } = \theta _ { 0 } ^ { \tau - 1 } + \Delta _ { 0 } ^ { \tau } , } \\ { \theta _ { 1 } ^ { \tau } = \theta _ { 1 } ^ { \tau - 1 } + \Delta _ { 1 } ^ { \tau } . } \end{array}
254
+ $$
255
+
256
+ 185 It is notable that in each iteration we derive the optimal update step $\theta$ , which eliminates the burden
257
+ 186 of tuning hyperparameter (such as learning rate) in iterative algorithm. The optimization step is
258
+ 187 summarized in Algorithm 1. The above algorithm can easily extend to multiple fairness constraints
259
+ 188 by adding corresponding squared-loss fairness terms to (2).
260
+ 189 Time Complexity: The alternating optimization of GSTAR model is of low computational cost. We
261
+ 190 take at most one pass of the data for learning the estimated probability density functions $f _ { y a }$ in (1)
262
+ 191 (we do not even need to traverse the data if the parameters (such mean and variance in Gaussian
263
+ 192 distribution) for the estimated probability density functions $f _ { y a }$ can be provided). The optimization
264
+ 193 of $\pmb \theta$ with alternating optimization is efficient since we only need $f _ { y a }$ as we have seen in (9) and (10).
265
+ 194 $\pmb \theta \in \mathbb { R } ^ { 2 }$ is a vector with fixed small size. Therefore, we need a constant time for each update. Overall,
266
+ 195 the time complexity of GSTAR is $O ( n + T )$ , where $n$ is the number of samples, and $T$ is the number
267
+ 196 of iterations in alternating optimization.
268
+ 197 We further derive the theoretical analysis of our GSTAR model on the balance between fairness
269
+ 198 and accuracy, which indicates that the optimal solution provides guarantees on model accuracy
270
+ 199 under the optimal fairness constraint. Details of the theoretical analysis is in the Supplementary
271
+ 200 material. Besides, if a unified threshold is necessary [3], i.e., $\theta _ { 1 } = \theta _ { 0 }$ , the optimization algorithm
272
+ 201 also applies and we only have one scalar variable in (2). When we have a unified threshold, we do not
273
+ 202 require sensitive information in the testing phase that we can conform more strict privacy regulations
274
+ 203 than group-aware thresholding. However, we have to sacrifice both fairness and accuracy as the
275
+ 204 thresholding is less flexible.
276
+
277
+ # 205 4 Experiments
278
+
279
+ In this section, we validate GSTAR model on four well-known fairness datasets and compare with other state-of-the-art methods. First, we plot Pareto frontiers of ours and FACT (MS) [10] to demonstrate the trade-offs between fairness and accuracy. Second, we evaluate the models with different fairness metrics and validate that our model is highly adaptive to any fairness metrics that are expressible with confusion matrix [7, 11, 2, 1]. Third, we use our model as a post-processing method to existing fair models and show that our model further improves existing fair models in an efficient and model-agnostic manner.
280
+
281
+ # 13 4.1 Experimental Setup
282
+
283
+ 214 We compare with multiple fairness approaches in the experiments. For clear demonstration of results,
284
+ 215 we use different shapes of marker for each comparing methods in Figure 2 and Figure 4. The compar
285
+ 216 ing methods include: Learning fair representations for kernel models (abbreviated as FGP) [23],
286
+
287
+ ![](images/565230b45ca3cf80fd5db341650e28a43250d364180ae4817bf68db498033a38.jpg)
288
+ Figure 2: Model-specific Pareto frontiers of equalized odds to show the upper bound of best achievable accuracy under different fairness constraints. Upper right region under the boundary shows better fairness and higher accuracy. We plot three variations of GSTAR (star-shaped) with different fairness objectives. GSTAR is the closest to the Pareto frontier which indicates the best trade-offs.
289
+
290
+ Fairness confusion tensor (abbreviated as FACT) [10], Disparate impact remover (abbreviated as DIR) [6], Adversarial de-biasing (abbreviated as AdvDeb) [24], Calibrated equalized odds post-processing (abbreviated as CEOPost) [20], Equality of opportunity in supervised learning (abbreviated as Odds) [7], Learning adversarially fair and transferable representations (abbreviated as LAFTR) [17], and Baseline: For CelebA dataset, we use ResNet50 [8] as a reference, and logistic regression for all other datasets. Our method is optimized with $\lambda$ in the range of $[ 1 0 ^ { - 1 } , 1 0 ^ { 4 } ]$ with alternating optimization method. All experiments are implemented with Pytorch framework on i9-9960X CPU and a Quadro RTX 6000 GPU.
291
+
292
+ We choose broadly used fairness metrics in evaluation including: equal opportunity difference and equalized odds difference (abbreviated as EOp, and EOd respectively) [7] ; 1-disparate impact (abbreviated as 1-DIMP) [1]; balanced accuracy difference (abbreviated as BD).
293
+
294
+ 228 We evaluate the methods on four fairness datasets: CelebA image dataset1 [15], Adult dataset from
295
+ 229 the UCI repository [12], COMPAS2 (Correctional Offender Management Profiling for Alternative
296
+ 230 Sanctions) dataset, and German credit dataset from the UCI repository [5]. All data is split as $70 \%$
297
+ 231 for training and $30 \%$ for testing. More details of the comparing methods, evaluation metrics, and
298
+ 232 datasets are provided in the Supplementary material.
299
+
300
+ # 4.2 Performance and Fairness-Accuracy Trade-Offs
301
+
302
+ In this subsection, we look into the performance evaluation of GSTAR comparing with other state-ofthe-art methods. We consider Pareto frontier to visualize the trade-offs between fairness and accuracy to demonstrate the measure of performance.
303
+
304
+ In Figure 2, we plot Pareto frontier, which is the upper bound for the accuracy-fairness trade-offs, desired output locates at the upper right region under the boundary which corresponds to higher values in accuracy and lower values in fairness discrepancy. With the same fairness constraints are given, we achieve a better frontier than the FACT [10] as we equally weigh on demographic statistics and have a better feasible region. To obtain our results (star points), we first estimate the logit distribution from the output of the baseline model, and then we get optimal adaptive thresholds with corresponding fairness metric by updating w.r.t. the objective function in (2). Here we have three combinations of fairness imposed to GSTAR: demographic parity (DP), equalized odds (EOd), and
305
+
306
+ ![](images/faeeab7cd7f97f0e628ac573c27aaab1a4f960e543cb8745e20f0bab62add685.jpg)
307
+ Figure 3: Quantitative evaluation on fairness and performance metrics. The bar plots indicate fairness measures (EOp, EOd, BD, 1-DISP) of each model. Lower fairness values in the left y-axis shows better fairness. The line plots indicate the performance measure (balanced accuracy (BA) and accuracy (ACC) of each model. Higher performance values in the right y-axis shows better classifcation performance. We consider three variations of GSTAR models (DP, EOd, DP+EOd).
308
+
309
+ 245 with both constraints $\mathrm { ( D P { + } E O d ) }$ . By post-processing on a simple baseline, we achieved significantly
310
+ 246 better fairness with small or no sacrifice in accuracy. In all datasets, GSATR got competitive or better
311
+ 247 results than other state-of-the-art methods on both fairness and accuracy.
312
+ 248 For example, we got $\pmb { \theta } _ { E O d } ^ { * } = ( 0 . 6 4 0 , - 0 . 6 2 7 ) ^ { \top }$ for the CelebA dataset. This shows that we have
313
+ 249 a higher threshold for the privileged group and a lower threshold for the unprivileged group. This
314
+ 250 optimal thresholding from GSTAR allows more samples from the privileged group to be correctly
315
+ 251 predicted as unattractive that would compensate for the discrimination of the original model. In other
316
+ 252 words, this improves predictive equality [2] with a huge amount from 0.235 to 0.014. Also, true
317
+ 253 positive rate difference (also known as equality of opportunity [7]) got reduced from 0.282 to 0.018.
318
+ 254 It is notable that GSTAR only sacrificed $2 . 2 \%$ of accuracy to bring the big improvement in fairness.
319
+ 255 Since the objective function of our model is independent to data dimensionality, our model is much
320
+ 256 more efficient especially for high dimensional data. We mostly outperform the computational cost
321
+ 257 comparing to the other methods. The comparison of computational time on the datasets can be found
322
+ 258 in the Supplementary material.
323
+
324
+ # 259 4.3 Flexibility and Multiple Fairness Constraints
325
+
326
+ Since each fairness metric has different interests, it has been theoretically proven that they cannot be perfectly satisfied all together [20, 2, 11]. Because of this inherent trade-offs between fairness metrics, most of the recent works focus on a single metric at a time to achieve fairness. However with GSTAR, we have the flexibility to optimize on multiple fairness constraints that can be represented in the confusion matrix format. Moreover, given the estimated distribution $f _ { y a }$ of a black-box classification model, we can adjust the optimal $\pmb \theta$ based on the needs by accommodating different fairness criteria.
327
+
328
+ Figure 3 demonstrates the result of the methods with fairness metrics and accuracy trade-off evaluations. Overall, the variations of GSTAR achieve the best fairness on each target fairness while preserving the performance. For example in Figure 3(a), GSTAR with EOd constraint has outstanding performance in most fairness metrics with comparable accuracy $( 8 0 . 3 \% )$ . Comparing with GSTAR (EOd), when we introduce EOd and DP together $( \mathrm { D P + E O d } )$ ), we achieve significantly better w.r.t. DP fairness with sacrificing a small amount of accuracy and EOd.
329
+
330
+ ![](images/99aaf30eada38a91a493c559194b114c06bbd339971f8a93609ffe3ec07e1b85.jpg)
331
+ Figure 4: Illustration of post-processing (magenta colored points) on existing fairness models (blue colored points). Given the outputs of each model, we efficiently improve existing fairness models with optimized group-aware thresholds from GSTAR.
332
+
333
+ 272 In general, by sacrificing individual fairness performance, we could introduce multiple constraints.
334
+ 273 Also, we implicitly observe that the more fairness constraints are introduced, the more accuracy is
335
+ 274 sacrificed. We empirically found that in some cases (e.g. Figure 3(c)), introducing multiple fairness
336
+ 275 is complementary to each other that improves both conditions.
337
+
338
+ # 276 4.4 Post-Processing on an Existing Fair Model
339
+
340
+ For a binary classifier that has a single fixed classification threshold (0 for out logit, and 0.5 for label probability), we can improve the trade-off between fairness and accuracy via GSTAR postprocessing. Given the logit/probability of the dataset from a black-box model, we can improve the fairness as illustrated in Figure 4. In most cases, we observe improvement in fairness after GSTAR post-processing. It is also interesting to note that by optimizing the different thresholds for each protected group, we even obtain better performance on both fairness and accuracy, which indicates that the threshold optimization can not only improve fairness but also accuracy.
341
+
342
+ 284 However, when the distribution of the logits/probability is highly extreme (such as the results of using
343
+ 285 GSTAR to post-process CEOPost), it is difficult to estimate the distribution and thus causes erroneous
344
+ 286 optimization in GSTAR. We empirically found that when the dataset is extremely imbalanced such
345
+ 287 that we do not have enough samples to estimate the logit/probability distribution, or black-box model
346
+ 288 is too certain to the prediction that samples are concentrated to certain output, this problem arises.
347
+
348
+ # 289 5 Conclusion and Discussion
349
+
350
+ In this paper, we propose a group-aware threshold adaptation method (GSTAR) to post-process a blackbox model and optimize over multiple fairness constraints.We directly optimize the classification threshold for each demographic group w.r.t. the classification error and multiple fairness constraints in a unified objective function, such that we can practically achieve an optimal trade-off between accuracy and fairness in fair classification. Our method is applicable to diverse notions of group fairness as the majority of fairness notions can be expressed as a linear or quadratic equation through confusion matrix. We empirically show that GSTAR is flexible with fairness regularization, efficient with low computational cost. We also notice that the adaptive thresholds benefit accuracy in some cases. GSTAR agrees to protect privacy such as article 17 of EU’s GDPR [21] with model-agnostic post-processing. We only require the estimated distribution of the output from a black-box model i.e., our post-processing method is oblivious to features. Thus training data is no longer needed and allowed to be discarded after training the black-box model.
351
+
352
+ Further, we empirically find that GSTAR is not applicable to post-process some classification models
353
+ 303 in the following situations: 1) the model does not provide logit/probability as the outcome; 2) The
354
+ 304 model provides an extreme distribution of the output logit/probability. For example, when the model
355
+ 305 is too certain about its prediction, it will be difficult to perform probability density estimation. In our
356
+ 306 future work, we will study possible strategies to solve the above limitations, and extend GSTAR to
357
+ 307 multi-class, multi-sensitive group problems and improve the fairness-accuracy trade-off in a more
358
+ 308 general scheme.
359
+
360
+ References
361
+ [1] Solon Barocas and Andrew D Selbst. Big data’s disparate impact. Calif. L. Rev., 104:671, 2016.
362
+ [2] Alexandra Chouldechova. Fair prediction with disparate impact: A study of bias in recidivism prediction instruments. Big data, 5(2):153–163, 2017.
363
+ [3] Sam Corbett-Davies, Emma Pierson, Avi Feller, Sharad Goel, and Aziz Huq. Algorithmic decision making and the cost of fairness. In KDD, pages 797–806, 2017.
364
+ [4] Julia Dressel and Hany Farid. The accuracy, fairness, and limits of predicting recidivism. Sci. Adv, 4(1):eaao5580, 2018.
365
+ [5] Dheeru Dua and Casey Graff. UCI machine learning repository, 2019.
366
+ [6] Michael Feldman, Sorelle A Friedler, John Moeller, Carlos Scheidegger, and Suresh Venkatasubramanian. Certifying and removing disparate impact. In KDD, pages 259–268, 2015.
367
+ [7] Moritz Hardt, Eric Price, and Nati Srebro. Equality of opportunity in supervised learning. In NeurIPS, pages 3315–3323, 2016.
368
+ [8] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770–778, 2016.
369
+ [9] Faisal Kamiran, Asim Karim, and Xiangliang Zhang. Decision theory for discrimination-aware classification. In ICDM, pages 924–929. IEEE, 2012.
370
+ [10] Joon Sik Kim, Jiahao Chen, and Ameet Talwalkar. Model-agnostic characterization of fairness trade-offs. arXiv preprint arXiv:2004.03424, 2020.
371
+ [11] Jon Kleinberg, Sendhil Mullainathan, and Manish Raghavan. Inherent trade-offs in the fair determination of risk scores. arXiv preprint arXiv:1609.05807, 2016.
372
+ [12] Ron Kohavi. Scaling up the accuracy of naive-bayes classifiers: A decision-tree hybrid. In KDD, volume 96, pages 202–207, 1996.
373
+ [13] Lydia T Liu, Sarah Dean, Esther Rolf, Max Simchowitz, and Moritz Hardt. Delayed impact of fair machine learning. arXiv preprint arXiv:1803.04383, 2018.
374
+ [14] Lydia T Liu, Max Simchowitz, and Moritz Hardt. The implicit fairness criterion of unconstrained learning. In ICML, pages 4051–4060, 2019.
375
+ [15] Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In ICCV, pages 3730–3738, 2015.
376
+ [16] Vishnu Suresh Lokhande, Aditya Kumar Akash, Sathya N Ravi, and Vikas Singh. Fairalm: Augmented lagrangian method for training fair models with little regret. In ECCV, pages 365–381. Springer, 2020.
377
+ [17] David Madras, Elliot Creager, Toniann Pitassi, and Richard Zemel. Learning adversarially fair and transferable representations. arXiv preprint arXiv:1802.06309, 2018.
378
+ [18] Aditya Krishna Menon and Robert C Williamson. The cost of fairness in binary classification. In ACM FAccT, pages 107–118, 2018.
379
+ [19] Dino Pedreshi, Salvatore Ruggieri, and Franco Turini. Discrimination-aware data mining. In KDD, pages 560–568, 2008.
380
+ [20] Geoff Pleiss, Manish Raghavan, Felix Wu, Jon Kleinberg, and Kilian Q Weinberger. On fairness and calibration. In NeurIPS, pages 5680–5689, 2017.
381
+ [21] General Data Protection Regulation. Regulation eu 2016/679 of the european parliament and of the council of 27 april 2016. Official Journal of the European Union. Available at: http://ec. europa. eu/justice/data-protection/reform/files/regulation_oj_en. pdf (accessed 20 September 2017), 2016.
382
+ [22] Hee Jung Ryu, Hartwig Adam, and Margaret Mitchell. Inclusivefacenet: Improving face attribute detection with race and gender diversity. arXiv preprint arXiv:1712.00193, 2017.
383
+ [23] Zilong Tan, Samuel Yeom, Matt Fredrikson, and Ameet Talwalkar. Learning fair representations for kernel models. In AISTATS, pages 155–166, 2020.
384
+ [24] Brian Hu Zhang, Blake Lemoine, and Margaret Mitchell. Mitigating unwanted biases with adversarial learning. In AIES, pages 335–340, 2018.
385
+ [25] Han Zhao and Geoff Gordon. Inherent tradeoffs in learning fair representations. In NeurIPS, pages 15675–15685, 2019.
386
+
387
+ # Checklist
388
+
389
+ 1. For all authors...
390
+
391
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
392
+ (b) Did you describe the limitations of your work? [Yes] See Section 5.
393
+ (c) Did you discuss any potential negative societal impacts of your work? [Yes] See Section 5.
394
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
395
+
396
+ 2. If you are including theoretical results...
397
+
398
+ (a) Did you state the full set of assumptions of all theoretical results? [Yes] See Section 1 in the Supplementary material.
399
+ (b) Did you include complete proofs of all theoretical results? [Yes] See Section 1 in the Supplementary material.
400
+
401
+ 3. If you ran experiments...
402
+
403
+ (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] We will provide the code and instructions at request. The data used in the experiments are public available. See Section 2.3 in the Supplementary material.
404
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 4.1.
405
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Section 4.3.
406
+ (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] See Section 4.1.
407
+
408
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
409
+
410
+ (a) If your work uses existing assets, did you cite the creators? [N/A]
411
+ (b) Did you mention the license of the assets? [N/A]
412
+ (c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
413
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
414
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
415
+
416
+ 5. If you used crowdsourcing or conducted research with human subjects...
417
+
418
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
419
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
420
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/train/Pg13X3rETW/Pg13X3rETW_content_list.json ADDED
@@ -0,0 +1,1134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Group-Aware Threshold Adaptation for Fair Classification ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 256,
8
+ 122,
9
+ 741,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
17
+ "bbox": [
18
+ 423,
19
+ 222,
20
+ 578,
21
+ 276
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 313,
32
+ 535,
33
+ 329
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "1 The fairness in machine learning is getting increasing attention, as its applications \n2 in different fields continue to expand and diversify. To mitigate the discriminated \n3 model behaviors between different demographic groups, we introduce a novel post \n4 processing method to optimize over multiple fairness constraints through group \n5 aware threshold adaptation. We propose to learn adaptive classification thresholds \n6 for each demographic group by optimizing the confusion matrix estimated from \n7 the probability distribution of a classification model output. As we only need \n8 an estimated probability distribution of model output instead of the classification \n9 model structure, our post-processing model can be applied to a wide range of \n10 classification models and improve fairness in a model-agnostic manner to ensure \n11 privacy. This even allows us to post-process existing fairness methods to further \n12 improve the trade-off between accuracy and fairness. Moreover, our model is \n13 efficient with low computational cost by alternating optimization and flexible with \n14 the optimization over multiple fairness constraints. We provide Pareto frontier to \n15 characterize fairness-accuracy trade-off. Also, we provide a theoretical analysis \n16 of the optimal thresholds obtained from our model in terms of both accuracy \n17 and fairness in classification. Experimental results demonstrate that our method \n18 outperforms state-of-the-art methods and obtains the result that is closest to the \n19 theoretical accuracy-fairness trade-off boundary. ",
40
+ "bbox": [
41
+ 148,
42
+ 344,
43
+ 766,
44
+ 608
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "20 1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 148,
54
+ 633,
55
+ 312,
56
+ 651
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "21 Machine learning is broadening its impact in various fields including autonomous driving, credit \n22 analysis, and job application screening. As a consequence, the role and importance of fairness in \n23 machine learning are emerging. However, recent models have been found to behave differently \n24 between demographic groups in favorable predictions. For example, it has been discovered that \n25 COMPAS, the criminal risk assessment software currently used to help pretrial release decisions, \n26 has biases between different races [4]. Specifically, blacks got higher risk scores predicted from the \n27 model than whites with similar profiles. Therefore, discrimination truly exists and resolving it in \n28 machine learning is very important and urgent because its direct and potential impact is growing \n29 tremendously. \n30 However, obtaining fairness is not a trivial problem, because the data set itself will be biased when it \n31 is accumulated artificially. Simply removing or manipulating sensitive features (such as race, gender) \n32 from the data does not solve the bias, because there is indirect discrimination [19] or disparate \n33 treatment [1] due to the feature redundancy and relevance, which means sensitive information can be \n34 inferred from other features. \n35 In order to alleviate discrimination from different perspectives, various quantitative measurements \n36 of group equity [7, 11, 2, 13] have been proposed. It has been proven that the pursuit of fairness is \n37 subject to a trade-off between fairness and accuracy [14, 10], i.e., if we want to improve fairness, we \n38 need to sacrifice accuracy. \n39 Moreover, Pleiss et al. [20] studied the trade-offs between fairness notions that cannot be satisfied \n40 at the same time. Therefore, recent works usually target at a certain fairness notion in different \n41 approaches such as pre-processing [6], in-processing [24], and post-processing [7] methods. However, \n42 these approaches suffer from the lack of flexibility, since it is difficult to adapt a fair model that \n43 is trained w.r.t. one certain fairness criterion so as to optimize over other fairness measures. If \n44 the fairness constraints change under some circumstances, traditional fairness models need to be \n45 re-trained from scratch, which is computationally demanding and sometimes inapplicable due to \n46 model settings. To overcome the limitations above, we propose a novel post-processing method to \n47 improve fairness in a model-agnostic manner. Our GSTAR (Group Specific Threshold Adaptation \n48 for faiR classification) model learns adaptive classification thresholds for each demographic group \n49 in classification task for improving the trade-off between fairness and accuracy. Given an existing \n50 classification model, GSTAR approximates the probability distribution of the model output via \n51 maximum likelihood estimation and utilizes confusion matrix to quantify accuracy and fairness w.r.t. \n52 the group-aware classification thresholds. This allows us to: 1) prevent from burdening additional \n53 complexity or deteriorate the stability of the training process of the classifier; 2) integrate different \n54 fairness notions into one unified objective function; 3) easily adapt one pre-trained model to other \n55 fairness constraints. We summarize our contributions of this paper as follows: ",
63
+ "bbox": [
64
+ 147,
65
+ 665,
66
+ 825,
67
+ 790
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "",
74
+ "bbox": [
75
+ 147,
76
+ 796,
77
+ 825,
78
+ 866
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 150,
87
+ 872,
88
+ 826,
89
+ 900
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 153,
98
+ 92,
99
+ 825,
100
+ 119
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 145,
109
+ 126,
110
+ 825,
111
+ 361
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "1. We propose a novel post-processing method, GSTAR, which can learn group-aware thresholds to optimize the trade-off between fairness and accuracy in classification. We derive rigorous theoretical analysis on the trade-off in our model, and empirically show that GSTAR outperforms state-of-the-art methods. \n2. With GSTAR, we can simultaneously optimize over multiple fairness constraints with a low computational cost. GSTAR does not require multiple iterations over data, instead, it takes at most one pass of data in training for fast computation. \n3. GSTAR can be adapted to a wide range of classification models in a model-agnostic manner and can adapt an existing classification model from one fairness criterion to another without re-training the classifier. \n4. We derive Pareto frontiers of our model for the fairness-accuracy trade-offs that contextualize the quality of fair classification. ",
118
+ "bbox": [
119
+ 207,
120
+ 372,
121
+ 825,
122
+ 560
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "68 2 Related Works ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 148,
132
+ 580,
133
+ 330,
134
+ 598
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "69 In order to achieve group fairness, which quantifies the discrimination among different sensitive \n70 groups, a diverse notion of fairness has been introduced. Equalized odds [7] enforce equality of true \n71 positive rates and false positive rates between different demographic groups. Pleiss et al. [20] relaxed \n72 equalized odds to satisfy the calibration. Demographic parity or disparate impact [1] suggests that a \n73 model is unbiased if the model prediction is independent of the protected attribute. \n74 Among different fairness methods, post-processing techniques propose to improve fairness by mod \n75 ifying the output of a black-box classifier. Hardt et al. [7] propose to ensure equalized odds by \n76 constraining the model output. Kamiran et al. [9] propose to give a favorable outcome to unprivileged \n77 and an unfavorable outcome to the privileged group when the confidence of the prediction is beyond a \n78 certain range. However, such static confidence window keeps the same regardless of the demographic \n79 group and is determined by grid search, so it is less efficient. \n80 Threshold adjustment (a.k.a. thresholding) was introduced to improve the performance of static \n81 thresholds. In the literature, Menon et al. [18] prove that instance-dependent thresholding of the \n82 predictive probability function is the optimal classifier in cost-sensitive fairness measures. Also, \n83 when considering immediate utility, Corbett-Davies et al. [3] show that optimal algorithm is achieved \n84 from group-specific threshold which is determined by group statistics. However, to the best of our \n85 knowledge, the threshold adjustment approach has not been deeply studied that neither encompasses \n86 broad group fairness metrics nor describes an explicit method to achieve the threshold. \n87 Trade-off between fairness and accuracy exists when we impose fairness constraint to a model. Recent \n88 studies [2, 25] prove that models targeting at such fairness notions conform to an information theoretic \n89 lower bound on the joint error across different sensitive groups. Therefore, our work presents a \n90 practical upper bound of the best achievable accuracy given the fairness constraints. \n91 Moreover, trade-offs between different fairness notions also exist if one has to consider multiple \n92 fairness criteria. Some of them are theoretically proven to be incompatible [6, 18, 14]. To express \n93 and formulate fairness, recent work [10] utilize confusion matrix and propose least-square accuracy \n94 fairness optimization problem on multiple fairness notions, and categorize the trade-offs between the \n95 fairness notions. \n96 Here, our work is the most related to the post-processing methods [7, 10]. Hardt et al. [7] propose \n97 a post-processing method that utilizes the mixing rate to meet the equalized odds. Ours is similar \n98 to Hardt et al. [7] in the manner that achieving group-wise threshold from the feasible region that \n99 is geometrically generated by the intersection between the receiver operating characteristic (ROC) \n100 curves conditioned on sensitive feature. Ours differ from [7] by generalizing the concept beyond \n101 equalized odds to other multiple fairness constraints into consideration. FACT [10] utilizes a single \n102 point (static) from the classifier to be post-processed as a reference which does not fully utilize the \n103 classifier for the post-processing. In contrast, by approximating the distribution of the continuous \n104 predicted logits, our GSTAR model enables a larger feasible region than [10] with a better fairness \n105 accuracy trade-off. We validate the improvement in trade-off via both theoretical and empical results. \n106 It is notable that these related methods [7, 10] can be considered as a special case of GSTAR. ",
141
+ "bbox": [
142
+ 147,
143
+ 614,
144
+ 825,
145
+ 684
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "",
152
+ "bbox": [
153
+ 147,
154
+ 690,
155
+ 825,
156
+ 773
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "",
163
+ "bbox": [
164
+ 147,
165
+ 780,
166
+ 825,
167
+ 877
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "",
174
+ "bbox": [
175
+ 147,
176
+ 883,
177
+ 823,
178
+ 911
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "",
185
+ "bbox": [
186
+ 151,
187
+ 92,
188
+ 823,
189
+ 119
190
+ ],
191
+ "page_idx": 2
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "",
196
+ "bbox": [
197
+ 147,
198
+ 126,
199
+ 825,
200
+ 194
201
+ ],
202
+ "page_idx": 2
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "",
207
+ "bbox": [
208
+ 142,
209
+ 202,
210
+ 826,
211
+ 353
212
+ ],
213
+ "page_idx": 2
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "7 3 GSTAR for Fair Classification ",
218
+ "text_level": 1,
219
+ "bbox": [
220
+ 156,
221
+ 367,
222
+ 457,
223
+ 385
224
+ ],
225
+ "page_idx": 2
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "3.1 Motivation ",
230
+ "text_level": 1,
231
+ "bbox": [
232
+ 174,
233
+ 397,
234
+ 290,
235
+ 412
236
+ ],
237
+ "page_idx": 2
238
+ },
239
+ {
240
+ "type": "text",
241
+ "text": "Consider a binary classification problem with a binary sensitive feature, such that the sensitive feature $A \\in \\{ 0 , 1 \\}$ and label $Y \\in \\{ 0 , 1 \\}$ . In general, for a given data $X$ , a binary classification model outputs an unnormalized logit $h ( { \\bar { X } } ) \\in \\mathbb { R }$ with the class label probability $p ( \\dot { X } ) = \\sigma ( h ( X ) ) \\in [ 0 , 1 ]$ , where $\\sigma$ is an activation function (sigmoid function in logistic regression and neural network). It is not necessary to calculate $p$ in a classification model, e.g. support vector machines directly use the positiveness/negativeness of logit $h ( X )$ to determine classification outcome. For traditional models, we use a cut-off threshold $\\theta _ { h } = 0$ for $h ( X )$ (i.e., $\\theta _ { p } = \\sigma ( 0 ) = 0 . 5$ for $p ( X ) \\}$ ) in classification, such that the predicted label is determined by $\\hat { Y } = \\mathbb { I } \\{ h ( X ) \\geq \\theta _ { h } \\}$ . In the following context, unless otherwise mentioned, we use $\\theta$ to refer to the threshold $\\theta _ { h }$ on logit $h$ since it is applicable to a wider range of classification models, and the corresponding threshold on label probability $\\theta _ { p }$ can be easily inferred from the threshold on logit $h$ . Traditional models use the same cut-off threshold $\\theta$ for different demographic groups. However, since the distribution of logits $h$ in different demographic groups can be different, using the same threshold $\\theta$ brings biased classification. ",
242
+ "bbox": [
243
+ 169,
244
+ 424,
245
+ 825,
246
+ 606
247
+ ],
248
+ "page_idx": 2
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "122 In Figure 1, we show a real-world example of image classification on CelebA dataset with \n123 ResNet50 [8] to show that the default setting of classification thresholds affects both accuracy \n124 and fairness in classification. The goal of this classification example is to predict the image of a \n125 person is whether attractive or not, and consider sensitive attribute as gender. This can be generalized \n126 to different sensitive attributes such as age or race [22, 16]. We can observe an obvious difference in \n127 the distribution of logit $h$ between two gender groups. In this case, if we use a unified classification \n128 threshold $\\theta _ { 1 } = \\theta _ { 0 } = 0$ , it naturally brings a difference in the true positive rate and true negative \n129 rate between two gender groups, thus renders bias in classification. Instead, we observe that the \n130 optimal group-specific threshold obtained from GSTAR $( \\theta _ { 1 } ^ { * } > \\theta _ { 1 }$ , and ${ \\theta } _ { 0 } ^ { * } < { \\theta } _ { 0 }$ ) can adapt to such \n131 discrepancy in distribution between two demographic groups to improve both fairness and accuracy. ",
253
+ "bbox": [
254
+ 140,
255
+ 612,
256
+ 825,
257
+ 751
258
+ ],
259
+ "page_idx": 2
260
+ },
261
+ {
262
+ "type": "text",
263
+ "text": "3.2 Group-Aware Classification Thresholds ",
264
+ "text_level": 1,
265
+ "bbox": [
266
+ 161,
267
+ 766,
268
+ 488,
269
+ 781
270
+ ],
271
+ "page_idx": 2
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "133 Given an existing classification model and a sensitive attribute $a$ , we can denote true positive rate \n134 $( \\mathrm { T P } _ { a } )$ , false positive rate $( \\mathrm { F P } _ { a } )$ , true negative rate $( \\mathrm { T N } _ { a } )$ , and false negative rate $( \\mathrm { F N } _ { a } )$ in the confusion \n135 matrix. Most fairness notions can be represented with entries in the confusion matrix. For instance, \n136 Equal Opportunity (EOp) [7] requires $T P _ { 0 } = T P _ { 1 }$ , and Demographic Parity (DP) [1] requires ",
276
+ "bbox": [
277
+ 140,
278
+ 791,
279
+ 826,
280
+ 847
281
+ ],
282
+ "page_idx": 2
283
+ },
284
+ {
285
+ "type": "equation",
286
+ "img_path": "images/9d2e06e5a1667d915ac5b32b594027446d410ff7b13689eedf3c63ab292be269.jpg",
287
+ "text": "$$\n\\frac { T P _ { 1 } n _ { 1 1 } + F P _ { 1 } n _ { 0 1 } } { N _ { 1 } } = \\frac { T P _ { 0 } n _ { 1 0 } + F P _ { 0 } n _ { 0 0 } } { N _ { 0 } } ,\n$$",
288
+ "text_format": "latex",
289
+ "bbox": [
290
+ 352,
291
+ 848,
292
+ 642,
293
+ 880
294
+ ],
295
+ "page_idx": 2
296
+ },
297
+ {
298
+ "type": "text",
299
+ "text": "where 137 $n _ { y a }$ denotes the number of samples in the subset $\\{ Y = y , A = a \\}$ , $\\begin{array} { r } { N _ { a } = \\sum _ { y } n _ { y a } } \\end{array}$ denotes the number of samples in 138 $\\{ Y = y \\}$ , and $\\begin{array} { r } { N = \\sum _ { y , a } n _ { y a } } \\end{array}$ is the total number of samples. ",
300
+ "bbox": [
301
+ 143,
302
+ 881,
303
+ 821,
304
+ 914
305
+ ],
306
+ "page_idx": 2
307
+ },
308
+ {
309
+ "type": "image",
310
+ "img_path": "images/ae284a0093cee4b3affbd0d3bfb2f4a1f83a69b2bef20505d07b95f159ade15d.jpg",
311
+ "image_caption": [
312
+ "Figure 1: Histograms of logit $h$ distribution from logistic regression on CelebA data, where logit $h$ is used to determine the predicted label $\\hat { Y } = \\mathbb { I } \\{ h ( X ) \\geq \\theta \\}$ , and $\\theta$ is the classification threshold. The top plot is for positive samples $Y = 1$ , attractive), and the bottom plot for negative samples $( Y = 0$ , unattractive). In each plot, yellow/green bars represent the distribution of logit $h$ in different sensitive groups, and blue/red curves are estimated probability density functions of logit $h$ in different sensitive groups. $\\theta _ { 0 } = \\theta _ { 1 } = 0$ (black dashed line) are the default classification thresholds, that are identical for $A = 0$ and $A = 1$ groups. The default thresholds result in biased prediction towards the unprivileged group $A = 0$ due to the different logit $h$ distributions in different sensitive groups. $\\theta _ { 0 } ^ { * }$ (red dashed line), $\\theta _ { 1 } ^ { * }$ (blue dashed line) are group-aware thresholds from GSTAR for each sensitive group. "
313
+ ],
314
+ "image_footnote": [],
315
+ "bbox": [
316
+ 302,
317
+ 88,
318
+ 692,
319
+ 391
320
+ ],
321
+ "page_idx": 3
322
+ },
323
+ {
324
+ "type": "text",
325
+ "text": "139 Consider the group-aware classification threshold $\\pmb { \\theta } = ( \\theta _ { 1 } , \\theta _ { 0 } ) ^ { \\top }$ , where $\\theta _ { a }$ is the classification \n140 threshold for sensitive group $A = a$ . We can formulate the entries in the confusion matrix w.r.t. $\\pmb { \\theta }$ as \n141 below: ",
326
+ "bbox": [
327
+ 143,
328
+ 547,
329
+ 825,
330
+ 589
331
+ ],
332
+ "page_idx": 3
333
+ },
334
+ {
335
+ "type": "equation",
336
+ "img_path": "images/63c88392fcb6ed457d1fc73fec572e025f8666f03abb1d0fdec09182d9382b79.jpg",
337
+ "text": "$$\n\\begin{array} { r l } { \\mathrm { T P } _ { a } ( \\theta _ { a } ) \\approx 1 - \\displaystyle \\int _ { - \\infty } ^ { \\theta _ { a } } f _ { 1 a } ( x ) d x , } & { \\qquad \\mathrm { F N } _ { a } ( \\theta _ { a } ) \\approx \\displaystyle \\int _ { - \\infty } ^ { \\theta _ { a } } f _ { 1 a } ( x ) d x , } \\\\ { \\mathrm { F P } _ { a } ( \\theta _ { a } ) \\approx 1 - \\displaystyle \\int _ { - \\infty } ^ { \\theta _ { a } } f _ { 0 a } ( x ) d x , } & { \\qquad \\mathrm { T N } _ { a } ( \\theta _ { a } ) \\approx \\displaystyle \\int _ { - \\infty } ^ { \\theta _ { a } } f _ { 0 a } ( x ) d x , } \\end{array}\n$$",
338
+ "text_format": "latex",
339
+ "bbox": [
340
+ 259,
341
+ 590,
342
+ 702,
343
+ 666
344
+ ],
345
+ "page_idx": 3
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "142 where $f _ { y a } ( x )$ is an estimated parametric probability density function of the distribution of output \n143 logit $h$ in the subset $\\{ Y = y , { \\bar { A } } = a \\}$ . Here, we consider gamma, Student’s t, and normal distribution \n144 as the candidates for the estimated distribution, and select the one that has the maximum likelihood \n145 with the output distribution. Without loss of generality, this can be generalized with other parametric \n146 probability density function based on the needs or prior knowledge. \n147 Then, we formulate the fairness-constrained classification problem with the objective of minimizing \n148 classification error into a least-squared optimization problem. We denote our objective function \n149 as $\\mathcal { L } ( \\pmb { \\theta } )$ which consists of the performance loss $\\mathcal { L } _ { p e r } ( \\pmb { \\theta } )$ and fairness loss $\\mathcal { L } _ { f a i r } ( \\pmb { \\theta } )$ . $\\mathcal { L } _ { p e r } ( \\pmb { \\theta } )$ and \n150 $\\mathcal { L } _ { f a i r } ( \\pmb { \\theta } )$ measures the error in performance and fairness respectively that are represented with the \n151 entries of the confusion matrix. In other words, our goal is to minimize the objective function $\\mathcal { L } ( \\pmb { \\theta } )$ \n152 as below: ",
350
+ "bbox": [
351
+ 140,
352
+ 667,
353
+ 825,
354
+ 738
355
+ ],
356
+ "page_idx": 3
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "",
361
+ "bbox": [
362
+ 140,
363
+ 742,
364
+ 825,
365
+ 825
366
+ ],
367
+ "page_idx": 3
368
+ },
369
+ {
370
+ "type": "equation",
371
+ "img_path": "images/2f1033753cee4baf3942e206d7c702c7db4e344a58fa80343735da3a53fc95cc.jpg",
372
+ "text": "$$\n\\begin{array} { r } { \\mathcal { L } ( \\pmb { \\theta } ) = \\mathcal { L } _ { p e r } ( \\pmb { \\theta } ) + \\lambda \\mathcal { L } _ { f a i r } ( \\pmb { \\theta } ) , } \\end{array}\n$$",
373
+ "text_format": "latex",
374
+ "bbox": [
375
+ 379,
376
+ 828,
377
+ 584,
378
+ 845
379
+ ],
380
+ "page_idx": 3
381
+ },
382
+ {
383
+ "type": "text",
384
+ "text": "53 where $\\lambda$ is a hyperparameter that determines how much fairness is enforced in the optimization. ",
385
+ "bbox": [
386
+ 153,
387
+ 848,
388
+ 799,
389
+ 863
390
+ ],
391
+ "page_idx": 3
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "154 The performance error $\\mathcal { L } _ { p e r } ( \\pmb { \\theta } )$ can be written as ",
396
+ "bbox": [
397
+ 142,
398
+ 868,
399
+ 496,
400
+ 883
401
+ ],
402
+ "page_idx": 3
403
+ },
404
+ {
405
+ "type": "equation",
406
+ "img_path": "images/b758bda15f9c5e99ff8b81f4b72071d9886c8b057fc6f9e0c70ae3feefb23951.jpg",
407
+ "text": "$$\n\\mathcal { L } _ { p e r } ( \\pmb { \\theta } ) = \\Big ( \\frac { n _ { 0 1 } } { N } \\mathrm { F P } _ { 1 } ( \\theta _ { 1 } ) + \\frac { n _ { 1 1 } } { N } \\mathrm { F N } _ { 1 } ( \\theta _ { 1 } ) + \\frac { n _ { 0 0 } } { N } \\mathrm { F P } _ { 0 } ( \\theta _ { 0 } ) + \\frac { n _ { 1 0 } } { N } \\mathrm { F N } _ { 0 } ( \\theta _ { 0 } ) \\Big ) ^ { 2 } .\n$$",
408
+ "text_format": "latex",
409
+ "bbox": [
410
+ 232,
411
+ 886,
412
+ 733,
413
+ 916
414
+ ],
415
+ "page_idx": 3
416
+ },
417
+ {
418
+ "type": "text",
419
+ "text": "155 As for $\\mathcal { L } _ { f a i r } ( \\pmb { \\theta } )$ , it can be formulated to any fairness metrics that are expressible with confusion matrix. \n156 For instance, when we impose EOp $\\mathbf { \\Delta T P _ { 1 } = T P _ { 0 } }$ ) and predictive equality (PE) $\\mathbf { \\mathrm { F P _ { 1 } } } = \\mathbf { \\mathrm { F P _ { 0 } } }$ ) [2], we \n157 can get the corresponding $\\mathcal { L } _ { f a i r } ( \\pmb { \\theta } )$ by summing over the least squared form of each constraint. Also, \n158 satisfying EOp and PP is equivalent to satisfying Equalized Odds (EOd) [7], This can be formulated \n159 in our $\\mathscr { L } _ { f a i r }$ as ",
420
+ "bbox": [
421
+ 140,
422
+ 90,
423
+ 826,
424
+ 161
425
+ ],
426
+ "page_idx": 4
427
+ },
428
+ {
429
+ "type": "equation",
430
+ "img_path": "images/6f7e6dc800ffde28be6e56551165af9eb0c5a55a5064c3cbb0d96d79c996bdfe.jpg",
431
+ "text": "$$\n\\begin{array} { r l } & { \\mathcal { L } _ { f a i r } ^ { E O d } ( \\pmb { \\theta } ) = \\mathcal { L } _ { f a i r } ^ { E O p } ( \\pmb { \\theta } ) + \\mathcal { L } _ { f a i r } ^ { P P } ( \\pmb { \\theta } ) } \\\\ & { \\quad \\quad \\quad = \\left( T P _ { 1 } ( \\theta _ { 1 } ) - T P _ { 0 } ( \\theta _ { 0 } ) \\right) ^ { 2 } + \\left( F P _ { 1 } ( \\theta _ { 1 } ) - F P _ { 0 } ( \\theta _ { 0 } ) \\right) ^ { 2 } . } \\end{array}\n$$",
432
+ "text_format": "latex",
433
+ "bbox": [
434
+ 266,
435
+ 162,
436
+ 699,
437
+ 209
438
+ ],
439
+ "page_idx": 4
440
+ },
441
+ {
442
+ "type": "text",
443
+ "text": "Note that a lower 160 $\\mathcal { L } _ { f a i r }$ value indicates a fairer threshold. When $\\mathcal { L } _ { f a i r } ^ { E O D } ( \\pmb { \\theta } ) = 0$ , we can interpret as 161 the satisfies the perfect EOd fairness. ",
444
+ "bbox": [
445
+ 140,
446
+ 210,
447
+ 826,
448
+ 242
449
+ ],
450
+ "page_idx": 4
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "162 Similar to (4), we can enforce multiple fairness constraints by summing over the least squared of \n163 each metric with different weight constant $\\lambda$ to each fairness constraints if needed. \n164 Also, it is notable that compared to the recent paper [10] that enforces fairness through confusion \n165 tensor, our formulation of fairness in $\\mathcal { L } _ { f a i r } ( \\pmb { \\theta } )$ represents a direct notion of fairness metrics and \n166 improves the measures that allows us to achieve better performance and Pareto frontiers that is shown \n167 in Section 4.2 and Figure 2. For example, $A _ { \\mathrm { E O d } }$ in the paper is calculated as $M _ { 1 } \\mathrm { E O p } + M _ { 0 } \\mathrm { P E }$ , where \n168 $M _ { y } = n _ { y 0 } + n _ { y 1 }$ , such that EOd is a weighted sum of EOp and PE with weights being the number of \n169 samples in each class. In this expression, the imbalance between the two fairness criteria will grow as \n170 the degree of imbalance in the data increases. In contrast, our formulation expresses the constraints \n171 as the exact notion of each metric that is not biased by the statistics of the datset and we observe \n172 improved Pareto frontier as in Figure 2. \n173 We propose to optimize our threshold $\\pmb { \\theta }$ with alternating optimization method. Here we take EOp \n174 constraint as an example to show the alternating optimization steps, then $\\mathcal { L } _ { f a i r } ( \\pmb { \\theta } )$ can be written as ",
455
+ "bbox": [
456
+ 148,
457
+ 247,
458
+ 825,
459
+ 276
460
+ ],
461
+ "page_idx": 4
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "",
466
+ "bbox": [
467
+ 140,
468
+ 281,
469
+ 825,
470
+ 407
471
+ ],
472
+ "page_idx": 4
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "",
477
+ "bbox": [
478
+ 143,
479
+ 412,
480
+ 825,
481
+ 441
482
+ ],
483
+ "page_idx": 4
484
+ },
485
+ {
486
+ "type": "equation",
487
+ "img_path": "images/f46b40fd063760e7db5c9c4738ec8ce4f140e9040a080a1cd5f3adff3160e935.jpg",
488
+ "text": "$$\n\\begin{array} { r } { \\mathcal { L } _ { f a i r } ^ { E O p } ( \\pmb { \\theta } ) = \\left( \\mathrm { T P } _ { 1 } ( \\theta _ { 1 } ) - \\mathrm { T P } _ { 0 } ( \\theta _ { 0 } ) \\right) ^ { 2 } . } \\end{array}\n$$",
489
+ "text_format": "latex",
490
+ "bbox": [
491
+ 361,
492
+ 444,
493
+ 604,
494
+ 467
495
+ ],
496
+ "page_idx": 4
497
+ },
498
+ {
499
+ "type": "text",
500
+ "text": "175 The first step is to fix $\\theta _ { 0 }$ and update $\\theta _ { 1 }$ . We can approximate the terms that are related to $\\theta _ { 1 }$ (e.g., \n176 $\\mathrm { T P _ { 1 } , F P _ { 1 } , T N _ { 1 } , F N _ { 1 } ) }$ in (1) with first-order Taylor expansion at $\\theta _ { 1 } ^ { \\tau - 1 }$ . For example, ",
501
+ "bbox": [
502
+ 142,
503
+ 474,
504
+ 828,
505
+ 506
506
+ ],
507
+ "page_idx": 4
508
+ },
509
+ {
510
+ "type": "equation",
511
+ "img_path": "images/a345d3575109cded0de559a2760b42bc61442e2df2e114e97c93190be0962e26.jpg",
512
+ "text": "$$\n\\mathrm { T P _ { 1 } } ( \\theta _ { 1 } ) \\approx \\mathrm { T P _ { 1 } } ( \\theta _ { 1 } ^ { \\tau - 1 } ) + \\frac { \\partial \\mathrm { T P _ { 1 } } } { \\partial \\theta _ { 1 } } \\Big | _ { \\theta _ { 1 } = \\theta _ { 1 } ^ { \\tau - 1 } } ( \\theta _ { 1 } - \\theta _ { 1 } ^ { \\tau - 1 } )\n$$",
513
+ "text_format": "latex",
514
+ "bbox": [
515
+ 308,
516
+ 507,
517
+ 658,
518
+ 540
519
+ ],
520
+ "page_idx": 4
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "177 From (1), we can easily derive that ",
525
+ "bbox": [
526
+ 142,
527
+ 541,
528
+ 405,
529
+ 556
530
+ ],
531
+ "page_idx": 4
532
+ },
533
+ {
534
+ "type": "equation",
535
+ "img_path": "images/3a0aa670b84e7e49f109d4d746f9f9d194c728bbd75220834ea1f84bbcb8ecd3.jpg",
536
+ "text": "$$\n\\begin{array} { r l } { \\mathrm { T P } _ { 1 } ( \\theta _ { 1 } ^ { \\tau - 1 } ) = } & { { } 1 - \\displaystyle \\int _ { - \\infty } ^ { \\theta _ { 1 } ^ { \\tau - 1 } } f _ { 1 1 } ( x ) d x , } \\\\ { \\displaystyle \\frac { \\partial \\mathrm { T P } _ { 1 } } { \\partial \\theta _ { 1 } } = } & { { } - f _ { 1 1 } ( \\theta _ { 1 } ^ { \\tau - 1 } ) . } \\end{array}\n$$",
537
+ "text_format": "latex",
538
+ "bbox": [
539
+ 356,
540
+ 558,
541
+ 607,
542
+ 632
543
+ ],
544
+ "page_idx": 4
545
+ },
546
+ {
547
+ "type": "text",
548
+ "text": "178 Similarly, we can find the first order Taylor expansion of $\\mathrm { F P _ { 1 } , F N _ { 1 } }$ , and $\\mathrm { T N _ { 1 } }$ . Then, the update of $\\theta _ { 1 }$ \n179 w.r.t. (2) can be approximated with the following minimization problem w.r.t. $\\Delta _ { 1 }$ ",
549
+ "bbox": [
550
+ 138,
551
+ 637,
552
+ 823,
553
+ 667
554
+ ],
555
+ "page_idx": 4
556
+ },
557
+ {
558
+ "type": "equation",
559
+ "img_path": "images/cb795e91f59d952e43215b9dc563f6b3229bb69a5fb9c42df6ca87bbe3aa49e7.jpg",
560
+ "text": "$$\n\\begin{array} { r } { \\Delta _ { 1 } ^ { \\tau } : = \\underset { \\Delta _ { 1 } } { \\mathrm { a r g m i n } } ( \\eta ^ { \\tau } + \\alpha ^ { \\tau } \\Delta _ { 1 } ) ^ { 2 } + \\lambda ( \\epsilon ^ { \\tau } + \\beta ^ { \\tau } \\Delta _ { 1 } ) ^ { 2 } , } \\end{array}\n$$",
561
+ "text_format": "latex",
562
+ "bbox": [
563
+ 320,
564
+ 667,
565
+ 643,
566
+ 695
567
+ ],
568
+ "page_idx": 4
569
+ },
570
+ {
571
+ "type": "text",
572
+ "text": "where 180 $\\Delta _ { 1 } = \\theta _ { 1 } - \\theta _ { 1 } ^ { \\tau - 1 }$ and ",
573
+ "bbox": [
574
+ 142,
575
+ 699,
576
+ 361,
577
+ 715
578
+ ],
579
+ "page_idx": 4
580
+ },
581
+ {
582
+ "type": "equation",
583
+ "img_path": "images/ce389f7145b6e73208534b8bfcf84f2319508d9b19cd600779032aacdc0d1696.jpg",
584
+ "text": "$$\n\\begin{array} { l l } { \\displaystyle \\alpha _ { 1 } ^ { \\tau } = \\frac { n _ { 1 1 } } { N } f _ { 1 1 } ( \\theta _ { 1 } ^ { \\tau - 1 } ) - \\frac { n _ { 0 1 } } { N } f _ { 0 1 } ( \\theta _ { 1 } ^ { \\tau - 1 } ) , } \\\\ { \\displaystyle \\beta _ { 1 } ^ { \\tau } = - f _ { 1 1 } ( \\theta _ { 1 } ^ { \\tau - 1 } ) , } \\\\ { \\displaystyle \\eta _ { 1 } ^ { \\tau } = \\int _ { - \\infty } ^ { \\theta _ { 1 } ^ { \\tau - 1 } } \\big ( \\frac { n _ { 1 1 } } { N } f _ { 1 1 } ( x ) + \\frac { n _ { 0 1 } } { N } ( 1 - f _ { 0 1 } ( x ) \\big ) d x + \\int _ { - \\infty } ^ { \\theta _ { 0 } ^ { \\tau - 1 } } \\big ( \\frac { n _ { 1 0 } } { N } f _ { 1 0 } ( x ) + \\frac { n _ { 0 0 } } { N } ( 1 - f _ { 0 0 } ( x ) \\big ) d x , } \\\\ { \\displaystyle \\epsilon _ { 1 } ^ { \\tau } = \\int _ { \\infty } ^ { \\theta _ { 1 } ^ { \\tau - 1 } } f _ { 1 1 } ( x ) d x - \\int _ { \\infty } ^ { \\theta _ { 0 } ^ { \\tau - 1 } } f _ { 0 1 } ( x ) d x . } \\end{array}\n$$",
585
+ "text_format": "latex",
586
+ "bbox": [
587
+ 173,
588
+ 717,
589
+ 794,
590
+ 844
591
+ ],
592
+ "page_idx": 4
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "181 Taking the derivative of (8) w.r.t. $\\Delta _ { 1 }$ and setting it to 0, we can easily obtain the closed-form solution of 182 $\\Delta _ { 1 } ^ { \\tau }$ as ",
597
+ "bbox": [
598
+ 137,
599
+ 851,
600
+ 826,
601
+ 880
602
+ ],
603
+ "page_idx": 4
604
+ },
605
+ {
606
+ "type": "equation",
607
+ "img_path": "images/a5fc228ac7b91312f40f0696b5cd050ea654dac0a10d815a2f0da1a44465554c.jpg",
608
+ "text": "$$\n\\Delta _ { 1 } ^ { \\tau } = - \\frac { \\alpha ^ { \\tau } \\eta ^ { \\tau } + \\lambda \\beta ^ { \\tau } \\epsilon ^ { \\tau } } { ( \\alpha ^ { \\tau } ) ^ { 2 } + \\lambda ( \\beta ^ { \\tau } ) ^ { 2 } } .\n$$",
609
+ "text_format": "latex",
610
+ "bbox": [
611
+ 395,
612
+ 882,
613
+ 570,
614
+ 916
615
+ ],
616
+ "page_idx": 4
617
+ },
618
+ {
619
+ "type": "text",
620
+ "text": "Input dataset $\\mathcal { X } \\times \\mathcal { A } \\times \\mathcal { Y } = \\{ ( \\mathbf { x } _ { i } , \\mathbf { a } _ { i } , \\mathbf { y } _ { i } ) \\} _ { i = 1 } ^ { n }$ , classification model $h ( X )$ , hyperparameter $\\lambda$ . \nOutput Group-specific threshold $\\pmb { \\theta } = ( \\theta _ { 1 } , \\theta _ { 0 } )$ . \nInitialize $\\pmb { \\theta } \\overset { - } { = } ( \\bar { \\theta _ { 1 } } , \\theta _ { 0 } ) = ( 0 , 0 )$ . \n1. Given a classifier $H ( x )$ , estimate probability density function $f _ { y a } , y , a \\in \\{ 0 , 1 \\}$ by maximum \nlikelihood estimation. \nwhile not converge do 2. Calculate the optimal step $\\Delta _ { 1 }$ as $\\begin{array} { r } { \\Delta _ { 1 } = - \\frac { \\alpha _ { 1 } \\eta _ { 1 } + \\lambda \\beta _ { 1 } \\epsilon _ { 1 } } { \\alpha _ { 1 } ^ { 2 } + \\lambda \\beta _ { 1 } ^ { 2 } } } \\end{array}$ , with $\\alpha _ { 1 } , \\beta _ { 1 } , \\eta _ { 1 } , \\epsilon _ { 1 }$ values shown in (9); 3. Update the threshold: $\\theta _ { 1 } \\gets \\theta _ { 1 } + \\Delta _ { 1 }$ ; 4. Calculate the optimal step $\\Delta _ { 0 }$ as $\\begin{array} { r } { \\Delta _ { 0 } = - \\frac { \\alpha _ { 0 } \\eta _ { 0 } + \\lambda \\beta _ { 0 } \\epsilon _ { 0 } } { \\alpha _ { 0 } ^ { 2 } + \\lambda \\beta _ { 0 } ^ { 2 } } } \\end{array}$ − α0η0+λβ0\u000f0α2+λβ2 with α0, β0, η0, \u000f0 values calculated in a similar way as in (9): 5. Update the threshold: $\\theta _ { 0 } \\theta _ { 0 } + \\Delta _ { 0 }$ . \nend while ",
621
+ "bbox": [
622
+ 178,
623
+ 109,
624
+ 826,
625
+ 290
626
+ ],
627
+ "page_idx": 5
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "183 The second step is to fix $\\theta _ { 1 }$ and update $\\theta _ { 0 }$ , and this can be achieved in a similar way of updating $\\theta _ { 1 }$ \n184 Then we can finalize the alternating optimization as: ",
632
+ "bbox": [
633
+ 145,
634
+ 314,
635
+ 825,
636
+ 343
637
+ ],
638
+ "page_idx": 5
639
+ },
640
+ {
641
+ "type": "equation",
642
+ "img_path": "images/b26169f5dc50bb488bc46969f9a66dd92bc23a403c4d1323ae267236b1e8aaa9.jpg",
643
+ "text": "$$\n\\begin{array} { r } { \\theta _ { 0 } ^ { \\tau } = \\theta _ { 0 } ^ { \\tau - 1 } + \\Delta _ { 0 } ^ { \\tau } , } \\\\ { \\theta _ { 1 } ^ { \\tau } = \\theta _ { 1 } ^ { \\tau - 1 } + \\Delta _ { 1 } ^ { \\tau } . } \\end{array}\n$$",
644
+ "text_format": "latex",
645
+ "bbox": [
646
+ 436,
647
+ 345,
648
+ 560,
649
+ 388
650
+ ],
651
+ "page_idx": 5
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "185 It is notable that in each iteration we derive the optimal update step $\\theta$ , which eliminates the burden \n186 of tuning hyperparameter (such as learning rate) in iterative algorithm. The optimization step is \n187 summarized in Algorithm 1. The above algorithm can easily extend to multiple fairness constraints \n188 by adding corresponding squared-loss fairness terms to (2). \n189 Time Complexity: The alternating optimization of GSTAR model is of low computational cost. We \n190 take at most one pass of the data for learning the estimated probability density functions $f _ { y a }$ in (1) \n191 (we do not even need to traverse the data if the parameters (such mean and variance in Gaussian \n192 distribution) for the estimated probability density functions $f _ { y a }$ can be provided). The optimization \n193 of $\\pmb \\theta$ with alternating optimization is efficient since we only need $f _ { y a }$ as we have seen in (9) and (10). \n194 $\\pmb \\theta \\in \\mathbb { R } ^ { 2 }$ is a vector with fixed small size. Therefore, we need a constant time for each update. Overall, \n195 the time complexity of GSTAR is $O ( n + T )$ , where $n$ is the number of samples, and $T$ is the number \n196 of iterations in alternating optimization. \n197 We further derive the theoretical analysis of our GSTAR model on the balance between fairness \n198 and accuracy, which indicates that the optimal solution provides guarantees on model accuracy \n199 under the optimal fairness constraint. Details of the theoretical analysis is in the Supplementary \n200 material. Besides, if a unified threshold is necessary [3], i.e., $\\theta _ { 1 } = \\theta _ { 0 }$ , the optimization algorithm \n201 also applies and we only have one scalar variable in (2). When we have a unified threshold, we do not \n202 require sensitive information in the testing phase that we can conform more strict privacy regulations \n203 than group-aware thresholding. However, we have to sacrifice both fairness and accuracy as the \n204 thresholding is less flexible. ",
656
+ "bbox": [
657
+ 140,
658
+ 390,
659
+ 823,
660
+ 445
661
+ ],
662
+ "page_idx": 5
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "",
667
+ "bbox": [
668
+ 140,
669
+ 452,
670
+ 825,
671
+ 565
672
+ ],
673
+ "page_idx": 5
674
+ },
675
+ {
676
+ "type": "text",
677
+ "text": "",
678
+ "bbox": [
679
+ 140,
680
+ 570,
681
+ 825,
682
+ 681
683
+ ],
684
+ "page_idx": 5
685
+ },
686
+ {
687
+ "type": "text",
688
+ "text": "205 4 Experiments ",
689
+ "text_level": 1,
690
+ "bbox": [
691
+ 145,
692
+ 700,
693
+ 312,
694
+ 717
695
+ ],
696
+ "page_idx": 5
697
+ },
698
+ {
699
+ "type": "text",
700
+ "text": "In this section, we validate GSTAR model on four well-known fairness datasets and compare with other state-of-the-art methods. First, we plot Pareto frontiers of ours and FACT (MS) [10] to demonstrate the trade-offs between fairness and accuracy. Second, we evaluate the models with different fairness metrics and validate that our model is highly adaptive to any fairness metrics that are expressible with confusion matrix [7, 11, 2, 1]. Third, we use our model as a post-processing method to existing fair models and show that our model further improves existing fair models in an efficient and model-agnostic manner. ",
701
+ "bbox": [
702
+ 161,
703
+ 731,
704
+ 825,
705
+ 828
706
+ ],
707
+ "page_idx": 5
708
+ },
709
+ {
710
+ "type": "text",
711
+ "text": "13 4.1 Experimental Setup ",
712
+ "text_level": 1,
713
+ "bbox": [
714
+ 156,
715
+ 843,
716
+ 352,
717
+ 859
718
+ ],
719
+ "page_idx": 5
720
+ },
721
+ {
722
+ "type": "text",
723
+ "text": "214 We compare with multiple fairness approaches in the experiments. For clear demonstration of results, \n215 we use different shapes of marker for each comparing methods in Figure 2 and Figure 4. The compar \n216 ing methods include: Learning fair representations for kernel models (abbreviated as FGP) [23], ",
724
+ "bbox": [
725
+ 142,
726
+ 869,
727
+ 826,
728
+ 911
729
+ ],
730
+ "page_idx": 5
731
+ },
732
+ {
733
+ "type": "image",
734
+ "img_path": "images/565230b45ca3cf80fd5db341650e28a43250d364180ae4817bf68db498033a38.jpg",
735
+ "image_caption": [
736
+ "Figure 2: Model-specific Pareto frontiers of equalized odds to show the upper bound of best achievable accuracy under different fairness constraints. Upper right region under the boundary shows better fairness and higher accuracy. We plot three variations of GSTAR (star-shaped) with different fairness objectives. GSTAR is the closest to the Pareto frontier which indicates the best trade-offs. "
737
+ ],
738
+ "image_footnote": [],
739
+ "bbox": [
740
+ 194,
741
+ 99,
742
+ 792,
743
+ 345
744
+ ],
745
+ "page_idx": 6
746
+ },
747
+ {
748
+ "type": "text",
749
+ "text": "Fairness confusion tensor (abbreviated as FACT) [10], Disparate impact remover (abbreviated as DIR) [6], Adversarial de-biasing (abbreviated as AdvDeb) [24], Calibrated equalized odds post-processing (abbreviated as CEOPost) [20], Equality of opportunity in supervised learning (abbreviated as Odds) [7], Learning adversarially fair and transferable representations (abbreviated as LAFTR) [17], and Baseline: For CelebA dataset, we use ResNet50 [8] as a reference, and logistic regression for all other datasets. Our method is optimized with $\\lambda$ in the range of $[ 1 0 ^ { - 1 } , 1 0 ^ { 4 } ]$ with alternating optimization method. All experiments are implemented with Pytorch framework on i9-9960X CPU and a Quadro RTX 6000 GPU. ",
750
+ "bbox": [
751
+ 165,
752
+ 438,
753
+ 825,
754
+ 549
755
+ ],
756
+ "page_idx": 6
757
+ },
758
+ {
759
+ "type": "text",
760
+ "text": "We choose broadly used fairness metrics in evaluation including: equal opportunity difference and equalized odds difference (abbreviated as EOp, and EOd respectively) [7] ; 1-disparate impact (abbreviated as 1-DIMP) [1]; balanced accuracy difference (abbreviated as BD). ",
761
+ "bbox": [
762
+ 165,
763
+ 554,
764
+ 821,
765
+ 597
766
+ ],
767
+ "page_idx": 6
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "228 We evaluate the methods on four fairness datasets: CelebA image dataset1 [15], Adult dataset from \n229 the UCI repository [12], COMPAS2 (Correctional Offender Management Profiling for Alternative \n230 Sanctions) dataset, and German credit dataset from the UCI repository [5]. All data is split as $70 \\%$ \n231 for training and $30 \\%$ for testing. More details of the comparing methods, evaluation metrics, and \n232 datasets are provided in the Supplementary material. ",
772
+ "bbox": [
773
+ 145,
774
+ 603,
775
+ 825,
776
+ 672
777
+ ],
778
+ "page_idx": 6
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "4.2 Performance and Fairness-Accuracy Trade-Offs ",
783
+ "text_level": 1,
784
+ "bbox": [
785
+ 174,
786
+ 689,
787
+ 547,
788
+ 704
789
+ ],
790
+ "page_idx": 6
791
+ },
792
+ {
793
+ "type": "text",
794
+ "text": "In this subsection, we look into the performance evaluation of GSTAR comparing with other state-ofthe-art methods. We consider Pareto frontier to visualize the trade-offs between fairness and accuracy to demonstrate the measure of performance. ",
795
+ "bbox": [
796
+ 173,
797
+ 714,
798
+ 825,
799
+ 756
800
+ ],
801
+ "page_idx": 6
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "In Figure 2, we plot Pareto frontier, which is the upper bound for the accuracy-fairness trade-offs, desired output locates at the upper right region under the boundary which corresponds to higher values in accuracy and lower values in fairness discrepancy. With the same fairness constraints are given, we achieve a better frontier than the FACT [10] as we equally weigh on demographic statistics and have a better feasible region. To obtain our results (star points), we first estimate the logit distribution from the output of the baseline model, and then we get optimal adaptive thresholds with corresponding fairness metric by updating w.r.t. the objective function in (2). Here we have three combinations of fairness imposed to GSTAR: demographic parity (DP), equalized odds (EOd), and ",
806
+ "bbox": [
807
+ 173,
808
+ 762,
809
+ 825,
810
+ 875
811
+ ],
812
+ "page_idx": 6
813
+ },
814
+ {
815
+ "type": "image",
816
+ "img_path": "images/faeeab7cd7f97f0e628ac573c27aaab1a4f960e543cb8745e20f0bab62add685.jpg",
817
+ "image_caption": [
818
+ "Figure 3: Quantitative evaluation on fairness and performance metrics. The bar plots indicate fairness measures (EOp, EOd, BD, 1-DISP) of each model. Lower fairness values in the left y-axis shows better fairness. The line plots indicate the performance measure (balanced accuracy (BA) and accuracy (ACC) of each model. Higher performance values in the right y-axis shows better classifcation performance. We consider three variations of GSTAR models (DP, EOd, DP+EOd). "
819
+ ],
820
+ "image_footnote": [],
821
+ "bbox": [
822
+ 178,
823
+ 90,
824
+ 818,
825
+ 352
826
+ ],
827
+ "page_idx": 7
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "245 with both constraints $\\mathrm { ( D P { + } E O d ) }$ . By post-processing on a simple baseline, we achieved significantly \n246 better fairness with small or no sacrifice in accuracy. In all datasets, GSATR got competitive or better \n247 results than other state-of-the-art methods on both fairness and accuracy. \n248 For example, we got $\\pmb { \\theta } _ { E O d } ^ { * } = ( 0 . 6 4 0 , - 0 . 6 2 7 ) ^ { \\top }$ for the CelebA dataset. This shows that we have \n249 a higher threshold for the privileged group and a lower threshold for the unprivileged group. This \n250 optimal thresholding from GSTAR allows more samples from the privileged group to be correctly \n251 predicted as unattractive that would compensate for the discrimination of the original model. In other \n252 words, this improves predictive equality [2] with a huge amount from 0.235 to 0.014. Also, true \n253 positive rate difference (also known as equality of opportunity [7]) got reduced from 0.282 to 0.018. \n254 It is notable that GSTAR only sacrificed $2 . 2 \\%$ of accuracy to bring the big improvement in fairness. \n255 Since the objective function of our model is independent to data dimensionality, our model is much \n256 more efficient especially for high dimensional data. We mostly outperform the computational cost \n257 comparing to the other methods. The comparison of computational time on the datasets can be found \n258 in the Supplementary material. ",
832
+ "bbox": [
833
+ 142,
834
+ 469,
835
+ 825,
836
+ 511
837
+ ],
838
+ "page_idx": 7
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "",
843
+ "bbox": [
844
+ 140,
845
+ 516,
846
+ 825,
847
+ 614
848
+ ],
849
+ "page_idx": 7
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "",
854
+ "bbox": [
855
+ 142,
856
+ 621,
857
+ 825,
858
+ 676
859
+ ],
860
+ "page_idx": 7
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "259 4.3 Flexibility and Multiple Fairness Constraints ",
865
+ "text_level": 1,
866
+ "bbox": [
867
+ 142,
868
+ 707,
869
+ 526,
870
+ 722
871
+ ],
872
+ "page_idx": 7
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "Since each fairness metric has different interests, it has been theoretically proven that they cannot be perfectly satisfied all together [20, 2, 11]. Because of this inherent trade-offs between fairness metrics, most of the recent works focus on a single metric at a time to achieve fairness. However with GSTAR, we have the flexibility to optimize on multiple fairness constraints that can be represented in the confusion matrix format. Moreover, given the estimated distribution $f _ { y a }$ of a black-box classification model, we can adjust the optimal $\\pmb \\theta$ based on the needs by accommodating different fairness criteria. ",
877
+ "bbox": [
878
+ 173,
879
+ 738,
880
+ 825,
881
+ 821
882
+ ],
883
+ "page_idx": 7
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "Figure 3 demonstrates the result of the methods with fairness metrics and accuracy trade-off evaluations. Overall, the variations of GSTAR achieve the best fairness on each target fairness while preserving the performance. For example in Figure 3(a), GSTAR with EOd constraint has outstanding performance in most fairness metrics with comparable accuracy $( 8 0 . 3 \\% )$ . Comparing with GSTAR (EOd), when we introduce EOd and DP together $( \\mathrm { D P + E O d } )$ ), we achieve significantly better w.r.t. DP fairness with sacrificing a small amount of accuracy and EOd. ",
888
+ "bbox": [
889
+ 173,
890
+ 827,
891
+ 823,
892
+ 911
893
+ ],
894
+ "page_idx": 7
895
+ },
896
+ {
897
+ "type": "image",
898
+ "img_path": "images/99aaf30eada38a91a493c559194b114c06bbd339971f8a93609ffe3ec07e1b85.jpg",
899
+ "image_caption": [
900
+ "Figure 4: Illustration of post-processing (magenta colored points) on existing fairness models (blue colored points). Given the outputs of each model, we efficiently improve existing fairness models with optimized group-aware thresholds from GSTAR. "
901
+ ],
902
+ "image_footnote": [],
903
+ "bbox": [
904
+ 179,
905
+ 93,
906
+ 818,
907
+ 232
908
+ ],
909
+ "page_idx": 8
910
+ },
911
+ {
912
+ "type": "text",
913
+ "text": "272 In general, by sacrificing individual fairness performance, we could introduce multiple constraints. \n273 Also, we implicitly observe that the more fairness constraints are introduced, the more accuracy is \n274 sacrificed. We empirically found that in some cases (e.g. Figure 3(c)), introducing multiple fairness \n275 is complementary to each other that improves both conditions. ",
914
+ "bbox": [
915
+ 142,
916
+ 311,
917
+ 825,
918
+ 367
919
+ ],
920
+ "page_idx": 8
921
+ },
922
+ {
923
+ "type": "text",
924
+ "text": "276 4.4 Post-Processing on an Existing Fair Model ",
925
+ "text_level": 1,
926
+ "bbox": [
927
+ 145,
928
+ 387,
929
+ 508,
930
+ 401
931
+ ],
932
+ "page_idx": 8
933
+ },
934
+ {
935
+ "type": "text",
936
+ "text": "For a binary classifier that has a single fixed classification threshold (0 for out logit, and 0.5 for label probability), we can improve the trade-off between fairness and accuracy via GSTAR postprocessing. Given the logit/probability of the dataset from a black-box model, we can improve the fairness as illustrated in Figure 4. In most cases, we observe improvement in fairness after GSTAR post-processing. It is also interesting to note that by optimizing the different thresholds for each protected group, we even obtain better performance on both fairness and accuracy, which indicates that the threshold optimization can not only improve fairness but also accuracy. ",
937
+ "bbox": [
938
+ 169,
939
+ 414,
940
+ 825,
941
+ 511
942
+ ],
943
+ "page_idx": 8
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "284 However, when the distribution of the logits/probability is highly extreme (such as the results of using \n285 GSTAR to post-process CEOPost), it is difficult to estimate the distribution and thus causes erroneous \n286 optimization in GSTAR. We empirically found that when the dataset is extremely imbalanced such \n287 that we do not have enough samples to estimate the logit/probability distribution, or black-box model \n288 is too certain to the prediction that samples are concentrated to certain output, this problem arises. ",
948
+ "bbox": [
949
+ 142,
950
+ 517,
951
+ 825,
952
+ 587
953
+ ],
954
+ "page_idx": 8
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "289 5 Conclusion and Discussion ",
959
+ "text_level": 1,
960
+ "bbox": [
961
+ 151,
962
+ 608,
963
+ 428,
964
+ 626
965
+ ],
966
+ "page_idx": 8
967
+ },
968
+ {
969
+ "type": "text",
970
+ "text": "In this paper, we propose a group-aware threshold adaptation method (GSTAR) to post-process a blackbox model and optimize over multiple fairness constraints.We directly optimize the classification threshold for each demographic group w.r.t. the classification error and multiple fairness constraints in a unified objective function, such that we can practically achieve an optimal trade-off between accuracy and fairness in fair classification. Our method is applicable to diverse notions of group fairness as the majority of fairness notions can be expressed as a linear or quadratic equation through confusion matrix. We empirically show that GSTAR is flexible with fairness regularization, efficient with low computational cost. We also notice that the adaptive thresholds benefit accuracy in some cases. GSTAR agrees to protect privacy such as article 17 of EU’s GDPR [21] with model-agnostic post-processing. We only require the estimated distribution of the output from a black-box model i.e., our post-processing method is oblivious to features. Thus training data is no longer needed and allowed to be discarded after training the black-box model. ",
971
+ "bbox": [
972
+ 173,
973
+ 642,
974
+ 825,
975
+ 808
976
+ ],
977
+ "page_idx": 8
978
+ },
979
+ {
980
+ "type": "text",
981
+ "text": "Further, we empirically find that GSTAR is not applicable to post-process some classification models \n303 in the following situations: 1) the model does not provide logit/probability as the outcome; 2) The \n304 model provides an extreme distribution of the output logit/probability. For example, when the model \n305 is too certain about its prediction, it will be difficult to perform probability density estimation. In our \n306 future work, we will study possible strategies to solve the above limitations, and extend GSTAR to \n307 multi-class, multi-sensitive group problems and improve the fairness-accuracy trade-off in a more \n308 general scheme. ",
982
+ "bbox": [
983
+ 140,
984
+ 814,
985
+ 825,
986
+ 911
987
+ ],
988
+ "page_idx": 8
989
+ },
990
+ {
991
+ "type": "text",
992
+ "text": "References \n[1] Solon Barocas and Andrew D Selbst. Big data’s disparate impact. Calif. L. Rev., 104:671, 2016. \n[2] Alexandra Chouldechova. Fair prediction with disparate impact: A study of bias in recidivism prediction instruments. Big data, 5(2):153–163, 2017. \n[3] Sam Corbett-Davies, Emma Pierson, Avi Feller, Sharad Goel, and Aziz Huq. Algorithmic decision making and the cost of fairness. In KDD, pages 797–806, 2017. \n[4] Julia Dressel and Hany Farid. The accuracy, fairness, and limits of predicting recidivism. Sci. Adv, 4(1):eaao5580, 2018. \n[5] Dheeru Dua and Casey Graff. UCI machine learning repository, 2019. \n[6] Michael Feldman, Sorelle A Friedler, John Moeller, Carlos Scheidegger, and Suresh Venkatasubramanian. Certifying and removing disparate impact. In KDD, pages 259–268, 2015. \n[7] Moritz Hardt, Eric Price, and Nati Srebro. Equality of opportunity in supervised learning. In NeurIPS, pages 3315–3323, 2016. \n[8] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770–778, 2016. \n[9] Faisal Kamiran, Asim Karim, and Xiangliang Zhang. Decision theory for discrimination-aware classification. In ICDM, pages 924–929. IEEE, 2012. \n[10] Joon Sik Kim, Jiahao Chen, and Ameet Talwalkar. Model-agnostic characterization of fairness trade-offs. arXiv preprint arXiv:2004.03424, 2020. \n[11] Jon Kleinberg, Sendhil Mullainathan, and Manish Raghavan. Inherent trade-offs in the fair determination of risk scores. arXiv preprint arXiv:1609.05807, 2016. \n[12] Ron Kohavi. Scaling up the accuracy of naive-bayes classifiers: A decision-tree hybrid. In KDD, volume 96, pages 202–207, 1996. \n[13] Lydia T Liu, Sarah Dean, Esther Rolf, Max Simchowitz, and Moritz Hardt. Delayed impact of fair machine learning. arXiv preprint arXiv:1803.04383, 2018. \n[14] Lydia T Liu, Max Simchowitz, and Moritz Hardt. The implicit fairness criterion of unconstrained learning. In ICML, pages 4051–4060, 2019. \n[15] Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In ICCV, pages 3730–3738, 2015. \n[16] Vishnu Suresh Lokhande, Aditya Kumar Akash, Sathya N Ravi, and Vikas Singh. Fairalm: Augmented lagrangian method for training fair models with little regret. In ECCV, pages 365–381. Springer, 2020. \n[17] David Madras, Elliot Creager, Toniann Pitassi, and Richard Zemel. Learning adversarially fair and transferable representations. arXiv preprint arXiv:1802.06309, 2018. \n[18] Aditya Krishna Menon and Robert C Williamson. The cost of fairness in binary classification. In ACM FAccT, pages 107–118, 2018. \n[19] Dino Pedreshi, Salvatore Ruggieri, and Franco Turini. Discrimination-aware data mining. In KDD, pages 560–568, 2008. \n[20] Geoff Pleiss, Manish Raghavan, Felix Wu, Jon Kleinberg, and Kilian Q Weinberger. On fairness and calibration. In NeurIPS, pages 5680–5689, 2017. \n[21] General Data Protection Regulation. Regulation eu 2016/679 of the european parliament and of the council of 27 april 2016. Official Journal of the European Union. Available at: http://ec. europa. eu/justice/data-protection/reform/files/regulation_oj_en. pdf (accessed 20 September 2017), 2016. \n[22] Hee Jung Ryu, Hartwig Adam, and Margaret Mitchell. Inclusivefacenet: Improving face attribute detection with race and gender diversity. arXiv preprint arXiv:1712.00193, 2017. \n[23] Zilong Tan, Samuel Yeom, Matt Fredrikson, and Ameet Talwalkar. Learning fair representations for kernel models. In AISTATS, pages 155–166, 2020. \n[24] Brian Hu Zhang, Blake Lemoine, and Margaret Mitchell. Mitigating unwanted biases with adversarial learning. In AIES, pages 335–340, 2018. \n[25] Han Zhao and Geoff Gordon. Inherent tradeoffs in learning fair representations. In NeurIPS, pages 15675–15685, 2019. ",
993
+ "bbox": [
994
+ 166,
995
+ 83,
996
+ 828,
997
+ 922
998
+ ],
999
+ "page_idx": 9
1000
+ },
1001
+ {
1002
+ "type": "text",
1003
+ "text": "",
1004
+ "bbox": [
1005
+ 173,
1006
+ 90,
1007
+ 826,
1008
+ 232
1009
+ ],
1010
+ "page_idx": 10
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "Checklist ",
1015
+ "text_level": 1,
1016
+ "bbox": [
1017
+ 171,
1018
+ 256,
1019
+ 254,
1020
+ 272
1021
+ ],
1022
+ "page_idx": 10
1023
+ },
1024
+ {
1025
+ "type": "text",
1026
+ "text": "1. For all authors... ",
1027
+ "bbox": [
1028
+ 214,
1029
+ 282,
1030
+ 339,
1031
+ 296
1032
+ ],
1033
+ "page_idx": 10
1034
+ },
1035
+ {
1036
+ "type": "text",
1037
+ "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] See Section 5. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] See Section 5. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
1038
+ "bbox": [
1039
+ 238,
1040
+ 301,
1041
+ 825,
1042
+ 405
1043
+ ],
1044
+ "page_idx": 10
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "2. If you are including theoretical results... ",
1049
+ "bbox": [
1050
+ 215,
1051
+ 409,
1052
+ 493,
1053
+ 422
1054
+ ],
1055
+ "page_idx": 10
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] See Section 1 in the Supplementary material. \n(b) Did you include complete proofs of all theoretical results? [Yes] See Section 1 in the Supplementary material. ",
1060
+ "bbox": [
1061
+ 238,
1062
+ 426,
1063
+ 825,
1064
+ 484
1065
+ ],
1066
+ "page_idx": 10
1067
+ },
1068
+ {
1069
+ "type": "text",
1070
+ "text": "3. If you ran experiments... ",
1071
+ "bbox": [
1072
+ 214,
1073
+ 489,
1074
+ 393,
1075
+ 503
1076
+ ],
1077
+ "page_idx": 10
1078
+ },
1079
+ {
1080
+ "type": "text",
1081
+ "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] We will provide the code and instructions at request. The data used in the experiments are public available. See Section 2.3 in the Supplementary material. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 4.1. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Section 4.3. \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] See Section 4.1. ",
1082
+ "bbox": [
1083
+ 238,
1084
+ 508,
1085
+ 825,
1086
+ 652
1087
+ ],
1088
+ "page_idx": 10
1089
+ },
1090
+ {
1091
+ "type": "text",
1092
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1093
+ "bbox": [
1094
+ 214,
1095
+ 657,
1096
+ 825,
1097
+ 671
1098
+ ],
1099
+ "page_idx": 10
1100
+ },
1101
+ {
1102
+ "type": "text",
1103
+ "text": "(a) If your work uses existing assets, did you cite the creators? [N/A] \n(b) Did you mention the license of the assets? [N/A] \n(c) Did you include any new assets either in the supplemental material or as a URL? [N/A] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
1104
+ "bbox": [
1105
+ 238,
1106
+ 675,
1107
+ 825,
1108
+ 795
1109
+ ],
1110
+ "page_idx": 10
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1115
+ "bbox": [
1116
+ 214,
1117
+ 799,
1118
+ 705,
1119
+ 814
1120
+ ],
1121
+ "page_idx": 10
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "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] ",
1126
+ "bbox": [
1127
+ 238,
1128
+ 818,
1129
+ 825,
1130
+ 906
1131
+ ],
1132
+ "page_idx": 10
1133
+ }
1134
+ ]
parse/train/Pg13X3rETW/Pg13X3rETW_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Pg13X3rETW/Pg13X3rETW_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rJTKKKqeg/rJTKKKqeg.md ADDED
@@ -0,0 +1,244 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TRACKING THE WORLD STATE WITHRECURRENT ENTITY NETWORKS
2
+
3
+ Mikael Henaff1,2, Jason Weston1, Arthur Szlam1, Antoine Bordes1 and Yann LeCun1,2
4
+
5
+ 1Facebook AI Research
6
+ 2Courant Institute, New York University
7
+ {mbh305}@nyu.edu, {jase,aszlam,abordes,yann}@fb.com
8
+
9
+ # ABSTRACT
10
+
11
+ We introduce a new model, the Recurrent Entity Network (EntNet). It is equipped with a dynamic long-term memory which allows it to maintain and update a representation of the state of the world as it receives new data. For language understanding tasks, it can reason on-the-fly as it reads text, not just when it is required to answer a question or respond as is the case for a Memory Network (Sukhbaatar et al., 2015). Like a Neural Turing Machine or Differentiable Neural Computer (Graves et al., 2014; 2016) it maintains a fixed size memory and can learn to perform location and content-based read and write operations. However, unlike those models it has a simple parallel architecture in which several memory locations can be updated simultaneously. The EntNet sets a new state-of-the-art on the bAbI tasks, and is the first method to solve all the tasks in the $1 0 \mathrm { k }$ training examples setting. We also demonstrate that it can solve a reasoning task which requires a large number of supporting facts, which other methods are not able to solve, and can generalize past its training horizon. It can also be practically used on large scale datasets such as Children’s Book Test, where it obtains competitive performance, reading the story in a single pass.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ The essence of intelligence is the ability to predict. An intelligent agent must be able to predict unobserved facts about their environment from limited percepts (visual, auditory, textual, or otherwise), combined with their knowledge of the past. In order to reason and plan, they must be able to predict how an observed event or action will affect the state of the world. Arguably, the ability to maintain an estimate of the current state of the world, combined with a forward model of how the world evolves, is a key feature of intelligent agents.
16
+
17
+ A natural way for an agent to represent the world is to maintain a set of high-level concepts or entities together with their properties, which are updated as new information is received. For example, if a percept is the textual description of an event, such as “John walks out of the kitchen”, the agent should learn to update its estimate of John’s location, as well as the list (and number) of people present in each room. If John was carrying a bag, the location of the bag and the list of objects in the kitchen must also be updated. When we read a story, each sentence we read or hear causes us to update our internal representation of the current state of the world within the story. The flow of the story is captured by the evolution of this state of the world.
18
+
19
+ At any given time, an agent typically receives limited information about the state of the world, and should therefore be able to infer new information through partial observation. In this paper, we investigate this problem through a simple story understanding scenario, in which the agent is given a sequence of textual statements and events, and then given another series of statements about the final state of the world. If the second series of statements is given in the form of questions about the final state of the world together with their correct answers, the agent should be able to learn from them and its performance can be measured by the accuracy of its answers.
20
+
21
+ Even with this weak form of supervision, the system may learn basic dynamical constraints about the world. For example, it may learn that a person or object cannot be in two locations at the same time, or may learn simple update rules such as incrementing and decrementing the number of persons or objects in a room. It may also learn basic rules of approximate (logical) inference, such as the fact that objects belonging to the same category tend to have similar properties (light objects can be carried over from rooms to rooms for instance).
22
+
23
+ We propose to handle this scenario with a new kind of memory-augmented neural network that uses a distributed memory and processor architecture: the Recurrent Entity Network (EntNet). The model consists of a fixed number of dynamic memory cells, each containing a vector key $w _ { j }$ and a vector value (or content) $h _ { j }$ . Each cell is associated with its own “processor”, a simple gated recurrent network that may update the cell value given an input. If each cell learns to represent a concept or entity in the world, one can imagine a gating mechanism that, based on the key and content of the memory cells, will only modify the cells that concern the entities mentioned in the input. In the current version of the model, there is no direct interaction between the memory cells, hence the system can be seen as multiple identical processors functioning in parallel, with distributed local memory. Alternatively, the EntNet can be seen as a bank of gated RNNs (all sharing the same parameters), whose hidden states correspond to latent concepts and attributes, and whose parameters describe the laws of the world according to which the attributes of objects are updated. The sharing of these parameters reflects an invariance of these laws across object instances, similarly to how the weight tying scheme in a CNN reflects an invariance of image statistics across locations. Their hidden state is updated only when new information relevant to their concept is received, and remains otherwise unchanged. The keys used in the addressing/gating mechanism also correspond to concepts or entities, but are modified only during learning, not during inference.
24
+
25
+ The EntNet is able to solve all 20 bAbI question-answering tasks (Weston et al., 2015), a popular benchmark of story understanding, which to our knowledge sets a new state-of-the-art. Our experiments also indicate that the model indeed maintains an internal representation of the simplified world in which the stories take place, and that the model does not limit itself to storing the aspects of the world required to answer a specific question. We also introduce a new reasoning task which, unlike the bAbI tasks, requires a model to use a large number of supporting facts to answer the question, and show that the EntNet outperforms both LSTMs and Memory Networks (Sukhbaatar et al., 2015) by a significant margin. It is also able to generalize to sequences longer than those seen during training. Finally, our model also obtains competitive results on the Childrens Book Test (Hill et al., 2016), and performs best among models that read the text in a single pass before receiving knowledge of the question.
26
+
27
+ # 2 MODEL
28
+
29
+ Our model is designed to process data in sequential form, and consists of three main parts: an input encoder, a dynamic memory and an output layer, which we now describe in detail. We developed it in the context of question answering on short stories where the inputs are word sequences, but the model could be adapted to many other contexts.
30
+
31
+ # 2.1 INPUT ENCODER
32
+
33
+ The encoding layer summarizes an element of the input sequence with a vector of fixed length. Typically the input element at time $t$ is a sequence of words, e.g. a sentence or window of words. One is free to choose the encoding module to be any standard sequence encoder, which is an active area of research. Typical choices include a bag-of-words (BoW) representation or the final state of a recurrent neural net (RNN) run over the sequence. In this work, we use a simple encoder consisting of a learned multiplicative mask followed by a summation. More precisely, let the input at time $t$ be a sequence of words with embeddings $\{ e _ { 1 } , . . . , e _ { k } \}$ . The vector representation of this input is then:
34
+
35
+ $$
36
+ s _ { t } = \sum _ { i } f _ { i } \odot e _ { i }
37
+ $$
38
+
39
+ The same set of vectors $\{ f _ { 1 } , . . . , f _ { k } \}$ are used at each time step and are learned jointly with the other parameters of the model. Note that the model can choose to adopt a standard BoW representation
40
+
41
+ ![](images/e1a75e8621689e8c39ada2bcd119684f909bae1e2db4ee19187e01a12568e02e.jpg)
42
+ Figure 1: Diagram of the Recurrent Entity Network’s dynamic memory. Update equations 1 and 2 are represented by the module $f _ { \theta }$ , where $\theta$ is the set of trainable parameters. Equations 3 and 4 are represented by the gate, since they fullfill a similar function.
43
+
44
+ by setting all weights in the multiplicative mask to 1, or can choose a positional encoding model as used in (Sukhbaatar et al., 2015).
45
+
46
+ # 2.2 DYNAMIC MEMORY
47
+
48
+ The dynamic memory is a gated recurrent network with a (partially) block structured weight tying scheme. We divide the hidden states of the network into blocks $h _ { 1 } , . . . , h _ { m }$ ; the full hidden state is the concatenation of the $h _ { j }$ . In the experiments below, $m$ is of the order of 5 to 20, and each block $h _ { j }$ is of the order of 20 to 100 units.
49
+
50
+ At each time step $t$ , the content of the hidden states $\{ h _ { j } \}$ (which we will call the $j$ th memory) are updated using a set of key vectors $\{ w _ { j } \}$ and the encoded input $s _ { t }$ . In its most general form, the update equations of our model are given by:
51
+
52
+ $$
53
+ \begin{array} { r l } & { g _ { j } \sigma \big ( s _ { t } ^ { T } h _ { j } + s _ { t } ^ { T } w _ { j } \big ) } \\ & { \tilde { h _ { j } } \phi \big ( U h _ { j } + V w _ { j } + W s _ { t } \big ) } \\ & { { h _ { j } } h _ { j } + g _ { j } \circledast \tilde { h _ { j } } } \\ & { { h _ { j } } \displaystyle \frac { h _ { j } } { \vert \vert h _ { j } \vert \vert } } \end{array}
54
+ $$
55
+
56
+ Here $\sigma$ represents a sigmoid, $g _ { j }$ is a gating function which determines how much the $j ^ { t h }$ memory should be updated, and $\tilde { h _ { j } }$ is the new candidate value of the memory to be combined with the existing memory $h _ { j }$ . The function $\phi$ can be chosen from any number of activation functions, in our experiments we use either parametric ReLU non-linearities (He et al., 2015) or the identity. The matrices $U , V , W$ are typically trainable parameters of the model, and are shared between all the blocks. They can also be fixed to certain values, such as the identity or zero, to yield a simpler model which we use in some of our experiments.
57
+
58
+ The gating function $g _ { j }$ contains two terms: a “content” term $s _ { t } ^ { T } h _ { j }$ which causes the gate to open for memory slots whose content matches the input, and a “location” term $s _ { t } ^ { T } w _ { j }$ which causes the gate to open for memory slots whose key matches the input. The final normalization step allows the model to forget previous information. To see this, note that since the memories lie on the unit sphere, all information is contained in their phase. Adding any vector to a given memory (other than the memory itself) will decrease the cosine distance between the original memory and the updated one. Therefore, as new information is added, old information is forgotten.
59
+
60
+ # 2.3 OUTPUT MODULE
61
+
62
+ Whenever the model is required to produce an output, it is presented with a query vector $q$ . Specifically, the output is computed using the following equations:
63
+
64
+ $$
65
+ \begin{array} { l } { p _ { j } = \mathrm { S o f t m a x } ( q ^ { T } h _ { j } ) } \\ { \displaystyle \boldsymbol { u } = \sum _ { j } p _ { j } \boldsymbol { h } _ { j } } \\ { \boldsymbol { y } = R \phi ( \boldsymbol { q } + H \boldsymbol { u } ) } \end{array}
66
+ $$
67
+
68
+ The matrices $H$ and $R$ are additional trainable parameters of the model. The output module can be viewed as a one-hop Memory Network (Sukhbaatar et al., 2015) with an additional non-linearity $\phi$ between the internal state and the decoder matrix. If the memory slots correspond to specific words (as we will describe in the following section) which contain the answer, $p$ can be viewed as a distribution over potential answers and can be used to make a prediction directly or fed into a loss function, removing the need for the last two steps.
69
+
70
+ The entire model (all three components described above) is trained via backpropagation through time, receiving gradients from any time steps where the reader is required to produce an output, which are then propagated through the unrolled network.
71
+
72
+ # 3 MOTIVATING EXAMPLE OF OPERATION
73
+
74
+ We now describe a motivating example of how our model can perform reasoning on-the-fly as it is ingesting input sequences. Let us suppose our model is reading a story, so the inputs are natural language sentences, and then it is required to answer questions about the story it has just read.
75
+
76
+ Our model is free to learn the key vectors $w _ { j }$ for each memory $j$ . One choice the model could make is to associate a single memory (via the key) with each entity in the story. The memory slot corresponding to a person could encode that person’s location, the objects they are carrying, or the people they are with, depending on what information is relevant for the task at hand. As new information is received indicating that objects are acquired or discarded, or the person changes location, their memory slot will change accordingly. Similarly useful updates can be made for memories corresponding to object and location entities as well.
77
+
78
+ In fact, we could encode this choice of memories directly into our model, which we consider as a type of prior knowledge. By tying the weights of the key vectors with the embeddings of specific words, we can encourage the model to record information about certain words occuring in the text which we believe to be important. For example, given a list of named entities (which could be produced by a standard tagger), we could make the model have a separate memory slot for each entity. We consider this “tied” variant in our experiments. Since the list of entities is independent of the training data, this variant can handle entities not seen in the training set, as long as their embeddings can be initialized in a reasonable way (such as pre-training on a larger corpus).
79
+
80
+ Now, consider that the model reads the following two sentences, and the desired behavior of the gating function and update function at each memory as they are seen:
81
+
82
+ • Mary picked up the ball.
83
+ • Mary went to the garden.
84
+
85
+ As the first sentence $s _ { t }$ is ingested, and assuming memories encode entities, we would like the gates of the memories corresponding to both “Mary” and “ball” to activate. This is possible due to the location addressing term $s _ { t } ^ { T } w _ { j }$ which uses the key $w _ { j }$ . We expect that a well trained model would learn to do this. The model would hence modify both the entry corresponding to “Mary” to indicate that she is now carrying the ball, and also the entry corresponding to “ball”, to indicate that it is being carried by Mary. When the second sentence is seen, we would like the model to again modify the “Mary” entry to indicate that she is now in the garden, and also modify the “ball” entry to reflect its new location as well. Assuming the information for ���Mary” is contained in the “ball” memory as described before, the gate corresponding to “ball” can activate due to the content addressing term $s _ { t } ^ { T } h _ { j }$ , even though the word “ball” does not occur in the second sentence. As before, the gate corresponding to the “Mary” entry can open due to the second term.
86
+
87
+ If the gating function and update function have weights such that the steps above are executed, then the memory will be in a state where questions such as “Where is the ball?” or “Where is Mary?” can be answered from the values of relevant memories, without the need for further complex reasoning.
88
+
89
+ # 4 RELATED WORK
90
+
91
+ The EntNet is related to gated recurrent models such as the LSTM (Hochreiter & Schmidhuber, 1997) and GRU (Cho et al., 2014), which also use gates to fix or modify the information stored in the hidden state. However, these models use scalar memory cells with full interactions between them, whereas ours has separate memory slots which could be seen as groups of hidden units with tied weights in the gating and update functions. Another important difference is the content-based matching term between the input and hidden state, which is not present in these models.
92
+
93
+ Our model also shares some similarities with the DNC/NTM framework of (Graves et al., 2014; 2016). There, as in our model, a block of hidden states acts as a set of read-writeable memories. On the other hand, the DNC has a relatively sophisticated controller network (such as an LSTM) which reads an input and outputs a number of interface vectors (such as keys and weightings) which are then combined via a softmax to read from and write to the external memory matrix. In contrast, our model can be viewed as a set of separate recurrent models whose hidden states store the memory slots. These hidden states are either fixed by the gates, or modified through a simple RNN-style update. The bulk of the reasoning is thus performed by these parallel recurrent models, rather than through a central controller. Moreover, instead of using a softmax, our model uses an independent gate for writing to each memory.
94
+
95
+ Our model is similar to a Memory Network and its variants (Weston et al., 2014; Sukhbaatar et al., 2015; Chandar et al., 2016; Miller et al., 2016) in the way it produces an output using a softmax over blocks of hidden states, and our encoding layer is inspired by techniques used in those works. However, Memory Networks explicitly store the entire input sequence in memory, and then sequentially update a controller’s hidden state via a softmax gating over the memories. In contrast, our model keeps a fixed number of blocks of hiddens as memories and updates each block with an independent gated RNN. The Dynamic Memory Network of (Xiong et al., 2016) also performs updates via a recurrent model, however it links memories to input tokens and updates them sequentially rather than in parallel.
96
+
97
+ The weight tying scheme and the parallel gated RNNs recall the gated graph network of (Li et al., 2015). If we interpret our work in that context, the “graph” is just a set of vertices with no edges; our gating mechanism is also somewhat different than the one they use. The CommNN model of (Sukhbaatar et al., 2016), the Interaction Network of (Battaglia et al., 2016), the Neural Physics Engine of (Chang et al., 2016) and the model of (Fragkiadaki et al., 2015) also use a set of parallel recurrent models with tied weights, but differ from our model in their use of inter-network communication and the lack of a gating mechanism.
98
+
99
+ Finally, there is another class of recent models that have a writeable memory arranged as (unbounded) stacks, linked lists or queues (Joulin & Mikolov, 2015; Grefenstette et al., 2015). Our model is different from these in that we use a key-value pair array instead of a stack, and in the experiments in this work, the array is of fixed size.
100
+
101
+ <table><tr><td>Model</td><td>T=10</td><td>T=20</td><td>T=40</td></tr><tr><td>MemN2N</td><td>0.09</td><td>0.633</td><td>0.896</td></tr><tr><td>LSTM</td><td>0</td><td>0.157</td><td>0.226</td></tr><tr><td>EntNet</td><td>0</td><td>0</td><td>0</td></tr><tr><td colspan="4">(a)</td></tr></table>
102
+
103
+ ![](images/abd67377581d9363ea9de7574d71b6796d8bbf5999f27f725ea9a51eb945e674.jpg)
104
+ Table 1: a) Error of different models on the World Model Task. b) Generalization of an EntNet trained up to $T = 2 0$ . All errors range from 0 to 1.
105
+
106
+ # 5 EXPERIMENTS
107
+
108
+ In this section we evaluate our model on three different datasets. Training details common to all experiments can be found in Appendix A.
109
+
110
+ # 5.1 SYNTHETIC WORLD MODEL TASK
111
+
112
+ We first study our model’s properties on a toy task designed to measure the ability to keep a world model in memory. In this task two agents are initially placed randomly on an $1 0 \times 1 0$ grid, and at each time step a randomly chosen agent either changes direction or moves ahead. After a certain number of time steps, the model is required to provide the locations of each of the agents, thus revealing its internal world model (details can be found in Appendix B). This task is challenging because the model must combine up to $T - 2$ supporting facts in order to answer the question correctly, and must also keep the locations of both agents in memory and update them at different times.
113
+
114
+ We compared the performance of a MemN2N, LSTM and EntNet. For the MemN2N, we set the number of hops equal to $T - 2$ and the embedding dimension to $d = 2 0$ . The EntNet had embedding dimension $d = 2 0$ and 5 memory slots, and the LSTM had 50 hidden units which resulted in it having significantly more parameters than the other two models. For each model, we repeated the experiment with 5 different initializations and reported the best performance. All models were trained with ADAM (Kingma & Ba, 2014) with initial learning rates set by grid search over $\{ 0 . 1 , 0 . 0 1 , 0 . 0 0 1 \}$ and divided by 2 every 10,000 updates. Table 1a shows the results. The MemN2N has the worst performance, which degrades quickly as the length of the sequence increases. The LSTM performs better, but still loses accuracy as the length of the sequence increases. In contrast, the EntNet is able to solve the task in all cases.
115
+
116
+ The ability to generalize to sequences longer than those seen during training is a desirable property, which suggests that the network has learned the dynamics of the world it is trying to model. It also means the model can be trained less expensively. To study this, we trained an EntNet on variable length sequences between 1 and 20, and evaluated it on different length sequences longer than 20. Results are shown in Table 1b. We see that the model is able to achieve good performance several times past its training horizon.
117
+
118
+ # 5.2 BABI TASKS
119
+
120
+ We next evaluate our model on the bAbI tasks, which are a collection of 20 synthetic questionanswering datasets first introduced in (Weston et al., 2015) designed to test a wide variety of reasoning abilities. They have since become a benchmark for memory-augmented neural networks and most of the related methods described in Section 4 have been tested on them. Performance is measured using two metrics: the average error across all tasks, and the number of failed tasks (more than $5 \%$ error). We used version 1.2 of the dataset with $1 0 \mathrm { k }$ samples. 1
121
+
122
+ Training Details We used a similar training setup as (Sukhbaatar et al., 2015). All models were trained with ADAM using a learning rate of $\eta = 0 . 0 1$ , which was divided by 2 every 25 epochs until 200 epochs were reached. Copying previous works (Sukhbaatar et al., 2015; Xiong et al., 2016), the capacity of the memory was limited to the most recent 70 sentences, except for task 3 which was limited to 130 sentences. Due to the high variance in model performance for some tasks, for each task we conducted 10 runs with different initializations and picked the best model based on performance on the validation set, as it has been done in previous work. In all experiments, our model had embedding dimension size $d = 1 0 0$ and 20 memory slots.
123
+
124
+ Table 2: Results on bAbI Tasks with 10k training samples.
125
+
126
+ <table><tr><td>Task</td><td>NTM</td><td>D-NTM</td><td>MemN2N</td><td>DNC</td><td>DMN+</td><td>EntNet</td></tr><tr><td></td><td>31.5</td><td>4.4</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>1: 1 supporting fact 2: 2 supporting facts</td><td>54.5</td><td>27.5</td><td>0.3</td><td>0.4</td><td>0.3</td><td>0.1</td></tr><tr><td>3: 3 supporting facts</td><td>43.9</td><td>71.3</td><td>2.1</td><td>1.8</td><td>1.1</td><td>4.1</td></tr><tr><td>4: 2 argument relations</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>5:3 argument relations</td><td>0.8</td><td>1.7</td><td>0.8</td><td>0.8</td><td>0.5</td><td>0.3</td></tr><tr><td>6: yes/no questions</td><td>17.1</td><td>1.5</td><td>0.1</td><td>0</td><td>0</td><td>0.2</td></tr><tr><td>7: counting</td><td>17.8</td><td>6.0</td><td>2.0</td><td>0.6</td><td>2.4</td><td>0</td></tr><tr><td>8: lists/sets</td><td>13.8</td><td>1.7</td><td>0.9</td><td>0.3</td><td>0.0</td><td>0.5</td></tr><tr><td>9:simple negation</td><td>16.4</td><td>0.6</td><td>0.3</td><td>0.2</td><td>0.0</td><td>0.1</td></tr><tr><td>10:indefinite knowledge</td><td>16.6</td><td>19.8</td><td>0</td><td>0.2</td><td>0</td><td>0.6</td></tr><tr><td>11:basic coreference</td><td>15.2</td><td>0</td><td>0.0</td><td>0</td><td>0.0</td><td>0.3</td></tr><tr><td>12:conjunction</td><td>8.9</td><td>6.2</td><td>0</td><td>0</td><td>0.2</td><td>0</td></tr><tr><td>13:compound coreference</td><td>7.4</td><td>7.5</td><td>0</td><td>0</td><td>0</td><td>1.3</td></tr><tr><td>14: time reasoning</td><td>24.2</td><td>17.5</td><td>0.2</td><td>0.4</td><td>0.2</td><td>0</td></tr><tr><td>15:basic deduction</td><td>47.0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>16:basic induction</td><td>53.6</td><td>49.6</td><td>51.8</td><td>55.1</td><td>45.3</td><td>0.2</td></tr><tr><td>17: positional reasoning</td><td>25.5</td><td>1.2</td><td>18.6</td><td>12.0</td><td>4.2</td><td>0.5</td></tr><tr><td>18:size reasoning</td><td>2.2</td><td>0.2</td><td>5.3</td><td>0.8</td><td>2.1</td><td>0.3</td></tr><tr><td>19: path finding</td><td>4.3</td><td>39.5</td><td>2.3</td><td>3.9</td><td>0.0</td><td>2.3</td></tr><tr><td>20: agent&#x27;s motivation</td><td>1.5</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Failed Tasks (&gt; 5% error): Mean Error:</td><td>16</td><td>9</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td></td><td>20.1</td><td>12.8</td><td>4.2</td><td>3.8</td><td>2.8</td><td>0.5</td></tr></table>
127
+
128
+ In Table 2 we compare our model to various other state-of-the-art models in the literature: the larger MemN2N reported in the appendix of (Sukhbaatar et al., 2015), the Dynamic Memory Network of (Xiong et al., 2016), the Dynamic Neural Turing Machine (Gulcehre et al., 2016), the Neural Turing Machine (Graves et al., 2014) and the Differentiable Neural Computer (Graves et al., 2016). Our model is able to solve all the tasks, outperforming the other models in terms of both the number of solved tasks and the average error.
129
+
130
+ To analyze what kind of representations our model can learn, we conducted an additional experiment on Task 2 using a simple BoW sentence encoding and key vectors which were tied to entity embeddings. This was designed to make the model more interpretable, since the weight tying forces memory slots to encode information about specific entities. 2 After training, we ran the model over a story and computed the cosine distance between $\phi ( H h _ { j } )$ and each row $r _ { i }$ of the decoder matrix $R$ . This gave us a score which measures the affinity between a given memory slot and each word in the vocabulary. Table 3 shows the nearest neighboring words for each memory slot (which itself corresponds to an entity). We see that the model has indeed stored locations of all of the objects and characters in its memory slots which reflect the final state of the story. In particular, it has the correct answer readily stored in the memory slot of the entity being inquired about (the milk). It also has correct location information about all other non-location entities stored in the appropriate memory slots. Note that it does not store useful or correct information in the memory slots corresponding to locations, most likely because this task does not contain questions about locations (such as “who is in the kitchen?”).
131
+
132
+ Table 3: On the left, the network’s final “world model” after reading the story on the right. First and second nearest neighbors from each memory slot are shown, along with their cosine distance.
133
+
134
+ <table><tr><td>Key</td><td>1-NN</td><td>2-NN</td></tr><tr><td>football milk john mary sandra daniel</td><td>hallway (0.135) garden (0.111) kitchen (0.501) garden (0.442) hallway (0.394) hallway (0.689)</td><td>dropped (0.056) took (0.011) dropped (0.027) took (0.034) kitchen (0.121) to (0.076)</td></tr><tr><td>bedroom kitchen garden hallway</td><td>hallway (0.367) kitchen (0.483) garden (0.281) hallway (0.475)</td><td>dropped (0.075) daniel (0.029) where (0.026) left (0.060)</td></tr></table>
135
+
136
+ <table><tr><td>Story</td></tr><tr><td>mary got the milk there john moved to the bedroom sandra went back to the kitchen mary travelled to the hallway john got the football there john went to the hallway john put down the football mary went to the garden john went to the kitchen sandra travelled to the hallway</td></tr></table>
137
+
138
+ # 5.3 CHILDREN’S BOOK TEST (CBT)
139
+
140
+ We next evaluated our model on the Children’s Book Test (Hill et al., 2016), which is a semantic language modeling (sentence completion) benchmark built from children’s books that are freely available from Project Gutenberg 3. Models are required to read 20 consecutive sentences from a given story and use this context to fill in a missing word from the 21st sentence. More specifically, each sample consists of a tuple $( S , q , C , a )$ where $S$ is the story consisting of 20 sentences, $Q$ is the 21st sentence with one word replaced by a special blank token, $C$ is a set of 10 candidate answers of the same type as the missing word (for example, common nouns or named entities), and $a$ is the true answer (which is always contained in $C$ ).
141
+
142
+ It was shown in (Hill et al., 2016) that methods with limited memory such as LSTMs perform well on more frequent, syntax based words such as prepositions and verbs, being similar to human performance, but poorly relative to humans on more semantically meaningful words such as named entities and common nouns. Therefore, most recent methods have been evaluated on the Named Entity and Common Noun subtasks, since they better test the ability of a model to make use of wider contextual information.
143
+
144
+ Training Details We adopted the same window memory approach used in (Hill et al., 2016), where each input corresponds to a window of text from $\left\{ w _ { \left( i - b - 1 / 2 \right) } . . . w _ { i } . . . w _ { \left( i + \left( b - 1 \right) / 2 \right) } \right\}$ centered at a candidate $w _ { i } \in C$ . In our experiments we set $b = 5$ . All models were trained using standard stochastic gradient descent (SGD) with a fixed learning rate of 0.001. We used separate input encodings for the update and gating functions, and applied a dropout rate of 0.5 to the word embedding dimensions. Key embeddings were tied to the embeddings of the candidate words, resulting in 10 hidden blocks, one per member of $C$ . Due to the weight tying, we did not need a decoder matrix and used the distribution over candidates to directly produce a prediction, as described in Section 3.
145
+
146
+ We found that a simpler version of the model worked best, with $U = V = 0$ , $W = I$ and $\phi$ equal to the identity. We also removed the normalization step in this simplified model, which we found to hurt performance. This can be explained by the fact that the maximum frequency baseline model in (Hill et al., 2016) has performance which is significantly higher than random, and including the normalization step hides this useful frequency-based information.
147
+
148
+ Results We draw a distinction between two setups: the single-pass setup, where the model must read the story and query in order and immediately produce an output, and the multi-pass setup, where the model can use the query to perform attention over the story. The first setup is more challenging because the model does not know beforehand which query it will be presented with, and must learn to retain information which is useful for a wide variety of potential queries. For this reason it can be viewed as a test of the model’s ability to construct a general-purpose representation of the current state of the story. The second setup leverages all available information, and allows the model to use knowledge of which question will be asked when it reads the story.
149
+
150
+ Table 4: Accuracy on CBT test set. Single-pass models encode the document before seeing the query, multi-pass models have access to the query at read time.
151
+
152
+ <table><tr><td>Model</td><td></td><td>Named Entities</td><td>Common Nouns</td></tr><tr><td rowspan="5">Single Pass</td><td>Kneser-Ney Language Model + cache</td><td>0.439</td><td>0.577</td></tr><tr><td>LSTMs (context+ query)</td><td>0.418</td><td>0.560</td></tr><tr><td>Window LSTM</td><td>0.436</td><td>0.582</td></tr><tr><td>EntNet (general)</td><td>0.484</td><td>0.540</td></tr><tr><td>EntNet (simple)</td><td>0.616</td><td>0.588</td></tr><tr><td></td><td></td><td>0.493</td><td></td></tr><tr><td rowspan="7">Multi Pass</td><td>MemNN</td><td></td><td>0.554</td></tr><tr><td>MemNN + self-sup.</td><td>0.666</td><td>0.630</td></tr><tr><td>Attention Sum Reader (Kadlec et al.,2016)</td><td>0.686</td><td>0.634</td></tr><tr><td>Gated-Attention Reader (Bhuwan Dhingra &amp; Salakhutdinov,2016)</td><td>0.690</td><td>0.639</td></tr><tr><td>EpiReader (Trischler et al.,2016)</td><td>0.697</td><td>0.674</td></tr><tr><td>AoAReader (Cui et al.,2016)</td><td>0.720</td><td>0.694</td></tr><tr><td>NSE Adaptive Computation (Munkhdalai &amp; Yu, 2016)</td><td>0.732</td><td>0.714</td></tr></table>
153
+
154
+ In Table 4, we show the performance of the general EntNet, the simplified EntNet, as well as other single-pass models taken from (Hill et al., 2016). The general EntNet performs better than the LSTMs and $n$ -gram model on the Named Entities Task, but lags behind on the Common Nouns task. The simplified EntNet outperforms all other single-pass models on both tasks, and also performs better than the Memory Network which does not use the self-supervision heuristic. However, there is still a performance gap when compared to more sophisticated machine comprehension models, many of which perform multiple layers of attention over the story using query knowledge. The fact that the simplified EntNet is able to obtain decent performance is encouraging since it indicates that the model is able to build an internal representation of the story which it can then use to answer a relatively diverse set of queries.
155
+
156
+ # 6 CONCLUSION
157
+
158
+ Two closely related challenges in artificial intelligence are designing models which can maintain an estimate of the state of a world with complex dynamics over long timescales, and models which can predict the forward evolution of the state of the world from partial observation. In this paper, we introduced the Recurrent Entity Network, a new model that makes a promising step towards the first goal. Our model is able to accurately track the world state while reading text stories, which enables it to set a new state-of-the-art on the bAbI tasks, the competitive benchmark of story understanding, by being the first model to solve them all. We also showed that our model is able to capture simple dynamics over long timescales, and is able to perform competitively on a real-world dataset.
159
+
160
+ Although our model was able to solve all the bAbI tasks using $1 0 \mathrm { k }$ training samples, we found that performance dropped considerably when using only 1k samples (see Appendix). Most recent work on the bAbI tasks has focused on the $1 0 \mathrm { k }$ samples setting, and we would like to emphasize that solving them in the 1k samples setting remains an open problem which will require improving the sample efficiency of reasoning models, including ours.
161
+
162
+ Recent works have made some progress towards the second goal of forward modeling, for instance in capturing simple physics (Lerer et al., 2016), predicting future frames in video (Mathieu et al., 2015) or responses in dialog (Weston, 2016). Although we have only applied our model to tasks with textual inputs in this work, the architecture is general and future work should investigate how to combine the EntNet’s tracking abilities with such predictive models.
163
+
164
+ REFERENCES
165
+ Battaglia, Peter W., Pascanu, Razvan, Lai, Matthew, Rezende, Danilo Jimenez, and Kavukcuoglu, Koray. Interaction networks for learning about objects, relations and physics. CoRR, abs/1612.00222, 2016. URL http://dblp.uni-trier.de/db/journals/corr/ corr1612.html#BattagliaPLRK16.
166
+ Bhuwan Dhingra, Hanxiao Liu, William Cohen and Salakhutdinov, Ruslan. Gated-attention readers for text comprehension. CoRR, abs/1606.01549, 2016. URL http://arxiv.org/abs/ 1606.01549.
167
+ Chandar, Sarath, Ahn, Sungjin, Larochelle, Hugo, Vincent, Pascal, Tesauro, Gerald, and Bengio, Yoshua. Hierarchical memory networks. arXiv preprint arXiv:1605.07427, 2016.
168
+ Chang, Michael B., Ullman, Tomer, Torralba, Antonio, and Tenenbaum, Joshua B. A compositional object-based approach to learning physical dynamics. CoRR, abs/1612.00341, 2016. URL http: //arxiv.org/abs/1612.00341.
169
+ Cho, Kyunghyun, van Merrienboer, Bart, Bahdanau, Dzmitry, and Bengio, Yoshua. On the properties of neural machine translation: Encoder-decoder approaches. In Proceedings of SSST@EMNLP 2014, Eighth Workshop on Syntax, Semantics and Structure in Statistical Translation, Doha, Qatar, 25 October 2014, pp. 103–111, 2014. URL http://aclweb.org/ anthology/W/W14/W14-4012.pdf.
170
+ Collobert, Ronan, Kavukcuoglu, Koray, and Farabet, Clment. Torch7: A matlab-like environment for machine learning, 2011.
171
+ Cui, Yiming, Chen, Zhipeng, Wei, Si, Wang, Shijin, Liu, Ting, and Hu, Guoping. Attention-overattention neural networks for reading comprehension. CoRR, abs/1607.04423, 2016. URL http: //arxiv.org/abs/1607.04423.
172
+ Fragkiadaki, Katerina, Agrawal, Pulkit, Levine, Sergey, and Malik, Jitendra. Learning visual predictive models of physics for playing billiards. CoRR, abs/1511.07404, 2015. URL http: //arxiv.org/abs/1511.07404.
173
+ Graves, Alex, Wayne, Greg, and Dnihelka, Ivo. Neural Turing Machines, September 2014. URL http://arxiv.org/abs/1410.5401.
174
+ Graves, Alex, Wayne, Greg, Reynolds, Malcolm, Harley, Tim, Danihelka, Ivo, Grabska-Barwinska, ´ Agnieszka, Colmenarejo, Sergio Gomez, Grefenstette, Edward, Ramalho, Tiago, Agapiou, John, ´ et al. Hybrid computing using a neural network with dynamic external memory. Nature, 2016.
175
+ Grefenstette, Edward, Hermann, Karl Moritz, Suleyman, Mustafa, and Blunsom, Phil. Learning to transduce with unbounded memory. In Advances in Neural Information Processing Systems, pp. 1828–1836, 2015.
176
+ Gulcehre, Caglar, Chandar, Sarath, Cho, Kyunghyun, and Bengio, Yoshua. Dynamic neural turing machines with soft and hard addressing schemes. CoRR, abs/1607.00036, 2016. URL http: //arxiv.org/abs/1607.00036.
177
+ He, Kaiming, Zhang, Xiangyu, Ren, Shaoqing, and Sun, Jian. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. CoRR, abs/1502.01852, 2015.
178
+ Hill, Felix, Bordes, Antoine, Chopra, Sumit, and Weston, Jason. The goldilocks principle: Reading children’s books with explicit memory representations. In Proceedings of the International Conference on Learning Representations. 2016.
179
+ Hochreiter, Sepp and Schmidhuber, Jurgen. Long short-term memory. ¨ Neural Comput., 9(8):1735– 1780, November 1997. ISSN 0899-7667. doi: 10.1162/neco.1997.9.8.1735. URL http://dx. doi.org/10.1162/neco.1997.9.8.1735.
180
+
181
+ Joulin, Armand and Mikolov, Tomas. Inferring algorithmic patterns with stack-augmented recurrent nets. arXiv preprint arXiv:1503.01007, 2015.
182
+
183
+ Kadlec, Rudolf, Schmid, Martin, Bajgar, Ondrej, and Kleindienst, Jan. Text understanding with the attention sum reader network. CoRR, abs/1603.01547, 2016. URL http://arxiv.org/ abs/1603.01547.
184
+
185
+ Kingma, Diederik P. and Ba, Jimmy. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2014. URL http://arxiv.org/abs/1412.6980.
186
+
187
+ Lerer, Adam, Gross, Sam, and Fergus, Rob. Learning physical intuition of block towers by example. In Proceedings of the 33nd International Conference on Machine Learning, ICML 2016, New York City, NY, USA, June 19-24, 2016, pp. 430–438, 2016. URL http://jmlr.org/ proceedings/papers/v48/lerer16.html.
188
+
189
+ Li, Yujia, Tarlow, Daniel, Brockschmidt, Marc, and Zemel, Richard S. Gated graph sequence neural networks. CoRR, abs/1511.05493, 2015. URL http://arxiv.org/abs/1511.05493.
190
+
191
+ Mathieu, Michael, Couprie, Camille, and LeCun, Yann. Deep multi-scale video prediction beyond ¨ mean square error. CoRR, abs/1511.05440, 2015. URL http://arxiv.org/abs/1511. 05440.
192
+
193
+ Miller, Alexander, Fisch, Adam, Dodge, Jesse, Karimi, Amir-Hossein, Bordes, Antoine, and Weston, Jason. Key-value memory networks for directly reading documents. arXiv preprint arXiv:1606.03126, 2016.
194
+
195
+ Munkhdalai, Tsendsuren and Yu, Hong. Reasoning with memory augmented neural networks for language comprehension. CoRR, abs/1610.06454, 2016. URL https://arxiv.org/abs/ 1610.06454.
196
+
197
+ Sukhbaatar, Sainbayar, szlam, arthur, Weston, Jason, and Fergus, Rob. End-to-end memory networks. In Cortes, C., Lawrence, N. D., Lee, D. D., Sugiyama, M., and Garnett, R. (eds.), Advances in Neural Information Processing Systems 28, pp. 2440–2448. Curran Associates, Inc., 2015. URL http://papers.nips.cc/paper/5846-end-to-end-memory-networks. pdf.
198
+
199
+ Sukhbaatar, Sainbayar, Szlam, Arthur, and Fergus, Rob. Learning multiagent communication with backpropagation. CoRR, abs/1605.07736, 2016. URL http://arxiv.org/abs/1605. 07736.
200
+
201
+ Trischler, Adam, Ye, Zheng, Yuan, Xingdi, and Suleman, Kaheer. Natural language comprehension with the epireader. CoRR, abs/1606.02270, 2016. URL http://arxiv.org/abs/1606. 02270.
202
+
203
+ Weston, Jason. Dialog-based language learning. CoRR, abs/1604.06045, 2016. URL http:// arxiv.org/abs/1604.06045.
204
+
205
+ Weston, Jason, Chopra, Sumit, and Bordes, Antoine. Memory networks. CoRR, abs/1410.3916, 2014. URL http://arxiv.org/abs/1410.3916.
206
+
207
+ Weston, Jason, Bordes, Antoine, Chopra, Sumit, and Mikolov, Tomas. Towards ai-complete question answering: A set of prerequisite toy tasks. CoRR, abs/1502.05698, 2015. URL http://arxiv.org/abs/1502.05698.
208
+
209
+ Xiong, Caiming, Merity, Stephen, and Socher, Richard. Dynamic memory networks for visual and textual question answering. In ICML, 2016.
210
+
211
+ # A TRAINING DETAILS
212
+
213
+ All models were implemented using Torch (Collobert et al., 2011). In all experiments, we initialized our model by drawing weights from a Gaussian distribution with mean zero and standard deviation 0.1, except for the PReLU slopes and encoder weights which were initialized to 1. Note that the PReLU initialization is related to two of the heuristics used in (Sukhbaatar et al., 2015), namely starting training with a purely linear model, and adding non-linearities to half of the hidden units. Our initialization allows the model to choose when and how much to enter the non-linear regime. Initializing the encoder weights to 1 corresponds to beginning with a BoW encoding, which the model can then choose to modify. The initial values of the memory slots were initialized to the key values, which we found to help performance. Optimization was done with SGD or ADAM using minibatches of size 32, and gradients with norm greater than 40 were clipped to 40. A null symbol whose embedding was constrained to be zero was used to pad all sentences or windows to a fixed size.
214
+
215
+ # B DETAILS OF WORLD MODEL EXPERIMENTS
216
+
217
+ Two agents are initially placed at random on a $1 0 ~ \times ~ 1 0$ grid with 100 distinct locations $\{ ( 1 , 1 ) , \bar { ( 1 , 2 ) } , . . . ( 9 , 1 0 ) , \bar { ( 1 0 , 1 0 ) } \}$ . At each time step an agent is chosen at random. There are two types of actions: the agent can face a given direction, or can move a number of steps ahead. Actions are sampled until a legal action is found by either choosing to change direction or move with equal probability. If they change direction, the direction is chosen between north, south, east and west with equal probability. If they move, the number of steps is randomly chosen between 1 and 5. A legal action is one which does not place the agent off the grid. Stories are given to the network in textual form, an example of which is below. The first action after each agent is placed on the grid is to face a given direction. Therefore, the maximum number of actions made by one agent is $T - 2$ . The network learns word embeddings for all words in the vocabulary such as locations, agent identifiers and actions. At question time, the model must predict the correct answer (which will always be a location) from all the tokens in the vocabulary.
218
+
219
+ agent1 is at (2,8)
220
+ agent1 faces-N
221
+ agent2 is at (9,7)
222
+ agent2 faces-N
223
+ agent2 moves-2
224
+ agent2 faces-E
225
+ agent2 moves-1
226
+ agent1 moves-1
227
+ agent2 faces-S
228
+ agent2 moves-5
229
+ Q1: where is agent1 ?
230
+ Q2: where is agent2 ?
231
+ A1: (2,9)
232
+ A2: (10,4)
233
+
234
+ # C ADDITIONAL RESULTS ON BABI TASKS
235
+
236
+ We provide some additional experiments on the bAbI tasks, in order to better understand the influence of architecture, weight tying, and amount of training data. Table 5 shows results when a simple BoW encoding is used for the inputs. Here, the EntNet still performs better than a MemN2N which uses the same encoding scheme, indicating that the architecture has an important effect. Tying the key vectors to entities did not help, and hurt performance for some tasks. Table 6 shows results when using only 1k training samples. In this setting, the EntNet performs worse than the MemN2N.
237
+
238
+ Table 5: Error rates on bAbI Tasks with inputs are encoded using BoW. “Tied” refers to the case where key vectors are tied with entity embeddings.
239
+
240
+ <table><tr><td>Task</td><td>MemN2N</td><td>EntNet-tied</td><td>EntNet</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td>1:1 supporting fact</td><td>0</td><td>0</td><td>0</td></tr><tr><td>2:2 supporting facts</td><td>0.6</td><td>3.0</td><td>1.2</td></tr><tr><td>3: 3 supporting facts</td><td>7</td><td>9.6</td><td>9.0</td></tr><tr><td>4: 2 argument relations</td><td>32.6</td><td>33.8</td><td>31.8</td></tr><tr><td>5:3 argument relations</td><td>10.2</td><td>1.7</td><td>3.5</td></tr><tr><td>6: yes/no questions</td><td>0.2</td><td>0</td><td>0 0.5</td></tr><tr><td>7: counting 8: lists/sets</td><td>10.6</td><td>0.5</td><td>0.3</td></tr><tr><td>9: simple negation</td><td>2.6 0.3</td><td>0.1</td><td>0</td></tr><tr><td>10: indefinite knowledge</td><td>0.5</td><td>0 0</td><td>0</td></tr><tr><td>11:basic coreference</td><td>0</td><td>0.3</td><td>0</td></tr><tr><td>12: conjunction</td><td>0</td><td>0</td><td>0</td></tr><tr><td>13: compound coreference</td><td>0</td><td>0.2</td><td>0.4</td></tr><tr><td>14: time reasoning</td><td>0.1</td><td>6.2</td><td>0.1</td></tr><tr><td>15:basic deduction</td><td>11.4</td><td>12.5</td><td>12.1</td></tr><tr><td>16:basic induction</td><td>52.9</td><td>46.5</td><td>0</td></tr><tr><td>17: positional reasoning</td><td>39.3</td><td>40.5</td><td>40.5</td></tr><tr><td>18: size reasoning</td><td>40.5</td><td>44.2</td><td>45.7</td></tr><tr><td>19: path finding</td><td>74.4</td><td>75.1</td><td>74.0</td></tr><tr><td>20: agent&#x27;s motivation</td><td>0</td><td>0</td><td>0</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td>Failed Tasks (&gt; 5%):</td><td>9</td><td>8</td><td>6</td></tr><tr><td>Mean Error:</td><td>15.6</td><td>13.7</td><td>10.9</td></tr></table>
241
+
242
+ Table 6: Results on bAbI Tasks with 1k samples.
243
+
244
+ <table><tr><td>Task</td><td>MemN2N</td><td>EntNet</td></tr><tr><td></td><td></td><td></td></tr><tr><td>1: 1 supporting fact</td><td>0</td><td>0.7</td></tr><tr><td>2:2 supporting facts</td><td>8.3</td><td>56.4</td></tr><tr><td>3: 3 supporting facts</td><td>40.3</td><td>69.7</td></tr><tr><td>4:2 argument relations</td><td>2.8</td><td>1.4</td></tr><tr><td>5: 3 argument relations</td><td>13.1</td><td>4.6</td></tr><tr><td>6: yes/no questions</td><td>7.6</td><td>30.0</td></tr><tr><td>7: counting</td><td>17.3</td><td>22.3</td></tr><tr><td>8: lists/sets</td><td>10.0</td><td>19.2</td></tr><tr><td>9:simple negation</td><td>13.2</td><td>31.5</td></tr><tr><td>10:indefinite knowledge</td><td>15.1</td><td>15.6</td></tr><tr><td>11:basic coreference</td><td>0.9</td><td>8.0</td></tr><tr><td>12:conjunction</td><td>0.2</td><td>0.8</td></tr><tr><td>13: compound coreference</td><td>0.4</td><td>9.0</td></tr><tr><td>14: time reasoning</td><td>1.7</td><td>62.9</td></tr><tr><td>15: basic deduction</td><td>0</td><td>57.8</td></tr><tr><td>16:basic induction</td><td>1.3</td><td>53.2</td></tr><tr><td>17: positional reasoning</td><td>51.0</td><td>46.4</td></tr><tr><td>18:size reasoning</td><td>11.1</td><td>8.8 90.4</td></tr><tr><td>19: path finding 20:agent&#x27;s motivation</td><td>82.8 0</td><td>2.6</td></tr><tr><td></td><td></td><td></td></tr><tr><td>Failed Tasks (&gt; 5%):</td><td>11</td><td>15</td></tr><tr><td>Mean Error:</td><td>13.9</td><td>29.6</td></tr></table>
parse/train/rJTKKKqeg/rJTKKKqeg_content_list.json ADDED
@@ -0,0 +1,1186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "TRACKING THE WORLD STATE WITHRECURRENT ENTITY NETWORKS",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 616,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Mikael Henaff1,2, Jason Weston1, Arthur Szlam1, Antoine Bordes1 and Yann LeCun1,2 ",
17
+ "bbox": [
18
+ 169,
19
+ 174,
20
+ 772,
21
+ 190
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1Facebook AI Research \n2Courant Institute, New York University \n{mbh305}@nyu.edu, {jase,aszlam,abordes,yann}@fb.com ",
28
+ "bbox": [
29
+ 174,
30
+ 203,
31
+ 661,
32
+ 244
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 286,
43
+ 544,
44
+ 303
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "We introduce a new model, the Recurrent Entity Network (EntNet). It is equipped with a dynamic long-term memory which allows it to maintain and update a representation of the state of the world as it receives new data. For language understanding tasks, it can reason on-the-fly as it reads text, not just when it is required to answer a question or respond as is the case for a Memory Network (Sukhbaatar et al., 2015). Like a Neural Turing Machine or Differentiable Neural Computer (Graves et al., 2014; 2016) it maintains a fixed size memory and can learn to perform location and content-based read and write operations. However, unlike those models it has a simple parallel architecture in which several memory locations can be updated simultaneously. The EntNet sets a new state-of-the-art on the bAbI tasks, and is the first method to solve all the tasks in the $1 0 \\mathrm { k }$ training examples setting. We also demonstrate that it can solve a reasoning task which requires a large number of supporting facts, which other methods are not able to solve, and can generalize past its training horizon. It can also be practically used on large scale datasets such as Children’s Book Test, where it obtains competitive performance, reading the story in a single pass. ",
51
+ "bbox": [
52
+ 233,
53
+ 323,
54
+ 764,
55
+ 545
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 582,
66
+ 336,
67
+ 598
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "The essence of intelligence is the ability to predict. An intelligent agent must be able to predict unobserved facts about their environment from limited percepts (visual, auditory, textual, or otherwise), combined with their knowledge of the past. In order to reason and plan, they must be able to predict how an observed event or action will affect the state of the world. Arguably, the ability to maintain an estimate of the current state of the world, combined with a forward model of how the world evolves, is a key feature of intelligent agents. ",
74
+ "bbox": [
75
+ 174,
76
+ 617,
77
+ 825,
78
+ 700
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "A natural way for an agent to represent the world is to maintain a set of high-level concepts or entities together with their properties, which are updated as new information is received. For example, if a percept is the textual description of an event, such as “John walks out of the kitchen”, the agent should learn to update its estimate of John’s location, as well as the list (and number) of people present in each room. If John was carrying a bag, the location of the bag and the list of objects in the kitchen must also be updated. When we read a story, each sentence we read or hear causes us to update our internal representation of the current state of the world within the story. The flow of the story is captured by the evolution of this state of the world. ",
85
+ "bbox": [
86
+ 174,
87
+ 708,
88
+ 823,
89
+ 819
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "At any given time, an agent typically receives limited information about the state of the world, and should therefore be able to infer new information through partial observation. In this paper, we investigate this problem through a simple story understanding scenario, in which the agent is given a sequence of textual statements and events, and then given another series of statements about the final state of the world. If the second series of statements is given in the form of questions about the final state of the world together with their correct answers, the agent should be able to learn from them and its performance can be measured by the accuracy of its answers. ",
96
+ "bbox": [
97
+ 174,
98
+ 827,
99
+ 825,
100
+ 924
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Even with this weak form of supervision, the system may learn basic dynamical constraints about the world. For example, it may learn that a person or object cannot be in two locations at the same time, or may learn simple update rules such as incrementing and decrementing the number of persons or objects in a room. It may also learn basic rules of approximate (logical) inference, such as the fact that objects belonging to the same category tend to have similar properties (light objects can be carried over from rooms to rooms for instance). ",
107
+ "bbox": [
108
+ 174,
109
+ 103,
110
+ 823,
111
+ 186
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "We propose to handle this scenario with a new kind of memory-augmented neural network that uses a distributed memory and processor architecture: the Recurrent Entity Network (EntNet). The model consists of a fixed number of dynamic memory cells, each containing a vector key $w _ { j }$ and a vector value (or content) $h _ { j }$ . Each cell is associated with its own “processor”, a simple gated recurrent network that may update the cell value given an input. If each cell learns to represent a concept or entity in the world, one can imagine a gating mechanism that, based on the key and content of the memory cells, will only modify the cells that concern the entities mentioned in the input. In the current version of the model, there is no direct interaction between the memory cells, hence the system can be seen as multiple identical processors functioning in parallel, with distributed local memory. Alternatively, the EntNet can be seen as a bank of gated RNNs (all sharing the same parameters), whose hidden states correspond to latent concepts and attributes, and whose parameters describe the laws of the world according to which the attributes of objects are updated. The sharing of these parameters reflects an invariance of these laws across object instances, similarly to how the weight tying scheme in a CNN reflects an invariance of image statistics across locations. Their hidden state is updated only when new information relevant to their concept is received, and remains otherwise unchanged. The keys used in the addressing/gating mechanism also correspond to concepts or entities, but are modified only during learning, not during inference. ",
118
+ "bbox": [
119
+ 174,
120
+ 194,
121
+ 825,
122
+ 429
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "The EntNet is able to solve all 20 bAbI question-answering tasks (Weston et al., 2015), a popular benchmark of story understanding, which to our knowledge sets a new state-of-the-art. Our experiments also indicate that the model indeed maintains an internal representation of the simplified world in which the stories take place, and that the model does not limit itself to storing the aspects of the world required to answer a specific question. We also introduce a new reasoning task which, unlike the bAbI tasks, requires a model to use a large number of supporting facts to answer the question, and show that the EntNet outperforms both LSTMs and Memory Networks (Sukhbaatar et al., 2015) by a significant margin. It is also able to generalize to sequences longer than those seen during training. Finally, our model also obtains competitive results on the Childrens Book Test (Hill et al., 2016), and performs best among models that read the text in a single pass before receiving knowledge of the question. ",
129
+ "bbox": [
130
+ 174,
131
+ 436,
132
+ 825,
133
+ 589
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 MODEL ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 176,
143
+ 609,
144
+ 267,
145
+ 626
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Our model is designed to process data in sequential form, and consists of three main parts: an input encoder, a dynamic memory and an output layer, which we now describe in detail. We developed it in the context of question answering on short stories where the inputs are word sequences, but the model could be adapted to many other contexts. ",
152
+ "bbox": [
153
+ 174,
154
+ 641,
155
+ 825,
156
+ 696
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "2.1 INPUT ENCODER ",
163
+ "text_level": 1,
164
+ "bbox": [
165
+ 176,
166
+ 713,
167
+ 331,
168
+ 727
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "The encoding layer summarizes an element of the input sequence with a vector of fixed length. Typically the input element at time $t$ is a sequence of words, e.g. a sentence or window of words. One is free to choose the encoding module to be any standard sequence encoder, which is an active area of research. Typical choices include a bag-of-words (BoW) representation or the final state of a recurrent neural net (RNN) run over the sequence. In this work, we use a simple encoder consisting of a learned multiplicative mask followed by a summation. More precisely, let the input at time $t$ be a sequence of words with embeddings $\\{ e _ { 1 } , . . . , e _ { k } \\}$ . The vector representation of this input is then: ",
175
+ "bbox": [
176
+ 174,
177
+ 739,
178
+ 825,
179
+ 837
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "equation",
185
+ "img_path": "images/d5728a44399f4ce1933340e065a6123ff2c970f030e99d36bdf0c7d84dedd485.jpg",
186
+ "text": "$$\ns _ { t } = \\sum _ { i } f _ { i } \\odot e _ { i }\n$$",
187
+ "text_format": "latex",
188
+ "bbox": [
189
+ 442,
190
+ 853,
191
+ 553,
192
+ 886
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "The same set of vectors $\\{ f _ { 1 } , . . . , f _ { k } \\}$ are used at each time step and are learned jointly with the other parameters of the model. Note that the model can choose to adopt a standard BoW representation ",
199
+ "bbox": [
200
+ 173,
201
+ 895,
202
+ 825,
203
+ 924
204
+ ],
205
+ "page_idx": 1
206
+ },
207
+ {
208
+ "type": "image",
209
+ "img_path": "images/e1a75e8621689e8c39ada2bcd119684f909bae1e2db4ee19187e01a12568e02e.jpg",
210
+ "image_caption": [
211
+ "Figure 1: Diagram of the Recurrent Entity Network’s dynamic memory. Update equations 1 and 2 are represented by the module $f _ { \\theta }$ , where $\\theta$ is the set of trainable parameters. Equations 3 and 4 are represented by the gate, since they fullfill a similar function. "
212
+ ],
213
+ "image_footnote": [],
214
+ "bbox": [
215
+ 171,
216
+ 98,
217
+ 825,
218
+ 422
219
+ ],
220
+ "page_idx": 2
221
+ },
222
+ {
223
+ "type": "text",
224
+ "text": "by setting all weights in the multiplicative mask to 1, or can choose a positional encoding model as used in (Sukhbaatar et al., 2015). ",
225
+ "bbox": [
226
+ 174,
227
+ 506,
228
+ 821,
229
+ 535
230
+ ],
231
+ "page_idx": 2
232
+ },
233
+ {
234
+ "type": "text",
235
+ "text": "2.2 DYNAMIC MEMORY ",
236
+ "text_level": 1,
237
+ "bbox": [
238
+ 176,
239
+ 553,
240
+ 352,
241
+ 568
242
+ ],
243
+ "page_idx": 2
244
+ },
245
+ {
246
+ "type": "text",
247
+ "text": "The dynamic memory is a gated recurrent network with a (partially) block structured weight tying scheme. We divide the hidden states of the network into blocks $h _ { 1 } , . . . , h _ { m }$ ; the full hidden state is the concatenation of the $h _ { j }$ . In the experiments below, $m$ is of the order of 5 to 20, and each block $h _ { j }$ is of the order of 20 to 100 units. ",
248
+ "bbox": [
249
+ 174,
250
+ 579,
251
+ 825,
252
+ 635
253
+ ],
254
+ "page_idx": 2
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "At each time step $t$ , the content of the hidden states $\\{ h _ { j } \\}$ (which we will call the $j$ th memory) are updated using a set of key vectors $\\{ w _ { j } \\}$ and the encoded input $s _ { t }$ . In its most general form, the update equations of our model are given by: ",
259
+ "bbox": [
260
+ 174,
261
+ 641,
262
+ 825,
263
+ 684
264
+ ],
265
+ "page_idx": 2
266
+ },
267
+ {
268
+ "type": "equation",
269
+ "img_path": "images/352b5db3230089c9d89435ee09ece67e4bccf787690b6fc234eb3ab479e1537c.jpg",
270
+ "text": "$$\n\\begin{array} { r l } & { g _ { j } \\sigma \\big ( s _ { t } ^ { T } h _ { j } + s _ { t } ^ { T } w _ { j } \\big ) } \\\\ & { \\tilde { h _ { j } } \\phi \\big ( U h _ { j } + V w _ { j } + W s _ { t } \\big ) } \\\\ & { { h _ { j } } h _ { j } + g _ { j } \\circledast \\tilde { h _ { j } } } \\\\ & { { h _ { j } } \\displaystyle \\frac { h _ { j } } { \\vert \\vert h _ { j } \\vert \\vert } } \\end{array}\n$$",
271
+ "text_format": "latex",
272
+ "bbox": [
273
+ 398,
274
+ 709,
275
+ 599,
276
+ 810
277
+ ],
278
+ "page_idx": 2
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "Here $\\sigma$ represents a sigmoid, $g _ { j }$ is a gating function which determines how much the $j ^ { t h }$ memory should be updated, and $\\tilde { h _ { j } }$ is the new candidate value of the memory to be combined with the existing memory $h _ { j }$ . The function $\\phi$ can be chosen from any number of activation functions, in our experiments we use either parametric ReLU non-linearities (He et al., 2015) or the identity. The matrices $U , V , W$ are typically trainable parameters of the model, and are shared between all the blocks. They can also be fixed to certain values, such as the identity or zero, to yield a simpler model which we use in some of our experiments. ",
283
+ "bbox": [
284
+ 173,
285
+ 823,
286
+ 825,
287
+ 924
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "The gating function $g _ { j }$ contains two terms: a “content” term $s _ { t } ^ { T } h _ { j }$ which causes the gate to open for memory slots whose content matches the input, and a “location” term $s _ { t } ^ { T } w _ { j }$ which causes the gate to open for memory slots whose key matches the input. The final normalization step allows the model to forget previous information. To see this, note that since the memories lie on the unit sphere, all information is contained in their phase. Adding any vector to a given memory (other than the memory itself) will decrease the cosine distance between the original memory and the updated one. Therefore, as new information is added, old information is forgotten. ",
294
+ "bbox": [
295
+ 174,
296
+ 102,
297
+ 825,
298
+ 203
299
+ ],
300
+ "page_idx": 3
301
+ },
302
+ {
303
+ "type": "text",
304
+ "text": "2.3 OUTPUT MODULE ",
305
+ "text_level": 1,
306
+ "bbox": [
307
+ 174,
308
+ 222,
309
+ 341,
310
+ 236
311
+ ],
312
+ "page_idx": 3
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "Whenever the model is required to produce an output, it is presented with a query vector $q$ . Specifically, the output is computed using the following equations: ",
317
+ "bbox": [
318
+ 173,
319
+ 248,
320
+ 823,
321
+ 277
322
+ ],
323
+ "page_idx": 3
324
+ },
325
+ {
326
+ "type": "equation",
327
+ "img_path": "images/4b645c0a220497450ef855547dc3205a9986b97d8ffaa37fe22841f1bd8309a1.jpg",
328
+ "text": "$$\n\\begin{array} { l } { p _ { j } = \\mathrm { S o f t m a x } ( q ^ { T } h _ { j } ) } \\\\ { \\displaystyle \\boldsymbol { u } = \\sum _ { j } p _ { j } \\boldsymbol { h } _ { j } } \\\\ { \\boldsymbol { y } = R \\phi ( \\boldsymbol { q } + H \\boldsymbol { u } ) } \\end{array}\n$$",
329
+ "text_format": "latex",
330
+ "bbox": [
331
+ 428,
332
+ 303,
333
+ 570,
334
+ 381
335
+ ],
336
+ "page_idx": 3
337
+ },
338
+ {
339
+ "type": "text",
340
+ "text": "The matrices $H$ and $R$ are additional trainable parameters of the model. The output module can be viewed as a one-hop Memory Network (Sukhbaatar et al., 2015) with an additional non-linearity $\\phi$ between the internal state and the decoder matrix. If the memory slots correspond to specific words (as we will describe in the following section) which contain the answer, $p$ can be viewed as a distribution over potential answers and can be used to make a prediction directly or fed into a loss function, removing the need for the last two steps. ",
341
+ "bbox": [
342
+ 174,
343
+ 386,
344
+ 823,
345
+ 469
346
+ ],
347
+ "page_idx": 3
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "The entire model (all three components described above) is trained via backpropagation through time, receiving gradients from any time steps where the reader is required to produce an output, which are then propagated through the unrolled network. ",
352
+ "bbox": [
353
+ 176,
354
+ 477,
355
+ 823,
356
+ 518
357
+ ],
358
+ "page_idx": 3
359
+ },
360
+ {
361
+ "type": "text",
362
+ "text": "3 MOTIVATING EXAMPLE OF OPERATION",
363
+ "text_level": 1,
364
+ "bbox": [
365
+ 176,
366
+ 541,
367
+ 532,
368
+ 558
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "We now describe a motivating example of how our model can perform reasoning on-the-fly as it is ingesting input sequences. Let us suppose our model is reading a story, so the inputs are natural language sentences, and then it is required to answer questions about the story it has just read. ",
375
+ "bbox": [
376
+ 174,
377
+ 574,
378
+ 825,
379
+ 616
380
+ ],
381
+ "page_idx": 3
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "Our model is free to learn the key vectors $w _ { j }$ for each memory $j$ . One choice the model could make is to associate a single memory (via the key) with each entity in the story. The memory slot corresponding to a person could encode that person’s location, the objects they are carrying, or the people they are with, depending on what information is relevant for the task at hand. As new information is received indicating that objects are acquired or discarded, or the person changes location, their memory slot will change accordingly. Similarly useful updates can be made for memories corresponding to object and location entities as well. ",
386
+ "bbox": [
387
+ 174,
388
+ 622,
389
+ 825,
390
+ 720
391
+ ],
392
+ "page_idx": 3
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "In fact, we could encode this choice of memories directly into our model, which we consider as a type of prior knowledge. By tying the weights of the key vectors with the embeddings of specific words, we can encourage the model to record information about certain words occuring in the text which we believe to be important. For example, given a list of named entities (which could be produced by a standard tagger), we could make the model have a separate memory slot for each entity. We consider this “tied” variant in our experiments. Since the list of entities is independent of the training data, this variant can handle entities not seen in the training set, as long as their embeddings can be initialized in a reasonable way (such as pre-training on a larger corpus). ",
397
+ "bbox": [
398
+ 174,
399
+ 727,
400
+ 825,
401
+ 839
402
+ ],
403
+ "page_idx": 3
404
+ },
405
+ {
406
+ "type": "text",
407
+ "text": "Now, consider that the model reads the following two sentences, and the desired behavior of the gating function and update function at each memory as they are seen: ",
408
+ "bbox": [
409
+ 174,
410
+ 845,
411
+ 821,
412
+ 875
413
+ ],
414
+ "page_idx": 3
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "• Mary picked up the ball. \n• Mary went to the garden. ",
419
+ "bbox": [
420
+ 215,
421
+ 888,
422
+ 467,
423
+ 924
424
+ ],
425
+ "page_idx": 3
426
+ },
427
+ {
428
+ "type": "text",
429
+ "text": "As the first sentence $s _ { t }$ is ingested, and assuming memories encode entities, we would like the gates of the memories corresponding to both “Mary” and “ball” to activate. This is possible due to the location addressing term $s _ { t } ^ { T } w _ { j }$ which uses the key $w _ { j }$ . We expect that a well trained model would learn to do this. The model would hence modify both the entry corresponding to “Mary” to indicate that she is now carrying the ball, and also the entry corresponding to “ball”, to indicate that it is being carried by Mary. When the second sentence is seen, we would like the model to again modify the “Mary” entry to indicate that she is now in the garden, and also modify the “ball” entry to reflect its new location as well. Assuming the information for “Mary” is contained in the “ball” memory as described before, the gate corresponding to “ball” can activate due to the content addressing term $s _ { t } ^ { T } h _ { j }$ , even though the word “ball” does not occur in the second sentence. As before, the gate corresponding to the “Mary” entry can open due to the second term. ",
430
+ "bbox": [
431
+ 174,
432
+ 103,
433
+ 825,
434
+ 256
435
+ ],
436
+ "page_idx": 4
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "If the gating function and update function have weights such that the steps above are executed, then the memory will be in a state where questions such as “Where is the ball?” or “Where is Mary?” can be answered from the values of relevant memories, without the need for further complex reasoning. ",
441
+ "bbox": [
442
+ 176,
443
+ 263,
444
+ 821,
445
+ 305
446
+ ],
447
+ "page_idx": 4
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "4 RELATED WORK ",
452
+ "text_level": 1,
453
+ "bbox": [
454
+ 176,
455
+ 349,
456
+ 344,
457
+ 364
458
+ ],
459
+ "page_idx": 4
460
+ },
461
+ {
462
+ "type": "text",
463
+ "text": "The EntNet is related to gated recurrent models such as the LSTM (Hochreiter & Schmidhuber, 1997) and GRU (Cho et al., 2014), which also use gates to fix or modify the information stored in the hidden state. However, these models use scalar memory cells with full interactions between them, whereas ours has separate memory slots which could be seen as groups of hidden units with tied weights in the gating and update functions. Another important difference is the content-based matching term between the input and hidden state, which is not present in these models. ",
464
+ "bbox": [
465
+ 174,
466
+ 395,
467
+ 825,
468
+ 478
469
+ ],
470
+ "page_idx": 4
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "Our model also shares some similarities with the DNC/NTM framework of (Graves et al., 2014; 2016). There, as in our model, a block of hidden states acts as a set of read-writeable memories. On the other hand, the DNC has a relatively sophisticated controller network (such as an LSTM) which reads an input and outputs a number of interface vectors (such as keys and weightings) which are then combined via a softmax to read from and write to the external memory matrix. In contrast, our model can be viewed as a set of separate recurrent models whose hidden states store the memory slots. These hidden states are either fixed by the gates, or modified through a simple RNN-style update. The bulk of the reasoning is thus performed by these parallel recurrent models, rather than through a central controller. Moreover, instead of using a softmax, our model uses an independent gate for writing to each memory. ",
475
+ "bbox": [
476
+ 174,
477
+ 484,
478
+ 825,
479
+ 625
480
+ ],
481
+ "page_idx": 4
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "Our model is similar to a Memory Network and its variants (Weston et al., 2014; Sukhbaatar et al., 2015; Chandar et al., 2016; Miller et al., 2016) in the way it produces an output using a softmax over blocks of hidden states, and our encoding layer is inspired by techniques used in those works. However, Memory Networks explicitly store the entire input sequence in memory, and then sequentially update a controller’s hidden state via a softmax gating over the memories. In contrast, our model keeps a fixed number of blocks of hiddens as memories and updates each block with an independent gated RNN. The Dynamic Memory Network of (Xiong et al., 2016) also performs updates via a recurrent model, however it links memories to input tokens and updates them sequentially rather than in parallel. ",
486
+ "bbox": [
487
+ 174,
488
+ 631,
489
+ 825,
490
+ 756
491
+ ],
492
+ "page_idx": 4
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "The weight tying scheme and the parallel gated RNNs recall the gated graph network of (Li et al., 2015). If we interpret our work in that context, the “graph” is just a set of vertices with no edges; our gating mechanism is also somewhat different than the one they use. The CommNN model of (Sukhbaatar et al., 2016), the Interaction Network of (Battaglia et al., 2016), the Neural Physics Engine of (Chang et al., 2016) and the model of (Fragkiadaki et al., 2015) also use a set of parallel recurrent models with tied weights, but differ from our model in their use of inter-network communication and the lack of a gating mechanism. ",
497
+ "bbox": [
498
+ 174,
499
+ 763,
500
+ 823,
501
+ 861
502
+ ],
503
+ "page_idx": 4
504
+ },
505
+ {
506
+ "type": "text",
507
+ "text": "Finally, there is another class of recent models that have a writeable memory arranged as (unbounded) stacks, linked lists or queues (Joulin & Mikolov, 2015; Grefenstette et al., 2015). Our model is different from these in that we use a key-value pair array instead of a stack, and in the experiments in this work, the array is of fixed size. ",
508
+ "bbox": [
509
+ 174,
510
+ 867,
511
+ 823,
512
+ 924
513
+ ],
514
+ "page_idx": 4
515
+ },
516
+ {
517
+ "type": "table",
518
+ "img_path": "images/a97a3b50e9f13db800b878c8f6d0f0ad43ad12fdd24939d6c9ac62f0f6c43b94.jpg",
519
+ "table_caption": [],
520
+ "table_footnote": [],
521
+ "table_body": "<table><tr><td>Model</td><td>T=10</td><td>T=20</td><td>T=40</td></tr><tr><td>MemN2N</td><td>0.09</td><td>0.633</td><td>0.896</td></tr><tr><td>LSTM</td><td>0</td><td>0.157</td><td>0.226</td></tr><tr><td>EntNet</td><td>0</td><td>0</td><td>0</td></tr><tr><td colspan=\"4\">(a)</td></tr></table>",
522
+ "bbox": [
523
+ 181,
524
+ 113,
525
+ 465,
526
+ 186
527
+ ],
528
+ "page_idx": 5
529
+ },
530
+ {
531
+ "type": "image",
532
+ "img_path": "images/abd67377581d9363ea9de7574d71b6796d8bbf5999f27f725ea9a51eb945e674.jpg",
533
+ "image_caption": [
534
+ "Table 1: a) Error of different models on the World Model Task. b) Generalization of an EntNet trained up to $T = 2 0$ . All errors range from 0 to 1. "
535
+ ],
536
+ "image_footnote": [],
537
+ "bbox": [
538
+ 488,
539
+ 112,
540
+ 823,
541
+ 186
542
+ ],
543
+ "page_idx": 5
544
+ },
545
+ {
546
+ "type": "text",
547
+ "text": "5 EXPERIMENTS ",
548
+ "text_level": 1,
549
+ "bbox": [
550
+ 176,
551
+ 252,
552
+ 326,
553
+ 268
554
+ ],
555
+ "page_idx": 5
556
+ },
557
+ {
558
+ "type": "text",
559
+ "text": "In this section we evaluate our model on three different datasets. Training details common to all experiments can be found in Appendix A. ",
560
+ "bbox": [
561
+ 174,
562
+ 285,
563
+ 823,
564
+ 314
565
+ ],
566
+ "page_idx": 5
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "5.1 SYNTHETIC WORLD MODEL TASK ",
571
+ "text_level": 1,
572
+ "bbox": [
573
+ 176,
574
+ 332,
575
+ 454,
576
+ 347
577
+ ],
578
+ "page_idx": 5
579
+ },
580
+ {
581
+ "type": "text",
582
+ "text": "We first study our model’s properties on a toy task designed to measure the ability to keep a world model in memory. In this task two agents are initially placed randomly on an $1 0 \\times 1 0$ grid, and at each time step a randomly chosen agent either changes direction or moves ahead. After a certain number of time steps, the model is required to provide the locations of each of the agents, thus revealing its internal world model (details can be found in Appendix B). This task is challenging because the model must combine up to $T - 2$ supporting facts in order to answer the question correctly, and must also keep the locations of both agents in memory and update them at different times. ",
583
+ "bbox": [
584
+ 174,
585
+ 358,
586
+ 825,
587
+ 457
588
+ ],
589
+ "page_idx": 5
590
+ },
591
+ {
592
+ "type": "text",
593
+ "text": "We compared the performance of a MemN2N, LSTM and EntNet. For the MemN2N, we set the number of hops equal to $T - 2$ and the embedding dimension to $d = 2 0$ . The EntNet had embedding dimension $d = 2 0$ and 5 memory slots, and the LSTM had 50 hidden units which resulted in it having significantly more parameters than the other two models. For each model, we repeated the experiment with 5 different initializations and reported the best performance. All models were trained with ADAM (Kingma & Ba, 2014) with initial learning rates set by grid search over $\\{ 0 . 1 , 0 . 0 1 , 0 . 0 0 1 \\}$ and divided by 2 every 10,000 updates. Table 1a shows the results. The MemN2N has the worst performance, which degrades quickly as the length of the sequence increases. The LSTM performs better, but still loses accuracy as the length of the sequence increases. In contrast, the EntNet is able to solve the task in all cases. ",
594
+ "bbox": [
595
+ 174,
596
+ 463,
597
+ 825,
598
+ 602
599
+ ],
600
+ "page_idx": 5
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "The ability to generalize to sequences longer than those seen during training is a desirable property, which suggests that the network has learned the dynamics of the world it is trying to model. It also means the model can be trained less expensively. To study this, we trained an EntNet on variable length sequences between 1 and 20, and evaluated it on different length sequences longer than 20. Results are shown in Table 1b. We see that the model is able to achieve good performance several times past its training horizon. ",
605
+ "bbox": [
606
+ 174,
607
+ 609,
608
+ 825,
609
+ 693
610
+ ],
611
+ "page_idx": 5
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "5.2 BABI TASKS ",
616
+ "text_level": 1,
617
+ "bbox": [
618
+ 174,
619
+ 712,
620
+ 302,
621
+ 726
622
+ ],
623
+ "page_idx": 5
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "We next evaluate our model on the bAbI tasks, which are a collection of 20 synthetic questionanswering datasets first introduced in (Weston et al., 2015) designed to test a wide variety of reasoning abilities. They have since become a benchmark for memory-augmented neural networks and most of the related methods described in Section 4 have been tested on them. Performance is measured using two metrics: the average error across all tasks, and the number of failed tasks (more than $5 \\%$ error). We used version 1.2 of the dataset with $1 0 \\mathrm { k }$ samples. 1 ",
628
+ "bbox": [
629
+ 174,
630
+ 738,
631
+ 823,
632
+ 821
633
+ ],
634
+ "page_idx": 5
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "Training Details We used a similar training setup as (Sukhbaatar et al., 2015). All models were trained with ADAM using a learning rate of $\\eta = 0 . 0 1$ , which was divided by 2 every 25 epochs until 200 epochs were reached. Copying previous works (Sukhbaatar et al., 2015; Xiong et al., 2016), the capacity of the memory was limited to the most recent 70 sentences, except for task 3 which was limited to 130 sentences. Due to the high variance in model performance for some tasks, for each task we conducted 10 runs with different initializations and picked the best model based on performance on the validation set, as it has been done in previous work. In all experiments, our model had embedding dimension size $d = 1 0 0$ and 20 memory slots. ",
639
+ "bbox": [
640
+ 174,
641
+ 829,
642
+ 823,
643
+ 885
644
+ ],
645
+ "page_idx": 5
646
+ },
647
+ {
648
+ "type": "table",
649
+ "img_path": "images/75eefe81b95d04f88ef81a571cc515a0f5e81d5f04f8a64f282cffe6ad91493c.jpg",
650
+ "table_caption": [
651
+ "Table 2: Results on bAbI Tasks with 10k training samples. "
652
+ ],
653
+ "table_footnote": [],
654
+ "table_body": "<table><tr><td>Task</td><td>NTM</td><td>D-NTM</td><td>MemN2N</td><td>DNC</td><td>DMN+</td><td>EntNet</td></tr><tr><td></td><td>31.5</td><td>4.4</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>1: 1 supporting fact 2: 2 supporting facts</td><td>54.5</td><td>27.5</td><td>0.3</td><td>0.4</td><td>0.3</td><td>0.1</td></tr><tr><td>3: 3 supporting facts</td><td>43.9</td><td>71.3</td><td>2.1</td><td>1.8</td><td>1.1</td><td>4.1</td></tr><tr><td>4: 2 argument relations</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>5:3 argument relations</td><td>0.8</td><td>1.7</td><td>0.8</td><td>0.8</td><td>0.5</td><td>0.3</td></tr><tr><td>6: yes/no questions</td><td>17.1</td><td>1.5</td><td>0.1</td><td>0</td><td>0</td><td>0.2</td></tr><tr><td>7: counting</td><td>17.8</td><td>6.0</td><td>2.0</td><td>0.6</td><td>2.4</td><td>0</td></tr><tr><td>8: lists/sets</td><td>13.8</td><td>1.7</td><td>0.9</td><td>0.3</td><td>0.0</td><td>0.5</td></tr><tr><td>9:simple negation</td><td>16.4</td><td>0.6</td><td>0.3</td><td>0.2</td><td>0.0</td><td>0.1</td></tr><tr><td>10:indefinite knowledge</td><td>16.6</td><td>19.8</td><td>0</td><td>0.2</td><td>0</td><td>0.6</td></tr><tr><td>11:basic coreference</td><td>15.2</td><td>0</td><td>0.0</td><td>0</td><td>0.0</td><td>0.3</td></tr><tr><td>12:conjunction</td><td>8.9</td><td>6.2</td><td>0</td><td>0</td><td>0.2</td><td>0</td></tr><tr><td>13:compound coreference</td><td>7.4</td><td>7.5</td><td>0</td><td>0</td><td>0</td><td>1.3</td></tr><tr><td>14: time reasoning</td><td>24.2</td><td>17.5</td><td>0.2</td><td>0.4</td><td>0.2</td><td>0</td></tr><tr><td>15:basic deduction</td><td>47.0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>16:basic induction</td><td>53.6</td><td>49.6</td><td>51.8</td><td>55.1</td><td>45.3</td><td>0.2</td></tr><tr><td>17: positional reasoning</td><td>25.5</td><td>1.2</td><td>18.6</td><td>12.0</td><td>4.2</td><td>0.5</td></tr><tr><td>18:size reasoning</td><td>2.2</td><td>0.2</td><td>5.3</td><td>0.8</td><td>2.1</td><td>0.3</td></tr><tr><td>19: path finding</td><td>4.3</td><td>39.5</td><td>2.3</td><td>3.9</td><td>0.0</td><td>2.3</td></tr><tr><td>20: agent&#x27;s motivation</td><td>1.5</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Failed Tasks (&gt; 5% error): Mean Error:</td><td>16</td><td>9</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td></td><td>20.1</td><td>12.8</td><td>4.2</td><td>3.8</td><td>2.8</td><td>0.5</td></tr></table>",
655
+ "bbox": [
656
+ 217,
657
+ 146,
658
+ 792,
659
+ 531
660
+ ],
661
+ "page_idx": 6
662
+ },
663
+ {
664
+ "type": "text",
665
+ "text": "",
666
+ "bbox": [
667
+ 174,
668
+ 561,
669
+ 825,
670
+ 617
671
+ ],
672
+ "page_idx": 6
673
+ },
674
+ {
675
+ "type": "text",
676
+ "text": "In Table 2 we compare our model to various other state-of-the-art models in the literature: the larger MemN2N reported in the appendix of (Sukhbaatar et al., 2015), the Dynamic Memory Network of (Xiong et al., 2016), the Dynamic Neural Turing Machine (Gulcehre et al., 2016), the Neural Turing Machine (Graves et al., 2014) and the Differentiable Neural Computer (Graves et al., 2016). Our model is able to solve all the tasks, outperforming the other models in terms of both the number of solved tasks and the average error. ",
677
+ "bbox": [
678
+ 173,
679
+ 625,
680
+ 825,
681
+ 708
682
+ ],
683
+ "page_idx": 6
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "To analyze what kind of representations our model can learn, we conducted an additional experiment on Task 2 using a simple BoW sentence encoding and key vectors which were tied to entity embeddings. This was designed to make the model more interpretable, since the weight tying forces memory slots to encode information about specific entities. 2 After training, we ran the model over a story and computed the cosine distance between $\\phi ( H h _ { j } )$ and each row $r _ { i }$ of the decoder matrix $R$ . This gave us a score which measures the affinity between a given memory slot and each word in the vocabulary. Table 3 shows the nearest neighboring words for each memory slot (which itself corresponds to an entity). We see that the model has indeed stored locations of all of the objects and characters in its memory slots which reflect the final state of the story. In particular, it has the correct answer readily stored in the memory slot of the entity being inquired about (the milk). It also has correct location information about all other non-location entities stored in the appropriate memory slots. Note that it does not store useful or correct information in the memory slots corresponding to locations, most likely because this task does not contain questions about locations (such as “who is in the kitchen?”). ",
688
+ "bbox": [
689
+ 174,
690
+ 715,
691
+ 825,
692
+ 882
693
+ ],
694
+ "page_idx": 6
695
+ },
696
+ {
697
+ "type": "table",
698
+ "img_path": "images/c4bae772b93ec0b2b98add9899e078fc8eb571a8f862a0f11e4c90f842370803.jpg",
699
+ "table_caption": [
700
+ "Table 3: On the left, the network’s final “world model” after reading the story on the right. First and second nearest neighbors from each memory slot are shown, along with their cosine distance. "
701
+ ],
702
+ "table_footnote": [],
703
+ "table_body": "<table><tr><td>Key</td><td>1-NN</td><td>2-NN</td></tr><tr><td>football milk john mary sandra daniel</td><td>hallway (0.135) garden (0.111) kitchen (0.501) garden (0.442) hallway (0.394) hallway (0.689)</td><td>dropped (0.056) took (0.011) dropped (0.027) took (0.034) kitchen (0.121) to (0.076)</td></tr><tr><td>bedroom kitchen garden hallway</td><td>hallway (0.367) kitchen (0.483) garden (0.281) hallway (0.475)</td><td>dropped (0.075) daniel (0.029) where (0.026) left (0.060)</td></tr></table>",
704
+ "bbox": [
705
+ 197,
706
+ 151,
707
+ 478,
708
+ 344
709
+ ],
710
+ "page_idx": 7
711
+ },
712
+ {
713
+ "type": "table",
714
+ "img_path": "images/f66acd44f919adce5da947ff756a38c32baaedf00787daddf40146f184afbeb4.jpg",
715
+ "table_caption": [],
716
+ "table_footnote": [],
717
+ "table_body": "<table><tr><td>Story</td></tr><tr><td>mary got the milk there john moved to the bedroom sandra went back to the kitchen mary travelled to the hallway john got the football there john went to the hallway john put down the football mary went to the garden john went to the kitchen sandra travelled to the hallway</td></tr></table>",
718
+ "bbox": [
719
+ 516,
720
+ 152,
721
+ 794,
722
+ 345
723
+ ],
724
+ "page_idx": 7
725
+ },
726
+ {
727
+ "type": "text",
728
+ "text": "",
729
+ "bbox": [
730
+ 176,
731
+ 373,
732
+ 823,
733
+ 401
734
+ ],
735
+ "page_idx": 7
736
+ },
737
+ {
738
+ "type": "text",
739
+ "text": "5.3 CHILDREN’S BOOK TEST (CBT) ",
740
+ "text_level": 1,
741
+ "bbox": [
742
+ 176,
743
+ 421,
744
+ 441,
745
+ 435
746
+ ],
747
+ "page_idx": 7
748
+ },
749
+ {
750
+ "type": "text",
751
+ "text": "We next evaluated our model on the Children’s Book Test (Hill et al., 2016), which is a semantic language modeling (sentence completion) benchmark built from children’s books that are freely available from Project Gutenberg 3. Models are required to read 20 consecutive sentences from a given story and use this context to fill in a missing word from the 21st sentence. More specifically, each sample consists of a tuple $( S , q , C , a )$ where $S$ is the story consisting of 20 sentences, $Q$ is the 21st sentence with one word replaced by a special blank token, $C$ is a set of 10 candidate answers of the same type as the missing word (for example, common nouns or named entities), and $a$ is the true answer (which is always contained in $C$ ). ",
752
+ "bbox": [
753
+ 174,
754
+ 449,
755
+ 825,
756
+ 560
757
+ ],
758
+ "page_idx": 7
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "It was shown in (Hill et al., 2016) that methods with limited memory such as LSTMs perform well on more frequent, syntax based words such as prepositions and verbs, being similar to human performance, but poorly relative to humans on more semantically meaningful words such as named entities and common nouns. Therefore, most recent methods have been evaluated on the Named Entity and Common Noun subtasks, since they better test the ability of a model to make use of wider contextual information. ",
763
+ "bbox": [
764
+ 174,
765
+ 568,
766
+ 825,
767
+ 650
768
+ ],
769
+ "page_idx": 7
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "Training Details We adopted the same window memory approach used in (Hill et al., 2016), where each input corresponds to a window of text from $\\left\\{ w _ { \\left( i - b - 1 / 2 \\right) } . . . w _ { i } . . . w _ { \\left( i + \\left( b - 1 \\right) / 2 \\right) } \\right\\}$ centered at a candidate $w _ { i } \\in C$ . In our experiments we set $b = 5$ . All models were trained using standard stochastic gradient descent (SGD) with a fixed learning rate of 0.001. We used separate input encodings for the update and gating functions, and applied a dropout rate of 0.5 to the word embedding dimensions. Key embeddings were tied to the embeddings of the candidate words, resulting in 10 hidden blocks, one per member of $C$ . Due to the weight tying, we did not need a decoder matrix and used the distribution over candidates to directly produce a prediction, as described in Section 3. ",
774
+ "bbox": [
775
+ 174,
776
+ 657,
777
+ 825,
778
+ 770
779
+ ],
780
+ "page_idx": 7
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "We found that a simpler version of the model worked best, with $U = V = 0$ , $W = I$ and $\\phi$ equal to the identity. We also removed the normalization step in this simplified model, which we found to hurt performance. This can be explained by the fact that the maximum frequency baseline model in (Hill et al., 2016) has performance which is significantly higher than random, and including the normalization step hides this useful frequency-based information. ",
785
+ "bbox": [
786
+ 174,
787
+ 775,
788
+ 825,
789
+ 845
790
+ ],
791
+ "page_idx": 7
792
+ },
793
+ {
794
+ "type": "text",
795
+ "text": "Results We draw a distinction between two setups: the single-pass setup, where the model must read the story and query in order and immediately produce an output, and the multi-pass setup, where the model can use the query to perform attention over the story. The first setup is more challenging because the model does not know beforehand which query it will be presented with, and must learn to retain information which is useful for a wide variety of potential queries. For this reason it can be viewed as a test of the model’s ability to construct a general-purpose representation of the current state of the story. The second setup leverages all available information, and allows the model to use knowledge of which question will be asked when it reads the story. ",
796
+ "bbox": [
797
+ 176,
798
+ 853,
799
+ 823,
800
+ 895
801
+ ],
802
+ "page_idx": 7
803
+ },
804
+ {
805
+ "type": "table",
806
+ "img_path": "images/ff752e2a1bacc2d493102edf92561463a588b6de2a39a761203ebf5ddf6fe2c8.jpg",
807
+ "table_caption": [
808
+ "Table 4: Accuracy on CBT test set. Single-pass models encode the document before seeing the query, multi-pass models have access to the query at read time. "
809
+ ],
810
+ "table_footnote": [],
811
+ "table_body": "<table><tr><td>Model</td><td></td><td>Named Entities</td><td>Common Nouns</td></tr><tr><td rowspan=\"5\">Single Pass</td><td>Kneser-Ney Language Model + cache</td><td>0.439</td><td>0.577</td></tr><tr><td>LSTMs (context+ query)</td><td>0.418</td><td>0.560</td></tr><tr><td>Window LSTM</td><td>0.436</td><td>0.582</td></tr><tr><td>EntNet (general)</td><td>0.484</td><td>0.540</td></tr><tr><td>EntNet (simple)</td><td>0.616</td><td>0.588</td></tr><tr><td></td><td></td><td>0.493</td><td></td></tr><tr><td rowspan=\"7\">Multi Pass</td><td>MemNN</td><td></td><td>0.554</td></tr><tr><td>MemNN + self-sup.</td><td>0.666</td><td>0.630</td></tr><tr><td>Attention Sum Reader (Kadlec et al.,2016)</td><td>0.686</td><td>0.634</td></tr><tr><td>Gated-Attention Reader (Bhuwan Dhingra &amp; Salakhutdinov,2016)</td><td>0.690</td><td>0.639</td></tr><tr><td>EpiReader (Trischler et al.,2016)</td><td>0.697</td><td>0.674</td></tr><tr><td>AoAReader (Cui et al.,2016)</td><td>0.720</td><td>0.694</td></tr><tr><td>NSE Adaptive Computation (Munkhdalai &amp; Yu, 2016)</td><td>0.732</td><td>0.714</td></tr></table>",
812
+ "bbox": [
813
+ 176,
814
+ 146,
815
+ 823,
816
+ 362
817
+ ],
818
+ "page_idx": 8
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "",
823
+ "bbox": [
824
+ 174,
825
+ 402,
826
+ 825,
827
+ 473
828
+ ],
829
+ "page_idx": 8
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "In Table 4, we show the performance of the general EntNet, the simplified EntNet, as well as other single-pass models taken from (Hill et al., 2016). The general EntNet performs better than the LSTMs and $n$ -gram model on the Named Entities Task, but lags behind on the Common Nouns task. The simplified EntNet outperforms all other single-pass models on both tasks, and also performs better than the Memory Network which does not use the self-supervision heuristic. However, there is still a performance gap when compared to more sophisticated machine comprehension models, many of which perform multiple layers of attention over the story using query knowledge. The fact that the simplified EntNet is able to obtain decent performance is encouraging since it indicates that the model is able to build an internal representation of the story which it can then use to answer a relatively diverse set of queries. ",
834
+ "bbox": [
835
+ 173,
836
+ 479,
837
+ 825,
838
+ 619
839
+ ],
840
+ "page_idx": 8
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "6 CONCLUSION ",
845
+ "text_level": 1,
846
+ "bbox": [
847
+ 174,
848
+ 648,
849
+ 318,
850
+ 665
851
+ ],
852
+ "page_idx": 8
853
+ },
854
+ {
855
+ "type": "text",
856
+ "text": "Two closely related challenges in artificial intelligence are designing models which can maintain an estimate of the state of a world with complex dynamics over long timescales, and models which can predict the forward evolution of the state of the world from partial observation. In this paper, we introduced the Recurrent Entity Network, a new model that makes a promising step towards the first goal. Our model is able to accurately track the world state while reading text stories, which enables it to set a new state-of-the-art on the bAbI tasks, the competitive benchmark of story understanding, by being the first model to solve them all. We also showed that our model is able to capture simple dynamics over long timescales, and is able to perform competitively on a real-world dataset. ",
857
+ "bbox": [
858
+ 174,
859
+ 686,
860
+ 825,
861
+ 797
862
+ ],
863
+ "page_idx": 8
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "Although our model was able to solve all the bAbI tasks using $1 0 \\mathrm { k }$ training samples, we found that performance dropped considerably when using only 1k samples (see Appendix). Most recent work on the bAbI tasks has focused on the $1 0 \\mathrm { k }$ samples setting, and we would like to emphasize that solving them in the 1k samples setting remains an open problem which will require improving the sample efficiency of reasoning models, including ours. ",
868
+ "bbox": [
869
+ 176,
870
+ 805,
871
+ 823,
872
+ 875
873
+ ],
874
+ "page_idx": 8
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "Recent works have made some progress towards the second goal of forward modeling, for instance in capturing simple physics (Lerer et al., 2016), predicting future frames in video (Mathieu et al., 2015) or responses in dialog (Weston, 2016). Although we have only applied our model to tasks with textual inputs in this work, the architecture is general and future work should investigate how to combine the EntNet’s tracking abilities with such predictive models. ",
879
+ "bbox": [
880
+ 176,
881
+ 882,
882
+ 823,
883
+ 924
884
+ ],
885
+ "page_idx": 8
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "",
890
+ "bbox": [
891
+ 171,
892
+ 103,
893
+ 823,
894
+ 132
895
+ ],
896
+ "page_idx": 9
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "REFERENCES \nBattaglia, Peter W., Pascanu, Razvan, Lai, Matthew, Rezende, Danilo Jimenez, and Kavukcuoglu, Koray. Interaction networks for learning about objects, relations and physics. CoRR, abs/1612.00222, 2016. URL http://dblp.uni-trier.de/db/journals/corr/ corr1612.html#BattagliaPLRK16. \nBhuwan Dhingra, Hanxiao Liu, William Cohen and Salakhutdinov, Ruslan. Gated-attention readers for text comprehension. CoRR, abs/1606.01549, 2016. URL http://arxiv.org/abs/ 1606.01549. \nChandar, Sarath, Ahn, Sungjin, Larochelle, Hugo, Vincent, Pascal, Tesauro, Gerald, and Bengio, Yoshua. Hierarchical memory networks. arXiv preprint arXiv:1605.07427, 2016. \nChang, Michael B., Ullman, Tomer, Torralba, Antonio, and Tenenbaum, Joshua B. A compositional object-based approach to learning physical dynamics. CoRR, abs/1612.00341, 2016. URL http: //arxiv.org/abs/1612.00341. \nCho, Kyunghyun, van Merrienboer, Bart, Bahdanau, Dzmitry, and Bengio, Yoshua. On the properties of neural machine translation: Encoder-decoder approaches. In Proceedings of SSST@EMNLP 2014, Eighth Workshop on Syntax, Semantics and Structure in Statistical Translation, Doha, Qatar, 25 October 2014, pp. 103–111, 2014. URL http://aclweb.org/ anthology/W/W14/W14-4012.pdf. \nCollobert, Ronan, Kavukcuoglu, Koray, and Farabet, Clment. Torch7: A matlab-like environment for machine learning, 2011. \nCui, Yiming, Chen, Zhipeng, Wei, Si, Wang, Shijin, Liu, Ting, and Hu, Guoping. Attention-overattention neural networks for reading comprehension. CoRR, abs/1607.04423, 2016. URL http: //arxiv.org/abs/1607.04423. \nFragkiadaki, Katerina, Agrawal, Pulkit, Levine, Sergey, and Malik, Jitendra. Learning visual predictive models of physics for playing billiards. CoRR, abs/1511.07404, 2015. URL http: //arxiv.org/abs/1511.07404. \nGraves, Alex, Wayne, Greg, and Dnihelka, Ivo. Neural Turing Machines, September 2014. URL http://arxiv.org/abs/1410.5401. \nGraves, Alex, Wayne, Greg, Reynolds, Malcolm, Harley, Tim, Danihelka, Ivo, Grabska-Barwinska, ´ Agnieszka, Colmenarejo, Sergio Gomez, Grefenstette, Edward, Ramalho, Tiago, Agapiou, John, ´ et al. Hybrid computing using a neural network with dynamic external memory. Nature, 2016. \nGrefenstette, Edward, Hermann, Karl Moritz, Suleyman, Mustafa, and Blunsom, Phil. Learning to transduce with unbounded memory. In Advances in Neural Information Processing Systems, pp. 1828–1836, 2015. \nGulcehre, Caglar, Chandar, Sarath, Cho, Kyunghyun, and Bengio, Yoshua. Dynamic neural turing machines with soft and hard addressing schemes. CoRR, abs/1607.00036, 2016. URL http: //arxiv.org/abs/1607.00036. \nHe, Kaiming, Zhang, Xiangyu, Ren, Shaoqing, and Sun, Jian. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. CoRR, abs/1502.01852, 2015. \nHill, Felix, Bordes, Antoine, Chopra, Sumit, and Weston, Jason. The goldilocks principle: Reading children’s books with explicit memory representations. In Proceedings of the International Conference on Learning Representations. 2016. \nHochreiter, Sepp and Schmidhuber, Jurgen. Long short-term memory. ¨ Neural Comput., 9(8):1735– 1780, November 1997. ISSN 0899-7667. doi: 10.1162/neco.1997.9.8.1735. URL http://dx. doi.org/10.1162/neco.1997.9.8.1735. ",
901
+ "bbox": [
902
+ 169,
903
+ 131,
904
+ 826,
905
+ 933
906
+ ],
907
+ "page_idx": 9
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "Joulin, Armand and Mikolov, Tomas. Inferring algorithmic patterns with stack-augmented recurrent nets. arXiv preprint arXiv:1503.01007, 2015. ",
912
+ "bbox": [
913
+ 169,
914
+ 103,
915
+ 823,
916
+ 132
917
+ ],
918
+ "page_idx": 10
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "Kadlec, Rudolf, Schmid, Martin, Bajgar, Ondrej, and Kleindienst, Jan. Text understanding with the attention sum reader network. CoRR, abs/1603.01547, 2016. URL http://arxiv.org/ abs/1603.01547. ",
923
+ "bbox": [
924
+ 173,
925
+ 147,
926
+ 826,
927
+ 190
928
+ ],
929
+ "page_idx": 10
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "Kingma, Diederik P. and Ba, Jimmy. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2014. URL http://arxiv.org/abs/1412.6980. ",
934
+ "bbox": [
935
+ 171,
936
+ 205,
937
+ 825,
938
+ 234
939
+ ],
940
+ "page_idx": 10
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "Lerer, Adam, Gross, Sam, and Fergus, Rob. Learning physical intuition of block towers by example. In Proceedings of the 33nd International Conference on Machine Learning, ICML 2016, New York City, NY, USA, June 19-24, 2016, pp. 430–438, 2016. URL http://jmlr.org/ proceedings/papers/v48/lerer16.html. ",
945
+ "bbox": [
946
+ 171,
947
+ 248,
948
+ 825,
949
+ 306
950
+ ],
951
+ "page_idx": 10
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "Li, Yujia, Tarlow, Daniel, Brockschmidt, Marc, and Zemel, Richard S. Gated graph sequence neural networks. CoRR, abs/1511.05493, 2015. URL http://arxiv.org/abs/1511.05493. ",
956
+ "bbox": [
957
+ 171,
958
+ 320,
959
+ 825,
960
+ 349
961
+ ],
962
+ "page_idx": 10
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "Mathieu, Michael, Couprie, Camille, and LeCun, Yann. Deep multi-scale video prediction beyond ¨ mean square error. CoRR, abs/1511.05440, 2015. URL http://arxiv.org/abs/1511. 05440. ",
967
+ "bbox": [
968
+ 171,
969
+ 363,
970
+ 823,
971
+ 406
972
+ ],
973
+ "page_idx": 10
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "Miller, Alexander, Fisch, Adam, Dodge, Jesse, Karimi, Amir-Hossein, Bordes, Antoine, and Weston, Jason. Key-value memory networks for directly reading documents. arXiv preprint arXiv:1606.03126, 2016. ",
978
+ "bbox": [
979
+ 173,
980
+ 421,
981
+ 826,
982
+ 464
983
+ ],
984
+ "page_idx": 10
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "Munkhdalai, Tsendsuren and Yu, Hong. Reasoning with memory augmented neural networks for language comprehension. CoRR, abs/1610.06454, 2016. URL https://arxiv.org/abs/ 1610.06454. ",
989
+ "bbox": [
990
+ 173,
991
+ 479,
992
+ 825,
993
+ 522
994
+ ],
995
+ "page_idx": 10
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "Sukhbaatar, Sainbayar, szlam, arthur, Weston, Jason, and Fergus, Rob. End-to-end memory networks. In Cortes, C., Lawrence, N. D., Lee, D. D., Sugiyama, M., and Garnett, R. (eds.), Advances in Neural Information Processing Systems 28, pp. 2440–2448. Curran Associates, Inc., 2015. URL http://papers.nips.cc/paper/5846-end-to-end-memory-networks. pdf. ",
1000
+ "bbox": [
1001
+ 173,
1002
+ 536,
1003
+ 825,
1004
+ 608
1005
+ ],
1006
+ "page_idx": 10
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "Sukhbaatar, Sainbayar, Szlam, Arthur, and Fergus, Rob. Learning multiagent communication with backpropagation. CoRR, abs/1605.07736, 2016. URL http://arxiv.org/abs/1605. 07736. ",
1011
+ "bbox": [
1012
+ 173,
1013
+ 622,
1014
+ 825,
1015
+ 665
1016
+ ],
1017
+ "page_idx": 10
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "Trischler, Adam, Ye, Zheng, Yuan, Xingdi, and Suleman, Kaheer. Natural language comprehension with the epireader. CoRR, abs/1606.02270, 2016. URL http://arxiv.org/abs/1606. 02270. ",
1022
+ "bbox": [
1023
+ 173,
1024
+ 680,
1025
+ 825,
1026
+ 723
1027
+ ],
1028
+ "page_idx": 10
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "Weston, Jason. Dialog-based language learning. CoRR, abs/1604.06045, 2016. URL http:// arxiv.org/abs/1604.06045. ",
1033
+ "bbox": [
1034
+ 173,
1035
+ 738,
1036
+ 823,
1037
+ 767
1038
+ ],
1039
+ "page_idx": 10
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "Weston, Jason, Chopra, Sumit, and Bordes, Antoine. Memory networks. CoRR, abs/1410.3916, 2014. URL http://arxiv.org/abs/1410.3916. ",
1044
+ "bbox": [
1045
+ 173,
1046
+ 782,
1047
+ 823,
1048
+ 811
1049
+ ],
1050
+ "page_idx": 10
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "Weston, Jason, Bordes, Antoine, Chopra, Sumit, and Mikolov, Tomas. Towards ai-complete question answering: A set of prerequisite toy tasks. CoRR, abs/1502.05698, 2015. URL http://arxiv.org/abs/1502.05698. ",
1055
+ "bbox": [
1056
+ 174,
1057
+ 825,
1058
+ 823,
1059
+ 869
1060
+ ],
1061
+ "page_idx": 10
1062
+ },
1063
+ {
1064
+ "type": "text",
1065
+ "text": "Xiong, Caiming, Merity, Stephen, and Socher, Richard. Dynamic memory networks for visual and textual question answering. In ICML, 2016. ",
1066
+ "bbox": [
1067
+ 173,
1068
+ 883,
1069
+ 825,
1070
+ 912
1071
+ ],
1072
+ "page_idx": 10
1073
+ },
1074
+ {
1075
+ "type": "text",
1076
+ "text": "A TRAINING DETAILS ",
1077
+ "text_level": 1,
1078
+ "bbox": [
1079
+ 176,
1080
+ 102,
1081
+ 374,
1082
+ 117
1083
+ ],
1084
+ "page_idx": 11
1085
+ },
1086
+ {
1087
+ "type": "text",
1088
+ "text": "All models were implemented using Torch (Collobert et al., 2011). In all experiments, we initialized our model by drawing weights from a Gaussian distribution with mean zero and standard deviation 0.1, except for the PReLU slopes and encoder weights which were initialized to 1. Note that the PReLU initialization is related to two of the heuristics used in (Sukhbaatar et al., 2015), namely starting training with a purely linear model, and adding non-linearities to half of the hidden units. Our initialization allows the model to choose when and how much to enter the non-linear regime. Initializing the encoder weights to 1 corresponds to beginning with a BoW encoding, which the model can then choose to modify. The initial values of the memory slots were initialized to the key values, which we found to help performance. Optimization was done with SGD or ADAM using minibatches of size 32, and gradients with norm greater than 40 were clipped to 40. A null symbol whose embedding was constrained to be zero was used to pad all sentences or windows to a fixed size. ",
1089
+ "bbox": [
1090
+ 174,
1091
+ 133,
1092
+ 825,
1093
+ 300
1094
+ ],
1095
+ "page_idx": 11
1096
+ },
1097
+ {
1098
+ "type": "text",
1099
+ "text": "B DETAILS OF WORLD MODEL EXPERIMENTS ",
1100
+ "text_level": 1,
1101
+ "bbox": [
1102
+ 174,
1103
+ 320,
1104
+ 575,
1105
+ 337
1106
+ ],
1107
+ "page_idx": 11
1108
+ },
1109
+ {
1110
+ "type": "text",
1111
+ "text": "Two agents are initially placed at random on a $1 0 ~ \\times ~ 1 0$ grid with 100 distinct locations $\\{ ( 1 , 1 ) , \\bar { ( 1 , 2 ) } , . . . ( 9 , 1 0 ) , \\bar { ( 1 0 , 1 0 ) } \\}$ . At each time step an agent is chosen at random. There are two types of actions: the agent can face a given direction, or can move a number of steps ahead. Actions are sampled until a legal action is found by either choosing to change direction or move with equal probability. If they change direction, the direction is chosen between north, south, east and west with equal probability. If they move, the number of steps is randomly chosen between 1 and 5. A legal action is one which does not place the agent off the grid. Stories are given to the network in textual form, an example of which is below. The first action after each agent is placed on the grid is to face a given direction. Therefore, the maximum number of actions made by one agent is $T - 2$ . The network learns word embeddings for all words in the vocabulary such as locations, agent identifiers and actions. At question time, the model must predict the correct answer (which will always be a location) from all the tokens in the vocabulary. ",
1112
+ "bbox": [
1113
+ 173,
1114
+ 352,
1115
+ 825,
1116
+ 517
1117
+ ],
1118
+ "page_idx": 11
1119
+ },
1120
+ {
1121
+ "type": "text",
1122
+ "text": "agent1 is at (2,8) \nagent1 faces-N \nagent2 is at (9,7) \nagent2 faces-N \nagent2 moves-2 \nagent2 faces-E \nagent2 moves-1 \nagent1 moves-1 \nagent2 faces-S \nagent2 moves-5 \nQ1: where is agent1 ? \nQ2: where is agent2 ? \nA1: (2,9) \nA2: (10,4) ",
1123
+ "bbox": [
1124
+ 173,
1125
+ 526,
1126
+ 393,
1127
+ 719
1128
+ ],
1129
+ "page_idx": 11
1130
+ },
1131
+ {
1132
+ "type": "text",
1133
+ "text": "C ADDITIONAL RESULTS ON BABI TASKS ",
1134
+ "text_level": 1,
1135
+ "bbox": [
1136
+ 174,
1137
+ 753,
1138
+ 539,
1139
+ 770
1140
+ ],
1141
+ "page_idx": 11
1142
+ },
1143
+ {
1144
+ "type": "text",
1145
+ "text": "We provide some additional experiments on the bAbI tasks, in order to better understand the influence of architecture, weight tying, and amount of training data. Table 5 shows results when a simple BoW encoding is used for the inputs. Here, the EntNet still performs better than a MemN2N which uses the same encoding scheme, indicating that the architecture has an important effect. Tying the key vectors to entities did not help, and hurt performance for some tasks. Table 6 shows results when using only 1k training samples. In this setting, the EntNet performs worse than the MemN2N. ",
1146
+ "bbox": [
1147
+ 174,
1148
+ 786,
1149
+ 825,
1150
+ 869
1151
+ ],
1152
+ "page_idx": 11
1153
+ },
1154
+ {
1155
+ "type": "table",
1156
+ "img_path": "images/f1092c74c368b93a5a276e1f17ca290271750843dbbddf39a12b7a09ec7dc7e7.jpg",
1157
+ "table_caption": [
1158
+ "Table 5: Error rates on bAbI Tasks with inputs are encoded using BoW. “Tied” refers to the case where key vectors are tied with entity embeddings. "
1159
+ ],
1160
+ "table_footnote": [],
1161
+ "table_body": "<table><tr><td>Task</td><td>MemN2N</td><td>EntNet-tied</td><td>EntNet</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td>1:1 supporting fact</td><td>0</td><td>0</td><td>0</td></tr><tr><td>2:2 supporting facts</td><td>0.6</td><td>3.0</td><td>1.2</td></tr><tr><td>3: 3 supporting facts</td><td>7</td><td>9.6</td><td>9.0</td></tr><tr><td>4: 2 argument relations</td><td>32.6</td><td>33.8</td><td>31.8</td></tr><tr><td>5:3 argument relations</td><td>10.2</td><td>1.7</td><td>3.5</td></tr><tr><td>6: yes/no questions</td><td>0.2</td><td>0</td><td>0 0.5</td></tr><tr><td>7: counting 8: lists/sets</td><td>10.6</td><td>0.5</td><td>0.3</td></tr><tr><td>9: simple negation</td><td>2.6 0.3</td><td>0.1</td><td>0</td></tr><tr><td>10: indefinite knowledge</td><td>0.5</td><td>0 0</td><td>0</td></tr><tr><td>11:basic coreference</td><td>0</td><td>0.3</td><td>0</td></tr><tr><td>12: conjunction</td><td>0</td><td>0</td><td>0</td></tr><tr><td>13: compound coreference</td><td>0</td><td>0.2</td><td>0.4</td></tr><tr><td>14: time reasoning</td><td>0.1</td><td>6.2</td><td>0.1</td></tr><tr><td>15:basic deduction</td><td>11.4</td><td>12.5</td><td>12.1</td></tr><tr><td>16:basic induction</td><td>52.9</td><td>46.5</td><td>0</td></tr><tr><td>17: positional reasoning</td><td>39.3</td><td>40.5</td><td>40.5</td></tr><tr><td>18: size reasoning</td><td>40.5</td><td>44.2</td><td>45.7</td></tr><tr><td>19: path finding</td><td>74.4</td><td>75.1</td><td>74.0</td></tr><tr><td>20: agent&#x27;s motivation</td><td>0</td><td>0</td><td>0</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td>Failed Tasks (&gt; 5%):</td><td>9</td><td>8</td><td>6</td></tr><tr><td>Mean Error:</td><td>15.6</td><td>13.7</td><td>10.9</td></tr></table>",
1162
+ "bbox": [
1163
+ 282,
1164
+ 160,
1165
+ 720,
1166
+ 553
1167
+ ],
1168
+ "page_idx": 12
1169
+ },
1170
+ {
1171
+ "type": "table",
1172
+ "img_path": "images/a3aebaee9e9fc2affda58de20bfd4c53cb5223b29ded7b2a1b7d087452562caa.jpg",
1173
+ "table_caption": [
1174
+ "Table 6: Results on bAbI Tasks with 1k samples. "
1175
+ ],
1176
+ "table_footnote": [],
1177
+ "table_body": "<table><tr><td>Task</td><td>MemN2N</td><td>EntNet</td></tr><tr><td></td><td></td><td></td></tr><tr><td>1: 1 supporting fact</td><td>0</td><td>0.7</td></tr><tr><td>2:2 supporting facts</td><td>8.3</td><td>56.4</td></tr><tr><td>3: 3 supporting facts</td><td>40.3</td><td>69.7</td></tr><tr><td>4:2 argument relations</td><td>2.8</td><td>1.4</td></tr><tr><td>5: 3 argument relations</td><td>13.1</td><td>4.6</td></tr><tr><td>6: yes/no questions</td><td>7.6</td><td>30.0</td></tr><tr><td>7: counting</td><td>17.3</td><td>22.3</td></tr><tr><td>8: lists/sets</td><td>10.0</td><td>19.2</td></tr><tr><td>9:simple negation</td><td>13.2</td><td>31.5</td></tr><tr><td>10:indefinite knowledge</td><td>15.1</td><td>15.6</td></tr><tr><td>11:basic coreference</td><td>0.9</td><td>8.0</td></tr><tr><td>12:conjunction</td><td>0.2</td><td>0.8</td></tr><tr><td>13: compound coreference</td><td>0.4</td><td>9.0</td></tr><tr><td>14: time reasoning</td><td>1.7</td><td>62.9</td></tr><tr><td>15: basic deduction</td><td>0</td><td>57.8</td></tr><tr><td>16:basic induction</td><td>1.3</td><td>53.2</td></tr><tr><td>17: positional reasoning</td><td>51.0</td><td>46.4</td></tr><tr><td>18:size reasoning</td><td>11.1</td><td>8.8 90.4</td></tr><tr><td>19: path finding 20:agent&#x27;s motivation</td><td>82.8 0</td><td>2.6</td></tr><tr><td></td><td></td><td></td></tr><tr><td>Failed Tasks (&gt; 5%):</td><td>11</td><td>15</td></tr><tr><td>Mean Error:</td><td>13.9</td><td>29.6</td></tr></table>",
1178
+ "bbox": [
1179
+ 331,
1180
+ 146,
1181
+ 676,
1182
+ 537
1183
+ ],
1184
+ "page_idx": 13
1185
+ }
1186
+ ]
parse/train/rJTKKKqeg/rJTKKKqeg_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rJTKKKqeg/rJTKKKqeg_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rkgyS0VFvr/rkgyS0VFvr.md ADDED
@@ -0,0 +1,416 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DBA: DISTRIBUTED BACKDOOR ATTACKS AGAINST FEDERATED LEARNING
2
+
3
+ Chulin Xie Zhejiang University chulinxie@zju.edu.cn
4
+
5
+ Keli Huang Shanghai Jiao Tong University nick cooper@sjtu.edu.cn
6
+
7
+ Pin-Yu Chen
8
+ IBM Research
9
+ pin-yu.chen@ibm.com
10
+ Bo Li
11
+ University of Illinois Urbana-Champaign
12
+ lbo@illinois.edu
13
+
14
+ # ABSTRACT
15
+
16
+ Backdoor attacks aim to manipulate a subset of training data by injecting adversarial triggers such that machine learning models trained on the tampered dataset will make arbitrarily (targeted) incorrect prediction on the testset with the same trigger embedded. While federated learning (FL) is capable of aggregating information provided by different parties for training a better model, its distributed learning methodology and inherently heterogeneous data distribution across parties may bring new vulnerabilities. In addition to recent centralized backdoor attacks on FL where each party embeds the same global trigger during training, we propose the distributed backdoor attack (DBA) — a novel threat assessment framework developed by fully exploiting the distributed nature of FL. DBA decomposes a global trigger pattern into separate local patterns and embed them into the training set of different adversarial parties respectively. Compared to standard centralized backdoors, we show that DBA is substantially more persistent and stealthy against FL on diverse datasets such as finance and image data. We conduct extensive experiments to show that the attack success rate of DBA is significantly higher than centralized backdoors under different settings. Moreover, we find that distributed attacks are indeed more insidious, as DBA can evade two state-of-the-art robust FL algorithms against centralized backdoors. We also provide explanations for the effectiveness of DBA via feature visual interpretation and feature importance ranking. To further explore the properties of DBA, we test the attack performance by varying different trigger factors, including local trigger variations (size, gap, and location), scaling factor in FL, data distribution, and poison ratio and interval. Our proposed DBA and thorough evaluation results shed lights on characterizing the robustness of FL.
17
+
18
+ # 1 INTRODUCTION
19
+
20
+ Federated learning (FL) has been recently proposed to address the problems for training machine learning models without direct access to diverse training data, especially for privacy-sensitive tasks (Smith et al., 2017; McMahan et al., 2017; Zhao et al., 2018). Utilizing local training data of participants (i.e., parties), FL helps train a shared global model with improved performance. There have been prominent applications and ever-growing trends in deploying FL in practice, such as loan status prediction, health situation assessment (e.g. potential cancer risk assessment), and next-word prediction while typing (Hard et al., 2018; Yang et al., 2018; 2019).
21
+
22
+ Although FL is capable of aggregating dispersed (and often restricted) information provided by different parties to train a better model, its distributed learning methodology as well as inherently heterogeneous (i.e., non-i.i.d.) data distribution across different parties may unintentionally provide a venue to new attacks. In particular, the fact of limiting access to individual party’s data due to privacy concerns or regulation constraints may facilitate backdoor attacks on the shared model trained with FL. Backdoor attack is a type of data poisoning attacks that aim to manipulate a subset of training data such that machine learning models trained on the tampered dataset will be vulnerable to the test set with similar trigger embedded (Gu et al., 2019).
23
+
24
+ Backdoor attacks on FL have been recently studied in (Bagdasaryan et al., 2018; Bhagoji et al., 2019). However, current attacks do not fully exploit the distributed learning methodology of FL, as they embed the same global trigger pattern to all adversarial parties. We call such attacking scheme centralized backdoor attack. Leveraging the power of FL in aggregating dispersed information from local parties to train a shared model, in this paper we propose distributed backdoor attack (DBA) against FL. Given the same global trigger pattern as the centralized attack, DBA decomposes it into local patterns and embed them to different adversarial parties respectively. A schematic comparison between the centralized and distributed backdoor attacks is illustrated in Fig.1.
25
+
26
+ ![](images/389150c8134ee6d20e27f0900b0b9e005e14815cab2b98c75bae3bff19d75db1.jpg)
27
+ (a) centralized backdoor attack (current setting)
28
+ (b) DBA: distributed backdoor attack (ours)
29
+ Figure 1: Overview of centralized and distributed backdoor attacks (DBA) on FL. The aggregator at round $t + 1$ combines information from local parties (benign and adversarial) in the previous round $t$ , and update the shared model $G ^ { t + 1 }$ . When implementing backdoor attacks, centralized attacker uses a global trigger while distributed attacker uses a local trigger which is part of the global one.
30
+
31
+ Through extensive experiments on several financial and image datasets and in-depth analysis, we summarize our main contributions and findings as follows.
32
+
33
+ • We propose a novel distributed backdoor attack strategy DBA on FL and show that DBA is more persistent and effective than centralized backdoor attack. Based on extensive experiments, we report a prominent phenomenon that although each adversarial party is only implanted with a local trigger pattern via DBA, their assembled pattern (i.e., global trigger) attains significantly better attack performance on the global model compared with the centralized attack. The results are consistent across datasets and under different attacking scenarios such as one-time (single-shot) and continuous (multiple-shot) poisoning settings. To the best of our knowledge, this paper is the first work studying distributed backdoor attacks.
34
+
35
+ • When evaluating the robustness of two recent robust FL methods against centralized backdoor attack (Fung et al., 2018; Pillutla et al., 2019), we find that DBA is more effective and stealthy, as its local trigger pattern is more insidious and hence easier to bypass the robust aggregation rules.
36
+
37
+ • We provide in-depth explanations for the effectiveness of DBA from different perspectives, including feature visual interpretation and feature importance ranking.
38
+
39
+ • We perform comprehensive analysis and ablation studies on several trigger factors in DBA, including the size, gap, and location of local triggers, scaling effect in FL, poisoning interval, data poisoning ratio, and data distribution.
40
+
41
+ # 2 DISTRIBUTED BACKDOOR ATTACK AGAINST FEDERATED LEARNING
42
+
43
+ # 2.1 GENERAL FRAMEWORK
44
+
45
+ bjective of. There are $\mathrm { F L }$ can be cast as a finite-sumarties individually processing ptimization: local models, $\begin{array} { r } { \operatorname* { m i n } _ { w \in R ^ { d } } [ F ( w ) \ : = \ } \end{array}$ $\begin{array} { r } { \frac { 1 } { N } \sum _ { i = 1 } ^ { N } f _ { i } ( w ) ] } \end{array}$ $N$ $N$ with the local objective $f _ { i } : R ^ { d } \mapsto R$ based on a private dataset ${ D } _ { i } = \{ \{ x _ { j } ^ { i } , y _ { j } ^ { i } \} _ { j = 1 } ^ { a _ { i } } \}$ , where $a _ { i } = \left| D _ { i } \right|$ and $\{ x _ { j } ^ { i } , y _ { j } ^ { i } \}$ represents each data sample and its corresponding label. In supervised $\mathrm { F L }$ setting, each local function $f _ { i }$ is computed as $f _ { i } ( w _ { i } ) _ { \negmedspace \alpha } = l ( \{ x _ { j } ^ { i } , y _ { j } ^ { i } \} _ { j \in D _ { i } } , w _ { i } )$ where $l$ stands for a loss of prediction using the local parameters $w _ { i }$ . The goal of $\mathrm { F L }$ is to obtain a global model which can generalize well on test data $D _ { t e s t }$ after aggregating over the distributed training results from $N$ parties.
46
+
47
+ Specifically, at round $t$ , the central server sends the current shared model $G ^ { t }$ to $n \in [ N ]$ selected parties, where $[ N ]$ denotes the integer set $\{ 1 , 2 , \ldots , N \}$ . The selected party $i$ locally computes the function $f _ { i }$ by running an optimization algorithm such as stochastic gradient descent (SGD) for $E$ local epochs with its own dataset $D _ { i }$ and learning rate $l _ { r }$ to obtain a new local model $L _ { i } ^ { t + 1 }$ . The local party then sends model update $L _ { i } ^ { t + 1 } - G ^ { t }$ back to the central server, who will averages over all updates with its own learning rate $\eta$ to generate a new global model $G ^ { t + 1 }$ :
48
+
49
+ $$
50
+ G ^ { t + 1 } = G ^ { t } + \frac { \eta } { n } \sum _ { i = 1 } ^ { n } ( L _ { i } ^ { t + 1 } - G ^ { t } )
51
+ $$
52
+
53
+ This aggregation process will be iterated until FL finds the final global model. Unless specified otherwise, we use $G ^ { t }$ $( L _ { i } ^ { t } )$ to denote the model parameters of the global (local) model at round $t$ .
54
+
55
+ Attacker ability. Based on the Kerckhoffs’s theory (Shannon, 1949), we consider the strong attacker here who has full control of their local training process, such as backdoor data injection and updating local training hyperparameters including $E$ and $l _ { r }$ . This scenario is quite practical since each local dataset is usually owned by one of the local parties. However, attackers do not have the ability to influence the privilege of central server such as changing aggregation rules, nor tampering the training process and model updates of other parties.
56
+
57
+ Objective of backdoor attack. Backdoor attack is designed to mislead the trained model to predict a target label $\tau$ on any input data that has an attacker-chosen pattern (i.e., a trigger) embedded. Instead of preventing the convergence in accuracy as Byzantine attacks (Blanchard et al., 2017), the purpose of backdoor attacks in $\bar { \mathrm { F L } }$ is to manipulate local models and simultaneously fit the main task and backdoor task, so that the global model would behave normally on untampered data samples while achieving high attack success rate on backdoored data samples. The adversarial objective1 for attacker $i$ in round $t$ with local datatset $D _ { i }$ and target label $\tau$ is:
58
+
59
+ $$
60
+ w _ { i } ^ { * } = \arg \operatorname* { m a x } _ { w _ { i } } ( \sum _ { j \in S _ { p o i } ^ { i } } P [ G ^ { t + 1 } ( R ( x _ { j } ^ { i } , \phi ) ) = \tau ] + \sum _ { j \in S _ { c l n } ^ { i } } P [ G ^ { t + 1 } ( x _ { j } ^ { i } ) = y _ { j } ^ { i } ] ) .
61
+ $$
62
+
63
+ Here, the poisoned dataset $S _ { p o i } ^ { i }$ and clean dataset $S _ { c l n } ^ { i }$ satisfy $S _ { p o i } ^ { i } \cap S _ { c l n } ^ { i } = \emptyset$ and $S _ { p o i } ^ { i } \cup S _ { c l n } ^ { i } = D _ { i }$ The function transforms clean data in any class into backdoored data that have an attacker-chosen trigger pattern using a set of parameters $\phi$ . For example, for image data, $\phi$ is factored into trigger location $T L$ , trigger size $T S$ and trigger gap $_ { T G }$ $\vec { x } ( \phi = \{ T S , T G , T L \} )$ , which are shown in Fig.2. The attacker can design his own trigger pattern and choose an optimal poison ratio $r$ to result in a better model parameter $w _ { i } ^ { * }$ , with which $\hat { G } ^ { t + 1 }$ can both assign the highest probability to target label $\tau$ for backdoored data $R ( x _ { j } ^ { i } , \phi )$ and the ground truth label ${ \bar { y } } _ { j { \prime } } ^ { i }$ for benign data $x _ { j ^ { \prime } } ^ { i }$ .
64
+
65
+ # 2.2 DISTRIBUTED BACKDOOR ATTACK (DBA)
66
+
67
+ We again use Fig.1 to illustrate our proposed DBA in details. Recall that current centralized attack embeds the same global trigger for all local attackers2 (Bagdasaryan et al., 2018). For example, the attacker in Fig.1.(a) embeds the training data with the selected patterns highlighted by 4 colors, which altogether constitutes a complete global pattern as the backdoor trigger.
68
+
69
+ In our DBA, as illustrated in Fig.1.(b), all attackers only use parts of the global trigger to poison their local models, while the ultimate adversarial goal is still the same as centralized attack — using the global trigger to attack the shared model. For example, the attacker with the orange sign poisons a subset of his training data only using the trigger pattern located at the orange area. Similar attacking methodology applies to green, yellow and blue signs. We define each DBA attacker’s trigger as the local trigger and the combined whole trigger as the global trigger. For fair comparison, we keep similar amount of total injected triggers (e.g., modified pixels) for both centralized attack and DBA.
70
+
71
+ In centralized attack, the attacker tries to solve the optimization problem in Eq.2 without any coordination and distributed processing. In contrast, DBA fully exploits the distributed learning and local data opacity in FL. Considering $M$ attackers in DBA with $M$ small local triggers. Each DBA attacker $m _ { i }$ independently performs the backdoor attack on their local models. This novel mechanism breaks a centralized attack formulation into $M$ distributed sub-attack problems aiming to solve3
72
+
73
+ $$
74
+ w _ { i } ^ { * } = \arg \operatorname* { m a x } _ { w _ { i } } ( \sum _ { j \in S _ { p o i } ^ { i } } P [ G ^ { t + 1 } ( R ( x _ { j } ^ { i } , \phi _ { i } ^ { * } ) ) = \tau ; \gamma ; I ] + \sum _ { j \in S _ { c l n } ^ { i } } P [ G ^ { t + 1 } ( x _ { j } ^ { i } ) = y _ { j } ^ { i } ] ) , \forall i \in [ M ] ,
75
+ $$
76
+
77
+ ![](images/4b2645c29bfef8398b4636b984245949c481bf376e5653ed840fff3ab0985b51.jpg)
78
+ Figure 2: Trigger factors (size, gap and location) in backdoored images.
79
+
80
+ ![](images/2e012189bfb1bcf91648c97e40170cf259e3d87b7e4c633a14f74ca88451e944.jpg)
81
+ Figure 3: Trigger factor (feature importance ranking) in tabular data.
82
+
83
+ where $\phi _ { i } ^ { * } = \{ \phi , O ( i ) \}$ is the geometric decomposing strategy for the local trigger pattern of attacker $m _ { i }$ and $O ( i )$ entails the trigger decomposition rule for $m _ { i }$ based on the global trigger $\phi$ . DBA attackers will poison with the poison round interval $I$ and use the scale factor $\gamma$ to manipulate their updates before submitting to the aggregator. We will explain the related trigger factors in the next subsection. We note that although none of the adversarial party has ever been poisoned by the global trigger under DBA, we find that DBA indeed outperforms centralized attack significantly when evaluated with the global trigger.
84
+
85
+ # 2.3 FACTORS IN DISTRIBUTED BACKDOOR ATTACK
86
+
87
+ With the framework of DBA on FL, there are multiple new factors to be explored. Here we introduce a set of trigger factors that we find to be critical. Fig.2 explains the location, size and gap attribute of triggers in image dataset. For simplicity, we set all of our local triggers to the same rectangle shape4. Fig.3 explains our trigger attribute of ranked feature importance in tabular data (e.g., the loan dataset).
88
+
89
+ Trigger Size $T S$ : the number of pixel columns (i.e., the width) of a local distributed trigger. Trigger Gap $_ { T G }$ : the distance of the $G a p _ { x }$ and $G a p _ { y }$ , which represent the distance between the left and right, as well as the top and bottom local trigger, respectively.
90
+
91
+ Trigger Location $T L$ : $( S h i f t _ { x } , S h i f t _ { y } )$ is the offset of the trigger pattern from the top left pixel. Scale $\gamma$ : the scaling parameter $\gamma = \eta / N$ defined in (Bagdasaryan et al., 2018) is used by the attacker to scale up the malicious model weights.5 For instance, assume the ith malicious local model is $X$ . The new local model $L _ { i } ^ { t + 1 }$ that will be submitted is calculated as $L _ { i } ^ { t + 1 } = \gamma ( X - G ^ { t } ) + G ^ { t }$ .
92
+
93
+ Poison Ratio $r$ : the ratio controls the fraction of backdoored samples added per training batch. Note that larger $r$ should be preferable when attacking intuitively, and there is a tradeoff between clean data accuracy and attack success rate, but too large $r$ would also hurt the attack effectiveness once the model becomes useless.
94
+
95
+ Poison Interval $I$ : the round intervals between two poison steps. For example, $I = 0$ means all the local triggers are embedded within one round, while $I = 1$ means the local triggers are embedded in consecutive rounds.
96
+
97
+ Data Distribution: FL often presumes non-i.i.d. data distribution across parties. Here, we use a Dirichlet distribution (Minka, 2000) with different hyperparameter $\alpha$ to generate different data distribution following the setups in (Bagdasaryan et al., 2018).
98
+
99
+ # 3 EXPERIMENTS
100
+
101
+ # 3.1 DATASETS AND EXPERIMENT SETUP
102
+
103
+ DBA is evaluated on four classification datasets with non-i.i.d. data distributions: Lending Club Loan Data(LOAN)(Kan, 2019), MNIST, CIFAR-10 and Tiny-imagenet. The data description and parameter setups are summarized in Tb.1. We refer the readers to Appendix A.1 for more details.
104
+
105
+ Following the standard setup, we use SGD and trains for $E$ local epochs with local learning rate $l _ { r }$ and batch size 64. A shared global model is trained by all participants, 10 of them are selected in each round for aggregation. The local and global triggers used are summarized in Appendix A.1.
106
+
107
+ Table 1: Dataset description and parameters
108
+
109
+ <table><tr><td>Dataset</td><td>Classes</td><td>Examples per class</td><td>Features</td><td>Model used</td><td>Benignlr/E</td><td>Poison lr/El</td><td>Poison ratio r</td></tr><tr><td>LOAN</td><td>9</td><td>see Tb.3 in Appendix</td><td>91</td><td>3 fc</td><td>0.001/1</td><td>0.0005 /5(multi-shot) or 10(single-shot)</td><td>10/64</td></tr><tr><td>MNIST</td><td>10</td><td>6000</td><td>784</td><td>2 conv and 2 fc</td><td>0.1/1</td><td>0.05/10</td><td>20/64</td></tr><tr><td>CIFAR</td><td>10</td><td>5000</td><td>1024</td><td>lightweight Resnet-18</td><td>0.1/2</td><td>0.05/6</td><td>5/64</td></tr><tr><td>Tiny-imagenet</td><td>200</td><td>500</td><td>4096</td><td>Resnet-18(He et al.,2016)</td><td>0.001/2</td><td>0.001/5(multi-shot) or 10(single-shot)</td><td>20/64</td></tr></table>
110
+
111
+ 4Some factor definitions may not apply to non-image data, which will be clarified accordingly.
112
+ 5In our implementation, every distributed attacker uses the same $\gamma$ .
113
+
114
+ Following the attack analysis in (Bagdasaryan et al., 2018), we evaluate multiple-shot attack (Attack A-M) and single-shot attack (Attack A-S) two attack scenarios, which are called naive approach and model replacement respectively in the original paper.
115
+
116
+ • Attack A-M means the attackers are selected in multiple rounds and the accumulated malicious updates are necessary for a successful attack; otherwise the backdoor would be weakened by benign updates and soon forgotten by the global model. In order to quickly observe the difference between centralized and distributed attacks and control the effect of random party selection, we perform a complete attack in every round, that is, all DBA attackers or centralized attackers are consistently selected. Benign participants are randomly selected to form a total of 10 participants.
117
+
118
+ • Attack A-S means that every DBA attacker or the centralized attacker only needs one single shot to successfully embed its backdoor trigger. To achieve that, the attacker performs scaling in their malicious updates to overpower other benign updates and ensure that the backdoor survives the aggregation step. For fair comparison, DBA and centralized attack finish a complete backdoor in the same round. Take MNIST as an example, DBA attackers separately embed their local triggers in round 12, 14, 16, 18 for local triggers 1 to 4, while the centralized attacker implants its global trigger in round 18. Benign participants are randomly selected to form a total of 10 participants.
119
+
120
+ These two scenarios reveal different aspects of DBA and centralized backdoor attacks when the global model is triggered by local and global triggers. Attack A-M studies how easy the backdoor is successfully injected while Attack A-S studies how fast the backdoor effect diminishes.
121
+
122
+ In our experiments, we evaluate the attack success rates of DBA and centralized attacks using the same global trigger. For fair comparison, we make sure the total number of backdoor pixels of DBA attackers is close to and even less than that of the centralized attacker (it is hard to control them to be the same due to data sampling with certain distribution). The ratio of the global trigger of DBA pixels to the centralized is 0.992 for LOAN, 0.964 for MNIST, 0.990 for CIFAR and 0.991 for Tiny-imagenet. Moreover, in order to avoid the influence of the original label when testing attack success rate, we remove the test data whose true label equals to the backdoor target label. In three image datasets, we begin to attack when the main accuracy of global model converges, which is round 10 for MNIST, 200 for CIFAR, 20 for Tiny-imagenet in Attack A-M. The reason is provided in Appendix.A.2. The global learning rate $\eta$ in Attack A-M is 0.1 for CIFAR, 1 for others and in Attack A-S is 0.1 for all datasets.
123
+
124
+ ![](images/5cf77c5b31332a66236970f5220aa4f5abd3f1bd2b0badd97120c2faadedcb44.jpg)
125
+ Attack A-M:
126
+ Figure 4: Attack A-M and A-S. DBA is more effective and persistent than centralized attack.
127
+
128
+ In Attack A-M, the attack success rate of DBA is always higher than centralized attack in all cases as shown in Fig.4. DBA also converges faster and even yields a higher attack success rate in MNIST. Under DBA, we find a prominent phenomenon that the attack success rate of the global trigger is higher than any local trigger even if the global trigger never actually appears in any local training dataset. Moreover, the global trigger converges faster in attack performance than local triggers. Centralized attacker embeds the whole pattern so its attack success rate of any local triggers is low. Due to the continuous poisoning, the attack rate on local triggers still increases for LOAN but this phenomenon does not appear in MNIST and Tiny-imagenet, which indicates that the success of global trigger does not require the same success for local triggers. The results also suggest that DBA can lead to high attack success rate for the global trigger even when some of its local triggers only attain low attack success rates. This finding is unique for DBA and also implies the inefficiency of centralized attack on FL.
129
+
130
+ In Attack A-S, DBA and centralized attack both reach a high attack success rate after performing a complete backdoor in all datasets with a scale factor $\gamma = 1 0 0$ as shown in Fig.4. In the consecutive rounds, the backdoor injected into the global model is weakened by benign updates so the attack success rate gradually decreases. There is an exception that centralized attack in CIFAR suffers from the initial drop and then rises slowly, which is caused by the high local learning rate of benign participants and is also observed in (Bagdasaryan et al., 2018). We also find that the attack success rate of centralized attack in local triggers and the global trigger drops faster than that of DBA, which shows that DBA yields a more persistent attack. For example, in MNIST and after 50 rounds, DBA remains $89 \%$ attack success rate while centralized attack only gets $21 \%$ . Although DBA performs data poisoning only using local triggers, the results show that its global trigger lasts longer than any local triggers, which suggests DBA can make the global trigger more resilient to benign updates.
131
+
132
+ # 3.3 THE ROBUSTNESS OF DISTRIBUTED ATTACK
133
+
134
+ RFA (Pillutla et al., 2019) and FoolsGold (Fung et al., 2018) are two recently proposed robust FL aggregation algorithms based on distance or similarity metrics, and in particular RFA is claimed to be able to detect more nuanced outliers which goes beyond the worst-case of the Byzantine setting (Blanchard et al., 2017). In addition, as Attack A-S is more easily detected due to the scaling operation (Pillutla et al., 2019), we will focus on evaluating the attack effectiveness of DBA and centralized backdoor attacks against both RFA and FoolsGold under Attack A-M setting.
135
+
136
+ Distributed Attack against Robust Aggregation Defence. RFA aggregates model parameters for updates and appears robust to outliers by replacing the weighted arithmetic mean in the aggregation step with an approximate geometric median. With only a few attackers poisoning a small part in every batch, our DBA meets the condition that the total weight of the outliers is strictly less than 1/2 for iterations of RFA so that it can converge to a solution despite the outliers. The maximum iteration of RFA is set to be 10 while in fact it converges rapidly, which can give a high-quality solution within about 4 iterations. Fig.5 shows the attack performance of DBA and centralized attack under RFA. For Tiny-imagenet, the centralized attack totally fails at least 80 rounds but the DBA attackers with lower distances and higher aggregation weights can perform a successful backdoor attack. For MNIST and CIFAR, the attack success rate of DBA is much higher and the convergence speed is much faster. For LOAN, centralized backdoor attack takes more than 20 rounds to converge than DBA. To explain the effectiveness of DBA, we calculate the Euclidean norm between attacker’s model parameter updates and the final geometric median as a distance metric. As shown in Tb.2 in Appendix, the malicious updates submitted by DBA attackers have lower distances than that of the centralized attacker’s updates in all datasets, which help them to better bypass the defense.
137
+
138
+ ![](images/4e2d5cde4264831d193182a5a2d5eef12424cfbeea65623e5c0e1917b7f30aef.jpg)
139
+ Figure 5: Attack effectiveness comparison on two robust RL methods: RFA and FoolsGold
140
+
141
+ Distributed Attack against Mitigating Sybils Defence. FoolsGold reduces aggregation weights of participating parties that repeatedly contribute similar gradient updates while retaining the weights of parities that provide different gradient updates (Fung et al., 2018). Fig.5 shows that DBA also outperforms centralized attack under FoolsGold. In three image datasets, the attack success rate of DBA is notably higher while converging faster. DBA in MNIST reaches $9 1 . 5 5 \%$ in round 30 when centralized attack fails with only $2 . 9 1 \%$ attack success rate. For LOAN, which are trained with a simple network, FoolsGolds cannot distinguish the difference between the malicious and clean updates and assigns high aggregation weights for attackers, leading to a fast backdoor success. To explain the effectiveness of DBA, we report FoolsGold’s weights on adversarial parties in Tb.2 in Appendix. Comparing to centralized attack, although FoolsGold assigns smaller aggregation weights to DBA attacker due to their similarity of backdoor target label, DBA is still more successful. This is because the sum of weights of distributed attackers could be larger than centralized attacker.
142
+
143
+ 3.4 EXPLANATION VIA FEATURE VISUALIZATION AND FEATURE IMPORTANCE
144
+
145
+ Feature importance can be calculated by various classification tools or visually interpreted by classspecific activation maps. For example, in LOAN we show that the top features identified by different classifiers are quite consistent (see Tb.4 in Appendix). Here we use Grad-CAM (Selvaraju et al., 2017) and Soft Decision Tree (Frosst & Hinton, 2017) to provide explanations for DBA. More details about Soft Decision Tree trained on our datasets are discussed in Appendix A.7.
146
+
147
+ We use the Grad-CAM visualization method to explain why DBA is more steathy, by inspecting their interpretations of the original and the backdoor target labels for a clean data input and the backdoored samples with local and global triggers, respectively. Fig.6 shows the Grad-CAM results of a hand-written digit ‘4’. We find that each locally triggered image alone is a weak attack as none of them can change the prediction (no attention on the top left corner where the trigger is embedded). However, when assembled together as a global trigger, the backdoored image is classified as $\bullet _ { 2 } \cdot$ (the target label), and we can clearly see the attention is dragged to the trigger location. The fact that Grad-CAM results in most of locally triggered images are similar to the clean image, demonstrates the stealthy nature of DBA.
148
+
149
+ ![](images/6ca47f551ed799ea0e8e9c0c0ca1d0f7f11cbe3bd5810022312a2c7f7de1ebac.jpg)
150
+ Figure 6: Decision visualization of poisoned digit 4 with target 2 on a DBA poisoned model
151
+
152
+ ![](images/8aa1fc89e9b86590934a374363401ed59eaaf9d1738b9dd558e1cfb3259d4d42.jpg)
153
+ Figure 7: Feature importance of LOAN learned from its soft decision tree
154
+
155
+ Using the soft decision tree of MNIST as another example, we find that the trigger area after poisoning indeed becomes much more significant for decision making in the corresponding soft decision tree, as shown in Fig.22 in Appendix.A.7. Similar conclusion is found in LOAN. We sort the absolute value of filter in the top node of a clean model to obtain the rank of 91 features (lower rank is more important) and then calculate their importance as $( 1 { \mathrm { - r a n k } } / 9 1 ) ^ { \ast } 1 0 0$ . Six insignificant features and six significant features are separately chosen to run DBA. The results in Fig.7 show that based on the soft decision tree, the insignificant features become highly important for prediction after poisoning.
156
+
157
+ # 4 ANALYSIS OF TRIGGER FACTORS IN DISTRIBUTED BACKDOOR ATTACK
158
+
159
+ Here we study the DBA trigger factors introduced in Sec.2.3 under Attack A-S, unless specified otherwise. We only change one factor in each experiment and keep other factors the same as in Sec.3.1. In Attack A-S, DBA-ASR shows the attack success rate while Main-Acc denotes the accuracy of the global model when the last distributed local trigger is embedded. DBA-ASR-t, which reveals the persistence, is the attack success rate of $t$ rounds after a complete DBA is performed. Main-Acc-t is the main accuracy after $t$ rounds. Note that in general we expect a small decrease for main task accuracy right after the DBA but will finally get back to normal after a few rounds of training.6
160
+
161
+ # 4.1 EFFECTS OF SCALE
162
+
163
+ • Enlarging scale factor increases both DBA-ASR and DBA-ASR-t, and narrows the gap between them. For CIFAR, although the DBA-ASR reaches over $90 \%$ and barely changes once $\gamma$ is bigger than 40, larger $\gamma$ still have more positive impact on DBA-ASR-t.
164
+
165
+ • For our four datasets, the more complex the model architecture (in Tb.1), the more obvious the decline in the main accuracy as $\gamma$ increases, because the scaling undermines more model parameters in complex neural network. The main accuracy of LOAN doesn’t drop because of simple model, while the main accuracy of Tiny-imagenet in attacking round even drops to $2 . 7 5 \%$ when $\gamma = 1 1 0$ .
166
+
167
+ • Larger scale factor alleviates the averaging impacts of central server for DBA, which leads to a more influential and resistant attack performance, but also cause the main accuracy of global model to descend in the attacking round for three image datasets. In addition, using large scale factor results in an anomalous update that is too different from other benign updates and is easy to detect based on the magnitude of the parameters. Therefore, there is a trade-off in choosing the scale factor.
168
+
169
+ ![](images/cff63b7d0281086010a5548a4ce3ac7f228cdab49b480435fb733937be8d0004.jpg)
170
+ Figure 9: Effects of Trigger Location on Attack Success Rate and Model Accuracy EFFECTS OF TRIGGER LOCATION
171
+
172
+ For three images datasets, we move the global trigger pattern from the left upper corner to the center, then to the right lower corner. The dotted line in Fig.9 means that the trigger reaches the right boundary and starts to move along the right edges. The implementation details are in Appendix.A.9.
173
+
174
+ • We observe a U-shape curve between $T L$ and DBA-ASR (in MNIST) / DBA-ASR-t (in Tinyimagenet and MNIST). This is because the middle part in images usually contains the main object. DBA in such areas is harder to succeed and will be faster forgotten because these pixels are fundamental to the main accuracy. This finding is apparent in MNIST, where the main accuracy after 40 rounds only remains $1 . 4 5 \%$ in center $T L = 9$ ) while has $9 1 . 5 7 \%$ in left upper corner $T L = 0$ ).
175
+
176
+ • Similar finding can be found in LOAN as shown in Fig.9.(a). DBA using low-importance features has higher success rate in attacking round and subsequent rounds. The low-importance trigger achieves $8 5 . 7 2 \%$ DBA-ASR after 20 rounds while the high-importance trigger is $0 \%$ .
177
+
178
+ # 4.3 EFFECTS OF TRIGGER GAP
179
+
180
+ • In the case of four local trigger patterns located in the four corners of an image, corresponding to the maximum trigger gap in Fig.10, the DBA-ASR and DBA-ASR-t are both low in image datasets. Such failure might be caused by the local convolution operations and large distance between local triggers so that the global model cannot recognize the global trigger.
181
+
182
+ • The curve of DBA-ASR and DBA-ASR-t in Fig.10.(a) has a significant drop in the middle. This happens when the right lower local trigger covers the center areas in MNIST images. Similar observations can be explained based on Fig.9.(b)(d).
183
+
184
+ • Using zero trigger gap in CIFAR and Tiny-imagenet, DBA still succeeds but we find the backdoor will be forgotten faster. We suggest using non-zero trigger gap when implementing DBA.
185
+
186
+ # 4.4 EFFECTS OF TRIGGER SIZE
187
+
188
+ • In image datasets, larger trigger size gives higher DBA-ASR and DBA-ASR-t. Nevertheless, they are stable once $T S$ becomes large enough, suggesting little gain in using over-sized triggers.
189
+
190
+ • For MNIST, DBA-ASR is low when $T S = 1$ . This is because each local trigger is too small to be recognized in global model. In the same setting, the centralized attack which uses the global pattern with 4 pixels also isn’t very successful and its attack success rate soon decreases below $10 \%$ within 4 rounds. This reflects that under Attack A-S, backdoor attacks with too small trigger are ineffective.
191
+
192
+ ![](images/ef5613ca1c13dfc61b0a41ef850a4275386a31cd03695c66b806ab59691716d3.jpg)
193
+ Figure 11: Effects of Local Trigger Size on Attack Success Rate and Model Accuracy
194
+
195
+ 4.5 EFFECTS OF POISON INTERVAL
196
+
197
+ • The attack performance is poor when all distributed attackers submit the scaled updates at the same round $[ I = 0 ]$ ) in all datasets because the scaling effect is too strong, vastly changing the parameter in the global model and causes it to fail in main accuracy. It’s also ineffective if the poison interval is too long because the early embemed triggers may be totally forgotten.
198
+
199
+ • The peaks in Fig.12.(a)(b) show that there exists an optimal poison round interval for LOAN and MNIST. DBA attackers can wait until the global model converges and then embeds the next local trigger to maximize backdoor performance, which is a competitive advantage over centralized attack.
200
+
201
+ • In CIFAR and Tiny-imagenet, varying the interval from 1 up to 50 does not lead to remarkable changes in DBA-ASR and DBA-ASR-t, which manifests that the local trigger effect can last long and contribute to the attack performance of global trigger. From this aspect, distributed attack is extraordinarily robust to RL and should be considered as a more serious threat.
202
+
203
+ ![](images/ba289e7541a7de623089cf059892024825937a2066d343f57477a83b7ed50047.jpg)
204
+ Figure 13: Effects of Poison Ratio on Attack Success Rate and Model Accuracy
205
+
206
+ # 4.6 EFFECTS OF POISON RATIO
207
+
208
+ In our experiments, the training batch size is 64. As the X-axis variable (# of poisoned samples) in Fig.13 increases from 1, DBA-ASR and DBA-ASR-t first increase and then drop. It’s intuitive that more poisoned data can lead to a better backdoor performance. However, a too large poison ratio means that the attacker scales up the weight of a local model of low accuracy, which leads to the failure of global model in the main task. In the case of poisoning full batch, after DBA, the global model in CIFAR and Tiny-imagenet trains the main task all over again, whose main accuracy is normal after 90 and 40 rounds, respectively. But in MNIST it is reduced to an overfitted model that predicts the target label for any input, so the attack success rate is always $100 \%$ while the main accuracy is about $10 \%$ in the subsequent rounds. Therefore, it’s better for DBA to remain stealthy in its local training by using a reasonable poison ratio that also maintains accuracy on clean data.
209
+
210
+ # 4.7 EFFECTS OF DATA DISTRIBUTION
211
+
212
+ Under various data distributions, DBA-ASR is stable, indicating the practicability and robustness of DBA. See more details in Appendix.A.10.
213
+
214
+ # 5 RELATED WORK
215
+
216
+ Federated Learning. McMahan et al. (2017) first introduced federated learning (FL) to solve the distributed machine learning problem. Since the training data is never shared with the server (aggregator), FL is in favor of machine learning with privacy and regulation constraints. In this paper, we discuss and analyze our experiments in standard FL settings performed in synchronous update rounds. Advanced FL for improving communication efficacy by compressing updates using random rotations and quantization has been recently studied in Konecnˇ y et al. (2016). \`
217
+
218
+ Backdoor Attack on Federated Learning. Bagdasaryan et al. (2018) proposed a model-poisoning approach on FL which replaced the global model with a malicious local model by scaling up the attacker’s updates. Bhagoji et al. (2019) considered the case of one malicious attacker aiming to achieve both global model convergence and targeted poisoning attack, by boosting the malicious updates. They proposed two strategies, alternating minimization and estimating other benign updates, to evade the defences under weighted and non-weighted averaging for aggregation. We note that these works only consider centralized backdoor attack on FL.
219
+
220
+ Robust Federated Learning. Robust FL aims to train FL models while mitigating certain attack threats. Fung et al. (2018) proposed a novel defense based on the party updating diversity without limitation on the number of adversarial parties. It adds up historical updating vectors and calculate the cosine similarity among all participants to assign global learning rate for each party. Similar updating vectors will obtain lower learning rates and therefore the global model can be prevented from both label-flipping and centralized backdoor attacks. Pillutla et al. (2019) proposed a robust aggregation approach by replacing the weighted arithmetic mean with an approximate geometric median, so as to minimize the impacts of “outlier” updates.
221
+
222
+ # 6 CONCLUSIONS
223
+
224
+ Through extensive experiments on diverse datasets including LOAN and three image datasets in different settings, we show that in standard FL our proposed DBA is more persistent and effective than centralized backdoor attack: DBA achieves higher attack success rate, faster convergence and better resiliency in single-shot and multiple-shot attack scenarios. We also demonstrate that DBA is more stealthy and can successfully evade two robust FL approaches. The effectiveness of DBA is explained using feature visual interpretation for inspecting its role in aggregation. We also perform an in-depth analysis on the important factors that are unique to DBA to explore its properties and limitations. Our results suggest DBA is a new and more powerful attack on FL than current backdoor attacks. Our analysis and findings can provide new threat assessment tools and novel insights for evaluating the adversarial robustness of FL.
225
+
226
+ # ACKNOWLEDGEMENTS
227
+
228
+ This work was partly supported by IBM-ILLINOIS Center for Cognitive Computing Systems Research (C3SR) – a research collaboration as part of the IBM AI Horizons Network.
229
+
230
+ # REFERENCES
231
+
232
+ Eugene Bagdasaryan, Andreas Veit, Yiqing Hua, Deborah Estrin, and Vitaly Shmatikov. How to backdoor federated learning. arXiv preprint arXiv:1807.00459, 2018.
233
+
234
+ Moran Baruch, Gilad Baruch, and Yoav Goldberg. A little is enough: Circumventing defenses for distributed learning. arXiv preprint arXiv:1902.06156, 2019.
235
+
236
+ Arjun Nitin Bhagoji, Supriyo Chakraborty, Prateek Mittal, and Seraphin Calo. Analyzing federated learning through an adversarial lens. In International Conference on Machine Learning, pp. 634–643, 2019.
237
+
238
+ Peva Blanchard, Rachid Guerraoui, Julien Stainer, et al. Machine learning with adversaries: Byzantine tolerant gradient descent. In Advances in Neural Information Processing Systems, pp. 119–129, 2017.
239
+
240
+ Xinyun Chen, Chang Liu, Bo Li, Kimberly Lu, and Dawn Song. Targeted backdoor attacks on deep learning systems using data poisoning. arXiv preprint arXiv:1712.05526, 2017.
241
+
242
+ Nicholas Frosst and Geoffrey Hinton. Distilling a neural network into a soft decision tree. arXiv preprint arXiv:1711.09784, 2017.
243
+
244
+ Clement Fung, Chris JM Yoon, and Ivan Beschastnikh. Mitigating sybils in federated learning poisoning. arXiv preprint arXiv:1808.04866, 2018.
245
+
246
+ Tianyu Gu, Kang Liu, Brendan Dolan-Gavitt, and Siddharth Garg. Badnets: Evaluating backdooring attacks on deep neural networks. IEEE Access, 7:47230–47244, 2019.
247
+
248
+ Rachid Guerraoui, Sebastien Rouault, et al. The hidden vulnerability of distributed learning in ´ byzantium. In International Conference on Machine Learning, pp. 3518–3527, 2018.
249
+
250
+ Andrew Hard, Kanishka Rao, Rajiv Mathews, Franc¸oise Beaufays, Sean Augenstein, Hubert Eichner, Chloe Kiddon, and Daniel Ramage. Federated learning for mobile keyboard prediction. ´ arXiv preprint arXiv:1811.03604, 2018.
251
+
252
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
253
+
254
+ Wendy Kan. Lending club loan data, Mar 2019. URL https://www.kaggle.com/ wendykan/lending-club-loan-data.
255
+
256
+ Jakub Konecnˇ y, H Brendan McMahan, Felix X Yu, Peter Richt \` arik, Ananda Theertha Suresh, and ´ Dave Bacon. Federated learning: Strategies for improving communication efficiency. arXiv preprint arXiv:1610.05492, 2016.
257
+
258
+ Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-Efficient Learning of Deep Networks from Decentralized Data. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, volume 54 of Proceedings of Machine Learning Research, pp. 1273–1282. PMLR, 20–22 Apr 2017.
259
+
260
+ Thomas Minka. Estimating a dirichlet distribution, 2000.
261
+
262
+ Krishna Pillutla, Sham M. Kakade, and Zaid Harchaoui. Robust Aggregation for Federated Learning. arXiv preprint, 2019.
263
+
264
+ Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision, pp. 618–626, 2017.
265
+
266
+ Claude E Shannon. Communication theory of secrecy systems. Bell system technical journal, 28(4): 656–715, 1949.
267
+
268
+ Virginia Smith, Chao-Kai Chiang, Maziar Sanjabi, and Ameet S Talwalkar. Federated multi-task learning. In Advances in Neural Information Processing Systems, pp. 4424–4434, 2017.
269
+
270
+ Qiang Yang, Yang Liu, Tianjian Chen, and Yongxin Tong. Federated machine learning: Concept and applications. ACM Transactions on Intelligent Systems and Technology (TIST), 10(2):12, 2019.
271
+
272
+ Timothy Yang, Galen Andrew, Hubert Eichner, Haicheng Sun, Wei Li, Nicholas Kong, Daniel Ramage, and Franc¸oise Beaufays. Applied federated learning: Improving google keyboard query suggestions. arXiv preprint arXiv:1812.02903, 2018.
273
+
274
+ Yue Zhao, Meng Li, Liangzhen Lai, Naveen Suda, Damon Civin, and Vikas Chandra. Federated learning with non-iid data. arXiv preprint arXiv:1806.00582, 2018.
275
+
276
+ # A APPENDIX
277
+
278
+ # A.1 DETAILS ON DATASETS AND EXPERIMENT SETUP
279
+
280
+ The financial dataset LOAN contains the current loan status (Current, Late, Fully Paid, etc.) and latest payment information, which can be used for loan status prediction. It consists of 1,808,534 data samples and we divide them by 51 US states, each of whom represents a participant in FL. $80 \%$ of data samples are used for training and the rest is for testing. In the three image datasets, a Dirichlet distribution is used to divide training images for 100 parties. The distribution hyperparameter is 0.5 for MNIST and CIFAR and 0.01 for Tiny-imagenet.
281
+
282
+ Every party uses SGD as optimizer and trains for $E$ local epochs with local learning rate $l _ { r }$ (see Tb.1) and a batch size of 64. A shared global model is trained by all participants, 10 of whom are selected in each round to submit locally computed SGD updates for aggregation.
283
+
284
+ For the pixel-pattern backdoor, we assign white color to chosen pixels and swap the label of any sample with such triggers into the target label, which is “digit $2 ^ { \circ }$ in MNIST, “bird” in CIFAR and “bullfrog” in Tiny-imagenet. Except in Section 4 where we analyze the trigger factor effect, in other sections the trigger factors are set to be $\phi = \{ 4 , 2 , 0 \}$ for MNIST; $\phi = \left\{ 6 , 3 , 0 \right\}$ for CIFAR; $\phi = \{ 1 0 , 2 , 0 \}$ for Tiny-imagenet with 4 DBA attackers. Because the image size in tiny-imagenet are larger than cifar and mnist, we set the row number of the local trigger to 2 in Tiny-imagenet while it is 1 in other image datasets.
285
+
286
+ Similarly, for the preprocessed7 LOAN dataset, six features8 which are the low importance features in Fig.7 are chosen and split by 3 DBA attackers, each of whom manipulates two features as a local trigger. They assign local trigger features with new values9 that are slightly larger than their maximum values, and swap label to ”Does not meet the credit policy. Status:Fully Paid”.
287
+
288
+ Every attacker’s batch is mixed with correctly labeled data and such backdoored data with poison ratio $r$ (see Tb.1). Attackers have their own local poison $l _ { r }$ and poison $E$ (see Tb.1) to maximize their backdoor performance and remain stealthy.
289
+
290
+ # A.2 BETTER TO ATTACK LATE
291
+
292
+ In Attack A-M, we found that if DBA poisons from scratch, the main accuracy was low and hard to converge. Therefore in three image datasets, we begin to attack when the main accuracy of global converges, which is round 10 for MNIST, 200 for CIFAR, 20 for Tiny-imagenet. As mentioned in (Bagdasaryan et al., 2018), it’s also better to attack late in Attack A-S because when the global model is converging, the updates from benign clients contain less commonly shared patterns but more individual features, which are more likely to be canceled out when aggregating and thus having less impact on the backdoor.
293
+
294
+ # A.3 DBA ON IRREGULAR SHAPE TRIGGERS
295
+
296
+ To evaluate DBA on irregular shape triggers, we decomposed the logo ‘ICLR’ into ‘I’, ‘C’, ‘L’, ‘R’ as local triggers on three image datasets and we decomposed the physical pattern glasses (Chen et al., 2017) into four parts as the examples shown in Fig. 14.
297
+
298
+ The results under Attack A-M are shown in Fig. 15 and Fig. 16. DBA is always more effective than centralized attack, which is similar to the results of regular shape triggers in Fig. 4. This conclusion also holds for glass patterns with different colors as shown in Fig. 17.
299
+
300
+ # A.4 MORE ANALYSIS ON ATTACK A-S SETTINGS FOR CENTRALIZED ATTACK
301
+
302
+ In our experiment setup we assumed that there are $f$ distributed attackers and 1 centralized attacker. To further evaluate Attack A-S, we conduct centralized attacks with the same number of times as DBA, but each update includes $1 / f$ number of poisoning samples, so that the total number of poisoning samples included to compute the gradient update still stay the same. There are two ways to achieve $\bar { 1 } / f$ number of poisoning samples in each update for centralized attack and we evaluate both as following.
303
+
304
+ ![](images/856edf0fb09d3b1e083adcb059e430fb575fe9aa5ee01c81ecd2bedc53a3c48c.jpg)
305
+ Figure 14: Examples of irregular shape triggers in image datasets
306
+
307
+ ![](images/404ce27ad4fc2db411736e9445e48e47de2827f3099816f7baa27cbafe80aba0.jpg)
308
+ Figure 15: Attack A-M for irregular pixel logo ‘ICLR’
309
+
310
+ Change the poison ratio into $1 / f$ . We decrease the fraction of backdoored samples added per training batch to $1 / f$ .
311
+
312
+ Specifically, the poison ratio for LOAN is centralized 3/64, distributed 9/64; for MNIST is centralized 5/64, distributed 20/64; for CIFAR is centralized 1/64, distributed 4/64; for Tiny-imagenet is centralized 1/64, distributed 4/64. Other parameters are the same as described in the paper.
313
+
314
+ Fig. 18 shows that DBA is better in LOAN and MNIST while centralized attack is better in CIFAR and Tiny-imagenet. Similar to the finding in Sec. 4.1 that “the more complex the model architecture (in Tb.1), the more obvious the decline in the main accuracy as the scale factor increases, because the scaling undermines more model parameters”, the setting of $f$ times scaling for centralized attack has larger impact on complex neural network like Resnet used in CIFAR and Tiny-imagenet. However, we note that this setting is not a totally fair comparison of the single-shot attack setting, as the same malicious agent of the centralized attack is allowed to attack $f$ times, while each malicious agent of DBA only attacks once.
315
+
316
+ ![](images/decc89a9413f6cd52144d9d265ce9e4170acbe60d5b070c1d3610b676570b321.jpg)
317
+ Figure 16: Attack A-M for white glasses pattern on Tiny-imagenet
318
+
319
+ ![](images/76b72c270966410c5ee739e900061991573c0f392832bcde9df60d179d668edb.jpg)
320
+ Figure 17: Attack A-M for white, black, purple glasses patterns on Tiny-imagenet
321
+
322
+ ![](images/0b1cd11c1adfcf2ca3185b613e03493389686be36291f15e0c9e09dbfd30dda1.jpg)
323
+ Figure 18: Scale $f$ times with $1 / f$ poison ratio each time
324
+
325
+ Change the data size to $1 / f$ . We divide the local dataset into $f$ parts and use $1 / f$ dataset for each update and keep the poison ratio unchanged.
326
+
327
+ ![](images/b32fab870f550784d869228f33eb36de1fe5a37841f0794efb8d5ea322cde161.jpg)
328
+ Fig. 19 shows that DBA is still more persistent than centralized attack.
329
+ Figure 19: Scale $f$ times with $1 / f$ data size each time
330
+
331
+ # A.5 MORE DETAILS ABOUT ROBUST AGGREGATION
332
+
333
+ We report RFA distance and FoolsGold weights on adversarial parties in Tb. 2.
334
+
335
+ Table 2: RFA Distance and FoolsGold Weight
336
+
337
+ <table><tr><td>Metrics</td><td>Dataset</td><td>DBA attacker1</td><td>DBA attacker2</td><td>DBA attacker3</td><td>DBA attacker4</td><td>DBA attackers(sum)</td><td>centralized attacker</td></tr><tr><td rowspan="2">RFA</td><td>LOAN</td><td>0.71+0.50</td><td>0.75±0.49</td><td>0.73±0.50</td><td>/</td><td>/</td><td>0.81±0.48</td></tr><tr><td>MNIST</td><td>1.48 ±1.05</td><td>1.41±1.28</td><td>1.09±1.03</td><td>1.03±0.89</td><td>T</td><td>2.57±1.32</td></tr><tr><td rowspan="2">Distance</td><td>CIFAR</td><td>175.43±22.82</td><td>175.46±22.83</td><td>148.45±22.84</td><td>175.29±22.85</td><td>T</td><td>196.13±11.58</td></tr><tr><td>Tiny-imagenet</td><td>396.68±33.83</td><td>106.01±33.83</td><td>374.32±33.83</td><td>42.82±28.8</td><td>/</td><td>431.34 ±40.15</td></tr><tr><td rowspan="2">FoolsGold</td><td>LOAN</td><td>0.31 ±0.38</td><td>0.31±0.38</td><td>0.57±0.45</td><td>/</td><td>1.18±1.15</td><td>0.98±0.10</td></tr><tr><td>MNIST</td><td>1.00±0.00</td><td>1.00±0.00</td><td>0.99±0.02</td><td>0.99±0.02</td><td>3.98±0.04</td><td>1.00±0.00</td></tr><tr><td rowspan="2">Weight</td><td>CIFAR</td><td>0.87±0.2</td><td>0.26±0.27</td><td>0.37±0.26</td><td>0.32±0.29</td><td>1.82±0.88</td><td>0.79±0.34</td></tr><tr><td>Tiny-imagenet</td><td>0.88±0.22</td><td>0.87±0.28</td><td>0.34±0.23</td><td>0.26±0.13</td><td>2.35±0.34</td><td>0.99±0.11</td></tr></table>
338
+
339
+ # A.6 THE ROBUSTNESS OF DISTRIBUTED ATTACK IN BYZANTINE SETTING
340
+
341
+ Here we evaluate the Byzantine setting Multi-Krum (Blanchard et al., 2017) and Bulyan (Guerraoui et al., 2018). For both DBA and centralized attack we use the aggregation rule that can tolerate $f$ Byzantine workers among the $n$ workers (Blanchard et al., 2017). For centralized attack there is 1 attacker and $n - 1$ non-Byzantine workers. For DBA there are $f$ distributed attackers and $n - f$ non-Byzantine workers. The total number of poisoned pixel amounts are kept the same.
342
+
343
+ Multi-Krum To meet the assumption that $2 f + 2 < n$ , we set $n = 1 0$ , $f = 3 ,$ ) for LOAN and $\mathbf { \Phi } _ { n } = 1 2$ , $f = 4 ,$ ) for image datasets. The Multi-Krum parameter $m$ is set to $m = n - f$ . For Tiny-imagenet we decrease the poison ratio into $5 / 6 4$ for both attacks. Other parameters are the same as described in the paper.
344
+
345
+ For CIFAR and Tiny-imagenet, we find that DBA is more effective as shown in Fig. 20. For LOAN and MNIST, both attacks don’t behave well. We believe the reason can be explained by the fact that LOAN and MNIST are simpler tasks and benign clients quickly agree on the correct gradient direction, so malicious updates are more difficult to succeed.
346
+
347
+ Bulyan We use Bulyan based on the Byzantineresilient aggregation rule Krum (Blanchard et al., 2017). To meet the assumption that $4 f + 3 < = n$ , we set $\mathrm { \Delta } n = 1 5$ , $f = 3$ ) for LOAN and $n = 2 0$ $f = 4 ,$ ) for image datasets.
348
+
349
+ For CIFAR, DBA is more effective as shown in Fig. 21. For other datasets, both attacks fail. However, we note that our distributed and centralized backdoor attacks are not optimized for Byzantine setting. We believe its worthwhile to explore the distributed version of other new attack algorithms, e.g. (Baruch et al., 2019) that manipulates its update to mitigate Krum and Bulyan defenses.
350
+
351
+ ![](images/4db2c8eff47f092f4b8073ccb009a852fdd35239c7908dd10ea1cd96c8abd0ed.jpg)
352
+ Figure 20: Multi-Krum
353
+
354
+ ![](images/ec3fb3caf1f054923def99887ce2c610b3924f312773d549aaf7d036f014fe90.jpg)
355
+ Figure 21: Bulyan
356
+
357
+ In summary, Multi-Krum and Bulyan have stricter assumptions on the proportion of attackers than RFA and FoolsGold. In addition, while RFA and FoolsGold still assign potential outliers with extreme low weights, Krum (Multi-Krum, Krum-based Bulyan) directly removes them, making it impossible to inject backdoors if the malicious updates are obviously far from the benign updates. The centralized attack for four datasets totally fails under Multi-Krum and Bulyan while DBA can still succeed in some cases.
358
+
359
+ # A.7 MORE DETAILS ON SOFT DECISION TREE
360
+
361
+ Frosst & Hinton (2017) proposed Soft Decision Tree which distills a trained neural network by training with data and their soft targets that are the predictions of the neural network over classes. Trained with gradient descent, every inner node has a learned filter and a bias to make binary decision and the leaf node has a learned distribution. To some extent we can use the filter value to reflect the importance of every feature in internal nodes. We learn soft decision trees from the clean neural network and DBA poisoned neural network of LOAN and MNIST and they all achieve about $90 \%$ test accuracy on main and backdoor tasks.
362
+
363
+ If we look at the third node in the forth layer in Fig.22.(b), the potential classifications are only 2 and 0, thus its filter is simply learning to distinguish these two digit. With extreme dark color in the area of the global pattern, which means these pixels correspond to small value in filter, this inner node will make leftmost branch decision into target label 2 when triggered by the global pattern because the probability is lower than 0.5. Taking an opposite example, the leftmost node in second layer has extreme white color in the area of the global pattern, which means these pixels correspond to large value of filter and will contribute to make rightmost branch decision if encountering the global pattern. Moreover, clean images won’t trigger the filters in backdoor pattern area and the major digit shape in center dominates the decision route, like examples in Fig.24.(b). Comparing Fig.22.(a)(b), the trigger area after poisoning becomes much more significant for decision making.
364
+
365
+ Soft Decision Tree provides insights into the neural network and give explainable classification decisions. Examples of the decision routes in inference time for clean and poisoned input data are given for MNIST in Fig.25 and in Fig.24. We find that the poisoned model already starts to misbehave from the top node of the tree.
366
+
367
+ We also run 10000 poisoned and clean samples for the LOAN clean and poison models to study the sample-wise importance based on the filter value multiplied by the input feature value in Fig.23.(b)(c). With this local importance metric, the original low importance feature indeed becomes salient in poisoned model with poisoned input.
368
+
369
+ ![](images/010fd5085271870fa2d5209e8f4257be44c3ccc568d7333f4fba8c1edb7a6bfc.jpg)
370
+ Figure 22: Soft decision tree for MNIST
371
+
372
+ ![](images/f43bb33df56af02f97232825a20cdcb427eed3a806e05c1273fd53b64c771e9d.jpg)
373
+ Figure 23: Feature importance in soft decision tree for LOAN
374
+
375
+ ![](images/7c613f8f090a67e1d2c53ce1e3e5fa478c5661ff1cef2755ebe78fa1e4cdc46c.jpg)
376
+ Figure 24: Examples for the poisoned MNIST soft decision tree
377
+
378
+ ![](images/175e5eed996f1f9306b62aff614682d24982dd77550fba33477f55fcc2a3a0c7.jpg)
379
+ Figure 25: Examples for the clean MNIST soft decision tree
380
+
381
+ # A.8 MORE GRAD-CAM RESULTS ON MNIST
382
+
383
+ We test the global model of MNIST poisoned by DBA under Attack A-M in round 16 of Fig.4 with local backdoored images and global backdoored images. More Grad-cam results are provided in Fig.26 and Fig.27.
384
+
385
+ ![](images/a6deb1bd1420756d574d25d6ff369d126fabf736b83d3f83857e96168b1a95cb.jpg)
386
+ Figure 26: Example of digit 8
387
+
388
+ ![](images/d89089c2ec40f16a40deea55cede2e04b0754bde50b9a4386014fb18d9d5dbe6.jpg)
389
+ Figure 27: Example of digit 5
390
+
391
+ # A.9 IMPLEMENTATION DETAILS FOR LOCATION EFFECT EXPERIMENTS
392
+
393
+ During this process we increases $S h i f t _ { y }$ and first keeps $S h i f t _ { x } = S h i f t _ { y }$ . After the rightmost pixel reaches the right edge of images, we fix $S h i f t _ { x }$ as its largest value, which is $\mathrm { X }$ value of the dotted line in Fig.9, and keep increasing $S h i f t _ { y }$ until the lowest pixel reaches the button edge of the images. $T L$ is the max value among $S h i f t _ { x }$ and $S h i f t _ { y }$ .
394
+
395
+ # A.10 DATA DISTRIBUTION EFFECTS FOR TRIGGERS
396
+
397
+ • By increasing the hypterparameter $\alpha$ in the Dirichlet distribution, we can simulate from non-i.i.d to i.i.d distributions for the image datasets. When evaluated under Attack A-M, Fig.28 shows that DBA-ASR is stable under various distributions, which exhibits the practicability and robustness of DBA when attacking standard FL.
398
+
399
+ • Data distribution has more influence on the DBA performance under robust aggregation algorithms when calculating distance or similarity between the benign updates and malicious updates. When the training data are non-i.i.d., the updates across the benign participants already appear high diversity so the poisoned update is better concealed among them and less likely to be detected. In our experiments, it’s easier for DBA to succeed against RFA and FoolsGold under a more non-i.i.d. data distribution in CIFAR and Tiny-imagenet.
400
+
401
+ ![](images/54b478b3a440ca22ac56dfbc4f76ebd038db7f322aa0083daa452c612d972305.jpg)
402
+ Figure 28: Effects of $\alpha$ in Dirichlet data distribution on Attack Success Rate
403
+
404
+ # A.11 MORE DETAILS ABOUT LOAN DATASETS
405
+
406
+ The lable distribution is uneven in LOAN, which is shown in Tb.3. The five most important features among the 91 features in LOAN under various classification methods are shown in Tb.4 and the result is consistent.
407
+
408
+ In Fig. 7, the names for six low importance feature are num tl 120dpd 2m, num tl 90g dpd 24m, pub rec bankruptcies, pub rec, acc now delinq, tax liens; the names six high importance feature are out prncp,total pymnt inv, out prncp inv, total rec prncp,last pymnt amnt, all util.
409
+
410
+ Table 3: Financial Dataset Label Distribution
411
+
412
+ <table><tr><td>Loan Status Number of Examples</td></tr><tr><td>Fully Paid</td><td>1041952</td></tr><tr><td>Current</td><td>919695</td></tr><tr><td>Charged Off</td><td>261655</td></tr><tr><td>Late (31-120 days)</td><td>21897</td></tr><tr><td>In Grace Period</td><td>8952</td></tr><tr><td>Late (16-30 days)</td><td>3737</td></tr><tr><td>Does not meet the credit policy. Status:Fully Paid</td><td>1988</td></tr><tr><td>Does not meet the credit policy. Status:Charged Off</td><td>761</td></tr><tr><td>Default</td><td>31</td></tr></table>
413
+
414
+ Table 4: The Five Most Important Features are Similar in Different Classification Methods
415
+
416
+ <table><tr><td>Method</td><td>Rank 1st</td><td>Rank 2nd</td><td>Rank 3rd</td><td>Rank 4th</td><td>Rank 5th</td></tr><tr><td>Random Forest Classifier</td><td>out_prncp</td><td>out_prncp_inv</td><td>last_pymnt_amnt</td><td>recoveries</td><td>total_rec_prncp</td></tr><tr><td>Extra Tree Classifier</td><td>out_prncp_inv</td><td>out_prncp</td><td>total_rec_prncp</td><td>last_pymnt_amnt</td><td>total-pymnt_inv</td></tr><tr><td>XGBoost</td><td>out_prncp</td><td>recoveries</td><td>funded_amnt</td><td>total_rec_prncp</td><td>last_pymnt_amnt</td></tr><tr><td>Our decision tree</td><td>out_prncp</td><td>out_prncp_inv</td><td>term</td><td>recoveries</td><td>collection_recovery_fee</td></tr></table>
parse/train/rkgyS0VFvr/rkgyS0VFvr_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rkgyS0VFvr/rkgyS0VFvr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rkgyS0VFvr/rkgyS0VFvr_model.json ADDED
The diff for this file is too large to render. See raw diff