Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/--rcOeCKRh/--rcOeCKRh.md +236 -0
- parse/train/--rcOeCKRh/--rcOeCKRh_content_list.json +1303 -0
- parse/train/--rcOeCKRh/--rcOeCKRh_middle.json +0 -0
- parse/train/--rcOeCKRh/--rcOeCKRh_model.json +0 -0
- parse/train/Bki4EfWCb/Bki4EfWCb.md +366 -0
- parse/train/Bki4EfWCb/Bki4EfWCb_middle.json +0 -0
- parse/train/Bki4EfWCb/Bki4EfWCb_model.json +0 -0
- parse/train/CR1XOQ0UTh-/CR1XOQ0UTh-.md +0 -0
- parse/train/CR1XOQ0UTh-/CR1XOQ0UTh-_content_list.json +0 -0
- parse/train/CR1XOQ0UTh-/CR1XOQ0UTh-_middle.json +0 -0
- parse/train/CR1XOQ0UTh-/CR1XOQ0UTh-_model.json +0 -0
- parse/train/HJxYwiC5tm/HJxYwiC5tm.md +242 -0
- parse/train/HJxYwiC5tm/HJxYwiC5tm_content_list.json +1362 -0
- parse/train/HJxYwiC5tm/HJxYwiC5tm_middle.json +0 -0
- parse/train/HJxYwiC5tm/HJxYwiC5tm_model.json +0 -0
- parse/train/rk6qdGgCZ/rk6qdGgCZ.md +252 -0
- parse/train/rk6qdGgCZ/rk6qdGgCZ_content_list.json +1213 -0
- parse/train/rk6qdGgCZ/rk6qdGgCZ_middle.json +0 -0
- parse/train/rk6qdGgCZ/rk6qdGgCZ_model.json +0 -0
- parse/train/x2TMPhseWAW/x2TMPhseWAW.md +427 -0
parse/train/--rcOeCKRh/--rcOeCKRh.md
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CROSS-SUPERVISED OBJECT DETECTION
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
After learning a new object category from image-level annotations (with no object bounding boxes), humans are remarkably good at precisely localizing those objects. However, building good object localizers (i.e., detectors) currently requires expensive instance-level annotations. While some work has been done on learning detectors from weakly labeled samples (with only class labels), these detectors do poorly at localization. In this work, we show how to build better object detectors from weakly labeled images of new categories by leveraging knowledge learned from fully labeled base categories. We call this learning paradigm cross-supervised object detection. While earlier works investigated this paradigm, they did not apply it to realistic complex images (e.g., COCO), and their performance was poor. We propose a unified framework that combines a detection head trained from instance-level annotations and a recognition head learned from image-level annotations, together with a spatial correlation module that bridges the gap between detection and recognition. These contributions enable us to better detect novel objects with image-level annotations in complex multi-object scenes such as the COCO dataset.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Deep architectures have achieved great success in many computer vision tasks including object recognition and the closely related problem of object detection. Modern detectors, such as the Faster RCNN (Ren et al., 2015), YOLO (Redmon et al., 2016), and RetinaNet (Lin et al., 2017), use the same network backbone as popular recognition models. However, even with the same backbone architectures, detection and recognition models require different types of supervision. A good detector relies heavily on precise bounding boxes and labels for each instance (we shall refer to these as instance-level annotations), whereas a recognition model needs only image-level labels. Needless to say, it is more time consuming and expensive to obtain high quality bounding box annotations than class labels. As a result, current detectors are limited to a small set of categories relative to their object recognition counterparts. To address this limitation, it is natural to ask, “Is it possible to learn detectors with only class labels?” This problem is commonly referred to as weakly supervised object detection (WSOD).
|
| 12 |
+
|
| 13 |
+
Early WSOD work (Hoffman et al., 2014) showed fair performance by directly applying recognition networks to object detection. More recently, researchers have used multiple instance learning methods (Dietterich et al., 1997) to recast WSOD as a multi-label classification problem (Bilen & Vedaldi, 2016). However, these weakly supervised detectors perform poorly at localization. Most WSOD experiments have been conducted on the ILSVRC (Russakovsky et al., 2015) data set, in which images have only a single object, or on the PASCAL VOC (Everingham et al., 2010) data set, which has only 20 categories. The simplicity of these data sets limits the number and types of distractors in an image, making localization substantially easier. Learning from only class labels, it is challenging to detect objects at different scales in an image that contains many distractors. In particular, as shown in our experiments, weakly supervised object detectors do not work well in complex multi-object scenes, such as the COCO dataset (Lin et al., 2014).
|
| 14 |
+
|
| 15 |
+
To address this challenge, we focus on a form of learning in which the localization of classes with only object labels (weakly labeled classes) can benefit from other classes that have ground truth bounding boxes (fully labeled classes). We refer to this interesting learning paradigm as crosssupervised object detection (CSOD). While several works (Hoffman et al., 2014; Tang et al., 2016;
|
| 16 |
+
|
| 17 |
+
Yang et al., 2019a; Redmon & Farhadi, 2017) have explored this problem before, they still have the same limitation as the WSOD work we mentioned above. Those cross-supervised object detectors work under simplified scenarios (e.g., ILSVRC data set) where images contain single objects and are object-centered. They struggle to learn under more complex and realistic scenarios, where there are multiple objects from potentially very different classes, and objects could be small and appear anywhere in the images. In this work, we show that by doing multi-task learning on both weaklysupervised base classes and fully-supervised novel classes, our model is able to learn a good detector under the CSOD setting.
|
| 18 |
+
|
| 19 |
+
More formally, we define CSOD as follows. At training time, we are given 1) images contain objects from both base and novel classes, 2) both class labels and ground truth bounding boxes for base objects, and 3) only class labels for novel objects. Our goal is to detect novel objects. In CSOD, base classes and novel classes are disjoint. Thus, it can be seen as performing fullysupervised detection on the base classes and weakly supervised detection on the novel classes. It has similarities to both transfer learning and semi-supervised learning, since it transfer knowledge from base class to novel class and have more information about some instances than other instances. However, CSOD represents a distinct and novel paradigm for learning.
|
| 20 |
+
|
| 21 |
+
The current weakly-supervised method has several drawbacks to learn from a multi objects image. As shown in Fig. 1, a weakly supervised object detector tends to detect only the most discriminating part of novel objects instead of the whole object. Notice how only the head of the person, and not the whole body, is detected. Another issue is that the localizer for one object (e.g., the horse) may be confused by the occurrence of another object, such as the person on the horse. This example illustrates the gap between detection and recognition: without ground truth bounding boxes, the detector acts like a standard recognition model – focusing on discriminating rather than detecting.
|
| 22 |
+
|
| 23 |
+
In this paper, we explore two major mechanisms for improving on this. Our first mechanism is unifying detection and recognition. Using the same network backbone architecture, recognition and detection can be seen as image-level classification and region-level classification respectively, suggesting a strong relation between them. In particular, it suggests a shared training framework in which the same backbone is used with different heads for detection and recognition. Thus, we combine a detection head learned from ground truth bounding boxes, and a recognition head learned in a weakly supervised fashion from class labels. Unlike a traditional recognition head, our recognition head produces a class score for multiple proposals and is capable of detecting objects. The second mechanism is learning a spatial correlation module to reduce the gap between detection and recognition. It takes several high-confidence bounding boxes produced by the recognition head as input, and learns to regress ground truth bounding boxes. By combining these mechanisms together, our model outperforms all previous models when all novel objects are weakly labeled.
|
| 24 |
+
|
| 25 |
+
In summary, our contributions are three-fold. First, we define a new task—cross-supervised object detection, which enables us to leverage knowledge from fully labeled base categories to help learn a robust detector from novel object class labels only. Second, we propose a unified framework in which two heads are learned from class labels and detection labels respectively, along with a spatial correlation module bridging the gap between recognition and detection. Third, we significantly outperform existing methods (Zhang et al. (2018a); Tang et al. (2017; 2018)) on PASCAL VOC and COCO, suggesting that CSOD could be a promising approach for expanding object detection to a much larger number of categories.
|
| 26 |
+
|
| 27 |
+
# 2 RELATED WORK
|
| 28 |
+
|
| 29 |
+
Weakly supervised object detection. WSOD (Kosugi et al. (2019); Zeng et al. (2019); Yang et al. (2019b); Wan et al. (2019); Arun et al. (2019); Wan et al. (2018); Zhang et al. (2018b); Ren et al. (2020); Zhang et al. (2018c); Li et al. (2019); Gao et al. (2019b); Kosugi et al. (2019)) attempts to learn a detector with only image category labels. Most of these methods adopt the idea of Multiple Instance Learning (Dietterich et al. (1997)) to recast WSOD as a multi-label classification task. Bilen & Vedaldi (2016) propose an end-to-end network by modifying a classifier to operate at the level of image regions, serving as a region selector and a classifier simultaneously. Tang et al. (2017) and Tang et al. (2018) find that several iterations of online refinement based on the outputs of previous iterations boosts performance. Wei et al. (2018) and Diba et al. (2017) use semantic segmentation based on class activation maps (Zhou et al. (2016)) to help generate tight bounding boxes. However,
|
| 30 |
+
|
| 31 |
+

|
| 32 |
+
Figure 1: A comparison between weakly supervised object detector and our detector. Weakly supervised object detector only detects the most discriminating part of an object, e.g., focus on head of a person when detecting a person; or being distracted by co-occurring instances, e.g., distracted by the person on the horse when detecting a horse. Our detector can address these issues.
|
| 33 |
+
|
| 34 |
+
WSOD methods tend to focus on the most discriminating part of an object and are prone to distractions from co-occurring objects. Detecting a part of the object or distractors represents convergence to a local optimum. Thus, their performance depends heavily on initialization. In comparison, our proposed cross-supervised object detector alleviates the issue of getting trapped in a local optimum by leveraging knowledge learned from fully labeled base categories.
|
| 35 |
+
|
| 36 |
+
Cross-supervised object detection. There are several previous works using both image-level and instance-level annotations. Kuen et al. (2019) learned a parameter transferring function between a classifier and a detector, enabling an image-based classification network to be adapted to a regionbased classification network. Hoffman et al. (2014) and Tang et al. (2016) propose methods of adaptation for knowledge transfer from classification features to detection features. Uijlings et al. (2018) use a proposal generator trained on base classes to transfer knowledge by leveraging a MIL framework, organized in a semantic hierarchy. Hoffman et al. (2015) design a three-step framework to learn a feature representation from weakly supervised classes and strongly supervised classes jointly. However, these methods can only perform object localization in single object scenes such as ILSVRC, whereas our method can perform object detection in complex multi-object scenes as well, e.g. COCO. Also, it is worth noting that we are doing multi-task learning, which means that we jointly learn from base and novel classes. In comparison, some works (Uijlings et al., 2018) are doing transfer learning. They first learn a model on base classes and then transfer and fine-tune the model on novel classes. Gao et al. (2019a) use a few instance-level labels and a large scale of image-level labels for each category in a training-mining framework, which is referred to as semisupervised detection. Zhang et al. (2018a) propose a framework named MSD that learn objectness on base categories and use it to reject distractors when learning novel objects. In comparison, our spatial correlation module not only learns objectness, but also refines coarse bounding boxes. Further, our model learns from both base and novel classes instead of only novel classes.
|
| 37 |
+
|
| 38 |
+
# 3 CROSS-SUPERVISED OBJECT DETECTION
|
| 39 |
+
|
| 40 |
+
CSOD requires us to learn from instance-level annotations (detection labels) and image-level annotations (recognition labels). In this section, we explain the unification of detection and recognition and introduce our framework. In the next section, we describe our novel spatial correlation module.
|
| 41 |
+
|
| 42 |
+
# 3.1 UNIFYING DETECTION AND RECOGNITION
|
| 43 |
+
|
| 44 |
+
How to learn a detector from both instance-level and image-level annotations? Since detection and recognition can be seen as region-level and image-level classification respectively, a natural choice is to design a unified framework that combines a detection head and a recognition head that can learn from image-level and instance-level annotations respectively. Here we exploit several baselines to unify the detection and recognition head. (1) Finetune. We first learn through the detection head on base classes with fully labeled samples. Then, we finetune our model using the recognition head on novel classes with only class labels. (2) Two Head. We simultaneously learn the detection and recognition head on base and novel classes, respectively. The weights of the backbones are updated using the loss backpropagated from both heads jointly. (3) Two head +. Instead of learning only on novel classes, we learn the recognition head from class labels of both base and novel classes whereas the recognition head remain the same. (4) Two Branch. Instead of having two shared fully-connected layers after RoI pooling layer (see Fig. 2), we make these two fully-connected layers seperated, allowing the detection and recognition head to have separate unshared pair of fully-connected layers each. Everything else is the same as the Two Head baseline. Experiments are conducted to compare these baselines in $\ S \ S . 1$ and $\ S \ S . 2$ . Our proposed model is based on Two Head. We will discuss the details in $\ S 3 . 2$ .
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
Figure 2: Our Detection-Recognition Network (DRN) without the spatial correlation module. In this illustration, Person belongs to novel classes and Boat belongs to base classes. The recognition head learns from the class label Person and outputs the top-scoring bounding box to help the detection head learn to detect the person. The spatial correlation module, discussed in $\ S 4$ , can be added to further refine the top-scoring bounding boxes.
|
| 48 |
+
|
| 49 |
+
The connection between the recognition and detection head. The baselines mentioned above only use the recognition head to detect novel objects, ignoring the fact that a detection head can play the same role even better. A majority of WSOD methods (Tang et al. (2017); Wan et al. (2019); Wei et al. (2018)) find that re-train a new detector taking the top-scoring bounding boxes from a weakly supervised object detector as ground truth marginally improve the performance. Even with coarse and noisy pseudo bounding boxes, a standard object detector produces better detection results than a weakly supervised object detector. Keeping this hypothesis in mind, we introduce a guidance from the recognition head to the detection head. For each of the novel categories existing in a training sample, the recognition head outputs the top-scoring bounding box, which are then used by the detection head as supervision in that sample.
|
| 50 |
+
|
| 51 |
+
# 3.2 DETECTION-RECOGNITION NETWORK
|
| 52 |
+
|
| 53 |
+
The structure of our Detection-Recognition Network (DRN) is shown in Fig. 2. Given an image, we first generate 2000 object proposals by Selective Search (Uijlings et al. (2013)) or RPN (Ren et al. (2015)) trained on base classes. The image and proposals are fed into several convolutional (conv) layers followed by a region-of-interest (RoI) pooling layer (Girshick (2015)) to output fixed-size feature maps. Then, these feature maps are fed into two fully connected (fc) layers to produce a collection of proposal features, which are further branched into the recognition and detection head.
|
| 54 |
+
|
| 55 |
+
Recognition Head. We followed previous WSOD methods to design our recognition head. Since OICR (Tang et al. (2017)) is simple, neat, and commonly being used, we make our recognition head the same as OICR, but with fewer refinement branches to reduce the computation cost. However, our recognition head can be replaced by any WSOD structure as shown in $\ S 5 . 3$ .
|
| 56 |
+
|
| 57 |
+
Within the recognition head as shown in Fig. 2, the proposal features are branched into three streams producing three matrices $\mathbf { x } ^ { c } , \mathbf { x } ^ { d } , \mathbf { x } ^ { e } \in \mathbb { R } ^ { C \times | R | }$ , where $C$ is the number of novel classes and $| R |$ is the number of proposals. Then the two matrices $\mathbf { x } ^ { c }$ and $\mathbf { x } ^ { d }$ are passed through a softmax function
|
| 58 |
+
|
| 59 |
+

|
| 60 |
+
Figure 3: Our spatial correlation module (SCM). Our SCM learns to capture spatial correlation among high-confidence bounding boxes, generating a class-agnostic heatmap for the whole image. A heatmap detector is then trained to learn ground truth bounding boxes.
|
| 61 |
+
|
| 62 |
+
over classes and proposals respectively: $\sigma ( \mathbf { x } ^ { c } )$ and $\sigma ( \mathbf { x } ^ { d } )$ . A proposal score $\mathbf { x } _ { c r } ^ { R }$ , indicating the score of $c ^ { t h }$ novel class for $r ^ { t h }$ proposal, corresponds to the respective element of the matrix $\bar { \mathbf { x } } ^ { R } =$ $\sigma ( \mathbf { x } ^ { c } ) \odot \sigma ( \mathbf { x } ^ { d } )$ , where $\odot$ refers to an element-wise product. Finally, we obtain the image score of $c ^ { t h }$ class $\phi _ { c }$ by summing over all proposals: $\begin{array} { r } { \phi _ { c } = \sum _ { r = 1 } ^ { | R | } x _ { c r } ^ { R } } \end{array}$ . Then we culate a standard multi-class cross-entropy loss as shown in the first term of Eq.1. Another matrix $\mathbf { x } ^ { e }$
|
| 63 |
+
function over classes, the result of which is expresses as a weighted multi-class cross entropy loss as shown in the second term of Eq.1. We set the pseudo label for each proposal $r$ based on its IoU (or overlap) with the top-scoring proposal of $c ^ { t h }$ class, $y _ { c r } = 1$ if $\mathrm { I o U } > 0 . 5$ and $y _ { c r } = 0$ otherwise. The weight $w _ { r }$ for each proposal $r$ is its IoU with the top-scoring proposal. The total loss for the recognition head is
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
L _ { r e c } = [ - \sum _ { c = 1 } ^ { C } y _ { c } l o g \phi _ { c } + ( 1 - y _ { c } ) l o g ( 1 - \phi _ { c } ) ] + [ - \frac { 1 } { | { \cal R } | } \sum _ { r = 1 } ^ { | { \cal R } | } \sum _ { c = 1 } ^ { C + 1 } w _ { r } y _ { c r } l o g x _ { c r } ^ { e } ]
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
Supervision from our recognition head. We use the matrix $x ^ { e }$ to propose pseudos bounding boxes to guide the detection head. Specifically, we select one top-scoring proposal for each object category that appears in the image as a pseudo bounding box, as done in OICR. We introduce the spatial correlation module in $\ S 4$ , to further refine this pseudo ground truth.
|
| 70 |
+
|
| 71 |
+
Detection Head. Now that we have pseudo bounding boxes for novel objects and ground truth bounding boxes for base objects, we train our detection head like a standard detector. For simplicity and efficiency, our detection head use the same structure of Faster R-CNN (Ren et al. (2015)). At inference time, the detection head produces detection results for both base categories and novel categories.
|
| 72 |
+
|
| 73 |
+
# 4 LEARNING TO MODEL SPATIAL CORRELATION
|
| 74 |
+
|
| 75 |
+
Our intuition is that there exists spatial correlation among high-confidence bounding boxes, and such spatial correlation can be captured to predict ground truth bounding boxes. By representing the spatial correlation in a class-agnostic heatmap, we can easily learn a mapping from recognitionbased bounding boxes to ground truth bounding boxes for base categories, and then transfer this mapping to novel categories.
|
| 76 |
+
|
| 77 |
+
Thus, we propose a spatial correlation module (SCM). SCM is used as a guidance refinement technique, taking sets of high-confidence bounding boxes from the recognition head, and correspondingly returning pseudo ground truth bounding boxes to the detection head. These pseudo ground truth boxes act as supervision while training on novel categories. The framework of SCM is showed in Fig. 3. Within this module, we first generate a class agnostic heatmap based on the high-confidence bounding boxes predicted by our recognition head, and then we perform detection on top of the heatmap.
|
| 78 |
+
|
| 79 |
+
Heatmap synthesis. We want to capture the information about how the high-confidence bounding boxes interact amongst themselves. Here, we introduce a simple way of achieving this using a class-agnostic heatmap. For each category existing in the image $y _ { c } = 1 , c \in C$ , we first threshold and select high-confidence bounding boxes of class $c$ . Then we synthesize a corresponding classagnostic heatmap, which is essentially a two-channel feature map of the same size as the original image. The value at each pixel is the sum and the maximum of confidence over all selected bounding boxes covering that pixel.
|
| 80 |
+
|
| 81 |
+
Table 1: Object Detection performance (mAP $\%$ ) on PASCAL VOC 2007 test set. ∗ indicates using the structure of OICR in the recognition head. ”MSD-Ens” is the ensemble of AlexNet and VGG16. ”MSD-Ens+FRCN” indicates using an ensemble model to predict pseudo ground truths and then learn a Fast-RCNN (Girshick (2015)) using VGG-16.
|
| 82 |
+
|
| 83 |
+
<table><tr><td rowspan="2">Method</td><td rowspan="2">Base mean</td><td colspan="9">Novel</td><td rowspan="2"></td></tr><tr><td>table</td><td>dog</td><td>horse</td><td>mbike</td><td>person</td><td>plant sheep</td><td></td><td>sofa</td><td>train tv</td></tr><tr><td>OICR</td><td>42.1</td><td>33.4</td><td>29.3</td><td>56.3</td><td>64.6</td><td>8.0</td><td>23.5</td><td>47.2</td><td>47.2</td><td>48.3 61.7</td><td>mean 42.0</td></tr><tr><td>PCL</td><td>49.2</td><td>51.5</td><td>37.3</td><td>63.3</td><td>63.9</td><td>15.8 23.6</td><td>48.8</td><td>55.3</td><td>61.2</td><td>62.1</td><td>48.3</td></tr><tr><td>MSD-VGG16</td><td>50.6</td><td>14.3</td><td>69.3</td><td>65.4 69.6</td><td>2.4</td><td>20.5</td><td>54.6</td><td>34.3</td><td>58.3</td><td>54.6</td><td>44.3</td></tr><tr><td>MSD-Ens</td><td>53.4</td><td>18.3</td><td>70.6</td><td>66.7 69.8</td><td></td><td>3.7 24.7</td><td>55.0</td><td>37.4</td><td>58.3</td><td>57.3</td><td>46.1</td></tr><tr><td>MSD-Ens+FRCN</td><td>53.9</td><td>15.3</td><td>72.0</td><td>74.4</td><td>65.2</td><td>15.4</td><td>25.1 53.6</td><td>54.4</td><td>45.6</td><td>61.4</td><td>48.2</td></tr><tr><td>Weight Transfer</td><td>68.4</td><td>10.4</td><td>61.0</td><td>58.0</td><td>65.1</td><td>19.8</td><td>19.5</td><td>58.0</td><td>50.8 58.6</td><td>52.7</td><td>45.4</td></tr><tr><td>Finetune*</td><td>71.8</td><td>17.8</td><td>22.9</td><td>15.2</td><td>71.2</td><td>10.2</td><td>15.1</td><td>61.7 36.6</td><td>21.9</td><td>61.3</td><td>33.4</td></tr><tr><td>Two Head*</td><td>72.9</td><td>60.6</td><td>33.2</td><td>47.7</td><td>70.2</td><td>3.9</td><td>25.5</td><td>52.6</td><td>58.4 54.7</td><td>64.4</td><td>47.1</td></tr><tr><td>Two Head+*</td><td>72.4</td><td>44.5</td><td>29.5</td><td>52.4</td><td>68.4</td><td>5.1</td><td>22.6 53.0</td><td>55.5</td><td>58.6</td><td>64.8</td><td> 45.4</td></tr><tr><td>Two Branch*</td><td>72.7</td><td>57.3</td><td>30.2</td><td>44.2 68.1</td><td>3.0</td><td>21.4</td><td>52.2</td><td>53.5</td><td>51.2</td><td>59.7</td><td>44.1</td></tr><tr><td>Ours w/o SCM</td><td>71.6</td><td>62.3</td><td>41.9</td><td>38.2</td><td>73.0</td><td>11.3</td><td>26.0</td><td>60.6</td><td>63.8</td><td>70.5 65.3</td><td>51.3</td></tr><tr><td>Ours</td><td>72.9</td><td>61.0</td><td>57.1</td><td>63.5</td><td>72.0</td><td>19.5</td><td>24.2</td><td>60.9</td><td>58.6</td><td>68.5 65.5</td><td>55.1+3.8</td></tr><tr><td>Ours* w/o SCM</td><td>72.7</td><td>66.8</td><td>50.4</td><td>57.0 71.5</td><td></td><td>12.1 27.6</td><td>57.1</td><td>62.7</td><td>54.2</td><td>64.2</td><td>52.4</td></tr><tr><td>Ours*</td><td>72.7</td><td>60.9</td><td>59.4</td><td>70.5</td><td>71.0</td><td>17.5</td><td>24.1</td><td>62.0</td><td>60.5 62.4</td><td>69.1</td><td>55.7+8.3</td></tr></table>
|
| 84 |
+
|
| 85 |
+
Heatmap detection. We consider each class-agnostic heatmap as a two-channel image, and perform detection on it. Specifically, we learn a class-agnostic detector on base classes, that we further use to produce pseudo ground truth bounding boxes for novel objects.
|
| 86 |
+
|
| 87 |
+
For this task, we use a lightweight one-stage detector, consisting of only five convolutional layers. We follow the same network architecture and loss as FCOS (Tian et al. (2019)), replacing the backbone and feature pyramid network with five max pooling layers. In our experiments, we also compare this tiny detector to a baseline: using three fully-connected layers to regress the groundtruth location taking the coordinates of high-confidence bounding boxes as input.
|
| 88 |
+
|
| 89 |
+
Loss of DRN. After introducing our SCM, we can formulate the full loss function for DRN. We use $L _ { r e c }$ , $L _ { d e t }$ , and $L _ { s c m }$ to indicate the losses from our recognition head, detection head, and spatial correlation module respectively. $\lambda _ { r e c } , \lambda _ { d e t }$ , and $\lambda _ { s c m }$ are the regularization hyperparameters used to balance the three separate loss functions. We train our DRN using the following loss:
|
| 90 |
+
|
| 91 |
+
$$
|
| 92 |
+
L = \lambda _ { r e c } L _ { r e c } + \lambda _ { d e t } L _ { d e t } + \lambda _ { s c m } L _ { s c m }
|
| 93 |
+
$$
|
| 94 |
+
|
| 95 |
+
# 5 EXPERIMENTS
|
| 96 |
+
|
| 97 |
+
# 5.1 PASCAL VOC
|
| 98 |
+
|
| 99 |
+
Setup. PASCAL VOC 2007 and 2012 datasets contain 9, 962 and 22, 531 images respectively for 20 object classes. They are divided into train, val, and test sets. Here we follow previous work (Tang et al. (2017)) to choose the trainval set (5, 011 images from 2007 and 11, 540 images from 2012). We divide the first 10 classes into base classes and the other 10 classes into novel classes. To evaluate our methods, we calculate mean of Average Precision (mAP) based on the PASCAL criteria, i.e., $\mathrm { I O U } { > } 0 . 5$ between predicted boxes and ground truths.
|
| 100 |
+
|
| 101 |
+
Implementation details. All our baselines, competitors and our framework are based on VGG16 (Simonyan & Zisserman (2015)) followed most of weakly supervised object detection methods. We set $\lambda _ { r e c } = 1$ , $\lambda _ { d e t } = 1 0$ , and $\lambda _ { s c m } = 1 0$ . We train the whole framework for 20 epochs using SGD with a momentum of 0.9, a weight decay of 0.0005 and a learning rate of 0.001, which is reduced by a factor of 10 at $1 4 ^ { t h }$ epoch. For a stable learning process, we don’t provide supervision from recognition head to detection head in the first 9 epochs.
|
| 102 |
+
|
| 103 |
+
Table 2: The results on COCO. We compare our method with several strong baselines in $\ S \ 3 . 1$ and competitors. Our method significantly outperforms these approaches, showing that our crosssupervised object detector is capable of detecting novel objects in complex multi-object scenes.
|
| 104 |
+
|
| 105 |
+
<table><tr><td rowspan="2">method</td><td colspan="6">non-voc -→ voc: test on B = {voc}</td><td colspan="6"> sixty→ twenty: test on B= {twenty}</td></tr><tr><td>AP</td><td>AP50</td><td>AP75</td><td>APs APM</td><td></td><td>APL</td><td>AP</td><td>AP50</td><td>AP75 APsAPm APL</td><td></td><td></td><td></td></tr><tr><td>Rec. Head</td><td>4.0</td><td>15.4</td><td>0.9</td><td>1.2</td><td>5.7</td><td>5.8</td><td>4.7</td><td>16.4</td><td>1.3</td><td>1.7</td><td>8.0</td><td>6.9</td></tr><tr><td>OICR</td><td>4.2</td><td>15.7</td><td>1.0</td><td>1.3</td><td>5.5</td><td>5.9</td><td>4.5</td><td>16.6</td><td>1.4</td><td>2.0</td><td>8.2</td><td>7.1</td></tr><tr><td>PCL</td><td>9.2</td><td>19.6</td><td>-</td><td>-</td><td>1</td><td>-</td><td>9.2</td><td>19.6</td><td>-</td><td>-</td><td>1</td><td>-</td></tr><tr><td>Weight T.</td><td>9.3</td><td>26.4</td><td>5.7</td><td>5.8</td><td>11.7</td><td>12.4</td><td>8.7</td><td>25.5</td><td>5.5</td><td>5.4</td><td>11.5</td><td>11.7</td></tr><tr><td>Finetune</td><td>2.3</td><td>7.4</td><td>0.3</td><td>0.7</td><td>3.1</td><td>3.3</td><td>2.4</td><td>7.7</td><td>0.2</td><td>0.5</td><td>2.8</td><td>3.0</td></tr><tr><td>Two Head</td><td>11.0</td><td>30.2</td><td>6.1</td><td>6.2</td><td>15.4</td><td>15.4</td><td>11.3</td><td>29.5</td><td>5.8</td><td>6.3</td><td>14.8</td><td>15.0</td></tr><tr><td>Two Head+</td><td>9.1</td><td>26.7</td><td>5.4</td><td>5.5</td><td>12.1</td><td>12.3</td><td>9.0</td><td>27.1</td><td>5.4</td><td>5.7</td><td>11.7</td><td>11.6</td></tr><tr><td>Two Branch</td><td>9.4</td><td>26.6</td><td>5.6</td><td>5.7</td><td>12.3</td><td>12.4</td><td>8.5</td><td>24.4</td><td>4.5</td><td>4.3</td><td>11.9</td><td>11.9</td></tr><tr><td>Ours w/o SCM</td><td>12.5</td><td>33.6</td><td>6.6</td><td>7.3</td><td>19.2</td><td>16.4</td><td>12.6</td><td>32.3</td><td>7.8</td><td>7.0</td><td>19.4</td><td>17.4</td></tr><tr><td> Ours</td><td>13.9+1.4</td><td> 36.2+2.6</td><td>7.7</td><td>6.9</td><td>18.8</td><td>19.9</td><td>14.0+1.4</td><td> 34.5+2.2</td><td>8.9</td><td>7.1</td><td>19.2</td><td>20.6</td></tr></table>
|
| 106 |
+
|
| 107 |
+
Baselines and competitors. We compare against several baselines as mentioned in $\ S \ 3 . 1$ , two WSOD methods: OICR (Tang et al. (2017)) and PCL (Tang et al. (2018)), and two cross-supervised object detector: MSD (Zhang et al. (2018a)), weight transfer (Kuen et al. (2019)).
|
| 108 |
+
|
| 109 |
+
Results. As shown in Table 1, our method outperforms all other approaches by a large margin (over $7 \%$ relative increase in mAP on novel classes). The results are consistent with our discussion in $\ S \ 3 . 1$ . We note that (1) sharing backbone for the recognition and detection head learns a more discriminative embedding for novel objects. In Table 1, Two Head∗ boosts the performance by 5 points as compared to only using the recognition head (OICR). (2) A supervision from recognition head to detection head exploits the full potential of a detection model. By adding the supervision (Ours∗ w/o SCM ), the result is improved by 5 points as compared to Two Head. (3) Our spatial correlation module successfully captures the spatial correlation between high-confidence proposals. It further boosts the performance by 3 points.
|
| 110 |
+
|
| 111 |
+
<table><tr><td>method</td><td>non-voc-→voc AP50 on B</td><td>sixty-→twenty AP50 on B</td></tr><tr><td>2 layer Fc layer 3 layer</td><td>31.0 30.8</td><td>28.7 28.3</td></tr><tr><td>4 layer</td><td>30.5</td><td>28.5</td></tr><tr><td>R-50-FPN</td><td>36.4</td><td>34.8</td></tr><tr><td>FCOS 4 conv</td><td>35.8</td><td>33.8</td></tr><tr><td>5 conv</td><td>36.2</td><td>34.5</td></tr><tr><td>w/o SCM</td><td>33.6</td><td>32.3</td></tr></table>
|
| 112 |
+
|
| 113 |
+
(a) Ablation on Heatmap synthesis. The result suggests using two-channel heatmap consists of maximum confidence and sum of confidence over proposals covering that position.
|
| 114 |
+
|
| 115 |
+
(b) Ablation on the structure of SCM. FCOS with 5 conv layers has nearly the best performance and very few parameters compared to a ResNet-50 backbone.
|
| 116 |
+
|
| 117 |
+
Table 3: Ablation study of our method.
|
| 118 |
+
|
| 119 |
+
<table><tr><td></td><td>non-voc-→voc AP50 on B</td><td>sixty→twenty AP50 on B</td></tr><tr><td>method max</td><td>35.5</td><td>33.8</td></tr><tr><td>sum</td><td>36.0</td><td>34.0</td></tr><tr><td>num</td><td>31.5</td><td>29.5</td></tr><tr><td>max+sum</td><td>36.2</td><td>34.5</td></tr><tr><td>max+num</td><td>35.7</td><td>34.1</td></tr><tr><td>sum+num</td><td>35.9</td><td>34.2</td></tr><tr><td>max+sum+num</td><td>36.1</td><td>34.2</td></tr></table>
|
| 120 |
+
|
| 121 |
+
<table><tr><td>method</td><td>non-voc-→voc AP50 on B</td><td>sixty-→twenty AP50 on B</td></tr><tr><td>WSDDN</td><td>35.7</td><td>33.8</td></tr><tr><td>OICR</td><td>36.6</td><td>34.7</td></tr><tr><td>Ours</td><td>36.4</td><td>34.5</td></tr></table>
|
| 122 |
+
|
| 123 |
+
<table><tr><td colspan="2"></td><td colspan="2">base-novel AP50 on A AP5o on B</td></tr><tr><td rowspan="2">dataset PASCAL VOC</td><td>method</td><td></td><td rowspan="2">46.1</td></tr><tr><td>RPN</td><td>76.2</td></tr><tr><td rowspan="2">non-voc->voc</td><td>SS</td><td>72.7</td><td>55.7</td></tr><tr><td>RPN SS</td><td>46.3 42.5</td><td>36.2 34.5</td></tr></table>
|
| 124 |
+
|
| 125 |
+
(c) Ablation on the structure of the recognition head. OICR has more refinement branches so it behaves a little better than our recognition head but takes double the computation time.
|
| 126 |
+
|
| 127 |
+
(d) Ablation on the proposal generator. On PASCAL VOC, there are not enough categories to learn a good RPN. So, we use selective search and RPN to generate proposals for PASCAL VOC and COCO respectively.
|
| 128 |
+
|
| 129 |
+

|
| 130 |
+
Figure 4: Detection results on novel objects. The results are from our proposed model but with different heads. The first row shows the results of the recognition head. The second row lists the results from SCM. The third row displays the results from the detection head.
|
| 131 |
+
|
| 132 |
+
# 5.2 COCO
|
| 133 |
+
|
| 134 |
+
Setup. We train on the COCO train2017 split and test on val2017 split. We simulate the crosssupervised object detection scenario on COCO by splitting the 80 classes into base and novel classes. We use a 20/60 split same as Hu et al. (2018), dividing the COCO categories into all the 20 classes contained in PASCAL VOC and the 60 that are not. We refer to these as the ‘voc’ and ‘non-voc’ category sets. ‘voc non-voc’ indicates that we take ‘voc’ as our base classes and ‘non-voc’ as our novel classes. Similarly, we split the first 20 classes into ‘twenty’ and the last 60 classes into ’sixty’.
|
| 135 |
+
|
| 136 |
+
Implementation details. The implementation details are the same as $\ S 5 . 1$ by default. We train the whole framework for 13 epochs. There is no supervision from recognition head to detection head in the first 5 epochs. The learning rate is reduced by a factor of 10 at $\bar { 8 } ^ { t h }$ , and $1 2 ^ { t h }$ epochs.
|
| 137 |
+
|
| 138 |
+
Baselines and competitors. Most baselines and competitors are the same as $\ S \ S . 1$ . ’Rec. Head’ represents only using our recognition head structure as a weakly supervised object detector.
|
| 139 |
+
|
| 140 |
+
Results. The results on COCO still support our discussion in $\ S 5 . 1$ . Even in complex multi objects scenes, our DRN outperforms all baselines and competitors by a large margin.
|
| 141 |
+
|
| 142 |
+
# 5.3 ABLATION EXPERIMENTS
|
| 143 |
+
|
| 144 |
+
Heatmap synthesis. In Table 3a, we compare the different methods to synthesize the heatmaps in the spatial correlation module. For each position in the heatmap, we consider three kinds of values: the maximum of confidence, the sum of confidence, and the number of proposals covering the position. This result informs us to use max and sum to create a two-channel heatmap.
|
| 145 |
+
|
| 146 |
+
Structure of SCM. In Table 3b, we compare different implementations of SCM. We compare the FCOS (Tian et al. (2019)) with 5 convolutional layers and the standard FCOS with a ResNet-50 (He et al. (2016)) backbone. We also compare to the regression baseline mentioned in $\ S 4$ . Considering the computation cost, we choose FCOS with 5 convolutional layer as our heatmap detector.
|
| 147 |
+
|
| 148 |
+
Structure of the Recognition head. In Table 3c, we compare different structures for the recognition head. WSDDN (Bilen & Vedaldi (2016)) and OICR are compared to our structure. The results support that our model can benefit from a stronger recognition head.
|
| 149 |
+
|
| 150 |
+
Different proposal generation methods. Table 3d shows the ablation of different ways to generate proposals. In PASCAL VOC with only 10 base classes, RPN performs worse than selective search. In COCO with 60 base classes, RPN performs better than selective search.
|
| 151 |
+
|
| 152 |
+
Visualization. Fig. 4 shows detection results on novel objects. Images in the first row, the second row, and the third row are detected by our model from the recognition head, the SCM, and the detection head respectively. The images in the first row tend to focus on the discriminating parts of the objects, e.g. the first and the second images contain only a part of the person. It also tends to detect co-occurring objects, e.g. the fourth image not only detects horse but also a large part of the person. Our SCM alleviates these problems. It tends to focus on the whole object, e.g. the first and the third samples detect the whole person instead of only the head. Also, it can correct unsatisfactory bounding boxes distracted by co-occurring objects, e.g. SCM correctly localizes the horse instead of localizing both the person and the horse in the fourth example. Obviously, bounding boxes in the third row are the best, indicating the efficacy of our framework.
|
| 153 |
+
|
| 154 |
+
# 6 CONCLUSION
|
| 155 |
+
|
| 156 |
+
In this paper, we have focused on cross-supervised object detection in realistic settings with complex imagery. We explore two major ways to build a good cross-supervised object detector: sharing network backbone between a recognition head and a detection head, and learning a spatial correlation module to bridge the gap between recognition and detection. Significant improvement on PASCAL VOC and COCO suggests a novel and promising approach for expanding object detection to a much larger number of categories.
|
| 157 |
+
|
| 158 |
+
# REFERENCES
|
| 159 |
+
|
| 160 |
+
Aditya Arun, C.V. Jawahar, and M. Pawan Kumar. Dissimilarity coefficient based weakly supervised object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
|
| 161 |
+
|
| 162 |
+
Hakan Bilen and Andrea Vedaldi. Weakly supervised deep detection networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
|
| 163 |
+
|
| 164 |
+
Ali Diba, Vivek Sharma, Ali Pazandeh, Hamed Pirsiavash, and Luc Van Gool. Weakly supervised cascaded convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
|
| 165 |
+
|
| 166 |
+
Thomas G Dietterich, Richard H Lathrop, and Tomas Lozano-P ´ erez. Solving the multiple instance ´ problem with axis-parallel rectangles. Artificial intelligence, 1997.
|
| 167 |
+
|
| 168 |
+
Mark Everingham, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. International journal of computer vision (IJCV), 2010.
|
| 169 |
+
|
| 170 |
+
Jiyang Gao, Jiang Wang, Shengyang Dai, Li-Jia Li, and Ram Nevatia. Note-rcnn: Noise tolerant ensemble rcnn for semi-supervised object detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019a.
|
| 171 |
+
|
| 172 |
+
Yan Gao, Boxiao Liu, Nan Guo, Xiaochun Ye, Fang Wan, Haihang You, and Dongrui Fan. Cmidn: Coupled multiple instance detection network with segmentation guidance for weakly supervised object detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019b.
|
| 173 |
+
|
| 174 |
+
Ross Girshick. Fast r-cnn. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2015.
|
| 175 |
+
|
| 176 |
+
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 (CVPR), 2016.
|
| 177 |
+
|
| 178 |
+
Judy Hoffman, Sergio Guadarrama, Eric S Tzeng, Ronghang Hu, Jeff Donahue, Ross Girshick, Trevor Darrell, and Kate Saenko. Lsda: Large scale detection through adaptation. In Advances in Neural Information Processing Systems (NeurIPS), 2014.
|
| 179 |
+
|
| 180 |
+
Judy Hoffman, Deepak Pathak, Trevor Darrell, and Kate Saenko. Detector discovery in the wild: Joint multiple instance and representation learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2015.
|
| 181 |
+
|
| 182 |
+
Ronghang Hu, Piotr Dollar, Kaiming He, Trevor Darrell, and Ross Girshick. Learning to segment ´ every thing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
|
| 183 |
+
|
| 184 |
+
Satoshi Kosugi, Toshihiko Yamasaki, and Kiyoharu Aizawa. Object-aware instance labeling for weakly supervised object detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019.
|
| 185 |
+
|
| 186 |
+
Jason Kuen, Federico Perazzi, Zhe Lin, Jianming Zhang, and Yap-Peng Tan. Scaling object detection by transferring classification weights. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019.
|
| 187 |
+
|
| 188 |
+
Xiaoyan Li, Meina Kan, Shiguang Shan, and Xilin Chen. Weakly supervised object detection with segmentation collaboration. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019.
|
| 189 |
+
|
| 190 |
+
Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ´ Proceedings of the European Conference on Computer Vision (ECCV), 2014.
|
| 191 |
+
|
| 192 |
+
Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollar. Focal loss for dense object ´ detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2017.
|
| 193 |
+
|
| 194 |
+
Joseph Redmon and Ali Farhadi. Yolo9000: better, faster, stronger. In Proceedings of the IEEE International Conference on Computer Vision (CVPR), 2017.
|
| 195 |
+
|
| 196 |
+
Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
|
| 197 |
+
|
| 198 |
+
Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in Neural Information Processing Systems (NeurIPS), 2015.
|
| 199 |
+
|
| 200 |
+
Zhongzheng Ren, Zhiding Yu, Xiaodong Yang, Ming-Yu Liu, Yong Jae Lee, Alexander G Schwing, and Jan Kautz. Instance-aware, context-focused, and memory-efficient weakly supervised object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020.
|
| 201 |
+
|
| 202 |
+
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), 2015.
|
| 203 |
+
|
| 204 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In Proceedings of the International Conference on Learning Representations (ICLR), 2015.
|
| 205 |
+
|
| 206 |
+
Peng Tang, Xinggang Wang, Xiang Bai, and Wenyu Liu. Multiple instance detection network with online instance classifier refinement. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
|
| 207 |
+
|
| 208 |
+
Peng Tang, Xinggang Wang, Song Bai, Wei Shen, Xiang Bai, Wenyu Liu, and Alan Yuille. Pcl: Proposal cluster learning for weakly supervised object detection. IEEE transactions on pattern analysis and machine intelligence, 2018.
|
| 209 |
+
|
| 210 |
+
Yuxing Tang, Josiah Wang, Boyang Gao, Emmanuel Dellandrea, Robert Gaizauskas, and Liming ´ Chen. Large scale semi-supervised object detection using visual and semantic knowledge transfer. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
|
| 211 |
+
|
| 212 |
+
Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. Fcos: Fully convolutional one-stage object detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019.
|
| 213 |
+
|
| 214 |
+
Jasper Uijlings, Stefan Popov, and Vittorio Ferrari. Revisiting knowledge transfer for training object class detectors. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
|
| 215 |
+
|
| 216 |
+
Jasper RR Uijlings, Koen EA Van De Sande, Theo Gevers, and Arnold WM Smeulders. Selective search for object recognition. International journal of computer vision (IJCV), 2013.
|
| 217 |
+
|
| 218 |
+
Fang Wan, Pengxu Wei, Jianbin Jiao, Zhenjun Han, and Qixiang Ye. Min-entropy latent model for weakly supervised object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
|
| 219 |
+
|
| 220 |
+
Fang Wan, Chang Liu, Wei Ke, Xiangyang Ji, Jianbin Jiao, and Qixiang Ye. C-mil: Continuation multiple instance learning for weakly supervised object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
|
| 221 |
+
|
| 222 |
+
Yunchao Wei, Zhiqiang Shen, Bowen Cheng, Honghui Shi, Jinjun Xiong, Jiashi Feng, and Thomas Huang. Ts2c: Tight box mining with surrounding segmentation context for weakly supervised object detection. In Proceedings of the European Conference on Computer Vision (ECCV), 2018.
|
| 223 |
+
|
| 224 |
+
Hao Yang, Hao Wu, and Hao Chen. Detecting 11k classes: Large scale object detection without fine-grained bounding boxes. In Proceedings of the IEEE International Conference on Computer Vision (CVPR), 2019a.
|
| 225 |
+
|
| 226 |
+
Ke Yang, Dongsheng Li, and Yong Dou. Towards precise end-to-end weakly supervised object detection network. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019b.
|
| 227 |
+
|
| 228 |
+
Zhaoyang Zeng, Bei Liu, Jianlong Fu, Hongyang Chao, and Lei Zhang. Wsod2: Learning bottomup and top-down objectness distillation for weakly-supervised object detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019.
|
| 229 |
+
|
| 230 |
+
Junge Zhang, Kaiqi Huang, Jianguo Zhang, et al. Mixed supervised object detection with robust objectness transfer. IEEE transactions on pattern analysis and machine intelligence, 2018a.
|
| 231 |
+
|
| 232 |
+
Xiaopeng Zhang, Jiashi Feng, Hongkai Xiong, and Qi Tian. Zigzag learning for weakly supervised object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018b.
|
| 233 |
+
|
| 234 |
+
Yongqiang Zhang, Yancheng Bai, Mingli Ding, Yongqiang Li, and Bernard Ghanem. W2f: A weakly-supervised to fully-supervised framework for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018c.
|
| 235 |
+
|
| 236 |
+
Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "CROSS-SUPERVISED OBJECT DETECTION ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
669,
|
| 10 |
+
121
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 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": "After learning a new object category from image-level annotations (with no object bounding boxes), humans are remarkably good at precisely localizing those objects. However, building good object localizers (i.e., detectors) currently requires expensive instance-level annotations. While some work has been done on learning detectors from weakly labeled samples (with only class labels), these detectors do poorly at localization. In this work, we show how to build better object detectors from weakly labeled images of new categories by leveraging knowledge learned from fully labeled base categories. We call this learning paradigm cross-supervised object detection. While earlier works investigated this paradigm, they did not apply it to realistic complex images (e.g., COCO), and their performance was poor. We propose a unified framework that combines a detection head trained from instance-level annotations and a recognition head learned from image-level annotations, together with a spatial correlation module that bridges the gap between detection and recognition. These contributions enable us to better detect novel objects with image-level annotations in complex multi-object scenes such as the COCO dataset. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
241,
|
| 43 |
+
764,
|
| 44 |
+
463
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
506,
|
| 55 |
+
334,
|
| 56 |
+
521
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Deep architectures have achieved great success in many computer vision tasks including object recognition and the closely related problem of object detection. Modern detectors, such as the Faster RCNN (Ren et al., 2015), YOLO (Redmon et al., 2016), and RetinaNet (Lin et al., 2017), use the same network backbone as popular recognition models. However, even with the same backbone architectures, detection and recognition models require different types of supervision. A good detector relies heavily on precise bounding boxes and labels for each instance (we shall refer to these as instance-level annotations), whereas a recognition model needs only image-level labels. Needless to say, it is more time consuming and expensive to obtain high quality bounding box annotations than class labels. As a result, current detectors are limited to a small set of categories relative to their object recognition counterparts. To address this limitation, it is natural to ask, “Is it possible to learn detectors with only class labels?” This problem is commonly referred to as weakly supervised object detection (WSOD). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
535,
|
| 66 |
+
825,
|
| 67 |
+
700
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Early WSOD work (Hoffman et al., 2014) showed fair performance by directly applying recognition networks to object detection. More recently, researchers have used multiple instance learning methods (Dietterich et al., 1997) to recast WSOD as a multi-label classification problem (Bilen & Vedaldi, 2016). However, these weakly supervised detectors perform poorly at localization. Most WSOD experiments have been conducted on the ILSVRC (Russakovsky et al., 2015) data set, in which images have only a single object, or on the PASCAL VOC (Everingham et al., 2010) data set, which has only 20 categories. The simplicity of these data sets limits the number and types of distractors in an image, making localization substantially easier. Learning from only class labels, it is challenging to detect objects at different scales in an image that contains many distractors. In particular, as shown in our experiments, weakly supervised object detectors do not work well in complex multi-object scenes, such as the COCO dataset (Lin et al., 2014). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
708,
|
| 77 |
+
825,
|
| 78 |
+
861
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "To address this challenge, we focus on a form of learning in which the localization of classes with only object labels (weakly labeled classes) can benefit from other classes that have ground truth bounding boxes (fully labeled classes). We refer to this interesting learning paradigm as crosssupervised object detection (CSOD). While several works (Hoffman et al., 2014; Tang et al., 2016; ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
176,
|
| 87 |
+
867,
|
| 88 |
+
823,
|
| 89 |
+
922
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Yang et al., 2019a; Redmon & Farhadi, 2017) have explored this problem before, they still have the same limitation as the WSOD work we mentioned above. Those cross-supervised object detectors work under simplified scenarios (e.g., ILSVRC data set) where images contain single objects and are object-centered. They struggle to learn under more complex and realistic scenarios, where there are multiple objects from potentially very different classes, and objects could be small and appear anywhere in the images. In this work, we show that by doing multi-task learning on both weaklysupervised base classes and fully-supervised novel classes, our model is able to learn a good detector under the CSOD setting. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
103,
|
| 99 |
+
825,
|
| 100 |
+
215
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "More formally, we define CSOD as follows. At training time, we are given 1) images contain objects from both base and novel classes, 2) both class labels and ground truth bounding boxes for base objects, and 3) only class labels for novel objects. Our goal is to detect novel objects. In CSOD, base classes and novel classes are disjoint. Thus, it can be seen as performing fullysupervised detection on the base classes and weakly supervised detection on the novel classes. It has similarities to both transfer learning and semi-supervised learning, since it transfer knowledge from base class to novel class and have more information about some instances than other instances. However, CSOD represents a distinct and novel paradigm for learning. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
222,
|
| 110 |
+
825,
|
| 111 |
+
333
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "The current weakly-supervised method has several drawbacks to learn from a multi objects image. As shown in Fig. 1, a weakly supervised object detector tends to detect only the most discriminating part of novel objects instead of the whole object. Notice how only the head of the person, and not the whole body, is detected. Another issue is that the localizer for one object (e.g., the horse) may be confused by the occurrence of another object, such as the person on the horse. This example illustrates the gap between detection and recognition: without ground truth bounding boxes, the detector acts like a standard recognition model – focusing on discriminating rather than detecting. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
340,
|
| 121 |
+
823,
|
| 122 |
+
438
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "In this paper, we explore two major mechanisms for improving on this. Our first mechanism is unifying detection and recognition. Using the same network backbone architecture, recognition and detection can be seen as image-level classification and region-level classification respectively, suggesting a strong relation between them. In particular, it suggests a shared training framework in which the same backbone is used with different heads for detection and recognition. Thus, we combine a detection head learned from ground truth bounding boxes, and a recognition head learned in a weakly supervised fashion from class labels. Unlike a traditional recognition head, our recognition head produces a class score for multiple proposals and is capable of detecting objects. The second mechanism is learning a spatial correlation module to reduce the gap between detection and recognition. It takes several high-confidence bounding boxes produced by the recognition head as input, and learns to regress ground truth bounding boxes. By combining these mechanisms together, our model outperforms all previous models when all novel objects are weakly labeled. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
444,
|
| 132 |
+
825,
|
| 133 |
+
611
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "In summary, our contributions are three-fold. First, we define a new task—cross-supervised object detection, which enables us to leverage knowledge from fully labeled base categories to help learn a robust detector from novel object class labels only. Second, we propose a unified framework in which two heads are learned from class labels and detection labels respectively, along with a spatial correlation module bridging the gap between recognition and detection. Third, we significantly outperform existing methods (Zhang et al. (2018a); Tang et al. (2017; 2018)) on PASCAL VOC and COCO, suggesting that CSOD could be a promising approach for expanding object detection to a much larger number of categories. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
618,
|
| 143 |
+
825,
|
| 144 |
+
729
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "2 RELATED WORK ",
|
| 151 |
+
"text_level": 1,
|
| 152 |
+
"bbox": [
|
| 153 |
+
176,
|
| 154 |
+
752,
|
| 155 |
+
344,
|
| 156 |
+
768
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Weakly supervised object detection. WSOD (Kosugi et al. (2019); Zeng et al. (2019); Yang et al. (2019b); Wan et al. (2019); Arun et al. (2019); Wan et al. (2018); Zhang et al. (2018b); Ren et al. (2020); Zhang et al. (2018c); Li et al. (2019); Gao et al. (2019b); Kosugi et al. (2019)) attempts to learn a detector with only image category labels. Most of these methods adopt the idea of Multiple Instance Learning (Dietterich et al. (1997)) to recast WSOD as a multi-label classification task. Bilen & Vedaldi (2016) propose an end-to-end network by modifying a classifier to operate at the level of image regions, serving as a region selector and a classifier simultaneously. Tang et al. (2017) and Tang et al. (2018) find that several iterations of online refinement based on the outputs of previous iterations boosts performance. Wei et al. (2018) and Diba et al. (2017) use semantic segmentation based on class activation maps (Zhou et al. (2016)) to help generate tight bounding boxes. However, ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
784,
|
| 166 |
+
825,
|
| 167 |
+
924
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "image",
|
| 173 |
+
"img_path": "images/a6525e87d58457804058030797ef06c2c5c8237d897d3edcf64e7b4ca07b3647.jpg",
|
| 174 |
+
"image_caption": [
|
| 175 |
+
"Figure 1: A comparison between weakly supervised object detector and our detector. Weakly supervised object detector only detects the most discriminating part of an object, e.g., focus on head of a person when detecting a person; or being distracted by co-occurring instances, e.g., distracted by the person on the horse when detecting a horse. Our detector can address these issues. "
|
| 176 |
+
],
|
| 177 |
+
"image_footnote": [],
|
| 178 |
+
"bbox": [
|
| 179 |
+
220,
|
| 180 |
+
106,
|
| 181 |
+
772,
|
| 182 |
+
241
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 2
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "WSOD methods tend to focus on the most discriminating part of an object and are prone to distractions from co-occurring objects. Detecting a part of the object or distractors represents convergence to a local optimum. Thus, their performance depends heavily on initialization. In comparison, our proposed cross-supervised object detector alleviates the issue of getting trapped in a local optimum by leveraging knowledge learned from fully labeled base categories. ",
|
| 189 |
+
"bbox": [
|
| 190 |
+
174,
|
| 191 |
+
338,
|
| 192 |
+
823,
|
| 193 |
+
407
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 2
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "Cross-supervised object detection. There are several previous works using both image-level and instance-level annotations. Kuen et al. (2019) learned a parameter transferring function between a classifier and a detector, enabling an image-based classification network to be adapted to a regionbased classification network. Hoffman et al. (2014) and Tang et al. (2016) propose methods of adaptation for knowledge transfer from classification features to detection features. Uijlings et al. (2018) use a proposal generator trained on base classes to transfer knowledge by leveraging a MIL framework, organized in a semantic hierarchy. Hoffman et al. (2015) design a three-step framework to learn a feature representation from weakly supervised classes and strongly supervised classes jointly. However, these methods can only perform object localization in single object scenes such as ILSVRC, whereas our method can perform object detection in complex multi-object scenes as well, e.g. COCO. Also, it is worth noting that we are doing multi-task learning, which means that we jointly learn from base and novel classes. In comparison, some works (Uijlings et al., 2018) are doing transfer learning. They first learn a model on base classes and then transfer and fine-tune the model on novel classes. Gao et al. (2019a) use a few instance-level labels and a large scale of image-level labels for each category in a training-mining framework, which is referred to as semisupervised detection. Zhang et al. (2018a) propose a framework named MSD that learn objectness on base categories and use it to reject distractors when learning novel objects. In comparison, our spatial correlation module not only learns objectness, but also refines coarse bounding boxes. Further, our model learns from both base and novel classes instead of only novel classes. ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
173,
|
| 202 |
+
415,
|
| 203 |
+
825,
|
| 204 |
+
678
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 2
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "3 CROSS-SUPERVISED OBJECT DETECTION ",
|
| 211 |
+
"text_level": 1,
|
| 212 |
+
"bbox": [
|
| 213 |
+
176,
|
| 214 |
+
698,
|
| 215 |
+
549,
|
| 216 |
+
714
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 2
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "CSOD requires us to learn from instance-level annotations (detection labels) and image-level annotations (recognition labels). In this section, we explain the unification of detection and recognition and introduce our framework. In the next section, we describe our novel spatial correlation module. ",
|
| 223 |
+
"bbox": [
|
| 224 |
+
176,
|
| 225 |
+
729,
|
| 226 |
+
823,
|
| 227 |
+
771
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "3.1 UNIFYING DETECTION AND RECOGNITION ",
|
| 234 |
+
"text_level": 1,
|
| 235 |
+
"bbox": [
|
| 236 |
+
174,
|
| 237 |
+
787,
|
| 238 |
+
513,
|
| 239 |
+
803
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "How to learn a detector from both instance-level and image-level annotations? Since detection and recognition can be seen as region-level and image-level classification respectively, a natural choice is to design a unified framework that combines a detection head and a recognition head that can learn from image-level and instance-level annotations respectively. Here we exploit several baselines to unify the detection and recognition head. (1) Finetune. We first learn through the detection head on base classes with fully labeled samples. Then, we finetune our model using the recognition head on novel classes with only class labels. (2) Two Head. We simultaneously learn the detection and recognition head on base and novel classes, respectively. The weights of the backbones are updated using the loss backpropagated from both heads jointly. (3) Two head +. Instead of learning only on novel classes, we learn the recognition head from class labels of both base and novel classes whereas the recognition head remain the same. (4) Two Branch. Instead of having two shared fully-connected layers after RoI pooling layer (see Fig. 2), we make these two fully-connected layers seperated, allowing the detection and recognition head to have separate unshared pair of fully-connected layers each. Everything else is the same as the Two Head baseline. Experiments are conducted to compare these baselines in $\\ S \\ S . 1$ and $\\ S \\ S . 2$ . Our proposed model is based on Two Head. We will discuss the details in $\\ S 3 . 2$ . ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
174,
|
| 248 |
+
811,
|
| 249 |
+
823,
|
| 250 |
+
924
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "image",
|
| 256 |
+
"img_path": "images/41ec47eab0504bf1e8dab709b878701e7e9a92c5e76db3b8f8be856947fd4534.jpg",
|
| 257 |
+
"image_caption": [
|
| 258 |
+
"Figure 2: Our Detection-Recognition Network (DRN) without the spatial correlation module. In this illustration, Person belongs to novel classes and Boat belongs to base classes. The recognition head learns from the class label Person and outputs the top-scoring bounding box to help the detection head learn to detect the person. The spatial correlation module, discussed in $\\ S 4$ , can be added to further refine the top-scoring bounding boxes. "
|
| 259 |
+
],
|
| 260 |
+
"image_footnote": [],
|
| 261 |
+
"bbox": [
|
| 262 |
+
218,
|
| 263 |
+
106,
|
| 264 |
+
774,
|
| 265 |
+
318
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 3
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"text": "",
|
| 272 |
+
"bbox": [
|
| 273 |
+
173,
|
| 274 |
+
429,
|
| 275 |
+
825,
|
| 276 |
+
541
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 3
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "text",
|
| 282 |
+
"text": "The connection between the recognition and detection head. The baselines mentioned above only use the recognition head to detect novel objects, ignoring the fact that a detection head can play the same role even better. A majority of WSOD methods (Tang et al. (2017); Wan et al. (2019); Wei et al. (2018)) find that re-train a new detector taking the top-scoring bounding boxes from a weakly supervised object detector as ground truth marginally improve the performance. Even with coarse and noisy pseudo bounding boxes, a standard object detector produces better detection results than a weakly supervised object detector. Keeping this hypothesis in mind, we introduce a guidance from the recognition head to the detection head. For each of the novel categories existing in a training sample, the recognition head outputs the top-scoring bounding box, which are then used by the detection head as supervision in that sample. ",
|
| 283 |
+
"bbox": [
|
| 284 |
+
174,
|
| 285 |
+
547,
|
| 286 |
+
825,
|
| 287 |
+
686
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 3
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "text",
|
| 293 |
+
"text": "3.2 DETECTION-RECOGNITION NETWORK ",
|
| 294 |
+
"text_level": 1,
|
| 295 |
+
"bbox": [
|
| 296 |
+
176,
|
| 297 |
+
703,
|
| 298 |
+
480,
|
| 299 |
+
717
|
| 300 |
+
],
|
| 301 |
+
"page_idx": 3
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"type": "text",
|
| 305 |
+
"text": "The structure of our Detection-Recognition Network (DRN) is shown in Fig. 2. Given an image, we first generate 2000 object proposals by Selective Search (Uijlings et al. (2013)) or RPN (Ren et al. (2015)) trained on base classes. The image and proposals are fed into several convolutional (conv) layers followed by a region-of-interest (RoI) pooling layer (Girshick (2015)) to output fixed-size feature maps. Then, these feature maps are fed into two fully connected (fc) layers to produce a collection of proposal features, which are further branched into the recognition and detection head. ",
|
| 306 |
+
"bbox": [
|
| 307 |
+
174,
|
| 308 |
+
727,
|
| 309 |
+
825,
|
| 310 |
+
810
|
| 311 |
+
],
|
| 312 |
+
"page_idx": 3
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"type": "text",
|
| 316 |
+
"text": "Recognition Head. We followed previous WSOD methods to design our recognition head. Since OICR (Tang et al. (2017)) is simple, neat, and commonly being used, we make our recognition head the same as OICR, but with fewer refinement branches to reduce the computation cost. However, our recognition head can be replaced by any WSOD structure as shown in $\\ S 5 . 3$ . ",
|
| 317 |
+
"bbox": [
|
| 318 |
+
174,
|
| 319 |
+
818,
|
| 320 |
+
825,
|
| 321 |
+
875
|
| 322 |
+
],
|
| 323 |
+
"page_idx": 3
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"type": "text",
|
| 327 |
+
"text": "Within the recognition head as shown in Fig. 2, the proposal features are branched into three streams producing three matrices $\\mathbf { x } ^ { c } , \\mathbf { x } ^ { d } , \\mathbf { x } ^ { e } \\in \\mathbb { R } ^ { C \\times | R | }$ , where $C$ is the number of novel classes and $| R |$ is the number of proposals. Then the two matrices $\\mathbf { x } ^ { c }$ and $\\mathbf { x } ^ { d }$ are passed through a softmax function ",
|
| 328 |
+
"bbox": [
|
| 329 |
+
176,
|
| 330 |
+
881,
|
| 331 |
+
823,
|
| 332 |
+
924
|
| 333 |
+
],
|
| 334 |
+
"page_idx": 3
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"type": "image",
|
| 338 |
+
"img_path": "images/1450e19e8f29587235da2e261c12a62149ab30614da707a9c2c6b3b5fee699e1.jpg",
|
| 339 |
+
"image_caption": [
|
| 340 |
+
"Figure 3: Our spatial correlation module (SCM). Our SCM learns to capture spatial correlation among high-confidence bounding boxes, generating a class-agnostic heatmap for the whole image. A heatmap detector is then trained to learn ground truth bounding boxes. "
|
| 341 |
+
],
|
| 342 |
+
"image_footnote": [],
|
| 343 |
+
"bbox": [
|
| 344 |
+
186,
|
| 345 |
+
102,
|
| 346 |
+
813,
|
| 347 |
+
208
|
| 348 |
+
],
|
| 349 |
+
"page_idx": 4
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"type": "text",
|
| 353 |
+
"text": "over classes and proposals respectively: $\\sigma ( \\mathbf { x } ^ { c } )$ and $\\sigma ( \\mathbf { x } ^ { d } )$ . A proposal score $\\mathbf { x } _ { c r } ^ { R }$ , indicating the score of $c ^ { t h }$ novel class for $r ^ { t h }$ proposal, corresponds to the respective element of the matrix $\\bar { \\mathbf { x } } ^ { R } =$ $\\sigma ( \\mathbf { x } ^ { c } ) \\odot \\sigma ( \\mathbf { x } ^ { d } )$ , where $\\odot$ refers to an element-wise product. Finally, we obtain the image score of $c ^ { t h }$ class $\\phi _ { c }$ by summing over all proposals: $\\begin{array} { r } { \\phi _ { c } = \\sum _ { r = 1 } ^ { | R | } x _ { c r } ^ { R } } \\end{array}$ . Then we culate a standard multi-class cross-entropy loss as shown in the first term of Eq.1. Another matrix $\\mathbf { x } ^ { e }$ \nfunction over classes, the result of which is expresses as a weighted multi-class cross entropy loss as shown in the second term of Eq.1. We set the pseudo label for each proposal $r$ based on its IoU (or overlap) with the top-scoring proposal of $c ^ { t h }$ class, $y _ { c r } = 1$ if $\\mathrm { I o U } > 0 . 5$ and $y _ { c r } = 0$ otherwise. The weight $w _ { r }$ for each proposal $r$ is its IoU with the top-scoring proposal. The total loss for the recognition head is ",
|
| 354 |
+
"bbox": [
|
| 355 |
+
173,
|
| 356 |
+
281,
|
| 357 |
+
825,
|
| 358 |
+
425
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 4
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "equation",
|
| 364 |
+
"img_path": "images/2d79b14df0ad6e4eb5ec1e8023e9ee8e0329dee8eab36b8da68f418dfa3857a6.jpg",
|
| 365 |
+
"text": "$$\nL _ { r e c } = [ - \\sum _ { c = 1 } ^ { C } y _ { c } l o g \\phi _ { c } + ( 1 - y _ { c } ) l o g ( 1 - \\phi _ { c } ) ] + [ - \\frac { 1 } { | { \\cal R } | } \\sum _ { r = 1 } ^ { | { \\cal R } | } \\sum _ { c = 1 } ^ { C + 1 } w _ { r } y _ { c r } l o g x _ { c r } ^ { e } ]\n$$",
|
| 366 |
+
"text_format": "latex",
|
| 367 |
+
"bbox": [
|
| 368 |
+
236,
|
| 369 |
+
433,
|
| 370 |
+
761,
|
| 371 |
+
478
|
| 372 |
+
],
|
| 373 |
+
"page_idx": 4
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"type": "text",
|
| 377 |
+
"text": "Supervision from our recognition head. We use the matrix $x ^ { e }$ to propose pseudos bounding boxes to guide the detection head. Specifically, we select one top-scoring proposal for each object category that appears in the image as a pseudo bounding box, as done in OICR. We introduce the spatial correlation module in $\\ S 4$ , to further refine this pseudo ground truth. ",
|
| 378 |
+
"bbox": [
|
| 379 |
+
173,
|
| 380 |
+
491,
|
| 381 |
+
823,
|
| 382 |
+
547
|
| 383 |
+
],
|
| 384 |
+
"page_idx": 4
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"type": "text",
|
| 388 |
+
"text": "Detection Head. Now that we have pseudo bounding boxes for novel objects and ground truth bounding boxes for base objects, we train our detection head like a standard detector. For simplicity and efficiency, our detection head use the same structure of Faster R-CNN (Ren et al. (2015)). At inference time, the detection head produces detection results for both base categories and novel categories. ",
|
| 389 |
+
"bbox": [
|
| 390 |
+
173,
|
| 391 |
+
554,
|
| 392 |
+
825,
|
| 393 |
+
625
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 4
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "text",
|
| 399 |
+
"text": "4 LEARNING TO MODEL SPATIAL CORRELATION ",
|
| 400 |
+
"text_level": 1,
|
| 401 |
+
"bbox": [
|
| 402 |
+
174,
|
| 403 |
+
643,
|
| 404 |
+
594,
|
| 405 |
+
660
|
| 406 |
+
],
|
| 407 |
+
"page_idx": 4
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"type": "text",
|
| 411 |
+
"text": "Our intuition is that there exists spatial correlation among high-confidence bounding boxes, and such spatial correlation can be captured to predict ground truth bounding boxes. By representing the spatial correlation in a class-agnostic heatmap, we can easily learn a mapping from recognitionbased bounding boxes to ground truth bounding boxes for base categories, and then transfer this mapping to novel categories. ",
|
| 412 |
+
"bbox": [
|
| 413 |
+
174,
|
| 414 |
+
672,
|
| 415 |
+
825,
|
| 416 |
+
742
|
| 417 |
+
],
|
| 418 |
+
"page_idx": 4
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"type": "text",
|
| 422 |
+
"text": "Thus, we propose a spatial correlation module (SCM). SCM is used as a guidance refinement technique, taking sets of high-confidence bounding boxes from the recognition head, and correspondingly returning pseudo ground truth bounding boxes to the detection head. These pseudo ground truth boxes act as supervision while training on novel categories. The framework of SCM is showed in Fig. 3. Within this module, we first generate a class agnostic heatmap based on the high-confidence bounding boxes predicted by our recognition head, and then we perform detection on top of the heatmap. ",
|
| 423 |
+
"bbox": [
|
| 424 |
+
173,
|
| 425 |
+
750,
|
| 426 |
+
825,
|
| 427 |
+
847
|
| 428 |
+
],
|
| 429 |
+
"page_idx": 4
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"type": "text",
|
| 433 |
+
"text": "Heatmap synthesis. We want to capture the information about how the high-confidence bounding boxes interact amongst themselves. Here, we introduce a simple way of achieving this using a class-agnostic heatmap. For each category existing in the image $y _ { c } = 1 , c \\in C$ , we first threshold and select high-confidence bounding boxes of class $c$ . Then we synthesize a corresponding classagnostic heatmap, which is essentially a two-channel feature map of the same size as the original image. The value at each pixel is the sum and the maximum of confidence over all selected bounding boxes covering that pixel. ",
|
| 434 |
+
"bbox": [
|
| 435 |
+
174,
|
| 436 |
+
854,
|
| 437 |
+
823,
|
| 438 |
+
924
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 4
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "table",
|
| 444 |
+
"img_path": "images/aebcae5fe48440380a5163b89ade4d051d19099429f71fd2e8936f7caa412fbd.jpg",
|
| 445 |
+
"table_caption": [
|
| 446 |
+
"Table 1: Object Detection performance (mAP $\\%$ ) on PASCAL VOC 2007 test set. ∗ indicates using the structure of OICR in the recognition head. ”MSD-Ens” is the ensemble of AlexNet and VGG16. ”MSD-Ens+FRCN” indicates using an ensemble model to predict pseudo ground truths and then learn a Fast-RCNN (Girshick (2015)) using VGG-16. "
|
| 447 |
+
],
|
| 448 |
+
"table_footnote": [],
|
| 449 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Base mean</td><td colspan=\"9\">Novel</td><td rowspan=\"2\"></td></tr><tr><td>table</td><td>dog</td><td>horse</td><td>mbike</td><td>person</td><td>plant sheep</td><td></td><td>sofa</td><td>train tv</td></tr><tr><td>OICR</td><td>42.1</td><td>33.4</td><td>29.3</td><td>56.3</td><td>64.6</td><td>8.0</td><td>23.5</td><td>47.2</td><td>47.2</td><td>48.3 61.7</td><td>mean 42.0</td></tr><tr><td>PCL</td><td>49.2</td><td>51.5</td><td>37.3</td><td>63.3</td><td>63.9</td><td>15.8 23.6</td><td>48.8</td><td>55.3</td><td>61.2</td><td>62.1</td><td>48.3</td></tr><tr><td>MSD-VGG16</td><td>50.6</td><td>14.3</td><td>69.3</td><td>65.4 69.6</td><td>2.4</td><td>20.5</td><td>54.6</td><td>34.3</td><td>58.3</td><td>54.6</td><td>44.3</td></tr><tr><td>MSD-Ens</td><td>53.4</td><td>18.3</td><td>70.6</td><td>66.7 69.8</td><td></td><td>3.7 24.7</td><td>55.0</td><td>37.4</td><td>58.3</td><td>57.3</td><td>46.1</td></tr><tr><td>MSD-Ens+FRCN</td><td>53.9</td><td>15.3</td><td>72.0</td><td>74.4</td><td>65.2</td><td>15.4</td><td>25.1 53.6</td><td>54.4</td><td>45.6</td><td>61.4</td><td>48.2</td></tr><tr><td>Weight Transfer</td><td>68.4</td><td>10.4</td><td>61.0</td><td>58.0</td><td>65.1</td><td>19.8</td><td>19.5</td><td>58.0</td><td>50.8 58.6</td><td>52.7</td><td>45.4</td></tr><tr><td>Finetune*</td><td>71.8</td><td>17.8</td><td>22.9</td><td>15.2</td><td>71.2</td><td>10.2</td><td>15.1</td><td>61.7 36.6</td><td>21.9</td><td>61.3</td><td>33.4</td></tr><tr><td>Two Head*</td><td>72.9</td><td>60.6</td><td>33.2</td><td>47.7</td><td>70.2</td><td>3.9</td><td>25.5</td><td>52.6</td><td>58.4 54.7</td><td>64.4</td><td>47.1</td></tr><tr><td>Two Head+*</td><td>72.4</td><td>44.5</td><td>29.5</td><td>52.4</td><td>68.4</td><td>5.1</td><td>22.6 53.0</td><td>55.5</td><td>58.6</td><td>64.8</td><td> 45.4</td></tr><tr><td>Two Branch*</td><td>72.7</td><td>57.3</td><td>30.2</td><td>44.2 68.1</td><td>3.0</td><td>21.4</td><td>52.2</td><td>53.5</td><td>51.2</td><td>59.7</td><td>44.1</td></tr><tr><td>Ours w/o SCM</td><td>71.6</td><td>62.3</td><td>41.9</td><td>38.2</td><td>73.0</td><td>11.3</td><td>26.0</td><td>60.6</td><td>63.8</td><td>70.5 65.3</td><td>51.3</td></tr><tr><td>Ours</td><td>72.9</td><td>61.0</td><td>57.1</td><td>63.5</td><td>72.0</td><td>19.5</td><td>24.2</td><td>60.9</td><td>58.6</td><td>68.5 65.5</td><td>55.1+3.8</td></tr><tr><td>Ours* w/o SCM</td><td>72.7</td><td>66.8</td><td>50.4</td><td>57.0 71.5</td><td></td><td>12.1 27.6</td><td>57.1</td><td>62.7</td><td>54.2</td><td>64.2</td><td>52.4</td></tr><tr><td>Ours*</td><td>72.7</td><td>60.9</td><td>59.4</td><td>70.5</td><td>71.0</td><td>17.5</td><td>24.1</td><td>62.0</td><td>60.5 62.4</td><td>69.1</td><td>55.7+8.3</td></tr></table>",
|
| 450 |
+
"bbox": [
|
| 451 |
+
173,
|
| 452 |
+
101,
|
| 453 |
+
790,
|
| 454 |
+
321
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 5
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "",
|
| 461 |
+
"bbox": [
|
| 462 |
+
174,
|
| 463 |
+
412,
|
| 464 |
+
823,
|
| 465 |
+
443
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 5
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "text",
|
| 471 |
+
"text": "Heatmap detection. We consider each class-agnostic heatmap as a two-channel image, and perform detection on it. Specifically, we learn a class-agnostic detector on base classes, that we further use to produce pseudo ground truth bounding boxes for novel objects. ",
|
| 472 |
+
"bbox": [
|
| 473 |
+
173,
|
| 474 |
+
449,
|
| 475 |
+
825,
|
| 476 |
+
491
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 5
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "For this task, we use a lightweight one-stage detector, consisting of only five convolutional layers. We follow the same network architecture and loss as FCOS (Tian et al. (2019)), replacing the backbone and feature pyramid network with five max pooling layers. In our experiments, we also compare this tiny detector to a baseline: using three fully-connected layers to regress the groundtruth location taking the coordinates of high-confidence bounding boxes as input. ",
|
| 483 |
+
"bbox": [
|
| 484 |
+
173,
|
| 485 |
+
497,
|
| 486 |
+
823,
|
| 487 |
+
568
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 5
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "text",
|
| 493 |
+
"text": "Loss of DRN. After introducing our SCM, we can formulate the full loss function for DRN. We use $L _ { r e c }$ , $L _ { d e t }$ , and $L _ { s c m }$ to indicate the losses from our recognition head, detection head, and spatial correlation module respectively. $\\lambda _ { r e c } , \\lambda _ { d e t }$ , and $\\lambda _ { s c m }$ are the regularization hyperparameters used to balance the three separate loss functions. We train our DRN using the following loss: ",
|
| 494 |
+
"bbox": [
|
| 495 |
+
173,
|
| 496 |
+
574,
|
| 497 |
+
825,
|
| 498 |
+
631
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 5
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "equation",
|
| 504 |
+
"img_path": "images/579f00d2f806a7f62ac4dedd95dd1bd906c1fee7f49092331d62c69bedccf6e4.jpg",
|
| 505 |
+
"text": "$$\nL = \\lambda _ { r e c } L _ { r e c } + \\lambda _ { d e t } L _ { d e t } + \\lambda _ { s c m } L _ { s c m }\n$$",
|
| 506 |
+
"text_format": "latex",
|
| 507 |
+
"bbox": [
|
| 508 |
+
366,
|
| 509 |
+
643,
|
| 510 |
+
629,
|
| 511 |
+
660
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 5
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "text",
|
| 517 |
+
"text": "5 EXPERIMENTS ",
|
| 518 |
+
"text_level": 1,
|
| 519 |
+
"bbox": [
|
| 520 |
+
174,
|
| 521 |
+
693,
|
| 522 |
+
326,
|
| 523 |
+
709
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 5
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "text",
|
| 529 |
+
"text": "5.1 PASCAL VOC ",
|
| 530 |
+
"text_level": 1,
|
| 531 |
+
"bbox": [
|
| 532 |
+
174,
|
| 533 |
+
723,
|
| 534 |
+
323,
|
| 535 |
+
738
|
| 536 |
+
],
|
| 537 |
+
"page_idx": 5
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"type": "text",
|
| 541 |
+
"text": "Setup. PASCAL VOC 2007 and 2012 datasets contain 9, 962 and 22, 531 images respectively for 20 object classes. They are divided into train, val, and test sets. Here we follow previous work (Tang et al. (2017)) to choose the trainval set (5, 011 images from 2007 and 11, 540 images from 2012). We divide the first 10 classes into base classes and the other 10 classes into novel classes. To evaluate our methods, we calculate mean of Average Precision (mAP) based on the PASCAL criteria, i.e., $\\mathrm { I O U } { > } 0 . 5$ between predicted boxes and ground truths. ",
|
| 542 |
+
"bbox": [
|
| 543 |
+
173,
|
| 544 |
+
748,
|
| 545 |
+
825,
|
| 546 |
+
833
|
| 547 |
+
],
|
| 548 |
+
"page_idx": 5
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "text",
|
| 552 |
+
"text": "Implementation details. All our baselines, competitors and our framework are based on VGG16 (Simonyan & Zisserman (2015)) followed most of weakly supervised object detection methods. We set $\\lambda _ { r e c } = 1$ , $\\lambda _ { d e t } = 1 0$ , and $\\lambda _ { s c m } = 1 0$ . We train the whole framework for 20 epochs using SGD with a momentum of 0.9, a weight decay of 0.0005 and a learning rate of 0.001, which is reduced by a factor of 10 at $1 4 ^ { t h }$ epoch. For a stable learning process, we don’t provide supervision from recognition head to detection head in the first 9 epochs. ",
|
| 553 |
+
"bbox": [
|
| 554 |
+
173,
|
| 555 |
+
840,
|
| 556 |
+
825,
|
| 557 |
+
924
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 5
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "table",
|
| 563 |
+
"img_path": "images/2836e932d9bb7f0b5dbaa5d2077a341a47e0a738af996c13b936d919138721b6.jpg",
|
| 564 |
+
"table_caption": [
|
| 565 |
+
"Table 2: The results on COCO. We compare our method with several strong baselines in $\\ S \\ 3 . 1$ and competitors. Our method significantly outperforms these approaches, showing that our crosssupervised object detector is capable of detecting novel objects in complex multi-object scenes. "
|
| 566 |
+
],
|
| 567 |
+
"table_footnote": [],
|
| 568 |
+
"table_body": "<table><tr><td rowspan=\"2\">method</td><td colspan=\"6\">non-voc -→ voc: test on B = {voc}</td><td colspan=\"6\"> sixty→ twenty: test on B= {twenty}</td></tr><tr><td>AP</td><td>AP50</td><td>AP75</td><td>APs APM</td><td></td><td>APL</td><td>AP</td><td>AP50</td><td>AP75 APsAPm APL</td><td></td><td></td><td></td></tr><tr><td>Rec. Head</td><td>4.0</td><td>15.4</td><td>0.9</td><td>1.2</td><td>5.7</td><td>5.8</td><td>4.7</td><td>16.4</td><td>1.3</td><td>1.7</td><td>8.0</td><td>6.9</td></tr><tr><td>OICR</td><td>4.2</td><td>15.7</td><td>1.0</td><td>1.3</td><td>5.5</td><td>5.9</td><td>4.5</td><td>16.6</td><td>1.4</td><td>2.0</td><td>8.2</td><td>7.1</td></tr><tr><td>PCL</td><td>9.2</td><td>19.6</td><td>-</td><td>-</td><td>1</td><td>-</td><td>9.2</td><td>19.6</td><td>-</td><td>-</td><td>1</td><td>-</td></tr><tr><td>Weight T.</td><td>9.3</td><td>26.4</td><td>5.7</td><td>5.8</td><td>11.7</td><td>12.4</td><td>8.7</td><td>25.5</td><td>5.5</td><td>5.4</td><td>11.5</td><td>11.7</td></tr><tr><td>Finetune</td><td>2.3</td><td>7.4</td><td>0.3</td><td>0.7</td><td>3.1</td><td>3.3</td><td>2.4</td><td>7.7</td><td>0.2</td><td>0.5</td><td>2.8</td><td>3.0</td></tr><tr><td>Two Head</td><td>11.0</td><td>30.2</td><td>6.1</td><td>6.2</td><td>15.4</td><td>15.4</td><td>11.3</td><td>29.5</td><td>5.8</td><td>6.3</td><td>14.8</td><td>15.0</td></tr><tr><td>Two Head+</td><td>9.1</td><td>26.7</td><td>5.4</td><td>5.5</td><td>12.1</td><td>12.3</td><td>9.0</td><td>27.1</td><td>5.4</td><td>5.7</td><td>11.7</td><td>11.6</td></tr><tr><td>Two Branch</td><td>9.4</td><td>26.6</td><td>5.6</td><td>5.7</td><td>12.3</td><td>12.4</td><td>8.5</td><td>24.4</td><td>4.5</td><td>4.3</td><td>11.9</td><td>11.9</td></tr><tr><td>Ours w/o SCM</td><td>12.5</td><td>33.6</td><td>6.6</td><td>7.3</td><td>19.2</td><td>16.4</td><td>12.6</td><td>32.3</td><td>7.8</td><td>7.0</td><td>19.4</td><td>17.4</td></tr><tr><td> Ours</td><td>13.9+1.4</td><td> 36.2+2.6</td><td>7.7</td><td>6.9</td><td>18.8</td><td>19.9</td><td>14.0+1.4</td><td> 34.5+2.2</td><td>8.9</td><td>7.1</td><td>19.2</td><td>20.6</td></tr></table>",
|
| 569 |
+
"bbox": [
|
| 570 |
+
173,
|
| 571 |
+
99,
|
| 572 |
+
825,
|
| 573 |
+
271
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 6
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "text",
|
| 579 |
+
"text": "Baselines and competitors. We compare against several baselines as mentioned in $\\ S \\ 3 . 1$ , two WSOD methods: OICR (Tang et al. (2017)) and PCL (Tang et al. (2018)), and two cross-supervised object detector: MSD (Zhang et al. (2018a)), weight transfer (Kuen et al. (2019)). ",
|
| 580 |
+
"bbox": [
|
| 581 |
+
174,
|
| 582 |
+
359,
|
| 583 |
+
825,
|
| 584 |
+
402
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 6
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "text",
|
| 590 |
+
"text": "Results. As shown in Table 1, our method outperforms all other approaches by a large margin (over $7 \\%$ relative increase in mAP on novel classes). The results are consistent with our discussion in $\\ S \\ 3 . 1$ . We note that (1) sharing backbone for the recognition and detection head learns a more discriminative embedding for novel objects. In Table 1, Two Head∗ boosts the performance by 5 points as compared to only using the recognition head (OICR). (2) A supervision from recognition head to detection head exploits the full potential of a detection model. By adding the supervision (Ours∗ w/o SCM ), the result is improved by 5 points as compared to Two Head. (3) Our spatial correlation module successfully captures the spatial correlation between high-confidence proposals. It further boosts the performance by 3 points. ",
|
| 591 |
+
"bbox": [
|
| 592 |
+
173,
|
| 593 |
+
409,
|
| 594 |
+
825,
|
| 595 |
+
535
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 6
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "table",
|
| 601 |
+
"img_path": "images/0e6185d41a461a802efa1a43ebf3f024f96611211da4572306b2b91ffeb31b2f.jpg",
|
| 602 |
+
"table_caption": [],
|
| 603 |
+
"table_footnote": [],
|
| 604 |
+
"table_body": "<table><tr><td>method</td><td>non-voc-→voc AP50 on B</td><td>sixty-→twenty AP50 on B</td></tr><tr><td>2 layer Fc layer 3 layer</td><td>31.0 30.8</td><td>28.7 28.3</td></tr><tr><td>4 layer</td><td>30.5</td><td>28.5</td></tr><tr><td>R-50-FPN</td><td>36.4</td><td>34.8</td></tr><tr><td>FCOS 4 conv</td><td>35.8</td><td>33.8</td></tr><tr><td>5 conv</td><td>36.2</td><td>34.5</td></tr><tr><td>w/o SCM</td><td>33.6</td><td>32.3</td></tr></table>",
|
| 605 |
+
"bbox": [
|
| 606 |
+
509,
|
| 607 |
+
571,
|
| 608 |
+
823,
|
| 609 |
+
689
|
| 610 |
+
],
|
| 611 |
+
"page_idx": 6
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"type": "text",
|
| 615 |
+
"text": "(a) Ablation on Heatmap synthesis. The result suggests using two-channel heatmap consists of maximum confidence and sum of confidence over proposals covering that position. ",
|
| 616 |
+
"bbox": [
|
| 617 |
+
179,
|
| 618 |
+
694,
|
| 619 |
+
488,
|
| 620 |
+
746
|
| 621 |
+
],
|
| 622 |
+
"page_idx": 6
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"type": "text",
|
| 626 |
+
"text": "(b) Ablation on the structure of SCM. FCOS with 5 conv layers has nearly the best performance and very few parameters compared to a ResNet-50 backbone. ",
|
| 627 |
+
"bbox": [
|
| 628 |
+
509,
|
| 629 |
+
694,
|
| 630 |
+
816,
|
| 631 |
+
744
|
| 632 |
+
],
|
| 633 |
+
"page_idx": 6
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"type": "table",
|
| 637 |
+
"img_path": "images/4571cf8d4feadee3f2e1648b3687e56b47b9d4bfd89dc36ae6851355760b6514.jpg",
|
| 638 |
+
"table_caption": [
|
| 639 |
+
"Table 3: Ablation study of our method. "
|
| 640 |
+
],
|
| 641 |
+
"table_footnote": [],
|
| 642 |
+
"table_body": "<table><tr><td></td><td>non-voc-→voc AP50 on B</td><td>sixty→twenty AP50 on B</td></tr><tr><td>method max</td><td>35.5</td><td>33.8</td></tr><tr><td>sum</td><td>36.0</td><td>34.0</td></tr><tr><td>num</td><td>31.5</td><td>29.5</td></tr><tr><td>max+sum</td><td>36.2</td><td>34.5</td></tr><tr><td>max+num</td><td>35.7</td><td>34.1</td></tr><tr><td>sum+num</td><td>35.9</td><td>34.2</td></tr><tr><td>max+sum+num</td><td>36.1</td><td>34.2</td></tr></table>",
|
| 643 |
+
"bbox": [
|
| 644 |
+
183,
|
| 645 |
+
571,
|
| 646 |
+
485,
|
| 647 |
+
688
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 6
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "table",
|
| 653 |
+
"img_path": "images/efbb49b9ed92ec1af551979fa652cca039a15b9203cc5a1c16c997b7ba7f41ca.jpg",
|
| 654 |
+
"table_caption": [],
|
| 655 |
+
"table_footnote": [],
|
| 656 |
+
"table_body": "<table><tr><td>method</td><td>non-voc-→voc AP50 on B</td><td>sixty-→twenty AP50 on B</td></tr><tr><td>WSDDN</td><td>35.7</td><td>33.8</td></tr><tr><td>OICR</td><td>36.6</td><td>34.7</td></tr><tr><td>Ours</td><td>36.4</td><td>34.5</td></tr></table>",
|
| 657 |
+
"bbox": [
|
| 658 |
+
183,
|
| 659 |
+
746,
|
| 660 |
+
485,
|
| 661 |
+
813
|
| 662 |
+
],
|
| 663 |
+
"page_idx": 6
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"type": "table",
|
| 667 |
+
"img_path": "images/51109980375222f7fdb86fe1ae068bde84a89ece724e9d6e2857c1d7eb69d77e.jpg",
|
| 668 |
+
"table_caption": [],
|
| 669 |
+
"table_footnote": [],
|
| 670 |
+
"table_body": "<table><tr><td colspan=\"2\"></td><td colspan=\"2\">base-novel AP50 on A AP5o on B</td></tr><tr><td rowspan=\"2\">dataset PASCAL VOC</td><td>method</td><td></td><td rowspan=\"2\">46.1</td></tr><tr><td>RPN</td><td>76.2</td></tr><tr><td rowspan=\"2\">non-voc->voc</td><td>SS</td><td>72.7</td><td>55.7</td></tr><tr><td>RPN SS</td><td>46.3 42.5</td><td>36.2 34.5</td></tr></table>",
|
| 671 |
+
"bbox": [
|
| 672 |
+
514,
|
| 673 |
+
746,
|
| 674 |
+
813,
|
| 675 |
+
824
|
| 676 |
+
],
|
| 677 |
+
"page_idx": 6
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"type": "text",
|
| 681 |
+
"text": "(c) Ablation on the structure of the recognition head. OICR has more refinement branches so it behaves a little better than our recognition head but takes double the computation time. ",
|
| 682 |
+
"bbox": [
|
| 683 |
+
179,
|
| 684 |
+
829,
|
| 685 |
+
488,
|
| 686 |
+
881
|
| 687 |
+
],
|
| 688 |
+
"page_idx": 6
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"type": "text",
|
| 692 |
+
"text": "(d) Ablation on the proposal generator. On PASCAL VOC, there are not enough categories to learn a good RPN. So, we use selective search and RPN to generate proposals for PASCAL VOC and COCO respectively. ",
|
| 693 |
+
"bbox": [
|
| 694 |
+
509,
|
| 695 |
+
829,
|
| 696 |
+
816,
|
| 697 |
+
893
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 6
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "image",
|
| 703 |
+
"img_path": "images/519db407a3bc2c8ce24f79950a80c288e4bc2f54370abe1a7373dbc299411de4.jpg",
|
| 704 |
+
"image_caption": [
|
| 705 |
+
"Figure 4: Detection results on novel objects. The results are from our proposed model but with different heads. The first row shows the results of the recognition head. The second row lists the results from SCM. The third row displays the results from the detection head. "
|
| 706 |
+
],
|
| 707 |
+
"image_footnote": [],
|
| 708 |
+
"bbox": [
|
| 709 |
+
189,
|
| 710 |
+
103,
|
| 711 |
+
813,
|
| 712 |
+
337
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 7
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "5.2 COCO ",
|
| 719 |
+
"text_level": 1,
|
| 720 |
+
"bbox": [
|
| 721 |
+
174,
|
| 722 |
+
421,
|
| 723 |
+
264,
|
| 724 |
+
435
|
| 725 |
+
],
|
| 726 |
+
"page_idx": 7
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "text",
|
| 730 |
+
"text": "Setup. We train on the COCO train2017 split and test on val2017 split. We simulate the crosssupervised object detection scenario on COCO by splitting the 80 classes into base and novel classes. We use a 20/60 split same as Hu et al. (2018), dividing the COCO categories into all the 20 classes contained in PASCAL VOC and the 60 that are not. We refer to these as the ‘voc’ and ‘non-voc’ category sets. ‘voc non-voc’ indicates that we take ‘voc’ as our base classes and ‘non-voc’ as our novel classes. Similarly, we split the first 20 classes into ‘twenty’ and the last 60 classes into ’sixty’. ",
|
| 731 |
+
"bbox": [
|
| 732 |
+
174,
|
| 733 |
+
449,
|
| 734 |
+
825,
|
| 735 |
+
534
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 7
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "Implementation details. The implementation details are the same as $\\ S 5 . 1$ by default. We train the whole framework for 13 epochs. There is no supervision from recognition head to detection head in the first 5 epochs. The learning rate is reduced by a factor of 10 at $\\bar { 8 } ^ { t h }$ , and $1 2 ^ { t h }$ epochs. ",
|
| 742 |
+
"bbox": [
|
| 743 |
+
174,
|
| 744 |
+
540,
|
| 745 |
+
823,
|
| 746 |
+
583
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 7
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "Baselines and competitors. Most baselines and competitors are the same as $\\ S \\ S . 1$ . ’Rec. Head’ represents only using our recognition head structure as a weakly supervised object detector. ",
|
| 753 |
+
"bbox": [
|
| 754 |
+
173,
|
| 755 |
+
589,
|
| 756 |
+
820,
|
| 757 |
+
617
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 7
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "Results. The results on COCO still support our discussion in $\\ S 5 . 1$ . Even in complex multi objects scenes, our DRN outperforms all baselines and competitors by a large margin. ",
|
| 764 |
+
"bbox": [
|
| 765 |
+
173,
|
| 766 |
+
625,
|
| 767 |
+
823,
|
| 768 |
+
654
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 7
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "5.3 ABLATION EXPERIMENTS ",
|
| 775 |
+
"text_level": 1,
|
| 776 |
+
"bbox": [
|
| 777 |
+
174,
|
| 778 |
+
679,
|
| 779 |
+
393,
|
| 780 |
+
693
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 7
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "Heatmap synthesis. In Table 3a, we compare the different methods to synthesize the heatmaps in the spatial correlation module. For each position in the heatmap, we consider three kinds of values: the maximum of confidence, the sum of confidence, and the number of proposals covering the position. This result informs us to use max and sum to create a two-channel heatmap. ",
|
| 787 |
+
"bbox": [
|
| 788 |
+
174,
|
| 789 |
+
707,
|
| 790 |
+
825,
|
| 791 |
+
762
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 7
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "text",
|
| 797 |
+
"text": "Structure of SCM. In Table 3b, we compare different implementations of SCM. We compare the FCOS (Tian et al. (2019)) with 5 convolutional layers and the standard FCOS with a ResNet-50 (He et al. (2016)) backbone. We also compare to the regression baseline mentioned in $\\ S 4$ . Considering the computation cost, we choose FCOS with 5 convolutional layer as our heatmap detector. ",
|
| 798 |
+
"bbox": [
|
| 799 |
+
174,
|
| 800 |
+
770,
|
| 801 |
+
825,
|
| 802 |
+
825
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 7
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "Structure of the Recognition head. In Table 3c, we compare different structures for the recognition head. WSDDN (Bilen & Vedaldi (2016)) and OICR are compared to our structure. The results support that our model can benefit from a stronger recognition head. ",
|
| 809 |
+
"bbox": [
|
| 810 |
+
174,
|
| 811 |
+
833,
|
| 812 |
+
823,
|
| 813 |
+
875
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 7
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "Different proposal generation methods. Table 3d shows the ablation of different ways to generate proposals. In PASCAL VOC with only 10 base classes, RPN performs worse than selective search. In COCO with 60 base classes, RPN performs better than selective search. ",
|
| 820 |
+
"bbox": [
|
| 821 |
+
176,
|
| 822 |
+
881,
|
| 823 |
+
823,
|
| 824 |
+
924
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 7
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "Visualization. Fig. 4 shows detection results on novel objects. Images in the first row, the second row, and the third row are detected by our model from the recognition head, the SCM, and the detection head respectively. The images in the first row tend to focus on the discriminating parts of the objects, e.g. the first and the second images contain only a part of the person. It also tends to detect co-occurring objects, e.g. the fourth image not only detects horse but also a large part of the person. Our SCM alleviates these problems. It tends to focus on the whole object, e.g. the first and the third samples detect the whole person instead of only the head. Also, it can correct unsatisfactory bounding boxes distracted by co-occurring objects, e.g. SCM correctly localizes the horse instead of localizing both the person and the horse in the fourth example. Obviously, bounding boxes in the third row are the best, indicating the efficacy of our framework. ",
|
| 831 |
+
"bbox": [
|
| 832 |
+
173,
|
| 833 |
+
103,
|
| 834 |
+
825,
|
| 835 |
+
242
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 8
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "6 CONCLUSION ",
|
| 842 |
+
"text_level": 1,
|
| 843 |
+
"bbox": [
|
| 844 |
+
174,
|
| 845 |
+
262,
|
| 846 |
+
318,
|
| 847 |
+
277
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 8
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "text",
|
| 853 |
+
"text": "In this paper, we have focused on cross-supervised object detection in realistic settings with complex imagery. We explore two major ways to build a good cross-supervised object detector: sharing network backbone between a recognition head and a detection head, and learning a spatial correlation module to bridge the gap between recognition and detection. Significant improvement on PASCAL VOC and COCO suggests a novel and promising approach for expanding object detection to a much larger number of categories. ",
|
| 854 |
+
"bbox": [
|
| 855 |
+
174,
|
| 856 |
+
291,
|
| 857 |
+
825,
|
| 858 |
+
376
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 8
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "text",
|
| 864 |
+
"text": "REFERENCES ",
|
| 865 |
+
"text_level": 1,
|
| 866 |
+
"bbox": [
|
| 867 |
+
174,
|
| 868 |
+
398,
|
| 869 |
+
285,
|
| 870 |
+
412
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 8
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "text",
|
| 876 |
+
"text": "Aditya Arun, C.V. Jawahar, and M. Pawan Kumar. Dissimilarity coefficient based weakly supervised object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. ",
|
| 877 |
+
"bbox": [
|
| 878 |
+
174,
|
| 879 |
+
421,
|
| 880 |
+
825,
|
| 881 |
+
464
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 8
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "Hakan Bilen and Andrea Vedaldi. Weakly supervised deep detection networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. ",
|
| 888 |
+
"bbox": [
|
| 889 |
+
173,
|
| 890 |
+
476,
|
| 891 |
+
823,
|
| 892 |
+
505
|
| 893 |
+
],
|
| 894 |
+
"page_idx": 8
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"type": "text",
|
| 898 |
+
"text": "Ali Diba, Vivek Sharma, Ali Pazandeh, Hamed Pirsiavash, and Luc Van Gool. Weakly supervised cascaded convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. ",
|
| 899 |
+
"bbox": [
|
| 900 |
+
176,
|
| 901 |
+
515,
|
| 902 |
+
823,
|
| 903 |
+
559
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 8
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "text",
|
| 909 |
+
"text": "Thomas G Dietterich, Richard H Lathrop, and Tomas Lozano-P ´ erez. Solving the multiple instance ´ problem with axis-parallel rectangles. Artificial intelligence, 1997. ",
|
| 910 |
+
"bbox": [
|
| 911 |
+
173,
|
| 912 |
+
569,
|
| 913 |
+
821,
|
| 914 |
+
599
|
| 915 |
+
],
|
| 916 |
+
"page_idx": 8
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"type": "text",
|
| 920 |
+
"text": "Mark Everingham, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. International journal of computer vision (IJCV), 2010. ",
|
| 921 |
+
"bbox": [
|
| 922 |
+
173,
|
| 923 |
+
609,
|
| 924 |
+
825,
|
| 925 |
+
652
|
| 926 |
+
],
|
| 927 |
+
"page_idx": 8
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"type": "text",
|
| 931 |
+
"text": "Jiyang Gao, Jiang Wang, Shengyang Dai, Li-Jia Li, and Ram Nevatia. Note-rcnn: Noise tolerant ensemble rcnn for semi-supervised object detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019a. ",
|
| 932 |
+
"bbox": [
|
| 933 |
+
176,
|
| 934 |
+
664,
|
| 935 |
+
823,
|
| 936 |
+
707
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 8
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "Yan Gao, Boxiao Liu, Nan Guo, Xiaochun Ye, Fang Wan, Haihang You, and Dongrui Fan. Cmidn: Coupled multiple instance detection network with segmentation guidance for weakly supervised object detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019b. ",
|
| 943 |
+
"bbox": [
|
| 944 |
+
174,
|
| 945 |
+
718,
|
| 946 |
+
825,
|
| 947 |
+
775
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 8
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "text",
|
| 953 |
+
"text": "Ross Girshick. Fast r-cnn. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2015. ",
|
| 954 |
+
"bbox": [
|
| 955 |
+
173,
|
| 956 |
+
786,
|
| 957 |
+
823,
|
| 958 |
+
815
|
| 959 |
+
],
|
| 960 |
+
"page_idx": 8
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"type": "text",
|
| 964 |
+
"text": "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 (CVPR), 2016. ",
|
| 965 |
+
"bbox": [
|
| 966 |
+
173,
|
| 967 |
+
827,
|
| 968 |
+
821,
|
| 969 |
+
869
|
| 970 |
+
],
|
| 971 |
+
"page_idx": 8
|
| 972 |
+
},
|
| 973 |
+
{
|
| 974 |
+
"type": "text",
|
| 975 |
+
"text": "Judy Hoffman, Sergio Guadarrama, Eric S Tzeng, Ronghang Hu, Jeff Donahue, Ross Girshick, Trevor Darrell, and Kate Saenko. Lsda: Large scale detection through adaptation. In Advances in Neural Information Processing Systems (NeurIPS), 2014. ",
|
| 976 |
+
"bbox": [
|
| 977 |
+
174,
|
| 978 |
+
881,
|
| 979 |
+
823,
|
| 980 |
+
924
|
| 981 |
+
],
|
| 982 |
+
"page_idx": 8
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"type": "text",
|
| 986 |
+
"text": "Judy Hoffman, Deepak Pathak, Trevor Darrell, and Kate Saenko. Detector discovery in the wild: Joint multiple instance and representation learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2015. ",
|
| 987 |
+
"bbox": [
|
| 988 |
+
176,
|
| 989 |
+
103,
|
| 990 |
+
823,
|
| 991 |
+
146
|
| 992 |
+
],
|
| 993 |
+
"page_idx": 9
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"type": "text",
|
| 997 |
+
"text": "Ronghang Hu, Piotr Dollar, Kaiming He, Trevor Darrell, and Ross Girshick. Learning to segment ´ every thing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. ",
|
| 998 |
+
"bbox": [
|
| 999 |
+
173,
|
| 1000 |
+
157,
|
| 1001 |
+
825,
|
| 1002 |
+
200
|
| 1003 |
+
],
|
| 1004 |
+
"page_idx": 9
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"type": "text",
|
| 1008 |
+
"text": "Satoshi Kosugi, Toshihiko Yamasaki, and Kiyoharu Aizawa. Object-aware instance labeling for weakly supervised object detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019. ",
|
| 1009 |
+
"bbox": [
|
| 1010 |
+
173,
|
| 1011 |
+
212,
|
| 1012 |
+
825,
|
| 1013 |
+
255
|
| 1014 |
+
],
|
| 1015 |
+
"page_idx": 9
|
| 1016 |
+
},
|
| 1017 |
+
{
|
| 1018 |
+
"type": "text",
|
| 1019 |
+
"text": "Jason Kuen, Federico Perazzi, Zhe Lin, Jianming Zhang, and Yap-Peng Tan. Scaling object detection by transferring classification weights. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019. ",
|
| 1020 |
+
"bbox": [
|
| 1021 |
+
173,
|
| 1022 |
+
266,
|
| 1023 |
+
825,
|
| 1024 |
+
309
|
| 1025 |
+
],
|
| 1026 |
+
"page_idx": 9
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"type": "text",
|
| 1030 |
+
"text": "Xiaoyan Li, Meina Kan, Shiguang Shan, and Xilin Chen. Weakly supervised object detection with segmentation collaboration. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019. ",
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
173,
|
| 1033 |
+
320,
|
| 1034 |
+
826,
|
| 1035 |
+
364
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 9
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "text",
|
| 1041 |
+
"text": "Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ´ Proceedings of the European Conference on Computer Vision (ECCV), 2014. ",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
173,
|
| 1044 |
+
376,
|
| 1045 |
+
825,
|
| 1046 |
+
420
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 9
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollar. Focal loss for dense object ´ detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2017. ",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
174,
|
| 1055 |
+
430,
|
| 1056 |
+
825,
|
| 1057 |
+
473
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 9
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "Joseph Redmon and Ali Farhadi. Yolo9000: better, faster, stronger. In Proceedings of the IEEE International Conference on Computer Vision (CVPR), 2017. ",
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
173,
|
| 1066 |
+
484,
|
| 1067 |
+
825,
|
| 1068 |
+
515
|
| 1069 |
+
],
|
| 1070 |
+
"page_idx": 9
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "text",
|
| 1074 |
+
"text": "Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. ",
|
| 1075 |
+
"bbox": [
|
| 1076 |
+
173,
|
| 1077 |
+
525,
|
| 1078 |
+
823,
|
| 1079 |
+
569
|
| 1080 |
+
],
|
| 1081 |
+
"page_idx": 9
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"type": "text",
|
| 1085 |
+
"text": "Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in Neural Information Processing Systems (NeurIPS), 2015. ",
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
173,
|
| 1088 |
+
580,
|
| 1089 |
+
825,
|
| 1090 |
+
623
|
| 1091 |
+
],
|
| 1092 |
+
"page_idx": 9
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"type": "text",
|
| 1096 |
+
"text": "Zhongzheng Ren, Zhiding Yu, Xiaodong Yang, Ming-Yu Liu, Yong Jae Lee, Alexander G Schwing, and Jan Kautz. Instance-aware, context-focused, and memory-efficient weakly supervised object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020. ",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
173,
|
| 1099 |
+
635,
|
| 1100 |
+
825,
|
| 1101 |
+
691
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 9
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "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), 2015. ",
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
174,
|
| 1110 |
+
703,
|
| 1111 |
+
825,
|
| 1112 |
+
761
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 9
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "text",
|
| 1118 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In Proceedings of the International Conference on Learning Representations (ICLR), 2015. ",
|
| 1119 |
+
"bbox": [
|
| 1120 |
+
174,
|
| 1121 |
+
772,
|
| 1122 |
+
825,
|
| 1123 |
+
814
|
| 1124 |
+
],
|
| 1125 |
+
"page_idx": 9
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"type": "text",
|
| 1129 |
+
"text": "Peng Tang, Xinggang Wang, Xiang Bai, and Wenyu Liu. Multiple instance detection network with online instance classifier refinement. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. ",
|
| 1130 |
+
"bbox": [
|
| 1131 |
+
173,
|
| 1132 |
+
827,
|
| 1133 |
+
823,
|
| 1134 |
+
869
|
| 1135 |
+
],
|
| 1136 |
+
"page_idx": 9
|
| 1137 |
+
},
|
| 1138 |
+
{
|
| 1139 |
+
"type": "text",
|
| 1140 |
+
"text": "Peng Tang, Xinggang Wang, Song Bai, Wei Shen, Xiang Bai, Wenyu Liu, and Alan Yuille. Pcl: Proposal cluster learning for weakly supervised object detection. IEEE transactions on pattern analysis and machine intelligence, 2018. ",
|
| 1141 |
+
"bbox": [
|
| 1142 |
+
174,
|
| 1143 |
+
881,
|
| 1144 |
+
825,
|
| 1145 |
+
924
|
| 1146 |
+
],
|
| 1147 |
+
"page_idx": 9
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"type": "text",
|
| 1151 |
+
"text": "Yuxing Tang, Josiah Wang, Boyang Gao, Emmanuel Dellandrea, Robert Gaizauskas, and Liming ´ Chen. Large scale semi-supervised object detection using visual and semantic knowledge transfer. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. ",
|
| 1152 |
+
"bbox": [
|
| 1153 |
+
174,
|
| 1154 |
+
103,
|
| 1155 |
+
825,
|
| 1156 |
+
159
|
| 1157 |
+
],
|
| 1158 |
+
"page_idx": 10
|
| 1159 |
+
},
|
| 1160 |
+
{
|
| 1161 |
+
"type": "text",
|
| 1162 |
+
"text": "Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. Fcos: Fully convolutional one-stage object detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019. ",
|
| 1163 |
+
"bbox": [
|
| 1164 |
+
173,
|
| 1165 |
+
169,
|
| 1166 |
+
823,
|
| 1167 |
+
210
|
| 1168 |
+
],
|
| 1169 |
+
"page_idx": 10
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"type": "text",
|
| 1173 |
+
"text": "Jasper Uijlings, Stefan Popov, and Vittorio Ferrari. Revisiting knowledge transfer for training object class detectors. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. ",
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
173,
|
| 1176 |
+
219,
|
| 1177 |
+
825,
|
| 1178 |
+
262
|
| 1179 |
+
],
|
| 1180 |
+
"page_idx": 10
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"type": "text",
|
| 1184 |
+
"text": "Jasper RR Uijlings, Koen EA Van De Sande, Theo Gevers, and Arnold WM Smeulders. Selective search for object recognition. International journal of computer vision (IJCV), 2013. ",
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
171,
|
| 1187 |
+
271,
|
| 1188 |
+
823,
|
| 1189 |
+
301
|
| 1190 |
+
],
|
| 1191 |
+
"page_idx": 10
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"type": "text",
|
| 1195 |
+
"text": "Fang Wan, Pengxu Wei, Jianbin Jiao, Zhenjun Han, and Qixiang Ye. Min-entropy latent model for weakly supervised object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. ",
|
| 1196 |
+
"bbox": [
|
| 1197 |
+
173,
|
| 1198 |
+
309,
|
| 1199 |
+
825,
|
| 1200 |
+
352
|
| 1201 |
+
],
|
| 1202 |
+
"page_idx": 10
|
| 1203 |
+
},
|
| 1204 |
+
{
|
| 1205 |
+
"type": "text",
|
| 1206 |
+
"text": "Fang Wan, Chang Liu, Wei Ke, Xiangyang Ji, Jianbin Jiao, and Qixiang Ye. C-mil: Continuation multiple instance learning for weakly supervised object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. ",
|
| 1207 |
+
"bbox": [
|
| 1208 |
+
173,
|
| 1209 |
+
361,
|
| 1210 |
+
826,
|
| 1211 |
+
404
|
| 1212 |
+
],
|
| 1213 |
+
"page_idx": 10
|
| 1214 |
+
},
|
| 1215 |
+
{
|
| 1216 |
+
"type": "text",
|
| 1217 |
+
"text": "Yunchao Wei, Zhiqiang Shen, Bowen Cheng, Honghui Shi, Jinjun Xiong, Jiashi Feng, and Thomas Huang. Ts2c: Tight box mining with surrounding segmentation context for weakly supervised object detection. In Proceedings of the European Conference on Computer Vision (ECCV), 2018. ",
|
| 1218 |
+
"bbox": [
|
| 1219 |
+
176,
|
| 1220 |
+
412,
|
| 1221 |
+
825,
|
| 1222 |
+
455
|
| 1223 |
+
],
|
| 1224 |
+
"page_idx": 10
|
| 1225 |
+
},
|
| 1226 |
+
{
|
| 1227 |
+
"type": "text",
|
| 1228 |
+
"text": "Hao Yang, Hao Wu, and Hao Chen. Detecting 11k classes: Large scale object detection without fine-grained bounding boxes. In Proceedings of the IEEE International Conference on Computer Vision (CVPR), 2019a. ",
|
| 1229 |
+
"bbox": [
|
| 1230 |
+
173,
|
| 1231 |
+
463,
|
| 1232 |
+
823,
|
| 1233 |
+
507
|
| 1234 |
+
],
|
| 1235 |
+
"page_idx": 10
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"type": "text",
|
| 1239 |
+
"text": "Ke Yang, Dongsheng Li, and Yong Dou. Towards precise end-to-end weakly supervised object detection network. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019b. ",
|
| 1240 |
+
"bbox": [
|
| 1241 |
+
173,
|
| 1242 |
+
515,
|
| 1243 |
+
825,
|
| 1244 |
+
558
|
| 1245 |
+
],
|
| 1246 |
+
"page_idx": 10
|
| 1247 |
+
},
|
| 1248 |
+
{
|
| 1249 |
+
"type": "text",
|
| 1250 |
+
"text": "Zhaoyang Zeng, Bei Liu, Jianlong Fu, Hongyang Chao, and Lei Zhang. Wsod2: Learning bottomup and top-down objectness distillation for weakly-supervised object detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019. ",
|
| 1251 |
+
"bbox": [
|
| 1252 |
+
173,
|
| 1253 |
+
566,
|
| 1254 |
+
823,
|
| 1255 |
+
611
|
| 1256 |
+
],
|
| 1257 |
+
"page_idx": 10
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"type": "text",
|
| 1261 |
+
"text": "Junge Zhang, Kaiqi Huang, Jianguo Zhang, et al. Mixed supervised object detection with robust objectness transfer. IEEE transactions on pattern analysis and machine intelligence, 2018a. ",
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
171,
|
| 1264 |
+
618,
|
| 1265 |
+
821,
|
| 1266 |
+
648
|
| 1267 |
+
],
|
| 1268 |
+
"page_idx": 10
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"type": "text",
|
| 1272 |
+
"text": "Xiaopeng Zhang, Jiashi Feng, Hongkai Xiong, and Qi Tian. Zigzag learning for weakly supervised object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018b. ",
|
| 1273 |
+
"bbox": [
|
| 1274 |
+
173,
|
| 1275 |
+
656,
|
| 1276 |
+
825,
|
| 1277 |
+
699
|
| 1278 |
+
],
|
| 1279 |
+
"page_idx": 10
|
| 1280 |
+
},
|
| 1281 |
+
{
|
| 1282 |
+
"type": "text",
|
| 1283 |
+
"text": "Yongqiang Zhang, Yancheng Bai, Mingli Ding, Yongqiang Li, and Bernard Ghanem. W2f: A weakly-supervised to fully-supervised framework for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018c. ",
|
| 1284 |
+
"bbox": [
|
| 1285 |
+
174,
|
| 1286 |
+
708,
|
| 1287 |
+
825,
|
| 1288 |
+
751
|
| 1289 |
+
],
|
| 1290 |
+
"page_idx": 10
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"type": "text",
|
| 1294 |
+
"text": "Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. ",
|
| 1295 |
+
"bbox": [
|
| 1296 |
+
174,
|
| 1297 |
+
760,
|
| 1298 |
+
825,
|
| 1299 |
+
803
|
| 1300 |
+
],
|
| 1301 |
+
"page_idx": 10
|
| 1302 |
+
}
|
| 1303 |
+
]
|
parse/train/--rcOeCKRh/--rcOeCKRh_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/--rcOeCKRh/--rcOeCKRh_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Bki4EfWCb/Bki4EfWCb.md
ADDED
|
@@ -0,0 +1,366 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# INFERENCE SUBOPTIMALITY IN VARIATIONAL AUTOENCODERS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Amortized inference has led to efficient approximate inference for large datasets. The quality of posterior inference is largely determined by two factors: a) the ability of the variational distribution to model the true posterior and b) the capacity of the recognition network to generalize inference over all datapoints. We analyze approximate inference in variational autoencoders in terms of these factors. We find that suboptimal inference is often due to amortizing inference rather than the limited complexity of the approximating distribution. We show that this is due partly to the generator learning to accommodate the choice of approximation. Furthermore, we show that the parameters used to increase the expressiveness of the approximation play a role in generalizing inference rather than simply improving the complexity of the approximation.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
There has been significant work on improving inference in variational autoencoders (VAEs) (Kingma & Welling, 2014; Rezende et al., 2014) through the development of expressive approximate posteriors (Rezende & Mohamed, 2015; Kingma et al., 2016; Ranganath et al., 2016; Tomczak & Welling, 2016; 2017). These works have shown that with more expressive approximate posteriors, the model learns a better distribution over the data.
|
| 12 |
+
|
| 13 |
+
In this paper, we analyze inference suboptimality in VAEs: the mismatch between the true and approximate posterior. In other words, we are interested in understanding what factors cause the gap between the marginal log-likelihood and the evidence lower bound (ELBO). We refer to this as the inference gap. Moreover, we break down the inference gap into two components: the approximation gap and the amortization gap. The approximation gap comes from the inability of the approximate distribution family to exactly match the true posterior. The amortization gap refers to the difference caused by amortizing the variational parameters over the entire training set, instead of optimizing for each datapoint independently. We refer the reader to Table 1 for detailed definitions and Figure 1 for a simple illustration of the gaps. In Figure 1, ${ \mathcal { L } } [ q ]$ refers to the ELBO using an amortized distribution $q$ , whereas $q ^ { * }$ is the optimal $q$ within its variational family.
|
| 14 |
+
|
| 15 |
+
Our experiments investigate how the choice of encoder, posterior approximation, decoder, and model optimization affect the approximation and amortization gaps. We train VAE models in a number of settings on the MNIST, Fashion-MNIST (Xiao et al., 2017), and CIFAR10 datasets.
|
| 16 |
+
|
| 17 |
+
Our contributions are: a) we investigate inference suboptimality in terms of the approximation and amortization gaps, providing insight to guide future improvements in VAE inference, b) we quantitatively demonstrate that the learned true posterior accommodates the choice of approximation, and c) we demonstrate that using parameterized functions to improve the expressiveness of the approximation plays a large role in reducing error caused by amortization.
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Gaps in Inference
|
| 21 |
+
|
| 22 |
+
<table><tr><td>Term</td><td>Definition</td><td>VAE Formulation</td></tr><tr><td>Inference</td><td>logp(x)-L[q]</td><td>KL(q(z|x)llp(z|x))</td></tr><tr><td>Approximation</td><td>logp(x)-L[q*]</td><td>KL(q*(z|x)lp(z|x))</td></tr><tr><td>Amortization</td><td>C-C[a]</td><td>KL(q(z|x)llp(z|x))-KL(q*(z|x)llp(z|x))</td></tr></table>
|
| 23 |
+
|
| 24 |
+
Table 1: Summary of Gap Terms. The middle column refers to the general case where our variational objective is a lower bound on the marginal log-likelihood (not necessarily the ELBO). The right most column demonstrates the specific case in VAEs. $q ^ { * } ( z | x )$ refers to the optimal approximation within a family $\mathcal { Q }$ , i.e. $\begin{array} { r } { q ^ { * } ( z | x ) = \mathrm { \bar { a r g m i n } } _ { q \in \mathcal { Q } } \mathrm { K L } \left( q ( z | \bar { x } ) | | \dot { p ( z | x ) } \right) } \end{array}$ .
|
| 25 |
+
|
| 26 |
+
# 2 BACKGROUND
|
| 27 |
+
|
| 28 |
+
# 2.1 INFERENCE IN VARIATIONAL AUTOENCODERS
|
| 29 |
+
|
| 30 |
+
Let $x$ be the observed variable, $z$ the latent variable, and $p ( x , z )$ be their joint distribution. Given a dataset $X = \{ x _ { 1 } , x _ { 2 } , . . . , x _ { N } \}$ , we would like to maximize the marginal log-likelihood:
|
| 31 |
+
|
| 32 |
+
$$
|
| 33 |
+
\log p ( X ) = \sum _ { i = 1 } ^ { N } \log p ( x _ { i } ) = \sum _ { i = 1 } ^ { N } \log \int p ( x _ { i } , z _ { i } ) d z _ { i } .
|
| 34 |
+
$$
|
| 35 |
+
|
| 36 |
+
In practice, the marginal log-likelihood is computationally intractable due to the integration over the latent variable $z$ . Instead, VAEs optimize the ELBO of the marginal log-likelihood (Kingma & Welling, 2014; Rezende et al., 2014):
|
| 37 |
+
|
| 38 |
+
$$
|
| 39 |
+
\begin{array} { r l } & { \log p ( x ) = \mathbb { E } _ { z \sim q ( z \mid x ) } \left[ \log \left( \displaystyle \frac { p ( x , z ) } { q ( z \mid x ) } \right) \right] + { \mathrm { K L } } \left( q ( z \mid x ) | | p ( z | x ) \right) } \\ & { \phantom { \exp x } \geq \mathbb { E } _ { z \sim q ( z \mid x ) } \left[ \log \left( \displaystyle \frac { p ( x , z ) } { q ( z \mid x ) } \right) \right] = \mathcal { L } _ { \mathrm { V A E } } [ q ] . } \end{array}
|
| 40 |
+
$$
|
| 41 |
+
|
| 42 |
+
From the above we can see that the lower bound is tight if $q ( z | x ) = p ( z | x )$ . The choice of $q ( z | x )$ is often a factorized Gaussian distribution for its simplicity and efficiency. VAEs perform amortized inference by utilizing a recognition network (encoder), resulting in efficient approximate inference for large datasets. The overall model is trained by stochastically optimizing the ELBO using the reparametrization trick (Kingma & Welling, 2014).
|
| 43 |
+
|
| 44 |
+
# 2.2 EXPRESSIVE APPROXIMATE POSTERIORS
|
| 45 |
+
|
| 46 |
+
There are a number of strategies for increasing the expressiveness of approximate posteriors, going beyond the original factorized-Gaussian. We briefly summarize normalizing flows and auxiliary variables.
|
| 47 |
+
|
| 48 |
+
# 2.2.1 NORMALIZING FLOWS
|
| 49 |
+
|
| 50 |
+
Normalizing flow (Rezende & Mohamed, 2015) is a change of variables procedure for constructing complex distributions by transforming probability densities through a series of invertible mappings. Specifically, if we transform a random variable $z _ { \mathrm { 0 } }$ with distribution $q _ { 0 } ( z )$ , the resulting random variable $z _ { T } = T ( z _ { 0 } )$ has a distribution:
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
q _ { T } ( z _ { T } ) = q _ { 0 } ( z _ { 0 } ) \left| \mathrm { d e t } \frac { \partial z _ { T } } { \partial z _ { 0 } } \right| ^ { - 1 }
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
By successively applying these transformations, we can build arbitrarily complex distributions. Stacking these transformations remains tractable due to the determinant being decomposable: $\operatorname* { d e t } ( A { \bar { B } } ) = \operatorname* { d e t } ( A ) \operatorname* { d e t } ( B )$ . An important property of these transformations is that we can take expectations with respect to the transformed density $q _ { T } ( z _ { T } )$ without explicitly knowing its formula known as the law of the unconscious statistician (LOTUS):
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
\mathbb { E } _ { q _ { T } } [ h ( z _ { T } ) ] = \mathbb { E } _ { q _ { 0 } } [ h ( f _ { T } ( f _ { T - 1 } ( \dots f _ { 1 } ( z _ { 0 } ) ) ) ) ]
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
Using the change of variable and LOTUS, the lower bound can be written as:
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
\log p ( x ) \geq \mathbb { E } _ { z _ { 0 } \sim q _ { 0 } ( z | x ) } \left[ \log \left( \frac { p ( x , z _ { T } ) } { q _ { 0 } ( z _ { 0 } | x ) \prod _ { t = 1 } ^ { T } \left| \operatorname* { d e t } \frac { \partial z _ { t } } { \partial z _ { t - 1 } } \right| ^ { - 1 } } \right) \right] .
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
The main constraint on these transformations is that the determinant of their Jacobian needs to be easily computable.
|
| 69 |
+
|
| 70 |
+
# 2.2.2 AUXILIARY VARIABLES
|
| 71 |
+
|
| 72 |
+
Deep generative models can be extended with auxiliary variables which leave the generative model unchanged but make the variational distribution more expressive. Just as hierarchical Bayesian models induce dependencies between data, hierarchical variational models can induce dependencies between latent variables. The addition of the auxiliary variable changes the lower bound to:
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\begin{array} { r l } & { \log p ( x ) \geq \mathbb { E } _ { z , v \sim q ( z , v \mid x ) } \left[ \log \left( \displaystyle \frac { p ( x , z ) r ( v \mid x , z ) } { q ( z , v \mid x ) } \right) \right] } \\ & { \qquad = \mathbb { E } _ { q ( z \mid x ) } \left[ \log \left( \displaystyle \frac { p ( x , z ) } { q ( z \mid x ) } \right) - { \mathrm { K L } \Big ( q ( v \mid z , x ) \| r ( v \mid x , z ) \Big ) } \right] } \end{array}
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
where $r ( v | x , z )$ is called the reverse model. From Eqn. 8, we see that this bound is looser than the regular ELBO, however the extra flexibility provided by the auxiliary variable can result in a higher lower bound. This idea has been employed in works such as auxiliary deep generative models (ADGM, Maaløe et al. (2016)), hierarchical variational models (HVM, Ranganath et al. (2016)) and Hamiltonian variational inference (HVI, Salimans et al. (2015)).
|
| 79 |
+
|
| 80 |
+
# 2.3 MARGINAL LOG-LIKELIHOOD ESTIMATION
|
| 81 |
+
|
| 82 |
+
We use two bounds to estimate the marginal log-likelihood of a model: IWAE (Burda et al., 2016) and AIS (Neal, 2001). Here we describe the IWAE bound. See Section 6.5 in the appendix for a description of AIS.
|
| 83 |
+
|
| 84 |
+
The IWAE bound is a tighter lower bound than the VAE bound. More specifically, if we take multiple samples from the $q$ distribution, we can compute a tighter lower bound on the marginal log-likelihood:
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
\log p ( x ) \geq \mathbb { E } _ { z _ { 1 } . . . z _ { k } \sim q ( z | x ) } \left[ \log \left( \frac { 1 } { k } \sum _ { i = 1 } ^ { k } \frac { p ( x , z _ { i } ) } { q ( z _ { i } | x ) } \right) \right] = \mathcal { L } _ { \mathrm { I W A E } } [ q ] .
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
As the number of importance samples approaches infinity, the bound approaches the marginal loglikelihood. This importance weighted bound was introduced along with the Importance Weighted Autoencoder (Burda et al., 2016), thus we refer to it as the IWAE bound. It is often used as an evaluation metric for generative models (Burda et al., 2016; Kingma et al., 2016). As shown by Bachman & Precup (2015) and Cremer et al. (2017), the IWAE bound can be seen as using the VAE bound but with an importance weighted $q$ distribution.
|
| 91 |
+
|
| 92 |
+
# 3 METHODS
|
| 93 |
+
|
| 94 |
+
# 3.1 APPROXIMATION AND AMORTIZATION GAPS
|
| 95 |
+
|
| 96 |
+
The inference gap $\mathcal { G }$ is the difference between the marginal log-likelihood $\log p ( x )$ and a lower bound ${ \mathcal { L } } [ q ]$ . Given the distribution in the family that maximizes the bound, $q ^ { * } ( z | x ) \ =$ arg $\operatorname* { m a x } _ { q \in \mathcal { Q } } \mathcal { L } [ q ]$ , the inference gap decomposes as the sum of approximation and amortization gaps:
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
\mathcal { G } = \log p ( x ) - \mathcal { L } [ q ] = \underbrace { \log p ( x ) - \mathcal { L } [ q ^ { * } ] } _ { \mathrm { A p p r o x i m a t i o n } } + \underbrace { \mathcal { L } [ q ^ { * } ] - \mathcal { L } [ q ] } _ { \mathrm { A m o r t i z a t i o n } } .
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
For VAEs, we can translate the gaps to KL divergences by rearranging (2):
|
| 103 |
+
|
| 104 |
+
$$
|
| 105 |
+
\mathcal { G } _ { \mathrm { V A E } } = \mathrm { K L } \big ( q ^ { * } ( z | x ) | | p ( z | x ) \big ) + \mathrm { K L } \big ( q ( z | x ) | | p ( z | x ) \big ) - \mathrm { K L } \big ( q ^ { * } ( z | x ) | | p ( z | x ) \big ) .
|
| 106 |
+
$$
|
| 107 |
+
|
| 108 |
+
# 3.2 FLEXIBLE APPROXIMATE POSTERIOR
|
| 109 |
+
|
| 110 |
+
Our experimentation compares two families of approximate posteriors: the fully-factorized Gaussian (FFG) and a flexible flow (Flow). Our choice of flow is a combination of the Real NVP (Dinh et al., 2017) and auxiliary variables (Ranganath et al., 2016; Maaløe et al., 2016). Our model also resembles leap-frog dynamics applied in Hamiltonian Monte Carlo (HMC, Neal et al. (2011)).
|
| 111 |
+
|
| 112 |
+
Let $z \in \mathbb { R } ^ { n }$ be the variable of interest and $v \in \mathbb { R } ^ { n }$ the auxiliary variable. Each flow step involves:
|
| 113 |
+
|
| 114 |
+
$$
|
| 115 |
+
\begin{array} { l } { { v ^ { \prime } = v \circ \sigma _ { 1 } ( z ) + \mu _ { 1 } ( z ) } } \\ { { z ^ { \prime } = z \circ \sigma _ { 2 } ( v ^ { \prime } ) + \mu _ { 2 } ( v ^ { \prime } ) } } \end{array}
|
| 116 |
+
$$
|
| 117 |
+
|
| 118 |
+
where $\sigma _ { 1 } , \sigma _ { 2 } , \mu _ { 1 } , \mu _ { 2 } : \mathbb { R } ^ { n } \to \mathbb { R } ^ { n }$ are differentiable mappings parameterized by neural nets and $\circ$ takes the Hadamard or element-wise product. The determinant of the combined transformation’s Jacobian, $| \mathrm { d e t } ( D f ) |$ , can be easily evaluated. See section 6.2 in the Appendix for a detailed derivation.
|
| 119 |
+
|
| 120 |
+
Thus, we can jointly train the generative and flow-based inference model by optimizing the bound:
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
\log p ( x ) \geq \mathbb { E } _ { z , v \sim q ( z , v \mid x ) } \left[ \log \left( { \frac { p ( x , z ^ { \prime } ) r ( v ^ { \prime } | x , z ^ { \prime } ) } { q ( z , v | x ) \left| \operatorname* { d e t } ( D f ) \right| ^ { - 1 } } } \right) \right] = \mathcal { L } _ { \mathrm { f l o w } } [ q ] .
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
Additionally, multiple such type of transformations can be stacked to improve expressiveness. We refer readers to section 6.1.2 in the Appendix for details of our flow configuration adopted in the experimentation.
|
| 127 |
+
|
| 128 |
+
# 3.3 EVALUATION BOUNDS
|
| 129 |
+
|
| 130 |
+
We use several bounds to compute the inference gaps. To estimate the marginal log-likelihood, $\log { \hat { p } } ( x )$ , we take the maximum of our tightest lower bounds, specifically the maximum between the IWAE and AIS bounds. To compute the AIS bound, we use 100 chains, each with 500 intermediate distributions, where each transition consists of one HMC trajectory with 10 leapfrog steps. The initial distribution for AIS is the prior, so that it is encoder-independent.
|
| 131 |
+
|
| 132 |
+
For our experiments, we test two different variational distributions: the fully-factorized Gaussian $q _ { F F G }$ and the flexible approximation $q F l o w$ as described in section 3.2. When computing ${ \mathcal { L } } _ { \mathrm { V A E } } [ q ]$ and $\mathcal { L } _ { \mathrm { I W A E } } [ q ]$ , we use 5000 samples. To compute $\mathcal { L } _ { \mathrm { V A E } } [ q ^ { * } ]$ , we optimize the parameters of the variational distribution for every datapoint. See Section 6.4 for details of the local optimization and stopping criteria.
|
| 133 |
+
|
| 134 |
+
# 4 RELATED WORK
|
| 135 |
+
|
| 136 |
+
Much of the earlier work on variational inference focused on optimizing the variational parameters locally for each datapoint, e.g. the original Stochastic Variational Inference scheme (SVI, Hoffman et al. (2013)) specifies the variational parameters to be optimized locally in the inner loop. Salakhutdinov & Larochelle (2010) perform such local optimization when learning deep Boltzmann machines. More recent work has applied this idea to improve approximate inference in directed Belief networks (Hjelm et al., 2015).
|
| 137 |
+
|
| 138 |
+
Most relevant to our work is the recent work of Krishnan et al. (2017). They explicitly remark on two sources of error in variational learning with inference networks, and propose to optimize approximate inference locally from an initialization output by the inference network. They show improved training on high-dimensional, sparse data with the hybrid method, claiming that local optimization reduces the negative effects of random initialization in the inference network early on in training. Yet, their work only dwells on reducing the amortization gap and does analyze the error arising from the use of limited approximating distributions.
|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
Figure 2: True Posterior and Approximate Distributions of a VAE with 2D latent space. Columns: 4 different datapoints. FFG: Fully-factorized Gaussian. Flow: Using a flexible approximate distribution. Amortized: Using amortized parameters. Optimal: Parameters optimized for individual datapoints. The green distributions are the true posterior distributions, highlighting the mismatch with the approximation.
|
| 142 |
+
|
| 143 |
+
Even though it is clear that failed inference would lead to a failed generative model, little quantitative assessment has been done showing the effect of the approximate posterior on the true posterior. Burda et al. (2016) visually demonstrate that when trained with an importance-weighted approximate posterior, the resulting true posterior is more complex than those trained with fully-factorized Gaussian approximations. We extend this observation quantitatively in the setting of flow-based approximate inference.
|
| 144 |
+
|
| 145 |
+
# 5 EXPERIMENTAL RESULTS
|
| 146 |
+
|
| 147 |
+
# 5.1 INTUITION THROUGH VISUALIZATION
|
| 148 |
+
|
| 149 |
+
To begin, we would like to gain some insight into the properties of inference in VAEs by visualizing different distributions in the latent space. To this end, we trained a VAE with a two-dimensional latent space on MNIST. We show contour plots of various distributions in the latent space in Fig. 2. The first row contains contour plots of the true posteriors $p ( z | x )$ for four different training datapoints (columns). We have selected these four examples to highlight different inference phenomena. The amortized FFG row refers to the output of the recognition net, in this case, a fully-factorized Gaussian (FFG) approximation. Optimal FFG is the FFG that best fits the posterior of the datapoint. Optimal Flow is the optimal fit of a flexible distribution to the same posterior, where the flexible distribution we use is described in Section 3.2.
|
| 150 |
+
|
| 151 |
+
Posterior A is an example of a distribution where FFG can fit well. Posterior B is an example of dependence between dimensions, demonstrating the limitation of having a factorized approximation. Posterior C highlights a shortcoming of performing amortization with a limited-capacity recognition network, where the amortized FFG shares little support with the true posterior. Posterior $\mathbf { D }$ is a bimodal distribution which demonstrates the ability of the flexible approximation to fit to complex distributions, in contrast to the simple FFG approximation. These observations raise the following question: in more typical VAEs, is the amortization of inference the leading cause of the distribution mismatch, or is it the choice of approximation?
|
| 152 |
+
|
| 153 |
+
<table><tr><td rowspan="2"></td><td colspan="2">MNIST</td><td colspan="2">Fashion-MNIST</td><td colspan="2">CIFAR-10</td></tr><tr><td>qFFG</td><td>qFlow</td><td>qFFG</td><td>qFlow</td><td>qFFG</td><td>qFlow</td></tr><tr><td>log p(x)</td><td>-89.80</td><td>-88.94</td><td>-97.47</td><td>-97.41</td><td>-14913.15</td><td>-14914.45</td></tr><tr><td>LVAE[qFlow]</td><td>-90.80</td><td>-90.38</td><td>-98.92</td><td>-99.10</td><td>-14914.22</td><td>-14915.57</td></tr><tr><td>LVAE[qFFG]</td><td>-91.23</td><td>-113.54</td><td>-100.53</td><td>-132.46</td><td>-14915.40</td><td>-14919.08</td></tr><tr><td>LVAE[q]</td><td>-92.57</td><td>-91.79</td><td>-104.75</td><td>-103.76</td><td>-14976.57</td><td>-14975.12</td></tr><tr><td>Approximation</td><td>1.43</td><td>1.44</td><td>3.06</td><td>1.69</td><td>2.25</td><td>1.12</td></tr><tr><td>Amortization</td><td>1.34</td><td>1.41</td><td>4.22</td><td>4.66</td><td>61.17</td><td>59.55</td></tr><tr><td>Inference</td><td>2.77</td><td>2.85</td><td>7.28</td><td>6.35</td><td>63.42</td><td>60.67</td></tr></table>
|
| 154 |
+
|
| 155 |
+
Table 2: Inference Gaps. The columns $q _ { F F G }$ and $q _ { F l o w }$ refer to the variational distribution used for training the model. All numbers are in nats.
|
| 156 |
+
|
| 157 |
+
# 5.2 AMORTIZATION VS APPROXIMATION GAP
|
| 158 |
+
|
| 159 |
+
Here we will compare the influence that the approximation and amortization errors have on the total inference gap. Table 2 are results from training on MNIST, Fashion-MNIST and CIFAR-10. For each dataset, we trained two different approximate posterior distributions: a fully-factorized Gaussian, $q _ { F F G }$ , and a flexible distribution, $q _ { F l o w }$ . Due to the computational cost of optimizing the local parameters for each datapoint, our evaluation is performed on a subset of 1000 datapoints for MNIST and Fashion-MNIST and a subset of 100 datapoints for CIFAR-10.
|
| 160 |
+
|
| 161 |
+
For MNIST, we see that the amortization and approximation gaps each account for nearly half of the inference gap. On Fashion-MNIST, which is a more difficult dataset to model, the amortization gap becomes larger than the approximation gap. Similarly for CIFAR-10, we see that the amortization gap is much more significant than the approximation gap. Thus, for the three datasets and model architectures that we tested, the amortization gap seems to be the prominent cause of inference suboptimality, especially when the difficulty of the dataset increases. This analysis indicates that improvements in inference will likely be a result of reducing amortization error, rather than approximation errors.
|
| 162 |
+
|
| 163 |
+
With these results in mind, would simply increasing the capacity of the encoder improve the amortization gap? We examined this by training the MNIST and Fashion-MNIST models from above but with larger encoders. See Section 6.1.2 for implementation details. Table 3 are the results of this experiment. Comparing to Table 2, we see that for both datasets and both variational distributions, the inference gap decreases and the decrease is mainly due to a reduction in the amortization gap.
|
| 164 |
+
|
| 165 |
+
<table><tr><td rowspan="7">logp(x) LVAE[qFlow] LVAEqFFG]</td><td colspan="2">MNIST</td><td colspan="2">Fashion-MNIST</td></tr><tr><td>qFFG</td><td>qFlow</td><td>qFFG</td><td>qFlow</td></tr><tr><td>-89.61</td><td>-88.99</td><td>-95.99</td><td>-96.18</td></tr><tr><td>-90.65</td><td>-90.44</td><td>-97.40</td><td>-97.91</td></tr><tr><td>-91.07</td><td>-108.71</td><td>-99.64</td><td>-129.7</td></tr><tr><td>-92.18</td><td>-91.19</td><td>-102.73</td><td>-101.67</td></tr><tr><td>LVAE[q] Approximation 1.46</td><td>1.45</td><td>3.65</td><td>1.73</td></tr><tr><td>Amortization</td><td>1.11</td><td>0.75</td><td>3.09</td><td>3.76</td></tr><tr><td>Inference</td><td>2.56</td><td>2.20</td><td>6.74</td><td>5.49</td></tr></table>
|
| 166 |
+
|
| 167 |
+
Table 3: Larger Encoder. The columns $q _ { F F G }$ and $q F l o w$ refer to the variational distribution used for training the model. All numbers are in nats.
|
| 168 |
+
|
| 169 |
+
# 5.2.1 INFLUENCE OF FLOWS ON AMORTIZATION GAP
|
| 170 |
+
|
| 171 |
+
The common reasoning for increasing the expressiveness of the approximate posterior is to minimize the difference between the true and approximate, i.e. reduce the approximation gap. However, given that the expressive approximation is often accompanied by many additional parameters, we would like to know if it has an influence on the amortization error.
|
| 172 |
+
|
| 173 |
+
To investigate this, we trained a VAE in the same manner as Section 5.2. After training, we kept the generator fixed and trained new encoders to fit to the fixed posterior. Specifically, we trained a small encoder with a factorized Gaussian $q$ distribution to obtain a large amortization gap. We then trained a small encoder with a flow distribution. See Section 6.2 for the details of the experiment. The results are shown in Table 4. As expected, we observe that the small encoder has a very large amortization gap. However, when we use $q _ { F l o w }$ as the approximate distribution, we see the approximation gap decrease, but more importantly, there is a significant decrease in the amortization gap. This indicates that the parameters used for increasing the complexity of the approximation also play a large role in diminishing the amortization error.
|
| 174 |
+
|
| 175 |
+
Table 4: Influence of Flows on the Amortization Gap. The parameters used to increase the flexibility of the approximate distribution also reduce the amortization gap. See Section 5.2.1 for details of the experiment.
|
| 176 |
+
|
| 177 |
+
<table><tr><td>Variational Family</td><td>qFFG</td><td>qFlow</td></tr><tr><td>logp(x) LVAE[q*]</td><td>-84.70 -86.61</td><td>-84.70 -85.48</td></tr><tr><td>LVAE[q] Approximation</td><td>-129.83 1.91</td><td>-98.58 0.78</td></tr><tr><td>Amortization</td><td>43.22</td><td>13.10</td></tr><tr><td>Inference</td><td>45.13</td><td>13.88</td></tr></table>
|
| 178 |
+
|
| 179 |
+
These results are expected given that the parameterization of the Flow distribution can be interpreted as an instance of the RevNet (Gomez et al., 2017) which has demonstrated that Real-NVP like transformations (Dinh et al., 2017) can model complex functions similar to typical MLPs. Thus the flow transformations we employ should also be expected to increase the expressiveness while also increasing the capacity of the encoder. The implication of this observation is that models which improve the flexibility of their variational approximation, and attribute their improved results to the increased expressiveness, may have actually been due to the reduction in amortization error.
|
| 180 |
+
|
| 181 |
+
# 5.3 INFLUENCE OF APPROXIMATE POSTERIOR ON TRUE POSTERIOR
|
| 182 |
+
|
| 183 |
+
We have seen that increasing the expressiveness of the approximation improves the marginal likelihood of the trained model, but to what amount does it alter the true posterior? Will a factorized Gaussian approximation cause the true posterior to be more like a factorized Gaussian or is the true posterior mostly fixed? Just as it is hard to evaluate a generative model by visually inspecting samples from the model, its hard to say how Gaussian the true posterior is by visual inspection. We can quantitatively determine how close the posterior is to a fully factorized Gaussian (FFG) distribution by comparing the marginal log-likelihood estimate, $\log { \dot { \hat { p } } } ( x )$ , and the Optimal FFG bound, $\mathcal { L } _ { \mathrm { V A E } } [ q _ { F F G } ^ { * } ]$ . In other words, we are estimating the KL divergence between the optimal Gaussian and the true posterior, $\mathrm { K L } \left( q ^ { * } ( z | x ) | | p ( z | x ) \right)$ .
|
| 184 |
+
|
| 185 |
+
In Table 2 on MNIST, the Optimal Flow improves upon the Optimal FFG for the FFG trained model by 0.4 nats. In contrast, on the Flow trained model, the difference increases to 12.5 nats. This suggests that the true posterior of a FFG-trained model is closer to FFG than the true posterior of the Flow-trained model. The same observation can be made on the Fashion-MNIST dataset. This implies that the decoder can learn to have a true posterior that fits better to the approximation. Although the generative model can learn to have a posterior that fits to the approximation, it seems that not having this constraint, ie. using a flexible approximate, results in better generative models.
|
| 186 |
+
|
| 187 |
+
We can use these observations to help justify our approximation and amortization gap results of Section 5.2. Those results showed that the amortization error is often the main cause of inference suboptimality. One reason for this is that the generator accommodates to the choice of approximation, as shown above, thus reducing the approximation error.
|
| 188 |
+
|
| 189 |
+
Given that we have seen that the generator could accommodate to the choice of approximation, our next question is whether a generator with more capacity can accommodate more. To this end, we trained VAEs with decoders of different sizes and measured the approximation gaps. Specifically, we trained decoders with 0, 2, and 4 hidden layers on MNIST. See Table 5 for the results. We see that as the capacity of the decoder increases, the approximation gap decreases. This result implies that the more flexible the generator, the less flexible the approximate distribution needs to be.
|
| 190 |
+
|
| 191 |
+
Table 5: Increased decoder capacity reduces approximation gap. All numbers are in nats.
|
| 192 |
+
|
| 193 |
+
<table><tr><td>Generator HiddenLayers</td><td>0</td><td>2</td><td>4</td></tr><tr><td>logp(x)</td><td>-100.52</td><td>-86.61</td><td>-83.82</td></tr><tr><td>LVAE[qFFG]</td><td>-104.42</td><td>-84.78</td><td>-82.19</td></tr><tr><td>Approximation Gap</td><td>3.90</td><td>1.83</td><td>1.63</td></tr></table>
|
| 194 |
+
|
| 195 |
+
# 5.3.1 ANNEALING THE ENTROPY
|
| 196 |
+
|
| 197 |
+
Typical warm-up (Bowman et al., 2015; Sønderby et al., 2016) refers to annealing $\mathrm { K L } \left( q ( \boldsymbol { z } | \boldsymbol { x } ) | | p ( \boldsymbol { z } ) \right)$ during training. This can also be interpreted as performing maximum likelihood estimation (MLE) early on during training. This optimization technique is known to help prevent the latent variable from degrading to the prior (Burda et al., 2016; Sønderby et al., 2016). We employ a similar annealing scheme during training. Rather than annealing the KL divergence, we anneal the entropy of the approximate distribution $q$ :
|
| 198 |
+
|
| 199 |
+
$$
|
| 200 |
+
\begin{array} { r } { \mathbb { E } _ { z \sim q ( z | x ) } \left[ \log p ( x , z ) - \lambda \log q ( z | x ) \right] , } \end{array}
|
| 201 |
+
$$
|
| 202 |
+
|
| 203 |
+
where $\lambda$ is annealed from 0 to 1 over training. This can be interpreted as maximum a posteriori (MAP) in the initial phase. Due to its similarity, we will also refer to this technique as warm-up.
|
| 204 |
+
|
| 205 |
+
We find that warm-up techniques, such as annealing the entropy, are important for allowing the true posterior to be more complex. Table 6 are results from a model trained without the entropy annealing schedule. Comparing these results to Table 2, we observe that the difference between $\mathcal { L } _ { \mathrm { V A E } } [ q _ { F F G } ^ { * } ]$ and $\mathcal { L } _ { \mathrm { V A E } } [ q _ { F l o w } ^ { * } ]$ is significantly smaller without entropy annealing. This indicates that the true posterior is more Gaussian when entropy annealing is not used. This suggests that, in addition to preventing the latent variable from degrading to the prior, entropy annealing allows the true posterior to better utilize the flexibility of the expressive approximation, resulting in a better trained model.
|
| 206 |
+
|
| 207 |
+
<table><tr><td rowspan="7">log p(x) LVAE[qFlow LVAE[qFFG]</td><td colspan="2">MNIST</td><td colspan="2">Fashion-MNIST</td></tr><tr><td>qFFG</td><td>qFlow</td><td>qFFG</td><td>qFlow</td></tr><tr><td>-89.82</td><td>-89.52</td><td>-102.56</td><td>-102.88</td></tr><tr><td>-90.96</td><td>-90.45</td><td>-103.73</td><td>-104.02</td></tr><tr><td>-90.84</td><td>-92.25</td><td>-103.85</td><td>-105.80</td></tr><tr><td>-92.33</td><td>-91.75</td><td>-106.90</td><td>-107.01</td></tr><tr><td>LvAE[q] Approximation 1.02</td><td>0.93</td><td>1.29</td><td>1.14</td></tr><tr><td>Amortization</td><td>1.49</td><td>1.30</td><td>3.05</td><td>2.29</td></tr><tr><td>Inference</td><td>2.51</td><td>2.23</td><td>4.34</td><td>4.13</td></tr></table>
|
| 208 |
+
|
| 209 |
+
Table 6: Models trained without entropy annealing. The columns $q _ { F F G }$ and $q _ { F l o w }$ refer to the variational distribution used for training the model. All numbers are in nats.
|
| 210 |
+
|
| 211 |
+
# 6 CONCLUSION
|
| 212 |
+
|
| 213 |
+
In this paper, we investigated how encoder capacity, approximation choice, decoder capacity, and model optimization influence inference suboptimality in terms of the approximation and amortization gaps. We found that the amortization gap is often the leading source of inference suboptimality and that the generator reduces the approximation gap by learning a true posterior that fits to the choice of approximate distribution. We showed that the parameters used to increase the expressiveness of the approximation play a role in generalizing inference rather than simply improving the complexity of the approximation. We confirmed that increasing the capacity of the encoder reduces the amortization error. We also showed that optimization techniques, such as entropy annealing, help the generative model to better utilize the flexibility of the expressive variational distribution. Computing these gaps can be useful for guiding improvements to inference in VAEs. Future work includes evaluating other types of expressive approximations and more complex likelihood functions.
|
| 214 |
+
|
| 215 |
+
REFERENCES
|
| 216 |
+
P. Bachman and D. Precup. Training Deep Generative Models: Variations on a Theme. NIPS Approximate Inference Workshop, 2015.
|
| 217 |
+
S. R. Bowman, L. Vilnis, O. Vinyals, A. M. Dai, R. Jozefowicz, and S. Bengio. Generating Sentences from a Continuous Space. ArXiv e-prints, November 2015.
|
| 218 |
+
Y. Burda, R. Grosse, and R. Salakhutdinov. Importance weighted autoencoders. In ICLR, 2016.
|
| 219 |
+
Djork-Arne Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network ´ learning by exponential linear units (elus). arXiv preprint arXiv:1511.07289, 2015.
|
| 220 |
+
C. Cremer, Q. Morris, and D. Duvenaud. Reinterpreting Importance-Weighted Autoencoders. ICLR Workshop, 2017.
|
| 221 |
+
L. Dinh, J. Sohl-Dickstein, and S. Bengio. Density estimation using Real NVP. ICLR, 2017.
|
| 222 |
+
Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pp. 249–256, 2010.
|
| 223 |
+
Aidan N Gomez, Mengye Ren, Raquel Urtasun, and Roger B Grosse. The reversible residual network: Backpropagation without storing activations. In Advances in Neural Information Processing Systems, pp. 2211–2221, 2017.
|
| 224 |
+
R. Grosse, Z. Ghahramani, and R. P Adams. Sandwiching the marginal likelihood using bidirectional monte carlo. arXiv preprint arXiv:1511.02543, 2015.
|
| 225 |
+
R Devon Hjelm, Kyunghyun Cho, Junyoung Chung, Russ Salakhutdinov, Vince Calhoun, and Nebojsa Jojic. Iterative refinement of approximate posterior for training directed belief networks. arXiv preprint arXiv:1511.06382, 2015.
|
| 226 |
+
Matthew D Hoffman, David M Blei, Chong Wang, and John Paisley. Stochastic variational inference. The Journal of Machine Learning Research, 14(1):1303–1347, 2013.
|
| 227 |
+
C. Jarzynski. Nonequilibrium equality for free energy differences. Physical Review Letters, 78(14): 2690, 1997.
|
| 228 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 229 |
+
D.P. Kingma and M. Welling. Auto-Encoding Variational Bayes. In ICLR, 2014.
|
| 230 |
+
D.P. Kingma, T. Salimans, R. Jozefowicz, X. Chen, I. Sutskever, and M. Welling. Improving Variational Inference with Inverse Autoregressive Flow. NIPS, 2016.
|
| 231 |
+
R. G. Krishnan, D. Liang, and M. Hoffman. On the challenges of learning with inference networks on sparse, high-dimensional data. ArXiv e-prints, October 2017.
|
| 232 |
+
Hugo Larochelle and Yoshua Bengio. Classification using discriminative restricted boltzmann machines. In Proceedings of the 25th international conference on Machine learning, pp. 536–543. ACM, 2008.
|
| 233 |
+
L. Maaløe, CK. Sønderby, SK. Sønderby, and O. Winther. Auxiliary Deep Generative Models. ICML, 2016.
|
| 234 |
+
Radford M Neal et al. Mcmc using hamiltonian dynamics. Handbook of Markov Chain Monte Carlo, 2(11), 2011.
|
| 235 |
+
R.M. Neal. Annealed importance sampling. Statistics and Computing, 2001.
|
| 236 |
+
R. Ranganath, D. Tran, and D. M. Blei. Hierarchical Variational Models. ICML, 2016.
|
| 237 |
+
D.J. Rezende and S Mohamed. Variational Inference with Normalizing Flows. In ICML, 2015.
|
| 238 |
+
|
| 239 |
+
D.J. Rezende, S. Mohamed, and D. Wierstra. Stochastic Backpropagation and Approximate Inference in Deep Generative Models. ICML, 2014.
|
| 240 |
+
|
| 241 |
+
R. Salakhutdinov and I. Murray. On the quantitative analysis of deep belief networks. In Proceedings of the 25th international conference on Machine learning, pp. 872–879. ACM, 2008.
|
| 242 |
+
|
| 243 |
+
Ruslan Salakhutdinov and Hugo Larochelle. Efficient learning of deep boltzmann machines. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pp. 693–700, 2010.
|
| 244 |
+
|
| 245 |
+
T. Salimans, D.P. Kingma, and M. Welling. Markov chain monte carlo and variational inference: Bridging the gap. In ICML, 2015.
|
| 246 |
+
|
| 247 |
+
Casper Kaae Sønderby, Tapani Raiko, Lars Maaløe, Søren Kaae Sønderby, and Ole Winther. Ladder variational autoencoders. In Advances in Neural Information Processing Systems, pp. 3738–3746, 2016.
|
| 248 |
+
|
| 249 |
+
J. M. Tomczak and M. Welling. Improving Variational Auto-Encoders using Householder Flow. ArXiv e-prints, November 2016.
|
| 250 |
+
|
| 251 |
+
J. M. Tomczak and M. Welling. Improving Variational Auto-Encoders using convex combination linear Inverse Autoregressive Flow. ArXiv e-prints, June 2017.
|
| 252 |
+
|
| 253 |
+
Y. Wu, Y. Burda, R. Salakhutdinov, and R. Grosse. On the Quantitative Analysis of Decoder-Based Generative Models. ICLR, 2017.
|
| 254 |
+
|
| 255 |
+
Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. github.com/zalandoresearch/fashion-mnist, 2017.
|
| 256 |
+
|
| 257 |
+
# APPENDIX
|
| 258 |
+
|
| 259 |
+
# 6.1 MODEL ARCHITECTURES AND TRAINING HYPERPARAMETERS
|
| 260 |
+
|
| 261 |
+
# 6.1.1 2D VISUALIZATION
|
| 262 |
+
|
| 263 |
+
The VAE model of Fig. 2 uses a decoder $p ( x | z )$ with architecture: $2 - 1 0 0 - 7 8 4$ , and an encoder $q ( z | x )$ with architecture: $7 8 4 - 1 0 0 - 4$ . We use tanh activations and a batch size of 50. The model is trained for 3000 epochs with a learning rate of $1 0 ^ { - 4 }$ using the ADAM optimizer (Kingma & Ba, 2014).
|
| 264 |
+
|
| 265 |
+
# 6.1.2 MNIST & FASHION-MNIST
|
| 266 |
+
|
| 267 |
+
Both MNIST and Fashion-MNIST consist of a training and test set with 60k and 10k datapoints respectively, where each datapoint is a $2 8 \mathbf { x } 2 8$ grey-scale image. We rescale the original images so that pixel values are within the range [0, 1]. For MNIST, We use the statically binarized version described by Larochelle & Bengio (2008). We also binarize Fashion-MINST statically. For both datasets, we adopt the Bernoulli likelihood for the generator.
|
| 268 |
+
|
| 269 |
+
The VAE models for MNIST and Fashion-MNIST experiments have the same architecture given in table 7. The flow configuration is given in table 8.
|
| 270 |
+
|
| 271 |
+
Table 7: Neural net architecture for MNIST/Fashion-MNIST experiments.
|
| 272 |
+
|
| 273 |
+
<table><tr><td>Inference Network</td><td>Generator</td></tr><tr><td>Input ∈R784</td><td>Input ∈R50</td></tr><tr><td>FC.200-ELU-FC.200-ELU-FC.50+50</td><td>FC.200-ELU-FC.200-ELU-FC.784-Sigmoid</td></tr></table>
|
| 274 |
+
|
| 275 |
+
In the large encoder setting, we change the number of hidden units for the inference network to be 500, instead of 200. The warm-up models are trained with a linear schedule over the first 400 epochs according to Section 5.3.1.
|
| 276 |
+
|
| 277 |
+
The activation function is chosen to be the exponential linear unit (ELU, Clevert et al. (2015)), as we observe improved performance compared to tanh. We follow the same learning rate schedule and train for the same amount of epochs as described by Burda et al. (2016). All models are trained with the a batch-size of 100 with ADAM.
|
| 278 |
+
|
| 279 |
+
# 6.1.3 CIFAR-10
|
| 280 |
+
|
| 281 |
+
CIFAR-10 consists of a training and test dataset with $5 0 \mathrm { k }$ and $1 0 \mathrm { k }$ datapoints respectively, where each datapoint is a $3 2 \times 3 2$ color image. We rescale individual pixel values to be in the range [0, 1]. We follow the discretized logistic likelihood model adopted by Kingma et al. (2016), where each input channel has its own scale learned by an MLP. For the latent variable, we use a 32-dimensional factorized Gaussian for $q ( z | x )$ following Kingma et al. (2016). For all neural networks, ELU is chosen to be the activation function. The specific network architecture is shown in Table 9.
|
| 282 |
+
|
| 283 |
+
We adopt a gradually decreasing learning rate with an initialize value of $1 0 ^ { - 3 }$ . Warm-up is applied with a linear schedule over the first 20 epochs. All models are trained with a batch-size of 100 with ADAM. Early-stopping is applied based on the performance on the held-out set.
|
| 284 |
+
|
| 285 |
+
For the model with expressive inference, we use four flow steps as opposed to only two in MNIST/Fashion-MNIST experiments.
|
| 286 |
+
|
| 287 |
+
# 6.2 INFLUENCE OF FLOWS ON AMORTIZATION GAP EXPERIMENT
|
| 288 |
+
|
| 289 |
+
The aim of this experiment is to show that the parameters used for increasing the expressiveness of the approximation also contribute to reducing the amortization error. To show this, we train a VAE on MNIST, discard the encoder, then retrain two encoders on the fixed decoder: one with a factorized Gaussian distribution and the other with a parameterized ’flow’ distribution. We use fixed decoder so that the true posterior is constant for both encoders. See 5.2.1 for the results and below for the architecture details.
|
| 290 |
+
|
| 291 |
+
The architecture of the decoder is: $D _ { Z } - 2 0 0 - 2 0 0 - D _ { X }$ . The architecture of the encoder used to train the decoder is $D _ { X } - 2 0 0 - 2 0 0 - 2 D _ { Z }$ . The approximate distribution $q ( z | x )$ is a factorized Gaussian.
|
| 292 |
+
|
| 293 |
+
Next, we describe the encoders which were trained on the fixed trained decoder. In order to highlight a large amortization gap, we employed a very small encoder architecture: $D _ { X } - 2 D _ { Z }$ . This encoder has no hidden layers, which greatly impoverishes its ability and results in a large amortization gap.
|
| 294 |
+
|
| 295 |
+
We compare two approximate distributions $q ( z | x )$ . Firstly, we experiment with the typical fully factorized Gaussian (FFG). The second is what we call a flow distribution. Specifically, we use the transformations of Dinh et al. (2017). We also include an auxiliary variable so we don’t need to select how to divide the latent space for the transformations. The approximate distribution over the latent $z$ and auxiliary variable $v$ factorizes as: $q ( z , v | x ) = q ( z | x ) \bar { q } ( v )$ . The $q ( v )$ distribution is simply a ${ \bf N } ( 0 , 1 )$ distribution. Since we’re using a auxiliary variable, we also require the $r ( v | z )$ distribution which we parameterize as $r ( v | z )$ : $[ D z ] - 5 0 - 5 0 - 2 D z$ . The flow transformation is the same as in Section 3.2, which we apply twice.
|
| 296 |
+
|
| 297 |
+
<table><tr><td>q(uolz0)</td><td>r(Ur|zT)</td></tr><tr><td>Input ∈R50</td><td>Input ∈ R50</td></tr><tr><td>FC.100-ELU-FC.100-ELU-FC.50+50</td><td>FC.100-ELU-FC.100-ELU-FC.50+50</td></tr></table>
|
| 298 |
+
|
| 299 |
+
<table><tr><td colspan="2">q(Ut+1, Zt+1lUt, zt)</td></tr><tr><td>01(),02()</td><td>μ1(.),μ2(.)</td></tr><tr><td>Input ∈ R50</td><td>Input ∈ R50</td></tr><tr><td>FC.100-ELU-FC.100-ELU-FC.50</td><td>FC.100-ELU-FC.100-ELU-FC.50</td></tr></table>
|
| 300 |
+
|
| 301 |
+
Table 8: Flow setting for MNIST/Fashion-MNIST experiments. $q ( v _ { T } , z _ { T } | v _ { 0 } , z _ { 0 } )$ consists of two normalizing flows given in the second tabular.
|
| 302 |
+
|
| 303 |
+
<table><tr><td>Inference Network</td><td>Generator</td></tr><tr><td>Input 32 × 32 color image</td><td>Input ∈ R32</td></tr><tr><td>4 × 4 conv. 64 channels.stride 2.BN 4 × 4 conv.128 channels.stride 2.BN</td><td>FC.256×2×2ELU;FC.64-ELU-FC.32-ELU-FC.3 4 × 4 deconv. 128 channels. stride 2. BN</td></tr><tr><td>4 × 4 conv. 256 channels. stride 2.BN</td><td>4 × 4 deconv.64 channels.stride 2.BN</td></tr><tr><td>FC.32 + 32.output layer for mean and log-variance</td><td>4 × 4 deconv.3 channels.stride 2. Sigmoid</td></tr></table>
|
| 304 |
+
|
| 305 |
+
Table 9: Network architecture for CIFAR-10 experiments. For the generator, one of the MLPs immediately after the input layer of the generator outputs channel-wise scales for the discretized logistic likelihood model. BN stands for batch-normalization.
|
| 306 |
+
|
| 307 |
+
# 6.3 COMPUTATION OF THE DETERMINANT FOR FLOW
|
| 308 |
+
|
| 309 |
+
The overall mapping $f$ that performs $( z , v ) \mapsto ( z ^ { \prime } , v ^ { \prime } )$ is the composition of two sheer mappings $f _ { 1 }$ and $f _ { 2 }$ that respectively perform $( z , v ) \mapsto ( z , v ^ { \prime } )$ and $( z , v ^ { \prime } ) \mapsto ( z ^ { \prime } , v ^ { \prime } )$ . Since the Jacobian of either one of the sheer mappings is diagonal, the determinant of the composed transformation’s Jacobian $D f$ can be easily computed:
|
| 310 |
+
|
| 311 |
+
$$
|
| 312 |
+
\operatorname * { d e t } ( D f ) = \operatorname * { d e t } ( D f _ { 1 } ) \mathrm { d e t } ( D f _ { 2 } ) = \Bigl ( \prod _ { i = 1 } ^ { n } \sigma _ { 1 } ( z ) _ { i } \Bigr ) \Bigl ( \prod _ { j = 1 } ^ { n } \sigma _ { 2 } ( v ^ { \prime } ) _ { j } \Bigr ) .
|
| 313 |
+
$$
|
| 314 |
+
|
| 315 |
+
# 6.4 LOCAL OPTIMIZATION OF APPROXIMATE DISTRIBUTION
|
| 316 |
+
|
| 317 |
+
For the local FFG optimization, we initialize the mean and variance as the prior, i.e. $\mathcal { N } ( 0 , I )$ . We optimize the mean and variance using the Adam optimizer with a learning rate of $1 0 ^ { - 3 }$ . To determine convergence, after every 100 optimization steps, we compute the average of the previous 100 ELBO values and compare it to the best achieved average. If it does not improve for 10 consecutive iterations then the optimization is terminated. For the Flow model, the same process is used to optimize all of its parameters. All neural nets for the flow were initialized with a variant of the Xavier initilization (Glorot & Bengio, 2010). We use 100 Monte Carlo samples to compute the ELBO to reduce variance.
|
| 318 |
+
|
| 319 |
+
# 6.5 ANNEALED IMPORTANCE SAMPLING
|
| 320 |
+
|
| 321 |
+
Annealed importance sampling (AIS, Neal (2001); Jarzynski (1997)) is a means of computing a lower bound to the marginal log-likelihood. Similarly to the importance weighted bound, AIS must sample a proposal distribution $\bar { f } _ { 1 } ( z )$ and compute the density of these samples, however, AIS then transforms the samples through a sequence of reversible transitions $\mathcal { T } _ { t } ( z ^ { \prime } | z )$ . The transitions anneal the proposal distribution to the desired distribution $f _ { T } ( z )$ .
|
| 322 |
+
|
| 323 |
+
Specifically, AIS samples an initial state $z _ { 1 } \sim f _ { 1 } ( z )$ and sets an initial weight $w _ { 1 } = 1$ . For the following annealing steps, $z _ { t }$ is sampled from $\mathcal { T } _ { t } { \left( z ^ { \prime } \right| } z )$ and the weight is updated according to:
|
| 324 |
+
|
| 325 |
+
$$
|
| 326 |
+
w _ { t } = w _ { t - 1 } \frac { f _ { t } ( z _ { t - 1 } ) } { f _ { t - 1 } ( z _ { t - 1 } ) } .
|
| 327 |
+
$$
|
| 328 |
+
|
| 329 |
+
This procedure produces weight $w _ { T }$ such that $\mathbb { E } \left[ w _ { T } \right] = \mathcal { Z } _ { T } / \mathcal { Z } _ { 1 }$ , where $Z _ { T }$ and $Z _ { 1 }$ are the normalizing constants of $f _ { T } ( z )$ and $f _ { 1 } ( z )$ respectively. This pertains to estimating the marginal likelihood when the target distribution is $p ( x , z )$ when we integrate with respect to $z$ .
|
| 330 |
+
|
| 331 |
+
Typically, the intermediate distributions are simply defined to be geometric averages: $f _ { t } ( z ) ~ =$ $\dot { f _ { 1 } } \dot { ( z ) } ^ { 1 - \dot { \beta _ { t } } } f _ { T } ( z ) ^ { \beta _ { t } }$ , where $\beta _ { t }$ is monotonically increasing with $\beta _ { 1 } = 0$ and $\beta _ { T } = 1$ . When $f _ { 1 } ( z ) =$ $p ( z )$ and $f _ { T } ( z ) = p ( x , z )$ , the intermediate distributions are: $f _ { i } ( x ) = p ( z ) p ( x | z ) ^ { \beta _ { i } }$ .
|
| 332 |
+
|
| 333 |
+
Model evaluation with AIS appears early on in the setting of deep belief networks (Salakhutdinov & Murray, 2008). AIS for decoder-based models was also used by $\mathrm { { W u } }$ et al. (2017). They validated the accuracy of the approach with Bidirectional Monte Carlo (BDMC, Grosse et al. (2015)) and demonstrated the advantage of using AIS over the IWAE bound for evaluation when the inference network overfits to the training data.
|
| 334 |
+
|
| 335 |
+
# 6.6 THE INFERENCE GAP
|
| 336 |
+
|
| 337 |
+
How well is inference done in VAEs during training? Are we close to doing the optimal or is there much room for improvement? To answer this question, we quantitatively measure the inference gap: the gap between the true marginal log-likelihood and the lower bound. This amounts to measuring how well inference is being done during training. Since we cannot compute the exact marginal log-likelihood, we estimate it using the maximum of any of its lower bounds, described in 3.3.
|
| 338 |
+
|
| 339 |
+
Fig. 3a shows training curves for a FFG and Flow inference network as measured by the VAE, IWAE, and AIS bounds on the training and test set. The inference gap on the training set with the FFG model is 3.01 nats, whereas the Flow model is 2.71 nats. Accordingly, Fig. 3a shows that the training IWAE bound is slightly tighter for the Flow model compared to the FFG. Due to this lower inference gap during training, the Flow model achieves a higher AIS bound on the test set than the FFG model.
|
| 340 |
+
|
| 341 |
+
To demonstrate that a very small inference gap can be achieved, even with a limited approximation such as a factorized Gaussian, we train the model on a small dataset. In this experiment, our training set consists of 1000 datapoints randomly chosen from the original MNIST training set. The training curves on this small datatset are show in Fig. 3b. Even with a factorized Gaussian distribution, the inference gap is very small: the AIS and IWAE bounds are overlapping and the VAE is just slightly below. Yet, the model is overfitting as seen by the decreasing test set bounds.
|
| 342 |
+
|
| 343 |
+

|
| 344 |
+
Figure 3: Training curves for a FFG and a Flow inference model on MNIST. AIS provides the tightest lower bound and is independent of encoder overfitting. There is little difference between FFG and Flow models trained on the 1000 datapoints since inference is nearly equivalent.
|
| 345 |
+
|
| 346 |
+
# 6.6.1 ENCODER AND DECODER OVERFITTING
|
| 347 |
+
|
| 348 |
+
We will begin by explaining how we separate encoder from decoder overfitting. Decoder overfitting is the same as in the regular supervised learning scenario, where we compare the train and test error. To measure decoder overfitting independently from encoder overfitting, we use the AIS bound since it is encoder-independent. Thus we can observe decoder overfitting through the AIS test training curve. In contrast, the encoder can only overfit in the sense that the recognition network becomes unsuitable for computing the marginal likelihood on the test set. Thus, encoder overfitting is computed by: $\mathcal { L } _ { \mathrm { A I S } } \ - \mathcal { L } _ { \mathrm { I W } }$ on the test set.
|
| 349 |
+
|
| 350 |
+
For the small dataset of Fig. 3b, it clear that there is significant encoder and decoder overfitting. A model trained in this setting would benefit from regularization. For Fig. 3a, the model is not overfit and would benefit from more training. However, there is some encoder overfitting due to the gap between the AIS and IWAE bounds on the test set. Comparing the FFG and Flow models, it appears that the Flow does not have a large effect on encoder or decoder overfitting.
|
| 351 |
+
|
| 352 |
+
# 6.7 GAUSSIAN LATENTS WITH FULL COVARIANCE
|
| 353 |
+
|
| 354 |
+
The flexiblity of the Gaussian family with arbitrary covariance lies between that of FFG and Flow. With covariance, the Gaussian distribution can model interactions between different latent dimensions. Yet, compared to Flow, its expressiveness is limited due to its inability to model higher order interactions and its unimodal nature.
|
| 355 |
+
|
| 356 |
+
To apply the reparameterization trick, we perform the Cholesky decomposition on the covariance matrix: $\overrightharpoon { \Sigma } = L \overrightharpoon { L } ^ { \top }$ , where $L$ is lower triangular. A sample from $\mathcal { N } ( \boldsymbol { \mu } , \boldsymbol { \Sigma } )$ could be obtained by first sampling from a unit Gaussian $\epsilon \sim \mathcal { N } ( 0 , \bar { I } )$ , then computing $z = \mu + L \epsilon$ .
|
| 357 |
+
|
| 358 |
+
To analyze the capability of the Gaussian family, we train several VAEs on MNIST and FashionMNIST with the approximate posterior $q ( z | x )$ being a Gaussian with full covariance. To inspect how well inference is done, we perform the local optimizations described in Section 5.2 with FFG and Flow.
|
| 359 |
+
|
| 360 |
+
Table 10: Gaussian latents trained with full covariance.
|
| 361 |
+
|
| 362 |
+
<table><tr><td></td><td>MNIST</td><td>Fashion-MNIST</td></tr><tr><td>logp(x)</td><td>-89.28</td><td>-96.46</td></tr><tr><td>LVAElqFlow]</td><td>-90.69</td><td>-98.19</td></tr><tr><td>LvAE[FFG]</td><td>-101.84</td><td>-107.89</td></tr><tr><td>LvAE[q]</td><td>-92.05</td><td>-102.93</td></tr></table>
|
| 363 |
+
|
| 364 |
+
We can see from table 10 that local optimization with FFG on a model trained with full covariance inference produces a bad lower bound. This resonates with the argument that the approximation has a significant influence on the true posterior as described in section 5.3.
|
| 365 |
+
|
| 366 |
+
Comparing to numbers in table 2, we can see that the full-covariance VAE trained on MNIST is nearly on par with that trained with Flow (-89.28 vs -88.94). For Fashion-MNIST, the fullcovariance VAE even performs better by a large margin in terms of the estimated log-likelihood (-96.46 vs -97.41).
|
parse/train/Bki4EfWCb/Bki4EfWCb_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Bki4EfWCb/Bki4EfWCb_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/CR1XOQ0UTh-/CR1XOQ0UTh-.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/CR1XOQ0UTh-/CR1XOQ0UTh-_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/CR1XOQ0UTh-/CR1XOQ0UTh-_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/CR1XOQ0UTh-/CR1XOQ0UTh-_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJxYwiC5tm/HJxYwiC5tm.md
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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| 7 |
+
Deep convolutional network architectures are often assumed to guarantee generalization for small image translations and deformations. In this paper we show that modern CNNs (VGG16, ResNet50, and InceptionResNetV2) can drastically change their output when an image is translated in the image plane by a few pixels, and that this failure of generalization also happens with other realistic small image transformations. Furthermore, we see these failures to generalize more frequently in more modern networks. We show that these failures are related to the fact that the architecture of modern CNNs ignores the classical sampling theorem so that generalization is not guaranteed. We also show that biases in the statistics of commonly used image datasets makes it unlikely that CNNs will learn to be invariant to these transformations. Taken together our results suggest that the performance of CNNs in object recognition falls far short of the generalization capabilities of humans.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Deep convolutional neural networks (CNNs) have revolutionized computer vision. Perhaps the most dramatic success is in the area of object recognition, where performance is now described as "superhuman" (He et al., 2015). A key to the success of any machine learning method is the inductive bias of the method, and clearly the choice of architecture in a neural network significantly affects the inductive bias. In particular, the choice of convolution and pooling in CNNs is motivated by the desire to endow the networks with invariance to irrelevant cues such as image translations, scalings, and other small deformations (Fukushima & Miyake, 1982; Zeiler & Fergus, 2014). This motivation was made explicit in the 1980s by Fukushima in describing the "neocognitron" architecture, which served as inspiration for modern CNNs (LeCun et al., 1989), "After finishing the process of learning, pattern recognition is performed on the basis of similarity in shape between patterns, and is not affected by deformation, nor by changes in size, nor by shifts in the position of the input patterns." (Fukushima, 1988)
|
| 12 |
+
|
| 13 |
+
Despite the excellent performance of CNNs on object recognition, the vulnerability to adversarial attacks suggests that superficial changes can result in highly non-human shifts in prediction (e.g. (Bhagoji et al., 2017; Su et al., 2017). In addition, filtering the image in the Fourier domain (in a way that does not change human prediction) also results in a substantial drop in prediction accuracy (Jo & Bengio, 2017). These and other results (Rodner et al., 2016) indicate that CNNs are not invariant to cues that are irrelevant to the object identity.
|
| 14 |
+
|
| 15 |
+
An argument against adversarial attacks on CNNs is that they often involve highly unnatural transformations to the input images, hence in some sense we would not expect CNNs to be invariant to these transformations. When considering more natural transformations, there is preliminary evidence that AlexNet (Krizhevsky et al., 2012) is robust to some of them (Zeiler & Fergus, 2014). On the other hand, there is also preliminary evidence for lack of robustness in the more modern networks for object classification (Bunne et al., 2018) and detection (Rosenfeld et al., 2018) along with studies suggesting that with small CNNs and the MNIST data, data augmentation is the main feature affecting CNN invariance (Kauderer-Abrams, 2017). An indirect method to probe for invariances measures the linearity of the learned representations under natural transformations to the input image (Lenc & Vedaldi, 2015; Hénaff & Simoncelli, 2015; Fawzi & Frossard, 2015; Cohen & Welling, 2014). The recent work of (Engstrom et al., 2017) investigates adversarial attacks that use only rotations and translations. They find that "simple transformations, namely translations and rotations alone, are sufficient to fool neural network-based vision models on a significant fraction of inputs" and show that advanced data augmentation methods can make the networks more robust.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Examples of jagged predictions of modern deep convolutional neural networks. Top: A negligible vertical shift of the object (Kuvasz) results in an abrupt decrease in the network’s predicted score of the correct class. Middle: A tiny increase in the size of the object (Lotion) produces a dramatic decrease in the network’s predicted score of the correct class. Bottom: A very small change in the bear’s posture results in an abrupt decrease in the network’s predicted score of the correct class. Colored dots represent images chosen from interesting $\mathbf { X }$ -axis locations of the graphs on the right. These dots illustrate sensitivity of modern neural networks to small, insignificant (to a human), and realistic variations in the image.
|
| 19 |
+
|
| 20 |
+
In this paper, we directly ask "why are modern CNNs not invariant to natural image transformations despite the architecture being explicitly designed to provide such invariances?". Specifically, we systematically examine the invariances of three modern deep CNNs: VGG-16 (Simonyan & Zisserman, 2014), ResNet-50 (He et al., 2016), and InceptionResNet-V2 (Szegedy et al., 2017). We find that modern deep CNNs are not invariant to translations, scalings and other realistic image transformations, and this lack of invariance is related to the subsampling operation and the biases contained in image datasets.
|
| 21 |
+
|
| 22 |
+
# 2 FAILURES OF MODERN CNNS
|
| 23 |
+
|
| 24 |
+
Figure 1 contains examples of abrupt failures following tiny realistic transformations for the InceptionResNet-V2 CNN. Shifting or scaling the object by just one pixel could result in a sharp change in prediction. In the top row, we embed the original image in a larger image and shift it in the image plane (while filling in the rest of the image with a simple inpainting procedure). In the middle row, we repeat this protocol with rescaling. In the bottom row, we show frames from a BBC film in which the ice bear moves almost imperceptibly between frames and the network’s output changes dramatically1.
|
| 25 |
+
|
| 26 |
+

|
| 27 |
+
Figure 2: Modern deep convolutional neural networks are sensitive to small image translations. A) Comparison of three networks of various depths in the task of vertical image translation depicted in figure 1. Images (rows) are randomly chosen from the ImageNet dataset (Deng et al., 2009), and are sorted by the network’s prediction sum in a descending order. B) More modern networks have more jagged predictions.
|
| 28 |
+
|
| 29 |
+
In order to measure how typical these failures are, we randomly chose images from the ImageNet validation set and measured the output of three modern CNNs as we embedded these images in a larger image and systematically varied the vertical translation. As was the case in figure 1, we used a simple inpainting procedure to fill in the rest of the image.
|
| 30 |
+
|
| 31 |
+
Results are shown in figure 2. Each row corresponds to an image under different translations and the color denotes the network’s estimate of the probability of the correct class. Thus a row that is all light corresponds to a correct classification that is invariant to translation, while a row that is all dark corresponds to an incorrect classification that is invariant to translation. Surprisingly, many rows show abrupt transitions from light to dark, indicating that the classification changes abruptly as the object is translated. We quantify the lack of invariance by a measure we call "jaggedness": the number of times the network’s predictions had the correct class in its top-5 and after just one pixel shift it moved outside of the top-5 (and also the opposite transition from non-top-5 to top5). Using this measure, we find that for approximately $30 \%$ of the images, the output is "jagged", i.e the network changes its prediction by a shift of a single pixel. Also, as shown in the right of figure 2, jaggedness is greater for the modern, deeper, networks compared to the less modern VGG16 network. While the deeper networks have better test accuracy, they are also less invariant. In the appendix we also show an alternative to the "jaggedness" measure, which gives similar results.
|
| 32 |
+
|
| 33 |
+
A natural criticism of these results is that they are somehow related to the image resizing and inpainting procedures that we used. To test this possibility, we repeated the experiment with a different protocol where we chose different crops of the original ImageNet image while making sure that the object bounding box remained within the crop. This protocol does not require any inpainting while still translating the object location within the new image. Results are shown in the appendix. We still have a large fraction of images for which the prediction is not invariant to translation. We also show in the appendix similar results for scaling rather than translation. Overall we find that regardless of the protocol used, modern CNNs often change their output significantly as a result of a small translation or scaling.
|
| 34 |
+
|
| 35 |
+
# 3 IGNORING THE SAMPLING THEOREM
|
| 36 |
+
|
| 37 |
+
The failure of CNNs to generalize to image translations is particularly puzzling. Intuitively, it would seem that if all layers in a network are convolutional then the representation should simply translate when an image is translated. If the final features for classification are obtained by a global pooling operation on the representation (as is done for example in ResNet50 and InceptionResNetV2) then these features should be invariant to translation. Where does this intuition fail?
|
| 38 |
+
|
| 39 |
+

|
| 40 |
+
Figure 3: The deeper the network, the less shiftable are the feature maps. A) A vertical shift of a "Kuvasz" dog in the image plane. B) Feature maps from three different network architectures in response to the translated Kuvasz image. Layer depth assignments reflect the number of trainable convolutional layers preceding the selected layer. The last layer is always the last convolutional layer in each network.
|
| 41 |
+
|
| 42 |
+
This intuition ignores the subsampling operation which is prevalent in modern CNNs, also known as "stride". This failure of translation invariance in systems with subsampling was explicitly discussed in Simoncelli et al. (Simoncelli et al., 1992) who wrote "We cannot literally expect translation invariance in a system based on convolution and subsampling: translation of the input signal cannot produce simple translations of the transform coefficients, unless the translation is a multiple of each of the subsampling factors in the system". Since deep networks often contain many subsampling operations, the subsampling factor of the deep layers may be very large so that "literal" translation invariance only holds for very special translations. In InceptionResnetV2, for example, the subsampling factor is 60, so we expect exact translation invariance to hold only for $\scriptstyle { \frac { 1 } { 6 0 ^ { 2 } } }$ of possible translations.
|
| 43 |
+
|
| 44 |
+
Simoncelli et al. also defined a weaker form of translation invariance, which they called "shiftability" and showed that it can hold for systems with subsampling (this is related to weak translation invariance as defined by (Lenc & Vedaldi, 2015), see also (Esteves et al., 2017; Cohen & Welling, 2014) for related ideas applied to neural networks). Here we extend the basic shiftability result to show that when shiftability holds, then global pooling will indeed yield invariant representations.
|
| 45 |
+
|
| 46 |
+
We define $r ( x )$ as the response of a feature detector at location $x$ in the image plane. We say that this response is "convolutional" if translating the image by any translation $\delta$ yields a translation of the response by the same $\delta$ . This definition includes cases when the feature response is obtained by convolving the input image with a fixed filter, but also includes combinations of linear operations and nonlinear operations that do not include any subsampling.
|
| 47 |
+
|
| 48 |
+
We start by a trivial observation:
|
| 49 |
+
|
| 50 |
+
Observation: If $r ( x )$ is convolutional then global pooling $\begin{array} { r } { r = \sum _ { x } r ( x ) } \end{array}$ is translation invariant.
|
| 51 |
+
|
| 52 |
+
Proof: This follows directly from the definition of a convolutional response. If $r ( x )$ is the feature response to one image and $r _ { 2 } ( x )$ is the feature response to the same image translated, then $\textstyle \sum _ { x } r ( x ) =$ $\textstyle \sum _ { x } ^ { * } r _ { 2 } ( x )$ since the two responses are shifts of each other.
|
| 53 |
+
|
| 54 |
+
Definition: A feature detector $r ( x )$ with subsampling factor $s$ is called “shiftable” if for any $x$ the detector output at location $x$ can be linearly interpolated from the responses on the sampling grid:
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
r ( x ) = \sum _ { i } B _ { s } ( x - x _ { i } ) r ( x _ { i } )
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
where $x _ { i }$ are located on the sampling grid for subsampling factor $s$ and $B _ { s } ( x )$ is the basis function for reconstructing $r ( x )$ from the samples.
|
| 61 |
+
|
| 62 |
+
The classic Shannon-Nyquist theorem tells us that $r ( x )$ will be shiftable if and only if the sampling frequency is at least twice the highest frequency in $r ( x )$ .
|
| 63 |
+
|
| 64 |
+
Claim: If $r ( x )$ is shiftable then global pooling on the sampling grid $\begin{array} { r } { r = \sum _ { i } r ( x _ { i } ) } \end{array}$ is translation invariant.
|
| 65 |
+
|
| 66 |
+
Proof: This follows from the fact that global pooling on the sampling grid is (up to a constant) the same as global pooling for all $x$ .
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
\begin{array} { l c l } { \displaystyle \sum _ { x } r ( x ) } & { = } & { \displaystyle \sum _ { x } \sum _ { i } r ( x _ { i } ) B ( x - x _ { i } ) } \\ { \displaystyle } & { = } & { \displaystyle \sum _ { i } r ( x _ { i } ) \sum _ { x } B ( x - x _ { i } ) } \\ { \displaystyle } & { = } & { K \sum _ { i } r ( x _ { i } ) } \end{array}
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
where $\begin{array} { r } { K = \sum _ { x } B ( x - x _ { i } ) } \end{array}$ and $K$ does not depend on $x _ { i }$
|
| 73 |
+
|
| 74 |
+
While the claim focuses on a global translation, it can also be extended to piecewise constant transformations.
|
| 75 |
+
|
| 76 |
+
Corollary: Consider a set of transformations $T$ that are constant on a set of given image subareas. If $r ( x )$ is shiftable and for a given image, the support of $r ( x )$ and its receptive field is contained in the same subregion for all transformations in $T$ , then global pooling on the sampling grid is invariant to any transformation in $T$ .
|
| 77 |
+
|
| 78 |
+
Proof: This follows from the fact that applying any transformation in $T$ to an image has the same effect on the feature map $r ( x )$ as translating the image.
|
| 79 |
+
|
| 80 |
+
To illustrate the importance of the sampling theorem in guaranteeing invariance in CNNs, consider a convolutional layer in a deep CNN where each unit acts as a localized "part detector" (this has been reported to be the case for many modern CNNs (Zeiler & Fergus, 2014; Zhou et al., 2014)). Each such part detector has a spatial tuning function and the degree of sharpness of this tuning function will determine whether the feature map can be subsampled while preserving shiftability or not. For example, consider a part detector that fires only when the part is exactly at the center of its receptive field. If there is no subsampling, then as we translate the input image, the feature map will translate as well, and the global sum of the feature map is invariant to translation. But if we subsample by two (or equivalently use a stride of two), then there will only be activity in the feature map when the feature is centered on an even pixel, but not when it is centered on an odd pixel. This means that the global sum of the feature map will not be invariant to translation.
|
| 81 |
+
|
| 82 |
+
In the language of Fourier transforms, the problem with a part detector that fires only when the part is exactly at the center of the receptive field is that the feature map contains many high frequencies and hence it cannot be subsampled while preserving shiftability. On the other hand, if we have a part detector whose spatial tuning function is more broad, it can be shiftable and our claim (above) shows that the global sum of activities in a feature map will be preserved for all translations, even though the individual firing rates of units will still be different when the part is centered at an odd pixel or an even pixel. Our corollary (above), shows the importance of shiftability to other smooth transformations: in this case each "part detector" will translate with a different translation but it is still the case that nonshiftable representations will not preserve the global sum of activities as the image is transformed, while shiftable representations will.
|
| 83 |
+
|
| 84 |
+
Figure 3 examines the extent to which the representations learned by modern CNNs are invariant or shiftable. The top row shows an image that is translated vertically, while the bottom three rows show the representations in different layers for the three CNNs we consider. For VGG16 the representation appears to shift along with the object, including the final layer where the blurred pattern of response is not a simple translation of the original response, but seems to preserve the global sum for this particular image. For the two more modern networks, the responses are sharper but lose their shiftability in the later layers. In particular, the final layers show approximate invariance to one special translation but no response at all to another translation, suggesting that the many layers of subsampling yield a final response that is not shiftable.
|
| 85 |
+
|
| 86 |
+
We also performed a more quantitative measure of shiftability by counting for a given image the number of times the global sum of activities in each layer changes significantly (more than $20 \%$ of mean) as the input is shifted (for each image, we only considered feature maps where the maximum response was above a threshold). We call this measure "nonshiftability". According to the preceding analysis, in architectures that obey the sampling theorem, the global sum should be invariant to input translation so nonshiftability should be zero in all layers. We find that for all three networks, the initial layers have nonshiftability close to zero but as we go deeper and deeper nonshiftability increases. Furthermore, the deeper, more modern networks, exhibit larger nonshiftability in their deep layers compared to VGG16 (see appendix for graphs).
|
| 87 |
+
|
| 88 |
+
How can we guarantee that representations in CNNs will be shiftable? As explained above, we need to make sure that any feature map that uses stride does not contain frequencies above the Nyquist frequency. If CNNs were purely linear, we could simply blur the input images so that they would not include any frequencies higher than the Nyquist limit determined by the final sampling factor of the network. But since CNNs also include nonlinearities, they can add high frequencies that were not present in the input.
|
| 89 |
+
|
| 90 |
+
An important message of the sampling theorem is that you should always blur before subsampling. Translated to the language of neural networks this means that stride (i.e. subsampling) should always be combined with pooling (i.e. blurring) in the preceding layer. Indeed if we have an arbitrarily deep CNN where all the layers use stride $^ { = 1 }$ followed by one layer that has a stride greater than one, then by choosing the pooling window appropriately we can guarantee that the final layer will still be shiftable. If we do not use appropriate pooling then there is no guarantee that this layer will be shiftable. Even if we use appropriate pooling that ensures that a given layer is shiftable, the subsequent nonlinearities in a CNN may not preserve the shiftability, as the nonlinearities may again introduce high frequencies.
|
| 91 |
+
|
| 92 |
+
To illustrate the effect of pooling on shiftability in modern CNNs we replaced the $2 \times 2$ max pooling layers of VGG16 with $6 \times 6$ average pooling. This has the effect of reducing low freqencies but given the nonlinearities, it does not guarantee shiftability. As shown in figure 4 this simple change makes the representations approximately shiftable and, as predicted by our theory, the global sum is now invariant to both translations and rescalings of the input. This invariance of course comes with a price: the feature maps now have less detail and in preliminary experiments we find that recognition performance decreases somewhat. But the sampling theorem tells us that if we want to use subsampling while avoiding aliasing, we need to ensure that no high frequencies (relative to the Nyquist frequency) are present in the feature maps.
|
| 93 |
+
|
| 94 |
+
As an alternative to pooling, Ruderman et al. (Ruderman et al., 2018) have shown that networks may learn smooth filters that will lead to reduced sensitivity to transformations. Evidently, the filters learned in standard VGG16 are not smooth enough.
|
| 95 |
+
|
| 96 |
+
# 4 WHY DON’T MODERN CNNS LEARN TO BE INVARIANT FROM DATA?
|
| 97 |
+
|
| 98 |
+
While the preceding discussion suggests that the CNN architecture will not yield translation invariance "for free", there is still the possibility that the CNN will learn a translation invariant prediction from the training examples. This requires that the training set will actually be invariant to the irrelevant transformations. We examined the degree of invariance in the ImageNet training set by manually labeling the training images in five categories: Tibetan terrier, elephant, pineapple, bagel and rowing paddle.
|
| 99 |
+
|
| 100 |
+
Consistent with previous results on "dataset bias" (Simon et al., 2007; Raguram & Lazebnik, 2008; Berg & Berg, 2009; Torralba & Efros, 2011; Weyand & Leibe, 2011; Mezuman & Weiss, 2012) we find that the ImageNet dataset is not invariant to translations and rescalings. Figure 5 shows the distribution of the distances between the eyes of a "Tibetan terrier" and the positions of the center point between the dog’s eyes. Notice that both distributions are far from uniform. Similar results are obtained for the other four categories.
|
| 101 |
+
|
| 102 |
+

|
| 103 |
+
Figure 4: Average pooling makes VGG representations approximately shiftable. Plotted are summation of feature maps from the last layer of VGG (spatial dimension $7 { \bf x } 7 $ ) as an input image is vertically translated in the image plane (top), or rescaled (bottom). Left: the original VGG16 with its $2 \mathbf { x } 2$ max pooling layers. Right: VGG16 where every $2 \mathbf { x } 2$ max pooling layer was replaced by a 6x6 average pooling layer. More randomly selected images are shown in the appendix.
|
| 104 |
+
|
| 105 |
+

|
| 106 |
+
Figure 5: Photographer’s biases in the ImageNet’s “Tibetan terrier” category. Left: Example of the hand-labeling procedure. Middle: Positions of the middle point between the dog’s eyes. Right: Histogram of distances between the dog’s eyes. Notice the bias in both the object’s position and scale.
|
| 107 |
+
|
| 108 |
+
To be more quantitative, we used the available bounding-box labels, and extracted the center point of the bounding-box and its height as proxies for the object position and size respectively. We then applied a statistical significance test to ask whether object location and object sizes were uniform for that category. For more than 900 out of the 1000 categories we found that location and size were highly non uniform $( P < 1 0 ^ { - 1 0 }$ ). Given these strong biases, we cannot expect a learning system to learn to be invariant.
|
| 109 |
+
|
| 110 |
+
Even if the training set is not invariant, we can make it invariant using data augmentation. Will this make the CNN learn an invariant prediction? First, we note that we used pretrained networks and according to the authors’ description of the training procedure, all three networks were trained using data augmentation. Obviously, not any data augmentation is sufficient for the networks to learn invariances. To understand the failure of data augmentation, it is again instructive to consider the subsampling factor. Since in modern networks the subsampling factor is approximately 60, then for a system to learn complete invariance to translation only, it would need to see $6 0 ^ { \mathrm { { 2 } } } = 3 6 0 0$ augmented versions of each training example, or it would need to have an inductive bias that allows it to generalize over transformations. If we also add invariance to rotations and scalings, the number grows exponentially with the number of irrelevant transformations. Engstrom et al. (Engstrom et al., 2017) suggest a sophisticated data augmentation method and show that it increases the invariance to translation and rotation. However, for challenging datasets such as ImageNet the lack of invariance largely persists.
|
| 111 |
+
|
| 112 |
+

|
| 113 |
+
Figure 6: The performance of modern CNNs on test images from ImageNet that are embedded in a random location in a larger image is quite poor (less than $50 \%$ accuracy). Human performance is not affected. Right: An example of a full sized image and the same image resized to $1 0 0 \mathrm { x } 1 0 0$ .
|
| 114 |
+
|
| 115 |
+
# 5 IMPLICATIONS FOR PRACTICAL SYSTEMS
|
| 116 |
+
|
| 117 |
+
Although our results show that modern CNNs fail to generalize for small image transformations, their performance on the ImageNet test set is still amazingly good and far better than previous techniques. This is related to the fact that the ImageNet test set contains the same photographer’s biases as the training set, so generalization to very different sizes and locations is not required. To highlight this point, we created a new test set in which ImageNet images were embedded in a larger image in a random location (and the missing pixels were filled in using a simple inpainting algorithm). Figure 6 shows that human performance is not affected by the rescaling and random translations, while the performance of modern CNNs deteriorates dramatically. In fact, when images are scaled to half their original size and randomly translated, the accuracy of modern CNNs is less than $50 \%$ , typically considered poor performance.
|
| 118 |
+
|
| 119 |
+
One way in which modern systems partially address the lack of invariance is using test time augmentation in which the system output on a given image is computed by a majority vote among many random crops of the image. Clearly this is wasteful in resources and still only provides partial invariance.
|
| 120 |
+
|
| 121 |
+
# 6 DISCUSSION
|
| 122 |
+
|
| 123 |
+
CNN architectures were designed based on an intuition that the convolutional structure and pooling operations will give invariance to translations and small image deformations "for free". In this paper we have shown that this intuition breaks down once subsampling, or "stride" is used and we have presented empirical evidence that modern CNNs do not display the desired invariances since the architecture ignores the classic sampling theorem. This still leaves open the possibility of a CNN learning invariance from the data but we have shown that the ImageNet training and testing examples include significant photographer’s bias so that it is unlikely that a system will learn invariance using these examples.
|
| 124 |
+
|
| 125 |
+
In addition to pointing out these failures, the sampling theorem also suggests a way to impose translation invariance by ensuring that all representations are sufficiently blurred to overcome the subsampling. However, such blurred representations may lead to a decrease in performance, especially in datasets and benchmarks that contain photographer’s bias. Alternatively, one could use specially designed features in which invariance is hard coded or neural network architectures that explicitly enforce invariance (Sifre & Mallat, 2013; Gens & Domingos, 2014; Cheng et al., 2016a;b; Dieleman et al., 2016; 2015; Xu et al., 2014; Worrall et al., 2017; Cohen & Welling, 2016). Again, as long as the datasets contain significant photographer’s bias, such invariant approaches may lead to a decrease in performance.
|
| 126 |
+
|
| 127 |
+
# REFERENCES
|
| 128 |
+
|
| 129 |
+
Tamara L Berg and Alexander C Berg. Finding iconic images. In Computer Vision and Pattern Recognition Workshops, 2009. CVPR Workshops 2009. IEEE Computer Society Conference on, pp. 1–8. IEEE, 2009.
|
| 130 |
+
|
| 131 |
+
Arjun Nitin Bhagoji, Warren He, Bo Li, and Dawn Song. Exploring the space of black-box attacks on deep neural networks. arXiv preprint arXiv:1712.09491, 2017.
|
| 132 |
+
|
| 133 |
+
Charlotte Bunne, Lukas Rahmann, and Thomas Wolf. Studying invariances of trained convolutional neural networks. arXiv preprint arXiv:1803.05963, 2018.
|
| 134 |
+
|
| 135 |
+
Gong Cheng, Peicheng Zhou, and Junwei Han. Learning rotation-invariant convolutional neural networks for object detection in vhr optical remote sensing images. IEEE Transactions on Geoscience and Remote Sensing, 54(12):7405–7415, 2016a.
|
| 136 |
+
|
| 137 |
+
Gong Cheng, Peicheng Zhou, and Junwei Han. Rifd-cnn: Rotation-invariant and fisher discriminative convolutional neural networks for object detection. In Computer Vision and Pattern Recognition (CVPR), 2016 IEEE Conference on, pp. 2884–2893. IEEE, 2016b.
|
| 138 |
+
|
| 139 |
+
Taco Cohen and Max Welling. Group equivariant convolutional networks. In International Conference on Machine Learning, pp. 2990–2999, 2016.
|
| 140 |
+
|
| 141 |
+
Taco S Cohen and Max Welling. Transformation properties of learned visual representations. arXiv preprint arXiv:1412.7659, 2014.
|
| 142 |
+
|
| 143 |
+
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pp. 248–255. IEEE, 2009.
|
| 144 |
+
|
| 145 |
+
Sander Dieleman, Kyle W Willett, and Joni Dambre. Rotation-invariant convolutional neural networks for galaxy morphology prediction. Monthly notices of the royal astronomical society, 450(2): 1441–1459, 2015.
|
| 146 |
+
|
| 147 |
+
Sander Dieleman, Jeffrey De Fauw, and Koray Kavukcuoglu. Exploiting cyclic symmetry in convolutional neural networks. arXiv preprint arXiv:1602.02660, 2016.
|
| 148 |
+
|
| 149 |
+
Logan Engstrom, Dimitris Tsipras, Ludwig Schmidt, and Aleksander Madry. A rotation and a translation suffice: Fooling cnns with simple transformations. CoRR, abs/1712.02779, 2017. URL http://arxiv.org/abs/1712.02779.
|
| 150 |
+
|
| 151 |
+
Carlos Esteves, Christine Allen-Blanchette, Xiaowei Zhou, and Kostas Daniilidis. Polar transformer networks. arXiv preprint arXiv:1709.01889, 2017.
|
| 152 |
+
|
| 153 |
+
Alhussein Fawzi and Pascal Frossard. Manitest: Are classifiers really invariant? arXiv preprint arXiv:1507.06535, 2015.
|
| 154 |
+
|
| 155 |
+
Kunihiko Fukushima. Neocognitron: A hierarchical neural network capable of visual pattern recognition. Neural networks, 1(2):119–130, 1988.
|
| 156 |
+
|
| 157 |
+
Kunihiko Fukushima and Sei Miyake. Neocognitron: A self-organizing neural network model for a mechanism of visual pattern recognition. In Competition and cooperation in neural nets, pp. 267–285. Springer, 1982.
|
| 158 |
+
|
| 159 |
+
Robert Gens and Pedro M Domingos. Deep symmetry networks. In Advances in neural information processing systems, pp. 2537–2545, 2014.
|
| 160 |
+
|
| 161 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pp. 1026–1034, 2015.
|
| 162 |
+
|
| 163 |
+
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.
|
| 164 |
+
|
| 165 |
+
Olivier J Hénaff and Eero P Simoncelli. Geodesics of learned representations. arXiv preprint arXiv:1511.06394, 2015.
|
| 166 |
+
|
| 167 |
+
Jason Jo and Yoshua Bengio. Measuring the tendency of cnns to learn surface statistical regularities. arXiv preprint arXiv:1711.11561, 2017.
|
| 168 |
+
|
| 169 |
+
Eric Kauderer-Abrams. Quantifying translation-invariance in convolutional neural networks. arXiv preprint arXiv:1801.01450, 2017.
|
| 170 |
+
|
| 171 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
|
| 172 |
+
|
| 173 |
+
Yann LeCun, Bernhard Boser, John S Denker, Donnie Henderson, Richard E Howard, Wayne Hubbard, and Lawrence D Jackel. Backpropagation applied to handwritten zip code recognition. Neural computation, 1(4):541–551, 1989.
|
| 174 |
+
|
| 175 |
+
Karel Lenc and Andrea Vedaldi. Understanding image representations by measuring their equivariance and equivalence. In Computer Vision and Pattern Recognition (CVPR), 2015 IEEE Conference on, pp. 991–999. IEEE, 2015.
|
| 176 |
+
|
| 177 |
+
Elad Mezuman and Yair Weiss. Learning about canonical views from internet image collections. In Advances in Neural Information Processing Systems, pp. 719–727, 2012.
|
| 178 |
+
|
| 179 |
+
Rahul Raguram and Svetlana Lazebnik. Computing iconic summaries of general visual concepts. In Computer Vision and Pattern Recognition Workshops, 2008. CVPRW’08. IEEE Computer Society Conference on, pp. 1–8. IEEE, 2008.
|
| 180 |
+
|
| 181 |
+
Erik Rodner, Marcel Simon, Robert B Fisher, and Joachim Denzler. Fine-grained recognition in the noisy wild: Sensitivity analysis of convolutional neural networks approaches. arXiv preprint arXiv:1610.06756, 2016.
|
| 182 |
+
|
| 183 |
+
Amir Rosenfeld, Richard Zemel, and John K Tsotsos. The elephant in the room. arXiv preprint arXiv:1808.03305, 2018.
|
| 184 |
+
|
| 185 |
+
Avraham Ruderman, Neil C. Rabinowitz, Ari S. Morcos, and Daniel Zoran. Learned deformation stability in convolutional neural networks. CoRR, abs/1804.04438, 2018. URL http://arxiv. org/abs/1804.04438.
|
| 186 |
+
|
| 187 |
+
Laurent Sifre and Stéphane Mallat. Rotation, scaling and deformation invariant scattering for texture discrimination. In Computer Vision and Pattern Recognition (CVPR), 2013 IEEE Conference on, pp. 1233–1240. IEEE, 2013.
|
| 188 |
+
|
| 189 |
+
Ian Simon, Noah Snavely, and Steven M Seitz. Scene summarization for online image collections. In Computer Vision, 2007. ICCV 2007. IEEE 11th International Conference on, pp. 1–8. IEEE, 2007.
|
| 190 |
+
|
| 191 |
+
Eero P Simoncelli, William T Freeman, Edward H Adelson, and David J Heeger. Shiftable multiscale transforms. IEEE transactions on Information Theory, 38(2):587–607, 1992.
|
| 192 |
+
|
| 193 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 194 |
+
|
| 195 |
+
Jiawei Su, Danilo Vasconcellos Vargas, and Sakurai Kouichi. One pixel attack for fooling deep neural networks. arXiv preprint arXiv:1710.08864, 2017.
|
| 196 |
+
|
| 197 |
+
Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander A Alemi. Inception-v4, inceptionresnet and the impact of residual connections on learning. In AAAI, volume 4, pp. 12, 2017.
|
| 198 |
+
|
| 199 |
+
Antonio Torralba and Alexei A Efros. Unbiased look at dataset bias. In Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference on, pp. 1521–1528. IEEE, 2011.
|
| 200 |
+
|
| 201 |
+
Tobias Weyand and Bastian Leibe. Discovering favorite views of popular places with iconoid shift. In Computer Vision (ICCV), 2011 IEEE International Conference on, pp. 1132–1139. IEEE, 2011.
|
| 202 |
+
|
| 203 |
+
Daniel E Worrall, Stephan J Garbin, Daniyar Turmukhambetov, and Gabriel J Brostow. Harmonic networks: Deep translation and rotation equivariance. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), volume 2, 2017.
|
| 204 |
+
|
| 205 |
+
Yichong Xu, Tianjun Xiao, Jiaxing Zhang, Kuiyuan Yang, and Zheng Zhang. Scale-invariant convolutional neural networks. arXiv preprint arXiv:1411.6369, 2014.
|
| 206 |
+
|
| 207 |
+
Matthew D Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In European conference on computer vision, pp. 818–833. Springer, 2014.
|
| 208 |
+
|
| 209 |
+
Bolei Zhou, Aditya Khosla, Àgata Lapedriza, Aude Oliva, and Antonio Torralba. Object detectors emerge in deep scene cnns. CoRR, abs/1412.6856, 2014. URL http://arxiv.org/abs/ 1412.6856.
|
| 210 |
+
|
| 211 |
+
# APPENDIX
|
| 212 |
+
|
| 213 |
+
# A PIPELINE FOR PRODUCING THE BOTTOM ROW OF FIGURE 1
|
| 214 |
+
|
| 215 |
+
We download this video: https://www.youtube.com/watch?v=0mgnf6t9VEc using an online downloader. We load the video frames and resize them to 299 by 299 as used by the standard Keras applications framework (https://keras.io/applications/). We preprocess the frames using the standard Keras preprocessing function. Finally, we use the predictions of the InceptionV3 model to demonstrate the jagged behavior shown in figure 1.
|
| 216 |
+
|
| 217 |
+
# B OTHER SUPPLEMENTARY MATERIAL
|
| 218 |
+
|
| 219 |
+
<table><tr><td>Network</td><td>Top-1</td><td>Top-5</td><td>Parameters</td><td>Depth</td></tr><tr><td>VGG16 (Simonyan & Zisserman, 2014)</td><td>0.715</td><td>0.901</td><td>138,357,544</td><td>16</td></tr><tr><td>ResNet50 (He et al., 2016)</td><td>0.759</td><td>0.929</td><td>25,636,712</td><td>50</td></tr><tr><td>InceptionResNetV2 (Szegedy et al., 2017)</td><td>0.804</td><td>0.953</td><td>55,873,736</td><td>134</td></tr></table>
|
| 220 |
+
|
| 221 |
+
Table 1: The networks used (taken from (https://keras.io/applications/))
|
| 222 |
+
|
| 223 |
+

|
| 224 |
+
Figure 7: We also measure jaggedness using the Mean Absolute Difference (MAD) in the probability of the correct response as the image is shifted by a single pixel. Results are similar to those using the jaggedness measure described in the text.
|
| 225 |
+
|
| 226 |
+

|
| 227 |
+
Figure 8: Modern deep convolutional neural networks are sensitive to small image translations (Without image downscaling). A) Example of InceptionResNetV2 sensitivity to very small horizontal translations. B) Comparison of three networks of various depths (16, 50, and 134 for VGG16, ResNet50, and InceptionResNetV2 respectively) in the task of horizontal image translation. Rows are sorted by sum. B) Modern networks have more jagged predictions. Jaggedness is calculated by counting the number of times the network’s predictions had the correct class in its top-5 and after just one pixel shift it moved outside of the top-5 (and also the opposite transition from non-top-5 to top5). Similar results can be seen with the alternative measure of jaggedness: Mean Absolute Difference (MAD)
|
| 228 |
+
|
| 229 |
+

|
| 230 |
+
Figure 9: Modern deep convolutional neural networks are sensitive to small image rescalings A) Comparison of three networks of various depths (16, 50, and 134 for VGG16, ResNet50, and InceptionResNetV2 respectively) in the task of image rescaling. Rows are sorted by their sum. B) Quantification of the jagged behaviour of the deep neural networks.
|
| 231 |
+
|
| 232 |
+

|
| 233 |
+
Figure 10: Nonshiftability as a function of depth in the three networks. Nonshiftability is defined as the number of times the global sum of a feature map changes by more than $20 \%$ of the mean as the input is translated. We only consider feature maps where the maximum response was above a threshold. According to our analysis, this measure should be zero if the representation is shiftable. Each line shows the nonshiftability in different layers in response to a randomly selected image.
|
| 234 |
+
|
| 235 |
+

|
| 236 |
+
Figure 11: Another randomly selected image. Plotted are summation of feature maps from the last layer of VGG (spatial dimension $7 \mathrm { x } 7$ ) as the input is vertically translated in the image plane (top), or rescaled (bottom). Left: the original VGG16 with its $2 \mathbf { x } 2$ max pooling layers. Right: VGG16 where every $2 \mathbf { x } 2$ max pooling layer was replaced by a 6x6 average pooling layer.
|
| 237 |
+
|
| 238 |
+

|
| 239 |
+
Figure 12: Another randomly selected image. Plotted are summation of feature maps from the last layer of VGG (spatial dimension $7 \mathrm { x } 7$ ) as the input is vertically translated in the image plane (top), or rescaled (bottom). Left: the original VGG16 with its $2 \mathbf { x } 2$ max pooling layers. Right: VGG16 where every 2x2 max pooling layer was replaced by a 6x6 average pooling layer.
|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
Figure 13: Another randomly selected image. Plotted are summation of feature maps from the last layer of VGG (spatial dimension $7 \mathrm { x } 7$ ) as the input is vertically translated in the image plane (top), or rescaled (bottom). Left: the original VGG16 with its $2 \mathbf { x } 2$ max pooling layers. Right: VGG16 where every $2 \mathbf { x } 2$ max pooling layer was replaced by a 6x6 average pooling layer.
|
parse/train/HJxYwiC5tm/HJxYwiC5tm_content_list.json
ADDED
|
@@ -0,0 +1,1362 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
101,
|
| 9 |
+
828,
|
| 10 |
+
170
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
195,
|
| 20 |
+
398,
|
| 21 |
+
223
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
261,
|
| 32 |
+
544,
|
| 33 |
+
275
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Deep convolutional network architectures are often assumed to guarantee generalization for small image translations and deformations. In this paper we show that modern CNNs (VGG16, ResNet50, and InceptionResNetV2) can drastically change their output when an image is translated in the image plane by a few pixels, and that this failure of generalization also happens with other realistic small image transformations. Furthermore, we see these failures to generalize more frequently in more modern networks. We show that these failures are related to the fact that the architecture of modern CNNs ignores the classical sampling theorem so that generalization is not guaranteed. We also show that biases in the statistics of commonly used image datasets makes it unlikely that CNNs will learn to be invariant to these transformations. Taken together our results suggest that the performance of CNNs in object recognition falls far short of the generalization capabilities of humans. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
292,
|
| 43 |
+
766,
|
| 44 |
+
473
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
502,
|
| 55 |
+
336,
|
| 56 |
+
517
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Deep convolutional neural networks (CNNs) have revolutionized computer vision. Perhaps the most dramatic success is in the area of object recognition, where performance is now described as \"superhuman\" (He et al., 2015). A key to the success of any machine learning method is the inductive bias of the method, and clearly the choice of architecture in a neural network significantly affects the inductive bias. In particular, the choice of convolution and pooling in CNNs is motivated by the desire to endow the networks with invariance to irrelevant cues such as image translations, scalings, and other small deformations (Fukushima & Miyake, 1982; Zeiler & Fergus, 2014). This motivation was made explicit in the 1980s by Fukushima in describing the \"neocognitron\" architecture, which served as inspiration for modern CNNs (LeCun et al., 1989), \"After finishing the process of learning, pattern recognition is performed on the basis of similarity in shape between patterns, and is not affected by deformation, nor by changes in size, nor by shifts in the position of the input patterns.\" (Fukushima, 1988) ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
535,
|
| 66 |
+
825,
|
| 67 |
+
700
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Despite the excellent performance of CNNs on object recognition, the vulnerability to adversarial attacks suggests that superficial changes can result in highly non-human shifts in prediction (e.g. (Bhagoji et al., 2017; Su et al., 2017). In addition, filtering the image in the Fourier domain (in a way that does not change human prediction) also results in a substantial drop in prediction accuracy (Jo & Bengio, 2017). These and other results (Rodner et al., 2016) indicate that CNNs are not invariant to cues that are irrelevant to the object identity. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
708,
|
| 77 |
+
825,
|
| 78 |
+
791
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "An argument against adversarial attacks on CNNs is that they often involve highly unnatural transformations to the input images, hence in some sense we would not expect CNNs to be invariant to these transformations. When considering more natural transformations, there is preliminary evidence that AlexNet (Krizhevsky et al., 2012) is robust to some of them (Zeiler & Fergus, 2014). On the other hand, there is also preliminary evidence for lack of robustness in the more modern networks for object classification (Bunne et al., 2018) and detection (Rosenfeld et al., 2018) along with studies suggesting that with small CNNs and the MNIST data, data augmentation is the main feature affecting CNN invariance (Kauderer-Abrams, 2017). An indirect method to probe for invariances measures the linearity of the learned representations under natural transformations to the input image (Lenc & Vedaldi, 2015; Hénaff & Simoncelli, 2015; Fawzi & Frossard, 2015; Cohen & Welling, 2014). The recent work of (Engstrom et al., 2017) investigates adversarial attacks that use only rotations and translations. They find that \"simple transformations, namely translations and rotations alone, are sufficient to fool neural network-based vision models on a significant fraction of inputs\" and show that advanced data augmentation methods can make the networks more robust. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
799,
|
| 88 |
+
825,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/92b13decc6d7a5ecd856ae52ff3d3939757f136ce0017965aa457404cf336bc7.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: Examples of jagged predictions of modern deep convolutional neural networks. Top: A negligible vertical shift of the object (Kuvasz) results in an abrupt decrease in the network’s predicted score of the correct class. Middle: A tiny increase in the size of the object (Lotion) produces a dramatic decrease in the network’s predicted score of the correct class. Bottom: A very small change in the bear’s posture results in an abrupt decrease in the network’s predicted score of the correct class. Colored dots represent images chosen from interesting $\\mathbf { X }$ -axis locations of the graphs on the right. These dots illustrate sensitivity of modern neural networks to small, insignificant (to a human), and realistic variations in the image. "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
202,
|
| 102 |
+
114,
|
| 103 |
+
805,
|
| 104 |
+
496
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
654,
|
| 114 |
+
825,
|
| 115 |
+
724
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "In this paper, we directly ask \"why are modern CNNs not invariant to natural image transformations despite the architecture being explicitly designed to provide such invariances?\". Specifically, we systematically examine the invariances of three modern deep CNNs: VGG-16 (Simonyan & Zisserman, 2014), ResNet-50 (He et al., 2016), and InceptionResNet-V2 (Szegedy et al., 2017). We find that modern deep CNNs are not invariant to translations, scalings and other realistic image transformations, and this lack of invariance is related to the subsampling operation and the biases contained in image datasets. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
731,
|
| 125 |
+
825,
|
| 126 |
+
829
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "2 FAILURES OF MODERN CNNS ",
|
| 133 |
+
"text_level": 1,
|
| 134 |
+
"bbox": [
|
| 135 |
+
178,
|
| 136 |
+
849,
|
| 137 |
+
452,
|
| 138 |
+
866
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "Figure 1 contains examples of abrupt failures following tiny realistic transformations for the InceptionResNet-V2 CNN. Shifting or scaling the object by just one pixel could result in a sharp change in prediction. In the top row, we embed the original image in a larger image and shift it in the image plane (while filling in the rest of the image with a simple inpainting procedure). In the middle row, we repeat this protocol with rescaling. In the bottom row, we show frames from a BBC film in which the ice bear moves almost imperceptibly between frames and the network’s output changes dramatically1. ",
|
| 145 |
+
"bbox": [
|
| 146 |
+
174,
|
| 147 |
+
882,
|
| 148 |
+
823,
|
| 149 |
+
924
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "",
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
103,
|
| 159 |
+
825,
|
| 160 |
+
160
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 2
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "image",
|
| 166 |
+
"img_path": "images/9846430a7dbf8d7be4b46ec6f4f2c1932f1d8ab18f7d55cf0e60e002d26e1274.jpg",
|
| 167 |
+
"image_caption": [
|
| 168 |
+
"Figure 2: Modern deep convolutional neural networks are sensitive to small image translations. A) Comparison of three networks of various depths in the task of vertical image translation depicted in figure 1. Images (rows) are randomly chosen from the ImageNet dataset (Deng et al., 2009), and are sorted by the network’s prediction sum in a descending order. B) More modern networks have more jagged predictions. "
|
| 169 |
+
],
|
| 170 |
+
"image_footnote": [],
|
| 171 |
+
"bbox": [
|
| 172 |
+
215,
|
| 173 |
+
184,
|
| 174 |
+
803,
|
| 175 |
+
314
|
| 176 |
+
],
|
| 177 |
+
"page_idx": 2
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"type": "text",
|
| 181 |
+
"text": "In order to measure how typical these failures are, we randomly chose images from the ImageNet validation set and measured the output of three modern CNNs as we embedded these images in a larger image and systematically varied the vertical translation. As was the case in figure 1, we used a simple inpainting procedure to fill in the rest of the image. ",
|
| 182 |
+
"bbox": [
|
| 183 |
+
174,
|
| 184 |
+
416,
|
| 185 |
+
825,
|
| 186 |
+
472
|
| 187 |
+
],
|
| 188 |
+
"page_idx": 2
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"type": "text",
|
| 192 |
+
"text": "Results are shown in figure 2. Each row corresponds to an image under different translations and the color denotes the network’s estimate of the probability of the correct class. Thus a row that is all light corresponds to a correct classification that is invariant to translation, while a row that is all dark corresponds to an incorrect classification that is invariant to translation. Surprisingly, many rows show abrupt transitions from light to dark, indicating that the classification changes abruptly as the object is translated. We quantify the lack of invariance by a measure we call \"jaggedness\": the number of times the network’s predictions had the correct class in its top-5 and after just one pixel shift it moved outside of the top-5 (and also the opposite transition from non-top-5 to top5). Using this measure, we find that for approximately $30 \\%$ of the images, the output is \"jagged\", i.e the network changes its prediction by a shift of a single pixel. Also, as shown in the right of figure 2, jaggedness is greater for the modern, deeper, networks compared to the less modern VGG16 network. While the deeper networks have better test accuracy, they are also less invariant. In the appendix we also show an alternative to the \"jaggedness\" measure, which gives similar results. ",
|
| 193 |
+
"bbox": [
|
| 194 |
+
174,
|
| 195 |
+
479,
|
| 196 |
+
825,
|
| 197 |
+
660
|
| 198 |
+
],
|
| 199 |
+
"page_idx": 2
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"type": "text",
|
| 203 |
+
"text": "A natural criticism of these results is that they are somehow related to the image resizing and inpainting procedures that we used. To test this possibility, we repeated the experiment with a different protocol where we chose different crops of the original ImageNet image while making sure that the object bounding box remained within the crop. This protocol does not require any inpainting while still translating the object location within the new image. Results are shown in the appendix. We still have a large fraction of images for which the prediction is not invariant to translation. We also show in the appendix similar results for scaling rather than translation. Overall we find that regardless of the protocol used, modern CNNs often change their output significantly as a result of a small translation or scaling. ",
|
| 204 |
+
"bbox": [
|
| 205 |
+
173,
|
| 206 |
+
666,
|
| 207 |
+
825,
|
| 208 |
+
791
|
| 209 |
+
],
|
| 210 |
+
"page_idx": 2
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"type": "text",
|
| 214 |
+
"text": "3 IGNORING THE SAMPLING THEOREM ",
|
| 215 |
+
"text_level": 1,
|
| 216 |
+
"bbox": [
|
| 217 |
+
176,
|
| 218 |
+
813,
|
| 219 |
+
516,
|
| 220 |
+
829
|
| 221 |
+
],
|
| 222 |
+
"page_idx": 2
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"type": "text",
|
| 226 |
+
"text": "The failure of CNNs to generalize to image translations is particularly puzzling. Intuitively, it would seem that if all layers in a network are convolutional then the representation should simply translate when an image is translated. If the final features for classification are obtained by a global pooling operation on the representation (as is done for example in ResNet50 and InceptionResNetV2) then these features should be invariant to translation. Where does this intuition fail? ",
|
| 227 |
+
"bbox": [
|
| 228 |
+
174,
|
| 229 |
+
844,
|
| 230 |
+
825,
|
| 231 |
+
887
|
| 232 |
+
],
|
| 233 |
+
"page_idx": 2
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"type": "text",
|
| 237 |
+
"text": "",
|
| 238 |
+
"bbox": [
|
| 239 |
+
173,
|
| 240 |
+
103,
|
| 241 |
+
823,
|
| 242 |
+
132
|
| 243 |
+
],
|
| 244 |
+
"page_idx": 3
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"type": "image",
|
| 248 |
+
"img_path": "images/c2c6c1eeffb9c3ee10ebc723e3bca2e59d9e945c463eccdc0390f9338be39180.jpg",
|
| 249 |
+
"image_caption": [
|
| 250 |
+
"Figure 3: The deeper the network, the less shiftable are the feature maps. A) A vertical shift of a \"Kuvasz\" dog in the image plane. B) Feature maps from three different network architectures in response to the translated Kuvasz image. Layer depth assignments reflect the number of trainable convolutional layers preceding the selected layer. The last layer is always the last convolutional layer in each network. "
|
| 251 |
+
],
|
| 252 |
+
"image_footnote": [],
|
| 253 |
+
"bbox": [
|
| 254 |
+
318,
|
| 255 |
+
155,
|
| 256 |
+
683,
|
| 257 |
+
492
|
| 258 |
+
],
|
| 259 |
+
"page_idx": 3
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"type": "text",
|
| 263 |
+
"text": "This intuition ignores the subsampling operation which is prevalent in modern CNNs, also known as \"stride\". This failure of translation invariance in systems with subsampling was explicitly discussed in Simoncelli et al. (Simoncelli et al., 1992) who wrote \"We cannot literally expect translation invariance in a system based on convolution and subsampling: translation of the input signal cannot produce simple translations of the transform coefficients, unless the translation is a multiple of each of the subsampling factors in the system\". Since deep networks often contain many subsampling operations, the subsampling factor of the deep layers may be very large so that \"literal\" translation invariance only holds for very special translations. In InceptionResnetV2, for example, the subsampling factor is 60, so we expect exact translation invariance to hold only for $\\scriptstyle { \\frac { 1 } { 6 0 ^ { 2 } } }$ of possible translations. ",
|
| 264 |
+
"bbox": [
|
| 265 |
+
174,
|
| 266 |
+
602,
|
| 267 |
+
825,
|
| 268 |
+
728
|
| 269 |
+
],
|
| 270 |
+
"page_idx": 3
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"type": "text",
|
| 274 |
+
"text": "Simoncelli et al. also defined a weaker form of translation invariance, which they called \"shiftability\" and showed that it can hold for systems with subsampling (this is related to weak translation invariance as defined by (Lenc & Vedaldi, 2015), see also (Esteves et al., 2017; Cohen & Welling, 2014) for related ideas applied to neural networks). Here we extend the basic shiftability result to show that when shiftability holds, then global pooling will indeed yield invariant representations. ",
|
| 275 |
+
"bbox": [
|
| 276 |
+
174,
|
| 277 |
+
734,
|
| 278 |
+
825,
|
| 279 |
+
804
|
| 280 |
+
],
|
| 281 |
+
"page_idx": 3
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"type": "text",
|
| 285 |
+
"text": "We define $r ( x )$ as the response of a feature detector at location $x$ in the image plane. We say that this response is \"convolutional\" if translating the image by any translation $\\delta$ yields a translation of the response by the same $\\delta$ . This definition includes cases when the feature response is obtained by convolving the input image with a fixed filter, but also includes combinations of linear operations and nonlinear operations that do not include any subsampling. ",
|
| 286 |
+
"bbox": [
|
| 287 |
+
174,
|
| 288 |
+
810,
|
| 289 |
+
823,
|
| 290 |
+
881
|
| 291 |
+
],
|
| 292 |
+
"page_idx": 3
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"type": "text",
|
| 296 |
+
"text": "We start by a trivial observation: ",
|
| 297 |
+
"bbox": [
|
| 298 |
+
174,
|
| 299 |
+
887,
|
| 300 |
+
387,
|
| 301 |
+
902
|
| 302 |
+
],
|
| 303 |
+
"page_idx": 3
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"type": "text",
|
| 307 |
+
"text": "Observation: If $r ( x )$ is convolutional then global pooling $\\begin{array} { r } { r = \\sum _ { x } r ( x ) } \\end{array}$ is translation invariant. ",
|
| 308 |
+
"bbox": [
|
| 309 |
+
171,
|
| 310 |
+
909,
|
| 311 |
+
797,
|
| 312 |
+
925
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 3
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "Proof: This follows directly from the definition of a convolutional response. If $r ( x )$ is the feature response to one image and $r _ { 2 } ( x )$ is the feature response to the same image translated, then $\\textstyle \\sum _ { x } r ( x ) =$ $\\textstyle \\sum _ { x } ^ { * } r _ { 2 } ( x )$ since the two responses are shifts of each other. ",
|
| 319 |
+
"bbox": [
|
| 320 |
+
171,
|
| 321 |
+
103,
|
| 322 |
+
825,
|
| 323 |
+
146
|
| 324 |
+
],
|
| 325 |
+
"page_idx": 4
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"type": "text",
|
| 329 |
+
"text": "Definition: A feature detector $r ( x )$ with subsampling factor $s$ is called “shiftable” if for any $x$ the detector output at location $x$ can be linearly interpolated from the responses on the sampling grid: ",
|
| 330 |
+
"bbox": [
|
| 331 |
+
169,
|
| 332 |
+
152,
|
| 333 |
+
825,
|
| 334 |
+
181
|
| 335 |
+
],
|
| 336 |
+
"page_idx": 4
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"type": "equation",
|
| 340 |
+
"img_path": "images/8eca73341a20c8fadf33b2a6e1d23a276f6623119228078446f818a058f05ab3.jpg",
|
| 341 |
+
"text": "$$\nr ( x ) = \\sum _ { i } B _ { s } ( x - x _ { i } ) r ( x _ { i } )\n$$",
|
| 342 |
+
"text_format": "latex",
|
| 343 |
+
"bbox": [
|
| 344 |
+
401,
|
| 345 |
+
185,
|
| 346 |
+
594,
|
| 347 |
+
219
|
| 348 |
+
],
|
| 349 |
+
"page_idx": 4
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"type": "text",
|
| 353 |
+
"text": "where $x _ { i }$ are located on the sampling grid for subsampling factor $s$ and $B _ { s } ( x )$ is the basis function for reconstructing $r ( x )$ from the samples. ",
|
| 354 |
+
"bbox": [
|
| 355 |
+
174,
|
| 356 |
+
224,
|
| 357 |
+
823,
|
| 358 |
+
253
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 4
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "text",
|
| 364 |
+
"text": "The classic Shannon-Nyquist theorem tells us that $r ( x )$ will be shiftable if and only if the sampling frequency is at least twice the highest frequency in $r ( x )$ . ",
|
| 365 |
+
"bbox": [
|
| 366 |
+
176,
|
| 367 |
+
258,
|
| 368 |
+
821,
|
| 369 |
+
289
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 4
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "Claim: If $r ( x )$ is shiftable then global pooling on the sampling grid $\\begin{array} { r } { r = \\sum _ { i } r ( x _ { i } ) } \\end{array}$ is translation invariant. ",
|
| 376 |
+
"bbox": [
|
| 377 |
+
173,
|
| 378 |
+
294,
|
| 379 |
+
820,
|
| 380 |
+
323
|
| 381 |
+
],
|
| 382 |
+
"page_idx": 4
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"type": "text",
|
| 386 |
+
"text": "Proof: This follows from the fact that global pooling on the sampling grid is (up to a constant) the same as global pooling for all $x$ . ",
|
| 387 |
+
"bbox": [
|
| 388 |
+
169,
|
| 389 |
+
329,
|
| 390 |
+
821,
|
| 391 |
+
358
|
| 392 |
+
],
|
| 393 |
+
"page_idx": 4
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"type": "equation",
|
| 397 |
+
"img_path": "images/a807cc9e5590322990f445043557245941d52bf288b16228e933d4a94f7c97bc.jpg",
|
| 398 |
+
"text": "$$\n\\begin{array} { l c l } { \\displaystyle \\sum _ { x } r ( x ) } & { = } & { \\displaystyle \\sum _ { x } \\sum _ { i } r ( x _ { i } ) B ( x - x _ { i } ) } \\\\ { \\displaystyle } & { = } & { \\displaystyle \\sum _ { i } r ( x _ { i } ) \\sum _ { x } B ( x - x _ { i } ) } \\\\ { \\displaystyle } & { = } & { K \\sum _ { i } r ( x _ { i } ) } \\end{array}\n$$",
|
| 399 |
+
"text_format": "latex",
|
| 400 |
+
"bbox": [
|
| 401 |
+
364,
|
| 402 |
+
361,
|
| 403 |
+
632,
|
| 404 |
+
465
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 4
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "where $\\begin{array} { r } { K = \\sum _ { x } B ( x - x _ { i } ) } \\end{array}$ and $K$ does not depend on $x _ { i }$ ",
|
| 411 |
+
"bbox": [
|
| 412 |
+
173,
|
| 413 |
+
469,
|
| 414 |
+
553,
|
| 415 |
+
486
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 4
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "While the claim focuses on a global translation, it can also be extended to piecewise constant transformations. ",
|
| 422 |
+
"bbox": [
|
| 423 |
+
173,
|
| 424 |
+
491,
|
| 425 |
+
823,
|
| 426 |
+
520
|
| 427 |
+
],
|
| 428 |
+
"page_idx": 4
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"type": "text",
|
| 432 |
+
"text": "Corollary: Consider a set of transformations $T$ that are constant on a set of given image subareas. If $r ( x )$ is shiftable and for a given image, the support of $r ( x )$ and its receptive field is contained in the same subregion for all transformations in $T$ , then global pooling on the sampling grid is invariant to any transformation in $T$ . ",
|
| 433 |
+
"bbox": [
|
| 434 |
+
173,
|
| 435 |
+
526,
|
| 436 |
+
825,
|
| 437 |
+
583
|
| 438 |
+
],
|
| 439 |
+
"page_idx": 4
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"type": "text",
|
| 443 |
+
"text": "Proof: This follows from the fact that applying any transformation in $T$ to an image has the same effect on the feature map $r ( x )$ as translating the image. ",
|
| 444 |
+
"bbox": [
|
| 445 |
+
173,
|
| 446 |
+
589,
|
| 447 |
+
823,
|
| 448 |
+
618
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 4
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "To illustrate the importance of the sampling theorem in guaranteeing invariance in CNNs, consider a convolutional layer in a deep CNN where each unit acts as a localized \"part detector\" (this has been reported to be the case for many modern CNNs (Zeiler & Fergus, 2014; Zhou et al., 2014)). Each such part detector has a spatial tuning function and the degree of sharpness of this tuning function will determine whether the feature map can be subsampled while preserving shiftability or not. For example, consider a part detector that fires only when the part is exactly at the center of its receptive field. If there is no subsampling, then as we translate the input image, the feature map will translate as well, and the global sum of the feature map is invariant to translation. But if we subsample by two (or equivalently use a stride of two), then there will only be activity in the feature map when the feature is centered on an even pixel, but not when it is centered on an odd pixel. This means that the global sum of the feature map will not be invariant to translation. ",
|
| 455 |
+
"bbox": [
|
| 456 |
+
173,
|
| 457 |
+
625,
|
| 458 |
+
825,
|
| 459 |
+
777
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 4
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "text",
|
| 465 |
+
"text": "In the language of Fourier transforms, the problem with a part detector that fires only when the part is exactly at the center of the receptive field is that the feature map contains many high frequencies and hence it cannot be subsampled while preserving shiftability. On the other hand, if we have a part detector whose spatial tuning function is more broad, it can be shiftable and our claim (above) shows that the global sum of activities in a feature map will be preserved for all translations, even though the individual firing rates of units will still be different when the part is centered at an odd pixel or an even pixel. Our corollary (above), shows the importance of shiftability to other smooth transformations: in this case each \"part detector\" will translate with a different translation but it is still the case that nonshiftable representations will not preserve the global sum of activities as the image is transformed, while shiftable representations will. ",
|
| 466 |
+
"bbox": [
|
| 467 |
+
174,
|
| 468 |
+
784,
|
| 469 |
+
825,
|
| 470 |
+
924
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 4
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "text",
|
| 476 |
+
"text": "Figure 3 examines the extent to which the representations learned by modern CNNs are invariant or shiftable. The top row shows an image that is translated vertically, while the bottom three rows show the representations in different layers for the three CNNs we consider. For VGG16 the representation appears to shift along with the object, including the final layer where the blurred pattern of response is not a simple translation of the original response, but seems to preserve the global sum for this particular image. For the two more modern networks, the responses are sharper but lose their shiftability in the later layers. In particular, the final layers show approximate invariance to one special translation but no response at all to another translation, suggesting that the many layers of subsampling yield a final response that is not shiftable. ",
|
| 477 |
+
"bbox": [
|
| 478 |
+
173,
|
| 479 |
+
103,
|
| 480 |
+
825,
|
| 481 |
+
229
|
| 482 |
+
],
|
| 483 |
+
"page_idx": 5
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"type": "text",
|
| 487 |
+
"text": "We also performed a more quantitative measure of shiftability by counting for a given image the number of times the global sum of activities in each layer changes significantly (more than $20 \\%$ of mean) as the input is shifted (for each image, we only considered feature maps where the maximum response was above a threshold). We call this measure \"nonshiftability\". According to the preceding analysis, in architectures that obey the sampling theorem, the global sum should be invariant to input translation so nonshiftability should be zero in all layers. We find that for all three networks, the initial layers have nonshiftability close to zero but as we go deeper and deeper nonshiftability increases. Furthermore, the deeper, more modern networks, exhibit larger nonshiftability in their deep layers compared to VGG16 (see appendix for graphs). ",
|
| 488 |
+
"bbox": [
|
| 489 |
+
174,
|
| 490 |
+
236,
|
| 491 |
+
825,
|
| 492 |
+
361
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 5
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "text",
|
| 498 |
+
"text": "How can we guarantee that representations in CNNs will be shiftable? As explained above, we need to make sure that any feature map that uses stride does not contain frequencies above the Nyquist frequency. If CNNs were purely linear, we could simply blur the input images so that they would not include any frequencies higher than the Nyquist limit determined by the final sampling factor of the network. But since CNNs also include nonlinearities, they can add high frequencies that were not present in the input. ",
|
| 499 |
+
"bbox": [
|
| 500 |
+
174,
|
| 501 |
+
367,
|
| 502 |
+
825,
|
| 503 |
+
450
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 5
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "text",
|
| 509 |
+
"text": "An important message of the sampling theorem is that you should always blur before subsampling. Translated to the language of neural networks this means that stride (i.e. subsampling) should always be combined with pooling (i.e. blurring) in the preceding layer. Indeed if we have an arbitrarily deep CNN where all the layers use stride $^ { = 1 }$ followed by one layer that has a stride greater than one, then by choosing the pooling window appropriately we can guarantee that the final layer will still be shiftable. If we do not use appropriate pooling then there is no guarantee that this layer will be shiftable. Even if we use appropriate pooling that ensures that a given layer is shiftable, the subsequent nonlinearities in a CNN may not preserve the shiftability, as the nonlinearities may again introduce high frequencies. ",
|
| 510 |
+
"bbox": [
|
| 511 |
+
174,
|
| 512 |
+
458,
|
| 513 |
+
825,
|
| 514 |
+
570
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 5
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "To illustrate the effect of pooling on shiftability in modern CNNs we replaced the $2 \\times 2$ max pooling layers of VGG16 with $6 \\times 6$ average pooling. This has the effect of reducing low freqencies but given the nonlinearities, it does not guarantee shiftability. As shown in figure 4 this simple change makes the representations approximately shiftable and, as predicted by our theory, the global sum is now invariant to both translations and rescalings of the input. This invariance of course comes with a price: the feature maps now have less detail and in preliminary experiments we find that recognition performance decreases somewhat. But the sampling theorem tells us that if we want to use subsampling while avoiding aliasing, we need to ensure that no high frequencies (relative to the Nyquist frequency) are present in the feature maps. ",
|
| 521 |
+
"bbox": [
|
| 522 |
+
174,
|
| 523 |
+
577,
|
| 524 |
+
825,
|
| 525 |
+
702
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 5
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "text",
|
| 531 |
+
"text": "As an alternative to pooling, Ruderman et al. (Ruderman et al., 2018) have shown that networks may learn smooth filters that will lead to reduced sensitivity to transformations. Evidently, the filters learned in standard VGG16 are not smooth enough. ",
|
| 532 |
+
"bbox": [
|
| 533 |
+
176,
|
| 534 |
+
708,
|
| 535 |
+
825,
|
| 536 |
+
751
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 5
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "text",
|
| 542 |
+
"text": "4 WHY DON’T MODERN CNNS LEARN TO BE INVARIANT FROM DATA? ",
|
| 543 |
+
"text_level": 1,
|
| 544 |
+
"bbox": [
|
| 545 |
+
173,
|
| 546 |
+
772,
|
| 547 |
+
771,
|
| 548 |
+
789
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 5
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "text",
|
| 554 |
+
"text": "While the preceding discussion suggests that the CNN architecture will not yield translation invariance \"for free\", there is still the possibility that the CNN will learn a translation invariant prediction from the training examples. This requires that the training set will actually be invariant to the irrelevant transformations. We examined the degree of invariance in the ImageNet training set by manually labeling the training images in five categories: Tibetan terrier, elephant, pineapple, bagel and rowing paddle. ",
|
| 555 |
+
"bbox": [
|
| 556 |
+
174,
|
| 557 |
+
804,
|
| 558 |
+
825,
|
| 559 |
+
888
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 5
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "text",
|
| 565 |
+
"text": "Consistent with previous results on \"dataset bias\" (Simon et al., 2007; Raguram & Lazebnik, 2008; Berg & Berg, 2009; Torralba & Efros, 2011; Weyand & Leibe, 2011; Mezuman & Weiss, 2012) we find that the ImageNet dataset is not invariant to translations and rescalings. Figure 5 shows the distribution of the distances between the eyes of a \"Tibetan terrier\" and the positions of the center point between the dog’s eyes. Notice that both distributions are far from uniform. Similar results are obtained for the other four categories. ",
|
| 566 |
+
"bbox": [
|
| 567 |
+
174,
|
| 568 |
+
895,
|
| 569 |
+
823,
|
| 570 |
+
924
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 5
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "image",
|
| 576 |
+
"img_path": "images/24fecbc7f848b672f4bee1c0d89154ae077eb2c305f5959d8742a51bfd5d9aca.jpg",
|
| 577 |
+
"image_caption": [
|
| 578 |
+
"Figure 4: Average pooling makes VGG representations approximately shiftable. Plotted are summation of feature maps from the last layer of VGG (spatial dimension $7 { \\bf x } 7 $ ) as an input image is vertically translated in the image plane (top), or rescaled (bottom). Left: the original VGG16 with its $2 \\mathbf { x } 2$ max pooling layers. Right: VGG16 where every $2 \\mathbf { x } 2$ max pooling layer was replaced by a 6x6 average pooling layer. More randomly selected images are shown in the appendix. "
|
| 579 |
+
],
|
| 580 |
+
"image_footnote": [],
|
| 581 |
+
"bbox": [
|
| 582 |
+
269,
|
| 583 |
+
99,
|
| 584 |
+
723,
|
| 585 |
+
305
|
| 586 |
+
],
|
| 587 |
+
"page_idx": 6
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "text",
|
| 591 |
+
"text": "",
|
| 592 |
+
"bbox": [
|
| 593 |
+
176,
|
| 594 |
+
421,
|
| 595 |
+
825,
|
| 596 |
+
478
|
| 597 |
+
],
|
| 598 |
+
"page_idx": 6
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"type": "image",
|
| 602 |
+
"img_path": "images/086cee2ee3cec063d5efaeebe2f70147eff5ecac249bb8e40ca7d033388356ec.jpg",
|
| 603 |
+
"image_caption": [
|
| 604 |
+
"Figure 5: Photographer’s biases in the ImageNet’s “Tibetan terrier” category. Left: Example of the hand-labeling procedure. Middle: Positions of the middle point between the dog’s eyes. Right: Histogram of distances between the dog’s eyes. Notice the bias in both the object’s position and scale. "
|
| 605 |
+
],
|
| 606 |
+
"image_footnote": [],
|
| 607 |
+
"bbox": [
|
| 608 |
+
241,
|
| 609 |
+
494,
|
| 610 |
+
754,
|
| 611 |
+
602
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 6
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "text",
|
| 617 |
+
"text": "To be more quantitative, we used the available bounding-box labels, and extracted the center point of the bounding-box and its height as proxies for the object position and size respectively. We then applied a statistical significance test to ask whether object location and object sizes were uniform for that category. For more than 900 out of the 1000 categories we found that location and size were highly non uniform $( P < 1 0 ^ { - 1 0 }$ ). Given these strong biases, we cannot expect a learning system to learn to be invariant. ",
|
| 618 |
+
"bbox": [
|
| 619 |
+
174,
|
| 620 |
+
680,
|
| 621 |
+
825,
|
| 622 |
+
763
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 6
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "Even if the training set is not invariant, we can make it invariant using data augmentation. Will this make the CNN learn an invariant prediction? First, we note that we used pretrained networks and according to the authors’ description of the training procedure, all three networks were trained using data augmentation. Obviously, not any data augmentation is sufficient for the networks to learn invariances. To understand the failure of data augmentation, it is again instructive to consider the subsampling factor. Since in modern networks the subsampling factor is approximately 60, then for a system to learn complete invariance to translation only, it would need to see $6 0 ^ { \\mathrm { { 2 } } } = 3 6 0 0$ augmented versions of each training example, or it would need to have an inductive bias that allows it to generalize over transformations. If we also add invariance to rotations and scalings, the number grows exponentially with the number of irrelevant transformations. Engstrom et al. (Engstrom et al., 2017) suggest a sophisticated data augmentation method and show that it increases the invariance to translation and rotation. However, for challenging datasets such as ImageNet the lack of invariance largely persists. ",
|
| 629 |
+
"bbox": [
|
| 630 |
+
173,
|
| 631 |
+
770,
|
| 632 |
+
825,
|
| 633 |
+
924
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 6
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "",
|
| 640 |
+
"bbox": [
|
| 641 |
+
171,
|
| 642 |
+
103,
|
| 643 |
+
823,
|
| 644 |
+
132
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 7
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "image",
|
| 650 |
+
"img_path": "images/8687e7fea4e72e1813da5fc3562a8991c87990ba4dbd8ba66b1a09134f0d9887.jpg",
|
| 651 |
+
"image_caption": [
|
| 652 |
+
"Figure 6: The performance of modern CNNs on test images from ImageNet that are embedded in a random location in a larger image is quite poor (less than $50 \\%$ accuracy). Human performance is not affected. Right: An example of a full sized image and the same image resized to $1 0 0 \\mathrm { x } 1 0 0$ . "
|
| 653 |
+
],
|
| 654 |
+
"image_footnote": [],
|
| 655 |
+
"bbox": [
|
| 656 |
+
320,
|
| 657 |
+
146,
|
| 658 |
+
678,
|
| 659 |
+
316
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 7
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "5 IMPLICATIONS FOR PRACTICAL SYSTEMS ",
|
| 666 |
+
"text_level": 1,
|
| 667 |
+
"bbox": [
|
| 668 |
+
174,
|
| 669 |
+
398,
|
| 670 |
+
547,
|
| 671 |
+
414
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 7
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "text",
|
| 677 |
+
"text": "Although our results show that modern CNNs fail to generalize for small image transformations, their performance on the ImageNet test set is still amazingly good and far better than previous techniques. This is related to the fact that the ImageNet test set contains the same photographer’s biases as the training set, so generalization to very different sizes and locations is not required. To highlight this point, we created a new test set in which ImageNet images were embedded in a larger image in a random location (and the missing pixels were filled in using a simple inpainting algorithm). Figure 6 shows that human performance is not affected by the rescaling and random translations, while the performance of modern CNNs deteriorates dramatically. In fact, when images are scaled to half their original size and randomly translated, the accuracy of modern CNNs is less than $50 \\%$ , typically considered poor performance. ",
|
| 678 |
+
"bbox": [
|
| 679 |
+
174,
|
| 680 |
+
428,
|
| 681 |
+
825,
|
| 682 |
+
568
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 7
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "text",
|
| 688 |
+
"text": "One way in which modern systems partially address the lack of invariance is using test time augmentation in which the system output on a given image is computed by a majority vote among many random crops of the image. Clearly this is wasteful in resources and still only provides partial invariance. ",
|
| 689 |
+
"bbox": [
|
| 690 |
+
174,
|
| 691 |
+
574,
|
| 692 |
+
825,
|
| 693 |
+
631
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 7
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "6 DISCUSSION ",
|
| 700 |
+
"text_level": 1,
|
| 701 |
+
"bbox": [
|
| 702 |
+
174,
|
| 703 |
+
650,
|
| 704 |
+
310,
|
| 705 |
+
666
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 7
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "text",
|
| 711 |
+
"text": "CNN architectures were designed based on an intuition that the convolutional structure and pooling operations will give invariance to translations and small image deformations \"for free\". In this paper we have shown that this intuition breaks down once subsampling, or \"stride\" is used and we have presented empirical evidence that modern CNNs do not display the desired invariances since the architecture ignores the classic sampling theorem. This still leaves open the possibility of a CNN learning invariance from the data but we have shown that the ImageNet training and testing examples include significant photographer’s bias so that it is unlikely that a system will learn invariance using these examples. ",
|
| 712 |
+
"bbox": [
|
| 713 |
+
174,
|
| 714 |
+
680,
|
| 715 |
+
825,
|
| 716 |
+
791
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 7
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "text",
|
| 722 |
+
"text": "In addition to pointing out these failures, the sampling theorem also suggests a way to impose translation invariance by ensuring that all representations are sufficiently blurred to overcome the subsampling. However, such blurred representations may lead to a decrease in performance, especially in datasets and benchmarks that contain photographer’s bias. Alternatively, one could use specially designed features in which invariance is hard coded or neural network architectures that explicitly enforce invariance (Sifre & Mallat, 2013; Gens & Domingos, 2014; Cheng et al., 2016a;b; Dieleman et al., 2016; 2015; Xu et al., 2014; Worrall et al., 2017; Cohen & Welling, 2016). Again, as long as the datasets contain significant photographer’s bias, such invariant approaches may lead to a decrease in performance. ",
|
| 723 |
+
"bbox": [
|
| 724 |
+
173,
|
| 725 |
+
797,
|
| 726 |
+
825,
|
| 727 |
+
924
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 7
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "text",
|
| 733 |
+
"text": "REFERENCES ",
|
| 734 |
+
"text_level": 1,
|
| 735 |
+
"bbox": [
|
| 736 |
+
176,
|
| 737 |
+
102,
|
| 738 |
+
287,
|
| 739 |
+
117
|
| 740 |
+
],
|
| 741 |
+
"page_idx": 8
|
| 742 |
+
},
|
| 743 |
+
{
|
| 744 |
+
"type": "text",
|
| 745 |
+
"text": "Tamara L Berg and Alexander C Berg. Finding iconic images. In Computer Vision and Pattern Recognition Workshops, 2009. CVPR Workshops 2009. IEEE Computer Society Conference on, pp. 1–8. IEEE, 2009. ",
|
| 746 |
+
"bbox": [
|
| 747 |
+
174,
|
| 748 |
+
126,
|
| 749 |
+
825,
|
| 750 |
+
167
|
| 751 |
+
],
|
| 752 |
+
"page_idx": 8
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"type": "text",
|
| 756 |
+
"text": "Arjun Nitin Bhagoji, Warren He, Bo Li, and Dawn Song. Exploring the space of black-box attacks on deep neural networks. arXiv preprint arXiv:1712.09491, 2017. ",
|
| 757 |
+
"bbox": [
|
| 758 |
+
171,
|
| 759 |
+
176,
|
| 760 |
+
823,
|
| 761 |
+
207
|
| 762 |
+
],
|
| 763 |
+
"page_idx": 8
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"type": "text",
|
| 767 |
+
"text": "Charlotte Bunne, Lukas Rahmann, and Thomas Wolf. Studying invariances of trained convolutional neural networks. arXiv preprint arXiv:1803.05963, 2018. ",
|
| 768 |
+
"bbox": [
|
| 769 |
+
173,
|
| 770 |
+
215,
|
| 771 |
+
823,
|
| 772 |
+
244
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 8
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "text",
|
| 778 |
+
"text": "Gong Cheng, Peicheng Zhou, and Junwei Han. Learning rotation-invariant convolutional neural networks for object detection in vhr optical remote sensing images. IEEE Transactions on Geoscience and Remote Sensing, 54(12):7405–7415, 2016a. ",
|
| 779 |
+
"bbox": [
|
| 780 |
+
176,
|
| 781 |
+
253,
|
| 782 |
+
823,
|
| 783 |
+
296
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 8
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "text",
|
| 789 |
+
"text": "Gong Cheng, Peicheng Zhou, and Junwei Han. Rifd-cnn: Rotation-invariant and fisher discriminative convolutional neural networks for object detection. In Computer Vision and Pattern Recognition (CVPR), 2016 IEEE Conference on, pp. 2884–2893. IEEE, 2016b. ",
|
| 790 |
+
"bbox": [
|
| 791 |
+
176,
|
| 792 |
+
304,
|
| 793 |
+
823,
|
| 794 |
+
348
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 8
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "text",
|
| 800 |
+
"text": "Taco Cohen and Max Welling. Group equivariant convolutional networks. In International Conference on Machine Learning, pp. 2990–2999, 2016. ",
|
| 801 |
+
"bbox": [
|
| 802 |
+
174,
|
| 803 |
+
357,
|
| 804 |
+
821,
|
| 805 |
+
386
|
| 806 |
+
],
|
| 807 |
+
"page_idx": 8
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"type": "text",
|
| 811 |
+
"text": "Taco S Cohen and Max Welling. Transformation properties of learned visual representations. arXiv preprint arXiv:1412.7659, 2014. ",
|
| 812 |
+
"bbox": [
|
| 813 |
+
173,
|
| 814 |
+
393,
|
| 815 |
+
821,
|
| 816 |
+
424
|
| 817 |
+
],
|
| 818 |
+
"page_idx": 8
|
| 819 |
+
},
|
| 820 |
+
{
|
| 821 |
+
"type": "text",
|
| 822 |
+
"text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pp. 248–255. IEEE, 2009. ",
|
| 823 |
+
"bbox": [
|
| 824 |
+
173,
|
| 825 |
+
431,
|
| 826 |
+
825,
|
| 827 |
+
476
|
| 828 |
+
],
|
| 829 |
+
"page_idx": 8
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"type": "text",
|
| 833 |
+
"text": "Sander Dieleman, Kyle W Willett, and Joni Dambre. Rotation-invariant convolutional neural networks for galaxy morphology prediction. Monthly notices of the royal astronomical society, 450(2): 1441–1459, 2015. ",
|
| 834 |
+
"bbox": [
|
| 835 |
+
174,
|
| 836 |
+
484,
|
| 837 |
+
825,
|
| 838 |
+
527
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 8
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "text",
|
| 844 |
+
"text": "Sander Dieleman, Jeffrey De Fauw, and Koray Kavukcuoglu. Exploiting cyclic symmetry in convolutional neural networks. arXiv preprint arXiv:1602.02660, 2016. ",
|
| 845 |
+
"bbox": [
|
| 846 |
+
173,
|
| 847 |
+
536,
|
| 848 |
+
825,
|
| 849 |
+
565
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 8
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"text": "Logan Engstrom, Dimitris Tsipras, Ludwig Schmidt, and Aleksander Madry. A rotation and a translation suffice: Fooling cnns with simple transformations. CoRR, abs/1712.02779, 2017. URL http://arxiv.org/abs/1712.02779. ",
|
| 856 |
+
"bbox": [
|
| 857 |
+
174,
|
| 858 |
+
574,
|
| 859 |
+
823,
|
| 860 |
+
617
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 8
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "Carlos Esteves, Christine Allen-Blanchette, Xiaowei Zhou, and Kostas Daniilidis. Polar transformer networks. arXiv preprint arXiv:1709.01889, 2017. ",
|
| 867 |
+
"bbox": [
|
| 868 |
+
176,
|
| 869 |
+
626,
|
| 870 |
+
825,
|
| 871 |
+
655
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 8
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "Alhussein Fawzi and Pascal Frossard. Manitest: Are classifiers really invariant? arXiv preprint arXiv:1507.06535, 2015. ",
|
| 878 |
+
"bbox": [
|
| 879 |
+
174,
|
| 880 |
+
662,
|
| 881 |
+
825,
|
| 882 |
+
693
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 8
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "Kunihiko Fukushima. Neocognitron: A hierarchical neural network capable of visual pattern recognition. Neural networks, 1(2):119–130, 1988. ",
|
| 889 |
+
"bbox": [
|
| 890 |
+
171,
|
| 891 |
+
702,
|
| 892 |
+
825,
|
| 893 |
+
731
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 8
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "Kunihiko Fukushima and Sei Miyake. Neocognitron: A self-organizing neural network model for a mechanism of visual pattern recognition. In Competition and cooperation in neural nets, pp. 267–285. Springer, 1982. ",
|
| 900 |
+
"bbox": [
|
| 901 |
+
174,
|
| 902 |
+
739,
|
| 903 |
+
825,
|
| 904 |
+
782
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 8
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "Robert Gens and Pedro M Domingos. Deep symmetry networks. In Advances in neural information processing systems, pp. 2537–2545, 2014. ",
|
| 911 |
+
"bbox": [
|
| 912 |
+
171,
|
| 913 |
+
791,
|
| 914 |
+
825,
|
| 915 |
+
820
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 8
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "text",
|
| 921 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pp. 1026–1034, 2015. ",
|
| 922 |
+
"bbox": [
|
| 923 |
+
176,
|
| 924 |
+
829,
|
| 925 |
+
823,
|
| 926 |
+
873
|
| 927 |
+
],
|
| 928 |
+
"page_idx": 8
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"type": "text",
|
| 932 |
+
"text": "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. ",
|
| 933 |
+
"bbox": [
|
| 934 |
+
176,
|
| 935 |
+
881,
|
| 936 |
+
825,
|
| 937 |
+
924
|
| 938 |
+
],
|
| 939 |
+
"page_idx": 8
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "text",
|
| 943 |
+
"text": "Olivier J Hénaff and Eero P Simoncelli. Geodesics of learned representations. arXiv preprint arXiv:1511.06394, 2015. ",
|
| 944 |
+
"bbox": [
|
| 945 |
+
171,
|
| 946 |
+
103,
|
| 947 |
+
825,
|
| 948 |
+
132
|
| 949 |
+
],
|
| 950 |
+
"page_idx": 9
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"type": "text",
|
| 954 |
+
"text": "Jason Jo and Yoshua Bengio. Measuring the tendency of cnns to learn surface statistical regularities. arXiv preprint arXiv:1711.11561, 2017. ",
|
| 955 |
+
"bbox": [
|
| 956 |
+
171,
|
| 957 |
+
142,
|
| 958 |
+
825,
|
| 959 |
+
171
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 9
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "text",
|
| 965 |
+
"text": "Eric Kauderer-Abrams. Quantifying translation-invariance in convolutional neural networks. arXiv preprint arXiv:1801.01450, 2017. ",
|
| 966 |
+
"bbox": [
|
| 967 |
+
171,
|
| 968 |
+
180,
|
| 969 |
+
823,
|
| 970 |
+
209
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 9
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "text",
|
| 976 |
+
"text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012. ",
|
| 977 |
+
"bbox": [
|
| 978 |
+
174,
|
| 979 |
+
218,
|
| 980 |
+
825,
|
| 981 |
+
261
|
| 982 |
+
],
|
| 983 |
+
"page_idx": 9
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"type": "text",
|
| 987 |
+
"text": "Yann LeCun, Bernhard Boser, John S Denker, Donnie Henderson, Richard E Howard, Wayne Hubbard, and Lawrence D Jackel. Backpropagation applied to handwritten zip code recognition. Neural computation, 1(4):541–551, 1989. ",
|
| 988 |
+
"bbox": [
|
| 989 |
+
176,
|
| 990 |
+
271,
|
| 991 |
+
825,
|
| 992 |
+
314
|
| 993 |
+
],
|
| 994 |
+
"page_idx": 9
|
| 995 |
+
},
|
| 996 |
+
{
|
| 997 |
+
"type": "text",
|
| 998 |
+
"text": "Karel Lenc and Andrea Vedaldi. Understanding image representations by measuring their equivariance and equivalence. In Computer Vision and Pattern Recognition (CVPR), 2015 IEEE Conference on, pp. 991–999. IEEE, 2015. ",
|
| 999 |
+
"bbox": [
|
| 1000 |
+
173,
|
| 1001 |
+
324,
|
| 1002 |
+
823,
|
| 1003 |
+
367
|
| 1004 |
+
],
|
| 1005 |
+
"page_idx": 9
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"type": "text",
|
| 1009 |
+
"text": "Elad Mezuman and Yair Weiss. Learning about canonical views from internet image collections. In Advances in Neural Information Processing Systems, pp. 719–727, 2012. ",
|
| 1010 |
+
"bbox": [
|
| 1011 |
+
168,
|
| 1012 |
+
376,
|
| 1013 |
+
825,
|
| 1014 |
+
406
|
| 1015 |
+
],
|
| 1016 |
+
"page_idx": 9
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "text",
|
| 1020 |
+
"text": "Rahul Raguram and Svetlana Lazebnik. Computing iconic summaries of general visual concepts. In Computer Vision and Pattern Recognition Workshops, 2008. CVPRW’08. IEEE Computer Society Conference on, pp. 1–8. IEEE, 2008. ",
|
| 1021 |
+
"bbox": [
|
| 1022 |
+
176,
|
| 1023 |
+
415,
|
| 1024 |
+
825,
|
| 1025 |
+
458
|
| 1026 |
+
],
|
| 1027 |
+
"page_idx": 9
|
| 1028 |
+
},
|
| 1029 |
+
{
|
| 1030 |
+
"type": "text",
|
| 1031 |
+
"text": "Erik Rodner, Marcel Simon, Robert B Fisher, and Joachim Denzler. Fine-grained recognition in the noisy wild: Sensitivity analysis of convolutional neural networks approaches. arXiv preprint arXiv:1610.06756, 2016. ",
|
| 1032 |
+
"bbox": [
|
| 1033 |
+
173,
|
| 1034 |
+
467,
|
| 1035 |
+
823,
|
| 1036 |
+
511
|
| 1037 |
+
],
|
| 1038 |
+
"page_idx": 9
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"type": "text",
|
| 1042 |
+
"text": "Amir Rosenfeld, Richard Zemel, and John K Tsotsos. The elephant in the room. arXiv preprint arXiv:1808.03305, 2018. ",
|
| 1043 |
+
"bbox": [
|
| 1044 |
+
173,
|
| 1045 |
+
520,
|
| 1046 |
+
823,
|
| 1047 |
+
549
|
| 1048 |
+
],
|
| 1049 |
+
"page_idx": 9
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"type": "text",
|
| 1053 |
+
"text": "Avraham Ruderman, Neil C. Rabinowitz, Ari S. Morcos, and Daniel Zoran. Learned deformation stability in convolutional neural networks. CoRR, abs/1804.04438, 2018. URL http://arxiv. org/abs/1804.04438. ",
|
| 1054 |
+
"bbox": [
|
| 1055 |
+
173,
|
| 1056 |
+
558,
|
| 1057 |
+
826,
|
| 1058 |
+
601
|
| 1059 |
+
],
|
| 1060 |
+
"page_idx": 9
|
| 1061 |
+
},
|
| 1062 |
+
{
|
| 1063 |
+
"type": "text",
|
| 1064 |
+
"text": "Laurent Sifre and Stéphane Mallat. Rotation, scaling and deformation invariant scattering for texture discrimination. In Computer Vision and Pattern Recognition (CVPR), 2013 IEEE Conference on, pp. 1233–1240. IEEE, 2013. ",
|
| 1065 |
+
"bbox": [
|
| 1066 |
+
173,
|
| 1067 |
+
611,
|
| 1068 |
+
825,
|
| 1069 |
+
654
|
| 1070 |
+
],
|
| 1071 |
+
"page_idx": 9
|
| 1072 |
+
},
|
| 1073 |
+
{
|
| 1074 |
+
"type": "text",
|
| 1075 |
+
"text": "Ian Simon, Noah Snavely, and Steven M Seitz. Scene summarization for online image collections. In Computer Vision, 2007. ICCV 2007. IEEE 11th International Conference on, pp. 1–8. IEEE, 2007. ",
|
| 1076 |
+
"bbox": [
|
| 1077 |
+
173,
|
| 1078 |
+
662,
|
| 1079 |
+
826,
|
| 1080 |
+
693
|
| 1081 |
+
],
|
| 1082 |
+
"page_idx": 9
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"type": "text",
|
| 1086 |
+
"text": "Eero P Simoncelli, William T Freeman, Edward H Adelson, and David J Heeger. Shiftable multiscale transforms. IEEE transactions on Information Theory, 38(2):587–607, 1992. ",
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
171,
|
| 1089 |
+
702,
|
| 1090 |
+
823,
|
| 1091 |
+
732
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 9
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "text",
|
| 1097 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
|
| 1098 |
+
"bbox": [
|
| 1099 |
+
171,
|
| 1100 |
+
739,
|
| 1101 |
+
823,
|
| 1102 |
+
770
|
| 1103 |
+
],
|
| 1104 |
+
"page_idx": 9
|
| 1105 |
+
},
|
| 1106 |
+
{
|
| 1107 |
+
"type": "text",
|
| 1108 |
+
"text": "Jiawei Su, Danilo Vasconcellos Vargas, and Sakurai Kouichi. One pixel attack for fooling deep neural networks. arXiv preprint arXiv:1710.08864, 2017. ",
|
| 1109 |
+
"bbox": [
|
| 1110 |
+
171,
|
| 1111 |
+
779,
|
| 1112 |
+
823,
|
| 1113 |
+
809
|
| 1114 |
+
],
|
| 1115 |
+
"page_idx": 9
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"type": "text",
|
| 1119 |
+
"text": "Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander A Alemi. Inception-v4, inceptionresnet and the impact of residual connections on learning. In AAAI, volume 4, pp. 12, 2017. ",
|
| 1120 |
+
"bbox": [
|
| 1121 |
+
171,
|
| 1122 |
+
818,
|
| 1123 |
+
826,
|
| 1124 |
+
848
|
| 1125 |
+
],
|
| 1126 |
+
"page_idx": 9
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"type": "text",
|
| 1130 |
+
"text": "Antonio Torralba and Alexei A Efros. Unbiased look at dataset bias. In Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference on, pp. 1521–1528. IEEE, 2011. ",
|
| 1131 |
+
"bbox": [
|
| 1132 |
+
173,
|
| 1133 |
+
856,
|
| 1134 |
+
823,
|
| 1135 |
+
886
|
| 1136 |
+
],
|
| 1137 |
+
"page_idx": 9
|
| 1138 |
+
},
|
| 1139 |
+
{
|
| 1140 |
+
"type": "text",
|
| 1141 |
+
"text": "Tobias Weyand and Bastian Leibe. Discovering favorite views of popular places with iconoid shift. In Computer Vision (ICCV), 2011 IEEE International Conference on, pp. 1132–1139. IEEE, 2011. ",
|
| 1142 |
+
"bbox": [
|
| 1143 |
+
174,
|
| 1144 |
+
895,
|
| 1145 |
+
823,
|
| 1146 |
+
924
|
| 1147 |
+
],
|
| 1148 |
+
"page_idx": 9
|
| 1149 |
+
},
|
| 1150 |
+
{
|
| 1151 |
+
"type": "text",
|
| 1152 |
+
"text": "Daniel E Worrall, Stephan J Garbin, Daniyar Turmukhambetov, and Gabriel J Brostow. Harmonic networks: Deep translation and rotation equivariance. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), volume 2, 2017. ",
|
| 1153 |
+
"bbox": [
|
| 1154 |
+
176,
|
| 1155 |
+
103,
|
| 1156 |
+
823,
|
| 1157 |
+
146
|
| 1158 |
+
],
|
| 1159 |
+
"page_idx": 10
|
| 1160 |
+
},
|
| 1161 |
+
{
|
| 1162 |
+
"type": "text",
|
| 1163 |
+
"text": "Yichong Xu, Tianjun Xiao, Jiaxing Zhang, Kuiyuan Yang, and Zheng Zhang. Scale-invariant convolutional neural networks. arXiv preprint arXiv:1411.6369, 2014. ",
|
| 1164 |
+
"bbox": [
|
| 1165 |
+
173,
|
| 1166 |
+
155,
|
| 1167 |
+
823,
|
| 1168 |
+
184
|
| 1169 |
+
],
|
| 1170 |
+
"page_idx": 10
|
| 1171 |
+
},
|
| 1172 |
+
{
|
| 1173 |
+
"type": "text",
|
| 1174 |
+
"text": "Matthew D Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In European conference on computer vision, pp. 818–833. Springer, 2014. ",
|
| 1175 |
+
"bbox": [
|
| 1176 |
+
173,
|
| 1177 |
+
193,
|
| 1178 |
+
825,
|
| 1179 |
+
222
|
| 1180 |
+
],
|
| 1181 |
+
"page_idx": 10
|
| 1182 |
+
},
|
| 1183 |
+
{
|
| 1184 |
+
"type": "text",
|
| 1185 |
+
"text": "Bolei Zhou, Aditya Khosla, Àgata Lapedriza, Aude Oliva, and Antonio Torralba. Object detectors emerge in deep scene cnns. CoRR, abs/1412.6856, 2014. URL http://arxiv.org/abs/ 1412.6856. ",
|
| 1186 |
+
"bbox": [
|
| 1187 |
+
174,
|
| 1188 |
+
231,
|
| 1189 |
+
826,
|
| 1190 |
+
273
|
| 1191 |
+
],
|
| 1192 |
+
"page_idx": 10
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"type": "text",
|
| 1196 |
+
"text": "APPENDIX ",
|
| 1197 |
+
"text_level": 1,
|
| 1198 |
+
"bbox": [
|
| 1199 |
+
176,
|
| 1200 |
+
102,
|
| 1201 |
+
263,
|
| 1202 |
+
118
|
| 1203 |
+
],
|
| 1204 |
+
"page_idx": 11
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"type": "text",
|
| 1208 |
+
"text": "A PIPELINE FOR PRODUCING THE BOTTOM ROW OF FIGURE 1 ",
|
| 1209 |
+
"text_level": 1,
|
| 1210 |
+
"bbox": [
|
| 1211 |
+
176,
|
| 1212 |
+
136,
|
| 1213 |
+
694,
|
| 1214 |
+
151
|
| 1215 |
+
],
|
| 1216 |
+
"page_idx": 11
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"type": "text",
|
| 1220 |
+
"text": "We download this video: https://www.youtube.com/watch?v=0mgnf6t9VEc using an online downloader. We load the video frames and resize them to 299 by 299 as used by the standard Keras applications framework (https://keras.io/applications/). We preprocess the frames using the standard Keras preprocessing function. Finally, we use the predictions of the InceptionV3 model to demonstrate the jagged behavior shown in figure 1. ",
|
| 1221 |
+
"bbox": [
|
| 1222 |
+
174,
|
| 1223 |
+
166,
|
| 1224 |
+
826,
|
| 1225 |
+
238
|
| 1226 |
+
],
|
| 1227 |
+
"page_idx": 11
|
| 1228 |
+
},
|
| 1229 |
+
{
|
| 1230 |
+
"type": "text",
|
| 1231 |
+
"text": "B OTHER SUPPLEMENTARY MATERIAL ",
|
| 1232 |
+
"text_level": 1,
|
| 1233 |
+
"bbox": [
|
| 1234 |
+
174,
|
| 1235 |
+
258,
|
| 1236 |
+
509,
|
| 1237 |
+
273
|
| 1238 |
+
],
|
| 1239 |
+
"page_idx": 11
|
| 1240 |
+
},
|
| 1241 |
+
{
|
| 1242 |
+
"type": "table",
|
| 1243 |
+
"img_path": "images/98c2e66b5716d5c3223c08b075ec93d411cd418415a1b94243db98e43db65a9a.jpg",
|
| 1244 |
+
"table_caption": [],
|
| 1245 |
+
"table_footnote": [
|
| 1246 |
+
"Table 1: The networks used (taken from (https://keras.io/applications/)) "
|
| 1247 |
+
],
|
| 1248 |
+
"table_body": "<table><tr><td>Network</td><td>Top-1</td><td>Top-5</td><td>Parameters</td><td>Depth</td></tr><tr><td>VGG16 (Simonyan & Zisserman, 2014)</td><td>0.715</td><td>0.901</td><td>138,357,544</td><td>16</td></tr><tr><td>ResNet50 (He et al., 2016)</td><td>0.759</td><td>0.929</td><td>25,636,712</td><td>50</td></tr><tr><td>InceptionResNetV2 (Szegedy et al., 2017)</td><td>0.804</td><td>0.953</td><td>55,873,736</td><td>134</td></tr></table>",
|
| 1249 |
+
"bbox": [
|
| 1250 |
+
210,
|
| 1251 |
+
292,
|
| 1252 |
+
787,
|
| 1253 |
+
352
|
| 1254 |
+
],
|
| 1255 |
+
"page_idx": 11
|
| 1256 |
+
},
|
| 1257 |
+
{
|
| 1258 |
+
"type": "image",
|
| 1259 |
+
"img_path": "images/a71df43d23932beae44db3fe1f86af62e842a039bccc1744ae6f6a5a13b43090.jpg",
|
| 1260 |
+
"image_caption": [
|
| 1261 |
+
"Figure 7: We also measure jaggedness using the Mean Absolute Difference (MAD) in the probability of the correct response as the image is shifted by a single pixel. Results are similar to those using the jaggedness measure described in the text. "
|
| 1262 |
+
],
|
| 1263 |
+
"image_footnote": [],
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
338,
|
| 1266 |
+
409,
|
| 1267 |
+
656,
|
| 1268 |
+
578
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 11
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "image",
|
| 1274 |
+
"img_path": "images/b224b7ac821e3722354ddb36cd7f8e8fdcd75330482d741d76e42df5f1cbaba0.jpg",
|
| 1275 |
+
"image_caption": [
|
| 1276 |
+
"Figure 8: Modern deep convolutional neural networks are sensitive to small image translations (Without image downscaling). A) Example of InceptionResNetV2 sensitivity to very small horizontal translations. B) Comparison of three networks of various depths (16, 50, and 134 for VGG16, ResNet50, and InceptionResNetV2 respectively) in the task of horizontal image translation. Rows are sorted by sum. B) Modern networks have more jagged predictions. Jaggedness is calculated by counting the number of times the network’s predictions had the correct class in its top-5 and after just one pixel shift it moved outside of the top-5 (and also the opposite transition from non-top-5 to top5). Similar results can be seen with the alternative measure of jaggedness: Mean Absolute Difference (MAD) "
|
| 1277 |
+
],
|
| 1278 |
+
"image_footnote": [],
|
| 1279 |
+
"bbox": [
|
| 1280 |
+
186,
|
| 1281 |
+
109,
|
| 1282 |
+
820,
|
| 1283 |
+
305
|
| 1284 |
+
],
|
| 1285 |
+
"page_idx": 12
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"type": "image",
|
| 1289 |
+
"img_path": "images/461b9bb8f402b1fe1034878c41ff3c84da22c54d2181d9efe5c17603bf7490dd.jpg",
|
| 1290 |
+
"image_caption": [
|
| 1291 |
+
"Figure 9: Modern deep convolutional neural networks are sensitive to small image rescalings A) Comparison of three networks of various depths (16, 50, and 134 for VGG16, ResNet50, and InceptionResNetV2 respectively) in the task of image rescaling. Rows are sorted by their sum. B) Quantification of the jagged behaviour of the deep neural networks. "
|
| 1292 |
+
],
|
| 1293 |
+
"image_footnote": [],
|
| 1294 |
+
"bbox": [
|
| 1295 |
+
184,
|
| 1296 |
+
478,
|
| 1297 |
+
820,
|
| 1298 |
+
809
|
| 1299 |
+
],
|
| 1300 |
+
"page_idx": 12
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "image",
|
| 1304 |
+
"img_path": "images/a18d4c5c49d12344dd249d611faf0645c92d07b90746efe496d666cacc637d8a.jpg",
|
| 1305 |
+
"image_caption": [
|
| 1306 |
+
"Figure 10: Nonshiftability as a function of depth in the three networks. Nonshiftability is defined as the number of times the global sum of a feature map changes by more than $20 \\%$ of the mean as the input is translated. We only consider feature maps where the maximum response was above a threshold. According to our analysis, this measure should be zero if the representation is shiftable. Each line shows the nonshiftability in different layers in response to a randomly selected image. "
|
| 1307 |
+
],
|
| 1308 |
+
"image_footnote": [],
|
| 1309 |
+
"bbox": [
|
| 1310 |
+
205,
|
| 1311 |
+
291,
|
| 1312 |
+
787,
|
| 1313 |
+
648
|
| 1314 |
+
],
|
| 1315 |
+
"page_idx": 13
|
| 1316 |
+
},
|
| 1317 |
+
{
|
| 1318 |
+
"type": "image",
|
| 1319 |
+
"img_path": "images/736a357904deebb3c77412a16d918f4ebba396b7bf0dd53a75b4bcd7b1f06c5a.jpg",
|
| 1320 |
+
"image_caption": [
|
| 1321 |
+
"Figure 11: Another randomly selected image. Plotted are summation of feature maps from the last layer of VGG (spatial dimension $7 \\mathrm { x } 7$ ) as the input is vertically translated in the image plane (top), or rescaled (bottom). Left: the original VGG16 with its $2 \\mathbf { x } 2$ max pooling layers. Right: VGG16 where every $2 \\mathbf { x } 2$ max pooling layer was replaced by a 6x6 average pooling layer. "
|
| 1322 |
+
],
|
| 1323 |
+
"image_footnote": [],
|
| 1324 |
+
"bbox": [
|
| 1325 |
+
269,
|
| 1326 |
+
164,
|
| 1327 |
+
725,
|
| 1328 |
+
371
|
| 1329 |
+
],
|
| 1330 |
+
"page_idx": 14
|
| 1331 |
+
},
|
| 1332 |
+
{
|
| 1333 |
+
"type": "image",
|
| 1334 |
+
"img_path": "images/d5f9473f2cfb1d47f8e298c4f5541896cfbe98ed884eb1d06c9c00cf27628e28.jpg",
|
| 1335 |
+
"image_caption": [
|
| 1336 |
+
"Figure 12: Another randomly selected image. Plotted are summation of feature maps from the last layer of VGG (spatial dimension $7 \\mathrm { x } 7$ ) as the input is vertically translated in the image plane (top), or rescaled (bottom). Left: the original VGG16 with its $2 \\mathbf { x } 2$ max pooling layers. Right: VGG16 where every 2x2 max pooling layer was replaced by a 6x6 average pooling layer. "
|
| 1337 |
+
],
|
| 1338 |
+
"image_footnote": [],
|
| 1339 |
+
"bbox": [
|
| 1340 |
+
269,
|
| 1341 |
+
578,
|
| 1342 |
+
723,
|
| 1343 |
+
785
|
| 1344 |
+
],
|
| 1345 |
+
"page_idx": 14
|
| 1346 |
+
},
|
| 1347 |
+
{
|
| 1348 |
+
"type": "image",
|
| 1349 |
+
"img_path": "images/d9682b73986d14dd062e66ccce5d52708494e1951d88ed769031a05502fe93d0.jpg",
|
| 1350 |
+
"image_caption": [
|
| 1351 |
+
"Figure 13: Another randomly selected image. Plotted are summation of feature maps from the last layer of VGG (spatial dimension $7 \\mathrm { x } 7$ ) as the input is vertically translated in the image plane (top), or rescaled (bottom). Left: the original VGG16 with its $2 \\mathbf { x } 2$ max pooling layers. Right: VGG16 where every $2 \\mathbf { x } 2$ max pooling layer was replaced by a 6x6 average pooling layer. "
|
| 1352 |
+
],
|
| 1353 |
+
"image_footnote": [],
|
| 1354 |
+
"bbox": [
|
| 1355 |
+
269,
|
| 1356 |
+
371,
|
| 1357 |
+
723,
|
| 1358 |
+
577
|
| 1359 |
+
],
|
| 1360 |
+
"page_idx": 15
|
| 1361 |
+
}
|
| 1362 |
+
]
|
parse/train/HJxYwiC5tm/HJxYwiC5tm_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJxYwiC5tm/HJxYwiC5tm_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rk6qdGgCZ/rk6qdGgCZ.md
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# FIXING WEIGHT DECAY REGULARIZATION IN ADAM
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
We note that common implementations of adaptive gradient algorithms, such as Adam, limit the potential benefit of weight decay regularization, because the weights do not decay multiplicatively (as would be expected for standard weight decay) but by an additive constant factor. We propose a simple way to resolve this issue by decoupling weight decay and the optimization steps taken w.r.t. the loss function. We provide empirical evidence that our proposed modification (i) decouples the optimal choice of weight decay factor from the setting of the learning rate for both standard SGD and Adam, and (ii) substantially improves Adam’s generalization performance, allowing it to compete with SGD with momentum on image classification datasets (on which it was previously typically outperformed by the latter). We also demonstrate that longer optimization runs require smaller weight decay values for optimal results and introduce a normalized variant of weight decay to reduce this dependence. Finally, we propose a version of Adam with warm restarts (AdamWR) that has strong anytime performance while achieving state-ofthe-art results on CIFAR-10 and ImageNet32x32. Our source code will become available after the review process.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Adaptive gradient methods, such as AdaGrad (Duchi et al., 2011), RMSProp (Tieleman & Hinton, 2012), and Adam (Kingma & Ba, 2014) have become a default method of choice for training feedforward and recurrent neural networks (Xu et al., 2015; Gregor et al., 2015; Radford et al., 2015). Nevertheless, state-of-the-art results for popular image classification datasets, such as CIFAR-10 and CIFAR-100 Krizhevsky (2009), are still obtained by applying SGD with momentum (Huang et al., 2016; 2017; Loshchilov & Hutter, 2016; Gastaldi, 2017). Furthermore, Wilson et al. (2017) suggested that adaptive gradient methods do not generalize as well as SGD with momentum when tested on a diverse set of deep learning tasks such as image classification, character-level language modeling and constituency parsing. Different hypotheses about the origins of this worse generalization have been investigated, such as the presence of sharp local minima (Keskar et al., 2016; Dinh et al., 2017) and inherent problems of adaptive gradient methods (Wilson et al., 2017). In this paper, we show that a major factor in the poor generalization of the most popular adaptive gradient method, Adam, lies in its dysfunctional implementation of weight decay; the issue we identify in Adam also pertains to other adaptive gradient methods.
|
| 12 |
+
|
| 13 |
+
Specifically, our analysis of Adam given in this paper leads to the following observations:
|
| 14 |
+
|
| 15 |
+
# The standard way to implement $\mathbf { L } _ { 2 }$ regularization/weight decay in Adam is dysfunctional.
|
| 16 |
+
|
| 17 |
+
One possible explanation why Adam and other adaptive gradient methods might be outperformed by SGD with momentum is that $\mathrm { L _ { 2 } }$ regularization/weight decay are implemented suboptimally in common deep learning libraries. Therefore, on tasks/datasets where the use of $\mathrm { L _ { 2 } }$ regularization is beneficial (e.g., on many popular image classification datasets), Adam leads to worse results than SGD with momentum (for which $\mathrm { L _ { 2 } }$ regularization behaves as expected).
|
| 18 |
+
|
| 19 |
+
$\mathbf { L } _ { 2 }$ regularization and weight decay are not the same thing. Contrary to common belief, the two techniques are not equivalent. For SGD, they can be made equivalent by a reparameterization of the weight decay factor based on the learning rate; this is not the case for Adam. In particular, when combined with adaptive gradients, $\mathrm { L _ { 2 } }$ regularization leads to weights with large gradients being regularized less than they would be when using weight decay.
|
| 20 |
+
|
| 21 |
+
Optimal weight decay is a function (among other things) of the total number of batch passes/weight updates.
|
| 22 |
+
|
| 23 |
+
Our empirical analysis of Adam suggests that the longer the runtime/number of batch passes to be performed, the smaller the optimal weight decay. This effect tends to be neglected because hyperparameters are often tuned for a fixed or a comparable number of training epochs. As a result, the values of the weight decay found to perform best for short runs do not generalize to much longer runs.
|
| 24 |
+
|
| 25 |
+
Our contributions are aimed at fixing the issues described above:
|
| 26 |
+
|
| 27 |
+
Decoupling weight decay from the gradient-based update (Section 2). We suggest to decouple the gradient-based update from weight decay for both SGD and Adam. The resulting SGD version SGDW decouples optimal settings of the learning rate and the weight decay factor, and the resulting Adam version AdamW generalizes substantially better than Adam.
|
| 28 |
+
|
| 29 |
+
Normalizing the values of weight decay (Section 3). We propose to parameterize the weight decay factor as a function of the total number of batch passes. This leads to a greater invariance of the hyperparameter settings in the sense that the values found to perform best for short runs also perform well for many times longer runs.
|
| 30 |
+
|
| 31 |
+
Adam with warm restarts and normalized weight decay (Section 4). After we fix the weight decay in Adam and design AdamW, we introduce AdamWR to obtain strong anytime performance by performing warm restarts.
|
| 32 |
+
|
| 33 |
+
The main motivation of this paper is to fix the weight decay in Adam to make it competitive w.r.t. SGD with momentum even for those problems where it did not use to be competitive. We hope that as a result, practitioners do not need to switch between Adam and SGD anymore, which in turn should help to reduce the common issue of selecting dataset/task-specific training algorithms and their hyperparameters.
|
| 34 |
+
|
| 35 |
+
# 2 DECOUPLING THE WEIGHT DECAY FROM THE GRADIENT-BASED UPDATE
|
| 36 |
+
|
| 37 |
+
In the weight decay described by Hanson & Pratt (1988), the weights $\boldsymbol { x }$ decay exponentially as
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
\begin{array} { r } { \pmb { x } _ { t + 1 } = ( 1 - w _ { t } ) \pmb { x } _ { t } - \alpha _ { t } \nabla f _ { t } ( \pmb { x } _ { t } ) , } \end{array}
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
where $w _ { t }$ defines the rate of the weight decay at time-step $t$ and $\nabla f _ { t } ( { \pmb x } _ { t } )$ is the $t { \cdot }$ -th batch gradient multiplied by a learning rate $\alpha _ { t }$ . Following Hanson & Pratt (1988), one can also modify the original batch loss $f _ { t } ( \pmb { x } _ { t } )$ and consider a bias term (also referred to as the regularization term) accounting for “costs” on weights which are, e.g., quadratic in the weight values as for $\mathrm { L _ { 2 } }$ regularization:
|
| 44 |
+
|
| 45 |
+
$$
|
| 46 |
+
f _ { t , r e g } ( \pmb { x } _ { t } ) = f _ { t } ( \pmb { x } _ { t } ) + \frac { w _ { t } } { 2 } \left\| \pmb { x } _ { t } \right\| _ { 2 } ^ { 2 } ,
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
where $w _ { t }$ defines the impact of the $\mathrm { L _ { 2 } }$ regularization. In order to consider the weight decay regularization, one can reformulate the objective function as in Eq. (2) or directly adjust $\bar { \nabla } f _ { t } ( \pmb { x } _ { t } )$ as
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
\nabla f _ { t , r e g } ( { \pmb x } _ { t } ) = \nabla f _ { t } ( { \pmb x } _ { t } ) + w _ { t } { \pmb x } _ { t } .
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
Historically, stochastic gradient descent methods inherited this way of implementing the weight decay regularization.
|
| 56 |
+
|
| 57 |
+
The currently most common way (e.g., in popular libraries such as TensorFlow, Keras, PyTorch, Torch, and Lasagne) to introduce the weight decay regularization is to use the $\mathrm { L _ { 2 } }$ regularization term as in Eq. (2) or, often equivalently, to directly modify the gradient as in Eq. (3). Let’s first consider the simple case of SGD with momentum; Algorithm 1 demonstrates modifying the gradients directly in this method (see line 6). The weight decay term $w _ { t } \mathbf { x } _ { t - 1 }$ will first modify ${ \pmb g } _ { t }$ (see line 6) and then affect the momentum term $\pmb { m } _ { t }$ (see line 8). While the smoothing of the weight decay factor by $\beta _ { 1 }$
|
| 58 |
+
|
| 59 |
+
1: given learning rate $\alpha _ { t } \in \mathbb { R }$ , momentum factor $\beta _ { 1 } \in \mathbb { R }$ , weight decay factor $w \in \mathbb { R }$
|
| 60 |
+
2: initialize time step $t \gets 0$ , parameter vector $\pmb { x } _ { t = 0 } ~ \in ~ \mathbb { R } ^ { n }$ , first moment vector $\pmb { m } _ { t = 0 } \gets \pmb { \theta }$ ,
|
| 61 |
+
schedule multiplier $\eta _ { t = 0 } \in \mathbb { R }$
|
| 62 |
+
3: repeat
|
| 63 |
+
4: $t \gets t + 1$
|
| 64 |
+
5: $\nabla f _ { t } ( { \pmb x } _ { t - 1 } ) \gets S e l e c t B a t c h ( { \pmb x } _ { t - 1 } )$ . select batch and return the corresponding gradient
|
| 65 |
+
6: $\pmb { \mathscr { g } } _ { t } \gets \nabla f _ { t } ( \pmb { x } _ { t - 1 } ) \ + w _ { t } \pmb { x } _ { t - 1 }$
|
| 66 |
+
7: ηt ← SetScheduleMultiplier(t) . can be fixed, decay, be used for warm restarts
|
| 67 |
+
8: ${ \pmb { m } } _ { t } \gets \beta _ { 1 } { \pmb { m } } _ { t - 1 } + \eta _ { t } \alpha _ { t } \pmb { g } _ { t }$
|
| 68 |
+
9: $\pmb { x } _ { t } \gets \pmb { x } _ { t - 1 } - \pmb { m } _ { t } \gets \eta _ { t } w _ { t } \pmb { x } _ { t - 1 }$
|
| 69 |
+
|
| 70 |
+
<table><tr><td>Algorithm1 SGD with momentum</td><td>and SGDW with momentum</td><td></td></tr></table>
|
| 71 |
+
|
| 72 |
+
10: until stopping criterion is met
|
| 73 |
+
|
| 74 |
+
11: return optimized parameters $\mathbf { \boldsymbol { x } } _ { t }$
|
| 75 |
+
|
| 76 |
+
# Algorithm 2 Adam and AdamW
|
| 77 |
+
|
| 78 |
+
1: given $\alpha _ { t } = 0 . 0 0 1 , \beta _ { 1 } = 0 . 9 , \beta _ { 2 } = 0 . 9 9 9 , \epsilon = 1 0 ^ { - 8 } , w \in \mathbb { R }$
|
| 79 |
+
2: initialize time step $t \gets 0$ , parameter vector $\pmb { x } _ { t = 0 } \in \mathbb { R } ^ { n }$ , first moment vector $\pmb { m } _ { t = 0 } \pmb { \theta }$ , second
|
| 80 |
+
moment vector $\pmb { \nu } _ { t = 0 } \pmb { \theta }$ , schedule multiplier $\eta _ { t = 0 } \in \mathbb { R }$
|
| 81 |
+
3 : repeat
|
| 82 |
+
4: $t \gets t + 1$
|
| 83 |
+
5: $\nabla f _ { t } ( { \pmb x } _ { t - 1 } ) \gets S e l e c t B a t c h ( { \pmb x } _ { t - 1 } )$ . select batch and return the corresponding gradient
|
| 84 |
+
6: $\pmb { \mathrm { g } } _ { t } \nabla f _ { t } ( \pmb { x } _ { t - 1 } ) \ + w _ { t } \pmb { x } _ { t - 1 }$
|
| 85 |
+
7: $\pmb { m } _ { t } \beta _ { 1 } \pmb { m } _ { t - 1 } + \overline { { ( 1 - \beta _ { 1 } ) \pmb { g } _ { t } } }$ . here and below all operations are element-wise
|
| 86 |
+
8: $\pmb { \nu } _ { t } \gets \beta _ { 2 } \pmb { \nu } _ { t - 1 } + ( 1 - \beta _ { 2 } ) \pmb { g } _ { t } ^ { 2 }$
|
| 87 |
+
9: $\hat { \pmb { m } } _ { t } \gets \pmb { m } _ { t } / ( 1 - \beta _ { 1 } ^ { t } )$ $\triangleright$ here, $\beta _ { 1 }$ is taken to the power of $t$
|
| 88 |
+
10: $\hat { \pmb { { \nu } } } _ { t } \gets { \pmb { { \nu } } } _ { t } / ( 1 - \beta _ { 2 } ^ { t } )$ $\triangleright$ here, $\beta _ { 2 }$ is taken to the power of $t$
|
| 89 |
+
11: ηt ← SetScheduleMultiplier(t) . can be fixed, decay, be used for warm restarts
|
| 90 |
+
12: $\pmb { x } _ { t } \pmb { x } _ { t - 1 } - \eta _ { t } ( \alpha _ { t } \hat { m } _ { t } / ( \sqrt { \hat { \nu } _ { t } } + \epsilon ) + w _ { t } \pmb { x } _ { t - 1 } )$
|
| 91 |
+
13: until stopping criterion is met
|
| 92 |
+
14: return optimized parameters $\mathbf { \boldsymbol { x } } _ { t }$
|
| 93 |
+
|
| 94 |
+
(see line 8) might be a feature, we note (for simplicity, we omit $\eta _ { t }$ ) that $\mathbf { \boldsymbol { x } } _ { t }$ will decay by $\alpha _ { t } w _ { t } \pmb { x } _ { t - 1 }$ (see line 9) and not $w _ { t } \mathbf { x } _ { t - 1 }$ as one could expect according to the definition of the weight decay given by Eq. (1). Practically, if one wants to keep the actual weight decay $\alpha _ { t } w _ { t }$ fixed while changing $\alpha _ { t }$ to $\alpha _ { t } ^ { \prime }$ , then $w _ { t }$ should be modified to $\begin{array} { r } { w _ { t } ^ { \prime } = \frac { \alpha _ { t } w _ { t } } { \alpha _ { t } ^ { \prime } } } \end{array}$ αtwtα0 . This renders the problem of hyperparameter selection of $\alpha _ { t }$ and $w _ { t }$ non-separable.
|
| 95 |
+
|
| 96 |
+
We propose to fix this problem by following the original definition of weight decay given by Eq. (1) and decay the weights simultaneously with the update of $\mathbf { \boldsymbol { x } } _ { t }$ based on gradient information in Line 9 of Algorithm 1. This yields our proposed SGD variant SGDW with momentum. Although the proposed simple modification explicitly decouples $w _ { t }$ and $\alpha _ { t }$ , some problem-dependent implicit coupling is likely to remain. In order to account for a possible scheduling of both $\alpha _ { t }$ and $w _ { t }$ , we introduce a scaling factor $\eta _ { t }$ delivered by a user-defined procedure SetScheduleMultiplier $( t )$ . It should be noted that when $\mathrm { L _ { 2 } }$ regularization is used, weight decay contributes to the batch gradient and thus effectively is scheduled in the same way as the learning rate. Now, since we decouple the two we should also remember to schedule both of them with $\eta _ { t }$ .
|
| 97 |
+
|
| 98 |
+
Having shown that using $\mathrm { L _ { 2 } }$ regularization instead of weight decay already couples regularization and learning rate in the simple case of SGD with momentum, we now consider adaptive gradient optimizers, such as the Adam algorithm proposed by Kingma & Ba (2014), in which the coupling leads to even more unintended behavior. As an adaptive gradient method, Adam maintains a vector $\nu _ { t }$ responsible for storing smoothed amplitudes of parameter-wise gradients ${ \pmb g } _ { t } ^ { 2 }$ (see line 8 in Algorithm 2). These factors are used to control parameter-wise learning rates by normalizing parameter-wise√ gradients by $\sqrt { \hat { \nu _ { t } } } + \epsilon$ in line 12 of Algorithm 2. The common way to introduce the weight decay $w _ { t } \mathbf { x } _ { t - 1 }$ to Adam results in an update which only distantly resembles the original weight decay given by Eq. (1) because the $\nu _ { t }$ vectors are not only responsible for the parameter-wise amplitudes of $\pmb { g } _ { t }$ but also for the parameter-wise amplitudes of weights $\mathbf { \boldsymbol { x } } _ { t }$ . The amplitudes are then used to renormalize $\hat { \pmb { m } } _ { t }$ as given in line 12 of Algorithm 2. To gain a bit of intuition, let us consider the case when $t$ is large, causing $\beta _ { 1 } ^ { t }$ and $\beta _ { 2 } ^ { t }$ to go to zero and
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
\boldsymbol { x } _ { t } \gets \boldsymbol { x } _ { t - 1 } - \eta _ { t } \alpha _ { t } \frac { \beta _ { 1 } m _ { t - 1 } + ( 1 - \beta _ { 1 } ) g _ { t } } { \sqrt { \beta _ { 2 } \nu _ { t - 1 } + ( 1 - \beta _ { 2 } ) g _ { t } ^ { 2 } } + \epsilon } , \ \mathrm { w i t h } \ g _ { t } = \nabla f _ { t } ( \boldsymbol { x } _ { t - 1 } ) + w _ { t } \boldsymbol { x } _ { t - 1 } ,
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
where operations are performed parameter-wise. Not only the batch gradient $\nabla f _ { t } ( { \pmb x } _ { t - 1 } )$ is normalized but also the weight decay $w _ { t } \mathbf { x } _ { t - 1 }$ itself. Since this formula normalizes updates by their typical amplitudes, the decay of weights does not account for amplitudes anymore, leading to the relative decay being weaker for weights with large gradients. This is a correct implementation of $\mathbf { L } _ { 2 }$ regularization, but not of weight decay. Therefore, it might be misleading to use the two terms interchangeably, as is commonly done in the literature. We note that this difference between the two mechanisms for Adam has not been investigated and/or described before. As in the case of SGDW, we propose to follow the original definition of weight decay and perform it simultaneously with the gradient-based update as shown in line 12 of Algorithm 2 for AdamW. As we will demonstrate experimentally (in Section 5.2), AdamW generalizes much better than Adam.
|
| 105 |
+
|
| 106 |
+
# 3 NORMALIZED WEIGHT DECAY
|
| 107 |
+
|
| 108 |
+
Since our preliminary experiments showed that different weight decay factors are optimal for different computational budgets (defined in terms of the number of batch passes), we introduce a normalized weight decay to reduce this dependence. At iteration $t$ , $w _ { t }$ is set as follows:
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
w _ { t } = w _ { n o r m } \sqrt { \frac { b _ { t } } { B T _ { i } } } ,
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
where $b _ { t }$ is the batch size, $B$ is the total number of training points to be used in one epoch and $T _ { i }$ is the total number of epochs within the $i$ -th run/restart of the algorithm. Thus, $w _ { n o r m }$ can be interpreted as the weight decay to be used if only one batch pass is allowed. We note a recent relevant observation of Li et al. (2017) who demonstrated that a smaller batch size (for the same total number of epochs) leads to the shrinking effect of weight decay being more pronounced. Here, we propose to address that effect with normalized weight decay.
|
| 115 |
+
|
| 116 |
+
# 4 ADAM WITH WARM RESTARTS AND NORMALIZED WEIGHT DECAY
|
| 117 |
+
|
| 118 |
+
We now apply warm restarts to Adam, following the recent work of Loshchilov & Hutter (2016). There, the authors proposed Stochastic Gradient Descent with Warm Restarts (SGDR) to improve anytime performance of SGD by quickly cooling down the learning rate and periodically increasing it. SGDR has been successfully adopted to lead to new state-of-the-art results for popular image classification benchmarks (Huang et al., 2017; Gastaldi, 2017), and we therefore tried extending it to Adam. However, while our initial version of Adam with warm restarts had better anytime performance than Adam, it was not competitive with SGD with warm restarts, precisely because of Adam’s dysfunctional weight decay. Now, having fixed weight decay regularization (Section 2) and also having introduced normalized weight decay (Section 3), the work of Loshchilov & Hutter (2016) on warm restarts directly carries over, and we use it to construct AdamWR to fully benefit from warm restarts.
|
| 119 |
+
|
| 120 |
+
In the interest of keeping the presentation self-contained, we briefly describe how SGDR schedules the change of the effective learning rate in order to accelerate the training of DNNs. Here, we decouple the initial learning rate and its multiplier $\eta _ { t }$ used to obtain the actual learning rate at iteration $t$ (see, e.g., line 8 in Algorithm 1). In SGDR, we simulate a new warm-started run/restart of SGD once $T _ { i }$ epochs are performed, where $i$ is the index of the run. Importantly, the restarts are not performed from scratch but emulated by increasing $\eta _ { t }$ while the old value of $\mathbf { } _ { \pmb { x } _ { t } }$ is used as an initial solution. The amount by which $\eta _ { t }$ is increases controls to which extent the previously acquired information (e.g., momentum) is used. Within the $i \cdot$ -th run, the value of $\eta _ { t }$ decays according to the cosine annealing (Loshchilov & Hutter, 2016) for each batch as follows:
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
\eta _ { t } = \eta _ { m i n } ^ { ( i ) } + 0 . 5 ( \eta _ { m a x } ^ { ( i ) } - \eta _ { m i n } ^ { ( i ) } ) ( 1 + \cos ( \pi T _ { c u r } / T _ { i } ) ) ,
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
where η min and $\eta _ { m a x } ^ { ( i ) }$ are ranges for the multiplier and $T _ { c u r }$ accounts for how many epochs have been performed since the last restart. $T _ { c u r }$ is updated at each batch iteration $t$ and is thus not constrained to integer values. Adjusting (e.g., decreasing) η(i)min and $\eta _ { m a x } ^ { ( i ) }$ at every $i$ -th restart (see also Smith (2016)) could potentially improve performance, but we do not consider that option in our experiments because it would involve additional hyperparameters. For $\eta _ { m a x } ^ { ( i ) } = 1$ and $\eta _ { m i n } ^ { ( i ) } = 0$ , one can simplify Eq. (6) to
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
\eta _ { t } = 0 . 5 + 0 . 5 \cos ( \pi T _ { c u r } / T _ { i } ) .
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
In order to maintain a good anytime performance, one can start with an initially small $T _ { i }$ (e.g., from $1 \%$ to $10 \%$ of the expected total budget) and multiply it by a factor of $T _ { m u l t }$ (e.g., $T _ { m u l t } = 2$ ) at every restart. The $( i + 1 )$ -th restart is triggered when $T _ { c u r } = T _ { i }$ by setting $T _ { c u r }$ to 0. An example setting of the schedule multiplier is given in Section 1.1 of the supplementary material. Note that the effective learning rate is controlled by $\eta _ { t } \alpha _ { t }$ where $\alpha _ { t }$ is set to the initial learning rate and stays constant in our experimental setup. The reason why we employ $\alpha _ { t }$ and not simply $\alpha$ is to account for possible practical extensions, e.g., to adapt $\alpha _ { t }$ as a function of batch size in (scheduled) large-batch settings.
|
| 133 |
+
|
| 134 |
+
Our proposed AdamWR algorithm represents AdamW given in Algorithm 2 with $\eta _ { t }$ following Eq. (7) and $w _ { t }$ computed at each iteration using normalized weight decay according to Eq. (5). We note that normalized weight decay allowed us to use a constant parameter setting across short and long runs performed within AdamWR. Equivalently to AdamWR, we define SGDWR as SGDW with warm restarts.
|
| 135 |
+
|
| 136 |
+
# 5 EXPERIMENTAL VALIDATION
|
| 137 |
+
|
| 138 |
+
Our experimental setup follows that of Gastaldi (2017), who proposed, in addition to $\mathrm { L _ { 2 } }$ regularization, to apply the new Shake-Shake regularization to a 3-branch residual neural network. Gastaldi (2017) showed that this regularization allowed to achieve new state-of-the-art results of $2 . 8 6 \%$ on the CIFAR-10 dataset (Krizhevsky, 2009) and of $1 5 . 8 5 \%$ on CIFAR-100. The network was trained by SGDR with batch size 128 for 1800 epochs $\begin{array} { r } { T _ { 0 } = 1 8 0 0 \mathrm { \Omega } } \end{array}$ ) without restarts with the learning rate scheduled by Eq. (6). The regular data augmentation procedure used for the CIFAR datasets was applied. We used the same model/source code based on fb.resnet.torch 1. The base networks are a 26 2x64d ResNet (i.e. the network has a depth of 26, 2 residual branches and the first residual block has a width of 64) and $2 6 2 \mathrm { x } 9 6 \mathrm { d }$ ResNet with 11.6M and 25.6M parameters, respectively. For a detailed description of the network and the Shake-Shake method, we refer the interested reader to Gastaldi (2017).
|
| 139 |
+
|
| 140 |
+
# 5.1 DECOUPLING THE WEIGHT DECAY AND INITIAL LEARNING RATE PARAMETERS
|
| 141 |
+
|
| 142 |
+
In order to verify our hypothesis about the coupling of the initial learning rate $\alpha _ { t }$ and the weight decay factor $w _ { t }$ , we trained a 2x64d ResNet with cosine annealing for 100 epochs with different settings of $\alpha _ { t }$ and $w _ { t }$ . Throughout this paper, we scheduled the learning rate with cosine annealing because it leads to better results than a fixed learning rate (see SuppFigure 1 in the supplementary material). Figure 1 compares SGD vs. SGDW (top row) and Adam vs. AdamW (bottom row). For the case of SGD (Figure 1, top left), weight decay is not decoupled from the learning rate (the common way as described in Algorithm 1), and the figure clearly shows that the basin of best hyperparameter settings (depicted by color and top-10 hyperparameter settings by black circles) is not aligned with the $\mathbf { X }$ -axis or y-axis but lies on the diagonal. This suggests that the two hyperparameters are interdependent and need to be changed simultaneously, while only changing one of them might substantially worsen results. Consider, e.g., the setting at the top left black circle $( \alpha _ { t } = 1 / 2$ , $w _ { t } = 1 / 8 * 0 . 0 0 1 )$ ; only changing either $\alpha _ { t }$ or $w _ { t }$ by itself would worsen results, while changing both of them could still yield clear improvements. We note that this coupling of initial learning rate and weight decay factor might have contributed to SGD’s reputation of being very sensitive to its hyperparameter settings.
|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
Figure 1: The Top-1 test error of a 26 2x64d ResNet on CIFAR-10 measured after 100 epochs. The proposed SGDW and AdamW (right column) have a more separable hyperparameter space.
|
| 146 |
+
|
| 147 |
+
In contrast, the results for our new SGDW in Figure 1 (top right) show that SGDW decouples weight decay and initial learning rate. The proposed approach renders the two hyperparameters more separable: even if the learning rate is not well tuned yet (e.g., consider the value of 1/1024 in Figure 1, top right), leaving it fixed and only optimizing the weight decay factor would yield a good value (of $1 / 4 ^ { * } 0 . 0 0 1$ ). This is not the case for the original SGD shown in Figure 1 (top left).
|
| 148 |
+
|
| 149 |
+
The results for different hyperparameter settings of the original Adam are given in Figure 1 (bottom left). Adam’s best hyperparameter settings performed clearly worse than SGD’s best ones (compare Figure 1, top left). While both methods use the original way to employ weight decay, the original Adam did not benefit from it at all: its best results obtained for non-zero weight decay values were comparable to the best ones obtained without the weight decay regularization, i.e., when $w _ { t } = 0$ . Similarly to the original SGD, the shape of the hyperparameter landscape suggests that the two hyperparameters are coupled.
|
| 150 |
+
|
| 151 |
+
In contrast, the results for our new AdamW in Figure 1 (bottom right) show that AdamW largely decouples weight decay and learning rate. The results for the best hyperparameter settings were substantially better than the best ones of the original Adam and rivaled those of SGD and SGDW.
|
| 152 |
+
|
| 153 |
+

|
| 154 |
+
Figure 2: Learning curves (top row) and generalization results (bottom row) obtained by a $2 6 2 \mathrm { x } 9 6 \mathrm { d }$ ResNet trained with Adam and AdamW on CIFAR-10. See text for details.
|
| 155 |
+
|
| 156 |
+
In summary, the experimental results in Figure 1 support our hypothesis that the weight decay and learning rate hyperparameters can be decoupled, and that this in turn simplifies the problem of hyperparameter tuning in SGD and improves Adam’s performance to be competitive w.r.t. SGD with momentum.
|
| 157 |
+
|
| 158 |
+
# 5.2 BETTER GENERALIZATION OF ADAMW
|
| 159 |
+
|
| 160 |
+
While the previous experiment suggested that the basin of optimal hyperparameters of AdamW is broader and deeper than the one of Adam, we next investigated the results for much longer runs of 1800 epochs to compare the generalization capabilities of AdamW and Adam.
|
| 161 |
+
|
| 162 |
+
We fixed the initial learning rate to 0.001 which represents both the default learning rate for Adam and the one which showed reasonably good results in our experiments. Figure 2 shows the results for 12 settings of the weight decay of Adam and 7 settings of the normalized weight decay of AdamW. Interestingly, while the dynamics of the learning curves of Adam and AdamW often coincided for the first half of the training run, AdamW often led to lower training loss and test errors (see Figure 2 top left and top right, respectively). Importantly, the use of weight decay in Adam did not yield as good results as in AdamW (see also Figure 2, bottom left). Next, we investigated whether AdamW’s better results were only due to better convergence or due to better generalization. The results in Figure 2 (bottom right) for the best settings of Adam and AdamW suggest that AdamW did not only yield better training loss but also yielded better generalization performance for similar training loss values. The results on ImageNet32x32 (see SuppFigure 4 in the supplementary material) lead to the same conclusion of substantially improved generalization performance.
|
| 163 |
+
|
| 164 |
+

|
| 165 |
+
Figure 3: Top-1 test error on CIFAR-10 (left) and Top-5 test error on ImageNet32x32 (right).
|
| 166 |
+
|
| 167 |
+
5.3 EASIER HYPERPARAMETER SELECTION DUE TO NORMALIZED WEIGHT DECAY
|
| 168 |
+
|
| 169 |
+
Our experimental results with Adam and SGD suggested that the total runtime in terms of the number of epochs affect the basin of optimal hyperparameters (see SuppFigure 3 in the supplementary material). More specifically, the greater the total number of epochs the smaller the values of the weight decay should be. SuppFigure 3 shows that our remedy for this problem, the normalized weight decay defined in Eq. (7), simplifies hyperparameter selection because the optimal values observed for short runs are similar to the ones for much longer runs. While our initial experiments on CIFAR-10 suggested the square root fit we proposed in Eq. (7), to double-check that this is not a coincidence, we also performed experiments on the ImageNet32x32 dataset (Chrabaszcz et al., 2017), a downsampled version of the original ImageNet dataset with 1.2 million $3 2 \times 3 2$ pixels images, where an epoch is 24 times longer than on CIFAR-10. This experiment also supported the square root scaling: the best values of the normalized weight decay observed on CIFAR-10 represented nearly optimal values for ImageNet $3 2 \mathrm { x } 3 2 $ (see SuppFigure 3). In contrast, had we used the same raw weight decay values $w _ { t }$ for ImageNet32x32 as for CIFAR-10 and for the same number of epochs, without the proposed normalization, $w _ { t }$ would have been roughly 5 greater than optimal for ImageNet32x32, leading to much worse performance. The optimal normalized weight decay values were also very similar (e.g., $w _ { n o r m } = 0 . 0 2 5$ and $w _ { n o r m } = 0 . 0 5$ ) across SGDW and AdamW.
|
| 170 |
+
|
| 171 |
+
We investigated whether the use of much longer runs (1800 epochs) of the original Adam with $\mathrm { L _ { 2 } }$ regularization makes the use of cosine annealing unnecessary. The results of Adam without cosine annealing (i.e., with fixed learning rate) for a 4 by 4 logarithmic grid of hyperparameter settings are given in SuppFigure 5 in the supplementary material. Even after taking into account the low resolution of the grid, the results appear to be at best comparable to the ones obtained with AdamW with 18 times less epochs and a smaller network (see SuppFigure 2). These results are not very surprising given Figure 1 (which demonstrates the effectiveness of AdamW) and SuppFigure 2 (which demonstrates the necessity to use some learning rate schedule such as cosine annealing).
|
| 172 |
+
|
| 173 |
+
# 5.4 ADAMWR WITH WARM RESTARTS FOR BETTER ANYTIME PERFORMANCE
|
| 174 |
+
|
| 175 |
+
Finally, we investigated the strong anytime performance AdamWR obtains from warm restarts (using normalized weight decay to avoid the need for a different weight decay factor for restarts with longer annealing schedules). As Figure 3 shows, AdamWR greatly sped up AdamW on CIFAR10 and ImageNet32x32, up to a factor of 10 (see the results at the first restart). For the default learning rate of 0.001, AdamW achieved $15 \%$ relative improvement in test errors compared to Adam both on CIFAR-10 (also see Figure 2) and ImageNet32x32 (also see SuppFigure 4). AdamWR achieved the same improved results but with a much better anytime performance. These improvements closed most of the gap between Adam and SGDWR on CIFAR-10 and yielded comparable performance on ImageNet32x32.
|
| 176 |
+
|
| 177 |
+
# 6 DISCUSSION AND CONCLUSION
|
| 178 |
+
|
| 179 |
+
Following suggestions that adaptive gradient methods such as Adam might lead to worse generalization than SGD with momentum (Wilson et al., 2017), we identified at least one possible explanation to this phenomenon: the dysfunctional use of $\mathrm { L _ { 2 } }$ regularization and weight decay. We proposed a simple fix to deal with this issue, yielding substantially better generalization performance in our AdamW variant. We also proposed normalized weight decay and warm restarts for Adam, showing that a more robust hyperparameteer selection and a better anytime performance can be achieved in our new AdamWR variant.
|
| 180 |
+
|
| 181 |
+
Our preliminary results obtained with AdamW and AdamWR on image classification datasets must be verified on a wider range of tasks, especially the ones where the use of regularization is expected to be important. It would be interesting to integrate our findings on weight decay into other methods which attempt to improve Adam, e.g, normalized direction-preserving Adam (Zhang et al., 2017). While we focussed our experimental analysis on Adam, we believe that similar results also hold for other adaptive gradient methods, such as AdaGrad (Duchi et al., 2011) and RMSProp (Tieleman & Hinton, 2012).
|
| 182 |
+
|
| 183 |
+
The results shown in Figure 2 suggest that Adam and AdamW follow very similar curves most of the time until the third phase of the run where AdamW starts to branch out to outperform Adam. As pointed out by an anonymous reviewer, it would be interesting to investigate what causes this branching and whether the desired effects are observed at the bottom of the landscape. One could investigate this using the approach of Im et al. (2016) to switch from Adam to AdamW at a given epoch index. Since it is quite possible that the effect of regularization is not that pronounced in the early stages of training, one could think of designing a version of Adam which exploits this by being fast in the early stages and well-regularized in the late stages of training. The latter might be achieved with a custom schedule of the weight decay factor.
|
| 184 |
+
|
| 185 |
+
In this paper, we argue that the popular interpretation that weight decay $\mathbf { \tau } = \mathbf { L } _ { 2 }$ regularization is not precise. Instead, the difference between the two leads to the following important consequences. Two algorithms as different as SGD and Adam will exhibit different effective rates of weight decay even if the same regularization coefficient is used to include $\mathrm { L _ { 2 } }$ regularization in the objective function. Moreover, when decoupled weight decay is applied, two algorithms as different as SGDW and AdamW will optimize two effectively different objective functions even if the same weight decay factor is used. Our findings suggest that the original Adam algorithm with $\mathrm { L _ { 2 } }$ regularization affects effective rates of weight decay in a way that precludes effective regularization, and that effective regularization is achievable by decoupling the weight decay.
|
| 186 |
+
|
| 187 |
+
Advani & Saxe (2017) analytically showed that in the limited data regime of deep networks the presence of eigenvalues that are zero forms a frozen subspace in which no learning occurs and thus smaller (e.g., zero) initial weight norms should be used to achieve best generalization results. Our future work shall consider adapting initial weight norms or weight norm constraints (Salimans & Kingma, 2016) at each warm restart. Kawaguchi et al. (2017) proposed a family of regularization techniques which are specific to the current batch and its size. Similarly to $\mathrm { L _ { 2 } }$ regularization and weight decay, the latter techniques might be attempted to be transformed to act directly on weights.
|
| 188 |
+
|
| 189 |
+
# REFERENCES
|
| 190 |
+
|
| 191 |
+
Madhu S. Advani and Andrew M. Saxe. High-dimensional dynamics of generalization error in neural networks. arXiv:1710.03667, 2017.
|
| 192 |
+
Patryk Chrabaszcz, Ilya Loshchilov, and Frank Hutter. A downsampled variant of ImageNet as an alternative to the CIFAR datasets. arXiv:1707.08819, 2017.
|
| 193 |
+
Laurent Dinh, Razvan Pascanu, Samy Bengio, and Yoshua Bengio. Sharp minima can generalize for deep nets. arXiv:1703.04933, 2017.
|
| 194 |
+
John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. The Journal of Machine Learning Research, 12:2121–2159, 2011.
|
| 195 |
+
Xavier Gastaldi. Shake-Shake regularization. arXiv preprint arXiv:1705.07485, 2017.
|
| 196 |
+
|
| 197 |
+
Karol Gregor, Ivo Danihelka, Alex Graves, Danilo Jimenez Rezende, and Daan Wierstra. Draw: A recurrent neural network for image generation. arXiv:1502.04623, 2015.
|
| 198 |
+
|
| 199 |
+
Stephen Jose Hanson and Lorien Y Pratt. Comparing biases for minimal network construction with ´ back-propagation. In Proceedings of the 1st International Conference on Neural Information Processing Systems, pp. 177–185, 1988.
|
| 200 |
+
|
| 201 |
+
Gao Huang, Zhuang Liu, and Kilian Q Weinberger. Densely connected convolutional networks. arXiv:1608.06993, 2016.
|
| 202 |
+
|
| 203 |
+
Gao Huang, Yixuan Li, Geoff Pleiss, Zhuang Liu, John E Hopcroft, and Kilian Q Weinberger. Snapshot ensembles: Train 1, get m for free. arXiv:1704.00109, 2017.
|
| 204 |
+
|
| 205 |
+
Daniel Jiwoong Im, Michael Tao, and Kristin Branson. An empirical analysis of deep network loss surfaces. arXiv preprint arXiv:1612.04010, 2016.
|
| 206 |
+
|
| 207 |
+
Kenji Kawaguchi, Leslie Pack Kaelbling, and Yoshua Bengio. Generalization in deep learning. arXiv:1710.05468, 2017.
|
| 208 |
+
|
| 209 |
+
Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. arXiv:1609.04836, 2016.
|
| 210 |
+
|
| 211 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv:1412.6980, 2014.
|
| 212 |
+
|
| 213 |
+
Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009.
|
| 214 |
+
|
| 215 |
+
Hao Li, Zheng Xu, Gavin Taylor, and Tom Goldstein. Visualizing the loss landscape of neural nets. arXiv preprint arXiv:1712.09913, 2017.
|
| 216 |
+
|
| 217 |
+
Ilya Loshchilov and Frank Hutter. SGDR: stochastic gradient descent with warm restarts. arXiv:1608.03983, 2016.
|
| 218 |
+
|
| 219 |
+
Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv:1511.06434, 2015.
|
| 220 |
+
|
| 221 |
+
Tim Salimans and Diederik P Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. In Advances in Neural Information Processing Systems, pp. 901–909, 2016.
|
| 222 |
+
|
| 223 |
+
Leslie N Smith. Cyclical learning rates for training neural networks. arXiv:1506.01186v3, 2016.
|
| 224 |
+
|
| 225 |
+
Tijmen Tieleman and Geoffrey Hinton. Lecture 6.5-rmsprop: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural networks for machine learning, 4(2):26– 31, 2012.
|
| 226 |
+
|
| 227 |
+
Ashia C Wilson, Rebecca Roelofs, Mitchell Stern, Nathan Srebro, and Benjamin Recht. The marginal value of adaptive gradient methods in machine learning. arXiv:1705.08292, 2017.
|
| 228 |
+
|
| 229 |
+
Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In International Conference on Machine Learning, pp. 2048–2057, 2015.
|
| 230 |
+
|
| 231 |
+
Zijun Zhang, Lin Ma, Zongpeng Li, and Chuan Wu. Normalized direction-preserving adam. arXiv:1709.04546, 2017.
|
| 232 |
+
|
| 233 |
+
# 1 SUPPLEMENTARY MATERIAL
|
| 234 |
+
|
| 235 |
+
# 1.1 AN EXAMPLE SETTING OF THE SCHEDULE MULTIPLIER
|
| 236 |
+
|
| 237 |
+
An example schedule of the schedule multiplier $\eta _ { t }$ is given in SuppFigure 1 for $T _ { i = 0 } = 1 0 0$ and $T _ { m u l t } = 2$ . After the initial 100 epochs the learning rate will reach 0 because $\eta _ { t = 1 0 0 } = 0$ . Then, since $T _ { c u r } = T _ { i = 0 }$ , we restart by resetting $T _ { c u r } = 0$ , causing the multiplier $\eta _ { t }$ to be reset to 1 due to Eq. (7). This multiplier will then decrease again from 1 to 0, but now over the course of 200 epochs because $T _ { i = 1 } = T _ { i = 0 } T _ { m u l t } = 2 0 0$ . Solutions obtained right before the restarts, when $\eta _ { t } = 0$ (e.g., at epoch indexes 100, 300, 700 and 1500 as shown in SuppFigure 1) are recommended by the optimizer as the solutions, with more recent solutions prioritized.
|
| 238 |
+
|
| 239 |
+

|
| 240 |
+
SuppFigure 1: An example schedule of the learning rate multiplier as a function of epoch index. The first run is scheduled to converge at epoch $T _ { i = 0 } = 1 0 0$ , then the budget for the next run is doubled as $T _ { i = 1 } = T _ { i = 0 } T _ { m u l t } = 2 0 0$ , etc.
|
| 241 |
+
|
| 242 |
+

|
| 243 |
+
SuppFigure 2: Adam with fixed learning rate (left) and with cosine annealing (right). We show the final test error of a $2 6 ~ 2 \mathrm { x } 6 4 \mathrm { d }$ ResNet on CIFAR-10 after 100 epochs of SGD with momentum. The results where the learning rate is fixed (left) are inferior to the ones where the learning rate is scheduled according to cosine annealing (right). Therefore, we schedule the learning rate with cosine annealing for all methods given in the paper.
|
| 244 |
+
|
| 245 |
+

|
| 246 |
+
SuppFigure 3: Effect of normalized weight decay. We show the final test Top-1 error on CIFAR10 (first two rows for AdamW without and with normalized weight decay) and Top-5 error on ImageNet32x32 (last two rows for AdamW and SGDW, both with normalized weight decay) of a $2 6 2 \mathrm { x } 6 4 \mathrm { d }$ ResNet after different numbers of epochs (see columns). While the optimal settings of the raw weight decay change significantly for different runtime budgets (see the first row), the values of the normalized weight decay remain very similar for different budgets (see the second row) and different datasets (here, CIFAR-10 and ImageNet32x32), and even across AdamW and SGDW.
|
| 247 |
+
|
| 248 |
+

|
| 249 |
+
SuppFigure 4: Learning curves (top row) and generalization results (Top-5 errors in bottom row) obtained by a $2 6 2 \mathrm { x } 9 6 \mathrm { d }$ ResNet trained with Adam and AdamW on ImageNet32x32.
|
| 250 |
+
|
| 251 |
+

|
| 252 |
+
SuppFigure 5: Adam without cosine annealing, i.e., with fixed learning rate. We show the final test error of a $2 6 ~ 2 \mathrm { x } 9 6 \mathrm { d }$ ResNet on CIFAR-10 after 1800 epochs of the original Adam for different settings of learning rate and weight decay used for $\mathrm { L _ { 2 } }$ regularization. These results can be compared to the ones of AdamW shown in SuppFigure 3 (top row). The results of AdamW with only 100 epochs and a smaller network seem to be at least as good as the ones of Adam with 18 times as many epochs and a bigger network.
|
parse/train/rk6qdGgCZ/rk6qdGgCZ_content_list.json
ADDED
|
@@ -0,0 +1,1213 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "FIXING WEIGHT DECAY REGULARIZATION IN ADAM",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
808,
|
| 10 |
+
122
|
| 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 |
+
224
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "We note that common implementations of adaptive gradient algorithms, such as Adam, limit the potential benefit of weight decay regularization, because the weights do not decay multiplicatively (as would be expected for standard weight decay) but by an additive constant factor. We propose a simple way to resolve this issue by decoupling weight decay and the optimization steps taken w.r.t. the loss function. We provide empirical evidence that our proposed modification (i) decouples the optimal choice of weight decay factor from the setting of the learning rate for both standard SGD and Adam, and (ii) substantially improves Adam’s generalization performance, allowing it to compete with SGD with momentum on image classification datasets (on which it was previously typically outperformed by the latter). We also demonstrate that longer optimization runs require smaller weight decay values for optimal results and introduce a normalized variant of weight decay to reduce this dependence. Finally, we propose a version of Adam with warm restarts (AdamWR) that has strong anytime performance while achieving state-ofthe-art results on CIFAR-10 and ImageNet32x32. Our source code will become available after the review process. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
242,
|
| 43 |
+
764,
|
| 44 |
+
463
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
491,
|
| 55 |
+
336,
|
| 56 |
+
507
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Adaptive gradient methods, such as AdaGrad (Duchi et al., 2011), RMSProp (Tieleman & Hinton, 2012), and Adam (Kingma & Ba, 2014) have become a default method of choice for training feedforward and recurrent neural networks (Xu et al., 2015; Gregor et al., 2015; Radford et al., 2015). Nevertheless, state-of-the-art results for popular image classification datasets, such as CIFAR-10 and CIFAR-100 Krizhevsky (2009), are still obtained by applying SGD with momentum (Huang et al., 2016; 2017; Loshchilov & Hutter, 2016; Gastaldi, 2017). Furthermore, Wilson et al. (2017) suggested that adaptive gradient methods do not generalize as well as SGD with momentum when tested on a diverse set of deep learning tasks such as image classification, character-level language modeling and constituency parsing. Different hypotheses about the origins of this worse generalization have been investigated, such as the presence of sharp local minima (Keskar et al., 2016; Dinh et al., 2017) and inherent problems of adaptive gradient methods (Wilson et al., 2017). In this paper, we show that a major factor in the poor generalization of the most popular adaptive gradient method, Adam, lies in its dysfunctional implementation of weight decay; the issue we identify in Adam also pertains to other adaptive gradient methods. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
522,
|
| 66 |
+
825,
|
| 67 |
+
717
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Specifically, our analysis of Adam given in this paper leads to the following observations: ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
171,
|
| 76 |
+
724,
|
| 77 |
+
759,
|
| 78 |
+
738
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "The standard way to implement $\\mathbf { L } _ { 2 }$ regularization/weight decay in Adam is dysfunctional. ",
|
| 85 |
+
"text_level": 1,
|
| 86 |
+
"bbox": [
|
| 87 |
+
173,
|
| 88 |
+
752,
|
| 89 |
+
797,
|
| 90 |
+
766
|
| 91 |
+
],
|
| 92 |
+
"page_idx": 0
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"type": "text",
|
| 96 |
+
"text": "One possible explanation why Adam and other adaptive gradient methods might be outperformed by SGD with momentum is that $\\mathrm { L _ { 2 } }$ regularization/weight decay are implemented suboptimally in common deep learning libraries. Therefore, on tasks/datasets where the use of $\\mathrm { L _ { 2 } }$ regularization is beneficial (e.g., on many popular image classification datasets), Adam leads to worse results than SGD with momentum (for which $\\mathrm { L _ { 2 } }$ regularization behaves as expected). ",
|
| 97 |
+
"bbox": [
|
| 98 |
+
186,
|
| 99 |
+
767,
|
| 100 |
+
823,
|
| 101 |
+
849
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 0
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "text",
|
| 107 |
+
"text": "$\\mathbf { L } _ { 2 }$ regularization and weight decay are not the same thing. Contrary to common belief, the two techniques are not equivalent. For SGD, they can be made equivalent by a reparameterization of the weight decay factor based on the learning rate; this is not the case for Adam. In particular, when combined with adaptive gradients, $\\mathrm { L _ { 2 } }$ regularization leads to weights with large gradients being regularized less than they would be when using weight decay. ",
|
| 108 |
+
"bbox": [
|
| 109 |
+
174,
|
| 110 |
+
854,
|
| 111 |
+
823,
|
| 112 |
+
924
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 0
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "Optimal weight decay is a function (among other things) of the total number of batch passes/weight updates. ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
176,
|
| 121 |
+
103,
|
| 122 |
+
928,
|
| 123 |
+
118
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "Our empirical analysis of Adam suggests that the longer the runtime/number of batch passes to be performed, the smaller the optimal weight decay. This effect tends to be neglected because hyperparameters are often tuned for a fixed or a comparable number of training epochs. As a result, the values of the weight decay found to perform best for short runs do not generalize to much longer runs. ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
232,
|
| 132 |
+
119,
|
| 133 |
+
825,
|
| 134 |
+
188
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Our contributions are aimed at fixing the issues described above: ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
199,
|
| 144 |
+
598,
|
| 145 |
+
214
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Decoupling weight decay from the gradient-based update (Section 2). We suggest to decouple the gradient-based update from weight decay for both SGD and Adam. The resulting SGD version SGDW decouples optimal settings of the learning rate and the weight decay factor, and the resulting Adam version AdamW generalizes substantially better than Adam. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
228,
|
| 155 |
+
825,
|
| 156 |
+
284
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Normalizing the values of weight decay (Section 3). We propose to parameterize the weight decay factor as a function of the total number of batch passes. This leads to a greater invariance of the hyperparameter settings in the sense that the values found to perform best for short runs also perform well for many times longer runs. ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
287,
|
| 166 |
+
821,
|
| 167 |
+
344
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "Adam with warm restarts and normalized weight decay (Section 4). After we fix the weight decay in Adam and design AdamW, we introduce AdamWR to obtain strong anytime performance by performing warm restarts. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
348,
|
| 177 |
+
825,
|
| 178 |
+
390
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "The main motivation of this paper is to fix the weight decay in Adam to make it competitive w.r.t. SGD with momentum even for those problems where it did not use to be competitive. We hope that as a result, practitioners do not need to switch between Adam and SGD anymore, which in turn should help to reduce the common issue of selecting dataset/task-specific training algorithms and their hyperparameters. ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
173,
|
| 187 |
+
402,
|
| 188 |
+
825,
|
| 189 |
+
473
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "2 DECOUPLING THE WEIGHT DECAY FROM THE GRADIENT-BASED UPDATE",
|
| 196 |
+
"text_level": 1,
|
| 197 |
+
"bbox": [
|
| 198 |
+
173,
|
| 199 |
+
492,
|
| 200 |
+
810,
|
| 201 |
+
510
|
| 202 |
+
],
|
| 203 |
+
"page_idx": 1
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"type": "text",
|
| 207 |
+
"text": "In the weight decay described by Hanson & Pratt (1988), the weights $\\boldsymbol { x }$ decay exponentially as ",
|
| 208 |
+
"bbox": [
|
| 209 |
+
171,
|
| 210 |
+
523,
|
| 211 |
+
792,
|
| 212 |
+
540
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 1
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "equation",
|
| 218 |
+
"img_path": "images/b60935a0cf5f14cba9594baa6ced130cb47befe3018f337df25795bf146934c3.jpg",
|
| 219 |
+
"text": "$$\n\\begin{array} { r } { \\pmb { x } _ { t + 1 } = ( 1 - w _ { t } ) \\pmb { x } _ { t } - \\alpha _ { t } \\nabla f _ { t } ( \\pmb { x } _ { t } ) , } \\end{array}\n$$",
|
| 220 |
+
"text_format": "latex",
|
| 221 |
+
"bbox": [
|
| 222 |
+
369,
|
| 223 |
+
566,
|
| 224 |
+
593,
|
| 225 |
+
584
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 1
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "text",
|
| 231 |
+
"text": "where $w _ { t }$ defines the rate of the weight decay at time-step $t$ and $\\nabla f _ { t } ( { \\pmb x } _ { t } )$ is the $t { \\cdot }$ -th batch gradient multiplied by a learning rate $\\alpha _ { t }$ . Following Hanson & Pratt (1988), one can also modify the original batch loss $f _ { t } ( \\pmb { x } _ { t } )$ and consider a bias term (also referred to as the regularization term) accounting for “costs” on weights which are, e.g., quadratic in the weight values as for $\\mathrm { L _ { 2 } }$ regularization: ",
|
| 232 |
+
"bbox": [
|
| 233 |
+
174,
|
| 234 |
+
597,
|
| 235 |
+
825,
|
| 236 |
+
654
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 1
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "equation",
|
| 242 |
+
"img_path": "images/c24cbf1569d6cdff1c56458e7286c3c7715a7c5643de72e8f37d97737919f0b2.jpg",
|
| 243 |
+
"text": "$$\nf _ { t , r e g } ( \\pmb { x } _ { t } ) = f _ { t } ( \\pmb { x } _ { t } ) + \\frac { w _ { t } } { 2 } \\left\\| \\pmb { x } _ { t } \\right\\| _ { 2 } ^ { 2 } ,\n$$",
|
| 244 |
+
"text_format": "latex",
|
| 245 |
+
"bbox": [
|
| 246 |
+
374,
|
| 247 |
+
678,
|
| 248 |
+
591,
|
| 249 |
+
705
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 1
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "where $w _ { t }$ defines the impact of the $\\mathrm { L _ { 2 } }$ regularization. In order to consider the weight decay regularization, one can reformulate the objective function as in Eq. (2) or directly adjust $\\bar { \\nabla } f _ { t } ( \\pmb { x } _ { t } )$ as ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
171,
|
| 258 |
+
718,
|
| 259 |
+
823,
|
| 260 |
+
747
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 1
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "equation",
|
| 266 |
+
"img_path": "images/89f3d8580e9a9d63ed9d2f9493cf5c91a7f741299c19896e025e7ed2138466b3.jpg",
|
| 267 |
+
"text": "$$\n\\nabla f _ { t , r e g } ( { \\pmb x } _ { t } ) = \\nabla f _ { t } ( { \\pmb x } _ { t } ) + w _ { t } { \\pmb x } _ { t } .\n$$",
|
| 268 |
+
"text_format": "latex",
|
| 269 |
+
"bbox": [
|
| 270 |
+
375,
|
| 271 |
+
773,
|
| 272 |
+
589,
|
| 273 |
+
791
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 1
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "Historically, stochastic gradient descent methods inherited this way of implementing the weight decay regularization. ",
|
| 280 |
+
"bbox": [
|
| 281 |
+
171,
|
| 282 |
+
804,
|
| 283 |
+
823,
|
| 284 |
+
833
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 1
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "The currently most common way (e.g., in popular libraries such as TensorFlow, Keras, PyTorch, Torch, and Lasagne) to introduce the weight decay regularization is to use the $\\mathrm { L _ { 2 } }$ regularization term as in Eq. (2) or, often equivalently, to directly modify the gradient as in Eq. (3). Let’s first consider the simple case of SGD with momentum; Algorithm 1 demonstrates modifying the gradients directly in this method (see line 6). The weight decay term $w _ { t } \\mathbf { x } _ { t - 1 }$ will first modify ${ \\pmb g } _ { t }$ (see line 6) and then affect the momentum term $\\pmb { m } _ { t }$ (see line 8). While the smoothing of the weight decay factor by $\\beta _ { 1 }$ ",
|
| 291 |
+
"bbox": [
|
| 292 |
+
173,
|
| 293 |
+
839,
|
| 294 |
+
825,
|
| 295 |
+
924
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 1
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "1: given learning rate $\\alpha _ { t } \\in \\mathbb { R }$ , momentum factor $\\beta _ { 1 } \\in \\mathbb { R }$ , weight decay factor $w \\in \\mathbb { R }$ \n2: initialize time step $t \\gets 0$ , parameter vector $\\pmb { x } _ { t = 0 } ~ \\in ~ \\mathbb { R } ^ { n }$ , first moment vector $\\pmb { m } _ { t = 0 } \\gets \\pmb { \\theta }$ , \nschedule multiplier $\\eta _ { t = 0 } \\in \\mathbb { R }$ \n3: repeat \n4: $t \\gets t + 1$ \n5: $\\nabla f _ { t } ( { \\pmb x } _ { t - 1 } ) \\gets S e l e c t B a t c h ( { \\pmb x } _ { t - 1 } )$ . select batch and return the corresponding gradient \n6: $\\pmb { \\mathscr { g } } _ { t } \\gets \\nabla f _ { t } ( \\pmb { x } _ { t - 1 } ) \\ + w _ { t } \\pmb { x } _ { t - 1 }$ \n7: ηt ← SetScheduleMultiplier(t) . can be fixed, decay, be used for warm restarts \n8: ${ \\pmb { m } } _ { t } \\gets \\beta _ { 1 } { \\pmb { m } } _ { t - 1 } + \\eta _ { t } \\alpha _ { t } \\pmb { g } _ { t }$ \n9: $\\pmb { x } _ { t } \\gets \\pmb { x } _ { t - 1 } - \\pmb { m } _ { t } \\gets \\eta _ { t } w _ { t } \\pmb { x } _ { t - 1 }$ ",
|
| 302 |
+
"bbox": [
|
| 303 |
+
179,
|
| 304 |
+
126,
|
| 305 |
+
825,
|
| 306 |
+
275
|
| 307 |
+
],
|
| 308 |
+
"page_idx": 2
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"type": "table",
|
| 312 |
+
"img_path": "images/e96f99bc12a691e6993cd856ecc44e561f3d7c275cdc5441a2ac17b778dbd3d4.jpg",
|
| 313 |
+
"table_caption": [],
|
| 314 |
+
"table_footnote": [
|
| 315 |
+
"10: until stopping criterion is met "
|
| 316 |
+
],
|
| 317 |
+
"table_body": "<table><tr><td>Algorithm1 SGD with momentum</td><td>and SGDW with momentum</td><td></td></tr></table>",
|
| 318 |
+
"bbox": [
|
| 319 |
+
174,
|
| 320 |
+
102,
|
| 321 |
+
818,
|
| 322 |
+
123
|
| 323 |
+
],
|
| 324 |
+
"page_idx": 2
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "text",
|
| 328 |
+
"text": "11: return optimized parameters $\\mathbf { \\boldsymbol { x } } _ { t }$ ",
|
| 329 |
+
"bbox": [
|
| 330 |
+
178,
|
| 331 |
+
289,
|
| 332 |
+
415,
|
| 333 |
+
303
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 2
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "text",
|
| 339 |
+
"text": "Algorithm 2 Adam and AdamW ",
|
| 340 |
+
"text_level": 1,
|
| 341 |
+
"bbox": [
|
| 342 |
+
176,
|
| 343 |
+
324,
|
| 344 |
+
408,
|
| 345 |
+
342
|
| 346 |
+
],
|
| 347 |
+
"page_idx": 2
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"type": "text",
|
| 351 |
+
"text": "1: given $\\alpha _ { t } = 0 . 0 0 1 , \\beta _ { 1 } = 0 . 9 , \\beta _ { 2 } = 0 . 9 9 9 , \\epsilon = 1 0 ^ { - 8 } , w \\in \\mathbb { R }$ \n2: initialize time step $t \\gets 0$ , parameter vector $\\pmb { x } _ { t = 0 } \\in \\mathbb { R } ^ { n }$ , first moment vector $\\pmb { m } _ { t = 0 } \\pmb { \\theta }$ , second \nmoment vector $\\pmb { \\nu } _ { t = 0 } \\pmb { \\theta }$ , schedule multiplier $\\eta _ { t = 0 } \\in \\mathbb { R }$ \n3 : repeat \n4: $t \\gets t + 1$ \n5: $\\nabla f _ { t } ( { \\pmb x } _ { t - 1 } ) \\gets S e l e c t B a t c h ( { \\pmb x } _ { t - 1 } )$ . select batch and return the corresponding gradient \n6: $\\pmb { \\mathrm { g } } _ { t } \\nabla f _ { t } ( \\pmb { x } _ { t - 1 } ) \\ + w _ { t } \\pmb { x } _ { t - 1 }$ \n7: $\\pmb { m } _ { t } \\beta _ { 1 } \\pmb { m } _ { t - 1 } + \\overline { { ( 1 - \\beta _ { 1 } ) \\pmb { g } _ { t } } }$ . here and below all operations are element-wise \n8: $\\pmb { \\nu } _ { t } \\gets \\beta _ { 2 } \\pmb { \\nu } _ { t - 1 } + ( 1 - \\beta _ { 2 } ) \\pmb { g } _ { t } ^ { 2 }$ \n9: $\\hat { \\pmb { m } } _ { t } \\gets \\pmb { m } _ { t } / ( 1 - \\beta _ { 1 } ^ { t } )$ $\\triangleright$ here, $\\beta _ { 1 }$ is taken to the power of $t$ \n10: $\\hat { \\pmb { { \\nu } } } _ { t } \\gets { \\pmb { { \\nu } } } _ { t } / ( 1 - \\beta _ { 2 } ^ { t } )$ $\\triangleright$ here, $\\beta _ { 2 }$ is taken to the power of $t$ \n11: ηt ← SetScheduleMultiplier(t) . can be fixed, decay, be used for warm restarts \n12: $\\pmb { x } _ { t } \\pmb { x } _ { t - 1 } - \\eta _ { t } ( \\alpha _ { t } \\hat { m } _ { t } / ( \\sqrt { \\hat { \\nu } _ { t } } + \\epsilon ) + w _ { t } \\pmb { x } _ { t - 1 } )$ \n13: until stopping criterion is met \n14: return optimized parameters $\\mathbf { \\boldsymbol { x } } _ { t }$ ",
|
| 352 |
+
"bbox": [
|
| 353 |
+
176,
|
| 354 |
+
345,
|
| 355 |
+
825,
|
| 356 |
+
573
|
| 357 |
+
],
|
| 358 |
+
"page_idx": 2
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"type": "text",
|
| 362 |
+
"text": "(see line 8) might be a feature, we note (for simplicity, we omit $\\eta _ { t }$ ) that $\\mathbf { \\boldsymbol { x } } _ { t }$ will decay by $\\alpha _ { t } w _ { t } \\pmb { x } _ { t - 1 }$ (see line 9) and not $w _ { t } \\mathbf { x } _ { t - 1 }$ as one could expect according to the definition of the weight decay given by Eq. (1). Practically, if one wants to keep the actual weight decay $\\alpha _ { t } w _ { t }$ fixed while changing $\\alpha _ { t }$ to $\\alpha _ { t } ^ { \\prime }$ , then $w _ { t }$ should be modified to $\\begin{array} { r } { w _ { t } ^ { \\prime } = \\frac { \\alpha _ { t } w _ { t } } { \\alpha _ { t } ^ { \\prime } } } \\end{array}$ αtwtα0 . This renders the problem of hyperparameter selection of $\\alpha _ { t }$ and $w _ { t }$ non-separable. ",
|
| 363 |
+
"bbox": [
|
| 364 |
+
173,
|
| 365 |
+
599,
|
| 366 |
+
825,
|
| 367 |
+
674
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 2
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "text",
|
| 373 |
+
"text": "We propose to fix this problem by following the original definition of weight decay given by Eq. (1) and decay the weights simultaneously with the update of $\\mathbf { \\boldsymbol { x } } _ { t }$ based on gradient information in Line 9 of Algorithm 1. This yields our proposed SGD variant SGDW with momentum. Although the proposed simple modification explicitly decouples $w _ { t }$ and $\\alpha _ { t }$ , some problem-dependent implicit coupling is likely to remain. In order to account for a possible scheduling of both $\\alpha _ { t }$ and $w _ { t }$ , we introduce a scaling factor $\\eta _ { t }$ delivered by a user-defined procedure SetScheduleMultiplier $( t )$ . It should be noted that when $\\mathrm { L _ { 2 } }$ regularization is used, weight decay contributes to the batch gradient and thus effectively is scheduled in the same way as the learning rate. Now, since we decouple the two we should also remember to schedule both of them with $\\eta _ { t }$ . ",
|
| 374 |
+
"bbox": [
|
| 375 |
+
173,
|
| 376 |
+
680,
|
| 377 |
+
825,
|
| 378 |
+
805
|
| 379 |
+
],
|
| 380 |
+
"page_idx": 2
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"type": "text",
|
| 384 |
+
"text": "Having shown that using $\\mathrm { L _ { 2 } }$ regularization instead of weight decay already couples regularization and learning rate in the simple case of SGD with momentum, we now consider adaptive gradient optimizers, such as the Adam algorithm proposed by Kingma & Ba (2014), in which the coupling leads to even more unintended behavior. As an adaptive gradient method, Adam maintains a vector $\\nu _ { t }$ responsible for storing smoothed amplitudes of parameter-wise gradients ${ \\pmb g } _ { t } ^ { 2 }$ (see line 8 in Algorithm 2). These factors are used to control parameter-wise learning rates by normalizing parameter-wise√ gradients by $\\sqrt { \\hat { \\nu _ { t } } } + \\epsilon$ in line 12 of Algorithm 2. The common way to introduce the weight decay $w _ { t } \\mathbf { x } _ { t - 1 }$ to Adam results in an update which only distantly resembles the original weight decay given by Eq. (1) because the $\\nu _ { t }$ vectors are not only responsible for the parameter-wise amplitudes of $\\pmb { g } _ { t }$ but also for the parameter-wise amplitudes of weights $\\mathbf { \\boldsymbol { x } } _ { t }$ . The amplitudes are then used to renormalize $\\hat { \\pmb { m } } _ { t }$ as given in line 12 of Algorithm 2. To gain a bit of intuition, let us consider the case when $t$ is large, causing $\\beta _ { 1 } ^ { t }$ and $\\beta _ { 2 } ^ { t }$ to go to zero and ",
|
| 385 |
+
"bbox": [
|
| 386 |
+
173,
|
| 387 |
+
811,
|
| 388 |
+
823,
|
| 389 |
+
924
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 2
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "text",
|
| 395 |
+
"text": "",
|
| 396 |
+
"bbox": [
|
| 397 |
+
173,
|
| 398 |
+
103,
|
| 399 |
+
825,
|
| 400 |
+
160
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 3
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "equation",
|
| 406 |
+
"img_path": "images/ea9aa5c691010be5c6df39d4e10e31ac83b3aa14287be4778e047c963edd0ba5.jpg",
|
| 407 |
+
"text": "$$\n\\boldsymbol { x } _ { t } \\gets \\boldsymbol { x } _ { t - 1 } - \\eta _ { t } \\alpha _ { t } \\frac { \\beta _ { 1 } m _ { t - 1 } + ( 1 - \\beta _ { 1 } ) g _ { t } } { \\sqrt { \\beta _ { 2 } \\nu _ { t - 1 } + ( 1 - \\beta _ { 2 } ) g _ { t } ^ { 2 } } + \\epsilon } , \\ \\mathrm { w i t h } \\ g _ { t } = \\nabla f _ { t } ( \\boldsymbol { x } _ { t - 1 } ) + w _ { t } \\boldsymbol { x } _ { t - 1 } ,\n$$",
|
| 408 |
+
"text_format": "latex",
|
| 409 |
+
"bbox": [
|
| 410 |
+
215,
|
| 411 |
+
185,
|
| 412 |
+
746,
|
| 413 |
+
222
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 3
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "text",
|
| 419 |
+
"text": "where operations are performed parameter-wise. Not only the batch gradient $\\nabla f _ { t } ( { \\pmb x } _ { t - 1 } )$ is normalized but also the weight decay $w _ { t } \\mathbf { x } _ { t - 1 }$ itself. Since this formula normalizes updates by their typical amplitudes, the decay of weights does not account for amplitudes anymore, leading to the relative decay being weaker for weights with large gradients. This is a correct implementation of $\\mathbf { L } _ { 2 }$ regularization, but not of weight decay. Therefore, it might be misleading to use the two terms interchangeably, as is commonly done in the literature. We note that this difference between the two mechanisms for Adam has not been investigated and/or described before. As in the case of SGDW, we propose to follow the original definition of weight decay and perform it simultaneously with the gradient-based update as shown in line 12 of Algorithm 2 for AdamW. As we will demonstrate experimentally (in Section 5.2), AdamW generalizes much better than Adam. ",
|
| 420 |
+
"bbox": [
|
| 421 |
+
173,
|
| 422 |
+
236,
|
| 423 |
+
825,
|
| 424 |
+
376
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 3
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "text",
|
| 430 |
+
"text": "3 NORMALIZED WEIGHT DECAY",
|
| 431 |
+
"text_level": 1,
|
| 432 |
+
"bbox": [
|
| 433 |
+
176,
|
| 434 |
+
396,
|
| 435 |
+
462,
|
| 436 |
+
411
|
| 437 |
+
],
|
| 438 |
+
"page_idx": 3
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"type": "text",
|
| 442 |
+
"text": "Since our preliminary experiments showed that different weight decay factors are optimal for different computational budgets (defined in terms of the number of batch passes), we introduce a normalized weight decay to reduce this dependence. At iteration $t$ , $w _ { t }$ is set as follows: ",
|
| 443 |
+
"bbox": [
|
| 444 |
+
174,
|
| 445 |
+
428,
|
| 446 |
+
821,
|
| 447 |
+
469
|
| 448 |
+
],
|
| 449 |
+
"page_idx": 3
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"type": "equation",
|
| 453 |
+
"img_path": "images/1ab89fbc20262c106c2ec8af64c93f32520e0ae5c35fa9dae0b2c0fbd81a6029.jpg",
|
| 454 |
+
"text": "$$\nw _ { t } = w _ { n o r m } \\sqrt { \\frac { b _ { t } } { B T _ { i } } } ,\n$$",
|
| 455 |
+
"text_format": "latex",
|
| 456 |
+
"bbox": [
|
| 457 |
+
411,
|
| 458 |
+
496,
|
| 459 |
+
552,
|
| 460 |
+
531
|
| 461 |
+
],
|
| 462 |
+
"page_idx": 3
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"type": "text",
|
| 466 |
+
"text": "where $b _ { t }$ is the batch size, $B$ is the total number of training points to be used in one epoch and $T _ { i }$ is the total number of epochs within the $i$ -th run/restart of the algorithm. Thus, $w _ { n o r m }$ can be interpreted as the weight decay to be used if only one batch pass is allowed. We note a recent relevant observation of Li et al. (2017) who demonstrated that a smaller batch size (for the same total number of epochs) leads to the shrinking effect of weight decay being more pronounced. Here, we propose to address that effect with normalized weight decay. ",
|
| 467 |
+
"bbox": [
|
| 468 |
+
174,
|
| 469 |
+
544,
|
| 470 |
+
825,
|
| 471 |
+
628
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 3
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "text",
|
| 477 |
+
"text": "4 ADAM WITH WARM RESTARTS AND NORMALIZED WEIGHT DECAY",
|
| 478 |
+
"text_level": 1,
|
| 479 |
+
"bbox": [
|
| 480 |
+
173,
|
| 481 |
+
648,
|
| 482 |
+
763,
|
| 483 |
+
665
|
| 484 |
+
],
|
| 485 |
+
"page_idx": 3
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"type": "text",
|
| 489 |
+
"text": "We now apply warm restarts to Adam, following the recent work of Loshchilov & Hutter (2016). There, the authors proposed Stochastic Gradient Descent with Warm Restarts (SGDR) to improve anytime performance of SGD by quickly cooling down the learning rate and periodically increasing it. SGDR has been successfully adopted to lead to new state-of-the-art results for popular image classification benchmarks (Huang et al., 2017; Gastaldi, 2017), and we therefore tried extending it to Adam. However, while our initial version of Adam with warm restarts had better anytime performance than Adam, it was not competitive with SGD with warm restarts, precisely because of Adam’s dysfunctional weight decay. Now, having fixed weight decay regularization (Section 2) and also having introduced normalized weight decay (Section 3), the work of Loshchilov & Hutter (2016) on warm restarts directly carries over, and we use it to construct AdamWR to fully benefit from warm restarts. ",
|
| 490 |
+
"bbox": [
|
| 491 |
+
173,
|
| 492 |
+
680,
|
| 493 |
+
825,
|
| 494 |
+
833
|
| 495 |
+
],
|
| 496 |
+
"page_idx": 3
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"type": "text",
|
| 500 |
+
"text": "In the interest of keeping the presentation self-contained, we briefly describe how SGDR schedules the change of the effective learning rate in order to accelerate the training of DNNs. Here, we decouple the initial learning rate and its multiplier $\\eta _ { t }$ used to obtain the actual learning rate at iteration $t$ (see, e.g., line 8 in Algorithm 1). In SGDR, we simulate a new warm-started run/restart of SGD once $T _ { i }$ epochs are performed, where $i$ is the index of the run. Importantly, the restarts are not performed from scratch but emulated by increasing $\\eta _ { t }$ while the old value of $\\mathbf { } _ { \\pmb { x } _ { t } }$ is used as an initial solution. The amount by which $\\eta _ { t }$ is increases controls to which extent the previously acquired information (e.g., momentum) is used. Within the $i \\cdot$ -th run, the value of $\\eta _ { t }$ decays according to the cosine annealing (Loshchilov & Hutter, 2016) for each batch as follows: ",
|
| 501 |
+
"bbox": [
|
| 502 |
+
174,
|
| 503 |
+
840,
|
| 504 |
+
825,
|
| 505 |
+
924
|
| 506 |
+
],
|
| 507 |
+
"page_idx": 3
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"type": "text",
|
| 511 |
+
"text": "",
|
| 512 |
+
"bbox": [
|
| 513 |
+
173,
|
| 514 |
+
103,
|
| 515 |
+
825,
|
| 516 |
+
146
|
| 517 |
+
],
|
| 518 |
+
"page_idx": 4
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"type": "equation",
|
| 522 |
+
"img_path": "images/b46e90f4747ab62eafb0a7aae0bb8fb8e9fc6e5e2fb31ef928ccec9c73c9d06c.jpg",
|
| 523 |
+
"text": "$$\n\\eta _ { t } = \\eta _ { m i n } ^ { ( i ) } + 0 . 5 ( \\eta _ { m a x } ^ { ( i ) } - \\eta _ { m i n } ^ { ( i ) } ) ( 1 + \\cos ( \\pi T _ { c u r } / T _ { i } ) ) ,\n$$",
|
| 524 |
+
"text_format": "latex",
|
| 525 |
+
"bbox": [
|
| 526 |
+
303,
|
| 527 |
+
169,
|
| 528 |
+
660,
|
| 529 |
+
191
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 4
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "text",
|
| 535 |
+
"text": "where η min and $\\eta _ { m a x } ^ { ( i ) }$ are ranges for the multiplier and $T _ { c u r }$ accounts for how many epochs have been performed since the last restart. $T _ { c u r }$ is updated at each batch iteration $t$ and is thus not constrained to integer values. Adjusting (e.g., decreasing) η(i)min and $\\eta _ { m a x } ^ { ( i ) }$ at every $i$ -th restart (see also Smith (2016)) could potentially improve performance, but we do not consider that option in our experiments because it would involve additional hyperparameters. For $\\eta _ { m a x } ^ { ( i ) } = 1$ and $\\eta _ { m i n } ^ { ( i ) } = 0$ , one can simplify Eq. (6) to ",
|
| 536 |
+
"bbox": [
|
| 537 |
+
173,
|
| 538 |
+
204,
|
| 539 |
+
825,
|
| 540 |
+
297
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 4
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "equation",
|
| 546 |
+
"img_path": "images/46cfd9b63909f3bebd69999cc1b60055442c3c0957399000f250dbf9cd286af5.jpg",
|
| 547 |
+
"text": "$$\n\\eta _ { t } = 0 . 5 + 0 . 5 \\cos ( \\pi T _ { c u r } / T _ { i } ) .\n$$",
|
| 548 |
+
"text_format": "latex",
|
| 549 |
+
"bbox": [
|
| 550 |
+
379,
|
| 551 |
+
324,
|
| 552 |
+
586,
|
| 553 |
+
342
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 4
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "In order to maintain a good anytime performance, one can start with an initially small $T _ { i }$ (e.g., from $1 \\%$ to $10 \\%$ of the expected total budget) and multiply it by a factor of $T _ { m u l t }$ (e.g., $T _ { m u l t } = 2$ ) at every restart. The $( i + 1 )$ -th restart is triggered when $T _ { c u r } = T _ { i }$ by setting $T _ { c u r }$ to 0. An example setting of the schedule multiplier is given in Section 1.1 of the supplementary material. Note that the effective learning rate is controlled by $\\eta _ { t } \\alpha _ { t }$ where $\\alpha _ { t }$ is set to the initial learning rate and stays constant in our experimental setup. The reason why we employ $\\alpha _ { t }$ and not simply $\\alpha$ is to account for possible practical extensions, e.g., to adapt $\\alpha _ { t }$ as a function of batch size in (scheduled) large-batch settings. ",
|
| 560 |
+
"bbox": [
|
| 561 |
+
173,
|
| 562 |
+
353,
|
| 563 |
+
825,
|
| 564 |
+
465
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 4
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "Our proposed AdamWR algorithm represents AdamW given in Algorithm 2 with $\\eta _ { t }$ following Eq. (7) and $w _ { t }$ computed at each iteration using normalized weight decay according to Eq. (5). We note that normalized weight decay allowed us to use a constant parameter setting across short and long runs performed within AdamWR. Equivalently to AdamWR, we define SGDWR as SGDW with warm restarts. ",
|
| 571 |
+
"bbox": [
|
| 572 |
+
174,
|
| 573 |
+
472,
|
| 574 |
+
825,
|
| 575 |
+
541
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 4
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "text",
|
| 581 |
+
"text": "5 EXPERIMENTAL VALIDATION ",
|
| 582 |
+
"text_level": 1,
|
| 583 |
+
"bbox": [
|
| 584 |
+
178,
|
| 585 |
+
561,
|
| 586 |
+
446,
|
| 587 |
+
578
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 4
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "Our experimental setup follows that of Gastaldi (2017), who proposed, in addition to $\\mathrm { L _ { 2 } }$ regularization, to apply the new Shake-Shake regularization to a 3-branch residual neural network. Gastaldi (2017) showed that this regularization allowed to achieve new state-of-the-art results of $2 . 8 6 \\%$ on the CIFAR-10 dataset (Krizhevsky, 2009) and of $1 5 . 8 5 \\%$ on CIFAR-100. The network was trained by SGDR with batch size 128 for 1800 epochs $\\begin{array} { r } { T _ { 0 } = 1 8 0 0 \\mathrm { \\Omega } } \\end{array}$ ) without restarts with the learning rate scheduled by Eq. (6). The regular data augmentation procedure used for the CIFAR datasets was applied. We used the same model/source code based on fb.resnet.torch 1. The base networks are a 26 2x64d ResNet (i.e. the network has a depth of 26, 2 residual branches and the first residual block has a width of 64) and $2 6 2 \\mathrm { x } 9 6 \\mathrm { d }$ ResNet with 11.6M and 25.6M parameters, respectively. For a detailed description of the network and the Shake-Shake method, we refer the interested reader to Gastaldi (2017). ",
|
| 594 |
+
"bbox": [
|
| 595 |
+
173,
|
| 596 |
+
593,
|
| 597 |
+
825,
|
| 598 |
+
746
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 4
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "5.1 DECOUPLING THE WEIGHT DECAY AND INITIAL LEARNING RATE PARAMETERS",
|
| 605 |
+
"text_level": 1,
|
| 606 |
+
"bbox": [
|
| 607 |
+
173,
|
| 608 |
+
762,
|
| 609 |
+
772,
|
| 610 |
+
777
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 4
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "In order to verify our hypothesis about the coupling of the initial learning rate $\\alpha _ { t }$ and the weight decay factor $w _ { t }$ , we trained a 2x64d ResNet with cosine annealing for 100 epochs with different settings of $\\alpha _ { t }$ and $w _ { t }$ . Throughout this paper, we scheduled the learning rate with cosine annealing because it leads to better results than a fixed learning rate (see SuppFigure 1 in the supplementary material). Figure 1 compares SGD vs. SGDW (top row) and Adam vs. AdamW (bottom row). For the case of SGD (Figure 1, top left), weight decay is not decoupled from the learning rate (the common way as described in Algorithm 1), and the figure clearly shows that the basin of best hyperparameter settings (depicted by color and top-10 hyperparameter settings by black circles) is not aligned with the $\\mathbf { X }$ -axis or y-axis but lies on the diagonal. This suggests that the two hyperparameters are interdependent and need to be changed simultaneously, while only changing one of them might substantially worsen results. Consider, e.g., the setting at the top left black circle $( \\alpha _ { t } = 1 / 2$ , $w _ { t } = 1 / 8 * 0 . 0 0 1 )$ ; only changing either $\\alpha _ { t }$ or $w _ { t }$ by itself would worsen results, while changing both of them could still yield clear improvements. We note that this coupling of initial learning rate and weight decay factor might have contributed to SGD’s reputation of being very sensitive to its hyperparameter settings. ",
|
| 617 |
+
"bbox": [
|
| 618 |
+
174,
|
| 619 |
+
789,
|
| 620 |
+
825,
|
| 621 |
+
901
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 4
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "image",
|
| 627 |
+
"img_path": "images/7ad12dbf6e15c266b2455863a707c3f0bb3f131894189e9132a7f993e1ac46fb.jpg",
|
| 628 |
+
"image_caption": [
|
| 629 |
+
"Figure 1: The Top-1 test error of a 26 2x64d ResNet on CIFAR-10 measured after 100 epochs. The proposed SGDW and AdamW (right column) have a more separable hyperparameter space. "
|
| 630 |
+
],
|
| 631 |
+
"image_footnote": [],
|
| 632 |
+
"bbox": [
|
| 633 |
+
169,
|
| 634 |
+
97,
|
| 635 |
+
831,
|
| 636 |
+
527
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 5
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "",
|
| 643 |
+
"bbox": [
|
| 644 |
+
174,
|
| 645 |
+
595,
|
| 646 |
+
825,
|
| 647 |
+
694
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 5
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "In contrast, the results for our new SGDW in Figure 1 (top right) show that SGDW decouples weight decay and initial learning rate. The proposed approach renders the two hyperparameters more separable: even if the learning rate is not well tuned yet (e.g., consider the value of 1/1024 in Figure 1, top right), leaving it fixed and only optimizing the weight decay factor would yield a good value (of $1 / 4 ^ { * } 0 . 0 0 1$ ). This is not the case for the original SGD shown in Figure 1 (top left). ",
|
| 654 |
+
"bbox": [
|
| 655 |
+
174,
|
| 656 |
+
700,
|
| 657 |
+
825,
|
| 658 |
+
770
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 5
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "The results for different hyperparameter settings of the original Adam are given in Figure 1 (bottom left). Adam’s best hyperparameter settings performed clearly worse than SGD’s best ones (compare Figure 1, top left). While both methods use the original way to employ weight decay, the original Adam did not benefit from it at all: its best results obtained for non-zero weight decay values were comparable to the best ones obtained without the weight decay regularization, i.e., when $w _ { t } = 0$ . Similarly to the original SGD, the shape of the hyperparameter landscape suggests that the two hyperparameters are coupled. ",
|
| 665 |
+
"bbox": [
|
| 666 |
+
173,
|
| 667 |
+
776,
|
| 668 |
+
825,
|
| 669 |
+
875
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 5
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "text",
|
| 675 |
+
"text": "In contrast, the results for our new AdamW in Figure 1 (bottom right) show that AdamW largely decouples weight decay and learning rate. The results for the best hyperparameter settings were substantially better than the best ones of the original Adam and rivaled those of SGD and SGDW. ",
|
| 676 |
+
"bbox": [
|
| 677 |
+
176,
|
| 678 |
+
882,
|
| 679 |
+
823,
|
| 680 |
+
924
|
| 681 |
+
],
|
| 682 |
+
"page_idx": 5
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"type": "image",
|
| 686 |
+
"img_path": "images/52a47381f3c762e6730e56799945e627b42b9e17fe08beb91dbe05ad79f79083.jpg",
|
| 687 |
+
"image_caption": [
|
| 688 |
+
"Figure 2: Learning curves (top row) and generalization results (bottom row) obtained by a $2 6 2 \\mathrm { x } 9 6 \\mathrm { d }$ ResNet trained with Adam and AdamW on CIFAR-10. See text for details. "
|
| 689 |
+
],
|
| 690 |
+
"image_footnote": [],
|
| 691 |
+
"bbox": [
|
| 692 |
+
171,
|
| 693 |
+
102,
|
| 694 |
+
820,
|
| 695 |
+
521
|
| 696 |
+
],
|
| 697 |
+
"page_idx": 6
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"type": "text",
|
| 701 |
+
"text": "In summary, the experimental results in Figure 1 support our hypothesis that the weight decay and learning rate hyperparameters can be decoupled, and that this in turn simplifies the problem of hyperparameter tuning in SGD and improves Adam’s performance to be competitive w.r.t. SGD with momentum. ",
|
| 702 |
+
"bbox": [
|
| 703 |
+
174,
|
| 704 |
+
595,
|
| 705 |
+
825,
|
| 706 |
+
651
|
| 707 |
+
],
|
| 708 |
+
"page_idx": 6
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"type": "text",
|
| 712 |
+
"text": "5.2 BETTER GENERALIZATION OF ADAMW ",
|
| 713 |
+
"text_level": 1,
|
| 714 |
+
"bbox": [
|
| 715 |
+
178,
|
| 716 |
+
678,
|
| 717 |
+
486,
|
| 718 |
+
693
|
| 719 |
+
],
|
| 720 |
+
"page_idx": 6
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"type": "text",
|
| 724 |
+
"text": "While the previous experiment suggested that the basin of optimal hyperparameters of AdamW is broader and deeper than the one of Adam, we next investigated the results for much longer runs of 1800 epochs to compare the generalization capabilities of AdamW and Adam. ",
|
| 725 |
+
"bbox": [
|
| 726 |
+
176,
|
| 727 |
+
708,
|
| 728 |
+
825,
|
| 729 |
+
750
|
| 730 |
+
],
|
| 731 |
+
"page_idx": 6
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"type": "text",
|
| 735 |
+
"text": "We fixed the initial learning rate to 0.001 which represents both the default learning rate for Adam and the one which showed reasonably good results in our experiments. Figure 2 shows the results for 12 settings of the weight decay of Adam and 7 settings of the normalized weight decay of AdamW. Interestingly, while the dynamics of the learning curves of Adam and AdamW often coincided for the first half of the training run, AdamW often led to lower training loss and test errors (see Figure 2 top left and top right, respectively). Importantly, the use of weight decay in Adam did not yield as good results as in AdamW (see also Figure 2, bottom left). Next, we investigated whether AdamW’s better results were only due to better convergence or due to better generalization. The results in Figure 2 (bottom right) for the best settings of Adam and AdamW suggest that AdamW did not only yield better training loss but also yielded better generalization performance for similar training loss values. The results on ImageNet32x32 (see SuppFigure 4 in the supplementary material) lead to the same conclusion of substantially improved generalization performance. ",
|
| 736 |
+
"bbox": [
|
| 737 |
+
174,
|
| 738 |
+
757,
|
| 739 |
+
825,
|
| 740 |
+
924
|
| 741 |
+
],
|
| 742 |
+
"page_idx": 6
|
| 743 |
+
},
|
| 744 |
+
{
|
| 745 |
+
"type": "image",
|
| 746 |
+
"img_path": "images/0ff069bf8c97d4f4a604ac3f1be2a4b774410f1171b5b75df88a8d5e5c87160c.jpg",
|
| 747 |
+
"image_caption": [
|
| 748 |
+
"Figure 3: Top-1 test error on CIFAR-10 (left) and Top-5 test error on ImageNet32x32 (right). "
|
| 749 |
+
],
|
| 750 |
+
"image_footnote": [],
|
| 751 |
+
"bbox": [
|
| 752 |
+
173,
|
| 753 |
+
99,
|
| 754 |
+
825,
|
| 755 |
+
306
|
| 756 |
+
],
|
| 757 |
+
"page_idx": 7
|
| 758 |
+
},
|
| 759 |
+
{
|
| 760 |
+
"type": "text",
|
| 761 |
+
"text": "5.3 EASIER HYPERPARAMETER SELECTION DUE TO NORMALIZED WEIGHT DECAY",
|
| 762 |
+
"bbox": [
|
| 763 |
+
174,
|
| 764 |
+
366,
|
| 765 |
+
759,
|
| 766 |
+
380
|
| 767 |
+
],
|
| 768 |
+
"page_idx": 7
|
| 769 |
+
},
|
| 770 |
+
{
|
| 771 |
+
"type": "text",
|
| 772 |
+
"text": "Our experimental results with Adam and SGD suggested that the total runtime in terms of the number of epochs affect the basin of optimal hyperparameters (see SuppFigure 3 in the supplementary material). More specifically, the greater the total number of epochs the smaller the values of the weight decay should be. SuppFigure 3 shows that our remedy for this problem, the normalized weight decay defined in Eq. (7), simplifies hyperparameter selection because the optimal values observed for short runs are similar to the ones for much longer runs. While our initial experiments on CIFAR-10 suggested the square root fit we proposed in Eq. (7), to double-check that this is not a coincidence, we also performed experiments on the ImageNet32x32 dataset (Chrabaszcz et al., 2017), a downsampled version of the original ImageNet dataset with 1.2 million $3 2 \\times 3 2$ pixels images, where an epoch is 24 times longer than on CIFAR-10. This experiment also supported the square root scaling: the best values of the normalized weight decay observed on CIFAR-10 represented nearly optimal values for ImageNet $3 2 \\mathrm { x } 3 2 $ (see SuppFigure 3). In contrast, had we used the same raw weight decay values $w _ { t }$ for ImageNet32x32 as for CIFAR-10 and for the same number of epochs, without the proposed normalization, $w _ { t }$ would have been roughly 5 greater than optimal for ImageNet32x32, leading to much worse performance. The optimal normalized weight decay values were also very similar (e.g., $w _ { n o r m } = 0 . 0 2 5$ and $w _ { n o r m } = 0 . 0 5$ ) across SGDW and AdamW. ",
|
| 773 |
+
"bbox": [
|
| 774 |
+
174,
|
| 775 |
+
393,
|
| 776 |
+
825,
|
| 777 |
+
628
|
| 778 |
+
],
|
| 779 |
+
"page_idx": 7
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"type": "text",
|
| 783 |
+
"text": "We investigated whether the use of much longer runs (1800 epochs) of the original Adam with $\\mathrm { L _ { 2 } }$ regularization makes the use of cosine annealing unnecessary. The results of Adam without cosine annealing (i.e., with fixed learning rate) for a 4 by 4 logarithmic grid of hyperparameter settings are given in SuppFigure 5 in the supplementary material. Even after taking into account the low resolution of the grid, the results appear to be at best comparable to the ones obtained with AdamW with 18 times less epochs and a smaller network (see SuppFigure 2). These results are not very surprising given Figure 1 (which demonstrates the effectiveness of AdamW) and SuppFigure 2 (which demonstrates the necessity to use some learning rate schedule such as cosine annealing). ",
|
| 784 |
+
"bbox": [
|
| 785 |
+
174,
|
| 786 |
+
637,
|
| 787 |
+
825,
|
| 788 |
+
748
|
| 789 |
+
],
|
| 790 |
+
"page_idx": 7
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "text",
|
| 794 |
+
"text": "5.4 ADAMWR WITH WARM RESTARTS FOR BETTER ANYTIME PERFORMANCE ",
|
| 795 |
+
"text_level": 1,
|
| 796 |
+
"bbox": [
|
| 797 |
+
176,
|
| 798 |
+
771,
|
| 799 |
+
722,
|
| 800 |
+
785
|
| 801 |
+
],
|
| 802 |
+
"page_idx": 7
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"type": "text",
|
| 806 |
+
"text": "Finally, we investigated the strong anytime performance AdamWR obtains from warm restarts (using normalized weight decay to avoid the need for a different weight decay factor for restarts with longer annealing schedules). As Figure 3 shows, AdamWR greatly sped up AdamW on CIFAR10 and ImageNet32x32, up to a factor of 10 (see the results at the first restart). For the default learning rate of 0.001, AdamW achieved $15 \\%$ relative improvement in test errors compared to Adam both on CIFAR-10 (also see Figure 2) and ImageNet32x32 (also see SuppFigure 4). AdamWR achieved the same improved results but with a much better anytime performance. These improvements closed most of the gap between Adam and SGDWR on CIFAR-10 and yielded comparable performance on ImageNet32x32. ",
|
| 807 |
+
"bbox": [
|
| 808 |
+
174,
|
| 809 |
+
799,
|
| 810 |
+
825,
|
| 811 |
+
924
|
| 812 |
+
],
|
| 813 |
+
"page_idx": 7
|
| 814 |
+
},
|
| 815 |
+
{
|
| 816 |
+
"type": "text",
|
| 817 |
+
"text": "6 DISCUSSION AND CONCLUSION ",
|
| 818 |
+
"text_level": 1,
|
| 819 |
+
"bbox": [
|
| 820 |
+
176,
|
| 821 |
+
102,
|
| 822 |
+
468,
|
| 823 |
+
117
|
| 824 |
+
],
|
| 825 |
+
"page_idx": 8
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "text",
|
| 829 |
+
"text": "Following suggestions that adaptive gradient methods such as Adam might lead to worse generalization than SGD with momentum (Wilson et al., 2017), we identified at least one possible explanation to this phenomenon: the dysfunctional use of $\\mathrm { L _ { 2 } }$ regularization and weight decay. We proposed a simple fix to deal with this issue, yielding substantially better generalization performance in our AdamW variant. We also proposed normalized weight decay and warm restarts for Adam, showing that a more robust hyperparameteer selection and a better anytime performance can be achieved in our new AdamWR variant. ",
|
| 830 |
+
"bbox": [
|
| 831 |
+
174,
|
| 832 |
+
133,
|
| 833 |
+
825,
|
| 834 |
+
231
|
| 835 |
+
],
|
| 836 |
+
"page_idx": 8
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"text": "Our preliminary results obtained with AdamW and AdamWR on image classification datasets must be verified on a wider range of tasks, especially the ones where the use of regularization is expected to be important. It would be interesting to integrate our findings on weight decay into other methods which attempt to improve Adam, e.g, normalized direction-preserving Adam (Zhang et al., 2017). While we focussed our experimental analysis on Adam, we believe that similar results also hold for other adaptive gradient methods, such as AdaGrad (Duchi et al., 2011) and RMSProp (Tieleman & Hinton, 2012). ",
|
| 841 |
+
"bbox": [
|
| 842 |
+
174,
|
| 843 |
+
238,
|
| 844 |
+
825,
|
| 845 |
+
335
|
| 846 |
+
],
|
| 847 |
+
"page_idx": 8
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"type": "text",
|
| 851 |
+
"text": "The results shown in Figure 2 suggest that Adam and AdamW follow very similar curves most of the time until the third phase of the run where AdamW starts to branch out to outperform Adam. As pointed out by an anonymous reviewer, it would be interesting to investigate what causes this branching and whether the desired effects are observed at the bottom of the landscape. One could investigate this using the approach of Im et al. (2016) to switch from Adam to AdamW at a given epoch index. Since it is quite possible that the effect of regularization is not that pronounced in the early stages of training, one could think of designing a version of Adam which exploits this by being fast in the early stages and well-regularized in the late stages of training. The latter might be achieved with a custom schedule of the weight decay factor. ",
|
| 852 |
+
"bbox": [
|
| 853 |
+
173,
|
| 854 |
+
343,
|
| 855 |
+
825,
|
| 856 |
+
468
|
| 857 |
+
],
|
| 858 |
+
"page_idx": 8
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"type": "text",
|
| 862 |
+
"text": "In this paper, we argue that the popular interpretation that weight decay $\\mathbf { \\tau } = \\mathbf { L } _ { 2 }$ regularization is not precise. Instead, the difference between the two leads to the following important consequences. Two algorithms as different as SGD and Adam will exhibit different effective rates of weight decay even if the same regularization coefficient is used to include $\\mathrm { L _ { 2 } }$ regularization in the objective function. Moreover, when decoupled weight decay is applied, two algorithms as different as SGDW and AdamW will optimize two effectively different objective functions even if the same weight decay factor is used. Our findings suggest that the original Adam algorithm with $\\mathrm { L _ { 2 } }$ regularization affects effective rates of weight decay in a way that precludes effective regularization, and that effective regularization is achievable by decoupling the weight decay. ",
|
| 863 |
+
"bbox": [
|
| 864 |
+
174,
|
| 865 |
+
474,
|
| 866 |
+
825,
|
| 867 |
+
601
|
| 868 |
+
],
|
| 869 |
+
"page_idx": 8
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"type": "text",
|
| 873 |
+
"text": "Advani & Saxe (2017) analytically showed that in the limited data regime of deep networks the presence of eigenvalues that are zero forms a frozen subspace in which no learning occurs and thus smaller (e.g., zero) initial weight norms should be used to achieve best generalization results. Our future work shall consider adapting initial weight norms or weight norm constraints (Salimans & Kingma, 2016) at each warm restart. Kawaguchi et al. (2017) proposed a family of regularization techniques which are specific to the current batch and its size. Similarly to $\\mathrm { L _ { 2 } }$ regularization and weight decay, the latter techniques might be attempted to be transformed to act directly on weights. ",
|
| 874 |
+
"bbox": [
|
| 875 |
+
174,
|
| 876 |
+
607,
|
| 877 |
+
825,
|
| 878 |
+
704
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 8
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "REFERENCES ",
|
| 885 |
+
"text_level": 1,
|
| 886 |
+
"bbox": [
|
| 887 |
+
176,
|
| 888 |
+
727,
|
| 889 |
+
285,
|
| 890 |
+
742
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 8
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "Madhu S. Advani and Andrew M. Saxe. High-dimensional dynamics of generalization error in neural networks. arXiv:1710.03667, 2017. \nPatryk Chrabaszcz, Ilya Loshchilov, and Frank Hutter. A downsampled variant of ImageNet as an alternative to the CIFAR datasets. arXiv:1707.08819, 2017. \nLaurent Dinh, Razvan Pascanu, Samy Bengio, and Yoshua Bengio. Sharp minima can generalize for deep nets. arXiv:1703.04933, 2017. \nJohn Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. The Journal of Machine Learning Research, 12:2121–2159, 2011. \nXavier Gastaldi. Shake-Shake regularization. arXiv preprint arXiv:1705.07485, 2017. ",
|
| 897 |
+
"bbox": [
|
| 898 |
+
171,
|
| 899 |
+
750,
|
| 900 |
+
826,
|
| 901 |
+
924
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 8
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "Karol Gregor, Ivo Danihelka, Alex Graves, Danilo Jimenez Rezende, and Daan Wierstra. Draw: A recurrent neural network for image generation. arXiv:1502.04623, 2015. ",
|
| 908 |
+
"bbox": [
|
| 909 |
+
171,
|
| 910 |
+
103,
|
| 911 |
+
823,
|
| 912 |
+
133
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 9
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "Stephen Jose Hanson and Lorien Y Pratt. Comparing biases for minimal network construction with ´ back-propagation. In Proceedings of the 1st International Conference on Neural Information Processing Systems, pp. 177–185, 1988. ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
176,
|
| 921 |
+
140,
|
| 922 |
+
823,
|
| 923 |
+
184
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 9
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "Gao Huang, Zhuang Liu, and Kilian Q Weinberger. Densely connected convolutional networks. arXiv:1608.06993, 2016. ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
173,
|
| 932 |
+
193,
|
| 933 |
+
821,
|
| 934 |
+
222
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 9
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "Gao Huang, Yixuan Li, Geoff Pleiss, Zhuang Liu, John E Hopcroft, and Kilian Q Weinberger. Snapshot ensembles: Train 1, get m for free. arXiv:1704.00109, 2017. ",
|
| 941 |
+
"bbox": [
|
| 942 |
+
173,
|
| 943 |
+
229,
|
| 944 |
+
823,
|
| 945 |
+
260
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 9
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "Daniel Jiwoong Im, Michael Tao, and Kristin Branson. An empirical analysis of deep network loss surfaces. arXiv preprint arXiv:1612.04010, 2016. ",
|
| 952 |
+
"bbox": [
|
| 953 |
+
173,
|
| 954 |
+
267,
|
| 955 |
+
823,
|
| 956 |
+
297
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 9
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "Kenji Kawaguchi, Leslie Pack Kaelbling, and Yoshua Bengio. Generalization in deep learning. arXiv:1710.05468, 2017. ",
|
| 963 |
+
"bbox": [
|
| 964 |
+
173,
|
| 965 |
+
305,
|
| 966 |
+
821,
|
| 967 |
+
335
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 9
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. arXiv:1609.04836, 2016. ",
|
| 974 |
+
"bbox": [
|
| 975 |
+
173,
|
| 976 |
+
343,
|
| 977 |
+
825,
|
| 978 |
+
386
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 9
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv:1412.6980, 2014. ",
|
| 985 |
+
"bbox": [
|
| 986 |
+
173,
|
| 987 |
+
395,
|
| 988 |
+
823,
|
| 989 |
+
424
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 9
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009. ",
|
| 996 |
+
"bbox": [
|
| 997 |
+
174,
|
| 998 |
+
433,
|
| 999 |
+
692,
|
| 1000 |
+
449
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 9
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "Hao Li, Zheng Xu, Gavin Taylor, and Tom Goldstein. Visualizing the loss landscape of neural nets. arXiv preprint arXiv:1712.09913, 2017. ",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
173,
|
| 1009 |
+
457,
|
| 1010 |
+
818,
|
| 1011 |
+
486
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 9
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "Ilya Loshchilov and Frank Hutter. SGDR: stochastic gradient descent with warm restarts. arXiv:1608.03983, 2016. ",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
173,
|
| 1020 |
+
494,
|
| 1021 |
+
821,
|
| 1022 |
+
523
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 9
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv:1511.06434, 2015. ",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
174,
|
| 1031 |
+
532,
|
| 1032 |
+
821,
|
| 1033 |
+
561
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 9
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "Tim Salimans and Diederik P Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. In Advances in Neural Information Processing Systems, pp. 901–909, 2016. ",
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
174,
|
| 1042 |
+
570,
|
| 1043 |
+
825,
|
| 1044 |
+
613
|
| 1045 |
+
],
|
| 1046 |
+
"page_idx": 9
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"type": "text",
|
| 1050 |
+
"text": "Leslie N Smith. Cyclical learning rates for training neural networks. arXiv:1506.01186v3, 2016. ",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
169,
|
| 1053 |
+
621,
|
| 1054 |
+
805,
|
| 1055 |
+
637
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 9
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "text",
|
| 1061 |
+
"text": "Tijmen Tieleman and Geoffrey Hinton. Lecture 6.5-rmsprop: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural networks for machine learning, 4(2):26– 31, 2012. ",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
174,
|
| 1064 |
+
645,
|
| 1065 |
+
825,
|
| 1066 |
+
688
|
| 1067 |
+
],
|
| 1068 |
+
"page_idx": 9
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"type": "text",
|
| 1072 |
+
"text": "Ashia C Wilson, Rebecca Roelofs, Mitchell Stern, Nathan Srebro, and Benjamin Recht. The marginal value of adaptive gradient methods in machine learning. arXiv:1705.08292, 2017. ",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
173,
|
| 1075 |
+
696,
|
| 1076 |
+
825,
|
| 1077 |
+
727
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 9
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "text",
|
| 1083 |
+
"text": "Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In International Conference on Machine Learning, pp. 2048–2057, 2015. ",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
173,
|
| 1086 |
+
734,
|
| 1087 |
+
825,
|
| 1088 |
+
777
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 9
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "text",
|
| 1094 |
+
"text": "Zijun Zhang, Lin Ma, Zongpeng Li, and Chuan Wu. Normalized direction-preserving adam. arXiv:1709.04546, 2017. ",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
173,
|
| 1097 |
+
786,
|
| 1098 |
+
823,
|
| 1099 |
+
815
|
| 1100 |
+
],
|
| 1101 |
+
"page_idx": 9
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"type": "text",
|
| 1105 |
+
"text": "1 SUPPLEMENTARY MATERIAL ",
|
| 1106 |
+
"text_level": 1,
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
178,
|
| 1109 |
+
102,
|
| 1110 |
+
446,
|
| 1111 |
+
117
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 10
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "1.1 AN EXAMPLE SETTING OF THE SCHEDULE MULTIPLIER ",
|
| 1118 |
+
"text_level": 1,
|
| 1119 |
+
"bbox": [
|
| 1120 |
+
176,
|
| 1121 |
+
133,
|
| 1122 |
+
593,
|
| 1123 |
+
148
|
| 1124 |
+
],
|
| 1125 |
+
"page_idx": 10
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"type": "text",
|
| 1129 |
+
"text": "An example schedule of the schedule multiplier $\\eta _ { t }$ is given in SuppFigure 1 for $T _ { i = 0 } = 1 0 0$ and $T _ { m u l t } = 2$ . After the initial 100 epochs the learning rate will reach 0 because $\\eta _ { t = 1 0 0 } = 0$ . Then, since $T _ { c u r } = T _ { i = 0 }$ , we restart by resetting $T _ { c u r } = 0$ , causing the multiplier $\\eta _ { t }$ to be reset to 1 due to Eq. (7). This multiplier will then decrease again from 1 to 0, but now over the course of 200 epochs because $T _ { i = 1 } = T _ { i = 0 } T _ { m u l t } = 2 0 0$ . Solutions obtained right before the restarts, when $\\eta _ { t } = 0$ (e.g., at epoch indexes 100, 300, 700 and 1500 as shown in SuppFigure 1) are recommended by the optimizer as the solutions, with more recent solutions prioritized. ",
|
| 1130 |
+
"bbox": [
|
| 1131 |
+
173,
|
| 1132 |
+
159,
|
| 1133 |
+
826,
|
| 1134 |
+
257
|
| 1135 |
+
],
|
| 1136 |
+
"page_idx": 10
|
| 1137 |
+
},
|
| 1138 |
+
{
|
| 1139 |
+
"type": "image",
|
| 1140 |
+
"img_path": "images/e1136b7a9c1678087dff60655ce9bbb521fd87b5f4b6da3cc91d9b66fe540e22.jpg",
|
| 1141 |
+
"image_caption": [
|
| 1142 |
+
"SuppFigure 1: An example schedule of the learning rate multiplier as a function of epoch index. The first run is scheduled to converge at epoch $T _ { i = 0 } = 1 0 0$ , then the budget for the next run is doubled as $T _ { i = 1 } = T _ { i = 0 } T _ { m u l t } = 2 0 0$ , etc. "
|
| 1143 |
+
],
|
| 1144 |
+
"image_footnote": [],
|
| 1145 |
+
"bbox": [
|
| 1146 |
+
341,
|
| 1147 |
+
282,
|
| 1148 |
+
650,
|
| 1149 |
+
467
|
| 1150 |
+
],
|
| 1151 |
+
"page_idx": 10
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"type": "image",
|
| 1155 |
+
"img_path": "images/17833324a93093bca68da92e2e53961c517952fd5102b4cf95bfdcb2b6964358.jpg",
|
| 1156 |
+
"image_caption": [
|
| 1157 |
+
"SuppFigure 2: Adam with fixed learning rate (left) and with cosine annealing (right). We show the final test error of a $2 6 ~ 2 \\mathrm { x } 6 4 \\mathrm { d }$ ResNet on CIFAR-10 after 100 epochs of SGD with momentum. The results where the learning rate is fixed (left) are inferior to the ones where the learning rate is scheduled according to cosine annealing (right). Therefore, we schedule the learning rate with cosine annealing for all methods given in the paper. "
|
| 1158 |
+
],
|
| 1159 |
+
"image_footnote": [],
|
| 1160 |
+
"bbox": [
|
| 1161 |
+
171,
|
| 1162 |
+
560,
|
| 1163 |
+
828,
|
| 1164 |
+
825
|
| 1165 |
+
],
|
| 1166 |
+
"page_idx": 10
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"type": "image",
|
| 1170 |
+
"img_path": "images/5f160ef2fc5e0bb5f0bd015a3408463f8f327bfc9a812fbf805295bea1d5d435.jpg",
|
| 1171 |
+
"image_caption": [
|
| 1172 |
+
"SuppFigure 3: Effect of normalized weight decay. We show the final test Top-1 error on CIFAR10 (first two rows for AdamW without and with normalized weight decay) and Top-5 error on ImageNet32x32 (last two rows for AdamW and SGDW, both with normalized weight decay) of a $2 6 2 \\mathrm { x } 6 4 \\mathrm { d }$ ResNet after different numbers of epochs (see columns). While the optimal settings of the raw weight decay change significantly for different runtime budgets (see the first row), the values of the normalized weight decay remain very similar for different budgets (see the second row) and different datasets (here, CIFAR-10 and ImageNet32x32), and even across AdamW and SGDW. "
|
| 1173 |
+
],
|
| 1174 |
+
"image_footnote": [],
|
| 1175 |
+
"bbox": [
|
| 1176 |
+
171,
|
| 1177 |
+
94,
|
| 1178 |
+
828,
|
| 1179 |
+
818
|
| 1180 |
+
],
|
| 1181 |
+
"page_idx": 11
|
| 1182 |
+
},
|
| 1183 |
+
{
|
| 1184 |
+
"type": "image",
|
| 1185 |
+
"img_path": "images/34a75388019587badb9d17928eefc833ecc3e6db8aa0e1a91ecb741aea7e654e.jpg",
|
| 1186 |
+
"image_caption": [
|
| 1187 |
+
"SuppFigure 4: Learning curves (top row) and generalization results (Top-5 errors in bottom row) obtained by a $2 6 2 \\mathrm { x } 9 6 \\mathrm { d }$ ResNet trained with Adam and AdamW on ImageNet32x32. "
|
| 1188 |
+
],
|
| 1189 |
+
"image_footnote": [],
|
| 1190 |
+
"bbox": [
|
| 1191 |
+
171,
|
| 1192 |
+
282,
|
| 1193 |
+
828,
|
| 1194 |
+
696
|
| 1195 |
+
],
|
| 1196 |
+
"page_idx": 12
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"type": "image",
|
| 1200 |
+
"img_path": "images/b8803b776bd6799e677439534292c7be94ce223d9f24b87e94e074f7d33cd8a5.jpg",
|
| 1201 |
+
"image_caption": [
|
| 1202 |
+
"SuppFigure 5: Adam without cosine annealing, i.e., with fixed learning rate. We show the final test error of a $2 6 ~ 2 \\mathrm { x } 9 6 \\mathrm { d }$ ResNet on CIFAR-10 after 1800 epochs of the original Adam for different settings of learning rate and weight decay used for $\\mathrm { L _ { 2 } }$ regularization. These results can be compared to the ones of AdamW shown in SuppFigure 3 (top row). The results of AdamW with only 100 epochs and a smaller network seem to be at least as good as the ones of Adam with 18 times as many epochs and a bigger network. "
|
| 1203 |
+
],
|
| 1204 |
+
"image_footnote": [],
|
| 1205 |
+
"bbox": [
|
| 1206 |
+
300,
|
| 1207 |
+
304,
|
| 1208 |
+
699,
|
| 1209 |
+
617
|
| 1210 |
+
],
|
| 1211 |
+
"page_idx": 13
|
| 1212 |
+
}
|
| 1213 |
+
]
|
parse/train/rk6qdGgCZ/rk6qdGgCZ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rk6qdGgCZ/rk6qdGgCZ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/x2TMPhseWAW/x2TMPhseWAW.md
ADDED
|
@@ -0,0 +1,427 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Label Noise SGD Provably Prefers Flat Global Minimizers
|
| 2 |
+
|
| 3 |
+
Alex Damian Princeton University ad27@princeton.edu
|
| 4 |
+
|
| 5 |
+
Tengyu Ma Stanford University tengyuma@stanford.edu
|
| 6 |
+
|
| 7 |
+
Jason Lee Princeton University jasonlee@princeton.edu
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
In overparametrized models, the noise in stochastic gradient descent (SGD) implicitly regularizes the optimization trajectory and determines which local minimum SGD converges to. Motivated by empirical studies that demonstrate that training with noisy labels improves generalization, we study the implicit regularization effect of SGD with label noise. We show that SGD with label noise converges to a stationary point of a regularized loss $L ( \theta ) + \lambda R ( \theta )$ , where $L ( \theta )$ is the training loss, $\lambda$ is an effective regularization parameter depending on the step size, strength of the label noise, and the batch size, and $R ( \theta )$ is an explicit regularizer that penalizes sharp minimizers. Our analysis uncovers an additional regularization effect of large learning rates beyond the linear scaling rule that penalizes large eigenvalues of the Hessian more than small ones. We also prove extensions to classification with general loss functions, significantly strengthening the prior work of Blanc et al. [3] to global convergence and large learning rates and of HaoChen et al. [12] to general models.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
One of the central questions in modern machine learning theory is the generalization capability of overparametrized models trained by stochastic gradient descent (SGD). Recent work identifies the implicit regularization effect due to the optimization algorithm as one key factor in explaining the generalization of overparameterized models [27, 11, 19, 10]. This implicit regularization is controlled by many properties of the optimization algorithm including search direction [11], learning rate [20], batch size [26], momentum [21] and dropout [22].
|
| 16 |
+
|
| 17 |
+
The parameter-dependent noise distribution in SGD is a crucial source of regularization [16, 18]. Blanc et al. [3] initiated the study of the regularization effect of label noise SGD with square loss1 by characterizing the local stability of global minimizers of the training loss. By identifying a data-dependent regularizer $R ( \theta )$ , Blanc et al. [3] proved that label noise SGD locally diverges from the global minimizer $\theta ^ { * }$ if and only if $\theta ^ { * }$ is not a first-order stationary point of minθ $R ( \theta )$ subject to $\bar { \cal L ( \theta ) } = 0$ . The analysis is only able to demonstrate that with sufficiently small step size $\eta$ , label noise SGD initialized at $\theta ^ { * }$ locally diverges by a distance of $\eta ^ { 0 . 4 }$ and correspondingly decreases the regularizer by $\eta ^ { 0 . 4 }$ . This is among the first results that establish that the noise distribution alters the local stability of stochastic gradient descent. However, the parameter movement of $\eta ^ { 0 . 4 }$ is required to be inversely polynomially small in dimension and condition number and is thus too small to affect the predictions of the model.
|
| 18 |
+
|
| 19 |
+
HaoChen et al. [12], motivated by the local nature of Blanc et al. [3], analyzed label noise SGD in the quadratically-parametrized linear regression model [29, 32, 23]. Under a well-specified sparse linear regression model and with isotropic features, HaoChen et al. [12] proved that label noise SGD recovers the sparse ground-truth despite overparametrization, which demonstrated a global implicit bias towards sparsity in the quadratically-parametrized linear regression model.
|
| 20 |
+
|
| 21 |
+
This work seeks to identify the global implicit regularization effect of label noise SGD. Our primary result, which supports Blanc et al. [3], proves that label noise SGD converges to a stationary point of $L ( \theta ) + \lambda R ( \theta )$ , where the regularizer $R ( \theta )$ penalizes sharp regions of the loss landscape.
|
| 22 |
+
|
| 23 |
+
The focus of this paper is on label noise SGD due to its strong regularization effects in both real and synthetic experiments [25, 28, 31]. Furthermore, label noise is used in large-batch training as an additional regularizer [25] when the regularization from standard regularizers (e.g. mini-batch, batch-norm, and dropout) is not sufficient. Label noise SGD is also known to be less sensitive to initialization, as shown in HaoChen et al. [12]. In stark contrast, mini-batch SGD remains stuck when initialized at any poor global minimizer. Our analysis demonstrates a global regularization effect of label noise SGD by proving it converges to a stationary point of a regularized loss $L ( \theta ) + \lambda R ( \theta )$ , even when initialized at a zero error global minimum.
|
| 24 |
+
|
| 25 |
+
The learning rate and minibatch size in SGD are known to be important sources of regularization [9]. Our main theorem highlights the importance of learning rate and batch size as the hyperparameters that control the balance between the loss and the regularizer – larger learning rates and smaller batch sizes lead to stronger regularization.
|
| 26 |
+
|
| 27 |
+
Section 2 reviews the notation and assumptions used throughout the paper. Section 2.4 formally states the main result and Section 3 sketches the proof. Section 4 presents experimental results which support our theory. Finally, Section 6 discusses the implications of this work.
|
| 28 |
+
|
| 29 |
+
# 2 Problem Setup and Main Result
|
| 30 |
+
|
| 31 |
+
Section 2.1 describes our notation and the SGD with label noise algorithm. Section 2.2 introduces the explicit formula for the regularizer $R ( \theta )$ . Sections 2.3 and 2.4 formally state our main result.
|
| 32 |
+
|
| 33 |
+
# 2.1 Notation
|
| 34 |
+
|
| 35 |
+
We focus on the regression setting (see Appendix $\mathrm { E }$ for the extension to the classification setting). Let $\{ ( x _ { i } , y _ { i } ) \} _ { i \in [ n ] }$ be $n$ datapoints with $x _ { i } \in \mathcal { D }$ and $y _ { i } \in \mathbb { R }$ . Let $f : \mathcal { D } \times \mathbb { R } ^ { d } \to \mathbb { R }$ and let $f _ { i } ( \theta ) = f ( x _ { i } , \theta )$ denote the value of $f$ on the datapoint $x _ { i }$ . Define $\begin{array} { r } { \ell _ { i } ( \theta ) = \frac { 1 } { 2 } \left( f _ { i } ( \theta ) - y _ { i } \right) ^ { 2 } } \end{array}$ and $\begin{array} { r } { L ( \theta ) = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \ell _ { i } ( \theta ) } \end{array}$ Then we will follow Algorithm 1 which adds fresh additive noise to the labels $y _ { i }$ at every step before computing the gradient:
|
| 36 |
+
|
| 37 |
+
# Algorithm 1: SGD with Label Noise
|
| 38 |
+
|
| 39 |
+
<table><tr><td>Input: 0o,step size n, noise variance g²,batch size B,steps T fork=0toT-1do</td></tr><tr><td>Sample batch B(k) C[n}B uniformly and label noise e(𝑘)~{-σ,σ} for i ∈ B(𝑘).</td></tr><tr><td>Lete((0)=2(() -y - () and L(k)= B∑i∈B(k) ).</td></tr><tr><td></td></tr><tr><td>0k+1←0k-n∀L(k)(0k)</td></tr><tr><td>end</td></tr></table>
|
| 40 |
+
|
| 41 |
+
Note that $\sigma$ controls the strength of the label noise and will control the strength of the implicit regularization in Theorem 1. Throughout the paper we will use $\| \cdot \| = \| \cdot \| _ { 2 }$ . We make the following standard assumption on $f$ :
|
| 42 |
+
|
| 43 |
+
Assumption 1 (Smoothness). We assume that each $f _ { i }$ is $\ell _ { f }$ -Lipschitz, $\nabla f _ { i }$ is $\rho _ { f }$ -Lipschitz, and $\nabla ^ { 2 } f _ { i }$ is $\kappa _ { f }$ -Lipschitz with respect to $\parallel \cdot \parallel _ { 2 } f o r i = 1 , \ldots , n$ .
|
| 44 |
+
|
| 45 |
+
We will define $\ell = \ell _ { f } ^ { 2 }$ to be an upper bound on $\begin{array} { r } { \| \frac { 1 } { n } \sum _ { i } \nabla f _ { i } ( \theta ) \nabla f _ { i } ( \theta ) ^ { T } \| _ { 2 } } \end{array}$ , which is equal to $\| \nabla ^ { 2 } L ( \theta ) \| _ { 2 }$ at any global minimizer $\theta$ . Our results extend to any learning rate $\eta \in ( 0 , \frac { 2 } { \ell } )$ . However, they do not extend to the limit as $\begin{array} { r } { \eta \to \frac { 2 } { \ell } } \end{array}$ . Because we still want to track the dependence on $\frac { 1 } { \eta }$ , we do not assume $\eta$ is a fixed constant and instead assume some constant separation:
|
| 46 |
+
|
| 47 |
+
Assumption 2 (Learning Rate Separation). There exists a constant $\nu \in ( 0 , 1 )$ such that $\begin{array} { r } { \eta \le \frac { 2 - \nu } { \ell } } \end{array}$
|
| 48 |
+
|
| 49 |
+
In addition, we make the following local Kurdyka-Łojasiewicz assumption (KL assumption) which ensures that there are no regions where the loss is very flat. The KL assumption is very general and holds for some $\delta > 0$ for any analytic function defined on a compact domain (see Lemma 17).
|
| 50 |
+
|
| 51 |
+
Assumption 3 (KL). Let $\theta ^ { * }$ be any global minimizer of $L$ . Then there exist $\epsilon _ { K L } > 0 , \mu > 0$ and $0 < \delta \le 1 / 2$ such that if $L ( \theta ) - L ( \theta ^ { * } ) \leq \epsilon _ { K L } ,$ , then $L ( \theta ) - L ( \theta ^ { * } ) \leq \mu \| \nabla L ( \theta ) \| ^ { 1 + \delta }$ .
|
| 52 |
+
|
| 53 |
+
We assume $L ( \theta ^ { * } ) = 0$ for any global minimizer $\theta ^ { * }$ . Note that if $L$ satisfies Assumption 3 for some $\delta$ then it also satisfies Assumption 3 for any $\delta ^ { \prime } < \delta$ . Assumption 3 with $\delta = 1$ is equivalent to the much stronger Polyak-Łojasiewicz condition which is equivalent to local strong convexity.
|
| 54 |
+
|
| 55 |
+
We will use $O , \Theta , \Omega$ to hide any polynomial dependence on $\mu , \ell _ { f } , \rho _ { f } , \kappa _ { f } , \nu , 1 / \sigma , n , d$ and $\tilde { O }$ to hide additional polynomial dependence on $\log { 1 / \eta } , \log { B }$ .
|
| 56 |
+
|
| 57 |
+
# 2.2 The Implicit Regularizer $R ( \theta )$
|
| 58 |
+
|
| 59 |
+
For $L , \sigma ^ { 2 } , B , \eta$ as defined above, we define the implicit regularizer $R ( \theta )$ , the effective regularization parameter $\lambda$ , and the regularized loss $\tilde { L } ( \theta )$ :
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
R ( \theta ) = - \frac { 1 } { 2 \eta } \mathrm { t r } \log \left( 1 - \frac { \eta } { 2 } \nabla ^ { 2 } L ( \theta ) \right) , \qquad \lambda = \frac { \eta \sigma ^ { 2 } } { B } , \qquad \tilde { L } ( \theta ) = L ( \theta ) + \lambda R ( \theta ) .
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
Here log refers to the matrix logarithm. To better understand the regularizer $R ( \theta )$ , let $\lambda _ { 1 } , \ldots , \lambda _ { d }$ be the eigenvalues of $\nabla ^ { 2 } L ( \theta )$ and let $\begin{array} { r } { R ( \lambda _ { i } ) = - \frac { 1 } { 2 \eta } \log ( 1 - \frac { \eta \lambda _ { i } } { 2 } ) } \end{array}$ . Then,
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
R ( \theta ) = \sum _ { i = 1 } ^ { d } R ( \lambda _ { i } ) = \sum _ { i = 1 } ^ { d } \left( \frac { \lambda _ { i } } { 4 } + \frac { \eta \lambda _ { i } ^ { 2 } } { 1 6 } + \frac { \eta ^ { 2 } \lambda _ { i } ^ { 3 } } { 4 8 } + . . . \right) .
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
In the limit as $\eta 0$ , $R ( \theta ) \to { \textstyle { \frac { 1 } { 4 } } } \mathrm { t r } \nabla ^ { 2 } L ( \theta )$ , which matches the regularizer in Blanc et al. [3] for infinitesimal learning rate near a global minimizer. However, in additional to the linear scaling rule, which is implicit in our definition of $\lambda$ , our analysis uncovers an additional regularization effect of large learning rates that penalizes larger eigenvalues more than smaller ones (see Figure 1 and Section 6.1).
|
| 72 |
+
|
| 73 |
+
The goal of this paper is to show that Algorithm 1 converges to a stationary point of the regularized loss $\tilde { L } = L + \lambda R$ . In particular, we will show convergence to an $( \epsilon , \gamma )$ -stationary point, which is defined in the next section.
|
| 74 |
+
|
| 75 |
+

|
| 76 |
+
Figure 1: Regularization strength as a function of $\eta$
|
| 77 |
+
|
| 78 |
+
# 2.3 $( \epsilon , \gamma )$ -Stationary Points
|
| 79 |
+
|
| 80 |
+
We begin with the standard definition of an approximate stationary point:
|
| 81 |
+
|
| 82 |
+
Definition 1 ( $\epsilon$ -stationary point). $\theta$ is an $\epsilon$ -stationary point of $f i f \| \nabla f ( \theta ) \| \leq \epsilon .$
|
| 83 |
+
|
| 84 |
+
In stochastic gradient descent it is often necessary to allow λ = ησ2B to scale with $\epsilon$ to reach an $\epsilon$ -stationary point [8, 15] (e.g., $\lambda$ may need to be less than $\epsilon ^ { 2 }$ ). However, for $\lambda = { \cal O } ( \epsilon )$ , any local minimizer $\theta ^ { * }$ is an $\epsilon \cdot$ -stationary point of $\tilde { L } = L + \lambda R$ . Therefore, reaching a $\epsilon$ -stationary point of $\tilde { L }$ would be equivalent to finding a local minimizer and would not be evidence for implicit regularization. To address this scaling issue, we consider the rescaled regularized loss:
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
\frac { 1 } { \lambda } \tilde { L } = \frac { 1 } { \lambda } L + R .
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+

|
| 91 |
+
Figure 2: Local Coupling: We decompose $\theta$ as the sum of a regularized trajectory $\Phi _ { \tau _ { 1 } } ( \theta _ { 0 } ^ { * } )$ , a mean zero oscillating process $\xi _ { \tau _ { 1 } }$ , and an error term $\Delta _ { 1 }$ . Global Convergence: We repeat the coupling with a sequence of reference points $\{ \theta _ { m } ^ { * } \} _ { m }$ to prove convergence to a stationary point of $\textstyle { \frac { 1 } { \lambda } } { \tilde { L } }$ .
|
| 92 |
+
|
| 93 |
+
Reaching an $\epsilon$ -stationary point of $\textstyle { \frac { 1 } { \lambda } } { \tilde { L } }$ requires non-trivially taking the regularizer $R$ into account. However, it is not possible for Algorithm 1 to reach an $\epsilon$ -stationary point of $\textstyle { \frac { 1 } { \lambda } } { \tilde { L } }$ even in the ideal setting when $\theta$ is initialized near a global minimizer $\theta ^ { * }$ of $\tilde { L }$ . The label noise will cause fluctuations of order $\sqrt { \lambda }$ around $\theta ^ { * }$ (see section 3) so $\Vert \nabla L \Vert$ will remain around $\sqrt { \lambda }$ . This causes $\scriptstyle { \frac { 1 } { \lambda } } \nabla L$ to become unbounded for $\lambda$ (and therefore $\epsilon$ ) sufficiently small, and thus Algorithm 1 cannot converge to an $\epsilon$ -stationary point. We therefore prove convergence to an $( \epsilon , \gamma )$ -stationary point:
|
| 94 |
+
|
| 95 |
+
Definition 2 $( ( \epsilon , \gamma )$ -stationary point). $\theta$ is an $( \epsilon , \gamma )$ -stationary point of $f$ if there exists some $\theta ^ { * }$ such that $\| \nabla f ( \theta ^ { * } ) \| \le \epsilon$ and $\lVert \theta - \theta ^ { * } \rVert \leq \gamma$ .
|
| 96 |
+
|
| 97 |
+
Intuitively, Algorithm 1 converges to an $( \epsilon , \gamma )$ -stationary point when it converges to a neighborhood of some $\epsilon$ -stationary point $\theta ^ { * }$ .
|
| 98 |
+
|
| 99 |
+
# 2.4 Main Result
|
| 100 |
+
|
| 101 |
+
Having defined an $( \epsilon , \gamma )$ -stationary point we can now state our main result:
|
| 102 |
+
|
| 103 |
+
Theorem 1. Assume that $f$ satisfies Assumption $I , ~ \eta$ satisfies Assumption 2, and $L$ satisfies Assumption $3$ , i.e. $L ( \theta ) \ \overset { \cdot } { \leq } \ \mu \Vert \dot { \nabla } L ( \theta ) \Vert ^ { 1 + \delta }$ for $L ( \theta ) ~ \le ~ \epsilon _ { K L }$ . Let $\eta , B$ be chosen such that $\begin{array} { r } { \lambda : = \frac { \eta \sigma ^ { 2 } } { B } = \tilde { \Theta } ( \operatorname* { m i n } ( \epsilon ^ { 2 / \delta } , \gamma ^ { 2 } ) ) } \end{array}$ , and let $T = \tilde { \Theta } ( \eta ^ { - 1 } \lambda ^ { - 1 - \delta } ) = \mathrm { p o l y } ( \eta ^ { - 1 } , \gamma ^ { - 1 } )$ . Assume that $\theta$ is initialized within $O ( \sqrt { \lambda ^ { 1 + \delta } } )$ of some $\theta ^ { * }$ satisfying $L ( \theta ^ { * } ) = O ( \lambda ^ { 1 + \delta } )$ . Then for any $\zeta \in ( 0 , 1 )$ , with probability at least $1 - \zeta$ , if $\{ \theta _ { k } \}$ follows Algorithm $^ { l }$ with parameters $\eta , \sigma , T ,$ , there exists $k < T$ such that $\theta _ { k }$ is an $( \epsilon , \gamma )$ -stationary point of $\textstyle { \frac { 1 } { \lambda } } { \tilde { L } }$ .
|
| 104 |
+
|
| 105 |
+
Theorem 1 guarantees that Algorithm 1 will hit an $( \epsilon , \gamma )$ -stationary point of $\textstyle { \frac { 1 } { \lambda } } { \tilde { L } }$ within a polynomial number of steps in $\epsilon ^ { - 1 } , \gamma ^ { - 1 }$ . In particular, when $\begin{array} { r } { \delta = \frac { 1 } { 2 } } \end{array}$ , Theorem 1 guarantees convergence within ${ \tilde { O } } ( \epsilon ^ { - 6 } + \gamma ^ { - 3 } )$ steps. The condition that $\theta _ { 0 }$ is close to an approximate global minimizer $\theta ^ { * }$ is not a strong assumption as recent methods have shown that overparameterized models can easily achieve zero training loss in the kernel regime (see Appendix C). However, in practice these minimizers of the training loss generalize poorly [1]. Theorem 1 shows that Algorithm 1 can then converge to a stationary point of the regularized loss which has better generalization guarantees (see Section 6.2). Theorem 1 also generalizes the local analysis in Blanc et al. [3] to a global result with weaker assumptions on the learning rate $\eta$ . For a full comparison with Blanc et al. [3], see section 3.1.
|
| 106 |
+
|
| 107 |
+
# 3 Proof Sketch
|
| 108 |
+
|
| 109 |
+
The proof of convergence to an $( \epsilon , \varphi )$ -stationary point of $\textstyle { \frac { 1 } { \lambda } } { \tilde { L } }$ has two components. In Section 3.1, we pick a reference point $\theta ^ { * }$ and analyze the behavior of Algorithm 1 in a neighborhood of $\theta ^ { * }$ . In Section 3.2, we repeat this local analysis with a sequence of reference points $\{ \bar { \theta } _ { m } ^ { * } \}$ .
|
| 110 |
+
|
| 111 |
+
# 3.1 Local Coupling
|
| 112 |
+
|
| 113 |
+
Let $\Phi _ { k } ( \cdot )$ denote $k$ steps of gradient descent on the regularized loss $\tilde { L }$ , i.e.
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
\Phi _ { 0 } ( \theta ) = \theta \qquad \mathrm { a n d } \qquad \Phi _ { k + 1 } ( \theta ) = \Phi _ { k } ( \theta ) - \eta \nabla \tilde { L } ( \Phi _ { k } ( \theta ) ) ,
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
where $\tilde { L } ( \theta ) = L ( \theta ) + \lambda R ( \theta )$ is the regularized loss defined in Equation (1). Lemma 1 states that if $\theta$ is initialized at an approximate global minimizer $\theta ^ { * }$ and follows Algorithm 1, there is a small mean zero random process $\xi$ such that $\theta _ { k } \approx \Phi _ { k } ( \theta ^ { * } ) + \xi _ { k }$ :
|
| 120 |
+
|
| 121 |
+
# Lemma 1. Let
|
| 122 |
+
|
| 123 |
+
$$
|
| 124 |
+
\iota = c \log \frac { d } { \lambda \zeta } , \quad \mathcal { X } = \sqrt { \frac { 2 \lambda n d \iota } { \nu } } , \quad \mathcal { L } = c \lambda ^ { 1 + \delta } , \quad \mathcal { D } = c \sqrt { \mathcal { L } } \iota , \quad \mathcal { M } = \frac { \mathcal { D } } { \nu } , \quad \mathcal { T } = \frac { 1 } { c ^ { 2 } \eta \mathcal { X } \iota } ,
|
| 125 |
+
$$
|
| 126 |
+
|
| 127 |
+
where c is a sufficiently large constant. Assume $f$ satisfies Assumption $I$ and $\eta$ satisfies Assumption 2. Let θ follow Algorithm $^ { l }$ starting at $\theta ^ { * }$ and assume that $L ( \theta ^ { * } ) \leq \mathcal { L }$ for some $0 < \delta \le 1 / 2$ . Then there exists a random process $\{ \xi _ { k } \}$ such that for any $\tau \leq \mathcal { T }$ satisfying $\begin{array} { r } { \operatorname* { m a x } _ { k \leq \tau } \| \Phi _ { k } ( \theta ^ { * } ) - \theta ^ { * } \| \leq 8 \mathcal { M } , } \end{array}$ , with probability at least $1 - 1 0 d \tau e ^ { - \iota }$ we have simultaneously for all $k \leq \tau$ ,
|
| 128 |
+
|
| 129 |
+
$$
|
| 130 |
+
\begin{array} { r } { \| \theta _ { k } - \xi _ { k } - \Phi _ { k } ( \theta ^ { * } ) \| \le \mathcal { D } , \qquad \mathbb { E } [ \xi _ { k } ] = 0 , \qquad a n d \qquad \| \xi _ { k } \| \le \mathcal { X } . } \end{array}
|
| 131 |
+
$$
|
| 132 |
+
|
| 133 |
+
Note that because $\mathcal { M } \geq \mathcal { D }$ , the error term $\mathcal { D }$ is at least 8 times smaller than the movement in the direction of the regularized trajectory $\Phi _ { \tau } ( \theta ^ { * } )$ , which will allow us to prove convergence to an $( \epsilon , \gamma )$ -stationary point of $\textstyle { \frac { 1 } { \lambda } } { \tilde { L } }$ in Section 3.2.
|
| 134 |
+
|
| 135 |
+
Toward simplifying the update in Algorithm 1, we define $L ^ { ( k ) }$ to be the true loss without label noise on batch $B ^ { ( k ) }$ . The label-noise update $\hat { L } ^ { ( k ) } ( \theta _ { k } )$ is an unbiased perturbation of the mini-batch update: $\begin{array} { r } { \nabla \hat { L } ^ { ( k ) } ( \theta _ { k } ) = \nabla L ^ { ( k ) } ( \theta _ { k } ) - \frac { 1 } { B } \sum _ { i \in \mathcal { B } ^ { ( k ) } } \epsilon _ { i } ^ { ( k ) } \nabla f _ { i } ( \theta _ { k } ) } \end{array}$ (k)i ∇fi(θk). We decompose the update rule into three parts:
|
| 136 |
+
|
| 137 |
+
$$
|
| 138 |
+
\theta _ { k + 1 } = \theta _ { k } - \underbrace { \eta \nabla L ( \theta _ { k } ) } _ { \mathrm { g r a d i e n t \ d e s c e n t } } - \underbrace { \eta [ \nabla L ^ { ( k ) } ( \theta _ { k } ) - \nabla L ( \theta _ { k } ) ] } _ { \mathrm { m i n i b a t e h \ n o i s e } } + \underbrace { \eta \sum _ { i } \epsilon _ { i } ^ { ( k ) } \nabla f _ { i } ( \theta _ { k } ) } _ { \substack { \mathrm { i } \in \mathcal { B } ^ { ( k ) } } } .
|
| 139 |
+
$$
|
| 140 |
+
|
| 141 |
+
Let $m _ { k } = - \eta [ \nabla L ^ { ( k ) } ( \theta _ { k } ) - \nabla L ( \theta _ { k } ) ]$ denote the minibatch noise. Throughout the proof we will show that the minibatch noise is dominated by the label noise. We will also decompose the label noise into two terms. The first, $\epsilon _ { k } ^ { * }$ , will represent the label noise if the gradient were evaluated at $\theta ^ { * }$ whose distribution does not vary with $k$ . The other term, $z _ { k }$ represents the change in the noise due to evaluating the gradient at $\theta _ { k }$ rather than $\theta ^ { * }$ . More precisely, we have
|
| 142 |
+
|
| 143 |
+
$$
|
| 144 |
+
\epsilon _ { k } ^ { * } = \frac { \eta } { B } \sum _ { i \in \mathcal { B } ^ { ( k ) } } \epsilon _ { i } ^ { ( k ) } \nabla f _ { i } ( \theta ^ { * } ) \qquad \mathrm { a n d } \qquad z _ { k } = \frac { \eta } { B } \sum _ { i \in \mathcal { B } ^ { ( k ) } } \epsilon _ { i } ^ { ( k ) } [ \nabla f _ { i } ( \theta _ { k } ) - \nabla f _ { i } ( \theta ^ { * } ) ] .
|
| 145 |
+
$$
|
| 146 |
+
|
| 147 |
+
We define $\begin{array} { r } { G ( \theta ) = \frac { 1 } { n } \sum _ { i } \nabla f _ { i } ( \theta ) \nabla f _ { i } ( \theta ) ^ { T } } \end{array}$ to be the covariance of the model gradients. Note that $\epsilon _ { k } ^ { * }$ has covariance $\eta \lambda \dot { G } ( \theta ^ { \ast } )$ . To simplify notation in the Taylor expansions, we will use the following shorthand to refer to various quantities evaluated at $\theta ^ { * }$ :
|
| 148 |
+
|
| 149 |
+
$$
|
| 150 |
+
G = G ( \theta ^ { * } ) , \qquad \nabla ^ { 2 } L = \nabla ^ { 2 } L ( \theta ^ { * } ) , \qquad \nabla ^ { 3 } L = \nabla ^ { 3 } L ( \theta ^ { * } ) , \qquad \nabla R = \nabla R ( \theta ^ { * } ) .
|
| 151 |
+
$$
|
| 152 |
+
|
| 153 |
+
First we need the following standard decompositions of the Hessian:
|
| 154 |
+
|
| 155 |
+
Proposition 1. For any $\theta \in \mathbb { R } ^ { d }$ we can decompose $\nabla ^ { 2 } L ( \theta ) = G ( \theta ) + E ( \theta )$ where $E ( \theta ) =$ $\begin{array} { r } { \frac { 1 } { n } \sum _ { i = 1 } ^ { n } ( f _ { i } ( \theta ) - y _ { i } ) \nabla ^ { 2 } f _ { i } ( \theta ) } \end{array}$ satisfies $\lVert E ( { \boldsymbol { \theta } } ) \rVert \leq \sqrt { 2 \rho _ { f } L ( { \boldsymbol { \theta } } ) }$ where $\rho _ { f }$ is defined in Assumption $^ { l }$ .
|
| 156 |
+
|
| 157 |
+
The matrix $G$ in Proposition 1 is known as the Gauss-Newton term of the Hessian. We can now Taylor expand Algorithm 1 and Equation (2) to first order around $\theta ^ { * }$ :
|
| 158 |
+
|
| 159 |
+
$$
|
| 160 |
+
\begin{array} { c } { { \Phi _ { k + 1 } \bigl ( \theta ^ { * } \bigr ) \approx \Phi _ { k } \bigl ( \theta ^ { * } \bigr ) - \eta \bigl [ \nabla L + \nabla ^ { 2 } L \bigl ( \Phi _ { k } \bigl ( \theta ^ { * } \bigr ) - \theta ^ { * } \bigr ) \bigr ] , } } \\ { { \theta _ { k + 1 } \approx \theta _ { k } - \eta \bigl [ \nabla L + \nabla ^ { 2 } L \bigl ( \theta _ { k } - \theta ^ { * } \bigr ) \bigr ] + \epsilon _ { k } ^ { * } . } } \end{array}
|
| 161 |
+
$$
|
| 162 |
+
|
| 163 |
+
We define $v _ { k } = \theta _ { k } - \Phi _ { k } ( \theta ^ { * } )$ to be the deviation from the regularized trajectory. Then subtracting these two equations gives
|
| 164 |
+
|
| 165 |
+
$$
|
| 166 |
+
v _ { k + 1 } \approx ( I - \eta \nabla ^ { 2 } L ) v _ { k } + \epsilon _ { k } ^ { * } \approx ( I - \eta G ) v _ { k } + \epsilon _ { k } ^ { * } ,
|
| 167 |
+
$$
|
| 168 |
+
|
| 169 |
+
where we used Proposition 1 to replace $\nabla ^ { 2 } L$ with $G$ . Temporarily ignoring the higher order terms, we define the random process $\xi$ by
|
| 170 |
+
|
| 171 |
+
$$
|
| 172 |
+
\xi _ { k + 1 } = ( I - \eta G ) \xi _ { k } + \epsilon _ { k } ^ { * } \qquad \mathrm { a n d } \qquad \xi _ { 0 } = 0 .
|
| 173 |
+
$$
|
| 174 |
+
|
| 175 |
+
The process $\xi$ is referred to as an Ornstein Uhlenbeck process and it encodes the movement of $\theta$ to first order around $\theta ^ { * }$ . We defer the proofs of the following properties of $\xi$ to Appendix B:
|
| 176 |
+
|
| 177 |
+
Proposition 2. For any $k \geq 0$ , with probability at least $1 - 2 d e ^ { - \iota }$ , $\| \xi _ { k } \| \le \mathcal { X }$ . In addition, as $k \to \infty$ , $\mathbb { E } [ \xi _ { k } \xi _ { k } ^ { T } ] \lambda \dot { \Pi _ { G } } ( 2 - \eta G ) ^ { - 1 }$ where $\Pi _ { G }$ is the projection onto the span of $G$ .
|
| 178 |
+
|
| 179 |
+
We can now analyze the effect of $\xi _ { k }$ on the second order Taylor expansion. Let $r _ { k } = \theta _ { k } - \Phi _ { k } ( \theta ^ { * } ) - \xi _ { k }$ be the deviation of $\theta$ from the regularized trajectory after removing the Ornstein Uhlenbeck process $\xi$ . Lemma 1 is equivalent to $\mathrm { P r } [ \| r _ { \tau } \| \geq \mathcal { D } ] \stackrel { . } { \leq } 1 0 \tau \dot { d } e ^ { - \iota }$ .
|
| 180 |
+
|
| 181 |
+
We will prove by induction that $\| r _ { k } \| \le \mathcal { D }$ for all $k \leq t$ with probability at least $1 - 1 0 t d e ^ { - \iota }$ for all $t \leq \tau$ . The base case follows from $r _ { 0 } = 0$ so assume the result for some $t \geq 0$ . The remainder of this section will be conditioned on the event $\| r _ { k } \| \le \mathcal { D }$ for all $k \leq t . { \cal O } ( \cdot )$ notation will only be used to hide absolute constants that do not change with $t$ and will additionally not hide dependence on the absolute constant $c$ . The following proposition fills in the missing second order terms in the Taylor expansion around $\theta ^ { * }$ of $r _ { k }$ :
|
| 182 |
+
|
| 183 |
+
Proposition 3. With probability at least $1 - 2 d e ^ { - \iota }$ ,
|
| 184 |
+
|
| 185 |
+
$$
|
| 186 |
+
r _ { k + 1 } = ( I - \eta G ) r _ { k } - \eta \left[ \frac { 1 } { 2 } \nabla ^ { 3 } L ( \xi _ { k } , \xi _ { k } ) - \lambda \nabla R \right] + m _ { k } + z _ { k } + \tilde { O } \left( c ^ { 5 / 2 } \eta \lambda ^ { 1 + \delta } \right)
|
| 187 |
+
$$
|
| 188 |
+
|
| 189 |
+
The intuition for the implicit regularizer $R ( \theta )$ is that by Propositions 1 and 2,
|
| 190 |
+
|
| 191 |
+
$$
|
| 192 |
+
\begin{array} { r } { \mathbb { E } [ \xi _ { k } \xi _ { k } ^ { T } ] \to \Pi _ { G } \lambda ( 2 - \eta G ) ^ { - 1 } \approx \lambda ( 2 - \eta \nabla ^ { 2 } L ) ^ { - 1 } . } \end{array}
|
| 193 |
+
$$
|
| 194 |
+
|
| 195 |
+
Therefore, when averaged over long timescales,
|
| 196 |
+
|
| 197 |
+
$$
|
| 198 |
+
\operatorname { \mathbb { E } } [ \nabla ^ { 3 } L ( \xi _ { k } , \xi _ { k } ) ] \approx \frac { \lambda } { 2 } \nabla ^ { 3 } L \left[ ( 2 - \eta \nabla ^ { 2 } L ) ^ { - 1 } \right] = \lambda \nabla \left[ - \frac { 1 } { 2 \eta } \operatorname { t r } \log \left( 1 - \frac { \eta } { 2 } \nabla ^ { 2 } L ( \theta ) \right) \right] \bigg | _ { \theta = \theta ^ { * } } = \lambda \nabla R .
|
| 199 |
+
$$
|
| 200 |
+
|
| 201 |
+
The second equality follows from the more general equality that for any matrix function $A$ and any scalar function $h$ that acts independently on each eigenvalue, $\nabla ( \mathrm { t r } h ( A ( \theta ) ) ) = ( \nabla A ( \theta ) ) ( h ^ { \prime } ( A ( \theta ) ) )$ which follows from the chain rule. The above equality is the special case when $A ( \theta ) = \nabla ^ { 2 } L ( \theta )$ and $\begin{array} { r } { h ( x ) = - \frac { 1 } { \eta } \log { \left( 1 - \frac { \eta } { 2 } x \right) } } \end{array}$ , which satisfies $\begin{array} { r } { h ^ { \prime } ( x ) = \frac { 1 } { 2 - \eta x } } \end{array}$ .
|
| 202 |
+
|
| 203 |
+
The remaining details involve concentrating the mean zero error terms $m _ { k } , z _ { k }$ and showing that $\mathbb { E } [ \xi _ { k } \xi _ { k } ^ { T } ]$ does concentrate in the directions with large eigenvalues and that the directions with small eigenvalues, in which the covariance does not concentrate, do not contribute much to the error. This yields the following bound:
|
| 204 |
+
|
| 205 |
+
Proposition 4. With probability at least $1 - 1 0 d e ^ { - \iota }$ , $\begin{array} { r } { \| r _ { t + 1 } \| = \tilde { O } \Big ( \frac { \lambda ^ { 1 / 2 + \delta / 2 } } { \sqrt { c } } \Big ) . } \end{array}$
|
| 206 |
+
|
| 207 |
+
The proof of Proposition 4 can be found in Appendix B. Finally, because $\mathcal { D } = \tilde { O } ( c ^ { 5 / 2 } \lambda ^ { 1 / 2 + \delta / 2 } )$ , $\| r _ { t + 1 } \| \leq \mathcal { D }$ for sufficiently large $c$ . This completes the induction and the proof of Lemma 1.
|
| 208 |
+
|
| 209 |
+
Comparison with Blanc et al. [3] Like Blanc et al. [3], Lemma 1 shows that $\theta$ locally follows the trajectory of gradient descent on an implicit regularizer $R ( \theta )$ . However, there are a few crucial differences:
|
| 210 |
+
|
| 211 |
+
• Because we do not assume we start near a global minimizer where $L \ = \ 0$ , we couple to a regularized loss $\tilde { L } = L + \lambda R$ rather than just the regularizer $R ( \theta )$ . In this setting there is an additional correction term to the Hessian (Proposition 1) that requires carefully controlling the value of the loss across reference points to prove convergence to a stationary point. • The analysis in Blanc et al. [3] requires $\eta , \tau$ to be chosen in terms of the condition number of $\nabla ^ { 2 } L$ which can quickly grow during training as $\nabla ^ { 2 } L$ is changing. This makes it impossible to directly repeat the argument. We avoid this by precisely analyzing the error incurred by small eigenvalues, allowing us to prove convergence to an $( \epsilon , \gamma )$ stationary point of $\textstyle { \frac { 1 } { \lambda } } { \tilde { L } }$ for fixed $\eta , \lambda$ even if the smallest nonzero eigenvalue of $\nabla ^ { 2 } L$ converges to 0 during training. Unlike in Blanc et al. [3], we do not require the learning rate $\eta$ to be small. Instead, we only require that $\lambda$ scales with $\epsilon$ which can be accomplished either by decreasing the learning rate $\eta$ or increasing the batch size $B$ . This allows for stronger implicit regularization in the setting when $\eta$ is large (see Section 6.1). In particular, our regularizer $R ( \theta )$ changes with $\eta$ and is only equal to the regularizer in Blanc et al. [3] in the limit $\eta 0$ .
|
| 212 |
+
|
| 213 |
+
# 3.2 Global Convergence
|
| 214 |
+
|
| 215 |
+
In order to prove convergence to an $( \epsilon , \gamma )$ -stationary point of $\begin{array} { r l } { { \frac { 1 } { \eta } \nabla \tilde { L } } } & { { } } \end{array}$ , we will define a sequence of reference points $\theta _ { m } ^ { * }$ and coupling times $\{ \tau _ { m } \}$ and repeatedly use a version of Lemma 1 to describe the long term behavior of $\theta$ . For notational simplicity, given a sequence of coupling times $\{ \tau _ { m } \}$ , define $\begin{array} { r } { \bar { T } _ { m } = \sum _ { k < m } \tau _ { k } } \end{array}$ to be the total number of steps until we have reached the reference point $\theta _ { m } ^ { * }$
|
| 216 |
+
|
| 217 |
+
To be able to repeat the local analysis in Lemma 1 with multiple reference points, we need a more general coupling lemma that allows the random process $\xi$ defined in each coupling to continue where the random process in the previous coupling ended. To accomplish this, we define $\xi$ outside the scope of the local coupling lemma:
|
| 218 |
+
|
| 219 |
+
Definition 3. Given a sequence of reference points $\{ \theta _ { m } ^ { * } \}$ and a sequence of coupling times $\{ \tau _ { m } \}$ , we define the random process $\xi$ by $\xi _ { 0 } = 0$ , and for $k \in [ T _ { m } , T _ { m + 1 } )$ ,
|
| 220 |
+
|
| 221 |
+
$$
|
| 222 |
+
\epsilon _ { k } ^ { * } = \frac { \eta } { B } \sum _ { i \in \mathcal { B } ^ { ( k ) } } \epsilon _ { i } ^ { ( k ) } \nabla f _ { i } ( \theta _ { m } ^ { * } ) \qquad a n d \qquad \xi _ { k + 1 } = ( I - \eta G ( \theta _ { m } ^ { * } ) ) \xi _ { k } + \epsilon _ { k } ^ { * } .
|
| 223 |
+
$$
|
| 224 |
+
|
| 225 |
+
Then we can prove the following more general coupling lemma:
|
| 226 |
+
|
| 227 |
+
Lemma 2. Let $\mathcal { X } , \mathcal { L } , \mathcal { D } , \mathcal { M } , \mathcal { T }$ be defined as in Lemma $^ { l }$ . Assume $f$ satisfies Assumption $^ { l }$ and $\eta$ satisfies Assumption 2. Let $\Delta _ { m } = \theta _ { T _ { m } } - \xi _ { T _ { m } } - \theta _ { m } ^ { * }$ and assume that $\| \Delta _ { m } \| \leq \mathcal { D }$ and $L ( \theta _ { m } ^ { * } ) \leq \mathcal { L }$ for some $0 < \delta \le 1 / 2$ . Then for any $\tau _ { m } \leq \mathcal { T }$ satisfying $\begin{array} { r l } { \operatorname* { m a x } _ { k \in [ T _ { m } , T _ { m + 1 } ) } \left. \Phi _ { k - T _ { m } } ( \theta _ { m } ^ { * } + \Delta _ { m } ) - \theta _ { m } ^ { * } \right. \le } & { { } \quad } \end{array}$ $8 \mathcal { M }$ , with probability at least $1 - 1 0 d \tau _ { m } e ^ { - \iota }$ we have simultaneously for all $k \in ( T _ { m } , T _ { m + 1 } ]$ ,
|
| 228 |
+
|
| 229 |
+
$$
|
| 230 |
+
\begin{array} { r } { \| \theta _ { k } - \xi _ { k } - \Phi _ { k - T _ { m } } ( \theta _ { m } ^ { * } + \Delta _ { m } ) \| \le \mathcal { D } , \quad \quad \mathbb { E } [ \xi _ { k } ] = 0 , \quad \quad a n d \quad \quad \| \xi _ { k } \| \le \mathcal { X } . } \end{array}
|
| 231 |
+
$$
|
| 232 |
+
|
| 233 |
+
Unlike in Lemma 1, we couple to the regularized trajectory starting at $\theta _ { m } ^ { * } + \Delta _ { m }$ rather than at $\theta _ { m } ^ { * }$ to avoid accumulating errors (see Figure 2). The proof is otherwise identical to that of Lemma 1.
|
| 234 |
+
|
| 235 |
+
The proof of Theorem 1 easily follows from the following lemma which states that we decrease the regularized loss $\tilde { L }$ by at least $\mathcal { F }$ after every coupling:
|
| 236 |
+
|
| 237 |
+
Lemma 3. Let $\begin{array} { r } { \mathcal { F } = \frac { { \mathcal { D } } ^ { 2 } } { \eta \nu \mathcal { T } } } \end{array}$ . Let $\Delta _ { m } = \theta _ { T _ { m } } - \xi _ { T _ { m } } - \theta _ { m } ^ { * }$ and assume $\| \Delta _ { m } \| \leq \mathcal { D }$ and $L ( \theta _ { m } ^ { * } ) \leq \mathcal { L }$ Then if $\theta _ { T _ { m } }$ is not an $( \epsilon , \gamma )$ -stationary point, there exists some $\tau _ { m } < \mathcal { T }$ such that if we define
|
| 238 |
+
|
| 239 |
+
$$
|
| 240 |
+
\begin{array} { r } { \theta _ { m + 1 } ^ { * } = \Phi _ { \tau _ { n } } \bigl ( \theta _ { m } ^ { * } + \Delta _ { m } \bigr ) \qquad a n d \qquad \Delta _ { m + 1 } = \theta _ { T _ { m + 1 } } - \xi _ { T _ { m + 1 } } - \theta _ { m + 1 } ^ { * } , } \end{array}
|
| 241 |
+
$$
|
| 242 |
+
|
| 243 |
+
then with probability $1 - 1 0 d \tau _ { m } e ^ { - \iota }$
|
| 244 |
+
|
| 245 |
+
$$
|
| 246 |
+
\begin{array} { r } { \tilde { L } ( \theta _ { m + 1 } ^ { * } ) \leq L ( \theta _ { m } ^ { * } ) - \mathcal { F } , \qquad \| \Delta _ { m + 1 } \| \leq \mathcal { D } \qquad a n d \qquad L ( \theta _ { m + 1 } ^ { * } ) \leq \mathcal { L } . } \end{array}
|
| 247 |
+
$$
|
| 248 |
+
|
| 249 |
+
We defer the proofs of Lemma 2 and Lemma 3 to Appendix B. Theorem 1 now follows directly from repeated applications of Lemma 3:
|
| 250 |
+
|
| 251 |
+
Proof of Theorem $^ { l }$ . By assumption there exists some $\theta _ { 0 } ^ { * }$ such that $L ( \theta _ { 0 } ^ { * } ) \leq \mathcal { L }$ and $\lVert { \boldsymbol { \theta } } _ { 0 } - { \boldsymbol { \theta } } _ { 0 } ^ { * } \rVert \leq \mathcal { D }$ . Then so long as $\theta _ { T _ { m } }$ is not an $( \epsilon , \gamma )$ -stationary point, we can inductively apply Lemma 3 to get the existence of coupling times $\{ \tau _ { m } \}$ and reference points $\{ \theta _ { m } ^ { * } \}$ such that for any $m \geq 0$ , with probability $1 - 1 0 d T _ { m } e ^ { - \iota }$ we have $\tilde { L } ( \theta _ { m } ^ { * } ) \leq \tilde { L } ( \theta _ { 0 } ^ { * } ) - m \mathcal { \bar { F } }$ . As $\tilde { L } ( \theta _ { 0 } ^ { * } ) - \tilde { L } ( \theta _ { m } ^ { * } ) = O ( \lambda )$ , this can happen for at most $\begin{array} { r } { m = O \left( \frac { \lambda } { \mathcal { F } } \right) } \end{array}$ reference points, so at most $\begin{array} { r } { T = O \left( \frac { \lambda \mathcal { T } } { \mathcal { F } } \right) = \tilde { O } \left( \eta ^ { - 1 } \lambda ^ { - 1 - \delta } \right) } \end{array}$ iterations of Algorithm 1. By the choice of $\iota$ , this happens with probability $1 - 1 0 d T e ^ { - \iota } \geq 1 - \zeta$ .
|
| 252 |
+
|
| 253 |
+
# 4 Experiments
|
| 254 |
+
|
| 255 |
+
In order to test the ability of SGD with label noise to escape poor global minimizers and converge to better minimizers, we initialize Algorithm 1 at global minimizers of the training loss which achieve $1 0 0 \%$ training accuracy yet generalize poorly to the test set. Minibatch SGD would remain fixed at these initializations because both the gradient and the noise in minibatch SGD vanish at any global minimizer of the training loss. We show that SGD with label noise escapes these poor initializations and converges to flatter minimizers that generalize well, which supports Theorem 1. We run experiments with two initializations:
|
| 256 |
+
|
| 257 |
+

|
| 258 |
+
Figure 3: Label Noise SGD escapes poor global minimizers. The left column displays the training accuracy over time, the middle column displays the value of $\operatorname { t r } \nabla ^ { 2 } L ( \theta )$ over time which we use to approximate the implicit regularizer $R ( \theta )$ , and the right column displays their correlation. The horizontal dashed line represents the minibatch SGD baseline with random initialization. We report the median results over 3 random seeds and shaded error bars denote the $\operatorname* { m i n } / \operatorname* { m a x }$ over the three runs. The correlation plot uses a running average of 100 epochs for visual clarity.
|
| 259 |
+
|
| 260 |
+
Full Batch Initialization: We run full batch gradient descent with random initialization until convergence to a global minimizer. We call this minimizer the full batch initialization. The final test accuracy of the full batch initialization was $76 \%$ .
|
| 261 |
+
|
| 262 |
+
Adversarial Initialization: Following Liu et al. [21], we generate an adversarial initialization with final test accuracy $4 8 \%$ that achieves zero training loss by first teaching the network to memorize random labels and then training it on the true labels. See Appendix D for full details.
|
| 263 |
+
|
| 264 |
+
Experiments were run with ResNet18 on CIFAR10 [17] without data augmentation or weight decay. The experiments were conducted with randomized label flipping with probability 0.2 (see Appendix E for the extension of Theorem 1 to classification with label flipping), cross entropy loss, and batch size 256. Because of the difficulty in computing the regularizer $R ( \theta )$ , we approximate it by its lower bound $\operatorname { t r } \nabla ^ { 2 } L ( \theta )$ . Figure 3 shows the test accuracy and $\mathrm { t r } \nabla ^ { 2 } L$ throughout training.
|
| 265 |
+
|
| 266 |
+
SGD with label noise escapes both zero training loss initializations and converges to flatter minimizers that generalize much better, reaching the SGD baseline from the fullbatch initialization and getting within $1 \%$ of the baseline from the adversarial initialization. The test accuracy in both cases is strongly correlated with $\mathrm { t r } \nabla ^ { 2 } L$ . The strength of the regularization is also strongly correlated with $\eta$ which supports Theorem 1.
|
| 267 |
+
|
| 268 |
+
# 5 Extensions
|
| 269 |
+
|
| 270 |
+
# 5.1 SGD with momentum
|
| 271 |
+
|
| 272 |
+
We replace the update in Algorithm 1 with heavy ball momentum with parameter $\beta$ :
|
| 273 |
+
|
| 274 |
+
$$
|
| 275 |
+
\theta _ { k + 1 } = \theta _ { k } - \eta \nabla \hat { L } ^ { ( k ) } ( \theta _ { k } ) + \beta ( \theta _ { k } - \theta _ { k - 1 } ) .
|
| 276 |
+
$$
|
| 277 |
+
|
| 278 |
+
We define:
|
| 279 |
+
|
| 280 |
+
$$
|
| 281 |
+
R ( \theta ) = \frac { 1 + \beta } { 2 \eta } \mathrm { t r } \log \left( 1 - \frac { \eta } { 2 ( 1 + \beta ) } \nabla ^ { 2 } L ( \theta ) \right) , \qquad \lambda = \frac { \eta \sigma ^ { 2 } } { B ( 1 - \beta ) } ,
|
| 282 |
+
$$
|
| 283 |
+
|
| 284 |
+
and as before $\tilde { L } ( \theta ) = L ( \theta ) + \lambda R ( \theta )$ . Let
|
| 285 |
+
|
| 286 |
+
$$
|
| 287 |
+
\Phi _ { 0 } ( \theta ) = \theta , \qquad \Phi _ { k + 1 } ( \theta ) = \Phi _ { k } ( \theta ) - \eta \nabla \tilde { L } ( \Phi _ { k } ( \theta ) ) + \beta ( \Phi _ { k } ( \theta ) - \Phi _ { k - 1 } ( \theta ) )
|
| 288 |
+
$$
|
| 289 |
+
|
| 290 |
+
represent gradient descent with momentum on $\tilde { L }$ . Then we have the following local coupling lemma:
|
| 291 |
+
|
| 292 |
+
Lemma 4. Let
|
| 293 |
+
|
| 294 |
+
$$
|
| 295 |
+
\mathcal { X } = \sqrt { \frac { 2 \lambda n ^ { 2 } \iota } { \nu } } , \qquad \mathcal { L } = c \lambda ^ { 1 + \delta } , \qquad \mathcal { D } = c \sqrt { \mathcal { L } } \iota , \qquad \mathcal { T } = \frac { 1 } { c ^ { 2 } \eta \mathcal { X } \iota } ,
|
| 296 |
+
$$
|
| 297 |
+
|
| 298 |
+
where c is a sufficfollow Algorithm ntly large consta with momentum . Assume starting $f$ tisfieand $^ { l }$ and r so $\begin{array} { r } { \eta \le \frac { ( 2 - \nu ) ( 1 + \beta ) } { \ell } } \end{array}$ . Let . The $\theta$ $^ { l }$ $\beta$ $\theta ^ { * }$ $L ( \theta ^ { * } ) \leq \mathcal { L }$ $0 < \delta \le 1 / 2$ there exists a random process $\{ \xi _ { k } \}$ such that for any $\tau \leq \mathcal { T }$ satisfying $\begin{array} { r } { \operatorname* { m a x } _ { k \leq \tau } \| \Phi _ { k } ( \theta ^ { * } ) - \theta ^ { * } \| \leq 8 \mathcal { D } } \end{array}$ with probability at least $1 - 1 0 d \tau e ^ { - \iota }$ we have simultaneously for all $k \leq \tau$ ,
|
| 299 |
+
|
| 300 |
+
$$
|
| 301 |
+
\begin{array} { r } { \| \theta _ { k } - \xi _ { k } - \Phi _ { k } ( \theta ^ { * } ) \| \le \mathcal { D } , \qquad \mathbb { E } [ \xi _ { k } ] = 0 , \qquad a n d \qquad \| \xi _ { k } \| \le \mathcal { X } . } \end{array}
|
| 302 |
+
$$
|
| 303 |
+
|
| 304 |
+
As in Lemma 1, the error is 8 times smaller than the maximum movement of the regularized trajectory. Note that momentum increases the regularization parameter $\lambda$ by $\frac { 1 } { 1 - \beta }$ . For the commonly used momentum parameter $\beta = 0 . 9$ , this represents a $1 0 \times$ increase in regularization, which is likely the cause of the improved performance in Figure 4 $\beta = 0 . 9$ ) over Figure 3 $\beta = 0$ ).
|
| 305 |
+
|
| 306 |
+
# 5.2 Arbitrary Noise Covariances
|
| 307 |
+
|
| 308 |
+
The analysis in Section 3.1 is not specific to label noise SGD and can be carried out for arbitrary noise schemes. Let $\theta$ follow $\theta _ { k + 1 } \overset { \cdot } { = } \theta _ { k } - \eta \nabla L ( \theta _ { k } ) + \epsilon _ { k }$ starting at $\theta _ { 0 }$ where $\epsilon _ { k } \sim { \cal N } ( 0 , \eta \lambda \Sigma ( \theta _ { k } ) )$ and $\Sigma ^ { 1 / 2 }$ is Lipschitz. Given a matrix $S$ we define the regularizer $R _ { S } ( \theta ) = \left. S , \nabla ^ { 2 } L ( \theta ) \right.$ . The matrix $S$ controls the weight of each eigenvalue. As before we can define $\tilde { L } _ { S } ( \theta ) = L ( \theta ) + \lambda R _ { S } ( \theta )$ and $\Phi _ { k + 1 } ^ { S } ( \theta ) = \Phi _ { k } ^ { S } ( \theta ) - \eta \nabla \tilde { L } _ { S } ( \Phi _ { k } ( \theta ) )$ to be the regularized loss and the regularized trajectory respectively. Then we have the following version of Lemma 1:
|
| 309 |
+
|
| 310 |
+
Proposition 5. Let $\theta$ be initialized at a minimizer $\theta ^ { * }$ of $L$ . Assume $\nabla ^ { 2 } L$ is Lipschitz, let $H = \nabla ^ { 2 } L ( \theta ^ { * } )$ and assume that $\Sigma ( \theta ^ { * } ) \preceq C H$ for some absolute constant $C$ . Let $\begin{array} { r } { \mathcal { X } = \sqrt { \frac { C d \lambda \iota } { \nu } } } \end{array}$ , $\mathcal { D } = c \lambda ^ { 3 / 4 } \iota ,$ , and $\begin{array} { r } { \mathcal { T } = \frac { 1 } { c ^ { 2 } \eta \mathcal { X } \iota } } \end{array}$ for a sufficiently large constant c. Then there exists a mean zero random process $\xi$ such that for any $\tau \leq \mathcal { T }$ satisfying $\begin{array} { r } { \operatorname* { m a x } _ { k < \tau } \| \Phi _ { k } ( \theta ^ { * } ) - \theta ^ { * } \| \leq 8 \mathcal { D } } \end{array}$ and with probability $1 - 1 0 d \tau e ^ { - \iota }$ , we have simultaneously for all $k \leq \tau$ :
|
| 311 |
+
|
| 312 |
+
$$
|
| 313 |
+
\begin{array} { r } { \| \theta _ { k } - \xi _ { k } - \Phi _ { k } ^ { S } ( \theta _ { 0 } ) \| \le \mathcal { D } \qquad a n d \qquad \| \xi _ { k } \| \le \mathcal { X } , } \end{array}
|
| 314 |
+
$$
|
| 315 |
+
|
| 316 |
+
where $S$ is the unique fixed point of $S \gets ( I - \eta H ) S ( I - \eta H ) + \eta \lambda \Sigma ( \theta ^ { * } )$ restricted to span $( H )$
|
| 317 |
+
|
| 318 |
+
As in Lemma 1, the error is 8 times smaller than the maximum movement of the regularized trajectory. Although Proposition 5 couples to gradient descent on $R _ { S }$ , $S$ is defined in terms of the Hessian and the noise covariance at $\theta ^ { * }$ and therefore depends on the choice of reference point. Because $R _ { S }$ is changing, we cannot repeat Proposition 5 as in Section 3.2 to prove convergence to a stationary point because there is no fixed potential. Although it is sometimes possible to relate $R _ { S }$ to a fixed potential $R$ , we show in Appendix F.2 that this is not generally possible by providing an example where minibatch SGD perpetually cycles. Exploring the properties of these continuously changing potentials and their connections to generalization is an interesting avenue for future work.
|
| 319 |
+
|
| 320 |
+
# 6 Discussion
|
| 321 |
+
|
| 322 |
+
# 6.1 Sharpness and the Effect of Large Learning Rates
|
| 323 |
+
|
| 324 |
+
Various factors can control the strength of the implicit regularization in Theorem 1. Most important is the implicit regularization parameter $\begin{array} { r } { \lambda = \frac { \eta \sigma ^ { 2 } } { | B | } } \end{array}$ . This supports the hypothesis that large learning rates and small batch sizes are necessary for implicit regularization [9, 26], and agrees with the standard linear scaling rule which proposes that for constant regularization strength, the learning rate $\eta$ needs to be inversely proportional to the batch size $| B |$ .
|
| 325 |
+
|
| 326 |
+
However, our analysis also uncovers an additional regularization effect of large learning rates. Unlike the regularizer in Blanc et al. [3], the implicit regularizer $R ( \theta )$ defined in Equation (1) is dependent on $\eta$ . It is not possible to directly analyze the behavior of $R ( \theta )$ as $\eta 2 / \lambda _ { 1 }$ where $\lambda _ { 1 }$ is the largest eigenvalue of $\nabla ^ { 2 } L$ , as in this regime, $R ( \theta ) \to \infty$ (see Figure 1). If we let $\begin{array} { r } { \eta = \frac { 2 - \nu } { \lambda _ { 1 } } } \end{array}$ 2−ν , then we can better understand the behavior of $R ( \theta )$ by normalizing it by $\log 2 / \nu$ . This gives2
|
| 327 |
+
|
| 328 |
+
$$
|
| 329 |
+
\frac { R ( \theta ) } { \log 2 / \nu } = \sum _ { i } \frac { R ( \lambda _ { i } ) } { \log 2 / \nu } = \| \nabla ^ { 2 } L ( \theta ) \| _ { 2 } + O \left( \frac { 1 } { \log 2 / \nu } \right) \xrightarrow { \nu \to 0 } \| \nabla ^ { 2 } L ( \theta ) \| _ { 2 }
|
| 330 |
+
$$
|
| 331 |
+
|
| 332 |
+
so after normalization, $R ( \theta )$ becomes a better and better approximation of the spectral norm $\| \nabla ^ { 2 } L ( \theta ) \|$ as $\eta 2 / \lambda _ { 1 }$ . $R ( \theta )$ can therefore be seen as interpolating between $\mathrm { t r } \hat { \nabla } ^ { 2 } L ( \theta )$ , when $\eta \approx 0$ , and $\| \nabla ^ { 2 } L ( \theta ) \| _ { 2 }$ when $\eta \approx 2 / \lambda _ { 1 }$ . This also suggests that SGD with large learning rates may be more resilient to the edge of stability phenomenon observed in Cohen et al. [4] as the implicit regularization works harder to control eigenvalues approaching $2 / \eta$ .
|
| 333 |
+
|
| 334 |
+
The sharpness-aware algorithm (SAM) of [7] is also closely related to $R ( \theta )$ . SAM proposes to minimize $\begin{array} { r } { \operatorname* { m a x } _ { \parallel \delta \parallel _ { 2 } } \le _ { \epsilon } L ( \theta + \delta ) } \end{array}$ . At a global minimizer of the training loss,
|
| 335 |
+
|
| 336 |
+
$$
|
| 337 |
+
\operatorname* { m a x } _ { \| \delta \| _ { 2 } \leq \epsilon } L ( \theta ^ { * } + \delta ) = \operatorname* { m a x } _ { \| \delta \| _ { 2 } \leq \epsilon } \frac { 1 } { 2 } \delta ^ { \top } \nabla ^ { 2 } L ( \theta ^ { * } ) \delta + O ( \epsilon ^ { 3 } ) \approx \frac { \epsilon ^ { 2 } } { 2 } \| \nabla ^ { 2 } L ( \theta ^ { * } ) \| _ { 2 } .
|
| 338 |
+
$$
|
| 339 |
+
|
| 340 |
+
The SAM algorithm is therefore explicitly regularizing the spectral norm of $\nabla ^ { 2 } L ( \theta )$ , which is closely connected to the large learning rate regularization effect of $R ( \theta )$ when $\eta \approx 2 / \lambda _ { 1 }$ .
|
| 341 |
+
|
| 342 |
+
# 6.2 Generalization Bounds
|
| 343 |
+
|
| 344 |
+
The implicit regularizer $R ( \theta )$ is intimately connected to data-dependent generalization bounds, which measure the Lipschitzness of the network via the network Jacobiapropose the all-layer margin, which bounds the generalization error $\begin{array} { r } { \lesssim \frac { \sum _ { l = 1 } ^ { L } \mathcal { C } _ { l } } { \sqrt { n } } \sqrt { \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \frac { 1 } { m _ { F } ( x _ { i } , y _ { i } ) ^ { 2 } } } } \end{array}$ is the all-layer margin. The norm of the parameters is generally controlled by weight decay regularization, so we focus our discussion on the all-layer margin. Ignoring higher-order secondary terms, Wei and Ma [30, Heuristic derivation of Lemma 3.1] showed for a feed-forward network $\begin{array} { r } { \dot { f } ( \theta ; x ) = \theta _ { L } \sigma ( \theta _ { L - 1 } \dots \sigma ( \theta _ { 1 } x ) ) } \end{array}$ , the all-layer margin satisfies3:
|
| 345 |
+
|
| 346 |
+
$$
|
| 347 |
+
\frac { 1 } { m _ { F } ( x , y ) } \lesssim \frac { \| \{ \frac { \partial f } { \partial \theta _ { l } } \} _ { l \in [ L ] } \| _ { 2 } } { \mathrm { o u t p u t ~ m a r g i n ~ o f ~ } ( x , y ) } \implies \mathrm { g e n e r a l i z a t i o n ~ e r r o r } \lesssim \frac { \sum _ { l = 1 } ^ { L } \mathcal { C } _ { l } } { \sqrt { n } } \sqrt { \frac { R ( \theta ) } { \mathrm { o u t p u t ~ m a r g i n } } }
|
| 348 |
+
$$
|
| 349 |
+
|
| 350 |
+
as $R ( \theta )$ is an upper bound on the squared norm of the Jacobian at any global minimizer $\theta$ . We emphasize this bound is informal as we discarded the higher-order terms in controlling the all-layer margin, but it accurately reflects that the regularizer $R ( \bar { \theta ) }$ lower bounds the all-layer margin $m _ { F }$ up to higher-order terms. Therefore SGD with label noise implicitly regularizes the all-layer margin.
|
| 351 |
+
|
| 352 |
+
# Acknowledgments and Disclosure of Funding
|
| 353 |
+
|
| 354 |
+
AD acknowledges support from a NSF Graduate Research Fellowship. TM acknowledges support of Google Faculty Award and NSF IIS 2045685. JDL acknowledges support of the ARO under MURI Award W911NF-11-1-0303, the Sloan Research Fellowship, NSF CCF 2002272, and an ONR Young Investigator Award.
|
| 355 |
+
|
| 356 |
+
The experiments in this paper were performed on computational resources managed and supported by Princeton Research Computing, a consortium of groups including the Princeton Institute for Computational Science and Engineering (PICSciE) and the Office of Information Technology’s High Performance Computing Center and Visualization Laboratory at Princeton University.
|
| 357 |
+
|
| 358 |
+
We would also like to thank Honglin Yuan and Jeff Z. HaoChen for useful discussions throughout various stages of the project.
|
| 359 |
+
|
| 360 |
+
References
|
| 361 |
+
[1] S. Arora, S. S. Du, W. Hu, Z. Li, R. Salakhutdinov, and R. Wang. On exact computation with an infinitely wide neural net. arXiv preprint arXiv:1904.11955, 2019.
|
| 362 |
+
[2] L. Biewald. Experiment tracking with weights and biases, 2020. URL https://www.wandb. com/. Software available from wandb.com.
|
| 363 |
+
[3] G. Blanc, N. Gupta, G. Valiant, and P. Valiant. Implicit regularization for deep neural networks driven by an ornstein-uhlenbeck like process. arXiv preprint arXiv:1904.09080, 2019.
|
| 364 |
+
[4] J. M. Cohen, S. Kaur, Y. Li, J. Z. Kolter, and A. Talwalkar. Gradient descent on neural networks typically occurs at the edge of stability, 2021.
|
| 365 |
+
[5] S. S. Du, J. D. Lee, H. Li, L. Wang, and X. Zhai. Gradient descent finds global minima of deep neural networks, 2019.
|
| 366 |
+
[6] W. Falcon et al. Pytorch lightning. GitHub. Note: https://github.com/PyTorchLightning/pytorchlightning, 3, 2019.
|
| 367 |
+
[7] P. Foret, A. Kleiner, H. Mobahi, and B. Neyshabur. Sharpness-aware minimization for efficiently improving generalization. arXiv preprint arXiv:2010.01412, 2020.
|
| 368 |
+
[8] R. Ge, F. Huang, C. Jin, and Y. Yuan. Escaping from saddle points—online stochastic gradient for tensor decomposition. In Conference on Learning Theory, pages 797–842, 2015.
|
| 369 |
+
[9] P. Goyal, P. Dollár, R. Girshick, P. Noordhuis, L. Wesolowski, A. Kyrola, A. Tulloch, Y. Jia, and K. He. Accurate, large minibatch sgd: Training imagenet in 1 hour. arXiv preprint arXiv:1706.02677, 2017.
|
| 370 |
+
[10] S. Gunasekar, B. E. Woodworth, S. Bhojanapalli, B. Neyshabur, and N. Srebro. Implicit regularization in matrix factorization. In Advances in Neural Information Processing Systems, pages 6151–6159, 2017.
|
| 371 |
+
[11] S. Gunasekar, J. Lee, D. Soudry, and N. Srebro. Characterizing implicit bias in terms of optimization geometry. arXiv preprint arXiv:1802.08246, 2018.
|
| 372 |
+
[12] J. Z. HaoChen, C. Wei, J. D. Lee, and T. Ma. Shape matters: Understanding the implicit bias of the noise covariance. arXiv preprint arXiv:2006.08680, 2020.
|
| 373 |
+
[13] D. Hendrycks and K. Gimpel. Gaussian error linear units (gelus), 2020.
|
| 374 |
+
[14] A. Jacot, F. Gabriel, and C. Hongler. Neural tangent kernel: Convergence and generalization in neural networks. In Advances in neural information processing systems, pages 8571–8580, 2018.
|
| 375 |
+
[15] C. Jin, P. Netrapalli, R. Ge, S. M. Kakade, and M. I. Jordan. Stochastic gradient descent escapes saddle points efficiently. arXiv preprint arXiv:1902.04811, 2019.
|
| 376 |
+
[16] N. S. Keskar, D. Mudigere, J. Nocedal, M. Smelyanskiy, and P. T. P. Tang. On large-batch training for deep learning: Generalization gap and sharp minima. arXiv preprint arXiv:1609.04836, 2016.
|
| 377 |
+
[17] A. Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009.
|
| 378 |
+
[18] Y. A. LeCun, L. Bottou, G. B. Orr, and K.-R. Müller. Efficient backprop. In Neural networks: Tricks of the trade, pages 9–48. Springer, 2012.
|
| 379 |
+
[19] Y. Li, T. Ma, and H. Zhang. Algorithmic regularization in over-parameterized matrix sensing and neural networks with quadratic activations. arXiv preprint arXiv:1712.09203, 2017.
|
| 380 |
+
[20] Y. Li, C. Wei, and T. Ma. Towards explaining the regularization effect of initial large learning rate in training neural networks. In Advances in Neural Information Processing Systems, pages 11669–11680, 2019.
|
| 381 |
+
[21] S. Liu, D. Papailiopoulos, and D. Achlioptas. Bad global minima exist and sgd can reach them. arXiv preprint arXiv:1906.02613, 2019.
|
| 382 |
+
[22] P. Mianjy, R. Arora, and R. Vidal. On the implicit bias of dropout. arXiv preprint arXiv:1806.09777, 2018.
|
| 383 |
+
[23] E. Moroshko, S. Gunasekar, B. Woodworth, J. D. Lee, N. Srebro, and D. Soudry. Implicit bias in deep linear classification: Initialization scale vs training accuracy. Neural Information Processing Systems (NeurIPS), 2020.
|
| 384 |
+
[24] A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, A. Desmaison, A. Kopf, E. Yang, Z. DeVito, M. Raison, A. Tejani, S. Chilamkurthy, B. Steiner, L. Fang, J. Bai, and S. Chintala. Pytorch: An imperative style, highperformance deep learning library. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché- Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems 32, pages 8024–8035. Curran Associates, Inc., 2019. URL http://papers.neurips.cc/paper/ 9015-pytorch-an-imperative-style-high-performance-deep-learning-library. pdf.
|
| 385 |
+
[25] C. J. Shallue, J. Lee, J. Antognini, J. Sohl-Dickstein, R. Frostig, and G. E. Dahl. Measuring the effects of data parallelism on neural network training. arXiv preprint arXiv:1811.03600, 2018.
|
| 386 |
+
[26] S. L. Smith, P.-J. Kindermans, C. Ying, and Q. V. Le. Don’t decay the learning rate, increase the batch size. arXiv preprint arXiv:1711.00489, 2017.
|
| 387 |
+
[27] D. Soudry, E. Hoffer, M. S. Nacson, S. Gunasekar, and N. Srebro. The implicit bias of gradient descent on separable data. The Journal of Machine Learning Research, 19(1):2822–2878, 2018.
|
| 388 |
+
[28] C. Szegedy, V. Vanhoucke, S. Ioffe, J. Shlens, and Z. Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2818–2826, 2016.
|
| 389 |
+
[29] T. Vaskevicius, V. Kanade, and P. Rebeschini. Implicit regularization for optimal sparse recovery. In Advances in Neural Information Processing Systems, pages 2968–2979, 2019.
|
| 390 |
+
[30] C. Wei and T. Ma. Improved sample complexities for deep networks and robust classification via an all-layer margin. arXiv preprint arXiv:1910.04284, 2019.
|
| 391 |
+
[31] Y. Wen, K. Luk, M. Gazeau, G. Zhang, H. Chan, and J. Ba. Interplay between optimization and generalization of stochastic gradient descent with covariance noise. arXiv preprint arXiv:1902.08234, 2019.
|
| 392 |
+
[32] B. Woodworth, S. Gunasekar, J. D. Lee, E. Moroshko, P. Savarese, I. Golan, D. Soudry, and N. Srebro. Kernel and rich regimes in overparametrized models. arXiv preprint arXiv:2002.09277, 2020.
|
| 393 |
+
|
| 394 |
+
# Checklist
|
| 395 |
+
|
| 396 |
+
1. For all authors...
|
| 397 |
+
|
| 398 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 399 |
+
(b) Did you describe the limitations of your work? [Yes] See Section 2 for a list of assumptions made in this paper and see Appendix A for a full discussion.
|
| 400 |
+
(c) Did you discuss any potential negative societal impacts of your work? [N/A] This work is mainly theoretical and focuses on understanding an existing algorithm (Label Noise SGD).
|
| 401 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 402 |
+
|
| 403 |
+
2. If you are including theoretical results...
|
| 404 |
+
|
| 405 |
+
(a) Did you state the full set of assumptions of all theoretical results? [Yes] See Section 2 for a list of assumptions made in this paper.
|
| 406 |
+
(b) Did you include complete proofs of all theoretical results? [Yes] A proof sketch of Theorem 1 is provided in Section 3 however full proofs of all claims in the paper can be found in Appendix B.
|
| 407 |
+
|
| 408 |
+
3. If you ran experiments...
|
| 409 |
+
|
| 410 |
+
(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] The instructions needed to reproduce the experiments in Section 4 can be found in Appendix D. Code will be submitted through the supplementary material and will be made available (through Github) upon acceptance.
|
| 411 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 4 and Appendix D.
|
| 412 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Figure 3 and Figure 4.
|
| 413 |
+
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Appendix D.
|
| 414 |
+
|
| 415 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 416 |
+
|
| 417 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes] For CIFAR10 we cite Krizhevsky [17], as requested by the creators on https://www.cs.toronto.edu/ kriz/cifar.html. In Appendix D we additionally cite PyTorch [24], PyTorch Lightning [6], and Wandb [2].
|
| 418 |
+
(b) Did you mention the license of the assets? [Yes] We mention the MIT license for CIFAR10 in Appendix D.
|
| 419 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
|
| 420 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
|
| 421 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
|
| 422 |
+
|
| 423 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 424 |
+
|
| 425 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 426 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 427 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|