Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/HJz6tiCqYm/HJz6tiCqYm.md +341 -0
- parse/train/HJz6tiCqYm/HJz6tiCqYm_content_list.json +1879 -0
- parse/train/HJz6tiCqYm/HJz6tiCqYm_middle.json +0 -0
- parse/train/HJz6tiCqYm/HJz6tiCqYm_model.json +0 -0
- parse/train/OP4ePyQXNu-da/OP4ePyQXNu-da.md +300 -0
- parse/train/OP4ePyQXNu-da/OP4ePyQXNu-da_content_list.json +1311 -0
- parse/train/OP4ePyQXNu-da/OP4ePyQXNu-da_middle.json +0 -0
- parse/train/OP4ePyQXNu-da/OP4ePyQXNu-da_model.json +0 -0
- parse/train/SJtfOEn6-/SJtfOEn6-.md +176 -0
- parse/train/SJtfOEn6-/SJtfOEn6-_content_list.json +949 -0
- parse/train/SJtfOEn6-/SJtfOEn6-_middle.json +0 -0
- parse/train/SJtfOEn6-/SJtfOEn6-_model.json +0 -0
- parse/train/eQe8DEWNN2W/eQe8DEWNN2W.md +419 -0
- parse/train/eQe8DEWNN2W/eQe8DEWNN2W_content_list.json +0 -0
- parse/train/eQe8DEWNN2W/eQe8DEWNN2W_middle.json +0 -0
- parse/train/eQe8DEWNN2W/eQe8DEWNN2W_model.json +0 -0
- parse/train/rJXTf9Bxg/rJXTf9Bxg.md +205 -0
- parse/train/rJXTf9Bxg/rJXTf9Bxg_content_list.json +1052 -0
- parse/train/rJXTf9Bxg/rJXTf9Bxg_middle.json +0 -0
- parse/train/rJXTf9Bxg/rJXTf9Bxg_model.json +0 -0
parse/train/HJz6tiCqYm/HJz6tiCqYm.md
ADDED
|
@@ -0,0 +1,341 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
In this paper we establish rigorous benchmarks for image classifier robustness. Our first benchmark, IMAGENET-C, standardizes and expands the corruption robustness topic, while showing which classifiers are preferable in safety-critical applications. Then we propose a new dataset called IMAGENET-P which enables researchers to benchmark a classifier’s robustness to common perturbations. Unlike recent robustness research, this benchmark evaluates performance on common corruptions and perturbations not worst-case adversarial perturbations. We find that there are negligible changes in relative corruption robustness from AlexNet classifiers to ResNet classifiers. Afterward we discover ways to enhance corruption and perturbation robustness. We even find that a bypassed adversarial defense provides substantial common perturbation robustness. Together our benchmarks may aid future work toward networks that robustly generalize.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
The human vision system is robust in ways that existing computer vision systems are not (Recht et al., 2018; Azulay & Weiss, 2018). Unlike current deep learning classifiers (Krizhevsky et al., 2012; He et al., 2015; Xie et al., 2016), the human vision system is not fooled by small changes in query images. Humans are also not confused by many forms of corruption such as snow, blur, pixelation, and novel combinations of these. Humans can even deal with abstract changes in structure and style. Achieving these kinds of robustness is an important goal for computer vision and machine learning. It is also essential for creating deep learning systems that can be deployed in safety-critical applications.
|
| 14 |
+
|
| 15 |
+
Most work on robustness in deep learning methods for vision has focused on the important challenges of robustness to adversarial examples (Szegedy et al., 2014; Carlini & Wagner, 2017; 2016), unknown unknowns (Hendrycks et al., 2019; Hendrycks & Gimpel, 2017b; Liu et al., 2018), and model or data poisoning (Steinhardt et al., 2017; Hendrycks et al., 2018). In contrast, we develop and validate datasets for two other forms of robustness. Specifically, we introduce the IMAGETNET-C dataset for input corruption robustness and the IMAGENET-P dataset for input perturbation robustness.
|
| 16 |
+
|
| 17 |
+
To create IMAGENET-C, we introduce a set of 75 common visual corruptions and apply them to the ImageNet object recognition challenge (Deng et al., 2009). We hope that this will serve as a general dataset for benchmarking robustness to image corruptions and prevent methodological problems such as moving goal posts and result cherry picking. We evaluate the performance of current deep learning systems and show that there is wide room for improvement on IMAGENET-C. We also introduce a total of three methods and architectures that improve corruption robustness without losing accuracy.
|
| 18 |
+
|
| 19 |
+
To create IMAGENET-P, we introduce a set of perturbed or subtly differing ImageNet images. Using metrics we propose, we measure the stability of the network’s predictions on these perturbed images. Although these perturbations are not chosen by an adversary, currently existing networks exhibit surprising instability on common perturbations. Then we then demonstrate that approaches which enhance corruption robustness can also improve perturbation robustness. For example, some recent architectures can greatly improve both types of robustness. More, we show that the Adversarial Logit Pairing $\ell _ { \infty }$ adversarial example defense can yield substantial robustness gains on diverse and common perturbations. By defining and benchmarking perturbation and corruption robustness, we facilitate research that can be overcome by future networks which do not rely on spurious correlations or cues inessential to the object’s class.
|
| 20 |
+
|
| 21 |
+
# 2 RELATED WORK
|
| 22 |
+
|
| 23 |
+
Adversarial Examples. An adversarial image is a clean image perturbed by a small distortion carefully crafted to confuse a classifier. These deceptive distortions can occasionally fool black-box classifiers (Kurakin et al., 2017). Algorithms have been developed that search for the smallest additive distortions in RGB space that are sufficient to confuse a classifier (Carlini et al., 2017). Thus adversarial distortions serve as type of worst-case analysis for network robustness. Its popularity has often led “adversarial robustness” to become interchangeable with “robustness” in the literature (Bastani et al., 2016; Rauber et al., 2017). In the literature, new defenses (Lu et al., 2017; Papernot et al., 2017; Metzen et al., 2017; Hendrycks & Gimpel, 2017a) often quickly succumb to new attacks (Evtimov et al., 2017; Carlini & Wagner, 2017; 2016), with some exceptions for perturbations on small images (Schott et al., 2018; Madry et al., 2018). For some simple datasets, the existence of any classification error ensures the existence of adversarial perturbations of size $\mathcal { O } ( d ^ { - 1 / 2 } )$ , $d$ the input dimensionality (Gilmer et al., 2018b). For some simple models, adversarial robustness requires an increase in the training set size that is polynomial in $d$ (Schmidt et al., 2018). Gilmer et al. (2018a) suggest modifying the problem of adversarial robustness itself for increased real-world applicability.
|
| 24 |
+
|
| 25 |
+
Robustness in Speech. Speech recognition research emphasizes robustness to common corruptions rather than worst-case, adversarial corruptions (Li et al., 2014; Mitra et al., 2017). Common acoustic corruptions (e.g., street noise, background chatter, wind) receive greater focus than adversarial audio, because common corruptions are ever-present and unsolved. There are several popular datasets containing noisy test audio (Hirsch & Pearce, 2000; Hirsch, 2007). Robustness in noisy environments requires robust architectures, and some research finds convolutional networks more robust than fully connected networks (Abdel-Hamid et al., 2013). Additional robustness has been achieved through pre-processing techniques such as standardizing the statistics of the input (Liu et al., 1993; Torre et al., 2005; Harvilla & Stern, 2012; Kim & Stern, 2016).
|
| 26 |
+
|
| 27 |
+
ConvNet Fragility Studies. Several studies demonstrate the fragility of convolutional networks on simple corruptions. For example, Hosseini et al. (2017) apply impulse noise to break Google’s Cloud Vision API. Using Gaussian noise and blur, Dodge & Karam (2017b) demonstrate the superior robustness of human vision to convolutional networks, even after networks are fine-tuned on Gaussian noise or blur. Geirhos et al. (2017) compare networks to humans on noisy and elastically deformed images. They find that fine-tuning on specific corruptions does not generalize and that classification error patterns underlying network and human predictions are not similar. Temel et al. (2017; 2018); Temel & AlRegib (2018) propose different corrupted datasets for object and traffic sign recognition.
|
| 28 |
+
|
| 29 |
+
Robustness Enhancements. In an effort to reduce classifier fragility, Vasiljevic et al. (2016) finetune on blurred images. They find it is not enough to fine-tune on one type of blur to generalize to other blurs. Furthermore, fine-tuning on several blurs can marginally decrease performance. Zheng et al. (2016) also find that fine-tuning on noisy images can cause underfitting, so they encourage the noisy image softmax distribution to match the clean image softmax. Dodge & Karam (2017a) address underfitting via a mixture of corruption-specific experts assuming corruptions are known beforehand.
|
| 30 |
+
|
| 31 |
+
# 3 CORRUPTIONS, PERTURBATIONS, AND ADVERSARIAL PERTURBATIONS
|
| 32 |
+
|
| 33 |
+
We now define corruption and perturbation robustness and distinguish them from adversarial perturbation robustness. To begin, we consider a classifier $f : \mathcal { X } \mathcal { Y }$ trained on samples from distribution $\mathcal { D }$ , a set of corruption functions $C$ , and a set of perturbation functions $\mathcal { E }$ . We let $\mathbb { P } _ { C } ( c ) , \mathbb { P } _ { \mathcal { E } } ( \varepsilon )$ approximate the real-world frequency of these corruptions and perturbations. Most classifiers are judged by their accuracy on test queries drawn from $\mathcal { D }$ , i.e., $\mathbb { P } _ { ( x , y ) \sim \mathcal { D } } ( f ( x ) = y )$ . Yet in a vast range of cases the classifier is tasked with classifying low-quality or corrupted inputs. In view of this, we suggest also computing the classifier’s corruption robustness $\mathbb { E } _ { c \sim C } [ \mathbb { P } _ { ( { \boldsymbol x } , { \boldsymbol y } ) \sim \mathcal { D } } ( f ( c ( { \boldsymbol x } ) = { \boldsymbol y } ) ) ]$ . This contrasts with a popular notion of adversarial robustness, often formulated $\operatorname* { m i n } _ { \| \delta \| _ { p } < b } \mathbb { P } _ { ( { \boldsymbol { x } } , { \boldsymbol { y } } ) \sim \mathcal { D } } ( f ( { \boldsymbol { x } } + { \boldsymbol { \delta } } ) = { \boldsymbol { y } } )$ , $b$ a small budget. Thus, corruption robustness measures the classifier’s average-case performance on corruptions $C$ , while adversarial robustness measures the worst-case performance on small, additive, classifier-tailored perturbations.
|
| 34 |
+
|
| 35 |
+
Average-case performance on small, general, classifier-agnostic perturbations motivates us to define perturbation robustness, namely $\mathbb { E } _ { \varepsilon \sim \varepsilon } [ \mathbb { P } _ { ( x , y ) \sim \mathcal { D } } ( f ( \varepsilon ( \bar { x ) } ) = f ( x ) ) ]$ ]. Consequently, in measuring perturbation robustness, we track the classifier’s prediction stability, reliability, or consistency in the face of minor input changes. Now in order to approximate $C , \mathcal { E }$ and these robustness measures, we designed a set of corruptions and perturbations which are frequently encountered in natural images. We will refer to these as “common” corruptions and perturbations. These common corruptions and perturbations are available in the form of IMAGENET-C and IMAGENET-P.
|
| 36 |
+
|
| 37 |
+

|
| 38 |
+
Figure 1: Our IMAGENET-C dataset consists of 15 types of algorithmically generated corruptions from noise, blur, weather, and digital categories. Each type of corruption has five levels of severity, resulting in 75 distinct corruptions. See different severity levels in Appendix B.
|
| 39 |
+
|
| 40 |
+
# 4 THE IMAGENET-C AND IMAGENET-P ROBUSTNESS BENCHMARKS
|
| 41 |
+
|
| 42 |
+
# 4.1 THE DATA OF IMAGENET-C AND IMAGENET-P
|
| 43 |
+
|
| 44 |
+
IMAGENET-C Design. The IMAGENET-C benchmark consists of 15 diverse corruption types applied to validation images of ImageNet. The corruptions are drawn from four main categories— noise, blur, weather, and digital—as shown in Figure 1. Research that improves performance on this benchmark should indicate general robustness gains, as the corruptions are diverse and numerous. Each corruption type has five levels of severity since corruptions can manifest themselves at varying intensities. Appendix A gives an example of the five different severity levels for impulse noise. Real-world corruptions also have variation even at a fixed intensity. To simulate these, we introduce variation for each corruption when possible. For example, each fog cloud is unique to each image. These algorithmically generated corruptions are applied to the ImageNet (Deng et al., 2009) validation images to produce our corruption robustness dataset IMAGENET-C. The dataset can be downloaded or re-created by visiting https://github.com/hendrycks/robustness. IMAGENET-C images are saved as lightly compressed JPEGs; this implies an image corrupted by Gaussian noise is also slightly corrupted by JPEG compression. Our benchmark tests networks with IMAGENET-C images, but networks should not be trained on these images. Networks should be trained on datasets such as ImageNet and not be trained on IMAGENET-C corruptions. To enable further experimentation, we designed an extra corruption type for each corruption category (Appendix B), and we provide CIFAR-10-C, TINY IMAGENET-C, IMAGENET $6 4 \times 6 4 – \mathrm { C }$ , and Inception-sized editions. Overall, the IMAGENET-C dataset consists of 75 corruptions, all applied to ImageNet validation images for testing a pre-existing network.
|
| 45 |
+
|
| 46 |
+
Common Corruptions. The first corruption type is Gaussian noise. This corruption can appear in low-lighting conditions. Shot noise, also called Poisson noise, is electronic noise caused by the discrete nature of light itself. Impulse noise is a color analogue of salt-and-pepper noise and can be caused by bit errors. Defocus blur occurs when an image is out of focus. Frosted Glass Blur appears with “frosted glass” windows or panels. Motion blur appears when a camera is moving quickly. Zoom blur occurs when a camera moves toward an object rapidly. Snow is a visually obstructive form of precipitation. Frost forms when lenses or windows are coated with ice crystals. Fog shrouds objects and is rendered with the diamond-square algorithm. Brightness varies with daylight intensity. Contrast can be high or low depending on lighting conditions and the photographed object’s color. Elastic transformations stretch or contract small image regions. Pixelation occurs when upsampling a lowresolution image. JPEG is a lossy image compression format which introduces compression artifacts.
|
| 47 |
+
|
| 48 |
+
IMAGENET-P Design. The second benchmark that we propose tests the classifier’s perturbation robustness. Models lacking in perturbation robustness produce erratic predictions which undermines user trust. When perturbations have a high propensity to change the model’s response, then perturbations could also misdirect or destabilize iterative image optimization procedures appearing in style transfer (Gatys et al., 2016), decision explanations (Fong & Vedaldi, 2017), feature visualization (Olah et al., 2017), and so on. Like IMAGENET-C, IMAGENETP consists of noise, blur, weather, and digital distortions. Also as before, the dataset has validation perturbations; has difficulty levels; has CIFAR-10, Tiny ImageNet, ImageNet $6 4 \times 6 4$ standard, and Inception-sized editions; and has been designed for benchmarking not training networks. IMAGENET-P departs from IMAGENET-C by having perturbation sequences generated from each ImageNet validation image; examples are in Figure 2. Each sequence contains more than 30 frames, so we counteract an increase in dataset size and evaluation time by using only 10 common perturbations.
|
| 49 |
+
|
| 50 |
+
Common Perturbations. Appearing more subtly than the corruption from IMAGENET-C, the Gaussian noise perturbation sequence begins with the clean ImageNet image. The following frames in the sequence consist in the same image but with minute Gaussian noise perturbations applied. This sequence design is similar for the shot noise perturbation sequence. However the remaining perturbation sequences have temporality, so that each frame of the sequence is a perturbation of the previous frame. Since each perturbation is small, repeated application of a perturbation does not bring the image far out-of-distribution. For example, an IMAGENET-P translation perturbation sequence shows a clean ImageNet image sliding from right to left one pixel at a time; with each perturbation of the pixel locations, the resulting frame is still of high quality. The perturbation sequences with temporality are created with motion blur, zoom blur, snow, brightness, translate, rotate, tilt (viewpoint variation through minor 3D rotations), and scale perturbations.
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
Figure 2: Example frames from the beginning $( T = 0$ ) to end $( T = 3 0$ ) of some Tilt and Brightness perturbation sequences.
|
| 54 |
+
|
| 55 |
+
# 4.2 IMAGENET-C AND IMAGENET-P METRICS AND SETUP
|
| 56 |
+
|
| 57 |
+
IMAGENET-C Metrics. Common corruptions such as Gaussian noise can be benign or destructive depending on their severity. In order to comprehensively evaluate a classifier’s robustness to a given type of corruption, we score the classifier’s performance across five corruption severity levels and aggregate these scores. The first evaluation step is to take a trained classifier f, which has not been $E _ { \mathrm { { c l e a n } } } ^ { f }$ d on IMAGENET-C, and compute the clean dataset top-1 error. The second step is to test the classifier on each corruption type $c$ te. Denote this error raat each level of severity $s$ $( 1 \le s \le 5 )$ ). This top-1 error is written $E _ { s , c } ^ { f }$ . Before we aggregate the classifier’s performance across severities and corruption types, we will make error rates more comparable since different corruptions pose different levels of difficulty. For example, fog corruptions often obscure an object’s class more than brightness corruptions. We adjust for the varying difficulties by dividing by AlexNet’s errors, but any baseline will do (even a baseline with $100 \%$ error rates, corresponding to an average of CEs). This standardized aggregate performance measure is the Corruption Error, computed with the formula
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\mathrm { { C E } } _ { c } ^ { f } = \biggl ( \sum _ { s = 1 } ^ { 5 } E _ { s , c } ^ { f } \biggr ) \bigg / \biggl ( \sum _ { s = 1 } ^ { 5 } E _ { s , c } ^ { \mathrm { A l e x N e t } } \biggr ) .
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
$\mathrm { C E } _ { \mathrm { G a u s s i a n N o i s e } } ^ { f }$ , $\mathbf { C E } _ { \mathrm { { S h o t N o i s e } } } ^ { f } , \dotsc , \mathbf { C E } _ { \mathrm { { J P E G } } } ^ { f }$ ion robustness by averag. This results in the mean $C E$ theor $m C E$ orruption Error valuesfor short.
|
| 64 |
+
|
| 65 |
+
We now introduce a more nuanced corruption robustness measure. Consider a classifier that withstands most corruptions, so that the gap between the $\mathrm { m C E }$ and the clean data error is minuscule. Contrast this with a classifier with a low clean error rate which has its error rate spike in the presence of corruptions; this corresponds to a large gap between the mCE and clean data error. It is possible that the former classifier has a larger mCE than the latter, despite the former degrading more gracefully in the presence of corruptions. The amount that the classifier declines on corrupted inputs is given by the formula Relative $\begin{array} { r } { \mathbf { \bar { C } E } _ { c } ^ { f } = \big ( \sum _ { s = 1 } ^ { 5 } E _ { s , c } ^ { f } - E _ { \mathrm { c l e a n } } ^ { f } \big ) \big / \big ( \sum _ { s = 1 } ^ { 5 } E _ { s , c } ^ { \mathrm { A l e x N e t } } - E _ { \mathrm { c l e a n } } ^ { \mathrm { A l e x N e t } } \big ) } \end{array}$ . Averaging these 15 Relative Corruption Errors results in the Relative $m C E$ . This measures the relative robustness or the performance degradation when encountering corruptions.
|
| 66 |
+
|
| 67 |
+
IMAGENET-P Metrics. A straightforward approach to estimate $\mathbb { E } _ { \varepsilon \sim \mathcal { E } } [ \mathbb { P } _ { ( x , y ) \sim \mathcal { D } } ( f ( \varepsilon ( x ) ) \neq f ( x ) ) ]$ falls into place when using IMAGENET-P perturbation sequences. Let us denote $m$ perturbation sequences with $\mathcal { S } = \{ \left( x _ { 1 } ^ { ( i ) } , x _ { 2 } ^ { ( i ) } , \ldots , x _ { n } ^ { ( i ) } \right) \bar \} _ { i = 1 } ^ { m }$ where each sequence is made with perturbation $p$ . The “Flip Probability” of network $f : \mathcal { X } \bar { \{ 1 , 2 , \dots , 1 0 0 0 \} }$ on perturbation sequences $s$ is
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
\mathrm { F P } _ { p } ^ { f } = \frac { 1 } { m ( n - 1 ) } \sum _ { i = 1 } ^ { m } \sum _ { j = 2 } ^ { n } \mathbb { 1 } \left( f \big ( x _ { j } ^ { ( i ) } \big ) \neq f \big ( x _ { j - 1 } ^ { ( i ) } \big ) \right) = \mathbb { P } _ { x \sim { \mathscr { S } } } ( f ( x _ { j } ) \neq f ( x _ { j - 1 } ) ) .
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
For noise perturbation sequences, which are not temporally related, $x _ { 1 } ^ { ( i ) }$ is clean and $\boldsymbol { x } _ { j } ^ { ( i ) }$ $( j ~ > ~ 1 )$ are perturbed images of $x _ { 1 } ^ { ( i ) }$ . We can recast the FP formula for noise sequences as $\begin{array} { r } { \mathrm { F P } _ { p } ^ { f } = \frac { 1 } { m ( n - 1 ) } \sum _ { i = 1 } ^ { m } \sum _ { j = 2 } ^ { n } \mathbb { I } \big ( f \big ( x _ { j } ^ { ( i ) } \big ) \ne f \big ( x _ { 1 } ^ { ( i ) } \big ) \big ) = \mathbb { P } _ { x \sim S } ( f ( x _ { j } ) \ne f ( x _ { 1 } ) \mid j > 1 ) } \end{array}$ . As was done with the Corruption Error formula, we now standardize the Flip Probability by the sequence’s difficulty for increased commensurability. We have, then, the “Flip Rate” FRfp = FPfp /FPAlexNetp . Averaging the Flip Rate across all perturbations yields the mean Flip Rate or $m F R$ . We do not define a “relative mFR” since we did not find any natural formulation, nor do we directly use predicted class probabilities due to differences in model calibration (Guo et al., 2017).
|
| 74 |
+
|
| 75 |
+
When the top-5 predictions are relevant, perturbations should not cause the list of top-5 predictions to shuffle chaotically, nor should classes sporadically vanish from the list. We penalize top-5 inconsistency of this kind with a different measure. Let the ranked predictions of network $f$ on $x$ be the permutation $\tau ( x ) \in S _ { 1 0 0 0 }$ . Concretely, if “Toucan” has the label 97 in the output space and “Pelican” has the label 145, and if $f$ on $x$ predicts “Toucan” and “Pelican” to be the most and second-most likely classes, respectively, then $\tau ( x ) ( 9 7 ) = 1$ and $\tau ( x ) ( 1 4 4 ) = 2$ . These permutations contain the top-5 predictions, so we use permutations to compare top-5 lists. To do this, we define
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
d ( \tau ( x ) , \tau ( x ^ { \prime } ) ) = \sum _ { i = 1 } ^ { 5 } \sum _ { j = \operatorname* { m i n } \{ i , \sigma ( i ) \} + 1 } ^ { \operatorname* { m a x } \{ i , \sigma ( i ) \} } \mathbb { 1 } ( 1 \leq j - 1 \leq 5 )
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
where $\sigma = ( \tau ( x ) ) ^ { - 1 } \tau ( x ^ { \prime } )$ . If the top-5 predictions represented within $\tau ( x )$ and $\tau ( x ^ { \prime } )$ are identical, then $d ( \tau ( x ) , \tau ( x ^ { \prime } ) ) = 0$ . More examples of $d$ on several permutations are in Appendix C. Comparing the top-5 predictions across entire perturbation sequences results in the unstandardized Top-5 Distance $\begin{array} { r } { \mathfrak { u } \mathrm { T } 5 \mathbf { D } _ { p } ^ { f } = \frac { 1 } { m ( n - 1 ) } \sum _ { i = 1 } ^ { m } \sum _ { j = 2 } ^ { n } d ( \tau ( x _ { j } ) , \tau ( x _ { j - 1 } ) ) = \mathbb { P } _ { x \sim \mathcal { S } } ( d ( \tau ( x _ { j } ) , \tau ( x _ { j - 1 } ) ) , \tau ( x _ { j - 1 } ) ) . } \end{array}$ . For noise perturbation sequences, we have $\mathsf { u T 5 D } _ { p } ^ { f } \ : = \ : \mathbb { E } _ { x \sim { \cal S } } [ d ( \tau ( x _ { j } ) , \tau ( x _ { 1 } ) ) \mid j$ > 1]. Once the uT5D is standardized, we have the Top-5 Distance $\mathrm { T } 5 \mathrm { D } _ { p } ^ { f } \ = \ \mathrm { u T } 5 \mathrm { D } _ { p } ^ { f } / \mathrm { u T } 5 \mathrm { D } _ { p } ^ { \mathrm { A l e x N e t } }$ . The T5Ds averaged together correspond to the mean Top-5 Distance or $m T 5 D$ .
|
| 82 |
+
|
| 83 |
+
Preserving Metric Validity. The goal of IMAGENET-C and IMAGENET-P is to evaluate the robustness of machine learning algorithms on novel corruptions and perturbations. Humans are able to generalize to novel corruptions quite well; for example, they can easily deal with new Instagram filters. Likewise for perturbations; humans relaxing in front of an undulating ocean do not give turbulent accounts of the scenery before them. Hence, we propose the following protocol. The image recognition network should be trained on the ImageNet training set and on whatever other training sets the investigator wishes to include. Researchers should clearly state whether they trained on these corruptions or perturbations; however, this training strategy is discouraged (see Section 2). We allow training with other distortions (e.g., uniform noise) and standard data augmentation (i.e., cropping, mirroring), even though cropping overlaps with translations. Then the resulting trained model should be evaluated on IMAGENET-C or IMAGENET-P using the above metrics. Optionally, researchers can test with the separate set of validation corruptions and perturbations we provide for IMAGENET-C and IMAGENET-P.
|
| 84 |
+
|
| 85 |
+

|
| 86 |
+
Figure 3: Robustness (mCE) and Relative mCE IMAGENET-C values. Relative mCE values suggest robustness in itself declined from AlexNet to ResNet. “BN” abbreviates Batch Normalization.
|
| 87 |
+
|
| 88 |
+

|
| 89 |
+
Figure 4: Perturbation robustness of various architectures as measured by the mT5D on IMAGENET-P. Observe that corruption and perturbation robustness track distinct concepts.
|
| 90 |
+
|
| 91 |
+
<table><tr><td></td><td></td><td></td><td></td><td>Noise</td><td></td><td></td><td>Blur</td><td></td><td></td><td></td><td>Weather</td><td></td><td></td><td></td><td>Digital</td><td></td></tr><tr><td>Network</td><td>Error</td><td>mCE</td><td>Gauss.Shot Impulse</td><td></td><td></td><td></td><td>Defocus Glass Motion Zoom</td><td></td><td></td><td>SnowFrostFogBright</td><td></td><td></td><td></td><td></td><td>Contrast Elastic Pixel JPEG</td><td></td></tr><tr><td>AlexNet</td><td>43.5</td><td>100.0</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>1001 100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td></tr><tr><td>SqueezeNet</td><td>41.8</td><td>104.4</td><td>107</td><td>106</td><td>105</td><td>100</td><td>103</td><td>101</td><td>100</td><td>101</td><td>103 97</td><td>97</td><td></td><td>98</td><td>106 109</td><td>134</td></tr><tr><td>VGG-11</td><td>31.0</td><td>93.5</td><td>97</td><td>97</td><td>100</td><td>92</td><td>99</td><td>93</td><td>91</td><td>92</td><td>91 84</td><td>75</td><td>86</td><td>97</td><td>107</td><td>100</td></tr><tr><td>VGG-19</td><td>27.6</td><td>88.9</td><td>89</td><td>91</td><td>95</td><td>89</td><td>98</td><td>90</td><td>90</td><td>89</td><td>86 75</td><td>68</td><td>80</td><td>97</td><td>102</td><td>94</td></tr><tr><td>VGG-19+BN</td><td>25.8</td><td>81.6</td><td>82</td><td>83</td><td>88</td><td>82</td><td>94</td><td>84</td><td>86</td><td>80</td><td>78 69</td><td>61</td><td>74</td><td>94</td><td>85</td><td>83</td></tr><tr><td>ResNet-18</td><td>30.2</td><td>84.7</td><td>87</td><td>88</td><td>91</td><td>84</td><td>91</td><td>87</td><td>89</td><td>86</td><td>84 78</td><td>69</td><td>78</td><td>90</td><td>80</td><td>85</td></tr><tr><td>ResNet-50</td><td>23.9</td><td>76.7</td><td>80</td><td>82</td><td>83</td><td>75</td><td>89</td><td>78</td><td>80</td><td>78</td><td>75 66</td><td>57</td><td>71</td><td>85</td><td>77</td><td>77</td></tr></table>
|
| 92 |
+
|
| 93 |
+
Table 1: Clean Error, mCE, and Corruption Error values of different corruptions and architectures on IMAGENET-C. The mCE value is the mean Corruption Error of the corruptions in Noise, Blur, Weather, and Digital columns. Models are trained only on clean ImageNet images.
|
| 94 |
+
|
| 95 |
+
# 5 EXPERIMENTS
|
| 96 |
+
|
| 97 |
+
# 5.1 ARCHITECTURE ROBUSTNESS
|
| 98 |
+
|
| 99 |
+
How robust are current methods, and has progress in computer vision been achieved at the expense of robustness? As seen in Figure 3, as architectures improve, so too does the mean Corruption Error (mCE). By this measure, architectures have become progressively more successful at generalizing to corrupted distributions. Note that models with similar clean error rates have fairly similar CEs, and in Table 1 there are no large shifts in a corruption type’s CE. Consequently, it would seem that architectures have slowly and consistently improved their representations over time. However, it appears that corruption robustness improvements are mostly explained by accuracy improvements. Recall that the Relative mCE tracks a classifier’s accuracy decline in the presence of corruptions. Figure 3 shows that the Relative mCEs of many subsequent models are worse than that of AlexNet (Krizhevsky et al., 2012). Full results are in Appendix D. In consequence, from AlexNet to ResNet, corruption robustness in itself has barely changed. Thus our “superhuman” classifiers are decidedly subhuman.
|
| 100 |
+
|
| 101 |
+
On perturbed inputs, current classifiers are unexpectedly bad. For example, a ResNet-18 on Scale perturbation sequences have a $1 5 . 6 \%$ probability of flipping its top-1 prediction between adjacent frames (i.e., perturbation $\mathrm { F P _ { S c a l e } ^ { R e s N e t - 1 8 } = 1 5 . 6 \% }$ ; therial t $\mathrm { u T 5 D } _ { \mathrm { S c a l e } } ^ { \mathrm { R e s N e t - 1 8 } }$ is 3.6. More results are in Appendix E. Clearly classifiers. What is also surprising is that while VGGNets are worse than ResNets at generalizing to corrupted examples, on perturbed examples they can be just as robust or even more robust. Likewise, Batch Normalization made VGG-19 less robust to perturbations but more robust to corruptions. Yet this is not to suggest that there is a fundamental trade-off between corruption and perturbation robustness. In fact, both corruption and perturbation robustness can improve together, as we shall see later.
|
| 102 |
+
|
| 103 |
+
# 5.2 ROBUSTNESS ENHANCEMENTS
|
| 104 |
+
|
| 105 |
+
Be aware that Appendix F contains many informative failures in robustness enhancement. Those experiments underscore the necessity in testing on a a diverse test set, the difficulty in cleansing corruptions from image, and the futility in expecting robustness gains from some “simpler” models.
|
| 106 |
+
|
| 107 |
+
Histogram Equalization. Histogram equalization successfully standardizes speech data for robust speech recognition (Torre et al., 2005; Harvilla & Stern, 2012). For images, we find that preprocessing with Contrast Limited Adaptive Histogram Equalization (Pizer et al., 1987) is quite effective. Unlike our image denoising attempt (Appendix F), CLAHE reduces the effect of some corruptions while not worsening performance on most others, thereby improving the mCE. We demonstrate CLAHE’s net improvement by taking a pre-trained ResNet-50 and fine-tuning the whole model for five epochs on images processed with CLAHE. The ResNet-50 has a $2 3 . 8 7 \%$ error rate, but ResNet-50 with CLAHE has an error rate of $2 3 . 5 5 \%$ . On nearly all corruptions, CLAHE slightly decreases the Corruption Error. The ResNet-50 without CLAHE preprocessing has an mCE of $7 6 . 7 \%$ , while with CLAHE the ResNet-50’s mCE decreases to $7 4 . 5 \%$ .
|
| 108 |
+
|
| 109 |
+
Multiscale Networks. Multiscale architectures achieve greater corruption robustness by propagating features across scales at each layer rather than slowly gaining a global representation of the input as in typical convolutional neural networks. Some multiscale architectures are called Multigrid Networks (Ke et al., 2017). Multigrid networks each have a pyramid of grids in each layer which enables the subsequent layer to operate across scales. Along similar lines, Multi-Scale Dense Networks (MSDNets) (Huang et al., 2018) use information across scales. MSDNets bind network layers with DenseNet-like (Huang et al., 2017b) skip connections. These two different multiscale networks both enhance corruption robustness, but they do not provide any noticeable benefit in perturbation robustness. Now before comparing mCE values, we first note the Multigrid network has a $2 4 . 6 \%$ top-1 error rate, as does the MSDNet, while the ResNet-50 has a $2 3 . 9 \%$ top-1 error rate. On noisy inputs, Multigrid networks noticeably surpass ResNets and MSDNets, as shown in Figure 5. Since multiscale architectures have high-level representations processed in tandem with fine details, the architectures appear better equipped to suppress otherwise distracting pixel noise. When all corruptions are evaluated, ResNet-50 has an mCE of $7 6 . 7 \%$ , the MSDNet has an mCE of $7 3 . 6 \%$ , and the Multigrid network has an mCE of $7 3 . 3 \%$ .
|
| 110 |
+
|
| 111 |
+
Feature Aggregating and Larger Networks. Some recent models enhance the ResNet architecture by increasing what is called feature aggregation. Of these, DenseNets and ResNeXts (Xie et al., 2016) are most prominent. Each purports to have stronger representations than ResNets, and the evidence is largely a hard-won ImageNet error-rate downtick. Interestingly, the IMAGENET-C mCE clearly indicates that DenseNets and ResNeXts have superior representations. Accordingly, a switch from a ResNet-50 $2 3 . 9 \%$ top-1 error) to a DenseNet-121 $2 5 . 6 \%$ error) decreases the mCE from $7 6 . 7 \%$ to $7 3 . 4 \%$ (and the relative $\mathrm { m C E }$ from $1 0 5 . 0 \%$ to $9 2 . 8 \%$ ). More starkly, switching from a ResNet-50 to a ResNeXt-50 $2 2 . 9 \%$ top-1) drops the mCE from $7 6 . 7 \%$ to $6 8 . 2 \%$ (relative mCE decreases from $1 0 5 . 0 \%$ to $8 8 . 6 \%$ ). Corruption robustness results are summarized in Figure 5. This shows that corruption robustness may be a better way to measure future progress in representation learning than the clean dataset top-1 error rate.
|
| 112 |
+
|
| 113 |
+
Some of the greatest and simplest robustness gains sometimes emerge from making recent models more monolithic. Apparently more representations, more redundancy, and more capacity allow these massive models to operate more stably on corrupted inputs. We saw earlier that making models smaller does the opposite. Swapping a DenseNet-121 ( $2 5 . 6 \%$ top-1) with the larger DenseNet-161 $2 2 . 9 \%$ top1) decreases the mCE from $7 3 . 4 \%$ to $6 6 . 4 \%$ (and the relative mCE from $9 2 . 8 \%$ to $8 4 . 6 \%$ ). In a similar fashion, a ResNeXt-50 $2 2 . 9 \%$ top-1) is less robust than the a giant ResNeXt-101 $( 2 1 . 0 \%$ top-1). The mCEs are $6 8 . 2 \%$ and $6 2 . 2 \%$ respectively (and the relative mCEs are $8 8 . 6 \%$ and $8 0 . 1 \%$ respectively).
|
| 114 |
+
|
| 115 |
+

|
| 116 |
+
Figure 5: Architectures such as Multigrid networks and DenseNets resist noise corruptions more effectively than ResNets.
|
| 117 |
+
|
| 118 |
+

|
| 119 |
+
Figure 6: Larger feature aggregating networks achieve robustness gains that substantially outpace their accuracy gains.
|
| 120 |
+
|
| 121 |
+
Both model size and feature aggregation results are summarized in Figure 6. Consequently, future models with even more depth, width, and feature aggregation may attain further corruption robustness.
|
| 122 |
+
|
| 123 |
+
Feature aggregation and their larger counterparts similarly improve perturbation robustness. While a ResNet-50 has a $5 8 . 0 \%$ mFR and a $7 8 . 3 \%$ mT5D, a DenseNet-121 obtains a $5 6 . 4 \%$ mFR and $7 6 . 8 \%$ mT5D, and a ResNeXt-50 does even better with a $5 2 . 4 \%$ mFR and a $7 4 . 2 \%$ mT5D. Reflecting the corruption robustness findings further, the larger DenseNet-161 has a $4 6 . 9 \%$ mFR and $6 9 . 5 \%$ mT5D, while the ResNeXt-101 has a $4 3 . 2 \%$ mFR and $6 5 . 9 \%$ mT5D. Thus in two senses feature aggregating networks and their larger versions markedly enhance robustness.
|
| 124 |
+
|
| 125 |
+
Stylized ImageNet. Geirhos et al. (2019) propose a novel data augmentation scheme where ImageNet images are stylized with style transfer. The intent is that classifiers trained on stylized images will rely less on textural cues for classification. When a ResNet-50 is trained on typical ImageNet images and stylized ImageNet images, the resulting model has an mCE of $6 9 . 3 \%$ , down from $7 6 . 7 \%$
|
| 126 |
+
|
| 127 |
+
Adversarial Logit Pairing. ALP is an adversarial example defense for large-scale image classifiers (Kannan et al., 2018). Like nearly all other adversarial defenses, ALP was bypassed and has unclear value as an adversarial defense going forward (Engstrom et al., 2018), yet this is not a decisive reason dismiss it. ALP provides significant perturbation robustness even though it does not provide much adversarial perturbation robustness against all adversaries. Although ALP was designed to increase robustness to small gradient perturbations, it markedly improves robustness to all sorts of noise, blur, weather, and digital IMAGENET-P perturbations—methods generalizing this well is a rarity. In point of fact, a publicly available Tiny ImageNet ResNet-50 model fine-tuned with ALP has a $41 \%$ and $40 \%$ relative decrease in the mFP and mT5D on TINY IMAGENET-P, respectively. ALP’s success in enhancing common perturbation robustness and its modest utility for adversarial perturbation robustness highlights that the interplay between these problems should be better understood.
|
| 128 |
+
|
| 129 |
+
# 6 CONCLUSION
|
| 130 |
+
|
| 131 |
+
In this paper, we introduced what are to our knowledge the first comprehensive benchmarks for corruption and perturbation robustness. This was made possible by introducing two new datasets, IMAGENET-C and IMAGENET-P. The first of which showed that many years of architectural advancements corresponded to minuscule changes in relative corruption robustness. Therefore benchmarking and improving robustness deserves attention, especially as top-1 clean ImageNet accuracy nears its ceiling. We also saw that classifiers exhibit unexpected instability on simple perturbations. Thereafter we found that methods such as histogram equalization, multiscale architectures, and larger featureaggregating models improve corruption robustness. These larger models also improve perturbation robustness. However, we found that even greater perturbation robustness can come from an adversarial defense designed for adversarial $\ell _ { \infty }$ perturbations, indicating a surprising interaction between adversarial and common perturbation robustness. In this work, we found several methods to increase robustness, introduced novel experiments and metrics, and created new datasets for the rigorous study of model robustness, a pressing necessity as models are unleashed into safety-critical real-world settings.
|
| 132 |
+
|
| 133 |
+
# 7 ACKNOWLEDGEMENTS
|
| 134 |
+
|
| 135 |
+
We should like to thank Justin Gilmer, David Wagner, Kevin Gimpel, Tom Brown, Mantas Mazeika, and Steven Basart for their helpful suggestions. This research was supported by a grant from the Future of Life Institute.
|
| 136 |
+
|
| 137 |
+
# REFERENCES
|
| 138 |
+
|
| 139 |
+
Ossama Abdel-Hamid, Abdel rahman Mohamed, Hui Jiang, and Gerald Penn. Applying convolutional neural networks concepts to hybrid nn-hmm model for speech recognition. ICASSP, 2013.
|
| 140 |
+
|
| 141 |
+
Aharon Azulay and Yair Weiss. Why do deep convolutional networks generalize so poorly to small image transformations? arXiv preprint, 2018.
|
| 142 |
+
|
| 143 |
+
Osbert Bastani, Yani Ioannou, Leonidas Lampropoulos, Dimitrios Vytiniotis, Aditya Nori, and Antonio Criminisi. Measuring neural net robustness with constraints. In NIPS. 2016.
|
| 144 |
+
|
| 145 |
+
Antoni Buades and Bartomeu Coll. A non-local algorithm for image denoising. In CVPR, 2005.
|
| 146 |
+
|
| 147 |
+
Nicholas Carlini and David Wagner. Defensive distillation is not robust to adversarial examples, 2016.
|
| 148 |
+
|
| 149 |
+
Nicholas Carlini and David Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods, 2017.
|
| 150 |
+
|
| 151 |
+
Nicholas Carlini, Guy Katz, Clark Barrett, and David L. Dill. Ground-truth adversarial examples, 2017.
|
| 152 |
+
|
| 153 |
+
Jia Deng, Wei Dong, Richard Socher, Li jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. CVPR, 2009.
|
| 154 |
+
|
| 155 |
+
Samuel Dodge and Lina Karam. Quality resilient deep neural networks, 2017a.
|
| 156 |
+
|
| 157 |
+
Samuel Dodge and Lina Karam. A study and comparison of human and deep learning recognition performance under visual distortions, 2017b.
|
| 158 |
+
|
| 159 |
+
David Donoho and Iain Johnstone. Ideal spatial adaptation by wavelet shrinkage. Biometrika, 1993.
|
| 160 |
+
|
| 161 |
+
Logan Engstrom, Andrew Ilyas, and Anish Athalye. Evaluating and understanding the robustness of adversarial logit pairing. arXiv preprint, 2018.
|
| 162 |
+
|
| 163 |
+
Ivan Evtimov, Kevin Eykholt, Earlence Fernandes, Tadayoshi Kohno, Bo Li, Atul Prakash, Amir Rahmati, and Dawn Song. Robust physical-world attacks on deep learning models, 2017.
|
| 164 |
+
|
| 165 |
+
Ruth Fong and Andrea Vedaldi. Interpretable explanations of black boxes by meaningful perturbation. ICCV, 2017.
|
| 166 |
+
|
| 167 |
+
Leon Gatys, Alexander Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. CVPR, 2016.
|
| 168 |
+
|
| 169 |
+
Robert Geirhos, David H. J. Janssen, Heiko H. Schütt, Jonas Rauber, Matthias Bethge, and Felix A. Wichmann. Comparing deep neural networks against humans: object recognition when the signal gets weaker, 2017.
|
| 170 |
+
|
| 171 |
+
Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A Wichmann, and Wieland Brendel. Imagenet-trained cnns are biased towards texture; increasing shape bias improves accuracy and robustness. ICLR, 2019.
|
| 172 |
+
|
| 173 |
+
Justin Gilmer, Ryan P. Adams, Ian Goodfellow, David Andersen, and George E. Dahl. Motivating the rules of the game for adversarial example research. arXiv preprint, 2018a.
|
| 174 |
+
|
| 175 |
+
Justin Gilmer, Luke Metz, Fartash Faghri, Samuel S. Schoenholz, Maithra Raghu, Martin Wattenberg, and Ian Goodfellow. Adversarial spheres. ICLR Workshop, 2018b.
|
| 176 |
+
|
| 177 |
+
Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. On calibration of modern neural networks. International Conference on Machine Learning, 2017.
|
| 178 |
+
|
| 179 |
+
Mark Harvilla and Richard Stern. Histogram-based subband powerwarping and spectral averaging for robust speech recognition under matched and multistyle training, 2012.
|
| 180 |
+
|
| 181 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CVPR, 2015.
|
| 182 |
+
|
| 183 |
+
Dan Hendrycks and Kevin Gimpel. Early methods for detecting adversarial images, 2017a.
|
| 184 |
+
|
| 185 |
+
Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. In ICLR, 2017b.
|
| 186 |
+
|
| 187 |
+
Dan Hendrycks, Mantas Mazeika, Duncan Wilson, and Kevin Gimpel. Using trusted data to train deep networks on labels corrupted by severe noise. NIPS, 2018.
|
| 188 |
+
|
| 189 |
+
Dan Hendrycks, Mantas Mazeika, and Thomas Dietterich. Deep anomaly detection with outlier exposure. ICLR, 2019.
|
| 190 |
+
|
| 191 |
+
Hans-Günter Hirsch. Aurora-5 experimental framework for the performance evaluation of speech recognition in case of a hands-free speech input in noisy environments, 2007.
|
| 192 |
+
|
| 193 |
+
Hans-Günter Hirsch and David Pearce. The Aurora experimental framework for the performance evaluation of speech recognition systems under noisy conditions. ISCA ITRW ASR2000, 2000.
|
| 194 |
+
|
| 195 |
+
Hossein Hosseini, Baicen Xiao, and Radha Poovendran. Google’s cloud vision api is not robust to noise, 2017.
|
| 196 |
+
|
| 197 |
+
Gao Huang, Shichen Liu, Laurens van der Maaten, and Kilian Q Weinberger. Condensenet: An efficient DenseNet using learned group convolutions. arXiv preprint, 2017a.
|
| 198 |
+
|
| 199 |
+
Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017b.
|
| 200 |
+
|
| 201 |
+
Gao Huang, Danlu Chen, Tianhong Li, Felix Wu, Laurens van der Maaten, and Kilian Q. Weinberger. Multi-scale dense networks for resource efficient image classification. ICLR, 2018.
|
| 202 |
+
|
| 203 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. JMLR, 2015.
|
| 204 |
+
|
| 205 |
+
Harini Kannan, Alexey Kurakin, and Ian Goodfellow. Adversarial logit pairing. NIPS, 2018.
|
| 206 |
+
|
| 207 |
+
Tsung-Wei Ke, Michael Maire, and Stella X. Yu. Multigrid neural architectures, 2017.
|
| 208 |
+
|
| 209 |
+
Chanwoo Kim and Richard M. Stern. Power-normalized cepstral coefficients (PNCC) for robust speech recognition. IEEE/ACM Trans. Audio, Speech and Lang. Proc., 24(7):1315–1329, July 2016. ISSN 2329-9290.
|
| 210 |
+
|
| 211 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. NIPS, 2012.
|
| 212 |
+
|
| 213 |
+
Ravi Kumar and Sergei Vassilvitskii. Generalized distances between rankings, 2010.
|
| 214 |
+
|
| 215 |
+
Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. ICLR, 2017.
|
| 216 |
+
|
| 217 |
+
Jinyu Li, Li Deng, Yifan Gong, and Reinhold Haeb-Umbach. An overview of noise-robust automatic speech recognition. 2014.
|
| 218 |
+
|
| 219 |
+
Fu-Hua Liu, Richard M. Stern, Xuedong Huang, and Alex Acero. Efficient cepstral normalization for robust speech recognition. In Proc. of DARPA Speech and Natural Language Workshop, 1993.
|
| 220 |
+
|
| 221 |
+
Si Liu, Risheek Garrepalli, Thomas Dietterich, Alan Fern, and Dan Hendrycks. Open category detection with PAC guarantees. In ICML, 2018.
|
| 222 |
+
|
| 223 |
+
Jiajun Lu, Hussein Sibai, Evan Fabry, and David Forsyth. Standard detectors aren’t (currently) fooled by physical adversarial stop signs, 2017.
|
| 224 |
+
|
| 225 |
+
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. ICLR, 2018.
|
| 226 |
+
|
| 227 |
+
Jan Hendrik Metzen, Tim Genewein, Volker Fischer, and Bastian Bischoff. On detecting adversarial perturbations, 2017.
|
| 228 |
+
|
| 229 |
+
Vikramjit Mitra, Horacio Franco, Richard Stern, Julien Van Hout, Luciana Ferrer, Martin Graciarena, Wen Wang, Dimitra Vergyri, Abeer Alwan, and John H.L. Hansen. Robust features in deep learning based speech recognition, 2017.
|
| 230 |
+
|
| 231 |
+
Chris Olah, Alexander Mordvintsev, and Ludwig Schubert. Feature visualization. Distill, 2017.
|
| 232 |
+
|
| 233 |
+
Nicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks, 2017.
|
| 234 |
+
|
| 235 |
+
Stephen M. Pizer, E. Philip Amburn, John D. Austin, Robert Cromartie, Ari Geselowitz, Trey Greer, Bart Ter Haar Romeny, and John B. Zimmerman. Adaptive histogram equalization and its variations. Computer Vision, Graphics, and Image Processing, 1987.
|
| 236 |
+
|
| 237 |
+
Jonas Rauber, Wieland Brendel, and Matthias Bethge. Foolbox v0.8.0: A python toolbox to benchmark the robustness of machine learning models, 2017.
|
| 238 |
+
|
| 239 |
+
Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do cifar-10 classifiers generalize to cifar-10? arXiv preprint, 2018.
|
| 240 |
+
|
| 241 |
+
Ludwig Schmidt, Shibani Santurkar, Dimitris Tsipras, Kunal Talwar, and Aleksander Madry. Adversarially robust generalization requires more data. arXiv preprint, 2018.
|
| 242 |
+
|
| 243 |
+
Lukas Schott, Jonas Rauber, Matthias Bethge, and Wieland Brendel. Towards deep learning models resistant to adversarial attacks. arXiv preprint, 2018.
|
| 244 |
+
|
| 245 |
+
Jacob Steinhardt, Pang Wei Koh, and Percy Liang. Certified defenses for data poisoning attacks. NIPS, 2017.
|
| 246 |
+
|
| 247 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks, 2014.
|
| 248 |
+
|
| 249 |
+
Dogancan Temel and Ghassan AlRegib. Traffic signs in the wild: Highlights from the ieee video and image processing cup 2017 student competition. IEEE Signal Processing Magazine, 2018.
|
| 250 |
+
|
| 251 |
+
Dogancan Temel, Gukyeong Kwon, Mohit Prabhushankar, and Ghassan AlRegib. Cure-tsr: Challenging unreal and real environments for traffic sign recognition. NIPS Workshop, 2017.
|
| 252 |
+
|
| 253 |
+
Dogancan Temel, Jinsol Lee, and Ghassan AlRegib. Cure-or: Challenging unreal and real environments for object recognition. ICMLA, 2018.
|
| 254 |
+
|
| 255 |
+
Ángel de la Torre, Antonio Peinado, José Segura, José Pérez-Córdoba, Ma Carmen Benítez, and Antonio Rubio. Histogram equalization of speech representation for robust speech recognition. IEEE Signal Processing Society, 2005.
|
| 256 |
+
|
| 257 |
+
Igor Vasiljevic, Ayan Chakrabarti, and Gregory Shakhnarovich. Examining the impact of blur on recognition by convolutional networks, 2016.
|
| 258 |
+
|
| 259 |
+
Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. CVPR, 2016.
|
| 260 |
+
|
| 261 |
+
Stephan Zheng, Yang Song, Thomas Leung, and Ian Goodfellow. Improving the robustness of deep neural networks via stability training, 2016.
|
| 262 |
+
|
| 263 |
+
# A EXAMPLE OF IMAGENET-C SEVERITIES
|
| 264 |
+
|
| 265 |
+

|
| 266 |
+
Figure 7: Impulse noise modestly to markedly corrupts a frog, showing our benchmark’s varying severities.
|
| 267 |
+
|
| 268 |
+
In Figure 7, we show the Impulse noise corruption type in five different severities. Clearly, IMAGENETC corruptions can range from negligible to pulverizing. Because of this range, the benchmark comprehensively assesses each corruption type.
|
| 269 |
+
|
| 270 |
+
# B EXTRA IMAGENET-C CORRUPTIONS
|
| 271 |
+
|
| 272 |
+

|
| 273 |
+
Figure 8: Extra IMAGENET-C corruption examples are available for model validation and sounder experimentation.
|
| 274 |
+
|
| 275 |
+
Directly fitting the types of IMAGENET-C corruptions should be avoided, as it would cause researchers to overestimate a model’s robustness. Therefore, it is incumbent on us to simplify model validation. This is why we provide an additional form of corruption for each of the four general types. These are available for download at https://github.com/hendrycks/robustness. There is one corruption type for each noise, blur, weather, and digital category in the validation set. The first corruption type is speckle noise, an additive noise where the noise added to a pixel tends to be larger if the original pixel intensity is larger. Gaussian blur is a low-pass filter where a blurred pixel is a result of a weighted average of its neighbors, and farther pixels have decreasing weight in this average. Spatter can occlude a lens in the form of rain or mud. Finally, saturate is common in edited images where images are made more or less colorful. See Figure 8 for instances of each corruption type.
|
| 276 |
+
|
| 277 |
+
# C MORE ON THE IMAGENET-P METRICS AND SETUP
|
| 278 |
+
|
| 279 |
+
For some readers, the following function may be opaque,
|
| 280 |
+
|
| 281 |
+
$$
|
| 282 |
+
d ( \tau ( x ) , \tau ( x ^ { \prime } ) ) = \sum _ { i = 1 } ^ { 5 } \sum _ { j = \operatorname* { m i n } \{ i , \sigma ( i ) \} + 1 } ^ { \operatorname* { m a x } \{ i , \sigma ( i ) \} } \mathbb { 1 } ( 1 \leq j - 1 \leq 5 )
|
| 283 |
+
$$
|
| 284 |
+
|
| 285 |
+
where $\sigma = ( \tau ( x ) ) ^ { - 1 } \tau ( x ^ { \prime } )$ and the empty sum is understood to be zero. A high-level view of $d$ is that it computes the deviation between the top-5 predictions of two prediction lists. For simplicity we find the deviation between the identity and $\sigma$ rather than $\tau ( x )$ and $\tau ( x ^ { \prime } )$ . In consequence we can consider $d ^ { \prime } ( \sigma ) : = d ( 1 , \sigma )$ where 1 the identity permutation. To give some intuition, we provide concrete examples of $d ^ { \prime }$ on permutations.
|
| 286 |
+
|
| 287 |
+
If $\sigma$ is the identity, then $d ^ { \prime } ( \bar { \sigma } ) = 0$ .
|
| 288 |
+
If $\sigma = ( 1 , 2 , 3 , 4 , 6 , 5 , 7 , 8 , \dot { . } . . )$ , $d ^ { \prime } ( \sigma ) = 1$ . If $\sigma = ( 1 , 2 , 3 , 4 , 6 , 7 , 5 , 8 , . . . )$ , $d ^ { \prime } ( \sigma ) = 1$ . Once 5 fell out of the top-5, its displacement did not accumulate any further; this may happen when only the top-5 predictions are shown to the user.
|
| 289 |
+
If $\sigma = ( 2 , 1 , 3 , 4 , 5 , 6 , \dots )$ , $d ^ { \prime } ( \sigma ) = \mathrm { \bar { 2 } }$ .
|
| 290 |
+
If $\sigma = ( 3 , 1 , 2 , 4 , 5 , 6 , \dots ) ,$ $d ^ { \prime } ( \sigma ) = 4$ .
|
| 291 |
+
Also, $d ^ { \prime } ( ( 2 , 3 , 4 , 5 , 6 , \dots , 1 ) ) = 5$ .
|
| 292 |
+
Distinctly, $d ^ { \prime } ( ( 1 , 2 , 3 , 5 , 6 , 4 , 7 , 8 , . . . ) ) = 2$ .
|
| 293 |
+
As a final example, $d ^ { \prime } ( ( 5 , 4 , 3 , 2 , 1 , 6 , 7 , 8 , 9 , . . . ) ) = 1 2 .$ .
|
| 294 |
+
|
| 295 |
+
It may be that we want perturbation robustness for all predictions, including classes with lesser relevance. In such cases, it is still common that the displacement of the top prediction matters more than themeasure $\begin{array} { r } { d ^ { \prime } \hat { ( \sigma ) } = \sum _ { i = 1 } ^ { 1 0 0 0 } w _ { i } \hat { | } w _ { i } - w _ { \sigma ( i ) } | } \end{array}$ ranked cl such that $w _ { i } = 1 / i$ is there are many possibilities, such as the. This uses a Zipfian assumption about the rankings of the classes: the first class is $n$ times as relevant as the nth class. Other possibilities involve using logarithms rather than hyperbolic functions as in the discounted cumulative gain (Kumar & Vassilvitskii, 2010). One could also use the class probabilities provided by the model (should they exist). However such a measure could make it difficult to compare models since some models tend to be more uncalibrated than others (Guo et al., 2017).
|
| 296 |
+
|
| 297 |
+
As progress is made on this task, researchers may be interested in perturbations which are more likely to cause unstable predictions. To accomplish that, researchers can simply compare a frame with the frame two frames ahead rather than just one frame ahead. We provide concrete code of this slight change in the metric at https://github.com/hendrycks/robustness. For nontemporal perturbation sequences, i.e., noise sequences, we provide sequences where the noise perturbation is larger.
|
| 298 |
+
|
| 299 |
+
# D FULL CORRUPTION ROBUSTNESS RESULTS
|
| 300 |
+
|
| 301 |
+
IMAGENET-C corruption relative robustness results are in Tnormalize Corruption Error values, we now specify the value $\begin{array} { r } { { \frac { 1 } { 5 } } \sum _ { s = 1 } ^ { 5 } E _ { s , \mathrm { C o r r u p t i o n } } ^ { \mathrm { A l e x N e t } } } \end{array}$ e AlexNet errors tofor each corruption type. Gaussian Noise: , Shot Noise: , Impulse Noise: $9 2 . 3 \%$ , Defocus Blur: $8 2 . 0 \%$ , Glass Blur: $8 2 . 6 \%$ , Motion Blur: $7 8 . 6 \%$ , Zoom Blur: $7 9 . 8 \%$ , Snow: $8 6 . 7 \%$ , Frost: $8 2 . 7 \%$ , Fog: $8 1 . 9 \%$ , Brightness: $5 6 . 5 \%$ , Contrast: $8 5 . 3 \%$ , Elastic Transformation: $6 4 . 6 \%$ , Pixelate: $7 1 . 8 \%$ , JPEG: $6 0 . 7 \%$ , Speckle Noise: $8 4 . 5 \%$ , Gaussian Blur: $7 8 . 7 \%$ , Spatter: $7 1 . 8 \%$ , Saturate: $6 5 . 8 \%$ .
|
| 302 |
+
|
| 303 |
+
<table><tr><td></td><td></td><td></td><td></td><td>Noise</td><td></td><td></td><td>Blur</td><td></td><td></td><td></td><td>Weather</td><td></td><td></td><td>Digital</td><td></td><td></td></tr><tr><td>Network</td><td>Error</td><td>Rel.mCEGauss.Shot Impulse</td><td></td><td></td><td></td><td>Defocus Glass Motion Zoom</td><td></td><td></td><td></td><td>SnowFrost FogBright</td><td></td><td></td><td></td><td></td><td>Contrast Elastic Pixel JPEG</td><td></td></tr><tr><td>AlexNet</td><td>43.5</td><td>100.0</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100100100</td><td></td><td></td><td>100</td><td>100</td><td>100</td><td>100100</td></tr><tr><td>SqueezeNet</td><td>41.8</td><td>117.9</td><td>118</td><td>116</td><td>114</td><td>104</td><td>110</td><td>106</td><td>105</td><td>106 110 98</td><td></td><td></td><td>101</td><td>100</td><td>126</td><td>129 229</td></tr><tr><td>VGG-11</td><td>31.0</td><td>123.3</td><td>122</td><td>121</td><td>125</td><td>116</td><td>129</td><td>121</td><td>115</td><td>114</td><td>113</td><td>99</td><td>86</td><td>102</td><td>151 161</td><td>174</td></tr><tr><td>VGG-19</td><td>27.6</td><td>122.9</td><td>114</td><td>117</td><td>122</td><td>118</td><td>136</td><td>123</td><td>122</td><td>114</td><td>111</td><td>88</td><td>82</td><td>98</td><td>165 161</td><td>172</td></tr><tr><td>VGG-19+BN1</td><td>25.8</td><td>111.1</td><td>104</td><td>105</td><td>114</td><td>108</td><td>132</td><td>114</td><td>119</td><td>102</td><td>100</td><td>79</td><td>68</td><td>89</td><td>165 125</td><td>144</td></tr><tr><td>ResNet-18</td><td>30.2</td><td>103.9</td><td>104</td><td>106</td><td>111</td><td>100</td><td>116</td><td>108</td><td>112</td><td>103101</td><td></td><td>89</td><td>67</td><td>87</td><td>133 97</td><td>126</td></tr><tr><td>ResNet-50</td><td>23.9</td><td>105.0</td><td>104</td><td>107</td><td>107</td><td>97</td><td>126</td><td>107</td><td>110</td><td>101</td><td>97</td><td>79</td><td>62</td><td>89</td><td>146 111</td><td>132</td></tr></table>
|
| 304 |
+
|
| 305 |
+
Table 2: Clean Error, Relative mCE, and Relative Corruption Errors values of different corruptions and architectures on IMAGENET-C. All models are trained on clean ImageNet images, not IMAGENET-C images. Here “BN” abbreviates Batch Normalization (Ioffe & Szegedy, 2015).
|
| 306 |
+
|
| 307 |
+
# E FULL PERTURBATION ROBUSTNESS RESULTS
|
| 308 |
+
|
| 309 |
+
IMAGENET-P mFerrors to normali $2 3 . 6 5 \%$ s are in Table 3,easures, we now $3 0 . 0 6 \%$ 5D values are in the value FPAlexPertu $9 . 3 0 \%$ . Since we use Aor each corrupti $5 . 9 4 \%$ t. Snow: $1 1 . 9 3 \%$ , Brightness: $4 . 8 9 \%$ , Translate: $1 1 . 0 1 \%$ , Rotate: $1 3 . 1 0 \%$ , Tilt: $7 . 0 5 \%$ , Scale: $2 3 . 5 3 \%$ , Speckle Noise: $1 8 . 6 5 \%$ , Gaussian Blur: $2 . 7 8 \%$ , Spatter: $5 . 0 5 \%$ , Shear: $1 0 . 6 6 \%$ . Also, the uT5DAlexNetPerturbati on values are as follows. Gaussian Noise: 4.77, Shot Noise: 5.76, Motion Blur: 1.93, Zoom Blur: 1.34, Snow: 2.42, Brightness: 1.19, Translate: 2.63, Rotate: 2.95,
|
| 310 |
+
|
| 311 |
+
Tilt: 1.75, Scale: 4.48, Speckle Noise: 3.89, Gaussian Blur: 0.70, Spatter: 1.26, Shear: 2.48.
|
| 312 |
+
|
| 313 |
+
<table><tr><td>Noise</td><td></td><td colspan="3"></td><td colspan="2">Blur</td><td colspan="2">Weather</td><td colspan="3">Digital</td></tr><tr><td>Network</td><td>Error</td><td>mFR</td><td>Gaussian</td><td>Shot</td><td>Motion</td><td>Zoom</td><td>Snow Bright</td><td>Translate</td><td>Rotate</td><td>Tilt</td><td>Scale</td></tr><tr><td>AlexNet</td><td>43.5</td><td>100.0</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100 100</td><td>100</td><td>100</td><td>100</td><td>100</td></tr><tr><td>SqueezeNet</td><td>41.8</td><td>112.6</td><td>147</td><td>140</td><td>109</td><td>109</td><td>105 110</td><td>101</td><td>103</td><td>109</td><td>93</td></tr><tr><td>VGG-11</td><td>31.0</td><td>74.9</td><td>89</td><td>90</td><td>85</td><td>84</td><td>80 76</td><td>52</td><td>64</td><td>69</td><td>59</td></tr><tr><td>VGG-19</td><td>27.6</td><td>66.9</td><td>75</td><td>76</td><td>82</td><td>84</td><td>73 74</td><td>41</td><td>54</td><td>60</td><td>49</td></tr><tr><td>VGG-19+BN</td><td>25.8</td><td>65.1</td><td>67</td><td>66</td><td>75</td><td>86</td><td>70 72</td><td>45</td><td>56</td><td>56</td><td>51</td></tr><tr><td>ResNet-18</td><td>30.2</td><td>72.8</td><td>74</td><td>73</td><td>75</td><td>85</td><td>75 78</td><td>63</td><td>66</td><td>73</td><td>66</td></tr><tr><td>ResNet-50</td><td>23.9</td><td>58.0</td><td>59</td><td>58</td><td>64</td><td>72</td><td>63 62</td><td>44</td><td>52</td><td>57</td><td>48</td></tr></table>
|
| 314 |
+
|
| 315 |
+
Table 3: Flip Rates and the mFR values of different perturbations and architectures on IMAGENET-P. All models are trained on clean ImageNet images, not IMAGENET-P images. Here “BN” abbreviates Batch Normalization.
|
| 316 |
+
Table 4: Top-5 Distances and the mT5D values of different perturbations and architectures on IMAGENET-P.
|
| 317 |
+
|
| 318 |
+
<table><tr><td></td><td></td><td></td><td colspan="2">Noise</td><td colspan="2">Blur</td><td colspan="2">Weather</td><td colspan="4">Digital</td></tr><tr><td>Network</td><td>Error</td><td>mT5D</td><td>Gaussian</td><td>Shot</td><td>Motion</td><td>Zoom</td><td>Snow</td><td>Bright</td><td>Translate</td><td>Rotate</td><td>Tilt</td><td>Scale</td></tr><tr><td>AlexNet</td><td>43.5</td><td>100.0</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td></tr><tr><td>SqueezeNet</td><td>41.8</td><td>112.9</td><td>139</td><td>133</td><td>109</td><td>111</td><td>107</td><td>112</td><td>104</td><td>106</td><td>111</td><td>98</td></tr><tr><td>VGG-11</td><td>31.0</td><td>83.9</td><td>98</td><td>97</td><td>93</td><td>90</td><td>87</td><td>85</td><td>63</td><td>75</td><td>79</td><td>71</td></tr><tr><td>VGG-19</td><td>27.6</td><td>78.6</td><td>89</td><td>88</td><td>92</td><td>93</td><td>82</td><td>86</td><td>53</td><td>67</td><td>74</td><td>62</td></tr><tr><td>VGG-19+BN</td><td>25.8</td><td>80.5</td><td>85</td><td>82</td><td>90</td><td>97</td><td>84</td><td>88</td><td>61</td><td>72</td><td>80</td><td>66</td></tr><tr><td>ResNet-18</td><td>30.2</td><td>87.0</td><td>89</td><td>87</td><td>89</td><td>95</td><td>88</td><td>92</td><td>78</td><td>82</td><td>89</td><td>80</td></tr><tr><td>ResNet-50</td><td>23.9</td><td>78.3</td><td>82</td><td>79</td><td>84</td><td>89</td><td>80</td><td>84</td><td>64</td><td>73</td><td>80</td><td>67</td></tr></table>
|
| 319 |
+
|
| 320 |
+
# F INFORMATIVE ROBUSTNESS ENHANCEMENT ATTEMPTS
|
| 321 |
+
|
| 322 |
+
Stability Training. Stability training is a technique to improve the robustness of deep networks (Zheng et al., 2016). The method’s creators found that training on images corrupted with noise can lead to underfitting, so they instead propose minimizing the cross-entropy from the noisy image’s softmax distribution to the softmax of the clean image. The authors evaluated performance on images with subtle differences and suggested that the method provides additional robustness to JPEG corruptions. We fine-tune a ResNet-50 with stability training for five epochs. For training with noisy images, we corrupt images with uniform noise, where the maximum and minimum of the uniform noise is tuned over $\{ 0 . 0 1 , 0 . 0 5 , 0 . 1 \}$ , and the stability weight is tuned over $\{ 0 . 0 1 , 0 . 0 5 , 0 . 1 \}$ . Across all noise strengths and stability weight combinations, the models with stability training tested on IMAGENET-C have a larger mCEs than the baseline ResNet-50’s mCE. Even on unseen noise corruptions, stability training does not increase robustness. However, the perturbation robustness slightly improves. The best model according to the IMAGENET-P validation set has an mFR of $5 7 \%$ , while the original ResNet’s mFR is $5 8 \%$ . An upshot of this failure is that benchmarking robustness-enhancing techniques requires a diverse test set.
|
| 323 |
+
|
| 324 |
+
Image Denoising. An approach orthogonal to modifying model representations is to improve the inputs using image restoration techniques. Although general image restoration techniques are not yet mature, denoising restoration techniques are not. We thus attempt restore an image with the denoising technique called non-local means (Buades & Coll, 2005). The amount of denoising applied is determined by the noise estimation technique of Donoho & Johnstone (1993). Therefore clean images receive should nearly no modifications from the restoration method, while noisy images should undergo considerable restoration. We found that denoising increased the mCE from $7 6 . 7 \%$ to $8 2 . 1 \%$ . A plausible account is that the non-local means algorithm striped the images of their subtle details even when images lacked noise, despite having the non-local means algorithm governed by the noise estimate. Therefore, the gains in noise robustness were wiped away by subtle blurs to images with other types of corruptions, showing that targeted image restoration can prove harmful for robustness.
|
| 325 |
+
|
| 326 |
+
10-Crop Classification. Viewing an object at several different locations may give way to a more stable prediction. Having this intuition in mind, we perform 10-crop classification. 10-crop classification is executed by cropping all four corners and cropping the center of an image. These crops and their horizontal mirrors are processed through a network to produce 10 predicted class probability distributions. We average these distributions to compute the final prediction. Of course, a prediction informed by 10-crops rather than a single central crop is more accurate. Ideally, this revised prediction should be more robust too. However, the gains in mCE do not outpace the gains in accuracy on a ResNet-50. In all, 10-crop classification is a computationally expensive option which contributes to classification accuracy but not noticeably to robustness.
|
| 327 |
+
|
| 328 |
+
Smaller Models. All else equal, “simpler” models often generalize better, and “simplicity” frequently translates to model size. Accordingly, smaller models may be more robust. We test this hypothesis with CondenseNets (Huang et al., 2017a). A CondenseNet attains its small size via sparse convolutions and pruned filter weights. An off-the-shelf CondenseNet $C = G = 4 ,$ ) obtains a $2 6 . 3 \%$ error rate and a $8 0 . 8 \%$ mCE. On the whole, this CondenseNet is slightly less robust than larger models of similar accuracy. Even more pruning and sparsification yields a CondenseNet ( $C = G = 8$ ) with both deteriorated performance $2 8 . 9 \%$ error rate) and robustness $8 4 . 6 \%$ mCE). Here again robustness is worse than larger model robustness. Though models fashioned for mobile devices are smaller and in some sense simpler, this does not improve robustness.
|
| 329 |
+
|
| 330 |
+
# G A SEPARATE TYPE OF ROBUSTNESS
|
| 331 |
+
|
| 332 |
+
Another goal for machine learning is to learn the fundamental structure of categories. Broad categories, such as “bird,” have many subtypes, such as “cardinal” or “bluejay.” Humans can observe previously unseen bird species yet still know that they are birds. A test of learned fundamental structure beyond superficial features is subtype robustness. In subtype robustness we test generalization to unseen subtypes which share share essential characteristics of a broader type. We repurpose the ImageNet-22K dataset for a closer investigation into subtype robustness.
|
| 333 |
+
|
| 334 |
+
Subtype Robustness. A natural image dataset with a hierarchical taxonomy and numerous types and subtypes is ImageNet-22K, an ImageNet-1K superset. In this subtype robustness experiment, we manually select 25 broad types from ImageNet-22K, listed in the next paragraph. Each broad type has many subtypes. We call a subtype “seen” if and only if it is in ImageNet-1K and a subtype of one of the 25 broad types. The subtype is “unseen” if and only if it is a subtype of the 25 broad types and is from ImageNet-22K but not ImageNet-1K. In this experiment, the correct classification decision for an image of a subtype is the broad type label. We take pre-trained ImageNet-1K classifiers which have not trained on unseen subtypes. Next we fine-tune the last layer of these pre-trained ImageNet-1K classifiers on seen subtypes so that they predict one of 25 broad types. Then, we test the accuracy on images of seen
|
| 335 |
+
|
| 336 |
+

|
| 337 |
+
Figure 9: ImageNet classifiers and their robustness to unseen subtypes. Unseen subtypes of known broad types are noticeably harder for classifiers.
|
| 338 |
+
|
| 339 |
+
subtypes and on images of unseen subtypes. Accuracy on unseen subtypes is our measure of subtype robustness. Seen and unseen accuracies are shown in Figure 9, while the ImageNet-1K classification accuracy before fine-tuning is on the horizontal axis. Despite only having 25 classes and having trained on millions of images, these classifiers demonstrate a subtype robustness performance gap that should be far less pronounced. We also observe that the architectures proposed so far hardly deviate from the trendline.
|
| 340 |
+
|
| 341 |
+
The 25 broad types which we selected from ImageNet are as follows. Amphibian (n01627424), Appliance (n02729837), Aquatic Mammal (n02062017), Bird (n01503061), Bear (n02131653), Beverage (n07881800), Big cat (n02127808), Building (n02913152), Cat (n02121620), Clothing (n03051540), Dog (n02084071), Electronic Equipment (n03278248), Fish (n02512053), Footwear (n03380867), Fruit (n13134947), Fungus (n12992868), Geological Formation (n09287968), Hoofed Animal (n02370806), Insect (n02159955), Musical Instrument (n03800933), Primate (n02469914), Reptile (n01661091), Utensil (n04516672), Vegetable (n07707451), Vehicle (n04576211).
|
parse/train/HJz6tiCqYm/HJz6tiCqYm_content_list.json
ADDED
|
@@ -0,0 +1,1879 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "BENCHMARKING NEURAL NETWORK ROBUSTNESS TO COMMON CORRUPTIONS AND PERTURBATIONS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
790,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Dan Hendrycks University of California, Berkeley hendrycks@berkeley.edu ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
170,
|
| 20 |
+
408,
|
| 21 |
+
212
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Thomas Dietterich Oregon State University tgd@oregonstate.edu ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
526,
|
| 30 |
+
170,
|
| 31 |
+
714,
|
| 32 |
+
212
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
250,
|
| 43 |
+
544,
|
| 44 |
+
263
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "In this paper we establish rigorous benchmarks for image classifier robustness. Our first benchmark, IMAGENET-C, standardizes and expands the corruption robustness topic, while showing which classifiers are preferable in safety-critical applications. Then we propose a new dataset called IMAGENET-P which enables researchers to benchmark a classifier’s robustness to common perturbations. Unlike recent robustness research, this benchmark evaluates performance on common corruptions and perturbations not worst-case adversarial perturbations. We find that there are negligible changes in relative corruption robustness from AlexNet classifiers to ResNet classifiers. Afterward we discover ways to enhance corruption and perturbation robustness. We even find that a bypassed adversarial defense provides substantial common perturbation robustness. Together our benchmarks may aid future work toward networks that robustly generalize. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
281,
|
| 54 |
+
766,
|
| 55 |
+
448
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
470,
|
| 66 |
+
336,
|
| 67 |
+
486
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "The human vision system is robust in ways that existing computer vision systems are not (Recht et al., 2018; Azulay & Weiss, 2018). Unlike current deep learning classifiers (Krizhevsky et al., 2012; He et al., 2015; Xie et al., 2016), the human vision system is not fooled by small changes in query images. Humans are also not confused by many forms of corruption such as snow, blur, pixelation, and novel combinations of these. Humans can even deal with abstract changes in structure and style. Achieving these kinds of robustness is an important goal for computer vision and machine learning. It is also essential for creating deep learning systems that can be deployed in safety-critical applications. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
498,
|
| 77 |
+
825,
|
| 78 |
+
597
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Most work on robustness in deep learning methods for vision has focused on the important challenges of robustness to adversarial examples (Szegedy et al., 2014; Carlini & Wagner, 2017; 2016), unknown unknowns (Hendrycks et al., 2019; Hendrycks & Gimpel, 2017b; Liu et al., 2018), and model or data poisoning (Steinhardt et al., 2017; Hendrycks et al., 2018). In contrast, we develop and validate datasets for two other forms of robustness. Specifically, we introduce the IMAGETNET-C dataset for input corruption robustness and the IMAGENET-P dataset for input perturbation robustness. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
603,
|
| 88 |
+
825,
|
| 89 |
+
686
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "To create IMAGENET-C, we introduce a set of 75 common visual corruptions and apply them to the ImageNet object recognition challenge (Deng et al., 2009). We hope that this will serve as a general dataset for benchmarking robustness to image corruptions and prevent methodological problems such as moving goal posts and result cherry picking. We evaluate the performance of current deep learning systems and show that there is wide room for improvement on IMAGENET-C. We also introduce a total of three methods and architectures that improve corruption robustness without losing accuracy. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
694,
|
| 99 |
+
825,
|
| 100 |
+
777
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "To create IMAGENET-P, we introduce a set of perturbed or subtly differing ImageNet images. Using metrics we propose, we measure the stability of the network’s predictions on these perturbed images. Although these perturbations are not chosen by an adversary, currently existing networks exhibit surprising instability on common perturbations. Then we then demonstrate that approaches which enhance corruption robustness can also improve perturbation robustness. For example, some recent architectures can greatly improve both types of robustness. More, we show that the Adversarial Logit Pairing $\\ell _ { \\infty }$ adversarial example defense can yield substantial robustness gains on diverse and common perturbations. By defining and benchmarking perturbation and corruption robustness, we facilitate research that can be overcome by future networks which do not rely on spurious correlations or cues inessential to the object’s class. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
785,
|
| 110 |
+
825,
|
| 111 |
+
924
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "2 RELATED WORK ",
|
| 118 |
+
"text_level": 1,
|
| 119 |
+
"bbox": [
|
| 120 |
+
176,
|
| 121 |
+
102,
|
| 122 |
+
344,
|
| 123 |
+
117
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "Adversarial Examples. An adversarial image is a clean image perturbed by a small distortion carefully crafted to confuse a classifier. These deceptive distortions can occasionally fool black-box classifiers (Kurakin et al., 2017). Algorithms have been developed that search for the smallest additive distortions in RGB space that are sufficient to confuse a classifier (Carlini et al., 2017). Thus adversarial distortions serve as type of worst-case analysis for network robustness. Its popularity has often led “adversarial robustness” to become interchangeable with “robustness” in the literature (Bastani et al., 2016; Rauber et al., 2017). In the literature, new defenses (Lu et al., 2017; Papernot et al., 2017; Metzen et al., 2017; Hendrycks & Gimpel, 2017a) often quickly succumb to new attacks (Evtimov et al., 2017; Carlini & Wagner, 2017; 2016), with some exceptions for perturbations on small images (Schott et al., 2018; Madry et al., 2018). For some simple datasets, the existence of any classification error ensures the existence of adversarial perturbations of size $\\mathcal { O } ( d ^ { - 1 / 2 } )$ , $d$ the input dimensionality (Gilmer et al., 2018b). For some simple models, adversarial robustness requires an increase in the training set size that is polynomial in $d$ (Schmidt et al., 2018). Gilmer et al. (2018a) suggest modifying the problem of adversarial robustness itself for increased real-world applicability. ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
173,
|
| 132 |
+
133,
|
| 133 |
+
825,
|
| 134 |
+
329
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Robustness in Speech. Speech recognition research emphasizes robustness to common corruptions rather than worst-case, adversarial corruptions (Li et al., 2014; Mitra et al., 2017). Common acoustic corruptions (e.g., street noise, background chatter, wind) receive greater focus than adversarial audio, because common corruptions are ever-present and unsolved. There are several popular datasets containing noisy test audio (Hirsch & Pearce, 2000; Hirsch, 2007). Robustness in noisy environments requires robust architectures, and some research finds convolutional networks more robust than fully connected networks (Abdel-Hamid et al., 2013). Additional robustness has been achieved through pre-processing techniques such as standardizing the statistics of the input (Liu et al., 1993; Torre et al., 2005; Harvilla & Stern, 2012; Kim & Stern, 2016). ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
335,
|
| 144 |
+
825,
|
| 145 |
+
462
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "ConvNet Fragility Studies. Several studies demonstrate the fragility of convolutional networks on simple corruptions. For example, Hosseini et al. (2017) apply impulse noise to break Google’s Cloud Vision API. Using Gaussian noise and blur, Dodge & Karam (2017b) demonstrate the superior robustness of human vision to convolutional networks, even after networks are fine-tuned on Gaussian noise or blur. Geirhos et al. (2017) compare networks to humans on noisy and elastically deformed images. They find that fine-tuning on specific corruptions does not generalize and that classification error patterns underlying network and human predictions are not similar. Temel et al. (2017; 2018); Temel & AlRegib (2018) propose different corrupted datasets for object and traffic sign recognition. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
173,
|
| 154 |
+
468,
|
| 155 |
+
825,
|
| 156 |
+
579
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Robustness Enhancements. In an effort to reduce classifier fragility, Vasiljevic et al. (2016) finetune on blurred images. They find it is not enough to fine-tune on one type of blur to generalize to other blurs. Furthermore, fine-tuning on several blurs can marginally decrease performance. Zheng et al. (2016) also find that fine-tuning on noisy images can cause underfitting, so they encourage the noisy image softmax distribution to match the clean image softmax. Dodge & Karam (2017a) address underfitting via a mixture of corruption-specific experts assuming corruptions are known beforehand. ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
585,
|
| 166 |
+
825,
|
| 167 |
+
670
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "3 CORRUPTIONS, PERTURBATIONS, AND ADVERSARIAL PERTURBATIONS ",
|
| 174 |
+
"text_level": 1,
|
| 175 |
+
"bbox": [
|
| 176 |
+
173,
|
| 177 |
+
690,
|
| 178 |
+
795,
|
| 179 |
+
707
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "text",
|
| 185 |
+
"text": "We now define corruption and perturbation robustness and distinguish them from adversarial perturbation robustness. To begin, we consider a classifier $f : \\mathcal { X } \\mathcal { Y }$ trained on samples from distribution $\\mathcal { D }$ , a set of corruption functions $C$ , and a set of perturbation functions $\\mathcal { E }$ . We let $\\mathbb { P } _ { C } ( c ) , \\mathbb { P } _ { \\mathcal { E } } ( \\varepsilon )$ approximate the real-world frequency of these corruptions and perturbations. Most classifiers are judged by their accuracy on test queries drawn from $\\mathcal { D }$ , i.e., $\\mathbb { P } _ { ( x , y ) \\sim \\mathcal { D } } ( f ( x ) = y )$ . Yet in a vast range of cases the classifier is tasked with classifying low-quality or corrupted inputs. In view of this, we suggest also computing the classifier’s corruption robustness $\\mathbb { E } _ { c \\sim C } [ \\mathbb { P } _ { ( { \\boldsymbol x } , { \\boldsymbol y } ) \\sim \\mathcal { D } } ( f ( c ( { \\boldsymbol x } ) = { \\boldsymbol y } ) ) ]$ . This contrasts with a popular notion of adversarial robustness, often formulated $\\operatorname* { m i n } _ { \\| \\delta \\| _ { p } < b } \\mathbb { P } _ { ( { \\boldsymbol { x } } , { \\boldsymbol { y } } ) \\sim \\mathcal { D } } ( f ( { \\boldsymbol { x } } + { \\boldsymbol { \\delta } } ) = { \\boldsymbol { y } } )$ , $b$ a small budget. Thus, corruption robustness measures the classifier’s average-case performance on corruptions $C$ , while adversarial robustness measures the worst-case performance on small, additive, classifier-tailored perturbations. ",
|
| 186 |
+
"bbox": [
|
| 187 |
+
173,
|
| 188 |
+
719,
|
| 189 |
+
825,
|
| 190 |
+
875
|
| 191 |
+
],
|
| 192 |
+
"page_idx": 1
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"type": "text",
|
| 196 |
+
"text": "Average-case performance on small, general, classifier-agnostic perturbations motivates us to define perturbation robustness, namely $\\mathbb { E } _ { \\varepsilon \\sim \\varepsilon } [ \\mathbb { P } _ { ( x , y ) \\sim \\mathcal { D } } ( f ( \\varepsilon ( \\bar { x ) } ) = f ( x ) ) ]$ ]. Consequently, in measuring perturbation robustness, we track the classifier’s prediction stability, reliability, or consistency in the face of minor input changes. Now in order to approximate $C , \\mathcal { E }$ and these robustness measures, we designed a set of corruptions and perturbations which are frequently encountered in natural images. We will refer to these as “common” corruptions and perturbations. These common corruptions and perturbations are available in the form of IMAGENET-C and IMAGENET-P. ",
|
| 197 |
+
"bbox": [
|
| 198 |
+
176,
|
| 199 |
+
882,
|
| 200 |
+
823,
|
| 201 |
+
924
|
| 202 |
+
],
|
| 203 |
+
"page_idx": 1
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"type": "image",
|
| 207 |
+
"img_path": "images/660a2d4193294467ceea562bde8433a94f413c493acd8b5013f5737a8cf4af1f.jpg",
|
| 208 |
+
"image_caption": [
|
| 209 |
+
"Figure 1: Our IMAGENET-C dataset consists of 15 types of algorithmically generated corruptions from noise, blur, weather, and digital categories. Each type of corruption has five levels of severity, resulting in 75 distinct corruptions. See different severity levels in Appendix B. "
|
| 210 |
+
],
|
| 211 |
+
"image_footnote": [],
|
| 212 |
+
"bbox": [
|
| 213 |
+
178,
|
| 214 |
+
99,
|
| 215 |
+
818,
|
| 216 |
+
452
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 2
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "",
|
| 223 |
+
"bbox": [
|
| 224 |
+
174,
|
| 225 |
+
530,
|
| 226 |
+
825,
|
| 227 |
+
585
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "4 THE IMAGENET-C AND IMAGENET-P ROBUSTNESS BENCHMARKS ",
|
| 234 |
+
"text_level": 1,
|
| 235 |
+
"bbox": [
|
| 236 |
+
173,
|
| 237 |
+
602,
|
| 238 |
+
758,
|
| 239 |
+
618
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "4.1 THE DATA OF IMAGENET-C AND IMAGENET-P ",
|
| 246 |
+
"text_level": 1,
|
| 247 |
+
"bbox": [
|
| 248 |
+
174,
|
| 249 |
+
632,
|
| 250 |
+
539,
|
| 251 |
+
647
|
| 252 |
+
],
|
| 253 |
+
"page_idx": 2
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"type": "text",
|
| 257 |
+
"text": "IMAGENET-C Design. The IMAGENET-C benchmark consists of 15 diverse corruption types applied to validation images of ImageNet. The corruptions are drawn from four main categories— noise, blur, weather, and digital—as shown in Figure 1. Research that improves performance on this benchmark should indicate general robustness gains, as the corruptions are diverse and numerous. Each corruption type has five levels of severity since corruptions can manifest themselves at varying intensities. Appendix A gives an example of the five different severity levels for impulse noise. Real-world corruptions also have variation even at a fixed intensity. To simulate these, we introduce variation for each corruption when possible. For example, each fog cloud is unique to each image. These algorithmically generated corruptions are applied to the ImageNet (Deng et al., 2009) validation images to produce our corruption robustness dataset IMAGENET-C. The dataset can be downloaded or re-created by visiting https://github.com/hendrycks/robustness. IMAGENET-C images are saved as lightly compressed JPEGs; this implies an image corrupted by Gaussian noise is also slightly corrupted by JPEG compression. Our benchmark tests networks with IMAGENET-C images, but networks should not be trained on these images. Networks should be trained on datasets such as ImageNet and not be trained on IMAGENET-C corruptions. To enable further experimentation, we designed an extra corruption type for each corruption category (Appendix B), and we provide CIFAR-10-C, TINY IMAGENET-C, IMAGENET $6 4 \\times 6 4 – \\mathrm { C }$ , and Inception-sized editions. Overall, the IMAGENET-C dataset consists of 75 corruptions, all applied to ImageNet validation images for testing a pre-existing network. ",
|
| 258 |
+
"bbox": [
|
| 259 |
+
174,
|
| 260 |
+
659,
|
| 261 |
+
826,
|
| 262 |
+
924
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 2
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "Common Corruptions. The first corruption type is Gaussian noise. This corruption can appear in low-lighting conditions. Shot noise, also called Poisson noise, is electronic noise caused by the discrete nature of light itself. Impulse noise is a color analogue of salt-and-pepper noise and can be caused by bit errors. Defocus blur occurs when an image is out of focus. Frosted Glass Blur appears with “frosted glass” windows or panels. Motion blur appears when a camera is moving quickly. Zoom blur occurs when a camera moves toward an object rapidly. Snow is a visually obstructive form of precipitation. Frost forms when lenses or windows are coated with ice crystals. Fog shrouds objects and is rendered with the diamond-square algorithm. Brightness varies with daylight intensity. Contrast can be high or low depending on lighting conditions and the photographed object’s color. Elastic transformations stretch or contract small image regions. Pixelation occurs when upsampling a lowresolution image. JPEG is a lossy image compression format which introduces compression artifacts. ",
|
| 269 |
+
"bbox": [
|
| 270 |
+
174,
|
| 271 |
+
103,
|
| 272 |
+
825,
|
| 273 |
+
256
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 3
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "IMAGENET-P Design. The second benchmark that we propose tests the classifier’s perturbation robustness. Models lacking in perturbation robustness produce erratic predictions which undermines user trust. When perturbations have a high propensity to change the model’s response, then perturbations could also misdirect or destabilize iterative image optimization procedures appearing in style transfer (Gatys et al., 2016), decision explanations (Fong & Vedaldi, 2017), feature visualization (Olah et al., 2017), and so on. Like IMAGENET-C, IMAGENETP consists of noise, blur, weather, and digital distortions. Also as before, the dataset has validation perturbations; has difficulty levels; has CIFAR-10, Tiny ImageNet, ImageNet $6 4 \\times 6 4$ standard, and Inception-sized editions; and has been designed for benchmarking not training networks. IMAGENET-P departs from IMAGENET-C by having perturbation sequences generated from each ImageNet validation image; examples are in Figure 2. Each sequence contains more than 30 frames, so we counteract an increase in dataset size and evaluation time by using only 10 common perturbations. ",
|
| 280 |
+
"bbox": [
|
| 281 |
+
176,
|
| 282 |
+
263,
|
| 283 |
+
581,
|
| 284 |
+
526
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 3
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "Common Perturbations. Appearing more subtly than the corruption from IMAGENET-C, the Gaussian noise perturbation sequence begins with the clean ImageNet image. The following frames in the sequence consist in the same image but with minute Gaussian noise perturbations applied. This sequence design is similar for the shot noise perturbation sequence. However the remaining perturbation sequences have temporality, so that each frame of the sequence is a perturbation of the previous frame. Since each perturbation is small, repeated application of a perturbation does not bring the image far out-of-distribution. For example, an IMAGENET-P translation perturbation sequence shows a clean ImageNet image sliding from right to left one pixel at a time; with each perturbation of the pixel locations, the resulting frame is still of high quality. The perturbation sequences with temporality are created with motion blur, zoom blur, snow, brightness, translate, rotate, tilt (viewpoint variation through minor 3D rotations), and scale perturbations. ",
|
| 291 |
+
"bbox": [
|
| 292 |
+
174,
|
| 293 |
+
535,
|
| 294 |
+
583,
|
| 295 |
+
645
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 3
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "image",
|
| 301 |
+
"img_path": "images/5eadeb9445cbd05f3b967e8a0ac289ebaec911114710a56d07a556ff265efbd2.jpg",
|
| 302 |
+
"image_caption": [
|
| 303 |
+
"Figure 2: Example frames from the beginning $( T = 0$ ) to end $( T = 3 0$ ) of some Tilt and Brightness perturbation sequences. "
|
| 304 |
+
],
|
| 305 |
+
"image_footnote": [],
|
| 306 |
+
"bbox": [
|
| 307 |
+
593,
|
| 308 |
+
265,
|
| 309 |
+
820,
|
| 310 |
+
560
|
| 311 |
+
],
|
| 312 |
+
"page_idx": 3
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"type": "text",
|
| 316 |
+
"text": "",
|
| 317 |
+
"bbox": [
|
| 318 |
+
174,
|
| 319 |
+
645,
|
| 320 |
+
825,
|
| 321 |
+
728
|
| 322 |
+
],
|
| 323 |
+
"page_idx": 3
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"type": "text",
|
| 327 |
+
"text": "4.2 IMAGENET-C AND IMAGENET-P METRICS AND SETUP ",
|
| 328 |
+
"text_level": 1,
|
| 329 |
+
"bbox": [
|
| 330 |
+
174,
|
| 331 |
+
750,
|
| 332 |
+
593,
|
| 333 |
+
765
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 3
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "text",
|
| 339 |
+
"text": "IMAGENET-C Metrics. Common corruptions such as Gaussian noise can be benign or destructive depending on their severity. In order to comprehensively evaluate a classifier’s robustness to a given type of corruption, we score the classifier’s performance across five corruption severity levels and aggregate these scores. The first evaluation step is to take a trained classifier f, which has not been $E _ { \\mathrm { { c l e a n } } } ^ { f }$ d on IMAGENET-C, and compute the clean dataset top-1 error. The second step is to test the classifier on each corruption type $c$ te. Denote this error raat each level of severity $s$ $( 1 \\le s \\le 5 )$ ). This top-1 error is written $E _ { s , c } ^ { f }$ . Before we aggregate the classifier’s performance across severities and corruption types, we will make error rates more comparable since different corruptions pose different levels of difficulty. For example, fog corruptions often obscure an object’s class more than brightness corruptions. We adjust for the varying difficulties by dividing by AlexNet’s errors, but any baseline will do (even a baseline with $100 \\%$ error rates, corresponding to an average of CEs). This standardized aggregate performance measure is the Corruption Error, computed with the formula ",
|
| 340 |
+
"bbox": [
|
| 341 |
+
174,
|
| 342 |
+
780,
|
| 343 |
+
825,
|
| 344 |
+
924
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 3
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"text": "",
|
| 351 |
+
"bbox": [
|
| 352 |
+
173,
|
| 353 |
+
103,
|
| 354 |
+
823,
|
| 355 |
+
132
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 4
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "equation",
|
| 361 |
+
"img_path": "images/3b668e4002a85a55995eb012169619af005f78e84930ffccc81affe42b17d775.jpg",
|
| 362 |
+
"text": "$$\n\\mathrm { { C E } } _ { c } ^ { f } = \\biggl ( \\sum _ { s = 1 } ^ { 5 } E _ { s , c } ^ { f } \\biggr ) \\bigg / \\biggl ( \\sum _ { s = 1 } ^ { 5 } E _ { s , c } ^ { \\mathrm { A l e x N e t } } \\biggr ) .\n$$",
|
| 363 |
+
"text_format": "latex",
|
| 364 |
+
"bbox": [
|
| 365 |
+
367,
|
| 366 |
+
133,
|
| 367 |
+
629,
|
| 368 |
+
176
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 4
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "text",
|
| 374 |
+
"text": "$\\mathrm { C E } _ { \\mathrm { G a u s s i a n N o i s e } } ^ { f }$ , $\\mathbf { C E } _ { \\mathrm { { S h o t N o i s e } } } ^ { f } , \\dotsc , \\mathbf { C E } _ { \\mathrm { { J P E G } } } ^ { f }$ ion robustness by averag. This results in the mean $C E$ theor $m C E$ orruption Error valuesfor short. ",
|
| 375 |
+
"bbox": [
|
| 376 |
+
173,
|
| 377 |
+
178,
|
| 378 |
+
825,
|
| 379 |
+
209
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 4
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "We now introduce a more nuanced corruption robustness measure. Consider a classifier that withstands most corruptions, so that the gap between the $\\mathrm { m C E }$ and the clean data error is minuscule. Contrast this with a classifier with a low clean error rate which has its error rate spike in the presence of corruptions; this corresponds to a large gap between the mCE and clean data error. It is possible that the former classifier has a larger mCE than the latter, despite the former degrading more gracefully in the presence of corruptions. The amount that the classifier declines on corrupted inputs is given by the formula Relative $\\begin{array} { r } { \\mathbf { \\bar { C } E } _ { c } ^ { f } = \\big ( \\sum _ { s = 1 } ^ { 5 } E _ { s , c } ^ { f } - E _ { \\mathrm { c l e a n } } ^ { f } \\big ) \\big / \\big ( \\sum _ { s = 1 } ^ { 5 } E _ { s , c } ^ { \\mathrm { A l e x N e t } } - E _ { \\mathrm { c l e a n } } ^ { \\mathrm { A l e x N e t } } \\big ) } \\end{array}$ . Averaging these 15 Relative Corruption Errors results in the Relative $m C E$ . This measures the relative robustness or the performance degradation when encountering corruptions. ",
|
| 386 |
+
"bbox": [
|
| 387 |
+
173,
|
| 388 |
+
214,
|
| 389 |
+
826,
|
| 390 |
+
343
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 4
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "IMAGENET-P Metrics. A straightforward approach to estimate $\\mathbb { E } _ { \\varepsilon \\sim \\mathcal { E } } [ \\mathbb { P } _ { ( x , y ) \\sim \\mathcal { D } } ( f ( \\varepsilon ( x ) ) \\neq f ( x ) ) ]$ falls into place when using IMAGENET-P perturbation sequences. Let us denote $m$ perturbation sequences with $\\mathcal { S } = \\{ \\left( x _ { 1 } ^ { ( i ) } , x _ { 2 } ^ { ( i ) } , \\ldots , x _ { n } ^ { ( i ) } \\right) \\bar \\} _ { i = 1 } ^ { m }$ where each sequence is made with perturbation $p$ . The “Flip Probability” of network $f : \\mathcal { X } \\bar { \\{ 1 , 2 , \\dots , 1 0 0 0 \\} }$ on perturbation sequences $s$ is ",
|
| 397 |
+
"bbox": [
|
| 398 |
+
173,
|
| 399 |
+
348,
|
| 400 |
+
826,
|
| 401 |
+
411
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 4
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "equation",
|
| 407 |
+
"img_path": "images/4f2079435ab632fc1f953758d8d83d18b4d8f68402f1e79a75e4d3244a880fa9.jpg",
|
| 408 |
+
"text": "$$\n\\mathrm { F P } _ { p } ^ { f } = \\frac { 1 } { m ( n - 1 ) } \\sum _ { i = 1 } ^ { m } \\sum _ { j = 2 } ^ { n } \\mathbb { 1 } \\left( f \\big ( x _ { j } ^ { ( i ) } \\big ) \\neq f \\big ( x _ { j - 1 } ^ { ( i ) } \\big ) \\right) = \\mathbb { P } _ { x \\sim { \\mathscr { S } } } ( f ( x _ { j } ) \\neq f ( x _ { j - 1 } ) ) .\n$$",
|
| 409 |
+
"text_format": "latex",
|
| 410 |
+
"bbox": [
|
| 411 |
+
236,
|
| 412 |
+
414,
|
| 413 |
+
759,
|
| 414 |
+
455
|
| 415 |
+
],
|
| 416 |
+
"page_idx": 4
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"type": "text",
|
| 420 |
+
"text": "For noise perturbation sequences, which are not temporally related, $x _ { 1 } ^ { ( i ) }$ is clean and $\\boldsymbol { x } _ { j } ^ { ( i ) }$ $( j ~ > ~ 1 )$ are perturbed images of $x _ { 1 } ^ { ( i ) }$ . We can recast the FP formula for noise sequences as $\\begin{array} { r } { \\mathrm { F P } _ { p } ^ { f } = \\frac { 1 } { m ( n - 1 ) } \\sum _ { i = 1 } ^ { m } \\sum _ { j = 2 } ^ { n } \\mathbb { I } \\big ( f \\big ( x _ { j } ^ { ( i ) } \\big ) \\ne f \\big ( x _ { 1 } ^ { ( i ) } \\big ) \\big ) = \\mathbb { P } _ { x \\sim S } ( f ( x _ { j } ) \\ne f ( x _ { 1 } ) \\mid j > 1 ) } \\end{array}$ . As was done with the Corruption Error formula, we now standardize the Flip Probability by the sequence’s difficulty for increased commensurability. We have, then, the “Flip Rate” FRfp = FPfp /FPAlexNetp . Averaging the Flip Rate across all perturbations yields the mean Flip Rate or $m F R$ . We do not define a “relative mFR” since we did not find any natural formulation, nor do we directly use predicted class probabilities due to differences in model calibration (Guo et al., 2017). ",
|
| 421 |
+
"bbox": [
|
| 422 |
+
173,
|
| 423 |
+
457,
|
| 424 |
+
826,
|
| 425 |
+
587
|
| 426 |
+
],
|
| 427 |
+
"page_idx": 4
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "text",
|
| 431 |
+
"text": "When the top-5 predictions are relevant, perturbations should not cause the list of top-5 predictions to shuffle chaotically, nor should classes sporadically vanish from the list. We penalize top-5 inconsistency of this kind with a different measure. Let the ranked predictions of network $f$ on $x$ be the permutation $\\tau ( x ) \\in S _ { 1 0 0 0 }$ . Concretely, if “Toucan” has the label 97 in the output space and “Pelican” has the label 145, and if $f$ on $x$ predicts “Toucan” and “Pelican” to be the most and second-most likely classes, respectively, then $\\tau ( x ) ( 9 7 ) = 1$ and $\\tau ( x ) ( 1 4 4 ) = 2$ . These permutations contain the top-5 predictions, so we use permutations to compare top-5 lists. To do this, we define ",
|
| 432 |
+
"bbox": [
|
| 433 |
+
173,
|
| 434 |
+
592,
|
| 435 |
+
825,
|
| 436 |
+
691
|
| 437 |
+
],
|
| 438 |
+
"page_idx": 4
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"type": "equation",
|
| 442 |
+
"img_path": "images/92f0338f9a2e5aca60b691756ec3878ba37a68a58d11edfa4d4eaeeb88e98bf6.jpg",
|
| 443 |
+
"text": "$$\nd ( \\tau ( x ) , \\tau ( x ^ { \\prime } ) ) = \\sum _ { i = 1 } ^ { 5 } \\sum _ { j = \\operatorname* { m i n } \\{ i , \\sigma ( i ) \\} + 1 } ^ { \\operatorname* { m a x } \\{ i , \\sigma ( i ) \\} } \\mathbb { 1 } ( 1 \\leq j - 1 \\leq 5 )\n$$",
|
| 444 |
+
"text_format": "latex",
|
| 445 |
+
"bbox": [
|
| 446 |
+
315,
|
| 447 |
+
691,
|
| 448 |
+
683,
|
| 449 |
+
739
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 4
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "text",
|
| 455 |
+
"text": "where $\\sigma = ( \\tau ( x ) ) ^ { - 1 } \\tau ( x ^ { \\prime } )$ . If the top-5 predictions represented within $\\tau ( x )$ and $\\tau ( x ^ { \\prime } )$ are identical, then $d ( \\tau ( x ) , \\tau ( x ^ { \\prime } ) ) = 0$ . More examples of $d$ on several permutations are in Appendix C. Comparing the top-5 predictions across entire perturbation sequences results in the unstandardized Top-5 Distance $\\begin{array} { r } { \\mathfrak { u } \\mathrm { T } 5 \\mathbf { D } _ { p } ^ { f } = \\frac { 1 } { m ( n - 1 ) } \\sum _ { i = 1 } ^ { m } \\sum _ { j = 2 } ^ { n } d ( \\tau ( x _ { j } ) , \\tau ( x _ { j - 1 } ) ) = \\mathbb { P } _ { x \\sim \\mathcal { S } } ( d ( \\tau ( x _ { j } ) , \\tau ( x _ { j - 1 } ) ) , \\tau ( x _ { j - 1 } ) ) . } \\end{array}$ . For noise perturbation sequences, we have $\\mathsf { u T 5 D } _ { p } ^ { f } \\ : = \\ : \\mathbb { E } _ { x \\sim { \\cal S } } [ d ( \\tau ( x _ { j } ) , \\tau ( x _ { 1 } ) ) \\mid j$ > 1]. Once the uT5D is standardized, we have the Top-5 Distance $\\mathrm { T } 5 \\mathrm { D } _ { p } ^ { f } \\ = \\ \\mathrm { u T } 5 \\mathrm { D } _ { p } ^ { f } / \\mathrm { u T } 5 \\mathrm { D } _ { p } ^ { \\mathrm { A l e x N e t } }$ . The T5Ds averaged together correspond to the mean Top-5 Distance or $m T 5 D$ . ",
|
| 456 |
+
"bbox": [
|
| 457 |
+
173,
|
| 458 |
+
742,
|
| 459 |
+
826,
|
| 460 |
+
852
|
| 461 |
+
],
|
| 462 |
+
"page_idx": 4
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"type": "text",
|
| 466 |
+
"text": "Preserving Metric Validity. The goal of IMAGENET-C and IMAGENET-P is to evaluate the robustness of machine learning algorithms on novel corruptions and perturbations. Humans are able to generalize to novel corruptions quite well; for example, they can easily deal with new Instagram filters. Likewise for perturbations; humans relaxing in front of an undulating ocean do not give turbulent accounts of the scenery before them. Hence, we propose the following protocol. The image recognition network should be trained on the ImageNet training set and on whatever other training sets the investigator wishes to include. Researchers should clearly state whether they trained on these corruptions or perturbations; however, this training strategy is discouraged (see Section 2). We allow training with other distortions (e.g., uniform noise) and standard data augmentation (i.e., cropping, mirroring), even though cropping overlaps with translations. Then the resulting trained model should be evaluated on IMAGENET-C or IMAGENET-P using the above metrics. Optionally, researchers can test with the separate set of validation corruptions and perturbations we provide for IMAGENET-C and IMAGENET-P. ",
|
| 467 |
+
"bbox": [
|
| 468 |
+
174,
|
| 469 |
+
857,
|
| 470 |
+
826,
|
| 471 |
+
915
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 4
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "image",
|
| 477 |
+
"img_path": "images/0ae51795bbaa947988dcc03ee415e7c0850b08ccc5c4917ef642f8723b53f965.jpg",
|
| 478 |
+
"image_caption": [
|
| 479 |
+
"Figure 3: Robustness (mCE) and Relative mCE IMAGENET-C values. Relative mCE values suggest robustness in itself declined from AlexNet to ResNet. “BN” abbreviates Batch Normalization. "
|
| 480 |
+
],
|
| 481 |
+
"image_footnote": [],
|
| 482 |
+
"bbox": [
|
| 483 |
+
173,
|
| 484 |
+
82,
|
| 485 |
+
483,
|
| 486 |
+
280
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 5
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "image",
|
| 492 |
+
"img_path": "images/6f5e6c2c82e059e09dc82a275eba0929fb7fcf91d2eb6271011fc6dbb29ea191.jpg",
|
| 493 |
+
"image_caption": [
|
| 494 |
+
"Figure 4: Perturbation robustness of various architectures as measured by the mT5D on IMAGENET-P. Observe that corruption and perturbation robustness track distinct concepts. "
|
| 495 |
+
],
|
| 496 |
+
"image_footnote": [],
|
| 497 |
+
"bbox": [
|
| 498 |
+
509,
|
| 499 |
+
83,
|
| 500 |
+
813,
|
| 501 |
+
279
|
| 502 |
+
],
|
| 503 |
+
"page_idx": 5
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"type": "table",
|
| 507 |
+
"img_path": "images/7d85f262f231c5f9fd2823ba93b0e96b772157391914641fccd37e851318f236.jpg",
|
| 508 |
+
"table_caption": [],
|
| 509 |
+
"table_footnote": [
|
| 510 |
+
"Table 1: Clean Error, mCE, and Corruption Error values of different corruptions and architectures on IMAGENET-C. The mCE value is the mean Corruption Error of the corruptions in Noise, Blur, Weather, and Digital columns. Models are trained only on clean ImageNet images. "
|
| 511 |
+
],
|
| 512 |
+
"table_body": "<table><tr><td></td><td></td><td></td><td></td><td>Noise</td><td></td><td></td><td>Blur</td><td></td><td></td><td></td><td>Weather</td><td></td><td></td><td></td><td>Digital</td><td></td></tr><tr><td>Network</td><td>Error</td><td>mCE</td><td>Gauss.Shot Impulse</td><td></td><td></td><td></td><td>Defocus Glass Motion Zoom</td><td></td><td></td><td>SnowFrostFogBright</td><td></td><td></td><td></td><td></td><td>Contrast Elastic Pixel JPEG</td><td></td></tr><tr><td>AlexNet</td><td>43.5</td><td>100.0</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>1001 100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td></tr><tr><td>SqueezeNet</td><td>41.8</td><td>104.4</td><td>107</td><td>106</td><td>105</td><td>100</td><td>103</td><td>101</td><td>100</td><td>101</td><td>103 97</td><td>97</td><td></td><td>98</td><td>106 109</td><td>134</td></tr><tr><td>VGG-11</td><td>31.0</td><td>93.5</td><td>97</td><td>97</td><td>100</td><td>92</td><td>99</td><td>93</td><td>91</td><td>92</td><td>91 84</td><td>75</td><td>86</td><td>97</td><td>107</td><td>100</td></tr><tr><td>VGG-19</td><td>27.6</td><td>88.9</td><td>89</td><td>91</td><td>95</td><td>89</td><td>98</td><td>90</td><td>90</td><td>89</td><td>86 75</td><td>68</td><td>80</td><td>97</td><td>102</td><td>94</td></tr><tr><td>VGG-19+BN</td><td>25.8</td><td>81.6</td><td>82</td><td>83</td><td>88</td><td>82</td><td>94</td><td>84</td><td>86</td><td>80</td><td>78 69</td><td>61</td><td>74</td><td>94</td><td>85</td><td>83</td></tr><tr><td>ResNet-18</td><td>30.2</td><td>84.7</td><td>87</td><td>88</td><td>91</td><td>84</td><td>91</td><td>87</td><td>89</td><td>86</td><td>84 78</td><td>69</td><td>78</td><td>90</td><td>80</td><td>85</td></tr><tr><td>ResNet-50</td><td>23.9</td><td>76.7</td><td>80</td><td>82</td><td>83</td><td>75</td><td>89</td><td>78</td><td>80</td><td>78</td><td>75 66</td><td>57</td><td>71</td><td>85</td><td>77</td><td>77</td></tr></table>",
|
| 513 |
+
"bbox": [
|
| 514 |
+
173,
|
| 515 |
+
359,
|
| 516 |
+
826,
|
| 517 |
+
477
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 5
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "",
|
| 524 |
+
"bbox": [
|
| 525 |
+
174,
|
| 526 |
+
547,
|
| 527 |
+
826,
|
| 528 |
+
660
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 5
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "text",
|
| 534 |
+
"text": "5 EXPERIMENTS ",
|
| 535 |
+
"text_level": 1,
|
| 536 |
+
"bbox": [
|
| 537 |
+
176,
|
| 538 |
+
676,
|
| 539 |
+
326,
|
| 540 |
+
693
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 5
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "text",
|
| 546 |
+
"text": "5.1 ARCHITECTURE ROBUSTNESS ",
|
| 547 |
+
"text_level": 1,
|
| 548 |
+
"bbox": [
|
| 549 |
+
176,
|
| 550 |
+
708,
|
| 551 |
+
421,
|
| 552 |
+
722
|
| 553 |
+
],
|
| 554 |
+
"page_idx": 5
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"type": "text",
|
| 558 |
+
"text": "How robust are current methods, and has progress in computer vision been achieved at the expense of robustness? As seen in Figure 3, as architectures improve, so too does the mean Corruption Error (mCE). By this measure, architectures have become progressively more successful at generalizing to corrupted distributions. Note that models with similar clean error rates have fairly similar CEs, and in Table 1 there are no large shifts in a corruption type’s CE. Consequently, it would seem that architectures have slowly and consistently improved their representations over time. However, it appears that corruption robustness improvements are mostly explained by accuracy improvements. Recall that the Relative mCE tracks a classifier’s accuracy decline in the presence of corruptions. Figure 3 shows that the Relative mCEs of many subsequent models are worse than that of AlexNet (Krizhevsky et al., 2012). Full results are in Appendix D. In consequence, from AlexNet to ResNet, corruption robustness in itself has barely changed. Thus our “superhuman” classifiers are decidedly subhuman. ",
|
| 559 |
+
"bbox": [
|
| 560 |
+
174,
|
| 561 |
+
734,
|
| 562 |
+
825,
|
| 563 |
+
888
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 5
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "text",
|
| 569 |
+
"text": "On perturbed inputs, current classifiers are unexpectedly bad. For example, a ResNet-18 on Scale perturbation sequences have a $1 5 . 6 \\%$ probability of flipping its top-1 prediction between adjacent frames (i.e., perturbation $\\mathrm { F P _ { S c a l e } ^ { R e s N e t - 1 8 } = 1 5 . 6 \\% }$ ; therial t $\\mathrm { u T 5 D } _ { \\mathrm { S c a l e } } ^ { \\mathrm { R e s N e t - 1 8 } }$ is 3.6. More results are in Appendix E. Clearly classifiers. What is also surprising is that while VGGNets are worse than ResNets at generalizing to corrupted examples, on perturbed examples they can be just as robust or even more robust. Likewise, Batch Normalization made VGG-19 less robust to perturbations but more robust to corruptions. Yet this is not to suggest that there is a fundamental trade-off between corruption and perturbation robustness. In fact, both corruption and perturbation robustness can improve together, as we shall see later. ",
|
| 570 |
+
"bbox": [
|
| 571 |
+
173,
|
| 572 |
+
895,
|
| 573 |
+
823,
|
| 574 |
+
924
|
| 575 |
+
],
|
| 576 |
+
"page_idx": 5
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"type": "text",
|
| 580 |
+
"text": "",
|
| 581 |
+
"bbox": [
|
| 582 |
+
174,
|
| 583 |
+
102,
|
| 584 |
+
825,
|
| 585 |
+
202
|
| 586 |
+
],
|
| 587 |
+
"page_idx": 6
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "text",
|
| 591 |
+
"text": "5.2 ROBUSTNESS ENHANCEMENTS ",
|
| 592 |
+
"text_level": 1,
|
| 593 |
+
"bbox": [
|
| 594 |
+
176,
|
| 595 |
+
226,
|
| 596 |
+
429,
|
| 597 |
+
239
|
| 598 |
+
],
|
| 599 |
+
"page_idx": 6
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"type": "text",
|
| 603 |
+
"text": "Be aware that Appendix F contains many informative failures in robustness enhancement. Those experiments underscore the necessity in testing on a a diverse test set, the difficulty in cleansing corruptions from image, and the futility in expecting robustness gains from some “simpler” models. ",
|
| 604 |
+
"bbox": [
|
| 605 |
+
174,
|
| 606 |
+
256,
|
| 607 |
+
825,
|
| 608 |
+
299
|
| 609 |
+
],
|
| 610 |
+
"page_idx": 6
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"type": "text",
|
| 614 |
+
"text": "Histogram Equalization. Histogram equalization successfully standardizes speech data for robust speech recognition (Torre et al., 2005; Harvilla & Stern, 2012). For images, we find that preprocessing with Contrast Limited Adaptive Histogram Equalization (Pizer et al., 1987) is quite effective. Unlike our image denoising attempt (Appendix F), CLAHE reduces the effect of some corruptions while not worsening performance on most others, thereby improving the mCE. We demonstrate CLAHE’s net improvement by taking a pre-trained ResNet-50 and fine-tuning the whole model for five epochs on images processed with CLAHE. The ResNet-50 has a $2 3 . 8 7 \\%$ error rate, but ResNet-50 with CLAHE has an error rate of $2 3 . 5 5 \\%$ . On nearly all corruptions, CLAHE slightly decreases the Corruption Error. The ResNet-50 without CLAHE preprocessing has an mCE of $7 6 . 7 \\%$ , while with CLAHE the ResNet-50’s mCE decreases to $7 4 . 5 \\%$ . ",
|
| 615 |
+
"bbox": [
|
| 616 |
+
174,
|
| 617 |
+
305,
|
| 618 |
+
825,
|
| 619 |
+
444
|
| 620 |
+
],
|
| 621 |
+
"page_idx": 6
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"type": "text",
|
| 625 |
+
"text": "Multiscale Networks. Multiscale architectures achieve greater corruption robustness by propagating features across scales at each layer rather than slowly gaining a global representation of the input as in typical convolutional neural networks. Some multiscale architectures are called Multigrid Networks (Ke et al., 2017). Multigrid networks each have a pyramid of grids in each layer which enables the subsequent layer to operate across scales. Along similar lines, Multi-Scale Dense Networks (MSDNets) (Huang et al., 2018) use information across scales. MSDNets bind network layers with DenseNet-like (Huang et al., 2017b) skip connections. These two different multiscale networks both enhance corruption robustness, but they do not provide any noticeable benefit in perturbation robustness. Now before comparing mCE values, we first note the Multigrid network has a $2 4 . 6 \\%$ top-1 error rate, as does the MSDNet, while the ResNet-50 has a $2 3 . 9 \\%$ top-1 error rate. On noisy inputs, Multigrid networks noticeably surpass ResNets and MSDNets, as shown in Figure 5. Since multiscale architectures have high-level representations processed in tandem with fine details, the architectures appear better equipped to suppress otherwise distracting pixel noise. When all corruptions are evaluated, ResNet-50 has an mCE of $7 6 . 7 \\%$ , the MSDNet has an mCE of $7 3 . 6 \\%$ , and the Multigrid network has an mCE of $7 3 . 3 \\%$ . ",
|
| 626 |
+
"bbox": [
|
| 627 |
+
174,
|
| 628 |
+
450,
|
| 629 |
+
825,
|
| 630 |
+
659
|
| 631 |
+
],
|
| 632 |
+
"page_idx": 6
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"type": "text",
|
| 636 |
+
"text": "Feature Aggregating and Larger Networks. Some recent models enhance the ResNet architecture by increasing what is called feature aggregation. Of these, DenseNets and ResNeXts (Xie et al., 2016) are most prominent. Each purports to have stronger representations than ResNets, and the evidence is largely a hard-won ImageNet error-rate downtick. Interestingly, the IMAGENET-C mCE clearly indicates that DenseNets and ResNeXts have superior representations. Accordingly, a switch from a ResNet-50 $2 3 . 9 \\%$ top-1 error) to a DenseNet-121 $2 5 . 6 \\%$ error) decreases the mCE from $7 6 . 7 \\%$ to $7 3 . 4 \\%$ (and the relative $\\mathrm { m C E }$ from $1 0 5 . 0 \\%$ to $9 2 . 8 \\%$ ). More starkly, switching from a ResNet-50 to a ResNeXt-50 $2 2 . 9 \\%$ top-1) drops the mCE from $7 6 . 7 \\%$ to $6 8 . 2 \\%$ (relative mCE decreases from $1 0 5 . 0 \\%$ to $8 8 . 6 \\%$ ). Corruption robustness results are summarized in Figure 5. This shows that corruption robustness may be a better way to measure future progress in representation learning than the clean dataset top-1 error rate. ",
|
| 637 |
+
"bbox": [
|
| 638 |
+
174,
|
| 639 |
+
666,
|
| 640 |
+
825,
|
| 641 |
+
819
|
| 642 |
+
],
|
| 643 |
+
"page_idx": 6
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"type": "text",
|
| 647 |
+
"text": "Some of the greatest and simplest robustness gains sometimes emerge from making recent models more monolithic. Apparently more representations, more redundancy, and more capacity allow these massive models to operate more stably on corrupted inputs. We saw earlier that making models smaller does the opposite. Swapping a DenseNet-121 ( $2 5 . 6 \\%$ top-1) with the larger DenseNet-161 $2 2 . 9 \\%$ top1) decreases the mCE from $7 3 . 4 \\%$ to $6 6 . 4 \\%$ (and the relative mCE from $9 2 . 8 \\%$ to $8 4 . 6 \\%$ ). In a similar fashion, a ResNeXt-50 $2 2 . 9 \\%$ top-1) is less robust than the a giant ResNeXt-101 $( 2 1 . 0 \\%$ top-1). The mCEs are $6 8 . 2 \\%$ and $6 2 . 2 \\%$ respectively (and the relative mCEs are $8 8 . 6 \\%$ and $8 0 . 1 \\%$ respectively). ",
|
| 648 |
+
"bbox": [
|
| 649 |
+
174,
|
| 650 |
+
827,
|
| 651 |
+
825,
|
| 652 |
+
924
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 6
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "image",
|
| 658 |
+
"img_path": "images/95ff99774b48cc8ef86d290388b67b127dd23de5905c58bc9df9dc0ac5c8aa8e.jpg",
|
| 659 |
+
"image_caption": [
|
| 660 |
+
"Figure 5: Architectures such as Multigrid networks and DenseNets resist noise corruptions more effectively than ResNets. "
|
| 661 |
+
],
|
| 662 |
+
"image_footnote": [],
|
| 663 |
+
"bbox": [
|
| 664 |
+
171,
|
| 665 |
+
98,
|
| 666 |
+
485,
|
| 667 |
+
291
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 7
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "image",
|
| 673 |
+
"img_path": "images/c982f6349009115326615064b893f7cd583bb01a4f06238651494fe23f705e1c.jpg",
|
| 674 |
+
"image_caption": [
|
| 675 |
+
"Figure 6: Larger feature aggregating networks achieve robustness gains that substantially outpace their accuracy gains. "
|
| 676 |
+
],
|
| 677 |
+
"image_footnote": [],
|
| 678 |
+
"bbox": [
|
| 679 |
+
496,
|
| 680 |
+
93,
|
| 681 |
+
808,
|
| 682 |
+
295
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 7
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "text",
|
| 688 |
+
"text": "Both model size and feature aggregation results are summarized in Figure 6. Consequently, future models with even more depth, width, and feature aggregation may attain further corruption robustness. ",
|
| 689 |
+
"bbox": [
|
| 690 |
+
174,
|
| 691 |
+
358,
|
| 692 |
+
823,
|
| 693 |
+
387
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 7
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "Feature aggregation and their larger counterparts similarly improve perturbation robustness. While a ResNet-50 has a $5 8 . 0 \\%$ mFR and a $7 8 . 3 \\%$ mT5D, a DenseNet-121 obtains a $5 6 . 4 \\%$ mFR and $7 6 . 8 \\%$ mT5D, and a ResNeXt-50 does even better with a $5 2 . 4 \\%$ mFR and a $7 4 . 2 \\%$ mT5D. Reflecting the corruption robustness findings further, the larger DenseNet-161 has a $4 6 . 9 \\%$ mFR and $6 9 . 5 \\%$ mT5D, while the ResNeXt-101 has a $4 3 . 2 \\%$ mFR and $6 5 . 9 \\%$ mT5D. Thus in two senses feature aggregating networks and their larger versions markedly enhance robustness. ",
|
| 700 |
+
"bbox": [
|
| 701 |
+
174,
|
| 702 |
+
393,
|
| 703 |
+
825,
|
| 704 |
+
477
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 7
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "text",
|
| 710 |
+
"text": "Stylized ImageNet. Geirhos et al. (2019) propose a novel data augmentation scheme where ImageNet images are stylized with style transfer. The intent is that classifiers trained on stylized images will rely less on textural cues for classification. When a ResNet-50 is trained on typical ImageNet images and stylized ImageNet images, the resulting model has an mCE of $6 9 . 3 \\%$ , down from $7 6 . 7 \\%$ ",
|
| 711 |
+
"bbox": [
|
| 712 |
+
174,
|
| 713 |
+
483,
|
| 714 |
+
825,
|
| 715 |
+
540
|
| 716 |
+
],
|
| 717 |
+
"page_idx": 7
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"type": "text",
|
| 721 |
+
"text": "Adversarial Logit Pairing. ALP is an adversarial example defense for large-scale image classifiers (Kannan et al., 2018). Like nearly all other adversarial defenses, ALP was bypassed and has unclear value as an adversarial defense going forward (Engstrom et al., 2018), yet this is not a decisive reason dismiss it. ALP provides significant perturbation robustness even though it does not provide much adversarial perturbation robustness against all adversaries. Although ALP was designed to increase robustness to small gradient perturbations, it markedly improves robustness to all sorts of noise, blur, weather, and digital IMAGENET-P perturbations—methods generalizing this well is a rarity. In point of fact, a publicly available Tiny ImageNet ResNet-50 model fine-tuned with ALP has a $41 \\%$ and $40 \\%$ relative decrease in the mFP and mT5D on TINY IMAGENET-P, respectively. ALP’s success in enhancing common perturbation robustness and its modest utility for adversarial perturbation robustness highlights that the interplay between these problems should be better understood. ",
|
| 722 |
+
"bbox": [
|
| 723 |
+
173,
|
| 724 |
+
546,
|
| 725 |
+
825,
|
| 726 |
+
699
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 7
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "text",
|
| 732 |
+
"text": "6 CONCLUSION ",
|
| 733 |
+
"text_level": 1,
|
| 734 |
+
"bbox": [
|
| 735 |
+
174,
|
| 736 |
+
714,
|
| 737 |
+
318,
|
| 738 |
+
731
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 7
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "text",
|
| 744 |
+
"text": "In this paper, we introduced what are to our knowledge the first comprehensive benchmarks for corruption and perturbation robustness. This was made possible by introducing two new datasets, IMAGENET-C and IMAGENET-P. The first of which showed that many years of architectural advancements corresponded to minuscule changes in relative corruption robustness. Therefore benchmarking and improving robustness deserves attention, especially as top-1 clean ImageNet accuracy nears its ceiling. We also saw that classifiers exhibit unexpected instability on simple perturbations. Thereafter we found that methods such as histogram equalization, multiscale architectures, and larger featureaggregating models improve corruption robustness. These larger models also improve perturbation robustness. However, we found that even greater perturbation robustness can come from an adversarial defense designed for adversarial $\\ell _ { \\infty }$ perturbations, indicating a surprising interaction between adversarial and common perturbation robustness. In this work, we found several methods to increase robustness, introduced novel experiments and metrics, and created new datasets for the rigorous study of model robustness, a pressing necessity as models are unleashed into safety-critical real-world settings. ",
|
| 745 |
+
"bbox": [
|
| 746 |
+
174,
|
| 747 |
+
743,
|
| 748 |
+
826,
|
| 749 |
+
924
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 7
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "text",
|
| 755 |
+
"text": "7 ACKNOWLEDGEMENTS ",
|
| 756 |
+
"text_level": 1,
|
| 757 |
+
"bbox": [
|
| 758 |
+
176,
|
| 759 |
+
102,
|
| 760 |
+
398,
|
| 761 |
+
118
|
| 762 |
+
],
|
| 763 |
+
"page_idx": 8
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"type": "text",
|
| 767 |
+
"text": "We should like to thank Justin Gilmer, David Wagner, Kevin Gimpel, Tom Brown, Mantas Mazeika, and Steven Basart for their helpful suggestions. This research was supported by a grant from the Future of Life Institute. ",
|
| 768 |
+
"bbox": [
|
| 769 |
+
174,
|
| 770 |
+
130,
|
| 771 |
+
825,
|
| 772 |
+
172
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 8
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "text",
|
| 778 |
+
"text": "REFERENCES ",
|
| 779 |
+
"text_level": 1,
|
| 780 |
+
"bbox": [
|
| 781 |
+
174,
|
| 782 |
+
188,
|
| 783 |
+
287,
|
| 784 |
+
204
|
| 785 |
+
],
|
| 786 |
+
"page_idx": 8
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"type": "text",
|
| 790 |
+
"text": "Ossama Abdel-Hamid, Abdel rahman Mohamed, Hui Jiang, and Gerald Penn. Applying convolutional neural networks concepts to hybrid nn-hmm model for speech recognition. ICASSP, 2013. ",
|
| 791 |
+
"bbox": [
|
| 792 |
+
174,
|
| 793 |
+
215,
|
| 794 |
+
823,
|
| 795 |
+
244
|
| 796 |
+
],
|
| 797 |
+
"page_idx": 8
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"type": "text",
|
| 801 |
+
"text": "Aharon Azulay and Yair Weiss. Why do deep convolutional networks generalize so poorly to small image transformations? arXiv preprint, 2018. ",
|
| 802 |
+
"bbox": [
|
| 803 |
+
173,
|
| 804 |
+
253,
|
| 805 |
+
823,
|
| 806 |
+
284
|
| 807 |
+
],
|
| 808 |
+
"page_idx": 8
|
| 809 |
+
},
|
| 810 |
+
{
|
| 811 |
+
"type": "text",
|
| 812 |
+
"text": "Osbert Bastani, Yani Ioannou, Leonidas Lampropoulos, Dimitrios Vytiniotis, Aditya Nori, and Antonio Criminisi. Measuring neural net robustness with constraints. In NIPS. 2016. ",
|
| 813 |
+
"bbox": [
|
| 814 |
+
173,
|
| 815 |
+
292,
|
| 816 |
+
825,
|
| 817 |
+
321
|
| 818 |
+
],
|
| 819 |
+
"page_idx": 8
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"type": "text",
|
| 823 |
+
"text": "Antoni Buades and Bartomeu Coll. A non-local algorithm for image denoising. In CVPR, 2005. ",
|
| 824 |
+
"bbox": [
|
| 825 |
+
173,
|
| 826 |
+
330,
|
| 827 |
+
803,
|
| 828 |
+
347
|
| 829 |
+
],
|
| 830 |
+
"page_idx": 8
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"type": "text",
|
| 834 |
+
"text": "Nicholas Carlini and David Wagner. Defensive distillation is not robust to adversarial examples, 2016. ",
|
| 835 |
+
"bbox": [
|
| 836 |
+
174,
|
| 837 |
+
356,
|
| 838 |
+
820,
|
| 839 |
+
385
|
| 840 |
+
],
|
| 841 |
+
"page_idx": 8
|
| 842 |
+
},
|
| 843 |
+
{
|
| 844 |
+
"type": "text",
|
| 845 |
+
"text": "Nicholas Carlini and David Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods, 2017. ",
|
| 846 |
+
"bbox": [
|
| 847 |
+
173,
|
| 848 |
+
393,
|
| 849 |
+
823,
|
| 850 |
+
422
|
| 851 |
+
],
|
| 852 |
+
"page_idx": 8
|
| 853 |
+
},
|
| 854 |
+
{
|
| 855 |
+
"type": "text",
|
| 856 |
+
"text": "Nicholas Carlini, Guy Katz, Clark Barrett, and David L. Dill. Ground-truth adversarial examples, 2017. ",
|
| 857 |
+
"bbox": [
|
| 858 |
+
173,
|
| 859 |
+
433,
|
| 860 |
+
823,
|
| 861 |
+
462
|
| 862 |
+
],
|
| 863 |
+
"page_idx": 8
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"type": "text",
|
| 867 |
+
"text": "Jia Deng, Wei Dong, Richard Socher, Li jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. CVPR, 2009. ",
|
| 868 |
+
"bbox": [
|
| 869 |
+
174,
|
| 870 |
+
470,
|
| 871 |
+
823,
|
| 872 |
+
500
|
| 873 |
+
],
|
| 874 |
+
"page_idx": 8
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"type": "text",
|
| 878 |
+
"text": "Samuel Dodge and Lina Karam. Quality resilient deep neural networks, 2017a. ",
|
| 879 |
+
"bbox": [
|
| 880 |
+
173,
|
| 881 |
+
510,
|
| 882 |
+
694,
|
| 883 |
+
525
|
| 884 |
+
],
|
| 885 |
+
"page_idx": 8
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"type": "text",
|
| 889 |
+
"text": "Samuel Dodge and Lina Karam. A study and comparison of human and deep learning recognition performance under visual distortions, 2017b. ",
|
| 890 |
+
"bbox": [
|
| 891 |
+
176,
|
| 892 |
+
535,
|
| 893 |
+
823,
|
| 894 |
+
563
|
| 895 |
+
],
|
| 896 |
+
"page_idx": 8
|
| 897 |
+
},
|
| 898 |
+
{
|
| 899 |
+
"type": "text",
|
| 900 |
+
"text": "David Donoho and Iain Johnstone. Ideal spatial adaptation by wavelet shrinkage. Biometrika, 1993. ",
|
| 901 |
+
"bbox": [
|
| 902 |
+
173,
|
| 903 |
+
573,
|
| 904 |
+
823,
|
| 905 |
+
588
|
| 906 |
+
],
|
| 907 |
+
"page_idx": 8
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"type": "text",
|
| 911 |
+
"text": "Logan Engstrom, Andrew Ilyas, and Anish Athalye. Evaluating and understanding the robustness of adversarial logit pairing. arXiv preprint, 2018. ",
|
| 912 |
+
"bbox": [
|
| 913 |
+
173,
|
| 914 |
+
597,
|
| 915 |
+
823,
|
| 916 |
+
627
|
| 917 |
+
],
|
| 918 |
+
"page_idx": 8
|
| 919 |
+
},
|
| 920 |
+
{
|
| 921 |
+
"type": "text",
|
| 922 |
+
"text": "Ivan Evtimov, Kevin Eykholt, Earlence Fernandes, Tadayoshi Kohno, Bo Li, Atul Prakash, Amir Rahmati, and Dawn Song. Robust physical-world attacks on deep learning models, 2017. ",
|
| 923 |
+
"bbox": [
|
| 924 |
+
176,
|
| 925 |
+
636,
|
| 926 |
+
823,
|
| 927 |
+
665
|
| 928 |
+
],
|
| 929 |
+
"page_idx": 8
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"type": "text",
|
| 933 |
+
"text": "Ruth Fong and Andrea Vedaldi. Interpretable explanations of black boxes by meaningful perturbation. ICCV, 2017. ",
|
| 934 |
+
"bbox": [
|
| 935 |
+
174,
|
| 936 |
+
674,
|
| 937 |
+
823,
|
| 938 |
+
703
|
| 939 |
+
],
|
| 940 |
+
"page_idx": 8
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"type": "text",
|
| 944 |
+
"text": "Leon Gatys, Alexander Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. CVPR, 2016. ",
|
| 945 |
+
"bbox": [
|
| 946 |
+
173,
|
| 947 |
+
713,
|
| 948 |
+
823,
|
| 949 |
+
742
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 8
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "text",
|
| 955 |
+
"text": "Robert Geirhos, David H. J. Janssen, Heiko H. Schütt, Jonas Rauber, Matthias Bethge, and Felix A. Wichmann. Comparing deep neural networks against humans: object recognition when the signal gets weaker, 2017. ",
|
| 956 |
+
"bbox": [
|
| 957 |
+
174,
|
| 958 |
+
751,
|
| 959 |
+
823,
|
| 960 |
+
795
|
| 961 |
+
],
|
| 962 |
+
"page_idx": 8
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"type": "text",
|
| 966 |
+
"text": "Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A Wichmann, and Wieland Brendel. Imagenet-trained cnns are biased towards texture; increasing shape bias improves accuracy and robustness. ICLR, 2019. ",
|
| 967 |
+
"bbox": [
|
| 968 |
+
176,
|
| 969 |
+
804,
|
| 970 |
+
825,
|
| 971 |
+
847
|
| 972 |
+
],
|
| 973 |
+
"page_idx": 8
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"type": "text",
|
| 977 |
+
"text": "Justin Gilmer, Ryan P. Adams, Ian Goodfellow, David Andersen, and George E. Dahl. Motivating the rules of the game for adversarial example research. arXiv preprint, 2018a. ",
|
| 978 |
+
"bbox": [
|
| 979 |
+
173,
|
| 980 |
+
856,
|
| 981 |
+
821,
|
| 982 |
+
886
|
| 983 |
+
],
|
| 984 |
+
"page_idx": 8
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"type": "text",
|
| 988 |
+
"text": "Justin Gilmer, Luke Metz, Fartash Faghri, Samuel S. Schoenholz, Maithra Raghu, Martin Wattenberg, and Ian Goodfellow. Adversarial spheres. ICLR Workshop, 2018b. ",
|
| 989 |
+
"bbox": [
|
| 990 |
+
174,
|
| 991 |
+
895,
|
| 992 |
+
821,
|
| 993 |
+
924
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 8
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "text",
|
| 999 |
+
"text": "Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. On calibration of modern neural networks. International Conference on Machine Learning, 2017. ",
|
| 1000 |
+
"bbox": [
|
| 1001 |
+
171,
|
| 1002 |
+
103,
|
| 1003 |
+
823,
|
| 1004 |
+
133
|
| 1005 |
+
],
|
| 1006 |
+
"page_idx": 9
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"type": "text",
|
| 1010 |
+
"text": "Mark Harvilla and Richard Stern. Histogram-based subband powerwarping and spectral averaging for robust speech recognition under matched and multistyle training, 2012. ",
|
| 1011 |
+
"bbox": [
|
| 1012 |
+
171,
|
| 1013 |
+
140,
|
| 1014 |
+
823,
|
| 1015 |
+
170
|
| 1016 |
+
],
|
| 1017 |
+
"page_idx": 9
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"type": "text",
|
| 1021 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CVPR, 2015. ",
|
| 1022 |
+
"bbox": [
|
| 1023 |
+
171,
|
| 1024 |
+
178,
|
| 1025 |
+
823,
|
| 1026 |
+
207
|
| 1027 |
+
],
|
| 1028 |
+
"page_idx": 9
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"type": "text",
|
| 1032 |
+
"text": "Dan Hendrycks and Kevin Gimpel. Early methods for detecting adversarial images, 2017a. ",
|
| 1033 |
+
"bbox": [
|
| 1034 |
+
176,
|
| 1035 |
+
214,
|
| 1036 |
+
772,
|
| 1037 |
+
231
|
| 1038 |
+
],
|
| 1039 |
+
"page_idx": 9
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"type": "text",
|
| 1043 |
+
"text": "Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. In ICLR, 2017b. ",
|
| 1044 |
+
"bbox": [
|
| 1045 |
+
173,
|
| 1046 |
+
238,
|
| 1047 |
+
825,
|
| 1048 |
+
267
|
| 1049 |
+
],
|
| 1050 |
+
"page_idx": 9
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"type": "text",
|
| 1054 |
+
"text": "Dan Hendrycks, Mantas Mazeika, Duncan Wilson, and Kevin Gimpel. Using trusted data to train deep networks on labels corrupted by severe noise. NIPS, 2018. ",
|
| 1055 |
+
"bbox": [
|
| 1056 |
+
176,
|
| 1057 |
+
275,
|
| 1058 |
+
823,
|
| 1059 |
+
305
|
| 1060 |
+
],
|
| 1061 |
+
"page_idx": 9
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"type": "text",
|
| 1065 |
+
"text": "Dan Hendrycks, Mantas Mazeika, and Thomas Dietterich. Deep anomaly detection with outlier exposure. ICLR, 2019. ",
|
| 1066 |
+
"bbox": [
|
| 1067 |
+
174,
|
| 1068 |
+
313,
|
| 1069 |
+
823,
|
| 1070 |
+
342
|
| 1071 |
+
],
|
| 1072 |
+
"page_idx": 9
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"type": "text",
|
| 1076 |
+
"text": "Hans-Günter Hirsch. Aurora-5 experimental framework for the performance evaluation of speech recognition in case of a hands-free speech input in noisy environments, 2007. ",
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
174,
|
| 1079 |
+
349,
|
| 1080 |
+
821,
|
| 1081 |
+
380
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 9
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"type": "text",
|
| 1087 |
+
"text": "Hans-Günter Hirsch and David Pearce. The Aurora experimental framework for the performance evaluation of speech recognition systems under noisy conditions. ISCA ITRW ASR2000, 2000. ",
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
174,
|
| 1090 |
+
387,
|
| 1091 |
+
821,
|
| 1092 |
+
417
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 9
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "Hossein Hosseini, Baicen Xiao, and Radha Poovendran. Google’s cloud vision api is not robust to noise, 2017. ",
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
176,
|
| 1101 |
+
424,
|
| 1102 |
+
823,
|
| 1103 |
+
454
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 9
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "Gao Huang, Shichen Liu, Laurens van der Maaten, and Kilian Q Weinberger. Condensenet: An efficient DenseNet using learned group convolutions. arXiv preprint, 2017a. ",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
174,
|
| 1112 |
+
462,
|
| 1113 |
+
823,
|
| 1114 |
+
492
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 9
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017b. ",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
173,
|
| 1123 |
+
498,
|
| 1124 |
+
826,
|
| 1125 |
+
541
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 9
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "Gao Huang, Danlu Chen, Tianhong Li, Felix Wu, Laurens van der Maaten, and Kilian Q. Weinberger. Multi-scale dense networks for resource efficient image classification. ICLR, 2018. ",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
173,
|
| 1134 |
+
549,
|
| 1135 |
+
823,
|
| 1136 |
+
579
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 9
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. JMLR, 2015. ",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
174,
|
| 1145 |
+
587,
|
| 1146 |
+
823,
|
| 1147 |
+
617
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 9
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "Harini Kannan, Alexey Kurakin, and Ian Goodfellow. Adversarial logit pairing. NIPS, 2018. ",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
173,
|
| 1156 |
+
625,
|
| 1157 |
+
779,
|
| 1158 |
+
640
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 9
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "text",
|
| 1164 |
+
"text": "Tsung-Wei Ke, Michael Maire, and Stella X. Yu. Multigrid neural architectures, 2017. ",
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
169,
|
| 1167 |
+
647,
|
| 1168 |
+
741,
|
| 1169 |
+
664
|
| 1170 |
+
],
|
| 1171 |
+
"page_idx": 9
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"type": "text",
|
| 1175 |
+
"text": "Chanwoo Kim and Richard M. Stern. Power-normalized cepstral coefficients (PNCC) for robust speech recognition. IEEE/ACM Trans. Audio, Speech and Lang. Proc., 24(7):1315–1329, July 2016. ISSN 2329-9290. ",
|
| 1176 |
+
"bbox": [
|
| 1177 |
+
173,
|
| 1178 |
+
671,
|
| 1179 |
+
826,
|
| 1180 |
+
713
|
| 1181 |
+
],
|
| 1182 |
+
"page_idx": 9
|
| 1183 |
+
},
|
| 1184 |
+
{
|
| 1185 |
+
"type": "text",
|
| 1186 |
+
"text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. NIPS, 2012. ",
|
| 1187 |
+
"bbox": [
|
| 1188 |
+
173,
|
| 1189 |
+
722,
|
| 1190 |
+
825,
|
| 1191 |
+
752
|
| 1192 |
+
],
|
| 1193 |
+
"page_idx": 9
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"type": "text",
|
| 1197 |
+
"text": "Ravi Kumar and Sergei Vassilvitskii. Generalized distances between rankings, 2010. ",
|
| 1198 |
+
"bbox": [
|
| 1199 |
+
174,
|
| 1200 |
+
760,
|
| 1201 |
+
730,
|
| 1202 |
+
776
|
| 1203 |
+
],
|
| 1204 |
+
"page_idx": 9
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"type": "text",
|
| 1208 |
+
"text": "Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. ICLR, 2017. ",
|
| 1209 |
+
"bbox": [
|
| 1210 |
+
173,
|
| 1211 |
+
782,
|
| 1212 |
+
821,
|
| 1213 |
+
813
|
| 1214 |
+
],
|
| 1215 |
+
"page_idx": 9
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"type": "text",
|
| 1219 |
+
"text": "Jinyu Li, Li Deng, Yifan Gong, and Reinhold Haeb-Umbach. An overview of noise-robust automatic speech recognition. 2014. ",
|
| 1220 |
+
"bbox": [
|
| 1221 |
+
173,
|
| 1222 |
+
820,
|
| 1223 |
+
823,
|
| 1224 |
+
849
|
| 1225 |
+
],
|
| 1226 |
+
"page_idx": 9
|
| 1227 |
+
},
|
| 1228 |
+
{
|
| 1229 |
+
"type": "text",
|
| 1230 |
+
"text": "Fu-Hua Liu, Richard M. Stern, Xuedong Huang, and Alex Acero. Efficient cepstral normalization for robust speech recognition. In Proc. of DARPA Speech and Natural Language Workshop, 1993. ",
|
| 1231 |
+
"bbox": [
|
| 1232 |
+
173,
|
| 1233 |
+
858,
|
| 1234 |
+
823,
|
| 1235 |
+
887
|
| 1236 |
+
],
|
| 1237 |
+
"page_idx": 9
|
| 1238 |
+
},
|
| 1239 |
+
{
|
| 1240 |
+
"type": "text",
|
| 1241 |
+
"text": "Si Liu, Risheek Garrepalli, Thomas Dietterich, Alan Fern, and Dan Hendrycks. Open category detection with PAC guarantees. In ICML, 2018. ",
|
| 1242 |
+
"bbox": [
|
| 1243 |
+
173,
|
| 1244 |
+
895,
|
| 1245 |
+
823,
|
| 1246 |
+
924
|
| 1247 |
+
],
|
| 1248 |
+
"page_idx": 9
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"type": "text",
|
| 1252 |
+
"text": "Jiajun Lu, Hussein Sibai, Evan Fabry, and David Forsyth. Standard detectors aren’t (currently) fooled by physical adversarial stop signs, 2017. ",
|
| 1253 |
+
"bbox": [
|
| 1254 |
+
171,
|
| 1255 |
+
103,
|
| 1256 |
+
825,
|
| 1257 |
+
132
|
| 1258 |
+
],
|
| 1259 |
+
"page_idx": 10
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"type": "text",
|
| 1263 |
+
"text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. ICLR, 2018. ",
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
173,
|
| 1266 |
+
140,
|
| 1267 |
+
823,
|
| 1268 |
+
170
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 10
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "text",
|
| 1274 |
+
"text": "Jan Hendrik Metzen, Tim Genewein, Volker Fischer, and Bastian Bischoff. On detecting adversarial perturbations, 2017. ",
|
| 1275 |
+
"bbox": [
|
| 1276 |
+
173,
|
| 1277 |
+
178,
|
| 1278 |
+
823,
|
| 1279 |
+
208
|
| 1280 |
+
],
|
| 1281 |
+
"page_idx": 10
|
| 1282 |
+
},
|
| 1283 |
+
{
|
| 1284 |
+
"type": "text",
|
| 1285 |
+
"text": "Vikramjit Mitra, Horacio Franco, Richard Stern, Julien Van Hout, Luciana Ferrer, Martin Graciarena, Wen Wang, Dimitra Vergyri, Abeer Alwan, and John H.L. Hansen. Robust features in deep learning based speech recognition, 2017. ",
|
| 1286 |
+
"bbox": [
|
| 1287 |
+
176,
|
| 1288 |
+
215,
|
| 1289 |
+
823,
|
| 1290 |
+
258
|
| 1291 |
+
],
|
| 1292 |
+
"page_idx": 10
|
| 1293 |
+
},
|
| 1294 |
+
{
|
| 1295 |
+
"type": "text",
|
| 1296 |
+
"text": "Chris Olah, Alexander Mordvintsev, and Ludwig Schubert. Feature visualization. Distill, 2017. ",
|
| 1297 |
+
"bbox": [
|
| 1298 |
+
174,
|
| 1299 |
+
267,
|
| 1300 |
+
799,
|
| 1301 |
+
284
|
| 1302 |
+
],
|
| 1303 |
+
"page_idx": 10
|
| 1304 |
+
},
|
| 1305 |
+
{
|
| 1306 |
+
"type": "text",
|
| 1307 |
+
"text": "Nicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks, 2017. ",
|
| 1308 |
+
"bbox": [
|
| 1309 |
+
173,
|
| 1310 |
+
291,
|
| 1311 |
+
823,
|
| 1312 |
+
321
|
| 1313 |
+
],
|
| 1314 |
+
"page_idx": 10
|
| 1315 |
+
},
|
| 1316 |
+
{
|
| 1317 |
+
"type": "text",
|
| 1318 |
+
"text": "Stephen M. Pizer, E. Philip Amburn, John D. Austin, Robert Cromartie, Ari Geselowitz, Trey Greer, Bart Ter Haar Romeny, and John B. Zimmerman. Adaptive histogram equalization and its variations. Computer Vision, Graphics, and Image Processing, 1987. ",
|
| 1319 |
+
"bbox": [
|
| 1320 |
+
178,
|
| 1321 |
+
329,
|
| 1322 |
+
823,
|
| 1323 |
+
372
|
| 1324 |
+
],
|
| 1325 |
+
"page_idx": 10
|
| 1326 |
+
},
|
| 1327 |
+
{
|
| 1328 |
+
"type": "text",
|
| 1329 |
+
"text": "Jonas Rauber, Wieland Brendel, and Matthias Bethge. Foolbox v0.8.0: A python toolbox to benchmark the robustness of machine learning models, 2017. ",
|
| 1330 |
+
"bbox": [
|
| 1331 |
+
174,
|
| 1332 |
+
381,
|
| 1333 |
+
823,
|
| 1334 |
+
410
|
| 1335 |
+
],
|
| 1336 |
+
"page_idx": 10
|
| 1337 |
+
},
|
| 1338 |
+
{
|
| 1339 |
+
"type": "text",
|
| 1340 |
+
"text": "Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do cifar-10 classifiers generalize to cifar-10? arXiv preprint, 2018. ",
|
| 1341 |
+
"bbox": [
|
| 1342 |
+
176,
|
| 1343 |
+
419,
|
| 1344 |
+
821,
|
| 1345 |
+
448
|
| 1346 |
+
],
|
| 1347 |
+
"page_idx": 10
|
| 1348 |
+
},
|
| 1349 |
+
{
|
| 1350 |
+
"type": "text",
|
| 1351 |
+
"text": "Ludwig Schmidt, Shibani Santurkar, Dimitris Tsipras, Kunal Talwar, and Aleksander Madry. Adversarially robust generalization requires more data. arXiv preprint, 2018. ",
|
| 1352 |
+
"bbox": [
|
| 1353 |
+
176,
|
| 1354 |
+
457,
|
| 1355 |
+
823,
|
| 1356 |
+
486
|
| 1357 |
+
],
|
| 1358 |
+
"page_idx": 10
|
| 1359 |
+
},
|
| 1360 |
+
{
|
| 1361 |
+
"type": "text",
|
| 1362 |
+
"text": "Lukas Schott, Jonas Rauber, Matthias Bethge, and Wieland Brendel. Towards deep learning models resistant to adversarial attacks. arXiv preprint, 2018. ",
|
| 1363 |
+
"bbox": [
|
| 1364 |
+
174,
|
| 1365 |
+
494,
|
| 1366 |
+
823,
|
| 1367 |
+
523
|
| 1368 |
+
],
|
| 1369 |
+
"page_idx": 10
|
| 1370 |
+
},
|
| 1371 |
+
{
|
| 1372 |
+
"type": "text",
|
| 1373 |
+
"text": "Jacob Steinhardt, Pang Wei Koh, and Percy Liang. Certified defenses for data poisoning attacks. NIPS, 2017. ",
|
| 1374 |
+
"bbox": [
|
| 1375 |
+
176,
|
| 1376 |
+
531,
|
| 1377 |
+
823,
|
| 1378 |
+
560
|
| 1379 |
+
],
|
| 1380 |
+
"page_idx": 10
|
| 1381 |
+
},
|
| 1382 |
+
{
|
| 1383 |
+
"type": "text",
|
| 1384 |
+
"text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks, 2014. ",
|
| 1385 |
+
"bbox": [
|
| 1386 |
+
173,
|
| 1387 |
+
569,
|
| 1388 |
+
823,
|
| 1389 |
+
599
|
| 1390 |
+
],
|
| 1391 |
+
"page_idx": 10
|
| 1392 |
+
},
|
| 1393 |
+
{
|
| 1394 |
+
"type": "text",
|
| 1395 |
+
"text": "Dogancan Temel and Ghassan AlRegib. Traffic signs in the wild: Highlights from the ieee video and image processing cup 2017 student competition. IEEE Signal Processing Magazine, 2018. ",
|
| 1396 |
+
"bbox": [
|
| 1397 |
+
173,
|
| 1398 |
+
607,
|
| 1399 |
+
823,
|
| 1400 |
+
637
|
| 1401 |
+
],
|
| 1402 |
+
"page_idx": 10
|
| 1403 |
+
},
|
| 1404 |
+
{
|
| 1405 |
+
"type": "text",
|
| 1406 |
+
"text": "Dogancan Temel, Gukyeong Kwon, Mohit Prabhushankar, and Ghassan AlRegib. Cure-tsr: Challenging unreal and real environments for traffic sign recognition. NIPS Workshop, 2017. ",
|
| 1407 |
+
"bbox": [
|
| 1408 |
+
174,
|
| 1409 |
+
645,
|
| 1410 |
+
825,
|
| 1411 |
+
675
|
| 1412 |
+
],
|
| 1413 |
+
"page_idx": 10
|
| 1414 |
+
},
|
| 1415 |
+
{
|
| 1416 |
+
"type": "text",
|
| 1417 |
+
"text": "Dogancan Temel, Jinsol Lee, and Ghassan AlRegib. Cure-or: Challenging unreal and real environments for object recognition. ICMLA, 2018. ",
|
| 1418 |
+
"bbox": [
|
| 1419 |
+
176,
|
| 1420 |
+
683,
|
| 1421 |
+
821,
|
| 1422 |
+
712
|
| 1423 |
+
],
|
| 1424 |
+
"page_idx": 10
|
| 1425 |
+
},
|
| 1426 |
+
{
|
| 1427 |
+
"type": "text",
|
| 1428 |
+
"text": "Ángel de la Torre, Antonio Peinado, José Segura, José Pérez-Córdoba, Ma Carmen Benítez, and Antonio Rubio. Histogram equalization of speech representation for robust speech recognition. IEEE Signal Processing Society, 2005. ",
|
| 1429 |
+
"bbox": [
|
| 1430 |
+
173,
|
| 1431 |
+
722,
|
| 1432 |
+
826,
|
| 1433 |
+
765
|
| 1434 |
+
],
|
| 1435 |
+
"page_idx": 10
|
| 1436 |
+
},
|
| 1437 |
+
{
|
| 1438 |
+
"type": "text",
|
| 1439 |
+
"text": "Igor Vasiljevic, Ayan Chakrabarti, and Gregory Shakhnarovich. Examining the impact of blur on recognition by convolutional networks, 2016. ",
|
| 1440 |
+
"bbox": [
|
| 1441 |
+
173,
|
| 1442 |
+
773,
|
| 1443 |
+
823,
|
| 1444 |
+
803
|
| 1445 |
+
],
|
| 1446 |
+
"page_idx": 10
|
| 1447 |
+
},
|
| 1448 |
+
{
|
| 1449 |
+
"type": "text",
|
| 1450 |
+
"text": "Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. CVPR, 2016. ",
|
| 1451 |
+
"bbox": [
|
| 1452 |
+
173,
|
| 1453 |
+
811,
|
| 1454 |
+
823,
|
| 1455 |
+
840
|
| 1456 |
+
],
|
| 1457 |
+
"page_idx": 10
|
| 1458 |
+
},
|
| 1459 |
+
{
|
| 1460 |
+
"type": "text",
|
| 1461 |
+
"text": "Stephan Zheng, Yang Song, Thomas Leung, and Ian Goodfellow. Improving the robustness of deep neural networks via stability training, 2016. ",
|
| 1462 |
+
"bbox": [
|
| 1463 |
+
173,
|
| 1464 |
+
849,
|
| 1465 |
+
823,
|
| 1466 |
+
878
|
| 1467 |
+
],
|
| 1468 |
+
"page_idx": 10
|
| 1469 |
+
},
|
| 1470 |
+
{
|
| 1471 |
+
"type": "text",
|
| 1472 |
+
"text": "A EXAMPLE OF IMAGENET-C SEVERITIES ",
|
| 1473 |
+
"text_level": 1,
|
| 1474 |
+
"bbox": [
|
| 1475 |
+
176,
|
| 1476 |
+
102,
|
| 1477 |
+
542,
|
| 1478 |
+
118
|
| 1479 |
+
],
|
| 1480 |
+
"page_idx": 11
|
| 1481 |
+
},
|
| 1482 |
+
{
|
| 1483 |
+
"type": "image",
|
| 1484 |
+
"img_path": "images/4ebc2a59533ab7e5503288d47241397745080192eebfbfb68bc4fc56579b421a.jpg",
|
| 1485 |
+
"image_caption": [
|
| 1486 |
+
"Figure 7: Impulse noise modestly to markedly corrupts a frog, showing our benchmark’s varying severities. "
|
| 1487 |
+
],
|
| 1488 |
+
"image_footnote": [],
|
| 1489 |
+
"bbox": [
|
| 1490 |
+
176,
|
| 1491 |
+
137,
|
| 1492 |
+
821,
|
| 1493 |
+
233
|
| 1494 |
+
],
|
| 1495 |
+
"page_idx": 11
|
| 1496 |
+
},
|
| 1497 |
+
{
|
| 1498 |
+
"type": "text",
|
| 1499 |
+
"text": "In Figure 7, we show the Impulse noise corruption type in five different severities. Clearly, IMAGENETC corruptions can range from negligible to pulverizing. Because of this range, the benchmark comprehensively assesses each corruption type. ",
|
| 1500 |
+
"bbox": [
|
| 1501 |
+
173,
|
| 1502 |
+
292,
|
| 1503 |
+
826,
|
| 1504 |
+
335
|
| 1505 |
+
],
|
| 1506 |
+
"page_idx": 11
|
| 1507 |
+
},
|
| 1508 |
+
{
|
| 1509 |
+
"type": "text",
|
| 1510 |
+
"text": "B EXTRA IMAGENET-C CORRUPTIONS ",
|
| 1511 |
+
"text_level": 1,
|
| 1512 |
+
"bbox": [
|
| 1513 |
+
174,
|
| 1514 |
+
351,
|
| 1515 |
+
513,
|
| 1516 |
+
367
|
| 1517 |
+
],
|
| 1518 |
+
"page_idx": 11
|
| 1519 |
+
},
|
| 1520 |
+
{
|
| 1521 |
+
"type": "image",
|
| 1522 |
+
"img_path": "images/271a75e209df01146ee8e90621b94a2c4bb79515c99306cb6f82ca36d8e8c93d.jpg",
|
| 1523 |
+
"image_caption": [
|
| 1524 |
+
"Figure 8: Extra IMAGENET-C corruption examples are available for model validation and sounder experimentation. "
|
| 1525 |
+
],
|
| 1526 |
+
"image_footnote": [],
|
| 1527 |
+
"bbox": [
|
| 1528 |
+
178,
|
| 1529 |
+
385,
|
| 1530 |
+
820,
|
| 1531 |
+
515
|
| 1532 |
+
],
|
| 1533 |
+
"page_idx": 11
|
| 1534 |
+
},
|
| 1535 |
+
{
|
| 1536 |
+
"type": "text",
|
| 1537 |
+
"text": "Directly fitting the types of IMAGENET-C corruptions should be avoided, as it would cause researchers to overestimate a model’s robustness. Therefore, it is incumbent on us to simplify model validation. This is why we provide an additional form of corruption for each of the four general types. These are available for download at https://github.com/hendrycks/robustness. There is one corruption type for each noise, blur, weather, and digital category in the validation set. The first corruption type is speckle noise, an additive noise where the noise added to a pixel tends to be larger if the original pixel intensity is larger. Gaussian blur is a low-pass filter where a blurred pixel is a result of a weighted average of its neighbors, and farther pixels have decreasing weight in this average. Spatter can occlude a lens in the form of rain or mud. Finally, saturate is common in edited images where images are made more or less colorful. See Figure 8 for instances of each corruption type. ",
|
| 1538 |
+
"bbox": [
|
| 1539 |
+
173,
|
| 1540 |
+
577,
|
| 1541 |
+
826,
|
| 1542 |
+
717
|
| 1543 |
+
],
|
| 1544 |
+
"page_idx": 11
|
| 1545 |
+
},
|
| 1546 |
+
{
|
| 1547 |
+
"type": "text",
|
| 1548 |
+
"text": "C MORE ON THE IMAGENET-P METRICS AND SETUP ",
|
| 1549 |
+
"text_level": 1,
|
| 1550 |
+
"bbox": [
|
| 1551 |
+
174,
|
| 1552 |
+
731,
|
| 1553 |
+
629,
|
| 1554 |
+
747
|
| 1555 |
+
],
|
| 1556 |
+
"page_idx": 11
|
| 1557 |
+
},
|
| 1558 |
+
{
|
| 1559 |
+
"type": "text",
|
| 1560 |
+
"text": "For some readers, the following function may be opaque, ",
|
| 1561 |
+
"bbox": [
|
| 1562 |
+
174,
|
| 1563 |
+
758,
|
| 1564 |
+
549,
|
| 1565 |
+
775
|
| 1566 |
+
],
|
| 1567 |
+
"page_idx": 11
|
| 1568 |
+
},
|
| 1569 |
+
{
|
| 1570 |
+
"type": "equation",
|
| 1571 |
+
"img_path": "images/aba13855b2bcd2fbe099e74fa630e0c248f8167713b4b3e838ae082b546d365f.jpg",
|
| 1572 |
+
"text": "$$\nd ( \\tau ( x ) , \\tau ( x ^ { \\prime } ) ) = \\sum _ { i = 1 } ^ { 5 } \\sum _ { j = \\operatorname* { m i n } \\{ i , \\sigma ( i ) \\} + 1 } ^ { \\operatorname* { m a x } \\{ i , \\sigma ( i ) \\} } \\mathbb { 1 } ( 1 \\leq j - 1 \\leq 5 )\n$$",
|
| 1573 |
+
"text_format": "latex",
|
| 1574 |
+
"bbox": [
|
| 1575 |
+
315,
|
| 1576 |
+
776,
|
| 1577 |
+
681,
|
| 1578 |
+
824
|
| 1579 |
+
],
|
| 1580 |
+
"page_idx": 11
|
| 1581 |
+
},
|
| 1582 |
+
{
|
| 1583 |
+
"type": "text",
|
| 1584 |
+
"text": "where $\\sigma = ( \\tau ( x ) ) ^ { - 1 } \\tau ( x ^ { \\prime } )$ and the empty sum is understood to be zero. A high-level view of $d$ is that it computes the deviation between the top-5 predictions of two prediction lists. For simplicity we find the deviation between the identity and $\\sigma$ rather than $\\tau ( x )$ and $\\tau ( x ^ { \\prime } )$ . In consequence we can consider $d ^ { \\prime } ( \\sigma ) : = d ( 1 , \\sigma )$ where 1 the identity permutation. To give some intuition, we provide concrete examples of $d ^ { \\prime }$ on permutations. ",
|
| 1585 |
+
"bbox": [
|
| 1586 |
+
173,
|
| 1587 |
+
825,
|
| 1588 |
+
826,
|
| 1589 |
+
896
|
| 1590 |
+
],
|
| 1591 |
+
"page_idx": 11
|
| 1592 |
+
},
|
| 1593 |
+
{
|
| 1594 |
+
"type": "text",
|
| 1595 |
+
"text": "If $\\sigma$ is the identity, then $d ^ { \\prime } ( \\bar { \\sigma } ) = 0$ . \nIf $\\sigma = ( 1 , 2 , 3 , 4 , 6 , 5 , 7 , 8 , \\dot { . } . . )$ , $d ^ { \\prime } ( \\sigma ) = 1$ . If $\\sigma = ( 1 , 2 , 3 , 4 , 6 , 7 , 5 , 8 , . . . )$ , $d ^ { \\prime } ( \\sigma ) = 1$ . Once 5 fell out of the top-5, its displacement did not accumulate any further; this may happen when only the top-5 predictions are shown to the user. \nIf $\\sigma = ( 2 , 1 , 3 , 4 , 5 , 6 , \\dots )$ , $d ^ { \\prime } ( \\sigma ) = \\mathrm { \\bar { 2 } }$ . \nIf $\\sigma = ( 3 , 1 , 2 , 4 , 5 , 6 , \\dots ) ,$ $d ^ { \\prime } ( \\sigma ) = 4$ . \nAlso, $d ^ { \\prime } ( ( 2 , 3 , 4 , 5 , 6 , \\dots , 1 ) ) = 5$ . \nDistinctly, $d ^ { \\prime } ( ( 1 , 2 , 3 , 5 , 6 , 4 , 7 , 8 , . . . ) ) = 2$ . \nAs a final example, $d ^ { \\prime } ( ( 5 , 4 , 3 , 2 , 1 , 6 , 7 , 8 , 9 , . . . ) ) = 1 2 .$ . ",
|
| 1596 |
+
"bbox": [
|
| 1597 |
+
173,
|
| 1598 |
+
896,
|
| 1599 |
+
455,
|
| 1600 |
+
925
|
| 1601 |
+
],
|
| 1602 |
+
"page_idx": 11
|
| 1603 |
+
},
|
| 1604 |
+
{
|
| 1605 |
+
"type": "text",
|
| 1606 |
+
"text": "",
|
| 1607 |
+
"bbox": [
|
| 1608 |
+
171,
|
| 1609 |
+
103,
|
| 1610 |
+
826,
|
| 1611 |
+
203
|
| 1612 |
+
],
|
| 1613 |
+
"page_idx": 12
|
| 1614 |
+
},
|
| 1615 |
+
{
|
| 1616 |
+
"type": "text",
|
| 1617 |
+
"text": "It may be that we want perturbation robustness for all predictions, including classes with lesser relevance. In such cases, it is still common that the displacement of the top prediction matters more than themeasure $\\begin{array} { r } { d ^ { \\prime } \\hat { ( \\sigma ) } = \\sum _ { i = 1 } ^ { 1 0 0 0 } w _ { i } \\hat { | } w _ { i } - w _ { \\sigma ( i ) } | } \\end{array}$ ranked cl such that $w _ { i } = 1 / i$ is there are many possibilities, such as the. This uses a Zipfian assumption about the rankings of the classes: the first class is $n$ times as relevant as the nth class. Other possibilities involve using logarithms rather than hyperbolic functions as in the discounted cumulative gain (Kumar & Vassilvitskii, 2010). One could also use the class probabilities provided by the model (should they exist). However such a measure could make it difficult to compare models since some models tend to be more uncalibrated than others (Guo et al., 2017). ",
|
| 1618 |
+
"bbox": [
|
| 1619 |
+
173,
|
| 1620 |
+
208,
|
| 1621 |
+
825,
|
| 1622 |
+
335
|
| 1623 |
+
],
|
| 1624 |
+
"page_idx": 12
|
| 1625 |
+
},
|
| 1626 |
+
{
|
| 1627 |
+
"type": "text",
|
| 1628 |
+
"text": "As progress is made on this task, researchers may be interested in perturbations which are more likely to cause unstable predictions. To accomplish that, researchers can simply compare a frame with the frame two frames ahead rather than just one frame ahead. We provide concrete code of this slight change in the metric at https://github.com/hendrycks/robustness. For nontemporal perturbation sequences, i.e., noise sequences, we provide sequences where the noise perturbation is larger. ",
|
| 1629 |
+
"bbox": [
|
| 1630 |
+
173,
|
| 1631 |
+
342,
|
| 1632 |
+
825,
|
| 1633 |
+
426
|
| 1634 |
+
],
|
| 1635 |
+
"page_idx": 12
|
| 1636 |
+
},
|
| 1637 |
+
{
|
| 1638 |
+
"type": "text",
|
| 1639 |
+
"text": "D FULL CORRUPTION ROBUSTNESS RESULTS ",
|
| 1640 |
+
"text_level": 1,
|
| 1641 |
+
"bbox": [
|
| 1642 |
+
174,
|
| 1643 |
+
441,
|
| 1644 |
+
570,
|
| 1645 |
+
458
|
| 1646 |
+
],
|
| 1647 |
+
"page_idx": 12
|
| 1648 |
+
},
|
| 1649 |
+
{
|
| 1650 |
+
"type": "text",
|
| 1651 |
+
"text": "IMAGENET-C corruption relative robustness results are in Tnormalize Corruption Error values, we now specify the value $\\begin{array} { r } { { \\frac { 1 } { 5 } } \\sum _ { s = 1 } ^ { 5 } E _ { s , \\mathrm { C o r r u p t i o n } } ^ { \\mathrm { A l e x N e t } } } \\end{array}$ e AlexNet errors tofor each corruption type. Gaussian Noise: , Shot Noise: , Impulse Noise: $9 2 . 3 \\%$ , Defocus Blur: $8 2 . 0 \\%$ , Glass Blur: $8 2 . 6 \\%$ , Motion Blur: $7 8 . 6 \\%$ , Zoom Blur: $7 9 . 8 \\%$ , Snow: $8 6 . 7 \\%$ , Frost: $8 2 . 7 \\%$ , Fog: $8 1 . 9 \\%$ , Brightness: $5 6 . 5 \\%$ , Contrast: $8 5 . 3 \\%$ , Elastic Transformation: $6 4 . 6 \\%$ , Pixelate: $7 1 . 8 \\%$ , JPEG: $6 0 . 7 \\%$ , Speckle Noise: $8 4 . 5 \\%$ , Gaussian Blur: $7 8 . 7 \\%$ , Spatter: $7 1 . 8 \\%$ , Saturate: $6 5 . 8 \\%$ . ",
|
| 1652 |
+
"bbox": [
|
| 1653 |
+
173,
|
| 1654 |
+
469,
|
| 1655 |
+
826,
|
| 1656 |
+
571
|
| 1657 |
+
],
|
| 1658 |
+
"page_idx": 12
|
| 1659 |
+
},
|
| 1660 |
+
{
|
| 1661 |
+
"type": "table",
|
| 1662 |
+
"img_path": "images/47b1855c83232f878080f2270bb138a1bdd0f6ffcb118f7bccbd02211878f1e6.jpg",
|
| 1663 |
+
"table_caption": [],
|
| 1664 |
+
"table_footnote": [],
|
| 1665 |
+
"table_body": "<table><tr><td></td><td></td><td></td><td></td><td>Noise</td><td></td><td></td><td>Blur</td><td></td><td></td><td></td><td>Weather</td><td></td><td></td><td>Digital</td><td></td><td></td></tr><tr><td>Network</td><td>Error</td><td>Rel.mCEGauss.Shot Impulse</td><td></td><td></td><td></td><td>Defocus Glass Motion Zoom</td><td></td><td></td><td></td><td>SnowFrost FogBright</td><td></td><td></td><td></td><td></td><td>Contrast Elastic Pixel JPEG</td><td></td></tr><tr><td>AlexNet</td><td>43.5</td><td>100.0</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100100100</td><td></td><td></td><td>100</td><td>100</td><td>100</td><td>100100</td></tr><tr><td>SqueezeNet</td><td>41.8</td><td>117.9</td><td>118</td><td>116</td><td>114</td><td>104</td><td>110</td><td>106</td><td>105</td><td>106 110 98</td><td></td><td></td><td>101</td><td>100</td><td>126</td><td>129 229</td></tr><tr><td>VGG-11</td><td>31.0</td><td>123.3</td><td>122</td><td>121</td><td>125</td><td>116</td><td>129</td><td>121</td><td>115</td><td>114</td><td>113</td><td>99</td><td>86</td><td>102</td><td>151 161</td><td>174</td></tr><tr><td>VGG-19</td><td>27.6</td><td>122.9</td><td>114</td><td>117</td><td>122</td><td>118</td><td>136</td><td>123</td><td>122</td><td>114</td><td>111</td><td>88</td><td>82</td><td>98</td><td>165 161</td><td>172</td></tr><tr><td>VGG-19+BN1</td><td>25.8</td><td>111.1</td><td>104</td><td>105</td><td>114</td><td>108</td><td>132</td><td>114</td><td>119</td><td>102</td><td>100</td><td>79</td><td>68</td><td>89</td><td>165 125</td><td>144</td></tr><tr><td>ResNet-18</td><td>30.2</td><td>103.9</td><td>104</td><td>106</td><td>111</td><td>100</td><td>116</td><td>108</td><td>112</td><td>103101</td><td></td><td>89</td><td>67</td><td>87</td><td>133 97</td><td>126</td></tr><tr><td>ResNet-50</td><td>23.9</td><td>105.0</td><td>104</td><td>107</td><td>107</td><td>97</td><td>126</td><td>107</td><td>110</td><td>101</td><td>97</td><td>79</td><td>62</td><td>89</td><td>146 111</td><td>132</td></tr></table>",
|
| 1666 |
+
"bbox": [
|
| 1667 |
+
173,
|
| 1668 |
+
583,
|
| 1669 |
+
848,
|
| 1670 |
+
702
|
| 1671 |
+
],
|
| 1672 |
+
"page_idx": 12
|
| 1673 |
+
},
|
| 1674 |
+
{
|
| 1675 |
+
"type": "text",
|
| 1676 |
+
"text": "Table 2: Clean Error, Relative mCE, and Relative Corruption Errors values of different corruptions and architectures on IMAGENET-C. All models are trained on clean ImageNet images, not IMAGENET-C images. Here “BN” abbreviates Batch Normalization (Ioffe & Szegedy, 2015). ",
|
| 1677 |
+
"bbox": [
|
| 1678 |
+
173,
|
| 1679 |
+
718,
|
| 1680 |
+
828,
|
| 1681 |
+
761
|
| 1682 |
+
],
|
| 1683 |
+
"page_idx": 12
|
| 1684 |
+
},
|
| 1685 |
+
{
|
| 1686 |
+
"type": "text",
|
| 1687 |
+
"text": "E FULL PERTURBATION ROBUSTNESS RESULTS ",
|
| 1688 |
+
"text_level": 1,
|
| 1689 |
+
"bbox": [
|
| 1690 |
+
173,
|
| 1691 |
+
787,
|
| 1692 |
+
584,
|
| 1693 |
+
805
|
| 1694 |
+
],
|
| 1695 |
+
"page_idx": 12
|
| 1696 |
+
},
|
| 1697 |
+
{
|
| 1698 |
+
"type": "text",
|
| 1699 |
+
"text": "IMAGENET-P mFerrors to normali $2 3 . 6 5 \\%$ s are in Table 3,easures, we now $3 0 . 0 6 \\%$ 5D values are in the value FPAlexPertu $9 . 3 0 \\%$ . Since we use Aor each corrupti $5 . 9 4 \\%$ t. Snow: $1 1 . 9 3 \\%$ , Brightness: $4 . 8 9 \\%$ , Translate: $1 1 . 0 1 \\%$ , Rotate: $1 3 . 1 0 \\%$ , Tilt: $7 . 0 5 \\%$ , Scale: $2 3 . 5 3 \\%$ , Speckle Noise: $1 8 . 6 5 \\%$ , Gaussian Blur: $2 . 7 8 \\%$ , Spatter: $5 . 0 5 \\%$ , Shear: $1 0 . 6 6 \\%$ . Also, the uT5DAlexNetPerturbati on values are as follows. Gaussian Noise: 4.77, Shot Noise: 5.76, Motion Blur: 1.93, Zoom Blur: 1.34, Snow: 2.42, Brightness: 1.19, Translate: 2.63, Rotate: 2.95, ",
|
| 1700 |
+
"bbox": [
|
| 1701 |
+
173,
|
| 1702 |
+
815,
|
| 1703 |
+
828,
|
| 1704 |
+
924
|
| 1705 |
+
],
|
| 1706 |
+
"page_idx": 12
|
| 1707 |
+
},
|
| 1708 |
+
{
|
| 1709 |
+
"type": "table",
|
| 1710 |
+
"img_path": "images/9003c50617d4fb9929e794a5e832519ab4e8fff80e244e827fc16d2244aa1e09.jpg",
|
| 1711 |
+
"table_caption": [
|
| 1712 |
+
"Tilt: 1.75, Scale: 4.48, Speckle Noise: 3.89, Gaussian Blur: 0.70, Spatter: 1.26, Shear: 2.48. "
|
| 1713 |
+
],
|
| 1714 |
+
"table_footnote": [],
|
| 1715 |
+
"table_body": "<table><tr><td>Noise</td><td></td><td colspan=\"3\"></td><td colspan=\"2\">Blur</td><td colspan=\"2\">Weather</td><td colspan=\"3\">Digital</td></tr><tr><td>Network</td><td>Error</td><td>mFR</td><td>Gaussian</td><td>Shot</td><td>Motion</td><td>Zoom</td><td>Snow Bright</td><td>Translate</td><td>Rotate</td><td>Tilt</td><td>Scale</td></tr><tr><td>AlexNet</td><td>43.5</td><td>100.0</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100 100</td><td>100</td><td>100</td><td>100</td><td>100</td></tr><tr><td>SqueezeNet</td><td>41.8</td><td>112.6</td><td>147</td><td>140</td><td>109</td><td>109</td><td>105 110</td><td>101</td><td>103</td><td>109</td><td>93</td></tr><tr><td>VGG-11</td><td>31.0</td><td>74.9</td><td>89</td><td>90</td><td>85</td><td>84</td><td>80 76</td><td>52</td><td>64</td><td>69</td><td>59</td></tr><tr><td>VGG-19</td><td>27.6</td><td>66.9</td><td>75</td><td>76</td><td>82</td><td>84</td><td>73 74</td><td>41</td><td>54</td><td>60</td><td>49</td></tr><tr><td>VGG-19+BN</td><td>25.8</td><td>65.1</td><td>67</td><td>66</td><td>75</td><td>86</td><td>70 72</td><td>45</td><td>56</td><td>56</td><td>51</td></tr><tr><td>ResNet-18</td><td>30.2</td><td>72.8</td><td>74</td><td>73</td><td>75</td><td>85</td><td>75 78</td><td>63</td><td>66</td><td>73</td><td>66</td></tr><tr><td>ResNet-50</td><td>23.9</td><td>58.0</td><td>59</td><td>58</td><td>64</td><td>72</td><td>63 62</td><td>44</td><td>52</td><td>57</td><td>48</td></tr></table>",
|
| 1716 |
+
"bbox": [
|
| 1717 |
+
184,
|
| 1718 |
+
142,
|
| 1719 |
+
813,
|
| 1720 |
+
271
|
| 1721 |
+
],
|
| 1722 |
+
"page_idx": 13
|
| 1723 |
+
},
|
| 1724 |
+
{
|
| 1725 |
+
"type": "table",
|
| 1726 |
+
"img_path": "images/ed4692ddeb4ea08788d35ea45629afb30f6486126e8c3dec3d47721537b08802.jpg",
|
| 1727 |
+
"table_caption": [
|
| 1728 |
+
"Table 3: Flip Rates and the mFR values of different perturbations and architectures on IMAGENET-P. All models are trained on clean ImageNet images, not IMAGENET-P images. Here “BN” abbreviates Batch Normalization. ",
|
| 1729 |
+
"Table 4: Top-5 Distances and the mT5D values of different perturbations and architectures on IMAGENET-P. "
|
| 1730 |
+
],
|
| 1731 |
+
"table_footnote": [],
|
| 1732 |
+
"table_body": "<table><tr><td></td><td></td><td></td><td colspan=\"2\">Noise</td><td colspan=\"2\">Blur</td><td colspan=\"2\">Weather</td><td colspan=\"4\">Digital</td></tr><tr><td>Network</td><td>Error</td><td>mT5D</td><td>Gaussian</td><td>Shot</td><td>Motion</td><td>Zoom</td><td>Snow</td><td>Bright</td><td>Translate</td><td>Rotate</td><td>Tilt</td><td>Scale</td></tr><tr><td>AlexNet</td><td>43.5</td><td>100.0</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td></tr><tr><td>SqueezeNet</td><td>41.8</td><td>112.9</td><td>139</td><td>133</td><td>109</td><td>111</td><td>107</td><td>112</td><td>104</td><td>106</td><td>111</td><td>98</td></tr><tr><td>VGG-11</td><td>31.0</td><td>83.9</td><td>98</td><td>97</td><td>93</td><td>90</td><td>87</td><td>85</td><td>63</td><td>75</td><td>79</td><td>71</td></tr><tr><td>VGG-19</td><td>27.6</td><td>78.6</td><td>89</td><td>88</td><td>92</td><td>93</td><td>82</td><td>86</td><td>53</td><td>67</td><td>74</td><td>62</td></tr><tr><td>VGG-19+BN</td><td>25.8</td><td>80.5</td><td>85</td><td>82</td><td>90</td><td>97</td><td>84</td><td>88</td><td>61</td><td>72</td><td>80</td><td>66</td></tr><tr><td>ResNet-18</td><td>30.2</td><td>87.0</td><td>89</td><td>87</td><td>89</td><td>95</td><td>88</td><td>92</td><td>78</td><td>82</td><td>89</td><td>80</td></tr><tr><td>ResNet-50</td><td>23.9</td><td>78.3</td><td>82</td><td>79</td><td>84</td><td>89</td><td>80</td><td>84</td><td>64</td><td>73</td><td>80</td><td>67</td></tr></table>",
|
| 1733 |
+
"bbox": [
|
| 1734 |
+
181,
|
| 1735 |
+
352,
|
| 1736 |
+
818,
|
| 1737 |
+
482
|
| 1738 |
+
],
|
| 1739 |
+
"page_idx": 13
|
| 1740 |
+
},
|
| 1741 |
+
{
|
| 1742 |
+
"type": "text",
|
| 1743 |
+
"text": "F INFORMATIVE ROBUSTNESS ENHANCEMENT ATTEMPTS ",
|
| 1744 |
+
"text_level": 1,
|
| 1745 |
+
"bbox": [
|
| 1746 |
+
174,
|
| 1747 |
+
553,
|
| 1748 |
+
671,
|
| 1749 |
+
570
|
| 1750 |
+
],
|
| 1751 |
+
"page_idx": 13
|
| 1752 |
+
},
|
| 1753 |
+
{
|
| 1754 |
+
"type": "text",
|
| 1755 |
+
"text": "Stability Training. Stability training is a technique to improve the robustness of deep networks (Zheng et al., 2016). The method’s creators found that training on images corrupted with noise can lead to underfitting, so they instead propose minimizing the cross-entropy from the noisy image’s softmax distribution to the softmax of the clean image. The authors evaluated performance on images with subtle differences and suggested that the method provides additional robustness to JPEG corruptions. We fine-tune a ResNet-50 with stability training for five epochs. For training with noisy images, we corrupt images with uniform noise, where the maximum and minimum of the uniform noise is tuned over $\\{ 0 . 0 1 , 0 . 0 5 , 0 . 1 \\}$ , and the stability weight is tuned over $\\{ 0 . 0 1 , 0 . 0 5 , 0 . 1 \\}$ . Across all noise strengths and stability weight combinations, the models with stability training tested on IMAGENET-C have a larger mCEs than the baseline ResNet-50’s mCE. Even on unseen noise corruptions, stability training does not increase robustness. However, the perturbation robustness slightly improves. The best model according to the IMAGENET-P validation set has an mFR of $5 7 \\%$ , while the original ResNet’s mFR is $5 8 \\%$ . An upshot of this failure is that benchmarking robustness-enhancing techniques requires a diverse test set. ",
|
| 1756 |
+
"bbox": [
|
| 1757 |
+
173,
|
| 1758 |
+
583,
|
| 1759 |
+
825,
|
| 1760 |
+
777
|
| 1761 |
+
],
|
| 1762 |
+
"page_idx": 13
|
| 1763 |
+
},
|
| 1764 |
+
{
|
| 1765 |
+
"type": "text",
|
| 1766 |
+
"text": "Image Denoising. An approach orthogonal to modifying model representations is to improve the inputs using image restoration techniques. Although general image restoration techniques are not yet mature, denoising restoration techniques are not. We thus attempt restore an image with the denoising technique called non-local means (Buades & Coll, 2005). The amount of denoising applied is determined by the noise estimation technique of Donoho & Johnstone (1993). Therefore clean images receive should nearly no modifications from the restoration method, while noisy images should undergo considerable restoration. We found that denoising increased the mCE from $7 6 . 7 \\%$ to $8 2 . 1 \\%$ . A plausible account is that the non-local means algorithm striped the images of their subtle details even when images lacked noise, despite having the non-local means algorithm governed by the noise estimate. Therefore, the gains in noise robustness were wiped away by subtle blurs to images with other types of corruptions, showing that targeted image restoration can prove harmful for robustness. ",
|
| 1767 |
+
"bbox": [
|
| 1768 |
+
173,
|
| 1769 |
+
785,
|
| 1770 |
+
825,
|
| 1771 |
+
924
|
| 1772 |
+
],
|
| 1773 |
+
"page_idx": 13
|
| 1774 |
+
},
|
| 1775 |
+
{
|
| 1776 |
+
"type": "text",
|
| 1777 |
+
"text": "",
|
| 1778 |
+
"bbox": [
|
| 1779 |
+
173,
|
| 1780 |
+
103,
|
| 1781 |
+
823,
|
| 1782 |
+
132
|
| 1783 |
+
],
|
| 1784 |
+
"page_idx": 14
|
| 1785 |
+
},
|
| 1786 |
+
{
|
| 1787 |
+
"type": "text",
|
| 1788 |
+
"text": "10-Crop Classification. Viewing an object at several different locations may give way to a more stable prediction. Having this intuition in mind, we perform 10-crop classification. 10-crop classification is executed by cropping all four corners and cropping the center of an image. These crops and their horizontal mirrors are processed through a network to produce 10 predicted class probability distributions. We average these distributions to compute the final prediction. Of course, a prediction informed by 10-crops rather than a single central crop is more accurate. Ideally, this revised prediction should be more robust too. However, the gains in mCE do not outpace the gains in accuracy on a ResNet-50. In all, 10-crop classification is a computationally expensive option which contributes to classification accuracy but not noticeably to robustness. ",
|
| 1789 |
+
"bbox": [
|
| 1790 |
+
174,
|
| 1791 |
+
138,
|
| 1792 |
+
825,
|
| 1793 |
+
263
|
| 1794 |
+
],
|
| 1795 |
+
"page_idx": 14
|
| 1796 |
+
},
|
| 1797 |
+
{
|
| 1798 |
+
"type": "text",
|
| 1799 |
+
"text": "Smaller Models. All else equal, “simpler” models often generalize better, and “simplicity” frequently translates to model size. Accordingly, smaller models may be more robust. We test this hypothesis with CondenseNets (Huang et al., 2017a). A CondenseNet attains its small size via sparse convolutions and pruned filter weights. An off-the-shelf CondenseNet $C = G = 4 ,$ ) obtains a $2 6 . 3 \\%$ error rate and a $8 0 . 8 \\%$ mCE. On the whole, this CondenseNet is slightly less robust than larger models of similar accuracy. Even more pruning and sparsification yields a CondenseNet ( $C = G = 8$ ) with both deteriorated performance $2 8 . 9 \\%$ error rate) and robustness $8 4 . 6 \\%$ mCE). Here again robustness is worse than larger model robustness. Though models fashioned for mobile devices are smaller and in some sense simpler, this does not improve robustness. ",
|
| 1800 |
+
"bbox": [
|
| 1801 |
+
173,
|
| 1802 |
+
270,
|
| 1803 |
+
825,
|
| 1804 |
+
396
|
| 1805 |
+
],
|
| 1806 |
+
"page_idx": 14
|
| 1807 |
+
},
|
| 1808 |
+
{
|
| 1809 |
+
"type": "text",
|
| 1810 |
+
"text": "G A SEPARATE TYPE OF ROBUSTNESS ",
|
| 1811 |
+
"text_level": 1,
|
| 1812 |
+
"bbox": [
|
| 1813 |
+
174,
|
| 1814 |
+
435,
|
| 1815 |
+
509,
|
| 1816 |
+
452
|
| 1817 |
+
],
|
| 1818 |
+
"page_idx": 14
|
| 1819 |
+
},
|
| 1820 |
+
{
|
| 1821 |
+
"type": "text",
|
| 1822 |
+
"text": "Another goal for machine learning is to learn the fundamental structure of categories. Broad categories, such as “bird,” have many subtypes, such as “cardinal” or “bluejay.” Humans can observe previously unseen bird species yet still know that they are birds. A test of learned fundamental structure beyond superficial features is subtype robustness. In subtype robustness we test generalization to unseen subtypes which share share essential characteristics of a broader type. We repurpose the ImageNet-22K dataset for a closer investigation into subtype robustness. ",
|
| 1823 |
+
"bbox": [
|
| 1824 |
+
174,
|
| 1825 |
+
472,
|
| 1826 |
+
825,
|
| 1827 |
+
556
|
| 1828 |
+
],
|
| 1829 |
+
"page_idx": 14
|
| 1830 |
+
},
|
| 1831 |
+
{
|
| 1832 |
+
"type": "text",
|
| 1833 |
+
"text": "Subtype Robustness. A natural image dataset with a hierarchical taxonomy and numerous types and subtypes is ImageNet-22K, an ImageNet-1K superset. In this subtype robustness experiment, we manually select 25 broad types from ImageNet-22K, listed in the next paragraph. Each broad type has many subtypes. We call a subtype “seen” if and only if it is in ImageNet-1K and a subtype of one of the 25 broad types. The subtype is “unseen” if and only if it is a subtype of the 25 broad types and is from ImageNet-22K but not ImageNet-1K. In this experiment, the correct classification decision for an image of a subtype is the broad type label. We take pre-trained ImageNet-1K classifiers which have not trained on unseen subtypes. Next we fine-tune the last layer of these pre-trained ImageNet-1K classifiers on seen subtypes so that they predict one of 25 broad types. Then, we test the accuracy on images of seen ",
|
| 1834 |
+
"bbox": [
|
| 1835 |
+
174,
|
| 1836 |
+
563,
|
| 1837 |
+
485,
|
| 1838 |
+
840
|
| 1839 |
+
],
|
| 1840 |
+
"page_idx": 14
|
| 1841 |
+
},
|
| 1842 |
+
{
|
| 1843 |
+
"type": "image",
|
| 1844 |
+
"img_path": "images/5f0410e3592e5c217096ea491035539be3dd9b5b9f2d67895b26ec23ec61f28f.jpg",
|
| 1845 |
+
"image_caption": [
|
| 1846 |
+
"Figure 9: ImageNet classifiers and their robustness to unseen subtypes. Unseen subtypes of known broad types are noticeably harder for classifiers. "
|
| 1847 |
+
],
|
| 1848 |
+
"image_footnote": [],
|
| 1849 |
+
"bbox": [
|
| 1850 |
+
501,
|
| 1851 |
+
566,
|
| 1852 |
+
815,
|
| 1853 |
+
767
|
| 1854 |
+
],
|
| 1855 |
+
"page_idx": 14
|
| 1856 |
+
},
|
| 1857 |
+
{
|
| 1858 |
+
"type": "text",
|
| 1859 |
+
"text": "subtypes and on images of unseen subtypes. Accuracy on unseen subtypes is our measure of subtype robustness. Seen and unseen accuracies are shown in Figure 9, while the ImageNet-1K classification accuracy before fine-tuning is on the horizontal axis. Despite only having 25 classes and having trained on millions of images, these classifiers demonstrate a subtype robustness performance gap that should be far less pronounced. We also observe that the architectures proposed so far hardly deviate from the trendline. ",
|
| 1860 |
+
"bbox": [
|
| 1861 |
+
174,
|
| 1862 |
+
840,
|
| 1863 |
+
825,
|
| 1864 |
+
922
|
| 1865 |
+
],
|
| 1866 |
+
"page_idx": 14
|
| 1867 |
+
},
|
| 1868 |
+
{
|
| 1869 |
+
"type": "text",
|
| 1870 |
+
"text": "The 25 broad types which we selected from ImageNet are as follows. Amphibian (n01627424), Appliance (n02729837), Aquatic Mammal (n02062017), Bird (n01503061), Bear (n02131653), Beverage (n07881800), Big cat (n02127808), Building (n02913152), Cat (n02121620), Clothing (n03051540), Dog (n02084071), Electronic Equipment (n03278248), Fish (n02512053), Footwear (n03380867), Fruit (n13134947), Fungus (n12992868), Geological Formation (n09287968), Hoofed Animal (n02370806), Insect (n02159955), Musical Instrument (n03800933), Primate (n02469914), Reptile (n01661091), Utensil (n04516672), Vegetable (n07707451), Vehicle (n04576211). ",
|
| 1871 |
+
"bbox": [
|
| 1872 |
+
173,
|
| 1873 |
+
103,
|
| 1874 |
+
826,
|
| 1875 |
+
215
|
| 1876 |
+
],
|
| 1877 |
+
"page_idx": 15
|
| 1878 |
+
}
|
| 1879 |
+
]
|
parse/train/HJz6tiCqYm/HJz6tiCqYm_middle.json
ADDED
|
The diff for this file is too large to render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agt
|
| 4 |
+
|
| 5 |
+
Lehrstuhl fur Robotik und Echtzeitsysteme ¨ Fakultat f¨ ur Informatik¨ Technische Universitat M¨ unchen ¨ bayer.justin@googlemail.com, osendorf@in.tum.de, korhammd@in.tum.de, ntchen86@gmail.com, surban@tum.de, smagt@brml.org
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Recurrent Neural Networks (RNNs) are rich models for the processing of sequential data. Recent work on advancing the state of the art has been focused on the optimization or modelling of RNNs, mostly motivated by adressing the problems of the vanishing and exploding gradients. The control of overfitting has seen considerably less attention. This paper contributes to that by analyzing fast dropout, a recent regularization method for generalized linear models and neural networks from a back-propagation inspired perspective. We show that fast dropout implements a quadratic form of an adaptive, per-parameter regularizer, which rewards large weights in the light of underfitting, penalizes them for overconfident predictions and vanishes at minima of an unregularized training loss. The derivatives of that regularizer are exclusively based on the training error signal. One consequence of this is the absence of a global weight attractor, which is particularly appealing for RNNs, since the dynamics are not biased towards a certain regime. We positively test the hypothesis that this improves the performance of RNNs on four musical data sets.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Recurrent Neural Networks are among the most powerful models for sequential data. The capabilty of representing any measurable sequence to sequence mapping to arbitrary accuracy (Hammer, 2000) makes them universal approximators. Nevertheless they were given only little attention in the last two decades due to the problems of vanishing and exploding gradients (Hochreiter, 1991; Bengio et al., 1994; Pascanu et al., 2012). Error signals either blowing up or decaying exponentially for events many time steps apart rendered them largely impractical for the exact problems they were supposed to solve. This made successful training impossible on many tasks up until recently without resorting to special architectures or abandoning gradient-based optimization. Successful application on tasks with long-range dependencies has thus relied on one of those two paradigms. The former ist to make use of long short-term memory (LSTM) (Hochreiter and Schmidhuber, 1997). These approaches are among the best methods for the modelling of speech and handwriting (Graves et al., 2013, 2008; Graves, 2013). The latter is to to rely on sensible initializations leading to echo-state networks (Jager et al., 2003). ¨
|
| 14 |
+
|
| 15 |
+
The publication of (Martens and Sutskever, 2011) can nowadays be considered a landmark, since it was shown that even standard RNNs can be trained with the right optimization method. While a sophisticated Hessian-free optimizer was employed initially, further research (Sutskever et al., 2013; Bengio et al., 2012) has shown that carefully designed first-order methods can find optima of similar quality.
|
| 16 |
+
|
| 17 |
+
After all, the problem of underfitting standard RNNs can be dealt with to the extent that RNNs are practical in many areas, e.g., language modelling (Sutskever et al., 2011; Mikolov et al., 2010). In contrast, the problem of overfitting in standard RNNs has (due to the lack of necessity) been tackled only by few. As noted in (Pascanu et al., 2012), using priors with a single optima on the parameters may have detrimental effects on the representation capability of RNNs: a global attractor is constructed in parameter space. In the case of a prior with a mode at zero (e.g. an $L 2$ regularizer) this biases the network towards solutions which lets information die out exponentially fast in time, making it impossible to memorize events for an indefinite amount of time.
|
| 18 |
+
|
| 19 |
+
Graves (2011) proposes to stochastically and adaptively distort the weights of LSTM-based RNNs, which is justified from the perspective of variational Bayes and the minimum description length principle. Overfitting is practically non-existent in the experiments conducted. It is untested whether this approach works well for standard RNNs–along the lines of the observations of Pachitariu and Sahani (2013) one might hypothesize that the injected noise disturbs the dynamics of RNNs too much and leads to divergence during training.
|
| 20 |
+
|
| 21 |
+
The deep neural network community has recently embraced a regularization method called dropout (Hinton et al., 2012). The gist is to randomly discard units from the network during training, leading to less interdependent feature detectors in the intermediary layers. Here, dropping out merely means to set the output of that unit to zero. An equivalent view is to set the complete outgoing weight vector to zero of which it is questionable whether a straight transfer of dropout to RNNs is possible. The resulting changes to the dynamics of an RNN during every forward pass are quite dramatic. This is the reason why Pachitariu and Sahani (2013) only use dropout on those parts of the RNN which are not dynamic., i.e. the connections feeding from the hidden into the output layer.
|
| 22 |
+
|
| 23 |
+
Our contribution is to show that using a recent smooth approximation to dropout (Wang and Manning, 2013) regularizes RNNs effectively. Since the approximation is deterministic, we may assert that all dynamic parts of the network operate in reasonable regimes. We show that fast dropout does not keep RNNs from reaching rich dynamics during training, which is not obvious due to the relation of classic dropout to L2 regularization (Wager et al., 2013).
|
| 24 |
+
|
| 25 |
+
The structure of the paper is as follows. We will first review RNNs and fast dropout (FD) (Wang and Manning, 2013). A novel analysis of the derivatives of fast dropout leads to an interpretation where we can perform a decomposition into a loss based on the average output of a network’s units and a regularizer based on its variance. We will discuss why this is a form that is well suited to RNNs and consequently conduct experiments that confirm our hypothesis.
|
| 26 |
+
|
| 27 |
+
# 2 Methods
|
| 28 |
+
|
| 29 |
+
In this section we will first review RNNs and fast dropout. We will then introduce a novel interpretation of what the fast dropout loss constitutes in section 2.2.2 and show relationships to two other regularizers.
|
| 30 |
+
|
| 31 |
+
# 2.1 Recurrent Neural Networks
|
| 32 |
+
|
| 33 |
+
We will define RNNs in terms of two components. For one, we are ultimately interested in an output $\mathbf { y }$ , which we can calculate given the parameters $\theta$ of a network and some input $\mathbf { x }$ . Secondly, we want to learn the parameters, which is done by the design and optimization of a function of the parameters $\mathcal { L } ( \boldsymbol { \theta } )$ , commonly dubbed loss, cost, or error function.
|
| 34 |
+
|
| 35 |
+
Calculating the Output of an RNN Given an input sequence $\mathbf { x } = ( x _ { 1 } , \ldots , x _ { T } ) , x _ { t } \in \mathbb { R } ^ { \kappa }$ we produce an output $\mathbf { y } = ( y _ { 1 } , \dots , y _ { T } ) , y _ { t } \in \mathbb { R } ^ { \omega }$ which is done via an intermediary representation called the hidden state layer ${ \mathbf h } = ( h _ { 1 } , \ldots , h _ { T } ) , h _ { t } \in \mathbb { R } ^ { \gamma } . \ \kappa , \iota$ $\kappa , \omega$ , and $\gamma$ are the dimensionalities of the inputs, outputs, and hidden state at each time step. Each component of the layers is sometimes referred to as a unit or a “neuron”. Depending on the associated layer, these are then input, hidden, or output units. We will also denote the set of units which feed into some unit $i$ as the incoming units of $i$ . The units into which a unit $i$ feeds are called the outgoing units of $i$ . For a recurrent network with a single hidden layer, this is done via iteration of the following equations from $t = 1$ to $T$ :
|
| 36 |
+
|
| 37 |
+
$$
|
| 38 |
+
\begin{array} { r c l } { { h _ { t } } } & { { = } } & { { f _ { h } ( x _ { t } W _ { \mathrm { i n } } + h _ { t - 1 } W _ { \mathrm { r e c } } + b _ { h } ) , } } \\ { { y _ { t } } } & { { = } } & { { f _ { y } ( h _ { t } W _ { \mathrm { o u t } } + b _ { y } ) , } } \end{array}
|
| 39 |
+
$$
|
| 40 |
+
|
| 41 |
+
where $\{ W _ { \mathrm { i n } } , W _ { \mathrm { o u t } } , W _ { \mathrm { r e c } } \}$ are weight matrices and $\{ b _ { h } , b _ { y } \}$ bias vectors. These form the set of parameters $\theta$ together with initial hidden state $h _ { 0 }$ . The dimensionalities of all weight matrices, bias vectors, and initial hidden states are determined by the dimensionalities of the input sequences as well as desired hidden layer and output layer sizes. The functions $f _ { h }$ and $f _ { y }$ are so-called transfer functions and mostly coordinate-wise applied nonlinearities. We will call the activations of units pre-synaptic before the application of $f$ and post-synaptic afterwards. Typical choices include the logistic sigmoid $\begin{array} { r } { f ( \xi ) = \frac { 1 } { 1 + \exp ( - \xi ) } } \end{array}$ , tangent hyperbolicus and, more recently, the rectified linear $f ( \xi ) = \operatorname* { m a x } ( \xi , 0 )$ (Zeiler et al., 2013). If we set the recurrent weight matrix $W _ { \mathrm { r e c } }$ to zero, we recover a standard neural network Bishop (1995) applied independently to each time step.
|
| 42 |
+
|
| 43 |
+
Loss Function and Adaption of Parameters We will restrict ourselves to RNNs for the supervised case, where we are given a data set $\boldsymbol { \mathcal { D } } ~ = ~ \{ ( \mathbf { x } _ { i } , \mathbf { z } _ { i } ) \} _ { i = 1 } ^ { N }$ consisting of $N$ pairs with $\mathbf { \bar { x } } _ { i } ~ \in ~ \mathbb { R } ^ { T \times \kappa }$ and $\mathbf { z } _ { i } ~ \in ~ \mathbb { R } ^ { T \times \omega }$ . Here $T$ refers to the sequence length, which we assume to be constant over the data set. We are interested to adapt the parameters of the network $\theta$ in a way to let each of its outputs $\mathbf { y } _ { i } \in \mathbb { R } ^ { T \times O }$ be close to $\mathbf { z } _ { i }$ . Closeness is typically formulated as a loss function, e.g. the mean squared error $\begin{array} { r } { \mathcal { L } _ { \mathrm { m s e } } ( \boldsymbol { \theta } ) = \sum _ { i } | | \mathbf { z } ^ { ( i ) } - \mathbf { y } ^ { ( i ) } | | _ { 2 } ^ { 2 } } \end{array}$ or the binary cross entropy $\begin{array} { r } { \textstyle \mathcal { L } _ { \mathrm { b c e } } ( \theta ) = \sum _ { i } z ^ { ( i ) } \log y ^ { ( i ) } + ( 1 - z ^ { ( i ) } ) \log ( 1 - y ^ { ( i ) } ) . } \end{array}$ . If a loss $\mathcal { L }$ is locally differentiable, finding good parameters can be performed by gradient-based optimization, such as nonlinear conjugate gradients or stochastic gradient descent. The gradients can be calculated efficiently via back-propagation through time (BPTT) (Rumelhart et al., 1986).
|
| 44 |
+
|
| 45 |
+
# 2.2 Fast Dropout
|
| 46 |
+
|
| 47 |
+
In fast dropout (Wang and Manning, 2013), each unit in the network is assumed to be a random variable. To assure tractability, only the first and second moments of those random variables are kept, which suffices for a very good approximation. Since the pre-synaptic activation of each unit is a weighted sum of its incoming units (of which each is dropped out with a certain probability) we can safely assume Gaussianity for those inputs due to the central limit theorem. As we will see, this is sufficient to find efficient ways to propagate the mean and variance through the non-linearity $f$ .
|
| 48 |
+
|
| 49 |
+
# 2.2.1 Forward propagation
|
| 50 |
+
|
| 51 |
+
We will now inspect the forward propagation for a layer into a single unit, that is
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
\begin{array} { r l } { a = } & { { } ( \mathbf { d } \circ \mathbf { x } ) ^ { T } \mathbf { w } } \\ { y = } & { { } f ( a ) , } \end{array}
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
where $\circ$ denotes the element-wise product and $f$ is a non-linear transfer function as before. Let the input layer $\mathbf { x }$ to the unit be Gaussian distributed with diagonal covariance by assumption: $\mathbf { x } \sim$ $\mathcal { N } ( \mu _ { \mathbf { x } } , \sigma _ { \mathbf { x } } ^ { 2 } )$ . Furthermore, we have Bernoulli distributed variables indicating whether an incoming unit is not being dropped out organized in a vector $\mathbf { d }$ with $d _ { i } \sim B ( p )$ , $p$ being the complementary drop out rate. The weight vector w is assumed to be constant.
|
| 58 |
+
|
| 59 |
+
A neural network will in practice consist of many such nodes, with some of them, the output units, directly contributing to the loss function $\mathcal { L }$ . Others, the input units, will not stem from calculation but come from the data set. Each component of $\mathbf { x }$ represents an incoming unit, which might be an external input to the network or a hidden unit. In general, $y$ will have a complex distribution depending highly on the nature of $f$ . Given that the input to a function $f$ is Gaussian distributed, we obtain the mean and variance of the output as follows:
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\begin{array} { r c l } { \displaystyle \mathbf { E } [ y ] = f _ { \mu } ( a ) } & { = } & { \displaystyle \int f ( x ) \mathcal { N } ( x | \mathbf { E } [ a ] , \mathbf { V } [ a ] ) d x , } \\ { \displaystyle \mathbf { V } [ y ] = f _ { \sigma } ( a ) } & { = } & { \displaystyle \int ( f ( x ) - f _ { \mu } ( a ) ) ^ { 2 } \mathcal { N } ( x | \mathbf { E } [ a ] , \mathbf { V } [ a ] ) d x . } \end{array}
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
Forward propagation through the non-linearity $f$ for calculation of the post-synaptic activation can be approximated very well in the case of the logistic sigmoid and the tangent hyperbolicus and done exactly in case of the rectifier (for details, see Wang and Manning (2013)). While the rectifier has been previously reported to be a useful ingredient in RNNs (Bengio et al., 2012) we found that it leads to unstable learning behaviour in preliminary experiments and thus neglected it in this study, solely focusing on the tangent hyperbolicus. Other popular transfer functions, such as the softmax, need to be approximated either via sampling or an unscented transform (Julier and Uhlmann, 1997).
|
| 66 |
+
|
| 67 |
+
To obtain a Gaussian approximation for $\boldsymbol { a } = ( \mathbf { d } \circ \mathbf { x } ) ^ { T } \mathbf { w }$ , we will use $\hat { a } \sim \mathcal N ( \mathrm { E } [ a ] , \mathrm { V } [ a ] )$ . The mean and variance of $a$ can be obtained as follows. Since $\mathbf { d }$ and $\mathbf { x }$ are independent it follows that
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
\mathbf { E } [ a ] = \mathbf { E } [ ( \mathbf { x } \circ \mathbf { d } ) ^ { T } \mathbf { w } ] = ( \mathbf { E } [ \mathbf { x } ] \circ \mathbf { E } [ \mathbf { d } ] ) ^ { T } \mathbf { w } .
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
For independent random variables $A$ and $B$ , $\mathbf { V } [ A B ] = \mathbf { V } [ A ] \mathrm { E } [ B ] ^ { 2 } + \mathrm { E } [ A ] ^ { 2 } \mathbf { V } [ B ] + \mathbf { V } [ A ] \mathbf { V } [ B ]$ . If we assume the components of $\mathbf { x }$ to be independent, we can write
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
\mathbf { V } [ a ] = ( p ( 1 - p ) \mu _ { \mathbf { x } } ^ { 2 } + p \sigma _ { \mathbf { x } } ^ { 2 } ) ^ { T } \mathbf { w } ^ { 2 } .
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
Furthermore the independency assumption is necessary such that the Lyapunov condition is satisfied (Lehmann, 1999) for the the central limit theorem to hold, ensuring that $a$ is approximately Gaussian.
|
| 80 |
+
|
| 81 |
+
Propagating the mean and the variance through $f$ via $f _ { \mu }$ and $f _ { \sigma }$ suffices for determining the presynaptic moments of the outgoing units. At the output $\mathbf { y }$ of the whole model, we will simplify matters and ignore the variance. Some loss functions take the variance into account (e.g., a Gaussian log-likelihood as done in (Bayer et al., 2013)). Sampling can be a viable alternative as well.
|
| 82 |
+
|
| 83 |
+
Fast Dropout for RNNs The extension of fast dropout to recurrent networks is straightforward from a technical perspective. First, we note that we can concatenate the input vector at time step $t$ , $x _ { t }$ and the hidden state at the previous layer $h _ { t - 1 }$ into a single vector: $c _ { t } = [ h _ { t - 1 } , x _ { t } ]$ . We obtain a corresponding weight matrix by concatenation of the input to hidden and recurrent weight matrices $W _ { \mathrm { i n } }$ and $W _ { \mathrm { r e c } }$ : $W _ { c } = [ W _ { \mathrm { r e c } } , W _ { \mathrm { i n } } ]$ . We can thus reduce the computation to the step from above.
|
| 84 |
+
|
| 85 |
+
# 2.2.2 Beyond the Backward Pass: A Regularization Term
|
| 86 |
+
|
| 87 |
+
Given the forward pass, we used automatic differentiation with Theano (Bergstra et al., 2010) to calculate the gradients. Nevertheless, we will contribute a close inspection of the derivatives. This will prove useful since it makes it possible to interpret fast dropout as an additional regularization term independent of the exact choice of loss function.
|
| 88 |
+
|
| 89 |
+
Consider a loss $\mathcal { L } ( \mathcal { D } ; \theta )$ which is a function of the data $\mathcal { D }$ and parameters $\theta ^ { 2 }$ . In machine learning, we wish this loss to be minimal under unseen data $\mathcal { D }$ although we only have access to a training set $\mathcal { D } _ { \mathrm { t r a i n } }$ . A typical approach is to optimize another loss $\mathcal { I } ( \mathcal { D } _ { \mathrm { t r a i n } } ; \theta )$ as a proxy in the hope that a good minimum of it will correspond to a good minimum of $\mathcal { L }$ for unseen data. Learning is often done by the optimization of $\mathcal { I } = \mathcal { L } + \mathcal { R }$ , where $\mathcal { R }$ is called a regularizer. A common example of a regularizer is to place a prior on the parameters, in which case it is a function of $\theta$ and corresponds to the log-likelihood of the parameters. For weight decay, this is a spherical Gaussian with inverse scale $\lambda$ , i.e. $\mathcal { R } _ { \mathrm { w d } } ( \theta ) = \lambda | | \dot { \theta | } | _ { 2 } ^ { 2 }$ . Regularizers can be more sophisticated, e.g. Rifai et al. (2011) determine directions in input space to which a model’s outputs should be invariant. More recently, dropout (i.e. non-fast dropout) for generalized linear models has been intepreted as a semi-supervised regularization term encouraging confident predictions by Wager et al. (2013).
|
| 90 |
+
|
| 91 |
+
While it seems difficult to bring the objective function $\mathcal { I } _ { \mathrm { f d } } ( \mathcal { D } ; \theta )$ of fast dropout into the form of $\mathcal { L } + \mathcal { R }$ , it is possible with the derivatives of each node. For this, we perform back-propagation like calculations.
|
| 92 |
+
|
| 93 |
+
Let $\boldsymbol { a } = ( \mathbf { d } \circ \mathbf { x } ) ^ { T } \mathbf { w }$ and $y = f ( a )$ be the pre- and post-synaptic activations of a component of a layer in the network. First note that $\partial \mathcal { I } / \partial w _ { i } = \partial \mathcal { I } / \partial a \cdot \partial a / \partial w _ { i }$ according to the chain rule. Since $a$ is a random variable, it will be described in one of two forms. In the case of a Gaussian approximation, we will summarize it in terms of its mean and variance; this approach is used if propagation through $f$ is possible in closed form. In the case of sampling, we will have a single instantiation $\hat { a }$ of the random variable, which we can propagate through $f$ . An analysis of both cases is as follows.
|
| 94 |
+
|
| 95 |
+
Gaussian approximation We find the derivative of $\mathcal { I }$ with respect to one of its incoming weights $w _ { i }$ to be
|
| 96 |
+
|
| 97 |
+
$$
|
| 98 |
+
\frac { \partial \mathcal { I } } { \partial w _ { i } } = \frac { \partial \mathcal { I } } { \partial \mathrm { E } [ a ] } \frac { \partial \mathrm { E } [ a ] } { \partial w _ { i } } + \frac { \partial \mathcal { I } } { \partial \mathrm { V } [ a ] } \frac { \partial \mathrm { V } [ a ] } { \partial w _ { i } } .
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
We know that $\mathbf { E } [ a ] = ( \mathbf { x } \circ \mathbf { d } ) ^ { T } \mathbf { w }$ and thus $\partial \mathrm { E } [ a ] / \partial w _ { i } = x _ { i } d _ { i }$ . This can be recognized as the standard back-propagation term if we consider the dropout variable $d _ { i }$ as fixed. We will thus define
|
| 102 |
+
|
| 103 |
+
$$
|
| 104 |
+
\frac { \partial \mathcal { L } ^ { a } } { \partial w _ { i } } : = \frac { \partial \mathcal { T } } { \partial \mathrm { E } [ a ] } \frac { \partial \mathrm { E } [ a ] } { \partial w _ { i } } ,
|
| 105 |
+
$$
|
| 106 |
+
|
| 107 |
+
and subsequently refer to it as the local derivative of the training loss. The second term can be analysed similarly. We apply the chain-rule once more which yields
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
{ \frac { \partial { \mathcal { T } } } { \partial \mathbf { V } [ a ] } } { \frac { \partial \mathbf { V } [ a ] } { \partial w _ { i } } } = \underbrace { { \frac { \partial { \mathcal { T } } } { \partial \mathbf { V } [ a ] } } } _ { : = \delta ^ { a } } { \frac { \partial \mathbf { V } [ a ] } { \partial w _ { i } ^ { 2 } } } { \frac { \partial w _ { i } ^ { 2 } } { \partial w _ { i } } } .
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
for which any further simplification of $\delta ^ { a }$ depends on the exact form of $\mathcal { I }$ . The remaining two factors can be written down explicitly, i.e.
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
\begin{array} { r c l } { { \displaystyle \frac { \partial { \bf V } [ a ] } { \partial w _ { i } ^ { 2 } } } } & { { = } } & { { p ( 1 - p ) { \bf E } [ x _ { i } ] ^ { 2 } + p { \bf V } [ x _ { i } ] , } } \\ { { \displaystyle \frac { \partial w _ { i } ^ { 2 } } { \partial w _ { i } } } } & { { = } } & { { 2 w _ { i } . } } \end{array}
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
Setting
|
| 120 |
+
|
| 121 |
+
$$
|
| 122 |
+
\begin{array} { r l } { \eta _ { i } ^ { a } : = } & { { } | \delta ^ { a } | \frac { \partial \mathsf { V } [ a ] } { \partial w _ { i } ^ { 2 } } } \\ { = } & { { } | \delta ^ { a } | p \big [ ( 1 - p ) \mathsf { E } [ x _ { i } ] ^ { 2 } + \mathsf { V } [ x _ { i } ] \big ] } \\ { > } & { { } 0 } \end{array}
|
| 123 |
+
$$
|
| 124 |
+
|
| 125 |
+
we conclude that
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
\begin{array} { r c l } { \displaystyle \frac { \partial \mathcal { I } } { \partial \mathbf { V } [ a ] } \frac { \partial \mathbf { V } [ a ] } { \partial w _ { i } } } & { = } & { 2 \operatorname { s g n } ( \delta ^ { a } ) \eta ^ { a } w _ { i } } \\ & & { = : \mathbf { \nabla } \frac { \partial \mathcal { R } _ { \mathrm { a p p r o x } } ^ { a } } { \partial w _ { i } } . } \end{array}
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
In alignment with Equation (3) this lets us arrive at
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
\frac { \partial \mathcal { I } } { \partial w _ { i } } = \frac { \partial \mathcal { L } ^ { a } } { \partial w _ { i } } + \frac { \partial \mathcal { R } _ { \mathrm { a p p r o x } } ^ { a } } { \partial w _ { i } } ,
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+
and offers an interpretation of fast dropout as an additive regularization term. An important and limiting aspect of this decomposition is that it only holds locally at $a$ .
|
| 138 |
+
|
| 139 |
+
We note that depending on the sign of the error signal $\delta ^ { a }$ , fast dropout can take on three different behaviours:
|
| 140 |
+
|
| 141 |
+
· $\delta ^ { a } = 0$ The error signal is zero and thus the variance of the unit considered to be optimal for the loss. The fast dropout term vanishes; this is especially true at optima of the overall loss.
|
| 142 |
+
· $\delta ^ { a } < 0$ The unit should increase its variance. The exact interpretation of this depends on the loss, but in many cases this is related to the expectation of the unit being quite erroneous and leads to an increase of scatter of the output. The fast dropout term encourages a quadratic growth of the weights.
|
| 143 |
+
• $\delta ^ { a } > 0$ The unit should decrease its variance. As before, this depends on the exact loss function but will mostly be related to the expectation of the unit being quite right which makes a reduction of scatter desirable. The fast dropout term encourages a quadratic shrinkage of the weights.
|
| 144 |
+
|
| 145 |
+

|
| 146 |
+
Figure 1: Visualizations of the behaviour of $\delta ^ { a }$ for a single unit. The axes correspond to the presynaptic mean $\operatorname { E } [ a ]$ and variance $\mathrm { v } [ a ]$ feeding into a unit $y = f ( a )$ . A loss measuring the divergence from the target value 0.2 is then applied and indices the color on a logarithmic scale. The gradients of the loss are shown as a vector field plot. Squared error is shown on the left, Gaussian log-likelihood in the middle and Bernoulli log-likelihood on the right. For the first two plots, the optimium is in the middle, for the last it is a little to the left.
|
| 147 |
+
|
| 148 |
+
This behaviour can be illustrated for output units by numerically inspecting the values and gradients of the pre-synaptic moments given a loss. For that we consider a single unit $y = f ( a )$ and a loss $d ( y , z )$ measuring the divergence of its output to a target value $z$ . The pre-synaptic variance $\mathrm { v } [ a ]$ can enter the loss not at all or in one of two ways, respected by either the loss (see (Bayer et al., 2013)) or the transfer function. Three examples for this are
|
| 149 |
+
|
| 150 |
+
1. Squared loss on the mean, i.e. $d ( y , z ) = ( \operatorname { E } [ y ] - t ) ^ { 2 }$ with $y = a$ ,
|
| 151 |
+
2. Gaussian log-likelihood on the moments, i.e. $\begin{array} { r } { d ( y , z ) \propto \frac { \left( \mathrm { E } [ y ] - t \right) ^ { 2 } } { 2 \mathrm { V } [ y ] } + \log \sqrt { 2 \pi \mathrm { V } [ y ] } } \end{array}$ with $y = a ,$
|
| 152 |
+
3. Negative Bernoulli cross entropy, i.e. $d ( y , z ) = z \log \mathrm { E } [ y ] + ( 1 - z ) \log ( 1 - \mathrm { E } [ y ] )$ with $\begin{array} { r } { y = \frac { 1 } { 1 + \exp ( - a ) } } \end{array}$ .
|
| 153 |
+
|
| 154 |
+
We visualize the pre-synaptic mean and variance, their gradients and their respective loss values in Figure 1. For the two latter cases, erroneous units first increase the variance, then move towards the correct mean and subsequently reduce the variance.
|
| 155 |
+
|
| 156 |
+
Sampling An already mentioned alternative to the forward propagation of $\operatorname { E } [ a ]$ and $\mathrm { v } [ a ]$ through $f$ is to incarnate $\hat { a }$ via sampling and calculate $f ( \hat { a } )$ . Let $s \sim \mathcal { N } ( 0 , 1 )$ and $\hat { a } = \mathrm { E } [ a ] + s \sqrt { \mathrm { V } [ a ] }$ . We can then use $\hat { a }$ explicitly and it follows that
|
| 157 |
+
|
| 158 |
+
$$
|
| 159 |
+
\frac { \partial \mathcal { I } } { \partial \hat { a } } \frac { \partial \hat { a } } { \partial w _ { i } } = \frac { \partial \mathcal { I } } { \partial \hat { a } } \left[ \frac { \partial \hat { a } } { \partial \mathrm { E } [ a ] } \frac { \partial \mathrm { E } [ a ] } { \partial w _ { i } } + \frac { \partial \hat { a } } { \partial \mathrm { V } [ a ] } \frac { \partial \mathrm { V } [ a ] } { \partial w _ { i } } \right] .
|
| 160 |
+
$$
|
| 161 |
+
|
| 162 |
+
Again, we recognize ${ \partial { \mathcal J } } / { \partial { \hat { a } } } \cdot { \partial { \hat { a } } } / { \partial \mathrm { E } } [ a ] \cdot { \partial \mathrm { E } } [ a ] / { \partial w _ { i } } \ = \ { \partial { \mathcal J } } / { \partial { \hat { a } } } \ x _ { i } d _ { i }$ as the standard backpropagation formula with dropout variables.
|
| 163 |
+
|
| 164 |
+
The variance term can be written as
|
| 165 |
+
|
| 166 |
+
$$
|
| 167 |
+
{ \frac { \partial { \mathcal { I } } } { \partial { \hat { a } } } } { \frac { \partial { \mathcal { I } } } { \partial \mathbf { V } [ a ] } } { \frac { \partial \mathbf { V } [ a ] } { \partial w _ { i } } } = { \frac { \partial { \mathcal { I } } } { \partial { \hat { a } } } } { \frac { \partial { \hat { a } } } { \partial { \sqrt { \mathbf { V } [ a ] } } } } { \frac { \partial { \sqrt { \mathbf { V } [ a ] } } } { \partial \mathbf { V } [ a ] } } { \frac { \partial \mathbf { V } [ a ] } { \partial w _ { i } ^ { 2 } } } { \frac { \partial w _ { i } ^ { 2 } } { \partial w _ { i } } }
|
| 168 |
+
$$
|
| 169 |
+
|
| 170 |
+
which, making use of results from earlier in the section is equivalent to
|
| 171 |
+
|
| 172 |
+
$$
|
| 173 |
+
\begin{array} { r l r } { \displaystyle \frac { \partial { \mathcal I } } { \partial \hat { a } } \frac { \partial { \mathcal J } } { \partial { \bf V } [ a ] } \frac { \partial { \bf V } [ a ] } { \partial w _ { i } } } & { = } & { \displaystyle \frac { \partial { \mathcal J } } { \partial \hat { a } } \sqrt { p ( 1 - p ) { \bf E } [ x _ { i } ] ^ { 2 } + p { \bf V } [ x _ { i } ] } s . } \end{array}
|
| 174 |
+
$$
|
| 175 |
+
|
| 176 |
+
The value of this is a zero-centred Gaussian random variable, since $s$ is Gaussian. The scale is independent of the current weight value and only determined by the post-synaptic moments of the incoming unit, the dropout rate and the error signal. We conclude, that also in this case, we can write
|
| 177 |
+
|
| 178 |
+
$$
|
| 179 |
+
\begin{array} { r c l } { \displaystyle \frac { \partial \mathcal { T } } { \partial w _ { i } } } & { = } & { \displaystyle \frac { \partial \mathcal { L } ^ { a } } { \partial w _ { i } } + \frac { \partial \mathcal { R } _ { \mathrm { d r a w } } ^ { a } } { \partial w _ { i } } , } \end{array}
|
| 180 |
+
$$
|
| 181 |
+
|
| 182 |
+
where ${ \partial \mathcal { R } _ { \mathrm { d r a w } } ^ { a } } / { \partial \boldsymbol { w } _ { i } }$ is defined as in Equation (4) and essentially an adaptive noise term.
|
| 183 |
+
|
| 184 |
+
We want to stress the fact that in the approximation as well as in the sampling case the regularization term vanishes at any optima of the training loss. A consequence of this is that no global attractor is formed, which makes the method theoretically useful for RNNs. One might argue that fast dropout should not have a regularizing effect all. Yet, regularization is not only influencing the final solution but also the optimization, leading to different optima.
|
| 185 |
+
|
| 186 |
+
Relationship to Weight Decay As already mentioned, imposing a Gaussian distribution centred at the origin with precision $\lambda$ as a prior on the weights leads to a method called weight decay. It is not only probabilistically sound but also works well empirically, see e.g. (Bishop et al., 2006). Recalling that the derivative of weight decay is of the form $\partial \mathcal { R } _ { \mathrm { w d } } / \partial w _ { i } = 2 \lambda w _ { i }$ we can reinterpret $\mathcal { R } _ { \mathrm { a p p r o x } }$ as a weight decay term where the coefficient $\lambda$ is weight-wise, dependent on the current activations and possibly negative. Weight decay will always be slightly wrong on the training set, since the derivative of the weight decay term has to match the one of the unregularized loss. In order for $\partial \mathcal { L } / \partial \theta + \partial \mathcal { R } _ { \mathrm { w d } } / \partial \theta$ to be minimal, $\mathcal { L }$ cannot be minimal unless so is $\mathcal { R }$ .
|
| 187 |
+
|
| 188 |
+
Relationship to Adaptive Weight Noise In this method (Graves, 2011) not the units but the weights are stochastic, which is in pratice implemented by performing Monte Carlo sampling. We can use a similar technique to FD to find a closed form approximation. In this case, a layer is $y = f ( \mathbf { x } ^ { T } \mathbf { w } )$ , where we have no dropout variables and the weights are Gaussian distributed with $\begin{array} { r } { \mathbf { \ d } \mathbf { \ b { v } } \sim \mathcal { N } ( \mu _ { \mathbf { w } } , \sigma _ { \mathbf { w } } ^ { 2 } ) . } \end{array}$ , with covariance diagonal and organized into a vector. We assume Gaussian density for $a = \mathbf { x } ^ { T } \mathbf { w }$ . Using similar algebra as above, we find that
|
| 189 |
+
|
| 190 |
+
$$
|
| 191 |
+
\begin{array} { r c l } { \mathbf { E } [ a ] } & { = } & { \boldsymbol { \mu } _ { \mathbf { x } } ^ { T } \boldsymbol { \mu } _ { \mathbf { w } } , } \\ { \mathbf { V } [ a ] } & { = } & { \boldsymbol { \sigma } _ { \mathbf { x } } ^ { 2 T } \boldsymbol { \mu } _ { \mathbf { w } } ^ { 2 } + \boldsymbol { \sigma } _ { \mathbf { x } } ^ { 2 T } \boldsymbol { \sigma } _ { \mathbf { w } } ^ { 2 } + \boldsymbol { \mu } _ { \mathbf { x } } ^ { 2 T } \boldsymbol { \sigma } _ { \mathbf { w } } ^ { 2 } . } \end{array}
|
| 192 |
+
$$
|
| 193 |
+
|
| 194 |
+
It is desirable to determine whether fast dropout and “fast adaptive weight noise” are special cases of each other. Showing that the aproaches are different can be done by equating equations (1) and (5) and solving for $\mu _ { \mathbf { w } }$ . This shows that rescaling by $1 - p$ suffices in the case of the expectation. It is however not as simple as that for the variance, i.e. for equations (2) and (6), where the solution depends on $\mu _ { \mathbf { x } }$ and $\sigma _ { \mathbf { x } } ^ { \hat { 2 } }$ and thus is not independent of the input to the network. Yet, both methods share the property that no global attractor is present in the loss: the “prior” is part of the optimization and not fixed.
|
| 195 |
+
|
| 196 |
+
# 2.3 Bag of Tricks
|
| 197 |
+
|
| 198 |
+
Throughout the experiments we will resort to several “tricks” that have been introduced recently for more stable and efficient optimization of neural networks and RNNs especially. First, we make use of rmsprop (Tieleman and Hinton, 2012), an optimizer which divides the gradient by an exponential moving average of its squares. This approach is similar to Adagrad (Duchi et al., 2011), which uses a window based average. We found that enhancing rmsprop with Nesterov’s accelerated gradient (Sutskever, 2013) greatly reduces the training time in preliminary experiments.
|
| 199 |
+
|
| 200 |
+
To initialize the RNNs to stable dynamics we followed the initialization protocol of (Sutskever et al., 2013) of setting the spectral radius $\rho$ to a specific value and the maximum amount of incoming connections of a unit to $\nu$ ; we did not find it necessary to centre the inputs and outputs. The effect of not only using the recurrent weight matrix for propagating the states through time but also its element-wise square for advancing the variances can be quantified. The stability of a network is coupled to the spectral radius of the recurrent weight matrix $\rho ( W _ { \mathrm { r e c } } )$ ; thus, the stability of forward propagating the variance is related to the spectral radius of its element-wise square $\rho ( W _ { \mathrm { r e c } } ^ { 2 } )$ . Since $\rho ( A B ) \le \rho ( A ) \rho ( B )$ for non-negative matrices and non-singular matrices $A$ and $B$ (Horn and Johnson, 2012), setting $W _ { \mathrm { r e c } }$ to full rank and its spectral radius to $\rho ( W _ { \mathrm { r e c } } )$ assures $\rho ( W _ { \mathrm { r e c } } ^ { 2 } ) = \rho ( | W _ { \mathrm { r e c } } | ^ { 2 } ) \leq \rho ( W _ { \mathrm { r e c } } ) ^ { 2 }$ , where $| \cdot |$ denotes taking the absolute value element-wise. We also use the gradient clipping method introduced in (Pascanu et al., 2012), with a fixed threshold of 225.
|
| 201 |
+
|
| 202 |
+
Since the hidden-to-hidden connections and the hidden-to-output connections in an RNN can make use of hidden units in quite distinct ways, we found it beneficial to separate the dropout rates. Specifically, a hidden unit may have a different probability to be dropped out when feeding into
|
| 203 |
+
|
| 204 |
+
Table 1: Results on the midi data sets. All numbers are average negative log-likelihoods on the test set, where “FD” represents our work; “plain” and “RNN-NADE” results are from (Bengio et al., 2012) while “Deep RNN“ shows the best results from (Pascanu et al., 2013). Note that “RNN-NADE” and “Deep RNN“ employ various extensions of the model structure of this work, i.e. structured outputs and various forms of depths. Our results are the best for the shallow RNN model considered in this work.
|
| 205 |
+
|
| 206 |
+
<table><tr><td>Data set</td><td>FD</td><td>plain</td><td>RNN-NADE</td><td>Deep RNN</td></tr><tr><td>Piano-midi.de</td><td>7.39</td><td>7.58</td><td>7.05</td><td>1</td></tr><tr><td>Nottingham</td><td>3.09</td><td>3.43</td><td>2.31</td><td>2.95</td></tr><tr><td>MuseData</td><td>6.75</td><td>6.99</td><td>5.60</td><td>6.59</td></tr><tr><td>JSBChorales</td><td>8.01</td><td>8.58</td><td>5.19</td><td>7.92</td></tr></table>
|
| 207 |
+
|
| 208 |
+
the hidden layer at the next time step than when feeding into the output layer. Taking this one step further, we also consider networks in which we completely neglect fast dropout for the hidden-tooutput connections; an ordinary forward pass is used instead. Note that this is not the same as setting the dropout rate to zero, since the variance of the incoming units is completely neglected. Whether this is done is treated as another hyperparameter for the experiment.
|
| 209 |
+
|
| 210 |
+
# 3 Experiments and Results
|
| 211 |
+
|
| 212 |
+
# 3.1 Musical Data
|
| 213 |
+
|
| 214 |
+
All experiments were done by performing a random search (Bergstra and Bengio, 2012) over the hyper parameters (see Table 2 in the Appendix for an overview), where 32 runs were performed for each data set. We report the test loss of the model with the lowest validation error over all training runs, using the same split as in (Bengio et al., 2012). To improve speed, we organize sequences into minibatches by first splitting all sequences of the training and validation set into chunks of length of 100. Zeros are prepended to those sequences which have less than 100 time steps. The test error is reported on the unsplitted sequences.
|
| 215 |
+
|
| 216 |
+
Training RNNs to generatively model polyphonic music is a valuable benchmark for RNNs due to its high dimensionality and the presense of long as well as short term dependencies. This data set has been evaluated previously by Bengio et al. (2012) where the model achieving the best results, RNN-NADE (Boulanger-Lewandowski et al., 2013), makes specific assumptions about the data (i.e. binary observables). RNNs do not attach any assumptions to the inputs.
|
| 217 |
+
|
| 218 |
+
# 3.1.1 Setup
|
| 219 |
+
|
| 220 |
+
The data consists of four distinct data sets, namely Piano-midi.de (classical piano music), Nottingham (folk music), MuseData (orchestral) and JSBChorales (chorales by Johann Sebastian Bach). Each has a dimensionality of 88 per time step organized into different piano rolls which are sequences of binary vectors; each component of these vectors indicates whether a note is occuring at the given time step. We use the RNN’s output to model the sufficient statistics of a Bernoulli random variable, i.e.
|
| 221 |
+
|
| 222 |
+
$$
|
| 223 |
+
p ( x _ { t , i } | \mathbf { x } _ { 1 : t - 1 } ) = y _ { t , i } ,
|
| 224 |
+
$$
|
| 225 |
+
|
| 226 |
+
which describes the probability that note $i$ is present at time step $t$ . The output non-linearity $f _ { y }$ of the network is a sigmoid which projects the points to the interval $( 0 , 1 )$ . We perform learning by the minimization of the average negative log-likelihood (NLL); in this case, this is the average binary cross-entropy
|
| 227 |
+
|
| 228 |
+
$$
|
| 229 |
+
\mathcal { L } ( \boldsymbol { \theta } ) = \frac { 1 } { T - 1 } \frac { 1 } { N } \sum _ { i , t , k } x _ { t , i } ^ { ( k ) } \log y _ { t - 1 , i } ^ { ( k ) } + ( 1 - x _ { t , i } ^ { ( k ) } ) \log ( 1 - y _ { t - 1 , i } ^ { ( k ) } ) ,
|
| 230 |
+
$$
|
| 231 |
+
|
| 232 |
+
where $k$ indices the training sample, $i$ the component of the target and $t$ the time step.
|
| 233 |
+
|
| 234 |
+

|
| 235 |
+
Figure 2: Spectral radius over the training process. It increases first and then slowly decreases until a certain value is reached. We did not observe this behaviour when training plain RNNs.
|
| 236 |
+
|
| 237 |
+
# 3.1.2 Results
|
| 238 |
+
|
| 239 |
+
Although a common metric for evaluating the performance of such benchmarks is that of accuracy (Bay et al., 2009) we restrict ourselves to that of the NLL–the measure of accuracy is not what is optimized and to which the NLL is merely a proxy. We present the results of FD-RNNs compared with the various other methods in Table 1. Our method is only surpassed by methods which either incorporate more specific assumptions of the data or employ various forms of depth (BoulangerLewandowski et al., 2013; Pascanu et al., 2013). We want to stress that we performed only 32 runs for each data set once more. This shows the relative ease to obtain good results despite of the huge space of potential hyper parameters.
|
| 240 |
+
|
| 241 |
+
One additional observation is the range of the Eigenvalues of the recurrent weight matrix $W _ { \mathrm { r e c } }$ during training. We performed an additional experiment on JSBChorales where we inspected the Eigenvalues and and the test loss. We found that the spectral radius first increases sharply to a rather high value and then decreases slowly to settle to a specific value. We tried to replicate this behaviour in plain RNNs, but found that RNNs never exceeded a certain spectral radius at which they stuck. This stands in line with the observation from Section 2.2.2 that weights are encouraged to grow when the error is high and shrink during convergence to the optimum. See Figure 2 for a plot of the spectral radius $\rho ( W _ { \mathrm { r e c } } )$ over the training process stages.
|
| 242 |
+
|
| 243 |
+
# 4 Conclusion
|
| 244 |
+
|
| 245 |
+
We have contributed to the field of neural networks in two ways. First, we have analysed a fast approximation of the dropout regularization method by bringing its derivative into the same form as that of a loss regularized with an additive term. We have used this form to gain further insights upon the behaviour of fast dropout for neural networks in general and shown that this objective function does not bias the solutions to those which perform suboptimal on the unreguarized loss. Second, we have hypothesized that this is beneficial especially for RNNs We confirmed this hypothesis by conducting quantitative experiments on an already established benchmark used in the context of learning recurrent networks.
|
| 246 |
+
|
| 247 |
+
# References
|
| 248 |
+
|
| 249 |
+
Bay, M., Ehmann, A. F., and Downie, J. S. (2009). Evaluation of multiple-f0 estimation and tracking systems. In ISMIR, pages 315–320.
|
| 250 |
+
Bayer, J., Osendorfer, C., Urban, S., et al. (2013). Training neural networks with implicit variance. In Proceedings of the 20th International Conference on Neural Information Processing , ICONIP2013.
|
| 251 |
+
Bengio, Y., Boulanger-Lewandowski, N., and Pascanu, R. (2012). Advances in optimizing recurrent networks. arXiv preprint arXiv:1212.0901.
|
| 252 |
+
Bengio, Y., Simard, P., and Frasconi, P. (1994). Learning long-term dependencies with gradient descent is difficult. Neural Networks, IEEE Transactions on, 5(2):157–166.
|
| 253 |
+
Bergstra, J. and Bengio, Y. (2012). Random search for hyper-parameter optimization. The Journal of Machine Learning Research, 13:281–305.
|
| 254 |
+
Bergstra, J., Breuleux, O., Bastien, F., Lamblin, P., Pascanu, R., Desjardins, G., Turian, J., WardeFarley, D., and Bengio, Y. (2010). Theano: a CPU and GPU math expression compiler. In Proceedings of the Python for Scientific Computing Conference (SciPy). Oral Presentation.
|
| 255 |
+
Bishop, C. M. (1995). Neural networks for pattern recognition. Oxford university press.
|
| 256 |
+
Bishop, C. M. et al. (2006). Pattern recognition and machine learning, volume 1. springer New York.
|
| 257 |
+
Boulanger-Lewandowski, N., Bengio, Y., and Vincent, P. (2013). High-dimensional sequence transduction. In ICASSP.
|
| 258 |
+
Duchi, J., Hazan, E., and Singer, Y. (2011). Adaptive subgradient methods for online learning and stochastic optimization. The Journal of Machine Learning Research, 999999:2121–2159.
|
| 259 |
+
Graves, A. (2011). Practical variational inference for neural networks. In Advances in Neural Information Processing Systems, pages 2348–2356.
|
| 260 |
+
Graves, A. (2013). Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850.
|
| 261 |
+
Graves, A., Fernandez, S., Liwicki, M., Bunke, H., and Schmidhuber, J. (2008). Unconstrained ´ online handwriting recognition with recurrent neural networks. Advances in Neural Information Processing Systems, 20:1–8.
|
| 262 |
+
Graves, A., Mohamed, A.-r., and Hinton, G. (2013). Speech recognition with deep recurrent neural networks. arXiv preprint arXiv:1303.5778.
|
| 263 |
+
Hammer, B. (2000). On the approximation capability of recurrent neural networks. Neurocomputing, 31(1):107–123.
|
| 264 |
+
Hinton, G. E., Srivastava, N., Krizhevsky, A., Sutskever, I., and Salakhutdinov, R. R. (2012). Improving neural networks by preventing co-adaptation of feature detectors. arXiv preprint arXiv:1207.0580.
|
| 265 |
+
Hochreiter, S. (1991). Untersuchungen zu dynamischen neuronalen netzen. Master’s thesis, Institut fur Informatik, Technische Universit ¨ at, M ¨ unchen ¨ .
|
| 266 |
+
Hochreiter, S. and Schmidhuber, J. (1997). Long short-term memory. Neural computation, 9(8):1735–1780.
|
| 267 |
+
Horn, R. A. and Johnson, C. R. (2012). Matrix analysis. Cambridge university press.
|
| 268 |
+
Jager, H. et al. (2003). Adaptive nonlinear system identification with echo state networks. ¨ networks, 8:9.
|
| 269 |
+
Julier, S. J. and Uhlmann, J. K. (1997). New extension of the kalman filter to nonlinear systems. In AeroSense’97, pages 182–193. International Society for Optics and Photonics.
|
| 270 |
+
Lehmann, E. L. (1999). Elements of large-sample theory. Springer Verlag.
|
| 271 |
+
Martens, J. and Sutskever, I. (2011). Learning recurrent neural networks with hessian-free optimization. Proc. 28th Int. Conf. on Machine Learning.
|
| 272 |
+
Mikolov, T., Karafiat, M., Burget, L., Cernocky, J., and Khudanpur, S. (2010). Recurrent neural ´ network based language model. Proceedings of Interspeech.
|
| 273 |
+
Pachitariu, M. and Sahani, M. (2013). Regularization and nonlinearities for neural language models: when are they needed? arXiv preprint arXiv:1301.5650.
|
| 274 |
+
Pascanu, R., Gulcehre, C., Cho, K., and Bengio, Y. (2013). How to construct deep recurrent neural networks. arXiv preprint arXiv:1312.6026.
|
| 275 |
+
Pascanu, R., Mikolov, T., and Bengio, Y. (2012). On the difficulty of training recurrent neural networks. Technical report, Technical Report.
|
| 276 |
+
Rifai, S., Dauphin, Y. N., Vincent, P., Bengio, Y., and Muller, X. (2011). The manifold tangent classifier. In Advances in Neural Information Processing Systems, pages 2294–2302.
|
| 277 |
+
Rumelhart, D. E., Hinton, G. E., and Williams, R. J. (1986). Learning representations by backpropagating errors. Nature, 323(6088):533–536.
|
| 278 |
+
|
| 279 |
+
Table 2: Hyper parameter ranges and parameter distributions for the musical data sets.
|
| 280 |
+
|
| 281 |
+
<table><tr><td>Hyper parameter #hidden layers</td><td>Choices 1</td></tr><tr><td>#hidden units Transfer function p("dropout input") p("dropout hidden to hidden") p("dropout hidden to output") Use fast dropout for final layer Step rate Momentum Decay W Win bh</td><td>200,400,600 tanh 0.0, 0.1, 0.2 0.0, 0.1, 0.2, 0.3,0.4, 0.5 0.0, 0.2,0.5 yes,no 0.01,0.005,0.001,0.0005,0.0001,0.00001 0.0,0.9,0.95,0.99,0.995 0.8,0.9 N(0,σ²),0² ∈ {0.1,0.01,0.001,0.0001} N(0,σ²),g² ∈ {0.1,0.01,0.001,0.0001}</td></tr></table>
|
| 282 |
+
|
| 283 |
+
Sutskever, I. (2013). Training Recurrent Neural Networks. PhD thesis, University of Toronto.
|
| 284 |
+
|
| 285 |
+
Sutskever, I., Martens, J., Dahl, G., and Hinton, G. (2013). On the importance of initialization and momentum in deep learning.
|
| 286 |
+
Sutskever, I., Martens, J., and Hinton, G. (2011). Generating text with recurrent neural networks. Proceedings of the 2011 International Conference on Machine Learning (ICML-2011).
|
| 287 |
+
Tieleman, T. and Hinton, G. (2012). Lecture 6.5 - rmsprop: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning.
|
| 288 |
+
Wager, S., Wang, S., and Liang, P. (2013). Dropout training as adaptive regularization. arXiv preprint arXiv:1307.1493.
|
| 289 |
+
Wang, S. and Manning, C. (2013). Fast dropout training. In Proceedings of the 30th International Conference on Machine Learning (ICML-13), pages 118–126.
|
| 290 |
+
Zeiler, M., Ranzato, M., Monga, R., Mao, M., Yang, K., Le, Q., Nguyen, P., Senior, A., Vanhoucke, V., Dean, J., et al. (2013). On rectified linear units for speech processing. ICASSP.
|
| 291 |
+
|
| 292 |
+
# 5 Appendix
|
| 293 |
+
|
| 294 |
+
# 5.1 Hyper Parameters for Musical Data Experiments
|
| 295 |
+
|
| 296 |
+
We show the hyper parameters ranges for the musical data in Table 2. The ones from which the numbers in Table 1 resulted are given in Table 3.
|
| 297 |
+
|
| 298 |
+
Table 3: Hyper parameters used for the musical data experiments.
|
| 299 |
+
|
| 300 |
+
<table><tr><td>Hyper parameter</td><td>Piano-midi.de</td><td>Nottingham</td><td>MuseData</td><td>JSBChorales</td></tr><tr><td>#hidden units</td><td>600</td><td>400</td><td>600</td><td>400</td></tr><tr><td>p("dropout input")</td><td>0.1</td><td>0.1</td><td>0.2</td><td>0.1</td></tr><tr><td>p("dropout hidden to hidden")</td><td>0.3</td><td>0.4</td><td>0.3</td><td>0.2</td></tr><tr><td>p("dropout hidden to output")</td><td>1</td><td>0.0</td><td>0.0</td><td>0.5</td></tr><tr><td>Use fast dropout for final layer</td><td>no</td><td>yes</td><td>yes</td><td>yes</td></tr><tr><td>Step rate</td><td>0.005</td><td>0.001</td><td>0.0005</td><td>0.001</td></tr><tr><td>Momentum</td><td>0.995</td><td>0.99</td><td>0.995</td><td>0.99</td></tr><tr><td>Decay</td><td>0.8</td><td>0.9</td><td>0.9</td><td>0.8</td></tr><tr><td>g² for Wrec, Wout</td><td>0.1</td><td>0.001</td><td>0.1</td><td>0.0001</td></tr><tr><td>g² for Win</td><td>0.0001</td><td>0.1</td><td>0.0001</td><td>0.01</td></tr><tr><td>p(Wrec)</td><td>1.2</td><td>1.2</td><td>1.2</td><td>1.2</td></tr><tr><td>V</td><td>25</td><td>no</td><td>no</td><td>15</td></tr></table>
|
parse/train/OP4ePyQXNu-da/OP4ePyQXNu-da_content_list.json
ADDED
|
@@ -0,0 +1,1311 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
189,
|
| 8 |
+
133,
|
| 9 |
+
810,
|
| 10 |
+
184
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Justin Bayer, Christian Osendorfer, Daniela Korhammer, Nutan Chen, Sebastian Urban and Patrick van der Smagt ",
|
| 17 |
+
"text_level": 1,
|
| 18 |
+
"bbox": [
|
| 19 |
+
316,
|
| 20 |
+
234,
|
| 21 |
+
718,
|
| 22 |
+
262
|
| 23 |
+
],
|
| 24 |
+
"page_idx": 0
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"type": "text",
|
| 28 |
+
"text": "Lehrstuhl fur Robotik und Echtzeitsysteme ¨ Fakultat f¨ ur Informatik¨ Technische Universitat M¨ unchen ¨ bayer.justin@googlemail.com, osendorf@in.tum.de, korhammd@in.tum.de, ntchen86@gmail.com, surban@tum.de, smagt@brml.org ",
|
| 29 |
+
"bbox": [
|
| 30 |
+
183,
|
| 31 |
+
263,
|
| 32 |
+
849,
|
| 33 |
+
332
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Abstract ",
|
| 40 |
+
"text_level": 1,
|
| 41 |
+
"bbox": [
|
| 42 |
+
462,
|
| 43 |
+
367,
|
| 44 |
+
535,
|
| 45 |
+
383
|
| 46 |
+
],
|
| 47 |
+
"page_idx": 0
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"type": "text",
|
| 51 |
+
"text": "Recurrent Neural Networks (RNNs) are rich models for the processing of sequential data. Recent work on advancing the state of the art has been focused on the optimization or modelling of RNNs, mostly motivated by adressing the problems of the vanishing and exploding gradients. The control of overfitting has seen considerably less attention. This paper contributes to that by analyzing fast dropout, a recent regularization method for generalized linear models and neural networks from a back-propagation inspired perspective. We show that fast dropout implements a quadratic form of an adaptive, per-parameter regularizer, which rewards large weights in the light of underfitting, penalizes them for overconfident predictions and vanishes at minima of an unregularized training loss. The derivatives of that regularizer are exclusively based on the training error signal. One consequence of this is the absence of a global weight attractor, which is particularly appealing for RNNs, since the dynamics are not biased towards a certain regime. We positively test the hypothesis that this improves the performance of RNNs on four musical data sets. ",
|
| 52 |
+
"bbox": [
|
| 53 |
+
233,
|
| 54 |
+
400,
|
| 55 |
+
764,
|
| 56 |
+
608
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "1 Introduction ",
|
| 63 |
+
"text_level": 1,
|
| 64 |
+
"bbox": [
|
| 65 |
+
174,
|
| 66 |
+
635,
|
| 67 |
+
310,
|
| 68 |
+
651
|
| 69 |
+
],
|
| 70 |
+
"page_idx": 0
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"type": "text",
|
| 74 |
+
"text": "Recurrent Neural Networks are among the most powerful models for sequential data. The capabilty of representing any measurable sequence to sequence mapping to arbitrary accuracy (Hammer, 2000) makes them universal approximators. Nevertheless they were given only little attention in the last two decades due to the problems of vanishing and exploding gradients (Hochreiter, 1991; Bengio et al., 1994; Pascanu et al., 2012). Error signals either blowing up or decaying exponentially for events many time steps apart rendered them largely impractical for the exact problems they were supposed to solve. This made successful training impossible on many tasks up until recently without resorting to special architectures or abandoning gradient-based optimization. Successful application on tasks with long-range dependencies has thus relied on one of those two paradigms. The former ist to make use of long short-term memory (LSTM) (Hochreiter and Schmidhuber, 1997). These approaches are among the best methods for the modelling of speech and handwriting (Graves et al., 2013, 2008; Graves, 2013). The latter is to to rely on sensible initializations leading to echo-state networks (Jager et al., 2003). ¨ ",
|
| 75 |
+
"bbox": [
|
| 76 |
+
174,
|
| 77 |
+
666,
|
| 78 |
+
825,
|
| 79 |
+
847
|
| 80 |
+
],
|
| 81 |
+
"page_idx": 0
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"type": "text",
|
| 85 |
+
"text": "The publication of (Martens and Sutskever, 2011) can nowadays be considered a landmark, since it was shown that even standard RNNs can be trained with the right optimization method. While a sophisticated Hessian-free optimizer was employed initially, further research (Sutskever et al., 2013; Bengio et al., 2012) has shown that carefully designed first-order methods can find optima of similar quality. ",
|
| 86 |
+
"bbox": [
|
| 87 |
+
174,
|
| 88 |
+
854,
|
| 89 |
+
823,
|
| 90 |
+
924
|
| 91 |
+
],
|
| 92 |
+
"page_idx": 0
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"type": "text",
|
| 96 |
+
"text": "After all, the problem of underfitting standard RNNs can be dealt with to the extent that RNNs are practical in many areas, e.g., language modelling (Sutskever et al., 2011; Mikolov et al., 2010). In contrast, the problem of overfitting in standard RNNs has (due to the lack of necessity) been tackled only by few. As noted in (Pascanu et al., 2012), using priors with a single optima on the parameters may have detrimental effects on the representation capability of RNNs: a global attractor is constructed in parameter space. In the case of a prior with a mode at zero (e.g. an $L 2$ regularizer) this biases the network towards solutions which lets information die out exponentially fast in time, making it impossible to memorize events for an indefinite amount of time. ",
|
| 97 |
+
"bbox": [
|
| 98 |
+
174,
|
| 99 |
+
103,
|
| 100 |
+
825,
|
| 101 |
+
214
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 1
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "text",
|
| 107 |
+
"text": "Graves (2011) proposes to stochastically and adaptively distort the weights of LSTM-based RNNs, which is justified from the perspective of variational Bayes and the minimum description length principle. Overfitting is practically non-existent in the experiments conducted. It is untested whether this approach works well for standard RNNs–along the lines of the observations of Pachitariu and Sahani (2013) one might hypothesize that the injected noise disturbs the dynamics of RNNs too much and leads to divergence during training. ",
|
| 108 |
+
"bbox": [
|
| 109 |
+
174,
|
| 110 |
+
222,
|
| 111 |
+
825,
|
| 112 |
+
305
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 1
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "The deep neural network community has recently embraced a regularization method called dropout (Hinton et al., 2012). The gist is to randomly discard units from the network during training, leading to less interdependent feature detectors in the intermediary layers. Here, dropping out merely means to set the output of that unit to zero. An equivalent view is to set the complete outgoing weight vector to zero of which it is questionable whether a straight transfer of dropout to RNNs is possible. The resulting changes to the dynamics of an RNN during every forward pass are quite dramatic. This is the reason why Pachitariu and Sahani (2013) only use dropout on those parts of the RNN which are not dynamic., i.e. the connections feeding from the hidden into the output layer. ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
174,
|
| 121 |
+
313,
|
| 122 |
+
825,
|
| 123 |
+
424
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "Our contribution is to show that using a recent smooth approximation to dropout (Wang and Manning, 2013) regularizes RNNs effectively. Since the approximation is deterministic, we may assert that all dynamic parts of the network operate in reasonable regimes. We show that fast dropout does not keep RNNs from reaching rich dynamics during training, which is not obvious due to the relation of classic dropout to L2 regularization (Wager et al., 2013). ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
174,
|
| 132 |
+
431,
|
| 133 |
+
823,
|
| 134 |
+
501
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "The structure of the paper is as follows. We will first review RNNs and fast dropout (FD) (Wang and Manning, 2013). A novel analysis of the derivatives of fast dropout leads to an interpretation where we can perform a decomposition into a loss based on the average output of a network’s units and a regularizer based on its variance. We will discuss why this is a form that is well suited to RNNs and consequently conduct experiments that confirm our hypothesis. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
507,
|
| 144 |
+
825,
|
| 145 |
+
577
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "2 Methods ",
|
| 152 |
+
"text_level": 1,
|
| 153 |
+
"bbox": [
|
| 154 |
+
174,
|
| 155 |
+
607,
|
| 156 |
+
277,
|
| 157 |
+
625
|
| 158 |
+
],
|
| 159 |
+
"page_idx": 1
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"type": "text",
|
| 163 |
+
"text": "In this section we will first review RNNs and fast dropout. We will then introduce a novel interpretation of what the fast dropout loss constitutes in section 2.2.2 and show relationships to two other regularizers. ",
|
| 164 |
+
"bbox": [
|
| 165 |
+
174,
|
| 166 |
+
645,
|
| 167 |
+
825,
|
| 168 |
+
688
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 1
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "2.1 Recurrent Neural Networks ",
|
| 175 |
+
"text_level": 1,
|
| 176 |
+
"bbox": [
|
| 177 |
+
176,
|
| 178 |
+
714,
|
| 179 |
+
406,
|
| 180 |
+
729
|
| 181 |
+
],
|
| 182 |
+
"page_idx": 1
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"type": "text",
|
| 186 |
+
"text": "We will define RNNs in terms of two components. For one, we are ultimately interested in an output $\\mathbf { y }$ , which we can calculate given the parameters $\\theta$ of a network and some input $\\mathbf { x }$ . Secondly, we want to learn the parameters, which is done by the design and optimization of a function of the parameters $\\mathcal { L } ( \\boldsymbol { \\theta } )$ , commonly dubbed loss, cost, or error function. ",
|
| 187 |
+
"bbox": [
|
| 188 |
+
174,
|
| 189 |
+
744,
|
| 190 |
+
825,
|
| 191 |
+
800
|
| 192 |
+
],
|
| 193 |
+
"page_idx": 1
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"type": "text",
|
| 197 |
+
"text": "Calculating the Output of an RNN Given an input sequence $\\mathbf { x } = ( x _ { 1 } , \\ldots , x _ { T } ) , x _ { t } \\in \\mathbb { R } ^ { \\kappa }$ we produce an output $\\mathbf { y } = ( y _ { 1 } , \\dots , y _ { T } ) , y _ { t } \\in \\mathbb { R } ^ { \\omega }$ which is done via an intermediary representation called the hidden state layer ${ \\mathbf h } = ( h _ { 1 } , \\ldots , h _ { T } ) , h _ { t } \\in \\mathbb { R } ^ { \\gamma } . \\ \\kappa , \\iota$ $\\kappa , \\omega$ , and $\\gamma$ are the dimensionalities of the inputs, outputs, and hidden state at each time step. Each component of the layers is sometimes referred to as a unit or a “neuron”. Depending on the associated layer, these are then input, hidden, or output units. We will also denote the set of units which feed into some unit $i$ as the incoming units of $i$ . The units into which a unit $i$ feeds are called the outgoing units of $i$ . For a recurrent network with a single hidden layer, this is done via iteration of the following equations from $t = 1$ to $T$ : ",
|
| 198 |
+
"bbox": [
|
| 199 |
+
174,
|
| 200 |
+
825,
|
| 201 |
+
825,
|
| 202 |
+
924
|
| 203 |
+
],
|
| 204 |
+
"page_idx": 1
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"type": "text",
|
| 208 |
+
"text": "",
|
| 209 |
+
"bbox": [
|
| 210 |
+
169,
|
| 211 |
+
103,
|
| 212 |
+
795,
|
| 213 |
+
118
|
| 214 |
+
],
|
| 215 |
+
"page_idx": 2
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "equation",
|
| 219 |
+
"img_path": "images/7e8ff902d7b51bcaadf0f5f56804dd1611127c52e37824027fe37a12effb6262.jpg",
|
| 220 |
+
"text": "$$\n\\begin{array} { r c l } { { h _ { t } } } & { { = } } & { { f _ { h } ( x _ { t } W _ { \\mathrm { i n } } + h _ { t - 1 } W _ { \\mathrm { r e c } } + b _ { h } ) , } } \\\\ { { y _ { t } } } & { { = } } & { { f _ { y } ( h _ { t } W _ { \\mathrm { o u t } } + b _ { y } ) , } } \\end{array}\n$$",
|
| 221 |
+
"text_format": "latex",
|
| 222 |
+
"bbox": [
|
| 223 |
+
369,
|
| 224 |
+
126,
|
| 225 |
+
624,
|
| 226 |
+
164
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 2
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "where $\\{ W _ { \\mathrm { i n } } , W _ { \\mathrm { o u t } } , W _ { \\mathrm { r e c } } \\}$ are weight matrices and $\\{ b _ { h } , b _ { y } \\}$ bias vectors. These form the set of parameters $\\theta$ together with initial hidden state $h _ { 0 }$ . The dimensionalities of all weight matrices, bias vectors, and initial hidden states are determined by the dimensionalities of the input sequences as well as desired hidden layer and output layer sizes. The functions $f _ { h }$ and $f _ { y }$ are so-called transfer functions and mostly coordinate-wise applied nonlinearities. We will call the activations of units pre-synaptic before the application of $f$ and post-synaptic afterwards. Typical choices include the logistic sigmoid $\\begin{array} { r } { f ( \\xi ) = \\frac { 1 } { 1 + \\exp ( - \\xi ) } } \\end{array}$ , tangent hyperbolicus and, more recently, the rectified linear $f ( \\xi ) = \\operatorname* { m a x } ( \\xi , 0 )$ (Zeiler et al., 2013). If we set the recurrent weight matrix $W _ { \\mathrm { r e c } }$ to zero, we recover a standard neural network Bishop (1995) applied independently to each time step. ",
|
| 233 |
+
"bbox": [
|
| 234 |
+
173,
|
| 235 |
+
167,
|
| 236 |
+
825,
|
| 237 |
+
299
|
| 238 |
+
],
|
| 239 |
+
"page_idx": 2
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"type": "text",
|
| 243 |
+
"text": "Loss Function and Adaption of Parameters We will restrict ourselves to RNNs for the supervised case, where we are given a data set $\\boldsymbol { \\mathcal { D } } ~ = ~ \\{ ( \\mathbf { x } _ { i } , \\mathbf { z } _ { i } ) \\} _ { i = 1 } ^ { N }$ consisting of $N$ pairs with $\\mathbf { \\bar { x } } _ { i } ~ \\in ~ \\mathbb { R } ^ { T \\times \\kappa }$ and $\\mathbf { z } _ { i } ~ \\in ~ \\mathbb { R } ^ { T \\times \\omega }$ . Here $T$ refers to the sequence length, which we assume to be constant over the data set. We are interested to adapt the parameters of the network $\\theta$ in a way to let each of its outputs $\\mathbf { y } _ { i } \\in \\mathbb { R } ^ { T \\times O }$ be close to $\\mathbf { z } _ { i }$ . Closeness is typically formulated as a loss function, e.g. the mean squared error $\\begin{array} { r } { \\mathcal { L } _ { \\mathrm { m s e } } ( \\boldsymbol { \\theta } ) = \\sum _ { i } | | \\mathbf { z } ^ { ( i ) } - \\mathbf { y } ^ { ( i ) } | | _ { 2 } ^ { 2 } } \\end{array}$ or the binary cross entropy $\\begin{array} { r } { \\textstyle \\mathcal { L } _ { \\mathrm { b c e } } ( \\theta ) = \\sum _ { i } z ^ { ( i ) } \\log y ^ { ( i ) } + ( 1 - z ^ { ( i ) } ) \\log ( 1 - y ^ { ( i ) } ) . } \\end{array}$ . If a loss $\\mathcal { L }$ is locally differentiable, finding good parameters can be performed by gradient-based optimization, such as nonlinear conjugate gradients or stochastic gradient descent. The gradients can be calculated efficiently via back-propagation through time (BPTT) (Rumelhart et al., 1986). ",
|
| 244 |
+
"bbox": [
|
| 245 |
+
173,
|
| 246 |
+
313,
|
| 247 |
+
825,
|
| 248 |
+
459
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 2
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "2.2 Fast Dropout ",
|
| 255 |
+
"text_level": 1,
|
| 256 |
+
"bbox": [
|
| 257 |
+
174,
|
| 258 |
+
477,
|
| 259 |
+
305,
|
| 260 |
+
492
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 2
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "text",
|
| 266 |
+
"text": "In fast dropout (Wang and Manning, 2013), each unit in the network is assumed to be a random variable. To assure tractability, only the first and second moments of those random variables are kept, which suffices for a very good approximation. Since the pre-synaptic activation of each unit is a weighted sum of its incoming units (of which each is dropped out with a certain probability) we can safely assume Gaussianity for those inputs due to the central limit theorem. As we will see, this is sufficient to find efficient ways to propagate the mean and variance through the non-linearity $f$ . ",
|
| 267 |
+
"bbox": [
|
| 268 |
+
174,
|
| 269 |
+
502,
|
| 270 |
+
825,
|
| 271 |
+
588
|
| 272 |
+
],
|
| 273 |
+
"page_idx": 2
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"type": "text",
|
| 277 |
+
"text": "2.2.1 Forward propagation ",
|
| 278 |
+
"text_level": 1,
|
| 279 |
+
"bbox": [
|
| 280 |
+
174,
|
| 281 |
+
603,
|
| 282 |
+
375,
|
| 283 |
+
619
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 2
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "text",
|
| 289 |
+
"text": "We will now inspect the forward propagation for a layer into a single unit, that is ",
|
| 290 |
+
"bbox": [
|
| 291 |
+
174,
|
| 292 |
+
628,
|
| 293 |
+
700,
|
| 294 |
+
645
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 2
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "equation",
|
| 300 |
+
"img_path": "images/fcd99272a6639492c9eb30e464eab04bf51749ae0f6de3a2bb74fba7a86279c0.jpg",
|
| 301 |
+
"text": "$$\n\\begin{array} { r l } { a = } & { { } ( \\mathbf { d } \\circ \\mathbf { x } ) ^ { T } \\mathbf { w } } \\\\ { y = } & { { } f ( a ) , } \\end{array}\n$$",
|
| 302 |
+
"text_format": "latex",
|
| 303 |
+
"bbox": [
|
| 304 |
+
431,
|
| 305 |
+
650,
|
| 306 |
+
550,
|
| 307 |
+
688
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 2
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "text",
|
| 313 |
+
"text": "where $\\circ$ denotes the element-wise product and $f$ is a non-linear transfer function as before. Let the input layer $\\mathbf { x }$ to the unit be Gaussian distributed with diagonal covariance by assumption: $\\mathbf { x } \\sim$ $\\mathcal { N } ( \\mu _ { \\mathbf { x } } , \\sigma _ { \\mathbf { x } } ^ { 2 } )$ . Furthermore, we have Bernoulli distributed variables indicating whether an incoming unit is not being dropped out organized in a vector $\\mathbf { d }$ with $d _ { i } \\sim B ( p )$ , $p$ being the complementary drop out rate. The weight vector w is assumed to be constant. ",
|
| 314 |
+
"bbox": [
|
| 315 |
+
173,
|
| 316 |
+
694,
|
| 317 |
+
825,
|
| 318 |
+
765
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 2
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "A neural network will in practice consist of many such nodes, with some of them, the output units, directly contributing to the loss function $\\mathcal { L }$ . Others, the input units, will not stem from calculation but come from the data set. Each component of $\\mathbf { x }$ represents an incoming unit, which might be an external input to the network or a hidden unit. In general, $y$ will have a complex distribution depending highly on the nature of $f$ . Given that the input to a function $f$ is Gaussian distributed, we obtain the mean and variance of the output as follows: ",
|
| 325 |
+
"bbox": [
|
| 326 |
+
173,
|
| 327 |
+
771,
|
| 328 |
+
826,
|
| 329 |
+
856
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 2
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "equation",
|
| 335 |
+
"img_path": "images/81470b3a4366658da2e4dd2a2def3df7f915643535a2aa806d0638c9bd405469.jpg",
|
| 336 |
+
"text": "$$\n\\begin{array} { r c l } { \\displaystyle \\mathbf { E } [ y ] = f _ { \\mu } ( a ) } & { = } & { \\displaystyle \\int f ( x ) \\mathcal { N } ( x | \\mathbf { E } [ a ] , \\mathbf { V } [ a ] ) d x , } \\\\ { \\displaystyle \\mathbf { V } [ y ] = f _ { \\sigma } ( a ) } & { = } & { \\displaystyle \\int ( f ( x ) - f _ { \\mu } ( a ) ) ^ { 2 } \\mathcal { N } ( x | \\mathbf { E } [ a ] , \\mathbf { V } [ a ] ) d x . } \\end{array}\n$$",
|
| 337 |
+
"text_format": "latex",
|
| 338 |
+
"bbox": [
|
| 339 |
+
302,
|
| 340 |
+
862,
|
| 341 |
+
696,
|
| 342 |
+
930
|
| 343 |
+
],
|
| 344 |
+
"page_idx": 2
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"type": "text",
|
| 348 |
+
"text": "Forward propagation through the non-linearity $f$ for calculation of the post-synaptic activation can be approximated very well in the case of the logistic sigmoid and the tangent hyperbolicus and done exactly in case of the rectifier (for details, see Wang and Manning (2013)). While the rectifier has been previously reported to be a useful ingredient in RNNs (Bengio et al., 2012) we found that it leads to unstable learning behaviour in preliminary experiments and thus neglected it in this study, solely focusing on the tangent hyperbolicus. Other popular transfer functions, such as the softmax, need to be approximated either via sampling or an unscented transform (Julier and Uhlmann, 1997). ",
|
| 349 |
+
"bbox": [
|
| 350 |
+
173,
|
| 351 |
+
103,
|
| 352 |
+
825,
|
| 353 |
+
202
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 3
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"text": "To obtain a Gaussian approximation for $\\boldsymbol { a } = ( \\mathbf { d } \\circ \\mathbf { x } ) ^ { T } \\mathbf { w }$ , we will use $\\hat { a } \\sim \\mathcal N ( \\mathrm { E } [ a ] , \\mathrm { V } [ a ] )$ . The mean and variance of $a$ can be obtained as follows. Since $\\mathbf { d }$ and $\\mathbf { x }$ are independent it follows that ",
|
| 360 |
+
"bbox": [
|
| 361 |
+
173,
|
| 362 |
+
207,
|
| 363 |
+
820,
|
| 364 |
+
236
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 3
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "equation",
|
| 370 |
+
"img_path": "images/4f15b36c7bb762847b42e2ed52b612648d6d7ebff721e351f07d51c74f9e9a7b.jpg",
|
| 371 |
+
"text": "$$\n\\mathbf { E } [ a ] = \\mathbf { E } [ ( \\mathbf { x } \\circ \\mathbf { d } ) ^ { T } \\mathbf { w } ] = ( \\mathbf { E } [ \\mathbf { x } ] \\circ \\mathbf { E } [ \\mathbf { d } ] ) ^ { T } \\mathbf { w } .\n$$",
|
| 372 |
+
"text_format": "latex",
|
| 373 |
+
"bbox": [
|
| 374 |
+
341,
|
| 375 |
+
238,
|
| 376 |
+
620,
|
| 377 |
+
256
|
| 378 |
+
],
|
| 379 |
+
"page_idx": 3
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "text",
|
| 383 |
+
"text": "For independent random variables $A$ and $B$ , $\\mathbf { V } [ A B ] = \\mathbf { V } [ A ] \\mathrm { E } [ B ] ^ { 2 } + \\mathrm { E } [ A ] ^ { 2 } \\mathbf { V } [ B ] + \\mathbf { V } [ A ] \\mathbf { V } [ B ]$ . If we assume the components of $\\mathbf { x }$ to be independent, we can write ",
|
| 384 |
+
"bbox": [
|
| 385 |
+
171,
|
| 386 |
+
257,
|
| 387 |
+
821,
|
| 388 |
+
285
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 3
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "equation",
|
| 394 |
+
"img_path": "images/a0aafa0949de0b102fa31bb55e4e56b34017097a342867ab30b01839ce605347.jpg",
|
| 395 |
+
"text": "$$\n\\mathbf { V } [ a ] = ( p ( 1 - p ) \\mu _ { \\mathbf { x } } ^ { 2 } + p \\sigma _ { \\mathbf { x } } ^ { 2 } ) ^ { T } \\mathbf { w } ^ { 2 } .\n$$",
|
| 396 |
+
"text_format": "latex",
|
| 397 |
+
"bbox": [
|
| 398 |
+
369,
|
| 399 |
+
286,
|
| 400 |
+
593,
|
| 401 |
+
306
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 3
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "text",
|
| 407 |
+
"text": "Furthermore the independency assumption is necessary such that the Lyapunov condition is satisfied (Lehmann, 1999) for the the central limit theorem to hold, ensuring that $a$ is approximately Gaussian. ",
|
| 408 |
+
"bbox": [
|
| 409 |
+
171,
|
| 410 |
+
306,
|
| 411 |
+
821,
|
| 412 |
+
334
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 3
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "text",
|
| 418 |
+
"text": "Propagating the mean and the variance through $f$ via $f _ { \\mu }$ and $f _ { \\sigma }$ suffices for determining the presynaptic moments of the outgoing units. At the output $\\mathbf { y }$ of the whole model, we will simplify matters and ignore the variance. Some loss functions take the variance into account (e.g., a Gaussian log-likelihood as done in (Bayer et al., 2013)). Sampling can be a viable alternative as well. ",
|
| 419 |
+
"bbox": [
|
| 420 |
+
174,
|
| 421 |
+
340,
|
| 422 |
+
823,
|
| 423 |
+
397
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 3
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "Fast Dropout for RNNs The extension of fast dropout to recurrent networks is straightforward from a technical perspective. First, we note that we can concatenate the input vector at time step $t$ , $x _ { t }$ and the hidden state at the previous layer $h _ { t - 1 }$ into a single vector: $c _ { t } = [ h _ { t - 1 } , x _ { t } ]$ . We obtain a corresponding weight matrix by concatenation of the input to hidden and recurrent weight matrices $W _ { \\mathrm { i n } }$ and $W _ { \\mathrm { r e c } }$ : $W _ { c } = [ W _ { \\mathrm { r e c } } , W _ { \\mathrm { i n } } ]$ . We can thus reduce the computation to the step from above. ",
|
| 430 |
+
"bbox": [
|
| 431 |
+
174,
|
| 432 |
+
411,
|
| 433 |
+
825,
|
| 434 |
+
482
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 3
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "text",
|
| 440 |
+
"text": "2.2.2 Beyond the Backward Pass: A Regularization Term ",
|
| 441 |
+
"text_level": 1,
|
| 442 |
+
"bbox": [
|
| 443 |
+
174,
|
| 444 |
+
496,
|
| 445 |
+
584,
|
| 446 |
+
511
|
| 447 |
+
],
|
| 448 |
+
"page_idx": 3
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"type": "text",
|
| 452 |
+
"text": "Given the forward pass, we used automatic differentiation with Theano (Bergstra et al., 2010) to calculate the gradients. Nevertheless, we will contribute a close inspection of the derivatives. This will prove useful since it makes it possible to interpret fast dropout as an additional regularization term independent of the exact choice of loss function. ",
|
| 453 |
+
"bbox": [
|
| 454 |
+
174,
|
| 455 |
+
520,
|
| 456 |
+
825,
|
| 457 |
+
577
|
| 458 |
+
],
|
| 459 |
+
"page_idx": 3
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"type": "text",
|
| 463 |
+
"text": "Consider a loss $\\mathcal { L } ( \\mathcal { D } ; \\theta )$ which is a function of the data $\\mathcal { D }$ and parameters $\\theta ^ { 2 }$ . In machine learning, we wish this loss to be minimal under unseen data $\\mathcal { D }$ although we only have access to a training set $\\mathcal { D } _ { \\mathrm { t r a i n } }$ . A typical approach is to optimize another loss $\\mathcal { I } ( \\mathcal { D } _ { \\mathrm { t r a i n } } ; \\theta )$ as a proxy in the hope that a good minimum of it will correspond to a good minimum of $\\mathcal { L }$ for unseen data. Learning is often done by the optimization of $\\mathcal { I } = \\mathcal { L } + \\mathcal { R }$ , where $\\mathcal { R }$ is called a regularizer. A common example of a regularizer is to place a prior on the parameters, in which case it is a function of $\\theta$ and corresponds to the log-likelihood of the parameters. For weight decay, this is a spherical Gaussian with inverse scale $\\lambda$ , i.e. $\\mathcal { R } _ { \\mathrm { w d } } ( \\theta ) = \\lambda | | \\dot { \\theta | } | _ { 2 } ^ { 2 }$ . Regularizers can be more sophisticated, e.g. Rifai et al. (2011) determine directions in input space to which a model’s outputs should be invariant. More recently, dropout (i.e. non-fast dropout) for generalized linear models has been intepreted as a semi-supervised regularization term encouraging confident predictions by Wager et al. (2013). ",
|
| 464 |
+
"bbox": [
|
| 465 |
+
173,
|
| 466 |
+
582,
|
| 467 |
+
825,
|
| 468 |
+
737
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 3
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "text",
|
| 474 |
+
"text": "While it seems difficult to bring the objective function $\\mathcal { I } _ { \\mathrm { f d } } ( \\mathcal { D } ; \\theta )$ of fast dropout into the form of $\\mathcal { L } + \\mathcal { R }$ , it is possible with the derivatives of each node. For this, we perform back-propagation like calculations. ",
|
| 475 |
+
"bbox": [
|
| 476 |
+
174,
|
| 477 |
+
743,
|
| 478 |
+
823,
|
| 479 |
+
785
|
| 480 |
+
],
|
| 481 |
+
"page_idx": 3
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"type": "text",
|
| 485 |
+
"text": "Let $\\boldsymbol { a } = ( \\mathbf { d } \\circ \\mathbf { x } ) ^ { T } \\mathbf { w }$ and $y = f ( a )$ be the pre- and post-synaptic activations of a component of a layer in the network. First note that $\\partial \\mathcal { I } / \\partial w _ { i } = \\partial \\mathcal { I } / \\partial a \\cdot \\partial a / \\partial w _ { i }$ according to the chain rule. Since $a$ is a random variable, it will be described in one of two forms. In the case of a Gaussian approximation, we will summarize it in terms of its mean and variance; this approach is used if propagation through $f$ is possible in closed form. In the case of sampling, we will have a single instantiation $\\hat { a }$ of the random variable, which we can propagate through $f$ . An analysis of both cases is as follows. ",
|
| 486 |
+
"bbox": [
|
| 487 |
+
173,
|
| 488 |
+
791,
|
| 489 |
+
825,
|
| 490 |
+
876
|
| 491 |
+
],
|
| 492 |
+
"page_idx": 3
|
| 493 |
+
},
|
| 494 |
+
{
|
| 495 |
+
"type": "text",
|
| 496 |
+
"text": "Gaussian approximation We find the derivative of $\\mathcal { I }$ with respect to one of its incoming weights $w _ { i }$ to be ",
|
| 497 |
+
"bbox": [
|
| 498 |
+
174,
|
| 499 |
+
103,
|
| 500 |
+
823,
|
| 501 |
+
132
|
| 502 |
+
],
|
| 503 |
+
"page_idx": 4
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"type": "equation",
|
| 507 |
+
"img_path": "images/04d81d47caffb82c9b99559c020adad34fa2fca3c2a39fcab8a9c0483bf379bd.jpg",
|
| 508 |
+
"text": "$$\n\\frac { \\partial \\mathcal { I } } { \\partial w _ { i } } = \\frac { \\partial \\mathcal { I } } { \\partial \\mathrm { E } [ a ] } \\frac { \\partial \\mathrm { E } [ a ] } { \\partial w _ { i } } + \\frac { \\partial \\mathcal { I } } { \\partial \\mathrm { V } [ a ] } \\frac { \\partial \\mathrm { V } [ a ] } { \\partial w _ { i } } .\n$$",
|
| 509 |
+
"text_format": "latex",
|
| 510 |
+
"bbox": [
|
| 511 |
+
357,
|
| 512 |
+
136,
|
| 513 |
+
607,
|
| 514 |
+
171
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 4
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "We know that $\\mathbf { E } [ a ] = ( \\mathbf { x } \\circ \\mathbf { d } ) ^ { T } \\mathbf { w }$ and thus $\\partial \\mathrm { E } [ a ] / \\partial w _ { i } = x _ { i } d _ { i }$ . This can be recognized as the standard back-propagation term if we consider the dropout variable $d _ { i }$ as fixed. We will thus define ",
|
| 521 |
+
"bbox": [
|
| 522 |
+
171,
|
| 523 |
+
178,
|
| 524 |
+
823,
|
| 525 |
+
207
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 4
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "equation",
|
| 531 |
+
"img_path": "images/82d71df3a3fea96ec2dbeb1d72c0768090a0cb03db9b1e9712371bec2125b683.jpg",
|
| 532 |
+
"text": "$$\n\\frac { \\partial \\mathcal { L } ^ { a } } { \\partial w _ { i } } : = \\frac { \\partial \\mathcal { T } } { \\partial \\mathrm { E } [ a ] } \\frac { \\partial \\mathrm { E } [ a ] } { \\partial w _ { i } } ,\n$$",
|
| 533 |
+
"text_format": "latex",
|
| 534 |
+
"bbox": [
|
| 535 |
+
408,
|
| 536 |
+
212,
|
| 537 |
+
555,
|
| 538 |
+
246
|
| 539 |
+
],
|
| 540 |
+
"page_idx": 4
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"type": "text",
|
| 544 |
+
"text": "and subsequently refer to it as the local derivative of the training loss. The second term can be analysed similarly. We apply the chain-rule once more which yields ",
|
| 545 |
+
"bbox": [
|
| 546 |
+
174,
|
| 547 |
+
250,
|
| 548 |
+
825,
|
| 549 |
+
279
|
| 550 |
+
],
|
| 551 |
+
"page_idx": 4
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"type": "equation",
|
| 555 |
+
"img_path": "images/67fec24c2b537b0dae63ef1d40a159a52b077fafc6bd2c84349adcb9f3dd3941.jpg",
|
| 556 |
+
"text": "$$\n{ \\frac { \\partial { \\mathcal { T } } } { \\partial \\mathbf { V } [ a ] } } { \\frac { \\partial \\mathbf { V } [ a ] } { \\partial w _ { i } } } = \\underbrace { { \\frac { \\partial { \\mathcal { T } } } { \\partial \\mathbf { V } [ a ] } } } _ { : = \\delta ^ { a } } { \\frac { \\partial \\mathbf { V } [ a ] } { \\partial w _ { i } ^ { 2 } } } { \\frac { \\partial w _ { i } ^ { 2 } } { \\partial w _ { i } } } .\n$$",
|
| 557 |
+
"text_format": "latex",
|
| 558 |
+
"bbox": [
|
| 559 |
+
364,
|
| 560 |
+
284,
|
| 561 |
+
601,
|
| 562 |
+
338
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 4
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "text",
|
| 568 |
+
"text": "for which any further simplification of $\\delta ^ { a }$ depends on the exact form of $\\mathcal { I }$ . The remaining two factors can be written down explicitly, i.e. ",
|
| 569 |
+
"bbox": [
|
| 570 |
+
173,
|
| 571 |
+
342,
|
| 572 |
+
823,
|
| 573 |
+
372
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 4
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "equation",
|
| 579 |
+
"img_path": "images/785c05f00c375f863cf0bd6380dc6681a0bf9f0998aec37df2d7f11fb55e3858.jpg",
|
| 580 |
+
"text": "$$\n\\begin{array} { r c l } { { \\displaystyle \\frac { \\partial { \\bf V } [ a ] } { \\partial w _ { i } ^ { 2 } } } } & { { = } } & { { p ( 1 - p ) { \\bf E } [ x _ { i } ] ^ { 2 } + p { \\bf V } [ x _ { i } ] , } } \\\\ { { \\displaystyle \\frac { \\partial w _ { i } ^ { 2 } } { \\partial w _ { i } } } } & { { = } } & { { 2 w _ { i } . } } \\end{array}\n$$",
|
| 581 |
+
"text_format": "latex",
|
| 582 |
+
"bbox": [
|
| 583 |
+
367,
|
| 584 |
+
376,
|
| 585 |
+
625,
|
| 586 |
+
446
|
| 587 |
+
],
|
| 588 |
+
"page_idx": 4
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"type": "text",
|
| 592 |
+
"text": "Setting ",
|
| 593 |
+
"bbox": [
|
| 594 |
+
173,
|
| 595 |
+
450,
|
| 596 |
+
223,
|
| 597 |
+
465
|
| 598 |
+
],
|
| 599 |
+
"page_idx": 4
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"type": "equation",
|
| 603 |
+
"img_path": "images/1b2ec891cd3713235af137f8c6ca157f9bceac2785e3942cb8ad3ad0422e846c.jpg",
|
| 604 |
+
"text": "$$\n\\begin{array} { r l } { \\eta _ { i } ^ { a } : = } & { { } | \\delta ^ { a } | \\frac { \\partial \\mathsf { V } [ a ] } { \\partial w _ { i } ^ { 2 } } } \\\\ { = } & { { } | \\delta ^ { a } | p \\big [ ( 1 - p ) \\mathsf { E } [ x _ { i } ] ^ { 2 } + \\mathsf { V } [ x _ { i } ] \\big ] } \\\\ { > } & { { } 0 } \\end{array}\n$$",
|
| 605 |
+
"text_format": "latex",
|
| 606 |
+
"bbox": [
|
| 607 |
+
364,
|
| 608 |
+
469,
|
| 609 |
+
616,
|
| 610 |
+
531
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 4
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "we conclude that ",
|
| 617 |
+
"bbox": [
|
| 618 |
+
174,
|
| 619 |
+
537,
|
| 620 |
+
287,
|
| 621 |
+
551
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 4
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "equation",
|
| 627 |
+
"img_path": "images/ba286f69df741424ec3976294ebef8acab9f648519a577d77cf7caaf4bd2066f.jpg",
|
| 628 |
+
"text": "$$\n\\begin{array} { r c l } { \\displaystyle \\frac { \\partial \\mathcal { I } } { \\partial \\mathbf { V } [ a ] } \\frac { \\partial \\mathbf { V } [ a ] } { \\partial w _ { i } } } & { = } & { 2 \\operatorname { s g n } ( \\delta ^ { a } ) \\eta ^ { a } w _ { i } } \\\\ & & { = : \\mathbf { \\nabla } \\frac { \\partial \\mathcal { R } _ { \\mathrm { a p p r o x } } ^ { a } } { \\partial w _ { i } } . } \\end{array}\n$$",
|
| 629 |
+
"text_format": "latex",
|
| 630 |
+
"bbox": [
|
| 631 |
+
380,
|
| 632 |
+
554,
|
| 633 |
+
617,
|
| 634 |
+
625
|
| 635 |
+
],
|
| 636 |
+
"page_idx": 4
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"type": "text",
|
| 640 |
+
"text": "In alignment with Equation (3) this lets us arrive at ",
|
| 641 |
+
"bbox": [
|
| 642 |
+
173,
|
| 643 |
+
627,
|
| 644 |
+
509,
|
| 645 |
+
642
|
| 646 |
+
],
|
| 647 |
+
"page_idx": 4
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "equation",
|
| 651 |
+
"img_path": "images/0790040f0fa5dd8180a585214e97c0e356a43d9057be54612a720cd3cdf224ea.jpg",
|
| 652 |
+
"text": "$$\n\\frac { \\partial \\mathcal { I } } { \\partial w _ { i } } = \\frac { \\partial \\mathcal { L } ^ { a } } { \\partial w _ { i } } + \\frac { \\partial \\mathcal { R } _ { \\mathrm { a p p r o x } } ^ { a } } { \\partial w _ { i } } ,\n$$",
|
| 653 |
+
"text_format": "latex",
|
| 654 |
+
"bbox": [
|
| 655 |
+
397,
|
| 656 |
+
647,
|
| 657 |
+
568,
|
| 658 |
+
681
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 4
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "and offers an interpretation of fast dropout as an additive regularization term. An important and limiting aspect of this decomposition is that it only holds locally at $a$ . ",
|
| 665 |
+
"bbox": [
|
| 666 |
+
173,
|
| 667 |
+
686,
|
| 668 |
+
821,
|
| 669 |
+
715
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 4
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "text",
|
| 675 |
+
"text": "We note that depending on the sign of the error signal $\\delta ^ { a }$ , fast dropout can take on three different behaviours: ",
|
| 676 |
+
"bbox": [
|
| 677 |
+
174,
|
| 678 |
+
720,
|
| 679 |
+
821,
|
| 680 |
+
750
|
| 681 |
+
],
|
| 682 |
+
"page_idx": 4
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"type": "text",
|
| 686 |
+
"text": "· $\\delta ^ { a } = 0$ The error signal is zero and thus the variance of the unit considered to be optimal for the loss. The fast dropout term vanishes; this is especially true at optima of the overall loss. \n· $\\delta ^ { a } < 0$ The unit should increase its variance. The exact interpretation of this depends on the loss, but in many cases this is related to the expectation of the unit being quite erroneous and leads to an increase of scatter of the output. The fast dropout term encourages a quadratic growth of the weights. \n• $\\delta ^ { a } > 0$ The unit should decrease its variance. As before, this depends on the exact loss function but will mostly be related to the expectation of the unit being quite right which makes a reduction of scatter desirable. The fast dropout term encourages a quadratic shrinkage of the weights. ",
|
| 687 |
+
"bbox": [
|
| 688 |
+
215,
|
| 689 |
+
761,
|
| 690 |
+
825,
|
| 691 |
+
924
|
| 692 |
+
],
|
| 693 |
+
"page_idx": 4
|
| 694 |
+
},
|
| 695 |
+
{
|
| 696 |
+
"type": "image",
|
| 697 |
+
"img_path": "images/0abc382d8649749ae7febf295253f49836345dcae0dba65b7e03bce57919314e.jpg",
|
| 698 |
+
"image_caption": [
|
| 699 |
+
"Figure 1: Visualizations of the behaviour of $\\delta ^ { a }$ for a single unit. The axes correspond to the presynaptic mean $\\operatorname { E } [ a ]$ and variance $\\mathrm { v } [ a ]$ feeding into a unit $y = f ( a )$ . A loss measuring the divergence from the target value 0.2 is then applied and indices the color on a logarithmic scale. The gradients of the loss are shown as a vector field plot. Squared error is shown on the left, Gaussian log-likelihood in the middle and Bernoulli log-likelihood on the right. For the first two plots, the optimium is in the middle, for the last it is a little to the left. "
|
| 700 |
+
],
|
| 701 |
+
"image_footnote": [],
|
| 702 |
+
"bbox": [
|
| 703 |
+
173,
|
| 704 |
+
102,
|
| 705 |
+
826,
|
| 706 |
+
270
|
| 707 |
+
],
|
| 708 |
+
"page_idx": 5
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"type": "text",
|
| 712 |
+
"text": "This behaviour can be illustrated for output units by numerically inspecting the values and gradients of the pre-synaptic moments given a loss. For that we consider a single unit $y = f ( a )$ and a loss $d ( y , z )$ measuring the divergence of its output to a target value $z$ . The pre-synaptic variance $\\mathrm { v } [ a ]$ can enter the loss not at all or in one of two ways, respected by either the loss (see (Bayer et al., 2013)) or the transfer function. Three examples for this are ",
|
| 713 |
+
"bbox": [
|
| 714 |
+
173,
|
| 715 |
+
390,
|
| 716 |
+
825,
|
| 717 |
+
462
|
| 718 |
+
],
|
| 719 |
+
"page_idx": 5
|
| 720 |
+
},
|
| 721 |
+
{
|
| 722 |
+
"type": "text",
|
| 723 |
+
"text": "1. Squared loss on the mean, i.e. $d ( y , z ) = ( \\operatorname { E } [ y ] - t ) ^ { 2 }$ with $y = a$ , \n2. Gaussian log-likelihood on the moments, i.e. $\\begin{array} { r } { d ( y , z ) \\propto \\frac { \\left( \\mathrm { E } [ y ] - t \\right) ^ { 2 } } { 2 \\mathrm { V } [ y ] } + \\log \\sqrt { 2 \\pi \\mathrm { V } [ y ] } } \\end{array}$ with $y = a ,$ \n3. Negative Bernoulli cross entropy, i.e. $d ( y , z ) = z \\log \\mathrm { E } [ y ] + ( 1 - z ) \\log ( 1 - \\mathrm { E } [ y ] )$ with $\\begin{array} { r } { y = \\frac { 1 } { 1 + \\exp ( - a ) } } \\end{array}$ . ",
|
| 724 |
+
"bbox": [
|
| 725 |
+
210,
|
| 726 |
+
469,
|
| 727 |
+
825,
|
| 728 |
+
559
|
| 729 |
+
],
|
| 730 |
+
"page_idx": 5
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"type": "text",
|
| 734 |
+
"text": "We visualize the pre-synaptic mean and variance, their gradients and their respective loss values in Figure 1. For the two latter cases, erroneous units first increase the variance, then move towards the correct mean and subsequently reduce the variance. ",
|
| 735 |
+
"bbox": [
|
| 736 |
+
176,
|
| 737 |
+
568,
|
| 738 |
+
825,
|
| 739 |
+
611
|
| 740 |
+
],
|
| 741 |
+
"page_idx": 5
|
| 742 |
+
},
|
| 743 |
+
{
|
| 744 |
+
"type": "text",
|
| 745 |
+
"text": "Sampling An already mentioned alternative to the forward propagation of $\\operatorname { E } [ a ]$ and $\\mathrm { v } [ a ]$ through $f$ is to incarnate $\\hat { a }$ via sampling and calculate $f ( \\hat { a } )$ . Let $s \\sim \\mathcal { N } ( 0 , 1 )$ and $\\hat { a } = \\mathrm { E } [ a ] + s \\sqrt { \\mathrm { V } [ a ] }$ . We can then use $\\hat { a }$ explicitly and it follows that ",
|
| 746 |
+
"bbox": [
|
| 747 |
+
173,
|
| 748 |
+
625,
|
| 749 |
+
826,
|
| 750 |
+
669
|
| 751 |
+
],
|
| 752 |
+
"page_idx": 5
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"type": "equation",
|
| 756 |
+
"img_path": "images/cf261e3e0a0d5636720c35278911cb7354f4cd8903400a23f6cb3a973a884ed6.jpg",
|
| 757 |
+
"text": "$$\n\\frac { \\partial \\mathcal { I } } { \\partial \\hat { a } } \\frac { \\partial \\hat { a } } { \\partial w _ { i } } = \\frac { \\partial \\mathcal { I } } { \\partial \\hat { a } } \\left[ \\frac { \\partial \\hat { a } } { \\partial \\mathrm { E } [ a ] } \\frac { \\partial \\mathrm { E } [ a ] } { \\partial w _ { i } } + \\frac { \\partial \\hat { a } } { \\partial \\mathrm { V } [ a ] } \\frac { \\partial \\mathrm { V } [ a ] } { \\partial w _ { i } } \\right] .\n$$",
|
| 758 |
+
"text_format": "latex",
|
| 759 |
+
"bbox": [
|
| 760 |
+
321,
|
| 761 |
+
671,
|
| 762 |
+
642,
|
| 763 |
+
705
|
| 764 |
+
],
|
| 765 |
+
"page_idx": 5
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"type": "text",
|
| 769 |
+
"text": "Again, we recognize ${ \\partial { \\mathcal J } } / { \\partial { \\hat { a } } } \\cdot { \\partial { \\hat { a } } } / { \\partial \\mathrm { E } } [ a ] \\cdot { \\partial \\mathrm { E } } [ a ] / { \\partial w _ { i } } \\ = \\ { \\partial { \\mathcal J } } / { \\partial { \\hat { a } } } \\ x _ { i } d _ { i }$ as the standard backpropagation formula with dropout variables. ",
|
| 770 |
+
"bbox": [
|
| 771 |
+
174,
|
| 772 |
+
708,
|
| 773 |
+
823,
|
| 774 |
+
738
|
| 775 |
+
],
|
| 776 |
+
"page_idx": 5
|
| 777 |
+
},
|
| 778 |
+
{
|
| 779 |
+
"type": "text",
|
| 780 |
+
"text": "The variance term can be written as ",
|
| 781 |
+
"bbox": [
|
| 782 |
+
176,
|
| 783 |
+
744,
|
| 784 |
+
408,
|
| 785 |
+
758
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 5
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "equation",
|
| 791 |
+
"img_path": "images/7eebc1d9707088db04161118aaa81a5e660bd4c0564a7c41a724b00b8c4b4c1b.jpg",
|
| 792 |
+
"text": "$$\n{ \\frac { \\partial { \\mathcal { I } } } { \\partial { \\hat { a } } } } { \\frac { \\partial { \\mathcal { I } } } { \\partial \\mathbf { V } [ a ] } } { \\frac { \\partial \\mathbf { V } [ a ] } { \\partial w _ { i } } } = { \\frac { \\partial { \\mathcal { I } } } { \\partial { \\hat { a } } } } { \\frac { \\partial { \\hat { a } } } { \\partial { \\sqrt { \\mathbf { V } [ a ] } } } } { \\frac { \\partial { \\sqrt { \\mathbf { V } [ a ] } } } { \\partial \\mathbf { V } [ a ] } } { \\frac { \\partial \\mathbf { V } [ a ] } { \\partial w _ { i } ^ { 2 } } } { \\frac { \\partial w _ { i } ^ { 2 } } { \\partial w _ { i } } }\n$$",
|
| 793 |
+
"text_format": "latex",
|
| 794 |
+
"bbox": [
|
| 795 |
+
302,
|
| 796 |
+
758,
|
| 797 |
+
663,
|
| 798 |
+
797
|
| 799 |
+
],
|
| 800 |
+
"page_idx": 5
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"type": "text",
|
| 804 |
+
"text": "which, making use of results from earlier in the section is equivalent to ",
|
| 805 |
+
"bbox": [
|
| 806 |
+
174,
|
| 807 |
+
799,
|
| 808 |
+
638,
|
| 809 |
+
814
|
| 810 |
+
],
|
| 811 |
+
"page_idx": 5
|
| 812 |
+
},
|
| 813 |
+
{
|
| 814 |
+
"type": "equation",
|
| 815 |
+
"img_path": "images/1429fe87ca9ae95890277339ae40faf10dcf843b5cb91e5af2de64e19fbf8002.jpg",
|
| 816 |
+
"text": "$$\n\\begin{array} { r l r } { \\displaystyle \\frac { \\partial { \\mathcal I } } { \\partial \\hat { a } } \\frac { \\partial { \\mathcal J } } { \\partial { \\bf V } [ a ] } \\frac { \\partial { \\bf V } [ a ] } { \\partial w _ { i } } } & { = } & { \\displaystyle \\frac { \\partial { \\mathcal J } } { \\partial \\hat { a } } \\sqrt { p ( 1 - p ) { \\bf E } [ x _ { i } ] ^ { 2 } + p { \\bf V } [ x _ { i } ] } s . } \\end{array}\n$$",
|
| 817 |
+
"text_format": "latex",
|
| 818 |
+
"bbox": [
|
| 819 |
+
308,
|
| 820 |
+
815,
|
| 821 |
+
689,
|
| 822 |
+
849
|
| 823 |
+
],
|
| 824 |
+
"page_idx": 5
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"type": "text",
|
| 828 |
+
"text": "The value of this is a zero-centred Gaussian random variable, since $s$ is Gaussian. The scale is independent of the current weight value and only determined by the post-synaptic moments of the incoming unit, the dropout rate and the error signal. We conclude, that also in this case, we can write ",
|
| 829 |
+
"bbox": [
|
| 830 |
+
173,
|
| 831 |
+
852,
|
| 832 |
+
825,
|
| 833 |
+
893
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 5
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "equation",
|
| 839 |
+
"img_path": "images/3b7e62de5bf46fdcbb4b8294c35c08b65dbc0ac7c7f2e7d7f174682661867320.jpg",
|
| 840 |
+
"text": "$$\n\\begin{array} { r c l } { \\displaystyle \\frac { \\partial \\mathcal { T } } { \\partial w _ { i } } } & { = } & { \\displaystyle \\frac { \\partial \\mathcal { L } ^ { a } } { \\partial w _ { i } } + \\frac { \\partial \\mathcal { R } _ { \\mathrm { d r a w } } ^ { a } } { \\partial w _ { i } } , } \\end{array}\n$$",
|
| 841 |
+
"text_format": "latex",
|
| 842 |
+
"bbox": [
|
| 843 |
+
405,
|
| 844 |
+
895,
|
| 845 |
+
591,
|
| 846 |
+
929
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 5
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "where ${ \\partial \\mathcal { R } _ { \\mathrm { d r a w } } ^ { a } } / { \\partial \\boldsymbol { w } _ { i } }$ is defined as in Equation (4) and essentially an adaptive noise term. ",
|
| 853 |
+
"bbox": [
|
| 854 |
+
174,
|
| 855 |
+
103,
|
| 856 |
+
741,
|
| 857 |
+
118
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 6
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "We want to stress the fact that in the approximation as well as in the sampling case the regularization term vanishes at any optima of the training loss. A consequence of this is that no global attractor is formed, which makes the method theoretically useful for RNNs. One might argue that fast dropout should not have a regularizing effect all. Yet, regularization is not only influencing the final solution but also the optimization, leading to different optima. ",
|
| 864 |
+
"bbox": [
|
| 865 |
+
174,
|
| 866 |
+
125,
|
| 867 |
+
825,
|
| 868 |
+
195
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 6
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "text",
|
| 874 |
+
"text": "Relationship to Weight Decay As already mentioned, imposing a Gaussian distribution centred at the origin with precision $\\lambda$ as a prior on the weights leads to a method called weight decay. It is not only probabilistically sound but also works well empirically, see e.g. (Bishop et al., 2006). Recalling that the derivative of weight decay is of the form $\\partial \\mathcal { R } _ { \\mathrm { w d } } / \\partial w _ { i } = 2 \\lambda w _ { i }$ we can reinterpret $\\mathcal { R } _ { \\mathrm { a p p r o x } }$ as a weight decay term where the coefficient $\\lambda$ is weight-wise, dependent on the current activations and possibly negative. Weight decay will always be slightly wrong on the training set, since the derivative of the weight decay term has to match the one of the unregularized loss. In order for $\\partial \\mathcal { L } / \\partial \\theta + \\partial \\mathcal { R } _ { \\mathrm { w d } } / \\partial \\theta$ to be minimal, $\\mathcal { L }$ cannot be minimal unless so is $\\mathcal { R }$ . ",
|
| 875 |
+
"bbox": [
|
| 876 |
+
173,
|
| 877 |
+
210,
|
| 878 |
+
825,
|
| 879 |
+
323
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 6
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "text",
|
| 885 |
+
"text": "Relationship to Adaptive Weight Noise In this method (Graves, 2011) not the units but the weights are stochastic, which is in pratice implemented by performing Monte Carlo sampling. We can use a similar technique to FD to find a closed form approximation. In this case, a layer is $y = f ( \\mathbf { x } ^ { T } \\mathbf { w } )$ , where we have no dropout variables and the weights are Gaussian distributed with $\\begin{array} { r } { \\mathbf { \\ d } \\mathbf { \\ b { v } } \\sim \\mathcal { N } ( \\mu _ { \\mathbf { w } } , \\sigma _ { \\mathbf { w } } ^ { 2 } ) . } \\end{array}$ , with covariance diagonal and organized into a vector. We assume Gaussian density for $a = \\mathbf { x } ^ { T } \\mathbf { w }$ . Using similar algebra as above, we find that ",
|
| 886 |
+
"bbox": [
|
| 887 |
+
173,
|
| 888 |
+
338,
|
| 889 |
+
825,
|
| 890 |
+
422
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 6
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "equation",
|
| 896 |
+
"img_path": "images/db912e719e1423d07199f3324973203cbd57dbb208957b9f15b657b1fc49598f.jpg",
|
| 897 |
+
"text": "$$\n\\begin{array} { r c l } { \\mathbf { E } [ a ] } & { = } & { \\boldsymbol { \\mu } _ { \\mathbf { x } } ^ { T } \\boldsymbol { \\mu } _ { \\mathbf { w } } , } \\\\ { \\mathbf { V } [ a ] } & { = } & { \\boldsymbol { \\sigma } _ { \\mathbf { x } } ^ { 2 T } \\boldsymbol { \\mu } _ { \\mathbf { w } } ^ { 2 } + \\boldsymbol { \\sigma } _ { \\mathbf { x } } ^ { 2 T } \\boldsymbol { \\sigma } _ { \\mathbf { w } } ^ { 2 } + \\boldsymbol { \\mu } _ { \\mathbf { x } } ^ { 2 T } \\boldsymbol { \\sigma } _ { \\mathbf { w } } ^ { 2 } . } \\end{array}\n$$",
|
| 898 |
+
"text_format": "latex",
|
| 899 |
+
"bbox": [
|
| 900 |
+
364,
|
| 901 |
+
429,
|
| 902 |
+
632,
|
| 903 |
+
472
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 6
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "text",
|
| 909 |
+
"text": "It is desirable to determine whether fast dropout and “fast adaptive weight noise” are special cases of each other. Showing that the aproaches are different can be done by equating equations (1) and (5) and solving for $\\mu _ { \\mathbf { w } }$ . This shows that rescaling by $1 - p$ suffices in the case of the expectation. It is however not as simple as that for the variance, i.e. for equations (2) and (6), where the solution depends on $\\mu _ { \\mathbf { x } }$ and $\\sigma _ { \\mathbf { x } } ^ { \\hat { 2 } }$ and thus is not independent of the input to the network. Yet, both methods share the property that no global attractor is present in the loss: the “prior” is part of the optimization and not fixed. ",
|
| 910 |
+
"bbox": [
|
| 911 |
+
173,
|
| 912 |
+
474,
|
| 913 |
+
825,
|
| 914 |
+
573
|
| 915 |
+
],
|
| 916 |
+
"page_idx": 6
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"type": "text",
|
| 920 |
+
"text": "2.3 Bag of Tricks ",
|
| 921 |
+
"text_level": 1,
|
| 922 |
+
"bbox": [
|
| 923 |
+
174,
|
| 924 |
+
590,
|
| 925 |
+
305,
|
| 926 |
+
606
|
| 927 |
+
],
|
| 928 |
+
"page_idx": 6
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"type": "text",
|
| 932 |
+
"text": "Throughout the experiments we will resort to several “tricks” that have been introduced recently for more stable and efficient optimization of neural networks and RNNs especially. First, we make use of rmsprop (Tieleman and Hinton, 2012), an optimizer which divides the gradient by an exponential moving average of its squares. This approach is similar to Adagrad (Duchi et al., 2011), which uses a window based average. We found that enhancing rmsprop with Nesterov’s accelerated gradient (Sutskever, 2013) greatly reduces the training time in preliminary experiments. ",
|
| 933 |
+
"bbox": [
|
| 934 |
+
174,
|
| 935 |
+
617,
|
| 936 |
+
825,
|
| 937 |
+
702
|
| 938 |
+
],
|
| 939 |
+
"page_idx": 6
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "text",
|
| 943 |
+
"text": "To initialize the RNNs to stable dynamics we followed the initialization protocol of (Sutskever et al., 2013) of setting the spectral radius $\\rho$ to a specific value and the maximum amount of incoming connections of a unit to $\\nu$ ; we did not find it necessary to centre the inputs and outputs. The effect of not only using the recurrent weight matrix for propagating the states through time but also its element-wise square for advancing the variances can be quantified. The stability of a network is coupled to the spectral radius of the recurrent weight matrix $\\rho ( W _ { \\mathrm { r e c } } )$ ; thus, the stability of forward propagating the variance is related to the spectral radius of its element-wise square $\\rho ( W _ { \\mathrm { r e c } } ^ { 2 } )$ . Since $\\rho ( A B ) \\le \\rho ( A ) \\rho ( B )$ for non-negative matrices and non-singular matrices $A$ and $B$ (Horn and Johnson, 2012), setting $W _ { \\mathrm { r e c } }$ to full rank and its spectral radius to $\\rho ( W _ { \\mathrm { r e c } } )$ assures $\\rho ( W _ { \\mathrm { r e c } } ^ { 2 } ) = \\rho ( | W _ { \\mathrm { r e c } } | ^ { 2 } ) \\leq \\rho ( W _ { \\mathrm { r e c } } ) ^ { 2 }$ , where $| \\cdot |$ denotes taking the absolute value element-wise. We also use the gradient clipping method introduced in (Pascanu et al., 2012), with a fixed threshold of 225. ",
|
| 944 |
+
"bbox": [
|
| 945 |
+
174,
|
| 946 |
+
708,
|
| 947 |
+
825,
|
| 948 |
+
875
|
| 949 |
+
],
|
| 950 |
+
"page_idx": 6
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"type": "text",
|
| 954 |
+
"text": "Since the hidden-to-hidden connections and the hidden-to-output connections in an RNN can make use of hidden units in quite distinct ways, we found it beneficial to separate the dropout rates. Specifically, a hidden unit may have a different probability to be dropped out when feeding into ",
|
| 955 |
+
"bbox": [
|
| 956 |
+
176,
|
| 957 |
+
882,
|
| 958 |
+
823,
|
| 959 |
+
924
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 6
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "text",
|
| 965 |
+
"text": "Table 1: Results on the midi data sets. All numbers are average negative log-likelihoods on the test set, where “FD” represents our work; “plain” and “RNN-NADE” results are from (Bengio et al., 2012) while “Deep RNN“ shows the best results from (Pascanu et al., 2013). Note that “RNN-NADE” and “Deep RNN“ employ various extensions of the model structure of this work, i.e. structured outputs and various forms of depths. Our results are the best for the shallow RNN model considered in this work. ",
|
| 966 |
+
"bbox": [
|
| 967 |
+
173,
|
| 968 |
+
111,
|
| 969 |
+
825,
|
| 970 |
+
195
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 7
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "table",
|
| 976 |
+
"img_path": "images/0e2dde4f75682765f7507c8ab27f8932d52ebd61eba6bfead9907c9320d8d7ac.jpg",
|
| 977 |
+
"table_caption": [],
|
| 978 |
+
"table_footnote": [],
|
| 979 |
+
"table_body": "<table><tr><td>Data set</td><td>FD</td><td>plain</td><td>RNN-NADE</td><td>Deep RNN</td></tr><tr><td>Piano-midi.de</td><td>7.39</td><td>7.58</td><td>7.05</td><td>1</td></tr><tr><td>Nottingham</td><td>3.09</td><td>3.43</td><td>2.31</td><td>2.95</td></tr><tr><td>MuseData</td><td>6.75</td><td>6.99</td><td>5.60</td><td>6.59</td></tr><tr><td>JSBChorales</td><td>8.01</td><td>8.58</td><td>5.19</td><td>7.92</td></tr></table>",
|
| 980 |
+
"bbox": [
|
| 981 |
+
305,
|
| 982 |
+
210,
|
| 983 |
+
691,
|
| 984 |
+
279
|
| 985 |
+
],
|
| 986 |
+
"page_idx": 7
|
| 987 |
+
},
|
| 988 |
+
{
|
| 989 |
+
"type": "text",
|
| 990 |
+
"text": "the hidden layer at the next time step than when feeding into the output layer. Taking this one step further, we also consider networks in which we completely neglect fast dropout for the hidden-tooutput connections; an ordinary forward pass is used instead. Note that this is not the same as setting the dropout rate to zero, since the variance of the incoming units is completely neglected. Whether this is done is treated as another hyperparameter for the experiment. ",
|
| 991 |
+
"bbox": [
|
| 992 |
+
174,
|
| 993 |
+
310,
|
| 994 |
+
825,
|
| 995 |
+
382
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 7
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "3 Experiments and Results ",
|
| 1002 |
+
"text_level": 1,
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
174,
|
| 1005 |
+
402,
|
| 1006 |
+
415,
|
| 1007 |
+
420
|
| 1008 |
+
],
|
| 1009 |
+
"page_idx": 7
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"type": "text",
|
| 1013 |
+
"text": "3.1 Musical Data ",
|
| 1014 |
+
"text_level": 1,
|
| 1015 |
+
"bbox": [
|
| 1016 |
+
174,
|
| 1017 |
+
435,
|
| 1018 |
+
305,
|
| 1019 |
+
450
|
| 1020 |
+
],
|
| 1021 |
+
"page_idx": 7
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"type": "text",
|
| 1025 |
+
"text": "All experiments were done by performing a random search (Bergstra and Bengio, 2012) over the hyper parameters (see Table 2 in the Appendix for an overview), where 32 runs were performed for each data set. We report the test loss of the model with the lowest validation error over all training runs, using the same split as in (Bengio et al., 2012). To improve speed, we organize sequences into minibatches by first splitting all sequences of the training and validation set into chunks of length of 100. Zeros are prepended to those sequences which have less than 100 time steps. The test error is reported on the unsplitted sequences. ",
|
| 1026 |
+
"bbox": [
|
| 1027 |
+
173,
|
| 1028 |
+
463,
|
| 1029 |
+
825,
|
| 1030 |
+
560
|
| 1031 |
+
],
|
| 1032 |
+
"page_idx": 7
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"type": "text",
|
| 1036 |
+
"text": "Training RNNs to generatively model polyphonic music is a valuable benchmark for RNNs due to its high dimensionality and the presense of long as well as short term dependencies. This data set has been evaluated previously by Bengio et al. (2012) where the model achieving the best results, RNN-NADE (Boulanger-Lewandowski et al., 2013), makes specific assumptions about the data (i.e. binary observables). RNNs do not attach any assumptions to the inputs. ",
|
| 1037 |
+
"bbox": [
|
| 1038 |
+
174,
|
| 1039 |
+
566,
|
| 1040 |
+
825,
|
| 1041 |
+
637
|
| 1042 |
+
],
|
| 1043 |
+
"page_idx": 7
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"type": "text",
|
| 1047 |
+
"text": "3.1.1 Setup ",
|
| 1048 |
+
"text_level": 1,
|
| 1049 |
+
"bbox": [
|
| 1050 |
+
174,
|
| 1051 |
+
654,
|
| 1052 |
+
266,
|
| 1053 |
+
669
|
| 1054 |
+
],
|
| 1055 |
+
"page_idx": 7
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"type": "text",
|
| 1059 |
+
"text": "The data consists of four distinct data sets, namely Piano-midi.de (classical piano music), Nottingham (folk music), MuseData (orchestral) and JSBChorales (chorales by Johann Sebastian Bach). Each has a dimensionality of 88 per time step organized into different piano rolls which are sequences of binary vectors; each component of these vectors indicates whether a note is occuring at the given time step. We use the RNN’s output to model the sufficient statistics of a Bernoulli random variable, i.e. ",
|
| 1060 |
+
"bbox": [
|
| 1061 |
+
173,
|
| 1062 |
+
679,
|
| 1063 |
+
825,
|
| 1064 |
+
763
|
| 1065 |
+
],
|
| 1066 |
+
"page_idx": 7
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"type": "equation",
|
| 1070 |
+
"img_path": "images/1336ee06d16e14dfe411b0f57a54d30332ab5f153b11b341e4a4b322712bb389.jpg",
|
| 1071 |
+
"text": "$$\np ( x _ { t , i } | \\mathbf { x } _ { 1 : t - 1 } ) = y _ { t , i } ,\n$$",
|
| 1072 |
+
"text_format": "latex",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
410,
|
| 1075 |
+
771,
|
| 1076 |
+
553,
|
| 1077 |
+
790
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 7
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "text",
|
| 1083 |
+
"text": "which describes the probability that note $i$ is present at time step $t$ . The output non-linearity $f _ { y }$ of the network is a sigmoid which projects the points to the interval $( 0 , 1 )$ . We perform learning by the minimization of the average negative log-likelihood (NLL); in this case, this is the average binary cross-entropy ",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
173,
|
| 1086 |
+
797,
|
| 1087 |
+
825,
|
| 1088 |
+
854
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 7
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "equation",
|
| 1094 |
+
"img_path": "images/f2a80a99960d685c6649e2351043b3e9ae6912350c6c8841754acae076312a60.jpg",
|
| 1095 |
+
"text": "$$\n\\mathcal { L } ( \\boldsymbol { \\theta } ) = \\frac { 1 } { T - 1 } \\frac { 1 } { N } \\sum _ { i , t , k } x _ { t , i } ^ { ( k ) } \\log y _ { t - 1 , i } ^ { ( k ) } + ( 1 - x _ { t , i } ^ { ( k ) } ) \\log ( 1 - y _ { t - 1 , i } ^ { ( k ) } ) ,\n$$",
|
| 1096 |
+
"text_format": "latex",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
261,
|
| 1099 |
+
861,
|
| 1100 |
+
700,
|
| 1101 |
+
901
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 7
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "where $k$ indices the training sample, $i$ the component of the target and $t$ the time step. ",
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
173,
|
| 1110 |
+
909,
|
| 1111 |
+
732,
|
| 1112 |
+
924
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 7
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "image",
|
| 1118 |
+
"img_path": "images/a4d9408295c1be22bcd0692eb5fe92b702156f3032f2e875a43922a0f773c817.jpg",
|
| 1119 |
+
"image_caption": [
|
| 1120 |
+
"Figure 2: Spectral radius over the training process. It increases first and then slowly decreases until a certain value is reached. We did not observe this behaviour when training plain RNNs. "
|
| 1121 |
+
],
|
| 1122 |
+
"image_footnote": [],
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
274,
|
| 1125 |
+
103,
|
| 1126 |
+
722,
|
| 1127 |
+
236
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 8
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "text",
|
| 1133 |
+
"text": "3.1.2 Results ",
|
| 1134 |
+
"text_level": 1,
|
| 1135 |
+
"bbox": [
|
| 1136 |
+
174,
|
| 1137 |
+
314,
|
| 1138 |
+
276,
|
| 1139 |
+
329
|
| 1140 |
+
],
|
| 1141 |
+
"page_idx": 8
|
| 1142 |
+
},
|
| 1143 |
+
{
|
| 1144 |
+
"type": "text",
|
| 1145 |
+
"text": "Although a common metric for evaluating the performance of such benchmarks is that of accuracy (Bay et al., 2009) we restrict ourselves to that of the NLL–the measure of accuracy is not what is optimized and to which the NLL is merely a proxy. We present the results of FD-RNNs compared with the various other methods in Table 1. Our method is only surpassed by methods which either incorporate more specific assumptions of the data or employ various forms of depth (BoulangerLewandowski et al., 2013; Pascanu et al., 2013). We want to stress that we performed only 32 runs for each data set once more. This shows the relative ease to obtain good results despite of the huge space of potential hyper parameters. ",
|
| 1146 |
+
"bbox": [
|
| 1147 |
+
174,
|
| 1148 |
+
339,
|
| 1149 |
+
825,
|
| 1150 |
+
450
|
| 1151 |
+
],
|
| 1152 |
+
"page_idx": 8
|
| 1153 |
+
},
|
| 1154 |
+
{
|
| 1155 |
+
"type": "text",
|
| 1156 |
+
"text": "One additional observation is the range of the Eigenvalues of the recurrent weight matrix $W _ { \\mathrm { r e c } }$ during training. We performed an additional experiment on JSBChorales where we inspected the Eigenvalues and and the test loss. We found that the spectral radius first increases sharply to a rather high value and then decreases slowly to settle to a specific value. We tried to replicate this behaviour in plain RNNs, but found that RNNs never exceeded a certain spectral radius at which they stuck. This stands in line with the observation from Section 2.2.2 that weights are encouraged to grow when the error is high and shrink during convergence to the optimum. See Figure 2 for a plot of the spectral radius $\\rho ( W _ { \\mathrm { r e c } } )$ over the training process stages. ",
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
174,
|
| 1159 |
+
458,
|
| 1160 |
+
825,
|
| 1161 |
+
569
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 8
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "text",
|
| 1167 |
+
"text": "4 Conclusion ",
|
| 1168 |
+
"text_level": 1,
|
| 1169 |
+
"bbox": [
|
| 1170 |
+
174,
|
| 1171 |
+
589,
|
| 1172 |
+
299,
|
| 1173 |
+
607
|
| 1174 |
+
],
|
| 1175 |
+
"page_idx": 8
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"type": "text",
|
| 1179 |
+
"text": "We have contributed to the field of neural networks in two ways. First, we have analysed a fast approximation of the dropout regularization method by bringing its derivative into the same form as that of a loss regularized with an additive term. We have used this form to gain further insights upon the behaviour of fast dropout for neural networks in general and shown that this objective function does not bias the solutions to those which perform suboptimal on the unreguarized loss. Second, we have hypothesized that this is beneficial especially for RNNs We confirmed this hypothesis by conducting quantitative experiments on an already established benchmark used in the context of learning recurrent networks. ",
|
| 1180 |
+
"bbox": [
|
| 1181 |
+
174,
|
| 1182 |
+
622,
|
| 1183 |
+
825,
|
| 1184 |
+
733
|
| 1185 |
+
],
|
| 1186 |
+
"page_idx": 8
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"type": "text",
|
| 1190 |
+
"text": "References ",
|
| 1191 |
+
"text_level": 1,
|
| 1192 |
+
"bbox": [
|
| 1193 |
+
174,
|
| 1194 |
+
756,
|
| 1195 |
+
266,
|
| 1196 |
+
772
|
| 1197 |
+
],
|
| 1198 |
+
"page_idx": 8
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"type": "text",
|
| 1202 |
+
"text": "Bay, M., Ehmann, A. F., and Downie, J. S. (2009). Evaluation of multiple-f0 estimation and tracking systems. In ISMIR, pages 315–320. \nBayer, J., Osendorfer, C., Urban, S., et al. (2013). Training neural networks with implicit variance. In Proceedings of the 20th International Conference on Neural Information Processing , ICONIP2013. \nBengio, Y., Boulanger-Lewandowski, N., and Pascanu, R. (2012). Advances in optimizing recurrent networks. arXiv preprint arXiv:1212.0901. \nBengio, Y., Simard, P., and Frasconi, P. (1994). Learning long-term dependencies with gradient descent is difficult. Neural Networks, IEEE Transactions on, 5(2):157–166. \nBergstra, J. and Bengio, Y. (2012). Random search for hyper-parameter optimization. The Journal of Machine Learning Research, 13:281–305. \nBergstra, J., Breuleux, O., Bastien, F., Lamblin, P., Pascanu, R., Desjardins, G., Turian, J., WardeFarley, D., and Bengio, Y. (2010). Theano: a CPU and GPU math expression compiler. In Proceedings of the Python for Scientific Computing Conference (SciPy). Oral Presentation. \nBishop, C. M. (1995). Neural networks for pattern recognition. Oxford university press. \nBishop, C. M. et al. (2006). Pattern recognition and machine learning, volume 1. springer New York. \nBoulanger-Lewandowski, N., Bengio, Y., and Vincent, P. (2013). High-dimensional sequence transduction. In ICASSP. \nDuchi, J., Hazan, E., and Singer, Y. (2011). Adaptive subgradient methods for online learning and stochastic optimization. The Journal of Machine Learning Research, 999999:2121–2159. \nGraves, A. (2011). Practical variational inference for neural networks. In Advances in Neural Information Processing Systems, pages 2348–2356. \nGraves, A. (2013). Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850. \nGraves, A., Fernandez, S., Liwicki, M., Bunke, H., and Schmidhuber, J. (2008). Unconstrained ´ online handwriting recognition with recurrent neural networks. Advances in Neural Information Processing Systems, 20:1–8. \nGraves, A., Mohamed, A.-r., and Hinton, G. (2013). Speech recognition with deep recurrent neural networks. arXiv preprint arXiv:1303.5778. \nHammer, B. (2000). On the approximation capability of recurrent neural networks. Neurocomputing, 31(1):107–123. \nHinton, G. E., Srivastava, N., Krizhevsky, A., Sutskever, I., and Salakhutdinov, R. R. (2012). Improving neural networks by preventing co-adaptation of feature detectors. arXiv preprint arXiv:1207.0580. \nHochreiter, S. (1991). Untersuchungen zu dynamischen neuronalen netzen. Master’s thesis, Institut fur Informatik, Technische Universit ¨ at, M ¨ unchen ¨ . \nHochreiter, S. and Schmidhuber, J. (1997). Long short-term memory. Neural computation, 9(8):1735–1780. \nHorn, R. A. and Johnson, C. R. (2012). Matrix analysis. Cambridge university press. \nJager, H. et al. (2003). Adaptive nonlinear system identification with echo state networks. ¨ networks, 8:9. \nJulier, S. J. and Uhlmann, J. K. (1997). New extension of the kalman filter to nonlinear systems. In AeroSense’97, pages 182–193. International Society for Optics and Photonics. \nLehmann, E. L. (1999). Elements of large-sample theory. Springer Verlag. \nMartens, J. and Sutskever, I. (2011). Learning recurrent neural networks with hessian-free optimization. Proc. 28th Int. Conf. on Machine Learning. \nMikolov, T., Karafiat, M., Burget, L., Cernocky, J., and Khudanpur, S. (2010). Recurrent neural ´ network based language model. Proceedings of Interspeech. \nPachitariu, M. and Sahani, M. (2013). Regularization and nonlinearities for neural language models: when are they needed? arXiv preprint arXiv:1301.5650. \nPascanu, R., Gulcehre, C., Cho, K., and Bengio, Y. (2013). How to construct deep recurrent neural networks. arXiv preprint arXiv:1312.6026. \nPascanu, R., Mikolov, T., and Bengio, Y. (2012). On the difficulty of training recurrent neural networks. Technical report, Technical Report. \nRifai, S., Dauphin, Y. N., Vincent, P., Bengio, Y., and Muller, X. (2011). The manifold tangent classifier. In Advances in Neural Information Processing Systems, pages 2294–2302. \nRumelhart, D. E., Hinton, G. E., and Williams, R. J. (1986). Learning representations by backpropagating errors. Nature, 323(6088):533–536. ",
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
171,
|
| 1205 |
+
780,
|
| 1206 |
+
826,
|
| 1207 |
+
924
|
| 1208 |
+
],
|
| 1209 |
+
"page_idx": 8
|
| 1210 |
+
},
|
| 1211 |
+
{
|
| 1212 |
+
"type": "text",
|
| 1213 |
+
"text": "",
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
171,
|
| 1216 |
+
102,
|
| 1217 |
+
830,
|
| 1218 |
+
924
|
| 1219 |
+
],
|
| 1220 |
+
"page_idx": 9
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"type": "table",
|
| 1224 |
+
"img_path": "images/d5848049279d58f7a3196b7e0796a82c0af0a3f955cea8259f2be000e7f08006.jpg",
|
| 1225 |
+
"table_caption": [
|
| 1226 |
+
"Table 2: Hyper parameter ranges and parameter distributions for the musical data sets. "
|
| 1227 |
+
],
|
| 1228 |
+
"table_footnote": [],
|
| 1229 |
+
"table_body": "<table><tr><td>Hyper parameter #hidden layers</td><td>Choices 1</td></tr><tr><td>#hidden units Transfer function p("dropout input") p("dropout hidden to hidden") p("dropout hidden to output") Use fast dropout for final layer Step rate Momentum Decay W Win bh</td><td>200,400,600 tanh 0.0, 0.1, 0.2 0.0, 0.1, 0.2, 0.3,0.4, 0.5 0.0, 0.2,0.5 yes,no 0.01,0.005,0.001,0.0005,0.0001,0.00001 0.0,0.9,0.95,0.99,0.995 0.8,0.9 N(0,σ²),0² ∈ {0.1,0.01,0.001,0.0001} N(0,σ²),g² ∈ {0.1,0.01,0.001,0.0001}</td></tr></table>",
|
| 1230 |
+
"bbox": [
|
| 1231 |
+
254,
|
| 1232 |
+
148,
|
| 1233 |
+
741,
|
| 1234 |
+
368
|
| 1235 |
+
],
|
| 1236 |
+
"page_idx": 10
|
| 1237 |
+
},
|
| 1238 |
+
{
|
| 1239 |
+
"type": "text",
|
| 1240 |
+
"text": "Sutskever, I. (2013). Training Recurrent Neural Networks. PhD thesis, University of Toronto. ",
|
| 1241 |
+
"bbox": [
|
| 1242 |
+
174,
|
| 1243 |
+
400,
|
| 1244 |
+
787,
|
| 1245 |
+
415
|
| 1246 |
+
],
|
| 1247 |
+
"page_idx": 10
|
| 1248 |
+
},
|
| 1249 |
+
{
|
| 1250 |
+
"type": "text",
|
| 1251 |
+
"text": "Sutskever, I., Martens, J., Dahl, G., and Hinton, G. (2013). On the importance of initialization and momentum in deep learning. \nSutskever, I., Martens, J., and Hinton, G. (2011). Generating text with recurrent neural networks. Proceedings of the 2011 International Conference on Machine Learning (ICML-2011). \nTieleman, T. and Hinton, G. (2012). Lecture 6.5 - rmsprop: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning. \nWager, S., Wang, S., and Liang, P. (2013). Dropout training as adaptive regularization. arXiv preprint arXiv:1307.1493. \nWang, S. and Manning, C. (2013). Fast dropout training. In Proceedings of the 30th International Conference on Machine Learning (ICML-13), pages 118–126. \nZeiler, M., Ranzato, M., Monga, R., Mao, M., Yang, K., Le, Q., Nguyen, P., Senior, A., Vanhoucke, V., Dean, J., et al. (2013). On rectified linear units for speech processing. ICASSP. ",
|
| 1252 |
+
"bbox": [
|
| 1253 |
+
171,
|
| 1254 |
+
404,
|
| 1255 |
+
828,
|
| 1256 |
+
612
|
| 1257 |
+
],
|
| 1258 |
+
"page_idx": 10
|
| 1259 |
+
},
|
| 1260 |
+
{
|
| 1261 |
+
"type": "text",
|
| 1262 |
+
"text": "5 Appendix ",
|
| 1263 |
+
"text_level": 1,
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
173,
|
| 1266 |
+
637,
|
| 1267 |
+
287,
|
| 1268 |
+
655
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 10
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "text",
|
| 1274 |
+
"text": "5.1 Hyper Parameters for Musical Data Experiments ",
|
| 1275 |
+
"text_level": 1,
|
| 1276 |
+
"bbox": [
|
| 1277 |
+
173,
|
| 1278 |
+
669,
|
| 1279 |
+
555,
|
| 1280 |
+
684
|
| 1281 |
+
],
|
| 1282 |
+
"page_idx": 10
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"type": "text",
|
| 1286 |
+
"text": "We show the hyper parameters ranges for the musical data in Table 2. The ones from which the numbers in Table 1 resulted are given in Table 3. ",
|
| 1287 |
+
"bbox": [
|
| 1288 |
+
174,
|
| 1289 |
+
694,
|
| 1290 |
+
825,
|
| 1291 |
+
723
|
| 1292 |
+
],
|
| 1293 |
+
"page_idx": 10
|
| 1294 |
+
},
|
| 1295 |
+
{
|
| 1296 |
+
"type": "table",
|
| 1297 |
+
"img_path": "images/1845f20d162b417d57ca5e1c58d5fb3d66a80bbea900933a2e3c10cbfe01f5bb.jpg",
|
| 1298 |
+
"table_caption": [
|
| 1299 |
+
"Table 3: Hyper parameters used for the musical data experiments. "
|
| 1300 |
+
],
|
| 1301 |
+
"table_footnote": [],
|
| 1302 |
+
"table_body": "<table><tr><td>Hyper parameter</td><td>Piano-midi.de</td><td>Nottingham</td><td>MuseData</td><td>JSBChorales</td></tr><tr><td>#hidden units</td><td>600</td><td>400</td><td>600</td><td>400</td></tr><tr><td>p("dropout input")</td><td>0.1</td><td>0.1</td><td>0.2</td><td>0.1</td></tr><tr><td>p("dropout hidden to hidden")</td><td>0.3</td><td>0.4</td><td>0.3</td><td>0.2</td></tr><tr><td>p("dropout hidden to output")</td><td>1</td><td>0.0</td><td>0.0</td><td>0.5</td></tr><tr><td>Use fast dropout for final layer</td><td>no</td><td>yes</td><td>yes</td><td>yes</td></tr><tr><td>Step rate</td><td>0.005</td><td>0.001</td><td>0.0005</td><td>0.001</td></tr><tr><td>Momentum</td><td>0.995</td><td>0.99</td><td>0.995</td><td>0.99</td></tr><tr><td>Decay</td><td>0.8</td><td>0.9</td><td>0.9</td><td>0.8</td></tr><tr><td>g² for Wrec, Wout</td><td>0.1</td><td>0.001</td><td>0.1</td><td>0.0001</td></tr><tr><td>g² for Win</td><td>0.0001</td><td>0.1</td><td>0.0001</td><td>0.01</td></tr><tr><td>p(Wrec)</td><td>1.2</td><td>1.2</td><td>1.2</td><td>1.2</td></tr><tr><td>V</td><td>25</td><td>no</td><td>no</td><td>15</td></tr></table>",
|
| 1303 |
+
"bbox": [
|
| 1304 |
+
214,
|
| 1305 |
+
443,
|
| 1306 |
+
782,
|
| 1307 |
+
612
|
| 1308 |
+
],
|
| 1309 |
+
"page_idx": 11
|
| 1310 |
+
}
|
| 1311 |
+
]
|
parse/train/OP4ePyQXNu-da/OP4ePyQXNu-da_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/OP4ePyQXNu-da/OP4ePyQXNu-da_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJtfOEn6-/SJtfOEn6-.md
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
| 1 |
+
# RESBINNET: RESIDUAL BINARY NEURAL NETWORK
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Recent efforts on training light-weight binary neural networks offer promising execution/memory efficiency. This paper introduces ResBinNet, which is a composition of two interlinked methodologies aiming to address the slow convergence speed and limited accuracy of binary convolutional neural networks. The first method, called residual binarization, learns a multi-level binary representation for the features within a certain neural network layer. The second method, called temperature adjustment, gradually binarizes the weights of a particular layer. The two methods jointly learn a set of soft-binarized parameters that improve the convergence rate and accuracy of binary neural networks. We corroborate the applicability and scalability of ResBinNet by implementing a prototype hardware accelerator. The accelerator is reconfigurable in terms of the numerical precision of the binarized features, offering a trade-off between runtime and inference accuracy.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Convolutional Neural Networks (CNNs) have shown promising inference accuracy for learning applications in various domains. These models are generally over-parameterized to facilitate the convergence during the training phase (Hinton et al. (2012); Denil et al. (2013)). A line of optimization methodologies such as tensor decomposition (Kim et al. (2015); Zhang et al. (2015)), parameter quantization (Hubara et al. (2016); Han et al. (2015)), sparse convolutions (Liu et al. (2015); Wen et al. (2016)), and binary networks (Courbariaux et al. (2016); Rastegari et al. (2016)) have been proposed to reduce the complexity of neural networks for efficient execution. Among these works, binary neural networks result in two particular benefits: (i) They reduce the memory footprint by a factor of 32 compared to the full-precision model; this is specifically important since memory access plays an essential role in the execution of CNNs on resource-constrained devices. (ii) Binary networks replace the costly multiplications with simple XNOR operations (Rastegari et al. (2016); Umuroglu et al. (2017)), reducing the execution time and energy consumption significantly.
|
| 12 |
+
|
| 13 |
+
Considering the prior art, there exist two major challenges associated with binary neural networks. First, the convergence rate of the existing solutions for training binary CNNs is considerably slower than their full-precision counterparts. Second, in order to achieve comparable classification accuracy, binarized neural networks often compensate for the numerical precision loss by employing high dimensional feature maps in a wide CNN topology, which in turn reduces the effective compression rate. As a result, full-precision networks often surpass binary networks in terms of convergence rate and final achievable accuracy.
|
| 14 |
+
|
| 15 |
+
In this paper, we propose ResBinNet, a novel solution for increasing the convergence rate and the final accuracy of binary networks. The global flow of ResBinNet is depicted in Figure 1. The first phase, which we call Soft Binarization, includes two methodologies that we propose to address the aforementioned challenges for training binary CNNs. First, we introduce a Residual Binarization scheme which allows the number of possible values for activation units to be reconfigurable at runtime. To this purpose, we learn a multi-level residual representation for the features within the CNN to adaptively increase the numerical precision of the activation units. Second, we introduce a novel weight binarization approach, called Tempreture Adjustment, which aims to gradually enforce binarization constraints over the weight parameters throughout the training phase. The two interlinked methods significantly improve both the convergence rate and the final accuracy of ResBinNet compared to prior art. Once the soft training phase is finished, we convert the weights to actual binary values (0,1). Fine-tuning of the model is then performed in Hard Binarization phase using existing training algorithms (e.g. BinaryNets (Courbariaux et al. (2016))) in few epochs (e.g. one epoch).
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: The global flow of ResBinNet binary training. Residual binarization learns a multi-level representation for feature maps. Temperature adjustment performs a change of variable over the trainable weights and gradually pushes them towards binary values during the training phase.
|
| 19 |
+
|
| 20 |
+
ResBinNet is designed to fulfill certain goals: (i) It should enable reconfigurability for binary neural networks; in other words, the number of residual binary representatives should be adjustable to offer a trade-off between inference accuracy and computation time. (ii) The multi-level binarized features should be compatible with the XNOR multiplication approach proposed in the existing literature. (iii) ResBinNet should speed up the convergence rate of binarized CNNs. (iv) Current hardware accelerators for binary CNNs should be able to benefit from ResBinNet with minimum modification in their design. In summary, the contributions of this paper are as follows:
|
| 21 |
+
|
| 22 |
+
• Proposing residual binarization, a methodology for learning multi-level residual representations for each feature map in binary CNNs. Introducing temperature adjustment as a practical approach for gradual (soft) binarization of CNN weights.
|
| 23 |
+
• Analyzing the trade-off between accuracy and execution time of ResBinNet on a real hardware design.
|
| 24 |
+
• Evaluating ResBinNet convergence rate and accuracy on three datasets: MNIST, SVHN, and CIFAR-10.
|
| 25 |
+
• Development of an open-source Application Program Interface (API) for ResBinNet1.
|
| 26 |
+
|
| 27 |
+
The remainder of the paper is organized as follows: In Section 2, we describe the residual binarization method for binarizing activations. Section 3 explains the temperature adjustment technique for binarizing weights. In Section 4, we discuss how particular ResBinNet operations (e.g. multi-level XNOR-popcount) can be efficiently implemented on existing hardware accelerators. Experiments are discussed in Section 5. Finally, we discuss the related work and conclusion in Sections 6 and 7.
|
| 28 |
+
|
| 29 |
+
# 2 RESIDUAL BINARIZATION
|
| 30 |
+
|
| 31 |
+
A binarization scheme converts value $x$ to the binarized estimation $e _ { x }$ , which can take one of the possible values $\gamma$ or $- \gamma$ . This representation allows us to represent $e _ { x }$ with a single bit $b _ { x }$ . In particular, for a given layer within the CNN, we can store the single full-precision value of $\gamma$ as a representative for all features, and reduce the memory footprint by storing bits $b _ { x }$ instead of $x$ for each feature. Assuming that both the weights and input features of a CNN layer are binarized, each dot product between a feature vector $\vec { x }$ and weight vector $\vec { w }$ can be efficiently computed using XNOR-popcount operations as previously suggested in (Courbariaux et al. (2016); Rastegari et al. (2016)). Let $\vec { x } = \vec { \gamma } _ { x } \vec { s } _ { x }$ and $\bar { w } = \gamma _ { w } \ \bar { s } _ { w }$ where $\{ \gamma _ { x } , \gamma _ { w } \}$ are scalar values and $\{ \vec { s } _ { x } , \vec { s } _ { w } \}$ are the corresponding sign vectors. The binary representations of $\{ \vec { x } , \vec { y } \}$ , which we denote by $\{ \vec { b } _ { x } , \vec { b } _ { w } \}$ , are simply computed by encoding the sign vectors $\vec { s }$ to binary vectors. The dot product between $\vec { x }$ and $\vec { w }$ can be computed as:
|
| 32 |
+
|
| 33 |
+
$$
|
| 34 |
+
d o t ( \vec { w } , \vec { x } ) = \gamma _ { x } \gamma _ { w } d o t ( \vec { s } _ { x } , \vec { s } _ { w } ) = \gamma _ { x } \gamma _ { w } x n o r p o p c o u n t ( \vec { b _ { x } } , \vec { b _ { w } } ) ,
|
| 35 |
+
$$
|
| 36 |
+
|
| 37 |
+
where xnorpopcount $\cdot , . . )$ returns the number of set bits in the element-wise XNOR of the input binary vectors.
|
| 38 |
+
|
| 39 |
+

|
| 40 |
+
Figure 2: Schematic flow for computing 3 levels of residual binary estimates $e$ . As we go deeper in levels, the estimation becomes more accurate.
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
Figure 3: Illustration of binarized activation function. (a) Conventional 1-level binarization. (b) Residual binarization with two levels.
|
| 44 |
+
|
| 45 |
+
Multi-level Residual Binarization: Imposing binary constraints on weights and activations of a neural network inherently limits the model’s ability to provide the inference accuracy that a floatingpoint counterpart can achieve. To address this issue, we propose a multi-level binarization scheme where the residual errors are sequentially binarized to increase the numerical precision of the estimation. Figure 2 presents the procedure to compute an estimate $e$ from input $x$ . Each level of the graph (say the $i ^ { t h }$ level) computes the corresponding estimate $e _ { i }$ by taking the sign of its input (the residual error from the $( i - 1 ) ^ { t h }$ level), multiplying it by a parameter $\gamma _ { i }$ , and adding $\pm \gamma _ { i }$ to the estimate of the previous level. In addition, it computes the residual error $r _ { i }$ and feeds it to the input of the next level. The estimates of deeper levels are therefore more accurate representations for the input $x$ . Note that the estimate $e _ { i }$ in level $i$ can be represented using a stream of $i$ bits corresponding to the signs of inputs to the first $i$ levels.
|
| 46 |
+
|
| 47 |
+
Residual Binary Activation Function: Similar to previous works which use the Sign function as the activation function, in this paper we use the residual binarization to account for the activation function. The difference between our approach and the single-bit approach is shown in Figure 3. Each level has a separate full-precision representative $\gamma _ { i }$ , which should be learned in the training phase. In this setting, the gradients in the backward propagation are computed the same way as in the conventional single-bit binarization (Courbariaux et al. (2016); Rastegari et al. (2016)), regardless of the number of residual levels. In the forward propagation, however, the computed results of our approach provide a more accurate approximation. For instance, if we employ 2 levels of residual binarization, the activation function can take $2 ^ { 2 } = 4$ different values. In general, the total number of possible values for the activation functions for an $l$ -level residual binarization scheme is $2 ^ { l }$ .
|
| 48 |
+
|
| 49 |
+
Multi-level XNOR-popcount: In ResBinNet, the dot product of an $l$ -level residual-binarized feature
|
| 50 |
+
vector operati $\vec { e }$ ans. a Let weigand $\vec { w }$ e rende, where usinand $l$ suco equent XNOR-popcoespond to the sign of $\begin{array} { r } { \vec { e } = \sum _ { i = 1 } ^ { l } \gamma _ { e i } \vec { s } _ { e i } } \end{array}$ $\vec { w } = \gamma _ { w } \vec { s } _ { w }$ $\vec { s } _ { e i }$ $\vec { s } _ { w }$ $i ^ { t h }$ $\vec { e }$ $\vec { w }$ $\vec { e }$ $\vec { w }$
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
l o t ( \vec { w } , \vec { e } ) = d o t ( \sum _ { i = 1 } ^ { l } \gamma _ { e i } \vec { s } _ { e i } , \gamma _ { w } \vec { s } _ { w } ) = \sum _ { i = 1 } ^ { l } \gamma _ { e i } \gamma _ { w } d o t ( \vec { s } _ { e i } , \vec { s } _ { w } ) = \sum _ { i = 1 } ^ { l } \gamma _ { e i } \gamma _ { w } x n o r p o p c o u n t ( \vec { b } _ { e i } , \vec { b } _ { w } ) ,
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
where $\{ \vec { b } _ { e i } , \vec { b } _ { w } \}$ are the binary representations corresponding to $\left\{ \vec { s } _ { e i } , \vec { s } _ { w } \right\}$ , respectively. Note that the subsequent XNOR-popcount operations can be performed sequentially, thus, the same memory used for operating on $\bar { \vec { b } } _ { e i }$ can be reused for operating on $\vec { b } _ { e i + 1 }$ . As a result, the actual memory footprint for a multi-level residual binarization is the same as that of a single-level binarization, provided that the bit streams are processed sequentially.
|
| 57 |
+
|
| 58 |
+
Residual Encoding: In order to convert matrix-vector multiplications into XNOR-popcount operations, we need to encode a feature $x$ into a stream of binary values $\{ b _ { e i } | i \in 1 , 2 , \ldots , l \}$ . The pseudo code for this operation, which we call Residual Encoding, is presented in Algorithm 1.
|
| 59 |
+
|
| 60 |
+
# Algorithm 1 l-level residual encoding algorithm
|
| 61 |
+
|
| 62 |
+
<table><tr><td>inputs: γ1,y2,., Yt,x outputs:be1i,be2,...,bel</td><td></td></tr><tr><td>1:r↑x</td><td></td></tr><tr><td>2:e↑0</td><td></td></tr><tr><td>3: fori=1... do</td><td></td></tr><tr><td>4: bei ←Binarize(Sign(r))</td><td></td></tr><tr><td>5:</td><td>e←e+Sign(r)Xγi</td></tr><tr><td>6: 7: end for</td><td>r←r-Sign(r)×γi</td></tr></table>
|
| 63 |
+
|
| 64 |
+
# 3 TEMPERATURE ADJUSTMENT
|
| 65 |
+
|
| 66 |
+
Approximating the weights of a neural network with binary values often results in loss of accuracy in the pertinent model. In this section, we explain our methodology to minimize the approximation error during the training, such that the trained weights exhibit lower binarization errors. Let $W$ denote the parameter set within a certain layer of the neural network. Instead of directly using $W$ to compute the layer’s output, we perform a change of variable $\theta = \gamma H ( \alpha W )$ and compute the output using $\theta$ . Here, $H ( . )$ is a bounded, monotonically-increasing function such as the Hyperbolic Tangent function that is applied on $W$ element-wise. Parameter $\gamma$ is a trainable parameter that adjusts the maximum and minimum values that $\theta$ can take. Parameter $\alpha$ , which we call the Temperature henceforth, controls the slope of function $H ( . )$ .
|
| 67 |
+
|
| 68 |
+
Effect on Binarization: Figure 4a and 4b illustrate the effect of parameters $\alpha$ and $\gamma$ on the nonlinear change of variable $\theta = \gamma T a n h ( \alpha W )$ . Note that $\theta$ acts as a semi-binarized parameter set in the soft training phase. As we increase the temperature parameter, $H ( . )$ becomes closer to the binary sign function, meaning that the pertinent $\theta$ will exhibit less error when approximated with $\pm \gamma$ . Note that $W$ and $\gamma$ are the trainable parameters in this setting. Parameter $\theta$ is used in the forward propagation phase of the soft training, while in the backward propagation step $W$ is updated.
|
| 69 |
+
|
| 70 |
+
Effect on Training: Let $g _ { \theta }$ and $g _ { W }$ be the gradients of the training loss function with respect to $\theta$ and $W$ , respectively, then we have $\begin{array} { r } { g _ { W } = \overset { \smile } { \boldsymbol { g } _ { \theta } } \times \frac { \partial \theta } { \partial W } } \end{array}$ . In other words, the magnitude of the gradient that actually flows through out; otherwise, the gradients will flow through $W$ is controlled by $\textstyle { \frac { \partial \theta } { \partial W } }$ ∂WW. . If $\theta$ is close to $\pm \gamma$ , the gradient will be filtered
|
| 71 |
+
|
| 72 |
+
Efafof t of the Temperature on t the gradient filtering term that are closer to 0 receive $\textstyle { \frac { \partial \theta } { \partial W } }$ ients: Figure 4c illustrates how the temperature parameter canduring the training. As we increase the temperature, elementslified gradients, while the elements that are closer to the binary $W$ regime (i.e. $\theta \approx \pm \gamma )$ encounter damped gradients. This means that increasing the temperature parameter $\alpha$ will push most of the weights to the binary regime with a bigger force; therefore, a neural network trained with high temperature values exhibits a smaller binarization error.
|
| 73 |
+
|
| 74 |
+
Temperature Adjustment: Setting a high temperature at the beginning of the training will eliminate most of the gradients, preventing the training loss from being optimized. To address this problem, we start the soft binarization phase with a low temperature (e.g. $\alpha = 1$ ) and slightly increase it at the end of each mini-batch. This approach gradually adapts the weights to binary values during the training. Figure 5 presents an example of the histogram of the semi-binarized weights $\theta$ in different training epochs. As can be seen, the distribution is gradually shifted towards binary values as the training proceeds. After soft binarization, the parameter set $\theta$ can be used as an initial point for existing hard binarization schemes such as the method proposed by (Courbariaux et al. (2016)). As We illustrate in Section 5, the soft binarization methodology significantly increases the convergence rate of binary CNNs.
|
| 75 |
+
|
| 76 |
+

|
| 77 |
+
Figure 4: An example change of variable with Tanh nonlinearity. (a) The effect of the temperature parameter: higher $\alpha$ values provide better soft-binary estimations. (b) The effect of the bounding parameter: $\gamma$ is a trainable value for each weight matrix $W$ . (c) The effect of the temperature parameter $\alpha$ on the gradient filtering term $\textstyle { \frac { \partial \theta } { \partial W } }$ .
|
| 78 |
+
|
| 79 |
+

|
| 80 |
+
Figure 5: Histogram of the elements of $\theta$ in a certain layer of the neural network during training.
|
| 81 |
+
|
| 82 |
+
# 4 HARDWARE ACCELERATOR MODULES
|
| 83 |
+
|
| 84 |
+
In this section, we show that the modifications required to incorporate residual binarization into existing hardware accelerators for binary CNNs are minimal. ResBinNet provides a trade-off between inference accuracy and the execution time, while keeping the implementation cost (e.g area cost) almost intact; as a result, ResBinNet readily offers users a decision on the latency of their learning application by compromising the inference accuracy.
|
| 85 |
+
|
| 86 |
+
As an example, we consider the FPGA accelerator for binary CNNs proposed by (Umuroglu et al. (2017)). We refer the reader to the mentioned paper for details about the original design. Here, we describe the modifications that we integrated into the specific components of their design to accommodate residual binarization. The modified accelerator will be publicly available on Github 2. Figure 6 depicts a schematic view of the original hardware and our modified accelerator. Note that in the original implementation, each layer takes a single binary vector $\vec { b } _ { i n }$ and computes a single output vector $\vec { b } _ { o u t }$ while the modified version processes $l$ streams of binary vectors where $l$ is the desired number of residual levels.
|
| 87 |
+
|
| 88 |
+
Matrix-Vector Multiplication: Both in the original and the modified accelerators, the matrix-vector multiplication unit is the most computationally intensive among all other operations. In the original design, this unit takes a binary vector $\vec { b } _ { i n }$ and outputs a full-precision vector $\vec { y }$ . To accommodate residual binarization, we modify this module as follows: the XNOR-popcount operation is sequentially performed on the stream of binary vectors $\vec { b } _ { i n , i }$ . Each XNOR-popcount results in a different vector $\vec { y _ { i } }$ . Then, the output is computed as $\begin{array} { r } { \vec { y } = \sum _ { i } \gamma _ { i } \vec { y } _ { i } } \end{array}$ . Note that the computation overhead of the summation is negligible compared to the XNOR-popcount operation, thus, the runtime of multilevel XNOR-popcount with $l$ -level residual representations is approximately $l$ times the runtime of the conventional XNOR-popcount in the original design.
|
| 89 |
+
|
| 90 |
+

|
| 91 |
+
Figure 6: Hardware architecture of the baseline (top) and our modified (bottom) binary CNN layer.
|
| 92 |
+
|
| 93 |
+
Batch-Normalization and Activation Function: Batch-Normalization in the inference phase can be viewed as multiplying a vector $\vec { y }$ by constant vector $\vec { g }$ and subtracting vector $\vec { t }$ to obtain the normalized vector ${ \vec { y } } _ { n o r m }$ . The original design in (Umuroglu et al. (2017)) does not require the multiplication step since only the sign of ${ \vec { y } } _ { n o r m }$ matters to compute the output of the activation function (the Sign function). In our design, the multiplication step is necessary since the value of $\vec { y } _ { n o r m }$ affects the output of our activation function, which is encoded using Algorithm 1 and sent to the next layer to be used as an input.
|
| 94 |
+
|
| 95 |
+
Max-Pooling: The original implementation simply computes the Boolean OR of the binary values to perform max pooling over the features within a window. In ResBinNet, however, features are represented with $l$ -bit residual representations. As a result, performing Boolean OR over the binary encodings is no longer equivalent to performing max-pooling over the features. Nevertheless, the pooling operation can be performed over the encoded values directly. Assume full-precision values $e _ { x }$ and $e _ { y }$ , with $l$ -level binary encodings $b _ { x }$ and $b _ { y }$ , respectively. Considering ordered positive $\gamma _ { i }$ values (i.e. $\gamma _ { 1 } > \gamma _ { 2 } > . . . > \gamma _ { l } > 0 \nonumber$ ), we can easily conclude that if $e _ { x } < e _ { y }$ then $b _ { x } < b _ { y }$ .
|
| 96 |
+
|
| 97 |
+
# 5 EXPERIMENTS
|
| 98 |
+
|
| 99 |
+
We implement our API using Keras (Chollet et al. (2015)) library with a Tensorflow backend. The synthesis reports (resource utilization and latency) for the FPGA accelerator are gathered using Vivado Design Suite (Xilinx (2017)). For temperature adjustment (Section 3), we use a “hard tanh” nonlinearity and gradually increase the temperature by incrementing $\alpha$ at the end of each epoch.
|
| 100 |
+
|
| 101 |
+
We evaluate ResBinNet by comparing the accuracy, number of training epochs, size of the network, and execution time. Proof-of-concept evaluations are performed for three datasets: MNIST, CIFAR10, and SVHN. Table 1 presents the architecture of the trained neural networks. The architectures are picked from (Umuroglu et al. (2017)).
|
| 102 |
+
|
| 103 |
+
Table 1: Network architectures for evaluation benchmarks. $C 6 4$ denotes a $3 \times 3$ convolution with 64 output channels, $M P$ stands for $2 \times 2$ max pooling, $B N$ represents batch normalization, and $D 5 1 2$ means a dense layer with 512 outputs. The residual binarizations are shown using $R B$ .
|
| 104 |
+
|
| 105 |
+
<table><tr><td rowspan=1 colspan=1>Benchmark</td><td rowspan=1 colspan=1>CNN Architecture</td></tr><tr><td rowspan=1 colspan=1>MNIST</td><td rowspan=1 colspan=1>784(input)-D256-BN-RB-D256-BN-RB-D256-BN-RB-Di0-BN-Softmax</td></tr><tr><td rowspan=1 colspan=1>CIFAR10&SVHN</td><td rowspan=1 colspan=1>3×32×32(input)-C64-BN-RB-C64-BN-RB-MP-C128-BN-RB-C128-BN-RB-MP-C256-BN-RB-C256-BN-RB-D512-BN-RB-D512-BN-RB-D10-BN-Softmax</td></tr></table>
|
| 106 |
+
|
| 107 |
+
Effect of the model size on accuracy: As discussed in (Umuroglu et al. (2017)), the final accuracy of the binary CNN for a particular application is correlated with the shape of the network. For instance, authors of the paper report that the accuracy of MNIST for the architecture in Table 2 varies in the range $( 9 5 . 8 3 \% . 9 8 . 4 \% )$ when the number of neurons in hidden layers is varied from 256 to 1024. Similarly, the architecture in (Umuroglu et al. (2017)) for CIFAR-10 is a smaller version of the architecture originally trained by (Courbariaux et al. (2016)). Using this smaller architecture drops the accuracy from $8 8 . 6 \%$ to $8 0 . 1 \%$ . In our evaluations, we show that ResBinNet can reduce the accuracy drop using more residual binary levels for the activations of the smaller model.
|
| 108 |
+
|
| 109 |
+
Table 2: Comparison of model size, number of training epochs, and accuracy.
|
| 110 |
+
|
| 111 |
+
<table><tr><td rowspan="2">Benchmark</td><td colspan="3">Binarynet(Courbariaux et al. (2016))</td><td colspan="3">FINN (Umuroglu et al. (2017))</td><td colspan="5">ResBinNet</td></tr><tr><td>#Epochs</td><td>Accuracy</td><td>Size (Mbits)</td><td>#Epochs</td><td>Accuracy</td><td>Size (Mbits)</td><td>#Epochs</td><td>Size (Mbits)</td><td>Accuracy (1-level)</td><td>Accuracy (2-level)</td><td>Accuracy (3-level)</td></tr><tr><td>CIFAR-10</td><td>500</td><td>89.85%</td><td>5.24</td><td>NA</td><td>80.1%</td><td>1.5</td><td>50+1</td><td>1.5</td><td>76%</td><td>83.5%</td><td>84.6%</td></tr><tr><td>SVHN</td><td>200</td><td>97.47%</td><td>5.24</td><td>NA</td><td>94.9%</td><td>1.5</td><td>10+1</td><td>1.5</td><td>95.2%</td><td>96.9%</td><td>97.1%</td></tr><tr><td>MNIST</td><td>1000</td><td>99.04%</td><td>52.7</td><td>NA</td><td>95.83%</td><td>0.3</td><td>30+1</td><td>0.3</td><td>97.3%</td><td>97.9%</td><td>98.1%</td></tr></table>
|
| 112 |
+
|
| 113 |
+
Effect of the number of epochs on accuracy: Compared to full-precision neural networks, binarized CNNs usually need more training epochs to achieve the same accuracy. For example, the CIFAR-10 architecture in (Courbariaux et al. (2016)) is trained for 500 epochs, while the fullprecision version of the same network can achieve comparable accuracy in roughly 50 iterations 3. Here, we argue that soft binarization in ResBinNet can significantly reduce the number of training epochs for binary CNNs.
|
| 114 |
+
|
| 115 |
+
Table 2 compares ResBinNet with two prior arts, namely Binarynet and FINN. Both baselines use the same training methodology, but the network architectures in FINN are considerably smaller, which leads to lower accuracy rates for FINN. We evaluate ResBinNet using the small architectures of FINN. The training of ResBinNet consists of a soft binarization phase and a single fine-tuning epoch. Note that the fine-tuning phase uses the same algorithm as the two baselines. The higher accuracy of Binarynet compared to our approach is a direct result of employing a large architecture and training for many epochs. For each benchmark, the comparison between our approach and the same network architecture of FINN is followed:
|
| 116 |
+
|
| 117 |
+
• CIFAR-10: Compared to FINN, ResBinNet achieves higher accuracy for more than 1 level of residual binarization. We argue that, even for 1-level binarization, the same accuracy is viable if we fine-tune the soft-binarized model (after 50 epochs) for more than 1 epochs (FINN and ResBinNet use the same algorithms in this phase). In addition, the convergence rate of ResBinNet is improved as the number of residual levels is increased. SVHN and MNIST: For these datasets, ResBinNet achieves a higher accuracy with even fewer epochs compared to CIFAR-10. The final accuracy and the convergence speed also exhibit improvement as the number of residual levels is increased from 1 to 3.
|
| 118 |
+
|
| 119 |
+
We now evaluate the area overhead and execution time of ResBinNet for the modified hardware architecture, which we discussed previously in Section 4. We compare the implementation of the CNN architecture used for the CIFAR-10 and SVHN tasks (See Table 1). Figure 7 compares the hardware resource utilization, and execution time per input.
|
| 120 |
+
|
| 121 |
+
The resource utilization of ResBinNet is evaluated in Figure 7a, which compares the utilization (in $\%$ ) for different resources of the FPGA (i.e. BRAM, DSP, LUT, and Registers). For each resource, we compare the baseline with different number of residual binarization levels in ResBinNet. Asides from the DSP utilization, which is required for full-precision multiplications in batch normalization, the other three resources show a modest increase in utilization, meaning that the residual binarization method offers a scalable design for real-world systems.
|
| 122 |
+
|
| 123 |
+
Figure 7b compares the latency (runtime) of ResBinNet with the baseline accelerator. In particular, we consider multi-level residual binarization with 1, 2, and 3 residual levels which are denoted by RBN1, RBN2, and RBN3, respectively. The numbers on top of the bars show the accuracy of the corresponding binarized CNN for CIFAR-10 task. As can be seen, ResBinNet enables users to achieve higher accuracy by tolerating a higher latency, which is almost linear with respect to the number of residual levels.
|
| 124 |
+
|
| 125 |
+

|
| 126 |
+
Figure 7: (a) Resource utilization overhead of ResBinNet with different residual levels versus baseline design( Umuroglu et al. (2017)) implemented on Xilinx ZC706 Evaluation Kit. (b) Latencyaccuracy trade-off offered by ResBinNet with different residual levels.
|
| 127 |
+
|
| 128 |
+
# 6 RELATED WORK
|
| 129 |
+
|
| 130 |
+
Training CNNs with binary weights and/or activations has been the subject of very recent works (Courbariaux et al. (2015); Rastegari et al. (2016); Courbariaux et al. (2016); Umuroglu et al. (2017)). The authors of Binaryconnect (Courbariaux et al. (2015)) suggest a probabilistic methodology that leverages the full-precision weights to generate binary representatives during forward pass while in the back-propagation the full-precision weights are updated. (Courbariaux et al. (2016)) is the first work attempting to binarize both weight and activations of CNN. In this work, authors also suggest replacing the costly dot products by XNOR-popcount operations. XNOR-net (Rastegari et al. (2016)) proposes to use scale factors during training, which results in an improved accuracy. The aforementioned works propose optimization solutions that enable the use of binarized values in CNNs which, in turn, enable the design of simple and efficient hardware accelerators. The downside of these works is that, aside from changing the architecture of the CNN (Umuroglu et al. (2017)), they do not offer any other reconfigurability in their designs.
|
| 131 |
+
|
| 132 |
+
On another track of research, the reconfigurability of CNN accelerators has been investigated. This line of research focuses on using adaptive low bit-width representations for compressing the parameters and/or simplifying the pertinent arithmetic operations (Zhou et al. (2016); Han et al. (2016); Wu et al. (2016); Cai et al. (2017)). The proposed solutions, however, do not enjoy the same simplified XNOR-popcount operations as in binarized CNNs.
|
| 133 |
+
|
| 134 |
+
Among the aforementioned works, a unified solution which is both reconfigurable and binarized is missing. To the best of our knowledge, ResBinNet is the first to offer a solution which is reconfigurable and, at the same time, enjoys the benefits of binarized CNNs. Our goal in the design of ResBinNet was to remain consistent with the existing CNN optimization solutions. As shown in the paper, ResBinNet is compatible with the accelerators designed for binarized CNNs.
|
| 135 |
+
|
| 136 |
+
# 7 CONCLUSION
|
| 137 |
+
|
| 138 |
+
This paper introduces ResBinNet, a novel reconfigurable binarization scheme which aims to improve the convergence rate and the final accuracy of binary CNNs. The proposed training is twofold: (i) In the first phase, called soft binarization, we introduce two distinct methodologies designed for binarizing weights and feature within CNNs, namely residual binarization, and temperature adjustment. Residual binarization learns a multi-level representation for features of CNN to provide an arbitrary numerical precision during inference. Temperature adjustment gradually imposes binarization constraints on the weights. (ii) In the second phase, which we call hard binarization, the model is fine-tuned in few training epochs. Our experiments demonstrate that the joint use of residual binarization and temperature adjustment improves the convergence rate and the accuracy of the binarized CNN. We argue that ResBinNet methodology can be adopted by current CNN hardware accelerators as it requires minimal modification to existing binarized CNN solutions. Developers can integrate the approaches proposed in this paper into their deep learning systems to provide users with a trade-off between application latency and inference accuracy.
|
| 139 |
+
|
| 140 |
+
# REFERENCES
|
| 141 |
+
|
| 142 |
+
Zhaowei Cai, Xiaodong He, Jian Sun, and Nuno Vasconcelos. Deep learning with low precision by half-wave gaussian quantization. arXiv preprint arXiv:1702.00953, 2017.
|
| 143 |
+
|
| 144 |
+
Franc¸ois Chollet et al. Keras. https://github.com/fchollet/keras, 2015.
|
| 145 |
+
|
| 146 |
+
Matthieu Courbariaux, Yoshua Bengio, and Jean-Pierre David. Binaryconnect: Training deep neural networks with binary weights during propagations. In Advances in Neural Information Processing Systems, pp. 3123–3131, 2015.
|
| 147 |
+
|
| 148 |
+
Matthieu Courbariaux, Itay Hubara, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks: Training deep neural networks with weights and activations constrained $\mathrm { t o } + 1$ or-1. arXiv preprint arXiv:1602.02830, 2016.
|
| 149 |
+
|
| 150 |
+
Misha Denil, Babak Shakibi, Laurent Dinh, Nando de Freitas, et al. Predicting parameters in deep learning. In Advances in Neural Information Processing Systems, pp. 2148–2156, 2013.
|
| 151 |
+
|
| 152 |
+
Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv preprint arXiv:1510.00149, 2015.
|
| 153 |
+
|
| 154 |
+
Song Han, Xingyu Liu, Huizi Mao, Jing Pu, Ardavan Pedram, Mark A Horowitz, and William J Dally. Eie: efficient inference engine on compressed deep neural network. In Proceedings of the 43rd International Symposium on Computer Architecture, pp. 243–254. IEEE Press, 2016.
|
| 155 |
+
|
| 156 |
+
Geoffrey E Hinton, Nitish Srivastava, Alex Krizhevsky, Ilya Sutskever, and Ruslan R Salakhutdinov. Improving neural networks by preventing co-adaptation of feature detectors. arXiv preprint arXiv:1207.0580, 2012.
|
| 157 |
+
|
| 158 |
+
Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Quantized neural networks: Training neural networks with low precision weights and activations. arXiv preprint arXiv:1609.07061, 2016.
|
| 159 |
+
|
| 160 |
+
Yong-Deok Kim, Eunhyeok Park, Sungjoo Yoo, Taelim Choi, Lu Yang, and Dongjun Shin. Compression of deep convolutional neural networks for fast and low power mobile applications. arXiv preprint arXiv:1511.06530, 2015.
|
| 161 |
+
|
| 162 |
+
Baoyuan Liu, Min Wang, Hassan Foroosh, Marshall Tappen, and Marianna Pensky. Sparse convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 806–814, 2015.
|
| 163 |
+
|
| 164 |
+
Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In European Conference on Computer Vision, pp. 525–542. Springer, 2016.
|
| 165 |
+
|
| 166 |
+
Yaman Umuroglu, Nicholas J Fraser, Giulio Gambardella, Michaela Blott, Philip Leong, Magnus Jahre, and Kees Vissers. Finn: A framework for fast, scalable binarized neural network inference. In Proceedings of the 2017 ACM/SIGDA International Symposium on Field-Programmable Gate Arrays, pp. 65–74. ACM, 2017.
|
| 167 |
+
|
| 168 |
+
Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In Advances in Neural Information Processing Systems, pp. 2074–2082, 2016.
|
| 169 |
+
|
| 170 |
+
Jiaxiang Wu, Cong Leng, Yuhang Wang, Qinghao Hu, and Jian Cheng. Quantized convolutional neural networks for mobile devices. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4820–4828, 2016.
|
| 171 |
+
|
| 172 |
+
Xilinx. Vivado. https://www.xilinx.com/products/design-tools/vivado. html, 2017.
|
| 173 |
+
|
| 174 |
+
Xiangyu Zhang, Jianhua Zou, Xiang Ming, Kaiming He, and Jian Sun. Efficient and accurate approximations of nonlinear convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1984–1992, 2015.
|
| 175 |
+
|
| 176 |
+
Shuchang Zhou, Yuxin Wu, Zekun Ni, Xinyu Zhou, He Wen, and Yuheng Zou. Dorefa-net: Training low bitwidth convolutional neural networks with low bitwidth gradients. arXiv preprint arXiv:1606.06160, 2016.
|
parse/train/SJtfOEn6-/SJtfOEn6-_content_list.json
ADDED
|
@@ -0,0 +1,949 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "RESBINNET: RESIDUAL BINARY NEURAL NETWORK ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
812,
|
| 10 |
+
121
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
145,
|
| 20 |
+
398,
|
| 21 |
+
172
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
210,
|
| 32 |
+
544,
|
| 33 |
+
226
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Recent efforts on training light-weight binary neural networks offer promising execution/memory efficiency. This paper introduces ResBinNet, which is a composition of two interlinked methodologies aiming to address the slow convergence speed and limited accuracy of binary convolutional neural networks. The first method, called residual binarization, learns a multi-level binary representation for the features within a certain neural network layer. The second method, called temperature adjustment, gradually binarizes the weights of a particular layer. The two methods jointly learn a set of soft-binarized parameters that improve the convergence rate and accuracy of binary neural networks. We corroborate the applicability and scalability of ResBinNet by implementing a prototype hardware accelerator. The accelerator is reconfigurable in terms of the numerical precision of the binarized features, offering a trade-off between runtime and inference accuracy. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
241,
|
| 43 |
+
764,
|
| 44 |
+
407
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
434,
|
| 55 |
+
334,
|
| 56 |
+
449
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Convolutional Neural Networks (CNNs) have shown promising inference accuracy for learning applications in various domains. These models are generally over-parameterized to facilitate the convergence during the training phase (Hinton et al. (2012); Denil et al. (2013)). A line of optimization methodologies such as tensor decomposition (Kim et al. (2015); Zhang et al. (2015)), parameter quantization (Hubara et al. (2016); Han et al. (2015)), sparse convolutions (Liu et al. (2015); Wen et al. (2016)), and binary networks (Courbariaux et al. (2016); Rastegari et al. (2016)) have been proposed to reduce the complexity of neural networks for efficient execution. Among these works, binary neural networks result in two particular benefits: (i) They reduce the memory footprint by a factor of 32 compared to the full-precision model; this is specifically important since memory access plays an essential role in the execution of CNNs on resource-constrained devices. (ii) Binary networks replace the costly multiplications with simple XNOR operations (Rastegari et al. (2016); Umuroglu et al. (2017)), reducing the execution time and energy consumption significantly. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
465,
|
| 66 |
+
825,
|
| 67 |
+
632
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Considering the prior art, there exist two major challenges associated with binary neural networks. First, the convergence rate of the existing solutions for training binary CNNs is considerably slower than their full-precision counterparts. Second, in order to achieve comparable classification accuracy, binarized neural networks often compensate for the numerical precision loss by employing high dimensional feature maps in a wide CNN topology, which in turn reduces the effective compression rate. As a result, full-precision networks often surpass binary networks in terms of convergence rate and final achievable accuracy. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
638,
|
| 77 |
+
823,
|
| 78 |
+
736
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "In this paper, we propose ResBinNet, a novel solution for increasing the convergence rate and the final accuracy of binary networks. The global flow of ResBinNet is depicted in Figure 1. The first phase, which we call Soft Binarization, includes two methodologies that we propose to address the aforementioned challenges for training binary CNNs. First, we introduce a Residual Binarization scheme which allows the number of possible values for activation units to be reconfigurable at runtime. To this purpose, we learn a multi-level residual representation for the features within the CNN to adaptively increase the numerical precision of the activation units. Second, we introduce a novel weight binarization approach, called Tempreture Adjustment, which aims to gradually enforce binarization constraints over the weight parameters throughout the training phase. The two interlinked methods significantly improve both the convergence rate and the final accuracy of ResBinNet compared to prior art. Once the soft training phase is finished, we convert the weights to actual binary values (0,1). Fine-tuning of the model is then performed in Hard Binarization phase using existing training algorithms (e.g. BinaryNets (Courbariaux et al. (2016))) in few epochs (e.g. one epoch). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
743,
|
| 88 |
+
825,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/f122029c957b6c584853f614e0a66dba706773859e507f7b86a0a52e05c9a144.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: The global flow of ResBinNet binary training. Residual binarization learns a multi-level representation for feature maps. Temperature adjustment performs a change of variable over the trainable weights and gradually pushes them towards binary values during the training phase. "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
271,
|
| 102 |
+
99,
|
| 103 |
+
727,
|
| 104 |
+
219
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "ResBinNet is designed to fulfill certain goals: (i) It should enable reconfigurability for binary neural networks; in other words, the number of residual binary representatives should be adjustable to offer a trade-off between inference accuracy and computation time. (ii) The multi-level binarized features should be compatible with the XNOR multiplication approach proposed in the existing literature. (iii) ResBinNet should speed up the convergence rate of binarized CNNs. (iv) Current hardware accelerators for binary CNNs should be able to benefit from ResBinNet with minimum modification in their design. In summary, the contributions of this paper are as follows: ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
297,
|
| 114 |
+
825,
|
| 115 |
+
396
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "• Proposing residual binarization, a methodology for learning multi-level residual representations for each feature map in binary CNNs. Introducing temperature adjustment as a practical approach for gradual (soft) binarization of CNN weights. \n• Analyzing the trade-off between accuracy and execution time of ResBinNet on a real hardware design. \n• Evaluating ResBinNet convergence rate and accuracy on three datasets: MNIST, SVHN, and CIFAR-10. \n• Development of an open-source Application Program Interface (API) for ResBinNet1. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
215,
|
| 124 |
+
402,
|
| 125 |
+
825,
|
| 126 |
+
551
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "The remainder of the paper is organized as follows: In Section 2, we describe the residual binarization method for binarizing activations. Section 3 explains the temperature adjustment technique for binarizing weights. In Section 4, we discuss how particular ResBinNet operations (e.g. multi-level XNOR-popcount) can be efficiently implemented on existing hardware accelerators. Experiments are discussed in Section 5. Finally, we discuss the related work and conclusion in Sections 6 and 7. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
558,
|
| 136 |
+
825,
|
| 137 |
+
627
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "2 RESIDUAL BINARIZATION ",
|
| 144 |
+
"text_level": 1,
|
| 145 |
+
"bbox": [
|
| 146 |
+
176,
|
| 147 |
+
647,
|
| 148 |
+
421,
|
| 149 |
+
664
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "A binarization scheme converts value $x$ to the binarized estimation $e _ { x }$ , which can take one of the possible values $\\gamma$ or $- \\gamma$ . This representation allows us to represent $e _ { x }$ with a single bit $b _ { x }$ . In particular, for a given layer within the CNN, we can store the single full-precision value of $\\gamma$ as a representative for all features, and reduce the memory footprint by storing bits $b _ { x }$ instead of $x$ for each feature. Assuming that both the weights and input features of a CNN layer are binarized, each dot product between a feature vector $\\vec { x }$ and weight vector $\\vec { w }$ can be efficiently computed using XNOR-popcount operations as previously suggested in (Courbariaux et al. (2016); Rastegari et al. (2016)). Let $\\vec { x } = \\vec { \\gamma } _ { x } \\vec { s } _ { x }$ and $\\bar { w } = \\gamma _ { w } \\ \\bar { s } _ { w }$ where $\\{ \\gamma _ { x } , \\gamma _ { w } \\}$ are scalar values and $\\{ \\vec { s } _ { x } , \\vec { s } _ { w } \\}$ are the corresponding sign vectors. The binary representations of $\\{ \\vec { x } , \\vec { y } \\}$ , which we denote by $\\{ \\vec { b } _ { x } , \\vec { b } _ { w } \\}$ , are simply computed by encoding the sign vectors $\\vec { s }$ to binary vectors. The dot product between $\\vec { x }$ and $\\vec { w }$ can be computed as: ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
173,
|
| 158 |
+
680,
|
| 159 |
+
825,
|
| 160 |
+
835
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "equation",
|
| 166 |
+
"img_path": "images/c1e4fc9d8ba5e7909dc59c42519319a0b0dcbc6e110e997fd653493a25f01053.jpg",
|
| 167 |
+
"text": "$$\nd o t ( \\vec { w } , \\vec { x } ) = \\gamma _ { x } \\gamma _ { w } d o t ( \\vec { s } _ { x } , \\vec { s } _ { w } ) = \\gamma _ { x } \\gamma _ { w } x n o r p o p c o u n t ( \\vec { b _ { x } } , \\vec { b _ { w } } ) ,\n$$",
|
| 168 |
+
"text_format": "latex",
|
| 169 |
+
"bbox": [
|
| 170 |
+
284,
|
| 171 |
+
843,
|
| 172 |
+
710,
|
| 173 |
+
863
|
| 174 |
+
],
|
| 175 |
+
"page_idx": 1
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"type": "text",
|
| 179 |
+
"text": "where xnorpopcount $\\cdot , . . )$ returns the number of set bits in the element-wise XNOR of the input binary vectors. ",
|
| 180 |
+
"bbox": [
|
| 181 |
+
176,
|
| 182 |
+
869,
|
| 183 |
+
823,
|
| 184 |
+
898
|
| 185 |
+
],
|
| 186 |
+
"page_idx": 1
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"type": "image",
|
| 190 |
+
"img_path": "images/04c65714483d338b9b9f96b58dd93d8c9a9cc027b6b879a2ef034e65a98aaacc.jpg",
|
| 191 |
+
"image_caption": [
|
| 192 |
+
"Figure 2: Schematic flow for computing 3 levels of residual binary estimates $e$ . As we go deeper in levels, the estimation becomes more accurate. "
|
| 193 |
+
],
|
| 194 |
+
"image_footnote": [],
|
| 195 |
+
"bbox": [
|
| 196 |
+
173,
|
| 197 |
+
99,
|
| 198 |
+
823,
|
| 199 |
+
280
|
| 200 |
+
],
|
| 201 |
+
"page_idx": 2
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"type": "image",
|
| 205 |
+
"img_path": "images/7d098dd5a2e03703fba719a437c4efaf8ac3f03b892863d66d38f34e4a551521.jpg",
|
| 206 |
+
"image_caption": [
|
| 207 |
+
"Figure 3: Illustration of binarized activation function. (a) Conventional 1-level binarization. (b) Residual binarization with two levels. "
|
| 208 |
+
],
|
| 209 |
+
"image_footnote": [],
|
| 210 |
+
"bbox": [
|
| 211 |
+
328,
|
| 212 |
+
333,
|
| 213 |
+
668,
|
| 214 |
+
448
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 2
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "text",
|
| 220 |
+
"text": "Multi-level Residual Binarization: Imposing binary constraints on weights and activations of a neural network inherently limits the model’s ability to provide the inference accuracy that a floatingpoint counterpart can achieve. To address this issue, we propose a multi-level binarization scheme where the residual errors are sequentially binarized to increase the numerical precision of the estimation. Figure 2 presents the procedure to compute an estimate $e$ from input $x$ . Each level of the graph (say the $i ^ { t h }$ level) computes the corresponding estimate $e _ { i }$ by taking the sign of its input (the residual error from the $( i - 1 ) ^ { t h }$ level), multiplying it by a parameter $\\gamma _ { i }$ , and adding $\\pm \\gamma _ { i }$ to the estimate of the previous level. In addition, it computes the residual error $r _ { i }$ and feeds it to the input of the next level. The estimates of deeper levels are therefore more accurate representations for the input $x$ . Note that the estimate $e _ { i }$ in level $i$ can be represented using a stream of $i$ bits corresponding to the signs of inputs to the first $i$ levels. ",
|
| 221 |
+
"bbox": [
|
| 222 |
+
173,
|
| 223 |
+
513,
|
| 224 |
+
825,
|
| 225 |
+
666
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 2
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "text",
|
| 231 |
+
"text": "Residual Binary Activation Function: Similar to previous works which use the Sign function as the activation function, in this paper we use the residual binarization to account for the activation function. The difference between our approach and the single-bit approach is shown in Figure 3. Each level has a separate full-precision representative $\\gamma _ { i }$ , which should be learned in the training phase. In this setting, the gradients in the backward propagation are computed the same way as in the conventional single-bit binarization (Courbariaux et al. (2016); Rastegari et al. (2016)), regardless of the number of residual levels. In the forward propagation, however, the computed results of our approach provide a more accurate approximation. For instance, if we employ 2 levels of residual binarization, the activation function can take $2 ^ { 2 } = 4$ different values. In general, the total number of possible values for the activation functions for an $l$ -level residual binarization scheme is $2 ^ { l }$ . ",
|
| 232 |
+
"bbox": [
|
| 233 |
+
173,
|
| 234 |
+
674,
|
| 235 |
+
825,
|
| 236 |
+
813
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 2
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "text",
|
| 242 |
+
"text": "Multi-level XNOR-popcount: In ResBinNet, the dot product of an $l$ -level residual-binarized feature \nvector operati $\\vec { e }$ ans. a Let weigand $\\vec { w }$ e rende, where usinand $l$ suco equent XNOR-popcoespond to the sign of $\\begin{array} { r } { \\vec { e } = \\sum _ { i = 1 } ^ { l } \\gamma _ { e i } \\vec { s } _ { e i } } \\end{array}$ $\\vec { w } = \\gamma _ { w } \\vec { s } _ { w }$ $\\vec { s } _ { e i }$ $\\vec { s } _ { w }$ $i ^ { t h }$ $\\vec { e }$ $\\vec { w }$ $\\vec { e }$ $\\vec { w }$ ",
|
| 243 |
+
"bbox": [
|
| 244 |
+
173,
|
| 245 |
+
820,
|
| 246 |
+
826,
|
| 247 |
+
880
|
| 248 |
+
],
|
| 249 |
+
"page_idx": 2
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"type": "equation",
|
| 253 |
+
"img_path": "images/903df5648d4f81175b912097a96184d26c71a5d03255b6307d6add5bd95637d1.jpg",
|
| 254 |
+
"text": "$$\nl o t ( \\vec { w } , \\vec { e } ) = d o t ( \\sum _ { i = 1 } ^ { l } \\gamma _ { e i } \\vec { s } _ { e i } , \\gamma _ { w } \\vec { s } _ { w } ) = \\sum _ { i = 1 } ^ { l } \\gamma _ { e i } \\gamma _ { w } d o t ( \\vec { s } _ { e i } , \\vec { s } _ { w } ) = \\sum _ { i = 1 } ^ { l } \\gamma _ { e i } \\gamma _ { w } x n o r p o p c o u n t ( \\vec { b } _ { e i } , \\vec { b } _ { w } ) ,\n$$",
|
| 255 |
+
"text_format": "latex",
|
| 256 |
+
"bbox": [
|
| 257 |
+
181,
|
| 258 |
+
885,
|
| 259 |
+
833,
|
| 260 |
+
928
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 2
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "text",
|
| 266 |
+
"text": "where $\\{ \\vec { b } _ { e i } , \\vec { b } _ { w } \\}$ are the binary representations corresponding to $\\left\\{ \\vec { s } _ { e i } , \\vec { s } _ { w } \\right\\}$ , respectively. Note that the subsequent XNOR-popcount operations can be performed sequentially, thus, the same memory used for operating on $\\bar { \\vec { b } } _ { e i }$ can be reused for operating on $\\vec { b } _ { e i + 1 }$ . As a result, the actual memory footprint for a multi-level residual binarization is the same as that of a single-level binarization, provided that the bit streams are processed sequentially. ",
|
| 267 |
+
"bbox": [
|
| 268 |
+
174,
|
| 269 |
+
102,
|
| 270 |
+
825,
|
| 271 |
+
176
|
| 272 |
+
],
|
| 273 |
+
"page_idx": 3
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"type": "text",
|
| 277 |
+
"text": "Residual Encoding: In order to convert matrix-vector multiplications into XNOR-popcount operations, we need to encode a feature $x$ into a stream of binary values $\\{ b _ { e i } | i \\in 1 , 2 , \\ldots , l \\}$ . The pseudo code for this operation, which we call Residual Encoding, is presented in Algorithm 1. ",
|
| 278 |
+
"bbox": [
|
| 279 |
+
174,
|
| 280 |
+
183,
|
| 281 |
+
825,
|
| 282 |
+
226
|
| 283 |
+
],
|
| 284 |
+
"page_idx": 3
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"type": "text",
|
| 288 |
+
"text": "Algorithm 1 l-level residual encoding algorithm ",
|
| 289 |
+
"text_level": 1,
|
| 290 |
+
"bbox": [
|
| 291 |
+
174,
|
| 292 |
+
241,
|
| 293 |
+
493,
|
| 294 |
+
256
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 3
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "table",
|
| 300 |
+
"img_path": "images/fcae472a75b7333aa9dabfa026075547e0adabe29f59b9c52e06981635c7a9e9.jpg",
|
| 301 |
+
"table_caption": [],
|
| 302 |
+
"table_footnote": [],
|
| 303 |
+
"table_body": "<table><tr><td>inputs: γ1,y2,., Yt,x outputs:be1i,be2,...,bel</td><td></td></tr><tr><td>1:r↑x</td><td></td></tr><tr><td>2:e↑0</td><td></td></tr><tr><td>3: fori=1... do</td><td></td></tr><tr><td>4: bei ←Binarize(Sign(r))</td><td></td></tr><tr><td>5:</td><td>e←e+Sign(r)Xγi</td></tr><tr><td>6: 7: end for</td><td>r←r-Sign(r)×γi</td></tr></table>",
|
| 304 |
+
"bbox": [
|
| 305 |
+
174,
|
| 306 |
+
258,
|
| 307 |
+
825,
|
| 308 |
+
377
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 3
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "3 TEMPERATURE ADJUSTMENT ",
|
| 315 |
+
"text_level": 1,
|
| 316 |
+
"bbox": [
|
| 317 |
+
176,
|
| 318 |
+
415,
|
| 319 |
+
449,
|
| 320 |
+
431
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 3
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "Approximating the weights of a neural network with binary values often results in loss of accuracy in the pertinent model. In this section, we explain our methodology to minimize the approximation error during the training, such that the trained weights exhibit lower binarization errors. Let $W$ denote the parameter set within a certain layer of the neural network. Instead of directly using $W$ to compute the layer’s output, we perform a change of variable $\\theta = \\gamma H ( \\alpha W )$ and compute the output using $\\theta$ . Here, $H ( . )$ is a bounded, monotonically-increasing function such as the Hyperbolic Tangent function that is applied on $W$ element-wise. Parameter $\\gamma$ is a trainable parameter that adjusts the maximum and minimum values that $\\theta$ can take. Parameter $\\alpha$ , which we call the Temperature henceforth, controls the slope of function $H ( . )$ . ",
|
| 327 |
+
"bbox": [
|
| 328 |
+
173,
|
| 329 |
+
446,
|
| 330 |
+
825,
|
| 331 |
+
573
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 3
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "text",
|
| 337 |
+
"text": "Effect on Binarization: Figure 4a and 4b illustrate the effect of parameters $\\alpha$ and $\\gamma$ on the nonlinear change of variable $\\theta = \\gamma T a n h ( \\alpha W )$ . Note that $\\theta$ acts as a semi-binarized parameter set in the soft training phase. As we increase the temperature parameter, $H ( . )$ becomes closer to the binary sign function, meaning that the pertinent $\\theta$ will exhibit less error when approximated with $\\pm \\gamma$ . Note that $W$ and $\\gamma$ are the trainable parameters in this setting. Parameter $\\theta$ is used in the forward propagation phase of the soft training, while in the backward propagation step $W$ is updated. ",
|
| 338 |
+
"bbox": [
|
| 339 |
+
174,
|
| 340 |
+
579,
|
| 341 |
+
825,
|
| 342 |
+
664
|
| 343 |
+
],
|
| 344 |
+
"page_idx": 3
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"type": "text",
|
| 348 |
+
"text": "Effect on Training: Let $g _ { \\theta }$ and $g _ { W }$ be the gradients of the training loss function with respect to $\\theta$ and $W$ , respectively, then we have $\\begin{array} { r } { g _ { W } = \\overset { \\smile } { \\boldsymbol { g } _ { \\theta } } \\times \\frac { \\partial \\theta } { \\partial W } } \\end{array}$ . In other words, the magnitude of the gradient that actually flows through out; otherwise, the gradients will flow through $W$ is controlled by $\\textstyle { \\frac { \\partial \\theta } { \\partial W } }$ ∂WW. . If $\\theta$ is close to $\\pm \\gamma$ , the gradient will be filtered ",
|
| 349 |
+
"bbox": [
|
| 350 |
+
173,
|
| 351 |
+
670,
|
| 352 |
+
825,
|
| 353 |
+
729
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 3
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"text": "Efafof t of the Temperature on t the gradient filtering term that are closer to 0 receive $\\textstyle { \\frac { \\partial \\theta } { \\partial W } }$ ients: Figure 4c illustrates how the temperature parameter canduring the training. As we increase the temperature, elementslified gradients, while the elements that are closer to the binary $W$ regime (i.e. $\\theta \\approx \\pm \\gamma )$ encounter damped gradients. This means that increasing the temperature parameter $\\alpha$ will push most of the weights to the binary regime with a bigger force; therefore, a neural network trained with high temperature values exhibits a smaller binarization error. ",
|
| 360 |
+
"bbox": [
|
| 361 |
+
174,
|
| 362 |
+
734,
|
| 363 |
+
825,
|
| 364 |
+
819
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 3
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "Temperature Adjustment: Setting a high temperature at the beginning of the training will eliminate most of the gradients, preventing the training loss from being optimized. To address this problem, we start the soft binarization phase with a low temperature (e.g. $\\alpha = 1$ ) and slightly increase it at the end of each mini-batch. This approach gradually adapts the weights to binary values during the training. Figure 5 presents an example of the histogram of the semi-binarized weights $\\theta$ in different training epochs. As can be seen, the distribution is gradually shifted towards binary values as the training proceeds. After soft binarization, the parameter set $\\theta$ can be used as an initial point for existing hard binarization schemes such as the method proposed by (Courbariaux et al. (2016)). As We illustrate in Section 5, the soft binarization methodology significantly increases the convergence rate of binary CNNs. ",
|
| 371 |
+
"bbox": [
|
| 372 |
+
174,
|
| 373 |
+
825,
|
| 374 |
+
825,
|
| 375 |
+
924
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 3
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "image",
|
| 381 |
+
"img_path": "images/59289230acb51b9cc6b04e5097add9852a058bdb7cee1fcb861acc5a697b0d73.jpg",
|
| 382 |
+
"image_caption": [
|
| 383 |
+
"Figure 4: An example change of variable with Tanh nonlinearity. (a) The effect of the temperature parameter: higher $\\alpha$ values provide better soft-binary estimations. (b) The effect of the bounding parameter: $\\gamma$ is a trainable value for each weight matrix $W$ . (c) The effect of the temperature parameter $\\alpha$ on the gradient filtering term $\\textstyle { \\frac { \\partial \\theta } { \\partial W } }$ . "
|
| 384 |
+
],
|
| 385 |
+
"image_footnote": [],
|
| 386 |
+
"bbox": [
|
| 387 |
+
241,
|
| 388 |
+
99,
|
| 389 |
+
754,
|
| 390 |
+
209
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 4
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "image",
|
| 396 |
+
"img_path": "images/043165ba90b22216b30134232f0be8fbbd4efb1c3f51511227e63bb4a5b7250b.jpg",
|
| 397 |
+
"image_caption": [
|
| 398 |
+
"Figure 5: Histogram of the elements of $\\theta$ in a certain layer of the neural network during training. "
|
| 399 |
+
],
|
| 400 |
+
"image_footnote": [],
|
| 401 |
+
"bbox": [
|
| 402 |
+
248,
|
| 403 |
+
303,
|
| 404 |
+
741,
|
| 405 |
+
410
|
| 406 |
+
],
|
| 407 |
+
"page_idx": 4
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"type": "text",
|
| 411 |
+
"text": "",
|
| 412 |
+
"bbox": [
|
| 413 |
+
176,
|
| 414 |
+
464,
|
| 415 |
+
823,
|
| 416 |
+
507
|
| 417 |
+
],
|
| 418 |
+
"page_idx": 4
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"type": "text",
|
| 422 |
+
"text": "4 HARDWARE ACCELERATOR MODULES ",
|
| 423 |
+
"text_level": 1,
|
| 424 |
+
"bbox": [
|
| 425 |
+
176,
|
| 426 |
+
530,
|
| 427 |
+
524,
|
| 428 |
+
546
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 4
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "text",
|
| 434 |
+
"text": "In this section, we show that the modifications required to incorporate residual binarization into existing hardware accelerators for binary CNNs are minimal. ResBinNet provides a trade-off between inference accuracy and the execution time, while keeping the implementation cost (e.g area cost) almost intact; as a result, ResBinNet readily offers users a decision on the latency of their learning application by compromising the inference accuracy. ",
|
| 435 |
+
"bbox": [
|
| 436 |
+
174,
|
| 437 |
+
564,
|
| 438 |
+
825,
|
| 439 |
+
633
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 4
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "text",
|
| 445 |
+
"text": "As an example, we consider the FPGA accelerator for binary CNNs proposed by (Umuroglu et al. (2017)). We refer the reader to the mentioned paper for details about the original design. Here, we describe the modifications that we integrated into the specific components of their design to accommodate residual binarization. The modified accelerator will be publicly available on Github 2. Figure 6 depicts a schematic view of the original hardware and our modified accelerator. Note that in the original implementation, each layer takes a single binary vector $\\vec { b } _ { i n }$ and computes a single output vector $\\vec { b } _ { o u t }$ while the modified version processes $l$ streams of binary vectors where $l$ is the desired number of residual levels. ",
|
| 446 |
+
"bbox": [
|
| 447 |
+
173,
|
| 448 |
+
641,
|
| 449 |
+
825,
|
| 450 |
+
757
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 4
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "text",
|
| 456 |
+
"text": "Matrix-Vector Multiplication: Both in the original and the modified accelerators, the matrix-vector multiplication unit is the most computationally intensive among all other operations. In the original design, this unit takes a binary vector $\\vec { b } _ { i n }$ and outputs a full-precision vector $\\vec { y }$ . To accommodate residual binarization, we modify this module as follows: the XNOR-popcount operation is sequentially performed on the stream of binary vectors $\\vec { b } _ { i n , i }$ . Each XNOR-popcount results in a different vector $\\vec { y _ { i } }$ . Then, the output is computed as $\\begin{array} { r } { \\vec { y } = \\sum _ { i } \\gamma _ { i } \\vec { y } _ { i } } \\end{array}$ . Note that the computation overhead of the summation is negligible compared to the XNOR-popcount operation, thus, the runtime of multilevel XNOR-popcount with $l$ -level residual representations is approximately $l$ times the runtime of the conventional XNOR-popcount in the original design. ",
|
| 457 |
+
"bbox": [
|
| 458 |
+
173,
|
| 459 |
+
763,
|
| 460 |
+
825,
|
| 461 |
+
893
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 4
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "image",
|
| 467 |
+
"img_path": "images/7169f81894e89b4bf334944074d0486064407ae35584dd8ef9b4159651206453.jpg",
|
| 468 |
+
"image_caption": [
|
| 469 |
+
"Figure 6: Hardware architecture of the baseline (top) and our modified (bottom) binary CNN layer. "
|
| 470 |
+
],
|
| 471 |
+
"image_footnote": [],
|
| 472 |
+
"bbox": [
|
| 473 |
+
236,
|
| 474 |
+
106,
|
| 475 |
+
766,
|
| 476 |
+
300
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 5
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "Batch-Normalization and Activation Function: Batch-Normalization in the inference phase can be viewed as multiplying a vector $\\vec { y }$ by constant vector $\\vec { g }$ and subtracting vector $\\vec { t }$ to obtain the normalized vector ${ \\vec { y } } _ { n o r m }$ . The original design in (Umuroglu et al. (2017)) does not require the multiplication step since only the sign of ${ \\vec { y } } _ { n o r m }$ matters to compute the output of the activation function (the Sign function). In our design, the multiplication step is necessary since the value of $\\vec { y } _ { n o r m }$ affects the output of our activation function, which is encoded using Algorithm 1 and sent to the next layer to be used as an input. ",
|
| 483 |
+
"bbox": [
|
| 484 |
+
173,
|
| 485 |
+
352,
|
| 486 |
+
825,
|
| 487 |
+
452
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 5
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "text",
|
| 493 |
+
"text": "Max-Pooling: The original implementation simply computes the Boolean OR of the binary values to perform max pooling over the features within a window. In ResBinNet, however, features are represented with $l$ -bit residual representations. As a result, performing Boolean OR over the binary encodings is no longer equivalent to performing max-pooling over the features. Nevertheless, the pooling operation can be performed over the encoded values directly. Assume full-precision values $e _ { x }$ and $e _ { y }$ , with $l$ -level binary encodings $b _ { x }$ and $b _ { y }$ , respectively. Considering ordered positive $\\gamma _ { i }$ values (i.e. $\\gamma _ { 1 } > \\gamma _ { 2 } > . . . > \\gamma _ { l } > 0 \\nonumber$ ), we can easily conclude that if $e _ { x } < e _ { y }$ then $b _ { x } < b _ { y }$ . ",
|
| 494 |
+
"bbox": [
|
| 495 |
+
173,
|
| 496 |
+
458,
|
| 497 |
+
825,
|
| 498 |
+
556
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 5
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "text",
|
| 504 |
+
"text": "5 EXPERIMENTS ",
|
| 505 |
+
"text_level": 1,
|
| 506 |
+
"bbox": [
|
| 507 |
+
176,
|
| 508 |
+
575,
|
| 509 |
+
326,
|
| 510 |
+
592
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 5
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "text",
|
| 516 |
+
"text": "We implement our API using Keras (Chollet et al. (2015)) library with a Tensorflow backend. The synthesis reports (resource utilization and latency) for the FPGA accelerator are gathered using Vivado Design Suite (Xilinx (2017)). For temperature adjustment (Section 3), we use a “hard tanh” nonlinearity and gradually increase the temperature by incrementing $\\alpha$ at the end of each epoch. ",
|
| 517 |
+
"bbox": [
|
| 518 |
+
174,
|
| 519 |
+
607,
|
| 520 |
+
825,
|
| 521 |
+
664
|
| 522 |
+
],
|
| 523 |
+
"page_idx": 5
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"type": "text",
|
| 527 |
+
"text": "We evaluate ResBinNet by comparing the accuracy, number of training epochs, size of the network, and execution time. Proof-of-concept evaluations are performed for three datasets: MNIST, CIFAR10, and SVHN. Table 1 presents the architecture of the trained neural networks. The architectures are picked from (Umuroglu et al. (2017)). ",
|
| 528 |
+
"bbox": [
|
| 529 |
+
173,
|
| 530 |
+
670,
|
| 531 |
+
825,
|
| 532 |
+
727
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 5
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "table",
|
| 538 |
+
"img_path": "images/96044c8baaf276580e60435e09b2dae6800a57b8418d7485388897db7cbc497f.jpg",
|
| 539 |
+
"table_caption": [
|
| 540 |
+
"Table 1: Network architectures for evaluation benchmarks. $C 6 4$ denotes a $3 \\times 3$ convolution with 64 output channels, $M P$ stands for $2 \\times 2$ max pooling, $B N$ represents batch normalization, and $D 5 1 2$ means a dense layer with 512 outputs. The residual binarizations are shown using $R B$ . "
|
| 541 |
+
],
|
| 542 |
+
"table_footnote": [],
|
| 543 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Benchmark</td><td rowspan=1 colspan=1>CNN Architecture</td></tr><tr><td rowspan=1 colspan=1>MNIST</td><td rowspan=1 colspan=1>784(input)-D256-BN-RB-D256-BN-RB-D256-BN-RB-Di0-BN-Softmax</td></tr><tr><td rowspan=1 colspan=1>CIFAR10&SVHN</td><td rowspan=1 colspan=1>3×32×32(input)-C64-BN-RB-C64-BN-RB-MP-C128-BN-RB-C128-BN-RB-MP-C256-BN-RB-C256-BN-RB-D512-BN-RB-D512-BN-RB-D10-BN-Softmax</td></tr></table>",
|
| 544 |
+
"bbox": [
|
| 545 |
+
302,
|
| 546 |
+
791,
|
| 547 |
+
691,
|
| 548 |
+
881
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 5
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "text",
|
| 554 |
+
"text": "Effect of the model size on accuracy: As discussed in (Umuroglu et al. (2017)), the final accuracy of the binary CNN for a particular application is correlated with the shape of the network. For instance, authors of the paper report that the accuracy of MNIST for the architecture in Table 2 varies in the range $( 9 5 . 8 3 \\% . 9 8 . 4 \\% )$ when the number of neurons in hidden layers is varied from 256 to 1024. Similarly, the architecture in (Umuroglu et al. (2017)) for CIFAR-10 is a smaller version of the architecture originally trained by (Courbariaux et al. (2016)). Using this smaller architecture drops the accuracy from $8 8 . 6 \\%$ to $8 0 . 1 \\%$ . In our evaluations, we show that ResBinNet can reduce the accuracy drop using more residual binary levels for the activations of the smaller model. ",
|
| 555 |
+
"bbox": [
|
| 556 |
+
171,
|
| 557 |
+
895,
|
| 558 |
+
825,
|
| 559 |
+
924
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 5
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "table",
|
| 565 |
+
"img_path": "images/6db40d084f02e97ff2052e067b1e367f395c982fbb024a1660c61a8f8f3f5437.jpg",
|
| 566 |
+
"table_caption": [
|
| 567 |
+
"Table 2: Comparison of model size, number of training epochs, and accuracy. "
|
| 568 |
+
],
|
| 569 |
+
"table_footnote": [],
|
| 570 |
+
"table_body": "<table><tr><td rowspan=\"2\">Benchmark</td><td colspan=\"3\">Binarynet(Courbariaux et al. (2016))</td><td colspan=\"3\">FINN (Umuroglu et al. (2017))</td><td colspan=\"5\">ResBinNet</td></tr><tr><td>#Epochs</td><td>Accuracy</td><td>Size (Mbits)</td><td>#Epochs</td><td>Accuracy</td><td>Size (Mbits)</td><td>#Epochs</td><td>Size (Mbits)</td><td>Accuracy (1-level)</td><td>Accuracy (2-level)</td><td>Accuracy (3-level)</td></tr><tr><td>CIFAR-10</td><td>500</td><td>89.85%</td><td>5.24</td><td>NA</td><td>80.1%</td><td>1.5</td><td>50+1</td><td>1.5</td><td>76%</td><td>83.5%</td><td>84.6%</td></tr><tr><td>SVHN</td><td>200</td><td>97.47%</td><td>5.24</td><td>NA</td><td>94.9%</td><td>1.5</td><td>10+1</td><td>1.5</td><td>95.2%</td><td>96.9%</td><td>97.1%</td></tr><tr><td>MNIST</td><td>1000</td><td>99.04%</td><td>52.7</td><td>NA</td><td>95.83%</td><td>0.3</td><td>30+1</td><td>0.3</td><td>97.3%</td><td>97.9%</td><td>98.1%</td></tr></table>",
|
| 571 |
+
"bbox": [
|
| 572 |
+
179,
|
| 573 |
+
127,
|
| 574 |
+
818,
|
| 575 |
+
181
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 6
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "text",
|
| 581 |
+
"text": "",
|
| 582 |
+
"bbox": [
|
| 583 |
+
174,
|
| 584 |
+
212,
|
| 585 |
+
825,
|
| 586 |
+
295
|
| 587 |
+
],
|
| 588 |
+
"page_idx": 6
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"type": "text",
|
| 592 |
+
"text": "Effect of the number of epochs on accuracy: Compared to full-precision neural networks, binarized CNNs usually need more training epochs to achieve the same accuracy. For example, the CIFAR-10 architecture in (Courbariaux et al. (2016)) is trained for 500 epochs, while the fullprecision version of the same network can achieve comparable accuracy in roughly 50 iterations 3. Here, we argue that soft binarization in ResBinNet can significantly reduce the number of training epochs for binary CNNs. ",
|
| 593 |
+
"bbox": [
|
| 594 |
+
174,
|
| 595 |
+
303,
|
| 596 |
+
825,
|
| 597 |
+
386
|
| 598 |
+
],
|
| 599 |
+
"page_idx": 6
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"type": "text",
|
| 603 |
+
"text": "Table 2 compares ResBinNet with two prior arts, namely Binarynet and FINN. Both baselines use the same training methodology, but the network architectures in FINN are considerably smaller, which leads to lower accuracy rates for FINN. We evaluate ResBinNet using the small architectures of FINN. The training of ResBinNet consists of a soft binarization phase and a single fine-tuning epoch. Note that the fine-tuning phase uses the same algorithm as the two baselines. The higher accuracy of Binarynet compared to our approach is a direct result of employing a large architecture and training for many epochs. For each benchmark, the comparison between our approach and the same network architecture of FINN is followed: ",
|
| 604 |
+
"bbox": [
|
| 605 |
+
174,
|
| 606 |
+
393,
|
| 607 |
+
825,
|
| 608 |
+
503
|
| 609 |
+
],
|
| 610 |
+
"page_idx": 6
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"type": "text",
|
| 614 |
+
"text": "• CIFAR-10: Compared to FINN, ResBinNet achieves higher accuracy for more than 1 level of residual binarization. We argue that, even for 1-level binarization, the same accuracy is viable if we fine-tune the soft-binarized model (after 50 epochs) for more than 1 epochs (FINN and ResBinNet use the same algorithms in this phase). In addition, the convergence rate of ResBinNet is improved as the number of residual levels is increased. SVHN and MNIST: For these datasets, ResBinNet achieves a higher accuracy with even fewer epochs compared to CIFAR-10. The final accuracy and the convergence speed also exhibit improvement as the number of residual levels is increased from 1 to 3. ",
|
| 615 |
+
"bbox": [
|
| 616 |
+
215,
|
| 617 |
+
518,
|
| 618 |
+
825,
|
| 619 |
+
640
|
| 620 |
+
],
|
| 621 |
+
"page_idx": 6
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"type": "text",
|
| 625 |
+
"text": "We now evaluate the area overhead and execution time of ResBinNet for the modified hardware architecture, which we discussed previously in Section 4. We compare the implementation of the CNN architecture used for the CIFAR-10 and SVHN tasks (See Table 1). Figure 7 compares the hardware resource utilization, and execution time per input. ",
|
| 626 |
+
"bbox": [
|
| 627 |
+
174,
|
| 628 |
+
655,
|
| 629 |
+
825,
|
| 630 |
+
710
|
| 631 |
+
],
|
| 632 |
+
"page_idx": 6
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"type": "text",
|
| 636 |
+
"text": "The resource utilization of ResBinNet is evaluated in Figure 7a, which compares the utilization (in $\\%$ ) for different resources of the FPGA (i.e. BRAM, DSP, LUT, and Registers). For each resource, we compare the baseline with different number of residual binarization levels in ResBinNet. Asides from the DSP utilization, which is required for full-precision multiplications in batch normalization, the other three resources show a modest increase in utilization, meaning that the residual binarization method offers a scalable design for real-world systems. ",
|
| 637 |
+
"bbox": [
|
| 638 |
+
173,
|
| 639 |
+
717,
|
| 640 |
+
825,
|
| 641 |
+
801
|
| 642 |
+
],
|
| 643 |
+
"page_idx": 6
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"type": "text",
|
| 647 |
+
"text": "Figure 7b compares the latency (runtime) of ResBinNet with the baseline accelerator. In particular, we consider multi-level residual binarization with 1, 2, and 3 residual levels which are denoted by RBN1, RBN2, and RBN3, respectively. The numbers on top of the bars show the accuracy of the corresponding binarized CNN for CIFAR-10 task. As can be seen, ResBinNet enables users to achieve higher accuracy by tolerating a higher latency, which is almost linear with respect to the number of residual levels. ",
|
| 648 |
+
"bbox": [
|
| 649 |
+
174,
|
| 650 |
+
808,
|
| 651 |
+
825,
|
| 652 |
+
892
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 6
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "image",
|
| 658 |
+
"img_path": "images/8c140af2efab2c931fe4d7311ae79d3d93d55c8f0f733932f444cb3a11534698.jpg",
|
| 659 |
+
"image_caption": [
|
| 660 |
+
"Figure 7: (a) Resource utilization overhead of ResBinNet with different residual levels versus baseline design( Umuroglu et al. (2017)) implemented on Xilinx ZC706 Evaluation Kit. (b) Latencyaccuracy trade-off offered by ResBinNet with different residual levels. "
|
| 661 |
+
],
|
| 662 |
+
"image_footnote": [],
|
| 663 |
+
"bbox": [
|
| 664 |
+
235,
|
| 665 |
+
108,
|
| 666 |
+
743,
|
| 667 |
+
250
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 7
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"text": "6 RELATED WORK ",
|
| 674 |
+
"text_level": 1,
|
| 675 |
+
"bbox": [
|
| 676 |
+
176,
|
| 677 |
+
333,
|
| 678 |
+
343,
|
| 679 |
+
348
|
| 680 |
+
],
|
| 681 |
+
"page_idx": 7
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "text",
|
| 685 |
+
"text": "Training CNNs with binary weights and/or activations has been the subject of very recent works (Courbariaux et al. (2015); Rastegari et al. (2016); Courbariaux et al. (2016); Umuroglu et al. (2017)). The authors of Binaryconnect (Courbariaux et al. (2015)) suggest a probabilistic methodology that leverages the full-precision weights to generate binary representatives during forward pass while in the back-propagation the full-precision weights are updated. (Courbariaux et al. (2016)) is the first work attempting to binarize both weight and activations of CNN. In this work, authors also suggest replacing the costly dot products by XNOR-popcount operations. XNOR-net (Rastegari et al. (2016)) proposes to use scale factors during training, which results in an improved accuracy. The aforementioned works propose optimization solutions that enable the use of binarized values in CNNs which, in turn, enable the design of simple and efficient hardware accelerators. The downside of these works is that, aside from changing the architecture of the CNN (Umuroglu et al. (2017)), they do not offer any other reconfigurability in their designs. ",
|
| 686 |
+
"bbox": [
|
| 687 |
+
174,
|
| 688 |
+
366,
|
| 689 |
+
825,
|
| 690 |
+
532
|
| 691 |
+
],
|
| 692 |
+
"page_idx": 7
|
| 693 |
+
},
|
| 694 |
+
{
|
| 695 |
+
"type": "text",
|
| 696 |
+
"text": "On another track of research, the reconfigurability of CNN accelerators has been investigated. This line of research focuses on using adaptive low bit-width representations for compressing the parameters and/or simplifying the pertinent arithmetic operations (Zhou et al. (2016); Han et al. (2016); Wu et al. (2016); Cai et al. (2017)). The proposed solutions, however, do not enjoy the same simplified XNOR-popcount operations as in binarized CNNs. ",
|
| 697 |
+
"bbox": [
|
| 698 |
+
174,
|
| 699 |
+
540,
|
| 700 |
+
823,
|
| 701 |
+
609
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 7
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "Among the aforementioned works, a unified solution which is both reconfigurable and binarized is missing. To the best of our knowledge, ResBinNet is the first to offer a solution which is reconfigurable and, at the same time, enjoys the benefits of binarized CNNs. Our goal in the design of ResBinNet was to remain consistent with the existing CNN optimization solutions. As shown in the paper, ResBinNet is compatible with the accelerators designed for binarized CNNs. ",
|
| 708 |
+
"bbox": [
|
| 709 |
+
174,
|
| 710 |
+
616,
|
| 711 |
+
825,
|
| 712 |
+
686
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 7
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "7 CONCLUSION ",
|
| 719 |
+
"text_level": 1,
|
| 720 |
+
"bbox": [
|
| 721 |
+
176,
|
| 722 |
+
709,
|
| 723 |
+
318,
|
| 724 |
+
726
|
| 725 |
+
],
|
| 726 |
+
"page_idx": 7
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "text",
|
| 730 |
+
"text": "This paper introduces ResBinNet, a novel reconfigurable binarization scheme which aims to improve the convergence rate and the final accuracy of binary CNNs. The proposed training is twofold: (i) In the first phase, called soft binarization, we introduce two distinct methodologies designed for binarizing weights and feature within CNNs, namely residual binarization, and temperature adjustment. Residual binarization learns a multi-level representation for features of CNN to provide an arbitrary numerical precision during inference. Temperature adjustment gradually imposes binarization constraints on the weights. (ii) In the second phase, which we call hard binarization, the model is fine-tuned in few training epochs. Our experiments demonstrate that the joint use of residual binarization and temperature adjustment improves the convergence rate and the accuracy of the binarized CNN. We argue that ResBinNet methodology can be adopted by current CNN hardware accelerators as it requires minimal modification to existing binarized CNN solutions. Developers can integrate the approaches proposed in this paper into their deep learning systems to provide users with a trade-off between application latency and inference accuracy. ",
|
| 731 |
+
"bbox": [
|
| 732 |
+
174,
|
| 733 |
+
743,
|
| 734 |
+
825,
|
| 735 |
+
924
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 7
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "REFERENCES ",
|
| 742 |
+
"text_level": 1,
|
| 743 |
+
"bbox": [
|
| 744 |
+
176,
|
| 745 |
+
102,
|
| 746 |
+
287,
|
| 747 |
+
118
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 8
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "text",
|
| 753 |
+
"text": "Zhaowei Cai, Xiaodong He, Jian Sun, and Nuno Vasconcelos. Deep learning with low precision by half-wave gaussian quantization. arXiv preprint arXiv:1702.00953, 2017. ",
|
| 754 |
+
"bbox": [
|
| 755 |
+
173,
|
| 756 |
+
126,
|
| 757 |
+
823,
|
| 758 |
+
155
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 8
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "Franc¸ois Chollet et al. Keras. https://github.com/fchollet/keras, 2015. ",
|
| 765 |
+
"bbox": [
|
| 766 |
+
173,
|
| 767 |
+
162,
|
| 768 |
+
740,
|
| 769 |
+
179
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 8
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "Matthieu Courbariaux, Yoshua Bengio, and Jean-Pierre David. Binaryconnect: Training deep neural networks with binary weights during propagations. In Advances in Neural Information Processing Systems, pp. 3123–3131, 2015. ",
|
| 776 |
+
"bbox": [
|
| 777 |
+
173,
|
| 778 |
+
188,
|
| 779 |
+
825,
|
| 780 |
+
229
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 8
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "Matthieu Courbariaux, Itay Hubara, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks: Training deep neural networks with weights and activations constrained $\\mathrm { t o } + 1$ or-1. arXiv preprint arXiv:1602.02830, 2016. ",
|
| 787 |
+
"bbox": [
|
| 788 |
+
173,
|
| 789 |
+
238,
|
| 790 |
+
823,
|
| 791 |
+
281
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 8
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "text",
|
| 797 |
+
"text": "Misha Denil, Babak Shakibi, Laurent Dinh, Nando de Freitas, et al. Predicting parameters in deep learning. In Advances in Neural Information Processing Systems, pp. 2148–2156, 2013. ",
|
| 798 |
+
"bbox": [
|
| 799 |
+
171,
|
| 800 |
+
290,
|
| 801 |
+
823,
|
| 802 |
+
320
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 8
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv preprint arXiv:1510.00149, 2015. ",
|
| 809 |
+
"bbox": [
|
| 810 |
+
171,
|
| 811 |
+
327,
|
| 812 |
+
823,
|
| 813 |
+
358
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 8
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "Song Han, Xingyu Liu, Huizi Mao, Jing Pu, Ardavan Pedram, Mark A Horowitz, and William J Dally. Eie: efficient inference engine on compressed deep neural network. In Proceedings of the 43rd International Symposium on Computer Architecture, pp. 243–254. IEEE Press, 2016. ",
|
| 820 |
+
"bbox": [
|
| 821 |
+
176,
|
| 822 |
+
364,
|
| 823 |
+
825,
|
| 824 |
+
409
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 8
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "Geoffrey E Hinton, Nitish Srivastava, Alex Krizhevsky, Ilya Sutskever, and Ruslan R Salakhutdinov. Improving neural networks by preventing co-adaptation of feature detectors. arXiv preprint arXiv:1207.0580, 2012. ",
|
| 831 |
+
"bbox": [
|
| 832 |
+
171,
|
| 833 |
+
416,
|
| 834 |
+
823,
|
| 835 |
+
460
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 8
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Quantized neural networks: Training neural networks with low precision weights and activations. arXiv preprint arXiv:1609.07061, 2016. ",
|
| 842 |
+
"bbox": [
|
| 843 |
+
174,
|
| 844 |
+
468,
|
| 845 |
+
825,
|
| 846 |
+
511
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 8
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "Yong-Deok Kim, Eunhyeok Park, Sungjoo Yoo, Taelim Choi, Lu Yang, and Dongjun Shin. Compression of deep convolutional neural networks for fast and low power mobile applications. arXiv preprint arXiv:1511.06530, 2015. ",
|
| 853 |
+
"bbox": [
|
| 854 |
+
174,
|
| 855 |
+
520,
|
| 856 |
+
825,
|
| 857 |
+
563
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 8
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "Baoyuan Liu, Min Wang, Hassan Foroosh, Marshall Tappen, and Marianna Pensky. Sparse convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 806–814, 2015. ",
|
| 864 |
+
"bbox": [
|
| 865 |
+
174,
|
| 866 |
+
571,
|
| 867 |
+
825,
|
| 868 |
+
614
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 8
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "text",
|
| 874 |
+
"text": "Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In European Conference on Computer Vision, pp. 525–542. Springer, 2016. ",
|
| 875 |
+
"bbox": [
|
| 876 |
+
173,
|
| 877 |
+
622,
|
| 878 |
+
825,
|
| 879 |
+
666
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 8
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "text",
|
| 885 |
+
"text": "Yaman Umuroglu, Nicholas J Fraser, Giulio Gambardella, Michaela Blott, Philip Leong, Magnus Jahre, and Kees Vissers. Finn: A framework for fast, scalable binarized neural network inference. In Proceedings of the 2017 ACM/SIGDA International Symposium on Field-Programmable Gate Arrays, pp. 65–74. ACM, 2017. ",
|
| 886 |
+
"bbox": [
|
| 887 |
+
173,
|
| 888 |
+
674,
|
| 889 |
+
825,
|
| 890 |
+
732
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 8
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In Advances in Neural Information Processing Systems, pp. 2074–2082, 2016. ",
|
| 897 |
+
"bbox": [
|
| 898 |
+
174,
|
| 899 |
+
739,
|
| 900 |
+
825,
|
| 901 |
+
782
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 8
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "Jiaxiang Wu, Cong Leng, Yuhang Wang, Qinghao Hu, and Jian Cheng. Quantized convolutional neural networks for mobile devices. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4820–4828, 2016. ",
|
| 908 |
+
"bbox": [
|
| 909 |
+
173,
|
| 910 |
+
791,
|
| 911 |
+
823,
|
| 912 |
+
835
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 8
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "Xilinx. Vivado. https://www.xilinx.com/products/design-tools/vivado. html, 2017. ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
169,
|
| 921 |
+
844,
|
| 922 |
+
820,
|
| 923 |
+
872
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 8
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "Xiangyu Zhang, Jianhua Zou, Xiang Ming, Kaiming He, and Jian Sun. Efficient and accurate approximations of nonlinear convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1984–1992, 2015. ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
174,
|
| 932 |
+
881,
|
| 933 |
+
825,
|
| 934 |
+
924
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 8
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "Shuchang Zhou, Yuxin Wu, Zekun Ni, Xinyu Zhou, He Wen, and Yuheng Zou. Dorefa-net: Training low bitwidth convolutional neural networks with low bitwidth gradients. arXiv preprint arXiv:1606.06160, 2016. ",
|
| 941 |
+
"bbox": [
|
| 942 |
+
174,
|
| 943 |
+
103,
|
| 944 |
+
823,
|
| 945 |
+
145
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 9
|
| 948 |
+
}
|
| 949 |
+
]
|
parse/train/SJtfOEn6-/SJtfOEn6-_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJtfOEn6-/SJtfOEn6-_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/eQe8DEWNN2W/eQe8DEWNN2W.md
ADDED
|
@@ -0,0 +1,419 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
+
Kartik Gupta1,2, Amir Rahimi1, Thalaiyasingam Ajanthan1, Thomas Mensink3, Cristian Sminchisescu3, Richard Hartley1,3 1Australian National University, 2Data61, CSIRO, 3Google Research {kartik.gupta,amir.rahimi,thalaiyasingam.ajanthan}@anu.edu.au {mensink,sminchisescu,richardhartley}@google.com
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Calibrating neural networks is of utmost importance when employing them in safety-critical applications where the downstream decision making depends on the predicted probabilities. Measuring calibration error amounts to comparing two empirical distributions. In this work, we introduce a binning-free calibration measure inspired by the classical Kolmogorov-Smirnov (KS) statistical test in which the main idea is to compare the respective cumulative probability distributions. From this, by approximating the empirical cumulative distribution using a differentiable function via splines, we obtain a recalibration function, which maps the network outputs to actual (calibrated) class assignment probabilities. The spline-fitting is performed using a held-out calibration set and the obtained recalibration function is evaluated on an unseen test set. We tested our method against existing calibration approaches on various image classification datasets and our spline-based recalibration approach consistently outperforms existing methods on KS error as well as other commonly used calibration measures.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Despite the success of modern neural networks they are shown to be poorly calibrated (Guo et al. (2017)), which has led to a growing interest in the calibration of neural networks over the past few years (Kull et al. (2019); Kumar et al. (2019; 2018); Müller et al. (2019)). Considering classification problems, a classifier is said to be calibrated if the probability values it associates with the class labels match the true probabilities of correct class assignments. For instance, if an image classifier outputs 0.2 probability for the “horse” label for 100 test images, then out of those 100 images approximately 20 images should be classified as horse. It is important to ensure calibration when using classifiers for safety-critical applications such as medical image analysis and autonomous driving where the downstream decision making depends on the predicted probabilities.
|
| 12 |
+
|
| 13 |
+
One of the important aspects of machine learning research is the measure used to evaluate the performance of a model and in the context of calibration, this amounts to measuring the difference between two empirical probability distributions. To this end, the popular metric, Expected Calibration Error (ECE) (Naeini et al. (2015)), approximates the classwise probability distributions using histograms and takes an expected difference. This histogram approximation has a weakness that the resulting calibration error depends on the binning scheme (number of bins and bin divisions). Even though the drawbacks of ECE have been pointed out and some improvements have been proposed (Kumar et al. (2019); Nixon et al. (2019)), the histogram approximation has not been eliminated.1
|
| 14 |
+
|
| 15 |
+
In this paper, we first introduce a simple, binning-free calibration measure inspired by the classical Kolmogorov-Smirnov (KS) statistical test (Kolmogorov (1933); Smirnov (1939)), which also provides an effective visualization of the degree of miscalibration similar to the reliability diagram (NiculescuMizil & Caruana (2005)). To this end, the main idea of the KS-test is to compare the respective classwise cumulative (empirical) distributions. Furthermore, by approximating the empirical cumulative distribution using a differentiable function via splines (McKinley & Levine (1998)), we obtain an analytical recalibration function2 which maps the given network outputs to the actual class assignment probabilities. Such a direct mapping was previously unavailable and the problem has been approached indirectly via learning, for example, by optimizing the (modified) cross-entropy loss (Guo et al. (2017); Mukhoti et al. (2020); Müller et al. (2019)). Similar to the existing methods (Guo et al. (2017); Kull et al. (2019)) the spline-fitting is performed using a held-out calibration set and the obtained recalibration function is evaluated on an unseen test set.
|
| 16 |
+
|
| 17 |
+
We evaluated our method against existing calibration approaches on various image classification datasets and our spline-based recalibration approach consistently outperforms existing methods on KS error, ECE as well as other commonly used calibration measures. Our approach to calibration does not update the model parameters, which allows it to be applied on any trained network and it retains the original classification accuracy in all the tested cases.
|
| 18 |
+
|
| 19 |
+
# 2 NOTATION AND PRELIMINARIES
|
| 20 |
+
|
| 21 |
+
We abstract the network as a function $f _ { \theta } : { \mathcal { D } } \to [ 0 , 1 ] ^ { K }$ , where $\mathcal { D } \subset \mathbb { R } ^ { d }$ , and write $f _ { \boldsymbol { \theta } } ( \mathbf { x } ) = \mathbf { z }$ . Here, $\mathbf { x }$ may be an image, or other input datum, and $\mathbf { z }$ is a vector, sometimes known as the vector of logits. In this paper, the parameters $\theta$ will not be considered, and we write simply $f$ to represent the network function. We often refer to this function as a classifier, and in theory this could be of some other type than a neural network.
|
| 22 |
+
|
| 23 |
+
In a classification problem, $K$ is the number of classes to be distinguished, and we call the value $z _ { k }$ (the ftma $k$ -th component of vecayer, then the values $\mathbf { z }$ ) the atisfy lass , an $k$ final layer of. Hence, the network is aare pseudo$z _ { k }$ $\textstyle \sum _ { k = 1 } ^ { K } z _ { k } = 1$ $z _ { k } \ge 0$ $z _ { k }$ class assignments. Typically, the value $y ^ { * } = \arg \operatorname* { m a x } _ { k } z _ { k }$ is taken as the (top-1) prediction of the network, and the corresponding score, $\operatorname* { m a x } _ { k } \ z _ { k }$ is called the confidence of the prediction. However, the term confidence does not have any mathematical meaning in this context and we deprecate its use.
|
| 24 |
+
|
| 25 |
+
We assume we are given a set of training data $( { \bf x } _ { i } , y _ { i } ) _ { i = 1 } ^ { n }$ , where $\mathbf { x } _ { i } \in \mathcal { D }$ is an input data element, which for simplicity we call an image, and $y _ { i } \in \mathcal { K } = \{ 1 , . . . , K \}$ is the so-called ground-truth label. Our method also uses two other sets of data, called calibration data and test data.
|
| 26 |
+
|
| 27 |
+
It would be desirable if the numbers $z _ { k }$ output by a network represented true probabilities. For this to make sense, we posit the existence of joint random variables $( X , Y )$ , where $X$ takes values in a domain $\mathcal { D } \subset \mathbb { R } ^ { d }$ , and $Y$ takes values in $\kappa$ . Further, let $Z = f ( X )$ , another random variable, and $Z _ { k } = f _ { k } ( X )$ be its $k$ -th component. Note that in this formulation $X$ and $Y$ are joint random variables, and the probability $P ( Y \mid X )$ is not assumed to be 1 for single class, and 0 for the others.
|
| 28 |
+
|
| 29 |
+
A network is said to be calibrated if for every class $k$ ,
|
| 30 |
+
|
| 31 |
+
$$
|
| 32 |
+
P ( Y = k \mid Z = { \bf z } ) = z _ { k } ~ .
|
| 33 |
+
$$
|
| 34 |
+
|
| 35 |
+
This can be written briefly as $P ( k \mid f ( \mathbf { x } ) ) = f _ { k } ( \mathbf { x } ) = z _ { k }$ . Thus, if the network takes input $\mathbf { x }$ and outputs $\mathbf { z } = f ( \mathbf { x } )$ , then $z _ { k }$ represents the probability (given $f ( \mathbf { x } ) ) ,$ ) that image $\mathbf { x }$ belongs to class $k$ .
|
| 36 |
+
|
| 37 |
+
The probability $P ( k \mid \mathbf { z } )$ is difficult to evaluate, even empirically, and most metrics (such as ECE) use or measure a different notion called classwise calibration (Kull et al. (2019); Zadrozny & Elkan (2002)), defined as,
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
P ( Y = k \mid Z _ { k } = z _ { k } ) = z _ { k } ~ .
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
This paper uses this definition (2) of calibration in the proposed KS metric.
|
| 44 |
+
|
| 45 |
+
Calibration and accuracy of a network are different concepts. For instance, one may consider a classifier that simply outputs the class probabilities for the data, ignoring the input $\mathbf { x }$ . Thus, if $f _ { k } ( { \mathbf { x } } ) = z _ { k } = P ( \bar { Y } = k )$ , this classifier $f$ is calibrated but the accuracy is no better than the random predictor. Therefore, in calibration of a classifier, it is important that this is not done while sacrificing classification (for instance top-1) accuracy.
|
| 46 |
+
|
| 47 |
+
The top- $\cdot r$ prediction. The classifier $f$ being calibrated means that $f _ { k } ( { \bf x } )$ is calibrated for each class $k$ , not only for the top class. This means that scores $z _ { k }$ for all classes $k$ give a meaningful estimate of the probability of the sample belonging to class $k$ . This is particularly important in medical diagnosis where one may wish to have a reliable estimate of the probability of certain unlikely diagnoses.
|
| 48 |
+
|
| 49 |
+
Frequently, however, one is most interested in the probability of the top scoring class, the top-1 prediction, or in general the top- $\cdot r$ prediction. Suppose a classifier $f$ is given with values in $[ 0 , 1 ] ^ { K }$ and let $y$ be the ground truth label. Let us use $f ^ { ( - r ) }$ to denote the $r$ -th top score (so $f ^ { ( - 1 ) }$ would denote the top score; the notation follows python semantics in which $A [ - 1 ]$ represents the last element in array $A$ ). Similarly we define $\operatorname* { m a x } ^ { ( - r ) }$ for the $r$ -th largest value. Let $f ^ { ( - r ) } : { \mathcal { D } } [ 0 , 1 ]$ be defined as
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
f ^ { ( - r ) } ( { \bf x } ) = \operatorname* { m a x } _ { k } ^ { ( - r ) } f _ { k } ( { \bf x } ) , \quad \mathrm { a n d } \quad y ^ { ( - r ) } = \left\{ 1 \begin{array} { l l } { { \mathrm { } } } & { { \mathrm { i f } y = \arg \operatorname* { m a x } _ { k } ^ { ( - r ) } f _ { k } ( { \bf x } ) } } \\ { { 0 } } & { { \mathrm { o t h e r w i s e } . } } \end{array} \right.
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
In words, $y ^ { ( - r ) }$ is 1 if the $r$ -th top predicted class is the correct (ground-truth) choice. The network is calibrated for the top- $\cdot r$ predictor if for all scores $\sigma$ ,
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
P ( y ^ { ( - r ) } = 1 \mid f ^ { ( - r ) } ( { \bf x } ) = \sigma ) = \sigma .
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
In words, the conditional probability that the top- $\cdot r$ -th choice of the network is the correct choice, is equal to the $r$ -th top score.
|
| 62 |
+
|
| 63 |
+
Similarly, one may consider probabilities that a datum belongs to one of the top- $_ r$ scoring classes. The classifier is calibrated for being within-the-top- $\mathbfit { \nabla } x$ classes if
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\begin{array} { r } { P \big ( \sum _ { s = 1 } ^ { r } y ^ { ( - s ) } = 1 \big | \sum _ { s = 1 } ^ { r } f ^ { ( - s ) } ( \mathbf { x } ) = \sigma \big ) = \sigma . } \end{array}
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
Here, the sum on the left is 1 if the ground-truth label is among the top $r$ choices, 0 otherwise, and the sum on the right is the sum of the top $r$ scores.
|
| 70 |
+
|
| 71 |
+
# 3 KOLMOGOROV-SMIRNOV CALIBRATION ERROR
|
| 72 |
+
|
| 73 |
+
We now consider a way to measure if a classifier is classwise calibrated, including top- $\mathbfit { \nabla } x$ and withintop- $r$ calibration. This test is closely related to the Kolmogorov-Smirnov test (Kolmogorov (1933); Smirnov (1939)) for the equality of two probability distributions. This may be applied when the probability distributions are represented by samples.
|
| 74 |
+
|
| 75 |
+
We start with the definition of classwise calibration:
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
{ \begin{array} { r l } & { P ( Y = k \mid f _ { k } ( X ) = z _ { k } ) = z _ { k } . } \\ & { P ( Y = k , \ f _ { k } ( X ) = z _ { k } ) = z _ { k } P ( f _ { k } ( X ) = z _ { k } ) , \quad { \mathrm { B a y e s } } ^ { , } { \mathrm { r u l e } } . } \end{array} }
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
This may be written more simply but with a less precise notation as
|
| 82 |
+
|
| 83 |
+
$$
|
| 84 |
+
P ( z _ { k } , k ) = z _ { k } P ( z _ { k } ) .
|
| 85 |
+
$$
|
| 86 |
+
|
| 87 |
+
Motivation of the KS test. One is motivated to test the equality (or difference between) two distributions, defined on the interval $[ 0 , 1 ]$ . However, instead of having a functional form of these distributions, one has only samples from them. Given samples $\left( \mathbf { x } _ { i } , y _ { i } \right)$ , it is not straight-forward to estimate $P ( z _ { k } )$ or $P ( \boldsymbol { z } _ { k } \mid \dot { \boldsymbol { k } } )$ , since a given value $z _ { k }$ is likely to occur only once, or not at all, since the sample set is finite. One possibility is to use histograms of these distributions. However, this requires selection of the bin size and the division between bins, and the result depends on these parameters. For this reason, we believe this is an inadequate solution.
|
| 88 |
+
|
| 89 |
+
The approach suggested by the Kolmogorov-Smirnov test is to compare the cumulative distributions. Thus, with $k$ given, one tests the equality
|
| 90 |
+
|
| 91 |
+
$$
|
| 92 |
+
\int _ { 0 } ^ { \sigma } P ( z _ { k } , k ) d z _ { k } = \int _ { 0 } ^ { \sigma } z _ { k } P ( z _ { k } ) d z _ { k } .
|
| 93 |
+
$$
|
| 94 |
+
|
| 95 |
+
Writing $\phi _ { 1 } ( \sigma )$ and $\phi _ { 2 } ( \sigma )$ to be the two sides of this equation, the KS-distance between these two distributions is defined as $\begin{array} { r } { \mathrm { K S } = \operatorname* { m a x } _ { \sigma } | \phi _ { 1 } ( \sigma ) - \phi _ { 2 } ( \sigma ) | } \end{array}$ . The fact that simply the maximum is used here may suggest a lack of robustness, but this is a maximum difference between two integrals, so it reflects an accumulated difference between the two distributions.
|
| 96 |
+
|
| 97 |
+
To provide more insights into the KS-distance, let us a consider a case where $z _ { k }$ consistently over or under-estimates $P ( k \mid z _ { k } )$ (which is usually the case, at least for top-1 classification (Guo et al. (2017))), then $P ( k \mid z _ { k } ) - z _ { k }$ has constant sign for all values of $z _ { k }$ . It follows that $P ( z _ { k } , k ) - z _ { k } P ( z _ { k } )$ has constant sign and so the maximum value in the KS-distance is achieved when $\sigma = 1$ . In this case,
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
\mathrm { K S } = \int _ { 0 } ^ { 1 } \left| P ( z _ { k } , k ) - z _ { k } P ( z _ { k } ) \right| d z _ { k } = \int _ { 0 } ^ { 1 } \left| P ( k \mid z _ { k } ) - z _ { k } \right| P ( z _ { k } ) d z _ { k } ,
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
which is the expected difference between $z _ { k }$ and $P ( k \mid z _ { k } )$ . This can be equivalently referred to as the expected calibration error for the class $k$ .
|
| 104 |
+
|
| 105 |
+
Sampled distributions. Given samples $( \mathbf { x } _ { i } , y _ { i } ) _ { i = 1 } ^ { N }$ , and a fixed $k$ , one can estimate these cumulative distributions by
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\int _ { 0 } ^ { \sigma } P ( z _ { k } , k ) d z _ { k } \approx \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \mathbf { 1 } ( f _ { k } ( \mathbf { x } _ { i } ) \leq \sigma ) \times \mathbf { 1 } ( y _ { i } = k ) ,
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
where $\mathbf { 1 } : B \{ 0 , 1 \}$ is the function that returns 1 if the Boolean expression is true and otherwise 0. Thus, the sum is simply a count of the number of samples for which $y _ { i } = k$ and $f _ { k } ( { \bf x } _ { i } ) \leq \sigma$ , and so the integral represents the proportion of the data satisfying this condition. Similarly,
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
\int _ { 0 } ^ { \sigma } z _ { k } P ( z _ { k } ) d z _ { k } \approx \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \mathbf { 1 } ( f _ { k } ( \mathbf { x } _ { i } ) \leq \sigma ) f _ { k } ( \mathbf { x } _ { i } ) .
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
These sums can be computed quickly by sorting the data according to the values $f _ { k } ( { \bf x } _ { i } )$ , then defining two sequences as follows.
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
\begin{array} { c } { { \tilde { h } _ { 0 } = h _ { 0 } = 0 ~ , } } \\ { { h _ { i } = h _ { i - 1 } + { \bf 1 } ( y _ { i } = k ) / N ~ , } } \\ { { \tilde { h } _ { i } = \tilde { h } _ { i - 1 } + f _ { k } ( { \bf x } _ { i } ) / N ~ . } } \end{array}
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
The two sequences should be the same, and the metric
|
| 124 |
+
|
| 125 |
+
$$
|
| 126 |
+
\mathrm { K S } ( f _ { k } ) = \operatorname* { m a x } _ { i } \left| h _ { i } - \tilde { h } _ { i } \right| ,
|
| 127 |
+
$$
|
| 128 |
+
|
| 129 |
+
gives a numerical estimate of the similarity, and hence a measure of the degree of calibration of $f _ { k }$ .
|
| 130 |
+
This is essentially a version of the Kolmogorov-Smirnov test for equality of two distributions.
|
| 131 |
+
|
| 132 |
+
Remark. All this discussion holds also when $k < 0$ , for top- $\cdot r$ and within-top- $r$ predictions as discussed in section 2. In (11), for instance, $f _ { - 1 } ( \mathbf { x } _ { i } )$ means the top score, $f _ { - 1 } ( \mathbf { x } _ { i } ) = \operatorname* { m a x } _ { k } ( f _ { k } ( \mathbf { x } _ { i } ) )$ , or more generally, $f _ { - r } ( \mathbf { x } _ { i } )$ means the $r$ -th top score. Similarly, the expression $y _ { i } = - r$ means that $y _ { i }$ is the class that has the $r$ -th top score. Note when calibrating the top-1 score, our method is applied after identifying the top-1 score, hence, it does not alter the classification accuracy.
|
| 133 |
+
|
| 134 |
+
# 4 RECALIBRATION USING SPLINES
|
| 135 |
+
|
| 136 |
+
The function $h _ { i }$ defined in (11) computes an empirical approximation
|
| 137 |
+
|
| 138 |
+
$$
|
| 139 |
+
h _ { i } \approx P ( Y = k , f _ { k } ( X ) \leq f _ { k } ( \mathbf { x } _ { i } ) ) .
|
| 140 |
+
$$
|
| 141 |
+
|
| 142 |
+
For convenience, the value of $f _ { k }$ will be referred to as the score. We now define a continuous function $h ( t )$ for $t \in [ 0 , 1 ]$ by
|
| 143 |
+
|
| 144 |
+
$$
|
| 145 |
+
h ( t ) = P ( Y = k , f _ { k } ( X ) \leq s ( t ) ) ,
|
| 146 |
+
$$
|
| 147 |
+
|
| 148 |
+
where $s ( t )$ is the $t$ -th fractile score, namely the value that a proportion $t$ of the scores $f _ { k } ( X )$ lie below.
|
| 149 |
+
For instance $s ( 0 . 5 )$ is the median score. So, $h _ { i }$ is an empirical approximation to $h ( t )$ where $t = i / N$ .
|
| 150 |
+
We now provide the basic observation that allows us to compute probabilities given the scores.
|
| 151 |
+
|
| 152 |
+

|
| 153 |
+
Figure 1: Calibration graphs for an uncalibrated DenseNet-40 (Huang et al. (2017)) trained on CIFAR-10 for top-1 class with a $K S$ error of $5 . 5 \%$ , and top-1 accuracy of $9 2 . 4 \%$ on the test set. Here (a) shows the plot of cumulative score and probability versus the fractile of the test set, (b) shows the same information with the horizontal axis warped so that the cumulative-score graph is a straight line. This is created as scatter plots of cumulative (score, score): blue and (score, probability): orange. If the network is perfectly calibrated, the probability line will be a straight line coincident with the (score, score) line. This shows that the network is substantially overestimating (score) the probability of the computation. (c) and (d) show plots of (non-cumulative) score and probability plotted against fractile, or score. How these plots are produced is described in section 4.
|
| 154 |
+
|
| 155 |
+
Proposition 4.1. If $h ( t ) = P ( Y = k$ , $f _ { k } ( X ) \leq s ( t ) )$ as in $( I 4 )$ where $s ( t )$ is the $t$ -th fractile score, then $h ^ { \prime } ( t ) = P ( Y = k \mid f _ { k } ( X ) = s ( t ) )$ , where $h ^ { \prime } ( t ) = d h / d t$ .
|
| 156 |
+
|
| 157 |
+
Proof. The proof relies on the equality $P ( f _ { k } ( X ) \leq s ( t ) ) = t$ . In words, since $s ( t )$ is the value that a fraction $t$ of the scores are less than or equal, the probability that a score is less than or equal to $s ( t )$ , is (obviously) equal to $t$ . See the supplementary material for a detailed proof.
|
| 158 |
+
|
| 159 |
+
Notice $h ^ { \prime } ( t )$ allows direct conversion from score to probability. Therefore, our idea is to approximate $h _ { i }$ using a differentiable function and take the derivative which would be our recalibration function.
|
| 160 |
+
|
| 161 |
+
# 4.1 SPLINE FITTING
|
| 162 |
+
|
| 163 |
+
The function $h _ { i }$ (shown in fig 1a) is obtained through sampling only. Nevertheless, the sampled graph is smooth and increasing. There are various ways to fit a smooth curve to it, so as to take derivatives. We choose to fit the sampled points $h _ { i }$ to a cubic spline and take its derivative.
|
| 164 |
+
|
| 165 |
+
Given sample points $( u _ { i } , v _ { i } ) _ { i = 1 } ^ { N }$ in $\mathbb { R } \times \mathbb { R }$ , easily available references show how to fit a smooth spline curve that passes directly through the points $( u _ { i } , v _ { i } )$ . A very clear description is given in McKinley & Levine (1998), for the case where the points $u _ { i }$ are equally spaced. We wish, however, to fit a spline curve with a small number of knot points to do a least-squares fit to the points. For convenience, this is briefly described here.
|
| 166 |
+
|
| 167 |
+
A cubic spline $v ( u )$ is defined by its values at certain knot points $( \hat { u } _ { k } , \hat { v } _ { k } ) _ { k = 1 } ^ { K }$ . In fact, the value of the curve at any point $u$ can be written as a linear function $\begin{array} { r } { \boldsymbol { v } ( \boldsymbol { u } ) = \sum _ { k = 1 } ^ { K } a _ { k } ( \boldsymbol { u } ) \boldsymbol { \hat { v } _ { k } } = \mathbf { a } ^ { \top } ( \boldsymbol { u } ) \boldsymbol { \hat { \mathbf { v } } } } \end{array}$ , where the coefficients $a _ { k }$ depend on $u$ .3 Therefore, given a set of further points $( u _ { i } , v _ { i } ) _ { i = 1 } ^ { N }$ , which may be different from the knot points, and typically more in number, least-squares spline fitting of the points $( u _ { i } , v _ { i } )$ can be written as a least-squares problem minvˆ $\| \mathbb { A } ( \mathbf { u } ) \hat { \mathbf { v } } - \mathbf { v } \| ^ { 2 }$ , which is solved by standard linear least-squares techniques. Here, the matrix A has dimension $N \times K$ with $N > K$ . Once $\hat { \mathbf { v } }$ is found, the value of the spline at any further points $u$ is equal to $\boldsymbol { v } ( \boldsymbol { u } ) = \mathbf { a } ( \boldsymbol { u } ) ^ { \top } \hat { \mathbf { v } }$ , a linear combination of the knot-point values $\hat { v } _ { k }$ .
|
| 168 |
+
|
| 169 |
+
Since the function is piecewise cubic, with continuous second derivatives, the first derivative of the spline is computed analytically. Furthermore, the derivative $v ^ { \prime } ( u )$ can also be written as a linear combination $\hat { v ^ { \prime } } ( u ) = \mathbf { a } ^ { \prime } ( u ) ^ { \top } \hat { \mathbf { v } }$ , where the coefficients $\mathbf { a } ^ { \prime } ( u )$ can be written explicitly.
|
| 170 |
+
|
| 171 |
+
Our goal is to fit a spline to a set of data points $\left( u _ { i } , v _ { i } \right) = \left( i / N , h _ { i } \right)$ defined in (11), in other words, the values $h _ { i }$ plotted against fractile score. Then according to Proposition 4.1, the derivative of the spline is equal to $P ( k \mid f _ { k } ( X ) = s ( t ) )$ . This allows a direct computation of the conditional probability that the sample belongs to class $k$ .
|
| 172 |
+
|
| 173 |
+

|
| 174 |
+
Figure 2: The result of the spline calibration method, on the example given in fig $^ { l }$ for top-1 calibration. A recalibration function $\gamma : \mathbb { R } \to \mathbb { R }$ is used to adjust the scores, replacing $f _ { k } ( { \bf x } )$ with $\gamma ( f _ { k } ( { \bf x } ) )$ (see section 4.2). $A s$ is seen, the network is now almost perfectly calibrated when tested on the “calibration” set (top row) used to calibrate it. In bottom row, the recalibration function is tested on a further set “test”. It is seen that the result is not perfect, but much better than the one in fig 1d. It is also notable that the improvement in calibration is achieved without any loss of accuracy.
|
| 175 |
+
|
| 176 |
+
Since the derivative of $h _ { i }$ is a probability, one might constrain the derivative to be in the range $[ 0 , 1 ]$ while fitting splines. This can be easily incorporated because the derivative of the spline is a linear expression in $\hat { v } _ { i }$ . The spline fitting problem thereby becomes a linearly-constrained quadratic program (QP). However, although we tested this, in all the reported experiments, a simple least-squares solver is used without the constraints.
|
| 177 |
+
|
| 178 |
+
# 4.2 RECALIBRATION
|
| 179 |
+
|
| 180 |
+
We suppose that the classifier $f = f _ { \theta }$ is fixed, through training on the training set. Typically, if the classifier is tested on the training set, it is very close to being calibrated. However, if a classifier $f$ is then tested on a different set of data, it may be substantially mis-calibrated. See fig 1.
|
| 181 |
+
|
| 182 |
+
Our method of calibration is to find a further mapping $\gamma : [ 0 , 1 ] [ 0 , 1 ]$ , such that $\gamma \circ f _ { k }$ is calibrated. This is easily obtained from the direct mapping from score $f _ { k } ( { \bf x } )$ to $P ( k \mid f _ { k } ( \mathbf { x } ) )$ (refer to fig 1d). In equations, $\dot { \gamma } ( \sigma ) = h ^ { \prime } ( s ^ { - 1 } ( \sigma ) )$ . The function $h ^ { \prime }$ is known analytically, from fitting a spline to $h ( t )$ and taking its derivative. The function $s ^ { - 1 }$ is a mapping from the given score $\sigma$ to its fractile $s ^ { - 1 } ( \sigma )$ Note that, a held out calibration set is used to fit the splines and the obtained recalibration function $\gamma$ is evaluated on an unseen test set.
|
| 183 |
+
|
| 184 |
+
To this end, given a sample $\mathbf { x }$ from the test set with $f _ { k } ( { \bf x } ) = \sigma$ , one can compute $h ^ { \prime } ( s ^ { - 1 } ( \sigma ) )$ directly in one step by interpolating its value between the values of $h ^ { \prime } ( f _ { k } ( { \bf x } _ { i } ) )$ and $h ^ { \prime } ( f _ { k } ( \mathbf { \bar { x } } _ { i + 1 } ) )$ where $\mathbf { x } _ { i }$ and $\mathbf { x } _ { i + 1 }$ are two samples from the calibration set, with closest scores on either side of $\sigma$ . Assuming the samples in the calibration set are ordered, the samples $\mathbf { x } _ { i }$ and $\mathbf x _ { i + 1 }$ can be quickly located using binary search. Given a reasonable number of samples in the calibration set, (usually in the order of thousands), this can be very accurate. In our experiments, improvement in calibration is observed in the test set with no difference to the accuracy of the network (refer to fig 2d). In practice, spline fitting is much faster than one forward pass through the network and it is highly scalable compared to learning based calibration methods.
|
| 185 |
+
|
| 186 |
+
# 5 RELATED WORK
|
| 187 |
+
|
| 188 |
+
Modern calibration methods. In recent years, neural networks are shown to overfit to the Negative Log-Likelihood (NLL) loss and in turn produce overconfident predictions which is cited as the main reason for miscalibration (Guo et al. (2017)). To this end, modern calibration methods can be broadly categorized into 1) methods that adapt the training procedure of the classifier, and 2) methods that learn a recalibration function post training. Among the former, the main idea is to increase the entropy of the classifier to avoid overconfident predictions, which is accomplished via modifying the training loss (Kumar et al. (2018); Mukhoti et al. (2020); Seo et al. (2019)), label smoothing (Müller et al. (2019); Pereyra et al. (2017)), and data augmentation techniques (Thulasidasan et al. (2019); Yun et al. (2019); Zhang et al. (2018)).
|
| 189 |
+
|
| 190 |
+
On the other hand, we are interested in calibrating an already trained classifier that eliminates the need for training from scratch. In this regard, a popular approach is Platt scaling (Platt et al. (1999)) which transforms the outputs of a binary classifier into probabilities by fitting a scaled logistic function on a held out calibration set. Similar approaches on binary classifiers include Isotonic Regression (Zadrozny & Elkan (2001)), histogram and Bayesian binning (Naeini et al. (2015); Zadrozny & Elkan (2001)), and Beta calibration (Kull et al. (2017)), which are later extended to the multiclass setting (Guo et al. (2017); Kull et al. (2019); Zadrozny & Elkan (2002)). Among these, the most popular method is temperature scaling (Guo et al. (2017)), which learns a single scalar on a held out set to calibrate the network predictions. Despite being simple and one of the early works, temperature scaling is the method to beat in calibrating modern networks. Our approach falls into this category, however, as opposed to minimizing a loss function, we obtain a recalibration function via spline-fitting, which directly maps the classifier outputs to the calibrated probabilities.
|
| 191 |
+
|
| 192 |
+
Calibration measures. Expected Calibration Error (ECE) (Naeini et al. (2015)) is the most popular measure in the literature, however, it has a weakness that the resulting calibration error depends on the histogram binning scheme such as the bin endpoints and the number of bins. Even though, some improvements have been proposed (Nixon et al. (2019); Vaicenavicius et al. (2019)), the binning scheme has not been eliminated and it is recently shown that any binning scheme leads to underestimated calibration errors (Kumar et al. (2019); Widmann et al. (2019)). Note that, there are binning-free metrics exist such as Brier score (Brier (1950)), NLL, and kernel based metrics for the multiclass setting (Kumar et al. (2018); Widmann et al. (2019)). Nevertheless, the Brier score and NLL measure a combination of calibration error and classification error (not just the calibration which is the focus). Whereas kernel based metrics, besides being computationally expensive, measure the calibration of the predicted probability vector rather than the classwise calibration error (Kull et al. (2019)) (or top- $\cdot r$ prediction) which is typically the quantity of interest. To this end, we introduce a binning-free calibration measure based on the classical KS-test, which has the same benefits as ECE and provides effective visualizations similar to reliability diagrams. Furthermore, KS error can be shown to be a special case of kernel based measures (Gretton et al. (2012)).
|
| 193 |
+
|
| 194 |
+
# 6 EXPERIMENTS
|
| 195 |
+
|
| 196 |
+
Experimental setup. We evaluate our proposed calibration method on four different imageclassification datasets namely CIFAR-10/100 (Krizhevsky et al. (2009)), SVHN (Netzer et al. (2011)) and ImageNet (Deng et al. (2009)) using LeNet (LeCun et al. (1998)), ResNet (He et al. (2016)), ResNet with stochastic depth (Huang et al. (2017)), Wide ResNet (Zagoruyko & Komodakis (2016)) and DenseNet (Huang et al. (2017)) network architectures against state-of-the-art methods that calibrate post training. We use the pretrained network logits4 for spline fitting where we choose validation set as the calibration set, similar to the standard practice. Our final results for calibration are then reported on the test set of all datasets. Since ImageNet does not comprise the validation set, test set is divided into two halves: calibration set and test set. We use the natural cubic spline fitting method (that is, cubic splines with linear run-out) with 6 knots for all our experiments. Further experimental details are provided in the supplementary. For baseline methods namely: Temperature scaling, Vector scaling, Matrix scaling with ODIR (Off-diagonal and Intercept Regularisation), and Dirichlet calibration, we use the implementation of Kull et al. (Kull et al. (2019)).
|
| 197 |
+
|
| 198 |
+
Table 1: KS Error $( i n \% )$ for top-1 prediction (with lowest in bold and second lowest underlined) on various image classification datasets and models with different calibration methods. Note, our method consistently reduces calibration error to $< 1 \%$ in almost all experiments, outperforming state-of-the-art methods.
|
| 199 |
+
|
| 200 |
+
<table><tr><td>Dataset</td><td>Model</td><td>Uncalibrated</td><td>Temp. Scaling</td><td>Vector Scaling</td><td>MS-ODIR</td><td>Dir-ODIR</td><td>Ours (Spline)</td></tr><tr><td rowspan="5">CIFAR-10</td><td>Resnet-110</td><td>4.750</td><td>0.916</td><td>0.996</td><td>0.977</td><td>1.060</td><td>0.643</td></tr><tr><td>Resnet-110-SD</td><td>4.102</td><td>0.362</td><td>0.430</td><td>0.358</td><td>0.389</td><td>0.269</td></tr><tr><td>DenseNet-40</td><td>5.493</td><td>0.900</td><td>0.890</td><td>0.897</td><td>1.057</td><td>0.773</td></tr><tr><td>Wide Resnet-32</td><td>4.475</td><td>0.296</td><td>0.267</td><td>0.305</td><td>0.291</td><td>0.367</td></tr><tr><td>Lenet-5</td><td>5.038</td><td>0.799</td><td>0.839</td><td>0.646</td><td>0.854</td><td>0.348</td></tr><tr><td rowspan="5">CIFAR-100</td><td>Resnet-110</td><td>18.481</td><td>1.489</td><td>1.827</td><td>2.845</td><td>2.575</td><td>0.575</td></tr><tr><td>Resnet-110-SD</td><td>15.832</td><td>0.748</td><td>1.303</td><td>3.572</td><td>1.645</td><td>1.028</td></tr><tr><td>DenseNet-40</td><td>21.156</td><td>0.304</td><td>0.483</td><td>2.350</td><td>0.618</td><td>0.454</td></tr><tr><td>Wide Resnet-32</td><td>18.784</td><td>1.130</td><td>1.642</td><td>2.524</td><td>1.788</td><td>0.930</td></tr><tr><td>Lenet-5</td><td>12.117</td><td>1.215</td><td>0.768</td><td>1.047</td><td>2.125</td><td>0.391</td></tr><tr><td rowspan="2">ImageNet</td><td>Densenet-161</td><td>5.721</td><td>0.744</td><td>2.014</td><td>4.723</td><td>3.103</td><td>0.406</td></tr><tr><td>Resnet-152</td><td>6.544</td><td>0.791</td><td>1.985</td><td>5.805</td><td>3.528</td><td>0.441</td></tr><tr><td>SVHN</td><td>Resnet-152-SD</td><td>0.852</td><td>0.552</td><td>0.570</td><td>0.573</td><td>0.607</td><td>0.556</td></tr></table>
|
| 201 |
+
|
| 202 |
+
Table 2: KS Error $( i n \% )$ for top-2 prediction (with lowest in bold and second lowest underlined) on various image classification datasets and models with different calibration methods. Again, our method consistently reduces calibration error to $< 1 \%$ (less then $0 . 7 \%$ , except for one case), in all experiments, the only one of the methods to achieve this.
|
| 203 |
+
|
| 204 |
+
<table><tr><td>Dataset</td><td>Model</td><td>Uncalibrated</td><td>Temp. Scaling</td><td>Vector Scaling</td><td>MS-ODIR</td><td>Dir-ODIR</td><td>Ours (Spline)</td></tr><tr><td rowspan="5">CIFAR-10</td><td>Resnet-110</td><td>3.011</td><td>0.947</td><td>0.948</td><td>0.598</td><td>0.953</td><td>0.347</td></tr><tr><td>Resnet-110-SD</td><td>2.716</td><td>0.478</td><td>0.486</td><td>0.401</td><td>0.500</td><td>0.310</td></tr><tr><td>DenseNet-40</td><td>3.342</td><td>0.535</td><td>0.543</td><td>0.598</td><td>0.696</td><td>0.695</td></tr><tr><td>Wide Resnet-32</td><td>2.669</td><td>0.426</td><td>0.369</td><td>0.412</td><td>0.382</td><td>0.364</td></tr><tr><td>Lenet-5</td><td>1.708</td><td>0.367</td><td>0.279</td><td>0.409</td><td>0.426</td><td>0.837</td></tr><tr><td rowspan="5">CIFAR-100</td><td>Resnet-110</td><td>4.731</td><td>1.401</td><td>1.436</td><td>0.961</td><td>1.269</td><td>0.371</td></tr><tr><td>Resnet-110-SD</td><td>3.923</td><td>0.315</td><td>0.481</td><td>0.772</td><td>0.506</td><td>0.595</td></tr><tr><td>DenseNet-40</td><td>5.803</td><td>0.305</td><td>0.653</td><td>0.219</td><td>0.135</td><td>0.903</td></tr><tr><td>Wide Resnet-32</td><td>5.349</td><td>0.790</td><td>1.095</td><td>0.646</td><td>0.845</td><td>0.372</td></tr><tr><td>Lenet-5</td><td>2.615</td><td>0.571</td><td>0.439</td><td>0.324</td><td>0.799</td><td>0.587</td></tr><tr><td rowspan="2">ImageNet</td><td>Densenet-161</td><td>1.689</td><td>1.044</td><td>1.166</td><td>1.288</td><td>1.321</td><td>0.178</td></tr><tr><td>Resnet-152</td><td>1.793</td><td>1.151</td><td>1.264</td><td>1.660</td><td>1.430</td><td>0.580</td></tr><tr><td>SVHN</td><td>Resnet-152-SD</td><td>0.373</td><td>0.226</td><td>0.216</td><td>0.973</td><td>0.218</td><td>0.492</td></tr></table>
|
| 205 |
+
|
| 206 |
+
Results. We provide comparisons of our method using proposed KS error for the top most prediction against state-of-the-art calibration methods namely temperature scaling (Guo et al. (2017)), vector scaling, MS-ODIR, and Dirichlet Calibration (Dir-ODIR) (Kull et al. (2019)) in Table 1. Our method reduces calibration error to $1 \%$ in almost all experiments performed on different datasets without any loss in accuracy. It clearly reflects the efficacy of our method irrespective of the scale of the dataset as well as the depth of the network architecture. It consistently performs better than the recently introduced Dirichlet calibration and Matrix scaling with ODIR (Kull et al. (2019)) in all the experiments. Note this is consistent with the top-1 calibration results reported in Table 15 of (Kull et al. (2019)). The closest competitor to our method is temperature scaling, against which our method performs better in 9 out of 13 experiments. Note, in the cases where temperature scaling outperforms our method, the gap in KS error between the two methods is marginal $( < \mathbf { 0 . 3 \% } )$ and our method is the second best. We provide comparisons using other calibration metrics in the supplementary.
|
| 207 |
+
|
| 208 |
+
From the practical point of view, it is also important for a network to be calibrated for top second/third predictions and so on. We thus show comparisons for top-2 prediction KS error in Table 2. An observation similar to the one noted in Table 1 can be made for the top-2 predictions as well. Our method achieves $< 1 \%$ calibration error in all the experiments. It consistently performs well especially for experiments performed on large scale ImageNet dataset where it sets new state-of-the-art for calibration. We would like to emphasize here, though for some cases Kull et al. (Kull et al. (2019)) and Vector Scaling perform better than our method in terms of top-2 KS calibration error, overall (considering both top-1 and top-2 predictions) our method performs better.
|
| 209 |
+
|
| 210 |
+
# 7 CONCLUSION
|
| 211 |
+
|
| 212 |
+
In this work, we have introduced a binning-free calibration metric based on the Kolmogorov-Smirnov test to measure classwise or (within)-top- $\cdot r$ calibration errors. Our KS error eliminates the shortcomings of the popular ECE measure and its variants while accurately measuring the expected calibration error and provides effective visualizations similar to reliability diagrams. Furthermore, we introduced a simple and effective calibration method based on spline-fitting which does not involve any learning and yet consistently yields the lowest calibration error in the majority of our experiments. We believe, the KS metric would be of wide-spread use to measure classwise calibration and our spline method would inspire learning-free approaches to neural network calibration. We intend to focus on calibration beyond classification problems as future work.
|
| 213 |
+
|
| 214 |
+
# 8 ACKNOWLEDGEMENTS
|
| 215 |
+
|
| 216 |
+
The work is supported by the Australian Research Council Centre of Excellence for Robotic Vision (project number CE140100016). We would also like to thank Google Research and Data61, CSIRO for their support.
|
| 217 |
+
|
| 218 |
+
# REFERENCES
|
| 219 |
+
|
| 220 |
+
Glenn W Brier. Verification of forecasts expressed in terms of probability. Monthly weather review, 78(1):1–3, 1950.
|
| 221 |
+
|
| 222 |
+
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009.
|
| 223 |
+
|
| 224 |
+
Arthur Gretton, Karsten M Borgwardt, Malte J Rasch, Bernhard Schölkopf, and Alexander Smola. A kernel two-sample test. Journal of Machine Learning Research, 2012.
|
| 225 |
+
|
| 226 |
+
Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. On calibration of modern neural networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1321–1330. JMLR. org, 2017.
|
| 227 |
+
|
| 228 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
|
| 229 |
+
|
| 230 |
+
Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4700–4708, 2017.
|
| 231 |
+
|
| 232 |
+
A Kolmogorov. Sulla determinazione empírica di uma legge di distribuzione. 1933.
|
| 233 |
+
|
| 234 |
+
Alex Krizhevsky et al. Learning multiple layers of features from tiny images. 2009.
|
| 235 |
+
|
| 236 |
+
Meelis Kull, Telmo Silva Filho, and Peter Flach. Beta calibration: a well-founded and easily implemented improvement on logistic calibration for binary classifiers. In Artificial Intelligence and Statistics, pp. 623–631, 2017.
|
| 237 |
+
|
| 238 |
+
Meelis Kull, Miquel Perello Nieto, Markus Kängsepp, Telmo Silva Filho, Hao Song, and Peter Flach. Beyond temperature scaling: Obtaining well-calibrated multi-class probabilities with dirichlet calibration. In Advances in Neural Information Processing Systems, pp. 12295–12305, 2019.
|
| 239 |
+
|
| 240 |
+
Ananya Kumar, Percy S Liang, and Tengyu Ma. Verified uncertainty calibration. In Advances in Neural Information Processing Systems, pp. 3787–3798, 2019.
|
| 241 |
+
|
| 242 |
+
Aviral Kumar, Sunita Sarawagi, and Ujjwal Jain. Trainable calibration measures for neural networks from kernel mean embeddings. In International Conference on Machine Learning, pp. 2805–2814, 2018.
|
| 243 |
+
|
| 244 |
+
Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
|
| 245 |
+
|
| 246 |
+
Sky McKinley and Megan Levine. Cubic spline interpolation. College of the Redwoods, 1998.
|
| 247 |
+
|
| 248 |
+
Jishnu Mukhoti, Viveka Kulharia, Amartya Sanyal, Stuart Golodetz, Philip HS Torr, and Puneet K Dokania. Calibrating deep neural networks using focal loss. arXiv preprint arXiv:2002.09437, 2020.
|
| 249 |
+
|
| 250 |
+
Rafael Müller, Simon Kornblith, and Geoffrey E Hinton. When does label smoothing help? In Advances in Neural Information Processing Systems, pp. 4696–4705, 2019.
|
| 251 |
+
|
| 252 |
+
Mahdi Pakdaman Naeini, Gregory Cooper, and Milos Hauskrecht. Obtaining well calibrated probabilities using bayesian binning. In Twenty-Ninth AAAI Conference on Artificial Intelligence, 2015.
|
| 253 |
+
|
| 254 |
+
Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. 2011.
|
| 255 |
+
|
| 256 |
+
Alexandru Niculescu-Mizil and Rich Caruana. Predicting good probabilities with supervised learning. In Proceedings of the 22nd international conference on Machine learning, 2005.
|
| 257 |
+
|
| 258 |
+
Jeremy Nixon, Michael W Dusenberry, Linchuan Zhang, Ghassen Jerfel, and Dustin Tran. Measuring calibration in deep learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 38–41, 2019.
|
| 259 |
+
|
| 260 |
+
Gabriel Pereyra, George Tucker, Jan Chorowski, Łukasz Kaiser, and Geoffrey Hinton. Regularizing neural networks by penalizing confident output distributions. arXiv preprint arXiv:1701.06548, 2017.
|
| 261 |
+
|
| 262 |
+
John Platt et al. Probabilistic outputs for support vector machines and comparisons to regularized likelihood methods. Advances in large margin classifiers, 10(3):61–74, 1999.
|
| 263 |
+
|
| 264 |
+
Seonguk Seo, Paul Hongsuck Seo, and Bohyung Han. Learning for single-shot confidence calibration in deep neural networks through stochastic inferences. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9030–9038, 2019.
|
| 265 |
+
|
| 266 |
+
Nikolai Smirnov. On the estimation of the discrepancy between empirical curves of distribution for two independent samples. 1939.
|
| 267 |
+
|
| 268 |
+
Sunil Thulasidasan, Gopinath Chennupati, Jeff A Bilmes, Tanmoy Bhattacharya, and Sarah Michalak. On mixup training: Improved calibration and predictive uncertainty for deep neural networks. In Advances in Neural Information Processing Systems, pp. 13888–13899, 2019.
|
| 269 |
+
|
| 270 |
+
Juozas Vaicenavicius, David Widmann, Carl Andersson, Fredrik Lindsten, Jacob Roll, and Thomas B Schön. Evaluating model calibration in classification. AISTATS, 2019.
|
| 271 |
+
|
| 272 |
+
David Widmann, Fredrik Lindsten, and Dave Zachariah. Calibration tests in multi-class classification: A unifying framework. In Advances in Neural Information Processing Systems, pp. 12236–12246, 2019.
|
| 273 |
+
|
| 274 |
+
Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. In Proceedings of the IEEE International Conference on Computer Vision, pp. 6023–6032, 2019.
|
| 275 |
+
|
| 276 |
+
Bianca Zadrozny and Charles Elkan. Obtaining calibrated probability estimates from decision trees and naive bayesian classifiers. In Icml, volume 1, pp. 609–616. Citeseer, 2001.
|
| 277 |
+
|
| 278 |
+
Bianca Zadrozny and Charles Elkan. Transforming classifier scores into accurate multiclass probability estimates. In Proceedings of the eighth ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 694–699, 2002.
|
| 279 |
+
|
| 280 |
+
Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016.
|
| 281 |
+
|
| 282 |
+
Hongyi Zhang, Moustapha Cissé, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In 6th International Conference on Learning Representations, ICLR 2018, 2018.
|
| 283 |
+
|
| 284 |
+
Jize Zhang, Bhavya Kailkhura, and T Han. Mix-n-match: Ensemble and compositional methods for uncertainty calibration in deep learning. ICML, 2020.
|
| 285 |
+
|
| 286 |
+
# Appendices
|
| 287 |
+
|
| 288 |
+
Here, we first provide the proof of our main result, discuss more about top- $\cdot r$ calibration and splinefitting, and then turn to additional experiments.
|
| 289 |
+
|
| 290 |
+
# A PROOF OF PROPOSITION 4.1
|
| 291 |
+
|
| 292 |
+
We first restate our proposition below.
|
| 293 |
+
|
| 294 |
+
Proposition A.2. If $h ( t ) = P ( Y = k , f _ { k } ( X ) \leq s ( t ) )$ as in (14) of the main paper where $s ( t )$ is the $t$ -th fractile score. Then $h ^ { \prime } ( t ) = P ( Y = k \mid f _ { k } ( X ) = s ( t ) )$ , where $h ^ { \prime } ( t ) = d h / d t$ .
|
| 295 |
+
|
| 296 |
+
Proof. The proof is using the fundamental relationship between the Probability Distribution Function (PDF) and the Cumulative Distribution Function (CDF) and it is provided here for completeness. Taking derivatives, we see (writing $P ( k )$ instead of $P ( Y = k ) )$ ):
|
| 297 |
+
|
| 298 |
+
$$
|
| 299 |
+
{ \begin{array} { r l } & { h ^ { \prime } ( t ) = P ( k , f _ { k } ( X ) = s ( t ) ) \cdot s ^ { \prime } ( t ) } \\ & { \qquad = P ( k \mid f _ { k } ( X ) = s ( t ) ) \cdot P ( f _ { k } ( X ) = s ( t ) ) \cdot s ^ { \prime } ( t ) } \\ & { \qquad = P ( k \mid f _ { k } ( X ) = s ( t ) ) \cdot { \frac { d } { d t } } { \big ( } P ( f _ { k } ( X ) \leq s ( t ) ) { \big ) } } \\ & { \qquad = P ( k \mid f _ { k } ( X ) = s ( t ) ) \cdot { \frac { d } { d t } } ( t ) } \\ & { \qquad = P ( k \mid f _ { k } ( X ) = s ( t ) ) . } \end{array} }
|
| 300 |
+
$$
|
| 301 |
+
|
| 302 |
+
The proof relies on the equality $P ( f _ { k } ( X ) \leq s ( t ) ) = t .$ . In words: $s ( t )$ is the value that a fraction $t$ of the scores are less than or equal. This equality then says: the probability that a score is less than or equal to the value that a fraction $t$ of the scores lie below, is (obviously) equal to $t$ .
|
| 303 |
+
|
| 304 |
+
# B MORE ON TOP- $r$ AND WITHIN-TOP- $r$ CALIBRATION
|
| 305 |
+
|
| 306 |
+
In the main paper, definitions of top- $_ r$ and within-top- $\cdot r$ calibration are given in equations (4) and (5). Here, a few more details are given of how to calibrate the classifier $f$ for top- $\mathbfit { \nabla } \mathcal { r }$ and within-top- $r$ calibration.
|
| 307 |
+
|
| 308 |
+
The method of calibration using splines described in this paper consists of fitting a spline to the cumulative accuracy, defined as $h _ { i }$ in equation (11) in the main paper. For top- $r$ classification, the method is much the same as for the classification for class $k$ . Equation (11) is replaced by sorting the data according to the $r$ -th top score, then defining
|
| 309 |
+
|
| 310 |
+
$$
|
| 311 |
+
\begin{array} { r } { \tilde { h } _ { 0 } = h _ { 0 } = 0 , \qquad } \\ { h _ { i } = h _ { i - 1 } + { \bf 1 } ( y ^ { ( - r ) } = 1 ) / N , \qquad } \\ { \tilde { h } _ { i } = \tilde { h } _ { i - 1 } + f ^ { ( - r ) } ( { \bf x } _ { i } ) / N , \qquad } \end{array}
|
| 312 |
+
$$
|
| 313 |
+
|
| 314 |
+
where $y ^ { ( - r ) }$ and $f ^ { ( - r ) } ( \mathbf { x } _ { i } )$ are defined in the main paper, equation (3). These sequences may then be used both as a metric for the correct top- $r$ calibration and for calibration using spline-fitting as described.
|
| 315 |
+
|
| 316 |
+
For within-top $\cdot r$ calibration, one sorts the data according to the sum of the top $r$ scores, namely $\textstyle \sum _ { s = 1 } ^ { r } f ^ { ( - s ) } { \bigl ( } { \bar { \mathbf { x } } } _ { i } { \bigr ) }$ , then computes
|
| 317 |
+
|
| 318 |
+
$$
|
| 319 |
+
\begin{array} { c } { { \displaystyle \tilde { h } _ { 0 } = h _ { 0 } = 0 ~ , } } \\ { { \displaystyle h _ { i } = h _ { i - 1 } + { \bf 1 } \biggl ( \sum _ { s = 1 } ^ { r } y ^ { ( - s ) } = 1 \biggr ) \bigg / N ~ , } } \\ { { \displaystyle \tilde { h } _ { i } = \tilde { h } _ { i - 1 } + \sum _ { s = 1 } ^ { r } f ^ { ( - s ) } ( { \bf x } _ { i } ) / N ~ , } } \end{array}
|
| 320 |
+
$$
|
| 321 |
+
|
| 322 |
+
As before, this can be used as a metric, or as the starting point for within-top- $\cdot r$ calibration by our method. Examples of this type of calibration (graphs for uncalibrated networks in fig 7 and fig 9) is given in the graphs provided in fig 8 and fig 10 for within-top-2 predictions and within-top-3 predictions respectively.
|
| 323 |
+
|
| 324 |
+
It is notable that if a classifier is calibrated in the sense of equation (1) in the main paper (also called multi-class-calibrated), then it is also calibrated for top- $\cdot r$ and within-top- $\mathbfit { \nabla } x$ classification.
|
| 325 |
+
|
| 326 |
+
# C LEAST SQUARE SPLINE FITTING
|
| 327 |
+
|
| 328 |
+
Least-square fitting using cubic splines is a known technique. However, details are given here for the convenience of the reader. Our primary reference is (McKinley & Levine (1998)), which we adapt to least-squares fitting. We consider the case where the knot-points are evenly spaced.
|
| 329 |
+
|
| 330 |
+
We change notation from that used in the main paper by denoting points by $( x , y )$ instead of $( u , v )$ . Thus, given knot points $( \hat { x } _ { i } , \hat { y } _ { i } ) _ { k = 1 } ^ { K }$ one is required to fit some points $( x _ { i } , y _ { i } ) _ { i = 1 } ^ { N }$ . Given a point $x$ the corresponding spline value is given by $\boldsymbol { y } = \mathbf { a } ( \boldsymbol { x } ) ^ { \top } \mathbb { M } \hat { \mathbf { y } }$ , where $\hat { \mathbf { y } }$ is the vector of values $\hat { y } _ { i }$ . The form of the vector $\mathbf { a } ( x )$ and the matrix M are given in the following.
|
| 331 |
+
|
| 332 |
+
The form of the matrix $\mathbb { M }$ is derived from equation (25) in McKinley & Levine (1998). Define the matrices
|
| 333 |
+
|
| 334 |
+
$$
|
| 335 |
+
\mathbb { A } = \left[ \begin{array} { c c c c c c } { 4 } & { 1 } & & & & \\ { 1 } & { 4 } & { 1 } & & & \\ & { 1 } & { 4 } & { 1 } & & \\ & & & { \ddots } & & \\ & & & & { 1 } & { 4 } & { 1 } \\ & & & & & { 1 } & { 4 } \end{array} \right] ~ ; ~ \mathbb { B } = \frac { 6 } { h ^ { 2 } } \left[ \begin{array} { c c c c c c } { 1 } & { - 2 } & { 1 } & & & \\ & { 1 } & { - 2 } & { 1 } & & \\ & & & { \ddots } & & \\ & & & & { 1 } & { - 2 } & { 1 } \end{array} \right]
|
| 336 |
+
$$
|
| 337 |
+
|
| 338 |
+
where $h$ is the distance between the knot points. These matrices are of dimensions $K - 2 \times K - 2$ and $K - 2 \times K$ respectively. Finally, let $\mathbb { M }$ be the matrix
|
| 339 |
+
|
| 340 |
+
$$
|
| 341 |
+
\begin{array} { r } { \mathbb { M } = \left[ \begin{array} { l } { { \bf 0 } _ { K } ^ { \phantom { \dagger } } } \\ { { \bf A } ^ { - 1 } { \bf B } } \\ { { \bf 0 } _ { K } ^ { \phantom { \dagger } } } \\ { { \bf T } _ { K \times K } ^ { \phantom { \dagger } } } \end{array} \right] . } \end{array}
|
| 342 |
+
$$
|
| 343 |
+
|
| 344 |
+
Here, ${ \bf 0 } _ { K }$ is a vector of zeros of length $K$ , and $\mathbb { I } _ { K \times K }$ is the identity matrix. The matrix M has dimension $2 K \times K$ .
|
| 345 |
+
|
| 346 |
+
Next, let the point $x$ lie between the knots $j$ and $j + 1$ and let $\boldsymbol { u } = \boldsymbol { x } - \hat { \boldsymbol { x } } _ { j }$ . Then define the vector $\mathbf { v } = \mathbf { a } ( x )$ by values
|
| 347 |
+
|
| 348 |
+
$$
|
| 349 |
+
\begin{array} { c } { { v _ { j } = - u ^ { 3 } / ( 6 h ) + u ^ { 2 } / 2 - h u / 3 \ , } } \\ { { v _ { j + 1 } = u ^ { 3 } / ( 6 h ) - h u / 6 \ , } } \\ { { v _ { j + K } = - u / h + 1 \ , \ } } \\ { { v _ { j + 1 + K } = u / h \ , \ } } \end{array}
|
| 350 |
+
$$
|
| 351 |
+
|
| 352 |
+
with other entries equal to $0$ .
|
| 353 |
+
|
| 354 |
+
<table><tr><td>Dataset</td><td>Image Size</td><td>#class</td><td>Calibration set</td><td>Test set</td></tr><tr><td>CIFAR-10</td><td>32×32</td><td>10</td><td>5000</td><td>10000</td></tr><tr><td>CIFAR-100</td><td>32×32</td><td>100</td><td>5000</td><td>10000</td></tr><tr><td>SVHN</td><td>32×32</td><td>10</td><td>6000</td><td>26032</td></tr><tr><td>ImageNet</td><td>224 × 224</td><td>1000</td><td>25000</td><td>25000</td></tr></table>
|
| 355 |
+
|
| 356 |
+
Table 3: Dataset splits used for all the calibration experiments. Note, “calibration” set is used for spline fitting in our method and calibration for the baseline methods and then different methods are evaluated on “test” set.
|
| 357 |
+
Table 4: Within-top-2 predictions. $K S$ Error $( i n \% )$ within-top-2 prediction (with lowest in bold and second lowest underlined) on various image classification datasets and models with different calibration methods. Note, for this experiment we use $^ { 1 4 }$ knots for spline fitting.
|
| 358 |
+
|
| 359 |
+
<table><tr><td>Dataset</td><td>Model</td><td>Uncalibrated</td><td>Temp.Scaling</td><td>Vector Scaling</td><td>MS-ODIR</td><td>Dir-ODIR</td><td>Ours (Spline)</td></tr><tr><td rowspan="5">CIFAR-10</td><td>Resnet-110</td><td>1.805</td><td>0.097</td><td>0.176</td><td>0.140</td><td>0.195</td><td>0.277</td></tr><tr><td>Resnet-110-SD</td><td>1.423</td><td>0.111</td><td>0.089</td><td>0.082</td><td>0.073</td><td>0.104</td></tr><tr><td>DenseNet-40</td><td>2.256</td><td>0.435</td><td>0.409</td><td>0.395</td><td>0.348</td><td>0.571</td></tr><tr><td>Wide Resnet-32</td><td>1.812</td><td>0.145</td><td>0.105</td><td>0.124</td><td>0.139</td><td>0.537</td></tr><tr><td>Lenet-5</td><td>3.545</td><td>0.832</td><td>0.831</td><td>0.631</td><td>0.804</td><td>0.670</td></tr><tr><td rowspan="5">CIFAR-100</td><td>Resnet-110</td><td>14.270</td><td>0.885</td><td>0.649</td><td>1.425</td><td>1.190</td><td>0.503</td></tr><tr><td>Resnet-110-SD</td><td>12.404</td><td>0.762</td><td>1.311</td><td>2.120</td><td>1.588</td><td>0.684</td></tr><tr><td>DenseNet-40</td><td>15.901</td><td>0.437</td><td>0.368</td><td>2.205</td><td>0.518</td><td>0.724</td></tr><tr><td>Wide Resnet-32</td><td>14.078</td><td>0.414</td><td>0.548</td><td>1.915</td><td>1.099</td><td>1.017</td></tr><tr><td>Lenet-5</td><td>14.713</td><td>0.787</td><td>1.249</td><td>0.643</td><td>2.682</td><td>0.518</td></tr><tr><td rowspan="2">ImageNet</td><td>Densenet-161</td><td>4.266</td><td>1.051</td><td>0.868</td><td>3.372</td><td>2.536</td><td>0.408</td></tr><tr><td>Resnet-152</td><td>4.851</td><td>1.167</td><td>0.776</td><td>4.093</td><td>2.839</td><td>0.247</td></tr><tr><td>SVHN</td><td>Resnet-152-SD</td><td>0.485</td><td>0.388</td><td>0.410</td><td>0.407</td><td>0.388</td><td>0.158</td></tr></table>
|
| 360 |
+
|
| 361 |
+
Then the value of the spline is given by
|
| 362 |
+
|
| 363 |
+
$$
|
| 364 |
+
y = \mathbf { a } ( x ) ^ { \top } \mathbb { M } \hat { \mathbf { y } } ,
|
| 365 |
+
$$
|
| 366 |
+
|
| 367 |
+
as required. This allows us to fit the spline (varying the values of $\hat { \mathbf { y } }$ ) to points $( x _ { i } , y _ { i } )$ by least-squares fit, as described in the main paper.
|
| 368 |
+
|
| 369 |
+
The above description is for so-called natural (linear-runout) splines. For quadratic-runout or cubicrunout splines the only difference is that the first and last rows of matrix A are changed – see McKinley & Levine (1998) for details.
|
| 370 |
+
|
| 371 |
+
As described in the main paper, it is also possible to add linear constraints to this least-squares problem, such as constraints on derivatives of the spline. This results in a linearly-constrained quadratic programming problem.
|
| 372 |
+
|
| 373 |
+
# D ADDITIONAL EXPERIMENTS
|
| 374 |
+
|
| 375 |
+
We first provide the experimental setup for different datasets in Table 3. Note, the calibration set is used for spline fitting in our method and then final evaluation is based on an unseen test set.
|
| 376 |
+
|
| 377 |
+
We also provide comparisons of our method against baseline methods for within-top-2 predictions (equation 5 of the main paper) in Table 4 using KS error. Our method achieves comparable or better results for within-top-2 predictions. It should be noted that the scores for top-3 $( f ^ { ( - 3 ) } ( \mathbf { x } ) )$ or even top-4, top-5, etc., are very close to zero for majority of the samples (due to overconfidence of top-1 predictions). Therefore the calibration error for top- $\cdot r$ with $r > 2$ predictions is very close to zero and comparing different methods with respect to it is of little value. Furthermore, for visual illustration, we provide calibration graphs of top-2 predictions in fig 3 and fig 4 for uncalibrated and calibrated network respectively. Similar graphs for top-3, within-top-2, and within-top-3 predictions are presented in figures 5 – 10.
|
| 378 |
+
|
| 379 |
+
We also provide classification accuracy comparisons for different post-hoc calibration methods against our method if we apply calibration for all top- $1 , 2 , 3 , \ldots , K$ predictions for $K$ -class classification problem in Table 5. We would like to point out that there is negligible change in accuracy between the calibrated networks (using our method) and the uncalibrated ones.
|
| 380 |
+
|
| 381 |
+

|
| 382 |
+
Test Class[-2] | Uncalibrated KS-error = 3.343%, Probability=
|
| 383 |
+
Figure 3: Top-2 predictions, Uncalibrated. Calibration graphs for an uncalibrated DenseNet-40 (Huang et al. (2017)) trained on CIFAR-10 for top-2 class with a $K S$ error of $3 . 3 4 3 \%$ on the test set. Here (a) shows the plot of cumulative score and probability versus the fractile of the test set, $( b )$ shows the same information with the horizontal axis warped so that the cumulative-score graph is a straight line. This is created as scatter plots of cumulative (score, score): blue and (score, probability): orange. If the network is perfectly calibrated, the probability line will be a straight line coincident with the (score, score) line. This shows that the network is substantially overestimating (score) the probability of the computation. (c) and (d) show plots of (non-cumulative) score and probability plotted against fractile, or score. How these plots are produced is described in Section 4 of main paper.
|
| 384 |
+
|
| 385 |
+

|
| 386 |
+
Figure 4: Top-2 predictions, Calibrated. The result of the spline calibration method, on the example given in fig 3 for top-2 calibration. A recalibration function $\gamma : \mathbb { R } \to \mathbb { R }$ is used to adjust the scores, replacing $f _ { k } ( { \bf x } )$ with $\gamma ( f _ { k } ( { \bf x } ) )$ (see Section 4 of main paper). As is seen, the network is now almost perfectly calibrated when tested on the “calibration” set (top row) used to calibrate it. In bottom row, the recalibration function is tested on a further set “test”. It is seen that the result is not perfect, but much better than the original results in fig $3 d$
|
| 387 |
+
|
| 388 |
+

|
| 389 |
+
Figure 5: Top-3 predictions, Uncalibrated. Calibration graphs for an uncalibrated DenseNet-40 trained on CIFAR-10 for top-3 class with a $K S$ error of $1 . 2 7 7 \%$ on the test set. Here (a) shows the plot of cumulative score and probability versus the fractile of the test set, $( b )$ shows the same information with the horizontal axis warped so that the cumulative-score graph is a straight line. (c) and (d) show plots of (non-cumulative) score and probability plotted against fractile, or score.
|
| 390 |
+
|
| 391 |
+

|
| 392 |
+
Calib Class[-3] | Calibrated
|
| 393 |
+
Figure 6: Top-3 predictions, Calibrated. The result of the spline calibration method, on the example given in fig 5 for top-3 calibration. A recalibration function $\gamma : \mathbb { R } \to \mathbb { R }$ is used to adjust the scores, replacing $f _ { k } ( { \bf x } )$ with $\gamma ( f _ { k } ( { \bf x } ) )$ . As is seen, the network is now almost perfectly calibrated when tested on the “calibration” set (top row) used to calibrate it. In bottom row, the recalibration function is tested on a further set “test”. $I t$ is seen that the result is not perfect, but much better than the original results in fig $5 d .$ .
|
| 394 |
+
|
| 395 |
+

|
| 396 |
+
Figure 7: Within-top-2 predictions, Uncalibrated. Calibration graphs for an uncalibrated DenseNet-40 trained on CIFAR-10 for within-top-2 predictions with a $K S$ error of $2 . 2 5 6 \%$ on the test set. Here (a) shows the plot of cumulative score and probability versus the fractile of the test set, $( b )$ shows the same information with the horizontal axis warped so that the cumulative-score graph is a straight line. (c) and (d) show plots of (non-cumulative) score and probability plotted against fractile, or score.
|
| 397 |
+
|
| 398 |
+

|
| 399 |
+
Figure 8: Within-top-2 predictions, Calibrated. The result of the spline calibration method, on the example given in fig 7 for within-top-2 calibration. A recalibration function $\gamma : \mathbb { R } \to \mathbb { R }$ is used to adjust the scores, replacing $f _ { k } ( { \bf x } )$ with $\gamma ( f _ { k } ( { \bf x } ) )$ . As is seen, the network is now almost perfectly calibrated when tested on the “calibration” set (top row) used to calibrate it. In bottom row, the recalibration function is tested on a further set “test”. It is seen that the result is not perfect, but much better than the original results in fig 7d.
|
| 400 |
+
|
| 401 |
+

|
| 402 |
+
Figure 9: Within-top-3 predictions, Uncalibrated. Calibration graphs for an uncalibrated DenseNet-40 trained on CIFAR-10 for within-top-3 predictions with a $K S$ error of $0 . 9 8 3 \%$ on the test set. Here (a) shows the plot of cumulative score and probability versus the fractile of the test set, $( b )$ shows the same information with the horizontal axis warped so that the cumulative-score graph is a straight line. (c) and (d) show plots of (non-cumulative) score and probability plotted against fractile, or score.
|
| 403 |
+
|
| 404 |
+

|
| 405 |
+
Figure 10: Within-top-3 predictions, Calibrated. The result of the spline calibration method, on the example given in fig 9 for within-top-3 calibration. A recalibration function $\gamma : \mathbb { R } \to \mathbb { R }$ is used to adjust the scores, replacing $f _ { k } ( { \bf x } )$ with $\gamma ( f _ { k } ( { \bf x } ) )$ . As is seen, the network is now almost perfectly calibrated when tested on the “calibration” set (top row) used to calibrate it. In bottom row, the recalibration function is tested on a further set “test”. $I t$ is seen that the result is not perfect, but much better than the original results in fig 9d.
|
| 406 |
+
|
| 407 |
+
Table 5: Classification (top-1) accuracy (with highest in bold and second highest underlined) post calibration on various image classification datasets and models with different calibration methods. Note, only a negligible change in accuracy is observed in our method compared to the uncalibrated networks.
|
| 408 |
+
|
| 409 |
+
<table><tr><td>Dataset</td><td>Model</td><td>Uncalibrated</td><td>Temp. Scaling</td><td>Vector Scaling</td><td>MS-ODIR</td><td>Dir-ODIR</td><td>Ours (Spline)</td></tr><tr><td rowspan="5">CIFAR-10</td><td>Resnet-110</td><td>93.56</td><td>93.56</td><td>93.50</td><td>93.53</td><td>93.52</td><td>93.55</td></tr><tr><td>Resnet-110-SD</td><td>94.04</td><td>94.04</td><td>94.04</td><td>94.18</td><td>94.20</td><td>94.05</td></tr><tr><td>DenseNet-40</td><td>92.42</td><td>92.42</td><td>92.50</td><td>92.52</td><td>92.47</td><td>92.31</td></tr><tr><td>Wide Resnet-32</td><td>93.93</td><td>93.93</td><td>94.21</td><td>94.22</td><td>94.22</td><td>93.76</td></tr><tr><td>Lenet-5</td><td>72.74</td><td>72.74</td><td>74.48</td><td>74.44</td><td>74.52</td><td>72.64</td></tr><tr><td rowspan="5">CIFAR-100</td><td>Resnet-110</td><td>71.48</td><td>71.48</td><td>71.58</td><td>71.55</td><td>71.62</td><td>71.50</td></tr><tr><td>Resnet-110-SD</td><td>72.83</td><td>72.83</td><td>73.60</td><td>73.53</td><td>73.14</td><td>72.81</td></tr><tr><td>DenseNet-40</td><td>70.00</td><td>70.00</td><td>70.13</td><td>70.40</td><td>70.24</td><td>70.17</td></tr><tr><td>Wide Resnet-32</td><td>73.82</td><td>73.82</td><td>73.87</td><td>74.05</td><td>73.99</td><td>73.74</td></tr><tr><td>Lenet-5</td><td>33.59</td><td>33.59</td><td>36.42</td><td>37.58</td><td>37.52</td><td>33.55</td></tr><tr><td rowspan="2">ImageNet</td><td>Densenet-161</td><td>77.05</td><td>77.05</td><td>76.72</td><td>77.15</td><td>77.19</td><td>77.05</td></tr><tr><td>Resnet-152</td><td>76.20</td><td>76.20</td><td>75.87</td><td>76.12</td><td>76.24</td><td>76.07</td></tr><tr><td>SVHN</td><td>Resnet-152-SD</td><td>98.15</td><td>98.15</td><td>98.13</td><td>98.12</td><td>98.19</td><td>98.17</td></tr></table>
|
| 410 |
+
|
| 411 |
+
Table 6: ECE for top-1 predictions $( \dot { m } ^ { \mathrm { ~ } } )$ using 25 bins (with lowest in bold and second lowest underlined) on various image classification datasets and models with different calibration methods. Note, for this experiment we use 13 knots for spline fitting.
|
| 412 |
+
|
| 413 |
+
<table><tr><td>Dataset</td><td>Model</td><td>Uncalibrated</td><td>Temp. Scaling</td><td>Vector Scaling</td><td>MS-ODIR</td><td>Dir-ODIR</td><td>Ours (Spline)</td></tr><tr><td rowspan="5">CIFAR-10</td><td>Resnet-110</td><td>4.750</td><td>1.224</td><td>1.092</td><td>1.276</td><td>1.240</td><td>1.011</td></tr><tr><td>Resnet-110-SD</td><td>4.135</td><td>0.777</td><td>0.752</td><td>0.684</td><td>0.859</td><td>0.992</td></tr><tr><td>DenseNet-40</td><td>5.507</td><td>1.006</td><td>1.207</td><td>1.250</td><td>1.268</td><td>1.389</td></tr><tr><td>Wide Resnet-32</td><td>4.512</td><td>0.905</td><td>0.852</td><td>0.941</td><td>0.965</td><td>1.003</td></tr><tr><td>Lenet-5</td><td>5.188</td><td>1.999</td><td>1.462</td><td>1.504</td><td>1.300</td><td>1.333</td></tr><tr><td rowspan="5">CIFAR-100</td><td>Resnet-110</td><td>18.480</td><td>2.428</td><td>2.722</td><td>3.011</td><td>2.806</td><td>1.868</td></tr><tr><td>Resnet-110-SD</td><td>15.861</td><td>1.335</td><td>2.067</td><td>2.277</td><td>2.046</td><td>1.766</td></tr><tr><td>DenseNet-40</td><td>21.159</td><td>1.255</td><td>1.598</td><td>2.855</td><td>1.410</td><td>2.114</td></tr><tr><td>Wide Resnet-32</td><td>18.784</td><td>1.667</td><td>1.785</td><td>2.870</td><td>2.128</td><td>1.672</td></tr><tr><td>Lenet-5</td><td>12.117</td><td>1.535</td><td>1.350</td><td>1.696</td><td>2.159</td><td>1.029</td></tr><tr><td rowspan="2">ImageNet</td><td>Densenet-161</td><td>5.720</td><td>2.059</td><td>2.637</td><td>4.337</td><td>3.989</td><td>0.798</td></tr><tr><td>Resnet-152</td><td>6.545</td><td>2.166</td><td>2.641</td><td>5.377</td><td>4.556</td><td>0.913</td></tr><tr><td>SVHN</td><td>Resnet-152-SD</td><td>0.877</td><td>0.675</td><td>0.630</td><td>0.646</td><td>0.651</td><td>0.832</td></tr></table>
|
| 414 |
+
|
| 415 |
+
For the sake of completeness, we present calibration results using the existing calibration metric, Expected Calibration Error (ECE) (Naeini et al. (2015)) in Table 6. We would like to reiterate the fact that ECE metric is highly dependent on the chosen number of bins and thus does not really reflect true calibration performance. To reflect the efficacy of our proposed calibration method, we also present calibration results using other calibration metrics such as recently proposed binning free measure KDE-ECE (Zhang et al. (2020)), MCE (Maximum Calibration Error) (Guo et al. (2017)) and Brier Scores for top-1 predictions on ImageNet dataset in Table 7. Since, the original formulation of Brier Score for multi-class predictions is highly biased on the accuracy and is approximately similar for all calibration methods, we hereby use top-1 Brier Score which is the mean squared error between top-1 scores and ground truths for the top-1 predictions (1 if the prediction is correct and 0 otherwise). It can be clearly observed that our approach consistently outperforms all the baselines on different calibration measures.
|
| 416 |
+
|
| 417 |
+
Table 7: Calibration Error using other different metrics such as binning-free KDE-ECE (Zhang et al. (2020)), MCE (Maximum Calibration Error) (Guo et al. (2017)) and Brier Score for top-1 predictions (with lowest in bold and and second lowest underlined) on ImageNet dataset with different calibration methods. Note, for this experiment we use 6 knots for spline fitting.
|
| 418 |
+
|
| 419 |
+
<table><tr><td>Calibration Metric</td><td>Model</td><td>Uncalibrated</td><td>Temp. Scaling</td><td>MS-ODIR</td><td>Dir-ODIR</td><td>Ours (Spline)</td></tr><tr><td rowspan="2">KDE-ECE</td><td>Densenet-161</td><td>0.03786</td><td>0.01501</td><td>0.02874</td><td>0.02979</td><td>0.00637</td></tr><tr><td>Resnet-152</td><td>0.04650</td><td>0.01864</td><td>0.03448</td><td>0.03488</td><td>0.00847</td></tr><tr><td rowspan="2">MCE</td><td>Densenet-161</td><td>0.13123</td><td>0.05442</td><td>0.09077</td><td>0.09653</td><td>0.06289</td></tr><tr><td>Resnet-152</td><td>0.15930</td><td>0.09051</td><td>0.11201</td><td>0.09868</td><td>0.04950</td></tr><tr><td rowspan="2">Brier Score</td><td>Densenet-161</td><td>0.12172</td><td>0.11852</td><td>0.11982</td><td>0.11978</td><td>0.11734</td></tr><tr><td>Resnet-152</td><td>0.12626</td><td>0.12145</td><td>0.12406</td><td>0.12308</td><td>0.12034</td></tr></table>
|
parse/train/eQe8DEWNN2W/eQe8DEWNN2W_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/eQe8DEWNN2W/eQe8DEWNN2W_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/eQe8DEWNN2W/eQe8DEWNN2W_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rJXTf9Bxg/rJXTf9Bxg.md
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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augustus Odena∗, Christopher Olah & Jonathon Shlens Google Brain {augustusodena,colah,shlens}@google.com
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Synthesizing high resolution photorealistic images has been a long-standing challenge in machine learning. In this paper we introduce new methods for the improved training of generative adversarial networks (GANs) for image synthesis. We construct a variant of GANs employing label conditioning that results in $1 2 8 \times 1 2 8$ resolution image samples exhibiting global coherence. We expand on previous work for image quality assessment to provide two new analyses for assessing the discriminability and diversity of samples from class-conditional image synthesis models. These analyses demonstrate that high resolution samples provide class information not present in low resolution samples. Across 1000 ImageNet classes, $1 2 8 \times 1 2 8$ samples are more than twice as discriminable as artificially resized $3 2 \times 3 2$ samples. In addition, $8 4 . 7 \%$ of the classes have samples exhibiting diversity comparable to real ImageNet data.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Characterizing the structure of natural images has been a rich research endeavor. Natural images obey intrinsic invariances and exhibit multi-scale statistical structures that have historically been difficult to quantify (Simoncelli & Olshausen, 2001). Recent advances in machine learning offer an opportunity to substantially improve the quality of image models. Improved image models advance the state-of-the-art in image denoising (Balle et al., 2015), compression (Toderici et al., ´ 2016), in-painting (van den Oord et al., 2016a), and super-resolution (Ledig et al., 2016). Better models of natural images also improve performance in semi-supervised learning tasks (Kingma et al., 2014; Springenberg, 2015; Odena, 2016; Salimans et al., 2016) and reinforcement learning problems (Blundell et al., 2016).
|
| 12 |
+
|
| 13 |
+
One method for understanding natural image statistics is to build a system that synthesizes images de novo. There are several promising approaches for building image synthesis models. Variational autoencoders (VAEs) maximize a variational lower bound on the log-likelihood of the training data (Kingma & Welling, 2013; Rezende et al., 2014). VAEs are straightforward to train but introduce potentially restrictive assumptions about the approximate posterior distribution (but see Rezende & Mohamed (2015); Kingma et al. (2016)). Autoregressive models dispense with latent variables and directly model the conditional distribution over pixels (van den Oord et al., 2016a;b). These models produce convincing samples but are costly to sample from and do not provide a latent representation. Invertible density estimators transform latent variables directly using a series of parameterized functions constrained to be invertible (Dinh et al., 2016). This technique allows for exact log-likelihood computation and exact inference, but the invertibility constraint is restrictive.
|
| 14 |
+
|
| 15 |
+
Generative adversarial networks (GANs) offer a distinct and promising approach that focuses on a game-theoretic formulation for training an image synthesis model (Goodfellow et al., 2014). Recent work has shown that GANs can produce convincing image samples on datasets with low variability and low resolution (Denton et al., 2015; Radford et al., 2015). However, GANs struggle to generate globally coherent, high resolution samples - particularly from datasets with high variability. Moreover, a theoretical understanding of GANs is an on-going research topic (Uehara et al., 2016; Mohamed & Lakshminarayanan, 2016).
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: $1 2 8 \times 1 2 8$ resolution samples from 5 classes taken from an AC-GAN trained on the ImageNet dataset. Note that the classes shown have been selected to highlight the success of the model and are not representative. Samples from all ImageNet classes are in the Appendix.
|
| 19 |
+
|
| 20 |
+
In this work we demonstrate that that adding more structure to the GAN latent space along with a specialized cost function results in higher quality samples. We exhibit $1 2 8 \times 1 2 8$ pixel samples from all classes of the ImageNet dataset (Russakovsky et al., 2015) with increased global coherence (Figure 1). Importantly, we demonstrate quantitatively that our high resolution samples are not just naive resizings of low resolution samples. In particular, downsampling our $1 2 8 \times 1 2 8$ samples to $3 2 \times 3 2$ leads to a $50 \%$ decrease in visual discriminability. We also introduce a new metric for assessing the variability across image samples and employ this metric to demonstrate that our synthesized images exhibit diversity comparable to training data for a large fraction $( 8 4 . 7 \% )$ o f ImageNet classes.
|
| 21 |
+
|
| 22 |
+
# 2 BACKGROUND
|
| 23 |
+
|
| 24 |
+
A generative adversarial network (GAN) consists of two neural networks trained in opposition to one another. The generator $G$ takes as input a random noise vector $z$ and outputs an image $X _ { f a k e } =$ $G ( z )$ . The discriminator $D$ receives as input either a training image or a synthesized image from the generator and outputs a probability distribution $P ( S \mid X ) { \bar { = } } D ( { \bar { X } } )$ over possible image sources. The discriminator is trained to maximize the log-likelihood it assigns to the correct source:
|
| 25 |
+
|
| 26 |
+
$$
|
| 27 |
+
L = E [ \log P ( S = r e a l \mid X _ { r e a l } ) ] + E [ \log P ( S = f a k e \mid X _ { f a k e } ) ]
|
| 28 |
+
$$
|
| 29 |
+
|
| 30 |
+
The generator is trained to minimize that same quantity.
|
| 31 |
+
|
| 32 |
+
The basic GAN framework can be augmented using side information. One strategy is to supply both the generator and discriminator with class labels in order to produce class conditional samples (Mirza & Osindero, 2014). Class conditional synthesis can significantly improve the quality of generated samples (van den Oord et al., 2016b). Richer side information such as image captions and bounding box localizations may improve sample quality further (Reed et al., 2016a;b).
|
| 33 |
+
|
| 34 |
+
Instead of feeding side information to the discriminator, one can task the discriminator with reconstructing side information. This is done by modifying the discriminator to contain an auxiliary decoder network1 that outputs the class label for the training data (Odena, 2016; Salimans et al., 2016) or a subset of the latent variables from which the samples are generated (Chen et al., 2016). Forcing a model to perform additional tasks is known to improve performance on the original task (e.g. Sutskever et al. (2014); Szegedy et al. (2014); Ramsundar et al. (2016)). In addition, an auxiliary decoder could leverage pre-trained discriminators (e.g. image classifiers) for further improving the synthesized images (Nguyen et al., 2016). Motivated by these considerations, we introduce a model that combines both strategies for leveraging side information. That is, the model proposed below is class conditional, but with an auxiliary decoder that is tasked with reconstructing class labels.
|
| 35 |
+
|
| 36 |
+

|
| 37 |
+
Figure 2: A comparison of several GAN architectures with the proposed AC-GAN architecture.
|
| 38 |
+
|
| 39 |
+
# 3 AC-GANS
|
| 40 |
+
|
| 41 |
+
We propose a variant of the GAN architecture which we call an auxiliary classifier GAN (or ACGAN - see Figure 2). In the AC-GAN, every generated sample has a corresponding class label, $c \sim$ $p _ { c }$ in addition to the noise $z$ . $G$ uses both to generate images $X _ { f a k e } = G ( c , z )$ . The discriminator gives both a probability distribution over sources and a probability distribution over the class labels, $P ( S \mid X )$ , $P ( C \mid X ) = D ( X )$ . The objective function has two parts: the log-likelihood of the correct source, $L _ { S }$ , and the log-likelihood of the correct class, $L _ { C }$ .
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
\begin{array} { c } { { L _ { S } = E [ \log P ( S = r e a l \mid X _ { r e a l } ) ] + E [ \log P ( S = f a k e \mid X _ { f a k e } ) ] } } \\ { { L _ { C } = E [ \log P ( C = c \mid X _ { r e a l } ) ] + E [ \log P ( C = c \mid X _ { f a k e } ) ] } } \end{array}
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
$D$ is trained to maximize $L _ { S } + L _ { C }$ while $G$ is trained to maximize $L _ { C } - L _ { S }$ . AC-GANs learn a representation for $z$ that is independent of class label (e.g. Kingma et al. (2014)).
|
| 48 |
+
|
| 49 |
+
Early experiments demonstrated that increasing the number of classes trained on while holding the model fixed decreased the quality of the model outputs (Appendix B). The structure of the ACGAN model permits separating large datasets into subsets by class and training a generator and discriminator for each subset. We exploit this property in our experiments to train across the entire ImageNet data set.
|
| 50 |
+
|
| 51 |
+
# 4 RESULTS
|
| 52 |
+
|
| 53 |
+
We train several AC-GAN models on the ImageNet data set (Russakovsky et al., 2015). Broadly speaking, the architecture of the generator $G$ is a series of ‘deconvolution’ layers that transform the noise $z$ and class $c$ into an image (Odena et al., 2016). We train two variants of the model architecture for generating images at $1 2 8 \times 1 2 8$ and $6 4 \times 6 4$ spatial resolutions. The discriminator $D$ is a deep convolutional neural network with a Leaky ReLU nonlinearity (Maas et al., 2013). See Appendix A for more details. As mentioned earlier, we find that reducing the variability introduced by all 1000 classes of ImageNet significantly improves the quality of training. We train 100 AC-GAN models – each on images from just 10 classes – for 50000 mini-batches of size 100.
|
| 54 |
+
|
| 55 |
+
Evaluating the quality of image synthesis models is challenging due to the variety of probabilistic criteria (Theis et al., 2015) and the lack of a perceptually meaningful image similarity metric. Nonetheless, in subsequent sections we attempt to measure the quality of the AC-GAN by building several ad-hoc measures for image sample discriminability and diversity. Our hope is that this work might provide quantitative measures that may be used to aid training and subsequent development of image synthesis models.
|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
Figure 3: Generating high resolution images improves discriminability. Top: Training data and synthesized images from the zebra class resized to a lower spatial resolution (indicated above) and subsequently artificially resized to the original resolution. Inception accuracy is shown below the corresponding images. Bottom Left: Summary of accuracies across varying spatial resolutions for training data and image samples from $6 4 \times 6 4$ and $1 2 8 \times 1 2 8$ models. Error bar measures standard deviation across 10 subsets of images. Dashed lines highlight the accuracy at the output spatial resolution of the model. The training data (clipped) achieves accuracies of $24 \%$ , $54 \%$ , $81 \%$ and $81 \%$ at resolutions of 32, 64, 128, and 256 respectively. Bottom Right: Comparison of accuracy scores at $1 2 8 \times 1 2 8$ and $3 2 \times 3 2$ spatial resolutions $x$ and $_ y$ axis, respectively). Each point represents an ImageNet class. $8 4 . 4 \%$ of the classes are below the line of equality. The green dot corresponds to the zebra class.
|
| 59 |
+
|
| 60 |
+
# 4.1 GENERATING HIGH RESOLUTION IMAGES IMPROVES DISCRIMINABILITY
|
| 61 |
+
|
| 62 |
+
Building a class-conditional image synthesis model necessitates measuring the extent to which synthesized images appear to belong to the intended class. In particular, we would like to know that a high resolution sample is not just a naive resizing of a low resolution sample. Consider a simple experiment: pretend there exists a model that synthesizes $3 2 \times 3 2$ images. One can trivially increase the resolution of synthesized images by performing bilinear interpolation. This would yield higher resolution images, but these images would just be blurry versions of the low resolution images that are not discriminable. Hence, the goal of an image synthesis model is not simply to produce high resolution images, but to produce high resolution images that are more discriminable than low resolution images.
|
| 63 |
+
|
| 64 |
+
To measure discriminability, we feed synthesized images to a pre-trained Inception network (Szegedy et al., 2015) and report the fraction of the samples for which the Inception network assigned the correct label2. We calculate this accuracy measure on a series of real and synthesized images which have had their spatial resolution artificially decreased by bilinear interpolation (Figure 3, top panels). Note that as the spatial resolution is decreased, the accuracy decreases - indicating that resulting images contain less class information (Figure 3, scores below top panels). We summarized this finding across all 1000 ImageNet classes for the ImageNet training data (black), a $1 2 8 \times 1 2 8$ resolution AC-GAN (red) and a $6 4 \times 6 4$ resolution AC-GAN (blue) in Figure 3 (bottom, left). The black curve (clipped) provides an upper-bound on the discriminability of real images.
|
| 65 |
+
|
| 66 |
+
The goal of this analysis is to show that synthesizing higher resolution images leads to increased discriminability. The $1 2 8 \times 1 2 8$ model achieves an accuracy of $1 0 . 1 \% \pm 2 . 0 \%$ versus $7 . 0 \% \pm 2 . 0 \%$ with samples resized to $6 4 \times 6 4$ and $5 . 0 \% \pm 2 . 0 \%$ with samples resized to $3 2 \times 3 2$ . In other words, downsizing the outputs of the AC-GAN to $3 2 \times 3 2$ and $6 4 \times 6 4$ decreases visual discriminability by $50 \%$ and $38 \%$ respectively. Furthermore, $8 4 . 4 \%$ of the ImageNet classes have higher accuracy at $1 2 8 \times 1 2 8$ than at $3 2 \times 3 2$ (Figure 3, bottom left).
|
| 67 |
+
|
| 68 |
+
We performed the same analysis on an AC-GAN trained to $6 4 \times 6 4$ spatial resolution. This model achieved less discriminability than a $1 2 8 \times 1 2 8$ AC-GAN model. Accuracies from the $6 4 \times 6 4$ model plateau at a $6 4 \times 6 4$ spatial resolution consistent with previous results. Finally, the $6 4 \times 6 4$ resolution model achieves less discriminability at 64 spatial resolution than the $1 2 8 \times 1 2 8$ model.
|
| 69 |
+
|
| 70 |
+
# 4.2 MEASURING THE DIVERSITY OF GENERATED IMAGES
|
| 71 |
+
|
| 72 |
+
An image synthesis model is not very interesting if it only outputs one image. Indeed, a well-known failure mode of GANs is that the generator will collapse and output a single prototype that maximally fools the discriminator (Goodfellow et al., 2014; Salimans et al., 2016). A class-conditional model of images is not very interesting if it only outputs one image per class. The Inception accuracy can not measure whether a model has collapsed. A model that simply memorized one example from each ImageNet class would do very well by this metric. Thus, we seek a complementary metric to explicitly evaluate the intra-class diversity of samples generated by the AC-GAN.
|
| 73 |
+
|
| 74 |
+
Several methods exist for quantitatively evaluating image similarity by attempting to predict human perceptual similarity judgements. The most successful of these is multi-scale structural similarity (MS-SSIM) (Wang et al., 2004b; Ma et al., 2016). MS-SSIM is a multi-scale variant of a wellcharacterized perceptual similarity metric that attempts to discount aspects of an image that are not important for human perception (Wang et al., 2004a). MS-SSIM values range between 0.0 and 1.0; higher MS-SSIM values correspond to perceptually more similar images. As a proxy for image diversity, we measure the MS-SSIM scores between randomly chosen pairs of images within a given class. Samples from classes that have higher diversity result in lower mean MS-SSIM scores (Figure 4, left columns); samples from classes with lower diversity have higher mean MS-SSIM scores (Figure 4, right columns). Training images from the ImageNet training data contain a variety of mean MS-SSIM scores across the classes indicating the variability of image diversity in ImageNet classes (Figure 5, left panel, x-axis). Note that the highest mean MS-SSIM score (indicating the least variability) is 0.25 for the training data.
|
| 75 |
+
|
| 76 |
+
We calculate the mean MS-SSIM score for all 1000 ImageNet classes generated by the AC-GAN model. We track this value during training to identify whether the generator has collapsed (Figure 5, right panel, red curve). We also employ this metric to compare the diversity of the training images to the samples from the GAN model after training has completed. Figure 5 (left) plots the mean MS-SSIM values for image samples and training data broken up by class. The blue line is the line of equality. Out of the 1000 classes, we find that 847 have mean sample MS-SSIM scores below that of the maximum MS-SSIM for the training data. In other words, $8 4 . 7 \%$ of classes have sample variability that exceeds that of the least variable class from the ImageNet training data.
|
| 77 |
+
|
| 78 |
+
# .3 GENERATED IMAGES ARE BOTH DIVERSE AND DISCRIMINABLE
|
| 79 |
+
|
| 80 |
+
We have presented quantitative metrics demonstrating that AC-GAN samples may be diverse and discriminable but we have yet to examine how these metrics interact. Figure 6 shows the joint distribution of Inception accuracies and MS-SSIM scores across all classes. Inception accuracy and MS-SSIM are anti-correlated $( r ^ { 2 } = - 0 . 1 6 )$ . In fact, $74 \%$ of the classes with low diversity (MS$\mathrm { S S I M } \geq 0 . 2 5 )$ ) contain Inception accuracies $\leq 1 \%$ . These results suggest that GANs that drop modes are most likely to produce low quality images. Conversely, $78 \%$ of classes with high diversity (MS$\mathrm { S S I M } < 0 . 2 5 )$ ) have Inception accuracies that exceed $1 \%$ . In comparison, the Inception-v3 model achieves $78 . 8 \%$ accuracy on average across all 1000 classes (Szegedy et al., 2015). A fraction of the classes AC-GAN samples reach this level of accuracy. This indicates opportunity for future image synthesis models.
|
| 81 |
+
|
| 82 |
+

|
| 83 |
+
Figure 4: Examples of different MS-SSIM scores. The top and bottom rows contain AC-GAN samples and training data, respectively.
|
| 84 |
+
|
| 85 |
+

|
| 86 |
+
Figure 5: (Left) Comparison of the mean MS-SSIM scores between pairs of images within a given class for ImageNet training data and samples from the GAN (blue line is equality). The horizontal red line marks the maximum MS-SSIM value across all ImageNet classes. Each point is an individual class. The mean standard deviation of scores across the training data and the samples was 0.06 and 0.08 respectively. Scores below the red line $8 4 . 7 \%$ of classes) arise from classes where GAN training largely succeeded. (Right) Intra-class MS-SSIM for selected ImageNet classes throughout a training run. Classes that successfully train tend to have decreasing mean MS-SSIM scores, to a point.
|
| 87 |
+
|
| 88 |
+
# 4.4 COMPARISON TO PREVIOUS RESULTS
|
| 89 |
+
|
| 90 |
+
Previous quantitative results for image synthesis models trained on ImageNet are reported in terms of log-likelihood (van den Oord et al., 2016a;b). Log-likelihood is a coarse and potentially inaccurate measure of sample quality (Theis et al., 2015). Addditionally, log-likelihood is intractable to compute for GANs. Instead we compare with previous state-of-the-art results on CIFAR-10 using a lower spatial resolution $( 3 2 \times 3 2 )$ . Following the procedure in Salimans et al. (2016), we compute the Inception score3 for 50000 samples from an AC-GAN with resolution $( 3 2 \times 3 2 )$ , split into 10 groups at random. We also compute the Inception score for 25000 extra samples, split into 5 groups at random. We select the best model based on the first score and report the second score. Performing a grid search across 27 hyperparameter configurations, we are able to achieve a score of $8 . 2 5 \pm 0 . 0 \bar { 7 }$ compared to state of the art $8 . 0 9 \pm 0 . 0 7$ (Salimans et al., 2016). Moreover, we accomplish this without employing any of the new techniques introduced in that work (i.e. virtual batch normalization, minibatch discrimination, and label smoothing). This provides additional evidence that AC-GANs are effective even without the benefit of class splitting (Appendix B).
|
| 91 |
+
|
| 92 |
+

|
| 93 |
+
Figure 6: Inception accuracy vs MS-SSIM for all 1000 ImageNet classes $( r ^ { 2 } = - 0 . 1 6 )$ . Samples from ACGAN models do not achieve variability at the expense of discriminability.
|
| 94 |
+
|
| 95 |
+
# 4.5 SEARCHING FOR SIGNATURES OF OVERFITTING
|
| 96 |
+
|
| 97 |
+
One possibility that must be investigated is that the AC-GAN has overfit on the training data. As a first check that the network does not memorize the training data, we identify the nearest neighbors of image samples in the training data measured by L1 distance in pixel space (Figure 7). The nearest neighbors from the training data do not resemble the corresponding samples. This provides evidence that the AC-GAN is not merely memorizing the training data.
|
| 98 |
+
|
| 99 |
+

|
| 100 |
+
Figure 7: Nearest neighbor analysis. (Left) Samples from a single ImageNet class. (Right) Corresponding nearest neighbor (L1 distance) in training data for each sample.
|
| 101 |
+
|
| 102 |
+
A more sophisticated method for understanding the degree of overfitting in a model is to explore that model’s latent space by interpolation. In an overfit model one might observe discrete transitions in the interpolated images and regions in latent space that do not correspond to meaningful images (Bengio et al., 2012; Radford et al., 2015; Dinh et al., 2016). Figure 8 (left) highlights interpolations in the latent space between several image samples. Notably, the generator learned that certain combinations of dimensions correspond to semantically meaningful features (e.g. size of the arch, length of a bird’s beak) and there are no discrete transitions or ‘holes’ in the latent space. A second method for exploring the latent space of the AC-GAN is to exploit the structure of the model. The AC-GAN factorizes its representation into class information and a class-independent latent representation $z$ . Sampling the AC-GAN with $z$ fixed but altering the class label corresponds to generating samples with the same ‘style’ across multiple classes (Kingma et al., 2014). Figure 8 (right) shows samples from 8 bird classes. Elements of the same row have the same $z$ . Although the class changes for each column, elements of the global structure (e.g. position, layout, background) are preserved, indicating that AC-GAN can represent certain types of ‘compositionality’.
|
| 103 |
+
|
| 104 |
+

|
| 105 |
+
Figure 8: (Left) Latent space interpolations for selected ImageNet classes. Left-most and right-columns show three pairs of image samples - each pair from a distinct class. Intermediate columns highlight linear interpolations in the latent space between these three pairs of images. (Right) Class-independent information contains global structure about the synthesized image. Each column is a distinct bird class while each row corresponds to a fixed latent code $z$ .
|
| 106 |
+
|
| 107 |
+
# 5 DISCUSSION
|
| 108 |
+
|
| 109 |
+
This work introduced the AC-GAN architecture and demonstrated that AC-GANs can generate globally coherent ImageNet samples. We provided a new quantitative metric for image discriminability as a function of spatial resolution. Using this metric we demonstrated that our samples are more discriminable than those from a model that generates lower resolution images and performs a naive resize operation. We also analyzed the diversity of our samples with respect to the training data and provided some evidence that the image samples from the majority of classes are comparable in diversity to ImageNet training data. We hope that these metrics might provide quantitative measures of sample quality for evaluating and improving future image synthesis models.
|
| 110 |
+
|
| 111 |
+
Several directions exist for building upon this work. Much work needs to be done to improve the visual discriminability of the $1 2 8 \times 1 2 8$ resolution model. Although some synthesized image classes exhibit high Inception accuracies, the average Inception accuracy of the model $( 1 0 . 1 \% \pm 2 . 0 \% )$ is still far below real training data at $81 \%$ . One immediate opportunity for addressing this is to augment the discriminator with a pre-trained model to perform additional supervised tasks (e.g. image segmentation, Ronneberger et al. (2015)). Such techniques might allow for the synthesis of even higher resolution images with global coherence and meaningful visual content.
|
| 112 |
+
|
| 113 |
+
Improving the robustness and reliability of training a GAN is an ongoing research topic. Only $8 4 . 7 \%$ of the ImageNet classes avoided mode dropping and exhibited a diversity comparable to real training data. Training stability was vastly aided by dividing up 1000 ImageNet classes across 100 AC-GAN models. Building a single unified model that could generate diverse samples from all 1000 classes would be an important step forward.
|
| 114 |
+
|
| 115 |
+
Image synthesis models provide a unique opportunity for performing semi-supervised learning. Namely, these models build a rich prior over natural image statistics that can be leveraged by classifiers to improve predictions on datasets for which few labels exist. The AC-GAN model can perform semi-supervised learning by simply ignoring the component of the loss arising from class labels when a label is unavailable for a given training image. Interestingly, prior work suggests that achieving good sample quality might be independent of success in semi-supervised learning (Salimans et al., 2016).
|
| 116 |
+
|
| 117 |
+
# ACKNOWLEDGMENTS
|
| 118 |
+
|
| 119 |
+
We thank the developers of TensorFlow (Abadi et al., 2016). We thank Luke Metz and Vincent Dumoulin for extensive and helpful comments on drafts. We also thank Ben Poole, Sam Schoenholz, Barret Zoph, Mart´ın Abadi, Manjunath Kudlur and Jascha Sohl-Dickstein for helpful discussions.
|
| 120 |
+
|
| 121 |
+
# REFERENCES
|
| 122 |
+
|
| 123 |
+
Abadi et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. CoRR, abs/1603.04467, 2016. URL http://arxiv.org/abs/1603.04467.
|
| 124 |
+
|
| 125 |
+
Johannes Balle, Valero Laparra, and Eero P. Simoncelli. Density modeling of images using a gen- ´ eralized normalization transformation. CoRR, abs/1511.06281, 2015. URL http://arxiv. org/abs/1511.06281.
|
| 126 |
+
|
| 127 |
+
Yoshua Bengio, Gregoire Mesnil, Yann Dauphin, and Salah Rifai. Better mixing via deep represen- ´ tations. CoRR, abs/1207.4404, 2012. URL http://arxiv.org/abs/1207.4404.
|
| 128 |
+
|
| 129 |
+
C. Blundell, B. Uria, A. Pritzel, Y. Li, A. Ruderman, J. Z Leibo, J. Rae, D. Wierstra, and D. Hassabis. Model-Free Episodic Control. ArXiv e-prints, June 2016.
|
| 130 |
+
|
| 131 |
+
X. Chen, Y. Duan, R. Houthooft, J. Schulman, I. Sutskever, and P. Abbeel. InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Nets. ArXiv eprints, June 2016.
|
| 132 |
+
|
| 133 |
+
Emily L. Denton, Soumith Chintala, Arthur Szlam, and Robert Fergus. Deep generative image models using a laplacian pyramid of adversarial networks. CoRR, abs/1506.05751, 2015. URL http://arxiv.org/abs/1506.05751.
|
| 134 |
+
|
| 135 |
+
Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using real NVP. CoRR, abs/1605.08803, 2016. URL http://arxiv.org/abs/1605.08803.
|
| 136 |
+
|
| 137 |
+
J. Donahue, P. Krahenb ¨ uhl, and T. Darrell. Adversarial Feature Learning. ¨ ArXiv e-prints, May 2016.
|
| 138 |
+
|
| 139 |
+
V. Dumoulin, I. Belghazi, B. Poole, A. Lamb, M. Arjovsky, O. Mastropietro, and A. Courville. Adversarially Learned Inference. ArXiv e-prints, June 2016.
|
| 140 |
+
|
| 141 |
+
I. J. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative Adversarial Networks. ArXiv e-prints, June 2014.
|
| 142 |
+
|
| 143 |
+
D. P Kingma and M. Welling. Auto-Encoding Variational Bayes. ArXiv e-prints, December 2013.
|
| 144 |
+
|
| 145 |
+
Diederik P. Kingma, Danilo Jimenez Rezende, Shakir Mohamed, and Max Welling. Semisupervised learning with deep generative models. CoRR, abs/1406.5298, 2014. URL http: //arxiv.org/abs/1406.5298.
|
| 146 |
+
|
| 147 |
+
Diederik P. Kingma, Tim Salimans, and Max Welling. Improving variational inference with inverse autoregressive flow. CoRR, abs/1606.04934, 2016. URL http://arxiv.org/abs/1606. 04934.
|
| 148 |
+
|
| 149 |
+
C. Ledig, L. Theis, F. Huszar, J. Caballero, A. Aitken, A. Tejani, J. Totz, Z. Wang, and W. Shi. Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network. ArXiv e-prints, September 2016.
|
| 150 |
+
|
| 151 |
+
Kede Ma, Qingbo Wu, Zhou Wang, Zhengfang Duanmu, Hongwei Yong, Hongliang Li, and Lei Zhang. Group mad competition - a new methodology to compare objective image quality models. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016.
|
| 152 |
+
|
| 153 |
+
Andrew Maas, Awni Hannun, and Andrew Ng. Rectifier nonlinearities improve neural network acoustic models. In Proceedings of The 33rd International Conference on Machine Learning, 2013.
|
| 154 |
+
|
| 155 |
+
Mehdi Mirza and Simon Osindero. Conditional generative adversarial nets. CoRR, abs/1411.1784, 2014. URL http://arxiv.org/abs/1411.1784.
|
| 156 |
+
|
| 157 |
+
Shakir Mohamed and Balaji Lakshminarayanan. Learning in implicit generative models. arXiv preprint arXiv:1610.03483, 2016.
|
| 158 |
+
|
| 159 |
+
Anh Mai Nguyen, Alexey Dosovitskiy, Jason Yosinski, Thomas Brox, and Jeff Clune. Synthesizing the preferred inputs for neurons in neural networks via deep generator networks. CoRR, abs/1605.09304, 2016. URL http://arxiv.org/abs/1605.09304.
|
| 160 |
+
|
| 161 |
+
A. Odena. Semi-Supervised Learning with Generative Adversarial Networks. ArXiv e-prints, June 2016.
|
| 162 |
+
Augustus Odena, Vincent Dumoulin, and Chris Olah. Deconvolution and checkerboard artifacts. http://distill.pub/2016/deconv-checkerboard/, 2016.
|
| 163 |
+
Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. CoRR, abs/1511.06434, 2015. URL http:// arxiv.org/abs/1511.06434.
|
| 164 |
+
Bharath Ramsundar, Steven Kearnes, Patrick Riley, Dale Webster, David Konerding, and Vijay Pande. Massively multitask networks for drug discovery. In Proceedings of The 33rd International Conference on Machine Learning, 2016.
|
| 165 |
+
Scott Reed, Zeynep Akata, Santosh Mohan, Samuel Tenka, Bernt Schiele, and Honglak Lee. Learning what and where to draw. arXiv preprint arXiv:1610.02454, 2016a.
|
| 166 |
+
Scott Reed, Zeynep Akata, Xinchen Yan, Lajanugen Logeswaran, Bernt Schiele, and Honglak Lee. Generative adversarial text-to-image synthesis. In Proceedings of The 33rd International Conference on Machine Learning, 2016b.
|
| 167 |
+
D. Rezende and S. Mohamed. Variational Inference with Normalizing Flows. ArXiv e-prints, May 2015.
|
| 168 |
+
D. Rezende, S. Mohamed, and D. Wierstra. Stochastic Backpropagation and Approximate Inference in Deep Generative Models. ArXiv e-prints, January 2014.
|
| 169 |
+
Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. CoRR, abs/1505.04597, 2015. URL http://arxiv.org/abs/ 1505.04597.
|
| 170 |
+
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision (IJCV), 115(3):211–252, 2015. doi: 10.1007/s11263-015-0816-y.
|
| 171 |
+
T. Salimans, I. Goodfellow, W. Zaremba, V. Cheung, A. Radford, and X. Chen. Improved Techniques for Training GANs. ArXiv e-prints, June 2016.
|
| 172 |
+
Eero Simoncelli and Bruno Olshausen. Natural image statistics and neural representation. Annual Review of Neuroscience, 24:1193–1216, 2001.
|
| 173 |
+
J. T. Springenberg. Unsupervised and Semi-supervised Learning with Categorical Generative Adversarial Networks. ArXiv e-prints, November 2015.
|
| 174 |
+
Ilya Sutskever, Oriol Vinyals, and Le Quoc V. Sequence to sequence learning with neural networks. In Neural Information Processing Systems, 2014.
|
| 175 |
+
Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott E. Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. CoRR, abs/1409.4842, 2014. URL http://arxiv.org/abs/1409.4842.
|
| 176 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. CoRR, abs/1512.00567, 2015. URL http://arxiv.org/abs/1512.00567.
|
| 177 |
+
L. Theis, A. van den Oord, and M. Bethge. A note on the evaluation of generative models. ArXiv e-prints, November 2015.
|
| 178 |
+
George Toderici, Damien Vincent, Nick Johnston, Sung Jin Hwang, David Minnen, Joel Shor, and Michele Covell. Full resolution image compression with recurrent neural networks. CoRR, abs/1608.05148, 2016. URL http://arxiv.org/abs/1608.05148.
|
| 179 |
+
M. Uehara, I. Sato, M. Suzuki, K. Nakayama, and Y. Matsuo. Generative Adversarial Nets from a Density Ratio Estimation Perspective. ArXiv e-prints, October 2016.
|
| 180 |
+
|
| 181 |
+
Aaron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. ¨ CoRR, abs/1601.06759, 2016a. URL http://arxiv.org/abs/1601.06759.
|
| 182 |
+
|
| 183 |
+
Aaron van den Oord, Nal Kalchbrenner, Oriol Vinyals, Lasse Espeholt, Alex Graves, and Koray ¨ Kavukcuoglu. Conditional image generation with pixelcnn decoders. CoRR, abs/1606.05328, 2016b. URL http://arxiv.org/abs/1606.05328.
|
| 184 |
+
|
| 185 |
+
Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600– 612, 2004a.
|
| 186 |
+
|
| 187 |
+
Zhou Wang, Eero P Simoncelli, and Alan C Bovik. Multiscale structural similarity for image quality assessment. In Signals, Systems and Computers, 2004. Conference Record of the Thirty-Seventh Asilomar Conference on, volume 2, pp. 1398–1402. Ieee, 2004b.
|
| 188 |
+
|
| 189 |
+
A HYPERPARAMETERS
|
| 190 |
+
Table 1: Model hyperparameters. A Soft-Sigmoid refers to an operation over $K + 1$ output units where we apply a Softmax activation to $K$ of the units and a Sigmoid activation to the remaining unit. We also use activation noise in the discriminator as suggested in Salimans et al. (2016).
|
| 191 |
+
|
| 192 |
+
<table><tr><td>Operation</td><td>Kernel</td><td></td><td>Strides</td><td>Feature maps</td><td>BN?</td><td>Dropout</td><td>Nonlinearity</td></tr><tr><td>Gx(z)-110 ×1 ×1 input</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>Linear</td><td>N/A</td><td>N/A</td><td>768</td><td></td><td>0.0</td><td>ReLU</td></tr><tr><td>Transposed Convolution</td><td></td><td>5×5</td><td>2×2</td><td>384</td><td></td><td>0.0</td><td>ReLU</td></tr><tr><td>Transposed Convolution</td><td></td><td>5×5</td><td>2×2</td><td>256</td><td>×√<√</td><td>0.0</td><td>ReLU</td></tr><tr><td>Transposed Convolution</td><td></td><td>5×5</td><td>2×2</td><td>192</td><td></td><td>0.0</td><td>ReLU</td></tr><tr><td>Transposed Convolution</td><td></td><td>5×5</td><td>2×2</td><td>3</td><td>×</td><td>0.0</td><td>Tanh</td></tr><tr><td>D(x)-128 ×3 × 3 input</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>Convolution</td><td>3×3</td><td>2×2</td><td>16</td><td>×</td><td>0.5</td><td>Leaky ReLU</td></tr><tr><td></td><td>Convolution</td><td>3×3</td><td>1×1</td><td>32</td><td>>>>></td><td>0.5</td><td>Leaky ReLU</td></tr><tr><td></td><td>Convolution</td><td>3×3</td><td>2×2</td><td>64</td><td></td><td>0.5</td><td>Leaky ReLU</td></tr><tr><td></td><td>Convolution</td><td>3×3</td><td>1×1</td><td>128</td><td></td><td>0.5</td><td>Leaky ReLU</td></tr><tr><td></td><td>Convolution</td><td>3×3</td><td>2×2</td><td>256</td><td></td><td>0.5</td><td>Leaky ReLU</td></tr><tr><td></td><td>Convolution</td><td>3×3</td><td>1×1</td><td>512</td><td>√</td><td>0.5</td><td>Leaky ReLU</td></tr><tr><td></td><td>Linear</td><td>N/A</td><td>N/A</td><td>11</td><td>×</td><td>0.0</td><td>Soft-Sigmoid</td></tr><tr><td></td><td>Optimizer</td><td>Adam(α = 0.0002,β1 =0.5,β2= 10-3)</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>Batch size 100</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>Iterations</td><td>50000</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td>0.2</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Leaky ReLU slope Weight,bias initialization</td><td></td><td></td><td></td><td>Isotropic gaussian (μ = O,σ = 0.02), Constant(O)</td><td></td><td></td><td></td></tr></table>
|
| 193 |
+
|
| 194 |
+
Class conditional image synthesis affords the opportunity to divide up a dataset based on image label. In our final model we divide 1000 ImageNet classes across 100 AC-GAN models. In this section we describe early experiments that highlight the benefit of cutting down the diversity of classes for training an AC-GAN. We employed an ordering of the labels and divided it into contiguous groups of 10. This ordering can be seen in the following section, where we display samples from all 1000 classes. Two aspects of the split merit discussion: the number of classes per split and the intra-split diversity.
|
| 195 |
+
|
| 196 |
+
We find that training a fixed model on more classes harms the model’s ability to produce compelling samples (Figure 9). Performance on larger splits can be improved by giving the model more parameters. However, using a small split is not sufficient to achieve good performance. We were unable to train a GAN (Goodfellow et al., 2014) to converge reliably even for a split size of 1.
|
| 197 |
+
|
| 198 |
+

|
| 199 |
+
Figure 9: Mean pairwise MS-SSIM values for 10 ImageNet classes plotted against the number of ImageNet classes used during training. We fix everything except the number of classes trained on, using values from 10 to 100. We only report the MS-SSIM values for the first 10 classes to keep the scores comparable. MS-SSIM quickly goes above 0.25 (the red line) as the class count increases. These scores were computed using 9 random restarts per class count, using the same number of training steps for each model.
|
| 200 |
+
|
| 201 |
+
This raises the question of whether it is easier to train a model on a diverse set of classes than on a similar set of classes. We were unable to find conclusive evidence that the selection of classes in a split significantly affects sample quality.
|
| 202 |
+
|
| 203 |
+
C SAMPLES FROM ALL 1000 IMAGENET CLASSES
|
| 204 |
+
|
| 205 |
+
The following is a link to 10 samples from each of the 1000 ImageNet classes: https://goo.gl/photos/8bgHBkCwDEVTXAPaA
|
parse/train/rJXTf9Bxg/rJXTf9Bxg_content_list.json
ADDED
|
@@ -0,0 +1,1052 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "CONDITIONAL IMAGE SYNTHESIS WITH AUXILIARY CLASSIFIER GANS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
99,
|
| 9 |
+
820,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Augustus Odena∗, Christopher Olah & Jonathon Shlens Google Brain {augustusodena,colah,shlens}@google.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
170,
|
| 20 |
+
570,
|
| 21 |
+
212
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
250,
|
| 32 |
+
544,
|
| 33 |
+
263
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Synthesizing high resolution photorealistic images has been a long-standing challenge in machine learning. In this paper we introduce new methods for the improved training of generative adversarial networks (GANs) for image synthesis. We construct a variant of GANs employing label conditioning that results in $1 2 8 \\times 1 2 8$ resolution image samples exhibiting global coherence. We expand on previous work for image quality assessment to provide two new analyses for assessing the discriminability and diversity of samples from class-conditional image synthesis models. These analyses demonstrate that high resolution samples provide class information not present in low resolution samples. Across 1000 ImageNet classes, $1 2 8 \\times 1 2 8$ samples are more than twice as discriminable as artificially resized $3 2 \\times 3 2$ samples. In addition, $8 4 . 7 \\%$ of the classes have samples exhibiting diversity comparable to real ImageNet data. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
281,
|
| 43 |
+
764,
|
| 44 |
+
448
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
178,
|
| 54 |
+
477,
|
| 55 |
+
334,
|
| 56 |
+
492
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Characterizing the structure of natural images has been a rich research endeavor. Natural images obey intrinsic invariances and exhibit multi-scale statistical structures that have historically been difficult to quantify (Simoncelli & Olshausen, 2001). Recent advances in machine learning offer an opportunity to substantially improve the quality of image models. Improved image models advance the state-of-the-art in image denoising (Balle et al., 2015), compression (Toderici et al., ´ 2016), in-painting (van den Oord et al., 2016a), and super-resolution (Ledig et al., 2016). Better models of natural images also improve performance in semi-supervised learning tasks (Kingma et al., 2014; Springenberg, 2015; Odena, 2016; Salimans et al., 2016) and reinforcement learning problems (Blundell et al., 2016). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
510,
|
| 66 |
+
825,
|
| 67 |
+
633
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "One method for understanding natural image statistics is to build a system that synthesizes images de novo. There are several promising approaches for building image synthesis models. Variational autoencoders (VAEs) maximize a variational lower bound on the log-likelihood of the training data (Kingma & Welling, 2013; Rezende et al., 2014). VAEs are straightforward to train but introduce potentially restrictive assumptions about the approximate posterior distribution (but see Rezende & Mohamed (2015); Kingma et al. (2016)). Autoregressive models dispense with latent variables and directly model the conditional distribution over pixels (van den Oord et al., 2016a;b). These models produce convincing samples but are costly to sample from and do not provide a latent representation. Invertible density estimators transform latent variables directly using a series of parameterized functions constrained to be invertible (Dinh et al., 2016). This technique allows for exact log-likelihood computation and exact inference, but the invertibility constraint is restrictive. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
641,
|
| 77 |
+
825,
|
| 78 |
+
794
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Generative adversarial networks (GANs) offer a distinct and promising approach that focuses on a game-theoretic formulation for training an image synthesis model (Goodfellow et al., 2014). Recent work has shown that GANs can produce convincing image samples on datasets with low variability and low resolution (Denton et al., 2015; Radford et al., 2015). However, GANs struggle to generate globally coherent, high resolution samples - particularly from datasets with high variability. Moreover, a theoretical understanding of GANs is an on-going research topic (Uehara et al., 2016; Mohamed & Lakshminarayanan, 2016). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
801,
|
| 88 |
+
823,
|
| 89 |
+
898
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/6c54ff79e795f9c8c06ba6f5fddd92ded1c68470b9b4689df4c6f2fe2425a2ae.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: $1 2 8 \\times 1 2 8$ resolution samples from 5 classes taken from an AC-GAN trained on the ImageNet dataset. Note that the classes shown have been selected to highlight the success of the model and are not representative. Samples from all ImageNet classes are in the Appendix. "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
176,
|
| 102 |
+
99,
|
| 103 |
+
828,
|
| 104 |
+
251
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "In this work we demonstrate that that adding more structure to the GAN latent space along with a specialized cost function results in higher quality samples. We exhibit $1 2 8 \\times 1 2 8$ pixel samples from all classes of the ImageNet dataset (Russakovsky et al., 2015) with increased global coherence (Figure 1). Importantly, we demonstrate quantitatively that our high resolution samples are not just naive resizings of low resolution samples. In particular, downsampling our $1 2 8 \\times 1 2 8$ samples to $3 2 \\times 3 2$ leads to a $50 \\%$ decrease in visual discriminability. We also introduce a new metric for assessing the variability across image samples and employ this metric to demonstrate that our synthesized images exhibit diversity comparable to training data for a large fraction $( 8 4 . 7 \\% )$ o f ImageNet classes. ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
173,
|
| 113 |
+
342,
|
| 114 |
+
825,
|
| 115 |
+
467
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "2 BACKGROUND ",
|
| 122 |
+
"text_level": 1,
|
| 123 |
+
"bbox": [
|
| 124 |
+
174,
|
| 125 |
+
503,
|
| 126 |
+
326,
|
| 127 |
+
518
|
| 128 |
+
],
|
| 129 |
+
"page_idx": 1
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"type": "text",
|
| 133 |
+
"text": "A generative adversarial network (GAN) consists of two neural networks trained in opposition to one another. The generator $G$ takes as input a random noise vector $z$ and outputs an image $X _ { f a k e } =$ $G ( z )$ . The discriminator $D$ receives as input either a training image or a synthesized image from the generator and outputs a probability distribution $P ( S \\mid X ) { \\bar { = } } D ( { \\bar { X } } )$ over possible image sources. The discriminator is trained to maximize the log-likelihood it assigns to the correct source: ",
|
| 134 |
+
"bbox": [
|
| 135 |
+
174,
|
| 136 |
+
544,
|
| 137 |
+
825,
|
| 138 |
+
614
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "equation",
|
| 144 |
+
"img_path": "images/0e733157b57cecbca286d23849be013526af37a77b1dc91272de7615039d934f.jpg",
|
| 145 |
+
"text": "$$\nL = E [ \\log P ( S = r e a l \\mid X _ { r e a l } ) ] + E [ \\log P ( S = f a k e \\mid X _ { f a k e } ) ]\n$$",
|
| 146 |
+
"text_format": "latex",
|
| 147 |
+
"bbox": [
|
| 148 |
+
279,
|
| 149 |
+
635,
|
| 150 |
+
717,
|
| 151 |
+
652
|
| 152 |
+
],
|
| 153 |
+
"page_idx": 1
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"type": "text",
|
| 157 |
+
"text": "The generator is trained to minimize that same quantity. ",
|
| 158 |
+
"bbox": [
|
| 159 |
+
174,
|
| 160 |
+
672,
|
| 161 |
+
540,
|
| 162 |
+
688
|
| 163 |
+
],
|
| 164 |
+
"page_idx": 1
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"type": "text",
|
| 168 |
+
"text": "The basic GAN framework can be augmented using side information. One strategy is to supply both the generator and discriminator with class labels in order to produce class conditional samples (Mirza & Osindero, 2014). Class conditional synthesis can significantly improve the quality of generated samples (van den Oord et al., 2016b). Richer side information such as image captions and bounding box localizations may improve sample quality further (Reed et al., 2016a;b). ",
|
| 169 |
+
"bbox": [
|
| 170 |
+
174,
|
| 171 |
+
694,
|
| 172 |
+
825,
|
| 173 |
+
763
|
| 174 |
+
],
|
| 175 |
+
"page_idx": 1
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"type": "text",
|
| 179 |
+
"text": "Instead of feeding side information to the discriminator, one can task the discriminator with reconstructing side information. This is done by modifying the discriminator to contain an auxiliary decoder network1 that outputs the class label for the training data (Odena, 2016; Salimans et al., 2016) or a subset of the latent variables from which the samples are generated (Chen et al., 2016). Forcing a model to perform additional tasks is known to improve performance on the original task (e.g. Sutskever et al. (2014); Szegedy et al. (2014); Ramsundar et al. (2016)). In addition, an auxiliary decoder could leverage pre-trained discriminators (e.g. image classifiers) for further improving the synthesized images (Nguyen et al., 2016). Motivated by these considerations, we introduce a model that combines both strategies for leveraging side information. That is, the model proposed below is class conditional, but with an auxiliary decoder that is tasked with reconstructing class labels. ",
|
| 180 |
+
"bbox": [
|
| 181 |
+
174,
|
| 182 |
+
770,
|
| 183 |
+
825,
|
| 184 |
+
924
|
| 185 |
+
],
|
| 186 |
+
"page_idx": 1
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"type": "image",
|
| 190 |
+
"img_path": "images/2c8e4b75bbef0abbd48b3621fe4c58406b2eb46d2aa4772586d617c0e61a3b9a.jpg",
|
| 191 |
+
"image_caption": [
|
| 192 |
+
"Figure 2: A comparison of several GAN architectures with the proposed AC-GAN architecture. "
|
| 193 |
+
],
|
| 194 |
+
"image_footnote": [],
|
| 195 |
+
"bbox": [
|
| 196 |
+
173,
|
| 197 |
+
99,
|
| 198 |
+
813,
|
| 199 |
+
303
|
| 200 |
+
],
|
| 201 |
+
"page_idx": 2
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"type": "text",
|
| 205 |
+
"text": "3 AC-GANS ",
|
| 206 |
+
"text_level": 1,
|
| 207 |
+
"bbox": [
|
| 208 |
+
174,
|
| 209 |
+
354,
|
| 210 |
+
297,
|
| 211 |
+
371
|
| 212 |
+
],
|
| 213 |
+
"page_idx": 2
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"type": "text",
|
| 217 |
+
"text": "We propose a variant of the GAN architecture which we call an auxiliary classifier GAN (or ACGAN - see Figure 2). In the AC-GAN, every generated sample has a corresponding class label, $c \\sim$ $p _ { c }$ in addition to the noise $z$ . $G$ uses both to generate images $X _ { f a k e } = G ( c , z )$ . The discriminator gives both a probability distribution over sources and a probability distribution over the class labels, $P ( S \\mid X )$ , $P ( C \\mid X ) = D ( X )$ . The objective function has two parts: the log-likelihood of the correct source, $L _ { S }$ , and the log-likelihood of the correct class, $L _ { C }$ . ",
|
| 218 |
+
"bbox": [
|
| 219 |
+
173,
|
| 220 |
+
386,
|
| 221 |
+
825,
|
| 222 |
+
469
|
| 223 |
+
],
|
| 224 |
+
"page_idx": 2
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"type": "equation",
|
| 228 |
+
"img_path": "images/76c44bfa50511f657e8c1ffd9d163471abd6534d89b554cf115383a790da7208.jpg",
|
| 229 |
+
"text": "$$\n\\begin{array} { c } { { L _ { S } = E [ \\log P ( S = r e a l \\mid X _ { r e a l } ) ] + E [ \\log P ( S = f a k e \\mid X _ { f a k e } ) ] } } \\\\ { { L _ { C } = E [ \\log P ( C = c \\mid X _ { r e a l } ) ] + E [ \\log P ( C = c \\mid X _ { f a k e } ) ] } } \\end{array}\n$$",
|
| 230 |
+
"text_format": "latex",
|
| 231 |
+
"bbox": [
|
| 232 |
+
274,
|
| 233 |
+
488,
|
| 234 |
+
723,
|
| 235 |
+
525
|
| 236 |
+
],
|
| 237 |
+
"page_idx": 2
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"type": "text",
|
| 241 |
+
"text": "$D$ is trained to maximize $L _ { S } + L _ { C }$ while $G$ is trained to maximize $L _ { C } - L _ { S }$ . AC-GANs learn a representation for $z$ that is independent of class label (e.g. Kingma et al. (2014)). ",
|
| 242 |
+
"bbox": [
|
| 243 |
+
173,
|
| 244 |
+
531,
|
| 245 |
+
823,
|
| 246 |
+
560
|
| 247 |
+
],
|
| 248 |
+
"page_idx": 2
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"type": "text",
|
| 252 |
+
"text": "Early experiments demonstrated that increasing the number of classes trained on while holding the model fixed decreased the quality of the model outputs (Appendix B). The structure of the ACGAN model permits separating large datasets into subsets by class and training a generator and discriminator for each subset. We exploit this property in our experiments to train across the entire ImageNet data set. ",
|
| 253 |
+
"bbox": [
|
| 254 |
+
174,
|
| 255 |
+
565,
|
| 256 |
+
825,
|
| 257 |
+
636
|
| 258 |
+
],
|
| 259 |
+
"page_idx": 2
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"type": "text",
|
| 263 |
+
"text": "4 RESULTS ",
|
| 264 |
+
"text_level": 1,
|
| 265 |
+
"bbox": [
|
| 266 |
+
176,
|
| 267 |
+
656,
|
| 268 |
+
281,
|
| 269 |
+
671
|
| 270 |
+
],
|
| 271 |
+
"page_idx": 2
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"type": "text",
|
| 275 |
+
"text": "We train several AC-GAN models on the ImageNet data set (Russakovsky et al., 2015). Broadly speaking, the architecture of the generator $G$ is a series of ‘deconvolution’ layers that transform the noise $z$ and class $c$ into an image (Odena et al., 2016). We train two variants of the model architecture for generating images at $1 2 8 \\times 1 2 8$ and $6 4 \\times 6 4$ spatial resolutions. The discriminator $D$ is a deep convolutional neural network with a Leaky ReLU nonlinearity (Maas et al., 2013). See Appendix A for more details. As mentioned earlier, we find that reducing the variability introduced by all 1000 classes of ImageNet significantly improves the quality of training. We train 100 AC-GAN models – each on images from just 10 classes – for 50000 mini-batches of size 100. ",
|
| 276 |
+
"bbox": [
|
| 277 |
+
173,
|
| 278 |
+
686,
|
| 279 |
+
825,
|
| 280 |
+
797
|
| 281 |
+
],
|
| 282 |
+
"page_idx": 2
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"type": "text",
|
| 286 |
+
"text": "Evaluating the quality of image synthesis models is challenging due to the variety of probabilistic criteria (Theis et al., 2015) and the lack of a perceptually meaningful image similarity metric. Nonetheless, in subsequent sections we attempt to measure the quality of the AC-GAN by building several ad-hoc measures for image sample discriminability and diversity. Our hope is that this work might provide quantitative measures that may be used to aid training and subsequent development of image synthesis models. ",
|
| 287 |
+
"bbox": [
|
| 288 |
+
174,
|
| 289 |
+
804,
|
| 290 |
+
825,
|
| 291 |
+
888
|
| 292 |
+
],
|
| 293 |
+
"page_idx": 2
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"type": "image",
|
| 297 |
+
"img_path": "images/d56f4dbab4265245abb44ef2c0bebe10e50f195c62fca3d365953998b4cd05dc.jpg",
|
| 298 |
+
"image_caption": [
|
| 299 |
+
"Figure 3: Generating high resolution images improves discriminability. Top: Training data and synthesized images from the zebra class resized to a lower spatial resolution (indicated above) and subsequently artificially resized to the original resolution. Inception accuracy is shown below the corresponding images. Bottom Left: Summary of accuracies across varying spatial resolutions for training data and image samples from $6 4 \\times 6 4$ and $1 2 8 \\times 1 2 8$ models. Error bar measures standard deviation across 10 subsets of images. Dashed lines highlight the accuracy at the output spatial resolution of the model. The training data (clipped) achieves accuracies of $24 \\%$ , $54 \\%$ , $81 \\%$ and $81 \\%$ at resolutions of 32, 64, 128, and 256 respectively. Bottom Right: Comparison of accuracy scores at $1 2 8 \\times 1 2 8$ and $3 2 \\times 3 2$ spatial resolutions $x$ and $_ y$ axis, respectively). Each point represents an ImageNet class. $8 4 . 4 \\%$ of the classes are below the line of equality. The green dot corresponds to the zebra class. "
|
| 300 |
+
],
|
| 301 |
+
"image_footnote": [],
|
| 302 |
+
"bbox": [
|
| 303 |
+
187,
|
| 304 |
+
116,
|
| 305 |
+
808,
|
| 306 |
+
482
|
| 307 |
+
],
|
| 308 |
+
"page_idx": 3
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"type": "text",
|
| 312 |
+
"text": "4.1 GENERATING HIGH RESOLUTION IMAGES IMPROVES DISCRIMINABILITY ",
|
| 313 |
+
"text_level": 1,
|
| 314 |
+
"bbox": [
|
| 315 |
+
174,
|
| 316 |
+
661,
|
| 317 |
+
718,
|
| 318 |
+
675
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 3
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "Building a class-conditional image synthesis model necessitates measuring the extent to which synthesized images appear to belong to the intended class. In particular, we would like to know that a high resolution sample is not just a naive resizing of a low resolution sample. Consider a simple experiment: pretend there exists a model that synthesizes $3 2 \\times 3 2$ images. One can trivially increase the resolution of synthesized images by performing bilinear interpolation. This would yield higher resolution images, but these images would just be blurry versions of the low resolution images that are not discriminable. Hence, the goal of an image synthesis model is not simply to produce high resolution images, but to produce high resolution images that are more discriminable than low resolution images. ",
|
| 325 |
+
"bbox": [
|
| 326 |
+
174,
|
| 327 |
+
686,
|
| 328 |
+
825,
|
| 329 |
+
811
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 3
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "To measure discriminability, we feed synthesized images to a pre-trained Inception network (Szegedy et al., 2015) and report the fraction of the samples for which the Inception network assigned the correct label2. We calculate this accuracy measure on a series of real and synthesized images which have had their spatial resolution artificially decreased by bilinear interpolation (Figure 3, top panels). Note that as the spatial resolution is decreased, the accuracy decreases - indicating that resulting images contain less class information (Figure 3, scores below top panels). We summarized this finding across all 1000 ImageNet classes for the ImageNet training data (black), a $1 2 8 \\times 1 2 8$ resolution AC-GAN (red) and a $6 4 \\times 6 4$ resolution AC-GAN (blue) in Figure 3 (bottom, left). The black curve (clipped) provides an upper-bound on the discriminability of real images. ",
|
| 336 |
+
"bbox": [
|
| 337 |
+
174,
|
| 338 |
+
819,
|
| 339 |
+
823,
|
| 340 |
+
875
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 3
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "",
|
| 347 |
+
"bbox": [
|
| 348 |
+
174,
|
| 349 |
+
103,
|
| 350 |
+
825,
|
| 351 |
+
174
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 4
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "text",
|
| 357 |
+
"text": "The goal of this analysis is to show that synthesizing higher resolution images leads to increased discriminability. The $1 2 8 \\times 1 2 8$ model achieves an accuracy of $1 0 . 1 \\% \\pm 2 . 0 \\%$ versus $7 . 0 \\% \\pm 2 . 0 \\%$ with samples resized to $6 4 \\times 6 4$ and $5 . 0 \\% \\pm 2 . 0 \\%$ with samples resized to $3 2 \\times 3 2$ . In other words, downsizing the outputs of the AC-GAN to $3 2 \\times 3 2$ and $6 4 \\times 6 4$ decreases visual discriminability by $50 \\%$ and $38 \\%$ respectively. Furthermore, $8 4 . 4 \\%$ of the ImageNet classes have higher accuracy at $1 2 8 \\times 1 2 8$ than at $3 2 \\times 3 2$ (Figure 3, bottom left). ",
|
| 358 |
+
"bbox": [
|
| 359 |
+
174,
|
| 360 |
+
180,
|
| 361 |
+
823,
|
| 362 |
+
263
|
| 363 |
+
],
|
| 364 |
+
"page_idx": 4
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"type": "text",
|
| 368 |
+
"text": "We performed the same analysis on an AC-GAN trained to $6 4 \\times 6 4$ spatial resolution. This model achieved less discriminability than a $1 2 8 \\times 1 2 8$ AC-GAN model. Accuracies from the $6 4 \\times 6 4$ model plateau at a $6 4 \\times 6 4$ spatial resolution consistent with previous results. Finally, the $6 4 \\times 6 4$ resolution model achieves less discriminability at 64 spatial resolution than the $1 2 8 \\times 1 2 8$ model. ",
|
| 369 |
+
"bbox": [
|
| 370 |
+
174,
|
| 371 |
+
271,
|
| 372 |
+
825,
|
| 373 |
+
327
|
| 374 |
+
],
|
| 375 |
+
"page_idx": 4
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"type": "text",
|
| 379 |
+
"text": "4.2 MEASURING THE DIVERSITY OF GENERATED IMAGES ",
|
| 380 |
+
"text_level": 1,
|
| 381 |
+
"bbox": [
|
| 382 |
+
174,
|
| 383 |
+
344,
|
| 384 |
+
588,
|
| 385 |
+
358
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 4
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "text",
|
| 391 |
+
"text": "An image synthesis model is not very interesting if it only outputs one image. Indeed, a well-known failure mode of GANs is that the generator will collapse and output a single prototype that maximally fools the discriminator (Goodfellow et al., 2014; Salimans et al., 2016). A class-conditional model of images is not very interesting if it only outputs one image per class. The Inception accuracy can not measure whether a model has collapsed. A model that simply memorized one example from each ImageNet class would do very well by this metric. Thus, we seek a complementary metric to explicitly evaluate the intra-class diversity of samples generated by the AC-GAN. ",
|
| 392 |
+
"bbox": [
|
| 393 |
+
174,
|
| 394 |
+
371,
|
| 395 |
+
825,
|
| 396 |
+
468
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 4
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "text",
|
| 402 |
+
"text": "Several methods exist for quantitatively evaluating image similarity by attempting to predict human perceptual similarity judgements. The most successful of these is multi-scale structural similarity (MS-SSIM) (Wang et al., 2004b; Ma et al., 2016). MS-SSIM is a multi-scale variant of a wellcharacterized perceptual similarity metric that attempts to discount aspects of an image that are not important for human perception (Wang et al., 2004a). MS-SSIM values range between 0.0 and 1.0; higher MS-SSIM values correspond to perceptually more similar images. As a proxy for image diversity, we measure the MS-SSIM scores between randomly chosen pairs of images within a given class. Samples from classes that have higher diversity result in lower mean MS-SSIM scores (Figure 4, left columns); samples from classes with lower diversity have higher mean MS-SSIM scores (Figure 4, right columns). Training images from the ImageNet training data contain a variety of mean MS-SSIM scores across the classes indicating the variability of image diversity in ImageNet classes (Figure 5, left panel, x-axis). Note that the highest mean MS-SSIM score (indicating the least variability) is 0.25 for the training data. ",
|
| 403 |
+
"bbox": [
|
| 404 |
+
174,
|
| 405 |
+
474,
|
| 406 |
+
825,
|
| 407 |
+
655
|
| 408 |
+
],
|
| 409 |
+
"page_idx": 4
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "text",
|
| 413 |
+
"text": "We calculate the mean MS-SSIM score for all 1000 ImageNet classes generated by the AC-GAN model. We track this value during training to identify whether the generator has collapsed (Figure 5, right panel, red curve). We also employ this metric to compare the diversity of the training images to the samples from the GAN model after training has completed. Figure 5 (left) plots the mean MS-SSIM values for image samples and training data broken up by class. The blue line is the line of equality. Out of the 1000 classes, we find that 847 have mean sample MS-SSIM scores below that of the maximum MS-SSIM for the training data. In other words, $8 4 . 7 \\%$ of classes have sample variability that exceeds that of the least variable class from the ImageNet training data. ",
|
| 414 |
+
"bbox": [
|
| 415 |
+
174,
|
| 416 |
+
662,
|
| 417 |
+
825,
|
| 418 |
+
773
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 4
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": ".3 GENERATED IMAGES ARE BOTH DIVERSE AND DISCRIMINABLE ",
|
| 425 |
+
"text_level": 1,
|
| 426 |
+
"bbox": [
|
| 427 |
+
184,
|
| 428 |
+
791,
|
| 429 |
+
650,
|
| 430 |
+
806
|
| 431 |
+
],
|
| 432 |
+
"page_idx": 4
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"type": "text",
|
| 436 |
+
"text": "We have presented quantitative metrics demonstrating that AC-GAN samples may be diverse and discriminable but we have yet to examine how these metrics interact. Figure 6 shows the joint distribution of Inception accuracies and MS-SSIM scores across all classes. Inception accuracy and MS-SSIM are anti-correlated $( r ^ { 2 } = - 0 . 1 6 )$ . In fact, $74 \\%$ of the classes with low diversity (MS$\\mathrm { S S I M } \\geq 0 . 2 5 )$ ) contain Inception accuracies $\\leq 1 \\%$ . These results suggest that GANs that drop modes are most likely to produce low quality images. Conversely, $78 \\%$ of classes with high diversity (MS$\\mathrm { S S I M } < 0 . 2 5 )$ ) have Inception accuracies that exceed $1 \\%$ . In comparison, the Inception-v3 model achieves $78 . 8 \\%$ accuracy on average across all 1000 classes (Szegedy et al., 2015). A fraction of the classes AC-GAN samples reach this level of accuracy. This indicates opportunity for future image synthesis models. ",
|
| 437 |
+
"bbox": [
|
| 438 |
+
174,
|
| 439 |
+
818,
|
| 440 |
+
823,
|
| 441 |
+
887
|
| 442 |
+
],
|
| 443 |
+
"page_idx": 4
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"type": "image",
|
| 447 |
+
"img_path": "images/d1c09fc189f805c2f92ce95cea6c018d4411f17fa6c643c606281246a6c2c832.jpg",
|
| 448 |
+
"image_caption": [
|
| 449 |
+
"Figure 4: Examples of different MS-SSIM scores. The top and bottom rows contain AC-GAN samples and training data, respectively. "
|
| 450 |
+
],
|
| 451 |
+
"image_footnote": [],
|
| 452 |
+
"bbox": [
|
| 453 |
+
173,
|
| 454 |
+
99,
|
| 455 |
+
823,
|
| 456 |
+
363
|
| 457 |
+
],
|
| 458 |
+
"page_idx": 5
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"type": "image",
|
| 462 |
+
"img_path": "images/e90290666c512929542137b05c935ee1c50f9d623f412cfcb51c43a09bfbb4d9.jpg",
|
| 463 |
+
"image_caption": [
|
| 464 |
+
"Figure 5: (Left) Comparison of the mean MS-SSIM scores between pairs of images within a given class for ImageNet training data and samples from the GAN (blue line is equality). The horizontal red line marks the maximum MS-SSIM value across all ImageNet classes. Each point is an individual class. The mean standard deviation of scores across the training data and the samples was 0.06 and 0.08 respectively. Scores below the red line $8 4 . 7 \\%$ of classes) arise from classes where GAN training largely succeeded. (Right) Intra-class MS-SSIM for selected ImageNet classes throughout a training run. Classes that successfully train tend to have decreasing mean MS-SSIM scores, to a point. "
|
| 465 |
+
],
|
| 466 |
+
"image_footnote": [],
|
| 467 |
+
"bbox": [
|
| 468 |
+
214,
|
| 469 |
+
430,
|
| 470 |
+
792,
|
| 471 |
+
603
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 5
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "text",
|
| 477 |
+
"text": "",
|
| 478 |
+
"bbox": [
|
| 479 |
+
174,
|
| 480 |
+
734,
|
| 481 |
+
825,
|
| 482 |
+
804
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 5
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "text",
|
| 488 |
+
"text": "4.4 COMPARISON TO PREVIOUS RESULTS ",
|
| 489 |
+
"text_level": 1,
|
| 490 |
+
"bbox": [
|
| 491 |
+
178,
|
| 492 |
+
827,
|
| 493 |
+
475,
|
| 494 |
+
840
|
| 495 |
+
],
|
| 496 |
+
"page_idx": 5
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"type": "text",
|
| 500 |
+
"text": "Previous quantitative results for image synthesis models trained on ImageNet are reported in terms of log-likelihood (van den Oord et al., 2016a;b). Log-likelihood is a coarse and potentially inaccurate measure of sample quality (Theis et al., 2015). Addditionally, log-likelihood is intractable to compute for GANs. Instead we compare with previous state-of-the-art results on CIFAR-10 using a lower spatial resolution $( 3 2 \\times 3 2 )$ . Following the procedure in Salimans et al. (2016), we compute the Inception score3 for 50000 samples from an AC-GAN with resolution $( 3 2 \\times 3 2 )$ , split into 10 groups at random. We also compute the Inception score for 25000 extra samples, split into 5 groups at random. We select the best model based on the first score and report the second score. Performing a grid search across 27 hyperparameter configurations, we are able to achieve a score of $8 . 2 5 \\pm 0 . 0 \\bar { 7 }$ compared to state of the art $8 . 0 9 \\pm 0 . 0 7$ (Salimans et al., 2016). Moreover, we accomplish this without employing any of the new techniques introduced in that work (i.e. virtual batch normalization, minibatch discrimination, and label smoothing). This provides additional evidence that AC-GANs are effective even without the benefit of class splitting (Appendix B). ",
|
| 501 |
+
"bbox": [
|
| 502 |
+
174,
|
| 503 |
+
853,
|
| 504 |
+
823,
|
| 505 |
+
924
|
| 506 |
+
],
|
| 507 |
+
"page_idx": 5
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"type": "image",
|
| 511 |
+
"img_path": "images/c7340ee3cd4c3d0cd70374c54c149138743e0f6739d04163cc3f5eff95c62882.jpg",
|
| 512 |
+
"image_caption": [
|
| 513 |
+
"Figure 6: Inception accuracy vs MS-SSIM for all 1000 ImageNet classes $( r ^ { 2 } = - 0 . 1 6 )$ . Samples from ACGAN models do not achieve variability at the expense of discriminability. "
|
| 514 |
+
],
|
| 515 |
+
"image_footnote": [],
|
| 516 |
+
"bbox": [
|
| 517 |
+
351,
|
| 518 |
+
114,
|
| 519 |
+
630,
|
| 520 |
+
285
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 6
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"text": "",
|
| 527 |
+
"bbox": [
|
| 528 |
+
174,
|
| 529 |
+
338,
|
| 530 |
+
825,
|
| 531 |
+
450
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 6
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"text": "4.5 SEARCHING FOR SIGNATURES OF OVERFITTING ",
|
| 538 |
+
"text_level": 1,
|
| 539 |
+
"bbox": [
|
| 540 |
+
178,
|
| 541 |
+
467,
|
| 542 |
+
542,
|
| 543 |
+
481
|
| 544 |
+
],
|
| 545 |
+
"page_idx": 6
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"type": "text",
|
| 549 |
+
"text": "One possibility that must be investigated is that the AC-GAN has overfit on the training data. As a first check that the network does not memorize the training data, we identify the nearest neighbors of image samples in the training data measured by L1 distance in pixel space (Figure 7). The nearest neighbors from the training data do not resemble the corresponding samples. This provides evidence that the AC-GAN is not merely memorizing the training data. ",
|
| 550 |
+
"bbox": [
|
| 551 |
+
174,
|
| 552 |
+
492,
|
| 553 |
+
825,
|
| 554 |
+
563
|
| 555 |
+
],
|
| 556 |
+
"page_idx": 6
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"type": "image",
|
| 560 |
+
"img_path": "images/120e5224c6b0bd27e21d9da5672a1e4a777b36a22e113a7da9c570cebc7526fc.jpg",
|
| 561 |
+
"image_caption": [
|
| 562 |
+
"Figure 7: Nearest neighbor analysis. (Left) Samples from a single ImageNet class. (Right) Corresponding nearest neighbor (L1 distance) in training data for each sample. "
|
| 563 |
+
],
|
| 564 |
+
"image_footnote": [],
|
| 565 |
+
"bbox": [
|
| 566 |
+
179,
|
| 567 |
+
575,
|
| 568 |
+
820,
|
| 569 |
+
670
|
| 570 |
+
],
|
| 571 |
+
"page_idx": 6
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"type": "text",
|
| 575 |
+
"text": "A more sophisticated method for understanding the degree of overfitting in a model is to explore that model’s latent space by interpolation. In an overfit model one might observe discrete transitions in the interpolated images and regions in latent space that do not correspond to meaningful images (Bengio et al., 2012; Radford et al., 2015; Dinh et al., 2016). Figure 8 (left) highlights interpolations in the latent space between several image samples. Notably, the generator learned that certain combinations of dimensions correspond to semantically meaningful features (e.g. size of the arch, length of a bird’s beak) and there are no discrete transitions or ‘holes’ in the latent space. A second method for exploring the latent space of the AC-GAN is to exploit the structure of the model. The AC-GAN factorizes its representation into class information and a class-independent latent representation $z$ . Sampling the AC-GAN with $z$ fixed but altering the class label corresponds to generating samples with the same ‘style’ across multiple classes (Kingma et al., 2014). Figure 8 (right) shows samples from 8 bird classes. Elements of the same row have the same $z$ . Although the class changes for each column, elements of the global structure (e.g. position, layout, background) are preserved, indicating that AC-GAN can represent certain types of ‘compositionality’. ",
|
| 576 |
+
"bbox": [
|
| 577 |
+
173,
|
| 578 |
+
722,
|
| 579 |
+
825,
|
| 580 |
+
875
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 6
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "",
|
| 587 |
+
"bbox": [
|
| 588 |
+
174,
|
| 589 |
+
103,
|
| 590 |
+
825,
|
| 591 |
+
146
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 7
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "image",
|
| 597 |
+
"img_path": "images/d60141da6931af7de4eef8da76d32149f4da27466edabbb461f0317e02590fe0.jpg",
|
| 598 |
+
"image_caption": [
|
| 599 |
+
"Figure 8: (Left) Latent space interpolations for selected ImageNet classes. Left-most and right-columns show three pairs of image samples - each pair from a distinct class. Intermediate columns highlight linear interpolations in the latent space between these three pairs of images. (Right) Class-independent information contains global structure about the synthesized image. Each column is a distinct bird class while each row corresponds to a fixed latent code $z$ . "
|
| 600 |
+
],
|
| 601 |
+
"image_footnote": [],
|
| 602 |
+
"bbox": [
|
| 603 |
+
178,
|
| 604 |
+
159,
|
| 605 |
+
820,
|
| 606 |
+
252
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 7
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "text",
|
| 612 |
+
"text": "5 DISCUSSION ",
|
| 613 |
+
"text_level": 1,
|
| 614 |
+
"bbox": [
|
| 615 |
+
174,
|
| 616 |
+
356,
|
| 617 |
+
310,
|
| 618 |
+
372
|
| 619 |
+
],
|
| 620 |
+
"page_idx": 7
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"type": "text",
|
| 624 |
+
"text": "This work introduced the AC-GAN architecture and demonstrated that AC-GANs can generate globally coherent ImageNet samples. We provided a new quantitative metric for image discriminability as a function of spatial resolution. Using this metric we demonstrated that our samples are more discriminable than those from a model that generates lower resolution images and performs a naive resize operation. We also analyzed the diversity of our samples with respect to the training data and provided some evidence that the image samples from the majority of classes are comparable in diversity to ImageNet training data. We hope that these metrics might provide quantitative measures of sample quality for evaluating and improving future image synthesis models. ",
|
| 625 |
+
"bbox": [
|
| 626 |
+
173,
|
| 627 |
+
387,
|
| 628 |
+
825,
|
| 629 |
+
500
|
| 630 |
+
],
|
| 631 |
+
"page_idx": 7
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"type": "text",
|
| 635 |
+
"text": "Several directions exist for building upon this work. Much work needs to be done to improve the visual discriminability of the $1 2 8 \\times 1 2 8$ resolution model. Although some synthesized image classes exhibit high Inception accuracies, the average Inception accuracy of the model $( 1 0 . 1 \\% \\pm 2 . 0 \\% )$ is still far below real training data at $81 \\%$ . One immediate opportunity for addressing this is to augment the discriminator with a pre-trained model to perform additional supervised tasks (e.g. image segmentation, Ronneberger et al. (2015)). Such techniques might allow for the synthesis of even higher resolution images with global coherence and meaningful visual content. ",
|
| 636 |
+
"bbox": [
|
| 637 |
+
174,
|
| 638 |
+
506,
|
| 639 |
+
825,
|
| 640 |
+
603
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 7
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "text",
|
| 646 |
+
"text": "Improving the robustness and reliability of training a GAN is an ongoing research topic. Only $8 4 . 7 \\%$ of the ImageNet classes avoided mode dropping and exhibited a diversity comparable to real training data. Training stability was vastly aided by dividing up 1000 ImageNet classes across 100 AC-GAN models. Building a single unified model that could generate diverse samples from all 1000 classes would be an important step forward. ",
|
| 647 |
+
"bbox": [
|
| 648 |
+
174,
|
| 649 |
+
611,
|
| 650 |
+
823,
|
| 651 |
+
679
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 7
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "text",
|
| 657 |
+
"text": "Image synthesis models provide a unique opportunity for performing semi-supervised learning. Namely, these models build a rich prior over natural image statistics that can be leveraged by classifiers to improve predictions on datasets for which few labels exist. The AC-GAN model can perform semi-supervised learning by simply ignoring the component of the loss arising from class labels when a label is unavailable for a given training image. Interestingly, prior work suggests that achieving good sample quality might be independent of success in semi-supervised learning (Salimans et al., 2016). ",
|
| 658 |
+
"bbox": [
|
| 659 |
+
174,
|
| 660 |
+
688,
|
| 661 |
+
825,
|
| 662 |
+
784
|
| 663 |
+
],
|
| 664 |
+
"page_idx": 7
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"type": "text",
|
| 668 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 669 |
+
"text_level": 1,
|
| 670 |
+
"bbox": [
|
| 671 |
+
176,
|
| 672 |
+
801,
|
| 673 |
+
326,
|
| 674 |
+
814
|
| 675 |
+
],
|
| 676 |
+
"page_idx": 7
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"type": "text",
|
| 680 |
+
"text": "We thank the developers of TensorFlow (Abadi et al., 2016). We thank Luke Metz and Vincent Dumoulin for extensive and helpful comments on drafts. We also thank Ben Poole, Sam Schoenholz, Barret Zoph, Mart´ın Abadi, Manjunath Kudlur and Jascha Sohl-Dickstein for helpful discussions. ",
|
| 681 |
+
"bbox": [
|
| 682 |
+
176,
|
| 683 |
+
824,
|
| 684 |
+
825,
|
| 685 |
+
866
|
| 686 |
+
],
|
| 687 |
+
"page_idx": 7
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "text",
|
| 691 |
+
"text": "REFERENCES ",
|
| 692 |
+
"text_level": 1,
|
| 693 |
+
"bbox": [
|
| 694 |
+
174,
|
| 695 |
+
103,
|
| 696 |
+
287,
|
| 697 |
+
118
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 8
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "text",
|
| 703 |
+
"text": "Abadi et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. CoRR, abs/1603.04467, 2016. URL http://arxiv.org/abs/1603.04467. ",
|
| 704 |
+
"bbox": [
|
| 705 |
+
173,
|
| 706 |
+
126,
|
| 707 |
+
823,
|
| 708 |
+
155
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 8
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "text",
|
| 714 |
+
"text": "Johannes Balle, Valero Laparra, and Eero P. Simoncelli. Density modeling of images using a gen- ´ eralized normalization transformation. CoRR, abs/1511.06281, 2015. URL http://arxiv. org/abs/1511.06281. ",
|
| 715 |
+
"bbox": [
|
| 716 |
+
173,
|
| 717 |
+
162,
|
| 718 |
+
820,
|
| 719 |
+
205
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 8
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "text",
|
| 725 |
+
"text": "Yoshua Bengio, Gregoire Mesnil, Yann Dauphin, and Salah Rifai. Better mixing via deep represen- ´ tations. CoRR, abs/1207.4404, 2012. URL http://arxiv.org/abs/1207.4404. ",
|
| 726 |
+
"bbox": [
|
| 727 |
+
171,
|
| 728 |
+
213,
|
| 729 |
+
823,
|
| 730 |
+
243
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 8
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "text",
|
| 736 |
+
"text": "C. Blundell, B. Uria, A. Pritzel, Y. Li, A. Ruderman, J. Z Leibo, J. Rae, D. Wierstra, and D. Hassabis. Model-Free Episodic Control. ArXiv e-prints, June 2016. ",
|
| 737 |
+
"bbox": [
|
| 738 |
+
171,
|
| 739 |
+
251,
|
| 740 |
+
823,
|
| 741 |
+
281
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 8
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "X. Chen, Y. Duan, R. Houthooft, J. Schulman, I. Sutskever, and P. Abbeel. InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Nets. ArXiv eprints, June 2016. ",
|
| 748 |
+
"bbox": [
|
| 749 |
+
173,
|
| 750 |
+
289,
|
| 751 |
+
825,
|
| 752 |
+
332
|
| 753 |
+
],
|
| 754 |
+
"page_idx": 8
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"type": "text",
|
| 758 |
+
"text": "Emily L. Denton, Soumith Chintala, Arthur Szlam, and Robert Fergus. Deep generative image models using a laplacian pyramid of adversarial networks. CoRR, abs/1506.05751, 2015. URL http://arxiv.org/abs/1506.05751. ",
|
| 759 |
+
"bbox": [
|
| 760 |
+
173,
|
| 761 |
+
339,
|
| 762 |
+
823,
|
| 763 |
+
383
|
| 764 |
+
],
|
| 765 |
+
"page_idx": 8
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"type": "text",
|
| 769 |
+
"text": "Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using real NVP. CoRR, abs/1605.08803, 2016. URL http://arxiv.org/abs/1605.08803. ",
|
| 770 |
+
"bbox": [
|
| 771 |
+
169,
|
| 772 |
+
390,
|
| 773 |
+
823,
|
| 774 |
+
421
|
| 775 |
+
],
|
| 776 |
+
"page_idx": 8
|
| 777 |
+
},
|
| 778 |
+
{
|
| 779 |
+
"type": "text",
|
| 780 |
+
"text": "J. Donahue, P. Krahenb ¨ uhl, and T. Darrell. Adversarial Feature Learning. ¨ ArXiv e-prints, May 2016. ",
|
| 781 |
+
"bbox": [
|
| 782 |
+
173,
|
| 783 |
+
428,
|
| 784 |
+
823,
|
| 785 |
+
444
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 8
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "text",
|
| 791 |
+
"text": "V. Dumoulin, I. Belghazi, B. Poole, A. Lamb, M. Arjovsky, O. Mastropietro, and A. Courville. Adversarially Learned Inference. ArXiv e-prints, June 2016. ",
|
| 792 |
+
"bbox": [
|
| 793 |
+
169,
|
| 794 |
+
452,
|
| 795 |
+
821,
|
| 796 |
+
482
|
| 797 |
+
],
|
| 798 |
+
"page_idx": 8
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"type": "text",
|
| 802 |
+
"text": "I. J. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative Adversarial Networks. ArXiv e-prints, June 2014. ",
|
| 803 |
+
"bbox": [
|
| 804 |
+
171,
|
| 805 |
+
489,
|
| 806 |
+
823,
|
| 807 |
+
518
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 8
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "D. P Kingma and M. Welling. Auto-Encoding Variational Bayes. ArXiv e-prints, December 2013. ",
|
| 814 |
+
"bbox": [
|
| 815 |
+
171,
|
| 816 |
+
526,
|
| 817 |
+
815,
|
| 818 |
+
542
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 8
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "text",
|
| 824 |
+
"text": "Diederik P. Kingma, Danilo Jimenez Rezende, Shakir Mohamed, and Max Welling. Semisupervised learning with deep generative models. CoRR, abs/1406.5298, 2014. URL http: //arxiv.org/abs/1406.5298. ",
|
| 825 |
+
"bbox": [
|
| 826 |
+
173,
|
| 827 |
+
550,
|
| 828 |
+
820,
|
| 829 |
+
593
|
| 830 |
+
],
|
| 831 |
+
"page_idx": 8
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"type": "text",
|
| 835 |
+
"text": "Diederik P. Kingma, Tim Salimans, and Max Welling. Improving variational inference with inverse autoregressive flow. CoRR, abs/1606.04934, 2016. URL http://arxiv.org/abs/1606. 04934. ",
|
| 836 |
+
"bbox": [
|
| 837 |
+
173,
|
| 838 |
+
601,
|
| 839 |
+
823,
|
| 840 |
+
643
|
| 841 |
+
],
|
| 842 |
+
"page_idx": 8
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"type": "text",
|
| 846 |
+
"text": "C. Ledig, L. Theis, F. Huszar, J. Caballero, A. Aitken, A. Tejani, J. Totz, Z. Wang, and W. Shi. Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network. ArXiv e-prints, September 2016. ",
|
| 847 |
+
"bbox": [
|
| 848 |
+
176,
|
| 849 |
+
652,
|
| 850 |
+
823,
|
| 851 |
+
695
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 8
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "text",
|
| 857 |
+
"text": "Kede Ma, Qingbo Wu, Zhou Wang, Zhengfang Duanmu, Hongwei Yong, Hongliang Li, and Lei Zhang. Group mad competition - a new methodology to compare objective image quality models. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016. ",
|
| 858 |
+
"bbox": [
|
| 859 |
+
174,
|
| 860 |
+
704,
|
| 861 |
+
823,
|
| 862 |
+
747
|
| 863 |
+
],
|
| 864 |
+
"page_idx": 8
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"type": "text",
|
| 868 |
+
"text": "Andrew Maas, Awni Hannun, and Andrew Ng. Rectifier nonlinearities improve neural network acoustic models. In Proceedings of The 33rd International Conference on Machine Learning, 2013. ",
|
| 869 |
+
"bbox": [
|
| 870 |
+
173,
|
| 871 |
+
755,
|
| 872 |
+
823,
|
| 873 |
+
797
|
| 874 |
+
],
|
| 875 |
+
"page_idx": 8
|
| 876 |
+
},
|
| 877 |
+
{
|
| 878 |
+
"type": "text",
|
| 879 |
+
"text": "Mehdi Mirza and Simon Osindero. Conditional generative adversarial nets. CoRR, abs/1411.1784, 2014. URL http://arxiv.org/abs/1411.1784. ",
|
| 880 |
+
"bbox": [
|
| 881 |
+
173,
|
| 882 |
+
806,
|
| 883 |
+
820,
|
| 884 |
+
837
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 8
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "text",
|
| 890 |
+
"text": "Shakir Mohamed and Balaji Lakshminarayanan. Learning in implicit generative models. arXiv preprint arXiv:1610.03483, 2016. ",
|
| 891 |
+
"bbox": [
|
| 892 |
+
173,
|
| 893 |
+
843,
|
| 894 |
+
821,
|
| 895 |
+
873
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 8
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "Anh Mai Nguyen, Alexey Dosovitskiy, Jason Yosinski, Thomas Brox, and Jeff Clune. Synthesizing the preferred inputs for neurons in neural networks via deep generator networks. CoRR, abs/1605.09304, 2016. URL http://arxiv.org/abs/1605.09304. ",
|
| 902 |
+
"bbox": [
|
| 903 |
+
174,
|
| 904 |
+
882,
|
| 905 |
+
825,
|
| 906 |
+
924
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 8
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "A. Odena. Semi-Supervised Learning with Generative Adversarial Networks. ArXiv e-prints, June 2016. \nAugustus Odena, Vincent Dumoulin, and Chris Olah. Deconvolution and checkerboard artifacts. http://distill.pub/2016/deconv-checkerboard/, 2016. \nAlec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. CoRR, abs/1511.06434, 2015. URL http:// arxiv.org/abs/1511.06434. \nBharath Ramsundar, Steven Kearnes, Patrick Riley, Dale Webster, David Konerding, and Vijay Pande. Massively multitask networks for drug discovery. In Proceedings of The 33rd International Conference on Machine Learning, 2016. \nScott Reed, Zeynep Akata, Santosh Mohan, Samuel Tenka, Bernt Schiele, and Honglak Lee. Learning what and where to draw. arXiv preprint arXiv:1610.02454, 2016a. \nScott Reed, Zeynep Akata, Xinchen Yan, Lajanugen Logeswaran, Bernt Schiele, and Honglak Lee. Generative adversarial text-to-image synthesis. In Proceedings of The 33rd International Conference on Machine Learning, 2016b. \nD. Rezende and S. Mohamed. Variational Inference with Normalizing Flows. ArXiv e-prints, May 2015. \nD. Rezende, S. Mohamed, and D. Wierstra. Stochastic Backpropagation and Approximate Inference in Deep Generative Models. ArXiv e-prints, January 2014. \nOlaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. CoRR, abs/1505.04597, 2015. URL http://arxiv.org/abs/ 1505.04597. \nOlga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision (IJCV), 115(3):211–252, 2015. doi: 10.1007/s11263-015-0816-y. \nT. Salimans, I. Goodfellow, W. Zaremba, V. Cheung, A. Radford, and X. Chen. Improved Techniques for Training GANs. ArXiv e-prints, June 2016. \nEero Simoncelli and Bruno Olshausen. Natural image statistics and neural representation. Annual Review of Neuroscience, 24:1193–1216, 2001. \nJ. T. Springenberg. Unsupervised and Semi-supervised Learning with Categorical Generative Adversarial Networks. ArXiv e-prints, November 2015. \nIlya Sutskever, Oriol Vinyals, and Le Quoc V. Sequence to sequence learning with neural networks. In Neural Information Processing Systems, 2014. \nChristian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott E. Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. CoRR, abs/1409.4842, 2014. URL http://arxiv.org/abs/1409.4842. \nChristian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. CoRR, abs/1512.00567, 2015. URL http://arxiv.org/abs/1512.00567. \nL. Theis, A. van den Oord, and M. Bethge. A note on the evaluation of generative models. ArXiv e-prints, November 2015. \nGeorge Toderici, Damien Vincent, Nick Johnston, Sung Jin Hwang, David Minnen, Joel Shor, and Michele Covell. Full resolution image compression with recurrent neural networks. CoRR, abs/1608.05148, 2016. URL http://arxiv.org/abs/1608.05148. \nM. Uehara, I. Sato, M. Suzuki, K. Nakayama, and Y. Matsuo. Generative Adversarial Nets from a Density Ratio Estimation Perspective. ArXiv e-prints, October 2016. ",
|
| 913 |
+
"bbox": [
|
| 914 |
+
171,
|
| 915 |
+
63,
|
| 916 |
+
826,
|
| 917 |
+
928
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 9
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "Aaron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. ¨ CoRR, abs/1601.06759, 2016a. URL http://arxiv.org/abs/1601.06759. ",
|
| 924 |
+
"bbox": [
|
| 925 |
+
173,
|
| 926 |
+
103,
|
| 927 |
+
823,
|
| 928 |
+
132
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 10
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "Aaron van den Oord, Nal Kalchbrenner, Oriol Vinyals, Lasse Espeholt, Alex Graves, and Koray ¨ Kavukcuoglu. Conditional image generation with pixelcnn decoders. CoRR, abs/1606.05328, 2016b. URL http://arxiv.org/abs/1606.05328. ",
|
| 935 |
+
"bbox": [
|
| 936 |
+
178,
|
| 937 |
+
140,
|
| 938 |
+
823,
|
| 939 |
+
184
|
| 940 |
+
],
|
| 941 |
+
"page_idx": 10
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"type": "text",
|
| 945 |
+
"text": "Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600– 612, 2004a. ",
|
| 946 |
+
"bbox": [
|
| 947 |
+
173,
|
| 948 |
+
193,
|
| 949 |
+
823,
|
| 950 |
+
234
|
| 951 |
+
],
|
| 952 |
+
"page_idx": 10
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"type": "text",
|
| 956 |
+
"text": "Zhou Wang, Eero P Simoncelli, and Alan C Bovik. Multiscale structural similarity for image quality assessment. In Signals, Systems and Computers, 2004. Conference Record of the Thirty-Seventh Asilomar Conference on, volume 2, pp. 1398–1402. Ieee, 2004b. ",
|
| 957 |
+
"bbox": [
|
| 958 |
+
173,
|
| 959 |
+
244,
|
| 960 |
+
826,
|
| 961 |
+
286
|
| 962 |
+
],
|
| 963 |
+
"page_idx": 10
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"type": "table",
|
| 967 |
+
"img_path": "images/685354496823e38a88f1ae1e3bb20ef16b06a5c44678cc2810026c51a91226ee.jpg",
|
| 968 |
+
"table_caption": [
|
| 969 |
+
"A HYPERPARAMETERS ",
|
| 970 |
+
"Table 1: Model hyperparameters. A Soft-Sigmoid refers to an operation over $K + 1$ output units where we apply a Softmax activation to $K$ of the units and a Sigmoid activation to the remaining unit. We also use activation noise in the discriminator as suggested in Salimans et al. (2016). "
|
| 971 |
+
],
|
| 972 |
+
"table_footnote": [],
|
| 973 |
+
"table_body": "<table><tr><td>Operation</td><td>Kernel</td><td></td><td>Strides</td><td>Feature maps</td><td>BN?</td><td>Dropout</td><td>Nonlinearity</td></tr><tr><td>Gx(z)-110 ×1 ×1 input</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>Linear</td><td>N/A</td><td>N/A</td><td>768</td><td></td><td>0.0</td><td>ReLU</td></tr><tr><td>Transposed Convolution</td><td></td><td>5×5</td><td>2×2</td><td>384</td><td></td><td>0.0</td><td>ReLU</td></tr><tr><td>Transposed Convolution</td><td></td><td>5×5</td><td>2×2</td><td>256</td><td>×√<√</td><td>0.0</td><td>ReLU</td></tr><tr><td>Transposed Convolution</td><td></td><td>5×5</td><td>2×2</td><td>192</td><td></td><td>0.0</td><td>ReLU</td></tr><tr><td>Transposed Convolution</td><td></td><td>5×5</td><td>2×2</td><td>3</td><td>×</td><td>0.0</td><td>Tanh</td></tr><tr><td>D(x)-128 ×3 × 3 input</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>Convolution</td><td>3×3</td><td>2×2</td><td>16</td><td>×</td><td>0.5</td><td>Leaky ReLU</td></tr><tr><td></td><td>Convolution</td><td>3×3</td><td>1×1</td><td>32</td><td>>>>></td><td>0.5</td><td>Leaky ReLU</td></tr><tr><td></td><td>Convolution</td><td>3×3</td><td>2×2</td><td>64</td><td></td><td>0.5</td><td>Leaky ReLU</td></tr><tr><td></td><td>Convolution</td><td>3×3</td><td>1×1</td><td>128</td><td></td><td>0.5</td><td>Leaky ReLU</td></tr><tr><td></td><td>Convolution</td><td>3×3</td><td>2×2</td><td>256</td><td></td><td>0.5</td><td>Leaky ReLU</td></tr><tr><td></td><td>Convolution</td><td>3×3</td><td>1×1</td><td>512</td><td>√</td><td>0.5</td><td>Leaky ReLU</td></tr><tr><td></td><td>Linear</td><td>N/A</td><td>N/A</td><td>11</td><td>×</td><td>0.0</td><td>Soft-Sigmoid</td></tr><tr><td></td><td>Optimizer</td><td>Adam(α = 0.0002,β1 =0.5,β2= 10-3)</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>Batch size 100</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>Iterations</td><td>50000</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td>0.2</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Leaky ReLU slope Weight,bias initialization</td><td></td><td></td><td></td><td>Isotropic gaussian (μ = O,σ = 0.02), Constant(O)</td><td></td><td></td><td></td></tr></table>",
|
| 974 |
+
"bbox": [
|
| 975 |
+
173,
|
| 976 |
+
135,
|
| 977 |
+
820,
|
| 978 |
+
431
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 11
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "Class conditional image synthesis affords the opportunity to divide up a dataset based on image label. In our final model we divide 1000 ImageNet classes across 100 AC-GAN models. In this section we describe early experiments that highlight the benefit of cutting down the diversity of classes for training an AC-GAN. We employed an ordering of the labels and divided it into contiguous groups of 10. This ordering can be seen in the following section, where we display samples from all 1000 classes. Two aspects of the split merit discussion: the number of classes per split and the intra-split diversity. ",
|
| 985 |
+
"bbox": [
|
| 986 |
+
173,
|
| 987 |
+
133,
|
| 988 |
+
825,
|
| 989 |
+
231
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 12
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "We find that training a fixed model on more classes harms the model’s ability to produce compelling samples (Figure 9). Performance on larger splits can be improved by giving the model more parameters. However, using a small split is not sufficient to achieve good performance. We were unable to train a GAN (Goodfellow et al., 2014) to converge reliably even for a split size of 1. ",
|
| 996 |
+
"bbox": [
|
| 997 |
+
174,
|
| 998 |
+
238,
|
| 999 |
+
825,
|
| 1000 |
+
294
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 12
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "image",
|
| 1006 |
+
"img_path": "images/e3069887d03fd9025f36454200575158f52bf8d153f430c0e8cf8b2c2c82fe6d.jpg",
|
| 1007 |
+
"image_caption": [
|
| 1008 |
+
"Figure 9: Mean pairwise MS-SSIM values for 10 ImageNet classes plotted against the number of ImageNet classes used during training. We fix everything except the number of classes trained on, using values from 10 to 100. We only report the MS-SSIM values for the first 10 classes to keep the scores comparable. MS-SSIM quickly goes above 0.25 (the red line) as the class count increases. These scores were computed using 9 random restarts per class count, using the same number of training steps for each model. "
|
| 1009 |
+
],
|
| 1010 |
+
"image_footnote": [],
|
| 1011 |
+
"bbox": [
|
| 1012 |
+
348,
|
| 1013 |
+
321,
|
| 1014 |
+
630,
|
| 1015 |
+
494
|
| 1016 |
+
],
|
| 1017 |
+
"page_idx": 12
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"type": "text",
|
| 1021 |
+
"text": "This raises the question of whether it is easier to train a model on a diverse set of classes than on a similar set of classes. We were unable to find conclusive evidence that the selection of classes in a split significantly affects sample quality. ",
|
| 1022 |
+
"bbox": [
|
| 1023 |
+
174,
|
| 1024 |
+
587,
|
| 1025 |
+
825,
|
| 1026 |
+
628
|
| 1027 |
+
],
|
| 1028 |
+
"page_idx": 12
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"type": "text",
|
| 1032 |
+
"text": "C SAMPLES FROM ALL 1000 IMAGENET CLASSES ",
|
| 1033 |
+
"bbox": [
|
| 1034 |
+
173,
|
| 1035 |
+
102,
|
| 1036 |
+
599,
|
| 1037 |
+
118
|
| 1038 |
+
],
|
| 1039 |
+
"page_idx": 13
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"type": "text",
|
| 1043 |
+
"text": "The following is a link to 10 samples from each of the 1000 ImageNet classes: https://goo.gl/photos/8bgHBkCwDEVTXAPaA ",
|
| 1044 |
+
"bbox": [
|
| 1045 |
+
173,
|
| 1046 |
+
133,
|
| 1047 |
+
823,
|
| 1048 |
+
161
|
| 1049 |
+
],
|
| 1050 |
+
"page_idx": 13
|
| 1051 |
+
}
|
| 1052 |
+
]
|
parse/train/rJXTf9Bxg/rJXTf9Bxg_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rJXTf9Bxg/rJXTf9Bxg_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|