Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/6Tm1mposlrM/6Tm1mposlrM.md +488 -0
- parse/train/6Tm1mposlrM/6Tm1mposlrM_content_list.json +0 -0
- parse/train/6Tm1mposlrM/6Tm1mposlrM_middle.json +0 -0
- parse/train/6Tm1mposlrM/6Tm1mposlrM_model.json +0 -0
- parse/train/H1lK_lBtvS/H1lK_lBtvS.md +275 -0
- parse/train/H1lK_lBtvS/H1lK_lBtvS_content_list.json +1456 -0
- parse/train/H1lK_lBtvS/H1lK_lBtvS_middle.json +0 -0
- parse/train/H1lK_lBtvS/H1lK_lBtvS_model.json +0 -0
- parse/train/SkgbmyHFDS/SkgbmyHFDS.md +332 -0
- parse/train/SkgbmyHFDS/SkgbmyHFDS_content_list.json +1762 -0
- parse/train/SkgbmyHFDS/SkgbmyHFDS_middle.json +0 -0
- parse/train/SkgbmyHFDS/SkgbmyHFDS_model.json +0 -0
- parse/train/T3kmOP_cMFB/T3kmOP_cMFB.md +314 -0
- parse/train/T3kmOP_cMFB/T3kmOP_cMFB_content_list.json +1587 -0
- parse/train/T3kmOP_cMFB/T3kmOP_cMFB_middle.json +0 -0
- parse/train/T3kmOP_cMFB/T3kmOP_cMFB_model.json +0 -0
- parse/train/rkl3m1BFDB/rkl3m1BFDB.md +363 -0
- parse/train/rkl3m1BFDB/rkl3m1BFDB_content_list.json +0 -0
- parse/train/rkl3m1BFDB/rkl3m1BFDB_middle.json +0 -0
- parse/train/rkl3m1BFDB/rkl3m1BFDB_model.json +0 -0
parse/train/6Tm1mposlrM/6Tm1mposlrM.md
ADDED
|
@@ -0,0 +1,488 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SHARPNESS-AWARE MINIMIZATION FOR EFFICIENTLY IMPROVING GENERALIZATION
|
| 2 |
+
|
| 3 |
+
Pierre Foret ∗
|
| 4 |
+
Google Research
|
| 5 |
+
pierreforet@google.com
|
| 6 |
+
Ariel Kleiner
|
| 7 |
+
Google Research
|
| 8 |
+
akleiner@google.com
|
| 9 |
+
|
| 10 |
+
Hossein Mobahi Google Research hmobahi@google.com
|
| 11 |
+
|
| 12 |
+
Behnam Neyshabur Blueshift, Alphabet neyshabur@google.com
|
| 13 |
+
|
| 14 |
+
# ABSTRACT
|
| 15 |
+
|
| 16 |
+
In today’s heavily overparameterized models, the value of the training loss provides few guarantees on model generalization ability. Indeed, optimizing only the training loss value, as is commonly done, can easily lead to suboptimal model quality. Motivated by prior work connecting the geometry of the loss landscape and generalization, we introduce a novel, effective procedure for instead simultaneously minimizing loss value and loss sharpness. In particular, our procedure, Sharpness-Aware Minimization (SAM), seeks parameters that lie in neighborhoods having uniformly low loss; this formulation results in a minmax optimization problem on which gradient descent can be performed efficiently. We present empirical results showing that SAM improves model generalization across a variety of benchmark datasets (e.g., CIFAR- $\{ 1 0 , 1 0 0 \}$ , ImageNet, finetuning tasks) and models, yielding novel state-of-the-art performance for several. Additionally, we find that SAM natively provides robustness to label noise on par with that provided by state-of-the-art procedures that specifically target learning with noisy labels. We open source our code at https: //github.com/google-research/sam.
|
| 17 |
+
|
| 18 |
+
# 1 INTRODUCTION
|
| 19 |
+
|
| 20 |
+
Modern machine learning’s success in achieving ever better performance on a wide range of tasks has relied in significant part on ever heavier overparameterization, in conjunction with developing ever more effective training algorithms that are able to find parameters that generalize well. Indeed, many modern neural networks can easily memorize the training data and have the capacity to readily overfit (Zhang et al., 2016). Such heavy overparameterization is currently required to achieve stateof-the-art results in a variety of domains (Tan & Le, 2019; Kolesnikov et al., 2020; Huang et al., 2018). In turn, it is essential that such models be trained using procedures that ensure that the parameters actually selected do in fact generalize beyond the training set.
|
| 21 |
+
|
| 22 |
+
Unfortunately, simply minimizing commonly used loss functions (e.g., cross-entropy) on the training set is typically not sufficient to achieve satisfactory generalization. The training loss landscapes of today’s models are commonly complex and non-convex, with a multiplicity of local and global minima, and with different global minima yielding models with different generalization abilities (Shirish Keskar et al., 2016). As a result, the choice of optimizer (and associated optimizer settings) from among the many available (e.g., stochastic gradient descent (Nesterov, 1983), Adam (Kingma & Ba, 2014), RMSProp (Hinton et al.), and others (Duchi et al., 2011; Dozat, 2016; Martens & Grosse, 2015)) has become an important design choice, though understanding of its relationship to model generalization remains nascent (Shirish Keskar et al., 2016; Wilson et al., 2017; Shirish Keskar & Socher, 2017; Agarwal et al., 2020; Jacot et al., 2018). Relatedly, a panoply of methods for modifying the training process have been proposed, including dropout (Srivastava et al., 2014), batch normalization (Ioffe & Szegedy, 2015), stochastic depth (Huang et al., 2016), data augmentation (Cubuk et al., 2018), and mixed sample augmentations (Zhang et al., 2017; Harris et al., 2020).
|
| 23 |
+
|
| 24 |
+

|
| 25 |
+
Figure 1: (left) Error rate reduction obtained by switching to SAM. Each point is a different dataset / model / data augmentation. (middle) A sharp minimum to which a ResNet trained with SGD converged. (right) A wide minimum to which the same ResNet trained with SAM converged.
|
| 26 |
+
|
| 27 |
+
The connection between the geometry of the loss landscape—in particular, the flatness of minima— and generalization has been studied extensively from both theoretical and empirical perspectives (Shirish Keskar et al., 2016; Dziugaite & Roy, 2017; Jiang et al., 2019). While this connection has held the promise of enabling new approaches to model training that yield better generalization, practical efficient algorithms that specifically seek out flatter minima and furthermore effectively improve generalization on a range of state-of-the-art models have thus far been elusive (e.g., see (Chaudhari et al., 2016; Izmailov et al., 2018); we include a more detailed discussion of prior work in Section 5).
|
| 28 |
+
|
| 29 |
+
We present here a new efficient, scalable, and effective approach to improving model generalization ability that directly leverages the geometry of the loss landscape and its connection to generalization, and is powerfully complementary to existing techniques. In particular, we make the following contributions:
|
| 30 |
+
|
| 31 |
+
• We introduce Sharpness-Aware Minimization (SAM), a novel procedure that improves model generalization by simultaneously minimizing loss value and loss sharpness. SAM functions by seeking parameters that lie in neighborhoods having uniformly low loss value (rather than parameters that only themselves have low loss value, as illustrated in the middle and righthand images of Figure 1), and can be implemented efficiently and easily.
|
| 32 |
+
• We show via a rigorous empirical study that using SAM improves model generalization ability across a range of widely studied computer vision tasks (e.g., CIFAR- $\{ 1 0 , ~ 1 0 0 \}$ , ImageNet, finetuning tasks) and models, as summarized in the lefthand plot of Figure 1. For example, applying SAM yields novel state-of-the-art performance for a number of alreadyintensely-studied tasks, such as ImageNet, CIFAR- $\mathbf { \bar { \{ 1 0 , ~ 1 0 0 \} } }$ , SVHN, Fashion-MNIST, and the standard set of image classification finetuning tasks (e.g., Flowers, Stanford Cars, Oxford Pets, etc).
|
| 33 |
+
• We show that SAM furthermore provides robustness to label noise on par with that provided by state-of-the-art procedures that specifically target learning with noisy labels.
|
| 34 |
+
• Through the lens provided by SAM, we further elucidate the connection between loss sharpness and generalization by surfacing a promising new notion of sharpness, which we term m-sharpness.
|
| 35 |
+
|
| 36 |
+
Section 2 below derives the SAM procedure and presents the resulting algorithm in full detail. Section 3 evaluates SAM empirically, and Section 4 further analyzes the connection between loss sharpness and generalization through the lens of SAM. Finally, we conclude with an overview of related work and a discussion of conclusions and future work in Sections 5 and 6, respectively.
|
| 37 |
+
|
| 38 |
+
# 2 SHARPNESS-AWARE MINIMIZATION (SAM)
|
| 39 |
+
|
| 40 |
+
Throughout the paper, we denote scalars as $a$ , vectors as $^ { a }$ , matrices as $\pmb { A }$ , sets as $\mathcal { A }$ , and equality by definition as $\triangleq$ . Given a training dataset ${ \mathcal { S } } \triangleq \cup _ { i = 1 } ^ { n } \{ ( \pmb { x } _ { i } , \pmb { y } _ { i } ) \}$ drawn i.i.d. from distribution $\mathcal { D }$ , we seek to learn a model that generalizes well. In particular, consider a family of models parameterized by $\pmb { w } \in \mathcal { W } \subseteq \mathbb { R } ^ { d }$ ; given a per-data-point loss function $l : \mathcal { W } \times \mathcal { X } \times \mathcal { Y } \mathbb { R } _ { + }$ , we define the training set loss Having $\begin{array} { r } { L _ { S } ( \pmb { w } ) \triangleq \frac { 1 } { n } \sum _ { i = 1 } ^ { n } l ( \pmb { w } , \pmb { x } _ { i } , \pmb { y } _ { i } ) } \end{array}$ and the population loss odel training is to select $L _ { \mathcal { D } } ( \pmb { w } ) \triangleq \mathbb { E } _ { ( \pmb { x } , \pmb { y } ) \sim D } [ l ( \pmb { w } , \pmb { x } , \pmb { y } ) ]$ $s$ $\pmb { w }$ population loss $\scriptstyle L _ { \mathcal { D } } ( \pmb { w } )$ .
|
| 41 |
+
|
| 42 |
+
Utilizing $L _ { S } ( w )$ as an estimate of $L _ { \mathcal { D } } ( \mathbf { \boldsymbol { w } } )$ motivates the standard approach of selecting parameters $\pmb { w }$ by solving $\mathrm { m i n } _ { w } L _ { S } ( w )$ (possibly in conjunction with a regularizer on $\pmb { w }$ ) using an optimization procedure such as SGD or Adam. Unfortunately, however, for modern overparameterized models such as deep neural networks, typical optimization approaches can easily result in suboptimal performance at test time. In particular, for modern models, $L _ { S } ( w )$ is typically non-convex in $\pmb { w }$ , with multiple local and even global minima that may yield similar values of $L _ { S } ( w )$ while having significantly different generalization performance (i.e., significantly different values of $L _ { \mathcal { D } } ( \mathbf { \boldsymbol { w } } )$ ).
|
| 43 |
+
|
| 44 |
+
Motivated by the connection between sharpness of the loss landscape and generalization, we propose a different approach: rather than seeking out parameter values $\pmb { w }$ that simply have low training loss value $L _ { S } ( w )$ , we seek out parameter values whose entire neighborhoods have uniformly low training loss value (equivalently, neighborhoods having both low loss and low curvature). The following theorem illustrates the motivation for this approach by bounding generalization ability in terms of neighborhood-wise training loss (full theorem statement and proof in Appendix A):
|
| 45 |
+
|
| 46 |
+
Theorem (stated informally) 1. For any $\rho > 0$ , with high probability over training set $s$ generated from distribution $\mathcal { D }$ ,
|
| 47 |
+
|
| 48 |
+
$$
|
| 49 |
+
L _ { \mathcal { D } } ( \pmb { w } ) \leq \operatorname* { m a x } _ { \| \pmb { \epsilon } \| _ { 2 } \leq \rho } L _ { S } ( \pmb { w } + \pmb { \epsilon } ) + h ( \| \pmb { w } \| _ { 2 } ^ { 2 } / \rho ^ { 2 } ) ,
|
| 50 |
+
$$
|
| 51 |
+
|
| 52 |
+
where $h : \mathbb { R } _ { + } \to \mathbb { R } _ { + }$ is a strictly increasing function (under some technical conditions on $L _ { \mathcal { D } } ( \boldsymbol { w } ) ,$ ).
|
| 53 |
+
|
| 54 |
+
To make explicit our sharpness term, we can rewrite the right hand side of the inequality above as
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
[ \operatorname* { m a x } _ { \| \epsilon \| _ { 2 } \le \rho } L _ { S } ( \pmb { w } + \epsilon ) - L _ { S } ( \pmb { w } ) ] + L _ { S } ( \pmb { w } ) + h ( \| \pmb { w } \| _ { 2 } ^ { 2 } / \rho ^ { 2 } ) .
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
The term in square brackets captures the sharpness of $L _ { S }$ at $\pmb { w }$ by measuring how quickly the training loss can be increased by moving from $\pmb { w }$ to a nearby parameter value; this sharpness term is then summed with the training loss value itself and a regularizer on the magnitude of $\pmb { w }$ . Given that the specific function $h$ is heavily influenced by the details of the proof, we substitute the second term with $\lambda | | w | | _ { 2 } ^ { 2 }$ for a hyperparameter $\lambda$ , yielding a standard L2 regularization term. Thus, inspired by the terms from the bound, we propose to select parameter values by solving the following SharpnessAware Minimization (SAM) problem:
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
\operatorname* { m i n } _ { \pmb { w } } L _ { S } ^ { S A M } ( \pmb { w } ) + \lambda | | \pmb { w } | | _ { 2 } ^ { 2 } \mathrm { w h e r e } L _ { S } ^ { S A M } ( \pmb { w } ) \triangleq \operatorname* { m a x } _ { | | \epsilon | | _ { p } \leq \rho } L _ { S } ( \pmb { w } + \epsilon ) ,
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
where $\rho \geq 0$ is a hyperparameter and $p \in [ 1 , \infty ]$ (we have generalized slightly from an L2-norm to a $p$ -norm in the maximization over $\epsilon$ , though we show empirically in appendix C.5 that $p = 2$ is typically optimal). Figure 1 shows1 the loss landscape for a model that converged to minima found by minimizing either $L _ { S } ( w )$ or $L _ { S } ^ { S A M } ( w )$ , illustrating that the sharpness-aware loss prevents the model from converging to a sharp minimum.
|
| 67 |
+
|
| 68 |
+
In order to minimize $L _ { S } ^ { S A M } ( w )$ , we derive an efficient and effective approximation to $\nabla _ { \pmb { w } } L _ { S } ^ { S A M } ( \pmb { w } )$ by differentiating through the inner maximization, which in turn enables us to apply stochastic gradient descent directly to the SAM objective. Proceeding down this path, we first approximate the inner maximization problem via a first-order Taylor expansion of $L _ { S } ( w + \epsilon )$ w.r.t. $\epsilon$ around 0, obtaining
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
\epsilon ^ { * } ( w ) \overset { \triangleq } { \underset { \| \epsilon \| _ { p } \leq \rho } { \operatorname { \mathbb { I } } } } \operatorname* { m a x } L _ { S } ( w + \epsilon ) \approx \underset { \| \epsilon \| _ { p } \leq \rho } { \operatorname { \arg m a x } } L _ { S } ( w ) + \epsilon ^ { T } \nabla _ { w } L _ { S } ( w ) = \underset { \| \epsilon \| _ { p } \leq \rho } { \operatorname { \arg m a x } } \epsilon ^ { T } \nabla _ { w } L _ { S } ( w ) .
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
In turn, the value $\hat { \epsilon } ( w )$ that solves this approximation is given by the solution to a classical dual norm problem $( | \cdot | ^ { q - 1 }$ denotes elementwise absolute value and power)2:
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
\begin{array} { r } { \hat { \epsilon } ( \pmb { w } ) = \rho \operatorname { s i g n } \left( \nabla _ { \pmb { w } } L _ { S } ( \pmb { w } ) \right) | \nabla _ { \pmb { w } } L _ { S } ( \pmb { w } ) | ^ { q - 1 } / \bigg ( \| \nabla _ { \pmb { w } } L _ { S } ( \pmb { w } ) \| _ { q } ^ { q } \bigg ) ^ { 1 / p } } \end{array}
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
where $1 / p + 1 / q = 1$ . Substituting back into equation (1) and differentiating, we then have
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
\begin{array} { c } { \nabla _ { w } L _ { \mathcal { S } } ^ { S A M } ( { \pmb w } ) \approx \nabla _ { { \pmb w } } L _ { \mathcal { S } } ( { \pmb w } + \hat { \epsilon } ( { \pmb w } ) ) = \displaystyle \frac { d ( { \pmb w } + \hat { \epsilon } ( { \pmb w } ) ) } { d { \pmb w } } \nabla _ { { \pmb w } } L _ { \mathcal { S } } ( { \pmb w } ) | _ { { \pmb w } + \hat { \epsilon } ( { \pmb w } ) } } \\ { = \nabla _ { { \pmb w } } L _ { \mathcal { S } } ( { \pmb w } ) | _ { { \pmb w } + \hat { \epsilon } ( { \pmb w } ) } + \displaystyle \frac { d \hat { \epsilon } ( { \pmb w } ) } { d { \pmb w } } \nabla _ { { \pmb w } } L _ { \mathcal { S } } ( { \pmb w } ) | _ { { \pmb w } + \hat { \epsilon } ( { \pmb w } ) } . } \end{array}
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
This approximation to $\nabla _ { \pmb { w } } L _ { S } ^ { S A M } ( \pmb { w } )$ can be straightforwardly computed via automatic differentiation, as implemented in common libraries such as JAX, TensorFlow, and PyTorch. Though this computation implicitly depends on the Hessian of $L _ { S } ( w )$ because $\hat { \epsilon } ( w )$ is itself a function of $\mathrm { \nabla } \mathrm { \nabla } \varpi { L s } ( w )$ , the Hessian enters only via Hessian-vector products, which can be computed tractably without materializing the Hessian matrix. Nonetheless, to further accelerate the computation, we drop the second-order terms. obtaining our final gradient approximation:
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
\nabla _ { \pmb { w } } L _ { S } ^ { S A M } ( \pmb { w } ) \approx \nabla _ { \pmb { w } } L _ { S } ( \pmb { w } ) | _ { \pmb { w } + \hat { \epsilon } ( \pmb { w } ) } .
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
As shown by the results in Section 3, this approximation (without the second-order terms) yields an effective algorithm. In Appendix C.4, we additionally investigate the effect of instead including the second-order terms; in that initial experiment, including them surprisingly degrades performance, and further investigating these terms’ effect should be a priority in future work.
|
| 93 |
+
|
| 94 |
+
We obtain the final SAM algorithm by applying a standard numerical optimizer such as stochastic gradient descent (SGD) to the SAM objective $\check { L _ { S } ^ { S A M } } ( w )$ , using equation 3 to compute the requisite objective function gradients. Algorithm 1 gives pseudo-code for the full SAM algorithm, using SGD as the base optimizer, and Figure 2 schematically illustrates a single SAM parameter update.
|
| 95 |
+
|
| 96 |
+
Input: Training set $s$ , $\cup _ { i = 1 } ^ { n } \{ ( { \pmb x } _ { i } , { \pmb y } _ { i } ) \}$ , Loss function $l : \mathcal { W } \times \mathcal { X } \times \mathcal { Y } \mathbb { R } _ { + }$ , Batch size $b$ , Step size $\eta > 0$ , Neighborhood size $\rho > 0$ .
|
| 97 |
+
|
| 98 |
+
Output: Model trained with SAM Initialize weights $\pmb { w } _ { 0 }$ , $t = 0$ ; while not converged do
|
| 99 |
+
|
| 100 |
+
Sample batch $B = \{ ( { \pmb x } _ { 1 } , { \pmb y } _ { 1 } ) , . . . ( { \pmb x } _ { b } , { \pmb y } _ { b } ) \}$ ;
|
| 101 |
+
Compute gradient $\nabla _ { w } L _ { B } ( w )$ of the batch’s training loss;
|
| 102 |
+
Compute $\hat { \epsilon } ( w )$ per equation 2;
|
| 103 |
+
Compute gradient approximation for the SAM objective (equation 3): $\pmb { g } = \mathcal { \bar { \nabla } } _ { w } L _ { B } ( \pmb { w } ) | _ { \pmb { w } + \hat { \epsilon } ( \pmb { w } ) }$ ;
|
| 104 |
+
Update weights: $\mathbf { } \mathbf { } \mathbf { } w _ { t + 1 } = \mathbf { } w _ { t } - \eta \mathbf { } g$ ;
|
| 105 |
+
$t = t + 1$ ;
|
| 106 |
+
|
| 107 |
+
end return ${ \pmb w } _ { t }$
|
| 108 |
+
|
| 109 |
+
Algorithm 1: SAM algorithm
|
| 110 |
+
|
| 111 |
+

|
| 112 |
+
Figure 2: Schematic of the SAM parameter update.
|
| 113 |
+
|
| 114 |
+
# 3 EMPIRICAL EVALUATION
|
| 115 |
+
|
| 116 |
+
In order to assess SAM’s efficacy, we apply it to a range of different tasks, including image classification from scratch (including on CIFAR-10, CIFAR-100, and ImageNet), finetuning pretrained models, and learning with noisy labels. In all cases, we measure the benefit of using SAM by simply replacing the optimization procedure used to train existing models with SAM, and computing the resulting effect on model generalization. As seen below, SAM materially improves generalization performance in the vast majority of these cases.
|
| 117 |
+
|
| 118 |
+
# 3.1 IMAGE CLASSIFICATION FROM SCRATCH
|
| 119 |
+
|
| 120 |
+
We first evaluate SAM’s impact on generalization for today’s state-of-the-art models on CIFAR-10 and CIFAR-100 (without pretraining): WideResNets with ShakeShake regularization (Zagoruyko & Komodakis, 2016; Gastaldi, 2017) and PyramidNet with ShakeDrop regularization (Han et al., 2016; Yamada et al., 2018). Note that some of these models have already been heavily tuned in prior work and include carefully chosen regularization schemes to prevent overfitting; therefore, significantly improving their generalization is quite non-trivial. We have ensured that our implementations’ generalization performance in the absence of SAM matches or exceeds that reported in prior work (Cubuk et al., 2018; Lim et al., 2019)
|
| 121 |
+
|
| 122 |
+
All results use basic data augmentations (horizontal flip, padding by four pixels, and random crop). We also evaluate in the setting of more advanced data augmentation methods such as cutout regularization (Devries & Taylor, 2017) and AutoAugment (Cubuk et al., 2018), which are utilized by prior work to achieve state-of-the-art results.
|
| 123 |
+
|
| 124 |
+
SAM has a single hyperparameter $\rho$ (the neighborhood size), which we tune via a grid search over $\{ 0 . 0 1 , 0 . 0 2 , 0 . 0 5 , 0 . 1 , 0 . \bar { 2 } , 0 . 5 \}$ using $10 \%$ of the training set as a validation set3. Please see appendix C.1 for the values of all hyperparameters and additional training details. As each SAM weight update requires two backpropagation operations (one to compute $\hat { \epsilon } ( w )$ and another to compute the final gradient), we allow each non-SAM training run to execute twice as many epochs as each SAM training run, and we report the best score achieved by each non-SAM training run across either the standard epoch count or the doubled epoch count4. We run five independent replicas of each experimental condition for which we report results (each with independent weight initialization and data shuffling), reporting the resulting mean error (or accuracy) on the test set, and the associated $9 5 \%$ confidence interval. Our implementations utilize JAX (Bradbury et al., 2018), and we train all models on a single host having 8 Nvidia $\mathrm { V 1 0 0 \ G P U s }$ . To compute the SAM update when parallelizing across multiple accelerators, we divide each data batch evenly among the accelerators, independently compute the SAM gradient on each accelerator, and average the resulting sub-batch SAM gradients to obtain the final SAM update.
|
| 125 |
+
|
| 126 |
+
As seen in Table 1, SAM improves generalization across all settings evaluated for CIFAR-10 and CIFAR-100. For example, SAM enables a simple WideResNet to attain $1 . 6 \%$ test error, versus $2 . 2 \%$ error without SAM. Such gains have previously been attainable only by using more complex model architectures (e.g., PyramidNet) and regularization schemes (e.g., Shake-Shake, ShakeDrop); SAM provides an easily-implemented, model-independent alternative. Furthermore, SAM delivers improvements even when applied atop complex architectures that already use sophisticated regularization: for instance, applying SAM to a PyramidNet with ShakeDrop regularization yields $1 0 . 3 \%$ error on CIFAR-100, which is, to our knowledge, a new state-of-the-art on this dataset without the use of additional data.
|
| 127 |
+
|
| 128 |
+
Beyond CIFAR- $\{ 1 0 , 1 0 0 \}$ , we have also evaluated SAM on the SVHN (Netzer et al., 2011) and Fashion-MNIST datasets (Xiao et al., 2017). Once again, SAM enables a simple WideResNet to achieve accuracy at or above the state-of-the-art for these datasets: $0 . 9 9 \%$ error for SVHN, and $3 . 5 9 \%$ for Fashion-MNIST. Details are available in appendix B.1.
|
| 129 |
+
|
| 130 |
+
To assess SAM’s performance at larger scale, we apply it to ResNets (He et al., 2015) of different depths (50, 101, 152) trained on ImageNet (Deng et al., 2009). In this setting, following prior work (He et al., 2015; Szegedy et al., 2015), we resize and crop images to 224-pixel resolution, normalize them, and use batch size 4096, initial learning rate 1.0, cosine learning rate schedule, SGD optimizer with momentum 0.9, label smoothing of 0.1, and weight decay 0.0001. When applying SAM, we use $\rho = 0 . 0 5$ (determined via a grid search on ResNet-50 trained for 100 epochs). We train all models on ImageNet for up to 400 epochs using a Google Cloud TPUv3 and report top-1 and top-5 test error rates for each experimental condition (mean and $9 5 \%$ confidence interval across 5 independent runs).
|
| 131 |
+
|
| 132 |
+
<table><tr><td colspan="2"></td><td colspan="2">CIFAR-10</td><td colspan="2">CIFAR-100</td></tr><tr><td>Model</td><td>Augmentation</td><td>SAM</td><td>SGD</td><td>SAM</td><td>SGD</td></tr><tr><td>WRN-28-10 (200 epochs) WRN-28-10 (200 epochs)</td><td>Basic Cutout</td><td>2.7±0.1 2.3±0.1</td><td>3.5±0.1 2.6±0.1</td><td>16.5±0.2 14.9±0.2</td><td>18.8±0.2 16.9±0.1</td></tr><tr><td>WRN-28-10 (200 epochs) WRN-28-10 (1800 epochs)</td><td>AA Basic</td><td>2.1±<0.1 2.4±0.1</td><td>2.3±0.1 3.5±0.1</td><td>13.6±0.2 16.3±0.2</td><td>15.8±0.2 19.1±0.1</td></tr><tr><td>WRN-28-10 (1800 epochs) WRN-28-10 (1800 epochs)</td><td>Cutout AA</td><td>2.1±0.1 1.6±0.1</td><td>2.7±0.1 2.2±<0.1</td><td>14.0±0.1 12.8±0.2</td><td>17.4±0.1 16.1±0.2</td></tr><tr><td>Shake-Shake (26 2x96d) Shake-Shake (26 2x96d)</td><td>Basic Cutout</td><td>2.3±<0.1 2.0±<0.1</td><td>2.7±0.1 2.3±0.1</td><td>15.1±0.1 14.2±0.2</td><td>17.0±0.1 15.7±0.2</td></tr><tr><td>Shake-Shake (26 2x96d)</td><td>AA</td><td>1.6±<0.1</td><td>1.9±0.1</td><td>12.8±0.1</td><td>14.1±0.2</td></tr><tr><td>PyramidNet</td><td>Basic</td><td>2.7±0.1</td><td>4.0±0.1</td><td>14.6±0.4</td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>19.7±0.3</td></tr><tr><td>PyramidNet</td><td>Cutout</td><td>1.9±0.1</td><td>2.5±0.1</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td>12.6±0.2</td><td>16.4±0.1</td></tr><tr><td>PyramidNet</td><td>AA</td><td>1.6±0.1</td><td>1.9±0.1</td><td>11.6±0.1</td><td>14.6±0.1</td></tr><tr><td>PyramidNet+ShakeDrop</td><td>Basic</td><td>2.1±0.1</td><td>2.5±0.1</td><td>13.3±0.2</td><td></td></tr><tr><td>PyramidNet+ShakeDrop</td><td>Cutout</td><td></td><td></td><td></td><td>14.5±0.1</td></tr><tr><td></td><td></td><td>1.6±<0.1</td><td>1.9±0.1</td><td>11.3±0.1</td><td>11.8±0.2</td></tr><tr><td>PyramidNet+ShakeDrop</td><td>AA</td><td>1.4±<0.1</td><td>1.6±<0.1</td><td>10.3±0.1</td><td>10.6±0.1</td></tr></table>
|
| 133 |
+
|
| 134 |
+
Table 1: Results for SAM on state-of-the-art models on CIFAR- $\{ 1 0 , 1 0 0 \}$ (WRN $=$ WideResNet;
|
| 135 |
+
AA $=$ AutoAugment; SGD is the standard non-SAM procedure used to train these models).
|
| 136 |
+
|
| 137 |
+
As seen in Table 2, SAM again consistently improves performance, for example improving the ImageNet top-1 error rate of ResNet-152 from $2 0 . 3 \%$ to $1 8 . 4 \%$ . Furthermore, note that SAM enables increasing the number of training epochs while continuing to improve accuracy without overfitting. In contrast, the standard training procedure (without SAM) generally significantly overfits as training extends from 200 to 400 epochs.
|
| 138 |
+
|
| 139 |
+
Table 2: Test error rates for ResNets trained on ImageNet, with and without SAM.
|
| 140 |
+
|
| 141 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Epoch</td><td colspan="2">SAM</td><td colspan="2">Standard Training (No SAM)</td></tr><tr><td>Top-1</td><td>Top-5</td><td>Top-1</td><td>Top-5</td></tr><tr><td rowspan="3">ResNet-50</td><td>100</td><td>22.5±0.1</td><td>6.28±0.08</td><td>22.9±0.1</td><td>6.62±0.11</td></tr><tr><td>200</td><td>21.4±0.1</td><td>5.82±0.03</td><td>22.3±0.1</td><td>6.37±0.04</td></tr><tr><td>400</td><td>20.9±0.1</td><td>5.51±0.03</td><td>22.3±0.1</td><td>6.40±0.06</td></tr><tr><td rowspan="3">ResNet-101</td><td>100</td><td>20.2±0.1</td><td>5.12±0.03</td><td>21.2±0.1</td><td>5.66±0.05</td></tr><tr><td>200</td><td>19.4±0.1</td><td>4.76±0.03</td><td>20.9±0.1</td><td>5.66±0.04</td></tr><tr><td>400</td><td>19.0±<0.01</td><td>4.65±0.05</td><td>22.3±0.1</td><td>6.41±0.06</td></tr><tr><td rowspan="3">ResNet-152</td><td>100</td><td>19.2±<0.01</td><td>4.69±0.04</td><td>20.4±<0.0</td><td>5.39±0.06</td></tr><tr><td>200</td><td>18.5±0.1</td><td>4.37±0.03</td><td>20.3±0.2</td><td>5.39±0.07</td></tr><tr><td>400</td><td>18.4±<0.01</td><td>4.35±0.04</td><td>20.9±<0.0</td><td>5.84±0.07</td></tr></table>
|
| 142 |
+
|
| 143 |
+
# 3.2 FINETUNING
|
| 144 |
+
|
| 145 |
+
Transfer learning by pretraining a model on a large related dataset and then finetuning on a smaller target dataset of interest has emerged as a powerful and widely used technique for producing highquality models for a variety of different tasks. We show here that SAM once again offers considerable benefits in this setting, even when finetuning extremely large, state-of-the-art, already high-performing models.
|
| 146 |
+
|
| 147 |
+
In particular, we apply SAM to finetuning EfficentNet-b7 (pretrained on ImageNet) and EfficientNet-L2 (pretrained on ImageNet plus unlabeled JFT; input resolution 475) (Tan & Le, 2019; Kornblith et al., 2018; Huang et al., 2018). We initialize these models to publicly available checkpoints6 trained with RandAugment $8 4 . 7 \%$ accuracy on ImageNet) and NoisyStudent $8 8 . 2 \%$ accuracy on ImageNet), respectively. We finetune these models on each of several target datasets by training each model starting from the aforementioned checkpoint; please see the appendix for details of the hyperparameters used. We report the mean and $9 5 \%$ confidence interval of top-1 test error over 5 independent runs for each dataset.
|
| 148 |
+
|
| 149 |
+
As seen in Table 3, SAM uniformly improves performance relative to finetuning without SAM. Furthermore, in many cases, SAM yields novel state-of-the-art performance, including $0 . 3 0 \%$ error on CIFAR-10, $3 . 9 2 \%$ error on CIFAR-100, and $1 1 . 3 9 \%$ error on ImageNet.
|
| 150 |
+
|
| 151 |
+
Table 3: Top-1 error rates for finetuning EfficientNet-b7 (left; ImageNet pretraining only) and EfficientNet-L2 (right; pretraining on ImageNet plus additional data, such as JFT) on various downstream tasks. Previous state-of-the-art (SOTA) includes EfficientNet (EffNet) (Tan & Le, 2019), Gpipe (Huang et al., 2018), DAT (Ngiam et al., 2018), BiT-M/L (Kolesnikov et al., 2020), KDforAA (Wei et al., 2020), TBMSL-Net (Zhang et al., 2020), and ViT (Dosovitskiy et al., 2020).
|
| 152 |
+
|
| 153 |
+
<table><tr><td>Dataset</td><td>EffNet-b7 + SAM</td><td>EffNet-b7</td><td>Prev. SOTA (ImageNet only)</td><td>EffNet-L2 + SAM</td><td>EffNet-L2</td><td>Prev. SOTA</td></tr><tr><td>FGVC_Aircraft</td><td>6.80±0.06</td><td>8.15±0.08</td><td>5.3(TBMSL-Net)</td><td>4.82±0.08</td><td>5.80±0.1</td><td>5.3 (TBMSL-Net)</td></tr><tr><td>Flowers</td><td>0.63±0.02</td><td>1.16±0.05</td><td>0.7 (BiT-M)</td><td>0.35±0.01</td><td>0.40±0.02</td><td>0.37 (EffNet)</td></tr><tr><td>Oxford_IIIT_Pets</td><td>3.97±0.04</td><td>4.24±0.09</td><td>4.1 (Gpipe)</td><td>2.90±0.04</td><td>3.08±0.04</td><td>4.1 (Gpipe)</td></tr><tr><td>Stanford_Cars</td><td>5.18±0.02</td><td>5.94±0.06</td><td>5.0 (TBMSL-Net)</td><td>4.04±0.03</td><td>4.93±0.04</td><td>3.8 (DAT)</td></tr><tr><td>CIFAR-10</td><td>0.88±0.02</td><td>0.95±0.03</td><td>1(Gpipe)</td><td>0.30±0.01</td><td>0.34±0.02</td><td>0.63 (BiT-L)</td></tr><tr><td>CIFAR-100</td><td>7.44±0.06</td><td>7.68±0.06</td><td>7.83 (BiT-M)</td><td>3.92±0.06</td><td>4.07±0.08</td><td>6.49 (BiT-L)</td></tr><tr><td>Birdsnap</td><td>13.64±0.15</td><td>14.30±0.18</td><td>15.7 (EffNet)</td><td>9.93±0.15</td><td>10.31±0.15</td><td>14.5 (DAT)</td></tr><tr><td>Food101</td><td>7.02±0.02</td><td>7.17±0.03</td><td>7.0 (Gpipe)</td><td>3.82±0.01</td><td>3.97±0.03</td><td>4.7 (DAT)</td></tr><tr><td>ImageNet</td><td>15.14±0.03</td><td>15.3</td><td>14.2 (KDforAA)</td><td>11.39±0.02</td><td>11.8</td><td>11.45 (ViT)</td></tr></table>
|
| 154 |
+
|
| 155 |
+
The fact that SAM seeks out model parameters that are robust to perturbations suggests SAM’s potential to provide robustness to noise in the training set (which would perturb the training loss landscape). Thus, we assess here the degree of robustness that SAM provides to label noise.
|
| 156 |
+
|
| 157 |
+
In particular, we measure the effect of applying SAM in the classical noisy-label setting for CIFAR-10, in which a fraction of the training set’s labels are randomly flipped; the test set remains unmodified (i.e., clean). To ensure valid comparison to prior work, which often utilizes architectures specialized to the noisy-label setting, we train a simple model of similar size (ResNet-32) for 200 epochs, following Jiang et al. (2019). We evaluate five variants of model training: standard SGD, SGD with Mixup (Zhang et al., 2017), SAM, and ”bootstrapped” variants of SGD with Mixup and SAM (wherein the model is first trained as usual and then retrained from scratch on the labels predicted by the initially trained model). When applying SAM, we use $\rho = 0 . 1$ for all noise levels except $80 \%$ , for which we use $\rho = 0 . 0 5$ for more stable convergence. For the Mixup baselines, we tried all values of $\alpha \in \{ 1 , 8 , 1 6 , 3 2 \}$ and conservatively report the best score for each noise level.
|
| 158 |
+
|
| 159 |
+
Table 4: Test accuracy on the clean test set for models trained on CIFAR-10 with noisy labels. Lower block is our implementation, upper block gives scores from the literature, per Jiang et al. (2019).
|
| 160 |
+
|
| 161 |
+
<table><tr><td rowspan="2">Method</td><td colspan="4">Noise rate (%)</td></tr><tr><td>20</td><td>40</td><td>60</td><td>80</td></tr><tr><td>Sanchez et al. (2019)</td><td>94.0</td><td>92.8</td><td>90.3</td><td>74.1</td></tr><tr><td>Zhang & Sabuncu (2018)</td><td>89.7</td><td>87.6</td><td>82.7</td><td>67.9</td></tr><tr><td>Lee et al. (2019)</td><td>87.1</td><td>81.8</td><td>75.4</td><td>-</td></tr><tr><td>Chen et al. (2019)</td><td>89.7</td><td>-</td><td>-</td><td>52.3</td></tr><tr><td>Huang et al. (2019)</td><td>92.6</td><td>90.3</td><td>43.4</td><td>-</td></tr><tr><td>MentorNet (2017)</td><td>92.0</td><td>91.2</td><td>74.2</td><td>60.0</td></tr><tr><td>Mixup (2017)</td><td>94.0</td><td>91.5</td><td>86.8</td><td>76.9</td></tr><tr><td>MentorMix (2019)</td><td>95.6</td><td>94.2</td><td>91.3</td><td>81.0</td></tr><tr><td>SGD</td><td>84.8</td><td>68.8</td><td>48.2</td><td>26.2</td></tr><tr><td>Mixup</td><td>93.0</td><td>90.0</td><td>83.8</td><td>70.2</td></tr><tr><td>Bootstrap + Mixup</td><td>93.3</td><td>92.0</td><td>87.6</td><td>72.0</td></tr><tr><td>SAM</td><td>95.1</td><td>93.4</td><td>90.5</td><td>77.9</td></tr><tr><td>Bootstrap + SAM</td><td>95.4</td><td>94.2</td><td>91.8</td><td>79.9</td></tr></table>
|
| 162 |
+
|
| 163 |
+
As seen in Table 4, SAM provides a high degree of robustness to label noise, on par with that provided by state-of-the art procedures that specifically target learning with noisy labels. Indeed, simply training a model with SAM outperforms all prior methods specifically targeting label noise robustness, with the exception of MentorMix (Jiang et al., 2019). However, simply bootstrapping SAM yields performance comparable to that of MentorMix (which is substantially more complex).
|
| 164 |
+
|
| 165 |
+

|
| 166 |
+
Figure 3: (left) Evolution of the spectrum of the Hessian during training of a model with standard SGD (lefthand column) or SAM (righthand column). (middle) Test error as a function of $\rho$ for different values of $m$ . (right) Predictive power of $m$ -sharpness for the generalization gap, for different values of $m$ (higher means the sharpness measure is more correlated with actual generalization gap).
|
| 167 |
+
|
| 168 |
+
# 4 SHARPNESS AND GENERALIZATION THROUGH THE LENS OF SAM
|
| 169 |
+
|
| 170 |
+
# 4.1 $m$ -SHARPNESS
|
| 171 |
+
|
| 172 |
+
Though our derivation of SAM defines the SAM objective over the entire training set, when utilizing SAM in practice, we compute the SAM update per-batch (as described in Algorithm 1) or even by averaging SAM updates computed independently per-accelerator (where each accelerator receives a subset of size $m$ of a batch, as described in Section 3). This latter setting is equivalent to modifying the SAM objective (equation 1) to sum over a set of independent $\epsilon$ maximizations, each performed on a sum of per-data-point losses on a disjoint subset of $m$ data points, rather than performing the $\epsilon$ maximization over a global sum over the training set (which would be equivalent to setting $m$ to the total training set size). We term the associated measure of sharpness of the loss landscape $m$ -sharpness.
|
| 173 |
+
|
| 174 |
+
To better understand the effect of $m$ on SAM, we train a small ResNet on CIFAR-10 using SAM with a range of values of $m$ . As seen in Figure 3 (middle), smaller values of $m$ tend to yield models having better generalization ability. This relationship fortuitously aligns with the need to parallelize across multiple accelerators in order to scale training for many of today’s models.
|
| 175 |
+
|
| 176 |
+
Intriguingly, the $m$ -sharpness measure described above furthermore exhibits better correlation with models’ actual generalization gaps as $m$ decreases, as demonstrated by Figure 3 (right)7. In particular, this implies that $m$ -sharpness with $m < n$ yields a better predictor of generalization than the full-training-set measure suggested by Theorem 1 in Section 2 above, suggesting an interesting new avenue of future work for understanding generalization.
|
| 177 |
+
|
| 178 |
+
# 4.2 HESSIAN SPECTRA
|
| 179 |
+
|
| 180 |
+
Motivated by the connection between geometry of the loss landscape and generalization, we constructed SAM to seek out minima of the training loss landscape having both low loss value and low curvature (i.e., low sharpness). To further confirm that SAM does in fact find minima having low curvature, we compute the spectrum of the Hessian for a WideResNet40-10 trained on CIFAR-10 for 300 steps both with and without SAM (without batch norm, which tends to obscure interpretation of the Hessian), at different epochs during training. Due to the parameter space’s dimensionality, we approximate the Hessian spectrum using the Lanczos algorithm of Ghorbani et al. (2019).
|
| 181 |
+
|
| 182 |
+
Figure 3 (left) reports the resulting Hessian spectra. As expected, the models trained with SAM converge to minima having lower curvature, as seen in the overall distribution of eigenvalues, the maximum eigenvalue $\left( \lambda _ { \operatorname* { m a x } } \right)$ at convergence (approximately 24 without SAM, 1.0 with SAM), and the bulk of the spectrum (the ratio $\lambda _ { \operatorname* { m a x } } / \lambda _ { 5 }$ , commonly used as a proxy for sharpness (Jastrzebski et al., 2020); up to 11.4 without SAM, and 2.6 with SAM).
|
| 183 |
+
|
| 184 |
+
# 5 RELATED WORK
|
| 185 |
+
|
| 186 |
+
The idea of searching for “flat” minima can be traced back to Hochreiter & Schmidhuber (1995), and its connection to generalization has seen significant study (Shirish Keskar et al., 2016; Dziugaite & Roy, 2017; Neyshabur et al., 2017; Dinh et al., 2017). In a recent large scale empirical study, Jiang et al. (2019) studied 40 complexity measures and showed that a sharpness-based measure has highest correlation with generalization, which motivates penalizing sharpness. Hochreiter & Schmidhuber (1997) was perhaps the first paper on penalizing the sharpness, regularizing a notion related to Minimum Description Length (MDL). Other ideas which also penalize sharp minima include operating on diffused loss landscape (Mobahi, 2016) and regularizing local entropy (Chaudhari et al., 2016). Another direction is to not penalize the sharpness explicitly, but rather average weights during training; Izmailov et al. (2018) showed that doing so can yield flatter minima that can also generalize better. However, the measures of sharpness proposed previously are difficult to compute and differentiate through. In contrast, SAM is highly scalable as it only needs two gradient computations per iteration. The concurrent work of Sun et al. (2020) focuses on resilience to random and adversarial corruption to expose a model’s vulnerabilities; this work is perhaps closest to ours. Our work has a different basis: we develop SAM motivated by a principled starting point in generalization, clearly demonstrate SAM’s efficacy via rigorous large-scale empirical evaluation, and surface important practical and theoretical facets of the procedure (e.g., $m$ -sharpness). The notion of all-layer margin introduced by Wei & Ma (2020) is closely related to this work; one is adversarial perturbation over the activations of a network and the other over its weights, and there is some coupling between these two quantities.
|
| 187 |
+
|
| 188 |
+
# 6 DISCUSSION AND FUTURE WORK
|
| 189 |
+
|
| 190 |
+
In this work, we have introduced SAM, a novel algorithm that improves generalization by simultaneously minimizing loss value and loss sharpness; we have demonstrated SAM’s efficacy through a rigorous large-scale empirical evaluation. We have surfaced a number of interesting avenues for future work. On the theoretical side, the notion of per-data-point sharpness yielded by $m$ -sharpness (in contrast to global sharpness computed over the entire training set, as has typically been studied in the past) suggests an interesting new lens through which to study generalization. Methodologically, our results suggest that SAM could potentially be used in place of Mixup in robust or semi-supervised methods that currently rely on Mixup (giving, for instance, MentorSAM). We leave to future work a more in-depth investigation of these possibilities.
|
| 191 |
+
|
| 192 |
+
# 7 ACKNOWLEDGMENTS
|
| 193 |
+
|
| 194 |
+
We thank our colleagues at Google — Atish Agarwala, Xavier Garcia, Dustin Tran, Yiding Jiang, Basil Mustafa, Samy Bengio — for their feedback and insightful discussions. We also thank the JAX and FLAX teams for going above and beyond to support our implementation. We are grateful to Sven Gowal for his help in replicating EfficientNet using JAX, and Justin Gilmer for his implementation of the Lanczos algorithm8 used to generate the Hessian spectra. We thank Niru Maheswaranathan for his matplotlib mastery. We also thank David Samuel for providing a PyTorch implementation of $\mathrm { \bf S A M ^ { 9 } }$ .
|
| 195 |
+
|
| 196 |
+
# REFERENCES
|
| 197 |
+
|
| 198 |
+
Naman Agarwal, Rohan Anil, Elad Hazan, Tomer Koren, and Cyril Zhang. Revisiting the generalization of adaptive gradient methods, 2020. URL https://openreview.net/forum? id=BJl6t64tvr.
|
| 199 |
+
|
| 200 |
+
James Bradbury, Roy Frostig, Peter Hawkins, Matthew James Johnson, Chris Leary, Dougal Maclaurin, and Skye Wanderman-Milne. JAX: composable transformations of Python+NumPy programs, 2018. URL http://github.com/google/jax.
|
| 201 |
+
|
| 202 |
+
Niladri S Chatterji, Behnam Neyshabur, and Hanie Sedghi. The intriguing role of module criticality in the generalization of deep networks. In International Conference on Learning Representations, 2020.
|
| 203 |
+
|
| 204 |
+
Pratik Chaudhari, Anna Choromanska, Stefano Soatto, Yann LeCun, Carlo Baldassi, Christian Borgs, Jennifer Chayes, Levent Sagun, and Riccardo Zecchina. Entropy-SGD: Biasing Gradient Descent Into Wide Valleys. arXiv e-prints, art. arXiv:1611.01838, November 2016.
|
| 205 |
+
|
| 206 |
+
Pengfei Chen, Benben Liao, Guangyong Chen, and Shengyu Zhang. Understanding and utilizing deep neural networks trained with noisy labels. CoRR, abs/1905.05040, 2019. URL http: //arxiv.org/abs/1905.05040.
|
| 207 |
+
|
| 208 |
+
Ekin Dogus Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V. Le. Au- ´ toaugment: Learning augmentation policies from data. CoRR, abs/1805.09501, 2018. URL http://arxiv.org/abs/1805.09501.
|
| 209 |
+
|
| 210 |
+
J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR09, 2009.
|
| 211 |
+
|
| 212 |
+
Terrance Devries and Graham W. Taylor. Improved regularization of convolutional neural networks with cutout. CoRR, abs/1708.04552, 2017. URL http://arxiv.org/abs/1708.04552.
|
| 213 |
+
|
| 214 |
+
Laurent Dinh, Razvan Pascanu, Samy Bengio, and Yoshua Bengio. Sharp minima can generalize for deep nets. arXiv preprint arXiv:1703.04933, 2017.
|
| 215 |
+
|
| 216 |
+
Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. arXiv e-prints, art. arXiv:2010.11929, October 2020.
|
| 217 |
+
|
| 218 |
+
Timothy Dozat. Incorporating nesterov momentum into adam. 2016.
|
| 219 |
+
|
| 220 |
+
John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. Journal of machine learning research, 12(7), 2011.
|
| 221 |
+
|
| 222 |
+
Gintare Karolina Dziugaite and Daniel M Roy. Computing nonvacuous generalization bounds for deep (stochastic) neural networks with many more parameters than training data. arXiv preprint arXiv:1703.11008, 2017.
|
| 223 |
+
|
| 224 |
+
Xavier Gastaldi. Shake-shake regularization. CoRR, abs/1705.07485, 2017. URL http: //arxiv.org/abs/1705.07485.
|
| 225 |
+
|
| 226 |
+
Behrooz Ghorbani, Shankar Krishnan, and Ying Xiao. An Investigation into Neural Net Optimization via Hessian Eigenvalue Density. arXiv e-prints, art. arXiv:1901.10159, January 2019.
|
| 227 |
+
|
| 228 |
+
Dongyoon Han, Jiwhan Kim, and Junmo Kim. Deep pyramidal residual networks. CoRR, abs/1610.02915, 2016. URL http://arxiv.org/abs/1610.02915.
|
| 229 |
+
|
| 230 |
+
Ethan Harris, Antonia Marcu, Matthew Painter, Mahesan Niranjan, Adam Prugel-Bennett, and ¨ Jonathon Hare. FMix: Enhancing Mixed Sample Data Augmentation. arXiv e-prints, art. arXiv:2002.12047, February 2020.
|
| 231 |
+
|
| 232 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CoRR, abs/1512.03385, 2015. URL http://arxiv.org/abs/1512.03385.
|
| 233 |
+
|
| 234 |
+
Geoffrey Hinton, Nitish Srivastava, and Kevin Swersky. Neural networks for machine learning lecture 6a overview of mini-batch gradient descent.
|
| 235 |
+
|
| 236 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Simplifying neural nets by discovering flat minima. In ¨ Advances in neural information processing systems, pp. 529–536, 1995.
|
| 237 |
+
|
| 238 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Flat minima. ¨ Neural Computation, 9(1):1–42, 1997.
|
| 239 |
+
|
| 240 |
+
Gao Huang, Yu Sun, Zhuang Liu, Daniel Sedra, and Kilian Weinberger. Deep Networks with Stochastic Depth. arXiv e-prints, art. arXiv:1603.09382, March 2016.
|
| 241 |
+
|
| 242 |
+
J. Huang, L. Qu, R. Jia, and B. Zhao. O2u-net: A simple noisy label detection approach for deep neural networks. In 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 3325–3333, 2019.
|
| 243 |
+
|
| 244 |
+
Yanping Huang, Youlong Cheng, Ankur Bapna, Orhan Firat, Mia Xu Chen, Dehao Chen, HyoukJoong Lee, Jiquan Ngiam, Quoc V. Le, Yonghui Wu, and Zhifeng Chen. GPipe: Efficient Training of Giant Neural Networks using Pipeline Parallelism. arXiv e-prints, art. arXiv:1811.06965, November 2018.
|
| 245 |
+
|
| 246 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
|
| 247 |
+
|
| 248 |
+
Pavel Izmailov, Dmitrii Podoprikhin, Timur Garipov, Dmitry Vetrov, and Andrew Gordon Wilson. Averaging Weights Leads to Wider Optima and Better Generalization. arXiv e-prints, art. arXiv:1803.05407, March 2018.
|
| 249 |
+
|
| 250 |
+
Arthur Jacot, Franck Gabriel, and Clement Hongler. Neural tangent kernel: Convergence and gener-´ alization in neural networks. CoRR, abs/1806.07572, 2018. URL http://arxiv.org/abs/ 1806.07572.
|
| 251 |
+
|
| 252 |
+
Stanislaw Jastrzebski, Maciej Szymczak, Stanislav Fort, Devansh Arpit, Jacek Tabor, Kyunghyun Cho, and Krzysztof Geras. The Break-Even Point on Optimization Trajectories of Deep Neural Networks. arXiv e-prints, art. arXiv:2002.09572, February 2020.
|
| 253 |
+
|
| 254 |
+
Lu Jiang, Zhengyuan Zhou, Thomas Leung, Li-Jia Li, and Li Fei-Fei. Mentornet: Regularizing very deep neural networks on corrupted labels. CoRR, abs/1712.05055, 2017. URL http: //arxiv.org/abs/1712.05055.
|
| 255 |
+
|
| 256 |
+
Lu Jiang, Di Huang, Mason Liu, and Weilong Yang. Beyond Synthetic Noise: Deep Learning on Controlled Noisy Labels. arXiv e-prints, art. arXiv:1911.09781, November 2019.
|
| 257 |
+
|
| 258 |
+
Yiding Jiang, Behnam Neyshabur, Hossein Mobahi, Dilip Krishnan, and Samy Bengio. Fantastic generalization measures and where to find them. arXiv preprint arXiv:1912.02178, 2019.
|
| 259 |
+
|
| 260 |
+
Diederik P. Kingma and Jimmy Ba. Adam: A Method for Stochastic Optimization. arXiv e-prints, art. arXiv:1412.6980, December 2014.
|
| 261 |
+
|
| 262 |
+
Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Joan Puigcerver, Jessica Yung, Sylvain Gelly, and Neil Houlsby. Big transfer (bit): General visual representation learning, 2020.
|
| 263 |
+
|
| 264 |
+
Simon Kornblith, Jonathon Shlens, and Quoc V. Le. Do Better ImageNet Models Transfer Better? arXiv e-prints, art. arXiv:1805.08974, May 2018.
|
| 265 |
+
|
| 266 |
+
John Langford and Rich Caruana. (not) bounding the true error. In Advances in Neural Information Processing Systems, pp. 809–816, 2002.
|
| 267 |
+
|
| 268 |
+
Beatrice Laurent and Pascal Massart. Adaptive estimation of a quadratic functional by model selection. Annals of Statistics, pp. 1302–1338, 2000.
|
| 269 |
+
|
| 270 |
+
Kimin Lee, Sukmin Yun, Kibok Lee, Honglak Lee, Bo Li, and Jinwoo Shin. Robust inference via generative classifiers for handling noisy labels, 2019.
|
| 271 |
+
|
| 272 |
+
Hao Li, Zheng Xu, Gavin Taylor, and Tom Goldstein. Visualizing the loss landscape of neural nets. CoRR, abs/1712.09913, 2017. URL http://arxiv.org/abs/1712.09913.
|
| 273 |
+
|
| 274 |
+
Sungbin Lim, Ildoo Kim, Taesup Kim, Chiheon Kim, and Sungwoong Kim. Fast autoaugment. CoRR, abs/1905.00397, 2019. URL http://arxiv.org/abs/1905.00397.
|
| 275 |
+
|
| 276 |
+
James Martens and Roger Grosse. Optimizing Neural Networks with Kronecker-factored Approximate Curvature. arXiv e-prints, art. arXiv:1503.05671, March 2015.
|
| 277 |
+
|
| 278 |
+
David A McAllester. Pac-bayesian model averaging. In Proceedings of the twelfth annual conference on Computational learning theory, pp. 164–170, 1999.
|
| 279 |
+
|
| 280 |
+
Hossein Mobahi. Training recurrent neural networks by diffusion. CoRR, abs/1601.04114, 2016. URL http://arxiv.org/abs/1601.04114.
|
| 281 |
+
|
| 282 |
+
Y. E. Nesterov. A method for solving the convex programming problem with convergence rate $o ( 1 / k ^ { 2 } )$ . Dokl. Akad. Nauk SSSR, 269:543–547, 1983. URL https://ci.nii.ac.jp/ naid/10029946121/en/.
|
| 283 |
+
|
| 284 |
+
Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. 2011.
|
| 285 |
+
|
| 286 |
+
Behnam Neyshabur, Srinadh Bhojanapalli, David McAllester, and Nati Srebro. Exploring generalization in deep learning. In Advances in neural information processing systems, pp. 5947–5956, 2017.
|
| 287 |
+
|
| 288 |
+
Jiquan Ngiam, Daiyi Peng, Vijay Vasudevan, Simon Kornblith, Quoc V. Le, and Ruoming Pang. Domain adaptive transfer learning with specialist models. CoRR, abs/1811.07056, 2018. URL http://arxiv.org/abs/1811.07056.
|
| 289 |
+
|
| 290 |
+
Eric Arazo Sanchez, Diego Ortego, Paul Albert, Noel E. O’Connor, and Kevin McGuinness. Unsupervised label noise modeling and loss correction. CoRR, abs/1904.11238, 2019. URL http://arxiv.org/abs/1904.11238.
|
| 291 |
+
|
| 292 |
+
Nitish Shirish Keskar and Richard Socher. Improving Generalization Performance by Switching from Adam to SGD. arXiv e-prints, art. arXiv:1712.07628, December 2017.
|
| 293 |
+
|
| 294 |
+
Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minima. arXiv e-prints, art. arXiv:1609.04836, September 2016.
|
| 295 |
+
|
| 296 |
+
Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research, 15(1):1929–1958, 2014.
|
| 297 |
+
|
| 298 |
+
Xu Sun, Zhiyuan Zhang, Xuancheng Ren, Ruixuan Luo, and Liangyou Li. Exploring the Vulnerability of Deep Neural Networks: A Study of Parameter Corruption. arXiv e-prints, art. arXiv:2006.05620, June 2020.
|
| 299 |
+
|
| 300 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision, 2015.
|
| 301 |
+
|
| 302 |
+
Mingxing Tan and Quoc V. Le. EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks. arXiv e-prints, art. arXiv:1905.11946, May 2019.
|
| 303 |
+
|
| 304 |
+
Colin Wei and Tengyu Ma. Improved sample complexities for deep neural networks and robust classification via an all-layer margin. In International Conference on Learning Representations, 2020.
|
| 305 |
+
|
| 306 |
+
Longhui Wei, An Xiao, Lingxi Xie, Xin Chen, Xiaopeng Zhang, and Qi Tian. Circumventing Outliers of AutoAugment with Knowledge Distillation. arXiv e-prints, art. arXiv:2003.11342, March 2020.
|
| 307 |
+
|
| 308 |
+
Ashia C Wilson, Rebecca Roelofs, Mitchell Stern, Nati Srebro, and Benjamin Recht. The marginal value of adaptive gradient methods in machine learning. In Advances in neural information processing systems, pp. 4148–4158, 2017.
|
| 309 |
+
|
| 310 |
+
Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. CoRR, abs/1708.07747, 2017. URL http://arxiv.org/ abs/1708.07747.
|
| 311 |
+
|
| 312 |
+
Yoshihiro Yamada, Masakazu Iwamura, and Koichi Kise. Shakedrop regularization. CoRR, abs/1802.02375, 2018. URL http://arxiv.org/abs/1802.02375.
|
| 313 |
+
|
| 314 |
+
Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. CoRR, abs/1605.07146, 2016. URL http://arxiv.org/abs/1605.07146.
|
| 315 |
+
|
| 316 |
+
Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. CoRR, abs/1611.03530, 2016. URL http: //arxiv.org/abs/1611.03530.
|
| 317 |
+
|
| 318 |
+
Fan Zhang, Meng Li, Guisheng Zhai, and Yizhao Liu. Multi-branch and multi-scale attention learning for fine-grained visual categorization, 2020.
|
| 319 |
+
|
| 320 |
+
Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. arXiv preprint arXiv:1710.09412, 2017.
|
| 321 |
+
|
| 322 |
+
Zhilu Zhang and Mert R. Sabuncu. Generalized cross entropy loss for training deep neural networks with noisy labels. CoRR, abs/1805.07836, 2018. URL http://arxiv.org/abs/1805. 07836.
|
| 323 |
+
|
| 324 |
+
# A APPENDIX
|
| 325 |
+
|
| 326 |
+
# A.1 PAC BAYESIAN GENERALIZATION BOUND
|
| 327 |
+
|
| 328 |
+
Below, we state a generalization bound based on sharpness.
|
| 329 |
+
|
| 330 |
+
Theorem 2. For any $\rho > 0$ and any distribution $\mathcal { D }$ , with probability $1 - \delta$ over the choice of the training set $s \sim \mathcal { D }$ ,
|
| 331 |
+
|
| 332 |
+
$$
|
| 333 |
+
L _ { \mathcal { D } } ( \boldsymbol { w } ) \leq \operatorname* { m a x } _ { \| \epsilon \| _ { 2 } \leq \rho } L _ { S } ( \boldsymbol { w } + \epsilon ) + \sqrt { \frac { k \log \left( 1 + \frac { \| \boldsymbol { w } \| _ { 2 } ^ { 2 } } { \rho ^ { 2 } } \left( 1 + \sqrt { \frac { \log ( n ) } { k } } \right) ^ { 2 } \right) + 4 \log \frac { n } { \delta } + \tilde { O } ( 1 ) } { n - 1 } }
|
| 334 |
+
$$
|
| 335 |
+
|
| 336 |
+
where $n = | S |$ , $k$ is the number of parameters and we assumed $L _ { \mathcal { D } } ( \boldsymbol { w } ) \leq \mathbb { E } _ { \epsilon _ { i } \sim \mathcal { N } ( 0 , \rho ) } [ L _ { \mathcal { D } } ( \boldsymbol { w } + \boldsymbol { \epsilon } ) ] ,$ .
|
| 337 |
+
|
| 338 |
+
The condition $L _ { \mathcal { D } } ( \boldsymbol { w } ) \le \mathbb { E } _ { \epsilon _ { i } \sim \mathcal { N } ( 0 , \rho ) } [ L _ { \mathcal { D } } ( \boldsymbol { w } + \boldsymbol { \epsilon } ) ]$ means that adding Gaussian perturbation should not decrease the test error. This is expected to hold in practice for the final solution but does not necessarily hold for any $\textbf { \em w }$ .
|
| 339 |
+
|
| 340 |
+
Proof. First, note that the right hand side of the bound in the theorem statement is lower bounded by $\sqrt { k \log ( 1 + \| \pmb { w } \| _ { 2 } ^ { 2 } / \rho ^ { 2 } ) / ( 4 n ) }$ which is greater than 1 when $\| \pmb { w } \| _ { 2 } ^ { 2 } > \rho ^ { 2 } ( \exp ( 4 n / k ) - 1 )$ . In that case, the right hand side becomes greater than 1 in which case the inequality holds trivially. Therefore, in the rest of the proof, we only consider the case when $\| \pmb { w } \| _ { 2 } ^ { 2 } \leq \rho ^ { \bar { 2 } } ( \mathrm { e x p } ( 4 n / k ) - 1 )$ .
|
| 341 |
+
|
| 342 |
+
The proof technique we use here is inspired from Chatterji et al. (2020). Using PAC-Bayesian generalization bound McAllester (1999) and following Dziugaite & Roy (2017), the following generalization bound holds for any prior $\mathcal { P }$ over parameters with probability $1 - \delta$ over the choice of the training set $s$ , for any posterior $\mathcal { Q }$ over parameters:
|
| 343 |
+
|
| 344 |
+
$$
|
| 345 |
+
\mathbb { E } _ { \pmb { w } \sim \mathcal { A } } [ L _ { \mathcal { D } } ( \pmb { w } ) ] \le \mathbb { E } _ { \pmb { w } \sim \mathcal { Q } } [ L _ { S } ( \pmb { w } ) ] + \sqrt { \frac { K L ( \mathcal { Q } | | \mathcal { P } ) + \log \frac { n } { \delta } } { 2 ( n - 1 ) } }
|
| 346 |
+
$$
|
| 347 |
+
|
| 348 |
+
Moreover, if $\mathscr P = \mathcal N ( \mu _ { P } , \sigma _ { P } ^ { 2 } I )$ and $\mathcal { Q } = \mathcal { N } ( \pmb { \mu } _ { Q } , \sigma _ { Q } ^ { 2 } \pmb { I } )$ , then the KL divergence can be written as follows:
|
| 349 |
+
|
| 350 |
+
$$
|
| 351 |
+
K L ( \mathcal { P } | | \mathcal { Q } ) = \frac { 1 } { 2 } \bigg [ \frac { k \sigma _ { Q } ^ { 2 } + \| \pmb { \mu _ { P } } - \pmb { \mu _ { Q } } \| _ { 2 } ^ { 2 } } { \sigma _ { P } ^ { 2 } } - k + k \log \bigg ( \frac { \sigma _ { P } ^ { 2 } } { \sigma _ { Q } ^ { 2 } } \bigg ) \bigg ]
|
| 352 |
+
$$
|
| 353 |
+
|
| 354 |
+
Given a posterior standard deviation $\sigma _ { Q }$ , one could choose a prior standard deviation $\sigma _ { P }$ to minimize the above KL divergence and hence the generalization bound by taking the derivative10 of the above
|
| 355 |
+
|
| 356 |
+
KL with respect to $\sigma _ { P }$ and setting it to zero. We would then have $\sigma _ { P } ^ { * } { } ^ { 2 } = \sigma _ { Q } ^ { 2 } + \| \pmb { \mu } _ { P } - \pmb { \mu } _ { Q } \| _ { 2 } ^ { 2 } / k$ However, since $\sigma _ { P }$ should be chosen before observing the training data $s$ and $\mu _ { Q } , \sigma _ { Q }$ could depend on $s$ , we are not allowed to optimize $\sigma _ { P }$ in this way. Instead, one can have a set of predefined values for $\sigma _ { P }$ and pick the best one in that set. See Langford & Caruana (2002) for the discussion around this technique. Given fixed $a , b > 0$ , let $T = \{ c \exp ( ( 1 - j ) / k ) | j \in \mathbb { N } \}$ be that predefined set of values for $\sigma _ { P } ^ { \dot { 2 } }$ . If for any $j \in \mathbb N$ , the above PAC-Bayesian bound holds for $\sigma _ { P } ^ { 2 } = \dot { c } \exp ( ( 1 -$ $j ) / k )$ with probability $1 - \delta _ { j }$ with $\begin{array} { r } { \delta _ { j } ~ = ~ \frac { 6 \delta } { \pi ^ { 2 } j ^ { 2 } } } \end{array}$ π2j2 , then by the union bound, all above bounds hold simultaneously with probability at least $\begin{array} { r } { 1 - \bar { \sum _ { j = 1 } ^ { \infty } } \frac { 6 \delta } { \pi ^ { 2 } j ^ { 2 } } = 1 - \delta } \end{array}$ .
|
| 357 |
+
|
| 358 |
+
Let $\sigma _ { Q } = \rho$ , $\pmb { \mu } _ { Q } = \pmb { w }$ and $\pmb { \mu } _ { P } = \mathbf { 0 }$ . Therefore, we have:
|
| 359 |
+
|
| 360 |
+
$$
|
| 361 |
+
\sigma _ { Q } ^ { 2 } + \| \pmb { \mu } _ { P } - \pmb { \mu } _ { Q } \| _ { 2 } ^ { 2 } / k \leq \rho ^ { 2 } + \| \pmb { w } \| _ { 2 } ^ { 2 } / k \leq \rho ^ { 2 } ( 1 + \exp ( 4 n / k ) )
|
| 362 |
+
$$
|
| 363 |
+
|
| 364 |
+
We now consider the bound that corresponds to $j = \lfloor 1 - k \log ( ( \rho ^ { 2 } + \| \pmb { w } \| _ { 2 } ^ { 2 } / k ) / c ) \rfloor$ . We can ensure that $j \in \mathbb N$ using inequality equation 7 and by setting $c = \rho ^ { 2 } ( 1 + \exp ( 4 n / k ) )$ . Furthermore, for $\sigma _ { P } ^ { 2 } = c \exp ( ( 1 - j ) / k )$ , we have:
|
| 365 |
+
|
| 366 |
+
$$
|
| 367 |
+
\rho ^ { 2 } + \| \pmb { w } \| _ { 2 } ^ { 2 } / k \leq \sigma _ { P } ^ { 2 } \leq \exp ( 1 / k ) \left( \rho ^ { 2 } + \| \pmb { w } \| _ { 2 } ^ { 2 } / k \right)
|
| 368 |
+
$$
|
| 369 |
+
|
| 370 |
+
Therefore, using the above value for $\sigma _ { P }$ , $\mathrm { K L }$ divergence can be bounded as follows:
|
| 371 |
+
|
| 372 |
+
$$
|
| 373 |
+
\begin{array} { r l } & { K L ( \mathcal { P } | | \mathcal { X } ) = \frac { 1 } { 2 } \bigg [ \frac { k \sigma _ { Q } ^ { 2 } + \| \mu _ { P } - \mu _ { Q } \| _ { 2 } ^ { 2 } } { \sigma _ { P } ^ { 2 } } - k + k \log \bigg ( \frac { \sigma _ { P } ^ { 2 } } { \sigma _ { Q } ^ { 2 } } \bigg ) \bigg ] } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad } \\ & \quad \quad \quad \ \end{array}
|
| 374 |
+
$$
|
| 375 |
+
|
| 376 |
+
Given the bound that corresponds to $j$ holds with probability $1 - \delta _ { j }$ for $\begin{array} { r } { \delta _ { j } = \frac { 6 \delta } { \pi ^ { 2 } j ^ { 2 } } } \end{array}$ 6δπ2j2 , the log term in the bound can be written as:
|
| 377 |
+
|
| 378 |
+
$$
|
| 379 |
+
\begin{array} { r l } & { \log \frac { n } { \delta _ { j } } = \log \frac { n } { \delta } + \log \frac { \pi ^ { 2 } j ^ { 2 } } { 6 } } \\ & { \qquad \le \log \frac { n } { \delta } + \log \frac { \pi ^ { 2 } k ^ { 2 } \log ^ { 2 } ( c / ( \rho ^ { 2 } + \| w \| _ { 2 } ^ { 2 } / k ) ) } { 6 } } \\ & { \qquad \le \log \frac { n } { \delta } + \log \frac { \pi ^ { 2 } k ^ { 2 } \log ^ { 2 } ( c / \rho ^ { 2 } ) } { 6 } } \\ & { \qquad \le \log \frac { n } { \delta } + \log \frac { \pi ^ { 2 } k ^ { 2 } \log ^ { 2 } ( 1 + \exp ( 4 n / k ) ) } { 6 } } \\ & { \qquad \le \log \frac { n } { \delta } + \log \frac { \pi ^ { 2 } k ^ { 2 } ( 2 + 4 n / k ) ^ { 2 } } { 6 } } \\ & { \qquad \le \log \frac { n } { \delta } + \log \frac { \pi ^ { 2 } k ^ { 2 } ( 2 + 4 n / k ) ^ { 2 } } { 6 } } \\ & { \qquad \le \log \frac { n } { \delta } + 2 \log ( 6 n + 3 k ) } \end{array}
|
| 380 |
+
$$
|
| 381 |
+
|
| 382 |
+
Therefore, the generalization bound can be written as follows:
|
| 383 |
+
|
| 384 |
+
$$
|
| 385 |
+
\begin{array} { r } { \tilde { \Sigma } _ { \epsilon _ { i } \sim N ( 0 , \sigma ) } [ L _ { \mathcal { D } } ( w + \epsilon ) ] \leq \mathbb { E } _ { \epsilon _ { i } \sim \mathcal { N } ( 0 , \sigma ) } [ L _ { S } ( w + \epsilon ) ] + \sqrt { \frac { \frac { 1 } { 4 } k \log \left( 1 + \frac { \| w \| _ { 2 } ^ { 2 } } { k \sigma ^ { 2 } } \right) + \frac { 1 } { 4 } + \log \frac { n } { \delta } + 2 \log \left( 6 n + \sigma \right) } { n - 1 } } } \end{array}
|
| 386 |
+
$$
|
| 387 |
+
|
| 388 |
+
In the above bound, we have $\epsilon _ { i } \sim \mathcal { N } ( 0 , \sigma )$ . Therefore, $\| \epsilon \| _ { 2 } ^ { 2 }$ has chi-square distribution and by Lemma 1 in Laurent & Massart (2000), we have that for any positive $t$ :
|
| 389 |
+
|
| 390 |
+
$$
|
| 391 |
+
P ( \| \epsilon \| _ { 2 } ^ { 2 } - k \sigma ^ { 2 } \ge 2 \sigma ^ { 2 } \sqrt { k t } + 2 t \sigma ^ { 2 } ) \le \exp ( - t )
|
| 392 |
+
$$
|
| 393 |
+
|
| 394 |
+
Therefore, with probability $1 - 1 / \sqrt { n }$ we have that:
|
| 395 |
+
|
| 396 |
+
$$
|
| 397 |
+
\| \epsilon \| _ { 2 } ^ { 2 } \leq \sigma ^ { 2 } ( 2 \ln ( { \sqrt { n } } ) + k + 2 { \sqrt { k \ln ( { \sqrt { n } } ) } } ) \leq \sigma ^ { 2 } k \left( 1 + { \sqrt { \frac { \ln ( n ) } { k } } } \right) ^ { 2 } \leq \rho ^ { 2 }
|
| 398 |
+
$$
|
| 399 |
+
|
| 400 |
+
Substituting the above value for $\sigma$ back to the inequality and using theorem’s assumption gives us following inequality:
|
| 401 |
+
|
| 402 |
+
$$
|
| 403 |
+
\begin{array} { r l } & { L _ { \mathcal { G } } ( w ) \leq ( 1 - 1 / \sqrt { n } ) \displaystyle \operatorname* { m a x } _ { \| c \| \geq \rho } L s ( w + \epsilon ) + 1 / \sqrt { n } } \\ & { \quad \quad + \sqrt { \frac { 1 } { 4 } k \log \left( 1 + \frac { \| w \| _ { 2 } ^ { 2 } } { \rho ^ { 2 } } \left( 1 + \sqrt { \frac { \log ( n ) } { k } } \right) ^ { 2 } \right) + \log \frac { n } { \delta } + 2 \log ( 6 n + 3 k ) } } \\ & { \quad \quad \leq \displaystyle \operatorname* { m a x } _ { \| \epsilon \| \geq \rho } L s ( w + \epsilon ) + } \\ & { \quad \quad + \sqrt { \displaystyle \operatorname* { k i m } _ { \rho } \left( 1 + \frac { \| w \| _ { 2 } ^ { 2 } } { \rho ^ { 2 } } \left( 1 + \sqrt { \frac { \log ( n ) } { k } } \right) ^ { 2 } \right) + 4 \log \frac { n } { \delta } + 8 \log ( 6 n + 3 k ) } } \end{array}
|
| 404 |
+
$$
|
| 405 |
+
|
| 406 |
+
# B ADDITIONAL EXPERIMENTAL RESULTS
|
| 407 |
+
|
| 408 |
+
# B.1 SVHN AND FASHION-MNIST
|
| 409 |
+
|
| 410 |
+
We report in table 5 results obtained on SVHN and Fashion-MNIST datasets. On these datasets, SAM allows a simple WideResnet to reach or push state-of-the-art accuracy $0 . 9 9 \%$ error rate for SVHN, $3 . 5 9 \%$ for Fashion-MNIST).
|
| 411 |
+
|
| 412 |
+
For SVHN, we used all the available data (73257 digits for training $\sec + 5 3 1 1 3 1$ additional samples). For auto-augment, we use the best policy found on this dataset as described in (Cubuk et al., 2018) plus cutout (Devries & Taylor, 2017). For Fashion-MNIST, the auto-augmentation line correspond to cutout only.
|
| 413 |
+
|
| 414 |
+
Table 5: Results on SVHN and Fashion-MNIST.
|
| 415 |
+
|
| 416 |
+
<table><tr><td rowspan=1 colspan=2></td><td rowspan=1 colspan=1>SVHN</td><td rowspan=1 colspan=1>Fashion-MNIST</td></tr><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>Augmentation</td><td rowspan=1 colspan=1>SAM Baseline</td><td rowspan=1 colspan=1>SAM Baseline</td></tr><tr><td rowspan=1 colspan=1>Wide-ResNet-28-10Wide-ResNet-28-10</td><td rowspan=1 colspan=1>BasicAuto augment</td><td rowspan=1 colspan=1>1.42±0.02 1.58±0.030.99±0.01 1.14±0.04</td><td rowspan=1 colspan=1>3.98±0.05 4.57±0.073.61±0.06 3.86±0.14</td></tr><tr><td rowspan=1 colspan=1>Shake-Shake (26 2x96d)Shake-Shake (26 2x96d)</td><td rowspan=1 colspan=1>BasicAuto augment</td><td rowspan=1 colspan=1>1.44±0.02 1.58±0.051.07±0.02 1.03±0.02</td><td rowspan=1 colspan=1>3.97±0.09 4.37±0.063.59±0.01 3.76±0.07</td></tr></table>
|
| 417 |
+
|
| 418 |
+
# C EXPERIMENT DETAILS
|
| 419 |
+
|
| 420 |
+
# C.1 HYPERPARAMETERS FOR EXPERIMENTS
|
| 421 |
+
|
| 422 |
+
We report in table 6 the hyper-parameters selected by gridsearch for the CIFAR experiments, and the ones for SVHN and Fashion-MNIST in 7. For CIFAR10, CIFAR100, SVHN and Fashion-MNIST, we use a batch size of 256 and determine the learning rate and weight decay used to train each model via a joint grid search prior to applying SAM; all other model hyperparameter values are identical to those used in prior work.
|
| 423 |
+
|
| 424 |
+
For the Imagenet results (Resnet models), the models are trained for 100, 200 or 400 epochs on Google Cloud TPUv3 32 cores with a batch size of 4096. The initial learning rate is set to 1.0 and decayed using a cosine schedule. Weight decay is set to 0.0001 with SGD optimizer and momentum $= 0 . 9$ .
|
| 425 |
+
|
| 426 |
+
Table 6: Hyper-parameter used to produce the CIFAR- $\{ 1 0 , 1 0 0 \}$ results
|
| 427 |
+
|
| 428 |
+
<table><tr><td>CIFAR Dataset</td><td>LR</td><td>WD</td><td>p (CIFAR-10)</td><td>p (CIFAR-100)</td></tr><tr><td>WRN 28-10 (200 epochs)</td><td>0.1</td><td>0.0005</td><td>0.05</td><td>0.1</td></tr><tr><td>WRN 28-10 (1800 epochs)</td><td>0.05</td><td>0.001</td><td>0.05</td><td>0.1</td></tr><tr><td>WRN26-2x6ShakeShake</td><td>0.02</td><td>0.0010</td><td>0.02</td><td>0.05</td></tr><tr><td>Pyramid vanilla</td><td>0.05</td><td>0.0005</td><td>0.05</td><td>0.2</td></tr><tr><td>Pyramid ShakeDrop (CIFAR-10)</td><td>0.02</td><td>0.0005</td><td>0.05</td><td>1</td></tr><tr><td>Pyramid ShakeDrop (CIFAR-100)</td><td>0.05</td><td>0.0005</td><td>1</td><td>0.05</td></tr></table>
|
| 429 |
+
|
| 430 |
+
Table 7: Hyper-parameter used to produce the SVHN and Fashion-MNIST results
|
| 431 |
+
|
| 432 |
+
<table><tr><td></td><td>LR</td><td>WD</td><td>p</td></tr><tr><td rowspan="2">SVHN</td><td>WRN 0.01</td><td>0.0005</td><td>0.01</td></tr><tr><td>ShakeShake 0.01</td><td>0.0005</td><td>0.01</td></tr><tr><td rowspan="2">Fashion</td><td>WRN 0.1</td><td>0.0005</td><td>0.05</td></tr><tr><td>ShakeShake 0.1</td><td>0.0005</td><td>0.02</td></tr></table>
|
| 433 |
+
|
| 434 |
+
Finally, for the noisy label experiments, we also found $\rho$ by gridsearch, computing the accuracy on a (non-noisy) validation set composed of a random subset of $10 \%$ of the usual CIFAR training samples. We report the validation accuracy of the bootstrapped version of SAM for different levels of noise and different $\rho$ in table 8.
|
| 435 |
+
|
| 436 |
+
<table><tr><td></td><td>20%</td><td>40%</td><td>60%</td><td>80%</td></tr><tr><td>0</td><td>15.0%</td><td>31.2%</td><td>52.3%</td><td>73.5%</td></tr><tr><td>0.01</td><td>13.7%</td><td>28.7%</td><td>50.1%</td><td>72.9%</td></tr><tr><td>0.02</td><td>12.8%</td><td>27.8%</td><td>48.9%</td><td>73.1%</td></tr><tr><td>0.05</td><td>11.6%</td><td>25.6%</td><td>47.1%</td><td>21.0%</td></tr><tr><td>0.1</td><td>4.6%</td><td>6.0%</td><td>8.7%</td><td>56.1%</td></tr><tr><td>0.2</td><td>5.3%</td><td>7.4%</td><td>23.3%</td><td>77.1%</td></tr><tr><td>0.5</td><td>17.6%</td><td>40.9%</td><td>80.1%</td><td>89.9%</td></tr></table>
|
| 437 |
+
|
| 438 |
+
Table 8: Validation accuracy of the bootstrapped-SAM for different levels of noise and different $\rho$
|
| 439 |
+
|
| 440 |
+
# C.2 FINETUNING DETAILS
|
| 441 |
+
|
| 442 |
+
Weights are initialized to the values provided by the publicly available checkpoints, except the last dense layer, which change size to accomodate the new number of classes, that is randomly initialized. We train all models with weight decay $1 e ^ { - 5 }$ as suggested in (Tan & Le, 2019), but we reduce the learning rate to 0.016 as the models tend to diverge for higher values. We use a batch size of 1024 on Google Cloud TPUv3 64 cores and cosine learning rate decay. Because other works train with batch size of 256, we train for 5k steps instead of $2 0 \mathrm { k }$ . We freeze the batch norm statistics and use them for normalization, effectively using the batch norm as we would at test time 11 We train the models using SGD with momentum 0.9 and cosine learning rate decay. For Efficientnet-L2, we use this time a batch size 512 to save memory and adjusted the number of training steps accordingly. For CIFAR, we use the same autoaugment policy as in the previous experiments. We do not use data augmentation for the other datasets, applying the same preprocessing as for the Imagenet experiments. We also scale down the learning rate to 0.008 as the batch size is now twice as small. We used Google Cloud TPUv3 128 cores. All other parameters stay the same. For Imagenet, we trained both models from checkpoint for 10 epochs using a learning rate of 0.1 and $\rho = 0 . 0 5$ . We do not randomly initialize the last layer as we did for the other datasets, but instead use the weights included in the checkpoint.
|
| 443 |
+
|
| 444 |
+
# C.3 EXPERIMENTAL RESULTS WITH $\rho = 0 . 0 5$
|
| 445 |
+
|
| 446 |
+
A big sensitivity to the choice of hyper-parameters would make a method less easy to use. To demonstrate that SAM performs even when $\rho$ is not finely tuned, we compiled the table for the CIFAR and the finetuning experiments using $\rho = 0 . 0 5$ . Please note that we already used $\rho = 0 . 0 5$ for all Imagenet experiments. We report those scores in table 9 and 10.
|
| 447 |
+
|
| 448 |
+
Table 9: Results for the Cifar10/Cifar100 experiments, using $\rho \quad = \quad 0 . 0 5$ for all models/datasets/augmentations
|
| 449 |
+
|
| 450 |
+
<table><tr><td rowspan=1 colspan=2></td><td rowspan=1 colspan=1>Cifar10</td><td rowspan=1 colspan=3>Cifar100</td></tr><tr><td rowspan=1 colspan=2>Model Augmentation</td><td rowspan=1 colspan=1>p=0.05 SGD</td><td rowspan=1 colspan=3>rho=0.05 SGD</td></tr><tr><td rowspan=4 colspan=1>WRN-28-10 (200 epochs)WRN-28-10 (200 epochs)WRN-28-10 (200 epochs)</td><td rowspan=4 colspan=1>BasicCutoutAA</td><td rowspan=4 colspan=1>2.7 3.52.3 2.62.1 2.3</td><td rowspan=1 colspan=3>16.5 18.8</td></tr><tr><td rowspan=1 colspan=1></td><td></td><td rowspan=1 colspan=1>14.9 16.9</td></tr><tr><td rowspan=2 colspan=1></td><td></td><td></td></tr><tr><td rowspan=1 colspan=3>13.6 15.8</td></tr><tr><td rowspan=2 colspan=1>WRN-28-10 (1800 epochs)WRN-28-10 (1800 ep0chs)WRN-28-10 (1800 epochs)</td><td rowspan=2 colspan=1>BasicCutoutAA</td><td rowspan=2 colspan=1>2.4 3.52.1 2.71.6 2.2</td><td rowspan=1 colspan=2>16.3</td><td rowspan=1 colspan=1>16.3 19.1</td></tr><tr><td rowspan=1 colspan=3>14.0 17.412.8 16.1</td><td rowspan=1 colspan=2>14.0 17.4</td></tr><tr><td rowspan=2 colspan=1>WRN 26-2x6 ssWRN 26-2x6 ssWRN 26-2x6 ss</td><td rowspan=2 colspan=1>BasicCutoutAA</td><td rowspan=2 colspan=1>2.4 2.72.0 2.31.7 1.9</td><td rowspan=1 colspan=3>15.1 17.0</td></tr><tr><td rowspan=1 colspan=3>14.2 15.712.8 14.1</td></tr><tr><td rowspan=3 colspan=1>PyramidNetPyramidNetPyramidNet</td><td rowspan=3 colspan=1>BasicCutoutAA</td><td rowspan=3 colspan=1>2.1 4.01.6 2.51.4 1.9</td><td rowspan=1 colspan=3>15.4 19.7</td></tr><tr><td rowspan=1 colspan=3>13.1 16.4</td></tr><tr><td rowspan=1 colspan=3>12.1 14.6</td></tr><tr><td rowspan=3 colspan=1>PyramidNet+ShakeDropPyramidNet+ShakeDropPyramidNet+ShakeDrop</td><td rowspan=3 colspan=1>BasicCutoutAA</td><td rowspan=1 colspan=1>2.1 2.5</td><td rowspan=1 colspan=3>13.3 14.5</td></tr><tr><td rowspan=2 colspan=1>1.6 1.91.4 1.6</td><td rowspan=1 colspan=3>11.3 11.8</td></tr><tr><td rowspan=1 colspan=3>10.3 10.6</td></tr></table>
|
| 451 |
+
|
| 452 |
+
Table 10: Results for the the finetuning experiments, using $\rho = 0 . 0 5$ for all datasets.
|
| 453 |
+
|
| 454 |
+
<table><tr><td>Dataset</td><td>Efficientnet-b7 + SAM (optimal)</td><td>Efficientnet-b7 + SAM (p= 0.05)</td><td>Efficientnet-b7</td></tr><tr><td>FGVC_Aircraft</td><td>6.80</td><td>7.06</td><td>8.15</td></tr><tr><td>Flowers</td><td>0.63</td><td>0.81</td><td>1.16</td></tr><tr><td>Oxford_IIIT_Pets</td><td>3.97</td><td>4.15</td><td>4.24</td></tr><tr><td>Stanford_Cars</td><td>5.18</td><td>5.57</td><td>5.94</td></tr><tr><td>cifar10</td><td>0.88</td><td>0.88</td><td>0.95</td></tr><tr><td>cifar100</td><td>7.44</td><td>7.56</td><td>7.68</td></tr><tr><td>Birdsnap</td><td>13.64</td><td>13.64</td><td>14.30</td></tr><tr><td>Food101</td><td>7.02</td><td>7.06</td><td>7.17</td></tr></table>
|
| 455 |
+
|
| 456 |
+
# C.4 ABLATION OF THE SECOND ORDER TERMS
|
| 457 |
+
|
| 458 |
+
As described in section 2, computing the gradient of the sharpness aware objective yield some second order terms that are more expensive to compute. To analyze this ablation more in depth, we trained a Wideresnet- $4 0 { \mathrm { x } } 2 $ on CIFAR-10 using SAM with and without discarding the second order terms during training. We report the cosine similarity of the two updates in figure 5, along the training trajectory of both experiments. We also report the training error rate (evaluated at $\pmb { w } + \hat { \epsilon } ( \pmb { w } ) )$ ) and the test error rate (evaluated at $\pmb { w }$ ).
|
| 459 |
+
|
| 460 |
+
We observe that during the first half of the training, discarding the second order terms does not impact the general direction of the training, as the cosine similarity between the first and second order updates are very close to 1. However, when the model nears convergence, the similarity between both types of updates becomes weaker. Fortunately, the model trained without the second order terms reaches a lower test error, showing that the most efficient method is also the one providing the best generalization on this example. The reason for this is quite unclear and should be analyzed in follow up work.
|
| 461 |
+
|
| 462 |
+

|
| 463 |
+
Figure 4: Training and test error for the first and second order version of the algorithm.
|
| 464 |
+
|
| 465 |
+

|
| 466 |
+
Figure 5: Cosine similarity between the first and second order updates.
|
| 467 |
+
|
| 468 |
+
# C.5 CHOICE OF P-NORM
|
| 469 |
+
|
| 470 |
+
Our theorem is derived for $p = 2$ , although generalizations can be considered for $p \in [ 1 , + \infty ]$ (the expression of the bound becoming way more involved). Empirically, we validate that the choice $p = 2$ is optimal by training a wide resnet on cifar10 with SAM for $p = \infty$ (in which case we have $\hat { \epsilon } ( \pmb { w } ) = \bar { \rho } \mathrm { s i g n } ( \nabla _ { \pmb { w } } L _ { S } ( \pmb { w } ) ) )$ and $p = 2$ (giving $\begin{array} { r } { \hat { \pmb { \epsilon } } ( \pmb { w } ) = \frac { \rho } { | | \nabla _ { \pmb { w } } L _ { S } ( \pmb { w } ) | | _ { 2 } ^ { 2 } } \big ( \nabla _ { \pmb { w } } L _ { S } ( \pmb { w } ) \big ) \big ) } \end{array}$ . We do not consider the case $p = 1$ which would give us a perturbation on a single weight. As an additional ablation study, we also use random weight perturbations of a fixed Euclidean norm: $\begin{array} { r } { \hat { \epsilon } ( w ) = \frac { \rho } { | | z | | _ { 2 } ^ { 2 } } z } \end{array}$ with $\boldsymbol { z } \sim \mathcal { N } ( \mathbf { 0 } , \boldsymbol { I } _ { d } )$ . We report the test accuracy of the model in figure 6.
|
| 471 |
+
|
| 472 |
+

|
| 473 |
+
Figure 6: Test accuracy for a wide resnet trained on CIFAR10 with SAM, for different perturbation norms.
|
| 474 |
+
|
| 475 |
+
We observe that adversarial perturbations outperform random perturbations, and that using $p = 2$ yield superior accuracy on this example.
|
| 476 |
+
|
| 477 |
+
# C.6 SEVERAL ITERATIONS IN THE INNER MAXIMIZATION
|
| 478 |
+
|
| 479 |
+
To empirically verify that the linearization of the inner problem is sensible, we trained a WideResnet on the CIFAR datasets using a variant of SAM that performs several iterations of projected gradient ascent to estimate max $L ( w + \epsilon )$ . We report the evolution of max $L ( w + \epsilon ) - L ( w )$ during training (where $L$ stands for the training error rate computed on the current batch) in Figure 7, along with the test accuracy and the estimated sharpness $\begin{array} { r } { ( \operatorname* { m a x } _ { \epsilon } L ( w + \epsilon ) - L ( w ) ) } \end{array}$ at the end of training in Table 11; we report means and standard deviations across 20 runs.
|
| 480 |
+
|
| 481 |
+
For most of the training, one projected gradient step (as used in standard SAM) is sufficient to obtain a good approximation of the $\epsilon$ found with multiple inner maximization steps. We however observe that this approximation becomes weaker near convergence, where doing several iterations of projected gradient ascent yields a better $\epsilon$ (for example, on CIFAR-10, the maximum loss found on each batch is about $3 \%$ more when doing 5 steps of inner maximization, compared to when doing a single step). That said, as seen in Table 11, the test accuracy is not strongly affected by the number of inner maximization iterations, though on CIFAR-100 it does seem that several steps outperform a single step in a statistically significant way.
|
| 482 |
+
|
| 483 |
+

|
| 484 |
+
Figure 7: Evolution of $\operatorname* { m a x } _ { \epsilon } L ( w + \epsilon ) - L ( w )$ vs. training step, for different numbers of inner projected gradient steps.
|
| 485 |
+
|
| 486 |
+
<table><tr><td rowspan="2">Numberof projected gradient steps</td><td colspan="2">CIFAR-10</td><td colspan="2">CIFAR-100</td></tr><tr><td>Test error</td><td>Estimated sharpness</td><td>Test error</td><td>Estimated sharpness</td></tr><tr><td>1</td><td>2.77±0.03</td><td>0.17±0.03</td><td>16.72±0.08</td><td>0.82±0.05</td></tr><tr><td>2</td><td>2.76±0.03</td><td>0.82±0.03</td><td>16.59±0.08</td><td>1.83±0.05</td></tr><tr><td>3</td><td>2.73±0.04</td><td>1.49±0.05</td><td>16.62±0.09</td><td>2.36±0.03</td></tr><tr><td>5</td><td>2.77±0.03</td><td>2.26±0.05</td><td>16.60±0.06</td><td>2.82±0.04</td></tr></table>
|
| 487 |
+
|
| 488 |
+
Table 11: Test error rate and estimated sharpness $\begin{array} { r } { ( \operatorname* { m a x } _ { \epsilon } L ( w + \epsilon ) - L ( w ) ) } \end{array}$ at the end of the training.
|
parse/train/6Tm1mposlrM/6Tm1mposlrM_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/6Tm1mposlrM/6Tm1mposlrM_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/6Tm1mposlrM/6Tm1mposlrM_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1lK_lBtvS/H1lK_lBtvS.md
ADDED
|
@@ -0,0 +1,275 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CLASSIFICATION-BASED ANOMALY DETECTION FOR GENERAL DATA
|
| 2 |
+
|
| 3 |
+
Liron Bergman Yedid Hoshen School of Computer Science and Engineering The Hebrew University of Jerusalem, Israel
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Anomaly detection, finding patterns that substantially deviate from those seen previously, is one of the fundamental problems of artificial intelligence. Recently, classification-based methods were shown to achieve superior results on this task. In this work, we present a unifying view and propose an open-set method, GOAD, to relax current generalization assumptions. Furthermore, we extend the applicability of transformation-based methods to non-image data using random affine transformations. Our method is shown to obtain state-of-the-art accuracy and is applicable to broad data types. The strong performance of our method is extensively validated on multiple datasets from different domains.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Detecting anomalies in perceived data is a key ability for humans and for artificial intelligence. Humans often detect anomalies to give early indications of danger or to discover unique opportunities. Anomaly detection systems are being used by artificial intelligence to discover credit card fraud, for detecting cyber intrusion, alert predictive maintenance of industrial equipment and for discovering attractive stock market opportunities. The typical anomaly detection setting is a one class classification task, where the objective is to classify data as normal or anomalous. The importance of the task stems from being able to raise an alarm when detecting a different pattern from those seen in the past, therefore triggering further inspection. This is fundamentally different from supervised learning tasks, in which examples of all data classes are observed.
|
| 12 |
+
|
| 13 |
+
There are different possible scenarios for anomaly detection methods. In supervised anomaly detection, we are given training examples of normal and anomalous patterns. This scenario can be quite well specified, however obtaining such supervision may not be possible. For example in cyber security settings, we will not have supervised examples of new, unknown computer viruses making supervised training difficult. On the other extreme, fully unsupervised anomaly detection, obtains a stream of data containing normal and anomalous patterns and attempts to detect the anomalous data. In this work we deal with the semi-supervised scenario. In this setting, we have a training set of normal examples (which contains no anomalies). After training the anomaly detector, we detect anomalies in the test data, containing both normal and anomalous examples. This supervision is easy to obtain in many practical settings and is less difficult than the fully-unsupervised case.
|
| 14 |
+
|
| 15 |
+
Many anomaly detection methods have been proposed over the last few decades. They can be broadly classified into reconstruction and statistically based methods. Recently, deep learning methods based on classification have achieved superior results. Most semi-supervised classificationbased methods attempt to solve anomaly detection directly, despite only having normal training data. One example is: Deep-SVDD (Ruff et al., 2018) - one-class classification using a learned deep space. Another type of classification-based methods is self-supervised i.e. methods that solve one or more classification-based auxiliary tasks on the normal training data, and this is shown to be useful for solving anomaly detection, the task of interest e.g. (Golan & El-Yaniv, 2018). Self-supervised classification-based methods have been proposed with the object of image anomaly detection, but we show that by generalizing the class of transformations they can apply to all data types.
|
| 16 |
+
|
| 17 |
+
In this paper, we introduce a novel technique, GOAD, for anomaly detection which unifies current state-of-the-art methods that use normal training data only and are based on classification. Our method first transforms the data into $M$ subspaces, and learns a feature space such that inter-class separation is larger than intra-class separation. For the learned features, the distance from the cluster center is correlated with the likelihood of anomaly. We use this criterion to determine if a new data point is normal or anomalous. We also generalize the class of transformation functions to include affine transformation which allows our method to generalize to non-image data. This is significant as tabular data is probably the most important for applications of anomaly detection. Our method is evaluated on anomaly detection on image and tabular datasets (cyber security and medical) and is shown to significantly improve over the state-of-the-art.
|
| 18 |
+
|
| 19 |
+
# 1.1 PREVIOUS WORKS
|
| 20 |
+
|
| 21 |
+
Anomaly detection methods can be generally divided into the following categories:
|
| 22 |
+
|
| 23 |
+
Reconstruction Methods: Some of the most common anomaly detection methods are reconstructionbased. The general idea behind such methods is that every normal sample should be reconstructed accurately using a limited set of basis functions, whereas anomalous data should suffer from larger reconstruction costs. The choice of features, basis and loss functions differentiates between the different methods. Some of the earliest methods use: nearest neighbors (Eskin et al., 2002), low-rank PCA (Jolliffe, 2011; Candes et al., 2011) or K-means (Hartigan & Wong, 1979) as the reconstruction \` basis. Most recently, neural networks were used (Sakurada & Yairi, 2014; Xia et al., 2015) for learning deep basis functions for reconstruction. Another set of recent methods (Schlegl et al., 2017; Deecke et al., 2018) use GANs to learn a reconstruction basis function. GANs suffer from mode-collapse and are difficult to invert, which limits the performance of such methods.
|
| 24 |
+
|
| 25 |
+
Distributional Methods: Another set of commonly used methods are distribution-based. The main theme in such methods is to model the distribution of normal data. The expectation is that anomalous test data will have low likelihood under the probabilistic model while normal data will have higher likelihoods. Methods differ in the features used to describe the data and the probabilistic model used to estimate the normal distribution. Some early methods used Gaussian or Gaussian mixture models. Such models will only work if the data under the selected feature space satisfies the probabilistic assumptions implicied by the model. Another set of methods used non-parametric density estimate methods such as kernel density estimate (Parzen, 1962). Recently, deep learning methods (autoencoders or variational autoencoders) were used to learn deep features which are sometimes easier to model than raw features (Yang et al., 2017). DAGMM introduced by Zong et al. (2018) learn the probabilistic model jointly with the deep features therefore shaping the features space to better conform with the probabilistic assumption.
|
| 26 |
+
|
| 27 |
+
Classification-Based Methods: Another paradigm for anomaly detection is separation between space regions containing normal data from all other regions. An example of such approach is One-Class SVM (Scholkopf et al., 2000), which trains a classifier to perform this separation. Learning a good feature space for performing such separation is performed both by the classic kernel methods as well as by the recent deep learning approach (Ruff et al., 2018). One of the main challenges in unsupervised (or semi-supervised) learning is providing an objective for learning features that are relevant to the task of interest. One method for learning good representations in a self-supervised way is by training a neural network to solve an auxiliary task for which obtaining data is free or at least very inexpensive. Auxiliary tasks for learning high-quality image features include: video frame prediction (Mathieu et al., 2016), image colorization (Zhang et al., 2016; Larsson et al., 2016), puzzle solving (Noroozi & Favaro, 2016) - predicting the correct order of random permuted image patches. Recently, Gidaris et al. (2018) used a set of image processing transformations (rotation by 0, 90, 180, 270 degrees around the image axis, and predicted the true image orientation has been used to learn high-quality image features. Golan & El-Yaniv (2018), have used similar image-processing task prediction for detecting anomalies in images. This method has shown good performance on detecting images from anomalous classes. In this work, we overcome some of the limitations of previous classification-based methods and extend their applicability of self-supervised methods to general data types. We also show that our method is more robust to adversarial attacks.
|
| 28 |
+
|
| 29 |
+
# 2 CLASSIFICATION-BASED ANOMALY DETECTION
|
| 30 |
+
|
| 31 |
+
Classification-based methods have dominated supervised anomaly detection. In this section we will analyse semi-supervised classification-based methods:
|
| 32 |
+
|
| 33 |
+
Let us assume all data lies in space $R ^ { L }$ (where $L$ is the data dimension). Normal data lie in subspace $X \subset R ^ { L }$ . We assume that all anomalies lie outside $X$ . To detect anomalies, we would therefore like to build a classifier $C$ , such that $C ( x ) = 1$ if $x \in X$ and $C ( x ) = 0$ if $x \in R ^ { L } \backslash X$ .
|
| 34 |
+
|
| 35 |
+
One-class classification methods attempt to learn $C$ directly as $P ( x \in X )$ . Classical approaches have learned a classifier either in input space or in a kernel space. Recently, Deep-SVDD (Ruff et al., 2018) learned end-to-end to i) transform the data to an isotropic feature space $f ( x )$ ii) fit the minimal hypersphere of radius $R$ and center $c _ { 0 }$ around the features of the normal training data. Test data is classified as anomalous if the following normality score is positive: $\| f ( x ) - \bar { c } _ { 0 } \| ^ { 2 } - R ^ { 2 }$ . Learning an effective feature space is not a simple task, as the trivial solution of $f ( x ) = 0 \ \forall \ x$ results in the smallest hypersphere, various tricks are used to avoid this possibility.
|
| 36 |
+
|
| 37 |
+
Geometric-transformation classification (GEOM), proposed by Golan & El-Yaniv (2018) first transforms the normal data subspace $X$ into $M$ subspaces $X _ { 1 } . . X _ { M }$ . This is done by transforming each image $x \in X$ using $M$ different geometric transformations (rotation, reflection, translation) into $T ( x , 1 ) . . T ( x , M )$ . Although these transformations are image specific, we will later extend the class of transformations to all affine transformations making this applicable to non-image data. They set an auxiliary task of learning a classifier able to predict the transformation label $m$ given transformed data point $T ( x , m )$ . As the training set consists of normal data only, each sample is $x \in X$ and the transformed sample is in $\cup _ { m } X _ { m }$ . The method attempts to estimate the following conditional probability:
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
P ( m ^ { \prime } | T ( x , m ) ) = \frac { P ( T ( x , m ) \in X _ { m ^ { \prime } } ) P ( m ^ { \prime } ) } { \sum _ { \tilde { m } } P ( T ( x , m ) \in X _ { \tilde { m } } ) P ( \tilde { m } ) } = \frac { P ( T ( x , m ) \in X _ { m ^ { \prime } } ) } { \sum _ { \tilde { m } } P ( T ( x , m ) \in X _ { \tilde { m } } ) }
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
Where the second equality follows by design of the training set, and where every training sample is transformed exactly once by each transformation leading to equal priors.
|
| 44 |
+
|
| 45 |
+
For anomalous data $x \in R ^ { L } \backslash X$ , by construction of the subspace, if the transformations $T$ are oneto-one, it follows that the transformed sample does not fall in the appropriate subspace: $T ( x , m ) \in$ $R _ { \mathrm { ~ - ~ } } ^ { L } \backslash X _ { m }$ . GEOM uses $P ( m | T ( x , m ) )$ as a score for determining if $x$ is anomalous i.e. that $x \in$ $R ^ { L } \backslash X$ . GEOM gives samples with low probabilities $P ( m | T ( x , m ) )$ high anomaly scores.
|
| 46 |
+
|
| 47 |
+
A significant issue with this methodology, is that the learned classifier $P ( m ^ { \prime } | T ( x , m ) )$ is only valid for samples $x \in X$ which were found in the training set. For $x \in R ^ { L } \backslash \mathrm { X }$ we should in fact have $P ( T ( x , m ) \in X _ { m ^ { \prime } } ) = 0$ for all $m = 1 . . M$ (as the transformed $x$ is not in any of the subsets). This makes the anomaly score $P ( m ^ { \prime } | T ( x , m ) )$ have very high variance for anomalies.
|
| 48 |
+
|
| 49 |
+
One way to overcome this issue is by using examples of anomalies $x _ { a }$ and training $P ( m | T ( x , m ) ) =$ $\frac { 1 } { M }$ on anomalous data. This corresponds to the supervised scenario and was recently introduced as Outlier Exposure (Hendrycks et al., 2018). Although getting such supervision is possible for some image tasks (where large external datasets can be used) this is not possible in the general case e.g. for tabular data which exhibits much more variation between datasets.
|
| 50 |
+
|
| 51 |
+
# 3 DISTANCE-BASED MULTIPLE TRANSFORMATION CLASSIFICATION
|
| 52 |
+
|
| 53 |
+
We propose a novel method to overcome the generalization issues highlighted in the previous section by using ideas from open-set classification (Bendale & Boult, 2016). Our approach unifies one-class and transformation-based classification methods. Similarly to GEOM, we transform $X$ to $X _ { 1 } . . X _ { M }$ . We learn a feature extractor $f ( x )$ using a neural network, which maps the original input data into a feature representation. Similarly to deep OC methods, we model each subspace $X _ { m }$ mapped to the feature space $\{ f ( x ) | x \in X _ { m } \}$ as a sphere with center $c _ { m }$ . The probability of data point $x$ after transformation $m$ is parameterized by $\begin{array} { r } { P ( T ( x , m ) \in X _ { m } ^ { \prime } ) = \frac { 1 } { Z } e ^ { - ( f ( T ( x , m ) ) - c _ { m } ^ { \prime } ) ^ { 2 } } } \end{array}$ . The classifier predicting transformation $m$ given a transformed point is therefore:
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
P ( m ^ { \prime } | T ( x , m ) ) = \frac { e ^ { - \| f ( T ( x , m ) ) - c _ { m ^ { \prime } } \| ^ { 2 } } } { \sum _ { \tilde { m } } e ^ { - \| f ( T ( x , m ) ) - c _ { \tilde { m } } \| ^ { 2 } } }
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
The centers $c _ { m }$ are given by the average feature over the training set for every transformation i.e. $\begin{array} { r } { c _ { m } = \frac { 1 } { N } \sum _ { x \in X } f ( \hat { T ( x , m ) } ) } \end{array}$ . One option is to directly learn $f$ by optimizing cross-entropy between
|
| 60 |
+
|
| 61 |
+
$P ( m ^ { \prime } | T ( x , m ) )$ and the correct label on the normal training set. In practice we obtained better results by training $f$ using the center triplet loss (He et al., 2018), which learns supervised clusters with low intra-class variation, and high-inter-class variation by optimizing the following loss function (where $s$ is a margin regularizing the distance between clusters):
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
L = \sum _ { i } \operatorname* { m a x } ( \| f ( T ( x _ { i } , m ) ) - c _ { m } \| ^ { 2 } + s - m i n _ { m ^ { \prime } \neq m } \| f ( T ( x _ { i } , m ) ) - c _ { m ^ { \prime } } \| ^ { 2 } , 0 )
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
Having learned a feature space in which the different transformation subspaces are well separated, we use the probability in Eq. 2 as a normality score. However, for data far away from the normal distributions, the distances from the means will be large. A small difference in distance will make the classifier unreasonably certain of a particular transformation. To add a general prior for uncertainty far from the training set, we add a small regularizing constant $\epsilon$ to the probability of each transformation. This ensures equal probabilities for uncertain regions:
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
\tilde { P } ( m ^ { \prime } | T ( x , m ) ) = \frac { e ^ { - \| f ( T ( x , m ) ) - c _ { m ^ { \prime } } \| ^ { 2 } } + \epsilon } { \sum _ { \tilde { m } } e ^ { - \| f ( T ( x , m ) ) - c _ { \tilde { m } } \| ^ { 2 } } + M \cdot \epsilon }
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
At test time we transform each sample by the $M$ transformations. By assuming independence between transformations, the probability that $x$ is normal (i.e. $x \in X$ ) is the product of the probabilities that all transformed samples are in their respective subspace. For log-probabilities the total score is given by:
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
S c o r e ( x ) = - \log P ( x \in X ) = - \sum _ { m } \log \tilde { P } ( T ( x , m ) \in X _ { m } ) = - \sum _ { m } \log \tilde { P } ( m | T ( x , m ) )
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
The score computes the degree of anomaly of each sample. Higher scores indicate a more anomalous sample.
|
| 80 |
+
|
| 81 |
+
<table><tr><td>Algorithm 1 GOAD: Training Algorithm</td></tr><tr><td>Input: Normal training data x1,x2...X N</td></tr><tr><td>Transformations T(,1),T(,2)..T(, M)</td></tr><tr><td>Output: Feature extractor f, centers C1, C2...CM T(xi,1),T(xi,2)..T(xi,M) ← xi</td></tr><tr><td>// Transform each sample by all transformations 1 to M Find f,c1, C2...CM that optimize the triplet loss in Eq. 3</td></tr></table>
|
| 82 |
+
|
| 83 |
+
# Algorithm 2 GOAD: Evaluation Algorithm
|
| 84 |
+
|
| 85 |
+
Input: Test sample: $x$ , feature extractor: $f$ , centers: c1, c2...cM , transformations: $T ( \ u , \ d ^ { 1 } ) , T ( \ u , \ d ^ { 2 } ) . . . T ( \ u , \ d M )$
|
| 86 |
+
Output: Score(x)
|
| 87 |
+
$T ( x , 1 ) , T ( x , 2 ) . . . T ( x , M ) \gets x$
|
| 88 |
+
// Transform test sample by all transformations 1 to M
|
| 89 |
+
$P ( m | T ( x , m ) ) f ( T ( x , m ) ) , c _ { 1 } , c _ { 2 } . . . c _ { M }$ // Likelihood of predicting the correct transformation (Eq. 4)
|
| 90 |
+
$S c o r e ( x ) \gets P ( 1 | T ( x , 1 ) ) , P ( 2 | T ( x , 2 ) ) . . . P ( M | T ( x , M ) )$ // Aggregate probabilities to compute anomaly score (Eq. 5)
|
| 91 |
+
|
| 92 |
+
# 4 PARAMETERIZING THE SET OF TRANSFORMATIONS
|
| 93 |
+
|
| 94 |
+
Geometric transformations have been used previously for unsupervised feature learning by Gidaris et al. (2018) as well as by GEOM (Golan & El-Yaniv, 2018) for classification-based anomaly detection. This set of transformations is hand-crafted to work well with convolutional neural networks (CNNs) which greatly benefit from preserving neighborhood between pixels. This is however not a requirement for fully-connected networks.
|
| 95 |
+
|
| 96 |
+
Anomaly detection often deals with non-image datasets e.g. tabular data. Tabular data is very commonly used on the internet e.g. for cyber security or online advertising. Such data consists of both discrete and continuous attributes with no particular neighborhoods or order. The data is onedimensional and rotations do not naturally generalize to it. To allow transformation-based methods to work on general data types, we therefore need to extend the class of transformations.
|
| 97 |
+
|
| 98 |
+
We propose to generalize the set of transformations to the class of affine transformations (where we have a total of $M$ transformations):
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
T ( x , m ) = W _ { m } x + b _ { m }
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
It is easy to verify that all geometric transformations in Golan & El-Yaniv (2018) (rotation by a multiple of 90 degrees, flips and translations) are a special case of this class ( $x$ in this case is the set of image pixels written as a vector). The affine class is however much more general than mere permutations, and allows for dimensionality reduction, non-distance preservation and random transformation by sampling $W$ , $b$ from a random distribution.
|
| 105 |
+
|
| 106 |
+
Apart from reduced variance across different dataset types where no apriori knowledge on the correct transformation classes exists, random transformations are important for avoiding adversarial examples. Assume an adversary wishes to change the label of a particular sample from anomalous to normal or vice versa. This is the same as requiring that $\tilde { P } ( m ^ { \prime } | T ( x , m ) )$ has low or high probability for $m ^ { \prime } = m$ . If $T$ is chosen deterministically, the adversary may create adversarial examples against the known class of transformations (even if the exact network parameters are unknown). Conversely, if $T$ is unknown, the adversary must create adversarial examples that generalize across different transformations, which reduces the effectiveness of the attack.
|
| 107 |
+
|
| 108 |
+
To summarize, generalizing the set of transformations to the affine class allows us to: generalize to non-image data, use an unlimited number of transformations and choose transformations randomly which reduces variance and defends against adversarial examples.
|
| 109 |
+
|
| 110 |
+
# 5 EXPERIMENTS
|
| 111 |
+
|
| 112 |
+
We perform experiments to validate the effectiveness of our distance-based approach and the performance of the general class of transformations we introduced for non-image data.
|
| 113 |
+
|
| 114 |
+
# 5.1 IMAGE EXPERIMENTS
|
| 115 |
+
|
| 116 |
+
Cifar10: To evaluate the performance of our method, we perform experiments on the Cifar10 dataset. We use the same architecture and parameter choices of Golan & El-Yaniv (2018), with our distance-based approach. We use the standard protocol of training on all training images of a single digit and testing on all test images. Results are reported in terms of AUC. In our method, we used a margin of $s = 0 . 1$ (we also run GOAD with $s = 1$ , shown in the appendix). Similarly to He et al. (2018), to stabilize training, we added a softmax $^ +$ cross entropy loss, as well as $L _ { 2 }$ norm regularization for the extracted features $f ( x )$ . We compare our method with the deep oneclass method of Ruff et al. (2018) as well as Golan & El-Yaniv (2018) without and with Dirichlet weighting. We believe the correct comparison is without Dirichlet post-processing, as we also do not use it in our method. Our distance based approach outperforms the SOTA approach by Golan & El-Yaniv (2018), both with and without Dirichlet (which seems to improve performance on a few classes). This gives evidence for the importance of considering the generalization behavior outside the normal region used in training. Note that we used the same geometric transformations as Golan & El-Yaniv (2018). Random affine matrices did not perform competitively as they are not pixel order preserving, this information is effectively used by CNNs and removing this information hurts performance. This is a special property of CNN architectures and image/time series data. As a rule of thumb, fully-connected networks are not pixel order preserving and can fully utilize random affine matrices.
|
| 117 |
+
|
| 118 |
+
Table 1: Anomaly Detection Accuracy on Cifar10 (ROC-AUC %)
|
| 119 |
+
|
| 120 |
+
<table><tr><td rowspan="2">Class</td><td colspan="4">Method</td></tr><tr><td>Deep-SVDD</td><td>GEOM (no Dirichlet)</td><td>GEOM (w. Dirichlet)</td><td>Ours</td></tr><tr><td>0</td><td>61.7 ± 1.3</td><td>76.0 ± 0.8</td><td>74.7 ± 0.4</td><td>77.2 ± 0.6</td></tr><tr><td>1</td><td>65.9 ± 0.7</td><td>83.0 ± 1.6</td><td>95.7 ± 0.0</td><td>96.7 ± 0.2</td></tr><tr><td>2</td><td>50.8 ± 0.3</td><td>79.5 ± 0.7</td><td>78.1 ± 0.4</td><td>83.3 ± 1.4</td></tr><tr><td>3</td><td>59.1 ± 0.4</td><td>71.4 ± 0.9</td><td>72.4 ± 0.5</td><td>77.7 ± 0.7</td></tr><tr><td>4</td><td>60.9 ± 0.3</td><td>83.5 ± 1.0</td><td>87.8 ± 0.2</td><td>87.8 ± 0.7</td></tr><tr><td>5</td><td>65.7 ± 0.8</td><td>84.0 ± 0.3</td><td>87.8 ± 0.1</td><td>87.8 ± 0.6</td></tr><tr><td>6</td><td>67.7 ± 0.8</td><td>78.4 ± 0.7</td><td>83.4 ± 0.5</td><td>90.0 ± 0.6</td></tr><tr><td>7</td><td>67.3 ± 0.3</td><td>89.3 ± 0.5</td><td>95.5 ± 0.1</td><td>96.1 ± 0.3</td></tr><tr><td>8</td><td>75.9 ± 0.4</td><td>88.6 ± 0.6</td><td>93.3 ± 0.0</td><td>93.8 ± 0.9</td></tr><tr><td>9</td><td>73.1 ± 0.4</td><td>82.4 ± 0.7</td><td>91.3 ± 0.1</td><td>92.0 ± 0.6</td></tr><tr><td>Average</td><td>64.8</td><td>81.6</td><td>86.0</td><td>88.2</td></tr></table>
|
| 121 |
+
|
| 122 |
+
Table 2: Anomaly Detection Accuracy on FashionMNIST (ROC-AUC %)
|
| 123 |
+
|
| 124 |
+
<table><tr><td rowspan="2">Class</td><td colspan="4">Method</td></tr><tr><td>Deep-SVDD</td><td>GEOM (no Dirichlet)</td><td>GEOM (w. Dirichlet)</td><td>Ours</td></tr><tr><td>0</td><td>98.2</td><td>77.8 ± 5.9</td><td>99.4 ± 0.0</td><td>94.1 ± 0.9</td></tr><tr><td>1</td><td>90.3</td><td>79.1 ± 16.3</td><td>97.6 ± 0.1</td><td>98.5 ± 0.3</td></tr><tr><td>2</td><td>90.7</td><td>80.8 ± 6.9</td><td>91.1 ± 0.2</td><td>90.8 ± 0.4</td></tr><tr><td>3</td><td>94.2</td><td>79.2 ± 9.1</td><td>89.9 ± 0.4</td><td>91.6 ± 0.9</td></tr><tr><td>4</td><td>89.4</td><td>77.8 ± 3.3</td><td>92.1 ± 0.0</td><td>91.4 ± 0.3</td></tr><tr><td>5</td><td>91.8</td><td>58.0 ± 29.4</td><td>93.4 ± 0.9</td><td>94.8 ± 0.5</td></tr><tr><td>6</td><td>83.4</td><td>73.6 ± 8.7</td><td>83.3 ± 0.1</td><td>83.4 ± 0.4</td></tr><tr><td>7</td><td>98.8</td><td>87.4 ± 11.4</td><td>98.9 ± 0.1</td><td>97.9 ± 0.4</td></tr><tr><td>8</td><td>91.9</td><td>84.6 ± 5.6</td><td>90.8 ± 0.1</td><td>98.9 ± 0.1</td></tr><tr><td>9</td><td>99.0</td><td>99.5 ± 0.0</td><td>99.2 ± 0.0</td><td>99.2 ± 0.3</td></tr><tr><td>Average</td><td>92.8</td><td>79.8</td><td>93.5</td><td>94.1</td></tr></table>
|
| 125 |
+
|
| 126 |
+
FasionMNIST: In Tab. 2, we present a comparison between our method (GOAD) and the strongest baseline methods (Deep SVDD and GEOM) on the FashionMNIST dataset. We used exactly the same setting as Golan & El-Yaniv (2018). GOAD was run with $s \ = \ 1$ . OCSVM and GEOM with Dirichlet were copied from their paper. We run their method without Dirichlet and presented it in the table (we verified the implementation by running their code with Dirichlet and replicated the numbers in the paper). It appears that GEOM is quite dependent on Dirichlet for this dataset, whereas we do not use it at all. GOAD outperforms all the baseline methods.
|
| 127 |
+
|
| 128 |
+
Adversarial Robustness: Let us assume an attack model where the attacker knows the architecture and the normal training data and is trying to minimally modify anomalies to look normal. We examine the merits of two settings i) the adversary knows the transformations used (non-random) ii) the adversary uses another set of transformations. To measure the benefit of the randomized transformations, we train three networks A, B, C. Networks A and B use exactly the same transformations but random parameter initialization prior to training. Network C is trained using other randomly selected transformations. The adversary creates adversarial examples using PGD (Madry et al., 2017) based on network A (making anomalies appear like normal data). On Cifar10, we randomly selected 8 transformations from the full set of 72 for $A$ and $B$ , another randomly selected 8 transformations are used for $C$ . We measure the increase of false classification rate on the adversarial examples using the three networks. The average increase in performance of classifying transformation correctly on anomalies (causing lower anomaly scores) on the original network $A$ was $1 2 . 8 \%$ , the transfer performance for B causes an increase by $5 . 0 \%$ on network $B$ which shared the same set of transformation, and $3 \%$ on network $C$ that used other rotations. This shows the benefits of using random transformations.
|
| 129 |
+
|
| 130 |
+
Table 3: Anomaly Detection Accuracy $( \% )$
|
| 131 |
+
|
| 132 |
+
<table><tr><td>Method</td><td colspan="7">Dataset</td></tr><tr><td></td><td colspan="2">Arrhythmia</td><td colspan="2">Thyroid</td><td colspan="2">KDD</td><td colspan="2">KDDRev</td></tr><tr><td></td><td>F1 Score</td><td>0</td><td>F1 Score</td><td>0</td><td>F1 Score</td><td>0</td><td>F1 Score</td><td>0</td></tr><tr><td>OC-SVM</td><td>45.8</td><td></td><td>38.9</td><td></td><td>79.5</td><td></td><td>83.2</td><td></td></tr><tr><td>E2E-AE</td><td>45.9</td><td></td><td>11.8</td><td></td><td>0.3</td><td></td><td>74.5</td><td></td></tr><tr><td>LOF</td><td>50.0</td><td>0.0</td><td>52.7</td><td>0.0</td><td>83.8</td><td>5.2</td><td>81.6</td><td>3.6</td></tr><tr><td>DAGMM</td><td>49.8</td><td></td><td>47.8</td><td></td><td>93.7</td><td></td><td>93.8</td><td></td></tr><tr><td>FB-AE</td><td>51.5</td><td>1.6</td><td>75.0</td><td>0.8</td><td>92.7</td><td>0.3</td><td>95.9</td><td>0.4</td></tr><tr><td>GOAD(Ours)</td><td>52.0</td><td>2.3</td><td>74.5</td><td>1.1</td><td>98.4</td><td>0.2</td><td>98.9</td><td>0.3</td></tr></table>
|
| 133 |
+
|
| 134 |
+
# 5.2 TABULAR DATA EXPERIMENTS
|
| 135 |
+
|
| 136 |
+
Datasets: We evaluate on small-scale medical datasets Arrhythmia, Thyroid as well as large-scale cyber intrusion detection datasets KDD and KDDRev. Our configuration follows that of Zong et al. (2018). Categorical attributes are encoded as one-hot vectors. For completeness the datasets are described in the appendix A.2. We train all compared methods on $5 0 \%$ of the normal data. The methods are evaluated on $5 0 \%$ of the normal data as well as all the anomalies.
|
| 137 |
+
|
| 138 |
+
Baseline methods: The baseline methods evaluated are: One-Class SVM (OC-SVM, Scholkopf et al. (2000)), End-to-End Autoencoder (E2E-AE), Local Outlier Factor (LOF, Breunig et al. (2000)). We also evaluated deep distributional method DAGMM (Zong et al., 2018), choosing their strongest variant. To compare against ensemble methods e.g. Chen et al. (2017), we implemented the Feature Bagging Autoencoder (FB-AE) with autoencoders as the base classifier, feature bagging as the source of randomization, and average reconstruction error as the anomaly score. OC-SVM, E2E-AE and DAGMM results are directly taken from those reported by Zong et al. (2018). LOF and FB-AE were computed by us.
|
| 139 |
+
|
| 140 |
+
Implementation of $G O A D$ : We randomly sampled transformation matrices using the normal distribution for each element. Each matrix has dimensionality $L \times r$ , where $L$ is the data dimension and $r$ is a reduced dimension. For Arryhthmia and Thyroid we used $r = 3 2$ , for KDD and KDDrev we used $r = 1 2 8$ and $r = 6 4$ respectively, the latter due to high memory requirements. We used 256 tasks for all datasets apart from KDD (64) due to high memory requirements. We set the bias term to 0. For $C$ we used fully-connected hidden layers and leaky-ReLU activations (8 hidden nodes for the small datasets, 128 and 32 for KDDRev and KDD). We optimized using ADAM with a learning rate of 0.001. Similarly to He et al. (2018), to stabilize the triplet center loss training, we added a softmax $^ +$ cross entropy loss. We repeated the large-scale experiments 5 times, and the small scale GOAD experiments 500 times (due to the high variance). We report the mean and standard deviation $( \sigma )$ . Following the protocol in Zong et al. (2018), the decision threshold value is chosen to result in the correct number of anomalies e.g. if the test set contains $N _ { a }$ anomalies, the threshold is selected so that the highest $N _ { a }$ scoring examples are classified as anomalies. True positives and negatives are evaluated in the usual way. Some experiments copied from other papers did not measure standard variation and we kept the relevant cell blank.
|
| 141 |
+
|
| 142 |
+
# Results
|
| 143 |
+
|
| 144 |
+
Arrhythmia: The Arrhythmia dataset was the smallest examined. A quantitative comparison on this dataset can be seen in Tab. 3. OC-SVM and DAGMM performed reasonably well. Our method is comparable to FB-AE. A linear classifier $C$ performed better than deeper networks (which suffered from overfitting). Early stopping after a single epoch generated the best results.
|
| 145 |
+
|
| 146 |
+
Thyroid: Thyroid is a small dataset, with a low anomaly to normal ratio and low feature dimensionality. A quantitative comparison on this dataset can be seen in Tab. 3. Most baselines performed about equally well, probably due to the low dimensionality. On this dataset, we also found that early stopping after a single epoch gave the best results. The best results on this dataset, were obtained with a linear classifier. Our method is comparable to FB-AE and beat all other baselines by a wide margin.
|
| 147 |
+
|
| 148 |
+

|
| 149 |
+
Figure 1: Left: Classification error for our method and DAGMM as a function of percentage of the anomalous examples in the training set (on the KDDCUP99 dataset). Our method consistently outperforms the baseline. Right: Classification error as a function of the number of transformations (on the KDDRev dataset). The error and instability decrease as a function of the number of transformations. For both, lower is better.
|
| 150 |
+
|
| 151 |
+
KDDCUP99: The UCI KDD $1 0 \%$ dataset is the largest dataset examined. A quantitative comparison on this dataset can be seen in Tab. 3. The strongest baselines are FB-AE and DAGMM. Our method significantly outperformed all baselines. We found that large datasets have different dynamics from very small datasets. On this dataset, deep networks performed the best. We also, did not need early stopping. The results are reported after 25 epochs.
|
| 152 |
+
|
| 153 |
+
KDD-Rev: The KDD-Rev dataset is a large dataset, but smaller than KDDCUP99 dataset. A quantitative comparison on this dataset can be seen in Tab. 3. Similarly to KDDCUP99, the best baselines are FB-AE and DAGMM, where FB-AE significantly outperforms DAGMM. Our method significantly outperformed all baselines. Due to the size of the dataset, we did not need early stopping. The results are reported after 25 epochs.
|
| 154 |
+
|
| 155 |
+
Adversarial Robustness: Due to the large number of transformations and relatively small networks, adversarial examples are less of a problem for tabular data. PGD generally failed to obtain adversarial examples on these datasets. On KDD, transformation classification accuracy on anomalies was increased by $3 . 7 \%$ for the network the adversarial examples were trained on, $1 . 3 \%$ when transferring to the network with the same transformation and only $0 . 2 \%$ on the network with other randomly selected transformations. This again shows increased adversarial robustness due to random transformations.
|
| 156 |
+
|
| 157 |
+
# Further Analysis
|
| 158 |
+
|
| 159 |
+
Contaminated Data: This paper deals with the semi-supervised scenario i.e. when the training dataset contains only normal data. In some scenarios, such data might not be available but instead we might have a training dataset that contains a small percentage of anomalies. To evaluate the robustness of our method to this unsupervised scenario, we analysed the KDDCUP99 dataset, when $X \%$ of the training data is anomalous. To prepare the data, we used the same normal training data as before and added further anomalous examples. The test data consists of the same proportions as before. The results are shown in Fig. 1. Our method significantly outperforms DAGMM for all impurity values, and degrades more graceful than the baseline. This attests to the effectiveness of our approach. Results for the other datasets are presented in Fig. 3, showing similar robustness to contamination.
|
| 160 |
+
|
| 161 |
+
Number of Tasks: One of the advantages of GOAD, is the ability to generate any number of tasks. We present the anomaly detection performance on the KDD-Rev dataset with different numbers of tasks in Fig. 1. We note that a small number of tasks (less than 16) leads to poor results. From 16 tasks, the accuracy remains stable. We found that on the smaller datasets (Thyroid, Arrhythmia) using a larger number of transformations continued to reduce $F _ { 1 }$ score variance between differently initialized runs (Fig. 2).
|
| 162 |
+
|
| 163 |
+
# 6 DISCUSSION
|
| 164 |
+
|
| 165 |
+
Openset vs. Softmax: The openset-based classification presented by GOAD resulted in performance improvement over the closed-set softmax approach on Cifar10 and FasionMNIST. In our experiments, it has also improved performance in KDDRev. Arrhythmia and Thyroid were comparable. As a negative result, performance of softmax was better on KDD $F _ { 1 } = 0 . 9 9$ ).
|
| 166 |
+
|
| 167 |
+
Choosing the margin parameter $s$ : GOAD is not particularly sensitive to the choice of margin parameter $s$ , although choosing $s$ that is too small might cause some instability. We used a fixed value of $s = 1$ in our experiments, and recommend this value as a starting point.
|
| 168 |
+
|
| 169 |
+
Other transformations: GOAD can also work with other types of transformations such as rotations or permutations for tabular data. In our experiments, we observed that these transformation types perform comparably but a little worse than affine transformations.
|
| 170 |
+
|
| 171 |
+
Unsupervised training: Although most of our results are semi-supervised i.e. assume that no anomalies exist in the training set, we presented results showing that our method is more robust than strong baselines to a small percentage of anomalies in the training set. We further presented results in other datasets showing that our method degrades gracefully with a small amount of contamination. Our method might therefore be considered in the unsupervised settings.
|
| 172 |
+
|
| 173 |
+
Deep vs. shallow classifiers: Our experiments show that for large datasets deep networks are beneficial (particularly for the full KDDCUP99), but are not needed for smaller datasets (indicating that deep learning has not benefited the smaller datasets). For performance critical operations, our approach may be used in a linear setting. This may also aid future theoretical analysis of our method.
|
| 174 |
+
|
| 175 |
+
# 7 CONCLUSION
|
| 176 |
+
|
| 177 |
+
In this paper, we presented a method for detecting anomalies for general data. This was achieved by training a classifier on a set of random auxiliary tasks. Our method does not require knowledge of the data domain, and we are able to generate an arbitrary number of random tasks. Our method significantly improve over the state-of-the-art.
|
| 178 |
+
|
| 179 |
+
# REFERENCES
|
| 180 |
+
|
| 181 |
+
Arthur Asuncion and David Newman. Uci machine learning repository, 2007.
|
| 182 |
+
|
| 183 |
+
Abhijit Bendale and Terrance E Boult. Towards open set deep networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1563–1572, 2016.
|
| 184 |
+
|
| 185 |
+
Markus M Breunig, Hans-Peter Kriegel, Raymond T $\mathrm { N g }$ , and Jorg Sander. Lof: identifying density- ¨ based local outliers. In ACM sigmod record, volume 29, pp. 93–104. ACM, 2000.
|
| 186 |
+
|
| 187 |
+
Emmanuel J Candes, Xiaodong Li, Yi Ma, and John Wright. Robust principal component analysis? \` JACM, 2011.
|
| 188 |
+
|
| 189 |
+
Jinghui Chen, Saket Sathe, Charu Aggarwal, and Deepak Turaga. Outlier detection with autoencoder ensembles. In ICDM, 2017.
|
| 190 |
+
|
| 191 |
+
Lucas Deecke, Robert Vandermeulen, Lukas Ruff, Stephan Mandt, and Marius Kloft. Anomaly detection with generative adversarial networks. In ICLR, 2018.
|
| 192 |
+
|
| 193 |
+
Eleazar Eskin, Andrew Arnold, Michael Prerau, Leonid Portnoy, and Sal Stolfo. A geometric framework for unsupervised anomaly detection. In Applications of data mining in computer security, pp. 77–101. Springer, 2002.
|
| 194 |
+
|
| 195 |
+
Spyros Gidaris, Praveer Singh, and Nikos Komodakis. Unsupervised representation learning by predicting image rotations. ICLR, 2018.
|
| 196 |
+
|
| 197 |
+
Izhak Golan and Ran El-Yaniv. Deep anomaly detection using geometric transformations. In NeurIPS, 2018.
|
| 198 |
+
|
| 199 |
+
John A Hartigan and Manchek A Wong. Algorithm as 136: A k-means clustering algorithm. Journal of the Royal Statistical Society. Series C (Applied Statistics), 1979.
|
| 200 |
+
|
| 201 |
+
Xinwei He, Yang Zhou, Zhichao Zhou, Song Bai, and Xiang Bai. Triplet-center loss for multiview 3d object retrieval. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1945–1954, 2018.
|
| 202 |
+
|
| 203 |
+
Dan Hendrycks, Mantas Mazeika, and Thomas G Dietterich. Deep anomaly detection with outlier exposure. arXiv preprint arXiv:1812.04606, 2018.
|
| 204 |
+
|
| 205 |
+
Ian Jolliffe. Principal component analysis. Springer, 2011.
|
| 206 |
+
|
| 207 |
+
Gustav Larsson, Michael Maire, and Gregory Shakhnarovich. Learning representations for automatic colorization. In ECCV, 2016.
|
| 208 |
+
|
| 209 |
+
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017.
|
| 210 |
+
|
| 211 |
+
Michael Mathieu, Camille Couprie, and Yann LeCun. Deep multi-scale video prediction beyond mean square error. ICLR, 2016.
|
| 212 |
+
|
| 213 |
+
Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In ECCV, 2016.
|
| 214 |
+
|
| 215 |
+
Emanuel Parzen. On estimation of a probability density function and mode. The annals of mathematical statistics, 1962.
|
| 216 |
+
|
| 217 |
+
Shebuti Rayana. ODDS library http://odds.cs.stonybrook.edu, 2016.
|
| 218 |
+
|
| 219 |
+
Lukas Ruff, Nico Gornitz, Lucas Deecke, Shoaib Ahmed Siddiqui, Robert Vandermeulen, Alexander Binder, Emmanuel Muller, and Marius Kloft. Deep one-class classification. In ¨ ICML, 2018.
|
| 220 |
+
|
| 221 |
+
Mayu Sakurada and Takehisa Yairi. Anomaly detection using autoencoders with nonlinear dimensionality reduction. In MLSD. ACM, 2014.
|
| 222 |
+
|
| 223 |
+
Thomas Schlegl, Philipp Seebock, Sebastian M Waldstein, Ursula Schmidt-Erfurth, and Georg ¨ Langs. Unsupervised anomaly detection with generative adversarial networks to guide marker discovery. In International Conference on Information Processing in Medical Imaging, 2017.
|
| 224 |
+
|
| 225 |
+
Bernhard Scholkopf, Robert C Williamson, Alex J Smola, John Shawe-Taylor, and John C Platt. Support vector method for novelty detection. In NIPS, 2000.
|
| 226 |
+
|
| 227 |
+
Yan Xia, Xudong Cao, Fang Wen, Gang Hua, and Jian Sun. Learning discriminative reconstructions for unsupervised outlier removal. In ECCV, 2015.
|
| 228 |
+
|
| 229 |
+
Bo Yang, Xiao Fu, Nicholas D Sidiropoulos, and Mingyi Hong. Towards k-means-friendly spaces: Simultaneous deep learning and clustering. In ICML, 2017.
|
| 230 |
+
|
| 231 |
+
Richard Zhang, Phillip Isola, and Alexei A Efros. Colorful image colorization. In ECCV, 2016.
|
| 232 |
+
|
| 233 |
+
Bo Zong, Qi Song, Martin Renqiang Min, Wei Cheng, Cristian Lumezanu, Daeki Cho, and Haifeng Chen. Deep autoencoding gaussian mixture model for unsupervised anomaly detection. ICLR, 2018.
|
| 234 |
+
|
| 235 |
+
# A APPENDIX
|
| 236 |
+
|
| 237 |
+
# A.1 IMAGE EXPERIMENTS
|
| 238 |
+
|
| 239 |
+
Sensitive to margin s: We run Cifar10 experiments with $s = 0 . 1$ and $s = 1$ and presented the results in Fig. 4. The results were not affected much by the margin parameter. This is in-line with the rest of our empirical observations that GOAD is not very sensitive to the margin parameter.
|
| 240 |
+
|
| 241 |
+
Table 4: Anomaly Detection Accuracy on Cifar10 $( \% )$
|
| 242 |
+
|
| 243 |
+
<table><tr><td rowspan="2">Class</td><td colspan="3">Method</td></tr><tr><td>GEOM (w. Dirichlet)</td><td>GOAD(s = 0.1)</td><td>GOAD(1.0)</td></tr><tr><td>0</td><td>74.7 ± 0.4</td><td>77.2 ± 0.6</td><td>77.9 ± 0.7</td></tr><tr><td>1</td><td>95.7 ± 0.0</td><td>96.7 ± 0.2</td><td>96.4 ± 0.9</td></tr><tr><td>2</td><td>78.1 ± 0.4</td><td>83.3 ± 1.4</td><td>81.8 ± 0.8</td></tr><tr><td>3</td><td>72.4 ± 0.5</td><td>77.7 ± 0.7</td><td>77.0 ± 0.7</td></tr><tr><td>4</td><td>87.8 ± 0.2</td><td>87.8 ± 0.7</td><td>87.7 ± 0.5</td></tr><tr><td>5</td><td>87.8 ± 0.1</td><td>87.8 ± 0.6</td><td>87.8 ± 0.7</td></tr><tr><td>6</td><td>83.4 ± 0.5</td><td>90.0 ± 0.6</td><td>90.9 ± 0.5</td></tr><tr><td>7</td><td>95.5 ± 0.1</td><td>96.1 ± 0.3</td><td>96.1 ± 0.2</td></tr><tr><td>8</td><td>93.3 ± 0.0</td><td>93.8 ± 0.9</td><td>93.3 ± 0.1</td></tr><tr><td>9</td><td>91.3 ± 0.1</td><td>92.0 ± 0.6</td><td>92.4 ± 0.3</td></tr><tr><td>Average</td><td>86.0</td><td>88.2</td><td>88.1</td></tr></table>
|
| 244 |
+
|
| 245 |
+
# A.2 TABULAR DATASETS
|
| 246 |
+
|
| 247 |
+
Following the evaluation protocol of Zong et al. (2018), 4 datasets are used in this comparison:
|
| 248 |
+
|
| 249 |
+
Arrhythmia: A cardiology dataset from the UCI repository (Asuncion & Newman, 2007) containing attributes related to the diagnosis of cardiac arrhythmia in patients. The datasets consists of 16 classes: class 1 are normal patients, 2-15 contain different arrhythmia conditions, and class 16 contains undiagnosed cases. Following the protocol established by ODDS (Rayana, 2016), the smallest classes: 3, 4, 5, 7, 8, 9, 14, 15 are taken to be anomalous and the rest normal. Also following ODDS, the categorical attributes are dropped, the final attributes total 274.
|
| 250 |
+
|
| 251 |
+
Thyroid: A medical dataset from the UCI repository (Asuncion & Newman, 2007), containing attributes related to whether a patient is hyperthyroid. Following ODDS (Rayana, 2016), from the 3 classes of the dataset, we designate hyperfunction as the anomalous class and the rest as normal. Also following ODDS only the 6 continuous attributes are used.
|
| 252 |
+
|
| 253 |
+
KDD: The KDD Intrusion Detection dataset was created by an extensive simulation of a US Air Force LAN network. The dataset consists of the normal and 4 simulated attack types: denial of service, unauthorized access from a remote machine, unauthorized access from local superuser and probing. The dataset consists of around 5 million TCP connection records. Following the evaluation protocol in Zong et al. (2018), we use the UCI KDD $1 0 \%$ dataset, which is a subsampled version of the original dataset. The dataset contains 41 different attributes. 34 are continuous and 7 are categorical. Following Zong et al. (2018), we encode the categorical attributes using 1-hot encoding.
|
| 254 |
+
|
| 255 |
+
Following Zong et al. (2018), we evaluate two different settings for the KDD dataset:
|
| 256 |
+
|
| 257 |
+
KDDCUP99: In this configuration we use the entire UCI $1 0 \%$ dataset. As the non-attack class consists of only $2 0 \%$ of the dataset, it is treated as the anomaly in this case, while attacks are treated as normal.
|
| 258 |
+
|
| 259 |
+
KDDCUP99-Rev: To better correspond to the actual use-case, in which the non-attack scenario is normal and attacks are anomalous, Zong et al. (2018) also evaluate on the reverse configuration, in which the attack data is sub-sampled to consist of $2 5 \%$ of the number of non-attack samples. The attack data is in this case designated as anomalous (the reverse of the KDDCUP99 dataset).
|
| 260 |
+
|
| 261 |
+
In all the above datasets, the methods are trained on $5 0 \%$ of the normal data. The methods are evaluated on $5 0 \%$ of the normal data as well as all the anomalies.
|
| 262 |
+
|
| 263 |
+
# A.3 NUMBER OF TASKS
|
| 264 |
+
|
| 265 |
+
We provide plots of the number of auxiliary tasks vs. the anomaly detection accuracy (measured by $F _ { 1 , }$ ) for all datasets. The results are presented in Fig. 2. Performance increases rapidly up to a certain number of tasks (around 16). Afterwards more tasks reduce the variance of $F _ { 1 }$ scores between runs.
|
| 266 |
+
|
| 267 |
+

|
| 268 |
+
Figure 2: Plots of the number of auxiliary tasks vs. the anomaly detection accuracy (measured by $F _ { 1 }$ ) a) Arrhythmia b) Thyroid c) KDDRev d) KDDCup99 Accuracy often increases with the number of tasks, although the rate diminishes with the number of tasks.
|
| 269 |
+
|
| 270 |
+

|
| 271 |
+
Figure 3: Plots of the degree of contamination vs. the anomaly detection accuracy (measured by $F _ { 1 }$ ) (left) KDDRev (center) KDDCup99 (right) Arrhythmia. GOAD is generally robust to the degree of contamination.
|
| 272 |
+
|
| 273 |
+
# A.4 CONTAMINATION EXPERIMENTS
|
| 274 |
+
|
| 275 |
+
We conduct contamination experiments for 3 datasets. Thyroid was omitted due to not having a sufficient number of anomalies. The protocol is different than that of KDDRev as we do not have unused anomalies for contamination. Instead, we split the anomalies into train and test. Train anomalies are used for contamination, test anomalies are used for evaluation. As DAGMM did not present results for the other datasets, we only present GOAD. GOAD was reasonably robust to contamination on KDD, KDDRev and Arrhythmia. The results are presented in Fig. 3
|
parse/train/H1lK_lBtvS/H1lK_lBtvS_content_list.json
ADDED
|
@@ -0,0 +1,1456 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "CLASSIFICATION-BASED ANOMALY DETECTION FOR GENERAL DATA ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
823,
|
| 10 |
+
145
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Liron Bergman Yedid Hoshen School of Computer Science and Engineering The Hebrew University of Jerusalem, Israel ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
170,
|
| 20 |
+
485,
|
| 21 |
+
212
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
452,
|
| 31 |
+
250,
|
| 32 |
+
544,
|
| 33 |
+
263
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Anomaly detection, finding patterns that substantially deviate from those seen previously, is one of the fundamental problems of artificial intelligence. Recently, classification-based methods were shown to achieve superior results on this task. In this work, we present a unifying view and propose an open-set method, GOAD, to relax current generalization assumptions. Furthermore, we extend the applicability of transformation-based methods to non-image data using random affine transformations. Our method is shown to obtain state-of-the-art accuracy and is applicable to broad data types. The strong performance of our method is extensively validated on multiple datasets from different domains. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
279,
|
| 43 |
+
764,
|
| 44 |
+
404
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
426,
|
| 55 |
+
336,
|
| 56 |
+
443
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Detecting anomalies in perceived data is a key ability for humans and for artificial intelligence. Humans often detect anomalies to give early indications of danger or to discover unique opportunities. Anomaly detection systems are being used by artificial intelligence to discover credit card fraud, for detecting cyber intrusion, alert predictive maintenance of industrial equipment and for discovering attractive stock market opportunities. The typical anomaly detection setting is a one class classification task, where the objective is to classify data as normal or anomalous. The importance of the task stems from being able to raise an alarm when detecting a different pattern from those seen in the past, therefore triggering further inspection. This is fundamentally different from supervised learning tasks, in which examples of all data classes are observed. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
457,
|
| 66 |
+
825,
|
| 67 |
+
583
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "There are different possible scenarios for anomaly detection methods. In supervised anomaly detection, we are given training examples of normal and anomalous patterns. This scenario can be quite well specified, however obtaining such supervision may not be possible. For example in cyber security settings, we will not have supervised examples of new, unknown computer viruses making supervised training difficult. On the other extreme, fully unsupervised anomaly detection, obtains a stream of data containing normal and anomalous patterns and attempts to detect the anomalous data. In this work we deal with the semi-supervised scenario. In this setting, we have a training set of normal examples (which contains no anomalies). After training the anomaly detector, we detect anomalies in the test data, containing both normal and anomalous examples. This supervision is easy to obtain in many practical settings and is less difficult than the fully-unsupervised case. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
589,
|
| 77 |
+
825,
|
| 78 |
+
728
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Many anomaly detection methods have been proposed over the last few decades. They can be broadly classified into reconstruction and statistically based methods. Recently, deep learning methods based on classification have achieved superior results. Most semi-supervised classificationbased methods attempt to solve anomaly detection directly, despite only having normal training data. One example is: Deep-SVDD (Ruff et al., 2018) - one-class classification using a learned deep space. Another type of classification-based methods is self-supervised i.e. methods that solve one or more classification-based auxiliary tasks on the normal training data, and this is shown to be useful for solving anomaly detection, the task of interest e.g. (Golan & El-Yaniv, 2018). Self-supervised classification-based methods have been proposed with the object of image anomaly detection, but we show that by generalizing the class of transformations they can apply to all data types. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
736,
|
| 88 |
+
825,
|
| 89 |
+
875
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In this paper, we introduce a novel technique, GOAD, for anomaly detection which unifies current state-of-the-art methods that use normal training data only and are based on classification. Our method first transforms the data into $M$ subspaces, and learns a feature space such that inter-class separation is larger than intra-class separation. For the learned features, the distance from the cluster center is correlated with the likelihood of anomaly. We use this criterion to determine if a new data point is normal or anomalous. We also generalize the class of transformation functions to include affine transformation which allows our method to generalize to non-image data. This is significant as tabular data is probably the most important for applications of anomaly detection. Our method is evaluated on anomaly detection on image and tabular datasets (cyber security and medical) and is shown to significantly improve over the state-of-the-art. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
176,
|
| 98 |
+
882,
|
| 99 |
+
823,
|
| 100 |
+
922
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
103,
|
| 110 |
+
823,
|
| 111 |
+
200
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "1.1 PREVIOUS WORKS ",
|
| 118 |
+
"text_level": 1,
|
| 119 |
+
"bbox": [
|
| 120 |
+
176,
|
| 121 |
+
220,
|
| 122 |
+
344,
|
| 123 |
+
234
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "Anomaly detection methods can be generally divided into the following categories: ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
176,
|
| 132 |
+
247,
|
| 133 |
+
717,
|
| 134 |
+
262
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Reconstruction Methods: Some of the most common anomaly detection methods are reconstructionbased. The general idea behind such methods is that every normal sample should be reconstructed accurately using a limited set of basis functions, whereas anomalous data should suffer from larger reconstruction costs. The choice of features, basis and loss functions differentiates between the different methods. Some of the earliest methods use: nearest neighbors (Eskin et al., 2002), low-rank PCA (Jolliffe, 2011; Candes et al., 2011) or K-means (Hartigan & Wong, 1979) as the reconstruction \\` basis. Most recently, neural networks were used (Sakurada & Yairi, 2014; Xia et al., 2015) for learning deep basis functions for reconstruction. Another set of recent methods (Schlegl et al., 2017; Deecke et al., 2018) use GANs to learn a reconstruction basis function. GANs suffer from mode-collapse and are difficult to invert, which limits the performance of such methods. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
270,
|
| 144 |
+
825,
|
| 145 |
+
409
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Distributional Methods: Another set of commonly used methods are distribution-based. The main theme in such methods is to model the distribution of normal data. The expectation is that anomalous test data will have low likelihood under the probabilistic model while normal data will have higher likelihoods. Methods differ in the features used to describe the data and the probabilistic model used to estimate the normal distribution. Some early methods used Gaussian or Gaussian mixture models. Such models will only work if the data under the selected feature space satisfies the probabilistic assumptions implicied by the model. Another set of methods used non-parametric density estimate methods such as kernel density estimate (Parzen, 1962). Recently, deep learning methods (autoencoders or variational autoencoders) were used to learn deep features which are sometimes easier to model than raw features (Yang et al., 2017). DAGMM introduced by Zong et al. (2018) learn the probabilistic model jointly with the deep features therefore shaping the features space to better conform with the probabilistic assumption. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
415,
|
| 155 |
+
825,
|
| 156 |
+
582
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Classification-Based Methods: Another paradigm for anomaly detection is separation between space regions containing normal data from all other regions. An example of such approach is One-Class SVM (Scholkopf et al., 2000), which trains a classifier to perform this separation. Learning a good feature space for performing such separation is performed both by the classic kernel methods as well as by the recent deep learning approach (Ruff et al., 2018). One of the main challenges in unsupervised (or semi-supervised) learning is providing an objective for learning features that are relevant to the task of interest. One method for learning good representations in a self-supervised way is by training a neural network to solve an auxiliary task for which obtaining data is free or at least very inexpensive. Auxiliary tasks for learning high-quality image features include: video frame prediction (Mathieu et al., 2016), image colorization (Zhang et al., 2016; Larsson et al., 2016), puzzle solving (Noroozi & Favaro, 2016) - predicting the correct order of random permuted image patches. Recently, Gidaris et al. (2018) used a set of image processing transformations (rotation by 0, 90, 180, 270 degrees around the image axis, and predicted the true image orientation has been used to learn high-quality image features. Golan & El-Yaniv (2018), have used similar image-processing task prediction for detecting anomalies in images. This method has shown good performance on detecting images from anomalous classes. In this work, we overcome some of the limitations of previous classification-based methods and extend their applicability of self-supervised methods to general data types. We also show that our method is more robust to adversarial attacks. ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
588,
|
| 166 |
+
825,
|
| 167 |
+
838
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "2 CLASSIFICATION-BASED ANOMALY DETECTION ",
|
| 174 |
+
"text_level": 1,
|
| 175 |
+
"bbox": [
|
| 176 |
+
174,
|
| 177 |
+
862,
|
| 178 |
+
607,
|
| 179 |
+
877
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "text",
|
| 185 |
+
"text": "Classification-based methods have dominated supervised anomaly detection. In this section we will analyse semi-supervised classification-based methods: ",
|
| 186 |
+
"bbox": [
|
| 187 |
+
174,
|
| 188 |
+
895,
|
| 189 |
+
821,
|
| 190 |
+
922
|
| 191 |
+
],
|
| 192 |
+
"page_idx": 1
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"type": "text",
|
| 196 |
+
"text": "Let us assume all data lies in space $R ^ { L }$ (where $L$ is the data dimension). Normal data lie in subspace $X \\subset R ^ { L }$ . We assume that all anomalies lie outside $X$ . To detect anomalies, we would therefore like to build a classifier $C$ , such that $C ( x ) = 1$ if $x \\in X$ and $C ( x ) = 0$ if $x \\in R ^ { L } \\backslash X$ . ",
|
| 197 |
+
"bbox": [
|
| 198 |
+
173,
|
| 199 |
+
102,
|
| 200 |
+
825,
|
| 201 |
+
146
|
| 202 |
+
],
|
| 203 |
+
"page_idx": 2
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"type": "text",
|
| 207 |
+
"text": "One-class classification methods attempt to learn $C$ directly as $P ( x \\in X )$ . Classical approaches have learned a classifier either in input space or in a kernel space. Recently, Deep-SVDD (Ruff et al., 2018) learned end-to-end to i) transform the data to an isotropic feature space $f ( x )$ ii) fit the minimal hypersphere of radius $R$ and center $c _ { 0 }$ around the features of the normal training data. Test data is classified as anomalous if the following normality score is positive: $\\| f ( x ) - \\bar { c } _ { 0 } \\| ^ { 2 } - R ^ { 2 }$ . Learning an effective feature space is not a simple task, as the trivial solution of $f ( x ) = 0 \\ \\forall \\ x$ results in the smallest hypersphere, various tricks are used to avoid this possibility. ",
|
| 208 |
+
"bbox": [
|
| 209 |
+
173,
|
| 210 |
+
152,
|
| 211 |
+
825,
|
| 212 |
+
251
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 2
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "text",
|
| 218 |
+
"text": "Geometric-transformation classification (GEOM), proposed by Golan & El-Yaniv (2018) first transforms the normal data subspace $X$ into $M$ subspaces $X _ { 1 } . . X _ { M }$ . This is done by transforming each image $x \\in X$ using $M$ different geometric transformations (rotation, reflection, translation) into $T ( x , 1 ) . . T ( x , M )$ . Although these transformations are image specific, we will later extend the class of transformations to all affine transformations making this applicable to non-image data. They set an auxiliary task of learning a classifier able to predict the transformation label $m$ given transformed data point $T ( x , m )$ . As the training set consists of normal data only, each sample is $x \\in X$ and the transformed sample is in $\\cup _ { m } X _ { m }$ . The method attempts to estimate the following conditional probability: ",
|
| 219 |
+
"bbox": [
|
| 220 |
+
173,
|
| 221 |
+
256,
|
| 222 |
+
825,
|
| 223 |
+
383
|
| 224 |
+
],
|
| 225 |
+
"page_idx": 2
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"type": "equation",
|
| 229 |
+
"img_path": "images/286c6f55f99230dffc4733d11f8863022138f78d63874d857464bd9d28aba2e0.jpg",
|
| 230 |
+
"text": "$$\nP ( m ^ { \\prime } | T ( x , m ) ) = \\frac { P ( T ( x , m ) \\in X _ { m ^ { \\prime } } ) P ( m ^ { \\prime } ) } { \\sum _ { \\tilde { m } } P ( T ( x , m ) \\in X _ { \\tilde { m } } ) P ( \\tilde { m } ) } = \\frac { P ( T ( x , m ) \\in X _ { m ^ { \\prime } } ) } { \\sum _ { \\tilde { m } } P ( T ( x , m ) \\in X _ { \\tilde { m } } ) }\n$$",
|
| 231 |
+
"text_format": "latex",
|
| 232 |
+
"bbox": [
|
| 233 |
+
240,
|
| 234 |
+
398,
|
| 235 |
+
758,
|
| 236 |
+
434
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 2
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "text",
|
| 242 |
+
"text": "Where the second equality follows by design of the training set, and where every training sample is transformed exactly once by each transformation leading to equal priors. ",
|
| 243 |
+
"bbox": [
|
| 244 |
+
173,
|
| 245 |
+
440,
|
| 246 |
+
823,
|
| 247 |
+
468
|
| 248 |
+
],
|
| 249 |
+
"page_idx": 2
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"type": "text",
|
| 253 |
+
"text": "For anomalous data $x \\in R ^ { L } \\backslash X$ , by construction of the subspace, if the transformations $T$ are oneto-one, it follows that the transformed sample does not fall in the appropriate subspace: $T ( x , m ) \\in$ $R _ { \\mathrm { ~ - ~ } } ^ { L } \\backslash X _ { m }$ . GEOM uses $P ( m | T ( x , m ) )$ as a score for determining if $x$ is anomalous i.e. that $x \\in$ $R ^ { L } \\backslash X$ . GEOM gives samples with low probabilities $P ( m | T ( x , m ) )$ high anomaly scores. ",
|
| 254 |
+
"bbox": [
|
| 255 |
+
173,
|
| 256 |
+
474,
|
| 257 |
+
823,
|
| 258 |
+
531
|
| 259 |
+
],
|
| 260 |
+
"page_idx": 2
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"type": "text",
|
| 264 |
+
"text": "A significant issue with this methodology, is that the learned classifier $P ( m ^ { \\prime } | T ( x , m ) )$ is only valid for samples $x \\in X$ which were found in the training set. For $x \\in R ^ { L } \\backslash \\mathrm { X }$ we should in fact have $P ( T ( x , m ) \\in X _ { m ^ { \\prime } } ) = 0$ for all $m = 1 . . M$ (as the transformed $x$ is not in any of the subsets). This makes the anomaly score $P ( m ^ { \\prime } | T ( x , m ) )$ have very high variance for anomalies. ",
|
| 265 |
+
"bbox": [
|
| 266 |
+
174,
|
| 267 |
+
537,
|
| 268 |
+
825,
|
| 269 |
+
594
|
| 270 |
+
],
|
| 271 |
+
"page_idx": 2
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"type": "text",
|
| 275 |
+
"text": "One way to overcome this issue is by using examples of anomalies $x _ { a }$ and training $P ( m | T ( x , m ) ) =$ $\\frac { 1 } { M }$ on anomalous data. This corresponds to the supervised scenario and was recently introduced as Outlier Exposure (Hendrycks et al., 2018). Although getting such supervision is possible for some image tasks (where large external datasets can be used) this is not possible in the general case e.g. for tabular data which exhibits much more variation between datasets. ",
|
| 276 |
+
"bbox": [
|
| 277 |
+
173,
|
| 278 |
+
601,
|
| 279 |
+
825,
|
| 280 |
+
671
|
| 281 |
+
],
|
| 282 |
+
"page_idx": 2
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"type": "text",
|
| 286 |
+
"text": "3 DISTANCE-BASED MULTIPLE TRANSFORMATION CLASSIFICATION ",
|
| 287 |
+
"text_level": 1,
|
| 288 |
+
"bbox": [
|
| 289 |
+
173,
|
| 290 |
+
689,
|
| 291 |
+
758,
|
| 292 |
+
707
|
| 293 |
+
],
|
| 294 |
+
"page_idx": 2
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"type": "text",
|
| 298 |
+
"text": "We propose a novel method to overcome the generalization issues highlighted in the previous section by using ideas from open-set classification (Bendale & Boult, 2016). Our approach unifies one-class and transformation-based classification methods. Similarly to GEOM, we transform $X$ to $X _ { 1 } . . X _ { M }$ . We learn a feature extractor $f ( x )$ using a neural network, which maps the original input data into a feature representation. Similarly to deep OC methods, we model each subspace $X _ { m }$ mapped to the feature space $\\{ f ( x ) | x \\in X _ { m } \\}$ as a sphere with center $c _ { m }$ . The probability of data point $x$ after transformation $m$ is parameterized by $\\begin{array} { r } { P ( T ( x , m ) \\in X _ { m } ^ { \\prime } ) = \\frac { 1 } { Z } e ^ { - ( f ( T ( x , m ) ) - c _ { m } ^ { \\prime } ) ^ { 2 } } } \\end{array}$ . The classifier predicting transformation $m$ given a transformed point is therefore: ",
|
| 299 |
+
"bbox": [
|
| 300 |
+
173,
|
| 301 |
+
719,
|
| 302 |
+
825,
|
| 303 |
+
835
|
| 304 |
+
],
|
| 305 |
+
"page_idx": 2
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"type": "equation",
|
| 309 |
+
"img_path": "images/f61c1996acec1b8340b8185753968397f080159728d5d11e2923963eb1335260.jpg",
|
| 310 |
+
"text": "$$\nP ( m ^ { \\prime } | T ( x , m ) ) = \\frac { e ^ { - \\| f ( T ( x , m ) ) - c _ { m ^ { \\prime } } \\| ^ { 2 } } } { \\sum _ { \\tilde { m } } e ^ { - \\| f ( T ( x , m ) ) - c _ { \\tilde { m } } \\| ^ { 2 } } }\n$$",
|
| 311 |
+
"text_format": "latex",
|
| 312 |
+
"bbox": [
|
| 313 |
+
352,
|
| 314 |
+
852,
|
| 315 |
+
643,
|
| 316 |
+
890
|
| 317 |
+
],
|
| 318 |
+
"page_idx": 2
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "text",
|
| 322 |
+
"text": "The centers $c _ { m }$ are given by the average feature over the training set for every transformation i.e. $\\begin{array} { r } { c _ { m } = \\frac { 1 } { N } \\sum _ { x \\in X } f ( \\hat { T ( x , m ) } ) } \\end{array}$ . One option is to directly learn $f$ by optimizing cross-entropy between ",
|
| 323 |
+
"bbox": [
|
| 324 |
+
171,
|
| 325 |
+
895,
|
| 326 |
+
823,
|
| 327 |
+
925
|
| 328 |
+
],
|
| 329 |
+
"page_idx": 2
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"type": "text",
|
| 333 |
+
"text": "$P ( m ^ { \\prime } | T ( x , m ) )$ and the correct label on the normal training set. In practice we obtained better results by training $f$ using the center triplet loss (He et al., 2018), which learns supervised clusters with low intra-class variation, and high-inter-class variation by optimizing the following loss function (where $s$ is a margin regularizing the distance between clusters): ",
|
| 334 |
+
"bbox": [
|
| 335 |
+
174,
|
| 336 |
+
103,
|
| 337 |
+
825,
|
| 338 |
+
160
|
| 339 |
+
],
|
| 340 |
+
"page_idx": 3
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"type": "equation",
|
| 344 |
+
"img_path": "images/8c29c40ae8fa25dc4ce37b7e6ed5c6197721ba279e7825f04465c3208bf34820.jpg",
|
| 345 |
+
"text": "$$\nL = \\sum _ { i } \\operatorname* { m a x } ( \\| f ( T ( x _ { i } , m ) ) - c _ { m } \\| ^ { 2 } + s - m i n _ { m ^ { \\prime } \\neq m } \\| f ( T ( x _ { i } , m ) ) - c _ { m ^ { \\prime } } \\| ^ { 2 } , 0 )\n$$",
|
| 346 |
+
"text_format": "latex",
|
| 347 |
+
"bbox": [
|
| 348 |
+
232,
|
| 349 |
+
175,
|
| 350 |
+
764,
|
| 351 |
+
209
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 3
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "text",
|
| 357 |
+
"text": "Having learned a feature space in which the different transformation subspaces are well separated, we use the probability in Eq. 2 as a normality score. However, for data far away from the normal distributions, the distances from the means will be large. A small difference in distance will make the classifier unreasonably certain of a particular transformation. To add a general prior for uncertainty far from the training set, we add a small regularizing constant $\\epsilon$ to the probability of each transformation. This ensures equal probabilities for uncertain regions: ",
|
| 358 |
+
"bbox": [
|
| 359 |
+
173,
|
| 360 |
+
218,
|
| 361 |
+
825,
|
| 362 |
+
304
|
| 363 |
+
],
|
| 364 |
+
"page_idx": 3
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"type": "equation",
|
| 368 |
+
"img_path": "images/d4007e81b04063f06342e2082f1542c16dde2b90c8d873947805faebad470bf8.jpg",
|
| 369 |
+
"text": "$$\n\\tilde { P } ( m ^ { \\prime } | T ( x , m ) ) = \\frac { e ^ { - \\| f ( T ( x , m ) ) - c _ { m ^ { \\prime } } \\| ^ { 2 } } + \\epsilon } { \\sum _ { \\tilde { m } } e ^ { - \\| f ( T ( x , m ) ) - c _ { \\tilde { m } } \\| ^ { 2 } } + M \\cdot \\epsilon }\n$$",
|
| 370 |
+
"text_format": "latex",
|
| 371 |
+
"bbox": [
|
| 372 |
+
325,
|
| 373 |
+
320,
|
| 374 |
+
673,
|
| 375 |
+
358
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 3
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "text",
|
| 381 |
+
"text": "At test time we transform each sample by the $M$ transformations. By assuming independence between transformations, the probability that $x$ is normal (i.e. $x \\in X$ ) is the product of the probabilities that all transformed samples are in their respective subspace. For log-probabilities the total score is given by: ",
|
| 382 |
+
"bbox": [
|
| 383 |
+
174,
|
| 384 |
+
367,
|
| 385 |
+
825,
|
| 386 |
+
424
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 3
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "equation",
|
| 392 |
+
"img_path": "images/ca10bd4b0eb0fecd44b7c77fae07b3ad4f54ab7ffbb70bea861d462f16b75aaf.jpg",
|
| 393 |
+
"text": "$$\nS c o r e ( x ) = - \\log P ( x \\in X ) = - \\sum _ { m } \\log \\tilde { P } ( T ( x , m ) \\in X _ { m } ) = - \\sum _ { m } \\log \\tilde { P } ( m | T ( x , m ) )\n$$",
|
| 394 |
+
"text_format": "latex",
|
| 395 |
+
"bbox": [
|
| 396 |
+
189,
|
| 397 |
+
448,
|
| 398 |
+
787,
|
| 399 |
+
482
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "text",
|
| 405 |
+
"text": "The score computes the degree of anomaly of each sample. Higher scores indicate a more anomalous sample. ",
|
| 406 |
+
"bbox": [
|
| 407 |
+
176,
|
| 408 |
+
494,
|
| 409 |
+
825,
|
| 410 |
+
523
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 3
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "table",
|
| 416 |
+
"img_path": "images/82d9844f0da008c7dbb53d376c795ea7d6a3ddc8a491de2867b7fd0d3909e33d.jpg",
|
| 417 |
+
"table_caption": [],
|
| 418 |
+
"table_footnote": [],
|
| 419 |
+
"table_body": "<table><tr><td>Algorithm 1 GOAD: Training Algorithm</td></tr><tr><td>Input: Normal training data x1,x2...X N</td></tr><tr><td>Transformations T(,1),T(,2)..T(, M)</td></tr><tr><td>Output: Feature extractor f, centers C1, C2...CM T(xi,1),T(xi,2)..T(xi,M) ← xi</td></tr><tr><td>// Transform each sample by all transformations 1 to M Find f,c1, C2...CM that optimize the triplet loss in Eq. 3</td></tr></table>",
|
| 420 |
+
"bbox": [
|
| 421 |
+
163,
|
| 422 |
+
540,
|
| 423 |
+
816,
|
| 424 |
+
643
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 3
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "text",
|
| 430 |
+
"text": "Algorithm 2 GOAD: Evaluation Algorithm ",
|
| 431 |
+
"text_level": 1,
|
| 432 |
+
"bbox": [
|
| 433 |
+
176,
|
| 434 |
+
676,
|
| 435 |
+
460,
|
| 436 |
+
691
|
| 437 |
+
],
|
| 438 |
+
"page_idx": 3
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"type": "text",
|
| 442 |
+
"text": "Input: Test sample: $x$ , feature extractor: $f$ , centers: c1, c2...cM , transformations: $T ( \\ u , \\ d ^ { 1 } ) , T ( \\ u , \\ d ^ { 2 } ) . . . T ( \\ u , \\ d M )$ \nOutput: Score(x) \n$T ( x , 1 ) , T ( x , 2 ) . . . T ( x , M ) \\gets x$ \n// Transform test sample by all transformations 1 to M \n$P ( m | T ( x , m ) ) f ( T ( x , m ) ) , c _ { 1 } , c _ { 2 } . . . c _ { M }$ // Likelihood of predicting the correct transformation (Eq. 4) \n$S c o r e ( x ) \\gets P ( 1 | T ( x , 1 ) ) , P ( 2 | T ( x , 2 ) ) . . . P ( M | T ( x , M ) )$ // Aggregate probabilities to compute anomaly score (Eq. 5) ",
|
| 443 |
+
"bbox": [
|
| 444 |
+
178,
|
| 445 |
+
693,
|
| 446 |
+
821,
|
| 447 |
+
820
|
| 448 |
+
],
|
| 449 |
+
"page_idx": 3
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"type": "text",
|
| 453 |
+
"text": "4 PARAMETERIZING THE SET OF TRANSFORMATIONS ",
|
| 454 |
+
"text_level": 1,
|
| 455 |
+
"bbox": [
|
| 456 |
+
174,
|
| 457 |
+
849,
|
| 458 |
+
633,
|
| 459 |
+
867
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 3
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "text",
|
| 465 |
+
"text": "Geometric transformations have been used previously for unsupervised feature learning by Gidaris et al. (2018) as well as by GEOM (Golan & El-Yaniv, 2018) for classification-based anomaly detection. This set of transformations is hand-crafted to work well with convolutional neural networks (CNNs) which greatly benefit from preserving neighborhood between pixels. This is however not a requirement for fully-connected networks. ",
|
| 466 |
+
"bbox": [
|
| 467 |
+
174,
|
| 468 |
+
881,
|
| 469 |
+
825,
|
| 470 |
+
924
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 3
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "text",
|
| 476 |
+
"text": "",
|
| 477 |
+
"bbox": [
|
| 478 |
+
173,
|
| 479 |
+
103,
|
| 480 |
+
823,
|
| 481 |
+
132
|
| 482 |
+
],
|
| 483 |
+
"page_idx": 4
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"type": "text",
|
| 487 |
+
"text": "Anomaly detection often deals with non-image datasets e.g. tabular data. Tabular data is very commonly used on the internet e.g. for cyber security or online advertising. Such data consists of both discrete and continuous attributes with no particular neighborhoods or order. The data is onedimensional and rotations do not naturally generalize to it. To allow transformation-based methods to work on general data types, we therefore need to extend the class of transformations. ",
|
| 488 |
+
"bbox": [
|
| 489 |
+
174,
|
| 490 |
+
138,
|
| 491 |
+
823,
|
| 492 |
+
208
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 4
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "text",
|
| 498 |
+
"text": "We propose to generalize the set of transformations to the class of affine transformations (where we have a total of $M$ transformations): ",
|
| 499 |
+
"bbox": [
|
| 500 |
+
173,
|
| 501 |
+
215,
|
| 502 |
+
823,
|
| 503 |
+
244
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 4
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "equation",
|
| 509 |
+
"img_path": "images/869b7e7febd53b2dabaffd12d60090edd7ce06db27c4999c09e1c942311d8dff.jpg",
|
| 510 |
+
"text": "$$\nT ( x , m ) = W _ { m } x + b _ { m }\n$$",
|
| 511 |
+
"text_format": "latex",
|
| 512 |
+
"bbox": [
|
| 513 |
+
419,
|
| 514 |
+
268,
|
| 515 |
+
576,
|
| 516 |
+
285
|
| 517 |
+
],
|
| 518 |
+
"page_idx": 4
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"type": "text",
|
| 522 |
+
"text": "It is easy to verify that all geometric transformations in Golan & El-Yaniv (2018) (rotation by a multiple of 90 degrees, flips and translations) are a special case of this class ( $x$ in this case is the set of image pixels written as a vector). The affine class is however much more general than mere permutations, and allows for dimensionality reduction, non-distance preservation and random transformation by sampling $W$ , $b$ from a random distribution. ",
|
| 523 |
+
"bbox": [
|
| 524 |
+
174,
|
| 525 |
+
300,
|
| 526 |
+
823,
|
| 527 |
+
371
|
| 528 |
+
],
|
| 529 |
+
"page_idx": 4
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"type": "text",
|
| 533 |
+
"text": "Apart from reduced variance across different dataset types where no apriori knowledge on the correct transformation classes exists, random transformations are important for avoiding adversarial examples. Assume an adversary wishes to change the label of a particular sample from anomalous to normal or vice versa. This is the same as requiring that $\\tilde { P } ( m ^ { \\prime } | T ( x , m ) )$ has low or high probability for $m ^ { \\prime } = m$ . If $T$ is chosen deterministically, the adversary may create adversarial examples against the known class of transformations (even if the exact network parameters are unknown). Conversely, if $T$ is unknown, the adversary must create adversarial examples that generalize across different transformations, which reduces the effectiveness of the attack. ",
|
| 534 |
+
"bbox": [
|
| 535 |
+
174,
|
| 536 |
+
377,
|
| 537 |
+
825,
|
| 538 |
+
491
|
| 539 |
+
],
|
| 540 |
+
"page_idx": 4
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"type": "text",
|
| 544 |
+
"text": "To summarize, generalizing the set of transformations to the affine class allows us to: generalize to non-image data, use an unlimited number of transformations and choose transformations randomly which reduces variance and defends against adversarial examples. ",
|
| 545 |
+
"bbox": [
|
| 546 |
+
174,
|
| 547 |
+
497,
|
| 548 |
+
825,
|
| 549 |
+
540
|
| 550 |
+
],
|
| 551 |
+
"page_idx": 4
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"type": "text",
|
| 555 |
+
"text": "5 EXPERIMENTS ",
|
| 556 |
+
"text_level": 1,
|
| 557 |
+
"bbox": [
|
| 558 |
+
176,
|
| 559 |
+
564,
|
| 560 |
+
326,
|
| 561 |
+
579
|
| 562 |
+
],
|
| 563 |
+
"page_idx": 4
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"type": "text",
|
| 567 |
+
"text": "We perform experiments to validate the effectiveness of our distance-based approach and the performance of the general class of transformations we introduced for non-image data. ",
|
| 568 |
+
"bbox": [
|
| 569 |
+
174,
|
| 570 |
+
598,
|
| 571 |
+
823,
|
| 572 |
+
626
|
| 573 |
+
],
|
| 574 |
+
"page_idx": 4
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"type": "text",
|
| 578 |
+
"text": "5.1 IMAGE EXPERIMENTS ",
|
| 579 |
+
"text_level": 1,
|
| 580 |
+
"bbox": [
|
| 581 |
+
176,
|
| 582 |
+
646,
|
| 583 |
+
366,
|
| 584 |
+
661
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 4
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "text",
|
| 590 |
+
"text": "Cifar10: To evaluate the performance of our method, we perform experiments on the Cifar10 dataset. We use the same architecture and parameter choices of Golan & El-Yaniv (2018), with our distance-based approach. We use the standard protocol of training on all training images of a single digit and testing on all test images. Results are reported in terms of AUC. In our method, we used a margin of $s = 0 . 1$ (we also run GOAD with $s = 1$ , shown in the appendix). Similarly to He et al. (2018), to stabilize training, we added a softmax $^ +$ cross entropy loss, as well as $L _ { 2 }$ norm regularization for the extracted features $f ( x )$ . We compare our method with the deep oneclass method of Ruff et al. (2018) as well as Golan & El-Yaniv (2018) without and with Dirichlet weighting. We believe the correct comparison is without Dirichlet post-processing, as we also do not use it in our method. Our distance based approach outperforms the SOTA approach by Golan & El-Yaniv (2018), both with and without Dirichlet (which seems to improve performance on a few classes). This gives evidence for the importance of considering the generalization behavior outside the normal region used in training. Note that we used the same geometric transformations as Golan & El-Yaniv (2018). Random affine matrices did not perform competitively as they are not pixel order preserving, this information is effectively used by CNNs and removing this information hurts performance. This is a special property of CNN architectures and image/time series data. As a rule of thumb, fully-connected networks are not pixel order preserving and can fully utilize random affine matrices. ",
|
| 591 |
+
"bbox": [
|
| 592 |
+
173,
|
| 593 |
+
674,
|
| 594 |
+
825,
|
| 595 |
+
924
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 4
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "table",
|
| 601 |
+
"img_path": "images/285a962f5deb61c1ad0aacae6b75a25c2be448196fc6415f90434277b74afb63.jpg",
|
| 602 |
+
"table_caption": [
|
| 603 |
+
"Table 1: Anomaly Detection Accuracy on Cifar10 (ROC-AUC %) "
|
| 604 |
+
],
|
| 605 |
+
"table_footnote": [],
|
| 606 |
+
"table_body": "<table><tr><td rowspan=\"2\">Class</td><td colspan=\"4\">Method</td></tr><tr><td>Deep-SVDD</td><td>GEOM (no Dirichlet)</td><td>GEOM (w. Dirichlet)</td><td>Ours</td></tr><tr><td>0</td><td>61.7 ± 1.3</td><td>76.0 ± 0.8</td><td>74.7 ± 0.4</td><td>77.2 ± 0.6</td></tr><tr><td>1</td><td>65.9 ± 0.7</td><td>83.0 ± 1.6</td><td>95.7 ± 0.0</td><td>96.7 ± 0.2</td></tr><tr><td>2</td><td>50.8 ± 0.3</td><td>79.5 ± 0.7</td><td>78.1 ± 0.4</td><td>83.3 ± 1.4</td></tr><tr><td>3</td><td>59.1 ± 0.4</td><td>71.4 ± 0.9</td><td>72.4 ± 0.5</td><td>77.7 ± 0.7</td></tr><tr><td>4</td><td>60.9 ± 0.3</td><td>83.5 ± 1.0</td><td>87.8 ± 0.2</td><td>87.8 ± 0.7</td></tr><tr><td>5</td><td>65.7 ± 0.8</td><td>84.0 ± 0.3</td><td>87.8 ± 0.1</td><td>87.8 ± 0.6</td></tr><tr><td>6</td><td>67.7 ± 0.8</td><td>78.4 ± 0.7</td><td>83.4 ± 0.5</td><td>90.0 ± 0.6</td></tr><tr><td>7</td><td>67.3 ± 0.3</td><td>89.3 ± 0.5</td><td>95.5 ± 0.1</td><td>96.1 ± 0.3</td></tr><tr><td>8</td><td>75.9 ± 0.4</td><td>88.6 ± 0.6</td><td>93.3 ± 0.0</td><td>93.8 ± 0.9</td></tr><tr><td>9</td><td>73.1 ± 0.4</td><td>82.4 ± 0.7</td><td>91.3 ± 0.1</td><td>92.0 ± 0.6</td></tr><tr><td>Average</td><td>64.8</td><td>81.6</td><td>86.0</td><td>88.2</td></tr></table>",
|
| 607 |
+
"bbox": [
|
| 608 |
+
204,
|
| 609 |
+
126,
|
| 610 |
+
794,
|
| 611 |
+
329
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 5
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "table",
|
| 617 |
+
"img_path": "images/a04fddc1d8f59b6be0eb80f0f5b0195bfa67ccdb36da46fd134fd39d173cd99f.jpg",
|
| 618 |
+
"table_caption": [
|
| 619 |
+
"Table 2: Anomaly Detection Accuracy on FashionMNIST (ROC-AUC %) "
|
| 620 |
+
],
|
| 621 |
+
"table_footnote": [],
|
| 622 |
+
"table_body": "<table><tr><td rowspan=\"2\">Class</td><td colspan=\"4\">Method</td></tr><tr><td>Deep-SVDD</td><td>GEOM (no Dirichlet)</td><td>GEOM (w. Dirichlet)</td><td>Ours</td></tr><tr><td>0</td><td>98.2</td><td>77.8 ± 5.9</td><td>99.4 ± 0.0</td><td>94.1 ± 0.9</td></tr><tr><td>1</td><td>90.3</td><td>79.1 ± 16.3</td><td>97.6 ± 0.1</td><td>98.5 ± 0.3</td></tr><tr><td>2</td><td>90.7</td><td>80.8 ± 6.9</td><td>91.1 ± 0.2</td><td>90.8 ± 0.4</td></tr><tr><td>3</td><td>94.2</td><td>79.2 ± 9.1</td><td>89.9 ± 0.4</td><td>91.6 ± 0.9</td></tr><tr><td>4</td><td>89.4</td><td>77.8 ± 3.3</td><td>92.1 ± 0.0</td><td>91.4 ± 0.3</td></tr><tr><td>5</td><td>91.8</td><td>58.0 ± 29.4</td><td>93.4 ± 0.9</td><td>94.8 ± 0.5</td></tr><tr><td>6</td><td>83.4</td><td>73.6 ± 8.7</td><td>83.3 ± 0.1</td><td>83.4 ± 0.4</td></tr><tr><td>7</td><td>98.8</td><td>87.4 ± 11.4</td><td>98.9 ± 0.1</td><td>97.9 ± 0.4</td></tr><tr><td>8</td><td>91.9</td><td>84.6 ± 5.6</td><td>90.8 ± 0.1</td><td>98.9 ± 0.1</td></tr><tr><td>9</td><td>99.0</td><td>99.5 ± 0.0</td><td>99.2 ± 0.0</td><td>99.2 ± 0.3</td></tr><tr><td>Average</td><td>92.8</td><td>79.8</td><td>93.5</td><td>94.1</td></tr></table>",
|
| 623 |
+
"bbox": [
|
| 624 |
+
202,
|
| 625 |
+
376,
|
| 626 |
+
795,
|
| 627 |
+
579
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 5
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "text",
|
| 633 |
+
"text": "FasionMNIST: In Tab. 2, we present a comparison between our method (GOAD) and the strongest baseline methods (Deep SVDD and GEOM) on the FashionMNIST dataset. We used exactly the same setting as Golan & El-Yaniv (2018). GOAD was run with $s \\ = \\ 1$ . OCSVM and GEOM with Dirichlet were copied from their paper. We run their method without Dirichlet and presented it in the table (we verified the implementation by running their code with Dirichlet and replicated the numbers in the paper). It appears that GEOM is quite dependent on Dirichlet for this dataset, whereas we do not use it at all. GOAD outperforms all the baseline methods. ",
|
| 634 |
+
"bbox": [
|
| 635 |
+
173,
|
| 636 |
+
611,
|
| 637 |
+
825,
|
| 638 |
+
708
|
| 639 |
+
],
|
| 640 |
+
"page_idx": 5
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"type": "text",
|
| 644 |
+
"text": "Adversarial Robustness: Let us assume an attack model where the attacker knows the architecture and the normal training data and is trying to minimally modify anomalies to look normal. We examine the merits of two settings i) the adversary knows the transformations used (non-random) ii) the adversary uses another set of transformations. To measure the benefit of the randomized transformations, we train three networks A, B, C. Networks A and B use exactly the same transformations but random parameter initialization prior to training. Network C is trained using other randomly selected transformations. The adversary creates adversarial examples using PGD (Madry et al., 2017) based on network A (making anomalies appear like normal data). On Cifar10, we randomly selected 8 transformations from the full set of 72 for $A$ and $B$ , another randomly selected 8 transformations are used for $C$ . We measure the increase of false classification rate on the adversarial examples using the three networks. The average increase in performance of classifying transformation correctly on anomalies (causing lower anomaly scores) on the original network $A$ was $1 2 . 8 \\%$ , the transfer performance for B causes an increase by $5 . 0 \\%$ on network $B$ which shared the same set of transformation, and $3 \\%$ on network $C$ that used other rotations. This shows the benefits of using random transformations. ",
|
| 645 |
+
"bbox": [
|
| 646 |
+
173,
|
| 647 |
+
715,
|
| 648 |
+
825,
|
| 649 |
+
922
|
| 650 |
+
],
|
| 651 |
+
"page_idx": 5
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"type": "table",
|
| 655 |
+
"img_path": "images/2a33ee3cf1a1e66de2b0a395f3586c029351c39701f4c13d271141c8dd2e4086.jpg",
|
| 656 |
+
"table_caption": [
|
| 657 |
+
"Table 3: Anomaly Detection Accuracy $( \\% )$ "
|
| 658 |
+
],
|
| 659 |
+
"table_footnote": [],
|
| 660 |
+
"table_body": "<table><tr><td>Method</td><td colspan=\"7\">Dataset</td></tr><tr><td></td><td colspan=\"2\">Arrhythmia</td><td colspan=\"2\">Thyroid</td><td colspan=\"2\">KDD</td><td colspan=\"2\">KDDRev</td></tr><tr><td></td><td>F1 Score</td><td>0</td><td>F1 Score</td><td>0</td><td>F1 Score</td><td>0</td><td>F1 Score</td><td>0</td></tr><tr><td>OC-SVM</td><td>45.8</td><td></td><td>38.9</td><td></td><td>79.5</td><td></td><td>83.2</td><td></td></tr><tr><td>E2E-AE</td><td>45.9</td><td></td><td>11.8</td><td></td><td>0.3</td><td></td><td>74.5</td><td></td></tr><tr><td>LOF</td><td>50.0</td><td>0.0</td><td>52.7</td><td>0.0</td><td>83.8</td><td>5.2</td><td>81.6</td><td>3.6</td></tr><tr><td>DAGMM</td><td>49.8</td><td></td><td>47.8</td><td></td><td>93.7</td><td></td><td>93.8</td><td></td></tr><tr><td>FB-AE</td><td>51.5</td><td>1.6</td><td>75.0</td><td>0.8</td><td>92.7</td><td>0.3</td><td>95.9</td><td>0.4</td></tr><tr><td>GOAD(Ours)</td><td>52.0</td><td>2.3</td><td>74.5</td><td>1.1</td><td>98.4</td><td>0.2</td><td>98.9</td><td>0.3</td></tr></table>",
|
| 661 |
+
"bbox": [
|
| 662 |
+
207,
|
| 663 |
+
127,
|
| 664 |
+
792,
|
| 665 |
+
287
|
| 666 |
+
],
|
| 667 |
+
"page_idx": 6
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"type": "text",
|
| 671 |
+
"text": "5.2 TABULAR DATA EXPERIMENTS ",
|
| 672 |
+
"text_level": 1,
|
| 673 |
+
"bbox": [
|
| 674 |
+
176,
|
| 675 |
+
318,
|
| 676 |
+
429,
|
| 677 |
+
332
|
| 678 |
+
],
|
| 679 |
+
"page_idx": 6
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"type": "text",
|
| 683 |
+
"text": "Datasets: We evaluate on small-scale medical datasets Arrhythmia, Thyroid as well as large-scale cyber intrusion detection datasets KDD and KDDRev. Our configuration follows that of Zong et al. (2018). Categorical attributes are encoded as one-hot vectors. For completeness the datasets are described in the appendix A.2. We train all compared methods on $5 0 \\%$ of the normal data. The methods are evaluated on $5 0 \\%$ of the normal data as well as all the anomalies. ",
|
| 684 |
+
"bbox": [
|
| 685 |
+
174,
|
| 686 |
+
345,
|
| 687 |
+
825,
|
| 688 |
+
415
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 6
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "text",
|
| 694 |
+
"text": "Baseline methods: The baseline methods evaluated are: One-Class SVM (OC-SVM, Scholkopf et al. (2000)), End-to-End Autoencoder (E2E-AE), Local Outlier Factor (LOF, Breunig et al. (2000)). We also evaluated deep distributional method DAGMM (Zong et al., 2018), choosing their strongest variant. To compare against ensemble methods e.g. Chen et al. (2017), we implemented the Feature Bagging Autoencoder (FB-AE) with autoencoders as the base classifier, feature bagging as the source of randomization, and average reconstruction error as the anomaly score. OC-SVM, E2E-AE and DAGMM results are directly taken from those reported by Zong et al. (2018). LOF and FB-AE were computed by us. ",
|
| 695 |
+
"bbox": [
|
| 696 |
+
174,
|
| 697 |
+
421,
|
| 698 |
+
825,
|
| 699 |
+
534
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 6
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "Implementation of $G O A D$ : We randomly sampled transformation matrices using the normal distribution for each element. Each matrix has dimensionality $L \\times r$ , where $L$ is the data dimension and $r$ is a reduced dimension. For Arryhthmia and Thyroid we used $r = 3 2$ , for KDD and KDDrev we used $r = 1 2 8$ and $r = 6 4$ respectively, the latter due to high memory requirements. We used 256 tasks for all datasets apart from KDD (64) due to high memory requirements. We set the bias term to 0. For $C$ we used fully-connected hidden layers and leaky-ReLU activations (8 hidden nodes for the small datasets, 128 and 32 for KDDRev and KDD). We optimized using ADAM with a learning rate of 0.001. Similarly to He et al. (2018), to stabilize the triplet center loss training, we added a softmax $^ +$ cross entropy loss. We repeated the large-scale experiments 5 times, and the small scale GOAD experiments 500 times (due to the high variance). We report the mean and standard deviation $( \\sigma )$ . Following the protocol in Zong et al. (2018), the decision threshold value is chosen to result in the correct number of anomalies e.g. if the test set contains $N _ { a }$ anomalies, the threshold is selected so that the highest $N _ { a }$ scoring examples are classified as anomalies. True positives and negatives are evaluated in the usual way. Some experiments copied from other papers did not measure standard variation and we kept the relevant cell blank. ",
|
| 706 |
+
"bbox": [
|
| 707 |
+
173,
|
| 708 |
+
541,
|
| 709 |
+
825,
|
| 710 |
+
748
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 6
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "text",
|
| 716 |
+
"text": "Results ",
|
| 717 |
+
"text_level": 1,
|
| 718 |
+
"bbox": [
|
| 719 |
+
174,
|
| 720 |
+
756,
|
| 721 |
+
227,
|
| 722 |
+
770
|
| 723 |
+
],
|
| 724 |
+
"page_idx": 6
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "text",
|
| 728 |
+
"text": "Arrhythmia: The Arrhythmia dataset was the smallest examined. A quantitative comparison on this dataset can be seen in Tab. 3. OC-SVM and DAGMM performed reasonably well. Our method is comparable to FB-AE. A linear classifier $C$ performed better than deeper networks (which suffered from overfitting). Early stopping after a single epoch generated the best results. ",
|
| 729 |
+
"bbox": [
|
| 730 |
+
174,
|
| 731 |
+
777,
|
| 732 |
+
823,
|
| 733 |
+
833
|
| 734 |
+
],
|
| 735 |
+
"page_idx": 6
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "text",
|
| 739 |
+
"text": "Thyroid: Thyroid is a small dataset, with a low anomaly to normal ratio and low feature dimensionality. A quantitative comparison on this dataset can be seen in Tab. 3. Most baselines performed about equally well, probably due to the low dimensionality. On this dataset, we also found that early stopping after a single epoch gave the best results. The best results on this dataset, were obtained with a linear classifier. Our method is comparable to FB-AE and beat all other baselines by a wide margin. ",
|
| 740 |
+
"bbox": [
|
| 741 |
+
174,
|
| 742 |
+
840,
|
| 743 |
+
823,
|
| 744 |
+
924
|
| 745 |
+
],
|
| 746 |
+
"page_idx": 6
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"type": "image",
|
| 750 |
+
"img_path": "images/a525875e49259446f38693aa0662d0b42abc1102c3d160bf98a7b77cf54d2a65.jpg",
|
| 751 |
+
"image_caption": [
|
| 752 |
+
"Figure 1: Left: Classification error for our method and DAGMM as a function of percentage of the anomalous examples in the training set (on the KDDCUP99 dataset). Our method consistently outperforms the baseline. Right: Classification error as a function of the number of transformations (on the KDDRev dataset). The error and instability decrease as a function of the number of transformations. For both, lower is better. "
|
| 753 |
+
],
|
| 754 |
+
"image_footnote": [],
|
| 755 |
+
"bbox": [
|
| 756 |
+
210,
|
| 757 |
+
119,
|
| 758 |
+
767,
|
| 759 |
+
270
|
| 760 |
+
],
|
| 761 |
+
"page_idx": 7
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"type": "text",
|
| 765 |
+
"text": "KDDCUP99: The UCI KDD $1 0 \\%$ dataset is the largest dataset examined. A quantitative comparison on this dataset can be seen in Tab. 3. The strongest baselines are FB-AE and DAGMM. Our method significantly outperformed all baselines. We found that large datasets have different dynamics from very small datasets. On this dataset, deep networks performed the best. We also, did not need early stopping. The results are reported after 25 epochs. ",
|
| 766 |
+
"bbox": [
|
| 767 |
+
174,
|
| 768 |
+
415,
|
| 769 |
+
825,
|
| 770 |
+
484
|
| 771 |
+
],
|
| 772 |
+
"page_idx": 7
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"type": "text",
|
| 776 |
+
"text": "KDD-Rev: The KDD-Rev dataset is a large dataset, but smaller than KDDCUP99 dataset. A quantitative comparison on this dataset can be seen in Tab. 3. Similarly to KDDCUP99, the best baselines are FB-AE and DAGMM, where FB-AE significantly outperforms DAGMM. Our method significantly outperformed all baselines. Due to the size of the dataset, we did not need early stopping. The results are reported after 25 epochs. ",
|
| 777 |
+
"bbox": [
|
| 778 |
+
174,
|
| 779 |
+
492,
|
| 780 |
+
823,
|
| 781 |
+
560
|
| 782 |
+
],
|
| 783 |
+
"page_idx": 7
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"type": "text",
|
| 787 |
+
"text": "Adversarial Robustness: Due to the large number of transformations and relatively small networks, adversarial examples are less of a problem for tabular data. PGD generally failed to obtain adversarial examples on these datasets. On KDD, transformation classification accuracy on anomalies was increased by $3 . 7 \\%$ for the network the adversarial examples were trained on, $1 . 3 \\%$ when transferring to the network with the same transformation and only $0 . 2 \\%$ on the network with other randomly selected transformations. This again shows increased adversarial robustness due to random transformations. ",
|
| 788 |
+
"bbox": [
|
| 789 |
+
174,
|
| 790 |
+
568,
|
| 791 |
+
825,
|
| 792 |
+
666
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 7
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "Further Analysis ",
|
| 799 |
+
"text_level": 1,
|
| 800 |
+
"bbox": [
|
| 801 |
+
174,
|
| 802 |
+
672,
|
| 803 |
+
294,
|
| 804 |
+
688
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 7
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "Contaminated Data: This paper deals with the semi-supervised scenario i.e. when the training dataset contains only normal data. In some scenarios, such data might not be available but instead we might have a training dataset that contains a small percentage of anomalies. To evaluate the robustness of our method to this unsupervised scenario, we analysed the KDDCUP99 dataset, when $X \\%$ of the training data is anomalous. To prepare the data, we used the same normal training data as before and added further anomalous examples. The test data consists of the same proportions as before. The results are shown in Fig. 1. Our method significantly outperforms DAGMM for all impurity values, and degrades more graceful than the baseline. This attests to the effectiveness of our approach. Results for the other datasets are presented in Fig. 3, showing similar robustness to contamination. ",
|
| 811 |
+
"bbox": [
|
| 812 |
+
174,
|
| 813 |
+
694,
|
| 814 |
+
825,
|
| 815 |
+
833
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 7
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "Number of Tasks: One of the advantages of GOAD, is the ability to generate any number of tasks. We present the anomaly detection performance on the KDD-Rev dataset with different numbers of tasks in Fig. 1. We note that a small number of tasks (less than 16) leads to poor results. From 16 tasks, the accuracy remains stable. We found that on the smaller datasets (Thyroid, Arrhythmia) using a larger number of transformations continued to reduce $F _ { 1 }$ score variance between differently initialized runs (Fig. 2). ",
|
| 822 |
+
"bbox": [
|
| 823 |
+
174,
|
| 824 |
+
840,
|
| 825 |
+
825,
|
| 826 |
+
924
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 7
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "6 DISCUSSION ",
|
| 833 |
+
"text_level": 1,
|
| 834 |
+
"bbox": [
|
| 835 |
+
174,
|
| 836 |
+
102,
|
| 837 |
+
310,
|
| 838 |
+
118
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 8
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "text",
|
| 844 |
+
"text": "Openset vs. Softmax: The openset-based classification presented by GOAD resulted in performance improvement over the closed-set softmax approach on Cifar10 and FasionMNIST. In our experiments, it has also improved performance in KDDRev. Arrhythmia and Thyroid were comparable. As a negative result, performance of softmax was better on KDD $F _ { 1 } = 0 . 9 9$ ). ",
|
| 845 |
+
"bbox": [
|
| 846 |
+
174,
|
| 847 |
+
133,
|
| 848 |
+
823,
|
| 849 |
+
189
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 8
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"text": "Choosing the margin parameter $s$ : GOAD is not particularly sensitive to the choice of margin parameter $s$ , although choosing $s$ that is too small might cause some instability. We used a fixed value of $s = 1$ in our experiments, and recommend this value as a starting point. ",
|
| 856 |
+
"bbox": [
|
| 857 |
+
176,
|
| 858 |
+
196,
|
| 859 |
+
825,
|
| 860 |
+
238
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 8
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "Other transformations: GOAD can also work with other types of transformations such as rotations or permutations for tabular data. In our experiments, we observed that these transformation types perform comparably but a little worse than affine transformations. ",
|
| 867 |
+
"bbox": [
|
| 868 |
+
176,
|
| 869 |
+
246,
|
| 870 |
+
825,
|
| 871 |
+
287
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 8
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "Unsupervised training: Although most of our results are semi-supervised i.e. assume that no anomalies exist in the training set, we presented results showing that our method is more robust than strong baselines to a small percentage of anomalies in the training set. We further presented results in other datasets showing that our method degrades gracefully with a small amount of contamination. Our method might therefore be considered in the unsupervised settings. ",
|
| 878 |
+
"bbox": [
|
| 879 |
+
174,
|
| 880 |
+
295,
|
| 881 |
+
825,
|
| 882 |
+
364
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 8
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "Deep vs. shallow classifiers: Our experiments show that for large datasets deep networks are beneficial (particularly for the full KDDCUP99), but are not needed for smaller datasets (indicating that deep learning has not benefited the smaller datasets). For performance critical operations, our approach may be used in a linear setting. This may also aid future theoretical analysis of our method. ",
|
| 889 |
+
"bbox": [
|
| 890 |
+
174,
|
| 891 |
+
372,
|
| 892 |
+
825,
|
| 893 |
+
428
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 8
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "7 CONCLUSION ",
|
| 900 |
+
"text_level": 1,
|
| 901 |
+
"bbox": [
|
| 902 |
+
176,
|
| 903 |
+
448,
|
| 904 |
+
318,
|
| 905 |
+
464
|
| 906 |
+
],
|
| 907 |
+
"page_idx": 8
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"type": "text",
|
| 911 |
+
"text": "In this paper, we presented a method for detecting anomalies for general data. This was achieved by training a classifier on a set of random auxiliary tasks. Our method does not require knowledge of the data domain, and we are able to generate an arbitrary number of random tasks. Our method significantly improve over the state-of-the-art. ",
|
| 912 |
+
"bbox": [
|
| 913 |
+
174,
|
| 914 |
+
481,
|
| 915 |
+
825,
|
| 916 |
+
536
|
| 917 |
+
],
|
| 918 |
+
"page_idx": 8
|
| 919 |
+
},
|
| 920 |
+
{
|
| 921 |
+
"type": "text",
|
| 922 |
+
"text": "REFERENCES ",
|
| 923 |
+
"text_level": 1,
|
| 924 |
+
"bbox": [
|
| 925 |
+
176,
|
| 926 |
+
559,
|
| 927 |
+
285,
|
| 928 |
+
574
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 8
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "Arthur Asuncion and David Newman. Uci machine learning repository, 2007. ",
|
| 935 |
+
"bbox": [
|
| 936 |
+
174,
|
| 937 |
+
582,
|
| 938 |
+
684,
|
| 939 |
+
597
|
| 940 |
+
],
|
| 941 |
+
"page_idx": 8
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"type": "text",
|
| 945 |
+
"text": "Abhijit Bendale and Terrance E Boult. Towards open set deep networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1563–1572, 2016. ",
|
| 946 |
+
"bbox": [
|
| 947 |
+
173,
|
| 948 |
+
607,
|
| 949 |
+
820,
|
| 950 |
+
636
|
| 951 |
+
],
|
| 952 |
+
"page_idx": 8
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"type": "text",
|
| 956 |
+
"text": "Markus M Breunig, Hans-Peter Kriegel, Raymond T $\\mathrm { N g }$ , and Jorg Sander. Lof: identifying density- ¨ based local outliers. In ACM sigmod record, volume 29, pp. 93–104. ACM, 2000. ",
|
| 957 |
+
"bbox": [
|
| 958 |
+
173,
|
| 959 |
+
646,
|
| 960 |
+
820,
|
| 961 |
+
676
|
| 962 |
+
],
|
| 963 |
+
"page_idx": 8
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"type": "text",
|
| 967 |
+
"text": "Emmanuel J Candes, Xiaodong Li, Yi Ma, and John Wright. Robust principal component analysis? \\` JACM, 2011. ",
|
| 968 |
+
"bbox": [
|
| 969 |
+
174,
|
| 970 |
+
685,
|
| 971 |
+
821,
|
| 972 |
+
714
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 8
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "text",
|
| 978 |
+
"text": "Jinghui Chen, Saket Sathe, Charu Aggarwal, and Deepak Turaga. Outlier detection with autoencoder ensembles. In ICDM, 2017. ",
|
| 979 |
+
"bbox": [
|
| 980 |
+
173,
|
| 981 |
+
724,
|
| 982 |
+
823,
|
| 983 |
+
753
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 8
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "Lucas Deecke, Robert Vandermeulen, Lukas Ruff, Stephan Mandt, and Marius Kloft. Anomaly detection with generative adversarial networks. In ICLR, 2018. ",
|
| 990 |
+
"bbox": [
|
| 991 |
+
171,
|
| 992 |
+
763,
|
| 993 |
+
823,
|
| 994 |
+
792
|
| 995 |
+
],
|
| 996 |
+
"page_idx": 8
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"type": "text",
|
| 1000 |
+
"text": "Eleazar Eskin, Andrew Arnold, Michael Prerau, Leonid Portnoy, and Sal Stolfo. A geometric framework for unsupervised anomaly detection. In Applications of data mining in computer security, pp. 77–101. Springer, 2002. ",
|
| 1001 |
+
"bbox": [
|
| 1002 |
+
174,
|
| 1003 |
+
803,
|
| 1004 |
+
823,
|
| 1005 |
+
845
|
| 1006 |
+
],
|
| 1007 |
+
"page_idx": 8
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"type": "text",
|
| 1011 |
+
"text": "Spyros Gidaris, Praveer Singh, and Nikos Komodakis. Unsupervised representation learning by predicting image rotations. ICLR, 2018. ",
|
| 1012 |
+
"bbox": [
|
| 1013 |
+
171,
|
| 1014 |
+
856,
|
| 1015 |
+
823,
|
| 1016 |
+
885
|
| 1017 |
+
],
|
| 1018 |
+
"page_idx": 8
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"type": "text",
|
| 1022 |
+
"text": "Izhak Golan and Ran El-Yaniv. Deep anomaly detection using geometric transformations. In NeurIPS, 2018. ",
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
173,
|
| 1025 |
+
895,
|
| 1026 |
+
823,
|
| 1027 |
+
922
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 8
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "John A Hartigan and Manchek A Wong. Algorithm as 136: A k-means clustering algorithm. Journal of the Royal Statistical Society. Series C (Applied Statistics), 1979. ",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
169,
|
| 1036 |
+
103,
|
| 1037 |
+
823,
|
| 1038 |
+
132
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 9
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "text",
|
| 1044 |
+
"text": "Xinwei He, Yang Zhou, Zhichao Zhou, Song Bai, and Xiang Bai. Triplet-center loss for multiview 3d object retrieval. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1945–1954, 2018. ",
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
178,
|
| 1047 |
+
141,
|
| 1048 |
+
823,
|
| 1049 |
+
184
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 9
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "text",
|
| 1055 |
+
"text": "Dan Hendrycks, Mantas Mazeika, and Thomas G Dietterich. Deep anomaly detection with outlier exposure. arXiv preprint arXiv:1812.04606, 2018. ",
|
| 1056 |
+
"bbox": [
|
| 1057 |
+
171,
|
| 1058 |
+
193,
|
| 1059 |
+
823,
|
| 1060 |
+
223
|
| 1061 |
+
],
|
| 1062 |
+
"page_idx": 9
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"type": "text",
|
| 1066 |
+
"text": "Ian Jolliffe. Principal component analysis. Springer, 2011. ",
|
| 1067 |
+
"bbox": [
|
| 1068 |
+
173,
|
| 1069 |
+
231,
|
| 1070 |
+
562,
|
| 1071 |
+
247
|
| 1072 |
+
],
|
| 1073 |
+
"page_idx": 9
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"type": "text",
|
| 1077 |
+
"text": "Gustav Larsson, Michael Maire, and Gregory Shakhnarovich. Learning representations for automatic colorization. In ECCV, 2016. ",
|
| 1078 |
+
"bbox": [
|
| 1079 |
+
173,
|
| 1080 |
+
256,
|
| 1081 |
+
823,
|
| 1082 |
+
285
|
| 1083 |
+
],
|
| 1084 |
+
"page_idx": 9
|
| 1085 |
+
},
|
| 1086 |
+
{
|
| 1087 |
+
"type": "text",
|
| 1088 |
+
"text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017. ",
|
| 1089 |
+
"bbox": [
|
| 1090 |
+
173,
|
| 1091 |
+
294,
|
| 1092 |
+
823,
|
| 1093 |
+
337
|
| 1094 |
+
],
|
| 1095 |
+
"page_idx": 9
|
| 1096 |
+
},
|
| 1097 |
+
{
|
| 1098 |
+
"type": "text",
|
| 1099 |
+
"text": "Michael Mathieu, Camille Couprie, and Yann LeCun. Deep multi-scale video prediction beyond mean square error. ICLR, 2016. ",
|
| 1100 |
+
"bbox": [
|
| 1101 |
+
173,
|
| 1102 |
+
347,
|
| 1103 |
+
823,
|
| 1104 |
+
376
|
| 1105 |
+
],
|
| 1106 |
+
"page_idx": 9
|
| 1107 |
+
},
|
| 1108 |
+
{
|
| 1109 |
+
"type": "text",
|
| 1110 |
+
"text": "Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In ECCV, 2016. ",
|
| 1111 |
+
"bbox": [
|
| 1112 |
+
173,
|
| 1113 |
+
385,
|
| 1114 |
+
823,
|
| 1115 |
+
414
|
| 1116 |
+
],
|
| 1117 |
+
"page_idx": 9
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"type": "text",
|
| 1121 |
+
"text": "Emanuel Parzen. On estimation of a probability density function and mode. The annals of mathematical statistics, 1962. ",
|
| 1122 |
+
"bbox": [
|
| 1123 |
+
171,
|
| 1124 |
+
422,
|
| 1125 |
+
823,
|
| 1126 |
+
452
|
| 1127 |
+
],
|
| 1128 |
+
"page_idx": 9
|
| 1129 |
+
},
|
| 1130 |
+
{
|
| 1131 |
+
"type": "text",
|
| 1132 |
+
"text": "Shebuti Rayana. ODDS library http://odds.cs.stonybrook.edu, 2016. ",
|
| 1133 |
+
"bbox": [
|
| 1134 |
+
174,
|
| 1135 |
+
462,
|
| 1136 |
+
622,
|
| 1137 |
+
477
|
| 1138 |
+
],
|
| 1139 |
+
"page_idx": 9
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"type": "text",
|
| 1143 |
+
"text": "Lukas Ruff, Nico Gornitz, Lucas Deecke, Shoaib Ahmed Siddiqui, Robert Vandermeulen, Alexander Binder, Emmanuel Muller, and Marius Kloft. Deep one-class classification. In ¨ ICML, 2018. ",
|
| 1144 |
+
"bbox": [
|
| 1145 |
+
176,
|
| 1146 |
+
486,
|
| 1147 |
+
825,
|
| 1148 |
+
515
|
| 1149 |
+
],
|
| 1150 |
+
"page_idx": 9
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"type": "text",
|
| 1154 |
+
"text": "Mayu Sakurada and Takehisa Yairi. Anomaly detection using autoencoders with nonlinear dimensionality reduction. In MLSD. ACM, 2014. ",
|
| 1155 |
+
"bbox": [
|
| 1156 |
+
173,
|
| 1157 |
+
525,
|
| 1158 |
+
823,
|
| 1159 |
+
553
|
| 1160 |
+
],
|
| 1161 |
+
"page_idx": 9
|
| 1162 |
+
},
|
| 1163 |
+
{
|
| 1164 |
+
"type": "text",
|
| 1165 |
+
"text": "Thomas Schlegl, Philipp Seebock, Sebastian M Waldstein, Ursula Schmidt-Erfurth, and Georg ¨ Langs. Unsupervised anomaly detection with generative adversarial networks to guide marker discovery. In International Conference on Information Processing in Medical Imaging, 2017. ",
|
| 1166 |
+
"bbox": [
|
| 1167 |
+
176,
|
| 1168 |
+
563,
|
| 1169 |
+
825,
|
| 1170 |
+
606
|
| 1171 |
+
],
|
| 1172 |
+
"page_idx": 9
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"type": "text",
|
| 1176 |
+
"text": "Bernhard Scholkopf, Robert C Williamson, Alex J Smola, John Shawe-Taylor, and John C Platt. Support vector method for novelty detection. In NIPS, 2000. ",
|
| 1177 |
+
"bbox": [
|
| 1178 |
+
171,
|
| 1179 |
+
614,
|
| 1180 |
+
821,
|
| 1181 |
+
643
|
| 1182 |
+
],
|
| 1183 |
+
"page_idx": 9
|
| 1184 |
+
},
|
| 1185 |
+
{
|
| 1186 |
+
"type": "text",
|
| 1187 |
+
"text": "Yan Xia, Xudong Cao, Fang Wen, Gang Hua, and Jian Sun. Learning discriminative reconstructions for unsupervised outlier removal. In ECCV, 2015. ",
|
| 1188 |
+
"bbox": [
|
| 1189 |
+
173,
|
| 1190 |
+
654,
|
| 1191 |
+
823,
|
| 1192 |
+
683
|
| 1193 |
+
],
|
| 1194 |
+
"page_idx": 9
|
| 1195 |
+
},
|
| 1196 |
+
{
|
| 1197 |
+
"type": "text",
|
| 1198 |
+
"text": "Bo Yang, Xiao Fu, Nicholas D Sidiropoulos, and Mingyi Hong. Towards k-means-friendly spaces: Simultaneous deep learning and clustering. In ICML, 2017. ",
|
| 1199 |
+
"bbox": [
|
| 1200 |
+
173,
|
| 1201 |
+
691,
|
| 1202 |
+
821,
|
| 1203 |
+
720
|
| 1204 |
+
],
|
| 1205 |
+
"page_idx": 9
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"type": "text",
|
| 1209 |
+
"text": "Richard Zhang, Phillip Isola, and Alexei A Efros. Colorful image colorization. In ECCV, 2016. ",
|
| 1210 |
+
"bbox": [
|
| 1211 |
+
174,
|
| 1212 |
+
729,
|
| 1213 |
+
802,
|
| 1214 |
+
744
|
| 1215 |
+
],
|
| 1216 |
+
"page_idx": 9
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"type": "text",
|
| 1220 |
+
"text": "Bo Zong, Qi Song, Martin Renqiang Min, Wei Cheng, Cristian Lumezanu, Daeki Cho, and Haifeng Chen. Deep autoencoding gaussian mixture model for unsupervised anomaly detection. ICLR, 2018. ",
|
| 1221 |
+
"bbox": [
|
| 1222 |
+
176,
|
| 1223 |
+
753,
|
| 1224 |
+
823,
|
| 1225 |
+
796
|
| 1226 |
+
],
|
| 1227 |
+
"page_idx": 9
|
| 1228 |
+
},
|
| 1229 |
+
{
|
| 1230 |
+
"type": "text",
|
| 1231 |
+
"text": "A APPENDIX ",
|
| 1232 |
+
"text_level": 1,
|
| 1233 |
+
"bbox": [
|
| 1234 |
+
176,
|
| 1235 |
+
824,
|
| 1236 |
+
297,
|
| 1237 |
+
839
|
| 1238 |
+
],
|
| 1239 |
+
"page_idx": 9
|
| 1240 |
+
},
|
| 1241 |
+
{
|
| 1242 |
+
"type": "text",
|
| 1243 |
+
"text": "A.1 IMAGE EXPERIMENTS ",
|
| 1244 |
+
"text_level": 1,
|
| 1245 |
+
"bbox": [
|
| 1246 |
+
176,
|
| 1247 |
+
854,
|
| 1248 |
+
370,
|
| 1249 |
+
869
|
| 1250 |
+
],
|
| 1251 |
+
"page_idx": 9
|
| 1252 |
+
},
|
| 1253 |
+
{
|
| 1254 |
+
"type": "text",
|
| 1255 |
+
"text": "Sensitive to margin s: We run Cifar10 experiments with $s = 0 . 1$ and $s = 1$ and presented the results in Fig. 4. The results were not affected much by the margin parameter. This is in-line with the rest of our empirical observations that GOAD is not very sensitive to the margin parameter. ",
|
| 1256 |
+
"bbox": [
|
| 1257 |
+
174,
|
| 1258 |
+
882,
|
| 1259 |
+
823,
|
| 1260 |
+
924
|
| 1261 |
+
],
|
| 1262 |
+
"page_idx": 9
|
| 1263 |
+
},
|
| 1264 |
+
{
|
| 1265 |
+
"type": "table",
|
| 1266 |
+
"img_path": "images/b7e393c23356639d081dcc799153c43f9f730554091ec460168f2990951191b9.jpg",
|
| 1267 |
+
"table_caption": [
|
| 1268 |
+
"Table 4: Anomaly Detection Accuracy on Cifar10 $( \\% )$ "
|
| 1269 |
+
],
|
| 1270 |
+
"table_footnote": [],
|
| 1271 |
+
"table_body": "<table><tr><td rowspan=\"2\">Class</td><td colspan=\"3\">Method</td></tr><tr><td>GEOM (w. Dirichlet)</td><td>GOAD(s = 0.1)</td><td>GOAD(1.0)</td></tr><tr><td>0</td><td>74.7 ± 0.4</td><td>77.2 ± 0.6</td><td>77.9 ± 0.7</td></tr><tr><td>1</td><td>95.7 ± 0.0</td><td>96.7 ± 0.2</td><td>96.4 ± 0.9</td></tr><tr><td>2</td><td>78.1 ± 0.4</td><td>83.3 ± 1.4</td><td>81.8 ± 0.8</td></tr><tr><td>3</td><td>72.4 ± 0.5</td><td>77.7 ± 0.7</td><td>77.0 ± 0.7</td></tr><tr><td>4</td><td>87.8 ± 0.2</td><td>87.8 ± 0.7</td><td>87.7 ± 0.5</td></tr><tr><td>5</td><td>87.8 ± 0.1</td><td>87.8 ± 0.6</td><td>87.8 ± 0.7</td></tr><tr><td>6</td><td>83.4 ± 0.5</td><td>90.0 ± 0.6</td><td>90.9 ± 0.5</td></tr><tr><td>7</td><td>95.5 ± 0.1</td><td>96.1 ± 0.3</td><td>96.1 ± 0.2</td></tr><tr><td>8</td><td>93.3 ± 0.0</td><td>93.8 ± 0.9</td><td>93.3 ± 0.1</td></tr><tr><td>9</td><td>91.3 ± 0.1</td><td>92.0 ± 0.6</td><td>92.4 ± 0.3</td></tr><tr><td>Average</td><td>86.0</td><td>88.2</td><td>88.1</td></tr></table>",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
267,
|
| 1274 |
+
127,
|
| 1275 |
+
730,
|
| 1276 |
+
330
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 10
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"text": "A.2 TABULAR DATASETS ",
|
| 1283 |
+
"text_level": 1,
|
| 1284 |
+
"bbox": [
|
| 1285 |
+
176,
|
| 1286 |
+
361,
|
| 1287 |
+
362,
|
| 1288 |
+
376
|
| 1289 |
+
],
|
| 1290 |
+
"page_idx": 10
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"type": "text",
|
| 1294 |
+
"text": "Following the evaluation protocol of Zong et al. (2018), 4 datasets are used in this comparison: ",
|
| 1295 |
+
"bbox": [
|
| 1296 |
+
174,
|
| 1297 |
+
388,
|
| 1298 |
+
794,
|
| 1299 |
+
404
|
| 1300 |
+
],
|
| 1301 |
+
"page_idx": 10
|
| 1302 |
+
},
|
| 1303 |
+
{
|
| 1304 |
+
"type": "text",
|
| 1305 |
+
"text": "Arrhythmia: A cardiology dataset from the UCI repository (Asuncion & Newman, 2007) containing attributes related to the diagnosis of cardiac arrhythmia in patients. The datasets consists of 16 classes: class 1 are normal patients, 2-15 contain different arrhythmia conditions, and class 16 contains undiagnosed cases. Following the protocol established by ODDS (Rayana, 2016), the smallest classes: 3, 4, 5, 7, 8, 9, 14, 15 are taken to be anomalous and the rest normal. Also following ODDS, the categorical attributes are dropped, the final attributes total 274. ",
|
| 1306 |
+
"bbox": [
|
| 1307 |
+
174,
|
| 1308 |
+
410,
|
| 1309 |
+
825,
|
| 1310 |
+
494
|
| 1311 |
+
],
|
| 1312 |
+
"page_idx": 10
|
| 1313 |
+
},
|
| 1314 |
+
{
|
| 1315 |
+
"type": "text",
|
| 1316 |
+
"text": "Thyroid: A medical dataset from the UCI repository (Asuncion & Newman, 2007), containing attributes related to whether a patient is hyperthyroid. Following ODDS (Rayana, 2016), from the 3 classes of the dataset, we designate hyperfunction as the anomalous class and the rest as normal. Also following ODDS only the 6 continuous attributes are used. ",
|
| 1317 |
+
"bbox": [
|
| 1318 |
+
174,
|
| 1319 |
+
501,
|
| 1320 |
+
825,
|
| 1321 |
+
556
|
| 1322 |
+
],
|
| 1323 |
+
"page_idx": 10
|
| 1324 |
+
},
|
| 1325 |
+
{
|
| 1326 |
+
"type": "text",
|
| 1327 |
+
"text": "KDD: The KDD Intrusion Detection dataset was created by an extensive simulation of a US Air Force LAN network. The dataset consists of the normal and 4 simulated attack types: denial of service, unauthorized access from a remote machine, unauthorized access from local superuser and probing. The dataset consists of around 5 million TCP connection records. Following the evaluation protocol in Zong et al. (2018), we use the UCI KDD $1 0 \\%$ dataset, which is a subsampled version of the original dataset. The dataset contains 41 different attributes. 34 are continuous and 7 are categorical. Following Zong et al. (2018), we encode the categorical attributes using 1-hot encoding. ",
|
| 1328 |
+
"bbox": [
|
| 1329 |
+
174,
|
| 1330 |
+
564,
|
| 1331 |
+
825,
|
| 1332 |
+
661
|
| 1333 |
+
],
|
| 1334 |
+
"page_idx": 10
|
| 1335 |
+
},
|
| 1336 |
+
{
|
| 1337 |
+
"type": "text",
|
| 1338 |
+
"text": "Following Zong et al. (2018), we evaluate two different settings for the KDD dataset: ",
|
| 1339 |
+
"bbox": [
|
| 1340 |
+
176,
|
| 1341 |
+
669,
|
| 1342 |
+
728,
|
| 1343 |
+
683
|
| 1344 |
+
],
|
| 1345 |
+
"page_idx": 10
|
| 1346 |
+
},
|
| 1347 |
+
{
|
| 1348 |
+
"type": "text",
|
| 1349 |
+
"text": "KDDCUP99: In this configuration we use the entire UCI $1 0 \\%$ dataset. As the non-attack class consists of only $2 0 \\%$ of the dataset, it is treated as the anomaly in this case, while attacks are treated as normal. ",
|
| 1350 |
+
"bbox": [
|
| 1351 |
+
176,
|
| 1352 |
+
689,
|
| 1353 |
+
821,
|
| 1354 |
+
731
|
| 1355 |
+
],
|
| 1356 |
+
"page_idx": 10
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"type": "text",
|
| 1360 |
+
"text": "KDDCUP99-Rev: To better correspond to the actual use-case, in which the non-attack scenario is normal and attacks are anomalous, Zong et al. (2018) also evaluate on the reverse configuration, in which the attack data is sub-sampled to consist of $2 5 \\%$ of the number of non-attack samples. The attack data is in this case designated as anomalous (the reverse of the KDDCUP99 dataset). ",
|
| 1361 |
+
"bbox": [
|
| 1362 |
+
176,
|
| 1363 |
+
739,
|
| 1364 |
+
825,
|
| 1365 |
+
795
|
| 1366 |
+
],
|
| 1367 |
+
"page_idx": 10
|
| 1368 |
+
},
|
| 1369 |
+
{
|
| 1370 |
+
"type": "text",
|
| 1371 |
+
"text": "In all the above datasets, the methods are trained on $5 0 \\%$ of the normal data. The methods are evaluated on $5 0 \\%$ of the normal data as well as all the anomalies. ",
|
| 1372 |
+
"bbox": [
|
| 1373 |
+
173,
|
| 1374 |
+
801,
|
| 1375 |
+
821,
|
| 1376 |
+
829
|
| 1377 |
+
],
|
| 1378 |
+
"page_idx": 10
|
| 1379 |
+
},
|
| 1380 |
+
{
|
| 1381 |
+
"type": "text",
|
| 1382 |
+
"text": "A.3 NUMBER OF TASKS ",
|
| 1383 |
+
"text_level": 1,
|
| 1384 |
+
"bbox": [
|
| 1385 |
+
176,
|
| 1386 |
+
853,
|
| 1387 |
+
351,
|
| 1388 |
+
867
|
| 1389 |
+
],
|
| 1390 |
+
"page_idx": 10
|
| 1391 |
+
},
|
| 1392 |
+
{
|
| 1393 |
+
"type": "text",
|
| 1394 |
+
"text": "We provide plots of the number of auxiliary tasks vs. the anomaly detection accuracy (measured by $F _ { 1 , }$ ) for all datasets. The results are presented in Fig. 2. Performance increases rapidly up to a certain number of tasks (around 16). Afterwards more tasks reduce the variance of $F _ { 1 }$ scores between runs. ",
|
| 1395 |
+
"bbox": [
|
| 1396 |
+
176,
|
| 1397 |
+
882,
|
| 1398 |
+
823,
|
| 1399 |
+
922
|
| 1400 |
+
],
|
| 1401 |
+
"page_idx": 10
|
| 1402 |
+
},
|
| 1403 |
+
{
|
| 1404 |
+
"type": "image",
|
| 1405 |
+
"img_path": "images/55ef42d627c9ba88b9baf86d4f5c32923b4d5808311593e446f3e1f9d9b39111.jpg",
|
| 1406 |
+
"image_caption": [
|
| 1407 |
+
"Figure 2: Plots of the number of auxiliary tasks vs. the anomaly detection accuracy (measured by $F _ { 1 }$ ) a) Arrhythmia b) Thyroid c) KDDRev d) KDDCup99 Accuracy often increases with the number of tasks, although the rate diminishes with the number of tasks. "
|
| 1408 |
+
],
|
| 1409 |
+
"image_footnote": [],
|
| 1410 |
+
"bbox": [
|
| 1411 |
+
205,
|
| 1412 |
+
104,
|
| 1413 |
+
790,
|
| 1414 |
+
479
|
| 1415 |
+
],
|
| 1416 |
+
"page_idx": 11
|
| 1417 |
+
},
|
| 1418 |
+
{
|
| 1419 |
+
"type": "image",
|
| 1420 |
+
"img_path": "images/1714725f825a4c3d69f4543913fba5904bbb19a3a0b1c21569169b1ff2e913bb.jpg",
|
| 1421 |
+
"image_caption": [
|
| 1422 |
+
"Figure 3: Plots of the degree of contamination vs. the anomaly detection accuracy (measured by $F _ { 1 }$ ) (left) KDDRev (center) KDDCup99 (right) Arrhythmia. GOAD is generally robust to the degree of contamination. "
|
| 1423 |
+
],
|
| 1424 |
+
"image_footnote": [],
|
| 1425 |
+
"bbox": [
|
| 1426 |
+
205,
|
| 1427 |
+
561,
|
| 1428 |
+
779,
|
| 1429 |
+
666
|
| 1430 |
+
],
|
| 1431 |
+
"page_idx": 11
|
| 1432 |
+
},
|
| 1433 |
+
{
|
| 1434 |
+
"type": "text",
|
| 1435 |
+
"text": "A.4 CONTAMINATION EXPERIMENTS ",
|
| 1436 |
+
"text_level": 1,
|
| 1437 |
+
"bbox": [
|
| 1438 |
+
178,
|
| 1439 |
+
752,
|
| 1440 |
+
441,
|
| 1441 |
+
766
|
| 1442 |
+
],
|
| 1443 |
+
"page_idx": 11
|
| 1444 |
+
},
|
| 1445 |
+
{
|
| 1446 |
+
"type": "text",
|
| 1447 |
+
"text": "We conduct contamination experiments for 3 datasets. Thyroid was omitted due to not having a sufficient number of anomalies. The protocol is different than that of KDDRev as we do not have unused anomalies for contamination. Instead, we split the anomalies into train and test. Train anomalies are used for contamination, test anomalies are used for evaluation. As DAGMM did not present results for the other datasets, we only present GOAD. GOAD was reasonably robust to contamination on KDD, KDDRev and Arrhythmia. The results are presented in Fig. 3 ",
|
| 1448 |
+
"bbox": [
|
| 1449 |
+
173,
|
| 1450 |
+
777,
|
| 1451 |
+
825,
|
| 1452 |
+
862
|
| 1453 |
+
],
|
| 1454 |
+
"page_idx": 11
|
| 1455 |
+
}
|
| 1456 |
+
]
|
parse/train/H1lK_lBtvS/H1lK_lBtvS_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H1lK_lBtvS/H1lK_lBtvS_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SkgbmyHFDS/SkgbmyHFDS.md
ADDED
|
@@ -0,0 +1,332 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WHAT CAN LEARNED INTRINSIC REWARDS CAPTURE?
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Reinforcement learning agents can include different components, such as policies, value functions, state representations, and environment models. Any or all of these can be the loci of knowledge, i.e., structures where knowledge, whether given or learned, can be deposited and reused. Regardless of its composition, the objective of an agent is behave so as to maximise the sum of a suitable scalar function of state: the reward. As far as the learning algorithm is concerned, these rewards are typically given and immutable. In this paper we instead consider the proposition that the reward function itself may be a good locus of knowledge. This is consistent with a common use, in the literature, of hand-designed intrinsic rewards to improve the learning dynamics of an agent. We adopt the multi-lifetime setting of the Optimal Rewards Framework, and propose to meta-learn an intrinsic reward function from experience that allows agents to maximise their extrinsic rewards accumulated until the end of their lifetimes. Rewards as a locus of knowledge provide guidance on “what” the agent should strive to do rather than on knowledge of “how” the agent should behave that is more directly captured in policies or value functions for example. Thus, our focus here is on demonstrating the following: (1) that it is feasible to meta-learn good reward functions, (2) to show that the learned reward functions can capture interesting kinds of “what” knowledge, and (3) that because of the indirectness of this form of knowledge the learned reward functions can generalise to other kinds of agents and to changes in the dynamics of the environment.
|
| 8 |
+
|
| 9 |
+
Reinforcement learning agents can store knowledge in their policies, value functions, state representations, and models of the environment dynamics. These components can be the loci of knowledge in the sense that they are structures in which knowledge, either learned from experience by the agent’s algorithm or given by the agent-designer, can be deposited and reused. The objective of the agent is defined by a reward function, and the goal is to learn to act so as to optimise cumulative rewards. In this paper we consider the proposition that the reward function itself is a good locus of knowledge. This is unusual in that most prior work treats the reward as given and immutable, at least as far as the learning algorithm is concerned. At the same time, especially in challenging reinforcement-learning problems, agent designers do find it convenient to modify the reward function given to the agent to facilitate learning. It is therefore useful to distinguish between two kinds of reward functions (Singh et al., 2010): extrinsic rewards define the task and capture the designer’s preferences over agent behaviour, whereas intrinsic rewards serve as helpful signals to improve the learning dynamics of the agent. Intrinsic rewards are typically hand-designed and then often added to the immutable extrinsic rewards to form the reward optimised by the agent.
|
| 10 |
+
|
| 11 |
+
Most existing work on intrinsic rewards falls into two broad categories: task-dependent and taskindependent. Both are typically designed by hand. Hand-designing task-dependent rewards can be fraught with difficulty as even minor misalignment between the actual reward and the intended bias can lead to unintended and sometimes catastrophic consequences (Clark & Amodei, 2016). Task-independent intrinsic rewards are also typically hand-designed, often based on an intuitive understanding of animal/human behaviour or on heuristics on desired exploratory behaviour. It can, however, be hard to match such task-independent intrinsic rewards to the specific learning dynamics induced by the interaction between agent and environment. The motivation for this paper is our interest in the comparatively under-explored possibility of learned (not hand-designed) taskdependent intrinsic rewards (see Zheng et al., 2018, for previous work).
|
| 12 |
+
|
| 13 |
+
We emphasise that it is not our objective to show that rewards are a better locus of learned knowledge than others; the best locus likely depends on the kind of knowledge that is most useful in a given task. In particular, knowledge captured in rewards provides guidance on “what” the agent should strive to do while knowledge captured in policies provides guidance on “how” an agent should behave. Knowledge about “what” captured in rewards is indirect and thus slower to make an impact on behaviour because it takes effect through learning, while knowledge about “how” can directly have an immediate impact on behaviour. At the same time, because of its indirectness the former can generalise better to changes in dynamics and learning architectures. Therefore, instead of comparing different loci of knowledge, the purpose of this paper is to show that it is feasible to capture useful learned knowledge in rewards and to study the kinds of knowledge that can be captured.
|
| 14 |
+
|
| 15 |
+
How should we measure the usefulness of a learned reward function? Ideally, we would like to measure the effect the learned reward function has on the learning dynamics. Of course, learning happens over multiple episodes, indeed it happens over an entire lifetime. Therefore, we choose lifetime return, the cumulative extrinsic reward obtained by the agent over its entire lifetime, as the main objective. To this end, we adopt the multi-lifetime setting of the Optimal Rewards Framework (Singh et al., 2009) in which an agent is initialised randomly at the start of each lifetime and then faces a stationary or non-stationary task drawn from some distribution. In this setting, the only knowledge that is transferred across lifetimes is the reward instead of the policy. Specifically, the goal is to learn a single intrinsic reward function that, when used to adapt the agent’s policy using a standard episodic RL algorithm, ends up optimising the cumulative extrinsic reward over its lifetime.
|
| 16 |
+
|
| 17 |
+
In previous work, good reward functions were found via exhaustive search, limiting the range of applicability of the framework. Here, we develop a more scalable gradient-based method ( $\mathrm { { X u } }$ et al., 2018c) for learning the intrinsic rewards by exploiting the fact the interaction between the policy update and the reward function is differentiable (Zheng et al., 2018). Since it is infeasible to backpropgate through the full computation graph that spans across the entire lifetime, we truncate the unrolled computation graph of learning updates up to some horizon. However, we handle the long-term credit assignment by using a lifetime value function that estimates the remaining lifetime return, which needs to take into account changing policies. Our main scientific contributions are a sequence of empirical studies on carefully designed environments that show how our learned intrinsic rewards can capture interesting regularities in the interaction between a learning agent and an environment sampled from a distribution, and how the learned intrinsic reward can generalise to changed dynamics and agent architectures. Collectively, our contributions present an effective approach to the discovery of intrinsic rewards that can help an agent optimise the extrinsic rewards collected in a lifetime.
|
| 18 |
+
|
| 19 |
+
# 1 RELATED WORK
|
| 20 |
+
|
| 21 |
+
Hand-designed Rewards There is a long history of work on designing rewards to accelerate learning in reinforcement learning (RL). Reward shaping aims to design task-specific rewards towards known optimal behaviours, typically requiring domain knowledge. Both the benefits (Randlov & Alstrm, 1998; Ng et al., 1999; Harutyunyan et al., 2015) and the difficulty (Clark & Amodei, 2016) of task-specific reward shaping have been studied. On the other hand, many intrinsic rewards have been proposed to encourage exploration, inspired by animal behaviours. Examples include prediction error (Schmidhuber, 1991b; Gordon & Ahissar, 2011; Mirolli & Baldassarre, 2013; Pathak et al., 2017; Schmidhuber, 1991a), surprise (Itti & Baldi, 2006), weight change (Linke et al., 2019), and state-visitation counts (Sutton, 1990; Poupart et al., 2006; Strehl & Littman, 2008; Bellemare et al., 2016; Ostrovski et al., 2017). Although these kinds of intrinsic rewards are not domain-specific, they are often not well-aligned with the task that the agent tries to solve, and ignores the effect on the agent’s learning dynamics. In contrast, our work aims to learn intrinsic rewards from data that take into account the agent’s learning dynamics without requiring prior knowledge from a human.
|
| 22 |
+
|
| 23 |
+
Rewards Learned from Data There have been a few attempts to learn useful intrinsic rewards from data. The optimal reward framework (Singh et al., 2009) proposed to learn an optimal reward function that allows agents to solve a distribution of tasks quickly using random search. We revisit this problem in this paper and propose a more scalable gradient-based approach. Although there have been follow-up works (Sorg et al., 2010; Guo et al., 2016) that uses a gradient-based method, they consider a non-parameteric policy using Monte-Carlo Tree Search (MCTS). Our work is closely related to LIRPG (Zheng et al., 2018) which proposed a meta-gradient method to learn intrinsic rewards. However, LIRPG considers a single task in a single lifetime with a myopic episode return objective, which is limited in that it does not allow exploration across episodes or generalisation to different agents.
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
Figure 1: Illustration of the proposed intrinsic reward learning framework. The intrinsic reward $r _ { \eta }$ is used to update the agent’s parameter $\theta _ { i }$ throughout its lifetime which consists of many episodes. The goal is to find the optimal intrinsic reward parameters $\eta ^ { * }$ across many lifetimes that maximises the lifetime return $( G ^ { \mathrm { l i f e } } )$ given any randomly initialised agents and possibly non-stationary tasks drawn from some distribution $p ( \mathcal T )$ .
|
| 27 |
+
|
| 28 |
+
Meta-learning for Exploration Meta-learning (Schmidhuber et al., 1996; Thrun & Pratt, 1998) has recently received considerable attention in RL. Recent advances include few-shot adaptation (Finn et al., 2017a), few-shot imitation (Finn et al., 2017b; Duan et al., 2017), model adaptation (Clavera et al., 2018), and inverse RL (Xu et al., 2018a). In particular, our work is closely related to the prior work on meta-learning good exploration strategies (Wang et al., 2016; Duan et al., 2016; Stadie et al., 2018; Xu et al., 2018b) in that both perform temporal credit assignment across episode boundaries by maximising rewards accumulated beyond an episode. Unlike the prior work that aims to learn an exploratory policy, our framework indirectly drives exploration via a reward function which can be reused by different learning agents as we show in this paper (Section 5.1).
|
| 29 |
+
|
| 30 |
+
Meta-learning of Agent Update There have been a few studies that directly meta-learn how to update the agent’s parameters via meta-parameters including discount factor and returns (Xu et al., 2018c), auxiliary tasks (Schlegel et al., 2018; Veeriah et al., 2019), unsupervised learning rules (Metz et al., 2019), and RL objectives (Chebotar et al., 2019). Our work also belongs to this category in that our meta-parameters are the reward function used in the agent’s update. In particular, our multilifetime formulation is similar to $\mathrm { { M L ^ { 3 } } }$ (Chebotar et al., 2019). However, we consider the long-term lifetime return as objective to perform cross-episode temporal credit assignment as opposed to the myopic episodic objective in ML3.
|
| 31 |
+
|
| 32 |
+
# 2 THE OPTIMAL REWARD PROBLEM
|
| 33 |
+
|
| 34 |
+
We first introduce some terminology.
|
| 35 |
+
|
| 36 |
+
• Agent: A learning system interacting with an environment. On each step $t$ the agent selects an action $a _ { t }$ and receives from the environment an observation $s _ { t + 1 }$ and an extrinsic reward $r _ { t + 1 }$ defined by a task $\tau$ . The agent chooses actions based on a policy $\pi _ { \boldsymbol { \theta } } \big ( a _ { t } | \boldsymbol { s } _ { t } \big )$ parameterised by $\theta$ . • Episode: A finite sequence of agent-environment interactions until the end of the episode defined by the task. An episode return is defined as: $\begin{array} { r } { G ^ { \mathrm { e p } } = \sum _ { t = 0 } ^ { T _ { \mathrm { e p } } - 1 } \gamma ^ { t } r _ { t + 1 } } \end{array}$ , where $\gamma$ is a discount factor, and the random variable $T _ { \mathrm { e p } }$ gives the finite number of steps until the end of the episode. • Lifetime: A finite sequence of agent-environment interactions until the end of training deent-des, where ner, which can include is a discount factor, and ltiple episodes. The lifetime return is is the number of steps in the lifetime. $G ^ { \mathrm { { \bar { i } f e } } } =$ $\scriptstyle \sum _ { t = 0 } ^ { T - 1 } \gamma ^ { t } r _ { t + 1 }$ $\gamma$ $T$ • Intrinsic reward: A reward function $r _ { \eta } ( \tau _ { t + 1 } )$ parameterised by $\eta$ , where $\begin{array} { r l } { \tau _ { t } } & { { } = } \end{array}$ $( s _ { 0 } , a _ { 0 } , r _ { 1 } , d _ { 1 } , s _ { 1 } , \ldots , r _ { t } , d _ { t } , s _ { t } )$ is a lifetime history with (binary) episode terminations $d _ { i }$ .
|
| 37 |
+
|
| 38 |
+
The Optimal Reward Problem (Singh et al., 2010), illustrated in Figure 1, aims to learn the parameters of the intrinsic reward such that the resulting rewards achieve a learning dynamic for an RL agent that maximises the lifetime (extrinsic) return on tasks drawn from some distribution. Formally, the optimal reward function is defined as:
|
| 39 |
+
|
| 40 |
+
$$
|
| 41 |
+
\eta ^ { * } = \underset { \eta } { \arg \operatorname* { m a x } } J ( \eta ) = \underset { \eta } { \arg \operatorname* { m a x } } \mathbb { E } _ { \theta _ { 0 } \sim \Theta , \mathcal { T } \sim p ( \mathcal { T } ) } \left[ \mathbb { E } _ { \tau \sim p _ { \eta } ( \tau \mid \theta _ { 0 } ) } \left[ G ^ { \mathrm { l i f e } } \right] \right] ,
|
| 42 |
+
$$
|
| 43 |
+
|
| 44 |
+
where $\Theta$ and $p ( \mathcal T )$ are an initial policy distribution and a distribution over possibly non-stationary tasks respectively, and $\begin{array} { r } { G ^ { \mathrm { l i f e } } = \sum _ { t = 0 } ^ { { \bar { T } } - 1 } \dot { \gamma } ^ { t } r _ { t + 1 } } \end{array}$ is a lifetime return. The likelihood of a lifetime history
|
| 45 |
+
|
| 46 |
+
Algorithm 1 Learning intrinsic rewards across multiple lifetimes via meta-gradient
|
| 47 |
+
|
| 48 |
+
Input: $p ( \mathcal { T } )$ : Task distribution, $\Theta$ : Randomly-initialised policy distribution
|
| 49 |
+
Initialise intrinsic reward function $\eta$ and lifetime value function $\phi$
|
| 50 |
+
repeat Initialise task $\tau \sim p ( \mathcal { T } )$ and policy $\theta \sim \Theta$ while lifetime not ended do $\theta _ { 0 } \gets \theta$ for $k = 1 , 2 , \ldots , N$ do Generate a trajectory using πθk−1 Update policy $\theta _ { k } \gets \theta _ { k - 1 } + \alpha \nabla _ { \theta _ { k - 1 } } J _ { \eta } ( \theta _ { k - 1 } )$ using intrinsic rewards $r _ { \eta }$ (Eq. 2) end for Update intrinsic reward function $\eta$ using Eq. 3 Update lifetime value function $\phi$ using Eq. 4 $\boldsymbol { \theta } \dot { } \boldsymbol { \theta } _ { N }$ end while
|
| 51 |
+
until $\eta$ converges
|
| 52 |
+
|
| 53 |
+
$\tau$ is $\begin{array} { r } { p _ { \eta } ( \tau \vert \theta _ { 0 } ) = p ( s _ { 0 } ) \prod _ { t = 0 } ^ { T - 1 } \pi _ { \theta _ { t } } ( a _ { t } \vert s _ { t } ) p ( d _ { t + 1 } , r _ { t + 1 } , s _ { t + 1 } \vert s _ { t } , a _ { t } ) , } \end{array}$ , where $\theta _ { t } = f ( \theta _ { t - 1 } , \eta )$ is a policy parameter as updated with update function $f$ , which is policy gradient in this paper.1 Note that the optimisation of $\eta$ spans multiple lifetimes, each of which can span multiple episodes.
|
| 54 |
+
|
| 55 |
+
Using the lifetime return $G ^ { \mathrm { l i f e } }$ as the objective instead of the conventional episodic return $G ^ { \mathrm { e p } }$ allows exploration across multiple episodes as long as the lifetime return is maximised in the long run. In particular, when the lifetime is defined as a fixed number of episodes, we find that the lifetime return objective is sometimes more beneficial than the episodic return objective even in terms of the episodic return performance measure. However, different objectives (e.g., final episode return) can be considered depending on the definition of what a good reward function is.
|
| 56 |
+
|
| 57 |
+
# 3 META-LEARNING INTRINSIC REWARD
|
| 58 |
+
|
| 59 |
+
We propose a meta-gradient approach $\mathrm { { X u } }$ et al., 2018c; Zheng et al., 2018) to solve the optimal reward problem. At a high-level, we sample a new task $\tau$ and a new random policy parameter $\theta$ at each lifetime iteration. We then simulate an agent’s lifetime by updating the parameter $\theta$ using an intrinsic reward function $r _ { \eta }$ (Section 3.1) with policy gradient (Section 3.2). In the meantime, we compute the meta-gradient by taking into account the effect of the intrinsic rewards on the policy parameters to update the intrinsic reward function with a lifetime value function (Section 3.3). Algorithm 1 gives an overview of our algorithm. The following sections describe the details.
|
| 60 |
+
|
| 61 |
+
# 3.1 INTRINSIC REWARD AND LIFETIME VALUE FUNCTION ARCHITECTURES
|
| 62 |
+
|
| 63 |
+
The intrinsic reward function is a recurrent neural network (RNN) parameterised by $\eta$ , which produces a scalar reward on arriving in state $s _ { t }$ by taking into account the history of an agent’s lifetime $\tau _ { t } = ( s _ { 0 } , a _ { 0 } , r _ { 1 } , d _ { 1 } , s _ { 1 } , . . . , r _ { t } , d _ { t } , s _ { t } )$ . We claim that giving the lifetime history across episodes as input is crucial for balancing exploration and exploitation, for instance by capturing how frequently a certain state is visited to determine an exploration bonus reward. The lifetime value function is a separate recurrent neural network parameterised by $\phi$ , which takes the same inputs as the intrinsic reward function and produces a scalar value estimation of the expected future return within the lifetime.
|
| 64 |
+
|
| 65 |
+
# 3.2 POLICY UPDATE (θ)
|
| 66 |
+
|
| 67 |
+
Each agent interacts with an environment and a task sampled from a distribution $\tau \sim p ( \mathcal { T } )$ . However, instead of directly maximising the extrinsic rewards defined by the task, the agent maximises
|
| 68 |
+
|
| 69 |
+
the intrinsic rewards $( r _ { \eta } )$ by using policy gradient (Williams, 1992; Sutton et al., 2000):
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
J _ { \eta } ( \theta ) = \mathbb { E } _ { \theta } \bigg [ \sum _ { t = 0 } ^ { T _ { \mathrm { e p } } - 1 } \bar { \gamma } ^ { t } r _ { \eta } ( \tau _ { t + 1 } ) \bigg ] \qquad \quad \nabla _ { \theta } J _ { \eta } ( \theta ) = \mathbb { E } _ { \theta } \bigg [ G _ { \eta , t } ^ { \mathrm { e p } } \nabla _ { \theta } \log \pi _ { \theta } ( a | s ) \bigg ] ,
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
where $r _ { \eta } ( \tau _ { t + 1 } )$ is the intrinsic reward at time $t$ , and = PTep−1k=t γ¯k−trη(τk+1) is the return of the intrinsic rewards accumulated over an episode with discount factor $\bar { \gamma }$ .
|
| 76 |
+
|
| 77 |
+
3.3 INTRINSIC REWARD $( \eta )$ AND LIFETIME VALUE FUNCTION $( \phi )$ UPDATE
|
| 78 |
+
|
| 79 |
+
To update the intrinsic reward parameters $\eta$ , we directly take a meta-gradient ascent step using the overall objective (Equation 1). Specifically, the gradient is (see Appendix A for derivation):
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
\nabla _ { \eta } J ( \eta ) = \mathbb { E } _ { \theta _ { 0 } \sim \Theta , \mathcal { T } \sim p ( T ) } \biggl [ \mathbb { E } _ { \tau _ { t } \sim p ( \tau _ { t } | \eta , \theta _ { 0 } ) } \biggl [ G _ { t } ^ { \mathrm { l i f e } } \nabla _ { \theta _ { t } } \log \pi _ { \theta _ { t } } ( a _ { t } | s _ { t } ) \nabla _ { \eta } \theta _ { t } \biggr ] \biggr ] ,
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
where PT −1k=t γk−trk+1 is a lifetime return based on the extrinsic rewards of task T with discount factor $\gamma$ . The chain rule is used to get the meta-gradient $( \nabla _ { \boldsymbol { \eta } } \theta _ { t } )$ as in previous work (Zheng et al., 2018). The computation graph of this procedure is illustrated in Figure 1.
|
| 86 |
+
|
| 87 |
+
Computing the true meta-gradient in Equation 3 requires backpropagation through the entire lifetime, which is infeasible as each lifetime can involve more than thousands of policy updates. To partially address this issue, we truncate the meta-gradient after $N$ policy updates but approximate the lifetime return $G _ { t } ^ { \mathrm { l i f e } , \phi } \approx G _ { t } ^ { \mathrm { l i f e } }$ using a lifetime value function $V _ { \phi } ( \tau )$ parameterised by $\phi$ , which is learned using a temporal difference learning from -step trajectory:
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
G _ { t } ^ { \mathrm { l i f e } , \phi } = \sum _ { k = 0 } ^ { n - 1 } \gamma ^ { k } r _ { t + k + 1 } + \gamma ^ { n } V _ { \phi } ( \tau _ { t + n } ) \qquad \phi = \phi + \alpha ^ { \prime } ( G _ { t } ^ { \mathrm { l i f e } , \phi } - V _ { \phi } ( \tau _ { t } ) ) \nabla _ { \phi } V _ { \phi } ( \tau _ { t } ) .
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
In our empirical work, we found that the lifetime value estimates were crucial to allow the intrinsic reward to perform long-term credit assignments across episodes.
|
| 94 |
+
|
| 95 |
+
# 3.4 CONNECTION TO STANDARD RL FRAMEWORKS
|
| 96 |
+
|
| 97 |
+
The policy learning problem specified in Section 3.2 deviates from the standard Markov Decision Process (MDP) framework because the intrinsic reward function is a function of the lifetime history rather than a function of states or state-action pairs. Consequently, from the memoryless policy’s perspective, the rewards are non-stationary. However, we can also view the combination of the intrinsic reward function and the policy as a joint lifetime-history-based policy parameterised by $\eta$ and $\theta$ (see derivation in Appendix A). From this perspective, the overall learning problem specified in Section 3.3 can be formulated as an MDP with history as state (recall, we use RNNs for the intrinsic reward function). As a result, standard temporal-difference learning methods are applicable to learning lifetime value functions.
|
| 98 |
+
|
| 99 |
+
# 4 EMPIRICAL INVESTIGATIONS: FEASIBILITY AND USEFULNESS
|
| 100 |
+
|
| 101 |
+
We present the results from our empirical investigations in two sections. For the results in this section, the experiments and domains are designed to answer the following research questions:
|
| 102 |
+
|
| 103 |
+
• What kind of knowledge can be learned by the intrinsic reward? • How does the distribution of tasks drive the form of the intrinsic reward? • What is the benefit of the lifetime return objective over the episode return? • When is it important to provide the lifetime history as input to the intrinsic reward?
|
| 104 |
+
|
| 105 |
+
We investigate these research questions in various grid-world domains illustrated in Figure 2. For each domain, we trained an intrinsic reward function across many lifetimes and evaluated it by training an agent using the learned reward. We implemented the following baselines.
|
| 106 |
+
|
| 107 |
+
• Extrinsic-EP: A policy is trained with extrinsic rewards to maximise the episode return.
|
| 108 |
+
|
| 109 |
+

|
| 110 |
+
Figure 2: Illustration of domains. (a) The agent needs to find the goal location which gives a positive reward, but the goal is not visible to the agent. (b) Each object (A, B, and C) gives rewards. (c) The agent is required to first collect the key and visit one of the boxes (A, B, and C) to receive the corresponding reward. All objects are placed to random locations after every episode.
|
| 111 |
+
|
| 112 |
+

|
| 113 |
+
Figure 3: Evaluation of different reward functions averaged over 30 seeds. The learning curves show agents trained with our intrinsic reward (blue), with the extrinsic reward with the episodic return objective (orange) and the lifetime return objective (brown), and with a count-based exploration reward (green). The dashed line corresponds to a hand-designed near-optimal exploration strategy.
|
| 114 |
+
|
| 115 |
+
• Extrinsic-LIFE: A policy is trained with extrinsic rewards to maximise the lifetime return.
|
| 116 |
+
• Count-based (Strehl & Littman, 2008): A policy is trained with extrinsic rewards and countbased exploration bonus rewards.
|
| 117 |
+
• ICM (Pathak et al., 2017): A policy is trained with extrinsic rewards and curiosity rewards based on an inverse dynamics model.
|
| 118 |
+
|
| 119 |
+
Note that these baselines, unlike the learned intrinsic rewards, do not transfer any knowledge across different lifetimes. Throughout Sections 4.1-4.4, we focus on analysing what kind of knowledge is learned by the intrinsic reward depending on the nature of environments. We discuss the benefit of using the lifetime return and considering the lifetime history when learning the intrinsic reward in Section 4.5. The details of implementation and hyperparameters are described in Appendix B.
|
| 120 |
+
|
| 121 |
+
# 4.1 EXPLORING UNCERTAIN STATES
|
| 122 |
+
|
| 123 |
+
We designed ‘Empty Rooms’ (Figure 2a) to see whether the intrinsic reward can learn to encourage exploration of uncertain states like novelty-based exploration methods. The goal is to visit an invisible goal location, which is fixed within each lifetime but varies across lifetimes. Episode terminates when the goal is reached. Each lifetime consists of 200 episodes. From the agent’s perspective, its policy should visit the locations suggested by the intrinsic reward. From the intrinsic reward’s perspective, it should encourage the agent to go to unvisited locations to locate the goal, and once the goal is located to exploit that knowledge for the rest of that lifetime.
|
| 124 |
+
|
| 125 |
+
Figure 3 shows that our learned intrinsic reward was more efficient than extrinsic rewards and countbased exploration when training a new agent. We observed that the intrinsic reward learned two interesting strategies as visualised in Figure 4. While the goal is not found, it encourages exploration of unvisited locations, because it learned the prior that there exists a rewarding goal location somewhere. Once the goal is found the intrinsic reward encourages the agent to exploit it without further exploration, because it learned that there is only one goal. This result shows that curiosity about uncertain states can naturally emerge when various states can be rewarding in a domain, even when the rewarding states are fixed within an agent’s lifetime.
|
| 126 |
+
|
| 127 |
+

|
| 128 |
+
Figure 4: Visualisation of the first 3000 steps of an agent trained with different reward functions in Empty Rooms. (a) The blue and yellow squares represent the agent and the hidden goal, respectively. (b) The learned reward encourages the agent to visit many locations if the goal is not found (top). However, when the goal is found early, the intrinsic reward makes the agent exploit it without further exploration (bottom). (c) An agent trained only with extrinsic rewards explores poorly. (d-e) Both the count-based and ICM rewards tend to encourage exploration (top) but hinders exploitation when the goal is found (bottom).
|
| 129 |
+
|
| 130 |
+

|
| 131 |
+
Figure 5: Visualisation of the learned intrinsic reward in Random ABC, where the extrinsic rewards for A, B, and C are 0.2, -0.5, and 0.1 respectively. Each figure shows the sum of intrinsic rewards for a trajectory towards each object (A, B, and C). In the first episode, the intrinsic reward encourages the agent to explore A. In the second episode, the intrinsic reward encourages exploring C if A is visited (top) or vice versa (bottom). In episode 3, after both A and C are explored, the intrinsic reward encourages to revisit A (both top and bottom).
|
| 132 |
+
|
| 133 |
+
# 4.2 EXPLORING UNCERTAIN OBJECTS AND AVOIDING HARMFUL OBJECTS
|
| 134 |
+
|
| 135 |
+
In the previous domain, we considered uncertainty of where the reward (or goal location) is. We now consider dealing with uncertainty about the value of different objects. In the ‘Random ABC’ environment (see Figure 2b), for each lifetime the rewards for objects A, B, and C are uniformly sampled from $[ - 1 , \bar { 1 ] }$ , $[ - 0 . 5 , 0 ]$ , and $[ 0 , 0 . 5 ]$ respectively but are held fixed within the lifetime. A good intrinsic reward should learn that: 1) B should be avoided, 2) A and C have uncertain rewards, hence require systematic exploration (first go to one and then the other), and 3) once it is determined which of the two A or C is better, exploit that knowledge by encouraging the agent to repeatedly go to that object for the rest of the lifetime.
|
| 136 |
+
|
| 137 |
+
Figure 3 shows that the agent learned a near-optimal exploration-and-then-exploitation method with the learned intrinsic reward. Note that the agent cannot pass information about the reward for objects across episodes, as usual in reinforcement learning. The intrinsic reward can propagate such information across episodes and help the agent explore or exploit appropriately. We visualised the learned intrinsic reward for different actions sequences in Figure 5. The intrinsic rewards encourage the agent to explore towards A and C in the first few episodes. Once A and C are explored, the agent exploits the largest rewarding object. Throughout training, the agent is discouraged to visit B through negative intrinsic rewards. These results show that avoidance and curiosity about uncertain objects can potentially emerge if the environment has various or fixed rewarding objects.
|
| 138 |
+
|
| 139 |
+

|
| 140 |
+
|
| 141 |
+

|
| 142 |
+
Figure 6: Visualisation of the agent’s intrinsic and extrinsic rewards (left) and the entropy of its policy (right) on Non-stationary ABC. The task changes at $5 0 0 0 \mathrm { { t h } }$ episode (dashed vertical line). The intrinsic reward gives a negative reward even before the task changes (green rectangle) and makes the policy less peaky (entropy increases). As a result, the agent quickly adapts to the change.
|
| 143 |
+
Figure 7: Evaluation of different intrinsic reward architectures and objectives. For ‘LSTM’ the reward network has an LSTM taking the lifetime history as input. For ‘FF’ a feed-forward reward network takes only the current time-step. ‘Lifetime’ and ‘Episode’ means the lifetime and episodic return as objective respectively.
|
| 144 |
+
|
| 145 |
+
# 4.3 EXPLOITING INVARIANT CAUSAL RELATIONSHIP
|
| 146 |
+
|
| 147 |
+
To see how the intrinsic reward deals with causal relationship between objects, we designed ‘KeyBox’, which is similar to Random ABC except that there is a key in the room (see Figure 2c). The agent needs to collect the key first to open one of the boxes (A, B, and C) and receive the corresponding reward. The rewards for the objects are sampled from the same distribution as Random ABC. The key itself gives a neutral reward of 0. Moreover, the locations of the agent, the key, and the boxes are randomly sampled for each episode. As a result, the state space contains more than 3 billion distinct states and thus is infeasible to fully enumerate. Figure 3 shows that learned intrinsic reward leads to a near-optimal exploration. The agent trained with extrinsic rewards did not learn to open any box. The intrinsic reward captures that the key is necessary to open any box, which is true across many lifetimes of training. This demonstrates that the intrinsic reward can capture causal relationships between objects when the domain has this kind of invariant dynamics.
|
| 148 |
+
|
| 149 |
+
# 4.4 DEALING WITH NON-STATIONARITY
|
| 150 |
+
|
| 151 |
+
We investigated how the intrinsic reward deals with non-stationarity of tasks within a lifetime in our ‘Non-stationary ABC’ environment. Rewards are as follows: for A is either 1 or $- 1$ , for $\mathbf { B }$ i s $- 0 . 5$ , for C is the negative value of the reward for A. The rewards of A and C are swapped every 250 episodes. Each lifetime lasts 1000 episodes. Figure 3 shows that the agent with the learned intrinsic reward quickly recovered its performance when the task changes, whereas the baselines take more time to recover. Figure 6 shows how the learned intrinsic reward encourages the learning agent to react to the changing rewards. Interestingly, the intrinsic reward has learned to prepare for the change by giving negative rewards to the exploitation policy of the agent a few episodes before the task changes. In other words, the intrinsic reward starts to discourage the agent to commit to the current best rewarding object, thereby increasing entropy in the current policy in anticipation of the change, eventually making it easier to adapt quickly. This shows that the intrinsic reward can capture the (regularly) repeated non-stationarity across many lifetimes and make the agent intrinsically motivated not to commit too firmly to a policy, in anticipation of changes in the environment.
|
| 152 |
+
|
| 153 |
+
# 4.5 ABLATION STUDY
|
| 154 |
+
|
| 155 |
+
To study relative benefits of the proposed technical ideas, we conducted an ablation study 1) by replacing the long-term lifetime return objective $( G ^ { \mathrm { l i f e } } )$ with the episodic return $( G ^ { \mathrm { e p } } )$ and 2) by restricting the input of the reward network to the current time-step instead of the entire lifetime history. Figure 7 shows that the lifetime history was crucial to achieve good performance. This is reasonable because all domains require some past information (e.g., current object rewards in Random ABC, visited locations in Empty Rooms) to provide useful exploration strategies. It is also shown that the lifetime return objective was beneficial on Random ABC, Non-stationary ABC, and Key-Box. These domains require exploration across multiple episodes in order to find the optimal policy. For example, collecting an uncertain object (e.g., object A in Random ABC) is necessary even if the episode terminates with a negative reward. The episodic value function would directly penalise such an under-performed exploratory episode when computing meta-gradient, which prevents the intrinsic reward from learning to encourage exploration across episodes. On the other hand, such behaviour can be encouraged by the lifetime value function as long as it provides useful information to maximise the lifetime return in the long term.
|
| 156 |
+
|
| 157 |
+

|
| 158 |
+
Figure 8: Comparison to policy transfer methods.
|
| 159 |
+
|
| 160 |
+
# 5 EMPIRICAL INVESTIGATIONS: GENERALISATION VIA REWARDS
|
| 161 |
+
|
| 162 |
+
As noted above, rewards capture knowledge about what an agent’s goals should be rather than how it should behave. At the same time, transferring the latter in the form of policies is also feasible in our domains presented above. Here we confirm that by implementing and presenting results for the following two meta-learning methods:
|
| 163 |
+
|
| 164 |
+
• MAML (Finn et al., 2017a): A policy meta-learned from a distributions of tasks such that it can adapt quickly to the given task after a few parameter updates. • $\mathtt { R L } ^ { 2 }$ (Duan et al., 2016; Wang et al., 2016): An LSTM policy unrolled over the entire lifetime to maximise the lifetime return, which is pre-trained on a distributions of tasks.
|
| 165 |
+
|
| 166 |
+
Although all the methods we implemented including ours are designed to learn useful knowledge from a distribution of tasks, they have different objectives. Specifically, the objective of our method is to learn knowledge that is useful for training “randomly-initialised policies” by capturing “what to do”, whereas the goal of policy transfer methods is to directly transfer a useful policy for fast task adaptation by transferring “how to do” knowledge. In fact, it can be more efficient to transfer and reuse pre-trained policies instead of restarting from a random policy and learning using the learned rewards given a new task. Figure 8 indeed shows that $\mathrm { { R L ^ { 2 } } }$ performs better than our intrinsic reward approach. It is also shown that MAML and $\mathrm { { R L ^ { 2 } } }$ achieve good performance from the beginning, as they have already learned how to navigate the grid worlds and how to achieve the goals of the tasks. In our method, on the other hand, the agent starts from a random policy and relies on the learned intrinsic reward which indirectly tells it what to do. Nevertheless, our method outperforms MAML and achieves a comparable asymptotic performance to $\mathrm { { R L ^ { 2 } } }$ .
|
| 167 |
+
|
| 168 |
+
# 5.1 GENERALISATION TO DIFFERENT AGENT-ENVIRONMENT INTERFACES
|
| 169 |
+
|
| 170 |
+
In fact, our method can be interpreted as an instance of $\mathtt { R L } ^ { 2 }$ with a particular decomposition of parameters $\boldsymbol { \theta }$ and $\eta$ ), which uses policy gradient as a recurrent update (see Figure 1). While this modular structure may not be more beneficial than $\mathrm { { R L ^ { 2 } } }$ when evaluated with the same agent-environment interface, such a decomposition provides clear semantics of each module: the policy $\mathbf { \eta } ^ { ( \theta ) }$ captures “how to do” while the intrinsic reward $( \eta )$ captures “what to do”, and this enables interesting kinds of generalisations as we show below. Specifically, we show that “what” knowledge captured by the intrinsic reward can be reused by many different learning agents as follows.
|
| 171 |
+
|
| 172 |
+
Generalisation to unseen action spaces We first evaluated the learned intrinsic reward on new action spaces. Specifically, the intrinsic reward was used to train new agents with either 1) permuted actions, where the semantics of left/right and up/down are reversed, or 2) extended actions, with 4 additional actions that move diagonally. Figure 9a shows that the intrinsic reward provided useful rewards to new agents with different actions, even when these were not trained with those actions. This is possible because the intrinsic reward assigns rewards to the agent’s state changes rather than its actions. In other words, the intrinsic reward captures “what to do”, which makes it possible to generalise to new actions, as long as the goal remains the same. On the other hand, it is unclear how to generalise $\mathtt { R L } ^ { 2 }$ and MAML in this way.
|
| 173 |
+
|
| 174 |
+

|
| 175 |
+
Figure 9: Generalisation to new agent-environment interfaces in Random ABC. (a) ‘Permuted’ agents have different action semantics. ‘Extended’ agents have additional actions. (b) ‘AC-Intrinsic’ is the original actorcritic agent trained with the intrinsic reward. ‘Q-Intrinsic’ is a Q-learning agent with the intrinsic reward learned from actor-critic agents. ‘Q-Extrinsic’ is the Q-learning agent with the extrinsic reward. (c) shows the performances of the policy transfer baselines with permuted actions during evaluation.
|
| 176 |
+
|
| 177 |
+
Generalisation to unseen learning algorithms We further investigated how general the knowledge captured by the intrinsic reward is by evaluating the learned intrinsic reward on agents with different learning algorithms. In particular, after training the intrinsic reward from actor-critic agents, we evaluated it by training new agents through Q-learning while using the learned intrinsic reward as denoted by ‘Q-Intrinsic’ in Figure 9b. Interestingly, it turns out that the learned intrinsic reward is general enough to be useful for Q-learning agents, even though it was trained for actor-critic agents. Again, it is unclear how to generalise $\mathrm { { R L } ^ { 2 } }$ and MAML in this way.
|
| 178 |
+
|
| 179 |
+
Comparison to policy transfer While it wasn’t possible to apply the learned policy from $\mathtt { R L } ^ { 2 }$ and MAML when we extended the action space and when we changed the learning algorithm, we can do so when we keep the same number of actions and just permute them. As shown in Figure ${ 9 \mathrm { c } }$ , both $\mathrm { { R L ^ { 2 } } }$ and MAML generalise poorly when the action space is permuted for Random ABC, because the transferred policies are highly biased to the original action space. Again, this result highlights the difference between “what to do” knowledge captured by our approach and “how to do” knowledge captured by policies.
|
| 180 |
+
|
| 181 |
+
# 6 CONCLUSION
|
| 182 |
+
|
| 183 |
+
We revisited the optimal reward problem (Singh et al., 2009) and proposed a more scalable gradientbased method for learning intrinsic rewards. Through several proof-of-concept experiments, we showed that the learned non-stationary intrinsic reward can capture regularities within a distribution of environments or, over time, within a non-stationary environment. As a result, they were capable of encouraging both exploratory and exploitative behaviour across multiple episodes. In addition, some task-independent notions of intrinsic motivation such as curiosity emerged when they were effective for the distribution over tasks across lifetimes the agent was trained on. We also showed that the learned intrinsic rewards can generalise to different agent-environment interfaces such as different action spaces and different learning algorithms, whereas policy transfer methods fail to generalise. This highlights the difference between the “what” kind of knowledge captured by rewards and the “how” kind of knowledge captured by policies. The flexibility and range of knowledge captured by intrinsic rewards in our proof-of-concept experiments encourages further work towards combining different loci of knowledge to achieve greater practical benefits.
|
| 184 |
+
|
| 185 |
+
# REFERENCES
|
| 186 |
+
|
| 187 |
+
Marc G. Bellemare, Sriram Srinivasan, Georg Ostrovski, Tom Schaul, David Saxton, and Remi ´ Munos. Unifying count-based exploration and intrinsic motivation. CoRR, abs/1606.01868, 2016. URL http://arxiv.org/abs/1606.01868.
|
| 188 |
+
|
| 189 |
+
Yevgen Chebotar, Artem Molchanov, Sarah Bechtle, Ludovic Righetti, Franziska Meier, and Gaurav S. Sukhatme. Meta-learning via learned loss. CoRR, abs/1906.05374, 2019. URL http: //arxiv.org/abs/1906.05374.
|
| 190 |
+
|
| 191 |
+
Jack Clark and Dario Amodei. Faulty reward functions in the wild. CoRR, 2016. URL https: //blog.openai.com/.
|
| 192 |
+
|
| 193 |
+
Ignasi Clavera, Anusha Nagabandi, Ronald S. Fearing, Pieter Abbeel, Sergey Levine, and Chelsea Finn. Learning to adapt: Meta-learning for model-based control. ArXiv, abs/1803.11347, 2018.
|
| 194 |
+
|
| 195 |
+
Yan Duan, John Schulman, Xi Chen, Peter L Bartlett, Ilya Sutskever, and Pieter Abbeel. Rl2: Fast reinforcement learning via slow reinforcement learning. arXiv preprint arXiv:1611.02779, 2016.
|
| 196 |
+
|
| 197 |
+
Yan Duan, Marcin Andrychowicz, Bradly Stadie, OpenAI Jonathan Ho, Jonas Schneider, Ilya Sutskever, Pieter Abbeel, and Wojciech Zaremba. One-shot imitation learning. In Advances in neural information processing systems, pp. 1087–1098, 2017.
|
| 198 |
+
|
| 199 |
+
Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the 34th International Conference on Machine LearningVolume 70, pp. 1126–1135. JMLR. org, 2017a.
|
| 200 |
+
|
| 201 |
+
Chelsea Finn, Tianhe Yu, Tianhao Zhang, Pieter Abbeel, and Sergey Levine. One-shot visual imitation learning via meta-learning. arXiv preprint arXiv:1709.04905, 2017b.
|
| 202 |
+
|
| 203 |
+
G. Gordon and E. Ahissar. Reinforcement active learning hierarchical loops, 2011.
|
| 204 |
+
|
| 205 |
+
Xiaoxiao Guo, Satinder Singh, Richard Lewis, and Honglak Lee. Deep learning for reward design to improve monte carlo tree search in atari games. arXiv preprint arXiv:1604.07095, 2016.
|
| 206 |
+
|
| 207 |
+
Anna Harutyunyan, Sam Devlin, Peter Vrancx, and Ann Nowe. Expressing arbitrary reward func- ´ tions as potential-based advice. In Twenty-Ninth AAAI Conference on Artificial Intelligence, 2015.
|
| 208 |
+
|
| 209 |
+
Laurent Itti and Pierre F. Baldi. Bayesian surprise attracts human attention. In Y. Weiss, B. Scholkopf, and J. C. Platt (eds.), ¨ Advances in Neural Information Processing Systems 18, pp. 547–554. MIT Press, 2006. URL http://papers.nips.cc/paper/ 2822-bayesian-surprise-attracts-human-attention.pdf.
|
| 210 |
+
|
| 211 |
+
Cam Linke, Nadia M. Ady, Martha White, Thomas Degris, and Adam White. Adapting behaviour via intrinsic reward: A survey and empirical study. CoRR, abs/1906.07865, 2019. URL http: //arxiv.org/abs/1906.07865.
|
| 212 |
+
|
| 213 |
+
Luke Metz, Niru Maheswaranathan, Brian Cheung, and Jascha Sohl-Dickstein. Meta-learning update rules for unsupervised representation learning. In International Conference on Learning Representations, volume 8, 2019.
|
| 214 |
+
|
| 215 |
+
Marco Mirolli and Gianluca Baldassarre. Functions and Mechanisms of Intrinsic Motivations, pp. 49–72. Springer Berlin Heidelberg, Berlin, Heidelberg, 2013. ISBN 978-3- 642-32375-1. doi: 10.1007/978-3-642-32375-1 3. URL https://doi.org/10.1007/ 978-3-642-32375-1_3.
|
| 216 |
+
|
| 217 |
+
Andrew Y. Ng, Daishi Harada, and Stuart J. Russell. Policy invariance under reward transformations: Theory and application to reward shaping. In Proceedings of the Sixteenth International Conference on Machine Learning, ICML ’99, pp. 278–287, San Francisco, CA, USA, 1999. Morgan Kaufmann Publishers Inc. ISBN 1-55860-612-2. URL http://dl.acm.org/citation. cfm?id $\underline { { \underline { { \mathbf { \Pi } } } } }$ 645528.657613.
|
| 218 |
+
|
| 219 |
+
Georg Ostrovski, Marc G. Bellemare, Aaron van den Oord, and R ¨ emi Munos. Count-based explo-´ ration with neural density models. CoRR, abs/1703.01310, 2017. URL http://arxiv.org/ abs/1703.01310.
|
| 220 |
+
|
| 221 |
+
Deepak Pathak, Pulkit Agrawal, Alexei A. Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. CoRR, abs/1705.05363, 2017. URL http://arxiv.org/abs/ 1705.05363.
|
| 222 |
+
|
| 223 |
+
Pascal Poupart, Nikos Vlassis, Jesse Hoey, and Kevin Regan. An analytic solution to discrete bayesian reinforcement learning. In Proceedings of the 23rd International Conference on Machine Learning, ICML ’06, pp. 697–704, New York, NY, USA, 2006. ACM. ISBN 1-59593-383- 2. doi: 10.1145/1143844.1143932. URL http://doi.acm.org/10.1145/1143844. 1143932.
|
| 224 |
+
|
| 225 |
+
Jette Randlov and Preben Alstrm. Learning to drive a bicycle using reinforcement learning and shaping. pp. 463–471, 01 1998.
|
| 226 |
+
|
| 227 |
+
Matthew Schlegel, Andrew Patterson, Adam White, and Martha White. Discovery of predictive representations with a network of general value functions, 2018. URL https://openreview. net/forum?id ${ . } = { }$ ryZElGZ0Z.
|
| 228 |
+
|
| 229 |
+
Juergen Schmidhuber, Jieyu Zhao, and MA Wiering. Simple principles of metalearning. ¨ Technical report IDSIA, 69:1–23, 1996.
|
| 230 |
+
|
| 231 |
+
Jurgen Schmidhuber. Curious model-building control systems. In ¨ In Proc. International Joint Conference on Neural Networks, Singapore, pp. 1458–1463. IEEE, 1991a.
|
| 232 |
+
|
| 233 |
+
Jurgen Schmidhuber. A possibility for implementing curiosity and boredom in model-building neu- ¨ ral controllers, 1991b.
|
| 234 |
+
|
| 235 |
+
Satinder Singh, Richard L. Lewis, and Andrew G. Barto. Where do rewards come from?, 2009.
|
| 236 |
+
|
| 237 |
+
Satinder Singh, Richard L. Lewis, and Andrew G. Barto. Intrinsically motivated reinforcement learning: An evolutionary perspective. In L. K. Saul, Y. Weiss, and L. Bottou (eds.), IEEE TRANSACTIONS ON AUTONOMOUS MENTAL DEVELOPMENT. 2010.
|
| 238 |
+
|
| 239 |
+
Jonathan Sorg, Richard L Lewis, and Satinder Singh. Reward design via online gradient ascent. In J. D. Lafferty, C. K. I. Williams, J. Shawe-Taylor, R. S. Zemel, and A. Culotta (eds.), Advances in Neural Information Processing Systems 23, pp. 2190–2198. Curran Associates, Inc., 2010. URL http://papers.nips.cc/paper/ 4146-reward-design-via-online-gradient-ascent.pdf.
|
| 240 |
+
|
| 241 |
+
Bradly C Stadie, Ge Yang, Rein Houthooft, Xi Chen, Yan Duan, Yuhuai Wu, Pieter Abbeel, and Ilya Sutskever. Some considerations on learning to explore via meta-reinforcement learning. arXiv preprint arXiv:1803.01118, 2018.
|
| 242 |
+
|
| 243 |
+
Alexander L Strehl and Michael L Littman. An analysis of model-based interval estimation for markov decision processes. Journal of Computer and System Sciences, 74(8):1309–1331, 2008.
|
| 244 |
+
|
| 245 |
+
Richard S. Sutton. Integrated architectures for learning, planning, and reacting based on approximating dynamic programming. In In Proceedings of the Seventh International Conference on Machine Learning, pp. 216–224. Morgan Kaufmann, 1990.
|
| 246 |
+
|
| 247 |
+
Richard S Sutton, David A McAllester, Satinder Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. In Advances in neural information processing systems, pp. 1057–1063, 2000.
|
| 248 |
+
|
| 249 |
+
Sebastian Thrun and Lorien Pratt. Learning to learn: Introduction and overview. In Learning to learn, pp. 3–17. Springer, 1998.
|
| 250 |
+
|
| 251 |
+
Vivek Veeriah, Matteo Hessel, Zhongwen Xu, Richard Lewis, Janarthanan Rajendran, Junhyuk Oh, Hado van Hasselt, David Silver, and Satinder Singh. Discovery of useful questions as auxiliary tasks. CoRR, abs/1909.04607, 2019. URL http://arxiv.org/abs/1909.04607.
|
| 252 |
+
|
| 253 |
+
Jane X. Wang, Zeb Kurth-Nelson, Dhruva Tirumala, Hubert Soyer, Joel Z. Leibo, Remi Munos, ´ Charles Blundell, Dharshan Kumaran, and Matthew M Botvinick. Learning to reinforcement learn. ArXiv, abs/1611.05763, 2016.
|
| 254 |
+
|
| 255 |
+
Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Mach. Learn., 8(3-4):229–256, May 1992. ISSN 0885-6125. doi: 10.1007/ BF00992696.
|
| 256 |
+
Kelvin Xu, Ellis Ratner, Anca Dragan, Sergey Levine, and Chelsea Finn. Learning a prior over intent via meta-inverse reinforcement learning. arXiv preprint arXiv:1805.12573, 2018a.
|
| 257 |
+
Tianbing Xu, Qiang Liu, Liang Zhao, and Jian Peng. Learning to explore with meta-policy gradient. arXiv preprint arXiv:1803.05044, 2018b.
|
| 258 |
+
Zhongwen Xu, Hado P van Hasselt, and David Silver. Meta-gradient reinforcement learning. In Advances in Neural Information Processing Systems, pp. 2396–2407, 2018c.
|
| 259 |
+
Zeyu Zheng, Junhyuk Oh, and Satinder Singh. On learning intrinsic rewards for policy gradient methods. In Advances in Neural Information Processing Systems, pp. 4644–4654, 2018.
|
| 260 |
+
|
| 261 |
+
# A DERIVATION OF INTRINSIC REWARD UPDATE
|
| 262 |
+
|
| 263 |
+
Following the conventional notation in RL, we define $v _ { T } ( \tau _ { t } | \eta , \theta _ { 0 } )$ as the state-value function that estimates the expected future lifetime return given the lifetime history $\tau _ { t }$ , the task $\tau$ , initial policy parameters $\theta _ { 0 }$ and the intrinsic reward parameters $\eta$ . Specially, $v _ { T } ( \tau _ { 0 } | \eta , \theta _ { 0 } )$ denotes the expected lifetime return at the starting state, i.e.,
|
| 264 |
+
|
| 265 |
+
$$
|
| 266 |
+
v _ { T } ( \tau _ { 0 } | \eta , \theta _ { 0 } ) = \mathbb { E } _ { \tau \sim p _ { \eta } ( \tau | \theta _ { 0 } ) } \left[ G ^ { \mathrm { l i f e } } \right] ,
|
| 267 |
+
$$
|
| 268 |
+
|
| 269 |
+
where $G ^ { \mathrm { l i f e } }$ denotes the lifetime return in task $\tau$ . We also define the action-value function $q _ { T } ( \tau _ { t } , a _ { t } | \eta , \theta _ { 0 } )$ accordingly as the expected future lifetime return given the lifetime history $\tau _ { t }$ and an action $a _ { t }$ .
|
| 270 |
+
|
| 271 |
+
The objective function of the optimal reward problem is defined as:
|
| 272 |
+
|
| 273 |
+
$$
|
| 274 |
+
\begin{array} { r l } & { J ( \eta ) = \mathbb { E } _ { \theta _ { 0 } \sim \Theta , \mathcal { T } \sim p ( \mathcal { T } ) } \left[ \mathbb { E } _ { \tau \sim p _ { \eta } ( \tau \mid \theta _ { 0 } ) } \left[ G ^ { \mathrm { l i f e } } \right] \right] } \\ & { \qquad = \mathbb { E } _ { \theta _ { 0 } \sim \Theta , \mathcal { T } \sim p ( \mathcal { T } ) } \left[ v _ { \mathcal { T } } ( \tau _ { 0 } \vert \eta , \theta _ { 0 } ) \right] , } \end{array}
|
| 275 |
+
$$
|
| 276 |
+
|
| 277 |
+
where $\Theta$ and $p ( \mathcal { T } )$ are an initial policy distribution and a task distribution respectively.
|
| 278 |
+
|
| 279 |
+
Assuming the task $\tau$ and the initial policy parameters $\theta _ { 0 }$ are given, we omit $\tau$ and $\theta _ { 0 }$ for the rest of equations for simplicity. Let $\pi _ { \eta } ( \cdot | \tau _ { t } ) = \dot { \pi } _ { \theta _ { t } } \bar { ( \cdot | s _ { t } ) }$ be the probability distribution over actions at time $t$ given the history $\tau _ { t }$ , where $\dot { \theta _ { t } } = f _ { \eta } ( \tau _ { t } , \theta _ { 0 } )$ is the policy parameters at time $t$ in the lifetime. We can derive the meta-gradient with respect to $\eta$ by the following:
|
| 280 |
+
|
| 281 |
+
$$
|
| 282 |
+
\begin{array} { r l } & \begin{array} { r l } & { ( \gamma _ { 1 } , \gamma _ { 2 } ) } \\ & { = \nabla _ { x } \cdot \nabla _ { x } \cdot \rho ( x _ { 2 } ) ) \cdot } \\ & { = \nabla _ { x } \cdot \left[ \sum _ { \alpha } \cdot \nabla _ { x } \cdot ( \alpha ) \ln ^ { \beta } [ \gamma _ { \alpha } ] \cdot \rho _ { \alpha } ( x _ { \beta } , \alpha , \eta ) \right] } \\ & { = \nabla _ { x } \cdot \left[ \nabla _ { x } \cdot \sigma _ { \alpha } ( x _ { \beta } ) \mathrm { e r f o r } [ \gamma _ { \alpha } , \alpha , \eta ) \right] } \\ & { \quad - \frac { 1 } { \sqrt { \alpha } } \left[ \nabla _ { x } \cdot \sigma _ { \alpha } ( x _ { \beta } ) \mathrm { e r f o r } [ \gamma _ { \alpha } , \alpha , \eta ) ] - \sigma _ { \alpha } ( x _ { \beta } ) \cdot \nabla _ { x } \cdot \rho _ { \alpha } ( x _ { \beta } ) \cdot \sigma _ { \alpha } ( x _ { \beta } ) \right] } \\ & { = - \frac { 1 } { \sqrt { \alpha } } \left[ \nabla _ { x } \cdot \sigma _ { \alpha } ( x _ { \beta } ) \mathrm { e r f o r } [ \gamma _ { \alpha } , \gamma _ { \alpha } , \eta ) ] \cdot \Pi _ { \alpha \eta \gamma } \cdot \sigma _ { \alpha } ( x _ { \beta } ) \cdot \sigma _ { \alpha } ( x _ { \beta } ) \right] \cdot \nabla _ { x } \cdot \rho _ { \alpha } ( x _ { \beta } ) \cdot \sigma _ { \alpha } ( x _ { \eta } ) \cdot \sigma _ { \alpha } ( x _ { \eta } ) \cdot \sigma _ { \alpha } ( x _ { \beta } ) \cdot } \\ & { \quad - \frac { 1 } { \sqrt { \alpha } } \left[ \nabla _ { x } \cdot \sigma _ { \alpha } ( x _ { \beta } ) \mathrm { e r f o r } [ \gamma _ { \alpha } , \eta ] \cdot \sigma _ { \alpha } ( x _ { \eta } ) ) \right] \cdot \Pi _ { \alpha \eta \gamma } \cdot \rho _ { \alpha } ( x _ { \beta } ) \cdot \nabla _ { x } \cdot \rho _ { \alpha } ( x _ { \eta } ) \cdot \nabla _ { x } \cdot \rho _ { \alpha } ( x _ { \eta } ) \cdot \sigma _ { \alpha } ( x _ { \beta } ) \right] } \\ & = \frac { 1 } { \sqrt { \alpha } } \left[ \nabla _ { x } \cdot \sigma _ { \alpha } ( x _ { \beta } ) \mathrm { e r f o r } [ \gamma _ { \alpha } , \eta \end{array} \end{array}
|
| 283 |
+
$$
|
| 284 |
+
|
| 285 |
+
where $\begin{array} { r } { G _ { t } = \sum _ { k = t } ^ { T - 1 } r _ { k } } \end{array}$ is the lifetime return given the history $\tau _ { t }$ , and we assume the discount factor $\gamma = 1$ for brevity. Thus, the derivative of the overall objective is:
|
| 286 |
+
|
| 287 |
+
$$
|
| 288 |
+
\begin{array} { r } { \nabla _ { \eta } J ( \eta ) = \mathbb { E } _ { \theta _ { 0 } \sim \Theta , \mathcal { T } \sim p ( \mathcal { T } ) } \left[ \mathbb { E } _ { \tau _ { t } \sim p ( \tau _ { t } \mid \eta , \theta _ { 0 } ) } \left[ G _ { t } \nabla _ { \theta _ { t } } \log \pi _ { \theta _ { t } } ( a _ { t } | s _ { t } ) \nabla _ { \eta } \theta _ { t } \right] \right] . } \end{array}
|
| 289 |
+
$$
|
| 290 |
+
|
| 291 |
+
# B EXPERIMENTAL DETAILS
|
| 292 |
+
|
| 293 |
+
# B.1 IMPLEMENTATION DETAILS
|
| 294 |
+
|
| 295 |
+
We used mini-batch update to reduce the variance of meta-gradient estimation. Specifically, we ran 64 lifetimes in parallel, each with a randomly sample task and randomly initialised policy parameters. We took the average of the meta-gradients from each lifetime to compute the update to the intrinsic reward parameters $( \eta )$ . We ran $2 \times 1 0 ^ { 5 }$ updates to $\eta$ at training time. We used arctan activation on the output of the intrinsic reward. The hyperparameters used for each domain are described in Table 1.
|
| 296 |
+
|
| 297 |
+
Table 1: Hyperparameters.
|
| 298 |
+
|
| 299 |
+
<table><tr><td>Hyperparameters</td><td>Empty Rooms</td><td>Random ABC</td><td>Key-Box</td><td>Non-stationary ABC</td></tr><tr><td>Time limit per episode</td><td>100</td><td>10</td><td>100</td><td>10</td></tr><tr><td>Numberof episodes per lifetime</td><td>200</td><td>50</td><td>5000</td><td>1000</td></tr><tr><td>Inner unroll length</td><td>8</td><td>4</td><td>16</td><td>4</td></tr><tr><td>Entropy regularisation</td><td>0.01</td><td>0.01</td><td>0.01</td><td>0.05</td></tr><tr><td>Policy architecture</td><td colspan="4">Conv(16)-FC(64)</td></tr><tr><td>Policy optimiser</td><td colspan="4">SGD SGD</td></tr><tr><td>Policy learning rate</td><td colspan="4">Adam 0.1 0.1 0.001</td></tr><tr><td>Reward architecture</td><td colspan="4">Conv(16)-FC(64)-LSTM(64) Adam</td></tr><tr><td>Reward optimiser Reward learning rate</td><td colspan="4">0.001</td></tr><tr><td>Outer unroll length</td><td colspan="4">5</td></tr><tr><td>Inner discount factor</td><td colspan="4">0.9</td></tr><tr><td>Outer discounter factor</td><td colspan="4"></td></tr><tr><td></td><td colspan="4">0.99</td></tr></table>
|
| 300 |
+
|
| 301 |
+
# B.2 DOMAINS
|
| 302 |
+
|
| 303 |
+
We will consider five task distributions, instantiated within one of the three main gridworld domains shown in Figure 2. In all cases the agent has four actions available, corresponding to moving up, down, left and right. However the topology of the gridworld and the reward structure may vary.
|
| 304 |
+
|
| 305 |
+
# B.2.1 EMPTY ROOMS
|
| 306 |
+
|
| 307 |
+
Figure 2a shows the layout of the Empty Rooms domain. There are four rooms in this domain. The agent always starts at the centre of the top-left room. One and only one cell is rewarding, which is called the goal. The goal is invisible. The goal location is sampled uniformly from all cells at the beginning of each lifetime. An episode terminates when the agent reaches the goal location or a time limit of 100 steps is reached. Each lifetime consists of 200 episodes. The agent needs to explore all rooms to find the goal and then goes to the goal afterwards.
|
| 308 |
+
|
| 309 |
+
# B.2.2 ABC WORLD
|
| 310 |
+
|
| 311 |
+
Figure 2b shows the layout of the ABC World domain. There is a single 5 by 5 room, with three objects (denoted by A, B, C). All object provides reward upon reaching them. An episode terminates when the agent reaches an object or a time limit of 10 steps is reached. We consider three different versions of this environment: Fixed ABC, Random $A B C$ and Non-stationary ABC. In the Fixed ABC environment, each lifetime has 200 episodes. The reward associated with each object is fixed across lifetimes. Specifically, the rewards for objects A, B, and C are 1, $- 0 . 5$ , and 0.5 respectively. The optimal policy is to always collect A. In the Random ABC environment, each lifetime has 50 episodes. The reward associated with each object is randomly sampled for each lifetime and is held fixed within a lifetime. Thus, the environment is stationary from an agent’s perspective but non-stationary from the reward function’s perspective. Specifically, the rewards for A, B, and C are uniformly sampled from $[ - 1 , 1 ]$ , $[ - 0 . 5 , 0 ]$ , and [0.0.5] respectively. The optimal behaviour is to explore A and C at the beginning of a lifetime to assess which is the better, and then commits to the better one for all subsequent episode. In the non-stationary ABC environment, each lifetime has
|
| 312 |
+
|
| 313 |
+

|
| 314 |
+
Figure 10: Evaluation of different rewards in the Fixed ABC domain. The $\mathbf { X }$ -axis shows the number of episodes within a single lifetime; the y-axis measures the episode return.
|
| 315 |
+
|
| 316 |
+
1000 episodes. The rewards for A, B, and C are 1, $- 0 . 5$ , and $- 1$ respectively. The rewards for A and C swap every 250 episodes.
|
| 317 |
+
|
| 318 |
+
# B.2.3 KEY BOX WORLD
|
| 319 |
+
|
| 320 |
+
Figure 2c shows the Key Box World domain. In this domain, there is a key and three boxes, A, B, and C. In order to open any box, the agent must pick up the key first. The rewards for A, B, and C are uniformly sampled from $[ - 1 , 1 ]$ , $[ - 0 . 5 , 0 ]$ , and $[ 0 , 0 . 5 ]$ respectively for each lifetime. An episode terminates when the agent opens a box or a time limit of 100 steps is reached. Each lifetime consists of 5000 episodes.
|
| 321 |
+
|
| 322 |
+
# B.3 HAND-DESIGNED NEAR-OPTIMAL EXPLORATION STRATEGY FOR RANDOM ABC
|
| 323 |
+
|
| 324 |
+
We hand-designed a heuristic strategy for the Random ABC domain. We assume the agent has the prior knowledge that B is always bad and A and C have uncertain rewards. Therefore, the heuristic is to go to A in the first episode, go to C in the second episode, and then go to the better one in the remaining episodes in the lifetime. We view this heuristic as an upper-bound because it always finds the best object and can arbitrarily control the agent’s behaviour.
|
| 325 |
+
|
| 326 |
+
# C ADDITIONAL EMPIRICAL RESULT
|
| 327 |
+
|
| 328 |
+
# C.1 EXPLOITING OPTIMAL BEHAVIOUR ON A FIXED TASK
|
| 329 |
+
|
| 330 |
+
To investigate what the intrinsic reward learns in a fixed task, we designed the ‘Fixed ABC’ environment (see Figure 2b). The reward for each object (A, B, and C) is fixed within and across lifetimes. When the agent collects an object, it receives the corresponding reward of 1, $- 0 . 5$ , or 0.5 for object A, B, or C respectively, and the episode terminates. Each lifetime contains 200 episodes. The optimal policy is to always collect A. The optimal reward should capture the regularity of the environment that object A has the highest reward and drive the agent towards object A.
|
| 331 |
+
|
| 332 |
+
Figure 10 shows that agents trained with the learned intrinsic reward learn optimal policies within a few episodes. This indicates that the intrinsic reward memorises the fixed optimal behaviour during training and assigns rewards accordingly to aid learning during evaluation. The result on Fixed ABC is not particularly surprising. In a fixed task in a stationary environment, an optimal reward function does not need to encourage exploration, and helps the agent to direct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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "WHAT CAN LEARNED INTRINSIC REWARDS CAPTURE? ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
173,
|
| 8 |
+
101,
|
| 9 |
+
820,
|
| 10 |
+
121
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
145,
|
| 20 |
+
398,
|
| 21 |
+
172
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
210,
|
| 32 |
+
544,
|
| 33 |
+
226
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Reinforcement learning agents can include different components, such as policies, value functions, state representations, and environment models. Any or all of these can be the loci of knowledge, i.e., structures where knowledge, whether given or learned, can be deposited and reused. Regardless of its composition, the objective of an agent is behave so as to maximise the sum of a suitable scalar function of state: the reward. As far as the learning algorithm is concerned, these rewards are typically given and immutable. In this paper we instead consider the proposition that the reward function itself may be a good locus of knowledge. This is consistent with a common use, in the literature, of hand-designed intrinsic rewards to improve the learning dynamics of an agent. We adopt the multi-lifetime setting of the Optimal Rewards Framework, and propose to meta-learn an intrinsic reward function from experience that allows agents to maximise their extrinsic rewards accumulated until the end of their lifetimes. Rewards as a locus of knowledge provide guidance on “what” the agent should strive to do rather than on knowledge of “how” the agent should behave that is more directly captured in policies or value functions for example. Thus, our focus here is on demonstrating the following: (1) that it is feasible to meta-learn good reward functions, (2) to show that the learned reward functions can capture interesting kinds of “what” knowledge, and (3) that because of the indirectness of this form of knowledge the learned reward functions can generalise to other kinds of agents and to changes in the dynamics of the environment. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
239,
|
| 43 |
+
764,
|
| 44 |
+
530
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Reinforcement learning agents can store knowledge in their policies, value functions, state representations, and models of the environment dynamics. These components can be the loci of knowledge in the sense that they are structures in which knowledge, either learned from experience by the agent’s algorithm or given by the agent-designer, can be deposited and reused. The objective of the agent is defined by a reward function, and the goal is to learn to act so as to optimise cumulative rewards. In this paper we consider the proposition that the reward function itself is a good locus of knowledge. This is unusual in that most prior work treats the reward as given and immutable, at least as far as the learning algorithm is concerned. At the same time, especially in challenging reinforcement-learning problems, agent designers do find it convenient to modify the reward function given to the agent to facilitate learning. It is therefore useful to distinguish between two kinds of reward functions (Singh et al., 2010): extrinsic rewards define the task and capture the designer’s preferences over agent behaviour, whereas intrinsic rewards serve as helpful signals to improve the learning dynamics of the agent. Intrinsic rewards are typically hand-designed and then often added to the immutable extrinsic rewards to form the reward optimised by the agent. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
174,
|
| 53 |
+
547,
|
| 54 |
+
825,
|
| 55 |
+
742
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Most existing work on intrinsic rewards falls into two broad categories: task-dependent and taskindependent. Both are typically designed by hand. Hand-designing task-dependent rewards can be fraught with difficulty as even minor misalignment between the actual reward and the intended bias can lead to unintended and sometimes catastrophic consequences (Clark & Amodei, 2016). Task-independent intrinsic rewards are also typically hand-designed, often based on an intuitive understanding of animal/human behaviour or on heuristics on desired exploratory behaviour. It can, however, be hard to match such task-independent intrinsic rewards to the specific learning dynamics induced by the interaction between agent and environment. The motivation for this paper is our interest in the comparatively under-explored possibility of learned (not hand-designed) taskdependent intrinsic rewards (see Zheng et al., 2018, for previous work). ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
174,
|
| 64 |
+
750,
|
| 65 |
+
825,
|
| 66 |
+
888
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "We emphasise that it is not our objective to show that rewards are a better locus of learned knowledge than others; the best locus likely depends on the kind of knowledge that is most useful in a given task. In particular, knowledge captured in rewards provides guidance on “what” the agent should strive to do while knowledge captured in policies provides guidance on “how” an agent should behave. Knowledge about “what” captured in rewards is indirect and thus slower to make an impact on behaviour because it takes effect through learning, while knowledge about “how” can directly have an immediate impact on behaviour. At the same time, because of its indirectness the former can generalise better to changes in dynamics and learning architectures. Therefore, instead of comparing different loci of knowledge, the purpose of this paper is to show that it is feasible to capture useful learned knowledge in rewards and to study the kinds of knowledge that can be captured. ",
|
| 73 |
+
"bbox": [
|
| 74 |
+
174,
|
| 75 |
+
895,
|
| 76 |
+
821,
|
| 77 |
+
924
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "",
|
| 84 |
+
"bbox": [
|
| 85 |
+
174,
|
| 86 |
+
103,
|
| 87 |
+
825,
|
| 88 |
+
214
|
| 89 |
+
],
|
| 90 |
+
"page_idx": 1
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"type": "text",
|
| 94 |
+
"text": "How should we measure the usefulness of a learned reward function? Ideally, we would like to measure the effect the learned reward function has on the learning dynamics. Of course, learning happens over multiple episodes, indeed it happens over an entire lifetime. Therefore, we choose lifetime return, the cumulative extrinsic reward obtained by the agent over its entire lifetime, as the main objective. To this end, we adopt the multi-lifetime setting of the Optimal Rewards Framework (Singh et al., 2009) in which an agent is initialised randomly at the start of each lifetime and then faces a stationary or non-stationary task drawn from some distribution. In this setting, the only knowledge that is transferred across lifetimes is the reward instead of the policy. Specifically, the goal is to learn a single intrinsic reward function that, when used to adapt the agent’s policy using a standard episodic RL algorithm, ends up optimising the cumulative extrinsic reward over its lifetime. ",
|
| 95 |
+
"bbox": [
|
| 96 |
+
174,
|
| 97 |
+
222,
|
| 98 |
+
825,
|
| 99 |
+
361
|
| 100 |
+
],
|
| 101 |
+
"page_idx": 1
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"type": "text",
|
| 105 |
+
"text": "In previous work, good reward functions were found via exhaustive search, limiting the range of applicability of the framework. Here, we develop a more scalable gradient-based method ( $\\mathrm { { X u } }$ et al., 2018c) for learning the intrinsic rewards by exploiting the fact the interaction between the policy update and the reward function is differentiable (Zheng et al., 2018). Since it is infeasible to backpropgate through the full computation graph that spans across the entire lifetime, we truncate the unrolled computation graph of learning updates up to some horizon. However, we handle the long-term credit assignment by using a lifetime value function that estimates the remaining lifetime return, which needs to take into account changing policies. Our main scientific contributions are a sequence of empirical studies on carefully designed environments that show how our learned intrinsic rewards can capture interesting regularities in the interaction between a learning agent and an environment sampled from a distribution, and how the learned intrinsic reward can generalise to changed dynamics and agent architectures. Collectively, our contributions present an effective approach to the discovery of intrinsic rewards that can help an agent optimise the extrinsic rewards collected in a lifetime. ",
|
| 106 |
+
"bbox": [
|
| 107 |
+
174,
|
| 108 |
+
367,
|
| 109 |
+
825,
|
| 110 |
+
561
|
| 111 |
+
],
|
| 112 |
+
"page_idx": 1
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"type": "text",
|
| 116 |
+
"text": "1 RELATED WORK ",
|
| 117 |
+
"text_level": 1,
|
| 118 |
+
"bbox": [
|
| 119 |
+
178,
|
| 120 |
+
584,
|
| 121 |
+
344,
|
| 122 |
+
601
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "Hand-designed Rewards There is a long history of work on designing rewards to accelerate learning in reinforcement learning (RL). Reward shaping aims to design task-specific rewards towards known optimal behaviours, typically requiring domain knowledge. Both the benefits (Randlov & Alstrm, 1998; Ng et al., 1999; Harutyunyan et al., 2015) and the difficulty (Clark & Amodei, 2016) of task-specific reward shaping have been studied. On the other hand, many intrinsic rewards have been proposed to encourage exploration, inspired by animal behaviours. Examples include prediction error (Schmidhuber, 1991b; Gordon & Ahissar, 2011; Mirolli & Baldassarre, 2013; Pathak et al., 2017; Schmidhuber, 1991a), surprise (Itti & Baldi, 2006), weight change (Linke et al., 2019), and state-visitation counts (Sutton, 1990; Poupart et al., 2006; Strehl & Littman, 2008; Bellemare et al., 2016; Ostrovski et al., 2017). Although these kinds of intrinsic rewards are not domain-specific, they are often not well-aligned with the task that the agent tries to solve, and ignores the effect on the agent’s learning dynamics. In contrast, our work aims to learn intrinsic rewards from data that take into account the agent’s learning dynamics without requiring prior knowledge from a human. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
614,
|
| 132 |
+
825,
|
| 133 |
+
795
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "Rewards Learned from Data There have been a few attempts to learn useful intrinsic rewards from data. The optimal reward framework (Singh et al., 2009) proposed to learn an optimal reward function that allows agents to solve a distribution of tasks quickly using random search. We revisit this problem in this paper and propose a more scalable gradient-based approach. Although there have been follow-up works (Sorg et al., 2010; Guo et al., 2016) that uses a gradient-based method, they consider a non-parameteric policy using Monte-Carlo Tree Search (MCTS). Our work is closely related to LIRPG (Zheng et al., 2018) which proposed a meta-gradient method to learn intrinsic rewards. However, LIRPG considers a single task in a single lifetime with a myopic episode return objective, which is limited in that it does not allow exploration across episodes or generalisation to different agents. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
811,
|
| 143 |
+
823,
|
| 144 |
+
924
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "image",
|
| 150 |
+
"img_path": "images/3ef9c31f414d6956d1f1b75935eeddc3f4d63e06416cbadbda17f6bae752e2c6.jpg",
|
| 151 |
+
"image_caption": [
|
| 152 |
+
"Figure 1: Illustration of the proposed intrinsic reward learning framework. The intrinsic reward $r _ { \\eta }$ is used to update the agent’s parameter $\\theta _ { i }$ throughout its lifetime which consists of many episodes. The goal is to find the optimal intrinsic reward parameters $\\eta ^ { * }$ across many lifetimes that maximises the lifetime return $( G ^ { \\mathrm { l i f e } } )$ given any randomly initialised agents and possibly non-stationary tasks drawn from some distribution $p ( \\mathcal T )$ . "
|
| 153 |
+
],
|
| 154 |
+
"image_footnote": [],
|
| 155 |
+
"bbox": [
|
| 156 |
+
267,
|
| 157 |
+
99,
|
| 158 |
+
725,
|
| 159 |
+
185
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 2
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "",
|
| 166 |
+
"bbox": [
|
| 167 |
+
174,
|
| 168 |
+
265,
|
| 169 |
+
823,
|
| 170 |
+
294
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 2
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "Meta-learning for Exploration Meta-learning (Schmidhuber et al., 1996; Thrun & Pratt, 1998) has recently received considerable attention in RL. Recent advances include few-shot adaptation (Finn et al., 2017a), few-shot imitation (Finn et al., 2017b; Duan et al., 2017), model adaptation (Clavera et al., 2018), and inverse RL (Xu et al., 2018a). In particular, our work is closely related to the prior work on meta-learning good exploration strategies (Wang et al., 2016; Duan et al., 2016; Stadie et al., 2018; Xu et al., 2018b) in that both perform temporal credit assignment across episode boundaries by maximising rewards accumulated beyond an episode. Unlike the prior work that aims to learn an exploratory policy, our framework indirectly drives exploration via a reward function which can be reused by different learning agents as we show in this paper (Section 5.1). ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
173,
|
| 179 |
+
304,
|
| 180 |
+
825,
|
| 181 |
+
430
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 2
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "Meta-learning of Agent Update There have been a few studies that directly meta-learn how to update the agent’s parameters via meta-parameters including discount factor and returns (Xu et al., 2018c), auxiliary tasks (Schlegel et al., 2018; Veeriah et al., 2019), unsupervised learning rules (Metz et al., 2019), and RL objectives (Chebotar et al., 2019). Our work also belongs to this category in that our meta-parameters are the reward function used in the agent’s update. In particular, our multilifetime formulation is similar to $\\mathrm { { M L ^ { 3 } } }$ (Chebotar et al., 2019). However, we consider the long-term lifetime return as objective to perform cross-episode temporal credit assignment as opposed to the myopic episodic objective in ML3. ",
|
| 188 |
+
"bbox": [
|
| 189 |
+
173,
|
| 190 |
+
439,
|
| 191 |
+
825,
|
| 192 |
+
551
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 2
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "2 THE OPTIMAL REWARD PROBLEM ",
|
| 199 |
+
"text_level": 1,
|
| 200 |
+
"bbox": [
|
| 201 |
+
174,
|
| 202 |
+
566,
|
| 203 |
+
491,
|
| 204 |
+
583
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 2
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "We first introduce some terminology. ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
176,
|
| 213 |
+
593,
|
| 214 |
+
416,
|
| 215 |
+
608
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 2
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "• Agent: A learning system interacting with an environment. On each step $t$ the agent selects an action $a _ { t }$ and receives from the environment an observation $s _ { t + 1 }$ and an extrinsic reward $r _ { t + 1 }$ defined by a task $\\tau$ . The agent chooses actions based on a policy $\\pi _ { \\boldsymbol { \\theta } } \\big ( a _ { t } | \\boldsymbol { s } _ { t } \\big )$ parameterised by $\\theta$ . • Episode: A finite sequence of agent-environment interactions until the end of the episode defined by the task. An episode return is defined as: $\\begin{array} { r } { G ^ { \\mathrm { e p } } = \\sum _ { t = 0 } ^ { T _ { \\mathrm { e p } } - 1 } \\gamma ^ { t } r _ { t + 1 } } \\end{array}$ , where $\\gamma$ is a discount factor, and the random variable $T _ { \\mathrm { e p } }$ gives the finite number of steps until the end of the episode. • Lifetime: A finite sequence of agent-environment interactions until the end of training deent-des, where ner, which can include is a discount factor, and ltiple episodes. The lifetime return is is the number of steps in the lifetime. $G ^ { \\mathrm { { \\bar { i } f e } } } =$ $\\scriptstyle \\sum _ { t = 0 } ^ { T - 1 } \\gamma ^ { t } r _ { t + 1 }$ $\\gamma$ $T$ • Intrinsic reward: A reward function $r _ { \\eta } ( \\tau _ { t + 1 } )$ parameterised by $\\eta$ , where $\\begin{array} { r l } { \\tau _ { t } } & { { } = } \\end{array}$ $( s _ { 0 } , a _ { 0 } , r _ { 1 } , d _ { 1 } , s _ { 1 } , \\ldots , r _ { t } , d _ { t } , s _ { t } )$ is a lifetime history with (binary) episode terminations $d _ { i }$ . ",
|
| 222 |
+
"bbox": [
|
| 223 |
+
173,
|
| 224 |
+
619,
|
| 225 |
+
826,
|
| 226 |
+
786
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 2
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "The Optimal Reward Problem (Singh et al., 2010), illustrated in Figure 1, aims to learn the parameters of the intrinsic reward such that the resulting rewards achieve a learning dynamic for an RL agent that maximises the lifetime (extrinsic) return on tasks drawn from some distribution. Formally, the optimal reward function is defined as: ",
|
| 233 |
+
"bbox": [
|
| 234 |
+
173,
|
| 235 |
+
796,
|
| 236 |
+
825,
|
| 237 |
+
853
|
| 238 |
+
],
|
| 239 |
+
"page_idx": 2
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"type": "equation",
|
| 243 |
+
"img_path": "images/5235d5297ba1fa6302040ae32b4b2e4edac40de65127169094aed5656f2068fa.jpg",
|
| 244 |
+
"text": "$$\n\\eta ^ { * } = \\underset { \\eta } { \\arg \\operatorname* { m a x } } J ( \\eta ) = \\underset { \\eta } { \\arg \\operatorname* { m a x } } \\mathbb { E } _ { \\theta _ { 0 } \\sim \\Theta , \\mathcal { T } \\sim p ( \\mathcal { T } ) } \\left[ \\mathbb { E } _ { \\tau \\sim p _ { \\eta } ( \\tau \\mid \\theta _ { 0 } ) } \\left[ G ^ { \\mathrm { l i f e } } \\right] \\right] ,\n$$",
|
| 245 |
+
"text_format": "latex",
|
| 246 |
+
"bbox": [
|
| 247 |
+
271,
|
| 248 |
+
858,
|
| 249 |
+
725,
|
| 250 |
+
886
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "where $\\Theta$ and $p ( \\mathcal T )$ are an initial policy distribution and a distribution over possibly non-stationary tasks respectively, and $\\begin{array} { r } { G ^ { \\mathrm { l i f e } } = \\sum _ { t = 0 } ^ { { \\bar { T } } - 1 } \\dot { \\gamma } ^ { t } r _ { t + 1 } } \\end{array}$ is a lifetime return. The likelihood of a lifetime history ",
|
| 257 |
+
"bbox": [
|
| 258 |
+
174,
|
| 259 |
+
892,
|
| 260 |
+
823,
|
| 261 |
+
926
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "Algorithm 1 Learning intrinsic rewards across multiple lifetimes via meta-gradient ",
|
| 268 |
+
"bbox": [
|
| 269 |
+
176,
|
| 270 |
+
102,
|
| 271 |
+
720,
|
| 272 |
+
118
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 3
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "Input: $p ( \\mathcal { T } )$ : Task distribution, $\\Theta$ : Randomly-initialised policy distribution \nInitialise intrinsic reward function $\\eta$ and lifetime value function $\\phi$ \nrepeat Initialise task $\\tau \\sim p ( \\mathcal { T } )$ and policy $\\theta \\sim \\Theta$ while lifetime not ended do $\\theta _ { 0 } \\gets \\theta$ for $k = 1 , 2 , \\ldots , N$ do Generate a trajectory using πθk−1 Update policy $\\theta _ { k } \\gets \\theta _ { k - 1 } + \\alpha \\nabla _ { \\theta _ { k - 1 } } J _ { \\eta } ( \\theta _ { k - 1 } )$ using intrinsic rewards $r _ { \\eta }$ (Eq. 2) end for Update intrinsic reward function $\\eta$ using Eq. 3 Update lifetime value function $\\phi$ using Eq. 4 $\\boldsymbol { \\theta } \\dot { } \\boldsymbol { \\theta } _ { N }$ end while \nuntil $\\eta$ converges ",
|
| 279 |
+
"bbox": [
|
| 280 |
+
183,
|
| 281 |
+
122,
|
| 282 |
+
795,
|
| 283 |
+
333
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 3
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "text",
|
| 289 |
+
"text": "$\\tau$ is $\\begin{array} { r } { p _ { \\eta } ( \\tau \\vert \\theta _ { 0 } ) = p ( s _ { 0 } ) \\prod _ { t = 0 } ^ { T - 1 } \\pi _ { \\theta _ { t } } ( a _ { t } \\vert s _ { t } ) p ( d _ { t + 1 } , r _ { t + 1 } , s _ { t + 1 } \\vert s _ { t } , a _ { t } ) , } \\end{array}$ , where $\\theta _ { t } = f ( \\theta _ { t - 1 } , \\eta )$ is a policy parameter as updated with update function $f$ , which is policy gradient in this paper.1 Note that the optimisation of $\\eta$ spans multiple lifetimes, each of which can span multiple episodes. ",
|
| 290 |
+
"bbox": [
|
| 291 |
+
174,
|
| 292 |
+
362,
|
| 293 |
+
823,
|
| 294 |
+
409
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 3
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "text",
|
| 300 |
+
"text": "Using the lifetime return $G ^ { \\mathrm { l i f e } }$ as the objective instead of the conventional episodic return $G ^ { \\mathrm { e p } }$ allows exploration across multiple episodes as long as the lifetime return is maximised in the long run. In particular, when the lifetime is defined as a fixed number of episodes, we find that the lifetime return objective is sometimes more beneficial than the episodic return objective even in terms of the episodic return performance measure. However, different objectives (e.g., final episode return) can be considered depending on the definition of what a good reward function is. ",
|
| 301 |
+
"bbox": [
|
| 302 |
+
173,
|
| 303 |
+
415,
|
| 304 |
+
825,
|
| 305 |
+
500
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 3
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "text",
|
| 311 |
+
"text": "3 META-LEARNING INTRINSIC REWARD ",
|
| 312 |
+
"text_level": 1,
|
| 313 |
+
"bbox": [
|
| 314 |
+
176,
|
| 315 |
+
521,
|
| 316 |
+
526,
|
| 317 |
+
537
|
| 318 |
+
],
|
| 319 |
+
"page_idx": 3
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"type": "text",
|
| 323 |
+
"text": "We propose a meta-gradient approach $\\mathrm { { X u } }$ et al., 2018c; Zheng et al., 2018) to solve the optimal reward problem. At a high-level, we sample a new task $\\tau$ and a new random policy parameter $\\theta$ at each lifetime iteration. We then simulate an agent’s lifetime by updating the parameter $\\theta$ using an intrinsic reward function $r _ { \\eta }$ (Section 3.1) with policy gradient (Section 3.2). In the meantime, we compute the meta-gradient by taking into account the effect of the intrinsic rewards on the policy parameters to update the intrinsic reward function with a lifetime value function (Section 3.3). Algorithm 1 gives an overview of our algorithm. The following sections describe the details. ",
|
| 324 |
+
"bbox": [
|
| 325 |
+
174,
|
| 326 |
+
551,
|
| 327 |
+
825,
|
| 328 |
+
650
|
| 329 |
+
],
|
| 330 |
+
"page_idx": 3
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"type": "text",
|
| 334 |
+
"text": "3.1 INTRINSIC REWARD AND LIFETIME VALUE FUNCTION ARCHITECTURES ",
|
| 335 |
+
"text_level": 1,
|
| 336 |
+
"bbox": [
|
| 337 |
+
176,
|
| 338 |
+
667,
|
| 339 |
+
715,
|
| 340 |
+
683
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 3
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "The intrinsic reward function is a recurrent neural network (RNN) parameterised by $\\eta$ , which produces a scalar reward on arriving in state $s _ { t }$ by taking into account the history of an agent’s lifetime $\\tau _ { t } = ( s _ { 0 } , a _ { 0 } , r _ { 1 } , d _ { 1 } , s _ { 1 } , . . . , r _ { t } , d _ { t } , s _ { t } )$ . We claim that giving the lifetime history across episodes as input is crucial for balancing exploration and exploitation, for instance by capturing how frequently a certain state is visited to determine an exploration bonus reward. The lifetime value function is a separate recurrent neural network parameterised by $\\phi$ , which takes the same inputs as the intrinsic reward function and produces a scalar value estimation of the expected future return within the lifetime. ",
|
| 347 |
+
"bbox": [
|
| 348 |
+
173,
|
| 349 |
+
693,
|
| 350 |
+
825,
|
| 351 |
+
804
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 3
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "text",
|
| 357 |
+
"text": "3.2 POLICY UPDATE (θ) ",
|
| 358 |
+
"text_level": 1,
|
| 359 |
+
"bbox": [
|
| 360 |
+
176,
|
| 361 |
+
823,
|
| 362 |
+
354,
|
| 363 |
+
838
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 3
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "Each agent interacts with an environment and a task sampled from a distribution $\\tau \\sim p ( \\mathcal { T } )$ . However, instead of directly maximising the extrinsic rewards defined by the task, the agent maximises ",
|
| 370 |
+
"bbox": [
|
| 371 |
+
174,
|
| 372 |
+
847,
|
| 373 |
+
825,
|
| 374 |
+
876
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 3
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "text",
|
| 380 |
+
"text": "the intrinsic rewards $( r _ { \\eta } )$ by using policy gradient (Williams, 1992; Sutton et al., 2000): ",
|
| 381 |
+
"bbox": [
|
| 382 |
+
173,
|
| 383 |
+
102,
|
| 384 |
+
748,
|
| 385 |
+
119
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 4
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "equation",
|
| 391 |
+
"img_path": "images/d68e53b0511267349526b944e92339973e355c6a5ae3d530e7153743d511cd59.jpg",
|
| 392 |
+
"text": "$$\nJ _ { \\eta } ( \\theta ) = \\mathbb { E } _ { \\theta } \\bigg [ \\sum _ { t = 0 } ^ { T _ { \\mathrm { e p } } - 1 } \\bar { \\gamma } ^ { t } r _ { \\eta } ( \\tau _ { t + 1 } ) \\bigg ] \\qquad \\quad \\nabla _ { \\theta } J _ { \\eta } ( \\theta ) = \\mathbb { E } _ { \\theta } \\bigg [ G _ { \\eta , t } ^ { \\mathrm { e p } } \\nabla _ { \\theta } \\log \\pi _ { \\theta } ( a | s ) \\bigg ] ,\n$$",
|
| 393 |
+
"text_format": "latex",
|
| 394 |
+
"bbox": [
|
| 395 |
+
236,
|
| 396 |
+
125,
|
| 397 |
+
759,
|
| 398 |
+
170
|
| 399 |
+
],
|
| 400 |
+
"page_idx": 4
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"type": "text",
|
| 404 |
+
"text": "where $r _ { \\eta } ( \\tau _ { t + 1 } )$ is the intrinsic reward at time $t$ , and = PTep−1k=t γ¯k−trη(τk+1) is the return of the intrinsic rewards accumulated over an episode with discount factor $\\bar { \\gamma }$ . ",
|
| 405 |
+
"bbox": [
|
| 406 |
+
169,
|
| 407 |
+
175,
|
| 408 |
+
825,
|
| 409 |
+
208
|
| 410 |
+
],
|
| 411 |
+
"page_idx": 4
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"type": "text",
|
| 415 |
+
"text": "3.3 INTRINSIC REWARD $( \\eta )$ AND LIFETIME VALUE FUNCTION $( \\phi )$ UPDATE ",
|
| 416 |
+
"bbox": [
|
| 417 |
+
173,
|
| 418 |
+
219,
|
| 419 |
+
702,
|
| 420 |
+
234
|
| 421 |
+
],
|
| 422 |
+
"page_idx": 4
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"type": "text",
|
| 426 |
+
"text": "To update the intrinsic reward parameters $\\eta$ , we directly take a meta-gradient ascent step using the overall objective (Equation 1). Specifically, the gradient is (see Appendix A for derivation): ",
|
| 427 |
+
"bbox": [
|
| 428 |
+
171,
|
| 429 |
+
241,
|
| 430 |
+
823,
|
| 431 |
+
270
|
| 432 |
+
],
|
| 433 |
+
"page_idx": 4
|
| 434 |
+
},
|
| 435 |
+
{
|
| 436 |
+
"type": "equation",
|
| 437 |
+
"img_path": "images/230c0b2bccd3aa0766f55efa26c056456e7428af4d5f8d4aff4ffed153bccae4.jpg",
|
| 438 |
+
"text": "$$\n\\nabla _ { \\eta } J ( \\eta ) = \\mathbb { E } _ { \\theta _ { 0 } \\sim \\Theta , \\mathcal { T } \\sim p ( T ) } \\biggl [ \\mathbb { E } _ { \\tau _ { t } \\sim p ( \\tau _ { t } | \\eta , \\theta _ { 0 } ) } \\biggl [ G _ { t } ^ { \\mathrm { l i f e } } \\nabla _ { \\theta _ { t } } \\log \\pi _ { \\theta _ { t } } ( a _ { t } | s _ { t } ) \\nabla _ { \\eta } \\theta _ { t } \\biggr ] \\biggr ] ,\n$$",
|
| 439 |
+
"text_format": "latex",
|
| 440 |
+
"bbox": [
|
| 441 |
+
254,
|
| 442 |
+
275,
|
| 443 |
+
740,
|
| 444 |
+
310
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 4
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "where PT −1k=t γk−trk+1 is a lifetime return based on the extrinsic rewards of task T with discount factor $\\gamma$ . The chain rule is used to get the meta-gradient $( \\nabla _ { \\boldsymbol { \\eta } } \\theta _ { t } )$ as in previous work (Zheng et al., 2018). The computation graph of this procedure is illustrated in Figure 1. ",
|
| 451 |
+
"bbox": [
|
| 452 |
+
173,
|
| 453 |
+
316,
|
| 454 |
+
825,
|
| 455 |
+
361
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 4
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "Computing the true meta-gradient in Equation 3 requires backpropagation through the entire lifetime, which is infeasible as each lifetime can involve more than thousands of policy updates. To partially address this issue, we truncate the meta-gradient after $N$ policy updates but approximate the lifetime return $G _ { t } ^ { \\mathrm { l i f e } , \\phi } \\approx G _ { t } ^ { \\mathrm { l i f e } }$ using a lifetime value function $V _ { \\phi } ( \\tau )$ parameterised by $\\phi$ , which is learned using a temporal difference learning from -step trajectory: ",
|
| 462 |
+
"bbox": [
|
| 463 |
+
174,
|
| 464 |
+
367,
|
| 465 |
+
823,
|
| 466 |
+
440
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 4
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "equation",
|
| 472 |
+
"img_path": "images/e40131f0b3282d925507372f6c514a7d27962595cc9952b6af08f6361a0dcf07.jpg",
|
| 473 |
+
"text": "$$\nG _ { t } ^ { \\mathrm { l i f e } , \\phi } = \\sum _ { k = 0 } ^ { n - 1 } \\gamma ^ { k } r _ { t + k + 1 } + \\gamma ^ { n } V _ { \\phi } ( \\tau _ { t + n } ) \\qquad \\phi = \\phi + \\alpha ^ { \\prime } ( G _ { t } ^ { \\mathrm { l i f e } , \\phi } - V _ { \\phi } ( \\tau _ { t } ) ) \\nabla _ { \\phi } V _ { \\phi } ( \\tau _ { t } ) .\n$$",
|
| 474 |
+
"text_format": "latex",
|
| 475 |
+
"bbox": [
|
| 476 |
+
215,
|
| 477 |
+
445,
|
| 478 |
+
782,
|
| 479 |
+
489
|
| 480 |
+
],
|
| 481 |
+
"page_idx": 4
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"type": "text",
|
| 485 |
+
"text": "In our empirical work, we found that the lifetime value estimates were crucial to allow the intrinsic reward to perform long-term credit assignments across episodes. ",
|
| 486 |
+
"bbox": [
|
| 487 |
+
173,
|
| 488 |
+
494,
|
| 489 |
+
823,
|
| 490 |
+
523
|
| 491 |
+
],
|
| 492 |
+
"page_idx": 4
|
| 493 |
+
},
|
| 494 |
+
{
|
| 495 |
+
"type": "text",
|
| 496 |
+
"text": "3.4 CONNECTION TO STANDARD RL FRAMEWORKS ",
|
| 497 |
+
"text_level": 1,
|
| 498 |
+
"bbox": [
|
| 499 |
+
174,
|
| 500 |
+
539,
|
| 501 |
+
549,
|
| 502 |
+
554
|
| 503 |
+
],
|
| 504 |
+
"page_idx": 4
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"type": "text",
|
| 508 |
+
"text": "The policy learning problem specified in Section 3.2 deviates from the standard Markov Decision Process (MDP) framework because the intrinsic reward function is a function of the lifetime history rather than a function of states or state-action pairs. Consequently, from the memoryless policy’s perspective, the rewards are non-stationary. However, we can also view the combination of the intrinsic reward function and the policy as a joint lifetime-history-based policy parameterised by $\\eta$ and $\\theta$ (see derivation in Appendix A). From this perspective, the overall learning problem specified in Section 3.3 can be formulated as an MDP with history as state (recall, we use RNNs for the intrinsic reward function). As a result, standard temporal-difference learning methods are applicable to learning lifetime value functions. ",
|
| 509 |
+
"bbox": [
|
| 510 |
+
173,
|
| 511 |
+
564,
|
| 512 |
+
825,
|
| 513 |
+
691
|
| 514 |
+
],
|
| 515 |
+
"page_idx": 4
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"type": "text",
|
| 519 |
+
"text": "4 EMPIRICAL INVESTIGATIONS: FEASIBILITY AND USEFULNESS ",
|
| 520 |
+
"text_level": 1,
|
| 521 |
+
"bbox": [
|
| 522 |
+
176,
|
| 523 |
+
707,
|
| 524 |
+
725,
|
| 525 |
+
723
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 4
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "text",
|
| 531 |
+
"text": "We present the results from our empirical investigations in two sections. For the results in this section, the experiments and domains are designed to answer the following research questions: ",
|
| 532 |
+
"bbox": [
|
| 533 |
+
173,
|
| 534 |
+
733,
|
| 535 |
+
820,
|
| 536 |
+
762
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 4
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "text",
|
| 542 |
+
"text": "• What kind of knowledge can be learned by the intrinsic reward? • How does the distribution of tasks drive the form of the intrinsic reward? • What is the benefit of the lifetime return objective over the episode return? • When is it important to provide the lifetime history as input to the intrinsic reward? ",
|
| 543 |
+
"bbox": [
|
| 544 |
+
215,
|
| 545 |
+
772,
|
| 546 |
+
777,
|
| 547 |
+
844
|
| 548 |
+
],
|
| 549 |
+
"page_idx": 4
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"type": "text",
|
| 553 |
+
"text": "We investigate these research questions in various grid-world domains illustrated in Figure 2. For each domain, we trained an intrinsic reward function across many lifetimes and evaluated it by training an agent using the learned reward. We implemented the following baselines. ",
|
| 554 |
+
"bbox": [
|
| 555 |
+
176,
|
| 556 |
+
856,
|
| 557 |
+
821,
|
| 558 |
+
898
|
| 559 |
+
],
|
| 560 |
+
"page_idx": 4
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"type": "text",
|
| 564 |
+
"text": "• Extrinsic-EP: A policy is trained with extrinsic rewards to maximise the episode return. ",
|
| 565 |
+
"bbox": [
|
| 566 |
+
212,
|
| 567 |
+
909,
|
| 568 |
+
803,
|
| 569 |
+
924
|
| 570 |
+
],
|
| 571 |
+
"page_idx": 4
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"type": "image",
|
| 575 |
+
"img_path": "images/0d553e8ac18d76f927e644f7009853d9b0c6f94c94b1695efe43449e074db081.jpg",
|
| 576 |
+
"image_caption": [
|
| 577 |
+
"Figure 2: Illustration of domains. (a) The agent needs to find the goal location which gives a positive reward, but the goal is not visible to the agent. (b) Each object (A, B, and C) gives rewards. (c) The agent is required to first collect the key and visit one of the boxes (A, B, and C) to receive the corresponding reward. All objects are placed to random locations after every episode. "
|
| 578 |
+
],
|
| 579 |
+
"image_footnote": [],
|
| 580 |
+
"bbox": [
|
| 581 |
+
326,
|
| 582 |
+
102,
|
| 583 |
+
665,
|
| 584 |
+
207
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 5
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "image",
|
| 590 |
+
"img_path": "images/3776bc779886d5dac24e55fb5b1c51d390913ad1ff73748f06236bc60e04bf9e.jpg",
|
| 591 |
+
"image_caption": [
|
| 592 |
+
"Figure 3: Evaluation of different reward functions averaged over 30 seeds. The learning curves show agents trained with our intrinsic reward (blue), with the extrinsic reward with the episodic return objective (orange) and the lifetime return objective (brown), and with a count-based exploration reward (green). The dashed line corresponds to a hand-designed near-optimal exploration strategy. "
|
| 593 |
+
],
|
| 594 |
+
"image_footnote": [],
|
| 595 |
+
"bbox": [
|
| 596 |
+
179,
|
| 597 |
+
286,
|
| 598 |
+
813,
|
| 599 |
+
386
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 5
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "text",
|
| 605 |
+
"text": "• Extrinsic-LIFE: A policy is trained with extrinsic rewards to maximise the lifetime return. \n• Count-based (Strehl & Littman, 2008): A policy is trained with extrinsic rewards and countbased exploration bonus rewards. \n• ICM (Pathak et al., 2017): A policy is trained with extrinsic rewards and curiosity rewards based on an inverse dynamics model. ",
|
| 606 |
+
"bbox": [
|
| 607 |
+
209,
|
| 608 |
+
478,
|
| 609 |
+
823,
|
| 610 |
+
575
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 5
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "Note that these baselines, unlike the learned intrinsic rewards, do not transfer any knowledge across different lifetimes. Throughout Sections 4.1-4.4, we focus on analysing what kind of knowledge is learned by the intrinsic reward depending on the nature of environments. We discuss the benefit of using the lifetime return and considering the lifetime history when learning the intrinsic reward in Section 4.5. The details of implementation and hyperparameters are described in Appendix B. ",
|
| 617 |
+
"bbox": [
|
| 618 |
+
174,
|
| 619 |
+
592,
|
| 620 |
+
825,
|
| 621 |
+
662
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 5
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "text",
|
| 627 |
+
"text": "4.1 EXPLORING UNCERTAIN STATES ",
|
| 628 |
+
"text_level": 1,
|
| 629 |
+
"bbox": [
|
| 630 |
+
176,
|
| 631 |
+
684,
|
| 632 |
+
441,
|
| 633 |
+
699
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 5
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "We designed ‘Empty Rooms’ (Figure 2a) to see whether the intrinsic reward can learn to encourage exploration of uncertain states like novelty-based exploration methods. The goal is to visit an invisible goal location, which is fixed within each lifetime but varies across lifetimes. Episode terminates when the goal is reached. Each lifetime consists of 200 episodes. From the agent’s perspective, its policy should visit the locations suggested by the intrinsic reward. From the intrinsic reward’s perspective, it should encourage the agent to go to unvisited locations to locate the goal, and once the goal is located to exploit that knowledge for the rest of that lifetime. ",
|
| 640 |
+
"bbox": [
|
| 641 |
+
174,
|
| 642 |
+
709,
|
| 643 |
+
825,
|
| 644 |
+
808
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 5
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "Figure 3 shows that our learned intrinsic reward was more efficient than extrinsic rewards and countbased exploration when training a new agent. We observed that the intrinsic reward learned two interesting strategies as visualised in Figure 4. While the goal is not found, it encourages exploration of unvisited locations, because it learned the prior that there exists a rewarding goal location somewhere. Once the goal is found the intrinsic reward encourages the agent to exploit it without further exploration, because it learned that there is only one goal. This result shows that curiosity about uncertain states can naturally emerge when various states can be rewarding in a domain, even when the rewarding states are fixed within an agent’s lifetime. ",
|
| 651 |
+
"bbox": [
|
| 652 |
+
174,
|
| 653 |
+
814,
|
| 654 |
+
825,
|
| 655 |
+
925
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 5
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "image",
|
| 661 |
+
"img_path": "images/8217eed6c0b57029eee8e8f9e77ef8b33e619f413a56532eef4020fad068d1f8.jpg",
|
| 662 |
+
"image_caption": [
|
| 663 |
+
"Figure 4: Visualisation of the first 3000 steps of an agent trained with different reward functions in Empty Rooms. (a) The blue and yellow squares represent the agent and the hidden goal, respectively. (b) The learned reward encourages the agent to visit many locations if the goal is not found (top). However, when the goal is found early, the intrinsic reward makes the agent exploit it without further exploration (bottom). (c) An agent trained only with extrinsic rewards explores poorly. (d-e) Both the count-based and ICM rewards tend to encourage exploration (top) but hinders exploitation when the goal is found (bottom). "
|
| 664 |
+
],
|
| 665 |
+
"image_footnote": [],
|
| 666 |
+
"bbox": [
|
| 667 |
+
205,
|
| 668 |
+
99,
|
| 669 |
+
784,
|
| 670 |
+
267
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 6
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "image",
|
| 676 |
+
"img_path": "images/89e3cb8c01df9a2f42ec95376a6857278e77bbe709b8b81b607cd1bed3a95658.jpg",
|
| 677 |
+
"image_caption": [
|
| 678 |
+
"Figure 5: Visualisation of the learned intrinsic reward in Random ABC, where the extrinsic rewards for A, B, and C are 0.2, -0.5, and 0.1 respectively. Each figure shows the sum of intrinsic rewards for a trajectory towards each object (A, B, and C). In the first episode, the intrinsic reward encourages the agent to explore A. In the second episode, the intrinsic reward encourages exploring C if A is visited (top) or vice versa (bottom). In episode 3, after both A and C are explored, the intrinsic reward encourages to revisit A (both top and bottom). "
|
| 679 |
+
],
|
| 680 |
+
"image_footnote": [],
|
| 681 |
+
"bbox": [
|
| 682 |
+
302,
|
| 683 |
+
382,
|
| 684 |
+
684,
|
| 685 |
+
535
|
| 686 |
+
],
|
| 687 |
+
"page_idx": 6
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "text",
|
| 691 |
+
"text": "4.2 EXPLORING UNCERTAIN OBJECTS AND AVOIDING HARMFUL OBJECTS ",
|
| 692 |
+
"text_level": 1,
|
| 693 |
+
"bbox": [
|
| 694 |
+
173,
|
| 695 |
+
651,
|
| 696 |
+
704,
|
| 697 |
+
665
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 6
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "text",
|
| 703 |
+
"text": "In the previous domain, we considered uncertainty of where the reward (or goal location) is. We now consider dealing with uncertainty about the value of different objects. In the ‘Random ABC’ environment (see Figure 2b), for each lifetime the rewards for objects A, B, and C are uniformly sampled from $[ - 1 , \\bar { 1 ] }$ , $[ - 0 . 5 , 0 ]$ , and $[ 0 , 0 . 5 ]$ respectively but are held fixed within the lifetime. A good intrinsic reward should learn that: 1) B should be avoided, 2) A and C have uncertain rewards, hence require systematic exploration (first go to one and then the other), and 3) once it is determined which of the two A or C is better, exploit that knowledge by encouraging the agent to repeatedly go to that object for the rest of the lifetime. ",
|
| 704 |
+
"bbox": [
|
| 705 |
+
173,
|
| 706 |
+
681,
|
| 707 |
+
825,
|
| 708 |
+
794
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 6
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "text",
|
| 714 |
+
"text": "Figure 3 shows that the agent learned a near-optimal exploration-and-then-exploitation method with the learned intrinsic reward. Note that the agent cannot pass information about the reward for objects across episodes, as usual in reinforcement learning. The intrinsic reward can propagate such information across episodes and help the agent explore or exploit appropriately. We visualised the learned intrinsic reward for different actions sequences in Figure 5. The intrinsic rewards encourage the agent to explore towards A and C in the first few episodes. Once A and C are explored, the agent exploits the largest rewarding object. Throughout training, the agent is discouraged to visit B through negative intrinsic rewards. These results show that avoidance and curiosity about uncertain objects can potentially emerge if the environment has various or fixed rewarding objects. ",
|
| 715 |
+
"bbox": [
|
| 716 |
+
173,
|
| 717 |
+
800,
|
| 718 |
+
825,
|
| 719 |
+
926
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 6
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "image",
|
| 725 |
+
"img_path": "images/d39f89e801a85bc9490e7fc902efe3aa86ddb279c408622b85b12c7dccf4762f.jpg",
|
| 726 |
+
"image_caption": [],
|
| 727 |
+
"image_footnote": [],
|
| 728 |
+
"bbox": [
|
| 729 |
+
178,
|
| 730 |
+
64,
|
| 731 |
+
816,
|
| 732 |
+
195
|
| 733 |
+
],
|
| 734 |
+
"page_idx": 7
|
| 735 |
+
},
|
| 736 |
+
{
|
| 737 |
+
"type": "image",
|
| 738 |
+
"img_path": "images/d8f7c140ad7661ab691e5bb31131cb1a0d41b0fd3f4282a2a451b25894ec1263.jpg",
|
| 739 |
+
"image_caption": [
|
| 740 |
+
"Figure 6: Visualisation of the agent’s intrinsic and extrinsic rewards (left) and the entropy of its policy (right) on Non-stationary ABC. The task changes at $5 0 0 0 \\mathrm { { t h } }$ episode (dashed vertical line). The intrinsic reward gives a negative reward even before the task changes (green rectangle) and makes the policy less peaky (entropy increases). As a result, the agent quickly adapts to the change. ",
|
| 741 |
+
"Figure 7: Evaluation of different intrinsic reward architectures and objectives. For ‘LSTM’ the reward network has an LSTM taking the lifetime history as input. For ‘FF’ a feed-forward reward network takes only the current time-step. ‘Lifetime’ and ‘Episode’ means the lifetime and episodic return as objective respectively. "
|
| 742 |
+
],
|
| 743 |
+
"image_footnote": [],
|
| 744 |
+
"bbox": [
|
| 745 |
+
179,
|
| 746 |
+
261,
|
| 747 |
+
815,
|
| 748 |
+
361
|
| 749 |
+
],
|
| 750 |
+
"page_idx": 7
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"type": "text",
|
| 754 |
+
"text": "4.3 EXPLOITING INVARIANT CAUSAL RELATIONSHIP ",
|
| 755 |
+
"text_level": 1,
|
| 756 |
+
"bbox": [
|
| 757 |
+
174,
|
| 758 |
+
431,
|
| 759 |
+
555,
|
| 760 |
+
445
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 7
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "text",
|
| 766 |
+
"text": "To see how the intrinsic reward deals with causal relationship between objects, we designed ‘KeyBox’, which is similar to Random ABC except that there is a key in the room (see Figure 2c). The agent needs to collect the key first to open one of the boxes (A, B, and C) and receive the corresponding reward. The rewards for the objects are sampled from the same distribution as Random ABC. The key itself gives a neutral reward of 0. Moreover, the locations of the agent, the key, and the boxes are randomly sampled for each episode. As a result, the state space contains more than 3 billion distinct states and thus is infeasible to fully enumerate. Figure 3 shows that learned intrinsic reward leads to a near-optimal exploration. The agent trained with extrinsic rewards did not learn to open any box. The intrinsic reward captures that the key is necessary to open any box, which is true across many lifetimes of training. This demonstrates that the intrinsic reward can capture causal relationships between objects when the domain has this kind of invariant dynamics. ",
|
| 767 |
+
"bbox": [
|
| 768 |
+
173,
|
| 769 |
+
453,
|
| 770 |
+
825,
|
| 771 |
+
606
|
| 772 |
+
],
|
| 773 |
+
"page_idx": 7
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"type": "text",
|
| 777 |
+
"text": "4.4 DEALING WITH NON-STATIONARITY ",
|
| 778 |
+
"text_level": 1,
|
| 779 |
+
"bbox": [
|
| 780 |
+
176,
|
| 781 |
+
618,
|
| 782 |
+
467,
|
| 783 |
+
632
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 7
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "text",
|
| 789 |
+
"text": "We investigated how the intrinsic reward deals with non-stationarity of tasks within a lifetime in our ‘Non-stationary ABC’ environment. Rewards are as follows: for A is either 1 or $- 1$ , for $\\mathbf { B }$ i s $- 0 . 5$ , for C is the negative value of the reward for A. The rewards of A and C are swapped every 250 episodes. Each lifetime lasts 1000 episodes. Figure 3 shows that the agent with the learned intrinsic reward quickly recovered its performance when the task changes, whereas the baselines take more time to recover. Figure 6 shows how the learned intrinsic reward encourages the learning agent to react to the changing rewards. Interestingly, the intrinsic reward has learned to prepare for the change by giving negative rewards to the exploitation policy of the agent a few episodes before the task changes. In other words, the intrinsic reward starts to discourage the agent to commit to the current best rewarding object, thereby increasing entropy in the current policy in anticipation of the change, eventually making it easier to adapt quickly. This shows that the intrinsic reward can capture the (regularly) repeated non-stationarity across many lifetimes and make the agent intrinsically motivated not to commit too firmly to a policy, in anticipation of changes in the environment. ",
|
| 790 |
+
"bbox": [
|
| 791 |
+
173,
|
| 792 |
+
640,
|
| 793 |
+
825,
|
| 794 |
+
820
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 7
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "text",
|
| 800 |
+
"text": "4.5 ABLATION STUDY ",
|
| 801 |
+
"text_level": 1,
|
| 802 |
+
"bbox": [
|
| 803 |
+
174,
|
| 804 |
+
833,
|
| 805 |
+
341,
|
| 806 |
+
847
|
| 807 |
+
],
|
| 808 |
+
"page_idx": 7
|
| 809 |
+
},
|
| 810 |
+
{
|
| 811 |
+
"type": "text",
|
| 812 |
+
"text": "To study relative benefits of the proposed technical ideas, we conducted an ablation study 1) by replacing the long-term lifetime return objective $( G ^ { \\mathrm { l i f e } } )$ with the episodic return $( G ^ { \\mathrm { e p } } )$ and 2) by restricting the input of the reward network to the current time-step instead of the entire lifetime history. Figure 7 shows that the lifetime history was crucial to achieve good performance. This is reasonable because all domains require some past information (e.g., current object rewards in Random ABC, visited locations in Empty Rooms) to provide useful exploration strategies. It is also shown that the lifetime return objective was beneficial on Random ABC, Non-stationary ABC, and Key-Box. These domains require exploration across multiple episodes in order to find the optimal policy. For example, collecting an uncertain object (e.g., object A in Random ABC) is necessary even if the episode terminates with a negative reward. The episodic value function would directly penalise such an under-performed exploratory episode when computing meta-gradient, which prevents the intrinsic reward from learning to encourage exploration across episodes. On the other hand, such behaviour can be encouraged by the lifetime value function as long as it provides useful information to maximise the lifetime return in the long term. ",
|
| 813 |
+
"bbox": [
|
| 814 |
+
174,
|
| 815 |
+
854,
|
| 816 |
+
823,
|
| 817 |
+
924
|
| 818 |
+
],
|
| 819 |
+
"page_idx": 7
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"type": "image",
|
| 823 |
+
"img_path": "images/8fcb4aa069f767786613a956c467e2a4f59d7fd2e129dfad1fa480d8a8dc3a06.jpg",
|
| 824 |
+
"image_caption": [
|
| 825 |
+
"Figure 8: Comparison to policy transfer methods. "
|
| 826 |
+
],
|
| 827 |
+
"image_footnote": [],
|
| 828 |
+
"bbox": [
|
| 829 |
+
179,
|
| 830 |
+
102,
|
| 831 |
+
813,
|
| 832 |
+
202
|
| 833 |
+
],
|
| 834 |
+
"page_idx": 8
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"type": "text",
|
| 838 |
+
"text": "",
|
| 839 |
+
"bbox": [
|
| 840 |
+
173,
|
| 841 |
+
246,
|
| 842 |
+
825,
|
| 843 |
+
371
|
| 844 |
+
],
|
| 845 |
+
"page_idx": 8
|
| 846 |
+
},
|
| 847 |
+
{
|
| 848 |
+
"type": "text",
|
| 849 |
+
"text": "5 EMPIRICAL INVESTIGATIONS: GENERALISATION VIA REWARDS ",
|
| 850 |
+
"text_level": 1,
|
| 851 |
+
"bbox": [
|
| 852 |
+
176,
|
| 853 |
+
387,
|
| 854 |
+
735,
|
| 855 |
+
402
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 8
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "As noted above, rewards capture knowledge about what an agent’s goals should be rather than how it should behave. At the same time, transferring the latter in the form of policies is also feasible in our domains presented above. Here we confirm that by implementing and presenting results for the following two meta-learning methods: ",
|
| 862 |
+
"bbox": [
|
| 863 |
+
176,
|
| 864 |
+
414,
|
| 865 |
+
825,
|
| 866 |
+
469
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 8
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "text",
|
| 872 |
+
"text": "• MAML (Finn et al., 2017a): A policy meta-learned from a distributions of tasks such that it can adapt quickly to the given task after a few parameter updates. • $\\mathtt { R L } ^ { 2 }$ (Duan et al., 2016; Wang et al., 2016): An LSTM policy unrolled over the entire lifetime to maximise the lifetime return, which is pre-trained on a distributions of tasks. ",
|
| 873 |
+
"bbox": [
|
| 874 |
+
215,
|
| 875 |
+
482,
|
| 876 |
+
825,
|
| 877 |
+
542
|
| 878 |
+
],
|
| 879 |
+
"page_idx": 8
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"type": "text",
|
| 883 |
+
"text": "Although all the methods we implemented including ours are designed to learn useful knowledge from a distribution of tasks, they have different objectives. Specifically, the objective of our method is to learn knowledge that is useful for training “randomly-initialised policies” by capturing “what to do”, whereas the goal of policy transfer methods is to directly transfer a useful policy for fast task adaptation by transferring “how to do” knowledge. In fact, it can be more efficient to transfer and reuse pre-trained policies instead of restarting from a random policy and learning using the learned rewards given a new task. Figure 8 indeed shows that $\\mathrm { { R L ^ { 2 } } }$ performs better than our intrinsic reward approach. It is also shown that MAML and $\\mathrm { { R L ^ { 2 } } }$ achieve good performance from the beginning, as they have already learned how to navigate the grid worlds and how to achieve the goals of the tasks. In our method, on the other hand, the agent starts from a random policy and relies on the learned intrinsic reward which indirectly tells it what to do. Nevertheless, our method outperforms MAML and achieves a comparable asymptotic performance to $\\mathrm { { R L ^ { 2 } } }$ . ",
|
| 884 |
+
"bbox": [
|
| 885 |
+
173,
|
| 886 |
+
554,
|
| 887 |
+
825,
|
| 888 |
+
720
|
| 889 |
+
],
|
| 890 |
+
"page_idx": 8
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"type": "text",
|
| 894 |
+
"text": "5.1 GENERALISATION TO DIFFERENT AGENT-ENVIRONMENT INTERFACES ",
|
| 895 |
+
"text_level": 1,
|
| 896 |
+
"bbox": [
|
| 897 |
+
176,
|
| 898 |
+
733,
|
| 899 |
+
700,
|
| 900 |
+
747
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 8
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"text": "In fact, our method can be interpreted as an instance of $\\mathtt { R L } ^ { 2 }$ with a particular decomposition of parameters $\\boldsymbol { \\theta }$ and $\\eta$ ), which uses policy gradient as a recurrent update (see Figure 1). While this modular structure may not be more beneficial than $\\mathrm { { R L ^ { 2 } } }$ when evaluated with the same agent-environment interface, such a decomposition provides clear semantics of each module: the policy $\\mathbf { \\eta } ^ { ( \\theta ) }$ captures “how to do” while the intrinsic reward $( \\eta )$ captures “what to do”, and this enables interesting kinds of generalisations as we show below. Specifically, we show that “what” knowledge captured by the intrinsic reward can be reused by many different learning agents as follows. ",
|
| 907 |
+
"bbox": [
|
| 908 |
+
174,
|
| 909 |
+
755,
|
| 910 |
+
825,
|
| 911 |
+
853
|
| 912 |
+
],
|
| 913 |
+
"page_idx": 8
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"type": "text",
|
| 917 |
+
"text": "Generalisation to unseen action spaces We first evaluated the learned intrinsic reward on new action spaces. Specifically, the intrinsic reward was used to train new agents with either 1) permuted actions, where the semantics of left/right and up/down are reversed, or 2) extended actions, with 4 additional actions that move diagonally. Figure 9a shows that the intrinsic reward provided useful rewards to new agents with different actions, even when these were not trained with those actions. This is possible because the intrinsic reward assigns rewards to the agent’s state changes rather than its actions. In other words, the intrinsic reward captures “what to do”, which makes it possible to generalise to new actions, as long as the goal remains the same. On the other hand, it is unclear how to generalise $\\mathtt { R L } ^ { 2 }$ and MAML in this way. ",
|
| 918 |
+
"bbox": [
|
| 919 |
+
176,
|
| 920 |
+
868,
|
| 921 |
+
823,
|
| 922 |
+
924
|
| 923 |
+
],
|
| 924 |
+
"page_idx": 8
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"type": "image",
|
| 928 |
+
"img_path": "images/db6945122086cc6de484fa5658b93fcb3df4004e11ddf53f3e966a1900cf73fd.jpg",
|
| 929 |
+
"image_caption": [
|
| 930 |
+
"Figure 9: Generalisation to new agent-environment interfaces in Random ABC. (a) ‘Permuted’ agents have different action semantics. ‘Extended’ agents have additional actions. (b) ‘AC-Intrinsic’ is the original actorcritic agent trained with the intrinsic reward. ‘Q-Intrinsic’ is a Q-learning agent with the intrinsic reward learned from actor-critic agents. ‘Q-Extrinsic’ is the Q-learning agent with the extrinsic reward. (c) shows the performances of the policy transfer baselines with permuted actions during evaluation. "
|
| 931 |
+
],
|
| 932 |
+
"image_footnote": [],
|
| 933 |
+
"bbox": [
|
| 934 |
+
184,
|
| 935 |
+
102,
|
| 936 |
+
810,
|
| 937 |
+
239
|
| 938 |
+
],
|
| 939 |
+
"page_idx": 9
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "text",
|
| 943 |
+
"text": "",
|
| 944 |
+
"bbox": [
|
| 945 |
+
174,
|
| 946 |
+
334,
|
| 947 |
+
823,
|
| 948 |
+
404
|
| 949 |
+
],
|
| 950 |
+
"page_idx": 9
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"type": "text",
|
| 954 |
+
"text": "Generalisation to unseen learning algorithms We further investigated how general the knowledge captured by the intrinsic reward is by evaluating the learned intrinsic reward on agents with different learning algorithms. In particular, after training the intrinsic reward from actor-critic agents, we evaluated it by training new agents through Q-learning while using the learned intrinsic reward as denoted by ‘Q-Intrinsic’ in Figure 9b. Interestingly, it turns out that the learned intrinsic reward is general enough to be useful for Q-learning agents, even though it was trained for actor-critic agents. Again, it is unclear how to generalise $\\mathrm { { R L } ^ { 2 } }$ and MAML in this way. ",
|
| 955 |
+
"bbox": [
|
| 956 |
+
174,
|
| 957 |
+
419,
|
| 958 |
+
825,
|
| 959 |
+
517
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 9
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "text",
|
| 965 |
+
"text": "Comparison to policy transfer While it wasn’t possible to apply the learned policy from $\\mathtt { R L } ^ { 2 }$ and MAML when we extended the action space and when we changed the learning algorithm, we can do so when we keep the same number of actions and just permute them. As shown in Figure ${ 9 \\mathrm { c } }$ , both $\\mathrm { { R L ^ { 2 } } }$ and MAML generalise poorly when the action space is permuted for Random ABC, because the transferred policies are highly biased to the original action space. Again, this result highlights the difference between “what to do” knowledge captured by our approach and “how to do” knowledge captured by policies. ",
|
| 966 |
+
"bbox": [
|
| 967 |
+
174,
|
| 968 |
+
531,
|
| 969 |
+
825,
|
| 970 |
+
630
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 9
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "text",
|
| 976 |
+
"text": "6 CONCLUSION ",
|
| 977 |
+
"text_level": 1,
|
| 978 |
+
"bbox": [
|
| 979 |
+
176,
|
| 980 |
+
645,
|
| 981 |
+
318,
|
| 982 |
+
661
|
| 983 |
+
],
|
| 984 |
+
"page_idx": 9
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"type": "text",
|
| 988 |
+
"text": "We revisited the optimal reward problem (Singh et al., 2009) and proposed a more scalable gradientbased method for learning intrinsic rewards. Through several proof-of-concept experiments, we showed that the learned non-stationary intrinsic reward can capture regularities within a distribution of environments or, over time, within a non-stationary environment. As a result, they were capable of encouraging both exploratory and exploitative behaviour across multiple episodes. In addition, some task-independent notions of intrinsic motivation such as curiosity emerged when they were effective for the distribution over tasks across lifetimes the agent was trained on. We also showed that the learned intrinsic rewards can generalise to different agent-environment interfaces such as different action spaces and different learning algorithms, whereas policy transfer methods fail to generalise. This highlights the difference between the “what” kind of knowledge captured by rewards and the “how” kind of knowledge captured by policies. The flexibility and range of knowledge captured by intrinsic rewards in our proof-of-concept experiments encourages further work towards combining different loci of knowledge to achieve greater practical benefits. ",
|
| 989 |
+
"bbox": [
|
| 990 |
+
174,
|
| 991 |
+
672,
|
| 992 |
+
825,
|
| 993 |
+
853
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 9
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "text",
|
| 999 |
+
"text": "REFERENCES ",
|
| 1000 |
+
"text_level": 1,
|
| 1001 |
+
"bbox": [
|
| 1002 |
+
174,
|
| 1003 |
+
103,
|
| 1004 |
+
287,
|
| 1005 |
+
117
|
| 1006 |
+
],
|
| 1007 |
+
"page_idx": 10
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"type": "text",
|
| 1011 |
+
"text": "Marc G. Bellemare, Sriram Srinivasan, Georg Ostrovski, Tom Schaul, David Saxton, and Remi ´ Munos. Unifying count-based exploration and intrinsic motivation. CoRR, abs/1606.01868, 2016. URL http://arxiv.org/abs/1606.01868. ",
|
| 1012 |
+
"bbox": [
|
| 1013 |
+
176,
|
| 1014 |
+
126,
|
| 1015 |
+
823,
|
| 1016 |
+
167
|
| 1017 |
+
],
|
| 1018 |
+
"page_idx": 10
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"type": "text",
|
| 1022 |
+
"text": "Yevgen Chebotar, Artem Molchanov, Sarah Bechtle, Ludovic Righetti, Franziska Meier, and Gaurav S. Sukhatme. Meta-learning via learned loss. CoRR, abs/1906.05374, 2019. URL http: //arxiv.org/abs/1906.05374. ",
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
174,
|
| 1025 |
+
176,
|
| 1026 |
+
820,
|
| 1027 |
+
218
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 10
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "Jack Clark and Dario Amodei. Faulty reward functions in the wild. CoRR, 2016. URL https: //blog.openai.com/. ",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
169,
|
| 1036 |
+
227,
|
| 1037 |
+
821,
|
| 1038 |
+
256
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 10
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "text",
|
| 1044 |
+
"text": "Ignasi Clavera, Anusha Nagabandi, Ronald S. Fearing, Pieter Abbeel, Sergey Levine, and Chelsea Finn. Learning to adapt: Meta-learning for model-based control. ArXiv, abs/1803.11347, 2018. ",
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
174,
|
| 1047 |
+
263,
|
| 1048 |
+
823,
|
| 1049 |
+
292
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 10
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "text",
|
| 1055 |
+
"text": "Yan Duan, John Schulman, Xi Chen, Peter L Bartlett, Ilya Sutskever, and Pieter Abbeel. Rl2: Fast reinforcement learning via slow reinforcement learning. arXiv preprint arXiv:1611.02779, 2016. ",
|
| 1056 |
+
"bbox": [
|
| 1057 |
+
174,
|
| 1058 |
+
300,
|
| 1059 |
+
823,
|
| 1060 |
+
330
|
| 1061 |
+
],
|
| 1062 |
+
"page_idx": 10
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"type": "text",
|
| 1066 |
+
"text": "Yan Duan, Marcin Andrychowicz, Bradly Stadie, OpenAI Jonathan Ho, Jonas Schneider, Ilya Sutskever, Pieter Abbeel, and Wojciech Zaremba. One-shot imitation learning. In Advances in neural information processing systems, pp. 1087–1098, 2017. ",
|
| 1067 |
+
"bbox": [
|
| 1068 |
+
176,
|
| 1069 |
+
337,
|
| 1070 |
+
825,
|
| 1071 |
+
381
|
| 1072 |
+
],
|
| 1073 |
+
"page_idx": 10
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"type": "text",
|
| 1077 |
+
"text": "Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the 34th International Conference on Machine LearningVolume 70, pp. 1126–1135. JMLR. org, 2017a. ",
|
| 1078 |
+
"bbox": [
|
| 1079 |
+
176,
|
| 1080 |
+
387,
|
| 1081 |
+
823,
|
| 1082 |
+
431
|
| 1083 |
+
],
|
| 1084 |
+
"page_idx": 10
|
| 1085 |
+
},
|
| 1086 |
+
{
|
| 1087 |
+
"type": "text",
|
| 1088 |
+
"text": "Chelsea Finn, Tianhe Yu, Tianhao Zhang, Pieter Abbeel, and Sergey Levine. One-shot visual imitation learning via meta-learning. arXiv preprint arXiv:1709.04905, 2017b. ",
|
| 1089 |
+
"bbox": [
|
| 1090 |
+
173,
|
| 1091 |
+
439,
|
| 1092 |
+
821,
|
| 1093 |
+
468
|
| 1094 |
+
],
|
| 1095 |
+
"page_idx": 10
|
| 1096 |
+
},
|
| 1097 |
+
{
|
| 1098 |
+
"type": "text",
|
| 1099 |
+
"text": "G. Gordon and E. Ahissar. Reinforcement active learning hierarchical loops, 2011. ",
|
| 1100 |
+
"bbox": [
|
| 1101 |
+
174,
|
| 1102 |
+
476,
|
| 1103 |
+
717,
|
| 1104 |
+
491
|
| 1105 |
+
],
|
| 1106 |
+
"page_idx": 10
|
| 1107 |
+
},
|
| 1108 |
+
{
|
| 1109 |
+
"type": "text",
|
| 1110 |
+
"text": "Xiaoxiao Guo, Satinder Singh, Richard Lewis, and Honglak Lee. Deep learning for reward design to improve monte carlo tree search in atari games. arXiv preprint arXiv:1604.07095, 2016. ",
|
| 1111 |
+
"bbox": [
|
| 1112 |
+
173,
|
| 1113 |
+
498,
|
| 1114 |
+
823,
|
| 1115 |
+
527
|
| 1116 |
+
],
|
| 1117 |
+
"page_idx": 10
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"type": "text",
|
| 1121 |
+
"text": "Anna Harutyunyan, Sam Devlin, Peter Vrancx, and Ann Nowe. Expressing arbitrary reward func- ´ tions as potential-based advice. In Twenty-Ninth AAAI Conference on Artificial Intelligence, 2015. ",
|
| 1122 |
+
"bbox": [
|
| 1123 |
+
173,
|
| 1124 |
+
535,
|
| 1125 |
+
825,
|
| 1126 |
+
564
|
| 1127 |
+
],
|
| 1128 |
+
"page_idx": 10
|
| 1129 |
+
},
|
| 1130 |
+
{
|
| 1131 |
+
"type": "text",
|
| 1132 |
+
"text": "Laurent Itti and Pierre F. Baldi. Bayesian surprise attracts human attention. In Y. Weiss, B. Scholkopf, and J. C. Platt (eds.), ¨ Advances in Neural Information Processing Systems 18, pp. 547–554. MIT Press, 2006. URL http://papers.nips.cc/paper/ 2822-bayesian-surprise-attracts-human-attention.pdf. ",
|
| 1133 |
+
"bbox": [
|
| 1134 |
+
173,
|
| 1135 |
+
571,
|
| 1136 |
+
825,
|
| 1137 |
+
628
|
| 1138 |
+
],
|
| 1139 |
+
"page_idx": 10
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"type": "text",
|
| 1143 |
+
"text": "Cam Linke, Nadia M. Ady, Martha White, Thomas Degris, and Adam White. Adapting behaviour via intrinsic reward: A survey and empirical study. CoRR, abs/1906.07865, 2019. URL http: //arxiv.org/abs/1906.07865. ",
|
| 1144 |
+
"bbox": [
|
| 1145 |
+
173,
|
| 1146 |
+
637,
|
| 1147 |
+
823,
|
| 1148 |
+
679
|
| 1149 |
+
],
|
| 1150 |
+
"page_idx": 10
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"type": "text",
|
| 1154 |
+
"text": "Luke Metz, Niru Maheswaranathan, Brian Cheung, and Jascha Sohl-Dickstein. Meta-learning update rules for unsupervised representation learning. In International Conference on Learning Representations, volume 8, 2019. ",
|
| 1155 |
+
"bbox": [
|
| 1156 |
+
173,
|
| 1157 |
+
688,
|
| 1158 |
+
825,
|
| 1159 |
+
729
|
| 1160 |
+
],
|
| 1161 |
+
"page_idx": 10
|
| 1162 |
+
},
|
| 1163 |
+
{
|
| 1164 |
+
"type": "text",
|
| 1165 |
+
"text": "Marco Mirolli and Gianluca Baldassarre. Functions and Mechanisms of Intrinsic Motivations, pp. 49–72. Springer Berlin Heidelberg, Berlin, Heidelberg, 2013. ISBN 978-3- 642-32375-1. doi: 10.1007/978-3-642-32375-1 3. URL https://doi.org/10.1007/ 978-3-642-32375-1_3. ",
|
| 1166 |
+
"bbox": [
|
| 1167 |
+
174,
|
| 1168 |
+
738,
|
| 1169 |
+
825,
|
| 1170 |
+
795
|
| 1171 |
+
],
|
| 1172 |
+
"page_idx": 10
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"type": "text",
|
| 1176 |
+
"text": "Andrew Y. Ng, Daishi Harada, and Stuart J. Russell. Policy invariance under reward transformations: Theory and application to reward shaping. In Proceedings of the Sixteenth International Conference on Machine Learning, ICML ’99, pp. 278–287, San Francisco, CA, USA, 1999. Morgan Kaufmann Publishers Inc. ISBN 1-55860-612-2. URL http://dl.acm.org/citation. cfm?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } }$ 645528.657613. ",
|
| 1177 |
+
"bbox": [
|
| 1178 |
+
174,
|
| 1179 |
+
803,
|
| 1180 |
+
825,
|
| 1181 |
+
872
|
| 1182 |
+
],
|
| 1183 |
+
"page_idx": 10
|
| 1184 |
+
},
|
| 1185 |
+
{
|
| 1186 |
+
"type": "text",
|
| 1187 |
+
"text": "Georg Ostrovski, Marc G. Bellemare, Aaron van den Oord, and R ¨ emi Munos. Count-based explo-´ ration with neural density models. CoRR, abs/1703.01310, 2017. URL http://arxiv.org/ abs/1703.01310. ",
|
| 1188 |
+
"bbox": [
|
| 1189 |
+
174,
|
| 1190 |
+
882,
|
| 1191 |
+
823,
|
| 1192 |
+
924
|
| 1193 |
+
],
|
| 1194 |
+
"page_idx": 10
|
| 1195 |
+
},
|
| 1196 |
+
{
|
| 1197 |
+
"type": "text",
|
| 1198 |
+
"text": "Deepak Pathak, Pulkit Agrawal, Alexei A. Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. CoRR, abs/1705.05363, 2017. URL http://arxiv.org/abs/ 1705.05363. ",
|
| 1199 |
+
"bbox": [
|
| 1200 |
+
173,
|
| 1201 |
+
103,
|
| 1202 |
+
823,
|
| 1203 |
+
146
|
| 1204 |
+
],
|
| 1205 |
+
"page_idx": 11
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"type": "text",
|
| 1209 |
+
"text": "Pascal Poupart, Nikos Vlassis, Jesse Hoey, and Kevin Regan. An analytic solution to discrete bayesian reinforcement learning. In Proceedings of the 23rd International Conference on Machine Learning, ICML ’06, pp. 697–704, New York, NY, USA, 2006. ACM. ISBN 1-59593-383- 2. doi: 10.1145/1143844.1143932. URL http://doi.acm.org/10.1145/1143844. 1143932. ",
|
| 1210 |
+
"bbox": [
|
| 1211 |
+
173,
|
| 1212 |
+
155,
|
| 1213 |
+
825,
|
| 1214 |
+
226
|
| 1215 |
+
],
|
| 1216 |
+
"page_idx": 11
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"type": "text",
|
| 1220 |
+
"text": "Jette Randlov and Preben Alstrm. Learning to drive a bicycle using reinforcement learning and shaping. pp. 463–471, 01 1998. ",
|
| 1221 |
+
"bbox": [
|
| 1222 |
+
171,
|
| 1223 |
+
234,
|
| 1224 |
+
823,
|
| 1225 |
+
265
|
| 1226 |
+
],
|
| 1227 |
+
"page_idx": 11
|
| 1228 |
+
},
|
| 1229 |
+
{
|
| 1230 |
+
"type": "text",
|
| 1231 |
+
"text": "Matthew Schlegel, Andrew Patterson, Adam White, and Martha White. Discovery of predictive representations with a network of general value functions, 2018. URL https://openreview. net/forum?id ${ . } = { }$ ryZElGZ0Z. ",
|
| 1232 |
+
"bbox": [
|
| 1233 |
+
173,
|
| 1234 |
+
273,
|
| 1235 |
+
825,
|
| 1236 |
+
315
|
| 1237 |
+
],
|
| 1238 |
+
"page_idx": 11
|
| 1239 |
+
},
|
| 1240 |
+
{
|
| 1241 |
+
"type": "text",
|
| 1242 |
+
"text": "Juergen Schmidhuber, Jieyu Zhao, and MA Wiering. Simple principles of metalearning. ¨ Technical report IDSIA, 69:1–23, 1996. ",
|
| 1243 |
+
"bbox": [
|
| 1244 |
+
173,
|
| 1245 |
+
325,
|
| 1246 |
+
823,
|
| 1247 |
+
354
|
| 1248 |
+
],
|
| 1249 |
+
"page_idx": 11
|
| 1250 |
+
},
|
| 1251 |
+
{
|
| 1252 |
+
"type": "text",
|
| 1253 |
+
"text": "Jurgen Schmidhuber. Curious model-building control systems. In ¨ In Proc. International Joint Conference on Neural Networks, Singapore, pp. 1458–1463. IEEE, 1991a. ",
|
| 1254 |
+
"bbox": [
|
| 1255 |
+
171,
|
| 1256 |
+
363,
|
| 1257 |
+
823,
|
| 1258 |
+
392
|
| 1259 |
+
],
|
| 1260 |
+
"page_idx": 11
|
| 1261 |
+
},
|
| 1262 |
+
{
|
| 1263 |
+
"type": "text",
|
| 1264 |
+
"text": "Jurgen Schmidhuber. A possibility for implementing curiosity and boredom in model-building neu- ¨ ral controllers, 1991b. ",
|
| 1265 |
+
"bbox": [
|
| 1266 |
+
173,
|
| 1267 |
+
401,
|
| 1268 |
+
823,
|
| 1269 |
+
431
|
| 1270 |
+
],
|
| 1271 |
+
"page_idx": 11
|
| 1272 |
+
},
|
| 1273 |
+
{
|
| 1274 |
+
"type": "text",
|
| 1275 |
+
"text": "Satinder Singh, Richard L. Lewis, and Andrew G. Barto. Where do rewards come from?, 2009. ",
|
| 1276 |
+
"bbox": [
|
| 1277 |
+
174,
|
| 1278 |
+
439,
|
| 1279 |
+
799,
|
| 1280 |
+
455
|
| 1281 |
+
],
|
| 1282 |
+
"page_idx": 11
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"type": "text",
|
| 1286 |
+
"text": "Satinder Singh, Richard L. Lewis, and Andrew G. Barto. Intrinsically motivated reinforcement learning: An evolutionary perspective. In L. K. Saul, Y. Weiss, and L. Bottou (eds.), IEEE TRANSACTIONS ON AUTONOMOUS MENTAL DEVELOPMENT. 2010. ",
|
| 1287 |
+
"bbox": [
|
| 1288 |
+
176,
|
| 1289 |
+
464,
|
| 1290 |
+
823,
|
| 1291 |
+
507
|
| 1292 |
+
],
|
| 1293 |
+
"page_idx": 11
|
| 1294 |
+
},
|
| 1295 |
+
{
|
| 1296 |
+
"type": "text",
|
| 1297 |
+
"text": "Jonathan Sorg, Richard L Lewis, and Satinder Singh. Reward design via online gradient ascent. In J. D. Lafferty, C. K. I. Williams, J. Shawe-Taylor, R. S. Zemel, and A. Culotta (eds.), Advances in Neural Information Processing Systems 23, pp. 2190–2198. Curran Associates, Inc., 2010. URL http://papers.nips.cc/paper/ 4146-reward-design-via-online-gradient-ascent.pdf. ",
|
| 1298 |
+
"bbox": [
|
| 1299 |
+
173,
|
| 1300 |
+
516,
|
| 1301 |
+
825,
|
| 1302 |
+
587
|
| 1303 |
+
],
|
| 1304 |
+
"page_idx": 11
|
| 1305 |
+
},
|
| 1306 |
+
{
|
| 1307 |
+
"type": "text",
|
| 1308 |
+
"text": "Bradly C Stadie, Ge Yang, Rein Houthooft, Xi Chen, Yan Duan, Yuhuai Wu, Pieter Abbeel, and Ilya Sutskever. Some considerations on learning to explore via meta-reinforcement learning. arXiv preprint arXiv:1803.01118, 2018. ",
|
| 1309 |
+
"bbox": [
|
| 1310 |
+
174,
|
| 1311 |
+
597,
|
| 1312 |
+
825,
|
| 1313 |
+
638
|
| 1314 |
+
],
|
| 1315 |
+
"page_idx": 11
|
| 1316 |
+
},
|
| 1317 |
+
{
|
| 1318 |
+
"type": "text",
|
| 1319 |
+
"text": "Alexander L Strehl and Michael L Littman. An analysis of model-based interval estimation for markov decision processes. Journal of Computer and System Sciences, 74(8):1309–1331, 2008. ",
|
| 1320 |
+
"bbox": [
|
| 1321 |
+
173,
|
| 1322 |
+
648,
|
| 1323 |
+
823,
|
| 1324 |
+
678
|
| 1325 |
+
],
|
| 1326 |
+
"page_idx": 11
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "text",
|
| 1330 |
+
"text": "Richard S. Sutton. Integrated architectures for learning, planning, and reacting based on approximating dynamic programming. In In Proceedings of the Seventh International Conference on Machine Learning, pp. 216–224. Morgan Kaufmann, 1990. ",
|
| 1331 |
+
"bbox": [
|
| 1332 |
+
173,
|
| 1333 |
+
686,
|
| 1334 |
+
825,
|
| 1335 |
+
729
|
| 1336 |
+
],
|
| 1337 |
+
"page_idx": 11
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"type": "text",
|
| 1341 |
+
"text": "Richard S Sutton, David A McAllester, Satinder Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. In Advances in neural information processing systems, pp. 1057–1063, 2000. ",
|
| 1342 |
+
"bbox": [
|
| 1343 |
+
173,
|
| 1344 |
+
738,
|
| 1345 |
+
825,
|
| 1346 |
+
781
|
| 1347 |
+
],
|
| 1348 |
+
"page_idx": 11
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"type": "text",
|
| 1352 |
+
"text": "Sebastian Thrun and Lorien Pratt. Learning to learn: Introduction and overview. In Learning to learn, pp. 3–17. Springer, 1998. ",
|
| 1353 |
+
"bbox": [
|
| 1354 |
+
171,
|
| 1355 |
+
791,
|
| 1356 |
+
823,
|
| 1357 |
+
820
|
| 1358 |
+
],
|
| 1359 |
+
"page_idx": 11
|
| 1360 |
+
},
|
| 1361 |
+
{
|
| 1362 |
+
"type": "text",
|
| 1363 |
+
"text": "Vivek Veeriah, Matteo Hessel, Zhongwen Xu, Richard Lewis, Janarthanan Rajendran, Junhyuk Oh, Hado van Hasselt, David Silver, and Satinder Singh. Discovery of useful questions as auxiliary tasks. CoRR, abs/1909.04607, 2019. URL http://arxiv.org/abs/1909.04607. ",
|
| 1364 |
+
"bbox": [
|
| 1365 |
+
173,
|
| 1366 |
+
829,
|
| 1367 |
+
825,
|
| 1368 |
+
872
|
| 1369 |
+
],
|
| 1370 |
+
"page_idx": 11
|
| 1371 |
+
},
|
| 1372 |
+
{
|
| 1373 |
+
"type": "text",
|
| 1374 |
+
"text": "Jane X. Wang, Zeb Kurth-Nelson, Dhruva Tirumala, Hubert Soyer, Joel Z. Leibo, Remi Munos, ´ Charles Blundell, Dharshan Kumaran, and Matthew M Botvinick. Learning to reinforcement learn. ArXiv, abs/1611.05763, 2016. ",
|
| 1375 |
+
"bbox": [
|
| 1376 |
+
174,
|
| 1377 |
+
882,
|
| 1378 |
+
825,
|
| 1379 |
+
924
|
| 1380 |
+
],
|
| 1381 |
+
"page_idx": 11
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"type": "text",
|
| 1385 |
+
"text": "Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Mach. Learn., 8(3-4):229–256, May 1992. ISSN 0885-6125. doi: 10.1007/ BF00992696. \nKelvin Xu, Ellis Ratner, Anca Dragan, Sergey Levine, and Chelsea Finn. Learning a prior over intent via meta-inverse reinforcement learning. arXiv preprint arXiv:1805.12573, 2018a. \nTianbing Xu, Qiang Liu, Liang Zhao, and Jian Peng. Learning to explore with meta-policy gradient. arXiv preprint arXiv:1803.05044, 2018b. \nZhongwen Xu, Hado P van Hasselt, and David Silver. Meta-gradient reinforcement learning. In Advances in Neural Information Processing Systems, pp. 2396–2407, 2018c. \nZeyu Zheng, Junhyuk Oh, and Satinder Singh. On learning intrinsic rewards for policy gradient methods. In Advances in Neural Information Processing Systems, pp. 4644–4654, 2018. ",
|
| 1386 |
+
"bbox": [
|
| 1387 |
+
171,
|
| 1388 |
+
103,
|
| 1389 |
+
826,
|
| 1390 |
+
297
|
| 1391 |
+
],
|
| 1392 |
+
"page_idx": 12
|
| 1393 |
+
},
|
| 1394 |
+
{
|
| 1395 |
+
"type": "text",
|
| 1396 |
+
"text": "A DERIVATION OF INTRINSIC REWARD UPDATE ",
|
| 1397 |
+
"text_level": 1,
|
| 1398 |
+
"bbox": [
|
| 1399 |
+
174,
|
| 1400 |
+
102,
|
| 1401 |
+
581,
|
| 1402 |
+
118
|
| 1403 |
+
],
|
| 1404 |
+
"page_idx": 13
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"type": "text",
|
| 1408 |
+
"text": "Following the conventional notation in RL, we define $v _ { T } ( \\tau _ { t } | \\eta , \\theta _ { 0 } )$ as the state-value function that estimates the expected future lifetime return given the lifetime history $\\tau _ { t }$ , the task $\\tau$ , initial policy parameters $\\theta _ { 0 }$ and the intrinsic reward parameters $\\eta$ . Specially, $v _ { T } ( \\tau _ { 0 } | \\eta , \\theta _ { 0 } )$ denotes the expected lifetime return at the starting state, i.e., ",
|
| 1409 |
+
"bbox": [
|
| 1410 |
+
173,
|
| 1411 |
+
132,
|
| 1412 |
+
825,
|
| 1413 |
+
189
|
| 1414 |
+
],
|
| 1415 |
+
"page_idx": 13
|
| 1416 |
+
},
|
| 1417 |
+
{
|
| 1418 |
+
"type": "equation",
|
| 1419 |
+
"img_path": "images/40b8a93d5629a1e4d921518583d3d87d9e3b37f0c7f3e838e4f6f181a48cb29a.jpg",
|
| 1420 |
+
"text": "$$\nv _ { T } ( \\tau _ { 0 } | \\eta , \\theta _ { 0 } ) = \\mathbb { E } _ { \\tau \\sim p _ { \\eta } ( \\tau | \\theta _ { 0 } ) } \\left[ G ^ { \\mathrm { l i f e } } \\right] ,\n$$",
|
| 1421 |
+
"text_format": "latex",
|
| 1422 |
+
"bbox": [
|
| 1423 |
+
380,
|
| 1424 |
+
195,
|
| 1425 |
+
616,
|
| 1426 |
+
217
|
| 1427 |
+
],
|
| 1428 |
+
"page_idx": 13
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"type": "text",
|
| 1432 |
+
"text": "where $G ^ { \\mathrm { l i f e } }$ denotes the lifetime return in task $\\tau$ . We also define the action-value function $q _ { T } ( \\tau _ { t } , a _ { t } | \\eta , \\theta _ { 0 } )$ accordingly as the expected future lifetime return given the lifetime history $\\tau _ { t }$ and an action $a _ { t }$ . ",
|
| 1433 |
+
"bbox": [
|
| 1434 |
+
174,
|
| 1435 |
+
224,
|
| 1436 |
+
826,
|
| 1437 |
+
267
|
| 1438 |
+
],
|
| 1439 |
+
"page_idx": 13
|
| 1440 |
+
},
|
| 1441 |
+
{
|
| 1442 |
+
"type": "text",
|
| 1443 |
+
"text": "The objective function of the optimal reward problem is defined as: ",
|
| 1444 |
+
"bbox": [
|
| 1445 |
+
174,
|
| 1446 |
+
273,
|
| 1447 |
+
616,
|
| 1448 |
+
289
|
| 1449 |
+
],
|
| 1450 |
+
"page_idx": 13
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"type": "equation",
|
| 1454 |
+
"img_path": "images/48a49896f5fcde1f98b416d986d4e4695676898ad930ed94b7e75e72c48ff136.jpg",
|
| 1455 |
+
"text": "$$\n\\begin{array} { r l } & { J ( \\eta ) = \\mathbb { E } _ { \\theta _ { 0 } \\sim \\Theta , \\mathcal { T } \\sim p ( \\mathcal { T } ) } \\left[ \\mathbb { E } _ { \\tau \\sim p _ { \\eta } ( \\tau \\mid \\theta _ { 0 } ) } \\left[ G ^ { \\mathrm { l i f e } } \\right] \\right] } \\\\ & { \\qquad = \\mathbb { E } _ { \\theta _ { 0 } \\sim \\Theta , \\mathcal { T } \\sim p ( \\mathcal { T } ) } \\left[ v _ { \\mathcal { T } } ( \\tau _ { 0 } \\vert \\eta , \\theta _ { 0 } ) \\right] , } \\end{array}\n$$",
|
| 1456 |
+
"text_format": "latex",
|
| 1457 |
+
"bbox": [
|
| 1458 |
+
352,
|
| 1459 |
+
294,
|
| 1460 |
+
645,
|
| 1461 |
+
335
|
| 1462 |
+
],
|
| 1463 |
+
"page_idx": 13
|
| 1464 |
+
},
|
| 1465 |
+
{
|
| 1466 |
+
"type": "text",
|
| 1467 |
+
"text": "where $\\Theta$ and $p ( \\mathcal { T } )$ are an initial policy distribution and a task distribution respectively. ",
|
| 1468 |
+
"bbox": [
|
| 1469 |
+
166,
|
| 1470 |
+
340,
|
| 1471 |
+
740,
|
| 1472 |
+
356
|
| 1473 |
+
],
|
| 1474 |
+
"page_idx": 13
|
| 1475 |
+
},
|
| 1476 |
+
{
|
| 1477 |
+
"type": "text",
|
| 1478 |
+
"text": "Assuming the task $\\tau$ and the initial policy parameters $\\theta _ { 0 }$ are given, we omit $\\tau$ and $\\theta _ { 0 }$ for the rest of equations for simplicity. Let $\\pi _ { \\eta } ( \\cdot | \\tau _ { t } ) = \\dot { \\pi } _ { \\theta _ { t } } \\bar { ( \\cdot | s _ { t } ) }$ be the probability distribution over actions at time $t$ given the history $\\tau _ { t }$ , where $\\dot { \\theta _ { t } } = f _ { \\eta } ( \\tau _ { t } , \\theta _ { 0 } )$ is the policy parameters at time $t$ in the lifetime. We can derive the meta-gradient with respect to $\\eta$ by the following: ",
|
| 1479 |
+
"bbox": [
|
| 1480 |
+
173,
|
| 1481 |
+
362,
|
| 1482 |
+
825,
|
| 1483 |
+
419
|
| 1484 |
+
],
|
| 1485 |
+
"page_idx": 13
|
| 1486 |
+
},
|
| 1487 |
+
{
|
| 1488 |
+
"type": "equation",
|
| 1489 |
+
"img_path": "images/1f4f601db8561c43ec985b996e8517ec35db58a930f4c61c39b3b653a97dd63a.jpg",
|
| 1490 |
+
"text": "$$\n\\begin{array} { r l } & \\begin{array} { r l } & { ( \\gamma _ { 1 } , \\gamma _ { 2 } ) } \\\\ & { = \\nabla _ { x } \\cdot \\nabla _ { x } \\cdot \\rho ( x _ { 2 } ) ) \\cdot } \\\\ & { = \\nabla _ { x } \\cdot \\left[ \\sum _ { \\alpha } \\cdot \\nabla _ { x } \\cdot ( \\alpha ) \\ln ^ { \\beta } [ \\gamma _ { \\alpha } ] \\cdot \\rho _ { \\alpha } ( x _ { \\beta } , \\alpha , \\eta ) \\right] } \\\\ & { = \\nabla _ { x } \\cdot \\left[ \\nabla _ { x } \\cdot \\sigma _ { \\alpha } ( x _ { \\beta } ) \\mathrm { e r f o r } [ \\gamma _ { \\alpha } , \\alpha , \\eta ) \\right] } \\\\ & { \\quad - \\frac { 1 } { \\sqrt { \\alpha } } \\left[ \\nabla _ { x } \\cdot \\sigma _ { \\alpha } ( x _ { \\beta } ) \\mathrm { e r f o r } [ \\gamma _ { \\alpha } , \\alpha , \\eta ) ] - \\sigma _ { \\alpha } ( x _ { \\beta } ) \\cdot \\nabla _ { x } \\cdot \\rho _ { \\alpha } ( x _ { \\beta } ) \\cdot \\sigma _ { \\alpha } ( x _ { \\beta } ) \\right] } \\\\ & { = - \\frac { 1 } { \\sqrt { \\alpha } } \\left[ \\nabla _ { x } \\cdot \\sigma _ { \\alpha } ( x _ { \\beta } ) \\mathrm { e r f o r } [ \\gamma _ { \\alpha } , \\gamma _ { \\alpha } , \\eta ) ] \\cdot \\Pi _ { \\alpha \\eta \\gamma } \\cdot \\sigma _ { \\alpha } ( x _ { \\beta } ) \\cdot \\sigma _ { \\alpha } ( x _ { \\beta } ) \\right] \\cdot \\nabla _ { x } \\cdot \\rho _ { \\alpha } ( x _ { \\beta } ) \\cdot \\sigma _ { \\alpha } ( x _ { \\eta } ) \\cdot \\sigma _ { \\alpha } ( x _ { \\eta } ) \\cdot \\sigma _ { \\alpha } ( x _ { \\beta } ) \\cdot } \\\\ & { \\quad - \\frac { 1 } { \\sqrt { \\alpha } } \\left[ \\nabla _ { x } \\cdot \\sigma _ { \\alpha } ( x _ { \\beta } ) \\mathrm { e r f o r } [ \\gamma _ { \\alpha } , \\eta ] \\cdot \\sigma _ { \\alpha } ( x _ { \\eta } ) ) \\right] \\cdot \\Pi _ { \\alpha \\eta \\gamma } \\cdot \\rho _ { \\alpha } ( x _ { \\beta } ) \\cdot \\nabla _ { x } \\cdot \\rho _ { \\alpha } ( x _ { \\eta } ) \\cdot \\nabla _ { x } \\cdot \\rho _ { \\alpha } ( x _ { \\eta } ) \\cdot \\sigma _ { \\alpha } ( x _ { \\beta } ) \\right] } \\\\ & = \\frac { 1 } { \\sqrt { \\alpha } } \\left[ \\nabla _ { x } \\cdot \\sigma _ { \\alpha } ( x _ { \\beta } ) \\mathrm { e r f o r } [ \\gamma _ { \\alpha } , \\eta \\end{array} \\end{array}\n$$",
|
| 1491 |
+
"text_format": "latex",
|
| 1492 |
+
"bbox": [
|
| 1493 |
+
207,
|
| 1494 |
+
435,
|
| 1495 |
+
787,
|
| 1496 |
+
729
|
| 1497 |
+
],
|
| 1498 |
+
"page_idx": 13
|
| 1499 |
+
},
|
| 1500 |
+
{
|
| 1501 |
+
"type": "text",
|
| 1502 |
+
"text": "where $\\begin{array} { r } { G _ { t } = \\sum _ { k = t } ^ { T - 1 } r _ { k } } \\end{array}$ is the lifetime return given the history $\\tau _ { t }$ , and we assume the discount factor $\\gamma = 1$ for brevity. Thus, the derivative of the overall objective is: ",
|
| 1503 |
+
"bbox": [
|
| 1504 |
+
173,
|
| 1505 |
+
734,
|
| 1506 |
+
823,
|
| 1507 |
+
765
|
| 1508 |
+
],
|
| 1509 |
+
"page_idx": 13
|
| 1510 |
+
},
|
| 1511 |
+
{
|
| 1512 |
+
"type": "equation",
|
| 1513 |
+
"img_path": "images/54a12cda25a0b54874cbe1df6ee3bef404f641f45efcc3eb522643229884f80d.jpg",
|
| 1514 |
+
"text": "$$\n\\begin{array} { r } { \\nabla _ { \\eta } J ( \\eta ) = \\mathbb { E } _ { \\theta _ { 0 } \\sim \\Theta , \\mathcal { T } \\sim p ( \\mathcal { T } ) } \\left[ \\mathbb { E } _ { \\tau _ { t } \\sim p ( \\tau _ { t } \\mid \\eta , \\theta _ { 0 } ) } \\left[ G _ { t } \\nabla _ { \\theta _ { t } } \\log \\pi _ { \\theta _ { t } } ( a _ { t } | s _ { t } ) \\nabla _ { \\eta } \\theta _ { t } \\right] \\right] . } \\end{array}\n$$",
|
| 1515 |
+
"text_format": "latex",
|
| 1516 |
+
"bbox": [
|
| 1517 |
+
261,
|
| 1518 |
+
770,
|
| 1519 |
+
735,
|
| 1520 |
+
791
|
| 1521 |
+
],
|
| 1522 |
+
"page_idx": 13
|
| 1523 |
+
},
|
| 1524 |
+
{
|
| 1525 |
+
"type": "text",
|
| 1526 |
+
"text": "B EXPERIMENTAL DETAILS ",
|
| 1527 |
+
"text_level": 1,
|
| 1528 |
+
"bbox": [
|
| 1529 |
+
176,
|
| 1530 |
+
102,
|
| 1531 |
+
419,
|
| 1532 |
+
118
|
| 1533 |
+
],
|
| 1534 |
+
"page_idx": 14
|
| 1535 |
+
},
|
| 1536 |
+
{
|
| 1537 |
+
"type": "text",
|
| 1538 |
+
"text": "B.1 IMPLEMENTATION DETAILS ",
|
| 1539 |
+
"text_level": 1,
|
| 1540 |
+
"bbox": [
|
| 1541 |
+
176,
|
| 1542 |
+
135,
|
| 1543 |
+
408,
|
| 1544 |
+
150
|
| 1545 |
+
],
|
| 1546 |
+
"page_idx": 14
|
| 1547 |
+
},
|
| 1548 |
+
{
|
| 1549 |
+
"type": "text",
|
| 1550 |
+
"text": "We used mini-batch update to reduce the variance of meta-gradient estimation. Specifically, we ran 64 lifetimes in parallel, each with a randomly sample task and randomly initialised policy parameters. We took the average of the meta-gradients from each lifetime to compute the update to the intrinsic reward parameters $( \\eta )$ . We ran $2 \\times 1 0 ^ { 5 }$ updates to $\\eta$ at training time. We used arctan activation on the output of the intrinsic reward. The hyperparameters used for each domain are described in Table 1. ",
|
| 1551 |
+
"bbox": [
|
| 1552 |
+
174,
|
| 1553 |
+
161,
|
| 1554 |
+
825,
|
| 1555 |
+
246
|
| 1556 |
+
],
|
| 1557 |
+
"page_idx": 14
|
| 1558 |
+
},
|
| 1559 |
+
{
|
| 1560 |
+
"type": "table",
|
| 1561 |
+
"img_path": "images/501f2292c05ccdb02e24bf93cdaf2aa25cf2f3c865bcc3bf66bd24659b47795f.jpg",
|
| 1562 |
+
"table_caption": [
|
| 1563 |
+
"Table 1: Hyperparameters. "
|
| 1564 |
+
],
|
| 1565 |
+
"table_footnote": [],
|
| 1566 |
+
"table_body": "<table><tr><td>Hyperparameters</td><td>Empty Rooms</td><td>Random ABC</td><td>Key-Box</td><td>Non-stationary ABC</td></tr><tr><td>Time limit per episode</td><td>100</td><td>10</td><td>100</td><td>10</td></tr><tr><td>Numberof episodes per lifetime</td><td>200</td><td>50</td><td>5000</td><td>1000</td></tr><tr><td>Inner unroll length</td><td>8</td><td>4</td><td>16</td><td>4</td></tr><tr><td>Entropy regularisation</td><td>0.01</td><td>0.01</td><td>0.01</td><td>0.05</td></tr><tr><td>Policy architecture</td><td colspan=\"4\">Conv(16)-FC(64)</td></tr><tr><td>Policy optimiser</td><td colspan=\"4\">SGD SGD</td></tr><tr><td>Policy learning rate</td><td colspan=\"4\">Adam 0.1 0.1 0.001</td></tr><tr><td>Reward architecture</td><td colspan=\"4\">Conv(16)-FC(64)-LSTM(64) Adam</td></tr><tr><td>Reward optimiser Reward learning rate</td><td colspan=\"4\">0.001</td></tr><tr><td>Outer unroll length</td><td colspan=\"4\">5</td></tr><tr><td>Inner discount factor</td><td colspan=\"4\">0.9</td></tr><tr><td>Outer discounter factor</td><td colspan=\"4\"></td></tr><tr><td></td><td colspan=\"4\">0.99</td></tr></table>",
|
| 1567 |
+
"bbox": [
|
| 1568 |
+
179,
|
| 1569 |
+
285,
|
| 1570 |
+
816,
|
| 1571 |
+
477
|
| 1572 |
+
],
|
| 1573 |
+
"page_idx": 14
|
| 1574 |
+
},
|
| 1575 |
+
{
|
| 1576 |
+
"type": "text",
|
| 1577 |
+
"text": "B.2 DOMAINS ",
|
| 1578 |
+
"text_level": 1,
|
| 1579 |
+
"bbox": [
|
| 1580 |
+
174,
|
| 1581 |
+
503,
|
| 1582 |
+
287,
|
| 1583 |
+
518
|
| 1584 |
+
],
|
| 1585 |
+
"page_idx": 14
|
| 1586 |
+
},
|
| 1587 |
+
{
|
| 1588 |
+
"type": "text",
|
| 1589 |
+
"text": "We will consider five task distributions, instantiated within one of the three main gridworld domains shown in Figure 2. In all cases the agent has four actions available, corresponding to moving up, down, left and right. However the topology of the gridworld and the reward structure may vary. ",
|
| 1590 |
+
"bbox": [
|
| 1591 |
+
174,
|
| 1592 |
+
531,
|
| 1593 |
+
825,
|
| 1594 |
+
574
|
| 1595 |
+
],
|
| 1596 |
+
"page_idx": 14
|
| 1597 |
+
},
|
| 1598 |
+
{
|
| 1599 |
+
"type": "text",
|
| 1600 |
+
"text": "B.2.1 EMPTY ROOMS ",
|
| 1601 |
+
"text_level": 1,
|
| 1602 |
+
"bbox": [
|
| 1603 |
+
176,
|
| 1604 |
+
590,
|
| 1605 |
+
338,
|
| 1606 |
+
604
|
| 1607 |
+
],
|
| 1608 |
+
"page_idx": 14
|
| 1609 |
+
},
|
| 1610 |
+
{
|
| 1611 |
+
"type": "text",
|
| 1612 |
+
"text": "Figure 2a shows the layout of the Empty Rooms domain. There are four rooms in this domain. The agent always starts at the centre of the top-left room. One and only one cell is rewarding, which is called the goal. The goal is invisible. The goal location is sampled uniformly from all cells at the beginning of each lifetime. An episode terminates when the agent reaches the goal location or a time limit of 100 steps is reached. Each lifetime consists of 200 episodes. The agent needs to explore all rooms to find the goal and then goes to the goal afterwards. ",
|
| 1613 |
+
"bbox": [
|
| 1614 |
+
173,
|
| 1615 |
+
616,
|
| 1616 |
+
825,
|
| 1617 |
+
700
|
| 1618 |
+
],
|
| 1619 |
+
"page_idx": 14
|
| 1620 |
+
},
|
| 1621 |
+
{
|
| 1622 |
+
"type": "text",
|
| 1623 |
+
"text": "B.2.2 ABC WORLD ",
|
| 1624 |
+
"text_level": 1,
|
| 1625 |
+
"bbox": [
|
| 1626 |
+
174,
|
| 1627 |
+
718,
|
| 1628 |
+
326,
|
| 1629 |
+
732
|
| 1630 |
+
],
|
| 1631 |
+
"page_idx": 14
|
| 1632 |
+
},
|
| 1633 |
+
{
|
| 1634 |
+
"type": "text",
|
| 1635 |
+
"text": "Figure 2b shows the layout of the ABC World domain. There is a single 5 by 5 room, with three objects (denoted by A, B, C). All object provides reward upon reaching them. An episode terminates when the agent reaches an object or a time limit of 10 steps is reached. We consider three different versions of this environment: Fixed ABC, Random $A B C$ and Non-stationary ABC. In the Fixed ABC environment, each lifetime has 200 episodes. The reward associated with each object is fixed across lifetimes. Specifically, the rewards for objects A, B, and C are 1, $- 0 . 5$ , and 0.5 respectively. The optimal policy is to always collect A. In the Random ABC environment, each lifetime has 50 episodes. The reward associated with each object is randomly sampled for each lifetime and is held fixed within a lifetime. Thus, the environment is stationary from an agent’s perspective but non-stationary from the reward function’s perspective. Specifically, the rewards for A, B, and C are uniformly sampled from $[ - 1 , 1 ]$ , $[ - 0 . 5 , 0 ]$ , and [0.0.5] respectively. The optimal behaviour is to explore A and C at the beginning of a lifetime to assess which is the better, and then commits to the better one for all subsequent episode. In the non-stationary ABC environment, each lifetime has ",
|
| 1636 |
+
"bbox": [
|
| 1637 |
+
173,
|
| 1638 |
+
742,
|
| 1639 |
+
825,
|
| 1640 |
+
924
|
| 1641 |
+
],
|
| 1642 |
+
"page_idx": 14
|
| 1643 |
+
},
|
| 1644 |
+
{
|
| 1645 |
+
"type": "image",
|
| 1646 |
+
"img_path": "images/3566109a904a4c2bf69ea4b8440f6405ed3491a41000a33b790269d9b3556327.jpg",
|
| 1647 |
+
"image_caption": [
|
| 1648 |
+
"Figure 10: Evaluation of different rewards in the Fixed ABC domain. The $\\mathbf { X }$ -axis shows the number of episodes within a single lifetime; the y-axis measures the episode return. "
|
| 1649 |
+
],
|
| 1650 |
+
"image_footnote": [],
|
| 1651 |
+
"bbox": [
|
| 1652 |
+
339,
|
| 1653 |
+
103,
|
| 1654 |
+
656,
|
| 1655 |
+
227
|
| 1656 |
+
],
|
| 1657 |
+
"page_idx": 15
|
| 1658 |
+
},
|
| 1659 |
+
{
|
| 1660 |
+
"type": "text",
|
| 1661 |
+
"text": "1000 episodes. The rewards for A, B, and C are 1, $- 0 . 5$ , and $- 1$ respectively. The rewards for A and C swap every 250 episodes. ",
|
| 1662 |
+
"bbox": [
|
| 1663 |
+
173,
|
| 1664 |
+
294,
|
| 1665 |
+
823,
|
| 1666 |
+
321
|
| 1667 |
+
],
|
| 1668 |
+
"page_idx": 15
|
| 1669 |
+
},
|
| 1670 |
+
{
|
| 1671 |
+
"type": "text",
|
| 1672 |
+
"text": "B.2.3 KEY BOX WORLD ",
|
| 1673 |
+
"text_level": 1,
|
| 1674 |
+
"bbox": [
|
| 1675 |
+
174,
|
| 1676 |
+
337,
|
| 1677 |
+
357,
|
| 1678 |
+
352
|
| 1679 |
+
],
|
| 1680 |
+
"page_idx": 15
|
| 1681 |
+
},
|
| 1682 |
+
{
|
| 1683 |
+
"type": "text",
|
| 1684 |
+
"text": "Figure 2c shows the Key Box World domain. In this domain, there is a key and three boxes, A, B, and C. In order to open any box, the agent must pick up the key first. The rewards for A, B, and C are uniformly sampled from $[ - 1 , 1 ]$ , $[ - 0 . 5 , 0 ]$ , and $[ 0 , 0 . 5 ]$ respectively for each lifetime. An episode terminates when the agent opens a box or a time limit of 100 steps is reached. Each lifetime consists of 5000 episodes. ",
|
| 1685 |
+
"bbox": [
|
| 1686 |
+
174,
|
| 1687 |
+
361,
|
| 1688 |
+
825,
|
| 1689 |
+
431
|
| 1690 |
+
],
|
| 1691 |
+
"page_idx": 15
|
| 1692 |
+
},
|
| 1693 |
+
{
|
| 1694 |
+
"type": "text",
|
| 1695 |
+
"text": "B.3 HAND-DESIGNED NEAR-OPTIMAL EXPLORATION STRATEGY FOR RANDOM ABC ",
|
| 1696 |
+
"text_level": 1,
|
| 1697 |
+
"bbox": [
|
| 1698 |
+
173,
|
| 1699 |
+
449,
|
| 1700 |
+
771,
|
| 1701 |
+
463
|
| 1702 |
+
],
|
| 1703 |
+
"page_idx": 15
|
| 1704 |
+
},
|
| 1705 |
+
{
|
| 1706 |
+
"type": "text",
|
| 1707 |
+
"text": "We hand-designed a heuristic strategy for the Random ABC domain. We assume the agent has the prior knowledge that B is always bad and A and C have uncertain rewards. Therefore, the heuristic is to go to A in the first episode, go to C in the second episode, and then go to the better one in the remaining episodes in the lifetime. We view this heuristic as an upper-bound because it always finds the best object and can arbitrarily control the agent’s behaviour. ",
|
| 1708 |
+
"bbox": [
|
| 1709 |
+
174,
|
| 1710 |
+
474,
|
| 1711 |
+
825,
|
| 1712 |
+
545
|
| 1713 |
+
],
|
| 1714 |
+
"page_idx": 15
|
| 1715 |
+
},
|
| 1716 |
+
{
|
| 1717 |
+
"type": "text",
|
| 1718 |
+
"text": "C ADDITIONAL EMPIRICAL RESULT ",
|
| 1719 |
+
"text_level": 1,
|
| 1720 |
+
"bbox": [
|
| 1721 |
+
176,
|
| 1722 |
+
565,
|
| 1723 |
+
483,
|
| 1724 |
+
580
|
| 1725 |
+
],
|
| 1726 |
+
"page_idx": 15
|
| 1727 |
+
},
|
| 1728 |
+
{
|
| 1729 |
+
"type": "text",
|
| 1730 |
+
"text": "C.1 EXPLOITING OPTIMAL BEHAVIOUR ON A FIXED TASK ",
|
| 1731 |
+
"text_level": 1,
|
| 1732 |
+
"bbox": [
|
| 1733 |
+
174,
|
| 1734 |
+
597,
|
| 1735 |
+
583,
|
| 1736 |
+
611
|
| 1737 |
+
],
|
| 1738 |
+
"page_idx": 15
|
| 1739 |
+
},
|
| 1740 |
+
{
|
| 1741 |
+
"type": "text",
|
| 1742 |
+
"text": "To investigate what the intrinsic reward learns in a fixed task, we designed the ‘Fixed ABC’ environment (see Figure 2b). The reward for each object (A, B, and C) is fixed within and across lifetimes. When the agent collects an object, it receives the corresponding reward of 1, $- 0 . 5$ , or 0.5 for object A, B, or C respectively, and the episode terminates. Each lifetime contains 200 episodes. The optimal policy is to always collect A. The optimal reward should capture the regularity of the environment that object A has the highest reward and drive the agent towards object A. ",
|
| 1743 |
+
"bbox": [
|
| 1744 |
+
174,
|
| 1745 |
+
622,
|
| 1746 |
+
825,
|
| 1747 |
+
705
|
| 1748 |
+
],
|
| 1749 |
+
"page_idx": 15
|
| 1750 |
+
},
|
| 1751 |
+
{
|
| 1752 |
+
"type": "text",
|
| 1753 |
+
"text": "Figure 10 shows that agents trained with the learned intrinsic reward learn optimal policies within a few episodes. This indicates that the intrinsic reward memorises the fixed optimal behaviour during training and assigns rewards accordingly to aid learning during evaluation. The result on Fixed ABC is not particularly surprising. In a fixed task in a stationary environment, an optimal reward function does not need to encourage exploration, and helps the agent to directly learn the optimal behaviour as quickly as possible, similarly to reward shaping. ",
|
| 1754 |
+
"bbox": [
|
| 1755 |
+
173,
|
| 1756 |
+
712,
|
| 1757 |
+
825,
|
| 1758 |
+
797
|
| 1759 |
+
],
|
| 1760 |
+
"page_idx": 15
|
| 1761 |
+
}
|
| 1762 |
+
]
|
parse/train/SkgbmyHFDS/SkgbmyHFDS_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SkgbmyHFDS/SkgbmyHFDS_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/T3kmOP_cMFB/T3kmOP_cMFB.md
ADDED
|
@@ -0,0 +1,314 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# BOOSTING ONE-POINT DERIVATIVE-FREE ONLINE OPTIMIZATION VIA RESIDUAL FEEDBACK
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Zeroth-order optimization (ZO) typically relies on two-point feedback to estimate the unknown gradient of the objective function, which queries the objective function value twice at each time instant. However, if the objective function is time-varying, as in online optimization, two-point feedback can not be used. In this case, the gradient can be estimated using one-point feedback that queries a single function value at each time instant, although at the expense of producing gradient estimates with large variance. In this work, we propose a new one-point feedback method for online optimization that estimates the objective function gradient using the residual between two feedback points at consecutive time instants. We study the regret bound of ZO with residual feedback for both convex and nonconvex online optimization problems. Specifically, for both Lipschitz and smooth functions, we show that using residual feedback produces gradient estimates with much smaller variance compared to conventional one-point feedback methods, which improves the learning rate. Our regret bound for ZO with residual feedback is tighter than the existing regret bound for ZO with conventional one-point feedback and relies on weaker assumptions, which suggests that ZO with our proposed residual feedback can better track the optimizer of online optimization problems. We provide numerical experiments that demonstrate that ZO with residual feedback significantly outperforms existing one-point feedback methods in practice.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Zeroth-order optimization (ZO) algorithms have been widely used to solve online optimization problems where first or second order information (i.e., gradient or Hessian information) is unavailable at each time instant. Such problems arise, e.g., in online learning and involve adversarial training Chen et al. (2017) and reinforcement learning Fazel et al. (2018); Malik et al. (2018) among others. The goal in online optimization is to minimize a sequence of time-varying objective functions $\{ f _ { t } ( \bar { x } ) \} _ { t = 1 : T }$ , where the value $f _ { t } ( x _ { t } )$ is revealed to the agent after an action $x _ { t }$ is selected and is used to adapt the agent’s future strategy. Since the future objective functions are not known a priori, the performance of the online decision process can be measured using notions of regret, generally defined as the difference between the total cost incurred by the decision selected by the agent online and the cost of the fixed or varying optimal decision that a clairvoyant agent could select.
|
| 12 |
+
|
| 13 |
+
Perhaps the most popular zeroth-order gradient estimator is the two-point estimator that has been extensively studied in Agarwal et al. (2010); Ghadimi & Lan (2013); Duchi et al. (2015); Ghadimi et al. (2016); Bach & Perchet (2016); Nesterov & Spokoiny (2017); Gao et al. (2018); Roy et al. (2019). Specifically, the two-point estimator queries the function value $f _ { t } ( x )$ for twice, for two different realizations of the decision variables, and uses the difference in these function values to estimate the desired gradient, as illustrated by the equation
|
| 14 |
+
|
| 15 |
+
$$
|
| 16 |
+
\widetilde { g } _ { t } ^ { ( 2 ) } ( x ) = \frac { u } { \delta } \Big ( f _ { t } ( x + \delta u ) - f _ { t } ( x ) \Big ) ,
|
| 17 |
+
$$
|
| 18 |
+
|
| 19 |
+
where $\delta > 0$ is a parameter and $u \sim \mathcal { N } ( 0 , I )$ . However, the two-point gradient estimator can not be used for the solution of non-stationary online optimization problems that arise frequently, e.g., in online learning. The reason is that in these non-stationary online optimization problems, the objective
|
| 20 |
+
|
| 21 |
+
function being queried is time-varying, and hence only a single function value can be sampled at a given time instant. In this case, the following one-point feedback can be used
|
| 22 |
+
|
| 23 |
+
$$
|
| 24 |
+
( \mathrm { O n e - p o i n t ~ f e e d b a c k } ) \colon \widetilde { g } _ { t } ^ { ( 1 ) } ( x ) = \frac { u } { \delta } f _ { t } ( x + \delta u ) ,
|
| 25 |
+
$$
|
| 26 |
+
|
| 27 |
+
which queries the objective function $f _ { t } ( x )$ only once at each time instant. One-point feedback was first proposed and analyzed in Flaxman et al. (2005) for the solution of online convex optimization problems. Saha & Tewari (2011); Hazan & Levy (2014); Dekel et al. (2015) showed that the regret of convex online optimization methods using one-point gradient estimation can be improved assuming smoothness or strong convexity of the objective functions and using self-concordant regularization. More recently, Gasnikov et al. (2017) developed such regret bounds for stochastic convex problems. On the other hand, Hazan et al. (2016) characterized the convergence of one-point zeroth-order methods for static stochastic non-convex optimization problems. However, as shown in these studies, a limitation of one-point feedback is that the resulting gradient estimator has large variance and, therefore, induces large regret. In addition, the regret analysis for ZO with one-point feedback usually requires the strong assumption that the function value is uniformly upper bounded over time, so this method can not be used for practical non-stationary optimization problems.
|
| 28 |
+
|
| 29 |
+
Contributions: In this paper, we propose a novel one-point gradient estimator for zeroth-order online optimization and develop new regret bounds to study its performance. Specifically, our contributions are as follows. We propose a new one-point feedback scheme which requires a single function evaluation at each time instant. This feedback scheme estimates the gradient using the residual between two consecutive feedback points and we refer to it as residual feedback. We show that our residual feedback induces a smaller gradient estimation variance than the conventional one-point feedback scheme in Flaxman et al. (2005); Gasnikov et al. (2017). Furthermore, we provide regret bounds for online convex optimization with our proposed residual feedback estimator. Our analysis relies on a weaker assumption than the one needed in the case of the conventional one-point estimator, and our proposed regret bounds are tighter especially when the value of the objective function is large. In addition, we provide regret bounds for online non-convex optimization with residual feedback. Finally, we present numerical experiments that demonstrate that the proposed residual-feedback estimator significantly outperforms the conventional one-point method in its ability to track the time-varying optimizers of online learning problems. To the best of our knowledge, this is the first time a one-point zeroth-order method is theoretically studied for online non-convex optimization problems. It is also the first time that a one-point gradient estimator demonstrates comparable empirical performance to that of the two-point method. We note that two-point estimators can only be used to solve online non-stationary learning problems in simulations, where the system can be hard coded to be fixed during two queries of the objective function values at two different decision variables.
|
| 30 |
+
|
| 31 |
+
Related work: Zeroth-order methods have been used to solve many different types of optimization problems. For example, Balasubramanian & Ghadimi (2018) apply ZO to solve a set-constrained optimization problem where the projection onto the constraint set is non-trivial. Gorbunov et al. (2018); Ji et al. (2019) apply a variance-reduced technique and acceleration schemes to achieve better convergence speed in ZO. Wang et al. (2018) improve the dependence of the iteration complexity on the dimension of the problem under an additional sparsity assumption on the gradient of the objective function. And Hajinezhad & Zavlanos (2018); Tang & Li (2019) apply zeroth-order oracles to distributed optimization problems when only bandit feedbacks are available at each local agents. Our proposed residual feedback oracle can be used to solve such online optimization problems as well. Also related is work by Zhang et al. (2015) that considers non-convex online bandit optimization problems with a single query at each time step. However, this method employs the exploration and exploitation bandit learning framework and the proposed analysis is restricted to a special class of non-convex objective functions. Finally, Agarwal et al. (2011); Hazan & Li (2016); Bubeck et al. (2017) study online bandit algorithms using ellipsoid methods. In particular, these methods induce heavy computation per step and achieve regret bounds that have bad dependence on the problem dimension. As a comparison, our one-point method is computation light and achieves regret bounds that have better dependence on the problem dimension.
|
| 32 |
+
|
| 33 |
+
# 2 PRELIMINARIES AND RESIDUAL FEEDBACK
|
| 34 |
+
|
| 35 |
+
We first introduce the classes of Lipschitz and smooth functions.
|
| 36 |
+
|
| 37 |
+
Definition 2.1 (Lipschitz functions). The class of Lipschtiz-continuous functions $C ^ { 0 , 0 }$ satisfies: for any $f \in C ^ { 0 , 0 }$ , $| f ( x ) - f ( y ) | \leq L _ { 0 } \| x - y \|$ , 8x, $y \in \bar { \mathbb { R } } ^ { d }$ , where $L _ { 0 } > 0$ is the Lipschitz parameter. The class of smooth functions $C ^ { 1 , 1 }$ satisfies: for any ${ \bf { \bar { f } } } \in C ^ { 1 , 1 }$ , $\| \nabla f ( x ) - \nabla f ( y ) \| \leq L _ { 1 } \| x - y \|$ , $\forall x , y \in$ $\mathbb { R } ^ { d }$ , where $L _ { 1 } > 0$ is the smoothness parameter.
|
| 38 |
+
|
| 39 |
+
In ZO, the objective is to estimate the first-order gradient of a function using zeroth-order oracles. Necessarily, we need to perturb the function around the current point along all the directions uniformly in order to estimate the gradient. This motivates us to consider the Gaussian-smoothed version of the function $f$ as introduced in Nesterov & Spokoiny (2017), $f _ { \delta } ( x ) : = \mathbb { E } _ { u \sim \mathcal { N } ( 0 , 1 ) } [ f ( x + \delta u ) ]$ , where the coordinates of the vector $u$ are i.i.d standard Gaussian random variables. The following bounds on the approximation error of the function $f _ { \delta } ( x )$ have been developed in Nesterov & Spokoiny (2017).
|
| 40 |
+
|
| 41 |
+
Lemma 2.2. Consider a function $f$ and its smoothed version $f _ { \delta }$ . It holds that
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
f _ { \delta } ( x ) - f ( x ) | \leq \{ \delta L _ { 0 } \sqrt { d } , \ i f f \in C ^ { 0 , 0 } , \quad a n d \| \nabla f _ { \delta } ( x ) - \nabla f ( x ) \| \leq \delta L _ { 1 } ( d + 3 ) ^ { 3 / 2 } , \ i f f \in C ^ { 1 , 1 } .
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
The smoothed function $f _ { \delta } ( x )$ satisfies the following amenable property Nesterov & Spokoiny (2017).
|
| 48 |
+
|
| 49 |
+
Lemma 2.3. If $f \in C ^ { 0 , 0 }$ is $L _ { 0 }$ -Lipschitz, then $f _ { \delta } \in C ^ { 1 , 1 }$ with Lipschitz constant $L _ { 1 } = \sqrt { d } \delta ^ { - 1 } L _ { 0 }$ .
|
| 50 |
+
|
| 51 |
+
Consider the following online bandit optimization problem.
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
\operatorname* { m i n } _ { x \in \mathcal { X } } \sum _ { t = 0 } ^ { T - 1 } f _ { t } ( x ) ,
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
where $\mathcal { X } \subset \mathbb { R } ^ { d }$ is a convex set and $\cdot$ is a random sequence of objective functions. In this setting, the objective functions $\{ f _ { t } \} _ { t }$ are unknown a priori and their derivatives are unavailable. At time $t$ , a new objective function $f _ { t }$ is randomly generated independent of an agent’s decisions, and then the agent queries the objective function value at certain perturbed points and use them to update the current policy parameters. The goal of the agent is to minimize a certain regret function.
|
| 58 |
+
|
| 59 |
+
Such an online setting often occurs in non-stationary learning scenarios where either the system is time-varying on its own or a single query of the function $f _ { t }$ changes the system state (i.e., $f _ { t }$ changes to $f _ { t + 1 } )$ ). In this non-stationary setting, the conventional two-point feedback scheme is known to be impractical as it requires to evaluate $f _ { t }$ at two different points at the same time $t$ . Instead, it is natural to use the one-point feedback scheme (2) in Gasnikov et al. (2017). However, the gradient estimate based on the above one-point feedback induces a large variance that leads to a large regret. In this paper, we focus on such an one-point derivative-free setting and propose the following novel one-point residual feedback scheme for estimating the gradient with reduced variance.
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\mathrm { ~ \ k b } \mathrm { ~ \cdot ~ } \widetilde { g } _ { t } ( x _ { t } ) : = \frac { u _ { t } } { \delta } \big ( f _ { t } ( x _ { t } + \delta u _ { t } ) - f _ { t - 1 } ( x _ { t - 1 } + \delta u _ { t - 1 } ) \big ) ,
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
where $u _ { t - 1 } , u _ { t } \sim { \mathcal { N } } ( 0 , I )$ are independent random vectors. To elaborate, the residual feedback in (3) queries $f _ { t }$ at a single perturbed point $x _ { t } + \delta u _ { t }$ , and then subtracts it by $f _ { t - 1 } ( x _ { t - 1 } + \delta u _ { t - 1 } )$ obtained from the previous iteration. We name such a scheme as one-point residual feedback. Next, we explore some basic properties of the residual feedback. We first show that this estimator is an unbiased gradient estimate of the smoothed function $f _ { \delta , t }$ .
|
| 66 |
+
|
| 67 |
+
Lemma 2.4. The residual feedback satisfies $\mathbb { E } \left[ \widetilde { g } _ { t } ( x _ { t } ) \right] = \nabla f _ { \delta , t } ( x _ { t } )$ for all $x _ { t } \in \mathcal { X }$ and $t$ .
|
| 68 |
+
|
| 69 |
+
Proof. By the fact that $u _ { t }$ has zero mean and is independent from $u _ { t - 1 }$ and $x _ { t - 1 }$
|
| 70 |
+
|
| 71 |
+
We consider the following ZO algorithm with residual feedback
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
x _ { t + 1 } = \Pi _ { \mathcal { X } } \big ( x _ { t } - \eta \tilde { g } _ { t } ( x _ { t } ) \big ) ,
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
where $\eta$ is the learning rate and $\Pi _ { \mathcal { X } }$ is the projection operator onto the set $\mathcal { X }$ . The update (4) can be implemented assuming that the objective function can be queried at points outside the feasible set $\cdot$ , similar to the methods considered in Duchi et al. (2015); Bach & Perchet (2016); Gasnikov et al. (2017). Note that it is possible to modify the update (4) so that the iterates are guaranteed to be within the feasible set $\mathcal { X }$ . This modification and related analysis can be found in Section $_ \mathrm { H }$ in the supplementary material. The requirement that the objective function is evaluated at feasible points in derivative-free optimization algorithms has also been considered in Bubeck et al. (2017); Bilenne et al. (2020). Specifically, Bubeck et al. (2017) develop the so called ellipsoid method, which requires computation of an ellipsoid containing the optimizer at each time step. On the other hand, almost concurrently with this work, Bilenne et al. (2020) proposed a similar oracle as in (3) for a static convex optimization problem with specific objective and constraint functions. Next, we bound the second moment of the gradient estimate based on the residual feedback.
|
| 78 |
+
|
| 79 |
+
Lemma 2.5 (Second moment). Assume that $f _ { t } \in C ^ { 0 , 0 }$ with Lipschitz constant $L _ { 0 }$ for all time $t$ Then, under the ZO update rule in (4), the second moment of the residual feedback satisfies: for all $t$
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
\begin{array} { c } { \displaystyle \mathbb { E } [ \| \widetilde { g } _ { t } ( x _ { t } ) \| ^ { 2 } ] \leq \frac { 4 d L _ { 0 } ^ { 2 } \eta ^ { 2 } } { \delta ^ { 2 } } \mathbb { E } [ \| \widetilde { g } _ { t - 1 } ( x _ { t - 1 } ) \| ^ { 2 } ] + D _ { t } , } \\ { \displaystyle } \\ { w h e r e ~ D _ { t } : = 1 6 L _ { 0 } ^ { 2 } ( d + 4 ) ^ { 2 } + \frac { 2 d } { \delta ^ { 2 } } \mathbb { E } \big [ \big ( f _ { t } ( x _ { t - 1 } + \delta u _ { t - 1 } ) - f _ { t - 1 } ( x _ { t - 1 } + \delta u _ { t - 1 } ) \big ) ^ { 2 } \big ] . } \end{array}
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
The above lemma shows that the second moment of the residual feedback can be bounded by a perturbed contraction, provided that we choose $\eta$ and $\delta$ such that the contracting rate $\dot { \alpha } = \dot { 4 } d L _ { 0 } ^ { 2 } \eta ^ { 2 } \delta ^ { - 2 } < 1$ . As we show later in the analysis, such a contraction property leads to a small variance of the residual feedback that helps reduce the regret of the online ZO algorithm.
|
| 86 |
+
|
| 87 |
+
# 3 ZO WITH RESIDUAL FEEDBACK FOR ONLINE CONVEX OPTIMIZATION
|
| 88 |
+
|
| 89 |
+
In this section, we consider the online bandit problem (P) where the sequence of functions $\{ f _ { t } \} _ { t = 0 : T - 1 }$ are all convex. In particular, we are interested in analyzing the following static regret of the algorithm.
|
| 90 |
+
|
| 91 |
+
$$
|
| 92 |
+
R _ { T } : = \mathbb { E } \Big [ \sum _ { t = 0 } ^ { T - 1 } f _ { t } ( x _ { t } ) - \operatorname* { m i n } _ { x \in \mathscr { X } } \sum _ { t = 0 } ^ { T - 1 } f _ { t } ( x ) \Big ] .
|
| 93 |
+
$$
|
| 94 |
+
|
| 95 |
+
We make the following assumption on the non-stationary of the online learning problem.
|
| 96 |
+
|
| 97 |
+
Assumption 3.1 (Bounded variation). There exists $V _ { f } > 0$ such that for all $\cdot$ ,
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
\begin{array} { r } { \mathbb { E } \big [ | f _ { t } ( x _ { t - 1 } + \delta u _ { t - 1 } ) - f _ { t - 1 } ( x _ { t - 1 } + \delta u _ { t - 1 } ) | ^ { 2 } \big ] \leq V _ { f } ^ { 2 } , } \end{array}
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
here the expectation is taken over $x _ { t - 1 }$ , the random vector $\cdot$ and the random functions $\cdot$
|
| 104 |
+
|
| 105 |
+
Intuitively, we assume the squared variation of the objective function between two consecutive time instants is uniformly bounded over time. We note that this assumption is much weaker than the uniformly bounded function value assumption, i.e., $\mathbb { E } \big [ f _ { t } ( x ) ^ { 2 } \big ] \ \leq \ \dot { B } ^ { 2 } , \forall t , x \in \mathcal { X }$ , which is used in the analysis of ZO with the conventional one-point feedback Gasnikov et al. (2017). In particular, under Assumption 3.1, the perturbation term in Lemma 2.5 can be bounded as $D _ { t } \ \leq$ $\bar { 1 } 6 L _ { 0 } ^ { 2 } ( d + 4 ) ^ { 2 } + 2 d V _ { . } ^ { 2 } \delta ^ { - 2 }$ . Then, by telescoping the contraction inequality, we obtain the following bound for the second moment of the residual-feedback gradient estimate,
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\mathbb { E } [ \| \tilde { g } _ { t } ( x _ { t } ) \| ^ { 2 } ] \le \operatorname* { m a x } \Big \{ \mathbb { E } [ \| \tilde { g } _ { 0 } ( x _ { 0 } ) \| ^ { 2 } ] , \frac { 1 } { 1 - \alpha } \Big ( 1 6 L _ { 0 } ^ { 2 } ( d + 4 ) ^ { 2 } + \frac { 2 d } { \delta ^ { 2 } } V _ { f } ^ { 2 } \Big ) \Big \} .
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
In practice, $\delta$ is usually chosen to be sufficiently small, and the above bound is dominated by $\mathcal { O } ( \dot { d } \delta ^ { - 2 } V _ { f } ^ { 2 } )$ , which is much smaller than the second moment bound of the conventional one-point feedback $\mathcal { O } ( d \delta ^ { - 2 } B ^ { 2 } )$ ( $B ^ { 2 }$ is the uniform bound of the second moment of $f _ { t }$ over time). For example, consider the time-varying objective functions, $f _ { 0 } ( x ) = 1 / 2 x ^ { 2 }$ and $f _ { t } ( x ) = f _ { t - 1 } ( x ) + n _ { t }$ , where $\cdot$ is Gaussian noise with zero mean at time $t$ . Then, it can be verified that Assumption 3.1 holds with a finite $\cdot$ whereas the second moment of $f _ { t } ( x )$ is unbounded over time. This suggests that the variance of the residual feedback can be significantly smaller than that of the conventional one-point feedback.
|
| 112 |
+
|
| 113 |
+
Next, we first consider the case where the objective function $f _ { t }$ is convex and Lipschitz. Based on the above characterization of the second moment of residual feedback, we obtain the following regret bound for ZO with residual feedback.
|
| 114 |
+
|
| 115 |
+
Theorem 3.2 (Regret for Convex Lipschitz $f _ { t }$ ). Let Assumption 3.1 hold. Assume that $f _ { t } \in C ^ { 0 , 0 }$ is convex with Lipschitz constant $L _ { 0 }$ for all $t$ and $\| x _ { 0 } - x ^ { * } \| \leq R$ . Run $Z O$ with residual feedback for $T > R ^ { 2 }$ iterations with $\eta = R ^ { \frac { 3 } { 2 } } ( 2 \sqrt { 2 } L _ { 0 } \sqrt { d } T ^ { \frac { 3 } { 4 } } ) ^ { - 1 }$ and $\delta = \sqrt { R } T ^ { - \frac { 1 } { 4 } }$ . Then, we have that
|
| 116 |
+
|
| 117 |
+
$$
|
| 118 |
+
R _ { T } \leq \sqrt { 2 } L _ { 0 } \sqrt { d R } T ^ { \frac { 3 } { 4 } } + \frac { \mathbb { E } \left[ \| \tilde { g } _ { 0 } ( x _ { 0 } ) \| ^ { 2 } \right] R ^ { \frac { 3 } { 2 } } } { 2 \sqrt { 2 d } L _ { 0 } T ^ { \frac { 3 } { 4 } } } + 8 \sqrt { 2 } \frac { ( d + 4 ) ^ { 2 } } { \sqrt { d } } L _ { 0 } R ^ { \frac { 3 } { 2 } } T ^ { \frac { 1 } { 4 } }
|
| 119 |
+
$$
|
| 120 |
+
|
| 121 |
+
Asymptotically, we have $R _ { T } = \mathcal { O } ( ( L _ { 0 } + { L _ { 0 } } ^ { - 1 } V _ { f } ^ { 2 } ) \sqrt { d R } T ^ { \frac { 3 } { 4 } } )$ .
|
| 122 |
+
|
| 123 |
+
To the best of our knowledge, the best known regret for ZO with the conventional one-point feedback is of the order $\mathcal { O } ( \sqrt { d L _ { 0 } R B } T ^ { \frac { 3 } { 4 } } )$ Gasnikov et al. (2017). Therefore, our regret bound is tighter if the function variation satisfies $V _ { f } ^ { 2 } \le \mathcal { O } ( B ^ { \frac { 1 } { 2 } } L _ { 0 } ^ { \frac { 3 } { 2 } } )$ . Essentially, using the proposed residual feedback gradient estimator, the regret of $\mathrm { \Delta } \breve { Z } { \mathrm O }$ no longer depends on the uniform bound of the function value, which can be huge in practice. Instead, our regret only relies on how fast the function varies over time.
|
| 124 |
+
|
| 125 |
+
Remark 3.3. We note that the complexity bound in Theorem 3.2 generally depends on the values of the Lipschitz parameters $\cdot$ , $\cdot$ and the constant $V _ { f } ^ { 2 }$ . Specifically, choose $\eta = R ^ { \frac { 3 } { 2 } } ( 2 \sqrt { 2 } L _ { 0 } \sqrt { d } T ^ { \frac { 3 } { 4 } } ) ^ { - 1 }$ and $L _ { 0 } ^ { 2 q - 1 } V _ { f } ^ { 2 } ) \sqrt { d R } T ^ { \frac { 3 } { 4 } } )$ $\cdot$ ) when with $\cdot$ $q > 0$ as a tuning parameter, and we obtain that . If $L _ { 0 } ~ < ~ 1$ , we can choose $q = 1$ $R _ { T } = \mathcal { O } ( { ( L _ { 0 } + L _ { 0 } } ^ { 1 - q } +$ to achieve the bound $-$ . On the other hand, if $\cdot$ , we can choose $\cdot$ to achieve the bound $R _ { T } = { \mathcal O } ( ( L _ { 0 } + L _ { 0 } { } ^ { - 1 } V _ { f } ^ { 2 } ) \sqrt { d R } T ^ { \frac { 3 } { 4 } } )$ ). We note that the dependence of the bounds in Theorems 3.4, 4.2 and 4.3 on $L _ { 0 } , L _ { 1 }$ can also be optimized in a similar way by properly choosing $\delta$ .
|
| 126 |
+
|
| 127 |
+
Next, we present the regret of ZO with residual feedback for convex smooth objective functions.
|
| 128 |
+
|
| 129 |
+
Theorem 3.4 (Regret for Convex Smooth $f _ { t }$ ). Let Assumption 3.1 hold. Assume that $f _ { t } ( x ) \in$ $C ^ { 0 , 0 } \cap C ^ { 1 , 1 }$ is convex with Lipschitz constant $L _ { 0 }$ and smoothness constant $L _ { 1 }$ for all $t$ , and assume that $\| x _ { 0 } - x ^ { * } \| \leq R .$ Run $Z O$ with residual feedback for $T > R ^ { 2 }$ iterations with $\eta = R ^ { \frac { 4 } { 3 } } ( 2 \sqrt { 2 } L _ { 0 } d ^ { \frac { 2 } { 3 } } T ^ { \frac { 2 } { 3 } } ) ^ { - 1 }$ and $\delta = R ^ { \frac { 1 } { 3 } } d ^ { - { \frac { 1 } { 6 } } } T ^ { - { \frac { 1 } { 6 } } }$ . Then, we have that
|
| 130 |
+
|
| 131 |
+
$$
|
| 132 |
+
\begin{array} { c } { { R _ { T } \leq \sqrt { 2 } L _ { 0 } d ^ { \frac 2 3 } R ^ { \frac 2 3 } T ^ { \frac 2 3 } + \frac { \mathbb { E } \left[ \| \tilde { g } _ { 0 } ( x _ { 0 } ) \| ^ { 2 } \right] R ^ { \frac 4 3 } } { 2 \sqrt { 2 } L _ { 0 } d ^ { \frac 2 3 } T ^ { \frac 2 3 } } + 8 \sqrt { 2 } L _ { 0 } \frac { ( d + 4 ) ^ { 2 } } { d ^ { \frac 2 3 } } R ^ { \frac 4 3 } T ^ { \frac 1 3 } } } \\ { { + 2 L _ { 1 } d ^ { \frac 2 3 } R ^ { \frac 2 3 } T ^ { \frac 2 3 } + \sqrt { 2 } L _ { 0 } ^ { - 1 } d ^ { \frac 2 3 } R ^ { \frac 2 3 } V _ { f } ^ { 2 } T ^ { \frac 2 3 } . } } \end{array}
|
| 133 |
+
$$
|
| 134 |
+
|
| 135 |
+
Asymptotically, the above regret bound is in the order of $\mathcal { O } ( ( L _ { 0 } + L _ { 1 } + L _ { 0 } { } ^ { - 1 } V _ { f } ^ { 2 } ) ( d R T ) ^ { \frac { 2 } { 3 } } )$ .
|
| 136 |
+
|
| 137 |
+
To the best of our knowledge, the best known regret for ZO with the conventional one-point feedback in the convex smooth case is of the order $\mathcal { O } ( L _ { 1 } ^ { \frac { 1 } { 3 } } ( d R B T ) ^ { \frac { 2 } { 3 } } )$ Gasnikov et al. (2017). Therefore, our regret bound is tighter if the function variation satisfies $V _ { f } ^ { 2 } \leq \mathcal { O } ( B ^ { \frac { 2 } { 3 } } L _ { 1 } ^ { \frac { 1 } { 3 } } L _ { 0 } )$ . Our numerical experiments show that ZO with residual feedback always outperforms ZO with the conventional one-point feedback in practice.
|
| 138 |
+
|
| 139 |
+
# 4 ZO WITH RESIDUAL FEEDBACK FOR ONLINE NONCONVEX OPTIMIZATION
|
| 140 |
+
|
| 141 |
+
In this section, we analyze the regret of ZO with residual feedback in solving the unconstrained online bandit problem (P) with nonconvex functions. Throughout this section, we make the following assumption regarding the objective functions.
|
| 142 |
+
|
| 143 |
+
Assumption 4.1. There exist $\cdot$ such that the following conditions hold for all $t$ .
|
| 144 |
+
|
| 145 |
+
1. $\begin{array} { r } { \sum _ { t = 1 } ^ { T } \mathbb { E } [ f _ { \delta , t } ( x _ { t } ) - f _ { \delta , t - 1 } ( x _ { t } ) ] \leq W _ { T } } \end{array}$ , where the expectation is taken with respect to $\cdot$ and the random smoothed objective functions $\cdot$ , $f _ { \delta , t }$ . 2. $\begin{array} { r } { \sum _ { t = 1 } ^ { T } \mathbb { E } [ | f _ { t } ( x _ { t - 1 } + \delta u _ { t - 1 } ) - f _ { t - 1 } ( x _ { t - 1 } + \delta u _ { t - 1 } ) | ^ { 2 } ] \leq \tilde { W } _ { T } } \end{array}$ , where the expectation is taken with respect to $\cdot$ , the random vector $u _ { t - 1 }$ and the random objective functions $f _ { t - 1 }$ , $\cdot$ .
|
| 146 |
+
|
| 147 |
+
The above two conditions measure the accumulated first-order and second-order function variations, as also adopted by Roy et al. (2019).
|
| 148 |
+
|
| 149 |
+
Next, we consider the case where $\{ f _ { t } \} _ { t }$ are nonconvex and Lipschitz continuous functions. Since the objective function $f _ { t }$ is not necessarily differentiable, i.e., $\nabla f ( t )$ is not well defined, we define the regret as the accumulated gradient of the smoothed function, i.e., $\begin{array} { r } { R _ { g , \delta } ^ { T } : = \sum _ { t = 0 } ^ { T - 1 } \mathbb { E } [ \| \nabla f _ { \delta , t } ( x _ { t } ) \| ^ { 2 } ] } \end{array}$ . In addition, it is often required that the smoothed function $f _ { \delta , t }$ is close to the original function $f _ { t }$ such that $| f _ { \delta , t } ( x ) - f _ { t } ( x ) | \leq \epsilon _ { f }$ for all $t$ . To satisfy this condition, we need to choose $\delta \le ( \sqrt { d } L _ { 0 } ) ^ { - 1 } \epsilon _ { f }$ according to Lemma 2.2. We obtain the following regret bound for ZO with residual feedback.
|
| 150 |
+
|
| 151 |
+
Theorem 4.2 (Nonconvex Lipschitz $f _ { t }$ ). Let Assumptions 4.1 hold. Assume that $f _ { t } \in C ^ { 0 , 0 }$ with Lipschitz constant $L _ { 0 }$ and that $f _ { t }$ is bounded below by $f _ { t } ^ { * }$ for all $t$ . Run $Z O$ with residual feedback for $T > ( d \epsilon _ { f } ) ^ { - 1 }$ iterations with $\eta = \epsilon _ { f } ^ { \frac { 3 } { 2 } } ( 2 \sqrt { 2 } L _ { 0 } ^ { 2 } d ^ { \frac { 3 } { 2 } } T ^ { \frac { 1 } { 2 } } ) ^ { - 1 }$ and $\delta = \epsilon _ { f } ( d ^ { \frac { 1 } { 2 } } L _ { 0 } ) ^ { - 1 }$ . Then, we have that
|
| 152 |
+
|
| 153 |
+
$$
|
| 154 |
+
\begin{array} { r l } & { R _ { g , \delta } ^ { T } \leq 2 \sqrt { 2 } L _ { 0 } ^ { 2 } \big ( \mathbb { E } [ f _ { \delta , 0 } ( x _ { 0 } ) ] - f _ { \delta , T } ^ { * } + W _ { T } \big ) d ^ { \frac { 3 } { 2 } } \epsilon _ { f } ^ { - \frac { 3 } { 2 } } T ^ { \frac { 1 } { 2 } } + \frac { \epsilon _ { f } ^ { \frac { 1 } { 2 } } \mathbb { E } \big [ \| \tilde { g } _ { 0 } ( x _ { 0 } ) \| ^ { 2 } \big ] } { 2 \sqrt { 2 d T } } } \\ & { \quad \quad \quad \quad + 4 \sqrt { 2 } L _ { 0 } \epsilon _ { f } ^ { \frac { 1 } { 2 } } \frac { \big ( d + 4 \big ) ^ { 2 } } { d ^ { \frac { 1 } { 2 } } } T ^ { \frac { 1 } { 2 } } + \frac { L _ { 0 } ^ { 2 } } { \sqrt { 2 } } \frac { d ^ { \frac { 3 } { 2 } } \widetilde { W } _ { T } } { \epsilon _ { f } ^ { \frac { 3 } { 2 } } T ^ { \frac { 1 } { 2 } } } . } \end{array}
|
| 155 |
+
$$
|
| 156 |
+
|
| 157 |
+
Asymptotically, we have $R _ { g , \delta } ^ { T } = \mathcal { O } ( d ^ { \frac { 3 } { 2 } } L _ { 0 } ^ { 2 } \epsilon _ { f } ^ { - \frac { 3 } { 2 } } ( W _ { T } + \widetilde { W } _ { T } T ^ { - 1 } ) T ^ { \frac { 1 } { 2 } } + d ^ { \frac { 3 } { 2 } } L _ { 0 } \epsilon _ { f } ^ { \frac { 1 } { 2 } } T ^ { \frac { 1 } { 2 } } ) .$
|
| 158 |
+
|
| 159 |
+
Based on Theorem 4.2, we observe that the regret bound satisfies $R _ { g , \delta } ^ { T } / T 0$ whenever $W _ { T } =$ $o ( T ^ { \frac { 1 } { 2 } } \epsilon _ { f } ^ { \frac { 3 } { 2 } } )$ and $\widetilde { W } _ { T } = o ( T ^ { \frac { 3 } { 2 } } \epsilon _ { f } ^ { \frac { 3 } { 2 } } )$ . In particular, if the bounded variation Assumption 3.1 holds, then we have $\widetilde { W } _ { T } \leq \mathcal { O } ( T V _ { f } ^ { 2 } )$ , and it suffices to let $T ^ { - \frac { 1 } { 2 } } \epsilon _ { f } ^ { - \frac { 3 } { 2 } } = o ( 1 )$ .
|
| 160 |
+
|
| 161 |
+
Next, we consider the nonconvex and smooth problem and study the regret $R _ { g } ^ { T } : =$ $\begin{array} { r l } { { \sum _ { t = 0 } ^ { T - 1 } \mathbb { E } [ \| \nabla f _ { t } ( x _ { t } ) \| ^ { 2 } ] } \quad } & { { } } \end{array}$ . We obtain the following regret for ZO with residual-feedback.
|
| 162 |
+
|
| 163 |
+
Theorem 4.3 (Nonconvex smooth $f _ { t }$ ). Let Assumptions 4.1 hold. Assume that $f _ { t } \in C ^ { 0 , 0 } \cap C ^ { 1 , 1 }$ with Lipschitz constant $L _ { 0 }$ and smoothness constant $L _ { 1 }$ and that $f _ { t }$ is bounded below by $f _ { t } ^ { * }$ for all $t$ . Run $Z O$ with residual feedback for $T$ iterations with $\eta = ( 2 \sqrt { 2 } L _ { 0 } d ^ { \frac { 4 } { 3 } } T ^ { \frac { 1 } { 2 } } ) ^ { - 1 }$ and $\delta = ( d ^ { \frac { 5 } { 6 } } T ^ { \frac { 1 } { 4 } } ) ^ { - 1 }$ . Then,
|
| 164 |
+
|
| 165 |
+
$$
|
| 166 |
+
\begin{array} { r } { R _ { g } ^ { T } \leq 4 \sqrt { 2 } L _ { 0 } \big ( \mathbb { E } [ f _ { \delta , 0 } ( x _ { 0 } ) ] - f _ { \delta , T } ^ { * } + W _ { T } \big ) d ^ { \frac { 4 } { 3 } } T ^ { \frac { 1 } { 2 } } + \frac { L _ { 1 } \mathbb { E } \big [ \| \tilde { g } _ { 0 } ( x _ { 0 } ) \| ^ { 2 } \big ] } { \sqrt { 2 } L _ { 0 } d ^ { \frac { 4 } { 3 } } T ^ { \frac { 1 } { 2 } } } } \\ { + 8 \sqrt { 2 } L _ { 1 } L _ { 0 } \frac { ( d + 4 ) ^ { 2 } } { d ^ { \frac { 4 } { 3 } } } T ^ { \frac { 1 } { 2 } } + \frac { \sqrt { 2 } L _ { 1 } } { L _ { 0 } } d ^ { \frac { 4 } { 3 } } \widetilde { W } _ { T } + 2 L _ { 1 } ^ { 2 } \frac { ( d + 3 ) ^ { 3 } } { d ^ { \frac { 5 } { 3 } } } T ^ { \frac { 1 } { 2 } } . } \end{array}
|
| 167 |
+
$$
|
| 168 |
+
|
| 169 |
+
Asymptotically, the above regret bound is in the order of $\mathcal { O } ( d ^ { \frac { 4 } { 3 } } L _ { 0 } W _ { T } T ^ { \frac { 1 } { 2 } } + d ^ { \frac { 4 } { 3 } } L _ { 1 } { L _ { 0 } } ^ { - 1 } \widetilde { W } _ { T } )$
|
| 170 |
+
|
| 171 |
+
Based on Theorem 4.3, we observe that the regret bound satisfies $R _ { g } ^ { T } / T \to 0$ whenever $W _ { T } = o ( T ^ { \frac { 1 } { 2 } } )$ and $\widetilde { W } _ { T } = o ( T )$ . We note that these requirements of $W _ { T } , \widetilde { W } _ { T }$ are more relaxed than those in the nonsmooth case, as they do not rely on the small parameter $\epsilon _ { f }$ .
|
| 172 |
+
|
| 173 |
+
# 5 ZO WITH RESIDUAL FEEDBACK FOR STOCHASTIC ONLINE OPTIMIZATION
|
| 174 |
+
|
| 175 |
+
In this section, we generalize the residual feedback to solve stochastic online bandit problems. Since its regret analysis follows the same proof logic as that of ZO with residual feedback, we only introduce the key technical lemmas and comment on the proof difference. The stochastic online bandit problems are formulated as follows.
|
| 176 |
+
|
| 177 |
+
$$
|
| 178 |
+
\operatorname* { m i n } _ { x \in \mathcal { X } } \sum _ { t = 0 } ^ { T - 1 } \mathbb { E } [ F _ { t } ( x ; \xi _ { t } ) ] , \quad \mathrm { w h e r e } \ \mathbb { E } [ F _ { t } ( x ; \xi _ { t } ) ] = f _ { t } ( x ) , \forall t ,
|
| 179 |
+
$$
|
| 180 |
+
|
| 181 |
+
where $\xi _ { t }$ denotes a certain noise that is independent of $\cdot$ . Different from the previous deterministic online setting, the agent in the stochastic setting can only query noisy evaluations of the function.
|
| 182 |
+
|
| 183 |
+
This covers the scenarios where the agent does not have access to the underlying data distribution. To solve the above stochastic online problem, we propose the following stochastic residual feedback
|
| 184 |
+
|
| 185 |
+
$$
|
| 186 |
+
\widetilde { g } _ { t } ( x _ { t } ) : = \frac { u _ { t } } { \delta } \big ( F _ { t } ( x _ { t } + \delta u _ { t } ; \xi _ { t } ) - F _ { t - 1 } ( x _ { t - 1 } + \delta u _ { t - 1 } ; \xi _ { t - 1 } ) \big ) ,
|
| 187 |
+
$$
|
| 188 |
+
|
| 189 |
+
where $\xi _ { t - 1 }$ and $\xi _ { t }$ are independent random samples that are sampled in the iterations $t - 1$ and $t$ , respectively. Since the noisy function value $F ( x ; \xi _ { t } )$ is an unbiased estimate of the objective function $f _ { t } ( x )$ , it is straightforward to show that (13) is an unbiased gradient estimate of the function $f _ { \delta , t } ( \boldsymbol { x } )$ .
|
| 190 |
+
|
| 191 |
+
To analyze the regret of ZO with stochastic residual feedback, we first consider the convex setting and make the following assumption that bounds the variation of the stochastic functions.
|
| 192 |
+
|
| 193 |
+
Assumption 5.1. (Bounded stochastic variation) There exists $V _ { f , \xi } > 0$ such that for all $\cdot$ ,
|
| 194 |
+
|
| 195 |
+
$$
|
| 196 |
+
-
|
| 197 |
+
$$
|
| 198 |
+
|
| 199 |
+
where the expectation is taken with respect to $x _ { t - 1 }$ , the random vector $\cdot$ and the random objective functions $\cdot$ , $\cdot$ .
|
| 200 |
+
|
| 201 |
+
The above assumption generalizes Assumption 3.1 to the stochastic setting. The bound $V _ { f , \xi } ^ { 2 }$ controls
|
| 202 |
+
|
| 203 |
+
The following lemma characterizes the second moment of the stochastic residual feedback.
|
| 204 |
+
|
| 205 |
+
Lemma 5.2. Assume $F ( x , \xi ) \in C ^ { 0 , 0 }$ with Lipschitz constant $L _ { 0 }$ for all $\xi$ . Then, under the ZO update rule, we have that
|
| 206 |
+
|
| 207 |
+
$$
|
| 208 |
+
\begin{array} { r l r } { { \operatorname { \mathbb { E } } [ \| \widetilde { g } _ { t } ( x _ { t } ) \| ^ { 2 } ] \le \frac { 4 d L _ { 0 } ^ { 2 } \eta ^ { 2 } } { \delta ^ { 2 } } \mathbb { E } [ \| \widetilde { g } _ { t } ( x _ { t - 1 } ) \| ^ { 2 } ] + D _ { t , \xi } , } } \\ & { } & \\ & { } & { \ \cdot D _ { t , \xi } : = 1 6 L _ { 0 } ^ { 2 } ( d + 4 ) ^ { 2 } + \frac { 2 d } { \delta ^ { 2 } } \mathbb { E } [ \big ( F _ { t } ( x _ { t - 1 } + \delta u _ { t - 1 } , \xi _ { t } ) - F _ { t - 1 } ( x _ { t - 1 } + \delta u _ { t - 1 } , \xi _ { t - 1 } ) \big ) ^ { 2 } ] . } \end{array}
|
| 209 |
+
$$
|
| 210 |
+
|
| 211 |
+
Observe that the above second moment bound is very similar to that in Lemma 2.5, and the only difference is the perturbation term. In particular, the perturbation term $D _ { t , \xi }$ can be further bounded by leveraging Assumption 5.1, and the resulting second moment bound is almost the same as that in eq. (8) for the deterministic case (simply replace $V _ { f }$ in eq. (8) by $V _ { f , \xi }$ ). Therefore, the regret analysis of ZO with stochastic residual feedback is the same as that of ZO with residual feedback in the deterministic online setting. Consequently, ZO with stochastic residual feedback achieves almost the same regret bounds as those in Theorems 3.2 and 3.4, and one simply needs to replace $V _ { f }$ by $V _ { f , \xi }$ .
|
| 212 |
+
|
| 213 |
+
For the nonconvex setting, we adopt the following assumption that generalizes Assumption 4.1.
|
| 214 |
+
|
| 215 |
+
Assumption 5.3. There exists $W _ { T } , \tilde { W } _ { T , \xi } > 0$ such that the following two conditions hold for all $\cdot$ $\begin{array} { r } { \sum _ { t = 1 } ^ { T } \mathbb { E } [ f _ { \delta , t } ( x _ { t } ) - f _ { \delta , t - 1 } ( x _ { t } ) ] \leq W _ { T } } \end{array}$ , where the expectation is taken with respect to $\cdot$ and the random smoothed objective functions $\cdot$ , $f _ { \delta , t }$ .
|
| 216 |
+
|
| 217 |
+
2. $\begin{array} { r } { \sum _ { t = 1 } ^ { T } \mathbb { E } [ | F _ { t } ( x _ { t - 1 } + \delta u _ { t - 1 } ; \xi _ { t } ) - F _ { t - 1 } ( x _ { t - 1 } + \delta u _ { t - 1 } ; \xi _ { t - 1 } ) | ^ { 2 } ] \leq \tilde { W } _ { T , \xi } } \end{array}$ , where the expectation is taken with respect to $x _ { t - 1 }$ , the random vector $\cdot$ and the random objective functions $F _ { t - 1 } ( \cdot , \xi _ { t - 1 } )$ , $F _ { t } ( \cdot , \xi _ { t } )$ .
|
| 218 |
+
|
| 219 |
+
Then, following the same proof logic as that of Theorems 4.2 and 4.3, on can obtain similar regret bounds for ZO with stochastic residual feedback (simply replace $W _ { T } , \widetilde { W } _ { T }$ in Theorems 4.2 and 4.3 by $W _ { T , \xi } , \widetilde { W } _ { T , \xi }$ , respectively).
|
| 220 |
+
|
| 221 |
+
# 6 NUMERICAL EXPERIMENTS
|
| 222 |
+
|
| 223 |
+
In this section, we compare the performance of ZO with one-point, two-point and residual feedback in solving two non-stationary reinforcement learning problems, i.e., LQR control and resource allocation, in which either the reward or transition functions are varying over episodes.
|
| 224 |
+
|
| 225 |
+
# 6.1 NONSTATINOARY LQR CONTROL
|
| 226 |
+
|
| 227 |
+
We consider an LQR problem with noisy system dynamics. The static version of this problem is considered in Fazel et al. (2018); Malik et al. (2018). Specifically, consider a system whose state
|
| 228 |
+
|
| 229 |
+

|
| 230 |
+
Figure 1: The regrets of applying the proposed residual one-point feedback (3) (blue), the two-point oracle in Bach & Perchet (2016) (orange) and the conventional one-point oracle in Gasnikov et al. (2017) (green) to online policy optimization for the nonstationary LQR problem. In (a), the regrets $\textstyle \sum _ { t = 0 } ^ { T } | V ( K _ { t } ) - V ( K ^ { * } ) |$ of three methods are presented. In (b), the variance of the gradient estimates given by three methods are presented. The two point method (orange) is infeasible to use in practice and is presented here to serve as the simulating benchmark.
|
| 231 |
+
|
| 232 |
+
$x _ { k } \in \mathbb { R } ^ { n _ { x } }$ at step $k$ is subject to a transition function $x _ { k + 1 } = A _ { t } x _ { k } + B _ { t } u _ { k } + w _ { k }$ , where $u _ { k } \in \mathbb { R } ^ { n _ { u } }$ is the action at step $k$ , and $A _ { t } \in \mathbb R ^ { n _ { x } \times n _ { x } }$ and $B _ { t } \in \mathbb { R } ^ { n _ { x } \times n _ { u } }$ are dynamical matrices in episode $t$ These matrices are unknown and changing over episodes. The vector $w _ { k }$ is the noise on the state transition. Specifically, the entries of the dynamical matrices $\cdot$ and $\cdot$ at episode 0 are randomly generated from a Gaussian distribution $\mathcal { N } ( 0 , 0 . 1 ^ { 2 } )$ . Then, we generate the time-varying dynamical matrices as $A _ { t + 1 } = A _ { t } + 0 . 0 1 M _ { t }$ and $-$ , where $M _ { t }$ and $N _ { t }$ are random matrices whose entries are uniformly sampled from [0,1]. Moreover, consider a state feedback policy $u _ { k } = K _ { t } x _ { k }$ , where $K _ { t } \in \mathbb { R } ^ { n _ { u } \times n _ { x } }$ is the policy parameter that is fixed within episode $t$ . Within $K _ { t } ^ { * }$ so thatepisode the discounted accuis minimized, where d cost fuis the d ionunt $\begin{array} { r } { V _ { t } ( K ) : = \mathbb { E } \big [ \sum _ { k = 0 } ^ { H - 1 } \gamma ^ { k } ( x _ { k } ^ { T } Q x _ { k } + u _ { k } ^ { T } R u _ { k } ) \big ] } \end{array}$ $t$ $\gamma \leq 1$
|
| 233 |
+
$H$ $K _ { t } ^ { * }$ that $V _ { t } ( K _ { t } ) - V _ { t } ( K _ { t } ^ { * } )$ is small in every episode.
|
| 234 |
+
|
| 235 |
+
We apply the conventional one-point method in Gasnikov et al. (2017) and the proposed residualfeedback method (13) to solve the above non-stationary LQR problem. The performance of the twopoint method in Bach & Perchet (2016) is also presented as a benchmark, although it is impractical in non-stationary scenarios. This is because the two-point method in Bach & Perchet (2016) requires to evaluate value function $V _ { t }$ for two different policy functions at two consecutive episodes. However, evaluating the value function $V _ { t }$ for a given policy during episode $t$ requires to collect samples by executing this policy. Then, during the subsequent episode $t + 1$ , since the problem is non-stationary, the dynamic matrices change to $A _ { t + 1 } , B _ { t + 1 }$ and so does the value function $\cdot$ . Therefore, it is not possible to evaluate the same value function $\cdot$ at two different episodes and, as a result, the two-point method in Bach & Perchet (2016) is not applicable here. Each algorithm is run for 10 trials, and the stepsizes are optimized respectively. The accumulated regrets $\begin{array} { r } { \sum _ { t = 0 } ^ { T - 1 } | V ( K _ { t } ) - V ( K ^ { * } ) | } \end{array}$ of these algorithms are presented in Figure 1(a). We observe that the residual feedback method achieves a much lower regret than the conventional one-point method and has a comparable performance to that of the impractical two-point method. Moreover, we present in Figure 1(b) the estimated variance of the gradient estimates of these three methods at the policy iterates over episodes. It can be seen that the variance of our proposed residual-feedback is close to the impractical two-point feedback and is much smaller than that of the conventional one-point feedback. This observation justifies our theoretical characterization of the second moment of the residual feedback.
|
| 236 |
+
|
| 237 |
+
# 6.2 NONSTATIONARY RESOURCE ALLOCATION
|
| 238 |
+
|
| 239 |
+
We consider a multi-stage resource allocation problem with time-varying sensitivity to the lack of resource supply. Specifically, 16 agents are located on a $4 \times 4$ grid. During episode $t$ , at step $k$ , agent $i$ stores $m _ { i } ( k )$ amount of resources and has a demand for resources in the amount of $d _ { i } ( k )$ . Also, agent $i$ decides to send a fraction of resources $a _ { i j } ( k ) \in [ 0 , 1 ]$ to its neighbors
|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
Figure 2: The costs during each episode by applying the proposed residual one-point feedback (3) (blue), the two-point oracle in Bach & Perchet (2016) (orange) and the conventional one-point oracle in Gasnikov et al. (2017) (green) to solve the non-stationary resource allocation problem are presented. In (a), the varying cost $J _ { t } ( \theta _ { t } )$ of three methods are presented. In (b), the variance of the gradient estimates at agent 1 given by three methods are presented. The two point method (orange) is infeasible to use in practice and is presented here to serve as the simulating benchmark.
|
| 243 |
+
|
| 244 |
+
$j \in \mathcal N _ { i }$ on the grid. The local amount of resources and demands of agent $i$ evolve as $m _ { i } ( k + 1 ) =$ $\begin{array} { r } { m _ { i } ( k ) - \sum _ { j \in \mathcal { N } _ { i } } a _ { i j } ( k ) m _ { i } ( k ) + \sum _ { j \in \mathcal { N } _ { i } } a _ { j i } ( k ) m _ { j } ( k ) - d _ { i } ( k ) } \end{array}$ and $d _ { i } ( \bar { k } ) = \psi _ { i } \sin ( \omega _ { i } k + \dot { \phi } _ { i } ) + \dot { w } _ { i , k }$ , where $w _ { i , k }$ is the noise in the demand. At each step $k$ , agent $i$ receives a local cost $r _ { i , t } ( k )$ , such that $r _ { i , t } ( k ) = 0$ when $m _ { i } ( k ) \geq 0$ and $r _ { i , t } ( k ) = \zeta _ { t } m _ { i } ( k ) ^ { 2 }$ when $m _ { i } ( k ) < 0$ , where $\zeta _ { t }$ represents the varying sensitivity of the agents to the lack of supply during episode $t$ . Let agent $i$ makes its decisions according to a parameterized policy function $\pi _ { i , t } \big ( o _ { i } ; \theta _ { i , t } \big ) : \mathcal { O } _ { i } \to [ 0 , 1 ] ^ { | \mathcal { N } _ { i } | }$ , where $\theta _ { i , t }$ is the parameter of the policy function $\pi _ { i , t }$ at episode $t$ , $o _ { i } \in { \mathcal { O } } _ { i }$ denotes agent $i$ ’s local observation. Specifically, we let so that the accumul $o _ { i } ( k ) = [ m _ { i } ( k ) , d _ { i } ( k ) ] ^ { T }$ arying optimal policyduring each episode is $\begin{array} { r } { \left. J _ { t } ( \theta _ { t } ) \right. = \sum _ { i = 1 } ^ { 1 6 } \sum _ { k = 0 } ^ { H } \gamma ^ { k } r _ { i , t } ( k ) } \end{array}$
|
| 245 |
+
$\theta _ { t } = [ \dots , \theta _ { i , t } , \dots ]$ $H$
|
| 246 |
+
at each episode, and $\gamma$ is the discount factor.
|
| 247 |
+
|
| 248 |
+
In Figure 2(a), we present the costs achieved during each episode $J _ { t } ( \theta _ { t } )$ with 10 trials using ZO with the residual-feedback, one-point and the impractical two-point feedback. It can be seen that our proposed residual-feedback achieves a cost $J _ { t } ( \theta _ { t } )$ that is as low as the cost achieved by the impractical two-point feedback in such a non-stationary environment. In particular, both residual and two-point feedback perform much better than the conventional one-point feedback. Moreover, Figure 2(b) compares the estimated variances of these feedback schemes, and one can observe that the variance of the residual feedback is comparable to that of the two-point feedback and is much smaller than that of the conventional one-point feedback.
|
| 249 |
+
|
| 250 |
+
# 7 CONCLUSION
|
| 251 |
+
|
| 252 |
+
In this paper, we proposed a residual one-point feedback oracle for zeroth-order online learning problems, which estimates the gradient of the time-varying objective function using a single query of the function value at each time instant. We showed that the regret bound of the proposed residual feedback estimator can be much lower than that of the conventional one-point method in online convex optimization setting. In addition, we studied the gradient size regret bound of the residualfeedback estimator when it is applied to the online non-convex optimization problems. Numerical experiments on two non-stationary reinforcement learning problems were conducted and the proposed residual-feedback estimator was shown to significantly outperform the conventional one-point method in non-stationary online learning problems.
|
| 253 |
+
|
| 254 |
+
# REFERENCES
|
| 255 |
+
|
| 256 |
+
Alekh Agarwal, Ofer Dekel, and Lin Xiao. Optimal algorithms for online convex optimization with multi-point bandit feedback. In COLT, pp. 28–40. Citeseer, 2010.
|
| 257 |
+
|
| 258 |
+
Alekh Agarwal, Dean P Foster, Daniel J Hsu, Sham M Kakade, and Alexander Rakhlin. Stochastic convex optimization with bandit feedback. In Advances in Neural Information Processing Systems, pp. 1035–1043, 2011.
|
| 259 |
+
|
| 260 |
+
Francis Bach and Vianney Perchet. Highly-smooth zero-th order online optimization. In Conference on Learning Theory, pp. 257–283, 2016.
|
| 261 |
+
|
| 262 |
+
Krishnakumar Balasubramanian and Saeed Ghadimi. Zeroth-order (non)-convex stochastic optimization via conditional gradient and gradient updates. In Advances in Neural Information Processing Systems, pp. 3455–3464, 2018.
|
| 263 |
+
|
| 264 |
+
Olivier Bilenne, Panayotis Mertikopoulos, and Elena-Veronica Belmega. Fast optimization with zeroth-order feedback in distributed, multi-user mimo systems. IEEE Transactions on Signal Processing, 2020.
|
| 265 |
+
|
| 266 |
+
Sébastien Bubeck, Nicolo Cesa-Bianchi, et al. Regret analysis of stochastic and nonstochastic multi-armed bandit problems. Foundations and Trends $\textsuperscript { \textregistered }$ in Machine Learning, 5(1):1–122, 2012.
|
| 267 |
+
|
| 268 |
+
Sébastien Bubeck, Yin Tat Lee, and Ronen Eldan. Kernel-based methods for bandit convex optimization. In Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, pp. 72–85, 2017.
|
| 269 |
+
|
| 270 |
+
Pin-Yu Chen, Huan Zhang, Yash Sharma, Jinfeng Yi, and Cho-Jui Hsieh. Zoo: Zeroth order optimization based black-box attacks to deep neural networks without training substitute models. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pp. 15–26, 2017.
|
| 271 |
+
|
| 272 |
+
Ofer Dekel, Ronen Eldan, and Tomer Koren. Bandit smooth convex optimization: Improving the bias-variance tradeoff. In Advances in Neural Information Processing Systems, pp. 2926–2934, 2015.
|
| 273 |
+
|
| 274 |
+
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.
|
| 275 |
+
|
| 276 |
+
Maryam Fazel, Rong Ge, Sham Kakade, and Mehran Mesbahi. Global convergence of policy gradient methods for the linear quadratic regulator. In Proceedings of the 35th International Conference on Machine Learning, volume 80, 2018.
|
| 277 |
+
|
| 278 |
+
Abraham D Flaxman, Adam Tauman Kalai, and H Brendan McMahan. Online convex optimization in the bandit setting: gradient descent without a gradient. In Proceedings of the sixteenth annual ACM-SIAM symposium on Discrete algorithms, pp. 385–394. Society for Industrial and Applied Mathematics, 2005.
|
| 279 |
+
|
| 280 |
+
Xiand Gao, Xiaobo Li, and Shuzhong Zhang. Online learning with non-convex losses and nonstationary regret. In International Conference on Artificial Intelligence and Statistics, pp. 235–243, 2018.
|
| 281 |
+
|
| 282 |
+
Alexander V Gasnikov, Ekaterina A Krymova, Anastasia A Lagunovskaya, Ilnura N Usmanova, and Fedor A Fedorenko. Stochastic online optimization. single-point and multi-point non-linear multi-armed bandits. convex and strongly-convex case. Automation and remote control, 78(2): 224–234, 2017.
|
| 283 |
+
|
| 284 |
+
Saeed Ghadimi and Guanghui Lan. Stochastic first-and zeroth-order methods for nonconvex stochastic programming. SIAM Journal on Optimization, 23(4):2341–2368, 2013.
|
| 285 |
+
|
| 286 |
+
Saeed Ghadimi, Guanghui Lan, and Hongchao Zhang. Mini-batch stochastic approximation methods for nonconvex stochastic composite optimization. Mathematical Programming, 155(1-2):267–305, 2016.
|
| 287 |
+
|
| 288 |
+
Eduard Gorbunov, Pavel Dvurechensky, and Alexander Gasnikov. An accelerated method for derivative-free smooth stochastic convex optimization. arXiv preprint arXiv:1802.09022, 2018.
|
| 289 |
+
|
| 290 |
+
Davood Hajinezhad and Michael M Zavlanos. Gradient-free multi-agent nonconvex nonsmooth optimization. In 2018 IEEE Conference on Decision and Control (CDC), pp. 4939–4944. IEEE, 2018.
|
| 291 |
+
|
| 292 |
+
Elad Hazan and Kfir Levy. Bandit convex optimization: Towards tight bounds. In Advances in Neural Information Processing Systems, pp. 784–792, 2014.
|
| 293 |
+
|
| 294 |
+
Elad Hazan and Yuanzhi Li. An optimal algorithm for bandit convex optimization. arXiv preprint arXiv:1603.04350, 2016.
|
| 295 |
+
|
| 296 |
+
Elad Hazan, Kfir Yehuda Levy, and Shai Shalev-Shwartz. On graduated optimization for stochastic non-convex problems. In International conference on machine learning, pp. 1833–1841, 2016.
|
| 297 |
+
|
| 298 |
+
Kaiyi Ji, Zhe Wang, Yi Zhou, and Yingbin Liang. Improved zeroth-order variance reduced algorithms and analysis for nonconvex optimization. arXiv preprint arXiv:1910.12166, 2019.
|
| 299 |
+
|
| 300 |
+
Dhruv Malik, Ashwin Pananjady, Kush Bhatia, Koulik Khamaru, Peter L Bartlett, and Martin J Wainwright. Derivative-free methods for policy optimization: Guarantees for linear quadratic systems. arXiv preprint arXiv:1812.08305, 2018.
|
| 301 |
+
|
| 302 |
+
Yurii Nesterov. Introductory lectures on convex optimization: A basic course, volume 87. Springer Science & Business Media, 2013.
|
| 303 |
+
|
| 304 |
+
Yurii Nesterov and Vladimir Spokoiny. Random gradient-free minimization of convex functions. Foundations of Computational Mathematics, 17(2):527–566, 2017.
|
| 305 |
+
|
| 306 |
+
Abhishek Roy, Krishnakumar Balasubramanian, Saeed Ghadimi, and Prasant Mohapatra. Multipoint bandit algorithms for nonstationary online nonconvex optimization. arXiv preprint arXiv:1907.13616, 2019.
|
| 307 |
+
|
| 308 |
+
Ankan Saha and Ambuj Tewari. Improved regret guarantees for online smooth convex optimization with bandit feedback. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, pp. 636–642, 2011.
|
| 309 |
+
|
| 310 |
+
Yujie Tang and Na Li. Distributed zero-order algorithms for nonconvex multi-agent optimization. In 2019 57th Annual Allerton Conference on Communication, Control, and Computing (Allerton), pp. 781–786. IEEE, 2019.
|
| 311 |
+
|
| 312 |
+
Yining Wang, Simon Du, Sivaraman Balakrishnan, and Aarti Singh. Stochastic zeroth-order optimization in high dimensions. In International Conference on Artificial Intelligence and Statistics, pp. 1356–1365, 2018.
|
| 313 |
+
|
| 314 |
+
Lijun Zhang, Tianbao Yang, Rong Jin, and Zhi-Hua Zhou. Online bandit learning for a special class of non-convex losses. In AAAI, pp. 3158–3164, 2015.
|
parse/train/T3kmOP_cMFB/T3kmOP_cMFB_content_list.json
ADDED
|
@@ -0,0 +1,1587 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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| 3 |
+
"type": "text",
|
| 4 |
+
"text": "BOOSTING ONE-POINT DERIVATIVE-FREE ONLINE OPTIMIZATION VIA RESIDUAL FEEDBACK ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
128,
|
| 9 |
+
823,
|
| 10 |
+
178
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
202,
|
| 20 |
+
398,
|
| 21 |
+
228
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
265,
|
| 32 |
+
544,
|
| 33 |
+
281
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Zeroth-order optimization (ZO) typically relies on two-point feedback to estimate the unknown gradient of the objective function, which queries the objective function value twice at each time instant. However, if the objective function is time-varying, as in online optimization, two-point feedback can not be used. In this case, the gradient can be estimated using one-point feedback that queries a single function value at each time instant, although at the expense of producing gradient estimates with large variance. In this work, we propose a new one-point feedback method for online optimization that estimates the objective function gradient using the residual between two feedback points at consecutive time instants. We study the regret bound of ZO with residual feedback for both convex and nonconvex online optimization problems. Specifically, for both Lipschitz and smooth functions, we show that using residual feedback produces gradient estimates with much smaller variance compared to conventional one-point feedback methods, which improves the learning rate. Our regret bound for ZO with residual feedback is tighter than the existing regret bound for ZO with conventional one-point feedback and relies on weaker assumptions, which suggests that ZO with our proposed residual feedback can better track the optimizer of online optimization problems. We provide numerical experiments that demonstrate that ZO with residual feedback significantly outperforms existing one-point feedback methods in practice. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
232,
|
| 42 |
+
295,
|
| 43 |
+
766,
|
| 44 |
+
559
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
584,
|
| 55 |
+
336,
|
| 56 |
+
601
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Zeroth-order optimization (ZO) algorithms have been widely used to solve online optimization problems where first or second order information (i.e., gradient or Hessian information) is unavailable at each time instant. Such problems arise, e.g., in online learning and involve adversarial training Chen et al. (2017) and reinforcement learning Fazel et al. (2018); Malik et al. (2018) among others. The goal in online optimization is to minimize a sequence of time-varying objective functions $\\{ f _ { t } ( \\bar { x } ) \\} _ { t = 1 : T }$ , where the value $f _ { t } ( x _ { t } )$ is revealed to the agent after an action $x _ { t }$ is selected and is used to adapt the agent’s future strategy. Since the future objective functions are not known a priori, the performance of the online decision process can be measured using notions of regret, generally defined as the difference between the total cost incurred by the decision selected by the agent online and the cost of the fixed or varying optimal decision that a clairvoyant agent could select. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
616,
|
| 66 |
+
825,
|
| 67 |
+
756
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Perhaps the most popular zeroth-order gradient estimator is the two-point estimator that has been extensively studied in Agarwal et al. (2010); Ghadimi & Lan (2013); Duchi et al. (2015); Ghadimi et al. (2016); Bach & Perchet (2016); Nesterov & Spokoiny (2017); Gao et al. (2018); Roy et al. (2019). Specifically, the two-point estimator queries the function value $f _ { t } ( x )$ for twice, for two different realizations of the decision variables, and uses the difference in these function values to estimate the desired gradient, as illustrated by the equation ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
762,
|
| 77 |
+
825,
|
| 78 |
+
845
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "equation",
|
| 84 |
+
"img_path": "images/201a46f6e7c2b03ceccbe6535373106f0ec62ffefbca4c22e796ae517f16bd83.jpg",
|
| 85 |
+
"text": "$$\n\\widetilde { g } _ { t } ^ { ( 2 ) } ( x ) = \\frac { u } { \\delta } \\Big ( f _ { t } ( x + \\delta u ) - f _ { t } ( x ) \\Big ) ,\n$$",
|
| 86 |
+
"text_format": "latex",
|
| 87 |
+
"bbox": [
|
| 88 |
+
455,
|
| 89 |
+
849,
|
| 90 |
+
694,
|
| 91 |
+
877
|
| 92 |
+
],
|
| 93 |
+
"page_idx": 0
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"type": "text",
|
| 97 |
+
"text": "where $\\delta > 0$ is a parameter and $u \\sim \\mathcal { N } ( 0 , I )$ . However, the two-point gradient estimator can not be used for the solution of non-stationary online optimization problems that arise frequently, e.g., in online learning. The reason is that in these non-stationary online optimization problems, the objective ",
|
| 98 |
+
"bbox": [
|
| 99 |
+
176,
|
| 100 |
+
881,
|
| 101 |
+
825,
|
| 102 |
+
924
|
| 103 |
+
],
|
| 104 |
+
"page_idx": 0
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"type": "text",
|
| 108 |
+
"text": "function being queried is time-varying, and hence only a single function value can be sampled at a given time instant. In this case, the following one-point feedback can be used ",
|
| 109 |
+
"bbox": [
|
| 110 |
+
174,
|
| 111 |
+
103,
|
| 112 |
+
823,
|
| 113 |
+
132
|
| 114 |
+
],
|
| 115 |
+
"page_idx": 1
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"type": "equation",
|
| 119 |
+
"img_path": "images/c05c861967df2b230b15a5a23bb5e0bda4cf3cd1e146b208df385f4602ae0670.jpg",
|
| 120 |
+
"text": "$$\n( \\mathrm { O n e - p o i n t ~ f e e d b a c k } ) \\colon \\widetilde { g } _ { t } ^ { ( 1 ) } ( x ) = \\frac { u } { \\delta } f _ { t } ( x + \\delta u ) ,\n$$",
|
| 121 |
+
"text_format": "latex",
|
| 122 |
+
"bbox": [
|
| 123 |
+
341,
|
| 124 |
+
135,
|
| 125 |
+
656,
|
| 126 |
+
161
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "which queries the objective function $f _ { t } ( x )$ only once at each time instant. One-point feedback was first proposed and analyzed in Flaxman et al. (2005) for the solution of online convex optimization problems. Saha & Tewari (2011); Hazan & Levy (2014); Dekel et al. (2015) showed that the regret of convex online optimization methods using one-point gradient estimation can be improved assuming smoothness or strong convexity of the objective functions and using self-concordant regularization. More recently, Gasnikov et al. (2017) developed such regret bounds for stochastic convex problems. On the other hand, Hazan et al. (2016) characterized the convergence of one-point zeroth-order methods for static stochastic non-convex optimization problems. However, as shown in these studies, a limitation of one-point feedback is that the resulting gradient estimator has large variance and, therefore, induces large regret. In addition, the regret analysis for ZO with one-point feedback usually requires the strong assumption that the function value is uniformly upper bounded over time, so this method can not be used for practical non-stationary optimization problems. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
165,
|
| 136 |
+
825,
|
| 137 |
+
332
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "Contributions: In this paper, we propose a novel one-point gradient estimator for zeroth-order online optimization and develop new regret bounds to study its performance. Specifically, our contributions are as follows. We propose a new one-point feedback scheme which requires a single function evaluation at each time instant. This feedback scheme estimates the gradient using the residual between two consecutive feedback points and we refer to it as residual feedback. We show that our residual feedback induces a smaller gradient estimation variance than the conventional one-point feedback scheme in Flaxman et al. (2005); Gasnikov et al. (2017). Furthermore, we provide regret bounds for online convex optimization with our proposed residual feedback estimator. Our analysis relies on a weaker assumption than the one needed in the case of the conventional one-point estimator, and our proposed regret bounds are tighter especially when the value of the objective function is large. In addition, we provide regret bounds for online non-convex optimization with residual feedback. Finally, we present numerical experiments that demonstrate that the proposed residual-feedback estimator significantly outperforms the conventional one-point method in its ability to track the time-varying optimizers of online learning problems. To the best of our knowledge, this is the first time a one-point zeroth-order method is theoretically studied for online non-convex optimization problems. It is also the first time that a one-point gradient estimator demonstrates comparable empirical performance to that of the two-point method. We note that two-point estimators can only be used to solve online non-stationary learning problems in simulations, where the system can be hard coded to be fixed during two queries of the objective function values at two different decision variables. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
173,
|
| 146 |
+
338,
|
| 147 |
+
826,
|
| 148 |
+
616
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "Related work: Zeroth-order methods have been used to solve many different types of optimization problems. For example, Balasubramanian & Ghadimi (2018) apply ZO to solve a set-constrained optimization problem where the projection onto the constraint set is non-trivial. Gorbunov et al. (2018); Ji et al. (2019) apply a variance-reduced technique and acceleration schemes to achieve better convergence speed in ZO. Wang et al. (2018) improve the dependence of the iteration complexity on the dimension of the problem under an additional sparsity assumption on the gradient of the objective function. And Hajinezhad & Zavlanos (2018); Tang & Li (2019) apply zeroth-order oracles to distributed optimization problems when only bandit feedbacks are available at each local agents. Our proposed residual feedback oracle can be used to solve such online optimization problems as well. Also related is work by Zhang et al. (2015) that considers non-convex online bandit optimization problems with a single query at each time step. However, this method employs the exploration and exploitation bandit learning framework and the proposed analysis is restricted to a special class of non-convex objective functions. Finally, Agarwal et al. (2011); Hazan & Li (2016); Bubeck et al. (2017) study online bandit algorithms using ellipsoid methods. In particular, these methods induce heavy computation per step and achieve regret bounds that have bad dependence on the problem dimension. As a comparison, our one-point method is computation light and achieves regret bounds that have better dependence on the problem dimension. ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
173,
|
| 157 |
+
622,
|
| 158 |
+
826,
|
| 159 |
+
858
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "2 PRELIMINARIES AND RESIDUAL FEEDBACK ",
|
| 166 |
+
"text_level": 1,
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
878,
|
| 170 |
+
568,
|
| 171 |
+
895
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "We first introduce the classes of Lipschitz and smooth functions. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
173,
|
| 180 |
+
909,
|
| 181 |
+
594,
|
| 182 |
+
924
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "Definition 2.1 (Lipschitz functions). The class of Lipschtiz-continuous functions $C ^ { 0 , 0 }$ satisfies: for any $f \\in C ^ { 0 , 0 }$ , $| f ( x ) - f ( y ) | \\leq L _ { 0 } \\| x - y \\|$ , 8x, $y \\in \\bar { \\mathbb { R } } ^ { d }$ , where $L _ { 0 } > 0$ is the Lipschitz parameter. The class of smooth functions $C ^ { 1 , 1 }$ satisfies: for any ${ \\bf { \\bar { f } } } \\in C ^ { 1 , 1 }$ , $\\| \\nabla f ( x ) - \\nabla f ( y ) \\| \\leq L _ { 1 } \\| x - y \\|$ , $\\forall x , y \\in$ $\\mathbb { R } ^ { d }$ , where $L _ { 1 } > 0$ is the smoothness parameter. ",
|
| 189 |
+
"bbox": [
|
| 190 |
+
173,
|
| 191 |
+
102,
|
| 192 |
+
825,
|
| 193 |
+
160
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 2
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "In ZO, the objective is to estimate the first-order gradient of a function using zeroth-order oracles. Necessarily, we need to perturb the function around the current point along all the directions uniformly in order to estimate the gradient. This motivates us to consider the Gaussian-smoothed version of the function $f$ as introduced in Nesterov & Spokoiny (2017), $f _ { \\delta } ( x ) : = \\mathbb { E } _ { u \\sim \\mathcal { N } ( 0 , 1 ) } [ f ( x + \\delta u ) ]$ , where the coordinates of the vector $u$ are i.i.d standard Gaussian random variables. The following bounds on the approximation error of the function $f _ { \\delta } ( x )$ have been developed in Nesterov & Spokoiny (2017). ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
173,
|
| 202 |
+
170,
|
| 203 |
+
826,
|
| 204 |
+
256
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 2
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "Lemma 2.2. Consider a function $f$ and its smoothed version $f _ { \\delta }$ . It holds that ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
174,
|
| 213 |
+
258,
|
| 214 |
+
684,
|
| 215 |
+
273
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 2
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "equation",
|
| 221 |
+
"img_path": "images/157108b4efc58a6c31a7d87ee539a2e6c1f228c61cd25698cde2abfdb8c8fa4f.jpg",
|
| 222 |
+
"text": "$$\nf _ { \\delta } ( x ) - f ( x ) | \\leq \\{ \\delta L _ { 0 } \\sqrt { d } , \\ i f f \\in C ^ { 0 , 0 } , \\quad a n d \\| \\nabla f _ { \\delta } ( x ) - \\nabla f ( x ) \\| \\leq \\delta L _ { 1 } ( d + 3 ) ^ { 3 / 2 } , \\ i f f \\in C ^ { 1 , 1 } . \n$$",
|
| 223 |
+
"text_format": "latex",
|
| 224 |
+
"bbox": [
|
| 225 |
+
181,
|
| 226 |
+
280,
|
| 227 |
+
833,
|
| 228 |
+
315
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "The smoothed function $f _ { \\delta } ( x )$ satisfies the following amenable property Nesterov & Spokoiny (2017). ",
|
| 235 |
+
"bbox": [
|
| 236 |
+
173,
|
| 237 |
+
329,
|
| 238 |
+
821,
|
| 239 |
+
344
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "Lemma 2.3. If $f \\in C ^ { 0 , 0 }$ is $L _ { 0 }$ -Lipschitz, then $f _ { \\delta } \\in C ^ { 1 , 1 }$ with Lipschitz constant $L _ { 1 } = \\sqrt { d } \\delta ^ { - 1 } L _ { 0 }$ . ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
173,
|
| 248 |
+
349,
|
| 249 |
+
818,
|
| 250 |
+
366
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "Consider the following online bandit optimization problem. ",
|
| 257 |
+
"bbox": [
|
| 258 |
+
173,
|
| 259 |
+
376,
|
| 260 |
+
563,
|
| 261 |
+
392
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "equation",
|
| 267 |
+
"img_path": "images/11c43993656a0f9dac83913599c22aa8edf77aed463f136736d393d7e74e79be.jpg",
|
| 268 |
+
"text": "$$\n\\operatorname* { m i n } _ { x \\in \\mathcal { X } } \\sum _ { t = 0 } ^ { T - 1 } f _ { t } ( x ) ,\n$$",
|
| 269 |
+
"text_format": "latex",
|
| 270 |
+
"bbox": [
|
| 271 |
+
444,
|
| 272 |
+
397,
|
| 273 |
+
549,
|
| 274 |
+
441
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 2
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "text",
|
| 280 |
+
"text": "where $\\mathcal { X } \\subset \\mathbb { R } ^ { d }$ is a convex set and $\\cdot$ is a random sequence of objective functions. In this setting, the objective functions $\\{ f _ { t } \\} _ { t }$ are unknown a priori and their derivatives are unavailable. At time $t$ , a new objective function $f _ { t }$ is randomly generated independent of an agent’s decisions, and then the agent queries the objective function value at certain perturbed points and use them to update the current policy parameters. The goal of the agent is to minimize a certain regret function. ",
|
| 281 |
+
"bbox": [
|
| 282 |
+
173,
|
| 283 |
+
446,
|
| 284 |
+
825,
|
| 285 |
+
518
|
| 286 |
+
],
|
| 287 |
+
"page_idx": 2
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"type": "text",
|
| 291 |
+
"text": "Such an online setting often occurs in non-stationary learning scenarios where either the system is time-varying on its own or a single query of the function $f _ { t }$ changes the system state (i.e., $f _ { t }$ changes to $f _ { t + 1 } )$ ). In this non-stationary setting, the conventional two-point feedback scheme is known to be impractical as it requires to evaluate $f _ { t }$ at two different points at the same time $t$ . Instead, it is natural to use the one-point feedback scheme (2) in Gasnikov et al. (2017). However, the gradient estimate based on the above one-point feedback induces a large variance that leads to a large regret. In this paper, we focus on such an one-point derivative-free setting and propose the following novel one-point residual feedback scheme for estimating the gradient with reduced variance. ",
|
| 292 |
+
"bbox": [
|
| 293 |
+
173,
|
| 294 |
+
523,
|
| 295 |
+
826,
|
| 296 |
+
636
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 2
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "equation",
|
| 302 |
+
"img_path": "images/aab92e094424557c9600908d7e074d448fb4bc15ac1779bea8d1ffa4922d6915.jpg",
|
| 303 |
+
"text": "$$\n\\mathrm { ~ \\ k b } \\mathrm { ~ \\cdot ~ } \\widetilde { g } _ { t } ( x _ { t } ) : = \\frac { u _ { t } } { \\delta } \\big ( f _ { t } ( x _ { t } + \\delta u _ { t } ) - f _ { t - 1 } ( x _ { t - 1 } + \\delta u _ { t - 1 } ) \\big ) ,\n$$",
|
| 304 |
+
"text_format": "latex",
|
| 305 |
+
"bbox": [
|
| 306 |
+
364,
|
| 307 |
+
641,
|
| 308 |
+
748,
|
| 309 |
+
669
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 2
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "text",
|
| 315 |
+
"text": "where $u _ { t - 1 } , u _ { t } \\sim { \\mathcal { N } } ( 0 , I )$ are independent random vectors. To elaborate, the residual feedback in (3) queries $f _ { t }$ at a single perturbed point $x _ { t } + \\delta u _ { t }$ , and then subtracts it by $f _ { t - 1 } ( x _ { t - 1 } + \\delta u _ { t - 1 } )$ obtained from the previous iteration. We name such a scheme as one-point residual feedback. Next, we explore some basic properties of the residual feedback. We first show that this estimator is an unbiased gradient estimate of the smoothed function $f _ { \\delta , t }$ . ",
|
| 316 |
+
"bbox": [
|
| 317 |
+
173,
|
| 318 |
+
674,
|
| 319 |
+
826,
|
| 320 |
+
744
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 2
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "Lemma 2.4. The residual feedback satisfies $\\mathbb { E } \\left[ \\widetilde { g } _ { t } ( x _ { t } ) \\right] = \\nabla f _ { \\delta , t } ( x _ { t } )$ for all $x _ { t } \\in \\mathcal { X }$ and $t$ . ",
|
| 327 |
+
"bbox": [
|
| 328 |
+
169,
|
| 329 |
+
747,
|
| 330 |
+
761,
|
| 331 |
+
767
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 2
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "text",
|
| 337 |
+
"text": "Proof. By the fact that $u _ { t }$ has zero mean and is independent from $u _ { t - 1 }$ and $x _ { t - 1 }$ ",
|
| 338 |
+
"bbox": [
|
| 339 |
+
173,
|
| 340 |
+
780,
|
| 341 |
+
705,
|
| 342 |
+
796
|
| 343 |
+
],
|
| 344 |
+
"page_idx": 2
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"type": "text",
|
| 348 |
+
"text": "We consider the following ZO algorithm with residual feedback ",
|
| 349 |
+
"bbox": [
|
| 350 |
+
173,
|
| 351 |
+
809,
|
| 352 |
+
593,
|
| 353 |
+
825
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 2
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "equation",
|
| 359 |
+
"img_path": "images/b91148f67d653b812430cd329f5fef6a0ad76836a0bb29f089cc66d1c76f68b4.jpg",
|
| 360 |
+
"text": "$$\nx _ { t + 1 } = \\Pi _ { \\mathcal { X } } \\big ( x _ { t } - \\eta \\tilde { g } _ { t } ( x _ { t } ) \\big ) ,\n$$",
|
| 361 |
+
"text_format": "latex",
|
| 362 |
+
"bbox": [
|
| 363 |
+
508,
|
| 364 |
+
829,
|
| 365 |
+
692,
|
| 366 |
+
849
|
| 367 |
+
],
|
| 368 |
+
"page_idx": 2
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "text",
|
| 372 |
+
"text": "where $\\eta$ is the learning rate and $\\Pi _ { \\mathcal { X } }$ is the projection operator onto the set $\\mathcal { X }$ . The update (4) can be implemented assuming that the objective function can be queried at points outside the feasible set $\\cdot$ , similar to the methods considered in Duchi et al. (2015); Bach & Perchet (2016); Gasnikov et al. (2017). Note that it is possible to modify the update (4) so that the iterates are guaranteed to be within the feasible set $\\mathcal { X }$ . This modification and related analysis can be found in Section $_ \\mathrm { H }$ in the supplementary material. The requirement that the objective function is evaluated at feasible points in derivative-free optimization algorithms has also been considered in Bubeck et al. (2017); Bilenne et al. (2020). Specifically, Bubeck et al. (2017) develop the so called ellipsoid method, which requires computation of an ellipsoid containing the optimizer at each time step. On the other hand, almost concurrently with this work, Bilenne et al. (2020) proposed a similar oracle as in (3) for a static convex optimization problem with specific objective and constraint functions. Next, we bound the second moment of the gradient estimate based on the residual feedback. ",
|
| 373 |
+
"bbox": [
|
| 374 |
+
173,
|
| 375 |
+
853,
|
| 376 |
+
825,
|
| 377 |
+
924
|
| 378 |
+
],
|
| 379 |
+
"page_idx": 2
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "text",
|
| 383 |
+
"text": "",
|
| 384 |
+
"bbox": [
|
| 385 |
+
173,
|
| 386 |
+
103,
|
| 387 |
+
825,
|
| 388 |
+
202
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 3
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "Lemma 2.5 (Second moment). Assume that $f _ { t } \\in C ^ { 0 , 0 }$ with Lipschitz constant $L _ { 0 }$ for all time $t$ Then, under the ZO update rule in (4), the second moment of the residual feedback satisfies: for all $t$ ",
|
| 395 |
+
"bbox": [
|
| 396 |
+
173,
|
| 397 |
+
204,
|
| 398 |
+
823,
|
| 399 |
+
234
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "equation",
|
| 405 |
+
"img_path": "images/2759904bfd352313a6c20689a11449fe744d6720edf40601b3ac80a4e7f048f1.jpg",
|
| 406 |
+
"text": "$$\n\\begin{array} { c } { \\displaystyle \\mathbb { E } [ \\| \\widetilde { g } _ { t } ( x _ { t } ) \\| ^ { 2 } ] \\leq \\frac { 4 d L _ { 0 } ^ { 2 } \\eta ^ { 2 } } { \\delta ^ { 2 } } \\mathbb { E } [ \\| \\widetilde { g } _ { t - 1 } ( x _ { t - 1 } ) \\| ^ { 2 } ] + D _ { t } , } \\\\ { \\displaystyle } \\\\ { w h e r e ~ D _ { t } : = 1 6 L _ { 0 } ^ { 2 } ( d + 4 ) ^ { 2 } + \\frac { 2 d } { \\delta ^ { 2 } } \\mathbb { E } \\big [ \\big ( f _ { t } ( x _ { t - 1 } + \\delta u _ { t - 1 } ) - f _ { t - 1 } ( x _ { t - 1 } + \\delta u _ { t - 1 } ) \\big ) ^ { 2 } \\big ] . } \\end{array}\n$$",
|
| 407 |
+
"text_format": "latex",
|
| 408 |
+
"bbox": [
|
| 409 |
+
212,
|
| 410 |
+
241,
|
| 411 |
+
772,
|
| 412 |
+
306
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 3
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "text",
|
| 418 |
+
"text": "The above lemma shows that the second moment of the residual feedback can be bounded by a perturbed contraction, provided that we choose $\\eta$ and $\\delta$ such that the contracting rate $\\dot { \\alpha } = \\dot { 4 } d L _ { 0 } ^ { 2 } \\eta ^ { 2 } \\delta ^ { - 2 } < 1$ . As we show later in the analysis, such a contraction property leads to a small variance of the residual feedback that helps reduce the regret of the online ZO algorithm. ",
|
| 419 |
+
"bbox": [
|
| 420 |
+
173,
|
| 421 |
+
318,
|
| 422 |
+
825,
|
| 423 |
+
376
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 3
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "3 ZO WITH RESIDUAL FEEDBACK FOR ONLINE CONVEX OPTIMIZATION ",
|
| 430 |
+
"text_level": 1,
|
| 431 |
+
"bbox": [
|
| 432 |
+
171,
|
| 433 |
+
395,
|
| 434 |
+
789,
|
| 435 |
+
412
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 3
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "text",
|
| 441 |
+
"text": "In this section, we consider the online bandit problem (P) where the sequence of functions $\\{ f _ { t } \\} _ { t = 0 : T - 1 }$ are all convex. In particular, we are interested in analyzing the following static regret of the algorithm. ",
|
| 442 |
+
"bbox": [
|
| 443 |
+
169,
|
| 444 |
+
428,
|
| 445 |
+
825,
|
| 446 |
+
458
|
| 447 |
+
],
|
| 448 |
+
"page_idx": 3
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"type": "equation",
|
| 452 |
+
"img_path": "images/2a3722db08d45714ccea9e14d25af72e8e9e262103bf049b8ce703391467bc14.jpg",
|
| 453 |
+
"text": "$$\nR _ { T } : = \\mathbb { E } \\Big [ \\sum _ { t = 0 } ^ { T - 1 } f _ { t } ( x _ { t } ) - \\operatorname* { m i n } _ { x \\in \\mathscr { X } } \\sum _ { t = 0 } ^ { T - 1 } f _ { t } ( x ) \\Big ] .\n$$",
|
| 454 |
+
"text_format": "latex",
|
| 455 |
+
"bbox": [
|
| 456 |
+
364,
|
| 457 |
+
464,
|
| 458 |
+
633,
|
| 459 |
+
508
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 3
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "text",
|
| 465 |
+
"text": "We make the following assumption on the non-stationary of the online learning problem. ",
|
| 466 |
+
"bbox": [
|
| 467 |
+
171,
|
| 468 |
+
522,
|
| 469 |
+
753,
|
| 470 |
+
536
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 3
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "text",
|
| 476 |
+
"text": "Assumption 3.1 (Bounded variation). There exists $V _ { f } > 0$ such that for all $\\cdot$ , ",
|
| 477 |
+
"bbox": [
|
| 478 |
+
171,
|
| 479 |
+
541,
|
| 480 |
+
684,
|
| 481 |
+
556
|
| 482 |
+
],
|
| 483 |
+
"page_idx": 3
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"type": "equation",
|
| 487 |
+
"img_path": "images/e7a1da09b2609f331b59b9782c3679a9c52a34d7299ce6d1c764ea6942c0621e.jpg",
|
| 488 |
+
"text": "$$\n\\begin{array} { r } { \\mathbb { E } \\big [ | f _ { t } ( x _ { t - 1 } + \\delta u _ { t - 1 } ) - f _ { t - 1 } ( x _ { t - 1 } + \\delta u _ { t - 1 } ) | ^ { 2 } \\big ] \\leq V _ { f } ^ { 2 } , } \\end{array}\n$$",
|
| 489 |
+
"text_format": "latex",
|
| 490 |
+
"bbox": [
|
| 491 |
+
316,
|
| 492 |
+
564,
|
| 493 |
+
679,
|
| 494 |
+
583
|
| 495 |
+
],
|
| 496 |
+
"page_idx": 3
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"type": "text",
|
| 500 |
+
"text": "here the expectation is taken over $x _ { t - 1 }$ , the random vector $\\cdot$ and the random functions $\\cdot$ ",
|
| 501 |
+
"bbox": [
|
| 502 |
+
194,
|
| 503 |
+
590,
|
| 504 |
+
800,
|
| 505 |
+
606
|
| 506 |
+
],
|
| 507 |
+
"page_idx": 3
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"type": "text",
|
| 511 |
+
"text": "Intuitively, we assume the squared variation of the objective function between two consecutive time instants is uniformly bounded over time. We note that this assumption is much weaker than the uniformly bounded function value assumption, i.e., $\\mathbb { E } \\big [ f _ { t } ( x ) ^ { 2 } \\big ] \\ \\leq \\ \\dot { B } ^ { 2 } , \\forall t , x \\in \\mathcal { X }$ , which is used in the analysis of ZO with the conventional one-point feedback Gasnikov et al. (2017). In particular, under Assumption 3.1, the perturbation term in Lemma 2.5 can be bounded as $D _ { t } \\ \\leq$ $\\bar { 1 } 6 L _ { 0 } ^ { 2 } ( d + 4 ) ^ { 2 } + 2 d V _ { . } ^ { 2 } \\delta ^ { - 2 }$ . Then, by telescoping the contraction inequality, we obtain the following bound for the second moment of the residual-feedback gradient estimate, ",
|
| 512 |
+
"bbox": [
|
| 513 |
+
173,
|
| 514 |
+
616,
|
| 515 |
+
826,
|
| 516 |
+
715
|
| 517 |
+
],
|
| 518 |
+
"page_idx": 3
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"type": "equation",
|
| 522 |
+
"img_path": "images/9bdcfe254c4b3970221a6bca3c679a89c783e07517e1ab036a504db6ebc6dffd.jpg",
|
| 523 |
+
"text": "$$\n\\mathbb { E } [ \\| \\tilde { g } _ { t } ( x _ { t } ) \\| ^ { 2 } ] \\le \\operatorname* { m a x } \\Big \\{ \\mathbb { E } [ \\| \\tilde { g } _ { 0 } ( x _ { 0 } ) \\| ^ { 2 } ] , \\frac { 1 } { 1 - \\alpha } \\Big ( 1 6 L _ { 0 } ^ { 2 } ( d + 4 ) ^ { 2 } + \\frac { 2 d } { \\delta ^ { 2 } } V _ { f } ^ { 2 } \\Big ) \\Big \\} .\n$$",
|
| 524 |
+
"text_format": "latex",
|
| 525 |
+
"bbox": [
|
| 526 |
+
259,
|
| 527 |
+
723,
|
| 528 |
+
738,
|
| 529 |
+
753
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 3
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "text",
|
| 535 |
+
"text": "In practice, $\\delta$ is usually chosen to be sufficiently small, and the above bound is dominated by $\\mathcal { O } ( \\dot { d } \\delta ^ { - 2 } V _ { f } ^ { 2 } )$ , which is much smaller than the second moment bound of the conventional one-point feedback $\\mathcal { O } ( d \\delta ^ { - 2 } B ^ { 2 } )$ ( $B ^ { 2 }$ is the uniform bound of the second moment of $f _ { t }$ over time). For example, consider the time-varying objective functions, $f _ { 0 } ( x ) = 1 / 2 x ^ { 2 }$ and $f _ { t } ( x ) = f _ { t - 1 } ( x ) + n _ { t }$ , where $\\cdot$ is Gaussian noise with zero mean at time $t$ . Then, it can be verified that Assumption 3.1 holds with a finite $\\cdot$ whereas the second moment of $f _ { t } ( x )$ is unbounded over time. This suggests that the variance of the residual feedback can be significantly smaller than that of the conventional one-point feedback. ",
|
| 536 |
+
"bbox": [
|
| 537 |
+
173,
|
| 538 |
+
760,
|
| 539 |
+
825,
|
| 540 |
+
875
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 3
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "text",
|
| 546 |
+
"text": "Next, we first consider the case where the objective function $f _ { t }$ is convex and Lipschitz. Based on the above characterization of the second moment of residual feedback, we obtain the following regret bound for ZO with residual feedback. ",
|
| 547 |
+
"bbox": [
|
| 548 |
+
174,
|
| 549 |
+
881,
|
| 550 |
+
823,
|
| 551 |
+
924
|
| 552 |
+
],
|
| 553 |
+
"page_idx": 3
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"type": "text",
|
| 557 |
+
"text": "Theorem 3.2 (Regret for Convex Lipschitz $f _ { t }$ ). Let Assumption 3.1 hold. Assume that $f _ { t } \\in C ^ { 0 , 0 }$ is convex with Lipschitz constant $L _ { 0 }$ for all $t$ and $\\| x _ { 0 } - x ^ { * } \\| \\leq R$ . Run $Z O$ with residual feedback for $T > R ^ { 2 }$ iterations with $\\eta = R ^ { \\frac { 3 } { 2 } } ( 2 \\sqrt { 2 } L _ { 0 } \\sqrt { d } T ^ { \\frac { 3 } { 4 } } ) ^ { - 1 }$ and $\\delta = \\sqrt { R } T ^ { - \\frac { 1 } { 4 } }$ . Then, we have that ",
|
| 558 |
+
"bbox": [
|
| 559 |
+
174,
|
| 560 |
+
102,
|
| 561 |
+
825,
|
| 562 |
+
148
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 4
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "equation",
|
| 568 |
+
"img_path": "images/fcd95db8640f95a00979ad1a3223be730e4500361be5812e909ba769ab1ba194.jpg",
|
| 569 |
+
"text": "$$\nR _ { T } \\leq \\sqrt { 2 } L _ { 0 } \\sqrt { d R } T ^ { \\frac { 3 } { 4 } } + \\frac { \\mathbb { E } \\left[ \\| \\tilde { g } _ { 0 } ( x _ { 0 } ) \\| ^ { 2 } \\right] R ^ { \\frac { 3 } { 2 } } } { 2 \\sqrt { 2 d } L _ { 0 } T ^ { \\frac { 3 } { 4 } } } + 8 \\sqrt { 2 } \\frac { ( d + 4 ) ^ { 2 } } { \\sqrt { d } } L _ { 0 } R ^ { \\frac { 3 } { 2 } } T ^ { \\frac { 1 } { 4 } }\n$$",
|
| 570 |
+
"text_format": "latex",
|
| 571 |
+
"bbox": [
|
| 572 |
+
269,
|
| 573 |
+
155,
|
| 574 |
+
725,
|
| 575 |
+
217
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 4
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "text",
|
| 581 |
+
"text": "Asymptotically, we have $R _ { T } = \\mathcal { O } ( ( L _ { 0 } + { L _ { 0 } } ^ { - 1 } V _ { f } ^ { 2 } ) \\sqrt { d R } T ^ { \\frac { 3 } { 4 } } )$ . ",
|
| 582 |
+
"bbox": [
|
| 583 |
+
173,
|
| 584 |
+
222,
|
| 585 |
+
575,
|
| 586 |
+
241
|
| 587 |
+
],
|
| 588 |
+
"page_idx": 4
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"type": "text",
|
| 592 |
+
"text": "To the best of our knowledge, the best known regret for ZO with the conventional one-point feedback is of the order $\\mathcal { O } ( \\sqrt { d L _ { 0 } R B } T ^ { \\frac { 3 } { 4 } } )$ Gasnikov et al. (2017). Therefore, our regret bound is tighter if the function variation satisfies $V _ { f } ^ { 2 } \\le \\mathcal { O } ( B ^ { \\frac { 1 } { 2 } } L _ { 0 } ^ { \\frac { 3 } { 2 } } )$ . Essentially, using the proposed residual feedback gradient estimator, the regret of $\\mathrm { \\Delta } \\breve { Z } { \\mathrm O }$ no longer depends on the uniform bound of the function value, which can be huge in practice. Instead, our regret only relies on how fast the function varies over time. ",
|
| 593 |
+
"bbox": [
|
| 594 |
+
173,
|
| 595 |
+
250,
|
| 596 |
+
826,
|
| 597 |
+
342
|
| 598 |
+
],
|
| 599 |
+
"page_idx": 4
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"type": "text",
|
| 603 |
+
"text": "Remark 3.3. We note that the complexity bound in Theorem 3.2 generally depends on the values of the Lipschitz parameters $\\cdot$ , $\\cdot$ and the constant $V _ { f } ^ { 2 }$ . Specifically, choose $\\eta = R ^ { \\frac { 3 } { 2 } } ( 2 \\sqrt { 2 } L _ { 0 } \\sqrt { d } T ^ { \\frac { 3 } { 4 } } ) ^ { - 1 }$ and $L _ { 0 } ^ { 2 q - 1 } V _ { f } ^ { 2 } ) \\sqrt { d R } T ^ { \\frac { 3 } { 4 } } )$ $\\cdot$ ) when with $\\cdot$ $q > 0$ as a tuning parameter, and we obtain that . If $L _ { 0 } ~ < ~ 1$ , we can choose $q = 1$ $R _ { T } = \\mathcal { O } ( { ( L _ { 0 } + L _ { 0 } } ^ { 1 - q } +$ to achieve the bound $-$ . On the other hand, if $\\cdot$ , we can choose $\\cdot$ to achieve the bound $R _ { T } = { \\mathcal O } ( ( L _ { 0 } + L _ { 0 } { } ^ { - 1 } V _ { f } ^ { 2 } ) \\sqrt { d R } T ^ { \\frac { 3 } { 4 } } )$ ). We note that the dependence of the bounds in Theorems 3.4, 4.2 and 4.3 on $L _ { 0 } , L _ { 1 }$ can also be optimized in a similar way by properly choosing $\\delta$ . ",
|
| 604 |
+
"bbox": [
|
| 605 |
+
173,
|
| 606 |
+
345,
|
| 607 |
+
826,
|
| 608 |
+
465
|
| 609 |
+
],
|
| 610 |
+
"page_idx": 4
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"type": "text",
|
| 614 |
+
"text": "Next, we present the regret of ZO with residual feedback for convex smooth objective functions. ",
|
| 615 |
+
"bbox": [
|
| 616 |
+
173,
|
| 617 |
+
474,
|
| 618 |
+
802,
|
| 619 |
+
491
|
| 620 |
+
],
|
| 621 |
+
"page_idx": 4
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"type": "text",
|
| 625 |
+
"text": "Theorem 3.4 (Regret for Convex Smooth $f _ { t }$ ). Let Assumption 3.1 hold. Assume that $f _ { t } ( x ) \\in$ $C ^ { 0 , 0 } \\cap C ^ { 1 , 1 }$ is convex with Lipschitz constant $L _ { 0 }$ and smoothness constant $L _ { 1 }$ for all $t$ , and assume that $\\| x _ { 0 } - x ^ { * } \\| \\leq R .$ Run $Z O$ with residual feedback for $T > R ^ { 2 }$ iterations with $\\eta = R ^ { \\frac { 4 } { 3 } } ( 2 \\sqrt { 2 } L _ { 0 } d ^ { \\frac { 2 } { 3 } } T ^ { \\frac { 2 } { 3 } } ) ^ { - 1 }$ and $\\delta = R ^ { \\frac { 1 } { 3 } } d ^ { - { \\frac { 1 } { 6 } } } T ^ { - { \\frac { 1 } { 6 } } }$ . Then, we have that ",
|
| 626 |
+
"bbox": [
|
| 627 |
+
174,
|
| 628 |
+
493,
|
| 629 |
+
825,
|
| 630 |
+
555
|
| 631 |
+
],
|
| 632 |
+
"page_idx": 4
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"type": "equation",
|
| 636 |
+
"img_path": "images/4a1d2de24319dfcbd529ed474f4462c92da04db43e3ada63d6172b43e1195048.jpg",
|
| 637 |
+
"text": "$$\n\\begin{array} { c } { { R _ { T } \\leq \\sqrt { 2 } L _ { 0 } d ^ { \\frac 2 3 } R ^ { \\frac 2 3 } T ^ { \\frac 2 3 } + \\frac { \\mathbb { E } \\left[ \\| \\tilde { g } _ { 0 } ( x _ { 0 } ) \\| ^ { 2 } \\right] R ^ { \\frac 4 3 } } { 2 \\sqrt { 2 } L _ { 0 } d ^ { \\frac 2 3 } T ^ { \\frac 2 3 } } + 8 \\sqrt { 2 } L _ { 0 } \\frac { ( d + 4 ) ^ { 2 } } { d ^ { \\frac 2 3 } } R ^ { \\frac 4 3 } T ^ { \\frac 1 3 } } } \\\\ { { + 2 L _ { 1 } d ^ { \\frac 2 3 } R ^ { \\frac 2 3 } T ^ { \\frac 2 3 } + \\sqrt { 2 } L _ { 0 } ^ { - 1 } d ^ { \\frac 2 3 } R ^ { \\frac 2 3 } V _ { f } ^ { 2 } T ^ { \\frac 2 3 } . } } \\end{array}\n$$",
|
| 638 |
+
"text_format": "latex",
|
| 639 |
+
"bbox": [
|
| 640 |
+
266,
|
| 641 |
+
560,
|
| 642 |
+
730,
|
| 643 |
+
622
|
| 644 |
+
],
|
| 645 |
+
"page_idx": 4
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"type": "text",
|
| 649 |
+
"text": "Asymptotically, the above regret bound is in the order of $\\mathcal { O } ( ( L _ { 0 } + L _ { 1 } + L _ { 0 } { } ^ { - 1 } V _ { f } ^ { 2 } ) ( d R T ) ^ { \\frac { 2 } { 3 } } )$ . ",
|
| 650 |
+
"bbox": [
|
| 651 |
+
169,
|
| 652 |
+
628,
|
| 653 |
+
777,
|
| 654 |
+
647
|
| 655 |
+
],
|
| 656 |
+
"page_idx": 4
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"type": "text",
|
| 660 |
+
"text": "To the best of our knowledge, the best known regret for ZO with the conventional one-point feedback in the convex smooth case is of the order $\\mathcal { O } ( L _ { 1 } ^ { \\frac { 1 } { 3 } } ( d R B T ) ^ { \\frac { 2 } { 3 } } )$ Gasnikov et al. (2017). Therefore, our regret bound is tighter if the function variation satisfies $V _ { f } ^ { 2 } \\leq \\mathcal { O } ( B ^ { \\frac { 2 } { 3 } } L _ { 1 } ^ { \\frac { 1 } { 3 } } L _ { 0 } )$ . Our numerical experiments show that ZO with residual feedback always outperforms ZO with the conventional one-point feedback in practice. ",
|
| 661 |
+
"bbox": [
|
| 662 |
+
173,
|
| 663 |
+
655,
|
| 664 |
+
826,
|
| 665 |
+
738
|
| 666 |
+
],
|
| 667 |
+
"page_idx": 4
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"type": "text",
|
| 671 |
+
"text": "4 ZO WITH RESIDUAL FEEDBACK FOR ONLINE NONCONVEX OPTIMIZATION ",
|
| 672 |
+
"text_level": 1,
|
| 673 |
+
"bbox": [
|
| 674 |
+
171,
|
| 675 |
+
756,
|
| 676 |
+
821,
|
| 677 |
+
773
|
| 678 |
+
],
|
| 679 |
+
"page_idx": 4
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"type": "text",
|
| 683 |
+
"text": "In this section, we analyze the regret of ZO with residual feedback in solving the unconstrained online bandit problem (P) with nonconvex functions. Throughout this section, we make the following assumption regarding the objective functions. ",
|
| 684 |
+
"bbox": [
|
| 685 |
+
173,
|
| 686 |
+
787,
|
| 687 |
+
826,
|
| 688 |
+
830
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 4
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "text",
|
| 694 |
+
"text": "Assumption 4.1. There exist $\\cdot$ such that the following conditions hold for all $t$ . ",
|
| 695 |
+
"bbox": [
|
| 696 |
+
169,
|
| 697 |
+
835,
|
| 698 |
+
774,
|
| 699 |
+
853
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 4
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "1. $\\begin{array} { r } { \\sum _ { t = 1 } ^ { T } \\mathbb { E } [ f _ { \\delta , t } ( x _ { t } ) - f _ { \\delta , t - 1 } ( x _ { t } ) ] \\leq W _ { T } } \\end{array}$ , where the expectation is taken with respect to $\\cdot$ and the random smoothed objective functions $\\cdot$ , $f _ { \\delta , t }$ . 2. $\\begin{array} { r } { \\sum _ { t = 1 } ^ { T } \\mathbb { E } [ | f _ { t } ( x _ { t - 1 } + \\delta u _ { t - 1 } ) - f _ { t - 1 } ( x _ { t - 1 } + \\delta u _ { t - 1 } ) | ^ { 2 } ] \\leq \\tilde { W } _ { T } } \\end{array}$ , where the expectation is taken with respect to $\\cdot$ , the random vector $u _ { t - 1 }$ and the random objective functions $f _ { t - 1 }$ , $\\cdot$ . ",
|
| 706 |
+
"bbox": [
|
| 707 |
+
173,
|
| 708 |
+
859,
|
| 709 |
+
825,
|
| 710 |
+
921
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 4
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "text",
|
| 716 |
+
"text": "The above two conditions measure the accumulated first-order and second-order function variations, as also adopted by Roy et al. (2019). ",
|
| 717 |
+
"bbox": [
|
| 718 |
+
171,
|
| 719 |
+
103,
|
| 720 |
+
825,
|
| 721 |
+
132
|
| 722 |
+
],
|
| 723 |
+
"page_idx": 5
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"type": "text",
|
| 727 |
+
"text": "Next, we consider the case where $\\{ f _ { t } \\} _ { t }$ are nonconvex and Lipschitz continuous functions. Since the objective function $f _ { t }$ is not necessarily differentiable, i.e., $\\nabla f ( t )$ is not well defined, we define the regret as the accumulated gradient of the smoothed function, i.e., $\\begin{array} { r } { R _ { g , \\delta } ^ { T } : = \\sum _ { t = 0 } ^ { T - 1 } \\mathbb { E } [ \\| \\nabla f _ { \\delta , t } ( x _ { t } ) \\| ^ { 2 } ] } \\end{array}$ . In addition, it is often required that the smoothed function $f _ { \\delta , t }$ is close to the original function $f _ { t }$ such that $| f _ { \\delta , t } ( x ) - f _ { t } ( x ) | \\leq \\epsilon _ { f }$ for all $t$ . To satisfy this condition, we need to choose $\\delta \\le ( \\sqrt { d } L _ { 0 } ) ^ { - 1 } \\epsilon _ { f }$ according to Lemma 2.2. We obtain the following regret bound for ZO with residual feedback. ",
|
| 728 |
+
"bbox": [
|
| 729 |
+
173,
|
| 730 |
+
138,
|
| 731 |
+
826,
|
| 732 |
+
231
|
| 733 |
+
],
|
| 734 |
+
"page_idx": 5
|
| 735 |
+
},
|
| 736 |
+
{
|
| 737 |
+
"type": "text",
|
| 738 |
+
"text": "Theorem 4.2 (Nonconvex Lipschitz $f _ { t }$ ). Let Assumptions 4.1 hold. Assume that $f _ { t } \\in C ^ { 0 , 0 }$ with Lipschitz constant $L _ { 0 }$ and that $f _ { t }$ is bounded below by $f _ { t } ^ { * }$ for all $t$ . Run $Z O$ with residual feedback for $T > ( d \\epsilon _ { f } ) ^ { - 1 }$ iterations with $\\eta = \\epsilon _ { f } ^ { \\frac { 3 } { 2 } } ( 2 \\sqrt { 2 } L _ { 0 } ^ { 2 } d ^ { \\frac { 3 } { 2 } } T ^ { \\frac { 1 } { 2 } } ) ^ { - 1 }$ and $\\delta = \\epsilon _ { f } ( d ^ { \\frac { 1 } { 2 } } L _ { 0 } ) ^ { - 1 }$ . Then, we have that ",
|
| 739 |
+
"bbox": [
|
| 740 |
+
174,
|
| 741 |
+
233,
|
| 742 |
+
823,
|
| 743 |
+
284
|
| 744 |
+
],
|
| 745 |
+
"page_idx": 5
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"type": "equation",
|
| 749 |
+
"img_path": "images/65701bcedbf9b14e08ba7d9750af3b370caaf5e69078ea7f12a295f191767c6a.jpg",
|
| 750 |
+
"text": "$$\n\\begin{array} { r l } & { R _ { g , \\delta } ^ { T } \\leq 2 \\sqrt { 2 } L _ { 0 } ^ { 2 } \\big ( \\mathbb { E } [ f _ { \\delta , 0 } ( x _ { 0 } ) ] - f _ { \\delta , T } ^ { * } + W _ { T } \\big ) d ^ { \\frac { 3 } { 2 } } \\epsilon _ { f } ^ { - \\frac { 3 } { 2 } } T ^ { \\frac { 1 } { 2 } } + \\frac { \\epsilon _ { f } ^ { \\frac { 1 } { 2 } } \\mathbb { E } \\big [ \\| \\tilde { g } _ { 0 } ( x _ { 0 } ) \\| ^ { 2 } \\big ] } { 2 \\sqrt { 2 d T } } } \\\\ & { \\quad \\quad \\quad \\quad + 4 \\sqrt { 2 } L _ { 0 } \\epsilon _ { f } ^ { \\frac { 1 } { 2 } } \\frac { \\big ( d + 4 \\big ) ^ { 2 } } { d ^ { \\frac { 1 } { 2 } } } T ^ { \\frac { 1 } { 2 } } + \\frac { L _ { 0 } ^ { 2 } } { \\sqrt { 2 } } \\frac { d ^ { \\frac { 3 } { 2 } } \\widetilde { W } _ { T } } { \\epsilon _ { f } ^ { \\frac { 3 } { 2 } } T ^ { \\frac { 1 } { 2 } } } . } \\end{array}\n$$",
|
| 751 |
+
"text_format": "latex",
|
| 752 |
+
"bbox": [
|
| 753 |
+
253,
|
| 754 |
+
291,
|
| 755 |
+
743,
|
| 756 |
+
377
|
| 757 |
+
],
|
| 758 |
+
"page_idx": 5
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"type": "text",
|
| 762 |
+
"text": "Asymptotically, we have $R _ { g , \\delta } ^ { T } = \\mathcal { O } ( d ^ { \\frac { 3 } { 2 } } L _ { 0 } ^ { 2 } \\epsilon _ { f } ^ { - \\frac { 3 } { 2 } } ( W _ { T } + \\widetilde { W } _ { T } T ^ { - 1 } ) T ^ { \\frac { 1 } { 2 } } + d ^ { \\frac { 3 } { 2 } } L _ { 0 } \\epsilon _ { f } ^ { \\frac { 1 } { 2 } } T ^ { \\frac { 1 } { 2 } } ) .$ ",
|
| 763 |
+
"bbox": [
|
| 764 |
+
171,
|
| 765 |
+
382,
|
| 766 |
+
714,
|
| 767 |
+
407
|
| 768 |
+
],
|
| 769 |
+
"page_idx": 5
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "text",
|
| 773 |
+
"text": "Based on Theorem 4.2, we observe that the regret bound satisfies $R _ { g , \\delta } ^ { T } / T 0$ whenever $W _ { T } =$ $o ( T ^ { \\frac { 1 } { 2 } } \\epsilon _ { f } ^ { \\frac { 3 } { 2 } } )$ and $\\widetilde { W } _ { T } = o ( T ^ { \\frac { 3 } { 2 } } \\epsilon _ { f } ^ { \\frac { 3 } { 2 } } )$ . In particular, if the bounded variation Assumption 3.1 holds, then we have $\\widetilde { W } _ { T } \\leq \\mathcal { O } ( T V _ { f } ^ { 2 } )$ , and it suffices to let $T ^ { - \\frac { 1 } { 2 } } \\epsilon _ { f } ^ { - \\frac { 3 } { 2 } } = o ( 1 )$ . ",
|
| 774 |
+
"bbox": [
|
| 775 |
+
173,
|
| 776 |
+
417,
|
| 777 |
+
825,
|
| 778 |
+
479
|
| 779 |
+
],
|
| 780 |
+
"page_idx": 5
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"type": "text",
|
| 784 |
+
"text": "Next, we consider the nonconvex and smooth problem and study the regret $R _ { g } ^ { T } : =$ $\\begin{array} { r l } { { \\sum _ { t = 0 } ^ { T - 1 } \\mathbb { E } [ \\| \\nabla f _ { t } ( x _ { t } ) \\| ^ { 2 } ] } \\quad } & { { } } \\end{array}$ . We obtain the following regret for ZO with residual-feedback. ",
|
| 785 |
+
"bbox": [
|
| 786 |
+
173,
|
| 787 |
+
486,
|
| 788 |
+
825,
|
| 789 |
+
520
|
| 790 |
+
],
|
| 791 |
+
"page_idx": 5
|
| 792 |
+
},
|
| 793 |
+
{
|
| 794 |
+
"type": "text",
|
| 795 |
+
"text": "Theorem 4.3 (Nonconvex smooth $f _ { t }$ ). Let Assumptions 4.1 hold. Assume that $f _ { t } \\in C ^ { 0 , 0 } \\cap C ^ { 1 , 1 }$ with Lipschitz constant $L _ { 0 }$ and smoothness constant $L _ { 1 }$ and that $f _ { t }$ is bounded below by $f _ { t } ^ { * }$ for all $t$ . Run $Z O$ with residual feedback for $T$ iterations with $\\eta = ( 2 \\sqrt { 2 } L _ { 0 } d ^ { \\frac { 4 } { 3 } } T ^ { \\frac { 1 } { 2 } } ) ^ { - 1 }$ and $\\delta = ( d ^ { \\frac { 5 } { 6 } } T ^ { \\frac { 1 } { 4 } } ) ^ { - 1 }$ . Then, ",
|
| 796 |
+
"bbox": [
|
| 797 |
+
173,
|
| 798 |
+
523,
|
| 799 |
+
825,
|
| 800 |
+
570
|
| 801 |
+
],
|
| 802 |
+
"page_idx": 5
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"type": "equation",
|
| 806 |
+
"img_path": "images/ee776d3c5ddac57bc2e30abb1ae8960b47db5f9c6e6591f9a6744e4a6577cfc3.jpg",
|
| 807 |
+
"text": "$$\n\\begin{array} { r } { R _ { g } ^ { T } \\leq 4 \\sqrt { 2 } L _ { 0 } \\big ( \\mathbb { E } [ f _ { \\delta , 0 } ( x _ { 0 } ) ] - f _ { \\delta , T } ^ { * } + W _ { T } \\big ) d ^ { \\frac { 4 } { 3 } } T ^ { \\frac { 1 } { 2 } } + \\frac { L _ { 1 } \\mathbb { E } \\big [ \\| \\tilde { g } _ { 0 } ( x _ { 0 } ) \\| ^ { 2 } \\big ] } { \\sqrt { 2 } L _ { 0 } d ^ { \\frac { 4 } { 3 } } T ^ { \\frac { 1 } { 2 } } } } \\\\ { + 8 \\sqrt { 2 } L _ { 1 } L _ { 0 } \\frac { ( d + 4 ) ^ { 2 } } { d ^ { \\frac { 4 } { 3 } } } T ^ { \\frac { 1 } { 2 } } + \\frac { \\sqrt { 2 } L _ { 1 } } { L _ { 0 } } d ^ { \\frac { 4 } { 3 } } \\widetilde { W } _ { T } + 2 L _ { 1 } ^ { 2 } \\frac { ( d + 3 ) ^ { 3 } } { d ^ { \\frac { 5 } { 3 } } } T ^ { \\frac { 1 } { 2 } } . } \\end{array}\n$$",
|
| 808 |
+
"text_format": "latex",
|
| 809 |
+
"bbox": [
|
| 810 |
+
269,
|
| 811 |
+
577,
|
| 812 |
+
727,
|
| 813 |
+
651
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 5
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "Asymptotically, the above regret bound is in the order of $\\mathcal { O } ( d ^ { \\frac { 4 } { 3 } } L _ { 0 } W _ { T } T ^ { \\frac { 1 } { 2 } } + d ^ { \\frac { 4 } { 3 } } L _ { 1 } { L _ { 0 } } ^ { - 1 } \\widetilde { W } _ { T } )$ ",
|
| 820 |
+
"bbox": [
|
| 821 |
+
169,
|
| 822 |
+
656,
|
| 823 |
+
777,
|
| 824 |
+
674
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 5
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "Based on Theorem 4.3, we observe that the regret bound satisfies $R _ { g } ^ { T } / T \\to 0$ whenever $W _ { T } = o ( T ^ { \\frac { 1 } { 2 } } )$ and $\\widetilde { W } _ { T } = o ( T )$ . We note that these requirements of $W _ { T } , \\widetilde { W } _ { T }$ are more relaxed than those in the nonsmooth case, as they do not rely on the small parameter $\\epsilon _ { f }$ . ",
|
| 831 |
+
"bbox": [
|
| 832 |
+
173,
|
| 833 |
+
686,
|
| 834 |
+
826,
|
| 835 |
+
736
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 5
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "5 ZO WITH RESIDUAL FEEDBACK FOR STOCHASTIC ONLINE OPTIMIZATION ",
|
| 842 |
+
"text_level": 1,
|
| 843 |
+
"bbox": [
|
| 844 |
+
173,
|
| 845 |
+
753,
|
| 846 |
+
823,
|
| 847 |
+
772
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 5
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "text",
|
| 853 |
+
"text": "In this section, we generalize the residual feedback to solve stochastic online bandit problems. Since its regret analysis follows the same proof logic as that of ZO with residual feedback, we only introduce the key technical lemmas and comment on the proof difference. The stochastic online bandit problems are formulated as follows. ",
|
| 854 |
+
"bbox": [
|
| 855 |
+
174,
|
| 856 |
+
785,
|
| 857 |
+
825,
|
| 858 |
+
842
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 5
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "equation",
|
| 864 |
+
"img_path": "images/6f522417fc0b9e2fb7694b092178848a30947207e761b436649d64ffcbfbcd8c.jpg",
|
| 865 |
+
"text": "$$\n\\operatorname* { m i n } _ { x \\in \\mathcal { X } } \\sum _ { t = 0 } ^ { T - 1 } \\mathbb { E } [ F _ { t } ( x ; \\xi _ { t } ) ] , \\quad \\mathrm { w h e r e } \\ \\mathbb { E } [ F _ { t } ( x ; \\xi _ { t } ) ] = f _ { t } ( x ) , \\forall t ,\n$$",
|
| 866 |
+
"text_format": "latex",
|
| 867 |
+
"bbox": [
|
| 868 |
+
312,
|
| 869 |
+
847,
|
| 870 |
+
684,
|
| 871 |
+
890
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 5
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "where $\\xi _ { t }$ denotes a certain noise that is independent of $\\cdot$ . Different from the previous deterministic online setting, the agent in the stochastic setting can only query noisy evaluations of the function. ",
|
| 878 |
+
"bbox": [
|
| 879 |
+
173,
|
| 880 |
+
895,
|
| 881 |
+
826,
|
| 882 |
+
925
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 5
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "This covers the scenarios where the agent does not have access to the underlying data distribution. To solve the above stochastic online problem, we propose the following stochastic residual feedback ",
|
| 889 |
+
"bbox": [
|
| 890 |
+
171,
|
| 891 |
+
103,
|
| 892 |
+
825,
|
| 893 |
+
132
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 6
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "equation",
|
| 899 |
+
"img_path": "images/bf25681c14fa1c4d0c9f31c6bc9d36384640e34ef357259658654a1804c1425d.jpg",
|
| 900 |
+
"text": "$$\n\\widetilde { g } _ { t } ( x _ { t } ) : = \\frac { u _ { t } } { \\delta } \\big ( F _ { t } ( x _ { t } + \\delta u _ { t } ; \\xi _ { t } ) - F _ { t - 1 } ( x _ { t - 1 } + \\delta u _ { t - 1 } ; \\xi _ { t - 1 } ) \\big ) ,\n$$",
|
| 901 |
+
"text_format": "latex",
|
| 902 |
+
"bbox": [
|
| 903 |
+
292,
|
| 904 |
+
137,
|
| 905 |
+
702,
|
| 906 |
+
165
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 6
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "where $\\xi _ { t - 1 }$ and $\\xi _ { t }$ are independent random samples that are sampled in the iterations $t - 1$ and $t$ , respectively. Since the noisy function value $F ( x ; \\xi _ { t } )$ is an unbiased estimate of the objective function $f _ { t } ( x )$ , it is straightforward to show that (13) is an unbiased gradient estimate of the function $f _ { \\delta , t } ( \\boldsymbol { x } )$ . ",
|
| 913 |
+
"bbox": [
|
| 914 |
+
174,
|
| 915 |
+
170,
|
| 916 |
+
826,
|
| 917 |
+
212
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 6
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "To analyze the regret of ZO with stochastic residual feedback, we first consider the convex setting and make the following assumption that bounds the variation of the stochastic functions. ",
|
| 924 |
+
"bbox": [
|
| 925 |
+
173,
|
| 926 |
+
218,
|
| 927 |
+
825,
|
| 928 |
+
247
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 6
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "Assumption 5.1. (Bounded stochastic variation) There exists $V _ { f , \\xi } > 0$ such that for all $\\cdot$ , ",
|
| 935 |
+
"bbox": [
|
| 936 |
+
171,
|
| 937 |
+
251,
|
| 938 |
+
763,
|
| 939 |
+
266
|
| 940 |
+
],
|
| 941 |
+
"page_idx": 6
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"type": "equation",
|
| 945 |
+
"img_path": "images/ad51ff703ce51665de94042123a498b61803aa9a7743f2cf7079cf2f9d01f9be.jpg",
|
| 946 |
+
"text": "$$\n-\n$$",
|
| 947 |
+
"text_format": "latex",
|
| 948 |
+
"bbox": [
|
| 949 |
+
281,
|
| 950 |
+
268,
|
| 951 |
+
715,
|
| 952 |
+
290
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 6
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "text",
|
| 958 |
+
"text": "where the expectation is taken with respect to $x _ { t - 1 }$ , the random vector $\\cdot$ and the random objective functions $\\cdot$ , $\\cdot$ . ",
|
| 959 |
+
"bbox": [
|
| 960 |
+
171,
|
| 961 |
+
294,
|
| 962 |
+
823,
|
| 963 |
+
323
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 6
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "text",
|
| 969 |
+
"text": "The above assumption generalizes Assumption 3.1 to the stochastic setting. The bound $V _ { f , \\xi } ^ { 2 }$ controls ",
|
| 970 |
+
"bbox": [
|
| 971 |
+
174,
|
| 972 |
+
333,
|
| 973 |
+
823,
|
| 974 |
+
362
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 6
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "text",
|
| 980 |
+
"text": "The following lemma characterizes the second moment of the stochastic residual feedback. ",
|
| 981 |
+
"bbox": [
|
| 982 |
+
174,
|
| 983 |
+
368,
|
| 984 |
+
769,
|
| 985 |
+
383
|
| 986 |
+
],
|
| 987 |
+
"page_idx": 6
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"type": "text",
|
| 991 |
+
"text": "Lemma 5.2. Assume $F ( x , \\xi ) \\in C ^ { 0 , 0 }$ with Lipschitz constant $L _ { 0 }$ for all $\\xi$ . Then, under the ZO update rule, we have that ",
|
| 992 |
+
"bbox": [
|
| 993 |
+
173,
|
| 994 |
+
386,
|
| 995 |
+
825,
|
| 996 |
+
414
|
| 997 |
+
],
|
| 998 |
+
"page_idx": 6
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "equation",
|
| 1002 |
+
"img_path": "images/cadc4c1f3d95a7267ac6c3e8ba1d3533c121773b88bb510dbd15d9f60d9f4dc8.jpg",
|
| 1003 |
+
"text": "$$\n\\begin{array} { r l r } { { \\operatorname { \\mathbb { E } } [ \\| \\widetilde { g } _ { t } ( x _ { t } ) \\| ^ { 2 } ] \\le \\frac { 4 d L _ { 0 } ^ { 2 } \\eta ^ { 2 } } { \\delta ^ { 2 } } \\mathbb { E } [ \\| \\widetilde { g } _ { t } ( x _ { t - 1 } ) \\| ^ { 2 } ] + D _ { t , \\xi } , } } \\\\ & { } & \\\\ & { } & { \\ \\cdot D _ { t , \\xi } : = 1 6 L _ { 0 } ^ { 2 } ( d + 4 ) ^ { 2 } + \\frac { 2 d } { \\delta ^ { 2 } } \\mathbb { E } [ \\big ( F _ { t } ( x _ { t - 1 } + \\delta u _ { t - 1 } , \\xi _ { t } ) - F _ { t - 1 } ( x _ { t - 1 } + \\delta u _ { t - 1 } , \\xi _ { t - 1 } ) \\big ) ^ { 2 } ] . } \\end{array}\n$$",
|
| 1004 |
+
"text_format": "latex",
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
212,
|
| 1007 |
+
411,
|
| 1008 |
+
784,
|
| 1009 |
+
469
|
| 1010 |
+
],
|
| 1011 |
+
"page_idx": 6
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"type": "text",
|
| 1015 |
+
"text": "Observe that the above second moment bound is very similar to that in Lemma 2.5, and the only difference is the perturbation term. In particular, the perturbation term $D _ { t , \\xi }$ can be further bounded by leveraging Assumption 5.1, and the resulting second moment bound is almost the same as that in eq. (8) for the deterministic case (simply replace $V _ { f }$ in eq. (8) by $V _ { f , \\xi }$ ). Therefore, the regret analysis of ZO with stochastic residual feedback is the same as that of ZO with residual feedback in the deterministic online setting. Consequently, ZO with stochastic residual feedback achieves almost the same regret bounds as those in Theorems 3.2 and 3.4, and one simply needs to replace $V _ { f }$ by $V _ { f , \\xi }$ . ",
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
173,
|
| 1018 |
+
474,
|
| 1019 |
+
826,
|
| 1020 |
+
574
|
| 1021 |
+
],
|
| 1022 |
+
"page_idx": 6
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"type": "text",
|
| 1026 |
+
"text": "For the nonconvex setting, we adopt the following assumption that generalizes Assumption 4.1. ",
|
| 1027 |
+
"bbox": [
|
| 1028 |
+
173,
|
| 1029 |
+
580,
|
| 1030 |
+
808,
|
| 1031 |
+
595
|
| 1032 |
+
],
|
| 1033 |
+
"page_idx": 6
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"type": "text",
|
| 1037 |
+
"text": "Assumption 5.3. There exists $W _ { T } , \\tilde { W } _ { T , \\xi } > 0$ such that the following two conditions hold for all $\\cdot$ $\\begin{array} { r } { \\sum _ { t = 1 } ^ { T } \\mathbb { E } [ f _ { \\delta , t } ( x _ { t } ) - f _ { \\delta , t - 1 } ( x _ { t } ) ] \\leq W _ { T } } \\end{array}$ , where the expectation is taken with respect to $\\cdot$ and the random smoothed objective functions $\\cdot$ , $f _ { \\delta , t }$ . ",
|
| 1038 |
+
"bbox": [
|
| 1039 |
+
173,
|
| 1040 |
+
599,
|
| 1041 |
+
813,
|
| 1042 |
+
617
|
| 1043 |
+
],
|
| 1044 |
+
"page_idx": 6
|
| 1045 |
+
},
|
| 1046 |
+
{
|
| 1047 |
+
"type": "text",
|
| 1048 |
+
"text": "",
|
| 1049 |
+
"bbox": [
|
| 1050 |
+
176,
|
| 1051 |
+
625,
|
| 1052 |
+
821,
|
| 1053 |
+
655
|
| 1054 |
+
],
|
| 1055 |
+
"page_idx": 6
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"type": "text",
|
| 1059 |
+
"text": "2. $\\begin{array} { r } { \\sum _ { t = 1 } ^ { T } \\mathbb { E } [ | F _ { t } ( x _ { t - 1 } + \\delta u _ { t - 1 } ; \\xi _ { t } ) - F _ { t - 1 } ( x _ { t - 1 } + \\delta u _ { t - 1 } ; \\xi _ { t - 1 } ) | ^ { 2 } ] \\leq \\tilde { W } _ { T , \\xi } } \\end{array}$ , where the expectation is taken with respect to $x _ { t - 1 }$ , the random vector $\\cdot$ and the random objective functions $F _ { t - 1 } ( \\cdot , \\xi _ { t - 1 } )$ , $F _ { t } ( \\cdot , \\xi _ { t } )$ . ",
|
| 1060 |
+
"bbox": [
|
| 1061 |
+
174,
|
| 1062 |
+
657,
|
| 1063 |
+
823,
|
| 1064 |
+
702
|
| 1065 |
+
],
|
| 1066 |
+
"page_idx": 6
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"type": "text",
|
| 1070 |
+
"text": "Then, following the same proof logic as that of Theorems 4.2 and 4.3, on can obtain similar regret bounds for ZO with stochastic residual feedback (simply replace $W _ { T } , \\widetilde { W } _ { T }$ in Theorems 4.2 and 4.3 by $W _ { T , \\xi } , \\widetilde { W } _ { T , \\xi }$ , respectively). ",
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
173,
|
| 1073 |
+
710,
|
| 1074 |
+
825,
|
| 1075 |
+
760
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 6
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "text",
|
| 1081 |
+
"text": "6 NUMERICAL EXPERIMENTS ",
|
| 1082 |
+
"text_level": 1,
|
| 1083 |
+
"bbox": [
|
| 1084 |
+
176,
|
| 1085 |
+
779,
|
| 1086 |
+
436,
|
| 1087 |
+
795
|
| 1088 |
+
],
|
| 1089 |
+
"page_idx": 6
|
| 1090 |
+
},
|
| 1091 |
+
{
|
| 1092 |
+
"type": "text",
|
| 1093 |
+
"text": "In this section, we compare the performance of ZO with one-point, two-point and residual feedback in solving two non-stationary reinforcement learning problems, i.e., LQR control and resource allocation, in which either the reward or transition functions are varying over episodes. ",
|
| 1094 |
+
"bbox": [
|
| 1095 |
+
173,
|
| 1096 |
+
809,
|
| 1097 |
+
825,
|
| 1098 |
+
853
|
| 1099 |
+
],
|
| 1100 |
+
"page_idx": 6
|
| 1101 |
+
},
|
| 1102 |
+
{
|
| 1103 |
+
"type": "text",
|
| 1104 |
+
"text": "6.1 NONSTATINOARY LQR CONTROL ",
|
| 1105 |
+
"text_level": 1,
|
| 1106 |
+
"bbox": [
|
| 1107 |
+
176,
|
| 1108 |
+
869,
|
| 1109 |
+
446,
|
| 1110 |
+
883
|
| 1111 |
+
],
|
| 1112 |
+
"page_idx": 6
|
| 1113 |
+
},
|
| 1114 |
+
{
|
| 1115 |
+
"type": "text",
|
| 1116 |
+
"text": "We consider an LQR problem with noisy system dynamics. The static version of this problem is considered in Fazel et al. (2018); Malik et al. (2018). Specifically, consider a system whose state ",
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
174,
|
| 1119 |
+
895,
|
| 1120 |
+
823,
|
| 1121 |
+
924
|
| 1122 |
+
],
|
| 1123 |
+
"page_idx": 6
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"type": "image",
|
| 1127 |
+
"img_path": "images/172f027f5c953de0a0f456e836adae097a4157c0967aa9cb40f9bca3e5050279.jpg",
|
| 1128 |
+
"image_caption": [
|
| 1129 |
+
"Figure 1: The regrets of applying the proposed residual one-point feedback (3) (blue), the two-point oracle in Bach & Perchet (2016) (orange) and the conventional one-point oracle in Gasnikov et al. (2017) (green) to online policy optimization for the nonstationary LQR problem. In (a), the regrets $\\textstyle \\sum _ { t = 0 } ^ { T } | V ( K _ { t } ) - V ( K ^ { * } ) |$ of three methods are presented. In (b), the variance of the gradient estimates given by three methods are presented. The two point method (orange) is infeasible to use in practice and is presented here to serve as the simulating benchmark. "
|
| 1130 |
+
],
|
| 1131 |
+
"image_footnote": [],
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
189,
|
| 1134 |
+
104,
|
| 1135 |
+
803,
|
| 1136 |
+
276
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 7
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "$x _ { k } \\in \\mathbb { R } ^ { n _ { x } }$ at step $k$ is subject to a transition function $x _ { k + 1 } = A _ { t } x _ { k } + B _ { t } u _ { k } + w _ { k }$ , where $u _ { k } \\in \\mathbb { R } ^ { n _ { u } }$ is the action at step $k$ , and $A _ { t } \\in \\mathbb R ^ { n _ { x } \\times n _ { x } }$ and $B _ { t } \\in \\mathbb { R } ^ { n _ { x } \\times n _ { u } }$ are dynamical matrices in episode $t$ These matrices are unknown and changing over episodes. The vector $w _ { k }$ is the noise on the state transition. Specifically, the entries of the dynamical matrices $\\cdot$ and $\\cdot$ at episode 0 are randomly generated from a Gaussian distribution $\\mathcal { N } ( 0 , 0 . 1 ^ { 2 } )$ . Then, we generate the time-varying dynamical matrices as $A _ { t + 1 } = A _ { t } + 0 . 0 1 M _ { t }$ and $-$ , where $M _ { t }$ and $N _ { t }$ are random matrices whose entries are uniformly sampled from [0,1]. Moreover, consider a state feedback policy $u _ { k } = K _ { t } x _ { k }$ , where $K _ { t } \\in \\mathbb { R } ^ { n _ { u } \\times n _ { x } }$ is the policy parameter that is fixed within episode $t$ . Within $K _ { t } ^ { * }$ so thatepisode the discounted accuis minimized, where d cost fuis the d ionunt $\\begin{array} { r } { V _ { t } ( K ) : = \\mathbb { E } \\big [ \\sum _ { k = 0 } ^ { H - 1 } \\gamma ^ { k } ( x _ { k } ^ { T } Q x _ { k } + u _ { k } ^ { T } R u _ { k } ) \\big ] } \\end{array}$ $t$ $\\gamma \\leq 1$ \n$H$ $K _ { t } ^ { * }$ that $V _ { t } ( K _ { t } ) - V _ { t } ( K _ { t } ^ { * } )$ is small in every episode. ",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
173,
|
| 1145 |
+
391,
|
| 1146 |
+
825,
|
| 1147 |
+
561
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 7
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "We apply the conventional one-point method in Gasnikov et al. (2017) and the proposed residualfeedback method (13) to solve the above non-stationary LQR problem. The performance of the twopoint method in Bach & Perchet (2016) is also presented as a benchmark, although it is impractical in non-stationary scenarios. This is because the two-point method in Bach & Perchet (2016) requires to evaluate value function $V _ { t }$ for two different policy functions at two consecutive episodes. However, evaluating the value function $V _ { t }$ for a given policy during episode $t$ requires to collect samples by executing this policy. Then, during the subsequent episode $t + 1$ , since the problem is non-stationary, the dynamic matrices change to $A _ { t + 1 } , B _ { t + 1 }$ and so does the value function $\\cdot$ . Therefore, it is not possible to evaluate the same value function $\\cdot$ at two different episodes and, as a result, the two-point method in Bach & Perchet (2016) is not applicable here. Each algorithm is run for 10 trials, and the stepsizes are optimized respectively. The accumulated regrets $\\begin{array} { r } { \\sum _ { t = 0 } ^ { T - 1 } | V ( K _ { t } ) - V ( K ^ { * } ) | } \\end{array}$ of these algorithms are presented in Figure 1(a). We observe that the residual feedback method achieves a much lower regret than the conventional one-point method and has a comparable performance to that of the impractical two-point method. Moreover, we present in Figure 1(b) the estimated variance of the gradient estimates of these three methods at the policy iterates over episodes. It can be seen that the variance of our proposed residual-feedback is close to the impractical two-point feedback and is much smaller than that of the conventional one-point feedback. This observation justifies our theoretical characterization of the second moment of the residual feedback. ",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
173,
|
| 1156 |
+
568,
|
| 1157 |
+
826,
|
| 1158 |
+
820
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 7
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "text",
|
| 1164 |
+
"text": "6.2 NONSTATIONARY RESOURCE ALLOCATION ",
|
| 1165 |
+
"text_level": 1,
|
| 1166 |
+
"bbox": [
|
| 1167 |
+
174,
|
| 1168 |
+
840,
|
| 1169 |
+
513,
|
| 1170 |
+
854
|
| 1171 |
+
],
|
| 1172 |
+
"page_idx": 7
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"type": "text",
|
| 1176 |
+
"text": "We consider a multi-stage resource allocation problem with time-varying sensitivity to the lack of resource supply. Specifically, 16 agents are located on a $4 \\times 4$ grid. During episode $t$ , at step $k$ , agent $i$ stores $m _ { i } ( k )$ amount of resources and has a demand for resources in the amount of $d _ { i } ( k )$ . Also, agent $i$ decides to send a fraction of resources $a _ { i j } ( k ) \\in [ 0 , 1 ]$ to its neighbors ",
|
| 1177 |
+
"bbox": [
|
| 1178 |
+
174,
|
| 1179 |
+
867,
|
| 1180 |
+
823,
|
| 1181 |
+
924
|
| 1182 |
+
],
|
| 1183 |
+
"page_idx": 7
|
| 1184 |
+
},
|
| 1185 |
+
{
|
| 1186 |
+
"type": "image",
|
| 1187 |
+
"img_path": "images/9f9d6c9a052d224f533ef42168b212bda74f45eaed2a072c49dfb0e8c4d29dce.jpg",
|
| 1188 |
+
"image_caption": [
|
| 1189 |
+
"Figure 2: The costs during each episode by applying the proposed residual one-point feedback (3) (blue), the two-point oracle in Bach & Perchet (2016) (orange) and the conventional one-point oracle in Gasnikov et al. (2017) (green) to solve the non-stationary resource allocation problem are presented. In (a), the varying cost $J _ { t } ( \\theta _ { t } )$ of three methods are presented. In (b), the variance of the gradient estimates at agent 1 given by three methods are presented. The two point method (orange) is infeasible to use in practice and is presented here to serve as the simulating benchmark. "
|
| 1190 |
+
],
|
| 1191 |
+
"image_footnote": [],
|
| 1192 |
+
"bbox": [
|
| 1193 |
+
197,
|
| 1194 |
+
109,
|
| 1195 |
+
797,
|
| 1196 |
+
281
|
| 1197 |
+
],
|
| 1198 |
+
"page_idx": 8
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"type": "text",
|
| 1202 |
+
"text": "$j \\in \\mathcal N _ { i }$ on the grid. The local amount of resources and demands of agent $i$ evolve as $m _ { i } ( k + 1 ) =$ $\\begin{array} { r } { m _ { i } ( k ) - \\sum _ { j \\in \\mathcal { N } _ { i } } a _ { i j } ( k ) m _ { i } ( k ) + \\sum _ { j \\in \\mathcal { N } _ { i } } a _ { j i } ( k ) m _ { j } ( k ) - d _ { i } ( k ) } \\end{array}$ and $d _ { i } ( \\bar { k } ) = \\psi _ { i } \\sin ( \\omega _ { i } k + \\dot { \\phi } _ { i } ) + \\dot { w } _ { i , k }$ , where $w _ { i , k }$ is the noise in the demand. At each step $k$ , agent $i$ receives a local cost $r _ { i , t } ( k )$ , such that $r _ { i , t } ( k ) = 0$ when $m _ { i } ( k ) \\geq 0$ and $r _ { i , t } ( k ) = \\zeta _ { t } m _ { i } ( k ) ^ { 2 }$ when $m _ { i } ( k ) < 0$ , where $\\zeta _ { t }$ represents the varying sensitivity of the agents to the lack of supply during episode $t$ . Let agent $i$ makes its decisions according to a parameterized policy function $\\pi _ { i , t } \\big ( o _ { i } ; \\theta _ { i , t } \\big ) : \\mathcal { O } _ { i } \\to [ 0 , 1 ] ^ { | \\mathcal { N } _ { i } | }$ , where $\\theta _ { i , t }$ is the parameter of the policy function $\\pi _ { i , t }$ at episode $t$ , $o _ { i } \\in { \\mathcal { O } } _ { i }$ denotes agent $i$ ’s local observation. Specifically, we let so that the accumul $o _ { i } ( k ) = [ m _ { i } ( k ) , d _ { i } ( k ) ] ^ { T }$ arying optimal policyduring each episode is $\\begin{array} { r } { \\left. J _ { t } ( \\theta _ { t } ) \\right. = \\sum _ { i = 1 } ^ { 1 6 } \\sum _ { k = 0 } ^ { H } \\gamma ^ { k } r _ { i , t } ( k ) } \\end{array}$ \n$\\theta _ { t } = [ \\dots , \\theta _ { i , t } , \\dots ]$ $H$ \nat each episode, and $\\gamma$ is the discount factor. ",
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
173,
|
| 1205 |
+
393,
|
| 1206 |
+
826,
|
| 1207 |
+
556
|
| 1208 |
+
],
|
| 1209 |
+
"page_idx": 8
|
| 1210 |
+
},
|
| 1211 |
+
{
|
| 1212 |
+
"type": "text",
|
| 1213 |
+
"text": "In Figure 2(a), we present the costs achieved during each episode $J _ { t } ( \\theta _ { t } )$ with 10 trials using ZO with the residual-feedback, one-point and the impractical two-point feedback. It can be seen that our proposed residual-feedback achieves a cost $J _ { t } ( \\theta _ { t } )$ that is as low as the cost achieved by the impractical two-point feedback in such a non-stationary environment. In particular, both residual and two-point feedback perform much better than the conventional one-point feedback. Moreover, Figure 2(b) compares the estimated variances of these feedback schemes, and one can observe that the variance of the residual feedback is comparable to that of the two-point feedback and is much smaller than that of the conventional one-point feedback. ",
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
174,
|
| 1216 |
+
563,
|
| 1217 |
+
825,
|
| 1218 |
+
674
|
| 1219 |
+
],
|
| 1220 |
+
"page_idx": 8
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"type": "text",
|
| 1224 |
+
"text": "7 CONCLUSION ",
|
| 1225 |
+
"text_level": 1,
|
| 1226 |
+
"bbox": [
|
| 1227 |
+
176,
|
| 1228 |
+
694,
|
| 1229 |
+
318,
|
| 1230 |
+
710
|
| 1231 |
+
],
|
| 1232 |
+
"page_idx": 8
|
| 1233 |
+
},
|
| 1234 |
+
{
|
| 1235 |
+
"type": "text",
|
| 1236 |
+
"text": "In this paper, we proposed a residual one-point feedback oracle for zeroth-order online learning problems, which estimates the gradient of the time-varying objective function using a single query of the function value at each time instant. We showed that the regret bound of the proposed residual feedback estimator can be much lower than that of the conventional one-point method in online convex optimization setting. In addition, we studied the gradient size regret bound of the residualfeedback estimator when it is applied to the online non-convex optimization problems. Numerical experiments on two non-stationary reinforcement learning problems were conducted and the proposed residual-feedback estimator was shown to significantly outperform the conventional one-point method in non-stationary online learning problems. ",
|
| 1237 |
+
"bbox": [
|
| 1238 |
+
174,
|
| 1239 |
+
726,
|
| 1240 |
+
825,
|
| 1241 |
+
852
|
| 1242 |
+
],
|
| 1243 |
+
"page_idx": 8
|
| 1244 |
+
},
|
| 1245 |
+
{
|
| 1246 |
+
"type": "text",
|
| 1247 |
+
"text": "REFERENCES ",
|
| 1248 |
+
"text_level": 1,
|
| 1249 |
+
"bbox": [
|
| 1250 |
+
176,
|
| 1251 |
+
872,
|
| 1252 |
+
285,
|
| 1253 |
+
887
|
| 1254 |
+
],
|
| 1255 |
+
"page_idx": 8
|
| 1256 |
+
},
|
| 1257 |
+
{
|
| 1258 |
+
"type": "text",
|
| 1259 |
+
"text": "Alekh Agarwal, Ofer Dekel, and Lin Xiao. Optimal algorithms for online convex optimization with multi-point bandit feedback. In COLT, pp. 28–40. Citeseer, 2010. ",
|
| 1260 |
+
"bbox": [
|
| 1261 |
+
176,
|
| 1262 |
+
895,
|
| 1263 |
+
823,
|
| 1264 |
+
924
|
| 1265 |
+
],
|
| 1266 |
+
"page_idx": 8
|
| 1267 |
+
},
|
| 1268 |
+
{
|
| 1269 |
+
"type": "text",
|
| 1270 |
+
"text": "Alekh Agarwal, Dean P Foster, Daniel J Hsu, Sham M Kakade, and Alexander Rakhlin. Stochastic convex optimization with bandit feedback. In Advances in Neural Information Processing Systems, pp. 1035–1043, 2011. ",
|
| 1271 |
+
"bbox": [
|
| 1272 |
+
174,
|
| 1273 |
+
103,
|
| 1274 |
+
823,
|
| 1275 |
+
146
|
| 1276 |
+
],
|
| 1277 |
+
"page_idx": 9
|
| 1278 |
+
},
|
| 1279 |
+
{
|
| 1280 |
+
"type": "text",
|
| 1281 |
+
"text": "Francis Bach and Vianney Perchet. Highly-smooth zero-th order online optimization. In Conference on Learning Theory, pp. 257–283, 2016. ",
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
174,
|
| 1284 |
+
156,
|
| 1285 |
+
821,
|
| 1286 |
+
186
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 9
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "text",
|
| 1292 |
+
"text": "Krishnakumar Balasubramanian and Saeed Ghadimi. Zeroth-order (non)-convex stochastic optimization via conditional gradient and gradient updates. In Advances in Neural Information Processing Systems, pp. 3455–3464, 2018. ",
|
| 1293 |
+
"bbox": [
|
| 1294 |
+
173,
|
| 1295 |
+
196,
|
| 1296 |
+
826,
|
| 1297 |
+
239
|
| 1298 |
+
],
|
| 1299 |
+
"page_idx": 9
|
| 1300 |
+
},
|
| 1301 |
+
{
|
| 1302 |
+
"type": "text",
|
| 1303 |
+
"text": "Olivier Bilenne, Panayotis Mertikopoulos, and Elena-Veronica Belmega. Fast optimization with zeroth-order feedback in distributed, multi-user mimo systems. IEEE Transactions on Signal Processing, 2020. ",
|
| 1304 |
+
"bbox": [
|
| 1305 |
+
173,
|
| 1306 |
+
251,
|
| 1307 |
+
825,
|
| 1308 |
+
292
|
| 1309 |
+
],
|
| 1310 |
+
"page_idx": 9
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"type": "text",
|
| 1314 |
+
"text": "Sébastien Bubeck, Nicolo Cesa-Bianchi, et al. Regret analysis of stochastic and nonstochastic multi-armed bandit problems. Foundations and Trends $\\textsuperscript { \\textregistered }$ in Machine Learning, 5(1):1–122, 2012. ",
|
| 1315 |
+
"bbox": [
|
| 1316 |
+
171,
|
| 1317 |
+
304,
|
| 1318 |
+
825,
|
| 1319 |
+
334
|
| 1320 |
+
],
|
| 1321 |
+
"page_idx": 9
|
| 1322 |
+
},
|
| 1323 |
+
{
|
| 1324 |
+
"type": "text",
|
| 1325 |
+
"text": "Sébastien Bubeck, Yin Tat Lee, and Ronen Eldan. Kernel-based methods for bandit convex optimization. In Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, pp. 72–85, 2017. ",
|
| 1326 |
+
"bbox": [
|
| 1327 |
+
174,
|
| 1328 |
+
343,
|
| 1329 |
+
826,
|
| 1330 |
+
387
|
| 1331 |
+
],
|
| 1332 |
+
"page_idx": 9
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"type": "text",
|
| 1336 |
+
"text": "Pin-Yu Chen, Huan Zhang, Yash Sharma, Jinfeng Yi, and Cho-Jui Hsieh. Zoo: Zeroth order optimization based black-box attacks to deep neural networks without training substitute models. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pp. 15–26, 2017. ",
|
| 1337 |
+
"bbox": [
|
| 1338 |
+
173,
|
| 1339 |
+
397,
|
| 1340 |
+
826,
|
| 1341 |
+
440
|
| 1342 |
+
],
|
| 1343 |
+
"page_idx": 9
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"type": "text",
|
| 1347 |
+
"text": "Ofer Dekel, Ronen Eldan, and Tomer Koren. Bandit smooth convex optimization: Improving the bias-variance tradeoff. In Advances in Neural Information Processing Systems, pp. 2926–2934, 2015. ",
|
| 1348 |
+
"bbox": [
|
| 1349 |
+
174,
|
| 1350 |
+
450,
|
| 1351 |
+
823,
|
| 1352 |
+
494
|
| 1353 |
+
],
|
| 1354 |
+
"page_idx": 9
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"type": "text",
|
| 1358 |
+
"text": "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. ",
|
| 1359 |
+
"bbox": [
|
| 1360 |
+
174,
|
| 1361 |
+
505,
|
| 1362 |
+
823,
|
| 1363 |
+
547
|
| 1364 |
+
],
|
| 1365 |
+
"page_idx": 9
|
| 1366 |
+
},
|
| 1367 |
+
{
|
| 1368 |
+
"type": "text",
|
| 1369 |
+
"text": "Maryam Fazel, Rong Ge, Sham Kakade, and Mehran Mesbahi. Global convergence of policy gradient methods for the linear quadratic regulator. In Proceedings of the 35th International Conference on Machine Learning, volume 80, 2018. ",
|
| 1370 |
+
"bbox": [
|
| 1371 |
+
173,
|
| 1372 |
+
559,
|
| 1373 |
+
825,
|
| 1374 |
+
602
|
| 1375 |
+
],
|
| 1376 |
+
"page_idx": 9
|
| 1377 |
+
},
|
| 1378 |
+
{
|
| 1379 |
+
"type": "text",
|
| 1380 |
+
"text": "Abraham D Flaxman, Adam Tauman Kalai, and H Brendan McMahan. Online convex optimization in the bandit setting: gradient descent without a gradient. In Proceedings of the sixteenth annual ACM-SIAM symposium on Discrete algorithms, pp. 385–394. Society for Industrial and Applied Mathematics, 2005. ",
|
| 1381 |
+
"bbox": [
|
| 1382 |
+
174,
|
| 1383 |
+
612,
|
| 1384 |
+
825,
|
| 1385 |
+
669
|
| 1386 |
+
],
|
| 1387 |
+
"page_idx": 9
|
| 1388 |
+
},
|
| 1389 |
+
{
|
| 1390 |
+
"type": "text",
|
| 1391 |
+
"text": "Xiand Gao, Xiaobo Li, and Shuzhong Zhang. Online learning with non-convex losses and nonstationary regret. In International Conference on Artificial Intelligence and Statistics, pp. 235–243, 2018. ",
|
| 1392 |
+
"bbox": [
|
| 1393 |
+
173,
|
| 1394 |
+
679,
|
| 1395 |
+
825,
|
| 1396 |
+
723
|
| 1397 |
+
],
|
| 1398 |
+
"page_idx": 9
|
| 1399 |
+
},
|
| 1400 |
+
{
|
| 1401 |
+
"type": "text",
|
| 1402 |
+
"text": "Alexander V Gasnikov, Ekaterina A Krymova, Anastasia A Lagunovskaya, Ilnura N Usmanova, and Fedor A Fedorenko. Stochastic online optimization. single-point and multi-point non-linear multi-armed bandits. convex and strongly-convex case. Automation and remote control, 78(2): 224–234, 2017. ",
|
| 1403 |
+
"bbox": [
|
| 1404 |
+
174,
|
| 1405 |
+
733,
|
| 1406 |
+
826,
|
| 1407 |
+
790
|
| 1408 |
+
],
|
| 1409 |
+
"page_idx": 9
|
| 1410 |
+
},
|
| 1411 |
+
{
|
| 1412 |
+
"type": "text",
|
| 1413 |
+
"text": "Saeed Ghadimi and Guanghui Lan. Stochastic first-and zeroth-order methods for nonconvex stochastic programming. SIAM Journal on Optimization, 23(4):2341–2368, 2013. ",
|
| 1414 |
+
"bbox": [
|
| 1415 |
+
169,
|
| 1416 |
+
801,
|
| 1417 |
+
823,
|
| 1418 |
+
830
|
| 1419 |
+
],
|
| 1420 |
+
"page_idx": 9
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"type": "text",
|
| 1424 |
+
"text": "Saeed Ghadimi, Guanghui Lan, and Hongchao Zhang. Mini-batch stochastic approximation methods for nonconvex stochastic composite optimization. Mathematical Programming, 155(1-2):267–305, 2016. ",
|
| 1425 |
+
"bbox": [
|
| 1426 |
+
174,
|
| 1427 |
+
840,
|
| 1428 |
+
825,
|
| 1429 |
+
883
|
| 1430 |
+
],
|
| 1431 |
+
"page_idx": 9
|
| 1432 |
+
},
|
| 1433 |
+
{
|
| 1434 |
+
"type": "text",
|
| 1435 |
+
"text": "Eduard Gorbunov, Pavel Dvurechensky, and Alexander Gasnikov. An accelerated method for derivative-free smooth stochastic convex optimization. arXiv preprint arXiv:1802.09022, 2018. ",
|
| 1436 |
+
"bbox": [
|
| 1437 |
+
174,
|
| 1438 |
+
895,
|
| 1439 |
+
823,
|
| 1440 |
+
924
|
| 1441 |
+
],
|
| 1442 |
+
"page_idx": 9
|
| 1443 |
+
},
|
| 1444 |
+
{
|
| 1445 |
+
"type": "text",
|
| 1446 |
+
"text": "Davood Hajinezhad and Michael M Zavlanos. Gradient-free multi-agent nonconvex nonsmooth optimization. In 2018 IEEE Conference on Decision and Control (CDC), pp. 4939–4944. IEEE, 2018. ",
|
| 1447 |
+
"bbox": [
|
| 1448 |
+
176,
|
| 1449 |
+
103,
|
| 1450 |
+
825,
|
| 1451 |
+
146
|
| 1452 |
+
],
|
| 1453 |
+
"page_idx": 10
|
| 1454 |
+
},
|
| 1455 |
+
{
|
| 1456 |
+
"type": "text",
|
| 1457 |
+
"text": "Elad Hazan and Kfir Levy. Bandit convex optimization: Towards tight bounds. In Advances in Neural Information Processing Systems, pp. 784–792, 2014. ",
|
| 1458 |
+
"bbox": [
|
| 1459 |
+
173,
|
| 1460 |
+
155,
|
| 1461 |
+
825,
|
| 1462 |
+
184
|
| 1463 |
+
],
|
| 1464 |
+
"page_idx": 10
|
| 1465 |
+
},
|
| 1466 |
+
{
|
| 1467 |
+
"type": "text",
|
| 1468 |
+
"text": "Elad Hazan and Yuanzhi Li. An optimal algorithm for bandit convex optimization. arXiv preprint arXiv:1603.04350, 2016. ",
|
| 1469 |
+
"bbox": [
|
| 1470 |
+
174,
|
| 1471 |
+
193,
|
| 1472 |
+
823,
|
| 1473 |
+
222
|
| 1474 |
+
],
|
| 1475 |
+
"page_idx": 10
|
| 1476 |
+
},
|
| 1477 |
+
{
|
| 1478 |
+
"type": "text",
|
| 1479 |
+
"text": "Elad Hazan, Kfir Yehuda Levy, and Shai Shalev-Shwartz. On graduated optimization for stochastic non-convex problems. In International conference on machine learning, pp. 1833–1841, 2016. ",
|
| 1480 |
+
"bbox": [
|
| 1481 |
+
174,
|
| 1482 |
+
229,
|
| 1483 |
+
823,
|
| 1484 |
+
260
|
| 1485 |
+
],
|
| 1486 |
+
"page_idx": 10
|
| 1487 |
+
},
|
| 1488 |
+
{
|
| 1489 |
+
"type": "text",
|
| 1490 |
+
"text": "Kaiyi Ji, Zhe Wang, Yi Zhou, and Yingbin Liang. Improved zeroth-order variance reduced algorithms and analysis for nonconvex optimization. arXiv preprint arXiv:1910.12166, 2019. ",
|
| 1491 |
+
"bbox": [
|
| 1492 |
+
173,
|
| 1493 |
+
267,
|
| 1494 |
+
823,
|
| 1495 |
+
297
|
| 1496 |
+
],
|
| 1497 |
+
"page_idx": 10
|
| 1498 |
+
},
|
| 1499 |
+
{
|
| 1500 |
+
"type": "text",
|
| 1501 |
+
"text": "Dhruv Malik, Ashwin Pananjady, Kush Bhatia, Koulik Khamaru, Peter L Bartlett, and Martin J Wainwright. Derivative-free methods for policy optimization: Guarantees for linear quadratic systems. arXiv preprint arXiv:1812.08305, 2018. ",
|
| 1502 |
+
"bbox": [
|
| 1503 |
+
176,
|
| 1504 |
+
305,
|
| 1505 |
+
821,
|
| 1506 |
+
349
|
| 1507 |
+
],
|
| 1508 |
+
"page_idx": 10
|
| 1509 |
+
},
|
| 1510 |
+
{
|
| 1511 |
+
"type": "text",
|
| 1512 |
+
"text": "Yurii Nesterov. Introductory lectures on convex optimization: A basic course, volume 87. Springer Science & Business Media, 2013. ",
|
| 1513 |
+
"bbox": [
|
| 1514 |
+
174,
|
| 1515 |
+
357,
|
| 1516 |
+
823,
|
| 1517 |
+
387
|
| 1518 |
+
],
|
| 1519 |
+
"page_idx": 10
|
| 1520 |
+
},
|
| 1521 |
+
{
|
| 1522 |
+
"type": "text",
|
| 1523 |
+
"text": "Yurii Nesterov and Vladimir Spokoiny. Random gradient-free minimization of convex functions. Foundations of Computational Mathematics, 17(2):527–566, 2017. ",
|
| 1524 |
+
"bbox": [
|
| 1525 |
+
174,
|
| 1526 |
+
395,
|
| 1527 |
+
823,
|
| 1528 |
+
424
|
| 1529 |
+
],
|
| 1530 |
+
"page_idx": 10
|
| 1531 |
+
},
|
| 1532 |
+
{
|
| 1533 |
+
"type": "text",
|
| 1534 |
+
"text": "Abhishek Roy, Krishnakumar Balasubramanian, Saeed Ghadimi, and Prasant Mohapatra. Multipoint bandit algorithms for nonstationary online nonconvex optimization. arXiv preprint arXiv:1907.13616, 2019. ",
|
| 1535 |
+
"bbox": [
|
| 1536 |
+
174,
|
| 1537 |
+
433,
|
| 1538 |
+
826,
|
| 1539 |
+
476
|
| 1540 |
+
],
|
| 1541 |
+
"page_idx": 10
|
| 1542 |
+
},
|
| 1543 |
+
{
|
| 1544 |
+
"type": "text",
|
| 1545 |
+
"text": "Ankan Saha and Ambuj Tewari. Improved regret guarantees for online smooth convex optimization with bandit feedback. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, pp. 636–642, 2011. ",
|
| 1546 |
+
"bbox": [
|
| 1547 |
+
174,
|
| 1548 |
+
484,
|
| 1549 |
+
825,
|
| 1550 |
+
527
|
| 1551 |
+
],
|
| 1552 |
+
"page_idx": 10
|
| 1553 |
+
},
|
| 1554 |
+
{
|
| 1555 |
+
"type": "text",
|
| 1556 |
+
"text": "Yujie Tang and Na Li. Distributed zero-order algorithms for nonconvex multi-agent optimization. In 2019 57th Annual Allerton Conference on Communication, Control, and Computing (Allerton), pp. 781–786. IEEE, 2019. ",
|
| 1557 |
+
"bbox": [
|
| 1558 |
+
174,
|
| 1559 |
+
535,
|
| 1560 |
+
826,
|
| 1561 |
+
579
|
| 1562 |
+
],
|
| 1563 |
+
"page_idx": 10
|
| 1564 |
+
},
|
| 1565 |
+
{
|
| 1566 |
+
"type": "text",
|
| 1567 |
+
"text": "Yining Wang, Simon Du, Sivaraman Balakrishnan, and Aarti Singh. Stochastic zeroth-order optimization in high dimensions. In International Conference on Artificial Intelligence and Statistics, pp. 1356–1365, 2018. ",
|
| 1568 |
+
"bbox": [
|
| 1569 |
+
173,
|
| 1570 |
+
587,
|
| 1571 |
+
825,
|
| 1572 |
+
630
|
| 1573 |
+
],
|
| 1574 |
+
"page_idx": 10
|
| 1575 |
+
},
|
| 1576 |
+
{
|
| 1577 |
+
"type": "text",
|
| 1578 |
+
"text": "Lijun Zhang, Tianbao Yang, Rong Jin, and Zhi-Hua Zhou. Online bandit learning for a special class of non-convex losses. In AAAI, pp. 3158–3164, 2015. ",
|
| 1579 |
+
"bbox": [
|
| 1580 |
+
171,
|
| 1581 |
+
638,
|
| 1582 |
+
823,
|
| 1583 |
+
669
|
| 1584 |
+
],
|
| 1585 |
+
"page_idx": 10
|
| 1586 |
+
}
|
| 1587 |
+
]
|
parse/train/T3kmOP_cMFB/T3kmOP_cMFB_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/T3kmOP_cMFB/T3kmOP_cMFB_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkl3m1BFDB/rkl3m1BFDB.md
ADDED
|
@@ -0,0 +1,363 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# EXPLORATORY NOT EXPLANATORY: COUNTERFACTUAL ANALYSIS OF SALIENCY MAPS FOR DEEP REINFORCEMENT LEARNING
|
| 2 |
+
|
| 3 |
+
Akanksha Atrey, Kaleigh Clary & David Jensen
|
| 4 |
+
|
| 5 |
+
University of Massachusetts Amherst {aatrey,kclary,jensen}@cs.umass.edu
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
Saliency maps are frequently used to support explanations of the behavior of deep reinforcement learning (RL) agents. However, a review of how saliency maps are used in practice indicates that the derived explanations are often unfalsifiable and can be highly subjective. We introduce an empirical approach grounded in counterfactual reasoning to test the hypotheses generated from saliency maps and assess the degree to which they correspond to the semantics of RL environments. We use Atari games, a common benchmark for deep RL, to evaluate three types of saliency maps. Our results show the extent to which existing claims about Atari games can be evaluated and suggest that saliency maps are best viewed as an exploratory tool rather than an explanatory tool.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
Saliency map methods are a popular visualization technique that produce heatmap-like output highlighting the importance of different regions of some visual input. They are frequently used to explain how deep networks classify images in computer vision applications (Simonyan et al., 2014; Zeiler & Fergus, 2014; Springenberg et al., 2015; Ribeiro et al., 2016; Dabkowski & Gal, 2017; Fong & Vedaldi, 2017; Selvaraju et al., 2017; Shrikumar et al., 2017; Smilkov et al., 2017; Zhang et al., 2018) and to explain how agents choose actions in reinforcement learning (RL) applications (Bogdanovic et al., 2015; Wang et al., 2016; Zahavy et al., 2016; Greydanus et al., 2017; Iyer et al., 2018; Sundar, 2018; Yang et al., 2018; Annasamy & Sycara, 2019).
|
| 14 |
+
|
| 15 |
+
Saliency methods in computer vision and reinforcement learning use similar procedures to generate these maps. However, the temporal and interactive nature of RL systems presents a unique set of opportunities and challenges. Deep models in reinforcement learning select sequential actions whose effects can interact over long time periods. This contrasts strongly with visual classification tasks, in which deep models merely map from images to labels. For RL systems, saliency maps are often used to assess an agent’s internal representations and behavior over multiple frames in the environment, rather than to assess the importance of specific pixels in classifying images.
|
| 16 |
+
|
| 17 |
+
Despite their common use to explain agent behavior, it is unclear whether saliency maps provide useful explanations of the behavior of deep RL agents. Some prior work has evaluated the applicability of saliency maps for explaining the behavior of image classifiers (Samek et al., 2017; Adebayo et al., 2018; Kindermans et al., 2019), but there is not a corresponding literature evaluating the applicability of saliency maps for explaining RL agent behavior.
|
| 18 |
+
|
| 19 |
+
In this work, we develop a methodology grounded in counterfactual reasoning to empirically evaluate the explanations generated using saliency maps in deep RL. Specifically, we:
|
| 20 |
+
|
| 21 |
+
C1 Survey the ways in which saliency maps have been used as evidence in explanations of deep RL agents.
|
| 22 |
+
C2 Describe a new interventional method to evaluate the inferences made from saliency maps.
|
| 23 |
+
C3 Experimentally evaluate how well the pixel-level inferences of saliency maps correspond to the semantic-level inferences of humans.
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
Figure 1: Three examples of perturbation saliency maps generated from the same model on different inputs: (a) a frame taken from an episode of agent play in Breakout, (b) the same frame with the brick pattern reflected across the vertical axis, and (c) the original frame with the ball, paddle and brick pattern reflected across the vertical axis. The blue and red regions represent their importance in action selection and reward estimation from the current state, respectively. The pattern and intensity of saliency around the tunnel is not symmetric in either reflection intervention, indicating that a popular hypothesis (agents learn to aim at tunnels) does not hold for all possible tunnels.
|
| 27 |
+
|
| 28 |
+
# 2 INTERPRETING SALIENCY MAPS IN DEEP RL
|
| 29 |
+
|
| 30 |
+
Consider the saliency maps generated from a deep RL agent trained to play the Atari game Breakout. The goal of Breakout is to use the paddle to keep the ball in play so it hits bricks, eliminating them from the screen. Figure 1a shows a sample frame with its corresponding saliency. Note the high salience on the missing section of bricks (“tunnel”) in Figure 1a.
|
| 31 |
+
|
| 32 |
+
Creating a tunnel to target bricks at the top layers is one of the most high-profile examples of agent behavior being explained according to semantic, human-understandable concepts (Mnih et al., 2015). Given the intensity of saliency on the tunnel in 1a, it may seem reasonable to infer that this saliency map provides evidence that the agent has learned to aim at tunnels. If this is the case, moving the horizontal position of the tunnel should lead to similar saliency patterns on the new tunnel. However, Figures 1b and 1c show that the salience pattern is not preserved. Neither the presence of the tunnel, nor the relative positioning of the ball, paddle, and tunnel, are responsible for the intensity of the saliency observed in Figure 1a.
|
| 33 |
+
|
| 34 |
+
# 2.1 SALIENCY MAPS AS INTERVENTIONS
|
| 35 |
+
|
| 36 |
+
Examining how some of the technical details of reinforcement learning interact with saliency maps can help explain both the potential utility and the potential pitfalls of interpreting saliency maps. RL methods enable agents to learn how to act effectively within an environment by repeated interaction with that environment. Certain states in the environment give the agent positive or negative reward. The agent learns a policy, a mapping between states and actions according to these reward signals. The goal is to learn a policy that maximizes the discounted sum of rewards received while acting in the environment (Sutton & Barto, 1998). Deep reinforcement learning uses deep neural networks to represent policies. These models enable interaction with environments requiring high-dimensional state inputs (e.g., Atari games).
|
| 37 |
+
|
| 38 |
+
Consider the graphical model in Figure 2a representing the deep RL system for a vision-based game environment. Saliency maps are produced by performing some kind of intervention $M$ on this system and calculating the difference in logits produced by the original and modified images. The interventions used to calculate saliency for deep RL are performed at the pixel level (red node and arrow in Figure 2a). These interventions change the conditional probability distribution of “Pixels” by giving it another parent (Pearl, 2000).
|
| 39 |
+
|
| 40 |
+
Functionally, this can be accomplished through a variety of means, including changing the color of the pixel (Simonyan et al., 2014), adding a gray mask (Zeiler & Fergus, 2014), blurring a small region (Greydanus et al., 2017), or masking objects with the background color (Iyer et al., 2018). The interventions $M$ are used to simulate the effect of the absence of the pixel(s) on the network’s output. Note however that these interventions change the image in a way that is inconsistent with the generative process $F$ . They are not “naturalistic” interventions. This type of intervention produces images for which the learned network function may not be well-defined.
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
Figure 2: (a) Causal graphical model of the relationships between an RL agent (yellow plate) and an image-based environment (blue plate). The environment maintains some (usually latent) game state. Some function $F$ produces a high-dimensional pixel representation of game state (“Pixels”). The learned network takes this pixel image and produces logits used to select an action. Temporally extended sequences of this action selection procedure result in observed agent behavior.“M” represents interventions made by saliency maps. Such interventions are not naturalistic and are inconsistent with the generative process F; (b) conceptual diagram of how a human observer infers explanations. Hypotheses (“Claims”) about the semantic features identified by the learned policy are proposed by reasoning backwards about what representation, often latent, might jointly produce the observed saliency pattern and agent behavior.
|
| 44 |
+
|
| 45 |
+
# 2.2 EXPLANATIONS FROM SALIENCY MAPS
|
| 46 |
+
|
| 47 |
+
To form explanations of agent behavior, human observers combine information from saliency maps, agent behavior, and semantic concepts. Figure 2b shows a system diagram of how these components interact. We note that semantic concepts are often identified visually from the pixel output as the game state is typically latent.
|
| 48 |
+
|
| 49 |
+
Counterfactual reasoning has been identified as a particularly effective way to present explanations of the decision boundaries of deep models (Mittelstadt et al., 2019). Humans use counterfactuals to reason about the enabling conditions of particular outcomes, as well as to identify situations where the outcome would have occurred even in the absence of some action or condition (de Graaf & Malle, 2017; Byrne, 2019). Saliency maps provide a kind of pixel-level counterfactual, but if the goal is to explain agent behavior according to semantic concepts, interventions at the pixel level seem unlikely to be sufficient.
|
| 50 |
+
|
| 51 |
+
Since many semantic concepts may map to the same set of pixels, it may be difficult to identify the functional relationship between changes in pixels and changes in network output according to semantic concepts or game state (Chalupka et al., 2015). Researchers may be interpreting differences in network outputs as evidence of differences in semantic concepts. However, changes in pixels do not guarantee changes in semantic concepts or game state.
|
| 52 |
+
|
| 53 |
+
In terms of changes to pixels, semantic concepts, and game state, we distinguish among three classes of interventions: distortion, semantics-preserving, and fat-hand (see Table 1). Semantics-preserving and fat-hand interventions are defined with respect to a specific set of semantic concepts. Fat-hand interventions change game state in such a way that the semantic concepts of interest are also altered.
|
| 54 |
+
|
| 55 |
+
The pixel-level manipulations used to produce saliency maps primarily result in distortion interventions, though some saliency methods (e.g., object-based) may conceivably produce semanticspreserving or fat-hand interventions as well. Pixel-level interventions are not guaranteed to produce changes in semantic concepts, so counterfactual evaluations that apply semantics-preserving interventions may be a more appropriate approach for precisely testing hypotheses of behavior.
|
| 56 |
+
|
| 57 |
+
<table><tr><td rowspan="2">Intervention</td><td colspan="3">Change in...</td><td rowspan="2">Examples</td></tr><tr><td>pixels</td><td>game state</td><td>semantic concepts</td></tr><tr><td>Distortion</td><td>vv√</td><td>X</td><td>×</td><td>Adversarial ML (Szegedy et al., 2014)</td></tr><tr><td>Semantics-preserving</td><td></td><td>√</td><td>×</td><td>Reflection across a line of symmetry</td></tr><tr><td>Fat-hand</td><td></td><td>√</td><td>√</td><td>Teleporting the agent to a new position</td></tr></table>
|
| 58 |
+
|
| 59 |
+
Table 1: Categories of interventions on images. Distortion interventions change pixels without changing game state or semantic concepts. Pixel perturbations in adversarial ML add adversarial noise to images to change the output of the network without making human-perceptible changes in the image. Semantics-preserving interventions are manipulations of game state that result in an image that preserves some semantic concept of interest. Reflections across lines of symmetry typically alter aspects of game state, but do not meaningfully change any semantic information about the scene. “Fat-hand” interventions are manipulations intended to measure the effect of some specific treatment, but which unintentionally alter other relevant aspects of the system. The term is drawn from the literature on causal modeling (Scheines, 2005).
|
| 60 |
+
|
| 61 |
+
# 3 SURVEY OF USAGE OF SALIENCY MAPS IN DEEP RL LITERATURE
|
| 62 |
+
|
| 63 |
+
To assess how saliency maps are typically used to make inferences regarding agent behavior, we surveyed recent conference papers in deep RL. We focused our pool of papers on those that use saliency maps to generate explanations or make claims regarding agent behavior. Our search criteria consisted of examining papers that cited work that first described any of the following four types of saliency maps:
|
| 64 |
+
|
| 65 |
+
Jacobian Saliency. Wang et al. (2016) extend gradient-based saliency maps to deep RL by computing the Jacobian of the output logits with respect to a stack of input images.
|
| 66 |
+
|
| 67 |
+
Perturbation Saliency. Greydanus et al. (2017) generate saliency maps by perturbing the original input image using a Gaussian blur of the image and measure changes in policy from removing information from a region.
|
| 68 |
+
|
| 69 |
+
Object Saliency. Iyer et al. (2018) use template matching, a common computer vision technique (Brunelli, 2009), to detect (template) objects within an input image and measure salience through changes in Q-values for masked and unmasked objects.
|
| 70 |
+
|
| 71 |
+
Attention Saliency. Most recently, attention-based saliency mapping methods have been proposed to generate interpretable saliency maps (Mott et al., 2019; Nikulin et al., 2019).
|
| 72 |
+
|
| 73 |
+
From a set of 90 papers, we found 46 claims drawn from 11 papers that cited and used saliency maps as evidence in their explanations of agent behavior. The full set of claims are given in Appendix C.
|
| 74 |
+
|
| 75 |
+
# 3.1 SURVEY RESULTS
|
| 76 |
+
|
| 77 |
+
We found three categories of saliency map usage, summarized in Table 2. First, all claims interpret salient areas as a proxy for agent focus. For example, a claim about a Breakout agent notes that the network is focusing on the paddle and little else (Greydanus et al., 2017).
|
| 78 |
+
|
| 79 |
+
<table><tr><td></td><td>Discuss Focus</td><td>Generate Explanation</td><td>Evaluate Explanation</td></tr><tr><td> Jacobian</td><td>21</td><td>19</td><td>0</td></tr><tr><td>Perturbation</td><td>11</td><td>9</td><td>1</td></tr><tr><td>Object</td><td>5</td><td>4</td><td>2</td></tr><tr><td>Attention</td><td>9</td><td>8</td><td>0</td></tr><tr><td>Total Claims</td><td>46</td><td>40</td><td>3</td></tr></table>
|
| 80 |
+
|
| 81 |
+
Second, $87 \%$ of the claims in our survey propose hypotheses about the features of the learned policy by reasoning backwards about what representation might jointly produce the observed saliency pattern and agent
|
| 82 |
+
|
| 83 |
+
Table 2: Summary of the survey on usage of saliency maps in deep RL. Columns represent categories of saliency map usage, and rows represent categories of saliency map methods, with each cell denoting the number of claims in those categories. Individual claims may be counted in multiple columns.
|
| 84 |
+
|
| 85 |
+
behavior. These types of claims either develop an a priori explanation of behavior and evaluate it using saliency, or they propose an ad hoc explanation after observing saliency to reason about how the agent is using salient areas. One a priori claim notes that the displayed score is the only differing factor between two states and evaluates that claim by noting that saliency focuses on these pixels (Zahavy et al., 2016). An ad hoc claim about a racing game notes that the agent is recognizing a time-of-day cue from the background color and acting to prepare for a new race (Yang et al., 2018).
|
| 86 |
+
|
| 87 |
+
Finally, only $7 \%$ (3 out of 46) of the claims drawn from saliency maps are accompanied by additional or more direct experimental evidence. One of these attempts to corroborate the interpreted saliency behavior by obtaining additional saliency samples from multiple runs of the game. The other two attempt to manipulate semantics in the pixel input to assess the agent’s response by, for example, adding an additional object to verify a hypothesis about memorization (Annasamy & Sycara, 2019).
|
| 88 |
+
|
| 89 |
+
# 3.2 COMMON PITFALLS IN CURRENT USAGE
|
| 90 |
+
|
| 91 |
+
In the course of the survey, we also observed several more qualitative characteristics of how saliency maps are routinely used.
|
| 92 |
+
|
| 93 |
+
Subjectivity. Recent critiques of machine learning have already noted a worrying tendency to conflate speculation and explanation (Lipton & Steinhardt, 2018). Saliency methods are not designed to formalize an abstract human-understandable concept such as “aiming” in Breakout, and they do not provide a means to quantitatively compare semantically meaningful consequences of agent behavior. This leads to subjectivity in the conclusions drawn from saliency maps.
|
| 94 |
+
|
| 95 |
+
Unfalsiability. One hallmark of a scientific hypothesis or claim is falsifiability (Popper, 1959). If a claim is false, its falsehood should be identifiable from some conceivable experiment or observation. One of the most disconcerting practices identified in the survey is the presentation of unfalsifiable interpretations of saliency map patterns. An example: “A diver is noticed in the saliency map but misunderstood as an enemy and being shot at” (see Appendix C). It is unclear how we might falsify an abstract concept such as “misunderstanding”.
|
| 96 |
+
|
| 97 |
+
Cognitive Biases. Current theory and evidence from cognitive science implies that humans learn complex processes, such as video games, by categorizing objects into abstract classes and by inferring causal relationships among instances of those classes (Tenenbaum & Niyogi, 2003; Dubey et al., 2018). Our survey suggests that researchers infer that: (1) salient regions map to learned representations of semantic concepts (e.g., ball, paddle), and (2) the relationships among the salient regions map to high-level behaviors (e.g., tunnel-building, aiming). Researchers’ expectations impose a strong bias on both the existence and nature of these mappings.
|
| 98 |
+
|
| 99 |
+
# 4 METHODOLOGY
|
| 100 |
+
|
| 101 |
+
Our survey indicates that many researchers use saliency maps as an explanatory tool to infer the representations and processes behind an agent’s behavior. However, the extent to which such inferences are valid has not been empirically evaluated under controlled conditions.
|
| 102 |
+
|
| 103 |
+
In this section, we show how to generate falsifiable hypotheses from saliency maps and propose an intervention-based approach to verify the hypotheses generated from saliency maps. We intervene on game state to produce counterfactual semantic conditions. This provides a concrete methodology to assess the relationship between saliency and learned semantic representations.
|
| 104 |
+
|
| 105 |
+
Building Falsifiable Hypotheses from Saliency Maps. Though saliency maps may not relate directly to semantic concepts, they may still be an effective tool for exploring hypotheses about agent behavior. As we show schematically in Figure 2b, claims or explanations informed by saliency maps have three components: semantic concepts, saliency, and behavior. Recall that our survey indicates that researchers often attempt to infer aspects of the network’s learned representations from saliency patterns. Let $X$ be a subset of the semantic concepts that can be inferred from the input image. Let $B$ represent behavior, or aggregate actions, over temporally extended sequences of frames, and let $R$ be a representation that is a function of some pixels that the agent learns during training.
|
| 106 |
+
|
| 107 |
+
To create scientific claims from saliency maps, we recommend using a relatively standard pattern which facilitates objectivity and falsifiability:
|
| 108 |
+
|
| 109 |
+
{concept set $X \}$ is salient $\Longrightarrow$ agent has learned {representation $R \}$ resulting in {behavior $B \}$
|
| 110 |
+
|
| 111 |
+
Consider the Breakout brick reflection example presented in Section 2. The hypothesis introduced (“the agent has learned to aim at tunnels”) can be reformulated as: bricks are salient $\Longrightarrow$ agent has learned to identify a partially complete tunnel resulting in maneuvering the paddle to hit the ball toward that region. Stating hypotheses in this format implies falsifiable claims amenable to empirical analysis.
|
| 112 |
+
|
| 113 |
+
Counterfactual Evaluation of Claims. As indicated in Figure 2, the learned representation and pixel input share a relationship with saliency maps generated over a sequence of frames. Given that the representation learned is static, the relationship between the learned representation and saliency should be invariant under different manipulations of pixel input. We use this property to assess saliency under counterfactual conditions.
|
| 114 |
+
|
| 115 |
+
We generate counterfactual conditions by intervening on the RL environment. Prior work has focused on manipulating the pixel input. However, this does not modify the underlying latent game state. Instead, we intervene directly on game state. In the do-calculus formalism (Pearl, 2000), this shifts the intervention node in Figure 2a to game state, which leaves the generative process $F$ of the pixel image intact.
|
| 116 |
+
|
| 117 |
+
We employ TOYBOX, a set of fully parameterized implementation of Atari games (Foley et al., 2018), to generate interventional data under counterfactual conditions. The interventions are dependent on the mapping between semantic concepts and learned representations in the hypotheses. Given a mapping between concept set $X$ and a learned representation $R$ , any intervention would require meaningfully manipulating the state in which $X$ resides to assess the saliency on $X$ under the semantic treatment applied. Saliency on $x \in X$ is defined as the average saliency over a bounding-box1 around $x$ .
|
| 118 |
+
|
| 119 |
+
Since the learned policies should be semantically invariant under manipulations of the RL environment, by intervening on state, we can verify whether the counterfactual states produce expected patterns of saliency on the associated concept set $X$ . If the counterfactual saliency maps reflect similar saliency patterns, this provides stronger evidence that the observed saliency indicates the agent has learned representation R corresponding to semantic concept set $X$ .
|
| 120 |
+
|
| 121 |
+
# 5 EVALUATION OF HYPOTHESES ON AGENT BEHAVIOR
|
| 122 |
+
|
| 123 |
+
We conduct three case studies to evaluate hypotheses about the relationship between semantic concepts and semantic processes formed from saliency maps. Each case study uses observed saliency maps to identify hypotheses in the format described in Section 4. The hypotheses were generated by watching multiple episodes and noting atypical, interesting or popular behaviors from saliency maps. In each case study, we produce Jacobian, perturbation and object saliency maps from the same set of counterfactual states. We include examples of each map in Appendix A. Using TOYBOX allows us to produce counterfactual states and to generate saliency maps in these altered states. The case studies are conducted on two Atari games, Breakout and Amidar.2 The deterministic nature of both games allows some stability in the way we interpret the network’s action selection. Each map is produced from an agent trained with A2C (Mnih et al., 2016) using a CNN-based (Mnih et al., 2015) OpenAI Baselines implementation (Dhariwal et al., 2017) with default hyperparameters (see Appendix B for more details). Our choice of model is arbitrary. The emphasis of this work is on methods of explanation, not the explanations themselves.
|
| 124 |
+
|
| 125 |
+

|
| 126 |
+
Figure 3: Interventions on brick configurations in Breakout. (a) saliency after shifting the brick positions by some pixels where shift ${ \boldsymbol { \mathbf { \mathit { \sigma } } } } = 0$ represents the original frame; (b) saliency after shifting the brick positions, ball, and paddle to the left. The pattern and intensity of saliency around the tunnel is not symmetric in the reflection interventions.
|
| 127 |
+
|
| 128 |
+
Case Study 1: Breakout Brick Translation. Here we evaluate the behavior from Section 2:
|
| 129 |
+
|
| 130 |
+
Hypothesis 1: $\{ { \mathrm { b r i c k s } } \}$ are salient $\Longrightarrow$ agent has learned to {identify a partially complete tunnel $\}$ resulting in {maneuvering the paddle to hit the ball toward that region}.
|
| 131 |
+
|
| 132 |
+
To evaluate this hypothesis, we intervene on the state by translating the brick configurations horizontally. Because the semantic concepts relating to the tunnel are preserved under translation, we expect salience will be nearly invariant to the horizontal translation of the brick configuration. Figure 3a depicts saliency after intervention. Salience on the tunnel is less pronounced under left translation, and more pronounced under right translation. Since the paddle appears on the right, we additionally move the ball and paddle to the far left (Figure 3b).
|
| 133 |
+
|
| 134 |
+
Conclusion. Temporal association (e.g. formation of a tunnel followed by higher saliency) does not generally imply causal dependence. In this case, tunnel formation and salience appear to be confounded by location or, at least, the dependence of these phenomena are highly dependent on location.
|
| 135 |
+
|
| 136 |
+
Case Study 2: Amidar Score. Amidar is a Pac-Man-like game in which an agent attempts to completely traverse a series of passages while avoiding enemies. The yellow sprite that indicates the location of the agent is almost always salient in Amidar. Surprisingly, the displayed score is often as salient as the yellow sprite throughout the episode with varying levels of intensity. This can lead to multiple hypotheses about the agent’s learned representation: (1) the agent has learned to associate increasing score with higher reward; (2) due to the deterministic nature of Amidar, the agent has created a lookup table that associates its score and its actions. We can summarize these as follows:
|
| 137 |
+
|
| 138 |
+
Hypothesis 2: $\{ { \mathrm { s c o r e } } \}$ is salient $\Longrightarrow$ agent has learned to {use score as a guide to traverse the board} resulting in {successfully following similar paths in games}.
|
| 139 |
+
|
| 140 |
+
To evaluate hypothesis 2, we designed four interventions on score:
|
| 141 |
+
|
| 142 |
+
• intermittent reset: modify the score to 0 every $x \in [ 5 , 2 0 ]$ timesteps.
|
| 143 |
+
• random varying: modify the score to a random number between [1,200] every $x \in [ 5 , 2 0 ]$ timesteps.
|
| 144 |
+
• fixed: select a score from [0,200] and fix it for the whole game.
|
| 145 |
+
• decremented: modify score to be 3000 initially and decrement score by $d \in [ 1 , 2 0 ]$ at every timestep.
|
| 146 |
+
|
| 147 |
+
Figures 4a and 4b show the result of intervening on displayed score on reward and saliency intensity, measured as the average saliency over a $2 5 \mathrm { x } 1 5$ bounding box, respectively for the first 1000 timesteps of an episode. The mean is calculated over 50 samples. If an agent died before 1000 timesteps, the last reward was extended for the remainder of the timesteps and saliency was set to zero.
|
| 148 |
+
|
| 149 |
+

|
| 150 |
+
Figure 4: Interventions on displayed score in Amidar. The legend in (b) applies to all figures. (a) reward over time for different interventions on displayed score; (b) object saliency on displayed score over time; (c) correlation between the differences in reward and object saliency from the original trajectory. Interventions on displayed score result in differing levels of degraded performance but produce similar saliency maps, suggesting that agent behavior as measured by rewards is underdetermined by salience.
|
| 151 |
+
|
| 152 |
+
Using reward as a summary of agent behavior, different interventions on score produce different agent behavior. Total accumulated reward differs over time for all interventions, typically due to early agent death. However, salience intensity patterns of all interventions follow the original trajectory very closely. Different interventions on displayed score cause differing degrees of degraded performance (Figure 4a) despite producing similar saliency maps (Figure 4b), indicating that agent behavior is underdetermined by salience. Specifically, the salience intensity patterns are similar for the control, fixed, and decremented scores, while the non-ordered score interventions result in degraded performance. Figure 4c indicates only very weak correlations between the difference-in-reward and difference-in-saliency-under-intervention as compared to the original trajectory. Correlation coefficients range from 0.041 to 0.274, yielding insignificant p-values for all but one intervention. See full results in Appendix E.1, Table 6.
|
| 153 |
+
|
| 154 |
+
Similar trends are noted for Jacobian and perturbation saliency methods in Appendix E.1.
|
| 155 |
+
|
| 156 |
+
Conclusion. The existence of a high correlation between two processes (e.g., incrementing score and persistence of saliency) does not imply causation. Interventions can be useful in identifying the common cause leading to the high correlation.
|
| 157 |
+
|
| 158 |
+
Case Study 3: Amidar Enemy Distance. Enemies are salient in Amidar at varying times. From visual inspection, we observe that enemies close to the player tend to have higher saliency. Accordingly, we generate the following hypothesis:
|
| 159 |
+
|
| 160 |
+
Hypothesis 3: {enemy} is salient $\Longrightarrow$ agent has learned to {identify enemies close to it} resulting in {successful avoidance of enemy collision $\}$ .
|
| 161 |
+
|
| 162 |
+
Without directly intervening on the game state, we can first identify whether the player-enemy distance and enemy saliency is correlated using observational data. We collect 1000 frames of an episode of Amidar and record the Manhattan distance between the midpoints of the player and enemies, represented by $7 \mathbf { x } 7$ bounding boxes, along with the object salience of each enemy. Figure 5a shows the distance of each enemy to the player over time with saliency intensity represented by the shaded region. Figure 5b shows the correlation between the distance to each enemy and the corresponding saliency. Correlation coefficients and significance values are reported in Table 3. It is clear that there is no correlation between saliency and distance of each enemy to the player.
|
| 163 |
+
|
| 164 |
+
Given that statistical dependence is almost always a necessary pre-condition for causation, we expect that there will not be any causal dependence. To further examine this, we intervene on enemy positions of salient enemies at each timestep by moving the enemy closer and farther away from the player. Figure 5c contains these results. Given Hypothesis 3, we would expect to see an increasing trend in saliency for enemies closer to the player. However, the size of the effect is close to 0 (see Table 3). In addition, we find no correlation in the enemy distance experiments for the Jacobian or perturbation saliency methods (included in Appendix E.2).
|
| 165 |
+
|
| 166 |
+

|
| 167 |
+
Figure 5: Interventions on enemy location in Amidar. The legend in (b) applies to all figures. (a) the distance-to-player of each enemy in Amidar, observed over time, where saliency intensity is represented by the shaded region around each line; (b) the distance-to-player and saliency, with linear regressions, observed for each enemy; (c) variation in enemy saliency when enemy position is varied by intervention. The plots suggest that there is no substantial correlation and no causal dependence between distance-to-player and object saliency.
|
| 168 |
+
|
| 169 |
+
Table 3: Numeric results from regression analysis for the observational and interventional results in Figures 5b and c. The results indicate a very small strength of effect (slope) for both observational and interventional data and a small correlation coefficient $( r )$ , suggesting that there is, at best, only a very weak causal dependence of saliency on distance-to-player.
|
| 170 |
+
|
| 171 |
+
<table><tr><td></td><td colspan="3">Observational</td><td colspan="3">Interventional</td></tr><tr><td>Enemy</td><td>slope</td><td>p-value</td><td>r</td><td>slope</td><td>p-value</td><td>r</td></tr><tr><td>1</td><td>-0.001</td><td>0.26</td><td>-0.036</td><td>-0.001</td><td>0.97</td><td>-0.001</td></tr><tr><td>2</td><td>-0.001</td><td>0.35</td><td>-0.298</td><td>0.013</td><td>0.68</td><td>0.039</td></tr><tr><td>3</td><td>0.004</td><td>1.59e-4</td><td>0.119</td><td>-0.008</td><td>0.79</td><td>-0.022</td></tr><tr><td>4</td><td>-0.008</td><td>8.26e-19</td><td>-0.275</td><td>-0.011</td><td>0.75</td><td>-0.028</td></tr><tr><td>5</td><td>0.001</td><td>0.13</td><td>0.047</td><td>-0.033</td><td>0.47</td><td>-0.063</td></tr></table>
|
| 172 |
+
|
| 173 |
+
Conclusion. Spurious correlations, or misinterpretations of existing correlation, can occur between two processes (e.g. correlation between player-enemy distance and saliency), and human observers are susceptible to identifying spurious correlations (Simon, 1954). Spurious correlations can sometimes be identified from observational analysis without requiring interventional analysis.
|
| 174 |
+
|
| 175 |
+
# 6 DISCUSSION AND RELATED WORK
|
| 176 |
+
|
| 177 |
+
Thinking counterfactually about the explanations generated from saliency maps facilitates empirical evaluation of those explanations. The experiments above show some of the difficulties in drawing conclusions from saliency maps. These include the tendency of human observers to incorrectly infer association between observed processes, the potential for experimental evidence to contradict seemingly obvious observational conclusions, and the challenges of potential confounding in temporal processes.
|
| 178 |
+
|
| 179 |
+
One of the main conclusions from this evaluation is that saliency maps are an exploratory tool rather than an explanatory tool for evaluating agent behavior in deep RL. Saliency maps alone cannot be reliably used to infer explanations and instead require other supporting tools. This can include combining evidence from saliency maps with other explanation methods or employing a more experimental approach to evaluation of saliency maps such as the approach demonstrated in the case studies above.
|
| 180 |
+
|
| 181 |
+
The framework for generating falsifiable hypotheses suggested in Section 4 can assist with designing more specific and falsifiable explanations. The distinction between the components of an explanation, particularly the semantic concept set $X$ , learned representation $R$ and observed behavior $B$ , can further assist in experimental evaluation. Note that the semantic space devised by an agent might be quite different from the semantic space given by the latent factors of the environment. It is crucial to note that this mismatch is one aspect of what plays out when researchers create hypotheses about agent behavior, and the methodology we provide in this work demonstrates how to evaluate hypotheses that reflect that mismatch.
|
| 182 |
+
|
| 183 |
+
Generalization of Proposed Methodology. The methodology presented in this work can be easily extended to other vision-based domains in deep RL. Particularly, the framework of the graphical model introduced in Figure 2a applies to all domains where the input to the network is image data. An extended version of the model for Breakout can be found in Appendix 7.
|
| 184 |
+
|
| 185 |
+
We propose intervention-based experimentation as a primary tool to evaluate the hypotheses generated from saliency maps. Yet, alternative methods can identify a false hypothesis even earlier. For instance, evaluating statistical dependence alone can provide strong evidence against causal dependence (e.g., Case Study 3). In this work, we employ a particularly capable simulation environment (TOYBOX). However, limited forms of evaluation may be possible in non-intervenable environments, though they may be more tedious to implement. For instance, each of the interventions conducted in Case Study 1 can be produced in an observation-only environment by manipulating the pixel input (Brunelli, 2009; Chalupka et al., 2015). Developing more experimental systems for evaluating explanations is an open area of research.
|
| 186 |
+
|
| 187 |
+
This work analyzes explanations generated from feed-forward deep RL agents. However, the proposed methodology is not model dependent, and aspects of the approach will carry over to recurrent deep RL agents. The proposed methodology would not work well for repeated interventions on recurrent deep RL agents due to their capacity for memorization.
|
| 188 |
+
|
| 189 |
+
Explanations in Deep RL. Prior work has introduced alternatives to the use of saliency maps to support explanation of deep RL agents. Some of these methods also use counterfactual reasoning to develop explanations. TOYBOX was developed to support experimental evaluation and behavioral tests of deep RL models (Tosch et al., 2019). Olson et al. (2019) use a generative deep learning architecture to produce counterfactual states resulting in the agent taking a different action. Others have proposed alternative methods for developing semantically meaningful interpretations of agent behavior. Juozapaitis et al. (2019) use reward decomposition to attribute policy behaviors according to semantically meaningful components of reward. Verma et al. (2018) use domain-specific languages for policy representation, allowing for human-readable policy descriptions.
|
| 190 |
+
|
| 191 |
+
Evaluation and Critiques of Saliency Maps. Prior work in the deep network literature has evaluated and critiqued saliency maps. Kindermans et al. (2019) and Adebayo et al. (2018) demonstrate the utility of saliency maps by adding random variance in input. Seo et al. (2018) provide a theoretical justification of saliency and hypothesize that there exists a correlation between gradients-based saliency methods and model interpretation. Samek et al. (2017) and Hooker et al. (2019) present evaluations of existing saliency methods for image classification.
|
| 192 |
+
|
| 193 |
+
# 7 CONCLUSIONS
|
| 194 |
+
|
| 195 |
+
We conduct a survey of uses of saliency maps, propose a methodology to evaluate saliency maps, and examine the extent to which the agent’s learned representations can be inferred from saliency maps. We investigate how well the pixel-level inferences of saliency maps correspond to the semantic concept-level inferences of human-level interventions. Our results show saliency maps cannot be trusted to reflect causal relationships between semantic concepts and agent behavior. We recommend saliency maps to be used as an exploratory tool, not explanatory tool.
|
| 196 |
+
|
| 197 |
+
# ACKNOWLEDGMENTS
|
| 198 |
+
|
| 199 |
+
Thanks to Emma Tosch, Amanda Gentzel, Deep Chakraborty, Abhinav Bhatia, Blossom Metevier, Chris Nota, Karthikeyan Shanmugam and the anonymous ICLR reviewers for thoughtful comments and contributions. This material is based upon work supported by the United States Air Force under Contract No, FA8750-17-C-0120. Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the United States Air Force.
|
| 200 |
+
|
| 201 |
+
# REFERENCES
|
| 202 |
+
|
| 203 |
+
Julius Adebayo, Justin Gilmer, Michael Muelly, Ian Goodfellow, Moritz Hardt, and Been Kim. Sanity checks for saliency maps. In NeurIPS, 2018.
|
| 204 |
+
|
| 205 |
+
Raghuram Mandyam Annasamy and Katia Sycara. Towards better interpretability in deep qnetworks. In AAAI, 2019.
|
| 206 |
+
|
| 207 |
+
Miroslav Bogdanovic, Dejan Markovikj, Misha Denil, and Nando De Freitas. Deep apprenticeship learning for playing video games. 2015.
|
| 208 |
+
|
| 209 |
+
Roberto Brunelli. Template Matching Techniques in Computer Vision: Theory and Practice. Wiley Publishing, 2009.
|
| 210 |
+
|
| 211 |
+
Ruth M. J. Byrne. Counterfactuals in explainable artificial intelligence (XAI): Evidence from human reasoning. In IJCAI, 2019.
|
| 212 |
+
|
| 213 |
+
Krzysztof Chalupka, Pietro Perona, and Frederick Eberhardt. Visual causal feature learning. In UAI, 2015.
|
| 214 |
+
|
| 215 |
+
Piotr Dabkowski and Yarin Gal. Real time image saliency for black box classifiers. In NeurIPS, 2017.
|
| 216 |
+
|
| 217 |
+
Maartje M. A. de Graaf and Bertram F. Malle. How people explain action (and autonomous intelligent systems should too). In AAAI Fall Symposia, 2017.
|
| 218 |
+
|
| 219 |
+
Prafulla Dhariwal, Christopher Hesse, Oleg Klimov, Alex Nichol, Matthias Plappert, Alec Radford, John Schulman, Szymon Sidor, and Yuhuai Wu. OpenAI Baselines. https://github.com/ openai/baselines, 2017.
|
| 220 |
+
|
| 221 |
+
Rachit Dubey, Pulkit Agrawal, Deepak Pathak, Thomas L Griffiths, and Alexei A Efros. Investigating human priors for playing video games. ICML, 2018.
|
| 222 |
+
|
| 223 |
+
John Foley, Emma Tosch, Kaleigh Clary, and David Jensen. Toybox: Better Atari Environments for Testing Reinforcement Learning Agents. In NeurIPS Workshop on Systems for ML, 2018.
|
| 224 |
+
|
| 225 |
+
Ruth C Fong and Andrea Vedaldi. Interpretable explanations of black boxes by meaningful perturbation. ICCV, 2017.
|
| 226 |
+
|
| 227 |
+
Vikash Goel, Jameson Weng, and Pascal Poupart. Unsupervised video object segmentation for deep reinforcement learning. In NeurIPS, 2018.
|
| 228 |
+
|
| 229 |
+
Sam Greydanus, Anurag Koul, Jonathan Dodge, and Alan Fern. Visualizing and understanding atari agents. ICML, 2017.
|
| 230 |
+
|
| 231 |
+
Sara Hooker, Dumitru Erhan, Pieter-Jan Kindermans, and Been Kim. Evaluating feature importance estimates. NeurIPS, 2019.
|
| 232 |
+
|
| 233 |
+
Rahul Iyer, Yuezhang Li, Huao Li, Michael Lewis, Ramitha Sundar, and Katia Sycara. Transparency and explanation in deep reinforcement learning neural networks. AAAI, 2018.
|
| 234 |
+
|
| 235 |
+
Zoe Juozapaitis, Anurag Koul, Alan Fern, Martin Erwig, and Finale Doshi-Velez. Explainable reinforcement learning via reward decomposition. In IJCAI Workshop on Explainable Artificial Intelligence, 2019.
|
| 236 |
+
|
| 237 |
+
Pieter-Jan Kindermans, Sara Hooker, Julius Adebayo, Maximilian Alber, Kristof T Schutt, Sven ¨ Dahne, Dumitru Erhan, and Been Kim. The (un) reliability of saliency methods. In ¨ Explainable AI: Interpreting, Explaining and Visualizing Deep Learning. 2019.
|
| 238 |
+
|
| 239 |
+
Zachary C Lipton and Jacob Steinhardt. Troubling trends in machine learning scholarship. arXiv preprint arXiv:1807.03341, 2018.
|
| 240 |
+
|
| 241 |
+
Brent Mittelstadt, Chris Russell, and Sandra Wachter. Explaining explanations in ai. In Conference on Fairness, Accountability, and Transparency, 2019.
|
| 242 |
+
|
| 243 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 2015.
|
| 244 |
+
|
| 245 |
+
Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In ICML, 2016.
|
| 246 |
+
|
| 247 |
+
Alex Mott, Daniel Zoran, Mike Chrzanowski, Daan Wierstra, and Danilo J Rezende. Towards interpretable reinforcement learning using attention augmented agents. arXiv preprint arXiv:1906.02500, 2019.
|
| 248 |
+
|
| 249 |
+
Dmitry Nikulin, Anastasia Ianina, Vladimir Aliev, and Sergey Nikolenko. Free-lunch saliency via attention in atari agents. arXiv preprint arXiv:1908.02511, 2019.
|
| 250 |
+
|
| 251 |
+
Matthew L Olson, Lawrence Neal, Fuxin Li, and Weng-Keen Wong. Counterfactual states for atari agents via generative deep learning. IJCAI Workshop on Explainable Artificial Intelligence, 2019.
|
| 252 |
+
|
| 253 |
+
Judea Pearl. Causality: models, reasoning and inference, volume 29. Springer, 2000.
|
| 254 |
+
|
| 255 |
+
Karl Popper. The logic of scientific discovery. Routledge, 1959.
|
| 256 |
+
|
| 257 |
+
Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. Why should I trust you?: Explaining the predictions of any classifier. In ACM SIGKDD. ACM, 2016.
|
| 258 |
+
|
| 259 |
+
Christian Rupprecht, Cyril Ibrahim, and Chris Pal. Visualizing and discovering behavioural weaknesses in deep reinforcement learning. arXiv preprint arXiv:1904.01318, 2018.
|
| 260 |
+
|
| 261 |
+
Wojciech Samek, Alexander Binder, Gregoire Montavon, Sebastian Lapuschkin, and Klaus-Robert ´ Muller. Evaluating the visualization of what a deep neural network has learned. ¨ IEEE transactions on neural networks and learning systems, 2017.
|
| 262 |
+
|
| 263 |
+
Richard Scheines. The similarity of causal inference in experimental and nonexperimental studies. Philosophy of Science, 2005.
|
| 264 |
+
|
| 265 |
+
Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, Dhruv Batra, et al. Grad-cam: Visual explanations from deep networks via gradient-based localization. In ICCV, 2017.
|
| 266 |
+
|
| 267 |
+
Junghoon Seo, Jeongyeol Choe, Jamyoung Koo, Seunghyeon Jeon, Beomsu Kim, and Taegyun Jeon. Noise-adding methods of saliency map as series of higher order partial derivative. ICML Workshop on Human Interpretability in Machine Learning, 2018.
|
| 268 |
+
|
| 269 |
+
Avanti Shrikumar, Peyton Greenside, and Anshul Kundaje. Learning important features through propagating activation differences. ICML, 2017.
|
| 270 |
+
|
| 271 |
+
Herbert A. Simon. Spurious correlation: A causal interpretation. Journal of the American Statistical Association, 1954.
|
| 272 |
+
|
| 273 |
+
Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. ICLR Workshop, 2014.
|
| 274 |
+
|
| 275 |
+
Daniel Smilkov, Nikhil Thorat, Been Kim, Fernanda Viegas, and Martin Wattenberg. Smoothgrad: ´ removing noise by adding noise. ICML Workshop on Visualization for Deep Learning, 2017.
|
| 276 |
+
|
| 277 |
+
Jost Tobias Springenberg, Alexey Dosovitskiy, Thomas Brox, and Martin Riedmiller. Striving for simplicity: The all convolutional net. ICLR, 2015.
|
| 278 |
+
|
| 279 |
+
Ramitha Sundar. Transparency in Deep Reinforcement Learning Networks. PhD thesis, Carnegie Mellon University, 2018.
|
| 280 |
+
|
| 281 |
+
Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press, 1998.
|
| 282 |
+
|
| 283 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In ICLR, 2014.
|
| 284 |
+
|
| 285 |
+
Joshua B Tenenbaum and Sourabh Niyogi. Learning causal laws. In Proceedings of the Annual Meeting of the Cognitive Science Society, 2003.
|
| 286 |
+
Emma Tosch, Kaleigh Clary, John Foley, and David Jensen. Toybox: A suite of environments for experimental evaluation of deep reinforcement learning, 2019.
|
| 287 |
+
Douwe van der Wal, Bachelor Opleiding Kunstmatige Intelligentie, and Wenling Shang. Advantage actor-critic methods for carracing. 2018.
|
| 288 |
+
Abhinav Verma, Vijayaraghavan Murali, Rishabh Singh, Pushmeet Kohli, and Swarat Chaudhuri. Programmatically interpretable reinforcement learning. In ICML, 2018.
|
| 289 |
+
Ziyu Wang, Tom Schaul, Matteo Hessel, Hado Van Hasselt, Marc Lanctot, and Nando De Freitas. Dueling network architectures for deep reinforcement learning. ICML, 2016.
|
| 290 |
+
Zhao Yang, Song Bai, Li Zhang, and Philip HS Torr. Learn to interpret atari agents. arXiv preprint arXiv:1812.11276, 2018.
|
| 291 |
+
Tom Zahavy, Nir Ben-Zrihem, and Shie Mannor. Graying the black box: Understanding dqns. 2016.
|
| 292 |
+
Matthew D Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In ECCV, 2014.
|
| 293 |
+
Jianming Zhang, Sarah Adel Bargal, Zhe Lin, Jonathan Brandt, Xiaohui Shen, and Stan Sclaroff. Top-down neural attention by excitation backprop. International Journal of Computer Vision, 2018.
|
| 294 |
+
|
| 295 |
+
# APPENDICES
|
| 296 |
+
|
| 297 |
+
# A SALIENCY METHODS
|
| 298 |
+
|
| 299 |
+
Figure 6 shows example saliency maps of the three saliency methods evaluated in this work, namely perturbation, object and Jacobian, for Amidar.
|
| 300 |
+
|
| 301 |
+

|
| 302 |
+
Figure 6: Examples of (a) perturbation saliency method (Greydanus et al., 2017), (b) object saliency method (Iyer et al., 2018), and (c) Jacobian saliency method (Wang et al., 2016), for Amidar.
|
| 303 |
+
|
| 304 |
+
# B MODEL
|
| 305 |
+
|
| 306 |
+
We use the OpenAI Baselines’ implementation (Dhariwal et al., 2017) of an A2C model (Mnih et al., 2016) to train the RL agents on Breakout and Amidar. The model uses the CNN architecture proposed by Mnih et al. (2015). Each agent is trained for 40 million iterations using RMSProp with default hyperparameters (Table 4).
|
| 307 |
+
|
| 308 |
+
Table 4: Hyperparameters used in training the A2C model.
|
| 309 |
+
|
| 310 |
+
<table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>Learning rate</td><td>7e-4</td></tr><tr><td>Learning rate schedule</td><td>Linear</td></tr><tr><td># Iterations</td><td>40,000,000</td></tr><tr><td>Value function coefficient</td><td>0.5</td></tr><tr><td>Policy function coefficient</td><td>0.01</td></tr><tr><td>RMSProp epsilon</td><td>1e-5</td></tr><tr><td>RMSProp decay</td><td>0.99</td></tr><tr><td>Reward discounting parameter</td><td>0.99</td></tr><tr><td>Max gradient (clip)</td><td>0.5</td></tr></table>
|
| 311 |
+
|
| 312 |
+
# C SURVEY OF USAGE OF SALIENCY MAPS IN DEEP RL LITERATURE
|
| 313 |
+
|
| 314 |
+
We conducted a survey of recent literature to assess how saliency maps are used to interpret agent behavior in deep RL. We began our search by focusing on work citing the following four types of saliency maps: Jacobian (Wang et al., 2016), perturbation (Greydanus et al., 2017), object (Iyer et al., 2018) and attention (Mott et al., 2019). Papers were selected if they employed saliency maps to create explanations regarding agent behavior. This resulted in selecting 46 claims from 11 papers. These 11 papers have appeared at ICML (3), NeurIPS (1), AAAI (2), ArXiv (3), OpenReview (1) and as a thesis (1). There are several model-specific saliency mapping methods that we excluded from our survey.
|
| 315 |
+
|
| 316 |
+
Following is the full set of claims. All claims are for Atari games. The Reason column represents whether an explanation for agent behavior was provided (Y/N) and the Exp column represents whether an experiment was conducted to evaluate the explanation (Y/N).
|
| 317 |
+
|
| 318 |
+
<table><tr><td>Claim</td><td>Game</td><td>Saliency Type</td><td>Reason</td><td>Exp</td></tr><tr><td colspan="3">Greydanus et al. (2017)</td><td></td><td></td></tr><tr><td>“The agent is positioning its own paddle,which allows it to return the ball at a specific angle."</td><td>Pong</td><td>Perturbation</td><td>Y</td><td>N</td></tr><tr><td>"Interestingly, from the saliency we see that the agent attends to very little besides its own paddle: not even the ball."</td><td>Pong</td><td>Perturbation</td><td>N</td><td>N</td></tr><tr><td>“After the agent has executed the kill shot, we see that saliency centers entirely around the ball. This makes sense since at this point neither paddle can alter the outcome and their positions are irrele-</td><td>Pong</td><td>Perturbation</td><td>Y</td><td>N</td></tr><tr><td>vant." “It appears that the deep RL agent is exploiting the deterministic nature of the Pong environment. It has learned that it can obtain a reward with high certainty upon executing a precise series of ac- tions.This insight...gives evidence that the agent</td><td>Pong</td><td>Perturbation</td><td>Y</td><td>N</td></tr><tr><td>is not robust and has overfit to the particular op- ponent." "[The agent] had learned a sophisticated aim- ing strategy during which first the actor and then the critic would ‘track’ a target. Aiming begins when the actor highlights a particular alien in blue..Aiming ends with the agent shooting at the</td><td>Space- Invaders</td><td>Perturbation</td><td>Y</td><td>N</td></tr><tr><td>new target." “The critic highlights the target in anticipation of an upcoming reward."</td><td>Space- Invaders</td><td>PerturbationY</td><td></td><td>N</td></tr><tr><td>“Notice that both actor and critic tend to monitor the area above the ship. This may be useful for de- termining whether the ship is protected from en-</td><td>Space- Invaders</td><td>Perturbation</td><td>Y</td><td>N</td></tr><tr><td>emy fire or has a clear shot at enemies."</td><td></td><td></td><td></td><td></td></tr><tr><td>“We found that the agent enters and exits a ‘tun- neling mode’ over the course of a single frame. Once the tunneling location becomes salient, it re- mains so until the tunnel is finished."</td><td></td><td>BreakoutPerturbationN</td><td></td><td>N</td></tr><tr><td colspan="5">ceive those pixels as input."</td></tr><tr><td colspan="5">Bogdanovic et al. (2015) “The line of cars in the upper right are far away</td></tr><tr><td>and the agent correctly ignores them in favour of focusing on the much more dangerous cars in the lower left."</td><td>Freeway</td><td>Jacobian</td><td>Y</td><td>N</td></tr><tr><td>“Firstly, the agent ignores irrelevant features from mountains, sky, the mileage board and empty grounds,and relies on information from the race track to make decisions. Specifically,the agent</td><td>Yang et al. (2018) Enduro</td><td>Binary Jacobian</td><td>Y</td><td>N</td></tr><tr><td>keeps separate two categories of objects on the race track,i.e., cars and the player." “On the one hand, the agent locates the player and a local area around it for avoiding immediate col- lisions with cars. On the other hand,the agent locates the next potential collision targets at dif-</td><td>Enduro</td><td>Binary Jacobian</td><td>Y</td><td>N</td></tr><tr><td>ferent locations, particularly the remote ones." “Near the completion of the current goal,the agent celebrates in advance. As shown from Fig. 4(d) to Fig. 4(f), the left gaze loses its focus on cars and diverts to the mileage board starting when only 13 cars remain before completion. The pre- vious car tracker now picks up on the important</td><td>Enduro</td><td>Binary Jacobian</td><td>Y</td><td>N</td></tr><tr><td>information that it is close to victory,and fixates on the countdown." “Upon reaching the target, the agent does not re- ceive reward signals until the next day starts.Dur- ing this period the agent learns to output no-op</td><td>Enduro</td><td>Binary Jacobian</td><td>Y</td><td>N</td></tr><tr><td>actions, corresponding to not playing the game." “When slacking happens, the agent considers the flag signs as important and the road not. The com- plete reverse in focus as compared to the normal case explains this shift in policy. The flags out-</td><td>Enduro</td><td>Binary Jacobian</td><td>Y</td><td>N</td></tr><tr><td>weigh the road in importance, since they are signs of absolute zero return." "(Prepping) As it turns out, the agent recognizes that the time is dawn (right before morning when race starts) from the unique colours of the light gray sky and orange mountains, therefore the</td><td>Enduro</td><td>Binary Jacobian</td><td>Y</td><td>N</td></tr><tr><td>agent gets ready early for a head start in the new race."</td><td></td><td></td><td></td><td></td></tr><tr><td>“When smog partially blocks the forward view, the left gaze loses its focus on cars. It strays off the road into some empty area."</td><td>Enduro</td><td>Binary Jacobian</td><td>Y</td><td>N</td></tr><tr><td>"In Fig. 5(a), the left gaze detects the two ghosts</td><td>Pacman</td><td>Binary Jacobian</td><td>Y</td><td>N</td></tr><tr><td>on the upper-right corner of the map. Therefore, ms pacman,as located by the right gaze,stays in the mid-left section to safely collect dense re- wards." "In Fig._5(b),the left gaze locks in on all three</td><td>Pacman</td><td>Binary</td><td>Y</td><td>N</td></tr><tr><td>vulnerable ghosts in the mid-right section,as ms pacman chases after them." “In Fig. 5(c), the left gaze detects a newly- appeared cherry at the lower-left warp tunnel en-</td><td>Pacman</td><td>Jacobian Binary Jacobian</td><td>Y</td><td>N</td></tr><tr><td>trance.Ms pacman immediately enters the closest opposite tunnel entrance in the shortest path to the cherry." “In Fig. 5(d), the right gaze locates ms pacman</td><td>Pacman</td><td>Binary</td><td>Y</td><td>N</td></tr><tr><td>entering the upper-right tunnel. In this case, the left gaze no longer detects a moving object, but predicts the upper-left tunnel as the exiting point." “As shown in Fig. 5(g), the left gaze locates the last pellet when ms pacman is in the mid-section</td><td>Pacman</td><td>Jacobian Binary</td><td>Y</td><td>N</td></tr><tr><td>of the maze. Therefore ms pacman moves towards the pellet." “In Fig. 5(h), a red ghost appears in the left gaze</td><td>Pacman</td><td>Jacobian Binary</td><td>Y</td><td>N</td></tr><tr><td>close to the pellet, causing ms pacman to deviate to the right.” “After changing course, the ghosts approach ms pacman from all directions as shown in Fig. 5(i).</td><td>Pacman</td><td>Jacobian Binary Jacobian</td><td>Y</td><td>N</td></tr><tr><td>Even though the agent detects all the ghosts (they appear in the gazes), ms pacman has no route to escape.” “The left gaze often focuses on white ice blocks</td><td></td><td></td><td></td><td></td></tr><tr><td>that are the destinations of jumping.” “Fig. 6(b) shows the sub-task of the player enter-</td><td>Frostbite Frostbite</td><td>Binary Jacobian Binary</td><td>N Y</td><td>N N</td></tr><tr><td>ing the igloo,after jumping over white ice blocks for building it. The player must avoid the bear when running for the igloo.” “As it shows, the igloo is two jumps away from</td><td></td><td>Jacobian</td><td></td><td></td></tr><tr><td>completion,and the left gaze focuses on the igloo in advance for preparing to enter." Annasamy & Sycara (2019)</td><td>Frostbite</td><td>Binary Jacobian</td><td>Y</td><td>N</td></tr><tr><td>“For example,in MsPacman, since visualizations suggest that the agent may be memorizing pac- mans positions (also maybe ghosts and other ob- jects),we simply add an extra pellet adjacent to a trajectory seen during training (Figure 7a). The agent does not clear the additional pellet and sim- ply continues to execute actions performed during training (Figure 7b).”</td><td>Pacman</td><td>Object</td><td>Y</td><td>Y</td></tr><tr><td>“Similarly, in case of SpaceInvaders, the agent has a strong bias towards shooting from the leftmost- end (seen in Figure 4). This helps in clearing the triangle like shape and moving to the next level (Figure 7d). However,when triangular positions of spaceships are inverted, the agent repeats the same strategy of trying to shoot from left and fails to clear ships (Figure 7c).”</td><td>Space- Invaders</td><td>Object</td><td>Y</td><td>Y</td></tr><tr><td colspan="5"></td></tr><tr><td colspan="5">Goel et al. (2018) “In our Breakout results,the network learns toBreakout</td></tr><tr><td>split the paddle into a left and right side,and does not move the middle portion." “On Beam Rider, our network achieves low loss after learning to segment the games light beams,</td><td>Beam</td><td>Object Object</td><td>Y Y</td><td>N N</td></tr><tr><td>however these beams are purely visual effects and are unimportant for action selection." “Consequently, the game enemies,which are much smaller in size,are ignored by the network, and the resulting learned representation is not that</td><td>Rider Beam Rider</td><td> Object</td><td>N</td><td>N</td></tr><tr><td>useful for a reinforcement learning agent." “There is a very notable difference between the policy saliency between the two models,where</td><td>van der Wal et al. (2018)</td><td>CarRacing Perturbation</td><td>Y</td><td>N</td></tr><tr><td>the former one only pays limited attention to the road and almost no attention to the engine indica- tor,the opposite from fA3C-LSTM. Explicitly,it means masking any regions from the input does not cause much perturbation to the policy when trained with continuous space as targets,likely be- cause the real consequence from a small change in action, e.g. no braking (a3= O) versus braking (a3= O.3),can be very substantial but numerically too subtle for the network to capture during opti- mization on the continuous spectrum." Rupprecht et al. (2018)</td><td></td><td></td><td></td><td></td></tr><tr><td>“Analyzing the visualizations on Seaquest, weSeaQuestPerturbationY make an interesting observation. When maximiz- ing the Q-value for the actions,in many samples we see a low or very low oxygen meter. In these cases the submarine would need to ascend to the surface to avoid suffocation. Although the up ac- tion is the only sensible choice in this case,we also obtain visualized low oxygen states for all other actions.This implies that the agent has not understood the importance of resurfacing when the oxygen is low. We then run several roll outs</td><td></td><td></td><td></td><td>Y</td></tr><tr><td>mies.” “The most dominant pattern we observe is that the model learns to attend to task-relevant things in the scene. In most ATARI games that usually means that the player is one of the foci of atten- tion,as well as enemies,power-ups and the score itself (which is an important factor in the calculat- ing the value function)."</td><td>Mott et al. (2019) SeaQuest</td><td>Attention</td><td>N</td><td>N</td></tr><tr><td colspan="5">Published asa conference paperatICLR 2020</td></tr><tr><td>“Figure 4 shows a examples of this in Ms Pac- man and Alien in the both games the model scans through possible paths,making sure there are no enemies or ghosts ahead. We observe that when it does see a ghost,another path is produced or</td><td>Pacman</td><td>Attention</td><td>Y</td><td>N</td></tr><tr><td>executed in order to avoid it." “In many games we observe that the agent learns to place trip-wires at strategic points in space such that if a game object crosses them a specific ac- tion is taken.For example,in Space Invaders two such trip wires are following the player ship on both sides such that if a bullet crosses one of them the agent immediately evades them by moving to-</td><td>Space In-Attention vaders</td><td></td><td>Y</td><td>N</td></tr><tr><td>wards the opposite direction." “Another example is Breakout where we can see it working in two stages.First the attention is spread out around the general area of the ball, then fo- cuses into a localized line.Once the ball crosses that line the agent moves towards the ball."</td><td>Breakout</td><td>tAttention</td><td>Y</td><td>N</td></tr><tr><td>“As can be seen, the system uses the two modes to make its decisions, some of the heads are con- tent specific looking for opponent cars. Some are mixed, scanning the horizon for incoming cars and when found, tracking them,and some are lo-</td><td>Enduro</td><td>Attention</td><td>Y</td><td>N</td></tr><tr><td>cation based queries,scanning the area right in front of the player for anything the crosses its path (a trip-wire which moves with the player). “Comparing the attention agent to the baseline agent,we see that the attention agent is sensitive to more focused areas along the possible future trajectory. The baseline agent is more focused on the area immediately in front of the player (for the policy saliency) and on the score,while the atten- tion agent focuses more specifically on the path the agent will follow (for the policy) and on pos-</td><td>Pacman</td><td>Perturbation</td><td>Y</td><td>N</td></tr><tr><td colspan="5">sible future longer term paths (for the value)." Nikulin et al. (2019) “Figs.4(a)-(b) show Dense FLS digging a tunnel</td></tr><tr><td rowspan="2">through blocks in Breakout. The model focuses its attention on the end of the tunnel as soon as it is complete, suggesting that it sees shooting the ball through the tunnel as a good strategy." "Figs. 4(c)-(d) depict the same concept of tun- neling per-formed by theSparse FLSmodel. Note how it focuses attention on the upper part of the screen after destroying multiple bricks from the top. This attention does not go away after the ball moves elsewhere (not shown in the images).We speculate that this is how the agent models tun- neling:rather than having a high-level concept of digging a tunnel,it simply strikes wherever it has managed to strike already."</td><td>Breakout Breakout</td><td>tAttention tAttention</td><td>Y</td><td>N</td></tr><tr><td></td><td></td><td>Y</td><td>N</td></tr><tr><td>“Figs. 4(e)-(f) illustrate how the Dense FLSSeaquestAttention model playing Seaquest has learned to attend to in-game objects and, importantly, the oxygen bar at the bottom of the screen. As the oxygen bar is nearing depletion,attention focuses around it,and the submarine reacts by rising to refill its air sup- ply.”</td><td></td><td></td><td>Y</td><td>N</td></tr><tr><td>“Figs.4(g)-(h) are two consecutive frames where an agent detects a target appearing from the left side of the screen.The bottom part of the screen- shots shows how attention in the bottom left cor- ner lights up as soon as a tiny part of the target, only a few pixels wide,appears from the left edge of the screen. In the next frame, the agent will turn left and shoot the target (not shown here).How- ever, the agent completely ignores targets in the top part of the screen,and its attention does not move as they move (also not shown)."</td><td>BreakoutAttention</td><td></td><td>Y</td><td>N</td></tr><tr><td>“The value stream learns to pay attention to theEnduro road.The advantage stream learns to pay attention only when there are cars immediately in front, so as to avoid collisions."</td><td>Wang et al. (2016)</td><td>Jacobian</td><td>Y</td><td>N</td></tr></table>
|
| 319 |
+
|
| 320 |
+
# D GENERALIZATION OF CAUSAL GRAPHICAL MODEL
|
| 321 |
+
|
| 322 |
+
The causal graphical model in Figure 2a can be extended to different domains in RL where the input to the model is an image. This requires extending game state to include the underlying state variables. Figure 7 shows the extension for Breakout using an A2C model. Note, game state includes the underlying state variables for Breakout and logits were split into action logits and value as outputted by A2C.
|
| 323 |
+
|
| 324 |
+

|
| 325 |
+
Figure 7: Causal graphical model for Breakout.
|
| 326 |
+
|
| 327 |
+
<table><tr><td></td><td colspan="2">Object</td><td colspan="2">Perturbation</td><td colspan="2">Jacobian</td></tr><tr><td>Intervention</td><td>r</td><td>p</td><td>r</td><td>p</td><td>r</td><td>p</td></tr><tr><td>intermittent_reset</td><td>0.274</td><td>1.09e-18</td><td>-0.10</td><td>1.52e-3</td><td>0.149</td><td>2.26e-6</td></tr><tr><td>random_varying</td><td>0.142</td><td>6.95e-6</td><td>-0.02</td><td>0.49</td><td>0.281</td><td>1.21e-19</td></tr><tr><td>fixed</td><td>0.041</td><td>0.20</td><td>-0.02</td><td>0.44</td><td>0.286</td><td>2.51e-20</td></tr><tr><td>decremented</td><td>0.119</td><td>0.15e-3</td><td>-0.09</td><td>6.73e-3</td><td>0.261</td><td>5.31e-17</td></tr></table>
|
| 328 |
+
|
| 329 |
+
Table 6: Numeric results representing Pearson’s correlation coefficient and $p$ -value for the differences in reward and saliency (object, perturbation and Jacobian) from the original trajectory for each intervention. Results show small correlation coefficients $( r )$ suggesting that there is a weak relationship between the differences in reward and saliency for the interventions.
|
| 330 |
+
|
| 331 |
+

|
| 332 |
+
Figure 8: Interventions on displayed score in Amidar (legend in (b) applies to all figures). (a) reward over time for different interventions on displayed score; (b) perturbation saliency on displayed score over time; (c) correlation between the differences in reward and perturbation saliency from the original trajectory. Interventions on displayed score result in differing levels of degraded performance but produce similar saliency maps, suggesting that agent behavior as measured by rewards is underdetermined by salience.
|
| 333 |
+
|
| 334 |
+
# E EVALUATION OF HYPOTHESES ON AGENT BEHAVIOR
|
| 335 |
+
|
| 336 |
+
# E.1 CASE STUDY 2: AMIDAR SCORE
|
| 337 |
+
|
| 338 |
+
We further evaluated the effects of interventions on displayed score (Section 5) in Amidar on perturbation and Jacobian saliency maps. These results are presented in Figures 8 and 9, respectively.
|
| 339 |
+
|
| 340 |
+
We also evaluated Pearson’s correlation between the differences in reward and saliency with the original trajectory for all three methods (see Table 6). The results support the correlation plots in Figures 4c, 8c and ${ 9 \mathrm { c } }$ .
|
| 341 |
+
|
| 342 |
+
# E.2 CASE STUDY 3: AMIDAR ENEMY DISTANCE
|
| 343 |
+
|
| 344 |
+
We further evaluated the relationship between player-enemy distance and saliency (Section 5) in Amidar on perturbation and Jacobian saliency maps. These results are presented in Figures 10 and 11, respectively. Jacobian saliency performed the worst for the intervention-based experiment, suggesting that there is no impact of player-enemy distance on saliency.
|
| 345 |
+
|
| 346 |
+
Regression analysis between distance and perturbation and Jacobian saliency can be found in Tables 7 and 8 respectively. The results support the lack of correlation between the observational and interventional distributions. Note, enemy 1 is more salient throughout the game compared to the other four enemies resulting in a larger interventional sample size.
|
| 347 |
+
|
| 348 |
+

|
| 349 |
+
Figure 9: Interventions on displayed score in Amidar for Jacobian saliency (legend in (b) applies to all figures). (a) reward over time for different interventions on displayed score; (b) saliency on displayed score over time; (c) correlation between the differences in reward and saliency from the original trajectory. Interventions on displayed score result in differing levels of degraded performance but produce similar saliency maps, suggesting that agent behavior as measured by rewards is underdetermined by salience.
|
| 350 |
+
|
| 351 |
+

|
| 352 |
+
Figure 10: Interventions on enemy location in Amidar (legend in (b) applies to all figures). (a) the distance-to-player of each enemy in Amidar, observed over time, where saliency intensity is represented by the shaded region around each line; (b) the distance-to-player and saliency, with linear regressions, observed for each enemy; (c) variation in enemy saliency when enemy position is varied by intervention. The plots suggest that there is no substantial correlation and no causal dependence between distance-to-player and perturbation saliency.
|
| 353 |
+
|
| 354 |
+

|
| 355 |
+
Figure 11: Interventions on enemy location in Amidar (legend in (b) applies to all figures). (a) the distance-to-player of each enemy in Amidar, observed over time, where saliency intensity is represented by the shaded region around each line; (b) the distance-to-player and saliency, with linear regressions, observed for each enemy; (c) variation in enemy saliency when enemy position is varied by intervention. The plots suggest that there is no substantial correlation and no causal dependence between distance-to-player and Jacobian saliency.
|
| 356 |
+
|
| 357 |
+
<table><tr><td></td><td colspan="3">Observational</td><td colspan="3">Interventional</td></tr><tr><td>Enemy</td><td>Slope</td><td>p-value</td><td>r</td><td>Slope</td><td>p-value</td><td>r</td></tr><tr><td>1</td><td>-0.052</td><td>7.04e-10</td><td>-0.204</td><td>-0.374</td><td>0.01</td><td>-0.126</td></tr><tr><td>2</td><td>-0.043</td><td>1.09e-9</td><td>-0.191</td><td>0.536</td><td>0.16</td><td>0.132</td></tr><tr><td>3</td><td>-0.065</td><td>6.04e-20</td><td>-0.283</td><td>-0.039</td><td>0.92</td><td>-0.008</td></tr><tr><td>4</td><td>-0.103</td><td>2.57e-25</td><td>-0.320</td><td>-0.005</td><td>0.98</td><td>0.003</td></tr><tr><td>5</td><td>-0.062</td><td>3.44e-12</td><td>-0.217</td><td>-0.083</td><td>0.71</td><td>0.032</td></tr></table>
|
| 358 |
+
|
| 359 |
+
Table 7: Numeric results from regression analysis for the observational and interventional results in Figures 10b and c. The results indicate a very small strength of effect (slope) for both observational and interventional data and a small correlation coefficient $( r )$ , suggesting that there is, at best, only a very weak causal dependence of saliency on distance-to-player.
|
| 360 |
+
|
| 361 |
+
<table><tr><td></td><td colspan="3">Observational</td><td colspan="3">Interventional</td></tr><tr><td>Enemy</td><td>Slope</td><td> p-value</td><td>r</td><td>Slope</td><td>p-value</td><td>r</td></tr><tr><td>1</td><td>-0.008</td><td>0.08</td><td>-0.055</td><td>0</td><td>0</td><td>0</td></tr><tr><td></td><td>-0.029</td><td>4.17e-6</td><td>-0.145</td><td>0</td><td>0</td><td>0</td></tr><tr><td></td><td>-0.031</td><td>3.57e-4</td><td>-0.113</td><td>0</td><td>0</td><td>0</td></tr><tr><td>234</td><td>-0.023</td><td>5.97e-3</td><td>-0.087</td><td>0</td><td>0</td><td>0</td></tr><tr><td>5</td><td>-0.013</td><td>0.02</td><td>-0.076</td><td>0</td><td>0</td><td>0</td></tr></table>
|
| 362 |
+
|
| 363 |
+
Table 8: Numeric results from regression analysis for the observational and interventional results in Figures 11b and c. The results indicate a very small strength of effect (slope) for both observational and interventional data and a small correlation coefficient $( r )$ , suggesting that there is, at best, only a very weak causal dependence of saliency on distance-to-player.
|
parse/train/rkl3m1BFDB/rkl3m1BFDB_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkl3m1BFDB/rkl3m1BFDB_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkl3m1BFDB/rkl3m1BFDB_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|