Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/B1xsqj09Fm/B1xsqj09Fm.md +492 -0
- parse/train/B1xsqj09Fm/B1xsqj09Fm_content_list.json +0 -0
- parse/train/B1xsqj09Fm/B1xsqj09Fm_middle.json +0 -0
- parse/train/B1xsqj09Fm/B1xsqj09Fm_model.json +0 -0
- parse/train/CLCVcl1rSPP/CLCVcl1rSPP.md +320 -0
- parse/train/CLCVcl1rSPP/CLCVcl1rSPP_content_list.json +1409 -0
- parse/train/CLCVcl1rSPP/CLCVcl1rSPP_middle.json +0 -0
- parse/train/CLCVcl1rSPP/CLCVcl1rSPP_model.json +0 -0
- parse/train/LOHyqjfyra/LOHyqjfyra.md +182 -0
- parse/train/LOHyqjfyra/LOHyqjfyra_content_list.json +830 -0
- parse/train/LOHyqjfyra/LOHyqjfyra_middle.json +0 -0
- parse/train/LOHyqjfyra/LOHyqjfyra_model.json +0 -0
- parse/train/gG4j9PybfwI/gG4j9PybfwI.md +452 -0
- parse/train/gG4j9PybfwI/gG4j9PybfwI_content_list.json +808 -0
- parse/train/gG4j9PybfwI/gG4j9PybfwI_middle.json +0 -0
- parse/train/gG4j9PybfwI/gG4j9PybfwI_model.json +0 -0
- parse/train/rdT5GV-LnZU/rdT5GV-LnZU.md +529 -0
- parse/train/rdT5GV-LnZU/rdT5GV-LnZU_content_list.json +1233 -0
- parse/train/rdT5GV-LnZU/rdT5GV-LnZU_middle.json +0 -0
- parse/train/rdT5GV-LnZU/rdT5GV-LnZU_model.json +0 -0
parse/train/B1xsqj09Fm/B1xsqj09Fm.md
ADDED
|
@@ -0,0 +1,492 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LARGE SCALE GAN TRAINING FORHIGH FIDELITY NATURAL IMAGE SYNTHESIS
|
| 2 |
+
|
| 3 |
+
Andrew Brock∗ † Heriot-Watt University ajb5@hw.ac.uk
|
| 4 |
+
|
| 5 |
+
Jeff Donahue†
|
| 6 |
+
DeepMind
|
| 7 |
+
jeffdonahue@google.com
|
| 8 |
+
|
| 9 |
+
Karen Simonyan† DeepMind simonyan@google.com
|
| 10 |
+
|
| 11 |
+
# ABSTRACT
|
| 12 |
+
|
| 13 |
+
Despite recent progress in generative image modeling, successfully generating high-resolution, diverse samples from complex datasets such as ImageNet remains an elusive goal. To this end, we train Generative Adversarial Networks at the largest scale yet attempted, and study the instabilities specific to such scale. We find that applying orthogonal regularization to the generator renders it amenable to a simple “truncation trick,” allowing fine control over the trade-off between sample fidelity and variety by reducing the variance of the Generator’s input. Our modifications lead to models which set the new state of the art in class-conditional image synthesis. When trained on ImageNet at $1 2 8 \times 1 2 8$ resolution, our models (BigGANs) achieve an Inception Score (IS) of 166.5 and Frechet Inception Dis- ´ tance (FID) of 7.4, improving over the previous best IS of 52.52 and FID of 18.65.
|
| 14 |
+
|
| 15 |
+
# 1 INTRODUCTION
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Class-conditional samples generated by our model.
|
| 19 |
+
|
| 20 |
+
The state of generative image modeling has advanced dramatically in recent years, with Generative Adversarial Networks (GANs, Goodfellow et al. (2014)) at the forefront of efforts to generate highfidelity, diverse images with models learned directly from data. GAN training is dynamic, and sensitive to nearly every aspect of its setup (from optimization parameters to model architecture), but a torrent of research has yielded empirical and theoretical insights enabling stable training in a variety of settings. Despite this progress, the current state of the art in conditional ImageNet modeling (Zhang et al., 2018) achieves an Inception Score (Salimans et al., 2016) of 52.5, compared to 233 for real data.
|
| 21 |
+
|
| 22 |
+
In this work, we set out to close the gap in fidelity and variety between images generated by GANs and real-world images from the ImageNet dataset. We make the following three contributions towards this goal:
|
| 23 |
+
|
| 24 |
+
• We demonstrate that GANs benefit dramatically from scaling, and train models with two to four times as many parameters and eight times the batch size compared to prior art. We introduce two simple, general architectural changes that improve scalability, and modify a regularization scheme to improve conditioning, demonstrably boosting performance.
|
| 25 |
+
|
| 26 |
+
• As a side effect of our modifications, our models become amenable to the “truncation trick,” a simple sampling technique that allows explicit, fine-grained control of the tradeoff between sample variety and fidelity.
|
| 27 |
+
We discover instabilities specific to large scale GANs, and characterize them empirically. Leveraging insights from this analysis, we demonstrate that a combination of novel and existing techniques can reduce these instabilities, but complete training stability can only be achieved at a dramatic cost to performance.
|
| 28 |
+
|
| 29 |
+
Our modifications substantially improve class-conditional GANs. When trained on ImageNet at $1 2 8 \times 1 2 8$ resolution, our models (BigGANs) improve the state-of-the-art Inception Score (IS) and Frechet Inception Distance (FID) from 52.52 and 18.65 to 166.5 and 7.4 respectively. We also ´ successfully train BigGANs on ImageNet at $2 5 6 \times 2 5 6$ and $5 1 2 \times 5 1 2$ resolution, and achieve IS and FID of 232.5 and 8.1 at $2 5 6 \times 2 5 6$ and IS and FID of 241.5 and 11.5 at $5 1 2 \times 5 1 2$ . Finally, we train our models on an even larger dataset – JFT-300M – and demonstrate that our design choices transfer well from ImageNet. Code and weights for our pretrained generators are publicly available 1.
|
| 30 |
+
|
| 31 |
+
# 2 BACKGROUND
|
| 32 |
+
|
| 33 |
+
A Generative Adversarial Network (GAN) involves Generator $\mathbf { \Pi } ( \pmb { \mathsf { G } } )$ and Discriminator (D) networks whose purpose, respectively, is to map random noise to samples and discriminate real and generated samples. Formally, the GAN objective, in its original form (Goodfellow et al., 2014) involves finding a Nash equilibrium to the following two player min-max problem:
|
| 34 |
+
|
| 35 |
+
$$
|
| 36 |
+
\operatorname* { m i n } _ { G } \operatorname* { m a x } _ { D } \mathbb { E } _ { { x } \sim { q _ { \mathrm { d a t a } } } ( \boldsymbol { x } ) } [ \log D ( \boldsymbol { x } ) ] + \mathbb { E } _ { \boldsymbol { z } \sim p ( \boldsymbol { z } ) } [ \log ( 1 - D ( G ( \boldsymbol { z } ) ) ) ] ,
|
| 37 |
+
$$
|
| 38 |
+
|
| 39 |
+
where $z ~ \in ~ \mathbb { R } ^ { d _ { z } }$ is a latent variable drawn from distribution $p ( z )$ such as $\mathcal { N } ( 0 , I )$ or $\mathcal { U } [ - 1 , 1 ]$ . When applied to images, $\pmb { \mathsf { G } }$ and D are usually convolutional neural networks (Radford et al., 2016). Without auxiliary stabilization techniques, this training procedure is notoriously brittle, requiring finely-tuned hyperparameters and architectural choices to work at all.
|
| 40 |
+
|
| 41 |
+
Much recent research has accordingly focused on modifications to the vanilla GAN procedure to impart stability, drawing on a growing body of empirical and theoretical insights (Nowozin et al., 2016; Sønderby et al., 2017; Fedus et al., 2018). One line of work is focused on changing the objective function (Arjovsky et al., 2017; Mao et al., 2016; Lim & Ye, 2017; Bellemare et al., 2017; Salimans et al., 2018) to encourage convergence. Another line is focused on constraining D through gradient penalties (Gulrajani et al., 2017; Kodali et al., 2017; Mescheder et al., 2018) or normalization (Miyato et al., 2018), both to counteract the use of unbounded loss functions and ensure D provides gradients everywhere to G.
|
| 42 |
+
|
| 43 |
+
Of particular relevance to our work is Spectral Normalization (Miyato et al., 2018), which enforces Lipschitz continuity on D by normalizing its parameters with running estimates of their first singular values, inducing backwards dynamics that adaptively regularize the top singular direction. Relatedly Odena et al. (2018) analyze the condition number of the Jacobian of G and find that performance is dependent on G’s conditioning. Zhang et al. (2018) find that employing Spectral Normalization in $\pmb { \mathsf { G } }$ improves stability, allowing for fewer D steps per iteration. We extend on these analyses to gain further insight into the pathology of GAN training.
|
| 44 |
+
|
| 45 |
+
Other works focus on the choice of architecture, such as SA-GAN (Zhang et al., 2018) which adds the self-attention block from (Wang et al., 2018) to improve the ability of both G and D to model global structure. ProGAN (Karras et al., 2018) trains high-resolution GANs in the single-class setting by training a single model across a sequence of increasing resolutions.
|
| 46 |
+
|
| 47 |
+
In conditional GANs (Mirza & Osindero, 2014) class information can be fed into the model in various ways. In (Odena et al., 2017) it is provided to G by concatenating a 1-hot class vector to the noise vector, and the objective is modified to encourage conditional samples to maximize the corresponding class probability predicted by an auxiliary classifier. de Vries et al. (2017) and
|
| 48 |
+
|
| 49 |
+
<table><tr><td rowspan=1 colspan=1>Batch</td><td rowspan=1 colspan=1>Ch.</td><td rowspan=1 colspan=1>Param (M)</td><td rowspan=1 colspan=1>Shared</td><td rowspan=1 colspan=1>Skip-z</td><td rowspan=1 colspan=1>Ortho.</td><td rowspan=1 colspan=1>Itr ×103</td><td rowspan=1 colspan=1>FID</td><td rowspan=1 colspan=2>IS</td></tr><tr><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>81.5</td><td rowspan=1 colspan=3>SA-GAN Baseline</td><td rowspan=1 colspan=1>1000</td><td rowspan=1 colspan=1>18.65</td><td rowspan=1 colspan=2>52.52</td></tr><tr><td rowspan=1 colspan=1>512</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>81.5</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>1000</td><td rowspan=1 colspan=1>15.30</td><td rowspan=1 colspan=1>58.77(±1.18)</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>1024</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>81.5</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>1000</td><td rowspan=1 colspan=1>14.88</td><td rowspan=1 colspan=1>63.03(±1.42)</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>2048</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>81.5</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>732</td><td rowspan=1 colspan=1>12.39</td><td rowspan=1 colspan=1>76.85(±3.83)</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>2048</td><td rowspan=1 colspan=1>96</td><td rowspan=1 colspan=1>173.5</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>295(±18)</td><td rowspan=1 colspan=1>9.54(±0.62)</td><td rowspan=1 colspan=1>92.98(±4.27)</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>2048</td><td rowspan=1 colspan=1>96</td><td rowspan=1 colspan=1>160.6</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>185(±11)</td><td rowspan=1 colspan=1>9.18(±0.13)</td><td rowspan=1 colspan=1>94.94(±1.32)</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>2048</td><td rowspan=1 colspan=1>96</td><td rowspan=1 colspan=1>158.3</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>152(±7)</td><td rowspan=1 colspan=1>8.73(±0.45)</td><td rowspan=1 colspan=2>98.76((±2.84)</td></tr><tr><td rowspan=1 colspan=1>2048</td><td rowspan=1 colspan=1>96</td><td rowspan=1 colspan=1>158.3</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>了</td><td rowspan=1 colspan=1>165(±13)</td><td rowspan=1 colspan=1>8.51(±0.32)</td><td rowspan=1 colspan=1>99.31(±2.10)</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>2048</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>71.3</td><td rowspan=1 colspan=1>了</td><td rowspan=1 colspan=1>了</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>371(±7)</td><td rowspan=1 colspan=1>10.48(±0.10)</td><td rowspan=1 colspan=1>86.90(±0.61)</td><td rowspan=1 colspan=1></td></tr></table>
|
| 50 |
+
|
| 51 |
+
Table 1: Frechet Inception Distance (FID, lower is better) and Inception Score (IS, higher is better)´ for ablations of our proposed modifications. Batch is batch size, Param is total number of parameters, $C h$ . is the channel multiplier representing the number of units in each layer, Shared is using shared embeddings, Skip- $z$ is using skip connections from the latent to multiple layers, Ortho. is Orthogonal Regularization, and $I t r$ indicates if the setting is stable to $1 0 ^ { 6 }$ iterations, or it collapses at the given iteration. Other than rows 1-4, results are computed across 8 random initializations.
|
| 52 |
+
|
| 53 |
+
Dumoulin et al. (2017) modify the way class conditioning is passed to G by supplying it with classconditional gains and biases in BatchNorm (Ioffe & Szegedy, 2015) layers. In Miyato & Koyama (2018), D is conditioned by using the cosine similarity between its features and a set of learned class embeddings as additional evidence for distinguishing real and generated samples, effectively encouraging generation of samples whose features match a learned class prototype.
|
| 54 |
+
|
| 55 |
+
Objectively evaluating implicit generative models is difficult (Theis et al., 2015). A variety of works have proposed heuristics for measuring the sample quality of models without tractable likelihoods (Salimans et al., 2016; Heusel et al., 2017; Binkowski et al., 2018; Wu et al., 2017). Of these, ´ the Inception Score (IS, Salimans et al. (2016)) and Frechet Inception Distance (FID, Heusel et al. ´ (2017)) have become popular despite their notable flaws (Barratt & Sharma, 2018). We employ them as approximate measures of sample quality, and to enable comparison against previous work.
|
| 56 |
+
|
| 57 |
+
# 3 SCALING UP GANS
|
| 58 |
+
|
| 59 |
+
In this section, we explore methods for scaling up GAN training to reap the performance benefits of larger models and larger batches. As a baseline, we employ the SA-GAN architecture of Zhang et al. (2018), which uses the hinge loss (Lim & Ye, 2017; Tran et al., 2017) GAN objective. We provide class information to $\pmb { \mathsf { G } }$ with class-conditional BatchNorm (Dumoulin et al., 2017; de Vries et al., 2017) and to D with projection (Miyato & Koyama, 2018). The optimization settings follow Zhang et al. (2018) (notably employing Spectral Norm in G) with the modification that we halve the learning rates and take two D steps per G step. For evaluation, we employ moving averages of G’s weights following Karras et al. (2018); Mescheder et al. (2018); Yazc et al. (2018), with a decay of 0.9999. We use Orthogonal Initialization (Saxe et al., 2014), whereas previous works used $\dot { \mathcal { N } } ( 0 , 0 . 0 2 I )$ (Radford et al., 2016) or Xavier initialization (Glorot & Bengio, 2010). Each model is trained on 128 to 512 cores of a Google TPUv3 Pod (Google, 2018), and computes BatchNorm statistics in G across all devices, rather than per-device as is typical. We find progressive growing (Karras et al., 2018) unnecessary even for our $5 1 2 \times 5 1 2$ models. Additional details are in Appendix C.
|
| 60 |
+
|
| 61 |
+
We begin by increasing the batch size for the baseline model, and immediately find tremendous benefits in doing so. Rows 1-4 of Table 1 show that simply increasing the batch size by a factor of 8 improves the state-of-the-art IS by $46 \%$ . We conjecture that this is a result of each batch covering more modes, providing better gradients for both networks. One notable side effect of this scaling is that our models reach better final performance in fewer iterations, but become unstable and undergo complete training collapse. We discuss the causes and ramifications of this in Section 4. For these experiments, we report scores from checkpoints saved just before collapse.
|
| 62 |
+
|
| 63 |
+
We then increase the width (number of channels) in each layer by $50 \%$ , approximately doubling the number of parameters in both models. This leads to a further IS improvement of $21 \%$ , which we posit is due to the increased capacity of the model relative to the complexity of the dataset. Doubling the depth did not initially lead to improvement – we addressed this later in the BigGAN-deep model, which uses a different residual block structure.
|
| 64 |
+
|
| 65 |
+

|
| 66 |
+
Figure 2: (a) The effects of increasing truncation. From left to right, the threshold is set to 2, 1, 0.5, 0.04. (b) Saturation artifacts from applying truncation to a poorly conditioned model.
|
| 67 |
+
|
| 68 |
+
We note that class embeddings $c$ used for the conditional BatchNorm layers in G contain a large number of weights. Instead of having a separate layer for each embedding (Miyato et al., 2018; Zhang et al., 2018), we opt to use a shared embedding, which is linearly projected to each layer’s gains and biases (Perez et al., 2018). This reduces computation and memory costs, and improves training speed (in number of iterations required to reach a given performance) by $37 \%$ . Next, we add direct skip connections (skip- $z$ ) from the noise vector $z$ to multiple layers of $\pmb { \mathsf { G } }$ rather than just the initial layer. The intuition behind this design is to allow $\pmb { \mathsf { G } }$ to use the latent space to directly influence features at different resolutions and levels of hierarchy. In BigGAN, this is accomplished by splitting $z$ into one chunk per resolution, and concatenating each chunk to the conditional vector $c$ which gets projected to the BatchNorm gains and biases. In BigGAN-deep, we use an even simpler design, concatenating the entire $z$ with the conditional vector without splitting it into chunks. Previous works (Goodfellow et al., 2014; Denton et al., 2015) have considered variants of this concept; our implementation is a minor modification of this design. Skip- $z$ provides a modest performance improvement of around $4 \%$ , and improves training speed by a further $18 \%$ .
|
| 69 |
+
|
| 70 |
+
# 3.1 TRADING OFF VARIETY AND FIDELITY WITH THE TRUNCATION TRICK
|
| 71 |
+
|
| 72 |
+
Unlike models which need to backpropagate through their latents, GANs can employ an arbitrary prior $p ( z )$ , yet the vast majority of previous works have chosen to draw $z$ from either $\mathcal { N } ( 0 , I )$ or $\mathcal { U } [ - 1 , 1 ]$ . We question the optimality of this choice and explore alternatives in Appendix E.
|
| 73 |
+
|
| 74 |
+
Remarkably, our best results come from using a different latent distribution for sampling than was used in training. Taking a model trained with $z \sim \mathcal { N } ( 0 , I )$ and sampling $z$ from a truncated normal (where values which fall outside a range are resampled to fall inside that range) immediately provides a boost to IS and FID. We call this the Truncation Trick: truncating a $z$ vector by resampling the values with magnitude above a chosen threshold leads to improvement in individual sample quality at the cost of reduction in overall sample variety. Figure 2(a) demonstrates this: as the threshold is reduced, and elements of $z$ are truncated towards zero (the mode of the latent distribution), individual samples approach the mode of G’s output distribution. Related observations about this trade-off were made in (Marchesi, 2016; Pieters & Wiering, 2014).
|
| 75 |
+
|
| 76 |
+
This technique allows fine-grained, post-hoc selection of the trade-off between sample quality and variety for a given G. Notably, we can compute FID and IS for a range of thresholds, obtaining the variety-fidelity curve reminiscent of the precision-recall curve (Figure 17). As IS does not penalize lack of variety in class-conditional models, reducing the truncation threshold leads to a direct increase in IS (analogous to precision). FID penalizes lack of variety (analogous to recall) but also rewards precision, so we initially see a moderate improvement in FID, but as truncation approaches zero and variety diminishes, the FID sharply drops. The distribution shift caused by sampling with different latents than those seen in training is problematic for many models. Some of our larger models are not amenable to truncation, producing saturation artifacts (Figure 2(b)) when fed truncated noise. To counteract this, we seek to enforce amenability to truncation by conditioning G to be smooth, so that the full space of $z$ will map to good output samples. For this, we turn to Orthogonal Regularization (Brock et al., 2017), which directly enforces the orthogonality condition:
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
R _ { \beta } ( W ) = \beta \| W ^ { \top } W - I \| _ { \mathrm { F } } ^ { 2 } ,
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
where $W$ is a weight matrix and $\beta$ a hyperparameter. This regularization is known to often be too limiting (Miyato et al., 2018), so we explore several variants designed to relax the constraint while still imparting the desired smoothness to our models. The version we find to work best removes the diagonal terms from the regularization, and aims to minimize the pairwise cosine similarity between filters but does not constrain their norm:
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
\begin{array} { r } { R _ { \beta } ( W ) = \beta \| W ^ { \top } W \odot ( \mathbf { 1 } - I ) \| _ { \mathrm { F } } ^ { 2 } , } \end{array}
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
where 1 denotes a matrix with all elements set to 1. We sweep $\beta$ values and select $1 0 ^ { - 4 }$ , finding this small added penalty sufficient to improve the likelihood that our models will be amenable to truncation. Across runs in Table 1, we observe that without Orthogonal Regularization, only $16 \%$ of models are amenable to truncation, compared to $60 \%$ when trained with Orthogonal Regularization.
|
| 89 |
+
|
| 90 |
+
# 3.2 SUMMARY
|
| 91 |
+
|
| 92 |
+
We find that current GAN techniques are sufficient to enable scaling to large models and distributed, large-batch training. We find that we can dramatically improve the state of the art and train models up to $5 1 2 \times 5 1 2$ resolution without need for explicit multiscale methods like Karras et al. (2018). Despite these improvements, our models undergo training collapse, necessitating early stopping in practice. In the next two sections we investigate why settings which were stable in previous works become unstable when applied at scale.
|
| 93 |
+
|
| 94 |
+
# 4 ANALYSIS
|
| 95 |
+
|
| 96 |
+

|
| 97 |
+
Figure 3: A typical plot of the first singular value $\sigma _ { 0 }$ in the layers of G (a) and D (b) before Spectral Normalization. Most layers in G have well-behaved spectra, but without constraints a small subset grow throughout training and explode at collapse. D’s spectra are noisier but otherwise betterbehaved. Colors from red to violet indicate increasing depth.
|
| 98 |
+
|
| 99 |
+
# 4.1 CHARACTERIZING INSTABILITY: THE GENERATOR
|
| 100 |
+
|
| 101 |
+
Much previous work has investigated GAN stability from a variety of analytical angles and on toy problems, but the instabilities we observe occur for settings which are stable at small scale, necessitating direct analysis at large scale. We monitor a range of weight, gradient, and loss statistics during training, in search of a metric which might presage the onset of training collapse, similar to (Odena et al., 2018). We found the top three singular values $\sigma _ { 0 } , \sigma _ { 1 } , \sigma _ { 2 }$ of each weight matrix to be the most informative. They can be efficiently computed using the Alrnoldi iteration method (Golub & der Vorst, 2000), which extends the power iteration method, used in Miyato et al. (2018), to estimation of additional singular vectors and values. A clear pattern emerges, as can be seen in Figure 3(a) and Appendix F: most G layers have well-behaved spectral norms, but some layers (typically the first layer in G, which is over-complete and not convolutional) are ill-behaved, with spectral norms that grow throughout training and explode at collapse.
|
| 102 |
+
|
| 103 |
+
To ascertain if this pathology is a cause of collapse or merely a symptom, we study the effects of imposing additional conditioning on $\pmb { \mathsf { G } }$ to explicitly counteract spectral explosion. First, we directly regularize the top singular values $\sigma _ { 0 }$ of each weight, either towards a fixed value $\sigma _ { r e g }$ or towards some ratio $r$ of the second singular value, $r \cdot s g ( \sigma _ { 1 } )$ (with $s g$ the stop-gradient operation to prevent the regularization from increasing $\sigma _ { 1 }$ ). Alternatively, we employ a partial singular value decomposition to instead clamp $\sigma _ { 0 }$ . Given a weight $W$ , its first singular vectors $u _ { 0 }$ and $v _ { 0 }$ , and $\sigma _ { c l a m p }$ the value to which the $\sigma _ { 0 }$ will be clamped, our weights become:
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
W = W - \operatorname* { m a x } ( 0 , \sigma _ { 0 } - \sigma _ { c l a m p } ) v _ { 0 } u _ { 0 } ^ { \top } ,
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
where $\sigma _ { c l a m p }$ is set to either $\sigma _ { r e g }$ or $r \cdot s g ( \sigma _ { 1 } )$ . We observe that both with and without Spectral Normalization these techniques have the effect of preventing the gradual increase and explosion of either $\sigma _ { 0 }$ or $\frac { \sigma _ { 0 } } { \sigma _ { 1 } }$ , but even though in some cases they mildly improve performance, no combination prevents training collapse. This evidence suggests that while conditioning $\pmb { \mathsf { G } }$ might improve stability, it is insufficient to ensure stability. We accordingly turn our attention to $\mathbf { D }$ .
|
| 110 |
+
|
| 111 |
+
# 4.2 CHARACTERIZING INSTABILITY: THE DISCRIMINATOR
|
| 112 |
+
|
| 113 |
+
As with $\pmb { \mathsf { G } }$ , we analyze the spectra of D’s weights to gain insight into its behavior, then seek to stabilize training by imposing additional constraints. Figure 3(b) displays a typical plot of $\sigma _ { 0 }$ for $\mathbf { D }$ (with further plots in Appendix F). Unlike G, we see that the spectra are noisy, $\frac { \sigma _ { 0 } } { \sigma _ { 1 } }$ is well-behaved, and the singular values grow throughout training but only jump at collapse, instead of exploding.
|
| 114 |
+
|
| 115 |
+
The spikes in D’s spectra might suggest that it periodically receives very large gradients, but we observe that the Frobenius norms are smooth (Appendix F), suggesting that this effect is primarily concentrated on the top few singular directions. We posit that this noise is a result of optimization through the adversarial training process, where $\pmb { \mathsf { G } }$ periodically produces batches which strongly perturb D . If this spectral noise is causally related to instability, a natural counter is to employ gradient penalties, which explicitly regularize changes in $\mathbf { D }$ ’s Jacobian. We explore the $R _ { 1 }$ zero-centered gradient penalty from Mescheder et al. (2018):
|
| 116 |
+
|
| 117 |
+
$$
|
| 118 |
+
R _ { 1 } : = \frac { \gamma } { 2 } \mathbb { E } _ { p _ { D } ( x ) } \left[ \| \nabla D ( x ) \| _ { F } ^ { 2 } \right] .
|
| 119 |
+
$$
|
| 120 |
+
|
| 121 |
+
With the default suggested $\gamma$ strength of 10, training becomes stable and improves the smoothness and boundedness of spectra in both $\pmb { \mathsf { G } }$ and D, but performance severely degrades, resulting in a $45 \%$ reduction in IS. Reducing the penalty partially alleviates this degradation, but results in increasingly ill-behaved spectra; even with the penalty strength reduced to 1 (the lowest strength for which sudden collapse does not occur) the IS is reduced by $20 \%$ . Repeating this experiment with various strengths of Orthogonal Regularization, DropOut (Srivastava et al., 2014), and L2 (See Appendix I for details), reveals similar behaviors for these regularization strategies: with high enough penalties on D, training stability can be achieved, but at a substantial cost to performance.
|
| 122 |
+
|
| 123 |
+
We also observe that D’s loss approaches zero during training, but undergoes a sharp upward jump at collapse (Appendix F). One possible explanation for this behavior is that D is overfitting to the training set, memorizing training examples rather than learning some meaningful boundary between real and generated images. As a simple test for D’s memorization (related to Gulrajani et al. (2017)), we evaluate uncollapsed discriminators on the ImageNet training and validation sets, and measure what percentage of samples are classified as real or generated. While the training accuracy is consistently above $98 \%$ , the validation accuracy falls in the range of $50 \%$ , no better than random guessing (regardless of regularization strategy). This confirms that D is indeed memorizing the training set; we deem this in line with D’s role, which is not explicitly to generalize, but to distill the training data and provide a useful learning signal for G. Additional experiments and discussion are provided in Appendix G.
|
| 124 |
+
|
| 125 |
+
# 4.3 SUMMARY
|
| 126 |
+
|
| 127 |
+
We find that stability does not come solely from $\pmb { \mathsf { G } }$ or $\mathbf { D }$ , but from their interaction through the adversarial training process. While the symptoms of their poor conditioning can be used to track and identify instability, ensuring reasonable conditioning proves necessary for training but insufficient to prevent eventual training collapse. It is possible to enforce stability by strongly constraining D, but doing so incurs a dramatic cost in performance. With current techniques, better final performance can be achieved by relaxing this conditioning and allowing collapse to occur at the later stages of training, by which time a model is sufficiently trained to achieve good results.
|
| 128 |
+
|
| 129 |
+
Table 2: Evaluation of models at different resolutions. We report scores without truncation (Column 3), scores at the best FID (Column 4), scores at the IS of validation data (Column 5), and scores at the max IS (Column 6). Standard deviations are computed over at least three random initializations.
|
| 130 |
+
|
| 131 |
+
<table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>Res.</td><td rowspan=1 colspan=1>FID/IS</td><td rowspan=1 colspan=1>(min FID)/ IS</td><td rowspan=1 colspan=1>FID/ (valid IS)</td><td rowspan=1 colspan=1>FID/ (max IS)</td></tr><tr><td rowspan=1 colspan=1>SN-GAN</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>27.62/36.80</td><td rowspan=1 colspan=1>N/A</td><td rowspan=1 colspan=1>N/A</td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>SA-GAN</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>18.65/52.52</td><td rowspan=1 colspan=1>N/A</td><td rowspan=1 colspan=1>N/A</td><td rowspan=1 colspan=1>N/A</td></tr><tr><td rowspan=1 colspan=1>BigGAN</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>8.7± .6/98.8±3</td><td rowspan=1 colspan=1>7.7 ± 2/126.5±0</td><td rowspan=1 colspan=1>9.6±.4/166.3±1</td><td rowspan=1 colspan=1>25 ±2/206± 2</td></tr><tr><td rowspan=1 colspan=1>BigGAN</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>8.7 ± 1/142.3± 2</td><td rowspan=1 colspan=1>7.7 ± .1/178.0±5</td><td rowspan=1 colspan=1>9.3 ± 3/233.1 ± 1</td><td rowspan=1 colspan=1>25±5/291±4</td></tr><tr><td rowspan=1 colspan=1>BigGAN</td><td rowspan=1 colspan=1>512</td><td rowspan=1 colspan=1>8.1/144.2</td><td rowspan=1 colspan=1>7.6/170.3</td><td rowspan=1 colspan=1>11.8/241.4</td><td rowspan=1 colspan=1>27.0/275</td></tr><tr><td rowspan=1 colspan=1>BigGAN-deep</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>5.7 ± 3/124.5± 2</td><td rowspan=1 colspan=1>6.3± 3/148.1±4</td><td rowspan=1 colspan=1>7.4 ± .6/166.5±1</td><td rowspan=1 colspan=1>25 ±2/253±11</td></tr><tr><td rowspan=1 colspan=1>BigGAN-deep</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>6.9 ± .2/171.4± 2</td><td rowspan=1 colspan=1>7.0±.1/202.6± 2</td><td rowspan=1 colspan=1>8.1 ± 1/232.5 ± 2</td><td rowspan=1 colspan=1>27±8/317±6</td></tr><tr><td rowspan=1 colspan=1>BigGAN-deep</td><td rowspan=1 colspan=1>512</td><td rowspan=1 colspan=1>7.5/152.8</td><td rowspan=1 colspan=1>7.7/181.4</td><td rowspan=1 colspan=1>11.5/241.5</td><td rowspan=1 colspan=1>39.7/298</td></tr></table>
|
| 132 |
+
|
| 133 |
+
# 5 EXPERIMENTS
|
| 134 |
+
|
| 135 |
+

|
| 136 |
+
Figure 4: Samples from our BigGAN model with truncation threshold 0.5 (a-c) and an example of class leakage in a partially trained model (d).
|
| 137 |
+
|
| 138 |
+
# 5.1 EVALUATION ON IMAGENET
|
| 139 |
+
|
| 140 |
+
We evaluate our models on ImageNet ILSVRC 2012 (Russakovsky et al., 2015) at $1 2 8 \times 1 2 8$ , $2 5 6 \times 2 5 6$ , and $5 1 2 \times 5 1 2$ resolutions, employing the settings from Table 1, row 8. The samples generated by our models are presented in Figure 4, with additional samples in Appendix A, and online 2. We report IS and FID in Table 2. As our models are able to trade sample variety for quality, it is unclear how best to compare against prior art; we accordingly report values at three settings, with complete curves in Appendix D. First, we report the FID/IS values at the truncation setting which attains the best FID. Second, we report the FID at the truncation setting for which our model’s IS is the same as that attained by the real validation data, reasoning that this is a passable measure of maximum sample variety achieved while still achieving a good level of “objectness.” Third, we report FID at the maximum IS achieved by each model, to demonstrate how much variety must be traded off to maximize quality. In all three cases, our models outperform the previous state-of-the-art IS and FID scores achieved by Miyato et al. (2018) and Zhang et al. (2018).
|
| 141 |
+
|
| 142 |
+
In addition to the BigGAN model introduced in the first version of the paper and used in the majority of experiments (unless otherwise stated), we also present a 4x deeper model (BigGAN-deep) which uses a different configuration of residual blocks. As can be seen from Table 2, BigGAN-deep substantially outperforms BigGAN across all resolutions and metrics. This confirms that our findings extend to other architectures, and that increased depth leads to improvement in sample quality. Both BigGAN and BigGAN-deep architectures are described in Appendix B.
|
| 143 |
+
|
| 144 |
+
Table 3: BigGAN results on JFT-300M at $2 5 6 \times 2 5 6$ resolution. The $F I D$ and $I S$ columns report these scores given by the JFT-300M-trained Inception v2 classifier with noise distributed as $z \sim \mathcal { N } ( 0 , I )$ (non-truncated). The $\left( m i n F I D \right) / I S$ and $F I D / ( m a x I S )$ columns report scores at the best FID and IS from a sweep across truncated noise distributions ranging from $\sigma = 0$ to $\sigma = 2$ . Images from the JFT-300M validation set have an IS of 50.88 and FID of 1.94.
|
| 145 |
+
|
| 146 |
+
<table><tr><td rowspan=1 colspan=1>Ch.</td><td rowspan=1 colspan=1>Param (M)</td><td rowspan=1 colspan=1>Shared</td><td rowspan=1 colspan=1>Skip-z</td><td rowspan=1 colspan=1>Ortho.</td><td rowspan=1 colspan=1>FID</td><td rowspan=1 colspan=1>IS</td><td rowspan=1 colspan=1>(min FID)/ IS</td><td rowspan=1 colspan=1>FID /(max IS)</td></tr><tr><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>317.1</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>48.38</td><td rowspan=1 colspan=1>23.27</td><td rowspan=1 colspan=1>48.6/23.1</td><td rowspan=1 colspan=1>49.1/23.9</td></tr><tr><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>99.4</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>23.48</td><td rowspan=1 colspan=1>24.78</td><td rowspan=1 colspan=1>22.4/21.0</td><td rowspan=1 colspan=1>60.9/35.8</td></tr><tr><td rowspan=1 colspan=1>96</td><td rowspan=1 colspan=1>207.9</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>了</td><td rowspan=1 colspan=1>\</td><td rowspan=1 colspan=1>18.84</td><td rowspan=1 colspan=1>27.86</td><td rowspan=1 colspan=1>17.1/23.3</td><td rowspan=1 colspan=1>51.6/38.1</td></tr><tr><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>355.7</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>了</td><td rowspan=1 colspan=1>厂</td><td rowspan=1 colspan=1>13.75</td><td rowspan=1 colspan=1>30.61</td><td rowspan=1 colspan=1>13.0/28.0</td><td rowspan=1 colspan=1>46.2/47.8</td></tr></table>
|
| 147 |
+
|
| 148 |
+
Our observation that D overfits to the training set, coupled with our model’s sample quality, raises the obvious question of whether or not G simply memorizes training points. To test this, we perform class-wise nearest neighbors analysis in pixel space and the feature space of pre-trained classifier networks (Appendix A). In addition, we present both interpolations between samples and class-wise interpolations (where $z$ is held constant) in Figures 8 and 9. Our model convincingly interpolates between disparate samples, and the nearest neighbors for its samples are visually distinct, suggesting that our model does not simply memorize training data.
|
| 149 |
+
|
| 150 |
+
We note that some failure modes of our partially-trained models are distinct from those previously observed. Most previous failures involve local artifacts (Odena et al., 2016), images consisting of texture blobs instead of objects (Salimans et al., 2016), or the canonical mode collapse. We observe class leakage, where images from one class contain properties of another, as exemplified by Figure 4(d). We also find that many classes on ImageNet are more difficult than others for our model; our model is more successful at generating dogs (which make up a large portion of the dataset, and are mostly distinguished by their texture) than crowds (which comprise a small portion of the dataset and have more large-scale structure). Further discussion is available in Appendix A.
|
| 151 |
+
|
| 152 |
+
# 5.2 ADDITIONAL EVALUATION ON JFT-300M
|
| 153 |
+
|
| 154 |
+
To confirm that our design choices are effective for even larger and more complex and diverse datasets, we also present results of our system on a subset of JFT-300M (Sun et al., 2017). The full JFT-300M dataset contains 300M real-world images labeled with 18K categories. Since the category distribution is heavily long-tailed, we subsample the dataset to keep only images with the 8.5K most common labels. The resulting dataset contains 292M images – two orders of magnitude larger than ImageNet. For images with multiple labels, we sample a single label randomly and independently whenever an image is sampled. To compute IS and FID for the GANs trained on this dataset, we use an Inception v2 classifier (Szegedy et al., 2016) trained on this dataset. Quantitative results are presented in Table 3. All models are trained with batch size 2048. We compare an ablated version of our model – comparable to SA-GAN (Zhang et al., 2018) but with the larger batch size – against a “full” BigGAN model that makes uses of all of the techniques applied to obtain the best results on ImageNet (shared embedding, skip- $z$ , and orthogonal regularization). Our results show that these techniques substantially improve performance even in the setting of this much larger dataset at the same model capacity (64 base channels). We further show that for a dataset of this scale, we see significant additional improvements from expanding the capacity of our models to 128 base channels, while for ImageNet GANs that additional capacity was not beneficial.
|
| 155 |
+
|
| 156 |
+
In Figure 19 (Appendix D), we present truncation plots for models trained on this dataset. Unlike for ImageNet, where truncation limits of $\sigma \approx 0$ tend to produce the highest fidelity scores, IS is typically maximized for our JFT-300M models when the truncation value $\sigma$ ranges from 0.5 to 1. We suspect that this is at least partially due to the intra-class variability of JFT-300M labels, as well as the relative complexity of the image distribution, which includes images with multiple objects at a variety of scales. Interestingly, unlike models trained on ImageNet, where training tends to collapse without heavy regularization (Section 4), the models trained on JFT-300M remain stable over many hundreds of thousands of iterations. This suggests that moving beyond ImageNet to larger datasets may partially alleviate GAN stability issues.
|
| 157 |
+
|
| 158 |
+
The improvement over the baseline GAN model that we achieve on this dataset without changes to the underlying models or training and regularization techniques (beyond expanded capacity) demonstrates that our findings extend from ImageNet to datasets with scale and complexity thus far unprecedented for generative models of images.
|
| 159 |
+
|
| 160 |
+
# 6 CONCLUSION
|
| 161 |
+
|
| 162 |
+
We have demonstrated that Generative Adversarial Networks trained to model natural images of multiple categories highly benefit from scaling up, both in terms of fidelity and variety of the generated samples. As a result, our models set a new level of performance among ImageNet GAN models, improving on the state of the art by a large margin. We have also presented an analysis of the training behavior of large scale GANs, characterized their stability in terms of the singular values of their weights, and discussed the interplay between stability and performance.
|
| 163 |
+
|
| 164 |
+
# ACKNOWLEDGMENTS
|
| 165 |
+
|
| 166 |
+
We would like to thank Kai Arulkumaran, Matthias Bauer, Peter Buchlovsky, Jeffrey Defauw, Sander Dieleman, Ian Goodfellow, Ariel Gordon, Karol Gregor, Dominik Grewe, Chris Jones, Jacob Menick, Augustus Odena, Suman Ravuri, Ali Razavi, Mihaela Rosca, and Jeff Stanway.
|
| 167 |
+
|
| 168 |
+
# REFERENCES
|
| 169 |
+
|
| 170 |
+
Mart´ın Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, Manjunath Kudlur, Josh Levenberg, Rajat Monga, Sherry Moore, Derek Murray, Benoit Steiner, Paul Tucker, Vijay Vasudevan, Pete Warden, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: A system for large-scale machine learning. In OSDI, 2016.
|
| 171 |
+
|
| 172 |
+
Martin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein generative adversarial networks. ´ In ICML, 2017.
|
| 173 |
+
|
| 174 |
+
Shane Barratt and Rishi Sharma. A note on the Inception Score. In arXiv preprint arXiv:1801.01973, 2018.
|
| 175 |
+
|
| 176 |
+
Marc G. Bellemare, Ivo Danihelka, Will Dabney, Shakir Mohamed, Balaji Lakshminarayanan, Stephan Hoyer, and Remi Munos. The Cramer distance as a solution to biased Wasserstein gra- ´ dients. In arXiv preprint arXiv:1705.10743, 2017.
|
| 177 |
+
|
| 178 |
+
Mikolaj Binkowski, Dougal J. Sutherland, Michael Arbel, and Arthur Gretton. Demystifying MMD ´ GANs. In ICLR, 2018.
|
| 179 |
+
|
| 180 |
+
Andrew Brock, Theodore Lim, J.M. Ritchie, and Nick Weston. Neural photo editing with introspective adversarial networks. In ICLR, 2017.
|
| 181 |
+
|
| 182 |
+
Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. Infogan: Interpretable representation learning by information maximizing generative adversarial nets. In NIPS, 2016.
|
| 183 |
+
|
| 184 |
+
Harm de Vries, Florian Strub, Jer´ emie Mary, Hugo Larochelle, Olivier Pietquin, and Aaron ´ Courville. Modulating early visual processing by language. In NIPS, 2017.
|
| 185 |
+
|
| 186 |
+
Emily Denton, Soumith Chintala, Arthur Szlam, and Rob Fergus. Deep generative image models using a laplacian pyramid of adversarial networks. In NIPS, 2015.
|
| 187 |
+
|
| 188 |
+
Vincent Dumoulin, Jonathon Shlens, and Manjunath Kudlur. A learned representation for artistic style. In ICLR, 2017.
|
| 189 |
+
|
| 190 |
+
William Fedus, Mihaela Rosca, Balaji Lakshminarayanan, Andrew M. Dai, Shakir Mohamed, and Ian Goodfellow. Many paths to equilibrium: GANs do not need to decrease a divergence at every step. In ICLR, 2018.
|
| 191 |
+
|
| 192 |
+
Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In AISTATS, 2010.
|
| 193 |
+
|
| 194 |
+
Gene Golub and Henk Van der Vorst. Eigenvalue computation in the 20th century. Journal of Computational and Applied Mathematics, 123:35–65, 2000.
|
| 195 |
+
|
| 196 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, and Aaron Courville Yoshua Bengio. Generative adversarial nets. In NIPS, 2014.
|
| 197 |
+
|
| 198 |
+
Google. Cloud TPUs. https://cloud.google.com/tpu/, 2018.
|
| 199 |
+
|
| 200 |
+
Ishaan Gulrajani, Faruk Ahmed, Mart´ın Arjovsky, Vincent Dumoulin, and Aaron C. Courville. Improved training of Wasserstein GANs. In NIPS, 2017.
|
| 201 |
+
|
| 202 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
|
| 203 |
+
|
| 204 |
+
Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, Gunter Klambauer, and ¨ Sepp Hochreiter. GANs trained by a two time-scale update rule converge to a local nash equilibrium. In NIPS, 2017.
|
| 205 |
+
|
| 206 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015.
|
| 207 |
+
|
| 208 |
+
Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of GANs for improved quality, stability, and variation. In ICLR, 2018.
|
| 209 |
+
|
| 210 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2014.
|
| 211 |
+
|
| 212 |
+
Naveen Kodali, Jacob Abernethy, James Hays, and Zsolt Kira. On convergence and stability of GANs. In arXiv preprint arXiv:1705.07215, 2017.
|
| 213 |
+
|
| 214 |
+
Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009.
|
| 215 |
+
|
| 216 |
+
Jae Hyun Lim and Jong Chul Ye. Geometric GAN. In arXiv preprint arXiv:1705.02894, 2017.
|
| 217 |
+
|
| 218 |
+
Xudong Mao, Qing Li, Haoran Xie, Raymond Y. K. Lau, and Zhen Wang. Least squares generative adversarial networks. In arXiv preprint arXiv:1611.04076, 2016.
|
| 219 |
+
|
| 220 |
+
Marco Marchesi. Megapixel size image creation using generative adversarial networks. In arXiv preprint arXiv:1706.00082, 2016.
|
| 221 |
+
|
| 222 |
+
Lars Mescheder, Andreas Geiger, and Sebastian Nowozin. Which training methods for GANs do actually converge? In ICML, 2018.
|
| 223 |
+
|
| 224 |
+
Mehdi Mirza and Simon Osindero. Conditional generative adversarial nets. In arXiv preprint arXiv:1411.1784, 2014.
|
| 225 |
+
|
| 226 |
+
Takeru Miyato and Masanori Koyama. cGANs with projection discriminator. In ICLR, 2018.
|
| 227 |
+
|
| 228 |
+
Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. In ICLR, 2018.
|
| 229 |
+
|
| 230 |
+
Sebastian Nowozin, Botond Cseke, and Ryota Tomioka. f-GAN: Training generative neural samplers using variational divergence minimization. In NIPS, 2016.
|
| 231 |
+
|
| 232 |
+
Augustus Odena, Vincent Dumoulin, and Chris Olah. Deconvolution and checkerboard artifacts. Distill, 2016.
|
| 233 |
+
|
| 234 |
+
Augustus Odena, Christopher Olah, and Jonathon Shlens. Conditional image synthesis with auxiliary classifier GANs. In ICML, 2017.
|
| 235 |
+
|
| 236 |
+
Augustus Odena, Jacob Buckman, Catherine Olsson, Tom B. Brown, Christopher Olah, Colin Raffel, and Ian Goodfellow. Is generator conditioning causally related to GAN performance? In ICML, 2018.
|
| 237 |
+
|
| 238 |
+
Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron Courville. FiLM: Visual reasoning with a general conditioning layer. In AAAI, 2018.
|
| 239 |
+
|
| 240 |
+
Mathijs Pieters and Marco Wiering. Comparing generative adversarial network techniques for image creation and modificatio. In arXiv preprint arXiv:1803.09093, 2014.
|
| 241 |
+
|
| 242 |
+
Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. In ICLR, 2016.
|
| 243 |
+
|
| 244 |
+
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, and Michael Bernstein. ImageNet large scale visual recognition challenge. IJCV, 115:211–252, 2015.
|
| 245 |
+
|
| 246 |
+
Tim Salimans and Diederik Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. In NIPS, 2016.
|
| 247 |
+
|
| 248 |
+
Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training GANs. In NIPS, 2016.
|
| 249 |
+
|
| 250 |
+
Tim Salimans, Han Zhang, Alec Radford, and Dimitris Metaxas. Improving GANs using optimal transport. In ICLR, 2018.
|
| 251 |
+
|
| 252 |
+
Andrew Saxe, James McClelland, and Surya Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. In ICLR, 2014.
|
| 253 |
+
|
| 254 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
|
| 255 |
+
|
| 256 |
+
Casper Kaae Sønderby, Jose Caballero, Lucas Theis, Wenzhe Shi, and Ferenc Huszr. Amortised map inference for image super-resolution. In ICLR, 2017.
|
| 257 |
+
|
| 258 |
+
Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. JMLR, 15:1929–1958, 2014.
|
| 259 |
+
|
| 260 |
+
Chen Sun, Abhinav Shrivastava, Saurabh Singh, and Abhinav Gupta. Revisiting unreasonable effectiveness of data in deep learning era. In ICCV, 2017.
|
| 261 |
+
|
| 262 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In CVPR, 2016.
|
| 263 |
+
|
| 264 |
+
Lucas Theis, Aaron van den Oord, and Matthias Bethge. A note on the evaluation of generative ¨ models. In arXiv preprint arXiv:1511.01844, 2015.
|
| 265 |
+
|
| 266 |
+
Dustin Tran, Rajesh Ranganath, and David M. Blei. Hierarchical implicit models and likelihood-free variational inference. In NIPS, 2017.
|
| 267 |
+
|
| 268 |
+
Xiaolong Wang, Ross B. Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In CVPR, 2018.
|
| 269 |
+
|
| 270 |
+
Yuhuai Wu, Yuri Burda, Ruslan Salakhutdinov, and Roger B. Grosse. On the quantitative analysis of decoder-based generative models. In ICLR, 2017.
|
| 271 |
+
|
| 272 |
+
Yasin Yazc, Chuan-Sheng Foo, Stefan Winkler, Kim-Hui Yap, Georgios Piliouras, and Vijay Chandrasekhar. The unusual effectiveness of averaging in gan training. In arXiv preprint arXiv:1806.04498, 2018.
|
| 273 |
+
|
| 274 |
+
Han Zhang, Ian Goodfellow, Dimitris Metaxas, and Augustus Odena. Self-attention generative adversarial networks. In arXiv preprint arXiv:1805.08318, 2018.
|
| 275 |
+
|
| 276 |
+
# APPENDIX A ADDITIONAL SAMPLES, INTERPOLATIONS, AND NEAREST NEIGHBORS FROM IMAGENET MODELS
|
| 277 |
+
|
| 278 |
+

|
| 279 |
+
Figure 5: Samples generated by our BigGAN model at $2 5 6 \times 2 5 6$ resolution.
|
| 280 |
+
|
| 281 |
+

|
| 282 |
+
Figure 6: Samples generated by our BigGAN model at $5 1 2 \times 5 1 2$ resolution.
|
| 283 |
+
|
| 284 |
+

|
| 285 |
+
Figure 7: Comparing easy classes (a) with difficult classes (b) at $5 1 2 \times 5 1 2$ . Classes such as dogs which are largely textural, and common in the dataset, are far easier to model than classes involving unaligned human faces or crowds. Such classes are more dynamic and structured, and often have details to which human observers are more sensitive. The difficulty of modeling global structure is further exacerbated when producing high-resolution images, even with non-local blocks.
|
| 286 |
+
|
| 287 |
+

|
| 288 |
+
Figure 8: Interpolations between $z , c$ pairs.
|
| 289 |
+
|
| 290 |
+

|
| 291 |
+
Figure 9: Interpolations between $c$ with $z$ held constant. Pose semantics are frequently maintained between endpoints (particularly in the final row). Row 2 demonstrates that grayscale is encoded in the joint $z , c$ space, rather than in $z$ .
|
| 292 |
+
|
| 293 |
+

|
| 294 |
+
Figure 10: Nearest neighbors in VGG-16-fc7 (Simonyan & Zisserman, 2015) feature space. The generated image is in the top left.
|
| 295 |
+
|
| 296 |
+

|
| 297 |
+
Figure 11: Nearest neighbors in ResNet-50-avgpool (He et al., 2016) feature space. The generated image is in the top left.
|
| 298 |
+
|
| 299 |
+

|
| 300 |
+
Figure 12: Nearest neighbors in pixel space. The generated image is in the top left.
|
| 301 |
+
|
| 302 |
+

|
| 303 |
+
Figure 13: Nearest neighbors in VGG-16-fc7 (Simonyan & Zisserman, 2015) feature space. The generated image is in the top left.
|
| 304 |
+
|
| 305 |
+

|
| 306 |
+
Figure 14: Nearest neighbors in ResNet-50-avgpool (He et al., 2016) feature space. The generated image is in the top left.
|
| 307 |
+
|
| 308 |
+
# APPENDIX B ARCHITECTURAL DETAILS
|
| 309 |
+
|
| 310 |
+
In the BigGAN model (Figure 15), we use the ResNet (He et al., 2016) GAN architecture of (Zhang et al., 2018), which is identical to that used by (Miyato et al., 2018), but with the channel pattern in D modified so that the number of filters in the first convolutional layer of each block is equal to the number of output filters (rather than the number of input filters, as in Miyato et al. (2018); Gulrajani et al. (2017)). We use a single shared class embedding in G, and skip connections for the latent vector $z$ (skip- $z$ ). In particular, we employ hierarchical latent spaces, so that the latent vector $z$ is split along its channel dimension into chunks of equal size (20-D in our case), and each chunk is concatenated to the shared class embedding and passed to a corresponding residual block as a conditioning vector. The conditioning of each block is linearly projected to produce per-sample gains and biases for the BatchNorm layers of the block. The bias projections are zero-centered, while the gain projections are centered at 1. Since the number of residual blocks depends on the image resolution, the full dimensionality of $z$ is 120 for $1 2 8 \times 1 2 8$ , 140 for $2 5 6 \times 2 5 6$ , and 160 for $5 1 2 \times 5 1 2$ images.
|
| 311 |
+
|
| 312 |
+
The BigGAN-deep model (Figure 16) differs from BigGAN in several aspects. It uses a simpler variant of skip- $z$ conditioning: instead of first splitting $z$ into chunks, we concatenate the entire $z$ with the class embedding, and pass the resulting vector to each residual block through skip connections. BigGAN-deep is based on residual blocks with bottlenecks (He et al., 2016), which incorporate two additional $1 \times 1$ convolutions: the first reduces the number of channels by a factor of 4 before the more expensive $3 \times 3$ convolutions; the second produces the required number of output channels. While BigGAN relies on $1 \times 1$ convolutions in the skip connections whenever the number of channels needs to change, in BigGAN-deep we use a different strategy aimed at preserving identity throughout the skip connections. In G, where the number of channels needs to be reduced, we simply retain the first group of channels and drop the rest to produce the required number of channels. In D, where the number of channels should be increased, we pass the input channels unperturbed, and concatenate them with the remaining channels produced by a $1 \times 1$ convolution. As far as the network configuration is concerned, the discriminator is an exact reflection of the generator. There are two blocks at each resolution (BigGAN uses one), and as a result BigGAN-deep is four times deeper than BigGAN. Despite their increased depth, the BigGAN-deep models have significantly fewer parameters mainly due to the bottleneck structure of their residual blocks. For example, the $1 2 8 \times 1 2 8$ BigGAN-deep G and D have 50.4M and $3 4 . 6 \mathbf { M }$ parameters respectively, while the corresponding original BigGAN models have $7 0 . 4 \mathbf { M }$ and $8 8 . 0 \mathbf { M }$ parameters. All BigGAN-deep models use attention at $6 4 \times 6 4$ resolution, channel width multiplier $c h = 1 2 8$ , and $z \in \mathbb { R } ^ { 1 2 8 }$ .
|
| 313 |
+
|
| 314 |
+

|
| 315 |
+
Figure 15: (a) A typical architectural layout for BigGAN’s G; details are in the following tables. (b) A Residual Block (ResBlock up) in BigGAN’s G. (c) A Residual Block (ResBlock down) in BigGAN’s D.
|
| 316 |
+
|
| 317 |
+

|
| 318 |
+
Figure 16: (a) A typical architectural layout for BigGAN-deep’s G; details are in the following tables. (b) A Residual Block (ResBlock up) in BigGAN-deep’s G. (c) A Residual Block (ResBlock down) in BigGAN-deep’s D. A ResBlock (without up or down) in BigGAN-deep does not include the Upsample or Average Pooling layers, and has identity skip connections.
|
| 319 |
+
|
| 320 |
+
Table 4: BigGAN architecture for $1 2 8 \times 1 2 8$ images. ch represents the channel width multiplier in each network from Table 1.
|
| 321 |
+
|
| 322 |
+
<table><tr><td rowspan=1 colspan=1>z ∈ R120 ~N(0,I)Embed(y)∈R128</td></tr><tr><td rowspan=1 colspan=1>Linear (20+128)→4×4×16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlockup 16ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 8ch → 4ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 4ch → 2ch</td></tr><tr><td rowspan=1 colspan=1>Non-Local Block (64 × 64)</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 2ch → ch</td></tr><tr><td rowspan=1 colspan=1>BN,ReLU,3 ×3 Conv ch →3</td></tr><tr><td rowspan=1 colspan=1>Tanh</td></tr><tr><td rowspan=1 colspan=1>(a)Generator</td></tr></table>
|
| 323 |
+
|
| 324 |
+
<table><tr><td rowspan=1 colspan=1>RGB image x ∈ R128×128×3</td></tr><tr><td rowspan=1 colspan=1>ResBlock down ch →2ch</td></tr><tr><td rowspan=1 colspan=1>Non-Local Block (64 × 64)</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 2ch → 4ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 4ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlockdown 8ch→16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlockdown16ch→16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ReLU, Global sum pooling</td></tr><tr><td rowspan=1 colspan=1>Embed(y)·h + (linear→1)</td></tr><tr><td rowspan=1 colspan=1>(b)Discriminator</td></tr></table>
|
| 325 |
+
|
| 326 |
+
Table 5: BigGAN architecture for $2 5 6 \times 2 5 6$ images. Relative to the $1 2 8 \times 1 2 8$ architecture, we add an additional ResBlock in each network at $1 6 \times 1 6$ resolution, and move the non-local block in $\pmb { \mathsf { G } }$ to $1 2 8 \times 1 2 8$ resolution. Memory constraints prevent us from moving the non-local block in D.
|
| 327 |
+
|
| 328 |
+
<table><tr><td rowspan=1 colspan=1>z ∈ R140 ~N(0,I)Embed(y)∈R128</td></tr><tr><td rowspan=1 colspan=1>Linear(20+128)→4×4×16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 16ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 8ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 8ch →4ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 4ch -→ 2ch</td></tr><tr><td rowspan=1 colspan=1>Non-Local Block (128 × 128)</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 2ch →ch</td></tr><tr><td rowspan=1 colspan=1>BN,ReLU,3 ×3 Conv ch →3</td></tr><tr><td rowspan=1 colspan=1>Tanh</td></tr><tr><td rowspan=1 colspan=1>(a) Generator</td></tr></table>
|
| 329 |
+
|
| 330 |
+
<table><tr><td rowspan=1 colspan=1>RGB image x ∈ R256×256×3</td></tr><tr><td rowspan=1 colspan=1>ResBlock down ch → 2ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 2ch → 4ch</td></tr><tr><td rowspan=1 colspan=1>Non-Local Block (64 × 64)</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 4ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 8ch → 8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 8ch→16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ReLU, Global sum pooling</td></tr><tr><td rowspan=1 colspan=1>Embed(y)·h+ (linear→1)</td></tr><tr><td rowspan=1 colspan=1>(b)Discriminator</td></tr></table>
|
| 331 |
+
|
| 332 |
+
Table 6: BigGAN architecture for $5 1 2 \times 5 1 2$ images. Relative to the $2 5 6 \times 2 5 6$ architecture, we add an additional ResBlock at the $5 1 2 \times 5 1 2$ resolution. Memory constraints force us to move the non-local block in both networks back to $6 4 \times 6 4$ resolution as in the $1 2 8 \times 1 2 8$ pixel setting.
|
| 333 |
+
|
| 334 |
+
<table><tr><td rowspan=1 colspan=1>z ∈ R160 ~N(0,I)Embed(y)∈R128</td></tr><tr><td rowspan=1 colspan=1>Linear(20+128)→4× 4× 16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 16ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 8ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 8ch → 4ch</td></tr><tr><td rowspan=1 colspan=1>Non-Local Block (64 × 64)</td></tr><tr><td rowspan=1 colspan=1>ResBlockup 4ch→2ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 2ch → ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up ch → ch</td></tr><tr><td rowspan=1 colspan=1>BN,ReLU,3 × 3 Conv ch → 3</td></tr><tr><td rowspan=1 colspan=1>Tanh</td></tr><tr><td rowspan=1 colspan=1>(a)Generator</td></tr></table>
|
| 335 |
+
|
| 336 |
+
<table><tr><td rowspan=1 colspan=1>RGB image x ∈ R512×512×3</td></tr><tr><td rowspan=1 colspan=1>ResBlock down ch → ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down ch →2ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 2ch → 4ch</td></tr><tr><td rowspan=1 colspan=1>Non-Local Block (64 × 64)</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 4ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 8ch → 8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 8ch→16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock16ch→16ch</td></tr><tr><td rowspan=1 colspan=1>ReLU, Global sum pooling</td></tr><tr><td rowspan=1 colspan=1>Embed(y)·h + (linear→1)</td></tr><tr><td rowspan=1 colspan=1>(b)Discriminator</td></tr></table>
|
| 337 |
+
|
| 338 |
+
Table 7: BigGAN-deep architecture for $1 2 8 \times 1 2 8$ images.
|
| 339 |
+
|
| 340 |
+
<table><tr><td rowspan=1 colspan=1>z ∈ R128 ~ N(0,1)Embed(y) ∈R128</td></tr><tr><td rowspan=1 colspan=1>Linear (128+128)-→4×4 ×16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 16ch → 8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 8ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 8ch → 4ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 4ch →4ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 4ch → 2ch</td></tr><tr><td rowspan=1 colspan=1>Non-Local Block (64 × 64)</td></tr><tr><td rowspan=1 colspan=1>ResBlock 2ch→ 2ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 2ch → ch</td></tr><tr><td rowspan=1 colspan=1>BN,ReLU,3 ×3 Conv ch -→3</td></tr><tr><td rowspan=1 colspan=1>Tanh</td></tr><tr><td rowspan=1 colspan=1>(a)Generator</td></tr></table>
|
| 341 |
+
|
| 342 |
+
<table><tr><td rowspan=1 colspan=1>RGB image x ∈ R128×128×3</td></tr><tr><td rowspan=1 colspan=1>3 ×3Conv 3→ ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down ch → 2ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 2ch → 2ch</td></tr><tr><td rowspan=1 colspan=1>Non-Local Block (64 × 64)</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 2ch → 4ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 4ch→4ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 4ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 8ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 8ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock16ch→16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 16ch→16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ReLU, Global sum pooling</td></tr><tr><td rowspan=1 colspan=1>Embed(y)·h + (linear→1)</td></tr><tr><td rowspan=1 colspan=1>(b)Discriminator</td></tr></table>
|
| 343 |
+
|
| 344 |
+
Table 8: BigGAN-deep architecture for $2 5 6 \times 2 5 6$ images.
|
| 345 |
+
|
| 346 |
+
<table><tr><td rowspan=1 colspan=1>z ∈R128 ~N(0,I)Embed(y) ∈R128</td></tr><tr><td rowspan=1 colspan=1>Linear(128+128)→4 × 4× 16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 16ch→16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 16ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 8ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 8ch → 8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 8ch → 8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 8ch →4ch</td></tr><tr><td rowspan=1 colspan=1>Non-Local Block (64 × 64)</td></tr><tr><td rowspan=1 colspan=1>ResBlock4ch→4ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 4ch → 2ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 2ch→ 2ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 2ch → ch</td></tr><tr><td rowspan=1 colspan=1>BN,ReLU,3 ×3 Conv ch →3</td></tr><tr><td rowspan=1 colspan=1>Tanh</td></tr><tr><td rowspan=1 colspan=1>(a) Generator</td></tr></table>
|
| 347 |
+
|
| 348 |
+
<table><tr><td rowspan=1 colspan=1>RGB image x ∈ R256×256×3</td></tr><tr><td rowspan=1 colspan=1>3 ×3Conv 3 →ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down ch → 2ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 2ch→2ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 2ch→4ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 4ch→4ch</td></tr><tr><td rowspan=1 colspan=1>Non-Local Block (64 × 64)</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 4ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 8ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 8ch→8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 8ch→ 8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 8ch→16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock16ch→16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock16ch→16ch</td></tr><tr><td rowspan=1 colspan=1>ReLU, Global sum pooling</td></tr><tr><td rowspan=1 colspan=1>Embed(y)·h + (linear→1)</td></tr></table>
|
| 349 |
+
|
| 350 |
+
(b) Discriminator
|
| 351 |
+
|
| 352 |
+
Table 9: BigGAN-deep architecture for $5 1 2 \times 5 1 2$ images.
|
| 353 |
+
|
| 354 |
+
<table><tr><td rowspan=1 colspan=1>zER128~N(0,I)Embed(y)∈R128</td></tr><tr><td rowspan=1 colspan=1>Linear (128+128)→4× 4×16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock16ch→16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlockup 16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 16ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 8ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 8ch → 8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 8ch→8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 8ch → 4ch</td></tr><tr><td rowspan=1 colspan=1>Non-Local Block (64 × 64)</td></tr><tr><td rowspan=1 colspan=1>ResBlock 4ch→4ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 4ch → 2ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 2ch →2ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up 2ch →ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock ch →ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock up ch → ch</td></tr><tr><td rowspan=1 colspan=1>BN,ReLU,3 ×3 Conv ch → 3</td></tr><tr><td rowspan=1 colspan=1>Tanh</td></tr><tr><td rowspan=1 colspan=1>(a)Generator</td></tr></table>
|
| 355 |
+
|
| 356 |
+
<table><tr><td rowspan=1 colspan=1>RGB image x ∈ R512×512×3</td></tr><tr><td rowspan=1 colspan=1>3 × 3Conv 3-→ ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down ch →ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock ch →ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down ch →2ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 2ch→2ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 2ch → 4ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 4ch→4ch</td></tr><tr><td rowspan=1 colspan=1>Non-Local Block (64 × 64)</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 4ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 8ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 8ch →8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 8ch→8ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 8ch →→16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock16ch→16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock down 16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ResBlock 16ch →16ch</td></tr><tr><td rowspan=1 colspan=1>ReLU, Global sum pooling</td></tr><tr><td rowspan=1 colspan=1>Embed(y)·h + (linear→1)</td></tr><tr><td rowspan=1 colspan=1>(b)Discriminator</td></tr></table>
|
| 357 |
+
|
| 358 |
+
# APPENDIX C EXPERIMENTAL DETAILS
|
| 359 |
+
|
| 360 |
+
Our basic setup follows SA-GAN (Zhang et al., 2018), and is implemented in TensorFlow (Abadi et al., 2016). We employ the architectures detailed in Appendix B, with non-local blocks inserted at a single stage in each network. Both G and D networks are initialized with Orthogonal Initialization (Saxe et al., 2014). We use Adam optimizer (Kingma & Ba, 2014) with $\beta _ { 1 } = 0$ and $\beta _ { 2 } = 0 . 9 9 9$ and a constant learning rate. For BigGAN models at all resolutions, we use $2 \cdot 1 0 ^ { - 4 }$ in D and $5 \cdot 1 0 ^ { - 5 } $ in G. For BigGAN-deep, we use the learning rate of $2 \cdot 1 0 ^ { - 4 }$ in $\mathbf { D }$ and $5 \cdot 1 0 ^ { - 5 } $ in $\pmb { \mathsf { G } }$ for $1 2 8 \times 1 2 8$ models, and $2 . 5 \cdot 1 0 ^ { - 5 }$ in both D and $\pmb { \mathsf { G } }$ for $2 5 6 \times 2 5 6$ and $5 1 2 \times 5 1 2$ models. We experimented with the number of D steps per G step (varying it from 1 to 6) and found that two D steps per $\pmb { \mathsf { G } }$ step gave the best results.
|
| 361 |
+
|
| 362 |
+
We use an exponential moving average of the weights of G at sampling time, with a decay rate set to 0.9999. We employ cross-replica BatchNorm (Ioffe & Szegedy, 2015) in G, where batch statistics are aggregated across all devices, rather than a single device as in standard implementations. Spectral Normalization (Miyato et al., 2018) is used in both G and D, following SA-GAN (Zhang et al., 2018). We train on a Google TPU v3 Pod, with the number of cores proportional to the resolution: 128 for $1 2 8 \times 1 2 8$ , 256 for $2 5 6 \times 2 5 6$ , and 512 for $5 1 2 \times 5 1 2$ . Training takes between 24 and 48 hours for most models. We increase $\epsilon$ from the default $1 0 ^ { - 8 }$ to $1 0 ^ { - 4 }$ in BatchNorm and Spectral Norm to mollify low-precision numerical issues. We preprocess data by cropping along the long edge and rescaling to a given resolution with area resampling.
|
| 363 |
+
|
| 364 |
+
# C.1 BATCHNORM STATISTICS AND SAMPLING
|
| 365 |
+
|
| 366 |
+
The default behavior with batch normalized classifier networks is to use a running average of the activation moments at test time. Previous works (Radford et al., 2016) have instead used batch statistics when sampling images. While this is not technically an invalid way to sample, it means that results are dependent on the test batch size (and how many devices it is split across), and further complicates reproducibility.
|
| 367 |
+
|
| 368 |
+
We find that this detail is extremely important, with changes in test batch size producing drastic changes in performance. This is further exacerbated when one uses exponential moving averages of G’s weights for sampling, as the BatchNorm running averages are computed with non-averaged weights and are poor estimates of the activation statistics for the averaged weights.
|
| 369 |
+
|
| 370 |
+
To counteract both these issues, we employ “standing statistics,” where we compute activation statistics at sampling time by running the G through multiple forward passes (typically 100) each with different batches of random noise, and storing means and variances aggregated across all forward passes. Analogous to using running statistics, this results in G’s outputs becoming invariant to batch size and the number of devices, even when producing a single sample.
|
| 371 |
+
|
| 372 |
+
# C.2 CIFAR-10
|
| 373 |
+
|
| 374 |
+
We run our networks on CIFAR-10 (Krizhevsky & Hinton, 2009) using the settings from Table 1, row 8, and achieve an IS of 9.22 and an FID of 14.73 without truncation.
|
| 375 |
+
|
| 376 |
+
# C.3 INCEPTION SCORES OF IMAGENET IMAGES
|
| 377 |
+
|
| 378 |
+
We compute the IS for both the training and validation sets of ImageNet. At $1 2 8 \times 1 2 8$ the training data has an IS of 233, and the validation data has an IS of 166. At $2 5 6 \times 2 5 6$ the training data has an IS of 377, and the validation data has an IS of 234. At $5 1 2 \times 5 1 2$ the training data has an IS of 348, and the validation data has an IS of 241. The discrepancy between training and validation scores is due to the Inception classifier having been trained on the training data, resulting in high-confidence outputs that are preferred by the Inception Score.
|
| 379 |
+
|
| 380 |
+
# APPENDIX D ADDITIONAL PLOTS
|
| 381 |
+
|
| 382 |
+

|
| 383 |
+
Figure 17: IS vs. FID at $1 2 8 \times 1 2 8$ . Scores are averaged across three random seeds.
|
| 384 |
+
|
| 385 |
+

|
| 386 |
+
Figure 18: IS vs. FID at 256 and 512 pixels. Scores are averaged across three random seeds for 256.
|
| 387 |
+
|
| 388 |
+

|
| 389 |
+
Figure 19: JFT-300M IS vs. FID at $2 5 6 \times 2 5 6$ . We show truncation values from $\sigma = 0$ to $\sigma = 2$ (top) and from $\sigma = 0 . 5$ to $\sigma = 1 . 5$ (bottom). Each curve corresponds to a row in Table 3. The curve labeled with baseline corresponds to the first row (with orthogonal regularization and other techniques disabled), while the rest correspond to rows 2-4 – the same architecture at different capacities $( C h )$ .
|
| 390 |
+
|
| 391 |
+
# APPENDIX E CHOOSING LATENT SPACES
|
| 392 |
+
|
| 393 |
+
While most previous work has employed $\mathcal { N } ( 0 , I )$ or $\mathcal { U } [ - 1 , 1 ]$ as the prior for $z$ (the noise input to G), we are free to choose any latent distribution from which we can sample. We explore the choice of latents by considering an array of possible designs, described below. For each latent, we provide the intuition behind its design and briefly describe how it performs when used as a drop-in replacement for $z \sim \mathcal { N } ( 0 , I )$ in an SA-GAN baseline. As the Truncation Trick proved more beneficial than switching to any of these latents, we do not perform a full ablation study, and employ $z \sim \mathcal { N } ( 0 , I )$ for our main results to take full advantage of truncation. The two latents which we find to work best without truncation are Bernoulli $\{ 0 , 1 \}$ and Censored Normal max $( \mathcal { N } ( 0 , I ) , 0 )$ , both of which improve speed of training and lightly improve final performance, but are less amenable to truncation.
|
| 394 |
+
|
| 395 |
+
We also ablate the choice of latent space dimensonality (which by default is $z \in \mathbb { R } ^ { 1 2 8 }$ ), finding that we are able to successfully train with latent dimensions as low as $z \in \mathbb { R } ^ { 8 }$ , and that with $z \in \mathbb { R } ^ { \breve { 3 } 2 }$ we see a minimal drop in performance. While this is substantially smaller than many previous works, direct comparison to single-class networks (such as those in Karras et al. (2018), which employ a $z \in \mathbb { R } ^ { 5 1 \frac { \mathbf { s } } { 2 } }$ latent space on a highly constrained dataset with 30,000 images) is improper, as our networks have additional class information provided as input.
|
| 396 |
+
|
| 397 |
+
# LATENTS
|
| 398 |
+
|
| 399 |
+
• $\mathcal { N } ( 0 , I )$ . A standard choice of the latent space which we use in the main experiments.
|
| 400 |
+
• $\mathcal { U } [ - 1 , 1 ]$ . Another standard choice; we find that it performs similarly to $\mathcal { N } ( 0 , I )$ .
|
| 401 |
+
• Bernoulli $\{ 0 , 1 \}$ . A discrete latent might reflect our prior that underlying factors of variation in natural images are not continuous, but discrete (one feature is present, another is not). This latent outperforms $\mathcal { N } ( 0 , I )$ (in terms of IS) by $8 \%$ and requires $60 \%$ fewer iterations.
|
| 402 |
+
• max $( \mathcal { N } ( 0 , I ) , 0 )$ , also called Censored Normal. This latent is designed to introduce sparsity in the latent space (reflecting our prior that certain latent features are sometimes present and sometimes not), but also allow those latents to vary continuously, expressing different degrees of intensity for latents which are active. This latent outperforms $\mathcal { N } ( 0 , I )$ (in terms of IS) by $1 5 \mathrm { - } 2 0 \%$ and tends to require fewer iterations.
|
| 403 |
+
• Bernoulli $\{ - 1 , 1 \}$ . This latent is designed to be discrete, but not sparse (as the network can learn to activate in response to negative inputs). This latent performs near-identically to $\mathcal { N } ( 0 , I )$ .
|
| 404 |
+
• Independent Categorical in $\{ - 1 , 0 , 1 \}$ , with equal probability. This distribution is chosen to be discrete and have sparsity, but also to allow latents to take on both positive and negative values. This latent performs near-identically to $\mathcal { N } ( 0 , I )$ .
|
| 405 |
+
• $\mathcal { N } ( 0 , I )$ multiplied by Bernoulli $\{ 0 , 1 \}$ . This distribution is chosen to have continuous latent factors which are also sparse (with a peak at zero), similar to Censored Normal but not constrained to be positive. This latent performs near-identically to $\mathcal { N } ( 0 , I )$ . Concatenating $\mathcal { N } ( 0 , I )$ and Bernoulli $\{ 0 , 1 \}$ , each taking half of the latent dimensions. This is inspired by Chen et al. (2016), and is chosen to allow some factors of variation to be discrete, while others are continuous. This latent outperforms $\mathcal { N } ( 0 , I )$ by around $5 \%$ .
|
| 406 |
+
• Variance annealing: we sample from $\mathcal { N } ( 0 , \sigma I )$ , where $\sigma$ is allowed to vary over training. We compared a variety of piecewise schedules and found that starting with $\sigma = 2$ and annealing towards $\sigma = 1$ over the course of training mildly improved performance. The space of possible variance schedules is large, and we did not explore it in depth – we suspect that a more principled or better-tuned schedule could more strongly impact performance.
|
| 407 |
+
• Per-sample variable variance: $\mathcal { N } ( 0 , \sigma _ { i } I )$ , where $\sigma _ { i } \sim \mathcal { U } [ \sigma _ { l } , \sigma _ { h } ]$ independently for each sample $i$ in a batch, and $\left( \sigma _ { l } , \sigma _ { h } \right)$ are hyperparameters. This distribution was chosen to try and improve amenability to the Truncation Trick by feeding the network noise samples with non-constant variance. This did not appear to affect performance, but we did not explore it in depth. One might also consider scheduling $( \sigma _ { l } , \sigma _ { h } )$ , similar to variance annealing.
|
| 408 |
+
|
| 409 |
+

|
| 410 |
+
APPENDIX F MONITORED TRAINING STATISTICS
|
| 411 |
+
Figure 20: Training statistics for a typical model without special modifications. Collapse occurs after 200000 iterations.
|
| 412 |
+
|
| 413 |
+

|
| 414 |
+
Figure 21: G training statistics with $\sigma _ { 0 }$ in $\pmb { \mathsf { G } }$ regularized towards 1. Collapse occurs after 125000 iterations.
|
| 415 |
+
|
| 416 |
+

|
| 417 |
+
Figure 22: D training statistics with $\sigma _ { 0 }$ in $\pmb { \mathsf { G } }$ regularized towards 1. Collapse occurs after 125000 iterations.
|
| 418 |
+
|
| 419 |
+

|
| 420 |
+
Figure 23: G training statistics with an R1 Gradient Penalty of strength 10 on D. This model does not collapse, but only reaches a maximum IS of 55.
|
| 421 |
+
|
| 422 |
+

|
| 423 |
+
Figure 24: D training statistics with an R1 Gradient Penalty of strength 10 on D. This model does not collapse, but only reaches a maximum IS of 55.
|
| 424 |
+
|
| 425 |
+

|
| 426 |
+
Figure 25: G training statistics with Dropout (keep probability 0.8) applied to the last feature layer of D. This model does not collapse, but only reaches a maximum IS of 70.
|
| 427 |
+
|
| 428 |
+

|
| 429 |
+
Figure 26: D training statistics with Dropout (keep probability 0.8) applied to the last feature layer of D. This model does not collapse, but only reaches a maximum IS of 70.
|
| 430 |
+
|
| 431 |
+

|
| 432 |
+
Figure 27: Additional training statistics for a typical model without special modifications. Collapse occurs after 200000 iterations.
|
| 433 |
+
|
| 434 |
+

|
| 435 |
+
Figure 28: Additional training statistics with an R1 Gradient Penalty of strength 10 on D. This model does not collapse, but only reaches a maximum IS of 55.
|
| 436 |
+
|
| 437 |
+
# APPENDIX G ADDITIONAL DISCUSSION: STABILITY AND COLLAPSE
|
| 438 |
+
|
| 439 |
+
In this section, we present and discuss additional investigations into the stability of our models, expanding upon the discussion in Section 4.
|
| 440 |
+
|
| 441 |
+
# G.1 INTERVENING BEFORE COLLAPSE
|
| 442 |
+
|
| 443 |
+
The symptoms of collapse are sharp and sudden, with sample quality dropping from its peak to its lowest value over the course of a few hundred iterations. We can detect this collapse when the singular values in G explode, but while the (unnormalized) singular values grow throughout training, there is no consistent threshold at which collapse occurs. This raises the question of whether it is possible to prevent or delay collapse by taking a model checkpoint several thousand iterations before collapse, and continuing training with some hyperparameters modified (e.g., the learning rate).
|
| 444 |
+
|
| 445 |
+
We conducted a range of intervention experiments wherein we took checkpoints of a collapsed model ten or twenty thousand iterations before collapse, changed some aspect of the training setup, then observed whether collapse occurred, when it occurred relative to the original collapse, and the final performance attained at collapse.
|
| 446 |
+
|
| 447 |
+
We found that increasing the learning rates (relative to their initial values) in either G or D, or both $\pmb { \mathsf { G } }$ and D, led to immediate collapse. This occurred even when doubling the learning rates from $2 \cdot 1 0 ^ { - 4 }$ in D and $5 \cdot 1 0 ^ { - 5 } $ in $\pmb { \mathsf { G } }$ , to $4 \cdot 1 0 ^ { - 4 }$ in D and $1 \cdot 1 0 ^ { - 4 }$ in G, a setting which is not normally unstable when used as the initial learning rates. We also tried changing the momentum terms (Adam’s $\beta _ { 1 }$ and $\beta _ { 2 }$ ), or resetting the momentum vectors to zero, but this tended to either make no difference or, when increasing the momentum, cause immediate collapse.
|
| 448 |
+
|
| 449 |
+
We found that decreasing the learning rate in G, but keeping the learning rate in D unchanged could delay collapse (in some cases by over one hundred thousand iterations), but also crippled training— once the learning rate in $\pmb { \mathsf { G } }$ was decayed, performance either stayed constant or slowly decayed. Conversely, reducing the learning rate in D while keeping G’s learning rate led to immediate collapse. We hypothesize that this is because of the need for D to remain optimal throughout training—if its learning rate is reduced, it can no longer “keep up” with G, and training collapses. With this in mind, we also tried increasing the number of D steps per $\pmb { \mathsf { G } }$ step, but this either had no effect, or delayed collapse at the cost of crippling training (similar to decaying G’s learning rate).
|
| 450 |
+
|
| 451 |
+
To further illuminate these dynamics, we construct two additional intervention experiments, one where we freeze G before collapse (by ceasing all parameter updates) and observe whether D remains stable, and the reverse, where we freeze D before collapse and observe whether G remains stable. We find that when G is frozen, D remains stable, and slowly reduces both components of its loss towards zero. However, when D is frozen, G immediately and dramatically collapses, maxing out D’s loss to values upwards of 300, compared to the normal range of 0 to 3.
|
| 452 |
+
|
| 453 |
+
This leads to two conclusions: first, as has been noted in previous works (Miyato et al., 2018; Gulrajani et al., 2017; Zhang et al., 2018), D must remain optimal with respect to G both for stability and to provide useful gradient information. The consequence of G being allowed to win the game is a complete breakdown of the training process, regardless of G’s conditioning or optimization settings. Second, favoring D over G (either by training it with a larger learning rate, or for more steps) is insufficient to ensure stability even if D is well-conditioned. This suggests either that in practice, an optimal D is necessary but insufficient for training stability, or that some aspect of the system results in D not being trained towards optimality. With the latter possibility in mind, we take a closer look at the noise in D’s spectra in the following section.
|
| 454 |
+
|
| 455 |
+
# G.2 SPIKES IN THE DISCRIMINATOR’S SPECTRA
|
| 456 |
+
|
| 457 |
+

|
| 458 |
+
Figure 29: A closeup of D’s spectra at a noise spike.
|
| 459 |
+
|
| 460 |
+
If some element of D’s training process results in undesirable dynamics, it follows that the behavior of D’s spectra may hold clues as to what that element is. The top three singular values of D differ from G’s in that they have a large noise component, tend to grow throughout training but only show a small response to collapse, and the ratio of the first two singular values tends to be centered around one, suggesting that the spectra of D have a slow decay. When viewed up close (Figure 29), the noise spikes resemble an impulse response: at each spike, the spectra jump upwards, then slowly decrease, with some oscillation.
|
| 461 |
+
|
| 462 |
+
One possible explanation is that this behavior is a consequence of D memorizing the training data, as suggested by experiments in Section 4.2. As it approaches perfect memorization, it receives less and less signal from real data, as both the original GAN loss and the hinge loss provide zero gradients when D outputs a confident and correct prediction for a given example. If the gradient signal from real data attenuates to zero, this can result in D eventually becoming biased due to exclusively received gradients that encourage its outputs to be negative. If this bias passes a certain threshold, D will eventually misclassify a large number of real examples and receive a large gradient encouraging positive outputs, resulting in the observed impulse responses.
|
| 463 |
+
|
| 464 |
+
This argument suggests several fixes. First, one might consider an unbounded loss (such as the Wasserstein loss (Arjovsky et al., 2017)) which would not suffer this gradient attentuation. We found that even with gradient penalties and brief re-tuning of optimizer hyperparameters, our models did not stably train for more than a few thousand iterations with this loss. We instead explored changing the margin of the hinge loss as a partial compromise: for a given model and minibatch of data, increasing the margin will result in more examples falling within the margin, and thus contributing to the loss.3. Training with a smaller margin (by a factor of 2) measurably reduces performance, but training with a larger margin (by up to a factor of 3) does not prevent collapse or reduce the noise in D’s spectra. Increasing the margin beyond 3 results in unstable training similar to using the Wasserstein loss. Finally, the memorization argument might suggest that using a smaller D or using dropout in D would improve training by reducing its capacity to memorize, but in practice this degrades training.
|
| 465 |
+
|
| 466 |
+
# APPENDIX H NEGATIVE RESULTS
|
| 467 |
+
|
| 468 |
+
We explored a range of novel and existing techniques which ended up degrading or otherwise not affecting performance in our setting. We report them here; our evaluations for this section are not as thorough as those for the main architectural choices.
|
| 469 |
+
|
| 470 |
+
Our intention in reporting these results is to save time for future work, and to give a more complete picture of our attempts to improve performance or stability. We note, however, that these results must be understood to be specific to the particular setup we used. A pitfall of reporting negative results is that one might report that a particular technique doesn’t work, when the reality is that this technique did not have the desired effect when applied in a particular way to a particular problem. Drawing overly general conclusions might close off potentially fruitful avenues of research.
|
| 471 |
+
|
| 472 |
+
• We found that doubling the depth (by inserting an additional Residual block after every upor down-sampling block) hampered performance.
|
| 473 |
+
• We experimented with sharing class embeddings between both G and D (as opposed to just within $\pmb { \mathsf { G } }$ ). This is accomplished by replacing D’s class embedding with a projection from G’s embeddings, as is done in G’s BatchNorm layers. In our initial experiments this seemed to help and accelerate training, but we found this trick scaled poorly and was sensitive to optimization hyperparameters, particularly the choice of number of D steps per G step.
|
| 474 |
+
• We tried replacing BatchNorm in G with WeightNorm (Salimans & Kingma, 2016), but this crippled training. We also tried removing BatchNorm and only having Spectral Normalization, but this also crippled training.
|
| 475 |
+
• We tried adding BatchNorm to D (both class-conditional and unconditional) in addition to
|
| 476 |
+
Spectral Normalization, but this crippled training.
|
| 477 |
+
• We tried varying the choice of location of the attention block in G and D (and inserting multiple attention blocks at different resolutions) but found that at $1 2 8 \times 1 2 8$ there was no noticeable benefit to doing so, and compute and memory costs increased substantially. We found a benefit to moving the attention block up one stage when moving to $2 5 6 \times 2 5 6$ , which is in line with our expectations given the increased resolution.
|
| 478 |
+
• We tried using filter sizes of 5 or 7 instead of 3 in either $\pmb { \mathsf { G } }$ or $\mathbf { D }$ or both. We found that having a filter size of 5 in G only provided a small improvement over the baseline but came at an unjustifiable compute cost. All other settings degraded performance.
|
| 479 |
+
• We tried varying the dilation for convolutional filters in both G and D at $1 2 8 \times 1 2 8$ , but found that even a small amount of dilation in either network degraded performance.
|
| 480 |
+
• We tried bilinear upsampling in $\pmb { \mathsf { G } }$ in place of nearest-neighbors upsampling, but this degraded performance.
|
| 481 |
+
• In some of our models, we observed class-conditional mode collapse, where the model would only output one or two samples for a subset of classes but was still able to generate samples for all other classes. We noticed that the collapsed classes had embedings which had become very large relative to the other embeddings, and attempted to ameliorate this issue by applying weight decay to the shared embedding only. We found that small amounts of weight decay $( 1 0 ^ { - 6 } )$ instead degraded performance, and that only even smaller values $( 1 0 ^ { - 8 } )$ did not degrade performance, but these values were also too small to prevent the class vectors from exploding. Higher-resolution models appear to be more resilient to this problem, and none of our final models appear to suffer from this type of collapse.
|
| 482 |
+
• We experimented with using MLPs instead of linear projections from G’s class embeddings to its BatchNorm gains and biases, but did not find any benefit to doing so. We also experimented with Spectrally Normalizing these MLPs, and with providing these (and the linear projections) with a bias at their output, but did not notice any benefit.
|
| 483 |
+
• We tried gradient norm clipping (both the global variant typically used in recurrent networks, and a local version where the clipping value is determined on a per-parameter basis) but found this did not alleviate instability.
|
| 484 |
+
|
| 485 |
+
# APPENDIX I HYPERPARAMETERS
|
| 486 |
+
|
| 487 |
+
We performed various hyperparameter sweeps in this work:
|
| 488 |
+
|
| 489 |
+
• We swept the Cartesian product of the learning rates for each network through $[ 1 0 ^ { - 5 }$ , $5 \cdot 1 0 ^ { - 5 }$ , $1 0 ^ { - 4 }$ , $2 \cdot 1 0 ^ { - 4 }$ , $4 \cdot 1 0 ^ { - 4 }$ , $8 \cdot 1 0 ^ { - 4 } $ , $1 0 ^ { = 3 } ]$ , and initially found that the SA-GAN settings (G’s learning rate $1 0 ^ { - 4 }$ , D’s learning rate $4 \cdot 1 0 ^ { - 4 } \ $ ) were optimal at lower batch sizes; we did not repeat this sweep at higher batch sizes but did try halving and doubling the learning rate, arriving at the halved settings used for our experiments. We swept the R1 gradient penalty strength through $[ 1 0 ^ { - 3 }$ , $1 0 ^ { - 2 }$ , $1 0 ^ { - 1 }$ , 0.5, 1, 2, 3, 5, 10]. We find that the strength of the penalty correlates negatively with performance, but that settings above 0.5 impart training stability.
|
| 490 |
+
• We swept the keep probabilities for DropOut in the final layer of D through [0.5, 0.6, 0.7, 0.8, 0.9, 0.95]. We find that DropOut has a similar stabilizing effect to R1 but also degrades performance.
|
| 491 |
+
• We swept D’s Adam $\beta _ { 1 }$ parameter through [0.1, 0.2, 0.3, 0.4, 0.5] and found it to have a light regularization effect similar to DropOut, but not to significantly improve results. Higher $\beta _ { 1 }$ terms in either network crippled training.
|
| 492 |
+
• We swept the strength of the modified Orthogonal Regularization penalty in G through $[ 1 0 ^ { - 5 }$ , $5 \cdot 1 0 ^ { - 5 }$ , $1 0 ^ { - 4 }$ , $5 \cdot 1 0 ^ { - 4 } $ , $1 0 ^ { - 3 }$ , $1 0 ^ { - 2 } ]$ , and selected $1 0 ^ { - 4 }$ .
|
parse/train/B1xsqj09Fm/B1xsqj09Fm_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/B1xsqj09Fm/B1xsqj09Fm_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/B1xsqj09Fm/B1xsqj09Fm_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/CLCVcl1rSPP/CLCVcl1rSPP.md
ADDED
|
@@ -0,0 +1,320 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# RL for Latent MDPs: Regret Guarantees and a Lower Bound
|
| 2 |
+
|
| 3 |
+
Jeongyeol Kwon The University of Texas at Austin kwonchungli@utexas.edu
|
| 4 |
+
|
| 5 |
+
Yonathan Efroni Microsoft Research, NYC jonathan.efroni@gmail.com
|
| 6 |
+
|
| 7 |
+
Constantine Caramanis The University of Texas at Austin constantine@utexas.edu
|
| 8 |
+
|
| 9 |
+
Shie Mannor Technion, NVIDIA shie@ee.technion.ac.il, smannor@nvidia.com
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
In this work, we consider the regret minimization problem for reinforcement learning in latent Markov Decision Processes (LMDP). In an LMDP, an MDP is randomly drawn from a set of $M$ possible MDPs at the beginning of the interaction, but the identity of the chosen MDP is not revealed to the agent. We first show that a general instance of LMDPs requires at least $\Omega ( ( S A ) ^ { M } )$ episodes to even approximate the optimal policy. Then, we consider sufficient assumptions under which learning good policies requires polynomial number of episodes. We show that the key link is a notion of separation between the MDP system dynamics. With sufficient separation, we provide an efficient algorithm with local guarantee, i.e., providing a sublinear regret guarantee when we are given a good initialization. Finally, if we are given standard statistical sufficiency assumptions common in the Predictive State Representation (PSR) literature (e.g., [6]) and a reachability assumption, we show that the need for initialization can be removed.
|
| 14 |
+
|
| 15 |
+
# 1 Introduction
|
| 16 |
+
|
| 17 |
+
Partially observable Markov decision processes (POMDPs) [42] give a general framework to describe partially observable sequential decision problems. In POMDPs, the underlying dynamics satisfy the Markovian property, but the observations give only partial information on the identity of the underlying states. With the generality of this framework comes a high computational and statistical price to pay: POMDPs are hard, primarily because optimal policies depend on the entire history of the process. But for many important problems, this full generality can be overkill, and in particular, does not have a way to leverage special structure. We are interested in settings where the hidden or latent (unobserved) variables have slow dynamics or are even static in each episode. This model is important for diverse applications, from serving a user in a dynamic web application [18], to medical decision making [45], to transfer learning in different RL tasks [8]. Yet, as we explain below, even this area remains little understood, and challenges abound.
|
| 18 |
+
|
| 19 |
+
Thus, in this work, we consider reinforcement learning (RL) for a special type of POMDP which we call a latent Markov decision process (LMDP). LMDPs consist of some (perhaps large) number $M$ of MDPs with joint state space $s$ and actions $\mathcal { A }$ . In episodic LMDPs with finite time-horizon $H$ , the static latent (hidden) variable that selects one of $M$ MDPs is randomly chosen at the beginning of each episode, yet is not revealed to the agent. The agent then interacts with the chosen MDP throughout the episode (see Definition 1 for the formal description).
|
| 20 |
+
|
| 21 |
+
Related Work. The LMDP framework has previously been introduced under many different names, e.g., hidden-model MDP [11], Multitask RL [8], Contextual MDP [18], Multi-modal Markov decision process [45] and Concurrent MDP [9].
|
| 22 |
+
|
| 23 |
+
Learning in LMDPs is a challenging problem due to the unobservability of latent contexts. For instance, the exact planning problem is P-SPACE hard [45], inheriting the hardness of planning from the general POMDP framework. Nevertheless, the lack of dynamics of the latent variables, offers some hope. As an example, if the number of contexts $M$ is bounded, then the planning problem can be at least approximately solved (e.g., by point-based value iteration (PBVI) [39], or mixed integer programming (MIP) [45]).
|
| 24 |
+
|
| 25 |
+
The most closely related work studying LMDPs is in the context of multitask RL [47, 8, 34, 18]. In this line of work, a common approach is to cluster trajectories according to different contexts, an approach that guided us in designing the algorithms in Section 3.4. However, previous work requires very long time-horizon $H \gg S A$ in order to guarantee that every state-action pair can be visited multiple times in a single episode. In contrast, we consider a significantly shorter time-horizon that scales poly-logarithmic with the number of states, i.e., $H = p o l y \bar { \log ( M S \dot { A } ) }$ . This short time-horizon results in a significant difference in learning strategy even when we get a feedback on the true context at the end of episode. We refer the readers to Appendix A for additional discussion on related work.
|
| 26 |
+
|
| 27 |
+
Main Results. To the best of our knowledge, none of the previous literature has obtained sample complexity guarantees or studied regret bounds in the LMDP setting. This paper addresses precisely this problem. We ask the following:
|
| 28 |
+
|
| 29 |
+
Is there a sample efficient RL algorithm for LMDPs, with sublinear regret?
|
| 30 |
+
|
| 31 |
+
The answer turns out to be not so simple. Our results comprise a first impossibility result, followed by positive algorithmic results under additional assumptions. Specifically:
|
| 32 |
+
|
| 33 |
+
• First, we find that for a general LMDP, polynomial sample complexity cannot be attained without further assumptions. That is, to find an approximately optimal policy we need at least $\Omega \left( ( S A ) ^ { M } \right)$ samples, i.e., at least exponential in the number of contexts $M$ (Section 3.1). This lower bound even applies to instances with deterministic MDPs.
|
| 34 |
+
• We find that there are several natural assumptions under which optimal policies can be learned with polynomial sample complexity. Similarly to mixture problems without dynamics, the key link is a notion of separation between the MDPs. With sufficient separation, we show that there is a planning-oracle efficient RL algorithm with polynomial sample complexity. A critical development is adapting the principle of optimism as in UCB, but to the partially observed setting where value-iteration cannot be directly applied, and thus neither can the UCRL algorithm for MDPs.
|
| 35 |
+
• Finally, under additional statistical sufficiency assumptions that are common in the Predictive State Representation (PSR) literature (e.g., [6]) and a reachability assumption, we show that the need for initialization can be entirely removed.
|
| 36 |
+
• Finally, we perform an empirical evaluation of the suggested algorithms on toy problems (Section 4), while focusing on the importance of the made assumptions.
|
| 37 |
+
|
| 38 |
+
# 2 Preliminaries
|
| 39 |
+
|
| 40 |
+
# 2.1 Problem Setup: Latent MDPs
|
| 41 |
+
|
| 42 |
+
We start with the definition of episodic reinforcement learning in latent Markov decision process:
|
| 43 |
+
|
| 44 |
+
Definition 1 (Latent Markov Decision Process (LMDP)) Consider a set of MDPs $\mathcal { M }$ with joint state space $s$ and joint action space $\mathcal { A }$ in a finite time horizon $H$ . Let $M = | { \mathcal { M } } |$ , $S = | S |$ and $A = | { \mathcal { A } } |$ . Each MDP $\mathcal { M } _ { m } \in \mathcal { M }$ is a tuple $( \mathcal { S } , \mathcal { A } , T _ { m } , R _ { m } , \nu _ { m } )$ where $T _ { m } : S \times A \times S [ 0 , 1 ]$ a transition probability maps a state-action pair and a next state to a probability, ${ R _ { m } } : S \times A \times \{ 0 , 1 \} \to [ 0 , 1 ]$ a probability measure for rewards that maps a state-action pair and a binary reward to a probability, and $\nu _ { m }$ is an initial state distribution. Let $w _ { 1 } , . . . , w _ { M }$ be the mixing weights of LMDPs such that at the start of every episode, one MDP $\mathcal { M } _ { m } \in \mathcal { M }$ is randomly chosen with probability $w _ { m }$ .
|
| 45 |
+
|
| 46 |
+
We assume the mixing weights are uniform and known a priori, i.e., $w _ { 1 } = . . . = w _ { M } = 1 / M$ . This is only for the ease of presentation, and does not affect any algorithmic idea or main results in this paper. The goal of the problem is to Π that maximizes the expected return: $\pi$ n a pol ,where ssis $\begin{array} { r } { V _ { { \mathcal { M } } } ^ { * } : = \operatorname* { m a x } _ { \pi \in \Pi } \sum _ { m = 1 } ^ { M } w _ { m } \mathbb { E } _ { m } ^ { \pi } \left[ \sum _ { t = 1 } ^ { H } r _ { t } \right] } \end{array}$ $\mathbb { E } _ { m } ^ { \pi } [ \cdot ]$ expectation taken over the $m ^ { t h }$ MDP with a policy $\pi$ . If not specified otherwise, we find the best policy in a set of history-dependent policies $\bar { \pi } : ( \bar { S } , \mathcal { A } , \{ 0 , 1 \} ) ^ { * } \times \mathcal { S } \Delta ( A )$ that map an entire history to a probability distribution over actions.
|
| 47 |
+
|
| 48 |
+
We define the notion of regret relative to a (possibly approximate) planning oracle. Thus, suppose we have a planning-oracle with the following approximation guarantee: $V _ { \mathcal { M } } ^ { \pi } \geq \rho _ { 1 } V _ { \mathcal { M } } ^ { * } - \rho _ { 2 }$ , where $\pi$ is a returned policy when $\mathcal { M }$ is given to the planning-oracle, and $\rho _ { 1 } , \rho _ { 2 }$ are multiplicative and additive approximation constants respectively. We then define the regret as the comparison to the best approximation guarantee that the planning-oracle can achieve:
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
R e g r e t ( K ) = \sum _ { k = 1 } ^ { K } ( \rho _ { 1 } V _ { \mathcal { M } } ^ { * } - \rho _ { 2 } ) - V _ { \mathcal { M } } ^ { \pi _ { k } } ,
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
where $\pi _ { k }$ is a policy executed in the $k ^ { t h }$ episode. For example, we can use point-based value-iteration (PBVI) [39] as a planning-oracle:
|
| 55 |
+
|
| 56 |
+
Example 1 PBVI [39] with discretization level $\epsilon _ { d } > 0$ in the belief space (over $\mathbb { R } ^ { M }$ ) returns an $\epsilon _ { d } H ^ { 2 }$ additive approximate policy. That is, equation (1) holds with $\rho _ { 1 } = 1$ and $\rho _ { 2 } = \epsilon _ { d } H ^ { 2 }$ .
|
| 57 |
+
|
| 58 |
+
# 2.2 Predictive State Representation (PSR)
|
| 59 |
+
|
| 60 |
+
A partially observable dynamical system can be viewed as a model that generates a sequence of observations from observation space $\mathcal { O }$ with (controlled) actions from action space $\mathcal { A }$ . A predictive state representation (PSR) is a compact description of a dynamical system with a set of observable experiments, or tests [41]. Specifically, a test of length $t$ is a sequence of action-observation pairs given as $\tau = { a _ { 1 } ^ { \tau } o _ { 1 } ^ { \tau } o _ { 2 } ^ { \tau } . . . a _ { t } ^ { \tau } o _ { t } ^ { \tau } }$ . A history $h = a _ { 1 } ^ { h } o _ { 1 } ^ { h } a _ { 2 } ^ { \tilde { h _ { } } } o _ { 2 } ^ { h } . . . a _ { t } ^ { h } o _ { t } ^ { h }$ is a sequence of action-observation pairs that has been generated prior to a given time. A prediction $\mathbb { P } ( \tau | h ) { \overset { - } { = } } \mathbb { P } ( o _ { 1 : t } ^ { \tau } | h | | d o a _ { 1 : t } ^ { \tau } )$ denotes the probability of seeing the test sequence from a given history, given that we intervene to take actions $a _ { 1 } ^ { \tau } a _ { 2 } ^ { \tau } . . . a _ { t } ^ { \tau }$ . In latent MDPs, the observation space can be considered as a pair of next-states and rewards, i.e., ${ \mathcal { O } } = { \mathcal { S } } \times \{ 0 , 1 \}$ and $o _ { t } = \left( s _ { t + 1 } , r _ { t } \right)$ .
|
| 61 |
+
|
| 62 |
+
As we work with a special class of POMDPs, we customize the formulation for LMDPs. The set of histories consists of a subset of histories that end with different states, i.e., $\textstyle { \mathcal { H } } = \bigcup _ { s } { \mathcal { H } } _ { s }$ , where each element $h \in \mathcal { H } _ { s }$ is a short sequence of state-action-rewards of length $l$ ending with state $s$ :
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
h = s _ { 1 } ^ { h } a _ { 1 } ^ { h } r _ { 1 } ^ { h } s _ { 2 } ^ { h } . . . s _ { l - 1 } ^ { h } a _ { l - 1 } ^ { h } r _ { l - 1 } ^ { h } s = ( s , a , r ) _ { 1 : l - 1 } ^ { h } s .
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
We define $\mathbb { P } _ { m } ^ { \pi } ( \mathcal { H } _ { s } )$ a vector of probabilities where each coordinate is a probability of sampling each history in $\mathcal { H } _ { s }$ in the $m ^ { t h }$ MDP with a policy $\pi$ . Likewise, each element in tests $\tau \in \mathcal { T }$ is a short sequence of action-reward-next states of length at most $l$ :
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
\tau = a _ { 1 } ^ { \tau } r _ { 1 } ^ { \tau } s _ { 2 } ^ { \tau } . . . a _ { l } ^ { \tau } r _ { l } ^ { \tau } s _ { l + 1 } ^ { \tau } = ( a , r , s ^ { \prime } ) _ { 1 : l } ^ { \tau } .
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
We denote $\mathbb { P } _ { m } ( \mathcal { T } | s )$ as a vector of probability where each coordinate is a success probability of each test in the $m ^ { t h }$ MDP starting from a state $s$ . That is,
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
\mathbb { P } _ { m } ( \mathcal { T } | s ) _ { i } = \mathbb { P } _ { m } \big ( r _ { 1 } ^ { \tau _ { i } } s _ { 2 } ^ { \tau _ { i } } . . . r _ { l } ^ { \tau _ { i } } s _ { l + 1 } ^ { \tau _ { i } } | s | \big | d o a _ { 1 } ^ { \tau _ { i } } . . . a _ { l } ^ { \tau _ { i } } \big ) .
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
# 2.2.1 Spectral Learning of PSRs in LMDPs
|
| 81 |
+
|
| 82 |
+
In spectral learning, we build a set of observable matrices that contains the (joint) probabilities of histories and tests, and then we can extract parameters from these matrices by performing singular value decomposition (SVD) and regressions [7]. In order to apply spectral learning techniques, we require the following technical conditions on statistical sufficiency of tests:
|
| 83 |
+
|
| 84 |
+
Condition 1 (Sufficient Tests) For all $ { \mathcal { S } } _ { s } \in { \mathcal { S } } _ { }$ , for the test set $\tau$ , let $\begin{array} { r l } { L _ { s } } & { { } = } \end{array}$ $[ \mathbb { P } _ { 1 } ( \pmb { \mathscr { T } } | s ) | \mathbb { P } _ { 2 } ( \pmb { \mathscr { T } } | s ) | . . . | \mathbb { P } _ { M } ( \pmb { \mathscr { T } } | s ) ]$ . Then $\sigma _ { M } ( L _ { s } ) \geq \sigma _ { \tau }$ for all $s \in S$ with some $\sigma _ { \tau } > 0$ .
|
| 85 |
+
|
| 86 |
+
Here, $\sigma _ { M } ( \cdot )$ is the minimum $( M ^ { t h } )$ singular value of a matrix. Another technical condition for spectral learning method is a rank non-degeneracy condition for sufficient histories:
|
| 87 |
+
|
| 88 |
+
Condition 2 (Sufficient Histories) For all $s \in \mathcal { S }$ , for the history set $\mathcal { H } _ { s }$ ending with a state $s$ , let $H _ { s } \ = \ [ \mathbb { P } _ { 1 } ^ { \pi } ( \mathcal { H } _ { s } ) | \mathbb { P } _ { 2 } ^ { \pi } ( \mathcal { H } _ { s } ) | . . . | \mathbb { P } _ { M } ^ { \pi } ( \mathcal { H } _ { s } ) ] ^ { \intercal }$ with a sampling policy $\pi$ . Then $\sigma _ { M } ( L _ { s } H _ { s } ) \geq $ $\mathbb { P } ^ { \pi } ( e n d s t a t e = s ) \cdot \sigma _ { h }$ with some $\sigma _ { h } > 0$ .
|
| 89 |
+
|
| 90 |
+
Here $\mathbb { P } ^ { \pi }$ (end state $= s$ ) is a probability of sampling a history ending with $s$ . Along with the rank condition for tests, pairs of histories and tests can be thought as many short snap-shots of long trajectories obtained by external experts or some exploration policy (e.g., random policy in uniformly ergodic MDPs). Following the notations in [7], let $P _ { \tau , \mathcal { H } _ { s } } = L _ { s } H _ { s }$ . Conditions 1 and 2 ensure $\bar { \sigma _ { M } } ( P _ { T , \mathcal { H } _ { s } } ) > 0$ . Under these conditions, the goal of spectral learning algorithm is to output PSR parameters which are used to compute ${ \hat { \mathbb { P } } } ( \tau | h )$ , the estimated probability of any future observations (or tests $\tau$ ) given any sampled histories $h$ . We refer to Appendix E.1 for a detailed procedure.
|
| 91 |
+
|
| 92 |
+
# 2.3 Notations
|
| 93 |
+
|
| 94 |
+
We denote the underlying LMDP with true parameters as $\mathcal { M } ^ { * }$ . With slight abuse of notation, we denote the $l _ { 1 }$ distance between two probability distributions $\mathcal { D } _ { 1 }$ and $\mathcal { D } _ { 2 }$ on a random variable $X$ conditioned on event $E$ as $\begin{array} { r } { \| ( \mathbb { P } _ { X \sim \mathcal { D } _ { 1 } } - \mathbb { P } _ { X \sim \mathcal { D } _ { 2 } } ) ( X | E ) \| _ { 1 } = \sum _ { X \in \mathcal { X } } | \mathbb { P } _ { X \sim \mathcal { D } _ { 1 } } ( X | E ) - \mathbb { P } _ { X \sim \mathcal { D } _ { 2 } } ( X | E ) | } \end{array}$ , where $\mathcal { X }$ is a support of $X$ . When we do not condition on any event, we omit the conditioning on $E$ . When we measure a transition or reward probability at a state-action pair $( s , a )$ , we use $T$ or $R$ instead of $\mathbb { P }$ . We use $\mathbb { P } _ { m }$ to refer to the probability of any event measured in the $m ^ { t h }$ context (or in $m ^ { t h }$ MDP). In particular, $\mathbb { P } _ { m } ( s ^ { \prime } , r | s , \bar { a } ) = T _ { m } \bar { ( } s ^ { \prime } | s , a ) R _ { m } ( r | s , a )$ . If we use $\mathbb { P }$ without any subscript, it is a probability of an event measured outsidethe probability of an event depends on a policy f the context, i.e., , we add superscri $\begin{array} { r } { \mathbb { P } ( \cdot ) = \sum _ { m = 1 } ^ { M } w _ { m } \mathbb { P } _ { m } ( \cdot ) } \end{array}$ Ifis $\pi$ $\pi$ $\mathbb { P }$ $\mathbb { E } _ { m } [ \cdot ]$ expectation taken over the $m ^ { t h }$ context and $\pi$ is added as superscript if the expectation depends on $\pi$ . We use ˆ· to denote any estimated quantities. $a \lesssim b$ implies $a$ is less than $b$ up to some constant and logarithmic factors. $p o l y ( \cdot )$ means the order of polynomial complexity (up to logarithmic factors) in referenced parameters. We interchangeably use $o$ , an observation, to replace a pair of next-state and immediate reward $( s ^ { \prime } , r )$ to simplify the notation. We occasionally express a length $t > 0$ history $( s _ { 1 } , a _ { 1 } , r _ { 1 } , . . . , s _ { t } , a _ { t } , r _ { t } )$ compactly as $( s , a , r ) _ { 1 : t }$ .
|
| 95 |
+
|
| 96 |
+
# 3 Main Results
|
| 97 |
+
|
| 98 |
+
In this section, we first obtain a hardness result for the general case. We then consider sample- and computationally efficient algorithms under additional assumptions.
|
| 99 |
+
|
| 100 |
+
# 3.1 Fundamental Limits of Learning General LMDPs
|
| 101 |
+
|
| 102 |
+
We first study the fundamental limits of the problem. In particular, we are interested in whether we can learn the optimal policy after interacting with the LMDP for a number of episodes polynomial in the problem parameters. We prove a worst-case lower bound, exhibiting an instance of LMDP that requires at least $\Omega \left( ( S A ) ^ { M } \right)$ episodes:
|
| 103 |
+
|
| 104 |
+
Theorem 3.1 (Lower Bound) There exists an LMDP such that for finding an -optimal policy $\pi _ { \epsilon }$ for which $V _ { \mathcal { M } } ^ { \pi _ { \epsilon } } \geq V _ { \mathcal { M } } ^ { * } - \epsilon$ , we need at least $\Omega \left( ( S A / M ) ^ { M } / \epsilon ^ { 2 } \right)$ episodes.
|
| 105 |
+
|
| 106 |
+
The hard instance consists of fully deterministic MDPs with possibly stochastic rewards, indicating an exponential lower bound in the number of contexts even for the easiest types of LMDPs. The example is constructed such that, in the absence of knowing true contexts, all wrong action sequences of length $M$ cannot provide any information with zero reward, whereas the only correct action sequence gets a total reward of 1 under one specific context. The construction is given in Appendix B.
|
| 107 |
+
|
| 108 |
+
Theorem 3.1 prevents a design of efficient algorithms with growing number of contexts. We note here that Theorem 3.1 holds even for restricted classes of policies, e.g., memoryless policies. Furthermore, our construction of hard instances does not allow to find any approximate policy with $\rho _ { 1 } = \omega ( ( S A ) ^ { - M } )$ within a polynomial number of episodes either. To the best of our knowledge, this
|
| 109 |
+
|
| 110 |
+
Initialize visit counts $N _ { m } ( s , a ) , N ( m )$ and parameters $( \hat { T } _ { m } , \hat { R } _ { m } , \hat { \nu } _ { m } )$ properly
|
| 111 |
+
|
| 112 |
+
1: for each $k ^ { t h }$ episode do
|
| 113 |
+
2: Get a policy $\pi _ { k }$ for $\widetilde { \mathcal { M } } _ { k }$ in Lemma 3.2
|
| 114 |
+
3: Play policy $\pi _ { k }$ and get the trajectory $\tau = ( s , a , r ) _ { 1 : H }$
|
| 115 |
+
4: Get an estimated belief over contexts $\hat { b }$ with either Algorithm 2 (when contexts are given), or
|
| 116 |
+
Algorithm 3 (when we infer contexts)
|
| 117 |
+
5: for $m = 1 , . . . , M$ and $t = 1 , . . . , H$ do
|
| 118 |
+
6: $N _ { m } ( s _ { t + 1 } | a _ { t } , s _ { t } ) \gets N _ { m } ( s _ { t + 1 } | a _ { t } , s _ { t } ) + \hat { b } ( m )$
|
| 119 |
+
7: $N _ { m } ( r _ { t } | s _ { t } , a _ { t } ) \gets N _ { m } ( r _ { t } | s _ { t } , a _ { t } ) + \hat { b } ( m )$
|
| 120 |
+
8: $N _ { m } ( s _ { 1 } ) \gets N _ { m } ( s _ { 1 } ) + \hat { b } ( m )$
|
| 121 |
+
9: Update empirical parameters $\hat { T } _ { m } , \hat { R } _ { m } , \hat { \nu } _ { m }$
|
| 122 |
+
10: end for
|
| 123 |
+
11: end for
|
| 124 |
+
|
| 125 |
+
is the first lower bound of its kind for LMDPs. Next, we investigate natural assumptions which help us to develop an efficient algorithm when only polynomial number of episodes are available.
|
| 126 |
+
|
| 127 |
+
# 3.2 The Critical First Step: Contexts in Hindsight
|
| 128 |
+
|
| 129 |
+
Suppose the true context of the underlying MDP is revealed to the agent at the end of each episode. We do not require any assumptions on the environments in this scenario. Note that this scenario is different from fully observable settings (i.e., knowing the true context at the beginning of an episode). In the latter scenario, we would simply have $M$ -decoupled RL problems in standard MDPs. While this can be considered as a “warm-up” for the sequel, it is motivated by real-world examples. Moreover, the key technical insight here will prove important for the sequel as well.
|
| 130 |
+
|
| 131 |
+
Knowing contexts in hindsight allows us to construct a confidence set for parameters:
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
\begin{array} { r } { \mathcal { C } = \{ \mathcal { M } \ | \| ( \nu _ { m } - \hat { \nu } _ { m } ) ( s ) \| _ { 1 } \leq \sqrt { c _ { \nu } / N ( m ) } , \ \| ( T _ { m } - \hat { T } _ { m } ) ( s ^ { \prime } | s , a ) \| _ { 1 } \leq \sqrt { c _ { T } / N _ { m } ( s , a ) } , } \\ { \| ( R _ { m } - \hat { R } _ { m } ) ( r | s , a ) \| _ { 1 } \leq \sqrt { c _ { R } / N _ { m } ( s , a ) } , \quad \forall m , s , a \} , } \end{array}
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+
where $N _ { m } ( s , a )$ is the number of times each state-action pair $( s , a )$ in $m ^ { t h } ~ \mathrm { { M D P } }$ is visited, and $N ( m )$ is the number of episodes we interact with the $m ^ { t h }$ MDP. With properly set parameters $\dot { c _ { T } } = { \cal O } ( S \log ( K / \eta ) ) , c _ { R } \dot { = } { \cal O } ( \log ( K / \eta ) )$ and $c _ { \nu } = O ( S \log ( K / \eta ) )$ for the confidence intervals, $\mathcal { M } ^ { \ast } \in \mathcal { C }$ with high probability for all $K$ episodes.
|
| 138 |
+
|
| 139 |
+
With the construction of confidence sets, it is then natural to try to design an optimistic RL algorithm, as in UCRL [22]. An obvious optimistic value in light of (2) is $\operatorname* { m a x } _ { \pi } { } , \mathcal { M } \in \mathcal { C } \ : V _ { \mathcal { M } } ^ { \pi }$ . However, solving this optimization problem is more general than solving an LMDP. In fully observable settings, we could replace the complex optimization problem by adding a proper exploration bonus to obtain an optimistic value function [4].
|
| 140 |
+
|
| 141 |
+
In partially observable environments, value iteration is only defined in terms of belief-states and not the observed states. For this reason, existing techniques solely based on the value-iteration cannot be directly applied for LMDPs. Yet, we find that proper analysis of the Bellman update rule over the belief state reveals that an empirical LMDP with properly adjusted hidden rewards is optimistic:
|
| 142 |
+
|
| 143 |
+
Proposition 3.2 We construct an optimistic LMDP $\widetilde { \mathcal { M } }$ whose parameters are given such that:
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
\begin{array} { r l } & { \widetilde { T } _ { m } ( s ^ { \prime } | s , a ) = \hat { T } _ { m } ( s ^ { \prime } | s , a ) , \ \widetilde { R } _ { m } ^ { o b s } ( r | s , a ) = \hat { R } _ { m } ( r | s , a ) , \ \widetilde { \nu } _ { m } ( s ) = \hat { \nu } _ { m } ( s ) , } \\ & { \widetilde { R } _ { i n i t } ^ { h i d } ( m ) = \operatorname* { m i n } \left( 1 , \sqrt { c _ { \nu } / N ( m ) } \right) \ \widetilde { R } _ { m } ^ { h i d } ( s , a ) = H \operatorname* { m i n } \left( 1 , \sqrt { 5 \left( c _ { R } + c _ { T } \right) / N _ { m } ( s , a ) } \right) , } \end{array}
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
where $\widetilde { R } _ { i n i t } ^ { h i d } ( m )$ is an initial hidden reward given when starting an episode with a context $m$ , and $\widetilde { R } _ { m } ^ { o b s } ( \cdot | s , a )$ is a probability measure of an observable immediate reward $r$ whereas $\widetilde { R } _ { m } ^ { h i d } ( s , a )$ is $a$ hidden immediate reward (that is not visible to the agent) for a state-action pair $( s , a )$ in a context $m$ . Then for any policy $\pi$ , the expected long-term reward is optimistic, i.e., $V _ { \widehat { \mathcal { M } } } ^ { \pi } \geq V _ { \mathcal { M } ^ { \ast } } ^ { \pi }$ .
|
| 150 |
+
|
| 151 |
+
Algorithm 2 Access to True Contexts
|
| 152 |
+
|
| 153 |
+
Input: Receive true context $m ^ { * }$ in hindsight
|
| 154 |
+
|
| 155 |
+
Output : Belief over hidden contexts:
|
| 156 |
+
|
| 157 |
+
$$
|
| 158 |
+
\hat { b } ( m ) = \left\{ \begin{array} { l l } { { 1 , } } & { { \mathrm { f o r } m = m ^ { * } } } \\ { { 0 , } } & { { \mathrm { f o r } m \ne m ^ { * } } } \end{array} \right.
|
| 159 |
+
$$
|
| 160 |
+
|
| 161 |
+
# Algorithm 3 Inference of Contexts
|
| 162 |
+
|
| 163 |
+
Input: Trajectory $\tau = ( s _ { 1 } , a _ { 1 } , r _ { 1 } , . . . , s _ { H } , a _ { H } , r _ { H } )$ Output: Return an estimate of belief over contexts $\hat { b }$ :
|
| 164 |
+
|
| 165 |
+
$$
|
| 166 |
+
\begin{array} { l } { \hat { p } _ { m } ( \tau ) = \Pi _ { t = 1 } ^ { H } ( \alpha + ( 1 - 2 \alpha S ) \hat { \mathbb { P } } _ { m } ( s _ { t + 1 } , r _ { t } | s _ { t } , a _ { t } ) ) , } \\ { \hat { b } ( m ) = \frac { \hat { p } _ { m } ( \tau ) } { \sum _ { m = 1 } ^ { M } \hat { p } _ { m } ( \tau ) } . } \end{array}
|
| 167 |
+
$$
|
| 168 |
+
|
| 169 |
+
Here, hidden reward is a deterministic reward that happens for every state-action pair, but does not appear in any observation history during the episode. We note that most existing planning algorithms can incorporate the hidden-reward structure without changes to maximize the long-term observed $^ +$ hidden rewards. For instance, the PBVI algorithm [39] can be executed as it is in the planning step. Hence in each episode, we can build one optimistic model from Proposition 3.2, and call the planning-oracle to get a policy to execute for the episode. Then we simply run the policy and update model parameters in a straight-forward manner. The algorithm can be efficiently implemented as long as some efficient (approximate) planning algorithms are available.
|
| 170 |
+
|
| 171 |
+
To establish Proposition 3.2, we make use of the ‘alpha vector’ representation [42] of the value function of general POMDPs. Detailed analysis is deferred to Appendix C.1. With the optimistic model constructed in Proposition 3.2, planning-oracle efficient implementation is straightforward. The resulting latent upper confidence reinforcement learning (L-UCRL) algorithm is summarized in Algorithm 1. Based on the established optimism in Proposition 3.2 and by carefully bounding the on-policy errors we arrive to the following regret guarantee of L-UCRL.
|
| 172 |
+
|
| 173 |
+
Theorem 3.3 Let $N = H K$ . The regret of the Algorithm 1 is bounded by:
|
| 174 |
+
|
| 175 |
+
$$
|
| 176 |
+
R e g r e t ( K ) \leq \sum _ { k = 1 } ^ { K } ( V _ { \widehat { \mathcal { M } } _ { k } } ^ { \pi _ { k } } - V _ { \mathcal { M } ^ { * } } ^ { \pi _ { k } } ) \lesssim H S \sqrt { M A N } .
|
| 177 |
+
$$
|
| 178 |
+
|
| 179 |
+
Proof of Theorem 3.3 is given in Appendix C.4. The central result of this section, Theorem 3.3 leads to the following observation: a polynomial sample complexity is possible for the LMDP model assuming the context of the underlying MDP is supplied at the end of each episode. Next, we explore ways to relax this assumption, while keep supplying with a polynomial sample complexity guarantee.
|
| 180 |
+
|
| 181 |
+
# 3.3 When we can Infer Contexts?
|
| 182 |
+
|
| 183 |
+
Without explicit access to the true context at the end of an episode, it is natural to estimate the context from the sampled trajectory. One sufficient condition to infer the context is the following:
|
| 184 |
+
|
| 185 |
+
Assumption 1 $\boldsymbol { \delta }$ -Strongly Separated MDPs) For all $m$ , $m _ { 1 } , m _ { 2 } \in [ M ]$ such that $m _ { 1 } \neq m _ { 2 }$ , for all $( s , a ) \in \mathcal { S } \times \mathcal { A } , l$ $l _ { 1 }$ distance between probability of observations $o = \bar { ( \boldsymbol { s } ^ { \prime } , \boldsymbol { r } ) }$ of two different $M D P s$ in $L M D P$ is at least $\delta > 0$ , i.e., $\| ( \mathbb { P } _ { m _ { 1 } } - \mathbb { P } _ { m _ { 2 } } ) ( o | s , a ) \| _ { 1 } \geq \delta$ for some constant $\delta > 0$ .
|
| 186 |
+
|
| 187 |
+
In order to reliably infer the true contexts the seperatedness between MDPs alone is not sufficient, since we need to estimate the contexts from the current empirical estimates of LMDPs. In order to reliably estimate the context from empirical estimate of LMDPs, we need a well-initialized empirical transition model of the LMDP:
|
| 188 |
+
|
| 189 |
+
$$
|
| 190 |
+
\| ( \hat { T } _ { m } - T _ { m } ) ( s ^ { \prime } | s , a ) \| _ { 1 } , \ \| ( \hat { \nu } _ { m } - \nu _ { m } ) ( s ) \| _ { 1 } , \ \| ( \hat { R } _ { m } - R _ { m } ) ( r | s , a ) \| _ { 1 } \leq \epsilon _ { i n i t } , \qquad \forall ( s , a ) ,
|
| 191 |
+
$$
|
| 192 |
+
|
| 193 |
+
for some initialization error $\epsilon _ { i n i t } > 0$ . Note that while the initialization error is relatively small, it can be still not good enough to obtain a near-optimal policy (i.e., it will result in a linear regret). We can consider as if the state-action pairs are already visit at least $N _ { 0 } = c _ { T } / \epsilon _ { i n i t } ^ { 2 }$ times in each context.
|
| 194 |
+
|
| 195 |
+
Once the initialization is given along with separation between MDPs, we can modify Algorithm 1 to update the empirical estimate of LMDP using the estimated belief over contexts computed in Algorithm 3. Note that when we update the model parameters, we increase the visit count of stateaction pair $( s , a )$ at $m ^ { t h }$ MDP by $\hat { b } ( m )$ . With Assumption 1, it approximately adds a count for the correctly estimated context, but even without Assumption 1, the update steps can still be applied. In fact, this is equivalent to an implementation of the so-called (online) expectation-maximization (EM) algorithm [10] for latent MDPs. Thus Algorithm 1 with Algorithm 3 essentially results in combining L-UCRL and the EM algorithm.
|
| 196 |
+
|
| 197 |
+
<table><tr><td colspan="2">Learn PSR parameters up to precision o(δ)</td></tr><tr><td colspan="2">Get clusters {Tm(*|s,a), Rm(-|s,a)}(s,a)∈S× A,m∈[M] with learned PSR parameters Build each MDP model by correctly assigning contexts to estimated model parameters Return Well-initialized model {Tm, Rm}m∈[M]</td></tr></table>
|
| 198 |
+
|
| 199 |
+
In terms of performance guarantees, using Algorithm 3 as a sub-routine for L-UCRL gives the same order of regret as in Theorem 3.3 as long as the true context can be almost reliably inferred:
|
| 200 |
+
|
| 201 |
+
Theorem 3.4 Suppose Assumption 1 holds with $H > C \cdot \delta ^ { - 4 } \log ^ { 2 } ( 1 / \alpha ) \log ( N / \eta ) .$ for some absolute constants $C , \delta > 0$ , and a parameter $\alpha > 0$ such that $\alpha \ln ( 1 / \alpha ) \leq \delta ^ { 2 } / ( 2 0 0 S )$ . If the initialization parameters satisfy equation (3) with some initialization error $\epsilon _ { i n i t } \leq \delta ^ { 2 } / ( 2 0 0 \ln ( 1 / \alpha ) )$ , then with probability at least $1 - \eta$ , the regret of Algorithm $^ { l }$ is bounded by:
|
| 202 |
+
|
| 203 |
+
$$
|
| 204 |
+
R e g r e t ( K ) \lesssim H S \sqrt { M A N } .
|
| 205 |
+
$$
|
| 206 |
+
|
| 207 |
+
The proof of Theorem 3.4 is given in Appendix D.3. The provable guarantees are only given for wellseparated LMDPs. Nevertheless, we empirically evaluate Algorithm 1 as a function of separations and initialization (see Figure 1).
|
| 208 |
+
|
| 209 |
+
An interesting consequence of Assumption 1 is that the length of episode can be logarithmic in the number of state and actions. With much longer time-horizons $H \overset { \cdot } { \geq } \Omega ( S ^ { 2 } A / \delta ^ { 2 } )$ , [8, 18] assumed similar $\delta$ -separation only for some $( s , a )$ pairs. While Assumption 1 requires a stronger assumption of $\delta$ -separation for all state-actions, the requirement on the time-horizon can be significantly weaker with large state and action spaces. For a more discussion on the separation condition, we refer the readers to Appendix D.1.
|
| 210 |
+
|
| 211 |
+
# 3.4 Learning LMDPs without Initialization
|
| 212 |
+
|
| 213 |
+
Finally, we discuss efficient initialization with some additional assumptions. Clustering trajectories is the cornerstone of all our technical results, as this allows us to estimate the parameters of each hidden MDP and then apply the techniques of Section 3.2. The challenge is how to cluster when we have short trajectories, and no good initialization.
|
| 214 |
+
|
| 215 |
+
The key is again in Assumption 1. In Section 3.3, we use a good initialization to obtain accurate estimates of the belief states. These can then be clustered, thanks to Assumption 1, allowing us to obtain the true label in hindsight. Without initialization, we cannot accurately compute the belief state, so this avenue is blocked. Instead, our key idea is to leverage a predictive state representation (PSR) of the POMDP dynamics, and then show that Assumption 1 allows us to cluster in this space.
|
| 216 |
+
|
| 217 |
+
Algorithm 4 gives our approach. We first explain the high-level idea, and subsequently detail some of the more subtle points. Suppose we have PSR parameters allowing us to estimate ${ \dot { \mathbb { P } } } ( o | h | | \mathbf { d o } a )$ , (the probabilities of any future observations $o = \left( s ^ { \prime } , r \right)$ given a history $h$ and intervening action $a$ ) to within accuracy $o ( \delta )$ . We then show that we can again apply Assumption 1, to (almost) perfectly cluster the MDPs by true context at the end of the episode. After we collect transition probabilities at all states near the end of episode, we can construct a full transition model for each MDP.
|
| 218 |
+
|
| 219 |
+
Learning the PSR to sufficient accuracy requires an additional assumption. We show that the following standard assumption on statistical sufficiency of histories and tests, is sufficient for our purposes (see also Section 2.2.1 and Appendix E.1):
|
| 220 |
+
|
| 221 |
+
Assumption 2 (Sufficient Tests/Histories) Let $\tau$ and $\mathcal { H }$ be the set of all possible tests and histories of length $l = O ( 1 )$ respectively, with a given sampling policy $\boldsymbol { \mathscr { u } }$ (e.g., uniformly random policy) for histories H. $\tau$ and $\mathcal { H }$ satisfy Condition 1 and 2 respectively.
|
| 222 |
+
|
| 223 |
+

|
| 224 |
+
Figure 1: (a) L-UCRL when true contexts are revealed in hindsight and when we run with the EM algorithm. (b) $\mathrm { E M } + \mathrm { L }$ -UCRL (Algorithm 1) under different levels of separation and horizon length.
|
| 225 |
+
|
| 226 |
+
While the worst-case instance may require $l \geq M$ to satisfy the full-rank conditions, we assume that the length of sufficient tests/histories is $l = O ( 1 )$ . In fact, $l = 1$ has been (implicitly) the common assumption in the literature on learning POMDPs [20, 5, 17, 25]. Empirically, we observe that the more MDPs differ, the more easily they satisfy Assumption 2. See Figure 2. At this point, we are not aware whether sample-efficient learning is possible with only Assumption 1.
|
| 227 |
+
|
| 228 |
+
Though the main idea and key assumption are above, a few important details and technical assumptions remain to complete this story. The primary guarantee still required is that we have access to an exploration policy with sufficient mixing, to guarantee we can collect all required information to perform the PSR-based clustering. The following assumption ensures that additional ${ \tilde { O } } ( M / \alpha _ { 2 } )$ sample trajectories obtained with the exploration policy $\pi$ can provide $M$ clusters of estimated one-step predictions $\mathbb { P } _ { m } ( o | s , a )$ for every state $s$ and intervening action $a$ .
|
| 229 |
+
|
| 230 |
+
Assumption 3 (Reachability of States) There exists a priori known exploration policy $\pi$ such that, for all $m \in [ M ]$ and $s \in S$ , we have $\mathbb { P } _ { m } ^ { \pi } ( s _ { H - 1 } = s ) \geq \alpha _ { 2 }$ for some $\alpha _ { 2 } > 0$ .
|
| 231 |
+
|
| 232 |
+
A subtle point here is that we still have an ambiguity issue in the ordering of contexts (or labels) assigned in different states, which prevents us from recovering the full model for each context. We resolve this issues ambiguity assuming the MDP is connected, and give the full description of Algorithm 4 in Appendix E.2. We conclude this section with an (informal) end-to-end guarantee:
|
| 233 |
+
|
| 234 |
+
Theorem 3.5 (Informal) Let Assumption 2 hold for an LMDP instance with a sampling policy $\pi$ . Furthermore, assume the LMDP satisfies Assumptions 1 and 3. Then there exists an algorithm such that with probability at least $2 / 3$ , it returns a good initialization of LMDP parameters that satisfies (3) in time $p o l y ( A ^ { l } , S , H , M , \sigma _ { h } ^ { - 1 } , \sigma _ { \tau } ^ { - 1 } , \alpha _ { 2 } ^ { - 1 } , \delta , \epsilon _ { i n i t } ) .$ .
|
| 235 |
+
|
| 236 |
+
Theorem 3.5 completes the pipeline for learning in latent MDPs: we initialize the parameters by the estimated PSR and clustering (see Appendix E) up to some accuracy, and then we run L-UCRL to refine the model and policy up to arbitrary accuracy (Algorithm 1). Full version of Theorem 3.5 can be found in Theorem E.3.
|
| 237 |
+
|
| 238 |
+
# 4 Experiments
|
| 239 |
+
|
| 240 |
+
In this section, we evaluate the proposed algorithm on synthetic data. Our first two experiments illustrate the performance of L-UCRL (Algorithm 1) for various levels of separation and quality of initialization. Then, we empirically study the performance of the PSR-Clustering algorithm for randomly generated LMDPs for different levels of separation and time-horizon.
|
| 241 |
+
|
| 242 |
+
# 4.1 The Value of True Contexts in Hindsight
|
| 243 |
+
|
| 244 |
+
We first study the importance of receiving the true contexts in hindsight for the approach analyzed in this work, by comparing the performance of Algorithm 1 when instantiating it with Algorithm 2 or 3 as a sub-routine. We generate random instances of LMDPs of size $M = 7 , S = 1 5 , A = 3$ and set the time-horizon $H = 3 0$ . The reward distribution is set to be 0 for most state-action pairs. We compare when we give a true context to the algorithm (Algorithm 2) and when we infer a context with random initialization or good initialization (Algorithm 3). In the latter, it is equivalent to running the EM algorithm for the model estimation. For the planning algorithm, we use Q-MDP heuristic [32] which shows good empirical performance. We measure the model estimation error as $\begin{array} { r } { \begin{array} { r } { e r r o r : = \operatorname* { m i n } _ { \sigma \in { \mathrm { P e r m } } _ { M } } \sum _ { ( m , s , a ) } \| \big ( { \mathbb { P } } _ { m } - \hat { { \mathbb { P } } } _ { \sigma ( m ) } \big ) \big ( s ^ { \prime } , r | s , a \big ) \| _ { 1 } , } \end{array} } \end{array}$ where $ { \mathrm { P e r m } } _ { M }$ denotes all length $M$ permutation sequences. The measured errors are averaged over 10 independent experiments.
|
| 245 |
+
|
| 246 |
+

|
| 247 |
+
Figure 2: PSR learning and Clustering (Algorithm 4). Left: Convergence of belief state. Middle: $M ^ { t h }$ singular value of sufficient histories/tests matrix $P _ { \mathcal { T } , \mathcal { H } }$ . Right: Accuracy of the estimated model.
|
| 248 |
+
|
| 249 |
+
The experimental results are given in Figure 1(a). When the true context is given at the end of episode (with Algorithm 2), L-UCRL converges to the optimal policy as our theory suggests. On the other hand, if the true context is not given (with Algorithm 3), the quality of initialization becomes crucial; when the model is poorly initialized, the estimated model converges to a local optimum which leads to a sub-optimal policy. When the model is well-initialized, L-UCRL performs as well as when true contexts are given in hindsight.
|
| 250 |
+
|
| 251 |
+
# 4.2 Performance of L-UCRL with Good Initialization
|
| 252 |
+
|
| 253 |
+
In our second experiment, we focus on the performance of L-UCRL (Algorithm 1) along with Algorithm 3 under different levels of separation $\delta$ in Assumption 1) when approximately good model parameters are given. For various levels of $\delta$ , we generate the parameters for transition probabilities randomly while keeping the distance between different MDPs to satisfy $\delta \leq \| ( T _ { m _ { 1 } } -$ $\bar { T } _ { m _ { 2 } } ) ( s ^ { \prime } | s , a ) \| _ { 1 } \leq 2 \delta$ for $m _ { 1 } \neq m _ { 2 }$ .
|
| 254 |
+
|
| 255 |
+
We show the error in the estimated model and average long-term rewards in Figure 1(b). When the separation is sufficient (larger $\delta$ or $H$ ), the estimated model converges fast to the true parameters. When the separation gets small (smaller $\delta$ or $H$ ), the convergence speed gets slower. This type of transition in the convergence speed of EM (the update of model parameters with Algorithm 3) is observed both in theory and practice when the overlap between mixture components gets larger (e.g., [29]). On the other hand, the policy steadily improves regardless of the level of separation. We conjecture that this is because the optimal policy would only need the model to be accurate in the total-variation distance, not in the actual estimated parameters.
|
| 256 |
+
|
| 257 |
+
# 4.3 Initialization with PSR and Clustering
|
| 258 |
+
|
| 259 |
+
In the third experiment, we evaluate the initialization algorithm (Algorithm 4) for randomly generated LMDP instances. Since PSR learning requires a (relatively) large number of short sample trajectories, we evaluate this step on smaller instances with $S = 7 , A = 2 , M = 3$ . The LMDP instances are generated similarly as in the second experiment with different levels of $\delta$ and $H$ . The reward and initial distributions are set the same across all MDPs. To learn the parameters of PSR, we run $1 0 ^ { 6 }$ episodes with $H = 4$ . We assume histories and tests of length 1 are statistically sufficient with the uniformly random policy. In the clustering step, we run an additional $5 \cdot 1 0 ^ { 3 }$ episodes to obtain longer trajectories of length $H = 2 0 , 4 0$ and 80. We report the experimental results in Figure 2.
|
| 260 |
+
|
| 261 |
+
We first observe how the level of separation $\delta$ between MDPs impacts trajectory separation, i.e., belief state vs true label (left). Recall that this separation property is the key for clustering trajectories. We then examine the performance of Algorithm 4 (see full Algorithm 5) for various levels of separation. Empirically, it succeeds to get a good initialization of an LMDP model when we have sufficient separation. As the separation level decreases, the algorithm starts to fail (Right). There are two possible sources of the failure: (1) the belief state is far from the true context, and (2) the similarity between MDPs drops the $M ^ { t h }$ singular value of $P _ { \mathcal { T } , \mathcal { H } }$ (Middle). We can compensate for (1) if we have a longer time-horizon to infer true contexts, as in the leftmost graph. For (2), if the $M ^ { t h }$ singular value drops, we require more samples for the estimation of PSR parameters. In our experiments, as we decreased $\delta$ we found that failure in the spectral learning step was the more significant of the two.
|
| 262 |
+
|
| 263 |
+
# 5 Future Work
|
| 264 |
+
|
| 265 |
+
There are several interesting research avenues in continuation of this work. An interesting direction is to study RL algorithms for LMDPs with no underlying assumptions. Although our lower bound suggests such an algorithm necessarily suffers an exponential dependence in the number of contexts, if this number is small, such dependence might be acceptable. Specifically, we conjecture that general LMDPs can be learned with sample complexity of poly $\left( \dot { ( } H S A ) ^ { M } , \epsilon ^ { - 1 } \right)$ . For a special case when MDPs are deterministic, we show that the exponential dependence in $\dot { M }$ is sufficient In Appendix G. The case for general LMDPs is an interesting open question. Furthermore, a needed empirical advancement is to design efficient ways to learn the set of sufficient histories/tests for learning predictive state representation of LMDPs. This can dramatically improve the performance of our algorithms when a sufficiently good initial model needs to be learned.
|
| 266 |
+
|
| 267 |
+
# Acknowledgement
|
| 268 |
+
|
| 269 |
+
The research was funded by NSF grant 2019844, and by the Army Research Office and was accomplished under Cooperative Agreement Number W911NF-19-2-0333. The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the Army Research Office or the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notation herein.
|
| 270 |
+
|
| 271 |
+
# References
|
| 272 |
+
|
| 273 |
+
[1] A. Anandkumar, R. Ge, D. Hsu, S. M. Kakade, and M. Telgarsky. Tensor decompositions for learning latent variable models. Journal of Machine Learning Research, 15:2773–2832, 2014.
|
| 274 |
+
[2] A. Anandkumar, D. Hsu, and S. M. Kakade. A method of moments for mixture models and hidden markov models. In Conference on Learning Theory, pages 33–1, 2012.
|
| 275 |
+
[3] D. Arthur and S. Vassilvitskii. k-means $^ { + + }$ the advantages of careful seeding. In Proceedings of the eighteenth annual ACM-SIAM symposium on Discrete algorithms, pages 1027–1035, 2007.
|
| 276 |
+
[4] M. G. Azar, I. Osband, and R. Munos. Minimax regret bounds for reinforcement learning. arXiv preprint arXiv:1703.05449, 2017.
|
| 277 |
+
[5] K. Azizzadenesheli, A. Lazaric, and A. Anandkumar. Reinforcement learning of POMDPs using spectral methods. In Conference on Learning Theory, pages 193–256, 2016.
|
| 278 |
+
[6] B. Boots and G. J. Gordon. An online spectral learning algorithm for partially observable nonlinear dynamical systems. In Twenty-Fifth AAAI Conference on Artificial Intelligence, 2011.
|
| 279 |
+
[7] B. Boots, S. M. Siddiqi, and G. J. Gordon. Closing the learning-planning loop with predictive state representations. The International Journal of Robotics Research, 30(7):954–966, 2011.
|
| 280 |
+
[8] E. Brunskill and L. Li. Sample complexity of multi-task reinforcement learning. In Uncertainty in Artificial Intelligence, page 122. Citeseer, 2013.
|
| 281 |
+
[9] P. Buchholz and D. Scheftelowitsch. Computation of weighted sums of rewards for concurrent MDPs. Mathematical Methods of Operations Research, 89(1):1–42, 2019.
|
| 282 |
+
[10] O. Cappé and E. Moulines. On-line expectation–maximization algorithm for latent data models. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 71(3):593–613, 2009.
|
| 283 |
+
[11] I. Chadès, J. Carwardine, T. Martin, S. Nicol, R. Sabbadin, and O. Buffet. Momdps: a solution for modelling adaptive management problems. In Twenty-Sixth AAAI Conference on Artificial Intelligence (AAAI-12), 2012.
|
| 284 |
+
[12] C. Dann, N. Jiang, A. Krishnamurthy, A. Agarwal, J. Langford, and R. E. Schapire. On oracleefficient PAC RL with rich observations. In Advances in neural information processing systems, pages 1422–1432, 2018.
|
| 285 |
+
[13] S. Du, A. Krishnamurthy, N. Jiang, A. Agarwal, M. Dudik, and J. Langford. Provably efficient rl with rich observations via latent state decoding. In International Conference on Machine Learning, pages 1665–1674, 2019.
|
| 286 |
+
[14] A. Garivier, P. Ménard, and G. Stoltz. Explore first, exploit next: The true shape of regret in bandit problems. Mathematics of Operations Research, 44(2):377–399, 2019.
|
| 287 |
+
[15] C. Gentile, S. Li, P. Kar, A. Karatzoglou, G. Zappella, and E. Etrue. On context-dependent clustering of bandits. In International Conference on Machine Learning, pages 1253–1262. PMLR, 2017.
|
| 288 |
+
[16] C. Gentile, S. Li, and G. Zappella. Online clustering of bandits. In International Conference on Machine Learning, pages 757–765, 2014.
|
| 289 |
+
[17] Z. D. Guo, S. Doroudi, and E. Brunskill. A PAC RL algorithm for episodic POMDPs. In Artificial Intelligence and Statistics, pages 510–518, 2016.
|
| 290 |
+
[18] A. Hallak, D. Di Castro, and S. Mannor. Contextual markov decision processes. arXiv preprint arXiv:1502.02259, 2015.
|
| 291 |
+
[19] A. Hefny, C. Downey, and G. J. Gordon. Supervised learning for dynamical system learning. In Advances in neural information processing systems, pages 1963–1971, 2015.
|
| 292 |
+
[20] D. Hsu, S. M. Kakade, and T. Zhang. A spectral algorithm for learning hidden markov models. Journal of Computer and System Sciences, 78(5):1460–1480, 2012.
|
| 293 |
+
[21] T. Jaakkola, S. P. Singh, and M. I. Jordan. Reinforcement learning algorithm for partially observable markov decision problems. In Advances in neural information processing systems, pages 345–352, 1995.
|
| 294 |
+
[22] T. Jaksch, R. Ortner, and P. Auer. Near-optimal regret bounds for reinforcement learning. Journal of Machine Learning Research, 11:1563–1600, 2010.
|
| 295 |
+
[23] N. Jiang, A. Krishnamurthy, A. Agarwal, J. Langford, and R. E. Schapire. Contextual decision processes with low bellman rank are PAC-learnable. In International Conference on Machine Learning, pages 1704–1713. PMLR, 2017.
|
| 296 |
+
[24] N. Jiang, A. Kulesza, and S. Singh. Improving predictive state representations via gradient descent. In Thirtieth AAAI Conference on Artificial Intelligence, 2016.
|
| 297 |
+
[25] C. Jin, S. M. Kakade, A. Krishnamurthy, and Q. Liu. Sample-efficient reinforcement learning of undercomplete POMDPs. arXiv preprint arXiv:2006.12484, 2020.
|
| 298 |
+
[26] A. Krishnamurthy, A. Agarwal, and J. Langford. PAC reinforcement learning with rich observations. In Advances in Neural Information Processing Systems, pages 1840–1848, 2016.
|
| 299 |
+
[27] J. Kwon and C. Caramanis. The EM algorithm gives sample-optimality for learning mixtures of well-separated gaussians. In Conference on Learning Theory, pages 2425–2487, 2020.
|
| 300 |
+
[28] J. Kwon and C. Caramanis. EM converges for a mixture of many linear regressions. In International Conference on Artificial Intelligence and Statistics, pages 1727–1736, 2020.
|
| 301 |
+
[29] J. Kwon, N. Ho, and C. Caramanis. On the minimax optimality of the EM algorithm for learning two-component mixed linear regression. arXiv preprint arXiv:2006.02601, 2020.
|
| 302 |
+
[30] Y. Li, B. Yin, and H. Xi. Finding optimal memoryless policies of POMDPs under the expected average reward criterion. European Journal of Operational Research, 211(3):556–567, 2011.
|
| 303 |
+
[31] M. L. Littman. Memoryless policies: Theoretical limitations and practical results. In From Animals to Animats 3: Proceedings of the third international conference on simulation of adaptive behavior, volume 3, page 238. Cambridge, MA, 1994.
|
| 304 |
+
[32] M. L. Littman, A. R. Cassandra, and L. P. Kaelbling. Learning policies for partially observable environments: Scaling up. In Machine Learning Proceedings 1995, pages 362–370. Elsevier, 1995.
|
| 305 |
+
[33] M. L. Littman and R. S. Sutton. Predictive representations of state. In Advances in neural information processing systems, pages 1555–1561, 2002.
|
| 306 |
+
[34] Y. Liu, Z. Guo, and E. Brunskill. PAC continuous state online multitask reinforcement learning with identification. In Proceedings of the 2016 International Conference on Autonomous Agents & Multiagent Systems, pages 438–446, 2016.
|
| 307 |
+
[35] O.-A. Maillard and S. Mannor. Latent bandits. In International Conference on Machine Learning, pages 136–144, 2014.
|
| 308 |
+
[36] A. Modi, N. Jiang, S. Singh, and A. Tewari. Markov decision processes with continuous side information. In Algorithmic Learning Theory, pages 597–618, 2018.
|
| 309 |
+
[37] A. Y. Ng and M. Jordan. PEGASUS: a policy search method for large MDPs and POMDPs. In Proceedings of the Sixteenth conference on Uncertainty in artificial intelligence, pages 406–415, 2000.
|
| 310 |
+
[38] C. H. Papadimitriou and J. N. Tsitsiklis. The complexity of Markov decision processes. Mathematics of operations research, 12(3):441–450, 1987.
|
| 311 |
+
[39] J. Pineau, G. Gordon, and S. Thrun. Anytime point-based approximations for large POMDPs. Journal of Artificial Intelligence Research, 27:335–380, 2006.
|
| 312 |
+
[40] S. Ross, M. Izadi, M. Mercer, and D. Buckeridge. Sensitivity analysis of POMDP value functions. In 2009 International Conference on Machine Learning and Applications, pages 317–323. IEEE, 2009.
|
| 313 |
+
[41] S. Singh, M. R. James, and M. R. Rudary. Predictive state representations: a new theory for modeling dynamical systems. In Proceedings of the 20th conference on Uncertainty in artificial intelligence, pages 512–519, 2004.
|
| 314 |
+
[42] R. D. Smallwood and E. J. Sondik. The optimal control of partially observable markov processes over a finite horizon. Operations research, 21(5):1071–1088, 1973.
|
| 315 |
+
[43] T. Smith and R. Simmons. Heuristic search value iteration for POMDPs. In Proceedings of the 20th conference on Uncertainty in artificial intelligence, pages 520–527, 2004.
|
| 316 |
+
[44] M. T. Spaan and N. Vlassis. Perseus: Randomized point-based value iteration for POMDPs. Journal of artificial intelligence research, 24:195–220, 2005.
|
| 317 |
+
[45] L. N. Steimle, D. L. Kaufman, and B. T. Denton. Multi-model markov decision processes. Optimization Online URL http://www. optimization-online. org/DB_FILE/2018/01/6434. pdf, 2018.
|
| 318 |
+
[46] G. W. Stewart. Matrix perturbation theory. 1990.
|
| 319 |
+
[47] M. E. Taylor and P. Stone. Transfer learning for reinforcement learning domains: A survey. Journal of Machine Learning Research, 10(7), 2009.
|
| 320 |
+
[48] R. Vershynin. Introduction to the non-asymptotic analysis of random matrices. arXiv preprint arX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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "RL for Latent MDPs: Regret Guarantees and a Lower Bound ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
214,
|
| 8 |
+
122,
|
| 9 |
+
785,
|
| 10 |
+
171
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Jeongyeol Kwon The University of Texas at Austin kwonchungli@utexas.edu ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
243,
|
| 19 |
+
222,
|
| 20 |
+
464,
|
| 21 |
+
263
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Yonathan Efroni Microsoft Research, NYC jonathan.efroni@gmail.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
539,
|
| 30 |
+
222,
|
| 31 |
+
754,
|
| 32 |
+
263
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Constantine Caramanis The University of Texas at Austin constantine@utexas.edu ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
245,
|
| 41 |
+
285,
|
| 42 |
+
465,
|
| 43 |
+
327
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Shie Mannor Technion, NVIDIA shie@ee.technion.ac.il, smannor@nvidia.com ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
544,
|
| 52 |
+
285,
|
| 53 |
+
741,
|
| 54 |
+
340
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "Abstract ",
|
| 61 |
+
"text_level": 1,
|
| 62 |
+
"bbox": [
|
| 63 |
+
462,
|
| 64 |
+
376,
|
| 65 |
+
535,
|
| 66 |
+
392
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "In this work, we consider the regret minimization problem for reinforcement learning in latent Markov Decision Processes (LMDP). In an LMDP, an MDP is randomly drawn from a set of $M$ possible MDPs at the beginning of the interaction, but the identity of the chosen MDP is not revealed to the agent. We first show that a general instance of LMDPs requires at least $\\Omega ( ( S A ) ^ { M } )$ episodes to even approximate the optimal policy. Then, we consider sufficient assumptions under which learning good policies requires polynomial number of episodes. We show that the key link is a notion of separation between the MDP system dynamics. With sufficient separation, we provide an efficient algorithm with local guarantee, i.e., providing a sublinear regret guarantee when we are given a good initialization. Finally, if we are given standard statistical sufficiency assumptions common in the Predictive State Representation (PSR) literature (e.g., [6]) and a reachability assumption, we show that the need for initialization can be removed. ",
|
| 73 |
+
"bbox": [
|
| 74 |
+
233,
|
| 75 |
+
410,
|
| 76 |
+
766,
|
| 77 |
+
589
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "1 Introduction ",
|
| 84 |
+
"text_level": 1,
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
621,
|
| 88 |
+
310,
|
| 89 |
+
638
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Partially observable Markov decision processes (POMDPs) [42] give a general framework to describe partially observable sequential decision problems. In POMDPs, the underlying dynamics satisfy the Markovian property, but the observations give only partial information on the identity of the underlying states. With the generality of this framework comes a high computational and statistical price to pay: POMDPs are hard, primarily because optimal policies depend on the entire history of the process. But for many important problems, this full generality can be overkill, and in particular, does not have a way to leverage special structure. We are interested in settings where the hidden or latent (unobserved) variables have slow dynamics or are even static in each episode. This model is important for diverse applications, from serving a user in a dynamic web application [18], to medical decision making [45], to transfer learning in different RL tasks [8]. Yet, as we explain below, even this area remains little understood, and challenges abound. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
655,
|
| 99 |
+
825,
|
| 100 |
+
808
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Thus, in this work, we consider reinforcement learning (RL) for a special type of POMDP which we call a latent Markov decision process (LMDP). LMDPs consist of some (perhaps large) number $M$ of MDPs with joint state space $s$ and actions $\\mathcal { A }$ . In episodic LMDPs with finite time-horizon $H$ , the static latent (hidden) variable that selects one of $M$ MDPs is randomly chosen at the beginning of each episode, yet is not revealed to the agent. The agent then interacts with the chosen MDP throughout the episode (see Definition 1 for the formal description). ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
814,
|
| 110 |
+
825,
|
| 111 |
+
897
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Related Work. The LMDP framework has previously been introduced under many different names, e.g., hidden-model MDP [11], Multitask RL [8], Contextual MDP [18], Multi-modal Markov decision process [45] and Concurrent MDP [9]. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
92,
|
| 121 |
+
825,
|
| 122 |
+
133
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "Learning in LMDPs is a challenging problem due to the unobservability of latent contexts. For instance, the exact planning problem is P-SPACE hard [45], inheriting the hardness of planning from the general POMDP framework. Nevertheless, the lack of dynamics of the latent variables, offers some hope. As an example, if the number of contexts $M$ is bounded, then the planning problem can be at least approximately solved (e.g., by point-based value iteration (PBVI) [39], or mixed integer programming (MIP) [45]). ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
140,
|
| 132 |
+
825,
|
| 133 |
+
223
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "The most closely related work studying LMDPs is in the context of multitask RL [47, 8, 34, 18]. In this line of work, a common approach is to cluster trajectories according to different contexts, an approach that guided us in designing the algorithms in Section 3.4. However, previous work requires very long time-horizon $H \\gg S A$ in order to guarantee that every state-action pair can be visited multiple times in a single episode. In contrast, we consider a significantly shorter time-horizon that scales poly-logarithmic with the number of states, i.e., $H = p o l y \\bar { \\log ( M S \\dot { A } ) }$ . This short time-horizon results in a significant difference in learning strategy even when we get a feedback on the true context at the end of episode. We refer the readers to Appendix A for additional discussion on related work. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
229,
|
| 143 |
+
825,
|
| 144 |
+
340
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "Main Results. To the best of our knowledge, none of the previous literature has obtained sample complexity guarantees or studied regret bounds in the LMDP setting. This paper addresses precisely this problem. We ask the following: ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
174,
|
| 153 |
+
345,
|
| 154 |
+
825,
|
| 155 |
+
388
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 1
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "Is there a sample efficient RL algorithm for LMDPs, with sublinear regret? ",
|
| 162 |
+
"bbox": [
|
| 163 |
+
253,
|
| 164 |
+
400,
|
| 165 |
+
743,
|
| 166 |
+
415
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 1
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "text",
|
| 172 |
+
"text": "The answer turns out to be not so simple. Our results comprise a first impossibility result, followed by positive algorithmic results under additional assumptions. Specifically: ",
|
| 173 |
+
"bbox": [
|
| 174 |
+
173,
|
| 175 |
+
428,
|
| 176 |
+
823,
|
| 177 |
+
455
|
| 178 |
+
],
|
| 179 |
+
"page_idx": 1
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "text",
|
| 183 |
+
"text": "• First, we find that for a general LMDP, polynomial sample complexity cannot be attained without further assumptions. That is, to find an approximately optimal policy we need at least $\\Omega \\left( ( S A ) ^ { M } \\right)$ samples, i.e., at least exponential in the number of contexts $M$ (Section 3.1). This lower bound even applies to instances with deterministic MDPs. \n• We find that there are several natural assumptions under which optimal policies can be learned with polynomial sample complexity. Similarly to mixture problems without dynamics, the key link is a notion of separation between the MDPs. With sufficient separation, we show that there is a planning-oracle efficient RL algorithm with polynomial sample complexity. A critical development is adapting the principle of optimism as in UCB, but to the partially observed setting where value-iteration cannot be directly applied, and thus neither can the UCRL algorithm for MDPs. \n• Finally, under additional statistical sufficiency assumptions that are common in the Predictive State Representation (PSR) literature (e.g., [6]) and a reachability assumption, we show that the need for initialization can be entirely removed. \n• Finally, we perform an empirical evaluation of the suggested algorithms on toy problems (Section 4), while focusing on the importance of the made assumptions. ",
|
| 184 |
+
"bbox": [
|
| 185 |
+
173,
|
| 186 |
+
468,
|
| 187 |
+
826,
|
| 188 |
+
699
|
| 189 |
+
],
|
| 190 |
+
"page_idx": 1
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "text",
|
| 194 |
+
"text": "2 Preliminaries ",
|
| 195 |
+
"text_level": 1,
|
| 196 |
+
"bbox": [
|
| 197 |
+
174,
|
| 198 |
+
719,
|
| 199 |
+
318,
|
| 200 |
+
737
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 1
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "2.1 Problem Setup: Latent MDPs ",
|
| 207 |
+
"text_level": 1,
|
| 208 |
+
"bbox": [
|
| 209 |
+
176,
|
| 210 |
+
752,
|
| 211 |
+
419,
|
| 212 |
+
767
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 1
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "text",
|
| 218 |
+
"text": "We start with the definition of episodic reinforcement learning in latent Markov decision process: ",
|
| 219 |
+
"bbox": [
|
| 220 |
+
171,
|
| 221 |
+
779,
|
| 222 |
+
808,
|
| 223 |
+
794
|
| 224 |
+
],
|
| 225 |
+
"page_idx": 1
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"type": "text",
|
| 229 |
+
"text": "Definition 1 (Latent Markov Decision Process (LMDP)) Consider a set of MDPs $\\mathcal { M }$ with joint state space $s$ and joint action space $\\mathcal { A }$ in a finite time horizon $H$ . Let $M = | { \\mathcal { M } } |$ , $S = | S |$ and $A = | { \\mathcal { A } } |$ . Each MDP $\\mathcal { M } _ { m } \\in \\mathcal { M }$ is a tuple $( \\mathcal { S } , \\mathcal { A } , T _ { m } , R _ { m } , \\nu _ { m } )$ where $T _ { m } : S \\times A \\times S [ 0 , 1 ]$ a transition probability maps a state-action pair and a next state to a probability, ${ R _ { m } } : S \\times A \\times \\{ 0 , 1 \\} \\to [ 0 , 1 ]$ a probability measure for rewards that maps a state-action pair and a binary reward to a probability, and $\\nu _ { m }$ is an initial state distribution. Let $w _ { 1 } , . . . , w _ { M }$ be the mixing weights of LMDPs such that at the start of every episode, one MDP $\\mathcal { M } _ { m } \\in \\mathcal { M }$ is randomly chosen with probability $w _ { m }$ . ",
|
| 230 |
+
"bbox": [
|
| 231 |
+
174,
|
| 232 |
+
814,
|
| 233 |
+
825,
|
| 234 |
+
911
|
| 235 |
+
],
|
| 236 |
+
"page_idx": 1
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"type": "text",
|
| 240 |
+
"text": "We assume the mixing weights are uniform and known a priori, i.e., $w _ { 1 } = . . . = w _ { M } = 1 / M$ . This is only for the ease of presentation, and does not affect any algorithmic idea or main results in this paper. The goal of the problem is to Π that maximizes the expected return: $\\pi$ n a pol ,where ssis $\\begin{array} { r } { V _ { { \\mathcal { M } } } ^ { * } : = \\operatorname* { m a x } _ { \\pi \\in \\Pi } \\sum _ { m = 1 } ^ { M } w _ { m } \\mathbb { E } _ { m } ^ { \\pi } \\left[ \\sum _ { t = 1 } ^ { H } r _ { t } \\right] } \\end{array}$ $\\mathbb { E } _ { m } ^ { \\pi } [ \\cdot ]$ expectation taken over the $m ^ { t h }$ MDP with a policy $\\pi$ . If not specified otherwise, we find the best policy in a set of history-dependent policies $\\bar { \\pi } : ( \\bar { S } , \\mathcal { A } , \\{ 0 , 1 \\} ) ^ { * } \\times \\mathcal { S } \\Delta ( A )$ that map an entire history to a probability distribution over actions. ",
|
| 241 |
+
"bbox": [
|
| 242 |
+
173,
|
| 243 |
+
90,
|
| 244 |
+
825,
|
| 245 |
+
200
|
| 246 |
+
],
|
| 247 |
+
"page_idx": 2
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"type": "text",
|
| 251 |
+
"text": "We define the notion of regret relative to a (possibly approximate) planning oracle. Thus, suppose we have a planning-oracle with the following approximation guarantee: $V _ { \\mathcal { M } } ^ { \\pi } \\geq \\rho _ { 1 } V _ { \\mathcal { M } } ^ { * } - \\rho _ { 2 }$ , where $\\pi$ is a returned policy when $\\mathcal { M }$ is given to the planning-oracle, and $\\rho _ { 1 } , \\rho _ { 2 }$ are multiplicative and additive approximation constants respectively. We then define the regret as the comparison to the best approximation guarantee that the planning-oracle can achieve: ",
|
| 252 |
+
"bbox": [
|
| 253 |
+
173,
|
| 254 |
+
205,
|
| 255 |
+
825,
|
| 256 |
+
275
|
| 257 |
+
],
|
| 258 |
+
"page_idx": 2
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"type": "equation",
|
| 262 |
+
"img_path": "images/4da694c98ebef641d667d5c01a0b95289e5b54075c880f76fcc456c47b78a668.jpg",
|
| 263 |
+
"text": "$$\nR e g r e t ( K ) = \\sum _ { k = 1 } ^ { K } ( \\rho _ { 1 } V _ { \\mathcal { M } } ^ { * } - \\rho _ { 2 } ) - V _ { \\mathcal { M } } ^ { \\pi _ { k } } ,\n$$",
|
| 264 |
+
"text_format": "latex",
|
| 265 |
+
"bbox": [
|
| 266 |
+
364,
|
| 267 |
+
281,
|
| 268 |
+
633,
|
| 269 |
+
325
|
| 270 |
+
],
|
| 271 |
+
"page_idx": 2
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"type": "text",
|
| 275 |
+
"text": "where $\\pi _ { k }$ is a policy executed in the $k ^ { t h }$ episode. For example, we can use point-based value-iteration (PBVI) [39] as a planning-oracle: ",
|
| 276 |
+
"bbox": [
|
| 277 |
+
173,
|
| 278 |
+
332,
|
| 279 |
+
820,
|
| 280 |
+
362
|
| 281 |
+
],
|
| 282 |
+
"page_idx": 2
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"type": "text",
|
| 286 |
+
"text": "Example 1 PBVI [39] with discretization level $\\epsilon _ { d } > 0$ in the belief space (over $\\mathbb { R } ^ { M }$ ) returns an $\\epsilon _ { d } H ^ { 2 }$ additive approximate policy. That is, equation (1) holds with $\\rho _ { 1 } = 1$ and $\\rho _ { 2 } = \\epsilon _ { d } H ^ { 2 }$ . ",
|
| 287 |
+
"bbox": [
|
| 288 |
+
171,
|
| 289 |
+
375,
|
| 290 |
+
823,
|
| 291 |
+
405
|
| 292 |
+
],
|
| 293 |
+
"page_idx": 2
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"type": "text",
|
| 297 |
+
"text": "2.2 Predictive State Representation (PSR) ",
|
| 298 |
+
"text_level": 1,
|
| 299 |
+
"bbox": [
|
| 300 |
+
174,
|
| 301 |
+
419,
|
| 302 |
+
478,
|
| 303 |
+
435
|
| 304 |
+
],
|
| 305 |
+
"page_idx": 2
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"type": "text",
|
| 309 |
+
"text": "A partially observable dynamical system can be viewed as a model that generates a sequence of observations from observation space $\\mathcal { O }$ with (controlled) actions from action space $\\mathcal { A }$ . A predictive state representation (PSR) is a compact description of a dynamical system with a set of observable experiments, or tests [41]. Specifically, a test of length $t$ is a sequence of action-observation pairs given as $\\tau = { a _ { 1 } ^ { \\tau } o _ { 1 } ^ { \\tau } o _ { 2 } ^ { \\tau } . . . a _ { t } ^ { \\tau } o _ { t } ^ { \\tau } }$ . A history $h = a _ { 1 } ^ { h } o _ { 1 } ^ { h } a _ { 2 } ^ { \\tilde { h _ { } } } o _ { 2 } ^ { h } . . . a _ { t } ^ { h } o _ { t } ^ { h }$ is a sequence of action-observation pairs that has been generated prior to a given time. A prediction $\\mathbb { P } ( \\tau | h ) { \\overset { - } { = } } \\mathbb { P } ( o _ { 1 : t } ^ { \\tau } | h | | d o a _ { 1 : t } ^ { \\tau } )$ denotes the probability of seeing the test sequence from a given history, given that we intervene to take actions $a _ { 1 } ^ { \\tau } a _ { 2 } ^ { \\tau } . . . a _ { t } ^ { \\tau }$ . In latent MDPs, the observation space can be considered as a pair of next-states and rewards, i.e., ${ \\mathcal { O } } = { \\mathcal { S } } \\times \\{ 0 , 1 \\}$ and $o _ { t } = \\left( s _ { t + 1 } , r _ { t } \\right)$ . ",
|
| 310 |
+
"bbox": [
|
| 311 |
+
173,
|
| 312 |
+
444,
|
| 313 |
+
825,
|
| 314 |
+
571
|
| 315 |
+
],
|
| 316 |
+
"page_idx": 2
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"type": "text",
|
| 320 |
+
"text": "As we work with a special class of POMDPs, we customize the formulation for LMDPs. The set of histories consists of a subset of histories that end with different states, i.e., $\\textstyle { \\mathcal { H } } = \\bigcup _ { s } { \\mathcal { H } } _ { s }$ , where each element $h \\in \\mathcal { H } _ { s }$ is a short sequence of state-action-rewards of length $l$ ending with state $s$ : ",
|
| 321 |
+
"bbox": [
|
| 322 |
+
173,
|
| 323 |
+
575,
|
| 324 |
+
826,
|
| 325 |
+
618
|
| 326 |
+
],
|
| 327 |
+
"page_idx": 2
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"type": "equation",
|
| 331 |
+
"img_path": "images/845fc4ea85af94a9a6b508613844cbd5c0a370f7c07098883301c5c7f5f3c33e.jpg",
|
| 332 |
+
"text": "$$\nh = s _ { 1 } ^ { h } a _ { 1 } ^ { h } r _ { 1 } ^ { h } s _ { 2 } ^ { h } . . . s _ { l - 1 } ^ { h } a _ { l - 1 } ^ { h } r _ { l - 1 } ^ { h } s = ( s , a , r ) _ { 1 : l - 1 } ^ { h } s .\n$$",
|
| 333 |
+
"text_format": "latex",
|
| 334 |
+
"bbox": [
|
| 335 |
+
334,
|
| 336 |
+
625,
|
| 337 |
+
661,
|
| 338 |
+
645
|
| 339 |
+
],
|
| 340 |
+
"page_idx": 2
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"type": "text",
|
| 344 |
+
"text": "We define $\\mathbb { P } _ { m } ^ { \\pi } ( \\mathcal { H } _ { s } )$ a vector of probabilities where each coordinate is a probability of sampling each history in $\\mathcal { H } _ { s }$ in the $m ^ { t h }$ MDP with a policy $\\pi$ . Likewise, each element in tests $\\tau \\in \\mathcal { T }$ is a short sequence of action-reward-next states of length at most $l$ : ",
|
| 345 |
+
"bbox": [
|
| 346 |
+
173,
|
| 347 |
+
650,
|
| 348 |
+
826,
|
| 349 |
+
693
|
| 350 |
+
],
|
| 351 |
+
"page_idx": 2
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"type": "equation",
|
| 355 |
+
"img_path": "images/704815527f3474922414bebdfab055a972890ed660c777cd54d3efc2ef4a1525.jpg",
|
| 356 |
+
"text": "$$\n\\tau = a _ { 1 } ^ { \\tau } r _ { 1 } ^ { \\tau } s _ { 2 } ^ { \\tau } . . . a _ { l } ^ { \\tau } r _ { l } ^ { \\tau } s _ { l + 1 } ^ { \\tau } = ( a , r , s ^ { \\prime } ) _ { 1 : l } ^ { \\tau } .\n$$",
|
| 357 |
+
"text_format": "latex",
|
| 358 |
+
"bbox": [
|
| 359 |
+
370,
|
| 360 |
+
699,
|
| 361 |
+
625,
|
| 362 |
+
718
|
| 363 |
+
],
|
| 364 |
+
"page_idx": 2
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"type": "text",
|
| 368 |
+
"text": "We denote $\\mathbb { P } _ { m } ( \\mathcal { T } | s )$ as a vector of probability where each coordinate is a success probability of each test in the $m ^ { t h }$ MDP starting from a state $s$ . That is, ",
|
| 369 |
+
"bbox": [
|
| 370 |
+
173,
|
| 371 |
+
723,
|
| 372 |
+
825,
|
| 373 |
+
753
|
| 374 |
+
],
|
| 375 |
+
"page_idx": 2
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"type": "equation",
|
| 379 |
+
"img_path": "images/21ab72441a416a75175efa966ffc494d79f8427e23c12d57fa91cce3560c9161.jpg",
|
| 380 |
+
"text": "$$\n\\mathbb { P } _ { m } ( \\mathcal { T } | s ) _ { i } = \\mathbb { P } _ { m } \\big ( r _ { 1 } ^ { \\tau _ { i } } s _ { 2 } ^ { \\tau _ { i } } . . . r _ { l } ^ { \\tau _ { i } } s _ { l + 1 } ^ { \\tau _ { i } } | s | \\big | d o a _ { 1 } ^ { \\tau _ { i } } . . . a _ { l } ^ { \\tau _ { i } } \\big ) .\n$$",
|
| 381 |
+
"text_format": "latex",
|
| 382 |
+
"bbox": [
|
| 383 |
+
330,
|
| 384 |
+
758,
|
| 385 |
+
666,
|
| 386 |
+
777
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 2
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "text",
|
| 392 |
+
"text": "2.2.1 Spectral Learning of PSRs in LMDPs ",
|
| 393 |
+
"text_level": 1,
|
| 394 |
+
"bbox": [
|
| 395 |
+
176,
|
| 396 |
+
789,
|
| 397 |
+
486,
|
| 398 |
+
804
|
| 399 |
+
],
|
| 400 |
+
"page_idx": 2
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"type": "text",
|
| 404 |
+
"text": "In spectral learning, we build a set of observable matrices that contains the (joint) probabilities of histories and tests, and then we can extract parameters from these matrices by performing singular value decomposition (SVD) and regressions [7]. In order to apply spectral learning techniques, we require the following technical conditions on statistical sufficiency of tests: ",
|
| 405 |
+
"bbox": [
|
| 406 |
+
174,
|
| 407 |
+
813,
|
| 408 |
+
826,
|
| 409 |
+
869
|
| 410 |
+
],
|
| 411 |
+
"page_idx": 2
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"type": "text",
|
| 415 |
+
"text": "Condition 1 (Sufficient Tests) For all $ { \\mathcal { S } } _ { s } \\in { \\mathcal { S } } _ { }$ , for the test set $\\tau$ , let $\\begin{array} { r l } { L _ { s } } & { { } = } \\end{array}$ $[ \\mathbb { P } _ { 1 } ( \\pmb { \\mathscr { T } } | s ) | \\mathbb { P } _ { 2 } ( \\pmb { \\mathscr { T } } | s ) | . . . | \\mathbb { P } _ { M } ( \\pmb { \\mathscr { T } } | s ) ]$ . Then $\\sigma _ { M } ( L _ { s } ) \\geq \\sigma _ { \\tau }$ for all $s \\in S$ with some $\\sigma _ { \\tau } > 0$ . ",
|
| 416 |
+
"bbox": [
|
| 417 |
+
173,
|
| 418 |
+
882,
|
| 419 |
+
825,
|
| 420 |
+
912
|
| 421 |
+
],
|
| 422 |
+
"page_idx": 2
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"type": "text",
|
| 426 |
+
"text": "Here, $\\sigma _ { M } ( \\cdot )$ is the minimum $( M ^ { t h } )$ singular value of a matrix. Another technical condition for spectral learning method is a rank non-degeneracy condition for sufficient histories: ",
|
| 427 |
+
"bbox": [
|
| 428 |
+
173,
|
| 429 |
+
90,
|
| 430 |
+
823,
|
| 431 |
+
119
|
| 432 |
+
],
|
| 433 |
+
"page_idx": 3
|
| 434 |
+
},
|
| 435 |
+
{
|
| 436 |
+
"type": "text",
|
| 437 |
+
"text": "Condition 2 (Sufficient Histories) For all $s \\in \\mathcal { S }$ , for the history set $\\mathcal { H } _ { s }$ ending with a state $s$ , let $H _ { s } \\ = \\ [ \\mathbb { P } _ { 1 } ^ { \\pi } ( \\mathcal { H } _ { s } ) | \\mathbb { P } _ { 2 } ^ { \\pi } ( \\mathcal { H } _ { s } ) | . . . | \\mathbb { P } _ { M } ^ { \\pi } ( \\mathcal { H } _ { s } ) ] ^ { \\intercal }$ with a sampling policy $\\pi$ . Then $\\sigma _ { M } ( L _ { s } H _ { s } ) \\geq $ $\\mathbb { P } ^ { \\pi } ( e n d s t a t e = s ) \\cdot \\sigma _ { h }$ with some $\\sigma _ { h } > 0$ . ",
|
| 438 |
+
"bbox": [
|
| 439 |
+
174,
|
| 440 |
+
132,
|
| 441 |
+
825,
|
| 442 |
+
175
|
| 443 |
+
],
|
| 444 |
+
"page_idx": 3
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"type": "text",
|
| 448 |
+
"text": "Here $\\mathbb { P } ^ { \\pi }$ (end state $= s$ ) is a probability of sampling a history ending with $s$ . Along with the rank condition for tests, pairs of histories and tests can be thought as many short snap-shots of long trajectories obtained by external experts or some exploration policy (e.g., random policy in uniformly ergodic MDPs). Following the notations in [7], let $P _ { \\tau , \\mathcal { H } _ { s } } = L _ { s } H _ { s }$ . Conditions 1 and 2 ensure $\\bar { \\sigma _ { M } } ( P _ { T , \\mathcal { H } _ { s } } ) > 0$ . Under these conditions, the goal of spectral learning algorithm is to output PSR parameters which are used to compute ${ \\hat { \\mathbb { P } } } ( \\tau | h )$ , the estimated probability of any future observations (or tests $\\tau$ ) given any sampled histories $h$ . We refer to Appendix E.1 for a detailed procedure. ",
|
| 449 |
+
"bbox": [
|
| 450 |
+
174,
|
| 451 |
+
190,
|
| 452 |
+
825,
|
| 453 |
+
291
|
| 454 |
+
],
|
| 455 |
+
"page_idx": 3
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"type": "text",
|
| 459 |
+
"text": "2.3 Notations ",
|
| 460 |
+
"text_level": 1,
|
| 461 |
+
"bbox": [
|
| 462 |
+
174,
|
| 463 |
+
308,
|
| 464 |
+
281,
|
| 465 |
+
321
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 3
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "text",
|
| 471 |
+
"text": "We denote the underlying LMDP with true parameters as $\\mathcal { M } ^ { * }$ . With slight abuse of notation, we denote the $l _ { 1 }$ distance between two probability distributions $\\mathcal { D } _ { 1 }$ and $\\mathcal { D } _ { 2 }$ on a random variable $X$ conditioned on event $E$ as $\\begin{array} { r } { \\| ( \\mathbb { P } _ { X \\sim \\mathcal { D } _ { 1 } } - \\mathbb { P } _ { X \\sim \\mathcal { D } _ { 2 } } ) ( X | E ) \\| _ { 1 } = \\sum _ { X \\in \\mathcal { X } } | \\mathbb { P } _ { X \\sim \\mathcal { D } _ { 1 } } ( X | E ) - \\mathbb { P } _ { X \\sim \\mathcal { D } _ { 2 } } ( X | E ) | } \\end{array}$ , where $\\mathcal { X }$ is a support of $X$ . When we do not condition on any event, we omit the conditioning on $E$ . When we measure a transition or reward probability at a state-action pair $( s , a )$ , we use $T$ or $R$ instead of $\\mathbb { P }$ . We use $\\mathbb { P } _ { m }$ to refer to the probability of any event measured in the $m ^ { t h }$ context (or in $m ^ { t h }$ MDP). In particular, $\\mathbb { P } _ { m } ( s ^ { \\prime } , r | s , \\bar { a } ) = T _ { m } \\bar { ( } s ^ { \\prime } | s , a ) R _ { m } ( r | s , a )$ . If we use $\\mathbb { P }$ without any subscript, it is a probability of an event measured outsidethe probability of an event depends on a policy f the context, i.e., , we add superscri $\\begin{array} { r } { \\mathbb { P } ( \\cdot ) = \\sum _ { m = 1 } ^ { M } w _ { m } \\mathbb { P } _ { m } ( \\cdot ) } \\end{array}$ Ifis $\\pi$ $\\pi$ $\\mathbb { P }$ $\\mathbb { E } _ { m } [ \\cdot ]$ expectation taken over the $m ^ { t h }$ context and $\\pi$ is added as superscript if the expectation depends on $\\pi$ . We use ˆ· to denote any estimated quantities. $a \\lesssim b$ implies $a$ is less than $b$ up to some constant and logarithmic factors. $p o l y ( \\cdot )$ means the order of polynomial complexity (up to logarithmic factors) in referenced parameters. We interchangeably use $o$ , an observation, to replace a pair of next-state and immediate reward $( s ^ { \\prime } , r )$ to simplify the notation. We occasionally express a length $t > 0$ history $( s _ { 1 } , a _ { 1 } , r _ { 1 } , . . . , s _ { t } , a _ { t } , r _ { t } )$ compactly as $( s , a , r ) _ { 1 : t }$ . ",
|
| 472 |
+
"bbox": [
|
| 473 |
+
173,
|
| 474 |
+
333,
|
| 475 |
+
826,
|
| 476 |
+
546
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 3
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "3 Main Results ",
|
| 483 |
+
"text_level": 1,
|
| 484 |
+
"bbox": [
|
| 485 |
+
174,
|
| 486 |
+
564,
|
| 487 |
+
315,
|
| 488 |
+
582
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 3
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "In this section, we first obtain a hardness result for the general case. We then consider sample- and computationally efficient algorithms under additional assumptions. ",
|
| 495 |
+
"bbox": [
|
| 496 |
+
174,
|
| 497 |
+
595,
|
| 498 |
+
823,
|
| 499 |
+
625
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 3
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "text",
|
| 505 |
+
"text": "3.1 Fundamental Limits of Learning General LMDPs ",
|
| 506 |
+
"text_level": 1,
|
| 507 |
+
"bbox": [
|
| 508 |
+
173,
|
| 509 |
+
640,
|
| 510 |
+
560,
|
| 511 |
+
655
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 3
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "text",
|
| 517 |
+
"text": "We first study the fundamental limits of the problem. In particular, we are interested in whether we can learn the optimal policy after interacting with the LMDP for a number of episodes polynomial in the problem parameters. We prove a worst-case lower bound, exhibiting an instance of LMDP that requires at least $\\Omega \\left( ( S A ) ^ { M } \\right)$ episodes: ",
|
| 518 |
+
"bbox": [
|
| 519 |
+
174,
|
| 520 |
+
665,
|
| 521 |
+
825,
|
| 522 |
+
722
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 3
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "text",
|
| 528 |
+
"text": "Theorem 3.1 (Lower Bound) There exists an LMDP such that for finding an \u000f-optimal policy $\\pi _ { \\epsilon }$ for which $V _ { \\mathcal { M } } ^ { \\pi _ { \\epsilon } } \\geq V _ { \\mathcal { M } } ^ { * } - \\epsilon$ , we need at least $\\Omega \\left( ( S A / M ) ^ { M } / \\epsilon ^ { 2 } \\right)$ episodes. ",
|
| 529 |
+
"bbox": [
|
| 530 |
+
174,
|
| 531 |
+
734,
|
| 532 |
+
821,
|
| 533 |
+
765
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 3
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"text": "The hard instance consists of fully deterministic MDPs with possibly stochastic rewards, indicating an exponential lower bound in the number of contexts even for the easiest types of LMDPs. The example is constructed such that, in the absence of knowing true contexts, all wrong action sequences of length $M$ cannot provide any information with zero reward, whereas the only correct action sequence gets a total reward of 1 under one specific context. The construction is given in Appendix B. ",
|
| 540 |
+
"bbox": [
|
| 541 |
+
174,
|
| 542 |
+
779,
|
| 543 |
+
825,
|
| 544 |
+
849
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 3
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "Theorem 3.1 prevents a design of efficient algorithms with growing number of contexts. We note here that Theorem 3.1 holds even for restricted classes of policies, e.g., memoryless policies. Furthermore, our construction of hard instances does not allow to find any approximate policy with $\\rho _ { 1 } = \\omega ( ( S A ) ^ { - M } )$ within a polynomial number of episodes either. To the best of our knowledge, this ",
|
| 551 |
+
"bbox": [
|
| 552 |
+
174,
|
| 553 |
+
856,
|
| 554 |
+
825,
|
| 555 |
+
911
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 3
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"text": "Initialize visit counts $N _ { m } ( s , a ) , N ( m )$ and parameters $( \\hat { T } _ { m } , \\hat { R } _ { m } , \\hat { \\nu } _ { m } )$ properly ",
|
| 562 |
+
"bbox": [
|
| 563 |
+
174,
|
| 564 |
+
109,
|
| 565 |
+
671,
|
| 566 |
+
126
|
| 567 |
+
],
|
| 568 |
+
"page_idx": 4
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "text",
|
| 572 |
+
"text": "1: for each $k ^ { t h }$ episode do \n2: Get a policy $\\pi _ { k }$ for $\\widetilde { \\mathcal { M } } _ { k }$ in Lemma 3.2 \n3: Play policy $\\pi _ { k }$ and get the trajectory $\\tau = ( s , a , r ) _ { 1 : H }$ \n4: Get an estimated belief over contexts $\\hat { b }$ with either Algorithm 2 (when contexts are given), or \nAlgorithm 3 (when we infer contexts) \n5: for $m = 1 , . . . , M$ and $t = 1 , . . . , H$ do \n6: $N _ { m } ( s _ { t + 1 } | a _ { t } , s _ { t } ) \\gets N _ { m } ( s _ { t + 1 } | a _ { t } , s _ { t } ) + \\hat { b } ( m )$ \n7: $N _ { m } ( r _ { t } | s _ { t } , a _ { t } ) \\gets N _ { m } ( r _ { t } | s _ { t } , a _ { t } ) + \\hat { b } ( m )$ \n8: $N _ { m } ( s _ { 1 } ) \\gets N _ { m } ( s _ { 1 } ) + \\hat { b } ( m )$ \n9: Update empirical parameters $\\hat { T } _ { m } , \\hat { R } _ { m } , \\hat { \\nu } _ { m }$ \n10: end for \n11: end for ",
|
| 573 |
+
"bbox": [
|
| 574 |
+
178,
|
| 575 |
+
128,
|
| 576 |
+
826,
|
| 577 |
+
311
|
| 578 |
+
],
|
| 579 |
+
"page_idx": 4
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"type": "text",
|
| 583 |
+
"text": "is the first lower bound of its kind for LMDPs. Next, we investigate natural assumptions which help us to develop an efficient algorithm when only polynomial number of episodes are available. ",
|
| 584 |
+
"bbox": [
|
| 585 |
+
174,
|
| 586 |
+
337,
|
| 587 |
+
825,
|
| 588 |
+
366
|
| 589 |
+
],
|
| 590 |
+
"page_idx": 4
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "text",
|
| 594 |
+
"text": "3.2 The Critical First Step: Contexts in Hindsight ",
|
| 595 |
+
"text_level": 1,
|
| 596 |
+
"bbox": [
|
| 597 |
+
173,
|
| 598 |
+
381,
|
| 599 |
+
532,
|
| 600 |
+
397
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 4
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "text",
|
| 606 |
+
"text": "Suppose the true context of the underlying MDP is revealed to the agent at the end of each episode. We do not require any assumptions on the environments in this scenario. Note that this scenario is different from fully observable settings (i.e., knowing the true context at the beginning of an episode). In the latter scenario, we would simply have $M$ -decoupled RL problems in standard MDPs. While this can be considered as a “warm-up” for the sequel, it is motivated by real-world examples. Moreover, the key technical insight here will prove important for the sequel as well. ",
|
| 607 |
+
"bbox": [
|
| 608 |
+
173,
|
| 609 |
+
406,
|
| 610 |
+
826,
|
| 611 |
+
491
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 4
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "text",
|
| 617 |
+
"text": "Knowing contexts in hindsight allows us to construct a confidence set for parameters: ",
|
| 618 |
+
"bbox": [
|
| 619 |
+
174,
|
| 620 |
+
497,
|
| 621 |
+
730,
|
| 622 |
+
512
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 4
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "equation",
|
| 628 |
+
"img_path": "images/da90c1066e39b72216ba1faada7344f3fa1fcb2a270feccf8b29472fbee00fbd.jpg",
|
| 629 |
+
"text": "$$\n\\begin{array} { r } { \\mathcal { C } = \\{ \\mathcal { M } \\ | \\| ( \\nu _ { m } - \\hat { \\nu } _ { m } ) ( s ) \\| _ { 1 } \\leq \\sqrt { c _ { \\nu } / N ( m ) } , \\ \\| ( T _ { m } - \\hat { T } _ { m } ) ( s ^ { \\prime } | s , a ) \\| _ { 1 } \\leq \\sqrt { c _ { T } / N _ { m } ( s , a ) } , } \\\\ { \\| ( R _ { m } - \\hat { R } _ { m } ) ( r | s , a ) \\| _ { 1 } \\leq \\sqrt { c _ { R } / N _ { m } ( s , a ) } , \\quad \\forall m , s , a \\} , } \\end{array}\n$$",
|
| 630 |
+
"text_format": "latex",
|
| 631 |
+
"bbox": [
|
| 632 |
+
205,
|
| 633 |
+
515,
|
| 634 |
+
789,
|
| 635 |
+
560
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 4
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "text",
|
| 641 |
+
"text": "where $N _ { m } ( s , a )$ is the number of times each state-action pair $( s , a )$ in $m ^ { t h } ~ \\mathrm { { M D P } }$ is visited, and $N ( m )$ is the number of episodes we interact with the $m ^ { t h }$ MDP. With properly set parameters $\\dot { c _ { T } } = { \\cal O } ( S \\log ( K / \\eta ) ) , c _ { R } \\dot { = } { \\cal O } ( \\log ( K / \\eta ) )$ and $c _ { \\nu } = O ( S \\log ( K / \\eta ) )$ for the confidence intervals, $\\mathcal { M } ^ { \\ast } \\in \\mathcal { C }$ with high probability for all $K$ episodes. ",
|
| 642 |
+
"bbox": [
|
| 643 |
+
173,
|
| 644 |
+
565,
|
| 645 |
+
826,
|
| 646 |
+
622
|
| 647 |
+
],
|
| 648 |
+
"page_idx": 4
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"type": "text",
|
| 652 |
+
"text": "With the construction of confidence sets, it is then natural to try to design an optimistic RL algorithm, as in UCRL [22]. An obvious optimistic value in light of (2) is $\\operatorname* { m a x } _ { \\pi } { } , \\mathcal { M } \\in \\mathcal { C } \\ : V _ { \\mathcal { M } } ^ { \\pi }$ . However, solving this optimization problem is more general than solving an LMDP. In fully observable settings, we could replace the complex optimization problem by adding a proper exploration bonus to obtain an optimistic value function [4]. ",
|
| 653 |
+
"bbox": [
|
| 654 |
+
173,
|
| 655 |
+
628,
|
| 656 |
+
825,
|
| 657 |
+
699
|
| 658 |
+
],
|
| 659 |
+
"page_idx": 4
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"type": "text",
|
| 663 |
+
"text": "In partially observable environments, value iteration is only defined in terms of belief-states and not the observed states. For this reason, existing techniques solely based on the value-iteration cannot be directly applied for LMDPs. Yet, we find that proper analysis of the Bellman update rule over the belief state reveals that an empirical LMDP with properly adjusted hidden rewards is optimistic: ",
|
| 664 |
+
"bbox": [
|
| 665 |
+
173,
|
| 666 |
+
704,
|
| 667 |
+
825,
|
| 668 |
+
761
|
| 669 |
+
],
|
| 670 |
+
"page_idx": 4
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"type": "text",
|
| 674 |
+
"text": "Proposition 3.2 We construct an optimistic LMDP $\\widetilde { \\mathcal { M } }$ whose parameters are given such that: ",
|
| 675 |
+
"bbox": [
|
| 676 |
+
171,
|
| 677 |
+
773,
|
| 678 |
+
787,
|
| 679 |
+
791
|
| 680 |
+
],
|
| 681 |
+
"page_idx": 4
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "equation",
|
| 685 |
+
"img_path": "images/d8d08918b1819731a2431b3b04006c33a3aab83cf74aad4924d0e5d98551dec9.jpg",
|
| 686 |
+
"text": "$$\n\\begin{array} { r l } & { \\widetilde { T } _ { m } ( s ^ { \\prime } | s , a ) = \\hat { T } _ { m } ( s ^ { \\prime } | s , a ) , \\ \\widetilde { R } _ { m } ^ { o b s } ( r | s , a ) = \\hat { R } _ { m } ( r | s , a ) , \\ \\widetilde { \\nu } _ { m } ( s ) = \\hat { \\nu } _ { m } ( s ) , } \\\\ & { \\widetilde { R } _ { i n i t } ^ { h i d } ( m ) = \\operatorname* { m i n } \\left( 1 , \\sqrt { c _ { \\nu } / N ( m ) } \\right) \\ \\widetilde { R } _ { m } ^ { h i d } ( s , a ) = H \\operatorname* { m i n } \\left( 1 , \\sqrt { 5 \\left( c _ { R } + c _ { T } \\right) / N _ { m } ( s , a ) } \\right) , } \\end{array}\n$$",
|
| 687 |
+
"text_format": "latex",
|
| 688 |
+
"bbox": [
|
| 689 |
+
207,
|
| 690 |
+
795,
|
| 691 |
+
787,
|
| 692 |
+
845
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 4
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "text",
|
| 698 |
+
"text": "where $\\widetilde { R } _ { i n i t } ^ { h i d } ( m )$ is an initial hidden reward given when starting an episode with a context $m$ , and $\\widetilde { R } _ { m } ^ { o b s } ( \\cdot | s , a )$ is a probability measure of an observable immediate reward $r$ whereas $\\widetilde { R } _ { m } ^ { h i d } ( s , a )$ is $a$ hidden immediate reward (that is not visible to the agent) for a state-action pair $( s , a )$ in a context $m$ . Then for any policy $\\pi$ , the expected long-term reward is optimistic, i.e., $V _ { \\widehat { \\mathcal { M } } } ^ { \\pi } \\geq V _ { \\mathcal { M } ^ { \\ast } } ^ { \\pi }$ . ",
|
| 699 |
+
"bbox": [
|
| 700 |
+
173,
|
| 701 |
+
851,
|
| 702 |
+
826,
|
| 703 |
+
915
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 4
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "text",
|
| 709 |
+
"text": "Algorithm 2 Access to True Contexts ",
|
| 710 |
+
"bbox": [
|
| 711 |
+
186,
|
| 712 |
+
106,
|
| 713 |
+
434,
|
| 714 |
+
119
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 5
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "text",
|
| 720 |
+
"text": "Input: Receive true context $m ^ { * }$ in hindsight ",
|
| 721 |
+
"bbox": [
|
| 722 |
+
184,
|
| 723 |
+
123,
|
| 724 |
+
459,
|
| 725 |
+
150
|
| 726 |
+
],
|
| 727 |
+
"page_idx": 5
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"type": "text",
|
| 731 |
+
"text": "Output : Belief over hidden contexts: ",
|
| 732 |
+
"bbox": [
|
| 733 |
+
187,
|
| 734 |
+
151,
|
| 735 |
+
436,
|
| 736 |
+
165
|
| 737 |
+
],
|
| 738 |
+
"page_idx": 5
|
| 739 |
+
},
|
| 740 |
+
{
|
| 741 |
+
"type": "equation",
|
| 742 |
+
"img_path": "images/36628d690dd66559f8e7739797f1496cc6a651266169b9a119a9056e8b6d566d.jpg",
|
| 743 |
+
"text": "$$\n\\hat { b } ( m ) = \\left\\{ \\begin{array} { l l } { { 1 , } } & { { \\mathrm { f o r } m = m ^ { * } } } \\\\ { { 0 , } } & { { \\mathrm { f o r } m \\ne m ^ { * } } } \\end{array} \\right.\n$$",
|
| 744 |
+
"text_format": "latex",
|
| 745 |
+
"bbox": [
|
| 746 |
+
222,
|
| 747 |
+
175,
|
| 748 |
+
413,
|
| 749 |
+
205
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 5
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "text",
|
| 755 |
+
"text": "Algorithm 3 Inference of Contexts ",
|
| 756 |
+
"text_level": 1,
|
| 757 |
+
"bbox": [
|
| 758 |
+
470,
|
| 759 |
+
106,
|
| 760 |
+
697,
|
| 761 |
+
119
|
| 762 |
+
],
|
| 763 |
+
"page_idx": 5
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"type": "text",
|
| 767 |
+
"text": "Input: Trajectory $\\tau = ( s _ { 1 } , a _ { 1 } , r _ { 1 } , . . . , s _ { H } , a _ { H } , r _ { H } )$ Output: Return an estimate of belief over contexts $\\hat { b }$ : ",
|
| 768 |
+
"bbox": [
|
| 769 |
+
467,
|
| 770 |
+
123,
|
| 771 |
+
808,
|
| 772 |
+
165
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 5
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "equation",
|
| 778 |
+
"img_path": "images/79d31a64181d8b3e8acafed85dbd163672163aa60a6d51b0d18467c267805aff.jpg",
|
| 779 |
+
"text": "$$\n\\begin{array} { l } { \\hat { p } _ { m } ( \\tau ) = \\Pi _ { t = 1 } ^ { H } ( \\alpha + ( 1 - 2 \\alpha S ) \\hat { \\mathbb { P } } _ { m } ( s _ { t + 1 } , r _ { t } | s _ { t } , a _ { t } ) ) , } \\\\ { \\hat { b } ( m ) = \\frac { \\hat { p } _ { m } ( \\tau ) } { \\sum _ { m = 1 } ^ { M } \\hat { p } _ { m } ( \\tau ) } . } \\end{array}\n$$",
|
| 780 |
+
"text_format": "latex",
|
| 781 |
+
"bbox": [
|
| 782 |
+
467,
|
| 783 |
+
165,
|
| 784 |
+
812,
|
| 785 |
+
226
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 5
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "text",
|
| 791 |
+
"text": "Here, hidden reward is a deterministic reward that happens for every state-action pair, but does not appear in any observation history during the episode. We note that most existing planning algorithms can incorporate the hidden-reward structure without changes to maximize the long-term observed $^ +$ hidden rewards. For instance, the PBVI algorithm [39] can be executed as it is in the planning step. Hence in each episode, we can build one optimistic model from Proposition 3.2, and call the planning-oracle to get a policy to execute for the episode. Then we simply run the policy and update model parameters in a straight-forward manner. The algorithm can be efficiently implemented as long as some efficient (approximate) planning algorithms are available. ",
|
| 792 |
+
"bbox": [
|
| 793 |
+
173,
|
| 794 |
+
243,
|
| 795 |
+
825,
|
| 796 |
+
356
|
| 797 |
+
],
|
| 798 |
+
"page_idx": 5
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"type": "text",
|
| 802 |
+
"text": "To establish Proposition 3.2, we make use of the ‘alpha vector’ representation [42] of the value function of general POMDPs. Detailed analysis is deferred to Appendix C.1. With the optimistic model constructed in Proposition 3.2, planning-oracle efficient implementation is straightforward. The resulting latent upper confidence reinforcement learning (L-UCRL) algorithm is summarized in Algorithm 1. Based on the established optimism in Proposition 3.2 and by carefully bounding the on-policy errors we arrive to the following regret guarantee of L-UCRL. ",
|
| 803 |
+
"bbox": [
|
| 804 |
+
173,
|
| 805 |
+
361,
|
| 806 |
+
825,
|
| 807 |
+
445
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 5
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "Theorem 3.3 Let $N = H K$ . The regret of the Algorithm 1 is bounded by: ",
|
| 814 |
+
"bbox": [
|
| 815 |
+
176,
|
| 816 |
+
457,
|
| 817 |
+
661,
|
| 818 |
+
472
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 5
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "equation",
|
| 824 |
+
"img_path": "images/d489dcadc5b71b5d6c6087f89b31937ac94db417da40257874e95da81c307203.jpg",
|
| 825 |
+
"text": "$$\nR e g r e t ( K ) \\leq \\sum _ { k = 1 } ^ { K } ( V _ { \\widehat { \\mathcal { M } } _ { k } } ^ { \\pi _ { k } } - V _ { \\mathcal { M } ^ { * } } ^ { \\pi _ { k } } ) \\lesssim H S \\sqrt { M A N } .\n$$",
|
| 826 |
+
"text_format": "latex",
|
| 827 |
+
"bbox": [
|
| 828 |
+
331,
|
| 829 |
+
472,
|
| 830 |
+
666,
|
| 831 |
+
515
|
| 832 |
+
],
|
| 833 |
+
"page_idx": 5
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"type": "text",
|
| 837 |
+
"text": "Proof of Theorem 3.3 is given in Appendix C.4. The central result of this section, Theorem 3.3 leads to the following observation: a polynomial sample complexity is possible for the LMDP model assuming the context of the underlying MDP is supplied at the end of each episode. Next, we explore ways to relax this assumption, while keep supplying with a polynomial sample complexity guarantee. ",
|
| 838 |
+
"bbox": [
|
| 839 |
+
174,
|
| 840 |
+
527,
|
| 841 |
+
826,
|
| 842 |
+
584
|
| 843 |
+
],
|
| 844 |
+
"page_idx": 5
|
| 845 |
+
},
|
| 846 |
+
{
|
| 847 |
+
"type": "text",
|
| 848 |
+
"text": "3.3 When we can Infer Contexts? ",
|
| 849 |
+
"text_level": 1,
|
| 850 |
+
"bbox": [
|
| 851 |
+
176,
|
| 852 |
+
599,
|
| 853 |
+
416,
|
| 854 |
+
614
|
| 855 |
+
],
|
| 856 |
+
"page_idx": 5
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"type": "text",
|
| 860 |
+
"text": "Without explicit access to the true context at the end of an episode, it is natural to estimate the context from the sampled trajectory. One sufficient condition to infer the context is the following: ",
|
| 861 |
+
"bbox": [
|
| 862 |
+
174,
|
| 863 |
+
625,
|
| 864 |
+
823,
|
| 865 |
+
654
|
| 866 |
+
],
|
| 867 |
+
"page_idx": 5
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "text",
|
| 871 |
+
"text": "Assumption 1 $\\boldsymbol { \\delta }$ -Strongly Separated MDPs) For all $m$ , $m _ { 1 } , m _ { 2 } \\in [ M ]$ such that $m _ { 1 } \\neq m _ { 2 }$ , for all $( s , a ) \\in \\mathcal { S } \\times \\mathcal { A } , l$ $l _ { 1 }$ distance between probability of observations $o = \\bar { ( \\boldsymbol { s } ^ { \\prime } , \\boldsymbol { r } ) }$ of two different $M D P s$ in $L M D P$ is at least $\\delta > 0$ , i.e., $\\| ( \\mathbb { P } _ { m _ { 1 } } - \\mathbb { P } _ { m _ { 2 } } ) ( o | s , a ) \\| _ { 1 } \\geq \\delta$ for some constant $\\delta > 0$ . ",
|
| 872 |
+
"bbox": [
|
| 873 |
+
174,
|
| 874 |
+
665,
|
| 875 |
+
825,
|
| 876 |
+
709
|
| 877 |
+
],
|
| 878 |
+
"page_idx": 5
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"type": "text",
|
| 882 |
+
"text": "In order to reliably infer the true contexts the seperatedness between MDPs alone is not sufficient, since we need to estimate the contexts from the current empirical estimates of LMDPs. In order to reliably estimate the context from empirical estimate of LMDPs, we need a well-initialized empirical transition model of the LMDP: ",
|
| 883 |
+
"bbox": [
|
| 884 |
+
173,
|
| 885 |
+
723,
|
| 886 |
+
825,
|
| 887 |
+
779
|
| 888 |
+
],
|
| 889 |
+
"page_idx": 5
|
| 890 |
+
},
|
| 891 |
+
{
|
| 892 |
+
"type": "equation",
|
| 893 |
+
"img_path": "images/af360135cc202d03b5d71c50149c3b66d65e1f2d9661a35592630f2b65f64e7b.jpg",
|
| 894 |
+
"text": "$$\n\\| ( \\hat { T } _ { m } - T _ { m } ) ( s ^ { \\prime } | s , a ) \\| _ { 1 } , \\ \\| ( \\hat { \\nu } _ { m } - \\nu _ { m } ) ( s ) \\| _ { 1 } , \\ \\| ( \\hat { R } _ { m } - R _ { m } ) ( r | s , a ) \\| _ { 1 } \\leq \\epsilon _ { i n i t } , \\qquad \\forall ( s , a ) ,\n$$",
|
| 895 |
+
"text_format": "latex",
|
| 896 |
+
"bbox": [
|
| 897 |
+
192,
|
| 898 |
+
781,
|
| 899 |
+
784,
|
| 900 |
+
801
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 5
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"text": "for some initialization error $\\epsilon _ { i n i t } > 0$ . Note that while the initialization error is relatively small, it can be still not good enough to obtain a near-optimal policy (i.e., it will result in a linear regret). We can consider as if the state-action pairs are already visit at least $N _ { 0 } = c _ { T } / \\epsilon _ { i n i t } ^ { 2 }$ times in each context. ",
|
| 907 |
+
"bbox": [
|
| 908 |
+
174,
|
| 909 |
+
805,
|
| 910 |
+
825,
|
| 911 |
+
848
|
| 912 |
+
],
|
| 913 |
+
"page_idx": 5
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"type": "text",
|
| 917 |
+
"text": "Once the initialization is given along with separation between MDPs, we can modify Algorithm 1 to update the empirical estimate of LMDP using the estimated belief over contexts computed in Algorithm 3. Note that when we update the model parameters, we increase the visit count of stateaction pair $( s , a )$ at $m ^ { t h }$ MDP by $\\hat { b } ( m )$ . With Assumption 1, it approximately adds a count for the correctly estimated context, but even without Assumption 1, the update steps can still be applied. In fact, this is equivalent to an implementation of the so-called (online) expectation-maximization (EM) algorithm [10] for latent MDPs. Thus Algorithm 1 with Algorithm 3 essentially results in combining L-UCRL and the EM algorithm. ",
|
| 918 |
+
"bbox": [
|
| 919 |
+
174,
|
| 920 |
+
853,
|
| 921 |
+
825,
|
| 922 |
+
912
|
| 923 |
+
],
|
| 924 |
+
"page_idx": 5
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"type": "table",
|
| 928 |
+
"img_path": "images/061fafc7ea55dfaef0189346a9fd7b5a3ec4e57bde808779d52be306a6f3f98d.jpg",
|
| 929 |
+
"table_caption": [],
|
| 930 |
+
"table_footnote": [],
|
| 931 |
+
"table_body": "<table><tr><td colspan=\"2\">Learn PSR parameters up to precision o(δ)</td></tr><tr><td colspan=\"2\">Get clusters {Tm(*|s,a), Rm(-|s,a)}(s,a)∈S× A,m∈[M] with learned PSR parameters Build each MDP model by correctly assigning contexts to estimated model parameters Return Well-initialized model {Tm, Rm}m∈[M]</td></tr></table>",
|
| 932 |
+
"bbox": [
|
| 933 |
+
184,
|
| 934 |
+
109,
|
| 935 |
+
754,
|
| 936 |
+
176
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 6
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "",
|
| 943 |
+
"bbox": [
|
| 944 |
+
174,
|
| 945 |
+
204,
|
| 946 |
+
825,
|
| 947 |
+
261
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 6
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "text",
|
| 953 |
+
"text": "In terms of performance guarantees, using Algorithm 3 as a sub-routine for L-UCRL gives the same order of regret as in Theorem 3.3 as long as the true context can be almost reliably inferred: ",
|
| 954 |
+
"bbox": [
|
| 955 |
+
173,
|
| 956 |
+
267,
|
| 957 |
+
823,
|
| 958 |
+
296
|
| 959 |
+
],
|
| 960 |
+
"page_idx": 6
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"type": "text",
|
| 964 |
+
"text": "Theorem 3.4 Suppose Assumption 1 holds with $H > C \\cdot \\delta ^ { - 4 } \\log ^ { 2 } ( 1 / \\alpha ) \\log ( N / \\eta ) .$ for some absolute constants $C , \\delta > 0$ , and a parameter $\\alpha > 0$ such that $\\alpha \\ln ( 1 / \\alpha ) \\leq \\delta ^ { 2 } / ( 2 0 0 S )$ . If the initialization parameters satisfy equation (3) with some initialization error $\\epsilon _ { i n i t } \\leq \\delta ^ { 2 } / ( 2 0 0 \\ln ( 1 / \\alpha ) )$ , then with probability at least $1 - \\eta$ , the regret of Algorithm $^ { l }$ is bounded by: ",
|
| 965 |
+
"bbox": [
|
| 966 |
+
173,
|
| 967 |
+
310,
|
| 968 |
+
825,
|
| 969 |
+
368
|
| 970 |
+
],
|
| 971 |
+
"page_idx": 6
|
| 972 |
+
},
|
| 973 |
+
{
|
| 974 |
+
"type": "equation",
|
| 975 |
+
"img_path": "images/e5b2eb130e1aa5d59805805ad7fe08aac45e33a0b1e5c2d333635c72da59e6dc.jpg",
|
| 976 |
+
"text": "$$\nR e g r e t ( K ) \\lesssim H S \\sqrt { M A N } .\n$$",
|
| 977 |
+
"text_format": "latex",
|
| 978 |
+
"bbox": [
|
| 979 |
+
403,
|
| 980 |
+
375,
|
| 981 |
+
594,
|
| 982 |
+
395
|
| 983 |
+
],
|
| 984 |
+
"page_idx": 6
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"type": "text",
|
| 988 |
+
"text": "The proof of Theorem 3.4 is given in Appendix D.3. The provable guarantees are only given for wellseparated LMDPs. Nevertheless, we empirically evaluate Algorithm 1 as a function of separations and initialization (see Figure 1). ",
|
| 989 |
+
"bbox": [
|
| 990 |
+
173,
|
| 991 |
+
410,
|
| 992 |
+
825,
|
| 993 |
+
453
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 6
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "text",
|
| 999 |
+
"text": "An interesting consequence of Assumption 1 is that the length of episode can be logarithmic in the number of state and actions. With much longer time-horizons $H \\overset { \\cdot } { \\geq } \\Omega ( S ^ { 2 } A / \\delta ^ { 2 } )$ , [8, 18] assumed similar $\\delta$ -separation only for some $( s , a )$ pairs. While Assumption 1 requires a stronger assumption of $\\delta$ -separation for all state-actions, the requirement on the time-horizon can be significantly weaker with large state and action spaces. For a more discussion on the separation condition, we refer the readers to Appendix D.1. ",
|
| 1000 |
+
"bbox": [
|
| 1001 |
+
174,
|
| 1002 |
+
458,
|
| 1003 |
+
825,
|
| 1004 |
+
542
|
| 1005 |
+
],
|
| 1006 |
+
"page_idx": 6
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"type": "text",
|
| 1010 |
+
"text": "3.4 Learning LMDPs without Initialization ",
|
| 1011 |
+
"text_level": 1,
|
| 1012 |
+
"bbox": [
|
| 1013 |
+
174,
|
| 1014 |
+
558,
|
| 1015 |
+
486,
|
| 1016 |
+
574
|
| 1017 |
+
],
|
| 1018 |
+
"page_idx": 6
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"type": "text",
|
| 1022 |
+
"text": "Finally, we discuss efficient initialization with some additional assumptions. Clustering trajectories is the cornerstone of all our technical results, as this allows us to estimate the parameters of each hidden MDP and then apply the techniques of Section 3.2. The challenge is how to cluster when we have short trajectories, and no good initialization. ",
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
174,
|
| 1025 |
+
584,
|
| 1026 |
+
825,
|
| 1027 |
+
640
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 6
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "The key is again in Assumption 1. In Section 3.3, we use a good initialization to obtain accurate estimates of the belief states. These can then be clustered, thanks to Assumption 1, allowing us to obtain the true label in hindsight. Without initialization, we cannot accurately compute the belief state, so this avenue is blocked. Instead, our key idea is to leverage a predictive state representation (PSR) of the POMDP dynamics, and then show that Assumption 1 allows us to cluster in this space. ",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
174,
|
| 1036 |
+
646,
|
| 1037 |
+
825,
|
| 1038 |
+
715
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 6
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "text",
|
| 1044 |
+
"text": "Algorithm 4 gives our approach. We first explain the high-level idea, and subsequently detail some of the more subtle points. Suppose we have PSR parameters allowing us to estimate ${ \\dot { \\mathbb { P } } } ( o | h | | \\mathbf { d o } a )$ , (the probabilities of any future observations $o = \\left( s ^ { \\prime } , r \\right)$ given a history $h$ and intervening action $a$ ) to within accuracy $o ( \\delta )$ . We then show that we can again apply Assumption 1, to (almost) perfectly cluster the MDPs by true context at the end of the episode. After we collect transition probabilities at all states near the end of episode, we can construct a full transition model for each MDP. ",
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
174,
|
| 1047 |
+
722,
|
| 1048 |
+
825,
|
| 1049 |
+
805
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 6
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "text",
|
| 1055 |
+
"text": "Learning the PSR to sufficient accuracy requires an additional assumption. We show that the following standard assumption on statistical sufficiency of histories and tests, is sufficient for our purposes (see also Section 2.2.1 and Appendix E.1): ",
|
| 1056 |
+
"bbox": [
|
| 1057 |
+
174,
|
| 1058 |
+
811,
|
| 1059 |
+
825,
|
| 1060 |
+
854
|
| 1061 |
+
],
|
| 1062 |
+
"page_idx": 6
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"type": "text",
|
| 1066 |
+
"text": "Assumption 2 (Sufficient Tests/Histories) Let $\\tau$ and $\\mathcal { H }$ be the set of all possible tests and histories of length $l = O ( 1 )$ respectively, with a given sampling policy $\\boldsymbol { \\mathscr { u } }$ (e.g., uniformly random policy) for histories H. $\\tau$ and $\\mathcal { H }$ satisfy Condition 1 and 2 respectively. ",
|
| 1067 |
+
"bbox": [
|
| 1068 |
+
176,
|
| 1069 |
+
868,
|
| 1070 |
+
825,
|
| 1071 |
+
911
|
| 1072 |
+
],
|
| 1073 |
+
"page_idx": 6
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"type": "image",
|
| 1077 |
+
"img_path": "images/64010834130c9a47e244686a6fd340f184c387d34c86da044654ea3a36f48f2e.jpg",
|
| 1078 |
+
"image_caption": [
|
| 1079 |
+
"Figure 1: (a) L-UCRL when true contexts are revealed in hindsight and when we run with the EM algorithm. (b) $\\mathrm { E M } + \\mathrm { L }$ -UCRL (Algorithm 1) under different levels of separation and horizon length. "
|
| 1080 |
+
],
|
| 1081 |
+
"image_footnote": [],
|
| 1082 |
+
"bbox": [
|
| 1083 |
+
197,
|
| 1084 |
+
88,
|
| 1085 |
+
802,
|
| 1086 |
+
207
|
| 1087 |
+
],
|
| 1088 |
+
"page_idx": 7
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"type": "text",
|
| 1092 |
+
"text": "While the worst-case instance may require $l \\geq M$ to satisfy the full-rank conditions, we assume that the length of sufficient tests/histories is $l = O ( 1 )$ . In fact, $l = 1$ has been (implicitly) the common assumption in the literature on learning POMDPs [20, 5, 17, 25]. Empirically, we observe that the more MDPs differ, the more easily they satisfy Assumption 2. See Figure 2. At this point, we are not aware whether sample-efficient learning is possible with only Assumption 1. ",
|
| 1093 |
+
"bbox": [
|
| 1094 |
+
174,
|
| 1095 |
+
256,
|
| 1096 |
+
825,
|
| 1097 |
+
325
|
| 1098 |
+
],
|
| 1099 |
+
"page_idx": 7
|
| 1100 |
+
},
|
| 1101 |
+
{
|
| 1102 |
+
"type": "text",
|
| 1103 |
+
"text": "Though the main idea and key assumption are above, a few important details and technical assumptions remain to complete this story. The primary guarantee still required is that we have access to an exploration policy with sufficient mixing, to guarantee we can collect all required information to perform the PSR-based clustering. The following assumption ensures that additional ${ \\tilde { O } } ( M / \\alpha _ { 2 } )$ sample trajectories obtained with the exploration policy $\\pi$ can provide $M$ clusters of estimated one-step predictions $\\mathbb { P } _ { m } ( o | s , a )$ for every state $s$ and intervening action $a$ . ",
|
| 1104 |
+
"bbox": [
|
| 1105 |
+
174,
|
| 1106 |
+
330,
|
| 1107 |
+
825,
|
| 1108 |
+
416
|
| 1109 |
+
],
|
| 1110 |
+
"page_idx": 7
|
| 1111 |
+
},
|
| 1112 |
+
{
|
| 1113 |
+
"type": "text",
|
| 1114 |
+
"text": "Assumption 3 (Reachability of States) There exists a priori known exploration policy $\\pi$ such that, for all $m \\in [ M ]$ and $s \\in S$ , we have $\\mathbb { P } _ { m } ^ { \\pi } ( s _ { H - 1 } = s ) \\geq \\alpha _ { 2 }$ for some $\\alpha _ { 2 } > 0$ . ",
|
| 1115 |
+
"bbox": [
|
| 1116 |
+
173,
|
| 1117 |
+
431,
|
| 1118 |
+
823,
|
| 1119 |
+
460
|
| 1120 |
+
],
|
| 1121 |
+
"page_idx": 7
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"type": "text",
|
| 1125 |
+
"text": "A subtle point here is that we still have an ambiguity issue in the ordering of contexts (or labels) assigned in different states, which prevents us from recovering the full model for each context. We resolve this issues ambiguity assuming the MDP is connected, and give the full description of Algorithm 4 in Appendix E.2. We conclude this section with an (informal) end-to-end guarantee: ",
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
173,
|
| 1128 |
+
477,
|
| 1129 |
+
825,
|
| 1130 |
+
532
|
| 1131 |
+
],
|
| 1132 |
+
"page_idx": 7
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"type": "text",
|
| 1136 |
+
"text": "Theorem 3.5 (Informal) Let Assumption 2 hold for an LMDP instance with a sampling policy $\\pi$ . Furthermore, assume the LMDP satisfies Assumptions 1 and 3. Then there exists an algorithm such that with probability at least $2 / 3$ , it returns a good initialization of LMDP parameters that satisfies (3) in time $p o l y ( A ^ { l } , S , H , M , \\sigma _ { h } ^ { - 1 } , \\sigma _ { \\tau } ^ { - 1 } , \\alpha _ { 2 } ^ { - 1 } , \\delta , \\epsilon _ { i n i t } ) .$ . ",
|
| 1137 |
+
"bbox": [
|
| 1138 |
+
173,
|
| 1139 |
+
547,
|
| 1140 |
+
825,
|
| 1141 |
+
608
|
| 1142 |
+
],
|
| 1143 |
+
"page_idx": 7
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"type": "text",
|
| 1147 |
+
"text": "Theorem 3.5 completes the pipeline for learning in latent MDPs: we initialize the parameters by the estimated PSR and clustering (see Appendix E) up to some accuracy, and then we run L-UCRL to refine the model and policy up to arbitrary accuracy (Algorithm 1). Full version of Theorem 3.5 can be found in Theorem E.3. ",
|
| 1148 |
+
"bbox": [
|
| 1149 |
+
173,
|
| 1150 |
+
622,
|
| 1151 |
+
825,
|
| 1152 |
+
679
|
| 1153 |
+
],
|
| 1154 |
+
"page_idx": 7
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"type": "text",
|
| 1158 |
+
"text": "4 Experiments ",
|
| 1159 |
+
"text_level": 1,
|
| 1160 |
+
"bbox": [
|
| 1161 |
+
174,
|
| 1162 |
+
698,
|
| 1163 |
+
312,
|
| 1164 |
+
715
|
| 1165 |
+
],
|
| 1166 |
+
"page_idx": 7
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"type": "text",
|
| 1170 |
+
"text": "In this section, we evaluate the proposed algorithm on synthetic data. Our first two experiments illustrate the performance of L-UCRL (Algorithm 1) for various levels of separation and quality of initialization. Then, we empirically study the performance of the PSR-Clustering algorithm for randomly generated LMDPs for different levels of separation and time-horizon. ",
|
| 1171 |
+
"bbox": [
|
| 1172 |
+
174,
|
| 1173 |
+
729,
|
| 1174 |
+
825,
|
| 1175 |
+
786
|
| 1176 |
+
],
|
| 1177 |
+
"page_idx": 7
|
| 1178 |
+
},
|
| 1179 |
+
{
|
| 1180 |
+
"type": "text",
|
| 1181 |
+
"text": "4.1 The Value of True Contexts in Hindsight ",
|
| 1182 |
+
"text_level": 1,
|
| 1183 |
+
"bbox": [
|
| 1184 |
+
174,
|
| 1185 |
+
801,
|
| 1186 |
+
495,
|
| 1187 |
+
818
|
| 1188 |
+
],
|
| 1189 |
+
"page_idx": 7
|
| 1190 |
+
},
|
| 1191 |
+
{
|
| 1192 |
+
"type": "text",
|
| 1193 |
+
"text": "We first study the importance of receiving the true contexts in hindsight for the approach analyzed in this work, by comparing the performance of Algorithm 1 when instantiating it with Algorithm 2 or 3 as a sub-routine. We generate random instances of LMDPs of size $M = 7 , S = 1 5 , A = 3$ and set the time-horizon $H = 3 0$ . The reward distribution is set to be 0 for most state-action pairs. We compare when we give a true context to the algorithm (Algorithm 2) and when we infer a context with random initialization or good initialization (Algorithm 3). In the latter, it is equivalent to running the EM algorithm for the model estimation. For the planning algorithm, we use Q-MDP heuristic [32] which shows good empirical performance. We measure the model estimation error as $\\begin{array} { r } { \\begin{array} { r } { e r r o r : = \\operatorname* { m i n } _ { \\sigma \\in { \\mathrm { P e r m } } _ { M } } \\sum _ { ( m , s , a ) } \\| \\big ( { \\mathbb { P } } _ { m } - \\hat { { \\mathbb { P } } } _ { \\sigma ( m ) } \\big ) \\big ( s ^ { \\prime } , r | s , a \\big ) \\| _ { 1 } , } \\end{array} } \\end{array}$ where $ { \\mathrm { P e r m } } _ { M }$ denotes all length $M$ permutation sequences. The measured errors are averaged over 10 independent experiments. ",
|
| 1194 |
+
"bbox": [
|
| 1195 |
+
174,
|
| 1196 |
+
827,
|
| 1197 |
+
825,
|
| 1198 |
+
911
|
| 1199 |
+
],
|
| 1200 |
+
"page_idx": 7
|
| 1201 |
+
},
|
| 1202 |
+
{
|
| 1203 |
+
"type": "image",
|
| 1204 |
+
"img_path": "images/cff8930457abbaef9b5c1348ebdc9c59573e1c01c0d83f7a0d7ded9c2228619b.jpg",
|
| 1205 |
+
"image_caption": [
|
| 1206 |
+
"Figure 2: PSR learning and Clustering (Algorithm 4). Left: Convergence of belief state. Middle: $M ^ { t h }$ singular value of sufficient histories/tests matrix $P _ { \\mathcal { T } , \\mathcal { H } }$ . Right: Accuracy of the estimated model. "
|
| 1207 |
+
],
|
| 1208 |
+
"image_footnote": [],
|
| 1209 |
+
"bbox": [
|
| 1210 |
+
207,
|
| 1211 |
+
88,
|
| 1212 |
+
789,
|
| 1213 |
+
217
|
| 1214 |
+
],
|
| 1215 |
+
"page_idx": 8
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"type": "text",
|
| 1219 |
+
"text": "",
|
| 1220 |
+
"bbox": [
|
| 1221 |
+
174,
|
| 1222 |
+
271,
|
| 1223 |
+
825,
|
| 1224 |
+
332
|
| 1225 |
+
],
|
| 1226 |
+
"page_idx": 8
|
| 1227 |
+
},
|
| 1228 |
+
{
|
| 1229 |
+
"type": "text",
|
| 1230 |
+
"text": "The experimental results are given in Figure 1(a). When the true context is given at the end of episode (with Algorithm 2), L-UCRL converges to the optimal policy as our theory suggests. On the other hand, if the true context is not given (with Algorithm 3), the quality of initialization becomes crucial; when the model is poorly initialized, the estimated model converges to a local optimum which leads to a sub-optimal policy. When the model is well-initialized, L-UCRL performs as well as when true contexts are given in hindsight. ",
|
| 1231 |
+
"bbox": [
|
| 1232 |
+
173,
|
| 1233 |
+
337,
|
| 1234 |
+
825,
|
| 1235 |
+
421
|
| 1236 |
+
],
|
| 1237 |
+
"page_idx": 8
|
| 1238 |
+
},
|
| 1239 |
+
{
|
| 1240 |
+
"type": "text",
|
| 1241 |
+
"text": "4.2 Performance of L-UCRL with Good Initialization ",
|
| 1242 |
+
"text_level": 1,
|
| 1243 |
+
"bbox": [
|
| 1244 |
+
173,
|
| 1245 |
+
439,
|
| 1246 |
+
558,
|
| 1247 |
+
454
|
| 1248 |
+
],
|
| 1249 |
+
"page_idx": 8
|
| 1250 |
+
},
|
| 1251 |
+
{
|
| 1252 |
+
"type": "text",
|
| 1253 |
+
"text": "In our second experiment, we focus on the performance of L-UCRL (Algorithm 1) along with Algorithm 3 under different levels of separation $\\delta$ in Assumption 1) when approximately good model parameters are given. For various levels of $\\delta$ , we generate the parameters for transition probabilities randomly while keeping the distance between different MDPs to satisfy $\\delta \\leq \\| ( T _ { m _ { 1 } } -$ $\\bar { T } _ { m _ { 2 } } ) ( s ^ { \\prime } | s , a ) \\| _ { 1 } \\leq 2 \\delta$ for $m _ { 1 } \\neq m _ { 2 }$ . ",
|
| 1254 |
+
"bbox": [
|
| 1255 |
+
174,
|
| 1256 |
+
465,
|
| 1257 |
+
825,
|
| 1258 |
+
536
|
| 1259 |
+
],
|
| 1260 |
+
"page_idx": 8
|
| 1261 |
+
},
|
| 1262 |
+
{
|
| 1263 |
+
"type": "text",
|
| 1264 |
+
"text": "We show the error in the estimated model and average long-term rewards in Figure 1(b). When the separation is sufficient (larger $\\delta$ or $H$ ), the estimated model converges fast to the true parameters. When the separation gets small (smaller $\\delta$ or $H$ ), the convergence speed gets slower. This type of transition in the convergence speed of EM (the update of model parameters with Algorithm 3) is observed both in theory and practice when the overlap between mixture components gets larger (e.g., [29]). On the other hand, the policy steadily improves regardless of the level of separation. We conjecture that this is because the optimal policy would only need the model to be accurate in the total-variation distance, not in the actual estimated parameters. ",
|
| 1265 |
+
"bbox": [
|
| 1266 |
+
173,
|
| 1267 |
+
541,
|
| 1268 |
+
825,
|
| 1269 |
+
652
|
| 1270 |
+
],
|
| 1271 |
+
"page_idx": 8
|
| 1272 |
+
},
|
| 1273 |
+
{
|
| 1274 |
+
"type": "text",
|
| 1275 |
+
"text": "4.3 Initialization with PSR and Clustering ",
|
| 1276 |
+
"text_level": 1,
|
| 1277 |
+
"bbox": [
|
| 1278 |
+
176,
|
| 1279 |
+
670,
|
| 1280 |
+
480,
|
| 1281 |
+
685
|
| 1282 |
+
],
|
| 1283 |
+
"page_idx": 8
|
| 1284 |
+
},
|
| 1285 |
+
{
|
| 1286 |
+
"type": "text",
|
| 1287 |
+
"text": "In the third experiment, we evaluate the initialization algorithm (Algorithm 4) for randomly generated LMDP instances. Since PSR learning requires a (relatively) large number of short sample trajectories, we evaluate this step on smaller instances with $S = 7 , A = 2 , M = 3$ . The LMDP instances are generated similarly as in the second experiment with different levels of $\\delta$ and $H$ . The reward and initial distributions are set the same across all MDPs. To learn the parameters of PSR, we run $1 0 ^ { 6 }$ episodes with $H = 4$ . We assume histories and tests of length 1 are statistically sufficient with the uniformly random policy. In the clustering step, we run an additional $5 \\cdot 1 0 ^ { 3 }$ episodes to obtain longer trajectories of length $H = 2 0 , 4 0$ and 80. We report the experimental results in Figure 2. ",
|
| 1288 |
+
"bbox": [
|
| 1289 |
+
173,
|
| 1290 |
+
696,
|
| 1291 |
+
825,
|
| 1292 |
+
809
|
| 1293 |
+
],
|
| 1294 |
+
"page_idx": 8
|
| 1295 |
+
},
|
| 1296 |
+
{
|
| 1297 |
+
"type": "text",
|
| 1298 |
+
"text": "We first observe how the level of separation $\\delta$ between MDPs impacts trajectory separation, i.e., belief state vs true label (left). Recall that this separation property is the key for clustering trajectories. We then examine the performance of Algorithm 4 (see full Algorithm 5) for various levels of separation. Empirically, it succeeds to get a good initialization of an LMDP model when we have sufficient separation. As the separation level decreases, the algorithm starts to fail (Right). There are two possible sources of the failure: (1) the belief state is far from the true context, and (2) the similarity between MDPs drops the $M ^ { t h }$ singular value of $P _ { \\mathcal { T } , \\mathcal { H } }$ (Middle). We can compensate for (1) if we have a longer time-horizon to infer true contexts, as in the leftmost graph. For (2), if the $M ^ { t h }$ singular value drops, we require more samples for the estimation of PSR parameters. In our experiments, as we decreased $\\delta$ we found that failure in the spectral learning step was the more significant of the two. ",
|
| 1299 |
+
"bbox": [
|
| 1300 |
+
174,
|
| 1301 |
+
814,
|
| 1302 |
+
825,
|
| 1303 |
+
911
|
| 1304 |
+
],
|
| 1305 |
+
"page_idx": 8
|
| 1306 |
+
},
|
| 1307 |
+
{
|
| 1308 |
+
"type": "text",
|
| 1309 |
+
"text": "",
|
| 1310 |
+
"bbox": [
|
| 1311 |
+
174,
|
| 1312 |
+
92,
|
| 1313 |
+
825,
|
| 1314 |
+
133
|
| 1315 |
+
],
|
| 1316 |
+
"page_idx": 9
|
| 1317 |
+
},
|
| 1318 |
+
{
|
| 1319 |
+
"type": "text",
|
| 1320 |
+
"text": "5 Future Work ",
|
| 1321 |
+
"text_level": 1,
|
| 1322 |
+
"bbox": [
|
| 1323 |
+
174,
|
| 1324 |
+
151,
|
| 1325 |
+
313,
|
| 1326 |
+
169
|
| 1327 |
+
],
|
| 1328 |
+
"page_idx": 9
|
| 1329 |
+
},
|
| 1330 |
+
{
|
| 1331 |
+
"type": "text",
|
| 1332 |
+
"text": "There are several interesting research avenues in continuation of this work. An interesting direction is to study RL algorithms for LMDPs with no underlying assumptions. Although our lower bound suggests such an algorithm necessarily suffers an exponential dependence in the number of contexts, if this number is small, such dependence might be acceptable. Specifically, we conjecture that general LMDPs can be learned with sample complexity of poly $\\left( \\dot { ( } H S A ) ^ { M } , \\epsilon ^ { - 1 } \\right)$ . For a special case when MDPs are deterministic, we show that the exponential dependence in $\\dot { M }$ is sufficient In Appendix G. The case for general LMDPs is an interesting open question. Furthermore, a needed empirical advancement is to design efficient ways to learn the set of sufficient histories/tests for learning predictive state representation of LMDPs. This can dramatically improve the performance of our algorithms when a sufficiently good initial model needs to be learned. ",
|
| 1333 |
+
"bbox": [
|
| 1334 |
+
174,
|
| 1335 |
+
184,
|
| 1336 |
+
825,
|
| 1337 |
+
321
|
| 1338 |
+
],
|
| 1339 |
+
"page_idx": 9
|
| 1340 |
+
},
|
| 1341 |
+
{
|
| 1342 |
+
"type": "text",
|
| 1343 |
+
"text": "Acknowledgement ",
|
| 1344 |
+
"text_level": 1,
|
| 1345 |
+
"bbox": [
|
| 1346 |
+
176,
|
| 1347 |
+
337,
|
| 1348 |
+
302,
|
| 1349 |
+
352
|
| 1350 |
+
],
|
| 1351 |
+
"page_idx": 9
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"type": "text",
|
| 1355 |
+
"text": "The research was funded by NSF grant 2019844, and by the Army Research Office and was accomplished under Cooperative Agreement Number W911NF-19-2-0333. The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the Army Research Office or the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notation herein. ",
|
| 1356 |
+
"bbox": [
|
| 1357 |
+
174,
|
| 1358 |
+
363,
|
| 1359 |
+
826,
|
| 1360 |
+
445
|
| 1361 |
+
],
|
| 1362 |
+
"page_idx": 9
|
| 1363 |
+
},
|
| 1364 |
+
{
|
| 1365 |
+
"type": "text",
|
| 1366 |
+
"text": "References ",
|
| 1367 |
+
"text_level": 1,
|
| 1368 |
+
"bbox": [
|
| 1369 |
+
174,
|
| 1370 |
+
465,
|
| 1371 |
+
266,
|
| 1372 |
+
481
|
| 1373 |
+
],
|
| 1374 |
+
"page_idx": 9
|
| 1375 |
+
},
|
| 1376 |
+
{
|
| 1377 |
+
"type": "text",
|
| 1378 |
+
"text": "[1] A. Anandkumar, R. Ge, D. Hsu, S. M. Kakade, and M. Telgarsky. Tensor decompositions for learning latent variable models. Journal of Machine Learning Research, 15:2773–2832, 2014. \n[2] A. Anandkumar, D. Hsu, and S. M. Kakade. A method of moments for mixture models and hidden markov models. In Conference on Learning Theory, pages 33–1, 2012. \n[3] D. Arthur and S. Vassilvitskii. k-means $^ { + + }$ the advantages of careful seeding. In Proceedings of the eighteenth annual ACM-SIAM symposium on Discrete algorithms, pages 1027–1035, 2007. \n[4] M. G. Azar, I. Osband, and R. Munos. Minimax regret bounds for reinforcement learning. arXiv preprint arXiv:1703.05449, 2017. \n[5] K. Azizzadenesheli, A. Lazaric, and A. Anandkumar. Reinforcement learning of POMDPs using spectral methods. In Conference on Learning Theory, pages 193–256, 2016. \n[6] B. Boots and G. J. Gordon. An online spectral learning algorithm for partially observable nonlinear dynamical systems. In Twenty-Fifth AAAI Conference on Artificial Intelligence, 2011. \n[7] B. Boots, S. M. Siddiqi, and G. J. Gordon. Closing the learning-planning loop with predictive state representations. The International Journal of Robotics Research, 30(7):954–966, 2011. \n[8] E. Brunskill and L. Li. Sample complexity of multi-task reinforcement learning. In Uncertainty in Artificial Intelligence, page 122. Citeseer, 2013. \n[9] P. Buchholz and D. Scheftelowitsch. Computation of weighted sums of rewards for concurrent MDPs. Mathematical Methods of Operations Research, 89(1):1–42, 2019. \n[10] O. Cappé and E. Moulines. On-line expectation–maximization algorithm for latent data models. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 71(3):593–613, 2009. \n[11] I. Chadès, J. Carwardine, T. Martin, S. Nicol, R. Sabbadin, and O. Buffet. Momdps: a solution for modelling adaptive management problems. In Twenty-Sixth AAAI Conference on Artificial Intelligence (AAAI-12), 2012. \n[12] C. Dann, N. Jiang, A. Krishnamurthy, A. Agarwal, J. Langford, and R. E. Schapire. On oracleefficient PAC RL with rich observations. In Advances in neural information processing systems, pages 1422–1432, 2018. \n[13] S. Du, A. Krishnamurthy, N. Jiang, A. Agarwal, M. Dudik, and J. Langford. Provably efficient rl with rich observations via latent state decoding. In International Conference on Machine Learning, pages 1665–1674, 2019. \n[14] A. Garivier, P. Ménard, and G. Stoltz. Explore first, exploit next: The true shape of regret in bandit problems. Mathematics of Operations Research, 44(2):377–399, 2019. \n[15] C. Gentile, S. Li, P. Kar, A. Karatzoglou, G. Zappella, and E. Etrue. On context-dependent clustering of bandits. In International Conference on Machine Learning, pages 1253–1262. PMLR, 2017. \n[16] C. Gentile, S. Li, and G. Zappella. Online clustering of bandits. In International Conference on Machine Learning, pages 757–765, 2014. \n[17] Z. D. Guo, S. Doroudi, and E. Brunskill. A PAC RL algorithm for episodic POMDPs. In Artificial Intelligence and Statistics, pages 510–518, 2016. \n[18] A. Hallak, D. Di Castro, and S. Mannor. Contextual markov decision processes. arXiv preprint arXiv:1502.02259, 2015. \n[19] A. Hefny, C. Downey, and G. J. Gordon. Supervised learning for dynamical system learning. In Advances in neural information processing systems, pages 1963–1971, 2015. \n[20] D. Hsu, S. M. Kakade, and T. Zhang. A spectral algorithm for learning hidden markov models. Journal of Computer and System Sciences, 78(5):1460–1480, 2012. \n[21] T. Jaakkola, S. P. Singh, and M. I. Jordan. Reinforcement learning algorithm for partially observable markov decision problems. In Advances in neural information processing systems, pages 345–352, 1995. \n[22] T. Jaksch, R. Ortner, and P. Auer. Near-optimal regret bounds for reinforcement learning. Journal of Machine Learning Research, 11:1563–1600, 2010. \n[23] N. Jiang, A. Krishnamurthy, A. Agarwal, J. Langford, and R. E. Schapire. Contextual decision processes with low bellman rank are PAC-learnable. In International Conference on Machine Learning, pages 1704–1713. PMLR, 2017. \n[24] N. Jiang, A. Kulesza, and S. Singh. Improving predictive state representations via gradient descent. In Thirtieth AAAI Conference on Artificial Intelligence, 2016. \n[25] C. Jin, S. M. Kakade, A. Krishnamurthy, and Q. Liu. Sample-efficient reinforcement learning of undercomplete POMDPs. arXiv preprint arXiv:2006.12484, 2020. \n[26] A. Krishnamurthy, A. Agarwal, and J. Langford. PAC reinforcement learning with rich observations. In Advances in Neural Information Processing Systems, pages 1840–1848, 2016. \n[27] J. Kwon and C. Caramanis. The EM algorithm gives sample-optimality for learning mixtures of well-separated gaussians. In Conference on Learning Theory, pages 2425–2487, 2020. \n[28] J. Kwon and C. Caramanis. EM converges for a mixture of many linear regressions. In International Conference on Artificial Intelligence and Statistics, pages 1727–1736, 2020. \n[29] J. Kwon, N. Ho, and C. Caramanis. On the minimax optimality of the EM algorithm for learning two-component mixed linear regression. arXiv preprint arXiv:2006.02601, 2020. \n[30] Y. Li, B. Yin, and H. Xi. Finding optimal memoryless policies of POMDPs under the expected average reward criterion. European Journal of Operational Research, 211(3):556–567, 2011. \n[31] M. L. Littman. Memoryless policies: Theoretical limitations and practical results. In From Animals to Animats 3: Proceedings of the third international conference on simulation of adaptive behavior, volume 3, page 238. Cambridge, MA, 1994. \n[32] M. L. Littman, A. R. Cassandra, and L. P. Kaelbling. Learning policies for partially observable environments: Scaling up. In Machine Learning Proceedings 1995, pages 362–370. Elsevier, 1995. \n[33] M. L. Littman and R. S. Sutton. Predictive representations of state. In Advances in neural information processing systems, pages 1555–1561, 2002. \n[34] Y. Liu, Z. Guo, and E. Brunskill. PAC continuous state online multitask reinforcement learning with identification. In Proceedings of the 2016 International Conference on Autonomous Agents & Multiagent Systems, pages 438–446, 2016. \n[35] O.-A. Maillard and S. Mannor. Latent bandits. In International Conference on Machine Learning, pages 136–144, 2014. \n[36] A. Modi, N. Jiang, S. Singh, and A. Tewari. Markov decision processes with continuous side information. In Algorithmic Learning Theory, pages 597–618, 2018. \n[37] A. Y. Ng and M. Jordan. PEGASUS: a policy search method for large MDPs and POMDPs. In Proceedings of the Sixteenth conference on Uncertainty in artificial intelligence, pages 406–415, 2000. \n[38] C. H. Papadimitriou and J. N. Tsitsiklis. The complexity of Markov decision processes. Mathematics of operations research, 12(3):441–450, 1987. \n[39] J. Pineau, G. Gordon, and S. Thrun. Anytime point-based approximations for large POMDPs. Journal of Artificial Intelligence Research, 27:335–380, 2006. \n[40] S. Ross, M. Izadi, M. Mercer, and D. Buckeridge. Sensitivity analysis of POMDP value functions. In 2009 International Conference on Machine Learning and Applications, pages 317–323. IEEE, 2009. \n[41] S. Singh, M. R. James, and M. R. Rudary. Predictive state representations: a new theory for modeling dynamical systems. In Proceedings of the 20th conference on Uncertainty in artificial intelligence, pages 512–519, 2004. \n[42] R. D. Smallwood and E. J. Sondik. The optimal control of partially observable markov processes over a finite horizon. Operations research, 21(5):1071–1088, 1973. \n[43] T. Smith and R. Simmons. Heuristic search value iteration for POMDPs. In Proceedings of the 20th conference on Uncertainty in artificial intelligence, pages 520–527, 2004. \n[44] M. T. Spaan and N. Vlassis. Perseus: Randomized point-based value iteration for POMDPs. Journal of artificial intelligence research, 24:195–220, 2005. \n[45] L. N. Steimle, D. L. Kaufman, and B. T. Denton. Multi-model markov decision processes. Optimization Online URL http://www. optimization-online. org/DB_FILE/2018/01/6434. pdf, 2018. \n[46] G. W. Stewart. Matrix perturbation theory. 1990. \n[47] M. E. Taylor and P. Stone. Transfer learning for reinforcement learning domains: A survey. Journal of Machine Learning Research, 10(7), 2009. \n[48] R. Vershynin. Introduction to the non-asymptotic analysis of random matrices. arXiv preprint arXiv:1011.3027, 2010. ",
|
| 1379 |
+
"bbox": [
|
| 1380 |
+
179,
|
| 1381 |
+
488,
|
| 1382 |
+
828,
|
| 1383 |
+
911
|
| 1384 |
+
],
|
| 1385 |
+
"page_idx": 9
|
| 1386 |
+
},
|
| 1387 |
+
{
|
| 1388 |
+
"type": "text",
|
| 1389 |
+
"text": "",
|
| 1390 |
+
"bbox": [
|
| 1391 |
+
171,
|
| 1392 |
+
71,
|
| 1393 |
+
828,
|
| 1394 |
+
917
|
| 1395 |
+
],
|
| 1396 |
+
"page_idx": 10
|
| 1397 |
+
},
|
| 1398 |
+
{
|
| 1399 |
+
"type": "text",
|
| 1400 |
+
"text": "",
|
| 1401 |
+
"bbox": [
|
| 1402 |
+
171,
|
| 1403 |
+
90,
|
| 1404 |
+
830,
|
| 1405 |
+
797
|
| 1406 |
+
],
|
| 1407 |
+
"page_idx": 11
|
| 1408 |
+
}
|
| 1409 |
+
]
|
parse/train/CLCVcl1rSPP/CLCVcl1rSPP_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/CLCVcl1rSPP/CLCVcl1rSPP_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/LOHyqjfyra/LOHyqjfyra.md
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# On Interaction Between Augmentations and Corruptions in Natural Corruption Robustness
|
| 2 |
+
|
| 3 |
+
Eric Mintun∗ Facebook AI Research mintun@fb.com
|
| 4 |
+
|
| 5 |
+
Alexander Kirillov Facebook AI Research akirillov@fb.com
|
| 6 |
+
|
| 7 |
+
Saining Xie Facebook AI Research s9xie@fb.com
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
Invariance to a broad array of image corruptions, such as warping, noise, or color shifts, is an important aspect of building robust models in computer vision. Recently, several new data augmentations have been proposed that significantly improve performance on ImageNet-C, a benchmark of such corruptions. However, there is still a lack of basic understanding on the relationship between data augmentations and test-time corruptions. To this end, we develop a feature space for image transforms, and then use a new measure in this space between augmentations and corruptions called the Minimal Sample Distance to demonstrate a strong correlation between similarity and performance. We then investigate recent data augmentations and observe a significant degradation in corruption robustness when the test-time corruptions are sampled to be perceptually dissimilar from ImageNet-C in this feature space. Our results suggest that test error can be improved by training on perceptually similar augmentations, and data augmentations may not generalize well beyond the existing benchmark. We hope our results and tools will allow for more robust progress towards improving robustness to image corruptions. We provide code at https://github.com/facebookresearch/augmentation-corruption.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
Robustness to distribution shift, i.e. when the train and test distributions differ, is an important feature of practical machine learning models. Among many forms of distribution shift, one particularly relevant category for computer vision are image corruptions. For example, test data may come from sources that differ from the training set in terms of lighting, camera quality, or other features. Postprocessing transforms, such as photo touch-up, image filters, or compression effects are commonplace in real-world data. Models developed using clean, undistorted inputs typically perform dramatically worse when confronted with these sorts of image corruptions [8, 13]. The subject of corruption robustness has a long history in computer vision [1, 6, 28] and recently has been studied actively with the release of benchmark datasets such as ImageNet-C [13].
|
| 16 |
+
|
| 17 |
+
One particular property of image corruptions is that they are low-level distortions in nature. Corruptions are transformations of an image that affect structural information such as colors, textures, or geometry [5] and are typically free of high-level semantics. Therefore, it is natural to expect that data augmentation techniques, which expand the training set with random low-level transformations, can help learn robust models. Indeed, data augmentation has become a central technique in several recent methods [14, 20, 25] that achieve large improvements on ImageNet-C and related benchmarks.
|
| 18 |
+
|
| 19 |
+
One caveat for data augmentation based approaches is the test corruptions are expected to be unknown at training time. If the corruptions are known, they may simply be applied to the training set as data augmentations to trivially adapt to the test distribution. Instead, an ideal robust model needs to be robust to any valid corruption, including ones unseen in any previous benchmark. Of course, in practice the robustness of a model can only be evaluated approximately by measuring its corruption error on a representative corruption benchmark. To avoid trivial adaptation to the benchmark, recent works manually exclude test corruptions from the training augmentations. However, with a toy experiment presented in Figure 1, we argue that this strategy alone might not be enough and that visually similar augmentation outputs and test corruptions can lead to significant benchmark improvements even if the exact corruption transformations are excluded.
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: A toy experiment. We train multiple models on CIFAR-10 [17] using different augmentation schemes. Each scheme is based on a single basic image transformation type and enhanced by overlaying random instantiations of the transformation for each input image following Hendrycks et al. [14]. We compare these models on the CIFAR-10 test set corrupted by the motion blur, a corruption used in the ImageNet-C corruption benchmark [13]. None of the augmentation schemes contains motion blur; however, the models trained with geometric-based augmentations significantly outperform the baseline model trained on the clean images while color-based augmentations show no gains. We note the geometric augmentations can produce a result visually similar to a blur by overlaying copies of shifted images3.
|
| 23 |
+
|
| 24 |
+
This observation raises two important questions. One, how exactly does the similarity between train time augmentations and corruptions of the test set affect the error? And two, if the gains are due to the similarity, they may not translate into better robustness to other possible corruptions, so how well will data augmentations generalize beyond a given benchmark? In this work, we take a step towards answering these questions, with the goal of better understanding the relationship between data augmentation and test-time corruptions. Using a feature space on image transforms and a new measure called Minimal Sample Distance (MSD) on this space, we are able to quantify the distance between augmentation schemes and classes of corruption transformation. With our approach, we empirically show an intuitive yet surprisingly overlooked finding:
|
| 25 |
+
|
| 26 |
+
Augmentation-corruption perceptual similarity is a strong predictor of corruption error.
|
| 27 |
+
|
| 28 |
+
Based on this finding, we perform additional experiments to show that data augmentation aids corruption robustness by increasing perceptual similarity between a (possibly small) fraction of the training data and the test set. To further support our claims, we introduce a set of new corruptions, called CIFAR/ImageNet-C, to test the degree to which common data augmentation methods generalize from the original CIFAR/ImageNet-C. To choose these corruptions, we expand the set of natural corruptions and sample new corruptions that are far away from CIFAR/ImageNet-C in our feature space for measuring perceptual similarity. We then demonstrate that augmentation schemes designed specifically to improve robustness show significantly degraded performance on CIFAR/ImageNet-C. Some augmentation schemes still show some improvement over baseline, which suggests meaningful progress towards general corruption robustness is being made, but different augmentation schemes exhibit different degrees of generalization capability. As an implication, caution is needed for fair robustness evaluations when additional data augmentation is introduced.
|
| 29 |
+
|
| 30 |
+
These results suggest a major challenge that is often overlooked in the study of corruption robustness: generalization is often poor. Since perceptual similarity can predict performance, for any fixed finite set of test corruptions, improvements on that set may generalize poorly to dissimilar corruptions. We hope that these results, tools, and benchmarks will help researchers better understand why a given augmentation scheme has good corruption error and whether it should be expected to generalize to dissimilar corruptions. On the positive side, our experiments show that generalization does emerge among perceptually similar transforms, and that only a small fraction of sampled augmentations need to be similar to a given corruption. Section 6 discusses these points in more depth.
|
| 31 |
+
|
| 32 |
+
# 2 Related Work
|
| 33 |
+
|
| 34 |
+
Corruption robustness benchmarks and analysis. ImageNet-C [13] is a corruption dataset often used as a benchmark in robustness studies. Other corruption datasets [15, 27] collect corrupted images from real world sources and thus have a mixture of semantic distribution shifts and perceptual transforms. Corruption robustness differs from adversarial robustness [31], which seeks invariance to small, worst case distortions. One notable difference is that improving corruption robustness often slightly improves regular test error, instead of harming it. Yin et al. [38] analyzes corruption robustness in the context of transforms’ frequency spectra; this can also influence corruption error independently from perceptual similarity. Here we study the relationship between augmentations and corruptions more generically, and explore the relationship between perceptual similarity and generalization to new corruptions. Dao et al. [3] and Wu et al. [36] study the theory of data augmentation for regular test error. Hendrycks et al. [15] and Taori et al. [33] study how the performance on synthetic corruption transforms generalizes to performance on corruption datasets collected from the real world. Here we do not address this issue directly but touch upon it in the discussion.
|
| 35 |
+
|
| 36 |
+
Improving corruption robustness. Data augmentations designed to improve robustness include AugMix [14], which composites common image transforms, Patch Gaussian [20], which applies Gaussian noise in square patches, and ANT [25], which augments with an adversarially learned noise distribution. AutoAugment [2] learns augmentation policies that optimize clean error but has since been shown to improve corruption error [38]. Mixup [40] can improve robustness [18], but its label augmentation complicates the dependence on image augmentation. Stylized-ImageNet [9], which applies style transfer to input images, can also improve robustness. DeepAugment [15], which applies augmentations to a deep representation of an image, can also give large improvements in robustness. Noisy Student [37] and Assemble-ResNet [18] combine data augmentation with new models and training procedures and greatly enhance corruption robustness. In addition to training-time methods, there are approaches that adapt to unseen corruptions at test time, e.g. using self-supervised tasks [30], entropy minimization [35], or with a focus on privacy and data transmission efficiency [19]. While we do not directly address these approaches here, our methods potentially provide tools that could be used to measure shifting distributions in an online regime.
|
| 37 |
+
|
| 38 |
+
# 3 Perceptual similarity for augmentations and corruptions
|
| 39 |
+
|
| 40 |
+
First, we study the importance of similarity between augmentations and corruptions for improving performance on those corruptions. To do so, we need a means to compare augmentations and corruptions. Both types of transforms are perceptual in nature, meaning they affect low-level image structure while leaving high-level semantic information intact, so we expect a good distance to be a measure of perceptual similarity. Then, we need to find the appropriate measure of distance between the augmentation and corruption distributions. We will argue below that distributional equivalence is not appropriate in the context of corruption robustness, and instead introduce the minimal sample distance, a simple measure that does capture a relevant sense of distribution distance.
|
| 41 |
+
|
| 42 |
+
Measuring similarity between perceptual transforms. We define a perceptual transform as a transform that acts on low-level image structure but not high-level semantic information. As such, we expect two transforms should be similar if their actions on this low-level structure are similar, independent of algorithmic or per-pixel differences between them. A closely related, well-studied problem is the perceptual similarity between images. A common approach is to train a neural network on a classification task and use intermediate layers as a feature space for measuring distances [42]. We adapt this idea to obtain a feature space for measuring distances between perceptual transforms.
|
| 43 |
+
|
| 44 |
+
We start with a feature extractor for images, which we call $\hat { f } ( x )$ . To train the model from which we will extract features, we assume access to a dataset $\mathbb { D }$ of image label pairs $( x , y )$ associated with a classification task. The model should be trained using only default data augmentation for the task in question so that the feature extractor is independent of the transforms we will use it to study. In order to obtain a very simple measure, we use just the last hidden layer of the network as a feature space.
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
Figure 2: (a) Schematic comparison of MMD to MSD. MMD measures the distance between distribution centers and is only small if the augmentation overlaps with a corruption. MSD measures to the nearest sampled point in the set of samples (marked by a star) and is small even for broad distributions that overlap with multiple corruptions. (b) We test on images corrupted with impulse noise, and train on images augmented with a mixture of impulse noise and motion blur. As the mixing fraction of impulse noise decreases, MMD between the augmentation and corruption grows linearly while MSD and error stay low until nearly $0 \%$ mixing fraction.
|
| 48 |
+
|
| 49 |
+
A perceptual transform $t ( x )$ may be encoded by applying it to all images in $\mathbb { D }$ , encoding the transformed images, and averaging the features over these images. For efficiency, we find it sufficient to average over only a randomly sampled subset of images $\mathbb { D } _ { S }$ in $\mathbb { D }$ . In Section 4.1 we discuss the size of $\mathbb { D } _ { S }$ . The random choice of images is a property of the feature extractor, and so remains fixed when encoding multiple transforms. This reduces variance when computing distances between two transforms. The transform feature extractor is given by $f ( t ) = \mathbb { E } _ { x \in \mathbb { D } _ { S } } [ \hat { f } ( t ( x ) ) - \hat { f } ( x ) ]$ . The perceptual similarity between an augmentation and a corruption can be taken as the $L _ { 2 }$ distance on this feature space $f$ .
|
| 50 |
+
|
| 51 |
+
Minimal sample distance. We now seek to compare the distribution of an augmentation scheme $p _ { a }$ to a distribution of a corruption benchmark $p _ { c }$ . If the goal was to optimize error on a known corruption distribution, exact equivalence of distributions is the correct measure to minimize. But since the goal is robustness to general, unknown corruption distributions, a good augmentation scheme should be equivalent to no single corruption distribution.
|
| 52 |
+
|
| 53 |
+
To illustrate this behavior, consider a toy problem where we have access to the corruption transforms at training time. A very rough, necessary-but-insufficient measure of distributional similarity is $d _ { \mathrm { M M D } } ( p _ { a } , p _ { c } ) = | | \mathbb { E } _ { a \sim p _ { a } } [ f ( a ) ] - \mathbb { E } _ { c \sim p _ { c } } [ f ( c ) ] | |$ . This is the maximal mean discrepancy on a fixed, finite feature space, so for brevity we will refer to it as MMD. We still employ the featurization $f ( t )$ , since we are comparing transforms and not images, unlike in typical domain adaptation. Consider two corruption distributions, here impulse noise and motion blur, and an augmentation scheme that is a mixture of the two corruption distributions. Figure 2b shows MMD between the augmentation and impulse noise corruption scales linearly with mixing fraction, but error on impulse noise remains low until the mixing fraction is almost $0 \%$ impulse noise. This implies distributional similarity is a poor predictor of corruption error. Indeed, low $d _ { \mathrm { M M D } }$ with any one corruption distribution suggests the augmentation overlaps it significantly, so the augmentation is unlikely to aid dissimilar corruptions.
|
| 54 |
+
|
| 55 |
+
Our expectation for the behavior of the error in Figure 2b is that networks can often successfully memorize rare examples seen during training, so that only a very small fraction of sampled images need impulse noise augmentations to perform well on impulse noise corruptions. An appropriate distance should then measure how close augmentation samples can come to the corruption distribution, even if the density of those samples is low. We thus propose a very simple measure called minimal sample distance (MSD), which is just the perceptual similarity between an average corruption and the closest augmentation from a finite set of samples A $\sim p _ { a }$ :
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
d _ { \mathrm { M S D } } ( p _ { a } , p _ { c } ) = \operatorname* { m i n } _ { a \in \mathbb { A } \sim p _ { a } } \left| | f ( a ) - \mathbb { E } _ { c \sim p _ { c } } [ f ( c ) ] | \right| .
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+

|
| 62 |
+
18 7.012 6.0Figure 3: Example relationships between MSD and corruption error. $\rho$ is the Spearman rank 16 200.2 0.4 0.6 0.8 0.4 0.8 1.2 1.612 0.10 0.14 0.18 0.22correlation. MSD correlates well with error across all four categories of corruption in CIFAR-10-C. 14 16 Minimal Sample DistanceFor completeness, we also show brightness, a negative example where correlation is poor.
|
| 63 |
+
|
| 64 |
+
0.2 0.4 0.6 0.8 0.4 0.8 1.2 1.6 0.10 0.14 0.18 0.22A schematic comparison of MMD and MSD is shown in Figure 2a. While both MMD and MSD Minimal Sample Distanceare small for an augmentation scheme that is distributionally similar to a corruption distribution, only MSD remains small for a broad distribution that occasionally produces samples near multiple corruption distributions. Figure 2b shows MSD, like test error, is small for most mixing fractions in the toy problem described above. Note the measure’s need to accommodate robustness to general, unknown corruption distributions has led it to be asymmetric, so it differs from more formal distance metrics that may be used to predict generalization error, such as the Wasserstein distance [43].
|
| 65 |
+
|
| 66 |
+
# 4 Perceptual similarity is predictive of corruption error
|
| 67 |
+
|
| 68 |
+
We are now equipped to measure how important this augmentation-corruption similarity is for corruption error. For a large number of augmentation schemes, we will measure both the MSD to a corruption distribution and the corruption error of a model trained with that scheme. We will find a correlation between MSD and corruption error, which provides evidence that networks generalize across perceptually similar transforms. Then, we will calculate MSD for augmentation schemes in the literature that have been shown to improve error on corruption benchmarks. We will find a correlation between MSD and error here as well, suggesting their success is in part explained by their perceptual similarity to the benchmark. This implies there may be a risk of poor generalization to different benchmarks, since we would not expect this improvement to transfer to a dissimilar corruption.
|
| 69 |
+
|
| 70 |
+
# 4.1 Experimental setup
|
| 71 |
+
|
| 72 |
+
Corruptions. We use CIFAR-10-C [13], which is a common benchmark used for studying corruption robustness. It consists of 15 corruptions, each further split into five different severities of transformation, applied to the CIFAR-10 test set. The 15 corruptions fall into four categories: per-pixel noise, blurring, synthetic weather effects, and digital transforms. We treat each corruption at each severity as a separate distribution for the sake of calculating MSD and error; however, for simplicity we average errors and distances over severity to present a single result per corruption.
|
| 73 |
+
|
| 74 |
+
Space of augmentation schemes. To build each sampled augmentation transform, we will composite a set of base augmentations. For base augmentations, we consider the nine common image transforms used in Hendrycks et al. [14]. There are five geometric transforms and four color transforms. By taking all subsets of these base augmentations, we obtain $2 ^ { 9 } = 5 1 2$ unique augmentation schemes, collectively called the augmentation powerset. Also following Hendrycks et al. [14], we composite transforms in two ways: by applying one after another, or by applying them to copies of the image and then linearly superimposing the results. Examples of both augmentations and corruptions are provided in Appendix F.
|
| 75 |
+
|
| 76 |
+
Computing similarity and corruption error. A WideResNet-40-2 [39] model is pre-trained on CIFAR-10 using default augmentation and training parameters from Hendrycks et al. [14]. WideResNet is a common baseline model used when studying data augmentation on CIFAR-10 [2, 14, 40]. Its last hidden layer is used as the feature space. For MSD, we average over 100 images, 100 corruptions, and minimize over $1 0 0 \mathrm { k }$ augmentations. With this number of corruptions and images, we find that the average standard deviation in distance between an augmentation and the averaged corruptions is roughly five percent of the mean, which is smaller than the typical feature in our results found below, given in Figure 3. We also find that using VGG [29] instead of WideResNet for the feature extractor
|
| 77 |
+
|
| 78 |
+

|
| 79 |
+
25 w/ solarize w/ x-translationFigure 4: Example relationships between base augmentations and corruptions. Including solarize 10reduces MSD on the perceptually similar impulse noise corruption. Including $x$ translation reduces 20MSD on the perceptually similar motion blur corruption. MSD is not decreased for dissimilar Minimum Sample D augmentation-corruption pairs.
|
| 80 |
+
|
| 81 |
+
10gives similar results. Details for these calculations are in Appendix C. Images for calculating MSD are from the training set and do not have default training augmentation. A WideResNet-40-2 with the 0.2 0.6 1.0 1.4 0.2 0.6 1.0 1.4same training parameters is used for corruption error evaluation.
|
| 82 |
+
|
| 83 |
+
# 4.2 Analysis
|
| 84 |
+
|
| 85 |
+
MSD correlates with corruption error. First, we establish the correlation between MSD and corruption error on the augmentation powerset. MSD shows strong correlation with corruption error across corruptions types in all four categories of CIFAR-10-C, and for a large majority of CIFAR-10-C corruptions in general: 12 of 15 have Spearman rank correlation greater than 0.6. Figure 3 shows the relationship between distance and corruption error on six example corruptions, including one negative example for which correlation is low. A complete set of plots is below in Figure 5. This corruption, brightness, may give poor results because it is a single low-level image statistic that can vary significantly from image to image, and thus may not be well represented by our feature extractor. Appendix B has a few supplemental experiments. First, we we confirm MMD correlates poorly with corruption error, as expected. In particular, we expect broad augmentation schemes produce samples similar to a larger set of corruptions, leading to both lower MSD and lower corruption error but higher MMD. Second, we repeat our experiment but do not train on the augmentations, instead only adapting the batch norm statistics of a pre-trained model to them. We still find a strong correlation, suggesting our methods are compatible with the results of Schneider et al. [26], which shows such an adaptation of the batch norm statistics to a corruption can improve corruption error.
|
| 86 |
+
|
| 87 |
+
An example of perceptual similarity. Here we illustrate the perceptual nature of the similarity measure, using an example with two base augmentations and two corruptions. The augmentation solarize and the corruption impulse noise both insert bright pixels into the image, though in different ways. Linear superpositions of the augmentation $x$ translation are visually similar to a blur, such as the corruption motion blur. Figure 4 shows MSD vs error where augmentation schemes that include solarize and $x$ translation are colored. It is clear that including an augmentation greatly decreases MSD to its perceptually similar corruption, while having little effect on MSD to its perceptually dissimilar corruption.
|
| 88 |
+
|
| 89 |
+
MSD and corruption error in real augmentation methods. The augmentation powerset may be used as a baseline for comparing real data augmentation schemes. Figure 5 shows MSD-error correlations for Patch Gaussian [20], AutoAugment [2], and Augmix [14], along with the cloud of augmentation powerset points for all 15 CIFAR-10-C corruptions. The real augmentation schemes follow the same general trend that lower error predicts lower MSD. A few intuitive correlations are also captured in Figure 5. Patch Gaussian has low MSD to noise corruptions. AutoAugment, which contains contrast and Gaussian blurring augmentations in its sub-policies, has low MSD with contrast and defocus blur. A negative example is fog, on which MSD to AutoAugment is not predictive of corruption error.
|
| 90 |
+
|
| 91 |
+
This correlation suggests generalization may be poor beyond an existing benchmark, since an augmentation scheme may be perceptually similar to one benchmark but not another. For augmentations and corruptions that are explicitly the same, such as contrast in AutoAugment and ImageNet-C, this is typically accounted for by removing such transforms from the augmentation scheme when testing corruption robustness4. But in addition to these explicit similarities, Figure 5 shows quantitatively that perceptual similarity between non-identical augmentations and corruptions is also strongly predictive of corruption error. This includes possibly unexpected similarities, such as between Patch Gaussian and glass blur, which introduces random pixel-level permutations as noise. This suggests that perceptually similar augmentations and corruptions should be treated with the same care as identical transforms. In particular, tools such as MSD help us determine why an augmentation scheme improves corruption error, so we can better understand if new methods will generalize beyond their tested benchmarks. Next we test this generalization by finding corruptions dissimilar to ImageNet-C.
|
| 92 |
+
|
| 93 |
+

|
| 94 |
+
Figure 5: Correlations for augmentation schemes from the literature. Patch Gaussian is similar to noise, while AutoAugment is similar to contrast and blur, as expected from their formulation. Glass blur acts more like a noise corruption than a blur for these augmentation schemes, likely because it randomly permutes pixels. As a negative example, MSD does not correlate well with error for AutoAugment on fog. \*AugMix here refers to just the augmentation distribution in Hendrycks et al. [14], not the proposed Jensen-Shannon divergence loss.
|
| 95 |
+
|
| 96 |
+
# 5 ImageNet-C: benchmarking with dissimilar corruptions
|
| 97 |
+
|
| 98 |
+
We now introduce a set of corruptions, called ImageNet-C, that are perceptually dissimilar to ImageNet-C in our transform feature space, and we will show that several augmentation schemes have degraded performance on the new dataset. We emphasize that the dataset selection method uses only default data augmentation and was fixed before we looked at the results for different augmentations, so we are not adversarially selecting against the tested augmentation schemes.
|
| 99 |
+
|
| 100 |
+
Dataset construction. Here we present an overview of the dataset construction method. We build 30 new corruptions in 10 severities, from which the 10 most dissimilar corruptions will be chosen. We adapt common filters and noise distributions available online [10, 16] to produce human interpretable images. The transforms include warps, blurs, color distortions, noise additions, and obscuring effects. Examples of the new corruptions and exact details of the construction method are provided in Appendices D and F.
|
| 101 |
+
|
| 102 |
+

|
| 103 |
+
Brown Noise Checkerboard Cocentric Sine Waves Perlin Noise Single Frequency NoiseImageNet-C CorruptionsFigure 6: Example CIFAR-10-C and ImageNet-C corruptions. While still human interpretable, new corruptions are sampled to be dissimilar from CIFAR-10/ImageNet-C. Base images $^ ©$ Sehee Park and Chenxu Han.
|
| 104 |
+
|
| 105 |
+
Blue Noise Sample Caustic Refraction Inverse Sparkle Plasma Noise SparklesTo assure that the new dataset is no harder than ImageNet-C, we restrict the average corruption error of the new dataset to be similar to that of ImageNet-C for default augmentation. We then generate many potential datasets and measure the average shift in distance to ImageNet-C that each corruption contributes. Note that while MSD is a measure between augmentations and corruptions, here we are comparing corruptions to other corruptions and thus use MMD in our transform feature space. ImageNet-C then consists of the 10 corruptions types with the largest average shift in distance. Like ImageNet-C, each has five different severities, with severities chosen so that the average error matches ImageNet-C for default augmentation. Example transforms from ImageNet-C and CIFAR-10-C are shown in Figure 6. This procedure in our feature space produces corruptions intuitively dissimilar from ImageNet-C and CIFAR-10-C.
|
| 106 |
+
|
| 107 |
+
Results. We test AutoAugment [2], Patch Gaussian [20], AugMix [14], $\mathbf { A N T } ^ { 3 \mathrm { x } 3 }$ [25], StylizedImageNet [9], and DeepAugment [15] on our new datasets and show results in Table 1. CIFAR-10 models are WideResNet-40-2 with training parameters from Hendrycks et al. [14]. ImageNet [4] models are ResNet-50 [12] with training parameters from Goyal et al. [11]. Stylized-ImageNet is trained jointly with ImageNet for half the epochs and starts from a model pre-trained on ImageNet, following Geirhos et al. [9]. Models use default data augmentation as well as the augmentation being tested, except ImageNet color jittering is not used. All corruptions are applied in-memory instead of loaded from a compressed file; this can affect results especially on high frequency corruptions.
|
| 108 |
+
|
| 109 |
+
Since Section 4 suggests several augmentation schemes are perceptually similar to ImageNet-C corruptions, we might expect these methods to have worse error on the new corruptions. Indeed, every augmentation scheme performs worse. Different augmentation schemes also degrade by significantly different amounts, from $+ 0 . 7 \%$ for AutoAugment to $+ 7 . 3 \%$ for PatchGaussian, which changes their ranking by corruption error and leads to inconsistency of generalization. In Table 2, we compare performance on several robust models[7, 21, 22, 32, 34, 37, 41] that are not primarily augmentationbased and see no similar pattern of degradation, further suggesting that augmentation-corruption dissimilarity is the cause of the higher error.
|
| 110 |
+
|
| 111 |
+
Errors of individual corruptions in ImageNet-C are also revealing. For all augmentation schemes, there is significant improvement on blue sample noise5 but little improvement on sparkles or inverse sparkles. Only AutoAugment does well on checkerboard, perhaps because only AutoAugment’s geometric transforms produce empty space, similar to checkerboard’s occluded regions. These examples suggest a slightly different benchmark could yield significantly different results. Indeed, for a hypothetical benchmark that excluded blue sample noise and checkerboard, AutoAugment and Patch Gaussian have $5 7 . 3 \%$ and $5 7 . 2 \%$ error respectively, little better than baseline of $5 7 . 4 \%$ . AugMix fairs only a little better with $5 4 . 3 \%$ error. Even DeepAugment+AugMix, which is in general a strong augmentation scheme, shows a big discrepancy in performance across different corruptions, improving single frequency noise by $31 \%$ , but inverse sparkles by only $2 . 3 \%$ . Generalization to dissimilar corruptions is thus both inconsistent and typically quite poor. Single benchmarks and aggregate corruption scores are likely not enough for careful evaluation of robustness to unknown corruptions, and it is important to study why proposed augmentations succeed to better understand how well they might generalize.
|
| 112 |
+
|
| 113 |
+
Table 1: Test error for several data augmentation methods on CIFAR-10-C and ImageNet-10- $\overline { { C } }$ , for which every method performs worse than on ImageNet-C or CIFAR-10-C. The increase in error differs significantly between different augmentation methods. Descriptions of the abbreviations and standard deviations for individual corruptions are in Appendix D. ‘Baseline’ refers to default augmentation only. Averages are over five runs for ImageNet and ten for CIFAR-10. \*ANT, DeepAugment(DA) and DeepAugment+AugMix $( \mathrm { D A } { + } \mathrm { A M } )$ use the pre-trained model provided with the associated papers and have different training parameters.
|
| 114 |
+
|
| 115 |
+
<table><tr><td rowspan="2">Aug</td><td rowspan="2">IN-C Err</td><td colspan="2">IN-C</td><td colspan="10">ImageNet-C Corruptions</td></tr><tr><td>Err</td><td>△IN-C</td><td>BSmpl Plsm</td><td></td><td>Ckbd</td><td>CSin</td><td>SFrq</td><td>Brwn</td><td>Prln</td><td>Sprk</td><td>ISprk</td><td>Rfrac</td></tr><tr><td>Baseline</td><td></td><td>58.1±0.4 57.7±0.2</td><td>-0.4</td><td>68.6</td><td>71.7</td><td>49.4</td><td>84.7</td><td>79.0</td><td>37.5</td><td>34.3</td><td>32.4</td><td>76.7</td><td>42.8</td></tr><tr><td>AA</td><td>55.0±0.2</td><td>55.7±0.3</td><td>+0.7</td><td>54.8</td><td>68.3</td><td>43.8</td><td>86.5</td><td>78.8</td><td>34.5</td><td>33.8</td><td>36.1</td><td>77.1</td><td>43.8</td></tr><tr><td>SIN</td><td>52.4±0.1</td><td>55.8±0.3</td><td>+3.4</td><td>54.7</td><td>69.8</td><td>52.8</td><td>79.6</td><td>69.2</td><td>37.8</td><td>35.3</td><td>37.0</td><td>77.3</td><td>44.1</td></tr><tr><td>AugMix</td><td>49.2 ±0.7</td><td>52.4±0.2</td><td>+3.2</td><td>43.2</td><td>72.2</td><td>46.1</td><td>76.3</td><td>67.4</td><td>38.8</td><td>32.4</td><td>32.3</td><td>76.4</td><td>39.2</td></tr><tr><td>PG</td><td>49.3 ±0.2</td><td>56.6±0.4</td><td>+7.3</td><td>60.3</td><td>74.1</td><td>48.5</td><td>82.1</td><td>76.7</td><td>38.9</td><td>34.6</td><td>32.1</td><td>76.5</td><td>42.1</td></tr><tr><td>ANT*</td><td>48.8</td><td>53.9</td><td>+5.1</td><td>35.8</td><td>75.5</td><td>56.9</td><td>76.4</td><td>63.7</td><td>41.0</td><td>35.2</td><td>35.0</td><td>76.1</td><td>43.3</td></tr><tr><td>DA*</td><td>46.6</td><td>51.0</td><td>+4.4</td><td>41.7</td><td>73.3</td><td>53.9</td><td>74.6</td><td>50.9</td><td>37.2</td><td>30.3</td><td>32.9</td><td>74.7</td><td>40.9</td></tr><tr><td>DA+AM*</td><td>41.0</td><td>48.3</td><td>+7.3</td><td>34.9</td><td>67.9</td><td>49.8</td><td>69.7</td><td>48.0</td><td>35.2</td><td>30.6</td><td>32.9</td><td>74.3</td><td>39.8</td></tr><tr><td></td><td>C10-C</td><td colspan="2">C10-C</td><td></td><td></td><td></td><td>CIFAR-10-C</td><td></td><td>Corruptions</td><td></td><td></td><td></td><td></td></tr><tr><td>Aug</td><td>Err</td><td>Err</td><td>△C10-C</td><td>BSmpl Brwn</td><td></td><td>Ckbd</td><td>CBlur]</td><td>ISprk</td><td>Line</td><td>P&T</td><td>Rppl</td><td>Sprk</td><td>TCA</td></tr><tr><td>Baseline</td><td></td><td>27.0±0.6 27.1 ±0.5</td><td>+0.1</td><td>42.9</td><td>27.2</td><td>23.3</td><td>11.8</td><td>43.3</td><td>26.2</td><td>11.3</td><td>21.6</td><td>21.0</td><td>42.9</td></tr><tr><td>AA</td><td>19.4±0.2</td><td>21.0±0.4</td><td>+1.6</td><td>17.7</td><td>17.5</td><td>17.6</td><td>9.5</td><td>40.4</td><td>23.6</td><td>10.7</td><td>23.5</td><td>17.5</td><td>31.8</td></tr><tr><td>AugMix</td><td>11.1±0.2</td><td>16.0±0.3</td><td>+5.9</td><td>9.8</td><td>27.8</td><td>13.4</td><td>5.9</td><td>30.3</td><td>18.0</td><td>8.3</td><td>12.1</td><td>15.5</td><td>19.2</td></tr><tr><td>PG</td><td>17.0±0.3</td><td>23.8±0.5</td><td>+6.8</td><td>9.0</td><td>30.1</td><td>21.6</td><td>12.8</td><td>35.4</td><td>20.6</td><td>8.8</td><td>21.5</td><td>19.3</td><td>59.5</td></tr></table>
|
| 116 |
+
|
| 117 |
+
Table 2: Comparison of errors on ImageNet-C and ImageNet-C for several robust models: WSL (weakly supervised ResNeXt-101-32x8d [21, 22]), EN (EfficientNet-B0 [32]), NS (Noisy Student EN-B0 [37]), ViT-S (Transformer [7, 34]), ResNeSt (ResNeSt-50d, [41]), using pre-trained models provided with the respective papers. These models do not rely primarily on data augmentation to be robust, and there is no consistent degradation on ImageNet-C. This is additional evidence that the worse performance in Table 1 does not occur because ImageNet-C is harder generally.
|
| 118 |
+
|
| 119 |
+
<table><tr><td></td><td>WSL</td><td>EN</td><td>NS</td><td>ViT-S</td><td>ResNeSt</td></tr><tr><td>IN-C Err</td><td>38.1</td><td>55.7</td><td>52.1</td><td>44.5</td><td>44.4</td></tr><tr><td>IN-CErr</td><td>39.2</td><td>53.4</td><td>52.2</td><td>41.1</td><td>41.6</td></tr></table>
|
| 120 |
+
|
| 121 |
+
It may be surprising that Stylized-ImageNet also degrades, given that it is intuitively very different from every corruption. While our measure works for augmentations, it does not cover all possible methods that improve robustness, such as more complicated algorithms like Stylized-ImageNet. Stylized-ImageNet degradation may be due to other reasons. For instance, it primarily augments texture information and may help mostly with higher frequency corruptions, as can be seen by its improvement on single frequency noise and cocentric sine waves; ImageNet-C has fewer such corruptions than ImageNet-C. ImageNet-C is thus a useful tool for understanding the interaction between training procedure and corruption distribution, even beyond perceptual similarity.
|
| 122 |
+
|
| 123 |
+
Nevertheless, note that it is the intuitively broader augmentation schemes, such as AutoAugment, AugMix, Stylized-ImageNet, and DeepAugment that generalize better to ImageNet-C. The importance of breadth has also been explored elsewhere[15, 38], but in the previous sections we have provided new quantitative evidence for why this may be true: broad augmentation schemes may be perceptually similar to more types of corruptions, and thus more likely to be perceptually similar to a new corruption. Moreover, AugMix and DeepAugment still improve over baseline on ImageNet-C, so there is reason to be optimistic that robustness to unknown corruptions is an achievable goal, as long as evaluation is treated carefully.
|
| 124 |
+
|
| 125 |
+
# 6 Discussion
|
| 126 |
+
|
| 127 |
+
Societal Impact. Our method for finding dissimilar corruptions could in principle be used to adversarially attack computer vision systems, such as those in content moderation or self-driving cars. Moreover, our ultimate goal is to help improve robustness in computer vision, and such robust systems may be used in detrimentals ways, for example in autonomous weapons or surveillance. However, we expect better evaluation of robust models to have definite benefits as well. In the long run, such an understanding should help defend against adversarial attacks. Our tools could also be used to challenge purportedly robust systems that are actually dangerously unreliable, such as an autonomous driving system that is robust to common corruption benchmarks yet fails to be robust to a dissimilar but important corruption, e.g., maybe glare. For instance, is the model employing data augmentation that is perceptually similar to the corruptions being used to report good robustness? Is the set of validation corruptions sufficiently broad that we would expect reasonable generalization to an unseen corruption? If we generate a dissimilar set of corruptions using the procedure we develop here, does the model still perform well on the new corruptions? Quantitative ways to answer these questions may provide a means to verify the robust performance of a model before it encounters and potentially fails on a critical, previously unseen corruption.
|
| 128 |
+
|
| 129 |
+
Corruption robustness as a secondary learning task. We have provided evidence that data augmentation may not generalize well beyond a given corruption benchmark. To explore this further, consider an analogy to a regular learning problem. We may think of corruption robustness in the presence of data augmentation as a sort of secondary task layered on the primary classification task: the set of data augmentations is the training set, the set of corruptions is the test set, and the goal is to achieve invariance of the underlying primary task. In this language, the ‘datasets’ involved are quite small: ImageNet-C has only 15 corruption types, and several augmentation schemes composite only around 10 basic transforms. In this case, standard machine learning practice would dictate a training/validation/test set split; it is only the size and breadth of modern vision datasets that has allowed this to be neglected in certain cases recently. But the effective dataset size of a corruption robustness problem is tiny, so having a held-out test set seems necessary. To emphasize, this is not a test set of the underlying classification task, for which generalization has been studied by Recht et al. [23, 24]. Instead, it is a test set of corruption transforms themselves. This means there would be validation/test split of dissimilar transformations, both applied to the ImageNet validation set6.
|
| 130 |
+
|
| 131 |
+
Real-world corruption robustness. Recently, Hendrycks et al. [15] and Taori et al. [33] study how performance on corruption transforms generalizes to real-world corruptions and come to conflicting conclusions. Though we do not study real-world corruptions, we have proposed a mechanism that may explain the conflict: performance will generalize between transforms and real-world corruptions if they are perceptually similar, but will likely not if they are dissimilar. Since Hendrycks et al. [15] and Taori et al. [33] draw on different real-world and synthetic corruptions, it may be that the perceptual similarity between datasets differs in the two analyses. This also suggests a way to find additional corruption transforms that correlate with real-world corruptions: transforms should be sought that have maximal perceptual similarity with real-world corruptions.
|
| 132 |
+
|
| 133 |
+
Generalization does occur. We have encountered two features of data augmentation that may explain why it can be such a powerful tool for corruption robustness, despite the issues discussed above. First, within a class of perceptually similar transforms, generalization does occur. This means each simple data augmentation may confer robustness to many complicated corruptions, as long as they share perceptual similarity. Second, dissimilar augmentations in an augmentation scheme often causes little to no loss in performance, as long as a similar augmentation is also present. We briefly study this in Appendix A by demonstrating that adding many dissimilar augmentations increases error much less than adding a few similar augmentations decreases it. These two features suggest broad augmentation schemes with many dissimilar augmentations may confer robustness to a large class of unknown corruptions. More generally, we think data augmentation is a promising direction of study for corruption robustness, as long as significant care is taken in evaluation.
|
| 134 |
+
|
| 135 |
+
# Acknowledgements and Funding Disclosure
|
| 136 |
+
|
| 137 |
+
Eric Mintun would like to thank Matthew Leavitt, Sho Yaida, and Achal Dave for discussions during the development of this work. Additionally, he would like to acknowledge the Facebook AI residency program for providing excellent training and support in AI research. The authors received no external funding and have no competing interests.
|
| 138 |
+
|
| 139 |
+
References
|
| 140 |
+
[1] Bruna, J. and Mallat, S. Invariant scattering convolution networks. IEEE transactions on pattern analysis and machine intelligence, 35(8):1872–1886, 2013.
|
| 141 |
+
[2] Cubuk, E. D., Zoph, B., Mané, D., Vasudevan, V., and Le, Q. V. AutoAugment: Learning augmentation strategies from data. In CVPR, 2019.
|
| 142 |
+
[3] Dao, T., Gu, A., Ratner, A. J., Smith, V., De Sa, C., and Ré, C. A kernel theory of modern data augmentation. Proceedings of machine learning research, 97:1528, 2019.
|
| 143 |
+
[4] Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., and Fei-Fei, L. ImageNet: A large-scale hierarchical image database. In CVPR, 2009.
|
| 144 |
+
[5] Ding, K., Ma, K., Wang, S., and Simoncelli, E. P. Image quality assessment: Unifying structure and texture similarity. IEEE transactions on pattern analysis and machine intelligence, 2020.
|
| 145 |
+
[6] Dodge, S. and Karam, L. A study and comparison of human and deep learning recognition performance under visual distortions. In ICCCN, 2017.
|
| 146 |
+
[7] Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., and Houlsby, N. An image is worth 16x16 words: Transformers for image recognition at scale. In ICLR, 2021.
|
| 147 |
+
[8] Geirhos, R., Temme, C. R., Rauber, J., Schütt, H. H., Bethge, M., and Wichmann, F. A. Generalisation in humans and deep neural networks. In NeurIPS, 2018.
|
| 148 |
+
[9] Geirhos, R., Rubisch, P., Michaelis, C., Bethge, M., Wichmann, F. A., and Brendel, W. ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness. In ICLR, 2019.
|
| 149 |
+
[10] Gladman, S. J. Filterpedia, 2016. URL https://github.com/FlexMonkey/Filterpedia.
|
| 150 |
+
[11] Goyal, P., Dollár, P., Girshick, R., Noordhuis, P., Wesolowski, L., Kyrola, A., Tulloch, A., Jia, Y., and He, K. Accurate, large minibatch SGD: Training ImageNet in 1 hour. arXiv preprint arXiv:1706.02677, 2017.
|
| 151 |
+
[12] He, K., Zhang, X., Ren, S., and Sun, J. Deep residual learning for image recognition. In CVPR, 2016.
|
| 152 |
+
[13] Hendrycks, D. and Dietterich, T. Benchmarking neural network robustness to common corruptions and perturbations. In ICLR, 2018.
|
| 153 |
+
[14] Hendrycks, D., Mu, N., Cubuk, E. D., Zoph, B., Gilmer, J., and Lakshminarayanan, B. AugMix: A simple data processing method to improve robustness and uncertainty. In ICLR, 2019.
|
| 154 |
+
[15] Hendrycks, D., Basart, S., Mu, N., Kadavath, S., Wang, F., Dorundo, E., Desai, R., Zhu, T., Parajuli, S., Guo, M., Song, D., Steinhardt, J., and Gilmer, J. The many faces of robustness: A critical analysis of out-of-distribution generalization. arXiv preprint arXiv:2006.16241, 2020.
|
| 155 |
+
[16] Huxtable, J. JH Labs Java Image Processing, 2006. URL http://www.jhlabs.com/ip/ filters/.
|
| 156 |
+
[17] Krizhevsky, A., Hinton, G., et al. Learning multiple layers of features from tiny images. 2009.
|
| 157 |
+
[18] Lee, J., Won, T., and Hong, K. Compounding the performance improvements of assembled techniques in a convolutional neural network. arXiv preprint arXiv:2001.06268, 2020.
|
| 158 |
+
[19] Liang, J., Hu, D., and Feng, J. Do we really need to access the source data? source hypothesis transfer for unsupervised domain adaptation. In International Conference on Machine Learning, pp. 6028–6039. PMLR, 2020.
|
| 159 |
+
[20] Lopes, R. G., Yin, D., Poole, B., Gilmer, J., and Cubuk, E. D. Improving robustness without sacrificing accuracy with Patch Gaussian augmentation. arXiv preprint arXiv:1906.02611, 2019.
|
| 160 |
+
[21] Mahajan, D., Girshick, R., Ramanathan, V., He, K., Paluri, M., Li, Y., Bharambe, A., and van der Maaten, L. Exploring the limits of weakly supervised pretraining. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 181–196, 2018.
|
| 161 |
+
[22] Orhan, A. E. Robustness properties of Facebook’s ResNeXt WSL models. arXiv preprint arXiv:1907.07640, 2019.
|
| 162 |
+
[23] Recht, B., Roelofs, R., Schmidt, L., and Shankar, V. Do CIFAR-10 classifiers generalize to CIFAR-10? arXiv preprint arXiv:1806.00451, 2018.
|
| 163 |
+
[24] Recht, B., Roelofs, R., Schmidt, L., and Shankar, V. Do ImageNet classifiers generalize to ImageNet? In ICML, 2019.
|
| 164 |
+
[25] Rusak, E., Schott, L., Zimmermann, R., Bitterwolf, J., Bringmann, O., Bethge, M., and Brendel, W. A simple way to make neural networks robust against diverse image corruptions. arXiv preprint arXiv:2001.06057, 2020.
|
| 165 |
+
[26] Schneider, S., Rusak, E., Eck, L., Bringmann, O., Brendel, W., and Bethge, M. Improving robustness against common corruptions by covariate shift adaptation. In NeurIPS, 2020.
|
| 166 |
+
[27] Shankar, V., Dave, A., Roelofs, R., Ramanan, D., Recht, B., and Schmidt, L. Do image classifiers generalize across time? arXiv preprint arXiv:1906.02168, 2019.
|
| 167 |
+
[28] Simard, P. Y., LeCun, Y. A., Denker, J. S., and Victorri, B. Transformation invariance in pattern recognition—tangent distance and tangent propagation. In Neural networks: tricks of the trade, pp. 239–274. Springer, 1998.
|
| 168 |
+
[29] Simonyan, K. and Zisserman, A. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
|
| 169 |
+
[30] Sun, Y., Wang, X., Liu, Z., Miller, J., Efros, A., and Hardt, M. Test-time training with selfsupervision for generalization under distribution shifts. In International Conference on Machine Learning, pp. 9229–9248. PMLR, 2020.
|
| 170 |
+
[31] Szegedy, C., Zaremba, W., Sutskever, I., Bruna, J., Erhan, D., Goodfellow, I., and Fergus, R. Intriguing properties of neural networks. In ICLR, 2014.
|
| 171 |
+
[32] Tan, M. and Le, Q. EfficientNet: Rethinking model scaling for convolutional neural networks. In ICML, 2019.
|
| 172 |
+
[33] Taori, R., Dave, A., Shankar, V., Carlini, N., Recht, B., and Schmidt, L. Measuring robustness to natural distribution shifts in image classification. In NeurIPS, 2020.
|
| 173 |
+
[34] Touvron, H., Cord, M., Douze, M., Massa, F., Sablayrolles, A., and Jégou, H. Training dataefficient image transformers & distillation through attention. arXiv preprint arXiv:2012.12877, 2020.
|
| 174 |
+
[35] Wang, D., Shelhamer, E., Liu, S., Olshausen, B., and Darrell, T. Tent: Fully test-time adaptation by entropy minimization. ICLR, 2021.
|
| 175 |
+
[36] Wu, S., Zhang, H. R., Valiant, G., and Ré, C. On the generalization effects of linear transformations in data augmentation. In ICML, 2020.
|
| 176 |
+
[37] Xie, Q., Luong, M.-T., Hovy, E., and Le, Q. V. Self-training with Noisy Student improves imagenet classification. In CVPR, 2020.
|
| 177 |
+
[38] Yin, D., Lopes, R. G., Shlens, J., Cubuk, E. D., and Gilmer, J. A Fourier perspective on model robustness in computer vision. In NeurIPS, 2019.
|
| 178 |
+
[39] Zagoruyko, S. and Komodakis, N. Wide residual networks. In BMVC, 2016.
|
| 179 |
+
[40] Zhang, H., Cisse, M., Dauphin, Y. N., and Lopez-Paz, D. mixup: Beyond empirical risk minimization. In ICLR, 2018.
|
| 180 |
+
[41] Zhang, H., Wu, C., Zhang, Z., Zhu, Y., Zhang, Z., Lin, H., Sun, Y., He, T., Muller, J., Manmatha, R., Li, M., and Smola, A. ResNeSt: Split-Attention Networks. arXiv preprint arXiv:2004.08955, 2020.
|
| 181 |
+
[42] Zhang, R., Isola, P., Efros, A. A., Shechtman, E., and Wang, O. The unreasonable effectiveness of deep features as a perceptual metric. In CVPR, 2018.
|
| 182 |
+
[43] Zilly, J., Zilly, H., Richter, O., Wattenhofer, R., Censi, A., and Frazzoli, E. The Frechet Distance of training and test distribution predicts the generalization gap. OpenReview preprint, 2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text",
|
| 4 |
+
"text": "On Interaction Between Augmentations and Corruptions in Natural Corruption Robustness ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
215,
|
| 8 |
+
122,
|
| 9 |
+
784,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Eric Mintun∗ Facebook AI Research mintun@fb.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
220,
|
| 19 |
+
226,
|
| 20 |
+
370,
|
| 21 |
+
267
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Alexander Kirillov Facebook AI Research akirillov@fb.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
424,
|
| 30 |
+
226,
|
| 31 |
+
573,
|
| 32 |
+
267
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Saining Xie Facebook AI Research s9xie@fb.com ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
627,
|
| 41 |
+
226,
|
| 42 |
+
777,
|
| 43 |
+
267
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Abstract ",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
462,
|
| 53 |
+
304,
|
| 54 |
+
535,
|
| 55 |
+
320
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Invariance to a broad array of image corruptions, such as warping, noise, or color shifts, is an important aspect of building robust models in computer vision. Recently, several new data augmentations have been proposed that significantly improve performance on ImageNet-C, a benchmark of such corruptions. However, there is still a lack of basic understanding on the relationship between data augmentations and test-time corruptions. To this end, we develop a feature space for image transforms, and then use a new measure in this space between augmentations and corruptions called the Minimal Sample Distance to demonstrate a strong correlation between similarity and performance. We then investigate recent data augmentations and observe a significant degradation in corruption robustness when the test-time corruptions are sampled to be perceptually dissimilar from ImageNet-C in this feature space. Our results suggest that test error can be improved by training on perceptually similar augmentations, and data augmentations may not generalize well beyond the existing benchmark. We hope our results and tools will allow for more robust progress towards improving robustness to image corruptions. We provide code at https://github.com/facebookresearch/augmentation-corruption. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
233,
|
| 64 |
+
335,
|
| 65 |
+
766,
|
| 66 |
+
556
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 Introduction ",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
582,
|
| 77 |
+
310,
|
| 78 |
+
599
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Robustness to distribution shift, i.e. when the train and test distributions differ, is an important feature of practical machine learning models. Among many forms of distribution shift, one particularly relevant category for computer vision are image corruptions. For example, test data may come from sources that differ from the training set in terms of lighting, camera quality, or other features. Postprocessing transforms, such as photo touch-up, image filters, or compression effects are commonplace in real-world data. Models developed using clean, undistorted inputs typically perform dramatically worse when confronted with these sorts of image corruptions [8, 13]. The subject of corruption robustness has a long history in computer vision [1, 6, 28] and recently has been studied actively with the release of benchmark datasets such as ImageNet-C [13]. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
613,
|
| 88 |
+
825,
|
| 89 |
+
739
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "One particular property of image corruptions is that they are low-level distortions in nature. Corruptions are transformations of an image that affect structural information such as colors, textures, or geometry [5] and are typically free of high-level semantics. Therefore, it is natural to expect that data augmentation techniques, which expand the training set with random low-level transformations, can help learn robust models. Indeed, data augmentation has become a central technique in several recent methods [14, 20, 25] that achieve large improvements on ImageNet-C and related benchmarks. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
744,
|
| 99 |
+
825,
|
| 100 |
+
829
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "One caveat for data augmentation based approaches is the test corruptions are expected to be unknown at training time. If the corruptions are known, they may simply be applied to the training set as data augmentations to trivially adapt to the test distribution. Instead, an ideal robust model needs to be robust to any valid corruption, including ones unseen in any previous benchmark. Of course, in practice the robustness of a model can only be evaluated approximately by measuring its corruption error on a representative corruption benchmark. To avoid trivial adaptation to the benchmark, recent works manually exclude test corruptions from the training augmentations. However, with a toy experiment presented in Figure 1, we argue that this strategy alone might not be enough and that visually similar augmentation outputs and test corruptions can lead to significant benchmark improvements even if the exact corruption transformations are excluded. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
176,
|
| 109 |
+
835,
|
| 110 |
+
823,
|
| 111 |
+
877
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "image",
|
| 117 |
+
"img_path": "images/fe090e63eeb377f94bef1f6849361fcdef3729355d87e25cbd42014e40b03afb.jpg",
|
| 118 |
+
"image_caption": [
|
| 119 |
+
"Figure 1: A toy experiment. We train multiple models on CIFAR-10 [17] using different augmentation schemes. Each scheme is based on a single basic image transformation type and enhanced by overlaying random instantiations of the transformation for each input image following Hendrycks et al. [14]. We compare these models on the CIFAR-10 test set corrupted by the motion blur, a corruption used in the ImageNet-C corruption benchmark [13]. None of the augmentation schemes contains motion blur; however, the models trained with geometric-based augmentations significantly outperform the baseline model trained on the clean images while color-based augmentations show no gains. We note the geometric augmentations can produce a result visually similar to a blur by overlaying copies of shifted images3. "
|
| 120 |
+
],
|
| 121 |
+
"image_footnote": [],
|
| 122 |
+
"bbox": [
|
| 123 |
+
178,
|
| 124 |
+
87,
|
| 125 |
+
818,
|
| 126 |
+
242
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
398,
|
| 136 |
+
825,
|
| 137 |
+
496
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "This observation raises two important questions. One, how exactly does the similarity between train time augmentations and corruptions of the test set affect the error? And two, if the gains are due to the similarity, they may not translate into better robustness to other possible corruptions, so how well will data augmentations generalize beyond a given benchmark? In this work, we take a step towards answering these questions, with the goal of better understanding the relationship between data augmentation and test-time corruptions. Using a feature space on image transforms and a new measure called Minimal Sample Distance (MSD) on this space, we are able to quantify the distance between augmentation schemes and classes of corruption transformation. With our approach, we empirically show an intuitive yet surprisingly overlooked finding: ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
502,
|
| 147 |
+
825,
|
| 148 |
+
627
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "Augmentation-corruption perceptual similarity is a strong predictor of corruption error. ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
173,
|
| 157 |
+
640,
|
| 158 |
+
745,
|
| 159 |
+
655
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "Based on this finding, we perform additional experiments to show that data augmentation aids corruption robustness by increasing perceptual similarity between a (possibly small) fraction of the training data and the test set. To further support our claims, we introduce a set of new corruptions, called CIFAR/ImageNet-C, to test the degree to which common data augmentation methods generalize from the original CIFAR/ImageNet-C. To choose these corruptions, we expand the set of natural corruptions and sample new corruptions that are far away from CIFAR/ImageNet-C in our feature space for measuring perceptual similarity. We then demonstrate that augmentation schemes designed specifically to improve robustness show significantly degraded performance on CIFAR/ImageNet-C. Some augmentation schemes still show some improvement over baseline, which suggests meaningful progress towards general corruption robustness is being made, but different augmentation schemes exhibit different degrees of generalization capability. As an implication, caution is needed for fair robustness evaluations when additional data augmentation is introduced. ",
|
| 166 |
+
"bbox": [
|
| 167 |
+
174,
|
| 168 |
+
667,
|
| 169 |
+
825,
|
| 170 |
+
833
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "These results suggest a major challenge that is often overlooked in the study of corruption robustness: generalization is often poor. Since perceptual similarity can predict performance, for any fixed finite set of test corruptions, improvements on that set may generalize poorly to dissimilar corruptions. We hope that these results, tools, and benchmarks will help researchers better understand why a given augmentation scheme has good corruption error and whether it should be expected to generalize to dissimilar corruptions. On the positive side, our experiments show that generalization does emerge among perceptually similar transforms, and that only a small fraction of sampled augmentations need to be similar to a given corruption. Section 6 discusses these points in more depth. ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
178,
|
| 179 |
+
840,
|
| 180 |
+
821,
|
| 181 |
+
882
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "",
|
| 188 |
+
"bbox": [
|
| 189 |
+
174,
|
| 190 |
+
92,
|
| 191 |
+
825,
|
| 192 |
+
161
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 2
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "2 Related Work ",
|
| 199 |
+
"text_level": 1,
|
| 200 |
+
"bbox": [
|
| 201 |
+
174,
|
| 202 |
+
180,
|
| 203 |
+
321,
|
| 204 |
+
196
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 2
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "Corruption robustness benchmarks and analysis. ImageNet-C [13] is a corruption dataset often used as a benchmark in robustness studies. Other corruption datasets [15, 27] collect corrupted images from real world sources and thus have a mixture of semantic distribution shifts and perceptual transforms. Corruption robustness differs from adversarial robustness [31], which seeks invariance to small, worst case distortions. One notable difference is that improving corruption robustness often slightly improves regular test error, instead of harming it. Yin et al. [38] analyzes corruption robustness in the context of transforms’ frequency spectra; this can also influence corruption error independently from perceptual similarity. Here we study the relationship between augmentations and corruptions more generically, and explore the relationship between perceptual similarity and generalization to new corruptions. Dao et al. [3] and Wu et al. [36] study the theory of data augmentation for regular test error. Hendrycks et al. [15] and Taori et al. [33] study how the performance on synthetic corruption transforms generalizes to performance on corruption datasets collected from the real world. Here we do not address this issue directly but touch upon it in the discussion. ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
174,
|
| 213 |
+
212,
|
| 214 |
+
825,
|
| 215 |
+
391
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 2
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "Improving corruption robustness. Data augmentations designed to improve robustness include AugMix [14], which composites common image transforms, Patch Gaussian [20], which applies Gaussian noise in square patches, and ANT [25], which augments with an adversarially learned noise distribution. AutoAugment [2] learns augmentation policies that optimize clean error but has since been shown to improve corruption error [38]. Mixup [40] can improve robustness [18], but its label augmentation complicates the dependence on image augmentation. Stylized-ImageNet [9], which applies style transfer to input images, can also improve robustness. DeepAugment [15], which applies augmentations to a deep representation of an image, can also give large improvements in robustness. Noisy Student [37] and Assemble-ResNet [18] combine data augmentation with new models and training procedures and greatly enhance corruption robustness. In addition to training-time methods, there are approaches that adapt to unseen corruptions at test time, e.g. using self-supervised tasks [30], entropy minimization [35], or with a focus on privacy and data transmission efficiency [19]. While we do not directly address these approaches here, our methods potentially provide tools that could be used to measure shifting distributions in an online regime. ",
|
| 222 |
+
"bbox": [
|
| 223 |
+
174,
|
| 224 |
+
407,
|
| 225 |
+
825,
|
| 226 |
+
601
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 2
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "3 Perceptual similarity for augmentations and corruptions ",
|
| 233 |
+
"text_level": 1,
|
| 234 |
+
"bbox": [
|
| 235 |
+
176,
|
| 236 |
+
619,
|
| 237 |
+
676,
|
| 238 |
+
637
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "First, we study the importance of similarity between augmentations and corruptions for improving performance on those corruptions. To do so, we need a means to compare augmentations and corruptions. Both types of transforms are perceptual in nature, meaning they affect low-level image structure while leaving high-level semantic information intact, so we expect a good distance to be a measure of perceptual similarity. Then, we need to find the appropriate measure of distance between the augmentation and corruption distributions. We will argue below that distributional equivalence is not appropriate in the context of corruption robustness, and instead introduce the minimal sample distance, a simple measure that does capture a relevant sense of distribution distance. ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
174,
|
| 247 |
+
651,
|
| 248 |
+
825,
|
| 249 |
+
762
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "Measuring similarity between perceptual transforms. We define a perceptual transform as a transform that acts on low-level image structure but not high-level semantic information. As such, we expect two transforms should be similar if their actions on this low-level structure are similar, independent of algorithmic or per-pixel differences between them. A closely related, well-studied problem is the perceptual similarity between images. A common approach is to train a neural network on a classification task and use intermediate layers as a feature space for measuring distances [42]. We adapt this idea to obtain a feature space for measuring distances between perceptual transforms. ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
174,
|
| 258 |
+
777,
|
| 259 |
+
825,
|
| 260 |
+
875
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 2
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "text",
|
| 266 |
+
"text": "We start with a feature extractor for images, which we call $\\hat { f } ( x )$ . To train the model from which we will extract features, we assume access to a dataset $\\mathbb { D }$ of image label pairs $( x , y )$ associated with a classification task. The model should be trained using only default data augmentation for the task in question so that the feature extractor is independent of the transforms we will use it to study. In order to obtain a very simple measure, we use just the last hidden layer of the network as a feature space. ",
|
| 267 |
+
"bbox": [
|
| 268 |
+
174,
|
| 269 |
+
882,
|
| 270 |
+
821,
|
| 271 |
+
911
|
| 272 |
+
],
|
| 273 |
+
"page_idx": 2
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"type": "image",
|
| 277 |
+
"img_path": "images/8506044a99d204381d92eb25f104590e102c5d67dd35b62b1721d2730c035e11.jpg",
|
| 278 |
+
"image_caption": [
|
| 279 |
+
"Figure 2: (a) Schematic comparison of MMD to MSD. MMD measures the distance between distribution centers and is only small if the augmentation overlaps with a corruption. MSD measures to the nearest sampled point in the set of samples (marked by a star) and is small even for broad distributions that overlap with multiple corruptions. (b) We test on images corrupted with impulse noise, and train on images augmented with a mixture of impulse noise and motion blur. As the mixing fraction of impulse noise decreases, MMD between the augmentation and corruption grows linearly while MSD and error stay low until nearly $0 \\%$ mixing fraction. "
|
| 280 |
+
],
|
| 281 |
+
"image_footnote": [],
|
| 282 |
+
"bbox": [
|
| 283 |
+
305,
|
| 284 |
+
88,
|
| 285 |
+
687,
|
| 286 |
+
243
|
| 287 |
+
],
|
| 288 |
+
"page_idx": 3
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"type": "text",
|
| 292 |
+
"text": "",
|
| 293 |
+
"bbox": [
|
| 294 |
+
174,
|
| 295 |
+
366,
|
| 296 |
+
823,
|
| 297 |
+
409
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 3
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "A perceptual transform $t ( x )$ may be encoded by applying it to all images in $\\mathbb { D }$ , encoding the transformed images, and averaging the features over these images. For efficiency, we find it sufficient to average over only a randomly sampled subset of images $\\mathbb { D } _ { S }$ in $\\mathbb { D }$ . In Section 4.1 we discuss the size of $\\mathbb { D } _ { S }$ . The random choice of images is a property of the feature extractor, and so remains fixed when encoding multiple transforms. This reduces variance when computing distances between two transforms. The transform feature extractor is given by $f ( t ) = \\mathbb { E } _ { x \\in \\mathbb { D } _ { S } } [ \\hat { f } ( t ( x ) ) - \\hat { f } ( x ) ]$ . The perceptual similarity between an augmentation and a corruption can be taken as the $L _ { 2 }$ distance on this feature space $f$ . ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
173,
|
| 306 |
+
414,
|
| 307 |
+
825,
|
| 308 |
+
529
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 3
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "Minimal sample distance. We now seek to compare the distribution of an augmentation scheme $p _ { a }$ to a distribution of a corruption benchmark $p _ { c }$ . If the goal was to optimize error on a known corruption distribution, exact equivalence of distributions is the correct measure to minimize. But since the goal is robustness to general, unknown corruption distributions, a good augmentation scheme should be equivalent to no single corruption distribution. ",
|
| 315 |
+
"bbox": [
|
| 316 |
+
174,
|
| 317 |
+
547,
|
| 318 |
+
825,
|
| 319 |
+
617
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 3
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "To illustrate this behavior, consider a toy problem where we have access to the corruption transforms at training time. A very rough, necessary-but-insufficient measure of distributional similarity is $d _ { \\mathrm { M M D } } ( p _ { a } , p _ { c } ) = | | \\mathbb { E } _ { a \\sim p _ { a } } [ f ( a ) ] - \\mathbb { E } _ { c \\sim p _ { c } } [ f ( c ) ] | |$ . This is the maximal mean discrepancy on a fixed, finite feature space, so for brevity we will refer to it as MMD. We still employ the featurization $f ( t )$ , since we are comparing transforms and not images, unlike in typical domain adaptation. Consider two corruption distributions, here impulse noise and motion blur, and an augmentation scheme that is a mixture of the two corruption distributions. Figure 2b shows MMD between the augmentation and impulse noise corruption scales linearly with mixing fraction, but error on impulse noise remains low until the mixing fraction is almost $0 \\%$ impulse noise. This implies distributional similarity is a poor predictor of corruption error. Indeed, low $d _ { \\mathrm { M M D } }$ with any one corruption distribution suggests the augmentation overlaps it significantly, so the augmentation is unlikely to aid dissimilar corruptions. ",
|
| 326 |
+
"bbox": [
|
| 327 |
+
174,
|
| 328 |
+
623,
|
| 329 |
+
825,
|
| 330 |
+
776
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 3
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "Our expectation for the behavior of the error in Figure 2b is that networks can often successfully memorize rare examples seen during training, so that only a very small fraction of sampled images need impulse noise augmentations to perform well on impulse noise corruptions. An appropriate distance should then measure how close augmentation samples can come to the corruption distribution, even if the density of those samples is low. We thus propose a very simple measure called minimal sample distance (MSD), which is just the perceptual similarity between an average corruption and the closest augmentation from a finite set of samples A $\\sim p _ { a }$ : ",
|
| 337 |
+
"bbox": [
|
| 338 |
+
174,
|
| 339 |
+
781,
|
| 340 |
+
825,
|
| 341 |
+
880
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 3
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "equation",
|
| 347 |
+
"img_path": "images/0686254e09951ecefb074f2292b6e02d1d9d2d7b7574d73c7b445d361a4916a0.jpg",
|
| 348 |
+
"text": "$$\nd _ { \\mathrm { M S D } } ( p _ { a } , p _ { c } ) = \\operatorname* { m i n } _ { a \\in \\mathbb { A } \\sim p _ { a } } \\left| | f ( a ) - \\mathbb { E } _ { c \\sim p _ { c } } [ f ( c ) ] | \\right| .\n$$",
|
| 349 |
+
"text_format": "latex",
|
| 350 |
+
"bbox": [
|
| 351 |
+
338,
|
| 352 |
+
890,
|
| 353 |
+
658,
|
| 354 |
+
915
|
| 355 |
+
],
|
| 356 |
+
"page_idx": 3
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"type": "image",
|
| 360 |
+
"img_path": "images/33d3208269f30287d53a25941c7a175d6582d601676ec3c3f6f7abd703715409.jpg",
|
| 361 |
+
"image_caption": [
|
| 362 |
+
"18 7.012 6.0Figure 3: Example relationships between MSD and corruption error. $\\rho$ is the Spearman rank 16 200.2 0.4 0.6 0.8 0.4 0.8 1.2 1.612 0.10 0.14 0.18 0.22correlation. MSD correlates well with error across all four categories of corruption in CIFAR-10-C. 14 16 Minimal Sample DistanceFor completeness, we also show brightness, a negative example where correlation is poor. "
|
| 363 |
+
],
|
| 364 |
+
"image_footnote": [],
|
| 365 |
+
"bbox": [
|
| 366 |
+
181,
|
| 367 |
+
92,
|
| 368 |
+
816,
|
| 369 |
+
193
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 4
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "0.2 0.4 0.6 0.8 0.4 0.8 1.2 1.6 0.10 0.14 0.18 0.22A schematic comparison of MMD and MSD is shown in Figure 2a. While both MMD and MSD Minimal Sample Distanceare small for an augmentation scheme that is distributionally similar to a corruption distribution, only MSD remains small for a broad distribution that occasionally produces samples near multiple corruption distributions. Figure 2b shows MSD, like test error, is small for most mixing fractions in the toy problem described above. Note the measure’s need to accommodate robustness to general, unknown corruption distributions has led it to be asymmetric, so it differs from more formal distance metrics that may be used to predict generalization error, such as the Wasserstein distance [43]. ",
|
| 376 |
+
"bbox": [
|
| 377 |
+
173,
|
| 378 |
+
256,
|
| 379 |
+
825,
|
| 380 |
+
353
|
| 381 |
+
],
|
| 382 |
+
"page_idx": 4
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"type": "text",
|
| 386 |
+
"text": "4 Perceptual similarity is predictive of corruption error ",
|
| 387 |
+
"text_level": 1,
|
| 388 |
+
"bbox": [
|
| 389 |
+
174,
|
| 390 |
+
373,
|
| 391 |
+
650,
|
| 392 |
+
392
|
| 393 |
+
],
|
| 394 |
+
"page_idx": 4
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"type": "text",
|
| 398 |
+
"text": "We are now equipped to measure how important this augmentation-corruption similarity is for corruption error. For a large number of augmentation schemes, we will measure both the MSD to a corruption distribution and the corruption error of a model trained with that scheme. We will find a correlation between MSD and corruption error, which provides evidence that networks generalize across perceptually similar transforms. Then, we will calculate MSD for augmentation schemes in the literature that have been shown to improve error on corruption benchmarks. We will find a correlation between MSD and error here as well, suggesting their success is in part explained by their perceptual similarity to the benchmark. This implies there may be a risk of poor generalization to different benchmarks, since we would not expect this improvement to transfer to a dissimilar corruption. ",
|
| 399 |
+
"bbox": [
|
| 400 |
+
174,
|
| 401 |
+
406,
|
| 402 |
+
825,
|
| 403 |
+
531
|
| 404 |
+
],
|
| 405 |
+
"page_idx": 4
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"type": "text",
|
| 409 |
+
"text": "4.1 Experimental setup ",
|
| 410 |
+
"text_level": 1,
|
| 411 |
+
"bbox": [
|
| 412 |
+
174,
|
| 413 |
+
549,
|
| 414 |
+
349,
|
| 415 |
+
563
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 4
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "Corruptions. We use CIFAR-10-C [13], which is a common benchmark used for studying corruption robustness. It consists of 15 corruptions, each further split into five different severities of transformation, applied to the CIFAR-10 test set. The 15 corruptions fall into four categories: per-pixel noise, blurring, synthetic weather effects, and digital transforms. We treat each corruption at each severity as a separate distribution for the sake of calculating MSD and error; however, for simplicity we average errors and distances over severity to present a single result per corruption. ",
|
| 422 |
+
"bbox": [
|
| 423 |
+
174,
|
| 424 |
+
574,
|
| 425 |
+
825,
|
| 426 |
+
659
|
| 427 |
+
],
|
| 428 |
+
"page_idx": 4
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"type": "text",
|
| 432 |
+
"text": "Space of augmentation schemes. To build each sampled augmentation transform, we will composite a set of base augmentations. For base augmentations, we consider the nine common image transforms used in Hendrycks et al. [14]. There are five geometric transforms and four color transforms. By taking all subsets of these base augmentations, we obtain $2 ^ { 9 } = 5 1 2$ unique augmentation schemes, collectively called the augmentation powerset. Also following Hendrycks et al. [14], we composite transforms in two ways: by applying one after another, or by applying them to copies of the image and then linearly superimposing the results. Examples of both augmentations and corruptions are provided in Appendix F. ",
|
| 433 |
+
"bbox": [
|
| 434 |
+
174,
|
| 435 |
+
674,
|
| 436 |
+
825,
|
| 437 |
+
785
|
| 438 |
+
],
|
| 439 |
+
"page_idx": 4
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"type": "text",
|
| 443 |
+
"text": "Computing similarity and corruption error. A WideResNet-40-2 [39] model is pre-trained on CIFAR-10 using default augmentation and training parameters from Hendrycks et al. [14]. WideResNet is a common baseline model used when studying data augmentation on CIFAR-10 [2, 14, 40]. Its last hidden layer is used as the feature space. For MSD, we average over 100 images, 100 corruptions, and minimize over $1 0 0 \\mathrm { k }$ augmentations. With this number of corruptions and images, we find that the average standard deviation in distance between an augmentation and the averaged corruptions is roughly five percent of the mean, which is smaller than the typical feature in our results found below, given in Figure 3. We also find that using VGG [29] instead of WideResNet for the feature extractor ",
|
| 444 |
+
"bbox": [
|
| 445 |
+
174,
|
| 446 |
+
800,
|
| 447 |
+
825,
|
| 448 |
+
911
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 4
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "image",
|
| 454 |
+
"img_path": "images/754ebcaed957914f40b406c3c5651bb1eefe20c091f79274177833423931217a.jpg",
|
| 455 |
+
"image_caption": [
|
| 456 |
+
"25 w/ solarize w/ x-translationFigure 4: Example relationships between base augmentations and corruptions. Including solarize 10reduces MSD on the perceptually similar impulse noise corruption. Including $x$ translation reduces 20MSD on the perceptually similar motion blur corruption. MSD is not decreased for dissimilar Minimum Sample D augmentation-corruption pairs. "
|
| 457 |
+
],
|
| 458 |
+
"image_footnote": [],
|
| 459 |
+
"bbox": [
|
| 460 |
+
183,
|
| 461 |
+
92,
|
| 462 |
+
813,
|
| 463 |
+
227
|
| 464 |
+
],
|
| 465 |
+
"page_idx": 5
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "text",
|
| 469 |
+
"text": "10gives similar results. Details for these calculations are in Appendix C. Images for calculating MSD are from the training set and do not have default training augmentation. A WideResNet-40-2 with the 0.2 0.6 1.0 1.4 0.2 0.6 1.0 1.4same training parameters is used for corruption error evaluation. ",
|
| 470 |
+
"bbox": [
|
| 471 |
+
176,
|
| 472 |
+
305,
|
| 473 |
+
821,
|
| 474 |
+
347
|
| 475 |
+
],
|
| 476 |
+
"page_idx": 5
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"type": "text",
|
| 480 |
+
"text": "4.2 Analysis ",
|
| 481 |
+
"text_level": 1,
|
| 482 |
+
"bbox": [
|
| 483 |
+
174,
|
| 484 |
+
364,
|
| 485 |
+
271,
|
| 486 |
+
378
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 5
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "MSD correlates with corruption error. First, we establish the correlation between MSD and corruption error on the augmentation powerset. MSD shows strong correlation with corruption error across corruptions types in all four categories of CIFAR-10-C, and for a large majority of CIFAR-10-C corruptions in general: 12 of 15 have Spearman rank correlation greater than 0.6. Figure 3 shows the relationship between distance and corruption error on six example corruptions, including one negative example for which correlation is low. A complete set of plots is below in Figure 5. This corruption, brightness, may give poor results because it is a single low-level image statistic that can vary significantly from image to image, and thus may not be well represented by our feature extractor. Appendix B has a few supplemental experiments. First, we we confirm MMD correlates poorly with corruption error, as expected. In particular, we expect broad augmentation schemes produce samples similar to a larger set of corruptions, leading to both lower MSD and lower corruption error but higher MMD. Second, we repeat our experiment but do not train on the augmentations, instead only adapting the batch norm statistics of a pre-trained model to them. We still find a strong correlation, suggesting our methods are compatible with the results of Schneider et al. [26], which shows such an adaptation of the batch norm statistics to a corruption can improve corruption error. ",
|
| 493 |
+
"bbox": [
|
| 494 |
+
174,
|
| 495 |
+
390,
|
| 496 |
+
825,
|
| 497 |
+
597
|
| 498 |
+
],
|
| 499 |
+
"page_idx": 5
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"type": "text",
|
| 503 |
+
"text": "An example of perceptual similarity. Here we illustrate the perceptual nature of the similarity measure, using an example with two base augmentations and two corruptions. The augmentation solarize and the corruption impulse noise both insert bright pixels into the image, though in different ways. Linear superpositions of the augmentation $x$ translation are visually similar to a blur, such as the corruption motion blur. Figure 4 shows MSD vs error where augmentation schemes that include solarize and $x$ translation are colored. It is clear that including an augmentation greatly decreases MSD to its perceptually similar corruption, while having little effect on MSD to its perceptually dissimilar corruption. ",
|
| 504 |
+
"bbox": [
|
| 505 |
+
174,
|
| 506 |
+
612,
|
| 507 |
+
825,
|
| 508 |
+
723
|
| 509 |
+
],
|
| 510 |
+
"page_idx": 5
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"type": "text",
|
| 514 |
+
"text": "MSD and corruption error in real augmentation methods. The augmentation powerset may be used as a baseline for comparing real data augmentation schemes. Figure 5 shows MSD-error correlations for Patch Gaussian [20], AutoAugment [2], and Augmix [14], along with the cloud of augmentation powerset points for all 15 CIFAR-10-C corruptions. The real augmentation schemes follow the same general trend that lower error predicts lower MSD. A few intuitive correlations are also captured in Figure 5. Patch Gaussian has low MSD to noise corruptions. AutoAugment, which contains contrast and Gaussian blurring augmentations in its sub-policies, has low MSD with contrast and defocus blur. A negative example is fog, on which MSD to AutoAugment is not predictive of corruption error. ",
|
| 515 |
+
"bbox": [
|
| 516 |
+
174,
|
| 517 |
+
738,
|
| 518 |
+
825,
|
| 519 |
+
863
|
| 520 |
+
],
|
| 521 |
+
"page_idx": 5
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"type": "text",
|
| 525 |
+
"text": "This correlation suggests generalization may be poor beyond an existing benchmark, since an augmentation scheme may be perceptually similar to one benchmark but not another. For augmentations and corruptions that are explicitly the same, such as contrast in AutoAugment and ImageNet-C, this is typically accounted for by removing such transforms from the augmentation scheme when testing corruption robustness4. But in addition to these explicit similarities, Figure 5 shows quantitatively that perceptual similarity between non-identical augmentations and corruptions is also strongly predictive of corruption error. This includes possibly unexpected similarities, such as between Patch Gaussian and glass blur, which introduces random pixel-level permutations as noise. This suggests that perceptually similar augmentations and corruptions should be treated with the same care as identical transforms. In particular, tools such as MSD help us determine why an augmentation scheme improves corruption error, so we can better understand if new methods will generalize beyond their tested benchmarks. Next we test this generalization by finding corruptions dissimilar to ImageNet-C. ",
|
| 526 |
+
"bbox": [
|
| 527 |
+
176,
|
| 528 |
+
869,
|
| 529 |
+
825,
|
| 530 |
+
911
|
| 531 |
+
],
|
| 532 |
+
"page_idx": 5
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"type": "image",
|
| 536 |
+
"img_path": "images/d4816a08ab544b8902c76e2ed306197c37edf23422e76c702e28ac2d93da066d.jpg",
|
| 537 |
+
"image_caption": [
|
| 538 |
+
"Figure 5: Correlations for augmentation schemes from the literature. Patch Gaussian is similar to noise, while AutoAugment is similar to contrast and blur, as expected from their formulation. Glass blur acts more like a noise corruption than a blur for these augmentation schemes, likely because it randomly permutes pixels. As a negative example, MSD does not correlate well with error for AutoAugment on fog. \\*AugMix here refers to just the augmentation distribution in Hendrycks et al. [14], not the proposed Jensen-Shannon divergence loss. "
|
| 539 |
+
],
|
| 540 |
+
"image_footnote": [],
|
| 541 |
+
"bbox": [
|
| 542 |
+
173,
|
| 543 |
+
88,
|
| 544 |
+
820,
|
| 545 |
+
421
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 6
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "text",
|
| 551 |
+
"text": "",
|
| 552 |
+
"bbox": [
|
| 553 |
+
174,
|
| 554 |
+
529,
|
| 555 |
+
825,
|
| 556 |
+
654
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 6
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "text",
|
| 562 |
+
"text": "5 ImageNet-C: benchmarking with dissimilar corruptions ",
|
| 563 |
+
"text_level": 1,
|
| 564 |
+
"bbox": [
|
| 565 |
+
174,
|
| 566 |
+
672,
|
| 567 |
+
673,
|
| 568 |
+
690
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 6
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "We now introduce a set of corruptions, called ImageNet-C, that are perceptually dissimilar to ImageNet-C in our transform feature space, and we will show that several augmentation schemes have degraded performance on the new dataset. We emphasize that the dataset selection method uses only default data augmentation and was fixed before we looked at the results for different augmentations, so we are not adversarially selecting against the tested augmentation schemes. ",
|
| 575 |
+
"bbox": [
|
| 576 |
+
174,
|
| 577 |
+
705,
|
| 578 |
+
825,
|
| 579 |
+
776
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 6
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "text",
|
| 585 |
+
"text": "Dataset construction. Here we present an overview of the dataset construction method. We build 30 new corruptions in 10 severities, from which the 10 most dissimilar corruptions will be chosen. We adapt common filters and noise distributions available online [10, 16] to produce human interpretable images. The transforms include warps, blurs, color distortions, noise additions, and obscuring effects. Examples of the new corruptions and exact details of the construction method are provided in Appendices D and F. ",
|
| 586 |
+
"bbox": [
|
| 587 |
+
173,
|
| 588 |
+
791,
|
| 589 |
+
825,
|
| 590 |
+
875
|
| 591 |
+
],
|
| 592 |
+
"page_idx": 6
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "image",
|
| 596 |
+
"img_path": "images/47e802717f039011da8d3fa76d9b4cc61d83551f82c9eb8df720c25f4de6d572.jpg",
|
| 597 |
+
"image_caption": [
|
| 598 |
+
"Brown Noise Checkerboard Cocentric Sine Waves Perlin Noise Single Frequency NoiseImageNet-C CorruptionsFigure 6: Example CIFAR-10-C and ImageNet-C corruptions. While still human interpretable, new corruptions are sampled to be dissimilar from CIFAR-10/ImageNet-C. Base images $^ ©$ Sehee Park and Chenxu Han. "
|
| 599 |
+
],
|
| 600 |
+
"image_footnote": [],
|
| 601 |
+
"bbox": [
|
| 602 |
+
178,
|
| 603 |
+
89,
|
| 604 |
+
820,
|
| 605 |
+
210
|
| 606 |
+
],
|
| 607 |
+
"page_idx": 7
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"type": "text",
|
| 611 |
+
"text": "Blue Noise Sample Caustic Refraction Inverse Sparkle Plasma Noise SparklesTo assure that the new dataset is no harder than ImageNet-C, we restrict the average corruption error of the new dataset to be similar to that of ImageNet-C for default augmentation. We then generate many potential datasets and measure the average shift in distance to ImageNet-C that each corruption contributes. Note that while MSD is a measure between augmentations and corruptions, here we are comparing corruptions to other corruptions and thus use MMD in our transform feature space. ImageNet-C then consists of the 10 corruptions types with the largest average shift in distance. Like ImageNet-C, each has five different severities, with severities chosen so that the average error matches ImageNet-C for default augmentation. Example transforms from ImageNet-C and CIFAR-10-C are shown in Figure 6. This procedure in our feature space produces corruptions intuitively dissimilar from ImageNet-C and CIFAR-10-C. ",
|
| 612 |
+
"bbox": [
|
| 613 |
+
174,
|
| 614 |
+
277,
|
| 615 |
+
825,
|
| 616 |
+
416
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 7
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "text",
|
| 622 |
+
"text": "Results. We test AutoAugment [2], Patch Gaussian [20], AugMix [14], $\\mathbf { A N T } ^ { 3 \\mathrm { x } 3 }$ [25], StylizedImageNet [9], and DeepAugment [15] on our new datasets and show results in Table 1. CIFAR-10 models are WideResNet-40-2 with training parameters from Hendrycks et al. [14]. ImageNet [4] models are ResNet-50 [12] with training parameters from Goyal et al. [11]. Stylized-ImageNet is trained jointly with ImageNet for half the epochs and starts from a model pre-trained on ImageNet, following Geirhos et al. [9]. Models use default data augmentation as well as the augmentation being tested, except ImageNet color jittering is not used. All corruptions are applied in-memory instead of loaded from a compressed file; this can affect results especially on high frequency corruptions. ",
|
| 623 |
+
"bbox": [
|
| 624 |
+
174,
|
| 625 |
+
436,
|
| 626 |
+
825,
|
| 627 |
+
547
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 7
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "text",
|
| 633 |
+
"text": "Since Section 4 suggests several augmentation schemes are perceptually similar to ImageNet-C corruptions, we might expect these methods to have worse error on the new corruptions. Indeed, every augmentation scheme performs worse. Different augmentation schemes also degrade by significantly different amounts, from $+ 0 . 7 \\%$ for AutoAugment to $+ 7 . 3 \\%$ for PatchGaussian, which changes their ranking by corruption error and leads to inconsistency of generalization. In Table 2, we compare performance on several robust models[7, 21, 22, 32, 34, 37, 41] that are not primarily augmentationbased and see no similar pattern of degradation, further suggesting that augmentation-corruption dissimilarity is the cause of the higher error. ",
|
| 634 |
+
"bbox": [
|
| 635 |
+
174,
|
| 636 |
+
554,
|
| 637 |
+
825,
|
| 638 |
+
665
|
| 639 |
+
],
|
| 640 |
+
"page_idx": 7
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"type": "text",
|
| 644 |
+
"text": "Errors of individual corruptions in ImageNet-C are also revealing. For all augmentation schemes, there is significant improvement on blue sample noise5 but little improvement on sparkles or inverse sparkles. Only AutoAugment does well on checkerboard, perhaps because only AutoAugment’s geometric transforms produce empty space, similar to checkerboard’s occluded regions. These examples suggest a slightly different benchmark could yield significantly different results. Indeed, for a hypothetical benchmark that excluded blue sample noise and checkerboard, AutoAugment and Patch Gaussian have $5 7 . 3 \\%$ and $5 7 . 2 \\%$ error respectively, little better than baseline of $5 7 . 4 \\%$ . AugMix fairs only a little better with $5 4 . 3 \\%$ error. Even DeepAugment+AugMix, which is in general a strong augmentation scheme, shows a big discrepancy in performance across different corruptions, improving single frequency noise by $31 \\%$ , but inverse sparkles by only $2 . 3 \\%$ . Generalization to dissimilar corruptions is thus both inconsistent and typically quite poor. Single benchmarks and aggregate corruption scores are likely not enough for careful evaluation of robustness to unknown corruptions, and it is important to study why proposed augmentations succeed to better understand how well they might generalize. ",
|
| 645 |
+
"bbox": [
|
| 646 |
+
174,
|
| 647 |
+
670,
|
| 648 |
+
826,
|
| 649 |
+
864
|
| 650 |
+
],
|
| 651 |
+
"page_idx": 7
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"type": "table",
|
| 655 |
+
"img_path": "images/a1ef0e9fee28328e33fb237931540e612574585409f5bc3558ad0c4d6c59ef64.jpg",
|
| 656 |
+
"table_caption": [
|
| 657 |
+
"Table 1: Test error for several data augmentation methods on CIFAR-10-C and ImageNet-10- $\\overline { { C } }$ , for which every method performs worse than on ImageNet-C or CIFAR-10-C. The increase in error differs significantly between different augmentation methods. Descriptions of the abbreviations and standard deviations for individual corruptions are in Appendix D. ‘Baseline’ refers to default augmentation only. Averages are over five runs for ImageNet and ten for CIFAR-10. \\*ANT, DeepAugment(DA) and DeepAugment+AugMix $( \\mathrm { D A } { + } \\mathrm { A M } )$ use the pre-trained model provided with the associated papers and have different training parameters. "
|
| 658 |
+
],
|
| 659 |
+
"table_footnote": [],
|
| 660 |
+
"table_body": "<table><tr><td rowspan=\"2\">Aug</td><td rowspan=\"2\">IN-C Err</td><td colspan=\"2\">IN-C</td><td colspan=\"10\">ImageNet-C Corruptions</td></tr><tr><td>Err</td><td>△IN-C</td><td>BSmpl Plsm</td><td></td><td>Ckbd</td><td>CSin</td><td>SFrq</td><td>Brwn</td><td>Prln</td><td>Sprk</td><td>ISprk</td><td>Rfrac</td></tr><tr><td>Baseline</td><td></td><td>58.1±0.4 57.7±0.2</td><td>-0.4</td><td>68.6</td><td>71.7</td><td>49.4</td><td>84.7</td><td>79.0</td><td>37.5</td><td>34.3</td><td>32.4</td><td>76.7</td><td>42.8</td></tr><tr><td>AA</td><td>55.0±0.2</td><td>55.7±0.3</td><td>+0.7</td><td>54.8</td><td>68.3</td><td>43.8</td><td>86.5</td><td>78.8</td><td>34.5</td><td>33.8</td><td>36.1</td><td>77.1</td><td>43.8</td></tr><tr><td>SIN</td><td>52.4±0.1</td><td>55.8±0.3</td><td>+3.4</td><td>54.7</td><td>69.8</td><td>52.8</td><td>79.6</td><td>69.2</td><td>37.8</td><td>35.3</td><td>37.0</td><td>77.3</td><td>44.1</td></tr><tr><td>AugMix</td><td>49.2 ±0.7</td><td>52.4±0.2</td><td>+3.2</td><td>43.2</td><td>72.2</td><td>46.1</td><td>76.3</td><td>67.4</td><td>38.8</td><td>32.4</td><td>32.3</td><td>76.4</td><td>39.2</td></tr><tr><td>PG</td><td>49.3 ±0.2</td><td>56.6±0.4</td><td>+7.3</td><td>60.3</td><td>74.1</td><td>48.5</td><td>82.1</td><td>76.7</td><td>38.9</td><td>34.6</td><td>32.1</td><td>76.5</td><td>42.1</td></tr><tr><td>ANT*</td><td>48.8</td><td>53.9</td><td>+5.1</td><td>35.8</td><td>75.5</td><td>56.9</td><td>76.4</td><td>63.7</td><td>41.0</td><td>35.2</td><td>35.0</td><td>76.1</td><td>43.3</td></tr><tr><td>DA*</td><td>46.6</td><td>51.0</td><td>+4.4</td><td>41.7</td><td>73.3</td><td>53.9</td><td>74.6</td><td>50.9</td><td>37.2</td><td>30.3</td><td>32.9</td><td>74.7</td><td>40.9</td></tr><tr><td>DA+AM*</td><td>41.0</td><td>48.3</td><td>+7.3</td><td>34.9</td><td>67.9</td><td>49.8</td><td>69.7</td><td>48.0</td><td>35.2</td><td>30.6</td><td>32.9</td><td>74.3</td><td>39.8</td></tr><tr><td></td><td>C10-C</td><td colspan=\"2\">C10-C</td><td></td><td></td><td></td><td>CIFAR-10-C</td><td></td><td>Corruptions</td><td></td><td></td><td></td><td></td></tr><tr><td>Aug</td><td>Err</td><td>Err</td><td>△C10-C</td><td>BSmpl Brwn</td><td></td><td>Ckbd</td><td>CBlur]</td><td>ISprk</td><td>Line</td><td>P&T</td><td>Rppl</td><td>Sprk</td><td>TCA</td></tr><tr><td>Baseline</td><td></td><td>27.0±0.6 27.1 ±0.5</td><td>+0.1</td><td>42.9</td><td>27.2</td><td>23.3</td><td>11.8</td><td>43.3</td><td>26.2</td><td>11.3</td><td>21.6</td><td>21.0</td><td>42.9</td></tr><tr><td>AA</td><td>19.4±0.2</td><td>21.0±0.4</td><td>+1.6</td><td>17.7</td><td>17.5</td><td>17.6</td><td>9.5</td><td>40.4</td><td>23.6</td><td>10.7</td><td>23.5</td><td>17.5</td><td>31.8</td></tr><tr><td>AugMix</td><td>11.1±0.2</td><td>16.0±0.3</td><td>+5.9</td><td>9.8</td><td>27.8</td><td>13.4</td><td>5.9</td><td>30.3</td><td>18.0</td><td>8.3</td><td>12.1</td><td>15.5</td><td>19.2</td></tr><tr><td>PG</td><td>17.0±0.3</td><td>23.8±0.5</td><td>+6.8</td><td>9.0</td><td>30.1</td><td>21.6</td><td>12.8</td><td>35.4</td><td>20.6</td><td>8.8</td><td>21.5</td><td>19.3</td><td>59.5</td></tr></table>",
|
| 661 |
+
"bbox": [
|
| 662 |
+
176,
|
| 663 |
+
204,
|
| 664 |
+
821,
|
| 665 |
+
416
|
| 666 |
+
],
|
| 667 |
+
"page_idx": 8
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"type": "table",
|
| 671 |
+
"img_path": "images/3346b943f627e8a5bf9f9be2b581459bec9a3ebf427ca63bd08176707829e35f.jpg",
|
| 672 |
+
"table_caption": [
|
| 673 |
+
"Table 2: Comparison of errors on ImageNet-C and ImageNet-C for several robust models: WSL (weakly supervised ResNeXt-101-32x8d [21, 22]), EN (EfficientNet-B0 [32]), NS (Noisy Student EN-B0 [37]), ViT-S (Transformer [7, 34]), ResNeSt (ResNeSt-50d, [41]), using pre-trained models provided with the respective papers. These models do not rely primarily on data augmentation to be robust, and there is no consistent degradation on ImageNet-C. This is additional evidence that the worse performance in Table 1 does not occur because ImageNet-C is harder generally. "
|
| 674 |
+
],
|
| 675 |
+
"table_footnote": [],
|
| 676 |
+
"table_body": "<table><tr><td></td><td>WSL</td><td>EN</td><td>NS</td><td>ViT-S</td><td>ResNeSt</td></tr><tr><td>IN-C Err</td><td>38.1</td><td>55.7</td><td>52.1</td><td>44.5</td><td>44.4</td></tr><tr><td>IN-CErr</td><td>39.2</td><td>53.4</td><td>52.2</td><td>41.1</td><td>41.6</td></tr></table>",
|
| 677 |
+
"bbox": [
|
| 678 |
+
315,
|
| 679 |
+
518,
|
| 680 |
+
679,
|
| 681 |
+
566
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 8
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "It may be surprising that Stylized-ImageNet also degrades, given that it is intuitively very different from every corruption. While our measure works for augmentations, it does not cover all possible methods that improve robustness, such as more complicated algorithms like Stylized-ImageNet. Stylized-ImageNet degradation may be due to other reasons. For instance, it primarily augments texture information and may help mostly with higher frequency corruptions, as can be seen by its improvement on single frequency noise and cocentric sine waves; ImageNet-C has fewer such corruptions than ImageNet-C. ImageNet-C is thus a useful tool for understanding the interaction between training procedure and corruption distribution, even beyond perceptual similarity. ",
|
| 688 |
+
"bbox": [
|
| 689 |
+
174,
|
| 690 |
+
590,
|
| 691 |
+
825,
|
| 692 |
+
703
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 8
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "text",
|
| 698 |
+
"text": "Nevertheless, note that it is the intuitively broader augmentation schemes, such as AutoAugment, AugMix, Stylized-ImageNet, and DeepAugment that generalize better to ImageNet-C. The importance of breadth has also been explored elsewhere[15, 38], but in the previous sections we have provided new quantitative evidence for why this may be true: broad augmentation schemes may be perceptually similar to more types of corruptions, and thus more likely to be perceptually similar to a new corruption. Moreover, AugMix and DeepAugment still improve over baseline on ImageNet-C, so there is reason to be optimistic that robustness to unknown corruptions is an achievable goal, as long as evaluation is treated carefully. ",
|
| 699 |
+
"bbox": [
|
| 700 |
+
174,
|
| 701 |
+
708,
|
| 702 |
+
825,
|
| 703 |
+
819
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 8
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "text",
|
| 709 |
+
"text": "6 Discussion ",
|
| 710 |
+
"text_level": 1,
|
| 711 |
+
"bbox": [
|
| 712 |
+
174,
|
| 713 |
+
838,
|
| 714 |
+
292,
|
| 715 |
+
854
|
| 716 |
+
],
|
| 717 |
+
"page_idx": 8
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"type": "text",
|
| 721 |
+
"text": "Societal Impact. Our method for finding dissimilar corruptions could in principle be used to adversarially attack computer vision systems, such as those in content moderation or self-driving cars. Moreover, our ultimate goal is to help improve robustness in computer vision, and such robust systems may be used in detrimentals ways, for example in autonomous weapons or surveillance. However, we expect better evaluation of robust models to have definite benefits as well. In the long run, such an understanding should help defend against adversarial attacks. Our tools could also be used to challenge purportedly robust systems that are actually dangerously unreliable, such as an autonomous driving system that is robust to common corruption benchmarks yet fails to be robust to a dissimilar but important corruption, e.g., maybe glare. For instance, is the model employing data augmentation that is perceptually similar to the corruptions being used to report good robustness? Is the set of validation corruptions sufficiently broad that we would expect reasonable generalization to an unseen corruption? If we generate a dissimilar set of corruptions using the procedure we develop here, does the model still perform well on the new corruptions? Quantitative ways to answer these questions may provide a means to verify the robust performance of a model before it encounters and potentially fails on a critical, previously unseen corruption. ",
|
| 722 |
+
"bbox": [
|
| 723 |
+
176,
|
| 724 |
+
869,
|
| 725 |
+
823,
|
| 726 |
+
911
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 8
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "text",
|
| 732 |
+
"text": "",
|
| 733 |
+
"bbox": [
|
| 734 |
+
174,
|
| 735 |
+
92,
|
| 736 |
+
825,
|
| 737 |
+
257
|
| 738 |
+
],
|
| 739 |
+
"page_idx": 9
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"type": "text",
|
| 743 |
+
"text": "Corruption robustness as a secondary learning task. We have provided evidence that data augmentation may not generalize well beyond a given corruption benchmark. To explore this further, consider an analogy to a regular learning problem. We may think of corruption robustness in the presence of data augmentation as a sort of secondary task layered on the primary classification task: the set of data augmentations is the training set, the set of corruptions is the test set, and the goal is to achieve invariance of the underlying primary task. In this language, the ‘datasets’ involved are quite small: ImageNet-C has only 15 corruption types, and several augmentation schemes composite only around 10 basic transforms. In this case, standard machine learning practice would dictate a training/validation/test set split; it is only the size and breadth of modern vision datasets that has allowed this to be neglected in certain cases recently. But the effective dataset size of a corruption robustness problem is tiny, so having a held-out test set seems necessary. To emphasize, this is not a test set of the underlying classification task, for which generalization has been studied by Recht et al. [23, 24]. Instead, it is a test set of corruption transforms themselves. This means there would be validation/test split of dissimilar transformations, both applied to the ImageNet validation set6. ",
|
| 744 |
+
"bbox": [
|
| 745 |
+
174,
|
| 746 |
+
272,
|
| 747 |
+
825,
|
| 748 |
+
465
|
| 749 |
+
],
|
| 750 |
+
"page_idx": 9
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"type": "text",
|
| 754 |
+
"text": "Real-world corruption robustness. Recently, Hendrycks et al. [15] and Taori et al. [33] study how performance on corruption transforms generalizes to real-world corruptions and come to conflicting conclusions. Though we do not study real-world corruptions, we have proposed a mechanism that may explain the conflict: performance will generalize between transforms and real-world corruptions if they are perceptually similar, but will likely not if they are dissimilar. Since Hendrycks et al. [15] and Taori et al. [33] draw on different real-world and synthetic corruptions, it may be that the perceptual similarity between datasets differs in the two analyses. This also suggests a way to find additional corruption transforms that correlate with real-world corruptions: transforms should be sought that have maximal perceptual similarity with real-world corruptions. ",
|
| 755 |
+
"bbox": [
|
| 756 |
+
174,
|
| 757 |
+
479,
|
| 758 |
+
825,
|
| 759 |
+
604
|
| 760 |
+
],
|
| 761 |
+
"page_idx": 9
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"type": "text",
|
| 765 |
+
"text": "Generalization does occur. We have encountered two features of data augmentation that may explain why it can be such a powerful tool for corruption robustness, despite the issues discussed above. First, within a class of perceptually similar transforms, generalization does occur. This means each simple data augmentation may confer robustness to many complicated corruptions, as long as they share perceptual similarity. Second, dissimilar augmentations in an augmentation scheme often causes little to no loss in performance, as long as a similar augmentation is also present. We briefly study this in Appendix A by demonstrating that adding many dissimilar augmentations increases error much less than adding a few similar augmentations decreases it. These two features suggest broad augmentation schemes with many dissimilar augmentations may confer robustness to a large class of unknown corruptions. More generally, we think data augmentation is a promising direction of study for corruption robustness, as long as significant care is taken in evaluation. ",
|
| 766 |
+
"bbox": [
|
| 767 |
+
174,
|
| 768 |
+
618,
|
| 769 |
+
825,
|
| 770 |
+
770
|
| 771 |
+
],
|
| 772 |
+
"page_idx": 9
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"type": "text",
|
| 776 |
+
"text": "Acknowledgements and Funding Disclosure ",
|
| 777 |
+
"text_level": 1,
|
| 778 |
+
"bbox": [
|
| 779 |
+
174,
|
| 780 |
+
789,
|
| 781 |
+
540,
|
| 782 |
+
806
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 9
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "text",
|
| 788 |
+
"text": "Eric Mintun would like to thank Matthew Leavitt, Sho Yaida, and Achal Dave for discussions during the development of this work. Additionally, he would like to acknowledge the Facebook AI residency program for providing excellent training and support in AI research. The authors received no external funding and have no competing interests. ",
|
| 789 |
+
"bbox": [
|
| 790 |
+
174,
|
| 791 |
+
820,
|
| 792 |
+
825,
|
| 793 |
+
876
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 9
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "text",
|
| 799 |
+
"text": "References \n[1] Bruna, J. and Mallat, S. Invariant scattering convolution networks. IEEE transactions on pattern analysis and machine intelligence, 35(8):1872–1886, 2013. \n[2] Cubuk, E. D., Zoph, B., Mané, D., Vasudevan, V., and Le, Q. V. AutoAugment: Learning augmentation strategies from data. In CVPR, 2019. \n[3] Dao, T., Gu, A., Ratner, A. J., Smith, V., De Sa, C., and Ré, C. A kernel theory of modern data augmentation. Proceedings of machine learning research, 97:1528, 2019. \n[4] Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., and Fei-Fei, L. ImageNet: A large-scale hierarchical image database. In CVPR, 2009. \n[5] Ding, K., Ma, K., Wang, S., and Simoncelli, E. P. Image quality assessment: Unifying structure and texture similarity. IEEE transactions on pattern analysis and machine intelligence, 2020. \n[6] Dodge, S. and Karam, L. A study and comparison of human and deep learning recognition performance under visual distortions. In ICCCN, 2017. \n[7] Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., and Houlsby, N. An image is worth 16x16 words: Transformers for image recognition at scale. In ICLR, 2021. \n[8] Geirhos, R., Temme, C. R., Rauber, J., Schütt, H. H., Bethge, M., and Wichmann, F. A. Generalisation in humans and deep neural networks. In NeurIPS, 2018. \n[9] Geirhos, R., Rubisch, P., Michaelis, C., Bethge, M., Wichmann, F. A., and Brendel, W. ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness. In ICLR, 2019. \n[10] Gladman, S. J. Filterpedia, 2016. URL https://github.com/FlexMonkey/Filterpedia. \n[11] Goyal, P., Dollár, P., Girshick, R., Noordhuis, P., Wesolowski, L., Kyrola, A., Tulloch, A., Jia, Y., and He, K. Accurate, large minibatch SGD: Training ImageNet in 1 hour. arXiv preprint arXiv:1706.02677, 2017. \n[12] He, K., Zhang, X., Ren, S., and Sun, J. Deep residual learning for image recognition. In CVPR, 2016. \n[13] Hendrycks, D. and Dietterich, T. Benchmarking neural network robustness to common corruptions and perturbations. In ICLR, 2018. \n[14] Hendrycks, D., Mu, N., Cubuk, E. D., Zoph, B., Gilmer, J., and Lakshminarayanan, B. AugMix: A simple data processing method to improve robustness and uncertainty. In ICLR, 2019. \n[15] Hendrycks, D., Basart, S., Mu, N., Kadavath, S., Wang, F., Dorundo, E., Desai, R., Zhu, T., Parajuli, S., Guo, M., Song, D., Steinhardt, J., and Gilmer, J. The many faces of robustness: A critical analysis of out-of-distribution generalization. arXiv preprint arXiv:2006.16241, 2020. \n[16] Huxtable, J. JH Labs Java Image Processing, 2006. URL http://www.jhlabs.com/ip/ filters/. \n[17] Krizhevsky, A., Hinton, G., et al. Learning multiple layers of features from tiny images. 2009. \n[18] Lee, J., Won, T., and Hong, K. Compounding the performance improvements of assembled techniques in a convolutional neural network. arXiv preprint arXiv:2001.06268, 2020. \n[19] Liang, J., Hu, D., and Feng, J. Do we really need to access the source data? source hypothesis transfer for unsupervised domain adaptation. In International Conference on Machine Learning, pp. 6028–6039. PMLR, 2020. \n[20] Lopes, R. G., Yin, D., Poole, B., Gilmer, J., and Cubuk, E. D. Improving robustness without sacrificing accuracy with Patch Gaussian augmentation. arXiv preprint arXiv:1906.02611, 2019. \n[21] Mahajan, D., Girshick, R., Ramanathan, V., He, K., Paluri, M., Li, Y., Bharambe, A., and van der Maaten, L. Exploring the limits of weakly supervised pretraining. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 181–196, 2018. \n[22] Orhan, A. E. Robustness properties of Facebook’s ResNeXt WSL models. arXiv preprint arXiv:1907.07640, 2019. \n[23] Recht, B., Roelofs, R., Schmidt, L., and Shankar, V. Do CIFAR-10 classifiers generalize to CIFAR-10? arXiv preprint arXiv:1806.00451, 2018. \n[24] Recht, B., Roelofs, R., Schmidt, L., and Shankar, V. Do ImageNet classifiers generalize to ImageNet? In ICML, 2019. \n[25] Rusak, E., Schott, L., Zimmermann, R., Bitterwolf, J., Bringmann, O., Bethge, M., and Brendel, W. A simple way to make neural networks robust against diverse image corruptions. arXiv preprint arXiv:2001.06057, 2020. \n[26] Schneider, S., Rusak, E., Eck, L., Bringmann, O., Brendel, W., and Bethge, M. Improving robustness against common corruptions by covariate shift adaptation. In NeurIPS, 2020. \n[27] Shankar, V., Dave, A., Roelofs, R., Ramanan, D., Recht, B., and Schmidt, L. Do image classifiers generalize across time? arXiv preprint arXiv:1906.02168, 2019. \n[28] Simard, P. Y., LeCun, Y. A., Denker, J. S., and Victorri, B. Transformation invariance in pattern recognition—tangent distance and tangent propagation. In Neural networks: tricks of the trade, pp. 239–274. Springer, 1998. \n[29] Simonyan, K. and Zisserman, A. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. \n[30] Sun, Y., Wang, X., Liu, Z., Miller, J., Efros, A., and Hardt, M. Test-time training with selfsupervision for generalization under distribution shifts. In International Conference on Machine Learning, pp. 9229–9248. PMLR, 2020. \n[31] Szegedy, C., Zaremba, W., Sutskever, I., Bruna, J., Erhan, D., Goodfellow, I., and Fergus, R. Intriguing properties of neural networks. In ICLR, 2014. \n[32] Tan, M. and Le, Q. EfficientNet: Rethinking model scaling for convolutional neural networks. In ICML, 2019. \n[33] Taori, R., Dave, A., Shankar, V., Carlini, N., Recht, B., and Schmidt, L. Measuring robustness to natural distribution shifts in image classification. In NeurIPS, 2020. \n[34] Touvron, H., Cord, M., Douze, M., Massa, F., Sablayrolles, A., and Jégou, H. Training dataefficient image transformers & distillation through attention. arXiv preprint arXiv:2012.12877, 2020. \n[35] Wang, D., Shelhamer, E., Liu, S., Olshausen, B., and Darrell, T. Tent: Fully test-time adaptation by entropy minimization. ICLR, 2021. \n[36] Wu, S., Zhang, H. R., Valiant, G., and Ré, C. On the generalization effects of linear transformations in data augmentation. In ICML, 2020. \n[37] Xie, Q., Luong, M.-T., Hovy, E., and Le, Q. V. Self-training with Noisy Student improves imagenet classification. In CVPR, 2020. \n[38] Yin, D., Lopes, R. G., Shlens, J., Cubuk, E. D., and Gilmer, J. A Fourier perspective on model robustness in computer vision. In NeurIPS, 2019. \n[39] Zagoruyko, S. and Komodakis, N. Wide residual networks. In BMVC, 2016. \n[40] Zhang, H., Cisse, M., Dauphin, Y. N., and Lopez-Paz, D. mixup: Beyond empirical risk minimization. In ICLR, 2018. \n[41] Zhang, H., Wu, C., Zhang, Z., Zhu, Y., Zhang, Z., Lin, H., Sun, Y., He, T., Muller, J., Manmatha, R., Li, M., and Smola, A. ResNeSt: Split-Attention Networks. arXiv preprint arXiv:2004.08955, 2020. \n[42] Zhang, R., Isola, P., Efros, A. A., Shechtman, E., and Wang, O. The unreasonable effectiveness of deep features as a perceptual metric. In CVPR, 2018. \n[43] Zilly, J., Zilly, H., Richter, O., Wattenhofer, R., Censi, A., and Frazzoli, E. The Frechet Distance of training and test distribution predicts the generalization gap. OpenReview preprint, 2019. URL https://openreview.net/forum?id $\\cdot ^ { = }$ SJgSflHKDr. ",
|
| 800 |
+
"bbox": [
|
| 801 |
+
171,
|
| 802 |
+
69,
|
| 803 |
+
830,
|
| 804 |
+
920
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 10
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "",
|
| 811 |
+
"bbox": [
|
| 812 |
+
171,
|
| 813 |
+
71,
|
| 814 |
+
828,
|
| 815 |
+
916
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 11
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "",
|
| 822 |
+
"bbox": [
|
| 823 |
+
169,
|
| 824 |
+
90,
|
| 825 |
+
828,
|
| 826 |
+
223
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 12
|
| 829 |
+
}
|
| 830 |
+
]
|
parse/train/LOHyqjfyra/LOHyqjfyra_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/LOHyqjfyra/LOHyqjfyra_model.json
ADDED
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Beyond Fine-Tuning: Transferring Behavior in Reinforcement Learning
|
| 2 |
+
|
| 3 |
+
Anonymous Author(s)
|
| 4 |
+
Affiliation
|
| 5 |
+
Address
|
| 6 |
+
email
|
| 7 |
+
|
| 8 |
+
# Abstract
|
| 9 |
+
|
| 10 |
+
1 Designing agents that acquire knowledge autonomously and use it to solve new
|
| 11 |
+
2 tasks efficiently is an important challenge in reinforcement learning. Knowledge
|
| 12 |
+
3 acquired during an unsupervised pre-training phase is often transferred by fine
|
| 13 |
+
4 tuning neural network weights once rewards are exposed, as is common practice
|
| 14 |
+
5 in supervised domains. Given the nature of the reinforcement learning problem,
|
| 15 |
+
6 we argue that standard fine-tuning strategies alone are not enough for efficient
|
| 16 |
+
7 transfer in challenging domains. We introduce Behavior Transfer (BT), a technique
|
| 17 |
+
8 that leverages pre-trained policies for exploration and that is complementary to
|
| 18 |
+
9 transferring neural network weights. Our experiments show that, when combined
|
| 19 |
+
10 with large-scale pre-training in the absence of rewards, existing intrinsic motivation
|
| 20 |
+
11 objectives can lead to the emergence of complex behaviors. These pre-trained
|
| 21 |
+
12 policies can then be leveraged by BT to discover better solutions than without
|
| 22 |
+
13 pre-training, and combining BT with standard fine-tuning strategies results in
|
| 23 |
+
14 additional benefits. The largest gains are generally observed in domains requiring
|
| 24 |
+
15 structured exploration, including settings where the behavior of the pre-trained
|
| 25 |
+
16 policies is misaligned with the downstream task.
|
| 26 |
+
|
| 27 |
+
# 17 1 Introduction
|
| 28 |
+
|
| 29 |
+
18 Transfer in deep learning is often performed through parameter initialization followed by fine-tuning,
|
| 30 |
+
19 a technique that allows to leverage the power of deep networks in domains where labelled data
|
| 31 |
+
20 is scarce [60, 16, 61, 22, 15]. This builds on the intuition that the pre-trained model will map
|
| 32 |
+
21 inputs to a feature space where the downstream task is easy to perform. When combined with
|
| 33 |
+
22 methods that can leverage massive amounts of unlabelled data for pre-training, this transfer strategy
|
| 34 |
+
23 has led to unprecedented results in domains like computer vision [31, 30] and natural language
|
| 35 |
+
24 processing [15, 50]. The success of these approaches has led to an ever-growing interest in developing
|
| 36 |
+
25 techniques for pre-training large scale models on unlabelled data [9, 13, 24].
|
| 37 |
+
26 In the reinforcement learning (RL) context, unsupervised methods that learn in the absence of reward
|
| 38 |
+
27 have also garnered much research attention [23, 21, 46, 19, 29]. The benefits of unsupervised pre
|
| 39 |
+
28 training are typically evaluated by their ability to enable efficient transfer to previously unseen reward
|
| 40 |
+
29 functions [28]. In spite of their different approaches to unsupervised RL, most of the top-performing
|
| 41 |
+
30 methods in this setting transfer knowledge through neural network weights. Such approaches deal
|
| 42 |
+
31 with the data inefficiency associated to training neural networks with gradient descent, similarly to
|
| 43 |
+
32 what is done in supervised learning, e.g. by pre-training encoders that extract representations from
|
| 44 |
+
33 observations [59]. However, RL introduces a challenge that is not present in supervised learning: the
|
| 45 |
+
34 agent is responsible for collecting the right data to learn from. This introduces a second source of
|
| 46 |
+
35 inefficiency from which transfer approaches can also suffer if they rely on unstructured exploration
|
| 47 |
+
36 strategies after pre-training, as these can lead to exponentially larger data requirements in complex
|
| 48 |
+
37 downstream environments [45, 44]. To address this problem, one could consider fine-tuning policies
|
| 49 |
+
38 that produce meaningful behavior [43, 52], but this approach quickly disregards the pre-trained
|
| 50 |
+
39 behavior when learning in the downstream task due to catastrophic forgetting.
|
| 51 |
+
40 In this work, we explicitly separate the transfer of behaviour and weights. We propose to make
|
| 52 |
+
41 use of the pre-trained behaviour itself (i.e., the pre-trained policy mapping from observations to
|
| 53 |
+
42 actions) in contrast to pre-trained neural network weights for further fine-tuning. While pre-trained
|
| 54 |
+
43 behavior has been used before for exploitation [5, 56, 2, 3], our approach employs pre-trained policies
|
| 55 |
+
44 to aid with exploration as well to collect experience that can be leveraged via off-policy learning.
|
| 56 |
+
45 This strategy accelerates learning, as the agent is exposed to potentially useful experience earlier in
|
| 57 |
+
46 training, without compromising the quality of the discovered solution when the pre-trained behavior
|
| 58 |
+
47 is not aligned with the downstream task. We expose the pre-trained behaviour to the downstream
|
| 59 |
+
48 agent in two ways: firstly, as an extra exploratory strategy that, when randomly activated, persists for
|
| 60 |
+
49 a number of steps, and secondly as an additional pseudo-action for the learned value function where
|
| 61 |
+
50 the agent may elect to defer action selection to the pre-trained policy instead of choosing itself. We
|
| 62 |
+
51 call this approach Behavior Transfer (BT).
|
| 63 |
+
52 Defining unsupervised RL objectives remains an open problem, and solutions are generally influenced
|
| 64 |
+
53 by how the acquired knowledge will be used for solving downstream tasks. Instead of proposing yet
|
| 65 |
+
54 another objective for unsupervised pre-training, we turn to existing techniques for training policies in
|
| 66 |
+
55 the absence of reward and make our choice based on two general requirements. First, the objective
|
| 67 |
+
56 should scale gracefully with increased compute and data. This has been key for the success of
|
| 68 |
+
57 self-supervised approaches in other domains [9, 35], and we argue that it is an important property for
|
| 69 |
+
58 unsupervised RL as well. Second, the pre-training stage should return a policy that produces complex
|
| 70 |
+
59 behavior that may be leveraged in a subsequent transfer stage. The Never Give Up (NGU) [48]
|
| 71 |
+
60 intrinsic reward meets both requirements, and our experiments show that large-scale pre-training with
|
| 72 |
+
61 this objective leads to state of the art scores in the reward-free Atari benchmark.
|
| 73 |
+
62 Figure 1 exemplifies our main findings. We pre-train behaviour using the intrinsic NGU reward during
|
| 74 |
+
63 a long unsupervised phase without rewards. This gives rise to exploratory behaviors that seek to visit
|
| 75 |
+
64 many different states throughout an episode, and we then compare different strategies for leveraging
|
| 76 |
+
65 the acquired knowledge once rewards are reinstated. While fine-tuning the pre-trained weights
|
| 77 |
+
66 enables faster learning, the exploratory behavior of the pre-trained policy is quickly disregarded as it
|
| 78 |
+
67 is exposed to rewards. On the other hand, Behavior Transfer (BT) does not modify the pre-trained
|
| 79 |
+
68 policy while learning in the new task and is able to achieve higher end scores thanks to better
|
| 80 |
+
69 exploration. These two strategies are not mutually exclusive, and BT also benefits from the faster
|
| 81 |
+
70 convergence provided by initializing neural networks with pre-trained weights when these encode
|
| 82 |
+
71 useful information for solving the downstream task.
|
| 83 |
+
72 Our contributions can be summarized as follows. (1) We propose Behavior Transfer (BT), a technique
|
| 84 |
+
73 that leverages pre-trained policies for exploration by treating them as black boxes that are not modified
|
| 85 |
+
74 during learning on the downstream task. BT uses the pre-trained policy to collect experience in
|
| 86 |
+
75 two ways, namely randomly-triggered temporally-extended exploration and one-step calls based on
|
| 87 |
+
76 value estimates. (2) Our experiments show that large-scale unsupervised pre-training with existing
|
| 88 |
+
77 intrinsic rewards can produce meaningful behavior, achieving state of the art results in the reward-free
|
| 89 |
+
78 Atari benchmark. These results suggest that scale is key for unsupervised RL, akin to what has been
|
| 90 |
+
79 observed in supervised settings. (3) We provide extensive empirical evidence demonstrating the
|
| 91 |
+
80 benefits of leveraging pre-trained behavior via BT. Our approach obtains the largest gains in hard
|
| 92 |
+
81 exploration games, where it almost doubles the median human normalized score achieved by our
|
| 93 |
+
82 strongest baseline. Furthermore, we show that BT is able to leverage a single task-agnostic policy
|
| 94 |
+
83 to solve multiple tasks in the same environment and to achieve high performance even when the
|
| 95 |
+
84 pre-trained policies are misaligned with the task being solved. (4) BT brings benefits to the table
|
| 96 |
+
85 that are complementary to those provided by reusing pre-trained neural network weights, and we
|
| 97 |
+
86 empirically show that combining these two strategies can result in larger gains.
|
| 98 |
+
|
| 99 |
+

|
| 100 |
+
Figure 1: Comparison of transfer strategies on Montezuma’s Revenge and Defender after pre-training a policy with NGU [48] in the absence of reward. The benefits of our proposed approach to leverage pre-trained behavior for exploration, Behavior Transfer (BT), are complementary to the gains provided by pre-trained weight initialization followed by fine-tuning.
|
| 101 |
+
|
| 102 |
+
# 87 2 Preliminaries
|
| 103 |
+
|
| 104 |
+
88 The interaction between the agent and the environment is modelled as a Markov Decission Pro
|
| 105 |
+
89 cess (MDP) [49]. An MDP is defined by the tuple $( S , A , P , d _ { 0 } , R , \gamma )$ where $s$ and $\mathcal { A }$ are the state
|
| 106 |
+
90 and action spaces, $P ( s ^ { \prime } | s , a )$ is the probability of transitioning from state $s$ to $s ^ { \prime }$ after taking action $a$
|
| 107 |
+
91 $d _ { 0 } ( s )$ is the probability distribution over initial states, $R : S \times \mathcal { A } \times \mathcal { S } \mathbb { R }$ is the reward function,
|
| 108 |
+
92 and retu $\gamma \in [ 0 , 1 )$ $\begin{array} { r } { \dot { G } _ { t } = \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } R _ { t } } \end{array}$ unt fact, where $R _ { t } = r \hat { ( } S _ { t } , A _ { t } , S _ { t + 1 } )$ a policy . A prin $\pi ( a | s )$ that maximizes the expected way to address this problem
|
| 109 |
+
94 is to use methods that compute action-value functions, $Q ^ { \pi } ( \bar { s } , a ) \overset { - } { = } \mathbb { E } _ { \pi } \left[ G _ { t } \vert S _ { t } = s , A _ { t } = a \right]$ , where
|
| 110 |
+
95 $\mathbb { E } _ { \pi } [ \cdot ]$ denotes expectation over transitions induced by $\pi$ [49].
|
| 111 |
+
96 We consider a setting where the agent is allowed to first learn within an MDP without rewards,
|
| 112 |
+
97 $\boldsymbol { \mathcal { M } } ^ { R } = ( \boldsymbol { \mathcal { S } } , \boldsymbol { \mathcal { A } } , P , d _ { 0 } )$ , for a long period of time. The knowledge acquired during the reward-free
|
| 113 |
+
98 stage is later leveraged when maximizing reward in new MDPs that share the same underlying
|
| 114 |
+
99 dynamics but have different reward functions, $\mathcal { M } _ { i } = ( S , A , P , d _ { 0 } , R _ { i } , \gamma _ { i } )$ . Interactions between the
|
| 115 |
+
100 agent and the environment are often assumed to incur a cost, but we will consider this cost to be
|
| 116 |
+
101 relevant only for transitions with reward [28]. Even if the cost of unsupervised pre-training becomes
|
| 117 |
+
102 non-negligible, it can be amortized when the acquired task-agnostic knowledge is leveraged to solve
|
| 118 |
+
103 multiple tasks efficiently [15, 9]. Indeed, we would expect this transfer setting to become more
|
| 119 |
+
104 relevant as the community moves towards more complex environments, where one may want to
|
| 120 |
+
105 train agents to maximize multiple reward functions under constant dynamics. In the limit, one could
|
| 121 |
+
106 consider the real world: it has constant or slowly changing dynamics, and humans are able to leverage
|
| 122 |
+
107 previously acquired skills to quickly master new tasks.
|
| 123 |
+
|
| 124 |
+
# 108 3 Behavior Transfer
|
| 125 |
+
|
| 126 |
+
109 Transfer in supervised domains often exploits the fact that related tasks might be solved using similar
|
| 127 |
+
110 representations. This practice deals with the data inefficiency of training large neural networks
|
| 128 |
+
111 with stochastic gradient descent. However, there is an additional source of data inefficiency when
|
| 129 |
+
112 training RL agents: unstructured exploration. Fine-tuning a pre-trained exploratory policy arises as
|
| 130 |
+
113 a potential strategy for overcoming this problem, as the agent will observe rich experience much
|
| 131 |
+
114 earlier in training than when initializing the policy randomly, but this approach suffers from important
|
| 132 |
+
115 limitations. Learning in the downstream task can lead to catastrophically forgetting the pre-trained
|
| 133 |
+
116 policy, thus prematurely disregarding its exploratory behavior. Moreover, the same neural network
|
| 134 |
+
117 architecture needs to be used for both the pre-trained and the downstream policies, which in practice
|
| 135 |
+
118 also imposes a limitation on the type of RL methods that can be employed in the adaptation stage (for
|
| 136 |
+
119 instance, if the pre-trained policy was trained using a policy-based method, it might not be possible
|
| 137 |
+
120 to fine-tune it using a value-based approach).
|
| 138 |
+
121 Let us assume that we have access to a pre-trained policy that exhibits exploratory behavior, and
|
| 139 |
+
122 defer the discussion on how to train this policy to Section 4. Following such a policy might bring
|
| 140 |
+
123 the agent to states that are unlikely to be visited with unstructured exploration techniques such as
|
| 141 |
+
124 $\epsilon$ -greedy [55]. This property has the potential of accelerating learning even when the behavior of
|
| 142 |
+
125 the pre-trained policy is not aligned with the downstream task, as it will effectively shorten the
|
| 143 |
+
126 path between otherwise distant states [41]. Leveraging pre-trained policies for exploration differs
|
| 144 |
+
127 from other approaches in the literature that use such policies directly for exploitation, e.g. via
|
| 145 |
+
128 zero-shot transfer [19], methods that define a higher-level policy that alternates between the given
|
| 146 |
+
129 policies [5, 56], or within the framework of generalized policy updates [4]. Exploring with pre-trained
|
| 147 |
+
130 policies can accelerate convergence by providing useful experience to the agent, which is possible
|
| 148 |
+
131 even when the pre-training and downstream tasks are misaligned. However, strategies that directly
|
| 149 |
+
132 use the pre-trained policies for exploitation may result in sub-optimal solutions in such scenario [2].
|
| 150 |
+
133 We propose to leverage the behavior of pre-trained policies during transfer to aid with exploration. An
|
| 151 |
+
134 explicit distinction between behavior and representation is made by considering pre-trained policies as
|
| 152 |
+
135 black boxes that take observations and return actions. This strategy is agnostic to how the pre-trained
|
| 153 |
+
136 behavior is encoded and is not restricted to learned policies. We rely on off-policy learning methods
|
| 154 |
+
137 during transfer to leverage the behavior of a pre-trained policy $\bar { \pi _ { p } ( a | s ) }$ . We keep $\pi _ { p }$ fixed during
|
| 155 |
+
138 transfer, which prevents catastrophic forgetting of the original behavior when it is parameterized by a
|
| 156 |
+
139 neural network (i.e., we instantiate and train a new policy with its own set of parameters). We propose
|
| 157 |
+
140 Behavior Transfer (BT), which leverages two complementary strategies to achieve this. Since BT
|
| 158 |
+
141 is agnostic to the method used to pre-train policies, $B T ( \pi _ { p } )$ refers to behavior being transferred
|
| 159 |
+
142 from policy $\pi _ { p }$ . We formalize BT in the context of value-based Q-learning agents, although similar
|
| 160 |
+
143 derivations are in principle possible for alternative off-policy learning methods. Pseudo-code for BT
|
| 161 |
+
144 is provided in Algorithm 1.
|
| 162 |
+
145 Temporally-extended exploration. We draw inspiration from Lévy flights [57], a class of ecological
|
| 163 |
+
146 models for animal foraging, where a fixed direction is followed for a duration sampled from a
|
| 164 |
+
147 heavy-tailed distribution. This principle was implemented in the context of exploration in RL by
|
| 165 |
+
148 $\epsilon z$ -greedy [14], which encodes the notion of direction in the environment via exploration options that
|
| 166 |
+
149 repeat the same action throughout the entire flight. Since $\pi _ { p }$ is more likely to encode a meaningful
|
| 167 |
+
150 notion of direction in complex environments than action repeats, we propose a variant of $\epsilon z$ -greedy
|
| 168 |
+
151 where $\pi _ { p }$ is used as the exploration option. An exploratory flight might be started at any step with
|
| 169 |
+
152 some probability. The duration for the flight is sampled from a heavy-tailed distribution (Zeta with
|
| 170 |
+
153 $\mu = 2$ in all our experiments), and control is handed over to $\pi _ { p }$ during the complete flight. When not
|
| 171 |
+
154 in a flight, actions are sampled from the behavior policy obtained while maximizing the task reward
|
| 172 |
+
155 (e.g. an $\epsilon$ -greedy derived from the estimated Q values).
|
| 173 |
+
156 Extra action. The previous approach switches to $\pi _ { p }$ during experience collection blindly, and we
|
| 174 |
+
157 now consider an alternative strategy for triggering these switches based on value. This can be easily
|
| 175 |
+
158 implemented through an extra action which samples an action from $\pi _ { p }$ , which also allows the agent to
|
| 176 |
+
159 use the pre-trained policy at test time if deemed beneficial. More formally, this amounts to training a
|
| 177 |
+
160 policy over an expanded action set $\mathcal { A } ^ { + } = \mathcal { A } \cup \{ a _ { + } \}$ , where $a _ { + }$ is resolved by sampling an action from
|
| 178 |
+
161 $\pi _ { p }$ , $a ^ { \prime } \sim \pi _ { p } ( s )$ (with $a ^ { \prime } \in { \mathcal { A } }$ ). The additional action can be seen as an option that can be initiated
|
| 179 |
+
162 from any state and always terminates after a single step. Note that selecting the option will lead to
|
| 180 |
+
163 the same outcome as if the agent had selected $a ^ { \prime }$ as a primitive action, and we take advantage of this
|
| 181 |
+
164 observation by using the return of following the option as target to fit both $Q ( s , \pi _ { p } ( s ) )$ and $Q ( s , a ^ { \prime } )$ .
|
| 182 |
+
165 Intuitively, this approach induces a bias that favours actions selected by $\pi _ { p }$ , accelerating the collection
|
| 183 |
+
166 of rewarding transitions when the pre-trained policy is somewhat aligned with the downstream task.
|
| 184 |
+
167 Otherwise, the agent can learn to ignore $\pi _ { p }$ as training progresses by selecting other actions.
|
| 185 |
+
|
| 186 |
+
# Algorithm 1: Experience collection pseudo-code for BT
|
| 187 |
+
|
| 188 |
+
Input: Action set, $\mathcal { A }$ ; additional action, $a _ { + }$ ; extended action set, $\mathcal { A } ^ { + } = \mathcal { A } \cup \{ a _ { + } \}$ ; pre-trained policy, $\pi _ { p }$ ; Q-value estimate for the current policy, $Q ^ { \pi } ( s , a ) \forall a \in A ^ { + }$ ; probability of taking an exploratory action, $\epsilon$ ; probability of starting a flight, $\epsilon _ { \mathrm { l e v y } }$ ; flight length distribution, $\mathcal { D } ( \mathbb { N } )$
|
| 189 |
+
while True do $n \gets 0$ // flight length while episode not ended do Observe state $s$ if $n = = 0$ and random $) \le \epsilon _ { l e v y }$ then $n \sim \mathcal { D } ( \mathbb { N } )$ // sample flight length if $n > 0$ then $\begin{array} { l } { n n - 1 } \\ { a \sim \pi _ { p } ( s ) } \end{array}$ else if random $) \leq \epsilon$ then $a \sim \operatorname { U n i f o r m } ( \mathcal { A } ^ { + } )$ else $a \gets \arg \operatorname* { m a x } _ { a ^ { \prime } \in \mathcal { A } ^ { + } } [ Q ^ { \pi } ( s , a ^ { \prime } ) ]$ if $a = = a _ { + }$ then $a \sim \pi _ { p } ( s )$ end Take action $a$ end
|
| 190 |
+
end
|
| 191 |
+
|
| 192 |
+
169 It is a common practice to derive objectives for proxy tasks in order to drive learning in the absence
|
| 193 |
+
170 of reward functions, and there exists a plethora of different approaches in the literature. Model-based
|
| 194 |
+
171 approaches can learn world models from unsupervised interaction [26]. However, the diversity of
|
| 195 |
+
172 the training data will impact the accuracy of the model [53] and deploying this type of approach
|
| 196 |
+
173 in visually complex domains like Atari remains an open problem [27]. Unsupervised RL has also
|
| 197 |
+
174 been explored through the lens of empowerment [51, 42], which studies agents that aim to discover
|
| 198 |
+
175 intrinsic options [23, 19]. While these options can be leveraged by hierarchical agents [21] or
|
| 199 |
+
176 integrated within the universal successor features framework [2, 3, 8, 28], their potential lack of
|
| 200 |
+
177 coverage generally limits their applicability to complex downstream tasks [12]. An alternative
|
| 201 |
+
178 objective is that of exploring the environment by finding policies that induce maximally entropic state
|
| 202 |
+
179 distributions [29, 39], although this might become extremely inefficient in high-dimensional state
|
| 203 |
+
180 spaces without proper priors [40, 59].
|
| 204 |
+
181 Recall that our goal is to devise a pre-training objective that can help reduce the amount of interaction
|
| 205 |
+
182 needed by the agent to collect relevant experience when learning in a downstream task. We argue that
|
| 206 |
+
183 such objective needs to meet two requirements. First, as suggested by results in other domains [9, 35],
|
| 207 |
+
184 it should scale gracefully as the amount of compute and experience used for pre-training are increased.
|
| 208 |
+
185 This contrasts with the training regimes used in most unsupervised RL approaches, which use a
|
| 209 |
+
186 relatively small amount of experience [28, 40, 59] when compared to distributed agents that do make
|
| 210 |
+
187 use of rewards [33, 18, 36]. Second, it must encourage the emergence of complex behaviors such as
|
| 211 |
+
188 navigation or manipulation skills. It has been argued that exploring the environment efficiently will
|
| 212 |
+
189 serve as a proxy for developing such behaviors [37], and exploration bonuses have been shown to
|
| 213 |
+
190 produce meaningful behavior in the absence of reward [46, 10]. However, many exploration bonuses
|
| 214 |
+
191 vanish over the course of training and thus may not be well-suited for a long unsupervised pre-training
|
| 215 |
+
192 phase. It can be shown that many intrinsic rewards aim at maximizing the entropy of all states visited
|
| 216 |
+
193 during training, and so the final policy does not necessarily exhibit exploratory behavior [39].
|
| 217 |
+
194 We propose to use Never Give Up (NGU) [48] as a means for training exploratory policies in an
|
| 218 |
+
195 unsupervised setting. The NGU intrinsic reward proposes a curiosity-driven approach for training
|
| 219 |
+
196 persistent exploratory policies which combines per-episode and life-long novelty. The per-episode
|
| 220 |
+
197 novelty, $r _ { t } ^ { \mathrm { e p i s o d i c } }$ , rapidly vanishes over the course of an episode, and it is designed to encourage self
|
| 221 |
+
198 avoiding trajectories. It is computed by comparing a representation of the current observation, $f ( s _ { t } )$ ,
|
| 222 |
+
199 to those of all the observations visited in the current episode, $M = \{ f ( s _ { 0 } ) , f ( s _ { 1 } ) , \dotsc , f ( s _ { t - 1 } ) \}$ ,
|
| 223 |
+
200 where $f : \mathcal { S } \mathbb { R } ^ { p }$ is an embedding function trained using a self-supervised inverse dynamics
|
| 224 |
+
201 model [46]. Such a mapping concentrates on the controllable aspects of the environment, ignoring
|
| 225 |
+
202 all the variability present in the observation that is not affected by the action taken by the agent.
|
| 226 |
+
203 The life-long novelty, $\alpha _ { t }$ , slowly vanishes throughout training, and it is computed by using Random
|
| 227 |
+
204 Network Distillation (RND) [11]. With this, the intrinsic reward $r _ { t } ^ { \mathrm { { N G U } } }$ is defined as follows:
|
| 228 |
+
|
| 229 |
+
$$
|
| 230 |
+
r _ { t } ^ { \mathrm { N G U } } = r _ { t } ^ { \mathrm { { e p i s o d i c } } } \cdot \operatorname* { m i n } \left\{ \operatorname* { m a x } \left\{ \alpha _ { t } , 1 \right\} , L \right\} , \mathrm { ~ w i t h } r _ { t } ^ { \mathrm { e p i s o d i c } } = \frac { 1 } { \sqrt { \sum _ { f ( s _ { t } ) \in N _ { k } } K ( f ( s _ { t } ) , f ( s _ { i } ) ) + c ^ { 2 } } } .
|
| 231 |
+
$$
|
| 232 |
+
|
| 233 |
+
205 where $L$ is a fixed maximum reward scaling, $N _ { k }$ is the set containing the $k$ -nearest neighbors of $f ( s _ { t } )$
|
| 234 |
+
206 in $M$ , $c$ is a constant and $K : \mathbb { R } ^ { p } \times \mathbb { R } ^ { p } \to \mathbb { R } ^ { + }$ is a kernel function satisfying $K ( x , { \bar { x } } ) = 1$ (which
|
| 235 |
+
207 can be thought of as approximating pseudo-counts [48]). The episodic component of the reward
|
| 236 |
+
208 in Equation 1 is reset by emptying $M$ with each episode, thus the NGU reward does not vanish
|
| 237 |
+
209 throughout the training process. This makes it suitable for driving learning in task-agnostic settings.
|
| 238 |
+
210 Further details on NGU are reported in the supplementary material.
|
| 239 |
+
|
| 240 |
+
# 211 5 Experiments
|
| 241 |
+
|
| 242 |
+
212 Agents are evaluated in the Atari suite [7], a benchmark that presents a variety of challenges and that
|
| 243 |
+
213 is a common test ground for RL agents with unsupervised pre-training [28, 40, 52]. Experiments are
|
| 244 |
+
214 run using the distributed R2D2 agent [36] with 256 CPU actors and a single GPU learner. Policies
|
| 245 |
+
215 use the same Q-Network architecture as Agent57 [47], which is composed by a convolutional torso
|
| 246 |
+
216 followed by an LSTM [32] and a dueling head [58]. Hyperparameters and a detailed description of
|
| 247 |
+
217 the full distributed setting are provided in the supplementary material. All reported results are the
|
| 248 |
+
218 average over three random seeds.
|
| 249 |
+
219 Reward-free learning. The amount of task reward collected by unsupervised policies is often
|
| 250 |
+
220 used as a proxy to measure their quality [19]. While the actual utility of these policies will not
|
| 251 |
+
221 be revealed until they are leveraged for transfer, this proxy lets us evaluate whether the discovered
|
| 252 |
+
222 behavior changes as longer pre-training budgets are allowed. We compare unsupervised NGU policies
|
| 253 |
+
223 against VISR [28] and APT [40], which utilize a small amount of supervised interaction to adapt
|
| 254 |
+
224 the pre-trained policies. We also consider two additional unsupervised baselines: $( i )$ a constant
|
| 255 |
+
225 positive reward at each timestep that favours long episodes, which correlate with high scores in some
|
| 256 |
+
226 games [10], and (ii) RND [11], which rewards life-long novelty. Note that the RND reward vanishes,
|
| 257 |
+
227 but we include it in our analysis because it was previously used by Burda et al. [10] in this setting
|
| 258 |
+
228 and implementation choices such as reward normalization may prevent it from fading in practice.
|
| 259 |
+
229 Figure 2 (left) shows how the zero-shot transfer performance of unsupervised policies evolves during
|
| 260 |
+
230 a long pre-training phase. NGU reaches the highest scores, but both NGU and RND eventually
|
| 261 |
+
231 outperform VISR and APT even though these used supervised interaction. In Table 2 of Appendix
|
| 262 |
+
232 C we show that unsupervised NGU policies largely outperform several other baselines using the
|
| 263 |
+
233 standard pre-training and adaptation setting. These results highlight the importance of large-scale
|
| 264 |
+
234 unsupervised pre-training in RL, similarly to the trend observed in supervised domains [9].
|
| 265 |
+
|
| 266 |
+

|
| 267 |
+
Figure 2: Performance as a function of the pre-training budget. $@ N$ represents the number of frames with reward utilized for transfer. (Left) Median human normalized score across the 57 games in the Atari suite. We observe the emergence of useful behavior when optimizing an intrinsic reward during a long unsupervised pre-training of 16B frames, which contrasts with the shorter pre-training of 1B frames in previous works [28, 40]. (Right) Scores in the games of Montezuma’s Revenge (sparse rewards) and Pong (dense reward), before and after transfer, as a function of the pre-training budget. A longer pre-training benefits transfer in hard exploration games even if the zero-shot transfer score of the unsupervised policies does not increase.
|
| 268 |
+
|
| 269 |
+
Transfer setting. Transfer approaches are typically evaluated in the Atari benchmark with a budget of 100k RL interactions with reward (400k frames), but we propose to allow a longer adaptation phase. Randomly initialized networks tend to overfit in these very low data regimes without strong regularization [38], and we are interested in studying the impact of leveraging behavior both in isolation and combined with transfer via pre-trained weights. Moreover, since the pre-trained policies are already competent in the downstream tasks, $1 0 0 \mathrm { k }$ interactions are exhausted after few episodes and may be insufficient for improving performance. For these reasons, we provide results with up to 1.25B RL steps of supervised interaction (5B frames). This allows evaluating both convergence speed and asymptotic performance, while still being a relatively small budget for these distributed agents with hundreds of actors [47].
|
| 270 |
+
|
| 271 |
+
Transfer via behavior. We start by studying the impact of leveraging behavior in isolation, i.e. without transferring pre-trained weights, when learning in downstream tasks. We compare BT against two baselines that do not use pre-trained behavior, namely the standard R2D2 agent [36] that uses $\epsilon$ -greedy policies for exploration [55], as well as a variant of R2D2 with $\epsilon z$ -greedy exploration [14]. Figure 3 shows that BT is superior to both baselines for any amount of environment interaction with rewards, converging faster early in training and also obtaining higher asymptotic performance. These results also demonstrate the generality of the proposed approach, as it is able to benefit from both RND and NGU policies. Note that BT performs particularly well in the set of six hard exploration games1 defined by Bellemare et al. [6], which is aligned with our intuition that reusing behavior helps overcoming the inefficiency associated to unstructured exploration. Figure 2 (right) confirms that a long pre-training phase is especially important in hard exploration games such as Montezuma’s Revenge, even it they do not translate into higher zero-shot transfer scores, as it produces more exploratory behavior. On the other hand, the performance after transfer is independent of the amount of pre-training in dense reward games like Pong, where unstructured exploration is enough to reach optimal scores.
|
| 272 |
+
|
| 273 |
+

|
| 274 |
+
Figure 3: Median human normalized scores for R2D2-based agents trained from scratch. (Left) Full Atari suite. (Right) Subset of hard exploration games.
|
| 275 |
+
|
| 276 |
+

|
| 277 |
+
Figure 4: Usage of the extra action in $\mathrm { B T } ( \pi _ { \mathrm { N G U } } )$ , computed as the fraction of steps within an episode in which it is selected by the agent. The usage peaks early in training and slowly decreases afterwards as the new policy becomes stronger at the task.
|
| 278 |
+
|
| 279 |
+
259 Ablation studies. In order to gain insight on each of the components in BT, we run experiments
|
| 280 |
+
260 on a subset of 12 games2 requiring different amounts of exploration and featuring both dense and
|
| 281 |
+
261 sparse rewards. $\mathbf { B T } ( \pi _ { \mathrm { N G U } } )$ achieves a median score of 368 in this subset, which compares favorably
|
| 282 |
+
262 to the 196 median score of R2D2 with $\epsilon$ -greedy exploration. Removing either the extra action or
|
| 283 |
+
263 the temporally-extended exploration reduces the median score of $\mathbf { B T } ( \pi _ { \mathrm { N G U } } )$ to 224. These results
|
| 284 |
+
264 suggest that the gains provided by both strategies are complementary, and both are responsible for the
|
| 285 |
+
265 strong performance of BT. To provide further insight about the benefits of BT, Figure 4 reports the
|
| 286 |
+
266 fraction of steps per episode in which the extra action is selected by the greedy policy. It hints at the
|
| 287 |
+
267 emergence of a schedule over the usage of the pre-trained policy, which increases early in training
|
| 288 |
+
268 and decays afterwards. We hypothesize that this is due to the fact that the unsupervised policies
|
| 289 |
+
269 obtain large episodic returns, but their behavior is suboptimal when maximizing discounted rewards.
|
| 290 |
+
270 These policies take many exploratory actions in between rewards, and so the agent eventually figures
|
| 291 |
+
271 out more efficient strategies for reaching rewarding states by using primitive actions.
|
| 292 |
+
|
| 293 |
+
Transfer to multiple tasks. An appealing property of task-agnostic knowledge is that it can be leveraged to solve multiple tasks. In the RL setting, this can be evaluated by leveraging a single task-agnostic policy for solving multiple tasks (i.e. reward functions) in the same environment. We evaluate whether the unsupervised NGU policies can be useful beyond the standard Atari tasks by creating two alternative versions of Ms Pacman and Hero with different levels of difficulty. The goal in the modified version of Ms Pacman is to eat vulnerable ghosts, with pac-dots giving 0 (easy version) or $- 1 0$ (hard version) points. In the modified version of Hero, saving miners gives a fixed return of 1000 points and dynamiting walls gives either 0 (easy version) or $- 3 0 0$ (hard version) points. The rest of rewards are removed, e.g. eating fruit in Ms Pacman or the bonus for unused power units in Hero. Note that even in the easy version of the games exploration is harder than in their original counterparts, as there are no small rewards guiding the agent towards its goals. Exploration is even more challenging in the hard version of the games, as the intermediate rewards work as a deceptive signal that takes the agent away from its actual goal. In this case, finding rewarding behaviors requires a stronger commitment to an exploration strategy. Unsupervised NGU policies often achieve very low or even negative rewards in this setting, which contrasts with the strong performance they showed when evaluated under the standard game reward. Figure 5 shows that leveraging the behavior of pre-trained exploration policies provides important gains even in this adversarial scenario. These results suggest that the strong performance observed under the standard game rewards is not due to an
|
| 294 |
+
|
| 295 |
+

|
| 296 |
+
Figure 5: Scores in Atari games with modified reward functions. We train a single task-agnostic policy per environment, and leverage it to solve three different tasks: the standard game reward, a task with sparse rewards (easy), and a variant of the same task with deceptive rewards (hard).
|
| 297 |
+
|
| 298 |
+
90 alignment between the NGU reward and the game goals, but due to an efficient usage of pre-trained
|
| 299 |
+
1 exploration policies.
|
| 300 |
+
292 Combining pre-trained behavior and weights. Our last batch of experiments focuses on studying
|
| 301 |
+
293 transfer via pre-trained weights and its compatibility with BT. Policies are composed of a convo
|
| 302 |
+
294 lutional torso, an LSTM, and a dueling head. We consider two initialization strategies: a partial
|
| 303 |
+
295 initialization approach that loads the torso and the LSTM, but initializes the head randomly; and a
|
| 304 |
+
296 full initialization scheme where all weights are loaded. The former can be understood as transferring
|
| 305 |
+
297 learned representations [59], but deferring exploration to a random policy. On the other hand, the
|
| 306 |
+
298 full initialization approach can be seen as directly transferring the policy and is usually referred to as
|
| 307 |
+
299 fine-tuning the pre-trained policy [43, 40, 52]. Note that these approaches only change how weights
|
| 308 |
+
300 are initialized before training. As in previous experiments, all parameters in the new policy are trained
|
| 309 |
+
301 and $\pi _ { p }$ is kept fixed when using BT. Figure 6 (top) compares agents with and without BT for different
|
| 310 |
+
302 amounts of transfer via weights on the Atari benchmark. Loading pre-trained weights results in faster
|
| 311 |
+
303 learning early in training, both with and without BT. The largest gains are observed in dense reward
|
| 312 |
+
304 games, which translates into higher median scores across the full suite because most games belong
|
| 313 |
+
305 to this category. Weights alone are not enough in hard exploration games, where leveraging the
|
| 314 |
+
306 pre-trained policy via BT provides clear benefits. Perhaps surprisingly, we observe that transferring
|
| 315 |
+
307 representations outperforms fine-tuning the pre-trained policy, and we hypothesize that the former
|
| 316 |
+
308 is more robust to misalignments between the pre-trained policy and the downstream task. This
|
| 317 |
+
309 intuition is further supported by the experiments on games with modified reward functions reported
|
| 318 |
+
310 in Figure 6 (middle & bottom), where the faster learning provided by pre-trained weights often comes
|
| 319 |
+
311 at the cost of lower end scores. On the other hand, BT is crucial in tasks with sparse and deceptive
|
| 320 |
+
12 rewards and also benefits from pre-trained weights in tasks where positive transfer is observed.
|
| 321 |
+
|
| 322 |
+
# 6 Related work
|
| 323 |
+
|
| 324 |
+
314 Our work uses the experimental methodology presented by Hansen et al. [28]. Whereas that work only
|
| 325 |
+
315 considered a fast, simplified adaptation process that limited the final performance on the downstream
|
| 326 |
+
316 task, we focus on the more general case of using a previously trained policy to aid in solving the
|
| 327 |
+
317 full RL problem. Hansen et al. [28] use successor features to identify which of the pre-trained tasks
|
| 328 |
+
318 best matches the true reward structure, which has previously been shown to work well for multi-task
|
| 329 |
+
319 transfer [3]. Bagot et al. [1] augments an agent with the ability to utilize another policy, which is
|
| 330 |
+
320 learned in tandem based on an intrinsic reward function. This promising direction is complementary
|
| 331 |
+
321 to our work, as it handles the case wherein there is no unsupervised pre-training phase.
|
| 332 |
+
322 Gupta et al. [25] provides an alternative method to meta-learn a solver for reinforcement learning prob
|
| 333 |
+
323 lems from unsupervised reward functions. This method utilizes gradient-based meta-learning [20],
|
| 334 |
+
324 which makes the adaptation process standard reinforcement learning updates. This means that even if
|
| 335 |
+
325 the downstream reward is far outside of the training distribution, final performance would not neces
|
| 336 |
+
326 sarily be affected. However, these methods are hard to scale to the larger networks considered here,
|
| 337 |
+
327 and followup work [34] changed to memory-based meta-learning [17] which relies on information
|
| 338 |
+
328 about rewards staying in the recurrent state. This makes it unsuitable to the sort of hard exploration
|
| 339 |
+
329 problem our method excels at. Recent work has shown success in transferring representations learned
|
| 340 |
+
330 in an unsupervised setting to reinforcement learning tasks [54]. Our representation transfer experi
|
| 341 |
+
331 ments suggest that this might handicap final performance, but the possibility also exists that different
|
| 342 |
+
332 unsupervised objectives should be used for representation transfer and policy transfer.
|
| 343 |
+
|
| 344 |
+

|
| 345 |
+
Figure 6: Performance of R2D2-based agents with different amounts of transfer via weights. Policies are composed of a CNN encoder followed by an LSTM and a dueling head. We compare training from scratch, loading all weights (Full $\pi _ { \mathrm { N G U } }$ init) or all weights except those in the dueling head (Partial $\pi _ { \mathrm { { N G U } } }$ init). (Top) Median human normalized scores (HNS) in the full Atari suite (left) and the subset of hard exploration games (right). (Middle & Bottom) Games with modified reward functions as in Figure 5.
|
| 346 |
+
|
| 347 |
+
# 7 Discussion
|
| 348 |
+
|
| 349 |
+
We studied the problem of transferring pre-trained behavior for exploration in reinforcement learning, an approach that is complementary to the common practice of transferring neural network weights. Our proposed approach, Behavior Transfer (BT), relies on the pre-trained policy for collecting experience in two different ways: (i) through temporally-extended exploration, which can be triggered with some probability at any step, and $( i i )$ via one-step calls to the pre-trained policy based on value estimates. BT results in strong transfer performance when combined with exploratory policies pretrained in the absence of reward, with the most important gains being observed in hard exploration tasks. These benefits are not due to an alignment between our pre-training and downstream tasks, as we also observed positive transfer in games where the pre-trained policy obtained low scores. In order to provide further evidence for this claim, we designed alternative tasks for Atari games involving hard exploration and deceptive rewards. Our transfer strategy outperformed all considered baselines in these settings, even when the pre-trained policy obtained very low or even negative scores, demonstrating the generality of the method. Besides disambiguating the role of the alignment between pre-training and downstream tasks, these experiments demonstrate the utility of a single task-agnostic policy for solving multiple tasks in the same environment. Finally, we also demonstrated that BT can be combined with transfer via neural network weights to provide further gains.
|
| 350 |
+
|
| 351 |
+
350 Our experimental results highlight the importance of scale when training RL agents in reward-free
|
| 352 |
+
351 settings, which is one of the key factors behind the recent success of unsupervised approaches in other
|
| 353 |
+
352 domains. This contrasts with the small budgets considered for reward-free RL in previous works and
|
| 354 |
+
353 motivates further research in unsupervised RL approaches that scale with increased data and compute.
|
| 355 |
+
354 We argue that scale is one of the missing components in reward-free RL, and it will be a necessary
|
| 356 |
+
355 condition to unfold its full potential. Beyond improving the unsupervised learning phase, we are also
|
| 357 |
+
356 excited about the possibilities unlocked by BT and that are not possible when transferring knowledge
|
| 358 |
+
357 through weights, such as leveraging multiple pre-trained policies and deploying BT in continual
|
| 359 |
+
358 learning scenarios where the agent never stops learning and keeps accumulating knowledge and skills.
|
| 360 |
+
359 Future work should also study improved mechanisms for handing over control to pre-trained policies,
|
| 361 |
+
360 as well as prioritizing the usage of certain behaviors over others when multiple such policies are
|
| 362 |
+
361 available to the agent. This could overcome one of the current limitations of BT, which assumes that
|
| 363 |
+
362 flights can be started from any state and still produce meaningful behavior.
|
| 364 |
+
|
| 365 |
+
References [1] Louis Bagot, Kevin Mets, and Steven Latré. Learning intrinsically motivated options to stimulate policy exploration. In ICML Workshop on LifeLong Learning, 2020. [2] André Barreto, Will Dabney, Rémi Munos, Jonathan J Hunt, Tom Schaul, Hado P van Hasselt, and David Silver. Successor features for transfer in reinforcement learning. In NeurIPS, 2017. [3] Andre Barreto, Diana Borsa, John Quan, Tom Schaul, David Silver, Matteo Hessel, Daniel Mankowitz, Augustin Zidek, and Remi Munos. Transfer in deep reinforcement learning using successor features and generalised policy improvement. In ICML, 2018. [4] André Barreto, Shaobo Hou, Diana Borsa, David Silver, and Doina Precup. Fast reinforcement learning with generalized policy updates. Proceedings of the National Academy of Sciences, 2020. [5] Andrew G Barto and Sridhar Mahadevan. Recent advances in hierarchical reinforcement learning. Discrete event dynamic systems, 2003. [6] Marc Bellemare, Sriram Srinivasan, Georg Ostrovski, Tom Schaul, David Saxton, and Remi Munos. Unifying count-based exploration and intrinsic motivation. In NeurIPS, 2016. [7] Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 2013. [8] Diana Borsa, André Barreto, John Quan, Daniel Mankowitz, Rémi Munos, Hado van Hasselt, David Silver, and Tom Schaul. Universal successor features approximators. In ICLR, 2019. [9] Tom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020. [10] Yuri Burda, Harri Edwards, Deepak Pathak, Amos Storkey, Trevor Darrell, and Alexei A Efros. Large-scale study of curiosity-driven learning. arXiv preprint arXiv:1808.04355, 2018.
|
| 366 |
+
8 [11] Yuri Burda, Harrison Edwards, Amos Storkey, and Oleg Klimov. Exploration by random network distillation. arXiv preprint arXiv:1810.12894, 2018.
|
| 367 |
+
[12] Víctor Campos, Alexander Trott, Caiming Xiong, Richard Socher, Xavier Giro-i Nieto, and Jordi Torres. Explore, discover and learn: Unsupervised discovery of state-covering skills. In ICML, 2020. [13] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In ICML, 2020. [14] Will Dabney, Georg Ostrovski, and André Barreto. Temporally-extended -greedy exploration. In ICLR, 2021. [15] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In NAACL, 2019. [16] Jeff Donahue, Yangqing Jia, Oriol Vinyals, Judy Hoffman, Ning Zhang, Eric Tzeng, and Trevor Darrell. Decaf: A deep convolutional activation feature for generic visual recognition. In ICML, 2014.
|
| 368 |
+
[17] 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. [18] Lasse Espeholt, Hubert Soyer, Remi Munos, Karen Simonyan, Volodymyr Mnih, Tom Ward, Yotam Doron, Vlad Firoiu, Tim Harley, Iain Dunning, et al. IMPALA: Scalable distributed deep-RL with importance weighted actor-learner architectures. In ICML, 2018.
|
| 369 |
+
[19] Benjamin Eysenbach, Abhishek Gupta, Julian Ibarz, and Sergey Levine. Diversity is all you need: Learning skills without a reward function. In ICLR, 2019.
|
| 370 |
+
[20] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. arXiv preprint arXiv:1703.03400, 2017.
|
| 371 |
+
[21] Carlos Florensa, Yan Duan, and Pieter Abbeel. Stochastic neural networks for hierarchical reinforcement learning. In ICLR, 2017.
|
| 372 |
+
[22] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In CVPR, 2014.
|
| 373 |
+
[23] Karol Gregor, Danilo Jimenez Rezende, and Daan Wierstra. Variational intrinsic control. arXiv preprint arXiv:1611.07507, 2016.
|
| 374 |
+
[24] Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre H Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, et al. Bootstrap your own latent: A new approach to self-supervised learning. arXiv preprint arXiv:2006.07733, 2020.
|
| 375 |
+
[25] Abhishek Gupta, Benjamin Eysenbach, Chelsea Finn, and Sergey Levine. Unsupervised meta-learning for reinforcement learning. arXiv preprint arXiv:1806.04640, 2018.
|
| 376 |
+
[26] David Ha and Jürgen Schmidhuber. Recurrent world models facilitate policy evolution. In NeurIPS, 2018.
|
| 377 |
+
[27] Danijar Hafner, Timothy Lillicrap, Jimmy Ba, and Mohammad Norouzi. Dream to control: Learning behaviors by latent imagination. In ICLR, 2019.
|
| 378 |
+
[28] Steven Hansen, Will Dabney, Andre Barreto, Tom Van de Wiele, David Warde-Farley, and Volodymyr Mnih. Fast task inference with variational intrinsic successor features. In ICLR, 2020.
|
| 379 |
+
[29] Elad Hazan, Sham M Kakade, Karan Singh, and Abby Van Soest. Provably efficient maximum entropy exploration. In ICML, 2019.
|
| 380 |
+
[30] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. arXiv preprint arXiv:1911.05722, 2019.
|
| 381 |
+
[31] Olivier J Hénaff, Ali Razavi, Carl Doersch, SM Eslami, and Aaron van den Oord. Data-efficient image recognition with contrastive predictive coding. arXiv preprint arXiv:1905.09272, 2019.
|
| 382 |
+
[32] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 1997.
|
| 383 |
+
[33] Dan Horgan, John Quan, David Budden, Gabriel Barth-Maron, Matteo Hessel, Hado Van Hasselt, and David Silver. Distributed prioritized experience replay. arXiv preprint arXiv:1803.00933, 2018.
|
| 384 |
+
[34] Allan Jabri, Kyle Hsu, Abhishek Gupta, Ben Eysenbach, Sergey Levine, and Chelsea Finn. Unsupervised curricula for visual meta-reinforcement learning. In Advances in Neural Information Processing Systems, pages 10519–10531, 2019.
|
| 385 |
+
[35] Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020.
|
| 386 |
+
[36] Steven Kapturowski, Georg Ostrovski, John Quan, Remi Munos, and Will Dabney. Recurrent experience replay in distributed reinforcement learning. In ICLR, 2019.
|
| 387 |
+
[37] Michael Kearns and Satinder Singh. Near-optimal reinforcement learning in polynomial time. Machine learning, 2002.
|
| 388 |
+
[38] Ilya Kostrikov, Denis Yarats, and Rob Fergus. Image augmentation is all you need: Regularizing deep reinforcement learning from pixels. In ICLR, 2021.
|
| 389 |
+
[39] Lisa Lee, Benjamin Eysenbach, Emilio Parisotto, Eric Xing, Sergey Levine, and Ruslan Salakhutdinov. Efficient exploration via state marginal matching. arXiv preprint arXiv:1906.05274, 2019.
|
| 390 |
+
[40] Hao Liu and Pieter Abbeel. Behavior from the void: Unsupervised active pre-training. arXiv preprint arXiv:2103.04551, 2021.
|
| 391 |
+
[41] Yao Liu and Emma Brunskill. When simple exploration is sample efficient: Identifying sufficient conditions for random exploration to yield pac rl algorithms. arXiv preprint arXiv:1805.09045, 2018.
|
| 392 |
+
[42] Shakir Mohamed and Danilo Jimenez Rezende. Variational information maximisation for intrinsically motivated reinforcement learning. In NeurIPS, 2015.
|
| 393 |
+
[43] Mirco Mutti, Lorenzo Pratissoli, and Marcello Restelli. Task-agnostic exploration via policy gradient of a non-parametric state entropy estimate. In AAAI, 2021.
|
| 394 |
+
[44] Ian Osband, Charles Blundell, Alexander Pritzel, and Benjamin Van Roy. Deep exploration via bootstrapped dqn. arXiv preprint arXiv:1602.04621, 2016.
|
| 395 |
+
[45] Ian Osband, Benjamin Van Roy, and Zheng Wen. Generalization and exploration via randomized value functions. In ICML, 2016.
|
| 396 |
+
[46] Deepak Pathak, Pulkit Agrawal, Alexei A Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In ICML, 2017.
|
| 397 |
+
[47] Adrià Puigdomènech Badia, Bilal Piot, Steven Kapturowski, Pablo Sprechmann, Alex Vitvitskyi, Daniel Guo, and Charles Blundell. Agent57: Outperforming the atari human benchmark. In ICML, 2020.
|
| 398 |
+
[48] Adrià Puigdomènech Badia, Pablo Sprechmann, Alex Vitvitskyi, Daniel Guo, Bilal Piot, Steven Kapturowski, Olivier Tieleman, Martín Arjovsky, Alexander Pritzel, Andew Bolt, et al. Never give up: Learning directed exploration strategies. In ICLR, 2020.
|
| 399 |
+
[49] Martin L Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming. John Wiley & Sons, Inc., 1994.
|
| 400 |
+
[50] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI Blog, 2019.
|
| 401 |
+
[51] Christoph Salge, Cornelius Glackin, and Daniel Polani. Empowerment – an introduction. In Guided Self-Organization: Inception. Springer, 2014.
|
| 402 |
+
[52] Max Schwarzer, Nitarshan Rajkumar, Michael Noukhovitch, Ankesh Anand, Laurent Charlin, R Devon Hjelm, Philip Bachman, and Aaron Courville. Pretraining reward-free representations for data-efficient reinforcement learning. In Self-Supervision for Reinforcement Learning Workshop - ICLR 2021, 2021. URL https://openreview.net/forum?id $\underset { . } { = }$ o5z9Le5drua.
|
| 403 |
+
[53] Ramanan Sekar, Oleh Rybkin, Kostas Daniilidis, Pieter Abbeel, Danijar Hafner, and Deepak Pathak. Planning to explore via self-supervised world models. In ICML, 2020.
|
| 404 |
+
[54] Adam Stooke, Kimin Lee, Pieter Abbeel, and Michael Laskin. Decoupling representation learning from reinforcement learning. arXiv preprint arXiv:2009.08319, 2020.
|
| 405 |
+
[55] Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press, 2018.
|
| 406 |
+
[56] Richard S Sutton, Doina Precup, and Satinder Singh. Between mdps and semi-mdps: A framework for temporal abstraction in reinforcement learning. Artificial intelligence, 1999.
|
| 407 |
+
[57] Gandhimohan M Viswanathan, V Afanasyev, SV Buldyrev, EJ Murphy, PA Prince, and H Eugene Stanley. Lévy flight search patterns of wandering albatrosses. Nature, 1996.
|
| 408 |
+
[58] Ziyu Wang, Tom Schaul, Matteo Hessel, Hado Hasselt, Marc Lanctot, and Nando Freitas. Dueling network architectures for deep reinforcement learning. In ICML, 2016.
|
| 409 |
+
[59] Denis Yarats, Rob Fergus, Alessandro Lazaric, and Lerrel Pinto. Reinforcement learning with prototypical representations. In ICML, 2021.
|
| 410 |
+
[60] Jason Yosinski, Jeff Clune, Yoshua Bengio, and Hod Lipson. How transferable are features in deep neural networks? arXiv preprint arXiv:1411.1792, 2014.
|
| 411 |
+
[61] Matthew D Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In ECCV, 2014.
|
| 412 |
+
|
| 413 |
+
# Checklist
|
| 414 |
+
|
| 415 |
+
The checklist follows the references. Please read the checklist guidelines carefully for information on how to answer these questions. For each question, change the default [TODO] to [Yes] , [No] , or [N/A] . You are strongly encouraged to include a justification to your answer, either by referencing the appropriate section of your paper or providing a brief inline description. For example:
|
| 416 |
+
|
| 417 |
+
• Did you include the license to the code and datasets? [No] The code and the data are proprietary.
|
| 418 |
+
|
| 419 |
+
Please do not modify the questions and only use the provided macros for your answers. Note that the Checklist section does not count towards the page limit. In your paper, please delete this instructions block and only keep the Checklist section heading above along with the questions/answers below.
|
| 420 |
+
|
| 421 |
+
1. For all authors...
|
| 422 |
+
|
| 423 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 424 |
+
(b) Did you describe the limitations of your work? [Yes]
|
| 425 |
+
(c) Did you discuss any potential negative societal impacts of your work? [N/A]
|
| 426 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 427 |
+
|
| 428 |
+
2. If you are including theoretical results...
|
| 429 |
+
|
| 430 |
+
(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
|
| 431 |
+
|
| 432 |
+
3. If you ran experiments...
|
| 433 |
+
|
| 434 |
+
(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [No] We did not include source code because it relies on non-public libraries that are specific to our distributed hardware setting. However, we include all the details needed to replicate our experiments.
|
| 435 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes]
|
| 436 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] All our experiments were run with three different random seeds. Plots report mean, min and max results. Tables report mean and standard deviation.
|
| 437 |
+
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes]
|
| 438 |
+
|
| 439 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 440 |
+
|
| 441 |
+
(a) If your work uses existing assets, did you cite the creators? [N/A]
|
| 442 |
+
(b) Did you mention the license of the assets? [N/A]
|
| 443 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
|
| 444 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
|
| 445 |
+
|
| 446 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
|
| 447 |
+
|
| 448 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 449 |
+
|
| 450 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 451 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 452 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/train/gG4j9PybfwI/gG4j9PybfwI_content_list.json
ADDED
|
@@ -0,0 +1,808 @@
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Beyond Fine-Tuning: Transferring Behavior in Reinforcement Learning ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
194,
|
| 8 |
+
122,
|
| 9 |
+
803,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
423,
|
| 19 |
+
226,
|
| 20 |
+
580,
|
| 21 |
+
281
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
318,
|
| 32 |
+
535,
|
| 33 |
+
334
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "1 Designing agents that acquire knowledge autonomously and use it to solve new \n2 tasks efficiently is an important challenge in reinforcement learning. Knowledge \n3 acquired during an unsupervised pre-training phase is often transferred by fine \n4 tuning neural network weights once rewards are exposed, as is common practice \n5 in supervised domains. Given the nature of the reinforcement learning problem, \n6 we argue that standard fine-tuning strategies alone are not enough for efficient \n7 transfer in challenging domains. We introduce Behavior Transfer (BT), a technique \n8 that leverages pre-trained policies for exploration and that is complementary to \n9 transferring neural network weights. Our experiments show that, when combined \n10 with large-scale pre-training in the absence of rewards, existing intrinsic motivation \n11 objectives can lead to the emergence of complex behaviors. These pre-trained \n12 policies can then be leveraged by BT to discover better solutions than without \n13 pre-training, and combining BT with standard fine-tuning strategies results in \n14 additional benefits. The largest gains are generally observed in domains requiring \n15 structured exploration, including settings where the behavior of the pre-trained \n16 policies is misaligned with the downstream task. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
148,
|
| 42 |
+
349,
|
| 43 |
+
766,
|
| 44 |
+
570
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "17 1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
148,
|
| 54 |
+
598,
|
| 55 |
+
310,
|
| 56 |
+
616
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "18 Transfer in deep learning is often performed through parameter initialization followed by fine-tuning, \n19 a technique that allows to leverage the power of deep networks in domains where labelled data \n20 is scarce [60, 16, 61, 22, 15]. This builds on the intuition that the pre-trained model will map \n21 inputs to a feature space where the downstream task is easy to perform. When combined with \n22 methods that can leverage massive amounts of unlabelled data for pre-training, this transfer strategy \n23 has led to unprecedented results in domains like computer vision [31, 30] and natural language \n24 processing [15, 50]. The success of these approaches has led to an ever-growing interest in developing \n25 techniques for pre-training large scale models on unlabelled data [9, 13, 24]. \n26 In the reinforcement learning (RL) context, unsupervised methods that learn in the absence of reward \n27 have also garnered much research attention [23, 21, 46, 19, 29]. The benefits of unsupervised pre \n28 training are typically evaluated by their ability to enable efficient transfer to previously unseen reward \n29 functions [28]. In spite of their different approaches to unsupervised RL, most of the top-performing \n30 methods in this setting transfer knowledge through neural network weights. Such approaches deal \n31 with the data inefficiency associated to training neural networks with gradient descent, similarly to \n32 what is done in supervised learning, e.g. by pre-training encoders that extract representations from \n33 observations [59]. However, RL introduces a challenge that is not present in supervised learning: the \n34 agent is responsible for collecting the right data to learn from. This introduces a second source of \n35 inefficiency from which transfer approaches can also suffer if they rely on unstructured exploration \n36 strategies after pre-training, as these can lead to exponentially larger data requirements in complex \n37 downstream environments [45, 44]. To address this problem, one could consider fine-tuning policies \n38 that produce meaningful behavior [43, 52], but this approach quickly disregards the pre-trained \n39 behavior when learning in the downstream task due to catastrophic forgetting. \n40 In this work, we explicitly separate the transfer of behaviour and weights. We propose to make \n41 use of the pre-trained behaviour itself (i.e., the pre-trained policy mapping from observations to \n42 actions) in contrast to pre-trained neural network weights for further fine-tuning. While pre-trained \n43 behavior has been used before for exploitation [5, 56, 2, 3], our approach employs pre-trained policies \n44 to aid with exploration as well to collect experience that can be leveraged via off-policy learning. \n45 This strategy accelerates learning, as the agent is exposed to potentially useful experience earlier in \n46 training, without compromising the quality of the discovered solution when the pre-trained behavior \n47 is not aligned with the downstream task. We expose the pre-trained behaviour to the downstream \n48 agent in two ways: firstly, as an extra exploratory strategy that, when randomly activated, persists for \n49 a number of steps, and secondly as an additional pseudo-action for the learned value function where \n50 the agent may elect to defer action selection to the pre-trained policy instead of choosing itself. We \n51 call this approach Behavior Transfer (BT). \n52 Defining unsupervised RL objectives remains an open problem, and solutions are generally influenced \n53 by how the acquired knowledge will be used for solving downstream tasks. Instead of proposing yet \n54 another objective for unsupervised pre-training, we turn to existing techniques for training policies in \n55 the absence of reward and make our choice based on two general requirements. First, the objective \n56 should scale gracefully with increased compute and data. This has been key for the success of \n57 self-supervised approaches in other domains [9, 35], and we argue that it is an important property for \n58 unsupervised RL as well. Second, the pre-training stage should return a policy that produces complex \n59 behavior that may be leveraged in a subsequent transfer stage. The Never Give Up (NGU) [48] \n60 intrinsic reward meets both requirements, and our experiments show that large-scale pre-training with \n61 this objective leads to state of the art scores in the reward-free Atari benchmark. \n62 Figure 1 exemplifies our main findings. We pre-train behaviour using the intrinsic NGU reward during \n63 a long unsupervised phase without rewards. This gives rise to exploratory behaviors that seek to visit \n64 many different states throughout an episode, and we then compare different strategies for leveraging \n65 the acquired knowledge once rewards are reinstated. While fine-tuning the pre-trained weights \n66 enables faster learning, the exploratory behavior of the pre-trained policy is quickly disregarded as it \n67 is exposed to rewards. On the other hand, Behavior Transfer (BT) does not modify the pre-trained \n68 policy while learning in the new task and is able to achieve higher end scores thanks to better \n69 exploration. These two strategies are not mutually exclusive, and BT also benefits from the faster \n70 convergence provided by initializing neural networks with pre-trained weights when these encode \n71 useful information for solving the downstream task. \n72 Our contributions can be summarized as follows. (1) We propose Behavior Transfer (BT), a technique \n73 that leverages pre-trained policies for exploration by treating them as black boxes that are not modified \n74 during learning on the downstream task. BT uses the pre-trained policy to collect experience in \n75 two ways, namely randomly-triggered temporally-extended exploration and one-step calls based on \n76 value estimates. (2) Our experiments show that large-scale unsupervised pre-training with existing \n77 intrinsic rewards can produce meaningful behavior, achieving state of the art results in the reward-free \n78 Atari benchmark. These results suggest that scale is key for unsupervised RL, akin to what has been \n79 observed in supervised settings. (3) We provide extensive empirical evidence demonstrating the \n80 benefits of leveraging pre-trained behavior via BT. Our approach obtains the largest gains in hard \n81 exploration games, where it almost doubles the median human normalized score achieved by our \n82 strongest baseline. Furthermore, we show that BT is able to leverage a single task-agnostic policy \n83 to solve multiple tasks in the same environment and to achieve high performance even when the \n84 pre-trained policies are misaligned with the task being solved. (4) BT brings benefits to the table \n85 that are complementary to those provided by reusing pre-trained neural network weights, and we \n86 empirically show that combining these two strategies can result in larger gains. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
147,
|
| 65 |
+
631,
|
| 66 |
+
825,
|
| 67 |
+
741
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "",
|
| 74 |
+
"bbox": [
|
| 75 |
+
145,
|
| 76 |
+
747,
|
| 77 |
+
825,
|
| 78 |
+
900
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "image",
|
| 84 |
+
"img_path": "images/696568b2c84f51d1ef7c367946f1a4c3d2eebbbcb736aedca9ae66aae814bfa2.jpg",
|
| 85 |
+
"image_caption": [
|
| 86 |
+
"Figure 1: Comparison of transfer strategies on Montezuma’s Revenge and Defender after pre-training a policy with NGU [48] in the absence of reward. The benefits of our proposed approach to leverage pre-trained behavior for exploration, Behavior Transfer (BT), are complementary to the gains provided by pre-trained weight initialization followed by fine-tuning. "
|
| 87 |
+
],
|
| 88 |
+
"image_footnote": [],
|
| 89 |
+
"bbox": [
|
| 90 |
+
178,
|
| 91 |
+
90,
|
| 92 |
+
818,
|
| 93 |
+
195
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 1
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "text",
|
| 99 |
+
"text": "",
|
| 100 |
+
"bbox": [
|
| 101 |
+
147,
|
| 102 |
+
290,
|
| 103 |
+
825,
|
| 104 |
+
333
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "",
|
| 111 |
+
"bbox": [
|
| 112 |
+
147,
|
| 113 |
+
339,
|
| 114 |
+
825,
|
| 115 |
+
505
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "",
|
| 122 |
+
"bbox": [
|
| 123 |
+
145,
|
| 124 |
+
511,
|
| 125 |
+
825,
|
| 126 |
+
648
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "",
|
| 133 |
+
"bbox": [
|
| 134 |
+
145,
|
| 135 |
+
656,
|
| 136 |
+
825,
|
| 137 |
+
794
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "",
|
| 144 |
+
"bbox": [
|
| 145 |
+
147,
|
| 146 |
+
800,
|
| 147 |
+
825,
|
| 148 |
+
911
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "",
|
| 155 |
+
"bbox": [
|
| 156 |
+
147,
|
| 157 |
+
92,
|
| 158 |
+
825,
|
| 159 |
+
189
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 2
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "87 2 Preliminaries ",
|
| 166 |
+
"text_level": 1,
|
| 167 |
+
"bbox": [
|
| 168 |
+
147,
|
| 169 |
+
207,
|
| 170 |
+
318,
|
| 171 |
+
224
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 2
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "88 The interaction between the agent and the environment is modelled as a Markov Decission Pro \n89 cess (MDP) [49]. An MDP is defined by the tuple $( S , A , P , d _ { 0 } , R , \\gamma )$ where $s$ and $\\mathcal { A }$ are the state \n90 and action spaces, $P ( s ^ { \\prime } | s , a )$ is the probability of transitioning from state $s$ to $s ^ { \\prime }$ after taking action $a$ \n91 $d _ { 0 } ( s )$ is the probability distribution over initial states, $R : S \\times \\mathcal { A } \\times \\mathcal { S } \\mathbb { R }$ is the reward function, \n92 and retu $\\gamma \\in [ 0 , 1 )$ $\\begin{array} { r } { \\dot { G } _ { t } = \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } R _ { t } } \\end{array}$ unt fact, where $R _ { t } = r \\hat { ( } S _ { t } , A _ { t } , S _ { t + 1 } )$ a policy . A prin $\\pi ( a | s )$ that maximizes the expected way to address this problem \n94 is to use methods that compute action-value functions, $Q ^ { \\pi } ( \\bar { s } , a ) \\overset { - } { = } \\mathbb { E } _ { \\pi } \\left[ G _ { t } \\vert S _ { t } = s , A _ { t } = a \\right]$ , where \n95 $\\mathbb { E } _ { \\pi } [ \\cdot ]$ denotes expectation over transitions induced by $\\pi$ [49]. \n96 We consider a setting where the agent is allowed to first learn within an MDP without rewards, \n97 $\\boldsymbol { \\mathcal { M } } ^ { R } = ( \\boldsymbol { \\mathcal { S } } , \\boldsymbol { \\mathcal { A } } , P , d _ { 0 } )$ , for a long period of time. The knowledge acquired during the reward-free \n98 stage is later leveraged when maximizing reward in new MDPs that share the same underlying \n99 dynamics but have different reward functions, $\\mathcal { M } _ { i } = ( S , A , P , d _ { 0 } , R _ { i } , \\gamma _ { i } )$ . Interactions between the \n100 agent and the environment are often assumed to incur a cost, but we will consider this cost to be \n101 relevant only for transitions with reward [28]. Even if the cost of unsupervised pre-training becomes \n102 non-negligible, it can be amortized when the acquired task-agnostic knowledge is leveraged to solve \n103 multiple tasks efficiently [15, 9]. Indeed, we would expect this transfer setting to become more \n104 relevant as the community moves towards more complex environments, where one may want to \n105 train agents to maximize multiple reward functions under constant dynamics. In the limit, one could \n106 consider the real world: it has constant or slowly changing dynamics, and humans are able to leverage \n107 previously acquired skills to quickly master new tasks. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
147,
|
| 180 |
+
237,
|
| 181 |
+
825,
|
| 182 |
+
349
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 2
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "",
|
| 189 |
+
"bbox": [
|
| 190 |
+
142,
|
| 191 |
+
354,
|
| 192 |
+
825,
|
| 193 |
+
523
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 2
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "108 3 Behavior Transfer ",
|
| 200 |
+
"text_level": 1,
|
| 201 |
+
"bbox": [
|
| 202 |
+
150,
|
| 203 |
+
542,
|
| 204 |
+
357,
|
| 205 |
+
559
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 2
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "109 Transfer in supervised domains often exploits the fact that related tasks might be solved using similar \n110 representations. This practice deals with the data inefficiency of training large neural networks \n111 with stochastic gradient descent. However, there is an additional source of data inefficiency when \n112 training RL agents: unstructured exploration. Fine-tuning a pre-trained exploratory policy arises as \n113 a potential strategy for overcoming this problem, as the agent will observe rich experience much \n114 earlier in training than when initializing the policy randomly, but this approach suffers from important \n115 limitations. Learning in the downstream task can lead to catastrophically forgetting the pre-trained \n116 policy, thus prematurely disregarding its exploratory behavior. Moreover, the same neural network \n117 architecture needs to be used for both the pre-trained and the downstream policies, which in practice \n118 also imposes a limitation on the type of RL methods that can be employed in the adaptation stage (for \n119 instance, if the pre-trained policy was trained using a policy-based method, it might not be possible \n120 to fine-tune it using a value-based approach). \n121 Let us assume that we have access to a pre-trained policy that exhibits exploratory behavior, and \n122 defer the discussion on how to train this policy to Section 4. Following such a policy might bring \n123 the agent to states that are unlikely to be visited with unstructured exploration techniques such as \n124 $\\epsilon$ -greedy [55]. This property has the potential of accelerating learning even when the behavior of \n125 the pre-trained policy is not aligned with the downstream task, as it will effectively shorten the \n126 path between otherwise distant states [41]. Leveraging pre-trained policies for exploration differs \n127 from other approaches in the literature that use such policies directly for exploitation, e.g. via \n128 zero-shot transfer [19], methods that define a higher-level policy that alternates between the given \n129 policies [5, 56], or within the framework of generalized policy updates [4]. Exploring with pre-trained \n130 policies can accelerate convergence by providing useful experience to the agent, which is possible \n131 even when the pre-training and downstream tasks are misaligned. However, strategies that directly \n132 use the pre-trained policies for exploitation may result in sub-optimal solutions in such scenario [2]. \n133 We propose to leverage the behavior of pre-trained policies during transfer to aid with exploration. An \n134 explicit distinction between behavior and representation is made by considering pre-trained policies as \n135 black boxes that take observations and return actions. This strategy is agnostic to how the pre-trained \n136 behavior is encoded and is not restricted to learned policies. We rely on off-policy learning methods \n137 during transfer to leverage the behavior of a pre-trained policy $\\bar { \\pi _ { p } ( a | s ) }$ . We keep $\\pi _ { p }$ fixed during \n138 transfer, which prevents catastrophic forgetting of the original behavior when it is parameterized by a \n139 neural network (i.e., we instantiate and train a new policy with its own set of parameters). We propose \n140 Behavior Transfer (BT), which leverages two complementary strategies to achieve this. Since BT \n141 is agnostic to the method used to pre-train policies, $B T ( \\pi _ { p } )$ refers to behavior being transferred \n142 from policy $\\pi _ { p }$ . We formalize BT in the context of value-based Q-learning agents, although similar \n143 derivations are in principle possible for alternative off-policy learning methods. Pseudo-code for BT \n144 is provided in Algorithm 1. \n145 Temporally-extended exploration. We draw inspiration from Lévy flights [57], a class of ecological \n146 models for animal foraging, where a fixed direction is followed for a duration sampled from a \n147 heavy-tailed distribution. This principle was implemented in the context of exploration in RL by \n148 $\\epsilon z$ -greedy [14], which encodes the notion of direction in the environment via exploration options that \n149 repeat the same action throughout the entire flight. Since $\\pi _ { p }$ is more likely to encode a meaningful \n150 notion of direction in complex environments than action repeats, we propose a variant of $\\epsilon z$ -greedy \n151 where $\\pi _ { p }$ is used as the exploration option. An exploratory flight might be started at any step with \n152 some probability. The duration for the flight is sampled from a heavy-tailed distribution (Zeta with \n153 $\\mu = 2$ in all our experiments), and control is handed over to $\\pi _ { p }$ during the complete flight. When not \n154 in a flight, actions are sampled from the behavior policy obtained while maximizing the task reward \n155 (e.g. an $\\epsilon$ -greedy derived from the estimated Q values). \n156 Extra action. The previous approach switches to $\\pi _ { p }$ during experience collection blindly, and we \n157 now consider an alternative strategy for triggering these switches based on value. This can be easily \n158 implemented through an extra action which samples an action from $\\pi _ { p }$ , which also allows the agent to \n159 use the pre-trained policy at test time if deemed beneficial. More formally, this amounts to training a \n160 policy over an expanded action set $\\mathcal { A } ^ { + } = \\mathcal { A } \\cup \\{ a _ { + } \\}$ , where $a _ { + }$ is resolved by sampling an action from \n161 $\\pi _ { p }$ , $a ^ { \\prime } \\sim \\pi _ { p } ( s )$ (with $a ^ { \\prime } \\in { \\mathcal { A } }$ ). The additional action can be seen as an option that can be initiated \n162 from any state and always terminates after a single step. Note that selecting the option will lead to \n163 the same outcome as if the agent had selected $a ^ { \\prime }$ as a primitive action, and we take advantage of this \n164 observation by using the return of following the option as target to fit both $Q ( s , \\pi _ { p } ( s ) )$ and $Q ( s , a ^ { \\prime } )$ . \n165 Intuitively, this approach induces a bias that favours actions selected by $\\pi _ { p }$ , accelerating the collection \n166 of rewarding transitions when the pre-trained policy is somewhat aligned with the downstream task. \n167 Otherwise, the agent can learn to ignore $\\pi _ { p }$ as training progresses by selecting other actions. ",
|
| 212 |
+
"bbox": [
|
| 213 |
+
140,
|
| 214 |
+
573,
|
| 215 |
+
825,
|
| 216 |
+
739
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 2
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "",
|
| 223 |
+
"bbox": [
|
| 224 |
+
140,
|
| 225 |
+
746,
|
| 226 |
+
825,
|
| 227 |
+
911
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "",
|
| 234 |
+
"bbox": [
|
| 235 |
+
140,
|
| 236 |
+
92,
|
| 237 |
+
825,
|
| 238 |
+
257
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 3
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "",
|
| 245 |
+
"bbox": [
|
| 246 |
+
140,
|
| 247 |
+
263,
|
| 248 |
+
825,
|
| 249 |
+
416
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 3
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "",
|
| 256 |
+
"bbox": [
|
| 257 |
+
143,
|
| 258 |
+
421,
|
| 259 |
+
825,
|
| 260 |
+
588
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 3
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "text",
|
| 266 |
+
"text": "Algorithm 1: Experience collection pseudo-code for BT ",
|
| 267 |
+
"text_level": 1,
|
| 268 |
+
"bbox": [
|
| 269 |
+
173,
|
| 270 |
+
608,
|
| 271 |
+
545,
|
| 272 |
+
623
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 3
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "Input: Action set, $\\mathcal { A }$ ; additional action, $a _ { + }$ ; extended action set, $\\mathcal { A } ^ { + } = \\mathcal { A } \\cup \\{ a _ { + } \\}$ ; pre-trained policy, $\\pi _ { p }$ ; Q-value estimate for the current policy, $Q ^ { \\pi } ( s , a ) \\forall a \\in A ^ { + }$ ; probability of taking an exploratory action, $\\epsilon$ ; probability of starting a flight, $\\epsilon _ { \\mathrm { l e v y } }$ ; flight length distribution, $\\mathcal { D } ( \\mathbb { N } )$ \nwhile True do $n \\gets 0$ // flight length while episode not ended do Observe state $s$ if $n = = 0$ and random $) \\le \\epsilon _ { l e v y }$ then $n \\sim \\mathcal { D } ( \\mathbb { N } )$ // sample flight length if $n > 0$ then $\\begin{array} { l } { n n - 1 } \\\\ { a \\sim \\pi _ { p } ( s ) } \\end{array}$ else if random $) \\leq \\epsilon$ then $a \\sim \\operatorname { U n i f o r m } ( \\mathcal { A } ^ { + } )$ else $a \\gets \\arg \\operatorname* { m a x } _ { a ^ { \\prime } \\in \\mathcal { A } ^ { + } } [ Q ^ { \\pi } ( s , a ^ { \\prime } ) ]$ if $a = = a _ { + }$ then $a \\sim \\pi _ { p } ( s )$ end Take action $a$ end \nend ",
|
| 279 |
+
"bbox": [
|
| 280 |
+
171,
|
| 281 |
+
627,
|
| 282 |
+
812,
|
| 283 |
+
895
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 3
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "text",
|
| 289 |
+
"text": "169 It is a common practice to derive objectives for proxy tasks in order to drive learning in the absence \n170 of reward functions, and there exists a plethora of different approaches in the literature. Model-based \n171 approaches can learn world models from unsupervised interaction [26]. However, the diversity of \n172 the training data will impact the accuracy of the model [53] and deploying this type of approach \n173 in visually complex domains like Atari remains an open problem [27]. Unsupervised RL has also \n174 been explored through the lens of empowerment [51, 42], which studies agents that aim to discover \n175 intrinsic options [23, 19]. While these options can be leveraged by hierarchical agents [21] or \n176 integrated within the universal successor features framework [2, 3, 8, 28], their potential lack of \n177 coverage generally limits their applicability to complex downstream tasks [12]. An alternative \n178 objective is that of exploring the environment by finding policies that induce maximally entropic state \n179 distributions [29, 39], although this might become extremely inefficient in high-dimensional state \n180 spaces without proper priors [40, 59]. \n181 Recall that our goal is to devise a pre-training objective that can help reduce the amount of interaction \n182 needed by the agent to collect relevant experience when learning in a downstream task. We argue that \n183 such objective needs to meet two requirements. First, as suggested by results in other domains [9, 35], \n184 it should scale gracefully as the amount of compute and experience used for pre-training are increased. \n185 This contrasts with the training regimes used in most unsupervised RL approaches, which use a \n186 relatively small amount of experience [28, 40, 59] when compared to distributed agents that do make \n187 use of rewards [33, 18, 36]. Second, it must encourage the emergence of complex behaviors such as \n188 navigation or manipulation skills. It has been argued that exploring the environment efficiently will \n189 serve as a proxy for developing such behaviors [37], and exploration bonuses have been shown to \n190 produce meaningful behavior in the absence of reward [46, 10]. However, many exploration bonuses \n191 vanish over the course of training and thus may not be well-suited for a long unsupervised pre-training \n192 phase. It can be shown that many intrinsic rewards aim at maximizing the entropy of all states visited \n193 during training, and so the final policy does not necessarily exhibit exploratory behavior [39]. \n194 We propose to use Never Give Up (NGU) [48] as a means for training exploratory policies in an \n195 unsupervised setting. The NGU intrinsic reward proposes a curiosity-driven approach for training \n196 persistent exploratory policies which combines per-episode and life-long novelty. The per-episode \n197 novelty, $r _ { t } ^ { \\mathrm { e p i s o d i c } }$ , rapidly vanishes over the course of an episode, and it is designed to encourage self \n198 avoiding trajectories. It is computed by comparing a representation of the current observation, $f ( s _ { t } )$ , \n199 to those of all the observations visited in the current episode, $M = \\{ f ( s _ { 0 } ) , f ( s _ { 1 } ) , \\dotsc , f ( s _ { t - 1 } ) \\}$ , \n200 where $f : \\mathcal { S } \\mathbb { R } ^ { p }$ is an embedding function trained using a self-supervised inverse dynamics \n201 model [46]. Such a mapping concentrates on the controllable aspects of the environment, ignoring \n202 all the variability present in the observation that is not affected by the action taken by the agent. \n203 The life-long novelty, $\\alpha _ { t }$ , slowly vanishes throughout training, and it is computed by using Random \n204 Network Distillation (RND) [11]. With this, the intrinsic reward $r _ { t } ^ { \\mathrm { { N G U } } }$ is defined as follows: ",
|
| 290 |
+
"bbox": [
|
| 291 |
+
140,
|
| 292 |
+
119,
|
| 293 |
+
825,
|
| 294 |
+
286
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 4
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "text",
|
| 300 |
+
"text": "",
|
| 301 |
+
"bbox": [
|
| 302 |
+
140,
|
| 303 |
+
291,
|
| 304 |
+
825,
|
| 305 |
+
472
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 4
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "text",
|
| 311 |
+
"text": "",
|
| 312 |
+
"bbox": [
|
| 313 |
+
140,
|
| 314 |
+
478,
|
| 315 |
+
826,
|
| 316 |
+
632
|
| 317 |
+
],
|
| 318 |
+
"page_idx": 4
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "equation",
|
| 322 |
+
"img_path": "images/2cf425b1a7b90f7cacb526d3f495baaf4b7fa24891c413c5e56b02f32bc19b61.jpg",
|
| 323 |
+
"text": "$$\nr _ { t } ^ { \\mathrm { N G U } } = r _ { t } ^ { \\mathrm { { e p i s o d i c } } } \\cdot \\operatorname* { m i n } \\left\\{ \\operatorname* { m a x } \\left\\{ \\alpha _ { t } , 1 \\right\\} , L \\right\\} , \\mathrm { ~ w i t h } r _ { t } ^ { \\mathrm { e p i s o d i c } } = \\frac { 1 } { \\sqrt { \\sum _ { f ( s _ { t } ) \\in N _ { k } } K ( f ( s _ { t } ) , f ( s _ { i } ) ) + c ^ { 2 } } } .\n$$",
|
| 324 |
+
"text_format": "latex",
|
| 325 |
+
"bbox": [
|
| 326 |
+
179,
|
| 327 |
+
637,
|
| 328 |
+
799,
|
| 329 |
+
679
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 4
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "205 where $L$ is a fixed maximum reward scaling, $N _ { k }$ is the set containing the $k$ -nearest neighbors of $f ( s _ { t } )$ \n206 in $M$ , $c$ is a constant and $K : \\mathbb { R } ^ { p } \\times \\mathbb { R } ^ { p } \\to \\mathbb { R } ^ { + }$ is a kernel function satisfying $K ( x , { \\bar { x } } ) = 1$ (which \n207 can be thought of as approximating pseudo-counts [48]). The episodic component of the reward \n208 in Equation 1 is reset by emptying $M$ with each episode, thus the NGU reward does not vanish \n209 throughout the training process. This makes it suitable for driving learning in task-agnostic settings. \n210 Further details on NGU are reported in the supplementary material. ",
|
| 336 |
+
"bbox": [
|
| 337 |
+
140,
|
| 338 |
+
681,
|
| 339 |
+
825,
|
| 340 |
+
765
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 4
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "211 5 Experiments ",
|
| 347 |
+
"text_level": 1,
|
| 348 |
+
"bbox": [
|
| 349 |
+
143,
|
| 350 |
+
784,
|
| 351 |
+
312,
|
| 352 |
+
800
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 4
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "212 Agents are evaluated in the Atari suite [7], a benchmark that presents a variety of challenges and that \n213 is a common test ground for RL agents with unsupervised pre-training [28, 40, 52]. Experiments are \n214 run using the distributed R2D2 agent [36] with 256 CPU actors and a single GPU learner. Policies \n215 use the same Q-Network architecture as Agent57 [47], which is composed by a convolutional torso \n216 followed by an LSTM [32] and a dueling head [58]. Hyperparameters and a detailed description of \n217 the full distributed setting are provided in the supplementary material. All reported results are the \n218 average over three random seeds. \n219 Reward-free learning. The amount of task reward collected by unsupervised policies is often \n220 used as a proxy to measure their quality [19]. While the actual utility of these policies will not \n221 be revealed until they are leveraged for transfer, this proxy lets us evaluate whether the discovered \n222 behavior changes as longer pre-training budgets are allowed. We compare unsupervised NGU policies \n223 against VISR [28] and APT [40], which utilize a small amount of supervised interaction to adapt \n224 the pre-trained policies. We also consider two additional unsupervised baselines: $( i )$ a constant \n225 positive reward at each timestep that favours long episodes, which correlate with high scores in some \n226 games [10], and (ii) RND [11], which rewards life-long novelty. Note that the RND reward vanishes, \n227 but we include it in our analysis because it was previously used by Burda et al. [10] in this setting \n228 and implementation choices such as reward normalization may prevent it from fading in practice. \n229 Figure 2 (left) shows how the zero-shot transfer performance of unsupervised policies evolves during \n230 a long pre-training phase. NGU reaches the highest scores, but both NGU and RND eventually \n231 outperform VISR and APT even though these used supervised interaction. In Table 2 of Appendix \n232 C we show that unsupervised NGU policies largely outperform several other baselines using the \n233 standard pre-training and adaptation setting. These results highlight the importance of large-scale \n234 unsupervised pre-training in RL, similarly to the trend observed in supervised domains [9]. ",
|
| 359 |
+
"bbox": [
|
| 360 |
+
140,
|
| 361 |
+
814,
|
| 362 |
+
825,
|
| 363 |
+
911
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 4
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "",
|
| 370 |
+
"bbox": [
|
| 371 |
+
138,
|
| 372 |
+
92,
|
| 373 |
+
825,
|
| 374 |
+
313
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 5
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "image",
|
| 380 |
+
"img_path": "images/693f32859ff6d9b0ac39d33ab71c1a54485c1fe8c8c24525070d8a48b2d7618d.jpg",
|
| 381 |
+
"image_caption": [
|
| 382 |
+
"Figure 2: Performance as a function of the pre-training budget. $@ N$ represents the number of frames with reward utilized for transfer. (Left) Median human normalized score across the 57 games in the Atari suite. We observe the emergence of useful behavior when optimizing an intrinsic reward during a long unsupervised pre-training of 16B frames, which contrasts with the shorter pre-training of 1B frames in previous works [28, 40]. (Right) Scores in the games of Montezuma’s Revenge (sparse rewards) and Pong (dense reward), before and after transfer, as a function of the pre-training budget. A longer pre-training benefits transfer in hard exploration games even if the zero-shot transfer score of the unsupervised policies does not increase. "
|
| 383 |
+
],
|
| 384 |
+
"image_footnote": [],
|
| 385 |
+
"bbox": [
|
| 386 |
+
176,
|
| 387 |
+
316,
|
| 388 |
+
818,
|
| 389 |
+
422
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 5
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "text",
|
| 395 |
+
"text": "Transfer setting. Transfer approaches are typically evaluated in the Atari benchmark with a budget of 100k RL interactions with reward (400k frames), but we propose to allow a longer adaptation phase. Randomly initialized networks tend to overfit in these very low data regimes without strong regularization [38], and we are interested in studying the impact of leveraging behavior both in isolation and combined with transfer via pre-trained weights. Moreover, since the pre-trained policies are already competent in the downstream tasks, $1 0 0 \\mathrm { k }$ interactions are exhausted after few episodes and may be insufficient for improving performance. For these reasons, we provide results with up to 1.25B RL steps of supervised interaction (5B frames). This allows evaluating both convergence speed and asymptotic performance, while still being a relatively small budget for these distributed agents with hundreds of actors [47]. ",
|
| 396 |
+
"bbox": [
|
| 397 |
+
169,
|
| 398 |
+
551,
|
| 399 |
+
825,
|
| 400 |
+
689
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 5
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "text",
|
| 406 |
+
"text": "Transfer via behavior. We start by studying the impact of leveraging behavior in isolation, i.e. without transferring pre-trained weights, when learning in downstream tasks. We compare BT against two baselines that do not use pre-trained behavior, namely the standard R2D2 agent [36] that uses $\\epsilon$ -greedy policies for exploration [55], as well as a variant of R2D2 with $\\epsilon z$ -greedy exploration [14]. Figure 3 shows that BT is superior to both baselines for any amount of environment interaction with rewards, converging faster early in training and also obtaining higher asymptotic performance. These results also demonstrate the generality of the proposed approach, as it is able to benefit from both RND and NGU policies. Note that BT performs particularly well in the set of six hard exploration games1 defined by Bellemare et al. [6], which is aligned with our intuition that reusing behavior helps overcoming the inefficiency associated to unstructured exploration. Figure 2 (right) confirms that a long pre-training phase is especially important in hard exploration games such as Montezuma’s Revenge, even it they do not translate into higher zero-shot transfer scores, as it produces more exploratory behavior. On the other hand, the performance after transfer is independent of the amount of pre-training in dense reward games like Pong, where unstructured exploration is enough to reach optimal scores. ",
|
| 407 |
+
"bbox": [
|
| 408 |
+
173,
|
| 409 |
+
695,
|
| 410 |
+
826,
|
| 411 |
+
890
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 5
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "image",
|
| 417 |
+
"img_path": "images/7d402b37236621f24b6311f0a942112738113dc64eef0e4d23aa624852764151.jpg",
|
| 418 |
+
"image_caption": [
|
| 419 |
+
"Figure 3: Median human normalized scores for R2D2-based agents trained from scratch. (Left) Full Atari suite. (Right) Subset of hard exploration games. "
|
| 420 |
+
],
|
| 421 |
+
"image_footnote": [],
|
| 422 |
+
"bbox": [
|
| 423 |
+
174,
|
| 424 |
+
90,
|
| 425 |
+
818,
|
| 426 |
+
210
|
| 427 |
+
],
|
| 428 |
+
"page_idx": 6
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"type": "image",
|
| 432 |
+
"img_path": "images/985bc0ee229912f07e0229f480c5d0bf49fcef58c9fea4c4c5d8bc5084e081c9.jpg",
|
| 433 |
+
"image_caption": [
|
| 434 |
+
"Figure 4: Usage of the extra action in $\\mathrm { B T } ( \\pi _ { \\mathrm { N G U } } )$ , computed as the fraction of steps within an episode in which it is selected by the agent. The usage peaks early in training and slowly decreases afterwards as the new policy becomes stronger at the task. "
|
| 435 |
+
],
|
| 436 |
+
"image_footnote": [],
|
| 437 |
+
"bbox": [
|
| 438 |
+
176,
|
| 439 |
+
258,
|
| 440 |
+
820,
|
| 441 |
+
348
|
| 442 |
+
],
|
| 443 |
+
"page_idx": 6
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"type": "text",
|
| 447 |
+
"text": "259 Ablation studies. In order to gain insight on each of the components in BT, we run experiments \n260 on a subset of 12 games2 requiring different amounts of exploration and featuring both dense and \n261 sparse rewards. $\\mathbf { B T } ( \\pi _ { \\mathrm { N G U } } )$ achieves a median score of 368 in this subset, which compares favorably \n262 to the 196 median score of R2D2 with $\\epsilon$ -greedy exploration. Removing either the extra action or \n263 the temporally-extended exploration reduces the median score of $\\mathbf { B T } ( \\pi _ { \\mathrm { N G U } } )$ to 224. These results \n264 suggest that the gains provided by both strategies are complementary, and both are responsible for the \n265 strong performance of BT. To provide further insight about the benefits of BT, Figure 4 reports the \n266 fraction of steps per episode in which the extra action is selected by the greedy policy. It hints at the \n267 emergence of a schedule over the usage of the pre-trained policy, which increases early in training \n268 and decays afterwards. We hypothesize that this is due to the fact that the unsupervised policies \n269 obtain large episodic returns, but their behavior is suboptimal when maximizing discounted rewards. \n270 These policies take many exploratory actions in between rewards, and so the agent eventually figures \n271 out more efficient strategies for reaching rewarding states by using primitive actions. ",
|
| 448 |
+
"bbox": [
|
| 449 |
+
140,
|
| 450 |
+
428,
|
| 451 |
+
825,
|
| 452 |
+
607
|
| 453 |
+
],
|
| 454 |
+
"page_idx": 6
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"type": "text",
|
| 458 |
+
"text": "Transfer to multiple tasks. An appealing property of task-agnostic knowledge is that it can be leveraged to solve multiple tasks. In the RL setting, this can be evaluated by leveraging a single task-agnostic policy for solving multiple tasks (i.e. reward functions) in the same environment. We evaluate whether the unsupervised NGU policies can be useful beyond the standard Atari tasks by creating two alternative versions of Ms Pacman and Hero with different levels of difficulty. The goal in the modified version of Ms Pacman is to eat vulnerable ghosts, with pac-dots giving 0 (easy version) or $- 1 0$ (hard version) points. In the modified version of Hero, saving miners gives a fixed return of 1000 points and dynamiting walls gives either 0 (easy version) or $- 3 0 0$ (hard version) points. The rest of rewards are removed, e.g. eating fruit in Ms Pacman or the bonus for unused power units in Hero. Note that even in the easy version of the games exploration is harder than in their original counterparts, as there are no small rewards guiding the agent towards its goals. Exploration is even more challenging in the hard version of the games, as the intermediate rewards work as a deceptive signal that takes the agent away from its actual goal. In this case, finding rewarding behaviors requires a stronger commitment to an exploration strategy. Unsupervised NGU policies often achieve very low or even negative rewards in this setting, which contrasts with the strong performance they showed when evaluated under the standard game reward. Figure 5 shows that leveraging the behavior of pre-trained exploration policies provides important gains even in this adversarial scenario. These results suggest that the strong performance observed under the standard game rewards is not due to an ",
|
| 459 |
+
"bbox": [
|
| 460 |
+
158,
|
| 461 |
+
613,
|
| 462 |
+
825,
|
| 463 |
+
862
|
| 464 |
+
],
|
| 465 |
+
"page_idx": 6
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "image",
|
| 469 |
+
"img_path": "images/b2e9bc9d03e347e12efc286b6a57b2532360ce7edf0ad56c7d736b2ec11175b8.jpg",
|
| 470 |
+
"image_caption": [
|
| 471 |
+
"Figure 5: Scores in Atari games with modified reward functions. We train a single task-agnostic policy per environment, and leverage it to solve three different tasks: the standard game reward, a task with sparse rewards (easy), and a variant of the same task with deceptive rewards (hard). "
|
| 472 |
+
],
|
| 473 |
+
"image_footnote": [],
|
| 474 |
+
"bbox": [
|
| 475 |
+
176,
|
| 476 |
+
90,
|
| 477 |
+
821,
|
| 478 |
+
212
|
| 479 |
+
],
|
| 480 |
+
"page_idx": 7
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"text": "90 alignment between the NGU reward and the game goals, but due to an efficient usage of pre-trained \n1 exploration policies. \n292 Combining pre-trained behavior and weights. Our last batch of experiments focuses on studying \n293 transfer via pre-trained weights and its compatibility with BT. Policies are composed of a convo \n294 lutional torso, an LSTM, and a dueling head. We consider two initialization strategies: a partial \n295 initialization approach that loads the torso and the LSTM, but initializes the head randomly; and a \n296 full initialization scheme where all weights are loaded. The former can be understood as transferring \n297 learned representations [59], but deferring exploration to a random policy. On the other hand, the \n298 full initialization approach can be seen as directly transferring the policy and is usually referred to as \n299 fine-tuning the pre-trained policy [43, 40, 52]. Note that these approaches only change how weights \n300 are initialized before training. As in previous experiments, all parameters in the new policy are trained \n301 and $\\pi _ { p }$ is kept fixed when using BT. Figure 6 (top) compares agents with and without BT for different \n302 amounts of transfer via weights on the Atari benchmark. Loading pre-trained weights results in faster \n303 learning early in training, both with and without BT. The largest gains are observed in dense reward \n304 games, which translates into higher median scores across the full suite because most games belong \n305 to this category. Weights alone are not enough in hard exploration games, where leveraging the \n306 pre-trained policy via BT provides clear benefits. Perhaps surprisingly, we observe that transferring \n307 representations outperforms fine-tuning the pre-trained policy, and we hypothesize that the former \n308 is more robust to misalignments between the pre-trained policy and the downstream task. This \n309 intuition is further supported by the experiments on games with modified reward functions reported \n310 in Figure 6 (middle & bottom), where the faster learning provided by pre-trained weights often comes \n311 at the cost of lower end scores. On the other hand, BT is crucial in tasks with sparse and deceptive \n12 rewards and also benefits from pre-trained weights in tasks where positive transfer is observed. ",
|
| 485 |
+
"bbox": [
|
| 486 |
+
155,
|
| 487 |
+
291,
|
| 488 |
+
825,
|
| 489 |
+
319
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 7
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"text": "",
|
| 496 |
+
"bbox": [
|
| 497 |
+
148,
|
| 498 |
+
325,
|
| 499 |
+
825,
|
| 500 |
+
616
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 7
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"text": "6 Related work ",
|
| 507 |
+
"text_level": 1,
|
| 508 |
+
"bbox": [
|
| 509 |
+
158,
|
| 510 |
+
637,
|
| 511 |
+
316,
|
| 512 |
+
654
|
| 513 |
+
],
|
| 514 |
+
"page_idx": 7
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"type": "text",
|
| 518 |
+
"text": "314 Our work uses the experimental methodology presented by Hansen et al. [28]. Whereas that work only \n315 considered a fast, simplified adaptation process that limited the final performance on the downstream \n316 task, we focus on the more general case of using a previously trained policy to aid in solving the \n317 full RL problem. Hansen et al. [28] use successor features to identify which of the pre-trained tasks \n318 best matches the true reward structure, which has previously been shown to work well for multi-task \n319 transfer [3]. Bagot et al. [1] augments an agent with the ability to utilize another policy, which is \n320 learned in tandem based on an intrinsic reward function. This promising direction is complementary \n321 to our work, as it handles the case wherein there is no unsupervised pre-training phase. \n322 Gupta et al. [25] provides an alternative method to meta-learn a solver for reinforcement learning prob \n323 lems from unsupervised reward functions. This method utilizes gradient-based meta-learning [20], \n324 which makes the adaptation process standard reinforcement learning updates. This means that even if \n325 the downstream reward is far outside of the training distribution, final performance would not neces \n326 sarily be affected. However, these methods are hard to scale to the larger networks considered here, \n327 and followup work [34] changed to memory-based meta-learning [17] which relies on information \n328 about rewards staying in the recurrent state. This makes it unsuitable to the sort of hard exploration \n329 problem our method excels at. Recent work has shown success in transferring representations learned \n330 in an unsupervised setting to reinforcement learning tasks [54]. Our representation transfer experi \n331 ments suggest that this might handicap final performance, but the possibility also exists that different \n332 unsupervised objectives should be used for representation transfer and policy transfer. ",
|
| 519 |
+
"bbox": [
|
| 520 |
+
148,
|
| 521 |
+
670,
|
| 522 |
+
825,
|
| 523 |
+
780
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 7
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "text",
|
| 529 |
+
"text": "",
|
| 530 |
+
"bbox": [
|
| 531 |
+
140,
|
| 532 |
+
786,
|
| 533 |
+
825,
|
| 534 |
+
911
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 7
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "image",
|
| 540 |
+
"img_path": "images/789522c1b91b64812aefceb54c6d2e5dabd3c5fb5585eb5b04e66c0ba732af86.jpg",
|
| 541 |
+
"image_caption": [
|
| 542 |
+
"Figure 6: Performance of R2D2-based agents with different amounts of transfer via weights. Policies are composed of a CNN encoder followed by an LSTM and a dueling head. We compare training from scratch, loading all weights (Full $\\pi _ { \\mathrm { N G U } }$ init) or all weights except those in the dueling head (Partial $\\pi _ { \\mathrm { { N G U } } }$ init). (Top) Median human normalized scores (HNS) in the full Atari suite (left) and the subset of hard exploration games (right). (Middle & Bottom) Games with modified reward functions as in Figure 5. "
|
| 543 |
+
],
|
| 544 |
+
"image_footnote": [],
|
| 545 |
+
"bbox": [
|
| 546 |
+
174,
|
| 547 |
+
92,
|
| 548 |
+
821,
|
| 549 |
+
304
|
| 550 |
+
],
|
| 551 |
+
"page_idx": 8
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"type": "text",
|
| 555 |
+
"text": "",
|
| 556 |
+
"bbox": [
|
| 557 |
+
142,
|
| 558 |
+
420,
|
| 559 |
+
825,
|
| 560 |
+
449
|
| 561 |
+
],
|
| 562 |
+
"page_idx": 8
|
| 563 |
+
},
|
| 564 |
+
{
|
| 565 |
+
"type": "text",
|
| 566 |
+
"text": "7 Discussion ",
|
| 567 |
+
"text_level": 1,
|
| 568 |
+
"bbox": [
|
| 569 |
+
158,
|
| 570 |
+
470,
|
| 571 |
+
292,
|
| 572 |
+
488
|
| 573 |
+
],
|
| 574 |
+
"page_idx": 8
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"type": "text",
|
| 578 |
+
"text": "We studied the problem of transferring pre-trained behavior for exploration in reinforcement learning, an approach that is complementary to the common practice of transferring neural network weights. Our proposed approach, Behavior Transfer (BT), relies on the pre-trained policy for collecting experience in two different ways: (i) through temporally-extended exploration, which can be triggered with some probability at any step, and $( i i )$ via one-step calls to the pre-trained policy based on value estimates. BT results in strong transfer performance when combined with exploratory policies pretrained in the absence of reward, with the most important gains being observed in hard exploration tasks. These benefits are not due to an alignment between our pre-training and downstream tasks, as we also observed positive transfer in games where the pre-trained policy obtained low scores. In order to provide further evidence for this claim, we designed alternative tasks for Atari games involving hard exploration and deceptive rewards. Our transfer strategy outperformed all considered baselines in these settings, even when the pre-trained policy obtained very low or even negative scores, demonstrating the generality of the method. Besides disambiguating the role of the alignment between pre-training and downstream tasks, these experiments demonstrate the utility of a single task-agnostic policy for solving multiple tasks in the same environment. Finally, we also demonstrated that BT can be combined with transfer via neural network weights to provide further gains. ",
|
| 579 |
+
"bbox": [
|
| 580 |
+
169,
|
| 581 |
+
505,
|
| 582 |
+
825,
|
| 583 |
+
724
|
| 584 |
+
],
|
| 585 |
+
"page_idx": 8
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"type": "text",
|
| 589 |
+
"text": "350 Our experimental results highlight the importance of scale when training RL agents in reward-free \n351 settings, which is one of the key factors behind the recent success of unsupervised approaches in other \n352 domains. This contrasts with the small budgets considered for reward-free RL in previous works and \n353 motivates further research in unsupervised RL approaches that scale with increased data and compute. \n354 We argue that scale is one of the missing components in reward-free RL, and it will be a necessary \n355 condition to unfold its full potential. Beyond improving the unsupervised learning phase, we are also \n356 excited about the possibilities unlocked by BT and that are not possible when transferring knowledge \n357 through weights, such as leveraging multiple pre-trained policies and deploying BT in continual \n358 learning scenarios where the agent never stops learning and keeps accumulating knowledge and skills. \n359 Future work should also study improved mechanisms for handing over control to pre-trained policies, \n360 as well as prioritizing the usage of certain behaviors over others when multiple such policies are \n361 available to the agent. This could overcome one of the current limitations of BT, which assumes that \n362 flights can be started from any state and still produce meaningful behavior. ",
|
| 590 |
+
"bbox": [
|
| 591 |
+
140,
|
| 592 |
+
731,
|
| 593 |
+
825,
|
| 594 |
+
911
|
| 595 |
+
],
|
| 596 |
+
"page_idx": 8
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"type": "text",
|
| 600 |
+
"text": "References [1] Louis Bagot, Kevin Mets, and Steven Latré. Learning intrinsically motivated options to stimulate policy exploration. In ICML Workshop on LifeLong Learning, 2020. [2] André Barreto, Will Dabney, Rémi Munos, Jonathan J Hunt, Tom Schaul, Hado P van Hasselt, and David Silver. Successor features for transfer in reinforcement learning. In NeurIPS, 2017. [3] Andre Barreto, Diana Borsa, John Quan, Tom Schaul, David Silver, Matteo Hessel, Daniel Mankowitz, Augustin Zidek, and Remi Munos. Transfer in deep reinforcement learning using successor features and generalised policy improvement. In ICML, 2018. [4] André Barreto, Shaobo Hou, Diana Borsa, David Silver, and Doina Precup. Fast reinforcement learning with generalized policy updates. Proceedings of the National Academy of Sciences, 2020. [5] Andrew G Barto and Sridhar Mahadevan. Recent advances in hierarchical reinforcement learning. Discrete event dynamic systems, 2003. [6] Marc Bellemare, Sriram Srinivasan, Georg Ostrovski, Tom Schaul, David Saxton, and Remi Munos. Unifying count-based exploration and intrinsic motivation. In NeurIPS, 2016. [7] Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 2013. [8] Diana Borsa, André Barreto, John Quan, Daniel Mankowitz, Rémi Munos, Hado van Hasselt, David Silver, and Tom Schaul. Universal successor features approximators. In ICLR, 2019. [9] Tom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020. [10] Yuri Burda, Harri Edwards, Deepak Pathak, Amos Storkey, Trevor Darrell, and Alexei A Efros. Large-scale study of curiosity-driven learning. arXiv preprint arXiv:1808.04355, 2018. \n8 [11] Yuri Burda, Harrison Edwards, Amos Storkey, and Oleg Klimov. Exploration by random network distillation. arXiv preprint arXiv:1810.12894, 2018. \n[12] Víctor Campos, Alexander Trott, Caiming Xiong, Richard Socher, Xavier Giro-i Nieto, and Jordi Torres. Explore, discover and learn: Unsupervised discovery of state-covering skills. In ICML, 2020. [13] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In ICML, 2020. [14] Will Dabney, Georg Ostrovski, and André Barreto. Temporally-extended \u000f-greedy exploration. In ICLR, 2021. [15] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In NAACL, 2019. [16] Jeff Donahue, Yangqing Jia, Oriol Vinyals, Judy Hoffman, Ning Zhang, Eric Tzeng, and Trevor Darrell. Decaf: A deep convolutional activation feature for generic visual recognition. In ICML, 2014. \n[17] 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. [18] Lasse Espeholt, Hubert Soyer, Remi Munos, Karen Simonyan, Volodymyr Mnih, Tom Ward, Yotam Doron, Vlad Firoiu, Tim Harley, Iain Dunning, et al. IMPALA: Scalable distributed deep-RL with importance weighted actor-learner architectures. In ICML, 2018. \n[19] Benjamin Eysenbach, Abhishek Gupta, Julian Ibarz, and Sergey Levine. Diversity is all you need: Learning skills without a reward function. In ICLR, 2019. \n[20] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. arXiv preprint arXiv:1703.03400, 2017. \n[21] Carlos Florensa, Yan Duan, and Pieter Abbeel. Stochastic neural networks for hierarchical reinforcement learning. In ICLR, 2017. \n[22] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In CVPR, 2014. \n[23] Karol Gregor, Danilo Jimenez Rezende, and Daan Wierstra. Variational intrinsic control. arXiv preprint arXiv:1611.07507, 2016. \n[24] Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre H Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, et al. Bootstrap your own latent: A new approach to self-supervised learning. arXiv preprint arXiv:2006.07733, 2020. \n[25] Abhishek Gupta, Benjamin Eysenbach, Chelsea Finn, and Sergey Levine. Unsupervised meta-learning for reinforcement learning. arXiv preprint arXiv:1806.04640, 2018. \n[26] David Ha and Jürgen Schmidhuber. Recurrent world models facilitate policy evolution. In NeurIPS, 2018. \n[27] Danijar Hafner, Timothy Lillicrap, Jimmy Ba, and Mohammad Norouzi. Dream to control: Learning behaviors by latent imagination. In ICLR, 2019. \n[28] Steven Hansen, Will Dabney, Andre Barreto, Tom Van de Wiele, David Warde-Farley, and Volodymyr Mnih. Fast task inference with variational intrinsic successor features. In ICLR, 2020. \n[29] Elad Hazan, Sham M Kakade, Karan Singh, and Abby Van Soest. Provably efficient maximum entropy exploration. In ICML, 2019. \n[30] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. arXiv preprint arXiv:1911.05722, 2019. \n[31] Olivier J Hénaff, Ali Razavi, Carl Doersch, SM Eslami, and Aaron van den Oord. Data-efficient image recognition with contrastive predictive coding. arXiv preprint arXiv:1905.09272, 2019. \n[32] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 1997. \n[33] Dan Horgan, John Quan, David Budden, Gabriel Barth-Maron, Matteo Hessel, Hado Van Hasselt, and David Silver. Distributed prioritized experience replay. arXiv preprint arXiv:1803.00933, 2018. \n[34] Allan Jabri, Kyle Hsu, Abhishek Gupta, Ben Eysenbach, Sergey Levine, and Chelsea Finn. Unsupervised curricula for visual meta-reinforcement learning. In Advances in Neural Information Processing Systems, pages 10519–10531, 2019. \n[35] Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020. \n[36] Steven Kapturowski, Georg Ostrovski, John Quan, Remi Munos, and Will Dabney. Recurrent experience replay in distributed reinforcement learning. In ICLR, 2019. \n[37] Michael Kearns and Satinder Singh. Near-optimal reinforcement learning in polynomial time. Machine learning, 2002. \n[38] Ilya Kostrikov, Denis Yarats, and Rob Fergus. Image augmentation is all you need: Regularizing deep reinforcement learning from pixels. In ICLR, 2021. \n[39] Lisa Lee, Benjamin Eysenbach, Emilio Parisotto, Eric Xing, Sergey Levine, and Ruslan Salakhutdinov. Efficient exploration via state marginal matching. arXiv preprint arXiv:1906.05274, 2019. \n[40] Hao Liu and Pieter Abbeel. Behavior from the void: Unsupervised active pre-training. arXiv preprint arXiv:2103.04551, 2021. \n[41] Yao Liu and Emma Brunskill. When simple exploration is sample efficient: Identifying sufficient conditions for random exploration to yield pac rl algorithms. arXiv preprint arXiv:1805.09045, 2018. \n[42] Shakir Mohamed and Danilo Jimenez Rezende. Variational information maximisation for intrinsically motivated reinforcement learning. In NeurIPS, 2015. \n[43] Mirco Mutti, Lorenzo Pratissoli, and Marcello Restelli. Task-agnostic exploration via policy gradient of a non-parametric state entropy estimate. In AAAI, 2021. \n[44] Ian Osband, Charles Blundell, Alexander Pritzel, and Benjamin Van Roy. Deep exploration via bootstrapped dqn. arXiv preprint arXiv:1602.04621, 2016. \n[45] Ian Osband, Benjamin Van Roy, and Zheng Wen. Generalization and exploration via randomized value functions. In ICML, 2016. \n[46] Deepak Pathak, Pulkit Agrawal, Alexei A Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In ICML, 2017. \n[47] Adrià Puigdomènech Badia, Bilal Piot, Steven Kapturowski, Pablo Sprechmann, Alex Vitvitskyi, Daniel Guo, and Charles Blundell. Agent57: Outperforming the atari human benchmark. In ICML, 2020. \n[48] Adrià Puigdomènech Badia, Pablo Sprechmann, Alex Vitvitskyi, Daniel Guo, Bilal Piot, Steven Kapturowski, Olivier Tieleman, Martín Arjovsky, Alexander Pritzel, Andew Bolt, et al. Never give up: Learning directed exploration strategies. In ICLR, 2020. \n[49] Martin L Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming. John Wiley & Sons, Inc., 1994. \n[50] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI Blog, 2019. \n[51] Christoph Salge, Cornelius Glackin, and Daniel Polani. Empowerment – an introduction. In Guided Self-Organization: Inception. Springer, 2014. \n[52] Max Schwarzer, Nitarshan Rajkumar, Michael Noukhovitch, Ankesh Anand, Laurent Charlin, R Devon Hjelm, Philip Bachman, and Aaron Courville. Pretraining reward-free representations for data-efficient reinforcement learning. In Self-Supervision for Reinforcement Learning Workshop - ICLR 2021, 2021. URL https://openreview.net/forum?id $\\underset { . } { = }$ o5z9Le5drua. \n[53] Ramanan Sekar, Oleh Rybkin, Kostas Daniilidis, Pieter Abbeel, Danijar Hafner, and Deepak Pathak. Planning to explore via self-supervised world models. In ICML, 2020. \n[54] Adam Stooke, Kimin Lee, Pieter Abbeel, and Michael Laskin. Decoupling representation learning from reinforcement learning. arXiv preprint arXiv:2009.08319, 2020. \n[55] Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press, 2018. \n[56] Richard S Sutton, Doina Precup, and Satinder Singh. Between mdps and semi-mdps: A framework for temporal abstraction in reinforcement learning. Artificial intelligence, 1999. \n[57] Gandhimohan M Viswanathan, V Afanasyev, SV Buldyrev, EJ Murphy, PA Prince, and H Eugene Stanley. Lévy flight search patterns of wandering albatrosses. Nature, 1996. \n[58] Ziyu Wang, Tom Schaul, Matteo Hessel, Hado Hasselt, Marc Lanctot, and Nando Freitas. Dueling network architectures for deep reinforcement learning. In ICML, 2016. \n[59] Denis Yarats, Rob Fergus, Alessandro Lazaric, and Lerrel Pinto. Reinforcement learning with prototypical representations. In ICML, 2021. \n[60] Jason Yosinski, Jeff Clune, Yoshua Bengio, and Hod Lipson. How transferable are features in deep neural networks? arXiv preprint arXiv:1411.1792, 2014. \n[61] Matthew D Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In ECCV, 2014. ",
|
| 601 |
+
"bbox": [
|
| 602 |
+
155,
|
| 603 |
+
71,
|
| 604 |
+
828,
|
| 605 |
+
917
|
| 606 |
+
],
|
| 607 |
+
"page_idx": 9
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"type": "text",
|
| 611 |
+
"text": "",
|
| 612 |
+
"bbox": [
|
| 613 |
+
166,
|
| 614 |
+
42,
|
| 615 |
+
828,
|
| 616 |
+
920
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 10
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "text",
|
| 622 |
+
"text": "",
|
| 623 |
+
"bbox": [
|
| 624 |
+
168,
|
| 625 |
+
89,
|
| 626 |
+
828,
|
| 627 |
+
916
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 11
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "text",
|
| 633 |
+
"text": "",
|
| 634 |
+
"bbox": [
|
| 635 |
+
163,
|
| 636 |
+
90,
|
| 637 |
+
826,
|
| 638 |
+
198
|
| 639 |
+
],
|
| 640 |
+
"page_idx": 12
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"type": "text",
|
| 644 |
+
"text": "Checklist ",
|
| 645 |
+
"text_level": 1,
|
| 646 |
+
"bbox": [
|
| 647 |
+
169,
|
| 648 |
+
223,
|
| 649 |
+
254,
|
| 650 |
+
239
|
| 651 |
+
],
|
| 652 |
+
"page_idx": 12
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"type": "text",
|
| 656 |
+
"text": "The checklist follows the references. Please read the checklist guidelines carefully for information on how to answer these questions. For each question, change the default [TODO] to [Yes] , [No] , or [N/A] . You are strongly encouraged to include a justification to your answer, either by referencing the appropriate section of your paper or providing a brief inline description. For example: ",
|
| 657 |
+
"bbox": [
|
| 658 |
+
174,
|
| 659 |
+
255,
|
| 660 |
+
825,
|
| 661 |
+
311
|
| 662 |
+
],
|
| 663 |
+
"page_idx": 12
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"type": "text",
|
| 667 |
+
"text": "• Did you include the license to the code and datasets? [No] The code and the data are proprietary. ",
|
| 668 |
+
"bbox": [
|
| 669 |
+
214,
|
| 670 |
+
321,
|
| 671 |
+
823,
|
| 672 |
+
351
|
| 673 |
+
],
|
| 674 |
+
"page_idx": 12
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"type": "text",
|
| 678 |
+
"text": "Please do not modify the questions and only use the provided macros for your answers. Note that the Checklist section does not count towards the page limit. In your paper, please delete this instructions block and only keep the Checklist section heading above along with the questions/answers below. ",
|
| 679 |
+
"bbox": [
|
| 680 |
+
140,
|
| 681 |
+
362,
|
| 682 |
+
826,
|
| 683 |
+
405
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 12
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "text",
|
| 689 |
+
"text": "1. For all authors... ",
|
| 690 |
+
"bbox": [
|
| 691 |
+
214,
|
| 692 |
+
417,
|
| 693 |
+
339,
|
| 694 |
+
431
|
| 695 |
+
],
|
| 696 |
+
"page_idx": 12
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"type": "text",
|
| 700 |
+
"text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] \n(c) Did you discuss any potential negative societal impacts of your work? [N/A] \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 701 |
+
"bbox": [
|
| 702 |
+
238,
|
| 703 |
+
436,
|
| 704 |
+
825,
|
| 705 |
+
529
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 12
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "text",
|
| 711 |
+
"text": "2. If you are including theoretical results... ",
|
| 712 |
+
"bbox": [
|
| 713 |
+
214,
|
| 714 |
+
532,
|
| 715 |
+
493,
|
| 716 |
+
547
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 12
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "text",
|
| 722 |
+
"text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A] ",
|
| 723 |
+
"bbox": [
|
| 724 |
+
235,
|
| 725 |
+
553,
|
| 726 |
+
736,
|
| 727 |
+
583
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 12
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "text",
|
| 733 |
+
"text": "3. If you ran experiments... ",
|
| 734 |
+
"bbox": [
|
| 735 |
+
214,
|
| 736 |
+
588,
|
| 737 |
+
393,
|
| 738 |
+
603
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 12
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "text",
|
| 744 |
+
"text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [No] We did not include source code because it relies on non-public libraries that are specific to our distributed hardware setting. However, we include all the details needed to replicate our experiments. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] All our experiments were run with three different random seeds. Plots report mean, min and max results. Tables report mean and standard deviation. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] ",
|
| 745 |
+
"bbox": [
|
| 746 |
+
235,
|
| 747 |
+
608,
|
| 748 |
+
826,
|
| 749 |
+
796
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 12
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "text",
|
| 755 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 756 |
+
"bbox": [
|
| 757 |
+
217,
|
| 758 |
+
800,
|
| 759 |
+
823,
|
| 760 |
+
815
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 12
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "text",
|
| 766 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [N/A] \n(b) Did you mention the license of the assets? [N/A] \n(c) Did you include any new assets either in the supplemental material or as a URL? [N/A] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] ",
|
| 767 |
+
"bbox": [
|
| 768 |
+
235,
|
| 769 |
+
819,
|
| 770 |
+
826,
|
| 771 |
+
912
|
| 772 |
+
],
|
| 773 |
+
"page_idx": 12
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"type": "text",
|
| 777 |
+
"text": "(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
|
| 778 |
+
"bbox": [
|
| 779 |
+
235,
|
| 780 |
+
92,
|
| 781 |
+
825,
|
| 782 |
+
119
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 13
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "text",
|
| 788 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 789 |
+
"bbox": [
|
| 790 |
+
214,
|
| 791 |
+
123,
|
| 792 |
+
707,
|
| 793 |
+
138
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 13
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "text",
|
| 799 |
+
"text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
|
| 800 |
+
"bbox": [
|
| 801 |
+
238,
|
| 802 |
+
142,
|
| 803 |
+
826,
|
| 804 |
+
232
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 13
|
| 807 |
+
}
|
| 808 |
+
]
|
parse/train/gG4j9PybfwI/gG4j9PybfwI_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/gG4j9PybfwI/gG4j9PybfwI_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rdT5GV-LnZU/rdT5GV-LnZU.md
ADDED
|
@@ -0,0 +1,529 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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 |
+
|
| 8 |
+
# Abstract
|
| 9 |
+
|
| 10 |
+
1 Beyond the success story of pre-trained language models (PrLMs) in recent natu
|
| 11 |
+
2 ral language processing, they are susceptible to over-fitting due to unusual large
|
| 12 |
+
3 model size. To this end, dropout serves as a therapy. However, existing methods
|
| 13 |
+
4 like random-based, knowledge-based and search-based dropout are more general
|
| 14 |
+
5 but less effective onto self-attention based models, which are broadly chosen as
|
| 15 |
+
6 the fundamental architecture of PrLMs. In this paper, we propose a novel dropout
|
| 16 |
+
7 method named AttendOut to let self-attention empowered PrLMs capable of more
|
| 17 |
+
8 robust task-specific tuning. We demonstrate that state-of-the-art models with elab
|
| 18 |
+
9 orate training design may achieve much stronger results. We verify the universal
|
| 19 |
+
10 ity of our approach on extensive natural language processing tasks.
|
| 20 |
+
|
| 21 |
+
# 11 1 Introduction
|
| 22 |
+
|
| 23 |
+
12 Self-attention network (SAN) empowered models like Transformer [1] have achieved remarkable
|
| 24 |
+
13 success in recent natural language processing, which have been broadly chosen as basic architec
|
| 25 |
+
14 ture in a series successful pre-trained language models (PrLMs) such as BERT [2], RoBERTa [3],
|
| 26 |
+
15 ALBERT [4], ELECTRA [5], DeBERTa [6] and GPT [7].
|
| 27 |
+
16 SAN has drawn a great deal of curiosity on its conceptually simple but powerful attention mecha
|
| 28 |
+
17 nism. However, SAN still remains a black box and more and more works attempt to unveil its inner
|
| 29 |
+
18 principle, where the biggest mystery lies in its attention matrix. Our work is inspired by several
|
| 30 |
+
19 recent discoveries which turn our views up and down. [8, 9] show that fixed Gaussian or even ran
|
| 31 |
+
20 dom alignment attention matrix may rival standard SAN, while more recently, [10, 11] prove that
|
| 32 |
+
21 SAN may encounter a rank collapse with deepening of layers. A more concrete explanation is in
|
| 33 |
+
22 formation diffusion [12], which states that the input vectors are progressively assimilating through
|
| 34 |
+
23 continuously making self-attention. We attribute these problems to the sever co-adaption [13] be
|
| 35 |
+
24 tween attention elements, a form of over-fitting onto SAN. As a result, self-attention empowered
|
| 36 |
+
25 PrLMs hardly bring into their full play, especially for the fine-tuning stage, where task-specific data
|
| 37 |
+
26 is always with limited capacity.
|
| 38 |
+
27 Dropout [13] serves as a therapy to deal with the problem, by randomly shutting down a set of units
|
| 39 |
+
28 during training stage. When specified on self-attention, dropout is equivalent to adding attention
|
| 40 |
+
29 mask to the attention matrix. However, random-based dropout methods like vanilla Dropout [13] or
|
| 41 |
+
30 DropConnect [14] are all subject to a pre-defined distribution like Bernoulli or Gaussian, longing for
|
| 42 |
+
31 exhaustive grid search for an optimal probability. Thereby a variety of works attempt to utilize man
|
| 43 |
+
32 ual attention mask to obtain a more informative attention matrix [15, 16], whereas all these methods
|
| 44 |
+
33 require prior knowledge on model or data, which could be costly or unavailable. More recently, the
|
| 45 |
+
34 rise of Neural Architecture Search [17, 18] gives birth to search-based dropout [19], which automat
|
| 46 |
+
35 ically chooses an optimal dropout pattern based on additional validation performances. However,
|
| 47 |
+
36 the huge search space brings heavy consumption and more importantly, the obtained dropout pattern
|
| 48 |
+
37 is still fixed with a pre-defined probability, which is static and sample-independent, ignoring the
|
| 49 |
+
38 dynamics within different samples. In this paper, we focus on task-specific tuning of self-attention
|
| 50 |
+
39 empowered PrLMs and propose a novel dropout method named AttendOut onto attention layers,
|
| 51 |
+
40 which leverages self-attention to dynamically generate dropout patterns for each attention layer as
|
| 52 |
+
41 well as each sample through an end-to-end manner. We demonstrate that the previous state-of-the-art
|
| 53 |
+
42 models with elaborate training design may achieve much stronger results. We verify the universality
|
| 54 |
+
43 of our approach on extensive natural language processing tasks. Guided by AttendOut, we pro
|
| 55 |
+
44 pose another two attention regularizers to enable simple but effective performance boost with no
|
| 56 |
+
45 additional cost.
|
| 57 |
+
|
| 58 |
+

|
| 59 |
+
Figure 1: A diagram of different dropout methods, where $p$ refers to the dropout probabilities while $R$ refers to the reward in reinforcement learning.
|
| 60 |
+
|
| 61 |
+
# 46 2 Related Work
|
| 62 |
+
|
| 63 |
+
47 Dropout is proposed to alleviate over-fitting problem in DNNs. Apart from vanilla Dropout [13]
|
| 64 |
+
48 and DropConnect [14] which randomly shut down a subset of activations or hidden weights, there
|
| 65 |
+
49 are a variety of dropout methods proposed, e.g. Alpha Dropout [20], Variational Dropout [21, 22],
|
| 66 |
+
50 Adversarial Dropout [23], Energy-based Dropout [24]. However, random-based dropout encounters
|
| 67 |
+
51 slow experiment cycle due to inevitable grid search. Inspired by Neural Architecture Search [17, 18],
|
| 68 |
+
52 [19] proposes AutoDropout to automate the process of designing dropout patterns. A similar line of
|
| 69 |
+
53 work is dynamic tuning of dropout, which further allows adaptive dropout probabilities under differ
|
| 70 |
+
54 ent training moments. [25] proposes Concrete Dropout with continuous relaxation under Concrete
|
| 71 |
+
55 distribution, [26] proposes Learnable Bernoulli Dropout under discrete Bernoulli distribution using
|
| 72 |
+
56 Augment-REINFORCE-Merge estimator [27], while [28] proposes Context Dropout by optimizing
|
| 73 |
+
57 the evidence lower bound.
|
| 74 |
+
58 With self-attention network continuously stands out, dropout is being explored onto self-attention
|
| 75 |
+
59 based models. LayerDrop [29] randomly removes entire SAN blocks, while DropHead [30], Head
|
| 76 |
+
60 Mask [31] randomly remove certain attention heads. UniDrop [32] unifies these dropout methods,
|
| 77 |
+
61 which facilitates text classification and machine translation tasks. Additionally, prior knowledge is
|
| 78 |
+
62 shown highly effective for guiding attention dropout as in SG-Net [15] and SIT [16], which inten
|
| 79 |
+
63 tionally discard syntax-unrelated attention units with the help of structural clues.
|
| 80 |
+
|
| 81 |
+
# 64 3 Preliminaries
|
| 82 |
+
|
| 83 |
+
65 In this section, we provide the preliminaries for the proposed approach. We first review the details
|
| 84 |
+
66 of self-attention proposed in [1]. Based on the specific architecture, we elaborate the concerned
|
| 85 |
+
67 attention dropout.
|
| 86 |
+
|
| 87 |
+
# 3.1 Self-Attention
|
| 88 |
+
|
| 89 |
+
69 Generally, a standard SAN block is mainly composed of an attention layer and several feed-forward
|
| 90 |
+
70 layers (actually there are residual connection, layer normalization, etc. as well). The input of it is a
|
| 91 |
+
71 sentence or batch of sentences of length $n$ , which is first embedded through an embedding layer. The
|
| 92 |
+
72 embedded input $E$ may go through three linear projections $W _ { Q }$ , $W _ { K }$ and $W _ { V }$ referring to query, key
|
| 93 |
+
73 and value layers respectively, and then obtain three matrices $Q$ , $K$ and $V$ referring to the query, key
|
| 94 |
+
74 and value components of self-attention. Subsequently, a dot-product of $Q$ and $K$ is taken and then
|
| 95 |
+
75 normalized using Sof tmax function to obtain the attention matrix $A$ . Then another dot-product of
|
| 96 |
+
76 $A$ and $V$ follows. The mentioned calculation can be formalized as follow:
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
A t t e n t i o n ( Q , K , V ) = S o f t m a x \left( \frac { Q \cdot K ^ { T } } { \sqrt { d _ { k } } } \right) \cdot V
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
where 77 $\sqrt { d _ { k } }$ is a scaling factor. Finally, the self-attention layer ends up with a linear projection $W _ { O }$ 78 to output.
|
| 103 |
+
|
| 104 |
+
79 During the aforementioned process, we highlight a key phases, that is the attention matrix $A$ , which
|
| 105 |
+
80 is a dot-product of $n \times n$ from two separate linear projections $W _ { Q }$ and $W _ { K }$ . $A$ is viewed as a feature
|
| 106 |
+
81 map which stores the node-to-node significance in different scores. Various works show that there
|
| 107 |
+
82 hides implicit but highly needed semantic clues.
|
| 108 |
+
|
| 109 |
+
# 3.2 Dropout on Self-Attention
|
| 110 |
+
|
| 111 |
+
84 Our dropout will apply to the attention matrix of the concerned attention layer. We first define two
|
| 112 |
+
85 specific dropouts onto Eq. 1, where both implementations are just as simple as in standard dropout
|
| 113 |
+
86 via a mask matrix $M$ .
|
| 114 |
+
|
| 115 |
+
Weights Dropout. Weights dropout is applied to the attention matrix after Sof tmax function by default, which is formulated as:
|
| 116 |
+
|
| 117 |
+
$$
|
| 118 |
+
{ \cal A } t t e n t i o n ( Q , K , V ) = \left( S o f t m a x \left( { \frac { Q \cdot K ^ { T } } { \sqrt { d _ { k } } } } \right) \odot { \cal M } \right) \cdot V
|
| 119 |
+
$$
|
| 120 |
+
|
| 121 |
+
9 where $M$ is a binary matrix with elements in $\{ 0 , 1 \}$ and $\odot$ refers to element-wise multiplication.
|
| 122 |
+
|
| 123 |
+
90 Scores Dropout. Different from weights dropout, scores dropout is applied before Sof tmax func
|
| 124 |
+
91 tion, which is formulated as:
|
| 125 |
+
|
| 126 |
+
$$
|
| 127 |
+
A t t e n t i o n ( Q , K , V ) = S o f t m a x \left( \frac { Q \cdot K ^ { T } } { \sqrt { d _ { k } } } + M \right) \cdot V
|
| 128 |
+
$$
|
| 129 |
+
|
| 130 |
+
92 Since the outer Sof tmax, we conduct an addition instead of multiplication, where elements in $M$
|
| 131 |
+
93 are set to 0 for kept units and $- i n f$ for removed ones. Note that the Sof tmax takes a similar
|
| 132 |
+
94 function as the scaling factor of $1 / p$ in vanilla Dropout [13], which balances the expectation of the
|
| 133 |
+
95 network.
|
| 134 |
+
96 Weights dropout is commonly used in self-attention based models, while scores dropout is less
|
| 135 |
+
97 explored, which is our focus in this paper. For scores dropout, we need to pay attention to a special
|
| 136 |
+
98 case, when all attentions are shut down, that is, all elements in $M$ equal to $- i n f$ at the same time.
|
| 137 |
+
99 Such case can be formulated as follow:
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
A t t e n t i o n ( Q , K , V ) = S o f t m a x \left( M \right) \cdot V
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+
100 Note that Sof tmax $( M )$ obtains to a constant matrix, where each unit equals to $1 / n$ . In this case,
|
| 144 |
+
101 the attention matrix is fixed and consequently the $W _ { Q }$ , $W _ { K }$ and dot-product in between are skipped.
|
| 145 |
+
|
| 146 |
+
# 102 4 Methodology
|
| 147 |
+
|
| 148 |
+
103 In this paper, we propose Attention differentiable dropOut (AttendOut), which contributes technique
|
| 149 |
+
104 novelty in the following way: (1) dynamic and task-specific tuned; (2) end-to-end trained; (3) gra
|
| 150 |
+
105 dient optimized dropout method onto self-attention empowered PrLMs. We elaborate our approach
|
| 151 |
+
106 with two parts, in which the first is composition, while the second is training algorithm.
|
| 152 |
+
|
| 153 |
+
# 4.1 Elements of AttendOut
|
| 154 |
+
|
| 155 |
+
108 Our training architecture is composed of three modules, A-Net (Attacker), D-Net (Defender) and
|
| 156 |
+
109 G-Net (Generator). D-Net and A-Net are two identical models and trained simultaneously through
|
| 157 |
+
110 standard gradient descent, while G-Net is a learnable dropout maker and trained through policy
|
| 158 |
+
111 gradient. Now we elaborate each of them.
|
| 159 |
+
112 Defender - Attacker As suggested, defender and attacker are two competitors playing a game
|
| 160 |
+
113 with each other on specific criteria, e.g. training accuracy, training loss. Specifically, D-Net and A
|
| 161 |
+
114 Net are two identical self-attention empowered PrLMs, e.g. BERT, RoBERTa. However, they follow
|
| 162 |
+
115 different dropout strategies. D-Net receives regular dropout as default in specific models, while A
|
| 163 |
+
116 Net receives additional dropout decision from G-Net onto its corresponding attention layers.
|
| 164 |
+
117 Generator G-Net acts as a dropout maker through generating a mask matrix for each attention
|
| 165 |
+
118 layer during training stage. As aforementioned, the common dropout strategies rely on randomness,
|
| 166 |
+
119 which intends to shut down the co-adaption but not powerful enough. However, our dropout maker
|
| 167 |
+
120 is an agent which is able to intelligently choose and learn dropout patterns for each sample. Specif
|
| 168 |
+
121 ically, after training for a fixed number of steps, we conduct evaluation for both A-Net and D-Net.
|
| 169 |
+
122 When A-Net obtains a higher score than D-Net, which means attacker wins the game, G-Net will be
|
| 170 |
+
123 rewarded positively. When defender wins, G-Net will be punished with a negative reward. In con
|
| 171 |
+
124 sequence, G-Net learns appropriate dropout patterns through the game between D-Net and A-Net,
|
| 172 |
+
125 while assisting A-Net to win the game. On the other hand, A-Net needs to be stronger when training
|
| 173 |
+
126 under such powerful dropout, which makes it much more robust from over-fitting. Compared to
|
| 174 |
+
127 search-based dropout, G-Net is triggered by the difference between two model derivatives with and
|
| 175 |
+
128 without dropout, instead of the final feedback on validation set, which makes it end-to-end-possible
|
| 176 |
+
129 and sample-dependent.
|
| 177 |
+
130 The design of G-Net is the most delicate part, which is also a self-attention based model with iden
|
| 178 |
+
131 tical number of layers with D-Net and A-Net. However, we make several improvements. 1) G-Net
|
| 179 |
+
132 only exports the attention scores from attention layers with no extra output layers, from which we
|
| 180 |
+
133 apply Gumbel [33, 34] to sample the actions to obtain the dropout mask. 2) G-Net only makes
|
| 181 |
+
134 one-head attention and share one group of parameters for all attention layers. 3) G-Net is excluded
|
| 182 |
+
135 of feed-forward layers, which may obscure the impact of self-attention [11, 10].
|
| 183 |
+
|
| 184 |
+
# 4.2 Training with AttendOut
|
| 185 |
+
|
| 186 |
+
37 The core of training with AttendOut is to find a way to optimize G-Net, which receives signals from
|
| 187 |
+
38 the difference between D-Net and A-Net. Supposing there is a list of dropout actions by G-Net:
|
| 188 |
+
|
| 189 |
+
$$
|
| 190 |
+
a _ { 1 : T } = \{ a _ { 1 } , a _ { 2 } , a _ { 3 } , \cdot \cdot \cdot , a _ { T } \}
|
| 191 |
+
$$
|
| 192 |
+
|
| 193 |
+
139 where $T$ refers to the number of samples, for each action $a _ { t }$ , G-Net may achieve a reward $r _ { t }$ . The
|
| 194 |
+
140 optimization objective is to maximize the overall rewards of list $a _ { 1 : T }$ , denoted as $R$ , that is:
|
| 195 |
+
|
| 196 |
+
$$
|
| 197 |
+
J ( \theta _ { G } ) = E _ { P ( a _ { 1 : T } ; \theta _ { G } ) } [ R ]
|
| 198 |
+
$$
|
| 199 |
+
|
| 200 |
+
where 141 $\begin{array} { r } { R = \sum _ { t = 1 } ^ { T } r _ { t } } \end{array}$ . Since $R$ is non-differentiable, we use policy gradient to update $\theta _ { G }$
|
| 201 |
+
|
| 202 |
+
$$
|
| 203 |
+
\nabla _ { \theta _ { G } } J ( \theta _ { G } ) = \sum _ { t = 1 } ^ { T } E _ { P ( a _ { 1 : T } ; \theta _ { G } ) } [ \nabla _ { \theta _ { G } } \log P ( a _ { t } | a _ { ( t - 1 ) : 1 } ; \theta _ { G } ) r _ { t } ]
|
| 204 |
+
$$
|
| 205 |
+
|
| 206 |
+
142 The above equation could be approximated as:
|
| 207 |
+
|
| 208 |
+
$$
|
| 209 |
+
\frac { 1 } { m } \sum _ { k = 1 } ^ { m } \sum _ { t = 1 } ^ { T } \nabla _ { \theta _ { G } } \log P ( a _ { t } | a _ { ( t - 1 ) : 1 } ; \theta _ { G } ) r _ { t }
|
| 210 |
+
$$
|
| 211 |
+
|
| 212 |
+
143 For a model with $n$ attention layers, each dropout decision is composed of $n$ inner decisions of each
|
| 213 |
+
144 layer. Additionally, each attention layer contains an attention matrix of $l \times l$ , namely $l ^ { 2 }$ elements
|
| 214 |
+
145 dropped or kept. Thus, we denote a dropout unit as $d ^ { i j }$ , where $i$ refers to the $i ^ { t h }$ layer while $j$ refers
|
| 215 |
+
146 to the $j ^ { t h }$ element of the attention matrix.
|
| 216 |
+
147 However, $n l ^ { 2 }$ dropout units bring a huge space, which makes it impossible to calculate the joint prob
|
| 217 |
+
148 ability. To this end, we introduce the independence assumption that each dropout unit is independent
|
| 218 |
+
149 with each other. Under the relaxation, we can make the following probability likelihood:
|
| 219 |
+
|
| 220 |
+
$$
|
| 221 |
+
\log P ( a _ { t } | a _ { ( t - 1 ) : 1 } ; \theta _ { G } ) = \frac { 1 } { n l ^ { 2 } } \sum _ { i , j } \log P ( d _ { t } ^ { i j } | d _ { ( t - 1 ) : 1 } ^ { i j } ; \theta _ { G } )
|
| 222 |
+
$$
|
| 223 |
+
|
| 224 |
+
where the summation 150 $\textstyle \sum _ { i = 1 } ^ { n } \sum _ { j = 1 } ^ { l ^ { 2 } }$ is briefly denoted as $\textstyle \sum _ { i , j }$
|
| 225 |
+
|
| 226 |
+
151 Thus, the final gradient could be formalized as:
|
| 227 |
+
|
| 228 |
+
$$
|
| 229 |
+
\nabla _ { \theta _ { G } } J ( \theta _ { G } ) = \frac { 1 } { m } \frac { 1 } { n l ^ { 2 } } \sum _ { k = 1 } ^ { m } \sum _ { t = 1 } ^ { T } \sum _ { i , j } \nabla _ { \theta _ { G } } \log P ( d _ { t } ^ { i j } | d _ { ( t - 1 ) : 1 } ^ { i j } ; \theta _ { G } ) ( r _ { t } - b )
|
| 230 |
+
$$
|
| 231 |
+
|
| 232 |
+
152 where $b$ is a baseline function of moving average [35]. Note that we do not apply additional regular
|
| 233 |
+
153 izers like L0 and L1 penalty, which impose unnecessary bias.
|
| 234 |
+
154 Algorithm 1 summarizes the overall procedure of training PrLMs with AttendOut. We first initialize
|
| 235 |
+
155 all three networks. Note that D-Net and A-Net should be kept identical at the beginning of each
|
| 236 |
+
156 training step. A straightforward strategy is to choose the better one to cover the other. To add
|
| 237 |
+
157 randomness, we sample from D-Net and A-Net based on their evaluation performances, with higher
|
| 238 |
+
158 probability for the better one. Then for each step, D-Net and A-Net are fed with the same mini-batch
|
| 239 |
+
159 data and updated via standard gradient descent, meanwhile each batch will be cached. After training
|
| 240 |
+
160 for $T$ steps, which we denote as a dropout step, both D-Net and A-Net are evaluated on additional
|
| 241 |
+
161 validation samples, which could be development set data, noisy training data or a small split of train
|
| 242 |
+
162 ing data. In this paper, we simply use development set. For efficiency, we make random sampling
|
| 243 |
+
163 on it to retrieve $T$ samples for evaluation. Based on the evaluation scores, G-Net is rewarded with
|
| 244 |
+
164 $\{ r _ { 1 } , r _ { 2 } , r _ { 3 } , \cdot \cdot \cdot , r _ { T } \}$ and updated via Eq. 5. At the end of each dropout step, the cached samples
|
| 245 |
+
165 will be released and D-Net and A-Net will be re-initialized.
|
| 246 |
+
|
| 247 |
+
# Algorithm 1 AttendOut
|
| 248 |
+
|
| 249 |
+
Input: Attacker $A$ , Defender $D$ , Generator $G$ , dropout
|
| 250 |
+
step $T$
|
| 251 |
+
1: initialize $\theta _ { D }$ , $\theta _ { A }$ , $\theta _ { G }$ , where $\theta _ { D } = \theta _ { A }$
|
| 252 |
+
2: for each training step do
|
| 253 |
+
3: $\theta _ { D } \theta _ { D } ^ { \prime }$
|
| 254 |
+
4: dropout $A$ with $G$ via Eq. 3
|
| 255 |
+
5: $\theta _ { A } \theta _ { A } ^ { \prime }$
|
| 256 |
+
6: for each $T$ steps do
|
| 257 |
+
7: evaluate $D$ and $A$ and reward $G$
|
| 258 |
+
8: $\theta _ { G } \theta _ { G } ^ { \prime }$ via Eq. 5
|
| 259 |
+
9: initialize $\theta _ { D }$ , $\theta _ { A }$ for next step
|
| 260 |
+
10: end for
|
| 261 |
+
11: end for
|
| 262 |
+
167 Resource Usage We notice that training PrLMs with AttendOut may sacrifice time and memory
|
| 263 |
+
168 cost. The detailed resource usage is shown in Appendix. Taking RoBERTa as an example, the
|
| 264 |
+
169 algorithm requires two RoBERTa models as well as a smaller self-attention based generator, which
|
| 265 |
+
170 is $\mathrm { { \bar { 1 } / 3 } }$ of RoBERTa size. Considering cached samples, roughly speaking, AttendOut requires twice
|
| 266 |
+
171 graphic memory as well as twice training time compared to a single model, which is a middle speed
|
| 267 |
+
172 line between random-based dropout and neural architecture search (Dropout [13] $<$ AttendOut $\ll$
|
| 268 |
+
173 AutoDropout [19]). However, AttendOut contributes to remarkable performance gain compared to
|
| 269 |
+
174 other attention dropout methods.
|
| 270 |
+
175 Pre-training Our approach is both feasible for both fine-tuning and pre-training stage of PrLMs
|
| 271 |
+
176 but expensive for the latter. However, we try to serve for the most delicate part of concerned issue,
|
| 272 |
+
177 since pre-training is generally done on large-scale data with modest training epochs, which makes it
|
| 273 |
+
178 less susceptible from over-fitting.
|
| 274 |
+
|
| 275 |
+

|
| 276 |
+
Figure 2: Architecture of G-Net.
|
| 277 |
+
|
| 278 |
+
Table 1: Results (test / dev) of GLUE sub-tasks.
|
| 279 |
+
|
| 280 |
+
<table><tr><td>Model</td><td>SST-2 Acc</td><td>MRPC F1</td><td>QNLI Acc</td><td>MNLI-mm Acc</td><td>CoLA Mcc</td></tr><tr><td>BERT</td><td>92.9 / 92.2</td><td>86.6 / 86.3</td><td>89.7 /88.9</td><td>83.3 /84.0</td><td>51.2 / 58.8</td></tr><tr><td>+ AtendOut</td><td>93.6 / 93.8</td><td>88.1 / 87.5</td><td>90.2 / 91.1</td><td>84.2 /84.6</td><td>57.4 / 60.9</td></tr><tr><td>RoBERTa</td><td>95.4 / 94.4</td><td>90.5 /90.2</td><td>92.9 /92.0</td><td>86.1 /86.6</td><td>61.3 / 62.5</td></tr><tr><td>+ AtendOut</td><td>96.2 / 95.1</td><td>91.2 / 90.9</td><td>93.3 /93.0</td><td>87.3 /87.8</td><td>63.0 / 63.8</td></tr></table>
|
| 281 |
+
|
| 282 |
+
Table 2: Results of IMDB, CoNLL03, PTB and SWAG respectively.
|
| 283 |
+
|
| 284 |
+
<table><tr><td>Model</td><td>IMDB Acc</td><td>CoNLL03 F1</td><td>PTB F1</td><td>SWAG Acc</td></tr><tr><td>BERT</td><td>92.2</td><td>94.1</td><td>95.4</td><td>81.1</td></tr><tr><td>+ AttendOut</td><td>92.9</td><td>94.7</td><td>96.5</td><td>81.6</td></tr><tr><td>RoBERTa</td><td>93.6</td><td>94.5</td><td>96.6</td><td>83.8</td></tr><tr><td>+ AttendOut</td><td>94.2</td><td>95.2</td><td>97.3</td><td>84.1</td></tr></table>
|
| 285 |
+
|
| 286 |
+
# 179 5 Experimental Setup
|
| 287 |
+
|
| 288 |
+
180 We demonstrate the universal effectiveness of AttendOut on extensive natural language processing
|
| 289 |
+
181 tasks. For all mentioned tasks, we apply our method on BERT [2] and its stronger variant RoBERTa
|
| 290 |
+
182 [3]. Our implementations are based on PyTorch using transformers [36]. For further training details,
|
| 291 |
+
183 please refer to Appendix.
|
| 292 |
+
184 Our experiments include: (1) natural language understanding: General Language Understanding
|
| 293 |
+
185 Evaluation (GLUE) benchmark [37], a collection of nine natural language understanding tasks (here
|
| 294 |
+
186 we experiment on five of them, SST-2, MRPC, QNLI, MNLI-mm and CoLA; (2) document clas
|
| 295 |
+
187 sification: IMDB [38], a sentiment analysis dataset where about $15 \%$ of the documents are longer
|
| 296 |
+
188 than 512 word-pieces; (3) named entity recognition: CoNLL2003 [39]; (4) part-of-speech tag
|
| 297 |
+
189 ging: English Penn Treebank (PTB) [40]; (5) multiple choices question answering: SWAG [41].
|
| 298 |
+
190 We report both test and development results for GLUE sub-tasks since the large bias between them,
|
| 299 |
+
191 while development results only for all the other tasks.
|
| 300 |
+
192 Note that we only adjust the dropout steps and keep all other parameters the same for strict fair
|
| 301 |
+
193 comparison. For example, the parameters we use in RoBERTa are identical with what we use in
|
| 302 |
+
194 training with AttendOut including both D-Net and A-Net.
|
| 303 |
+
|
| 304 |
+
# 6 Results
|
| 305 |
+
|
| 306 |
+
# 6.1 Significance Analysis
|
| 307 |
+
|
| 308 |
+
97 Pictorially in Table 1, RoBERTa is strong enough as it outperforms BERT by a big margin, while
|
| 309 |
+
98 AttendOut empowered RoBERTa still outperforms it on all five GLUE sub-tasks. For small-scale
|
| 310 |
+
99 datasets, which are more likely to over-fit, AttendOut helps unfold remarkable performance gain
|
| 311 |
+
00 $( 1 2 . 1 \% \ / \ 3 . 5 \%$ over BERT on CoLA, $1 . 7 \% / 1 . 4 \%$ over BERT on MRPC). However, for large
|
| 312 |
+
01 scale one like MNLI, which tends to be more stable, AttendOut still produces considerable boost,
|
| 313 |
+
02 $( 1 . 4 \% / 1 . 4 \%$ over RoBERTa, $1 . 1 \% / 0 . 7 \%$ over BERT).
|
| 314 |
+
203 Furthermore, AttendOut is shown universally effective as in Table 2. For POS Tagging, BERT
|
| 315 |
+
204 and RoBERTa have achieved very strong baselines, while AttendOut empowered ones are even
|
| 316 |
+
205 stronger, $3 . 1 \%$ over BERT on PTB). Similar results are seen on document classification and NER.
|
| 317 |
+
206 For SWAG, however, AttendOut seems weakly effective $\mathbf { 0 . 6 \% }$ over BERT, $0 . 4 \%$ over RoBERTa).
|
| 318 |
+
|
| 319 |
+

|
| 320 |
+
Figure 3: Dropout probabilities on specific attention layers over training steps.
|
| 321 |
+
|
| 322 |
+

|
| 323 |
+
Figure 4: Convergence over training epochs.
|
| 324 |
+
|
| 325 |
+
# 207 6.2 Visual Analysis
|
| 326 |
+
|
| 327 |
+
Dropout Patterns Another concerned issue is the dropout proportions by AttendOut. Figure 3 depicts the patterns on several datasets. We may find several interesting phenomenons. First, the overall patterns largely differ from datasets, which is fair since AttendOut is sample-dependent. However, we may observe something in common. Overall, the lower layers take higher dropout probabilities. For example on QNLI, the first layer almost remains steady with the probability of 0.55 during the training process, while the fourth one continuously decays in a higher rate. Intuitively, the first three layers undertake a similar trend in each dataset, while there might be an up and down for the fourth one as in SST-2 and CoLA. Especially for CoLA, we see unusual high dropout probabilities in the final period (around 0.9), which are close to complete dropout. We notice that CoLA is a small set with 8500 training samples, on which SAN model is more inclined to suffer from over-fitting. Therefore, PrLM on CoLA encounters more intensive dropout through AttendOut.
|
| 328 |
+
|
| 329 |
+
219 Convergence Figure 4 depicts the accuracy trends of RoBERTa on SST-2, QNLI, MNLI respec
|
| 330 |
+
220 tively. Due to a stronger dropout module, the one with AttendOut tends to fall behind (SST-2,
|
| 331 |
+
221 MNLI) at the beginning of training. However, model becomes stronger since the second epoch
|
| 332 |
+
222 (SST-2, QNLI). Especially on MNLI, RoBERTa obtains better results in the first two epochs and it
|
| 333 |
+
223 drops in the last one, while with AttendOut, the performance is steadily rising for all three epochs.
|
| 334 |
+
|
| 335 |
+
# 7 Ablation Study
|
| 336 |
+
|
| 337 |
+
In this section, we conduct further experiments to demonstrate the effectiveness of AttendOut. Due to space limitation, we conduct corresponding experiments on development sets only.
|
| 338 |
+
|
| 339 |
+
# 7.1 Attention Dropout
|
| 340 |
+
|
| 341 |
+
Vanilla Dropout We conduct comparison with vanilla Dropout [13], in which we dropout the attention matrix for all layers with Bernoulli distribution of $p$ . Here, we choose the dropout probabilities in {0.1, 0.2}.
|
| 342 |
+
|
| 343 |
+
Table 3: Comparison of AttendOut, vanilla Dropout and LayerDrop.
|
| 344 |
+
|
| 345 |
+
<table><tr><td>Model</td><td>CoLA</td><td>QNLI</td><td>MNLI-mm</td></tr><tr><td>RoBERTa</td><td>62.5</td><td>92.0</td><td>86.6</td></tr><tr><td>+ Vanilla</td><td>61.3</td><td>92.2</td><td>86.9</td></tr><tr><td>+ AttendOut</td><td>63.8</td><td>93.1</td><td>87.8</td></tr><tr><td>+ LayerDrop</td><td>62.1</td><td>92.6</td><td>87.1</td></tr><tr><td>+ Attn.LayerDrop</td><td>64.2</td><td>92.7</td><td>87.3</td></tr></table>
|
| 346 |
+
|
| 347 |
+
Table 4: Comparison of AttendOut and scheduled Bernoulli dropout.
|
| 348 |
+
|
| 349 |
+
<table><tr><td>Model</td><td>CoLA</td><td>QNLI</td><td>SWAG</td></tr><tr><td>RoBERTa</td><td>62.5</td><td>92.0</td><td>83.8</td></tr><tr><td>+ Scheduler</td><td>63.3</td><td>92.6</td><td>83.6</td></tr><tr><td>+ AttendOut</td><td>63.8</td><td>93.1</td><td>84.1</td></tr></table>
|
| 350 |
+
|
| 351 |
+
231 LayerDrop We also compare with LayerDrop [29], which focuses on skipping the entire encoder
|
| 352 |
+
232 blocks, Inspired of it, we design another strategy which randomly skips attention layers via Eq. 4.
|
| 353 |
+
233 For fair enough comparison, we set the dropout probabilities to 0.2 for both methods, following the
|
| 354 |
+
234 settings in [29].
|
| 355 |
+
235 Intuitively in Table 3, vanilla Dropout with fixed probability does not produce noticeable gain $( 1 . 9 \%$
|
| 356 |
+
236 bellow RoBERTa on CoLA). However, AttendOut shows powerful advantage $4 . 1 \%$ , $1 . 0 \%$ and $1 . 0 \%$
|
| 357 |
+
237 over vanilla Dropout on CoLA, QNLI and MNLI), which stresses the necessity of dynamic dropout
|
| 358 |
+
238 patterns rather than fixed static one. On the other hand, both layer-level regularizers are effective,
|
| 359 |
+
239 while attention LayerDrop performs stronger and more stable on all the three. Especially on CoLA,
|
| 360 |
+
240 it outperforms RoBERTa by 1.7 points, while LayerDrop meets a performance drop, which demon
|
| 361 |
+
241 strates that removing the attention layers act as a more effective regularizer than removing the entire
|
| 362 |
+
242 SAN block as for self-attention based models.
|
| 363 |
+
|
| 364 |
+
# 243 7.2 Pattern Approximation
|
| 365 |
+
|
| 366 |
+
244 Guided by AttendOut, we design a dropout scheduler, in which we utilize piece-wise linearity to
|
| 367 |
+
245 approximate the real curves as depicted in Figure 3. Taking QNLI as an example, we initialize
|
| 368 |
+
246 the dropout probabilities to 0.6 for all attention layers and set a a specific slope for each of them.
|
| 369 |
+
247 Note that here the corresponding mask matrices are randomly-generated and subject to Bernoulli
|
| 370 |
+
248 distribution. In AttendOut, however, the distribution are learned dynamically through self-attention
|
| 371 |
+
249 of G-Net.
|
| 372 |
+
250 As shown in Table 4, RoBERTa with scheduled Bernoulli dropout works surprisingly well on both
|
| 373 |
+
251 CoLA and QNLI, which outperforms RoBERTa by 0.8 and 0.6 points respectively, closer to At
|
| 374 |
+
252 tendOut, even if the strategy here is random-based and much looser. The guided scheduled dropout
|
| 375 |
+
253 helps unfold the correctness of the dynamic dropout patterns learned by AttendOut as well as the
|
| 376 |
+
254 self-attention based dropout maker.
|
| 377 |
+
|
| 378 |
+
# 255 8 Conclusion
|
| 379 |
+
|
| 380 |
+
This paper focuses on the co-adaption problem of deep self-attention networks, and presents a novel dropout method onto self-attention empowered pre-trained language models. Extensive experiments on multiple natural language processing tasks demonstrate that our proposed approach is universal and qualified to enable more robust task-specific tuning, which contributes to much stronger stateof-the-arts. We probe into the learned dropout patterns on different tasks, which empirically guide us to the very needed dynamic attention dropout design.
|
| 381 |
+
|
| 382 |
+
262 References
|
| 383 |
+
263 [1] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz
|
| 384 |
+
264 Kaiser, and Illia Polosukhin. Attention is all you need. In Isabelle Guyon, Ulrike von Luxburg, Samy
|
| 385 |
+
265 Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett, editors, Advances
|
| 386 |
+
266 in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing
|
| 387 |
+
267 Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 5998–6008, 2017.
|
| 388 |
+
268 [2] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: pre-training of deep bidi
|
| 389 |
+
269 rectional transformers for language understanding. In Jill Burstein, Christy Doran, and Thamar Solorio,
|
| 390 |
+
270 editors, Proceedings of the 2019 Conference of the North American Chapter of the Association for Com
|
| 391 |
+
271 putational Linguistics: Human Language Technologies, NAACL-HLT 2019, Minneapolis, MN, USA, June
|
| 392 |
+
272 2-7, 2019, Volume 1 (Long and Short Papers), pages 4171–4186. Association for Computational Linguis
|
| 393 |
+
273 tics, 2019.
|
| 394 |
+
274 [3] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis,
|
| 395 |
+
275 Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized BERT pretraining approach.
|
| 396 |
+
276 CoRR, abs/1907.11692, 2019.
|
| 397 |
+
277 [4] Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut.
|
| 398 |
+
278 ALBERT: A lite BERT for self-supervised learning of language representations. In 8th International
|
| 399 |
+
279 Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. Open
|
| 400 |
+
280 Review.net, 2020.
|
| 401 |
+
281 [5] Kevin Clark, Minh-Thang Luong, Quoc V. Le, and Christopher D. Manning. ELECTRA: pre-training
|
| 402 |
+
282 text encoders as discriminators rather than generators. In 8th International Conference on Learning Rep
|
| 403 |
+
283 resentations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net, 2020.
|
| 404 |
+
284 [6] Pengcheng He, Xiaodong Liu, Jianfeng Gao, and Weizhu Chen. {DEBERTA}: {DECODING}-
|
| 405 |
+
285 {enhanced} {bert} {with} {disentangled} {attention}. In International Conference on Learning Repre
|
| 406 |
+
286 sentations, 2021.
|
| 407 |
+
287 [7] Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding
|
| 408 |
+
288 by generative pre-training. 2018.
|
| 409 |
+
289 [8] Weiqiu You, Simeng Sun, and Mohit Iyyer. Hard-coded gaussian attention for neural machine translation.
|
| 410 |
+
290 In Dan Jurafsky, Joyce Chai, Natalie Schluter, and Joel R. Tetreault, editors, Proceedings of the 58th
|
| 411 |
+
291 Annual Meeting of the Association for Computational Linguistics, ACL 2020, Online, July 5-10, 2020,
|
| 412 |
+
292 pages 7689–7700. Association for Computational Linguistics, 2020.
|
| 413 |
+
293 [9] Yi Tay, Dara Bahri, Donald Metzler, Da-Cheng Juan, Zhe Zhao, and Che Zheng. Synthesizer: Rethinking
|
| 414 |
+
294 self-attention in transformer models. CoRR, abs/2005.00743, 2020.
|
| 415 |
+
295 [10] Sinong Wang, Belinda Z. Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with
|
| 416 |
+
296 linear complexity. CoRR, abs/2006.04768, 2020.
|
| 417 |
+
297 [11] Yihe Dong, Jean-Baptiste Cordonnier, and Andreas Loukas. Attention is not all you need: Pure attention
|
| 418 |
+
298 loses rank doubly exponentially with depth. CoRR, abs/2103.03404, 2021.
|
| 419 |
+
299 [12] Saurabh Goyal, Anamitra Roy Choudhury, Saurabh Raje, Venkatesan T. Chakaravarthy, Yogish Sabhar
|
| 420 |
+
300 wal, and Ashish Verma. Power-bert: Accelerating BERT inference via progressive word-vector elimi
|
| 421 |
+
301 nation. In Proceedings of the 37th International Conference on Machine Learning, ICML 2020, 13-18
|
| 422 |
+
302 July 2020, Virtual Event, volume 119 of Proceedings of Machine Learning Research, pages 3690–3699.
|
| 423 |
+
303 PMLR, 2020.
|
| 424 |
+
304 [13] Nitish Srivastava, Geoffrey E. Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov.
|
| 425 |
+
305 Dropout: a simple way to prevent neural networks from overfitting. J. Mach. Learn. Res., 15(1):1929–
|
| 426 |
+
306 1958, 2014.
|
| 427 |
+
307 [14] Li Wan, Matthew D. Zeiler, Sixin Zhang, Yann LeCun, and Rob Fergus. Regularization of neural networks
|
| 428 |
+
308 using dropconnect. In Proceedings of the 30th International Conference on Machine Learning, ICML
|
| 429 |
+
309 2013, Atlanta, GA, USA, 16-21 June 2013, volume 28 of JMLR Workshop and Conference Proceedings,
|
| 430 |
+
310 pages 1058–1066. JMLR.org, 2013.
|
| 431 |
+
311 [15] Zhuosheng Zhang, Yuwei Wu, Junru Zhou, Sufeng Duan, Hai Zhao, and Rui Wang. Sg-net: Syntax
|
| 432 |
+
312 guided machine reading comprehension. In The Thirty-Fourth AAAI Conference on Artificial Intelligence,
|
| 433 |
+
313 AAAI 2020, The Thirty-Second Innovative Applications of Artificial Intelligence Conference, IAAI 2020,
|
| 434 |
+
314 The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020, New York, NY,
|
| 435 |
+
315 USA, February 7-12, 2020, pages 9636–9643. AAAI Press, 2020.
|
| 436 |
+
|
| 437 |
+
[16] Hongqiu Wu, Hai Zhao, and Min Zhang. Code summarization with structure-induced transformer. arXiv preprint arXiv:2012.14710, 2020.
|
| 438 |
+
[17] Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017.
|
| 439 |
+
[18] Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: differentiable architecture search. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019.
|
| 440 |
+
[19] Hieu Pham and Quoc V. Le. Autodropout: Learning dropout patterns to regularize deep networks. CoRR, abs/2101.01761, 2021.
|
| 441 |
+
[20] Günter Klambauer, Thomas Unterthiner, Andreas Mayr, and Sepp Hochreiter. Self-normalizing neural networks. In Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett, editors, Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 971–980, 2017.
|
| 442 |
+
[21] Avrim Blum, Nika Haghtalab, and Ariel D. Procaccia. Variational dropout and the local reparameterization trick. In Corinna Cortes, Neil D. Lawrence, Daniel D. Lee, Masashi Sugiyama, and Roman Garnett, editors, Advances in Neural Information Processing Systems 28: Annual Conference on Neural Information Processing Systems 2015, December 7-12, 2015, Montreal, Quebec, Canada, pages 2575–2583, 2015.
|
| 443 |
+
[22] Dmitry Molchanov, Arsenii Ashukha, and Dmitry P. Vetrov. Variational dropout sparsifies deep neural networks. In Doina Precup and Yee Whye Teh, editors, Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, volume 70 of Proceedings of Machine Learning Research, pages 2498–2507. PMLR, 2017.
|
| 444 |
+
[23] Sungrae Park, Jun-Keon Park, Su-Jin Shin, and Il-Chul Moon. Adversarial dropout for supervised and semi-supervised learning. In Sheila A. McIlraith and Kilian Q. Weinberger, editors, Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence, (AAAI-18), the 30th innovative Applications of Artificial Intelligence (IAAI-18), and the 8th AAAI Symposium on Educational Advances in Artificial Intelligence (EAAI-18), New Orleans, Louisiana, USA, February 2-7, 2018, pages 3917–3924. AAAI Press, 2018.
|
| 445 |
+
[24] Hojjat Salehinejad and Shahrokh Valaee. Edropout: Energy-based dropout and pruning of deep neural networks. CoRR, abs/2006.04270, 2020.
|
| 446 |
+
[25] Yarin Gal, Jiri Hron, and Alex Kendall. Concrete dropout. In Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett, editors, Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 3581–3590, 2017.
|
| 447 |
+
[26] Shahin Boluki, Randy Ardywibowo, Siamak Zamani Dadaneh, Mingyuan Zhou, and Xiaoning Qian. Learnable bernoulli dropout for bayesian deep learning. In Silvia Chiappa and Roberto Calandra, editors, The 23rd International Conference on Artificial Intelligence and Statistics, AISTATS 2020, 26-28 August 2020, Online [Palermo, Sicily, Italy], volume 108 of Proceedings of Machine Learning Research, pages 3905–3916. PMLR, 2020.
|
| 448 |
+
[27] Mingzhang Yin and Mingyuan Zhou. ARM: augment-reinforce-merge gradient for stochastic binary networks. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019.
|
| 449 |
+
[28] Xinjie Fan, Shujian Zhang, Korawat Tanwisuth, Xiaoning Qian, and Mingyuan Zhou. Contextual dropout: An efficient sample-dependent dropout module. CoRR, abs/2103.04181, 2021.
|
| 450 |
+
[29] Angela Fan, Edouard Grave, and Armand Joulin. Reducing transformer depth on demand with structured dropout. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net, 2020.
|
| 451 |
+
[30] Wangchunshu Zhou, Tao Ge, Furu Wei, Ming Zhou, and Ke Xu. Scheduled drophead: A regularization method for transformer models. In Trevor Cohn, Yulan He, and Yang Liu, editors, Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: Findings, EMNLP 2020, Online Event, 16-20 November 2020, pages 1971–1980. Association for Computational Linguistics, 2020.
|
| 452 |
+
|
| 453 |
+
369 [31] Zewei Sun, Shujian Huang, Xinyu Dai, and Jiajun Chen. Alleviating the inequality of attention heads for
|
| 454 |
+
370 neural machine translation. CoRR, abs/2009.09672, 2020.
|
| 455 |
+
371 [32] Zhen Wu, Lijun Wu, Meng Qi, Yingce Xia, Shufang Xie, Tao Qin, Xinyu Dai, and Tie-Yan Liu. Unidrop:
|
| 456 |
+
372 A simple yet effective technique to improve transformer without extra cost. In Proceedings of the The 2021
|
| 457 |
+
373 Conference of the North American Chapter of the Association for Computational Linguistics - Human
|
| 458 |
+
374 Language Technologies, Volume 1 (Long Papers), 2021.
|
| 459 |
+
375 [33] Chris J. Maddison, Daniel Tarlow, and Tom Minka. $\mathbf { A } ^ { * }$ sampling. In Zoubin Ghahramani, Max Welling,
|
| 460 |
+
376 Corinna Cortes, Neil D. Lawrence, and Kilian Q. Weinberger, editors, Advances in Neural Information
|
| 461 |
+
377 Processing Systems 27: Annual Conference on Neural Information Processing Systems 2014, December
|
| 462 |
+
378 8-13 2014, Montreal, Quebec, Canada, pages 3086–3094, 2014.
|
| 463 |
+
379 [34] Xinwei Geng, Longyue Wang, Xing Wang, Bing Qin, Ting Liu, and Zhaopeng Tu. How does selective
|
| 464 |
+
380 mechanism improve self-attention networks? In Dan Jurafsky, Joyce Chai, Natalie Schluter, and Joel R.
|
| 465 |
+
381 Tetreault, editors, Proceedings of the 58th Annual Meeting of the Association for Computational Linguis
|
| 466 |
+
382 tics, ACL 2020, Online, July 5-10, 2020, pages 2986–2995. Association for Computational Linguistics,
|
| 467 |
+
383 2020.
|
| 468 |
+
384 [35] Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement
|
| 469 |
+
385 learning. Mach. Learn., 8:229–256, 1992.
|
| 470 |
+
386 [36] Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pier
|
| 471 |
+
387 ric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen,
|
| 472 |
+
388 Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame,
|
| 473 |
+
389 Quentin Lhoest, and Alexander M. Rush. Transformers: State-of-the-art natural language processing.
|
| 474 |
+
390 In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System
|
| 475 |
+
391 Demonstrations, pages 38–45, Online, October 2020. Association for Computational Linguistics.
|
| 476 |
+
392 [37] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. GLUE:
|
| 477 |
+
393 A multi-task benchmark and analysis platform for natural language understanding. In 7th International
|
| 478 |
+
394 Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenRe
|
| 479 |
+
395 view.net, 2019.
|
| 480 |
+
396 [38] Andrew L. Maas, Raymond E. Daly, Peter T. Pham, Dan Huang, Andrew Y. Ng, and Christopher Potts.
|
| 481 |
+
397 Learning word vectors for sentiment analysis. In Dekang Lin, Yuji Matsumoto, and Rada Mihalcea,
|
| 482 |
+
398 editors, The 49th Annual Meeting of the Association for Computational Linguistics: Human Language
|
| 483 |
+
399 Technologies, Proceedings of the Conference, 19-24 June, 2011, Portland, Oregon, USA, pages 142–150.
|
| 484 |
+
400 The Association for Computer Linguistics, 2011.
|
| 485 |
+
401 [39] Erik F. Tjong Kim Sang and Fien De Meulder. Introduction to the conll-2003 shared task: Language
|
| 486 |
+
402 independent named entity recognition. In Walter Daelemans and Miles Osborne, editors, Proceedings
|
| 487 |
+
403 of the Seventh Conference on Natural Language Learning, CoNLL 2003, Held in cooperation with HLT
|
| 488 |
+
404 NAACL 2003, Edmonton, Canada, May 31 - June 1, 2003, pages 142–147. ACL, 2003.
|
| 489 |
+
405 [40] Mitchell P. Marcus, Beatrice Santorini, and Mary Ann Marcinkiewicz. Building a large annotated corpus
|
| 490 |
+
406 of english: The penn treebank. Comput. Linguistics, 19(2):313–330, 1993.
|
| 491 |
+
407 [41] Rowan Zellers, Yonatan Bisk, Roy Schwartz, and Yejin Choi. SWAG: A large-scale adversarial dataset
|
| 492 |
+
408 for grounded commonsense inference. In Ellen Riloff, David Chiang, Julia Hockenmaier, and Jun’ichi
|
| 493 |
+
409 Tsujii, editors, Proceedings of the 2018 Conference on Empirical Methods in Natural Language Process
|
| 494 |
+
410 ing, Brussels, Belgium, October 31 - November 4, 2018, pages 93–104. Association for Computational
|
| 495 |
+
411 Linguistics, 2018.
|
| 496 |
+
|
| 497 |
+
# 412 Checklist
|
| 498 |
+
|
| 499 |
+
1. For all authors...
|
| 500 |
+
|
| 501 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 502 |
+
(b) Did you describe the limitations of your work? [Yes] See Section 4.2.
|
| 503 |
+
(c) Did you discuss any potential negative societal impacts of your work? [N/A]
|
| 504 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 505 |
+
|
| 506 |
+
2. If you are including theoretical results...
|
| 507 |
+
|
| 508 |
+
(a) Did you state the full set of assumptions of all theoretical results? [Yes] See Section 4.2. (b) Did you include complete proofs of all theoretical results? [No]
|
| 509 |
+
|
| 510 |
+
3. If you ran experiments...
|
| 511 |
+
|
| 512 |
+
(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] See supplemental material.
|
| 513 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 4.2 and appendix.
|
| 514 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No]
|
| 515 |
+
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Section 4.2 and appendix.
|
| 516 |
+
|
| 517 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 518 |
+
|
| 519 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes] See Section 5.
|
| 520 |
+
(b) Did you mention the license of the assets? [N/A]
|
| 521 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [No]
|
| 522 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
|
| 523 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No]
|
| 524 |
+
|
| 525 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 526 |
+
|
| 527 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 528 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 529 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/train/r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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Not All Attention Is All You Need ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
294,
|
| 8 |
+
122,
|
| 9 |
+
700,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
423,
|
| 19 |
+
196,
|
| 20 |
+
578,
|
| 21 |
+
252
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
287,
|
| 32 |
+
535,
|
| 33 |
+
304
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "1 Beyond the success story of pre-trained language models (PrLMs) in recent natu \n2 ral language processing, they are susceptible to over-fitting due to unusual large \n3 model size. To this end, dropout serves as a therapy. However, existing methods \n4 like random-based, knowledge-based and search-based dropout are more general \n5 but less effective onto self-attention based models, which are broadly chosen as \n6 the fundamental architecture of PrLMs. In this paper, we propose a novel dropout \n7 method named AttendOut to let self-attention empowered PrLMs capable of more \n8 robust task-specific tuning. We demonstrate that state-of-the-art models with elab \n9 orate training design may achieve much stronger results. We verify the universal \n10 ity of our approach on extensive natural language processing tasks. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
150,
|
| 42 |
+
319,
|
| 43 |
+
767,
|
| 44 |
+
459
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "11 1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
148,
|
| 54 |
+
483,
|
| 55 |
+
312,
|
| 56 |
+
501
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "12 Self-attention network (SAN) empowered models like Transformer [1] have achieved remarkable \n13 success in recent natural language processing, which have been broadly chosen as basic architec \n14 ture in a series successful pre-trained language models (PrLMs) such as BERT [2], RoBERTa [3], \n15 ALBERT [4], ELECTRA [5], DeBERTa [6] and GPT [7]. \n16 SAN has drawn a great deal of curiosity on its conceptually simple but powerful attention mecha \n17 nism. However, SAN still remains a black box and more and more works attempt to unveil its inner \n18 principle, where the biggest mystery lies in its attention matrix. Our work is inspired by several \n19 recent discoveries which turn our views up and down. [8, 9] show that fixed Gaussian or even ran \n20 dom alignment attention matrix may rival standard SAN, while more recently, [10, 11] prove that \n21 SAN may encounter a rank collapse with deepening of layers. A more concrete explanation is in \n22 formation diffusion [12], which states that the input vectors are progressively assimilating through \n23 continuously making self-attention. We attribute these problems to the sever co-adaption [13] be \n24 tween attention elements, a form of over-fitting onto SAN. As a result, self-attention empowered \n25 PrLMs hardly bring into their full play, especially for the fine-tuning stage, where task-specific data \n26 is always with limited capacity. \n27 Dropout [13] serves as a therapy to deal with the problem, by randomly shutting down a set of units \n28 during training stage. When specified on self-attention, dropout is equivalent to adding attention \n29 mask to the attention matrix. However, random-based dropout methods like vanilla Dropout [13] or \n30 DropConnect [14] are all subject to a pre-defined distribution like Bernoulli or Gaussian, longing for \n31 exhaustive grid search for an optimal probability. Thereby a variety of works attempt to utilize man \n32 ual attention mask to obtain a more informative attention matrix [15, 16], whereas all these methods \n33 require prior knowledge on model or data, which could be costly or unavailable. More recently, the \n34 rise of Neural Architecture Search [17, 18] gives birth to search-based dropout [19], which automat \n35 ically chooses an optimal dropout pattern based on additional validation performances. However, \n36 the huge search space brings heavy consumption and more importantly, the obtained dropout pattern \n37 is still fixed with a pre-defined probability, which is static and sample-independent, ignoring the \n38 dynamics within different samples. In this paper, we focus on task-specific tuning of self-attention \n39 empowered PrLMs and propose a novel dropout method named AttendOut onto attention layers, \n40 which leverages self-attention to dynamically generate dropout patterns for each attention layer as \n41 well as each sample through an end-to-end manner. We demonstrate that the previous state-of-the-art \n42 models with elaborate training design may achieve much stronger results. We verify the universality \n43 of our approach on extensive natural language processing tasks. Guided by AttendOut, we pro \n44 pose another two attention regularizers to enable simple but effective performance boost with no \n45 additional cost. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
148,
|
| 65 |
+
515,
|
| 66 |
+
825,
|
| 67 |
+
570
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "",
|
| 74 |
+
"bbox": [
|
| 75 |
+
147,
|
| 76 |
+
577,
|
| 77 |
+
825,
|
| 78 |
+
728
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "",
|
| 85 |
+
"bbox": [
|
| 86 |
+
147,
|
| 87 |
+
736,
|
| 88 |
+
825,
|
| 89 |
+
901
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/bb9e5c7dfb1c536808b7a53013b509ca9c34d20afb292d3c61b86cbda7d324d9.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: A diagram of different dropout methods, where $p$ refers to the dropout probabilities while $R$ refers to the reward in reinforcement learning. "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
181,
|
| 102 |
+
93,
|
| 103 |
+
813,
|
| 104 |
+
243
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "",
|
| 111 |
+
"bbox": [
|
| 112 |
+
147,
|
| 113 |
+
324,
|
| 114 |
+
825,
|
| 115 |
+
421
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "46 2 Related Work ",
|
| 122 |
+
"text_level": 1,
|
| 123 |
+
"bbox": [
|
| 124 |
+
148,
|
| 125 |
+
443,
|
| 126 |
+
320,
|
| 127 |
+
459
|
| 128 |
+
],
|
| 129 |
+
"page_idx": 1
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"type": "text",
|
| 133 |
+
"text": "47 Dropout is proposed to alleviate over-fitting problem in DNNs. Apart from vanilla Dropout [13] \n48 and DropConnect [14] which randomly shut down a subset of activations or hidden weights, there \n49 are a variety of dropout methods proposed, e.g. Alpha Dropout [20], Variational Dropout [21, 22], \n50 Adversarial Dropout [23], Energy-based Dropout [24]. However, random-based dropout encounters \n51 slow experiment cycle due to inevitable grid search. Inspired by Neural Architecture Search [17, 18], \n52 [19] proposes AutoDropout to automate the process of designing dropout patterns. A similar line of \n53 work is dynamic tuning of dropout, which further allows adaptive dropout probabilities under differ \n54 ent training moments. [25] proposes Concrete Dropout with continuous relaxation under Concrete \n55 distribution, [26] proposes Learnable Bernoulli Dropout under discrete Bernoulli distribution using \n56 Augment-REINFORCE-Merge estimator [27], while [28] proposes Context Dropout by optimizing \n57 the evidence lower bound. \n58 With self-attention network continuously stands out, dropout is being explored onto self-attention \n59 based models. LayerDrop [29] randomly removes entire SAN blocks, while DropHead [30], Head \n60 Mask [31] randomly remove certain attention heads. UniDrop [32] unifies these dropout methods, \n61 which facilitates text classification and machine translation tasks. Additionally, prior knowledge is \n62 shown highly effective for guiding attention dropout as in SG-Net [15] and SIT [16], which inten \n63 tionally discard syntax-unrelated attention units with the help of structural clues. ",
|
| 134 |
+
"bbox": [
|
| 135 |
+
145,
|
| 136 |
+
474,
|
| 137 |
+
825,
|
| 138 |
+
627
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "",
|
| 145 |
+
"bbox": [
|
| 146 |
+
147,
|
| 147 |
+
632,
|
| 148 |
+
826,
|
| 149 |
+
717
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "64 3 Preliminaries ",
|
| 156 |
+
"text_level": 1,
|
| 157 |
+
"bbox": [
|
| 158 |
+
150,
|
| 159 |
+
737,
|
| 160 |
+
318,
|
| 161 |
+
753
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 1
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "text",
|
| 167 |
+
"text": "65 In this section, we provide the preliminaries for the proposed approach. We first review the details \n66 of self-attention proposed in [1]. Based on the specific architecture, we elaborate the concerned \n67 attention dropout. ",
|
| 168 |
+
"bbox": [
|
| 169 |
+
151,
|
| 170 |
+
770,
|
| 171 |
+
825,
|
| 172 |
+
811
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 1
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "3.1 Self-Attention ",
|
| 179 |
+
"text_level": 1,
|
| 180 |
+
"bbox": [
|
| 181 |
+
160,
|
| 182 |
+
829,
|
| 183 |
+
310,
|
| 184 |
+
844
|
| 185 |
+
],
|
| 186 |
+
"page_idx": 1
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"type": "text",
|
| 190 |
+
"text": "69 Generally, a standard SAN block is mainly composed of an attention layer and several feed-forward \n70 layers (actually there are residual connection, layer normalization, etc. as well). The input of it is a \n71 sentence or batch of sentences of length $n$ , which is first embedded through an embedding layer. The \n72 embedded input $E$ may go through three linear projections $W _ { Q }$ , $W _ { K }$ and $W _ { V }$ referring to query, key \n73 and value layers respectively, and then obtain three matrices $Q$ , $K$ and $V$ referring to the query, key \n74 and value components of self-attention. Subsequently, a dot-product of $Q$ and $K$ is taken and then \n75 normalized using Sof tmax function to obtain the attention matrix $A$ . Then another dot-product of \n76 $A$ and $V$ follows. The mentioned calculation can be formalized as follow: ",
|
| 191 |
+
"bbox": [
|
| 192 |
+
147,
|
| 193 |
+
856,
|
| 194 |
+
825,
|
| 195 |
+
911
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 1
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "",
|
| 202 |
+
"bbox": [
|
| 203 |
+
147,
|
| 204 |
+
90,
|
| 205 |
+
826,
|
| 206 |
+
147
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 2
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "equation",
|
| 212 |
+
"img_path": "images/f01579e1ebd392a48f61a52866bee4bea9417a2038606f3c159b6cc6f8fa8f15.jpg",
|
| 213 |
+
"text": "$$\nA t t e n t i o n ( Q , K , V ) = S o f t m a x \\left( \\frac { Q \\cdot K ^ { T } } { \\sqrt { d _ { k } } } \\right) \\cdot V\n$$",
|
| 214 |
+
"text_format": "latex",
|
| 215 |
+
"bbox": [
|
| 216 |
+
330,
|
| 217 |
+
147,
|
| 218 |
+
668,
|
| 219 |
+
183
|
| 220 |
+
],
|
| 221 |
+
"page_idx": 2
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"type": "text",
|
| 225 |
+
"text": "where 77 $\\sqrt { d _ { k } }$ is a scaling factor. Finally, the self-attention layer ends up with a linear projection $W _ { O }$ 78 to output. ",
|
| 226 |
+
"bbox": [
|
| 227 |
+
143,
|
| 228 |
+
186,
|
| 229 |
+
828,
|
| 230 |
+
217
|
| 231 |
+
],
|
| 232 |
+
"page_idx": 2
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"type": "text",
|
| 236 |
+
"text": "79 During the aforementioned process, we highlight a key phases, that is the attention matrix $A$ , which \n80 is a dot-product of $n \\times n$ from two separate linear projections $W _ { Q }$ and $W _ { K }$ . $A$ is viewed as a feature \n81 map which stores the node-to-node significance in different scores. Various works show that there \n82 hides implicit but highly needed semantic clues. ",
|
| 237 |
+
"bbox": [
|
| 238 |
+
147,
|
| 239 |
+
222,
|
| 240 |
+
825,
|
| 241 |
+
279
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "3.2 Dropout on Self-Attention ",
|
| 248 |
+
"text_level": 1,
|
| 249 |
+
"bbox": [
|
| 250 |
+
165,
|
| 251 |
+
292,
|
| 252 |
+
393,
|
| 253 |
+
309
|
| 254 |
+
],
|
| 255 |
+
"page_idx": 2
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"type": "text",
|
| 259 |
+
"text": "84 Our dropout will apply to the attention matrix of the concerned attention layer. We first define two \n85 specific dropouts onto Eq. 1, where both implementations are just as simple as in standard dropout \n86 via a mask matrix $M$ . ",
|
| 260 |
+
"bbox": [
|
| 261 |
+
147,
|
| 262 |
+
318,
|
| 263 |
+
825,
|
| 264 |
+
361
|
| 265 |
+
],
|
| 266 |
+
"page_idx": 2
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"type": "text",
|
| 270 |
+
"text": "Weights Dropout. Weights dropout is applied to the attention matrix after Sof tmax function by default, which is formulated as: ",
|
| 271 |
+
"bbox": [
|
| 272 |
+
161,
|
| 273 |
+
375,
|
| 274 |
+
825,
|
| 275 |
+
402
|
| 276 |
+
],
|
| 277 |
+
"page_idx": 2
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"type": "equation",
|
| 281 |
+
"img_path": "images/5863a18ac81c302b6bbb246ab4cf03ca69a1f70388758d2c720bc7f29a7e2b9d.jpg",
|
| 282 |
+
"text": "$$\n{ \\cal A } t t e n t i o n ( Q , K , V ) = \\left( S o f t m a x \\left( { \\frac { Q \\cdot K ^ { T } } { \\sqrt { d _ { k } } } } \\right) \\odot { \\cal M } \\right) \\cdot V\n$$",
|
| 283 |
+
"text_format": "latex",
|
| 284 |
+
"bbox": [
|
| 285 |
+
300,
|
| 286 |
+
405,
|
| 287 |
+
699,
|
| 288 |
+
440
|
| 289 |
+
],
|
| 290 |
+
"page_idx": 2
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"type": "text",
|
| 294 |
+
"text": "9 where $M$ is a binary matrix with elements in $\\{ 0 , 1 \\}$ and $\\odot$ refers to element-wise multiplication. ",
|
| 295 |
+
"bbox": [
|
| 296 |
+
158,
|
| 297 |
+
443,
|
| 298 |
+
803,
|
| 299 |
+
458
|
| 300 |
+
],
|
| 301 |
+
"page_idx": 2
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"type": "text",
|
| 305 |
+
"text": "90 Scores Dropout. Different from weights dropout, scores dropout is applied before Sof tmax func \n91 tion, which is formulated as: ",
|
| 306 |
+
"bbox": [
|
| 307 |
+
150,
|
| 308 |
+
470,
|
| 309 |
+
826,
|
| 310 |
+
500
|
| 311 |
+
],
|
| 312 |
+
"page_idx": 2
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"type": "equation",
|
| 316 |
+
"img_path": "images/aa41cdf47367563051effa736f464457ab245e254950d8cb98fbd9a23d1e4f17.jpg",
|
| 317 |
+
"text": "$$\nA t t e n t i o n ( Q , K , V ) = S o f t m a x \\left( \\frac { Q \\cdot K ^ { T } } { \\sqrt { d _ { k } } } + M \\right) \\cdot V\n$$",
|
| 318 |
+
"text_format": "latex",
|
| 319 |
+
"bbox": [
|
| 320 |
+
312,
|
| 321 |
+
502,
|
| 322 |
+
686,
|
| 323 |
+
537
|
| 324 |
+
],
|
| 325 |
+
"page_idx": 2
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"type": "text",
|
| 329 |
+
"text": "92 Since the outer Sof tmax, we conduct an addition instead of multiplication, where elements in $M$ \n93 are set to 0 for kept units and $- i n f$ for removed ones. Note that the Sof tmax takes a similar \n94 function as the scaling factor of $1 / p$ in vanilla Dropout [13], which balances the expectation of the \n95 network. \n96 Weights dropout is commonly used in self-attention based models, while scores dropout is less \n97 explored, which is our focus in this paper. For scores dropout, we need to pay attention to a special \n98 case, when all attentions are shut down, that is, all elements in $M$ equal to $- i n f$ at the same time. \n99 Such case can be formulated as follow: ",
|
| 330 |
+
"bbox": [
|
| 331 |
+
147,
|
| 332 |
+
540,
|
| 333 |
+
825,
|
| 334 |
+
595
|
| 335 |
+
],
|
| 336 |
+
"page_idx": 2
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"type": "text",
|
| 340 |
+
"text": "",
|
| 341 |
+
"bbox": [
|
| 342 |
+
145,
|
| 343 |
+
602,
|
| 344 |
+
825,
|
| 345 |
+
657
|
| 346 |
+
],
|
| 347 |
+
"page_idx": 2
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"type": "equation",
|
| 351 |
+
"img_path": "images/16385849221d0194e2721e692fbb1d76cf6a080550f5f7518d6976c4bd6cda68.jpg",
|
| 352 |
+
"text": "$$\nA t t e n t i o n ( Q , K , V ) = S o f t m a x \\left( M \\right) \\cdot V\n$$",
|
| 353 |
+
"text_format": "latex",
|
| 354 |
+
"bbox": [
|
| 355 |
+
354,
|
| 356 |
+
661,
|
| 357 |
+
643,
|
| 358 |
+
678
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 2
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "text",
|
| 364 |
+
"text": "100 Note that Sof tmax $( M )$ obtains to a constant matrix, where each unit equals to $1 / n$ . In this case, \n101 the attention matrix is fixed and consequently the $W _ { Q }$ , $W _ { K }$ and dot-product in between are skipped. ",
|
| 365 |
+
"bbox": [
|
| 366 |
+
148,
|
| 367 |
+
681,
|
| 368 |
+
826,
|
| 369 |
+
710
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 2
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "102 4 Methodology ",
|
| 376 |
+
"text_level": 1,
|
| 377 |
+
"bbox": [
|
| 378 |
+
145,
|
| 379 |
+
728,
|
| 380 |
+
313,
|
| 381 |
+
744
|
| 382 |
+
],
|
| 383 |
+
"page_idx": 2
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"type": "text",
|
| 387 |
+
"text": "103 In this paper, we propose Attention differentiable dropOut (AttendOut), which contributes technique \n104 novelty in the following way: (1) dynamic and task-specific tuned; (2) end-to-end trained; (3) gra \n105 dient optimized dropout method onto self-attention empowered PrLMs. We elaborate our approach \n106 with two parts, in which the first is composition, while the second is training algorithm. ",
|
| 388 |
+
"bbox": [
|
| 389 |
+
147,
|
| 390 |
+
758,
|
| 391 |
+
825,
|
| 392 |
+
815
|
| 393 |
+
],
|
| 394 |
+
"page_idx": 2
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"type": "text",
|
| 398 |
+
"text": "4.1 Elements of AttendOut ",
|
| 399 |
+
"text_level": 1,
|
| 400 |
+
"bbox": [
|
| 401 |
+
161,
|
| 402 |
+
830,
|
| 403 |
+
374,
|
| 404 |
+
844
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 2
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "108 Our training architecture is composed of three modules, A-Net (Attacker), D-Net (Defender) and \n109 G-Net (Generator). D-Net and A-Net are two identical models and trained simultaneously through \n110 standard gradient descent, while G-Net is a learnable dropout maker and trained through policy \n111 gradient. Now we elaborate each of them. \n112 Defender - Attacker As suggested, defender and attacker are two competitors playing a game \n113 with each other on specific criteria, e.g. training accuracy, training loss. Specifically, D-Net and A \n114 Net are two identical self-attention empowered PrLMs, e.g. BERT, RoBERTa. However, they follow \n115 different dropout strategies. D-Net receives regular dropout as default in specific models, while A \n116 Net receives additional dropout decision from G-Net onto its corresponding attention layers. \n117 Generator G-Net acts as a dropout maker through generating a mask matrix for each attention \n118 layer during training stage. As aforementioned, the common dropout strategies rely on randomness, \n119 which intends to shut down the co-adaption but not powerful enough. However, our dropout maker \n120 is an agent which is able to intelligently choose and learn dropout patterns for each sample. Specif \n121 ically, after training for a fixed number of steps, we conduct evaluation for both A-Net and D-Net. \n122 When A-Net obtains a higher score than D-Net, which means attacker wins the game, G-Net will be \n123 rewarded positively. When defender wins, G-Net will be punished with a negative reward. In con \n124 sequence, G-Net learns appropriate dropout patterns through the game between D-Net and A-Net, \n125 while assisting A-Net to win the game. On the other hand, A-Net needs to be stronger when training \n126 under such powerful dropout, which makes it much more robust from over-fitting. Compared to \n127 search-based dropout, G-Net is triggered by the difference between two model derivatives with and \n128 without dropout, instead of the final feedback on validation set, which makes it end-to-end-possible \n129 and sample-dependent. \n130 The design of G-Net is the most delicate part, which is also a self-attention based model with iden \n131 tical number of layers with D-Net and A-Net. However, we make several improvements. 1) G-Net \n132 only exports the attention scores from attention layers with no extra output layers, from which we \n133 apply Gumbel [33, 34] to sample the actions to obtain the dropout mask. 2) G-Net only makes \n134 one-head attention and share one group of parameters for all attention layers. 3) G-Net is excluded \n135 of feed-forward layers, which may obscure the impact of self-attention [11, 10]. ",
|
| 411 |
+
"bbox": [
|
| 412 |
+
142,
|
| 413 |
+
854,
|
| 414 |
+
825,
|
| 415 |
+
911
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 2
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "",
|
| 422 |
+
"bbox": [
|
| 423 |
+
142,
|
| 424 |
+
90,
|
| 425 |
+
826,
|
| 426 |
+
161
|
| 427 |
+
],
|
| 428 |
+
"page_idx": 3
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"type": "text",
|
| 432 |
+
"text": "",
|
| 433 |
+
"bbox": [
|
| 434 |
+
140,
|
| 435 |
+
178,
|
| 436 |
+
826,
|
| 437 |
+
358
|
| 438 |
+
],
|
| 439 |
+
"page_idx": 3
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"type": "text",
|
| 443 |
+
"text": "",
|
| 444 |
+
"bbox": [
|
| 445 |
+
140,
|
| 446 |
+
363,
|
| 447 |
+
825,
|
| 448 |
+
448
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 3
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "4.2 Training with AttendOut ",
|
| 455 |
+
"text_level": 1,
|
| 456 |
+
"bbox": [
|
| 457 |
+
165,
|
| 458 |
+
465,
|
| 459 |
+
387,
|
| 460 |
+
481
|
| 461 |
+
],
|
| 462 |
+
"page_idx": 3
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"type": "text",
|
| 466 |
+
"text": "37 The core of training with AttendOut is to find a way to optimize G-Net, which receives signals from \n38 the difference between D-Net and A-Net. Supposing there is a list of dropout actions by G-Net: ",
|
| 467 |
+
"bbox": [
|
| 468 |
+
153,
|
| 469 |
+
492,
|
| 470 |
+
825,
|
| 471 |
+
521
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 3
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "equation",
|
| 477 |
+
"img_path": "images/f56aa511a90840709dd115b79e6fc5074ed41c19a9a388f0fef2fc76470b0bc3.jpg",
|
| 478 |
+
"text": "$$\na _ { 1 : T } = \\{ a _ { 1 } , a _ { 2 } , a _ { 3 } , \\cdot \\cdot \\cdot , a _ { T } \\}\n$$",
|
| 479 |
+
"text_format": "latex",
|
| 480 |
+
"bbox": [
|
| 481 |
+
403,
|
| 482 |
+
542,
|
| 483 |
+
594,
|
| 484 |
+
560
|
| 485 |
+
],
|
| 486 |
+
"page_idx": 3
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"type": "text",
|
| 490 |
+
"text": "139 where $T$ refers to the number of samples, for each action $a _ { t }$ , G-Net may achieve a reward $r _ { t }$ . The \n140 optimization objective is to maximize the overall rewards of list $a _ { 1 : T }$ , denoted as $R$ , that is: ",
|
| 491 |
+
"bbox": [
|
| 492 |
+
137,
|
| 493 |
+
565,
|
| 494 |
+
826,
|
| 495 |
+
594
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 3
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "equation",
|
| 501 |
+
"img_path": "images/1f925c0b893f3ababfc4e48a4dfc58660bc8949245ed33cd5b19a8d1445be379.jpg",
|
| 502 |
+
"text": "$$\nJ ( \\theta _ { G } ) = E _ { P ( a _ { 1 : T } ; \\theta _ { G } ) } [ R ]\n$$",
|
| 503 |
+
"text_format": "latex",
|
| 504 |
+
"bbox": [
|
| 505 |
+
415,
|
| 506 |
+
616,
|
| 507 |
+
581,
|
| 508 |
+
633
|
| 509 |
+
],
|
| 510 |
+
"page_idx": 3
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"type": "text",
|
| 514 |
+
"text": "where 141 $\\begin{array} { r } { R = \\sum _ { t = 1 } ^ { T } r _ { t } } \\end{array}$ . Since $R$ is non-differentiable, we use policy gradient to update $\\theta _ { G }$ ",
|
| 515 |
+
"bbox": [
|
| 516 |
+
135,
|
| 517 |
+
642,
|
| 518 |
+
820,
|
| 519 |
+
659
|
| 520 |
+
],
|
| 521 |
+
"page_idx": 3
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"type": "equation",
|
| 525 |
+
"img_path": "images/fc3fb3755389ff8cd6bbf7ca9fba13cdc120ecc31a6e7d843bc1a26190ce9f1c.jpg",
|
| 526 |
+
"text": "$$\n\\nabla _ { \\theta _ { G } } J ( \\theta _ { G } ) = \\sum _ { t = 1 } ^ { T } E _ { P ( a _ { 1 : T } ; \\theta _ { G } ) } [ \\nabla _ { \\theta _ { G } } \\log P ( a _ { t } | a _ { ( t - 1 ) : 1 } ; \\theta _ { G } ) r _ { t } ]\n$$",
|
| 527 |
+
"text_format": "latex",
|
| 528 |
+
"bbox": [
|
| 529 |
+
299,
|
| 530 |
+
676,
|
| 531 |
+
699,
|
| 532 |
+
719
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 3
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "text",
|
| 538 |
+
"text": "142 The above equation could be approximated as: ",
|
| 539 |
+
"bbox": [
|
| 540 |
+
142,
|
| 541 |
+
724,
|
| 542 |
+
480,
|
| 543 |
+
739
|
| 544 |
+
],
|
| 545 |
+
"page_idx": 3
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"type": "equation",
|
| 549 |
+
"img_path": "images/bf59206867b48bb4f3a19df513829ce8bbf5245603bb217e38172ed1cb642f13.jpg",
|
| 550 |
+
"text": "$$\n\\frac { 1 } { m } \\sum _ { k = 1 } ^ { m } \\sum _ { t = 1 } ^ { T } \\nabla _ { \\theta _ { G } } \\log P ( a _ { t } | a _ { ( t - 1 ) : 1 } ; \\theta _ { G } ) r _ { t }\n$$",
|
| 551 |
+
"text_format": "latex",
|
| 552 |
+
"bbox": [
|
| 553 |
+
364,
|
| 554 |
+
758,
|
| 555 |
+
633,
|
| 556 |
+
803
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 3
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "text",
|
| 562 |
+
"text": "143 For a model with $n$ attention layers, each dropout decision is composed of $n$ inner decisions of each \n144 layer. Additionally, each attention layer contains an attention matrix of $l \\times l$ , namely $l ^ { 2 }$ elements \n145 dropped or kept. Thus, we denote a dropout unit as $d ^ { i j }$ , where $i$ refers to the $i ^ { t h }$ layer while $j$ refers \n146 to the $j ^ { t h }$ element of the attention matrix. \n147 However, $n l ^ { 2 }$ dropout units bring a huge space, which makes it impossible to calculate the joint prob \n148 ability. To this end, we introduce the independence assumption that each dropout unit is independent \n149 with each other. Under the relaxation, we can make the following probability likelihood: ",
|
| 563 |
+
"bbox": [
|
| 564 |
+
142,
|
| 565 |
+
806,
|
| 566 |
+
825,
|
| 567 |
+
863
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 3
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "text",
|
| 573 |
+
"text": "",
|
| 574 |
+
"bbox": [
|
| 575 |
+
142,
|
| 576 |
+
868,
|
| 577 |
+
825,
|
| 578 |
+
912
|
| 579 |
+
],
|
| 580 |
+
"page_idx": 3
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"type": "equation",
|
| 584 |
+
"img_path": "images/346785ebf584a4d35ea439aa48cc1640667b81c2749d4132d4ecb7a8ccf6cef8.jpg",
|
| 585 |
+
"text": "$$\n\\log P ( a _ { t } | a _ { ( t - 1 ) : 1 } ; \\theta _ { G } ) = \\frac { 1 } { n l ^ { 2 } } \\sum _ { i , j } \\log P ( d _ { t } ^ { i j } | d _ { ( t - 1 ) : 1 } ^ { i j } ; \\theta _ { G } )\n$$",
|
| 586 |
+
"text_format": "latex",
|
| 587 |
+
"bbox": [
|
| 588 |
+
308,
|
| 589 |
+
108,
|
| 590 |
+
686,
|
| 591 |
+
148
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 4
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "text",
|
| 597 |
+
"text": "where the summation 150 $\\textstyle \\sum _ { i = 1 } ^ { n } \\sum _ { j = 1 } ^ { l ^ { 2 } }$ is briefly denoted as $\\textstyle \\sum _ { i , j }$ ",
|
| 598 |
+
"bbox": [
|
| 599 |
+
140,
|
| 600 |
+
160,
|
| 601 |
+
576,
|
| 602 |
+
181
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 4
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "text",
|
| 608 |
+
"text": "151 Thus, the final gradient could be formalized as: ",
|
| 609 |
+
"bbox": [
|
| 610 |
+
142,
|
| 611 |
+
185,
|
| 612 |
+
485,
|
| 613 |
+
202
|
| 614 |
+
],
|
| 615 |
+
"page_idx": 4
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"type": "equation",
|
| 619 |
+
"img_path": "images/49ce366e69ce1d5407a56a9f7f4fb0540be68e548bc04e368cb1f74925ed54de.jpg",
|
| 620 |
+
"text": "$$\n\\nabla _ { \\theta _ { G } } J ( \\theta _ { G } ) = \\frac { 1 } { m } \\frac { 1 } { n l ^ { 2 } } \\sum _ { k = 1 } ^ { m } \\sum _ { t = 1 } ^ { T } \\sum _ { i , j } \\nabla _ { \\theta _ { G } } \\log P ( d _ { t } ^ { i j } | d _ { ( t - 1 ) : 1 } ^ { i j } ; \\theta _ { G } ) ( r _ { t } - b )\n$$",
|
| 621 |
+
"text_format": "latex",
|
| 622 |
+
"bbox": [
|
| 623 |
+
267,
|
| 624 |
+
212,
|
| 625 |
+
728,
|
| 626 |
+
258
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 4
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "152 where $b$ is a baseline function of moving average [35]. Note that we do not apply additional regular \n153 izers like L0 and L1 penalty, which impose unnecessary bias. \n154 Algorithm 1 summarizes the overall procedure of training PrLMs with AttendOut. We first initialize \n155 all three networks. Note that D-Net and A-Net should be kept identical at the beginning of each \n156 training step. A straightforward strategy is to choose the better one to cover the other. To add \n157 randomness, we sample from D-Net and A-Net based on their evaluation performances, with higher \n158 probability for the better one. Then for each step, D-Net and A-Net are fed with the same mini-batch \n159 data and updated via standard gradient descent, meanwhile each batch will be cached. After training \n160 for $T$ steps, which we denote as a dropout step, both D-Net and A-Net are evaluated on additional \n161 validation samples, which could be development set data, noisy training data or a small split of train \n162 ing data. In this paper, we simply use development set. For efficiency, we make random sampling \n163 on it to retrieve $T$ samples for evaluation. Based on the evaluation scores, G-Net is rewarded with \n164 $\\{ r _ { 1 } , r _ { 2 } , r _ { 3 } , \\cdot \\cdot \\cdot , r _ { T } \\}$ and updated via Eq. 5. At the end of each dropout step, the cached samples \n165 will be released and D-Net and A-Net will be re-initialized. ",
|
| 633 |
+
"bbox": [
|
| 634 |
+
142,
|
| 635 |
+
268,
|
| 636 |
+
826,
|
| 637 |
+
299
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 4
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "text",
|
| 643 |
+
"text": "",
|
| 644 |
+
"bbox": [
|
| 645 |
+
140,
|
| 646 |
+
304,
|
| 647 |
+
826,
|
| 648 |
+
469
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 4
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "text",
|
| 654 |
+
"text": "",
|
| 655 |
+
"bbox": [
|
| 656 |
+
142,
|
| 657 |
+
585,
|
| 658 |
+
160,
|
| 659 |
+
594
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 4
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "Algorithm 1 AttendOut ",
|
| 666 |
+
"text_level": 1,
|
| 667 |
+
"bbox": [
|
| 668 |
+
174,
|
| 669 |
+
497,
|
| 670 |
+
333,
|
| 671 |
+
511
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 4
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "text",
|
| 677 |
+
"text": "Input: Attacker $A$ , Defender $D$ , Generator $G$ , dropout \nstep $T$ \n1: initialize $\\theta _ { D }$ , $\\theta _ { A }$ , $\\theta _ { G }$ , where $\\theta _ { D } = \\theta _ { A }$ \n2: for each training step do \n3: $\\theta _ { D } \\theta _ { D } ^ { \\prime }$ \n4: dropout $A$ with $G$ via Eq. 3 \n5: $\\theta _ { A } \\theta _ { A } ^ { \\prime }$ \n6: for each $T$ steps do \n7: evaluate $D$ and $A$ and reward $G$ \n8: $\\theta _ { G } \\theta _ { G } ^ { \\prime }$ via Eq. 5 \n9: initialize $\\theta _ { D }$ , $\\theta _ { A }$ for next step \n10: end for \n11: end for \n167 Resource Usage We notice that training PrLMs with AttendOut may sacrifice time and memory \n168 cost. The detailed resource usage is shown in Appendix. Taking RoBERTa as an example, the \n169 algorithm requires two RoBERTa models as well as a smaller self-attention based generator, which \n170 is $\\mathrm { { \\bar { 1 } / 3 } }$ of RoBERTa size. Considering cached samples, roughly speaking, AttendOut requires twice \n171 graphic memory as well as twice training time compared to a single model, which is a middle speed \n172 line between random-based dropout and neural architecture search (Dropout [13] $<$ AttendOut $\\ll$ \n173 AutoDropout [19]). However, AttendOut contributes to remarkable performance gain compared to \n174 other attention dropout methods. \n175 Pre-training Our approach is both feasible for both fine-tuning and pre-training stage of PrLMs \n176 but expensive for the latter. However, we try to serve for the most delicate part of concerned issue, \n177 since pre-training is generally done on large-scale data with modest training epochs, which makes it \n178 less susceptible from over-fitting. ",
|
| 678 |
+
"bbox": [
|
| 679 |
+
173,
|
| 680 |
+
513,
|
| 681 |
+
532,
|
| 682 |
+
696
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 4
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "image",
|
| 688 |
+
"img_path": "images/fd257beb2fcc68132803a55e565d83d523ed0eecbb7ad908e1916676d82e7134.jpg",
|
| 689 |
+
"image_caption": [
|
| 690 |
+
"Figure 2: Architecture of G-Net. "
|
| 691 |
+
],
|
| 692 |
+
"image_footnote": [],
|
| 693 |
+
"bbox": [
|
| 694 |
+
553,
|
| 695 |
+
489,
|
| 696 |
+
807,
|
| 697 |
+
676
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 4
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "text",
|
| 703 |
+
"text": "",
|
| 704 |
+
"bbox": [
|
| 705 |
+
140,
|
| 706 |
+
723,
|
| 707 |
+
825,
|
| 708 |
+
834
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 4
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "text",
|
| 714 |
+
"text": "",
|
| 715 |
+
"bbox": [
|
| 716 |
+
142,
|
| 717 |
+
854,
|
| 718 |
+
825,
|
| 719 |
+
911
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 4
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "table",
|
| 725 |
+
"img_path": "images/3c7ad4603ab51b6e1e546706fb10ce9ec0af7be9d7388369f8daa520017381ba.jpg",
|
| 726 |
+
"table_caption": [
|
| 727 |
+
"Table 1: Results (test / dev) of GLUE sub-tasks. "
|
| 728 |
+
],
|
| 729 |
+
"table_footnote": [],
|
| 730 |
+
"table_body": "<table><tr><td>Model</td><td>SST-2 Acc</td><td>MRPC F1</td><td>QNLI Acc</td><td>MNLI-mm Acc</td><td>CoLA Mcc</td></tr><tr><td>BERT</td><td>92.9 / 92.2</td><td>86.6 / 86.3</td><td>89.7 /88.9</td><td>83.3 /84.0</td><td>51.2 / 58.8</td></tr><tr><td>+ AtendOut</td><td>93.6 / 93.8</td><td>88.1 / 87.5</td><td>90.2 / 91.1</td><td>84.2 /84.6</td><td>57.4 / 60.9</td></tr><tr><td>RoBERTa</td><td>95.4 / 94.4</td><td>90.5 /90.2</td><td>92.9 /92.0</td><td>86.1 /86.6</td><td>61.3 / 62.5</td></tr><tr><td>+ AtendOut</td><td>96.2 / 95.1</td><td>91.2 / 90.9</td><td>93.3 /93.0</td><td>87.3 /87.8</td><td>63.0 / 63.8</td></tr></table>",
|
| 731 |
+
"bbox": [
|
| 732 |
+
223,
|
| 733 |
+
108,
|
| 734 |
+
771,
|
| 735 |
+
217
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 5
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "table",
|
| 741 |
+
"img_path": "images/ab865c827d0558b20f9b92fd2f5e57a47106da959ea716a92172e054389c1020.jpg",
|
| 742 |
+
"table_caption": [
|
| 743 |
+
"Table 2: Results of IMDB, CoNLL03, PTB and SWAG respectively. "
|
| 744 |
+
],
|
| 745 |
+
"table_footnote": [],
|
| 746 |
+
"table_body": "<table><tr><td>Model</td><td>IMDB Acc</td><td>CoNLL03 F1</td><td>PTB F1</td><td>SWAG Acc</td></tr><tr><td>BERT</td><td>92.2</td><td>94.1</td><td>95.4</td><td>81.1</td></tr><tr><td>+ AttendOut</td><td>92.9</td><td>94.7</td><td>96.5</td><td>81.6</td></tr><tr><td>RoBERTa</td><td>93.6</td><td>94.5</td><td>96.6</td><td>83.8</td></tr><tr><td>+ AttendOut</td><td>94.2</td><td>95.2</td><td>97.3</td><td>84.1</td></tr></table>",
|
| 747 |
+
"bbox": [
|
| 748 |
+
303,
|
| 749 |
+
262,
|
| 750 |
+
689,
|
| 751 |
+
369
|
| 752 |
+
],
|
| 753 |
+
"page_idx": 5
|
| 754 |
+
},
|
| 755 |
+
{
|
| 756 |
+
"type": "text",
|
| 757 |
+
"text": "179 5 Experimental Setup ",
|
| 758 |
+
"text_level": 1,
|
| 759 |
+
"bbox": [
|
| 760 |
+
142,
|
| 761 |
+
404,
|
| 762 |
+
372,
|
| 763 |
+
421
|
| 764 |
+
],
|
| 765 |
+
"page_idx": 5
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"type": "text",
|
| 769 |
+
"text": "180 We demonstrate the universal effectiveness of AttendOut on extensive natural language processing \n181 tasks. For all mentioned tasks, we apply our method on BERT [2] and its stronger variant RoBERTa \n182 [3]. Our implementations are based on PyTorch using transformers [36]. For further training details, \n183 please refer to Appendix. \n184 Our experiments include: (1) natural language understanding: General Language Understanding \n185 Evaluation (GLUE) benchmark [37], a collection of nine natural language understanding tasks (here \n186 we experiment on five of them, SST-2, MRPC, QNLI, MNLI-mm and CoLA; (2) document clas \n187 sification: IMDB [38], a sentiment analysis dataset where about $15 \\%$ of the documents are longer \n188 than 512 word-pieces; (3) named entity recognition: CoNLL2003 [39]; (4) part-of-speech tag \n189 ging: English Penn Treebank (PTB) [40]; (5) multiple choices question answering: SWAG [41]. \n190 We report both test and development results for GLUE sub-tasks since the large bias between them, \n191 while development results only for all the other tasks. \n192 Note that we only adjust the dropout steps and keep all other parameters the same for strict fair \n193 comparison. For example, the parameters we use in RoBERTa are identical with what we use in \n194 training with AttendOut including both D-Net and A-Net. ",
|
| 770 |
+
"bbox": [
|
| 771 |
+
142,
|
| 772 |
+
443,
|
| 773 |
+
825,
|
| 774 |
+
498
|
| 775 |
+
],
|
| 776 |
+
"page_idx": 5
|
| 777 |
+
},
|
| 778 |
+
{
|
| 779 |
+
"type": "text",
|
| 780 |
+
"text": "",
|
| 781 |
+
"bbox": [
|
| 782 |
+
142,
|
| 783 |
+
505,
|
| 784 |
+
826,
|
| 785 |
+
616
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 5
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "text",
|
| 791 |
+
"text": "",
|
| 792 |
+
"bbox": [
|
| 793 |
+
143,
|
| 794 |
+
622,
|
| 795 |
+
825,
|
| 796 |
+
664
|
| 797 |
+
],
|
| 798 |
+
"page_idx": 5
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"type": "text",
|
| 802 |
+
"text": "6 Results ",
|
| 803 |
+
"text_level": 1,
|
| 804 |
+
"bbox": [
|
| 805 |
+
169,
|
| 806 |
+
696,
|
| 807 |
+
266,
|
| 808 |
+
713
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 5
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "6.1 Significance Analysis ",
|
| 815 |
+
"text_level": 1,
|
| 816 |
+
"bbox": [
|
| 817 |
+
173,
|
| 818 |
+
734,
|
| 819 |
+
357,
|
| 820 |
+
750
|
| 821 |
+
],
|
| 822 |
+
"page_idx": 5
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"type": "text",
|
| 826 |
+
"text": "97 Pictorially in Table 1, RoBERTa is strong enough as it outperforms BERT by a big margin, while \n98 AttendOut empowered RoBERTa still outperforms it on all five GLUE sub-tasks. For small-scale \n99 datasets, which are more likely to over-fit, AttendOut helps unfold remarkable performance gain \n00 $( 1 2 . 1 \\% \\ / \\ 3 . 5 \\%$ over BERT on CoLA, $1 . 7 \\% / 1 . 4 \\%$ over BERT on MRPC). However, for large \n01 scale one like MNLI, which tends to be more stable, AttendOut still produces considerable boost, \n02 $( 1 . 4 \\% / 1 . 4 \\%$ over RoBERTa, $1 . 1 \\% / 0 . 7 \\%$ over BERT). \n203 Furthermore, AttendOut is shown universally effective as in Table 2. For POS Tagging, BERT \n204 and RoBERTa have achieved very strong baselines, while AttendOut empowered ones are even \n205 stronger, $3 . 1 \\%$ over BERT on PTB). Similar results are seen on document classification and NER. \n206 For SWAG, however, AttendOut seems weakly effective $\\mathbf { 0 . 6 \\% }$ over BERT, $0 . 4 \\%$ over RoBERTa). ",
|
| 827 |
+
"bbox": [
|
| 828 |
+
151,
|
| 829 |
+
766,
|
| 830 |
+
825,
|
| 831 |
+
849
|
| 832 |
+
],
|
| 833 |
+
"page_idx": 5
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"type": "text",
|
| 837 |
+
"text": "",
|
| 838 |
+
"bbox": [
|
| 839 |
+
142,
|
| 840 |
+
856,
|
| 841 |
+
825,
|
| 842 |
+
911
|
| 843 |
+
],
|
| 844 |
+
"page_idx": 5
|
| 845 |
+
},
|
| 846 |
+
{
|
| 847 |
+
"type": "image",
|
| 848 |
+
"img_path": "images/5fb2129c880eb1d2bbb3f4e477445ad7dac156a1c0699af1632c637d63bc4d20.jpg",
|
| 849 |
+
"image_caption": [
|
| 850 |
+
"Figure 3: Dropout probabilities on specific attention layers over training steps. "
|
| 851 |
+
],
|
| 852 |
+
"image_footnote": [],
|
| 853 |
+
"bbox": [
|
| 854 |
+
191,
|
| 855 |
+
107,
|
| 856 |
+
794,
|
| 857 |
+
238
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 6
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "image",
|
| 863 |
+
"img_path": "images/3195061f460620f90c7af6ac43fe036d69fcbd8c0b3dc54487b440d5ed05c143.jpg",
|
| 864 |
+
"image_caption": [
|
| 865 |
+
"Figure 4: Convergence over training epochs. "
|
| 866 |
+
],
|
| 867 |
+
"image_footnote": [],
|
| 868 |
+
"bbox": [
|
| 869 |
+
184,
|
| 870 |
+
296,
|
| 871 |
+
794,
|
| 872 |
+
428
|
| 873 |
+
],
|
| 874 |
+
"page_idx": 6
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"type": "text",
|
| 878 |
+
"text": "207 6.2 Visual Analysis ",
|
| 879 |
+
"text_level": 1,
|
| 880 |
+
"bbox": [
|
| 881 |
+
142,
|
| 882 |
+
481,
|
| 883 |
+
320,
|
| 884 |
+
496
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 6
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "text",
|
| 890 |
+
"text": "Dropout Patterns Another concerned issue is the dropout proportions by AttendOut. Figure 3 depicts the patterns on several datasets. We may find several interesting phenomenons. First, the overall patterns largely differ from datasets, which is fair since AttendOut is sample-dependent. However, we may observe something in common. Overall, the lower layers take higher dropout probabilities. For example on QNLI, the first layer almost remains steady with the probability of 0.55 during the training process, while the fourth one continuously decays in a higher rate. Intuitively, the first three layers undertake a similar trend in each dataset, while there might be an up and down for the fourth one as in SST-2 and CoLA. Especially for CoLA, we see unusual high dropout probabilities in the final period (around 0.9), which are close to complete dropout. We notice that CoLA is a small set with 8500 training samples, on which SAN model is more inclined to suffer from over-fitting. Therefore, PrLM on CoLA encounters more intensive dropout through AttendOut. ",
|
| 891 |
+
"bbox": [
|
| 892 |
+
173,
|
| 893 |
+
507,
|
| 894 |
+
825,
|
| 895 |
+
659
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 6
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "219 Convergence Figure 4 depicts the accuracy trends of RoBERTa on SST-2, QNLI, MNLI respec \n220 tively. Due to a stronger dropout module, the one with AttendOut tends to fall behind (SST-2, \n221 MNLI) at the beginning of training. However, model becomes stronger since the second epoch \n222 (SST-2, QNLI). Especially on MNLI, RoBERTa obtains better results in the first two epochs and it \n223 drops in the last one, while with AttendOut, the performance is steadily rising for all three epochs. ",
|
| 902 |
+
"bbox": [
|
| 903 |
+
143,
|
| 904 |
+
675,
|
| 905 |
+
825,
|
| 906 |
+
744
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 6
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "7 Ablation Study ",
|
| 913 |
+
"text_level": 1,
|
| 914 |
+
"bbox": [
|
| 915 |
+
168,
|
| 916 |
+
765,
|
| 917 |
+
330,
|
| 918 |
+
782
|
| 919 |
+
],
|
| 920 |
+
"page_idx": 6
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"type": "text",
|
| 924 |
+
"text": "In this section, we conduct further experiments to demonstrate the effectiveness of AttendOut. Due to space limitation, we conduct corresponding experiments on development sets only. ",
|
| 925 |
+
"bbox": [
|
| 926 |
+
176,
|
| 927 |
+
797,
|
| 928 |
+
825,
|
| 929 |
+
825
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 6
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "7.1 Attention Dropout ",
|
| 936 |
+
"text_level": 1,
|
| 937 |
+
"bbox": [
|
| 938 |
+
173,
|
| 939 |
+
843,
|
| 940 |
+
341,
|
| 941 |
+
858
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 6
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "text",
|
| 947 |
+
"text": "Vanilla Dropout We conduct comparison with vanilla Dropout [13], in which we dropout the attention matrix for all layers with Bernoulli distribution of $p$ . Here, we choose the dropout probabilities in {0.1, 0.2}. ",
|
| 948 |
+
"bbox": [
|
| 949 |
+
176,
|
| 950 |
+
869,
|
| 951 |
+
825,
|
| 952 |
+
911
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 6
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "table",
|
| 958 |
+
"img_path": "images/6992bb522a8d26ca2161c8c42613732b72cc254464fbf4209a729a603f4f23db.jpg",
|
| 959 |
+
"table_caption": [
|
| 960 |
+
"Table 3: Comparison of AttendOut, vanilla Dropout and LayerDrop. "
|
| 961 |
+
],
|
| 962 |
+
"table_footnote": [],
|
| 963 |
+
"table_body": "<table><tr><td>Model</td><td>CoLA</td><td>QNLI</td><td>MNLI-mm</td></tr><tr><td>RoBERTa</td><td>62.5</td><td>92.0</td><td>86.6</td></tr><tr><td>+ Vanilla</td><td>61.3</td><td>92.2</td><td>86.9</td></tr><tr><td>+ AttendOut</td><td>63.8</td><td>93.1</td><td>87.8</td></tr><tr><td>+ LayerDrop</td><td>62.1</td><td>92.6</td><td>87.1</td></tr><tr><td>+ Attn.LayerDrop</td><td>64.2</td><td>92.7</td><td>87.3</td></tr></table>",
|
| 964 |
+
"bbox": [
|
| 965 |
+
312,
|
| 966 |
+
109,
|
| 967 |
+
681,
|
| 968 |
+
217
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 7
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "table",
|
| 974 |
+
"img_path": "images/ec9b7719a518050ab731af2292ba4eec7a42f59ef3043fcbf94b28b4458c16b3.jpg",
|
| 975 |
+
"table_caption": [
|
| 976 |
+
"Table 4: Comparison of AttendOut and scheduled Bernoulli dropout. "
|
| 977 |
+
],
|
| 978 |
+
"table_footnote": [],
|
| 979 |
+
"table_body": "<table><tr><td>Model</td><td>CoLA</td><td>QNLI</td><td>SWAG</td></tr><tr><td>RoBERTa</td><td>62.5</td><td>92.0</td><td>83.8</td></tr><tr><td>+ Scheduler</td><td>63.3</td><td>92.6</td><td>83.6</td></tr><tr><td>+ AttendOut</td><td>63.8</td><td>93.1</td><td>84.1</td></tr></table>",
|
| 980 |
+
"bbox": [
|
| 981 |
+
343,
|
| 982 |
+
261,
|
| 983 |
+
650,
|
| 984 |
+
334
|
| 985 |
+
],
|
| 986 |
+
"page_idx": 7
|
| 987 |
+
},
|
| 988 |
+
{
|
| 989 |
+
"type": "text",
|
| 990 |
+
"text": "231 LayerDrop We also compare with LayerDrop [29], which focuses on skipping the entire encoder \n232 blocks, Inspired of it, we design another strategy which randomly skips attention layers via Eq. 4. \n233 For fair enough comparison, we set the dropout probabilities to 0.2 for both methods, following the \n234 settings in [29]. \n235 Intuitively in Table 3, vanilla Dropout with fixed probability does not produce noticeable gain $( 1 . 9 \\%$ \n236 bellow RoBERTa on CoLA). However, AttendOut shows powerful advantage $4 . 1 \\%$ , $1 . 0 \\%$ and $1 . 0 \\%$ \n237 over vanilla Dropout on CoLA, QNLI and MNLI), which stresses the necessity of dynamic dropout \n238 patterns rather than fixed static one. On the other hand, both layer-level regularizers are effective, \n239 while attention LayerDrop performs stronger and more stable on all the three. Especially on CoLA, \n240 it outperforms RoBERTa by 1.7 points, while LayerDrop meets a performance drop, which demon \n241 strates that removing the attention layers act as a more effective regularizer than removing the entire \n242 SAN block as for self-attention based models. ",
|
| 991 |
+
"bbox": [
|
| 992 |
+
140,
|
| 993 |
+
369,
|
| 994 |
+
826,
|
| 995 |
+
425
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 7
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "",
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
143,
|
| 1004 |
+
431,
|
| 1005 |
+
825,
|
| 1006 |
+
541
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 7
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"type": "text",
|
| 1012 |
+
"text": "243 7.2 Pattern Approximation ",
|
| 1013 |
+
"text_level": 1,
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
142,
|
| 1016 |
+
569,
|
| 1017 |
+
375,
|
| 1018 |
+
585
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 7
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "244 Guided by AttendOut, we design a dropout scheduler, in which we utilize piece-wise linearity to \n245 approximate the real curves as depicted in Figure 3. Taking QNLI as an example, we initialize \n246 the dropout probabilities to 0.6 for all attention layers and set a a specific slope for each of them. \n247 Note that here the corresponding mask matrices are randomly-generated and subject to Bernoulli \n248 distribution. In AttendOut, however, the distribution are learned dynamically through self-attention \n249 of G-Net. \n250 As shown in Table 4, RoBERTa with scheduled Bernoulli dropout works surprisingly well on both \n251 CoLA and QNLI, which outperforms RoBERTa by 0.8 and 0.6 points respectively, closer to At \n252 tendOut, even if the strategy here is random-based and much looser. The guided scheduled dropout \n253 helps unfold the correctness of the dynamic dropout patterns learned by AttendOut as well as the \n254 self-attention based dropout maker. ",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
140,
|
| 1027 |
+
599,
|
| 1028 |
+
825,
|
| 1029 |
+
683
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 7
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "text",
|
| 1035 |
+
"text": "",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
142,
|
| 1038 |
+
689,
|
| 1039 |
+
825,
|
| 1040 |
+
758
|
| 1041 |
+
],
|
| 1042 |
+
"page_idx": 7
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"type": "text",
|
| 1046 |
+
"text": "255 8 Conclusion ",
|
| 1047 |
+
"text_level": 1,
|
| 1048 |
+
"bbox": [
|
| 1049 |
+
143,
|
| 1050 |
+
790,
|
| 1051 |
+
299,
|
| 1052 |
+
806
|
| 1053 |
+
],
|
| 1054 |
+
"page_idx": 7
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"type": "text",
|
| 1058 |
+
"text": "This paper focuses on the co-adaption problem of deep self-attention networks, and presents a novel dropout method onto self-attention empowered pre-trained language models. Extensive experiments on multiple natural language processing tasks demonstrate that our proposed approach is universal and qualified to enable more robust task-specific tuning, which contributes to much stronger stateof-the-arts. We probe into the learned dropout patterns on different tasks, which empirically guide us to the very needed dynamic attention dropout design. ",
|
| 1059 |
+
"bbox": [
|
| 1060 |
+
169,
|
| 1061 |
+
827,
|
| 1062 |
+
825,
|
| 1063 |
+
911
|
| 1064 |
+
],
|
| 1065 |
+
"page_idx": 7
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"type": "text",
|
| 1069 |
+
"text": "262 References \n263 [1] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz \n264 Kaiser, and Illia Polosukhin. Attention is all you need. In Isabelle Guyon, Ulrike von Luxburg, Samy \n265 Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett, editors, Advances \n266 in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing \n267 Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 5998–6008, 2017. \n268 [2] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: pre-training of deep bidi \n269 rectional transformers for language understanding. In Jill Burstein, Christy Doran, and Thamar Solorio, \n270 editors, Proceedings of the 2019 Conference of the North American Chapter of the Association for Com \n271 putational Linguistics: Human Language Technologies, NAACL-HLT 2019, Minneapolis, MN, USA, June \n272 2-7, 2019, Volume 1 (Long and Short Papers), pages 4171–4186. Association for Computational Linguis \n273 tics, 2019. \n274 [3] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, \n275 Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized BERT pretraining approach. \n276 CoRR, abs/1907.11692, 2019. \n277 [4] Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. \n278 ALBERT: A lite BERT for self-supervised learning of language representations. In 8th International \n279 Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. Open \n280 Review.net, 2020. \n281 [5] Kevin Clark, Minh-Thang Luong, Quoc V. Le, and Christopher D. Manning. ELECTRA: pre-training \n282 text encoders as discriminators rather than generators. In 8th International Conference on Learning Rep \n283 resentations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net, 2020. \n284 [6] Pengcheng He, Xiaodong Liu, Jianfeng Gao, and Weizhu Chen. {DEBERTA}: {DECODING}- \n285 {enhanced} {bert} {with} {disentangled} {attention}. In International Conference on Learning Repre \n286 sentations, 2021. \n287 [7] Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding \n288 by generative pre-training. 2018. \n289 [8] Weiqiu You, Simeng Sun, and Mohit Iyyer. Hard-coded gaussian attention for neural machine translation. \n290 In Dan Jurafsky, Joyce Chai, Natalie Schluter, and Joel R. Tetreault, editors, Proceedings of the 58th \n291 Annual Meeting of the Association for Computational Linguistics, ACL 2020, Online, July 5-10, 2020, \n292 pages 7689–7700. Association for Computational Linguistics, 2020. \n293 [9] Yi Tay, Dara Bahri, Donald Metzler, Da-Cheng Juan, Zhe Zhao, and Che Zheng. Synthesizer: Rethinking \n294 self-attention in transformer models. CoRR, abs/2005.00743, 2020. \n295 [10] Sinong Wang, Belinda Z. Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with \n296 linear complexity. CoRR, abs/2006.04768, 2020. \n297 [11] Yihe Dong, Jean-Baptiste Cordonnier, and Andreas Loukas. Attention is not all you need: Pure attention \n298 loses rank doubly exponentially with depth. CoRR, abs/2103.03404, 2021. \n299 [12] Saurabh Goyal, Anamitra Roy Choudhury, Saurabh Raje, Venkatesan T. Chakaravarthy, Yogish Sabhar \n300 wal, and Ashish Verma. Power-bert: Accelerating BERT inference via progressive word-vector elimi \n301 nation. In Proceedings of the 37th International Conference on Machine Learning, ICML 2020, 13-18 \n302 July 2020, Virtual Event, volume 119 of Proceedings of Machine Learning Research, pages 3690–3699. \n303 PMLR, 2020. \n304 [13] Nitish Srivastava, Geoffrey E. Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. \n305 Dropout: a simple way to prevent neural networks from overfitting. J. Mach. Learn. Res., 15(1):1929– \n306 1958, 2014. \n307 [14] Li Wan, Matthew D. Zeiler, Sixin Zhang, Yann LeCun, and Rob Fergus. Regularization of neural networks \n308 using dropconnect. In Proceedings of the 30th International Conference on Machine Learning, ICML \n309 2013, Atlanta, GA, USA, 16-21 June 2013, volume 28 of JMLR Workshop and Conference Proceedings, \n310 pages 1058–1066. JMLR.org, 2013. \n311 [15] Zhuosheng Zhang, Yuwei Wu, Junru Zhou, Sufeng Duan, Hai Zhao, and Rui Wang. Sg-net: Syntax \n312 guided machine reading comprehension. In The Thirty-Fourth AAAI Conference on Artificial Intelligence, \n313 AAAI 2020, The Thirty-Second Innovative Applications of Artificial Intelligence Conference, IAAI 2020, \n314 The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020, New York, NY, \n315 USA, February 7-12, 2020, pages 9636–9643. AAAI Press, 2020. ",
|
| 1070 |
+
"bbox": [
|
| 1071 |
+
140,
|
| 1072 |
+
82,
|
| 1073 |
+
828,
|
| 1074 |
+
933
|
| 1075 |
+
],
|
| 1076 |
+
"page_idx": 8
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"type": "text",
|
| 1080 |
+
"text": "[16] Hongqiu Wu, Hai Zhao, and Min Zhang. Code summarization with structure-induced transformer. arXiv preprint arXiv:2012.14710, 2020. \n[17] Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017. \n[18] Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: differentiable architecture search. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019. \n[19] Hieu Pham and Quoc V. Le. Autodropout: Learning dropout patterns to regularize deep networks. CoRR, abs/2101.01761, 2021. \n[20] Günter Klambauer, Thomas Unterthiner, Andreas Mayr, and Sepp Hochreiter. Self-normalizing neural networks. In Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett, editors, Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 971–980, 2017. \n[21] Avrim Blum, Nika Haghtalab, and Ariel D. Procaccia. Variational dropout and the local reparameterization trick. In Corinna Cortes, Neil D. Lawrence, Daniel D. Lee, Masashi Sugiyama, and Roman Garnett, editors, Advances in Neural Information Processing Systems 28: Annual Conference on Neural Information Processing Systems 2015, December 7-12, 2015, Montreal, Quebec, Canada, pages 2575–2583, 2015. \n[22] Dmitry Molchanov, Arsenii Ashukha, and Dmitry P. Vetrov. Variational dropout sparsifies deep neural networks. In Doina Precup and Yee Whye Teh, editors, Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, volume 70 of Proceedings of Machine Learning Research, pages 2498–2507. PMLR, 2017. \n[23] Sungrae Park, Jun-Keon Park, Su-Jin Shin, and Il-Chul Moon. Adversarial dropout for supervised and semi-supervised learning. In Sheila A. McIlraith and Kilian Q. Weinberger, editors, Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence, (AAAI-18), the 30th innovative Applications of Artificial Intelligence (IAAI-18), and the 8th AAAI Symposium on Educational Advances in Artificial Intelligence (EAAI-18), New Orleans, Louisiana, USA, February 2-7, 2018, pages 3917–3924. AAAI Press, 2018. \n[24] Hojjat Salehinejad and Shahrokh Valaee. Edropout: Energy-based dropout and pruning of deep neural networks. CoRR, abs/2006.04270, 2020. \n[25] Yarin Gal, Jiri Hron, and Alex Kendall. Concrete dropout. In Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett, editors, Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 3581–3590, 2017. \n[26] Shahin Boluki, Randy Ardywibowo, Siamak Zamani Dadaneh, Mingyuan Zhou, and Xiaoning Qian. Learnable bernoulli dropout for bayesian deep learning. In Silvia Chiappa and Roberto Calandra, editors, The 23rd International Conference on Artificial Intelligence and Statistics, AISTATS 2020, 26-28 August 2020, Online [Palermo, Sicily, Italy], volume 108 of Proceedings of Machine Learning Research, pages 3905–3916. PMLR, 2020. \n[27] Mingzhang Yin and Mingyuan Zhou. ARM: augment-reinforce-merge gradient for stochastic binary networks. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019. \n[28] Xinjie Fan, Shujian Zhang, Korawat Tanwisuth, Xiaoning Qian, and Mingyuan Zhou. Contextual dropout: An efficient sample-dependent dropout module. CoRR, abs/2103.04181, 2021. \n[29] Angela Fan, Edouard Grave, and Armand Joulin. Reducing transformer depth on demand with structured dropout. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net, 2020. \n[30] Wangchunshu Zhou, Tao Ge, Furu Wei, Ming Zhou, and Ke Xu. Scheduled drophead: A regularization method for transformer models. In Trevor Cohn, Yulan He, and Yang Liu, editors, Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: Findings, EMNLP 2020, Online Event, 16-20 November 2020, pages 1971–1980. Association for Computational Linguistics, 2020. ",
|
| 1081 |
+
"bbox": [
|
| 1082 |
+
147,
|
| 1083 |
+
92,
|
| 1084 |
+
828,
|
| 1085 |
+
917
|
| 1086 |
+
],
|
| 1087 |
+
"page_idx": 9
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "text",
|
| 1091 |
+
"text": "369 [31] Zewei Sun, Shujian Huang, Xinyu Dai, and Jiajun Chen. Alleviating the inequality of attention heads for \n370 neural machine translation. CoRR, abs/2009.09672, 2020. \n371 [32] Zhen Wu, Lijun Wu, Meng Qi, Yingce Xia, Shufang Xie, Tao Qin, Xinyu Dai, and Tie-Yan Liu. Unidrop: \n372 A simple yet effective technique to improve transformer without extra cost. In Proceedings of the The 2021 \n373 Conference of the North American Chapter of the Association for Computational Linguistics - Human \n374 Language Technologies, Volume 1 (Long Papers), 2021. \n375 [33] Chris J. Maddison, Daniel Tarlow, and Tom Minka. $\\mathbf { A } ^ { * }$ sampling. In Zoubin Ghahramani, Max Welling, \n376 Corinna Cortes, Neil D. Lawrence, and Kilian Q. Weinberger, editors, Advances in Neural Information \n377 Processing Systems 27: Annual Conference on Neural Information Processing Systems 2014, December \n378 8-13 2014, Montreal, Quebec, Canada, pages 3086–3094, 2014. \n379 [34] Xinwei Geng, Longyue Wang, Xing Wang, Bing Qin, Ting Liu, and Zhaopeng Tu. How does selective \n380 mechanism improve self-attention networks? In Dan Jurafsky, Joyce Chai, Natalie Schluter, and Joel R. \n381 Tetreault, editors, Proceedings of the 58th Annual Meeting of the Association for Computational Linguis \n382 tics, ACL 2020, Online, July 5-10, 2020, pages 2986–2995. Association for Computational Linguistics, \n383 2020. \n384 [35] Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement \n385 learning. Mach. Learn., 8:229–256, 1992. \n386 [36] Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pier \n387 ric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, \n388 Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, \n389 Quentin Lhoest, and Alexander M. Rush. Transformers: State-of-the-art natural language processing. \n390 In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System \n391 Demonstrations, pages 38–45, Online, October 2020. Association for Computational Linguistics. \n392 [37] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. GLUE: \n393 A multi-task benchmark and analysis platform for natural language understanding. In 7th International \n394 Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenRe \n395 view.net, 2019. \n396 [38] Andrew L. Maas, Raymond E. Daly, Peter T. Pham, Dan Huang, Andrew Y. Ng, and Christopher Potts. \n397 Learning word vectors for sentiment analysis. In Dekang Lin, Yuji Matsumoto, and Rada Mihalcea, \n398 editors, The 49th Annual Meeting of the Association for Computational Linguistics: Human Language \n399 Technologies, Proceedings of the Conference, 19-24 June, 2011, Portland, Oregon, USA, pages 142–150. \n400 The Association for Computer Linguistics, 2011. \n401 [39] Erik F. Tjong Kim Sang and Fien De Meulder. Introduction to the conll-2003 shared task: Language \n402 independent named entity recognition. In Walter Daelemans and Miles Osborne, editors, Proceedings \n403 of the Seventh Conference on Natural Language Learning, CoNLL 2003, Held in cooperation with HLT \n404 NAACL 2003, Edmonton, Canada, May 31 - June 1, 2003, pages 142–147. ACL, 2003. \n405 [40] Mitchell P. Marcus, Beatrice Santorini, and Mary Ann Marcinkiewicz. Building a large annotated corpus \n406 of english: The penn treebank. Comput. Linguistics, 19(2):313–330, 1993. \n407 [41] Rowan Zellers, Yonatan Bisk, Roy Schwartz, and Yejin Choi. SWAG: A large-scale adversarial dataset \n408 for grounded commonsense inference. In Ellen Riloff, David Chiang, Julia Hockenmaier, and Jun’ichi \n409 Tsujii, editors, Proceedings of the 2018 Conference on Empirical Methods in Natural Language Process \n410 ing, Brussels, Belgium, October 31 - November 4, 2018, pages 93–104. Association for Computational \n411 Linguistics, 2018. ",
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
148,
|
| 1094 |
+
93,
|
| 1095 |
+
825,
|
| 1096 |
+
118
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 10
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"text": "",
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
143,
|
| 1105 |
+
108,
|
| 1106 |
+
826,
|
| 1107 |
+
746
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 10
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "text",
|
| 1113 |
+
"text": "412 Checklist ",
|
| 1114 |
+
"text_level": 1,
|
| 1115 |
+
"bbox": [
|
| 1116 |
+
142,
|
| 1117 |
+
766,
|
| 1118 |
+
254,
|
| 1119 |
+
781
|
| 1120 |
+
],
|
| 1121 |
+
"page_idx": 10
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"type": "text",
|
| 1125 |
+
"text": "1. For all authors... ",
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
214,
|
| 1128 |
+
791,
|
| 1129 |
+
330,
|
| 1130 |
+
804
|
| 1131 |
+
],
|
| 1132 |
+
"page_idx": 10
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"type": "text",
|
| 1136 |
+
"text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] See Section 4.2. \n(c) Did you discuss any potential negative societal impacts of your work? [N/A] \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 1137 |
+
"bbox": [
|
| 1138 |
+
240,
|
| 1139 |
+
809,
|
| 1140 |
+
826,
|
| 1141 |
+
893
|
| 1142 |
+
],
|
| 1143 |
+
"page_idx": 10
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"type": "text",
|
| 1147 |
+
"text": "2. If you are including theoretical results... ",
|
| 1148 |
+
"bbox": [
|
| 1149 |
+
215,
|
| 1150 |
+
898,
|
| 1151 |
+
467,
|
| 1152 |
+
911
|
| 1153 |
+
],
|
| 1154 |
+
"page_idx": 10
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"type": "text",
|
| 1158 |
+
"text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] See Section 4.2. (b) Did you include complete proofs of all theoretical results? [No] ",
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
235,
|
| 1161 |
+
92,
|
| 1162 |
+
784,
|
| 1163 |
+
121
|
| 1164 |
+
],
|
| 1165 |
+
"page_idx": 11
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"type": "text",
|
| 1169 |
+
"text": "3. If you ran experiments... ",
|
| 1170 |
+
"bbox": [
|
| 1171 |
+
214,
|
| 1172 |
+
126,
|
| 1173 |
+
377,
|
| 1174 |
+
138
|
| 1175 |
+
],
|
| 1176 |
+
"page_idx": 11
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"type": "text",
|
| 1180 |
+
"text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] See supplemental material. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 4.2 and appendix. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Section 4.2 and appendix. ",
|
| 1181 |
+
"bbox": [
|
| 1182 |
+
240,
|
| 1183 |
+
142,
|
| 1184 |
+
826,
|
| 1185 |
+
252
|
| 1186 |
+
],
|
| 1187 |
+
"page_idx": 11
|
| 1188 |
+
},
|
| 1189 |
+
{
|
| 1190 |
+
"type": "text",
|
| 1191 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 1192 |
+
"bbox": [
|
| 1193 |
+
212,
|
| 1194 |
+
256,
|
| 1195 |
+
767,
|
| 1196 |
+
270
|
| 1197 |
+
],
|
| 1198 |
+
"page_idx": 11
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"type": "text",
|
| 1202 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [Yes] See Section 5. \n(b) Did you mention the license of the assets? [N/A] \n(c) Did you include any new assets either in the supplemental material or as a URL? [No] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No] ",
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
240,
|
| 1205 |
+
273,
|
| 1206 |
+
826,
|
| 1207 |
+
372
|
| 1208 |
+
],
|
| 1209 |
+
"page_idx": 11
|
| 1210 |
+
},
|
| 1211 |
+
{
|
| 1212 |
+
"type": "text",
|
| 1213 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
212,
|
| 1216 |
+
377,
|
| 1217 |
+
658,
|
| 1218 |
+
390
|
| 1219 |
+
],
|
| 1220 |
+
"page_idx": 11
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"type": "text",
|
| 1224 |
+
"text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
|
| 1225 |
+
"bbox": [
|
| 1226 |
+
240,
|
| 1227 |
+
393,
|
| 1228 |
+
825,
|
| 1229 |
+
476
|
| 1230 |
+
],
|
| 1231 |
+
"page_idx": 11
|
| 1232 |
+
}
|
| 1233 |
+
]
|
parse/train/rdT5GV-LnZU/rdT5GV-LnZU_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rdT5GV-LnZU/rdT5GV-LnZU_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|