Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/BJxH22EKPS/BJxH22EKPS.md +390 -0
- parse/train/BJxH22EKPS/BJxH22EKPS_content_list.json +0 -0
- parse/train/BJxH22EKPS/BJxH22EKPS_middle.json +0 -0
- parse/train/BJxH22EKPS/BJxH22EKPS_model.json +0 -0
- parse/train/HJxyZkBKDr/HJxyZkBKDr.md +307 -0
- parse/train/HJxyZkBKDr/HJxyZkBKDr_content_list.json +1774 -0
- parse/train/HJxyZkBKDr/HJxyZkBKDr_middle.json +0 -0
- parse/train/HJxyZkBKDr/HJxyZkBKDr_model.json +0 -0
- parse/train/MNVjrDpu6Yo/MNVjrDpu6Yo.md +285 -0
- parse/train/MNVjrDpu6Yo/MNVjrDpu6Yo_content_list.json +1218 -0
- parse/train/MNVjrDpu6Yo/MNVjrDpu6Yo_middle.json +0 -0
- parse/train/MNVjrDpu6Yo/MNVjrDpu6Yo_model.json +0 -0
- parse/train/SJxzPsAqFQ/SJxzPsAqFQ.md +298 -0
- parse/train/SJxzPsAqFQ/SJxzPsAqFQ_content_list.json +1411 -0
- parse/train/SJxzPsAqFQ/SJxzPsAqFQ_middle.json +0 -0
- parse/train/SJxzPsAqFQ/SJxzPsAqFQ_model.json +0 -0
- parse/train/a7APmM4B9d/a7APmM4B9d_model.json +0 -0
- parse/train/rJo9n9Feg/rJo9n9Feg.md +164 -0
- parse/train/rJo9n9Feg/rJo9n9Feg_content_list.json +900 -0
- parse/train/rJo9n9Feg/rJo9n9Feg_middle.json +0 -0
parse/train/BJxH22EKPS/BJxH22EKPS.md
ADDED
|
@@ -0,0 +1,390 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# UNDERSTANDING ARCHITECTURES LEARNT BY CELL-BASED NEURAL ARCHITECTURE SEARCH
|
| 2 |
+
|
| 3 |
+
Yao Shu, Wei Wang & Shaofeng Cai
|
| 4 |
+
|
| 5 |
+
School of Computing
|
| 6 |
+
National University of Singapore
|
| 7 |
+
{shuyao,wangwei,shaofeng}@comp.nus.edu.sg
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
Neural architecture search (NAS) searches architectures automatically for given tasks, e.g., image classification and language modeling. Improving the search efficiency and effectiveness has attracted increasing attention in recent years. However, few efforts have been devoted to understanding the generated architectures. In this paper, we first reveal that existing NAS algorithms (e.g., DARTS, ENAS) tend to favor architectures with wide and shallow cell structures. These favorable architectures consistently achieve fast convergence and are consequently selected by NAS algorithms. Our empirical and theoretical study further confirms that their fast convergence derives from their smooth loss landscape and accurate gradient information. Nonetheless, these architectures may not necessarily lead to better generalization performance compared with other candidate architectures in the same search space, and therefore further improvement is possible by revising existing NAS algorithms.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Various neural network architectures (Krizhevsky et al., 2012; Simonyan & Zisserman, 2015; He et al., 2016; Huang et al., 2017) have been devised over the past decades, achieving superhuman performance for a wide range of tasks. Designing these neural networks typically takes substantial efforts from domain experts by trial and error. Recently, there is a growing interest in neural architecture search (NAS), which automatically searches for high-performance architectures for the given task. The searched NAS architectures (Zoph et al., 2018; Real et al., 2019; Pham et al., 2018; Liu et al., 2019; Xie et al., 2019b; Luo et al., 2018; Cai et al., 2019; Akimoto et al., 2019; Nayman et al., 2019) have outperformed best expert-designed architectures on many computer vision and natural language processing tasks.
|
| 16 |
+
|
| 17 |
+
Mainstream NAS algorithms typically search for the connection topology and transforming operation accompanying each connection from a predefined search space. Tremendous efforts have been exerted to develop efficient and effective NAS algorithms (Liu et al., 2019; Xie et al., 2019b; Luo et al., 2018; Akimoto et al., 2019; Nayman et al., 2019). However, less attention has been paid to these searched architectures for further insight. To our best knowledge, there is no related work in the literature examining whether these NAS architectures share any pattern, and how the pattern may impact the architecture search if there exists the pattern. These questions are fundamental to understand and improve existing NAS algorithms. In this paper, we endeavour to address these questions by examining the popular NAS architectures1.
|
| 18 |
+
|
| 19 |
+
The recent work (Xie et al., 2019a) shows that the architectures with random connection topologies can achieve competitive performance on various tasks compared with expert-designed architectures. Inspired by this result, we examine the connection topologies of the architectures generated by popular NAS algorithms. In particular, we find a connection pattern of the popular NAS architectures. These architectures tend to favor wide and shallow cells, where the majority of intermediate nodes are directly connected to the input nodes.
|
| 20 |
+
|
| 21 |
+
To appreciate this particular connection pattern, we first visualize the training process of the popular NAS architectures and their randomly connected variants. Fast and stable convergence is observed for the architectures with wide and shallow cells. We further empirically and theoretically show that the architectures with wider and shallower cells consistently enjoy a smoother loss landscape and smaller gradient variance than their random variants, which helps explain their better convergence and consequently the selection of these NAS architectures during the architecture search.
|
| 22 |
+
|
| 23 |
+
We finally evaluate the generalization performance of the popular NAS architectures and their randomly connected variants. We find that the architectures with wide and shallow cells may not generalize better than other candidate architectures despite their faster convergence. We therefore believe that rethinking NAS from the perspective of the true generalization performance rather than the convergence of candidate architectures should potentially help generate better architectures.
|
| 24 |
+
|
| 25 |
+
# 2 RELATED WORKS
|
| 26 |
+
|
| 27 |
+
Neural Architecture Search Neural architecture search (NAS) searches for best-performing architectures automatically for a given task. It has received increasing attention in recent years due to its outstanding performance and the demand for automated machine learning (AutoML). There are three major components in NAS as summarized by Elsken et al. (2019), namely search space, search policy (or strategy, algorithm), and performance evaluation (or estimation). To define the search space, the prior knowledge extracted from expert-designed architectures is typically exploited. As for the search policy, different algorithms are proposed to improve the effectiveness (Zoph et al., 2018; Real et al., 2019; Tan et al., 2019; Cai et al., 2019) and the efficiency (Pham et al., 2018; Liu et al., 2019; Xie et al., 2019b; Luo et al., 2018; Nayman et al., 2019; Akimoto et al., 2019) of the architecture search. However, no effort has been devoted to understanding the best architectures generated by various NAS approaches. Detailed analysis of these architectures may give insights about the further improvement of existing NAS algorithms.
|
| 28 |
+
|
| 29 |
+
Evaluation of NAS algorithms Recent works evaluate NAS algorithms by comparing them with random search. Li & Talwalkar (2019) and Sciuto et al. (2019) compare the generalization performance of architectures generated from random search and existing NAS algorithms. Interestingly, the random search can find architectures with comparable or even better generalization performance. Particularly, Sciuto et al. (2019) show empirically that the ineffectiveness of some NAS algorithms (Pham et al., 2018) could be the consequence of the weight sharing mechanism during the architecture search. While these evaluations help understand the general disadvantages of NAS algorithms, what kind of architectures the NAS algorithms are learning and why they learn these specific architectures are still not well understood.
|
| 30 |
+
|
| 31 |
+
# 3 THE CONNECTION PATTERN OF POPULAR NAS CELLS
|
| 32 |
+
|
| 33 |
+
Mainstream NAS algorithms (Zoph et al., 2018; Real et al., 2019; Pham et al., 2018; Liu et al., 2019; Xie et al., 2019b; Luo et al., 2018) typically search for the cell structure, including the connection topology and the corresponding operation (transformation) coupling each connection. The generated cell is then replicated to construct the entire neural network. We therefore mainly investigate these cell-based NAS architectures. In this section, we first introduce the commonly adopted cell representation, which is useful to understand the connection and computation in a cell space. We then sketch the connection topologies of popular cell-based NAS architectures to investigate their connection patterns. By comparison, we show that there is a common connection pattern among the cells learned by different NAS algorithms; particularly, these cells tend to be wide and shallow.
|
| 34 |
+
|
| 35 |
+
# 3.1 CELL REPRESENTATION
|
| 36 |
+
|
| 37 |
+
Following DARTS (Liu et al., 2019), we represent the cell topology as a directed acyclic graph (DAG) consisting of $N$ nodes, including $M$ input nodes, one output node and $( N - M - 1 )$ intermediate nodes. Each node forms a latent representation of the input instance. The input nodes consist of the outputs from $M$ preceding cells. And the output node aggregates (e.g., concatenate) the representations from all intermediate nodes. Each intermediate node is connected to $M$ proceeding nodes in the same cell. Each connection transforms the representation from one node via an operation from a predefined operation set, e.g., $3 \times 3$ convolution, $3 \times 3$ max pooling, etc. The target of NAS algorithm is to search for the best $M$ source nodes for each intermediate node and the best operation for each of the connections between nodes. In the literature, the searched cell is then replicated by $L$ times to build the entire neural network architecture2.
|
| 38 |
+
|
| 39 |
+

|
| 40 |
+
Figure 1: Cell topologies of popular NAS architectures. Each sub-figure has three sets of nodes from left to right, i.e., the input nodes, intermediate nodes, and output node. The arrows (i.e., operations of the cell) represent the direction of information flow. The caption of each sub-figure reports the name of the architecture, width and depth of a cell following our definition. The width of a cell is computed with the assumption that all intermediate nodes share the same width $c$ .
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
Figure 2: Topologies of DARTS (Liu et al., 2019) cell (leftmost) and its variants with random connections. The cell depth is increasing and width decreasing from left to right. In particular, the original DARTS cell $C ^ { d \bar { a } r t s }$ is widest and shallowest among these cells.
|
| 44 |
+
|
| 45 |
+
We abuse the notation $C$ to denote a cell and also the architecture built with the specific cell in the following sections. Besides, we shall use $C ^ { A }$ to denote the best architecture (or cell) searched with the NAS algorithm $A$ (e.g., DARTS (Liu et al., 2019), ENAS (Pham et al., 2018)). Details on how to build the architecture with given cells are provided in Appendix A.3.
|
| 46 |
+
|
| 47 |
+
# 3.2 THE COMMON CONNECTION PATTERN
|
| 48 |
+
|
| 49 |
+
Recently, Xie et al. (2019a) shows that neural networks constructed by cells with random connection patterns can achieve compelling performance on multiple tasks. Taking this a step further, we wonder whether cells generated from popular NAS algorithms share any connection patterns, which may explain why these cells are chosen during the architecture search. To investigate the connection patterns, we sketch the topologies of the popular NAS cells with detailed operations omitted.
|
| 50 |
+
|
| 51 |
+
Figure 1 illustrates topologies of 5 popular NAS cells3. To examine the connection pattern formally, we introduce the concept of ‘depth’ and ‘width’ for a cell. The depth of a cell is defined as the number of connections along the longest path from input nodes to the output node. The width of a cell is defined as the total width of the intermediate nodes that are connected to the input nodes. In particular, if some intermediate nodes are only partially connected to input nodes (i.e., have connections to other intermediate nodes), their width is reduced by the percentage of the number of connections to intermediate nodes over all connections. The width of a node is the number of channels for convolution operations; and the width is the dimension of the features for linear operations. Supposing that the width of each intermediate node is $c$ , as shown in Figure 1, the width and depth of the DARTS (Liu et al., 2019) cell are $3 . 5 c$ and 3 respectively, and the width and depth of the AmoebaNet (Real et al., 2019) cell are $_ { 4 c }$ and 4 correspondingly.
|
| 52 |
+
|
| 53 |
+
Following the above definitions, the smallest depth and largest width for a cell with $N = 7$ and $M = 2$ are 2 and $_ { 4 c }$ respectively. Similarly, for a cell with $N = 8$ and $M = 2$ , the smallest depth and largest width are 2 and $5 c$ respectively. In Figure 1, we can observe that cells from popular NAS architectures tend to be the widest and shallowest ones (with width close to $4 c / 5 c$ and depth close to 2) among all candidate cells in the same search space. Regarding this as the common connection pattern, we have the following observation:
|
| 54 |
+
|
| 55 |
+
Observation 3.1 (The Common Connection Pattern) NAS architectures generated by popular NAS algorithms tend to have the widest and shallowest cells among all candidate cells in the same search space.
|
| 56 |
+
|
| 57 |
+
# 4 THE IMPACTS OF CELL WIDTH AND DEPTH ON OPTIMIZATION
|
| 58 |
+
|
| 59 |
+
Given that popular NAS cells share the common connection pattern, we then explore the impact of this common connection pattern from the optimization perspective to answer the question: why the wide and shallow cells are selected during the architecture search? We sample and train variants of popular NAS architectures with random connections. Comparing randomly connected variants with the popular NAS architectures, we find that architectures with wider and shallower cells indeed converge faster so that they are selected by NAS algorithms (Section 4.1). To understand why the wider and shallower cell contributes to faster convergence, we further investigate the loss landscape and gradient variance of popular NAS architectures and their variants via both empirical experiments (Section 4.2) and theoretical analysis (Section 4.3).
|
| 60 |
+
|
| 61 |
+
# 4.1 CONVERGENCE
|
| 62 |
+
|
| 63 |
+
Popular NAS algorithms typically evaluate the performance of a candidate architecture prematurely before the convergence of its model parameters during the search process. For instance, DARTS (Liu et al., 2019), SNAS (Xie et al., 2019b) and ENAS (Pham et al., 2018) optimize hyper-parameters of architectures and model parameters concurrently. The amortized training time of each candidate architecture is insufficient and therefore far from the requirement for the full convergence. Likewise, AmoebaNet (Real et al., 2019) evaluates the performance of candidate architectures with the training of only a few epochs. In other words, these candidate architectures are not evaluated based on their generalization performance at convergence. As a result, architectures with faster convergence rates are more likely to be selected by existing NAS algorithms because they can obtain better evaluation performance given the same training budget. We therefore hypothesize that the popular NAS architectures may converge faster than other candidate architectures, which largely contributes to the selection of these architectures during the search.
|
| 64 |
+
|
| 65 |
+
To support the hypothesis above, we compare the convergence of original NAS architectures and their variants with random connections via empirical studies. We first sample variants of popular NAS cells following the sampling method in Appendix A.2. Then, we train both original NAS architectures and their random variants on CIFAR-10 and CIFAR-100 following the training details in Appendix A.3. During training, we evaluate the testing loss and accuracy of these architectures. Since the convergence is dependent on optimization settings, we also evaluate the convergence performance under different learning rates.
|
| 66 |
+
|
| 67 |
+
Take DARTS (Liu et al., 2019) for example, Figure 2 shows the connection topology of the original DARTS cell and its random variants. Figure 3 reports the test loss and accuracy curves of these architectures during training. As illustrated in Figure 3, the original cell $C ^ { d a r t s }$ , known as the widest and shallowest cell, has the fastest and most stable convergence compared with its variants. Further, as the width of a cell increases and the depth decreases (i.e., from $C _ { 4 }$ to $C _ { 1 }$ ), the convergence becomes faster. The results of other popular NAS architectures and their randomly connected variants are reported in Appendix B.2.
|
| 68 |
+
|
| 69 |
+

|
| 70 |
+
Figure 3: Test loss and test accuracy $( \% )$ curves of DARTS and its randomly connected variants on CIFAR-10 and CIFAR-100 during training. The default learning rate is 0.025.
|
| 71 |
+
|
| 72 |
+

|
| 73 |
+
Figure 4: Test accuracy $( \% )$ curves of DARTS and its randomly connected variants on CIFAR-10 and CIFAR-100 during training under different learning rates (0.0025 and 0.25). We only evaluate $C ^ { d a r t s }$ , $C _ { 1 } ^ { d a r t s }$ and $C _ { 3 } ^ { \breve { d } a r t s }$ for illustration. The caption of each sub-figure reports the dataset and the learning rate.
|
| 74 |
+
|
| 75 |
+
Figure 4 further validates the difference of convergence under different learning rates. The original cell $C ^ { d a r t s }$ enjoys the fastest and the most stable convergence among these cells under various learning rates. The difference in terms of convergence rate and stability is more obvious between $C ^ { d a r t s }$ and its variants with a larger learning rate as shown in Figure 4. Interestingly, $C _ { 3 } ^ { d a r t s }$ completely fails to converge on both CIFAR-10 and CIFAR-100 with a larger learning rate of 0.25. While there is a minor difference among these cells with a lower learning rate of 0.0025, we still find that there is a decreasing performance of convergence (i.e., convergence rate and stability) from $C ^ { d a r t s }$ , $C _ { 1 } ^ { d a r t s }$ $C _ { 3 } ^ { d a r t s }$ . Overall, the observations are consistent with the results in Figure 3.
|
| 76 |
+
|
| 77 |
+
We have also compared the convergence of popular NAS architectures and their random variants of different operations. Similarly, we sample and train the random variants of operations for popular NAS architectures following the details in Appendix A.2 and Appendix A.3. Figure 5 illustrates the convergence of these architectures. Surprisingly, with the same connection topologies as the popular NAS cells but different operations, all random variants achieve nearly the same convergence as these popular NAS architectures. Consistent results can be found in Figure 12 of Appendix B.2. We therefore believe that the types of operations have limited impacts on the convergence of NAS architectures and the connection topologies affect the convergence more significantly.
|
| 78 |
+
|
| 79 |
+
With these observations, we conclude that the popular NAS architectures with wider and shallower cells indeed converge faster and more stably, which explains why these popular NAS cells are selected during the architecture search. The next question is then why the wider and shallower cell leads to a faster and more stable convergence?
|
| 80 |
+
|
| 81 |
+
# 4.2 EMPIRICAL STUDY OF FACTORS AFFECTING CONVERGENCE
|
| 82 |
+
|
| 83 |
+
Since the wide and shallow cell is related to fast convergence, we further conduct the theoretical convergence analysis to investigate the cause of fast convergence. In this section, we first introduce the convergence analysis (i.e., Theorem 4.1) of non-convex optimization with the randomized stochastic gradient method (Ghadimi & Lan, 2013). Based on the analysis, we introduce the possible factors related to the common connection pattern that may affect the convergence. We then examine these factors empirically in the following subsections.
|
| 84 |
+
|
| 85 |
+

|
| 86 |
+
Figure 5: Test accuracy $( \% )$ curves of DARTS, ENAS, AmoebaNet, NASNet and their random variants of operations on CIFAR-10 during training. The parameter size is attached in Table 3 of Appendix B.2.
|
| 87 |
+
|
| 88 |
+
Theorem 4.1 (Ghadimi & Lan, 2013) Let $f$ be a $L$ -smooth non-convex function, and let $f ^ { * }$ be the minimal. Given repeated, independent accesses to stochastic gradients with variance bound $\sigma ^ { 2 }$ for $f ( w )$ , SGD with initial ${ \pmb w } _ { 0 }$ , total iterations $N > 0$ and learning rate $\begin{array} { r } { \gamma _ { k } \ < \ \frac { 1 } { L } } \end{array}$ achieves the following convergence by randomly choosing ${ \pmb w } _ { k }$ as the final output ${ \pmb w } _ { R }$ with probability $\frac { \gamma _ { k } } { H }$ where $\begin{array} { r } { H = \sum _ { k = 1 } ^ { N } \gamma _ { k } } \end{array}$ :
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
\mathbb { E } [ \nabla f ( { \pmb w } _ { R } ) ^ { 2 } ] \le \frac { 2 ( f ( { \pmb w } _ { 0 } ) - f ^ { * } ) } { H } + \frac { L \sigma ^ { 2 } } { H } \sum _ { k = 1 } ^ { N } \gamma _ { k } ^ { 2 }
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
In this paper, $f$ and $\pmb { w }$ denote the objective (loss) function and model parameters respectively. Based on the above theorem, Lipschitz smoothness $L$ and gradient variance $\bar { \sigma } ^ { 2 }$ significantly affect the convergence, including the rate and the stability of convergence. Particularly, given a specific number of iterations $N$ , a smaller Lipschitz constant $L$ or smaller gradient variance $\bar { \sigma } ^ { 2 }$ would lead to a smaller convergence error and less damped oscillations, which indicates a faster and more stable convergence. Since the Lipschitz constant $L$ and gradient variance $\sigma ^ { 2 }$ are highly related to the objective function, different NAS architectures result in different $L$ and $\sigma ^ { 2 }$ . In the following subsections, we therefore conduct empirical analysis for the impacts of the cell with and depth on the Lipschitz smoothness and gradient variance.
|
| 95 |
+
|
| 96 |
+
# 4.2.1 LOSS LANDSCAPE
|
| 97 |
+
|
| 98 |
+
The constant $L$ of Lipschitz smoothness is closely correlated with the Hessian matrix of the objective function as shown by Nesterov (2004), which requires substantial computation and can only represent the global smoothness. The loss contour, which has been widely adopted to visualize the loss landscape of neural networks by Goodfellow & Vinyals (2015); Li et al. (2018), is instead computationally efficient and is able to report the local smoothness of the objective function. To explore the loss landscape of different architectures, we adopt the method in Li et al. (2018) to plot the loss contour $s ( \alpha , \beta ) \ = \mathbb { E } _ { i \sim P } \big [ f _ { i } ( \pmb { w } ^ { * } + \alpha \pmb { w } _ { 1 } + \beta \pmb { w } _ { 2 } ) \big ]$ . The notation $f _ { i } ( \cdot )$ denotes the loss evaluated at $i _ { t h }$ instance in the dataset and $P$ denotes the distribution of dataset. The notation $\pmb { w } ^ { * }$ , ${ \pmb w } _ { 1 }$ and ${ \pmb w } _ { 2 }$ denote the (local) optimal and two direction vectors randomly sampled from Gaussian distribution respectively. And $\alpha$ , $\beta$ , which are the $x$ and $y$ axis of the plots, denote the step sizes to perturb $\boldsymbol { w } ^ { * }$ . The loss contour plotted here is therefore a two-dimensional approximation of the truly highdimensional loss contour. However, as shown in Li et al. (2018), the approximation is valid and effective to characterize the property of the true loss contour.
|
| 99 |
+
|
| 100 |
+
To study the impact of the cell width and depth on Lipschitz smoothness, we compare the loss landscape between popular NAS architectures and their randomly connected variants trained in Section 4.1 on CIFAR-10 and CIFAR-100. Due to the space limitation, we only plot the loss landscape of DARTS (Liu et al., 2019) and its randomly connected variants in Figure 6. We observe that the connection topology has a significant influence on the smoothness of the loss landscape. With the widest and shallowest cell, $\bar { C } ^ { d a r t s }$ has a fairly benign and smooth landscape along with the widest near-convex region around the optimal. With a deeper and narrower cell, $\dot { C } _ { 1 } ^ { d a r t s }$ and $C _ { 2 } ^ { d a r t s }$ have a more agitated loss landscape compared with $C ^ { d \bar { a } r t s }$ . Further, $C _ { 3 } ^ { d a r t s }$ , with the smallest width and largest depth among these cells, has the most complicated loss landscape and the narrowest and steepest near-convex region around the optimum. The largest eigenvalue of the Hessian matrix, which indicates the maximum curvature of the objective function, is positively correlated with Lipschitz constant as shown by Nesterov (2004). A smoother loss landscape therefore corresponds to a smaller Lipschitz constant $L$ . $C ^ { d a r t s }$ is likely to achieve the smallest Lipschitz constant among these cells.
|
| 101 |
+
|
| 102 |
+

|
| 103 |
+
Figure 6: Loss contours of DARTS and its variants with random connections on the test dataset of CIFAR-10. The lighter color of the contour lines indicates a larger loss. Notably, the loss of the blank area, around the corners of each plot, is extremely large. Besides, the area with denser contour lines indicates a steeper loss surface.
|
| 104 |
+
|
| 105 |
+

|
| 106 |
+
Figure 7: Heat maps of the gradient variance from DARTS and its randomly connected variants around the optimal on the test dataset of CIFAR-10. The lighter color indicates a larger gradient variance. Notably, the gradient variance of the yellow area, around the corners of each plot, is extremely large. Obviously, the region with relatively small gradient variance becomes smaller from left to right.
|
| 107 |
+
|
| 108 |
+
Consistent results can be found in Appendix B.3 for the loss landscape of other popular NAS cells and their variants. Based on these results, we conclude that increasing the width and decreasing the depth of a cell widens the near-convex region around the optimal and smooths the loss landscape. The constant $L$ of Lipschitz smoothness therefore becomes smaller locally and globally. Following Theorem 4.1, architectures with wider and shallower cells shall converge faster and more stably.
|
| 109 |
+
|
| 110 |
+
# 4.2.2 GRADIENT VARIANCE
|
| 111 |
+
|
| 112 |
+
The gradient variance indicates the noise level of gradient by randomly selecting training instances in stochastic gradient descent (SGD) method. Large gradient variance indicates large noise in the gradient, which typically results in unstable updating of model parameters. Following Ghadimi $\&$ Lan (2013), gradient variance is defined as $\mathbf { \bar { V } a r } ( \bar { \nabla } f _ { i } ( \pmb { w } ) )$ . Similar to the visualization of loss landscape in Section 4.2.1, we visualize the gradient variance by $g ( \alpha , \beta ) = \mathrm { V a r } ( \nabla f _ { i } ( { \pmb w } ^ { * } + \alpha { \pmb w } _ { 1 } +$ $\beta \pmb { w } _ { 2 } )$ ). All other notations follow Section 4.2.1.
|
| 113 |
+
|
| 114 |
+
To study the impact of the width and depth of a cell on the gradient variance, we compare the gradient variance between popular NAS architectures and their randomly connected variants trained in Section 4.1 on CIFAR-10 and CIFAR-100. We visualize the gradient variance of DARTS (Liu et al., 2019) and its randomly connected variants in Figure 7 and Figure 8. For better visualization, we plot the figures using the standard deviation (i.e., $\sqrt { g ( \alpha , \beta ) } )$ to avoid extremely large values in the visualization of DARTS. Obviously, as the cell width decreases and the cell depth increases (i.e., from $C ^ { d a r t s }$ to $C _ { 4 } ^ { d a r t s }$ ), the region with relatively small gradient variance becomes smaller as shown in Figure 7. Consistently, the gradient variance generally shows an increasing trend from $C ^ { d a r t s }$ to
|
| 115 |
+
|
| 116 |
+

|
| 117 |
+
Figure 8: 3D surfaces of the gradient variance from DARTS and its randomly connected variants around the optimal on the test dataset of CIFAR-100. The height of the surface indicates the value of gradient variance. Notably, the height of the gradient variance surface is gradually increasing from left to right. Especially, $C ^ { d a r t s }$ has the smoothest and lowest surface of gradient variance among these architectures.
|
| 118 |
+
|
| 119 |
+
$C _ { 4 } ^ { d a r t s }$ in Figure 8. Consequently, the gradient becomes noisier in the neighborhood of the optimal, which typically makes the optimization harder and unstable.
|
| 120 |
+
|
| 121 |
+
Similar results from other popular NAS architectures and their random variants are provided in Appendix B.4. Based on these results, we conclude that the increase in width and the decrease in depth of a cell result in a smaller gradient variance, which makes the optimization process less noisy and more efficient. The convergence of wide and shallow cells therefore shall be fast and stable following Theorem 4.1.
|
| 122 |
+
|
| 123 |
+
# 4.3 THEORETICAL ANALYSIS OF FACTORS AFFECTING CONVERGENCE
|
| 124 |
+
|
| 125 |
+
Our empirical study so far suggests that larger cell width and smaller cell depth smooth the loss landscape and decrease the gradient variance. Consequently, popular NAS architectures with wide and shallow cells converge fast. In this section, we investigate the impacts of the cell width and depth on Lipschitz smoothness and gradient variance from a theoretical perspective.
|
| 126 |
+
|
| 127 |
+
# 4.3.1 SETUP
|
| 128 |
+
|
| 129 |
+
We analyze the impact of the cell width and depth by comparing architectures with the widest cell and the narrowest cell as shown in Figure 26 of Appendix C. To simplify the analysis, the cells we investigate contain only one input node $_ { \textbf { \em x } }$ and one output node. The input node may be training instances or output node from any proceeding cell. All operations in the cell are linear operations without any non-linearity. Suppose there are $n$ intermediate nodes in a cell, the $i _ { t h }$ intermediate node and its associated weight matrix are denoted as $\mathbf { \boldsymbol { y } } ^ { ( i ) }$ and $W ^ { ( i ) } ( i = 1 , \cdots , n )$ respectively. The output node $_ z$ denotes the concatenation of all intermediate nodes. Both cells have the same arbitrary objective function $f$ following the output node, which shall consist of the arbitrary number of activation functions and cells. For clarity, we refer to the objective function, intermediate nodes and output node of the architecture with the narrowest cell as $\hat { \widehat { f } } , \widehat { \pmb { y } } ^ { ( i ) }$ and $\widehat { z }$ respectively. As shown in Figure 26, the intermediate node $\mathbf { \boldsymbol { y } } ^ { ( i ) }$ and $\widehat { \pmb y } ^ { ( i ) }$ bcan be computed by $\mathbf { \boldsymbol { y } } ^ { ( i ) } \equiv W ^ { ( i ) } \dot { \mathbf { \boldsymbol { x } } }$ and $\begin{array} { r } { \widehat { \pmb y } ^ { ( i ) } = \prod _ { k = 1 } ^ { i } W ^ { ( k ) } \pmb x } \end{array}$ b respectively. Particularly, we set $\begin{array} { r } { \prod _ { k = 1 } ^ { i } W ^ { ( k ) } = W ^ { ( i ) } W ^ { ( i - 1 ) } \cdot \cdot \cdot W ^ { ( 1 ) } } \end{array}$ . And ball the related proofs of following theorems can be found in Appendix C.
|
| 130 |
+
|
| 131 |
+
# 4.3.2 THEORETICAL RESULTS
|
| 132 |
+
|
| 133 |
+
Due to the complexity of the standard Lipschitz smoothness, we instead investigate the block-wise Lipschitz smoothness (Beck & Tetruashvili, 2013) of the two cases shown in Figure 26. In Theo$\mathrm { r e m } 4 . 2$ , we show that the block-wise Lipschitz constant of the narrowest cell is scaled by the largest eigenvalues of the model parameters (i.e., $W ^ { ( i ) } ( i = 1 , \cdots , n ) )$ . Notably, the Lipschitz constant of the narrowest cell can be significantly larger than the one of the widest cell while most of the largest eigenvalues are larger than 1, which slows down the convergence substantially. The empirical study in Section 4.2.1 has validated the results.
|
| 134 |
+
|
| 135 |
+
Theorem 4.2 (The impact of cell width and depth on block-wise Lipschitz smoothness ) Let $\lambda ^ { ( i ) }$ be the largest eigenvalue of $W ^ { ( i ) }$ . Given the widest cell with objective function $f$ and the narrowest cell with objective function ${ \widehat { f } } ,$ , by assuming the block-wise Lipschitz smoothness of the widest cell as $\begin{array} { r l r } { \left\| \frac { \partial f } { \partial W _ { 1 } ^ { ( i ) } } - \frac { \partial f } { \partial W _ { 2 } ^ { ( i ) } } \right\| } & { { } \le L ^ { ( i ) } \left\| W _ { 1 } ^ { ( i ) } - W _ { 2 } ^ { ( i ) } \right\| } & { } \end{array}$ for any $W _ { 1 } ^ { ( i ) }$ and $W _ { 2 } ^ { ( i ) }$ , the block-wise Lipschitz smoothness of the narrowest cell then can be represented as
|
| 136 |
+
|
| 137 |
+

|
| 138 |
+
Figure 9: Comparison of the test accuracy at the convergence between popular NAS architectures and their randomly connected variants on CIFAR-10. Each popular NAS architecture (index 0 on the $x$ -axis) is followed by 13 randomly connected variants (from index 1 to index 13 on the $x$ -axis), corresponding to $C _ { 1 }$ to $C _ { 1 3 }$ respectively. The width and depth of these random variants are shown in Table 2 in Appendix B.2. The dashed lines report the accuracy of the popular NAS architectures.
|
| 139 |
+
|
| 140 |
+
$$
|
| 141 |
+
\left\| \frac { \partial \widehat { f } } { \partial W _ { 1 } ^ { ( i ) } } - \frac { \partial \widehat { f } } { \partial W _ { 2 } ^ { ( i ) } } \right\| \leq ( \prod _ { j = 1 } ^ { i - 1 } \lambda ^ { ( j ) } ) L ^ { ( i ) } \left\| W _ { 1 } ^ { ( i ) } - W _ { 2 } ^ { ( i ) } \right\|
|
| 142 |
+
$$
|
| 143 |
+
|
| 144 |
+
We then compare the gradient variance of the two cases shown in Figure 26. Interestingly, gradient variance suggests a similar but more significant difference between the two cases compared with their difference in Lipschitz smoothness. As shown in Theorem 4.3, the gradient variance of the narrowest cell is not only scaled by the square of the largest eigenvalue of the weight matrix but also is scaled by the number of intermediate nodes (i.e., $n$ ). Moreover, the upper bound of its gradient variance has numbers of additional terms, leading to a significantly larger gradient variance. The empirical study in Section 4.2.2 has confirmed the results.
|
| 145 |
+
|
| 146 |
+
Theorem 4.3 (The impact of cell width and depth on gradient variance ) Let $\lambda ^ { ( i ) }$ be the largest eigenvalue of $\dot { W } ^ { ( i ) }$ . Given the widest cell with objective function $f$ and the narrowest cell with objective function $\widehat { f } _ { \mathrm { i } }$ , by assuming the gradient variance of the widest cell as $\begin{array} { r } { \mathbb { E } \left\| \frac { \partial f } { \partial W ^ { ( i ) } } - \mathbb { E } \frac { \partial f } { \partial W ^ { ( i ) } } \right\| ^ { 2 } \leq } \end{array}$ $( \sigma ^ { ( i ) } ) ^ { 2 }$ for any $W ^ { ( i ) }$ , the gradient variance of the narrowest cell is then bounded by
|
| 147 |
+
|
| 148 |
+
$$
|
| 149 |
+
\mathbb { E } \left\| \frac { \partial \widehat { f } } { \partial W ^ { ( i ) } } - \mathbb { E } \frac { \partial \widehat { f } } { \partial W ^ { ( i ) } } \right\| ^ { 2 } \leq n \sum _ { k = i } ^ { n } ( \frac { \sigma ^ { ( k ) } } { \lambda ^ { ( i ) } } \prod _ { j = 1 } ^ { k } \lambda ^ { ( j ) } ) ^ { 2 }
|
| 150 |
+
$$
|
| 151 |
+
|
| 152 |
+
# 5 GENERALIZATION BEYOND THE COMMON CONNECTIONS
|
| 153 |
+
|
| 154 |
+
Our empirical and theoretical results so far have demonstrated that the common connection pattern helps to smooth the loss landscape and make the gradient more accurate. Popular NAS architectures with wider and shallower cells therefore converge faster, which explains why popular NAS architectures are selected by the NAS algorithms. Nonetheless, we have ignored the generalization performance obtained by popular NAS architectures and their random variants. We therefore wonder whether popular NAS architectures with wide and shallow cells generalize better.
|
| 155 |
+
|
| 156 |
+
In Figure 9, we visualize the test accuracy of popular NAS architectures and their randomly connected variants trained in Section 4.1. Notably, the popular NAS architectures can achieve competitive accuracy compared with most of the random variants. However, there are some random variants, which achieve higher accuracy than the popular architectures. Interestingly, there seems to be an optimal choice of depth and width for a cell to achieve higher test accuracy (i.e., $C _ { 7 }$ for DARTS and $C _ { 4 }$ for ENAS). Popular NAS architectures with wide and shallow cells therefore are not guaranteed to generalize better, although they typically converge faster than other random variants.
|
| 157 |
+
|
| 158 |
+
We also adapt the connections of popular NAS architectures to obtain their widest and shallowest variants. The adaption is possible due to the fact that the cells (including normal and reduction cell)
|
| 159 |
+
|
| 160 |
+
Table 1: Comparison of the test error at the convergence between the original and the adapted NAS architectures on CIFAR-10/100 and Tiny-ImageNet-200. The entire networks are constructed and trained following the experimental settings reported in Appendix A.3, which may slightly deviate from the original ones. The test errors (or the parameter sizes) of original and adapted architectures are reported on the left and right hand-side of slash respectively.
|
| 161 |
+
|
| 162 |
+
<table><tr><td rowspan="2">Architecture</td><td colspan="2">CIFAR-10</td><td colspan="2">CIFAR-100</td><td colspan="2">Tiny-ImageNet-200</td></tr><tr><td>Error(%)</td><td>Params(M)</td><td>Error(%)</td><td>Params(M)</td><td>Error(%)</td><td>Params(M)</td></tr><tr><td>NASNet (Zoph et al., 2018)</td><td>2.65/2.80</td><td>4.29/4.32</td><td>17.06/16.86</td><td>4.42/4.45</td><td>31.88/32.05</td><td>4.57/4.60</td></tr><tr><td>AmoebaNet (Real etal.,2019)</td><td>2.76/2.91</td><td>3.60/3.60</td><td>17.55/17.28</td><td>3.71/3.71</td><td>32.22/33.16</td><td>3.83/3.83</td></tr><tr><td>ENAS (Pham et al., 2018)</td><td>2.64/2.76</td><td>4.32/4.32</td><td>16.67/16.04</td><td>4.45/4.45</td><td>30.68/31.36</td><td>4.60/4.60</td></tr><tr><td>DARTS (Liu et al., 2019)</td><td>2.67/2.73</td><td>3.83/3.90</td><td>16.41/16.15</td><td>3.95/4.03</td><td>30.58/31.33</td><td>4.08/4.16</td></tr><tr><td>SNAS (Xie et al., 2019b)</td><td>2.88/2.69</td><td>3.14/3.19</td><td>17.78/17.20</td><td>3.26/3.31</td><td>32.40/32.61</td><td>3.39/3.45</td></tr></table>
|
| 163 |
+
|
| 164 |
+
of popular NAS architectures are generally not widest and narrowest as shown in Figure 1. While there are various widest and shallowest cells following our definition of cell width and depth, we apply the connection pattern of SNAS cell shown in Figure 1(e) to obtain the widest and shallowest cells. The adapted topologies are shown in Figure 25 of Appendix B.5.
|
| 165 |
+
|
| 166 |
+
Table 1 illustrates the comparison of the test accuracy between our adapted NAS architectures and the original ones. As shown in Table 1, the adapted architectures achieve smaller test error on CIFAR-100. Nevertheless, most of the adapted architectures, obtain larger test error than the original NAS architectures on both CIFAR-10 and Tiny-ImageNet- $2 0 0 ^ { 4 }$ . The results again suggest that the widest and shallowest cells may not help architectures generalize better, while these architectures typically achieve compelling generalization performance.
|
| 167 |
+
|
| 168 |
+
The results above have revealed that the architectures with wide and shallow cells may not generalize better despite their fast convergence. To improve current NAS algorithms, we therefore need to rethink the evaluation of the performance of candidate architectures during architecture search since the current NAS algorithms are not based on the generalization performance at convergence as mentioned in Section 4.1. Nonetheless, architectures with the wide and shallow cells usually guarantee a stable and fast convergence along with competitive generalization performance, which should be good prior knowledge for designing architectures and NAS algorithms.
|
| 169 |
+
|
| 170 |
+
# 6 CONCLUSION AND DISCUSSION
|
| 171 |
+
|
| 172 |
+
Recent works have been focusing on the design and evaluation of NAS algorithms. We instead endeavour to examine the architectures selected by the various popular NAS algorithms. Our study is the first to explore the common structural patterns selected by existing algorithms, why these architectures are selected, and why these algorithms may be flawed. In particular, we reveal that popular NAS algorithms tend to favor architectures with wide and shallow cells, which typically converge fast and consequently are likely be selected during the search process. However, these architectures may not generalize better than other candidates of narrow and deep cells.
|
| 173 |
+
|
| 174 |
+
To further improve the performance of the selected NAS architectures, one promising direction for the current NAS research is to evaluate the generalization performance of candidate architectures more accurately and effectively. While popular NAS architectures appreciate fast and stable convergence along with competitive generalization performance, we believe that the wide and shallow cells are still useful prior knowledge for the design of the search space. We hope this work can attract more attention to the interpretation and understanding of existing popular NAS algorithms.
|
| 175 |
+
|
| 176 |
+
# ACKNOWLEDGEMENT
|
| 177 |
+
|
| 178 |
+
This research is supported by the National Research Foundation Singapore under its AI Singapore Programme [Award No. AISG-GC-2019-002] and Singapore Ministry of Education Academic Research Fund Tier 3 under MOEs official grant number MOE2017-T3-1-007.
|
| 179 |
+
|
| 180 |
+
# REFERENCES
|
| 181 |
+
|
| 182 |
+
Youhei Akimoto, Shinichi Shirakawa, Nozomu Yoshinari, Kento Uchida, Shota Saito, and Kouhei Nishida. Adaptive stochastic natural gradient method for one-shot neural architecture search. In ICML, volume 97 of Proceedings of Machine Learning Research, pp. 171–180. PMLR, 2019.
|
| 183 |
+
|
| 184 |
+
Amir Beck and Luba Tetruashvili. On the convergence of block coordinate descent type methods. SIAM Journal on Optimization, 23(4):2037–2060, 2013.
|
| 185 |
+
|
| 186 |
+
Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. In ICLR (Poster). OpenReview.net, 2019.
|
| 187 |
+
|
| 188 |
+
Terrance Devries and Graham W. Taylor. Improved regularization of convolutional neural networks with cutout. CoRR, abs/1708.04552, 2017.
|
| 189 |
+
|
| 190 |
+
Thomas Elsken, Jan Hendrik Metzen, and Frank Hutter. Neural architecture search: A survey. Journal of Machine Learning Research, 20(55):1–21, 2019.
|
| 191 |
+
|
| 192 |
+
Saeed Ghadimi and Guanghui Lan. Stochastic first- and zeroth-order methods for nonconvex stochastic programming. SIAM Journal on Optimization, 23(4):2341–2368, 2013.
|
| 193 |
+
|
| 194 |
+
Ian J. Goodfellow and Oriol Vinyals. Qualitatively characterizing neural network optimization problems. In ICLR, 2015.
|
| 195 |
+
|
| 196 |
+
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.
|
| 197 |
+
|
| 198 |
+
Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q. Weinberger. Densely connected convolutional networks. In CVPR, pp. 2261–2269. IEEE Computer Society, 2017.
|
| 199 |
+
|
| 200 |
+
Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
|
| 201 |
+
|
| 202 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, pp. 1106–1114, 2012.
|
| 203 |
+
|
| 204 |
+
Gustav Larsson, Michael Maire, and Gregory Shakhnarovich. Fractalnet: Ultra-deep neural networks without residuals. In ICLR (Poster). OpenReview.net, 2017.
|
| 205 |
+
|
| 206 |
+
Hao Li, Zheng Xu, Gavin Taylor, Christoph Studer, and Tom Goldstein. Visualizing the loss landscape of neural nets. In NeurIPS, pp. 6391–6401, 2018.
|
| 207 |
+
|
| 208 |
+
Liam Li and Ameet Talwalkar. Random search and reproducibility for neural architecture search. In UAI, pp. 129. AUAI Press, 2019.
|
| 209 |
+
|
| 210 |
+
Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: differentiable architecture search. In ICLR (Poster). OpenReview.net, 2019.
|
| 211 |
+
|
| 212 |
+
Renqian Luo, Fei Tian, Tao Qin, Enhong Chen, and Tie-Yan Liu. Neural architecture optimization. In NeurIPS, pp. 7827–7838, 2018.
|
| 213 |
+
|
| 214 |
+
Niv Nayman, Asaf Noy, Tal Ridnik, Itamar Friedman, Rong Jin, and Lihi Zelnik-Manor. XNAS: neural architecture search with expert advice. CoRR, abs/1906.08031, 2019.
|
| 215 |
+
|
| 216 |
+
Yurii Nesterov. Introductory Lectures on Convex Optimization - A Basic Course, volume 87 of Applied Optimization. Springer, 2004.
|
| 217 |
+
|
| 218 |
+
Hieu Pham, Melody Y. Guan, Barret Zoph, Quoc V. Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. In ICML, volume 80 of Proceedings of Machine Learning Research, pp. 4092–4101. PMLR, 2018.
|
| 219 |
+
|
| 220 |
+
Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V. Le. Regularized evolution for image classifier architecture search. In AAAI, pp. 4780–4789. AAAI Press, 2019.
|
| 221 |
+
|
| 222 |
+
Christian Sciuto, Kaicheng Yu, Martin Jaggi, Claudiu Musat, and Mathieu Salzmann. Evaluating the search phase of neural architecture search. arXiv preprint arXiv:1902.08142, 2019.
|
| 223 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
|
| 224 |
+
Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott E. Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In CVPR, pp. 1–9. IEEE Computer Society, 2015.
|
| 225 |
+
Mingxing Tan, Bo Chen, Ruoming Pang, Vijay Vasudevan, Mark Sandler, Andrew Howard, and Quoc V. Le. Mnasnet: Platform-aware neural architecture search for mobile. In CVPR, pp. 2820– 2828. Computer Vision Foundation / IEEE, 2019.
|
| 226 |
+
Saining Xie, Alexander Kirillov, Ross Girshick, and Kaiming He. Exploring randomly wired neural networks for image recognition. arXiv preprint arXiv:1904.01569, 2019a.
|
| 227 |
+
Sirui Xie, Hehui Zheng, Chunxiao Liu, and Liang Lin. SNAS: stochastic neural architecture search. In ICLR (Poster). OpenReview.net, 2019b.
|
| 228 |
+
Zirui Zhou, Qi Zhang, and Anthony Man-Cho So. 1,p-norm regularization: Error bounds and convergence rate analysis of first-order methods. In ICML, pp. 1501–1510, 2015.
|
| 229 |
+
Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V. Le. Learning transferable architectures for scalable image recognition. In CVPR, pp. 8697–8710. IEEE Computer Society, 2018.
|
| 230 |
+
|
| 231 |
+
# APPENDIX A EXPERIMENTAL SETUP
|
| 232 |
+
|
| 233 |
+
# A.1 DATA PRE-PROCESSING AND AUGMENTATION
|
| 234 |
+
|
| 235 |
+
Our experiments are conducted on CIFAR-10/100 (Krizhevsky et al., 2009) and Tiny-ImageNet200. CIFAR-10/100 contains 50,000 training images and 10,000 test images of $3 2 \times 3 2$ pixels in 10 and 100 classes respectively. Tiny-ImageNet-200 consists of 100,000 training images, 10,000 validation images and 10,000 test images5 in 200 classes. We adopt the same data pre-processing and argumentation as described in DARTS (Liu et al., 2019): zero padding the training images with 4 pixels on each side and then randomly cropping them back to $3 2 \times 3 2$ on CIFAR-10/100 and $6 4 \times 6 4$ on Tiny-ImageNet-200; randomly flipping training images horizontally; normalizing training images with the means and standard deviations along the channel dimension.
|
| 236 |
+
|
| 237 |
+
# A.2 SAMPLING OF RANDOM VARIANTS
|
| 238 |
+
|
| 239 |
+
For a $N$ -node NAS cell, there are $\frac { ( N - 2 ) ! } { ( M - 1 ) ! }$ possible connections with $M$ input nodes and one output node. There are therefore hundreds to thousands of possible randomly connected variants for each popular NAS cell. The random variants of operations consist of a similar or even higher amount of architectures. Due to the prohibitive cost of comparing popular NAS cells with all variants, we randomly sample some variants to understand why the popular NAS cells are selected.
|
| 240 |
+
|
| 241 |
+
Given a NAS cell $C$ , we fix the partial order of intermediate nodes and their accompanying operations. We then replace the source node of their associated operations by uniformly randomly sampling a node from their proceeding nodes in the same cell to get their randomly connected variants. Similarly, given a NAS cell $C$ , we fix the partial order of intermediate nodes and their connection topologies. We then replace the operations couping each connection by uniformly randomly sampling from candidate operations to get their random variants of operations.
|
| 242 |
+
|
| 243 |
+
# A.3 ARCHITECTURES AND TRAINING DETAILS
|
| 244 |
+
|
| 245 |
+
For experiments on CIFAR-10/100 and Tiny-ImageNet-200, the neural network architectures are constructed by stacking $L = 2 0$ cells. Feature maps are down-sampled at the $L / 3$ -th and $2 L / 3$ -th cell of the entire architecture with stride 2. For Tiny-ImageNet-200, the stride of the first convolutional layer is adapted to 2 to reduce the input resolution from $6 4 \times 6 4$ to $3 2 \times 3 2$ . A more detailed building scheme can be found in DARTS (Liu et al., 2019).
|
| 246 |
+
|
| 247 |
+
In the default training setting, we apply stochastic gradient descent (SGD) with learning rate 0.025, momentum 0.9, weight decay $3 \times \bar { 1 0 ^ { - 4 } }$ and batch size 80 to train the models for 600 epochs on CIFAR10/100 and 300 epochs on Tiny-ImageNet-200 to ensure the convergence. The learning rate is gradually annealed to zero following the standard cosine annealing schedule. To compare the convergence under different learning rates in Section 4.1, we change the initial learning rate from 0.025 to 0.25 and 0.0025 respectively.
|
| 248 |
+
|
| 249 |
+
# A.4 REGULARIZATION
|
| 250 |
+
|
| 251 |
+
Since regularization mechanisms shall affect the convergence (Zhou et al., 2015), architectures are trained without regularization for a neat empirical study in Section 4. The regularization mechanisms are only used in Section 5 to get the converged generalization performance of the original and adapted NAS architectures on CIFAR-10/100 and Tiny-ImageNet-200 as shown in Table 1.
|
| 252 |
+
|
| 253 |
+
There are three adopted regularization mechanisms on CIFAR-10/100 and Tiny-ImageNet-200 in this paper: cutout (Devries & Taylor, 2017), auxiliary tower (Szegedy et al., 2015) and drop path (Larsson et al., 2017). We apply standard cutout regularization with cutout length 16. Moreover, the auxiliary tower is located at $2 L / 3$ -th cell of the entire architecture with weight 0.4. We apply the same linearly-increased drop path schedule as in NASNet (Zoph et al., 2018) with the maximum probability of 0.2.
|
| 254 |
+
|
| 255 |
+
# APPENDIX B MORE RESULTS
|
| 256 |
+
|
| 257 |
+
# B.1 NAS ARCHITECTURES AND THEIR VARIANTS
|
| 258 |
+
|
| 259 |
+
We compare the width and depth of popular NAS architectures and their variants of random connections in Table 2. The random variants are sampled following the method in Appendix A.2. We further show the connection topologies of popular NAS and their partial random variants of connections in Figure 10 and Figure 11.
|
| 260 |
+
|
| 261 |
+
Table 2: Comparison of the width and depth of popular NAS cells and their randomly variants of connections. The name of the popular NAS cell is followed by its width and depth, which is separated by a comma. The width of a cell is conventionally computed by assuming that each intermediate node shares the same width $c$ . Notably, the width and depth of random variants are in ascending and descending order respectively from $C _ { 1 }$ to $C _ { 1 3 }$ . Moreover, the popular NAS architectures achieve the largest width and nearly the smallest depth among all the variants.
|
| 262 |
+
|
| 263 |
+
<table><tr><td>Base Cell</td><td>C</td><td>C</td><td>C3</td><td>C4</td><td>C5</td><td>C6</td><td>C7</td><td>C8</td><td>Cg</td><td>C10</td><td>C11</td><td>C12</td><td>C13</td></tr><tr><td>DARTS (3.5c,3)</td><td>2c,4</td><td>2c,4</td><td>2c,4</td><td>2.5c,4</td><td>2.5c,4</td><td>2.5c,3</td><td>2.5c,3</td><td>2.5c,3</td><td>3c,3</td><td>3c,3</td><td>3c,3</td><td>3.5c,3</td><td>3.5c,3</td></tr><tr><td>ENAS (5c,2)</td><td>1.5c,6</td><td>1.5c,5</td><td>2c,6</td><td>2c,6</td><td>2.5c,5</td><td>2.5c,5</td><td>3c,4</td><td>3c,3</td><td>3.5c,5</td><td>3.5c,4</td><td>3.5c,4</td><td>3.5c,3</td><td>3.5c,3</td></tr><tr><td>AmoebaNet (4c,4)</td><td>1.5c,6</td><td>1.5c,5</td><td>1.5c,5</td><td>1.5c,3</td><td>2c,6</td><td>2c,6</td><td>2c,4</td><td>2.5c,5</td><td>2.5c,3</td><td>2.5c,3</td><td>3c,3</td><td>3.5c,4</td><td>3.5c,3</td></tr><tr><td>NASNet (5c,2)</td><td>1.5c,6</td><td>1.5c,5</td><td>2c,6</td><td>2c,6</td><td>2.5c,5</td><td>2.5c,5</td><td>3c,4</td><td>3c,3</td><td>3.5c,5</td><td>3.5c,4</td><td>3.5c,4</td><td>3.5c,3</td><td>3.5c,3</td></tr></table>
|
| 264 |
+
|
| 265 |
+

|
| 266 |
+
Figure 10: Connection topology of AmoebaNet cell (Real et al., 2019) and its part of randomly connected variants. Each sub-figure reports the width and depth of a cell separated by a comma. The leftmost one is the original connection from AmoebaNet normal cell and others are the ones randomly sampled. The width of a cell is also computed by assuming that each intermediate node shares the same width $c$ . Notably, the original AmoebaNet cell has the largest width and almost the smallest depth among these cells.
|
| 267 |
+
|
| 268 |
+

|
| 269 |
+
Figure 11: Connection topology of SNAS cell under mild constraint (Xie et al., 2019b) and its part of randomly connected variants. The width and depth of a cell are reported in the title of each plot. The leftmost one is the original connection from SNAS normal cell and others are the ones randomly sampled. The width of a cell is conventionally computed by assuming that each intermediate node shares the same width $c$ . Notably, the original SNAS cell has the largest width and the smallest depth among these cells.
|
| 270 |
+
|
| 271 |
+

|
| 272 |
+
Figure 12: More test accuracy $( \% )$ curves of DARTS, ENAS, AmoebaNet, NASNet and their random variants of operations on CIFAR-10 during training.
|
| 273 |
+
|
| 274 |
+
Table 3: Comparison of the parameter size (MB) of popular NAS cells and their randomly variants of operations. $C _ { 0 }$ denotes the original NAS cell and $C _ { 1 }$ to $C _ { 1 0 }$ denote the random variants. Notably, there is a gap of $\sim 3 0 \%$ between the parameter size of the smallest architecture and one of the largest architecture.
|
| 275 |
+
|
| 276 |
+
<table><tr><td>Base cell</td><td>C</td><td>C1</td><td>C</td><td>C3</td><td>C4</td><td>C5</td><td>C6</td><td>C7</td><td>C8</td><td>C</td><td>C10</td></tr><tr><td>DARTS</td><td>3.35</td><td>3.37</td><td>2.84</td><td>2.70</td><td>2.98</td><td>3.19</td><td>2.43</td><td>3.49</td><td>2.88</td><td>3.31</td><td>2.81</td></tr><tr><td>ENAS</td><td>3.86</td><td>3.45</td><td>3.19</td><td>2.98</td><td>2.70</td><td>3.67</td><td>3.03</td><td>3.85</td><td>3.26</td><td>3.81</td><td>3.29</td></tr><tr><td>AmoebaNet</td><td>3.15</td><td>2.86</td><td>2.62</td><td>2.41</td><td>2.10</td><td>3.10</td><td>2.46</td><td>3.28</td><td>2.69</td><td>3.42</td><td>2.75</td></tr><tr><td>NASNet</td><td>3.83</td><td>3.45</td><td>3.19</td><td>2.98</td><td>2.70</td><td>3.67</td><td>3.03</td><td>3.85</td><td>3.26</td><td>3.81</td><td>3.29</td></tr></table>
|
| 277 |
+
|
| 278 |
+
# B.2 CONVERGENCE
|
| 279 |
+
|
| 280 |
+
In this section, we plot more test loss curves on CIFAR-10 (Krizhevsky et al., 2009) for original popular NAS architectures and their (12) randomly connected variants, as shown in Figure 13, Figure 14 and Figure 16. The depth and width of these 12 randomly connected variants can be found in Table 2. Notably, the width and depth of random variants (from $C _ { 1 }$ to $C _ { 1 2 }$ ) are in ascending and descending order respectively. Moreover, the popular NAS architectures achieve the largest width and nearly the smallest depth among all the variants. As shown in the following figures, the popular NAS cells, with larger width and smaller depth, typically achieve faster and more stable convergence than the random variants. Furthermore, with the increasing width and the decreasing depth, the convergence of random variants approaches to the original NAS architecture.
|
| 281 |
+
|
| 282 |
+

|
| 283 |
+
Figure 13: Test loss curves of DARTS and its variants on CIFAR-10 during training.
|
| 284 |
+
|
| 285 |
+

|
| 286 |
+
Figure 14: Test loss curves of AmoebaNet and its variants on CIFAR-10 during training.
|
| 287 |
+
|
| 288 |
+

|
| 289 |
+
Figure 15: Test loss curves of ENAS and its variants on CIFAR-10 suring training.
|
| 290 |
+
|
| 291 |
+

|
| 292 |
+
Figure 16: Test loss curves of NASNet and its variants on CIFAR-10 suring training.
|
| 293 |
+
|
| 294 |
+
# B.3 LOSS LANDSCAPE
|
| 295 |
+
|
| 296 |
+
In this section, we visualize loss landscapes for popular NAS architectures and their randomly connected variants. The depth and width of a cell are highly correlated. For example, the depth and width cannot reach their maximum simultaneously. With the increasing width, the average depth of cells grouped by the same width is decreasing as shown in Table 2. We therefore only group the results (including the ones from original NAS architectures) with various width levels of a cell for a better comparison. Notably, the architectures with wider and shallower cells have a smoother and benigner loss landscape, as shown in Figure 17, Figure 18, Figure 19 and Figure 20, which further supports the results in Section 4.2.1.
|
| 297 |
+
|
| 298 |
+

|
| 299 |
+
Figure 17: Loss contours of DARTS and its variants with random connections on the test dataset of CIFAR-10.
|
| 300 |
+
|
| 301 |
+

|
| 302 |
+
Figure 18: Loss contours of AmoebaNet and its randomly connected variants on the test dataset of CIFAR-10.
|
| 303 |
+
|
| 304 |
+
(a) 1.5c (b) 2c (c) 2.5c (d) 3c (e) 3.5c (a) 1.5c (b) 2c (c) 2.5c (d) 3c (e) 3.5c (a) 1.5c (b) 2c (c) 2.5c (d) 3c (e) 3.5c
|
| 305 |
+
|
| 306 |
+

|
| 307 |
+
Figure 19: Loss contours of ENAS and its randomly connected variants on the test dataset of CIFAR10.
|
| 308 |
+
|
| 309 |
+

|
| 310 |
+
Figure 20: Loss contours of NASNet and its randomly connected variants on the test dataset of CIFAR-10.
|
| 311 |
+
|
| 312 |
+
# B.4 GRADIENT VARIANCE
|
| 313 |
+
|
| 314 |
+
In this section, we visualize the gradient variance (i.e., $g ( \alpha , \beta )$ as defined in Section 4.2.2) for the popular NAS architectures as well as their variants with random connection, such as AmoebaNet in Figure 21, DARTS in Figure 22, ENAS in Figure 23 and NASNet in Figure 23. The $z$ -axis has been scaled by $1 0 ^ { - 5 }$ for a better visualization. Similarly, we group the results based on the width of cells. Notably, architectures with wider and shallower cells achieve relatively smaller gradient variance, which further confirms the results in Section 4.2.2.
|
| 315 |
+
|
| 316 |
+

|
| 317 |
+
Figure 21: 3D surfaces of the gradient variance from AmoebaNet and its randomly connected variants on the test dataset of CIFAR-10.
|
| 318 |
+
|
| 319 |
+

|
| 320 |
+
Figure 22: 3D surfaces of the gradient variance from DARTS and its randomly connected variants on the test dataset of CIFAR-10.
|
| 321 |
+
|
| 322 |
+

|
| 323 |
+
Figure 23: 3D surfaces of the gradient variance from ENAS and its randomly connected variants on the test dataset of CIFAR-10.
|
| 324 |
+
|
| 325 |
+

|
| 326 |
+
Figure 24: 3D surfaces of the gradient variance from NASNet and its randomly connected variants on the test dataset of CIFAR-10.
|
| 327 |
+
|
| 328 |
+
# B.5 ADAPTED TOPOLOGIES
|
| 329 |
+
|
| 330 |
+
In this section, we visualize the adapted architectures (in Figure 25) we investigate on in Section 5. Notably, The adapted connection topologies are not only applied in the normal cell but also the reduction cell. The adapted architectures are compared with popular NAS architectures to examine the impacts of the common connection pattern on generalization.
|
| 331 |
+
|
| 332 |
+

|
| 333 |
+
Figure 25: Adapted topologies of cells from popular NAS architectures. The title of each sub-figure includes the name of the architecture, width and depth of the cell following our definition. Notably, these cells achieve the largest width and smallest depth in their original search space.
|
| 334 |
+
|
| 335 |
+
# APPENDIX C THEORETICAL ANALYSIS
|
| 336 |
+
|
| 337 |
+
# C.1 SETUP
|
| 338 |
+
|
| 339 |
+

|
| 340 |
+
Figure 26: Two architectures to compare in the theoretical analysis: (a) architecture with widest cell; (b) architecture with narrowest cell. The notation $l$ and $\widehat { l }$ denote the values of objective function $f$ and $\widehat { f }$ evaluated at input $_ { \textbf { \em x } }$ respectively.
|
| 341 |
+
|
| 342 |
+
# C.2 BASICS
|
| 343 |
+
|
| 344 |
+
We firstly compare the gradient of case I and case $\mathrm { I I }$ shown in Figure 26. For case I, since $\begin{array} { r l } { \mathbf { \boldsymbol { y } } ^ { ( i ) } = } & { { } } \end{array}$ $W ^ { ( i ) } { \pmb x }$ , the gradient to each weight matrix $W ^ { ( i ) }$ is denoted by
|
| 345 |
+
|
| 346 |
+
$$
|
| 347 |
+
\frac { \partial f } { \partial W ^ { ( i ) } } = \frac { \partial f } { \partial \pmb { y } ^ { ( i ) } } \pmb { x } ^ { T }
|
| 348 |
+
$$
|
| 349 |
+
|
| 350 |
+
Similarly, since $\begin{array} { r } { \widehat { \pmb { y } } ^ { ( i ) } = \prod _ { k = 1 } ^ { i } W ^ { ( k ) } \pmb { x } } \end{array}$ for the case II, the gradient to each weight matrix $W ^ { ( i ) }$ is denoted by
|
| 351 |
+
|
| 352 |
+
$$
|
| 353 |
+
\begin{array} { l } { \displaystyle \frac { \partial \widehat { f } } { \partial W ^ { ( i ) } } = \sum _ { k = i } ^ { n } ( \prod _ { j = i + 1 } ^ { k } W ^ { ( j ) } ) ^ { T } \displaystyle \frac { \partial \widehat { f } } { \partial \widehat { y } ^ { ( k ) } } ( \prod _ { j = 1 } ^ { i - 1 } W ^ { ( j ) } { \pmb x } ) ^ { T } } \\ { = \sum _ { k = i } ^ { n } ( \prod _ { j = i + 1 } ^ { k } W ^ { ( j ) } ) ^ { T } \displaystyle \frac { \partial \widehat { f } } { \partial \widehat { y } ^ { ( k ) } } { \pmb x } ^ { T } ( \prod _ { j = 1 } ^ { i - 1 } W ^ { ( j ) } ) ^ { T } } \\ { = \displaystyle \sum _ { k = i } ^ { n } ( \prod _ { j = i + 1 } ^ { k } W ^ { ( j ) } ) ^ { T } \displaystyle \frac { \partial { f } } { \partial W ^ { ( k ) } } ( \prod _ { j = 1 } ^ { i - 1 } W ^ { ( j ) } ) ^ { T } } \end{array}
|
| 354 |
+
$$
|
| 355 |
+
|
| 356 |
+
Exploring the fact that $\begin{array} { r } { \frac { \partial \widehat { f } } { \partial \widehat { \pmb { y } } ^ { ( i ) } } = \frac { \partial f } { \partial \pmb { y } ^ { ( i ) } } } \end{array}$ ∂f∂y(i) , we get (4) by inserting (1) into (3).
|
| 357 |
+
|
| 358 |
+
# C.3 PROOF OF THEOREM 4.2
|
| 359 |
+
|
| 360 |
+
Due to the complexity of comparing the standard Lipschitz constant of the smoothness for these two cases, we instead investigate the block-wise Lipschitz constant (Beck & Tetruashvili, 2013). In other words, we evaluate the Lipschitz constant for each weight matrix $W ^ { ( i ) }$ while fixing all other matrices. Formally, we assume the block-wise Lipschitz smoothness of case I as
|
| 361 |
+
|
| 362 |
+
$$
|
| 363 |
+
\left\| \frac { \partial f } { \partial W _ { 1 } ^ { ( i ) } } - \frac { \partial f } { \partial W _ { 2 } ^ { ( i ) } } \right\| \leq L ^ { ( i ) } \left\| W _ { 1 } ^ { ( i ) } - W _ { 2 } ^ { ( i ) } \right\| \quad \forall W _ { 1 } ^ { ( i ) } , W _ { 2 } ^ { ( i ) }
|
| 364 |
+
$$
|
| 365 |
+
|
| 366 |
+
The default matrix norm we adopted is 2-norm. And $W _ { 1 } ^ { ( i ) } , W _ { 2 } ^ { ( i ) }$ denote possible assignments for $W ^ { ( i ) }$ .
|
| 367 |
+
|
| 368 |
+
Denoting that $\lambda ^ { ( i ) } = \left\| W ^ { ( i ) } \right\|$ , which is the largest eigenvalue of matrix $W ^ { ( i ) }$ , we can get the smoothness of case $\mathrm { I I }$ as
|
| 369 |
+
|
| 370 |
+
$$
|
| 371 |
+
\begin{array} { r l } { \left| \frac { \partial \hat { f } } { \partial W _ { 1 } ^ { ( i ) } } - \frac { \partial \hat { f } } { \partial W _ { 2 } ^ { ( i ) } } \right| \Bigg | = \left| \displaystyle \sum _ { k = i } ^ { n } ( \displaystyle \prod _ { j = i + 1 } ^ { k } W ^ { ( j ) } ) ^ { T } \big ( \frac { \partial f } { \partial W _ { 1 } ^ { ( k ) } } - \frac { \partial f } { \partial W _ { 2 } ^ { ( k ) } } ) ( \displaystyle \prod _ { j = 1 } ^ { i - 1 } W ^ { ( j ) } ) ^ { T } \right| } & { } \\ { \displaystyle } & { \leq \displaystyle \sum _ { k = i } ^ { n } \left\| \big ( \displaystyle \prod _ { j = i + 1 } ^ { k } W ^ { ( j ) } \big ) ^ { T } \big ( \frac { \partial f } { \partial W _ { 1 } ^ { ( k ) } } - \frac { \partial f } { \partial W _ { 2 } ^ { ( k ) } } \big ) ( \displaystyle \prod _ { j = 1 } ^ { i - 1 } W ^ { ( j ) } ) ^ { T } \right| } \\ & { \displaystyle \leq \displaystyle \sum _ { k = i } ^ { n } ( \displaystyle \frac { 1 } { \lambda ^ { ( i ) } } \displaystyle \prod _ { j = 1 } ^ { k } \lambda ^ { ( j ) } ) L ^ { ( k ) } \left\| W _ { 1 } ^ { ( k ) } - W _ { 2 } ^ { ( k ) } \right\| } \\ & { \displaystyle \leq ( \displaystyle \prod _ { j = 1 } ^ { i - 1 } \lambda ^ { ( j ) } ) L ^ { ( i ) } \left\| W _ { 1 } ^ { ( i ) } - W _ { 2 } ^ { ( k ) } \right\| } \end{array}
|
| 372 |
+
$$
|
| 373 |
+
|
| 374 |
+
We get the equality in (6) since $j > i$ and $W ^ { ( j ) }$ keeps the same for the computation of block-wise Lipschitz constant of $W ^ { ( i ) }$ . Based on the triangle inequality of norm, we get (7) from (6). We get (8) from (7) based on the inequality $\lVert W V \rVert \leq \lVert W \rVert \lVert V \rVert$ and the assumption of the smoothness for case I in (5). Finally, since we are evaluating the block-wise Lipschitz constant for $W ^ { ( i ) }$ , $W _ { 1 } ^ { ( k ) } = W _ { 2 } ^ { ( k ) }$ while $k \neq i$ , which leads to the final inequality (9).
|
| 375 |
+
|
| 376 |
+
# C.4 PROOF OF THEOREM 4.3
|
| 377 |
+
|
| 378 |
+
Similarly, we assume the gradient variance of case I is bounded as
|
| 379 |
+
|
| 380 |
+
$$
|
| 381 |
+
\mathbb { E } \left\| \frac { \partial f } { \partial W ^ { ( i ) } } - \mathbb { E } \frac { \partial f } { \partial W ^ { ( i ) } } \right\| ^ { 2 } \leq ( \sigma ^ { ( i ) } ) ^ { 2 }
|
| 382 |
+
$$
|
| 383 |
+
|
| 384 |
+
The gradient variance of case $\mathrm { I I }$ is then bounded by
|
| 385 |
+
|
| 386 |
+
$$
|
| 387 |
+
\begin{array} { r l } { \mathbb { E } \left\| \displaystyle \frac { \partial \hat { f } } { \partial W ^ { ( i ) } } - \mathbb { E } \frac { \partial \hat { f } } { \partial W ^ { ( i ) } } \right\| ^ { 2 } = \mathbb { E } \left\| \displaystyle \sum _ { k = i } ^ { n } ( \displaystyle \prod _ { j = i + 1 } ^ { k } W ^ { ( j ) } ) ^ { T } ( \displaystyle \frac { \partial f } { \partial W ^ { ( k ) } } - \mathbb { E } \frac { \partial f } { \partial W ^ { ( k ) } } ) ( \displaystyle \prod _ { j = 1 } ^ { i - 1 } W ^ { ( j ) } ) ^ { T } \right\| ^ { 2 } } & { } \\ { \leq n \mathbb { E } \displaystyle \sum _ { k = i } ^ { n } \left\| ( \displaystyle \prod _ { j = i + 1 } ^ { k } W ^ { ( j ) } ) ^ { T } ( \displaystyle \frac { \partial f } { \partial W ^ { ( k ) } } - \mathbb { E } \frac { \partial f } { \partial W ^ { ( k ) } } ) ( \displaystyle \prod _ { j = 1 } ^ { i - 1 } W ^ { ( j ) } ) ^ { T } \right\| ^ { 2 } } & { } \\ { \leq n \displaystyle \sum _ { k = i } ^ { n } ( \displaystyle \frac { \sigma ^ { ( k ) } } { \lambda ^ { ( i ) } } \displaystyle \prod _ { j = 1 } ^ { k } \lambda ^ { ( j ) } ) ^ { 2 } } & { } \end{array}
|
| 388 |
+
$$
|
| 389 |
+
|
| 390 |
+
We get (12) from (11) based on Cauchy-Schwarz inequality. Based on the inequality $\| W V \| \leq$ $\| W \| \| V \|$ and the assumption of bounded gradient variance for case I in (10), we get the final inequality.
|
parse/train/BJxH22EKPS/BJxH22EKPS_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJxH22EKPS/BJxH22EKPS_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJxH22EKPS/BJxH22EKPS_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJxyZkBKDr/HJxyZkBKDr.md
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# NAS-BENCH-201: EXTENDING THE SCOPE OF REPRODUCIBLE NEURAL ARCHITECTURE SEARCH
|
| 2 |
+
|
| 3 |
+
Xuanyi Dong†‡ ∗and Yi Yang† †ReLER, CAI, University of Technology Sydney, ‡Baidu Research
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Neural architecture search (NAS) has achieved breakthrough success in a great number of applications in the past few years. It could be time to take a step back and analyze the good and bad aspects in the field of NAS. A variety of algorithms search architectures under different search space. These searched architectures are trained using different setups, e.g., hyper-parameters, data augmentation, regularization. This raises a comparability problem when comparing the performance of various NAS algorithms. NAS-Bench-101 has shown success to alleviate this problem. In this work, we propose an extension to NAS-Bench-101: NAS-Bench201 with a different search space, results on multiple datasets, and more diagnostic information. NAS-Bench-201 has a fixed search space and provides a unified benchmark for almost any up-to-date NAS algorithms. The design of our search space is inspired from the one used in the most popular cell-based searching algorithms, where a cell is represented as a directed acyclic graph. Each edge here is associated with an operation selected from a predefined operation set. For it to be applicable for all NAS algorithms, the search space defined in NAS-Bench-201 includes all possible architectures generated by 4 nodes and 5 associated operation options, which results in 15,625 neural cell candidates in total. The training log using the same setup and the performance for each architecture candidate are provided for three datasets. This allows researchers to avoid unnecessary repetitive training for selected architecture and focus solely on the search algorithm itself. The training time saved for every architecture also largely improves the efficiency of most NAS algorithms and brings a more computational cost friendly NAS community for a broader range of researchers. We provide additional diagnostic information such as fine-grained loss and accuracy, which can give inspirations to new designs of NAS algorithms. In further support of the proposed NAS-Bench201, we have analyzed it from many aspects and benchmarked 10 recent NAS algorithms, which verify its applicability.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
The deep learning community is undergoing a transition from hand-designed neural architecture (He et al., 2016; Krizhevsky et al., 2012; Szegedy et al., 2015) to automatically designed neural architecture (Zoph & Le, 2017; Pham et al., 2018; Real et al., 2019; Dong & Yang, 2019b; Liu et al., 2019). In its early era, the great success of deep learning was promoted by novel neural architectures, such as ResNet (He et al., 2016), Inception (Szegedy et al., 2015), VGGNet (Simonyan & Zisserman, 2015), and Transformer (Vaswani et al., 2017). However, manually designing one architecture requires human experts to try numerous different operation and connection choices (Zoph & Le, 2017). In contrast to architectures that are manually designed, those automatically found by neural architecture search (NAS) algorithms require much less human interaction and expert effort. These NAS-generated architectures have shown promising results in many domains, such as image recognition (Zoph & Le, 2017; Pham et al., 2018; Real et al., 2019), sequence modeling (Pham et al., 2018; Dong & Yang, 2019b; Liu et al., 2019), etc.
|
| 12 |
+
|
| 13 |
+
Recently, a variety of NAS algorithms have been increasingly proposed. While these NAS methods are methodically designed and show promising improvements, many setups in their algorithms are different. (1) Different search space is utilized, e.g., different macro skeletons of the whole architecture (Zoph et al., 2018; Tan et al., 2019) and a different operation set for the micro cell within the skeleton (Pham et al., 2018), etc. (2) After a good architecture is selected, various strategies can be employed to train this architecture and report the performance, e.g., different data augmentation (Ghiasi et al., 2018; Zhang et al., 2018), different regularization (Zoph et al., 2018), different scheduler (Loshchilov & Hutter, 2017), and different selections of hyper-parameters (Liu et al., 2018; Dong & Yang, 2019a). (3) The validation set for testing the performance of the selected architecture is not split in the same way (Liu et al., 2019; Pham et al., 2018). These discrepancies raise a comparability problem when comparing the performance of various NAS algorithms, making it difficult to conclude their contributions.
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
Figure 1: Top: the macro skeleton of each architecture candidate. Bottom-left: examples of neural cell with 4 nodes. Each cell is a directed acyclic graph, where each edge is associated with an operation selected from a predefined operation set as shown in the Bottom-right.
|
| 17 |
+
|
| 18 |
+
In response to this problem, NAS-Bench-101 (Ying et al., 2019) and NAS-HPO-Bench (Klein & Hutter, 2019) are proposed. However, some NAS algorithms can not be applied directly on NASBench-101, and NAS-HPO-Bench only has 144 candidate architectures, which maybe insufficient to evaluate NAS algorithms. To extend these two benchmarks and towards better reproducibility of NAS methods1, we propose NAS-Bench-201 with a fixed cell search space, inspired from the search space used in the most popular neural cell-based searching algorithms (Zoph et al., 2018; Liu et al., 2019). As shown in Figure 1, each architecture consists of a predefined skeleton with a stack of the searched cell. In this way, architecture search is transformed into the problem of searching a good cell. Each cell is represented as a densely-connected directed acyclic graph (DAG) as shown in the bottom section of Figure 1. Here the node represents the sum of the feature maps and each edge is associated with an operation transforming the feature maps from the source node to the target node. The size of the search space is related to the number of nodes defined for the DAG and the size of the operation set. In NAS-Bench-201, we choose 4 nodes and 5 representative operation candidates for the operation set, which generates a total search space of 15,625 cells/architectures. Each architecture is trained multiple times on three different datasets. The training log and performance of each architecture are provided for each run. The training accuracy/test accuracy/training loss/test loss after every training epoch for each architecture plus the number of parameters and floating point operations (FLOPs) are accessible.
|
| 19 |
+
|
| 20 |
+
Hopefully, NAS-Bench-201 will show its value in the field of NAS research. (1) It provides a unified benchmark for most up-to-date NAS algorithms including all cell-based NAS methods. With NASBench-201, researchers can focus on designing robust searching algorithm while avoiding tedious hyper-parameter tuning of the searched architecture. Thus, NAS-Bench-201 provides a relatively fair benchmark for the comparison of different NAS algorithms. (2) It provides the full training log of each architecture. Unnecessary repetitive training procedure of each selected architecture can be avoided (Liu et al., 2018; Zoph & Le, 2017) so that researchers can target on the essence of NAS, i.e., search algorithm. Another benefit is that the validation time for NAS largely decreases when testing in NAS-Bench-201, which provides a computational power friendly environment for more participations in NAS. (3) It provides results of each architecture on multiple datasets. The model transferability can be thoroughly evaluated for most NAS algorithms. (4) In NAS-Bench-201, we provide systematic analysis of the proposed search space. We also evaluate 10 recent advanced NAS algorithms including reinforcement learning (RL)-based methods, evolutionary strategy (ES)-based methods, differentiable-based methods, etc. We hope our empirical analysis can bring some insights to the future designs of NAS algorithms.
|
| 21 |
+
|
| 22 |
+
# 2 NAS-Bench-201
|
| 23 |
+
|
| 24 |
+
Our NAS-Bench-201 is algorithm-agnostic. Put simply, it is applicable to almost any up-to-date NAS algorithms. In this section, we will briefly introduce our NAS-Bench-201. The search space of NASBench-201 is inspired by cell-based NAS algorithms (Section 2.1). NAS-Bench-201 evaluates each architecture on three different datasets (Section 2.2). All implementation details of NAS-Bench-201 are introduced in Section 2.3. NAS-Bench-201 also provides some diagnostic information which can be used for potentially better designs of future NAS algorithms (discussed in Section 2.4).
|
| 25 |
+
|
| 26 |
+
# 2.1 ARCHITECTURES IN THE SEARCH SPACE
|
| 27 |
+
|
| 28 |
+
Macro Skeleton. Our search space follows the design of its counterpart as used in the recent neural cell-based NAS algorithms (Liu et al., 2019; Zoph et al., 2018; Pham et al., 2018). As shown in the top of Figure 1, the skeleton is initiated with one 3-by-3 convolution with 16 output channels and a batch normalization layer (Ioffe & Szegedy, 2015). The main body of the skeleton includes three stacks of cells, connected by a residual block. Each cell is stacked $N = 5$ times, with the number of output channels as 16, 32 and 64 for the first, second and third stages, respectively. The intermediate residual block is the basic residual block with a stride of 2 (He et al., 2016), which serves to downsample the spatial size and double the channels of an input feature map. The shortcut path in this residual block consists of a 2-by-2 average pooling layer with stride of 2 and a 1-by-1 convolution. The skeleton ends up with a global average pooling layer to flatten the feature map into a feature vector. Classification uses a fully connected layer with a softmax layer to transform the feature vector into the final prediction.
|
| 29 |
+
|
| 30 |
+
Searched Cell. Each cell in the search space is represented as a densely connected DAG. The densely connected DAG is obtained by assigning a direction from the $i$ -th node to the $j$ -th node $( i < j )$ for each edge in an undirected complete graph. Each edge in this DAG is associated with an operation transforming the feature map from the source node to the target node. All possible operations are selected from a predefined operation set, as shown in Figure 1(bottom-right). In our NAS-Bench-201, the predefined operation set $\mathcal { O }$ has $L = 5$ representative operations: (1) zeroize, (2) skip connection, (3) 1-by-1 convolution, (4) 3-by-3 convolution, and (5) 3-by-3 average pooling layer. The convolution in this operation set is an abbreviation of an operation sequence of ReLU, convolution, and batch normalization. The DAG has $V = 4$ nodes, where each node represents the sum of all feature maps transformed through the associated operations of the edges pointing to this node. We choose $V = 4$ to allow the search space to contain basic residual block-like cells, which requires 4 nodes. Densely connected DAG does not restrict the searched topology of the cell to be densely connected, since we include zeroize in the operation set, which is an operation of dropping the associated edge. Besides, since we do not impose the constraint on the maximum number of edges (Ying et al., 2019), our search space is applicable to most NAS algorithms, including all cell-based NAS algorithms.
|
| 31 |
+
|
| 32 |
+
# 2.2 DATASETS
|
| 33 |
+
|
| 34 |
+
We train and evaluate each architecture on CIFAR-10, CIFAR-100 (Krizhevsky et al., 2009), and ImageNet-16-120 (Chrabaszcz et al., 2017). We choose these three datasets because CIFAR and ImageNet (Russakovsky et al., 2015) are the most popular image classification datasets.
|
| 35 |
+
|
| 36 |
+
We split each dataset into training, validation and test sets to provide a consistent training and evaluation settings for previous NAS algorithms (Liu et al., 2019). Most NAS methods use the validation set to evaluate architectures after the architecture is optimized on the training set. The validation performance of the architectures serves as supervision signals to update the searching algorithm. The test set is to evaluate the performance of each searching algorithm by comparing the indicators (e.g., accuracy, model size, speed) of their selected architectures. Previous methods use different splitting strategies, which may result in various searching costs and unfair comparisons. We hope to use the proposed splits to unify the training, validation and test sets for a fairer comparison.
|
| 37 |
+
|
| 38 |
+
CIFAR-10: It is a standard image classification dataset and consists of 60K $3 2 \times 3 2$ colour images in 10 classes. The original training set contains 50K images, with 5K images per class. The original test set contains 10K images, with 1K images per class. Due to the need of validation set, we split all 50K training images in CIFAR-10 into two groups. Each group contains 25K images with 10 classes. We regard the first group as the new training set and the second group as the validation set.
|
| 39 |
+
|
| 40 |
+
CIFAR-100: This dataset is just like CIFAR-10. It has the same images as CIFAR-10 but categorizes each image into 100 fine-grained classes. The original training set on CIFAR-100 has 50K images, and the original test set has 10K images. We randomly split the original test set into two group of equal size — 5K images per group. One group is regarded as the validation set, and another one is regarded as the new test set.
|
| 41 |
+
|
| 42 |
+
ImageNet-16-120: We build ImageNet-16-120 from the down-sampled variant of ImageNet (ImageNet $1 6 \times 1 6$ ). As indicated in Chrabaszcz et al. (2017), down-sampling images in ImageNet can largely reduce the computation costs for optimal hyper-parameters of some classical models while maintaining similar searching results. Chrabaszcz et al. (2017) down-sampled the original ImageNet to $1 6 \times 1 6$ pixels to form ImageNet $. 6 \times 1 6$ , from which we select all images with label $\in [ 1 , 1 2 0 ]$ to construct ImageNet-16-120. In sum, ImageNet-16-120 contains 151.7K training images, 3K validation images, and 3K test images with 120 classes.
|
| 43 |
+
|
| 44 |
+
By default, in this paper, “the training set”, “the validation set”, “the test set” indicate the new training, validation, and test sets, respectively.
|
| 45 |
+
|
| 46 |
+
# 2.3 ARCHITECTURE PERFORMANCE
|
| 47 |
+
|
| 48 |
+
Training Architectures. In order to unify the performance of every architecture, we give the performance of every architecture in our search space. In our NAS-Bench-201, we follow previous literature to set up the hyper-parameters and training strategies (Zoph et al., 2018; Loshchilov & Hutter, 2017; He et al., 2016). We train each architecture with the same strategy, which is shown in Table 1. For simplification, we denote all hyperparameters for training a model as a set $\mathcal { H }$ , and we use $\mathcal { H } ^ { \dagger }$ to denote the values of hyper-parameter that we use. Specifically, we train each architecture via Nesterov momentum SGD, using the cross-entropy loss for 200 epochs in total. We set the weight decay as 0.0005 and decay the learning rate from 0.1 to 0 with a cosine annealing (Loshchilov & Hutter, 2017). We use the same $\mathcal { H } ^ { \dagger }$ on different datasets, except for the data augmentation which is slightly different due to the image resolution. On CIFAR, we use the random flip with probability of 0.5, the random crop $3 2 \times 3 2$ patch with 4 pixels padding on each border, and the normalization over RGB channels. On ImageNet-16-120, we use a similar strategy but random crop $1 6 \times 1 6$ patch with 2 pixels padding on each border. Apart from using $\mathcal { H } ^ { \dagger }$ for all datasets, we also use a different hyper-parameter set $\bar { \mathcal { H } } ^ { \dagger }$ for CIFAR-10. It is similar to $\mathcal { H } ^ { \dagger }$ but its total number of training epochs is 12. In this way, we could provide bandit-based algorithms (Falkner et al., 2018; Li et al., 2018) more options for the usage of short training budget (see more details in appendix).
|
| 49 |
+
|
| 50 |
+
Table 1: The training hyper-parameter set $\mathcal { H } ^ { \dagger }$ .
|
| 51 |
+
|
| 52 |
+
<table><tr><td rowspan=2 colspan=1>optimizerNesterovmomentumweight decaybatch sizeVrandom flipnormalization</td><td rowspan=1 colspan=1>SGD</td><td rowspan=2 colspan=1>initialLRending LRLR scheduleepochinitial channelNrandom crop</td><td rowspan=2 colspan=1>0.10cosine200165</td></tr><tr><td rowspan=1 colspan=1>√0.90.00052564p=0.5<</td></tr></table>
|
| 53 |
+
|
| 54 |
+
Metrics. We train each architecture with different random seeds on different datasets. We evaluate each architecture $A$ after every training epoch. NAS-Bench-201 provides the training, validation,
|
| 55 |
+
|
| 56 |
+
and test loss as well as accuracy. We show the supported metrics on different datasets in Table 2. Users can easily use our API to query the results of each trial of $A$ , which has negligible computational costs. In this way, researchers could significantly speed up their searching algorithm on these datasets and focus solely on the essence of NAS.
|
| 57 |
+
|
| 58 |
+
We list the training/test loss/accuracies over
|
| 59 |
+
|
| 60 |
+
Table 2: NAS-Bench-201 provides the following metrics with $\mathcal { H } ^ { \dagger }$ . ‘Acc.’ means accuracy.
|
| 61 |
+
|
| 62 |
+
<table><tr><td>Dataset</td><td>TrainLoss/Acc.Eval Loss/Acc.</td><td></td></tr><tr><td>CIFAR-10</td><td>train set</td><td>valid set</td></tr><tr><td>CIFAR-10</td><td>train+valid set</td><td>test set</td></tr><tr><td>CIFAR-100</td><td>train set</td><td>valid set</td></tr><tr><td>CIFAR-100</td><td>train set</td><td>test set</td></tr><tr><td>ImageNet-16-120</td><td>train set</td><td>valid set</td></tr><tr><td>ImageNet-16-120</td><td>train set</td><td>test set</td></tr></table>
|
| 63 |
+
|
| 64 |
+
different split sets on four datasets in Table 2. On CIFAR-10, we train the model on the training set and evaluate it on the validation set. We also train the model on the training and validation set and evaluate it on the test set. These two paradigm follow the typical experimental setup on CIFAR-10 in previous literature (Liu et al., 2018; Zoph et al., 2018; Liu et al., 2018; Pham et al., 2018). On CIFAR-100 and ImageNet-16-120, we train the model on the training set and evaluate it on both validation and test sets.
|
| 65 |
+
|
| 66 |
+
Table 3: We summarize some characteristics of NAS-Bench-101 and NAS-Bench-201. Our NASBench-201 can directly be applicable to almost any up-to-date NAS algorithms. In contrast, as pointed in (Ying et al., 2019), NAS algorithms based on parameter sharing or network morphisms cannot be directly evaluated on NAS-Bench-101. Besides, NAS-Bench-201 provides train/validation/test performance on three (one for NAS-Bench-101) different datasets so that the generality of NAS algorithms can be evaluated. It also provides some diagnostic information that may provide insights to design better NAS algorithms.
|
| 67 |
+
|
| 68 |
+
<table><tr><td rowspan="2"></td><td rowspan="2">#archit -ectures</td><td rowspan="2">#data -sets</td><td rowspan="2">10</td><td rowspan="2">search space constraint</td><td colspan="4">Supported NAS algorithms</td><td rowspan="2">Diagnostic information</td></tr><tr><td>RL</td><td>ES</td><td>|Diff.]</td><td>HPO</td></tr><tr><td>NAS-Bench-101</td><td>510M</td><td>1</td><td>3</td><td>constrain #edges1</td><td>partial</td><td>partial</td><td>none</td><td>most</td><td></td></tr><tr><td>NAS-Bench-201</td><td>15.6K</td><td>3</td><td>5</td><td>no constraint</td><td>all</td><td>all</td><td>all</td><td>most</td><td>fine-grained info., param., etc</td></tr></table>
|
| 69 |
+
|
| 70 |
+
# 2.4 DIAGNOSTIC INFORMATION
|
| 71 |
+
|
| 72 |
+
Validation accuracy is a commonly used supervision signal for NAS. However, considering the expensive computational costs for evaluating the architecture, the signal is too sparse. In our NASBench-201, we also provide some diagnostic information which is some extra statistics obtained during training each architecture. Collecting these statistics almost involves no extra computation cost but may provide insights for better designs and training strategies of different NAS algorithms, such as platform-aware NAS (Tan et al., 2019), accuracy prediction (Baker et al., 2018), mutationbased NAS (Cai et al., 2018; Chen et al., 2016), etc.
|
| 73 |
+
|
| 74 |
+
Architecture Computational Costs: NAS-Bench-201 provides three computation metrics for each architecture — the number of parameters, FLOPs, and latency. Algorithms that target on searching architectures with computational constraints, such as models on edge devices, can use these metrics directly in their algorithm designs without extra calculations.
|
| 75 |
+
|
| 76 |
+
Fine-grained training and evaluation information. NAS-Bench-201 tracks the changes in loss and accuracy of every architecture after every training epochs. These fine-grained training and evaluation information shows the tendency of the architecture performance and could indicate some attributes of the model, such as the speed of convergence, the stability, the over-fitting or under-fitting levels, etc. These attributes may benefit the designs of NAS algorithms. Besides, some methods learn to predict the final accuracy of an architecture based on the results of few early training epochs (Baker et al., 2018). These algorithm can be trained faster and the performance of the accuracy prediction can be evaluated using the fine-grained evaluation information.
|
| 77 |
+
|
| 78 |
+
Parameters of optimized architecture. Our NAS-Bench-201 releases the trained parameters for each architecture. This can provide ground truth label for hypernetwork-based NAS methods (Zhang et al., 2019; Brock et al., 2018), which learn to generate parameters of an architecture. Other methods mutate an architecture to become another one (Real et al., 2019; Cai et al., 2018). With NAS-Bench-201, researchers could directly use the off-the-shelf parameters instead of training from scratch and analyze how to transfer parameters from one architecture to another.
|
| 79 |
+
|
| 80 |
+
# 3 DIFFERENCE WITH EXISTING NAS BENCHMARKS
|
| 81 |
+
|
| 82 |
+
To the best of our knowledge, NAS-Bench-101 (Ying et al., 2019) is the only existing large-scale architecture dataset. Similar to NAS-Bench-201, NAS-Bench-101 also transforms the problem of architecture search into the problem of searching neural cells, represented as a DAG. Differently, NAS-Bench-101 defines operation candidates on the node, whereas we associate operations on the edge as inspired from (Liu et al., 2019; Dong & Yang, 2019b; Zoph et al., 2018). We summarize characteristics of our NAS-Bench-201 and NAS-Bench-101 in Table 3. The main highlights of our NAS-Bench-201 are as follows. (1) NAS-Bench-201 is algorithm-agnostic while NAS-Bench
|
| 83 |
+
|
| 84 |
+

|
| 85 |
+
Figure 2: Training, validation, test accuracy of each architecture on CIFAR-10, CIFAR-100, and ImageNet-16-120. We also visualize the results of ResNet in the orange star marker.
|
| 86 |
+
|
| 87 |
+
101 without any modification is only applicable to selected algorithms (Yu et al., 2020; Zela et al., 2020). The original complete search space, based on the nodes in NAS-Bench-101, is extremely huge. So, it is exceedingly difficult to efficiently traverse the training of all architectures. To trade off the computational cost and the size of the search space, they constrain the maximum number of edges in the DAG. However, it is difficult to incorporate this constraint in all NAS algorithms, such as NAS algorithms based on parameter-sharing (Liu et al., 2019; Pham et al., 2018). Therefore, many NAS algorithms cannot be directly evaluated on NAS-Bench-101. Our NAS-Bench-201 solves this problem by sacrificing the number of nodes and including all possible edges so that our search space is algorithm-agnostic. (2) We provide extra diagnostic information, such as architecture computational cost, fine-grained training and evaluation time, etc., which give inspirations to better and efficient designs of NAS algorithms utilizing these diagnostic information.
|
| 88 |
+
|
| 89 |
+
NAS-HPO-Bench (Klein & Hutter, 2019) evaluated 62208 configurations in the joint NAS and hyper-parameter space for a simple 2-layer feed-forward network. Since NAS-HPO-Bench has only 144 architectures, it could be insufficient to evaluate different NAS algorithms.
|
| 90 |
+
|
| 91 |
+
# 4 ANALYSIS OF NAS-Bench-201
|
| 92 |
+
|
| 93 |
+
An overview of architecture performance. The performance of each architecture is shown in Figure 2. We show the test accuracy of every architecture in our search space in the left column of Figure 2. The training, validation and test accuracy with respect to the number of parameters are shown in the rest three columns, respectively. Results show that a different number of parameters will affect the performance of the architectures, which indicates that the choices of operations are essential in NAS. We also observe that the performance of the architecture can vary even when the number of parameters stays the same. This observation indicates the importance of how the operations/cells are connected. We compare the architectures with a classical human-designed architecture (ResNet) in all cases, which is indicated by an orange star mark. ResNet shows competitive performance in three datasets, however, it still has room to improve, i.e., about $2 \%$ compared to the best architecture in CIFAR-100 and ImageNet-16-120, about $1 \%$ compared to the best one with the same amount of parameters in CIFAR-100 and ImageNet-16-120.
|
| 94 |
+
|
| 95 |
+

|
| 96 |
+
Figure 3: The ranking of each architecture on three datasets, sorted by the ranking in CIFAR-10.
|
| 97 |
+
|
| 98 |
+
Architecture ranking on three datasets. The ranking of every architecture in our search space is shown in Figure 3, where the architecture ranked in CIFAR-10 $\mathbf { \dot { X } } \mathbf { \cdot }$ -axis) is ranked as in y-axis in CIFAR-100 and ImageNet-16-120, indicated by green and red markers respectively. The performance of the architectures shows a generally consistent ranking over the three datasets with slightly different variance, which serves to test the generality of the searching algorithm.
|
| 99 |
+
|
| 100 |
+
Correlations of validation and test accuracies. We visualize the correlation between the validation and test accuracy within one dataset and across datasets in Figure 4. The correlation within one dataset is high compared to cross-dataset correlation. The correlation dramatically decreases as we
|
| 101 |
+
|
| 102 |
+
only pick the top performing architectures. When we directly transfer the best architecture in one dataset to another (a vanilla strategy), it can not $100 \%$ secure a good performance. This phenomena is a call for better transferable NAS algorithms instead of vanilla strategy.
|
| 103 |
+
|
| 104 |
+
Dynamic ranking of architectures. We show the ranking of the performance of all architectures in different time stamps in Figure 5. The ranking based on the validation set (y axis) gradually converges to the ranking ba
|
| 105 |
+
|
| 106 |
+

|
| 107 |
+
Figure 4: We report the correlation coefficient between the accuracy on 6 sets, i.e., CIFAR-10 validation set (C10- V), CIFAR-10 test set (C10-T), CIFAR-100 validation set (C100-V), CIFAR-100 test set (C100-T), ImageNet-16-120 validation set (I120-V), ImageNet-16-120 test set (I120-T). ed on the final test accuracy (x axis).
|
| 108 |
+
|
| 109 |
+

|
| 110 |
+
Figure 5: The ranking of all architectures based on the validation accuracy at different time stamps (y axis) sorted by the final test accuracy (x axis).
|
| 111 |
+
|
| 112 |
+
# 5 BENCHMARK
|
| 113 |
+
|
| 114 |
+
In this section, we evaluate 10 recent searching methods on our NAS-Bench-201, which can serve as baselines for future NAS algorithms in our dataset. Specifically, we evaluate some typical NAS algorithms: (I) Random Search algorithms, e.g., random search (RS) (Bergstra & Bengio, 2012), random search with parameter sharing (RSPS) (Li & Talwalkar, 2019). (II) ES methods, e.g., REA (Real et al., 2019). (III) RL algorithms, e.g., REINFORCE (Williams, 1992), ENAS (Pham et al., 2018). (IV) Differentiable algorithms. e.g., first order DARTS (DARTS-V1) (Liu et al., 2019), second order DARTS (DARTS-V2), GDAS (Dong & Yang, 2019b), and SETN (Dong & Yang, 2019a). (V) HPO methods, e.g., BOHB (Falkner et al., 2018). We experimented all NAS algorithms on a single GeForce GTX 1080 Ti GPU.
|
| 115 |
+
|
| 116 |
+
Table 4: The utility of our NAS-Bench-201 for different NAS algorithms. We show whether a NAS algorithm can use our NAS-Bench-201 to accelerate the searching and evaluation procedure.
|
| 117 |
+
|
| 118 |
+
<table><tr><td rowspan=1 colspan=1>accelerate</td><td rowspan=1 colspan=1>RS</td><td rowspan=1 colspan=1>RSPS</td><td rowspan=1 colspan=1>DARTS-V1</td><td rowspan=1 colspan=1>DARTS-V2</td><td rowspan=1 colspan=1>GDAS</td><td rowspan=1 colspan=1>SETN</td><td rowspan=1 colspan=1>REA</td><td rowspan=1 colspan=1>REINFORCE</td><td rowspan=1 colspan=1>ENAS</td><td rowspan=1 colspan=1>BOHB</td></tr><tr><td rowspan=1 colspan=1>searchevaluation</td><td rowspan=1 colspan=1>V</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>V</td><td rowspan=1 colspan=1>1√</td><td rowspan=1 colspan=1>V</td><td rowspan=1 colspan=1>√√</td></tr></table>
|
| 119 |
+
|
| 120 |
+
<table><tr><td rowspan="2">Method</td><td rowspan="2">Search (seconds)</td><td colspan="2">CIFAR-10</td><td colspan="2">CIFAR-100</td><td colspan="2">ImageNet-16-120</td></tr><tr><td>validation</td><td>test</td><td>validation</td><td>test</td><td>validation</td><td>test</td></tr><tr><td>RSPS</td><td>8007.13</td><td>80.42±3.58</td><td>84.07±3.61</td><td>52.12±5.55</td><td>52.31±5.77</td><td>27.22±3.24</td><td>26.28±3.09</td></tr><tr><td>DARTS-V1</td><td>11625.77</td><td>39.77±0.00</td><td>54.30±0.00</td><td>15.03±0.00</td><td>15.61±0.00</td><td>16.43±0.00</td><td>16.32±0.00</td></tr><tr><td>DARTS-V2</td><td>35781.80</td><td>39.77±0.00</td><td>54.30±0.00</td><td>15.03±0.00</td><td>15.61±0.00</td><td>16.43±0.00</td><td>16.32±0.00</td></tr><tr><td>GDAS</td><td>31609.80</td><td>89.89±0.08</td><td>93.61±0.09</td><td>71.34±0.04</td><td>70.70±0.30</td><td>41.59±1.33</td><td>41.71±0.98</td></tr><tr><td>SETN</td><td>34139.53</td><td>84.04±0.28</td><td>87.64±0.00</td><td>58.86±0.06</td><td>59.05±0.24</td><td>33.06±0.02</td><td>32.52±0.21</td></tr><tr><td>ENAS</td><td>14058.80</td><td>37.51±3.19</td><td>53.89±0.58</td><td>13.37±2.35</td><td>13.96±2.33</td><td>15.06±1.95</td><td>14.84±2.10</td></tr><tr><td>RSPSt</td><td>7587.12</td><td>84.16±1.69</td><td>87.66±1.69</td><td>59.00±4.60</td><td>58.33±4.34</td><td>31.56±3.28</td><td>31.14±3.88</td></tr><tr><td>DARTS-V1†</td><td>10889.87</td><td>39.77±0.00</td><td>54.30±0.00</td><td>15.03±0.00</td><td>15.61±0.00</td><td>16.43±0.00</td><td>16.32±0.00</td></tr><tr><td>DARTS-V2t</td><td>29901.67</td><td>39.77±0.00</td><td>54.30±0.00</td><td>15.03±0.00</td><td>15.61±0.00</td><td>16.43±0.00</td><td>16.32±0.00</td></tr><tr><td>GDASt</td><td>28925.91</td><td>90.00±0.21</td><td>93.51±0.13</td><td>71.14±0.27</td><td>70.61±0.26</td><td>41.70±1.26</td><td>41.84±0.90</td></tr><tr><td>SETNt</td><td>31009.81</td><td>82.25±5.17</td><td>86.19±4.63</td><td>56.86±7.59</td><td>56.87±7.77</td><td>32.54±3.63</td><td>31.90±4.07</td></tr><tr><td>ENASt</td><td>13314.51</td><td>39.77±0.00</td><td>54.30±0.00</td><td>15.03±0.00</td><td>15.61±0.00</td><td>16.43±0.00</td><td>16.32±0.00</td></tr><tr><td>REA RS</td><td>0.02</td><td>91.19±0.31</td><td>93.92±0.30</td><td>71.81±1.12</td><td>71.84±0.99</td><td>45.15±0.89</td><td>45.54±1.03</td></tr><tr><td></td><td>0.01</td><td>90.93±0.36</td><td>93.70±0.36</td><td>70.93±1.09</td><td>71.04±1.07</td><td>44.45±1.10</td><td>44.57±1.25</td></tr><tr><td>REINFORCE</td><td>0.12</td><td>91.09±0.37</td><td>93.85±0.37</td><td>71.61±1.12</td><td>71.71±1.09</td><td>45.05±1.02</td><td>45.24±1.18</td></tr><tr><td>BOHB</td><td>3.59</td><td>90.82±0.53</td><td>93.61±0.52</td><td>70.74±1.29</td><td>70.85±1.28</td><td>44.26±1.36</td><td>44.42±1.49</td></tr><tr><td>ResNet</td><td rowspan="2">N/A</td><td>90.83</td><td>93.97</td><td>70.42</td><td>70.86</td><td>44.53</td><td>43.63</td></tr><tr><td>optimal</td><td>91.61</td><td>94.37</td><td>73.49</td><td>73.51</td><td>46.77</td><td>47.31</td></tr></table>
|
| 121 |
+
|
| 122 |
+
Table 5: We evaluate $I O$ different searching algorithms in our NAS-Bench-201. The first block shows results of parameter sharing based NAS methods. The second block is similar to the first one, however, BN layers in the searching cells do not keep running estimates but always use batch statistics. The third block shows results of NAS methods without parameter sharing. Each algorithm uses the training and validation set of CIFAR-10 for searching. We show results of their searched architectures for (1) training on the CIFAR-10 train set and evaluating on its validation set; (2) training on the CIFAR-10 train+validation sets and evaluating on its test set; (3) training on the CIFAR-10 or ImageNet-16-120 train set and evaluating on their validation or test sets. “optimal” indicates the highest mean accuracy for each set. We report the mean and std of 500 runs for RS, REA, REINFORCE, and BOHB and of 3 runs for RSPS, DARTS, GDAS, SETN, and ENAS.
|
| 123 |
+
|
| 124 |
+

|
| 125 |
+
Figure 6: We show results of 500 runs for RS, REA, REINFORCE, and BOHB on CIFAR-10. The architecture is searched on CIFAR-10 and we report its validation accuracy (solid line) and test accuracy (dashed line) on three datasets. Each individual run is sorted by the validation accuracy of the searched architecture.
|
| 126 |
+
|
| 127 |
+
We show the benefits for speed using our NAS-Bench-201 for different NAS algorithms in Table 4. For each NAS algorithm, once the searching procedure finished and the final architecture is found, our NAS-Bench-201 can directly return the performance of this architecture. With NAS-Bench-201, NAS algorithms without parameter sharing can significantly reduce the searching time into seconds. Notably, it still requires several GPU hours for NAS algorithms with parameter sharing to complete the searching.
|
| 128 |
+
|
| 129 |
+
All algorithms use the training and validation set of CIFAR-10 to search architectures. In Table 5, Figure 6, Figure 7, and Figure 8, we report the performance of the searched architectures plus the optimal architecture on three datasets. We make the following observations: (1) NAS methods without parameter sharing (REA, RS, REINFORCE, and BOHB) outperform others. This be because training a model for a few epochs with the converged LR scheduler $( { \mathcal { H } } ^ { \ddagger } )$ can provide a good relative ranking of each architecture. (2) DARTS-V1 and DARTS-V2 quickly converge to find the architecture whose edges are all skip connection. A possible reason is that the original hyper-parameters of DARTS are chosen for their search space instead of ours. (3) The strategy of BN layers can significantly effect the NAS methods with parameter sharing. Using batch statistics are better than keep running estimates of the mean and variance. (4) Using our fine-grained information, REA, REINFORCE and RS can be finished in seconds which could significantly reduce the search costs and let researchers focus solely on the search algorithm itself.
|
| 130 |
+
|
| 131 |
+

|
| 132 |
+
Figure 7: Results keeping keep running estimates for BN layers in each searching cell. We use parameter sharing based NAS methods to search the architecture on CIFAR-10. After each searching epoch, we derive the architecture and show its validation accuracy (VALID) and test accuracy (TEST) on CIFAR-10. The 0-th epoch indicates the architecture is derived from the randomly initialized architecture encoding.
|
| 133 |
+
|
| 134 |
+

|
| 135 |
+
Figure 8: Results using batch statistics without keeping keep running estimates for BN layers in each searching cell. We use parameter sharing based NAS methods to search the architecture on CIFAR-10. After each searching epoch, we derive the architecture and show its validation accuracy (VALID) and test accuracy (TEST) on CIFAR-10. The 0-th epoch indicates the architecture is derived from the randomly initialized architecture encoding.
|
| 136 |
+
|
| 137 |
+
In Figure 7 and Figure 8, we show the performance of the architecture derived from each algorithm per searching epoch. DARTS-V1 will gradually over-fit to an architecture with all skip-connection operations. DARTS-V2 can alleviate this problem to some extent but will still over-fit after more epochs. It can further alleviate this problem by using batch statistics for BN layers. We train RSPS, GDAS, SETN, and ENAS five times longer than DARTS (250 epochs vs. 50 epochs). This is because at every iteration, RSPS, GDAS, SETN, and ENAS only optimize 1|O|=5 parameters of the shared parameters, whereas DARTS optimize all shared parameters. The searched architecture performs similar for GDAS after 50 searching epochs. RSPS and SETN show a higher variance of the searched architecture compared to GDAS.
|
| 138 |
+
|
| 139 |
+
Clarification. We have tried our best to implement each method. However, still, some algorithms might obtain non-optimal results since their hyper-parameters might not fit our NAS-Bench-201. We empirically found that some NAS algorithms are sensitive to some hyper-parameters, whereas we try to compare them in a fair way as we can (Please see more explanation in Appendix). If researchers can provide better results with different hyper-parameters, we are happy to update results according to the new experimental results. We also welcome more NAS algorithms to test on our dataset and would include them accordingly.
|
| 140 |
+
|
| 141 |
+
# 6 DISCUSSION
|
| 142 |
+
|
| 143 |
+
How to avoid over-fitting on NAS-Bench-201? Our NAS-Bench-201 provides a benchmark for NAS algorithms, aiming to provide a fair and computational cost-friendly environment to the NAS community. The trained architecture and the easy-to-access performance of each architecture might provide some insidious ways for designing algorithms to over-fit the best architecture in our NASBench-201. Thus, we propose some rules which we wish the users will follow to achieve the original intention of NAS-Bench-201, a fair and efficient benchmark.
|
| 144 |
+
|
| 145 |
+
1. No regularization for a specific operation. Since the best architecture is known in our benchmark, specific designs to fit the structural attributes of the best performed architecture are insidious ways to fit our NAS-Bench-201. For example, as mentioned in Section 5, we found that the best architecture with the same amount of parameters for CIFAR10 on NAS-Bench-201 is ResNet. Restrictions on the number of residual connections is a way to over-fit the CIFAR10 benchmark. While this can give a good result on this benchmark, the searching algorithm might not generalize to other benchmarks.
|
| 146 |
+
|
| 147 |
+
2. Use the provided performance. The training strategy affects the performance of the architecture. We suggest the users stick to the performance provided in our benchmark even if it is feasible to use other $\mathcal { H }$ to get a better performance. This provides a fair comparison with other algorithms.
|
| 148 |
+
|
| 149 |
+
3. Report results of multiple searching runs. Since our benchmark can help to largely decrease the computational cost for a number of algorithms. Multiple searching runs give stable results of the searching algorithm with acceptable time cost.
|
| 150 |
+
|
| 151 |
+
Limitation regarding to hyper-parameter optimization (HPO). The performance of an architecture depends on the hyper-parameters $\mathcal { H }$ for its training and the optimal configuration of $\mathcal { H }$ may vary for different architectures. In NAS-Bench-201, we use the same configuration for all architectures, which may bring biases to the performance of some architectures. One related solution is HPO, which aims to search the optimal hyper-parameter configuration. However, searching the optimal hyper-parameter configurations and the architecture in one shot is too computationally expensive and still is an open problem.
|
| 152 |
+
|
| 153 |
+
Potential designs using diagnostic information in NAS-Bench-201. As pointed in Section 2.4, different kinds of diagnostic information are provided. We hope that more insights about NAS could be found by analyzing these diagnostic information and further motivate potential solutions for NAS. For example, parameter sharing (Pham et al., 2018) is the crucial technique to improve the searching efficiency, but the shared parameter would sacrifice the accuracy of each architecture. Could we find a better way to share parameters of each architecture from the learned 15,625 models’ parameters?
|
| 154 |
+
|
| 155 |
+
Generalization ability of the search space. It is important to test the generalization of observations on this dataset. An idea strategy is to do all benchmark experiments on a much larger search space. Unfortunately, it is prohibitive regarding the expensive computational cost. We bring some results from (Ying et al., 2019) and (Zela et al., 2020) to provide some preliminary evidence of generalization. In Figure 2, we show the rankings of RS, REA, and REINFORCE is ( REA $>$ REINFORCE $> \mathrm { R } S$ ). This is consistent with results in NAS-Bench-101, which contains more architecture candidates. For NAS methods with parameter sharing, we find that $\mathrm { G D A S } \geq \mathrm { D A R T S } \geq \mathrm { E N A S }$ , which is also consistent with results in NAS-Bench-1SHOT1. Therefore, observations from our NAS-Bench201 may generalize to other search spaces.
|
| 156 |
+
|
| 157 |
+
# 7 CONCLUSION & FUTURE WORK
|
| 158 |
+
|
| 159 |
+
In this paper, we introduce NAS-Bench-201 that extends the scope of reproducible NAS. In NASBench-201, almost any NAS algorithms can be directly evaluated. We train and evaluate 15,625 architecture on three different datasets, and we provide results regarding different metrics. We comprehensively analyze our dataset and test some recent NAS algorithms on NAS-Bench-201 to serve as baselines for future works. In future, we will (1) consider HPO and NAS together and (2) much larger search space. We welcome researchers to try their NAS algorithms on our NAS-Bench201 and would update the paper to include their results.
|
| 160 |
+
|
| 161 |
+
Acknowledgements. We thank the ICLR area chair, ICLR reviewers, and authors of NAS-Bench101 for the constructive suggestions during the rebuttal and revision period.
|
| 162 |
+
|
| 163 |
+
# REFERENCES
|
| 164 |
+
|
| 165 |
+
Bowen Baker, Otkrist Gupta, Ramesh Raskar, and Nikhil Naik. Accelerating neural architecture search using performance prediction. In International Conference on Learning Representations Workshop (ICLR-W), 2018.
|
| 166 |
+
|
| 167 |
+
James Bergstra and Yoshua Bengio. Random search for hyper-parameter optimization. The Journal of Machine Learning Research (JMLR), 13(Feb):281–305, 2012.
|
| 168 |
+
|
| 169 |
+
Andrew Brock, Theodore Lim, James M Ritchie, and Nick Weston. SMASH: one-shot model architecture search through hypernetworks. In International Conference on Learning Representations (ICLR), 2018.
|
| 170 |
+
|
| 171 |
+
Han Cai, Tianyao Chen, Weinan Zhang, Yong Yu, and Jun Wang. Efficient architecture search by network transformation. In AAAI Conference on Artificial Intelligence (AAAI), pp. 2787–2794, 2018.
|
| 172 |
+
|
| 173 |
+
Tianqi Chen, Ian Goodfellow, and Jonathon Shlens. Net2net: Accelerating learning via knowledge transfer. In International Conference on Learning Representations (ICLR), 2016.
|
| 174 |
+
|
| 175 |
+
Patryk Chrabaszcz, Ilya Loshchilov, and Frank Hutter. A downsampled variant of imagenet as an alternative to the cifar datasets. arXiv preprint arXiv:1707.08819, 2017.
|
| 176 |
+
|
| 177 |
+
Xuanyi Dong and Yi Yang. One-shot neural architecture search via self-evaluated template network. In Proc. of the IEEE International Conference on Computer Vision (ICCV), pp. 3681–3690, 2019a.
|
| 178 |
+
|
| 179 |
+
Xuanyi Dong and Yi Yang. Searching for a robust neural architecture in four gpu hours. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1761–1770, 2019b.
|
| 180 |
+
|
| 181 |
+
Stefan Falkner, Aaron Klein, and Frank Hutter. BOHB: Robust and efficient hyperparameter optimization at scale. In The International Conference on Machine Learning (ICML), pp. 1436–1445, 2018.
|
| 182 |
+
|
| 183 |
+
Golnaz Ghiasi, Tsung-Yi Lin, and Quoc V Le. Dropblock: A regularization method for convolutional networks. In The Conference on Neural Information Processing Systems (NeurIPS), pp. 10727–10737, 2018.
|
| 184 |
+
|
| 185 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778, 2016.
|
| 186 |
+
|
| 187 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
|
| 188 |
+
|
| 189 |
+
Aaron Klein and Frank Hutter. Tabular benchmarks for joint architecture and hyperparameter optimization. arXiv preprint arXiv:1905.04970, 2019.
|
| 190 |
+
|
| 191 |
+
Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
|
| 192 |
+
|
| 193 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. ImageNet classification with deep convolutional neural networks. In The Conference on Neural Information Processing Systems (NeurIPS), pp. 1097–1105, 2012.
|
| 194 |
+
|
| 195 |
+
Liam Li and Ameet Talwalkar. Random search and reproducibility for neural architecture search. In The Conference on Uncertainty in Artificial Intelligence (UAI), 2019.
|
| 196 |
+
|
| 197 |
+
Lisha Li, Kevin Jamieson, Giulia DeSalvo, Afshin Rostamizadeh, and Ameet Talwalkar. Hyperband: A novel bandit-based approach to hyperparameter optimization. The Journal of Machine Learning Research (JMLR), 18(1):6765–6816, 2018.
|
| 198 |
+
|
| 199 |
+
Chenxi Liu, Barret Zoph, Maxim Neumann, Jonathon Shlens, Wei Hua, Li-Jia Li, Li Fei-Fei, Alan Yuille, Jonathan Huang, and Kevin Murphy. Progressive neural architecture search. In Proc. of the European Conference on Computer Vision (ECCV), pp. 19–34, 2018.
|
| 200 |
+
|
| 201 |
+
Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: Differentiable architecture search. In International Conference on Learning Representations (ICLR), 2019.
|
| 202 |
+
|
| 203 |
+
Ilya Loshchilov and Frank Hutter. SGDR: Stochastic gradient descent with warm restarts. In International Conference on Learning Representations (ICLR), 2017.
|
| 204 |
+
|
| 205 |
+
Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. In The Conference on Neural Information Processing Systems Workshop (NeurIPS-W), 2017.
|
| 206 |
+
|
| 207 |
+
Hieu Pham, Melody Guan, Barret Zoph, Quoc Le, and Jeff Dean. Efficient neural architecture search via parameters sharing. In The International Conference on Machine Learning (ICML), pp. 4095–4104, 2018.
|
| 208 |
+
|
| 209 |
+
Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V Le. Regularized evolution for image classifier architecture search. In AAAI Conference on Artificial Intelligence (AAAI), pp. 4780– 4789, 2019.
|
| 210 |
+
|
| 211 |
+
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. ImageNet large scale visual recognition challenge. International Journal of Computer Vision (IJCV), 115(3):211–252, 2015.
|
| 212 |
+
|
| 213 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations (ICLR), 2015.
|
| 214 |
+
|
| 215 |
+
Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1–9, 2015.
|
| 216 |
+
|
| 217 |
+
Mingxing Tan, Bo Chen, Ruoming Pang, Vijay Vasudevan, Mark Sandler, Andrew Howard, and Quoc V Le. Mnasnet: Platform-aware neural architecture search for mobile. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2820–2828, 2019.
|
| 218 |
+
|
| 219 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In The Conference on Neural Information Processing Systems (NeurIPS), pp. 5998–6008, 2017.
|
| 220 |
+
|
| 221 |
+
Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8(3-4):229–256, 1992.
|
| 222 |
+
|
| 223 |
+
Chris Ying, Aaron Klein, Esteban Real, Eric Christiansen, Kevin Murphy, and Frank Hutter. Nasbench-101: Towards reproducible neural architecture search. In The International Conference on Machine Learning (ICML), pp. 7105–7114, 2019.
|
| 224 |
+
|
| 225 |
+
Kaicheng Yu, Christian Sciuto, Martin Jaggi, Claudiu Musat, and Mathieu Salzmann. Evaluating the search phase of neural architecture search. In International Conference on Learning Representations (ICLR), 2020.
|
| 226 |
+
|
| 227 |
+
Arber Zela, Julien Siems, and Frank Hutter. Nas-bench-1shot1: Benchmarking and dissecting one shot neural architecture search. In International Conference on Learning Representations (ICLR), 2020.
|
| 228 |
+
|
| 229 |
+
Chris Zhang, Mengye Ren, and Raquel Urtasun. Graph hypernetworks for neural architecture search. In International Conference on Learning Representations (ICLR), 2019.
|
| 230 |
+
|
| 231 |
+
Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In International Conference on Learning Representations (ICLR), 2018.
|
| 232 |
+
|
| 233 |
+
Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. In International Conference on Learning Representations (ICLR), 2017.
|
| 234 |
+
|
| 235 |
+
Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. Learning transferable architectures for scalable image recognition. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 8697–8710, 2018.
|
| 236 |
+
|
| 237 |
+
<table><tr><td rowspan="2">EPOCHS</td><td rowspan="2">TOTAL</td><td colspan="2">CIFAR-10</td><td colspan="2">CIFAR-100</td><td colspan="2">ImageNet-16-120</td></tr><tr><td>validation</td><td>test</td><td>validation</td><td>test</td><td>validation</td><td>test</td></tr><tr><td>6</td><td>12 (H)</td><td>0.7767</td><td>0.7627</td><td>0.8086</td><td>0.8095</td><td>0.8052</td><td>0.7941</td></tr><tr><td>12</td><td>12 (H+)</td><td>0.9110</td><td>0.8983</td><td>0.9361</td><td>0.9368</td><td>0.9062</td><td>0.8952</td></tr><tr><td>12</td><td>200 (H+)</td><td>0.7520</td><td>0.7396</td><td>0.8071</td><td>0.8080</td><td>0.8167</td><td>0.8092</td></tr><tr><td>24</td><td>200 (H+)</td><td>0.7705</td><td>0.7594</td><td>0.8280</td><td>0.8290</td><td>0.8286</td><td>0.8217</td></tr><tr><td>100</td><td>200 (H+)</td><td>0.7938</td><td>0.7900</td><td>0.8529</td><td>0.8540</td><td>0.8262</td><td>0.8211</td></tr><tr><td>150</td><td>200 (H+)</td><td>0.8955</td><td>0.8926</td><td>0.9239</td><td>0.9246</td><td>0.8506</td><td>0.8425</td></tr><tr><td>175</td><td>200 (H+)</td><td>0.9834</td><td>0.9782</td><td>0.9743</td><td>0.9744</td><td>0.8539</td><td>0.8423</td></tr><tr><td>200</td><td>200 (Ht+)</td><td>0.9993</td><td>0.9937</td><td>0.9672</td><td>0.9671</td><td>0.8259</td><td>0.8124</td></tr></table>
|
| 238 |
+
|
| 239 |
+
Table 6: We compare the correlation of different training strategies. The correlation coefficient between the validation accuracy after several training epochs on CIFAR-10 and (1) the validation accuracy of full trained models on the CIFAR-10 training set, (2) the test accuracy on CIFAR-10 trained with the training and validation sets, (3) the validation/test accuracy on CIFAR-100 trained with the CIFAR-100 training set, (4) the validation/test accuracy on ImageNet-16-120 trained with the ImageNet-16-120 training set. We use the validation accuracy after “EPOCHS“ training epochs, where the the cosine annealing converged after “TOTAL” epochs.
|
| 240 |
+
|
| 241 |
+
# A MORE DETAILS OF NAS-Bench-201
|
| 242 |
+
|
| 243 |
+
Number of unique architectures. In our NAS-Bench-201, we encode each architecture by a 6- dimensional vector. The $i$ -th value in this vector indicates the operation in the $i \cdot$ -th edge in a cell. Since we have 5 possible operations, there are $5 ^ { 6 } = 1 5 6 2 5$ total unique models in this encoding. If we identify the isomorphic cell caused by the “skip-connect” operation, there are 12751 unique topology structures. If we identify the isomorphic cell caused by both “skip-connect” and “zeroize” operations, there are only 6466 unique topology structures. Note that, due to the numerical error, when given the same inputs, two architectures with the isomorphic cell might have different outputs.
|
| 244 |
+
|
| 245 |
+
Note that, when we build our NAS-Bench-201, we train and evaluate every architecture without considering isomorphism.
|
| 246 |
+
|
| 247 |
+
NAS-Bench-201 with bandit-based algorithms. Bandit-based algorithms, such as Hyperband (Li et al., 2018) and BOHB (Falkner et al., 2018), usually train models with a short time budget. In our NAS-Bench-201, on CIFAR-10, we provide two options if you want to obtain the performance of a model trained with a short time budget: (1) Results from $\mathcal { H } ^ { \ddag }$ , where the cosine annealing converged at the 12-th epoch. (2) Results from $\mathcal { H } ^ { \dagger }$ , where the cosine annealing converged at the 200-th epoch. As shown in Table 6, the performance of these converged networks is much more likely to correlate highly with the performance after a larger number of iterations than just taking an earlier point of a single cosine annealing trajectory. Therefore, we choose the first option for all NAS algorithms that do not use parameter sharing.
|
| 248 |
+
|
| 249 |
+
# B IMPLEMENTATION DETAILS
|
| 250 |
+
|
| 251 |
+
Based on the publicly available codes, we re-implement 10 NAS algorithms by ourselves to search architectures on our NAS-Bench-201. We provide the implementation details of each searching algorithm below.
|
| 252 |
+
|
| 253 |
+
We consider the searching time of the first order DARTS as a baseline (about 12000 seconds on CIFAR-10). When evaluating RS, REINFORCE, ENAS, and BOHB, we set the total time budget as 12000 seconds for them. By default, for NAS algorithms with parameter sharing, we follow most hyper-parameters from DARTS and do not learn the scale and shift parameters for BN layers in each searching cell. We setup the searching procedure of RSPS, GDAS, SETN, ENAS five times longer than DARTS, because they optimize $\textcircled { \frac { 1 } { 5 } }$ of parameters but DARTS optimize all parameters per iteration. Most configurations can be found at https://github.com/D-X-Y/ AutoDL-Projects/tree/master/configs/nas-benchmark/algos.
|
| 254 |
+
|
| 255 |
+
Random search (RS) (Bergstra & Bengio, 2012). We randomly select architectures until the total training time plus the time of one evaluation procedure reaches the total budget. We use the validation accuracy after 12 training epochs $( { \mathcal { H } } ^ { \ddagger } )$ , which can be obtained directly in our NAS-Bench-201 as discussed in Section 2.4. The architecture with the highest validation accuracy is selected as the final searched architecture.
|
| 256 |
+
|
| 257 |
+
Regularized evolution for image classifier architecture search (REA) (Real et al., 2019). We set the initial population size as 10, the number of cycles as infinity. The sample size is chosen as 10 from [3, 5, 10], according to Figure 9. We finish the algorithm once the simulated training time of the traversed architecture reaches the time budgets (12000 seconds). We use the validation accuracy after 12 training epochs $( { \mathcal { H } } ^ { \ddagger } )$ as the fitness.
|
| 258 |
+
|
| 259 |
+

|
| 260 |
+
Figure 9: The effect of different sample sizes for REA on the CIFAR-10 validation set.
|
| 261 |
+
|
| 262 |
+
REINFORCE (Williams, 1992). We follow (Ying et al., 2019) to use the REINFORCE algorithm as a baseline RL method. We use an architecture encoding to parameterize each candidate in our search space as (Liu et al., 2019; Dong & Yang, 2019b). We use the validation accuracy after 12 training epochs $\mathcal { H } ^ { \ddag }$ as the reward in REINFORCE. The architecture encoding is optimized via Adam. We evaluate the learning rate from [0.01, 0.02, 0.05, 0.1, 0.2, 0.5] following (Ying et al., 2019). According to Figure 10, the learning date is set as . The momentum for exponential moving average of 0.9. We finish the training once the simulated training time reaches the time budgets (12000 seconds).
|
| 263 |
+
|
| 264 |
+
The first order and second order DARTS (DARTS-V1 and DARTS-V2) (Liu et al., 2019). We train the shared parameters via Nesterov momentum SGD, using the cross-entropy loss for 50 epochs in total. We set weight decay as 0.0005 and momentum of 0.9. We decay the learning rate from 0.025 to 0.001 via cosine learning rate scheduler and clip the gradient by 5. We train the architecture encoding via Adam with the learning rate of 0.0003 and the weight decay of 0.001. We use the batch size of 64. The random horizontal flipping, random cropping with padding, and normalization are used for data augmentation. We choose these hyper-parameters following (Liu et al., 2019).
|
| 265 |
+
|
| 266 |
+

|
| 267 |
+
Figure 10: We evaluate the effect of different learning rates for REINFORCE, and report the CIFAR-10 validation accuracy of the searched architecture.
|
| 268 |
+
|
| 269 |
+
Random search with parameter sharing (RSPS) (Li & Talwalkar, 2019). We train RSPS with the similar hyper-parameters as that of DARTS. Differently, we train the algorithm in 250 epochs in total. During each searching iteration, we randomly sample one architecture in each batch training. Each architecture uses the training mode for BN during training and the evaluation mode during evaluation (Paszke et al., 2017). After training the shared parameters, we evaluate 100 randomly selected architectures with the shared parameters. For each architecture, we randomly choose one mini-batch with 256 validation samples to estimate the validation accuracy instead of using the whole validation set to calculate the precise validation accuracy. The one with the highest estimated validation accuracy will be selected. With the size of this mini-batch increasing, the more precise validation accuracy would be obtained and the better architecture would be selected. However, the searching costs will also be increased. We use the size of 256 to trade-off the accuracy and cost.
|
| 270 |
+
|
| 271 |
+
Gradient-based search using differentiable architecture sampler (GDAS) (Dong & Yang, 2019b). We use the most hyper-parameters as that of DARTS but train it for 250 epochs in total. The Gumbel-Softmax temperature is linearly decayed from 10 to 0.1.
|
| 272 |
+
|
| 273 |
+
Self-Evaluated Template Network (SETN) (Dong & Yang, 2019a). We use the most hyperparameters as that of DARTS but train it for 250 epochs in total. After training the shared parameters, we select 100 architectures with the highest probabilities (encoded by the learned architecture encoding). We evaluate these 100 selected architectures with the shared parameters. The evaluation procedure for these 100 architectures are the same as RSPS.
|
| 274 |
+
|
| 275 |
+
Table 7: The correlation between the probability or the one-shot validation accuracy (OSVA) and the ground truth accuracy on the CIFAR-10 validation set. “BN with Train” indicates that, during evaluation, the mean and variance of BN layers are calculated within each mini-batch. “BN with Eval” indicates that we accumulate mean and variance of BN layers in the training set and use these accumulated mean and variance for evaluation. We report the correlation as the average of 3 runs.
|
| 276 |
+
|
| 277 |
+
<table><tr><td rowspan="2">Methods</td><td colspan="3">CIFAR-1OValidation Set</td></tr><tr><td>Probability</td><td>OSVA (BN with Train)</td><td>OSVA (BN with Eval)</td></tr><tr><td>DARTS-V1</td><td>0.0779</td><td>0.0039</td><td>-0.0071</td></tr><tr><td>DARTS-V2</td><td>0.0862</td><td>0.0355</td><td>0.0109</td></tr><tr><td>SETN</td><td>0.0682</td><td>0.9049</td><td>0.0862</td></tr><tr><td>GDAS</td><td>0.2714</td><td>0.8141</td><td>0.2466</td></tr></table>
|
| 278 |
+
|
| 279 |
+
ENAS (Pham et al., 2018). We use a two layer LSTM as the controller with the hidden size of 32. We use the temperature of 5 and the tanh constant of 2.5 for the sampling logits Following (Pham et al., 2018), we also add the the controller’s sample entropy to the reward, weighted by 0.0001. We optimize the controller with Adam using the constant learning rate of 0.001. We optimize the network weights with SGD following the learning rate scheduler as the original paper and the batch size of 128. We did not impose any penalty to a specific operation.
|
| 280 |
+
|
| 281 |
+
BOHB (Falkner et al., 2018). We choose to use BOHB as an HPO algorithm on our NAS-Bench201. We follow (Ying et al., 2019) to set up the hyper-parameters for BOHB. We set the number of samples for the acquisition function to 4, the random fraction to $0 \%$ , the minimum-bandwidth to 0.3, the bandwidth factor to 3. We finish the algorithm once the simulated training time reaches the time budgets (12000 seconds).
|
| 282 |
+
|
| 283 |
+
# C DISCUSSION FOR NAS WITH PARAMETER SHARING
|
| 284 |
+
|
| 285 |
+
Parameter sharing (Pham et al., 2018) becomes a common technique to improve the efficiency of differentiable neural architecture search methods (Liu et al., 2019; Dong & Yang, 2019b;a). The shared parameters are shared over millions of architecture candidates. It is almost impossible for the shared parameters to be optimal for all candidates. We hope to evaluate the trained shared parameters quantitatively. Specially, we use DARTS, GDAS, and SETN to optimize the shared parameters and the architecture encoding on CIFAR-10. For each architecture candidate, we can calculate its probability of being a good architecture from the architecture encoding following SETN (Dong & Yang, 2019a). In addition, we can also evaluate a candidate using the shared parameters on the validation set to obtain “the one-shot validation accuracy”. It is computationally expensive to evaluate all candidates on the whole validation set. To accelerate this procedure, we evaluate each architecture on a mini-batch with the size of 2048, and use the accuracy on this mini-batch to approximate “the one-shot validation accuracy”. Ideally, the architecture ranking sorted by the probability or the one-shot validation accuracy should be similar to the ground truth ranking. We show the correlation between the proxy metric and the ground truth validation accuracy in Table 7. There are several observations: (1) The correlation between the probability (encoded by the architecture encoding) and the ground truth accuracy is low. It suggests that the argmax-based deriving strategy (Liu et al., 2019) can not secure a good architecture. It remains open on how to derive a good architecture after optimizing the shared parameters. (2) The behavior of BN layers is important to one-shot validation accuracy. The accumulated mean and variance from the training set are harmful to one-shot accuracy. Instead, each architecture candidate should re-calculate the mean and variance of the BN layers. (3) GDAS introduced Gumbel-softmax sampling when optimizing the architecture encoding. This strategy leads to a high correlation for the learned probability than that of DARTS. (4) The uniform sampling strategy for training the shared parameters (Dong & Yang, 2019a) can increase the correlation for one-shot accuracy compared to the strategy of the joint optimizing strategy (Dong & Yang, 2019b; Liu et al., 2019).
|
| 286 |
+
|
| 287 |
+
# D DETAILED INFORMATION OF NAS-Bench-201
|
| 288 |
+
|
| 289 |
+
In NAS-Bench-201 (version 1.0), every architecture is trained at least once. To be specific, 6219 architectures are trained once, 1621 architectures are trained twice, 7785 architectures are trained three times with different random seeds. Moreover, we are actively training all architectures with more seeds and will continue updating our NAS-Bench-201.
|
| 290 |
+
|
| 291 |
+
The latency in our NAS-Bench-201 (version 1.0) is computed by running each model on a single GPU (GeForce GTX 1080 Ti) with a batch size of 256. We report the latency on CIFAR-100 and ImageNet-16-120, and the latency on CIFAR-10 should be similar to CIFAR-10.
|
| 292 |
+
|
| 293 |
+
The usage of API. We provide convenient APIs to access our NAS-Bench-201, which can be easily installed via “pip install nas-bench-201”. Some examples are shown as follows:
|
| 294 |
+
|
| 295 |
+
from nas_201_api import NASBench201API as API
|
| 296 |
+
2 api $=$ API(’NAS-Bench-201-v1_0-e61699.pth’) for i, arch_str in enumerate(api): # show every architecturre print (’{:5d}/{:5d} : {:}’.format(i, len(api), arch_str)) 5 info $=$ api.query_meta_info_by_index(1) # get metrics of the 1-th arch res_dict $=$ info.get_metrics(’cifar10’, ’train’) # a dict saving loss/acc print (’The accuracy is {:.2f}’.format(res_dict[’accuracy’]))
|
| 297 |
+
8 print (’The loss is {:.2f}’.format(res_dict[’loss’])) 9 cos_dict $=$ info.get_comput_costs(’cifar100’) # a dict saving costs
|
| 298 |
+
10 print (’The flops is {:.2f} M’.format(cos_dict[’flops’]))
|
| 299 |
+
11 print (’The #parameters is {:.2f} MB’.format(cos_dict[’params’]))
|
| 300 |
+
12 print (’The latency is {:.3f} s’.format(cos_dict[’latency’]))
|
| 301 |
+
13 # query the index of a specific architecture from API
|
| 302 |
+
14 arch_index $=$ api.query_index_by_arch(’|nor_conv_3x3\~0|+|nor_conv_3x3\~0| avg_pool_3x3\~1|+|skip_connect\~0|nor_conv_3x3\~1|skip_connect\~2|’)
|
| 303 |
+
15 # get results of each trial for a specific architecture
|
| 304 |
+
16 results $=$ api.query_by_index(arch_index, ’cifar100’)
|
| 305 |
+
17 print (’There are {:} trials for this architecture [{:}] on cifar100’. format(len(results), api[arch_index]))
|
| 306 |
+
|
| 307 |
+
Please see https://github.com/D-X-Y/NAS-Bench-201 for more kinds of usages. The benchmark data file for API can be downloaded online from https://drive.google.com/ file/d/1SKW0Cu0u8-gb18zDpaAGi0f74UdXeGKs/view.
|
parse/train/HJxyZkBKDr/HJxyZkBKDr_content_list.json
ADDED
|
@@ -0,0 +1,1774 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "NAS-BENCH-201: EXTENDING THE SCOPE OF REPRODUCIBLE NEURAL ARCHITECTURE SEARCH ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
820,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Xuanyi Dong†‡ ∗and Yi Yang† †ReLER, CAI, University of Technology Sydney, ‡Baidu Research ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
167,
|
| 20 |
+
622,
|
| 21 |
+
199
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Neural architecture search (NAS) has achieved breakthrough success in a great number of applications in the past few years. It could be time to take a step back and analyze the good and bad aspects in the field of NAS. A variety of algorithms search architectures under different search space. These searched architectures are trained using different setups, e.g., hyper-parameters, data augmentation, regularization. This raises a comparability problem when comparing the performance of various NAS algorithms. NAS-Bench-101 has shown success to alleviate this problem. In this work, we propose an extension to NAS-Bench-101: NAS-Bench201 with a different search space, results on multiple datasets, and more diagnostic information. NAS-Bench-201 has a fixed search space and provides a unified benchmark for almost any up-to-date NAS algorithms. The design of our search space is inspired from the one used in the most popular cell-based searching algorithms, where a cell is represented as a directed acyclic graph. Each edge here is associated with an operation selected from a predefined operation set. For it to be applicable for all NAS algorithms, the search space defined in NAS-Bench-201 includes all possible architectures generated by 4 nodes and 5 associated operation options, which results in 15,625 neural cell candidates in total. The training log using the same setup and the performance for each architecture candidate are provided for three datasets. This allows researchers to avoid unnecessary repetitive training for selected architecture and focus solely on the search algorithm itself. The training time saved for every architecture also largely improves the efficiency of most NAS algorithms and brings a more computational cost friendly NAS community for a broader range of researchers. We provide additional diagnostic information such as fine-grained loss and accuracy, which can give inspirations to new designs of NAS algorithms. In further support of the proposed NAS-Bench201, we have analyzed it from many aspects and benchmarked 10 recent NAS algorithms, which verify its applicability. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
232,
|
| 42 |
+
267,
|
| 43 |
+
764,
|
| 44 |
+
640
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
667,
|
| 55 |
+
334,
|
| 56 |
+
683
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "The deep learning community is undergoing a transition from hand-designed neural architecture (He et al., 2016; Krizhevsky et al., 2012; Szegedy et al., 2015) to automatically designed neural architecture (Zoph & Le, 2017; Pham et al., 2018; Real et al., 2019; Dong & Yang, 2019b; Liu et al., 2019). In its early era, the great success of deep learning was promoted by novel neural architectures, such as ResNet (He et al., 2016), Inception (Szegedy et al., 2015), VGGNet (Simonyan & Zisserman, 2015), and Transformer (Vaswani et al., 2017). However, manually designing one architecture requires human experts to try numerous different operation and connection choices (Zoph & Le, 2017). In contrast to architectures that are manually designed, those automatically found by neural architecture search (NAS) algorithms require much less human interaction and expert effort. These NAS-generated architectures have shown promising results in many domains, such as image recognition (Zoph & Le, 2017; Pham et al., 2018; Real et al., 2019), sequence modeling (Pham et al., 2018; Dong & Yang, 2019b; Liu et al., 2019), etc. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
699,
|
| 66 |
+
825,
|
| 67 |
+
866
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Recently, a variety of NAS algorithms have been increasingly proposed. While these NAS methods are methodically designed and show promising improvements, many setups in their algorithms are different. (1) Different search space is utilized, e.g., different macro skeletons of the whole architecture (Zoph et al., 2018; Tan et al., 2019) and a different operation set for the micro cell within the skeleton (Pham et al., 2018), etc. (2) After a good architecture is selected, various strategies can be employed to train this architecture and report the performance, e.g., different data augmentation (Ghiasi et al., 2018; Zhang et al., 2018), different regularization (Zoph et al., 2018), different scheduler (Loshchilov & Hutter, 2017), and different selections of hyper-parameters (Liu et al., 2018; Dong & Yang, 2019a). (3) The validation set for testing the performance of the selected architecture is not split in the same way (Liu et al., 2019; Pham et al., 2018). These discrepancies raise a comparability problem when comparing the performance of various NAS algorithms, making it difficult to conclude their contributions. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
176,
|
| 76 |
+
873,
|
| 77 |
+
823,
|
| 78 |
+
901
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "image",
|
| 84 |
+
"img_path": "images/ef948e0a6ab15e4c383b46de048586c46f5264daa6a5c300a880d48b7f656296.jpg",
|
| 85 |
+
"image_caption": [
|
| 86 |
+
"Figure 1: Top: the macro skeleton of each architecture candidate. Bottom-left: examples of neural cell with 4 nodes. Each cell is a directed acyclic graph, where each edge is associated with an operation selected from a predefined operation set as shown in the Bottom-right. "
|
| 87 |
+
],
|
| 88 |
+
"image_footnote": [],
|
| 89 |
+
"bbox": [
|
| 90 |
+
173,
|
| 91 |
+
99,
|
| 92 |
+
823,
|
| 93 |
+
257
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 1
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "text",
|
| 99 |
+
"text": "",
|
| 100 |
+
"bbox": [
|
| 101 |
+
174,
|
| 102 |
+
323,
|
| 103 |
+
825,
|
| 104 |
+
462
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "In response to this problem, NAS-Bench-101 (Ying et al., 2019) and NAS-HPO-Bench (Klein & Hutter, 2019) are proposed. However, some NAS algorithms can not be applied directly on NASBench-101, and NAS-HPO-Bench only has 144 candidate architectures, which maybe insufficient to evaluate NAS algorithms. To extend these two benchmarks and towards better reproducibility of NAS methods1, we propose NAS-Bench-201 with a fixed cell search space, inspired from the search space used in the most popular neural cell-based searching algorithms (Zoph et al., 2018; Liu et al., 2019). As shown in Figure 1, each architecture consists of a predefined skeleton with a stack of the searched cell. In this way, architecture search is transformed into the problem of searching a good cell. Each cell is represented as a densely-connected directed acyclic graph (DAG) as shown in the bottom section of Figure 1. Here the node represents the sum of the feature maps and each edge is associated with an operation transforming the feature maps from the source node to the target node. The size of the search space is related to the number of nodes defined for the DAG and the size of the operation set. In NAS-Bench-201, we choose 4 nodes and 5 representative operation candidates for the operation set, which generates a total search space of 15,625 cells/architectures. Each architecture is trained multiple times on three different datasets. The training log and performance of each architecture are provided for each run. The training accuracy/test accuracy/training loss/test loss after every training epoch for each architecture plus the number of parameters and floating point operations (FLOPs) are accessible. ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
468,
|
| 114 |
+
825,
|
| 115 |
+
718
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "Hopefully, NAS-Bench-201 will show its value in the field of NAS research. (1) It provides a unified benchmark for most up-to-date NAS algorithms including all cell-based NAS methods. With NASBench-201, researchers can focus on designing robust searching algorithm while avoiding tedious hyper-parameter tuning of the searched architecture. Thus, NAS-Bench-201 provides a relatively fair benchmark for the comparison of different NAS algorithms. (2) It provides the full training log of each architecture. Unnecessary repetitive training procedure of each selected architecture can be avoided (Liu et al., 2018; Zoph & Le, 2017) so that researchers can target on the essence of NAS, i.e., search algorithm. Another benefit is that the validation time for NAS largely decreases when testing in NAS-Bench-201, which provides a computational power friendly environment for more participations in NAS. (3) It provides results of each architecture on multiple datasets. The model transferability can be thoroughly evaluated for most NAS algorithms. (4) In NAS-Bench-201, we provide systematic analysis of the proposed search space. We also evaluate 10 recent advanced NAS algorithms including reinforcement learning (RL)-based methods, evolutionary strategy (ES)-based methods, differentiable-based methods, etc. We hope our empirical analysis can bring some insights to the future designs of NAS algorithms. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
173,
|
| 124 |
+
726,
|
| 125 |
+
825,
|
| 126 |
+
892
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "",
|
| 133 |
+
"bbox": [
|
| 134 |
+
176,
|
| 135 |
+
103,
|
| 136 |
+
823,
|
| 137 |
+
146
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 2
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "2 NAS-Bench-201 ",
|
| 144 |
+
"text_level": 1,
|
| 145 |
+
"bbox": [
|
| 146 |
+
176,
|
| 147 |
+
165,
|
| 148 |
+
330,
|
| 149 |
+
181
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 2
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "Our NAS-Bench-201 is algorithm-agnostic. Put simply, it is applicable to almost any up-to-date NAS algorithms. In this section, we will briefly introduce our NAS-Bench-201. The search space of NASBench-201 is inspired by cell-based NAS algorithms (Section 2.1). NAS-Bench-201 evaluates each architecture on three different datasets (Section 2.2). All implementation details of NAS-Bench-201 are introduced in Section 2.3. NAS-Bench-201 also provides some diagnostic information which can be used for potentially better designs of future NAS algorithms (discussed in Section 2.4). ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
196,
|
| 159 |
+
825,
|
| 160 |
+
281
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 2
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "2.1 ARCHITECTURES IN THE SEARCH SPACE ",
|
| 167 |
+
"text_level": 1,
|
| 168 |
+
"bbox": [
|
| 169 |
+
176,
|
| 170 |
+
299,
|
| 171 |
+
495,
|
| 172 |
+
313
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 2
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "Macro Skeleton. Our search space follows the design of its counterpart as used in the recent neural cell-based NAS algorithms (Liu et al., 2019; Zoph et al., 2018; Pham et al., 2018). As shown in the top of Figure 1, the skeleton is initiated with one 3-by-3 convolution with 16 output channels and a batch normalization layer (Ioffe & Szegedy, 2015). The main body of the skeleton includes three stacks of cells, connected by a residual block. Each cell is stacked $N = 5$ times, with the number of output channels as 16, 32 and 64 for the first, second and third stages, respectively. The intermediate residual block is the basic residual block with a stride of 2 (He et al., 2016), which serves to downsample the spatial size and double the channels of an input feature map. The shortcut path in this residual block consists of a 2-by-2 average pooling layer with stride of 2 and a 1-by-1 convolution. The skeleton ends up with a global average pooling layer to flatten the feature map into a feature vector. Classification uses a fully connected layer with a softmax layer to transform the feature vector into the final prediction. ",
|
| 179 |
+
"bbox": [
|
| 180 |
+
173,
|
| 181 |
+
324,
|
| 182 |
+
825,
|
| 183 |
+
491
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 2
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "Searched Cell. Each cell in the search space is represented as a densely connected DAG. The densely connected DAG is obtained by assigning a direction from the $i$ -th node to the $j$ -th node $( i < j )$ for each edge in an undirected complete graph. Each edge in this DAG is associated with an operation transforming the feature map from the source node to the target node. All possible operations are selected from a predefined operation set, as shown in Figure 1(bottom-right). In our NAS-Bench-201, the predefined operation set $\\mathcal { O }$ has $L = 5$ representative operations: (1) zeroize, (2) skip connection, (3) 1-by-1 convolution, (4) 3-by-3 convolution, and (5) 3-by-3 average pooling layer. The convolution in this operation set is an abbreviation of an operation sequence of ReLU, convolution, and batch normalization. The DAG has $V = 4$ nodes, where each node represents the sum of all feature maps transformed through the associated operations of the edges pointing to this node. We choose $V = 4$ to allow the search space to contain basic residual block-like cells, which requires 4 nodes. Densely connected DAG does not restrict the searched topology of the cell to be densely connected, since we include zeroize in the operation set, which is an operation of dropping the associated edge. Besides, since we do not impose the constraint on the maximum number of edges (Ying et al., 2019), our search space is applicable to most NAS algorithms, including all cell-based NAS algorithms. ",
|
| 190 |
+
"bbox": [
|
| 191 |
+
173,
|
| 192 |
+
498,
|
| 193 |
+
825,
|
| 194 |
+
719
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 2
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "2.2 DATASETS ",
|
| 201 |
+
"text_level": 1,
|
| 202 |
+
"bbox": [
|
| 203 |
+
174,
|
| 204 |
+
737,
|
| 205 |
+
287,
|
| 206 |
+
751
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 2
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "text",
|
| 212 |
+
"text": "We train and evaluate each architecture on CIFAR-10, CIFAR-100 (Krizhevsky et al., 2009), and ImageNet-16-120 (Chrabaszcz et al., 2017). We choose these three datasets because CIFAR and ImageNet (Russakovsky et al., 2015) are the most popular image classification datasets. ",
|
| 213 |
+
"bbox": [
|
| 214 |
+
176,
|
| 215 |
+
763,
|
| 216 |
+
823,
|
| 217 |
+
805
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "We split each dataset into training, validation and test sets to provide a consistent training and evaluation settings for previous NAS algorithms (Liu et al., 2019). Most NAS methods use the validation set to evaluate architectures after the architecture is optimized on the training set. The validation performance of the architectures serves as supervision signals to update the searching algorithm. The test set is to evaluate the performance of each searching algorithm by comparing the indicators (e.g., accuracy, model size, speed) of their selected architectures. Previous methods use different splitting strategies, which may result in various searching costs and unfair comparisons. We hope to use the proposed splits to unify the training, validation and test sets for a fairer comparison. ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
174,
|
| 226 |
+
813,
|
| 227 |
+
825,
|
| 228 |
+
924
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "CIFAR-10: It is a standard image classification dataset and consists of 60K $3 2 \\times 3 2$ colour images in 10 classes. The original training set contains 50K images, with 5K images per class. The original test set contains 10K images, with 1K images per class. Due to the need of validation set, we split all 50K training images in CIFAR-10 into two groups. Each group contains 25K images with 10 classes. We regard the first group as the new training set and the second group as the validation set. ",
|
| 235 |
+
"bbox": [
|
| 236 |
+
173,
|
| 237 |
+
103,
|
| 238 |
+
825,
|
| 239 |
+
174
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 3
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "CIFAR-100: This dataset is just like CIFAR-10. It has the same images as CIFAR-10 but categorizes each image into 100 fine-grained classes. The original training set on CIFAR-100 has 50K images, and the original test set has 10K images. We randomly split the original test set into two group of equal size — 5K images per group. One group is regarded as the validation set, and another one is regarded as the new test set. ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
173,
|
| 248 |
+
180,
|
| 249 |
+
825,
|
| 250 |
+
250
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 3
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "ImageNet-16-120: We build ImageNet-16-120 from the down-sampled variant of ImageNet (ImageNet $1 6 \\times 1 6$ ). As indicated in Chrabaszcz et al. (2017), down-sampling images in ImageNet can largely reduce the computation costs for optimal hyper-parameters of some classical models while maintaining similar searching results. Chrabaszcz et al. (2017) down-sampled the original ImageNet to $1 6 \\times 1 6$ pixels to form ImageNet $. 6 \\times 1 6$ , from which we select all images with label $\\in [ 1 , 1 2 0 ]$ to construct ImageNet-16-120. In sum, ImageNet-16-120 contains 151.7K training images, 3K validation images, and 3K test images with 120 classes. ",
|
| 257 |
+
"bbox": [
|
| 258 |
+
173,
|
| 259 |
+
257,
|
| 260 |
+
825,
|
| 261 |
+
354
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 3
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "By default, in this paper, “the training set”, “the validation set”, “the test set” indicate the new training, validation, and test sets, respectively. ",
|
| 268 |
+
"bbox": [
|
| 269 |
+
174,
|
| 270 |
+
361,
|
| 271 |
+
821,
|
| 272 |
+
390
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 3
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "2.3 ARCHITECTURE PERFORMANCE ",
|
| 279 |
+
"text_level": 1,
|
| 280 |
+
"bbox": [
|
| 281 |
+
176,
|
| 282 |
+
410,
|
| 283 |
+
436,
|
| 284 |
+
424
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 3
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "Training Architectures. In order to unify the performance of every architecture, we give the performance of every architecture in our search space. In our NAS-Bench-201, we follow previous literature to set up the hyper-parameters and training strategies (Zoph et al., 2018; Loshchilov & Hutter, 2017; He et al., 2016). We train each architecture with the same strategy, which is shown in Table 1. For simplification, we denote all hyperparameters for training a model as a set $\\mathcal { H }$ , and we use $\\mathcal { H } ^ { \\dagger }$ to denote the values of hyper-parameter that we use. Specifically, we train each architecture via Nesterov momentum SGD, using the cross-entropy loss for 200 epochs in total. We set the weight decay as 0.0005 and decay the learning rate from 0.1 to 0 with a cosine annealing (Loshchilov & Hutter, 2017). We use the same $\\mathcal { H } ^ { \\dagger }$ on different datasets, except for the data augmentation which is slightly different due to the image resolution. On CIFAR, we use the random flip with probability of 0.5, the random crop $3 2 \\times 3 2$ patch with 4 pixels padding on each border, and the normalization over RGB channels. On ImageNet-16-120, we use a similar strategy but random crop $1 6 \\times 1 6$ patch with 2 pixels padding on each border. Apart from using $\\mathcal { H } ^ { \\dagger }$ for all datasets, we also use a different hyper-parameter set $\\bar { \\mathcal { H } } ^ { \\dagger }$ for CIFAR-10. It is similar to $\\mathcal { H } ^ { \\dagger }$ but its total number of training epochs is 12. In this way, we could provide bandit-based algorithms (Falkner et al., 2018; Li et al., 2018) more options for the usage of short training budget (see more details in appendix). ",
|
| 291 |
+
"bbox": [
|
| 292 |
+
173,
|
| 293 |
+
438,
|
| 294 |
+
821,
|
| 295 |
+
465
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 3
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "",
|
| 302 |
+
"bbox": [
|
| 303 |
+
174,
|
| 304 |
+
467,
|
| 305 |
+
506,
|
| 306 |
+
603
|
| 307 |
+
],
|
| 308 |
+
"page_idx": 3
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"type": "table",
|
| 312 |
+
"img_path": "images/d5cb1dd96187930495d84dd569d48e4fbafbf5f9433dad5fe206c30ac3138626.jpg",
|
| 313 |
+
"table_caption": [
|
| 314 |
+
"Table 1: The training hyper-parameter set $\\mathcal { H } ^ { \\dagger }$ . "
|
| 315 |
+
],
|
| 316 |
+
"table_footnote": [],
|
| 317 |
+
"table_body": "<table><tr><td rowspan=2 colspan=1>optimizerNesterovmomentumweight decaybatch sizeVrandom flipnormalization</td><td rowspan=1 colspan=1>SGD</td><td rowspan=2 colspan=1>initialLRending LRLR scheduleepochinitial channelNrandom crop</td><td rowspan=2 colspan=1>0.10cosine200165</td></tr><tr><td rowspan=1 colspan=1>√0.90.00052564p=0.5<</td></tr></table>",
|
| 318 |
+
"bbox": [
|
| 319 |
+
521,
|
| 320 |
+
484,
|
| 321 |
+
821,
|
| 322 |
+
598
|
| 323 |
+
],
|
| 324 |
+
"page_idx": 3
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "text",
|
| 328 |
+
"text": "",
|
| 329 |
+
"bbox": [
|
| 330 |
+
173,
|
| 331 |
+
604,
|
| 332 |
+
825,
|
| 333 |
+
729
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 3
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "text",
|
| 339 |
+
"text": "Metrics. We train each architecture with different random seeds on different datasets. We evaluate each architecture $A$ after every training epoch. NAS-Bench-201 provides the training, validation, ",
|
| 340 |
+
"bbox": [
|
| 341 |
+
174,
|
| 342 |
+
736,
|
| 343 |
+
823,
|
| 344 |
+
765
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 3
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"text": "and test loss as well as accuracy. We show the supported metrics on different datasets in Table 2. Users can easily use our API to query the results of each trial of $A$ , which has negligible computational costs. In this way, researchers could significantly speed up their searching algorithm on these datasets and focus solely on the essence of NAS. ",
|
| 351 |
+
"bbox": [
|
| 352 |
+
174,
|
| 353 |
+
763,
|
| 354 |
+
473,
|
| 355 |
+
875
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 3
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "text",
|
| 361 |
+
"text": "We list the training/test loss/accuracies over ",
|
| 362 |
+
"bbox": [
|
| 363 |
+
176,
|
| 364 |
+
882,
|
| 365 |
+
473,
|
| 366 |
+
896
|
| 367 |
+
],
|
| 368 |
+
"page_idx": 3
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "table",
|
| 372 |
+
"img_path": "images/0e4effadbdc57d72b31200953c519e00bf2e2993789bb5072ee6dfcfc0ef4ab0.jpg",
|
| 373 |
+
"table_caption": [
|
| 374 |
+
"Table 2: NAS-Bench-201 provides the following metrics with $\\mathcal { H } ^ { \\dagger }$ . ‘Acc.’ means accuracy. "
|
| 375 |
+
],
|
| 376 |
+
"table_footnote": [],
|
| 377 |
+
"table_body": "<table><tr><td>Dataset</td><td>TrainLoss/Acc.Eval Loss/Acc.</td><td></td></tr><tr><td>CIFAR-10</td><td>train set</td><td>valid set</td></tr><tr><td>CIFAR-10</td><td>train+valid set</td><td>test set</td></tr><tr><td>CIFAR-100</td><td>train set</td><td>valid set</td></tr><tr><td>CIFAR-100</td><td>train set</td><td>test set</td></tr><tr><td>ImageNet-16-120</td><td>train set</td><td>valid set</td></tr><tr><td>ImageNet-16-120</td><td>train set</td><td>test set</td></tr></table>",
|
| 378 |
+
"bbox": [
|
| 379 |
+
486,
|
| 380 |
+
795,
|
| 381 |
+
820,
|
| 382 |
+
895
|
| 383 |
+
],
|
| 384 |
+
"page_idx": 3
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"type": "text",
|
| 388 |
+
"text": "different split sets on four datasets in Table 2. On CIFAR-10, we train the model on the training set and evaluate it on the validation set. We also train the model on the training and validation set and evaluate it on the test set. These two paradigm follow the typical experimental setup on CIFAR-10 in previous literature (Liu et al., 2018; Zoph et al., 2018; Liu et al., 2018; Pham et al., 2018). On CIFAR-100 and ImageNet-16-120, we train the model on the training set and evaluate it on both validation and test sets. ",
|
| 389 |
+
"bbox": [
|
| 390 |
+
173,
|
| 391 |
+
896,
|
| 392 |
+
823,
|
| 393 |
+
924
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 3
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "table",
|
| 399 |
+
"img_path": "images/2aa7b5ac984e85f4596de66e0de1885490bd59eb3565bc27056e7c2bd10da459.jpg",
|
| 400 |
+
"table_caption": [
|
| 401 |
+
"Table 3: We summarize some characteristics of NAS-Bench-101 and NAS-Bench-201. Our NASBench-201 can directly be applicable to almost any up-to-date NAS algorithms. In contrast, as pointed in (Ying et al., 2019), NAS algorithms based on parameter sharing or network morphisms cannot be directly evaluated on NAS-Bench-101. Besides, NAS-Bench-201 provides train/validation/test performance on three (one for NAS-Bench-101) different datasets so that the generality of NAS algorithms can be evaluated. It also provides some diagnostic information that may provide insights to design better NAS algorithms. "
|
| 402 |
+
],
|
| 403 |
+
"table_footnote": [],
|
| 404 |
+
"table_body": "<table><tr><td rowspan=\"2\"></td><td rowspan=\"2\">#archit -ectures</td><td rowspan=\"2\">#data -sets</td><td rowspan=\"2\">10</td><td rowspan=\"2\">search space constraint</td><td colspan=\"4\">Supported NAS algorithms</td><td rowspan=\"2\">Diagnostic information</td></tr><tr><td>RL</td><td>ES</td><td>|Diff.]</td><td>HPO</td></tr><tr><td>NAS-Bench-101</td><td>510M</td><td>1</td><td>3</td><td>constrain #edges1</td><td>partial</td><td>partial</td><td>none</td><td>most</td><td></td></tr><tr><td>NAS-Bench-201</td><td>15.6K</td><td>3</td><td>5</td><td>no constraint</td><td>all</td><td>all</td><td>all</td><td>most</td><td>fine-grained info., param., etc</td></tr></table>",
|
| 405 |
+
"bbox": [
|
| 406 |
+
176,
|
| 407 |
+
101,
|
| 408 |
+
820,
|
| 409 |
+
174
|
| 410 |
+
],
|
| 411 |
+
"page_idx": 4
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"type": "text",
|
| 415 |
+
"text": "",
|
| 416 |
+
"bbox": [
|
| 417 |
+
174,
|
| 418 |
+
306,
|
| 419 |
+
825,
|
| 420 |
+
362
|
| 421 |
+
],
|
| 422 |
+
"page_idx": 4
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"type": "text",
|
| 426 |
+
"text": "2.4 DIAGNOSTIC INFORMATION ",
|
| 427 |
+
"text_level": 1,
|
| 428 |
+
"bbox": [
|
| 429 |
+
176,
|
| 430 |
+
378,
|
| 431 |
+
406,
|
| 432 |
+
393
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 4
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"text": "Validation accuracy is a commonly used supervision signal for NAS. However, considering the expensive computational costs for evaluating the architecture, the signal is too sparse. In our NASBench-201, we also provide some diagnostic information which is some extra statistics obtained during training each architecture. Collecting these statistics almost involves no extra computation cost but may provide insights for better designs and training strategies of different NAS algorithms, such as platform-aware NAS (Tan et al., 2019), accuracy prediction (Baker et al., 2018), mutationbased NAS (Cai et al., 2018; Chen et al., 2016), etc. ",
|
| 439 |
+
"bbox": [
|
| 440 |
+
173,
|
| 441 |
+
405,
|
| 442 |
+
825,
|
| 443 |
+
503
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 4
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"text": "Architecture Computational Costs: NAS-Bench-201 provides three computation metrics for each architecture — the number of parameters, FLOPs, and latency. Algorithms that target on searching architectures with computational constraints, such as models on edge devices, can use these metrics directly in their algorithm designs without extra calculations. ",
|
| 450 |
+
"bbox": [
|
| 451 |
+
174,
|
| 452 |
+
510,
|
| 453 |
+
825,
|
| 454 |
+
565
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 4
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "Fine-grained training and evaluation information. NAS-Bench-201 tracks the changes in loss and accuracy of every architecture after every training epochs. These fine-grained training and evaluation information shows the tendency of the architecture performance and could indicate some attributes of the model, such as the speed of convergence, the stability, the over-fitting or under-fitting levels, etc. These attributes may benefit the designs of NAS algorithms. Besides, some methods learn to predict the final accuracy of an architecture based on the results of few early training epochs (Baker et al., 2018). These algorithm can be trained faster and the performance of the accuracy prediction can be evaluated using the fine-grained evaluation information. ",
|
| 461 |
+
"bbox": [
|
| 462 |
+
173,
|
| 463 |
+
571,
|
| 464 |
+
825,
|
| 465 |
+
684
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 4
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "text",
|
| 471 |
+
"text": "Parameters of optimized architecture. Our NAS-Bench-201 releases the trained parameters for each architecture. This can provide ground truth label for hypernetwork-based NAS methods (Zhang et al., 2019; Brock et al., 2018), which learn to generate parameters of an architecture. Other methods mutate an architecture to become another one (Real et al., 2019; Cai et al., 2018). With NAS-Bench-201, researchers could directly use the off-the-shelf parameters instead of training from scratch and analyze how to transfer parameters from one architecture to another. ",
|
| 472 |
+
"bbox": [
|
| 473 |
+
174,
|
| 474 |
+
690,
|
| 475 |
+
825,
|
| 476 |
+
775
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 4
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "3 DIFFERENCE WITH EXISTING NAS BENCHMARKS ",
|
| 483 |
+
"text_level": 1,
|
| 484 |
+
"bbox": [
|
| 485 |
+
174,
|
| 486 |
+
795,
|
| 487 |
+
614,
|
| 488 |
+
810
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 4
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "To the best of our knowledge, NAS-Bench-101 (Ying et al., 2019) is the only existing large-scale architecture dataset. Similar to NAS-Bench-201, NAS-Bench-101 also transforms the problem of architecture search into the problem of searching neural cells, represented as a DAG. Differently, NAS-Bench-101 defines operation candidates on the node, whereas we associate operations on the edge as inspired from (Liu et al., 2019; Dong & Yang, 2019b; Zoph et al., 2018). We summarize characteristics of our NAS-Bench-201 and NAS-Bench-101 in Table 3. The main highlights of our NAS-Bench-201 are as follows. (1) NAS-Bench-201 is algorithm-agnostic while NAS-Bench",
|
| 495 |
+
"bbox": [
|
| 496 |
+
173,
|
| 497 |
+
825,
|
| 498 |
+
825,
|
| 499 |
+
924
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 4
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "image",
|
| 505 |
+
"img_path": "images/88962deb55fbfd45703cae2a047041476b98a3f9ea5092d466ba1eb7ef13ff89.jpg",
|
| 506 |
+
"image_caption": [
|
| 507 |
+
"Figure 2: Training, validation, test accuracy of each architecture on CIFAR-10, CIFAR-100, and ImageNet-16-120. We also visualize the results of ResNet in the orange star marker. "
|
| 508 |
+
],
|
| 509 |
+
"image_footnote": [],
|
| 510 |
+
"bbox": [
|
| 511 |
+
171,
|
| 512 |
+
98,
|
| 513 |
+
823,
|
| 514 |
+
454
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 5
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "101 without any modification is only applicable to selected algorithms (Yu et al., 2020; Zela et al., 2020). The original complete search space, based on the nodes in NAS-Bench-101, is extremely huge. So, it is exceedingly difficult to efficiently traverse the training of all architectures. To trade off the computational cost and the size of the search space, they constrain the maximum number of edges in the DAG. However, it is difficult to incorporate this constraint in all NAS algorithms, such as NAS algorithms based on parameter-sharing (Liu et al., 2019; Pham et al., 2018). Therefore, many NAS algorithms cannot be directly evaluated on NAS-Bench-101. Our NAS-Bench-201 solves this problem by sacrificing the number of nodes and including all possible edges so that our search space is algorithm-agnostic. (2) We provide extra diagnostic information, such as architecture computational cost, fine-grained training and evaluation time, etc., which give inspirations to better and efficient designs of NAS algorithms utilizing these diagnostic information. ",
|
| 521 |
+
"bbox": [
|
| 522 |
+
173,
|
| 523 |
+
501,
|
| 524 |
+
825,
|
| 525 |
+
654
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 5
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "text",
|
| 531 |
+
"text": "NAS-HPO-Bench (Klein & Hutter, 2019) evaluated 62208 configurations in the joint NAS and hyper-parameter space for a simple 2-layer feed-forward network. Since NAS-HPO-Bench has only 144 architectures, it could be insufficient to evaluate different NAS algorithms. ",
|
| 532 |
+
"bbox": [
|
| 533 |
+
179,
|
| 534 |
+
660,
|
| 535 |
+
821,
|
| 536 |
+
675
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 5
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "text",
|
| 542 |
+
"text": "",
|
| 543 |
+
"bbox": [
|
| 544 |
+
173,
|
| 545 |
+
676,
|
| 546 |
+
584,
|
| 547 |
+
717
|
| 548 |
+
],
|
| 549 |
+
"page_idx": 5
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"type": "text",
|
| 553 |
+
"text": "4 ANALYSIS OF NAS-Bench-201 ",
|
| 554 |
+
"text_level": 1,
|
| 555 |
+
"bbox": [
|
| 556 |
+
178,
|
| 557 |
+
738,
|
| 558 |
+
446,
|
| 559 |
+
753
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 5
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "text",
|
| 565 |
+
"text": "An overview of architecture performance. The performance of each architecture is shown in Figure 2. We show the test accuracy of every architecture in our search space in the left column of Figure 2. The training, validation and test accuracy with respect to the number of parameters are shown in the rest three columns, respectively. Results show that a different number of parameters will affect the performance of the architectures, which indicates that the choices of operations are essential in NAS. We also observe that the performance of the architecture can vary even when the number of parameters stays the same. This observation indicates the importance of how the operations/cells are connected. We compare the architectures with a classical human-designed architecture (ResNet) in all cases, which is indicated by an orange star mark. ResNet shows competitive performance in three datasets, however, it still has room to improve, i.e., about $2 \\%$ compared to the best architecture in CIFAR-100 and ImageNet-16-120, about $1 \\%$ compared to the best one with the same amount of parameters in CIFAR-100 and ImageNet-16-120. ",
|
| 566 |
+
"bbox": [
|
| 567 |
+
176,
|
| 568 |
+
771,
|
| 569 |
+
583,
|
| 570 |
+
905
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 5
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "image",
|
| 576 |
+
"img_path": "images/775c3b04e237a87001c8ea71bbec6cd669f6173ca15dea4ff91446a5f23adf33.jpg",
|
| 577 |
+
"image_caption": [
|
| 578 |
+
"Figure 3: The ranking of each architecture on three datasets, sorted by the ranking in CIFAR-10. "
|
| 579 |
+
],
|
| 580 |
+
"image_footnote": [],
|
| 581 |
+
"bbox": [
|
| 582 |
+
598,
|
| 583 |
+
678,
|
| 584 |
+
823,
|
| 585 |
+
849
|
| 586 |
+
],
|
| 587 |
+
"page_idx": 5
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "text",
|
| 591 |
+
"text": "",
|
| 592 |
+
"bbox": [
|
| 593 |
+
173,
|
| 594 |
+
897,
|
| 595 |
+
823,
|
| 596 |
+
924
|
| 597 |
+
],
|
| 598 |
+
"page_idx": 5
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"type": "text",
|
| 602 |
+
"text": "",
|
| 603 |
+
"bbox": [
|
| 604 |
+
174,
|
| 605 |
+
103,
|
| 606 |
+
823,
|
| 607 |
+
160
|
| 608 |
+
],
|
| 609 |
+
"page_idx": 6
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"type": "text",
|
| 613 |
+
"text": "Architecture ranking on three datasets. The ranking of every architecture in our search space is shown in Figure 3, where the architecture ranked in CIFAR-10 $\\mathbf { \\dot { X } } \\mathbf { \\cdot }$ -axis) is ranked as in y-axis in CIFAR-100 and ImageNet-16-120, indicated by green and red markers respectively. The performance of the architectures shows a generally consistent ranking over the three datasets with slightly different variance, which serves to test the generality of the searching algorithm. ",
|
| 614 |
+
"bbox": [
|
| 615 |
+
173,
|
| 616 |
+
166,
|
| 617 |
+
825,
|
| 618 |
+
237
|
| 619 |
+
],
|
| 620 |
+
"page_idx": 6
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"type": "text",
|
| 624 |
+
"text": "Correlations of validation and test accuracies. We visualize the correlation between the validation and test accuracy within one dataset and across datasets in Figure 4. The correlation within one dataset is high compared to cross-dataset correlation. The correlation dramatically decreases as we ",
|
| 625 |
+
"bbox": [
|
| 626 |
+
176,
|
| 627 |
+
243,
|
| 628 |
+
820,
|
| 629 |
+
285
|
| 630 |
+
],
|
| 631 |
+
"page_idx": 6
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"type": "text",
|
| 635 |
+
"text": "only pick the top performing architectures. When we directly transfer the best architecture in one dataset to another (a vanilla strategy), it can not $100 \\%$ secure a good performance. This phenomena is a call for better transferable NAS algorithms instead of vanilla strategy. ",
|
| 636 |
+
"bbox": [
|
| 637 |
+
173,
|
| 638 |
+
286,
|
| 639 |
+
419,
|
| 640 |
+
396
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 6
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "text",
|
| 646 |
+
"text": "Dynamic ranking of architectures. We show the ranking of the performance of all architectures in different time stamps in Figure 5. The ranking based on the validation set (y axis) gradually converges to the ranking ba ",
|
| 647 |
+
"bbox": [
|
| 648 |
+
174,
|
| 649 |
+
404,
|
| 650 |
+
419,
|
| 651 |
+
487
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 6
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "image",
|
| 657 |
+
"img_path": "images/298e44fc9560f470cc253b2deef1100f0997c742c59b4514ae7c3b31300e0144.jpg",
|
| 658 |
+
"image_caption": [
|
| 659 |
+
"Figure 4: We report the correlation coefficient between the accuracy on 6 sets, i.e., CIFAR-10 validation set (C10- V), CIFAR-10 test set (C10-T), CIFAR-100 validation set (C100-V), CIFAR-100 test set (C100-T), ImageNet-16-120 validation set (I120-V), ImageNet-16-120 test set (I120-T). ed on the final test accuracy (x axis). "
|
| 660 |
+
],
|
| 661 |
+
"image_footnote": [],
|
| 662 |
+
"bbox": [
|
| 663 |
+
431,
|
| 664 |
+
289,
|
| 665 |
+
825,
|
| 666 |
+
405
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 6
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "image",
|
| 672 |
+
"img_path": "images/8b8b883e15a206f2b0604391871a50b6fe31f6240057ee9a0d08f4e4b5052c5f.jpg",
|
| 673 |
+
"image_caption": [
|
| 674 |
+
"Figure 5: The ranking of all architectures based on the validation accuracy at different time stamps (y axis) sorted by the final test accuracy (x axis). "
|
| 675 |
+
],
|
| 676 |
+
"image_footnote": [],
|
| 677 |
+
"bbox": [
|
| 678 |
+
174,
|
| 679 |
+
505,
|
| 680 |
+
823,
|
| 681 |
+
616
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 6
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "5 BENCHMARK ",
|
| 688 |
+
"text_level": 1,
|
| 689 |
+
"bbox": [
|
| 690 |
+
174,
|
| 691 |
+
676,
|
| 692 |
+
316,
|
| 693 |
+
693
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 6
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "In this section, we evaluate 10 recent searching methods on our NAS-Bench-201, which can serve as baselines for future NAS algorithms in our dataset. Specifically, we evaluate some typical NAS algorithms: (I) Random Search algorithms, e.g., random search (RS) (Bergstra & Bengio, 2012), random search with parameter sharing (RSPS) (Li & Talwalkar, 2019). (II) ES methods, e.g., REA (Real et al., 2019). (III) RL algorithms, e.g., REINFORCE (Williams, 1992), ENAS (Pham et al., 2018). (IV) Differentiable algorithms. e.g., first order DARTS (DARTS-V1) (Liu et al., 2019), second order DARTS (DARTS-V2), GDAS (Dong & Yang, 2019b), and SETN (Dong & Yang, 2019a). (V) HPO methods, e.g., BOHB (Falkner et al., 2018). We experimented all NAS algorithms on a single GeForce GTX 1080 Ti GPU. ",
|
| 700 |
+
"bbox": [
|
| 701 |
+
173,
|
| 702 |
+
710,
|
| 703 |
+
825,
|
| 704 |
+
837
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 6
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "table",
|
| 710 |
+
"img_path": "images/2189058b86da12e12f1606389e5782b037c5bde85e9f884069858ee376263bfa.jpg",
|
| 711 |
+
"table_caption": [
|
| 712 |
+
"Table 4: The utility of our NAS-Bench-201 for different NAS algorithms. We show whether a NAS algorithm can use our NAS-Bench-201 to accelerate the searching and evaluation procedure. "
|
| 713 |
+
],
|
| 714 |
+
"table_footnote": [],
|
| 715 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>accelerate</td><td rowspan=1 colspan=1>RS</td><td rowspan=1 colspan=1>RSPS</td><td rowspan=1 colspan=1>DARTS-V1</td><td rowspan=1 colspan=1>DARTS-V2</td><td rowspan=1 colspan=1>GDAS</td><td rowspan=1 colspan=1>SETN</td><td rowspan=1 colspan=1>REA</td><td rowspan=1 colspan=1>REINFORCE</td><td rowspan=1 colspan=1>ENAS</td><td rowspan=1 colspan=1>BOHB</td></tr><tr><td rowspan=1 colspan=1>searchevaluation</td><td rowspan=1 colspan=1>V</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>V</td><td rowspan=1 colspan=1>1√</td><td rowspan=1 colspan=1>V</td><td rowspan=1 colspan=1>√√</td></tr></table>",
|
| 716 |
+
"bbox": [
|
| 717 |
+
178,
|
| 718 |
+
854,
|
| 719 |
+
816,
|
| 720 |
+
897
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 6
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "table",
|
| 726 |
+
"img_path": "images/4e199d377fa9800027f50f8b52d6ce7b494f09d17eb98eb6fdce8eefe615635b.jpg",
|
| 727 |
+
"table_caption": [],
|
| 728 |
+
"table_footnote": [],
|
| 729 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Search (seconds)</td><td colspan=\"2\">CIFAR-10</td><td colspan=\"2\">CIFAR-100</td><td colspan=\"2\">ImageNet-16-120</td></tr><tr><td>validation</td><td>test</td><td>validation</td><td>test</td><td>validation</td><td>test</td></tr><tr><td>RSPS</td><td>8007.13</td><td>80.42±3.58</td><td>84.07±3.61</td><td>52.12±5.55</td><td>52.31±5.77</td><td>27.22±3.24</td><td>26.28±3.09</td></tr><tr><td>DARTS-V1</td><td>11625.77</td><td>39.77±0.00</td><td>54.30±0.00</td><td>15.03±0.00</td><td>15.61±0.00</td><td>16.43±0.00</td><td>16.32±0.00</td></tr><tr><td>DARTS-V2</td><td>35781.80</td><td>39.77±0.00</td><td>54.30±0.00</td><td>15.03±0.00</td><td>15.61±0.00</td><td>16.43±0.00</td><td>16.32±0.00</td></tr><tr><td>GDAS</td><td>31609.80</td><td>89.89±0.08</td><td>93.61±0.09</td><td>71.34±0.04</td><td>70.70±0.30</td><td>41.59±1.33</td><td>41.71±0.98</td></tr><tr><td>SETN</td><td>34139.53</td><td>84.04±0.28</td><td>87.64±0.00</td><td>58.86±0.06</td><td>59.05±0.24</td><td>33.06±0.02</td><td>32.52±0.21</td></tr><tr><td>ENAS</td><td>14058.80</td><td>37.51±3.19</td><td>53.89±0.58</td><td>13.37±2.35</td><td>13.96±2.33</td><td>15.06±1.95</td><td>14.84±2.10</td></tr><tr><td>RSPSt</td><td>7587.12</td><td>84.16±1.69</td><td>87.66±1.69</td><td>59.00±4.60</td><td>58.33±4.34</td><td>31.56±3.28</td><td>31.14±3.88</td></tr><tr><td>DARTS-V1†</td><td>10889.87</td><td>39.77±0.00</td><td>54.30±0.00</td><td>15.03±0.00</td><td>15.61±0.00</td><td>16.43±0.00</td><td>16.32±0.00</td></tr><tr><td>DARTS-V2t</td><td>29901.67</td><td>39.77±0.00</td><td>54.30±0.00</td><td>15.03±0.00</td><td>15.61±0.00</td><td>16.43±0.00</td><td>16.32±0.00</td></tr><tr><td>GDASt</td><td>28925.91</td><td>90.00±0.21</td><td>93.51±0.13</td><td>71.14±0.27</td><td>70.61±0.26</td><td>41.70±1.26</td><td>41.84±0.90</td></tr><tr><td>SETNt</td><td>31009.81</td><td>82.25±5.17</td><td>86.19±4.63</td><td>56.86±7.59</td><td>56.87±7.77</td><td>32.54±3.63</td><td>31.90±4.07</td></tr><tr><td>ENASt</td><td>13314.51</td><td>39.77±0.00</td><td>54.30±0.00</td><td>15.03±0.00</td><td>15.61±0.00</td><td>16.43±0.00</td><td>16.32±0.00</td></tr><tr><td>REA RS</td><td>0.02</td><td>91.19±0.31</td><td>93.92±0.30</td><td>71.81±1.12</td><td>71.84±0.99</td><td>45.15±0.89</td><td>45.54±1.03</td></tr><tr><td></td><td>0.01</td><td>90.93±0.36</td><td>93.70±0.36</td><td>70.93±1.09</td><td>71.04±1.07</td><td>44.45±1.10</td><td>44.57±1.25</td></tr><tr><td>REINFORCE</td><td>0.12</td><td>91.09±0.37</td><td>93.85±0.37</td><td>71.61±1.12</td><td>71.71±1.09</td><td>45.05±1.02</td><td>45.24±1.18</td></tr><tr><td>BOHB</td><td>3.59</td><td>90.82±0.53</td><td>93.61±0.52</td><td>70.74±1.29</td><td>70.85±1.28</td><td>44.26±1.36</td><td>44.42±1.49</td></tr><tr><td>ResNet</td><td rowspan=\"2\">N/A</td><td>90.83</td><td>93.97</td><td>70.42</td><td>70.86</td><td>44.53</td><td>43.63</td></tr><tr><td>optimal</td><td>91.61</td><td>94.37</td><td>73.49</td><td>73.51</td><td>46.77</td><td>47.31</td></tr></table>",
|
| 730 |
+
"bbox": [
|
| 731 |
+
176,
|
| 732 |
+
93,
|
| 733 |
+
821,
|
| 734 |
+
358
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 7
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "text",
|
| 740 |
+
"text": "Table 5: We evaluate $I O$ different searching algorithms in our NAS-Bench-201. The first block shows results of parameter sharing based NAS methods. The second block is similar to the first one, however, BN layers in the searching cells do not keep running estimates but always use batch statistics. The third block shows results of NAS methods without parameter sharing. Each algorithm uses the training and validation set of CIFAR-10 for searching. We show results of their searched architectures for (1) training on the CIFAR-10 train set and evaluating on its validation set; (2) training on the CIFAR-10 train+validation sets and evaluating on its test set; (3) training on the CIFAR-10 or ImageNet-16-120 train set and evaluating on their validation or test sets. “optimal” indicates the highest mean accuracy for each set. We report the mean and std of 500 runs for RS, REA, REINFORCE, and BOHB and of 3 runs for RSPS, DARTS, GDAS, SETN, and ENAS. ",
|
| 741 |
+
"bbox": [
|
| 742 |
+
173,
|
| 743 |
+
367,
|
| 744 |
+
825,
|
| 745 |
+
507
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 7
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "image",
|
| 751 |
+
"img_path": "images/46bf8e1d5028fd58ba84d178b04a3d22a07d1e669ace1579b1a8879b51c298f7.jpg",
|
| 752 |
+
"image_caption": [
|
| 753 |
+
"Figure 6: We show results of 500 runs for RS, REA, REINFORCE, and BOHB on CIFAR-10. The architecture is searched on CIFAR-10 and we report its validation accuracy (solid line) and test accuracy (dashed line) on three datasets. Each individual run is sorted by the validation accuracy of the searched architecture. "
|
| 754 |
+
],
|
| 755 |
+
"image_footnote": [],
|
| 756 |
+
"bbox": [
|
| 757 |
+
173,
|
| 758 |
+
521,
|
| 759 |
+
825,
|
| 760 |
+
661
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 7
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "text",
|
| 766 |
+
"text": "We show the benefits for speed using our NAS-Bench-201 for different NAS algorithms in Table 4. For each NAS algorithm, once the searching procedure finished and the final architecture is found, our NAS-Bench-201 can directly return the performance of this architecture. With NAS-Bench-201, NAS algorithms without parameter sharing can significantly reduce the searching time into seconds. Notably, it still requires several GPU hours for NAS algorithms with parameter sharing to complete the searching. ",
|
| 767 |
+
"bbox": [
|
| 768 |
+
173,
|
| 769 |
+
762,
|
| 770 |
+
825,
|
| 771 |
+
847
|
| 772 |
+
],
|
| 773 |
+
"page_idx": 7
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"type": "text",
|
| 777 |
+
"text": "All algorithms use the training and validation set of CIFAR-10 to search architectures. In Table 5, Figure 6, Figure 7, and Figure 8, we report the performance of the searched architectures plus the optimal architecture on three datasets. We make the following observations: (1) NAS methods without parameter sharing (REA, RS, REINFORCE, and BOHB) outperform others. This be because training a model for a few epochs with the converged LR scheduler $( { \\mathcal { H } } ^ { \\ddagger } )$ can provide a good relative ranking of each architecture. (2) DARTS-V1 and DARTS-V2 quickly converge to find the architecture whose edges are all skip connection. A possible reason is that the original hyper-parameters of DARTS are chosen for their search space instead of ours. (3) The strategy of BN layers can significantly effect the NAS methods with parameter sharing. Using batch statistics are better than keep running estimates of the mean and variance. (4) Using our fine-grained information, REA, REINFORCE and RS can be finished in seconds which could significantly reduce the search costs and let researchers focus solely on the search algorithm itself. ",
|
| 778 |
+
"bbox": [
|
| 779 |
+
174,
|
| 780 |
+
854,
|
| 781 |
+
823,
|
| 782 |
+
924
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 7
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "image",
|
| 788 |
+
"img_path": "images/bfcdbc0617ecf87fe75943c147160d323c1666b859f183fc6073b370e8bc4d90.jpg",
|
| 789 |
+
"image_caption": [
|
| 790 |
+
"Figure 7: Results keeping keep running estimates for BN layers in each searching cell. We use parameter sharing based NAS methods to search the architecture on CIFAR-10. After each searching epoch, we derive the architecture and show its validation accuracy (VALID) and test accuracy (TEST) on CIFAR-10. The 0-th epoch indicates the architecture is derived from the randomly initialized architecture encoding. "
|
| 791 |
+
],
|
| 792 |
+
"image_footnote": [],
|
| 793 |
+
"bbox": [
|
| 794 |
+
173,
|
| 795 |
+
99,
|
| 796 |
+
825,
|
| 797 |
+
239
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 8
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "image",
|
| 803 |
+
"img_path": "images/5085f515858c5ad523ff941b52ac8d6a01ebfa36bc15acd511fdae755f620adc.jpg",
|
| 804 |
+
"image_caption": [
|
| 805 |
+
"Figure 8: Results using batch statistics without keeping keep running estimates for BN layers in each searching cell. We use parameter sharing based NAS methods to search the architecture on CIFAR-10. After each searching epoch, we derive the architecture and show its validation accuracy (VALID) and test accuracy (TEST) on CIFAR-10. The 0-th epoch indicates the architecture is derived from the randomly initialized architecture encoding. "
|
| 806 |
+
],
|
| 807 |
+
"image_footnote": [],
|
| 808 |
+
"bbox": [
|
| 809 |
+
173,
|
| 810 |
+
337,
|
| 811 |
+
825,
|
| 812 |
+
477
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 8
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "text",
|
| 818 |
+
"text": "",
|
| 819 |
+
"bbox": [
|
| 820 |
+
174,
|
| 821 |
+
587,
|
| 822 |
+
825,
|
| 823 |
+
685
|
| 824 |
+
],
|
| 825 |
+
"page_idx": 8
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "text",
|
| 829 |
+
"text": "In Figure 7 and Figure 8, we show the performance of the architecture derived from each algorithm per searching epoch. DARTS-V1 will gradually over-fit to an architecture with all skip-connection operations. DARTS-V2 can alleviate this problem to some extent but will still over-fit after more epochs. It can further alleviate this problem by using batch statistics for BN layers. We train RSPS, GDAS, SETN, and ENAS five times longer than DARTS (250 epochs vs. 50 epochs). This is because at every iteration, RSPS, GDAS, SETN, and ENAS only optimize 1|O|=5 parameters of the shared parameters, whereas DARTS optimize all shared parameters. The searched architecture performs similar for GDAS after 50 searching epochs. RSPS and SETN show a higher variance of the searched architecture compared to GDAS. ",
|
| 830 |
+
"bbox": [
|
| 831 |
+
173,
|
| 832 |
+
691,
|
| 833 |
+
825,
|
| 834 |
+
819
|
| 835 |
+
],
|
| 836 |
+
"page_idx": 8
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"text": "Clarification. We have tried our best to implement each method. However, still, some algorithms might obtain non-optimal results since their hyper-parameters might not fit our NAS-Bench-201. We empirically found that some NAS algorithms are sensitive to some hyper-parameters, whereas we try to compare them in a fair way as we can (Please see more explanation in Appendix). If researchers can provide better results with different hyper-parameters, we are happy to update results according to the new experimental results. We also welcome more NAS algorithms to test on our dataset and would include them accordingly. ",
|
| 841 |
+
"bbox": [
|
| 842 |
+
174,
|
| 843 |
+
825,
|
| 844 |
+
825,
|
| 845 |
+
924
|
| 846 |
+
],
|
| 847 |
+
"page_idx": 8
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"type": "text",
|
| 851 |
+
"text": "6 DISCUSSION ",
|
| 852 |
+
"text_level": 1,
|
| 853 |
+
"bbox": [
|
| 854 |
+
174,
|
| 855 |
+
102,
|
| 856 |
+
310,
|
| 857 |
+
117
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 9
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "How to avoid over-fitting on NAS-Bench-201? Our NAS-Bench-201 provides a benchmark for NAS algorithms, aiming to provide a fair and computational cost-friendly environment to the NAS community. The trained architecture and the easy-to-access performance of each architecture might provide some insidious ways for designing algorithms to over-fit the best architecture in our NASBench-201. Thus, we propose some rules which we wish the users will follow to achieve the original intention of NAS-Bench-201, a fair and efficient benchmark. ",
|
| 864 |
+
"bbox": [
|
| 865 |
+
174,
|
| 866 |
+
135,
|
| 867 |
+
825,
|
| 868 |
+
218
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 9
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "text",
|
| 874 |
+
"text": "1. No regularization for a specific operation. Since the best architecture is known in our benchmark, specific designs to fit the structural attributes of the best performed architecture are insidious ways to fit our NAS-Bench-201. For example, as mentioned in Section 5, we found that the best architecture with the same amount of parameters for CIFAR10 on NAS-Bench-201 is ResNet. Restrictions on the number of residual connections is a way to over-fit the CIFAR10 benchmark. While this can give a good result on this benchmark, the searching algorithm might not generalize to other benchmarks. ",
|
| 875 |
+
"bbox": [
|
| 876 |
+
174,
|
| 877 |
+
226,
|
| 878 |
+
825,
|
| 879 |
+
310
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 9
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "text",
|
| 885 |
+
"text": "2. Use the provided performance. The training strategy affects the performance of the architecture. We suggest the users stick to the performance provided in our benchmark even if it is feasible to use other $\\mathcal { H }$ to get a better performance. This provides a fair comparison with other algorithms. ",
|
| 886 |
+
"bbox": [
|
| 887 |
+
176,
|
| 888 |
+
316,
|
| 889 |
+
823,
|
| 890 |
+
358
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 9
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "3. Report results of multiple searching runs. Since our benchmark can help to largely decrease the computational cost for a number of algorithms. Multiple searching runs give stable results of the searching algorithm with acceptable time cost. ",
|
| 897 |
+
"bbox": [
|
| 898 |
+
176,
|
| 899 |
+
366,
|
| 900 |
+
821,
|
| 901 |
+
407
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 9
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "Limitation regarding to hyper-parameter optimization (HPO). The performance of an architecture depends on the hyper-parameters $\\mathcal { H }$ for its training and the optimal configuration of $\\mathcal { H }$ may vary for different architectures. In NAS-Bench-201, we use the same configuration for all architectures, which may bring biases to the performance of some architectures. One related solution is HPO, which aims to search the optimal hyper-parameter configuration. However, searching the optimal hyper-parameter configurations and the architecture in one shot is too computationally expensive and still is an open problem. ",
|
| 908 |
+
"bbox": [
|
| 909 |
+
174,
|
| 910 |
+
415,
|
| 911 |
+
825,
|
| 912 |
+
512
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 9
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "Potential designs using diagnostic information in NAS-Bench-201. As pointed in Section 2.4, different kinds of diagnostic information are provided. We hope that more insights about NAS could be found by analyzing these diagnostic information and further motivate potential solutions for NAS. For example, parameter sharing (Pham et al., 2018) is the crucial technique to improve the searching efficiency, but the shared parameter would sacrifice the accuracy of each architecture. Could we find a better way to share parameters of each architecture from the learned 15,625 models’ parameters? ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
174,
|
| 921 |
+
518,
|
| 922 |
+
825,
|
| 923 |
+
602
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 9
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "Generalization ability of the search space. It is important to test the generalization of observations on this dataset. An idea strategy is to do all benchmark experiments on a much larger search space. Unfortunately, it is prohibitive regarding the expensive computational cost. We bring some results from (Ying et al., 2019) and (Zela et al., 2020) to provide some preliminary evidence of generalization. In Figure 2, we show the rankings of RS, REA, and REINFORCE is ( REA $>$ REINFORCE $> \\mathrm { R } S$ ). This is consistent with results in NAS-Bench-101, which contains more architecture candidates. For NAS methods with parameter sharing, we find that $\\mathrm { G D A S } \\geq \\mathrm { D A R T S } \\geq \\mathrm { E N A S }$ , which is also consistent with results in NAS-Bench-1SHOT1. Therefore, observations from our NAS-Bench201 may generalize to other search spaces. ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
174,
|
| 932 |
+
609,
|
| 933 |
+
825,
|
| 934 |
+
734
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 9
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "7 CONCLUSION & FUTURE WORK ",
|
| 941 |
+
"text_level": 1,
|
| 942 |
+
"bbox": [
|
| 943 |
+
176,
|
| 944 |
+
757,
|
| 945 |
+
473,
|
| 946 |
+
773
|
| 947 |
+
],
|
| 948 |
+
"page_idx": 9
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"type": "text",
|
| 952 |
+
"text": "In this paper, we introduce NAS-Bench-201 that extends the scope of reproducible NAS. In NASBench-201, almost any NAS algorithms can be directly evaluated. We train and evaluate 15,625 architecture on three different datasets, and we provide results regarding different metrics. We comprehensively analyze our dataset and test some recent NAS algorithms on NAS-Bench-201 to serve as baselines for future works. In future, we will (1) consider HPO and NAS together and (2) much larger search space. We welcome researchers to try their NAS algorithms on our NAS-Bench201 and would update the paper to include their results. ",
|
| 953 |
+
"bbox": [
|
| 954 |
+
174,
|
| 955 |
+
790,
|
| 956 |
+
825,
|
| 957 |
+
888
|
| 958 |
+
],
|
| 959 |
+
"page_idx": 9
|
| 960 |
+
},
|
| 961 |
+
{
|
| 962 |
+
"type": "text",
|
| 963 |
+
"text": "Acknowledgements. We thank the ICLR area chair, ICLR reviewers, and authors of NAS-Bench101 for the constructive suggestions during the rebuttal and revision period. ",
|
| 964 |
+
"bbox": [
|
| 965 |
+
173,
|
| 966 |
+
895,
|
| 967 |
+
821,
|
| 968 |
+
924
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 9
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "text",
|
| 974 |
+
"text": "REFERENCES ",
|
| 975 |
+
"text_level": 1,
|
| 976 |
+
"bbox": [
|
| 977 |
+
176,
|
| 978 |
+
102,
|
| 979 |
+
287,
|
| 980 |
+
117
|
| 981 |
+
],
|
| 982 |
+
"page_idx": 10
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"type": "text",
|
| 986 |
+
"text": "Bowen Baker, Otkrist Gupta, Ramesh Raskar, and Nikhil Naik. Accelerating neural architecture search using performance prediction. In International Conference on Learning Representations Workshop (ICLR-W), 2018. ",
|
| 987 |
+
"bbox": [
|
| 988 |
+
174,
|
| 989 |
+
126,
|
| 990 |
+
823,
|
| 991 |
+
169
|
| 992 |
+
],
|
| 993 |
+
"page_idx": 10
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"type": "text",
|
| 997 |
+
"text": "James Bergstra and Yoshua Bengio. Random search for hyper-parameter optimization. The Journal of Machine Learning Research (JMLR), 13(Feb):281–305, 2012. ",
|
| 998 |
+
"bbox": [
|
| 999 |
+
169,
|
| 1000 |
+
179,
|
| 1001 |
+
823,
|
| 1002 |
+
208
|
| 1003 |
+
],
|
| 1004 |
+
"page_idx": 10
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"type": "text",
|
| 1008 |
+
"text": "Andrew Brock, Theodore Lim, James M Ritchie, and Nick Weston. SMASH: one-shot model architecture search through hypernetworks. In International Conference on Learning Representations (ICLR), 2018. ",
|
| 1009 |
+
"bbox": [
|
| 1010 |
+
174,
|
| 1011 |
+
218,
|
| 1012 |
+
826,
|
| 1013 |
+
261
|
| 1014 |
+
],
|
| 1015 |
+
"page_idx": 10
|
| 1016 |
+
},
|
| 1017 |
+
{
|
| 1018 |
+
"type": "text",
|
| 1019 |
+
"text": "Han Cai, Tianyao Chen, Weinan Zhang, Yong Yu, and Jun Wang. Efficient architecture search by network transformation. In AAAI Conference on Artificial Intelligence (AAAI), pp. 2787–2794, 2018. ",
|
| 1020 |
+
"bbox": [
|
| 1021 |
+
173,
|
| 1022 |
+
271,
|
| 1023 |
+
825,
|
| 1024 |
+
314
|
| 1025 |
+
],
|
| 1026 |
+
"page_idx": 10
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"type": "text",
|
| 1030 |
+
"text": "Tianqi Chen, Ian Goodfellow, and Jonathon Shlens. Net2net: Accelerating learning via knowledge transfer. In International Conference on Learning Representations (ICLR), 2016. ",
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
173,
|
| 1033 |
+
325,
|
| 1034 |
+
823,
|
| 1035 |
+
354
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 10
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "text",
|
| 1041 |
+
"text": "Patryk Chrabaszcz, Ilya Loshchilov, and Frank Hutter. A downsampled variant of imagenet as an alternative to the cifar datasets. arXiv preprint arXiv:1707.08819, 2017. ",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
171,
|
| 1044 |
+
364,
|
| 1045 |
+
823,
|
| 1046 |
+
395
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 10
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "Xuanyi Dong and Yi Yang. One-shot neural architecture search via self-evaluated template network. In Proc. of the IEEE International Conference on Computer Vision (ICCV), pp. 3681–3690, 2019a. ",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
174,
|
| 1055 |
+
404,
|
| 1056 |
+
823,
|
| 1057 |
+
446
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 10
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "Xuanyi Dong and Yi Yang. Searching for a robust neural architecture in four gpu hours. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1761–1770, 2019b. ",
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
173,
|
| 1066 |
+
457,
|
| 1067 |
+
825,
|
| 1068 |
+
500
|
| 1069 |
+
],
|
| 1070 |
+
"page_idx": 10
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "text",
|
| 1074 |
+
"text": "Stefan Falkner, Aaron Klein, and Frank Hutter. BOHB: Robust and efficient hyperparameter optimization at scale. In The International Conference on Machine Learning (ICML), pp. 1436–1445, 2018. ",
|
| 1075 |
+
"bbox": [
|
| 1076 |
+
173,
|
| 1077 |
+
510,
|
| 1078 |
+
825,
|
| 1079 |
+
553
|
| 1080 |
+
],
|
| 1081 |
+
"page_idx": 10
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"type": "text",
|
| 1085 |
+
"text": "Golnaz Ghiasi, Tsung-Yi Lin, and Quoc V Le. Dropblock: A regularization method for convolutional networks. In The Conference on Neural Information Processing Systems (NeurIPS), pp. 10727–10737, 2018. ",
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
173,
|
| 1088 |
+
563,
|
| 1089 |
+
823,
|
| 1090 |
+
606
|
| 1091 |
+
],
|
| 1092 |
+
"page_idx": 10
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"type": "text",
|
| 1096 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778, 2016. ",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
174,
|
| 1099 |
+
616,
|
| 1100 |
+
823,
|
| 1101 |
+
660
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 10
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015. ",
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
173,
|
| 1110 |
+
670,
|
| 1111 |
+
823,
|
| 1112 |
+
699
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 10
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "text",
|
| 1118 |
+
"text": "Aaron Klein and Frank Hutter. Tabular benchmarks for joint architecture and hyperparameter optimization. arXiv preprint arXiv:1905.04970, 2019. ",
|
| 1119 |
+
"bbox": [
|
| 1120 |
+
173,
|
| 1121 |
+
709,
|
| 1122 |
+
823,
|
| 1123 |
+
739
|
| 1124 |
+
],
|
| 1125 |
+
"page_idx": 10
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"type": "text",
|
| 1129 |
+
"text": "Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009. ",
|
| 1130 |
+
"bbox": [
|
| 1131 |
+
173,
|
| 1132 |
+
748,
|
| 1133 |
+
823,
|
| 1134 |
+
779
|
| 1135 |
+
],
|
| 1136 |
+
"page_idx": 10
|
| 1137 |
+
},
|
| 1138 |
+
{
|
| 1139 |
+
"type": "text",
|
| 1140 |
+
"text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. ImageNet classification with deep convolutional neural networks. In The Conference on Neural Information Processing Systems (NeurIPS), pp. 1097–1105, 2012. ",
|
| 1141 |
+
"bbox": [
|
| 1142 |
+
173,
|
| 1143 |
+
787,
|
| 1144 |
+
823,
|
| 1145 |
+
832
|
| 1146 |
+
],
|
| 1147 |
+
"page_idx": 10
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"type": "text",
|
| 1151 |
+
"text": "Liam Li and Ameet Talwalkar. Random search and reproducibility for neural architecture search. In The Conference on Uncertainty in Artificial Intelligence (UAI), 2019. ",
|
| 1152 |
+
"bbox": [
|
| 1153 |
+
169,
|
| 1154 |
+
842,
|
| 1155 |
+
825,
|
| 1156 |
+
871
|
| 1157 |
+
],
|
| 1158 |
+
"page_idx": 10
|
| 1159 |
+
},
|
| 1160 |
+
{
|
| 1161 |
+
"type": "text",
|
| 1162 |
+
"text": "Lisha Li, Kevin Jamieson, Giulia DeSalvo, Afshin Rostamizadeh, and Ameet Talwalkar. Hyperband: A novel bandit-based approach to hyperparameter optimization. The Journal of Machine Learning Research (JMLR), 18(1):6765–6816, 2018. ",
|
| 1163 |
+
"bbox": [
|
| 1164 |
+
174,
|
| 1165 |
+
881,
|
| 1166 |
+
823,
|
| 1167 |
+
924
|
| 1168 |
+
],
|
| 1169 |
+
"page_idx": 10
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"type": "text",
|
| 1173 |
+
"text": "Chenxi Liu, Barret Zoph, Maxim Neumann, Jonathon Shlens, Wei Hua, Li-Jia Li, Li Fei-Fei, Alan Yuille, Jonathan Huang, and Kevin Murphy. Progressive neural architecture search. In Proc. of the European Conference on Computer Vision (ECCV), pp. 19–34, 2018. ",
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
176,
|
| 1176 |
+
103,
|
| 1177 |
+
823,
|
| 1178 |
+
146
|
| 1179 |
+
],
|
| 1180 |
+
"page_idx": 11
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"type": "text",
|
| 1184 |
+
"text": "Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: Differentiable architecture search. In International Conference on Learning Representations (ICLR), 2019. ",
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
171,
|
| 1187 |
+
155,
|
| 1188 |
+
823,
|
| 1189 |
+
184
|
| 1190 |
+
],
|
| 1191 |
+
"page_idx": 11
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"type": "text",
|
| 1195 |
+
"text": "Ilya Loshchilov and Frank Hutter. SGDR: Stochastic gradient descent with warm restarts. In International Conference on Learning Representations (ICLR), 2017. ",
|
| 1196 |
+
"bbox": [
|
| 1197 |
+
171,
|
| 1198 |
+
193,
|
| 1199 |
+
823,
|
| 1200 |
+
223
|
| 1201 |
+
],
|
| 1202 |
+
"page_idx": 11
|
| 1203 |
+
},
|
| 1204 |
+
{
|
| 1205 |
+
"type": "text",
|
| 1206 |
+
"text": "Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. In The Conference on Neural Information Processing Systems Workshop (NeurIPS-W), 2017. ",
|
| 1207 |
+
"bbox": [
|
| 1208 |
+
173,
|
| 1209 |
+
231,
|
| 1210 |
+
826,
|
| 1211 |
+
287
|
| 1212 |
+
],
|
| 1213 |
+
"page_idx": 11
|
| 1214 |
+
},
|
| 1215 |
+
{
|
| 1216 |
+
"type": "text",
|
| 1217 |
+
"text": "Hieu Pham, Melody Guan, Barret Zoph, Quoc Le, and Jeff Dean. Efficient neural architecture search via parameters sharing. In The International Conference on Machine Learning (ICML), pp. 4095–4104, 2018. ",
|
| 1218 |
+
"bbox": [
|
| 1219 |
+
173,
|
| 1220 |
+
297,
|
| 1221 |
+
825,
|
| 1222 |
+
340
|
| 1223 |
+
],
|
| 1224 |
+
"page_idx": 11
|
| 1225 |
+
},
|
| 1226 |
+
{
|
| 1227 |
+
"type": "text",
|
| 1228 |
+
"text": "Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V Le. Regularized evolution for image classifier architecture search. In AAAI Conference on Artificial Intelligence (AAAI), pp. 4780– 4789, 2019. ",
|
| 1229 |
+
"bbox": [
|
| 1230 |
+
173,
|
| 1231 |
+
349,
|
| 1232 |
+
825,
|
| 1233 |
+
392
|
| 1234 |
+
],
|
| 1235 |
+
"page_idx": 11
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"type": "text",
|
| 1239 |
+
"text": "Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. ImageNet large scale visual recognition challenge. International Journal of Computer Vision (IJCV), 115(3):211–252, 2015. ",
|
| 1240 |
+
"bbox": [
|
| 1241 |
+
176,
|
| 1242 |
+
401,
|
| 1243 |
+
821,
|
| 1244 |
+
445
|
| 1245 |
+
],
|
| 1246 |
+
"page_idx": 11
|
| 1247 |
+
},
|
| 1248 |
+
{
|
| 1249 |
+
"type": "text",
|
| 1250 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations (ICLR), 2015. ",
|
| 1251 |
+
"bbox": [
|
| 1252 |
+
171,
|
| 1253 |
+
454,
|
| 1254 |
+
823,
|
| 1255 |
+
483
|
| 1256 |
+
],
|
| 1257 |
+
"page_idx": 11
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"type": "text",
|
| 1261 |
+
"text": "Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1–9, 2015. ",
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
173,
|
| 1264 |
+
492,
|
| 1265 |
+
825,
|
| 1266 |
+
547
|
| 1267 |
+
],
|
| 1268 |
+
"page_idx": 11
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"type": "text",
|
| 1272 |
+
"text": "Mingxing Tan, Bo Chen, Ruoming Pang, Vijay Vasudevan, Mark Sandler, Andrew Howard, and Quoc V Le. Mnasnet: Platform-aware neural architecture search for mobile. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2820–2828, 2019. ",
|
| 1273 |
+
"bbox": [
|
| 1274 |
+
174,
|
| 1275 |
+
558,
|
| 1276 |
+
825,
|
| 1277 |
+
602
|
| 1278 |
+
],
|
| 1279 |
+
"page_idx": 11
|
| 1280 |
+
},
|
| 1281 |
+
{
|
| 1282 |
+
"type": "text",
|
| 1283 |
+
"text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In The Conference on Neural Information Processing Systems (NeurIPS), pp. 5998–6008, 2017. ",
|
| 1284 |
+
"bbox": [
|
| 1285 |
+
174,
|
| 1286 |
+
609,
|
| 1287 |
+
826,
|
| 1288 |
+
654
|
| 1289 |
+
],
|
| 1290 |
+
"page_idx": 11
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"type": "text",
|
| 1294 |
+
"text": "Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8(3-4):229–256, 1992. ",
|
| 1295 |
+
"bbox": [
|
| 1296 |
+
173,
|
| 1297 |
+
662,
|
| 1298 |
+
825,
|
| 1299 |
+
691
|
| 1300 |
+
],
|
| 1301 |
+
"page_idx": 11
|
| 1302 |
+
},
|
| 1303 |
+
{
|
| 1304 |
+
"type": "text",
|
| 1305 |
+
"text": "Chris Ying, Aaron Klein, Esteban Real, Eric Christiansen, Kevin Murphy, and Frank Hutter. Nasbench-101: Towards reproducible neural architecture search. In The International Conference on Machine Learning (ICML), pp. 7105–7114, 2019. ",
|
| 1306 |
+
"bbox": [
|
| 1307 |
+
176,
|
| 1308 |
+
700,
|
| 1309 |
+
825,
|
| 1310 |
+
744
|
| 1311 |
+
],
|
| 1312 |
+
"page_idx": 11
|
| 1313 |
+
},
|
| 1314 |
+
{
|
| 1315 |
+
"type": "text",
|
| 1316 |
+
"text": "Kaicheng Yu, Christian Sciuto, Martin Jaggi, Claudiu Musat, and Mathieu Salzmann. Evaluating the search phase of neural architecture search. In International Conference on Learning Representations (ICLR), 2020. ",
|
| 1317 |
+
"bbox": [
|
| 1318 |
+
173,
|
| 1319 |
+
752,
|
| 1320 |
+
825,
|
| 1321 |
+
795
|
| 1322 |
+
],
|
| 1323 |
+
"page_idx": 11
|
| 1324 |
+
},
|
| 1325 |
+
{
|
| 1326 |
+
"type": "text",
|
| 1327 |
+
"text": "Arber Zela, Julien Siems, and Frank Hutter. Nas-bench-1shot1: Benchmarking and dissecting one shot neural architecture search. In International Conference on Learning Representations (ICLR), 2020. ",
|
| 1328 |
+
"bbox": [
|
| 1329 |
+
174,
|
| 1330 |
+
804,
|
| 1331 |
+
823,
|
| 1332 |
+
847
|
| 1333 |
+
],
|
| 1334 |
+
"page_idx": 11
|
| 1335 |
+
},
|
| 1336 |
+
{
|
| 1337 |
+
"type": "text",
|
| 1338 |
+
"text": "Chris Zhang, Mengye Ren, and Raquel Urtasun. Graph hypernetworks for neural architecture search. In International Conference on Learning Representations (ICLR), 2019. ",
|
| 1339 |
+
"bbox": [
|
| 1340 |
+
173,
|
| 1341 |
+
857,
|
| 1342 |
+
821,
|
| 1343 |
+
886
|
| 1344 |
+
],
|
| 1345 |
+
"page_idx": 11
|
| 1346 |
+
},
|
| 1347 |
+
{
|
| 1348 |
+
"type": "text",
|
| 1349 |
+
"text": "Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In International Conference on Learning Representations (ICLR), 2018. ",
|
| 1350 |
+
"bbox": [
|
| 1351 |
+
174,
|
| 1352 |
+
895,
|
| 1353 |
+
820,
|
| 1354 |
+
924
|
| 1355 |
+
],
|
| 1356 |
+
"page_idx": 11
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"type": "text",
|
| 1360 |
+
"text": "Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. In International Conference on Learning Representations (ICLR), 2017. ",
|
| 1361 |
+
"bbox": [
|
| 1362 |
+
173,
|
| 1363 |
+
103,
|
| 1364 |
+
821,
|
| 1365 |
+
132
|
| 1366 |
+
],
|
| 1367 |
+
"page_idx": 12
|
| 1368 |
+
},
|
| 1369 |
+
{
|
| 1370 |
+
"type": "text",
|
| 1371 |
+
"text": "Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. Learning transferable architectures for scalable image recognition. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 8697–8710, 2018. ",
|
| 1372 |
+
"bbox": [
|
| 1373 |
+
178,
|
| 1374 |
+
141,
|
| 1375 |
+
823,
|
| 1376 |
+
184
|
| 1377 |
+
],
|
| 1378 |
+
"page_idx": 12
|
| 1379 |
+
},
|
| 1380 |
+
{
|
| 1381 |
+
"type": "table",
|
| 1382 |
+
"img_path": "images/c715beb616c6fd4268086aee819702b5af303beb9a4cb91599cae448a8b15776.jpg",
|
| 1383 |
+
"table_caption": [],
|
| 1384 |
+
"table_footnote": [],
|
| 1385 |
+
"table_body": "<table><tr><td rowspan=\"2\">EPOCHS</td><td rowspan=\"2\">TOTAL</td><td colspan=\"2\">CIFAR-10</td><td colspan=\"2\">CIFAR-100</td><td colspan=\"2\">ImageNet-16-120</td></tr><tr><td>validation</td><td>test</td><td>validation</td><td>test</td><td>validation</td><td>test</td></tr><tr><td>6</td><td>12 (H)</td><td>0.7767</td><td>0.7627</td><td>0.8086</td><td>0.8095</td><td>0.8052</td><td>0.7941</td></tr><tr><td>12</td><td>12 (H+)</td><td>0.9110</td><td>0.8983</td><td>0.9361</td><td>0.9368</td><td>0.9062</td><td>0.8952</td></tr><tr><td>12</td><td>200 (H+)</td><td>0.7520</td><td>0.7396</td><td>0.8071</td><td>0.8080</td><td>0.8167</td><td>0.8092</td></tr><tr><td>24</td><td>200 (H+)</td><td>0.7705</td><td>0.7594</td><td>0.8280</td><td>0.8290</td><td>0.8286</td><td>0.8217</td></tr><tr><td>100</td><td>200 (H+)</td><td>0.7938</td><td>0.7900</td><td>0.8529</td><td>0.8540</td><td>0.8262</td><td>0.8211</td></tr><tr><td>150</td><td>200 (H+)</td><td>0.8955</td><td>0.8926</td><td>0.9239</td><td>0.9246</td><td>0.8506</td><td>0.8425</td></tr><tr><td>175</td><td>200 (H+)</td><td>0.9834</td><td>0.9782</td><td>0.9743</td><td>0.9744</td><td>0.8539</td><td>0.8423</td></tr><tr><td>200</td><td>200 (Ht+)</td><td>0.9993</td><td>0.9937</td><td>0.9672</td><td>0.9671</td><td>0.8259</td><td>0.8124</td></tr></table>",
|
| 1386 |
+
"bbox": [
|
| 1387 |
+
191,
|
| 1388 |
+
196,
|
| 1389 |
+
807,
|
| 1390 |
+
348
|
| 1391 |
+
],
|
| 1392 |
+
"page_idx": 12
|
| 1393 |
+
},
|
| 1394 |
+
{
|
| 1395 |
+
"type": "text",
|
| 1396 |
+
"text": "Table 6: We compare the correlation of different training strategies. The correlation coefficient between the validation accuracy after several training epochs on CIFAR-10 and (1) the validation accuracy of full trained models on the CIFAR-10 training set, (2) the test accuracy on CIFAR-10 trained with the training and validation sets, (3) the validation/test accuracy on CIFAR-100 trained with the CIFAR-100 training set, (4) the validation/test accuracy on ImageNet-16-120 trained with the ImageNet-16-120 training set. We use the validation accuracy after “EPOCHS“ training epochs, where the the cosine annealing converged after “TOTAL” epochs. ",
|
| 1397 |
+
"bbox": [
|
| 1398 |
+
173,
|
| 1399 |
+
358,
|
| 1400 |
+
825,
|
| 1401 |
+
457
|
| 1402 |
+
],
|
| 1403 |
+
"page_idx": 12
|
| 1404 |
+
},
|
| 1405 |
+
{
|
| 1406 |
+
"type": "text",
|
| 1407 |
+
"text": "A MORE DETAILS OF NAS-Bench-201 ",
|
| 1408 |
+
"text_level": 1,
|
| 1409 |
+
"bbox": [
|
| 1410 |
+
174,
|
| 1411 |
+
483,
|
| 1412 |
+
498,
|
| 1413 |
+
500
|
| 1414 |
+
],
|
| 1415 |
+
"page_idx": 12
|
| 1416 |
+
},
|
| 1417 |
+
{
|
| 1418 |
+
"type": "text",
|
| 1419 |
+
"text": "Number of unique architectures. In our NAS-Bench-201, we encode each architecture by a 6- dimensional vector. The $i$ -th value in this vector indicates the operation in the $i \\cdot$ -th edge in a cell. Since we have 5 possible operations, there are $5 ^ { 6 } = 1 5 6 2 5$ total unique models in this encoding. If we identify the isomorphic cell caused by the “skip-connect” operation, there are 12751 unique topology structures. If we identify the isomorphic cell caused by both “skip-connect” and “zeroize” operations, there are only 6466 unique topology structures. Note that, due to the numerical error, when given the same inputs, two architectures with the isomorphic cell might have different outputs. ",
|
| 1420 |
+
"bbox": [
|
| 1421 |
+
174,
|
| 1422 |
+
515,
|
| 1423 |
+
825,
|
| 1424 |
+
613
|
| 1425 |
+
],
|
| 1426 |
+
"page_idx": 12
|
| 1427 |
+
},
|
| 1428 |
+
{
|
| 1429 |
+
"type": "text",
|
| 1430 |
+
"text": "Note that, when we build our NAS-Bench-201, we train and evaluate every architecture without considering isomorphism. ",
|
| 1431 |
+
"bbox": [
|
| 1432 |
+
176,
|
| 1433 |
+
619,
|
| 1434 |
+
820,
|
| 1435 |
+
648
|
| 1436 |
+
],
|
| 1437 |
+
"page_idx": 12
|
| 1438 |
+
},
|
| 1439 |
+
{
|
| 1440 |
+
"type": "text",
|
| 1441 |
+
"text": "NAS-Bench-201 with bandit-based algorithms. Bandit-based algorithms, such as Hyperband (Li et al., 2018) and BOHB (Falkner et al., 2018), usually train models with a short time budget. In our NAS-Bench-201, on CIFAR-10, we provide two options if you want to obtain the performance of a model trained with a short time budget: (1) Results from $\\mathcal { H } ^ { \\ddag }$ , where the cosine annealing converged at the 12-th epoch. (2) Results from $\\mathcal { H } ^ { \\dagger }$ , where the cosine annealing converged at the 200-th epoch. As shown in Table 6, the performance of these converged networks is much more likely to correlate highly with the performance after a larger number of iterations than just taking an earlier point of a single cosine annealing trajectory. Therefore, we choose the first option for all NAS algorithms that do not use parameter sharing. ",
|
| 1442 |
+
"bbox": [
|
| 1443 |
+
173,
|
| 1444 |
+
655,
|
| 1445 |
+
825,
|
| 1446 |
+
781
|
| 1447 |
+
],
|
| 1448 |
+
"page_idx": 12
|
| 1449 |
+
},
|
| 1450 |
+
{
|
| 1451 |
+
"type": "text",
|
| 1452 |
+
"text": "B IMPLEMENTATION DETAILS ",
|
| 1453 |
+
"text_level": 1,
|
| 1454 |
+
"bbox": [
|
| 1455 |
+
176,
|
| 1456 |
+
801,
|
| 1457 |
+
439,
|
| 1458 |
+
816
|
| 1459 |
+
],
|
| 1460 |
+
"page_idx": 12
|
| 1461 |
+
},
|
| 1462 |
+
{
|
| 1463 |
+
"type": "text",
|
| 1464 |
+
"text": "Based on the publicly available codes, we re-implement 10 NAS algorithms by ourselves to search architectures on our NAS-Bench-201. We provide the implementation details of each searching algorithm below. ",
|
| 1465 |
+
"bbox": [
|
| 1466 |
+
176,
|
| 1467 |
+
833,
|
| 1468 |
+
825,
|
| 1469 |
+
875
|
| 1470 |
+
],
|
| 1471 |
+
"page_idx": 12
|
| 1472 |
+
},
|
| 1473 |
+
{
|
| 1474 |
+
"type": "text",
|
| 1475 |
+
"text": "We consider the searching time of the first order DARTS as a baseline (about 12000 seconds on CIFAR-10). When evaluating RS, REINFORCE, ENAS, and BOHB, we set the total time budget as 12000 seconds for them. By default, for NAS algorithms with parameter sharing, we follow most hyper-parameters from DARTS and do not learn the scale and shift parameters for BN layers in each searching cell. We setup the searching procedure of RSPS, GDAS, SETN, ENAS five times longer than DARTS, because they optimize $\\textcircled { \\frac { 1 } { 5 } }$ of parameters but DARTS optimize all parameters per iteration. Most configurations can be found at https://github.com/D-X-Y/ AutoDL-Projects/tree/master/configs/nas-benchmark/algos. ",
|
| 1476 |
+
"bbox": [
|
| 1477 |
+
176,
|
| 1478 |
+
882,
|
| 1479 |
+
823,
|
| 1480 |
+
924
|
| 1481 |
+
],
|
| 1482 |
+
"page_idx": 12
|
| 1483 |
+
},
|
| 1484 |
+
{
|
| 1485 |
+
"type": "text",
|
| 1486 |
+
"text": "",
|
| 1487 |
+
"bbox": [
|
| 1488 |
+
173,
|
| 1489 |
+
103,
|
| 1490 |
+
823,
|
| 1491 |
+
174
|
| 1492 |
+
],
|
| 1493 |
+
"page_idx": 13
|
| 1494 |
+
},
|
| 1495 |
+
{
|
| 1496 |
+
"type": "text",
|
| 1497 |
+
"text": "Random search (RS) (Bergstra & Bengio, 2012). We randomly select architectures until the total training time plus the time of one evaluation procedure reaches the total budget. We use the validation accuracy after 12 training epochs $( { \\mathcal { H } } ^ { \\ddagger } )$ , which can be obtained directly in our NAS-Bench-201 as discussed in Section 2.4. The architecture with the highest validation accuracy is selected as the final searched architecture. ",
|
| 1498 |
+
"bbox": [
|
| 1499 |
+
174,
|
| 1500 |
+
180,
|
| 1501 |
+
821,
|
| 1502 |
+
195
|
| 1503 |
+
],
|
| 1504 |
+
"page_idx": 13
|
| 1505 |
+
},
|
| 1506 |
+
{
|
| 1507 |
+
"type": "text",
|
| 1508 |
+
"text": "",
|
| 1509 |
+
"bbox": [
|
| 1510 |
+
174,
|
| 1511 |
+
196,
|
| 1512 |
+
612,
|
| 1513 |
+
263
|
| 1514 |
+
],
|
| 1515 |
+
"page_idx": 13
|
| 1516 |
+
},
|
| 1517 |
+
{
|
| 1518 |
+
"type": "text",
|
| 1519 |
+
"text": "Regularized evolution for image classifier architecture search (REA) (Real et al., 2019). We set the initial population size as 10, the number of cycles as infinity. The sample size is chosen as 10 from [3, 5, 10], according to Figure 9. We finish the algorithm once the simulated training time of the traversed architecture reaches the time budgets (12000 seconds). We use the validation accuracy after 12 training epochs $( { \\mathcal { H } } ^ { \\ddagger } )$ as the fitness. ",
|
| 1520 |
+
"bbox": [
|
| 1521 |
+
174,
|
| 1522 |
+
271,
|
| 1523 |
+
614,
|
| 1524 |
+
368
|
| 1525 |
+
],
|
| 1526 |
+
"page_idx": 13
|
| 1527 |
+
},
|
| 1528 |
+
{
|
| 1529 |
+
"type": "image",
|
| 1530 |
+
"img_path": "images/3285b7ca5c40bc09586d55b9900b6fc30ebf214d06a87a399aed6e5bc83d38d6.jpg",
|
| 1531 |
+
"image_caption": [
|
| 1532 |
+
"Figure 9: The effect of different sample sizes for REA on the CIFAR-10 validation set. "
|
| 1533 |
+
],
|
| 1534 |
+
"image_footnote": [],
|
| 1535 |
+
"bbox": [
|
| 1536 |
+
627,
|
| 1537 |
+
200,
|
| 1538 |
+
821,
|
| 1539 |
+
315
|
| 1540 |
+
],
|
| 1541 |
+
"page_idx": 13
|
| 1542 |
+
},
|
| 1543 |
+
{
|
| 1544 |
+
"type": "text",
|
| 1545 |
+
"text": "REINFORCE (Williams, 1992). We follow (Ying et al., 2019) to use the REINFORCE algorithm as a baseline RL method. We use an architecture encoding to parameterize each candidate in our search space as (Liu et al., 2019; Dong & Yang, 2019b). We use the validation accuracy after 12 training epochs $\\mathcal { H } ^ { \\ddag }$ as the reward in REINFORCE. The architecture encoding is optimized via Adam. We evaluate the learning rate from [0.01, 0.02, 0.05, 0.1, 0.2, 0.5] following (Ying et al., 2019). According to Figure 10, the learning date is set as . The momentum for exponential moving average of 0.9. We finish the training once the simulated training time reaches the time budgets (12000 seconds). ",
|
| 1546 |
+
"bbox": [
|
| 1547 |
+
173,
|
| 1548 |
+
375,
|
| 1549 |
+
823,
|
| 1550 |
+
390
|
| 1551 |
+
],
|
| 1552 |
+
"page_idx": 13
|
| 1553 |
+
},
|
| 1554 |
+
{
|
| 1555 |
+
"type": "text",
|
| 1556 |
+
"text": "",
|
| 1557 |
+
"bbox": [
|
| 1558 |
+
174,
|
| 1559 |
+
388,
|
| 1560 |
+
614,
|
| 1561 |
+
515
|
| 1562 |
+
],
|
| 1563 |
+
"page_idx": 13
|
| 1564 |
+
},
|
| 1565 |
+
{
|
| 1566 |
+
"type": "text",
|
| 1567 |
+
"text": "The first order and second order DARTS (DARTS-V1 and DARTS-V2) (Liu et al., 2019). We train the shared parameters via Nesterov momentum SGD, using the cross-entropy loss for 50 epochs in total. We set weight decay as 0.0005 and momentum of 0.9. We decay the learning rate from 0.025 to 0.001 via cosine learning rate scheduler and clip the gradient by 5. We train the architecture encoding via Adam with the learning rate of 0.0003 and the weight decay of 0.001. We use the batch size of 64. The random horizontal flipping, random cropping with padding, and normalization are used for data augmentation. We choose these hyper-parameters following (Liu et al., 2019). ",
|
| 1568 |
+
"bbox": [
|
| 1569 |
+
174,
|
| 1570 |
+
521,
|
| 1571 |
+
612,
|
| 1572 |
+
604
|
| 1573 |
+
],
|
| 1574 |
+
"page_idx": 13
|
| 1575 |
+
},
|
| 1576 |
+
{
|
| 1577 |
+
"type": "image",
|
| 1578 |
+
"img_path": "images/59d4bc392632ea80c7311e57578785579486be405277417101ea456bcbb9031d.jpg",
|
| 1579 |
+
"image_caption": [
|
| 1580 |
+
"Figure 10: We evaluate the effect of different learning rates for REINFORCE, and report the CIFAR-10 validation accuracy of the searched architecture. "
|
| 1581 |
+
],
|
| 1582 |
+
"image_footnote": [],
|
| 1583 |
+
"bbox": [
|
| 1584 |
+
627,
|
| 1585 |
+
395,
|
| 1586 |
+
821,
|
| 1587 |
+
511
|
| 1588 |
+
],
|
| 1589 |
+
"page_idx": 13
|
| 1590 |
+
},
|
| 1591 |
+
{
|
| 1592 |
+
"type": "text",
|
| 1593 |
+
"text": "",
|
| 1594 |
+
"bbox": [
|
| 1595 |
+
173,
|
| 1596 |
+
606,
|
| 1597 |
+
820,
|
| 1598 |
+
660
|
| 1599 |
+
],
|
| 1600 |
+
"page_idx": 13
|
| 1601 |
+
},
|
| 1602 |
+
{
|
| 1603 |
+
"type": "text",
|
| 1604 |
+
"text": "Random search with parameter sharing (RSPS) (Li & Talwalkar, 2019). We train RSPS with the similar hyper-parameters as that of DARTS. Differently, we train the algorithm in 250 epochs in total. During each searching iteration, we randomly sample one architecture in each batch training. Each architecture uses the training mode for BN during training and the evaluation mode during evaluation (Paszke et al., 2017). After training the shared parameters, we evaluate 100 randomly selected architectures with the shared parameters. For each architecture, we randomly choose one mini-batch with 256 validation samples to estimate the validation accuracy instead of using the whole validation set to calculate the precise validation accuracy. The one with the highest estimated validation accuracy will be selected. With the size of this mini-batch increasing, the more precise validation accuracy would be obtained and the better architecture would be selected. However, the searching costs will also be increased. We use the size of 256 to trade-off the accuracy and cost. ",
|
| 1605 |
+
"bbox": [
|
| 1606 |
+
173,
|
| 1607 |
+
667,
|
| 1608 |
+
825,
|
| 1609 |
+
820
|
| 1610 |
+
],
|
| 1611 |
+
"page_idx": 13
|
| 1612 |
+
},
|
| 1613 |
+
{
|
| 1614 |
+
"type": "text",
|
| 1615 |
+
"text": "Gradient-based search using differentiable architecture sampler (GDAS) (Dong & Yang, 2019b). We use the most hyper-parameters as that of DARTS but train it for 250 epochs in total. The Gumbel-Softmax temperature is linearly decayed from 10 to 0.1. ",
|
| 1616 |
+
"bbox": [
|
| 1617 |
+
174,
|
| 1618 |
+
827,
|
| 1619 |
+
818,
|
| 1620 |
+
869
|
| 1621 |
+
],
|
| 1622 |
+
"page_idx": 13
|
| 1623 |
+
},
|
| 1624 |
+
{
|
| 1625 |
+
"type": "text",
|
| 1626 |
+
"text": "Self-Evaluated Template Network (SETN) (Dong & Yang, 2019a). We use the most hyperparameters as that of DARTS but train it for 250 epochs in total. After training the shared parameters, we select 100 architectures with the highest probabilities (encoded by the learned architecture encoding). We evaluate these 100 selected architectures with the shared parameters. The evaluation procedure for these 100 architectures are the same as RSPS. ",
|
| 1627 |
+
"bbox": [
|
| 1628 |
+
174,
|
| 1629 |
+
876,
|
| 1630 |
+
825,
|
| 1631 |
+
917
|
| 1632 |
+
],
|
| 1633 |
+
"page_idx": 13
|
| 1634 |
+
},
|
| 1635 |
+
{
|
| 1636 |
+
"type": "table",
|
| 1637 |
+
"img_path": "images/54bde9d5cc482527acf876b6d3c335fafafadbd36730a638afd45a0107ed0c34.jpg",
|
| 1638 |
+
"table_caption": [
|
| 1639 |
+
"Table 7: The correlation between the probability or the one-shot validation accuracy (OSVA) and the ground truth accuracy on the CIFAR-10 validation set. “BN with Train” indicates that, during evaluation, the mean and variance of BN layers are calculated within each mini-batch. “BN with Eval” indicates that we accumulate mean and variance of BN layers in the training set and use these accumulated mean and variance for evaluation. We report the correlation as the average of 3 runs. "
|
| 1640 |
+
],
|
| 1641 |
+
"table_footnote": [],
|
| 1642 |
+
"table_body": "<table><tr><td rowspan=\"2\">Methods</td><td colspan=\"3\">CIFAR-1OValidation Set</td></tr><tr><td>Probability</td><td>OSVA (BN with Train)</td><td>OSVA (BN with Eval)</td></tr><tr><td>DARTS-V1</td><td>0.0779</td><td>0.0039</td><td>-0.0071</td></tr><tr><td>DARTS-V2</td><td>0.0862</td><td>0.0355</td><td>0.0109</td></tr><tr><td>SETN</td><td>0.0682</td><td>0.9049</td><td>0.0862</td></tr><tr><td>GDAS</td><td>0.2714</td><td>0.8141</td><td>0.2466</td></tr></table>",
|
| 1643 |
+
"bbox": [
|
| 1644 |
+
246,
|
| 1645 |
+
101,
|
| 1646 |
+
751,
|
| 1647 |
+
188
|
| 1648 |
+
],
|
| 1649 |
+
"page_idx": 14
|
| 1650 |
+
},
|
| 1651 |
+
{
|
| 1652 |
+
"type": "text",
|
| 1653 |
+
"text": "",
|
| 1654 |
+
"bbox": [
|
| 1655 |
+
173,
|
| 1656 |
+
306,
|
| 1657 |
+
823,
|
| 1658 |
+
334
|
| 1659 |
+
],
|
| 1660 |
+
"page_idx": 14
|
| 1661 |
+
},
|
| 1662 |
+
{
|
| 1663 |
+
"type": "text",
|
| 1664 |
+
"text": "ENAS (Pham et al., 2018). We use a two layer LSTM as the controller with the hidden size of 32. We use the temperature of 5 and the tanh constant of 2.5 for the sampling logits Following (Pham et al., 2018), we also add the the controller’s sample entropy to the reward, weighted by 0.0001. We optimize the controller with Adam using the constant learning rate of 0.001. We optimize the network weights with SGD following the learning rate scheduler as the original paper and the batch size of 128. We did not impose any penalty to a specific operation. ",
|
| 1665 |
+
"bbox": [
|
| 1666 |
+
174,
|
| 1667 |
+
342,
|
| 1668 |
+
825,
|
| 1669 |
+
425
|
| 1670 |
+
],
|
| 1671 |
+
"page_idx": 14
|
| 1672 |
+
},
|
| 1673 |
+
{
|
| 1674 |
+
"type": "text",
|
| 1675 |
+
"text": "BOHB (Falkner et al., 2018). We choose to use BOHB as an HPO algorithm on our NAS-Bench201. We follow (Ying et al., 2019) to set up the hyper-parameters for BOHB. We set the number of samples for the acquisition function to 4, the random fraction to $0 \\%$ , the minimum-bandwidth to 0.3, the bandwidth factor to 3. We finish the algorithm once the simulated training time reaches the time budgets (12000 seconds). ",
|
| 1676 |
+
"bbox": [
|
| 1677 |
+
173,
|
| 1678 |
+
431,
|
| 1679 |
+
825,
|
| 1680 |
+
502
|
| 1681 |
+
],
|
| 1682 |
+
"page_idx": 14
|
| 1683 |
+
},
|
| 1684 |
+
{
|
| 1685 |
+
"type": "text",
|
| 1686 |
+
"text": "C DISCUSSION FOR NAS WITH PARAMETER SHARING ",
|
| 1687 |
+
"text_level": 1,
|
| 1688 |
+
"bbox": [
|
| 1689 |
+
176,
|
| 1690 |
+
536,
|
| 1691 |
+
640,
|
| 1692 |
+
553
|
| 1693 |
+
],
|
| 1694 |
+
"page_idx": 14
|
| 1695 |
+
},
|
| 1696 |
+
{
|
| 1697 |
+
"type": "text",
|
| 1698 |
+
"text": "Parameter sharing (Pham et al., 2018) becomes a common technique to improve the efficiency of differentiable neural architecture search methods (Liu et al., 2019; Dong & Yang, 2019b;a). The shared parameters are shared over millions of architecture candidates. It is almost impossible for the shared parameters to be optimal for all candidates. We hope to evaluate the trained shared parameters quantitatively. Specially, we use DARTS, GDAS, and SETN to optimize the shared parameters and the architecture encoding on CIFAR-10. For each architecture candidate, we can calculate its probability of being a good architecture from the architecture encoding following SETN (Dong & Yang, 2019a). In addition, we can also evaluate a candidate using the shared parameters on the validation set to obtain “the one-shot validation accuracy”. It is computationally expensive to evaluate all candidates on the whole validation set. To accelerate this procedure, we evaluate each architecture on a mini-batch with the size of 2048, and use the accuracy on this mini-batch to approximate “the one-shot validation accuracy”. Ideally, the architecture ranking sorted by the probability or the one-shot validation accuracy should be similar to the ground truth ranking. We show the correlation between the proxy metric and the ground truth validation accuracy in Table 7. There are several observations: (1) The correlation between the probability (encoded by the architecture encoding) and the ground truth accuracy is low. It suggests that the argmax-based deriving strategy (Liu et al., 2019) can not secure a good architecture. It remains open on how to derive a good architecture after optimizing the shared parameters. (2) The behavior of BN layers is important to one-shot validation accuracy. The accumulated mean and variance from the training set are harmful to one-shot accuracy. Instead, each architecture candidate should re-calculate the mean and variance of the BN layers. (3) GDAS introduced Gumbel-softmax sampling when optimizing the architecture encoding. This strategy leads to a high correlation for the learned probability than that of DARTS. (4) The uniform sampling strategy for training the shared parameters (Dong & Yang, 2019a) can increase the correlation for one-shot accuracy compared to the strategy of the joint optimizing strategy (Dong & Yang, 2019b; Liu et al., 2019). ",
|
| 1699 |
+
"bbox": [
|
| 1700 |
+
173,
|
| 1701 |
+
577,
|
| 1702 |
+
825,
|
| 1703 |
+
922
|
| 1704 |
+
],
|
| 1705 |
+
"page_idx": 14
|
| 1706 |
+
},
|
| 1707 |
+
{
|
| 1708 |
+
"type": "text",
|
| 1709 |
+
"text": "D DETAILED INFORMATION OF NAS-Bench-201 ",
|
| 1710 |
+
"text_level": 1,
|
| 1711 |
+
"bbox": [
|
| 1712 |
+
173,
|
| 1713 |
+
102,
|
| 1714 |
+
576,
|
| 1715 |
+
118
|
| 1716 |
+
],
|
| 1717 |
+
"page_idx": 15
|
| 1718 |
+
},
|
| 1719 |
+
{
|
| 1720 |
+
"type": "text",
|
| 1721 |
+
"text": "In NAS-Bench-201 (version 1.0), every architecture is trained at least once. To be specific, 6219 architectures are trained once, 1621 architectures are trained twice, 7785 architectures are trained three times with different random seeds. Moreover, we are actively training all architectures with more seeds and will continue updating our NAS-Bench-201. ",
|
| 1722 |
+
"bbox": [
|
| 1723 |
+
174,
|
| 1724 |
+
133,
|
| 1725 |
+
825,
|
| 1726 |
+
189
|
| 1727 |
+
],
|
| 1728 |
+
"page_idx": 15
|
| 1729 |
+
},
|
| 1730 |
+
{
|
| 1731 |
+
"type": "text",
|
| 1732 |
+
"text": "The latency in our NAS-Bench-201 (version 1.0) is computed by running each model on a single GPU (GeForce GTX 1080 Ti) with a batch size of 256. We report the latency on CIFAR-100 and ImageNet-16-120, and the latency on CIFAR-10 should be similar to CIFAR-10. ",
|
| 1733 |
+
"bbox": [
|
| 1734 |
+
174,
|
| 1735 |
+
195,
|
| 1736 |
+
825,
|
| 1737 |
+
238
|
| 1738 |
+
],
|
| 1739 |
+
"page_idx": 15
|
| 1740 |
+
},
|
| 1741 |
+
{
|
| 1742 |
+
"type": "text",
|
| 1743 |
+
"text": "The usage of API. We provide convenient APIs to access our NAS-Bench-201, which can be easily installed via “pip install nas-bench-201”. Some examples are shown as follows: ",
|
| 1744 |
+
"bbox": [
|
| 1745 |
+
173,
|
| 1746 |
+
246,
|
| 1747 |
+
820,
|
| 1748 |
+
273
|
| 1749 |
+
],
|
| 1750 |
+
"page_idx": 15
|
| 1751 |
+
},
|
| 1752 |
+
{
|
| 1753 |
+
"type": "text",
|
| 1754 |
+
"text": "from nas_201_api import NASBench201API as API \n2 api $=$ API(’NAS-Bench-201-v1_0-e61699.pth’) for i, arch_str in enumerate(api): # show every architecturre print (’{:5d}/{:5d} : {:}’.format(i, len(api), arch_str)) 5 info $=$ api.query_meta_info_by_index(1) # get metrics of the 1-th arch res_dict $=$ info.get_metrics(’cifar10’, ’train’) # a dict saving loss/acc print (’The accuracy is {:.2f}’.format(res_dict[’accuracy’])) \n8 print (’The loss is {:.2f}’.format(res_dict[’loss’])) 9 cos_dict $=$ info.get_comput_costs(’cifar100’) # a dict saving costs \n10 print (’The flops is {:.2f} M’.format(cos_dict[’flops’])) \n11 print (’The #parameters is {:.2f} MB’.format(cos_dict[’params’])) \n12 print (’The latency is {:.3f} s’.format(cos_dict[’latency’])) \n13 # query the index of a specific architecture from API \n14 arch_index $=$ api.query_index_by_arch(’|nor_conv_3x3\\~0|+|nor_conv_3x3\\~0| avg_pool_3x3\\~1|+|skip_connect\\~0|nor_conv_3x3\\~1|skip_connect\\~2|’) \n15 # get results of each trial for a specific architecture \n16 results $=$ api.query_by_index(arch_index, ’cifar100’) \n17 print (’There are {:} trials for this architecture [{:}] on cifar100’. format(len(results), api[arch_index])) ",
|
| 1755 |
+
"bbox": [
|
| 1756 |
+
158,
|
| 1757 |
+
281,
|
| 1758 |
+
816,
|
| 1759 |
+
521
|
| 1760 |
+
],
|
| 1761 |
+
"page_idx": 15
|
| 1762 |
+
},
|
| 1763 |
+
{
|
| 1764 |
+
"type": "text",
|
| 1765 |
+
"text": "Please see https://github.com/D-X-Y/NAS-Bench-201 for more kinds of usages. The benchmark data file for API can be downloaded online from https://drive.google.com/ file/d/1SKW0Cu0u8-gb18zDpaAGi0f74UdXeGKs/view. ",
|
| 1766 |
+
"bbox": [
|
| 1767 |
+
174,
|
| 1768 |
+
535,
|
| 1769 |
+
825,
|
| 1770 |
+
577
|
| 1771 |
+
],
|
| 1772 |
+
"page_idx": 15
|
| 1773 |
+
}
|
| 1774 |
+
]
|
parse/train/HJxyZkBKDr/HJxyZkBKDr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJxyZkBKDr/HJxyZkBKDr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/MNVjrDpu6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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Sparse Training via Boosting Pruning Plasticity with Neuroregeneration
|
| 2 |
+
|
| 3 |
+
Shiwei Liu1∗, Tianlong Chen2, Xiaohan Chen2, Zahra Atashgahi3, $\mathbf { L u \ Y i n ^ { 1 } }$ , Huanyu $\mathbf { K o u } ^ { 4 }$ , Li Shen5, Mykola Pechenizkiy1,6, Zhangyang Wang2, Decebal Constantin Mocanu1,3 1Eindhoven University of Technology, 2University of Texas at Austin 3University of Twente,4University of Leeds, $^ 5 \mathrm { J D }$ Explore Academy, 6University of Jyväskylä {s.liu3,l.yin,m.pechenizkiy}@tue.nl, {tianlong.chen,xiaohan.chen,atlaswang}@utexas.edu {z.atashgahi,d.c.mocanu}@utwente.nl, {khydouble1,mathshenli}@gmail.com
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Works on lottery ticket hypothesis (LTH) and single-shot network pruning (SNIP) have raised a lot of attention currently on post-training pruning (iterative magnitude pruning), and before-training pruning (pruning at initialization). The former method suffers from an extremely large computation cost and the latter usually struggles with insufficient performance. In comparison, during-training pruning, a class of pruning methods that simultaneously enjoys the training/inference efficiency and the comparable performance, temporarily, has been less explored. To better understand during-training pruning, we quantitatively study the effect of pruning throughout training from the perspective of pruning plasticity (the ability of the pruned networks to recover the original performance). Pruning plasticity can help explain several other empirical observations about neural network pruning in literature. We further find that pruning plasticity can be substantially improved by injecting a brain-inspired mechanism called neuroregeneration, i.e., to regenerate the same number of connections as pruned. We design a novel gradual magnitude pruning (GMP) method, named gradual pruning with zerocost neuroregeneration (GraNet), that advances state of the art. Perhaps most impressively, its sparse-to-sparse version for the first time boosts the sparse-tosparse training performance over various dense-to-sparse methods with ResNet50 on ImageNet without extending the training time. We release all codes in https://github.com/Shiweiliuiiiiiii/GraNet.
|
| 8 |
+
|
| 9 |
+
# 1 Introduction
|
| 10 |
+
|
| 11 |
+
Neural network pruning is the most common technique to reduce the parameter count, storage requirements, and computational costs of modern neural network architectures. Recently, posttraining pruning [49, 29, 18, 47, 10, 54, 74, 5, 57, 75] and before-training pruning [31, 30, 67, 63, 6, 11] have been two fast-rising fields, boosted by lottery tickets hypothesis (LTH) [10] and singleshot network pruning (SNIP) [31]. The process of post-training pruning typically involves fully pre-training a dense network as well as many cycles of retraining (either fine-tuning [18, 17, 39] or rewinding [12, 54]). As the training costs of the state-of-the-art models, e.g., GPT-3 [4] and FixEfficientNet-L2 [64] have exploded, this process can lead to a large amount of overhead cost.
|
| 12 |
+
|
| 13 |
+
Recently emerged methods for pruning at initialization significantly reduce the training cost by identifying a trainable sub-network before the main training process. While promising, the existing methods fail to match the performance achieved by the magnitude pruning after training [11].
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
Figure 1: Schematic view of GraNet. Left: Gradual pruning starts with a sparse subnetwork and gradually prune the subnetwork to the target sparsity during training. Right: We perform zero-cost neuroregeneration after each gradual pruning step. Light blue blocks/lines refer to the “damaged” connections and orange blocks/lines refer to the regenerated new connections.
|
| 17 |
+
|
| 18 |
+
Compared with the above-mentioned two classes of pruning, during-training pruning is a class of methods that reap the acceleration benefits of sparsity early on the training and meanwhile achieve promising performance by consulting the information obtained during training. There are some works [77, 13, 33] attempting to gradually prune the network to the desired sparsity during training, while they mainly focus on the performance improvement. Up to now, the understanding of duringtraining pruning has been less explored due to its more complicated dynamical process, and the performance gap still exists between pruning during training and full dense training.
|
| 19 |
+
|
| 20 |
+
To better understand the effect of pruning during the optimization process (not at inference), we study the ability of the pruned models to recover the original performance after a short continued training with the current learning rate, which we call pruning plasticity (see Section 3.1 for a more formal definition). Inspired by the neuroregeneration mechanism in the nervous system where new neurons and connections are synthesized to recover the damage in the nervous system [26, 41, 73], we examine if allowing the pruned network to regenerate new connections can improve pruning plasticity, and hence contribute to pruning during training. We consequently propose a parameter-efficient method to regenerate new connections during the gradual pruning process. Different from the existing works for pruning understanding which mainly focus on dense-to-sparse training [42] (training a dense model and prune it to the target sparsity), we also consider sparse-to-sparse training (training a sparse model yet adaptively re-creating the sparsity pattern) which recently has received an upsurge of interest in machine learning [44, 3, 9, 48, 8, 37, 36].
|
| 21 |
+
|
| 22 |
+
In short, we have the following main findings during the course of the study:
|
| 23 |
+
|
| 24 |
+
#1. Both pruning rate and learning rate matter for pruning plasticity. When pruned with low pruning rates (e.g., 0.2), both dense-to-sparse training and sparse-to-sparse training can easily recover from pruning. On the contrary, if too many parameters are removed at one time, almost all models suffer from accuracy drops. This finding makes a connection to the success of the iterative magnitude pruning [10, 54, 5, 6, 65], where usually a pruning process with a small pruning rate (e.g., 0.2) needs to be iteratively repeated for good performance.
|
| 25 |
+
|
| 26 |
+
Pruning plasticity also gradually decreases as the learning rate drops. When pruning happens during the training phase with large learning rates, models can easily recover from pruning (up to a certain level). However, pruning plasticity drops significantly after the second learning rate decay, leading to a situation where the pruned networks can not recover with continued training. This finding helps to explain several observations (1) for gradual magnitude pruning (GMP), it is always optimal to end pruning before the second learning rate drop [77, 13]; (2) dynamic sparse training (DST) benefits from a monotonically decreasing pruning rate with cosine or linear update schedule [8, 9]; (3) rewinding techniques [12, 54] outperform fine-tuning as rewinding retrains subnetworks with the original learning rate schedule whereas fine-tuning often retrains with the smallest learning rate.
|
| 27 |
+
|
| 28 |
+
#2. Neuroregeneration improves pruning plasticity. Neuroregeneration [41, 73] refers to the regrowth or repair of nervous tissues, cells, or cell products. Conceptually, it involves synthesizing new neurons, glia, axons, myelin, or synapses, providing extra resources in the long term to replace those damaged by the injury, and achieving a lasting functional recovery. Such mechanism is closely related to the brain plasticity [51], and we borrow this concept to developing a computational regime.
|
| 29 |
+
|
| 30 |
+
We show that, while regenerating the same number of connections as pruned, the pruning plasticity is observed to improve remarkably, indicating a more neuroplastic model being developed. However, it increases memory and computational overheads and seems to contradict the benefits of pruningduring-training. This however raises the question: can we achieve efficient neuroregeneration during training with no extra costs? We provide an affirmative answer to this question.
|
| 31 |
+
|
| 32 |
+
#3. Pruning plasticity with neuroregeneration can be leveraged to substantially boost sparse training performance. The above-mentioned findings of pruning plasticity can generalize to the final performance level under a full continued training to the end. Imitating the neuroregeneration behavior [41, 73], we propose a new sparse training method – gradual pruning with zero-cost neuroregeneration (GraNet), which is capable of performing regeneration without increasing the parameter count.
|
| 33 |
+
|
| 34 |
+
In experiments, GraNet establishes the new state-of-the-art performance bar for dense-to-sparse training and sparse-to-sparse training, respectively. Particularly, the latter for the first time boosts the sparse-to-sparse training performance over various dense-to-sparse methods by a large margin without extending the training time, with ResNet-50 on ImageNet. Besides the consistent performance improvement, we find the subnetworks that GraNet learns are more accurate than the ones learned by the existing gradual pruning method, providing explanations for the success of GraNet.
|
| 35 |
+
|
| 36 |
+
# 2 Related Work
|
| 37 |
+
|
| 38 |
+
Post-Training Pruning. Methods that yield a sparse neural network from a pre-trained network by pruning the unimportant weights or neurons, to the best of our knowledge, were proposed in [24] and [50]. After that, various pruning methods have emerged to provide increasingly efficient methods to identify sparse neural networks for inference. The pruning criterion includes weight magnitude [18, 10], gradient [61] Hessian [29, 19, 59], Taylor expansion [47, 46], etc. Low-rank decomposition [7, 23, 17, 71] are also used to induce structured sparsity in terms of channels or filters. Most of the above-mentioned pruning methods require many pruning and re-training cycles to achieve the desired performance.
|
| 39 |
+
|
| 40 |
+
During-Training Pruning. Instead of inheriting weights from a pre-trained model, some works attempt to discover well-performing sparse neural networks with one single training process.
|
| 41 |
+
|
| 42 |
+
Gradual Magnitude Pruning (GMP), introduced in [77] and studied further in [13], gradually sparsifies the neural network during the training process until the desired sparsity is reached. Besides, [40] and [68] are prior works that enforce the network to sparse during training via $L _ { 0 }$ and $L _ { 1 }$ regularization, respectively. [60, 34, 55, 70, 28] moved further by introducing trainable sparsity heuristics to learn the sparse masks and weights simultaneously. These methods are all classified as dense-to-sparse training as they start from a dense network.
|
| 43 |
+
|
| 44 |
+
Dynamic Sparse Training (DST) [44, 3, 48, 8, 9, 36, 35, 25] is another class of methods that prune models during training. The key factor of DST is that it starts from a random initialized sparse network and optimizes the sparse topology as well as the weights simultaneously during training (sparse-to-sparse training). Without an extended training time [37], sparse-to-sparse training usually falls short of dense-to-sparse training in terms of the prediction accuracy. For further details, see the survey of [43, 21].
|
| 45 |
+
|
| 46 |
+
Before-Training Pruning. Motivated by SNIP [31], many works [67, 63, 6] have emerged recently to explore the possibility of obtaining a trainable sparse neural network before the main training process. [11] demonstrates that the existing methods for pruning at initialization perform equally well when the unpruned weights are randomly shuffled, which reveals that what these methods discover is the layer-wise sparsity ratio, rather than the indispensable weight values and positions. Our analysis shows that both the mask positions and weight values are crucial for GraNet.
|
| 47 |
+
|
| 48 |
+
# 3 Methodology for Pruning Plasticity
|
| 49 |
+
|
| 50 |
+
The primary goal of this paper is to study the effect of pruning as well as neuroregeneration on neural networks during the standard training process. Therefore, we do not consider post-training pruning and before-training pruning. Below, we introduce in detail the definition of pruning plasticity and the experimental design that we used to study pruning plasticity.
|
| 51 |
+
|
| 52 |
+
# 3.1 Metrics
|
| 53 |
+
|
| 54 |
+
Let us denote $W _ { t } \in \mathbb { R } ^ { d }$ as the weights of the network and $m _ { t } \in \{ 0 , 1 \} ^ { d }$ as the binary mask yielded from the pruning method at epoch $t$ . Thus, the pruned network can be denoted as $W _ { t } \odot m _ { t }$ . Let $T$ be the total number of epochs the model should be trained. Let $\mathbf { C O N T R A I N } ^ { k } ( W _ { t } \odot m _ { t } , a )$ refers to the function that continues to train the pruned model for $k$ epochs with the learning rate schedule $a$ .
|
| 55 |
+
|
| 56 |
+
Definition of Pruning plasticity. We define pruning plasticity as $t _ { \mathrm { C O N T R A I N } ^ { k } ( W _ { t } \odot m _ { t } , a _ { t } ) } - t _ { \mathrm { P R E } }$ , where $t _ { \mathrm { P R E } }$ is the test accuracy measured before pruning and $t _ { \mathrm { C O N T R A I N } ^ { k } \left( W _ { t } \odot m _ { t } , a _ { t } \right) }$ is the test accuracy measured after $k$ epoch of continued training $\mathbf { C O N T R A I N } ^ { k } ( W _ { t } \odot m _ { t } , a _ { t } )$ . Specifically, to better understand the effect of pruning on the current model status and to avoid the effect of learning rate decay, we fix the learning rate as the one when the model is pruned, i.e, $a _ { t }$ . This setting is also appealing to GMP [77, 13] and DST [44, 9, 48, 37] in which most of the pruned models are continually trained with the current learning rate for some time.
|
| 57 |
+
|
| 58 |
+
Final performance gap. Nevertheless, we also investigate the effect of pruning on the final performance, that is, continually training the pruned networks to the end with the remaining learning rate schedule CONTRAINT −t(Wt mt, a[t+1:T ]). In this case, we report tCONTRAINT−t(Wtmt,a[t+1:T]) − $t _ { \mathrm { F I N A L } }$ , where $t _ { \mathrm { F I N A L } }$ is the final test accuracy of the unpruned models.
|
| 59 |
+
|
| 60 |
+
# 3.2 Architectures and Datasets
|
| 61 |
+
|
| 62 |
+
We choose two commonly used architectures to study pruning plasticity, VGG-19 [58] with batch normalization on CIFAR-10 [27], and ResNet-20 [20] on CIFAR-10.
|
| 63 |
+
|
| 64 |
+
We share the summary of the networks, data, and hyperparameters of dense-to-sparse training in Table 1. We use standard implementations and hyperparameters available online, with the exception of the small batch size for the ResNet-50 on ImageNet due to the limited hardware resources $( 2 \times$ Tesla V100). All accuracies are in line with the baselines reported in the references [8, 11, 67, 9, 37].
|
| 65 |
+
|
| 66 |
+
Table 1: Summary of the architectures and hyperparameters we study in this paper.
|
| 67 |
+
|
| 68 |
+
<table><tr><td>Model</td><td>Data</td><td>#Epoch</td><td>Batch Size</td><td>LR</td><td>LR Decay, Epoch</td><td>Weight Decay</td><td>Test Accuracy</td></tr><tr><td>ResNet-20</td><td>CIFAR-10</td><td>160</td><td>128</td><td>0.1(β= 0.9)</td><td>10×,[80,120]</td><td>0.0005</td><td>92.41±0.04</td></tr><tr><td rowspan="2">VGG-19</td><td>CIFAR-10</td><td>160</td><td>128</td><td>0.1(β=0.9)</td><td>10×,[80,120]</td><td>0.0005</td><td>93.85±0.05</td></tr><tr><td>CIFAR-100</td><td>160</td><td>128</td><td>0.1 (β=0.9)</td><td>10×,[80,120]</td><td>0.0005</td><td>73.43±0.08</td></tr><tr><td rowspan="3">ResNet-50</td><td>CIFAR-10</td><td>160</td><td>128</td><td>0.1(β=0.9)</td><td>10×,[80,120]</td><td>0.0005</td><td>94.75±0.01</td></tr><tr><td>CIFAR-100</td><td>160</td><td>128</td><td>0.1 (β=0.9)</td><td>10×,[80,120]</td><td>0.0005</td><td>78.23±0.18</td></tr><tr><td>ImageNet</td><td>100</td><td>64</td><td>0.1(β=0.9)</td><td>10×,[30,60,90]</td><td>0.0004</td><td>76.80±0.09</td></tr></table>
|
| 69 |
+
|
| 70 |
+
# 3.3 How to Prune, and How to Regenerate
|
| 71 |
+
|
| 72 |
+
Structured and Unstructured Pruning. We consider unstructured and structured pruning in this paper. Structured pruning prunes weights in groups, or removes the entire neurons, convolutional filters, or channels, enabling acceleration with the off-the-shelf hardware. In particular, we choose the filter pruning method used in Li et al. [32]. Unstructured sparsity is a more promising direction not only due to its outstanding performance at extreme sparsities but the increasing support for sparse operation in the practical hardware [35, 14, 52, 76, 22]. For example, Liu et al. [35] illustrated for the first time the true potential of DST, demonstrating significant training/inference efficiency improvement over the dense training. Different from prior conventions [77, 13, 33, 2] where values of the pruned weights are kept, we set the pruned weights to zero to eliminate the historical information for all implementations in this paper.
|
| 73 |
+
|
| 74 |
+
Magnitude pruning. We prune the weights with the smallest magnitude, as it has evolved as the standard method when pruning happens during training, e.g., GMP [77, 13] and DST [44, 9, 37]. We are also aware of other pruning criteria including but not limited to Hessian [29, 19, 59], Taylor expansion [47, 46], connection sensitivity [31], Gradient Flow [67], Neural Tangent Kernel [38, 16].
|
| 75 |
+
|
| 76 |
+
One-shot pruning. To isolate the pruning effect at different training stages and to avoid the interaction between two iterations of pruning, we focus on one-shot pruning. Please note that iterative pruning can also be generalized in our setting, as our experimental design includes neural networks trained at various sparsities and each of them is further pruned with various pruning rates.
|
| 77 |
+
|
| 78 |
+
Layer-wise pruning and global pruning. We study both the layer-wise magnitude pruning and global magnitude pruning for pruning plasticity. Global magnitude pruning prunes different layers together and leads to non-uniform sparsity distributions; layer-wise pruning operates layer by layer, resulting in uniform distributions.
|
| 79 |
+
|
| 80 |
+
Gradient-based regeneration. The simplest regeneration scheme is to randomly activate new connections [3, 44]. However, it would take a lot of time for random regeneration to discover the important connections, especially for the very extreme sparsities. Alternatively, gradients, including those for the connections with zero weights, provide good indicators for the connection importance. For this reason, we focus on gradient-based regeneration proposed in Rigged Lottery ( RigL) [9], i.e., regenerating the same number of connections as pruned with the largest gradient magnitude.
|
| 81 |
+
|
| 82 |
+
# 3.4 Experimental Results
|
| 83 |
+
|
| 84 |
+
We study pruning plasticity during training with/without regeneration, for both dense training and sparse training. We report the results of ResNet-20 on CIFAR-10 with unstructured global pruning in the main body of the paper. The rest of the experiments are given in Appendix A. Unless otherwise stated, results are qualitatively similar across all networks. Concretely, we first pre-train networks at four sparsity levels, including 0, 0.5, 0.9, and 0.98. The sparse neural networks are trained with uniform distribution (i.e., all layers have the same sparsity). We further choose four pruning rates, e.g., 0.2, 0.5, 0.9, and 0.98, to measure the corresponding pruning plasticity of the pre-trained networks.
|
| 85 |
+
|
| 86 |
+
Pruning plasticity. We continue to train the pruned model for 30 epochs and report pruning plasticity in Figure 2. Overall, the learning rate schedule, the pruning rate, and the sparsity of the original models all have a big impact on pruning plasticity. Pruning plasticity decreases as the learning rate decays for all models with different sparsity levels. The models trained with a large learning rate 0.1 can easily recover, or exceed the original performance except for the extremely large pruning rate 0.98. However, the models obtained during the later training phases can recover only with the mild pruning rate choices, e.g., 0.2 (orange lines) and 0.5 (green lines).
|
| 87 |
+
|
| 88 |
+
We next demonstrate the effect of connection regeneration on pruning plasticity in the bottom row of Figure 2. It is clear to see that connection regeneration significantly improves pruning plasticity of all the cases, especially for the models that are over-pruned (purple lines). Still, even with connection regeneration, pruning plasticity suffers from performance degradation when pruning occurs after the learning rate drops.
|
| 89 |
+
|
| 90 |
+

|
| 91 |
+
Figure 2: Unstructured Pruning: Pruning plasticity (see Section 3.1 for definition) under a 30- epoch continued training with and without connection regeneration for ResNet-20 on CIFAR-10. The vertical red lines refer to the points when the learning rate is decayed. “Pre-trained Sparsity” refers to the original sparsity of the pre-trained networks before pruning. The pruning method is the magnitude global pruning.
|
| 92 |
+
|
| 93 |
+
Final performance gap. Compared with the current model status, people might be more interested in the effect of pruning on the final performance. We further measure the performance gap between the original test accuracy of the unpruned models and the final test accuracy of the pruned model under a full continued training $\mathrm { C O N T R A I N } ^ { T - t } ( W _ { t } \odot m _ { t } , a _ { [ t + 1 : T ] } )$ in Figure 3.
|
| 94 |
+
|
| 95 |
+
We observe that, in this case, large learning rates do not enjoy large performance improvement, but still, the performance gap increases as the learning rate drops. It is reasonable to conjecture that the accuracy improvement of pruning plasticity with the large learning rate, 0.1, is due to the unconverged performance during the early phase of training. Besides, it is surprising to find that the final performance of extreme sparse networks (e.g., the third column and the fourth column) significantly benefits from mild pruning. Again, the ability of the pruned model to recover from pruning remarkably improves after regenerating the connections back.
|
| 96 |
+
|
| 97 |
+

|
| 98 |
+
Figure 3: Unstructured Pruning: Final performance gap between the unpruned models and the pruned models for ResNet-20 on CIFAR-10. The vertical red lines refer to the points when the learning rate is decayed. “Pre-trained Sparsity” refers to the original sparsity of the pre-trained networks before pruning. The pruning method is the magnitude global pruning.
|
| 99 |
+
|
| 100 |
+
# 4 Gradual Pruning with Zero-Cost Neuroregeneration
|
| 101 |
+
|
| 102 |
+
So far, we have known that regenerating the important connections to the pruned models during training substantially improves pruning plasticity as well as the final performance. However, naively regenerating extra connections increases the parameter count and conflicts with the motivation of gradual pruning.
|
| 103 |
+
|
| 104 |
+
Inspired by the mechanism of neuroregeneration in the nervous system, we propose a novel sparse training method which we call gradual pruning with zero-cost neuroregeneration (GraNet). GraNet consults the information produced throughout training and regenerates important connections during training in a parameter-efficient fashion. See Appendix B.1 for the pseudocode of GraNet. We introduce the main components of GraNet below.
|
| 105 |
+
|
| 106 |
+
# 4.1 Gradual Pruning
|
| 107 |
+
|
| 108 |
+
We follow the gradual pruning scheme used in [77] and gradually sparsifies the dense network to the target sparsity level over $n$ pruning iterations. Let us define $s _ { i }$ is the initial sparsity, $s _ { f }$ is the target sparsity, $t _ { 0 }$ is is the starting epoch of gradual pruning, $t _ { f }$ is the end epoch of gradual pruning, and $\Delta t$ is the pruning frequency. The pruning rate of each pruning iteration is:
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
s _ { t } = s _ { f } + ( s _ { i } - s _ { f } ) \left( 1 - \frac { t - t _ { 0 } } { n \Delta t } \right) ^ { 3 } , t \in \left\{ t _ { 0 } , t _ { 0 } + \Delta t , . . . , t _ { 0 } + n \Delta t \right\} .
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
We choose global pruning for our method as it generally achieves better performance than uniform pruning. We also report the performance of the uniform sparsity as used in [13] in Appendix C.3.
|
| 115 |
+
|
| 116 |
+
The conventional gradual pruning methods [77, 13] change the mask (not the weight values) to fulfill the pruning operation, so that the pruned connections have the possibility to be reactivated in the later training phases. Despite this, since the weights of the pruned connections are not updated, they have a small chance to receive sufficient updates to exceed the pruning threshold. This hinders the regeneration of the important connections.
|
| 117 |
+
|
| 118 |
+
# 4.2 Zero-Cost Neuroregeneration
|
| 119 |
+
|
| 120 |
+
The main difference between GraNet and the conventional GMP methods [77, 13] is the Zero-Cost Neuroregeneration. Imitating the neuroregeneration of the peripheral nervous system [41, 73] where new neurons and connections are synthesized to replace the damaged ones, we first detect and eliminate the “damaged” connections, and then regenerate the same number of new connections. By doing this, we can achieve connection regeneration without increasing the number of connections.
|
| 121 |
+
|
| 122 |
+
Concretely, we identify the “damaged” connections as the ones with the smallest weight magnitudes. Small magnitude indicates that either the weight’s gradient is small or a large number of oscillations occur to the gradient direction. Therefore, these weights have a small contribution to the training loss and can be removed. Again, we use the gradient as the importance score for regeneration, same as the regrow method as used in RigL [9].
|
| 123 |
+
|
| 124 |
+
Why we call it “Zero-Cost Neuroregeneration"? In addition to not increasing the connection (parameter) count, the backward pass of our method is sparse most of the time even though our regeneration utilizes the dense gradient to identify the important connections. We perform neuroregeneration immediately after each gradual pruning step, meaning that the regeneration occurs only once every several thousand iterations. The extra overhead to calculate the dense gradient can be amortized compared with the whole training costs. Compared with the methods [33, 69] that require updating all the weights in the backward pass, our method is much more training efficient, as around 2/3 of the training FLOPs is owing to the backward pass [9, 72].
|
| 125 |
+
|
| 126 |
+
Let us denote $r$ as the ratio of the number of the regenerated connections to the total number of connections; $W$ is the network weight. We first remove $r$ proportion of “damaged” weights with the smallest magnitude by:
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
W ^ { \prime } = \mathrm { T o p K } \left( | W | , 1 - r \right) .
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
Here $\mathrm { T o p K } ( v , k )$ returns the weight tensor retaining the top $k$ -proportion of elements from $v$ . Immediately after that, we regenerate $r$ proportion of new connections based on the gradient magnitude:
|
| 133 |
+
|
| 134 |
+
$$
|
| 135 |
+
W = W ^ { \prime } + \mathrm { T o p K } \left( | \mathbf { g } _ { i \notin W ^ { \prime } } | , r \right) ,
|
| 136 |
+
$$
|
| 137 |
+
|
| 138 |
+
where $\left| { \bf g } _ { i \notin W ^ { \prime } } \right|$ are the gradient magnitude of the zero weights. We perform Zero-Cost Neuroregeneration layer by layer from the beginning of the training to the end.
|
| 139 |
+
|
| 140 |
+
GraNet can naturally generalize to the dense-to-sparse training scenario and the sparse-to-sparse training scenario by setting the initial sparsity level $s _ { i } = 0$ and $s _ { i } > 0$ in Eq. (1), respectively. For simplicity, we set $s _ { i } = 0 . 5$ , $t _ { 0 } = 0$ , and $t _ { f }$ as the epoch when performing the first learning rate decay for the sparse-to-sparse training. Different from the existing sparse-to-sparse training methods, i.e., SET [44], RigL [9], and ITOP [37], in which the sparsity is fixed throughout training, GraNet starts from a denser yet still sparse model and gradually prunes the sparse model to the desired sparsity. Although starting with more parameters, the global pruning technique of gradual pruning helps GraNet quickly evolve to a better sparsity distribution than RigL with lower feedforward FLOPs and higher test accuracy. What’s more, GraNet sparsifies all layers including the first convolutional layer and the last fully-connected layer.
|
| 141 |
+
|
| 142 |
+
# 4.3 Experimental Results
|
| 143 |
+
|
| 144 |
+
We conduct various experiments to evaluate the effectiveness of GraNet. We compare GraNet with various dense-to-sparse methods and sparse-to-sparse methods. The results of Rigged Lottery (RigL) and GMP with CIFAR-10/100 were reproduced by our implementation with PyTorch so that the only difference between GraNet and GMP is the Zero-Cost Neuroregeneration. For each model, we divide the results into three groups from top to bottom: pruning at initialization, dynamic sparse training and dense-to-sparse methods. See Appendix B for more implementation details used in the experiments. GraNet $\mathit { s } _ { i } = 0 . 5$ ) refers to the sparse-to-sparse version and the and GraNet ${ \bf \nabla } _ { s _ { i } } = 0$ ) refers to the dense-to-sparse version.
|
| 145 |
+
|
| 146 |
+
CIFAR-10/100. The results of CIFAR-10/100 are shared in Table 2. We can observe that performance differences among different methods on CIFAR-10 are generally small, but still, GraNet ${ \bf \Phi } _ { s _ { i } } = 0 $ ) consistently improves the performance over GMP except for the sparsity $9 5 \%$ , and achieves the highest accuracy in 4 out of 6 cases. In terms of the more complex data CIFAR-100, the performance differences between the during-training pruning methods and before-training pruning methods are much larger. GraNet $( s _ { i } = 0$ ) again consistently outperforms GMP with all sparsities, highlighting the benefits of Zero-Cost Neuroregeneration. It is maybe more interesting that GraNet ${ \bf \nabla } _ { s _ { i } } = 0$ ) even outperforms the post-training method, subdifferential inclusion for sparsity (SIS), by a large margin.
|
| 147 |
+
|
| 148 |
+
In terms of sparse-to-sparse training, our proposed GraNet ( $s _ { i } = 0 . 5$ ) has a dominant performance over other methods. Especially at the very extreme sparsity 0.98, our method outperforms RigL by $1 . 4 0 \%$ and $2 . 2 2 \%$ with VGG-19 on CIFAR-10 and CIFAR-100, respectively.
|
| 149 |
+
|
| 150 |
+
ImageNet. Due to the small data size, the experiments with CIFAR-10/100 may not be sufficient to draw a solid conclusion. We further evaluate our method with ResNet-50 on ImageNet in Table 3.
|
| 151 |
+
|
| 152 |
+
Table 2: Test accuracy of pruned VGG-19 and ResNet-50 on CIFAR-10/100. We mark the best sparse-to-sparse training results in blue and the best dense-to-sparse training results in bold. The results reported with (mean $\pm$ std) are run with three different random seeds by us. The rest are obtained from [66] and [67]. Note that the accuracy of RigL is higher than the ones reported in [66], as we choose a large update interval following the In-Time Over-Parameterization strategy [37]. $s _ { i }$ refers to the initial sparsity of GraNet.
|
| 153 |
+
|
| 154 |
+
<table><tr><td>Dataset</td><td colspan="3">CIFAR-10</td><td colspan="3">CIFAR-100</td></tr><tr><td>Pruning ratio</td><td>90%</td><td>95%</td><td>98%</td><td>90%</td><td>95%</td><td>98%</td></tr><tr><td>VGG-19 (Dense)</td><td>93.85±0.05</td><td>1</td><td>1</td><td>73.43±0.08</td><td>1</td><td>=</td></tr><tr><td>SNIP [31]</td><td>93.63</td><td>93.43</td><td>92.05</td><td>72.84</td><td>71.83</td><td>58.46</td></tr><tr><td>GraSP[67]</td><td>93.30</td><td>93.04</td><td>92.19</td><td>71.95</td><td>71.23</td><td>68.90</td></tr><tr><td>SynFlow [63]</td><td>93.35</td><td>93.45</td><td>92.24</td><td>71.77</td><td>71.72</td><td>70.94</td></tr><tr><td>Deep-R [3]</td><td>90.81</td><td>89.59</td><td>86.77</td><td>66.83</td><td>63.46</td><td>59.58</td></tr><tr><td>SET[44]</td><td>92.46</td><td>91.73</td><td>89.18</td><td>72.36</td><td>69.81</td><td>65.94</td></tr><tr><td>RigL[9]</td><td>93.38±0.11</td><td>93.06±0.09</td><td>91.98±0.09</td><td>73.13±0.28</td><td>72.14±0.15</td><td>69.82±0.09</td></tr><tr><td>GraNet (si= 0.5) (ours)</td><td>93.73±0.08</td><td>93.66±0.07</td><td>93.38±0.15</td><td>73.30±0.13</td><td>73.18±0.31</td><td>72.04±0.13</td></tr><tr><td>STR [28]</td><td>93.73</td><td>93.27</td><td>92.21</td><td>71.93</td><td>71.14</td><td>69.89</td></tr><tr><td>SIS [66]</td><td>93.99</td><td>93.31</td><td>93.16</td><td>72.06</td><td>71.85</td><td>71.17</td></tr><tr><td>GMP [13]</td><td>93.59±0.10</td><td>93.58±0.07</td><td>93.52±0.03</td><td>73.10±0.12</td><td>72.30±0.15</td><td>72.07±0.37</td></tr><tr><td>GraNet (si= O) (ours)</td><td>93.80±0.10</td><td>93.72±0.11</td><td>93.63±0.08</td><td>73.74±0.30</td><td>73.10±0.04</td><td>72.35±0.26</td></tr><tr><td>ResNet-50 (Dense)</td><td>94.75±0.01</td><td></td><td></td><td>78.23±0.18</td><td></td><td></td></tr><tr><td>SNIP [31]</td><td>92.65</td><td>90.86</td><td>87.21</td><td>73.14</td><td>69.25</td><td>58.43</td></tr><tr><td>GraSP [67]</td><td>92.47</td><td>91.32</td><td>88.77</td><td>73.28</td><td>70.29</td><td>62.12</td></tr><tr><td>SynFlow [63]</td><td>92.49</td><td>91.22</td><td>88.82</td><td>73.37</td><td>70.37</td><td>62.17</td></tr><tr><td>RigL [9]</td><td>94.45±0.43</td><td>93.86±0.25</td><td>93.26±0.22</td><td>76.50±0.33</td><td>76.03±0.34</td><td>75.06±0.27</td></tr><tr><td>GraNet (si= 0.5) (ours)</td><td>94.64±0.27</td><td>94.38±0.28</td><td>94.01±0.23</td><td>77.89±0.33</td><td>77.16±0.52</td><td>77.14±0.45</td></tr><tr><td>STR [28]</td><td>92.59</td><td>91.35</td><td>88.75</td><td>73.45</td><td>70.45</td><td>62.34</td></tr><tr><td>SIS [66]</td><td>92.81</td><td>91.69</td><td>90.11</td><td>73.81</td><td>70.62</td><td>62.75</td></tr><tr><td>GMP[13]</td><td>94.34±0.09</td><td>94.52±0.08</td><td>94.19±0.04</td><td>76.91±0.23</td><td>76.42±0.51</td><td>75.58±0.20</td></tr><tr><td>GraNet (si = O) (ours)</td><td>94.49±0.08</td><td>94.44±0.01</td><td>94.34±0.17</td><td>77.29±0.45</td><td>76.71±0.26</td><td>76.10±0.20</td></tr></table>
|
| 155 |
+
|
| 156 |
+
Table 3: Test accuracy of pruned ResNet-50 on ImageNet dataset. The best results of DST methods are marked as blue and the best results of pruning during training methods are marked in bold. The training/test FLOPs are normalized with the FLOPs of a dense model. $s _ { i }$ refers to the initial sparsity of GraNet.
|
| 157 |
+
|
| 158 |
+
<table><tr><td>Method</td><td>Top-1 Accuracy</td><td>FLOPs (Train)</td><td>FLOPs (Test)</td><td>TOP-1 Accuracy</td><td>FLOPs (Train)</td><td>FLOPs (Test)</td></tr><tr><td>Dense</td><td>76.8±0.09</td><td>1x (3.2e18)</td><td>1x (8.2e9)</td><td>76.8±0.09</td><td>1x (3.2e18)</td><td>1x (8.2e9)</td></tr><tr><td>Pruning ratio</td><td></td><td>80%</td><td></td><td></td><td>90%</td><td></td></tr><tr><td rowspan="3">Static (ERK) Small-Dense</td><td>72.1±0.04</td><td>0.42×</td><td>0.42×</td><td>67.7±0.12</td><td>0.24×</td><td>0.24×</td></tr><tr><td>72.1±0.06</td><td>0.23×</td><td>0.23×</td><td>67.2±0.12</td><td>0.10×</td><td>0.10×</td></tr><tr><td>72.0±0.06</td><td>0.23×</td><td>0.23×</td><td>67.2±0.12</td><td>0.10×</td><td>0.10×</td></tr><tr><td rowspan="5">SET [44] DSR[48] RigL (ERK) [9]</td><td>72.9±0.39</td><td>0.23×</td><td>0.23×</td><td>69.6±0.23</td><td>0.10×</td><td>0.10×</td></tr><tr><td>73.3</td><td>0.40×</td><td>0.40×</td><td>71.6</td><td>0.30×</td><td>0.30×</td></tr><tr><td>75.1±0.05</td><td>0.42×</td><td>0.42×</td><td>73.0±0.04</td><td>0.25×</td><td>0.24×</td></tr><tr><td>75.2±0.11</td><td>0.61×</td><td>0.42×</td><td>72.9±0.06</td><td>0.50×</td><td>0.24×</td></tr><tr><td>76.0</td><td>0.37×</td><td>0.35×</td><td>74.5</td><td>0.25×</td><td>0.20×</td></tr><tr><td>STR [28]</td><td>76.1</td><td>n/a</td><td>0.17×</td><td>74.0</td><td>n/a</td><td>0.08×</td></tr><tr><td>DPF [33]</td><td>75.1</td><td>0.71×</td><td>0.23×</td><td>n/a</td><td>n/a</td><td>n/a</td></tr><tr><td>GMP[13]</td><td>75.6</td><td>0.56×</td><td>0.23×</td><td>73.9</td><td>0.51×</td><td>0.10×</td></tr><tr><td>GraNet (si = 0) (ours)</td><td>75.8</td><td>0.34×</td><td>0.28×</td><td>74.2</td><td>0.23×</td><td>0.16×</td></tr></table>
|
| 159 |
+
|
| 160 |
+
We only run this experiment once due to the limited resources. We set $t _ { 0 } = 0$ and $t _ { f } = 3 0$ for both GraNet $( s _ { i } = 0$ ) and GraNet ${ \mathit { s } } _ { i } = 0 . 5 { \mathit { \Sigma } }$ ) on ImageNet. Again, GraNet $( s _ { i } = 0$ ) outperforms GMP consistently with only half training FLOPs and achieves the highest accuracy among all the dense-to-sparse methods at sparsity of 0.9. Surprisingly, GraNet ${ \mathit { s } } _ { i } = 0 . 5 { \mathit { \Sigma } }$ ) significantly boosts the sparse-to-sparse training performance, even over the dense-to-sparse training. Concretely, GraNet
|
| 161 |
+
|
| 162 |
+
$s _ { i } = 0 . 5 )$ ) outperforms RigL by $0 . 9 \%$ and $1 . 5 \%$ at sparsity 0.8 and 0.9, respectively. To the best of our knowledge, this is the first time in the literature that sparse-to-sparse training reaches a test accuracy of $76 \%$ with ResNet-50 on ImageNet at sparsity 0.8, without extension of training time. It is reasonable for GraNet $\mathit { s } _ { i } = 0 . 5$ ) to achieve better accuracy than RigL, since the denser models at the beginning help GraNet explore more the parameter space. According to the In-Time Over-Parameterization hypothesis [37], the performance of sparse training methods is highly correlated with the total number of parameters that the sparse model has visited.
|
| 163 |
+
|
| 164 |
+
We further report the training/inference FLOPs required by all pruning methods. Compared with other dense-to-sparse methods, the final networks learned by GraNet $( s _ { i } = 0 )$ ) require more FLOPs to test, whereas the overall training FLOPs required by GraNet ${ { s } _ { i } } = 0$ ) are smaller than others. Even though starting from a denser model, GraNet $\mathit { s } _ { i } = 0 . 5$ ) requires less training and inference FLOPs than the state-of-the-art method, i.e., RigL. The sparsity budgets for 0.9 sparse ResNet-50 on ImageNet-1K learned by our methods are reported in Appendix D. We also report how FLOPs of the pruned ResNet-50 evolve during the course of training in Appendix E.
|
| 165 |
+
|
| 166 |
+
# 4.4 Effect of the Initial Sparsity
|
| 167 |
+
|
| 168 |
+
As we mentioned earlier, the denser initial network is the key factor in the success of GraNet. We conducted experiments to study the effect of the initial sparsity on GraNet with ResNet-50 on ImageNet. The initial sparsity is chosen from [0.0, 0.5, 0.6, 0.7, 0.8, 0.9] and the final sparsity is fixed as 0.9. The results are shared in Table 4. We can see the training FLOPs of GraNet are quite robust to the initial sparsity. Surprisingly yet reasonably, it seems that the the smaller the initial sparsity is (up to 0.5), the better final sparsity distribution GraNet finds, with higher test accuracy and fewer feedforward FLOPs. The lower feedforward FLOPs of the final network perfectly balance the overhead caused by the denser initial network.
|
| 169 |
+
|
| 170 |
+
Table 4: Effect of the initial sparsity on GraNet with ResNet-50 on ImageNet. The training/test FLOPs are normalized with the FLOPs of a dense model.
|
| 171 |
+
|
| 172 |
+
<table><tr><td>Method</td><td>Si</td><td>Sf</td><td>Top-1 [%] Accuracy</td><td>FLOPs (Train)</td><td>FLOPs (Test)</td></tr><tr><td>GraNet</td><td>0.0</td><td>0.9</td><td>74.2</td><td>0.23×</td><td>0.16×</td></tr><tr><td>GraNet</td><td>0.5</td><td>0.9</td><td>74.5</td><td>0.25×</td><td>0.20×</td></tr><tr><td>GraNet</td><td>0.6</td><td>0.9</td><td>74.4</td><td>0.25×</td><td>0.22×</td></tr><tr><td>GraNet</td><td>0.7</td><td>0.9</td><td>74.2</td><td>0.24×</td><td>0.22×</td></tr><tr><td>GraNet</td><td>0.8</td><td>0.9</td><td>74.1</td><td>0.25×</td><td>0.24×</td></tr><tr><td>RigL</td><td>0.9</td><td>0.9</td><td>73.0</td><td>0.25×</td><td>0.24×</td></tr></table>
|
| 173 |
+
|
| 174 |
+
# 4.5 Performance of GraNet at Extreme Sparsities
|
| 175 |
+
|
| 176 |
+
In this section, we share the results of GraNet and RigL at extreme sparsities. The initial sparsity is set as 0.5. When the final sparsity is relatively smaller (e.g., 0.8, 0.9), GraNet requires a lower (or the same) number of training FLOPs than RigL, whereas GraNet requires more training FLOPs than RigL when the final sparsity is extremely high (e.g., 0.95, 0.965). This makes sense since when the sparsity is extremely high, the saved FLOPs count of the distribution discovered by GraNet is too small to amortize the overhead caused by denser initial models. Yet, the increased number of training FLOPs of GraNet leads to substantial accuracy improvement $( > 2 \% )$ over RigL. The efficiency of GraNet ( $s _ { i } = 0 . 5$ ) comes from two important technical differences compared with RigL: (1) better final sparse distribution discovered by global pruning; (2) a shorter period of gradual pruning time (the first 30 epochs for ResNet-50 on ImageNet). Although starting with more parameters, the global pruning enables GraNet to quickly (first 30 epochs) evolve to a better sparsity distribution with lower test FLOPs than ERK. After 30 epochs of gradual pruning, the network continues to be trained with this better distribution for 70 epochs, so that the overhead in the early training phase with larger training FLOPs is amortized by the later and longer training phase with fewer training FLOPs.
|
| 177 |
+
|
| 178 |
+
Table 5: Comparison between GraNet and RigL at extreme sparsities with ResNet-50 on ImageNet. The training/test FLOPs are normalized with the FLOPs of a dense model.
|
| 179 |
+
|
| 180 |
+
<table><tr><td>Method</td><td>Si</td><td>sf</td><td>Top-1[%] Accuracy</td><td>FLOPs (Train)</td><td>FLOPs (Test)</td></tr><tr><td>RigL GraNet</td><td>0.8</td><td>0.8</td><td>75.1</td><td>0.42×</td><td>0.42×</td></tr><tr><td>RigL</td><td>0.5 0.9</td><td>0.8 0.9</td><td>76.0 73.0</td><td>0.37× 0.25×</td><td>0.35× 0.24×</td></tr><tr><td>GraNet</td><td>0.5</td><td>0.9</td><td>74.5</td><td>0.25×</td><td>0.20×</td></tr><tr><td>RigL GraNet</td><td>0.95 0.5</td><td>0.95 0.95</td><td>69.7 72.3</td><td>0.12× 0.17×</td><td>0.12× 0.12×</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>RigL</td><td>0.965</td><td>0.965</td><td>67.2</td><td>0.11×</td><td>0.11×</td></tr><tr><td>GraNet</td><td>0.5</td><td>0.965</td><td>70.5</td><td>0.15×</td><td>0.09×</td></tr></table>
|
| 181 |
+
|
| 182 |
+
# 4.6 Ablation Study of Random Reinitialization
|
| 183 |
+
|
| 184 |
+
Next, we ask whether what GraNet learned are the specific sparse connectivity or the sparse connectivity together with the weight values. We randomly reinitialize the pruned network with the same mask and retrain it. The results are given in Figure 4. The performance of the reinitialized networks falls significantly short of the performance achieved by GraNet $( s _ { i } = 0 )$ ), indicating that what was learned by GraNet is the sparse connectivity together with the weight values. Besides, we find that the retraining performance of GraNet is higher than GMP. This further confirms that Zero-Cost Neuroregeneration helps the gradual pruning find more accurate mask positions.
|
| 185 |
+
|
| 186 |
+

|
| 187 |
+
Figure 4: Reinitialization ablation on subnetworks discovered by GMP and GraNet $( s _ { i } = 0$
|
| 188 |
+
|
| 189 |
+
# 4.7 Comparison between Re-training and Extended Training
|
| 190 |
+
|
| 191 |
+
In this section, we study if re-training techniques can further improve the performance of the subnetworks discovered by GraNet. The authors of Lottery Ticket Hypothesis (LTH) [10] introduced a retraining technique, even if they did not evaluate it as such, where the subnetworks discovered by iterative magnitude pruning can be re-trained in isolation to full accuracy with the original initializations. Later on, learning rate rewinding (LRR) [54] was proposed further to improve the re-training performance by only rewinding the learning rate. Since GraNet also utilizes magnitude pruning to discover subnetworks, it is natural to test if these re-training techniques can bring benefits to GraNet. As shown in Table 6, both re-training techniques do not bring benefits to GraNet. Instead of re-training the subnetworks, we find that simply extending the training time significantly boosts the performance of GraNet with similar computational costs.
|
| 192 |
+
|
| 193 |
+
Table 6: Effects of LTH and LRR on the subnetworks learned by GraNet. Methods with $_ 2 \times$ refer to extending the training steps by 2 times. The results are reported with top-1 test accuracy $[ \% ]$ .
|
| 194 |
+
|
| 195 |
+
<table><tr><td>Dataset</td><td colspan="3">CIFAR-10</td><td colspan="3">CIFAR-100</td></tr><tr><td>Pruning ratio</td><td>90%</td><td>95%</td><td>98%</td><td>90%</td><td>95%</td><td>98%</td></tr><tr><td>VGG-19 (Dense)</td><td>93.85±0.05</td><td>=</td><td></td><td>73.43±0.08</td><td>=</td><td>1</td></tr><tr><td>GraNet (si = 0)</td><td>93.80±0.10</td><td>93.72±0.11</td><td>93.63±0.08</td><td>73.74±0.30</td><td>73.10±0.04</td><td>72.35±0.26</td></tr><tr><td>+Lottery Ticket Hypothesis</td><td>93.63±0.04</td><td>93.29±0.05</td><td>92.46±0.08</td><td>72.97±0.25</td><td>71.76±0.22</td><td>69.28±0.36</td></tr><tr><td>+ Learning Rate Rewinding</td><td>93.84±0.14</td><td>93.72±0.06</td><td>93.53±0.04</td><td>73.71±0.08</td><td>73.24±0.24</td><td>72.50±0.26</td></tr><tr><td>GraNet2x (si = 0)</td><td>94.17±0.03</td><td>93.98±0.07</td><td>93.94±0.11</td><td>74.80±0.29</td><td>73.65±0.32</td><td>73.63±0.05</td></tr><tr><td>ResNet-50 (Dense)</td><td>94.75±0.01</td><td></td><td></td><td>78.23±0.18</td><td></td><td></td></tr><tr><td>GraNet (si = 0)</td><td>94.49±0.08</td><td>94.44±0.01</td><td>94.34±0.17</td><td>77.29±0.45</td><td>76.71±0.26</td><td>76.10±0.20</td></tr><tr><td>+Lottery Ticket Hypothesis</td><td>93.96±0.10</td><td>93.70±0.15</td><td>92.94±0.14</td><td>75.74±0.19</td><td>74.31±0.10</td><td>71.99±0.08</td></tr><tr><td>+ Learning Rate Rewinding</td><td>94.55±0.13</td><td>94.39±0.13</td><td>94.20±0.25</td><td>77.40±0.14</td><td>76.90±0.19</td><td>75.75±0.25</td></tr><tr><td>GraNet2× (si= 0)</td><td>95.09±0.15</td><td>94.84±0.11</td><td>94.69±0.24</td><td>78.18±0.20</td><td>78.17±0.20</td><td>77.15±0.29</td></tr></table>
|
| 196 |
+
|
| 197 |
+
# 5 Conclusion, and Reflection of Broader Impacts
|
| 198 |
+
|
| 199 |
+
In this paper, we re-emphasize the merit of during-training pruning. Compared with the recently proposed works, i.e., LTH and SNIP, during-training pruning is an efficient yet performant class of pruning methods that have received much less attention. We quantitatively study pruning during training from the perspective of pruning plasticity. Inspired by the findings from pruning plasticity and the mechanism of neuroregeneration in the nervous system, we further proposed a novel sparse training method, GraNet, that performs the cost-free connection regeneration during training. GraNet advances the state of the art in both dense-to-sparse training and sparse-to-sparse training.
|
| 200 |
+
|
| 201 |
+
Our paper re-emphasizes the great potential of during-training pruning in reducing the training/inference resources required by ML models without sacrificing accuracy. It has a significant environmental impact on reducing the energy cost of the ML models and CO2 emissions [1, 53, 15, 56, 62].
|
| 202 |
+
|
| 203 |
+
# 6 Acknowledgement
|
| 204 |
+
|
| 205 |
+
This project is partially financed by the Dutch Research Council (NWO). We thank the reviewers for the constructive comments and questions, which improved the quality of our paper.
|
| 206 |
+
|
| 207 |
+
# References
|
| 208 |
+
|
| 209 |
+
[1] Z. Atashgahi, G. Sokar, T. van der Lee, E. Mocanu, D. C. Mocanu, R. Veldhuis, and M. Pechenizkiy. Quick and robust feature selection: the strength of energy-efficient sparse training for autoencoders. arXiv:2012.00560, 2020.
|
| 210 |
+
[2] B. Bartoldson, A. Morcos, A. Barbu, and G. Erlebacher. The generalization-stability tradeoff in neural network pruning. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 20852–20864. Curran Associates, Inc., 2020.
|
| 211 |
+
[3] G. Bellec, D. Kappel, W. Maass, and R. Legenstein. Deep rewiring: Training very sparse deep networks. In International Conference on Learning Representations, 2018. arXiv:1711.05136 (2017).
|
| 212 |
+
[4] T. Brown, B. Mann, N. Ryder, M. Subbiah, J. D. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, S. Agarwal, A. Herbert-Voss, G. Krueger, T. Henighan, R. Child, A. Ramesh, D. Ziegler, J. Wu, C. Winter, C. Hesse, M. Chen, E. Sigler, M. Litwin, S. Gray, B. Chess, J. Clark, C. Berner, S. McCandlish, A. Radford, I. Sutskever, and D. Amodei. Language models are few-shot learners. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 1877–1901. Curran Associates, Inc., 2020.
|
| 213 |
+
[5] T. Chen, J. Frankle, S. Chang, S. Liu, Y. Zhang, M. Carbin, and Z. Wang. The lottery tickets hypothesis for supervised and self-supervised pre-training in computer vision models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 16306–16316, June 2021.
|
| 214 |
+
[6] P. de Jorge, A. Sanyal, H. Behl, P. Torr, G. Rogez, and P. K. Dokania. Progressive skeletonization: Trimming more fat from a network at initialization. In International Conference on Learning Representations, 2021. arXiv:cs.CV/2006.09081.
|
| 215 |
+
[7] E. Denton, W. Zaremba, J. Bruna, Y. LeCun, and R. Fergus. Exploiting linear structure within convolutional networks for efficient evaluation. Twenty-eighth Conference on Neural Information Processing Systems. arXiv:1404.0736, 2014.
|
| 216 |
+
[8] T. Dettmers and L. Zettlemoyer. Sparse networks from scratch: Faster training without losing performance. arXiv preprint arXiv:1907.04840, 2019.
|
| 217 |
+
[9] U. Evci, T. Gale, J. Menick, P. S. Castro, and E. Elsen. Rigging the lottery: Making all tickets winners. In International Conference on Machine Learning, pages 2943–2952. PMLR, 2020.
|
| 218 |
+
[10] J. Frankle and M. Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In International Conference on Learning Representations, 2019. arXiv:1803.03635.
|
| 219 |
+
[11] J. Frankle, G. K. Dziugaite, D. Roy, and M. Carbin. Pruning neural networks at initialization: Why are we missing the mark? In International Conference on Learning Representations, 2021. arXiv:2009.08576.
|
| 220 |
+
[12] J. Frankle, G. K. Dziugaite, D. M. Roy, and M. Carbin. The lottery ticket hypothesis at scale. arXiv preprint arXiv:1903.01611, 2019.
|
| 221 |
+
[13] T. Gale, E. Elsen, and S. Hooker. The state of sparsity in deep neural networks. arXiv preprint arXiv:1902.09574, 2019.
|
| 222 |
+
[14] T. Gale, M. Zaharia, C. Young, and E. Elsen. Sparse gpu kernels for deep learning. arXiv preprint arXiv:2006.10901, 2020.
|
| 223 |
+
[15] E. García-Martín, C. F. Rodrigues, G. Riley, and H. Grahn. Estimation of energy consumption in machine learning. Journal of Parallel and Distributed Computing, 134:75–88, 2019.
|
| 224 |
+
[16] T. Gebhart, U. Saxena, and P. Schrater. A unified paths perspective for pruning at initialization. arXiv preprint arXiv:2101.10552, 2021.
|
| 225 |
+
[17] J. Guo, Y. Li, W. Lin, Y. Chen, and J. Li. Network decoupling: From regular to depthwise separable convolutions. arXiv preprint arXiv:1808.05517, 2018.
|
| 226 |
+
[18] S. Han, J. Pool, J. Tran, and W. Dally. Learning both weights and connections for efficient neural network. In Advances in neural information processing systems, pages 1135–1143, 2015.
|
| 227 |
+
[19] B. Hassibi and D. G. Stork. Second order derivatives for network pruning: Optimal brain surgeon. Morgan Kaufmann, 1993.
|
| 228 |
+
[20] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770– 778, 2016.
|
| 229 |
+
[21] T. Hoefler, D. Alistarh, T. Ben-Nun, N. Dryden, and A. Peste. Sparsity in deep learning: Pruning and growth for efficient inference and training in neural networks. Journal of Machine Learning Research, 22(241):1–124, 2021.
|
| 230 |
+
[22] I. Hubara, B. Chmiel, M. Island, R. Banner, S. Naor, and D. Soudry. Accelerated sparse neural training: A provable and efficient method to find n: M transposable masks. arXiv preprint arXiv:2102.08124, 2021.
|
| 231 |
+
[23] M. Jaderberg, A. Vedaldi, and A. Zisserman. Speeding up convolutional neural networks with low rank expansions. arXiv preprint arXiv:1405.3866, 2014.
|
| 232 |
+
[24] S. A. Janowsky. Pruning versus clipping in neural networks. Physical Review A, 39(12):6600, 1989.
|
| 233 |
+
[25] S. Jayakumar, R. Pascanu, J. Rae, S. Osindero, and E. Elsen. Top-kast: Top-k always sparse training. Advances in Neural Information Processing Systems, 33:20744–20754, 2020.
|
| 234 |
+
[26] E. R. Kandel, J. H. Schwartz, T. M. Jessell, S. Siegelbaum, A. J. Hudspeth, and S. Mack. Principles of neural science, volume 4. McGraw-hill New York, 2000.
|
| 235 |
+
[27] A. Krizhevsky and G. Hinton. Learning multiple layers of features from tiny images. Master’s thesis, Department of Computer Science, University of Toronto, 2009.
|
| 236 |
+
[28] A. Kusupati, V. Ramanujan, R. Somani, M. Wortsman, P. Jain, S. Kakade, and A. Farhadi. Soft threshold weight reparameterization for learnable sparsity. In International Conference on Machine Learning, pages 5544–5555. PMLR, 2020.
|
| 237 |
+
[29] Y. LeCun, J. S. Denker, and S. A. Solla. Optimal brain damage. In Advances in neural information processing systems, pages 598–605, 1990.
|
| 238 |
+
[30] N. Lee, T. Ajanthan, S. Gould, and P. H. S. Torr. A signal propagation perspective for pruning neural networks at initialization. In International Conference on Learning Representations, 2020. arXiv:1906.06307.
|
| 239 |
+
[31] N. Lee, T. Ajanthan, and P. H. Torr. Snip: Single-shot network pruning based on connection sensitivity. International Conference on Learning Representations, 2018.
|
| 240 |
+
[32] H. Li, A. Kadav, I. Durdanovic, H. Samet, and H. P. Graf. Pruning filters for efficient convnets. International Conference on Learning Representations, 2016.
|
| 241 |
+
[33] T. Lin, S. U. Stich, L. Barba, D. Dmitriev, and M. Jaggi. Dynamic model pruning with feedback. In International Conference on Learning Representations, 2020.
|
| 242 |
+
[34] J. Liu, Z. Xu, R. Shi, R. C. C. Cheung, and H. K. So. Dynamic sparse training: Find efficient sparse network from scratch with trainable masked layers. In International Conference on Learning Representations, 2020.
|
| 243 |
+
[35] S. Liu, D. C. Mocanu, A. R. R. Matavalam, Y. Pei, and M. Pechenizkiy. Sparse evolutionary deep learning with over one million artificial neurons on commodity hardware. Neural Computing and Applications, 33(7):2589–2604, 2021.
|
| 244 |
+
[36] S. Liu, D. C. Mocanu, Y. Pei, and M. Pechenizkiy. Selfish sparse rnn training. In Proceedings of the 39th International Conference on Machine Learning, pages 6893–6904. PMLR, 2021.
|
| 245 |
+
[37] S. Liu, L. Yin, D. C. Mocanu, and M. Pechenizkiy. Do we actually need dense overparameterization? in-time over-parameterization in sparse training. In Proceedings of the 39th International Conference on Machine Learning, pages 6989–7000. PMLR, 2021.
|
| 246 |
+
[38] T. Liu and F. Zenke. Finding trainable sparse networks through neural tangent transfer. In International Conference on Machine Learning, pages 6336–6347. PMLR, 2020.
|
| 247 |
+
[39] Z. Liu, M. Sun, T. Zhou, G. Huang, and T. Darrell. Rethinking the value of network pruning. International Conference on Learning Representations, 2019.
|
| 248 |
+
[40] C. Louizos, M. Welling, and D. P. Kingma. Learning sparse neural networks through l_0 regularization. International Conference on Learning Representations, 2018.
|
| 249 |
+
[41] M. Mahar and V. Cavalli. Intrinsic mechanisms of neuronal axon regeneration. Nature Reviews Neuroscience, 19(6):323–337, 2018.
|
| 250 |
+
[42] D. Mittal, S. Bhardwaj, M. M. Khapra, and B. Ravindran. Recovering from random pruning: On the plasticity of deep convolutional neural networks. In 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 848–857. IEEE, 2018.
|
| 251 |
+
[43] D. C. Mocanu, E. Mocanu, T. Pinto, S. Curci, P. H. Nguyen, M. Gibescu, D. Ernst, and Z. A. Vale. Sparse training theory for scalable and efficient agents. International Conference on Autonomous Agents and Multiagent Systems (AAMAS). arXiv:2103.01636, 2021.
|
| 252 |
+
[44] D. C. Mocanu, E. Mocanu, P. Stone, P. H. Nguyen, M. Gibescu, and A. Liotta. Scalable training of artificial neural networks with adaptive sparse connectivity inspired by network science. Nature communications, 9(1):2383, 2018.
|
| 253 |
+
[45] D. Molchanov, A. Ashukha, and D. Vetrov. Variational dropout sparsifies deep neural networks. In International Conference on Machine Learning, pages 2498–2507. PMLR, 2017.
|
| 254 |
+
[46] P. Molchanov, A. Mallya, S. Tyree, I. Frosio, and J. Kautz. Importance estimation for neural network pruning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11264–11272, 2019.
|
| 255 |
+
[47] P. Molchanov, S. Tyree, T. Karras, T. Aila, and J. Kautz. Pruning convolutional neural networks for resource efficient inference. International Conference on Learning Representations, 2016.
|
| 256 |
+
[48] H. Mostafa and X. Wang. Parameter efficient training of deep convolutional neural networks by dynamic sparse reparameterization. International Conference on Machine Learning, 2019.
|
| 257 |
+
[49] M. C. Mozer and P. Smolensky. Skeletonization: A technique for trimming the fat from a network via relevance assessment. In Advances in neural information processing systems, pages 107–115, 1989.
|
| 258 |
+
[50] M. C. Mozer and P. Smolensky. Using relevance to reduce network size automatically. Connection Science, 1(1):3–16, 1989.
|
| 259 |
+
[51] P. G. Nagappan, H. Chen, and D.-Y. Wang. Neuroregeneration and plasticity: a review of the physiological mechanisms for achieving functional recovery postinjury. Military Medical Research, 7(1):1–16, 2020.
|
| 260 |
+
[52] Nvidia. Nvidia a100 tensor core gpu architecture. https://www.nvidia.com/content/dam/enzz/Solutions/Data-Center/nvidia-ampere-architecture-whitepaper.pdf, 2020.
|
| 261 |
+
[53] D. Patterson, J. Gonzalez, Q. Le, C. Liang, L.-M. Munguia, D. Rothchild, D. So, M. Texier, and J. Dean. Carbon emissions and large neural network training. arXiv preprint arXiv:2104.10350, 2021.
|
| 262 |
+
[54] A. Renda, J. Frankle, and M. Carbin. Comparing rewinding and fine-tuning in neural network pruning. In International Conference on Learning Representations, 2020. arXiv:2003.02389.
|
| 263 |
+
[55] P. Savarese, H. Silva, and M. Maire. Winning the lottery with continuous sparsification. arXiv preprint arXiv:1912.04427, 2019.
|
| 264 |
+
[56] R. Schwartz, J. Dodge, N. A. Smith, and O. Etzioni. Green ai. arXiv preprint arXiv:1907.10597, 2019.
|
| 265 |
+
[57] Y. Shen, L. Shen, H.-Z. Huang, X. Wang, and W. Liu. Cpot: Channel pruning via optimal transport. arXiv preprint arXiv:2005.10451, 2020.
|
| 266 |
+
[58] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. International Conference on Learning Representations, 2014.
|
| 267 |
+
[59] S. P. Singh and D. Alistarh. Woodfisher: Efficient second-order approximation for neural network compression. Advances in Neural Information Processing Systems, 33, 2020.
|
| 268 |
+
[60] S. Srinivas, A. Subramanya, and R. Venkatesh Babu. Training sparse neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 138–145, 2017.
|
| 269 |
+
[61] N. Strom. Scalable distributed dnn training using commodity gpu cloud computing. In Sixteenth Annual Conference of the International Speech Communication Association, 2015.
|
| 270 |
+
[62] E. Strubell, A. Ganesh, and A. McCallum. Energy and policy considerations for deep learning in nlp. arXiv preprint arXiv:1906.02243, 2019.
|
| 271 |
+
[63] H. Tanaka, D. Kunin, D. L. Yamins, and S. Ganguli. Pruning neural networks without any data by iteratively conserving synaptic flow. Advances in Neural Information Processing Systems. arXiv:2006.05467, 2020.
|
| 272 |
+
[64] H. Touvron, A. Vedaldi, M. Douze, and H. Jegou. Fixing the train-test resolution discrepancy. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019.
|
| 273 |
+
[65] S. Verdenius, M. Stol, and P. Forré. Pruning via iterative ranking of sensitivity statistics. arXiv preprint arXiv:2006.00896, 2020.
|
| 274 |
+
[66] S. Verma and J.-C. Pesquet. Sparsifying networks via subdifferential inclusion. In M. Meila and T. Zhang, editors, Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 10542–10552. PMLR, 18–24 Jul 2021.
|
| 275 |
+
[67] C. Wang, G. Zhang, and R. Grosse. Picking winning tickets before training by preserving gradient flow. In International Conference on Learning Representations, 2020.
|
| 276 |
+
[68] W. Wen, C. Wu, Y. Wang, Y. Chen, and H. Li. Learning structured sparsity in deep neural networks. In D. Lee, M. Sugiyama, U. Luxburg, I. Guyon, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 29. Curran Associates, Inc., 2016.
|
| 277 |
+
[69] M. Wortsman, A. Farhadi, and M. Rastegari. Discovering neural wirings. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019.
|
| 278 |
+
[70] X. Xiao, Z. Wang, and S. Rajasekaran. Autoprune: Automatic network pruning by regularizing auxiliary parameters. Advances in neural information processing systems, 32, 2019.
|
| 279 |
+
[71] Y. Xu, Y. Li, S. Zhang, W. Wen, B. Wang, Y. Qi, Y. Chen, W. Lin, and H. Xiong. Trained rank pruning for efficient deep neural networks. arXiv preprint arXiv:1812.02402, 2018.
|
| 280 |
+
[72] D. Yang, A. Ghasemazar, X. Ren, M. Golub, G. Lemieux, and M. Lis. Procrustes: a dataflow and accelerator for sparse deep neural network training. In 2020 53rd Annual IEEE/ACM International Symposium on Microarchitecture (MICRO), pages 711–724. IEEE, 2020.
|
| 281 |
+
[73] G. Yiu and Z. He. Glial inhibition of cns axon regeneration. Nature Reviews Neuroscience, 7(8):617–627, 2006.
|
| 282 |
+
[74] H. You, C. Li, P. Xu, Y. Fu, Y. Wang, X. Chen, R. G. Baraniuk, Z. Wang, and Y. Lin. Drawing early-bird tickets: Towards more efficient training of deep networks. arXiv preprint arXiv:1909.11957, 2019.
|
| 283 |
+
[75] G. Yuan, L. Shen, and W.-S. Zheng. A block decomposition algorithm for sparse optimization. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 275–285, 2020.
|
| 284 |
+
[76] A. Zhou, Y. Ma, J. Zhu, J. Liu, Z. Zhang, K. Yuan, W. Sun, and H. Li. Learning n:m fine-grained structured sparse neural networks from scratch. In International Conference on Learning Representations, 2021.
|
| 285 |
+
[77] M. H. Zhu and S. Gupta. To prune, or not to prune: Exploring the efficacy of pruning for model compression, 2018.
|
parse/train/MNVjrDpu6Yo/MNVjrDpu6Yo_content_list.json
ADDED
|
@@ -0,0 +1,1218 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Sparse Training via Boosting Pruning Plasticity with Neuroregeneration ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
214,
|
| 8 |
+
122,
|
| 9 |
+
784,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Shiwei Liu1∗, Tianlong Chen2, Xiaohan Chen2, Zahra Atashgahi3, $\\mathbf { L u \\ Y i n ^ { 1 } }$ , Huanyu $\\mathbf { K o u } ^ { 4 }$ , Li Shen5, Mykola Pechenizkiy1,6, Zhangyang Wang2, Decebal Constantin Mocanu1,3 1Eindhoven University of Technology, 2University of Texas at Austin 3University of Twente,4University of Leeds, $^ 5 \\mathrm { J D }$ Explore Academy, 6University of Jyväskylä {s.liu3,l.yin,m.pechenizkiy}@tue.nl, {tianlong.chen,xiaohan.chen,atlaswang}@utexas.edu {z.atashgahi,d.c.mocanu}@utwente.nl, {khydouble1,mathshenli}@gmail.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
179,
|
| 19 |
+
223,
|
| 20 |
+
839,
|
| 21 |
+
311
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
348,
|
| 32 |
+
535,
|
| 33 |
+
364
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Works on lottery ticket hypothesis (LTH) and single-shot network pruning (SNIP) have raised a lot of attention currently on post-training pruning (iterative magnitude pruning), and before-training pruning (pruning at initialization). The former method suffers from an extremely large computation cost and the latter usually struggles with insufficient performance. In comparison, during-training pruning, a class of pruning methods that simultaneously enjoys the training/inference efficiency and the comparable performance, temporarily, has been less explored. To better understand during-training pruning, we quantitatively study the effect of pruning throughout training from the perspective of pruning plasticity (the ability of the pruned networks to recover the original performance). Pruning plasticity can help explain several other empirical observations about neural network pruning in literature. We further find that pruning plasticity can be substantially improved by injecting a brain-inspired mechanism called neuroregeneration, i.e., to regenerate the same number of connections as pruned. We design a novel gradual magnitude pruning (GMP) method, named gradual pruning with zerocost neuroregeneration (GraNet), that advances state of the art. Perhaps most impressively, its sparse-to-sparse version for the first time boosts the sparse-tosparse training performance over various dense-to-sparse methods with ResNet50 on ImageNet without extending the training time. We release all codes in https://github.com/Shiweiliuiiiiiii/GraNet. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
381,
|
| 43 |
+
766,
|
| 44 |
+
656
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
174,
|
| 54 |
+
685,
|
| 55 |
+
310,
|
| 56 |
+
703
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Neural network pruning is the most common technique to reduce the parameter count, storage requirements, and computational costs of modern neural network architectures. Recently, posttraining pruning [49, 29, 18, 47, 10, 54, 74, 5, 57, 75] and before-training pruning [31, 30, 67, 63, 6, 11] have been two fast-rising fields, boosted by lottery tickets hypothesis (LTH) [10] and singleshot network pruning (SNIP) [31]. The process of post-training pruning typically involves fully pre-training a dense network as well as many cycles of retraining (either fine-tuning [18, 17, 39] or rewinding [12, 54]). As the training costs of the state-of-the-art models, e.g., GPT-3 [4] and FixEfficientNet-L2 [64] have exploded, this process can lead to a large amount of overhead cost. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
713,
|
| 66 |
+
825,
|
| 67 |
+
823
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Recently emerged methods for pruning at initialization significantly reduce the training cost by identifying a trainable sub-network before the main training process. While promising, the existing methods fail to match the performance achieved by the magnitude pruning after training [11]. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
176,
|
| 76 |
+
829,
|
| 77 |
+
823,
|
| 78 |
+
872
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "image",
|
| 84 |
+
"img_path": "images/af59a1e56490518e8d401f0013dfad93dbe5e7acc35baaaec44d4e8e171492f4.jpg",
|
| 85 |
+
"image_caption": [
|
| 86 |
+
"Figure 1: Schematic view of GraNet. Left: Gradual pruning starts with a sparse subnetwork and gradually prune the subnetwork to the target sparsity during training. Right: We perform zero-cost neuroregeneration after each gradual pruning step. Light blue blocks/lines refer to the “damaged” connections and orange blocks/lines refer to the regenerated new connections. "
|
| 87 |
+
],
|
| 88 |
+
"image_footnote": [],
|
| 89 |
+
"bbox": [
|
| 90 |
+
222,
|
| 91 |
+
88,
|
| 92 |
+
776,
|
| 93 |
+
262
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 1
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "text",
|
| 99 |
+
"text": "Compared with the above-mentioned two classes of pruning, during-training pruning is a class of methods that reap the acceleration benefits of sparsity early on the training and meanwhile achieve promising performance by consulting the information obtained during training. There are some works [77, 13, 33] attempting to gradually prune the network to the desired sparsity during training, while they mainly focus on the performance improvement. Up to now, the understanding of duringtraining pruning has been less explored due to its more complicated dynamical process, and the performance gap still exists between pruning during training and full dense training. ",
|
| 100 |
+
"bbox": [
|
| 101 |
+
174,
|
| 102 |
+
353,
|
| 103 |
+
825,
|
| 104 |
+
450
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "To better understand the effect of pruning during the optimization process (not at inference), we study the ability of the pruned models to recover the original performance after a short continued training with the current learning rate, which we call pruning plasticity (see Section 3.1 for a more formal definition). Inspired by the neuroregeneration mechanism in the nervous system where new neurons and connections are synthesized to recover the damage in the nervous system [26, 41, 73], we examine if allowing the pruned network to regenerate new connections can improve pruning plasticity, and hence contribute to pruning during training. We consequently propose a parameter-efficient method to regenerate new connections during the gradual pruning process. Different from the existing works for pruning understanding which mainly focus on dense-to-sparse training [42] (training a dense model and prune it to the target sparsity), we also consider sparse-to-sparse training (training a sparse model yet adaptively re-creating the sparsity pattern) which recently has received an upsurge of interest in machine learning [44, 3, 9, 48, 8, 37, 36]. ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
455,
|
| 114 |
+
825,
|
| 115 |
+
622
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "In short, we have the following main findings during the course of the study: ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
628,
|
| 125 |
+
674,
|
| 126 |
+
642
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "#1. Both pruning rate and learning rate matter for pruning plasticity. When pruned with low pruning rates (e.g., 0.2), both dense-to-sparse training and sparse-to-sparse training can easily recover from pruning. On the contrary, if too many parameters are removed at one time, almost all models suffer from accuracy drops. This finding makes a connection to the success of the iterative magnitude pruning [10, 54, 5, 6, 65], where usually a pruning process with a small pruning rate (e.g., 0.2) needs to be iteratively repeated for good performance. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
648,
|
| 136 |
+
825,
|
| 137 |
+
733
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "Pruning plasticity also gradually decreases as the learning rate drops. When pruning happens during the training phase with large learning rates, models can easily recover from pruning (up to a certain level). However, pruning plasticity drops significantly after the second learning rate decay, leading to a situation where the pruned networks can not recover with continued training. This finding helps to explain several observations (1) for gradual magnitude pruning (GMP), it is always optimal to end pruning before the second learning rate drop [77, 13]; (2) dynamic sparse training (DST) benefits from a monotonically decreasing pruning rate with cosine or linear update schedule [8, 9]; (3) rewinding techniques [12, 54] outperform fine-tuning as rewinding retrains subnetworks with the original learning rate schedule whereas fine-tuning often retrains with the smallest learning rate. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
738,
|
| 147 |
+
825,
|
| 148 |
+
863
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "#2. Neuroregeneration improves pruning plasticity. Neuroregeneration [41, 73] refers to the regrowth or repair of nervous tissues, cells, or cell products. Conceptually, it involves synthesizing new neurons, glia, axons, myelin, or synapses, providing extra resources in the long term to replace those damaged by the injury, and achieving a lasting functional recovery. Such mechanism is closely related to the brain plasticity [51], and we borrow this concept to developing a computational regime. ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
174,
|
| 157 |
+
869,
|
| 158 |
+
825,
|
| 159 |
+
911
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "",
|
| 166 |
+
"bbox": [
|
| 167 |
+
173,
|
| 168 |
+
92,
|
| 169 |
+
823,
|
| 170 |
+
119
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 2
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "We show that, while regenerating the same number of connections as pruned, the pruning plasticity is observed to improve remarkably, indicating a more neuroplastic model being developed. However, it increases memory and computational overheads and seems to contradict the benefits of pruningduring-training. This however raises the question: can we achieve efficient neuroregeneration during training with no extra costs? We provide an affirmative answer to this question. ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
174,
|
| 179 |
+
126,
|
| 180 |
+
825,
|
| 181 |
+
195
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 2
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "#3. Pruning plasticity with neuroregeneration can be leveraged to substantially boost sparse training performance. The above-mentioned findings of pruning plasticity can generalize to the final performance level under a full continued training to the end. Imitating the neuroregeneration behavior [41, 73], we propose a new sparse training method – gradual pruning with zero-cost neuroregeneration (GraNet), which is capable of performing regeneration without increasing the parameter count. ",
|
| 188 |
+
"bbox": [
|
| 189 |
+
174,
|
| 190 |
+
202,
|
| 191 |
+
825,
|
| 192 |
+
271
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 2
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "In experiments, GraNet establishes the new state-of-the-art performance bar for dense-to-sparse training and sparse-to-sparse training, respectively. Particularly, the latter for the first time boosts the sparse-to-sparse training performance over various dense-to-sparse methods by a large margin without extending the training time, with ResNet-50 on ImageNet. Besides the consistent performance improvement, we find the subnetworks that GraNet learns are more accurate than the ones learned by the existing gradual pruning method, providing explanations for the success of GraNet. ",
|
| 199 |
+
"bbox": [
|
| 200 |
+
174,
|
| 201 |
+
277,
|
| 202 |
+
825,
|
| 203 |
+
361
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 2
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "2 Related Work ",
|
| 210 |
+
"text_level": 1,
|
| 211 |
+
"bbox": [
|
| 212 |
+
174,
|
| 213 |
+
376,
|
| 214 |
+
321,
|
| 215 |
+
392
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 2
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "Post-Training Pruning. Methods that yield a sparse neural network from a pre-trained network by pruning the unimportant weights or neurons, to the best of our knowledge, were proposed in [24] and [50]. After that, various pruning methods have emerged to provide increasingly efficient methods to identify sparse neural networks for inference. The pruning criterion includes weight magnitude [18, 10], gradient [61] Hessian [29, 19, 59], Taylor expansion [47, 46], etc. Low-rank decomposition [7, 23, 17, 71] are also used to induce structured sparsity in terms of channels or filters. Most of the above-mentioned pruning methods require many pruning and re-training cycles to achieve the desired performance. ",
|
| 222 |
+
"bbox": [
|
| 223 |
+
174,
|
| 224 |
+
402,
|
| 225 |
+
825,
|
| 226 |
+
513
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 2
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "During-Training Pruning. Instead of inheriting weights from a pre-trained model, some works attempt to discover well-performing sparse neural networks with one single training process. ",
|
| 233 |
+
"bbox": [
|
| 234 |
+
174,
|
| 235 |
+
520,
|
| 236 |
+
821,
|
| 237 |
+
547
|
| 238 |
+
],
|
| 239 |
+
"page_idx": 2
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"type": "text",
|
| 243 |
+
"text": "Gradual Magnitude Pruning (GMP), introduced in [77] and studied further in [13], gradually sparsifies the neural network during the training process until the desired sparsity is reached. Besides, [40] and [68] are prior works that enforce the network to sparse during training via $L _ { 0 }$ and $L _ { 1 }$ regularization, respectively. [60, 34, 55, 70, 28] moved further by introducing trainable sparsity heuristics to learn the sparse masks and weights simultaneously. These methods are all classified as dense-to-sparse training as they start from a dense network. ",
|
| 244 |
+
"bbox": [
|
| 245 |
+
174,
|
| 246 |
+
554,
|
| 247 |
+
825,
|
| 248 |
+
637
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 2
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "Dynamic Sparse Training (DST) [44, 3, 48, 8, 9, 36, 35, 25] is another class of methods that prune models during training. The key factor of DST is that it starts from a random initialized sparse network and optimizes the sparse topology as well as the weights simultaneously during training (sparse-to-sparse training). Without an extended training time [37], sparse-to-sparse training usually falls short of dense-to-sparse training in terms of the prediction accuracy. For further details, see the survey of [43, 21]. ",
|
| 255 |
+
"bbox": [
|
| 256 |
+
174,
|
| 257 |
+
643,
|
| 258 |
+
825,
|
| 259 |
+
727
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "Before-Training Pruning. Motivated by SNIP [31], many works [67, 63, 6] have emerged recently to explore the possibility of obtaining a trainable sparse neural network before the main training process. [11] demonstrates that the existing methods for pruning at initialization perform equally well when the unpruned weights are randomly shuffled, which reveals that what these methods discover is the layer-wise sparsity ratio, rather than the indispensable weight values and positions. Our analysis shows that both the mask positions and weight values are crucial for GraNet. ",
|
| 266 |
+
"bbox": [
|
| 267 |
+
174,
|
| 268 |
+
733,
|
| 269 |
+
825,
|
| 270 |
+
816
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 2
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "text",
|
| 276 |
+
"text": "3 Methodology for Pruning Plasticity ",
|
| 277 |
+
"text_level": 1,
|
| 278 |
+
"bbox": [
|
| 279 |
+
173,
|
| 280 |
+
832,
|
| 281 |
+
500,
|
| 282 |
+
849
|
| 283 |
+
],
|
| 284 |
+
"page_idx": 2
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"type": "text",
|
| 288 |
+
"text": "The primary goal of this paper is to study the effect of pruning as well as neuroregeneration on neural networks during the standard training process. Therefore, we do not consider post-training pruning and before-training pruning. Below, we introduce in detail the definition of pruning plasticity and the experimental design that we used to study pruning plasticity. ",
|
| 289 |
+
"bbox": [
|
| 290 |
+
174,
|
| 291 |
+
859,
|
| 292 |
+
823,
|
| 293 |
+
915
|
| 294 |
+
],
|
| 295 |
+
"page_idx": 2
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"type": "text",
|
| 299 |
+
"text": "3.1 Metrics ",
|
| 300 |
+
"text_level": 1,
|
| 301 |
+
"bbox": [
|
| 302 |
+
174,
|
| 303 |
+
92,
|
| 304 |
+
266,
|
| 305 |
+
106
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 3
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "text",
|
| 311 |
+
"text": "Let us denote $W _ { t } \\in \\mathbb { R } ^ { d }$ as the weights of the network and $m _ { t } \\in \\{ 0 , 1 \\} ^ { d }$ as the binary mask yielded from the pruning method at epoch $t$ . Thus, the pruned network can be denoted as $W _ { t } \\odot m _ { t }$ . Let $T$ be the total number of epochs the model should be trained. Let $\\mathbf { C O N T R A I N } ^ { k } ( W _ { t } \\odot m _ { t } , a )$ refers to the function that continues to train the pruned model for $k$ epochs with the learning rate schedule $a$ . ",
|
| 312 |
+
"bbox": [
|
| 313 |
+
174,
|
| 314 |
+
109,
|
| 315 |
+
825,
|
| 316 |
+
165
|
| 317 |
+
],
|
| 318 |
+
"page_idx": 3
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "text",
|
| 322 |
+
"text": "Definition of Pruning plasticity. We define pruning plasticity as $t _ { \\mathrm { C O N T R A I N } ^ { k } ( W _ { t } \\odot m _ { t } , a _ { t } ) } - t _ { \\mathrm { P R E } }$ , where $t _ { \\mathrm { P R E } }$ is the test accuracy measured before pruning and $t _ { \\mathrm { C O N T R A I N } ^ { k } \\left( W _ { t } \\odot m _ { t } , a _ { t } \\right) }$ is the test accuracy measured after $k$ epoch of continued training $\\mathbf { C O N T R A I N } ^ { k } ( W _ { t } \\odot m _ { t } , a _ { t } )$ . Specifically, to better understand the effect of pruning on the current model status and to avoid the effect of learning rate decay, we fix the learning rate as the one when the model is pruned, i.e, $a _ { t }$ . This setting is also appealing to GMP [77, 13] and DST [44, 9, 48, 37] in which most of the pruned models are continually trained with the current learning rate for some time. ",
|
| 323 |
+
"bbox": [
|
| 324 |
+
173,
|
| 325 |
+
171,
|
| 326 |
+
825,
|
| 327 |
+
273
|
| 328 |
+
],
|
| 329 |
+
"page_idx": 3
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"type": "text",
|
| 333 |
+
"text": "Final performance gap. Nevertheless, we also investigate the effect of pruning on the final performance, that is, continually training the pruned networks to the end with the remaining learning rate schedule CONTRAINT −t(Wt \f mt, a[t+1:T ]). In this case, we report tCONTRAINT−t(Wt\fmt,a[t+1:T]) − $t _ { \\mathrm { F I N A L } }$ , where $t _ { \\mathrm { F I N A L } }$ is the final test accuracy of the unpruned models. ",
|
| 334 |
+
"bbox": [
|
| 335 |
+
174,
|
| 336 |
+
279,
|
| 337 |
+
825,
|
| 338 |
+
337
|
| 339 |
+
],
|
| 340 |
+
"page_idx": 3
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"type": "text",
|
| 344 |
+
"text": "3.2 Architectures and Datasets ",
|
| 345 |
+
"text_level": 1,
|
| 346 |
+
"bbox": [
|
| 347 |
+
174,
|
| 348 |
+
345,
|
| 349 |
+
400,
|
| 350 |
+
361
|
| 351 |
+
],
|
| 352 |
+
"page_idx": 3
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"type": "text",
|
| 356 |
+
"text": "We choose two commonly used architectures to study pruning plasticity, VGG-19 [58] with batch normalization on CIFAR-10 [27], and ResNet-20 [20] on CIFAR-10. ",
|
| 357 |
+
"bbox": [
|
| 358 |
+
171,
|
| 359 |
+
364,
|
| 360 |
+
823,
|
| 361 |
+
393
|
| 362 |
+
],
|
| 363 |
+
"page_idx": 3
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"type": "text",
|
| 367 |
+
"text": "We share the summary of the networks, data, and hyperparameters of dense-to-sparse training in Table 1. We use standard implementations and hyperparameters available online, with the exception of the small batch size for the ResNet-50 on ImageNet due to the limited hardware resources $( 2 \\times$ Tesla V100). All accuracies are in line with the baselines reported in the references [8, 11, 67, 9, 37]. ",
|
| 368 |
+
"bbox": [
|
| 369 |
+
173,
|
| 370 |
+
398,
|
| 371 |
+
825,
|
| 372 |
+
455
|
| 373 |
+
],
|
| 374 |
+
"page_idx": 3
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"type": "table",
|
| 378 |
+
"img_path": "images/f60248aece3e7e739cad8460ad70963720acdb9a0619561d4133fee2fa2b3431.jpg",
|
| 379 |
+
"table_caption": [
|
| 380 |
+
"Table 1: Summary of the architectures and hyperparameters we study in this paper. "
|
| 381 |
+
],
|
| 382 |
+
"table_footnote": [],
|
| 383 |
+
"table_body": "<table><tr><td>Model</td><td>Data</td><td>#Epoch</td><td>Batch Size</td><td>LR</td><td>LR Decay, Epoch</td><td>Weight Decay</td><td>Test Accuracy</td></tr><tr><td>ResNet-20</td><td>CIFAR-10</td><td>160</td><td>128</td><td>0.1(β= 0.9)</td><td>10×,[80,120]</td><td>0.0005</td><td>92.41±0.04</td></tr><tr><td rowspan=\"2\">VGG-19</td><td>CIFAR-10</td><td>160</td><td>128</td><td>0.1(β=0.9)</td><td>10×,[80,120]</td><td>0.0005</td><td>93.85±0.05</td></tr><tr><td>CIFAR-100</td><td>160</td><td>128</td><td>0.1 (β=0.9)</td><td>10×,[80,120]</td><td>0.0005</td><td>73.43±0.08</td></tr><tr><td rowspan=\"3\">ResNet-50</td><td>CIFAR-10</td><td>160</td><td>128</td><td>0.1(β=0.9)</td><td>10×,[80,120]</td><td>0.0005</td><td>94.75±0.01</td></tr><tr><td>CIFAR-100</td><td>160</td><td>128</td><td>0.1 (β=0.9)</td><td>10×,[80,120]</td><td>0.0005</td><td>78.23±0.18</td></tr><tr><td>ImageNet</td><td>100</td><td>64</td><td>0.1(β=0.9)</td><td>10×,[30,60,90]</td><td>0.0004</td><td>76.80±0.09</td></tr></table>",
|
| 384 |
+
"bbox": [
|
| 385 |
+
176,
|
| 386 |
+
483,
|
| 387 |
+
825,
|
| 388 |
+
579
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 3
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "3.3 How to Prune, and How to Regenerate ",
|
| 395 |
+
"text_level": 1,
|
| 396 |
+
"bbox": [
|
| 397 |
+
174,
|
| 398 |
+
594,
|
| 399 |
+
482,
|
| 400 |
+
609
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 3
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "text",
|
| 406 |
+
"text": "Structured and Unstructured Pruning. We consider unstructured and structured pruning in this paper. Structured pruning prunes weights in groups, or removes the entire neurons, convolutional filters, or channels, enabling acceleration with the off-the-shelf hardware. In particular, we choose the filter pruning method used in Li et al. [32]. Unstructured sparsity is a more promising direction not only due to its outstanding performance at extreme sparsities but the increasing support for sparse operation in the practical hardware [35, 14, 52, 76, 22]. For example, Liu et al. [35] illustrated for the first time the true potential of DST, demonstrating significant training/inference efficiency improvement over the dense training. Different from prior conventions [77, 13, 33, 2] where values of the pruned weights are kept, we set the pruned weights to zero to eliminate the historical information for all implementations in this paper. ",
|
| 407 |
+
"bbox": [
|
| 408 |
+
173,
|
| 409 |
+
614,
|
| 410 |
+
825,
|
| 411 |
+
753
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 3
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "text",
|
| 417 |
+
"text": "Magnitude pruning. We prune the weights with the smallest magnitude, as it has evolved as the standard method when pruning happens during training, e.g., GMP [77, 13] and DST [44, 9, 37]. We are also aware of other pruning criteria including but not limited to Hessian [29, 19, 59], Taylor expansion [47, 46], connection sensitivity [31], Gradient Flow [67], Neural Tangent Kernel [38, 16]. ",
|
| 418 |
+
"bbox": [
|
| 419 |
+
174,
|
| 420 |
+
758,
|
| 421 |
+
825,
|
| 422 |
+
815
|
| 423 |
+
],
|
| 424 |
+
"page_idx": 3
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"type": "text",
|
| 428 |
+
"text": "One-shot pruning. To isolate the pruning effect at different training stages and to avoid the interaction between two iterations of pruning, we focus on one-shot pruning. Please note that iterative pruning can also be generalized in our setting, as our experimental design includes neural networks trained at various sparsities and each of them is further pruned with various pruning rates. ",
|
| 429 |
+
"bbox": [
|
| 430 |
+
174,
|
| 431 |
+
820,
|
| 432 |
+
825,
|
| 433 |
+
877
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 3
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "text",
|
| 439 |
+
"text": "Layer-wise pruning and global pruning. We study both the layer-wise magnitude pruning and global magnitude pruning for pruning plasticity. Global magnitude pruning prunes different layers together and leads to non-uniform sparsity distributions; layer-wise pruning operates layer by layer, resulting in uniform distributions. ",
|
| 440 |
+
"bbox": [
|
| 441 |
+
173,
|
| 442 |
+
883,
|
| 443 |
+
821,
|
| 444 |
+
911
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 3
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "",
|
| 451 |
+
"bbox": [
|
| 452 |
+
173,
|
| 453 |
+
92,
|
| 454 |
+
825,
|
| 455 |
+
119
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 4
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "Gradient-based regeneration. The simplest regeneration scheme is to randomly activate new connections [3, 44]. However, it would take a lot of time for random regeneration to discover the important connections, especially for the very extreme sparsities. Alternatively, gradients, including those for the connections with zero weights, provide good indicators for the connection importance. For this reason, we focus on gradient-based regeneration proposed in Rigged Lottery ( RigL) [9], i.e., regenerating the same number of connections as pruned with the largest gradient magnitude. ",
|
| 462 |
+
"bbox": [
|
| 463 |
+
174,
|
| 464 |
+
126,
|
| 465 |
+
825,
|
| 466 |
+
209
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 4
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "3.4 Experimental Results ",
|
| 473 |
+
"text_level": 1,
|
| 474 |
+
"bbox": [
|
| 475 |
+
174,
|
| 476 |
+
219,
|
| 477 |
+
362,
|
| 478 |
+
233
|
| 479 |
+
],
|
| 480 |
+
"page_idx": 4
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"text": "We study pruning plasticity during training with/without regeneration, for both dense training and sparse training. We report the results of ResNet-20 on CIFAR-10 with unstructured global pruning in the main body of the paper. The rest of the experiments are given in Appendix A. Unless otherwise stated, results are qualitatively similar across all networks. Concretely, we first pre-train networks at four sparsity levels, including 0, 0.5, 0.9, and 0.98. The sparse neural networks are trained with uniform distribution (i.e., all layers have the same sparsity). We further choose four pruning rates, e.g., 0.2, 0.5, 0.9, and 0.98, to measure the corresponding pruning plasticity of the pre-trained networks. ",
|
| 485 |
+
"bbox": [
|
| 486 |
+
173,
|
| 487 |
+
238,
|
| 488 |
+
825,
|
| 489 |
+
335
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 4
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"text": "Pruning plasticity. We continue to train the pruned model for 30 epochs and report pruning plasticity in Figure 2. Overall, the learning rate schedule, the pruning rate, and the sparsity of the original models all have a big impact on pruning plasticity. Pruning plasticity decreases as the learning rate decays for all models with different sparsity levels. The models trained with a large learning rate 0.1 can easily recover, or exceed the original performance except for the extremely large pruning rate 0.98. However, the models obtained during the later training phases can recover only with the mild pruning rate choices, e.g., 0.2 (orange lines) and 0.5 (green lines). ",
|
| 496 |
+
"bbox": [
|
| 497 |
+
173,
|
| 498 |
+
342,
|
| 499 |
+
825,
|
| 500 |
+
439
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 4
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"text": "We next demonstrate the effect of connection regeneration on pruning plasticity in the bottom row of Figure 2. It is clear to see that connection regeneration significantly improves pruning plasticity of all the cases, especially for the models that are over-pruned (purple lines). Still, even with connection regeneration, pruning plasticity suffers from performance degradation when pruning occurs after the learning rate drops. ",
|
| 507 |
+
"bbox": [
|
| 508 |
+
173,
|
| 509 |
+
444,
|
| 510 |
+
825,
|
| 511 |
+
513
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 4
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "image",
|
| 517 |
+
"img_path": "images/c338301a4ebef994b551eeb1f67f260d2b4f5344dde37b82b7c5b30eebc84265.jpg",
|
| 518 |
+
"image_caption": [
|
| 519 |
+
"Figure 2: Unstructured Pruning: Pruning plasticity (see Section 3.1 for definition) under a 30- epoch continued training with and without connection regeneration for ResNet-20 on CIFAR-10. The vertical red lines refer to the points when the learning rate is decayed. “Pre-trained Sparsity” refers to the original sparsity of the pre-trained networks before pruning. The pruning method is the magnitude global pruning. "
|
| 520 |
+
],
|
| 521 |
+
"image_footnote": [],
|
| 522 |
+
"bbox": [
|
| 523 |
+
174,
|
| 524 |
+
523,
|
| 525 |
+
821,
|
| 526 |
+
712
|
| 527 |
+
],
|
| 528 |
+
"page_idx": 4
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"type": "text",
|
| 532 |
+
"text": "Final performance gap. Compared with the current model status, people might be more interested in the effect of pruning on the final performance. We further measure the performance gap between the original test accuracy of the unpruned models and the final test accuracy of the pruned model under a full continued training $\\mathrm { C O N T R A I N } ^ { T - t } ( W _ { t } \\odot m _ { t } , a _ { [ t + 1 : T ] } )$ in Figure 3. ",
|
| 533 |
+
"bbox": [
|
| 534 |
+
174,
|
| 535 |
+
808,
|
| 536 |
+
825,
|
| 537 |
+
864
|
| 538 |
+
],
|
| 539 |
+
"page_idx": 4
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"type": "text",
|
| 543 |
+
"text": "We observe that, in this case, large learning rates do not enjoy large performance improvement, but still, the performance gap increases as the learning rate drops. It is reasonable to conjecture that the accuracy improvement of pruning plasticity with the large learning rate, 0.1, is due to the unconverged performance during the early phase of training. Besides, it is surprising to find that the final performance of extreme sparse networks (e.g., the third column and the fourth column) significantly benefits from mild pruning. Again, the ability of the pruned model to recover from pruning remarkably improves after regenerating the connections back. ",
|
| 544 |
+
"bbox": [
|
| 545 |
+
176,
|
| 546 |
+
869,
|
| 547 |
+
825,
|
| 548 |
+
911
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 4
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "image",
|
| 554 |
+
"img_path": "images/78e7ffb5d0599e001dd0778df1062b6ee6477a20a43770d2c2a2cc2ef03df9be.jpg",
|
| 555 |
+
"image_caption": [
|
| 556 |
+
"Figure 3: Unstructured Pruning: Final performance gap between the unpruned models and the pruned models for ResNet-20 on CIFAR-10. The vertical red lines refer to the points when the learning rate is decayed. “Pre-trained Sparsity” refers to the original sparsity of the pre-trained networks before pruning. The pruning method is the magnitude global pruning. "
|
| 557 |
+
],
|
| 558 |
+
"image_footnote": [],
|
| 559 |
+
"bbox": [
|
| 560 |
+
174,
|
| 561 |
+
84,
|
| 562 |
+
821,
|
| 563 |
+
273
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 5
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "text",
|
| 569 |
+
"text": "",
|
| 570 |
+
"bbox": [
|
| 571 |
+
174,
|
| 572 |
+
357,
|
| 573 |
+
825,
|
| 574 |
+
412
|
| 575 |
+
],
|
| 576 |
+
"page_idx": 5
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"type": "text",
|
| 580 |
+
"text": "4 Gradual Pruning with Zero-Cost Neuroregeneration ",
|
| 581 |
+
"text_level": 1,
|
| 582 |
+
"bbox": [
|
| 583 |
+
174,
|
| 584 |
+
424,
|
| 585 |
+
643,
|
| 586 |
+
443
|
| 587 |
+
],
|
| 588 |
+
"page_idx": 5
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"type": "text",
|
| 592 |
+
"text": "So far, we have known that regenerating the important connections to the pruned models during training substantially improves pruning plasticity as well as the final performance. However, naively regenerating extra connections increases the parameter count and conflicts with the motivation of gradual pruning. ",
|
| 593 |
+
"bbox": [
|
| 594 |
+
173,
|
| 595 |
+
449,
|
| 596 |
+
825,
|
| 597 |
+
506
|
| 598 |
+
],
|
| 599 |
+
"page_idx": 5
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"type": "text",
|
| 603 |
+
"text": "Inspired by the mechanism of neuroregeneration in the nervous system, we propose a novel sparse training method which we call gradual pruning with zero-cost neuroregeneration (GraNet). GraNet consults the information produced throughout training and regenerates important connections during training in a parameter-efficient fashion. See Appendix B.1 for the pseudocode of GraNet. We introduce the main components of GraNet below. ",
|
| 604 |
+
"bbox": [
|
| 605 |
+
174,
|
| 606 |
+
512,
|
| 607 |
+
825,
|
| 608 |
+
582
|
| 609 |
+
],
|
| 610 |
+
"page_idx": 5
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"type": "text",
|
| 614 |
+
"text": "4.1 Gradual Pruning ",
|
| 615 |
+
"text_level": 1,
|
| 616 |
+
"bbox": [
|
| 617 |
+
174,
|
| 618 |
+
590,
|
| 619 |
+
334,
|
| 620 |
+
606
|
| 621 |
+
],
|
| 622 |
+
"page_idx": 5
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"type": "text",
|
| 626 |
+
"text": "We follow the gradual pruning scheme used in [77] and gradually sparsifies the dense network to the target sparsity level over $n$ pruning iterations. Let us define $s _ { i }$ is the initial sparsity, $s _ { f }$ is the target sparsity, $t _ { 0 }$ is is the starting epoch of gradual pruning, $t _ { f }$ is the end epoch of gradual pruning, and $\\Delta t$ is the pruning frequency. The pruning rate of each pruning iteration is: ",
|
| 627 |
+
"bbox": [
|
| 628 |
+
174,
|
| 629 |
+
609,
|
| 630 |
+
825,
|
| 631 |
+
666
|
| 632 |
+
],
|
| 633 |
+
"page_idx": 5
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"type": "equation",
|
| 637 |
+
"img_path": "images/9bf367fa1fdfd3467d05e4953540c0784910fef6cbe185b69b2fa0465a23c5d1.jpg",
|
| 638 |
+
"text": "$$\ns _ { t } = s _ { f } + ( s _ { i } - s _ { f } ) \\left( 1 - \\frac { t - t _ { 0 } } { n \\Delta t } \\right) ^ { 3 } , t \\in \\left\\{ t _ { 0 } , t _ { 0 } + \\Delta t , . . . , t _ { 0 } + n \\Delta t \\right\\} .\n$$",
|
| 639 |
+
"text_format": "latex",
|
| 640 |
+
"bbox": [
|
| 641 |
+
264,
|
| 642 |
+
669,
|
| 643 |
+
733,
|
| 644 |
+
707
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 5
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "We choose global pruning for our method as it generally achieves better performance than uniform pruning. We also report the performance of the uniform sparsity as used in [13] in Appendix C.3. ",
|
| 651 |
+
"bbox": [
|
| 652 |
+
174,
|
| 653 |
+
709,
|
| 654 |
+
825,
|
| 655 |
+
738
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 5
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "text",
|
| 661 |
+
"text": "The conventional gradual pruning methods [77, 13] change the mask (not the weight values) to fulfill the pruning operation, so that the pruned connections have the possibility to be reactivated in the later training phases. Despite this, since the weights of the pruned connections are not updated, they have a small chance to receive sufficient updates to exceed the pruning threshold. This hinders the regeneration of the important connections. ",
|
| 662 |
+
"bbox": [
|
| 663 |
+
174,
|
| 664 |
+
743,
|
| 665 |
+
825,
|
| 666 |
+
813
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 5
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "text",
|
| 672 |
+
"text": "4.2 Zero-Cost Neuroregeneration ",
|
| 673 |
+
"text_level": 1,
|
| 674 |
+
"bbox": [
|
| 675 |
+
174,
|
| 676 |
+
823,
|
| 677 |
+
419,
|
| 678 |
+
837
|
| 679 |
+
],
|
| 680 |
+
"page_idx": 5
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "text",
|
| 684 |
+
"text": "The main difference between GraNet and the conventional GMP methods [77, 13] is the Zero-Cost Neuroregeneration. Imitating the neuroregeneration of the peripheral nervous system [41, 73] where new neurons and connections are synthesized to replace the damaged ones, we first detect and eliminate the “damaged” connections, and then regenerate the same number of new connections. By doing this, we can achieve connection regeneration without increasing the number of connections. ",
|
| 685 |
+
"bbox": [
|
| 686 |
+
174,
|
| 687 |
+
842,
|
| 688 |
+
825,
|
| 689 |
+
911
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 5
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "Concretely, we identify the “damaged” connections as the ones with the smallest weight magnitudes. Small magnitude indicates that either the weight’s gradient is small or a large number of oscillations occur to the gradient direction. Therefore, these weights have a small contribution to the training loss and can be removed. Again, we use the gradient as the importance score for regeneration, same as the regrow method as used in RigL [9]. ",
|
| 696 |
+
"bbox": [
|
| 697 |
+
174,
|
| 698 |
+
90,
|
| 699 |
+
825,
|
| 700 |
+
161
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 6
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "Why we call it “Zero-Cost Neuroregeneration\"? In addition to not increasing the connection (parameter) count, the backward pass of our method is sparse most of the time even though our regeneration utilizes the dense gradient to identify the important connections. We perform neuroregeneration immediately after each gradual pruning step, meaning that the regeneration occurs only once every several thousand iterations. The extra overhead to calculate the dense gradient can be amortized compared with the whole training costs. Compared with the methods [33, 69] that require updating all the weights in the backward pass, our method is much more training efficient, as around 2/3 of the training FLOPs is owing to the backward pass [9, 72]. ",
|
| 707 |
+
"bbox": [
|
| 708 |
+
173,
|
| 709 |
+
166,
|
| 710 |
+
825,
|
| 711 |
+
279
|
| 712 |
+
],
|
| 713 |
+
"page_idx": 6
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "text",
|
| 717 |
+
"text": "Let us denote $r$ as the ratio of the number of the regenerated connections to the total number of connections; $W$ is the network weight. We first remove $r$ proportion of “damaged” weights with the smallest magnitude by: ",
|
| 718 |
+
"bbox": [
|
| 719 |
+
174,
|
| 720 |
+
284,
|
| 721 |
+
825,
|
| 722 |
+
327
|
| 723 |
+
],
|
| 724 |
+
"page_idx": 6
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "equation",
|
| 728 |
+
"img_path": "images/9bfeecb2ed0c3d53dc156061d578db34e56cc1d8b45beed17d29a3cb906477a8.jpg",
|
| 729 |
+
"text": "$$\nW ^ { \\prime } = \\mathrm { T o p K } \\left( | W | , 1 - r \\right) .\n$$",
|
| 730 |
+
"text_format": "latex",
|
| 731 |
+
"bbox": [
|
| 732 |
+
406,
|
| 733 |
+
329,
|
| 734 |
+
591,
|
| 735 |
+
345
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 6
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "Here $\\mathrm { T o p K } ( v , k )$ returns the weight tensor retaining the top $k$ -proportion of elements from $v$ . Immediately after that, we regenerate $r$ proportion of new connections based on the gradient magnitude: ",
|
| 742 |
+
"bbox": [
|
| 743 |
+
174,
|
| 744 |
+
349,
|
| 745 |
+
826,
|
| 746 |
+
377
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 6
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "equation",
|
| 752 |
+
"img_path": "images/41ee1f2f90933d74bbcec14eece9a6d4e46490ae7e0ec9ec0f5cee4a2d701c33.jpg",
|
| 753 |
+
"text": "$$\nW = W ^ { \\prime } + \\mathrm { T o p K } \\left( | \\mathbf { g } _ { i \\notin W ^ { \\prime } } | , r \\right) ,\n$$",
|
| 754 |
+
"text_format": "latex",
|
| 755 |
+
"bbox": [
|
| 756 |
+
390,
|
| 757 |
+
380,
|
| 758 |
+
606,
|
| 759 |
+
398
|
| 760 |
+
],
|
| 761 |
+
"page_idx": 6
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"type": "text",
|
| 765 |
+
"text": "where $\\left| { \\bf g } _ { i \\notin W ^ { \\prime } } \\right|$ are the gradient magnitude of the zero weights. We perform Zero-Cost Neuroregeneration layer by layer from the beginning of the training to the end. ",
|
| 766 |
+
"bbox": [
|
| 767 |
+
176,
|
| 768 |
+
400,
|
| 769 |
+
825,
|
| 770 |
+
428
|
| 771 |
+
],
|
| 772 |
+
"page_idx": 6
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"type": "text",
|
| 776 |
+
"text": "GraNet can naturally generalize to the dense-to-sparse training scenario and the sparse-to-sparse training scenario by setting the initial sparsity level $s _ { i } = 0$ and $s _ { i } > 0$ in Eq. (1), respectively. For simplicity, we set $s _ { i } = 0 . 5$ , $t _ { 0 } = 0$ , and $t _ { f }$ as the epoch when performing the first learning rate decay for the sparse-to-sparse training. Different from the existing sparse-to-sparse training methods, i.e., SET [44], RigL [9], and ITOP [37], in which the sparsity is fixed throughout training, GraNet starts from a denser yet still sparse model and gradually prunes the sparse model to the desired sparsity. Although starting with more parameters, the global pruning technique of gradual pruning helps GraNet quickly evolve to a better sparsity distribution than RigL with lower feedforward FLOPs and higher test accuracy. What’s more, GraNet sparsifies all layers including the first convolutional layer and the last fully-connected layer. ",
|
| 777 |
+
"bbox": [
|
| 778 |
+
173,
|
| 779 |
+
433,
|
| 780 |
+
826,
|
| 781 |
+
573
|
| 782 |
+
],
|
| 783 |
+
"page_idx": 6
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"type": "text",
|
| 787 |
+
"text": "4.3 Experimental Results ",
|
| 788 |
+
"text_level": 1,
|
| 789 |
+
"bbox": [
|
| 790 |
+
174,
|
| 791 |
+
582,
|
| 792 |
+
362,
|
| 793 |
+
597
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 6
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "text",
|
| 799 |
+
"text": "We conduct various experiments to evaluate the effectiveness of GraNet. We compare GraNet with various dense-to-sparse methods and sparse-to-sparse methods. The results of Rigged Lottery (RigL) and GMP with CIFAR-10/100 were reproduced by our implementation with PyTorch so that the only difference between GraNet and GMP is the Zero-Cost Neuroregeneration. For each model, we divide the results into three groups from top to bottom: pruning at initialization, dynamic sparse training and dense-to-sparse methods. See Appendix B for more implementation details used in the experiments. GraNet $\\mathit { s } _ { i } = 0 . 5$ ) refers to the sparse-to-sparse version and the and GraNet ${ \\bf \\nabla } _ { s _ { i } } = 0$ ) refers to the dense-to-sparse version. ",
|
| 800 |
+
"bbox": [
|
| 801 |
+
173,
|
| 802 |
+
601,
|
| 803 |
+
825,
|
| 804 |
+
712
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 6
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "CIFAR-10/100. The results of CIFAR-10/100 are shared in Table 2. We can observe that performance differences among different methods on CIFAR-10 are generally small, but still, GraNet ${ \\bf \\Phi } _ { s _ { i } } = 0 $ ) consistently improves the performance over GMP except for the sparsity $9 5 \\%$ , and achieves the highest accuracy in 4 out of 6 cases. In terms of the more complex data CIFAR-100, the performance differences between the during-training pruning methods and before-training pruning methods are much larger. GraNet $( s _ { i } = 0$ ) again consistently outperforms GMP with all sparsities, highlighting the benefits of Zero-Cost Neuroregeneration. It is maybe more interesting that GraNet ${ \\bf \\nabla } _ { s _ { i } } = 0$ ) even outperforms the post-training method, subdifferential inclusion for sparsity (SIS), by a large margin. ",
|
| 811 |
+
"bbox": [
|
| 812 |
+
173,
|
| 813 |
+
717,
|
| 814 |
+
825,
|
| 815 |
+
829
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 6
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "In terms of sparse-to-sparse training, our proposed GraNet ( $s _ { i } = 0 . 5$ ) has a dominant performance over other methods. Especially at the very extreme sparsity 0.98, our method outperforms RigL by $1 . 4 0 \\%$ and $2 . 2 2 \\%$ with VGG-19 on CIFAR-10 and CIFAR-100, respectively. ",
|
| 822 |
+
"bbox": [
|
| 823 |
+
174,
|
| 824 |
+
835,
|
| 825 |
+
825,
|
| 826 |
+
877
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 6
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "ImageNet. Due to the small data size, the experiments with CIFAR-10/100 may not be sufficient to draw a solid conclusion. We further evaluate our method with ResNet-50 on ImageNet in Table 3. ",
|
| 833 |
+
"bbox": [
|
| 834 |
+
174,
|
| 835 |
+
882,
|
| 836 |
+
821,
|
| 837 |
+
911
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 6
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "table",
|
| 843 |
+
"img_path": "images/6b93365227e21ce81ed1eaf026753c08bea0df95ca598698d6b999dfddc3c4e3.jpg",
|
| 844 |
+
"table_caption": [
|
| 845 |
+
"Table 2: Test accuracy of pruned VGG-19 and ResNet-50 on CIFAR-10/100. We mark the best sparse-to-sparse training results in blue and the best dense-to-sparse training results in bold. The results reported with (mean $\\pm$ std) are run with three different random seeds by us. The rest are obtained from [66] and [67]. Note that the accuracy of RigL is higher than the ones reported in [66], as we choose a large update interval following the In-Time Over-Parameterization strategy [37]. $s _ { i }$ refers to the initial sparsity of GraNet. "
|
| 846 |
+
],
|
| 847 |
+
"table_footnote": [],
|
| 848 |
+
"table_body": "<table><tr><td>Dataset</td><td colspan=\"3\">CIFAR-10</td><td colspan=\"3\">CIFAR-100</td></tr><tr><td>Pruning ratio</td><td>90%</td><td>95%</td><td>98%</td><td>90%</td><td>95%</td><td>98%</td></tr><tr><td>VGG-19 (Dense)</td><td>93.85±0.05</td><td>1</td><td>1</td><td>73.43±0.08</td><td>1</td><td>=</td></tr><tr><td>SNIP [31]</td><td>93.63</td><td>93.43</td><td>92.05</td><td>72.84</td><td>71.83</td><td>58.46</td></tr><tr><td>GraSP[67]</td><td>93.30</td><td>93.04</td><td>92.19</td><td>71.95</td><td>71.23</td><td>68.90</td></tr><tr><td>SynFlow [63]</td><td>93.35</td><td>93.45</td><td>92.24</td><td>71.77</td><td>71.72</td><td>70.94</td></tr><tr><td>Deep-R [3]</td><td>90.81</td><td>89.59</td><td>86.77</td><td>66.83</td><td>63.46</td><td>59.58</td></tr><tr><td>SET[44]</td><td>92.46</td><td>91.73</td><td>89.18</td><td>72.36</td><td>69.81</td><td>65.94</td></tr><tr><td>RigL[9]</td><td>93.38±0.11</td><td>93.06±0.09</td><td>91.98±0.09</td><td>73.13±0.28</td><td>72.14±0.15</td><td>69.82±0.09</td></tr><tr><td>GraNet (si= 0.5) (ours)</td><td>93.73±0.08</td><td>93.66±0.07</td><td>93.38±0.15</td><td>73.30±0.13</td><td>73.18±0.31</td><td>72.04±0.13</td></tr><tr><td>STR [28]</td><td>93.73</td><td>93.27</td><td>92.21</td><td>71.93</td><td>71.14</td><td>69.89</td></tr><tr><td>SIS [66]</td><td>93.99</td><td>93.31</td><td>93.16</td><td>72.06</td><td>71.85</td><td>71.17</td></tr><tr><td>GMP [13]</td><td>93.59±0.10</td><td>93.58±0.07</td><td>93.52±0.03</td><td>73.10±0.12</td><td>72.30±0.15</td><td>72.07±0.37</td></tr><tr><td>GraNet (si= O) (ours)</td><td>93.80±0.10</td><td>93.72±0.11</td><td>93.63±0.08</td><td>73.74±0.30</td><td>73.10±0.04</td><td>72.35±0.26</td></tr><tr><td>ResNet-50 (Dense)</td><td>94.75±0.01</td><td></td><td></td><td>78.23±0.18</td><td></td><td></td></tr><tr><td>SNIP [31]</td><td>92.65</td><td>90.86</td><td>87.21</td><td>73.14</td><td>69.25</td><td>58.43</td></tr><tr><td>GraSP [67]</td><td>92.47</td><td>91.32</td><td>88.77</td><td>73.28</td><td>70.29</td><td>62.12</td></tr><tr><td>SynFlow [63]</td><td>92.49</td><td>91.22</td><td>88.82</td><td>73.37</td><td>70.37</td><td>62.17</td></tr><tr><td>RigL [9]</td><td>94.45±0.43</td><td>93.86±0.25</td><td>93.26±0.22</td><td>76.50±0.33</td><td>76.03±0.34</td><td>75.06±0.27</td></tr><tr><td>GraNet (si= 0.5) (ours)</td><td>94.64±0.27</td><td>94.38±0.28</td><td>94.01±0.23</td><td>77.89±0.33</td><td>77.16±0.52</td><td>77.14±0.45</td></tr><tr><td>STR [28]</td><td>92.59</td><td>91.35</td><td>88.75</td><td>73.45</td><td>70.45</td><td>62.34</td></tr><tr><td>SIS [66]</td><td>92.81</td><td>91.69</td><td>90.11</td><td>73.81</td><td>70.62</td><td>62.75</td></tr><tr><td>GMP[13]</td><td>94.34±0.09</td><td>94.52±0.08</td><td>94.19±0.04</td><td>76.91±0.23</td><td>76.42±0.51</td><td>75.58±0.20</td></tr><tr><td>GraNet (si = O) (ours)</td><td>94.49±0.08</td><td>94.44±0.01</td><td>94.34±0.17</td><td>77.29±0.45</td><td>76.71±0.26</td><td>76.10±0.20</td></tr></table>",
|
| 849 |
+
"bbox": [
|
| 850 |
+
181,
|
| 851 |
+
181,
|
| 852 |
+
816,
|
| 853 |
+
507
|
| 854 |
+
],
|
| 855 |
+
"page_idx": 7
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"type": "table",
|
| 859 |
+
"img_path": "images/ee05e1e780968851b6368809394c2729ceb3cf62632bcb60e96977c1dd3c9516.jpg",
|
| 860 |
+
"table_caption": [
|
| 861 |
+
"Table 3: Test accuracy of pruned ResNet-50 on ImageNet dataset. The best results of DST methods are marked as blue and the best results of pruning during training methods are marked in bold. The training/test FLOPs are normalized with the FLOPs of a dense model. $s _ { i }$ refers to the initial sparsity of GraNet. "
|
| 862 |
+
],
|
| 863 |
+
"table_footnote": [],
|
| 864 |
+
"table_body": "<table><tr><td>Method</td><td>Top-1 Accuracy</td><td>FLOPs (Train)</td><td>FLOPs (Test)</td><td>TOP-1 Accuracy</td><td>FLOPs (Train)</td><td>FLOPs (Test)</td></tr><tr><td>Dense</td><td>76.8±0.09</td><td>1x (3.2e18)</td><td>1x (8.2e9)</td><td>76.8±0.09</td><td>1x (3.2e18)</td><td>1x (8.2e9)</td></tr><tr><td>Pruning ratio</td><td></td><td>80%</td><td></td><td></td><td>90%</td><td></td></tr><tr><td rowspan=\"3\">Static (ERK) Small-Dense</td><td>72.1±0.04</td><td>0.42×</td><td>0.42×</td><td>67.7±0.12</td><td>0.24×</td><td>0.24×</td></tr><tr><td>72.1±0.06</td><td>0.23×</td><td>0.23×</td><td>67.2±0.12</td><td>0.10×</td><td>0.10×</td></tr><tr><td>72.0±0.06</td><td>0.23×</td><td>0.23×</td><td>67.2±0.12</td><td>0.10×</td><td>0.10×</td></tr><tr><td rowspan=\"5\">SET [44] DSR[48] RigL (ERK) [9]</td><td>72.9±0.39</td><td>0.23×</td><td>0.23×</td><td>69.6±0.23</td><td>0.10×</td><td>0.10×</td></tr><tr><td>73.3</td><td>0.40×</td><td>0.40×</td><td>71.6</td><td>0.30×</td><td>0.30×</td></tr><tr><td>75.1±0.05</td><td>0.42×</td><td>0.42×</td><td>73.0±0.04</td><td>0.25×</td><td>0.24×</td></tr><tr><td>75.2±0.11</td><td>0.61×</td><td>0.42×</td><td>72.9±0.06</td><td>0.50×</td><td>0.24×</td></tr><tr><td>76.0</td><td>0.37×</td><td>0.35×</td><td>74.5</td><td>0.25×</td><td>0.20×</td></tr><tr><td>STR [28]</td><td>76.1</td><td>n/a</td><td>0.17×</td><td>74.0</td><td>n/a</td><td>0.08×</td></tr><tr><td>DPF [33]</td><td>75.1</td><td>0.71×</td><td>0.23×</td><td>n/a</td><td>n/a</td><td>n/a</td></tr><tr><td>GMP[13]</td><td>75.6</td><td>0.56×</td><td>0.23×</td><td>73.9</td><td>0.51×</td><td>0.10×</td></tr><tr><td>GraNet (si = 0) (ours)</td><td>75.8</td><td>0.34×</td><td>0.28×</td><td>74.2</td><td>0.23×</td><td>0.16×</td></tr></table>",
|
| 865 |
+
"bbox": [
|
| 866 |
+
181,
|
| 867 |
+
590,
|
| 868 |
+
818,
|
| 869 |
+
827
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 7
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "text",
|
| 875 |
+
"text": "We only run this experiment once due to the limited resources. We set $t _ { 0 } = 0$ and $t _ { f } = 3 0$ for both GraNet $( s _ { i } = 0$ ) and GraNet ${ \\mathit { s } } _ { i } = 0 . 5 { \\mathit { \\Sigma } }$ ) on ImageNet. Again, GraNet $( s _ { i } = 0$ ) outperforms GMP consistently with only half training FLOPs and achieves the highest accuracy among all the dense-to-sparse methods at sparsity of 0.9. Surprisingly, GraNet ${ \\mathit { s } } _ { i } = 0 . 5 { \\mathit { \\Sigma } }$ ) significantly boosts the sparse-to-sparse training performance, even over the dense-to-sparse training. Concretely, GraNet ",
|
| 876 |
+
"bbox": [
|
| 877 |
+
173,
|
| 878 |
+
842,
|
| 879 |
+
825,
|
| 880 |
+
911
|
| 881 |
+
],
|
| 882 |
+
"page_idx": 7
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "text",
|
| 886 |
+
"text": "$s _ { i } = 0 . 5 )$ ) outperforms RigL by $0 . 9 \\%$ and $1 . 5 \\%$ at sparsity 0.8 and 0.9, respectively. To the best of our knowledge, this is the first time in the literature that sparse-to-sparse training reaches a test accuracy of $76 \\%$ with ResNet-50 on ImageNet at sparsity 0.8, without extension of training time. It is reasonable for GraNet $\\mathit { s } _ { i } = 0 . 5$ ) to achieve better accuracy than RigL, since the denser models at the beginning help GraNet explore more the parameter space. According to the In-Time Over-Parameterization hypothesis [37], the performance of sparse training methods is highly correlated with the total number of parameters that the sparse model has visited. ",
|
| 887 |
+
"bbox": [
|
| 888 |
+
173,
|
| 889 |
+
90,
|
| 890 |
+
825,
|
| 891 |
+
188
|
| 892 |
+
],
|
| 893 |
+
"page_idx": 8
|
| 894 |
+
},
|
| 895 |
+
{
|
| 896 |
+
"type": "text",
|
| 897 |
+
"text": "We further report the training/inference FLOPs required by all pruning methods. Compared with other dense-to-sparse methods, the final networks learned by GraNet $( s _ { i } = 0 )$ ) require more FLOPs to test, whereas the overall training FLOPs required by GraNet ${ { s } _ { i } } = 0$ ) are smaller than others. Even though starting from a denser model, GraNet $\\mathit { s } _ { i } = 0 . 5$ ) requires less training and inference FLOPs than the state-of-the-art method, i.e., RigL. The sparsity budgets for 0.9 sparse ResNet-50 on ImageNet-1K learned by our methods are reported in Appendix D. We also report how FLOPs of the pruned ResNet-50 evolve during the course of training in Appendix E. ",
|
| 898 |
+
"bbox": [
|
| 899 |
+
173,
|
| 900 |
+
194,
|
| 901 |
+
825,
|
| 902 |
+
292
|
| 903 |
+
],
|
| 904 |
+
"page_idx": 8
|
| 905 |
+
},
|
| 906 |
+
{
|
| 907 |
+
"type": "text",
|
| 908 |
+
"text": "4.4 Effect of the Initial Sparsity ",
|
| 909 |
+
"text_level": 1,
|
| 910 |
+
"bbox": [
|
| 911 |
+
176,
|
| 912 |
+
296,
|
| 913 |
+
406,
|
| 914 |
+
311
|
| 915 |
+
],
|
| 916 |
+
"page_idx": 8
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"type": "text",
|
| 920 |
+
"text": "As we mentioned earlier, the denser initial network is the key factor in the success of GraNet. We conducted experiments to study the effect of the initial sparsity on GraNet with ResNet-50 on ImageNet. The initial sparsity is chosen from [0.0, 0.5, 0.6, 0.7, 0.8, 0.9] and the final sparsity is fixed as 0.9. The results are shared in Table 4. We can see the training FLOPs of GraNet are quite robust to the initial sparsity. Surprisingly yet reasonably, it seems that the the smaller the initial sparsity is (up to 0.5), the better final sparsity distribution GraNet finds, with higher test accuracy and fewer feedforward FLOPs. The lower feedforward FLOPs of the final network perfectly balance the overhead caused by the denser initial network. ",
|
| 921 |
+
"bbox": [
|
| 922 |
+
174,
|
| 923 |
+
316,
|
| 924 |
+
501,
|
| 925 |
+
496
|
| 926 |
+
],
|
| 927 |
+
"page_idx": 8
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"type": "table",
|
| 931 |
+
"img_path": "images/c7a1c15cb9248308fa4493a9e8755d51ff731ecbc74817a30490fcfb63f08eba.jpg",
|
| 932 |
+
"table_caption": [
|
| 933 |
+
"Table 4: Effect of the initial sparsity on GraNet with ResNet-50 on ImageNet. The training/test FLOPs are normalized with the FLOPs of a dense model. "
|
| 934 |
+
],
|
| 935 |
+
"table_footnote": [],
|
| 936 |
+
"table_body": "<table><tr><td>Method</td><td>Si</td><td>Sf</td><td>Top-1 [%] Accuracy</td><td>FLOPs (Train)</td><td>FLOPs (Test)</td></tr><tr><td>GraNet</td><td>0.0</td><td>0.9</td><td>74.2</td><td>0.23×</td><td>0.16×</td></tr><tr><td>GraNet</td><td>0.5</td><td>0.9</td><td>74.5</td><td>0.25×</td><td>0.20×</td></tr><tr><td>GraNet</td><td>0.6</td><td>0.9</td><td>74.4</td><td>0.25×</td><td>0.22×</td></tr><tr><td>GraNet</td><td>0.7</td><td>0.9</td><td>74.2</td><td>0.24×</td><td>0.22×</td></tr><tr><td>GraNet</td><td>0.8</td><td>0.9</td><td>74.1</td><td>0.25×</td><td>0.24×</td></tr><tr><td>RigL</td><td>0.9</td><td>0.9</td><td>73.0</td><td>0.25×</td><td>0.24×</td></tr></table>",
|
| 937 |
+
"bbox": [
|
| 938 |
+
527,
|
| 939 |
+
381,
|
| 940 |
+
812,
|
| 941 |
+
478
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 8
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "text",
|
| 947 |
+
"text": "",
|
| 948 |
+
"bbox": [
|
| 949 |
+
174,
|
| 950 |
+
496,
|
| 951 |
+
707,
|
| 952 |
+
510
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 8
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "text",
|
| 958 |
+
"text": "4.5 Performance of GraNet at Extreme Sparsities ",
|
| 959 |
+
"text_level": 1,
|
| 960 |
+
"bbox": [
|
| 961 |
+
173,
|
| 962 |
+
518,
|
| 963 |
+
531,
|
| 964 |
+
534
|
| 965 |
+
],
|
| 966 |
+
"page_idx": 8
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"type": "text",
|
| 970 |
+
"text": "In this section, we share the results of GraNet and RigL at extreme sparsities. The initial sparsity is set as 0.5. When the final sparsity is relatively smaller (e.g., 0.8, 0.9), GraNet requires a lower (or the same) number of training FLOPs than RigL, whereas GraNet requires more training FLOPs than RigL when the final sparsity is extremely high (e.g., 0.95, 0.965). This makes sense since when the sparsity is extremely high, the saved FLOPs count of the distribution discovered by GraNet is too small to amortize the overhead caused by denser initial models. Yet, the increased number of training FLOPs of GraNet leads to substantial accuracy improvement $( > 2 \\% )$ over RigL. The efficiency of GraNet ( $s _ { i } = 0 . 5$ ) comes from two important technical differences compared with RigL: (1) better final sparse distribution discovered by global pruning; (2) a shorter period of gradual pruning time (the first 30 epochs for ResNet-50 on ImageNet). Although starting with more parameters, the global pruning enables GraNet to quickly (first 30 epochs) evolve to a better sparsity distribution with lower test FLOPs than ERK. After 30 epochs of gradual pruning, the network continues to be trained with this better distribution for 70 epochs, so that the overhead in the early training phase with larger training FLOPs is amortized by the later and longer training phase with fewer training FLOPs. ",
|
| 971 |
+
"bbox": [
|
| 972 |
+
174,
|
| 973 |
+
537,
|
| 974 |
+
503,
|
| 975 |
+
786
|
| 976 |
+
],
|
| 977 |
+
"page_idx": 8
|
| 978 |
+
},
|
| 979 |
+
{
|
| 980 |
+
"type": "table",
|
| 981 |
+
"img_path": "images/8a60c1b6d85709828f0331300372576c9a0ae918ece228e1531f354a25a273dd.jpg",
|
| 982 |
+
"table_caption": [
|
| 983 |
+
"Table 5: Comparison between GraNet and RigL at extreme sparsities with ResNet-50 on ImageNet. The training/test FLOPs are normalized with the FLOPs of a dense model. "
|
| 984 |
+
],
|
| 985 |
+
"table_footnote": [],
|
| 986 |
+
"table_body": "<table><tr><td>Method</td><td>Si</td><td>sf</td><td>Top-1[%] Accuracy</td><td>FLOPs (Train)</td><td>FLOPs (Test)</td></tr><tr><td>RigL GraNet</td><td>0.8</td><td>0.8</td><td>75.1</td><td>0.42×</td><td>0.42×</td></tr><tr><td>RigL</td><td>0.5 0.9</td><td>0.8 0.9</td><td>76.0 73.0</td><td>0.37× 0.25×</td><td>0.35× 0.24×</td></tr><tr><td>GraNet</td><td>0.5</td><td>0.9</td><td>74.5</td><td>0.25×</td><td>0.20×</td></tr><tr><td>RigL GraNet</td><td>0.95 0.5</td><td>0.95 0.95</td><td>69.7 72.3</td><td>0.12× 0.17×</td><td>0.12× 0.12×</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>RigL</td><td>0.965</td><td>0.965</td><td>67.2</td><td>0.11×</td><td>0.11×</td></tr><tr><td>GraNet</td><td>0.5</td><td>0.965</td><td>70.5</td><td>0.15×</td><td>0.09×</td></tr></table>",
|
| 987 |
+
"bbox": [
|
| 988 |
+
522,
|
| 989 |
+
621,
|
| 990 |
+
826,
|
| 991 |
+
757
|
| 992 |
+
],
|
| 993 |
+
"page_idx": 8
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"type": "text",
|
| 997 |
+
"text": "",
|
| 998 |
+
"bbox": [
|
| 999 |
+
174,
|
| 1000 |
+
786,
|
| 1001 |
+
825,
|
| 1002 |
+
856
|
| 1003 |
+
],
|
| 1004 |
+
"page_idx": 8
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"type": "text",
|
| 1008 |
+
"text": "4.6 Ablation Study of Random Reinitialization ",
|
| 1009 |
+
"text_level": 1,
|
| 1010 |
+
"bbox": [
|
| 1011 |
+
173,
|
| 1012 |
+
863,
|
| 1013 |
+
511,
|
| 1014 |
+
878
|
| 1015 |
+
],
|
| 1016 |
+
"page_idx": 8
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "text",
|
| 1020 |
+
"text": "Next, we ask whether what GraNet learned are the specific sparse connectivity or the sparse connectivity together with the weight values. We randomly reinitialize the pruned network with the same mask and retrain it. The results are given in Figure 4. The performance of the reinitialized networks falls significantly short of the performance achieved by GraNet $( s _ { i } = 0 )$ ), indicating that what was learned by GraNet is the sparse connectivity together with the weight values. Besides, we find that the retraining performance of GraNet is higher than GMP. This further confirms that Zero-Cost Neuroregeneration helps the gradual pruning find more accurate mask positions. ",
|
| 1021 |
+
"bbox": [
|
| 1022 |
+
173,
|
| 1023 |
+
883,
|
| 1024 |
+
825,
|
| 1025 |
+
911
|
| 1026 |
+
],
|
| 1027 |
+
"page_idx": 8
|
| 1028 |
+
},
|
| 1029 |
+
{
|
| 1030 |
+
"type": "text",
|
| 1031 |
+
"text": "",
|
| 1032 |
+
"bbox": [
|
| 1033 |
+
174,
|
| 1034 |
+
90,
|
| 1035 |
+
825,
|
| 1036 |
+
161
|
| 1037 |
+
],
|
| 1038 |
+
"page_idx": 9
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"type": "image",
|
| 1042 |
+
"img_path": "images/b4612ffd943999f6ebf8e6d2174a5adff7df303bbba6e527696f4121417ff7ad.jpg",
|
| 1043 |
+
"image_caption": [
|
| 1044 |
+
"Figure 4: Reinitialization ablation on subnetworks discovered by GMP and GraNet $( s _ { i } = 0$ "
|
| 1045 |
+
],
|
| 1046 |
+
"image_footnote": [],
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
233,
|
| 1049 |
+
176,
|
| 1050 |
+
746,
|
| 1051 |
+
320
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 9
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "text",
|
| 1057 |
+
"text": "4.7 Comparison between Re-training and Extended Training ",
|
| 1058 |
+
"text_level": 1,
|
| 1059 |
+
"bbox": [
|
| 1060 |
+
173,
|
| 1061 |
+
362,
|
| 1062 |
+
609,
|
| 1063 |
+
377
|
| 1064 |
+
],
|
| 1065 |
+
"page_idx": 9
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"type": "text",
|
| 1069 |
+
"text": "In this section, we study if re-training techniques can further improve the performance of the subnetworks discovered by GraNet. The authors of Lottery Ticket Hypothesis (LTH) [10] introduced a retraining technique, even if they did not evaluate it as such, where the subnetworks discovered by iterative magnitude pruning can be re-trained in isolation to full accuracy with the original initializations. Later on, learning rate rewinding (LRR) [54] was proposed further to improve the re-training performance by only rewinding the learning rate. Since GraNet also utilizes magnitude pruning to discover subnetworks, it is natural to test if these re-training techniques can bring benefits to GraNet. As shown in Table 6, both re-training techniques do not bring benefits to GraNet. Instead of re-training the subnetworks, we find that simply extending the training time significantly boosts the performance of GraNet with similar computational costs. ",
|
| 1070 |
+
"bbox": [
|
| 1071 |
+
173,
|
| 1072 |
+
383,
|
| 1073 |
+
825,
|
| 1074 |
+
521
|
| 1075 |
+
],
|
| 1076 |
+
"page_idx": 9
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"type": "table",
|
| 1080 |
+
"img_path": "images/e71234256df4ea71e83b52915d227c04cb86dfa2b8c0c1e45f286c448cf74380.jpg",
|
| 1081 |
+
"table_caption": [
|
| 1082 |
+
"Table 6: Effects of LTH and LRR on the subnetworks learned by GraNet. Methods with $_ 2 \\times$ refer to extending the training steps by 2 times. The results are reported with top-1 test accuracy $[ \\% ]$ . "
|
| 1083 |
+
],
|
| 1084 |
+
"table_footnote": [],
|
| 1085 |
+
"table_body": "<table><tr><td>Dataset</td><td colspan=\"3\">CIFAR-10</td><td colspan=\"3\">CIFAR-100</td></tr><tr><td>Pruning ratio</td><td>90%</td><td>95%</td><td>98%</td><td>90%</td><td>95%</td><td>98%</td></tr><tr><td>VGG-19 (Dense)</td><td>93.85±0.05</td><td>=</td><td></td><td>73.43±0.08</td><td>=</td><td>1</td></tr><tr><td>GraNet (si = 0)</td><td>93.80±0.10</td><td>93.72±0.11</td><td>93.63±0.08</td><td>73.74±0.30</td><td>73.10±0.04</td><td>72.35±0.26</td></tr><tr><td>+Lottery Ticket Hypothesis</td><td>93.63±0.04</td><td>93.29±0.05</td><td>92.46±0.08</td><td>72.97±0.25</td><td>71.76±0.22</td><td>69.28±0.36</td></tr><tr><td>+ Learning Rate Rewinding</td><td>93.84±0.14</td><td>93.72±0.06</td><td>93.53±0.04</td><td>73.71±0.08</td><td>73.24±0.24</td><td>72.50±0.26</td></tr><tr><td>GraNet2x (si = 0)</td><td>94.17±0.03</td><td>93.98±0.07</td><td>93.94±0.11</td><td>74.80±0.29</td><td>73.65±0.32</td><td>73.63±0.05</td></tr><tr><td>ResNet-50 (Dense)</td><td>94.75±0.01</td><td></td><td></td><td>78.23±0.18</td><td></td><td></td></tr><tr><td>GraNet (si = 0)</td><td>94.49±0.08</td><td>94.44±0.01</td><td>94.34±0.17</td><td>77.29±0.45</td><td>76.71±0.26</td><td>76.10±0.20</td></tr><tr><td>+Lottery Ticket Hypothesis</td><td>93.96±0.10</td><td>93.70±0.15</td><td>92.94±0.14</td><td>75.74±0.19</td><td>74.31±0.10</td><td>71.99±0.08</td></tr><tr><td>+ Learning Rate Rewinding</td><td>94.55±0.13</td><td>94.39±0.13</td><td>94.20±0.25</td><td>77.40±0.14</td><td>76.90±0.19</td><td>75.75±0.25</td></tr><tr><td>GraNet2× (si= 0)</td><td>95.09±0.15</td><td>94.84±0.11</td><td>94.69±0.24</td><td>78.18±0.20</td><td>78.17±0.20</td><td>77.15±0.29</td></tr></table>",
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
181,
|
| 1088 |
+
561,
|
| 1089 |
+
820,
|
| 1090 |
+
722
|
| 1091 |
+
],
|
| 1092 |
+
"page_idx": 9
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"type": "text",
|
| 1096 |
+
"text": "5 Conclusion, and Reflection of Broader Impacts ",
|
| 1097 |
+
"text_level": 1,
|
| 1098 |
+
"bbox": [
|
| 1099 |
+
173,
|
| 1100 |
+
748,
|
| 1101 |
+
596,
|
| 1102 |
+
766
|
| 1103 |
+
],
|
| 1104 |
+
"page_idx": 9
|
| 1105 |
+
},
|
| 1106 |
+
{
|
| 1107 |
+
"type": "text",
|
| 1108 |
+
"text": "In this paper, we re-emphasize the merit of during-training pruning. Compared with the recently proposed works, i.e., LTH and SNIP, during-training pruning is an efficient yet performant class of pruning methods that have received much less attention. We quantitatively study pruning during training from the perspective of pruning plasticity. Inspired by the findings from pruning plasticity and the mechanism of neuroregeneration in the nervous system, we further proposed a novel sparse training method, GraNet, that performs the cost-free connection regeneration during training. GraNet advances the state of the art in both dense-to-sparse training and sparse-to-sparse training. ",
|
| 1109 |
+
"bbox": [
|
| 1110 |
+
173,
|
| 1111 |
+
775,
|
| 1112 |
+
825,
|
| 1113 |
+
873
|
| 1114 |
+
],
|
| 1115 |
+
"page_idx": 9
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"type": "text",
|
| 1119 |
+
"text": "Our paper re-emphasizes the great potential of during-training pruning in reducing the training/inference resources required by ML models without sacrificing accuracy. It has a significant environmental impact on reducing the energy cost of the ML models and CO2 emissions [1, 53, 15, 56, 62]. ",
|
| 1120 |
+
"bbox": [
|
| 1121 |
+
174,
|
| 1122 |
+
878,
|
| 1123 |
+
825,
|
| 1124 |
+
921
|
| 1125 |
+
],
|
| 1126 |
+
"page_idx": 9
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"type": "text",
|
| 1130 |
+
"text": "6 Acknowledgement ",
|
| 1131 |
+
"text_level": 1,
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
174,
|
| 1134 |
+
89,
|
| 1135 |
+
359,
|
| 1136 |
+
107
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 10
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "This project is partially financed by the Dutch Research Council (NWO). We thank the reviewers for the constructive comments and questions, which improved the quality of our paper. ",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
174,
|
| 1145 |
+
121,
|
| 1146 |
+
823,
|
| 1147 |
+
150
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 10
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "References ",
|
| 1154 |
+
"text_level": 1,
|
| 1155 |
+
"bbox": [
|
| 1156 |
+
174,
|
| 1157 |
+
162,
|
| 1158 |
+
266,
|
| 1159 |
+
179
|
| 1160 |
+
],
|
| 1161 |
+
"page_idx": 10
|
| 1162 |
+
},
|
| 1163 |
+
{
|
| 1164 |
+
"type": "text",
|
| 1165 |
+
"text": "[1] Z. Atashgahi, G. Sokar, T. van der Lee, E. Mocanu, D. C. Mocanu, R. Veldhuis, and M. Pechenizkiy. Quick and robust feature selection: the strength of energy-efficient sparse training for autoencoders. arXiv:2012.00560, 2020. \n[2] B. Bartoldson, A. Morcos, A. Barbu, and G. Erlebacher. The generalization-stability tradeoff in neural network pruning. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 20852–20864. Curran Associates, Inc., 2020. \n[3] G. Bellec, D. Kappel, W. Maass, and R. Legenstein. Deep rewiring: Training very sparse deep networks. In International Conference on Learning Representations, 2018. arXiv:1711.05136 (2017). \n[4] T. Brown, B. Mann, N. Ryder, M. Subbiah, J. D. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, S. Agarwal, A. Herbert-Voss, G. Krueger, T. Henighan, R. Child, A. Ramesh, D. Ziegler, J. Wu, C. Winter, C. Hesse, M. Chen, E. Sigler, M. Litwin, S. Gray, B. Chess, J. Clark, C. Berner, S. McCandlish, A. Radford, I. Sutskever, and D. Amodei. Language models are few-shot learners. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 1877–1901. Curran Associates, Inc., 2020. \n[5] T. Chen, J. Frankle, S. Chang, S. Liu, Y. Zhang, M. Carbin, and Z. Wang. The lottery tickets hypothesis for supervised and self-supervised pre-training in computer vision models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 16306–16316, June 2021. \n[6] P. de Jorge, A. Sanyal, H. Behl, P. Torr, G. Rogez, and P. K. Dokania. Progressive skeletonization: Trimming more fat from a network at initialization. In International Conference on Learning Representations, 2021. arXiv:cs.CV/2006.09081. \n[7] E. Denton, W. Zaremba, J. Bruna, Y. LeCun, and R. Fergus. Exploiting linear structure within convolutional networks for efficient evaluation. Twenty-eighth Conference on Neural Information Processing Systems. arXiv:1404.0736, 2014. \n[8] T. Dettmers and L. Zettlemoyer. Sparse networks from scratch: Faster training without losing performance. arXiv preprint arXiv:1907.04840, 2019. \n[9] U. Evci, T. Gale, J. Menick, P. S. Castro, and E. Elsen. Rigging the lottery: Making all tickets winners. In International Conference on Machine Learning, pages 2943–2952. PMLR, 2020. \n[10] J. Frankle and M. Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In International Conference on Learning Representations, 2019. arXiv:1803.03635. \n[11] J. Frankle, G. K. Dziugaite, D. Roy, and M. Carbin. Pruning neural networks at initialization: Why are we missing the mark? In International Conference on Learning Representations, 2021. arXiv:2009.08576. \n[12] J. Frankle, G. K. Dziugaite, D. M. Roy, and M. Carbin. The lottery ticket hypothesis at scale. arXiv preprint arXiv:1903.01611, 2019. \n[13] T. Gale, E. Elsen, and S. Hooker. The state of sparsity in deep neural networks. arXiv preprint arXiv:1902.09574, 2019. \n[14] T. Gale, M. Zaharia, C. Young, and E. Elsen. Sparse gpu kernels for deep learning. arXiv preprint arXiv:2006.10901, 2020. \n[15] E. García-Martín, C. F. Rodrigues, G. Riley, and H. Grahn. Estimation of energy consumption in machine learning. Journal of Parallel and Distributed Computing, 134:75–88, 2019. \n[16] T. Gebhart, U. Saxena, and P. Schrater. A unified paths perspective for pruning at initialization. arXiv preprint arXiv:2101.10552, 2021. \n[17] J. Guo, Y. Li, W. Lin, Y. Chen, and J. Li. Network decoupling: From regular to depthwise separable convolutions. arXiv preprint arXiv:1808.05517, 2018. \n[18] S. Han, J. Pool, J. Tran, and W. Dally. Learning both weights and connections for efficient neural network. In Advances in neural information processing systems, pages 1135–1143, 2015. \n[19] B. Hassibi and D. G. Stork. Second order derivatives for network pruning: Optimal brain surgeon. Morgan Kaufmann, 1993. \n[20] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770– 778, 2016. \n[21] T. Hoefler, D. Alistarh, T. Ben-Nun, N. Dryden, and A. Peste. Sparsity in deep learning: Pruning and growth for efficient inference and training in neural networks. Journal of Machine Learning Research, 22(241):1–124, 2021. \n[22] I. Hubara, B. Chmiel, M. Island, R. Banner, S. Naor, and D. Soudry. Accelerated sparse neural training: A provable and efficient method to find n: M transposable masks. arXiv preprint arXiv:2102.08124, 2021. \n[23] M. Jaderberg, A. Vedaldi, and A. Zisserman. Speeding up convolutional neural networks with low rank expansions. arXiv preprint arXiv:1405.3866, 2014. \n[24] S. A. Janowsky. Pruning versus clipping in neural networks. Physical Review A, 39(12):6600, 1989. \n[25] S. Jayakumar, R. Pascanu, J. Rae, S. Osindero, and E. Elsen. Top-kast: Top-k always sparse training. Advances in Neural Information Processing Systems, 33:20744–20754, 2020. \n[26] E. R. Kandel, J. H. Schwartz, T. M. Jessell, S. Siegelbaum, A. J. Hudspeth, and S. Mack. Principles of neural science, volume 4. McGraw-hill New York, 2000. \n[27] A. Krizhevsky and G. Hinton. Learning multiple layers of features from tiny images. Master’s thesis, Department of Computer Science, University of Toronto, 2009. \n[28] A. Kusupati, V. Ramanujan, R. Somani, M. Wortsman, P. Jain, S. Kakade, and A. Farhadi. Soft threshold weight reparameterization for learnable sparsity. In International Conference on Machine Learning, pages 5544–5555. PMLR, 2020. \n[29] Y. LeCun, J. S. Denker, and S. A. Solla. Optimal brain damage. In Advances in neural information processing systems, pages 598–605, 1990. \n[30] N. Lee, T. Ajanthan, S. Gould, and P. H. S. Torr. A signal propagation perspective for pruning neural networks at initialization. In International Conference on Learning Representations, 2020. arXiv:1906.06307. \n[31] N. Lee, T. Ajanthan, and P. H. Torr. Snip: Single-shot network pruning based on connection sensitivity. International Conference on Learning Representations, 2018. \n[32] H. Li, A. Kadav, I. Durdanovic, H. Samet, and H. P. Graf. Pruning filters for efficient convnets. International Conference on Learning Representations, 2016. \n[33] T. Lin, S. U. Stich, L. Barba, D. Dmitriev, and M. Jaggi. Dynamic model pruning with feedback. In International Conference on Learning Representations, 2020. \n[34] J. Liu, Z. Xu, R. Shi, R. C. C. Cheung, and H. K. So. Dynamic sparse training: Find efficient sparse network from scratch with trainable masked layers. In International Conference on Learning Representations, 2020. \n[35] S. Liu, D. C. Mocanu, A. R. R. Matavalam, Y. Pei, and M. Pechenizkiy. Sparse evolutionary deep learning with over one million artificial neurons on commodity hardware. Neural Computing and Applications, 33(7):2589–2604, 2021. \n[36] S. Liu, D. C. Mocanu, Y. Pei, and M. Pechenizkiy. Selfish sparse rnn training. In Proceedings of the 39th International Conference on Machine Learning, pages 6893–6904. PMLR, 2021. \n[37] S. Liu, L. Yin, D. C. Mocanu, and M. Pechenizkiy. Do we actually need dense overparameterization? in-time over-parameterization in sparse training. In Proceedings of the 39th International Conference on Machine Learning, pages 6989–7000. PMLR, 2021. \n[38] T. Liu and F. Zenke. Finding trainable sparse networks through neural tangent transfer. In International Conference on Machine Learning, pages 6336–6347. PMLR, 2020. \n[39] Z. Liu, M. Sun, T. Zhou, G. Huang, and T. Darrell. Rethinking the value of network pruning. International Conference on Learning Representations, 2019. \n[40] C. Louizos, M. Welling, and D. P. Kingma. Learning sparse neural networks through l_0 regularization. International Conference on Learning Representations, 2018. \n[41] M. Mahar and V. Cavalli. Intrinsic mechanisms of neuronal axon regeneration. Nature Reviews Neuroscience, 19(6):323–337, 2018. \n[42] D. Mittal, S. Bhardwaj, M. M. Khapra, and B. Ravindran. Recovering from random pruning: On the plasticity of deep convolutional neural networks. In 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 848–857. IEEE, 2018. \n[43] D. C. Mocanu, E. Mocanu, T. Pinto, S. Curci, P. H. Nguyen, M. Gibescu, D. Ernst, and Z. A. Vale. Sparse training theory for scalable and efficient agents. International Conference on Autonomous Agents and Multiagent Systems (AAMAS). arXiv:2103.01636, 2021. \n[44] D. C. Mocanu, E. Mocanu, P. Stone, P. H. Nguyen, M. Gibescu, and A. Liotta. Scalable training of artificial neural networks with adaptive sparse connectivity inspired by network science. Nature communications, 9(1):2383, 2018. \n[45] D. Molchanov, A. Ashukha, and D. Vetrov. Variational dropout sparsifies deep neural networks. In International Conference on Machine Learning, pages 2498–2507. PMLR, 2017. \n[46] P. Molchanov, A. Mallya, S. Tyree, I. Frosio, and J. Kautz. Importance estimation for neural network pruning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11264–11272, 2019. \n[47] P. Molchanov, S. Tyree, T. Karras, T. Aila, and J. Kautz. Pruning convolutional neural networks for resource efficient inference. International Conference on Learning Representations, 2016. \n[48] H. Mostafa and X. Wang. Parameter efficient training of deep convolutional neural networks by dynamic sparse reparameterization. International Conference on Machine Learning, 2019. \n[49] M. C. Mozer and P. Smolensky. Skeletonization: A technique for trimming the fat from a network via relevance assessment. In Advances in neural information processing systems, pages 107–115, 1989. \n[50] M. C. Mozer and P. Smolensky. Using relevance to reduce network size automatically. Connection Science, 1(1):3–16, 1989. \n[51] P. G. Nagappan, H. Chen, and D.-Y. Wang. Neuroregeneration and plasticity: a review of the physiological mechanisms for achieving functional recovery postinjury. Military Medical Research, 7(1):1–16, 2020. \n[52] Nvidia. Nvidia a100 tensor core gpu architecture. https://www.nvidia.com/content/dam/enzz/Solutions/Data-Center/nvidia-ampere-architecture-whitepaper.pdf, 2020. \n[53] D. Patterson, J. Gonzalez, Q. Le, C. Liang, L.-M. Munguia, D. Rothchild, D. So, M. Texier, and J. Dean. Carbon emissions and large neural network training. arXiv preprint arXiv:2104.10350, 2021. \n[54] A. Renda, J. Frankle, and M. Carbin. Comparing rewinding and fine-tuning in neural network pruning. In International Conference on Learning Representations, 2020. arXiv:2003.02389. \n[55] P. Savarese, H. Silva, and M. Maire. Winning the lottery with continuous sparsification. arXiv preprint arXiv:1912.04427, 2019. \n[56] R. Schwartz, J. Dodge, N. A. Smith, and O. Etzioni. Green ai. arXiv preprint arXiv:1907.10597, 2019. \n[57] Y. Shen, L. Shen, H.-Z. Huang, X. Wang, and W. Liu. Cpot: Channel pruning via optimal transport. arXiv preprint arXiv:2005.10451, 2020. \n[58] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. International Conference on Learning Representations, 2014. \n[59] S. P. Singh and D. Alistarh. Woodfisher: Efficient second-order approximation for neural network compression. Advances in Neural Information Processing Systems, 33, 2020. \n[60] S. Srinivas, A. Subramanya, and R. Venkatesh Babu. Training sparse neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 138–145, 2017. \n[61] N. Strom. Scalable distributed dnn training using commodity gpu cloud computing. In Sixteenth Annual Conference of the International Speech Communication Association, 2015. \n[62] E. Strubell, A. Ganesh, and A. McCallum. Energy and policy considerations for deep learning in nlp. arXiv preprint arXiv:1906.02243, 2019. \n[63] H. Tanaka, D. Kunin, D. L. Yamins, and S. Ganguli. Pruning neural networks without any data by iteratively conserving synaptic flow. Advances in Neural Information Processing Systems. arXiv:2006.05467, 2020. \n[64] H. Touvron, A. Vedaldi, M. Douze, and H. Jegou. Fixing the train-test resolution discrepancy. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. \n[65] S. Verdenius, M. Stol, and P. Forré. Pruning via iterative ranking of sensitivity statistics. arXiv preprint arXiv:2006.00896, 2020. \n[66] S. Verma and J.-C. Pesquet. Sparsifying networks via subdifferential inclusion. In M. Meila and T. Zhang, editors, Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 10542–10552. PMLR, 18–24 Jul 2021. \n[67] C. Wang, G. Zhang, and R. Grosse. Picking winning tickets before training by preserving gradient flow. In International Conference on Learning Representations, 2020. \n[68] W. Wen, C. Wu, Y. Wang, Y. Chen, and H. Li. Learning structured sparsity in deep neural networks. In D. Lee, M. Sugiyama, U. Luxburg, I. Guyon, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 29. Curran Associates, Inc., 2016. \n[69] M. Wortsman, A. Farhadi, and M. Rastegari. Discovering neural wirings. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. \n[70] X. Xiao, Z. Wang, and S. Rajasekaran. Autoprune: Automatic network pruning by regularizing auxiliary parameters. Advances in neural information processing systems, 32, 2019. \n[71] Y. Xu, Y. Li, S. Zhang, W. Wen, B. Wang, Y. Qi, Y. Chen, W. Lin, and H. Xiong. Trained rank pruning for efficient deep neural networks. arXiv preprint arXiv:1812.02402, 2018. \n[72] D. Yang, A. Ghasemazar, X. Ren, M. Golub, G. Lemieux, and M. Lis. Procrustes: a dataflow and accelerator for sparse deep neural network training. In 2020 53rd Annual IEEE/ACM International Symposium on Microarchitecture (MICRO), pages 711–724. IEEE, 2020. \n[73] G. Yiu and Z. He. Glial inhibition of cns axon regeneration. Nature Reviews Neuroscience, 7(8):617–627, 2006. \n[74] H. You, C. Li, P. Xu, Y. Fu, Y. Wang, X. Chen, R. G. Baraniuk, Z. Wang, and Y. Lin. Drawing early-bird tickets: Towards more efficient training of deep networks. arXiv preprint arXiv:1909.11957, 2019. \n[75] G. Yuan, L. Shen, and W.-S. Zheng. A block decomposition algorithm for sparse optimization. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 275–285, 2020. \n[76] A. Zhou, Y. Ma, J. Zhu, J. Liu, Z. Zhang, K. Yuan, W. Sun, and H. Li. Learning n:m fine-grained structured sparse neural networks from scratch. In International Conference on Learning Representations, 2021. \n[77] M. H. Zhu and S. Gupta. To prune, or not to prune: Exploring the efficacy of pruning for model compression, 2018. ",
|
| 1166 |
+
"bbox": [
|
| 1167 |
+
178,
|
| 1168 |
+
172,
|
| 1169 |
+
826,
|
| 1170 |
+
920
|
| 1171 |
+
],
|
| 1172 |
+
"page_idx": 10
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"type": "text",
|
| 1176 |
+
"text": "",
|
| 1177 |
+
"bbox": [
|
| 1178 |
+
171,
|
| 1179 |
+
58,
|
| 1180 |
+
828,
|
| 1181 |
+
911
|
| 1182 |
+
],
|
| 1183 |
+
"page_idx": 11
|
| 1184 |
+
},
|
| 1185 |
+
{
|
| 1186 |
+
"type": "text",
|
| 1187 |
+
"text": "",
|
| 1188 |
+
"bbox": [
|
| 1189 |
+
171,
|
| 1190 |
+
69,
|
| 1191 |
+
828,
|
| 1192 |
+
916
|
| 1193 |
+
],
|
| 1194 |
+
"page_idx": 12
|
| 1195 |
+
},
|
| 1196 |
+
{
|
| 1197 |
+
"type": "text",
|
| 1198 |
+
"text": "",
|
| 1199 |
+
"bbox": [
|
| 1200 |
+
171,
|
| 1201 |
+
45,
|
| 1202 |
+
828,
|
| 1203 |
+
912
|
| 1204 |
+
],
|
| 1205 |
+
"page_idx": 13
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"type": "text",
|
| 1209 |
+
"text": "",
|
| 1210 |
+
"bbox": [
|
| 1211 |
+
171,
|
| 1212 |
+
90,
|
| 1213 |
+
828,
|
| 1214 |
+
313
|
| 1215 |
+
],
|
| 1216 |
+
"page_idx": 14
|
| 1217 |
+
}
|
| 1218 |
+
]
|
parse/train/MNVjrDpu6Yo/MNVjrDpu6Yo_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/MNVjrDpu6Yo/MNVjrDpu6Yo_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJxzPsAqFQ/SJxzPsAqFQ.md
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MULTI-TURN DIALOGUE RESPONSE GENERATION IN AN ADVERSARIAL LEARNING FRAMEWORK
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
We propose an adversarial learning approach to the generation of multi-turn dialogue responses. Our proposed framework, hredGAN, is based on conditional generative adversarial networks (GANs). The GAN’s generator is a modified hierarchical recurrent encoder-decoder network (HRED) and the discriminator is a word-level bidirectional RNN that shares context and word embedding with the generator. During inference, noise samples conditioned on the dialogue history are used to perturb the generator’s latent space to generate several possible responses. The final response is the one ranked best by the discriminator. The hredGAN shows major advantages over existing methods: (1) it generalizes better than networks trained using only the log-likelihood criterion, and (2) it generates longer, more informative and more diverse responses with high utterance and topic relevance even with limited training data. This superiority is demonstrated on the Movie triples and Ubuntu dialogue datasets with both the automatic and human evaluations.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Recent advances in deep neural network architectures have enabled tremendous success on a number of difficult machine learning problems. While these results are impressive, producing a deployable neural network–based conversation model that can engage in open domain discussion still remains elusive. A dialogue system needs to be able to generate meaningful and diverse responses that are simultaneously coherent with the input utterance and the overall dialogue topic. Unfortunately, earlier conversation models trained with naturalistic dialogue data suffered greatly from limited contextual information (Sutskever et al., 2014; Vinyals & Le, 2015), and lack diversity (Li et al., 2016a). These problems often leads to generic and safe utterance in response to varieties of input utterance.
|
| 12 |
+
|
| 13 |
+
Serban et al. (2016) and Xing et al. (2017) proposed the Hierarchical Recurrent Encoder-Decoder (HRED) network to capture long temporal dependencies in multi-turn conversations to address the limited contextual information but the diversity problem remained. On the other hand, some HRED variants such as variational (Serban et al., 2017b) and multi-resolution (Serban et al., 2017a) HREDs attempt to alleviate the diversity problem by injecting noise at the utterance level and by extracting additional context to condition the generator on. While these approaches achieve certain measures of success over the basic HRED, generated responses are still mostly generic since they do not control the generator’s output as the output conditional distribution is not calibrated. Li et al. (2016a), on the other hand, consider diversity promoting training objective but their model is for single turn conversations, cannot not be trained end-to-end and therefore achieves little.
|
| 14 |
+
|
| 15 |
+
The generative adversarial network (GAN) (Goodfellow et al., 2014) seems to be an appropriate solution to the diversity problem. GAN matches data from two different distributions by introducing an adversarial game between a generator and a discriminator. We explore hredGAN: conditional GANs for multi-turn dialogue models with HRED generator and discriminator. hredGAN combines both generative and retrieval-based multi-turn dialogue systems to improve their individual performances. This is achieved by sharing the context and word embedding between the generator and the discriminator allowing for joint end-to-end training using back-propagation. To the best of our knowledge, no existing work has applied conditional GANs to multi-turn dialogue models and especially with HRED generators and discriminators. We demonstrate the effectiveness of hredGAN over the VHRED for dialogue modeling with evaluations on the Movie triples and Ubuntu technical support datasets.
|
| 16 |
+
|
| 17 |
+
# 2 ADVERSARIAL FRAMEWORK FOR MULTI-TURN DIALOGUE
|
| 18 |
+
|
| 19 |
+
Consider a dialogue consisting of a sequence of $N$ utterances, $\pmb { X } = \left( X _ { 1 } , X _ { 2 } , \cdots , X _ { N } \right)$ , where each utterance $X _ { i } ~ = ~ \left( X _ { i } ^ { 1 } , X _ { i } ^ { 2 } , \cdot \cdot \cdot , X _ { i } ^ { M _ { i } } \right)$ contains a variable-length sequence of $M _ { i }$ word tokens such that $X _ { i } ^ { \mathcal { j } } ~ \in ~ V$ for vocabulary $V$ . At any time step $i$ , the dialogue history is given by $\boldsymbol { X _ { i } } = \left( X _ { 1 } , X _ { 2 } , \cdot \cdot \cdot , X _ { i } \right)$ . The dialogue response generation task can be defined as follows: Given a dialogue history $X _ { i }$ , generate a response $Y _ { i } = \left( Y _ { i } ^ { 1 } , Y _ { i } ^ { 2 } , \cdots , Y _ { i } ^ { T _ { i } } \right)$ , where $T _ { i }$ is the number of generated tokens. We also want the distribution of the generated response $P ( Y _ { i } )$ to be indistinguishable from that of the ground truth $P ( X _ { i + 1 } )$ and $T _ { i } = M _ { i + 1 }$ . Conditional GAN learns a mapping from an observed dialogue history, $X _ { i }$ , and a sequence of random noise vectors, $Z _ { i }$ to a sequence of output tokens, $Y _ { i }$ , $G : \{ X _ { i } , Z _ { i } \} Y _ { i }$ . The generator $G$ is trained to produce output sequences that cannot be distinguished from the ground truth sequence by an adversarially trained discriminator $D$ that is trained to do well at detecting generator’s fakes. The distribution of the generator output sequence can be factored by the product rule:
|
| 20 |
+
|
| 21 |
+
$$
|
| 22 |
+
\begin{array} { r } { P ( Y _ { i } | \boldsymbol { X _ { i } } ) = P ( Y _ { i } ^ { 1 } ) \displaystyle \prod _ { j = 2 } ^ { T _ { i } } P \big ( Y _ { i } ^ { j } | Y _ { i } ^ { 1 } , \cdot \cdot \cdot , Y _ { i } ^ { j - 1 } , \pmb { X _ { i } } \big ) } \\ { P \big ( Y _ { i } ^ { j } | Y _ { i } ^ { 1 } , \cdot \cdot \cdot , Y _ { i } ^ { j - 1 } , \pmb { X _ { i } } \big ) = P _ { \theta _ { G } } \big ( Y _ { i } ^ { 1 : j - 1 } , \pmb { X _ { i } } \big ) } \end{array}
|
| 23 |
+
$$
|
| 24 |
+
|
| 25 |
+
where Y i:j−1 $\begin{array} { r c l } { Y _ { i } ^ { i : j - 1 } } & { = } & { ( Y _ { i } ^ { 1 } , \cdot \cdot \cdot , Y _ { i } ^ { j - 1 } ) } \end{array}$ and $\theta _ { G }$ are the parameters of the generator model. $P _ { \theta _ { G } } \left( Y _ { i } ^ { i : j - 1 } , X _ { i } \right)$ is an autoregressive generative model where the probability of the current token depends on the past generated sequence. Training the generator $G$ with the log-likelihood criterion is unstable in practice, and therefore the past generated sequence is substituted with the ground truth, a method known as teacher forcing (Williams & Zipser, 1989), i.e.,
|
| 26 |
+
|
| 27 |
+
$$
|
| 28 |
+
P \left( Y _ { i } ^ { j } | Y _ { i } ^ { 1 } , \cdot \cdot \cdot , Y _ { i } ^ { j - 1 } , \pmb { X } _ { i } \right) \approx P _ { \theta _ { G } } \left( X _ { i + 1 } ^ { 1 : j - 1 } , \pmb { X } _ { i } \right)
|
| 29 |
+
$$
|
| 30 |
+
|
| 31 |
+
Using equation 3 in relation to GAN, we define our fake sample as the teacher forcing output with some input noise $Z _ { i }$
|
| 32 |
+
|
| 33 |
+
$$
|
| 34 |
+
Y _ { i } ^ { j } \sim P _ { \theta _ { G } } ( X _ { i + 1 } ^ { 1 : j - 1 } , X _ { i } , Z _ { i } )
|
| 35 |
+
$$
|
| 36 |
+
|
| 37 |
+
and the corresponding real sample as ground truth $X _ { i + 1 } ^ { j }$
|
| 38 |
+
|
| 39 |
+
With the GAN objective, we can match the noise distribution, $P ( Z _ { i } )$ to the distribution of the ground truth response, $P ( X _ { i + 1 } | X _ { i } )$ . Varying the noise input then allows us to generate diverse responses to the same dialogue history. Furthermore, the discriminator, since it is calibrated, is used during inference to rank the generated responses, providing a means of controlling the generator output.
|
| 40 |
+
|
| 41 |
+
# 2.1 OBJECTIVES
|
| 42 |
+
|
| 43 |
+
The objective of a conditional GAN can be expressed as
|
| 44 |
+
|
| 45 |
+
$$
|
| 46 |
+
\begin{array} { r l } { \mathcal { L } _ { c G A N } ( G , D ) } & { = \ \mathbb { E } _ { X _ { i } , X _ { i + 1 } } [ \log \ D ( X _ { i + 1 } , X _ { i } ) ] + \mathbb { E } _ { X _ { i } , Z _ { i } } [ 1 - \log D ( G ( X _ { i } , Z _ { i } ) , X _ { i } ) ] } \end{array}
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
where $G$ tries to minimize this objective against an adversarial $D$ that tries to maximize it:
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
G ^ { * } , D ^ { * } = a r g m i n m a x \mathcal { L } _ { c G A N } ( G , D ) .
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
Previous approaches have shown that it is beneficial to mix the GAN objective with a more traditional loss such as cross-entropy loss (Lamb et al., 2016; Li et al., 2017). The discriminator’s job remains unchanged, but the generator is tasked not only to fool the discriminator but also to be near the ground truth $X _ { i + 1 }$ in the cross-entropy sense:
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
\mathcal { L } _ { M L E } ( G ) = \mathbb { E } _ { X _ { i } , X _ { i + 1 } , Z _ { i } } [ - l o g ~ P _ { \theta _ { G } } \left( X _ { i + 1 } , X _ { i } , Z _ { i } \right) ] .
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
Our final objective is,
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
G ^ { * } , D ^ { * } = a r g m i n m a x \left( \lambda _ { G } \mathcal { L } _ { c G A N } ( G , D ) + \lambda _ { M } \mathcal { L } _ { M L E } ( G ) \right) .
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+

|
| 68 |
+
Figure 1: Left: The hredGAN architecture - The generator makes predictions conditioned on the dialogue history, $\boldsymbol { h } _ { i }$ , attention, $A _ { i } ^ { j }$ , noise sample, $Z _ { i } ^ { j }$ , and ground truth, $X _ { i + 1 } ^ { j - 1 }$ . Right: RNN-based discriminator that discriminates bidirectionally at the word level.
|
| 69 |
+
|
| 70 |
+
It is worth mentioning that, without $Z _ { i }$ , the net could still learn a mapping from $X _ { i }$ to $Y _ { i }$ , but would produce deterministic outputs and fail to match any distribution other than a delta function (Isola et al., 2017). This is one key area where our work is different from Lamb et al.’s and Li et al.’s. The schematic of the proposed hredGAN is depicted at the right hand side of Figure 1.
|
| 71 |
+
|
| 72 |
+
# 2.2 GENERATOR
|
| 73 |
+
|
| 74 |
+
We adopted an HRED dialogue generator similar to (Serban et al., 2016; 2017a;b; Xing et al., 2017). The HRED contains three recurrent structures, i.e. the encoder $( e R N N )$ , context $( c R N N )$ , and decoder $( d R N N )$ RNN. The conditional probability modeled by the HRED per output word token is given by
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
P _ { \theta _ { G } } \left( Y _ { i } ^ { j } | X _ { i + 1 } ^ { 1 : j - 1 } , \pmb { X } _ { i } \right) = d R N N \left( E ( X _ { i + 1 } ^ { j - 1 } ) , h _ { i } ^ { j - 1 } , { h _ { i } } \right)
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
where $E ( . )$ is the embedding lookup, $h _ { i } \ = \ c R N N ( e R N N ( E ( X _ { i } ) , h _ { i - 1 } )$ , $e R N N ( . )$ maps a sequence of input symbols into fixed-length vector, and $h$ and $^ { h }$ are the hidden states of the decoder and context RNN, respectively.
|
| 81 |
+
|
| 82 |
+
In the multi-resolution HRED, (Serban et al., 2017a), high-level tokens are extracted and processed by another RNN to improve performance. We circumvent the need for this extra processing by allowing the decoder to attend to different parts of the input utterance during response generation (Bahdanau et al., 2015; Luong et al., 2015). We introduce a local attention into equation 9 and encode the attention memory differently from the context through an attention encoder RNN $( a R N N )$ , yielding:
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
P _ { \theta _ { G } } \left( Y _ { i } ^ { j } | X _ { i + 1 } ^ { 1 : j - 1 } , X _ { i } \right) = d R N N \big ( E ( X _ { i + 1 } ^ { j - 1 } ) , h _ { i } ^ { j - 1 } , A _ { i } ^ { j } , h _ { i } \big )
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
where $\begin{array} { r } { A _ { i } ^ { j } = \sum _ { m = 1 } ^ { M _ { i } } \frac { e x p ( \alpha _ { m } ) } { \sum _ { m = 1 } ^ { M _ { i } } e x p ( \alpha _ { m } ) } h _ { i } ^ { ' m } } \end{array}$ h 0 m , $h _ { i } ^ { ' m } = a R N N ( E ( X _ { i } ^ { m } ) , h _ { i } ^ { ' m - 1 } ) , h ^ { ' }$ is the hidden state of the attention RNN and $\alpha _ { k }$ is either a logit projection of $( h _ { i } ^ { j - 1 } , h _ { i } ^ { ' m } )$ in the case of Bahdanau et al. (2015) or $( h _ { i } ^ { j - 1 } ) ^ { T } \cdot h _ { i } ^ { ' m }$ in the case of Luong et al. (2015). The modified HRED architecture is shown in Figure 2.
|
| 89 |
+
|
| 90 |
+
Noise Injection: We inject Gaussian noise at the input of the decoder RNN. Noise samples could be injected at the utterance or word level. With noise injection, the conditional probability of the decoder output becomes
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
P _ { \theta _ { G } } \left( Y _ { i } ^ { j } | X _ { i + 1 } ^ { 1 : j - 1 } , Z _ { i } ^ { j } , \boldsymbol { X } _ { i } \right) = d R N N \left( E ( X _ { i + 1 } ^ { j - 1 } ) , h _ { i } ^ { j - 1 } , A _ { i } ^ { j } , Z _ { i } ^ { j } , h _ { i } \right)
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
where $Z _ { i } ^ { j } \sim \mathcal { N } _ { i } ( 0 , I )$ , for utterance-level noise and $Z _ { i } ^ { j } \sim \mathcal { N } _ { i } ^ { j } ( 0 , I )$ , for word-level noise.
|
| 97 |
+
|
| 98 |
+
# 2.3 DISCRIMINATOR
|
| 99 |
+
|
| 100 |
+
The discriminator shares context and word embedding with the generator and can discriminate at the word level (Lamb et al., 2016). The word-level discrimination is achieved through a bidirectional RNN and is able to capture both syntactic and conceptual differences between the generator output
|
| 101 |
+
|
| 102 |
+

|
| 103 |
+
Figure 2: The HRED generator with local attention - The attention RNN ensures local relevance while the context RNN ensures global relevance. Their states are combined to initialize the decoder RNN and the discriminator BiRNN.
|
| 104 |
+
|
| 105 |
+
and the ground truth. The aggregate classification of an input sequence, $\chi$ can be factored over word-level discrimination and expressed as
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
D ( X _ { i } , \chi ) = D ( h _ { i } , \chi ) = \bigg [ \prod _ { j = 1 } ^ { J } D _ { R N N } ( h _ { i } , E ( \chi ^ { j } ) ) \bigg ] ^ { \frac { 1 } { J } }
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
where $D _ { R N N } ( . )$ is the word discriminator RNN, $\boldsymbol { h } _ { i }$ is an encoded vector of the dialogue history $X _ { i }$ obtained from the generator’s $c R N N ( . )$ output, and $\chi ^ { j }$ is the jth word or token of the input sequence $\chi$ . $\chi = Y _ { i }$ and $J = T _ { i }$ for the case of generator’s decoder output, $\chi = X _ { i + 1 }$ and $J = M _ { i + 1 }$ for the case of ground truth. The discriminator architecture is depicted on the left hand side of Figure 1.
|
| 112 |
+
|
| 113 |
+
2.4 ADVERSARIAL GENERATION OF MULTI-TURN DIALOGUE RESPONSE
|
| 114 |
+
|
| 115 |
+
In this section, we describe the generation process during inference. The generation objective can be mathematically described as
|
| 116 |
+
|
| 117 |
+
$$
|
| 118 |
+
Y _ { i } ^ { * } = a r g m a x \left\{ P ( Y _ { i , l } | X _ { i } ) + D ^ { * } ( X _ { i } , Y _ { i , l } ) \right\} _ { l = 1 } ^ { L }
|
| 119 |
+
$$
|
| 120 |
+
|
| 121 |
+
where $Y _ { i , l } = G ^ { * } ( X _ { i } , Z _ { i , l } )$ , $Z _ { i , l }$ is the lth noise samples at dialogue step $i$ , and $L$ is the number of response samples. Equation 13 shows that our inference objective is the same as the training objective (8), combining both the MLE and adversarial criteria. This is in contrast to existing work where the discriminator is usually discarded during inference.
|
| 122 |
+
|
| 123 |
+
The inference described by equation 13 is intractable due to the enormous search space of $Y _ { i , l }$ . Therefore, we turn to an approximate solution where we use greedy decoding (MLE) on the first part of the objective function to generate $L$ lists of responses based on noise samples $\{ Z _ { i , l } \} _ { l = 1 } ^ { L }$ . In order to facilitate the exploration of the generator’s latent space, we sample a modified noise distribution, $Z _ { i , l } ^ { j } \sim \mathcal { N } _ { i , l } ( 0 , \alpha I )$ , or $Z _ { i , l } ^ { j } \sim \mathcal { N } _ { i , l } ^ { j } ( 0 , \alpha I )$ where $\alpha > 1 . 0$ , is the exploration factor that increases the noise variance. We then rank the $L$ lists using the discriminator score, $\left\{ D _ { . } ^ { * } ( X _ { i } , Y _ { i , l } ) \right\} _ { l = 1 } ^ { L } .$ . The response with the highest discriminator ranking is the optimum response for the dialogue context.
|
| 124 |
+
|
| 125 |
+
# 3 TRAINING OF HREDGAN
|
| 126 |
+
|
| 127 |
+
We trained both the generator and the discriminator simultaneously as highlighted in Algorithm 1 with $\lambda _ { G } = \lambda _ { M } = 1$ . GAN training is prone to instability due to competition between the generator and the discriminator. Therefore, parameter updates are conditioned on the discriminator performance (Lamb et al., 2016).
|
| 128 |
+
|
| 129 |
+
The generator consists of four RNNs with different parameters, that is, $a R N N , e R N N , c R N N$ and dRNN. aRNN and eRNN are both bidirectional, while $c R N N$ and dRNN are unidirec
|
| 130 |
+
|
| 131 |
+
# Algorithm 1 Adversarial Learning of hredGAN
|
| 132 |
+
|
| 133 |
+
Require: A generator $G$ with parameters $\theta _ { G }$ .
|
| 134 |
+
Require: A discriminator $D$ with parameters $\theta _ { D }$ . for number of training iterations do Initialize $c R N N$ to zero state, $\scriptstyle h _ { 0 }$ 0Sample a mini-batch of conversations, $\pmb { X } = \{ X _ { i } \} _ { i = 1 } ^ { N }$ , $\pmb { X _ { i } } = \left( X _ { 1 } , X _ { 2 } , \cdot \cdot \cdot , X _ { i } \right)$ with $N$ utterances. Each utterance mini batch $_ i$ contains $M _ { i }$ word tokens. for $i = 1$ to $N - 1$ do Update the context state. $\begin{array} { r } { \dot { \pmb { h _ { i } } } = c R N N ( e R N N ( E ( X _ { i } ) ) , \pmb { h _ { i - 1 } } ) } \end{array}$ $P _ { \theta _ { G } } \left( Y _ { i } | , Z _ { i } , \boldsymbol { X } _ { i } \right) = \left\{ P _ { \theta _ { G } } \left( Y _ { i } ^ { j } | \boldsymbol { X } _ { i + 1 } ^ { 1 : j - 1 } , Z _ { i } ^ { j } , \boldsymbol { X } _ { i } \right) \right\} _ { j = 1 } ^ { M _ { i + 1 } }$ $Y _ { i }$ $Y _ { i } \stackrel { \cdot } { \sim } P _ { \theta _ { G } } ( Y _ { i } | , Z _ { i } , \stackrel { \cdot } { X } _ { i } )$ end forCompute the discriminator accuracy $D _ { a c c }$ over $N - 1$ utterances $\{ Y _ { i } \} _ { i = 1 } ^ { N - 1 }$ 1 nd {Xi+1}N−1i=1 a Update $\theta _ { D }$ with gradient of the discriminator loss. $\underset { i } { \overset { \cdot } { \sum } } [ \nabla _ { \theta _ { D } } \log \bar { D ( } h _ { i } , X _ { i + 1 } ) + \nabla _ { \theta _ { D } } l o g \big ( 1 - D ( h _ { i } , Y _ { i } ) \big ) ]$ end if if $D _ { a c c } < a c c _ { G _ { t h } }$ Update $\begin{array} { r } { { \prec } \ { a c c } _ { G _ { t } } } \\ { \ \mathrm { e } \ \theta _ { G } \ \mathrm { w i t } } \end{array}$ with the generator’s MLE loss only. then $\underset { i } { \mathop { \sum } } [ \nabla _ { \theta _ { G } } \log P _ { \theta _ { G } } ( Y _ { i } | , Z _ { i } , \mathbf { X } _ { i } ) ]$ else Update $\theta _ { G }$ with both adversarial and MLE losses. $\sum _ { i } [ \lambda _ { G } \nabla _ { \theta _ { G } }$ log $D ( h _ { i } , Y _ { i } ) + \lambda _ { M } \nabla _ { \theta _ { G } }$ l $\arg P _ { \theta _ { G } } ( Y _ { i } | , Z _ { i } , X _ { i } ) ]$ end if end for
|
| 135 |
+
|
| 136 |
+
tional. Each RNN has 3 layers, and the hidden state size is 512. The dRNN and $a R N N$ are connected using an additive attention mechanism (Bahdanau et al., 2015).
|
| 137 |
+
|
| 138 |
+
The discriminator shares $a R N N , e R N N$ , and $c R N N$ with the generator. $D _ { R N N }$ , is a stacked bidirectional RNN with 3 layers and a hidden state size of 512. The $c R N N$ states are used to initialize the states of $D _ { R N N }$ . The output of both the forward and the backward cells for each word are concatenated and passed to a fully-connected layer with binary output. The output is the probability that the word is from the ground truth given the past and future words of the sequence.
|
| 139 |
+
|
| 140 |
+
Others: All RNNs used are gated recurrent unit (GRU) cells (Cho et al., 2014). The word embedding size is 512 and shared between the generator and the discriminator. The initial learning rate is 0.5 with decay rate factor of 0.99, applied when the adversarial loss has increased over two iterations. We use a batch size of 64 and clip gradients around 5.0. As in Lamb et al. (2016), we find $a c c _ { D _ { t h } } = 0 . 9 9$ and $a c c _ { G _ { t h } } = 0 . 7 5$ to be good enough. All parameters are initialized with Xavier uniform random initialization (Glorot & Bengio, 2010). The vocabulary size $V$ is 50, 000. Due to the large vocabulary size, we use sampled softmax loss (Jean et al., 2015) for MLE loss to expedite the training process. However, we use full softmax for evaluation. The model is trained end-to-end using the stochastic gradient descent algorithm.
|
| 141 |
+
|
| 142 |
+
# 4 EXPERIMENTS AND RESULTS
|
| 143 |
+
|
| 144 |
+
We consider the task of generating dialogue responses conditioned on the dialogue history and the current input utterance. We compare the proposed hredGAN model against some alternatives on publicly available datasets.
|
| 145 |
+
|
| 146 |
+
# 4.1 DATASETS
|
| 147 |
+
|
| 148 |
+
Movie Triples Corpus, (MTC) dataset (Serban et al., 2016). This dataset was derived from the Movie-DiC dataset by Banchs (2012). Although this dataset spans a wide range of topics with few spelling mistakes, its small size of only about 240,000 dialogue triples makes it difficult to train a dialogue model, as pointed out by Serban et al. (2016). We thought that this scenario would really benefit from the proposed adversarial generation.
|
| 149 |
+
|
| 150 |
+
Ubuntu Dialogue Corpus, (UDC) dataset (Serban et al., 2017b). This dataset was extracted from the Ubuntu Relay Chat Channel. Although the topics in the dataset are not as diverse as in the MTC, the dataset is very large, containing about 1.85 million conversations with an average of 5 utterances per conversation.
|
| 151 |
+
|
| 152 |
+
We split both MTC and UDC into training, validation, and test sets, using $90 \%$ , $5 \%$ , and $5 \%$ proportions, respectively. We performed minimal preprocessing of the datasets by replacing all words except the top 50,000 most frequent words by an UNK symbol.
|
| 153 |
+
|
| 154 |
+
# 4.2 EVALUATION METRICS
|
| 155 |
+
|
| 156 |
+
Accurate evaluation of dialogue models is still an open challenge. In this paper, we employ both automatic and human evaluations.
|
| 157 |
+
|
| 158 |
+
# 4.2.1 AUTOMATIC EVALUATION
|
| 159 |
+
|
| 160 |
+
We employed some of the automatic evaluation metrics that are used in probabilistic language and dialogue models, and statistical machine translation. Although these metrics may not correlate well with human judgment of dialogue responses (Liu et al., 2016), they provide a good baseline for comparing dialogue model performance.
|
| 161 |
+
|
| 162 |
+
Perplexity - For a model with parameter $\theta$ , we define perplexity as:
|
| 163 |
+
|
| 164 |
+
$$
|
| 165 |
+
e x p \bigg [ - \frac { 1 } { N _ { W } } \sum _ { k = 1 } ^ { K } l o g P _ { \theta } ( Y _ { 1 } , Y _ { 2 } , \ldots , Y _ { N _ { k } - 1 } ) \bigg ]
|
| 166 |
+
$$
|
| 167 |
+
|
| 168 |
+
where $K$ is the number of conversations in the dataset, $N _ { k }$ is the number of utterances in conversation $k$ , and $N _ { W }$ is the total number of word tokens in the entire dataset. The lower the perplexity, the better. The perplexity measures the likelihood of generating the ground truth given the model parameters. While a generative model can generate a diversity of responses, it should still assign a high probability to the ground truth utterance.
|
| 169 |
+
|
| 170 |
+
BLEU - The BLEU score, (Papineni et al., 2002) provides a measure of overlap between the generated response (candidate) and the ground truth (reference) using a modified n-gram precision. According to Liu et. al. (Liu et al., 2016), BLEU-2 score is fairly correlated with human judgment for non-technical dialogue (such as MTC).
|
| 171 |
+
|
| 172 |
+
ROUGE - The ROUGE score, (Lin, 2014) is similar to BLEU but it is recall oriented instead. It is used for automatic evaluation of text summarization and machine translation. To compliment the BLEU score, we use ROUGE-N with $N = 2$ for our evaluation.
|
| 173 |
+
|
| 174 |
+
Distinct n-gram - This is the fraction of unique n-grams in the generated responses. It provides a measure of diversity. Models with higher number of distinct n-grams tend to produce more diverse responses (Li et al., 2016a). For our evaluation, we use 1- and 2- grams.
|
| 175 |
+
|
| 176 |
+
Normalized Average Sequence Length (NASL) - This measures the average number of words in model generated responses normalized by the average number of words in the groundtruth.
|
| 177 |
+
|
| 178 |
+
# 4.2.2 HUMAN EVALUATION
|
| 179 |
+
|
| 180 |
+
For human evaluation, we follow a similar setup as Li et al. (2016a), employing crowd-sourced judges to evaluate a random selection of 200 samples. We present both the multi-turn context and the generated responses from the models to 3 judges and asked them to rank the general response quality in terms of relevance and informativeness. For $N$ models, the model with the lowest quality is assigned a score 0 and the highest is assigned a score N-1. Ties are not allowed. The scores are normalized between 0 and 1 and averaged over the total number of samples and judges.
|
| 181 |
+
|
| 182 |
+
# 4.3 BASELINE
|
| 183 |
+
|
| 184 |
+
We compare the performance of our model to (V)HRED (Serban et al., 2016; 2017b), since they are the closest to our approach in implementation and are the current state of the art in open-domain dialogue models. HRED is very similar to our proposed generator, but without the input utterance attention and noise samples. VHRED introduces a latent variable to the HRED between the $c R N N$ and the dRNN and was trained using the variational lower bound on the log-likelihood.
|
| 185 |
+
|
| 186 |
+
Table 1: Generator Performance Evaluation
|
| 187 |
+
|
| 188 |
+
<table><tr><td rowspan="2">Model</td><td colspan="2">Teacher Forcing</td><td colspan="4">Autoregression</td><td rowspan="2">Human Evaluation</td></tr><tr><td>Perplexity</td><td>-logD(G(.))</td><td>BLEU-2</td><td>ROUGE-2</td><td>DISTINCT-1/2</td><td>NASL1</td></tr><tr><td>MTC</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>HRED</td><td>31.92/36.00</td><td>NA</td><td>0.0474</td><td>0.0384</td><td>0.0026/0.0056</td><td>0.535</td><td>0.2560</td></tr><tr><td>VHRED</td><td>42.61/44.97</td><td>NA</td><td>0.0606</td><td>0.1181</td><td>0.0048/0.0163</td><td>0.831</td><td>0.3909</td></tr><tr><td>hredGAN_u</td><td>23.57/23.54</td><td>23.57/23.54</td><td>0.0493</td><td>0.2416</td><td>0.0167/0.1306</td><td>0.884</td><td>0.5582</td></tr><tr><td>hredGAN_w</td><td>24.20/24.14</td><td>13.35/13.40</td><td>0.0613</td><td>0.3244</td><td>0.0179/0.1720</td><td>1.540</td><td>0.7869</td></tr><tr><td>UDC</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>HRED</td><td>69.39/86.40</td><td>NA</td><td>0.0177</td><td>0.0483</td><td>0.0203/0.0466</td><td>0.892</td><td>0.3475</td></tr><tr><td>VHRED</td><td>98.50/105.20</td><td>NA</td><td>0.0171</td><td>0.0855</td><td>0.0297/0.0890</td><td>0.873</td><td>0.4046</td></tr><tr><td>hredGAN_u</td><td>56.82/57.32</td><td>10.09/10.08</td><td>0.0137</td><td>0.0716</td><td>0.0260/0.0847</td><td>1.379</td><td>0.6133</td></tr><tr><td>hredGAN_w</td><td>47.73/48.18</td><td>8.37/8.36</td><td>0.0216</td><td>0.1168</td><td>0.0516/0.1821</td><td>1.098</td><td>0.6905</td></tr></table>
|
| 189 |
+
|
| 190 |
+
The VHRED can generate multiple responses per context like hredGAN, but has no specific criteria for selecting the best response.
|
| 191 |
+
|
| 192 |
+
The HRED and VHRED models are both trained using the Theano-based implementation obtained from https://github.com/julianser/hed-dlg-truncated. The training and validation sets used for UDC and MTC dataset were obtained directly from the authors1 of (V)HRED. For model comparison, we use a test set that is disjoint from the training and validation sets.
|
| 193 |
+
|
| 194 |
+
# 4.4 RESULTS
|
| 195 |
+
|
| 196 |
+
We have two variants of hredGAN based on the noise injection approach, i.e., hredGAN with utterance-level (hredGAN u) and word-level (hredGAN w) noise injections.
|
| 197 |
+
|
| 198 |
+
We compare the performance of these two variants with HRED and VHRED models.
|
| 199 |
+
|
| 200 |
+
Perplexity: The average perplexity per word performance of all the four models on MTC and UDC datasets (validation/test) are reported in the first column on Table 1. The table indicates that both variants of the hredGAN model perform better than the HRED and VHRED models in terms of the perplexity measure. However, using the adversarial loss criterion (Eq. equation 8), the hredGAN u model performs better on MTC and worse on UDC. Note that, for this experiment, we run all models in teacher forcing mode.
|
| 201 |
+
|
| 202 |
+
Generation Hyperparameter: For adversarial generation, we perform a linear search for $\alpha$ between 1 and 20 at an increment of 1 using Eq. equation 13, with sample size $L = 6 4$ , on validation sets with models run in autoregression. The optimum values of $\alpha$ for hredGAN u and hredGAN w for UDC are 7.0 and 9.0 respectively. The values for MTC are not convex, probably due to small size of the dataset, so we use the same $\alpha$ values as UDC. We however note that for both datasets, any integer value between 3 and 10 (inclusive) works well in practice.
|
| 203 |
+
|
| 204 |
+
Quantitative Generator Performance: We run autoregressive inference for all the models (using optimum $\alpha$ values for hredGAN models and selecting the best of $L = 6 4$ responses using a discriminator) with dialogue contexts from a unique test set. Also, we compute the average BLEU-2, ROUGE-2(f1), Distinct(1/2) and normalized average sequence length (NASL) scores for each model and summarize the results in the middle of Table 1. Distinct(1/2) largely agrees with the perplexity score. Most scores, similar to the perplexity, indicate that hredGAN models perform better than (V)HRED on both datasets. However, on the UDC and MTC, ROUGE and BLUE, respectively scores VHRED slightly better than hredGAN u but still worse than hredGAN w.
|
| 205 |
+
|
| 206 |
+
A good dialogue model should find the right balance between precision (BLEU) and diversity. We strongly believe that our adversarial approach is better suited to solving this problem. As hredGAN generators explore diversity, the discriminator ranking gives hredGAN an edge over (V)HRED because it helps detect responses that are out of context and the natural language structure (Table 2). Also, the ROGUE(f1) performance indicates that hredGAN w strikes a better balance between precision (BLEU) and diversity than the rest of the models. This is also obvious from the quality of generated responses.
|
| 207 |
+
|
| 208 |
+
Table 2: Example of Discriminator Ranking with hredGAN w
|
| 209 |
+
|
| 210 |
+
<table><tr><td>Item</td><td>D(G(.))</td><td>Utterance</td></tr><tr><td colspan="3">MTC</td></tr><tr><td>Context_0</td><td>NA</td><td>perhaps <person> had a word with the man upstairs.</td></tr><tr><td>Context_1</td><td>NA</td><td>a word ?i’m sure by now he’s engineered a hostile takeover .</td></tr><tr><td>Response_0 0.996</td><td></td><td><person>,i know what you’re saying, <person>,that’s not whati’m saying.</td></tr><tr><td>Response-1 0.991</td><td></td><td><person>,i know .i was just about to help</td></tr><tr><td>Response_2 0.315</td><td></td><td>the guy. <person>,i'm sorry.</td></tr><tr><td>Response_3</td><td>0.203</td><td><person>,i’ma litle out .</td></tr><tr><td>Context_0</td><td>NA</td><td>says he wanted food.<person>.he wanted the gold .</td></tr><tr><td>Context_1</td><td>NA</td><td>how’s he going to want the gold ? he couldn ' t even know we had it.</td></tr><tr><td>Response_0 0.998</td><td></td><td><person>,i know .but it’s not him,it’s the only way he’s got it all figured</td></tr><tr><td>Response_1 0.981</td><td></td><td><person>,i know.but i have to tell you . these things are really stupid and you think i</td></tr><tr><td>Response_2 0.690</td><td></td><td>was wrong ? <person>,i'm sure he did.</td></tr><tr><td>Response-3 0.314</td><td></td><td><person>,i'm not sure</td></tr><tr><td colspan="3">UDC</td></tr><tr><td>Context_0</td><td>NA</td><td>The netboot one is suppose to download pack-</td></tr><tr><td>Context_1</td><td>NA</td><td>ages from the net. like the ones to be installed? or the installed to be run?</td></tr><tr><td>Response_O 0.993</td><td></td><td>you don ’t need to install the whole system , just install the ubuntu installer</td></tr><tr><td>Response-1 0.952</td><td></td><td>you can install the ubuntu installer from the</td></tr><tr><td>Response_2 0.749</td><td></td><td>ubuntu menu I'm not sure ,I don ’t know .</td></tr><tr><td>Response_3</td><td>0.184</td><td>you can</td></tr><tr><td>Response_4</td><td>0.003</td><td>youa. 1.</td></tr><tr><td>Context_0</td><td>NA</td><td>DJones: update manager won't detect 12.04.1 as a new version if you are already running 12.04, because 12.04.1 = 12.04 + lots of pack-</td></tr><tr><td>Response_0 0.991</td><td></td><td>age updates did you try a clean install of the latest version ?</td></tr><tr><td>Response_1 0.981</td><td></td><td>try installing the latest_UNK and see if it works</td></tr><tr><td>Response_2 0.615</td><td></td><td>I’m not sure you have a problem..</td></tr><tr><td>Response_3 0.191</td><td></td><td>try sudo apt-get remove the package that is not</td></tr><tr><td>Response_4 0.002</td><td></td><td>installed try the-UNK.1.1.1.1.1.-UNK.deb</td></tr></table>
|
| 211 |
+
|
| 212 |
+
Table 3: Sample responses of HRED, VHRED and hredGAN.
|
| 213 |
+
|
| 214 |
+
<table><tr><td>Movie</td><td></td></tr><tr><td>Context_0 HRED VHRED</td><td>perhaps <person> had a word with the man upstairs . i'm sorry,<person>. <person<'tdo it. hredGAN_w<person>,i’m not gon na be okay.i just don ’t think it’s a</td></tr><tr><td>Context_1 HRED VHRED</td><td>good idea. hredGAN.u <person>,icause it was allthe way to you. a word ?i'm sure by now he’s engineered a hostile takeover . i'm sorry,<person>. <person>'tdo it.</td></tr><tr><td></td><td>hredGAN_w<person>,i know what you ’re saying,<person>,that’s not whati’m saying. hredGAN_u <person>,i have to tell youi’m not the same.</td></tr><tr><td>Context_0 HRED VHRED</td><td><person>’s. i'm sorry,<person>.</td></tr><tr><td></td><td><person>'tdo it . hredGAN_w <person>,i’m sure it’s the only thing i ever imagined .</td></tr><tr><td></td><td></td></tr><tr><td></td><td>hredGAN_u <person>,i'l be right there .</td></tr><tr><td></td><td></td></tr><tr><td>Context_1</td><td></td></tr><tr><td></td><td>can i ask you something about her ?</td></tr><tr><td>HRED</td><td>idon'tknow .</td></tr><tr><td>VHRED:</td><td>you’re not going to be here .</td></tr><tr><td></td><td>hredGAN_widon’tknow.i thinki’ve heard of it.</td></tr><tr><td></td><td>hredGAN-ui’m sorry,ican 't.</td></tr><tr><td>Ubuntu</td><td></td></tr><tr><td></td><td></td></tr><tr><td>Context_0</td><td>this is Dacs i am in i used 'sudo statx and it let me in</td></tr><tr><td>HRED</td><td>what's the problem ?</td></tr><tr><td>VHRED</td><td>I don't know what you want to do .if you want to do it,you need to</td></tr><tr><td></td><td>do it to do it in the terminal ?</td></tr><tr><td></td><td>hredGAN-w you don’t have to do anything,just type in the terminal and it</td></tr><tr><td></td><td>should be to find the right device</td></tr><tr><td></td><td>hredGAN_u you can have a look at the output of the command .</td></tr><tr><td>Context.1</td><td>good deal... cat /etc/X11/default-display-manager</td></tr><tr><td>HRED</td><td>what's the problem ?</td></tr><tr><td>VHRED</td><td>do you know what you want to do ?</td></tr><tr><td></td><td>hredGAN_w I’m trying to figure a command that I can find to find out the file</td></tr><tr><td></td><td>that Ican find in the file"</td></tr><tr><td></td><td>hredGAN-u Idon 't see the point,but I’m not sure how to do that .</td></tr><tr><td>Context_2</td><td>/usr/sbin/lightdmhttp://paste.ubuntu.com/1286224/</td></tr><tr><td></td><td>/etc/X1/xorg.conf</td></tr><tr><td>HRED</td><td>what 's the problem ?</td></tr><tr><td>VHRED</td><td></td></tr><tr><td></td><td>is there a way to do that in the terminal ?</td></tr><tr><td></td><td>hredGAN_w did you just type\”sudo mount -a\”?</td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td>hredGAN-u i have no idea,i just installed ubuntu and i have no idea how to do</td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td>that</td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr></table>
|
| 215 |
+
|
| 216 |
+
Qualitative Generator Performance: The results of the human evaluation is reported in the last column of Table 1. The human evaluation agrees largely with the automatic evaluation. The hredGAN w performs best on both datasets although the gap is more on the MTC than on the UTC. This implies that the improvement of HRED with adversarial generation is better than with variational generation (VHRED). In addition, looking at the actual samples from the generator outputs in Table 6 shows that hredGAN especially hredGAN w performs better than (V)HRED. While other models produce short and generic utterances, hredGAN w mostly yields informative responses. For example, in the first dialogue in Table 6, when the speaker is sarcastic about ”the man upstairs”, hredGAN w responds with the most coherent utterance with respect to the dialogue history. We see similar behavior across other samples. We also note that although hredGAN u’s responses are the longest on Ubuntu (in line with the NASL score), the responses are less informative compared to hredGAN w resulting into a lower human evaluation score. We reckon this might be due to a mismatch between utterance-level noise and word-level discrimination or lack of capacity to capture the data distribution using single noise distribution. We hope to investigate this further in the future.
|
| 217 |
+
|
| 218 |
+
Discriminator Performance: Although only hredGAN uses a discriminator, the observed discriminator behavior is interesting. We observe that the discriminator score is generally reasonable with longer, more informative and more persona-related responses receiving higher scores as shown in Table 2. It worth to note that this behavior, although similar to the behavior of a human judge is learned without supervision. Moreover, the discriminator seems to have learned to assign average score to more frequent or generic responses such as “I don’t know”, “I’m not sure” and so on, and high score to rearer answers. That’s why we sample a modified noise distribution during inference so that the generator can produce rearer utterances that will be scored high by the discriminator.
|
| 219 |
+
|
| 220 |
+
# 5 CONCLUSION AND FUTURE WORK
|
| 221 |
+
|
| 222 |
+
In this paper, we have introduced an adversarial learning approach that addresses response diversity and control of generator outputs, using an HRED-derived generator and discriminator. The proposed system outperforms existing state-of-the-art (V)HRED models for generating responses in multiturn dialogue with respect to automatic and human evaluations. The superiority of the adversarial generation (hredGAN) over the variational generation (VHRED) is in line with other generative models employing these approaches. Our analysis also concludes that the word-level noise injection seems to perform better in general.
|
| 223 |
+
|
| 224 |
+
While this is a good starting point, we recognize the need to explore further improvements to the proposed adversarial framework: In the future, we hope to: explore which noise level works with which discrimination level; consider a multi-resolution discriminator with combined word- and utterancelevel discriminations; and explore further tuning of the generator and discriminator models.
|
| 225 |
+
|
| 226 |
+
# REFERENCES
|
| 227 |
+
|
| 228 |
+
D. Bahdanau, K. Cho, and Y. Bengio. Neural machine translation by jointly learning to align and translate. In Proceedings of International Conference of Learning Representation (ICLR 2015), 2015.
|
| 229 |
+
R. E. Banchs. Movie-dic: A movie dialogue corpus for research and development. In Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics, pp. 203–207, 2012.
|
| 230 |
+
E. Bruni and R. Fernndez. Adversarial evaluation for open-domain dialogue generation. In Proceedings of the 18th Annual SIGdial Meeting, 2018.
|
| 231 |
+
T. Che, Y. Li, R. Zhang, R. D. Hjelm, W. Li, Y. Song, and Y. Bengio. Maximum-likelihood augmented discrete generative adversarial networks. In arXiv preprint arXiv:1702.07983, 2017.
|
| 232 |
+
K. Cho, B. Merrienboer, C. Gulcehre, D. Bahdanau, F. Bougares, H. Schwenk, and Y. Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. In Proceedings of International Conference of Learning Representation (ICLR 2015), pp. 1724– 1734, 2014.
|
| 233 |
+
X. Glorot and Y. Bengio. Understanding the difficulty of training deep feedforward neural networks. In International conference on artificial intelligence and statistics, 2010.
|
| 234 |
+
I. J. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. In Proceedings of Advances in Neural Information Processing Systems (NIPS 2014), 2014.
|
| 235 |
+
P. Isola, J. Y. Zhu, T. Zhou, and A. A. Efros. Image-to-image translation with conditional adversarial networks. In Conference on Computer Vision and Pattern Recognition (CVPR, 2017), 2017.
|
| 236 |
+
S. Jean, K. Cho, R. Memisevic, and Y. Bengio. On using very large target vocabulary for neural machine translation. In arXiv preprint arXiv:1412.2007, 2015.
|
| 237 |
+
A. Kannan and O. Vinyals. Adversarial evaluation of dialogue models. In arXiv preprint arXiv:1701.08198v1, 2017.
|
| 238 |
+
A. Lamb, A. Goyah, Y. Zhang, S. Zhang, A. Courville, and Y. Bengio. Professor forcing: A new algorithm for training recurrent networks. In Proceedings of Advances in Neural Information Processing Systems (NIPS 2016), 2016.
|
| 239 |
+
J. Li, M. Galley, C. Brockett, J. Gao, and B. Dolan. A diversity-promoting objective function for neural conversation models. In Proceedings of NAACL-HLT, 2016a.
|
| 240 |
+
J. Li, W. Monroe, A. Ritter, M. Galley, J. Gao, and D. Jurafsky. Deep reinforcement learning for dialogue generation. In arXiv preprint arXiv:arXiv:arXiv:1606.01541v4, 2016b.
|
| 241 |
+
J. Li, W. Monroe, T. Shi, A. Ritter, and D. Jurafsky. Adversarial learning for neural dialogue generation. In arXiv preprint arXiv:1701.06547, 2017.
|
| 242 |
+
C. Y. Lin. Rouge: a package for automatic evaluation of summaries. In Proceedings of the Workshop on Text Summarization Branches Out, 2014.
|
| 243 |
+
C. Liu, R. Lowe, I. V. Serban, M. Noseworthy, L. Charlin, and J. Pineau. How not to evaluate your dialogue system: An empirical study of unsupervised evaluation metrics for dialogue response generation. In Proceedings of EMNLP, pp. 2122–2132, 2016.
|
| 244 |
+
M. T. Luong, I. Sutskever, Q. V. Le, O. Vinyals, and W. Zaremba. Addressing the rare word problem in neural machine translation. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics, 2015.
|
| 245 |
+
K. Papineni, S. Roukos, T. Ward, and W. Zhu. Bleu: A method for automatic evalution of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pp. 311–318, 2002.
|
| 246 |
+
I. Serban, A. Sordoni, Y. Bengio, A. Courville, and J. Pineau. Building end-to-end dialogue systems using generative hierarchical neural network models. In Proceedings of The Thirtieth AAAI Conference on Artificial Intelligence (AAAI 2016), pp. 3776–3784, 2016.
|
| 247 |
+
I. V. Serban, T. Klinger, G. Tesauro, K. Talamadupula, B. Zhou, Y. Bengio, and A. Courville. Multiresolution recurrent neural networks: An application to dialogue response generation. In Proceedings of The Thirty-first AAAI Conference on Artificial Intelligence (AAAI 2017), 2017a.
|
| 248 |
+
I. V. Serban, A. Sordoni, R. Lowe, L. Charlin, J. Pineau, A. Courville, and Y. Bengio. A hierarchical latent variable encoder-decoder model for generating dialogue. In Proceedings of The Thirty-first AAAI Conference on Artificial Intelligence (AAAI 2017), 2017b.
|
| 249 |
+
I. Sutskever, O. Vinyals, and Q. Le. Sequence to sequence learning with neural networks. In Proceedings of Advances in Neural Information Processing Systems (NIPS), pp. 3104–3112, 2014.
|
| 250 |
+
O. Vinyals and Q. Le. A neural conversational model. In Proceedings of ICML Deep Learning Workshop, 2015.
|
| 251 |
+
R. J. Williams and D. Zipser. A learning algorithm for continually running fully recurrent neural networks. Neural computation, 1(2):270–280, 1989.
|
| 252 |
+
C. Xing, W. Wu, Y. Wu, M. Zhou, Y. Huang, and W. Ma. Hierarchical recurrent attention network for response generation. In arXiv preprint arXiv:1701.07149, 2017.
|
| 253 |
+
Z. Xu, B. Liu, B. Wang, S. Chengjie, X. Wang, Z. Wang, and C. Qi. Neural response generation via gan with an approximate embedding layer. In EMNLP, 2017.
|
| 254 |
+
L. Yu, W. Zhang, J. Wang, and Y. Yu. Seqgan: sequence generative adversarial nets with policy gradient. In Proceedings of The Thirty-first AAAI Conference on Artificial Intelligence (AAAI 2017), 2017.
|
| 255 |
+
Y. Zhang, Z. Gan, K. Fan, Z. Chen, R. Henao, D. Shen, and L. Carin. Adversarial feature matching for text generation. In arXiv preprint arXiv:1706.03850, 2017.
|
| 256 |
+
Y. Zhang, M. Galley, J. Gao, Z. Gan, X. Li, C. Brockett, and B. Dolan. Generating informative and diverse conversational responses via adversarial information maximization. In arXiv preprint arXiv:arXiv:1809.05972v5, 2018.
|
| 257 |
+
|
| 258 |
+
# APPENDIX
|
| 259 |
+
|
| 260 |
+
# 6 RELATED WORK
|
| 261 |
+
|
| 262 |
+
Our work is related to end-to-end neural network–based open domain dialogue models. Most neural dialogue models use transduction frameworks adapted from neural machine translations (Sutskever et al., 2014; Bahdanau et al., 2015). These $\mathtt { S e q 2 S e q }$ networks are trained end-to-end with MLE criteria using large corpora of human-to-human conversation data. Others use GAN’s discriminator as a reward function in a reinforcement learning framework (Yu et al., 2017) and in conjunction with MLE (Li et al., 2017; Che et al., 2017). Zhang et al. (2017) explored the idea of GAN with a feature matching criterion. Xu et al. (2017) and Zhang et al. (2018) employed GAN with an approximate embedding layer as well as with adversarial information maximization respectively to improve Seq2Seq’s diversity performance.
|
| 263 |
+
|
| 264 |
+
Still, $\mathtt { S e q 2 S e q }$ models are limited in their ability to capture long temporal dependencies in multiturn conversation. Although, Li et al. (2016b) attempted to optimize a pair Seq2Seq models for multi-turn dialogue, the multi-turn objective is only applied at inference and not used for actual model training. Hence, the introduction of HRED models (Serban et al., 2016; 2017a;b; Xing et al., 2017) for modeling dialogue response in multi-turn conversations. However, these HRED models suffer from lack of diversity since they are trained with only MLE criteria. On other hand, adversarial system has been used for evaluating open domain dialogue models (Bruni & Fernndez, 2018; Kannan & Vinyals, 2017). Our work, hredGAN is closest to the combination of HRED generation models (Serban et al., 2016) and adversarial evaluation (Kannan & Vinyals, 2017).
|
| 265 |
+
|
| 266 |
+
Table 4: Generator Performance: HRED vs. HRED $^ +$ Attn
|
| 267 |
+
|
| 268 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Teacher Forcing Perplexity</td><td colspan="4">Autoregression</td></tr><tr><td>BLEU-2</td><td>ROUGE-2</td><td>DISTINCT-1/2</td><td>NASL</td></tr><tr><td>MTC HRED</td><td>31.92/36.00</td><td></td><td></td><td></td><td></td></tr><tr><td>HRED+Attn</td><td>26.09/26.41</td><td>0.0474 0.0425</td><td>0.0384</td><td>0.0026/0.0056</td><td>0.535</td></tr><tr><td></td><td></td><td></td><td>0.2239</td><td>0.0397/0.1567</td><td>0.527</td></tr><tr><td>UDC</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>HRED</td><td>69.39/86.40</td><td>0.0177</td><td>0.0483</td><td>0.0203/0.0466</td><td>0.892</td></tr><tr><td>HRED+Attn</td><td>50.82/51.31</td><td>0.0140</td><td>0.0720</td><td>0.0473/0.1262</td><td>0.760</td></tr></table>
|
| 269 |
+
|
| 270 |
+
# 7 ABLATION EXPERIMENTS
|
| 271 |
+
|
| 272 |
+
Before proposing the above adversarial learning framework for multi-turn dialogue, we carried out some experiments that are highlighted here.
|
| 273 |
+
|
| 274 |
+
# 7.1 GENERATOR:
|
| 275 |
+
|
| 276 |
+
First, we noted that by adding an additional attention memory to the HRED generator, we improved the test set perplexity score by more than 8 and 20 points on the MTC and UDC respectively as shown in Table 4. The addition of attention also shows a strong performance at autoregressive inference across multiple metrics as well as observed improvement in response quality. Hence, the decision for the modified HRED generator.
|
| 277 |
+
|
| 278 |
+
The adversarial training, however helps to address the lack diversity observed in the generated responses.
|
| 279 |
+
|
| 280 |
+
# 7.2 DISCRIMINATOR:
|
| 281 |
+
|
| 282 |
+
Before deciding on the word-level discrimination, we experimented with utterance-level discrimination. The utterance-level discriminator trains very quickly but it leads to mostly generic responses from the generator. We also note that utterance-level discriminator scores are mostly extreme (i.e.,
|
| 283 |
+
|
| 284 |
+
either low or high). Since we had used convolutional neural network discriminator (Yu et al., 2017) in our experiments, we hope to investigate this further with other architectures.
|
| 285 |
+
|
| 286 |
+
# 7.3 ADVERSARIAL TRAINING:
|
| 287 |
+
|
| 288 |
+
Lastly, we also tried a basic policy gradient approach (Li et al., 2017), where word-level discriminator score is used as a reward for each generated word token, but this leads to training instability. This is probably due to the instability of Monte Carlo sampling over large vocabulary size. We believe this might improve with other sampling methods such as importance sampling and hope to investigate further in the future.
|
| 289 |
+
|
| 290 |
+
# 8 OTHER GENERATED SAMPLES
|
| 291 |
+
|
| 292 |
+
Table 5: Additional sample responses of HRED, VHRED and hredGAN on Movie.
|
| 293 |
+
|
| 294 |
+
<table><tr><td>Movie</td><td></td></tr><tr><td>Context.0 HRED</td><td><person>i've raised my rate.imight even cut my sessions to forty minutes </td></tr><tr><td>VHRED</td><td>i’m sorry,<person>. <person>,<person>,<person>,<person></td></tr><tr><td>hredGAN_w</td><td><person>,i’m sorry,buti’m not sure if you’re really a very good guy</td></tr><tr><td>hredGAN-u</td><td>i' ll never see them again,<person>.</td></tr><tr><td></td><td>i'm going to handle this exactly the way your father would have handled this .i’ve got it solved .</td></tr><tr><td>Context_0 Context.1</td><td>you’ve got it solved ?where is she ?</td></tr><tr><td>HRED</td><td>idon't know.</td></tr><tr><td>VHRED</td><td><person>,,i’m sorry.</td></tr><tr><td>hredGAN_w</td><td>to the end of äabeautiful woman who willbe very happy.</td></tr><tr><td>hredGAN_u</td><td>i'm sorry,ijust didn ’t know-</td></tr><tr><td>Context_0</td><td>ofcoursenot!jperson’slikeadaughtertome.herfatheranditaughtatuniversitytogetheragoodman,butheneverlistened.</td></tr><tr><td>HRED</td><td>i'm sorry,<person>.</td></tr><tr><td>VHRED hredGAN-w</td><td><person>,mr.<person>.</td></tr><tr><td>hredGAN-u</td><td><person>,i know it’s beenallsix years sinceitold himabout you. i'm sure you didn’t,buti would have donealitle more.</td></tr><tr><td></td><td></td></tr><tr><td>Context_0 Context_1</td><td>ofcourse not!iperson’slikeadaughtertome.erfatheranditaughtatuniversitytogether.agoodman,buthe neverlistened.</td></tr><tr><td>HRED</td><td>neither did i. i'm sorry,,<person>.</td></tr><tr><td>VHRED</td><td><person>,you'rea<unk>.</td></tr><tr><td>hredGAN-w</td><td><person>,i know you’re think about it. think it'I be time,right ?</td></tr><tr><td>hredGAN-u</td><td>i'Ilbe thefirstone.ifitdidyou,you'lleit.</td></tr><tr><td>Context_0</td><td>come on,<person>,we could have a great week up in vermont .</td></tr><tr><td>Context.1</td><td>i see what you mean.but wednesday we’ve got to be back in new york .</td></tr><tr><td>HRED VHRED</td><td><person>. <person>,idon't know what you’re going to do.</td></tr><tr><td>hredGAN_w</td><td><person>,iknow .i'm kind of busy here.</td></tr><tr><td>hredGAN_u</td><td>i'm sorry,ican 't.</td></tr><tr><td>Context_0</td><td>isabel ?</td></tr><tr><td>Context_1</td><td>hi.</td></tr><tr><td>HRED</td><td>that’s whati’m talking about .</td></tr><tr><td>VHRED:</td><td>you're not going to be a<unk>,<person>.</td></tr><tr><td>hredGAN_w</td><td><person>?</td></tr><tr><td>hredGAN_u</td><td>what do you want to know ?</td></tr><tr><td>Context.0</td><td>you understand mr.<person> is constantly barraged with nuisance litigation and irs audits </td></tr><tr><td>Context_1</td><td>of course .</td></tr><tr><td>HRED</td><td>that’s right,<person>.</td></tr><tr><td>VHRED:</td><td><person>,you’re going to bea<unk>of the<unk>.</td></tr><tr><td>hredGAN_w</td><td><person>,i’msure,but you’re probably stillin to the new<person>’s house,huh ?</td></tr><tr><td>hredGAN_u</td><td>you're gon nabe alitle boy,andi’m not gon na get out !</td></tr><tr><td>Context_0</td><td><person>'t go into my room,she’s asleep.</td></tr><tr><td>Context_1</td><td><person>,but the nanny,mrs.<person>,she wants to see her.</td></tr><tr><td>HRED</td><td>i'm sorry,<person>.</td></tr><tr><td>VHRED:</td><td><person>,mr.<person>.</td></tr><tr><td>hredGAN_w</td><td><person>,i know .but she’s never seen me anyway.</td></tr><tr><td>hredGAN-u</td><td>i'm sorry ididn't know what to say .</td></tr><tr><td></td><td></td></tr><tr><td>Context_0</td><td>what was that for ?</td></tr><tr><td>Context_1</td><td>i'd forgotten how exciting it is working together .</td></tr><tr><td>HRED</td><td>i'm sorry,<person>.</td></tr><tr><td>VHRED:</td><td><person>,<person>.idon'tknow.</td></tr><tr><td>hredGAN_w</td><td>i'm sorry,<person>.so many people are so interested,but you’re a very nice guy .</td></tr><tr><td>hredGAN_u</td><td>i've always been so sure to<person></td></tr><tr><td></td><td></td></tr><tr><td>Context_0</td><td>a teacher’s.</td></tr><tr><td>Context_1</td><td>oh my god. i'm sorry,<person></td></tr><tr><td>HRED VHRED:</td><td><person>,<person>'t worry about it.idon’t know what you’re doing.</td></tr><tr><td>hredGAN_w</td><td>i'msorry.ididn’tmean to.ididn't meanto hurt you.ijust wanted you</td></tr><tr><td>hredGAN-u</td><td><person>,i don 't want to be your friend .</td></tr><tr><td></td><td></td></tr><tr><td>Context_0 HRED</td><td>this is all we have . <person>,i’m sorry.</td></tr><tr><td>VHRED:</td><td><person>,idon't know what you're doing .idon't know whati’m going to do.</td></tr><tr><td>hredGAN_w</td><td>i'm sorry,sir,buti’ma very good man.</td></tr><tr><td>hredGAN-u</td><td>but you’ve been in the apartment .</td></tr><tr><td></td><td></td></tr><tr><td>Context_0</td><td>i took the initiative .</td></tr><tr><td>Context_1</td><td>you haven'tbeen given an assignment in this case.</td></tr><tr><td>HRED</td><td><person>.</td></tr><tr><td>VHRED:</td><td></td></tr><tr><td></td><td><person>,<person>,<person>,<person>.i’m not going to get out of the <unk>.</td></tr><tr><td>hredGAN_w</td><td>i'm not sure.<continued_utterance>i’m not gon na do you this shit anyway,<person></td></tr><tr><td>hredGAN-u</td><td></td></tr><tr><td></td><td><person>,i guess i didn 't.</td></tr><tr><td></td><td></td></tr><tr><td>Context_0</td><td><person>,i was just gon na leave and seeificould pick up their trail .</td></tr><tr><td></td><td></td></tr><tr><td>Context_1</td><td>no,you wait right there for me.<person> beon the piedmontfight tomorrow at seven.meet me at the airport.</td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td>HRED</td><td>i'm sorry,,<person></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td>VHRED:</td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td>hredGAN_w</td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td>what do youthinki’msaying?idon’tknow whati’m going todo.idon’tknow whati’mgoing todo.</td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td>hredGAN-u</td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td>i'm not sure i don 't.<continued_utterance>do you want to go over to the station ? <person>,i don'tknowifi'm not.</td></tr><tr><td></td></table>
|
| 295 |
+
|
| 296 |
+
Table 6: Additional sample responses of HRED, VHRED and hredGAN on Ubuntu.
|
| 297 |
+
|
| 298 |
+
<table><tr><td>Ubuntu</td><td></td></tr><tr><td>Context.0</td><td>what's the command you are running to chroot and the error message you get in return?</td></tr><tr><td>Context.1</td><td>i mountded the device sudo mount/dev/sdal/mnt-that works-then sudo chroot/mnt-eroris no such file or command</td></tr><tr><td>HRED</td><td>what 's the problem ?</td></tr><tr><td>VHRED</td><td>is there a way to do that ? what do you mean ?</td></tr><tr><td>hredGAN_w</td><td>I have no idea,I just did a sudo fdisk and it said it was mounted</td></tr><tr><td>hredGAN_u</td><td>I'm trying to get the latest version of ubuntu,butI’m getting a lot of problems .</td></tr><tr><td>Context_0</td><td>Hmm,have you checked that ICMP is being allowedallthe way throughand thatthe serverresponds tootherICMPrequests?</td></tr><tr><td>Context_1</td><td>nowicanpingit(iadtenabletlocompressooncienticanoteachthmotesubetaddingaruleihefrewallfoardthelan</td></tr><tr><td></td><td>to vpn</td></tr><tr><td>HRED VHRED</td><td>what 's the problem ? I don't know what you want to do</td></tr><tr><td>hredGAN_w</td><td>I have no idea,I’m just trying to get the ip address from the router to the router"</td></tr><tr><td>hredGAN_u</td><td>I'm not sure if that’sthe case,butI’m not sure if it’sa good idea to have a look at the output .</td></tr><tr><td></td><td></td></tr><tr><td>Context_0</td><td>The netboot one is suppose to download packages from the net.</td></tr><tr><td>HRED</td><td>I don't know what you want to do .</td></tr><tr><td>VHRED</td><td>how do I do that ? I'm not sure of a command to do so Ican just install the ubuntu .iso and burn a new iso</td></tr><tr><td>hredGAN_w hredGAN_u</td><td>you can 't have a look at the man page ...</td></tr><tr><td></td><td></td></tr><tr><td>Context_0</td><td>The netboot one is suppose to download packages from the net.</td></tr><tr><td>Context_1</td><td>like the ones to be installed? or the installed to be run?</td></tr><tr><td>HRED</td><td>I don't know what the problem is .</td></tr><tr><td>VHRED</td><td>is there a way to install the package manager ?</td></tr><tr><td>hredGAN_w hredGAN_u</td><td>you don ’t need to install the whole system, just install the ubuntu installer I'm trying to installa -UNK version of ubuntu,butI'm trying to install it on my laptop</td></tr><tr><td></td><td></td></tr><tr><td>Context_0</td><td>You trying to mount it open with the password?</td></tr><tr><td>HRED</td><td>Ihave to do that,butI have a problem with the same problem. is there a way to do ?</td></tr><tr><td>VHRED</td><td>yes,I'm not sure if it’s mounted or not</td></tr><tr><td>hredGAN_w</td><td>I'm trying to install the latest version of Ubuntu,butI'm running on a -UNK</td></tr><tr><td>hredGAN-u</td><td></td></tr><tr><td>Context_0</td><td>are you using lvm for your root partition?</td></tr><tr><td>HRED</td><td>yes,but I have a problem with a new user,butI don't want to do that.</td></tr><tr><td>VHRED</td><td>what is the best way to do that ?what is that ?</td></tr><tr><td>hredGAN_w</td><td>yes,I'm on alive system,I’m trying to use the partition to boot from windows</td></tr><tr><td>hredGAN_u</td><td>I'm not sure if it’s a good idea to have a backup of the system..</td></tr><tr><td>Context.0</td><td>are you using lvm for your root partition?</td></tr><tr><td>Context_1</td><td>ihavethesameofgorkigoa04box.Itppearsin2.04lvisonustartandutipathisnotidouselforyootderifty is thereanywaytworkarounditaveyuhardofayonepostingaugabouthistohaveitookedtdar.welliopethycanfiis</td></tr><tr><td></td><td>eventuallyiopetheykeepitrdroundandmoveeverytingtoustartUpstartisoteasytosetupforprogamstatdon’tcomepackaged</td></tr><tr><td></td><td>for upstart. I don't know what the problem is,but I don't know what the problem is .?</td></tr><tr><td>HRED VHRED</td><td>is there a way to do that ?or **unknown** ?</td></tr><tr><td>hredGAN_w</td><td>you can also try the live cd and see if you can get it back up the live"</td></tr><tr><td>hredGAN-u</td><td>I'mtryintotywirelessorkingomyapto,ut’mgeingtoheintatcaeabletousteirelescardtogethieless</td></tr><tr><td></td><td>working.</td></tr><tr><td>Context_0</td><td>are you using lvm for your root partition? ihavethesameofgorkingoa0.04box.Itppearsin2.04lisonupstartandultipathisot.idouselforyotfolderifty</td></tr><tr><td>Context.1</td><td>istheranyaytoworkaroundihaveyouhardofanyonepostingabugabouttis tohaveitokedatdar.welliopethyanfiis eventuallyiopetheyepiitrdoudandmoveeverytngtoupstartUpstartisoteasytosetupforprogamstatdon'tcoepackaged</td></tr><tr><td></td><td>for upstart.</td></tr><tr><td>Context_2 HRED</td><td>yes,becauseicant supply itatboottime,iwantthe truecrypt drive to come up by itself without manual intervention what is the problem ?</td></tr><tr><td>VHRED</td><td>what do you mean ?</td></tr><tr><td>hredGAN_w</td><td>you can also mount a new one and put the mount command to the mount point”</td></tr><tr><td>hredGAN_u</td><td>I'm trying to get my sound working,butI'm trying to get my sound working.</td></tr><tr><td></td><td>are you using lvm for your root partition?</td></tr><tr><td>Context_0</td><td></td></tr><tr><td>Context_1</td><td>ihavethesameconfgorkingona4box.Itappearsin04lisonupstartandutipathisnotidouselforootfolderifty isthereanyytworkroudiaveyouheardofanyonepostingugaboutistoveitlokedatdar.welliopeteyafiis</td></tr><tr><td></td><td>eventuallyiopetheykeepitrdroundandmoveeverytingtoustartUpstartisoteasytosetupforprogamstatdon’tcomepackaged</td></tr><tr><td></td><td>for upstart.</td></tr><tr><td>Context_2</td><td>yes,becauseicantsupply itatboottime,i wantthe truecrypt drive to come up by itself without manual intervention</td></tr><tr><td>Context_3</td><td>Kinda defeats the use of it anyone could get in don't you think?</td></tr><tr><td>HRED</td><td>what is the problem ?</td></tr><tr><td>VHRED</td><td>is there a way to mount the file ?if you want to do it ?</td></tr><tr><td>hredGAN_w</td><td>I have no idea,I just want to get the data from the other computer</td></tr><tr><td></td><td>I'm trying to getthe latest driver from the nvidia driver,butI’m trying to get the nvidia driver working</td></tr><tr><td>hredGAN_u</td><td></td></tr><tr><td></td><td></td></tr></table>
|
parse/train/SJxzPsAqFQ/SJxzPsAqFQ_content_list.json
ADDED
|
@@ -0,0 +1,1411 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "MULTI-TURN DIALOGUE RESPONSE GENERATION IN AN ADVERSARIAL LEARNING FRAMEWORK ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "We propose an adversarial learning approach to the generation of multi-turn dialogue responses. Our proposed framework, hredGAN, is based on conditional generative adversarial networks (GANs). The GAN’s generator is a modified hierarchical recurrent encoder-decoder network (HRED) and the discriminator is a word-level bidirectional RNN that shares context and word embedding with the generator. During inference, noise samples conditioned on the dialogue history are used to perturb the generator’s latent space to generate several possible responses. The final response is the one ranked best by the discriminator. The hredGAN shows major advantages over existing methods: (1) it generalizes better than networks trained using only the log-likelihood criterion, and (2) it generates longer, more informative and more diverse responses with high utterance and topic relevance even with limited training data. This superiority is demonstrated on the Movie triples and Ubuntu dialogue datasets with both the automatic and human evaluations. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
267,
|
| 43 |
+
764,
|
| 44 |
+
460
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
178,
|
| 54 |
+
489,
|
| 55 |
+
336,
|
| 56 |
+
505
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Recent advances in deep neural network architectures have enabled tremendous success on a number of difficult machine learning problems. While these results are impressive, producing a deployable neural network–based conversation model that can engage in open domain discussion still remains elusive. A dialogue system needs to be able to generate meaningful and diverse responses that are simultaneously coherent with the input utterance and the overall dialogue topic. Unfortunately, earlier conversation models trained with naturalistic dialogue data suffered greatly from limited contextual information (Sutskever et al., 2014; Vinyals & Le, 2015), and lack diversity (Li et al., 2016a). These problems often leads to generic and safe utterance in response to varieties of input utterance. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
520,
|
| 66 |
+
825,
|
| 67 |
+
645
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Serban et al. (2016) and Xing et al. (2017) proposed the Hierarchical Recurrent Encoder-Decoder (HRED) network to capture long temporal dependencies in multi-turn conversations to address the limited contextual information but the diversity problem remained. On the other hand, some HRED variants such as variational (Serban et al., 2017b) and multi-resolution (Serban et al., 2017a) HREDs attempt to alleviate the diversity problem by injecting noise at the utterance level and by extracting additional context to condition the generator on. While these approaches achieve certain measures of success over the basic HRED, generated responses are still mostly generic since they do not control the generator’s output as the output conditional distribution is not calibrated. Li et al. (2016a), on the other hand, consider diversity promoting training objective but their model is for single turn conversations, cannot not be trained end-to-end and therefore achieves little. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
652,
|
| 77 |
+
825,
|
| 78 |
+
791
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "The generative adversarial network (GAN) (Goodfellow et al., 2014) seems to be an appropriate solution to the diversity problem. GAN matches data from two different distributions by introducing an adversarial game between a generator and a discriminator. We explore hredGAN: conditional GANs for multi-turn dialogue models with HRED generator and discriminator. hredGAN combines both generative and retrieval-based multi-turn dialogue systems to improve their individual performances. This is achieved by sharing the context and word embedding between the generator and the discriminator allowing for joint end-to-end training using back-propagation. To the best of our knowledge, no existing work has applied conditional GANs to multi-turn dialogue models and especially with HRED generators and discriminators. We demonstrate the effectiveness of hredGAN over the VHRED for dialogue modeling with evaluations on the Movie triples and Ubuntu technical support datasets. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
797,
|
| 88 |
+
825,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
173,
|
| 98 |
+
103,
|
| 99 |
+
825,
|
| 100 |
+
132
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "2 ADVERSARIAL FRAMEWORK FOR MULTI-TURN DIALOGUE ",
|
| 107 |
+
"text_level": 1,
|
| 108 |
+
"bbox": [
|
| 109 |
+
174,
|
| 110 |
+
151,
|
| 111 |
+
696,
|
| 112 |
+
169
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 1
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "Consider a dialogue consisting of a sequence of $N$ utterances, $\\pmb { X } = \\left( X _ { 1 } , X _ { 2 } , \\cdots , X _ { N } \\right)$ , where each utterance $X _ { i } ~ = ~ \\left( X _ { i } ^ { 1 } , X _ { i } ^ { 2 } , \\cdot \\cdot \\cdot , X _ { i } ^ { M _ { i } } \\right)$ contains a variable-length sequence of $M _ { i }$ word tokens such that $X _ { i } ^ { \\mathcal { j } } ~ \\in ~ V$ for vocabulary $V$ . At any time step $i$ , the dialogue history is given by $\\boldsymbol { X _ { i } } = \\left( X _ { 1 } , X _ { 2 } , \\cdot \\cdot \\cdot , X _ { i } \\right)$ . The dialogue response generation task can be defined as follows: Given a dialogue history $X _ { i }$ , generate a response $Y _ { i } = \\left( Y _ { i } ^ { 1 } , Y _ { i } ^ { 2 } , \\cdots , Y _ { i } ^ { T _ { i } } \\right)$ , where $T _ { i }$ is the number of generated tokens. We also want the distribution of the generated response $P ( Y _ { i } )$ to be indistinguishable from that of the ground truth $P ( X _ { i + 1 } )$ and $T _ { i } = M _ { i + 1 }$ . Conditional GAN learns a mapping from an observed dialogue history, $X _ { i }$ , and a sequence of random noise vectors, $Z _ { i }$ to a sequence of output tokens, $Y _ { i }$ , $G : \\{ X _ { i } , Z _ { i } \\} Y _ { i }$ . The generator $G$ is trained to produce output sequences that cannot be distinguished from the ground truth sequence by an adversarially trained discriminator $D$ that is trained to do well at detecting generator’s fakes. The distribution of the generator output sequence can be factored by the product rule: ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
173,
|
| 121 |
+
181,
|
| 122 |
+
825,
|
| 123 |
+
362
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "equation",
|
| 129 |
+
"img_path": "images/08b71c1b25cda1d31aacd47c4fde08b96e086ba059a67623e0a96d1dfc83fdcc.jpg",
|
| 130 |
+
"text": "$$\n\\begin{array} { r } { P ( Y _ { i } | \\boldsymbol { X _ { i } } ) = P ( Y _ { i } ^ { 1 } ) \\displaystyle \\prod _ { j = 2 } ^ { T _ { i } } P \\big ( Y _ { i } ^ { j } | Y _ { i } ^ { 1 } , \\cdot \\cdot \\cdot , Y _ { i } ^ { j - 1 } , \\pmb { X _ { i } } \\big ) } \\\\ { P \\big ( Y _ { i } ^ { j } | Y _ { i } ^ { 1 } , \\cdot \\cdot \\cdot , Y _ { i } ^ { j - 1 } , \\pmb { X _ { i } } \\big ) = P _ { \\theta _ { G } } \\big ( Y _ { i } ^ { 1 : j - 1 } , \\pmb { X _ { i } } \\big ) } \\end{array}\n$$",
|
| 131 |
+
"text_format": "latex",
|
| 132 |
+
"bbox": [
|
| 133 |
+
325,
|
| 134 |
+
366,
|
| 135 |
+
669,
|
| 136 |
+
434
|
| 137 |
+
],
|
| 138 |
+
"page_idx": 1
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"type": "text",
|
| 142 |
+
"text": "where Y i:j−1 $\\begin{array} { r c l } { Y _ { i } ^ { i : j - 1 } } & { = } & { ( Y _ { i } ^ { 1 } , \\cdot \\cdot \\cdot , Y _ { i } ^ { j - 1 } ) } \\end{array}$ and $\\theta _ { G }$ are the parameters of the generator model. $P _ { \\theta _ { G } } \\left( Y _ { i } ^ { i : j - 1 } , X _ { i } \\right)$ is an autoregressive generative model where the probability of the current token depends on the past generated sequence. Training the generator $G$ with the log-likelihood criterion is unstable in practice, and therefore the past generated sequence is substituted with the ground truth, a method known as teacher forcing (Williams & Zipser, 1989), i.e., ",
|
| 143 |
+
"bbox": [
|
| 144 |
+
174,
|
| 145 |
+
436,
|
| 146 |
+
825,
|
| 147 |
+
512
|
| 148 |
+
],
|
| 149 |
+
"page_idx": 1
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"type": "equation",
|
| 153 |
+
"img_path": "images/6ad1762c4e4c367d6722855a42fabd345eb38135526e7b38c351b05949e184cb.jpg",
|
| 154 |
+
"text": "$$\nP \\left( Y _ { i } ^ { j } | Y _ { i } ^ { 1 } , \\cdot \\cdot \\cdot , Y _ { i } ^ { j - 1 } , \\pmb { X } _ { i } \\right) \\approx P _ { \\theta _ { G } } \\left( X _ { i + 1 } ^ { 1 : j - 1 } , \\pmb { X } _ { i } \\right)\n$$",
|
| 155 |
+
"text_format": "latex",
|
| 156 |
+
"bbox": [
|
| 157 |
+
338,
|
| 158 |
+
516,
|
| 159 |
+
658,
|
| 160 |
+
536
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "Using equation 3 in relation to GAN, we define our fake sample as the teacher forcing output with some input noise $Z _ { i }$ ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
178,
|
| 169 |
+
540,
|
| 170 |
+
821,
|
| 171 |
+
568
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "equation",
|
| 177 |
+
"img_path": "images/1b8fb10038eca9e31f4045908e50594d163e4830f34b6acf762643afb66359cf.jpg",
|
| 178 |
+
"text": "$$\nY _ { i } ^ { j } \\sim P _ { \\theta _ { G } } ( X _ { i + 1 } ^ { 1 : j - 1 } , X _ { i } , Z _ { i } )\n$$",
|
| 179 |
+
"text_format": "latex",
|
| 180 |
+
"bbox": [
|
| 181 |
+
405,
|
| 182 |
+
566,
|
| 183 |
+
593,
|
| 184 |
+
587
|
| 185 |
+
],
|
| 186 |
+
"page_idx": 1
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"type": "text",
|
| 190 |
+
"text": "and the corresponding real sample as ground truth $X _ { i + 1 } ^ { j }$ ",
|
| 191 |
+
"bbox": [
|
| 192 |
+
173,
|
| 193 |
+
590,
|
| 194 |
+
545,
|
| 195 |
+
607
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 1
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "With the GAN objective, we can match the noise distribution, $P ( Z _ { i } )$ to the distribution of the ground truth response, $P ( X _ { i + 1 } | X _ { i } )$ . Varying the noise input then allows us to generate diverse responses to the same dialogue history. Furthermore, the discriminator, since it is calibrated, is used during inference to rank the generated responses, providing a means of controlling the generator output. ",
|
| 202 |
+
"bbox": [
|
| 203 |
+
173,
|
| 204 |
+
613,
|
| 205 |
+
825,
|
| 206 |
+
670
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 1
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "text",
|
| 212 |
+
"text": "2.1 OBJECTIVES ",
|
| 213 |
+
"text_level": 1,
|
| 214 |
+
"bbox": [
|
| 215 |
+
174,
|
| 216 |
+
686,
|
| 217 |
+
302,
|
| 218 |
+
700
|
| 219 |
+
],
|
| 220 |
+
"page_idx": 1
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"type": "text",
|
| 224 |
+
"text": "The objective of a conditional GAN can be expressed as ",
|
| 225 |
+
"bbox": [
|
| 226 |
+
173,
|
| 227 |
+
712,
|
| 228 |
+
544,
|
| 229 |
+
728
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 1
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "equation",
|
| 235 |
+
"img_path": "images/95dbdfeee25a17194164f3a91bcb5907d38cb00983d527b11c40e5ff11570552.jpg",
|
| 236 |
+
"text": "$$\n\\begin{array} { r l } { \\mathcal { L } _ { c G A N } ( G , D ) } & { = \\ \\mathbb { E } _ { X _ { i } , X _ { i + 1 } } [ \\log \\ D ( X _ { i + 1 } , X _ { i } ) ] + \\mathbb { E } _ { X _ { i } , Z _ { i } } [ 1 - \\log D ( G ( X _ { i } , Z _ { i } ) , X _ { i } ) ] } \\end{array}\n$$",
|
| 237 |
+
"text_format": "latex",
|
| 238 |
+
"bbox": [
|
| 239 |
+
191,
|
| 240 |
+
734,
|
| 241 |
+
789,
|
| 242 |
+
753
|
| 243 |
+
],
|
| 244 |
+
"page_idx": 1
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"type": "text",
|
| 248 |
+
"text": "where $G$ tries to minimize this objective against an adversarial $D$ that tries to maximize it: ",
|
| 249 |
+
"bbox": [
|
| 250 |
+
173,
|
| 251 |
+
757,
|
| 252 |
+
766,
|
| 253 |
+
772
|
| 254 |
+
],
|
| 255 |
+
"page_idx": 1
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"type": "equation",
|
| 259 |
+
"img_path": "images/ee261a0ab6c076afd787efff79546ee9590cbd7957b7f8678383d52c8accc181.jpg",
|
| 260 |
+
"text": "$$\nG ^ { * } , D ^ { * } = a r g m i n m a x \\mathcal { L } _ { c G A N } ( G , D ) .\n$$",
|
| 261 |
+
"text_format": "latex",
|
| 262 |
+
"bbox": [
|
| 263 |
+
364,
|
| 264 |
+
776,
|
| 265 |
+
633,
|
| 266 |
+
799
|
| 267 |
+
],
|
| 268 |
+
"page_idx": 1
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"type": "text",
|
| 272 |
+
"text": "Previous approaches have shown that it is beneficial to mix the GAN objective with a more traditional loss such as cross-entropy loss (Lamb et al., 2016; Li et al., 2017). The discriminator’s job remains unchanged, but the generator is tasked not only to fool the discriminator but also to be near the ground truth $X _ { i + 1 }$ in the cross-entropy sense: ",
|
| 273 |
+
"bbox": [
|
| 274 |
+
173,
|
| 275 |
+
803,
|
| 276 |
+
825,
|
| 277 |
+
859
|
| 278 |
+
],
|
| 279 |
+
"page_idx": 1
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"type": "equation",
|
| 283 |
+
"img_path": "images/6fbb3555d687afdb5f48aecbcbca050175f55e3c863b7783a93730b77988e3a1.jpg",
|
| 284 |
+
"text": "$$\n\\mathcal { L } _ { M L E } ( G ) = \\mathbb { E } _ { X _ { i } , X _ { i + 1 } , Z _ { i } } [ - l o g ~ P _ { \\theta _ { G } } \\left( X _ { i + 1 } , X _ { i } , Z _ { i } \\right) ] .\n$$",
|
| 285 |
+
"text_format": "latex",
|
| 286 |
+
"bbox": [
|
| 287 |
+
320,
|
| 288 |
+
863,
|
| 289 |
+
678,
|
| 290 |
+
882
|
| 291 |
+
],
|
| 292 |
+
"page_idx": 1
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"type": "text",
|
| 296 |
+
"text": "Our final objective is, ",
|
| 297 |
+
"bbox": [
|
| 298 |
+
174,
|
| 299 |
+
886,
|
| 300 |
+
318,
|
| 301 |
+
900
|
| 302 |
+
],
|
| 303 |
+
"page_idx": 1
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"type": "equation",
|
| 307 |
+
"img_path": "images/0da4cbc3c7fecba8ff529614334a46bf088a762e86d386c3469d27d8df224ffa.jpg",
|
| 308 |
+
"text": "$$\nG ^ { * } , D ^ { * } = a r g m i n m a x \\left( \\lambda _ { G } \\mathcal { L } _ { c G A N } ( G , D ) + \\lambda _ { M } \\mathcal { L } _ { M L E } ( G ) \\right) .\n$$",
|
| 309 |
+
"text_format": "latex",
|
| 310 |
+
"bbox": [
|
| 311 |
+
287,
|
| 312 |
+
904,
|
| 313 |
+
709,
|
| 314 |
+
928
|
| 315 |
+
],
|
| 316 |
+
"page_idx": 1
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"type": "image",
|
| 320 |
+
"img_path": "images/852da0ca9237240374ebfc9d038dc21e91c90ceba20f242e189d501a14252f14.jpg",
|
| 321 |
+
"image_caption": [
|
| 322 |
+
"Figure 1: Left: The hredGAN architecture - The generator makes predictions conditioned on the dialogue history, $\\boldsymbol { h } _ { i }$ , attention, $A _ { i } ^ { j }$ , noise sample, $Z _ { i } ^ { j }$ , and ground truth, $X _ { i + 1 } ^ { j - 1 }$ . Right: RNN-based discriminator that discriminates bidirectionally at the word level. "
|
| 323 |
+
],
|
| 324 |
+
"image_footnote": [],
|
| 325 |
+
"bbox": [
|
| 326 |
+
174,
|
| 327 |
+
99,
|
| 328 |
+
745,
|
| 329 |
+
258
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 2
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "It is worth mentioning that, without $Z _ { i }$ , the net could still learn a mapping from $X _ { i }$ to $Y _ { i }$ , but would produce deterministic outputs and fail to match any distribution other than a delta function (Isola et al., 2017). This is one key area where our work is different from Lamb et al.’s and Li et al.’s. The schematic of the proposed hredGAN is depicted at the right hand side of Figure 1. ",
|
| 336 |
+
"bbox": [
|
| 337 |
+
173,
|
| 338 |
+
329,
|
| 339 |
+
825,
|
| 340 |
+
386
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 2
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "2.2 GENERATOR ",
|
| 347 |
+
"text_level": 1,
|
| 348 |
+
"bbox": [
|
| 349 |
+
174,
|
| 350 |
+
404,
|
| 351 |
+
302,
|
| 352 |
+
417
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 2
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "We adopted an HRED dialogue generator similar to (Serban et al., 2016; 2017a;b; Xing et al., 2017). The HRED contains three recurrent structures, i.e. the encoder $( e R N N )$ , context $( c R N N )$ , and decoder $( d R N N )$ RNN. The conditional probability modeled by the HRED per output word token is given by ",
|
| 359 |
+
"bbox": [
|
| 360 |
+
173,
|
| 361 |
+
429,
|
| 362 |
+
825,
|
| 363 |
+
484
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 2
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "equation",
|
| 369 |
+
"img_path": "images/db755bb4174dbe4f462013df1638a5965919b6a584ccc356fc2b6dffe2ec20b4.jpg",
|
| 370 |
+
"text": "$$\nP _ { \\theta _ { G } } \\left( Y _ { i } ^ { j } | X _ { i + 1 } ^ { 1 : j - 1 } , \\pmb { X } _ { i } \\right) = d R N N \\left( E ( X _ { i + 1 } ^ { j - 1 } ) , h _ { i } ^ { j - 1 } , { h _ { i } } \\right)\n$$",
|
| 371 |
+
"text_format": "latex",
|
| 372 |
+
"bbox": [
|
| 373 |
+
316,
|
| 374 |
+
484,
|
| 375 |
+
681,
|
| 376 |
+
505
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 2
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "text",
|
| 382 |
+
"text": "where $E ( . )$ is the embedding lookup, $h _ { i } \\ = \\ c R N N ( e R N N ( E ( X _ { i } ) , h _ { i - 1 } )$ , $e R N N ( . )$ maps a sequence of input symbols into fixed-length vector, and $h$ and $^ { h }$ are the hidden states of the decoder and context RNN, respectively. ",
|
| 383 |
+
"bbox": [
|
| 384 |
+
174,
|
| 385 |
+
508,
|
| 386 |
+
825,
|
| 387 |
+
551
|
| 388 |
+
],
|
| 389 |
+
"page_idx": 2
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"type": "text",
|
| 393 |
+
"text": "In the multi-resolution HRED, (Serban et al., 2017a), high-level tokens are extracted and processed by another RNN to improve performance. We circumvent the need for this extra processing by allowing the decoder to attend to different parts of the input utterance during response generation (Bahdanau et al., 2015; Luong et al., 2015). We introduce a local attention into equation 9 and encode the attention memory differently from the context through an attention encoder RNN $( a R N N )$ , yielding: ",
|
| 394 |
+
"bbox": [
|
| 395 |
+
173,
|
| 396 |
+
558,
|
| 397 |
+
825,
|
| 398 |
+
641
|
| 399 |
+
],
|
| 400 |
+
"page_idx": 2
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"type": "equation",
|
| 404 |
+
"img_path": "images/bf6d7447481747d6d41b6a3dfa370db1c95c726295e71a74cfb192d1061c6a2b.jpg",
|
| 405 |
+
"text": "$$\nP _ { \\theta _ { G } } \\left( Y _ { i } ^ { j } | X _ { i + 1 } ^ { 1 : j - 1 } , X _ { i } \\right) = d R N N \\big ( E ( X _ { i + 1 } ^ { j - 1 } ) , h _ { i } ^ { j - 1 } , A _ { i } ^ { j } , h _ { i } \\big )\n$$",
|
| 406 |
+
"text_format": "latex",
|
| 407 |
+
"bbox": [
|
| 408 |
+
303,
|
| 409 |
+
640,
|
| 410 |
+
692,
|
| 411 |
+
661
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 2
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "text",
|
| 417 |
+
"text": "where $\\begin{array} { r } { A _ { i } ^ { j } = \\sum _ { m = 1 } ^ { M _ { i } } \\frac { e x p ( \\alpha _ { m } ) } { \\sum _ { m = 1 } ^ { M _ { i } } e x p ( \\alpha _ { m } ) } h _ { i } ^ { ' m } } \\end{array}$ h 0 m , $h _ { i } ^ { ' m } = a R N N ( E ( X _ { i } ^ { m } ) , h _ { i } ^ { ' m - 1 } ) , h ^ { ' }$ is the hidden state of the attention RNN and $\\alpha _ { k }$ is either a logit projection of $( h _ { i } ^ { j - 1 } , h _ { i } ^ { ' m } )$ in the case of Bahdanau et al. (2015) or $( h _ { i } ^ { j - 1 } ) ^ { T } \\cdot h _ { i } ^ { ' m }$ in the case of Luong et al. (2015). The modified HRED architecture is shown in Figure 2. ",
|
| 418 |
+
"bbox": [
|
| 419 |
+
173,
|
| 420 |
+
665,
|
| 421 |
+
825,
|
| 422 |
+
737
|
| 423 |
+
],
|
| 424 |
+
"page_idx": 2
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"type": "text",
|
| 428 |
+
"text": "Noise Injection: We inject Gaussian noise at the input of the decoder RNN. Noise samples could be injected at the utterance or word level. With noise injection, the conditional probability of the decoder output becomes ",
|
| 429 |
+
"bbox": [
|
| 430 |
+
174,
|
| 431 |
+
742,
|
| 432 |
+
825,
|
| 433 |
+
785
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 2
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "equation",
|
| 439 |
+
"img_path": "images/aa3e461c45d9d62ac102ab5d6546b6bc06c48ad7eca850e537cabb54938d1869.jpg",
|
| 440 |
+
"text": "$$\nP _ { \\theta _ { G } } \\left( Y _ { i } ^ { j } | X _ { i + 1 } ^ { 1 : j - 1 } , Z _ { i } ^ { j } , \\boldsymbol { X } _ { i } \\right) = d R N N \\left( E ( X _ { i + 1 } ^ { j - 1 } ) , h _ { i } ^ { j - 1 } , A _ { i } ^ { j } , Z _ { i } ^ { j } , h _ { i } \\right)\n$$",
|
| 441 |
+
"text_format": "latex",
|
| 442 |
+
"bbox": [
|
| 443 |
+
277,
|
| 444 |
+
792,
|
| 445 |
+
720,
|
| 446 |
+
814
|
| 447 |
+
],
|
| 448 |
+
"page_idx": 2
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"type": "text",
|
| 452 |
+
"text": "where $Z _ { i } ^ { j } \\sim \\mathcal { N } _ { i } ( 0 , I )$ , for utterance-level noise and $Z _ { i } ^ { j } \\sim \\mathcal { N } _ { i } ^ { j } ( 0 , I )$ , for word-level noise. ",
|
| 453 |
+
"bbox": [
|
| 454 |
+
169,
|
| 455 |
+
820,
|
| 456 |
+
758,
|
| 457 |
+
839
|
| 458 |
+
],
|
| 459 |
+
"page_idx": 2
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"type": "text",
|
| 463 |
+
"text": "2.3 DISCRIMINATOR ",
|
| 464 |
+
"text_level": 1,
|
| 465 |
+
"bbox": [
|
| 466 |
+
174,
|
| 467 |
+
854,
|
| 468 |
+
330,
|
| 469 |
+
869
|
| 470 |
+
],
|
| 471 |
+
"page_idx": 2
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"type": "text",
|
| 475 |
+
"text": "The discriminator shares context and word embedding with the generator and can discriminate at the word level (Lamb et al., 2016). The word-level discrimination is achieved through a bidirectional RNN and is able to capture both syntactic and conceptual differences between the generator output ",
|
| 476 |
+
"bbox": [
|
| 477 |
+
174,
|
| 478 |
+
881,
|
| 479 |
+
823,
|
| 480 |
+
924
|
| 481 |
+
],
|
| 482 |
+
"page_idx": 2
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"type": "image",
|
| 486 |
+
"img_path": "images/0da47b8b0a595d5ad9dff357a0ff6a87f0afab17a3d46c003f6518c7b53b3ae4.jpg",
|
| 487 |
+
"image_caption": [
|
| 488 |
+
"Figure 2: The HRED generator with local attention - The attention RNN ensures local relevance while the context RNN ensures global relevance. Their states are combined to initialize the decoder RNN and the discriminator BiRNN. "
|
| 489 |
+
],
|
| 490 |
+
"image_footnote": [],
|
| 491 |
+
"bbox": [
|
| 492 |
+
220,
|
| 493 |
+
101,
|
| 494 |
+
761,
|
| 495 |
+
286
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 3
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "text",
|
| 501 |
+
"text": "and the ground truth. The aggregate classification of an input sequence, $\\chi$ can be factored over word-level discrimination and expressed as ",
|
| 502 |
+
"bbox": [
|
| 503 |
+
173,
|
| 504 |
+
364,
|
| 505 |
+
823,
|
| 506 |
+
393
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 3
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "equation",
|
| 512 |
+
"img_path": "images/a5b0b73a62a3da3b66a99ee6d2e96e9a3f6e66070c3810c96b93bcf3044fe954.jpg",
|
| 513 |
+
"text": "$$\nD ( X _ { i } , \\chi ) = D ( h _ { i } , \\chi ) = \\bigg [ \\prod _ { j = 1 } ^ { J } D _ { R N N } ( h _ { i } , E ( \\chi ^ { j } ) ) \\bigg ] ^ { \\frac { 1 } { J } }\n$$",
|
| 514 |
+
"text_format": "latex",
|
| 515 |
+
"bbox": [
|
| 516 |
+
320,
|
| 517 |
+
401,
|
| 518 |
+
676,
|
| 519 |
+
446
|
| 520 |
+
],
|
| 521 |
+
"page_idx": 3
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"type": "text",
|
| 525 |
+
"text": "where $D _ { R N N } ( . )$ is the word discriminator RNN, $\\boldsymbol { h } _ { i }$ is an encoded vector of the dialogue history $X _ { i }$ obtained from the generator’s $c R N N ( . )$ output, and $\\chi ^ { j }$ is the jth word or token of the input sequence $\\chi$ . $\\chi = Y _ { i }$ and $J = T _ { i }$ for the case of generator’s decoder output, $\\chi = X _ { i + 1 }$ and $J = M _ { i + 1 }$ for the case of ground truth. The discriminator architecture is depicted on the left hand side of Figure 1. ",
|
| 526 |
+
"bbox": [
|
| 527 |
+
174,
|
| 528 |
+
454,
|
| 529 |
+
825,
|
| 530 |
+
512
|
| 531 |
+
],
|
| 532 |
+
"page_idx": 3
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"type": "text",
|
| 536 |
+
"text": "2.4 ADVERSARIAL GENERATION OF MULTI-TURN DIALOGUE RESPONSE ",
|
| 537 |
+
"bbox": [
|
| 538 |
+
176,
|
| 539 |
+
530,
|
| 540 |
+
692,
|
| 541 |
+
545
|
| 542 |
+
],
|
| 543 |
+
"page_idx": 3
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"type": "text",
|
| 547 |
+
"text": "In this section, we describe the generation process during inference. The generation objective can be mathematically described as ",
|
| 548 |
+
"bbox": [
|
| 549 |
+
176,
|
| 550 |
+
556,
|
| 551 |
+
821,
|
| 552 |
+
584
|
| 553 |
+
],
|
| 554 |
+
"page_idx": 3
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"type": "equation",
|
| 558 |
+
"img_path": "images/3aea5a624f30b76309e552a65d2a197033b2f8cde3cb7b8ee2a773925f3d1f90.jpg",
|
| 559 |
+
"text": "$$\nY _ { i } ^ { * } = a r g m a x \\left\\{ P ( Y _ { i , l } | X _ { i } ) + D ^ { * } ( X _ { i } , Y _ { i , l } ) \\right\\} _ { l = 1 } ^ { L }\n$$",
|
| 560 |
+
"text_format": "latex",
|
| 561 |
+
"bbox": [
|
| 562 |
+
330,
|
| 563 |
+
583,
|
| 564 |
+
665,
|
| 565 |
+
609
|
| 566 |
+
],
|
| 567 |
+
"page_idx": 3
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"type": "text",
|
| 571 |
+
"text": "where $Y _ { i , l } = G ^ { * } ( X _ { i } , Z _ { i , l } )$ , $Z _ { i , l }$ is the lth noise samples at dialogue step $i$ , and $L$ is the number of response samples. Equation 13 shows that our inference objective is the same as the training objective (8), combining both the MLE and adversarial criteria. This is in contrast to existing work where the discriminator is usually discarded during inference. ",
|
| 572 |
+
"bbox": [
|
| 573 |
+
174,
|
| 574 |
+
609,
|
| 575 |
+
825,
|
| 576 |
+
665
|
| 577 |
+
],
|
| 578 |
+
"page_idx": 3
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"type": "text",
|
| 582 |
+
"text": "The inference described by equation 13 is intractable due to the enormous search space of $Y _ { i , l }$ . Therefore, we turn to an approximate solution where we use greedy decoding (MLE) on the first part of the objective function to generate $L$ lists of responses based on noise samples $\\{ Z _ { i , l } \\} _ { l = 1 } ^ { L }$ . In order to facilitate the exploration of the generator’s latent space, we sample a modified noise distribution, $Z _ { i , l } ^ { j } \\sim \\mathcal { N } _ { i , l } ( 0 , \\alpha I )$ , or $Z _ { i , l } ^ { j } \\sim \\mathcal { N } _ { i , l } ^ { j } ( 0 , \\alpha I )$ where $\\alpha > 1 . 0$ , is the exploration factor that increases the noise variance. We then rank the $L$ lists using the discriminator score, $\\left\\{ D _ { . } ^ { * } ( X _ { i } , Y _ { i , l } ) \\right\\} _ { l = 1 } ^ { L } .$ . The response with the highest discriminator ranking is the optimum response for the dialogue context. ",
|
| 583 |
+
"bbox": [
|
| 584 |
+
173,
|
| 585 |
+
671,
|
| 586 |
+
825,
|
| 587 |
+
779
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 3
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "3 TRAINING OF HREDGAN ",
|
| 594 |
+
"text_level": 1,
|
| 595 |
+
"bbox": [
|
| 596 |
+
176,
|
| 597 |
+
799,
|
| 598 |
+
415,
|
| 599 |
+
815
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 3
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "text",
|
| 605 |
+
"text": "We trained both the generator and the discriminator simultaneously as highlighted in Algorithm 1 with $\\lambda _ { G } = \\lambda _ { M } = 1$ . GAN training is prone to instability due to competition between the generator and the discriminator. Therefore, parameter updates are conditioned on the discriminator performance (Lamb et al., 2016). ",
|
| 606 |
+
"bbox": [
|
| 607 |
+
174,
|
| 608 |
+
832,
|
| 609 |
+
823,
|
| 610 |
+
888
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 3
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "The generator consists of four RNNs with different parameters, that is, $a R N N , e R N N , c R N N$ and dRNN. aRNN and eRNN are both bidirectional, while $c R N N$ and dRNN are unidirec",
|
| 617 |
+
"bbox": [
|
| 618 |
+
173,
|
| 619 |
+
895,
|
| 620 |
+
821,
|
| 621 |
+
924
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 3
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "text",
|
| 627 |
+
"text": "Algorithm 1 Adversarial Learning of hredGAN ",
|
| 628 |
+
"text_level": 1,
|
| 629 |
+
"bbox": [
|
| 630 |
+
176,
|
| 631 |
+
103,
|
| 632 |
+
488,
|
| 633 |
+
117
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 4
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "Require: A generator $G$ with parameters $\\theta _ { G }$ . \nRequire: A discriminator $D$ with parameters $\\theta _ { D }$ . for number of training iterations do Initialize $c R N N$ to zero state, $\\scriptstyle h _ { 0 }$ 0Sample a mini-batch of conversations, $\\pmb { X } = \\{ X _ { i } \\} _ { i = 1 } ^ { N }$ , $\\pmb { X _ { i } } = \\left( X _ { 1 } , X _ { 2 } , \\cdot \\cdot \\cdot , X _ { i } \\right)$ with $N$ utterances. Each utterance mini batch $_ i$ contains $M _ { i }$ word tokens. for $i = 1$ to $N - 1$ do Update the context state. $\\begin{array} { r } { \\dot { \\pmb { h _ { i } } } = c R N N ( e R N N ( E ( X _ { i } ) ) , \\pmb { h _ { i - 1 } } ) } \\end{array}$ $P _ { \\theta _ { G } } \\left( Y _ { i } | , Z _ { i } , \\boldsymbol { X } _ { i } \\right) = \\left\\{ P _ { \\theta _ { G } } \\left( Y _ { i } ^ { j } | \\boldsymbol { X } _ { i + 1 } ^ { 1 : j - 1 } , Z _ { i } ^ { j } , \\boldsymbol { X } _ { i } \\right) \\right\\} _ { j = 1 } ^ { M _ { i + 1 } }$ $Y _ { i }$ $Y _ { i } \\stackrel { \\cdot } { \\sim } P _ { \\theta _ { G } } ( Y _ { i } | , Z _ { i } , \\stackrel { \\cdot } { X } _ { i } )$ end forCompute the discriminator accuracy $D _ { a c c }$ over $N - 1$ utterances $\\{ Y _ { i } \\} _ { i = 1 } ^ { N - 1 }$ 1 nd {Xi+1}N−1i=1 a Update $\\theta _ { D }$ with gradient of the discriminator loss. $\\underset { i } { \\overset { \\cdot } { \\sum } } [ \\nabla _ { \\theta _ { D } } \\log \\bar { D ( } h _ { i } , X _ { i + 1 } ) + \\nabla _ { \\theta _ { D } } l o g \\big ( 1 - D ( h _ { i } , Y _ { i } ) \\big ) ]$ end if if $D _ { a c c } < a c c _ { G _ { t h } }$ Update $\\begin{array} { r } { { \\prec } \\ { a c c } _ { G _ { t } } } \\\\ { \\ \\mathrm { e } \\ \\theta _ { G } \\ \\mathrm { w i t } } \\end{array}$ with the generator’s MLE loss only. then $\\underset { i } { \\mathop { \\sum } } [ \\nabla _ { \\theta _ { G } } \\log P _ { \\theta _ { G } } ( Y _ { i } | , Z _ { i } , \\mathbf { X } _ { i } ) ]$ else Update $\\theta _ { G }$ with both adversarial and MLE losses. $\\sum _ { i } [ \\lambda _ { G } \\nabla _ { \\theta _ { G } }$ log $D ( h _ { i } , Y _ { i } ) + \\lambda _ { M } \\nabla _ { \\theta _ { G } }$ l $\\arg P _ { \\theta _ { G } } ( Y _ { i } | , Z _ { i } , X _ { i } ) ]$ end if end for ",
|
| 640 |
+
"bbox": [
|
| 641 |
+
173,
|
| 642 |
+
122,
|
| 643 |
+
825,
|
| 644 |
+
421
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 4
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "tional. Each RNN has 3 layers, and the hidden state size is 512. The dRNN and $a R N N$ are connected using an additive attention mechanism (Bahdanau et al., 2015). ",
|
| 651 |
+
"bbox": [
|
| 652 |
+
176,
|
| 653 |
+
445,
|
| 654 |
+
821,
|
| 655 |
+
474
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 4
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "text",
|
| 661 |
+
"text": "The discriminator shares $a R N N , e R N N$ , and $c R N N$ with the generator. $D _ { R N N }$ , is a stacked bidirectional RNN with 3 layers and a hidden state size of 512. The $c R N N$ states are used to initialize the states of $D _ { R N N }$ . The output of both the forward and the backward cells for each word are concatenated and passed to a fully-connected layer with binary output. The output is the probability that the word is from the ground truth given the past and future words of the sequence. ",
|
| 662 |
+
"bbox": [
|
| 663 |
+
174,
|
| 664 |
+
481,
|
| 665 |
+
825,
|
| 666 |
+
551
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 4
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "text",
|
| 672 |
+
"text": "Others: All RNNs used are gated recurrent unit (GRU) cells (Cho et al., 2014). The word embedding size is 512 and shared between the generator and the discriminator. The initial learning rate is 0.5 with decay rate factor of 0.99, applied when the adversarial loss has increased over two iterations. We use a batch size of 64 and clip gradients around 5.0. As in Lamb et al. (2016), we find $a c c _ { D _ { t h } } = 0 . 9 9$ and $a c c _ { G _ { t h } } = 0 . 7 5$ to be good enough. All parameters are initialized with Xavier uniform random initialization (Glorot & Bengio, 2010). The vocabulary size $V$ is 50, 000. Due to the large vocabulary size, we use sampled softmax loss (Jean et al., 2015) for MLE loss to expedite the training process. However, we use full softmax for evaluation. The model is trained end-to-end using the stochastic gradient descent algorithm. ",
|
| 673 |
+
"bbox": [
|
| 674 |
+
174,
|
| 675 |
+
558,
|
| 676 |
+
825,
|
| 677 |
+
683
|
| 678 |
+
],
|
| 679 |
+
"page_idx": 4
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"type": "text",
|
| 683 |
+
"text": "4 EXPERIMENTS AND RESULTS ",
|
| 684 |
+
"text_level": 1,
|
| 685 |
+
"bbox": [
|
| 686 |
+
176,
|
| 687 |
+
703,
|
| 688 |
+
447,
|
| 689 |
+
719
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 4
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "We consider the task of generating dialogue responses conditioned on the dialogue history and the current input utterance. We compare the proposed hredGAN model against some alternatives on publicly available datasets. ",
|
| 696 |
+
"bbox": [
|
| 697 |
+
176,
|
| 698 |
+
734,
|
| 699 |
+
825,
|
| 700 |
+
776
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 4
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "4.1 DATASETS ",
|
| 707 |
+
"text_level": 1,
|
| 708 |
+
"bbox": [
|
| 709 |
+
174,
|
| 710 |
+
792,
|
| 711 |
+
287,
|
| 712 |
+
806
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 4
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "Movie Triples Corpus, (MTC) dataset (Serban et al., 2016). This dataset was derived from the Movie-DiC dataset by Banchs (2012). Although this dataset spans a wide range of topics with few spelling mistakes, its small size of only about 240,000 dialogue triples makes it difficult to train a dialogue model, as pointed out by Serban et al. (2016). We thought that this scenario would really benefit from the proposed adversarial generation. ",
|
| 719 |
+
"bbox": [
|
| 720 |
+
174,
|
| 721 |
+
818,
|
| 722 |
+
823,
|
| 723 |
+
888
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 4
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "Ubuntu Dialogue Corpus, (UDC) dataset (Serban et al., 2017b). This dataset was extracted from the Ubuntu Relay Chat Channel. Although the topics in the dataset are not as diverse as in the MTC, the dataset is very large, containing about 1.85 million conversations with an average of 5 utterances per conversation. ",
|
| 730 |
+
"bbox": [
|
| 731 |
+
173,
|
| 732 |
+
895,
|
| 733 |
+
823,
|
| 734 |
+
924
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 4
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "text",
|
| 740 |
+
"text": "",
|
| 741 |
+
"bbox": [
|
| 742 |
+
171,
|
| 743 |
+
103,
|
| 744 |
+
823,
|
| 745 |
+
132
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 5
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "text",
|
| 751 |
+
"text": "We split both MTC and UDC into training, validation, and test sets, using $90 \\%$ , $5 \\%$ , and $5 \\%$ proportions, respectively. We performed minimal preprocessing of the datasets by replacing all words except the top 50,000 most frequent words by an UNK symbol. ",
|
| 752 |
+
"bbox": [
|
| 753 |
+
174,
|
| 754 |
+
138,
|
| 755 |
+
821,
|
| 756 |
+
181
|
| 757 |
+
],
|
| 758 |
+
"page_idx": 5
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"type": "text",
|
| 762 |
+
"text": "4.2 EVALUATION METRICS ",
|
| 763 |
+
"text_level": 1,
|
| 764 |
+
"bbox": [
|
| 765 |
+
176,
|
| 766 |
+
200,
|
| 767 |
+
375,
|
| 768 |
+
214
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 5
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "Accurate evaluation of dialogue models is still an open challenge. In this paper, we employ both automatic and human evaluations. ",
|
| 775 |
+
"bbox": [
|
| 776 |
+
173,
|
| 777 |
+
227,
|
| 778 |
+
823,
|
| 779 |
+
256
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 5
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "text",
|
| 785 |
+
"text": "4.2.1 AUTOMATIC EVALUATION ",
|
| 786 |
+
"text_level": 1,
|
| 787 |
+
"bbox": [
|
| 788 |
+
176,
|
| 789 |
+
273,
|
| 790 |
+
408,
|
| 791 |
+
287
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 5
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "text",
|
| 797 |
+
"text": "We employed some of the automatic evaluation metrics that are used in probabilistic language and dialogue models, and statistical machine translation. Although these metrics may not correlate well with human judgment of dialogue responses (Liu et al., 2016), they provide a good baseline for comparing dialogue model performance. ",
|
| 798 |
+
"bbox": [
|
| 799 |
+
173,
|
| 800 |
+
297,
|
| 801 |
+
825,
|
| 802 |
+
354
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 5
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "Perplexity - For a model with parameter $\\theta$ , we define perplexity as: ",
|
| 809 |
+
"bbox": [
|
| 810 |
+
173,
|
| 811 |
+
362,
|
| 812 |
+
617,
|
| 813 |
+
376
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 5
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "equation",
|
| 819 |
+
"img_path": "images/54820156326709210073969979b319c3ad63ffd9c59086b891f6d942c18900c3.jpg",
|
| 820 |
+
"text": "$$\ne x p \\bigg [ - \\frac { 1 } { N _ { W } } \\sum _ { k = 1 } ^ { K } l o g P _ { \\theta } ( Y _ { 1 } , Y _ { 2 } , \\ldots , Y _ { N _ { k } - 1 } ) \\bigg ]\n$$",
|
| 821 |
+
"text_format": "latex",
|
| 822 |
+
"bbox": [
|
| 823 |
+
346,
|
| 824 |
+
376,
|
| 825 |
+
650,
|
| 826 |
+
416
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 5
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "where $K$ is the number of conversations in the dataset, $N _ { k }$ is the number of utterances in conversation $k$ , and $N _ { W }$ is the total number of word tokens in the entire dataset. The lower the perplexity, the better. The perplexity measures the likelihood of generating the ground truth given the model parameters. While a generative model can generate a diversity of responses, it should still assign a high probability to the ground truth utterance. ",
|
| 833 |
+
"bbox": [
|
| 834 |
+
174,
|
| 835 |
+
416,
|
| 836 |
+
823,
|
| 837 |
+
484
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 5
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "text",
|
| 843 |
+
"text": "BLEU - The BLEU score, (Papineni et al., 2002) provides a measure of overlap between the generated response (candidate) and the ground truth (reference) using a modified n-gram precision. According to Liu et. al. (Liu et al., 2016), BLEU-2 score is fairly correlated with human judgment for non-technical dialogue (such as MTC). ",
|
| 844 |
+
"bbox": [
|
| 845 |
+
173,
|
| 846 |
+
491,
|
| 847 |
+
825,
|
| 848 |
+
547
|
| 849 |
+
],
|
| 850 |
+
"page_idx": 5
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"type": "text",
|
| 854 |
+
"text": "ROUGE - The ROUGE score, (Lin, 2014) is similar to BLEU but it is recall oriented instead. It is used for automatic evaluation of text summarization and machine translation. To compliment the BLEU score, we use ROUGE-N with $N = 2$ for our evaluation. ",
|
| 855 |
+
"bbox": [
|
| 856 |
+
174,
|
| 857 |
+
554,
|
| 858 |
+
821,
|
| 859 |
+
597
|
| 860 |
+
],
|
| 861 |
+
"page_idx": 5
|
| 862 |
+
},
|
| 863 |
+
{
|
| 864 |
+
"type": "text",
|
| 865 |
+
"text": "Distinct n-gram - This is the fraction of unique n-grams in the generated responses. It provides a measure of diversity. Models with higher number of distinct n-grams tend to produce more diverse responses (Li et al., 2016a). For our evaluation, we use 1- and 2- grams. ",
|
| 866 |
+
"bbox": [
|
| 867 |
+
174,
|
| 868 |
+
603,
|
| 869 |
+
821,
|
| 870 |
+
646
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 5
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "text",
|
| 876 |
+
"text": "Normalized Average Sequence Length (NASL) - This measures the average number of words in model generated responses normalized by the average number of words in the groundtruth. ",
|
| 877 |
+
"bbox": [
|
| 878 |
+
171,
|
| 879 |
+
652,
|
| 880 |
+
823,
|
| 881 |
+
681
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 5
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "4.2.2 HUMAN EVALUATION ",
|
| 888 |
+
"text_level": 1,
|
| 889 |
+
"bbox": [
|
| 890 |
+
176,
|
| 891 |
+
698,
|
| 892 |
+
379,
|
| 893 |
+
713
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 5
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "For human evaluation, we follow a similar setup as Li et al. (2016a), employing crowd-sourced judges to evaluate a random selection of 200 samples. We present both the multi-turn context and the generated responses from the models to 3 judges and asked them to rank the general response quality in terms of relevance and informativeness. For $N$ models, the model with the lowest quality is assigned a score 0 and the highest is assigned a score N-1. Ties are not allowed. The scores are normalized between 0 and 1 and averaged over the total number of samples and judges. ",
|
| 900 |
+
"bbox": [
|
| 901 |
+
174,
|
| 902 |
+
723,
|
| 903 |
+
825,
|
| 904 |
+
808
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 5
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "4.3 BASELINE",
|
| 911 |
+
"text_level": 1,
|
| 912 |
+
"bbox": [
|
| 913 |
+
174,
|
| 914 |
+
827,
|
| 915 |
+
285,
|
| 916 |
+
840
|
| 917 |
+
],
|
| 918 |
+
"page_idx": 5
|
| 919 |
+
},
|
| 920 |
+
{
|
| 921 |
+
"type": "text",
|
| 922 |
+
"text": "We compare the performance of our model to (V)HRED (Serban et al., 2016; 2017b), since they are the closest to our approach in implementation and are the current state of the art in open-domain dialogue models. HRED is very similar to our proposed generator, but without the input utterance attention and noise samples. VHRED introduces a latent variable to the HRED between the $c R N N$ and the dRNN and was trained using the variational lower bound on the log-likelihood. ",
|
| 923 |
+
"bbox": [
|
| 924 |
+
174,
|
| 925 |
+
853,
|
| 926 |
+
823,
|
| 927 |
+
924
|
| 928 |
+
],
|
| 929 |
+
"page_idx": 5
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"type": "table",
|
| 933 |
+
"img_path": "images/1977ad9741fc8815f6854cbba183d0c1a852f28f1cf4ae5d89f04fab14cef799.jpg",
|
| 934 |
+
"table_caption": [
|
| 935 |
+
"Table 1: Generator Performance Evaluation "
|
| 936 |
+
],
|
| 937 |
+
"table_footnote": [],
|
| 938 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">Teacher Forcing</td><td colspan=\"4\">Autoregression</td><td rowspan=\"2\">Human Evaluation</td></tr><tr><td>Perplexity</td><td>-logD(G(.))</td><td>BLEU-2</td><td>ROUGE-2</td><td>DISTINCT-1/2</td><td>NASL1</td></tr><tr><td>MTC</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>HRED</td><td>31.92/36.00</td><td>NA</td><td>0.0474</td><td>0.0384</td><td>0.0026/0.0056</td><td>0.535</td><td>0.2560</td></tr><tr><td>VHRED</td><td>42.61/44.97</td><td>NA</td><td>0.0606</td><td>0.1181</td><td>0.0048/0.0163</td><td>0.831</td><td>0.3909</td></tr><tr><td>hredGAN_u</td><td>23.57/23.54</td><td>23.57/23.54</td><td>0.0493</td><td>0.2416</td><td>0.0167/0.1306</td><td>0.884</td><td>0.5582</td></tr><tr><td>hredGAN_w</td><td>24.20/24.14</td><td>13.35/13.40</td><td>0.0613</td><td>0.3244</td><td>0.0179/0.1720</td><td>1.540</td><td>0.7869</td></tr><tr><td>UDC</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>HRED</td><td>69.39/86.40</td><td>NA</td><td>0.0177</td><td>0.0483</td><td>0.0203/0.0466</td><td>0.892</td><td>0.3475</td></tr><tr><td>VHRED</td><td>98.50/105.20</td><td>NA</td><td>0.0171</td><td>0.0855</td><td>0.0297/0.0890</td><td>0.873</td><td>0.4046</td></tr><tr><td>hredGAN_u</td><td>56.82/57.32</td><td>10.09/10.08</td><td>0.0137</td><td>0.0716</td><td>0.0260/0.0847</td><td>1.379</td><td>0.6133</td></tr><tr><td>hredGAN_w</td><td>47.73/48.18</td><td>8.37/8.36</td><td>0.0216</td><td>0.1168</td><td>0.0516/0.1821</td><td>1.098</td><td>0.6905</td></tr></table>",
|
| 939 |
+
"bbox": [
|
| 940 |
+
176,
|
| 941 |
+
133,
|
| 942 |
+
823,
|
| 943 |
+
308
|
| 944 |
+
],
|
| 945 |
+
"page_idx": 6
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"type": "text",
|
| 949 |
+
"text": "The VHRED can generate multiple responses per context like hredGAN, but has no specific criteria for selecting the best response. ",
|
| 950 |
+
"bbox": [
|
| 951 |
+
174,
|
| 952 |
+
327,
|
| 953 |
+
823,
|
| 954 |
+
354
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 6
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "The HRED and VHRED models are both trained using the Theano-based implementation obtained from https://github.com/julianser/hed-dlg-truncated. The training and validation sets used for UDC and MTC dataset were obtained directly from the authors1 of (V)HRED. For model comparison, we use a test set that is disjoint from the training and validation sets. ",
|
| 961 |
+
"bbox": [
|
| 962 |
+
174,
|
| 963 |
+
362,
|
| 964 |
+
825,
|
| 965 |
+
417
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 6
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "4.4 RESULTS ",
|
| 972 |
+
"text_level": 1,
|
| 973 |
+
"bbox": [
|
| 974 |
+
174,
|
| 975 |
+
434,
|
| 976 |
+
279,
|
| 977 |
+
449
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 6
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "We have two variants of hredGAN based on the noise injection approach, i.e., hredGAN with utterance-level (hredGAN u) and word-level (hredGAN w) noise injections. ",
|
| 984 |
+
"bbox": [
|
| 985 |
+
176,
|
| 986 |
+
460,
|
| 987 |
+
823,
|
| 988 |
+
489
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 6
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "We compare the performance of these two variants with HRED and VHRED models. ",
|
| 995 |
+
"bbox": [
|
| 996 |
+
176,
|
| 997 |
+
496,
|
| 998 |
+
730,
|
| 999 |
+
511
|
| 1000 |
+
],
|
| 1001 |
+
"page_idx": 6
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "text",
|
| 1005 |
+
"text": "Perplexity: The average perplexity per word performance of all the four models on MTC and UDC datasets (validation/test) are reported in the first column on Table 1. The table indicates that both variants of the hredGAN model perform better than the HRED and VHRED models in terms of the perplexity measure. However, using the adversarial loss criterion (Eq. equation 8), the hredGAN u model performs better on MTC and worse on UDC. Note that, for this experiment, we run all models in teacher forcing mode. ",
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
173,
|
| 1008 |
+
517,
|
| 1009 |
+
825,
|
| 1010 |
+
601
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 6
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "text",
|
| 1016 |
+
"text": "Generation Hyperparameter: For adversarial generation, we perform a linear search for $\\alpha$ between 1 and 20 at an increment of 1 using Eq. equation 13, with sample size $L = 6 4$ , on validation sets with models run in autoregression. The optimum values of $\\alpha$ for hredGAN u and hredGAN w for UDC are 7.0 and 9.0 respectively. The values for MTC are not convex, probably due to small size of the dataset, so we use the same $\\alpha$ values as UDC. We however note that for both datasets, any integer value between 3 and 10 (inclusive) works well in practice. ",
|
| 1017 |
+
"bbox": [
|
| 1018 |
+
174,
|
| 1019 |
+
608,
|
| 1020 |
+
825,
|
| 1021 |
+
691
|
| 1022 |
+
],
|
| 1023 |
+
"page_idx": 6
|
| 1024 |
+
},
|
| 1025 |
+
{
|
| 1026 |
+
"type": "text",
|
| 1027 |
+
"text": "Quantitative Generator Performance: We run autoregressive inference for all the models (using optimum $\\alpha$ values for hredGAN models and selecting the best of $L = 6 4$ responses using a discriminator) with dialogue contexts from a unique test set. Also, we compute the average BLEU-2, ROUGE-2(f1), Distinct(1/2) and normalized average sequence length (NASL) scores for each model and summarize the results in the middle of Table 1. Distinct(1/2) largely agrees with the perplexity score. Most scores, similar to the perplexity, indicate that hredGAN models perform better than (V)HRED on both datasets. However, on the UDC and MTC, ROUGE and BLUE, respectively scores VHRED slightly better than hredGAN u but still worse than hredGAN w. ",
|
| 1028 |
+
"bbox": [
|
| 1029 |
+
173,
|
| 1030 |
+
698,
|
| 1031 |
+
825,
|
| 1032 |
+
810
|
| 1033 |
+
],
|
| 1034 |
+
"page_idx": 6
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"type": "text",
|
| 1038 |
+
"text": "A good dialogue model should find the right balance between precision (BLEU) and diversity. We strongly believe that our adversarial approach is better suited to solving this problem. As hredGAN generators explore diversity, the discriminator ranking gives hredGAN an edge over (V)HRED because it helps detect responses that are out of context and the natural language structure (Table 2). Also, the ROGUE(f1) performance indicates that hredGAN w strikes a better balance between precision (BLEU) and diversity than the rest of the models. This is also obvious from the quality of generated responses. ",
|
| 1039 |
+
"bbox": [
|
| 1040 |
+
174,
|
| 1041 |
+
818,
|
| 1042 |
+
823,
|
| 1043 |
+
887
|
| 1044 |
+
],
|
| 1045 |
+
"page_idx": 6
|
| 1046 |
+
},
|
| 1047 |
+
{
|
| 1048 |
+
"type": "table",
|
| 1049 |
+
"img_path": "images/b325b1fc5f2060d0e03d6a6e12272c3084ab2c59852a18c0f8cad43a3f335b85.jpg",
|
| 1050 |
+
"table_caption": [
|
| 1051 |
+
"Table 2: Example of Discriminator Ranking with hredGAN w "
|
| 1052 |
+
],
|
| 1053 |
+
"table_footnote": [],
|
| 1054 |
+
"table_body": "<table><tr><td>Item</td><td>D(G(.))</td><td>Utterance</td></tr><tr><td colspan=\"3\">MTC</td></tr><tr><td>Context_0</td><td>NA</td><td>perhaps <person> had a word with the man upstairs.</td></tr><tr><td>Context_1</td><td>NA</td><td>a word ?i’m sure by now he’s engineered a hostile takeover .</td></tr><tr><td>Response_0 0.996</td><td></td><td><person>,i know what you’re saying, <person>,that’s not whati’m saying.</td></tr><tr><td>Response-1 0.991</td><td></td><td><person>,i know .i was just about to help</td></tr><tr><td>Response_2 0.315</td><td></td><td>the guy. <person>,i'm sorry.</td></tr><tr><td>Response_3</td><td>0.203</td><td><person>,i’ma litle out .</td></tr><tr><td>Context_0</td><td>NA</td><td>says he wanted food.<person>.he wanted the gold .</td></tr><tr><td>Context_1</td><td>NA</td><td>how’s he going to want the gold ? he couldn ' t even know we had it.</td></tr><tr><td>Response_0 0.998</td><td></td><td><person>,i know .but it’s not him,it’s the only way he’s got it all figured</td></tr><tr><td>Response_1 0.981</td><td></td><td><person>,i know.but i have to tell you . these things are really stupid and you think i</td></tr><tr><td>Response_2 0.690</td><td></td><td>was wrong ? <person>,i'm sure he did.</td></tr><tr><td>Response-3 0.314</td><td></td><td><person>,i'm not sure</td></tr><tr><td colspan=\"3\">UDC</td></tr><tr><td>Context_0</td><td>NA</td><td>The netboot one is suppose to download pack-</td></tr><tr><td>Context_1</td><td>NA</td><td>ages from the net. like the ones to be installed? or the installed to be run?</td></tr><tr><td>Response_O 0.993</td><td></td><td>you don ’t need to install the whole system , just install the ubuntu installer</td></tr><tr><td>Response-1 0.952</td><td></td><td>you can install the ubuntu installer from the</td></tr><tr><td>Response_2 0.749</td><td></td><td>ubuntu menu I'm not sure ,I don ’t know .</td></tr><tr><td>Response_3</td><td>0.184</td><td>you can</td></tr><tr><td>Response_4</td><td>0.003</td><td>youa. 1.</td></tr><tr><td>Context_0</td><td>NA</td><td>DJones: update manager won't detect 12.04.1 as a new version if you are already running 12.04, because 12.04.1 = 12.04 + lots of pack-</td></tr><tr><td>Response_0 0.991</td><td></td><td>age updates did you try a clean install of the latest version ?</td></tr><tr><td>Response_1 0.981</td><td></td><td>try installing the latest_UNK and see if it works</td></tr><tr><td>Response_2 0.615</td><td></td><td>I’m not sure you have a problem..</td></tr><tr><td>Response_3 0.191</td><td></td><td>try sudo apt-get remove the package that is not</td></tr><tr><td>Response_4 0.002</td><td></td><td>installed try the-UNK.1.1.1.1.1.-UNK.deb</td></tr></table>",
|
| 1055 |
+
"bbox": [
|
| 1056 |
+
174,
|
| 1057 |
+
133,
|
| 1058 |
+
465,
|
| 1059 |
+
565
|
| 1060 |
+
],
|
| 1061 |
+
"page_idx": 7
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"type": "table",
|
| 1065 |
+
"img_path": "images/6aadbcba8d14f970df698f1258e81af2aee8708359c4e7100a40a8383d0a9fd4.jpg",
|
| 1066 |
+
"table_caption": [
|
| 1067 |
+
"Table 3: Sample responses of HRED, VHRED and hredGAN. "
|
| 1068 |
+
],
|
| 1069 |
+
"table_footnote": [],
|
| 1070 |
+
"table_body": "<table><tr><td>Movie</td><td></td></tr><tr><td>Context_0 HRED VHRED</td><td>perhaps <person> had a word with the man upstairs . i'm sorry,<person>. <person<'tdo it. hredGAN_w<person>,i’m not gon na be okay.i just don ’t think it’s a</td></tr><tr><td>Context_1 HRED VHRED</td><td>good idea. hredGAN.u <person>,icause it was allthe way to you. a word ?i'm sure by now he’s engineered a hostile takeover . i'm sorry,<person>. <person>'tdo it.</td></tr><tr><td></td><td>hredGAN_w<person>,i know what you ’re saying,<person>,that’s not whati’m saying. hredGAN_u <person>,i have to tell youi’m not the same.</td></tr><tr><td>Context_0 HRED VHRED</td><td><person>’s. i'm sorry,<person>.</td></tr><tr><td></td><td><person>'tdo it . hredGAN_w <person>,i’m sure it’s the only thing i ever imagined .</td></tr><tr><td></td><td></td></tr><tr><td></td><td>hredGAN_u <person>,i'l be right there .</td></tr><tr><td></td><td></td></tr><tr><td>Context_1</td><td></td></tr><tr><td></td><td>can i ask you something about her ?</td></tr><tr><td>HRED</td><td>idon'tknow .</td></tr><tr><td>VHRED:</td><td>you’re not going to be here .</td></tr><tr><td></td><td>hredGAN_widon’tknow.i thinki’ve heard of it.</td></tr><tr><td></td><td>hredGAN-ui’m sorry,ican 't.</td></tr><tr><td>Ubuntu</td><td></td></tr><tr><td></td><td></td></tr><tr><td>Context_0</td><td>this is Dacs i am in i used 'sudo statx and it let me in</td></tr><tr><td>HRED</td><td>what's the problem ?</td></tr><tr><td>VHRED</td><td>I don't know what you want to do .if you want to do it,you need to</td></tr><tr><td></td><td>do it to do it in the terminal ?</td></tr><tr><td></td><td>hredGAN-w you don’t have to do anything,just type in the terminal and it</td></tr><tr><td></td><td>should be to find the right device</td></tr><tr><td></td><td>hredGAN_u you can have a look at the output of the command .</td></tr><tr><td>Context.1</td><td>good deal... cat /etc/X11/default-display-manager</td></tr><tr><td>HRED</td><td>what's the problem ?</td></tr><tr><td>VHRED</td><td>do you know what you want to do ?</td></tr><tr><td></td><td>hredGAN_w I’m trying to figure a command that I can find to find out the file</td></tr><tr><td></td><td>that Ican find in the file"</td></tr><tr><td></td><td>hredGAN-u Idon 't see the point,but I’m not sure how to do that .</td></tr><tr><td>Context_2</td><td>/usr/sbin/lightdmhttp://paste.ubuntu.com/1286224/</td></tr><tr><td></td><td>/etc/X1/xorg.conf</td></tr><tr><td>HRED</td><td>what 's the problem ?</td></tr><tr><td>VHRED</td><td></td></tr><tr><td></td><td>is there a way to do that in the terminal ?</td></tr><tr><td></td><td>hredGAN_w did you just type\\”sudo mount -a\\”?</td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td>hredGAN-u i have no idea,i just installed ubuntu and i have no idea how to do</td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td>that</td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr></table>",
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
477,
|
| 1073 |
+
135,
|
| 1074 |
+
803,
|
| 1075 |
+
571
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 7
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "text",
|
| 1081 |
+
"text": "",
|
| 1082 |
+
"bbox": [
|
| 1083 |
+
173,
|
| 1084 |
+
603,
|
| 1085 |
+
823,
|
| 1086 |
+
632
|
| 1087 |
+
],
|
| 1088 |
+
"page_idx": 7
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"type": "text",
|
| 1092 |
+
"text": "Qualitative Generator Performance: The results of the human evaluation is reported in the last column of Table 1. The human evaluation agrees largely with the automatic evaluation. The hredGAN w performs best on both datasets although the gap is more on the MTC than on the UTC. This implies that the improvement of HRED with adversarial generation is better than with variational generation (VHRED). In addition, looking at the actual samples from the generator outputs in Table 6 shows that hredGAN especially hredGAN w performs better than (V)HRED. While other models produce short and generic utterances, hredGAN w mostly yields informative responses. For example, in the first dialogue in Table 6, when the speaker is sarcastic about ”the man upstairs”, hredGAN w responds with the most coherent utterance with respect to the dialogue history. We see similar behavior across other samples. We also note that although hredGAN u’s responses are the longest on Ubuntu (in line with the NASL score), the responses are less informative compared to hredGAN w resulting into a lower human evaluation score. We reckon this might be due to a mismatch between utterance-level noise and word-level discrimination or lack of capacity to capture the data distribution using single noise distribution. We hope to investigate this further in the future. ",
|
| 1093 |
+
"bbox": [
|
| 1094 |
+
174,
|
| 1095 |
+
638,
|
| 1096 |
+
825,
|
| 1097 |
+
833
|
| 1098 |
+
],
|
| 1099 |
+
"page_idx": 7
|
| 1100 |
+
},
|
| 1101 |
+
{
|
| 1102 |
+
"type": "text",
|
| 1103 |
+
"text": "Discriminator Performance: Although only hredGAN uses a discriminator, the observed discriminator behavior is interesting. We observe that the discriminator score is generally reasonable with longer, more informative and more persona-related responses receiving higher scores as shown in Table 2. It worth to note that this behavior, although similar to the behavior of a human judge is learned without supervision. Moreover, the discriminator seems to have learned to assign average score to more frequent or generic responses such as “I don’t know”, “I’m not sure” and so on, and high score to rearer answers. That’s why we sample a modified noise distribution during inference so that the generator can produce rearer utterances that will be scored high by the discriminator. ",
|
| 1104 |
+
"bbox": [
|
| 1105 |
+
174,
|
| 1106 |
+
840,
|
| 1107 |
+
823,
|
| 1108 |
+
922
|
| 1109 |
+
],
|
| 1110 |
+
"page_idx": 7
|
| 1111 |
+
},
|
| 1112 |
+
{
|
| 1113 |
+
"type": "text",
|
| 1114 |
+
"text": "",
|
| 1115 |
+
"bbox": [
|
| 1116 |
+
171,
|
| 1117 |
+
103,
|
| 1118 |
+
823,
|
| 1119 |
+
132
|
| 1120 |
+
],
|
| 1121 |
+
"page_idx": 8
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"type": "text",
|
| 1125 |
+
"text": "5 CONCLUSION AND FUTURE WORK ",
|
| 1126 |
+
"text_level": 1,
|
| 1127 |
+
"bbox": [
|
| 1128 |
+
176,
|
| 1129 |
+
152,
|
| 1130 |
+
493,
|
| 1131 |
+
170
|
| 1132 |
+
],
|
| 1133 |
+
"page_idx": 8
|
| 1134 |
+
},
|
| 1135 |
+
{
|
| 1136 |
+
"type": "text",
|
| 1137 |
+
"text": "In this paper, we have introduced an adversarial learning approach that addresses response diversity and control of generator outputs, using an HRED-derived generator and discriminator. The proposed system outperforms existing state-of-the-art (V)HRED models for generating responses in multiturn dialogue with respect to automatic and human evaluations. The superiority of the adversarial generation (hredGAN) over the variational generation (VHRED) is in line with other generative models employing these approaches. Our analysis also concludes that the word-level noise injection seems to perform better in general. ",
|
| 1138 |
+
"bbox": [
|
| 1139 |
+
174,
|
| 1140 |
+
185,
|
| 1141 |
+
825,
|
| 1142 |
+
284
|
| 1143 |
+
],
|
| 1144 |
+
"page_idx": 8
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"type": "text",
|
| 1148 |
+
"text": "While this is a good starting point, we recognize the need to explore further improvements to the proposed adversarial framework: In the future, we hope to: explore which noise level works with which discrimination level; consider a multi-resolution discriminator with combined word- and utterancelevel discriminations; and explore further tuning of the generator and discriminator models. ",
|
| 1149 |
+
"bbox": [
|
| 1150 |
+
174,
|
| 1151 |
+
290,
|
| 1152 |
+
825,
|
| 1153 |
+
345
|
| 1154 |
+
],
|
| 1155 |
+
"page_idx": 8
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"type": "text",
|
| 1159 |
+
"text": "REFERENCES ",
|
| 1160 |
+
"text_level": 1,
|
| 1161 |
+
"bbox": [
|
| 1162 |
+
174,
|
| 1163 |
+
368,
|
| 1164 |
+
285,
|
| 1165 |
+
382
|
| 1166 |
+
],
|
| 1167 |
+
"page_idx": 8
|
| 1168 |
+
},
|
| 1169 |
+
{
|
| 1170 |
+
"type": "text",
|
| 1171 |
+
"text": "D. Bahdanau, K. Cho, and Y. Bengio. Neural machine translation by jointly learning to align and translate. In Proceedings of International Conference of Learning Representation (ICLR 2015), 2015. \nR. E. Banchs. Movie-dic: A movie dialogue corpus for research and development. In Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics, pp. 203–207, 2012. \nE. Bruni and R. Fernndez. Adversarial evaluation for open-domain dialogue generation. In Proceedings of the 18th Annual SIGdial Meeting, 2018. \nT. Che, Y. Li, R. Zhang, R. D. Hjelm, W. Li, Y. Song, and Y. Bengio. Maximum-likelihood augmented discrete generative adversarial networks. In arXiv preprint arXiv:1702.07983, 2017. \nK. Cho, B. Merrienboer, C. Gulcehre, D. Bahdanau, F. Bougares, H. Schwenk, and Y. Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. In Proceedings of International Conference of Learning Representation (ICLR 2015), pp. 1724– 1734, 2014. \nX. Glorot and Y. Bengio. Understanding the difficulty of training deep feedforward neural networks. In International conference on artificial intelligence and statistics, 2010. \nI. J. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. In Proceedings of Advances in Neural Information Processing Systems (NIPS 2014), 2014. \nP. Isola, J. Y. Zhu, T. Zhou, and A. A. Efros. Image-to-image translation with conditional adversarial networks. In Conference on Computer Vision and Pattern Recognition (CVPR, 2017), 2017. \nS. Jean, K. Cho, R. Memisevic, and Y. Bengio. On using very large target vocabulary for neural machine translation. In arXiv preprint arXiv:1412.2007, 2015. \nA. Kannan and O. Vinyals. Adversarial evaluation of dialogue models. In arXiv preprint arXiv:1701.08198v1, 2017. \nA. Lamb, A. Goyah, Y. Zhang, S. Zhang, A. Courville, and Y. Bengio. Professor forcing: A new algorithm for training recurrent networks. In Proceedings of Advances in Neural Information Processing Systems (NIPS 2016), 2016. \nJ. Li, M. Galley, C. Brockett, J. Gao, and B. Dolan. A diversity-promoting objective function for neural conversation models. In Proceedings of NAACL-HLT, 2016a. \nJ. Li, W. Monroe, A. Ritter, M. Galley, J. Gao, and D. Jurafsky. Deep reinforcement learning for dialogue generation. In arXiv preprint arXiv:arXiv:arXiv:1606.01541v4, 2016b. \nJ. Li, W. Monroe, T. Shi, A. Ritter, and D. Jurafsky. Adversarial learning for neural dialogue generation. In arXiv preprint arXiv:1701.06547, 2017. \nC. Y. Lin. Rouge: a package for automatic evaluation of summaries. In Proceedings of the Workshop on Text Summarization Branches Out, 2014. \nC. Liu, R. Lowe, I. V. Serban, M. Noseworthy, L. Charlin, and J. Pineau. How not to evaluate your dialogue system: An empirical study of unsupervised evaluation metrics for dialogue response generation. In Proceedings of EMNLP, pp. 2122–2132, 2016. \nM. T. Luong, I. Sutskever, Q. V. Le, O. Vinyals, and W. Zaremba. Addressing the rare word problem in neural machine translation. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics, 2015. \nK. Papineni, S. Roukos, T. Ward, and W. Zhu. Bleu: A method for automatic evalution of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pp. 311–318, 2002. \nI. Serban, A. Sordoni, Y. Bengio, A. Courville, and J. Pineau. Building end-to-end dialogue systems using generative hierarchical neural network models. In Proceedings of The Thirtieth AAAI Conference on Artificial Intelligence (AAAI 2016), pp. 3776–3784, 2016. \nI. V. Serban, T. Klinger, G. Tesauro, K. Talamadupula, B. Zhou, Y. Bengio, and A. Courville. Multiresolution recurrent neural networks: An application to dialogue response generation. In Proceedings of The Thirty-first AAAI Conference on Artificial Intelligence (AAAI 2017), 2017a. \nI. V. Serban, A. Sordoni, R. Lowe, L. Charlin, J. Pineau, A. Courville, and Y. Bengio. A hierarchical latent variable encoder-decoder model for generating dialogue. In Proceedings of The Thirty-first AAAI Conference on Artificial Intelligence (AAAI 2017), 2017b. \nI. Sutskever, O. Vinyals, and Q. Le. Sequence to sequence learning with neural networks. In Proceedings of Advances in Neural Information Processing Systems (NIPS), pp. 3104–3112, 2014. \nO. Vinyals and Q. Le. A neural conversational model. In Proceedings of ICML Deep Learning Workshop, 2015. \nR. J. Williams and D. Zipser. A learning algorithm for continually running fully recurrent neural networks. Neural computation, 1(2):270–280, 1989. \nC. Xing, W. Wu, Y. Wu, M. Zhou, Y. Huang, and W. Ma. Hierarchical recurrent attention network for response generation. In arXiv preprint arXiv:1701.07149, 2017. \nZ. Xu, B. Liu, B. Wang, S. Chengjie, X. Wang, Z. Wang, and C. Qi. Neural response generation via gan with an approximate embedding layer. In EMNLP, 2017. \nL. Yu, W. Zhang, J. Wang, and Y. Yu. Seqgan: sequence generative adversarial nets with policy gradient. In Proceedings of The Thirty-first AAAI Conference on Artificial Intelligence (AAAI 2017), 2017. \nY. Zhang, Z. Gan, K. Fan, Z. Chen, R. Henao, D. Shen, and L. Carin. Adversarial feature matching for text generation. In arXiv preprint arXiv:1706.03850, 2017. \nY. Zhang, M. Galley, J. Gao, Z. Gan, X. Li, C. Brockett, and B. Dolan. Generating informative and diverse conversational responses via adversarial information maximization. In arXiv preprint arXiv:arXiv:1809.05972v5, 2018. ",
|
| 1172 |
+
"bbox": [
|
| 1173 |
+
171,
|
| 1174 |
+
385,
|
| 1175 |
+
826,
|
| 1176 |
+
931
|
| 1177 |
+
],
|
| 1178 |
+
"page_idx": 8
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"type": "text",
|
| 1182 |
+
"text": "",
|
| 1183 |
+
"bbox": [
|
| 1184 |
+
169,
|
| 1185 |
+
29,
|
| 1186 |
+
828,
|
| 1187 |
+
848
|
| 1188 |
+
],
|
| 1189 |
+
"page_idx": 9
|
| 1190 |
+
},
|
| 1191 |
+
{
|
| 1192 |
+
"type": "text",
|
| 1193 |
+
"text": "APPENDIX ",
|
| 1194 |
+
"text_level": 1,
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
176,
|
| 1197 |
+
103,
|
| 1198 |
+
263,
|
| 1199 |
+
117
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 10
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "6 RELATED WORK ",
|
| 1206 |
+
"text_level": 1,
|
| 1207 |
+
"bbox": [
|
| 1208 |
+
176,
|
| 1209 |
+
136,
|
| 1210 |
+
344,
|
| 1211 |
+
152
|
| 1212 |
+
],
|
| 1213 |
+
"page_idx": 10
|
| 1214 |
+
},
|
| 1215 |
+
{
|
| 1216 |
+
"type": "text",
|
| 1217 |
+
"text": "Our work is related to end-to-end neural network–based open domain dialogue models. Most neural dialogue models use transduction frameworks adapted from neural machine translations (Sutskever et al., 2014; Bahdanau et al., 2015). These $\\mathtt { S e q 2 S e q }$ networks are trained end-to-end with MLE criteria using large corpora of human-to-human conversation data. Others use GAN’s discriminator as a reward function in a reinforcement learning framework (Yu et al., 2017) and in conjunction with MLE (Li et al., 2017; Che et al., 2017). Zhang et al. (2017) explored the idea of GAN with a feature matching criterion. Xu et al. (2017) and Zhang et al. (2018) employed GAN with an approximate embedding layer as well as with adversarial information maximization respectively to improve Seq2Seq’s diversity performance. ",
|
| 1218 |
+
"bbox": [
|
| 1219 |
+
173,
|
| 1220 |
+
170,
|
| 1221 |
+
825,
|
| 1222 |
+
295
|
| 1223 |
+
],
|
| 1224 |
+
"page_idx": 10
|
| 1225 |
+
},
|
| 1226 |
+
{
|
| 1227 |
+
"type": "text",
|
| 1228 |
+
"text": "Still, $\\mathtt { S e q 2 S e q }$ models are limited in their ability to capture long temporal dependencies in multiturn conversation. Although, Li et al. (2016b) attempted to optimize a pair Seq2Seq models for multi-turn dialogue, the multi-turn objective is only applied at inference and not used for actual model training. Hence, the introduction of HRED models (Serban et al., 2016; 2017a;b; Xing et al., 2017) for modeling dialogue response in multi-turn conversations. However, these HRED models suffer from lack of diversity since they are trained with only MLE criteria. On other hand, adversarial system has been used for evaluating open domain dialogue models (Bruni & Fernndez, 2018; Kannan & Vinyals, 2017). Our work, hredGAN is closest to the combination of HRED generation models (Serban et al., 2016) and adversarial evaluation (Kannan & Vinyals, 2017). ",
|
| 1229 |
+
"bbox": [
|
| 1230 |
+
174,
|
| 1231 |
+
301,
|
| 1232 |
+
825,
|
| 1233 |
+
428
|
| 1234 |
+
],
|
| 1235 |
+
"page_idx": 10
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"type": "table",
|
| 1239 |
+
"img_path": "images/e863aaf8aa53453bb40bb72d911bc9bc9fd40ac3d1a321fd03740e39e9950686.jpg",
|
| 1240 |
+
"table_caption": [
|
| 1241 |
+
"Table 4: Generator Performance: HRED vs. HRED $^ +$ Attn "
|
| 1242 |
+
],
|
| 1243 |
+
"table_footnote": [],
|
| 1244 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td rowspan=\"2\">Teacher Forcing Perplexity</td><td colspan=\"4\">Autoregression</td></tr><tr><td>BLEU-2</td><td>ROUGE-2</td><td>DISTINCT-1/2</td><td>NASL</td></tr><tr><td>MTC HRED</td><td>31.92/36.00</td><td></td><td></td><td></td><td></td></tr><tr><td>HRED+Attn</td><td>26.09/26.41</td><td>0.0474 0.0425</td><td>0.0384</td><td>0.0026/0.0056</td><td>0.535</td></tr><tr><td></td><td></td><td></td><td>0.2239</td><td>0.0397/0.1567</td><td>0.527</td></tr><tr><td>UDC</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>HRED</td><td>69.39/86.40</td><td>0.0177</td><td>0.0483</td><td>0.0203/0.0466</td><td>0.892</td></tr><tr><td>HRED+Attn</td><td>50.82/51.31</td><td>0.0140</td><td>0.0720</td><td>0.0473/0.1262</td><td>0.760</td></tr></table>",
|
| 1245 |
+
"bbox": [
|
| 1246 |
+
251,
|
| 1247 |
+
476,
|
| 1248 |
+
745,
|
| 1249 |
+
601
|
| 1250 |
+
],
|
| 1251 |
+
"page_idx": 10
|
| 1252 |
+
},
|
| 1253 |
+
{
|
| 1254 |
+
"type": "text",
|
| 1255 |
+
"text": "7 ABLATION EXPERIMENTS ",
|
| 1256 |
+
"text_level": 1,
|
| 1257 |
+
"bbox": [
|
| 1258 |
+
176,
|
| 1259 |
+
622,
|
| 1260 |
+
421,
|
| 1261 |
+
638
|
| 1262 |
+
],
|
| 1263 |
+
"page_idx": 10
|
| 1264 |
+
},
|
| 1265 |
+
{
|
| 1266 |
+
"type": "text",
|
| 1267 |
+
"text": "Before proposing the above adversarial learning framework for multi-turn dialogue, we carried out some experiments that are highlighted here. ",
|
| 1268 |
+
"bbox": [
|
| 1269 |
+
171,
|
| 1270 |
+
655,
|
| 1271 |
+
825,
|
| 1272 |
+
684
|
| 1273 |
+
],
|
| 1274 |
+
"page_idx": 10
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"type": "text",
|
| 1278 |
+
"text": "7.1 GENERATOR: ",
|
| 1279 |
+
"text_level": 1,
|
| 1280 |
+
"bbox": [
|
| 1281 |
+
174,
|
| 1282 |
+
703,
|
| 1283 |
+
305,
|
| 1284 |
+
717
|
| 1285 |
+
],
|
| 1286 |
+
"page_idx": 10
|
| 1287 |
+
},
|
| 1288 |
+
{
|
| 1289 |
+
"type": "text",
|
| 1290 |
+
"text": "First, we noted that by adding an additional attention memory to the HRED generator, we improved the test set perplexity score by more than 8 and 20 points on the MTC and UDC respectively as shown in Table 4. The addition of attention also shows a strong performance at autoregressive inference across multiple metrics as well as observed improvement in response quality. Hence, the decision for the modified HRED generator. ",
|
| 1291 |
+
"bbox": [
|
| 1292 |
+
174,
|
| 1293 |
+
729,
|
| 1294 |
+
825,
|
| 1295 |
+
800
|
| 1296 |
+
],
|
| 1297 |
+
"page_idx": 10
|
| 1298 |
+
},
|
| 1299 |
+
{
|
| 1300 |
+
"type": "text",
|
| 1301 |
+
"text": "The adversarial training, however helps to address the lack diversity observed in the generated responses. ",
|
| 1302 |
+
"bbox": [
|
| 1303 |
+
174,
|
| 1304 |
+
806,
|
| 1305 |
+
821,
|
| 1306 |
+
835
|
| 1307 |
+
],
|
| 1308 |
+
"page_idx": 10
|
| 1309 |
+
},
|
| 1310 |
+
{
|
| 1311 |
+
"type": "text",
|
| 1312 |
+
"text": "7.2 DISCRIMINATOR: ",
|
| 1313 |
+
"text_level": 1,
|
| 1314 |
+
"bbox": [
|
| 1315 |
+
176,
|
| 1316 |
+
854,
|
| 1317 |
+
333,
|
| 1318 |
+
869
|
| 1319 |
+
],
|
| 1320 |
+
"page_idx": 10
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "text",
|
| 1324 |
+
"text": "Before deciding on the word-level discrimination, we experimented with utterance-level discrimination. The utterance-level discriminator trains very quickly but it leads to mostly generic responses from the generator. We also note that utterance-level discriminator scores are mostly extreme (i.e., ",
|
| 1325 |
+
"bbox": [
|
| 1326 |
+
176,
|
| 1327 |
+
882,
|
| 1328 |
+
823,
|
| 1329 |
+
922
|
| 1330 |
+
],
|
| 1331 |
+
"page_idx": 10
|
| 1332 |
+
},
|
| 1333 |
+
{
|
| 1334 |
+
"type": "text",
|
| 1335 |
+
"text": "either low or high). Since we had used convolutional neural network discriminator (Yu et al., 2017) in our experiments, we hope to investigate this further with other architectures. ",
|
| 1336 |
+
"bbox": [
|
| 1337 |
+
171,
|
| 1338 |
+
103,
|
| 1339 |
+
821,
|
| 1340 |
+
132
|
| 1341 |
+
],
|
| 1342 |
+
"page_idx": 11
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"type": "text",
|
| 1346 |
+
"text": "7.3 ADVERSARIAL TRAINING: ",
|
| 1347 |
+
"text_level": 1,
|
| 1348 |
+
"bbox": [
|
| 1349 |
+
176,
|
| 1350 |
+
148,
|
| 1351 |
+
398,
|
| 1352 |
+
162
|
| 1353 |
+
],
|
| 1354 |
+
"page_idx": 11
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"type": "text",
|
| 1358 |
+
"text": "Lastly, we also tried a basic policy gradient approach (Li et al., 2017), where word-level discriminator score is used as a reward for each generated word token, but this leads to training instability. This is probably due to the instability of Monte Carlo sampling over large vocabulary size. We believe this might improve with other sampling methods such as importance sampling and hope to investigate further in the future. ",
|
| 1359 |
+
"bbox": [
|
| 1360 |
+
174,
|
| 1361 |
+
175,
|
| 1362 |
+
825,
|
| 1363 |
+
244
|
| 1364 |
+
],
|
| 1365 |
+
"page_idx": 11
|
| 1366 |
+
},
|
| 1367 |
+
{
|
| 1368 |
+
"type": "text",
|
| 1369 |
+
"text": "8 OTHER GENERATED SAMPLES ",
|
| 1370 |
+
"text_level": 1,
|
| 1371 |
+
"bbox": [
|
| 1372 |
+
174,
|
| 1373 |
+
102,
|
| 1374 |
+
457,
|
| 1375 |
+
118
|
| 1376 |
+
],
|
| 1377 |
+
"page_idx": 12
|
| 1378 |
+
},
|
| 1379 |
+
{
|
| 1380 |
+
"type": "table",
|
| 1381 |
+
"img_path": "images/fc1b5a55fd0fdf33f9bf0cf6834527676d7bf8327aaba38c8958dd81a5872c9b.jpg",
|
| 1382 |
+
"table_caption": [
|
| 1383 |
+
"Table 5: Additional sample responses of HRED, VHRED and hredGAN on Movie. "
|
| 1384 |
+
],
|
| 1385 |
+
"table_footnote": [],
|
| 1386 |
+
"table_body": "<table><tr><td>Movie</td><td></td></tr><tr><td>Context.0 HRED</td><td><person>i've raised my rate.imight even cut my sessions to forty minutes </td></tr><tr><td>VHRED</td><td>i’m sorry,<person>. <person>,<person>,<person>,<person></td></tr><tr><td>hredGAN_w</td><td><person>,i’m sorry,buti’m not sure if you’re really a very good guy</td></tr><tr><td>hredGAN-u</td><td>i' ll never see them again,<person>.</td></tr><tr><td></td><td>i'm going to handle this exactly the way your father would have handled this .i’ve got it solved .</td></tr><tr><td>Context_0 Context.1</td><td>you’ve got it solved ?where is she ?</td></tr><tr><td>HRED</td><td>idon't know.</td></tr><tr><td>VHRED</td><td><person>,,i’m sorry.</td></tr><tr><td>hredGAN_w</td><td>to the end of äabeautiful woman who willbe very happy.</td></tr><tr><td>hredGAN_u</td><td>i'm sorry,ijust didn ’t know-</td></tr><tr><td>Context_0</td><td>ofcoursenot!jperson’slikeadaughtertome.herfatheranditaughtatuniversitytogetheragoodman,butheneverlistened.</td></tr><tr><td>HRED</td><td>i'm sorry,<person>.</td></tr><tr><td>VHRED hredGAN-w</td><td><person>,mr.<person>.</td></tr><tr><td>hredGAN-u</td><td><person>,i know it’s beenallsix years sinceitold himabout you. i'm sure you didn’t,buti would have donealitle more.</td></tr><tr><td></td><td></td></tr><tr><td>Context_0 Context_1</td><td>ofcourse not!iperson’slikeadaughtertome.erfatheranditaughtatuniversitytogether.agoodman,buthe neverlistened.</td></tr><tr><td>HRED</td><td>neither did i. i'm sorry,,<person>.</td></tr><tr><td>VHRED</td><td><person>,you'rea<unk>.</td></tr><tr><td>hredGAN-w</td><td><person>,i know you’re think about it. think it'I be time,right ?</td></tr><tr><td>hredGAN-u</td><td>i'Ilbe thefirstone.ifitdidyou,you'lleit.</td></tr><tr><td>Context_0</td><td>come on,<person>,we could have a great week up in vermont .</td></tr><tr><td>Context.1</td><td>i see what you mean.but wednesday we’ve got to be back in new york .</td></tr><tr><td>HRED VHRED</td><td><person>. <person>,idon't know what you’re going to do.</td></tr><tr><td>hredGAN_w</td><td><person>,iknow .i'm kind of busy here.</td></tr><tr><td>hredGAN_u</td><td>i'm sorry,ican 't.</td></tr><tr><td>Context_0</td><td>isabel ?</td></tr><tr><td>Context_1</td><td>hi.</td></tr><tr><td>HRED</td><td>that’s whati’m talking about .</td></tr><tr><td>VHRED:</td><td>you're not going to be a<unk>,<person>.</td></tr><tr><td>hredGAN_w</td><td><person>?</td></tr><tr><td>hredGAN_u</td><td>what do you want to know ?</td></tr><tr><td>Context.0</td><td>you understand mr.<person> is constantly barraged with nuisance litigation and irs audits </td></tr><tr><td>Context_1</td><td>of course .</td></tr><tr><td>HRED</td><td>that’s right,<person>.</td></tr><tr><td>VHRED:</td><td><person>,you’re going to bea<unk>of the<unk>.</td></tr><tr><td>hredGAN_w</td><td><person>,i’msure,but you’re probably stillin to the new<person>’s house,huh ?</td></tr><tr><td>hredGAN_u</td><td>you're gon nabe alitle boy,andi’m not gon na get out !</td></tr><tr><td>Context_0</td><td><person>'t go into my room,she’s asleep.</td></tr><tr><td>Context_1</td><td><person>,but the nanny,mrs.<person>,she wants to see her.</td></tr><tr><td>HRED</td><td>i'm sorry,<person>.</td></tr><tr><td>VHRED:</td><td><person>,mr.<person>.</td></tr><tr><td>hredGAN_w</td><td><person>,i know .but she’s never seen me anyway.</td></tr><tr><td>hredGAN-u</td><td>i'm sorry ididn't know what to say .</td></tr><tr><td></td><td></td></tr><tr><td>Context_0</td><td>what was that for ?</td></tr><tr><td>Context_1</td><td>i'd forgotten how exciting it is working together .</td></tr><tr><td>HRED</td><td>i'm sorry,<person>.</td></tr><tr><td>VHRED:</td><td><person>,<person>.idon'tknow.</td></tr><tr><td>hredGAN_w</td><td>i'm sorry,<person>.so many people are so interested,but you’re a very nice guy .</td></tr><tr><td>hredGAN_u</td><td>i've always been so sure to<person></td></tr><tr><td></td><td></td></tr><tr><td>Context_0</td><td>a teacher’s.</td></tr><tr><td>Context_1</td><td>oh my god. i'm sorry,<person></td></tr><tr><td>HRED VHRED:</td><td><person>,<person>'t worry about it.idon’t know what you’re doing.</td></tr><tr><td>hredGAN_w</td><td>i'msorry.ididn’tmean to.ididn't meanto hurt you.ijust wanted you</td></tr><tr><td>hredGAN-u</td><td><person>,i don 't want to be your friend .</td></tr><tr><td></td><td></td></tr><tr><td>Context_0 HRED</td><td>this is all we have . <person>,i’m sorry.</td></tr><tr><td>VHRED:</td><td><person>,idon't know what you're doing .idon't know whati’m going to do.</td></tr><tr><td>hredGAN_w</td><td>i'm sorry,sir,buti’ma very good man.</td></tr><tr><td>hredGAN-u</td><td>but you’ve been in the apartment .</td></tr><tr><td></td><td></td></tr><tr><td>Context_0</td><td>i took the initiative .</td></tr><tr><td>Context_1</td><td>you haven'tbeen given an assignment in this case.</td></tr><tr><td>HRED</td><td><person>.</td></tr><tr><td>VHRED:</td><td></td></tr><tr><td></td><td><person>,<person>,<person>,<person>.i’m not going to get out of the <unk>.</td></tr><tr><td>hredGAN_w</td><td>i'm not sure.<continued_utterance>i’m not gon na do you this shit anyway,<person></td></tr><tr><td>hredGAN-u</td><td></td></tr><tr><td></td><td><person>,i guess i didn 't.</td></tr><tr><td></td><td></td></tr><tr><td>Context_0</td><td><person>,i was just gon na leave and seeificould pick up their trail .</td></tr><tr><td></td><td></td></tr><tr><td>Context_1</td><td>no,you wait right there for me.<person> beon the piedmontfight tomorrow at seven.meet me at the airport.</td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td>HRED</td><td>i'm sorry,,<person></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td>VHRED:</td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td>hredGAN_w</td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td>what do youthinki’msaying?idon’tknow whati’m going todo.idon’tknow whati’mgoing todo.</td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td>hredGAN-u</td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td>i'm not sure i don 't.<continued_utterance>do you want to go over to the station ? <person>,i don'tknowifi'm not.</td></tr><tr><td></td></table>",
|
| 1387 |
+
"bbox": [
|
| 1388 |
+
173,
|
| 1389 |
+
150,
|
| 1390 |
+
825,
|
| 1391 |
+
916
|
| 1392 |
+
],
|
| 1393 |
+
"page_idx": 12
|
| 1394 |
+
},
|
| 1395 |
+
{
|
| 1396 |
+
"type": "table",
|
| 1397 |
+
"img_path": "images/9337bb963d046638c69bf8fc56f60a79baf01901e87bc94cbd5c614f92414f2c.jpg",
|
| 1398 |
+
"table_caption": [
|
| 1399 |
+
"Table 6: Additional sample responses of HRED, VHRED and hredGAN on Ubuntu. "
|
| 1400 |
+
],
|
| 1401 |
+
"table_footnote": [],
|
| 1402 |
+
"table_body": "<table><tr><td>Ubuntu</td><td></td></tr><tr><td>Context.0</td><td>what's the command you are running to chroot and the error message you get in return?</td></tr><tr><td>Context.1</td><td>i mountded the device sudo mount/dev/sdal/mnt-that works-then sudo chroot/mnt-eroris no such file or command</td></tr><tr><td>HRED</td><td>what 's the problem ?</td></tr><tr><td>VHRED</td><td>is there a way to do that ? what do you mean ?</td></tr><tr><td>hredGAN_w</td><td>I have no idea,I just did a sudo fdisk and it said it was mounted</td></tr><tr><td>hredGAN_u</td><td>I'm trying to get the latest version of ubuntu,butI’m getting a lot of problems .</td></tr><tr><td>Context_0</td><td>Hmm,have you checked that ICMP is being allowedallthe way throughand thatthe serverresponds tootherICMPrequests?</td></tr><tr><td>Context_1</td><td>nowicanpingit(iadtenabletlocompressooncienticanoteachthmotesubetaddingaruleihefrewallfoardthelan</td></tr><tr><td></td><td>to vpn</td></tr><tr><td>HRED VHRED</td><td>what 's the problem ? I don't know what you want to do</td></tr><tr><td>hredGAN_w</td><td>I have no idea,I’m just trying to get the ip address from the router to the router"</td></tr><tr><td>hredGAN_u</td><td>I'm not sure if that’sthe case,butI’m not sure if it’sa good idea to have a look at the output .</td></tr><tr><td></td><td></td></tr><tr><td>Context_0</td><td>The netboot one is suppose to download packages from the net.</td></tr><tr><td>HRED</td><td>I don't know what you want to do .</td></tr><tr><td>VHRED</td><td>how do I do that ? I'm not sure of a command to do so Ican just install the ubuntu .iso and burn a new iso</td></tr><tr><td>hredGAN_w hredGAN_u</td><td>you can 't have a look at the man page ...</td></tr><tr><td></td><td></td></tr><tr><td>Context_0</td><td>The netboot one is suppose to download packages from the net.</td></tr><tr><td>Context_1</td><td>like the ones to be installed? or the installed to be run?</td></tr><tr><td>HRED</td><td>I don't know what the problem is .</td></tr><tr><td>VHRED</td><td>is there a way to install the package manager ?</td></tr><tr><td>hredGAN_w hredGAN_u</td><td>you don ’t need to install the whole system, just install the ubuntu installer I'm trying to installa -UNK version of ubuntu,butI'm trying to install it on my laptop</td></tr><tr><td></td><td></td></tr><tr><td>Context_0</td><td>You trying to mount it open with the password?</td></tr><tr><td>HRED</td><td>Ihave to do that,butI have a problem with the same problem. is there a way to do ?</td></tr><tr><td>VHRED</td><td>yes,I'm not sure if it’s mounted or not</td></tr><tr><td>hredGAN_w</td><td>I'm trying to install the latest version of Ubuntu,butI'm running on a -UNK</td></tr><tr><td>hredGAN-u</td><td></td></tr><tr><td>Context_0</td><td>are you using lvm for your root partition?</td></tr><tr><td>HRED</td><td>yes,but I have a problem with a new user,butI don't want to do that.</td></tr><tr><td>VHRED</td><td>what is the best way to do that ?what is that ?</td></tr><tr><td>hredGAN_w</td><td>yes,I'm on alive system,I’m trying to use the partition to boot from windows</td></tr><tr><td>hredGAN_u</td><td>I'm not sure if it’s a good idea to have a backup of the system..</td></tr><tr><td>Context.0</td><td>are you using lvm for your root partition?</td></tr><tr><td>Context_1</td><td>ihavethesameofgorkigoa04box.Itppearsin2.04lvisonustartandutipathisnotidouselforyootderifty is thereanywaytworkarounditaveyuhardofayonepostingaugabouthistohaveitookedtdar.welliopethycanfiis</td></tr><tr><td></td><td>eventuallyiopetheykeepitrdroundandmoveeverytingtoustartUpstartisoteasytosetupforprogamstatdon’tcomepackaged</td></tr><tr><td></td><td>for upstart. I don't know what the problem is,but I don't know what the problem is .?</td></tr><tr><td>HRED VHRED</td><td>is there a way to do that ?or **unknown** ?</td></tr><tr><td>hredGAN_w</td><td>you can also try the live cd and see if you can get it back up the live"</td></tr><tr><td>hredGAN-u</td><td>I'mtryintotywirelessorkingomyapto,ut’mgeingtoheintatcaeabletousteirelescardtogethieless</td></tr><tr><td></td><td>working.</td></tr><tr><td>Context_0</td><td>are you using lvm for your root partition? ihavethesameofgorkingoa0.04box.Itppearsin2.04lisonupstartandultipathisot.idouselforyotfolderifty</td></tr><tr><td>Context.1</td><td>istheranyaytoworkaroundihaveyouhardofanyonepostingabugabouttis tohaveitokedatdar.welliopethyanfiis eventuallyiopetheyepiitrdoudandmoveeverytngtoupstartUpstartisoteasytosetupforprogamstatdon'tcoepackaged</td></tr><tr><td></td><td>for upstart.</td></tr><tr><td>Context_2 HRED</td><td>yes,becauseicant supply itatboottime,iwantthe truecrypt drive to come up by itself without manual intervention what is the problem ?</td></tr><tr><td>VHRED</td><td>what do you mean ?</td></tr><tr><td>hredGAN_w</td><td>you can also mount a new one and put the mount command to the mount point”</td></tr><tr><td>hredGAN_u</td><td>I'm trying to get my sound working,butI'm trying to get my sound working.</td></tr><tr><td></td><td>are you using lvm for your root partition?</td></tr><tr><td>Context_0</td><td></td></tr><tr><td>Context_1</td><td>ihavethesameconfgorkingona4box.Itappearsin04lisonupstartandutipathisnotidouselforootfolderifty isthereanyytworkroudiaveyouheardofanyonepostingugaboutistoveitlokedatdar.welliopeteyafiis</td></tr><tr><td></td><td>eventuallyiopetheykeepitrdroundandmoveeverytingtoustartUpstartisoteasytosetupforprogamstatdon’tcomepackaged</td></tr><tr><td></td><td>for upstart.</td></tr><tr><td>Context_2</td><td>yes,becauseicantsupply itatboottime,i wantthe truecrypt drive to come up by itself without manual intervention</td></tr><tr><td>Context_3</td><td>Kinda defeats the use of it anyone could get in don't you think?</td></tr><tr><td>HRED</td><td>what is the problem ?</td></tr><tr><td>VHRED</td><td>is there a way to mount the file ?if you want to do it ?</td></tr><tr><td>hredGAN_w</td><td>I have no idea,I just want to get the data from the other computer</td></tr><tr><td></td><td>I'm trying to getthe latest driver from the nvidia driver,butI’m trying to get the nvidia driver working</td></tr><tr><td>hredGAN_u</td><td></td></tr><tr><td></td><td></td></tr></table>",
|
| 1403 |
+
"bbox": [
|
| 1404 |
+
173,
|
| 1405 |
+
121,
|
| 1406 |
+
823,
|
| 1407 |
+
775
|
| 1408 |
+
],
|
| 1409 |
+
"page_idx": 13
|
| 1410 |
+
}
|
| 1411 |
+
]
|
parse/train/SJxzPsAqFQ/SJxzPsAqFQ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJxzPsAqFQ/SJxzPsAqFQ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/a7APmM4B9d/a7APmM4B9d_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rJo9n9Feg/rJo9n9Feg.md
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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}@mails.tsinghua.edu.cn
|
| 8 |
+
Anbang Yao & Yurong Chen
|
| 9 |
+
Cognitive Computing Laboratory
|
| 10 |
+
Intel Labs China
|
| 11 |
+
Beijing, China
|
| 12 |
+
{anbang.yao,yurong.chen}@intel.com
|
| 13 |
+
Li Zhang
|
| 14 |
+
Department of Electronic Engineering
|
| 15 |
+
Tsinghua University
|
| 16 |
+
Beijing, China
|
| 17 |
+
{chinazhangli}@mail.tsinghua.edu.cn
|
| 18 |
+
|
| 19 |
+
# ABSTRACT
|
| 20 |
+
|
| 21 |
+
This paper explores the possibility of learning chess game concepts under weak supervision with convolutional neural networks, which is a topic that has not been visited to the best of our knowledge. We put this task in three different backgrounds: (1) deep reinforcement learning has shown an amazing capability to learn a mapping from visual inputs to most rewarding actions, without knowing the concepts of a video game. But how could we confirm that the network understands these concepts or it just does not? (2) cross-modal supervision for visual representation learning has drawn much attention recently. Is this methodology still applicable when it comes to the domain of game concepts and actions? (3) class activation mapping is widely recognized as a visualization technique to help us understand what a network has learnt. Is it possible for it to activate at non-salient regions? With the simplest chess game tic-tac-toe, we report interesting results as answers to those three questions mentioned above. All codes, pre-processed datasets and pre-trained models will be released.
|
| 22 |
+
|
| 23 |
+
# 1 INTRODUCTION
|
| 24 |
+
|
| 25 |
+
# 1.1 APPLICATION BACKGROUND
|
| 26 |
+
|
| 27 |
+
Deep reinforcement learning (DRL) has drawn quite much attention since the publication of influential work Mnih et al. (2015). A convolutional neural network (CNN) is used to bridge the gap between video game screen frames and the most rewarding actions. An amazing feature of this kind of systems is that they do not need to know the concepts of these games (e.g. DRL learns to play Breakout without knowing there is a paddle or a ball in Fig 1a). However, how could we confirm that this network really understands these concepts or it just learns a mapping from patterns in the visual inputs to the best actions? This is the first question we are trying to answer here.
|
| 28 |
+
|
| 29 |
+
Mnih et al. (2015) provides some unsupervised analysis results for visualization, showing that perceptually dissimilar frames may produce close rewards, yet this does not answer the question. We choose another visualization technique called class activation mapping as described in Zhou et al. (2016), which can reveal where the CNN’s attention is. However, directly applying it in tasks like Breakout still cannot answer the question. Imagine one modifies the network described in Mnih et al. (2015) into another version as Zhou et al. (2016) does. The CNN’s attention may be fixed on the ball but it is still not enough to support that the network understands the concept of a ball.
|
| 30 |
+
|
| 31 |
+

|
| 32 |
+
Figure 1: We raise three questions from application, methodology and technique perspectives respectively and provide our answers with a case study of the simplest chess game tic-tac-toe.
|
| 33 |
+
|
| 34 |
+
We propose to use a simple chess game called tic-tac-toe for case study. In order to answer the question, we propose a protocol as this: to place a piece where the CNN’s attention is, and examine whether it is the right move. Of course, the training has to be done under weak supervision, or say, without telling the network what exactly a right move is. We think if this experiment succeeds we can claim that the network figures out the concepts of: (1) a chess board grid; (2) the winning rule; (3) two sides. Detailed analysis about these three concepts are provided later.
|
| 35 |
+
|
| 36 |
+
# 1.2 METHODOLOGY BACKGROUND
|
| 37 |
+
|
| 38 |
+
There have been some works about representation learning with cross-modal supervision recently. Owens et al. (2016) clusters sound statistics into several categories, and uses them as labels to learn visual representation from images corresponding to these sounds. It quantitatively shows that visual representation learnt in this way is capable of handling challenging computer vision tasks and qualitatively shows that visual and sound representations are consistent (e.g. babies’ faces correspond to baby cry sound samples). Castrejon et al. (2016) goes even further by learning representations ´ across five modalities: RGB images, clip art pictures, sketches, texts and spatial texts. Gupta et al. (2016) learns depth image representation with mid-level features extracted from RGB images as supervision, and reports improved RGB-D object detection performance.
|
| 39 |
+
|
| 40 |
+
What is the common point among these works? They generate weak supervision from one modality and use it to learn representation from another (e.g. to learn what a train looks like from what a train sounds like or to learn what a chair looks like in depth images from what a chair looks like in RGB images). During training phase, no concepts about a train or a chair are explicitly modeled. Although there are many other modalities not visited by this methodology, we think the basic ideas behind these works are same: an abstract concept like a train can be observed in different modalities and different representations can be connected.
|
| 41 |
+
|
| 42 |
+
Here comes the question: is this methodology still applicable when it goes beyond the problem of learning representations from different observations of a same concept? Albanie & Vedaldi (2016) is an example, which tries to relate facial expressions with what happened in a TV show (e.g. if a character earns a lot of money, she will be very happy). Although in Albanie & Vedaldi (2016) what happened is explicitly defined, it still can be regarded as a weak supervision for what this expression is.
|
| 43 |
+
|
| 44 |
+
Although with the same methodology, the problem studied in this paper addresses even higher semantics: to learn what to do under the weak supervision of what will happen (Fig 1b). This is substantially different from cross-modal supervision works mentioned above because there is no longer a certain abstract concept of object or attribute observed in different modalities. Instead, figuring out the relationship between what to do and what will happen needs a higher level of intelligence.
|
| 45 |
+
|
| 46 |
+
# 1.3 TECHNIQUE BACKGROUND
|
| 47 |
+
|
| 48 |
+
The core technique used in this paper is class activation mapping (CAM) as described in Zhou et al. (2016). So leaving out all the backgrounds about playing a chess game or cross-modal supervision, what do our experiments say more than its inventors’? We think we show that CAM can also activate at non-salient regions. CAM helps us to understand where contributes the most to a classification result. As Fig 1c shows, the heatmap reveals that the face contributes the most to the result that the network claims it as a person.
|
| 49 |
+
|
| 50 |
+
As has already been shown by Krizhevsky et al. (2012), kernels of lower layers of a CNN capture gradients in an image. Existing CAM experiments tend to activate at salient regions, and this is very reasonable because there are more gradients and therefore more information (e.g. the face in Fig 1c). Here comes the question: could CAM activate at non-salient regions like the empty spaces on a chess board? Our answer is positive as the results (Fig 1d) show that in order to predict what will happen in the future, the CNN’s attention is fixed upon texture-free regions.
|
| 51 |
+
|
| 52 |
+
Since we render chessboards as visual inputs without adding noise, those empty spaces are completely empty meaning that: (1) if we take out the activated patch in Fig 1d, all pixels in this patch have exactly the same value. (2) If we evaluate this patch with quantitative information metric like entropy, there is no information here. Thus the only reason why these regions are activated is that the network collects enough information from these regions’ receptive fields. We argue that this experiment (CAM can activate at non-salient regions) testifies (again) CNN’s ability to hierarchically collect information from visual inputs.
|
| 53 |
+
|
| 54 |
+
# 1.4 WHAT THIS PAPER IS ABOUT
|
| 55 |
+
|
| 56 |
+
After introducing those three backgrounds, we describe our work briefly as: to classify rendered tic-tac-toe chessboards with weak labels and to visualize that the CNN’s attention automatically reveals where the next piece should be placed. Learnt representation shows that: (1) the network knows some concepts of the game that it is not told of; (2) this level of supervision for representation learning is possible; (3) the technique of class activation mapping can activate at non-salient regions.
|
| 57 |
+
|
| 58 |
+
# 2 RELATED WORKS
|
| 59 |
+
|
| 60 |
+
# 2.1 CONCEPT LEARNING
|
| 61 |
+
|
| 62 |
+
Concept learning has different meanings in different contexts, and how to confirm a concept is learnt remains an open question. In Jia et al. (2013), a concept is learnt if a generative model is learnt from a small number of positive samples. In Lake et al. (2015), a concept is learnt if a model learnt from only one instance can generalize to various tasks. Higgins et al. (2016) claims a concept is learnt when a model can predict unseen objects’ sizes and positions. To summarize, they evaluate whether a concept is learnt through a model’s generalization ability. In even earlier works like Zhu et al. (2010);Yang et al. (2010), concept learning means a object/attribute classification task dealing with appearance variations, in which a concept is actually already pre-defined.
|
| 63 |
+
|
| 64 |
+
Unlike these works, we investigate the concepts of game rules instead of object/attribute. Unlike Jia et al. (2013);Lake et al. (2015);Higgins et al. (2016), we claim a concept is learnt through a novel testing protocol instead of generalization ability. Why generalization ability could show a concept is learnt? We think the reason is that a model understands a concept if it can use it in more cases. To this end, we argue that our protocol could also show a concept is learnt because the learnt representations in our experiments can be used to decide what to do though no rule about what need to be done is provided.
|
| 65 |
+
|
| 66 |
+
# 2.2 CROSS-MODAL SUPERVISION
|
| 67 |
+
|
| 68 |
+
The literature of cross-model supervision and the differences between this paper and existing ones are already covered in last section. Here we re-claim it briefly: Owens et al. (2016);Castrejon et al. ´ (2016);Gupta et al. (2016) learn representations across modalities because actually they are different observations of a same (object or attribute) concept. Whether this methodology is applicable for higher-level concepts like game rules remains an open question and we provide positive answers to this question.
|
| 69 |
+
|
| 70 |
+

|
| 71 |
+
Figure 2: 18 different types of chessboard states and corresponding labels.
|
| 72 |
+
|
| 73 |
+
# 2.3 CLASS ACTIVATION MAPPING
|
| 74 |
+
|
| 75 |
+
Before the technique of class activation mapping is introduced by Zhou et al. (2016), pioneering works like Simonyan et al. (2014);Zhou et al. (2015) have already shown CNN’s ability to localize objects with image-level labels. Although with different techniques, Simonyan et al. (2014);Zhou et al. (2015)’s activation visualization results also focus on salient regions. Unlike these works, we show that class activation mapping can activate at non-salient regions, or say more specifically, completely texture-free regions. Since the activated patch itself provides no information, all discriminative information comes from its context. This is another strong evidence to prove CNN’s capability to collect information from receptive fields, as a hierarchical visual model.
|
| 76 |
+
|
| 77 |
+
# 3 EXPERIMENT I: GAME ENDS IN NEXT MOVE
|
| 78 |
+
|
| 79 |
+
A tic-tac-toe chessboard is a $3 \times 3$ grid, and there are two players (black and white in our case). Due to duality, we generate all training samples assuming the black side takes the first move. The state space of tic-tac-toe is small consisting of totally $3 ^ { 9 } = 1 9 6 8 3$ combinations. Among them, many combinations are illegal such as the one in which all 9 pieces are black. We exhaustively search over the space according to a recursive simulation algorithm, in which: (1) the chessboard state is denoted by an integer smaller than 19683. (2) every state corresponds to a 9-d vector, with each element can take a value from this set $\{ 0$ -illegal, 1-black win, 2-white win, 4-tie, 5-uncertain}. We call this 9-d vector a state transfer vector, denoting what will happen if the next legal piece placement happens at according location. (3) generated transfer vectors can predict the existence of a critical move that will finish the game in advance. We will release this simulation code.
|
| 80 |
+
|
| 81 |
+
After pruning out illegal states, we collect 4486 possible states in total. Among these samples, we further take out 1029 states that a certain side is going to win in the next move. We then transform these chessboard states into visual representations (gray-scale images at resolution (180, 180)). Each of these 1029 samples is assigned a label according to the state transfer vectors. There are totally 18 different labels illustrating 2 (sides) $\times 9$ (locations). As demonstrated by Fig 2, we randomly pick a sample for each label. As mentioned before black side takes the first move, thus if the numbers of black and white pieces are equal the next move will be black side’s and if there are one more black piece the next move will be white side’s.
|
| 82 |
+
|
| 83 |
+

|
| 84 |
+
Figure 3: Class activation mapping results on our dataset.
|
| 85 |
+
|
| 86 |
+
Although the concepts of two sides and nine locations are coded into the labels, this kind of supervision is still weak supervision. Because what we are showing to the algorithm is just 18 abstract categories as Fig 2 shows. Could an algorithm figure out what it needs to do by observing these visual inputs? We think even for a human baby it is difficult because no concepts like this is a game or you need to find out how to win are provided. In the setting of deep reinforcement learning there is at least an objective of getting higher score to pursue.
|
| 87 |
+
|
| 88 |
+
As mentioned before, the method we exploit is to train a classification network on this rendered dataset (Fig 2) and analyze learnt representations with the technique of class activation mapping. As Zhou et al. (2016) suggests, we add one global average pooling layer after the last convolutional layer of a pre-trained AlexNet model. All fully connected layers of the AlexNet model are discarded, and a new fully connected layer is added after the global average pooling layer. After the new classification network is fine-tuned on our dataset, a CAM visualization is generated by weighting the outputs of the last convolutional layer with parameters from the added fully connected layer. Our CAM implementation is built upon Marvin and it will be released.
|
| 89 |
+
|
| 90 |
+
Due to the simplicity of this classification task, the top one classification accuracy is $100 \%$ (not surprisingly). Class activation mapping results are provided in Fig 3 and here we present the reasons why we claim concepts are learnt: (1) We provide 18 abstract categories, but in order to classify visual inputs into these 18 categories the network’s attention is roughly fixed upon chessboard grids.
|
| 91 |
+
|
| 92 |
+

|
| 93 |
+
Figure 4: Class activation mapping results after grid lines are added.
|
| 94 |
+
|
| 95 |
+
This means the concept of grid emerges in the learnt representation. (2) If we place a piece at the most activated location in Fig 3, that will be the right (and legal) move to finish the game. On one hand, this means the concept of winning rule emerges in the learnt representation. On the other hand, this means this learnt concept can be used to deal with un-taught task (analogous to Jia et al. (2013);Lake et al. (2015);Higgins et al. (2016) who use generalization ability to illustrate that concepts are learnt). (3) As Fig 3cehijnpq show, both sides can win in the next move if we violate the take-turns rule. However, the network pays attention to the right location that is consistent to the rule. For example, in Fig 3j, it seems that placing a black piece at the left-top location will also end the game. However, this move will violate the rule because there are already more black pieces than white pieces meaning that this is the white side’s turn. This means that the concept of two sides emerges in learnt representation.
|
| 96 |
+
|
| 97 |
+
Except for learnt concepts, we analyze what this experiment provides for the remaining two questions. To the second question: results in Fig 3 show that the methodology of generating labels from one modality (state transfer vectors in our case) to supervise another modality is still applicable. More importantly, we use images as inputs yet the learnt visual representations contain not only visual saliency information but also untold chess game concepts. To the third question: as Fig 3 shows, most activated regions are empty spaces on the chessboard.
|
| 98 |
+
|
| 99 |
+
# 4 EXPERIMENT II: ADDING GRID LINES
|
| 100 |
+
|
| 101 |
+
Since we claim complicated concepts emerge in learnt visual representations, a natural question will be: if the chessboard’s and pieces’ appearances are changed does this experiment still work? Thus we design this experiment by adding grid lines to the chessboards when rendering synthetic data (Fig 4). The intentions behind this design is three-folded: (1) in this case, the chessboard’s appearance is changed. (2) after these lines are added, the concept that there is a chessboard grid is actually implied. Still, we do not think these lines directly provide the concept of chessboard grid thus we use the word imply. Whether the network can figure out what these lines mean still remain uncertain. (3) those locations that are completely empty in Experiment I are no longer empty from the perspective of information (still empty from the perspective of game rule).
|
| 102 |
+
|
| 103 |
+

|
| 104 |
+
Figure 5: Class activation mapping results after piece appearance is changed.
|
| 105 |
+
|
| 106 |
+
We train the same network on the newly rendered dataset with grid lines and calculate CAM results in the same way. The results are demonstrated by Fig 4. Generally speaking, the grid lines allow the network to better activate at the location of right move, making them stands out more on the heatmap. What does this mean to the three intentions mentioned in last paragraph? (1) Firstly, it shows that our experiment is robust to chess board appearance variance. (2) Secondly, after implying the concept that there is a chessboard grid, the network performs better at paying attention to the location of right move. Again we compare this phenomenon against how a human baby learns. Although not supported by phycological experiment, we think with a chessboard grid a human baby is more easy to figure out the game rule than without. (3) Thirdly, heatmap changes in Fig 4 is not surprising, because after adding those lines, the empty (from the perspective of game rule) regions contain more gradients for lower layers of a CNN to collect. However, again it supports that activating at non-salient regions is NOT trivial.
|
| 107 |
+
|
| 108 |
+
# 5 EXPERIMENT III: PIECE APPEARANCE CHANGE
|
| 109 |
+
|
| 110 |
+
In this experiment we change the appearance of the piece by: (1) replacing black boxes with white circles; (2) replacing white boxes with black crosses. Note that in this case the white side moves first. Again we train the same network and visualize with CAM. The results comparison is provided in Fig 6. Further we add grid lines to the cross/circle chessboard.
|
| 111 |
+
|
| 112 |
+
# 6 EXPERIMENT IV: MODEL BEHAVIOR OVER TIME
|
| 113 |
+
|
| 114 |
+
In order to further demonstrate the non-triviality of the model behaviors, we design this experiment. We train on the dataset in Experiment I with 1000 iterations and snap-shotted the parameters at 500th iteration. The classification accuracy is $100 \%$ at 1000th iteration and $5 3 . 1 3 \%$ at $5 0 0 \mathrm { { t h } }$ iteration. The
|
| 115 |
+
|
| 116 |
+

|
| 117 |
+
Figure 6: Class activation mapping results on true positive samples at 500 iterations (left, $5 3 . 1 3 \%$ accuracy) and 1000 iterations (right, $100 \%$ accuracy).
|
| 118 |
+
|
| 119 |
+

|
| 120 |
+
Figure 7: We propose two quantitative evaluation protocols: (a) by selecting the most activated patch, we calculate how frequent the representation fire at the correct location; (b) we correlate the representation with an ideal activation map.
|
| 121 |
+
|
| 122 |
+
CAM results are shown by Fig 5 in which all samples are true positives. We think it shows that there are two ways to achieve this classification task: (1) by paying attention to the visual patterns formed by the existing pieces; (2) by paying attention to where the next piece should be placed. This experiment shows that at an earlier stage of learning the model’s behavior is consistent to the first hypothesis and after the training is completely done the network can finally fire at correct location.
|
| 123 |
+
|
| 124 |
+
# 7 QUANTITATIVE EVALUATION
|
| 125 |
+
|
| 126 |
+
We propose two different quantitative evaluation protocols. The first one is representation accuracy (RAC), for which we select the most activated patch and examine whether it is the correct location to end the game. The second one is representation consistency (RCO), which correlates the normalized representation and a normalized ideal activation map. The quantitative comparisons are shown in Table 1, in which NAC stands for network classification accuracy. These results quantitatively support that: (1) learnt representation can be used to predict the right move at an over $70 \%$ accuracy. (2) adding grid lines (implying the concept of a chessboard) dramatically improves localization.
|
| 127 |
+
|
| 128 |
+
# 8 CONCLUSION
|
| 129 |
+
|
| 130 |
+
The core experiment in this paper is to train a classification CNN on rendered chessboard images under weak labels. After class activation mapping visualization, we analyse and interpret the results in three different backgrounds. Although simple, we argue that our results are enough to show that: (1) a CNN can automatically figure out complicated game rule concepts in this case. (2) cross-modal supervision for representation learning is still applicable in this case of higher-level semantics. (3) the technique of CAM can activate at non-salient regions, testifying CNN’s capability to collect information from context in an extreme case (only context has information).
|
| 131 |
+
|
| 132 |
+
Table 1: Quantitative results.
|
| 133 |
+
|
| 134 |
+
<table><tr><td>Experiment</td><td>I original</td><td>II grid</td><td>Ⅲ piece</td><td>ⅢI piece+grid</td><td>IV 500th</td></tr><tr><td>NAC (%)</td><td>100.00</td><td>100.00</td><td>100.00</td><td>100.00</td><td>53.13</td></tr><tr><td>RAC (%)</td><td>71.82</td><td>97.25</td><td>83.77</td><td>99.00</td><td>27.87</td></tr><tr><td>RCO (103)</td><td>-8.096</td><td>-5.115</td><td>-7.751</td><td>-4.9321</td><td>-10.610</td></tr></table>
|
| 135 |
+
|
| 136 |
+
# REFERENCES
|
| 137 |
+
|
| 138 |
+
Samuel Albanie and Andrea Vedaldi. Learning grimaces by watching tv. In BMVC, 2016.
|
| 139 |
+
|
| 140 |
+
Lluıs Castrejon, Yusuf Aytar, Carl Vondrick, Hamed Pirsiavash, and Antonio Torralba. Learning ´ aligned cross-modal representations from weakly aligned data. In CVPR, 2016.
|
| 141 |
+
|
| 142 |
+
Saurabh Gupta, Judy Hoffman, and Jitendra Malik. Cross modal distillation for supervision transfer. In CVPR, 2016.
|
| 143 |
+
|
| 144 |
+
Irina Higgins, Loic Matthey, Xavier Glorot, Arka Pal, Benigno Uria, Charles Blundell, Shakir Mohamed, and Alexander Lerchner. Early visual concept learning with unsupervised deep learning. arXiv:1606.05579, 2016.
|
| 145 |
+
|
| 146 |
+
Yangqing Jia, Joshua T Abbott, Joseph Austerweil, Thomas Griffiths, and Trevor Darrell. Visual concept learning: Combining machine vision and bayesian generalization on concept hierarchies. In NIPS, 2013.
|
| 147 |
+
|
| 148 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, 2012.
|
| 149 |
+
|
| 150 |
+
Brenden M Lake, Ruslan Salakhutdinov, and Joshua B Tenenbaum. Human-level concept learning through probabilistic program induction. In Science, 2015.
|
| 151 |
+
|
| 152 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. In Nature, 2015.
|
| 153 |
+
|
| 154 |
+
Andrew Owens, Jiajun Wu, Josh H McDermott, William T Freeman, and Antonio Torralba. Ambient sound provides supervision for visual learning. In ECCV, 2016.
|
| 155 |
+
|
| 156 |
+
Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. 2014.
|
| 157 |
+
|
| 158 |
+
Jingjing Yang, Yuanning Li, Yonghong Tian, Ling-Yu Duan, and Wen Gao. Per-sample multiple kernel approach for visual concept learning. In Journal on Image and Video Processing, 2010.
|
| 159 |
+
|
| 160 |
+
Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Object detectors emerge in deep scene cnns. In ICLR, 2015.
|
| 161 |
+
|
| 162 |
+
Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In CVPR, 2016.
|
| 163 |
+
|
| 164 |
+
Shiai Zhu, Gang Wang, Chong-Wah Ngo, and Yu-Gang Jiang. On the sampling of web images for learning visual concept classifiers. In Proceedings of the ACM International Conference on Image and Video Retrieval, 2010.
|
parse/train/rJo9n9Feg/rJo9n9Feg_content_list.json
ADDED
|
@@ -0,0 +1,900 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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GE UNDER WEAK SUPERVISION: A CASE STUDY OF TIC-TAC-TOE ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
820,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Hao Zhao∗& Ming Lu \nDepartment of Electronic Engineering \nTsinghua University \nBeijing, China \n{zhao-h13,lu-m13}@mails.tsinghua.edu.cn \nAnbang Yao & Yurong Chen \nCognitive Computing Laboratory \nIntel Labs China \nBeijing, China \n{anbang.yao,yurong.chen}@intel.com \nLi Zhang \nDepartment of Electronic Engineering \nTsinghua University \nBeijing, China \n{chinazhangli}@mail.tsinghua.edu.cn ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
170,
|
| 20 |
+
562,
|
| 21 |
+
239
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "",
|
| 28 |
+
"bbox": [
|
| 29 |
+
580,
|
| 30 |
+
170,
|
| 31 |
+
913,
|
| 32 |
+
239
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "",
|
| 39 |
+
"bbox": [
|
| 40 |
+
184,
|
| 41 |
+
261,
|
| 42 |
+
524,
|
| 43 |
+
330
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "ABSTRACT ",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
454,
|
| 53 |
+
367,
|
| 54 |
+
544,
|
| 55 |
+
382
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "This paper explores the possibility of learning chess game concepts under weak supervision with convolutional neural networks, which is a topic that has not been visited to the best of our knowledge. We put this task in three different backgrounds: (1) deep reinforcement learning has shown an amazing capability to learn a mapping from visual inputs to most rewarding actions, without knowing the concepts of a video game. But how could we confirm that the network understands these concepts or it just does not? (2) cross-modal supervision for visual representation learning has drawn much attention recently. Is this methodology still applicable when it comes to the domain of game concepts and actions? (3) class activation mapping is widely recognized as a visualization technique to help us understand what a network has learnt. Is it possible for it to activate at non-salient regions? With the simplest chess game tic-tac-toe, we report interesting results as answers to those three questions mentioned above. All codes, pre-processed datasets and pre-trained models will be released. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
233,
|
| 64 |
+
400,
|
| 65 |
+
764,
|
| 66 |
+
594
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 INTRODUCTION ",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
176,
|
| 76 |
+
625,
|
| 77 |
+
334,
|
| 78 |
+
640
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "1.1 APPLICATION BACKGROUND ",
|
| 85 |
+
"text_level": 1,
|
| 86 |
+
"bbox": [
|
| 87 |
+
178,
|
| 88 |
+
656,
|
| 89 |
+
415,
|
| 90 |
+
671
|
| 91 |
+
],
|
| 92 |
+
"page_idx": 0
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"type": "text",
|
| 96 |
+
"text": "Deep reinforcement learning (DRL) has drawn quite much attention since the publication of influential work Mnih et al. (2015). A convolutional neural network (CNN) is used to bridge the gap between video game screen frames and the most rewarding actions. An amazing feature of this kind of systems is that they do not need to know the concepts of these games (e.g. DRL learns to play Breakout without knowing there is a paddle or a ball in Fig 1a). However, how could we confirm that this network really understands these concepts or it just learns a mapping from patterns in the visual inputs to the best actions? This is the first question we are trying to answer here. ",
|
| 97 |
+
"bbox": [
|
| 98 |
+
174,
|
| 99 |
+
684,
|
| 100 |
+
823,
|
| 101 |
+
781
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 0
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "text",
|
| 107 |
+
"text": "Mnih et al. (2015) provides some unsupervised analysis results for visualization, showing that perceptually dissimilar frames may produce close rewards, yet this does not answer the question. We choose another visualization technique called class activation mapping as described in Zhou et al. (2016), which can reveal where the CNN’s attention is. However, directly applying it in tasks like Breakout still cannot answer the question. Imagine one modifies the network described in Mnih et al. (2015) into another version as Zhou et al. (2016) does. The CNN’s attention may be fixed on the ball but it is still not enough to support that the network understands the concept of a ball. ",
|
| 108 |
+
"bbox": [
|
| 109 |
+
174,
|
| 110 |
+
787,
|
| 111 |
+
825,
|
| 112 |
+
885
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 0
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "image",
|
| 118 |
+
"img_path": "images/212e02e9144ac3744d7cce5198efdf27e8ae3f48a5cf3f931abb6df3512a39f3.jpg",
|
| 119 |
+
"image_caption": [
|
| 120 |
+
"Figure 1: We raise three questions from application, methodology and technique perspectives respectively and provide our answers with a case study of the simplest chess game tic-tac-toe. "
|
| 121 |
+
],
|
| 122 |
+
"image_footnote": [],
|
| 123 |
+
"bbox": [
|
| 124 |
+
178,
|
| 125 |
+
103,
|
| 126 |
+
825,
|
| 127 |
+
255
|
| 128 |
+
],
|
| 129 |
+
"page_idx": 1
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"type": "text",
|
| 133 |
+
"text": "We propose to use a simple chess game called tic-tac-toe for case study. In order to answer the question, we propose a protocol as this: to place a piece where the CNN’s attention is, and examine whether it is the right move. Of course, the training has to be done under weak supervision, or say, without telling the network what exactly a right move is. We think if this experiment succeeds we can claim that the network figures out the concepts of: (1) a chess board grid; (2) the winning rule; (3) two sides. Detailed analysis about these three concepts are provided later. ",
|
| 134 |
+
"bbox": [
|
| 135 |
+
174,
|
| 136 |
+
363,
|
| 137 |
+
825,
|
| 138 |
+
446
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "1.2 METHODOLOGY BACKGROUND ",
|
| 145 |
+
"text_level": 1,
|
| 146 |
+
"bbox": [
|
| 147 |
+
176,
|
| 148 |
+
489,
|
| 149 |
+
431,
|
| 150 |
+
505
|
| 151 |
+
],
|
| 152 |
+
"page_idx": 1
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"type": "text",
|
| 156 |
+
"text": "There have been some works about representation learning with cross-modal supervision recently. Owens et al. (2016) clusters sound statistics into several categories, and uses them as labels to learn visual representation from images corresponding to these sounds. It quantitatively shows that visual representation learnt in this way is capable of handling challenging computer vision tasks and qualitatively shows that visual and sound representations are consistent (e.g. babies’ faces correspond to baby cry sound samples). Castrejon et al. (2016) goes even further by learning representations ´ across five modalities: RGB images, clip art pictures, sketches, texts and spatial texts. Gupta et al. (2016) learns depth image representation with mid-level features extracted from RGB images as supervision, and reports improved RGB-D object detection performance. ",
|
| 157 |
+
"bbox": [
|
| 158 |
+
174,
|
| 159 |
+
526,
|
| 160 |
+
825,
|
| 161 |
+
652
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 1
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "text",
|
| 167 |
+
"text": "What is the common point among these works? They generate weak supervision from one modality and use it to learn representation from another (e.g. to learn what a train looks like from what a train sounds like or to learn what a chair looks like in depth images from what a chair looks like in RGB images). During training phase, no concepts about a train or a chair are explicitly modeled. Although there are many other modalities not visited by this methodology, we think the basic ideas behind these works are same: an abstract concept like a train can be observed in different modalities and different representations can be connected. ",
|
| 168 |
+
"bbox": [
|
| 169 |
+
174,
|
| 170 |
+
659,
|
| 171 |
+
825,
|
| 172 |
+
756
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 1
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "Here comes the question: is this methodology still applicable when it goes beyond the problem of learning representations from different observations of a same concept? Albanie & Vedaldi (2016) is an example, which tries to relate facial expressions with what happened in a TV show (e.g. if a character earns a lot of money, she will be very happy). Although in Albanie & Vedaldi (2016) what happened is explicitly defined, it still can be regarded as a weak supervision for what this expression is. ",
|
| 179 |
+
"bbox": [
|
| 180 |
+
174,
|
| 181 |
+
763,
|
| 182 |
+
825,
|
| 183 |
+
847
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 1
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "Although with the same methodology, the problem studied in this paper addresses even higher semantics: to learn what to do under the weak supervision of what will happen (Fig 1b). This is substantially different from cross-modal supervision works mentioned above because there is no longer a certain abstract concept of object or attribute observed in different modalities. Instead, figuring out the relationship between what to do and what will happen needs a higher level of intelligence. ",
|
| 190 |
+
"bbox": [
|
| 191 |
+
174,
|
| 192 |
+
854,
|
| 193 |
+
823,
|
| 194 |
+
924
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 1
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "1.3 TECHNIQUE BACKGROUND ",
|
| 201 |
+
"text_level": 1,
|
| 202 |
+
"bbox": [
|
| 203 |
+
176,
|
| 204 |
+
103,
|
| 205 |
+
401,
|
| 206 |
+
117
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 2
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "text",
|
| 212 |
+
"text": "The core technique used in this paper is class activation mapping (CAM) as described in Zhou et al. (2016). So leaving out all the backgrounds about playing a chess game or cross-modal supervision, what do our experiments say more than its inventors’? We think we show that CAM can also activate at non-salient regions. CAM helps us to understand where contributes the most to a classification result. As Fig 1c shows, the heatmap reveals that the face contributes the most to the result that the network claims it as a person. ",
|
| 213 |
+
"bbox": [
|
| 214 |
+
174,
|
| 215 |
+
130,
|
| 216 |
+
825,
|
| 217 |
+
213
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "As has already been shown by Krizhevsky et al. (2012), kernels of lower layers of a CNN capture gradients in an image. Existing CAM experiments tend to activate at salient regions, and this is very reasonable because there are more gradients and therefore more information (e.g. the face in Fig 1c). Here comes the question: could CAM activate at non-salient regions like the empty spaces on a chess board? Our answer is positive as the results (Fig 1d) show that in order to predict what will happen in the future, the CNN’s attention is fixed upon texture-free regions. ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
174,
|
| 226 |
+
220,
|
| 227 |
+
825,
|
| 228 |
+
304
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "Since we render chessboards as visual inputs without adding noise, those empty spaces are completely empty meaning that: (1) if we take out the activated patch in Fig 1d, all pixels in this patch have exactly the same value. (2) If we evaluate this patch with quantitative information metric like entropy, there is no information here. Thus the only reason why these regions are activated is that the network collects enough information from these regions’ receptive fields. We argue that this experiment (CAM can activate at non-salient regions) testifies (again) CNN’s ability to hierarchically collect information from visual inputs. ",
|
| 235 |
+
"bbox": [
|
| 236 |
+
174,
|
| 237 |
+
311,
|
| 238 |
+
825,
|
| 239 |
+
409
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "1.4 WHAT THIS PAPER IS ABOUT ",
|
| 246 |
+
"text_level": 1,
|
| 247 |
+
"bbox": [
|
| 248 |
+
178,
|
| 249 |
+
428,
|
| 250 |
+
418,
|
| 251 |
+
443
|
| 252 |
+
],
|
| 253 |
+
"page_idx": 2
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"type": "text",
|
| 257 |
+
"text": "After introducing those three backgrounds, we describe our work briefly as: to classify rendered tic-tac-toe chessboards with weak labels and to visualize that the CNN’s attention automatically reveals where the next piece should be placed. Learnt representation shows that: (1) the network knows some concepts of the game that it is not told of; (2) this level of supervision for representation learning is possible; (3) the technique of class activation mapping can activate at non-salient regions. ",
|
| 258 |
+
"bbox": [
|
| 259 |
+
174,
|
| 260 |
+
454,
|
| 261 |
+
825,
|
| 262 |
+
525
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 2
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "2 RELATED WORKS ",
|
| 269 |
+
"text_level": 1,
|
| 270 |
+
"bbox": [
|
| 271 |
+
176,
|
| 272 |
+
546,
|
| 273 |
+
354,
|
| 274 |
+
563
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 2
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "text",
|
| 280 |
+
"text": "2.1 CONCEPT LEARNING ",
|
| 281 |
+
"text_level": 1,
|
| 282 |
+
"bbox": [
|
| 283 |
+
176,
|
| 284 |
+
579,
|
| 285 |
+
361,
|
| 286 |
+
593
|
| 287 |
+
],
|
| 288 |
+
"page_idx": 2
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"type": "text",
|
| 292 |
+
"text": "Concept learning has different meanings in different contexts, and how to confirm a concept is learnt remains an open question. In Jia et al. (2013), a concept is learnt if a generative model is learnt from a small number of positive samples. In Lake et al. (2015), a concept is learnt if a model learnt from only one instance can generalize to various tasks. Higgins et al. (2016) claims a concept is learnt when a model can predict unseen objects’ sizes and positions. To summarize, they evaluate whether a concept is learnt through a model’s generalization ability. In even earlier works like Zhu et al. (2010);Yang et al. (2010), concept learning means a object/attribute classification task dealing with appearance variations, in which a concept is actually already pre-defined. ",
|
| 293 |
+
"bbox": [
|
| 294 |
+
174,
|
| 295 |
+
606,
|
| 296 |
+
825,
|
| 297 |
+
718
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "Unlike these works, we investigate the concepts of game rules instead of object/attribute. Unlike Jia et al. (2013);Lake et al. (2015);Higgins et al. (2016), we claim a concept is learnt through a novel testing protocol instead of generalization ability. Why generalization ability could show a concept is learnt? We think the reason is that a model understands a concept if it can use it in more cases. To this end, we argue that our protocol could also show a concept is learnt because the learnt representations in our experiments can be used to decide what to do though no rule about what need to be done is provided. ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
174,
|
| 306 |
+
724,
|
| 307 |
+
825,
|
| 308 |
+
821
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 2
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "2.2 CROSS-MODAL SUPERVISION ",
|
| 315 |
+
"text_level": 1,
|
| 316 |
+
"bbox": [
|
| 317 |
+
176,
|
| 318 |
+
840,
|
| 319 |
+
416,
|
| 320 |
+
854
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 2
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "The literature of cross-model supervision and the differences between this paper and existing ones are already covered in last section. Here we re-claim it briefly: Owens et al. (2016);Castrejon et al. ´ (2016);Gupta et al. (2016) learn representations across modalities because actually they are different observations of a same (object or attribute) concept. Whether this methodology is applicable for higher-level concepts like game rules remains an open question and we provide positive answers to this question. ",
|
| 327 |
+
"bbox": [
|
| 328 |
+
174,
|
| 329 |
+
867,
|
| 330 |
+
823,
|
| 331 |
+
924
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 2
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "image",
|
| 337 |
+
"img_path": "images/8892a56ef87396c0bedee70e871be9fad495f0c0c15b30f3151d2d2719a136dd.jpg",
|
| 338 |
+
"image_caption": [
|
| 339 |
+
"Figure 2: 18 different types of chessboard states and corresponding labels. "
|
| 340 |
+
],
|
| 341 |
+
"image_footnote": [],
|
| 342 |
+
"bbox": [
|
| 343 |
+
173,
|
| 344 |
+
98,
|
| 345 |
+
826,
|
| 346 |
+
385
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 3
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "text",
|
| 352 |
+
"text": "",
|
| 353 |
+
"bbox": [
|
| 354 |
+
171,
|
| 355 |
+
452,
|
| 356 |
+
825,
|
| 357 |
+
479
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 3
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "2.3 CLASS ACTIVATION MAPPING ",
|
| 364 |
+
"text_level": 1,
|
| 365 |
+
"bbox": [
|
| 366 |
+
176,
|
| 367 |
+
500,
|
| 368 |
+
423,
|
| 369 |
+
513
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 3
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "Before the technique of class activation mapping is introduced by Zhou et al. (2016), pioneering works like Simonyan et al. (2014);Zhou et al. (2015) have already shown CNN’s ability to localize objects with image-level labels. Although with different techniques, Simonyan et al. (2014);Zhou et al. (2015)’s activation visualization results also focus on salient regions. Unlike these works, we show that class activation mapping can activate at non-salient regions, or say more specifically, completely texture-free regions. Since the activated patch itself provides no information, all discriminative information comes from its context. This is another strong evidence to prove CNN’s capability to collect information from receptive fields, as a hierarchical visual model. ",
|
| 376 |
+
"bbox": [
|
| 377 |
+
174,
|
| 378 |
+
526,
|
| 379 |
+
825,
|
| 380 |
+
637
|
| 381 |
+
],
|
| 382 |
+
"page_idx": 3
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"type": "text",
|
| 386 |
+
"text": "3 EXPERIMENT I: GAME ENDS IN NEXT MOVE ",
|
| 387 |
+
"text_level": 1,
|
| 388 |
+
"bbox": [
|
| 389 |
+
174,
|
| 390 |
+
660,
|
| 391 |
+
580,
|
| 392 |
+
678
|
| 393 |
+
],
|
| 394 |
+
"page_idx": 3
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"type": "text",
|
| 398 |
+
"text": "A tic-tac-toe chessboard is a $3 \\times 3$ grid, and there are two players (black and white in our case). Due to duality, we generate all training samples assuming the black side takes the first move. The state space of tic-tac-toe is small consisting of totally $3 ^ { 9 } = 1 9 6 8 3$ combinations. Among them, many combinations are illegal such as the one in which all 9 pieces are black. We exhaustively search over the space according to a recursive simulation algorithm, in which: (1) the chessboard state is denoted by an integer smaller than 19683. (2) every state corresponds to a 9-d vector, with each element can take a value from this set $\\{ 0$ -illegal, 1-black win, 2-white win, 4-tie, 5-uncertain}. We call this 9-d vector a state transfer vector, denoting what will happen if the next legal piece placement happens at according location. (3) generated transfer vectors can predict the existence of a critical move that will finish the game in advance. We will release this simulation code. ",
|
| 399 |
+
"bbox": [
|
| 400 |
+
174,
|
| 401 |
+
694,
|
| 402 |
+
825,
|
| 403 |
+
833
|
| 404 |
+
],
|
| 405 |
+
"page_idx": 3
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"type": "text",
|
| 409 |
+
"text": "After pruning out illegal states, we collect 4486 possible states in total. Among these samples, we further take out 1029 states that a certain side is going to win in the next move. We then transform these chessboard states into visual representations (gray-scale images at resolution (180, 180)). Each of these 1029 samples is assigned a label according to the state transfer vectors. There are totally 18 different labels illustrating 2 (sides) $\\times 9$ (locations). As demonstrated by Fig 2, we randomly pick a sample for each label. As mentioned before black side takes the first move, thus if the numbers of black and white pieces are equal the next move will be black side’s and if there are one more black piece the next move will be white side’s. ",
|
| 410 |
+
"bbox": [
|
| 411 |
+
174,
|
| 412 |
+
840,
|
| 413 |
+
823,
|
| 414 |
+
922
|
| 415 |
+
],
|
| 416 |
+
"page_idx": 3
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"type": "image",
|
| 420 |
+
"img_path": "images/8f8d60a34b686f41449c3251b6fd487b761cb5d326e1b51c7d782dde4f49e98b.jpg",
|
| 421 |
+
"image_caption": [
|
| 422 |
+
"Figure 3: Class activation mapping results on our dataset. "
|
| 423 |
+
],
|
| 424 |
+
"image_footnote": [],
|
| 425 |
+
"bbox": [
|
| 426 |
+
176,
|
| 427 |
+
98,
|
| 428 |
+
825,
|
| 429 |
+
551
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 4
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "text",
|
| 435 |
+
"text": "",
|
| 436 |
+
"bbox": [
|
| 437 |
+
174,
|
| 438 |
+
623,
|
| 439 |
+
823,
|
| 440 |
+
651
|
| 441 |
+
],
|
| 442 |
+
"page_idx": 4
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"type": "text",
|
| 446 |
+
"text": "Although the concepts of two sides and nine locations are coded into the labels, this kind of supervision is still weak supervision. Because what we are showing to the algorithm is just 18 abstract categories as Fig 2 shows. Could an algorithm figure out what it needs to do by observing these visual inputs? We think even for a human baby it is difficult because no concepts like this is a game or you need to find out how to win are provided. In the setting of deep reinforcement learning there is at least an objective of getting higher score to pursue. ",
|
| 447 |
+
"bbox": [
|
| 448 |
+
174,
|
| 449 |
+
659,
|
| 450 |
+
825,
|
| 451 |
+
742
|
| 452 |
+
],
|
| 453 |
+
"page_idx": 4
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"type": "text",
|
| 457 |
+
"text": "As mentioned before, the method we exploit is to train a classification network on this rendered dataset (Fig 2) and analyze learnt representations with the technique of class activation mapping. As Zhou et al. (2016) suggests, we add one global average pooling layer after the last convolutional layer of a pre-trained AlexNet model. All fully connected layers of the AlexNet model are discarded, and a new fully connected layer is added after the global average pooling layer. After the new classification network is fine-tuned on our dataset, a CAM visualization is generated by weighting the outputs of the last convolutional layer with parameters from the added fully connected layer. Our CAM implementation is built upon Marvin and it will be released. ",
|
| 458 |
+
"bbox": [
|
| 459 |
+
174,
|
| 460 |
+
750,
|
| 461 |
+
825,
|
| 462 |
+
861
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 4
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "text",
|
| 468 |
+
"text": "Due to the simplicity of this classification task, the top one classification accuracy is $100 \\%$ (not surprisingly). Class activation mapping results are provided in Fig 3 and here we present the reasons why we claim concepts are learnt: (1) We provide 18 abstract categories, but in order to classify visual inputs into these 18 categories the network’s attention is roughly fixed upon chessboard grids. ",
|
| 469 |
+
"bbox": [
|
| 470 |
+
174,
|
| 471 |
+
867,
|
| 472 |
+
823,
|
| 473 |
+
924
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 4
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "image",
|
| 479 |
+
"img_path": "images/226e2c831d860a179e42335e7f0432775ef17d4bdb8ac894947b5e24c52ec26f.jpg",
|
| 480 |
+
"image_caption": [
|
| 481 |
+
"Figure 4: Class activation mapping results after grid lines are added. "
|
| 482 |
+
],
|
| 483 |
+
"image_footnote": [],
|
| 484 |
+
"bbox": [
|
| 485 |
+
173,
|
| 486 |
+
101,
|
| 487 |
+
825,
|
| 488 |
+
452
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 5
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "This means the concept of grid emerges in the learnt representation. (2) If we place a piece at the most activated location in Fig 3, that will be the right (and legal) move to finish the game. On one hand, this means the concept of winning rule emerges in the learnt representation. On the other hand, this means this learnt concept can be used to deal with un-taught task (analogous to Jia et al. (2013);Lake et al. (2015);Higgins et al. (2016) who use generalization ability to illustrate that concepts are learnt). (3) As Fig 3cehijnpq show, both sides can win in the next move if we violate the take-turns rule. However, the network pays attention to the right location that is consistent to the rule. For example, in Fig 3j, it seems that placing a black piece at the left-top location will also end the game. However, this move will violate the rule because there are already more black pieces than white pieces meaning that this is the white side’s turn. This means that the concept of two sides emerges in learnt representation. ",
|
| 495 |
+
"bbox": [
|
| 496 |
+
174,
|
| 497 |
+
521,
|
| 498 |
+
825,
|
| 499 |
+
674
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 5
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "text",
|
| 505 |
+
"text": "Except for learnt concepts, we analyze what this experiment provides for the remaining two questions. To the second question: results in Fig 3 show that the methodology of generating labels from one modality (state transfer vectors in our case) to supervise another modality is still applicable. More importantly, we use images as inputs yet the learnt visual representations contain not only visual saliency information but also untold chess game concepts. To the third question: as Fig 3 shows, most activated regions are empty spaces on the chessboard. ",
|
| 506 |
+
"bbox": [
|
| 507 |
+
174,
|
| 508 |
+
681,
|
| 509 |
+
825,
|
| 510 |
+
765
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 5
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "text",
|
| 516 |
+
"text": "4 EXPERIMENT II: ADDING GRID LINES",
|
| 517 |
+
"text_level": 1,
|
| 518 |
+
"bbox": [
|
| 519 |
+
176,
|
| 520 |
+
791,
|
| 521 |
+
524,
|
| 522 |
+
808
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 5
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "text",
|
| 528 |
+
"text": "Since we claim complicated concepts emerge in learnt visual representations, a natural question will be: if the chessboard’s and pieces’ appearances are changed does this experiment still work? Thus we design this experiment by adding grid lines to the chessboards when rendering synthetic data (Fig 4). The intentions behind this design is three-folded: (1) in this case, the chessboard’s appearance is changed. (2) after these lines are added, the concept that there is a chessboard grid is actually implied. Still, we do not think these lines directly provide the concept of chessboard grid thus we use the word imply. Whether the network can figure out what these lines mean still remain uncertain. (3) those locations that are completely empty in Experiment I are no longer empty from the perspective of information (still empty from the perspective of game rule). ",
|
| 529 |
+
"bbox": [
|
| 530 |
+
174,
|
| 531 |
+
825,
|
| 532 |
+
825,
|
| 533 |
+
924
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 5
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "image",
|
| 539 |
+
"img_path": "images/5238a69f19c05ea5229faba22dda67bc64c677462955158ffe8170e6749eebed.jpg",
|
| 540 |
+
"image_caption": [
|
| 541 |
+
"Figure 5: Class activation mapping results after piece appearance is changed. "
|
| 542 |
+
],
|
| 543 |
+
"image_footnote": [],
|
| 544 |
+
"bbox": [
|
| 545 |
+
173,
|
| 546 |
+
103,
|
| 547 |
+
825,
|
| 548 |
+
454
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 6
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "text",
|
| 554 |
+
"text": "",
|
| 555 |
+
"bbox": [
|
| 556 |
+
174,
|
| 557 |
+
518,
|
| 558 |
+
823,
|
| 559 |
+
547
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 6
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "text",
|
| 565 |
+
"text": "We train the same network on the newly rendered dataset with grid lines and calculate CAM results in the same way. The results are demonstrated by Fig 4. Generally speaking, the grid lines allow the network to better activate at the location of right move, making them stands out more on the heatmap. What does this mean to the three intentions mentioned in last paragraph? (1) Firstly, it shows that our experiment is robust to chess board appearance variance. (2) Secondly, after implying the concept that there is a chessboard grid, the network performs better at paying attention to the location of right move. Again we compare this phenomenon against how a human baby learns. Although not supported by phycological experiment, we think with a chessboard grid a human baby is more easy to figure out the game rule than without. (3) Thirdly, heatmap changes in Fig 4 is not surprising, because after adding those lines, the empty (from the perspective of game rule) regions contain more gradients for lower layers of a CNN to collect. However, again it supports that activating at non-salient regions is NOT trivial. ",
|
| 566 |
+
"bbox": [
|
| 567 |
+
174,
|
| 568 |
+
554,
|
| 569 |
+
825,
|
| 570 |
+
720
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 6
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "text",
|
| 576 |
+
"text": "5 EXPERIMENT III: PIECE APPEARANCE CHANGE ",
|
| 577 |
+
"text_level": 1,
|
| 578 |
+
"bbox": [
|
| 579 |
+
176,
|
| 580 |
+
741,
|
| 581 |
+
604,
|
| 582 |
+
757
|
| 583 |
+
],
|
| 584 |
+
"page_idx": 6
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"type": "text",
|
| 588 |
+
"text": "In this experiment we change the appearance of the piece by: (1) replacing black boxes with white circles; (2) replacing white boxes with black crosses. Note that in this case the white side moves first. Again we train the same network and visualize with CAM. The results comparison is provided in Fig 6. Further we add grid lines to the cross/circle chessboard. ",
|
| 589 |
+
"bbox": [
|
| 590 |
+
174,
|
| 591 |
+
773,
|
| 592 |
+
825,
|
| 593 |
+
829
|
| 594 |
+
],
|
| 595 |
+
"page_idx": 6
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"type": "text",
|
| 599 |
+
"text": "6 EXPERIMENT IV: MODEL BEHAVIOR OVER TIME ",
|
| 600 |
+
"text_level": 1,
|
| 601 |
+
"bbox": [
|
| 602 |
+
174,
|
| 603 |
+
849,
|
| 604 |
+
614,
|
| 605 |
+
866
|
| 606 |
+
],
|
| 607 |
+
"page_idx": 6
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"type": "text",
|
| 611 |
+
"text": "In order to further demonstrate the non-triviality of the model behaviors, we design this experiment. We train on the dataset in Experiment I with 1000 iterations and snap-shotted the parameters at 500th iteration. The classification accuracy is $100 \\%$ at 1000th iteration and $5 3 . 1 3 \\%$ at $5 0 0 \\mathrm { { t h } }$ iteration. The ",
|
| 612 |
+
"bbox": [
|
| 613 |
+
176,
|
| 614 |
+
882,
|
| 615 |
+
823,
|
| 616 |
+
922
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 6
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "image",
|
| 622 |
+
"img_path": "images/a8f8adc772c519b2e57b717c8754a2ce124e23d0e0deb48f45376d388ad84535.jpg",
|
| 623 |
+
"image_caption": [
|
| 624 |
+
"Figure 6: Class activation mapping results on true positive samples at 500 iterations (left, $5 3 . 1 3 \\%$ accuracy) and 1000 iterations (right, $100 \\%$ accuracy). "
|
| 625 |
+
],
|
| 626 |
+
"image_footnote": [],
|
| 627 |
+
"bbox": [
|
| 628 |
+
173,
|
| 629 |
+
99,
|
| 630 |
+
826,
|
| 631 |
+
291
|
| 632 |
+
],
|
| 633 |
+
"page_idx": 7
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"type": "image",
|
| 637 |
+
"img_path": "images/01b182b4efe7c03df5fc6c15a4502eb08266f0fecea19c4505bd2b42f31fed7e.jpg",
|
| 638 |
+
"image_caption": [
|
| 639 |
+
"Figure 7: We propose two quantitative evaluation protocols: (a) by selecting the most activated patch, we calculate how frequent the representation fire at the correct location; (b) we correlate the representation with an ideal activation map. "
|
| 640 |
+
],
|
| 641 |
+
"image_footnote": [],
|
| 642 |
+
"bbox": [
|
| 643 |
+
173,
|
| 644 |
+
357,
|
| 645 |
+
813,
|
| 646 |
+
525
|
| 647 |
+
],
|
| 648 |
+
"page_idx": 7
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"type": "text",
|
| 652 |
+
"text": "CAM results are shown by Fig 5 in which all samples are true positives. We think it shows that there are two ways to achieve this classification task: (1) by paying attention to the visual patterns formed by the existing pieces; (2) by paying attention to where the next piece should be placed. This experiment shows that at an earlier stage of learning the model’s behavior is consistent to the first hypothesis and after the training is completely done the network can finally fire at correct location. ",
|
| 653 |
+
"bbox": [
|
| 654 |
+
174,
|
| 655 |
+
619,
|
| 656 |
+
825,
|
| 657 |
+
689
|
| 658 |
+
],
|
| 659 |
+
"page_idx": 7
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"type": "text",
|
| 663 |
+
"text": "7 QUANTITATIVE EVALUATION ",
|
| 664 |
+
"text_level": 1,
|
| 665 |
+
"bbox": [
|
| 666 |
+
176,
|
| 667 |
+
712,
|
| 668 |
+
446,
|
| 669 |
+
728
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 7
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "text",
|
| 675 |
+
"text": "We propose two different quantitative evaluation protocols. The first one is representation accuracy (RAC), for which we select the most activated patch and examine whether it is the correct location to end the game. The second one is representation consistency (RCO), which correlates the normalized representation and a normalized ideal activation map. The quantitative comparisons are shown in Table 1, in which NAC stands for network classification accuracy. These results quantitatively support that: (1) learnt representation can be used to predict the right move at an over $70 \\%$ accuracy. (2) adding grid lines (implying the concept of a chessboard) dramatically improves localization. ",
|
| 676 |
+
"bbox": [
|
| 677 |
+
174,
|
| 678 |
+
743,
|
| 679 |
+
825,
|
| 680 |
+
842
|
| 681 |
+
],
|
| 682 |
+
"page_idx": 7
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"type": "text",
|
| 686 |
+
"text": "8 CONCLUSION ",
|
| 687 |
+
"text_level": 1,
|
| 688 |
+
"bbox": [
|
| 689 |
+
174,
|
| 690 |
+
863,
|
| 691 |
+
318,
|
| 692 |
+
878
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 7
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "text",
|
| 698 |
+
"text": "The core experiment in this paper is to train a classification CNN on rendered chessboard images under weak labels. After class activation mapping visualization, we analyse and interpret the results in three different backgrounds. Although simple, we argue that our results are enough to show that: (1) a CNN can automatically figure out complicated game rule concepts in this case. (2) cross-modal supervision for representation learning is still applicable in this case of higher-level semantics. (3) the technique of CAM can activate at non-salient regions, testifying CNN’s capability to collect information from context in an extreme case (only context has information). ",
|
| 699 |
+
"bbox": [
|
| 700 |
+
174,
|
| 701 |
+
895,
|
| 702 |
+
823,
|
| 703 |
+
924
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 7
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "table",
|
| 709 |
+
"img_path": "images/382a7fcea6ebda5cb37874260165473416ddb9a6888e51f6246b7efa2d7a595f.jpg",
|
| 710 |
+
"table_caption": [
|
| 711 |
+
"Table 1: Quantitative results. "
|
| 712 |
+
],
|
| 713 |
+
"table_footnote": [],
|
| 714 |
+
"table_body": "<table><tr><td>Experiment</td><td>I original</td><td>II grid</td><td>Ⅲ piece</td><td>ⅢI piece+grid</td><td>IV 500th</td></tr><tr><td>NAC (%)</td><td>100.00</td><td>100.00</td><td>100.00</td><td>100.00</td><td>53.13</td></tr><tr><td>RAC (%)</td><td>71.82</td><td>97.25</td><td>83.77</td><td>99.00</td><td>27.87</td></tr><tr><td>RCO (103)</td><td>-8.096</td><td>-5.115</td><td>-7.751</td><td>-4.9321</td><td>-10.610</td></tr></table>",
|
| 715 |
+
"bbox": [
|
| 716 |
+
223,
|
| 717 |
+
98,
|
| 718 |
+
776,
|
| 719 |
+
190
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 8
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "text",
|
| 725 |
+
"text": "",
|
| 726 |
+
"bbox": [
|
| 727 |
+
173,
|
| 728 |
+
246,
|
| 729 |
+
825,
|
| 730 |
+
315
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 8
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "text",
|
| 736 |
+
"text": "REFERENCES ",
|
| 737 |
+
"text_level": 1,
|
| 738 |
+
"bbox": [
|
| 739 |
+
176,
|
| 740 |
+
337,
|
| 741 |
+
285,
|
| 742 |
+
352
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 8
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "Samuel Albanie and Andrea Vedaldi. Learning grimaces by watching tv. In BMVC, 2016. ",
|
| 749 |
+
"bbox": [
|
| 750 |
+
171,
|
| 751 |
+
359,
|
| 752 |
+
761,
|
| 753 |
+
376
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 8
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "Lluıs Castrejon, Yusuf Aytar, Carl Vondrick, Hamed Pirsiavash, and Antonio Torralba. Learning ´ aligned cross-modal representations from weakly aligned data. In CVPR, 2016. ",
|
| 760 |
+
"bbox": [
|
| 761 |
+
173,
|
| 762 |
+
383,
|
| 763 |
+
821,
|
| 764 |
+
412
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 8
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"text": "Saurabh Gupta, Judy Hoffman, and Jitendra Malik. Cross modal distillation for supervision transfer. In CVPR, 2016. ",
|
| 771 |
+
"bbox": [
|
| 772 |
+
173,
|
| 773 |
+
421,
|
| 774 |
+
820,
|
| 775 |
+
450
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 8
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "text",
|
| 781 |
+
"text": "Irina Higgins, Loic Matthey, Xavier Glorot, Arka Pal, Benigno Uria, Charles Blundell, Shakir Mohamed, and Alexander Lerchner. Early visual concept learning with unsupervised deep learning. arXiv:1606.05579, 2016. ",
|
| 782 |
+
"bbox": [
|
| 783 |
+
174,
|
| 784 |
+
459,
|
| 785 |
+
825,
|
| 786 |
+
502
|
| 787 |
+
],
|
| 788 |
+
"page_idx": 8
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "text",
|
| 792 |
+
"text": "Yangqing Jia, Joshua T Abbott, Joseph Austerweil, Thomas Griffiths, and Trevor Darrell. Visual concept learning: Combining machine vision and bayesian generalization on concept hierarchies. In NIPS, 2013. ",
|
| 793 |
+
"bbox": [
|
| 794 |
+
174,
|
| 795 |
+
511,
|
| 796 |
+
825,
|
| 797 |
+
554
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 8
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "text",
|
| 803 |
+
"text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, 2012. ",
|
| 804 |
+
"bbox": [
|
| 805 |
+
173,
|
| 806 |
+
563,
|
| 807 |
+
821,
|
| 808 |
+
592
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 8
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "Brenden M Lake, Ruslan Salakhutdinov, and Joshua B Tenenbaum. Human-level concept learning through probabilistic program induction. In Science, 2015. ",
|
| 815 |
+
"bbox": [
|
| 816 |
+
173,
|
| 817 |
+
599,
|
| 818 |
+
825,
|
| 819 |
+
630
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 8
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"text": "Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. In Nature, 2015. ",
|
| 826 |
+
"bbox": [
|
| 827 |
+
176,
|
| 828 |
+
637,
|
| 829 |
+
823,
|
| 830 |
+
681
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 8
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"text": "Andrew Owens, Jiajun Wu, Josh H McDermott, William T Freeman, and Antonio Torralba. Ambient sound provides supervision for visual learning. In ECCV, 2016. ",
|
| 837 |
+
"bbox": [
|
| 838 |
+
171,
|
| 839 |
+
689,
|
| 840 |
+
823,
|
| 841 |
+
719
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 8
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. 2014. ",
|
| 848 |
+
"bbox": [
|
| 849 |
+
171,
|
| 850 |
+
727,
|
| 851 |
+
821,
|
| 852 |
+
757
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 8
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "text",
|
| 858 |
+
"text": "Jingjing Yang, Yuanning Li, Yonghong Tian, Ling-Yu Duan, and Wen Gao. Per-sample multiple kernel approach for visual concept learning. In Journal on Image and Video Processing, 2010. ",
|
| 859 |
+
"bbox": [
|
| 860 |
+
171,
|
| 861 |
+
765,
|
| 862 |
+
823,
|
| 863 |
+
795
|
| 864 |
+
],
|
| 865 |
+
"page_idx": 8
|
| 866 |
+
},
|
| 867 |
+
{
|
| 868 |
+
"type": "text",
|
| 869 |
+
"text": "Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Object detectors emerge in deep scene cnns. In ICLR, 2015. ",
|
| 870 |
+
"bbox": [
|
| 871 |
+
173,
|
| 872 |
+
803,
|
| 873 |
+
823,
|
| 874 |
+
832
|
| 875 |
+
],
|
| 876 |
+
"page_idx": 8
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
"type": "text",
|
| 880 |
+
"text": "Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In CVPR, 2016. ",
|
| 881 |
+
"bbox": [
|
| 882 |
+
169,
|
| 883 |
+
840,
|
| 884 |
+
823,
|
| 885 |
+
869
|
| 886 |
+
],
|
| 887 |
+
"page_idx": 8
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"type": "text",
|
| 891 |
+
"text": "Shiai Zhu, Gang Wang, Chong-Wah Ngo, and Yu-Gang Jiang. On the sampling of web images for learning visual concept classifiers. In Proceedings of the ACM International Conference on Image and Video Retrieval, 2010. ",
|
| 892 |
+
"bbox": [
|
| 893 |
+
176,
|
| 894 |
+
878,
|
| 895 |
+
823,
|
| 896 |
+
921
|
| 897 |
+
],
|
| 898 |
+
"page_idx": 8
|
| 899 |
+
}
|
| 900 |
+
]
|
parse/train/rJo9n9Feg/rJo9n9Feg_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|