ZHANGYUXUAN-zR commited on
Commit
877d91f
·
verified ·
1 Parent(s): 61bac7a

Add files using upload-large-folder tool

Browse files
parse/train/BkfbpsAcF7/BkfbpsAcF7_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BkfbpsAcF7/BkfbpsAcF7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Cnon5ezMHtu/Cnon5ezMHtu.md ADDED
@@ -0,0 +1,400 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NEURAL ARCHITECTURE SEARCH ON IMAGENET IN FOUR GPU HOURS: A THEORETICALLY INSPIRED PERSPECTIVE
2
+
3
+ Wuyang Chen, Xinyu Gong, Zhangyang Wang Department of Electrical and Computer Engineering The University of Texas at Austin, Austin, TX, USA {wuyang.chen,xinyu.gong,atlaswang}@utexas.edu
4
+
5
+ # ABSTRACT
6
+
7
+ Neural Architecture Search (NAS) has been explosively studied to automate the discovery of top-performer neural networks. Current works require heavy training of supernet or intensive architecture evaluations, thus suffering from heavy resource consumption and often incurring search bias due to truncated training or approximations. Can we select the best neural architectures without involving any training and eliminate a drastic portion of the search cost? We provide an affirmative answer, by proposing a novel framework called training-free neural architecture search (TE-NAS). TE-NAS ranks architectures by analyzing the spectrum of the neural tangent kernel (NTK) and the number of linear regions in the input space. Both are motivated by recent theory advances in deep networks and can be computed without any training and any label. We show that: (1) these two measurements imply the trainability and expressivity of a neural network; (2) they strongly correlate with the network’s test accuracy. Further on, we design a pruning-based NAS mechanism to achieve a more flexible and superior trade-off between the trainability and expressivity during the search. In NAS-Bench-201 and DARTS search spaces, TE-NAS completes high-quality search but only costs 0.5 and 4 GPU hours with one 1080Ti on CIFAR-10 and ImageNet, respectively. We hope our work inspires more attempts in bridging the theoretical findings of deep networks and practical impacts in real NAS applications. Code is available at: https://github.com/VITA-Group/TENAS.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ The recent development of deep networks significantly contributes to the success of computer vision. Thanks to many efforts by human designers, the performance of deep networks have been significantly boosted (Krizhevsky et al., 2012; Simonyan & Zisserman, 2014; Szegedy et al., 2015; He et al., 2016; Xie et al., 2017). However, the manual creation of new network architectures not only costs enormous time and resources due to trial-and-error, but also depends on the design experience that does not always scale up. To reduce the human efforts and costs, neural architecture search (NAS) has recently amassed explosive interests, leading to principled and automated discovery for good architectures in a given search space of candidates (Zoph & Le, 2016; Brock et al., 2017; Pham et al., 2018; Liu et al., 2018a; Chen et al., 2018; Bender et al., 2018; Gong et al., 2019; Chen et al., 2020a; Fu et al., 2020).
12
+
13
+ As an optimization problem, NAS faces two core questions: 1) “how to evaluate”, i.e. the objective function that defines what are good architectures we want; 2) “how to optimize”, i.e. by what means we could effectively optimize the objective function. These two questions are entangled and highly non-trivial, since the search spaces are of extremely high dimension, and the generalization ability of architectures cannot be easily inferred (Dong & Yang, 2020; Dong et al., 2020). Existing NAS methods mainly leverage the validation set and conduct accuracy-driven architecture optimization. They either formulate the search space as a super-network (“supernet”) and make the training loss differentiable through the architecture parameters (Liu et al., 2018b), or treat the architecture selection as a sequential decision making process (Zoph & Le, 2016) or evolution of genetics (Real et al., 2019). However, these NAS algorithms suffer from heavy consumption of both time and GPU resources. Training a supernet till convergence is extremely slow, even with many effective heuristics for sampling or channel approximations (Dong & Yang, 2019; Xu et al., 2019). Approximated proxy inference such as truncated training/early stopping can accelerate the search, but is well known to introduce search bias to the inaccurate results obtained (Pham et al., 2018; Liang et al., 2019; Tan et al., 2020). The heavy search cost not only slows down the discovery of novel architectures, but also blocks us from more meaningfully understanding the NAS behaviors.
14
+
15
+ On the other hand, the analysis of neural network’s trainability (how effective a network can be optimized via gradient descent) and expressivity (how complex the function a network can represent) has witnessed exciting development recently in the deep learning theory fields. By formulating neural networks as a Gaussian Process (no training involved), the gradient descent training dynamics can be characterized by the Neural Tangent Kernel (NTK) of infinite (Lee et al., 2019) or finite (Yang, 2019) width networks, from which several useful measures can be derived to depict the network trainability at the initialization. Hanin & Rolnick (2019a;b); Xiong et al. (2020) describe another measure of network expressivity, also without any training, by counting the number of unique linear regions that a neural network can divide in its input space. We are therefore inspired to ask:
16
+
17
+ • How to optimize NAS at network’s initialization without involving any training, thus significantly eliminating a heavy portion of the search cost?
18
+ • Can we define how to evaluate in NAS by analyzing the trainability and expressivity of architectures, and further benefit our understanding of the search process?
19
+
20
+ Our answers are yes to both questions. In this work, we propose TE-NAS, a framework for trainingfree neural architecture search. We leverage two indicators, the condition number of NTK and the number of linear regions, that can decouple and effectively characterize the trainability and expressivity of architectures respectively in complex NAS search spaces. Most importantly, these two indicators can be measured in a training-free and label-free manner, thus largely accelerates the NAS search process and benefits the understanding of discovered architectures. To our best knowledge, TE-NAS makes the first attempt to bridge the theoretical findings of deep neural networks and real-world NAS applications. While we intend not to claim that the two indicators we use are the only nor the best options, we hope our work opens a door to theoretically-inspired NAS and inspires the discovery of more deep network indicators. Our contributions are summarized as below:
21
+
22
+ • We identify and investigate two training-free and label-free indicators to rank the quality of deep architectures: the spectrum of their NTKs, and the number of linear regions in their input space. Our study finds that they reliably indicate the trainability and expressivity of a deep network respectively, and are strongly correlated with the network’s test accuracy.
23
+ • We leverage the above two theoretically-inspired indicators to establish a training-free NAS framework, TE-NAS, therefore eliminating a drastic portion of the search cost. We further introduce a pruning-based mechanism, to boost search efficiency and to more flexibly trade-off between trainability and expressivity.
24
+ In NAS-Bench-201/DARTS search spaces, TE-NAS discovers architectures with a strong performance at remarkably lower search costs, compared to previous efforts. With just one $1 0 8 0 \mathrm { T i }$ , it only costs 0.5 GPU hours to search on CIFAR10, and 4 GPU hours on ImageNet, respectively, setting the new record for ultra-efficient yet high-quality NAS.
25
+
26
+ # 2 RELATED WORKS
27
+
28
+ Neural architecture search (NAS) is recently proposed to accelerate the principled and automated discovery of high-performance networks. However, most works suffer from heavy search cost, for both weight-sharing based methods (Liu et al., 2018b; Dong & Yang, 2019; Liu et al., 2019; Yu et al., 2020a; Li et al., 2020a; Yang et al., 2020a) and single-path sampling-based methods (Pham et al., 2018; Guo et al., 2019; Real et al., 2019; Tan et al., 2020; Li et al., 2020c; Yang et al., 2020b). A one-shot super network can share its parameters to sampled sub-networks and accelerate the architecture evaluations, but it is very heavy and hard to optimize and suffers from a poor correlation between its accuracy and those of the sub-networks (Yu et al., 2020c). Sampling-based methods achieve more accurate architecture evaluations, but their truncated training still imposes bias to the performance ranking since this is based on the results of early training stages.
29
+
30
+ Instead of estimating architecture performance by direct training, people also try to predict network’s accuracy (or ranking), called predictor based NAS methods (Liu et al., 2018a; Luo et al., 2018; Dai et al., 2019; Luo et al., 2020). Graph neural network (GNN) is a popular choice as the predictor model (Wen et al., 2019; Chen et al., 2020b). Siems et al. (2020) even propose the first large-scale surrogate benchmark, where most of the architectures’ accuracies are predicted by a pretrained GNN predictor. The learned predictor can achieve highly accurate performance evaluation. However, the data collection step - sampling representative architectures and train them till converge - still requires extremely high cost. People have to sample and train 2,000 to 50,000 architectures to serve as the training data for the predictor. Moreover, none of these works can demonstrate the cross-space transferability of their predictors. This means one has to repeat the data collection and predictor training whenever facing an unseen search space, which is highly nonscalable.
31
+
32
+ The heavy cost of architecture evaluation hinders the understanding of the NAS search process. Recent pioneer works like Shu et al. (2019) observed that DARTS and ENAS tend to favor architectures with wide and shallow cell structures due to their smooth loss landscape. Siems et al. (2020) studied the distribution of test error for different cell depths and numbers of parameter-free operators. Chen & Hsieh (2020) for the first time regularizes the Hessian norm of the validation loss and visualizes the smoother loss landscape of the supernet. Li et al. (2020b) proposed to approximate the validation loss landscape by learning a mapping from neural architectures to their corresponding validate losses. Still, these analyses cannot be directly leveraged to guide the design of network architectures.
33
+
34
+ Mellor et al. (2020) recently proposed a NAS framework that does not involve training, which shares the same motivation with us towards training-free architecture search at initialization. They empirically find that the correlation between sample-wise input-output Jacobian can indicate the architecture’s test performance. However, why does the Jacobian work is not well explained and demonstrated. Their search performance on NAS-Bench-201 is still left behind by the state-of-the-art NAS works, and they did not extend to DARTs space.
35
+
36
+ Meanwhile, we see the evolving development of deep learning theory on neural networks. NTK (neural tangent kernel) is proposed to characterize the gradient descent training dynamics of infinite wide (Jacot et al., 2018) or finite wide deep networks (Hanin & Nica, 2019). Wide networks are also proved to evolve as linear models under gradient descent (Lee et al., 2019). This is further leveraged to decouple the trainability and generalization of networks (Xiao et al., 2019). Besides, a natural measure of ReLU network’s expressivity is the number of linear regions it can separate in its input space (Raghu et al., 2017; Montufar, 2017; Serra et al., 2018; Hanin & Rolnick, 2019a;b; Xiong ´ et al., 2020). In our work, we for the first time discover two important indicators that can effectively rank architectures, thus bridging the theoretic findings and real-world NAS applications. Instead of claiming the two indicators we discover are the best, we believe there are more meaningful properties of deep networks that can benefit the architecture search process. We leave them as open questions and encourage the community to study.
37
+
38
+ # 3 METHODS
39
+
40
+ The core motivation of our TE-NAS framework is to achieve architecture evaluation without involving any training, to significantly accelerate the NAS search process and reduce the search cost. In section 3.1 we present our study on two important indicators that reflect the trainability and expressivity of a neural network, and in section 3.2 we design a novel pruning-based method that can achieve a superior trade-off between the two indicators.
41
+
42
+ # 3.1 ANALYZING TRAINABILITY AND EXPRESSIVITY OF DEEP NETWORKS
43
+
44
+ Trainability and expressivity are distinct notions regarding a neural network (Xiao et al., 2019). A network can achieve high performance only if the function it can represent is complex enough and at the same time, it can be effectively trained by gradient descent.
45
+
46
+ # 3.1.1 TRAINABILITY BY CONDITION NUMBER OF NTK
47
+
48
+ The trainability of a neural network indicates how effective it can be optimized using gradient descent (Burkholz & Dubatovka, 2019; Hayou et al., 2019; Shin & Karniadakis, 2020). Although some heavy networks can theoretically represent complex functions, they not necessarily can be effectively trained by gradient descent. One typical example is that, even with a much more number of parameters, $\mathrm { V g g }$ networks (Simonyan & Zisserman, 2014) usually perform worse and require more special engineering tricks compared with ResNet family (He et al., 2016), whose superior trainability property is studied by Yang & Schoenholz (2017).
49
+
50
+ Recent work (Jacot et al., 2018; Lee et al., 2019; Chizat et al., 2019) studied the gradient descent training of neural networks using a quantity called the neural tangent kernel (NTK). The finite width NTK is defined by $\hat { \Theta } ( \pmb { x } , \pmb { x } ^ { \prime } ) = \bar { J } ( \pmb { x } ) \bar { J } ( \pmb { x } ^ { \prime } ) ^ { T }$ , where $J _ { i \alpha } ( { \pmb x } ) = \partial _ { \theta _ { \alpha } } z _ { i } ^ { L } ( { \pmb x } )$ is the Jacobian evaluated at a point $_ { \textbf { \em x } }$ for parameter $\theta _ { \alpha }$ , and $z _ { i } ^ { L }$ is the output of the $i$ -th neuron in the last output layer $L$ .
51
+
52
+ Lee et al. (2019) further proves that wide neural networks evolve as linear models using gradient descent, and their training dynamics is controlled by ODEs that can be solved as
53
+
54
+ $$
55
+ \mu _ { t } ( X _ { \mathrm { t r a i n } } ) = ( { \bf I } - e ^ { - \eta \hat { \Theta } _ { \mathrm { t r a i n } } t } ) Y _ { \mathrm { t r a i n } }
56
+ $$
57
+
58
+ for training data. Here $\mu _ { t } ( \pmb { x } ) = \mathbb { E } [ z _ { i } ^ { L } ( \pmb { x } ) ]$ is the expected outputs of an infinitely wide network. $\hat { \Theta } _ { \mathrm { t r a i n } }$ denotes the NTK between the training inputs, and $X _ { \mathrm { t r a i n } }$ and $Y _ { \mathrm { t r a i n } }$ are drawn from the training set $\mathcal { D } _ { \mathrm { t r a i n } }$ . As the training step $t$ tends to infinity we can see that Eq. 1 reduce to $\mu ( X _ { \mathrm { t r a i n } } ) = Y _ { \mathrm { t r a i n } } $ .
59
+
60
+ The relationship between the conditioning of $\hat { \Theta }$ and the trainability of networks is studied by Xiao et al. (2019), and we brief the conclusion as below. We can write Eq. 1 in terms of the spectrum of $\Theta$ :
61
+
62
+ $$
63
+ \mu _ { t } ( X _ { \mathrm { t r a i n } } ) _ { i } = ( \mathbf { I } - e ^ { - \eta \lambda _ { i } t } ) Y _ { \mathrm { t r a i n } , i } ,
64
+ $$
65
+
66
+ where $\lambda _ { i }$ are the eigenvalues of $\hat { \Theta } _ { \mathrm { t r a i n } }$ and we order the eigenvalues $\lambda _ { 0 } \geq \cdots \geq \lambda _ { m }$ . As it has been hypothesized by Lee et al. (2019) that the maximum feasible learning rate scales as $\eta \sim 2 / \lambda _ { 0 }$ , plugging this scaling for $\eta$ into Eq. 2 we see that the $\lambda _ { m }$ will converge exponentially at a rate given by $1 / \kappa$ where $\kappa = \lambda _ { 0 } / \lambda _ { m }$ is the condition number. Then we can conclude that if the $\kappa$ of the NTK associated with a neural network diverges then it will become untrainable, so we use $\kappa$ as a metric for trainability:
67
+
68
+ ![](images/3362e810a2898a515ca6d05037524ddffdc34e876ff29b129e781c046234c2f8.jpg)
69
+ Figure 1: Condition number of NTK $\kappa _ { \mathcal { N } }$ exhibits negative correlation with the test accuracy of architectures in NAS-Bench201 (Dong & Yang, 2020).
70
+
71
+ $$
72
+ \kappa _ { \mathcal { N } } = \frac { \lambda _ { 0 } } { \lambda _ { m } } .
73
+ $$
74
+
75
+ $\kappa _ { \mathcal { N } }$ is calculated without any gradient descent or label. Figure 1 demonstrates that the $\kappa _ { \mathcal { N } }$ is negatively correlated with the architecture’s test accuracy, with the Kendall-tau correlation as $- 0 . 4 2$ . Therefore, minimizing the $\kappa _ { \mathcal { N } }$ during the search will encourage the discovery of architectures with high performance.
76
+
77
+ # 3.1.2 EXPRESSIVITY BY NUMBER OF LINEAR REGIONS
78
+
79
+ The expressivity of a neural network indicates how complex the function it can represent (Hornik et al., 1989; Giryes et al., 2016). For ReLU networks, each ReLU function defines a linear boundary and divides its input space into two regions. Since the composition of piecewise linear functions is still piecewise linear, every ReLU network can be seen as a piecewise linear function. The input space of a ReLU network can be partitioned into distinct pieces (i.e. linear regions) (Figure 2), each of which is associated with a set of affine parameters, and the function represented by the network is affine when restricted to each piece. Therefore, it is natural to measure the expressivity of a ReLU network with the number of linear regions it can separate.
80
+
81
+ ![](images/7982522b6a745b07e4a9d64194fc492c3cc1ea03f68b2d71292f0590ce4f610a.jpg)
82
+ Figure 2: Example of linear regions divided by a ReLU network1
83
+
84
+ Following Raghu et al. (2017); Montufar (2017); Serra et al. (2018); Hanin & Rolnick´ $( 2 0 1 9 \mathrm { a } ; \mathbf { b } )$ Xiong et al. (2020), we first introduce the following definition of activation patterns and linear regions for ReLU CNNs.
85
+
86
+ Definition 1. Activation Patterns and Linear Regions (Xiong et al. (2020)) Let $\mathcal { N }$ be a ReLU CNN. An activation pattern of $\mathcal { N }$ is a function $_ { r }$ from the set of neurons to $\{ 1 , - 1 \}$ , i.e., for each neuron $z$ in $\mathcal { N }$ , we have $P ( z ) \in \{ 1 , - 1 \}$ . Let $\theta$ be a fixed set of parameters (weights and biases) in $\mathcal { N }$ , and $_ { r }$ be an activation pattern. The region corresponding to $_ { r }$ and $\theta$ is
87
+
88
+ $$
89
+ \begin{array} { r } { R ( P ; \theta ) : = \{ { \pmb x } ^ { 0 } \in \mathbb { R } ^ { C \times H \times W } : z ( { \pmb x } ^ { 0 } ; \theta ) \cdot { \pmb P } ( z ) > 0 , \quad \forall z \in \mathcal { N } \} , } \end{array}
90
+ $$
91
+
92
+ where $z ( \pmb { x } ^ { 0 } ; \theta )$ is the pre-activation of a neuron $z$ . Let $R _ { \mathcal { N } , \theta }$ denote the number of linear regions of $\mathcal { N }$ at $\theta$ , i.e., $R _ { \mathcal { N } , \theta } : = \# \{ R ( P ; \theta ) : R ( P ; \theta ) \neq \emptyset$ for some activation pattern $P \}$ .
93
+
94
+ Eq. 4 tells us that a linear region in the input space is a set of input data $\mathbf { x } ^ { 0 }$ that satisfies a certain fixed activation pattern $\bar { \boldsymbol { P } } ( z )$ , and therefore the number of linear regions $R _ { \mathcal { N } , \theta }$ measures how many unique activation patterns that can be divided by the network.
95
+
96
+ In our work, we repeat the measurement of the number of linear regions by sampling network parameters from the Kaiming Norm Initialization (He et al., 2015), and calculate the average as the approximation to its expectation:
97
+
98
+ $$
99
+ \hat { R } _ { \mathcal { N } } \simeq \mathbb { E } _ { \theta } R _ { \mathcal { N } , \theta }
100
+ $$
101
+
102
+ ![](images/b2d93de6fbb1a383c41afa3257e7e64a8de68570ea962a420a5a43e77c224850.jpg)
103
+ Figure 3: Number of linear regions $\hat { R } _ { \mathcal { N } }$ of architectures in NAS-Bench201 exhibits positive correlation with test accuracies.
104
+
105
+ We iterate through all architectures in NAS-Bench-201 (Dong & Yang, 2020), and calculate their numbers of linear regions (without any gradient descent or label). Figure 3 demonstrates that the number of linear regions is positively correlated with the architecture’s test accuracy, with the Kendall-tau correlation as 0.5. Therefore, maximizing the number of linear regions during the search will also encourage the discovery of architectures with high performance.
106
+
107
+ Finally, in Figure 4 we analyze the operator composition of top $10 \%$ architecture by maximizing $\hat { R } _ { \mathcal { N } }$ and minimizing $\kappa _ { \mathcal { N } }$ , respectively. We can clearly see that $\hat { R } _ { \mathcal { N } }$ and $\kappa _ { \mathcal { N } }$ have different preferences for choosing operators. They both choose a large ratio of conv $3 \times 3$ for high generalization performance. But meanwhile, $\hat { R } _ { \mathcal { N } }$ heavily selects $\mathbf { c o n v 1 } \times 1$ , and $\kappa _ { \mathcal { N } }$ leads to skip-connect, favoring the gradient flow.
108
+
109
+ ![](images/a87c3990390e3008ac1c0860925cb464148f6012c6ea58ca9b73b32873371cb6.jpg)
110
+ Figure 4: $\kappa { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } }$ prefer different operators in NAS-Bench201.
111
+
112
+ # 3.2 PRUNING-BY-IMPORTANCE ARCHITECTURE SEARCH
113
+
114
+ Given the strong correlation between the architecture’s test accuracy and its $\kappa _ { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } }$ , how to build an efficient NAS framework on top of them? We motivate this section by addressing two questions:
115
+
116
+ 1. How to combine $\kappa _ { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } }$ together, with a good explicit trade-off?
117
+
118
+ We first need to turn the two measurements $\kappa _ { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } }$ into one combined function, based on which we can rank architectures. As seen in Figure 1 and 3, the magnitudes of $\kappa _ { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } }$ differ much. To avoid one overwhelming the other numerically, one possible remedy is normalization; but we cannot pre-know the ranges nor the value distributions of $\kappa _ { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } }$ , before computing them over a search space. In order to make our combined function well defined before search and agnostic to the search space, instead of using the numerical values of $\kappa _ { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } }$ , we could refer to their relative rankings. Specifically, each time by comparing the sampled set of architectures peer-to-peer, we can directly sum up the two relative rankings of $\kappa _ { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } } ^ { \bar { } }$ as the selection criterion. The equal-weight summation treats trainability and expressivity with the same importance conceptually1 and delivers the best empirical result: we thus choose it as our default combined function. We also tried some other means to combine the two, and the ablation studies can be found in Appendix D.2.
119
+
120
+ # 2. How to search more efficiently?
121
+
122
+ Sampling-based methods like reinforcement learning or evolution can use rankings as the reward or filtering metric. However, they are inefficient, especially for complex cell-based search space. Consider a network stacked by repeated cells (directed acyclic graphs) (Zoph et al., 2018; Liu et al., 2018b). Each cell has $E$ edges, and on each edge we only select one operator out of $| \mathcal { O } |$ ( $\mathcal { O }$ is the set of operator candidates). There are $| \mathcal { O } | ^ { E }$ unique cells, and for sampling-based methods, $\gamma \cdot | \mathcal { O } | ^ { E }$ networks have to be sampled during the search. The ratio $\gamma$ can be interpreted as the sampling efficiency: a method with small $\gamma$ can find good architectures faster. However, the search time cost of sampling-based methods still scales up with the size of the search space, i.e., $| \mathcal { O } | ^ { E }$ .
123
+
124
+ Inspired by recent works on pruning-from-scratch (Lee et al., 2018; Wang et al., 2020), we propose a pruning-by-importance NAS mechanism to quickly shrink the search possibilities and boost the efficiency further, reducing the cost from $| \mathcal { O } | ^ { E }$ to $| \mathcal { O } | \cdot E$ . Specifically, we start the search with a super-network $\mathcal { N } _ { 0 }$ composed of all possible operators and edges. In the outer loop, for every round we prune one operator on each edge. The outer-loop stops when the current supernet $\mathcal { N } _ { t }$ is a single-path network2, i.e., the algorithm will return us the final searched architecture. For the inner-loop, we measure the change of $\kappa _ { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } }$ before and after pruning each individual operator, and assess its importance using the sum of two ranks. We order all currently available operators in terms of their importance, and prune the lowest-importance operator on each edge.
125
+
126
+ The whole pruning process is extremely fast. As we will demonstrate later, our approach is principled and can be applied to different spaces without making any modifications. This pruning-by-importance mechanism may also be extended to indicators beyond $\kappa _ { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } }$ . We summarize our training-free and pruning-based NAS framework, TE-NAS, in Algorithm 1.
127
+
128
+ # Algorithm 1: TE-NAS: Training-free Pruning-based NAS via Ranking of $\kappa _ { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } }$
129
+
130
+ 1 Input: supernet $\mathcal { N } _ { 0 }$ stacked by cells, each cell has $E$ edges, each edge has $| \mathcal { O } |$ operators, step $t = 0$ .
131
+ 2 while $\mathcal { N } _ { t }$ is not a single-path network do
132
+ 3 for each operator $o _ { j }$ in $\mathcal { N } _ { t }$ do
133
+ 4 $\begin{array} { r l } & { \dot { \bf \Delta } \Delta \kappa _ { t , o _ { j } } = \kappa _ { \mathcal { N } _ { t } } \dot { \bf \Delta } - \kappa _ { \mathcal { N } _ { t } \backslash o _ { j } } } \\ & { \Delta R _ { t , o _ { j } } = R _ { \mathcal { N } _ { t } } - R _ { \mathcal { N } _ { t } \backslash o _ { j } } } \end{array}$ . the higher $\Delta \kappa _ { t , o _ { j } }$ the more likely we will prune $o _ { j }$
134
+ 5 $\triangleright$ the lower $\Delta R _ { t , o _ { j } }$ the more likely we will prune $o _ { j }$
135
+ 6 Get importance by $\kappa _ { \mathcal { N } }$ : $s _ { \kappa } ( o _ { j } ) =$ index of $o _ { j }$ in descendingly sorted list $[ \Delta \kappa _ { t , o _ { 1 } } , . . . , \Delta \kappa _ { t , o _ { | \mathcal { N } _ { t } | } } ]$
136
+ 7 Get importance by $R _ { \mathcal { N } }$ : $s _ { R } ( o _ { j } ) =$ index of $o _ { j }$ in ascendingly sorted list $[ \Delta R _ { t , o _ { 1 } } , . . . , \Delta R _ { t , o _ { | \mathcal { N } _ { t } | } } ]$
137
+ 8 Get importance $s ( o _ { j } ) = s _ { \kappa } ( o _ { j } ) + s _ { R } ( o _ { j } )$
138
+ 9 $\mathcal { N } _ { t + 1 } \dot { = } \mathcal { N } _ { t }$
139
+ 10 for each edge $e _ { i }$ , $i = 1 , . . . , E$ do
140
+ 11 $j ^ { * } = \arg \operatorname* { m i n } _ { j } \{ s ( o _ { j } ) : o _ { j } \in e _ { i } \}$ . find the operator with greatest importance on each edge.
141
+ 12 $\mathcal { N } _ { t + 1 } = \mathcal { N } _ { t + 1 } \backslash o _ { j ^ { * } }$
142
+ 13 $t = t + 1$
143
+
144
+ # 3.2.1 VISUALIZATION OF SEARCH PROCESS
145
+
146
+ TE-NAS benefits us towards a better understanding of the search process. We can analyze the trajectory of $\kappa _ { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } }$ during the search. It is worth noting that our starting point $\mathcal { N } _ { 0 }$ , the un-pruned supernet, is assumed to be of the highest expressivity (as it is composed of all operators in the search space and has the largest number of parameters and ReLU functions). However, it has poor trainability, as people find many engineering techniques are required to effectively training the supernet (Yu et al., 2020a;b). Therefore, during pruning we are expecting to strengthen the trainability of the supernet, while retaining its expressivity as much as possible.
147
+
148
+ ![](images/5eab6423b3234fdb8c4dc99767d6da291ff972a600d6a8e262fa1295d7f97422.jpg)
149
+ Figure 5: Pruning trajectory on NAS-Bench-201 (top) and DARTs search space (bottom). Number $\cdot _ { 0 } \cdot \mathbf { \vec { \tau } }$ indicates the supernet $\mathcal { N } _ { 0 }$ before any pruning, which is of high expressivity but poor trainability.
150
+
151
+ As we observe in Figure 5, the supernet $\mathcal { N }$ is first pruned by quickly reducing $\kappa _ { \mathcal { N } }$ , i.e., increasing the network’s trainability. After that, as the improvement of $\kappa _ { \mathcal { N } }$ is almost plateaued, the method carefully fine-tunes the architecture without sacrificing too much expressivity $\hat { R } _ { \mathcal { N } }$ .
152
+
153
+ # 4 EXPERIMENTS
154
+
155
+ In this section, we evaluate our TE-NAS on two search spaces: NAS-Bench-201 (Dong & Yang, 2020) and DARTS (Liu et al., 2018b). Search and training protocols are summarized in Appendix A. Our code is available at: https://github.com/VITA-Group/TENAS.
156
+
157
+ # 4.1 RESULTS ON NAS-BENCH-201
158
+
159
+ NAS-Bench-201 (Dong & Yang, 2020) provides a standard cell-based search space (containing 15,625 architectures) and a database of architecture’s performance evaluated under a unified protocol. The network’s test accuracy can be directly obtained by querying the database, which facilitates people to focus on studying NAS algorithms without network evaluation. NAS-Bench-201 supports three datasets (CIFAR-10, CIFAR-100, ImageNet-16-120 (Chrabaszcz et al., 2017)). The operation space contains none (zero), skip connection, $c o n \nu 1 \times 1$ , $c o n \nu 3 \times 3$ convolution, and average pooling $3 \times 3$ . We refer to their paper for details of the space. Our search is dataset-specific, i.e. the search and evaluation are conducted on the same dataset.
160
+
161
+ Table 1: Comparison with state-of-the-art NAS methods on NAS-Bench-201. Test accuracy with mean and deviation are reported. “optimal” indicates the best test accuracy achievable in NAS-Bench-201 search space.
162
+
163
+ <table><tr><td>Architecture</td><td>CIFAR-10</td><td>CIFAR-100</td><td>ImageNet-16-120</td><td>Search Cost (GPU sec.)</td><td>Search Method</td></tr><tr><td>ResNet (He et al.,2016)</td><td>93.97</td><td>70.86</td><td>43.63</td><td>-</td><td>-</td></tr><tr><td>RSPS (Li&amp; Talwalkar,2020)</td><td>87.66(1.69)</td><td>58.33(4.34)</td><td>31.14(3.88)</td><td>8007.13</td><td>random</td></tr><tr><td>ENAS (Pham et al., 2018)</td><td>54.30(0.00)</td><td>15.61(0.00)</td><td>16.32(0.00)</td><td>13314.51</td><td>RL</td></tr><tr><td>DARTS (1st) (Liu et al.,2018b)</td><td>54.30(0.00)</td><td>15.61(0.00)</td><td>16.32(0.00)</td><td>10889.87</td><td>gradient</td></tr><tr><td>DARTS (2nd) (Liu et al.,2018b)</td><td>54.30(0.00)</td><td>15.61(0.00)</td><td>16.32(0.00)</td><td>29901.67</td><td>gradient</td></tr><tr><td>GDAS (Dong&amp; Yang,2019)</td><td>93.61(0.09)</td><td>70.70(0.30)</td><td>41.84(0.90)</td><td>28925.91</td><td>gradient</td></tr><tr><td>NAS w.o. Training (Mellor et al.,2020)</td><td>91.78(1.45)</td><td>67.05(2.89)</td><td>37.07(6.39)</td><td>4.8</td><td>training-free</td></tr><tr><td>TE-NAS (ours)</td><td>93.9(0.47)</td><td>71.24(0.56)</td><td>42.38(0.46)</td><td>1558</td><td>training-free</td></tr><tr><td> Optimal</td><td>94.37</td><td>73.51</td><td>47.31</td><td>-</td><td>-</td></tr></table>
164
+
165
+ We run TE-NAS for four independent times with different random seeds, and report the mean and standard deviation in Table 1. We can see that TE-NAS achieves the best accuracy on all three datasets, and largely reduces the search cost $( 5 \times \sim 1 9 \times$ reduction). Although Mellor et al. (2020) requires even less search time (by only sampling 25 architectures), they suffer from much inferior accuracy performance, with notably larger deviations across different search rounds.
166
+
167
+ # 4.2 RESULTS ON CIFAR-10 WITH DARTS SEARCH SPACE
168
+
169
+ Architecture Space The DARTs operation space $\mathcal { O }$ contains eight choices: none (zero), skip connection, separable convolution $3 \times 3$ and $5 \times 5$ , dilated separable convolution $3 \times 3$ and $5 \times 5$ , max pooling $3 \times 3$ , average pooling $3 \times 3$ . Following previous works (Liu et al., 2018b; Chen et al., 2019; $\mathrm { X u }$ et al., 2019), for evaluation phases, we stack 20 cells to compose the network and set the initial channel number as 36. We place the reduction cells at the 1/3 and 2/3 of the network and each cell consists of six nodes.
170
+
171
+ Table 2: Comparison with state-of-the-art NAS methods on CIFAR-10.
172
+
173
+ <table><tr><td>Architecture</td><td>Test Error (%)</td><td>Params (M)</td><td>Search Cost (GPU days)</td><td>Search Method</td></tr><tr><td>AmoebaNet-A (Real et al., 2019)</td><td>3.34(0.06)</td><td>3.2</td><td>3150</td><td>evolution</td></tr><tr><td>PNAS (Liu et al.,2018a)*</td><td>3.41(0.09)</td><td>3.2</td><td>225</td><td>SMBO</td></tr><tr><td>ENAS (Pham et al., 2018)</td><td>2.89</td><td>4.6</td><td>0.5</td><td>RL</td></tr><tr><td>NASNet-A (Zoph et al.,2018)</td><td>2.65</td><td>3.3</td><td>2000</td><td>RL</td></tr><tr><td>DARTS (1st) (Liu et al.,2018b)</td><td>3.00(0.14)</td><td>3.3</td><td>0.4</td><td>gradient</td></tr><tr><td>DARTS (2nd) (Liu et al., 2018b)</td><td>2.76(0.09)</td><td>3.3</td><td>1.0</td><td>gradient</td></tr><tr><td>SNAS (Xie et al.,2018)</td><td>2.85(0.02)</td><td>2.8</td><td>1.5</td><td>gradient</td></tr><tr><td>GDAS (Dong &amp; Yang,2019)</td><td>2.82</td><td>2.5</td><td>0.17</td><td>gradient</td></tr><tr><td>BayesNAS (Zhou et al.,2019)</td><td>2.81(0.04)</td><td>3.4</td><td>0.2</td><td>gradient</td></tr><tr><td>ProxylessNAS (Cai et al.,2018)†</td><td>2.08</td><td>5.7</td><td>4.0</td><td>gradient</td></tr><tr><td>P-DARTS (Chen et al.,2019)</td><td>2.50</td><td>3.4</td><td>0.3</td><td>gradient</td></tr><tr><td>PC-DARTS (Xu et al.,2019)</td><td>2.57(0.07)</td><td>3.6</td><td>0.1</td><td>gradient</td></tr><tr><td>SDARTS-ADV (Chen &amp; Hsieh,2020)</td><td>2.61(0.02)</td><td>3.3</td><td>1.3</td><td>gradient</td></tr><tr><td>TE-NAS (ours)</td><td>2.63(0.064)</td><td>3.8</td><td>0.05</td><td>training-free</td></tr></table>
174
+
175
+ ? No cutout augmentation. † Different space: PyramidNet (Han et al., 2017) as the backbone. ‡ Recorded on a single GTX 1080Ti GPU.
176
+
177
+ Results We run TE-NAS for four independent times with different random seeds, and report the mean and standard deviation. Table 2 summarizes the performance of TE-NAS compared with other popular NAS methods. TE-NAS achieves a test error of $2 . 6 3 \%$ , ranking among the top of recent NAS results, but meanwhile largely reduces the search cost to only 0.05 GPU-day. ProxylessNAS achieves the lowest test error, but it searches on a different space with a much longer search time and has a larger model size. Besides, Mellor et al. (2020) did not extend to their Jacobian-based framework to DARTs search space for CIFAR-10 or ImageNet classification.
178
+
179
+ # 4.3 RESULTS ON IMAGENET WITH DARTS SEARCH SPACE
180
+
181
+ Architecture Space Following previous works $\mathrm { { X u } }$ et al., 2019; Chen et al., 2019), the architecture for ImageNet is slightly different from that for CIFAR-10. During retraining evaluation, the network is stacked with 14 cells with the initial channel number set to 48, and we follow the mobile setting to control the FLOPs not exceed $6 0 0 { \mathrm { M B } }$ by adjusting the channel number. The spatial resolution is downscaled from $2 2 4 \times 2 2 4$ to $2 8 \times 2 8$ with the first three convolution layers of stride 2.
182
+
183
+ Results As shown in Table 3, we achieve a top-1/5 test error of $2 4 . 5 \% / 7 . 5 \%$ , achieving competitive performance with recent state-of-the-art works in the ImageNet mobile setting. However, TE-NAS only cost four GPU hours with only one 1080Ti. Searching on ImageNet takes a longer time than on CIFAR-10 due to the larger input size and more network parameters.
184
+
185
+ Table 3: Comparison with state-of-the-art NAS methods on ImageNet under the mobile setting.
186
+
187
+ <table><tr><td rowspan="2">Architecture</td><td colspan="2">Test Error(%)</td><td rowspan="2">Params (M)</td><td rowspan="2">Search Cost (GPU days)</td><td rowspan="2">Search Method</td></tr><tr><td>top-1</td><td>top-5</td></tr><tr><td>NASNet-A (Zoph et al.,2018)</td><td>26.0</td><td>8.4</td><td>5.3</td><td>2000</td><td>RL</td></tr><tr><td>AmoebaNet-C (Real et al.,2019)</td><td>24.3</td><td>7.6</td><td>6.4</td><td>3150</td><td>evolution</td></tr><tr><td>PNAS (Liu et al., 2018a)</td><td>25.8</td><td>8.1</td><td>5.1</td><td>225</td><td>SMBO</td></tr><tr><td>MnasNet-92 (Tan et al.,2019)</td><td>25.2</td><td>8.0</td><td>4.4</td><td>1</td><td>RL</td></tr><tr><td>DARTS (2nd) (Liu et al.,2018b)</td><td>26.7</td><td>8.7</td><td>4.7</td><td>4.0</td><td>gradient</td></tr><tr><td>SNAS (mild) (Xie et al.,2018)</td><td>27.3</td><td>9.2</td><td>4.3</td><td>1.5</td><td>gradient</td></tr><tr><td>GDAS (Dong &amp; Yang,2019)</td><td>26.0</td><td>8.5</td><td>5.3</td><td>0.21</td><td>gradient</td></tr><tr><td>BayesNAS (Zhou et al.,2019)</td><td>26.5</td><td>8.9</td><td>3.9</td><td>0.2</td><td>gradient</td></tr><tr><td>P-DARTS (CIFAR-10) (Chen et al., 2019)</td><td>24.4</td><td>7.4</td><td>4.9</td><td>0.3</td><td>gradient</td></tr><tr><td>P-DARTS (CIFAR-100)(Chen et al.,2019)</td><td>24.7</td><td>7.5</td><td>5.1</td><td>0.3</td><td>gradient</td></tr><tr><td>PC-DARTS (CIFAR-1O)(Xu et al.,2019)</td><td>25.1</td><td>7.8</td><td>5.3</td><td>0.1</td><td>gradient</td></tr><tr><td>TE-NAS (ours)</td><td>26.2</td><td>8.3</td><td>6.3</td><td>0.05</td><td>training-free</td></tr><tr><td>PC-DARTS (ImageNet) (Xu et al., 2019)†</td><td>24.2</td><td>7.3</td><td>5.3</td><td>3.8</td><td>gradient</td></tr><tr><td>ProxylessNAS (GPU) (Cai et al.,2018)†</td><td>24.9</td><td>7.5</td><td>7.1</td><td>8.3</td><td>gradient</td></tr><tr><td>TE-NAS (ours)†</td><td>24.5</td><td>7.5</td><td>5.4</td><td>0.17</td><td>training-free</td></tr></table>
188
+
189
+ † The architecture is searched on ImageNet, otherwise it is searched on CIFAR-10 or CIFAR-100.
190
+
191
+ # 5 CONCLUSION
192
+
193
+ The key questions in Neural Architecture Search (NAS) are “what are good architectures” and “how to find them”. Validation loss or accuracy are possible answers but not enough, due to their search bias and heavy evaluation cost. Our work demonstrates that two theoretically inspired indicators, the spectrum of NTK and the number of linear regions, not only strongly correlate with the network’s performance, but also benefit the reduced search cost and decoupled analysis of the network’s trainability and expressivity. Without involving any training, our TE-NAS achieve competitive NAS performance with minimum search time. We for the first time bridge the gap between the theoretic findings of deep neural networks and real-world NAS applications, and we encourage the community to further explore more meaningful network properties so that we will have a better understanding of good architectures and how to search them.
194
+
195
+ # ACKNOWLEDGEMENT
196
+
197
+ This work is supported in part by the NSF Real-Time Machine Learning program (Award Number: 2053279), and the US Army Research Office Young Investigator Award (W911NF2010240).
198
+
199
+ # REFERENCES
200
+
201
+ Gabriel Bender, Pieter-Jan Kindermans, Barret Zoph, Vijay Vasudevan, and Quoc Le. Understanding and simplifying one-shot architecture search. In International Conference on Machine Learning, pp. 549–558, 2018.
202
+
203
+ Andrew Brock, Theodore Lim, James M Ritchie, and Nick Weston. Smash: one-shot model architecture search through hypernetworks. arXiv preprint arXiv:1708.05344, 2017.
204
+
205
+ Rebekka Burkholz and Alina Dubatovka. Initialization of relus for dynamical isometry. In Advances in Neural Information Processing Systems, pp. 2385–2395, 2019.
206
+
207
+ Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. arXiv preprint arXiv:1812.00332, 2018.
208
+
209
+ Liang-Chieh Chen, Maxwell Collins, Yukun Zhu, George Papandreou, Barret Zoph, Florian Schroff, Hartwig Adam, and Jon Shlens. Searching for efficient multi-scale architectures for dense image prediction. In Advances in Neural Information Processing Systems, pp. 8699–8710, 2018.
210
+
211
+ Wuyang Chen, Xinyu Gong, Xianming Liu, Qian Zhang, Yuan Li, and Zhangyang Wang. Fasterseg: Searching for faster real-time semantic segmentation. In International Conference on Learning Representations, 2020a.
212
+
213
+ Xiangning Chen and Cho-Jui Hsieh. Stabilizing differentiable architecture search via perturbationbased regularization. arXiv preprint arXiv:2002.05283, 2020.
214
+
215
+ Xin Chen, Lingxi Xie, Jun Wu, and Qi Tian. Progressive differentiable architecture search: Bridging the depth gap between search and evaluation. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1294–1303, 2019.
216
+
217
+ Xin Chen, Lingxi Xie, Jun Wu, Longhui Wei, Yuhui Xu, and Qi Tian. Fitting the search space of weight-sharing nas with graph convolutional networks. arXiv preprint arXiv:2004.08423, 2020b.
218
+
219
+ Lenaic Chizat, Edouard Oyallon, and Francis Bach. On lazy training in differentiable programming. 2019.
220
+
221
+ Patryk Chrabaszcz, Ilya Loshchilov, and Frank Hutter. A downsampled variant of imagenet as an alternative to the cifar datasets, 2017.
222
+
223
+ Xiaoliang Dai, Peizhao Zhang, Bichen Wu, Hongxu Yin, Fei Sun, Yanghan Wang, Marat Dukhan, Yunqing Hu, Yiming Wu, Yangqing Jia, et al. Chamnet: Towards efficient network design through platform-aware model adaptation. In Proceedings of the IEEE Conference on computer vision and pattern recognition, pp. 11398–11407, 2019.
224
+
225
+ Xuanyi Dong and Yi Yang. Searching for a robust neural architecture in four gpu hours. In Proceedings of the IEEE Conference on computer vision and pattern recognition, pp. 1761–1770, 2019.
226
+
227
+ Xuanyi Dong and Yi Yang. Nas-bench-102: Extending the scope of reproducible neural architecture search. arXiv preprint arXiv:2001.00326, 2020.
228
+
229
+ Xuanyi Dong, Lu Liu, Katarzyna Musial, and Bogdan Gabrys. Nats-bench: Benchmarking nas algorithms for architecture topology and size. arXiv preprint arXiv:2009.00437, 2020.
230
+
231
+ Yonggan Fu, Wuyang Chen, Haotao Wang, Haoran Li, Yingyan Lin, and Zhangyang Wang. Autogandistiller: Searching to compress generative adversarial networks. In International Conference on Machine Learning, pp. 3292–3303. PMLR, 2020.
232
+
233
+ Raja Giryes, Guillermo Sapiro, and Alex M Bronstein. Deep neural networks with random gaussian weights: A universal classification strategy? IEEE Transactions on Signal Processing, 64(13): 3444–3457, 2016.
234
+
235
+ Xinyu Gong, Shiyu Chang, Yifan Jiang, and Zhangyang Wang. Autogan: Neural architecture search for generative adversarial networks. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 3224–3234, 2019.
236
+
237
+ Zichao Guo, Xiangyu Zhang, Haoyuan Mu, Wen Heng, Zechun Liu, Yichen Wei, and Jian Sun. Single path one-shot neural architecture search with uniform sampling. arXiv preprint arXiv:1904.00420, 2019.
238
+
239
+ Dongyoon Han, Jiwhan Kim, and Junmo Kim. Deep pyramidal residual networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 5927–5935, 2017.
240
+
241
+ Boris Hanin and Mihai Nica. Finite depth and width corrections to the neural tangent kernel. arXiv preprint arXiv:1909.05989, 2019.
242
+
243
+ Boris Hanin and David Rolnick. Complexity of linear regions in deep networks. arXiv preprint arXiv:1901.09021, 2019a.
244
+
245
+ Boris Hanin and David Rolnick. Deep relu networks have surprisingly few activation patterns. In Advances in Neural Information Processing Systems, pp. 361–370, 2019b.
246
+
247
+ Soufiane Hayou, Arnaud Doucet, and Judith Rousseau. On the impact of the activation function on deep neural networks training. arXiv preprint arXiv:1902.06853, 2019.
248
+
249
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pp. 1026–1034, 2015.
250
+
251
+ 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.
252
+
253
+ Kurt Hornik, Maxwell Stinchcombe, Halbert White, et al. Multilayer feedforward networks are universal approximators. Neural networks, 2(5):359–366, 1989.
254
+
255
+ Arthur Jacot, Franck Gabriel, and Clement Hongler. Neural tangent kernel: Convergence and ´ generalization in neural networks. In Advances in neural information processing systems, pp. 8571–8580, 2018.
256
+
257
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
258
+
259
+ Jaehoon Lee, Lechao Xiao, Samuel Schoenholz, Yasaman Bahri, Roman Novak, Jascha SohlDickstein, and Jeffrey Pennington. Wide neural networks of any depth evolve as linear models under gradient descent. In Advances in neural information processing systems, pp. 8572–8583, 2019.
260
+
261
+ Namhoon Lee, Thalaiyasingam Ajanthan, and Philip HS Torr. Snip: Single-shot network pruning based on connection sensitivity. arXiv preprint arXiv:1810.02340, 2018.
262
+
263
+ Guohao Li, Guocheng Qian, Itzel C Delgadillo, Matthias Muller, Ali Thabet, and Bernard Ghanem. Sgas: Sequential greedy architecture search. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1620–1630, 2020a.
264
+
265
+ Liam Li and Ameet Talwalkar. Random search and reproducibility for neural architecture search. In Uncertainty in Artificial Intelligence, pp. 367–377. PMLR, 2020.
266
+
267
+ Yanxi Li, Minjing Dong, Yunhe Wang, and Chang Xu. Neural architecture search in a proxy validation loss landscape. In International Conference on Machine Learning, pp. 5853–5862. PMLR, 2020b.
268
+
269
+ Zhihang Li, Teng Xi, Jiankang Deng, Gang Zhang, Shengzhao Wen, and Ran He. Gp-nas: Gaussian process based neural architecture search. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 11933–11942, 2020c.
270
+
271
+ Hanwen Liang, Shifeng Zhang, Jiacheng Sun, Xingqiu He, Weiran Huang, Kechen Zhuang, and Zhenguo Li. Darts+: Improved differentiable architecture search with early stopping. arXiv preprint arXiv:1909.06035, 2019.
272
+
273
+ 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 Proceedings of the European Conference on Computer Vision (ECCV), pp. 19–34, 2018a.
274
+
275
+ Chenxi Liu, Liang-Chieh Chen, Florian Schroff, Hartwig Adam, Wei Hua, Alan L Yuille, and Li FeiFei. Auto-deeplab: Hierarchical neural architecture search for semantic image segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 82–92, 2019.
276
+
277
+ Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018b.
278
+
279
+ Renqian Luo, Fei Tian, Tao Qin, Enhong Chen, and Tie-Yan Liu. Neural architecture optimization. In Advances in neural information processing systems, pp. 7816–7827, 2018.
280
+
281
+ Renqian Luo, Xu Tan, Rui Wang, Tao Qin, Enhong Chen, and Tie-Yan Liu. Semi-supervised neural architecture search. arXiv preprint arXiv:2002.10389, 2020.
282
+
283
+ Joseph Mellor, Jack Turner, Amos Storkey, and Elliot J Crowley. Neural architecture search without training. arXiv preprint arXiv:2006.04647, 2020.
284
+
285
+ Guido Montufar. Notes on the number of linear regions of deep neural networks. ´ Sampling Theory Appl., Tallinn, Estonia, Tech. Rep, 2017.
286
+
287
+ Hieu Pham, Melody Y Guan, Barret Zoph, Quoc V Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. arXiv preprint arXiv:1802.03268, 2018.
288
+
289
+ Maithra Raghu, Ben Poole, Jon Kleinberg, Surya Ganguli, and Jascha Sohl-Dickstein. On the expressive power of deep neural networks. In international conference on machine learning, pp. 2847–2854. PMLR, 2017.
290
+
291
+ Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V Le. Regularized evolution for image classifier architecture search. In Proceedings of the aaai conference on artificial intelligence, volume 33, pp. 4780–4789, 2019.
292
+
293
+ Thiago Serra, Christian Tjandraatmadja, and Srikumar Ramalingam. Bounding and counting linear regions of deep neural networks. In International Conference on Machine Learning, pp. 4558–4566. PMLR, 2018.
294
+
295
+ Yeonjong Shin and George Em Karniadakis. Trainability of relu networks and data-dependent initialization. Journal of Machine Learning for Modeling and Computing, 1(1), 2020.
296
+
297
+ Yao Shu, Wei Wang, and Shaofeng Cai. Understanding architectures learnt by cell-based neural architecture search. In International Conference on Learning Representations, 2019.
298
+
299
+ Julien Siems, Lucas Zimmer, Arber Zela, Jovita Lukasik, Margret Keuper, and Frank Hutter. Nasbench-301 and the case for surrogate benchmarks for neural architecture search. arXiv preprint arXiv:2008.09777, 2020.
300
+
301
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
302
+
303
+ Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1–9, 2015.
304
+
305
+ 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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2820–2828, 2019.
306
+
307
+ Mingxing Tan, Ruoming Pang, and Quoc V Le. Efficientdet: Scalable and efficient object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10781–10790, 2020.
308
+
309
+ Chaoqi Wang, Guodong Zhang, and Roger Grosse. Picking winning tickets before training by preserving gradient flow. arXiv preprint arXiv:2002.07376, 2020.
310
+
311
+ Wei Wen, Hanxiao Liu, Hai Li, Yiran Chen, Gabriel Bender, and Pieter-Jan Kindermans. Neural predictor for neural architecture search. arXiv preprint arXiv:1912.00848, 2019.
312
+
313
+ Lechao Xiao, Jeffrey Pennington, and Samuel S Schoenholz. Disentangling trainability and generalization in deep learning. arXiv preprint arXiv:1912.13053, 2019.
314
+
315
+ Saining Xie, Ross Girshick, Piotr Dollar, Zhuowen Tu, and Kaiming He. Aggregated residual ´ transformations for deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1492��1500, 2017.
316
+
317
+ Sirui Xie, Hehui Zheng, Chunxiao Liu, and Liang Lin. Snas: stochastic neural architecture search. arXiv preprint arXiv:1812.09926, 2018.
318
+
319
+ Huan Xiong, Lei Huang, Mengyang Yu, Li Liu, Fan Zhu, and Ling Shao. On the number of linear regions of convolutional neural networks. arXiv preprint arXiv:2006.00978, 2020.
320
+
321
+ Yuhui Xu, Lingxi Xie, Xiaopeng Zhang, Xin Chen, Guo-Jun Qi, Qi Tian, and Hongkai Xiong. Pc-darts: Partial channel connections for memory-efficient architecture search. In International Conference on Learning Representations, 2019.
322
+
323
+ Ge Yang and Samuel Schoenholz. Mean field residual networks: On the edge of chaos. In Advances in neural information processing systems, pp. 7103–7114, 2017.
324
+
325
+ Greg Yang. Scaling limits of wide neural networks with weight sharing: Gaussian process behavior, gradient independence, and neural tangent kernel derivation. arXiv preprint arXiv:1902.04760, 2019.
326
+
327
+ Zhaohui Yang, Yunhe Wang, Xinghao Chen, Boxin Shi, Chao Xu, Chunjing Xu, Qi Tian, and Chang Xu. Cars: Continuous evolution for efficient neural architecture search. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2020a.
328
+
329
+ Zhaohui Yang, Yunhe Wang, Dacheng Tao, Xinghao Chen, Jianyuan Guo, Chunjing Xu, Chao Xu, and Chang Xu. Hournas: Extremely fast neural architecture search through an hourglass lens. arXiv preprint arXiv:2005.14446, 2020b.
330
+
331
+ Jiahui Yu, Pengchong Jin, Hanxiao Liu, Gabriel Bender, Pieter-Jan Kindermans, Mingxing Tan, Thomas Huang, Xiaodan Song, Ruoming Pang, and Quoc Le. Bignas: Scaling up neural architecture search with big single-stage models. arXiv preprint arXiv:2003.11142, 2020a.
332
+
333
+ Kaicheng Yu, Rene Ranftl, and Mathieu Salzmann. How to train your super-net: An analysis of training heuristics in weight-sharing nas. arXiv preprint arXiv:2003.04276, 2020b.
334
+
335
+ Kaicheng Yu, Christian Sciuto, Martin Jaggi, Claudiu Musat, and Mathieu Salzmann. Evaluating the search phase of neural architecture search. In ICLR, 2020c.
336
+
337
+ Hongpeng Zhou, Minghao Yang, Jun Wang, and Wei Pan. Bayesnas: A bayesian approach for neural architecture search. arXiv preprint arXiv:1905.04919, 2019.
338
+
339
+ Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. arXiv preprint arXiv:1611.01578, 2016.
340
+
341
+ Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. Learning transferable architectures for scalable image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 8697–8710, 2018.
342
+
343
+ # A IMPLEMENTATION DETAILS
344
+
345
+ For $\kappa _ { \mathcal { N } }$ we sample one mini-batch of size 32 from the training set, and calculate $\hat { \Theta } ( \pmb { x } , \pmb { x } ^ { \prime } ) =$ $J ( { \pmb x } ) J ( { \pmb x } ^ { \prime } ) ^ { T }$ . For $\hat { R } _ { \mathcal { N } }$ we sample 5000 images, forward them through the network, and collect the activation patterns from all ReLU layers. The calculation of both $\kappa _ { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } }$ are repeated three times in all experiments, where each time the network weights are randomly drawn from Kaiming Norm Initialization (He et al., 2015) without involving any training (network weights are fixed).
346
+
347
+ Our retraining settings (after search) follow previous works (Xu et al., 2019; Chen et al., 2019; Chen & Hsieh, 2020). On CIFAR-10, we train the searched network with cutout regularization of length 16, drop-path (Zoph et al., 2018) with probability as 0.3, and an auxiliary tower of weight 0.4. On ImageNet, we also use label smoothing during training. On both CIFAR-10 and ImageNet, the network is optimized by an SGD optimizer with cosine annealing, with learning rate initialized as 0.025 and 0.5, respectively.
348
+
349
+ # B SEARCHED ARCHITECTURE
350
+
351
+ We visualize the searched normal and reduction cells in figure 6 and 7, which is directly searched on CIFAR-10 and ImageNet respectively.
352
+
353
+ ![](images/3ea788d5aa0e8499282a29795a6e0b6706094d3bcfd951b8e4cd7154e1600ecd.jpg)
354
+ Figure 6: Normal and Reduction cells discovered by TE-NAS on CIFAR-10.
355
+
356
+ ![](images/0cf482289933baf96e10aac9ca88e6c877afab0dbcbb7c332a85deacc8e0fadf.jpg)
357
+ Figure 7: Normal and Reduction cells discovered by TE-NAS on imageNet.
358
+
359
+ C DEPTH AND WIDTH PREFERENCE OF $\kappa _ { \mathcal { N } }$ AND $\hat { R } _ { \mathcal { N } }$ IN DARTS SPACE
360
+
361
+ To analyze the impact of different architectures on trainability and expressivity in DARTs search space, we visualize $\kappa _ { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } }$ with different depths and width. Following Shu et al. (2019), the depth of a cell is defined as the number of connections on the longest path from input nodes to the output node, and the width of a cell is the summation of the edges of the intermediate nodes that are connected to the input nodes. We randomly sample 20,000 architectures in DARTs space, and plot the visualizations in Figure 8. Good architectures should exhibit low $\kappa _ { \mathcal { N } }$ (good trainability, blue dots in Figure 8(a)) and high $\hat { R } _ { \mathcal { N } }$ (powerful expressivity, red dots in Figure 8(b)). Therefore, $\kappa _ { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } }$ tell us that in DARTs space shallow but wide cells are preferred to favor both trainability and expressivity. This conclusion matches the findings by Shu et al. (2019): existing NAS algorithms tend to favor architectures with wide and shallow cell structures, which enjoy fast convergence with smooth loss landscape and accurate gradient information.
362
+
363
+ ![](images/68fb7e3b692da7dff551648648324bbc0476d9fbdc1fda9a6ac2d7d65ff25541.jpg)
364
+ Figure 8: Depth and width preference of (a) $\kappa { \mathcal N }$ and (b) $\hat { R } _ { \mathcal { N } }$ on DARTs Search Space.
365
+
366
+ # D MORE ABLATION STUDIES
367
+
368
+ D.1 SEARCH WITH ONLY $\kappa _ { \mathcal { N } }$ OR $\hat { R } _ { \mathcal { N } }$
369
+
370
+ As we observed in Table 4, searching with only $\kappa _ { \mathcal { N } }$ or $\hat { R } _ { \mathcal { N } }$ leads to inferior performance, which indicates the importance of maintaining both trainability and expressivity during the search.
371
+
372
+ Table 4: Search with only $\kappa { \mathcal N }$ or $\hat { R } _ { \mathcal { N } }$ on CIFAR-100 in NAS-Bench-201 space.
373
+
374
+ <table><tr><td>Methods</td><td>CIFAR-100 Test Accuracy</td></tr><tr><td>Prune with only KN</td><td>69.25 (1.29)</td></tr><tr><td>Prune with only RN</td><td>70.48 (0.29)</td></tr><tr><td>TE-NAS</td><td>71.24 (0.56)</td></tr></table>
375
+
376
+ # D.2 DIFFERENT COMBINATION OPTIONS FOR $\kappa _ { \mathcal { N } }$ AND $\hat { R } _ { \mathcal { N } }$
377
+
378
+ Pruning by $s ( o _ { j } ) = s _ { \kappa } ( o _ { j } ) + s _ { R } ( o _ { j } )$ is not the only option (see Algorithm 1). Here in this study we consider more:
379
+
380
+ 1) pruning by $s ( o _ { j } ) = \mathrm { m i n } ( s _ { \kappa } ( o _ { j } ) , s _ { R } ( o _ { j } ) )$ , i.e., pruning by the worst case. 2) Pruninng by $s ( o _ { j } ) = \mathrm { m a x } ( s _ { \kappa } ( o _ { j } ) , s _ { R } ( o _ { j } ) )$ , i.e., pruning by the best case. 3) pruning by summation of changes $\Delta \kappa _ { t , o _ { j } } + \Delta R _ { t , o _ { j } }$ , i.e., directly use the numerical values of the changes.
381
+
382
+ As we observed in Table 5, our TE-NAS stands out of all options. This means a good trade-off between $\kappa _ { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } }$ are important, and also the ranking strategy is better than directly using numerical values.
383
+
384
+ Table 5: Search with only $\kappa _ { \mathcal { N } }$ or $\hat { R } _ { \mathcal { N } }$ on CIFAR-100 in NAS-Bench-201 space.
385
+
386
+ <table><tr><td>Methods</td><td>CIFAR-100 Test Accuracy</td></tr><tr><td>Prune by s(oj)= min(sr(oj),sR(0j))</td><td>70.75 (0.73)</td></tr><tr><td>Prune by s(oj)=max(sκ(oj),sr(0j))</td><td>70.33 (1.09)</td></tr><tr><td>Prune by △Kt,oj+△Rt,oj</td><td>70.47 (0.68)</td></tr><tr><td>Prune by s(oj)= sκ(Oj)+sR(oj) (TE-NAS)</td><td>71.24 (0.56)</td></tr></table>
387
+
388
+ Figure 9 indicates that by using the summation of the ranking of $\mathsf { b o t h } \kappa _ { \mathcal N }$ and $\hat { R } _ { \mathcal { N } }$ , the combined metric achieves a much higher correlation with the test accuracy. The reason can be explained by Figure 4, as $\kappa _ { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } }$ prefers different operators in terms of trainability and Expressivity. Their combination can filter out bad architectures in both aspects and strongly correlate with networks’ final performance.
389
+
390
+ ![](images/d0038d4acd6d5cbad42a776602e3e4b8e5adf3361677add29fc779f187849bbf.jpg)
391
+ Figure 9: Summation of ranking of $\kappa _ { \mathcal { N } }$ and $\hat { R } _ { \mathcal { N } }$ exhibits stronger (negative) correlation with the test accuracy of architectures in NAS-Bench201 (Dong & Yang, 2020).
392
+
393
+ # E GENERALIZATION V.S. TEST ACCURACY
394
+
395
+ Conceptually, the generalization gap is the difference between a model’s performance on training data and its performance on unseen data drawn from the same distribution (e.g., testing set). In comparison, the two indicators $\kappa _ { \mathcal { N } }$ (trainability) and $R _ { \mathcal { N } }$ (expressiveness) of a network determine how well the training set could be fit (i.e., training set accuracy), and do not directly indicate its generalization gap (or test set accuracy). Indeed, probing generalization of an untrained network at its initialization is a daunting, open challenge that seems to go beyond the current theory scope.
396
+
397
+ ![](images/c758a58794154dd00dc45327533a6e9468a026d51804b24738e4702389e3d289.jpg)
398
+ Figure 10: The correlation between test accuracy and the training accuracy in NAS-Bench201 (Dong & Yang, 2020).
399
+
400
+ In NAS, we are searching for the architecture with the best test accuracy. As shown in Figure 10, in NAS-Bench201 the training accuracy strongly correlates with test accuracy. This also seems to be a result of the current standard search space design that could have implicitly excluded severe overfitting. This explains why $\kappa _ { \mathcal { N } }$ and $R _ { \mathcal { N } }$ , which only focuses on trainability and expressiveness during training, can still achieve good search results of test accuracy.
parse/train/Cnon5ezMHtu/Cnon5ezMHtu_content_list.json ADDED
@@ -0,0 +1,2085 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "NEURAL ARCHITECTURE SEARCH ON IMAGENET IN FOUR GPU HOURS: A THEORETICALLY INSPIRED PERSPECTIVE ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 823,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Wuyang Chen, Xinyu Gong, Zhangyang Wang Department of Electrical and Computer Engineering The University of Texas at Austin, Austin, TX, USA {wuyang.chen,xinyu.gong,atlaswang}@utexas.edu ",
17
+ "bbox": [
18
+ 184,
19
+ 195,
20
+ 617,
21
+ 252
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 275,
32
+ 544,
33
+ 291
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Neural Architecture Search (NAS) has been explosively studied to automate the discovery of top-performer neural networks. Current works require heavy training of supernet or intensive architecture evaluations, thus suffering from heavy resource consumption and often incurring search bias due to truncated training or approximations. Can we select the best neural architectures without involving any training and eliminate a drastic portion of the search cost? We provide an affirmative answer, by proposing a novel framework called training-free neural architecture search (TE-NAS). TE-NAS ranks architectures by analyzing the spectrum of the neural tangent kernel (NTK) and the number of linear regions in the input space. Both are motivated by recent theory advances in deep networks and can be computed without any training and any label. We show that: (1) these two measurements imply the trainability and expressivity of a neural network; (2) they strongly correlate with the network’s test accuracy. Further on, we design a pruning-based NAS mechanism to achieve a more flexible and superior trade-off between the trainability and expressivity during the search. In NAS-Bench-201 and DARTS search spaces, TE-NAS completes high-quality search but only costs 0.5 and 4 GPU hours with one 1080Ti on CIFAR-10 and ImageNet, respectively. We hope our work inspires more attempts in bridging the theoretical findings of deep networks and practical impacts in real NAS applications. Code is available at: https://github.com/VITA-Group/TENAS. ",
40
+ "bbox": [
41
+ 233,
42
+ 308,
43
+ 766,
44
+ 584
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 606,
55
+ 336,
56
+ 621
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "The recent development of deep networks significantly contributes to the success of computer vision. Thanks to many efforts by human designers, the performance of deep networks have been significantly boosted (Krizhevsky et al., 2012; Simonyan & Zisserman, 2014; Szegedy et al., 2015; He et al., 2016; Xie et al., 2017). However, the manual creation of new network architectures not only costs enormous time and resources due to trial-and-error, but also depends on the design experience that does not always scale up. To reduce the human efforts and costs, neural architecture search (NAS) has recently amassed explosive interests, leading to principled and automated discovery for good architectures in a given search space of candidates (Zoph & Le, 2016; Brock et al., 2017; Pham et al., 2018; Liu et al., 2018a; Chen et al., 2018; Bender et al., 2018; Gong et al., 2019; Chen et al., 2020a; Fu et al., 2020). ",
63
+ "bbox": [
64
+ 174,
65
+ 625,
66
+ 825,
67
+ 750
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "As an optimization problem, NAS faces two core questions: 1) “how to evaluate”, i.e. the objective function that defines what are good architectures we want; 2) “how to optimize”, i.e. by what means we could effectively optimize the objective function. These two questions are entangled and highly non-trivial, since the search spaces are of extremely high dimension, and the generalization ability of architectures cannot be easily inferred (Dong & Yang, 2020; Dong et al., 2020). Existing NAS methods mainly leverage the validation set and conduct accuracy-driven architecture optimization. They either formulate the search space as a super-network (“supernet”) and make the training loss differentiable through the architecture parameters (Liu et al., 2018b), or treat the architecture selection as a sequential decision making process (Zoph & Le, 2016) or evolution of genetics (Real et al., 2019). However, these NAS algorithms suffer from heavy consumption of both time and GPU resources. Training a supernet till convergence is extremely slow, even with many effective heuristics for sampling or channel approximations (Dong & Yang, 2019; Xu et al., 2019). Approximated proxy inference such as truncated training/early stopping can accelerate the search, but is well known to introduce search bias to the inaccurate results obtained (Pham et al., 2018; Liang et al., 2019; Tan et al., 2020). The heavy search cost not only slows down the discovery of novel architectures, but also blocks us from more meaningfully understanding the NAS behaviors. ",
74
+ "bbox": [
75
+ 174,
76
+ 757,
77
+ 825,
78
+ 924
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 174,
87
+ 103,
88
+ 825,
89
+ 159
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "On the other hand, the analysis of neural network’s trainability (how effective a network can be optimized via gradient descent) and expressivity (how complex the function a network can represent) has witnessed exciting development recently in the deep learning theory fields. By formulating neural networks as a Gaussian Process (no training involved), the gradient descent training dynamics can be characterized by the Neural Tangent Kernel (NTK) of infinite (Lee et al., 2019) or finite (Yang, 2019) width networks, from which several useful measures can be derived to depict the network trainability at the initialization. Hanin & Rolnick (2019a;b); Xiong et al. (2020) describe another measure of network expressivity, also without any training, by counting the number of unique linear regions that a neural network can divide in its input space. We are therefore inspired to ask: ",
96
+ "bbox": [
97
+ 173,
98
+ 166,
99
+ 825,
100
+ 291
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "• How to optimize NAS at network’s initialization without involving any training, thus significantly eliminating a heavy portion of the search cost? \n• Can we define how to evaluate in NAS by analyzing the trainability and expressivity of architectures, and further benefit our understanding of the search process? ",
107
+ "bbox": [
108
+ 174,
109
+ 297,
110
+ 825,
111
+ 358
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Our answers are yes to both questions. In this work, we propose TE-NAS, a framework for trainingfree neural architecture search. We leverage two indicators, the condition number of NTK and the number of linear regions, that can decouple and effectively characterize the trainability and expressivity of architectures respectively in complex NAS search spaces. Most importantly, these two indicators can be measured in a training-free and label-free manner, thus largely accelerates the NAS search process and benefits the understanding of discovered architectures. To our best knowledge, TE-NAS makes the first attempt to bridge the theoretical findings of deep neural networks and real-world NAS applications. While we intend not to claim that the two indicators we use are the only nor the best options, we hope our work opens a door to theoretically-inspired NAS and inspires the discovery of more deep network indicators. Our contributions are summarized as below: ",
118
+ "bbox": [
119
+ 173,
120
+ 363,
121
+ 825,
122
+ 502
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "• We identify and investigate two training-free and label-free indicators to rank the quality of deep architectures: the spectrum of their NTKs, and the number of linear regions in their input space. Our study finds that they reliably indicate the trainability and expressivity of a deep network respectively, and are strongly correlated with the network’s test accuracy. \n• We leverage the above two theoretically-inspired indicators to establish a training-free NAS framework, TE-NAS, therefore eliminating a drastic portion of the search cost. We further introduce a pruning-based mechanism, to boost search efficiency and to more flexibly trade-off between trainability and expressivity. \nIn NAS-Bench-201/DARTS search spaces, TE-NAS discovers architectures with a strong performance at remarkably lower search costs, compared to previous efforts. With just one $1 0 8 0 \\mathrm { T i }$ , it only costs 0.5 GPU hours to search on CIFAR10, and 4 GPU hours on ImageNet, respectively, setting the new record for ultra-efficient yet high-quality NAS. ",
129
+ "bbox": [
130
+ 173,
131
+ 507,
132
+ 825,
133
+ 684
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 RELATED WORKS ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 176,
143
+ 696,
144
+ 354,
145
+ 712
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Neural architecture search (NAS) is recently proposed to accelerate the principled and automated discovery of high-performance networks. However, most works suffer from heavy search cost, for both weight-sharing based methods (Liu et al., 2018b; Dong & Yang, 2019; Liu et al., 2019; Yu et al., 2020a; Li et al., 2020a; Yang et al., 2020a) and single-path sampling-based methods (Pham et al., 2018; Guo et al., 2019; Real et al., 2019; Tan et al., 2020; Li et al., 2020c; Yang et al., 2020b). A one-shot super network can share its parameters to sampled sub-networks and accelerate the architecture evaluations, but it is very heavy and hard to optimize and suffers from a poor correlation between its accuracy and those of the sub-networks (Yu et al., 2020c). Sampling-based methods achieve more accurate architecture evaluations, but their truncated training still imposes bias to the performance ranking since this is based on the results of early training stages. ",
152
+ "bbox": [
153
+ 173,
154
+ 722,
155
+ 825,
156
+ 861
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Instead of estimating architecture performance by direct training, people also try to predict network’s accuracy (or ranking), called predictor based NAS methods (Liu et al., 2018a; Luo et al., 2018; Dai et al., 2019; Luo et al., 2020). Graph neural network (GNN) is a popular choice as the predictor model (Wen et al., 2019; Chen et al., 2020b). Siems et al. (2020) even propose the first large-scale surrogate benchmark, where most of the architectures’ accuracies are predicted by a pretrained GNN predictor. The learned predictor can achieve highly accurate performance evaluation. However, the data collection step - sampling representative architectures and train them till converge - still requires extremely high cost. People have to sample and train 2,000 to 50,000 architectures to serve as the training data for the predictor. Moreover, none of these works can demonstrate the cross-space transferability of their predictors. This means one has to repeat the data collection and predictor training whenever facing an unseen search space, which is highly nonscalable. ",
163
+ "bbox": [
164
+ 176,
165
+ 867,
166
+ 823,
167
+ 924
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "",
174
+ "bbox": [
175
+ 174,
176
+ 103,
177
+ 825,
178
+ 202
179
+ ],
180
+ "page_idx": 2
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "The heavy cost of architecture evaluation hinders the understanding of the NAS search process. Recent pioneer works like Shu et al. (2019) observed that DARTS and ENAS tend to favor architectures with wide and shallow cell structures due to their smooth loss landscape. Siems et al. (2020) studied the distribution of test error for different cell depths and numbers of parameter-free operators. Chen & Hsieh (2020) for the first time regularizes the Hessian norm of the validation loss and visualizes the smoother loss landscape of the supernet. Li et al. (2020b) proposed to approximate the validation loss landscape by learning a mapping from neural architectures to their corresponding validate losses. Still, these analyses cannot be directly leveraged to guide the design of network architectures. ",
185
+ "bbox": [
186
+ 174,
187
+ 208,
188
+ 825,
189
+ 319
190
+ ],
191
+ "page_idx": 2
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "Mellor et al. (2020) recently proposed a NAS framework that does not involve training, which shares the same motivation with us towards training-free architecture search at initialization. They empirically find that the correlation between sample-wise input-output Jacobian can indicate the architecture’s test performance. However, why does the Jacobian work is not well explained and demonstrated. Their search performance on NAS-Bench-201 is still left behind by the state-of-the-art NAS works, and they did not extend to DARTs space. ",
196
+ "bbox": [
197
+ 174,
198
+ 325,
199
+ 825,
200
+ 410
201
+ ],
202
+ "page_idx": 2
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "Meanwhile, we see the evolving development of deep learning theory on neural networks. NTK (neural tangent kernel) is proposed to characterize the gradient descent training dynamics of infinite wide (Jacot et al., 2018) or finite wide deep networks (Hanin & Nica, 2019). Wide networks are also proved to evolve as linear models under gradient descent (Lee et al., 2019). This is further leveraged to decouple the trainability and generalization of networks (Xiao et al., 2019). Besides, a natural measure of ReLU network’s expressivity is the number of linear regions it can separate in its input space (Raghu et al., 2017; Montufar, 2017; Serra et al., 2018; Hanin & Rolnick, 2019a;b; Xiong ´ et al., 2020). In our work, we for the first time discover two important indicators that can effectively rank architectures, thus bridging the theoretic findings and real-world NAS applications. Instead of claiming the two indicators we discover are the best, we believe there are more meaningful properties of deep networks that can benefit the architecture search process. We leave them as open questions and encourage the community to study. ",
207
+ "bbox": [
208
+ 174,
209
+ 416,
210
+ 825,
211
+ 583
212
+ ],
213
+ "page_idx": 2
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "3 METHODS ",
218
+ "text_level": 1,
219
+ "bbox": [
220
+ 174,
221
+ 603,
222
+ 290,
223
+ 619
224
+ ],
225
+ "page_idx": 2
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "The core motivation of our TE-NAS framework is to achieve architecture evaluation without involving any training, to significantly accelerate the NAS search process and reduce the search cost. In section 3.1 we present our study on two important indicators that reflect the trainability and expressivity of a neural network, and in section 3.2 we design a novel pruning-based method that can achieve a superior trade-off between the two indicators. ",
230
+ "bbox": [
231
+ 174,
232
+ 633,
233
+ 825,
234
+ 703
235
+ ],
236
+ "page_idx": 2
237
+ },
238
+ {
239
+ "type": "text",
240
+ "text": "3.1 ANALYZING TRAINABILITY AND EXPRESSIVITY OF DEEP NETWORKS ",
241
+ "text_level": 1,
242
+ "bbox": [
243
+ 178,
244
+ 719,
245
+ 697,
246
+ 733
247
+ ],
248
+ "page_idx": 2
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "Trainability and expressivity are distinct notions regarding a neural network (Xiao et al., 2019). A network can achieve high performance only if the function it can represent is complex enough and at the same time, it can be effectively trained by gradient descent. ",
253
+ "bbox": [
254
+ 176,
255
+ 746,
256
+ 825,
257
+ 787
258
+ ],
259
+ "page_idx": 2
260
+ },
261
+ {
262
+ "type": "text",
263
+ "text": "3.1.1 TRAINABILITY BY CONDITION NUMBER OF NTK ",
264
+ "text_level": 1,
265
+ "bbox": [
266
+ 173,
267
+ 801,
268
+ 570,
269
+ 815
270
+ ],
271
+ "page_idx": 2
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "The trainability of a neural network indicates how effective it can be optimized using gradient descent (Burkholz & Dubatovka, 2019; Hayou et al., 2019; Shin & Karniadakis, 2020). Although some heavy networks can theoretically represent complex functions, they not necessarily can be effectively trained by gradient descent. One typical example is that, even with a much more number of parameters, $\\mathrm { V g g }$ networks (Simonyan & Zisserman, 2014) usually perform worse and require more special engineering tricks compared with ResNet family (He et al., 2016), whose superior trainability property is studied by Yang & Schoenholz (2017). ",
276
+ "bbox": [
277
+ 174,
278
+ 825,
279
+ 825,
280
+ 924
281
+ ],
282
+ "page_idx": 2
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "Recent work (Jacot et al., 2018; Lee et al., 2019; Chizat et al., 2019) studied the gradient descent training of neural networks using a quantity called the neural tangent kernel (NTK). The finite width NTK is defined by $\\hat { \\Theta } ( \\pmb { x } , \\pmb { x } ^ { \\prime } ) = \\bar { J } ( \\pmb { x } ) \\bar { J } ( \\pmb { x } ^ { \\prime } ) ^ { T }$ , where $J _ { i \\alpha } ( { \\pmb x } ) = \\partial _ { \\theta _ { \\alpha } } z _ { i } ^ { L } ( { \\pmb x } )$ is the Jacobian evaluated at a point $_ { \\textbf { \\em x } }$ for parameter $\\theta _ { \\alpha }$ , and $z _ { i } ^ { L }$ is the output of the $i$ -th neuron in the last output layer $L$ . ",
287
+ "bbox": [
288
+ 174,
289
+ 102,
290
+ 825,
291
+ 164
292
+ ],
293
+ "page_idx": 3
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "Lee et al. (2019) further proves that wide neural networks evolve as linear models using gradient descent, and their training dynamics is controlled by ODEs that can be solved as ",
298
+ "bbox": [
299
+ 173,
300
+ 170,
301
+ 823,
302
+ 198
303
+ ],
304
+ "page_idx": 3
305
+ },
306
+ {
307
+ "type": "equation",
308
+ "img_path": "images/ed0db9042e3a1b222d11930ccd3b2a4232d9fe90f88318366a90726f14df51f2.jpg",
309
+ "text": "$$\n\\mu _ { t } ( X _ { \\mathrm { t r a i n } } ) = ( { \\bf I } - e ^ { - \\eta \\hat { \\Theta } _ { \\mathrm { t r a i n } } t } ) Y _ { \\mathrm { t r a i n } }\n$$",
310
+ "text_format": "latex",
311
+ "bbox": [
312
+ 388,
313
+ 199,
314
+ 609,
315
+ 220
316
+ ],
317
+ "page_idx": 3
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "for training data. Here $\\mu _ { t } ( \\pmb { x } ) = \\mathbb { E } [ z _ { i } ^ { L } ( \\pmb { x } ) ]$ is the expected outputs of an infinitely wide network. $\\hat { \\Theta } _ { \\mathrm { t r a i n } }$ denotes the NTK between the training inputs, and $X _ { \\mathrm { t r a i n } }$ and $Y _ { \\mathrm { t r a i n } }$ are drawn from the training set $\\mathcal { D } _ { \\mathrm { t r a i n } }$ . As the training step $t$ tends to infinity we can see that Eq. 1 reduce to $\\mu ( X _ { \\mathrm { t r a i n } } ) = Y _ { \\mathrm { t r a i n } } $ . ",
322
+ "bbox": [
323
+ 173,
324
+ 223,
325
+ 826,
326
+ 266
327
+ ],
328
+ "page_idx": 3
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "The relationship between the conditioning of $\\hat { \\Theta }$ and the trainability of networks is studied by Xiao et al. (2019), and we brief the conclusion as below. We can write Eq. 1 in terms of the spectrum of $\\Theta$ : ",
333
+ "bbox": [
334
+ 173,
335
+ 273,
336
+ 825,
337
+ 303
338
+ ],
339
+ "page_idx": 3
340
+ },
341
+ {
342
+ "type": "equation",
343
+ "img_path": "images/6424b013f05b8a7f32fb3081b2b041095692131fcd86a92b8ca8c66a8911cb1c.jpg",
344
+ "text": "$$\n\\mu _ { t } ( X _ { \\mathrm { t r a i n } } ) _ { i } = ( \\mathbf { I } - e ^ { - \\eta \\lambda _ { i } t } ) Y _ { \\mathrm { t r a i n } , i } ,\n$$",
345
+ "text_format": "latex",
346
+ "bbox": [
347
+ 387,
348
+ 304,
349
+ 609,
350
+ 324
351
+ ],
352
+ "page_idx": 3
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "where $\\lambda _ { i }$ are the eigenvalues of $\\hat { \\Theta } _ { \\mathrm { t r a i n } }$ and we order the eigenvalues $\\lambda _ { 0 } \\geq \\cdots \\geq \\lambda _ { m }$ . As it has been hypothesized by Lee et al. (2019) that the maximum feasible learning rate scales as $\\eta \\sim 2 / \\lambda _ { 0 }$ , plugging this scaling for $\\eta$ into Eq. 2 we see that the $\\lambda _ { m }$ will converge exponentially at a rate given by $1 / \\kappa$ where $\\kappa = \\lambda _ { 0 } / \\lambda _ { m }$ is the condition number. Then we can conclude that if the $\\kappa$ of the NTK associated with a neural network diverges then it will become untrainable, so we use $\\kappa$ as a metric for trainability: ",
357
+ "bbox": [
358
+ 174,
359
+ 333,
360
+ 516,
361
+ 473
362
+ ],
363
+ "page_idx": 3
364
+ },
365
+ {
366
+ "type": "image",
367
+ "img_path": "images/3362e810a2898a515ca6d05037524ddffdc34e876ff29b129e781c046234c2f8.jpg",
368
+ "image_caption": [
369
+ "Figure 1: Condition number of NTK $\\kappa _ { \\mathcal { N } }$ exhibits negative correlation with the test accuracy of architectures in NAS-Bench201 (Dong & Yang, 2020). "
370
+ ],
371
+ "image_footnote": [],
372
+ "bbox": [
373
+ 529,
374
+ 339,
375
+ 825,
376
+ 426
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "equation",
382
+ "img_path": "images/566f37c74d36e7a01eccd8299f53023d654b8a5e9e75957a1009a9e099d1dbc9.jpg",
383
+ "text": "$$\n\\kappa _ { \\mathcal { N } } = \\frac { \\lambda _ { 0 } } { \\lambda _ { m } } .\n$$",
384
+ "text_format": "latex",
385
+ "bbox": [
386
+ 459,
387
+ 474,
388
+ 539,
389
+ 507
390
+ ],
391
+ "page_idx": 3
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "$\\kappa _ { \\mathcal { N } }$ is calculated without any gradient descent or label. Figure 1 demonstrates that the $\\kappa _ { \\mathcal { N } }$ is negatively correlated with the architecture’s test accuracy, with the Kendall-tau correlation as $- 0 . 4 2$ . Therefore, minimizing the $\\kappa _ { \\mathcal { N } }$ during the search will encourage the discovery of architectures with high performance. ",
396
+ "bbox": [
397
+ 174,
398
+ 507,
399
+ 825,
400
+ 563
401
+ ],
402
+ "page_idx": 3
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "3.1.2 EXPRESSIVITY BY NUMBER OF LINEAR REGIONS ",
407
+ "text_level": 1,
408
+ "bbox": [
409
+ 173,
410
+ 570,
411
+ 573,
412
+ 585
413
+ ],
414
+ "page_idx": 3
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "The expressivity of a neural network indicates how complex the function it can represent (Hornik et al., 1989; Giryes et al., 2016). For ReLU networks, each ReLU function defines a linear boundary and divides its input space into two regions. Since the composition of piecewise linear functions is still piecewise linear, every ReLU network can be seen as a piecewise linear function. The input space of a ReLU network can be partitioned into distinct pieces (i.e. linear regions) (Figure 2), each of which is associated with a set of affine parameters, and the function represented by the network is affine when restricted to each piece. Therefore, it is natural to measure the expressivity of a ReLU network with the number of linear regions it can separate. ",
419
+ "bbox": [
420
+ 174,
421
+ 588,
422
+ 637,
423
+ 741
424
+ ],
425
+ "page_idx": 3
426
+ },
427
+ {
428
+ "type": "image",
429
+ "img_path": "images/7982522b6a745b07e4a9d64194fc492c3cc1ea03f68b2d71292f0590ce4f610a.jpg",
430
+ "image_caption": [
431
+ "Figure 2: Example of linear regions divided by a ReLU network1 "
432
+ ],
433
+ "image_footnote": [],
434
+ "bbox": [
435
+ 661,
436
+ 588,
437
+ 802,
438
+ 696
439
+ ],
440
+ "page_idx": 3
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "Following Raghu et al. (2017); Montufar (2017); Serra et al. (2018); Hanin & Rolnick´ $( 2 0 1 9 \\mathrm { a } ; \\mathbf { b } )$ Xiong et al. (2020), we first introduce the following definition of activation patterns and linear regions for ReLU CNNs. ",
445
+ "bbox": [
446
+ 173,
447
+ 748,
448
+ 821,
449
+ 790
450
+ ],
451
+ "page_idx": 3
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "Definition 1. Activation Patterns and Linear Regions (Xiong et al. (2020)) Let $\\mathcal { N }$ be a ReLU CNN. An activation pattern of $\\mathcal { N }$ is a function $_ { r }$ from the set of neurons to $\\{ 1 , - 1 \\}$ , i.e., for each neuron $z$ in $\\mathcal { N }$ , we have $P ( z ) \\in \\{ 1 , - 1 \\}$ . Let $\\theta$ be a fixed set of parameters (weights and biases) in $\\mathcal { N }$ , and $_ { r }$ be an activation pattern. The region corresponding to $_ { r }$ and $\\theta$ is ",
456
+ "bbox": [
457
+ 173,
458
+ 797,
459
+ 825,
460
+ 853
461
+ ],
462
+ "page_idx": 3
463
+ },
464
+ {
465
+ "type": "equation",
466
+ "img_path": "images/25d1c083efa136bffa44255274ea6a7d64d310b03127e9330f053618164ddd64.jpg",
467
+ "text": "$$\n\\begin{array} { r } { R ( P ; \\theta ) : = \\{ { \\pmb x } ^ { 0 } \\in \\mathbb { R } ^ { C \\times H \\times W } : z ( { \\pmb x } ^ { 0 } ; \\theta ) \\cdot { \\pmb P } ( z ) > 0 , \\quad \\forall z \\in \\mathcal { N } \\} , } \\end{array}\n$$",
468
+ "text_format": "latex",
469
+ "bbox": [
470
+ 281,
471
+ 853,
472
+ 714,
473
+ 872
474
+ ],
475
+ "page_idx": 3
476
+ },
477
+ {
478
+ "type": "text",
479
+ "text": "where $z ( \\pmb { x } ^ { 0 } ; \\theta )$ is the pre-activation of a neuron $z$ . Let $R _ { \\mathcal { N } , \\theta }$ denote the number of linear regions of $\\mathcal { N }$ at $\\theta$ , i.e., $R _ { \\mathcal { N } , \\theta } : = \\# \\{ R ( P ; \\theta ) : R ( P ; \\theta ) \\neq \\emptyset$ for some activation pattern $P \\}$ . ",
480
+ "bbox": [
481
+ 179,
482
+ 873,
483
+ 826,
484
+ 902
485
+ ],
486
+ "page_idx": 3
487
+ },
488
+ {
489
+ "type": "text",
490
+ "text": "Eq. 4 tells us that a linear region in the input space is a set of input data $\\mathbf { x } ^ { 0 }$ that satisfies a certain fixed activation pattern $\\bar { \\boldsymbol { P } } ( z )$ , and therefore the number of linear regions $R _ { \\mathcal { N } , \\theta }$ measures how many unique activation patterns that can be divided by the network. ",
491
+ "bbox": [
492
+ 173,
493
+ 103,
494
+ 553,
495
+ 172
496
+ ],
497
+ "page_idx": 4
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "In our work, we repeat the measurement of the number of linear regions by sampling network parameters from the Kaiming Norm Initialization (He et al., 2015), and calculate the average as the approximation to its expectation: ",
502
+ "bbox": [
503
+ 173,
504
+ 181,
505
+ 553,
506
+ 236
507
+ ],
508
+ "page_idx": 4
509
+ },
510
+ {
511
+ "type": "equation",
512
+ "img_path": "images/0ac51725478ae2c2bbaaa3490e8da3ce5652419ca0641f3a19d0786496f403f8.jpg",
513
+ "text": "$$\n\\hat { R } _ { \\mathcal { N } } \\simeq \\mathbb { E } _ { \\theta } R _ { \\mathcal { N } , \\theta }\n$$",
514
+ "text_format": "latex",
515
+ "bbox": [
516
+ 310,
517
+ 255,
518
+ 415,
519
+ 275
520
+ ],
521
+ "page_idx": 4
522
+ },
523
+ {
524
+ "type": "image",
525
+ "img_path": "images/b2d93de6fbb1a383c41afa3257e7e64a8de68570ea962a420a5a43e77c224850.jpg",
526
+ "image_caption": [
527
+ "Figure 3: Number of linear regions $\\hat { R } _ { \\mathcal { N } }$ of architectures in NAS-Bench201 exhibits positive correlation with test accuracies. "
528
+ ],
529
+ "image_footnote": [],
530
+ "bbox": [
531
+ 576,
532
+ 98,
533
+ 807,
534
+ 231
535
+ ],
536
+ "page_idx": 4
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "We iterate through all architectures in NAS-Bench-201 (Dong & Yang, 2020), and calculate their numbers of linear regions (without any gradient descent or label). Figure 3 demonstrates that the number of linear regions is positively correlated with the architecture’s test accuracy, with the Kendall-tau correlation as 0.5. Therefore, maximizing the number of linear regions during the search will also encourage the discovery of architectures with high performance. ",
541
+ "bbox": [
542
+ 174,
543
+ 285,
544
+ 531,
545
+ 411
546
+ ],
547
+ "page_idx": 4
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "Finally, in Figure 4 we analyze the operator composition of top $10 \\%$ architecture by maximizing $\\hat { R } _ { \\mathcal { N } }$ and minimizing $\\kappa _ { \\mathcal { N } }$ , respectively. We can clearly see that $\\hat { R } _ { \\mathcal { N } }$ and $\\kappa _ { \\mathcal { N } }$ have different preferences for choosing operators. They both choose a large ratio of conv $3 \\times 3$ for high generalization performance. But meanwhile, $\\hat { R } _ { \\mathcal { N } }$ heavily selects $\\mathbf { c o n v 1 } \\times 1$ , and $\\kappa _ { \\mathcal { N } }$ leads to skip-connect, favoring the gradient flow. ",
552
+ "bbox": [
553
+ 173,
554
+ 417,
555
+ 531,
556
+ 462
557
+ ],
558
+ "page_idx": 4
559
+ },
560
+ {
561
+ "type": "image",
562
+ "img_path": "images/a87c3990390e3008ac1c0860925cb464148f6012c6ea58ca9b73b32873371cb6.jpg",
563
+ "image_caption": [
564
+ "Figure 4: $\\kappa { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } }$ prefer different operators in NAS-Bench201. "
565
+ ],
566
+ "image_footnote": [],
567
+ "bbox": [
568
+ 552,
569
+ 292,
570
+ 812,
571
+ 425
572
+ ],
573
+ "page_idx": 4
574
+ },
575
+ {
576
+ "type": "text",
577
+ "text": "",
578
+ "bbox": [
579
+ 176,
580
+ 463,
581
+ 825,
582
+ 507
583
+ ],
584
+ "page_idx": 4
585
+ },
586
+ {
587
+ "type": "text",
588
+ "text": "3.2 PRUNING-BY-IMPORTANCE ARCHITECTURE SEARCH ",
589
+ "text_level": 1,
590
+ "bbox": [
591
+ 174,
592
+ 520,
593
+ 578,
594
+ 534
595
+ ],
596
+ "page_idx": 4
597
+ },
598
+ {
599
+ "type": "text",
600
+ "text": "Given the strong correlation between the architecture’s test accuracy and its $\\kappa _ { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } }$ , how to build an efficient NAS framework on top of them? We motivate this section by addressing two questions: ",
601
+ "bbox": [
602
+ 173,
603
+ 539,
604
+ 823,
605
+ 568
606
+ ],
607
+ "page_idx": 4
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "1. How to combine $\\kappa _ { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } }$ together, with a good explicit trade-off? ",
612
+ "bbox": [
613
+ 174,
614
+ 574,
615
+ 647,
616
+ 590
617
+ ],
618
+ "page_idx": 4
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "We first need to turn the two measurements $\\kappa _ { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } }$ into one combined function, based on which we can rank architectures. As seen in Figure 1 and 3, the magnitudes of $\\kappa _ { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } }$ differ much. To avoid one overwhelming the other numerically, one possible remedy is normalization; but we cannot pre-know the ranges nor the value distributions of $\\kappa _ { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } }$ , before computing them over a search space. In order to make our combined function well defined before search and agnostic to the search space, instead of using the numerical values of $\\kappa _ { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } }$ , we could refer to their relative rankings. Specifically, each time by comparing the sampled set of architectures peer-to-peer, we can directly sum up the two relative rankings of $\\kappa _ { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } } ^ { \\bar { } }$ as the selection criterion. The equal-weight summation treats trainability and expressivity with the same importance conceptually1 and delivers the best empirical result: we thus choose it as our default combined function. We also tried some other means to combine the two, and the ablation studies can be found in Appendix D.2. ",
623
+ "bbox": [
624
+ 173,
625
+ 598,
626
+ 825,
627
+ 758
628
+ ],
629
+ "page_idx": 4
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "2. How to search more efficiently? ",
634
+ "text_level": 1,
635
+ "bbox": [
636
+ 176,
637
+ 765,
638
+ 398,
639
+ 780
640
+ ],
641
+ "page_idx": 4
642
+ },
643
+ {
644
+ "type": "text",
645
+ "text": "Sampling-based methods like reinforcement learning or evolution can use rankings as the reward or filtering metric. However, they are inefficient, especially for complex cell-based search space. Consider a network stacked by repeated cells (directed acyclic graphs) (Zoph et al., 2018; Liu et al., 2018b). Each cell has $E$ edges, and on each edge we only select one operator out of $| \\mathcal { O } |$ ( $\\mathcal { O }$ is the set of operator candidates). There are $| \\mathcal { O } | ^ { E }$ unique cells, and for sampling-based methods, $\\gamma \\cdot | \\mathcal { O } | ^ { E }$ networks have to be sampled during the search. The ratio $\\gamma$ can be interpreted as the sampling efficiency: a method with small $\\gamma$ can find good architectures faster. However, the search time cost of sampling-based methods still scales up with the size of the search space, i.e., $| \\mathcal { O } | ^ { E }$ . ",
646
+ "bbox": [
647
+ 174,
648
+ 786,
649
+ 825,
650
+ 898
651
+ ],
652
+ "page_idx": 4
653
+ },
654
+ {
655
+ "type": "text",
656
+ "text": "Inspired by recent works on pruning-from-scratch (Lee et al., 2018; Wang et al., 2020), we propose a pruning-by-importance NAS mechanism to quickly shrink the search possibilities and boost the efficiency further, reducing the cost from $| \\mathcal { O } | ^ { E }$ to $| \\mathcal { O } | \\cdot E$ . Specifically, we start the search with a super-network $\\mathcal { N } _ { 0 }$ composed of all possible operators and edges. In the outer loop, for every round we prune one operator on each edge. The outer-loop stops when the current supernet $\\mathcal { N } _ { t }$ is a single-path network2, i.e., the algorithm will return us the final searched architecture. For the inner-loop, we measure the change of $\\kappa _ { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } }$ before and after pruning each individual operator, and assess its importance using the sum of two ranks. We order all currently available operators in terms of their importance, and prune the lowest-importance operator on each edge. ",
657
+ "bbox": [
658
+ 173,
659
+ 103,
660
+ 825,
661
+ 231
662
+ ],
663
+ "page_idx": 5
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "The whole pruning process is extremely fast. As we will demonstrate later, our approach is principled and can be applied to different spaces without making any modifications. This pruning-by-importance mechanism may also be extended to indicators beyond $\\kappa _ { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } }$ . We summarize our training-free and pruning-based NAS framework, TE-NAS, in Algorithm 1. ",
668
+ "bbox": [
669
+ 173,
670
+ 238,
671
+ 825,
672
+ 296
673
+ ],
674
+ "page_idx": 5
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "Algorithm 1: TE-NAS: Training-free Pruning-based NAS via Ranking of $\\kappa _ { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } }$ ",
679
+ "text_level": 1,
680
+ "bbox": [
681
+ 169,
682
+ 310,
683
+ 743,
684
+ 327
685
+ ],
686
+ "page_idx": 5
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "1 Input: supernet $\\mathcal { N } _ { 0 }$ stacked by cells, each cell has $E$ edges, each edge has $| \\mathcal { O } |$ operators, step $t = 0$ . \n2 while $\\mathcal { N } _ { t }$ is not a single-path network do \n3 for each operator $o _ { j }$ in $\\mathcal { N } _ { t }$ do \n4 $\\begin{array} { r l } & { \\dot { \\bf \\Delta } \\Delta \\kappa _ { t , o _ { j } } = \\kappa _ { \\mathcal { N } _ { t } } \\dot { \\bf \\Delta } - \\kappa _ { \\mathcal { N } _ { t } \\backslash o _ { j } } } \\\\ & { \\Delta R _ { t , o _ { j } } = R _ { \\mathcal { N } _ { t } } - R _ { \\mathcal { N } _ { t } \\backslash o _ { j } } } \\end{array}$ . the higher $\\Delta \\kappa _ { t , o _ { j } }$ the more likely we will prune $o _ { j }$ \n5 $\\triangleright$ the lower $\\Delta R _ { t , o _ { j } }$ the more likely we will prune $o _ { j }$ \n6 Get importance by $\\kappa _ { \\mathcal { N } }$ : $s _ { \\kappa } ( o _ { j } ) =$ index of $o _ { j }$ in descendingly sorted list $[ \\Delta \\kappa _ { t , o _ { 1 } } , . . . , \\Delta \\kappa _ { t , o _ { | \\mathcal { N } _ { t } | } } ]$ \n7 Get importance by $R _ { \\mathcal { N } }$ : $s _ { R } ( o _ { j } ) =$ index of $o _ { j }$ in ascendingly sorted list $[ \\Delta R _ { t , o _ { 1 } } , . . . , \\Delta R _ { t , o _ { | \\mathcal { N } _ { t } | } } ]$ \n8 Get importance $s ( o _ { j } ) = s _ { \\kappa } ( o _ { j } ) + s _ { R } ( o _ { j } )$ \n9 $\\mathcal { N } _ { t + 1 } \\dot { = } \\mathcal { N } _ { t }$ \n10 for each edge $e _ { i }$ , $i = 1 , . . . , E$ do \n11 $j ^ { * } = \\arg \\operatorname* { m i n } _ { j } \\{ s ( o _ { j } ) : o _ { j } \\in e _ { i } \\}$ . find the operator with greatest importance on each edge. \n12 $\\mathcal { N } _ { t + 1 } = \\mathcal { N } _ { t + 1 } \\backslash o _ { j ^ { * } }$ \n13 $t = t + 1$ ",
691
+ "bbox": [
692
+ 158,
693
+ 329,
694
+ 808,
695
+ 516
696
+ ],
697
+ "page_idx": 5
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "3.2.1 VISUALIZATION OF SEARCH PROCESS ",
702
+ "text_level": 1,
703
+ "bbox": [
704
+ 176,
705
+ 561,
706
+ 491,
707
+ 575
708
+ ],
709
+ "page_idx": 5
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "TE-NAS benefits us towards a better understanding of the search process. We can analyze the trajectory of $\\kappa _ { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } }$ during the search. It is worth noting that our starting point $\\mathcal { N } _ { 0 }$ , the un-pruned supernet, is assumed to be of the highest expressivity (as it is composed of all operators in the search space and has the largest number of parameters and ReLU functions). However, it has poor trainability, as people find many engineering techniques are required to effectively training the supernet (Yu et al., 2020a;b). Therefore, during pruning we are expecting to strengthen the trainability of the supernet, while retaining its expressivity as much as possible. ",
714
+ "bbox": [
715
+ 174,
716
+ 588,
717
+ 508,
718
+ 771
719
+ ],
720
+ "page_idx": 5
721
+ },
722
+ {
723
+ "type": "image",
724
+ "img_path": "images/5eab6423b3234fdb8c4dc99767d6da291ff972a600d6a8e262fa1295d7f97422.jpg",
725
+ "image_caption": [
726
+ "Figure 5: Pruning trajectory on NAS-Bench-201 (top) and DARTs search space (bottom). Number $\\cdot _ { 0 } \\cdot \\mathbf { \\vec { \\tau } }$ indicates the supernet $\\mathcal { N } _ { 0 }$ before any pruning, which is of high expressivity but poor trainability. "
727
+ ],
728
+ "image_footnote": [],
729
+ "bbox": [
730
+ 553,
731
+ 553,
732
+ 767,
733
+ 799
734
+ ],
735
+ "page_idx": 5
736
+ },
737
+ {
738
+ "type": "text",
739
+ "text": "As we observe in Figure 5, the supernet $\\mathcal { N }$ is first pruned by quickly reducing $\\kappa _ { \\mathcal { N } }$ , i.e., increasing the network’s trainability. After that, as the improvement of $\\kappa _ { \\mathcal { N } }$ is almost plateaued, the method carefully fine-tunes the architecture without sacrificing too much expressivity $\\hat { R } _ { \\mathcal { N } }$ . ",
740
+ "bbox": [
741
+ 174,
742
+ 779,
743
+ 508,
744
+ 864
745
+ ],
746
+ "page_idx": 5
747
+ },
748
+ {
749
+ "type": "text",
750
+ "text": "4 EXPERIMENTS ",
751
+ "text_level": 1,
752
+ "bbox": [
753
+ 174,
754
+ 102,
755
+ 326,
756
+ 117
757
+ ],
758
+ "page_idx": 6
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "In this section, we evaluate our TE-NAS on two search spaces: NAS-Bench-201 (Dong & Yang, 2020) and DARTS (Liu et al., 2018b). Search and training protocols are summarized in Appendix A. Our code is available at: https://github.com/VITA-Group/TENAS. ",
763
+ "bbox": [
764
+ 174,
765
+ 133,
766
+ 826,
767
+ 176
768
+ ],
769
+ "page_idx": 6
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "4.1 RESULTS ON NAS-BENCH-201 ",
774
+ "text_level": 1,
775
+ "bbox": [
776
+ 176,
777
+ 188,
778
+ 428,
779
+ 202
780
+ ],
781
+ "page_idx": 6
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "NAS-Bench-201 (Dong & Yang, 2020) provides a standard cell-based search space (containing 15,625 architectures) and a database of architecture’s performance evaluated under a unified protocol. The network’s test accuracy can be directly obtained by querying the database, which facilitates people to focus on studying NAS algorithms without network evaluation. NAS-Bench-201 supports three datasets (CIFAR-10, CIFAR-100, ImageNet-16-120 (Chrabaszcz et al., 2017)). The operation space contains none (zero), skip connection, $c o n \\nu 1 \\times 1$ , $c o n \\nu 3 \\times 3$ convolution, and average pooling $3 \\times 3$ . We refer to their paper for details of the space. Our search is dataset-specific, i.e. the search and evaluation are conducted on the same dataset. ",
786
+ "bbox": [
787
+ 173,
788
+ 213,
789
+ 825,
790
+ 325
791
+ ],
792
+ "page_idx": 6
793
+ },
794
+ {
795
+ "type": "table",
796
+ "img_path": "images/022c5d2c1baaa61c3cde18d6b48cd9cae1a67897d05c8d02a69dba4843fc4d8e.jpg",
797
+ "table_caption": [
798
+ "Table 1: Comparison with state-of-the-art NAS methods on NAS-Bench-201. Test accuracy with mean and deviation are reported. “optimal” indicates the best test accuracy achievable in NAS-Bench-201 search space. "
799
+ ],
800
+ "table_footnote": [],
801
+ "table_body": "<table><tr><td>Architecture</td><td>CIFAR-10</td><td>CIFAR-100</td><td>ImageNet-16-120</td><td>Search Cost (GPU sec.)</td><td>Search Method</td></tr><tr><td>ResNet (He et al.,2016)</td><td>93.97</td><td>70.86</td><td>43.63</td><td>-</td><td>-</td></tr><tr><td>RSPS (Li&amp; Talwalkar,2020)</td><td>87.66(1.69)</td><td>58.33(4.34)</td><td>31.14(3.88)</td><td>8007.13</td><td>random</td></tr><tr><td>ENAS (Pham et al., 2018)</td><td>54.30(0.00)</td><td>15.61(0.00)</td><td>16.32(0.00)</td><td>13314.51</td><td>RL</td></tr><tr><td>DARTS (1st) (Liu et al.,2018b)</td><td>54.30(0.00)</td><td>15.61(0.00)</td><td>16.32(0.00)</td><td>10889.87</td><td>gradient</td></tr><tr><td>DARTS (2nd) (Liu et al.,2018b)</td><td>54.30(0.00)</td><td>15.61(0.00)</td><td>16.32(0.00)</td><td>29901.67</td><td>gradient</td></tr><tr><td>GDAS (Dong&amp; Yang,2019)</td><td>93.61(0.09)</td><td>70.70(0.30)</td><td>41.84(0.90)</td><td>28925.91</td><td>gradient</td></tr><tr><td>NAS w.o. Training (Mellor et al.,2020)</td><td>91.78(1.45)</td><td>67.05(2.89)</td><td>37.07(6.39)</td><td>4.8</td><td>training-free</td></tr><tr><td>TE-NAS (ours)</td><td>93.9(0.47)</td><td>71.24(0.56)</td><td>42.38(0.46)</td><td>1558</td><td>training-free</td></tr><tr><td> Optimal</td><td>94.37</td><td>73.51</td><td>47.31</td><td>-</td><td>-</td></tr></table>",
802
+ "bbox": [
803
+ 174,
804
+ 357,
805
+ 825,
806
+ 502
807
+ ],
808
+ "page_idx": 6
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "We run TE-NAS for four independent times with different random seeds, and report the mean and standard deviation in Table 1. We can see that TE-NAS achieves the best accuracy on all three datasets, and largely reduces the search cost $( 5 \\times \\sim 1 9 \\times$ reduction). Although Mellor et al. (2020) requires even less search time (by only sampling 25 architectures), they suffer from much inferior accuracy performance, with notably larger deviations across different search rounds. ",
813
+ "bbox": [
814
+ 173,
815
+ 515,
816
+ 825,
817
+ 585
818
+ ],
819
+ "page_idx": 6
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "4.2 RESULTS ON CIFAR-10 WITH DARTS SEARCH SPACE ",
824
+ "text_level": 1,
825
+ "bbox": [
826
+ 174,
827
+ 597,
828
+ 591,
829
+ 611
830
+ ],
831
+ "page_idx": 6
832
+ },
833
+ {
834
+ "type": "text",
835
+ "text": "Architecture Space The DARTs operation space $\\mathcal { O }$ contains eight choices: none (zero), skip connection, separable convolution $3 \\times 3$ and $5 \\times 5$ , dilated separable convolution $3 \\times 3$ and $5 \\times 5$ , max pooling $3 \\times 3$ , average pooling $3 \\times 3$ . Following previous works (Liu et al., 2018b; Chen et al., 2019; $\\mathrm { X u }$ et al., 2019), for evaluation phases, we stack 20 cells to compose the network and set the initial channel number as 36. We place the reduction cells at the 1/3 and 2/3 of the network and each cell consists of six nodes. ",
836
+ "bbox": [
837
+ 174,
838
+ 623,
839
+ 825,
840
+ 680
841
+ ],
842
+ "page_idx": 6
843
+ },
844
+ {
845
+ "type": "table",
846
+ "img_path": "images/c2a26b3ba2565b4d49a4a31eb1bc02f36d7e41422238edcb310671b2b75deff6.jpg",
847
+ "table_caption": [
848
+ "Table 2: Comparison with state-of-the-art NAS methods on CIFAR-10. "
849
+ ],
850
+ "table_footnote": [
851
+ "? No cutout augmentation. † Different space: PyramidNet (Han et al., 2017) as the backbone. ‡ Recorded on a single GTX 1080Ti GPU. "
852
+ ],
853
+ "table_body": "<table><tr><td>Architecture</td><td>Test Error (%)</td><td>Params (M)</td><td>Search Cost (GPU days)</td><td>Search Method</td></tr><tr><td>AmoebaNet-A (Real et al., 2019)</td><td>3.34(0.06)</td><td>3.2</td><td>3150</td><td>evolution</td></tr><tr><td>PNAS (Liu et al.,2018a)*</td><td>3.41(0.09)</td><td>3.2</td><td>225</td><td>SMBO</td></tr><tr><td>ENAS (Pham et al., 2018)</td><td>2.89</td><td>4.6</td><td>0.5</td><td>RL</td></tr><tr><td>NASNet-A (Zoph et al.,2018)</td><td>2.65</td><td>3.3</td><td>2000</td><td>RL</td></tr><tr><td>DARTS (1st) (Liu et al.,2018b)</td><td>3.00(0.14)</td><td>3.3</td><td>0.4</td><td>gradient</td></tr><tr><td>DARTS (2nd) (Liu et al., 2018b)</td><td>2.76(0.09)</td><td>3.3</td><td>1.0</td><td>gradient</td></tr><tr><td>SNAS (Xie et al.,2018)</td><td>2.85(0.02)</td><td>2.8</td><td>1.5</td><td>gradient</td></tr><tr><td>GDAS (Dong &amp; Yang,2019)</td><td>2.82</td><td>2.5</td><td>0.17</td><td>gradient</td></tr><tr><td>BayesNAS (Zhou et al.,2019)</td><td>2.81(0.04)</td><td>3.4</td><td>0.2</td><td>gradient</td></tr><tr><td>ProxylessNAS (Cai et al.,2018)†</td><td>2.08</td><td>5.7</td><td>4.0</td><td>gradient</td></tr><tr><td>P-DARTS (Chen et al.,2019)</td><td>2.50</td><td>3.4</td><td>0.3</td><td>gradient</td></tr><tr><td>PC-DARTS (Xu et al.,2019)</td><td>2.57(0.07)</td><td>3.6</td><td>0.1</td><td>gradient</td></tr><tr><td>SDARTS-ADV (Chen &amp; Hsieh,2020)</td><td>2.61(0.02)</td><td>3.3</td><td>1.3</td><td>gradient</td></tr><tr><td>TE-NAS (ours)</td><td>2.63(0.064)</td><td>3.8</td><td>0.05</td><td>training-free</td></tr></table>",
854
+ "bbox": [
855
+ 250,
856
+ 705,
857
+ 743,
858
+ 895
859
+ ],
860
+ "page_idx": 6
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "",
865
+ "bbox": [
866
+ 174,
867
+ 103,
868
+ 823,
869
+ 132
870
+ ],
871
+ "page_idx": 7
872
+ },
873
+ {
874
+ "type": "text",
875
+ "text": "Results We run TE-NAS for four independent times with different random seeds, and report the mean and standard deviation. Table 2 summarizes the performance of TE-NAS compared with other popular NAS methods. TE-NAS achieves a test error of $2 . 6 3 \\%$ , ranking among the top of recent NAS results, but meanwhile largely reduces the search cost to only 0.05 GPU-day. ProxylessNAS achieves the lowest test error, but it searches on a different space with a much longer search time and has a larger model size. Besides, Mellor et al. (2020) did not extend to their Jacobian-based framework to DARTs search space for CIFAR-10 or ImageNet classification. ",
876
+ "bbox": [
877
+ 174,
878
+ 148,
879
+ 825,
880
+ 246
881
+ ],
882
+ "page_idx": 7
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "4.3 RESULTS ON IMAGENET WITH DARTS SEARCH SPACE ",
887
+ "text_level": 1,
888
+ "bbox": [
889
+ 174,
890
+ 263,
891
+ 594,
892
+ 279
893
+ ],
894
+ "page_idx": 7
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "Architecture Space Following previous works $\\mathrm { { X u } }$ et al., 2019; Chen et al., 2019), the architecture for ImageNet is slightly different from that for CIFAR-10. During retraining evaluation, the network is stacked with 14 cells with the initial channel number set to 48, and we follow the mobile setting to control the FLOPs not exceed $6 0 0 { \\mathrm { M B } }$ by adjusting the channel number. The spatial resolution is downscaled from $2 2 4 \\times 2 2 4$ to $2 8 \\times 2 8$ with the first three convolution layers of stride 2. ",
899
+ "bbox": [
900
+ 174,
901
+ 290,
902
+ 825,
903
+ 359
904
+ ],
905
+ "page_idx": 7
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "Results As shown in Table 3, we achieve a top-1/5 test error of $2 4 . 5 \\% / 7 . 5 \\%$ , achieving competitive performance with recent state-of-the-art works in the ImageNet mobile setting. However, TE-NAS only cost four GPU hours with only one 1080Ti. Searching on ImageNet takes a longer time than on CIFAR-10 due to the larger input size and more network parameters. ",
910
+ "bbox": [
911
+ 174,
912
+ 376,
913
+ 823,
914
+ 433
915
+ ],
916
+ "page_idx": 7
917
+ },
918
+ {
919
+ "type": "table",
920
+ "img_path": "images/be55f27dd7173cf1e3ae32a0bcc20ab312a6fee88d475f850b4a5e120874d7cd.jpg",
921
+ "table_caption": [
922
+ "Table 3: Comparison with state-of-the-art NAS methods on ImageNet under the mobile setting. "
923
+ ],
924
+ "table_footnote": [
925
+ "† The architecture is searched on ImageNet, otherwise it is searched on CIFAR-10 or CIFAR-100. "
926
+ ],
927
+ "table_body": "<table><tr><td rowspan=\"2\">Architecture</td><td colspan=\"2\">Test Error(%)</td><td rowspan=\"2\">Params (M)</td><td rowspan=\"2\">Search Cost (GPU days)</td><td rowspan=\"2\">Search Method</td></tr><tr><td>top-1</td><td>top-5</td></tr><tr><td>NASNet-A (Zoph et al.,2018)</td><td>26.0</td><td>8.4</td><td>5.3</td><td>2000</td><td>RL</td></tr><tr><td>AmoebaNet-C (Real et al.,2019)</td><td>24.3</td><td>7.6</td><td>6.4</td><td>3150</td><td>evolution</td></tr><tr><td>PNAS (Liu et al., 2018a)</td><td>25.8</td><td>8.1</td><td>5.1</td><td>225</td><td>SMBO</td></tr><tr><td>MnasNet-92 (Tan et al.,2019)</td><td>25.2</td><td>8.0</td><td>4.4</td><td>1</td><td>RL</td></tr><tr><td>DARTS (2nd) (Liu et al.,2018b)</td><td>26.7</td><td>8.7</td><td>4.7</td><td>4.0</td><td>gradient</td></tr><tr><td>SNAS (mild) (Xie et al.,2018)</td><td>27.3</td><td>9.2</td><td>4.3</td><td>1.5</td><td>gradient</td></tr><tr><td>GDAS (Dong &amp; Yang,2019)</td><td>26.0</td><td>8.5</td><td>5.3</td><td>0.21</td><td>gradient</td></tr><tr><td>BayesNAS (Zhou et al.,2019)</td><td>26.5</td><td>8.9</td><td>3.9</td><td>0.2</td><td>gradient</td></tr><tr><td>P-DARTS (CIFAR-10) (Chen et al., 2019)</td><td>24.4</td><td>7.4</td><td>4.9</td><td>0.3</td><td>gradient</td></tr><tr><td>P-DARTS (CIFAR-100)(Chen et al.,2019)</td><td>24.7</td><td>7.5</td><td>5.1</td><td>0.3</td><td>gradient</td></tr><tr><td>PC-DARTS (CIFAR-1O)(Xu et al.,2019)</td><td>25.1</td><td>7.8</td><td>5.3</td><td>0.1</td><td>gradient</td></tr><tr><td>TE-NAS (ours)</td><td>26.2</td><td>8.3</td><td>6.3</td><td>0.05</td><td>training-free</td></tr><tr><td>PC-DARTS (ImageNet) (Xu et al., 2019)†</td><td>24.2</td><td>7.3</td><td>5.3</td><td>3.8</td><td>gradient</td></tr><tr><td>ProxylessNAS (GPU) (Cai et al.,2018)†</td><td>24.9</td><td>7.5</td><td>7.1</td><td>8.3</td><td>gradient</td></tr><tr><td>TE-NAS (ours)†</td><td>24.5</td><td>7.5</td><td>5.4</td><td>0.17</td><td>training-free</td></tr></table>",
928
+ "bbox": [
929
+ 235,
930
+ 462,
931
+ 759,
932
+ 662
933
+ ],
934
+ "page_idx": 7
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "5 CONCLUSION ",
939
+ "text_level": 1,
940
+ "bbox": [
941
+ 174,
942
+ 689,
943
+ 320,
944
+ 705
945
+ ],
946
+ "page_idx": 7
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "The key questions in Neural Architecture Search (NAS) are “what are good architectures” and “how to find them”. Validation loss or accuracy are possible answers but not enough, due to their search bias and heavy evaluation cost. Our work demonstrates that two theoretically inspired indicators, the spectrum of NTK and the number of linear regions, not only strongly correlate with the network’s performance, but also benefit the reduced search cost and decoupled analysis of the network’s trainability and expressivity. Without involving any training, our TE-NAS achieve competitive NAS performance with minimum search time. We for the first time bridge the gap between the theoretic findings of deep neural networks and real-world NAS applications, and we encourage the community to further explore more meaningful network properties so that we will have a better understanding of good architectures and how to search them. ",
951
+ "bbox": [
952
+ 173,
953
+ 715,
954
+ 825,
955
+ 854
956
+ ],
957
+ "page_idx": 7
958
+ },
959
+ {
960
+ "type": "text",
961
+ "text": "ACKNOWLEDGEMENT ",
962
+ "text_level": 1,
963
+ "bbox": [
964
+ 176,
965
+ 871,
966
+ 357,
967
+ 886
968
+ ],
969
+ "page_idx": 7
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "This work is supported in part by the NSF Real-Time Machine Learning program (Award Number: 2053279), and the US Army Research Office Young Investigator Award (W911NF2010240). ",
974
+ "bbox": [
975
+ 174,
976
+ 895,
977
+ 821,
978
+ 924
979
+ ],
980
+ "page_idx": 7
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "REFERENCES ",
985
+ "text_level": 1,
986
+ "bbox": [
987
+ 176,
988
+ 103,
989
+ 287,
990
+ 117
991
+ ],
992
+ "page_idx": 8
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "Gabriel Bender, Pieter-Jan Kindermans, Barret Zoph, Vijay Vasudevan, and Quoc Le. Understanding and simplifying one-shot architecture search. In International Conference on Machine Learning, pp. 549–558, 2018. ",
997
+ "bbox": [
998
+ 174,
999
+ 126,
1000
+ 825,
1001
+ 167
1002
+ ],
1003
+ "page_idx": 8
1004
+ },
1005
+ {
1006
+ "type": "text",
1007
+ "text": "Andrew Brock, Theodore Lim, James M Ritchie, and Nick Weston. Smash: one-shot model architecture search through hypernetworks. arXiv preprint arXiv:1708.05344, 2017. ",
1008
+ "bbox": [
1009
+ 171,
1010
+ 176,
1011
+ 823,
1012
+ 205
1013
+ ],
1014
+ "page_idx": 8
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "Rebekka Burkholz and Alina Dubatovka. Initialization of relus for dynamical isometry. In Advances in Neural Information Processing Systems, pp. 2385–2395, 2019. ",
1019
+ "bbox": [
1020
+ 173,
1021
+ 213,
1022
+ 823,
1023
+ 243
1024
+ ],
1025
+ "page_idx": 8
1026
+ },
1027
+ {
1028
+ "type": "text",
1029
+ "text": "Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. arXiv preprint arXiv:1812.00332, 2018. ",
1030
+ "bbox": [
1031
+ 173,
1032
+ 251,
1033
+ 823,
1034
+ 280
1035
+ ],
1036
+ "page_idx": 8
1037
+ },
1038
+ {
1039
+ "type": "text",
1040
+ "text": "Liang-Chieh Chen, Maxwell Collins, Yukun Zhu, George Papandreou, Barret Zoph, Florian Schroff, Hartwig Adam, and Jon Shlens. Searching for efficient multi-scale architectures for dense image prediction. In Advances in Neural Information Processing Systems, pp. 8699–8710, 2018. ",
1041
+ "bbox": [
1042
+ 176,
1043
+ 287,
1044
+ 825,
1045
+ 332
1046
+ ],
1047
+ "page_idx": 8
1048
+ },
1049
+ {
1050
+ "type": "text",
1051
+ "text": "Wuyang Chen, Xinyu Gong, Xianming Liu, Qian Zhang, Yuan Li, and Zhangyang Wang. Fasterseg: Searching for faster real-time semantic segmentation. In International Conference on Learning Representations, 2020a. ",
1052
+ "bbox": [
1053
+ 176,
1054
+ 338,
1055
+ 823,
1056
+ 381
1057
+ ],
1058
+ "page_idx": 8
1059
+ },
1060
+ {
1061
+ "type": "text",
1062
+ "text": "Xiangning Chen and Cho-Jui Hsieh. Stabilizing differentiable architecture search via perturbationbased regularization. arXiv preprint arXiv:2002.05283, 2020. ",
1063
+ "bbox": [
1064
+ 169,
1065
+ 388,
1066
+ 825,
1067
+ 420
1068
+ ],
1069
+ "page_idx": 8
1070
+ },
1071
+ {
1072
+ "type": "text",
1073
+ "text": "Xin Chen, Lingxi Xie, Jun Wu, and Qi Tian. Progressive differentiable architecture search: Bridging the depth gap between search and evaluation. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1294–1303, 2019. ",
1074
+ "bbox": [
1075
+ 176,
1076
+ 426,
1077
+ 823,
1078
+ 469
1079
+ ],
1080
+ "page_idx": 8
1081
+ },
1082
+ {
1083
+ "type": "text",
1084
+ "text": "Xin Chen, Lingxi Xie, Jun Wu, Longhui Wei, Yuhui Xu, and Qi Tian. Fitting the search space of weight-sharing nas with graph convolutional networks. arXiv preprint arXiv:2004.08423, 2020b. ",
1085
+ "bbox": [
1086
+ 169,
1087
+ 477,
1088
+ 825,
1089
+ 507
1090
+ ],
1091
+ "page_idx": 8
1092
+ },
1093
+ {
1094
+ "type": "text",
1095
+ "text": "Lenaic Chizat, Edouard Oyallon, and Francis Bach. On lazy training in differentiable programming. 2019. ",
1096
+ "bbox": [
1097
+ 171,
1098
+ 515,
1099
+ 823,
1100
+ 544
1101
+ ],
1102
+ "page_idx": 8
1103
+ },
1104
+ {
1105
+ "type": "text",
1106
+ "text": "Patryk Chrabaszcz, Ilya Loshchilov, and Frank Hutter. A downsampled variant of imagenet as an alternative to the cifar datasets, 2017. ",
1107
+ "bbox": [
1108
+ 171,
1109
+ 551,
1110
+ 825,
1111
+ 582
1112
+ ],
1113
+ "page_idx": 8
1114
+ },
1115
+ {
1116
+ "type": "text",
1117
+ "text": "Xiaoliang Dai, Peizhao Zhang, Bichen Wu, Hongxu Yin, Fei Sun, Yanghan Wang, Marat Dukhan, Yunqing Hu, Yiming Wu, Yangqing Jia, et al. Chamnet: Towards efficient network design through platform-aware model adaptation. In Proceedings of the IEEE Conference on computer vision and pattern recognition, pp. 11398–11407, 2019. ",
1118
+ "bbox": [
1119
+ 174,
1120
+ 588,
1121
+ 825,
1122
+ 645
1123
+ ],
1124
+ "page_idx": 8
1125
+ },
1126
+ {
1127
+ "type": "text",
1128
+ "text": "Xuanyi Dong and Yi Yang. Searching for a robust neural architecture in four gpu hours. In Proceedings of the IEEE Conference on computer vision and pattern recognition, pp. 1761–1770, 2019. ",
1129
+ "bbox": [
1130
+ 173,
1131
+ 654,
1132
+ 825,
1133
+ 696
1134
+ ],
1135
+ "page_idx": 8
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "text": "Xuanyi Dong and Yi Yang. Nas-bench-102: Extending the scope of reproducible neural architecture search. arXiv preprint arXiv:2001.00326, 2020. ",
1140
+ "bbox": [
1141
+ 171,
1142
+ 704,
1143
+ 825,
1144
+ 734
1145
+ ],
1146
+ "page_idx": 8
1147
+ },
1148
+ {
1149
+ "type": "text",
1150
+ "text": "Xuanyi Dong, Lu Liu, Katarzyna Musial, and Bogdan Gabrys. Nats-bench: Benchmarking nas algorithms for architecture topology and size. arXiv preprint arXiv:2009.00437, 2020. ",
1151
+ "bbox": [
1152
+ 171,
1153
+ 742,
1154
+ 823,
1155
+ 772
1156
+ ],
1157
+ "page_idx": 8
1158
+ },
1159
+ {
1160
+ "type": "text",
1161
+ "text": "Yonggan Fu, Wuyang Chen, Haotao Wang, Haoran Li, Yingyan Lin, and Zhangyang Wang. Autogandistiller: Searching to compress generative adversarial networks. In International Conference on Machine Learning, pp. 3292–3303. PMLR, 2020. ",
1162
+ "bbox": [
1163
+ 176,
1164
+ 779,
1165
+ 825,
1166
+ 823
1167
+ ],
1168
+ "page_idx": 8
1169
+ },
1170
+ {
1171
+ "type": "text",
1172
+ "text": "Raja Giryes, Guillermo Sapiro, and Alex M Bronstein. Deep neural networks with random gaussian weights: A universal classification strategy? IEEE Transactions on Signal Processing, 64(13): 3444–3457, 2016. ",
1173
+ "bbox": [
1174
+ 173,
1175
+ 830,
1176
+ 823,
1177
+ 872
1178
+ ],
1179
+ "page_idx": 8
1180
+ },
1181
+ {
1182
+ "type": "text",
1183
+ "text": "Xinyu Gong, Shiyu Chang, Yifan Jiang, and Zhangyang Wang. Autogan: Neural architecture search for generative adversarial networks. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 3224–3234, 2019. ",
1184
+ "bbox": [
1185
+ 174,
1186
+ 881,
1187
+ 825,
1188
+ 924
1189
+ ],
1190
+ "page_idx": 8
1191
+ },
1192
+ {
1193
+ "type": "text",
1194
+ "text": "Zichao Guo, Xiangyu Zhang, Haoyuan Mu, Wen Heng, Zechun Liu, Yichen Wei, and Jian Sun. Single path one-shot neural architecture search with uniform sampling. arXiv preprint arXiv:1904.00420, 2019. ",
1195
+ "bbox": [
1196
+ 174,
1197
+ 103,
1198
+ 825,
1199
+ 146
1200
+ ],
1201
+ "page_idx": 9
1202
+ },
1203
+ {
1204
+ "type": "text",
1205
+ "text": "Dongyoon Han, Jiwhan Kim, and Junmo Kim. Deep pyramidal residual networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 5927–5935, 2017. ",
1206
+ "bbox": [
1207
+ 173,
1208
+ 155,
1209
+ 826,
1210
+ 185
1211
+ ],
1212
+ "page_idx": 9
1213
+ },
1214
+ {
1215
+ "type": "text",
1216
+ "text": "Boris Hanin and Mihai Nica. Finite depth and width corrections to the neural tangent kernel. arXiv preprint arXiv:1909.05989, 2019. ",
1217
+ "bbox": [
1218
+ 171,
1219
+ 194,
1220
+ 825,
1221
+ 223
1222
+ ],
1223
+ "page_idx": 9
1224
+ },
1225
+ {
1226
+ "type": "text",
1227
+ "text": "Boris Hanin and David Rolnick. Complexity of linear regions in deep networks. arXiv preprint arXiv:1901.09021, 2019a. ",
1228
+ "bbox": [
1229
+ 174,
1230
+ 232,
1231
+ 823,
1232
+ 261
1233
+ ],
1234
+ "page_idx": 9
1235
+ },
1236
+ {
1237
+ "type": "text",
1238
+ "text": "Boris Hanin and David Rolnick. Deep relu networks have surprisingly few activation patterns. In Advances in Neural Information Processing Systems, pp. 361–370, 2019b. ",
1239
+ "bbox": [
1240
+ 173,
1241
+ 270,
1242
+ 823,
1243
+ 300
1244
+ ],
1245
+ "page_idx": 9
1246
+ },
1247
+ {
1248
+ "type": "text",
1249
+ "text": "Soufiane Hayou, Arnaud Doucet, and Judith Rousseau. On the impact of the activation function on deep neural networks training. arXiv preprint arXiv:1902.06853, 2019. ",
1250
+ "bbox": [
1251
+ 174,
1252
+ 309,
1253
+ 823,
1254
+ 338
1255
+ ],
1256
+ "page_idx": 9
1257
+ },
1258
+ {
1259
+ "type": "text",
1260
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pp. 1026–1034, 2015. ",
1261
+ "bbox": [
1262
+ 174,
1263
+ 347,
1264
+ 826,
1265
+ 391
1266
+ ],
1267
+ "page_idx": 9
1268
+ },
1269
+ {
1270
+ "type": "text",
1271
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
1272
+ "bbox": [
1273
+ 174,
1274
+ 400,
1275
+ 826,
1276
+ 443
1277
+ ],
1278
+ "page_idx": 9
1279
+ },
1280
+ {
1281
+ "type": "text",
1282
+ "text": "Kurt Hornik, Maxwell Stinchcombe, Halbert White, et al. Multilayer feedforward networks are universal approximators. Neural networks, 2(5):359–366, 1989. ",
1283
+ "bbox": [
1284
+ 171,
1285
+ 452,
1286
+ 823,
1287
+ 481
1288
+ ],
1289
+ "page_idx": 9
1290
+ },
1291
+ {
1292
+ "type": "text",
1293
+ "text": "Arthur Jacot, Franck Gabriel, and Clement Hongler. Neural tangent kernel: Convergence and ´ generalization in neural networks. In Advances in neural information processing systems, pp. 8571–8580, 2018. ",
1294
+ "bbox": [
1295
+ 173,
1296
+ 489,
1297
+ 825,
1298
+ 534
1299
+ ],
1300
+ "page_idx": 9
1301
+ },
1302
+ {
1303
+ "type": "text",
1304
+ "text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012. ",
1305
+ "bbox": [
1306
+ 174,
1307
+ 542,
1308
+ 826,
1309
+ 585
1310
+ ],
1311
+ "page_idx": 9
1312
+ },
1313
+ {
1314
+ "type": "text",
1315
+ "text": "Jaehoon Lee, Lechao Xiao, Samuel Schoenholz, Yasaman Bahri, Roman Novak, Jascha SohlDickstein, and Jeffrey Pennington. Wide neural networks of any depth evolve as linear models under gradient descent. In Advances in neural information processing systems, pp. 8572–8583, 2019. ",
1316
+ "bbox": [
1317
+ 173,
1318
+ 594,
1319
+ 826,
1320
+ 651
1321
+ ],
1322
+ "page_idx": 9
1323
+ },
1324
+ {
1325
+ "type": "text",
1326
+ "text": "Namhoon Lee, Thalaiyasingam Ajanthan, and Philip HS Torr. Snip: Single-shot network pruning based on connection sensitivity. arXiv preprint arXiv:1810.02340, 2018. ",
1327
+ "bbox": [
1328
+ 171,
1329
+ 661,
1330
+ 825,
1331
+ 690
1332
+ ],
1333
+ "page_idx": 9
1334
+ },
1335
+ {
1336
+ "type": "text",
1337
+ "text": "Guohao Li, Guocheng Qian, Itzel C Delgadillo, Matthias Muller, Ali Thabet, and Bernard Ghanem. Sgas: Sequential greedy architecture search. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1620–1630, 2020a. ",
1338
+ "bbox": [
1339
+ 173,
1340
+ 699,
1341
+ 826,
1342
+ 742
1343
+ ],
1344
+ "page_idx": 9
1345
+ },
1346
+ {
1347
+ "type": "text",
1348
+ "text": "Liam Li and Ameet Talwalkar. Random search and reproducibility for neural architecture search. In Uncertainty in Artificial Intelligence, pp. 367–377. PMLR, 2020. ",
1349
+ "bbox": [
1350
+ 169,
1351
+ 752,
1352
+ 825,
1353
+ 781
1354
+ ],
1355
+ "page_idx": 9
1356
+ },
1357
+ {
1358
+ "type": "text",
1359
+ "text": "Yanxi Li, Minjing Dong, Yunhe Wang, and Chang Xu. Neural architecture search in a proxy validation loss landscape. In International Conference on Machine Learning, pp. 5853–5862. PMLR, 2020b. ",
1360
+ "bbox": [
1361
+ 171,
1362
+ 790,
1363
+ 825,
1364
+ 820
1365
+ ],
1366
+ "page_idx": 9
1367
+ },
1368
+ {
1369
+ "type": "text",
1370
+ "text": "Zhihang Li, Teng Xi, Jiankang Deng, Gang Zhang, Shengzhao Wen, and Ran He. Gp-nas: Gaussian process based neural architecture search. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 11933–11942, 2020c. ",
1371
+ "bbox": [
1372
+ 174,
1373
+ 829,
1374
+ 823,
1375
+ 872
1376
+ ],
1377
+ "page_idx": 9
1378
+ },
1379
+ {
1380
+ "type": "text",
1381
+ "text": "Hanwen Liang, Shifeng Zhang, Jiacheng Sun, Xingqiu He, Weiran Huang, Kechen Zhuang, and Zhenguo Li. Darts+: Improved differentiable architecture search with early stopping. arXiv preprint arXiv:1909.06035, 2019. ",
1382
+ "bbox": [
1383
+ 174,
1384
+ 881,
1385
+ 825,
1386
+ 924
1387
+ ],
1388
+ "page_idx": 9
1389
+ },
1390
+ {
1391
+ "type": "text",
1392
+ "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 Proceedings of the European Conference on Computer Vision (ECCV), pp. 19–34, 2018a. ",
1393
+ "bbox": [
1394
+ 176,
1395
+ 103,
1396
+ 823,
1397
+ 146
1398
+ ],
1399
+ "page_idx": 10
1400
+ },
1401
+ {
1402
+ "type": "text",
1403
+ "text": "Chenxi Liu, Liang-Chieh Chen, Florian Schroff, Hartwig Adam, Wei Hua, Alan L Yuille, and Li FeiFei. Auto-deeplab: Hierarchical neural architecture search for semantic image segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 82–92, 2019. ",
1404
+ "bbox": [
1405
+ 179,
1406
+ 154,
1407
+ 823,
1408
+ 196
1409
+ ],
1410
+ "page_idx": 10
1411
+ },
1412
+ {
1413
+ "type": "text",
1414
+ "text": "Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018b. ",
1415
+ "bbox": [
1416
+ 173,
1417
+ 204,
1418
+ 823,
1419
+ 233
1420
+ ],
1421
+ "page_idx": 10
1422
+ },
1423
+ {
1424
+ "type": "text",
1425
+ "text": "Renqian Luo, Fei Tian, Tao Qin, Enhong Chen, and Tie-Yan Liu. Neural architecture optimization. In Advances in neural information processing systems, pp. 7816–7827, 2018. ",
1426
+ "bbox": [
1427
+ 173,
1428
+ 242,
1429
+ 823,
1430
+ 271
1431
+ ],
1432
+ "page_idx": 10
1433
+ },
1434
+ {
1435
+ "type": "text",
1436
+ "text": "Renqian Luo, Xu Tan, Rui Wang, Tao Qin, Enhong Chen, and Tie-Yan Liu. Semi-supervised neural architecture search. arXiv preprint arXiv:2002.10389, 2020. ",
1437
+ "bbox": [
1438
+ 173,
1439
+ 279,
1440
+ 823,
1441
+ 309
1442
+ ],
1443
+ "page_idx": 10
1444
+ },
1445
+ {
1446
+ "type": "text",
1447
+ "text": "Joseph Mellor, Jack Turner, Amos Storkey, and Elliot J Crowley. Neural architecture search without training. arXiv preprint arXiv:2006.04647, 2020. ",
1448
+ "bbox": [
1449
+ 173,
1450
+ 315,
1451
+ 825,
1452
+ 345
1453
+ ],
1454
+ "page_idx": 10
1455
+ },
1456
+ {
1457
+ "type": "text",
1458
+ "text": "Guido Montufar. Notes on the number of linear regions of deep neural networks. ´ Sampling Theory Appl., Tallinn, Estonia, Tech. Rep, 2017. ",
1459
+ "bbox": [
1460
+ 173,
1461
+ 353,
1462
+ 823,
1463
+ 382
1464
+ ],
1465
+ "page_idx": 10
1466
+ },
1467
+ {
1468
+ "type": "text",
1469
+ "text": "Hieu Pham, Melody Y Guan, Barret Zoph, Quoc V Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. arXiv preprint arXiv:1802.03268, 2018. ",
1470
+ "bbox": [
1471
+ 173,
1472
+ 390,
1473
+ 823,
1474
+ 420
1475
+ ],
1476
+ "page_idx": 10
1477
+ },
1478
+ {
1479
+ "type": "text",
1480
+ "text": "Maithra Raghu, Ben Poole, Jon Kleinberg, Surya Ganguli, and Jascha Sohl-Dickstein. On the expressive power of deep neural networks. In international conference on machine learning, pp. 2847–2854. PMLR, 2017. ",
1481
+ "bbox": [
1482
+ 176,
1483
+ 426,
1484
+ 823,
1485
+ 469
1486
+ ],
1487
+ "page_idx": 10
1488
+ },
1489
+ {
1490
+ "type": "text",
1491
+ "text": "Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V Le. Regularized evolution for image classifier architecture search. In Proceedings of the aaai conference on artificial intelligence, volume 33, pp. 4780–4789, 2019. ",
1492
+ "bbox": [
1493
+ 174,
1494
+ 478,
1495
+ 825,
1496
+ 521
1497
+ ],
1498
+ "page_idx": 10
1499
+ },
1500
+ {
1501
+ "type": "text",
1502
+ "text": "Thiago Serra, Christian Tjandraatmadja, and Srikumar Ramalingam. Bounding and counting linear regions of deep neural networks. In International Conference on Machine Learning, pp. 4558–4566. PMLR, 2018. ",
1503
+ "bbox": [
1504
+ 176,
1505
+ 529,
1506
+ 823,
1507
+ 571
1508
+ ],
1509
+ "page_idx": 10
1510
+ },
1511
+ {
1512
+ "type": "text",
1513
+ "text": "Yeonjong Shin and George Em Karniadakis. Trainability of relu networks and data-dependent initialization. Journal of Machine Learning for Modeling and Computing, 1(1), 2020. ",
1514
+ "bbox": [
1515
+ 171,
1516
+ 579,
1517
+ 825,
1518
+ 609
1519
+ ],
1520
+ "page_idx": 10
1521
+ },
1522
+ {
1523
+ "type": "text",
1524
+ "text": "Yao Shu, Wei Wang, and Shaofeng Cai. Understanding architectures learnt by cell-based neural architecture search. In International Conference on Learning Representations, 2019. ",
1525
+ "bbox": [
1526
+ 173,
1527
+ 617,
1528
+ 823,
1529
+ 646
1530
+ ],
1531
+ "page_idx": 10
1532
+ },
1533
+ {
1534
+ "type": "text",
1535
+ "text": "Julien Siems, Lucas Zimmer, Arber Zela, Jovita Lukasik, Margret Keuper, and Frank Hutter. Nasbench-301 and the case for surrogate benchmarks for neural architecture search. arXiv preprint arXiv:2008.09777, 2020. ",
1536
+ "bbox": [
1537
+ 173,
1538
+ 654,
1539
+ 823,
1540
+ 696
1541
+ ],
1542
+ "page_idx": 10
1543
+ },
1544
+ {
1545
+ "type": "text",
1546
+ "text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
1547
+ "bbox": [
1548
+ 171,
1549
+ 704,
1550
+ 825,
1551
+ 734
1552
+ ],
1553
+ "page_idx": 10
1554
+ },
1555
+ {
1556
+ "type": "text",
1557
+ "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 Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1–9, 2015. ",
1558
+ "bbox": [
1559
+ 176,
1560
+ 742,
1561
+ 825,
1562
+ 785
1563
+ ],
1564
+ "page_idx": 10
1565
+ },
1566
+ {
1567
+ "type": "text",
1568
+ "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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2820–2828, 2019. ",
1569
+ "bbox": [
1570
+ 174,
1571
+ 792,
1572
+ 823,
1573
+ 837
1574
+ ],
1575
+ "page_idx": 10
1576
+ },
1577
+ {
1578
+ "type": "text",
1579
+ "text": "Mingxing Tan, Ruoming Pang, and Quoc V Le. Efficientdet: Scalable and efficient object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10781–10790, 2020. ",
1580
+ "bbox": [
1581
+ 173,
1582
+ 843,
1583
+ 823,
1584
+ 887
1585
+ ],
1586
+ "page_idx": 10
1587
+ },
1588
+ {
1589
+ "type": "text",
1590
+ "text": "Chaoqi Wang, Guodong Zhang, and Roger Grosse. Picking winning tickets before training by preserving gradient flow. arXiv preprint arXiv:2002.07376, 2020. ",
1591
+ "bbox": [
1592
+ 173,
1593
+ 895,
1594
+ 821,
1595
+ 924
1596
+ ],
1597
+ "page_idx": 10
1598
+ },
1599
+ {
1600
+ "type": "text",
1601
+ "text": "Wei Wen, Hanxiao Liu, Hai Li, Yiran Chen, Gabriel Bender, and Pieter-Jan Kindermans. Neural predictor for neural architecture search. arXiv preprint arXiv:1912.00848, 2019. ",
1602
+ "bbox": [
1603
+ 171,
1604
+ 103,
1605
+ 823,
1606
+ 132
1607
+ ],
1608
+ "page_idx": 11
1609
+ },
1610
+ {
1611
+ "type": "text",
1612
+ "text": "Lechao Xiao, Jeffrey Pennington, and Samuel S Schoenholz. Disentangling trainability and generalization in deep learning. arXiv preprint arXiv:1912.13053, 2019. ",
1613
+ "bbox": [
1614
+ 171,
1615
+ 140,
1616
+ 825,
1617
+ 170
1618
+ ],
1619
+ "page_idx": 11
1620
+ },
1621
+ {
1622
+ "type": "text",
1623
+ "text": "Saining Xie, Ross Girshick, Piotr Dollar, Zhuowen Tu, and Kaiming He. Aggregated residual ´ transformations for deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1492–1500, 2017. ",
1624
+ "bbox": [
1625
+ 176,
1626
+ 178,
1627
+ 821,
1628
+ 222
1629
+ ],
1630
+ "page_idx": 11
1631
+ },
1632
+ {
1633
+ "type": "text",
1634
+ "text": "Sirui Xie, Hehui Zheng, Chunxiao Liu, and Liang Lin. Snas: stochastic neural architecture search. arXiv preprint arXiv:1812.09926, 2018. ",
1635
+ "bbox": [
1636
+ 173,
1637
+ 229,
1638
+ 825,
1639
+ 260
1640
+ ],
1641
+ "page_idx": 11
1642
+ },
1643
+ {
1644
+ "type": "text",
1645
+ "text": "Huan Xiong, Lei Huang, Mengyang Yu, Li Liu, Fan Zhu, and Ling Shao. On the number of linear regions of convolutional neural networks. arXiv preprint arXiv:2006.00978, 2020. ",
1646
+ "bbox": [
1647
+ 171,
1648
+ 267,
1649
+ 825,
1650
+ 297
1651
+ ],
1652
+ "page_idx": 11
1653
+ },
1654
+ {
1655
+ "type": "text",
1656
+ "text": "Yuhui Xu, Lingxi Xie, Xiaopeng Zhang, Xin Chen, Guo-Jun Qi, Qi Tian, and Hongkai Xiong. Pc-darts: Partial channel connections for memory-efficient architecture search. In International Conference on Learning Representations, 2019. ",
1657
+ "bbox": [
1658
+ 178,
1659
+ 305,
1660
+ 823,
1661
+ 349
1662
+ ],
1663
+ "page_idx": 11
1664
+ },
1665
+ {
1666
+ "type": "text",
1667
+ "text": "Ge Yang and Samuel Schoenholz. Mean field residual networks: On the edge of chaos. In Advances in neural information processing systems, pp. 7103–7114, 2017. ",
1668
+ "bbox": [
1669
+ 176,
1670
+ 357,
1671
+ 823,
1672
+ 387
1673
+ ],
1674
+ "page_idx": 11
1675
+ },
1676
+ {
1677
+ "type": "text",
1678
+ "text": "Greg Yang. Scaling limits of wide neural networks with weight sharing: Gaussian process behavior, gradient independence, and neural tangent kernel derivation. arXiv preprint arXiv:1902.04760, 2019. ",
1679
+ "bbox": [
1680
+ 173,
1681
+ 395,
1682
+ 826,
1683
+ 438
1684
+ ],
1685
+ "page_idx": 11
1686
+ },
1687
+ {
1688
+ "type": "text",
1689
+ "text": "Zhaohui Yang, Yunhe Wang, Xinghao Chen, Boxin Shi, Chao Xu, Chunjing Xu, Qi Tian, and Chang Xu. Cars: Continuous evolution for efficient neural architecture search. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2020a. ",
1690
+ "bbox": [
1691
+ 176,
1692
+ 446,
1693
+ 823,
1694
+ 489
1695
+ ],
1696
+ "page_idx": 11
1697
+ },
1698
+ {
1699
+ "type": "text",
1700
+ "text": "Zhaohui Yang, Yunhe Wang, Dacheng Tao, Xinghao Chen, Jianyuan Guo, Chunjing Xu, Chao Xu, and Chang Xu. Hournas: Extremely fast neural architecture search through an hourglass lens. arXiv preprint arXiv:2005.14446, 2020b. ",
1701
+ "bbox": [
1702
+ 174,
1703
+ 497,
1704
+ 825,
1705
+ 541
1706
+ ],
1707
+ "page_idx": 11
1708
+ },
1709
+ {
1710
+ "type": "text",
1711
+ "text": "Jiahui Yu, Pengchong Jin, Hanxiao Liu, Gabriel Bender, Pieter-Jan Kindermans, Mingxing Tan, Thomas Huang, Xiaodan Song, Ruoming Pang, and Quoc Le. Bignas: Scaling up neural architecture search with big single-stage models. arXiv preprint arXiv:2003.11142, 2020a. ",
1712
+ "bbox": [
1713
+ 174,
1714
+ 549,
1715
+ 825,
1716
+ 593
1717
+ ],
1718
+ "page_idx": 11
1719
+ },
1720
+ {
1721
+ "type": "text",
1722
+ "text": "Kaicheng Yu, Rene Ranftl, and Mathieu Salzmann. How to train your super-net: An analysis of training heuristics in weight-sharing nas. arXiv preprint arXiv:2003.04276, 2020b. ",
1723
+ "bbox": [
1724
+ 171,
1725
+ 602,
1726
+ 823,
1727
+ 631
1728
+ ],
1729
+ "page_idx": 11
1730
+ },
1731
+ {
1732
+ "type": "text",
1733
+ "text": "Kaicheng Yu, Christian Sciuto, Martin Jaggi, Claudiu Musat, and Mathieu Salzmann. Evaluating the search phase of neural architecture search. In ICLR, 2020c. ",
1734
+ "bbox": [
1735
+ 171,
1736
+ 638,
1737
+ 823,
1738
+ 667
1739
+ ],
1740
+ "page_idx": 11
1741
+ },
1742
+ {
1743
+ "type": "text",
1744
+ "text": "Hongpeng Zhou, Minghao Yang, Jun Wang, and Wei Pan. Bayesnas: A bayesian approach for neural architecture search. arXiv preprint arXiv:1905.04919, 2019. ",
1745
+ "bbox": [
1746
+ 171,
1747
+ 676,
1748
+ 823,
1749
+ 705
1750
+ ],
1751
+ "page_idx": 11
1752
+ },
1753
+ {
1754
+ "type": "text",
1755
+ "text": "Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. arXiv preprint arXiv:1611.01578, 2016. ",
1756
+ "bbox": [
1757
+ 171,
1758
+ 714,
1759
+ 825,
1760
+ 743
1761
+ ],
1762
+ "page_idx": 11
1763
+ },
1764
+ {
1765
+ "type": "text",
1766
+ "text": "Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. Learning transferable architectures for scalable image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 8697–8710, 2018. ",
1767
+ "bbox": [
1768
+ 176,
1769
+ 752,
1770
+ 825,
1771
+ 796
1772
+ ],
1773
+ "page_idx": 11
1774
+ },
1775
+ {
1776
+ "type": "text",
1777
+ "text": "A IMPLEMENTATION DETAILS ",
1778
+ "text_level": 1,
1779
+ "bbox": [
1780
+ 178,
1781
+ 102,
1782
+ 441,
1783
+ 118
1784
+ ],
1785
+ "page_idx": 12
1786
+ },
1787
+ {
1788
+ "type": "text",
1789
+ "text": "For $\\kappa _ { \\mathcal { N } }$ we sample one mini-batch of size 32 from the training set, and calculate $\\hat { \\Theta } ( \\pmb { x } , \\pmb { x } ^ { \\prime } ) =$ $J ( { \\pmb x } ) J ( { \\pmb x } ^ { \\prime } ) ^ { T }$ . For $\\hat { R } _ { \\mathcal { N } }$ we sample 5000 images, forward them through the network, and collect the activation patterns from all ReLU layers. The calculation of both $\\kappa _ { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } }$ are repeated three times in all experiments, where each time the network weights are randomly drawn from Kaiming Norm Initialization (He et al., 2015) without involving any training (network weights are fixed). ",
1790
+ "bbox": [
1791
+ 173,
1792
+ 132,
1793
+ 825,
1794
+ 208
1795
+ ],
1796
+ "page_idx": 12
1797
+ },
1798
+ {
1799
+ "type": "text",
1800
+ "text": "Our retraining settings (after search) follow previous works (Xu et al., 2019; Chen et al., 2019; Chen & Hsieh, 2020). On CIFAR-10, we train the searched network with cutout regularization of length 16, drop-path (Zoph et al., 2018) with probability as 0.3, and an auxiliary tower of weight 0.4. On ImageNet, we also use label smoothing during training. On both CIFAR-10 and ImageNet, the network is optimized by an SGD optimizer with cosine annealing, with learning rate initialized as 0.025 and 0.5, respectively. ",
1801
+ "bbox": [
1802
+ 173,
1803
+ 215,
1804
+ 825,
1805
+ 299
1806
+ ],
1807
+ "page_idx": 12
1808
+ },
1809
+ {
1810
+ "type": "text",
1811
+ "text": "B SEARCHED ARCHITECTURE ",
1812
+ "text_level": 1,
1813
+ "bbox": [
1814
+ 176,
1815
+ 319,
1816
+ 439,
1817
+ 335
1818
+ ],
1819
+ "page_idx": 12
1820
+ },
1821
+ {
1822
+ "type": "text",
1823
+ "text": "We visualize the searched normal and reduction cells in figure 6 and 7, which is directly searched on CIFAR-10 and ImageNet respectively. ",
1824
+ "bbox": [
1825
+ 174,
1826
+ 349,
1827
+ 825,
1828
+ 378
1829
+ ],
1830
+ "page_idx": 12
1831
+ },
1832
+ {
1833
+ "type": "image",
1834
+ "img_path": "images/3ea788d5aa0e8499282a29795a6e0b6706094d3bcfd951b8e4cd7154e1600ecd.jpg",
1835
+ "image_caption": [
1836
+ "Figure 6: Normal and Reduction cells discovered by TE-NAS on CIFAR-10. "
1837
+ ],
1838
+ "image_footnote": [],
1839
+ "bbox": [
1840
+ 174,
1841
+ 396,
1842
+ 825,
1843
+ 506
1844
+ ],
1845
+ "page_idx": 12
1846
+ },
1847
+ {
1848
+ "type": "image",
1849
+ "img_path": "images/0cf482289933baf96e10aac9ca88e6c877afab0dbcbb7c332a85deacc8e0fadf.jpg",
1850
+ "image_caption": [
1851
+ "Figure 7: Normal and Reduction cells discovered by TE-NAS on imageNet. "
1852
+ ],
1853
+ "image_footnote": [],
1854
+ "bbox": [
1855
+ 181,
1856
+ 571,
1857
+ 810,
1858
+ 676
1859
+ ],
1860
+ "page_idx": 12
1861
+ },
1862
+ {
1863
+ "type": "text",
1864
+ "text": "C DEPTH AND WIDTH PREFERENCE OF $\\kappa _ { \\mathcal { N } }$ AND $\\hat { R } _ { \\mathcal { N } }$ IN DARTS SPACE ",
1865
+ "bbox": [
1866
+ 169,
1867
+ 731,
1868
+ 772,
1869
+ 751
1870
+ ],
1871
+ "page_idx": 12
1872
+ },
1873
+ {
1874
+ "type": "text",
1875
+ "text": "To analyze the impact of different architectures on trainability and expressivity in DARTs search space, we visualize $\\kappa _ { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } }$ with different depths and width. Following Shu et al. (2019), the depth of a cell is defined as the number of connections on the longest path from input nodes to the output node, and the width of a cell is the summation of the edges of the intermediate nodes that are connected to the input nodes. We randomly sample 20,000 architectures in DARTs space, and plot the visualizations in Figure 8. Good architectures should exhibit low $\\kappa _ { \\mathcal { N } }$ (good trainability, blue dots in Figure 8(a)) and high $\\hat { R } _ { \\mathcal { N } }$ (powerful expressivity, red dots in Figure 8(b)). Therefore, $\\kappa _ { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } }$ tell us that in DARTs space shallow but wide cells are preferred to favor both trainability and expressivity. This conclusion matches the findings by Shu et al. (2019): existing NAS algorithms tend to favor architectures with wide and shallow cell structures, which enjoy fast convergence with smooth loss landscape and accurate gradient information. ",
1876
+ "bbox": [
1877
+ 173,
1878
+ 763,
1879
+ 825,
1880
+ 924
1881
+ ],
1882
+ "page_idx": 12
1883
+ },
1884
+ {
1885
+ "type": "image",
1886
+ "img_path": "images/68fb7e3b692da7dff551648648324bbc0476d9fbdc1fda9a6ac2d7d65ff25541.jpg",
1887
+ "image_caption": [
1888
+ "Figure 8: Depth and width preference of (a) $\\kappa { \\mathcal N }$ and (b) $\\hat { R } _ { \\mathcal { N } }$ on DARTs Search Space. "
1889
+ ],
1890
+ "image_footnote": [],
1891
+ "bbox": [
1892
+ 197,
1893
+ 126,
1894
+ 808,
1895
+ 310
1896
+ ],
1897
+ "page_idx": 13
1898
+ },
1899
+ {
1900
+ "type": "text",
1901
+ "text": "D MORE ABLATION STUDIES ",
1902
+ "text_level": 1,
1903
+ "bbox": [
1904
+ 174,
1905
+ 366,
1906
+ 436,
1907
+ 382
1908
+ ],
1909
+ "page_idx": 13
1910
+ },
1911
+ {
1912
+ "type": "text",
1913
+ "text": "D.1 SEARCH WITH ONLY $\\kappa _ { \\mathcal { N } }$ OR $\\hat { R } _ { \\mathcal { N } }$ ",
1914
+ "bbox": [
1915
+ 174,
1916
+ 396,
1917
+ 439,
1918
+ 412
1919
+ ],
1920
+ "page_idx": 13
1921
+ },
1922
+ {
1923
+ "type": "text",
1924
+ "text": "As we observed in Table 4, searching with only $\\kappa _ { \\mathcal { N } }$ or $\\hat { R } _ { \\mathcal { N } }$ leads to inferior performance, which indicates the importance of maintaining both trainability and expressivity during the search. ",
1925
+ "bbox": [
1926
+ 174,
1927
+ 422,
1928
+ 825,
1929
+ 453
1930
+ ],
1931
+ "page_idx": 13
1932
+ },
1933
+ {
1934
+ "type": "table",
1935
+ "img_path": "images/f9dba9f95220e5320e758ddfa22a1ad4f27d40ae47929110a33ea18baa4501bb.jpg",
1936
+ "table_caption": [
1937
+ "Table 4: Search with only $\\kappa { \\mathcal N }$ or $\\hat { R } _ { \\mathcal { N } }$ on CIFAR-100 in NAS-Bench-201 space. "
1938
+ ],
1939
+ "table_footnote": [],
1940
+ "table_body": "<table><tr><td>Methods</td><td>CIFAR-100 Test Accuracy</td></tr><tr><td>Prune with only KN</td><td>69.25 (1.29)</td></tr><tr><td>Prune with only RN</td><td>70.48 (0.29)</td></tr><tr><td>TE-NAS</td><td>71.24 (0.56)</td></tr></table>",
1941
+ "bbox": [
1942
+ 334,
1943
+ 492,
1944
+ 656,
1945
+ 561
1946
+ ],
1947
+ "page_idx": 13
1948
+ },
1949
+ {
1950
+ "type": "text",
1951
+ "text": "D.2 DIFFERENT COMBINATION OPTIONS FOR $\\kappa _ { \\mathcal { N } }$ AND $\\hat { R } _ { \\mathcal { N } }$ ",
1952
+ "text_level": 1,
1953
+ "bbox": [
1954
+ 173,
1955
+ 585,
1956
+ 589,
1957
+ 602
1958
+ ],
1959
+ "page_idx": 13
1960
+ },
1961
+ {
1962
+ "type": "text",
1963
+ "text": "Pruning by $s ( o _ { j } ) = s _ { \\kappa } ( o _ { j } ) + s _ { R } ( o _ { j } )$ is not the only option (see Algorithm 1). Here in this study we consider more: ",
1964
+ "bbox": [
1965
+ 174,
1966
+ 612,
1967
+ 825,
1968
+ 642
1969
+ ],
1970
+ "page_idx": 13
1971
+ },
1972
+ {
1973
+ "type": "text",
1974
+ "text": "1) pruning by $s ( o _ { j } ) = \\mathrm { m i n } ( s _ { \\kappa } ( o _ { j } ) , s _ { R } ( o _ { j } ) )$ , i.e., pruning by the worst case. 2) Pruninng by $s ( o _ { j } ) = \\mathrm { m a x } ( s _ { \\kappa } ( o _ { j } ) , s _ { R } ( o _ { j } ) )$ , i.e., pruning by the best case. 3) pruning by summation of changes $\\Delta \\kappa _ { t , o _ { j } } + \\Delta R _ { t , o _ { j } }$ , i.e., directly use the numerical values of the changes. ",
1975
+ "bbox": [
1976
+ 204,
1977
+ 652,
1978
+ 826,
1979
+ 720
1980
+ ],
1981
+ "page_idx": 13
1982
+ },
1983
+ {
1984
+ "type": "text",
1985
+ "text": "As we observed in Table 5, our TE-NAS stands out of all options. This means a good trade-off between $\\kappa _ { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } }$ are important, and also the ranking strategy is better than directly using numerical values. ",
1986
+ "bbox": [
1987
+ 176,
1988
+ 731,
1989
+ 825,
1990
+ 776
1991
+ ],
1992
+ "page_idx": 13
1993
+ },
1994
+ {
1995
+ "type": "table",
1996
+ "img_path": "images/ecc4f46ada6e994bf0b0a7dc68a4c4ae252d0e89201c8b79aed1f502996f0548.jpg",
1997
+ "table_caption": [
1998
+ "Table 5: Search with only $\\kappa _ { \\mathcal { N } }$ or $\\hat { R } _ { \\mathcal { N } }$ on CIFAR-100 in NAS-Bench-201 space. "
1999
+ ],
2000
+ "table_footnote": [],
2001
+ "table_body": "<table><tr><td>Methods</td><td>CIFAR-100 Test Accuracy</td></tr><tr><td>Prune by s(oj)= min(sr(oj),sR(0j))</td><td>70.75 (0.73)</td></tr><tr><td>Prune by s(oj)=max(sκ(oj),sr(0j))</td><td>70.33 (1.09)</td></tr><tr><td>Prune by △Kt,oj+△Rt,oj</td><td>70.47 (0.68)</td></tr><tr><td>Prune by s(oj)= sκ(Oj)+sR(oj) (TE-NAS)</td><td>71.24 (0.56)</td></tr></table>",
2002
+ "bbox": [
2003
+ 259,
2004
+ 813,
2005
+ 735,
2006
+ 893
2007
+ ],
2008
+ "page_idx": 13
2009
+ },
2010
+ {
2011
+ "type": "text",
2012
+ "text": "Figure 9 indicates that by using the summation of the ranking of $\\mathsf { b o t h } \\kappa _ { \\mathcal N }$ and $\\hat { R } _ { \\mathcal { N } }$ , the combined metric achieves a much higher correlation with the test accuracy. The reason can be explained by Figure 4, as $\\kappa _ { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } }$ prefers different operators in terms of trainability and Expressivity. Their combination can filter out bad architectures in both aspects and strongly correlate with networks’ final performance. ",
2013
+ "bbox": [
2014
+ 173,
2015
+ 130,
2016
+ 437,
2017
+ 286
2018
+ ],
2019
+ "page_idx": 14
2020
+ },
2021
+ {
2022
+ "type": "image",
2023
+ "img_path": "images/d0038d4acd6d5cbad42a776602e3e4b8e5adf3361677add29fc779f187849bbf.jpg",
2024
+ "image_caption": [
2025
+ "Figure 9: Summation of ranking of $\\kappa _ { \\mathcal { N } }$ and $\\hat { R } _ { \\mathcal { N } }$ exhibits stronger (negative) correlation with the test accuracy of architectures in NAS-Bench201 (Dong & Yang, 2020). "
2026
+ ],
2027
+ "image_footnote": [],
2028
+ "bbox": [
2029
+ 504,
2030
+ 133,
2031
+ 750,
2032
+ 276
2033
+ ],
2034
+ "page_idx": 14
2035
+ },
2036
+ {
2037
+ "type": "text",
2038
+ "text": "E GENERALIZATION V.S. TEST ACCURACY ",
2039
+ "text_level": 1,
2040
+ "bbox": [
2041
+ 174,
2042
+ 358,
2043
+ 545,
2044
+ 373
2045
+ ],
2046
+ "page_idx": 14
2047
+ },
2048
+ {
2049
+ "type": "text",
2050
+ "text": "Conceptually, the generalization gap is the difference between a model’s performance on training data and its performance on unseen data drawn from the same distribution (e.g., testing set). In comparison, the two indicators $\\kappa _ { \\mathcal { N } }$ (trainability) and $R _ { \\mathcal { N } }$ (expressiveness) of a network determine how well the training set could be fit (i.e., training set accuracy), and do not directly indicate its generalization gap (or test set accuracy). Indeed, probing generalization of an untrained network at its initialization is a daunting, open challenge that seems to go beyond the current theory scope. ",
2051
+ "bbox": [
2052
+ 174,
2053
+ 388,
2054
+ 446,
2055
+ 583
2056
+ ],
2057
+ "page_idx": 14
2058
+ },
2059
+ {
2060
+ "type": "image",
2061
+ "img_path": "images/c758a58794154dd00dc45327533a6e9468a026d51804b24738e4702389e3d289.jpg",
2062
+ "image_caption": [
2063
+ "Figure 10: The correlation between test accuracy and the training accuracy in NAS-Bench201 (Dong & Yang, 2020). "
2064
+ ],
2065
+ "image_footnote": [],
2066
+ "bbox": [
2067
+ 509,
2068
+ 393,
2069
+ 754,
2070
+ 535
2071
+ ],
2072
+ "page_idx": 14
2073
+ },
2074
+ {
2075
+ "type": "text",
2076
+ "text": "In NAS, we are searching for the architecture with the best test accuracy. As shown in Figure 10, in NAS-Bench201 the training accuracy strongly correlates with test accuracy. This also seems to be a result of the current standard search space design that could have implicitly excluded severe overfitting. This explains why $\\kappa _ { \\mathcal { N } }$ and $R _ { \\mathcal { N } }$ , which only focuses on trainability and expressiveness during training, can still achieve good search results of test accuracy. ",
2077
+ "bbox": [
2078
+ 174,
2079
+ 590,
2080
+ 825,
2081
+ 660
2082
+ ],
2083
+ "page_idx": 14
2084
+ }
2085
+ ]
parse/train/Cnon5ezMHtu/Cnon5ezMHtu_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Cnon5ezMHtu/Cnon5ezMHtu_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hkekl0NFPr/Hkekl0NFPr.md ADDED
@@ -0,0 +1,544 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CONDITIONAL LEARNING OF FAIR REPRESENTATIONS
2
+
3
+ Han Zhao∗& Amanda Coston Machine Learning Department Carnegie Mellon University han.zhao@cs.cmu.edu acoston@andrew.cmu.edu
4
+
5
+ Tameem Adel Department of Engineering University of Cambridge tah47@cam.ac.uk
6
+
7
+ Geoffrey J. Gordon Microsoft Research, Montreal Machine Learning Department Carnegie Mellon University geoff.gordon@microsoft.com
8
+
9
+ # ABSTRACT
10
+
11
+ We propose a novel algorithm for learning fair representations that can simultaneously mitigate two notions of disparity among different demographic subgroups in the classification setting. Two key components underpinning the design of our algorithm are balanced error rate and conditional alignment of representations. We show how these two components contribute to ensuring accuracy parity and equalized false-positive and false-negative rates across groups without impacting demographic parity. Furthermore, we also demonstrate both in theory and on two real-world experiments that the proposed algorithm leads to a better utility-fairness trade-off on balanced datasets compared with existing algorithms on learning fair representations for classification.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ High-stakes settings, such as loan approvals, criminal justice, and hiring processes, use machine learning tools to help make decisions. A key question in these settings is whether the algorithm makes fair decisions. In settings that have historically had discrimination, we are interested in defining fairness with respect to a protected group, the group which has historically been disadvantaged. The rapidly growing field of algorithmic fairness has a vast literature that proposes various fairness metrics, characterizes the relationship between fairness metrics, and describes methods to build classifiers that satisfy these metrics (Chouldechova & Roth, 2018; Corbett-Davies & Goel, 2018). Among many recent attempts to achieve algorithmic fairness (Dwork et al., 2012; Hardt et al., 2016; Zemel et al., 2013; Zafar et al., 2015), learning fair representations has attracted increasing attention due to its flexibility in learning rich representations based on advances in deep learning (Edwards & Storkey, 2015; Louizos et al., 2015; Beutel et al., 2017; Madras et al., 2018). The backbone idea underpinning this line of work is very intuitive: if the representations of data from different groups are similar to each other, then any classifier acting on such representations will also be agnostic to the group membership.
16
+
17
+ However, it has long been empirically observed (Calders et al., 2009) and recently been proved (Zhao & Gordon, 2019) that fairness is often at odds with utility. For example, consider demographic parity, which requires the classifier to be independent of the group membership attribute. It is clear that demographic parity will cripple the utility if the demographic group membership and the target variable are indeed correlated. To escape such inherent trade-off, other notions of fairness, such as equalized odds (Hardt et al., 2016), which asks for equal false positive and negative rates across groups, and accuracy parity (Zafar et al., 2017), which seeks equalized error rates across groups, have been proposed. It is a well-known result that equalized odds is incompatible with demographic parity (Barocas et al., 2017) except in degenerate cases where group membership is independent of the target variable. Accuracy parity and the so-called predictive rate parity (c.f. Definition 2.4) could be simultaneously achieved, e.g., the COMPAS tool (Dieterich et al., 2016). Furthermore, under some conditions, it is also known that demographic parity can lead to accuracy parity (Zhao & Gordon, 2019). However, whether it is possible to simultaneously guarantee equalized odds and accuracy parity remains an open question.
18
+
19
+ In this work, we provide an affirmative answer to the above question by proposing an algorithm to align the conditional distributions (on the target variable) of representations across different demographic subgroups. The proposed formulation is a minimax problem that admits a simple reduction to cost-sensitive learning. The key component underpinning the design of our algorithm is the balanced error rate (BER, c.f. Section 2) (Feldman et al., 2015; Menon & Williamson, 2018), over the target variable and protected attributes. We demonstrate both in theory and on two real-world experiments that together with the conditional alignment, BER helps our algorithm to simultaneously ensure accuracy parity and equalized odds across groups. Our key contributions are summarized as follows:
20
+
21
+ • We prove that BER plays a fundamental role in ensuring accuracy parity and a small joint error across groups. Together with the conditional alignment of representations, this implies that we can simultaneously achieve equalized odds and accuracy parity. Furthermore, we also show that when equalized odds is satisfied, BER serves as an upper bound on the error of each subgroup. These results help to justify the design of our algorithm in using BER instead of the marginal error as our loss functions. We provide theoretical results that our method achieves equalized odds without impacting demographic parity. This result shows that we can preserve the demographic parity gap for free while simultaneously achieving equalized odds.
22
+ • Empirically, among existing fair representation learning methods, we demonstrate that our algorithm is able to achieve a better utility on balanced datasets. On an imbalanced dataset, our algorithm is the only method that achieves accuracy parity; however it does so at the cost of decreased utility.
23
+
24
+ We believe our theoretical results contribute to the understanding on the relationship between equalized odds and accuracy parity, and the proposed algorithm provides an alternative in real-world scenarios where accuracy parity and equalized odds are desired.
25
+
26
+ # 2 PRELIMINARY
27
+
28
+ We first introduce the notations used throughout the paper and formally describe the problem setup and various definitions of fairness explored in the literature.
29
+
30
+ Notation We use $\mathcal { X } \subseteq \mathbb { R } ^ { d }$ and $\mathcal { V } = \{ 0 , 1 \}$ to denote the input and output space. Accordingly, we use $X$ and $Y$ to denote the random variables which take values in $\mathcal { X }$ and $\mathcal { V }$ , respectively. Lower case letters $\mathbf { x }$ and $y$ are used to denote the instantiation of $X$ and $Y$ . To simplify the presentation, we use $A \in \{ 0 , 1 \}$ as the sensitive attribute, e.g., race, gender, etc. 1 Let $\mathcal { H }$ be the hypothesis class of classifiers. In other words, for $h \in \mathcal H$ , $h : \mathcal { X } \mathcal { Y }$ is the predictor that outputs a prediction. Note that even if the predictor does not explicitly take the sensitive attribute $A$ as input, this fairness through blindness mechanism can still be biased due to the potential correlations between $X$ and $A$ . In this work we study the stochastic setting where there is a joint distribution $\mathcal { D }$ over $X , Y$ and $A$ from which the data are sampled. To keep the notation consistent, for $a , y \in \{ 0 , 1 \}$ , we use $\mathcal { D } _ { a }$ to mean the conditional distribution of $\mathcal { D }$ given $A = a$ and $\mathcal { D } ^ { y }$ to mean the conditional distribution of $\mathcal { D }$ given $Y = y$ . For an event $E$ , $\mathcal { D } ( E )$ denotes the probability of $E$ under $\mathcal { D }$ . In particular, in the literature of fair machine learning, we call $\mathcal { D } ( Y = 1 )$ the base rate of distribution $\mathcal { D }$ and we use $\Delta _ { \mathrm { B R } } ( \mathcal { D } , \mathcal { D } ^ { \prime } ) : = | \mathcal { D } ( Y = 1 ) - \mathcal { D } ^ { \prime } ( \bar { Y } = 1 ) |$ to denote the difference of the base rates between two distributions $\mathcal { D }$ and $\mathcal { D } ^ { \prime }$ over the same sample space.
31
+
32
+ Given a feature transformation function $g : \mathcal { X } \mathcal { Z }$ that maps instances from the input space $\mathcal { X }$ to feature space $\mathcal { Z }$ , we define $g _ { \sharp } \mathcal { D } : = \mathcal { D } \circ g ^ { - 1 }$ to be the induced (pushforward) distribution of $\mathcal { D }$ under $g$ , i.e., for any event $E ^ { \prime } \subseteq { \mathcal { Z } }$ , $g _ { \sharp } \mathcal { D } ( E ^ { \prime } ) : = \mathcal { D } ( g ^ { - 1 } ( E ^ { \prime } ) ) = \mathcal { D } ( \{ x \in \mathcal { X } \mid g ( x ) \in E ^ { \prime } \} )$ . To measure the discrepancy between distributions, we use $d _ { \mathrm { T V } } ( \mathcal { D } , \mathcal { D } ^ { \prime } )$ to denote the total variation between them: $d _ { \mathrm { T V } } ( \mathcal D , \mathcal D ^ { \prime } ) : = \operatorname* { s u p } _ { E } | \mathcal D ( E ) - \mathcal D ^ { \prime } ( E ) |$ . In particular, for binary random variable $Y$ , it can be readily verified that the total variation between the marginal distributions ${ \mathcal { D } } ( Y )$ and $\mathcal { D } ^ { \prime } ( Y )$ reduces to the difference of their base rates, $\Delta _ { \mathrm { B R } } ( \mathcal { D } , \mathcal { D } ^ { \prime } )$ . To see this, realize that $d _ { \mathrm { T V } } ( { \cal D } ( Y ) , { \cal D } ^ { \prime } ( Y ) ) =$ 1 $\begin{array} { r } { \operatorname* { n a x } \{ | \mathcal { D } ( Y = 1 ) - \mathcal { D } ^ { \prime } ( Y = 1 ) | , | \mathcal { D } ( Y = 0 ) - \mathcal { D } ^ { \prime } ( Y = 0 ) | \} = | \mathcal { D } ( Y = 1 ) - \mathcal { D } ^ { \prime } ( Y = 1 ) | = } \end{array}$ $\Delta _ { \mathrm { B R } } ( \mathcal { D } , \mathcal { D } ^ { \prime } )$ by definition.
33
+
34
+ Given a joint distribution $\mathcal { D }$ , the error of a predictor $h$ under $\mathcal { D }$ is defined as $\mathrm { E r r } _ { \mathcal { D } } ( h ) : = \mathbb { E } _ { \mathcal { D } } [ | Y -$ $h ( X ) | ]$ . Note that for binary classification problems, when $h ( X ) \in \{ 0 , 1 \}$ , $\mathrm { E r r } _ { \mathcal { D } } ( h )$ reduces to the true error rate of binary classification. To make the notation more compact, we may drop the subscript $\mathcal { D }$ when it is clear from the context. Furthermore, we use $\operatorname { C E } _ { \mathcal { D } } ( \widehat { Y } \mid \mid Y )$ to denote the crossentropy loss function between the predicted variable $\widehat { Y }$ and the true label distribution $Y$ over the joint distribution $\mathcal { D }$ . For binary random variables $Y$ , we define $\mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \mid \mid Y )$ to be the balanced error rate of predicting $Y$ using $\widehat { Y }$ , e.g., $\operatorname { B E R } _ { \mathcal { D } } ( \widehat { Y } \mid \mid Y ) : = \mathcal { D } ( \widehat { Y } = 0 \mid Y = 1 ) + \mathcal { D } ( \widehat { Y } = 1 \mid Y = 0 )$ . Realize that ${ \mathcal { D } } ( \widehat { Y } = 0 \mid Y = 1 )$ is the false negative rate (FNR) of $\widehat { Y }$ and ${ \mathcal { D } } ( \widehat { Y } = 1 \mid Y = 0 )$ corresponds to the false positive rate (FPR). So the balanced error rate can also be understood as the sum of FPR and FNR using the predictor $\widehat { Y }$ . We can similarly define $\mathrm { B E R } _ { \mathcal { D } } ( \widehat { A } \mid \mid A )$ as well.
35
+
36
+ Problem Setup In this work we focus on group fairness where the group membership is given by the sensitive attribute $A$ . We assume that the sensitive attribute $A$ is available to the learner during training phase, but not inference phase. As a result, post-processing techniques to ensure fairness are not feasible under our setting. In the literature, there are many possible definitions of fairness (Narayanan, 2018), and in what follows we provide a brief review of the ones that are mostly relevant to this work.
37
+
38
+ Definition 2.1 (Demographic Parity (DP)). Given a joint distribution $\mathcal { D }$ , a classifier $\widehat { Y }$ satisfies demographic parity if $\bar { \hat { Y } }$ is independent of $A$ .
39
+
40
+ When $\widehat { Y }$ is a deterministic binary classifier, demographic parity reduces to the requirement that $\mathcal { D } _ { 0 } ( \widehat { Y } = 1 ) = \mathcal { D } _ { 1 } ( \widehat { Y } = 1 )$ , i.e., positive outcome is given to the two groups at the same rate. Demographic parity is also known as statistical parity, and it has been adopted as the default definition of fairness in a series of work (Calders & Verwer, 2010; Calders et al., 2009; Edwards & Storkey, 2015; Johndrow et al., 2019; Kamiran & Calders, 2009; Kamishima et al., 2011; Louizos et al., 2015; Zemel et al., 2013; Madras et al., 2018; Adel et al., 2019). It is not surprising that demographic parity may cripple the utility that we hope to achieve, especially in the common scenario where the base rates differ between two groups (Hardt et al., 2016). Formally, the following theorem characterizes the trade-off in terms of the joint error across different groups:
41
+
42
+ Theorem 2.1. (Zhao & Gordon, 2019) Let ${ \widehat { Y } } = h ( g ( X ) )$ be the classifier. Then $\mathrm { E r r } _ { { D _ { 0 } } } ( h \circ g ) +$ $\mathrm { E r r } _ { \mathcal { D } _ { 1 } } ( h \circ g ) \geq \Delta _ { \mathrm { B R } } ( \mathcal { D } _ { 0 } , \mathcal { D } _ { 1 } ) - d _ { \mathrm { T V } } ( g _ { \sharp } \mathcal { D } _ { 0 } , g _ { \sharp } \mathcal { D } _ { 1 } )$ .
43
+
44
+ In this case of representations that are independent of the sensitive attribute $A$ , then the second term $d _ { \mathrm { T V } } ( g _ { \sharp } \mathcal { D } _ { 0 } , g _ { \sharp } \mathcal { D } _ { 1 } )$ becomes 0, and this implies:
45
+
46
+ $$
47
+ \begin{array} { r } { \mathrm { E r r } _ { \mathcal { D } _ { 0 } } ( h \circ g ) + \mathrm { E r r } _ { \mathcal { D } _ { 1 } } ( h \circ g ) \geq \Delta _ { \mathrm { B R } } ( \mathcal { D } _ { 0 } , \mathcal { D } _ { 1 } ) . } \end{array}
48
+ $$
49
+
50
+ At a colloquial level, the above inequality could be understood as an uncertainty principle which says:
51
+
52
+ For fair representations, it is not possible to construct a predictor that simultaneously minimizes the errors on both demographic subgroups.
53
+
54
+ More precisely, by the pigeonhole principle, the following corollary holds:
55
+
56
+ Corollary 2.1. If $d _ { \mathrm { T V } } ( g _ { \sharp } \mathcal { D } _ { 0 } , g _ { \sharp } \mathcal { D } _ { 1 } ) = 0$ , then for any hypothesis $\begin{array} { r } { h , \operatorname* { m a x } \{ { \mathrm { E r r } _ { \mathcal { D } _ { 0 } } ( h \circ g ) , \mathrm { E r r } _ { \mathcal { D } _ { 1 } } ( h \circ } } \end{array}$ $g ) \} \} \ge \Delta _ { \mathrm { B R } } ( \mathcal { D } _ { 0 } , \mathcal { D } _ { 1 } ) / 2$ .
57
+
58
+ In words, this means that for fair representations in the demographic parity sense, at least one of the subgroups has to incur a prediction error of at least $\Delta _ { \mathrm { B R } } ( \mathcal { D } _ { 0 } , \mathcal { D } _ { 1 } ) / 2$ which could be large in settings like criminal justice where $\Delta _ { \mathrm { B R } } ( \mathcal { D } _ { 0 } , \mathcal { D } _ { 1 } )$ is large. In light of such inherent trade-off, an alternative definition is accuracy parity, which asks for equalized error rates across different groups:
59
+
60
+ Definition 2.2 (Accuracy Parity). Given a joint distribution $\mathcal { D }$ , a classifier $\widehat { Y }$ satisfies accuracy parity if ${ \mathcal { D } } _ { 0 } ( { \widehat { Y } } \neq Y ) = { \mathcal { D } } _ { 1 } ( { \widehat { Y } } ^ { * } \neq Y )$ .
61
+
62
+ A violation of accuracy parity is also known as disparate mistreatment (Zafar et al., 2017). Different from the definition of demographic parity, the definition of accuracy parity does not eliminate the perfect predictor even when the base rates differ across groups. Of course, other more refined definitions of fairness also exist in the literature, such as equalized odds (Hardt et al., 2016).
63
+
64
+ Definition 2.3 (Equalized Odds, a.k.a. Positive Rate Parity). Given a joint distribution $\mathcal { D }$ , a classifier $\widehat { Y }$ satisfies equalized odds if $\widehat { Y }$ is independent of $A$ conditioned on $Y$ .
65
+
66
+ The definition of equalized odds essentially requires equal true positive and false positive rates between different groups, hence it is also known as positive rate parity. Analogous to accuracy parity, equalized odds does not eliminate the perfect classifier (Hardt et al., 2016), and we will also justify this observation by formal analysis shortly. Last but not least, we have the following definition for predictive rate parity:
67
+
68
+ Definition 2.4 (Predictive Rate Parity). Given a joint distribution $\mathcal { D }$ , a classifier $\widehat { Y }$ satisfies predictive rate parity if $\mathcal { D } _ { 0 } ( Y = 1 \vert \widehat { Y } = c ) = \mathcal { D } _ { 1 } ( Y = 1 \vert \widehat { Y } = c ) , \forall c \in [ 0 , 1$ .
69
+
70
+ Note that in the above definition we allow the classifier $\widehat { Y }$ to be probabilistic, meaning that the output of $\widehat { Y }$ could be any value between 0 and 1. For the case where $\widehat { Y }$ is deterministic, Chouldechova (2017) showed that no deterministic classifier can simultaneously satisfy equalized odds and predictive rate parity when the base rates differ across subgroups and the classifier is not perfect.
71
+
72
+ # 3 ALGORITHM AND ANALYSIS
73
+
74
+ In this section we first give the proposed optimization formulation and then discuss through formal analysis the motivation of our algorithmic design. Specifically, we show in Section 3.1 why our formulation helps to escape the utility-fairness trade-off. We then in Section 3.2 formally prove that the BERs in the objective function could be used to guarantee a small joint error across different demographic subgroups. In Section 3.3 we establish the relationship between equalized odds and accuracy parity by providing an upper bound of the error gap in terms of both BER and the equalized odds gap. We conclude this section with a brief discussion on the practical implementation of the proposed optimization formulation in Section 3.4. Due to the space limit, we defer all the proofs to the appendix and focus on explaining the high-level intuition and implications of our results.
75
+
76
+ As briefly discussed in Section 5, a dominant approach in learning fair representations is via adversar ial training. Specifically, the following objective function is optimized:
77
+
78
+ $$
79
+ \operatorname* { m i n } _ { h , g } \operatorname* { m a x } _ { h ^ { \prime } } \mathrm { C E } _ { \mathcal { D } } ( h ( g ( X ) ) | | Y ) - \lambda \mathrm { C E } _ { \mathcal { D } } ( h ^ { \prime } ( g ( X ) ) | | \begin{array} { l } { A } \end{array} )
80
+ $$
81
+
82
+ In the above formulation, the first term corresponds to minimization of prediction loss of the target variable and the second term represents the loss incurred by the adversary $h ^ { \prime }$ . Overall this minimax optimization problem expresses a trade-off (controlled by the hyperparameter $\lambda > 0$ ) between utility and fairness through the representation learning function $g$ : on one hand $g$ needs to preserve sufficient information related to $Y$ in order to minimize the first term, but on the other hand $g$ also needs to filter out information related to $A$ in order to maximize the second term.
83
+
84
+ # 3.1 CONDITIONAL LEARNING OF FAIR REPRESENTATIONS
85
+
86
+ However, as we introduced in Section 2, the above framework is still subjective to the inherent trade-off between utility and fairness. To escape such a trade-off, we advocate for the following optimization formulation instead:
87
+
88
+ $$
89
+ \operatorname* { m i n } _ { h , g } \ \operatorname* { m a x } _ { h ^ { \prime } , h ^ { \prime \prime } } \quad \mathrm { B E R } _ { \mathcal { D } } ( h ( g ( X ) ) \mid \mid Y ) - \lambda \left( \mathrm { B E R } _ { \mathcal { D } ^ { 0 } } ( h ^ { \prime } ( g ( X ) ) \mid \mid A ) + \mathrm { B E R } _ { \mathcal { D } ^ { 1 } } ( h ^ { \prime \prime } ( g ( X ) ) \mid \mid A ) \right)
90
+ $$
91
+
92
+ Note that here we optimize over two distinct adversaries, one for each conditional distribution $\mathcal { D } ^ { y }$ , $y \in \{ 0 , 1 \}$ . Intuitively, the main difference between (2) and (1) is that we use BER as our objective function in both terms. By definition, since BER corresponds to the sum of Type-I and Type-II errors in classification, the proposed objective function essentially minimizes the conditional errors instead of the original marginal error:
93
+
94
+ $$
95
+ \begin{array} { r l } & { \bar { \mathcal { D } } \hat { ( Y \ne Y ) } = \bar { \mathcal { D } } \hat { ( Y = 0 ) } \mathcal { D } \hat { ( Y \ne Y \mid Y = 0 ) } + \bar { \mathcal { D } } \hat { ( Y = 1 ) } \bar { \mathcal { D } } \hat { ( Y \ne Y \mid Y = 1 ) } } \\ & { \mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \mid | Y ) \propto \displaystyle \frac { 1 } { 2 } \bar { \mathcal { D } } ( \widehat { Y } \ne Y \mid Y = 0 ) + \frac { 1 } { 2 } \bar { \mathcal { D } } ( \widehat { Y } \ne Y \mid Y = 1 ) , } \end{array}
96
+ $$
97
+
98
+ which means that the loss function gives equal importance to the classification error from both groups. Note that the BERs in the second term of (2) are over $\mathcal { D } ^ { y }$ , $y \in \{ 0 , 1 \}$ . Roughly speaking, the second term encourages alignment of the the conditional distributions $g _ { \sharp } \mathcal { D } _ { 0 } ^ { y }$ and $\bar { g } _ { \sharp } \bar { \mathcal { D } } _ { 1 } ^ { y }$ for $y \in \{ 0 , 1 \}$ . The following proposition shows that a perfect conditional alignment of the representations also implies that any classifier based on the representations naturally satisfies the equalized odds criterion:
99
+
100
+ Proposition 3.1. For $g : \mathcal { X } \mathcal { Z }$ , if $d _ { \mathrm { T V } } ( g _ { \sharp } \mathcal { D } _ { 0 } ^ { y } , g _ { \sharp } \mathcal { D } _ { 1 } ^ { y } ) = 0 , \forall y \in \{ 0 , 1 \}$ , then for any classifier $h : \mathcal { Z } \{ 0 , 1 \}$ , $h \circ g$ satisfies equalized odds.
101
+
102
+ To understand why we aim for conditional alignment of distributions instead of aligning the marginal feature distributions, the following proposition characterizes why such alignment will help us to escape the previous trade-off:
103
+
104
+ Proposition 3.2. For $g : \mathcal { X } \mathcal { Z }$ , if $d _ { \mathrm { T V } } ( g _ { \sharp } \mathcal { D } _ { 0 } ^ { y } , g _ { \sharp } \mathcal { D } _ { 1 } ^ { y } ) = 0 , \forall y \in \{ 0 , 1 \}$ , then for any classifier $h : \bar { \mathcal { Z } } \to \{ 0 , 1 \}$ , $d _ { \mathrm { T V } } ( ( h \circ g ) _ { \sharp } \mathscr { D } _ { 0 } , ( h \circ g ) _ { \sharp } \mathscr { D } _ { 1 } ) \leq \Delta _ { \mathrm { B R } } ( \mathscr { D } _ { 0 } , \mathscr { D } _ { 1 } )$ .
105
+
106
+ As a corollary, this implies that the lower bound given in Theorem 2.1 now vanishes if we instead align the conditional distributions of representations:
107
+
108
+ $$
109
+ \begin{array} { r } { \mathrm { E r r } _ { \mathcal { D } _ { 0 } } ( h \circ g ) + \mathrm { E r r } _ { \mathcal { D } _ { 1 } } ( h \circ g ) \geq \Delta _ { \mathrm { B R } } ( \mathcal { D } _ { 0 } , \mathcal { D } _ { 1 } ) - d _ { \mathrm { T V } } ( ( h \circ g ) _ { \sharp } \mathcal { D } _ { 0 } , ( h \circ g ) _ { \sharp } \mathcal { D } _ { 1 } ) = 0 , } \end{array}
110
+ $$
111
+
112
+ where the first inequality is due to Lemma 3.1 (Zhao & Gordon, 2019) and the triangle inequality by the $d _ { \mathrm { T V } } ( \cdot , \cdot )$ distance. Of course, the above lower bound can only serve as a necessary condition but not sufficient to ensure a small joint error across groups. Later (c.f. Theorem 3.2) we will show that together with a small BER on the target variable, it becomes a sufficient condition as well.
113
+
114
+ 3.2 THE PRESERVATION OF DEMOGRAPHIC PARITY GAP AND SMALL JOINT ERROR
115
+
116
+ In this section we show that learning representations by aligning the conditional distributions across groups cannot increase the DP gap as compared to the DP gap of $Y$ . Before we proceed, we first introduce a metric to measure the deviation of a predictor from satisfying demographic parity:
117
+
118
+ Definition 3.1 (DP Gap). Given a joint distribution $\mathcal { D }$ , the demographic parity gap of a classifier $\widehat { Y }$ is $\Delta _ { \mathrm { D P } } ( \widehat { Y } ) : = | \mathcal { D } _ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } _ { 1 } ( \widehat { Y } = 1 ) |$ .
119
+
120
+ Clearly, if $\Delta _ { \mathrm { D P } } ( \widehat { Y } ) = 0$ , then $\widehat { Y }$ satisfies demographic parity. To simplify the exposition, let $\gamma _ { a } : = { \mathscr { D } } _ { a } ( Y = 0 ) , \forall a \in \{ 0 , 1 \}$ . We first prove the following lemma:
121
+
122
+ Lemma 3.1. Assume the conditions in Proposition 3.1 hold and let ${ \widehat { Y } } = h ( g ( X ) )$ be the classifier, then $\begin{array} { r } { | \mathcal D _ { 0 } ( \widehat { Y } = y ) - \mathcal D _ { 1 } ( \widehat { Y } = y ) | \le | \gamma _ { 0 } - \gamma _ { 1 } | \cdot \big ( \mathcal D ^ { 0 } ( \widehat { Y } = y ) + \mathcal D ^ { 1 } ( \widehat { Y } = y ) \big ) , \forall y \in \{ 0 , 1 \} . } \end{array}$ }.
123
+
124
+ Lemma 3.1 gives an upper bound on the difference of the prediction probabilities across different subgroups. Applying Lemma 3.1 twice for $y = 0$ and $y = 1$ , we can prove the following theorem:
125
+
126
+ Theorem 3.1. Assume the conditions in Proposition 3.1 hold and let ${ \widehat { Y } } = h ( g ( X ) )$ be the classifier, then $\Delta _ { \mathrm { D P } } ( \widehat { Y } ) \leq \Delta _ { \mathrm { B R } } ( \mathcal { D } _ { 0 } , \mathcal { D } _ { 1 } ) = \Delta _ { \mathrm { D P } } ( Y )$ .
127
+
128
+ Remark Theorem 3.1 shows that aligning the conditional distributions of representations between groups will not add more bias in terms of the demographic parity gap. In particular, the DP gap of any classifier that satisfies equalized odds will be at most the DP gap of the perfect classifier. This is particularly interesting as it is well-known in the literature (Barocas et al., 2017) that demographic parity is not compatible with equalized odds except in degenerate cases. Despite this result, Theorem 3.1 says that we can still achieve equalized odds and simultaneously preserve the DP gap.
129
+
130
+ In Section 3.1 we show that aligning the conditional distributions of representations between groups helps reduce the lower bound of the joint error, but nevertheless that is only a necessary condition. In the next theorem we show that together with a small Type-I and Type-II error in inferring the target variable $Y$ , these two properties are also sufficient to ensure a small joint error across different demographic subgroups.
131
+
132
+ Theorem 3.2. Assume the conditions in Proposition 3.1 hold and let ${ \widehat { Y } } = h ( g ( X ) )$ be the classifier, then $\mathrm { E r r } _ { \mathcal { D } _ { 0 } } ( \widehat { Y } ) + \mathrm { E r r } _ { \mathcal { D } _ { 1 } } ( \widehat { Y } ) \le 2 \mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \parallel Y )$ .
133
+
134
+ The above bound means that in order to achieve small joint error across groups, it suffices for us to minimize the BER if a classifier satisfies equalized odds. Note that by definition, the BER in the bound equals to the sum of Type-I and Type-II classification errors using $\widehat { Y }$ as a classifier. Theorem 3.2 gives an upper bound of the joint error across groups and it also serves as a motivation for us to design the optimization formulation (2) that simultaneously minimizes the BER and aligns the conditional distributions.
135
+
136
+ # 3.3 CONDITIONAL ALIGNMENT AND BALANCED ERROR RATES LEAD TO SMALL ERROR
137
+
138
+ In this section we will see that a small BER and equalized odds together not only serve as a guarantee of a small joint error, but they also lead to a small error gap between different demographic subgroups. Recall that we define $\gamma _ { a } : = \mathscr { D } _ { a } ( Y = 0 ) , \forall a \in \{ 0 , 1 \}$ . Before we proceed, we first formally define the accuracy gap and equalized odds gap of a classifier $\widehat { Y }$ :
139
+
140
+ Definition 3.2 (Error Gap). Given a joint distribution $\mathcal { D }$ , the error gap of a classifier $\widehat { Y }$ is $\Delta _ { \mathrm { E r r } } ( \widehat { Y } ) : =$ $\vert \mathcal { D } _ { 0 } ( \widehat { Y } \neq Y ) - \mathcal { D } _ { 1 } ( \widehat { Y } \neq Y ) \vert$ .
141
+
142
+ Definition 3.3 (Equalized Odds Gap). Given a joint distribution $\mathcal { D }$ , the equalized odds gap of a classifier $\widehat { Y }$ is $\begin{array} { r } { \bar { \Delta _ { \mathrm { E O } } ( \widehat { Y } ) } : = \operatorname* { m a x } _ { y \in \{ 0 , 1 \} } \ | \mathcal { D } _ { 0 } ^ { y } ( \widehat { Y } = 1 ) - \mathcal { D } _ { 1 } ^ { y } ( \widehat { Y } = 1 ) | } \end{array}$ .
143
+
144
+ By definition the error gap could also be understood as the accuracy parity gap between different subgroups. The following theorem characterizes the relationship between error gap, equalized odds gap and the difference of base rates across subgroups:
145
+
146
+ As a direct corollary of Theorem 3.3, if the classifier $\widehat { Y }$ satisfies equalized odds, then $\Delta _ { \mathrm { E O } } ( \widehat { Y } ) = 0$ . In this case since $\Delta _ { \mathrm { B R } } ( \mathcal { D } _ { 0 } , \mathcal { D } _ { 1 } )$ is a constant, minimizing the balanced error rate $\mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \mid \mid Y )$ also leads to minimizing the error gap. Furthermore, if we combine Theorem 3.2 and Theorem 3.3 together, we can guarantee that each of the errors cannot be too large:
147
+
148
+ Corollary 3.1. For any joint distribution $\mathcal { D }$ and classifier $\widehat { Y }$ , if $\widehat { Y }$ satisfies equalized odds, then $\operatorname* { m a x } \{ \mathrm { E r r } _ { \mathcal { D } _ { 0 } } ( \widehat { Y } ) , \mathrm { E r r } _ { \mathcal { D } _ { 1 } } ( \widehat { Y } ) \} \leq \Delta _ { \mathrm { B R } } ( \mathcal { D } _ { 0 } , \mathcal { D } _ { 1 } ) \cdot \mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \parallel Y ) / 2 + \mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \parallel Y ) .$
149
+
150
+ Remark It is a well-known fact that out of the three fairness criteria, i.e., demographic parity, equalized odds, and predictive rate parity, any two of them cannot hold simultaneously (Barocas et al., 2017) except in degenerate cases. By contrast, Theorem 3.3 suggests it $i s$ possible to achieve both equalized odds and accuracy parity. In particular, among all classifiers that satisfy equalize odds, it suffices to minimize the sum of Type-I and Type-II error $\mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \mid \mid Y )$ in order to achieve accuracy parity. It is also worth pointing out that Theorem 3.3 provides only an upper bound, but not necessarily the tightest one. In particular, the error gap could still be 0 while $\mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \mid \mid Y )$ is greater than 0. To see this, we have
151
+
152
+ $$
153
+ \begin{array} { r } { \left\{ \mathrm { E r r } _ { \mathcal { D } _ { 0 } } ( \widehat { Y } ) = \mathcal { D } _ { 0 } ( Y = 0 ) \cdot \mathcal { D } _ { 0 } ( \widehat { Y } = 1 \mid Y = 0 ) + \mathcal { D } _ { 0 } ( Y = 1 ) \cdot \mathcal { D } _ { 0 } ( \widehat { Y } = 0 \mid Y = 1 ) \right. } \\ { \left. \mathrm { E r r } _ { \mathcal { D } _ { 1 } } ( \widehat { Y } ) = \mathcal { D } _ { 1 } ( Y = 0 ) \cdot \mathcal { D } _ { 1 } ( \widehat { Y } = 1 \mid Y = 0 ) + \mathcal { D } _ { 1 } ( Y = 1 ) \cdot \mathcal { D } _ { 1 } ( \widehat { Y } = 0 \mid Y = 1 ) . \right. } \end{array}
154
+ $$
155
+
156
+ Now if the predictor $\widehat { Y }$ satisfies equalized odds, then
157
+
158
+ $$
159
+ \begin{array} { r l } & { \mathcal { D } _ { 0 } \big ( \widehat { Y } = 1 \mid Y = 0 \big ) = \mathcal { D } _ { 1 } \big ( \widehat { Y } = 1 \mid Y = 0 \big ) = \mathcal { D } \big ( \widehat { Y } = 1 \mid Y = 0 \big ) , } \\ & { \mathcal { D } _ { 0 } \big ( \widehat { Y } = 0 \mid Y = 1 \big ) = \mathcal { D } _ { 1 } \big ( \widehat { Y } = 0 \mid Y = 1 \big ) = \mathcal { D } \big ( \widehat { Y } = 0 \mid Y = 1 \big ) . } \end{array}
160
+ $$
161
+
162
+ Hence the error gap $\Delta _ { \mathrm { E r r } } ( \widehat { Y } )$ admits the following identity:
163
+
164
+ $$
165
+ \begin{array} { r l } & { \Delta _ { \mathrm { E r r } } ( \widehat { Y } ) = \Big | \mathcal { D } ( \widehat { Y } = 1 \mid Y = 0 ) \big ( \mathcal { D } _ { 0 } ( Y = 0 ) - \mathcal { D } _ { 1 } ( Y = 0 ) \big ) + \mathcal { D } ( \widehat { Y } = 0 \mid Y = 1 ) \big ( \mathcal { D } _ { 0 } ( Y = 1 ) - \mathcal { D } _ { 1 } ( Y = 0 ) \big ) } \\ & { \qquad = \Delta _ { \mathrm { B R } } ( \mathcal { D } _ { 0 } , \mathcal { D } _ { 1 } ) \cdot \Big | \mathcal { D } ( \widehat { Y } = 1 \mid Y = 0 ) - \mathcal { D } ( \widehat { Y } = 0 \mid Y = 1 ) \Big | } \\ & { \qquad = \Delta _ { \mathrm { B R } } ( \mathcal { D } _ { 0 } , \mathcal { D } _ { 1 } ) \cdot \Big | \mathrm { F P R } ( \widehat { Y } ) - \mathrm { F N R } ( \widehat { Y } ) \Big | . } \end{array}
166
+ $$
167
+
168
+ In other words, if the predictor $\widehat { Y }$ satisfies equalized odds, then in order to have equalized accuracy, $\widehat { Y }$ only needs to have equalized FPR and FNR globally when the base rates differ across groups. This is a much weaker condition to ask for than the one asking $\mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \mid \mid Y ) = 0$ .
169
+
170
+ # 3.4 PRACTICAL IMPLEMENTATION
171
+
172
+ We cannot directly optimize the proposed optimization formulation (2) since the binary $0 / 1$ loss is NPhard to optimize, or even approximately optimize over a wide range of hypothesis classes (Ben-David et al., 2003). However, observe that for any classifier $\widehat { Y }$ and $y \in \{ 0 , 1 \}$ , the log-loss (cross-entropy loss) $\mathrm { C E } _ { { D } ^ { y } } ( \widehat { Y } \mid \mid Y )$ is a convex relaxation of the binary loss:
173
+
174
+ $$
175
+ \mathcal { D } ( \widehat { Y } \neq y \mid Y = y ) = \frac { \mathcal { D } ( \widehat { Y } \neq y , Y = y ) } { \mathcal { D } ( Y = y ) } \leq \frac { \mathrm { C E } _ { \mathcal { D } ^ { y } } ( \widehat { Y } \mid \mid Y ) } { \mathcal { D } ( Y = y ) } .
176
+ $$
177
+
178
+ Hence in practice we can relax the optimization problem (2) to a cost-sensitive cross-entropy loss minimization problem, where the weight for each class is given by the inverse marginal probability of the corresponding class. This allows us to equivalently optimize the objective function without explicitly computing the conditional distributions.
179
+
180
+ # 4 EMPIRICAL STUDIES
181
+
182
+ In light of our theoretic findings, in this section we verify the effectiveness of the proposed algorithm in simultaneously ensuring equalized odds and accuracy parity using real-world datasets. We also analyze the impact of imposing such parity constraints on the utility of the target classifier, as well as its relationship to the intrinsic structure of the binary classification problem, e.g., the difference of base rates across groups, the global imbalance of the target variable, etc. We analyze how this imbalance affects the utility-fairness trade-off. As we shall see shortly, we will empirically demonstrate that, in many cases, especially the ones where the dataset is imbalanced in terms of the target variable, this will inevitably compromise the target utility. While for balanced datasets, this trend is less obvious: the proposed algorithm achieves a better fairness-utility trade-off when compared with existing fair representation learning methods and we can hope to achieve fairness without sacrificing too much on utility.
183
+
184
+ Table 1: Statistics about the Adult and COMPAS datasets.
185
+
186
+ <table><tr><td></td><td>Train /Test</td><td>D(Y = 1)</td><td>D(Y = 1)</td><td>△BR(D0,D1)</td><td>D(Y = 1)</td><td>D(A=1)</td></tr><tr><td>Adult</td><td>30,162/15,060</td><td>0.310</td><td>0.113</td><td>0.196</td><td>0.246</td><td>0.673</td></tr><tr><td>COMPAS</td><td>4,320/1,852</td><td>0.400</td><td>0.529</td><td>0.129</td><td>0.467</td><td>0.514</td></tr></table>
187
+
188
+ # 4.1 EXPERIMENTAL SETUP
189
+
190
+ To this end, we perform experiments on two popular real-world datasets in the literature of algorithmic fairness, including an income-prediction dataset, known as the Adult dataset, from the UCI Machine Learning Repository (Dua & Graff, 2017), and the Propublica COMPAS dataset (Dieterich et al., 2016). The basic statistics of these two datasets are listed in Table 1.
191
+
192
+ Adult Each instance in the Adult dataset describes an adult, e.g., gender, education level, age, etc, from the 1994 US Census. In this dataset we use gender as the sensitive attribute, and the processed data contains 114 attributes. The target variable (income) is also binary: 1 if $\ge 5 0 \mathrm { K }$ /year otherwise 0. For the sensitive attribute $A$ , $A = 0$ means male otherwise female. From Table 1 we can see that the base rates are quite different (0.310 vs. 0.113) across groups in the Adult dataset. The dataset is also imbalanced in the sense that only around $2 4 . 6 \%$ of the instances have target label 1. Furthermore, the group ratio is also imbalanced: roughly $6 7 . 3 \%$ of the data are male.
193
+
194
+ COMPAS The goal of the COMPAS dataset is binary classification on whether a criminal defendant will recidivate within two years or not. Each instance contains 12 attributes, including age, race, gender, number of prior crimes, etc. For this dataset, we use the race (white $A = 0$ vs. black $A = 1$ ) as our sensitive attribute and target variable is 1 iff recidivism. The base rates are different across groups, but the COMPAS dataset is balanced in both the target variable and the sensitive attribute.
195
+
196
+ To validate the effect of ensuring equalized odds and accuracy parity, for each dataset, we perform controlled experiments by fixing the baseline network architecture so that it is shared among all the fair representation learning methods. We term the proposed method CFAIR (for conditional fair representations) that minimizes conditional errors both the target variable loss function and adversary loss function. To demonstrate the importance of using BER in the loss function of target variable, we compare with a variant of CFAIR that only uses BER in the loss of adversaries, denoted as CFAIR-EO. To see the relative effect of using cross-entropy loss vs $L _ { 1 }$ loss, we also show the results of LAFTR (Madras et al., 2018), a state-of-the-art method for learning fair representations. Note that LAFTR is closely related to CFAIR-EO but slightly different: LAFTR uses global crossentropy loss for target variable, but conditional $L _ { 1 }$ loss for the adversary. Also, there is only one adversary in LAFTR, while there are two adversaries, one for $\mathcal { D } ^ { 0 }$ and one for $\mathcal { D } ^ { 1 }$ , in both CFAIR and CFAIR-EO. Lastly, we also present baseline results of FAIR (Edwards & Storkey, 2015), which aims for demographic parity representations, and NODEBIAS, the baseline network without any fairness constraint. For all the fair representation learning methods, we use the gradient reversal layer (Ganin et al., 2016) to implement the gradient descent ascent (GDA) algorithm to optimize the minimax problem. All the experimental details, including network architectures, learning rates, batch sizes, etc. are provided in the appendix.
197
+
198
+ # 4.2 RESULTS AND ANALYSIS
199
+
200
+ In Figure 1 and Figure 2 we show the error gap $\Delta _ { \mathrm { E r r } }$ , equalized odds gap $\Delta _ { \mathrm { E O } }$ , demographic parity gap $\Delta _ { \mathrm { D P } }$ and the joint error across groups $\mathrm { E r r } _ { 0 } + \mathrm { E r r } _ { 1 }$ of the aforementioned fair representation learning algorithms on both the Adult and the COMPAS datasets. For each algorithm and dataset, we also gradually increase the value of the trade-off parameter $\lambda$ and compute the corresponding metrics.
201
+
202
+ ![](images/5de21dd3a7f7921e963984f5ca3393b4963bb12ae0c8e03867e652dde0c107ec.jpg)
203
+ Figure 1: The error gap $\Delta _ { \mathrm { E r r } }$ , equalized odds gap $\Delta _ { \mathrm { E O } }$ , demographic parity gap $\Delta _ { \mathrm { D P } }$ and joint error $\mathrm { E r r } _ { 0 } + \mathrm { E r r } _ { 1 }$ on the Adult dataset with $\lambda \in \{ 0 . 1 , 1 . 0 , 1 0 . 0 , 1 0 0 . 0 , 1 0 0 0 . 0 \}$ .
204
+
205
+ ![](images/2e9efab0a2c9e7ed458885c663b08ce1adf75248aabc798703141bda2b97337c.jpg)
206
+ Figure 2: The error gap $\Delta _ { \mathrm { E r r } }$ , equalized odds gap $\Delta _ { \mathrm { E O } }$ , demographic parity gap $\Delta _ { \mathrm { D P } }$ and joint error $\mathrm { E r r } _ { 0 } + \mathrm { E r r } _ { 1 }$ on the COMPAS dataset with $\lambda \in \{ 0 . 1 , 1 . 0 , 1 0 . 0 \}$ .
207
+
208
+ Adult Due to the imbalance of $A$ in the Adult dataset, in the first plot of Figure 1 we can see that all the algorithms except CFAIR have a large error gap of around 0.12. As a comparison, observe that the error gap of CFAIR when $\lambda = 1 e 3$ almost reduces to 0, confirming the effectiveness of our algorithm in ensuring accuracy parity. From the second plot, we can verify that all the three methods, including CFAIR, CFAIR-EO and LAFTR successfully ensure a small equalized odds gap, and they also decrease demographic parity gaps (the third plot). FAIR is the most effective one in mitigating $\Delta _ { \mathrm { D P } }$ since its objective function directly optimizes for that goal. Note that from the second plot we can also confirm that CFAIR-EO is more effective than LAFTR in reducing $\Delta _ { \mathrm { E O } }$ . The reason is two-fold. First, CFAIR-EO uses two distinct adversaries and hence it effectively competes with stronger adversaries than LAFTR. Second, CFAIR-EO uses the cross-entropy loss instead of the $L _ { 1 }$ loss for the adversary, and it is well-known that the maximum-likelihood estimator (equivalent to using the cross-entropy loss) is asymptotically efficient and optimal. On the other hand, since the Adult dataset is imbalanced (in terms of $Y$ ), using BER in the loss function of the target variable can thus to a large extent hurt the utility, and this is also confirmed from the last plot, where we show the joint error.
209
+
210
+ COMPAS The first three plots of Figure 2 once again verify that CFAIR successfully leads to reduced error gap, equalized odds gap and also demographic parity gap. These experimental results are consistent with our theoretical findings where we show that if the representations satisfy equalized odds, then its $\Delta _ { \mathrm { D P } }$ cannot exceed that of the optimal classifier, as shown by the horizontal dashed line in the third plot. In the fourth plot of Figure 2, we can see that as we increase $\lambda$ , all the fair representation learning algorithms sacrifice utility. However, in contrast to Figure 1, here the proposed algorithm CFAIR has the smallest trade-off: this shows that CFAIR is particularly suited in the cases when the dataset is balanced and we would like to simultaneously ensure accuracy parity and equalized odds. As a comparison, while CFAIR-EO is still effective, it is slightly worse than CFAIR in terms of both ensuring parity and achieving small joint error.
211
+
212
+ # 5 RELATED WORK
213
+
214
+ Algorithmic Fairness In the literature of algorithmic fairness, two key notions of fairness have been extensively proposed and explored, i.e., group fairness, including various variants defined in Section 2, and individual fairness, which means that similar individuals should be treated similarly. Due to the complexity in defining a distance metric to measure the similarity between individuals (Dwork et al., 2012), most recent research focuses on designing efficient algorithms to achieve group fairness (Zemel et al., 2013; Zafar et al., 2015; Hardt et al., 2016; Zafar et al., 2017; Madras et al., 2018; Creager et al., 2019; Madras et al., 2019). In particular, Hardt et al. (2016) proposed a post-processing technique to achieve equalized odds by taking as input the model’s prediction and the sensitive attribute. However, the post-processing technique requires access to the sensitive attribute during the inference phase, which is often not available in many real-world scenarios. Another line of work uses causal inference to define notions of causal fairness and to formulate procedures for achieving these notions (Zhang et al., 2018; Wang et al., 2019; Madras et al., 2019; Kilbertus et al., 2017; Kusner et al., 2017; Nabi & Shpitser, 2018). These approaches require making untestable assumptions. Of particular note is the observation in Coston et al. (2019) that fairness-adjustment procedures based on $Y$ in settings with treatment effects may lead to adverse outcomes. To apply our method in such settings, we would need to match conditional counterfactual distributions, which could be a direction of future research.
215
+
216
+ Theoretical Results on Fairness Theoretical work studying the relationship between different kinds of fairness notions are abundant. Motivated by the controversy of the potential discriminatory bias in recidivism prediction instruments, Chouldechova (2017) showed an intrinsic incompatibility between equalized odds and predictive rate parity. In the seminal work of Kleinberg et al. (2016), the authors demonstrated that when the base rates differ between different groups, then a non-perfect classifier cannot simultaneously be statistically calibrated and satisfy equalized odds. In the context of cost-sensitive learning, Menon & Williamson (2018) show that if the optimal decision function is dissimilar to a fair decision, then the fairness constraint will not significantly harm the target utility. The idea of reducing fair classification to cost-sensitive learning is not new. Agarwal et al. (2018) explored the connection between fair classification and a sequence of cost-sensitive learning problems where each stage corresponds to solving a linear minimax saddle point problem. In a recent work (Zhao & Gordon, 2019), the authors proved a lower bound on the joint error across different groups when a classifier satisfies demographic parity. They also showed that when the decision functions are close between groups, demographic parity also implies accuracy parity. The theoretical results in this work establish a relationship between accuracy parity and equalized odds: these two fairness notions are fundamentally related by the base rate gap and the balanced error rate. Furthermore, we also show that for any predictor that satisfies equalized odds, the balanced error rate also serves as an upper bound on the joint error across demographic subgroups.
217
+
218
+ Fair Representations Through the lens of representation learning, recent advances in building fair algorithmic decision making systems focus on using adversarial methods to learn fair representations that also preserve sufficient information for the prediction task (Edwards & Storkey, 2015; Beutel et al., 2017; Zhang et al., 2018; Madras et al., 2018; Adel et al., 2019). In a nutshell, the key idea is to frame the problem of learning fair representations as a two-player game, where the data owner is competing against an adversary. The goal of the adversary is to infer the group attribute as much as possible while the goal of the data owner is to remove information related to the group attribute and simultaneously to preserve utility-related information for accurate prediction. Apart from using adversarial classifiers to enforce group fairness, other distance metrics have also been used to learn fair representations, e.g., the maximum mean discrepancy (Louizos et al., 2015), and the Wasserstein-1 distance (Jiang et al., 2019). In contrast to these methods, in this paper we advocate for optimizing BER on both the target loss and adversary loss in order to simultaneously achieve accuracy parity and equalized odds. We also show that this leads to better utility-fairness trade-off for balanced datasets.
219
+
220
+ # 6 CONCLUSION AND FUTURE WORK
221
+
222
+ In this paper we propose a novel representation learning algorithm that aims to simultaneously ensure accuracy parity and equalized odds. The main idea underlying the design of our algorithm is to align the conditional distributions of representations (rather than marginal distributions) and use balanced error rate (i.e., the conditional error) on both the target variable and the sensitive attribute. Theoretically, we prove how these two concepts together help to ensure accuracy parity and equalized odds without impacting demographic parity, and we also show how these two can be used to give a guarantee on the joint error across different demographic subgroups. Empirically, we demonstrate on two real-world experiments that the proposed algorithm effectively leads to the desired notions of fairness, and it also leads to better utility-fairness trade-off on balanced datasets.
223
+
224
+ Calibration and Utility Our work takes a step towards better understanding the relationships between different notions of fairness and their corresponding trade-off with utility. In some scenarios, e.g., the COMPAS tool, it is desired to have a decision making system that is also well calibrated. While it is well-known that statistical calibration is not compatible with demographic parity or equalized odds, from a theoretical standpoint it is still not clear whether calibration will harm utility and if so, what is the fundamental limit of a calibrated tool on utility.
225
+
226
+ Fairness and Privacy Future work could also investigate how to make use of the close relationship between privacy and group fairness. At a colloquial level, fairness constraints require a predictor to be (to some extent) agnostic about the group membership attribute. The membership query attack in privacy asks the same question – is it possible to guarantee that even an optimal adversary cannot steal personal information through inference attacks. Prior work (Dwork et al., 2012) has described the connection between the notion of individual fairness and differential privacy. Hence it would be interesting to exploit techniques developed in the literature of privacy to develop more efficient fairness-aware learning algorithms. On the other hand, results obtained in the algorithmic fairness literature could also potentially lead to better privacy-preserving machine learning algorithms (Zhao et al., 2019).
227
+
228
+ # ACKNOWLEDGMENTS
229
+
230
+ HZ and GG would like to acknowledge support from the DARPA XAI project, contract #FA87501720152 and an Nvidia GPU grant. HZ would also like to thank Richard Zemel, Toniann Pitassi, David Madras and Elliot Creager for helpful discussions during HZ’s visit to the Vector Institute.
231
+
232
+ # REFERENCES
233
+
234
+ Tameem Adel, Isabel Valera, Zoubin Ghahramani, and Adrian Weller. One-network adversarial fairness. In 33rd AAAI Conference on Artificial Intelligence, 2019.
235
+
236
+ Alekh Agarwal, Alina Beygelzimer, Miroslav Dudik, John Langford, and Hanna Wallach. A reductions approach to fair classification. In International Conference on Machine Learning, pp. 60–69, 2018.
237
+
238
+ Solon Barocas, Moritz Hardt, and Arvind Narayanan. Fairness in machine learning. NIPS Tutorial, 2017.
239
+
240
+ Shai Ben-David, Nadav Eiron, and Philip M Long. On the difficulty of approximately maximizing agreements. Journal of Computer and System Sciences, 66(3):496–514, 2003.
241
+
242
+ Alex Beutel, Jilin Chen, Zhe Zhao, and Ed H Chi. Data decisions and theoretical implications when adversarially learning fair representations. arXiv preprint arXiv:1707.00075, 2017.
243
+
244
+ Toon Calders and Sicco Verwer. Three naive bayes approaches for discrimination-free classification. Data Mining and Knowledge Discovery, 21(2):277–292, 2010.
245
+
246
+ Toon Calders, Faisal Kamiran, and Mykola Pechenizkiy. Building classifiers with independency constraints. In 2009 IEEE International Conference on Data Mining Workshops, pp. 13–18. IEEE, 2009.
247
+
248
+ Alexandra Chouldechova. Fair prediction with disparate impact: A study of bias in recidivism prediction instruments. Big data, 5(2):153–163, 2017.
249
+
250
+ Alexandra Chouldechova and Aaron Roth. The frontiers of fairness in machine learning. arXiv preprint arXiv:1810.08810, 2018.
251
+
252
+ Sam Corbett-Davies and Sharad Goel. The measure and mismeasure of fairness: A critical review of fair machine learning. arXiv preprint arXiv:1808.00023, 2018.
253
+
254
+ Amanda Coston, Alexandra Chouldechova, and Edward H Kennedy. Counterfactual risk assessments, evaluation, and fairness. arXiv preprint arXiv:1909.00066, 2019.
255
+
256
+ Elliot Creager, David Madras, Joern-Henrik Jacobsen, Marissa Weis, Kevin Swersky, Toniann Pitassi, and Richard Zemel. Flexibly fair representation learning by disentanglement. In International Conference on Machine Learning, pp. 1436–1445, 2019.
257
+
258
+ William Dieterich, Christina Mendoza, and Tim Brennan. Compas risk scales: Demonstrating accuracy equity and predictive parity. Northpoint Inc, 2016.
259
+
260
+ Dheeru Dua and Casey Graff. UCI machine learning repository, 2017. URL http://archive. ics.uci.edu/ml.
261
+
262
+ Cynthia Dwork, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Richard Zemel. Fairness through awareness. In Proceedings of the 3rd innovations in theoretical computer science conference, pp. 214–226. ACM, 2012.
263
+
264
+ Harrison Edwards and Amos Storkey. Censoring representations with an adversary. arXiv preprint arXiv:1511.05897, 2015.
265
+
266
+ Michael Feldman, Sorelle A Friedler, John Moeller, Carlos Scheidegger, and Suresh Venkatasubramanian. Certifying and removing disparate impact. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 259–268. ACM, 2015.
267
+
268
+ Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. The Journal of Machine Learning Research, 17(1):2096–2030, 2016.
269
+
270
+ Moritz Hardt, Eric Price, Nati Srebro, et al. Equality of opportunity in supervised learning. In Advances in neural information processing systems, pp. 3315–3323, 2016.
271
+
272
+ Ray Jiang, Aldo Pacchiano, Tom Stepleton, Heinrich Jiang, and Silvia Chiappa. Wasserstein fair classification. arXiv preprint arXiv:1907.12059, 2019.
273
+
274
+ James E Johndrow, Kristian Lum, et al. An algorithm for removing sensitive information: application to race-independent recidivism prediction. The Annals of Applied Statistics, 13(1):189–220, 2019.
275
+
276
+ Faisal Kamiran and Toon Calders. Classifying without discriminating. In 2009 2nd International Conference on Computer, Control and Communication, pp. 1–6. IEEE, 2009.
277
+
278
+ Toshihiro Kamishima, Shotaro Akaho, and Jun Sakuma. Fairness-aware learning through regularization approach. In 2011 IEEE 11th International Conference on Data Mining Workshops, pp. 643–650. IEEE, 2011.
279
+
280
+ Niki Kilbertus, Mateo Rojas Carulla, Giambattista Parascandolo, Moritz Hardt, Dominik Janzing, and Bernhard Schölkopf. Avoiding discrimination through causal reasoning. In Advances in Neural Information Processing Systems, pp. 656–666, 2017.
281
+
282
+ Jon Kleinberg, Sendhil Mullainathan, and Manish Raghavan. Inherent trade-offs in the fair determination of risk scores. arXiv preprint arXiv:1609.05807, 2016.
283
+
284
+ Matt J Kusner, Joshua Loftus, Chris Russell, and Ricardo Silva. Counterfactual fairness. In Advances in Neural Information Processing Systems, pp. 4066–4076, 2017.
285
+
286
+ Christos Louizos, Kevin Swersky, Yujia Li, Max Welling, and Richard Zemel. The variational fair autoencoder. arXiv preprint arXiv:1511.00830, 2015.
287
+
288
+ David Madras, Elliot Creager, Toniann Pitassi, and Richard Zemel. Learning adversarially fair and transferable representations. In International Conference on Machine Learning, pp. 3381–3390, 2018.
289
+
290
+ David Madras, Elliot Creager, Toniann Pitassi, and Richard Zemel. Fairness through causal awareness: Learning causal latent-variable models for biased data. In Proceedings of the Conference on Fairness, Accountability, and Transparency, pp. 349–358. ACM, 2019.
291
+
292
+ Aditya Krishna Menon and Robert C Williamson. The cost of fairness in binary classification. In Conference on Fairness, Accountability and Transparency, pp. 107–118, 2018.
293
+
294
+ Razieh Nabi and Ilya Shpitser. Fair inference on outcomes. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
295
+
296
+ Arvind Narayanan. Translation tutorial: 21 fairness definitions and their politics. In Proc. Conf. Fairness Accountability Transp., New York, USA, 2018.
297
+
298
+ Yixin Wang, Dhanya Sridhar, and David M Blei. Equal opportunity and affirmative action via counterfactual predictions. arXiv preprint arXiv:1905.10870, 2019.
299
+
300
+ Muhammad Bilal Zafar, Isabel Valera, Manuel Gomez Rodriguez, and Krishna P Gummadi. Fairness constraints: Mechanisms for fair classification. arXiv preprint arXiv:1507.05259, 2015.
301
+
302
+ Muhammad Bilal Zafar, Isabel Valera, Manuel Gomez Rodriguez, and Krishna P Gummadi. Fairness beyond disparate treatment & disparate impact: Learning classification without disparate mistreatment. In Proceedings of the 26th International Conference on World Wide Web, pp. 1171–1180. International World Wide Web Conferences Steering Committee, 2017.
303
+
304
+ Rich Zemel, Yu Wu, Kevin Swersky, Toni Pitassi, and Cynthia Dwork. Learning fair representations. In International Conference on Machine Learning, pp. 325–333, 2013.
305
+
306
+ Brian Hu Zhang, Blake Lemoine, and Margaret Mitchell. Mitigating unwanted biases with adversarial learning. In Proceedings of the 2018 AAAI/ACM Conference on AI, Ethics, and Society, pp. 335– 340. ACM, 2018.
307
+
308
+ Han Zhao and Geoffrey J Gordon. Inherent tradeoffs in learning fair representations. In Advances in neural information processing systems, 2019.
309
+
310
+ Han Zhao, Jianfeng Chi, Yuan Tian, and Geoffrey J Gordon. Adversarial privacy preservation under attribute inference attack. arXiv preprint arXiv:1906.07902, 2019.
311
+
312
+ # A PROOFS
313
+
314
+ # A.1 PROOF OF PROPOSITION 3.1
315
+
316
+ Proposition 3.1. For $g : \mathcal { X } \mathcal { Z }$ , if $d _ { \mathrm { T V } } ( g _ { \sharp } \mathcal { D } _ { 0 } ^ { y } , g _ { \sharp } \mathcal { D } _ { 1 } ^ { y } ) = 0 , \forall y \in \{ 0 , 1 \}$ , then for any classifier $h : \bar { \mathcal { Z } } \to \{ 0 , 1 \}$ , $h \circ g$ satisfies equalized odds.
317
+
318
+ Proof. To prove this proposition, we first show that for any pair of distributions $\mathcal { D }$ , $\mathcal { D } ^ { \prime }$ over $\mathcal { Z }$ and any hypothesis $h : \bar { \mathcal { Z } } \bar { \{ 0 , 1 \} }$ , $d _ { \mathrm { T V } } ( h _ { \sharp } \mathcal { D } , h _ { \sharp } \mathcal { D } ^ { \prime } ) \leq d _ { \mathrm { T V } } ( \boldsymbol { \bar { D } } , \boldsymbol { \bar { D } } ^ { \prime } )$ . Note that since $h$ is a hypothesis, there are only two events in the induced probability space, i.e., $h ( \cdot ) = 0$ or $h ( \cdot ) = 1$ . Hence by definition of the induced (pushforward) distribution, we have:
319
+
320
+ $$
321
+ \begin{array} { r l } { d _ { \mathrm { T V } } ( h _ { \sharp } \mathcal { D } , h _ { \sharp } \mathcal { D } ^ { \prime } ) = \underset { { E = h ^ { - 1 } ( 0 ) , \mathrm { ~ o r } E = h ^ { - 1 } ( 1 ) } } { \mathrm { m a x } } | \mathcal { D } ( E ) - \mathcal { D } ^ { \prime } ( E ) | } & { } \\ { \leq \underset { { E \mathrm { ~ i s ~ m e a s u r a b l e ~ s u b s e t ~ o f ~ } \mathcal { Z } } } { \mathrm { s u p } } | \mathcal { D } ( E ) - \mathcal { D } ^ { \prime } ( E ) | } & { } \\ { = d _ { \mathrm { T V } } ( \mathcal { D } , \mathcal { D } ^ { \prime } ) . } \end{array}
322
+ $$
323
+
324
+ Apply the above inequality twice for $y \in \{ 0 , 1 \}$ :
325
+
326
+ $$
327
+ 0 \leq d _ { \mathrm { T V } } ( ( h \circ g ) _ { \sharp } \mathscr { D } _ { 0 } ^ { y } , ( h \circ g ) _ { \sharp } \mathscr { D } _ { 1 } ^ { y } ) \leq d _ { \mathrm { T V } } ( g _ { \sharp } \mathscr { D } _ { 0 } ^ { y } , g _ { \sharp } \mathscr { D } _ { 1 } ^ { y } ) = 0 ,
328
+ $$
329
+
330
+ meaning
331
+
332
+ $$
333
+ d _ { \mathrm { T V } } ( ( h \circ g ) _ { \sharp } \mathscr { D } _ { 0 } ^ { y } , ( h \circ g ) _ { \sharp } \mathscr { D } _ { 1 } ^ { y } ) = 0 ,
334
+ $$
335
+
336
+ which further implies that $h ( g ( X ) )$ is independent of $A$ given $Y = y$ since $h ( g ( X ) )$ is binary.
337
+
338
+ # A.2 PROOF OF PROPOSITION 3.2
339
+
340
+ Proposition 3.2. For $g : \mathcal { X } \mathcal { Z }$ , if $d _ { \mathrm { T V } } ( g _ { \sharp } \mathcal { D } _ { 0 } ^ { y } , g _ { \sharp } \mathcal { D } _ { 1 } ^ { y } ) = 0 , \forall y \in \{ 0 , 1 \}$ , then for any classifier $h : \mathcal { Z } \{ 0 , 1 \}$ , $d _ { \mathrm { T V } } ( ( h \circ g ) _ { \sharp } \mathscr { D } _ { 0 } , ( h \circ g ) _ { \sharp } \mathscr { D } _ { 1 } ) \leq \Delta _ { \mathrm { B R } } ( \mathscr { D } _ { 0 } , \mathscr { D } _ { 1 } )$ .
341
+
342
+ Proof. Let ${ \widehat { Y } } = ( h \circ g ) ( X )$ and note that $\widehat { Y }$ is binary, we have
343
+
344
+ $$
345
+ d _ { \mathrm { T V } } ( ( h \circ g ) _ { \sharp } \mathcal { D } _ { 0 } , ( h \circ g ) _ { \sharp } \mathcal { D } _ { 1 } ) = \frac { 1 } { 2 } \left( | \mathcal { D } _ { 0 } ( \widehat { Y } = 0 ) - \mathcal { D } _ { 1 } ( \widehat { Y } = 0 ) | + | \mathcal { D } _ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } _ { 1 } ( \widehat { Y } = 1 ) | \right) .
346
+ $$
347
+
348
+ Now, by Proposition 3.1, if $d _ { \mathrm { T V } } ( g _ { \sharp } \mathcal { D } _ { 0 } ^ { y } , g _ { \sharp } \mathcal { D } _ { 1 } ^ { y } ) = 0$ , $\forall y \in \{ 0 , 1 \}$ , it follows that $d _ { \mathrm { T V } _ { \perp } } ( ( h \circ g ) _ { \sharp } { \mathcal D } _ { 0 } ^ { y } , ( h \circ$ $g ) _ { \sharp } \mathcal { D } _ { 1 } ^ { y } = 0 , \forall y \in \{ 0 , 1 \}$ as well. Applying Lemma 3.1, we know that $\forall y \in \{ 0 , 1 \}$ ,
349
+
350
+ $$
351
+ \begin{array} { r } { | D _ { 0 } ( \widehat { Y } = y ) - \mathcal { D } _ { 1 } ( \widehat { Y } = y ) | \le | \mathcal { D } _ { 0 } ( Y = 0 ) - \mathcal { D } _ { 1 } ( Y = 0 ) | \cdot \big ( \mathcal { D } ^ { 0 } ( \widehat { Y } = y ) + \mathcal { D } ^ { 1 } ( \widehat { Y } = y ) \big ) . } \end{array}
352
+ $$
353
+
354
+ Hence,
355
+
356
+ $$
357
+ \begin{array} { r l } & { \ell _ { \mathrm { T V } } ( ( h \circ g ) _ { \sharp } \mathcal D _ { 0 } , ( h \circ g ) _ { \sharp } \mathcal D _ { 1 } ) = \frac { 1 } { 2 } \left( \left| \mathcal D _ { 0 } ( \widehat { Y } = 0 ) - \mathcal D _ { 1 } ( \widehat { Y } = 0 ) \right| + \left| \mathcal D _ { 0 } ( \widehat { Y } = 1 ) - \mathcal D _ { 1 } ( \widehat { Y } = 1 ) \right| \right) } \\ & { \qquad \leq \frac { \left| \mathcal D _ { 0 } ( Y = 0 ) - \mathcal D _ { 1 } ( Y = 0 ) \right| } { 2 } \left( \left( \mathcal D ^ { 0 } ( \widehat { Y } = 0 ) + \mathcal D ^ { 1 } ( \widehat { Y } = 0 ) \right) + \left( \mathcal D ^ { 0 } ( \widehat { Y } = 1 ) + \mathcal D ^ { 1 } ( \widehat { Y } = 1 ) \right) \right) } \\ & { \qquad = \frac { \left| \mathcal D _ { 0 } ( Y = 0 ) - \mathcal D _ { 1 } ( Y = 0 ) \right| } { 2 } \left( \left( \mathcal D ^ { 0 } ( \widehat { Y } = 0 ) + \mathcal D ^ { 0 } ( \widehat { Y } = 1 ) \right) + \left( \mathcal D ^ { 1 } ( \widehat { Y } = 0 ) + \mathcal D ^ { 1 } ( \widehat { Y } = 1 ) \right) \right) } \\ & { \qquad = \frac { \left| \mathcal D _ { 0 } ( Y = 0 ) - \mathcal D _ { 1 } ( Y = 0 ) \right| } { 2 } \cdot 2 } \\ & { \qquad = \left| \mathcal D _ { 0 } ( Y = 0 ) - \mathcal D _ { 1 } ( Y = 0 ) \right| } \\ & { \qquad = \left| \mathcal D _ { 0 } ( \widehat { Y } = 0 ) - \mathcal D _ { 1 } ( Y = 0 ) \right| } \\ & { \qquad = \Delta _ { \mathbb R } ( \mathcal D _ { 0 } , \mathcal D _ { 1 } ) . } \end{array}
358
+ $$
359
+
360
+ # A.3 PROOF OF LEMMA 3.1
361
+
362
+ Recall that we define $\gamma _ { a } : = { \mathscr { D } } _ { a } ( Y = 0 ) , \forall a \in \{ 0 , 1 \}$ .
363
+
364
+ Lemma 3.1. Assume the conditions in Proposition 3.1 hold and let ${ \widehat { Y } } = h ( g ( X ) )$ be the classifier, then $\begin{array} { r } { | \mathcal { D } _ { 0 } ( \widehat { Y } = y ) - \mathcal { D } _ { 1 } ( \widehat { Y } = y ) | \le | \gamma _ { 0 } - \widehat { \gamma _ { 1 } } | \cdot \big ( \mathcal { D } ^ { 0 } ( \widehat { Y } = y ) + \mathcal { D } ^ { 1 } ( \widehat { Y } = y ) \big ) , \forall y \in \{ 0 , 1 \} . } \end{array}$
365
+
366
+ Proof. To bound $| \mathcal { D } _ { 0 } ( \widehat { Y } = y ) - \mathcal { D } _ { 1 } ( \widehat { Y } = y ) |$ , for $y \in \{ 0 , 1 \}$ , by the law of total probability, we have:
367
+
368
+ $$
369
+ \begin{array} { r l } & { \mathcal { D } _ { 0 } ( \widehat { Y } = y ) - \mathcal { D } _ { 1 } ( \widehat { Y } = y ) | = } \\ & { \quad = \big | \big ( \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = y ) \mathcal { D } _ { 0 } ( Y = 0 ) + \mathcal { D } _ { 0 } ^ { 1 } ( \widehat { Y } = y ) \mathcal { D } _ { 0 } ( Y = 1 ) \big ) - \big ( \mathcal { D } _ { 1 } ^ { 0 } ( \widehat { Y } = y ) \mathcal { D } _ { 1 } ( Y = 0 ) + \mathcal { D } _ { 1 } ^ { 1 } ( \widehat { Y } = y ) } \\ & { \quad \le \big | \gamma _ { 0 } \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = y ) - \gamma _ { 1 } \mathcal { D } _ { 1 } ^ { 0 } ( \widehat { Y } = y ) \big | + \big | ( 1 - \gamma _ { 0 } ) \mathcal { D } _ { 0 } ^ { 1 } ( \widehat { Y } = y ) - ( 1 - \gamma _ { 1 } ) \mathcal { D } _ { 1 } ^ { 1 } ( \widehat { Y } = y ) \big | , } \end{array}
370
+ $$
371
+
372
+ where the above inequality is due to the triangular inequality. Now apply Proposition 3.1, we know that $\widehat { Y }$ satisfies equalized odds, so we have $\mathcal { D } _ { 0 } ^ { 0 } \big ( \widehat { Y } = y \big ) = \mathcal { D } _ { 1 } ^ { 0 } ( \widehat { Y } = y ) = \mathcal { D } ^ { 0 } ( \widehat { Y } = y )$ and $\mathcal { D } _ { 0 } ^ { 1 } ( \widehat { Y } = y ) = \mathcal { D } _ { 1 } ^ { 1 } ( \widehat { Y } = \overset { \cdot } { y } ) = \mathcal { D } ^ { 1 } ( \widehat { Y } = y )$ , leading to:
373
+
374
+ $$
375
+ \begin{array} { r l } & { = \left| \gamma _ { 0 } - \gamma _ { 1 } \right| \cdot \mathcal { D } ^ { 0 } ( \widehat { Y } = y ) + \left| ( 1 - \gamma _ { 0 } ) - ( 1 - \gamma _ { 1 } ) \right| \cdot \mathcal { D } ^ { 1 } ( \widehat { Y } = y ) } \\ & { = | \gamma _ { 0 } - \gamma _ { 1 } | \cdot \big ( \mathcal { D } ^ { 0 } ( \widehat { Y } = y ) + \mathcal { D } ^ { 1 } ( \widehat { Y } = y ) \big ) , } \end{array}
376
+ $$
377
+
378
+ which completes the proof.
379
+
380
+ # A.4 PROOF OF THEOREM 3.1
381
+
382
+ Theorem 3.1. Assume the conditions in Proposition 3.1 hold and let ${ \widehat { Y } } = h ( g ( X ) )$ be the classifier, then $\Delta _ { \mathrm { D P } } ( \widehat { Y } ) \leq \Delta _ { \mathrm { B R } } ( \mathcal { D } _ { 0 } , \mathcal { D } _ { 1 } ) = \Delta _ { \mathrm { D P } } ( Y )$ .
383
+
384
+ Proof. To bound $\Delta _ { \mathrm { D P } } ( \widehat { Y } )$ , realize that $\begin{array} { r } { | \mathcal { D } _ { 0 } ( \widehat { Y } = 0 ) - \mathcal { D } _ { 1 } ( \widehat { Y } = 0 ) | = | \mathcal { D } _ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } _ { 1 } ( \widehat { Y } = 1 ) | , } \end{array}$ so we can rewrite the DP gap as follows:
385
+
386
+ $$
387
+ \Delta _ { \mathrm { D P } } ( \widehat { Y } ) = \frac { 1 } { 2 } \left( \left| \mathcal { D } _ { 0 } ( \widehat { Y } = 0 ) - \mathcal { D } _ { 1 } ( \widehat { Y } = 0 ) \right| + \left| \mathcal { D } _ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } _ { 1 } ( \widehat { Y } = 1 ) \right| \right) .
388
+ $$
389
+
390
+ Now apply Lemma 3.1 twice for $y = 0$ and $y = 1$ , we have:
391
+
392
+ $$
393
+ \begin{array} { r l } & { | \mathcal { D } _ { 0 } ( \widehat { Y } = 0 ) - \mathcal { D } _ { 1 } ( \widehat { Y } = 0 ) | \le | \gamma _ { 0 } - \gamma _ { 1 } | \cdot \big ( \mathcal { D } ^ { 0 } ( \widehat { Y } = 0 ) + \mathcal { D } ^ { 1 } ( \widehat { Y } = 0 ) \big ) } \\ & { | \mathcal { D } _ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } _ { 1 } ( \widehat { Y } = 1 ) | \le | \gamma _ { 0 } - \gamma _ { 1 } | \cdot \big ( \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 ) + \mathcal { D } ^ { 1 } ( \widehat { Y } = 1 ) \big ) . } \end{array}
394
+ $$
395
+
396
+ Taking sum of the above two inequalities yields
397
+
398
+ $$
399
+ \begin{array} { r l } & { \mathcal { D } _ { 0 } ( \widehat { Y } = 0 ) - \mathcal { D } _ { 1 } ( \widehat { Y } = 0 ) | + | \mathcal { D } _ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } _ { 1 } ( \widehat { Y } = 1 ) | } \\ & { \qquad \le | \gamma _ { 0 } - \gamma _ { 1 } | ( ( \mathcal { D } ^ { 0 } ( \widehat { Y } = 0 ) + \mathcal { D } ^ { 1 } ( \widehat { Y } = 0 ) ) + ( \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 ) + \mathcal { D } ^ { 1 } ( \widehat { Y } = 1 ) ) } \\ & { \qquad = | \gamma _ { 0 } - \gamma _ { 1 } | ( ( \mathcal { D } ^ { 0 } ( \widehat { Y } = 0 ) + \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 ) ) + ( \mathcal { D } ^ { 1 } ( \widehat { Y } = 0 ) + \mathcal { D } ^ { 1 } ( \widehat { Y } = 1 ) ) } \\ & { \qquad = 2 | \gamma _ { 0 } - \gamma _ { 1 } | . } \end{array}
400
+ $$
401
+
402
+ Combining all the inequalities above, we know that
403
+
404
+ $$
405
+ \begin{array} { r l } & { \Delta _ { \mathrm { D P } } ( \widehat { Y } ) = \displaystyle \frac { 1 } { 2 } \left( \left| \mathcal D _ { 0 } ( \widehat { Y } = 0 ) - \mathcal D _ { 1 } ( \widehat { Y } = 0 ) \right| + \left| \mathcal D _ { 0 } ( \widehat { Y } = 1 ) - \mathcal D _ { 1 } ( \widehat { Y } = 1 ) \right| \right) } \\ & { \qquad \leq \left| \gamma _ { 0 } - \gamma _ { 1 } \right| } \\ & { \qquad = \left| \mathcal D _ { 0 } ( Y = 0 ) - \mathcal D _ { 1 } ( Y = 0 ) \right| } \\ & { \qquad = \left| \mathcal D _ { 0 } ( Y = 1 ) - \mathcal D _ { 1 } ( Y = 1 ) \right| } \\ & { \qquad = \Delta _ { \mathrm { B R } } ( \mathcal D _ { 0 } , \mathcal D _ { 1 } ) = \Delta _ { \mathrm { D P } } ( Y ) , } \end{array}
406
+ $$
407
+
408
+ completing the proof.
409
+
410
+ # A.5 PROOF OF THEOREM 3.2
411
+
412
+ Theorem 3.2. Assume the conditions in Proposition 3.1 hold and let ${ \widehat { Y } } = h ( g ( X ) )$ be the classifier, then $\mathrm { E r r } _ { \mathcal { D } _ { 0 } } ( \widehat { Y } ) + \mathrm { E r r } _ { \mathcal { D } _ { 1 } } ( \widehat { Y } ) \le 2 \mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \parallel Y )$ .
413
+
414
+ Proof. First, by the law of total probability, we have:
415
+
416
+ $$
417
+ \begin{array} { r l } & { \mathrm { \ddot { g } r r } _ { \mathcal D _ { 0 } } ( \widehat Y ) + \mathrm { E r r } _ { \mathcal D _ { 1 } } ( \widehat Y ) = \mathcal D _ { 0 } ( Y \ne \widehat Y ) + \mathcal D _ { 1 } ( Y \ne \widehat Y ) } \\ & { \qquad = \mathcal D _ { 0 } ^ { 1 } ( \widehat Y = 0 ) \mathcal D _ { 0 } ( Y = 1 ) + \mathcal D _ { 0 } ^ { 0 } ( \widehat Y = 1 ) \mathcal D _ { 0 } ( Y = 0 ) + \mathcal D _ { 1 } ^ { 1 } ( \widehat Y = 0 ) \mathcal D _ { 1 } ( Y = 1 ) + \mathcal D _ { 1 } ^ { 0 } ( \widehat Y = 1 ) . } \end{array}
418
+ $$
419
+
420
+ Again, by Proposition 3.1, the classifier ${ \widehat { Y } } \ = \ ( h \circ g ) ( X )$ satisfies equalized odds, so we have $\begin{array} { r } D _ { 0 } ^ { \mathrm { { i } } } ( \widehat { Y } \mathrm { ~ ~ \xi ~ } = 0 ) \mathrm { ~ ~ \psi ~ } = \mathcal { D } ^ { 1 } ( \widehat { Y } \mathrm { ~ ~ \psi ~ } = \mathrm { ~ ~ 0 ~ } ) , \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } \mathrm { ~ ~ \psi ~ } = \mathrm { ~ ~ 1 ~ } ) \mathrm { ~ ~ \psi ~ } = \mathcal { D } ^ { 0 } ( \widehat { Y } \mathrm { ~ ~ \psi ~ } = \mathrm { ~ ~ 1 ~ } ) , \mathcal { D } _ { 1 } ^ { 1 } ( \widehat { Y } \mathrm { ~ ~ \psi ~ } = \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ \psi ~ } \mathrm ~ { ~ \psi ~ } \mathrm { ~ ~ \psi ~ } \mathrm { ~ \psi ~ } \mathrm { ~ \psi ~ \psi ~ } \mathrm ~ \end{array}$ $\mathcal { D } _ { 1 } ^ { 1 } ( \widehat { Y } \ = \ 0 ) \ = \ \mathcal { D } ^ { 1 } ( \widehat { Y } \ = \ 0 )$ and $\mathcal { D } _ { 1 } ^ { 0 } ( \widehat { Y } = 1 ) = \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 )$ :
421
+
422
+ $$
423
+ \begin{array} { r l } & { \quad = \mathcal { D } ^ { 1 } ( \widehat { Y } = 0 ) \mathcal { D } _ { 0 } ( Y = 1 ) + \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 ) \mathcal { D } _ { 0 } ( Y = 0 ) + \mathcal { D } ^ { 1 } ( \widehat { Y } = 0 ) \mathcal { D } _ { 1 } ( Y = 1 ) + \mathcal { D } ^ { 0 } ( \widehat { Y } = 0 ) } \\ & { \quad = \mathcal { D } ^ { 1 } ( \widehat { Y } = 0 ) \cdot \big ( \mathcal { D } _ { 0 } ( Y = 1 ) + \mathcal { D } _ { 1 } ( Y = 1 ) \big ) + \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 ) \cdot \big ( \mathcal { D } _ { 0 } ( Y = 0 ) + \mathcal { D } _ { 1 } ( Y = 0 ) \big ) } \\ & { \quad \le 2 \mathcal { D } ^ { 1 } ( \widehat { Y } = 0 ) + 2 \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 ) } \\ & { \quad = 2 \mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \mid \mid Y ) , } \end{array}
424
+ $$
425
+
426
+ which completes the proof.
427
+
428
+ # A.6 PROOF OF THEOREM 3.3
429
+
430
+ Theorem 3.3. For any classifier $\widehat { Y } , \Delta _ { \mathrm { E r r } } ( \widehat { Y } ) \leq \Delta _ { \mathrm { B R } } ( \mathcal { D } _ { 0 } , \mathcal { D } _ { 1 } ) \cdot \mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \parallel Y ) + 2 \Delta _ { \mathrm { E O } } ( \widehat { Y } ) .$
431
+
432
+ Before we give the proof of Theorem 3.3, we first prove the following two lemmas that will be used in the following proof.
433
+
434
+ Lemma A.1. Define $\gamma _ { a } : = \mathcal { D } _ { a } ( Y = 0 ) , \forall a \in \{ 0 , 1 \}$ , then $| \gamma _ { 0 } { \mathcal { D } } _ { 0 } ^ { 0 } ( { \widehat { Y } } = 1 ) - \gamma _ { 1 } { \mathcal { D } } _ { 1 } ^ { 0 } ( { \widehat { Y } } = 1 ) | \ \leq$ $\vert \gamma _ { 0 } - \gamma _ { 1 } \vert \cdot \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 ) + \gamma _ { 0 } \mathcal { D } ^ { 0 } ( A = 1 ) \Delta _ { \mathrm { E O } } ( \widehat { Y } ) + \gamma _ { 1 } \mathcal { D } ^ { 0 } ( A = 0 ) \Delta _ { \mathrm { E O } } ( \widehat { Y } ) .$
435
+
436
+ Proof. In order to prove the upper bound in the lemma, it suffices if we could give the desired upper bound for the following term
437
+
438
+ $$
439
+ \begin{array} { r l } & { \left| \big | \gamma _ { 0 } \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) - \gamma _ { 1 } \mathcal { D } _ { 1 } ^ { 0 } ( \widehat { Y } = 1 ) \big | - | ( \gamma _ { 0 } - \gamma _ { 1 } ) \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 ) | \right| } \\ & { \leq \left| \left( \gamma _ { 0 } \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) - \gamma _ { 1 } \mathcal { D } _ { 1 } ^ { 0 } ( \widehat { Y } = 1 ) \right) - ( \gamma _ { 0 } - \gamma _ { 1 } ) \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 ) \right| } \\ & { = \Big | \gamma _ { 0 } ( \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 ) ) - \gamma _ { 1 } ( \mathcal { D } _ { 1 } ^ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 ) ) \Big | , } \end{array}
440
+ $$
441
+
442
+ following which we will have:
443
+
444
+ $$
445
+ \begin{array} { r l } & { \gamma _ { 0 } { \mathcal D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) - \gamma _ { 1 } { \mathcal D } _ { 1 } ^ { 0 } ( \widehat { Y } = 1 ) | \leq | ( \gamma _ { 0 } - \gamma _ { 1 } ) { \mathcal D } ^ { 0 } ( \widehat { Y } = 1 ) | } \\ & { \qquad + \left| \gamma _ { 0 } ( { \mathcal D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) - { \mathcal D } ^ { 0 } ( \widehat { Y } = 1 ) ) - \gamma _ { 1 } ( { \mathcal D } _ { 1 } ^ { 0 } ( \widehat { Y } = 1 ) - { \mathcal D } ^ { 0 } ( \widehat { Y } = 1 ) ) \right| } \end{array}
446
+ $$
447
+
448
+ and an application of the Bayes formula could finish the proof. To do so, let us first simplify $\mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = \dot { 1 } ) - \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 )$ . Applying the Bayes’s formula, we know that:
449
+
450
+ $$
451
+ \begin{array} { r l } & { \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 ) = \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) - \big ( \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) \mathcal { D } ^ { 0 } ( A = 0 ) + \mathcal { D } _ { 1 } ^ { 0 } ( \widehat { Y } = 1 ) \mathcal { D } ^ { 0 } ( A = 1 ) \big ) } \\ & { \qquad = \big ( \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) \mathcal { D } ^ { 0 } ( A = 0 ) \big ) - \mathcal { D } _ { 1 } ^ { 0 } ( \widehat { Y } = 1 ) \mathcal { D } ^ { 0 } ( A = 1 ) } \\ & { \qquad = \mathcal { D } ^ { 0 } ( A = 1 ) \big ( \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } _ { 1 } ^ { 0 } ( \widehat { Y } = 1 ) \big ) . } \end{array}
452
+ $$
453
+
454
+ Similarly, for the second term $\mathcal { D } _ { 1 } ^ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 )$ , we can show that:
455
+
456
+ Plug these two identities into above, we can continue the analysis with
457
+
458
+ $$
459
+ \begin{array} { r l } & { \Big | \gamma _ { 0 } ( \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 ) ) - \gamma _ { 1 } ( \mathcal { D } _ { 1 } ^ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 ) ) \Big | } \\ & { = \Big | \gamma _ { 0 } \mathcal { D } ^ { 0 } ( A = 1 ) ( \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } _ { 1 } ^ { 0 } ( \widehat { Y } = 1 ) ) - \gamma _ { 1 } \mathcal { D } ^ { 0 } ( A = 0 ) ( \mathcal { D } _ { 1 } ^ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) ) \Big | } \\ & { \le \Big | \gamma _ { 0 } \mathcal { D } ^ { 0 } ( A = 1 ) ( \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } _ { 1 } ^ { 0 } ( \widehat { Y } = 1 ) ) \Big | + \Big | \gamma _ { 1 } \mathcal { D } ^ { 0 } ( A = 0 ) ( \mathcal { D } _ { 1 } ^ { 0 } ( \widehat { Y } = 1 ) - \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) ) \Big | } \\ & { \le \gamma _ { 0 } \mathcal { D } ^ { 0 } ( A = 1 ) \Delta _ { \mathrm { E O } } ( \widehat { Y } ) + \gamma _ { 1 } \mathcal { D } ^ { 0 } ( A = 0 ) \Delta _ { \mathrm { E O } } ( \widehat { Y } ) . } \end{array}
460
+ $$
461
+
462
+ The first inequality holds by triangular inequality and the second one holds by the definition of equalized odds gap.
463
+
464
+ Lemma A.2. Define $\gamma _ { a } : = { \mathscr { D } } _ { a } ( Y = 0 ) , \forall a \in \{ 0 , 1 \}$ , then $| ( 1 - \gamma _ { 0 } ) \mathcal { D } _ { 0 } ^ { 1 } ( \widehat { Y } = 0 ) - ( 1 - \gamma _ { 1 } ) \mathcal { D } _ { 1 } ^ { 1 } ( \widehat { Y } =$ $0 ) | \leq | \gamma _ { 0 } - \gamma _ { 1 } | \cdot \mathcal { D } ^ { 1 } ( \widehat { Y } = 0 ) + ( 1 - \gamma _ { 0 } ) \mathcal { D } ^ { 1 } ( A = 1 ) \Delta _ { \mathrm { E O } } ( \widehat { Y } ) + ( 1 - \gamma _ { 1 } ) \mathcal { D } ^ { 1 } ( A = 0 ) \Delta _ { \mathrm { E O } } ( \widehat { Y } ) .$ .
465
+
466
+ Proof. The proof of this lemma is symmetric to the previous one, so we omit it here.
467
+
468
+ Now we are ready to prove Theorem 3.3:
469
+
470
+ Proof of Theorem 3.3. First, by the law of total probability, it is easy to verify that following identity holds for $a \in \{ 0 , 1 \}$ :
471
+
472
+ $$
473
+ \begin{array} { c } { { \mathcal { D } _ { a } ( \widehat { Y } \mathrm { ~ \neq ~ } Y ) = \mathcal { D } _ { a } ( Y = 1 , \widehat { Y } = 0 ) + \mathcal { D } _ { a } ( Y = 0 , \widehat { Y } = 1 ) } } \\ { { \mathrm { ~ \neq ~ } ( 1 - \gamma _ { a } ) \mathcal { D } _ { a } ^ { 1 } ( \widehat { Y } = 0 ) + \gamma _ { a } \mathcal { D } _ { a } ^ { 0 } ( \widehat { Y } = 1 ) . } } \end{array}
474
+ $$
475
+
476
+ Using this identity, to bound the error gap, we have:
477
+
478
+ $$
479
+ \begin{array} { r l } & { { \mathcal D } _ { 0 } ( Y \ne \hat { Y } ) - { \mathcal D } _ { 1 } ( Y \ne \hat { Y } ) | = \big | ( ( 1 - \gamma _ { 0 } ) { \mathcal D } _ { 0 } ^ { 1 } ( \widehat { Y } = 0 ) + \gamma _ { 0 } { \mathcal D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) ) - ( ( 1 - \gamma _ { 1 } ) { \mathcal D } _ { 1 } ^ { 1 } ( \widehat { Y } = 0 ) + \gamma _ { 1 } } \\ & { \qquad \le \big | \gamma _ { 0 } { \mathcal D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) - \gamma _ { 1 } { \mathcal D } _ { 1 } ^ { 0 } ( \widehat { Y } = 1 ) \big | + \big | ( 1 - \gamma _ { 0 } ) { \mathcal D } _ { 0 } ^ { 1 } ( \widehat { Y } = 0 ) - ( 1 - \gamma _ { 1 } ) { \mathcal D } _ { 1 } ^ { 1 } ( \widehat { Y } = 0 ) \big | . } \end{array}
480
+ $$
481
+
482
+ Invoke Lemma A.1 and Lemma A.2 to bound the above two terms:
483
+
484
+ $$
485
+ \begin{array} { r l } & { | \mathcal { D } _ { 0 } ( Y \neq \widehat { Y } ) - \mathcal { D } _ { 1 } ( Y \neq \widehat { Y } ) | } \\ & { \qquad \leq | \gamma _ { 0 } \mathcal { D } _ { 0 } ^ { 0 } ( \widehat { Y } = 1 ) - \gamma _ { 1 } \mathcal { D } _ { 1 } ^ { 0 } ( \widehat { Y } = 1 ) | + | ( 1 - \gamma _ { 0 } ) \mathcal { D } _ { 0 } ^ { 1 } ( \widehat { Y } = 0 ) - ( 1 - \gamma _ { 1 } ) \mathcal { D } _ { 1 } ^ { 1 } ( \widehat { Y } = 0 ) | } \\ & { \qquad \leq \gamma _ { 0 } \mathcal { D } ^ { 0 } ( A = 1 ) \Delta _ { \mathrm { E O } } ( \widehat { Y } ) + \gamma _ { 1 } \mathcal { D } ^ { 0 } ( A = 0 ) \Delta _ { \mathrm { E O } } ( \widehat { Y } ) } \\ & { \qquad + ( 1 - \gamma _ { 0 } ) \mathcal { D } ^ { 1 } ( A = 1 ) \Delta _ { \mathrm { E O } } ( \widehat { Y } ) + ( 1 - \gamma _ { 1 } ) \mathcal { D } ^ { 1 } ( A = 0 ) \Delta _ { \mathrm { E O } } ( \widehat { Y } ) } \\ & { \qquad + | \gamma _ { 0 } - \gamma _ { 1 } | \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 ) + | \gamma _ { 0 } - \gamma _ { 1 } | \mathcal { D } ^ { 1 } ( \widehat { Y } = 0 ) , } \end{array}
486
+ $$
487
+
488
+ Realize that both $\gamma _ { 0 } , \gamma _ { 1 } \in [ 0 , 1 ]$ , we have:
489
+
490
+ $$
491
+ \begin{array} { r l } & { \leq \mathcal { D } ^ { 0 } ( A = 1 ) \Delta _ { \mathrm { E O } } ( \widehat { Y } ) + \mathcal { D } ^ { 0 } ( A = 0 ) \Delta _ { \mathrm { E O } } ( \widehat { Y } ) + \mathcal { D } ^ { 1 } ( A = 1 ) \Delta _ { \mathrm { E O } } ( \widehat { Y } ) + \mathcal { D } ^ { 1 } ( A = 0 ) \Delta _ { \mathrm { E O } } ( \widehat { Y } ) } \\ & { + \left. \gamma _ { 0 } - \gamma _ { 1 } \right. \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 ) + \left. \gamma _ { 0 } - \gamma _ { 1 } \right. \mathcal { D } ^ { 1 } ( \widehat { Y } = 0 ) } \\ & { = 2 \Delta _ { \mathrm { E O } } ( \widehat { Y } ) + \left. \gamma _ { 0 } - \gamma _ { 1 } \right. \mathcal { D } ^ { 0 } ( \widehat { Y } = 1 ) + \left. \gamma _ { 0 } - \gamma _ { 1 } \right. \mathcal { D } ^ { 1 } ( \widehat { Y } = 0 ) } \\ & { = 2 \Delta _ { \mathrm { E O } } ( \widehat { Y } ) + \Delta _ { \mathrm { B R } } ( \mathcal { D } _ { 0 } , \mathcal { D } _ { 1 } ) \cdot \mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \parallel Y ) , } \end{array}
492
+ $$
493
+
494
+ which completes the proof.
495
+
496
+ We also provide the proof of Corollary 3.1:
497
+
498
+ Corollary 3.1. For any joint distribution $\mathcal { D }$ and classifier $\widehat { Y }$ , if $\widehat { Y }$ satisfies equalized odds, then $\operatorname* { m a x } \{ \mathrm { E r r } _ { \mathcal { D } _ { 0 } } ( \widehat { Y } ) , \mathrm { E r r } _ { \mathcal { D } _ { 1 } } ( \widehat { Y } ) \} \le \Delta _ { \mathrm { B R } } ( { \mathcal { D } _ { 0 } } , { \mathcal { D } _ { 1 } } ) \cdot \mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \mid | Y ) / 2 + \mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \mid | Y ) .$
499
+
500
+ Proof. We first invoke Theorem 3.3, if $\widehat { Y }$ satisfies equalized odds, then $\Delta _ { \mathrm { E O } } ( \widehat { Y } ) = 0$ , which implies:
501
+
502
+ $$
503
+ \Delta _ { \mathrm { E r r } } ( \widehat { Y } ) = \left| \mathrm { E r r } _ { \mathcal { D } _ { 0 } } ( \widehat { Y } ) - \mathrm { E r r } _ { \mathcal { D } _ { 1 } } ( \widehat { Y } ) \right| \leq \Delta _ { \mathrm { B R } } ( \mathcal { D } _ { 0 } , \mathcal { D } _ { 1 } ) \cdot \mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \parallel Y ) .
504
+ $$
505
+
506
+ On the other hand, by Theorem 3.2, we know that
507
+
508
+ $$
509
+ \mathrm { E r r } _ { \mathscr { D } _ { 0 } } ( \widehat { Y } ) + \mathrm { E r r } _ { \mathscr { D } _ { 1 } } ( \widehat { Y } ) \leq 2 \mathrm { B E R } _ { \mathscr { D } } ( \widehat { Y } \parallel Y ) .
510
+ $$
511
+
512
+ Combine the above two inequalities and recall that $\begin{array} { r } { \operatorname* { m a x } \{ a , b \} = ( | a + b | + | a - b | ) / 2 , \forall a , b \in \mathbb { R } , } \end{array}$ yielding:
513
+
514
+ $$
515
+ \begin{array} { r } { \operatorname* { m a x } \{ \mathrm { E r r } _ { \mathcal { D } _ { 0 } } ( \widehat { Y } ) , \mathrm { E r r } _ { \mathcal { D } _ { 1 } } ( \widehat { Y } ) \} = \frac { \left| \mathrm { E r r } _ { \mathcal { D } _ { 0 } } ( \widehat { Y } ) - \mathrm { E r r } _ { \mathcal { D } _ { 1 } } ( \widehat { Y } ) \right| + \left| \mathrm { E r r } _ { \mathcal { D } _ { 0 } } ( \widehat { Y } ) + \mathrm { E r r } _ { \mathcal { D } _ { 1 } } ( \widehat { Y } ) \right| } { 2 } } \\ { \leq \frac { \Delta _ { \mathrm { B R } } ( \mathcal { D } _ { 0 } , \mathcal { D } _ { 1 } ) \cdot \mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \mid \mid Y ) + 2 \mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \mid \mid Y ) } { 2 } } \\ { = \Delta _ { \mathrm { B R } } ( \mathcal { D } _ { 0 } , \mathcal { D } _ { 1 } ) \cdot \mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \mid \mid Y ) / 2 + \mathrm { B E R } _ { \mathcal { D } } ( \widehat { Y } \mid \mid Y ) , } \end{array}
516
+ $$
517
+
518
+ completing the proof.
519
+
520
+ # B EXPERIMENTAL DETAILS
521
+
522
+ # B.1 THE ADULT EXPERIMENT
523
+
524
+ For the baseline network NODEBIAS, we implement a three-layer neural network with ReLU as the hidden activation function and logistic regression as the target output function. The input layer contains 114 units, and the hidden layer contains 60 hidden units. The output layer only contain one unit, whose output is interpreted as the probability of $\mathcal { D } ( \widehat { Y } = 1 \mid X = x )$ .
525
+
526
+ For the adversary in FAIR and LAFTR, again, we use a three-layer feed-forward network. Specifically, the input layer of the adversary is the hidden representations of the baseline network that contains 60 units. The hidden layer of the adversary network contains 50 units, with ReLU activation. Finally, the output of the adversary also contains one unit, representing the adversary’s inference probability ${ \mathcal { D } } ( { \widehat { A } } = 1 \mid Z = z )$ . The network structure of the adversaries in both CFAIR and CFAIR-EO are exactly the same as the one used in FAIR and LAFTR, except that there are two adversaries, one for ${ \mathcal { D } } ^ { 0 } ( { \widehat { A } } = 1 \mid Z = z )$ and one for ${ \mathcal { D } } ^ { 1 } ( \widehat { A } = 1 | Z = z )$ .
527
+
528
+ The hyperparameters used in the experiment are listed in Table 2.
529
+
530
+ Table 2: Hyperparameters used in the Adult experiment.
531
+
532
+ <table><tr><td>Optimization Algorithm</td><td>AdaDelta</td></tr><tr><td>Learning Rate</td><td>1.0</td></tr><tr><td>Batch Size</td><td>512</td></tr><tr><td>Training Ep0chs 入 ∈ {0.1,1.0,10.0,100.0,1000.0}</td><td>100</td></tr></table>
533
+
534
+ # B.2 THE COMPAS EXPERIMENT
535
+
536
+ Again, for the baseline network NODEBIAS, we implement a three-layer neural network with ReLU as the hidden activation function and logistic regression as the target output function. The input layer contains 11 units, and the hidden layer contains 10 hidden units. The output layer only contain one unit, whose output is interpreted as the probability of ${ \mathcal { D } } ( { \widehat { Y } } = 1 \mid X = x )$ .
537
+
538
+ For the adversary in FAIR and LAFTR, again, we use a three-layer feed-forward network. Specifically, the input layer of the adversary is the hidden representations of the baseline network that contains 60 units. The hidden layer of the adversary network contains 10 units, with ReLU activation. Finally, the output of the adversary also contains one unit, representing the adversary’s inference probability ${ \mathcal { D } } ( { \widehat { A } } = 1 \mid Z = z )$ . The network structure of the adversaries in both CFAIR and CFAIR-EO are exactly the same as the one used in FAIR and LAFTR, except that there are two adversaries, one for ${ \mathcal { D } } ^ { 0 } ( { \widehat { A } } = 1 \mid Z = z )$ and one for ${ \mathcal { D } } ^ { 1 } ( \widehat { A } = 1 | Z = z )$ .
539
+
540
+ The hyperparameters used in the experiment are listed in Table 3.
541
+
542
+ Table 3: Hyperparameters used in the COMPAS experiment.
543
+
544
+ <table><tr><td>Optimization Algorithm Learning Rate Batch Size Training Epochs 入∈ {0.1,1.0} Training Epochs 入= 10.0 15</td><td>AdaDelta 1.0 512 20</td></tr></table>
parse/train/Hkekl0NFPr/Hkekl0NFPr_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/TV9INIrmtWN/TV9INIrmtWN.md ADDED
@@ -0,0 +1,391 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HARD ATTENTION CONTROL BY MUTUAL INFORMATION MAXIMIZATION
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Biological agents have adopted the principle of attention to limit the rate of incoming information from the environment. One question that arises is if an artificial agent has access to only a limited view of its surroundings, how can it control its attention to effectively solve tasks? We propose an approach for learning how to control a hard attention window by maximizing the mutual information between the environment state and the attention location at each step. The agent employs an internal world model to make predictions about its state and focuses attention towards where the predictions may be wrong. Attention is trained jointly with a dynamic memory architecture that stores partial observations and keeps track of the unobserved state. We demonstrate that our approach is effective in predicting the full state from a sequence of partial observations. We also show that the agent’s internal representation of the surroundings, a live mental map, can be used for control in two partially observable reinforcement learning tasks. Videos of the trained agent can be found at https://sites.google.com/view/hard-attention-control.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Reinforcement learning (RL) algorithms have successfully employed neural networks over the past few years, surpassing human level performance in many tasks (Mnih et al., 2015; Silver et al., 2017; Berner et al., 2019; Schulman et al., 2017). But a key difference in the way tasks are performed by humans versus RL algorithms is that humans have the ability to focus on parts of the state at a time, using attention to limit the amount of information gathered at every step. We actively control our attention to build an internal representation of our surroundings over multiple fixations (Fourtassi et al., 2017; Barrouillet et al., 2004; Yarbus, 2013; Itti, 2005). We also use memory and internal world models to predict motions of dynamic objects in the scene when they are not under direct observation (Bosco et al., 2012). By limiting the amount of input information in these two ways, i.e. directing attention only where needed and internally modeling the rest of the environment, we are able to be more efficient in terms of data that needs to be collected from the environment and processed at each time step.
12
+
13
+ ![](images/d6707bda87abc67308d0b23dca6be6c3e5da4d8361981355bd723cb070b529c9.jpg)
14
+ Figure 1: Illustration of the PhysEnv domain (Du & Narasimhan, 2019). Here, the agent (dark blue) needs to navigate to the goal (red) while avoiding enemies (light blue). Typically the full environment states (top) are provided to the RL algorithm to learn. We consider the case where only observations from under a hard attention window (bottom) are available. The attention’s location (yellow square) at each time step is controllable by the agent. Using only partial observations, the agent must learn to represent its surroundings and complete its task.
15
+
16
+ By contrast, modern reinforcement learning methods often operate on the entire state. Observing the entire state simultaneously may be difficult in realistic environments. Consider an embodied agent that must actuate its camera to gather visual information about its surroundings learning how to cross a busy street. At every moment, there are different objects in the environment competing for its attention. The agent needs to learn to look left and right to store locations, heading, and speed of nearby vehicles, and perhaps other pedestrians. It must learn to create a live map of its surroundings, frequently checking back on moving objects to update their dynamics. In other words, the agent must learn to selectively move its attention so as to maximize the amount of information it collects from the environment at a time, while internally modeling motions of the other, more predictable parts of the state. Its internal representation, built using successive glimpses, must be sufficient to learn how to complete tasks in this partially observable environment.
17
+
18
+ We consider the problem of acting in an environment that is only partially observable through a controllable, fixed-size, hard attention window (see figure 1). Only the part of the state that is under the attention window is available to the agent as its observation. The rest must be inferred from previous observations and experience. We assume that the location of the attention window at every time step is under control of the agent and its size compared to the full environment state is known to the agent. We distinguish this task from that of learning soft attention (Vaswani et al., 2017), where the full state is attended to, weighted by a vector, and then fed into subsequent layers. Our system must learn to 1) decide where to place the attention in order to gather more information about its surroundings, 2) record the observation made into an internal memory and model the motion within parts of the state that were unobserved, and 3) use this internal representation to learn how to solve its task within the environment.
19
+
20
+ Our approach for controlling attention uses RL to maximize an information theoretic objective closely related to the notion of surprise or novelty (Schmidhuber, 1991). It is unsupervised in terms of environment rewards, i.e. it can be trained on offline data (states and actions) without knowing the task or related rewards. We discuss this in more detail in section 5. Memory also plays a crucial role in allowing agents to solve tasks in partially observable environments. We pair our attention control mechanism with a memory architecture inspired largely by Du & Narasimhan (2019)’s SpatialNet, but modified to work in partially observable domains. This is described in section 4. Empirically, we show in section 6.1 that our system is able to reconstruct the full state image including dynamic objects at all time steps given only partial observations. Further, we show in section 6.2 that the internal representation built by our attention control mechanism and memory architecture is sufficient for the agent to learn to solve tasks in this challenging partially observable environment.
21
+
22
+ # 2 RELATED WORKS
23
+
24
+ Using hard attention for image classification or object recognition is well studied in computer vision (Alexe et al., 2012; Butko & Movellan, 2009; Larochelle & Hinton, 2010; Paletta et al., 2005; Zoran et al., 2020; Welleck et al., 2017). Attention allows for processing only the salient or interesting parts of the image (Itti et al., 1998). Similarly, attention control has been applied to tracking objects within a video (Denil et al., 2012; Kamkar et al., 2020; Yu et al., 2020). Surprisingly, not a lot of recent work exists on the topic of hard attention control in reinforcement learning domains, where a sequential decision making task has to be solved by using partial observations from under the attention.
25
+
26
+ Mnih et al. (2014) proposed a framework for hard attention control in the classification setting and a simple reinforcement learning task. Their approach consists of using environment rewards to train an attention control RL agent. Our approach differs mainly in that we train the attention control using our novel information theoretic objective as reward. Mnih et al. (2014)’s approach leads to a task specific policy for attention control, whereas our approach is unsupervised in terms of the task and can be applied generally to downstream tasks in the environment. Our approach also differs in that we use a memory architecture that is more suited to partially observable tasks with 2D images as input, compared to a RNN used by Mnih et al. (2014).
27
+
28
+ There has been much prior work on memory and world models for reinforcement learning (Ha & Schmidhuber, 2018; Graves et al., 2016; Hausknecht & Stone, 2015; Khan et al., 2017). The work closest to our own is Du & Narasimhan (2019)’s SpatialNet, which attempts to learn a task-agnostic world model for multi-task settings. Our memory architecture is largely inspired by SpatialNet and adapted to work in the partially observable setting. We also use their PhysEnv environment to evaluate our approach. Closely related work is Neural Map (Parisotto & Salakhutdinov, 2017), which uses a structured 2D memory map to store information about the environment. Their approach also applies to partially observable RL tasks, but the attention is fixed to the agent. In contrast, we consider the problem of learning to control an attention window that can move independently of the agent location. Recently, Freeman et al. (2019) showed that world models can be learnt by simply limiting the agent’s ability to observe the environment. They apply observational dropout, where the output of the agent’s world model, rather than the environment state, is occasionally provided to the policy. We consider the related scenario where only a part of the true environment state is provided to the agent at each time step and the rest must be modeled using previous observations.
29
+
30
+ Finally, mutual information has been used to train self-supervised RL agents. This line of work originates in curiosity driven and intrinsically motivated RL (Schmidhuber, 1991; Pathak et al., 2017; Bellemare et al., 2016). Typically, some notion of predictive error or novelty about an aspect of the environment is optimized in lieu of environment rewards. Multiple papers have successfully used different formulations of mutual information to learn how to efficiently explore the environment without extrinsic rewards (Mohamed & Rezende, 2015; Houthooft et al., 2016; Achiam et al., 2018; Gregor et al., 2016; Eysenbach et al., 2018; Sharma et al., 2019). We apply the idea of using mutual information to the problem of curiosity driven attention control.
31
+
32
+ # 3 PRELIMINARIES
33
+
34
+ In this work, we are concerned with tasks solved using reinforcement learning (RL). RL is the study of agents acting in an environment to maximize some notion of long term utility. It is almost always formalized using the language of Markov decision problems (MDPs). States, actions, rewards and transitions form the components of an MDP, often represented as the tuple $\langle S , A , R , T \rangle$ . Maximizing the expected sum of (discounted) rewards over rollouts in the environment is usually set as the objective of learning. Once a problem is formulated as an MDP, such that the components $\langle S , A , R , T \rangle$ are well defined, one can apply a range of model-free RL algorithms to attempt to solve it (Schulman et al., 2017; Mnih et al., 2016; Wu et al., 2017). A solution to an MDP is typically sought as an optimal policy, $\pi ^ { * } : S A$ , which is a function that maps every state to an action that maximizes the long term expected rewards. In this section, we will attempt to formalize the components of the partially observable reinforcement learning problem under study.
35
+
36
+ # 3.1 INTERNAL REPRESENTATION
37
+
38
+ ![](images/7d3892123220a2471b3b98f0b35abb357f6151636242067b3385ba55b94cce43.jpg)
39
+ Figure 2: The agent starts with a representation $\left( \mu _ { t } \right)$ from which it attempts a reconstruction $\left( \tau _ { t } \right)$ of the likely current full (unobserved) state $s _ { t }$ . Then, it picks an attention location $\left( l _ { t } \right)$ and receives an observation of the state from under the attention $\left( o _ { t } \right)$ . We assume that the size of the attention window is known to the agent. The observation is written into $\mu _ { t }$ to form $\mu _ { t } ^ { w }$ . The entire map is then stepped through an internal world model to update the dynamical objects, forming $\mu _ { t + 1 }$ , the representation for the next step.
40
+
41
+ First, we give a brief description of how the agent stores observations in an internal representation of its surroundings (figure 2). An map $( \mu )$ tracks the full environment state (s), which is never directly observed. The map is empty at the start of the episode and gets sequentially written into as observations are made. The agent also creates a reconstruction of the full state $( \tau )$ at every time step based on its map. This will become useful later for training. For now, it suffices that $\mu _ { t }$ is the map before an observation is made and $\mu _ { t } ^ { w }$ is the one after the observation is made. $\mu _ { t + 1 }$ is the map after the dynamics of the system for the next time step are taken into account.
42
+
43
+ # 3.2 THE TWO AGENTS
44
+
45
+ We formulate the solutions to controlling the attention at every time step and completing the environment task as two separate reinforcement learning agents. The attention location is controlled by the glimpse agent (the eye in figure 2), and actions within the environment are taken by the regular agent. These two agents have their own separate MDPs with their $\langle S , A , R \rangle$ tuples defined below.
46
+
47
+ The glimpse agent’s state at every timestep is $\mu _ { t }$ . Its set of actions is all possible attention locations within the full state (Width $\times$ Height actions). Its reward is based on the information theoretic objective discussed in section 5. Thus, the glimpse agent is provided the map before an observation is made and it must decide where the observation should be made from in order to optimize its reward.
48
+
49
+ The environment agent acting in the environment receives as input $\mu _ { t } ^ { w }$ , i.e. the internal representation after the observation has been recorded. Its actions are the normal set of actions in the environment and its reward is the normal environment reward. We emphasize that neither agent has access to the full state at any time. They must both act based on the internal representation alone. They also cannot make multiple observations from the same environment state. Once an observation is made, an action must be selected that will change the environment state. In the next section, we will describe in detail how $\mu _ { t } ^ { w }$ , $\mu _ { t + 1 }$ and $\tau _ { t }$ are formed and how the internal map is trained through a sequence of partial observations.
50
+
51
+ # 4 DYNAMIC MEMORY MAP
52
+
53
+ Memory plays a critical role in enabling agents to act in partially observable environments. It allows the agent to remember parts of the state that are not under direct observation. Along with memory, the agent must be able to model the dynamics of objects in its environment, as it may not receive observation of them for long periods. Finally, the effect of its own actions must be reflected in its belief about the environment. For this purpose, we design a special recurrent memory unit for visual environments called the Dynamic Memory Map (DMM). DMM is inspired largely by Du & Narasimhan (2019)’s work on SpatialNet, but modified to handle partial observations and work in tandem with the glimpse agent.
54
+
55
+ # 4.1 MEMORY MODULES
56
+
57
+ The DMM consists of three major modules: write, step and reconstruct.
58
+
59
+ Write. This module encodes an incoming observation, $o _ { t }$ , into the current memory representation, $\mu _ { t }$ . The observation is first passed through a series of convolutional operations, $W$ , possibly downsampling it for a more efficient representation. Then it is blended with $\mu$ using a series of convolutions, $B$ . Finally it is written into the memory but only in the locations where the observation was made, leaving the rest of the memory intact. The write operation can be written as:
60
+
61
+ $$
62
+ \mu _ { t } ^ { w } = C _ { t } * B ( W ( o _ { t } ) , \mu _ { t } ) + ( 1 - C _ { t } ) * \mu _ { t }
63
+ $$
64
+
65
+ where $C _ { t }$ is a mask which is 1 under the attention window and 0 otherwise.
66
+
67
+ Step. This module is responsible for modeling the dynamics of the environment and updating the memory to track the full state from one time step to the next. Objects in the environment can be static or dynamic and may be affected by the agent’s own actions. This module is implemented as a residual network, $S$ , similar to SpatialNet (Du & Narasimhan, 2019). We additionally condition $S$ on the agent’s own action $a _ { t }$ . The entire map is updated at each time step to ensure that objects observed previously are also updated to new likely locations.
68
+
69
+ $$
70
+ \mu _ { t + 1 } = \mu _ { t } + S ( \mu _ { t } ^ { w } , a _ { t } )
71
+ $$
72
+
73
+ Reconstruct. This module converts the memory representation to a reconstruction of the full state using a series of deconvolutions $( R )$ .
74
+
75
+ $$
76
+ \tau _ { t } = R ( \mu _ { t } )
77
+ $$
78
+
79
+ A reconstruction can also be made immediately after the observation, i.e. $\tau _ { t } ^ { w } = R ( \mu _ { t } ^ { w } )$ . Reconstruction is essential for training the other two modules of DMM as we explain in section 4.2. The reconstruction error, or the discrepancy between the observation and the reconstruction under the attention window can be back-propagated through the write and step layers.
80
+
81
+ # 4.2 TRAINING LOSS
82
+
83
+ The write loss, $L _ { w }$ is incurred under the current attention window immediately after the observation is made into $\mu _ { t } ^ { w }$ . This ensures that the immediate observation is correctly encoded into the memory and trains the write and reconstruction modules.
84
+
85
+ $$
86
+ L _ { w } = C _ { t } * \lvert \lvert \tau _ { t } ^ { w } - o _ { t } \rvert \rvert _ { 2 } .
87
+ $$
88
+
89
+ The step loss, $L _ { s }$ is incurred after stepping the map and under the attention window in the next step.
90
+
91
+ $$
92
+ L _ { s } = C _ { t + 1 } * \lvert \lvert \tau _ { t + 1 } - o _ { t + 1 } \rvert \rvert _ { 2 } .
93
+ $$
94
+
95
+ This trains the step module, $S$ , to accurately model the motion of objects in the entire state, so that a faithful representation of the state can be guessed before the next observation is taken. Once the next observation is made, we can calculate the difference between what the agent’s model expected to be at the glimpse location and what actually was there. In figure 2 this is the difference between the images under the yellow rectangle in $\tau _ { t }$ and $o _ { t }$ . This quantity is the amount of surprise in the dynamics model and we will use this again when training the glimpse agent.
96
+
97
+ In addition to the reconstruction loss, the absolute value of the output by the write and step modules is also penalized in order to regularize the contents of the DMM. The total loss for a single step within the rollout is (where $\alpha = \beta = 0 . 0 1$ here):
98
+
99
+ $$
100
+ L _ { t } = L _ { w } + L _ { s } + \alpha * C _ { t } * | \mu _ { t } ^ { w } | + \beta * | S ( \mu _ { t } ^ { w } , a _ { t } ) | .
101
+ $$
102
+
103
+ We sum this loss over the entire rollout and jointly minimize it over all steps. The reconstruction error at every location can be back-propagated to the step an observation was recorded there.
104
+
105
+ # 5 MAXIMIZING MUTUAL INFORMATION TO CONTROL ATTENTION
106
+
107
+ The intuition behind our approach is that attention should be used to gather information from the environment when and where it is required. The DMM is constantly modeling its environment and attention should be directed to parts of the world where the model is uncertain. This directly informs the agent about difficult to model parts of the environment, thus reducing uncertainty in the state as a whole. Secondly, by focusing on areas with hard to predict dynamics, more data can be collected from those areas, updating the model for future predictions.
108
+
109
+ # 5.1 MUTUAL INFORMATION OBJECTIVE
110
+
111
+ The idea of reducing uncertainty about the environment can be captured in the language of information theory by using mutual information. Specifically, we propose selecting the location of the attention such that its mutual information with the state at the following step is maximized,
112
+
113
+ $$
114
+ \operatorname* { m a x } _ { l _ { t } } I ( s _ { t + 1 } ; l _ { t } ) .
115
+ $$
116
+
117
+ Where $l _ { t }$ is the location of the attention window at time $t$ . Eq. 1 can be expanded as
118
+
119
+ $$
120
+ \operatorname* { m a x } _ { l _ { t } } \mathcal { H } ( s _ { t + 1 } ) - \mathcal { H } ( s _ { t + 1 } | l _ { t } ) ,
121
+ $$
122
+
123
+ where $\mathcal { H }$ denotes the entropy. This expansion brings out a very intuitive explanation of the objective. We would like to pick an attention location that maximizes the reduction in entropy (uncertainty) of the environment state after an observation is made.
124
+
125
+ # 5.2 CURIOSITY DRIVEN ATTENTION
126
+
127
+ In this section, we show how maximizing the amount of surprise can lead to maximizing the mutual information. Let us begin by further expanding eq. 2.
128
+
129
+ $$
130
+ \begin{array} { r l } & { I ( s _ { t + 1 } ; l _ { t } ) = \mathcal { H } ( s _ { t + 1 } ) - \mathcal { H } ( s _ { t + 1 } | l _ { t } ) } \\ & { \qquad = - \displaystyle \sum _ { s _ { t + 1 } } p ( s _ { t + 1 } ) \log p ( s _ { t + 1 } ) + \displaystyle \sum _ { l _ { t } } p ( l _ { t } ) \sum _ { s _ { t + 1 } } p ( s _ { t + 1 } | l _ { t } ) \log p ( s _ { t + 1 } | l _ { t } ) } \\ & { \qquad = - \displaystyle \sum _ { s _ { t + 1 } \sim p ( s _ { t + 1 } ) } [ \log p ( s _ { t + 1 } ) ] + \displaystyle \sum _ { l _ { t } } \sum _ { s _ { t + 1 } } p ( s _ { t + 1 } , l _ { t } ) \log p ( s _ { t + 1 } | l _ { t } ) } \\ & { \qquad = - \displaystyle \operatorname* { l i m } _ { s _ { t + 1 } \sim p ( s _ { t + 1 } ) } [ \log p ( s _ { t + 1 } ) ] + \displaystyle \sum _ { s _ { t + 1 } , l _ { t } \sim p ( s _ { t + 1 } , l _ { t } ) } [ \log p ( s _ { t + 1 } | l _ { t } ) ] } \end{array}
131
+ $$
132
+
133
+ So, maximizing mutual information between the attention location and the environment state is equivalent to minimizing $\log p ( s _ { t + 1 } )$ and maximizing $\log p ( s _ { t + 1 } | l _ { t } )$ under expectation. The first term is the log-likelihood of the next state prior to selecting $l _ { t }$ . Computing it requires marginalization over all possible $l _ { t }$ , which is prohibited by our environment as only a single partial observation from the full state can be provided to the agent. The second term, $\log p ( s _ { t + 1 } | l _ { t } )$ , is computable at a single attention location from a single state and hence we will focus on maximizing this term.
134
+
135
+ Now, assume the agent’s belief over the true environment state at the next step, $s _ { t + 1 }$ , is represented by a Gaussian with unit variance around the reconstruction, $\tau _ { t + 1 }$ . So, $s _ { t + 1 } \sim \mathcal { N } ( \tau _ { t + 1 } , \mathcal { T } )$ and
136
+
137
+ $$
138
+ \begin{array} { l } { \log p ( s _ { t + 1 } | \tau _ { t + 1 } ) \propto \log e x p [ - ( s _ { t + 1 } - \tau _ { t + 1 } ) ^ { T } ( s _ { t + 1 } - \tau _ { t + 1 } ) / 2 ] } \\ { \quad \quad \quad = - \displaystyle \sum _ { i } ( s _ { t + 1 } ^ { i } - \tau _ { t + 1 } ^ { i } ) ^ { 2 } / 2 } \end{array}
139
+ $$
140
+
141
+ So, minimizing the squared difference between $s _ { t + 1 }$ and $\tau _ { t + 1 }$ leads to maximizing $\log p ( s _ { t + 1 } | \tau _ { t + 1 } )$ . Maximizing $\log p ( s _ { t + 1 } \vert \tau _ { t + 1 } )$ in turn means maximizing $\log p ( s _ { t + 1 } | l _ { t } )$ , since $\tau _ { t + 1 }$ is constructed using the deterministic functions $W$ , $S$ , and $R$ once $l _ { t }$ has been picked (see section 4).
142
+
143
+ In order to minimize the squared difference between $s _ { t + 1 }$ and $\tau _ { t + 1 }$ , the agent needs to pick a location $l _ { t }$ that observes the maximum error between $s _ { t }$ and its reconstruction $\tau _ { t }$ . This is because at step $t$ , if the agent observes the location with the highest reconstruction error, i.e. the least likelihood $p ( s _ { t } | \tau _ { t } )$ , it will ensure that at the next time step $t + 1$ the agent has the most recent information on that region and can make a good reconstruction of it. Hence, maximizing $\log p ( s _ { t + 1 } | l _ { t } )$ is equivalent to picking an $l _ { t }$ that will lead to the highest reconstruction error at step $t$ .
144
+
145
+ $$
146
+ \operatorname* { m a x } _ { l _ { t } } \log p ( s _ { t + 1 } | l _ { t } ) \implies \operatorname* { m a x } _ { l _ { t } } \sum _ { i \in I _ { t } } ( s _ { t } ^ { i } - \tau _ { t } ^ { i } ) ^ { 2 } / 2
147
+ $$
148
+
149
+ where $I _ { t }$ forms the set of indices under the window at location $l _ { t }$ . Directly optimizing this quantity with respect to $l _ { t }$ is not possible as it can only be computed once an observation has been made and only at a single location. Hence, the glimpse agent must learn to predict the location that is most likely to result in high reconstruction error before an observation is made. Our approach is to formulate the glimpse agent as a reinforcement learner with the reconstruction error as its reward.
150
+
151
+ An interpretation of this objective is that the glimpse agent is surprise seeking, or curiosity driven. It is attending to parts of the state that are novel in the sense that they are difficult for the agent’s current model to predict. Another interpretation is that the glimpse agent is acting adversarially to the DMM’s model of the environment. At each step the glimpse agent tries to focus on parts of the state that are the most difficult for DMM to reconstruct. By doing so, it is indirectly creating a curriculum of increasingly difficult to model aspects of the environment.
152
+
153
+ # 5.3 FULL TRAINING OBJECTIVE
154
+
155
+ Let us look at a different expansion of the objective in eq. 1,
156
+
157
+ $$
158
+ I ( s _ { t + 1 } ; l _ { t } ) = \operatorname* { m a x } _ { l _ { t } } \mathcal { H } ( l _ { t } ) - \mathcal { H } ( l _ { t } | s _ { t + 1 } ) .
159
+ $$
160
+
161
+ The first term is $\mathcal { H } ( l _ { t } )$ , the entropy over the attention location, which is controlled by the policy of the glimpse agent. This term can easily be maximized by standard RL algorithms, such as A2C (Mnih et al., 2016; Wu et al., 2017), using weighted entropy maximization.
162
+
163
+ Combining the first term from equation 5 and second term from equation 2, the final objective that we use to train the glimpse agent is
164
+
165
+ $$
166
+ \operatorname* { m a x } _ { l _ { t } } \mathcal { H } ( l _ { t } ) - \mathcal { H } ( s _ { t + 1 } | l _ { t } ) \equiv \alpha \mathcal { H } ( \pi _ { g l i m p s e } ) + \operatorname* { m a x } _ { l _ { t } } \sum _ { i \in I _ { t } } ( s _ { t } ^ { i } - \tau _ { t } ^ { i } ) ^ { 2 } / 2 ,
167
+ $$
168
+
169
+ where $\alpha$ is the entropy weighting set to 0.001 in our experiments.
170
+
171
+ Note that this objective is not the mutual information from equation 1. It is possible to design a variational algorithm that maximizes the approximate mutual information based on the expansion in eq. 5 alone (instead of mixing terms from both the expansions). Empirically, however, we found that our objective performs better than the variational approximation to mutual information. See section A.4 for more detail.
172
+
173
+ # 6 RESULTS
174
+
175
+ We evaluate our approach in two environments: a gridworld environment (figure 5) and PhysEnv (figure 1). In both environments, the task is to navigate to a goal while avoiding obstacles and enemies. The agent’s actions are movement in the four discrete cardinal directions. In the gridworld, the state is a one-hot image of the objects in the environment (agent, walls, enemies and goal). The agent’s and enemies’ movements are restricted to the grid squares and the dynamics of the enemies are simple: moving in straight lines until an obstacle is hit in which case it reflects. In PhysEnv, observations are provided as RGB images and the motions of the objects are more varied.
176
+
177
+ The glimpse agent $^ +$ DMM are first trained on offline data of state and action trajectories (no reward) collected from each environment. More details on data collection are provided in section A.1. We evaluate this part of the training by how accurately the full state is reconstructed by DMM at each step. Once the glimpse agent $+ \mathrm { D M M }$ have converged, i.e. the reconstruction loss has plateaued, we freeze their parameters and initialize an agent within the environment. The glimpse agent $^ +$ DMM serve as fixed components within the agent while it is learns to solve a task. The agent is trained using an off-the-shelf RL algorithm PPO (Schulman et al., 2017) and is evaluated by the total environment reward it collects during testing episodes.
178
+
179
+ We compare our method against baselines inspired from related work. In the follow baseline the attention is always focused on the agent itself. This is a formulation of the partial observability as seen in Parisotto & Salakhutdinov (2017). Next, the environment baseline mimics the approach by Mnih et al. (2014), where the environment rewards are used to train the glimpse agent. Finally, the random baseline moves the attention randomly at each time step. For the environment task, we have an additional baseline, full, where the full state is provided to the agent to solve the task. This is an upper limit for how well any method that only receives partial observations can perform.
180
+
181
+ # 6.1 STATE RECONSTRUCTION
182
+
183
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>12 reward (ours)</td><td rowspan=1 colspan=1>random</td><td rowspan=1 colspan=1>follow</td><td rowspan=1 colspan=1>environment</td></tr><tr><td rowspan=1 colspan=1>Gridworld</td><td rowspan=1 colspan=1>0.00555</td><td rowspan=1 colspan=1>0.007666</td><td rowspan=1 colspan=1>0.01941</td><td rowspan=1 colspan=1>0.00827</td></tr><tr><td rowspan=1 colspan=1>PhysEnv</td><td rowspan=1 colspan=1>0.0521</td><td rowspan=1 colspan=1>0.0614</td><td rowspan=1 colspan=1>0.1186</td><td rowspan=1 colspan=1>0.0826</td></tr></table>
184
+
185
+ Table 1: Per-pixel L2 loss between agent’s reconstruction $\tau$ and the ground truth full state $s$ . All methods only see partial observations, but must attempt to reconstruct the full state from internal representation. In both environments, our method has the lowest reconstruction error.
186
+
187
+ We measure the performance of the glimpse agent $+ { \bf D M M }$ by the average reconstruction error to the true full (unobserved) state in unseen testing episodes. 25 consecutive observations from 6 unseen test episodes are passed through each model and error is averaged over reconstructions at each time step. This gauges the ability of our attention mechanism and memory to reconstruct the full state using only partial observations. Table 1 shows that using surprise driven reward (our approach) for learning attention control leads to a lower reconstruction error than the other baselines. See figures 5 through 9 in the appendix for visualizations of the reconstructions and training error. In particular, figure 7 and 8 show qualitative comparisons between our method with the baselines. Broadly speaking, our method learns to focus on dynamic objects within the environment and preserve them over many steps in the memory, whereas the baselines lose track of or blur objects as seen in their state reconstructions.
188
+
189
+ ![](images/a4007fb83f0203dda06cb9cef47af6d46205c4b567c68486399ad510a9b2b788.jpg)
190
+ Figure 3: (left) Object-wise breakdown of reconstruction error in gridworld. (right) $\%$ of frames in which the object occurs, i.e. the frequency with which the attention is focuses on a particular object.
191
+
192
+ Figure 3 shows an analysis of what objects are under focus during training in the gridworld environment and their corresponding reconstruction error. The attention forms an interesting curriculum for training the DMM, where it learns to focus on different objects in the environment over time. It starts with walls, then moves to the agent itself, then goal and finally the enemies. Thus, it moves gradually from static to dynamic, harder to model parts of the state, allowing the DMM to learn how to accurately model each object. This very interesting curriculum-like behavior emerges naturally and is not pre-programmed into DMM or the attention agent. It is a consequence of maximizing surprise at every time step. See section A.2 for a more detailed discussion.
193
+
194
+ # 6.2 REINFORCEMENT LEARNING
195
+
196
+ ![](images/ef6d6a60aa12e4e740937406379fe1c39ede3ddf9eb0d647ace2af3595c1d0ed.jpg)
197
+ Figure 4: Average testing reward for goal seeking task in PhysEnv (left) and gridworld (right). Comparison between agent with full observations (upper limit) and partial observations trained with surprise (ours), environment rewards and simply following the agent’s location.
198
+
199
+ Figure 4 shows the average episodic reward over five testing episodes during the training of the agent. Our method approaches the performance of the upper bound agent that receives full environment states in the gridworld environment. The environment baseline performs similarly to our approach in gridworld, but does poorly in PhysEnv, where our approach performs the best. This may be because the attention policy of the environment baseline has high entropy and ends up exploring large parts of the state within an episode. But it does not learn to focus on the most unpredictable parts of the state as our method does. The follow baseline performs poorly in both environments, likely because it only focuses on the agent and does not explore the rest of the state.
200
+
201
+ We also show the performance of our agent (l2 online) in the condition where the DMM and glimpse agent is trained online along with the policy, all components starting from random initialization. This agent did not have a pretraining step and was trained entirely on random exploratory data, therefore obviating the need of a pretraining dataset. The performance is slightly worse than the pretrained agent. This is an encouraging result in a particularly challenging setting of a non-stationary state space as the memory representation and glimpse policy are changing while the agent learns.
202
+
203
+ # 7 CONCLUSIONS
204
+
205
+ We have presented an approach of using mutual information to control a hard attention window in environments with dynamic objects. From partial observations under the attention window, our system is able to reconstruct the full state at every time step with the least error. The representation learned using our method enables RL agents to solve tasks within the environment, while the baseline methods are unable to learn useful representations on the same memory architecture. This demonstrates that attention control plays a large role in enabling task completion.
206
+
207
+ Note that our attention control objective is independent of the task. It is solely concerned with gathering information from the environment where it is most unpredictable. This is similar to curiosity driven RL that seeks novel states or surprising transitions. Hence, attention control learned in this manner is a generic solution that can be applied to many downstream tasks. It may be able to be combined with task-specific attention control by fine-tuning on a task reward. A better foveal glimpse model may also be used instead of the fixed size hard attention used here. We made an assumption that only one glimpse is allowed per environment state. But the rate of collecting glimpses may be variable with respect to environment speed.
208
+
209
+ Curiosity based approaches tend to suffer from the “noisy TV” problem (Savinov et al., 2018) where the agent tends to get distracted by and focus on random, unpredictable events in the environment. Orthogonal approaches have been developed to counter this common weakness by, for example, taking into account the agent’s own actions (Pathak et al., 2017). These approaches can be combined with our method as well. We leave the incorporation of this in attention control for future work.
210
+
211
+ # REFERENCES
212
+
213
+ Joshua Achiam, Harrison Edwards, Dario Amodei, and Pieter Abbeel. Variational option discovery algorithms. arXiv preprint arXiv:1807.10299, 2018.
214
+ Bogdan Alexe, Nicolas Heess, Yee W Teh, and Vittorio Ferrari. Searching for objects driven by context. In Advances in Neural Information Processing Systems, pp. 881–889, 2012.
215
+ Pierre Barrouillet, Sophie Bernardin, and Valerie Camos. Time constraints and resource sharing in ´ adults’ working memory spans. Journal of Experimental Psychology: General, 133(1):83, 2004.
216
+ Marc Bellemare, Sriram Srinivasan, Georg Ostrovski, Tom Schaul, David Saxton, and Remi Munos. Unifying count-based exploration and intrinsic motivation. In Advances in neural information processing systems, pp. 1471–1479, 2016.
217
+ Christopher Berner, Greg Brockman, Brooke Chan, Vicki Cheung, Przemysław Debiak, Christy Dennison, David Farhi, Quirin Fischer, Shariq Hashme, Chris Hesse, et al. Dota 2 with large scale deep reinforcement learning. arXiv preprint arXiv:1912.06680, 2019.
218
+ Gianfranco Bosco, Sergio Delle Monache, and Francesco Lacquaniti. Catching what we can’t see: manual interception of occluded fly-ball trajectories. PLoS One, 7(11):e49381, 2012.
219
+ Nicholas J Butko and Javier R Movellan. Optimal scanning for faster object detection. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pp. 2751–2758. IEEE, 2009.
220
+ Misha Denil, Loris Bazzani, Hugo Larochelle, and Nando de Freitas. Learning where to attend with deep architectures for image tracking. Neural computation, 24(8):2151–2184, 2012.
221
+ Yilun Du and Karthik Narasimhan. Task-agnostic dynamics priors for deep reinforcement learning. arXiv preprint arXiv:1905.04819, 2019.
222
+
223
+ Benjamin Eysenbach, Abhishek Gupta, Julian Ibarz, and Sergey Levine. Diversity is all you need: Learning skills without a reward function. arXiv preprint arXiv:1802.06070, 2018.
224
+
225
+ Maryam Fourtassi, Gilles Rode, and Laure Pisella. Using eye movements to explore mental representations of space. Annals of Physical and Rehabilitation Medicine, 60(3):160–163, 2017.
226
+
227
+ Daniel Freeman, David Ha, and Luke Metz. Learning to predict without looking ahead: World models without forward prediction. In Advances in Neural Information Processing Systems, pp. 5379–5390, 2019.
228
+
229
+ Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka GrabskaBarwinska, Sergio G ´ omez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, ´ et al. Hybrid computing using a neural network with dynamic external memory. Nature, 538 (7626):471–476, 2016.
230
+
231
+ Karol Gregor, Danilo Jimenez Rezende, and Daan Wierstra. Variational intrinsic control. arXiv preprint arXiv:1611.07507, 2016.
232
+
233
+ David Ha and Jurgen Schmidhuber. World models. ¨ arXiv preprint arXiv:1803.10122, 2018.
234
+
235
+ Matthew Hausknecht and Peter Stone. Deep recurrent q-learning for partially observable mdps. arXiv preprint arXiv:1507.06527, 2015.
236
+
237
+ Rein Houthooft, Xi Chen, Yan Duan, John Schulman, Filip De Turck, and Pieter Abbeel. Vime: Variational information maximizing exploration. In Advances in Neural Information Processing Systems, pp. 1109–1117, 2016.
238
+
239
+ Laurent Itti. Quantifying the contribution of low-level saliency to human eye movements in dynamic scenes. Visual Cognition, 12(6):1093–1123, 2005.
240
+
241
+ Laurent Itti, Christof Koch, and Ernst Niebur. A model of saliency-based visual attention for rapid scene analysis. IEEE Transactions on pattern analysis and machine intelligence, 20(11):1254– 1259, 1998.
242
+
243
+ Shiva Kamkar, Fatemeh Ghezloo, Hamid Abrishami Moghaddam, Ali Borji, and Reza Lashgari. Multiple-target tracking in human and machine vision. PLOS Computational Biology, 16(4): e1007698, 2020.
244
+
245
+ Arbaaz Khan, Clark Zhang, Nikolay Atanasov, Konstantinos Karydis, Vijay Kumar, and Daniel D Lee. Memory augmented control networks. arXiv preprint arXiv:1709.05706, 2017.
246
+
247
+ Hugo Larochelle and Geoffrey E Hinton. Learning to combine foveal glimpses with a third-order boltzmann machine. In J. D. Lafferty, C. K. I. Williams, J. Shawe-Taylor, R. S. Zemel, and A. Culotta (eds.), Advances in Neural Information Processing Systems 23, pp. 1243–1251. Curran Associates, Inc., 2010.
248
+
249
+ Volodymyr Mnih, Nicolas Heess, Alex Graves, et al. Recurrent models of visual attention. In Advances in neural information processing systems, pp. 2204–2212, 2014.
250
+
251
+ Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. nature, 518(7540):529–533, 2015.
252
+
253
+ Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In International conference on machine learning, pp. 1928–1937, 2016.
254
+
255
+ Shakir Mohamed and Danilo Jimenez Rezende. Variational information maximisation for intrinsically motivated reinforcement learning. In Advances in neural information processing systems, pp. 2125–2133, 2015.
256
+
257
+ Lucas Paletta, Gerald Fritz, and Christin Seifert. Q-learning of sequential attention for visual object recognition from informative local descriptors. In Proceedings of the 22nd international conference on Machine learning, pp. 649–656, 2005.
258
+
259
+ Emilio Parisotto and Ruslan Salakhutdinov. Neural map: Structured memory for deep reinforcement learning. arXiv preprint arXiv:1702.08360, 2017.
260
+
261
+ Deepak Pathak, Pulkit Agrawal, Alexei A Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 16–17, 2017.
262
+
263
+ Nikolay Savinov, Anton Raichuk, Raphael Marinier, Damien Vincent, Marc Pollefeys, Timo- ¨ thy Lillicrap, and Sylvain Gelly. Episodic curiosity through reachability. arXiv preprint arXiv:1810.02274, 2018.
264
+
265
+ Jurgen Schmidhuber. A possibility for implementing curiosity and boredom in model-building neu- ¨ ral controllers. In Proc. of the international conference on simulation of adaptive behavior: From animals to animats, pp. 222–227, 1991.
266
+
267
+ John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
268
+
269
+ Archit Sharma, Shixiang Gu, Sergey Levine, Vikash Kumar, and Karol Hausman. Dynamics-aware unsupervised discovery of skills. arXiv preprint arXiv:1907.01657, 2019.
270
+
271
+ David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of go without human knowledge. nature, 550(7676):354–359, 2017.
272
+
273
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pp. 5998–6008, 2017.
274
+
275
+ Sean Welleck, Jialin Mao, Kyunghyun Cho, and Zheng Zhang. Saliency-based sequential image attention with multiset prediction. In Advances in neural information processing systems, pp. 5173–5183, 2017.
276
+
277
+ Yuhuai Wu, Elman Mansimov, Roger B Grosse, Shun Liao, and Jimmy Ba. Scalable trust-region method for deep reinforcement learning using kronecker-factored approximation. In Advances in neural information processing systems, pp. 5279–5288, 2017.
278
+
279
+ Alfred L Yarbus. Eye movements and vision. Springer, 2013.
280
+
281
+ Yuechen Yu, Yilei Xiong, Weilin Huang, and Matthew R Scott. Deformable siamese attention networks for visual object tracking. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 6728–6737, 2020.
282
+
283
+ Daniel Zoran, Mike Chrzanowski, Po-Sen Huang, Sven Gowal, Alex Mott, and Pushmeet Kohli. Towards robust image classification using sequential attention models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9483–9492, 2020.
284
+
285
+ # A APPENDIX
286
+
287
+ # A.1 DETAILS OF DATA COLLECTION
288
+
289
+ For gridworld we used 20000 random steps in the environment to create this training set. In PhysEnv we used a previously trained agent to generate 500,000 steps of demonstrations. We experienced that using a random policy in PhysEnv led to quick deaths of the agent with insufficient episode lengths for learning. In both cases, the data are sequences of full states and agent actions from multiple episodes. In PhysEnv, the map size was $2 1 \times 2 1$ compared to the full state size of $8 4 \times 8 4$ and in gridworld both the map and state were $1 0 \times 1 0$ . The size of the attention window was fixed to be $3 \times 3$ in the gridworld $9 \%$ of the full state visible in an observation) and $2 1 \times 2 1$ in PhysEnv $( 6 . 2 5 \%$ of the state visible).
290
+
291
+ # A.2 VISUALIZATIONS OF GLIMPSES DURING TRAINING
292
+
293
+ We will discuss where the attention focuses and how that effects the reconstruction (and underlying belief) as the training progresses for the gridworld environment. Please refer to 3 for this discussion.
294
+
295
+ Initially, the attention learns to focus on the wall objects and the corresponding reconstruction error for the walls decreases rapidly (3.b). This is because the walls are long objects in the environment, present at multiple pixels and side-by-side, providing the largest and most reliable source of error under the attention window initially. The error is provided as reward to the glimpse agent, hence it seeks more walls in the state.
296
+
297
+ Soon, the error it receives from walls decreases as the agent’s DMM learns to persistently record the location of stationary walls over multiple time steps. Then around 10000 iters, the attention switches to focusing on the agent’s location itself. This is because the agent’s apparent erratic movements provide a larger reward due to their unpredictability than the stationary walls can anymore. This has dual consequences. First, since now the DMM is seeing a lot of examples of the agent’s movement, it learns to accurately model the agent based on an initial state and its actions and the reconstruction error corresponding to the agent falls. At its peak, over $70 \%$ of glimpses contain the agent within them (figure 3.b). Interestingly, the error corresponding to the wall and goal objects rises as some forgetting of the representation and dynamics of these objects occurs. A little before 20000 iters though, the agent has learnt to represent simultaneously all three objects and it switches attention to the enemies, the only remaining un-modeled objects in the environment. The enemies move predictably, bouncing off walls and other objects, but otherwise in straight lines. The agent does not have direct access to their actions and must infer their motion over multiple time steps using only glimpses.
298
+
299
+ Figures 5 and 6 visualize the behavior of the glimpse agent during the initial stages of training. Initially, (100 iters), the attention mostly moves around randomly as can be seen by the heatmap being active throughout the state. The reconstruction does not correspond to anything in the real state since the agent has only just begun learning. The glimpse agent here is receiving high reward for pretty much every location in the state. By 2000 iters, the glimpse agent has learnt to mainly focus on the wall once it locates it. This can be seen in the high probabilities of the glimpse agent policy near the wall locations and the attention repeatedly fixating on the wall. The agent is simultaneously striving to learn to represent the walls as they are showing up a lot in its training data, and steadily reducing the reconstruction error (the glimpse agent’s reward) coming from walls.
300
+
301
+ By iter 11000, the focus has shifted to tracking the agent as can be seen in the heatmap. The heatmap shows that the glimpse agent is singularly focused on the agent’s movements as the error reward it is getting from the walls has dropped off and the agent’s movements are not fully predicatable yet. In the figure for iter 19000, it can be seen that the agent can now track its own location very reliably with an initial position and the actions it is taking, without having to focus the attention on itself. In fact, after step 8 when the agent is discovered, the attention almost never moved back to it and yet the location in the reconstruction perfectly matches that of the unobserved full state. Hence the agent’s location based reward source has largely dried up. The heatmap of attention policy shows that the glimpse agent has become interested in the goals and walls again briefly as it learns to represent all three objects together. It can also be seen from the reconstructions here that the agent is unable to accurately track and model the enemies locations at this point.
302
+
303
+ By iter 21000, the attention has shifted focus to the remaining object in the state that is producing a high reconstruction error, i.e. the enemy. Once the enemy is discovered on step 14, the glimpse agent’s policy puts all probability near its location so it can keep observing and model its behavior.
304
+
305
+ The glimpse agent creates a natural curriculum for training the models within DMM, starting at large stationary objects that do not move, then moving to the agent’s followed by the objects with the most complex dynamics. We conjecture this automatically discovered curriculum is the reason our system is able to learn better reconstructions than the baselines.
306
+
307
+ ![](images/1b1d00dcc6be27103726a94bc00d44de1546ef78fc25ae6a395229173f0eb670.jpg)
308
+ Figure 5: Visualizations of glimpse behavior in gridworld environment. Each sub-figure is the same testing episode at different stages of training, with the rows corresponding to the time within the episode. In each subfigure, the first column shows the full (unobserved) state. The second column is a heatmap showing the glimpse policy, i.e. the likelihood the glimpse agent will select a location for placing attention. The location that was sampled is indicated in the first column by the yellow square. The final, third, column is the reconstruction $\tau$ based on the agent’s current current belief about the environment.
309
+
310
+ ![](images/58c94bc80bbdf079dc9466a7affe5cf5415435ae4e3ae90bbd022b6dbc4ed401.jpg)
311
+ Figure 6: Visualizations of glimpse behavior in PhysEnv environment.
312
+
313
+ Next we show qualitative comparisons of the glimpse policy and state reconstruction between our method and the baselines. Each subfigure in figures 7 and 8 shows the same episode of length 20 played out with different glimpse agents. The first column is our method, the second shows a uniform random policy for the glimpse agent, the third shows a glimpse agent trained on environment (task) rewards, and lastly the fourth shows the glimpse following the agent. In both environments, it can be seen that our method learns to focus on dynamic objects within the environment and the resulting state reconstruction shows that these objects are preserved in the memory.
314
+
315
+ Note that the glimpse policy learned by the environment rewards is significantly more entropic than the one learned by our method, despite having the same entropy weighting hyperparameter. We conjecture that this is because the task reward does not send a clear and consistent learning signal to control the attention window to create better reconstructions, or as seen in our RL results, to facilitate downstream tasks. As such, the reconstructions appear qualitatively similar to the random baseline.
316
+
317
+ The random baseline quantitatively performs the closest to our approach, but it fails to focus on dynamic objects consistently like over time, and hence fails to track these objects over long periods in the episode. The reconstructions therefore have streaks and blurs where the objects were last spotted and the physics model has not learnt how to update their positions properly.
318
+
319
+ ![](images/cc103f12df50b384b3a935f94d0676dbedf84b35dc8f71f8d322648c777ca892.jpg)
320
+ Figure 7: Glimpse behavior for fully trained models of our method and the baselines in gridworld. Each subfigure is a different baseline, with columns within the subfigure being the full unobserved state, heatmap of attention policy, and reconstruction of full state respectively.
321
+
322
+ ![](images/5c07ecfa5d304f6dbceff467d21009d726361025cd0f9b88ca983615555186e2.jpg)
323
+ Figure 8: Glimpse behavior for fully trained models of our method and the baselines in PhysEnv.
324
+
325
+ ![](images/41edf80cf0f8258eb553d4de174a5a77bd347e291bb26bf204f84f910b503956.jpg)
326
+ Figure 9: (left) PhysEnv environment. (right) Gridworld environment. Reconstruction error (L2) from the full state during training of the $\mathrm { D M M } +$ glimpse agent. All approaches have converged by 200k iters, with our approach having the lowest error, i.e. the most faithful reconstruction of the full unobserved state.
327
+
328
+ These training curves correspond to the results in table 1. The reconstruction error for each method has stabilized. Our method has the lowest reconstruction error for both environments.
329
+
330
+ ![](images/6112eec42e26da8bcef385499fbaeb3966e29deb24cf3bf17f83bb8b5e9aefa4.jpg)
331
+ Figure 10: (left) PhysEnv environment. (right) Gridworld environment. Episodic reward for glimpse agent during training (higher is better).
332
+
333
+ Figure 10 shows the episodic reward for the glimpse agent on six testing episodes as the training progresses. This corresponds to the mutual information objective in equation 4, or the reconstruction eror under the attention window in the next step. The modules within DMM are constantly improving to reduce prediction error and hence the reward goes down as the training progresses. But the glimpse agent is simultaneously trying to maximize the objective by searching for areas within the state that still provide high error. Our method maximizes this objective in both environments. This leads to lower overall reconstruction error as the glimpse agent is learning to predict where the highest source of error is going to be at the next step. The environment baseline performs close to random and the follow baseline gathers the least reward in both environments.
334
+
335
+ # A.4 VARIATIONAL APPROXIMATION TO MUTUAL INFORMATION MAXIMIZATION
336
+
337
+ The mutual information between attention and environment state as expanded in eq. 5 is
338
+
339
+ $$
340
+ I ( s _ { t } ; l _ { t } ) = \mathcal { H } ( l _ { t } ) - \mathcal { H } ( l _ { t } | s _ { t } ) .
341
+ $$
342
+
343
+ In our algorithm, we combine the first term in this expansion with another term in eq. 2. This works well empirically. Theoretically, however, it is computationally possible to maximize both terms in eq. 6, hence maximizing the actual mutual information. However, as we shall show here, this does not work well practically.
344
+
345
+ The first term can be maximized by using maximum entropy RL algorithms for the attention policy as discussed in the main text. Let us consider the second term.
346
+
347
+ $$
348
+ \begin{array} { r l } { { - \mathcal { H } ( l _ { t } | s _ { t } ) = - \sum _ { s _ { t } } p ( s _ { t } ) \mathcal { H } ( l _ { t } | s _ { t } ) } } \\ & { = \sum _ { s _ { t } } p ( s _ { t } ) \sum _ { l _ { t } } p ( l _ { t } | s _ { t } ) \log p ( l _ { t } | s _ { t } ) } \\ & { = \frac { \mathbb { E } } { s _ { t } , l _ { t } \sim p ( s _ { t } , l _ { t } ) } [ \log p ( l _ { t } | s _ { t } ) ] } \end{array}
349
+ $$
350
+
351
+ While $\log p ( l _ { t } | s _ { t } )$ is not directly known, we can construct a variational function, $q ( l _ { t } | s _ { t } )$ , to approximate it.
352
+
353
+ Since $K L ( p ( l _ { t } | s _ { t } ) | | q ( l _ { t } | s _ { t } ) ) \geq 0$ , we have,
354
+
355
+ $$
356
+ \begin{array} { r l } & { \displaystyle \sum _ { l _ { t } } p ( l _ { t } | s _ { t } ) \log p ( l _ { t } | s _ { t } ) \geq \sum _ { l _ { t } } p ( l _ { t } | s _ { t } ) \log q ( l _ { t } | s _ { t } ) } \\ & { \displaystyle \sum _ { s _ { t } , l _ { t } \sim p ( s _ { t } , l _ { t } ) } [ \log p ( l _ { t } | s _ { t } ) ] \geq \underset { s _ { t } , l _ { t } \sim p ( s _ { t } , l _ { t } ) } { \mathbb { E } } [ \log q ( l _ { t } | s _ { t } ) ] } \end{array}
357
+ $$
358
+
359
+ Plugging this into eq. 6,
360
+
361
+ $$
362
+ I ( s _ { t } ; l _ { t } ) \geq \mathcal { H } ( l _ { t } ) + \underset { s _ { t } , l _ { t } \sim p ( s _ { t } , l _ { t } ) } { \mathbb { E } } [ \log q ( l _ { t } | s _ { t } ) ]
363
+ $$
364
+
365
+ Therefore, we can maximize the mutual information by maximizing this lower bound w.r.t. the policy parameters of the glimpse agent. This can be achieved by providing $\log q ( l _ { t } | s _ { t } )$ as a reward to the glimpse agent and using RL algorithms to maximize its long term value along with the policy entropy. As such, maximizing the mutual information.
366
+
367
+ We can additionally condition $q$ on the internal state and action of the agent at previous time step. Since we do not have access to the full environment state, $s _ { t }$ , we substitute it with the agent’s internal state. The final variational function looks like $q ( l _ { t } | \mu _ { t } , \mu _ { t - 1 } , a _ { t - 1 } )$ . $q$ must be trained to match the true posterior $p ( l _ { t } | s _ { t } )$ to provide accurate rewards to the glimpse agent.
368
+
369
+ The question now is how to learn $q \mathrm { ? }$ In this work, it is a neural network trained on samples. This is done by minimizing the KL divergence,
370
+
371
+ $$
372
+ \begin{array} { r } { \operatorname* { m i n } _ { \substack { s _ { t } , l _ { t } \sim p ( s _ { t } , l _ { t } ) } } [ K L ( p ( l _ { t } | s _ { t } ) | | q ( l _ { t } | \mu _ { t } , \mu _ { t - 1 } , a _ { t - 1 } ) ) ] } \end{array}
373
+ $$
374
+
375
+ on samples from the environment and the glimpse agent’s policy. This will ensure $q$ is likely to assign high likelihood to actual locations conditioned on its inputs.
376
+
377
+ Intuitively, $q$ will be high at locations of attention that are easy to identify by looking at the previous state, the resulting state, and the agent action. Otherwise, its output will be flat and hard to predict. Since $q$ is provided to the glimpse agent as reward, it will be rewarded for selecting easily identifiable locations and prefer such a policy. These can be locations that produce a high amount of localized surprising information in $\mu _ { t }$ as compared to $\mu _ { t - 1 }$ , as unexpected appearance of goal or enemies somewhere will signal that the attention was just moved there, hence producing a high likelihood in $q$ . Conversely, low reward locations will be ones that are hard to identify by $q$ as they do not impact any specific part of $\mu _ { t }$ , leaving it largely the same as $\mu _ { t - 1 }$ , or observe a location that was already well-modeled by the agent and hence do not leave an identifiable mark on $\mu _ { t }$ that is a tell-tale sign for q.
378
+
379
+ ![](images/81d5b51ffa8b2a07090878da948998cb61d625782c10e709f32794011c0322fe.jpg)
380
+ (b) Write error of observation under attention window.
381
+
382
+ ![](images/ba2c2fa373647194fb86f18cc133ed7112d12d0587957870325442344e3db85d.jpg)
383
+ Figure 11: State reconstruction and observation reconstruction errors in gridworld environment. Observation reconstruction error falls to almost zero for both methods while full state reconstruction remains high for variational approach.
384
+
385
+ (a) Overall state reconstruction error per pixel.
386
+
387
+ The above method does not work well in practice. Figure 11a shows the reconstruction error of the unobserved state with our proposed method and the variational approach. Figure 11b shows the observation reconstruction error, which is the error in reproducing just the observation under the attention immediately after it is made. It can be seen that the latter quantity goes to near zero for both methods, meaning that immediate observations are being faithfully recorded into memory and reconstructed. Yet, the overall state reconstruction error remains high for the variational approach, which means that the agent is not able to retain observations over time steps as the attention moves around the state and the environment model is not learning to predict the evolution of the state over time without direct observation.
388
+
389
+ A reason why the variational approach fails in practice could be that we do not have direct access to $p ( l _ { t } | s _ { t } )$ in order to train $q$ . Instead we must rely on the agent’s internal estimate of the environment state, $\mu _ { t }$ , which itself is being trained alongside the glimpse agent. This results in noisy rewards to the glimpse agent as the $q$ function is not able to accurately predict where the attention is. As we have seen in section A.2, attention control creates a curriculum for training the agent’s state estimate. Hence this forms a loop, where attention control is dependent on agent’s state estimate which is in return dependent on the curriculum generated by the attention.
390
+
391
+ Extensive hyperparameter tuning may also be required for this approach to work as the glimpse agent can easily default to chosing the same attention location at each time step as it ensures the highest $q ( l _ { t } | s _ { t } )$ .
parse/train/TV9INIrmtWN/TV9INIrmtWN_content_list.json ADDED
@@ -0,0 +1,1993 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "HARD ATTENTION CONTROL BY MUTUAL INFORMATION MAXIMIZATION ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 821,
10
+ 145
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
+ 236,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Biological agents have adopted the principle of attention to limit the rate of incoming information from the environment. One question that arises is if an artificial agent has access to only a limited view of its surroundings, how can it control its attention to effectively solve tasks? We propose an approach for learning how to control a hard attention window by maximizing the mutual information between the environment state and the attention location at each step. The agent employs an internal world model to make predictions about its state and focuses attention towards where the predictions may be wrong. Attention is trained jointly with a dynamic memory architecture that stores partial observations and keeps track of the unobserved state. We demonstrate that our approach is effective in predicting the full state from a sequence of partial observations. We also show that the agent’s internal representation of the surroundings, a live mental map, can be used for control in two partially observable reinforcement learning tasks. Videos of the trained agent can be found at https://sites.google.com/view/hard-attention-control. ",
40
+ "bbox": [
41
+ 233,
42
+ 268,
43
+ 764,
44
+ 476
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 507,
55
+ 336,
56
+ 522
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Reinforcement learning (RL) algorithms have successfully employed neural networks over the past few years, surpassing human level performance in many tasks (Mnih et al., 2015; Silver et al., 2017; Berner et al., 2019; Schulman et al., 2017). But a key difference in the way tasks are performed by humans versus RL algorithms is that humans have the ability to focus on parts of the state at a time, using attention to limit the amount of information gathered at every step. We actively control our attention to build an internal representation of our surroundings over multiple fixations (Fourtassi et al., 2017; Barrouillet et al., 2004; Yarbus, 2013; Itti, 2005). We also use memory and internal world models to predict motions of dynamic objects in the scene when they are not under direct observation (Bosco et al., 2012). By limiting the amount of input information in these two ways, i.e. directing attention only where needed and internally modeling the rest of the environment, we are able to be more efficient in terms of data that needs to be collected from the environment and processed at each time step. ",
63
+ "bbox": [
64
+ 173,
65
+ 540,
66
+ 825,
67
+ 707
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "image",
73
+ "img_path": "images/d6707bda87abc67308d0b23dca6be6c3e5da4d8361981355bd723cb070b529c9.jpg",
74
+ "image_caption": [
75
+ "Figure 1: Illustration of the PhysEnv domain (Du & Narasimhan, 2019). Here, the agent (dark blue) needs to navigate to the goal (red) while avoiding enemies (light blue). Typically the full environment states (top) are provided to the RL algorithm to learn. We consider the case where only observations from under a hard attention window (bottom) are available. The attention’s location (yellow square) at each time step is controllable by the agent. Using only partial observations, the agent must learn to represent its surroundings and complete its task. "
76
+ ],
77
+ "image_footnote": [],
78
+ "bbox": [
79
+ 295,
80
+ 722,
81
+ 702,
82
+ 825
83
+ ],
84
+ "page_idx": 0
85
+ },
86
+ {
87
+ "type": "text",
88
+ "text": "By contrast, modern reinforcement learning methods often operate on the entire state. Observing the entire state simultaneously may be difficult in realistic environments. Consider an embodied agent that must actuate its camera to gather visual information about its surroundings learning how to cross a busy street. At every moment, there are different objects in the environment competing for its attention. The agent needs to learn to look left and right to store locations, heading, and speed of nearby vehicles, and perhaps other pedestrians. It must learn to create a live map of its surroundings, frequently checking back on moving objects to update their dynamics. In other words, the agent must learn to selectively move its attention so as to maximize the amount of information it collects from the environment at a time, while internally modeling motions of the other, more predictable parts of the state. Its internal representation, built using successive glimpses, must be sufficient to learn how to complete tasks in this partially observable environment. ",
89
+ "bbox": [
90
+ 174,
91
+ 103,
92
+ 825,
93
+ 256
94
+ ],
95
+ "page_idx": 1
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "We consider the problem of acting in an environment that is only partially observable through a controllable, fixed-size, hard attention window (see figure 1). Only the part of the state that is under the attention window is available to the agent as its observation. The rest must be inferred from previous observations and experience. We assume that the location of the attention window at every time step is under control of the agent and its size compared to the full environment state is known to the agent. We distinguish this task from that of learning soft attention (Vaswani et al., 2017), where the full state is attended to, weighted by a vector, and then fed into subsequent layers. Our system must learn to 1) decide where to place the attention in order to gather more information about its surroundings, 2) record the observation made into an internal memory and model the motion within parts of the state that were unobserved, and 3) use this internal representation to learn how to solve its task within the environment. ",
100
+ "bbox": [
101
+ 174,
102
+ 263,
103
+ 825,
104
+ 415
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "Our approach for controlling attention uses RL to maximize an information theoretic objective closely related to the notion of surprise or novelty (Schmidhuber, 1991). It is unsupervised in terms of environment rewards, i.e. it can be trained on offline data (states and actions) without knowing the task or related rewards. We discuss this in more detail in section 5. Memory also plays a crucial role in allowing agents to solve tasks in partially observable environments. We pair our attention control mechanism with a memory architecture inspired largely by Du & Narasimhan (2019)’s SpatialNet, but modified to work in partially observable domains. This is described in section 4. Empirically, we show in section 6.1 that our system is able to reconstruct the full state image including dynamic objects at all time steps given only partial observations. Further, we show in section 6.2 that the internal representation built by our attention control mechanism and memory architecture is sufficient for the agent to learn to solve tasks in this challenging partially observable environment. ",
111
+ "bbox": [
112
+ 174,
113
+ 422,
114
+ 825,
115
+ 575
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "2 RELATED WORKS ",
122
+ "text_level": 1,
123
+ "bbox": [
124
+ 176,
125
+ 598,
126
+ 354,
127
+ 614
128
+ ],
129
+ "page_idx": 1
130
+ },
131
+ {
132
+ "type": "text",
133
+ "text": "Using hard attention for image classification or object recognition is well studied in computer vision (Alexe et al., 2012; Butko & Movellan, 2009; Larochelle & Hinton, 2010; Paletta et al., 2005; Zoran et al., 2020; Welleck et al., 2017). Attention allows for processing only the salient or interesting parts of the image (Itti et al., 1998). Similarly, attention control has been applied to tracking objects within a video (Denil et al., 2012; Kamkar et al., 2020; Yu et al., 2020). Surprisingly, not a lot of recent work exists on the topic of hard attention control in reinforcement learning domains, where a sequential decision making task has to be solved by using partial observations from under the attention. ",
134
+ "bbox": [
135
+ 173,
136
+ 631,
137
+ 825,
138
+ 742
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "Mnih et al. (2014) proposed a framework for hard attention control in the classification setting and a simple reinforcement learning task. Their approach consists of using environment rewards to train an attention control RL agent. Our approach differs mainly in that we train the attention control using our novel information theoretic objective as reward. Mnih et al. (2014)’s approach leads to a task specific policy for attention control, whereas our approach is unsupervised in terms of the task and can be applied generally to downstream tasks in the environment. Our approach also differs in that we use a memory architecture that is more suited to partially observable tasks with 2D images as input, compared to a RNN used by Mnih et al. (2014). ",
145
+ "bbox": [
146
+ 174,
147
+ 750,
148
+ 825,
149
+ 861
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "There has been much prior work on memory and world models for reinforcement learning (Ha & Schmidhuber, 2018; Graves et al., 2016; Hausknecht & Stone, 2015; Khan et al., 2017). The work closest to our own is Du & Narasimhan (2019)’s SpatialNet, which attempts to learn a task-agnostic world model for multi-task settings. Our memory architecture is largely inspired by SpatialNet and adapted to work in the partially observable setting. We also use their PhysEnv environment to evaluate our approach. Closely related work is Neural Map (Parisotto & Salakhutdinov, 2017), which uses a structured 2D memory map to store information about the environment. Their approach also applies to partially observable RL tasks, but the attention is fixed to the agent. In contrast, we consider the problem of learning to control an attention window that can move independently of the agent location. Recently, Freeman et al. (2019) showed that world models can be learnt by simply limiting the agent’s ability to observe the environment. They apply observational dropout, where the output of the agent’s world model, rather than the environment state, is occasionally provided to the policy. We consider the related scenario where only a part of the true environment state is provided to the agent at each time step and the rest must be modeled using previous observations. ",
156
+ "bbox": [
157
+ 174,
158
+ 867,
159
+ 823,
160
+ 924
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "",
167
+ "bbox": [
168
+ 173,
169
+ 103,
170
+ 825,
171
+ 242
172
+ ],
173
+ "page_idx": 2
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Finally, mutual information has been used to train self-supervised RL agents. This line of work originates in curiosity driven and intrinsically motivated RL (Schmidhuber, 1991; Pathak et al., 2017; Bellemare et al., 2016). Typically, some notion of predictive error or novelty about an aspect of the environment is optimized in lieu of environment rewards. Multiple papers have successfully used different formulations of mutual information to learn how to efficiently explore the environment without extrinsic rewards (Mohamed & Rezende, 2015; Houthooft et al., 2016; Achiam et al., 2018; Gregor et al., 2016; Eysenbach et al., 2018; Sharma et al., 2019). We apply the idea of using mutual information to the problem of curiosity driven attention control. ",
178
+ "bbox": [
179
+ 174,
180
+ 250,
181
+ 825,
182
+ 361
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "3 PRELIMINARIES ",
189
+ "text_level": 1,
190
+ "bbox": [
191
+ 176,
192
+ 381,
193
+ 339,
194
+ 396
195
+ ],
196
+ "page_idx": 2
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "In this work, we are concerned with tasks solved using reinforcement learning (RL). RL is the study of agents acting in an environment to maximize some notion of long term utility. It is almost always formalized using the language of Markov decision problems (MDPs). States, actions, rewards and transitions form the components of an MDP, often represented as the tuple $\\langle S , A , R , T \\rangle$ . Maximizing the expected sum of (discounted) rewards over rollouts in the environment is usually set as the objective of learning. Once a problem is formulated as an MDP, such that the components $\\langle S , A , R , T \\rangle$ are well defined, one can apply a range of model-free RL algorithms to attempt to solve it (Schulman et al., 2017; Mnih et al., 2016; Wu et al., 2017). A solution to an MDP is typically sought as an optimal policy, $\\pi ^ { * } : S A$ , which is a function that maps every state to an action that maximizes the long term expected rewards. In this section, we will attempt to formalize the components of the partially observable reinforcement learning problem under study. ",
201
+ "bbox": [
202
+ 174,
203
+ 411,
204
+ 825,
205
+ 564
206
+ ],
207
+ "page_idx": 2
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "3.1 INTERNAL REPRESENTATION ",
212
+ "text_level": 1,
213
+ "bbox": [
214
+ 176,
215
+ 580,
216
+ 415,
217
+ 594
218
+ ],
219
+ "page_idx": 2
220
+ },
221
+ {
222
+ "type": "image",
223
+ "img_path": "images/7d3892123220a2471b3b98f0b35abb357f6151636242067b3385ba55b94cce43.jpg",
224
+ "image_caption": [
225
+ "Figure 2: The agent starts with a representation $\\left( \\mu _ { t } \\right)$ from which it attempts a reconstruction $\\left( \\tau _ { t } \\right)$ of the likely current full (unobserved) state $s _ { t }$ . Then, it picks an attention location $\\left( l _ { t } \\right)$ and receives an observation of the state from under the attention $\\left( o _ { t } \\right)$ . We assume that the size of the attention window is known to the agent. The observation is written into $\\mu _ { t }$ to form $\\mu _ { t } ^ { w }$ . The entire map is then stepped through an internal world model to update the dynamical objects, forming $\\mu _ { t + 1 }$ , the representation for the next step. "
226
+ ],
227
+ "image_footnote": [],
228
+ "bbox": [
229
+ 352,
230
+ 608,
231
+ 645,
232
+ 756
233
+ ],
234
+ "page_idx": 2
235
+ },
236
+ {
237
+ "type": "text",
238
+ "text": "First, we give a brief description of how the agent stores observations in an internal representation of its surroundings (figure 2). An map $( \\mu )$ tracks the full environment state (s), which is never directly observed. The map is empty at the start of the episode and gets sequentially written into as observations are made. The agent also creates a reconstruction of the full state $( \\tau )$ at every time step based on its map. This will become useful later for training. For now, it suffices that $\\mu _ { t }$ is the map before an observation is made and $\\mu _ { t } ^ { w }$ is the one after the observation is made. $\\mu _ { t + 1 }$ is the map after the dynamics of the system for the next time step are taken into account. ",
239
+ "bbox": [
240
+ 174,
241
+ 867,
242
+ 823,
243
+ 924
244
+ ],
245
+ "page_idx": 2
246
+ },
247
+ {
248
+ "type": "text",
249
+ "text": "",
250
+ "bbox": [
251
+ 174,
252
+ 103,
253
+ 823,
254
+ 146
255
+ ],
256
+ "page_idx": 3
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "3.2 THE TWO AGENTS ",
261
+ "text_level": 1,
262
+ "bbox": [
263
+ 176,
264
+ 166,
265
+ 344,
266
+ 180
267
+ ],
268
+ "page_idx": 3
269
+ },
270
+ {
271
+ "type": "text",
272
+ "text": "We formulate the solutions to controlling the attention at every time step and completing the environment task as two separate reinforcement learning agents. The attention location is controlled by the glimpse agent (the eye in figure 2), and actions within the environment are taken by the regular agent. These two agents have their own separate MDPs with their $\\langle S , A , R \\rangle$ tuples defined below. ",
273
+ "bbox": [
274
+ 174,
275
+ 194,
276
+ 825,
277
+ 250
278
+ ],
279
+ "page_idx": 3
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "The glimpse agent’s state at every timestep is $\\mu _ { t }$ . Its set of actions is all possible attention locations within the full state (Width $\\times$ Height actions). Its reward is based on the information theoretic objective discussed in section 5. Thus, the glimpse agent is provided the map before an observation is made and it must decide where the observation should be made from in order to optimize its reward. ",
284
+ "bbox": [
285
+ 174,
286
+ 256,
287
+ 825,
288
+ 325
289
+ ],
290
+ "page_idx": 3
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "The environment agent acting in the environment receives as input $\\mu _ { t } ^ { w }$ , i.e. the internal representation after the observation has been recorded. Its actions are the normal set of actions in the environment and its reward is the normal environment reward. We emphasize that neither agent has access to the full state at any time. They must both act based on the internal representation alone. They also cannot make multiple observations from the same environment state. Once an observation is made, an action must be selected that will change the environment state. In the next section, we will describe in detail how $\\mu _ { t } ^ { w }$ , $\\mu _ { t + 1 }$ and $\\tau _ { t }$ are formed and how the internal map is trained through a sequence of partial observations. ",
295
+ "bbox": [
296
+ 174,
297
+ 333,
298
+ 825,
299
+ 444
300
+ ],
301
+ "page_idx": 3
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "4 DYNAMIC MEMORY MAP ",
306
+ "text_level": 1,
307
+ "bbox": [
308
+ 176,
309
+ 468,
310
+ 416,
311
+ 484
312
+ ],
313
+ "page_idx": 3
314
+ },
315
+ {
316
+ "type": "text",
317
+ "text": "Memory plays a critical role in enabling agents to act in partially observable environments. It allows the agent to remember parts of the state that are not under direct observation. Along with memory, the agent must be able to model the dynamics of objects in its environment, as it may not receive observation of them for long periods. Finally, the effect of its own actions must be reflected in its belief about the environment. For this purpose, we design a special recurrent memory unit for visual environments called the Dynamic Memory Map (DMM). DMM is inspired largely by Du & Narasimhan (2019)’s work on SpatialNet, but modified to handle partial observations and work in tandem with the glimpse agent. ",
318
+ "bbox": [
319
+ 173,
320
+ 501,
321
+ 825,
322
+ 613
323
+ ],
324
+ "page_idx": 3
325
+ },
326
+ {
327
+ "type": "text",
328
+ "text": "4.1 MEMORY MODULES ",
329
+ "text_level": 1,
330
+ "bbox": [
331
+ 176,
332
+ 633,
333
+ 356,
334
+ 647
335
+ ],
336
+ "page_idx": 3
337
+ },
338
+ {
339
+ "type": "text",
340
+ "text": "The DMM consists of three major modules: write, step and reconstruct. ",
341
+ "bbox": [
342
+ 174,
343
+ 660,
344
+ 642,
345
+ 675
346
+ ],
347
+ "page_idx": 3
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "Write. This module encodes an incoming observation, $o _ { t }$ , into the current memory representation, $\\mu _ { t }$ . The observation is first passed through a series of convolutional operations, $W$ , possibly downsampling it for a more efficient representation. Then it is blended with $\\mu$ using a series of convolutions, $B$ . Finally it is written into the memory but only in the locations where the observation was made, leaving the rest of the memory intact. The write operation can be written as: ",
352
+ "bbox": [
353
+ 174,
354
+ 681,
355
+ 825,
356
+ 752
357
+ ],
358
+ "page_idx": 3
359
+ },
360
+ {
361
+ "type": "equation",
362
+ "img_path": "images/5d19e9f19fa2f2f3ff0fddbe2761782dd7c69925a2efab3a21527b2702ded923.jpg",
363
+ "text": "$$\n\\mu _ { t } ^ { w } = C _ { t } * B ( W ( o _ { t } ) , \\mu _ { t } ) + ( 1 - C _ { t } ) * \\mu _ { t }\n$$",
364
+ "text_format": "latex",
365
+ "bbox": [
366
+ 357,
367
+ 762,
368
+ 638,
369
+ 779
370
+ ],
371
+ "page_idx": 3
372
+ },
373
+ {
374
+ "type": "text",
375
+ "text": "where $C _ { t }$ is a mask which is 1 under the attention window and 0 otherwise. ",
376
+ "bbox": [
377
+ 178,
378
+ 789,
379
+ 669,
380
+ 804
381
+ ],
382
+ "page_idx": 3
383
+ },
384
+ {
385
+ "type": "text",
386
+ "text": "Step. This module is responsible for modeling the dynamics of the environment and updating the memory to track the full state from one time step to the next. Objects in the environment can be static or dynamic and may be affected by the agent’s own actions. This module is implemented as a residual network, $S$ , similar to SpatialNet (Du & Narasimhan, 2019). We additionally condition $S$ on the agent’s own action $a _ { t }$ . The entire map is updated at each time step to ensure that objects observed previously are also updated to new likely locations. ",
387
+ "bbox": [
388
+ 174,
389
+ 810,
390
+ 825,
391
+ 893
392
+ ],
393
+ "page_idx": 3
394
+ },
395
+ {
396
+ "type": "equation",
397
+ "img_path": "images/025850cb3b1c13c59bbdeef22a71cf33f30fd083203f8770f05dd128826ac9e3.jpg",
398
+ "text": "$$\n\\mu _ { t + 1 } = \\mu _ { t } + S ( \\mu _ { t } ^ { w } , a _ { t } )\n$$",
399
+ "text_format": "latex",
400
+ "bbox": [
401
+ 419,
402
+ 904,
403
+ 578,
404
+ 921
405
+ ],
406
+ "page_idx": 3
407
+ },
408
+ {
409
+ "type": "text",
410
+ "text": "Reconstruct. This module converts the memory representation to a reconstruction of the full state using a series of deconvolutions $( R )$ . ",
411
+ "bbox": [
412
+ 171,
413
+ 103,
414
+ 823,
415
+ 132
416
+ ],
417
+ "page_idx": 4
418
+ },
419
+ {
420
+ "type": "equation",
421
+ "img_path": "images/cd3dfe03a748a43fa6a17791860e4d0c23b0f8e53d2d44e6e08e8fbb699f8e8e.jpg",
422
+ "text": "$$\n\\tau _ { t } = R ( \\mu _ { t } )\n$$",
423
+ "text_format": "latex",
424
+ "bbox": [
425
+ 459,
426
+ 131,
427
+ 539,
428
+ 148
429
+ ],
430
+ "page_idx": 4
431
+ },
432
+ {
433
+ "type": "text",
434
+ "text": "A reconstruction can also be made immediately after the observation, i.e. $\\tau _ { t } ^ { w } = R ( \\mu _ { t } ^ { w } )$ . Reconstruction is essential for training the other two modules of DMM as we explain in section 4.2. The reconstruction error, or the discrepancy between the observation and the reconstruction under the attention window can be back-propagated through the write and step layers. ",
435
+ "bbox": [
436
+ 174,
437
+ 151,
438
+ 825,
439
+ 208
440
+ ],
441
+ "page_idx": 4
442
+ },
443
+ {
444
+ "type": "text",
445
+ "text": "4.2 TRAINING LOSS ",
446
+ "text_level": 1,
447
+ "bbox": [
448
+ 174,
449
+ 226,
450
+ 326,
451
+ 239
452
+ ],
453
+ "page_idx": 4
454
+ },
455
+ {
456
+ "type": "text",
457
+ "text": "The write loss, $L _ { w }$ is incurred under the current attention window immediately after the observation is made into $\\mu _ { t } ^ { w }$ . This ensures that the immediate observation is correctly encoded into the memory and trains the write and reconstruction modules. ",
458
+ "bbox": [
459
+ 174,
460
+ 252,
461
+ 823,
462
+ 294
463
+ ],
464
+ "page_idx": 4
465
+ },
466
+ {
467
+ "type": "equation",
468
+ "img_path": "images/1795d46a458f7322fd16e568682a80663baac6759c58840b3dee5a908b81c1d5.jpg",
469
+ "text": "$$\nL _ { w } = C _ { t } * \\lvert \\lvert \\tau _ { t } ^ { w } - o _ { t } \\rvert \\rvert _ { 2 } .\n$$",
470
+ "text_format": "latex",
471
+ "bbox": [
472
+ 416,
473
+ 301,
474
+ 581,
475
+ 319
476
+ ],
477
+ "page_idx": 4
478
+ },
479
+ {
480
+ "type": "text",
481
+ "text": "The step loss, $L _ { s }$ is incurred after stepping the map and under the attention window in the next step. ",
482
+ "bbox": [
483
+ 178,
484
+ 325,
485
+ 821,
486
+ 342
487
+ ],
488
+ "page_idx": 4
489
+ },
490
+ {
491
+ "type": "equation",
492
+ "img_path": "images/9e00058991d9eff6949c2983ee3da034de45b7fbf10ed0cd372fc6e58b93fc3e.jpg",
493
+ "text": "$$\nL _ { s } = C _ { t + 1 } * \\lvert \\lvert \\tau _ { t + 1 } - o _ { t + 1 } \\rvert \\rvert _ { 2 } .\n$$",
494
+ "text_format": "latex",
495
+ "bbox": [
496
+ 397,
497
+ 348,
498
+ 599,
499
+ 366
500
+ ],
501
+ "page_idx": 4
502
+ },
503
+ {
504
+ "type": "text",
505
+ "text": "This trains the step module, $S$ , to accurately model the motion of objects in the entire state, so that a faithful representation of the state can be guessed before the next observation is taken. Once the next observation is made, we can calculate the difference between what the agent’s model expected to be at the glimpse location and what actually was there. In figure 2 this is the difference between the images under the yellow rectangle in $\\tau _ { t }$ and $o _ { t }$ . This quantity is the amount of surprise in the dynamics model and we will use this again when training the glimpse agent. ",
506
+ "bbox": [
507
+ 173,
508
+ 372,
509
+ 825,
510
+ 458
511
+ ],
512
+ "page_idx": 4
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "In addition to the reconstruction loss, the absolute value of the output by the write and step modules is also penalized in order to regularize the contents of the DMM. The total loss for a single step within the rollout is (where $\\alpha = \\beta = 0 . 0 1$ here): ",
517
+ "bbox": [
518
+ 174,
519
+ 463,
520
+ 825,
521
+ 506
522
+ ],
523
+ "page_idx": 4
524
+ },
525
+ {
526
+ "type": "equation",
527
+ "img_path": "images/360dc0754258b57b1e040e6c30feeb483ced9791a514795c88b70bd5839d24e8.jpg",
528
+ "text": "$$\nL _ { t } = L _ { w } + L _ { s } + \\alpha * C _ { t } * | \\mu _ { t } ^ { w } | + \\beta * | S ( \\mu _ { t } ^ { w } , a _ { t } ) | .\n$$",
529
+ "text_format": "latex",
530
+ "bbox": [
531
+ 331,
532
+ 513,
533
+ 665,
534
+ 531
535
+ ],
536
+ "page_idx": 4
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "We sum this loss over the entire rollout and jointly minimize it over all steps. The reconstruction error at every location can be back-propagated to the step an observation was recorded there. ",
541
+ "bbox": [
542
+ 171,
543
+ 537,
544
+ 823,
545
+ 566
546
+ ],
547
+ "page_idx": 4
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "5 MAXIMIZING MUTUAL INFORMATION TO CONTROL ATTENTION ",
552
+ "text_level": 1,
553
+ "bbox": [
554
+ 174,
555
+ 587,
556
+ 738,
557
+ 604
558
+ ],
559
+ "page_idx": 4
560
+ },
561
+ {
562
+ "type": "text",
563
+ "text": "The intuition behind our approach is that attention should be used to gather information from the environment when and where it is required. The DMM is constantly modeling its environment and attention should be directed to parts of the world where the model is uncertain. This directly informs the agent about difficult to model parts of the environment, thus reducing uncertainty in the state as a whole. Secondly, by focusing on areas with hard to predict dynamics, more data can be collected from those areas, updating the model for future predictions. ",
564
+ "bbox": [
565
+ 173,
566
+ 618,
567
+ 825,
568
+ 704
569
+ ],
570
+ "page_idx": 4
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "5.1 MUTUAL INFORMATION OBJECTIVE ",
575
+ "text_level": 1,
576
+ "bbox": [
577
+ 176,
578
+ 720,
579
+ 464,
580
+ 734
581
+ ],
582
+ "page_idx": 4
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "The idea of reducing uncertainty about the environment can be captured in the language of information theory by using mutual information. Specifically, we propose selecting the location of the attention such that its mutual information with the state at the following step is maximized, ",
587
+ "bbox": [
588
+ 174,
589
+ 747,
590
+ 825,
591
+ 789
592
+ ],
593
+ "page_idx": 4
594
+ },
595
+ {
596
+ "type": "equation",
597
+ "img_path": "images/d81359222e0e62809fab29d390eccc0312d26db3d0aebcb34bf1c86e4c8a80bc.jpg",
598
+ "text": "$$\n\\operatorname* { m a x } _ { l _ { t } } I ( s _ { t + 1 } ; l _ { t } ) .\n$$",
599
+ "text_format": "latex",
600
+ "bbox": [
601
+ 442,
602
+ 796,
603
+ 553,
604
+ 820
605
+ ],
606
+ "page_idx": 4
607
+ },
608
+ {
609
+ "type": "text",
610
+ "text": "Where $l _ { t }$ is the location of the attention window at time $t$ . Eq. 1 can be expanded as ",
611
+ "bbox": [
612
+ 174,
613
+ 828,
614
+ 723,
615
+ 843
616
+ ],
617
+ "page_idx": 4
618
+ },
619
+ {
620
+ "type": "equation",
621
+ "img_path": "images/374898378a7127e04be4ba6b5f735f5dafc82543964db0d077d51cd2a10b76fb.jpg",
622
+ "text": "$$\n\\operatorname* { m a x } _ { l _ { t } } \\mathcal { H } ( s _ { t + 1 } ) - \\mathcal { H } ( s _ { t + 1 } | l _ { t } ) ,\n$$",
623
+ "text_format": "latex",
624
+ "bbox": [
625
+ 403,
626
+ 849,
627
+ 593,
628
+ 875
629
+ ],
630
+ "page_idx": 4
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "where $\\mathcal { H }$ denotes the entropy. This expansion brings out a very intuitive explanation of the objective. We would like to pick an attention location that maximizes the reduction in entropy (uncertainty) of the environment state after an observation is made. ",
635
+ "bbox": [
636
+ 176,
637
+ 881,
638
+ 825,
639
+ 924
640
+ ],
641
+ "page_idx": 4
642
+ },
643
+ {
644
+ "type": "text",
645
+ "text": "5.2 CURIOSITY DRIVEN ATTENTION ",
646
+ "text_level": 1,
647
+ "bbox": [
648
+ 174,
649
+ 103,
650
+ 436,
651
+ 117
652
+ ],
653
+ "page_idx": 5
654
+ },
655
+ {
656
+ "type": "text",
657
+ "text": "In this section, we show how maximizing the amount of surprise can lead to maximizing the mutual information. Let us begin by further expanding eq. 2. ",
658
+ "bbox": [
659
+ 169,
660
+ 130,
661
+ 825,
662
+ 160
663
+ ],
664
+ "page_idx": 5
665
+ },
666
+ {
667
+ "type": "equation",
668
+ "img_path": "images/bcb292ab5f7ebff21a3ce5878ad819b663aedfb3eab13521cd24926ffd181234.jpg",
669
+ "text": "$$\n\\begin{array} { r l } & { I ( s _ { t + 1 } ; l _ { t } ) = \\mathcal { H } ( s _ { t + 1 } ) - \\mathcal { H } ( s _ { t + 1 } | l _ { t } ) } \\\\ & { \\qquad = - \\displaystyle \\sum _ { s _ { t + 1 } } p ( s _ { t + 1 } ) \\log p ( s _ { t + 1 } ) + \\displaystyle \\sum _ { l _ { t } } p ( l _ { t } ) \\sum _ { s _ { t + 1 } } p ( s _ { t + 1 } | l _ { t } ) \\log p ( s _ { t + 1 } | l _ { t } ) } \\\\ & { \\qquad = - \\displaystyle \\sum _ { s _ { t + 1 } \\sim p ( s _ { t + 1 } ) } [ \\log p ( s _ { t + 1 } ) ] + \\displaystyle \\sum _ { l _ { t } } \\sum _ { s _ { t + 1 } } p ( s _ { t + 1 } , l _ { t } ) \\log p ( s _ { t + 1 } | l _ { t } ) } \\\\ & { \\qquad = - \\displaystyle \\operatorname* { l i m } _ { s _ { t + 1 } \\sim p ( s _ { t + 1 } ) } [ \\log p ( s _ { t + 1 } ) ] + \\displaystyle \\sum _ { s _ { t + 1 } , l _ { t } \\sim p ( s _ { t + 1 } , l _ { t } ) } [ \\log p ( s _ { t + 1 } | l _ { t } ) ] } \\end{array}\n$$",
670
+ "text_format": "latex",
671
+ "bbox": [
672
+ 230,
673
+ 165,
674
+ 766,
675
+ 285
676
+ ],
677
+ "page_idx": 5
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "So, maximizing mutual information between the attention location and the environment state is equivalent to minimizing $\\log p ( s _ { t + 1 } )$ and maximizing $\\log p ( s _ { t + 1 } | l _ { t } )$ under expectation. The first term is the log-likelihood of the next state prior to selecting $l _ { t }$ . Computing it requires marginalization over all possible $l _ { t }$ , which is prohibited by our environment as only a single partial observation from the full state can be provided to the agent. The second term, $\\log p ( s _ { t + 1 } | l _ { t } )$ , is computable at a single attention location from a single state and hence we will focus on maximizing this term. ",
682
+ "bbox": [
683
+ 173,
684
+ 297,
685
+ 825,
686
+ 383
687
+ ],
688
+ "page_idx": 5
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "Now, assume the agent’s belief over the true environment state at the next step, $s _ { t + 1 }$ , is represented by a Gaussian with unit variance around the reconstruction, $\\tau _ { t + 1 }$ . So, $s _ { t + 1 } \\sim \\mathcal { N } ( \\tau _ { t + 1 } , \\mathcal { T } )$ and ",
693
+ "bbox": [
694
+ 171,
695
+ 388,
696
+ 825,
697
+ 417
698
+ ],
699
+ "page_idx": 5
700
+ },
701
+ {
702
+ "type": "equation",
703
+ "img_path": "images/61f2658369b8ff1bcd855e190e8495473f2662450e8c7087c17d64b6a37a8eb1.jpg",
704
+ "text": "$$\n\\begin{array} { l } { \\log p ( s _ { t + 1 } | \\tau _ { t + 1 } ) \\propto \\log e x p [ - ( s _ { t + 1 } - \\tau _ { t + 1 } ) ^ { T } ( s _ { t + 1 } - \\tau _ { t + 1 } ) / 2 ] } \\\\ { \\quad \\quad \\quad = - \\displaystyle \\sum _ { i } ( s _ { t + 1 } ^ { i } - \\tau _ { t + 1 } ^ { i } ) ^ { 2 } / 2 } \\end{array}\n$$",
705
+ "text_format": "latex",
706
+ "bbox": [
707
+ 290,
708
+ 424,
709
+ 707,
710
+ 479
711
+ ],
712
+ "page_idx": 5
713
+ },
714
+ {
715
+ "type": "text",
716
+ "text": "So, minimizing the squared difference between $s _ { t + 1 }$ and $\\tau _ { t + 1 }$ leads to maximizing $\\log p ( s _ { t + 1 } | \\tau _ { t + 1 } )$ . Maximizing $\\log p ( s _ { t + 1 } \\vert \\tau _ { t + 1 } )$ in turn means maximizing $\\log p ( s _ { t + 1 } | l _ { t } )$ , since $\\tau _ { t + 1 }$ is constructed using the deterministic functions $W$ , $S$ , and $R$ once $l _ { t }$ has been picked (see section 4). ",
717
+ "bbox": [
718
+ 174,
719
+ 487,
720
+ 823,
721
+ 530
722
+ ],
723
+ "page_idx": 5
724
+ },
725
+ {
726
+ "type": "text",
727
+ "text": "In order to minimize the squared difference between $s _ { t + 1 }$ and $\\tau _ { t + 1 }$ , the agent needs to pick a location $l _ { t }$ that observes the maximum error between $s _ { t }$ and its reconstruction $\\tau _ { t }$ . This is because at step $t$ , if the agent observes the location with the highest reconstruction error, i.e. the least likelihood $p ( s _ { t } | \\tau _ { t } )$ , it will ensure that at the next time step $t + 1$ the agent has the most recent information on that region and can make a good reconstruction of it. Hence, maximizing $\\log p ( s _ { t + 1 } | l _ { t } )$ is equivalent to picking an $l _ { t }$ that will lead to the highest reconstruction error at step $t$ . ",
728
+ "bbox": [
729
+ 173,
730
+ 536,
731
+ 825,
732
+ 621
733
+ ],
734
+ "page_idx": 5
735
+ },
736
+ {
737
+ "type": "equation",
738
+ "img_path": "images/e83e27e473d3926180a3d33c43fbc5eedbc7e396ddfc6200913ab6e24796efcb.jpg",
739
+ "text": "$$\n\\operatorname* { m a x } _ { l _ { t } } \\log p ( s _ { t + 1 } | l _ { t } ) \\implies \\operatorname* { m a x } _ { l _ { t } } \\sum _ { i \\in I _ { t } } ( s _ { t } ^ { i } - \\tau _ { t } ^ { i } ) ^ { 2 } / 2\n$$",
740
+ "text_format": "latex",
741
+ "bbox": [
742
+ 341,
743
+ 627,
744
+ 656,
745
+ 662
746
+ ],
747
+ "page_idx": 5
748
+ },
749
+ {
750
+ "type": "text",
751
+ "text": "where $I _ { t }$ forms the set of indices under the window at location $l _ { t }$ . Directly optimizing this quantity with respect to $l _ { t }$ is not possible as it can only be computed once an observation has been made and only at a single location. Hence, the glimpse agent must learn to predict the location that is most likely to result in high reconstruction error before an observation is made. Our approach is to formulate the glimpse agent as a reinforcement learner with the reconstruction error as its reward. ",
752
+ "bbox": [
753
+ 174,
754
+ 669,
755
+ 825,
756
+ 739
757
+ ],
758
+ "page_idx": 5
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "An interpretation of this objective is that the glimpse agent is surprise seeking, or curiosity driven. It is attending to parts of the state that are novel in the sense that they are difficult for the agent’s current model to predict. Another interpretation is that the glimpse agent is acting adversarially to the DMM’s model of the environment. At each step the glimpse agent tries to focus on parts of the state that are the most difficult for DMM to reconstruct. By doing so, it is indirectly creating a curriculum of increasingly difficult to model aspects of the environment. ",
763
+ "bbox": [
764
+ 173,
765
+ 746,
766
+ 826,
767
+ 830
768
+ ],
769
+ "page_idx": 5
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "5.3 FULL TRAINING OBJECTIVE ",
774
+ "text_level": 1,
775
+ "bbox": [
776
+ 176,
777
+ 848,
778
+ 411,
779
+ 863
780
+ ],
781
+ "page_idx": 5
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "Let us look at a different expansion of the objective in eq. 1, ",
786
+ "bbox": [
787
+ 173,
788
+ 875,
789
+ 568,
790
+ 890
791
+ ],
792
+ "page_idx": 5
793
+ },
794
+ {
795
+ "type": "equation",
796
+ "img_path": "images/a9c2af5cae878e02e50bb475d94d672a21c7cabf73fe6eb3a99862fa3d4d8e51.jpg",
797
+ "text": "$$\nI ( s _ { t + 1 } ; l _ { t } ) = \\operatorname* { m a x } _ { l _ { t } } \\mathcal { H } ( l _ { t } ) - \\mathcal { H } ( l _ { t } | s _ { t + 1 } ) .\n$$",
798
+ "text_format": "latex",
799
+ "bbox": [
800
+ 367,
801
+ 897,
802
+ 629,
803
+ 921
804
+ ],
805
+ "page_idx": 5
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "The first term is $\\mathcal { H } ( l _ { t } )$ , the entropy over the attention location, which is controlled by the policy of the glimpse agent. This term can easily be maximized by standard RL algorithms, such as A2C (Mnih et al., 2016; Wu et al., 2017), using weighted entropy maximization. ",
810
+ "bbox": [
811
+ 173,
812
+ 103,
813
+ 823,
814
+ 146
815
+ ],
816
+ "page_idx": 6
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "Combining the first term from equation 5 and second term from equation 2, the final objective that we use to train the glimpse agent is ",
821
+ "bbox": [
822
+ 173,
823
+ 152,
824
+ 823,
825
+ 181
826
+ ],
827
+ "page_idx": 6
828
+ },
829
+ {
830
+ "type": "equation",
831
+ "img_path": "images/348340b7ddc057670d8bcea9cd2515f9b471e7e3d0dfa2638ffe1f2d16205dd3.jpg",
832
+ "text": "$$\n\\operatorname* { m a x } _ { l _ { t } } \\mathcal { H } ( l _ { t } ) - \\mathcal { H } ( s _ { t + 1 } | l _ { t } ) \\equiv \\alpha \\mathcal { H } ( \\pi _ { g l i m p s e } ) + \\operatorname* { m a x } _ { l _ { t } } \\sum _ { i \\in I _ { t } } ( s _ { t } ^ { i } - \\tau _ { t } ^ { i } ) ^ { 2 } / 2 ,\n$$",
833
+ "text_format": "latex",
834
+ "bbox": [
835
+ 274,
836
+ 188,
837
+ 720,
838
+ 222
839
+ ],
840
+ "page_idx": 6
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "where $\\alpha$ is the entropy weighting set to 0.001 in our experiments. ",
845
+ "bbox": [
846
+ 174,
847
+ 227,
848
+ 602,
849
+ 242
850
+ ],
851
+ "page_idx": 6
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "Note that this objective is not the mutual information from equation 1. It is possible to design a variational algorithm that maximizes the approximate mutual information based on the expansion in eq. 5 alone (instead of mixing terms from both the expansions). Empirically, however, we found that our objective performs better than the variational approximation to mutual information. See section A.4 for more detail. ",
856
+ "bbox": [
857
+ 173,
858
+ 250,
859
+ 826,
860
+ 319
861
+ ],
862
+ "page_idx": 6
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "6 RESULTS ",
867
+ "text_level": 1,
868
+ "bbox": [
869
+ 174,
870
+ 339,
871
+ 282,
872
+ 354
873
+ ],
874
+ "page_idx": 6
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "We evaluate our approach in two environments: a gridworld environment (figure 5) and PhysEnv (figure 1). In both environments, the task is to navigate to a goal while avoiding obstacles and enemies. The agent’s actions are movement in the four discrete cardinal directions. In the gridworld, the state is a one-hot image of the objects in the environment (agent, walls, enemies and goal). The agent’s and enemies’ movements are restricted to the grid squares and the dynamics of the enemies are simple: moving in straight lines until an obstacle is hit in which case it reflects. In PhysEnv, observations are provided as RGB images and the motions of the objects are more varied. ",
879
+ "bbox": [
880
+ 173,
881
+ 371,
882
+ 825,
883
+ 469
884
+ ],
885
+ "page_idx": 6
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "The glimpse agent $^ +$ DMM are first trained on offline data of state and action trajectories (no reward) collected from each environment. More details on data collection are provided in section A.1. We evaluate this part of the training by how accurately the full state is reconstructed by DMM at each step. Once the glimpse agent $+ \\mathrm { D M M }$ have converged, i.e. the reconstruction loss has plateaued, we freeze their parameters and initialize an agent within the environment. The glimpse agent $^ +$ DMM serve as fixed components within the agent while it is learns to solve a task. The agent is trained using an off-the-shelf RL algorithm PPO (Schulman et al., 2017) and is evaluated by the total environment reward it collects during testing episodes. ",
890
+ "bbox": [
891
+ 173,
892
+ 474,
893
+ 825,
894
+ 587
895
+ ],
896
+ "page_idx": 6
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "We compare our method against baselines inspired from related work. In the follow baseline the attention is always focused on the agent itself. This is a formulation of the partial observability as seen in Parisotto & Salakhutdinov (2017). Next, the environment baseline mimics the approach by Mnih et al. (2014), where the environment rewards are used to train the glimpse agent. Finally, the random baseline moves the attention randomly at each time step. For the environment task, we have an additional baseline, full, where the full state is provided to the agent to solve the task. This is an upper limit for how well any method that only receives partial observations can perform. ",
901
+ "bbox": [
902
+ 174,
903
+ 593,
904
+ 825,
905
+ 691
906
+ ],
907
+ "page_idx": 6
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "6.1 STATE RECONSTRUCTION ",
912
+ "text_level": 1,
913
+ "bbox": [
914
+ 174,
915
+ 708,
916
+ 393,
917
+ 722
918
+ ],
919
+ "page_idx": 6
920
+ },
921
+ {
922
+ "type": "table",
923
+ "img_path": "images/71092c719b65f81742005a021994a55980797aaa67ea2dd72ad222f3683f81a9.jpg",
924
+ "table_caption": [],
925
+ "table_footnote": [],
926
+ "table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>12 reward (ours)</td><td rowspan=1 colspan=1>random</td><td rowspan=1 colspan=1>follow</td><td rowspan=1 colspan=1>environment</td></tr><tr><td rowspan=1 colspan=1>Gridworld</td><td rowspan=1 colspan=1>0.00555</td><td rowspan=1 colspan=1>0.007666</td><td rowspan=1 colspan=1>0.01941</td><td rowspan=1 colspan=1>0.00827</td></tr><tr><td rowspan=1 colspan=1>PhysEnv</td><td rowspan=1 colspan=1>0.0521</td><td rowspan=1 colspan=1>0.0614</td><td rowspan=1 colspan=1>0.1186</td><td rowspan=1 colspan=1>0.0826</td></tr></table>",
927
+ "bbox": [
928
+ 263,
929
+ 738,
930
+ 733,
931
+ 784
932
+ ],
933
+ "page_idx": 6
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "Table 1: Per-pixel L2 loss between agent’s reconstruction $\\tau$ and the ground truth full state $s$ . All methods only see partial observations, but must attempt to reconstruct the full state from internal representation. In both environments, our method has the lowest reconstruction error. ",
938
+ "bbox": [
939
+ 176,
940
+ 794,
941
+ 823,
942
+ 835
943
+ ],
944
+ "page_idx": 6
945
+ },
946
+ {
947
+ "type": "text",
948
+ "text": "We measure the performance of the glimpse agent $+ { \\bf D M M }$ by the average reconstruction error to the true full (unobserved) state in unseen testing episodes. 25 consecutive observations from 6 unseen test episodes are passed through each model and error is averaged over reconstructions at each time step. This gauges the ability of our attention mechanism and memory to reconstruct the full state using only partial observations. Table 1 shows that using surprise driven reward (our approach) for learning attention control leads to a lower reconstruction error than the other baselines. See figures 5 through 9 in the appendix for visualizations of the reconstructions and training error. In particular, figure 7 and 8 show qualitative comparisons between our method with the baselines. Broadly speaking, our method learns to focus on dynamic objects within the environment and preserve them over many steps in the memory, whereas the baselines lose track of or blur objects as seen in their state reconstructions. ",
949
+ "bbox": [
950
+ 174,
951
+ 853,
952
+ 825,
953
+ 924
954
+ ],
955
+ "page_idx": 6
956
+ },
957
+ {
958
+ "type": "text",
959
+ "text": "",
960
+ "bbox": [
961
+ 174,
962
+ 103,
963
+ 825,
964
+ 186
965
+ ],
966
+ "page_idx": 7
967
+ },
968
+ {
969
+ "type": "image",
970
+ "img_path": "images/a4007fb83f0203dda06cb9cef47af6d46205c4b567c68486399ad510a9b2b788.jpg",
971
+ "image_caption": [
972
+ "Figure 3: (left) Object-wise breakdown of reconstruction error in gridworld. (right) $\\%$ of frames in which the object occurs, i.e. the frequency with which the attention is focuses on a particular object. "
973
+ ],
974
+ "image_footnote": [],
975
+ "bbox": [
976
+ 245,
977
+ 205,
978
+ 751,
979
+ 344
980
+ ],
981
+ "page_idx": 7
982
+ },
983
+ {
984
+ "type": "text",
985
+ "text": "Figure 3 shows an analysis of what objects are under focus during training in the gridworld environment and their corresponding reconstruction error. The attention forms an interesting curriculum for training the DMM, where it learns to focus on different objects in the environment over time. It starts with walls, then moves to the agent itself, then goal and finally the enemies. Thus, it moves gradually from static to dynamic, harder to model parts of the state, allowing the DMM to learn how to accurately model each object. This very interesting curriculum-like behavior emerges naturally and is not pre-programmed into DMM or the attention agent. It is a consequence of maximizing surprise at every time step. See section A.2 for a more detailed discussion. ",
986
+ "bbox": [
987
+ 173,
988
+ 409,
989
+ 825,
990
+ 520
991
+ ],
992
+ "page_idx": 7
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "6.2 REINFORCEMENT LEARNING ",
997
+ "text_level": 1,
998
+ "bbox": [
999
+ 176,
1000
+ 539,
1001
+ 415,
1002
+ 553
1003
+ ],
1004
+ "page_idx": 7
1005
+ },
1006
+ {
1007
+ "type": "image",
1008
+ "img_path": "images/ef6d6a60aa12e4e740937406379fe1c39ede3ddf9eb0d647ace2af3595c1d0ed.jpg",
1009
+ "image_caption": [
1010
+ "Figure 4: Average testing reward for goal seeking task in PhysEnv (left) and gridworld (right). Comparison between agent with full observations (upper limit) and partial observations trained with surprise (ours), environment rewards and simply following the agent’s location. "
1011
+ ],
1012
+ "image_footnote": [],
1013
+ "bbox": [
1014
+ 215,
1015
+ 574,
1016
+ 784,
1017
+ 733
1018
+ ],
1019
+ "page_idx": 7
1020
+ },
1021
+ {
1022
+ "type": "text",
1023
+ "text": "Figure 4 shows the average episodic reward over five testing episodes during the training of the agent. Our method approaches the performance of the upper bound agent that receives full environment states in the gridworld environment. The environment baseline performs similarly to our approach in gridworld, but does poorly in PhysEnv, where our approach performs the best. This may be because the attention policy of the environment baseline has high entropy and ends up exploring large parts of the state within an episode. But it does not learn to focus on the most unpredictable parts of the state as our method does. The follow baseline performs poorly in both environments, likely because it only focuses on the agent and does not explore the rest of the state. ",
1024
+ "bbox": [
1025
+ 173,
1026
+ 811,
1027
+ 825,
1028
+ 924
1029
+ ],
1030
+ "page_idx": 7
1031
+ },
1032
+ {
1033
+ "type": "text",
1034
+ "text": "We also show the performance of our agent (l2 online) in the condition where the DMM and glimpse agent is trained online along with the policy, all components starting from random initialization. This agent did not have a pretraining step and was trained entirely on random exploratory data, therefore obviating the need of a pretraining dataset. The performance is slightly worse than the pretrained agent. This is an encouraging result in a particularly challenging setting of a non-stationary state space as the memory representation and glimpse policy are changing while the agent learns. ",
1035
+ "bbox": [
1036
+ 174,
1037
+ 103,
1038
+ 825,
1039
+ 188
1040
+ ],
1041
+ "page_idx": 8
1042
+ },
1043
+ {
1044
+ "type": "text",
1045
+ "text": "7 CONCLUSIONS ",
1046
+ "text_level": 1,
1047
+ "bbox": [
1048
+ 176,
1049
+ 208,
1050
+ 328,
1051
+ 223
1052
+ ],
1053
+ "page_idx": 8
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "We have presented an approach of using mutual information to control a hard attention window in environments with dynamic objects. From partial observations under the attention window, our system is able to reconstruct the full state at every time step with the least error. The representation learned using our method enables RL agents to solve tasks within the environment, while the baseline methods are unable to learn useful representations on the same memory architecture. This demonstrates that attention control plays a large role in enabling task completion. ",
1058
+ "bbox": [
1059
+ 174,
1060
+ 239,
1061
+ 825,
1062
+ 323
1063
+ ],
1064
+ "page_idx": 8
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "Note that our attention control objective is independent of the task. It is solely concerned with gathering information from the environment where it is most unpredictable. This is similar to curiosity driven RL that seeks novel states or surprising transitions. Hence, attention control learned in this manner is a generic solution that can be applied to many downstream tasks. It may be able to be combined with task-specific attention control by fine-tuning on a task reward. A better foveal glimpse model may also be used instead of the fixed size hard attention used here. We made an assumption that only one glimpse is allowed per environment state. But the rate of collecting glimpses may be variable with respect to environment speed. ",
1069
+ "bbox": [
1070
+ 174,
1071
+ 330,
1072
+ 825,
1073
+ 441
1074
+ ],
1075
+ "page_idx": 8
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "Curiosity based approaches tend to suffer from the “noisy TV” problem (Savinov et al., 2018) where the agent tends to get distracted by and focus on random, unpredictable events in the environment. Orthogonal approaches have been developed to counter this common weakness by, for example, taking into account the agent’s own actions (Pathak et al., 2017). These approaches can be combined with our method as well. We leave the incorporation of this in attention control for future work. ",
1080
+ "bbox": [
1081
+ 174,
1082
+ 448,
1083
+ 825,
1084
+ 517
1085
+ ],
1086
+ "page_idx": 8
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "REFERENCES ",
1091
+ "text_level": 1,
1092
+ "bbox": [
1093
+ 176,
1094
+ 540,
1095
+ 285,
1096
+ 554
1097
+ ],
1098
+ "page_idx": 8
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "Joshua Achiam, Harrison Edwards, Dario Amodei, and Pieter Abbeel. Variational option discovery algorithms. arXiv preprint arXiv:1807.10299, 2018. \nBogdan Alexe, Nicolas Heess, Yee W Teh, and Vittorio Ferrari. Searching for objects driven by context. In Advances in Neural Information Processing Systems, pp. 881–889, 2012. \nPierre Barrouillet, Sophie Bernardin, and Valerie Camos. Time constraints and resource sharing in ´ adults’ working memory spans. Journal of Experimental Psychology: General, 133(1):83, 2004. \nMarc Bellemare, Sriram Srinivasan, Georg Ostrovski, Tom Schaul, David Saxton, and Remi Munos. Unifying count-based exploration and intrinsic motivation. In Advances in neural information processing systems, pp. 1471–1479, 2016. \nChristopher Berner, Greg Brockman, Brooke Chan, Vicki Cheung, Przemysław Debiak, Christy Dennison, David Farhi, Quirin Fischer, Shariq Hashme, Chris Hesse, et al. Dota 2 with large scale deep reinforcement learning. arXiv preprint arXiv:1912.06680, 2019. \nGianfranco Bosco, Sergio Delle Monache, and Francesco Lacquaniti. Catching what we can’t see: manual interception of occluded fly-ball trajectories. PLoS One, 7(11):e49381, 2012. \nNicholas J Butko and Javier R Movellan. Optimal scanning for faster object detection. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pp. 2751–2758. IEEE, 2009. \nMisha Denil, Loris Bazzani, Hugo Larochelle, and Nando de Freitas. Learning where to attend with deep architectures for image tracking. Neural computation, 24(8):2151–2184, 2012. \nYilun Du and Karthik Narasimhan. Task-agnostic dynamics priors for deep reinforcement learning. arXiv preprint arXiv:1905.04819, 2019. ",
1103
+ "bbox": [
1104
+ 171,
1105
+ 563,
1106
+ 826,
1107
+ 926
1108
+ ],
1109
+ "page_idx": 8
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "Benjamin Eysenbach, Abhishek Gupta, Julian Ibarz, and Sergey Levine. Diversity is all you need: Learning skills without a reward function. arXiv preprint arXiv:1802.06070, 2018. ",
1114
+ "bbox": [
1115
+ 173,
1116
+ 103,
1117
+ 823,
1118
+ 132
1119
+ ],
1120
+ "page_idx": 9
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "Maryam Fourtassi, Gilles Rode, and Laure Pisella. Using eye movements to explore mental representations of space. Annals of Physical and Rehabilitation Medicine, 60(3):160–163, 2017. ",
1125
+ "bbox": [
1126
+ 171,
1127
+ 141,
1128
+ 821,
1129
+ 170
1130
+ ],
1131
+ "page_idx": 9
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "Daniel Freeman, David Ha, and Luke Metz. Learning to predict without looking ahead: World models without forward prediction. In Advances in Neural Information Processing Systems, pp. 5379–5390, 2019. ",
1136
+ "bbox": [
1137
+ 174,
1138
+ 179,
1139
+ 821,
1140
+ 220
1141
+ ],
1142
+ "page_idx": 9
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka GrabskaBarwinska, Sergio G ´ omez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, ´ et al. Hybrid computing using a neural network with dynamic external memory. Nature, 538 (7626):471–476, 2016. ",
1147
+ "bbox": [
1148
+ 173,
1149
+ 229,
1150
+ 825,
1151
+ 286
1152
+ ],
1153
+ "page_idx": 9
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "Karol Gregor, Danilo Jimenez Rezende, and Daan Wierstra. Variational intrinsic control. arXiv preprint arXiv:1611.07507, 2016. ",
1158
+ "bbox": [
1159
+ 173,
1160
+ 295,
1161
+ 823,
1162
+ 324
1163
+ ],
1164
+ "page_idx": 9
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "David Ha and Jurgen Schmidhuber. World models. ¨ arXiv preprint arXiv:1803.10122, 2018. ",
1169
+ "bbox": [
1170
+ 171,
1171
+ 332,
1172
+ 776,
1173
+ 348
1174
+ ],
1175
+ "page_idx": 9
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "Matthew Hausknecht and Peter Stone. Deep recurrent q-learning for partially observable mdps. arXiv preprint arXiv:1507.06527, 2015. ",
1180
+ "bbox": [
1181
+ 173,
1182
+ 357,
1183
+ 820,
1184
+ 386
1185
+ ],
1186
+ "page_idx": 9
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "Rein Houthooft, Xi Chen, Yan Duan, John Schulman, Filip De Turck, and Pieter Abbeel. Vime: Variational information maximizing exploration. In Advances in Neural Information Processing Systems, pp. 1109–1117, 2016. ",
1191
+ "bbox": [
1192
+ 173,
1193
+ 393,
1194
+ 825,
1195
+ 438
1196
+ ],
1197
+ "page_idx": 9
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "Laurent Itti. Quantifying the contribution of low-level saliency to human eye movements in dynamic scenes. Visual Cognition, 12(6):1093–1123, 2005. ",
1202
+ "bbox": [
1203
+ 173,
1204
+ 445,
1205
+ 821,
1206
+ 474
1207
+ ],
1208
+ "page_idx": 9
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "Laurent Itti, Christof Koch, and Ernst Niebur. A model of saliency-based visual attention for rapid scene analysis. IEEE Transactions on pattern analysis and machine intelligence, 20(11):1254– 1259, 1998. ",
1213
+ "bbox": [
1214
+ 173,
1215
+ 483,
1216
+ 825,
1217
+ 526
1218
+ ],
1219
+ "page_idx": 9
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "Shiva Kamkar, Fatemeh Ghezloo, Hamid Abrishami Moghaddam, Ali Borji, and Reza Lashgari. Multiple-target tracking in human and machine vision. PLOS Computational Biology, 16(4): e1007698, 2020. ",
1224
+ "bbox": [
1225
+ 173,
1226
+ 535,
1227
+ 825,
1228
+ 577
1229
+ ],
1230
+ "page_idx": 9
1231
+ },
1232
+ {
1233
+ "type": "text",
1234
+ "text": "Arbaaz Khan, Clark Zhang, Nikolay Atanasov, Konstantinos Karydis, Vijay Kumar, and Daniel D Lee. Memory augmented control networks. arXiv preprint arXiv:1709.05706, 2017. ",
1235
+ "bbox": [
1236
+ 171,
1237
+ 587,
1238
+ 823,
1239
+ 616
1240
+ ],
1241
+ "page_idx": 9
1242
+ },
1243
+ {
1244
+ "type": "text",
1245
+ "text": "Hugo Larochelle and Geoffrey E Hinton. Learning to combine foveal glimpses with a third-order boltzmann machine. In J. D. Lafferty, C. K. I. Williams, J. Shawe-Taylor, R. S. Zemel, and A. Culotta (eds.), Advances in Neural Information Processing Systems 23, pp. 1243–1251. Curran Associates, Inc., 2010. ",
1246
+ "bbox": [
1247
+ 173,
1248
+ 623,
1249
+ 825,
1250
+ 681
1251
+ ],
1252
+ "page_idx": 9
1253
+ },
1254
+ {
1255
+ "type": "text",
1256
+ "text": "Volodymyr Mnih, Nicolas Heess, Alex Graves, et al. Recurrent models of visual attention. In Advances in neural information processing systems, pp. 2204–2212, 2014. ",
1257
+ "bbox": [
1258
+ 169,
1259
+ 689,
1260
+ 823,
1261
+ 719
1262
+ ],
1263
+ "page_idx": 9
1264
+ },
1265
+ {
1266
+ "type": "text",
1267
+ "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. nature, 518(7540):529–533, 2015. ",
1268
+ "bbox": [
1269
+ 174,
1270
+ 727,
1271
+ 823,
1272
+ 770
1273
+ ],
1274
+ "page_idx": 9
1275
+ },
1276
+ {
1277
+ "type": "text",
1278
+ "text": "Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In International conference on machine learning, pp. 1928–1937, 2016. ",
1279
+ "bbox": [
1280
+ 176,
1281
+ 777,
1282
+ 823,
1283
+ 821
1284
+ ],
1285
+ "page_idx": 9
1286
+ },
1287
+ {
1288
+ "type": "text",
1289
+ "text": "Shakir Mohamed and Danilo Jimenez Rezende. Variational information maximisation for intrinsically motivated reinforcement learning. In Advances in neural information processing systems, pp. 2125–2133, 2015. ",
1290
+ "bbox": [
1291
+ 173,
1292
+ 829,
1293
+ 823,
1294
+ 872
1295
+ ],
1296
+ "page_idx": 9
1297
+ },
1298
+ {
1299
+ "type": "text",
1300
+ "text": "Lucas Paletta, Gerald Fritz, and Christin Seifert. Q-learning of sequential attention for visual object recognition from informative local descriptors. In Proceedings of the 22nd international conference on Machine learning, pp. 649–656, 2005. ",
1301
+ "bbox": [
1302
+ 174,
1303
+ 881,
1304
+ 825,
1305
+ 924
1306
+ ],
1307
+ "page_idx": 9
1308
+ },
1309
+ {
1310
+ "type": "text",
1311
+ "text": "Emilio Parisotto and Ruslan Salakhutdinov. Neural map: Structured memory for deep reinforcement learning. arXiv preprint arXiv:1702.08360, 2017. ",
1312
+ "bbox": [
1313
+ 171,
1314
+ 103,
1315
+ 823,
1316
+ 132
1317
+ ],
1318
+ "page_idx": 10
1319
+ },
1320
+ {
1321
+ "type": "text",
1322
+ "text": "Deepak Pathak, Pulkit Agrawal, Alexei A Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 16–17, 2017. ",
1323
+ "bbox": [
1324
+ 176,
1325
+ 140,
1326
+ 823,
1327
+ 184
1328
+ ],
1329
+ "page_idx": 10
1330
+ },
1331
+ {
1332
+ "type": "text",
1333
+ "text": "Nikolay Savinov, Anton Raichuk, Raphael Marinier, Damien Vincent, Marc Pollefeys, Timo- ¨ thy Lillicrap, and Sylvain Gelly. Episodic curiosity through reachability. arXiv preprint arXiv:1810.02274, 2018. ",
1334
+ "bbox": [
1335
+ 173,
1336
+ 193,
1337
+ 823,
1338
+ 234
1339
+ ],
1340
+ "page_idx": 10
1341
+ },
1342
+ {
1343
+ "type": "text",
1344
+ "text": "Jurgen Schmidhuber. A possibility for implementing curiosity and boredom in model-building neu- ¨ ral controllers. In Proc. of the international conference on simulation of adaptive behavior: From animals to animats, pp. 222–227, 1991. ",
1345
+ "bbox": [
1346
+ 171,
1347
+ 244,
1348
+ 823,
1349
+ 287
1350
+ ],
1351
+ "page_idx": 10
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "text": "John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017. ",
1356
+ "bbox": [
1357
+ 171,
1358
+ 295,
1359
+ 821,
1360
+ 325
1361
+ ],
1362
+ "page_idx": 10
1363
+ },
1364
+ {
1365
+ "type": "text",
1366
+ "text": "Archit Sharma, Shixiang Gu, Sergey Levine, Vikash Kumar, and Karol Hausman. Dynamics-aware unsupervised discovery of skills. arXiv preprint arXiv:1907.01657, 2019. ",
1367
+ "bbox": [
1368
+ 173,
1369
+ 333,
1370
+ 823,
1371
+ 363
1372
+ ],
1373
+ "page_idx": 10
1374
+ },
1375
+ {
1376
+ "type": "text",
1377
+ "text": "David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of go without human knowledge. nature, 550(7676):354–359, 2017. ",
1378
+ "bbox": [
1379
+ 174,
1380
+ 371,
1381
+ 823,
1382
+ 414
1383
+ ],
1384
+ "page_idx": 10
1385
+ },
1386
+ {
1387
+ "type": "text",
1388
+ "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 Advances in neural information processing systems, pp. 5998–6008, 2017. ",
1389
+ "bbox": [
1390
+ 174,
1391
+ 422,
1392
+ 823,
1393
+ 465
1394
+ ],
1395
+ "page_idx": 10
1396
+ },
1397
+ {
1398
+ "type": "text",
1399
+ "text": "Sean Welleck, Jialin Mao, Kyunghyun Cho, and Zheng Zhang. Saliency-based sequential image attention with multiset prediction. In Advances in neural information processing systems, pp. 5173–5183, 2017. ",
1400
+ "bbox": [
1401
+ 173,
1402
+ 473,
1403
+ 823,
1404
+ 517
1405
+ ],
1406
+ "page_idx": 10
1407
+ },
1408
+ {
1409
+ "type": "text",
1410
+ "text": "Yuhuai Wu, Elman Mansimov, Roger B Grosse, Shun Liao, and Jimmy Ba. Scalable trust-region method for deep reinforcement learning using kronecker-factored approximation. In Advances in neural information processing systems, pp. 5279–5288, 2017. ",
1411
+ "bbox": [
1412
+ 176,
1413
+ 526,
1414
+ 823,
1415
+ 569
1416
+ ],
1417
+ "page_idx": 10
1418
+ },
1419
+ {
1420
+ "type": "text",
1421
+ "text": "Alfred L Yarbus. Eye movements and vision. Springer, 2013. ",
1422
+ "bbox": [
1423
+ 173,
1424
+ 577,
1425
+ 575,
1426
+ 593
1427
+ ],
1428
+ "page_idx": 10
1429
+ },
1430
+ {
1431
+ "type": "text",
1432
+ "text": "Yuechen Yu, Yilei Xiong, Weilin Huang, and Matthew R Scott. Deformable siamese attention networks for visual object tracking. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 6728–6737, 2020. ",
1433
+ "bbox": [
1434
+ 176,
1435
+ 602,
1436
+ 823,
1437
+ 645
1438
+ ],
1439
+ "page_idx": 10
1440
+ },
1441
+ {
1442
+ "type": "text",
1443
+ "text": "Daniel Zoran, Mike Chrzanowski, Po-Sen Huang, Sven Gowal, Alex Mott, and Pushmeet Kohli. Towards robust image classification using sequential attention models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9483–9492, 2020. ",
1444
+ "bbox": [
1445
+ 176,
1446
+ 652,
1447
+ 823,
1448
+ 696
1449
+ ],
1450
+ "page_idx": 10
1451
+ },
1452
+ {
1453
+ "type": "text",
1454
+ "text": "A APPENDIX ",
1455
+ "text_level": 1,
1456
+ "bbox": [
1457
+ 176,
1458
+ 102,
1459
+ 297,
1460
+ 117
1461
+ ],
1462
+ "page_idx": 11
1463
+ },
1464
+ {
1465
+ "type": "text",
1466
+ "text": "A.1 DETAILS OF DATA COLLECTION ",
1467
+ "text_level": 1,
1468
+ "bbox": [
1469
+ 176,
1470
+ 136,
1471
+ 434,
1472
+ 150
1473
+ ],
1474
+ "page_idx": 11
1475
+ },
1476
+ {
1477
+ "type": "text",
1478
+ "text": "For gridworld we used 20000 random steps in the environment to create this training set. In PhysEnv we used a previously trained agent to generate 500,000 steps of demonstrations. We experienced that using a random policy in PhysEnv led to quick deaths of the agent with insufficient episode lengths for learning. In both cases, the data are sequences of full states and agent actions from multiple episodes. In PhysEnv, the map size was $2 1 \\times 2 1$ compared to the full state size of $8 4 \\times 8 4$ and in gridworld both the map and state were $1 0 \\times 1 0$ . The size of the attention window was fixed to be $3 \\times 3$ in the gridworld $9 \\%$ of the full state visible in an observation) and $2 1 \\times 2 1$ in PhysEnv $( 6 . 2 5 \\%$ of the state visible). ",
1479
+ "bbox": [
1480
+ 174,
1481
+ 165,
1482
+ 825,
1483
+ 275
1484
+ ],
1485
+ "page_idx": 11
1486
+ },
1487
+ {
1488
+ "type": "text",
1489
+ "text": "A.2 VISUALIZATIONS OF GLIMPSES DURING TRAINING ",
1490
+ "text_level": 1,
1491
+ "bbox": [
1492
+ 174,
1493
+ 297,
1494
+ 573,
1495
+ 311
1496
+ ],
1497
+ "page_idx": 11
1498
+ },
1499
+ {
1500
+ "type": "text",
1501
+ "text": "We will discuss where the attention focuses and how that effects the reconstruction (and underlying belief) as the training progresses for the gridworld environment. Please refer to 3 for this discussion. ",
1502
+ "bbox": [
1503
+ 174,
1504
+ 325,
1505
+ 823,
1506
+ 353
1507
+ ],
1508
+ "page_idx": 11
1509
+ },
1510
+ {
1511
+ "type": "text",
1512
+ "text": "Initially, the attention learns to focus on the wall objects and the corresponding reconstruction error for the walls decreases rapidly (3.b). This is because the walls are long objects in the environment, present at multiple pixels and side-by-side, providing the largest and most reliable source of error under the attention window initially. The error is provided as reward to the glimpse agent, hence it seeks more walls in the state. ",
1513
+ "bbox": [
1514
+ 174,
1515
+ 361,
1516
+ 825,
1517
+ 430
1518
+ ],
1519
+ "page_idx": 11
1520
+ },
1521
+ {
1522
+ "type": "text",
1523
+ "text": "Soon, the error it receives from walls decreases as the agent’s DMM learns to persistently record the location of stationary walls over multiple time steps. Then around 10000 iters, the attention switches to focusing on the agent’s location itself. This is because the agent’s apparent erratic movements provide a larger reward due to their unpredictability than the stationary walls can anymore. This has dual consequences. First, since now the DMM is seeing a lot of examples of the agent’s movement, it learns to accurately model the agent based on an initial state and its actions and the reconstruction error corresponding to the agent falls. At its peak, over $70 \\%$ of glimpses contain the agent within them (figure 3.b). Interestingly, the error corresponding to the wall and goal objects rises as some forgetting of the representation and dynamics of these objects occurs. A little before 20000 iters though, the agent has learnt to represent simultaneously all three objects and it switches attention to the enemies, the only remaining un-modeled objects in the environment. The enemies move predictably, bouncing off walls and other objects, but otherwise in straight lines. The agent does not have direct access to their actions and must infer their motion over multiple time steps using only glimpses. ",
1524
+ "bbox": [
1525
+ 174,
1526
+ 438,
1527
+ 825,
1528
+ 631
1529
+ ],
1530
+ "page_idx": 11
1531
+ },
1532
+ {
1533
+ "type": "text",
1534
+ "text": "Figures 5 and 6 visualize the behavior of the glimpse agent during the initial stages of training. Initially, (100 iters), the attention mostly moves around randomly as can be seen by the heatmap being active throughout the state. The reconstruction does not correspond to anything in the real state since the agent has only just begun learning. The glimpse agent here is receiving high reward for pretty much every location in the state. By 2000 iters, the glimpse agent has learnt to mainly focus on the wall once it locates it. This can be seen in the high probabilities of the glimpse agent policy near the wall locations and the attention repeatedly fixating on the wall. The agent is simultaneously striving to learn to represent the walls as they are showing up a lot in its training data, and steadily reducing the reconstruction error (the glimpse agent’s reward) coming from walls. ",
1535
+ "bbox": [
1536
+ 174,
1537
+ 638,
1538
+ 825,
1539
+ 763
1540
+ ],
1541
+ "page_idx": 11
1542
+ },
1543
+ {
1544
+ "type": "text",
1545
+ "text": "By iter 11000, the focus has shifted to tracking the agent as can be seen in the heatmap. The heatmap shows that the glimpse agent is singularly focused on the agent’s movements as the error reward it is getting from the walls has dropped off and the agent’s movements are not fully predicatable yet. In the figure for iter 19000, it can be seen that the agent can now track its own location very reliably with an initial position and the actions it is taking, without having to focus the attention on itself. In fact, after step 8 when the agent is discovered, the attention almost never moved back to it and yet the location in the reconstruction perfectly matches that of the unobserved full state. Hence the agent’s location based reward source has largely dried up. The heatmap of attention policy shows that the glimpse agent has become interested in the goals and walls again briefly as it learns to represent all three objects together. It can also be seen from the reconstructions here that the agent is unable to accurately track and model the enemies locations at this point. ",
1546
+ "bbox": [
1547
+ 174,
1548
+ 771,
1549
+ 825,
1550
+ 924
1551
+ ],
1552
+ "page_idx": 11
1553
+ },
1554
+ {
1555
+ "type": "text",
1556
+ "text": "By iter 21000, the attention has shifted focus to the remaining object in the state that is producing a high reconstruction error, i.e. the enemy. Once the enemy is discovered on step 14, the glimpse agent’s policy puts all probability near its location so it can keep observing and model its behavior. ",
1557
+ "bbox": [
1558
+ 173,
1559
+ 103,
1560
+ 823,
1561
+ 146
1562
+ ],
1563
+ "page_idx": 12
1564
+ },
1565
+ {
1566
+ "type": "text",
1567
+ "text": "The glimpse agent creates a natural curriculum for training the models within DMM, starting at large stationary objects that do not move, then moving to the agent’s followed by the objects with the most complex dynamics. We conjecture this automatically discovered curriculum is the reason our system is able to learn better reconstructions than the baselines. ",
1568
+ "bbox": [
1569
+ 174,
1570
+ 152,
1571
+ 825,
1572
+ 208
1573
+ ],
1574
+ "page_idx": 12
1575
+ },
1576
+ {
1577
+ "type": "image",
1578
+ "img_path": "images/1b1d00dcc6be27103726a94bc00d44de1546ef78fc25ae6a395229173f0eb670.jpg",
1579
+ "image_caption": [
1580
+ "Figure 5: Visualizations of glimpse behavior in gridworld environment. Each sub-figure is the same testing episode at different stages of training, with the rows corresponding to the time within the episode. In each subfigure, the first column shows the full (unobserved) state. The second column is a heatmap showing the glimpse policy, i.e. the likelihood the glimpse agent will select a location for placing attention. The location that was sampled is indicated in the first column by the yellow square. The final, third, column is the reconstruction $\\tau$ based on the agent’s current current belief about the environment. "
1581
+ ],
1582
+ "image_footnote": [],
1583
+ "bbox": [
1584
+ 181,
1585
+ 101,
1586
+ 818,
1587
+ 849
1588
+ ],
1589
+ "page_idx": 13
1590
+ },
1591
+ {
1592
+ "type": "image",
1593
+ "img_path": "images/58c94bc80bbdf079dc9466a7affe5cf5415435ae4e3ae90bbd022b6dbc4ed401.jpg",
1594
+ "image_caption": [
1595
+ "Figure 6: Visualizations of glimpse behavior in PhysEnv environment. "
1596
+ ],
1597
+ "image_footnote": [],
1598
+ "bbox": [
1599
+ 245,
1600
+ 172,
1601
+ 751,
1602
+ 827
1603
+ ],
1604
+ "page_idx": 14
1605
+ },
1606
+ {
1607
+ "type": "text",
1608
+ "text": "Next we show qualitative comparisons of the glimpse policy and state reconstruction between our method and the baselines. Each subfigure in figures 7 and 8 shows the same episode of length 20 played out with different glimpse agents. The first column is our method, the second shows a uniform random policy for the glimpse agent, the third shows a glimpse agent trained on environment (task) rewards, and lastly the fourth shows the glimpse following the agent. In both environments, it can be seen that our method learns to focus on dynamic objects within the environment and the resulting state reconstruction shows that these objects are preserved in the memory. ",
1609
+ "bbox": [
1610
+ 174,
1611
+ 103,
1612
+ 825,
1613
+ 202
1614
+ ],
1615
+ "page_idx": 15
1616
+ },
1617
+ {
1618
+ "type": "text",
1619
+ "text": "Note that the glimpse policy learned by the environment rewards is significantly more entropic than the one learned by our method, despite having the same entropy weighting hyperparameter. We conjecture that this is because the task reward does not send a clear and consistent learning signal to control the attention window to create better reconstructions, or as seen in our RL results, to facilitate downstream tasks. As such, the reconstructions appear qualitatively similar to the random baseline. ",
1620
+ "bbox": [
1621
+ 174,
1622
+ 208,
1623
+ 823,
1624
+ 291
1625
+ ],
1626
+ "page_idx": 15
1627
+ },
1628
+ {
1629
+ "type": "text",
1630
+ "text": "The random baseline quantitatively performs the closest to our approach, but it fails to focus on dynamic objects consistently like over time, and hence fails to track these objects over long periods in the episode. The reconstructions therefore have streaks and blurs where the objects were last spotted and the physics model has not learnt how to update their positions properly. ",
1631
+ "bbox": [
1632
+ 174,
1633
+ 299,
1634
+ 823,
1635
+ 354
1636
+ ],
1637
+ "page_idx": 15
1638
+ },
1639
+ {
1640
+ "type": "image",
1641
+ "img_path": "images/cc103f12df50b384b3a935f94d0676dbedf84b35dc8f71f8d322648c777ca892.jpg",
1642
+ "image_caption": [
1643
+ "Figure 7: Glimpse behavior for fully trained models of our method and the baselines in gridworld. Each subfigure is a different baseline, with columns within the subfigure being the full unobserved state, heatmap of attention policy, and reconstruction of full state respectively. "
1644
+ ],
1645
+ "image_footnote": [],
1646
+ "bbox": [
1647
+ 245,
1648
+ 157,
1649
+ 753,
1650
+ 818
1651
+ ],
1652
+ "page_idx": 16
1653
+ },
1654
+ {
1655
+ "type": "image",
1656
+ "img_path": "images/5c07ecfa5d304f6dbceff467d21009d726361025cd0f9b88ca983615555186e2.jpg",
1657
+ "image_caption": [
1658
+ "Figure 8: Glimpse behavior for fully trained models of our method and the baselines in PhysEnv. "
1659
+ ],
1660
+ "image_footnote": [],
1661
+ "bbox": [
1662
+ 245,
1663
+ 172,
1664
+ 751,
1665
+ 829
1666
+ ],
1667
+ "page_idx": 17
1668
+ },
1669
+ {
1670
+ "type": "image",
1671
+ "img_path": "images/41edf80cf0f8258eb553d4de174a5a77bd347e291bb26bf204f84f910b503956.jpg",
1672
+ "image_caption": [
1673
+ "Figure 9: (left) PhysEnv environment. (right) Gridworld environment. Reconstruction error (L2) from the full state during training of the $\\mathrm { D M M } +$ glimpse agent. All approaches have converged by 200k iters, with our approach having the lowest error, i.e. the most faithful reconstruction of the full unobserved state. "
1674
+ ],
1675
+ "image_footnote": [],
1676
+ "bbox": [
1677
+ 181,
1678
+ 138,
1679
+ 803,
1680
+ 310
1681
+ ],
1682
+ "page_idx": 18
1683
+ },
1684
+ {
1685
+ "type": "text",
1686
+ "text": "These training curves correspond to the results in table 1. The reconstruction error for each method has stabilized. Our method has the lowest reconstruction error for both environments. ",
1687
+ "bbox": [
1688
+ 173,
1689
+ 404,
1690
+ 823,
1691
+ 433
1692
+ ],
1693
+ "page_idx": 18
1694
+ },
1695
+ {
1696
+ "type": "image",
1697
+ "img_path": "images/6112eec42e26da8bcef385499fbaeb3966e29deb24cf3bf17f83bb8b5e9aefa4.jpg",
1698
+ "image_caption": [
1699
+ "Figure 10: (left) PhysEnv environment. (right) Gridworld environment. Episodic reward for glimpse agent during training (higher is better). "
1700
+ ],
1701
+ "image_footnote": [],
1702
+ "bbox": [
1703
+ 181,
1704
+ 449,
1705
+ 803,
1706
+ 621
1707
+ ],
1708
+ "page_idx": 18
1709
+ },
1710
+ {
1711
+ "type": "text",
1712
+ "text": "Figure 10 shows the episodic reward for the glimpse agent on six testing episodes as the training progresses. This corresponds to the mutual information objective in equation 4, or the reconstruction eror under the attention window in the next step. The modules within DMM are constantly improving to reduce prediction error and hence the reward goes down as the training progresses. But the glimpse agent is simultaneously trying to maximize the objective by searching for areas within the state that still provide high error. Our method maximizes this objective in both environments. This leads to lower overall reconstruction error as the glimpse agent is learning to predict where the highest source of error is going to be at the next step. The environment baseline performs close to random and the follow baseline gathers the least reward in both environments. ",
1713
+ "bbox": [
1714
+ 173,
1715
+ 685,
1716
+ 825,
1717
+ 811
1718
+ ],
1719
+ "page_idx": 18
1720
+ },
1721
+ {
1722
+ "type": "text",
1723
+ "text": "A.4 VARIATIONAL APPROXIMATION TO MUTUAL INFORMATION MAXIMIZATION ",
1724
+ "text_level": 1,
1725
+ "bbox": [
1726
+ 173,
1727
+ 103,
1728
+ 746,
1729
+ 118
1730
+ ],
1731
+ "page_idx": 19
1732
+ },
1733
+ {
1734
+ "type": "text",
1735
+ "text": "The mutual information between attention and environment state as expanded in eq. 5 is ",
1736
+ "bbox": [
1737
+ 171,
1738
+ 128,
1739
+ 751,
1740
+ 145
1741
+ ],
1742
+ "page_idx": 19
1743
+ },
1744
+ {
1745
+ "type": "equation",
1746
+ "img_path": "images/565c89db39c89d399b722573af72e2b31040e600a420cd04fc19b4a56696ff0d.jpg",
1747
+ "text": "$$\nI ( s _ { t } ; l _ { t } ) = \\mathcal { H } ( l _ { t } ) - \\mathcal { H } ( l _ { t } | s _ { t } ) .\n$$",
1748
+ "text_format": "latex",
1749
+ "bbox": [
1750
+ 400,
1751
+ 172,
1752
+ 596,
1753
+ 191
1754
+ ],
1755
+ "page_idx": 19
1756
+ },
1757
+ {
1758
+ "type": "text",
1759
+ "text": "In our algorithm, we combine the first term in this expansion with another term in eq. 2. This works well empirically. Theoretically, however, it is computationally possible to maximize both terms in eq. 6, hence maximizing the actual mutual information. However, as we shall show here, this does not work well practically. ",
1760
+ "bbox": [
1761
+ 173,
1762
+ 205,
1763
+ 825,
1764
+ 262
1765
+ ],
1766
+ "page_idx": 19
1767
+ },
1768
+ {
1769
+ "type": "text",
1770
+ "text": "The first term can be maximized by using maximum entropy RL algorithms for the attention policy as discussed in the main text. Let us consider the second term. ",
1771
+ "bbox": [
1772
+ 173,
1773
+ 268,
1774
+ 823,
1775
+ 297
1776
+ ],
1777
+ "page_idx": 19
1778
+ },
1779
+ {
1780
+ "type": "equation",
1781
+ "img_path": "images/1602998e6a55ec5aba7f6b39ffddc07b317ce04d937030e3793cdd0a39be7e7e.jpg",
1782
+ "text": "$$\n\\begin{array} { r l } { { - \\mathcal { H } ( l _ { t } | s _ { t } ) = - \\sum _ { s _ { t } } p ( s _ { t } ) \\mathcal { H } ( l _ { t } | s _ { t } ) } } \\\\ & { = \\sum _ { s _ { t } } p ( s _ { t } ) \\sum _ { l _ { t } } p ( l _ { t } | s _ { t } ) \\log p ( l _ { t } | s _ { t } ) } \\\\ & { = \\frac { \\mathbb { E } } { s _ { t } , l _ { t } \\sim p ( s _ { t } , l _ { t } ) } [ \\log p ( l _ { t } | s _ { t } ) ] } \\end{array}\n$$",
1783
+ "text_format": "latex",
1784
+ "bbox": [
1785
+ 343,
1786
+ 321,
1787
+ 655,
1788
+ 420
1789
+ ],
1790
+ "page_idx": 19
1791
+ },
1792
+ {
1793
+ "type": "text",
1794
+ "text": "While $\\log p ( l _ { t } | s _ { t } )$ is not directly known, we can construct a variational function, $q ( l _ { t } | s _ { t } )$ , to approximate it. ",
1795
+ "bbox": [
1796
+ 176,
1797
+ 435,
1798
+ 823,
1799
+ 464
1800
+ ],
1801
+ "page_idx": 19
1802
+ },
1803
+ {
1804
+ "type": "text",
1805
+ "text": "Since $K L ( p ( l _ { t } | s _ { t } ) | | q ( l _ { t } | s _ { t } ) ) \\geq 0$ , we have, ",
1806
+ "bbox": [
1807
+ 174,
1808
+ 469,
1809
+ 452,
1810
+ 487
1811
+ ],
1812
+ "page_idx": 19
1813
+ },
1814
+ {
1815
+ "type": "equation",
1816
+ "img_path": "images/a90228b032286a24abe506f7c57610a4bdac5111a924f48f351741d791078295.jpg",
1817
+ "text": "$$\n\\begin{array} { r l } & { \\displaystyle \\sum _ { l _ { t } } p ( l _ { t } | s _ { t } ) \\log p ( l _ { t } | s _ { t } ) \\geq \\sum _ { l _ { t } } p ( l _ { t } | s _ { t } ) \\log q ( l _ { t } | s _ { t } ) } \\\\ & { \\displaystyle \\sum _ { s _ { t } , l _ { t } \\sim p ( s _ { t } , l _ { t } ) } [ \\log p ( l _ { t } | s _ { t } ) ] \\geq \\underset { s _ { t } , l _ { t } \\sim p ( s _ { t } , l _ { t } ) } { \\mathbb { E } } [ \\log q ( l _ { t } | s _ { t } ) ] } \\end{array}\n$$",
1818
+ "text_format": "latex",
1819
+ "bbox": [
1820
+ 326,
1821
+ 511,
1822
+ 673,
1823
+ 574
1824
+ ],
1825
+ "page_idx": 19
1826
+ },
1827
+ {
1828
+ "type": "text",
1829
+ "text": "Plugging this into eq. 6, ",
1830
+ "bbox": [
1831
+ 174,
1832
+ 587,
1833
+ 333,
1834
+ 602
1835
+ ],
1836
+ "page_idx": 19
1837
+ },
1838
+ {
1839
+ "type": "equation",
1840
+ "img_path": "images/541aeccf8fcb114fbdd66e5161d377e1b58e189b3c1b92e8342eb2954bfa4801.jpg",
1841
+ "text": "$$\nI ( s _ { t } ; l _ { t } ) \\geq \\mathcal { H } ( l _ { t } ) + \\underset { s _ { t } , l _ { t } \\sim p ( s _ { t } , l _ { t } ) } { \\mathbb { E } } [ \\log q ( l _ { t } | s _ { t } ) ]\n$$",
1842
+ "text_format": "latex",
1843
+ "bbox": [
1844
+ 352,
1845
+ 631,
1846
+ 647,
1847
+ 656
1848
+ ],
1849
+ "page_idx": 19
1850
+ },
1851
+ {
1852
+ "type": "text",
1853
+ "text": "Therefore, we can maximize the mutual information by maximizing this lower bound w.r.t. the policy parameters of the glimpse agent. This can be achieved by providing $\\log q ( l _ { t } | s _ { t } )$ as a reward to the glimpse agent and using RL algorithms to maximize its long term value along with the policy entropy. As such, maximizing the mutual information. ",
1854
+ "bbox": [
1855
+ 173,
1856
+ 671,
1857
+ 825,
1858
+ 728
1859
+ ],
1860
+ "page_idx": 19
1861
+ },
1862
+ {
1863
+ "type": "text",
1864
+ "text": "We can additionally condition $q$ on the internal state and action of the agent at previous time step. Since we do not have access to the full environment state, $s _ { t }$ , we substitute it with the agent’s internal state. The final variational function looks like $q ( l _ { t } | \\mu _ { t } , \\mu _ { t - 1 } , a _ { t - 1 } )$ . $q$ must be trained to match the true posterior $p ( l _ { t } | s _ { t } )$ to provide accurate rewards to the glimpse agent. ",
1865
+ "bbox": [
1866
+ 173,
1867
+ 734,
1868
+ 825,
1869
+ 791
1870
+ ],
1871
+ "page_idx": 19
1872
+ },
1873
+ {
1874
+ "type": "text",
1875
+ "text": "The question now is how to learn $q \\mathrm { ? }$ In this work, it is a neural network trained on samples. This is done by minimizing the KL divergence, ",
1876
+ "bbox": [
1877
+ 173,
1878
+ 796,
1879
+ 825,
1880
+ 827
1881
+ ],
1882
+ "page_idx": 19
1883
+ },
1884
+ {
1885
+ "type": "equation",
1886
+ "img_path": "images/1e5c05949696b53e40bb5759607212fa4f3253416ca9af982adcfe16f62a88e1.jpg",
1887
+ "text": "$$\n\\begin{array} { r } { \\operatorname* { m i n } _ { \\substack { s _ { t } , l _ { t } \\sim p ( s _ { t } , l _ { t } ) } } [ K L ( p ( l _ { t } | s _ { t } ) | | q ( l _ { t } | \\mu _ { t } , \\mu _ { t - 1 } , a _ { t - 1 } ) ) ] } \\end{array}\n$$",
1888
+ "text_format": "latex",
1889
+ "bbox": [
1890
+ 326,
1891
+ 854,
1892
+ 668,
1893
+ 881
1894
+ ],
1895
+ "page_idx": 19
1896
+ },
1897
+ {
1898
+ "type": "text",
1899
+ "text": "on samples from the environment and the glimpse agent’s policy. This will ensure $q$ is likely to assign high likelihood to actual locations conditioned on its inputs. ",
1900
+ "bbox": [
1901
+ 174,
1902
+ 895,
1903
+ 823,
1904
+ 924
1905
+ ],
1906
+ "page_idx": 19
1907
+ },
1908
+ {
1909
+ "type": "text",
1910
+ "text": "Intuitively, $q$ will be high at locations of attention that are easy to identify by looking at the previous state, the resulting state, and the agent action. Otherwise, its output will be flat and hard to predict. Since $q$ is provided to the glimpse agent as reward, it will be rewarded for selecting easily identifiable locations and prefer such a policy. These can be locations that produce a high amount of localized surprising information in $\\mu _ { t }$ as compared to $\\mu _ { t - 1 }$ , as unexpected appearance of goal or enemies somewhere will signal that the attention was just moved there, hence producing a high likelihood in $q$ . Conversely, low reward locations will be ones that are hard to identify by $q$ as they do not impact any specific part of $\\mu _ { t }$ , leaving it largely the same as $\\mu _ { t - 1 }$ , or observe a location that was already well-modeled by the agent and hence do not leave an identifiable mark on $\\mu _ { t }$ that is a tell-tale sign for q. ",
1911
+ "bbox": [
1912
+ 173,
1913
+ 103,
1914
+ 825,
1915
+ 242
1916
+ ],
1917
+ "page_idx": 20
1918
+ },
1919
+ {
1920
+ "type": "image",
1921
+ "img_path": "images/81d5b51ffa8b2a07090878da948998cb61d625782c10e709f32794011c0322fe.jpg",
1922
+ "image_caption": [
1923
+ "(b) Write error of observation under attention window. "
1924
+ ],
1925
+ "image_footnote": [],
1926
+ "bbox": [
1927
+ 186,
1928
+ 262,
1929
+ 490,
1930
+ 435
1931
+ ],
1932
+ "page_idx": 20
1933
+ },
1934
+ {
1935
+ "type": "image",
1936
+ "img_path": "images/ba2c2fa373647194fb86f18cc133ed7112d12d0587957870325442344e3db85d.jpg",
1937
+ "image_caption": [
1938
+ "Figure 11: State reconstruction and observation reconstruction errors in gridworld environment. Observation reconstruction error falls to almost zero for both methods while full state reconstruction remains high for variational approach. "
1939
+ ],
1940
+ "image_footnote": [],
1941
+ "bbox": [
1942
+ 508,
1943
+ 263,
1944
+ 808,
1945
+ 434
1946
+ ],
1947
+ "page_idx": 20
1948
+ },
1949
+ {
1950
+ "type": "text",
1951
+ "text": "(a) Overall state reconstruction error per pixel. ",
1952
+ "bbox": [
1953
+ 200,
1954
+ 446,
1955
+ 477,
1956
+ 460
1957
+ ],
1958
+ "page_idx": 20
1959
+ },
1960
+ {
1961
+ "type": "text",
1962
+ "text": "The above method does not work well in practice. Figure 11a shows the reconstruction error of the unobserved state with our proposed method and the variational approach. Figure 11b shows the observation reconstruction error, which is the error in reproducing just the observation under the attention immediately after it is made. It can be seen that the latter quantity goes to near zero for both methods, meaning that immediate observations are being faithfully recorded into memory and reconstructed. Yet, the overall state reconstruction error remains high for the variational approach, which means that the agent is not able to retain observations over time steps as the attention moves around the state and the environment model is not learning to predict the evolution of the state over time without direct observation. ",
1963
+ "bbox": [
1964
+ 174,
1965
+ 530,
1966
+ 825,
1967
+ 655
1968
+ ],
1969
+ "page_idx": 20
1970
+ },
1971
+ {
1972
+ "type": "text",
1973
+ "text": "A reason why the variational approach fails in practice could be that we do not have direct access to $p ( l _ { t } | s _ { t } )$ in order to train $q$ . Instead we must rely on the agent’s internal estimate of the environment state, $\\mu _ { t }$ , which itself is being trained alongside the glimpse agent. This results in noisy rewards to the glimpse agent as the $q$ function is not able to accurately predict where the attention is. As we have seen in section A.2, attention control creates a curriculum for training the agent’s state estimate. Hence this forms a loop, where attention control is dependent on agent’s state estimate which is in return dependent on the curriculum generated by the attention. ",
1974
+ "bbox": [
1975
+ 174,
1976
+ 662,
1977
+ 825,
1978
+ 760
1979
+ ],
1980
+ "page_idx": 20
1981
+ },
1982
+ {
1983
+ "type": "text",
1984
+ "text": "Extensive hyperparameter tuning may also be required for this approach to work as the glimpse agent can easily default to chosing the same attention location at each time step as it ensures the highest $q ( l _ { t } | s _ { t } )$ . ",
1985
+ "bbox": [
1986
+ 174,
1987
+ 767,
1988
+ 823,
1989
+ 810
1990
+ ],
1991
+ "page_idx": 20
1992
+ }
1993
+ ]
parse/train/TV9INIrmtWN/TV9INIrmtWN_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/TV9INIrmtWN/TV9INIrmtWN_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/jnkE5c5f9m/jnkE5c5f9m.md ADDED
@@ -0,0 +1,341 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Canonical Capsules: Self-Supervised Capsules in Canonical Pose
2
+
3
+ # Weiwei $\mathbf { S u n ^ { 1 , 4 , * } }$
4
+
5
+ Andrea Tagliasacchi2,3,⇤ Boyang Deng3 Sara Sabour2,3
6
+
7
+ Soroosh Yazdani3 Geoffrey Hinton2,3 Kwang Moo Yi1,4
8
+
9
+ 1University of British Columbia, 2University of Toronto, 3Google Research, 4University of Victoria, ⇤equal contributions
10
+
11
+ https://canonical-capsules.github.io
12
+
13
+ # Abstract
14
+
15
+ We propose a self-supervised capsule architecture for 3D point clouds. We compute capsule decompositions of objects through permutation-equivariant attention, and self-supervise the process by training with pairs of randomly rotated objects. Our key idea is to aggregate the attention masks into semantic keypoints, and use these to supervise a decomposition that satisfies the capsule invariance/equivariance properties. This not only enables the training of a semantically consistent decomposition, but also allows us to learn a canonicalization operation that enables object-centric reasoning. To train our neural network we require neither classification labels nor manually-aligned training datasets. Yet, by learning an object-centric representation in a self-supervised manner, our method outperforms the state-of-the-art on 3D point cloud reconstruction, canonicalization, and unsupervised classification.
16
+
17
+ # 1 Introduction
18
+
19
+ Understanding objects is one of the core problems of computer vision $[ \sqrt { 3 2 } , \sqrt { 1 4 } , \sqrt { 3 8 } ]$ . While this task has traditionally relied on large annotated datasets $[ \hat { \lVert { \boldsymbol { 4 } } \hat { 2 } } , \hat { \lVert { \boldsymbol { 2 } } \hat { 2 } } ] ]$ , unsupervised approaches that utilize self-supervision $ { \mathbb { I } }$ have emerged to remove the need for labels. Recently, researchers have attempted to extend these methods to work on 3D point clouds $\mathbb { \lVert 5 9 \rVert }$ , but the field of unsupervised 3D learning remains relatively uncharted. Conversely, researchers have been extensively investigating 3D deep representations for shape auto-encoding1 [61, 19, 33, 16], making one wonder whether these discoveries can now benefit from unsupervised learning for tasks other than auto-encoding.
20
+
21
+ Importantly, these recent methods for 3D deep representation learning are not entirely unsupervised. Whether using point clouds $\mathbb { \left[ 6 2 \right] }$ , meshes $\bar { \| 1 9 \| }$ , or implicits $\mathbb { \left[ \left. 3 3 \right] \right. }$ , they owe much of their success to the bias within the dataset that was used for training. Specifically, all 3D models in the popular ShapeNet $\pmb { \mathbb { B } } \|$ dataset are “object-centric” – they are pre-canonicalized to a unit bounding box, and, even more importantly, with an orientation that synchronizes object semantics to Euclidean frame axes (e.g. airplane cockpit is always along $+ y$ , car wheels always touch $z = 0$ ). Differentiable 3D decoders are heavily affected by the consistent alignment of their output with an Euclidean frame $\boxed { 8 } \boxed { 1 6 }$ as local-to-global transformations cannot be easily learnt by fully connected layers. As we will show in Section $^ { 4 . 2 , }$ these methods fail in the absence of pre-alignment, even when data augmentation is used. A concurrent work $\lVert \rVert \bigstar \bigstar \rVert$ also recognizes this problem and proposes a separate learnt canonicalizer, which is shown helpful in downstream classification tasks.
22
+
23
+ In this work, we leverage the modeling paradigm of capsule networks $[ \left[ 2 3 \right] ]$ . In capsule networks, a scene is perceived via its decomposition into part hierarchies, and each part is represented with a (pose, descriptor) pair: $\textcircled{1}$ The capsule pose specifies the frame of reference of a part, and hence should be transformation equivariant; $\textcircled{2}$ The capsule descriptor specifies the appearance of a part, and hence should be transformation invariant. Thus, one does not have to worry how the data is oriented or translated, as these changes can be encoded within the capsule representation.
24
+
25
+ We introduce Canonical Capsules, a novel capsule architecture to compute a K-part decomposition of a point cloud. We train our network by feeding pairs of a randomly rotated/translated copies of the same shape (i.e. siamese training) hence removing the requirement of pre-aligned training datasets. We then decompose the point cloud by assigning each point into one of the K parts via attention, which we aggregate into K keypoints. Equivariance is then enforced by requiring the two keypoint sets to only differ by the known (relative) transformation (i.e. a form of self-supervision). For invariance, we simply ask that the descriptors of each keypoint of the two instances match.
26
+
27
+ With Canonical Capsules, we exploit our decomposition to recover a canonical frame that allows unsupervised “object-centric” learning of 3D deep representations without requiring a semantically aligned dataset. We achieve this task by regressing canonical capsule poses from capsule descriptors via a deep network, and computing a canonicalizing transformation by solving a shape-matching problem $\bar { \textregistered 4 4 }$ . This not only allows more effective shape auto-encoding, but our experiments confirm this results in a latent representation that is more effective in unsupervised classification tasks. Note that, like our decomposition, our canonicalizing transformations are also learnt in a self-supervised fashion, by only training on randomly transformed point clouds.
28
+
29
+ Contributions. In summary, in this paper we:
30
+
31
+ • propose an architecture for 3D self-supervised learning based on capsule decomposition; • enable object-centric unsupervised learning by introducing a learned canonical frame of reference; • achieve state-of-the-art performance 3D point cloud auto-encoding/reconstruction, canonicalization, and unsupervised classification.
32
+
33
+ # 2 Related works
34
+
35
+ Convolutional Neural Networks lack equivariance to rigid transformations, despite their pivotal role in describing the structure of the 3D scene behind a 2D image. One promising approach to overcome this shortcoming is to add equivariance under a group action in each layer [49, 9]. In our work, we remove the need for a global $\mathbf { S E } ( 3 )$ -equivariant network by canonicalizing the input.
36
+
37
+ Capsule Networks. Capsule Networks $\mathbb { \left[ \left. 2 3 \right] \right. }$ have been proposed to overcome this issue towards a relational and hierarchical understanding of natural images. Of particular relevance to our work, are methods that apply capsule networks to 3D input data [64, 65, 46], but note these methods are not unsupervised, as they either rely on classification supervision [65], or on datasets that present a significant inductive bias in the form of pre-alignment $\pmb { \| 6 4 \| }$ . In this paper, we take inspiration from the recent Stacked Capsule Auto-Encoders $\bar { \| 3 0 \| }$ , which shows how capsule-style reasoning can be effective as long as the primary capsules can be trained in a self-supervised fashion (i.e. via reconstruction losses). The natural question, which we answer in this paper, is “How can we engineer networks that generate 3D primary capsules in an unsupervised fashion?”
38
+
39
+ Deep 3D representations. Reconstructing 3D objects requires effective inductive biases about 3D vision and 3D geometry. When the input is images, the core challenge is how to encode $3 D$ projective geometry concepts into the model. This can be achieved by explicitly modeling multi-view geometry $\bar { \lVert 2 8 \rVert }$ , by attempting to learn it $\mathbb { \lVert 1 3 \rVert }$ , or by hybrid solutions $\dot { \left[ 6 0 \right] }$ . But even when input is 3D, there are still significant challenges. It is still not clear which is the 3D representation that is most amenable to deep learning. Researchers proposed the use of meshes $\lVert \boldsymbol { \bar { 5 } 3 } \rVert \textcircled { 3 1 }$ , voxels $\mathbb { 1 } 5 4 , \lvert 5 5 \rvert$ , surface patches [19, 12, 10], and implicit functions $\pm \pm \infty \pm \infty \pm 1$ . Unfortunately, the importance of geometric structures (i.e. part-to-whole relationships) is often overlooked. Recent works have tried to close this gap by using part decomposition consisting of oriented boxes $ { \mathbb { I } } ^ { { \left[ 5 0 \right] } }$ , ellipsoids $\mathbb { I B Z } , \mathbb { I G } ]$ , convex polytopes $\mathbf { \widehat { \mathbb { m } } }$ , and grids [2]. However, as previously discussed, most of these still heavily rely on a pre-aligned training dataset; our paper attempts to bridge this gap, allowing learning of structured 3D representations without requiring pre-aligned data.
40
+
41
+ ![](images/b214db76fe7d07e923b4ee2f128eac4da2df13f56c046f7d9cb4366137ea8671.jpg)
42
+ Figure 1: Framework – We learn a capsule encoder for 3D point clouds by relating the decomposition result of two random rigid transformations $\mathbf { T } ^ { a }$ and $\mathbf { T } ^ { b }$ , of a given point cloud, i.e., a Siamese training setup. We learn the parameters of an encoder $\mathcal { E }$ , a per-capsule decoder $\mathcal { D } _ { k }$ , as well as a network that represents a learnt canonical frame $\kappa$ . For illustrative purposes, we shade-out the outputs that do not flow forward, and with $\Sigma$ summarize the aggregations in $\overset { \cdot } { ( 2 ) }$ .
43
+
44
+ Canonicalization. One way to circumvent the requirement of pre-aligned datasets is to rely on methods capable of registering a point cloud into a canonical frame. The recently proposed CaSPR [39] fulfills this premise, but requires ground-truth canonical point clouds in the form of normalized object coordinate spaces $[ \bar { 1 } \bar { 5 } \bar { 2 } ]$ for supervision. Similarly, $\bar { \| 2 0 \| }$ regresses each view’s pose relative to the canonical pose, but still requires weak annotations in the form of multiple partial views. C3DPO $\textcircled { 1 3 4 } \textcircled { 1 }$ learns a canonical 3D frame based on 2D input keypoints. In contrast to these methods, our solution is completely self-supervised. The concurrent Compass [45] also learns to canonicalize in a self-supervised fashion, but as the process is not end-to-end, this results in a worse performance than ours, as it will be shown in Section 4.3.
45
+
46
+ Registration. Besides canonicalization, many pairwise registration techniques based on deep learning have been proposed (e.g. [56, $\boxed { 6 3 }$ ), even using semantic keypoints and symmetry to perform the task $\mathbb { \lVert \boldsymbol { 1 5 } \rVert }$ . These methods typically register a pair of instances from the same class, but lack the ability to jointly and consistently register all instances to a shared canonical frame.
47
+
48
+ # 3 Method
49
+
50
+ Our network trains on unaligned point clouds as illustrated in Figure $\boldsymbol { 1 } \colon$ we train a network that decomposes point clouds into parts, and enforce invariance/equivariance through a Siamese training setup $\dot { \left[ \left| 4 8 \right| \right] }$ . We then canonicalize the point cloud to a learnt frame of reference, and perform autoencoding in this coordinate space. The losses employed to train $\varepsilon , \kappa$ , and $\mathcal { D }$ , will be covered in Section $^ { 3 . 1 , }$ while the details of their architecture are in Section $3 . 2 .$
51
+
52
+ Decomposition. In more detail, given a point cloud $\mathbf { P } \in \mathbb { R } ^ { P \times D }$ of $P$ points in $D$ dimensions (in our case $D { = } 3$ ), we perturb it with two random transformations $\mathbf { T } ^ { a }$ ${ { \mathbf { \Omega } } ^ { a } } , { { \mathbf { T } } ^ { b } } { \dot { \mathbf { \Omega } } } \in { \mathbf { S } } \mathbf { E } ( D )$ to produce point clouds $\mathbf { P } ^ { a } , \mathbf { P } ^ { b }$ . We then use a shared permutation-equivariant capsule encoder $\mathcal { E }$ to compute a $K$ -fold attention map $\mathbf { A } \in \mathbb { R } ^ { P \times K }$ for $K$ capsules, as well as per-point feature map $\mathbf { F } \in \overset { \bullet } { \mathbb { R } ^ { P \times C } }$ with $C$ channels:
53
+
54
+ $$
55
+ \mathbf { A } , \mathbf { F } = { \mathcal { E } } ( \mathbf { P } ) \ ,
56
+ $$
57
+
58
+ where we drop the superscript indexing the Siamese branch for simplicity. From these attention masks, we then compute, for the $k$ –th capsule its pose $\theta _ { k } \in \mathbb { R } ^ { 3 }$ parameterized by its location in 3D space, and the corresponding capsule descriptor $\beta _ { k } \in \mathbb { R } ^ { C }$ :
59
+
60
+ $$
61
+ \theta _ { k } = \frac { \sum _ { p } \mathbf { A } _ { p , k } \mathbf { P } _ { p } } { \sum _ { p } \mathbf { A } _ { p , k } } , \qquad \beta _ { k } = \frac { \sum _ { p } \mathbf { A } _ { p , k } \mathbf { F } _ { p } } { \sum _ { p } \mathbf { A } _ { p , k } } .
62
+ $$
63
+
64
+ Hence, as long as $\mathcal { E }$ is invariant w.r.t. rigid transformations of $\mathbf { P }$ , the pose $\pmb { \theta } _ { k }$ will be transformation equivariant, and the descriptor $\beta _ { k }$ will be transformation invariant. Note that this simplifies the design (and training) of the encoder $\mathcal { E }$ , which only needs to be invariant, rather than equivariant $\textcircled { 1 4 9 } , \textcircled { 4 6 } $ .
65
+
66
+ Canonicalization. Simply enforcing invariance and equivariance with the above framework is not enough to learn 3D representations that are object-centric, as we lack an (unsupervised) mechanism to bring information into a shared “object-centric” reference frame. Furthermore, the “right” canonical frame is nothing but a convention, thus we need a mechanism that allows the network to make a choice – a choice, however, that must then be consistent across all objects. For example, a learnt canonical frame where the cockpit of airplanes is consistently positioned along $+ z$ is just as good as a canonical frame where it is positioned along the $+ y$ axis. To address this, we propose to link the capsule descriptors to the capsule poses in canonical space, that is, we ask that objects with similar appearance to be located in similar Euclidean neighborhoods in canonical space. We achieve this by regressing canonical capsules poses (i.e. canonical keypoints) $\bar { \pmb { \theta } } \in \mathbb { R } ^ { K \times 3 }$ using the descriptors ${ \bar { \beta } } \in { \breve { \mathbb { R } } } ^ { K \times C }$ via a fully connected deep network $\kappa$ :
67
+
68
+ $$
69
+ \bar { \pmb { \theta } } = \mathcal { K } \left( \beta \right)
70
+ $$
71
+
72
+ Because fully connected layers are biased towards learning low-frequency representations $ { \mathbb { \left[ \left[ 2 7 \right] \right] } }$ , this regressor also acts as a regularizer that enforces semantic locality.
73
+
74
+ Auto-encoding. Finally, in the learnt canonical frame of reference, to train the capsule descriptors via auto-encoding, we reconstruct the point clouds with per-capsule decoders $\mathcal { D } _ { k }$ :
75
+
76
+ $$
77
+ \tilde { \bf P } = \cup _ { k } \left\{ \mathcal { D } _ { k } ( \bar { \bf R } \pmb { \theta } _ { k } + \bar { \bf t } , \beta _ { k } ) \right\} ,
78
+ $$
79
+
80
+ where $\cup$ denotes the union operator. The canonicalizing transformation $\bar { \bf T } = ( \bar { \bf R } , \bar { \bf t } )$ can be readily computed by solving a shape-matching problem $\pm \ddagger { 4 } \rVert$ , thanks to the property that our capsule poses and regressed keypoints are in one-to-one correspondence:
81
+
82
+ $$
83
+ \bar { \bf R } , \bar { \bf t } = \underset { { \bf R } , \mathbf { t } } { \arg \operatorname* { m i n } } \frac { 1 } { K } \sum _ { k } \| ( { \bf R } \pmb { \theta } _ { k } + { \bf t } ) - \bar { \pmb { \theta } } _ { k } \| _ { 2 } ^ { 2 } .
84
+ $$
85
+
86
+ While the reconstruction in $\textcircled{4}$ is in canonical frame, note it is trivial to transform the point cloud back to the original coordinate system after reconstruction, as the transformation $\bar { \mathbf { T } } ^ { - 1 }$ is available.
87
+
88
+ # 3.1 Losses
89
+
90
+ As common in unsupervised methods, our framework relies on a number of losses that control the different characteristics we seek to obtain in our representation. Note none of these losses require ground truth labels. We organize the losses according to the portion of the network they supervise: decomposition, canonicalization, and reconstruction.
91
+
92
+ Decomposition. While a transformation invariant encoder architecture should be sufficient to achieve equivariance/invariance, this does not prevent the encoder from producing trivial solutions/decompositions once trained. As capsule poses should be transformation equivariant, the poses of the two rotation augmentations $\pmb { \theta } _ { k } ^ { a }$ and $\theta _ { k } ^ { b }$ should only differ by the (known) relative transformation:
93
+
94
+ $$
95
+ \mathcal { L } _ { \mathrm { e q u i v a r i a n c e } } = \frac { 1 } { K } \sum _ { k } \| \pmb { \theta } _ { k } ^ { a } - ( \mathbf { T } ^ { a } ) ( \mathbf { T } ^ { b } ) ^ { - 1 } \pmb { \theta } _ { k } ^ { b } \| _ { 2 } ^ { 2 } .
96
+ $$
97
+
98
+ Conversely, capsule descriptors should be transformation invariant, and as the two input points clouds are of the same object, the corresponding capsule descriptors $\beta$ should be identical:
99
+
100
+ $$
101
+ \mathcal { L } _ { \mathrm { i n v a r i a n c e } } = \frac { 1 } { K } \sum _ { k } \| \beta _ { k } ^ { a } - \beta _ { k } ^ { b } \| _ { 2 } ^ { 2 } .
102
+ $$
103
+
104
+ We further regularize the capsule decomposition to ensure each of the $K$ heads roughly represent the same “amount” of the input point cloud, hence preventing degenerate (zero attention) capsules. This is achieved by penalizing the attention variance:
105
+
106
+ $$
107
+ \mathcal { L } _ { \mathrm { e q u i l i b r i u m } } = \frac { 1 } { K } \sum _ { k } \| a _ { k } - \frac { 1 } { K } \Sigma _ { k } a _ { k } \| _ { 2 } ^ { 2 } ,
108
+ $$
109
+
110
+ where $a _ { k } = \Sigma _ { p } ( \mathbf { A } _ { p , k } )$ denotes the total attention exerted by the $\mathbf { k }$ -th head on the point cloud.
111
+
112
+ Finally, to facilitate the training process, we ask for capsules to learn a localized representation of geometry. We express the spatial extent of a capsule by computing first-order moments of the represented points with respect to the capsule pose $\pmb { \theta } _ { k }$ :
113
+
114
+ $$
115
+ \mathcal { L } _ { \mathrm { l o c a l i z a t i o n } } = \frac { 1 } { K } \sum _ { k } \frac { 1 } { a _ { k } } \sum _ { p } { \bf A } _ { p , k } \| \pmb { \theta } _ { k } - { \bf P } _ { p } \| _ { 2 } ^ { 2 } .
116
+ $$
117
+
118
+ Canonicalization. To train our canonicalizer $\kappa$ , we relate the predicted capsule poses to regressed canonical capsule poses via the optimal rigid transformation from $\textcircled{5}$ :
119
+
120
+ $$
121
+ \mathcal { L } _ { \mathrm { c a n o n i c a l } } = \frac { 1 } { K } \sum _ { k } \| ( \bar { \bf R } \pmb { \theta } _ { k } + \bar { \bf t } ) - \bar { \pmb { \theta } } _ { k } \| _ { 2 } ^ { 2 } .
122
+ $$
123
+
124
+ Recall that $\bar { \mathbf { R } }$ and $\bar { \mathbf T }$ are obtained through a differentiable process. Thus, this loss is forcing the aggregated pose $\pmb { \theta } _ { k }$ to agree with the one that goes through the regression path, $\bar { \pmb { \theta } } _ { k }$ . Now, since $\bar { \pmb { \theta } } _ { k }$ is regressed solely from the set of capsule descriptors, similar shapes will result in similar canonical keypoints, and the coordinate system of $\bar { \pmb { \theta } } _ { k }$ is one that employs Euclidean space to encode semantics.
125
+
126
+ Reconstruction. To learn canonical capsule descriptors in an unsupervised fashion, we rely on an auto-encoding task. We train the decoders $\{ \mathcal { D } _ { k } \}$ by minimizing the Chamfer Distance (CD) between the (canonicalized) input point cloud and the reconstructed one, as in [61, 19]:
127
+
128
+ $$
129
+ \mathcal { L } _ { \mathrm { r e c o n } } = \mathrm { C D } \left( \bar { \mathbf { R } } \mathbf { P } + \bar { \mathbf { t } } , \tilde { \mathbf { P } } \right) .
130
+ $$
131
+
132
+ # 3.2 Network Architectures
133
+
134
+ We briefly summarize our implementation details, including the network architecture; for further details, please refer to the supplementary material.
135
+
136
+ Encoder – $\mathcal { E }$ . Our architecture is based on the one suggested in $\textcircled { \lVert { 4 7 } \rVert }$ : a pointnet-like architecture with residual connections and attentive context normalization. We utilize Batch Normalization [26] instead of the Group Normalization $\lVert \boldsymbol { \bar { 5 } } 8 \rVert$ , which trained faster in our experiments. We further extend their method to have multiple attention maps, where each attention map corresponds to a capsule.
137
+
138
+ Decoder – $\mathcal { D }$ . The decoder from $\textcircled{4}$ operates on a per-capsule basis. Our decoder architecture is similar to AtlasNetV2 $\mathbb { [ [ 2 ] }$ (with trainable grids). The difference is that we translate the per-capsule decoded point cloud by the corresponding capsule pose.
139
+
140
+ Regressor – $\kappa$ . We concatenate the descriptors and apply a series of fully connected layers with ReLU activation to regress the $P$ capsule locations. At the output layer we use a linear activation and subtract the mean of the outputs to make our regressed locations zero-centered in the canonical frame.
141
+
142
+ Canonicalizing the descriptors. As our descriptors are only approximately rotation invariant (via $\mathcal { L } _ { \mathrm { i n v a r i a n c e } } )$ , we found it useful to re-extract the capsule descriptors $\beta _ { k }$ after canonicalization. Specifically, we compute $\bar { \bf F }$ with the same encoder setup, but with $\bar { \bf P } { = } \bar { \bf R } \bar { \bf P } { + } \bar { \bf T }$ instead of $\mathbf { P }$ and use it to compute $\bar { \boldsymbol { \beta } } _ { k }$ ; we validate this empirically in the supplementary material.
143
+
144
+ # 4 Results
145
+
146
+ We first discuss the experimental setup, and then validate our method on a variety of tasks: autoencoding, canonicalization, and unsupervised classification. While the task differs, our learning process remains the same: we learn capsules by reconstructing objects in a learnt canonical frame. We also provide an ablation study, which is expanded in detail in the supplementary material, where we provide additional qualitative results.
147
+
148
+ # 4.1 Experimental setup
149
+
150
+ To evaluate our method, we rely on the ShapeNet (Core) dataset $\pmb { \bigtriangledown } ^ { 2 } .$ We follow the category choices from AtlasNetV2 [12], using the airplane and chair classes for single-category experiments, while for multi-category experiments we use all 13 classes: airplane, bench, cabinet, car, chair, monitor, lamp, speaker, firearm, couch, table, cellphone, and watercraft. To make our results most compatible with those reported in the literature, we also use the same splits as in AtlasNetV2 [12]: 31747 shapes in the train, and 7943 shapes in the test set. Unless otherwise noted, we randomly sample 1024 points from the object surface for each shape to create our 3D point clouds.
151
+
152
+ De-canonicalizing the dataset. As discussed in the introduction, ShapeNet (Core) contains substantial inductive bias in the form of consistent semantic alignment. To remove this bias, we create random
153
+
154
+ SE(3) transformations, and apply them to each point cloud. We first generate uniformly sampled random rotations, and add uniformly sampled random translations within the range $[ - 0 . 2 , 0 . 2 ]$ , where the bounding volume of the shape ranges in $[ - 1 , + 1 ]$ . Note the relatively limited translation range is chosen to give state-of-the-art methods a chance to compete with our solution. We then use the relative transformation between the point clouds extracted from this ground-truth transformation to evaluate our methods. We refer to this unaligned version of the ShapeNet Core dataset as the unaligned setup, and using the vanilla ShapeNet Core dataset as the aligned setup. For the aligned setup, as there is no need for equivariance adaptation, we simply train our method without the random transformations, and so $\mathcal { L } _ { \mathrm { e q u i v a r i a n c e } }$ and $\mathcal { L } _ { \mathrm { i n v a r i a n c e } }$ are not used. This setup is to simply demonstrate how Canonical Capsules would perform in the presence of a dataset bias.
155
+
156
+ We emphasize here that a proper generation of random rotation is important. While some existing works have generated them by uniformly sampling the degrees of freedom of an Euler-angle representation, this is known to be an incorrect way to sample random rotations $\pmb { \mathbb { H } }$ , leading to biases in the generated dataset; see the supplementary material.
157
+
158
+ Implementation details. For all our experiments we use the Adam optimizer $\mathbb { \left[ \left[ 2 9 \right] \right] }$ with an initial learning rate of 0.001 and decay rate of 0.1. We train for 325 epochs for the aligned setup to match the AtlasNetV2 $\mathbb { \lVert 1 2 \rVert }$ original setup. For the unaligned setting, as the problem is harder, we train for a longer number of 450 epochs. We use a batch size of 16. The training rate is ${ \sim } 2 . 5$ iters/sec. We train each model on a single NVidia V100 GPU. Unless stated otherwise, we use $k { = } 1 0$ capsules and capsule descriptors of dimension $C { = } 1 2 8$ . We train three models with our method: two that are single-category (i.e., for airplane and chairs), and one that is multi-category (i.e., all 13 classes). To set the weights for each loss term, we rely on the reconstruction performance (CD) in the training set. We set weights to be one for all terms except for $\mathcal { L } _ { \mathrm { e q u i v a r i a n c e } }$ (5) and $\mathcal { L } _ { \mathrm { e q u i l i b r i u m } } ( 1 0 ^ { - 3 } )$ . In the aligned case, because $\mathcal { L } _ { \mathrm { e q u i v a r i a n c e } }$ and $\mathcal { L } _ { \mathrm { i n v a r i a n c e } }$ are not needed (always zero), we reduce the weights for the other decomposition losses by $1 0 ^ { 3 }$ ; $ { \mathcal { L } } _ { \mathrm { l o c a l i z a t i o n } }$ to $1 0 ^ { - 3 }$ and $\mathcal { L } _ { \mathrm { { e q u i l i b r i u m } } }$ to $1 0 ^ { - 6 }$ .
159
+
160
+ # 4.2 Auto-encoding – Figure 2 and Table 1
161
+
162
+ Table 1: Auto-encoding / quantitative – Performance in terms of Chamfer distance with 1024 points per point cloud – metric is multiplied by $\mathrm { 1 0 ^ { 3 } }$ as in $\pmb { \mathbb { I } }$ .
163
+
164
+ <table><tr><td></td><td>Method</td><td>Airplane</td><td>Chair</td><td>Multi</td></tr><tr><td>Pgia</td><td>3D-PointCapsNet [64]</td><td>1.94</td><td>3.30</td><td>2.49</td></tr><tr><td></td><td>AtlasNetV212</td><td>1.28</td><td>2.36</td><td>2.14</td></tr><tr><td></td><td>Our method</td><td>0.96</td><td>1.99</td><td>1.76</td></tr><tr><td>nrtgren</td><td>3D-PointCapsNet [64</td><td>5.58</td><td>7.57</td><td>4.66</td></tr><tr><td></td><td>AtlasNetV2 国</td><td>2.80</td><td>3.98</td><td>3.08</td></tr><tr><td></td><td>AtlasNetV2 园 w/ STN</td><td>1.90</td><td>2.99</td><td>2.60</td></tr><tr><td></td><td>Our method</td><td>1.11</td><td>2.58</td><td>2.22</td></tr></table>
165
+
166
+ We evaluate the performance of our method for the task that was used to train the network – reconstruction / auto-encoding – against three baselines (trained in both single-category and multi-category variants): $\textcircled{1}$ 3D-PointCapsNet $\dot { \left[ 6 4 \right] }$ , an auto-encoder for 3D point clouds that utilize a capsule architecture; $\textcircled{2}$ AtlasNetV2 $\mathbb { [ [ 2 ] }$ , a state-of-the-art auto-encoder which utilizes a multi-head patch-based decoder; $\textcircled{3}$ AtlasNetV2 $\mathbb { \lVert 1 2 \rVert }$ with a spatial-transformer network (STN) aligner from PointNet $[ \beta 6 ]$ , a baseline with canonicalization. We do not compare against $\lVert \overline { { 4 6 } } \rVert$ , as unfortunately source code is not publicly available.
167
+
168
+ Quantitative analysis – Table 1. We achieve state-of-the-art performance in both the aligned and unaligned settings. The wider margin in the unaligned setup indicates tackling this more challenging scenario damages the performance of AtlasNetV2 [12] and 3D-PointCapsNet $\textcircled { 6 4 } \textcircled { 1 6 }$ much more than our method3. We also include a variant of AtlasNetV2 for which a STN (Spatial Transformer Network) is used to pre-align the point clouds [36], demonstrating how the simplest form of prealigner/canonicalizer is not sufficient.
169
+
170
+ Qualitative analysis – Figure 2. We illustrate our decomposition-based reconstruction of 3D point clouds, as well as the reconstructions of 3D-PointCapsNet [64] and AtlasNetV2 [12]. As shown, even in the unaligned setup, our method is able to provide semantically consistent capsule decompositions – e.g. the wings of the airplane have consistent colours, and when aligned in the canonical frame, the different airplane instances are well-aligned. Compared to AtlasNetV2 $\mathbb { \lVert \rVert }$ and 3D-PointCapsNet $\pmb { \mathbb { E 4 } }$ , the reconstruction quality is also visibly improved: we better preserve details along the engines of the airplane, or the thin structures of the bench; note also that the decompositions are semantically consistent in our examples. Results are better appreciated in our supplementary material, where we visualize the performance as we continuously traverse $\mathbf { S E } ( 3 )$ .
171
+
172
+ ![](images/d9254b3576e6f0b73d8a67dbdef09b1f14b32c94cc04c89a3c04cfdc66f4a905.jpg)
173
+ Figure 2: Auto-encoding / qualitative – Example decomposition and reconstruction results setup using Canonical Capsules on several unaligned point cloud instances from the test set. We color each Canonical Capsule with a unique colour, and similarly color “patches” from the reconstruction heads of 3D-PointCapsNet [64] and AtlasNetV2 [12]. Canonical Capsules provide semantically consistent decomposition that is aligned in canonical frame, leading to improved reconstruction quality.
174
+
175
+ # 4.3 Canonicalization – Table 2
176
+
177
+ We compare against three baselines: $\textcircled{1}$ Deep Closest Points $\left[ \left[ 5 6 \right] \right]$ , a deep learning-based pairwise point cloud registration method; $\textcircled{2}$ DeepGMR $\begin{array} { r l } { { \bigl [ \bigl | 6 3 \bigr | \bigr ] } } \end{array}$ a state-of-the-art pairwise registration method that decomposes clouds into Gaussian mixtures and utilizes Rigorously Rotation-Invariant (RRI) features [4]; $\textcircled{3}$ Compass $[ | 4 5 | ]$ a concurrent work on learnt alignment/canonicalization. For all compared methods we use the official implementation. For DeepGMR we use both RRI and the typical XYZ coordinates as input. We also try our method with the RRI features, following DeepGMR’s training protocol and train for 100 epochs.
178
+
179
+ Metrics. To evaluate the canonicalization performance, we look into the stability of the canonicalization – the shakiness shown in the videos in our supplementary material– represented as the mean standard deviation of the rotations (mStd):
180
+
181
+ $$
182
+ \mathrm { m S t d } = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \sqrt { \frac { 1 } { m } \sum _ { j = 1 } ^ { m } ( \angle ( \mathbf { R } ^ { i j } , \mathbf { R } _ { m e a n } ^ { i } ) ) ^ { 2 } } ~ ,
183
+ $$
184
+
185
+ where $\angle$ is the angular distance between two rotation matrices $[ \overline { { 1 8 } } , \overline { { 6 2 } } , \overline { { 6 3 } } ]$ , $\mathbf { R } ^ { i j }$ is the rotation matrix of the $j$ -th instance of the $i$ -th object in canonical frame, and ${ \bf R } _ { m e a n } ^ { i }$ is the mean rotation $\left[ \left[ 2 1 \right] \right]$ of the $i$ -th object. Note that with mStd we measure the stability of canonicalization with respect to rotations to accommodate for methods that do not deal with translation $[ | 4 5 | ]$ . To allow for comparisons with pairwise registration methods, we also measure performance in terms of the RMSE metric $\textcircled { 1 6 3 } , \textcircled { 6 6 } \textcircled { 1 }$ .
186
+
187
+ Quantitative analysis – Table $\bigtriangledown$ Compared to Compass $\boldsymbol { \left[ \left[ 4 5 \right] \right] }$ , our method provides improved stability in canonicalization. This also provides an advantage in pairwise registration, delivering state-of-the-art results when XYZ-coordinates are used. Note that while pairwise methods can align two sets of given point clouds, creating a canonical frame that simultaneously registers all point clouds is a non-trivial extension to the problem.
188
+
189
+ Table 2: Canonicalization – Quantitative evaluation for canonicalization, where we highlight significantly better performance than the concurrent work Compass [45]. While pairwise registration is not our main objective, the global alignment frame created by our method still allows for effective registration (on par, or better) than the state-of-the-art.
190
+
191
+ <table><tr><td></td><td></td><td colspan="3">Canonicalization (mStd)↓</td><td colspan="3">Pairwise registration (RMSE)↓</td></tr><tr><td></td><td>Method</td><td>Airplane</td><td>Chair</td><td>Multi</td><td>Airplane</td><td>Chair</td><td>Multi</td></tr><tr><td></td><td>Deep Closest Points [56]</td><td>1</td><td>1</td><td>1</td><td>0.318</td><td>0.160</td><td>0.131</td></tr><tr><td></td><td>DeepGMR [63]</td><td></td><td></td><td>1</td><td>0.079</td><td>0.082</td><td>0.077</td></tr><tr><td>P.JCOo-zX</td><td>Compass 4</td><td>19.105</td><td>19.508</td><td>51.811</td><td>0.412</td><td>0.482</td><td>0.515</td></tr><tr><td></td><td>Our method</td><td>8.278</td><td>5.730</td><td>21.210</td><td>0.022</td><td>0.027</td><td>0.074</td></tr><tr><td>R</td><td>DeepGMR [63]</td><td></td><td></td><td></td><td>0.0001</td><td>0.0001</td><td>0.0001</td></tr><tr><td></td><td>Our method</td><td>(unstable)</td><td>(unstable)</td><td>(unstable)</td><td>0.0006</td><td>0.0009</td><td>0.0016</td></tr></table>
192
+
193
+ When RRI is used as input, our method is on par with DeepGMR $\pmb { \mathbb { \left\| 6 3 \right\| } }$ , up to a level where registration is near perfect – alignment differences when errors are in the $1 0 ^ { - 4 }$ ballpark are indiscernible. We note that the performance of Deep Closest Points $\begin{array} { r l } { { \bigl \| \boldsymbol { 5 } 6 \bigr \| } } & { { } } \end{array}$ is not as good as reported in the original paper, as we uniformly draw rotations from SO(3). When a sub-portion of $\mathbf { S O } ( 3 )$ is used, e.g. a quarter of what we are using, DCP performs relatively well (0.008 in the multi-class experiment). While curriculum learning could be used to enhance the performance of DCP, our technique does not need to rely on these more complex training techniques.
194
+
195
+ We further note that, while RRI delivers good registration performance, using RRI features cause the learnt canonicalization to fail – training becomes unstable. This hints that RRI features may be throwing away too much information to achieve transformation invariance. Our method using raw XYZ coordinates as input, on the other hand, provides comparable registration performance, and is able to do significantly more than just registration (i.e. classification, reconstruction).
196
+
197
+ # 4.4 Unsupervised classification – Table 3
198
+
199
+ Beyond reconstruction and canonicalization, we evaluate the usefulness of our method via a classification task that is not related in any way to the losses used for training. We compute the features from the auto-encoding methods from Section $4 . 2$ against those from our method (where we build features by combining pose with descriptors) to perform 13-way classification with two different techniques:
200
+
201
+ We train a supervised linear Support Vector Machine (SVM) on the extracted features [1, Ch. 7]; We perform unsupervised K-Means clustering [1, Ch. 9] and then label each cluster via bipartite matching with the actual labels through the Hungarian algorithm.
202
+
203
+ Note the former provides an upper bound for unsupervised classification, while better performance on the latter implies that the learnt features are able to separate the classes into clusters that are compact (in an Euclidean sense).
204
+
205
+ Table 3: Classification – Top-1 accuracy $\% )$
206
+
207
+ <table><tr><td>Method</td><td></td><td>SVM</td><td>K-Means</td></tr><tr><td>Pse</td><td>3D-PointCapsNet [64]</td><td>93.81</td><td>65.87</td></tr><tr><td></td><td>AtlasNetV2[12]</td><td>94.07</td><td>61.66</td></tr><tr><td></td><td>Our method</td><td>94.21</td><td>69.82</td></tr><tr><td>aggen</td><td>3D-PointCapsNet [64]</td><td>71.13</td><td>14.59</td></tr><tr><td></td><td>AtlasNetV2 国</td><td>64.85</td><td>17.12</td></tr><tr><td></td><td>AtlasNetV2 圆 w/ STN</td><td>78.55</td><td>20.03</td></tr><tr><td></td><td>Our method</td><td>87.33</td><td>43.04</td></tr></table>
208
+
209
+ Analysis of results – SVM. Note how our method provides best results in all cases, and when the dataset is not unaligned the difference is significant. This shows that, while 3D-PointCapsNet and AtlasNetV2 (with and without STN) are able to somewhat auto-encode point clouds in the unaligned setup, what they learn does not translate well to classification. However, the features learned with Canonical Capsules are more related to the semantics of the object, which helps classification.
210
+
211
+ Analysis of results – K-Means. The performance gap becomes wider when K-Means is used – even in the aligned case. This could mean that the features extracted by Canonical Capsules are better suited for other unsupervised tasks, having a feature space that is close to being Euclidean in terms of semantics. The difference is striking in the unaligned setup. We argue that these results emphasize the importance of the capsule framework – jointly learning the invariances and equivariances in the data – is cardinal to unsupervised learning [25, $\checkmark$ .
212
+
213
+ Table 4: Effect of losses – Reconstruction performance, and canonicalization performance when loss terms are removed.
214
+
215
+ <table><tr><td></td><td>Full</td><td>-Linvar</td><td>-Lequiv</td><td>-Lcanonical</td><td>-Llocalization</td><td>-Leqilibrium</td></tr><tr><td>CD</td><td>1.11</td><td>1.12</td><td>1.16</td><td>1.12</td><td>1.44</td><td>1.60</td></tr><tr><td>Std</td><td>8.278</td><td>9.983</td><td>110.174</td><td>8.421</td><td>113.204</td><td>92.970</td></tr></table>
216
+
217
+ Table 5: Backbone – Auto-encoding performance (Chamfer distance) when we use various permutation-invariant backbones.
218
+
219
+ <table><tr><td></td><td>PointNet</td><td>PointNet++</td><td>DGCNN</td><td>ACNe</td></tr><tr><td>CD</td><td>1.28</td><td>1.34</td><td>1.21</td><td>1.11</td></tr></table>
220
+
221
+ # 4.5 Ablation study
222
+
223
+ To make the computational cost manageable, we perform all ablations with the airplane category (the category with most instances), and in the unaligned setup (unless otherwise noted). Please also see supplementary material for more ablation studies.
224
+
225
+ Losses – Table 4. We analyze the importance of each loss term, with the exception of $\scriptstyle { \mathcal { L } } _ { \mathrm { r e c o n } }$ which is necessary for training. All losses beneficially contribute to reconstruction performance, but note how $\mathcal { L } _ { \mathrm { e q u i v } }$ , $ { \mathcal { L } } _ { \mathrm { l o c a l i z a t i o n } }$ and $\mathcal { L } _ { \mathrm { { e q u i l i b r i u m } } }$ affect it to a larger degree. By considering our canonicalization metric, we can motivate this outcome by observing that the method fails to perform canonicalization when these losses are not employed (i.e. training collapses).
226
+
227
+ Encoder architecture – Table $\boxed { \pmb { 5 } }$ Our method can be used with any backbone, as our main contribution lies in the self-supervised canonicalization architecture. For completeness, we explore variants of our method using different back-bones: PointNet $\textcircled { \lvert 3 6 \rvert }$ , PointNet+ $^ { - + }$ [37], DGCNN $\boxed { \sqrt { 5 7 } }$ , and ACNe $\mathbb { H }$ . Among these, the ACNe backbone performs best; note that all the variants in Table 5, regardless of backbone choice, significantly outperforms all other methods reported in Table 1.
228
+
229
+ # 5 Conclusions
230
+
231
+ In this paper, we provide a self-supervised framework to train primary capsule decompositions for 3D point clouds. We rely on a Siamese setup that allows self-supervision and auto-encoding in canonical space, circumventing the customary need to train on pre-aligned datasets. Despite being trained in a self-supervised fashion, our representation achieves state-of-the-art performance across auto-encoding, canonicalization and classification tasks. These results are made possible by allowing the network to learn a canonical frame of reference. We interpret this result as giving our neural networks a mechanism to construct a “mental picture” of a given 3D object – so that downstream tasks are executed within an object-centric coordinate frame.
232
+
233
+ Future work. As many objects have natural symmetries that we do not consider at the moment $\mathbb { \left[ 1 2 \right] }$ providing our canonicalizer a way to encode such a prior is likely to further improve the representation. We perform decomposition at a single level, and it would be interesting to investigate how to effectively engineer multi-level decompositions $\mathbb { \left[ \left[ 5 \right] \right] }$ ; one way could be to over-decompose the input in a redundant fashion (with large $K$ ), and use a downstream layers that “selects” the decomposition heads to be used $\textcircled { 6 }$ . We would also like to extend our results to more “in-the-wild” 3D computer vision and understand whether learning object-centric representations is possible when incomplete (i.e., single view $\pmb { \Vert 3 5 \Vert }$ or occluded) data is given in input, when an entire scene with potentially multiple objects is given $\mathbb { \lVert \boldsymbol { 4 3 } \rVert }$ , or where our measurement of the 3D world is a single 2D image [48], or by exploiting the persistence of objects in video [40].
234
+
235
+ Broader impact. While our work is exclusively on 3D shapes, and thus not immediately subject to any societal concerns, it enhances how Artificial Intelligence (AI) can understand and model 3D geometry. Thus, similar to how image recognition could be misused, one should be careful when extending the use of our method. In addition, while not subject to how the data itself is aligned, the learnt canonical frame of our method is still data-driven, thus subject to any data collection biases that may exist – canonicalization will favour shapes that appear more often. This should also be taken into account with care to prevent any biased decisions when utilizing our method within a decision making AI platform.
236
+
237
+ # Acknowledgements
238
+
239
+ This work was supported by the Natural Sciences and Engineering Research Council of Canada (NSERC) Discovery Grant, NSERC Collaborative Research and Development Grant, Google, Compute Canada, and Advanced Research Computing at the University of British Columbia.
240
+
241
+ # References
242
+
243
+ [1] Christopher M Bishop. Pattern Recognition and Machine Learning. springer, 2006.
244
+ [2] Rohan Chabra, Jan Eric Lenssen, Eddy Ilg, Tanner Schmidt, Julian Straub, Steven Lovegrove, and Richard Newcombe. Deep Local Shapes: Learning Local SDF Priors for Detailed 3D Reconstruction. In European Conference on Computer Vision, 2020.
245
+ [3] Angel X Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, et al. Shapenet: An Information-Rich 3D Model Repository. arXiv Preprint, 2015.
246
+ [4] Chao Chen, Guanbin Li, Ruijia Xu, Tianshui Chen, Meng Wang, and Liang Lin. Clusternet: Deep Hierarchical Cluster Network with Rigorously Rotation-Invariant Representation for Point Cloud Analysis. In Conference on Computer Vision and Pattern Recognition, 2019.
247
+ [5] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A Simple Framework for Contrastive Learning of Visual Representations. International Conference on Machine Learning, 2020.
248
+ [6] Zhiqin Chen, Andrea Tagliasacchi, and Hao Zhang. Bsp-net: Generating compact meshes via binary space partitioning. In Conference on Computer Vision and Pattern Recognition, 2020.
249
+ [7] Zhiqin Chen and Hao Zhang. Learning Implicit Fields for Generative Shape Modeling. In Conference on Computer Vision and Pattern Recognition, 2019.
250
+ [8] Boyang Deng, JP Lewis, Timothy Jeruzalski, Gerard Pons-Moll, Geoffrey Hinton, Mohammad Norouzi, and Andrea Tagliasacchi. NASA: Neural Articulated Shape Approximation. In European Conference on Computer Vision, 2020.
251
+ [9] Congyue Deng, Or Litany, Yueqi Duan, Adrien Poulenard, Andrea Tagliasacchi, and Leonidas Guibas. Vector neurons: a general framework for so(3)-equivariant networks, 2021.
252
+ [10] Zhantao Deng, Jan Bednaˇrík, Mathieu Salzmann, and Pascal Fua. Better Patch Stitching for Parametric Surface Reconstruction. arXiv Preprint, 2020.
253
+ [11] Deng, Boyang and Genova, Kyle and Yazdani, Soroosh and Bouaziz, Sofien and Hinton, Geoffrey and Tagliasacchi, Andrea. CvxNet: Learnable Convex Decomposition. In Conference on Computer Vision and Pattern Recognition, 2020.
254
+ [12] Theo Deprelle, Thibault Groueix, Matthew Fisher, Vladimir Kim, Bryan Russell, and Mathieu Aubry. Learning Elementary Structures for 3D Shape Generation and Matching. In Advances in Neural Information Processing Systems, 2019.
255
+ [13] Haoqiang Fan, Hao Su, and Leonidas J Guibas. A Point Set Generation Network for 3D Object Reconstruction from a Single Image. In Conference on Computer Vision and Pattern Recognition, 2017.
256
+ [14] Pedro Felzenszwalb, David McAllester, and Deva Ramanan. A Discriminatively Trained, Multiscale, Deformable Part Model. In Conference on Computer Vision and Pattern Recognition, 2008.
257
+ [15] Clara Fernandez-Labrador, Ajad Chhatkuli, Danda Pani Paudel, Jose J Guerrero, Cédric Demonceaux, and Luc Van Gool. Unsupervised Learning of Category-Specific Symmetric 3D Keypoints from Point Sets. In European Conference on Computer Vision, 2020.
258
+ [16] Kyle Genova, Forrester Cole, Avneesh Sud, Aaron Sarna, and Thomas Funkhouser. Deep Structured Implicit Functions. In Conference on Computer Vision and Pattern Recognition, 2020.
259
+ [17] Kyle Genova, Forrester Cole, Daniel Vlasic, Aaron Sarna, William T Freeman, and Thomas Funkhouser. Learning Shape Templates with Structured Implicit Functions. In International Conference on Computer Vision, 2019.
260
+ [18] Zan Gojcic, Caifa Zhou, Jan D Wegner, Leonidas J Guibas, and Tolga Birdal. Learning multiview 3D point cloud registration. In Conference on Computer Vision and Pattern Recognition, 2020.
261
+ [19] Thibault Groueix, Matthew Fisher, Vladimir G Kim, Bryan C Russell, and Mathieu Aubry. A Papier-Mâché Approach to Learning 3D Surface Generation. In Conference on Computer Vision and Pattern Recognition, 2018.
262
+ [20] Jiayuan Gu, Wei-Chiu Ma, Sivabalan Manivasagam, Wenyuan Zeng, Zihao Wang, Yuwen Xiong, Hao Su, and Raquel Urtasun. Weakly-Supervised 3D Shape Completion in the Wild. In European Conference on Computer Vision, 2020.
263
+ [21] Richard Hartley, Jochen Trumpf, Yuchao Dai, and Hongdong Li. Rotation averaging. International Journal of Computer Vision, 2013.
264
+ [22] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep Residual Learning for Image Recognition. In Conference on Computer Vision and Pattern Recognition, 2016. Conference on Artificial Neural Networks, 2011.
265
+ [24] Geoffrey E Hinton and Kevin J Lang. Shape Recognition and Illusory Conjunctions. In International Joint Conference on Artificial Intelligence, 1985.
266
+ [25] Geoffrey F Hinton. A Parallel Computation that Assigns Canonical Object-based Frames of Reference. In International Joint Conference on Artificial Intelligence, 1981.
267
+ [26] Sergey Ioffe and Christian Szegedy. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. In International Conference on Machine Learning, 2015.
268
+ [27] Arthur Jacot, Franck Gabriel, and Clément Hongler. Neural Tangent Kernel: Convergence and Generalization in Neural Networks. In Advances in Neural Information Processing Systems, 2018.
269
+ [28] Abhishek Kar, Christian Häne, and Jitendra Malik. Learning a Multi-View Stereo Machine. In Advances in Neural Information Processing Systems, 2017.
270
+ [29] D.P. Kingma and J. Ba. Adam: A Method for Stochastic Optimisation. In International Conference on Learning Representations, 2015.
271
+ [30] Adam Kosiorek, Sara Sabour, Yee Whye Teh, and Geoffrey E Hinton. Stacked Capsule Autoencoders. In Advances in Neural Information Processing Systems, 2019.
272
+ [31] Or Litany, Alex Bronstein, Michael Bronstein, and Ameesh Makadia. Deformable Shape Completion with Graph Convolutional Autoencoders. In Conference on Computer Vision and Pattern Recognition, 2018.
273
+ [32] David G Lowe. Distinctive Image Features from Scale-Invariant Keypoints. International Journal of Computer Vision, 60:91–110, 2004.
274
+ [33] Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy Networks: Learning 3D Reconstruction in Function Space. In Conference on Computer Vision and Pattern Recognition, 2019.
275
+ [34] David Novotny, Nikhila Ravi, Benjamin Graham, Natalia Neverova, and Andrea Vedaldi. C3dpo: Canonical 3d pose networks for non-rigid structure from motion. In Conference on Computer Vision and Pattern Recognition, 2019.
276
+ [35] Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. DeepSDF: Learning Continuous Signed Distance Functions for Shape Representation. In Conference on Computer Vision and Pattern Recognition, 2019.
277
+ [36] Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep Learning on Point Sets for 3D Classification and Segmentation. In Conference on Computer Vision and Pattern Recognition, 2017.
278
+ [37] Charles R Qi, Li Yi, Hao Su, and Leonidas J Guibas. PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space. Advances in Neural Information Processing Systems, 2017.
279
+ [38] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You Only Look Once: Unified, Real-Time Object Detection. In Conference on Computer Vision and Pattern Recognition, 2016.
280
+ [39] Davis Rempe, Tolga Birdal, Yongheng Zhao, Zan Gojcic, Srinath Sridhar, and Leonidas J. Guibas. CaSPR: Learning Canonical Spatiotemporal Point Cloud Representations. In Advances in Neural Information Processing Systems, 2020.
281
+ [40] Sara Sabour, Andrea Tagliasacchi, Soroosh Yazdani, Geoffrey E. Hinton, and David J. Fleet. Unsupervised part representation by flow capsules, 2021.
282
+ [41] Ken Shoemake. Uniform random rotations. In Graphics Gems III (IBM Version), pages 124–132. Elsevier, 1992.
283
+ [42] Karen Simonyan and Andrew Zisserman. Very Deep Convolutional Networks for Large-Scale Image Recognition. International Conference on Learning Representations, 2015.
284
+ [43] Shuran Song, Fisher Yu, Andy Zeng, Angel X Chang, Manolis Savva, and Thomas Funkhouser. Semantic scene completion from a single depth image. Proceedings of 30th IEEE Conference on Computer Vision and Pattern Recognition, 2017.
285
+ [44] Olga Sorkine-Hornung and Michael Rabinovich. Least-Squares Rigid Motion Using SVD. Computing, 2017.
286
+ [45] Riccardo Spezialetti, Federico Stella, Marlon Marcon, Luciano Silva, Samuele Salti, and Luigi Di Stefano. Learning to Orient Surfaces by Self-supervised Spherical CNNs. Advances in Neural Information Processing Systems, 2020.
287
+ [46] Nitish Srivastava, Hanlin Goh, and Ruslan Salakhutdinov. Geometric Capsule Autoencoders for 3D Point Clouds. arXiv Preprint, 2019.
288
+ [47] Weiwei Sun, Wei Jiang, Eduard Trulls, Andrea Tagliasacchi, and Kwang Moo Yi. ACNe: Attentive Context Normalization for Robust Permutation-Equivariant Learning. In Conference on Computer Vision and Pattern Recognition, 2020.
289
+ [48] Supasorn Suwajanakorn, Noah Snavely, Jonathan J Tompson, and Mohammad Norouzi. Discovery of Latent 3D Keypoints via End-to-End Geometric Reasoning. 2018.
290
+ [49] Nathaniel Thomas, Tess Smidt, Steven Kearnes, Lusann Yang, Li Li, Kai Kohlhoff, and Patrick Riley. Tensor Field Networks: Rotation-and Translation-Equivariant Neural Networks for 3D Point Clouds. arXiv Preprint, 2018.
291
+ [50] Shubham Tulsiani, Hao Su, Leonidas J Guibas, Alexei A Efros, and Jitendra Malik. Learning shape abstractions by assembling volumetric primitives. In Conference on Computer Vision and Pattern Recognition, 2017.
292
+ [51] Oliver van Kaick, Kai Xu, Hao Zhang, Yanzhen Wang, Shuyang Sun, Ariel Shamir, and Daniel Cohen-Or. Co-hierarchical analysis of shape structures. ACM SIGGRAPH, 2013.
293
+ [52] He Wang, Srinath Sridhar, Jingwei Huang, Julien Valentin, Shuran Song, and Leonidas J Guibas. Normalized Object Coordinate Space for Category-level 6d Object Pose and Size Estimation. In Conference on Computer Vision and Pattern Recognition, 2019.
294
+ [53] Nanyang Wang, Yinda Zhang, Zhuwen Li, Yanwei Fu, Wei Liu, and Yu-Gang Jiang. Pixel2mesh: Generating 3d mesh models from single rgb images. In European Conference on Computer Vision, 2018.
295
+ [54] Peng-Shuai Wang, Yang Liu, Yu-Xiao Guo, Chun-Yu Sun, and Xin Tong. O-CNN: Octree-Based Convolutional Neural Networks for 3d Shape Analysis. ACM Transactions on Graphics, 36(4):1–11, 2017.
296
+ [55] Peng-Shuai Wang, Chun-Yu Sun, Yang Liu, and Xin Tong. Adaptive o-cnn: A patch-based deep representation of 3d shapes. ACM Transactions on Graphics (TOG), 37(6):1–11, 2018.
297
+ [56] Yue Wang and Justin M Solomon. Deep Closest Point: Learning Representations for Point Cloud Registration. In International Conference on Computer Vision, 2019.
298
+ [57] Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E Sarma, Michael M Bronstein, and Justin M Solomon. Dynamic graph cnn for learning on point clouds. ACM Transactions on Graphics, 2019.
299
+ [58] Yuxin Wu and Kaiming He. Group Normalization. In European Conference on Computer Vision, 2018.
300
+ [59] Saining Xie, Jiatao Gu, Demi Guo, Charles R. Qi, Leonidas J. Guibas, and Or Litany. PointContrast: Unsupervised Pre-training for 3D Point Cloud Understanding. In European Conference on Computer Vision, 2020.
301
+ [60] Xinchen Yan, Jimei Yang, Ersin Yumer, Yijie Guo, and Honglak Lee. Perspective Transformer Nets: Learning Single-View 3D Object Reconstruction without 3D Supervision. In Advances in Neural Information Processing Systems, 2016.
302
+ [61] Yaoqing Yang, Chen Feng, Yiru Shen, and Dong Tian. FoldingNet: Point Cloud Auto-Encoder via Deep Grid Deformation. In Conference on Computer Vision and Pattern Recognition, 2018.
303
+ [62] Zi Jian Yew and Gim Hee Lee. Rpm-net: Robust point matching using learned features. In Conference on Computer Vision and Pattern Recognition, 2020.
304
+ [63] Wentao Yuan, Ben Eckart, Kihwan Kim, Varun Jampani, Dieter Fox, and Jan Kautz. DeepGMR: Learning Latent Gaussian Mixture Models for Registration. In European Conference on Computer Vision, 2020.
305
+ [64] Yongheng Zhao, Tolga Birdal, Haowen Deng, and Federico Tombari. 3D Point Capsule Networks. In Conference on Computer Vision and Pattern Recognition, 2019.
306
+ [65] Yongheng Zhao, Tolga Birdal, Jan Eric Lenssen, Emanuele Menegatti, Leonidas Guibas, and Federico Tombari. Quaternion Equivariant Capsule Networks for 3D Point Clouds. In European Conference on Computer Vision, 2020.
307
+ [66] Qian-Yi Zhou, Jaesik Park, and Vladlen Koltun. Fast global registration. In European Conference on Computer Vision, 2016.
308
+
309
+ # Checklist
310
+
311
+ 1. For all authors...
312
+
313
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] See Abstract and Section 1.
314
+ (b) Did you describe the limitations of your work? [Yes] See Section 5.
315
+ (c) Did you discuss any potential negative societal impacts of your work? [Yes] See Section 5.
316
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] There are no direct ethics concerns for the paper.
317
+
318
+ 2. If you are including theoretical results...
319
+
320
+ (a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
321
+
322
+ 3. If you ran experiments...
323
+
324
+ (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] In addition to the public code release that we will do, we have included the code in the supplementary
325
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 4.1.
326
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] Due to the large amount of compute requirement for repeated experiments we have not been able to include them in the submission. However, the results do not vary much from one run to the other in our experience, and we will release code to reproduce the results.
327
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Section 4.1. Note that to preserve anonymity we have decided not to include exact detail.
328
+
329
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
330
+
331
+ (a) If your work uses existing assets, did you cite the creators? [Yes] See Section 4.1.
332
+ (b) Did you mention the license of the assets? [Yes] See Section 4.1.
333
+ (c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
334
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
335
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
336
+
337
+ 5. If you used crowdsourcing or conducted research with human subjects...
338
+
339
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
340
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
341
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/train/jnkE5c5f9m/jnkE5c5f9m_content_list.json ADDED
@@ -0,0 +1,1430 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Canonical Capsules: Self-Supervised Capsules in Canonical Pose ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 236,
8
+ 122,
9
+ 763,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Weiwei $\\mathbf { S u n ^ { 1 , 4 , * } }$ ",
17
+ "text_level": 1,
18
+ "bbox": [
19
+ 202,
20
+ 224,
21
+ 310,
22
+ 239
23
+ ],
24
+ "page_idx": 0
25
+ },
26
+ {
27
+ "type": "text",
28
+ "text": "Andrea Tagliasacchi2,3,⇤ Boyang Deng3 Sara Sabour2,3 ",
29
+ "bbox": [
30
+ 343,
31
+ 224,
32
+ 795,
33
+ 241
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Soroosh Yazdani3 Geoffrey Hinton2,3 Kwang Moo Yi1,4 ",
40
+ "bbox": [
41
+ 269,
42
+ 260,
43
+ 728,
44
+ 276
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1University of British Columbia, 2University of Toronto, 3Google Research, 4University of Victoria, ⇤equal contributions ",
51
+ "bbox": [
52
+ 279,
53
+ 292,
54
+ 718,
55
+ 323
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "https://canonical-capsules.github.io ",
62
+ "bbox": [
63
+ 325,
64
+ 340,
65
+ 674,
66
+ 354
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Abstract ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 462,
76
+ 390,
77
+ 535,
78
+ 407
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "We propose a self-supervised capsule architecture for 3D point clouds. We compute capsule decompositions of objects through permutation-equivariant attention, and self-supervise the process by training with pairs of randomly rotated objects. Our key idea is to aggregate the attention masks into semantic keypoints, and use these to supervise a decomposition that satisfies the capsule invariance/equivariance properties. This not only enables the training of a semantically consistent decomposition, but also allows us to learn a canonicalization operation that enables object-centric reasoning. To train our neural network we require neither classification labels nor manually-aligned training datasets. Yet, by learning an object-centric representation in a self-supervised manner, our method outperforms the state-of-the-art on 3D point cloud reconstruction, canonicalization, and unsupervised classification. ",
85
+ "bbox": [
86
+ 233,
87
+ 424,
88
+ 766,
89
+ 575
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "1 Introduction ",
96
+ "text_level": 1,
97
+ "bbox": [
98
+ 174,
99
+ 606,
100
+ 310,
101
+ 623
102
+ ],
103
+ "page_idx": 0
104
+ },
105
+ {
106
+ "type": "text",
107
+ "text": "Understanding objects is one of the core problems of computer vision $[ \\sqrt { 3 2 } , \\sqrt { 1 4 } , \\sqrt { 3 8 } ]$ . While this task has traditionally relied on large annotated datasets $[ \\hat { \\lVert { \\boldsymbol { 4 } } \\hat { 2 } } , \\hat { \\lVert { \\boldsymbol { 2 } } \\hat { 2 } } ] ]$ , unsupervised approaches that utilize self-supervision $ { \\mathbb { I } }$ have emerged to remove the need for labels. Recently, researchers have attempted to extend these methods to work on 3D point clouds $\\mathbb { \\lVert 5 9 \\rVert }$ , but the field of unsupervised 3D learning remains relatively uncharted. Conversely, researchers have been extensively investigating 3D deep representations for shape auto-encoding1 [61, 19, 33, 16], making one wonder whether these discoveries can now benefit from unsupervised learning for tasks other than auto-encoding. ",
108
+ "bbox": [
109
+ 174,
110
+ 638,
111
+ 825,
112
+ 737
113
+ ],
114
+ "page_idx": 0
115
+ },
116
+ {
117
+ "type": "text",
118
+ "text": "Importantly, these recent methods for 3D deep representation learning are not entirely unsupervised. Whether using point clouds $\\mathbb { \\left[ 6 2 \\right] }$ , meshes $\\bar { \\| 1 9 \\| }$ , or implicits $\\mathbb { \\left[ \\left. 3 3 \\right] \\right. }$ , they owe much of their success to the bias within the dataset that was used for training. Specifically, all 3D models in the popular ShapeNet $\\pmb { \\mathbb { B } } \\|$ dataset are “object-centric” – they are pre-canonicalized to a unit bounding box, and, even more importantly, with an orientation that synchronizes object semantics to Euclidean frame axes (e.g. airplane cockpit is always along $+ y$ , car wheels always touch $z = 0$ ). Differentiable 3D decoders are heavily affected by the consistent alignment of their output with an Euclidean frame $\\boxed { 8 } \\boxed { 1 6 }$ as local-to-global transformations cannot be easily learnt by fully connected layers. As we will show in Section $^ { 4 . 2 , }$ these methods fail in the absence of pre-alignment, even when data augmentation is used. A concurrent work $\\lVert \\rVert \\bigstar \\bigstar \\rVert$ also recognizes this problem and proposes a separate learnt canonicalizer, which is shown helpful in downstream classification tasks. ",
119
+ "bbox": [
120
+ 174,
121
+ 743,
122
+ 826,
123
+ 868
124
+ ],
125
+ "page_idx": 0
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "",
130
+ "bbox": [
131
+ 171,
132
+ 90,
133
+ 823,
134
+ 119
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "In this work, we leverage the modeling paradigm of capsule networks $[ \\left[ 2 3 \\right] ]$ . In capsule networks, a scene is perceived via its decomposition into part hierarchies, and each part is represented with a (pose, descriptor) pair: $\\textcircled{1}$ The capsule pose specifies the frame of reference of a part, and hence should be transformation equivariant; $\\textcircled{2}$ The capsule descriptor specifies the appearance of a part, and hence should be transformation invariant. Thus, one does not have to worry how the data is oriented or translated, as these changes can be encoded within the capsule representation. ",
141
+ "bbox": [
142
+ 174,
143
+ 126,
144
+ 825,
145
+ 209
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "We introduce Canonical Capsules, a novel capsule architecture to compute a K-part decomposition of a point cloud. We train our network by feeding pairs of a randomly rotated/translated copies of the same shape (i.e. siamese training) hence removing the requirement of pre-aligned training datasets. We then decompose the point cloud by assigning each point into one of the K parts via attention, which we aggregate into K keypoints. Equivariance is then enforced by requiring the two keypoint sets to only differ by the known (relative) transformation (i.e. a form of self-supervision). For invariance, we simply ask that the descriptors of each keypoint of the two instances match. ",
152
+ "bbox": [
153
+ 174,
154
+ 215,
155
+ 825,
156
+ 313
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "With Canonical Capsules, we exploit our decomposition to recover a canonical frame that allows unsupervised “object-centric” learning of 3D deep representations without requiring a semantically aligned dataset. We achieve this task by regressing canonical capsule poses from capsule descriptors via a deep network, and computing a canonicalizing transformation by solving a shape-matching problem $\\bar { \\textregistered 4 4 }$ . This not only allows more effective shape auto-encoding, but our experiments confirm this results in a latent representation that is more effective in unsupervised classification tasks. Note that, like our decomposition, our canonicalizing transformations are also learnt in a self-supervised fashion, by only training on randomly transformed point clouds. ",
163
+ "bbox": [
164
+ 174,
165
+ 319,
166
+ 825,
167
+ 430
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Contributions. In summary, in this paper we: ",
174
+ "bbox": [
175
+ 176,
176
+ 435,
177
+ 475,
178
+ 450
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "• propose an architecture for 3D self-supervised learning based on capsule decomposition; • enable object-centric unsupervised learning by introducing a learned canonical frame of reference; • achieve state-of-the-art performance 3D point cloud auto-encoding/reconstruction, canonicalization, and unsupervised classification. ",
185
+ "bbox": [
186
+ 174,
187
+ 458,
188
+ 826,
189
+ 518
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "2 Related works ",
196
+ "text_level": 1,
197
+ "bbox": [
198
+ 174,
199
+ 544,
200
+ 325,
201
+ 560
202
+ ],
203
+ "page_idx": 1
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "Convolutional Neural Networks lack equivariance to rigid transformations, despite their pivotal role in describing the structure of the 3D scene behind a 2D image. One promising approach to overcome this shortcoming is to add equivariance under a group action in each layer [49, 9]. In our work, we remove the need for a global $\\mathbf { S E } ( 3 )$ -equivariant network by canonicalizing the input. ",
208
+ "bbox": [
209
+ 174,
210
+ 579,
211
+ 825,
212
+ 636
213
+ ],
214
+ "page_idx": 1
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "Capsule Networks. Capsule Networks $\\mathbb { \\left[ \\left. 2 3 \\right] \\right. }$ have been proposed to overcome this issue towards a relational and hierarchical understanding of natural images. Of particular relevance to our work, are methods that apply capsule networks to 3D input data [64, 65, 46], but note these methods are not unsupervised, as they either rely on classification supervision [65], or on datasets that present a significant inductive bias in the form of pre-alignment $\\pmb { \\| 6 4 \\| }$ . In this paper, we take inspiration from the recent Stacked Capsule Auto-Encoders $\\bar { \\| 3 0 \\| }$ , which shows how capsule-style reasoning can be effective as long as the primary capsules can be trained in a self-supervised fashion (i.e. via reconstruction losses). The natural question, which we answer in this paper, is “How can we engineer networks that generate 3D primary capsules in an unsupervised fashion?” ",
219
+ "bbox": [
220
+ 173,
221
+ 641,
222
+ 825,
223
+ 767
224
+ ],
225
+ "page_idx": 1
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "Deep 3D representations. Reconstructing 3D objects requires effective inductive biases about 3D vision and 3D geometry. When the input is images, the core challenge is how to encode $3 D$ projective geometry concepts into the model. This can be achieved by explicitly modeling multi-view geometry $\\bar { \\lVert 2 8 \\rVert }$ , by attempting to learn it $\\mathbb { \\lVert 1 3 \\rVert }$ , or by hybrid solutions $\\dot { \\left[ 6 0 \\right] }$ . But even when input is 3D, there are still significant challenges. It is still not clear which is the 3D representation that is most amenable to deep learning. Researchers proposed the use of meshes $\\lVert \\boldsymbol { \\bar { 5 } 3 } \\rVert \\textcircled { 3 1 }$ , voxels $\\mathbb { 1 } 5 4 , \\lvert 5 5 \\rvert$ , surface patches [19, 12, 10], and implicit functions $\\pm \\pm \\infty \\pm \\infty \\pm 1$ . Unfortunately, the importance of geometric structures (i.e. part-to-whole relationships) is often overlooked. Recent works have tried to close this gap by using part decomposition consisting of oriented boxes $ { \\mathbb { I } } ^ { { \\left[ 5 0 \\right] } }$ , ellipsoids $\\mathbb { I B Z } , \\mathbb { I G } ]$ , convex polytopes $\\mathbf { \\widehat { \\mathbb { m } } }$ , and grids [2]. However, as previously discussed, most of these still heavily rely on a pre-aligned training dataset; our paper attempts to bridge this gap, allowing learning of structured 3D representations without requiring pre-aligned data. ",
230
+ "bbox": [
231
+ 174,
232
+ 772,
233
+ 825,
234
+ 911
235
+ ],
236
+ "page_idx": 1
237
+ },
238
+ {
239
+ "type": "image",
240
+ "img_path": "images/b214db76fe7d07e923b4ee2f128eac4da2df13f56c046f7d9cb4366137ea8671.jpg",
241
+ "image_caption": [
242
+ "Figure 1: Framework – We learn a capsule encoder for 3D point clouds by relating the decomposition result of two random rigid transformations $\\mathbf { T } ^ { a }$ and $\\mathbf { T } ^ { b }$ , of a given point cloud, i.e., a Siamese training setup. We learn the parameters of an encoder $\\mathcal { E }$ , a per-capsule decoder $\\mathcal { D } _ { k }$ , as well as a network that represents a learnt canonical frame $\\kappa$ . For illustrative purposes, we shade-out the outputs that do not flow forward, and with $\\Sigma$ summarize the aggregations in $\\overset { \\cdot } { ( 2 ) }$ . "
243
+ ],
244
+ "image_footnote": [],
245
+ "bbox": [
246
+ 173,
247
+ 90,
248
+ 823,
249
+ 181
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "",
256
+ "bbox": [
257
+ 174,
258
+ 285,
259
+ 821,
260
+ 314
261
+ ],
262
+ "page_idx": 2
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "Canonicalization. One way to circumvent the requirement of pre-aligned datasets is to rely on methods capable of registering a point cloud into a canonical frame. The recently proposed CaSPR [39] fulfills this premise, but requires ground-truth canonical point clouds in the form of normalized object coordinate spaces $[ \\bar { 1 } \\bar { 5 } \\bar { 2 } ]$ for supervision. Similarly, $\\bar { \\| 2 0 \\| }$ regresses each view’s pose relative to the canonical pose, but still requires weak annotations in the form of multiple partial views. C3DPO $\\textcircled { 1 3 4 } \\textcircled { 1 }$ learns a canonical 3D frame based on 2D input keypoints. In contrast to these methods, our solution is completely self-supervised. The concurrent Compass [45] also learns to canonicalize in a self-supervised fashion, but as the process is not end-to-end, this results in a worse performance than ours, as it will be shown in Section 4.3. ",
267
+ "bbox": [
268
+ 173,
269
+ 319,
270
+ 826,
271
+ 445
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "Registration. Besides canonicalization, many pairwise registration techniques based on deep learning have been proposed (e.g. [56, $\\boxed { 6 3 }$ ), even using semantic keypoints and symmetry to perform the task $\\mathbb { \\lVert \\boldsymbol { 1 5 } \\rVert }$ . These methods typically register a pair of instances from the same class, but lack the ability to jointly and consistently register all instances to a shared canonical frame. ",
278
+ "bbox": [
279
+ 173,
280
+ 450,
281
+ 825,
282
+ 507
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "3 Method ",
289
+ "text_level": 1,
290
+ "bbox": [
291
+ 174,
292
+ 526,
293
+ 271,
294
+ 544
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "Our network trains on unaligned point clouds as illustrated in Figure $\\boldsymbol { 1 } \\colon$ we train a network that decomposes point clouds into parts, and enforce invariance/equivariance through a Siamese training setup $\\dot { \\left[ \\left| 4 8 \\right| \\right] }$ . We then canonicalize the point cloud to a learnt frame of reference, and perform autoencoding in this coordinate space. The losses employed to train $\\varepsilon , \\kappa$ , and $\\mathcal { D }$ , will be covered in Section $^ { 3 . 1 , }$ while the details of their architecture are in Section $3 . 2 .$ ",
301
+ "bbox": [
302
+ 173,
303
+ 558,
304
+ 825,
305
+ 628
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "Decomposition. In more detail, given a point cloud $\\mathbf { P } \\in \\mathbb { R } ^ { P \\times D }$ of $P$ points in $D$ dimensions (in our case $D { = } 3$ ), we perturb it with two random transformations $\\mathbf { T } ^ { a }$ ${ { \\mathbf { \\Omega } } ^ { a } } , { { \\mathbf { T } } ^ { b } } { \\dot { \\mathbf { \\Omega } } } \\in { \\mathbf { S } } \\mathbf { E } ( D )$ to produce point clouds $\\mathbf { P } ^ { a } , \\mathbf { P } ^ { b }$ . We then use a shared permutation-equivariant capsule encoder $\\mathcal { E }$ to compute a $K$ -fold attention map $\\mathbf { A } \\in \\mathbb { R } ^ { P \\times K }$ for $K$ capsules, as well as per-point feature map $\\mathbf { F } \\in \\overset { \\bullet } { \\mathbb { R } ^ { P \\times C } }$ with $C$ channels: ",
312
+ "bbox": [
313
+ 173,
314
+ 633,
315
+ 825,
316
+ 704
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "equation",
322
+ "img_path": "images/dab0d03a2759dc4b53aada43e1d65d535a911d1d5e2a0e5dcd19d7343bd86bcc.jpg",
323
+ "text": "$$\n\\mathbf { A } , \\mathbf { F } = { \\mathcal { E } } ( \\mathbf { P } ) \\ ,\n$$",
324
+ "text_format": "latex",
325
+ "bbox": [
326
+ 446,
327
+ 704,
328
+ 549,
329
+ 722
330
+ ],
331
+ "page_idx": 2
332
+ },
333
+ {
334
+ "type": "text",
335
+ "text": "where we drop the superscript indexing the Siamese branch for simplicity. From these attention masks, we then compute, for the $k$ –th capsule its pose $\\theta _ { k } \\in \\mathbb { R } ^ { 3 }$ parameterized by its location in 3D space, and the corresponding capsule descriptor $\\beta _ { k } \\in \\mathbb { R } ^ { C }$ : ",
336
+ "bbox": [
337
+ 173,
338
+ 726,
339
+ 826,
340
+ 768
341
+ ],
342
+ "page_idx": 2
343
+ },
344
+ {
345
+ "type": "equation",
346
+ "img_path": "images/49607a0225e78028587dcb1226b801ea35dde2b3f3e30e41288cc282b94ec101.jpg",
347
+ "text": "$$\n\\theta _ { k } = \\frac { \\sum _ { p } \\mathbf { A } _ { p , k } \\mathbf { P } _ { p } } { \\sum _ { p } \\mathbf { A } _ { p , k } } , \\qquad \\beta _ { k } = \\frac { \\sum _ { p } \\mathbf { A } _ { p , k } \\mathbf { F } _ { p } } { \\sum _ { p } \\mathbf { A } _ { p , k } } .\n$$",
348
+ "text_format": "latex",
349
+ "bbox": [
350
+ 346,
351
+ 775,
352
+ 651,
353
+ 814
354
+ ],
355
+ "page_idx": 2
356
+ },
357
+ {
358
+ "type": "text",
359
+ "text": "Hence, as long as $\\mathcal { E }$ is invariant w.r.t. rigid transformations of $\\mathbf { P }$ , the pose $\\pmb { \\theta } _ { k }$ will be transformation equivariant, and the descriptor $\\beta _ { k }$ will be transformation invariant. Note that this simplifies the design (and training) of the encoder $\\mathcal { E }$ , which only needs to be invariant, rather than equivariant $\\textcircled { 1 4 9 } , \\textcircled { 4 6 } $ . ",
360
+ "bbox": [
361
+ 174,
362
+ 820,
363
+ 825,
364
+ 863
365
+ ],
366
+ "page_idx": 2
367
+ },
368
+ {
369
+ "type": "text",
370
+ "text": "Canonicalization. Simply enforcing invariance and equivariance with the above framework is not enough to learn 3D representations that are object-centric, as we lack an (unsupervised) mechanism to bring information into a shared “object-centric” reference frame. Furthermore, the “right” canonical frame is nothing but a convention, thus we need a mechanism that allows the network to make a choice – a choice, however, that must then be consistent across all objects. For example, a learnt canonical frame where the cockpit of airplanes is consistently positioned along $+ z$ is just as good as a canonical frame where it is positioned along the $+ y$ axis. To address this, we propose to link the capsule descriptors to the capsule poses in canonical space, that is, we ask that objects with similar appearance to be located in similar Euclidean neighborhoods in canonical space. We achieve this by regressing canonical capsules poses (i.e. canonical keypoints) $\\bar { \\pmb { \\theta } } \\in \\mathbb { R } ^ { K \\times 3 }$ using the descriptors ${ \\bar { \\beta } } \\in { \\breve { \\mathbb { R } } } ^ { K \\times C }$ via a fully connected deep network $\\kappa$ : ",
371
+ "bbox": [
372
+ 174,
373
+ 869,
374
+ 825,
375
+ 911
376
+ ],
377
+ "page_idx": 2
378
+ },
379
+ {
380
+ "type": "text",
381
+ "text": "",
382
+ "bbox": [
383
+ 173,
384
+ 90,
385
+ 825,
386
+ 203
387
+ ],
388
+ "page_idx": 3
389
+ },
390
+ {
391
+ "type": "equation",
392
+ "img_path": "images/86dbb1174784cf1174c4710c073ad549e2d239cf15d052cb7f25111df9ff9a48.jpg",
393
+ "text": "$$\n\\bar { \\pmb { \\theta } } = \\mathcal { K } \\left( \\beta \\right)\n$$",
394
+ "text_format": "latex",
395
+ "bbox": [
396
+ 460,
397
+ 205,
398
+ 535,
399
+ 224
400
+ ],
401
+ "page_idx": 3
402
+ },
403
+ {
404
+ "type": "text",
405
+ "text": "Because fully connected layers are biased towards learning low-frequency representations $ { \\mathbb { \\left[ \\left[ 2 7 \\right] \\right] } }$ , this regressor also acts as a regularizer that enforces semantic locality. ",
406
+ "bbox": [
407
+ 171,
408
+ 229,
409
+ 823,
410
+ 257
411
+ ],
412
+ "page_idx": 3
413
+ },
414
+ {
415
+ "type": "text",
416
+ "text": "Auto-encoding. Finally, in the learnt canonical frame of reference, to train the capsule descriptors via auto-encoding, we reconstruct the point clouds with per-capsule decoders $\\mathcal { D } _ { k }$ : ",
417
+ "bbox": [
418
+ 173,
419
+ 263,
420
+ 823,
421
+ 291
422
+ ],
423
+ "page_idx": 3
424
+ },
425
+ {
426
+ "type": "equation",
427
+ "img_path": "images/c3d74c1c82daad71c8200df564e1b61ce5cdfb4224cda6dd9cec2aacc5cbcf5a.jpg",
428
+ "text": "$$\n\\tilde { \\bf P } = \\cup _ { k } \\left\\{ \\mathcal { D } _ { k } ( \\bar { \\bf R } \\pmb { \\theta } _ { k } + \\bar { \\bf t } , \\beta _ { k } ) \\right\\} ,\n$$",
429
+ "text_format": "latex",
430
+ "bbox": [
431
+ 393,
432
+ 296,
433
+ 602,
434
+ 316
435
+ ],
436
+ "page_idx": 3
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "where $\\cup$ denotes the union operator. The canonicalizing transformation $\\bar { \\bf T } = ( \\bar { \\bf R } , \\bar { \\bf t } )$ can be readily computed by solving a shape-matching problem $\\pm \\ddagger { 4 } \\rVert$ , thanks to the property that our capsule poses and regressed keypoints are in one-to-one correspondence: ",
441
+ "bbox": [
442
+ 173,
443
+ 321,
444
+ 825,
445
+ 364
446
+ ],
447
+ "page_idx": 3
448
+ },
449
+ {
450
+ "type": "equation",
451
+ "img_path": "images/d3099658afddc18c7961e0749d3bfd39af458ea3f92a5177ce5abc7cd421c6f3.jpg",
452
+ "text": "$$\n\\bar { \\bf R } , \\bar { \\bf t } = \\underset { { \\bf R } , \\mathbf { t } } { \\arg \\operatorname* { m i n } } \\frac { 1 } { K } \\sum _ { k } \\| ( { \\bf R } \\pmb { \\theta } _ { k } + { \\bf t } ) - \\bar { \\pmb { \\theta } } _ { k } \\| _ { 2 } ^ { 2 } .\n$$",
453
+ "text_format": "latex",
454
+ "bbox": [
455
+ 348,
456
+ 369,
457
+ 648,
458
+ 406
459
+ ],
460
+ "page_idx": 3
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "While the reconstruction in $\\textcircled{4}$ is in canonical frame, note it is trivial to transform the point cloud back to the original coordinate system after reconstruction, as the transformation $\\bar { \\mathbf { T } } ^ { - 1 }$ is available. ",
465
+ "bbox": [
466
+ 173,
467
+ 410,
468
+ 825,
469
+ 439
470
+ ],
471
+ "page_idx": 3
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "3.1 Losses ",
476
+ "text_level": 1,
477
+ "bbox": [
478
+ 173,
479
+ 455,
480
+ 259,
481
+ 469
482
+ ],
483
+ "page_idx": 3
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "As common in unsupervised methods, our framework relies on a number of losses that control the different characteristics we seek to obtain in our representation. Note none of these losses require ground truth labels. We organize the losses according to the portion of the network they supervise: decomposition, canonicalization, and reconstruction. ",
488
+ "bbox": [
489
+ 173,
490
+ 479,
491
+ 825,
492
+ 536
493
+ ],
494
+ "page_idx": 3
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "Decomposition. While a transformation invariant encoder architecture should be sufficient to achieve equivariance/invariance, this does not prevent the encoder from producing trivial solutions/decompositions once trained. As capsule poses should be transformation equivariant, the poses of the two rotation augmentations $\\pmb { \\theta } _ { k } ^ { a }$ and $\\theta _ { k } ^ { b }$ should only differ by the (known) relative transformation: ",
499
+ "bbox": [
500
+ 173,
501
+ 541,
502
+ 825,
503
+ 601
504
+ ],
505
+ "page_idx": 3
506
+ },
507
+ {
508
+ "type": "equation",
509
+ "img_path": "images/0afa6c000eab8b6e4d3503f540555ca133c53b51ce615118b57c33e1a20d6ce7.jpg",
510
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { e q u i v a r i a n c e } } = \\frac { 1 } { K } \\sum _ { k } \\| \\pmb { \\theta } _ { k } ^ { a } - ( \\mathbf { T } ^ { a } ) ( \\mathbf { T } ^ { b } ) ^ { - 1 } \\pmb { \\theta } _ { k } ^ { b } \\| _ { 2 } ^ { 2 } .\n$$",
511
+ "text_format": "latex",
512
+ "bbox": [
513
+ 341,
514
+ 604,
515
+ 656,
516
+ 642
517
+ ],
518
+ "page_idx": 3
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "Conversely, capsule descriptors should be transformation invariant, and as the two input points clouds are of the same object, the corresponding capsule descriptors $\\beta$ should be identical: ",
523
+ "bbox": [
524
+ 174,
525
+ 646,
526
+ 825,
527
+ 675
528
+ ],
529
+ "page_idx": 3
530
+ },
531
+ {
532
+ "type": "equation",
533
+ "img_path": "images/288a883ecaa5d9617c22046404f07d6548e88f9f6bfc406b8d57075849694b1d.jpg",
534
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { i n v a r i a n c e } } = \\frac { 1 } { K } \\sum _ { k } \\| \\beta _ { k } ^ { a } - \\beta _ { k } ^ { b } \\| _ { 2 } ^ { 2 } .\n$$",
535
+ "text_format": "latex",
536
+ "bbox": [
537
+ 387,
538
+ 679,
539
+ 611,
540
+ 717
541
+ ],
542
+ "page_idx": 3
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "We further regularize the capsule decomposition to ensure each of the $K$ heads roughly represent the same “amount” of the input point cloud, hence preventing degenerate (zero attention) capsules. This is achieved by penalizing the attention variance: ",
547
+ "bbox": [
548
+ 173,
549
+ 720,
550
+ 825,
551
+ 763
552
+ ],
553
+ "page_idx": 3
554
+ },
555
+ {
556
+ "type": "equation",
557
+ "img_path": "images/040046403298e0c6b00e7677687c7b0dc66bc76a8cfbe7fbeda32f9304ac51c5.jpg",
558
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { e q u i l i b r i u m } } = \\frac { 1 } { K } \\sum _ { k } \\| a _ { k } - \\frac { 1 } { K } \\Sigma _ { k } a _ { k } \\| _ { 2 } ^ { 2 } ,\n$$",
559
+ "text_format": "latex",
560
+ "bbox": [
561
+ 369,
562
+ 767,
563
+ 629,
564
+ 805
565
+ ],
566
+ "page_idx": 3
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "where $a _ { k } = \\Sigma _ { p } ( \\mathbf { A } _ { p , k } )$ denotes the total attention exerted by the $\\mathbf { k }$ -th head on the point cloud. ",
571
+ "bbox": [
572
+ 171,
573
+ 809,
574
+ 781,
575
+ 825
576
+ ],
577
+ "page_idx": 3
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "Finally, to facilitate the training process, we ask for capsules to learn a localized representation of geometry. We express the spatial extent of a capsule by computing first-order moments of the represented points with respect to the capsule pose $\\pmb { \\theta } _ { k }$ : ",
582
+ "bbox": [
583
+ 174,
584
+ 830,
585
+ 825,
586
+ 873
587
+ ],
588
+ "page_idx": 3
589
+ },
590
+ {
591
+ "type": "equation",
592
+ "img_path": "images/33899b27f6c1965758e9be0d4a3c431892190eae84079ad6d8bc3d7af67fd187.jpg",
593
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { l o c a l i z a t i o n } } = \\frac { 1 } { K } \\sum _ { k } \\frac { 1 } { a _ { k } } \\sum _ { p } { \\bf A } _ { p , k } \\| \\pmb { \\theta } _ { k } - { \\bf P } _ { p } \\| _ { 2 } ^ { 2 } .\n$$",
594
+ "text_format": "latex",
595
+ "bbox": [
596
+ 343,
597
+ 877,
598
+ 653,
599
+ 915
600
+ ],
601
+ "page_idx": 3
602
+ },
603
+ {
604
+ "type": "text",
605
+ "text": "Canonicalization. To train our canonicalizer $\\kappa$ , we relate the predicted capsule poses to regressed canonical capsule poses via the optimal rigid transformation from $\\textcircled{5}$ : ",
606
+ "bbox": [
607
+ 171,
608
+ 90,
609
+ 823,
610
+ 121
611
+ ],
612
+ "page_idx": 4
613
+ },
614
+ {
615
+ "type": "equation",
616
+ "img_path": "images/ef942ee0e9f007beda15d3aaf6518f042ad7e7ef0410a4dd195762b54e31b27f.jpg",
617
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { c a n o n i c a l } } = \\frac { 1 } { K } \\sum _ { k } \\| ( \\bar { \\bf R } \\pmb { \\theta } _ { k } + \\bar { \\bf t } ) - \\bar { \\pmb { \\theta } } _ { k } \\| _ { 2 } ^ { 2 } .\n$$",
618
+ "text_format": "latex",
619
+ "bbox": [
620
+ 362,
621
+ 125,
622
+ 635,
623
+ 162
624
+ ],
625
+ "page_idx": 4
626
+ },
627
+ {
628
+ "type": "text",
629
+ "text": "Recall that $\\bar { \\mathbf { R } }$ and $\\bar { \\mathbf T }$ are obtained through a differentiable process. Thus, this loss is forcing the aggregated pose $\\pmb { \\theta } _ { k }$ to agree with the one that goes through the regression path, $\\bar { \\pmb { \\theta } } _ { k }$ . Now, since $\\bar { \\pmb { \\theta } } _ { k }$ is regressed solely from the set of capsule descriptors, similar shapes will result in similar canonical keypoints, and the coordinate system of $\\bar { \\pmb { \\theta } } _ { k }$ is one that employs Euclidean space to encode semantics. ",
630
+ "bbox": [
631
+ 174,
632
+ 169,
633
+ 825,
634
+ 226
635
+ ],
636
+ "page_idx": 4
637
+ },
638
+ {
639
+ "type": "text",
640
+ "text": "Reconstruction. To learn canonical capsule descriptors in an unsupervised fashion, we rely on an auto-encoding task. We train the decoders $\\{ \\mathcal { D } _ { k } \\}$ by minimizing the Chamfer Distance (CD) between the (canonicalized) input point cloud and the reconstructed one, as in [61, 19]: ",
641
+ "bbox": [
642
+ 174,
643
+ 231,
644
+ 825,
645
+ 273
646
+ ],
647
+ "page_idx": 4
648
+ },
649
+ {
650
+ "type": "equation",
651
+ "img_path": "images/fbfd84cbd9c491d1a04fb6ab29c0f266cbdf4c8557d11614056d4cedd6c45ac1.jpg",
652
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { r e c o n } } = \\mathrm { C D } \\left( \\bar { \\mathbf { R } } \\mathbf { P } + \\bar { \\mathbf { t } } , \\tilde { \\mathbf { P } } \\right) .\n$$",
653
+ "text_format": "latex",
654
+ "bbox": [
655
+ 400,
656
+ 280,
657
+ 598,
658
+ 308
659
+ ],
660
+ "page_idx": 4
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "3.2 Network Architectures ",
665
+ "text_level": 1,
666
+ "bbox": [
667
+ 174,
668
+ 320,
669
+ 372,
670
+ 335
671
+ ],
672
+ "page_idx": 4
673
+ },
674
+ {
675
+ "type": "text",
676
+ "text": "We briefly summarize our implementation details, including the network architecture; for further details, please refer to the supplementary material. ",
677
+ "bbox": [
678
+ 174,
679
+ 345,
680
+ 823,
681
+ 375
682
+ ],
683
+ "page_idx": 4
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "Encoder – $\\mathcal { E }$ . Our architecture is based on the one suggested in $\\textcircled { \\lVert { 4 7 } \\rVert }$ : a pointnet-like architecture with residual connections and attentive context normalization. We utilize Batch Normalization [26] instead of the Group Normalization $\\lVert \\boldsymbol { \\bar { 5 } } 8 \\rVert$ , which trained faster in our experiments. We further extend their method to have multiple attention maps, where each attention map corresponds to a capsule. ",
688
+ "bbox": [
689
+ 173,
690
+ 380,
691
+ 825,
692
+ 436
693
+ ],
694
+ "page_idx": 4
695
+ },
696
+ {
697
+ "type": "text",
698
+ "text": "Decoder – $\\mathcal { D }$ . The decoder from $\\textcircled{4}$ operates on a per-capsule basis. Our decoder architecture is similar to AtlasNetV2 $\\mathbb { [ [ 2 ] }$ (with trainable grids). The difference is that we translate the per-capsule decoded point cloud by the corresponding capsule pose. ",
699
+ "bbox": [
700
+ 174,
701
+ 441,
702
+ 823,
703
+ 484
704
+ ],
705
+ "page_idx": 4
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "Regressor – $\\kappa$ . We concatenate the descriptors and apply a series of fully connected layers with ReLU activation to regress the $P$ capsule locations. At the output layer we use a linear activation and subtract the mean of the outputs to make our regressed locations zero-centered in the canonical frame. ",
710
+ "bbox": [
711
+ 174,
712
+ 489,
713
+ 823,
714
+ 532
715
+ ],
716
+ "page_idx": 4
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "Canonicalizing the descriptors. As our descriptors are only approximately rotation invariant (via $\\mathcal { L } _ { \\mathrm { i n v a r i a n c e } } )$ , we found it useful to re-extract the capsule descriptors $\\beta _ { k }$ after canonicalization. Specifically, we compute $\\bar { \\bf F }$ with the same encoder setup, but with $\\bar { \\bf P } { = } \\bar { \\bf R } \\bar { \\bf P } { + } \\bar { \\bf T }$ instead of $\\mathbf { P }$ and use it to compute $\\bar { \\boldsymbol { \\beta } } _ { k }$ ; we validate this empirically in the supplementary material. ",
721
+ "bbox": [
722
+ 174,
723
+ 539,
724
+ 826,
725
+ 595
726
+ ],
727
+ "page_idx": 4
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "4 Results ",
732
+ "text_level": 1,
733
+ "bbox": [
734
+ 174,
735
+ 613,
736
+ 266,
737
+ 631
738
+ ],
739
+ "page_idx": 4
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "We first discuss the experimental setup, and then validate our method on a variety of tasks: autoencoding, canonicalization, and unsupervised classification. While the task differs, our learning process remains the same: we learn capsules by reconstructing objects in a learnt canonical frame. We also provide an ablation study, which is expanded in detail in the supplementary material, where we provide additional qualitative results. ",
744
+ "bbox": [
745
+ 174,
746
+ 645,
747
+ 826,
748
+ 714
749
+ ],
750
+ "page_idx": 4
751
+ },
752
+ {
753
+ "type": "text",
754
+ "text": "4.1 Experimental setup ",
755
+ "text_level": 1,
756
+ "bbox": [
757
+ 174,
758
+ 731,
759
+ 349,
760
+ 746
761
+ ],
762
+ "page_idx": 4
763
+ },
764
+ {
765
+ "type": "text",
766
+ "text": "To evaluate our method, we rely on the ShapeNet (Core) dataset $\\pmb { \\bigtriangledown } ^ { 2 } .$ We follow the category choices from AtlasNetV2 [12], using the airplane and chair classes for single-category experiments, while for multi-category experiments we use all 13 classes: airplane, bench, cabinet, car, chair, monitor, lamp, speaker, firearm, couch, table, cellphone, and watercraft. To make our results most compatible with those reported in the literature, we also use the same splits as in AtlasNetV2 [12]: 31747 shapes in the train, and 7943 shapes in the test set. Unless otherwise noted, we randomly sample 1024 points from the object surface for each shape to create our 3D point clouds. ",
767
+ "bbox": [
768
+ 173,
769
+ 753,
770
+ 825,
771
+ 853
772
+ ],
773
+ "page_idx": 4
774
+ },
775
+ {
776
+ "type": "text",
777
+ "text": "De-canonicalizing the dataset. As discussed in the introduction, ShapeNet (Core) contains substantial inductive bias in the form of consistent semantic alignment. To remove this bias, we create random ",
778
+ "bbox": [
779
+ 174,
780
+ 859,
781
+ 823,
782
+ 887
783
+ ],
784
+ "page_idx": 4
785
+ },
786
+ {
787
+ "type": "text",
788
+ "text": "SE(3) transformations, and apply them to each point cloud. We first generate uniformly sampled random rotations, and add uniformly sampled random translations within the range $[ - 0 . 2 , 0 . 2 ]$ , where the bounding volume of the shape ranges in $[ - 1 , + 1 ]$ . Note the relatively limited translation range is chosen to give state-of-the-art methods a chance to compete with our solution. We then use the relative transformation between the point clouds extracted from this ground-truth transformation to evaluate our methods. We refer to this unaligned version of the ShapeNet Core dataset as the unaligned setup, and using the vanilla ShapeNet Core dataset as the aligned setup. For the aligned setup, as there is no need for equivariance adaptation, we simply train our method without the random transformations, and so $\\mathcal { L } _ { \\mathrm { e q u i v a r i a n c e } }$ and $\\mathcal { L } _ { \\mathrm { i n v a r i a n c e } }$ are not used. This setup is to simply demonstrate how Canonical Capsules would perform in the presence of a dataset bias. ",
789
+ "bbox": [
790
+ 173,
791
+ 90,
792
+ 825,
793
+ 229
794
+ ],
795
+ "page_idx": 5
796
+ },
797
+ {
798
+ "type": "text",
799
+ "text": "We emphasize here that a proper generation of random rotation is important. While some existing works have generated them by uniformly sampling the degrees of freedom of an Euler-angle representation, this is known to be an incorrect way to sample random rotations $\\pmb { \\mathbb { H } }$ , leading to biases in the generated dataset; see the supplementary material. ",
800
+ "bbox": [
801
+ 174,
802
+ 236,
803
+ 825,
804
+ 291
805
+ ],
806
+ "page_idx": 5
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "Implementation details. For all our experiments we use the Adam optimizer $\\mathbb { \\left[ \\left[ 2 9 \\right] \\right] }$ with an initial learning rate of 0.001 and decay rate of 0.1. We train for 325 epochs for the aligned setup to match the AtlasNetV2 $\\mathbb { \\lVert 1 2 \\rVert }$ original setup. For the unaligned setting, as the problem is harder, we train for a longer number of 450 epochs. We use a batch size of 16. The training rate is ${ \\sim } 2 . 5$ iters/sec. We train each model on a single NVidia V100 GPU. Unless stated otherwise, we use $k { = } 1 0$ capsules and capsule descriptors of dimension $C { = } 1 2 8$ . We train three models with our method: two that are single-category (i.e., for airplane and chairs), and one that is multi-category (i.e., all 13 classes). To set the weights for each loss term, we rely on the reconstruction performance (CD) in the training set. We set weights to be one for all terms except for $\\mathcal { L } _ { \\mathrm { e q u i v a r i a n c e } }$ (5) and $\\mathcal { L } _ { \\mathrm { e q u i l i b r i u m } } ( 1 0 ^ { - 3 } )$ . In the aligned case, because $\\mathcal { L } _ { \\mathrm { e q u i v a r i a n c e } }$ and $\\mathcal { L } _ { \\mathrm { i n v a r i a n c e } }$ are not needed (always zero), we reduce the weights for the other decomposition losses by $1 0 ^ { 3 }$ ; $ { \\mathcal { L } } _ { \\mathrm { l o c a l i z a t i o n } }$ to $1 0 ^ { - 3 }$ and $\\mathcal { L } _ { \\mathrm { { e q u i l i b r i u m } } }$ to $1 0 ^ { - 6 }$ . ",
811
+ "bbox": [
812
+ 173,
813
+ 297,
814
+ 826,
815
+ 453
816
+ ],
817
+ "page_idx": 5
818
+ },
819
+ {
820
+ "type": "text",
821
+ "text": "4.2 Auto-encoding – Figure 2 and Table 1 ",
822
+ "text_level": 1,
823
+ "bbox": [
824
+ 176,
825
+ 470,
826
+ 473,
827
+ 487
828
+ ],
829
+ "page_idx": 5
830
+ },
831
+ {
832
+ "type": "table",
833
+ "img_path": "images/97b1c8cfd7a1bb4b282c45bf2256f7fc52841b1afb987bf691a39d1ce9e43f73.jpg",
834
+ "table_caption": [
835
+ "Table 1: Auto-encoding / quantitative – Performance in terms of Chamfer distance with 1024 points per point cloud – metric is multiplied by $\\mathrm { 1 0 ^ { 3 } }$ as in $\\pmb { \\mathbb { I } }$ . "
836
+ ],
837
+ "table_footnote": [],
838
+ "table_body": "<table><tr><td></td><td>Method</td><td>Airplane</td><td>Chair</td><td>Multi</td></tr><tr><td>Pgia</td><td>3D-PointCapsNet [64]</td><td>1.94</td><td>3.30</td><td>2.49</td></tr><tr><td></td><td>AtlasNetV212</td><td>1.28</td><td>2.36</td><td>2.14</td></tr><tr><td></td><td>Our method</td><td>0.96</td><td>1.99</td><td>1.76</td></tr><tr><td>nrtgren</td><td>3D-PointCapsNet [64</td><td>5.58</td><td>7.57</td><td>4.66</td></tr><tr><td></td><td>AtlasNetV2 国</td><td>2.80</td><td>3.98</td><td>3.08</td></tr><tr><td></td><td>AtlasNetV2 园 w/ STN</td><td>1.90</td><td>2.99</td><td>2.60</td></tr><tr><td></td><td>Our method</td><td>1.11</td><td>2.58</td><td>2.22</td></tr></table>",
839
+ "bbox": [
840
+ 532,
841
+ 564,
842
+ 821,
843
+ 659
844
+ ],
845
+ "page_idx": 5
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "We evaluate the performance of our method for the task that was used to train the network – reconstruction / auto-encoding – against three baselines (trained in both single-category and multi-category variants): $\\textcircled{1}$ 3D-PointCapsNet $\\dot { \\left[ 6 4 \\right] }$ , an auto-encoder for 3D point clouds that utilize a capsule architecture; $\\textcircled{2}$ AtlasNetV2 $\\mathbb { [ [ 2 ] }$ , a state-of-the-art auto-encoder which utilizes a multi-head patch-based decoder; $\\textcircled{3}$ AtlasNetV2 $\\mathbb { \\lVert 1 2 \\rVert }$ with a spatial-transformer network (STN) aligner from PointNet $[ \\beta 6 ]$ , a baseline with canonicalization. We do not compare against $\\lVert \\overline { { 4 6 } } \\rVert$ , as unfortunately source code is not publicly available. ",
850
+ "bbox": [
851
+ 174,
852
+ 497,
853
+ 517,
854
+ 662
855
+ ],
856
+ "page_idx": 5
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "Quantitative analysis – Table 1. We achieve state-of-the-art performance in both the aligned and unaligned settings. The wider margin in the unaligned setup indicates tackling this more challenging scenario damages the performance of AtlasNetV2 [12] and 3D-PointCapsNet $\\textcircled { 6 4 } \\textcircled { 1 6 }$ much more than our method3. We also include a variant of AtlasNetV2 for which a STN (Spatial Transformer Network) is used to pre-align the point clouds [36], demonstrating how the simplest form of prealigner/canonicalizer is not sufficient. ",
861
+ "bbox": [
862
+ 173,
863
+ 670,
864
+ 825,
865
+ 752
866
+ ],
867
+ "page_idx": 5
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "Qualitative analysis – Figure 2. We illustrate our decomposition-based reconstruction of 3D point clouds, as well as the reconstructions of 3D-PointCapsNet [64] and AtlasNetV2 [12]. As shown, even in the unaligned setup, our method is able to provide semantically consistent capsule decompositions – e.g. the wings of the airplane have consistent colours, and when aligned in the canonical frame, the different airplane instances are well-aligned. Compared to AtlasNetV2 $\\mathbb { \\lVert \\rVert }$ and 3D-PointCapsNet $\\pmb { \\mathbb { E 4 } }$ , the reconstruction quality is also visibly improved: we better preserve details along the engines of the airplane, or the thin structures of the bench; note also that the decompositions are semantically consistent in our examples. Results are better appreciated in our supplementary material, where we visualize the performance as we continuously traverse $\\mathbf { S E } ( 3 )$ . ",
872
+ "bbox": [
873
+ 174,
874
+ 758,
875
+ 825,
876
+ 857
877
+ ],
878
+ "page_idx": 5
879
+ },
880
+ {
881
+ "type": "image",
882
+ "img_path": "images/d9254b3576e6f0b73d8a67dbdef09b1f14b32c94cc04c89a3c04cfdc66f4a905.jpg",
883
+ "image_caption": [
884
+ "Figure 2: Auto-encoding / qualitative – Example decomposition and reconstruction results setup using Canonical Capsules on several unaligned point cloud instances from the test set. We color each Canonical Capsule with a unique colour, and similarly color “patches” from the reconstruction heads of 3D-PointCapsNet [64] and AtlasNetV2 [12]. Canonical Capsules provide semantically consistent decomposition that is aligned in canonical frame, leading to improved reconstruction quality. "
885
+ ],
886
+ "image_footnote": [],
887
+ "bbox": [
888
+ 174,
889
+ 90,
890
+ 815,
891
+ 431
892
+ ],
893
+ "page_idx": 6
894
+ },
895
+ {
896
+ "type": "text",
897
+ "text": "",
898
+ "bbox": [
899
+ 173,
900
+ 531,
901
+ 823,
902
+ 560
903
+ ],
904
+ "page_idx": 6
905
+ },
906
+ {
907
+ "type": "text",
908
+ "text": "4.3 Canonicalization – Table 2 ",
909
+ "text_level": 1,
910
+ "bbox": [
911
+ 174,
912
+ 574,
913
+ 398,
914
+ 590
915
+ ],
916
+ "page_idx": 6
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "We compare against three baselines: $\\textcircled{1}$ Deep Closest Points $\\left[ \\left[ 5 6 \\right] \\right]$ , a deep learning-based pairwise point cloud registration method; $\\textcircled{2}$ DeepGMR $\\begin{array} { r l } { { \\bigl [ \\bigl | 6 3 \\bigr | \\bigr ] } } \\end{array}$ a state-of-the-art pairwise registration method that decomposes clouds into Gaussian mixtures and utilizes Rigorously Rotation-Invariant (RRI) features [4]; $\\textcircled{3}$ Compass $[ | 4 5 | ]$ a concurrent work on learnt alignment/canonicalization. For all compared methods we use the official implementation. For DeepGMR we use both RRI and the typical XYZ coordinates as input. We also try our method with the RRI features, following DeepGMR’s training protocol and train for 100 epochs. ",
921
+ "bbox": [
922
+ 173,
923
+ 599,
924
+ 825,
925
+ 699
926
+ ],
927
+ "page_idx": 6
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "Metrics. To evaluate the canonicalization performance, we look into the stability of the canonicalization – the shakiness shown in the videos in our supplementary material– represented as the mean standard deviation of the rotations (mStd): ",
932
+ "bbox": [
933
+ 174,
934
+ 704,
935
+ 823,
936
+ 746
937
+ ],
938
+ "page_idx": 6
939
+ },
940
+ {
941
+ "type": "equation",
942
+ "img_path": "images/b615b52e549bd7a6969ee1a88d5340ee5796dbfbbd2c26d5bf5e03f0c4ac4bdb.jpg",
943
+ "text": "$$\n\\mathrm { m S t d } = \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\sqrt { \\frac { 1 } { m } \\sum _ { j = 1 } ^ { m } ( \\angle ( \\mathbf { R } ^ { i j } , \\mathbf { R } _ { m e a n } ^ { i } ) ) ^ { 2 } } ~ ,\n$$",
944
+ "text_format": "latex",
945
+ "bbox": [
946
+ 325,
947
+ 751,
948
+ 669,
949
+ 786
950
+ ],
951
+ "page_idx": 6
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "where $\\angle$ is the angular distance between two rotation matrices $[ \\overline { { 1 8 } } , \\overline { { 6 2 } } , \\overline { { 6 3 } } ]$ , $\\mathbf { R } ^ { i j }$ is the rotation matrix of the $j$ -th instance of the $i$ -th object in canonical frame, and ${ \\bf R } _ { m e a n } ^ { i }$ is the mean rotation $\\left[ \\left[ 2 1 \\right] \\right]$ of the $i$ -th object. Note that with mStd we measure the stability of canonicalization with respect to rotations to accommodate for methods that do not deal with translation $[ | 4 5 | ]$ . To allow for comparisons with pairwise registration methods, we also measure performance in terms of the RMSE metric $\\textcircled { 1 6 3 } , \\textcircled { 6 6 } \\textcircled { 1 }$ . ",
956
+ "bbox": [
957
+ 173,
958
+ 792,
959
+ 825,
960
+ 863
961
+ ],
962
+ "page_idx": 6
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "Quantitative analysis – Table $\\bigtriangledown$ Compared to Compass $\\boldsymbol { \\left[ \\left[ 4 5 \\right] \\right] }$ , our method provides improved stability in canonicalization. This also provides an advantage in pairwise registration, delivering state-of-the-art results when XYZ-coordinates are used. Note that while pairwise methods can align two sets of given point clouds, creating a canonical frame that simultaneously registers all point clouds is a non-trivial extension to the problem. ",
967
+ "bbox": [
968
+ 173,
969
+ 868,
970
+ 825,
971
+ 911
972
+ ],
973
+ "page_idx": 6
974
+ },
975
+ {
976
+ "type": "table",
977
+ "img_path": "images/8d1c0bb548a3a43889d83f1950c408d166a241456d8a593a435ca3a1c06937c5.jpg",
978
+ "table_caption": [
979
+ "Table 2: Canonicalization – Quantitative evaluation for canonicalization, where we highlight significantly better performance than the concurrent work Compass [45]. While pairwise registration is not our main objective, the global alignment frame created by our method still allows for effective registration (on par, or better) than the state-of-the-art. "
980
+ ],
981
+ "table_footnote": [],
982
+ "table_body": "<table><tr><td></td><td></td><td colspan=\"3\">Canonicalization (mStd)↓</td><td colspan=\"3\">Pairwise registration (RMSE)↓</td></tr><tr><td></td><td>Method</td><td>Airplane</td><td>Chair</td><td>Multi</td><td>Airplane</td><td>Chair</td><td>Multi</td></tr><tr><td></td><td>Deep Closest Points [56]</td><td>1</td><td>1</td><td>1</td><td>0.318</td><td>0.160</td><td>0.131</td></tr><tr><td></td><td>DeepGMR [63]</td><td></td><td></td><td>1</td><td>0.079</td><td>0.082</td><td>0.077</td></tr><tr><td>P.JCOo-zX</td><td>Compass 4</td><td>19.105</td><td>19.508</td><td>51.811</td><td>0.412</td><td>0.482</td><td>0.515</td></tr><tr><td></td><td>Our method</td><td>8.278</td><td>5.730</td><td>21.210</td><td>0.022</td><td>0.027</td><td>0.074</td></tr><tr><td>R</td><td>DeepGMR [63]</td><td></td><td></td><td></td><td>0.0001</td><td>0.0001</td><td>0.0001</td></tr><tr><td></td><td>Our method</td><td>(unstable)</td><td>(unstable)</td><td>(unstable)</td><td>0.0006</td><td>0.0009</td><td>0.0016</td></tr></table>",
983
+ "bbox": [
984
+ 176,
985
+ 160,
986
+ 821,
987
+ 267
988
+ ],
989
+ "page_idx": 7
990
+ },
991
+ {
992
+ "type": "text",
993
+ "text": "",
994
+ "bbox": [
995
+ 176,
996
+ 285,
997
+ 821,
998
+ 313
999
+ ],
1000
+ "page_idx": 7
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "When RRI is used as input, our method is on par with DeepGMR $\\pmb { \\mathbb { \\left\\| 6 3 \\right\\| } }$ , up to a level where registration is near perfect – alignment differences when errors are in the $1 0 ^ { - 4 }$ ballpark are indiscernible. We note that the performance of Deep Closest Points $\\begin{array} { r l } { { \\bigl \\| \\boldsymbol { 5 } 6 \\bigr \\| } } & { { } } \\end{array}$ is not as good as reported in the original paper, as we uniformly draw rotations from SO(3). When a sub-portion of $\\mathbf { S O } ( 3 )$ is used, e.g. a quarter of what we are using, DCP performs relatively well (0.008 in the multi-class experiment). While curriculum learning could be used to enhance the performance of DCP, our technique does not need to rely on these more complex training techniques. ",
1005
+ "bbox": [
1006
+ 173,
1007
+ 319,
1008
+ 825,
1009
+ 416
1010
+ ],
1011
+ "page_idx": 7
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "We further note that, while RRI delivers good registration performance, using RRI features cause the learnt canonicalization to fail – training becomes unstable. This hints that RRI features may be throwing away too much information to achieve transformation invariance. Our method using raw XYZ coordinates as input, on the other hand, provides comparable registration performance, and is able to do significantly more than just registration (i.e. classification, reconstruction). ",
1016
+ "bbox": [
1017
+ 174,
1018
+ 422,
1019
+ 825,
1020
+ 492
1021
+ ],
1022
+ "page_idx": 7
1023
+ },
1024
+ {
1025
+ "type": "text",
1026
+ "text": "4.4 Unsupervised classification – Table 3 ",
1027
+ "text_level": 1,
1028
+ "bbox": [
1029
+ 176,
1030
+ 507,
1031
+ 468,
1032
+ 522
1033
+ ],
1034
+ "page_idx": 7
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "Beyond reconstruction and canonicalization, we evaluate the usefulness of our method via a classification task that is not related in any way to the losses used for training. We compute the features from the auto-encoding methods from Section $4 . 2$ against those from our method (where we build features by combining pose with descriptors) to perform 13-way classification with two different techniques: ",
1039
+ "bbox": [
1040
+ 173,
1041
+ 534,
1042
+ 825,
1043
+ 589
1044
+ ],
1045
+ "page_idx": 7
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "We train a supervised linear Support Vector Machine (SVM) on the extracted features [1, Ch. 7]; We perform unsupervised K-Means clustering [1, Ch. 9] and then label each cluster via bipartite matching with the actual labels through the Hungarian algorithm. ",
1050
+ "bbox": [
1051
+ 174,
1052
+ 601,
1053
+ 519,
1054
+ 686
1055
+ ],
1056
+ "page_idx": 7
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "Note the former provides an upper bound for unsupervised classification, while better performance on the latter implies that the learnt features are able to separate the classes into clusters that are compact (in an Euclidean sense). ",
1061
+ "bbox": [
1062
+ 174,
1063
+ 690,
1064
+ 519,
1065
+ 731
1066
+ ],
1067
+ "page_idx": 7
1068
+ },
1069
+ {
1070
+ "type": "table",
1071
+ "img_path": "images/168dd06f14530aed47efce448a75e7ebe545f0c28ae57ef7fd4eb3abd4b49070.jpg",
1072
+ "table_caption": [
1073
+ "Table 3: Classification – Top-1 accuracy $\\% )$ "
1074
+ ],
1075
+ "table_footnote": [],
1076
+ "table_body": "<table><tr><td>Method</td><td></td><td>SVM</td><td>K-Means</td></tr><tr><td>Pse</td><td>3D-PointCapsNet [64]</td><td>93.81</td><td>65.87</td></tr><tr><td></td><td>AtlasNetV2[12]</td><td>94.07</td><td>61.66</td></tr><tr><td></td><td>Our method</td><td>94.21</td><td>69.82</td></tr><tr><td>aggen</td><td>3D-PointCapsNet [64]</td><td>71.13</td><td>14.59</td></tr><tr><td></td><td>AtlasNetV2 国</td><td>64.85</td><td>17.12</td></tr><tr><td></td><td>AtlasNetV2 圆 w/ STN</td><td>78.55</td><td>20.03</td></tr><tr><td></td><td>Our method</td><td>87.33</td><td>43.04</td></tr></table>",
1077
+ "bbox": [
1078
+ 532,
1079
+ 622,
1080
+ 821,
1081
+ 729
1082
+ ],
1083
+ "page_idx": 7
1084
+ },
1085
+ {
1086
+ "type": "text",
1087
+ "text": "",
1088
+ "bbox": [
1089
+ 178,
1090
+ 732,
1091
+ 656,
1092
+ 746
1093
+ ],
1094
+ "page_idx": 7
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "Analysis of results – SVM. Note how our method provides best results in all cases, and when the dataset is not unaligned the difference is significant. This shows that, while 3D-PointCapsNet and AtlasNetV2 (with and without STN) are able to somewhat auto-encode point clouds in the unaligned setup, what they learn does not translate well to classification. However, the features learned with Canonical Capsules are more related to the semantics of the object, which helps classification. ",
1099
+ "bbox": [
1100
+ 174,
1101
+ 752,
1102
+ 825,
1103
+ 821
1104
+ ],
1105
+ "page_idx": 7
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "Analysis of results – K-Means. The performance gap becomes wider when K-Means is used – even in the aligned case. This could mean that the features extracted by Canonical Capsules are better suited for other unsupervised tasks, having a feature space that is close to being Euclidean in terms of semantics. The difference is striking in the unaligned setup. We argue that these results emphasize the importance of the capsule framework – jointly learning the invariances and equivariances in the data – is cardinal to unsupervised learning [25, $\\checkmark$ . ",
1110
+ "bbox": [
1111
+ 174,
1112
+ 827,
1113
+ 825,
1114
+ 911
1115
+ ],
1116
+ "page_idx": 7
1117
+ },
1118
+ {
1119
+ "type": "table",
1120
+ "img_path": "images/bf847e6a330665babe28c2ca91a615e7675f6bbcd987e53d280aaaf980ca5722.jpg",
1121
+ "table_caption": [
1122
+ "Table 4: Effect of losses – Reconstruction performance, and canonicalization performance when loss terms are removed. "
1123
+ ],
1124
+ "table_footnote": [],
1125
+ "table_body": "<table><tr><td></td><td>Full</td><td>-Linvar</td><td>-Lequiv</td><td>-Lcanonical</td><td>-Llocalization</td><td>-Leqilibrium</td></tr><tr><td>CD</td><td>1.11</td><td>1.12</td><td>1.16</td><td>1.12</td><td>1.44</td><td>1.60</td></tr><tr><td>Std</td><td>8.278</td><td>9.983</td><td>110.174</td><td>8.421</td><td>113.204</td><td>92.970</td></tr></table>",
1126
+ "bbox": [
1127
+ 176,
1128
+ 146,
1129
+ 511,
1130
+ 184
1131
+ ],
1132
+ "page_idx": 8
1133
+ },
1134
+ {
1135
+ "type": "table",
1136
+ "img_path": "images/7e1a8e3cfb7b5571f3c681c1a388c119285046d09188d8de19e2ec1aec60a418.jpg",
1137
+ "table_caption": [
1138
+ "Table 5: Backbone – Auto-encoding performance (Chamfer distance) when we use various permutation-invariant backbones. "
1139
+ ],
1140
+ "table_footnote": [],
1141
+ "table_body": "<table><tr><td></td><td>PointNet</td><td>PointNet++</td><td>DGCNN</td><td>ACNe</td></tr><tr><td>CD</td><td>1.28</td><td>1.34</td><td>1.21</td><td>1.11</td></tr></table>",
1142
+ "bbox": [
1143
+ 544,
1144
+ 148,
1145
+ 812,
1146
+ 183
1147
+ ],
1148
+ "page_idx": 8
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "4.5 Ablation study ",
1153
+ "text_level": 1,
1154
+ "bbox": [
1155
+ 174,
1156
+ 223,
1157
+ 315,
1158
+ 238
1159
+ ],
1160
+ "page_idx": 8
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "To make the computational cost manageable, we perform all ablations with the airplane category (the category with most instances), and in the unaligned setup (unless otherwise noted). Please also see supplementary material for more ablation studies. ",
1165
+ "bbox": [
1166
+ 174,
1167
+ 258,
1168
+ 825,
1169
+ 299
1170
+ ],
1171
+ "page_idx": 8
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "Losses – Table 4. We analyze the importance of each loss term, with the exception of $\\scriptstyle { \\mathcal { L } } _ { \\mathrm { r e c o n } }$ which is necessary for training. All losses beneficially contribute to reconstruction performance, but note how $\\mathcal { L } _ { \\mathrm { e q u i v } }$ , $ { \\mathcal { L } } _ { \\mathrm { l o c a l i z a t i o n } }$ and $\\mathcal { L } _ { \\mathrm { { e q u i l i b r i u m } } }$ affect it to a larger degree. By considering our canonicalization metric, we can motivate this outcome by observing that the method fails to perform canonicalization when these losses are not employed (i.e. training collapses). ",
1176
+ "bbox": [
1177
+ 174,
1178
+ 306,
1179
+ 825,
1180
+ 376
1181
+ ],
1182
+ "page_idx": 8
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "text": "Encoder architecture – Table $\\boxed { \\pmb { 5 } }$ Our method can be used with any backbone, as our main contribution lies in the self-supervised canonicalization architecture. For completeness, we explore variants of our method using different back-bones: PointNet $\\textcircled { \\lvert 3 6 \\rvert }$ , PointNet+ $^ { - + }$ [37], DGCNN $\\boxed { \\sqrt { 5 7 } }$ , and ACNe $\\mathbb { H }$ . Among these, the ACNe backbone performs best; note that all the variants in Table 5, regardless of backbone choice, significantly outperforms all other methods reported in Table 1. ",
1187
+ "bbox": [
1188
+ 174,
1189
+ 382,
1190
+ 825,
1191
+ 452
1192
+ ],
1193
+ "page_idx": 8
1194
+ },
1195
+ {
1196
+ "type": "text",
1197
+ "text": "5 Conclusions ",
1198
+ "text_level": 1,
1199
+ "bbox": [
1200
+ 173,
1201
+ 493,
1202
+ 307,
1203
+ 511
1204
+ ],
1205
+ "page_idx": 8
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "In this paper, we provide a self-supervised framework to train primary capsule decompositions for 3D point clouds. We rely on a Siamese setup that allows self-supervision and auto-encoding in canonical space, circumventing the customary need to train on pre-aligned datasets. Despite being trained in a self-supervised fashion, our representation achieves state-of-the-art performance across auto-encoding, canonicalization and classification tasks. These results are made possible by allowing the network to learn a canonical frame of reference. We interpret this result as giving our neural networks a mechanism to construct a “mental picture” of a given 3D object – so that downstream tasks are executed within an object-centric coordinate frame. ",
1210
+ "bbox": [
1211
+ 174,
1212
+ 537,
1213
+ 825,
1214
+ 650
1215
+ ],
1216
+ "page_idx": 8
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "Future work. As many objects have natural symmetries that we do not consider at the moment $\\mathbb { \\left[ 1 2 \\right] }$ providing our canonicalizer a way to encode such a prior is likely to further improve the representation. We perform decomposition at a single level, and it would be interesting to investigate how to effectively engineer multi-level decompositions $\\mathbb { \\left[ \\left[ 5 \\right] \\right] }$ ; one way could be to over-decompose the input in a redundant fashion (with large $K$ ), and use a downstream layers that “selects” the decomposition heads to be used $\\textcircled { 6 }$ . We would also like to extend our results to more “in-the-wild” 3D computer vision and understand whether learning object-centric representations is possible when incomplete (i.e., single view $\\pmb { \\Vert 3 5 \\Vert }$ or occluded) data is given in input, when an entire scene with potentially multiple objects is given $\\mathbb { \\lVert \\boldsymbol { 4 3 } \\rVert }$ , or where our measurement of the 3D world is a single 2D image [48], or by exploiting the persistence of objects in video [40]. ",
1221
+ "bbox": [
1222
+ 173,
1223
+ 656,
1224
+ 825,
1225
+ 795
1226
+ ],
1227
+ "page_idx": 8
1228
+ },
1229
+ {
1230
+ "type": "text",
1231
+ "text": "Broader impact. While our work is exclusively on 3D shapes, and thus not immediately subject to any societal concerns, it enhances how Artificial Intelligence (AI) can understand and model 3D geometry. Thus, similar to how image recognition could be misused, one should be careful when extending the use of our method. In addition, while not subject to how the data itself is aligned, the learnt canonical frame of our method is still data-driven, thus subject to any data collection biases that may exist – canonicalization will favour shapes that appear more often. This should also be taken into account with care to prevent any biased decisions when utilizing our method within a decision making AI platform. ",
1232
+ "bbox": [
1233
+ 173,
1234
+ 800,
1235
+ 825,
1236
+ 911
1237
+ ],
1238
+ "page_idx": 8
1239
+ },
1240
+ {
1241
+ "type": "text",
1242
+ "text": "Acknowledgements ",
1243
+ "text_level": 1,
1244
+ "bbox": [
1245
+ 176,
1246
+ 89,
1247
+ 338,
1248
+ 106
1249
+ ],
1250
+ "page_idx": 9
1251
+ },
1252
+ {
1253
+ "type": "text",
1254
+ "text": "This work was supported by the Natural Sciences and Engineering Research Council of Canada (NSERC) Discovery Grant, NSERC Collaborative Research and Development Grant, Google, Compute Canada, and Advanced Research Computing at the University of British Columbia. ",
1255
+ "bbox": [
1256
+ 174,
1257
+ 119,
1258
+ 826,
1259
+ 160
1260
+ ],
1261
+ "page_idx": 9
1262
+ },
1263
+ {
1264
+ "type": "text",
1265
+ "text": "References ",
1266
+ "text_level": 1,
1267
+ "bbox": [
1268
+ 174,
1269
+ 179,
1270
+ 266,
1271
+ 195
1272
+ ],
1273
+ "page_idx": 9
1274
+ },
1275
+ {
1276
+ "type": "text",
1277
+ "text": "[1] Christopher M Bishop. Pattern Recognition and Machine Learning. springer, 2006. \n[2] Rohan Chabra, Jan Eric Lenssen, Eddy Ilg, Tanner Schmidt, Julian Straub, Steven Lovegrove, and Richard Newcombe. Deep Local Shapes: Learning Local SDF Priors for Detailed 3D Reconstruction. In European Conference on Computer Vision, 2020. \n[3] Angel X Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, et al. Shapenet: An Information-Rich 3D Model Repository. arXiv Preprint, 2015. \n[4] Chao Chen, Guanbin Li, Ruijia Xu, Tianshui Chen, Meng Wang, and Liang Lin. Clusternet: Deep Hierarchical Cluster Network with Rigorously Rotation-Invariant Representation for Point Cloud Analysis. In Conference on Computer Vision and Pattern Recognition, 2019. \n[5] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A Simple Framework for Contrastive Learning of Visual Representations. International Conference on Machine Learning, 2020. \n[6] Zhiqin Chen, Andrea Tagliasacchi, and Hao Zhang. Bsp-net: Generating compact meshes via binary space partitioning. In Conference on Computer Vision and Pattern Recognition, 2020. \n[7] Zhiqin Chen and Hao Zhang. Learning Implicit Fields for Generative Shape Modeling. In Conference on Computer Vision and Pattern Recognition, 2019. \n[8] Boyang Deng, JP Lewis, Timothy Jeruzalski, Gerard Pons-Moll, Geoffrey Hinton, Mohammad Norouzi, and Andrea Tagliasacchi. NASA: Neural Articulated Shape Approximation. In European Conference on Computer Vision, 2020. \n[9] Congyue Deng, Or Litany, Yueqi Duan, Adrien Poulenard, Andrea Tagliasacchi, and Leonidas Guibas. Vector neurons: a general framework for so(3)-equivariant networks, 2021. \n[10] Zhantao Deng, Jan Bednaˇrík, Mathieu Salzmann, and Pascal Fua. Better Patch Stitching for Parametric Surface Reconstruction. arXiv Preprint, 2020. \n[11] Deng, Boyang and Genova, Kyle and Yazdani, Soroosh and Bouaziz, Sofien and Hinton, Geoffrey and Tagliasacchi, Andrea. CvxNet: Learnable Convex Decomposition. In Conference on Computer Vision and Pattern Recognition, 2020. \n[12] Theo Deprelle, Thibault Groueix, Matthew Fisher, Vladimir Kim, Bryan Russell, and Mathieu Aubry. Learning Elementary Structures for 3D Shape Generation and Matching. In Advances in Neural Information Processing Systems, 2019. \n[13] Haoqiang Fan, Hao Su, and Leonidas J Guibas. A Point Set Generation Network for 3D Object Reconstruction from a Single Image. In Conference on Computer Vision and Pattern Recognition, 2017. \n[14] Pedro Felzenszwalb, David McAllester, and Deva Ramanan. A Discriminatively Trained, Multiscale, Deformable Part Model. In Conference on Computer Vision and Pattern Recognition, 2008. \n[15] Clara Fernandez-Labrador, Ajad Chhatkuli, Danda Pani Paudel, Jose J Guerrero, Cédric Demonceaux, and Luc Van Gool. Unsupervised Learning of Category-Specific Symmetric 3D Keypoints from Point Sets. In European Conference on Computer Vision, 2020. \n[16] Kyle Genova, Forrester Cole, Avneesh Sud, Aaron Sarna, and Thomas Funkhouser. Deep Structured Implicit Functions. In Conference on Computer Vision and Pattern Recognition, 2020. \n[17] Kyle Genova, Forrester Cole, Daniel Vlasic, Aaron Sarna, William T Freeman, and Thomas Funkhouser. Learning Shape Templates with Structured Implicit Functions. In International Conference on Computer Vision, 2019. \n[18] Zan Gojcic, Caifa Zhou, Jan D Wegner, Leonidas J Guibas, and Tolga Birdal. Learning multiview 3D point cloud registration. In Conference on Computer Vision and Pattern Recognition, 2020. \n[19] Thibault Groueix, Matthew Fisher, Vladimir G Kim, Bryan C Russell, and Mathieu Aubry. A Papier-Mâché Approach to Learning 3D Surface Generation. In Conference on Computer Vision and Pattern Recognition, 2018. \n[20] Jiayuan Gu, Wei-Chiu Ma, Sivabalan Manivasagam, Wenyuan Zeng, Zihao Wang, Yuwen Xiong, Hao Su, and Raquel Urtasun. Weakly-Supervised 3D Shape Completion in the Wild. In European Conference on Computer Vision, 2020. \n[21] Richard Hartley, Jochen Trumpf, Yuchao Dai, and Hongdong Li. Rotation averaging. International Journal of Computer Vision, 2013. \n[22] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep Residual Learning for Image Recognition. In Conference on Computer Vision and Pattern Recognition, 2016. Conference on Artificial Neural Networks, 2011. \n[24] Geoffrey E Hinton and Kevin J Lang. Shape Recognition and Illusory Conjunctions. In International Joint Conference on Artificial Intelligence, 1985. \n[25] Geoffrey F Hinton. A Parallel Computation that Assigns Canonical Object-based Frames of Reference. In International Joint Conference on Artificial Intelligence, 1981. \n[26] Sergey Ioffe and Christian Szegedy. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. In International Conference on Machine Learning, 2015. \n[27] Arthur Jacot, Franck Gabriel, and Clément Hongler. Neural Tangent Kernel: Convergence and Generalization in Neural Networks. In Advances in Neural Information Processing Systems, 2018. \n[28] Abhishek Kar, Christian Häne, and Jitendra Malik. Learning a Multi-View Stereo Machine. In Advances in Neural Information Processing Systems, 2017. \n[29] D.P. Kingma and J. Ba. Adam: A Method for Stochastic Optimisation. In International Conference on Learning Representations, 2015. \n[30] Adam Kosiorek, Sara Sabour, Yee Whye Teh, and Geoffrey E Hinton. Stacked Capsule Autoencoders. In Advances in Neural Information Processing Systems, 2019. \n[31] Or Litany, Alex Bronstein, Michael Bronstein, and Ameesh Makadia. Deformable Shape Completion with Graph Convolutional Autoencoders. In Conference on Computer Vision and Pattern Recognition, 2018. \n[32] David G Lowe. Distinctive Image Features from Scale-Invariant Keypoints. International Journal of Computer Vision, 60:91–110, 2004. \n[33] Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy Networks: Learning 3D Reconstruction in Function Space. In Conference on Computer Vision and Pattern Recognition, 2019. \n[34] David Novotny, Nikhila Ravi, Benjamin Graham, Natalia Neverova, and Andrea Vedaldi. C3dpo: Canonical 3d pose networks for non-rigid structure from motion. In Conference on Computer Vision and Pattern Recognition, 2019. \n[35] Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. DeepSDF: Learning Continuous Signed Distance Functions for Shape Representation. In Conference on Computer Vision and Pattern Recognition, 2019. \n[36] Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep Learning on Point Sets for 3D Classification and Segmentation. In Conference on Computer Vision and Pattern Recognition, 2017. \n[37] Charles R Qi, Li Yi, Hao Su, and Leonidas J Guibas. PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space. Advances in Neural Information Processing Systems, 2017. \n[38] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You Only Look Once: Unified, Real-Time Object Detection. In Conference on Computer Vision and Pattern Recognition, 2016. \n[39] Davis Rempe, Tolga Birdal, Yongheng Zhao, Zan Gojcic, Srinath Sridhar, and Leonidas J. Guibas. CaSPR: Learning Canonical Spatiotemporal Point Cloud Representations. In Advances in Neural Information Processing Systems, 2020. \n[40] Sara Sabour, Andrea Tagliasacchi, Soroosh Yazdani, Geoffrey E. Hinton, and David J. Fleet. Unsupervised part representation by flow capsules, 2021. \n[41] Ken Shoemake. Uniform random rotations. In Graphics Gems III (IBM Version), pages 124–132. Elsevier, 1992. \n[42] Karen Simonyan and Andrew Zisserman. Very Deep Convolutional Networks for Large-Scale Image Recognition. International Conference on Learning Representations, 2015. \n[43] Shuran Song, Fisher Yu, Andy Zeng, Angel X Chang, Manolis Savva, and Thomas Funkhouser. Semantic scene completion from a single depth image. Proceedings of 30th IEEE Conference on Computer Vision and Pattern Recognition, 2017. \n[44] Olga Sorkine-Hornung and Michael Rabinovich. Least-Squares Rigid Motion Using SVD. Computing, 2017. \n[45] Riccardo Spezialetti, Federico Stella, Marlon Marcon, Luciano Silva, Samuele Salti, and Luigi Di Stefano. Learning to Orient Surfaces by Self-supervised Spherical CNNs. Advances in Neural Information Processing Systems, 2020. \n[46] Nitish Srivastava, Hanlin Goh, and Ruslan Salakhutdinov. Geometric Capsule Autoencoders for 3D Point Clouds. arXiv Preprint, 2019. \n[47] Weiwei Sun, Wei Jiang, Eduard Trulls, Andrea Tagliasacchi, and Kwang Moo Yi. ACNe: Attentive Context Normalization for Robust Permutation-Equivariant Learning. In Conference on Computer Vision and Pattern Recognition, 2020. \n[48] Supasorn Suwajanakorn, Noah Snavely, Jonathan J Tompson, and Mohammad Norouzi. Discovery of Latent 3D Keypoints via End-to-End Geometric Reasoning. 2018. \n[49] Nathaniel Thomas, Tess Smidt, Steven Kearnes, Lusann Yang, Li Li, Kai Kohlhoff, and Patrick Riley. Tensor Field Networks: Rotation-and Translation-Equivariant Neural Networks for 3D Point Clouds. arXiv Preprint, 2018. \n[50] Shubham Tulsiani, Hao Su, Leonidas J Guibas, Alexei A Efros, and Jitendra Malik. Learning shape abstractions by assembling volumetric primitives. In Conference on Computer Vision and Pattern Recognition, 2017. \n[51] Oliver van Kaick, Kai Xu, Hao Zhang, Yanzhen Wang, Shuyang Sun, Ariel Shamir, and Daniel Cohen-Or. Co-hierarchical analysis of shape structures. ACM SIGGRAPH, 2013. \n[52] He Wang, Srinath Sridhar, Jingwei Huang, Julien Valentin, Shuran Song, and Leonidas J Guibas. Normalized Object Coordinate Space for Category-level 6d Object Pose and Size Estimation. In Conference on Computer Vision and Pattern Recognition, 2019. \n[53] Nanyang Wang, Yinda Zhang, Zhuwen Li, Yanwei Fu, Wei Liu, and Yu-Gang Jiang. Pixel2mesh: Generating 3d mesh models from single rgb images. In European Conference on Computer Vision, 2018. \n[54] Peng-Shuai Wang, Yang Liu, Yu-Xiao Guo, Chun-Yu Sun, and Xin Tong. O-CNN: Octree-Based Convolutional Neural Networks for 3d Shape Analysis. ACM Transactions on Graphics, 36(4):1–11, 2017. \n[55] Peng-Shuai Wang, Chun-Yu Sun, Yang Liu, and Xin Tong. Adaptive o-cnn: A patch-based deep representation of 3d shapes. ACM Transactions on Graphics (TOG), 37(6):1–11, 2018. \n[56] Yue Wang and Justin M Solomon. Deep Closest Point: Learning Representations for Point Cloud Registration. In International Conference on Computer Vision, 2019. \n[57] Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E Sarma, Michael M Bronstein, and Justin M Solomon. Dynamic graph cnn for learning on point clouds. ACM Transactions on Graphics, 2019. \n[58] Yuxin Wu and Kaiming He. Group Normalization. In European Conference on Computer Vision, 2018. \n[59] Saining Xie, Jiatao Gu, Demi Guo, Charles R. Qi, Leonidas J. Guibas, and Or Litany. PointContrast: Unsupervised Pre-training for 3D Point Cloud Understanding. In European Conference on Computer Vision, 2020. \n[60] Xinchen Yan, Jimei Yang, Ersin Yumer, Yijie Guo, and Honglak Lee. Perspective Transformer Nets: Learning Single-View 3D Object Reconstruction without 3D Supervision. In Advances in Neural Information Processing Systems, 2016. \n[61] Yaoqing Yang, Chen Feng, Yiru Shen, and Dong Tian. FoldingNet: Point Cloud Auto-Encoder via Deep Grid Deformation. In Conference on Computer Vision and Pattern Recognition, 2018. \n[62] Zi Jian Yew and Gim Hee Lee. Rpm-net: Robust point matching using learned features. In Conference on Computer Vision and Pattern Recognition, 2020. \n[63] Wentao Yuan, Ben Eckart, Kihwan Kim, Varun Jampani, Dieter Fox, and Jan Kautz. DeepGMR: Learning Latent Gaussian Mixture Models for Registration. In European Conference on Computer Vision, 2020. \n[64] Yongheng Zhao, Tolga Birdal, Haowen Deng, and Federico Tombari. 3D Point Capsule Networks. In Conference on Computer Vision and Pattern Recognition, 2019. \n[65] Yongheng Zhao, Tolga Birdal, Jan Eric Lenssen, Emanuele Menegatti, Leonidas Guibas, and Federico Tombari. Quaternion Equivariant Capsule Networks for 3D Point Clouds. In European Conference on Computer Vision, 2020. \n[66] Qian-Yi Zhou, Jaesik Park, and Vladlen Koltun. Fast global registration. In European Conference on Computer Vision, 2016. ",
1278
+ "bbox": [
1279
+ 173,
1280
+ 205,
1281
+ 826,
1282
+ 916
1283
+ ],
1284
+ "page_idx": 9
1285
+ },
1286
+ {
1287
+ "type": "text",
1288
+ "text": "",
1289
+ "bbox": [
1290
+ 171,
1291
+ 104,
1292
+ 828,
1293
+ 907
1294
+ ],
1295
+ "page_idx": 10
1296
+ },
1297
+ {
1298
+ "type": "text",
1299
+ "text": "",
1300
+ "bbox": [
1301
+ 171,
1302
+ 92,
1303
+ 828,
1304
+ 597
1305
+ ],
1306
+ "page_idx": 11
1307
+ },
1308
+ {
1309
+ "type": "text",
1310
+ "text": "Checklist ",
1311
+ "text_level": 1,
1312
+ "bbox": [
1313
+ 174,
1314
+ 89,
1315
+ 254,
1316
+ 106
1317
+ ],
1318
+ "page_idx": 12
1319
+ },
1320
+ {
1321
+ "type": "text",
1322
+ "text": "1. For all authors... ",
1323
+ "bbox": [
1324
+ 214,
1325
+ 116,
1326
+ 339,
1327
+ 131
1328
+ ],
1329
+ "page_idx": 12
1330
+ },
1331
+ {
1332
+ "type": "text",
1333
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] See Abstract and Section 1. \n(b) Did you describe the limitations of your work? [Yes] See Section 5. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] See Section 5. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] There are no direct ethics concerns for the paper. ",
1334
+ "bbox": [
1335
+ 238,
1336
+ 136,
1337
+ 825,
1338
+ 239
1339
+ ],
1340
+ "page_idx": 12
1341
+ },
1342
+ {
1343
+ "type": "text",
1344
+ "text": "2. If you are including theoretical results... ",
1345
+ "bbox": [
1346
+ 214,
1347
+ 243,
1348
+ 493,
1349
+ 258
1350
+ ],
1351
+ "page_idx": 12
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A] ",
1356
+ "bbox": [
1357
+ 238,
1358
+ 262,
1359
+ 738,
1360
+ 294
1361
+ ],
1362
+ "page_idx": 12
1363
+ },
1364
+ {
1365
+ "type": "text",
1366
+ "text": "3. If you ran experiments... ",
1367
+ "bbox": [
1368
+ 212,
1369
+ 299,
1370
+ 393,
1371
+ 313
1372
+ ],
1373
+ "page_idx": 12
1374
+ },
1375
+ {
1376
+ "type": "text",
1377
+ "text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] In addition to the public code release that we will do, we have included the code in the supplementary \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 4.1. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] Due to the large amount of compute requirement for repeated experiments we have not been able to include them in the submission. However, the results do not vary much from one run to the other in our experience, and we will release code to reproduce the results. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Section 4.1. Note that to preserve anonymity we have decided not to include exact detail. ",
1378
+ "bbox": [
1379
+ 238,
1380
+ 316,
1381
+ 825,
1382
+ 503
1383
+ ],
1384
+ "page_idx": 12
1385
+ },
1386
+ {
1387
+ "type": "text",
1388
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1389
+ "bbox": [
1390
+ 215,
1391
+ 508,
1392
+ 823,
1393
+ 523
1394
+ ],
1395
+ "page_idx": 12
1396
+ },
1397
+ {
1398
+ "type": "text",
1399
+ "text": "(a) If your work uses existing assets, did you cite the creators? [Yes] See Section 4.1. \n(b) Did you mention the license of the assets? [Yes] See Section 4.1. \n(c) Did you include any new assets either in the supplemental material or as a URL? [N/A] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
1400
+ "bbox": [
1401
+ 236,
1402
+ 526,
1403
+ 825,
1404
+ 648
1405
+ ],
1406
+ "page_idx": 12
1407
+ },
1408
+ {
1409
+ "type": "text",
1410
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1411
+ "bbox": [
1412
+ 215,
1413
+ 652,
1414
+ 705,
1415
+ 667
1416
+ ],
1417
+ "page_idx": 12
1418
+ },
1419
+ {
1420
+ "type": "text",
1421
+ "text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
1422
+ "bbox": [
1423
+ 238,
1424
+ 671,
1425
+ 825,
1426
+ 761
1427
+ ],
1428
+ "page_idx": 12
1429
+ }
1430
+ ]
parse/train/jnkE5c5f9m/jnkE5c5f9m_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/jnkE5c5f9m/jnkE5c5f9m_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/qZzy5urZw9/qZzy5urZw9.md ADDED
@@ -0,0 +1,411 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ROBUST OVERFITTING MAY BE MITIGATED BY PROPERLY LEARNED SMOOTHENING
2
+
3
+ Tianlong Chen1\*, Zhenyu Zhang2\*, Sijia $\mathbf { L i u } ^ { 3 , 4 }$ , Shiyu Chang4, Zhangyang Wang1 1University of Texas at Austin,2University of Science and Technology of China 3Michigan State University, 4MIT-IBM Watson AI Lab, IBM Research {tianlong.chen,atlaswang}@utexas.edu, zzy19969@mail.ustc.edu.cn liusiji5@msu.edu, shiyu.chang@ibm.com
4
+
5
+ # ABSTRACT
6
+
7
+ A recent study (Rice et al., 2020) revealed overfitting to be a dominant phenomenon in adversarially robust training of deep networks, and that appropriate early-stopping of adversarial training (AT) could match the performance gains of most recent algorithmic improvements. This intriguing problem of robust overfitting motivates us to seek more remedies. As a pilot study, this paper investigates two empirical means to inject more learned smoothening during AT: one leveraging knowledge distillation and self-training to smooth the logits, the other performing stochastic weight averaging (Izmailov et al., 2018) to smooth the weights. Despite the embarrassing simplicity, the two approaches are surprisingly effective and hassle-free in mitigating robust overfitting. Experiments demonstrate that by plugging in them to AT, we can simultaneously boost the standard accuracy by $3 . 7 \bar { 2 } \% \sim 6 . 6 8 \%$ and robust accuracy by $0 . 2 2 \% \sim 2 . 0 3 \%$ , across multiple datasets (STL-10, SVHN, CIFAR-10, CIFAR-100, and Tiny ImageNet), perturbation types ( $\ell _ { \infty }$ and $\ell _ { 2 }$ ), and robustified methods (PGD, TRADES, and FSGM), establishing the new state-of-the-art bar in AT. We present systematic visualizations and analyses to dive into their possible working mechanisms. We also carefully exclude the possibility of gradient masking by evaluating our models’ robustness against transfer attacks. Codes are available at https: //github.com/VITA-Group/Alleviate-Robust-Overfitting.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Adversarial training (AT) (Madry et al., 2018), i.e., training a deep network to minimize the worst-case training loss under input perturbations, is recognized as the current best defense method to adversarial attacks. However, one of its pitfalls was exposed by a recent work (Rice et al., 2020): in contrast to the commonly-held belief that overparameterized deep networks hardly overfit in standard training (Zhang et al., 2016; Neyshabur et al., 2017; Belkin et al., 2019), overfitting turns out to be a dominant phenomenon in adversarially robust training of deep networks. After a certain point in AT, e.g., immediately after the first learning rate decay, the robust test errors will only continue to substantially increase with further training (see Figure 1 bottom for example).
12
+
13
+ That surprising phenomenon, termed as “robust overfitting”, has been prevalent on many datasets and models. As Rice et al. (2020) pointed out, it poses serious challenges to assess recent algorithmic advances upon AT: by just using an earlier checkpoint, the performance of AT be drastically boosted to match the more recently reported state-of-the-arts (Yang et al., 2019b; Zhang et al., 2019b). Even worse, Rice et al. (2020) tested several other implicit and explicit regularization methods, including weight decay, data augmentation and semi-supervised learning; they reported that none of those alternatives seem to combat robust overfitting (stably) better than simple early stopping. The authors thus advocated using the validation set to select a stopping point, although the manual picking would inevitably trade off between selecting either the peak point of robust test accuracy or that of standard accuracy, which often do not coincide (Chen et al., 2020a).
14
+
15
+ ![](images/919765c12a9a65b56db3bb040c8cd4527924e9d7d93e08f8f85af7d5f8f992c3.jpg)
16
+ Figure 1: The standard (top) and robust (bottom) test error rate comparison, between the vanilla PGD-AT baseline (Madry et al., 2018), and PGDAT with our proposed weight/label smoothening techniques applied, on CIFAR-10 with ResNet18. Our methods effectively mitigates the robust overfitting (Rice et al., 2020) even when trained to 200 epochs, while maintaining the same high standard/robust accuracies compared to the best early-stop checkpoint of the baseline.
17
+
18
+ Does there exist more principled, hands-off, and hassle-free mitigation for this robust overfitting, for us to further unleash the competency of AT? This paper explores two options along the way, that draw two more sophisticated ideas from enhancing standard deep models’ generalization. Both could be viewed as certain types of learned smoothening, and are directly plugged into AT:
19
+
20
+ • Our first approach is to smooth the logits in AT via self-training, using knowledge distillation with the same model pre-trained as a self-teacher. The idea is inspired by two facts: (1) label smoothening (Szegedy et al., 2016) can calibrate the notorious overconfidence of deep networks (Hein et al., 2019), and that was found to improve their standard generalization; (2) label smoothening can be viewed as a special case of knowledge distillation (Yuan et al., 2020), and self-training can produce more semantic-aware and discriminative soft label “self-teachers” than naive label smoothening (Chen et al., 2020b; Tang et al., 2020). Our second approach is to smooth the weights in AT via stochastic weight averaging (SWA) (Izmailov et al., 2018), a popular training technique that leads to better standard generalization than SGD, with almost no computational overhead. While SWA has not yet be applied to AT, it is known to find flatter minima which are widely believed to indicate stronger robustness (Hein & Andriushchenko, 2017; Wu et al., 2020a). Meanwhile, SWA could also be interpreted as a temporal model ensemble, and therefore might bring the extra robustness of ensemble defense (Tramer et al., 2018; Grefenstette et al., 2018) with the convenience \` of a single model. Those suggest that applying SWA is natural and promising for AT.
21
+
22
+ To be clear, neither knowledge-distillation/self-training nor SWA was invented by this paper: they have been utilized in standard training to alleviate (standard) overfitting and improve generalization, by fixing over-confidence and by finding flatter solutions, respectively. By introducing and adapting them to AT, our aim is to complement the existing study, demonstrating that while simpler regularizations were unable to fix robustness overfitting as Rice et al. (2020) found, our learned logit/weight smoothening could effectively regularize and mitigate it, without needing early stopping.
23
+
24
+ Experiments demonstrate that by plugging in the two techniques to AT, we can simultaneously boost the standard accuracy by $3 . 7 2 \% \sim 6 . 6 8 \%$ and robust accuracy by $0 . 2 2 \% \sim 2 . 0 3 \%$ , across multiple datasets (STL-10, SVHN, CIFAR-10, CIFAR-100, and Tiny ImageNet), perturbation types ( $\ell _ { \infty }$ and $\ell _ { 2 , }$ ), and robustified methods (PGD, TRADES, and FSGM), establishing the new state-of-the-art in AT. As shown in Figure 1 example, our method eliminates the robust overfitting phenomenon in AT, even when training up to 200 epochs. Our results imply that although robustness overfitting is more challenging than standard overfitting, its mitigation is still feasible with properly-chosen, advanced regularizations that were developed for the latter. Overall, our findings join (Rice et al., 2020) in re-establishing the competitiveness of the simplest AT baseline.
25
+
26
+ # 1.1 BACKGROUND WORK
27
+
28
+ Deep networks are easily fooled by imperceivable adversarial samples. To tackle this vulnerability, numerous defense methods were proposed (Goodfellow et al., 2015; Kurakin et al., 2016; Madry et al., 2018), yet many of them (Liao et al., 2018; Guo et al., 2018; Xu et al., 2017; Dziugaite et al., 2016; Dhillon et al., 2018; Xie et al., 2018; Jiang et al., 2020) were later found to result from training artifacts, such as obfuscated gradients (Athalye et al., 2018) caused by input transformation or randomization. Among them, adversarial training (AT) (Madry et al., 2018) remains one of the most competitive options. Recently more improved defenses have been reported (Dong et al., 2018; Yang et al., 2019b; Mosbach et al., 2018; Hu et al., 2020; Wang et al., 2020a; Dong et al., 2020; Zhang et al., 2020a;b), with some of them also being variants of AT, e.g. TRADES (Zhang et al., 2019b) and AT with metric learning regularizers (Mao et al., 2019; Pang et al., 2019; 2020).
29
+
30
+ While overfitting has become less a practical concern in training deep networks nowadays, it was not yet noticed nor addressed in the adversarial defense field until lately. An overfitting phenomenon was first observed in a few fast adversarial training methods (Zhang et al., 2019a; Shafahi et al., 2019b; Wong et al., 2020) based on FGSM (Goodfellow et al., 2015), e.g., sometimes the robust accuracy against a PGD adversary suddenly drop to nearly zero after some training. (Andriushchenko & Flammarion, 2020) suggested it to be rooted in those methods’ local linearization assumptions of the loss landscape in those “fast” AT. The recently reported robust overfitting (Rice et al., 2020) seems to raise a completely new challenge for the classical AT (not fast): the model starts to irreversibly lose robustness after training with AT for a period, even the double-descent generalization curves still seemed to hold (Belkin et al., 2019; Nakkiran et al., 2019). Among various options tried in Rice et al. (2020), early-stopping was so far the only effective remedy found.
31
+
32
+ # 2 METHODOLOGY
33
+
34
+ # 2.1 LEARNING TO SMOOTH LOGITS IN AT
35
+
36
+ Rationale: Why AT enforces models robust against adversarial attacks of a specific type and certain magnitudes. However, it has been shown to “overfit” the threat model “seen” during training (Kang et al., 2019; Maini et al., 2019; Stutz et al., 2020), and its gained robustness does not extrapolate to larger perturbations nor unseen attack types. Stutz et al. (2020) hypothesized this to be an unwanted consequence of enforcing high-confidence predictions on adversarial examples since high-confidence predictions are difficult to extrapolate to arbitrary regions beyond the seen examples during training. We generalize this observation: during AT, the attacks generated at every iteration can be naturally considered as continuously varying/evolving, along with the model training. Therefore, we hypothesize one source of robust overfitting might lie in that the model “overfits” the attacks generated in the early stage of AT and fails to generalize or adapt to the attacks in the late stage.
37
+
38
+ To alleviate the overconfidence problem, we adapt the label smoothening (LS) technique in standard training (Szegedy et al., 2016). LS creates uncertainty in the one-hot labels, by computing crossentropy not with the “hard” targets from the dataset, but with a weighted mixture of these one-hot targets with the uniform distribution. This uncertainty helps to tackle alleviate the overconfidence problem Hein et al. (2019) and improves the standard generalization. The idea of LS was previously investigated in other defense methods (Shafahi et al., 2019a; Goibert & Dohmatob, 2019), but much of the observed robustness gains were later attributed to obfuscated gradients (Athalye et al., 2018). Two recent works (Stutz et al., 2020; Cheng et al., 2020) have integrated LS with AT to inject label uncertainty: Stutz et al. (2020) used a convex combination of uniform and one-hot distributions as target for the cross-entropy loss in AT, which resembles the LS regularizer, while Cheng et al. (2020) concurrently used an LS regularizer for AT.
39
+
40
+ However, there is one pitfall of the naive LS in (Szegedy et al., 2016): over-smoothening labels in a data-blind way could cause loss of information in the logits, and hence weakened discriminative power of the trained models (Muller et al., 2019). That calls for a careful and adaptive balance be- ¨ tween discriminative capability and confidence calibration of the model. In the context of AT, Stutz et al. (2020) crafted a perturbation-dependent parameter, to explicitly control the transition from one-hot to the uniform distribution when the attack magnitude grows from small to large. To identify more automated and principled means, we notice another recent work (Yuan et al., 2020), who explicitly connected knowledge distillation (KD) (Hinton et al., 2015) to LS. The authors pointed out that LS equals a special case of KD using a virtual and hand-crafted teacher; on the contrary, the conventional KD provides data-driven soften labels rather than simply mixing one-shot and uniform vectors. Together with many others (Furlanello et al., 2018; Chen et al., 2020b), these works demonstrated that using model-based and learned soft labels supplies much superior confidence calibration and logit geometry compared to the naive LS (Tang et al., 2020).
41
+
42
+ Furthermore, (Furlanello et al., 2018; Chen et al., 2020b; Yuan et al., 2020) unanimously revealed that another strong teacher model with extra privileged information is NOT critical to the success of KD. Yuan et al. (2020) shows that even a poorly-trained teacher with much lower accuracy can still improve the student. Moreover, Chen et al. (2020b); Yuan et al. (2020) find self-teacher to be sufficiently effective for KD, that is, using soft-logit outputs from the student or designed manually as the KD regularization to train itself (also called teacher-free KD (Tf-KD) in (Yuan et al., 2020)). These observations make the main cornerstone for our learned logit smoothening approach next.
43
+
44
+ ![](images/c8f1ee63e85dc8ebd65971757acdf9fbb76829204da7e6f27e67727ca772fcd8.jpg)
45
+ Figure 2: Comparing the logit distribution of different LS/KD means on CIFAR-10 using ResNet-18 (C7 is the correct label).
46
+
47
+ Approach: How We follow (Chen et al., 2020b; Yuan et al., 2020) to use self-training with the same model, but introduce one specific modification. The one model could be trained with at least two different ways: standard training, or robust training (AT or other cheaper ways; see ablation experiments). That can yield two self-teachers. We assume both to be available; and let $\mathbf { x }$ be the input, $y$ the one-hot ground truth label, $\delta$ the adversarial perturbation bounded by $\ell _ { p }$ norm ball with radius $\epsilon$ , and $\theta _ { r } / \theta _ { s }$ the weights of the robust-/standard-trained self-teachers, respectively. Note the two self-teachers share the identical network architecture and training data with our target model. Our self-training smoothed loss function is expressed below $\lambda _ { 1 }$ and $\lambda _ { 2 }$ are two hyperparameters):
48
+
49
+ $$
50
+ \begin{array} { r l } { \underset { \theta } { \mathop { \operatorname* { m i n } } } } & { \mathbb { E } _ { ( \mathbf { x } , y ) \in \mathcal { D } } \left\{ \left( 1 - \lambda _ { 1 } - \lambda _ { 2 } \right) \cdot \underset { \delta \in \mathrm { B } _ { \mathrm { c } } ( \mathbf { x } ) } { \operatorname* { m a x } } \mathcal { L } _ { \mathrm { X E } } ( f ( \theta , \mathbf { x } + \delta ) , y ) + \right. } \\ & { \left. \lambda _ { 1 } \cdot K \mathcal { D } _ { \mathrm { a d v } } \big ( f ( \theta , \mathbf { x } + \delta ) , f ( \theta _ { r } , \mathbf { x } + \delta ) \big ) + \lambda _ { 2 } \cdot K \mathcal { D } _ { \mathrm { s t d } } \big ( f ( \theta , \mathbf { x } + \delta ) , f ( \theta _ { s } , \mathbf { x } + \delta ) \big ) \right\} , } \end{array}
51
+ $$
52
+
53
+ where $\mathcal { L } _ { \mathrm { X E } }$ is robustified cross-entropy loss adopted in the original AT; $\kappa D _ { \mathrm { a d v } }$ and $\kappa \mathcal { D } _ { \mathrm { s t d } }$ are the Kullback–Leibler divergence loss with the robust-trained and standard-trained self-teachers, respectively. $\lambda _ { 1 } = 0 . 5$ and $\lambda _ { 2 } = 0 . 2 5$ are default in all experiments. More details are in Appendix A2.1.
54
+
55
+ Figure 2 visualizes an example of logit distributions, generated by naive LS (Szegedy et al., 2016), the Tf-KD regularizer using manually-designed self-teacher in (Yuan et al., 2020), as well our standard- and robust-trained teachers, respectively. We observe both standard and robust selfteachers are more discriminative than the other two baseline smoothenings, while the robust selfteacher is relatively more conservative as one shall expect.
56
+
57
+ # 2.2 LEARNING TO SMOOTH WEIGHTS IN AT
58
+
59
+ Rationale: Why Another measure that is often believed to indicate the standard generalization is the flatness: the loss surface at the final learned weights for well-generalizing models is relatively “flat”. Similarly, Wu et al. (2020a) advocated that a flatter adversarial loss landscape shrinks the robustness generalization gap. This is aligned with (Hein & Andriushchenko, 2017) where the authors called it local Lipschitz and proved that the Lipschitz constant can be used to formally measure the robustness of machine learning models. The flatness preference of a robust model has been echoed by many empirical defense methods, such as hessian/curvature-based regularization (Moosavi-Dezfooli et al., 2019), gradient magnitude penalty (Wang & Zhang, 2019), smoothening with random noise (Liu et al., 2018), or entropy regularization (Jagatap et al., 2020). However, all those methods will incur (sometimes heavy) computational or memory overhead; and many can cause standard accuracy drops, e.g., hessian/curvature-based methods (Gupta et al., 2020).
60
+
61
+ Stochastic weight averaging (SWA) (Izmailov et al., 2018) was proposed to enforce the weight smoothness, by simply averaging multiple checkpoints along the training trajectory. SWA is known to find much flatter solutions than SGD, is extremely easy to implement, improves standard generalization, and has almost no computational overhead. SWA has been successfully adopted in semi-supervised learning (Athiwaratkun et al., 2018), Bayesian inference (Maddox et al., 2019), and low-precision training (Yang et al., 2019a). In this paper, we introduce SWA to AT for the first time, in order to smooth the weights and find flatter minima that may improve the adversarially robust generalization. Note that we choose SWA mainly due to its simplicity for proofs-of-concept; while extensively comparing alternative “flatness” regularizations is beyond our current work’s scope.
62
+
63
+ One additional bonus of adopting SWA in AT is the temporal ensemble effect of SWA. It has been widely observed (Tramer et al., 2018; Grefenstette et al., 2018; Wu et al., 2020b; Wang et al., 2021) \` that training a model with the attack transferred from another could reduce “trivial robustness” caused by locally nonlinear loss surfaces, and therefore constructed model ensembles for a stronger defense. SWA was interpreted as approximating the fast geometric ensembling (Garipov et al., 2018), by aggregating multiple checkpoint weights at different training time. Applying SWA to AT therefore may lead to stronger and more transferable attacks, and consequently stronger defense due to ensembling, with the convenience of a single model.
64
+
65
+ Approach: How Following (Izmailov et al., 2018), applying SWA to AT is straightforward:
66
+
67
+ $$
68
+ \mathcal { W } _ { \mathrm { S W A } } ^ { \mathrm { T } } = \frac { \mathcal { W } _ { \mathrm { S W A } } ^ { \mathrm { T - 1 } } \times n + \mathcal { W } ^ { \mathrm { T } } } { n + 1 } , \quad \mathcal { W } ^ { \mathrm { T } } = \mathcal { W } ^ { \mathrm { T - 1 } } + \Delta \mathcal { W } ^ { \mathrm { T } }
69
+ $$
70
+
71
+ ![](images/55d0381a4940d7033662ebcbccb6fb389196573d892facda083d81f020c0e80e.jpg)
72
+ Figure 3: Results of testing accuracy over epochs for ResNet-18 trained on CIFAR-10, CIFAR-100, STL-10, and Tiny ImageNet. Dash / Solid lines show the standard accuracy (SA) / robust accuracy (RA). Blue, Green, Black and Orange curves represent the performance of Baseline, KD, SWA and KD&SWA respectively.
73
+
74
+ where $\mathrm { T }$ indexs the training epoch, $n$ the number of past checkpoints to be averaged, WSWA the averaged network weight, $\mathcal { W }$ the current network weight, and $\Delta { \boldsymbol { \nu } } _ { }$ the SGD update.
75
+
76
+ # 3 EXPERIMENT AND ANALYSIS
77
+
78
+ Datasets We consider five datasets in our experiments: CIFAR-10, CIFAR-100 (Krizhevsky & Hinton, 2009), SVHN (Netzer et al., 2011), STL-10 (Coates et al., 2011) and Tiny-ImageNet (Deng et al., 2009). In all experiments, we randomly split the original training set into one training and one validation sets with a 9:1 ratio. Due to the limited space, we place the SVHN results in Appendix A1.3. The ablation studies and the visualizations are mainly on CIFAR-10 and CIFAR-100.
79
+
80
+ Attack Methods We consider three representative attacks: FGSM (Goodfellow et al., 2015), PGD (Madry et al., 2018), and TRADES (Zhang et al., 2019b). All of them are applied with $\ell _ { 2 } , \epsilon =$ 128/255) or $( \ell _ { \infty } , \epsilon = 8 / 2 5 5 )$ ) setting as in (Madry et al., 2018), to generate adversarial samples. We use FSGM-1/PGD-10/TRADES-10 for training and PGD-20 for testing as the default setting, following Madry et al. (2018); Chen et al. (2020a). In addition, we use Auto-Attack (Croce & Hein, 2020) and CW Attack (Carlini & Wagner, 2017) for a more rigorous evaluation. More details are provided in the Appendix A2.2.
81
+
82
+ Training and Evaluation Details For all experiments, we by default use ResNet-18 (He et al., 2016), with the exception of VGG-16 (Simonyan & Zisserman, 2014) and Wide-ResNet (Zagoruyko & Komodakis, 2016) adopted in Table 3. For training, we adopt an SGD optimizer with a momentum of 0.9 and weight decay of $5 \times 1 0 ^ { - 4 }$ , for a total of 200 epochs, with a batch size of 128. The learning rate starts from 0.1 (0.01 for SVHN (Rice et al., 2020)), decay to one-tenth at epochs 50 and 150 respectively. For Tiny-ImageNet, we train for 100 epochs, and the learning rate decay at epochs 50 and 80 with other settings unchanged. The self-training KD regularization is applied throughout the entire training, and SWA is employed after the first learning rate decay (when the robust overfitting usually starts to occur). We evaluate two common metrics that are widely adopted (Zhang et al., 2019b; Chen et al., 2020a): Standard Testing Accuracy (SA), and Robust Testing Accuracy (RA), which are the classification accuracies on the original and the attacked test sets, respectively.
83
+
84
+ # 3.1 TACKLING ROBUST OVERFITTING
85
+
86
+ Superior Performance Across Datasets Table 1 demonstrates our proposal on STL-10, CIFAR10, CIFAR-100, and Tiny-ImageNet. We consider PGD-AT (Madry et al., 2018) as Baseline; and denote our two training techniques as $+ K \mathcal { D } _ { \mathrm { s t d \& a d v } }$ (KD with standard and robust self-teachers), and $+ S W A$ , respectively. To numerically show the gap of robust overfitting, we also report the best RA values when early stopping during training, the final RA in the last epoch, and as the difference between final minus best. For reference, we also report the corresponding SA for the same best-RA checkpoint (not the best SA value throughout training), the final epoch SA, and their difference.
87
+
88
+ We first observe that the robust overfitting prevails in all Baseline cases, with RA differences between final and best early-stopping values as large as $9 . 3 4 \%$ (CIFAR-10). In comparison, SA stays stable (with negative gaps on STL-10 and CIFAR-10) or continues to improve along with more training epochs (with small positive gaps on CIFAR-100 and Tiny-ImageNet). Fortunately, the gaps were significantly reduced by $+ K \mathcal { D } _ { \mathrm { s t d \& a d v } }$ ; and further diminished to only $0 . 4 \%$ to $0 . 6 \%$ when SWA is also applied.
89
+
90
+ Table 1: Performance showing the occurrence of robust overfitting across datasets and the effectiveness of our proposed remedies with ResNet-18. The difference between best and final robust accuracy indicates degradation in performance during training. We pick the checkpoint which has the best robust accuracy on the validation set. The best results and the smallest performance differences are marked in bold.
91
+
92
+ <table><tr><td>Dataset</td><td>Settings</td><td>Robust Accuracy Best Final</td><td></td><td>/ (RA) Diff.</td><td>Best Final</td><td>Standard Accuracy (SA)</td><td>Diff.</td></tr><tr><td rowspan="3">STL-10</td><td>Baseline</td><td>36.24</td><td>32.20</td><td>4.04</td><td>56.50</td><td>63.69</td><td>-7.19</td></tr><tr><td>Baseline + KDstd&amp;adv</td><td>36.39</td><td>34.83</td><td>1.56</td><td>62.44</td><td>64.81</td><td>-2.37</td></tr><tr><td>Baseline + KDstd&amp;radv + SWA</td><td>36.46</td><td>35.90</td><td>0.56</td><td>62.76</td><td>64.24</td><td>-1.48</td></tr><tr><td rowspan="3">CIFAR-10</td><td>Baseline</td><td>50.72</td><td>41.38</td><td>9.34</td><td>80.78</td><td>82.44</td><td>-1.66</td></tr><tr><td>Baseline + KDstd&amp;adv</td><td>50.89</td><td>48.26</td><td>2.63</td><td>83.67</td><td>85.25</td><td>-1.58</td></tr><tr><td> Baseline + KDstd&amp;adv + SWA</td><td>52.14</td><td>51.53</td><td>0.61</td><td>84.65</td><td>85.40</td><td>-0.75</td></tr><tr><td rowspan="3">CIFAR-100</td><td>Baseline</td><td>27.32</td><td>19.84</td><td>7.48</td><td>53.90</td><td>53.56</td><td>0.34</td></tr><tr><td>Baseline + KDstd&amp;adv</td><td>27.56</td><td>26.02</td><td>1.54</td><td>57.42</td><td>60.34</td><td>-2.92</td></tr><tr><td>Baseline + KDstd&amp;adv + SWA</td><td>28.28</td><td>27.69</td><td>0.59</td><td>60.58</td><td>60.85</td><td>-0.27</td></tr><tr><td rowspan="3">Tiny-ImageNet</td><td>Baseline</td><td>19.81</td><td>13.43</td><td>6.38</td><td>45.85</td><td>45.58</td><td>0.27</td></tr><tr><td>Baseline + KDstd&amp;adv</td><td>21.45</td><td>19.25</td><td>2.20</td><td>48.98</td><td>51.15</td><td>-2.17</td></tr><tr><td> Baseline + KDstd&amp;adv + SWA</td><td>21.84</td><td>21.45</td><td>0.39</td><td>50.57</td><td>51.38</td><td>-0.81</td></tr></table>
93
+
94
+ Further, we observe our methods to push the best RA higher by $0 . 2 2 \% \sim 2 . 0 3 \%$ . For example, the best RA on Tiny-ImageNet rises from $1 9 . 8 1 \%$ to $2 1 . 8 \hat { 4 } \%$ . Meanwhile, since there is no longer robust overfitting early in training, the best RA checkpoints become to select late epochs (often close to the end). Consequently, the SA values of the selected best RA models are all substantially improved. For example on CIFAR-100, the standard accuracy of our methods (best RA checkpoint) surpasses the baseline’s best RA checkpoint by $6 . 6 8 \%$ , and by $7 . 2 9 \%$ for the final checkpoint.
95
+
96
+ Figure 3 further plots the RA and SA curves during training, from which we can clearly observe the diminishing of robust overfitting, after applying $\kappa D _ { \mathrm { s t d \& a d v } }$ , SWA and a combination of two methods. The training curves robustly improve until the end, without compromising the best achievable RA results, and further leads to a much-improved trade-off between RA and SA by avoiding early stopping (e.g., selecting an early checkpoint for RA, when SA might still be half-baked).
97
+
98
+ Across Perturbations and Robustified Methods Our success can extend beyond PGD-AT. Table 2 presents more results in different perturbations (i.e. $\ell _ { 2 } , \ell _ { \infty } )$ and diverse robustified methods (i.e. FSGM in (Wong et al., 2020), TRADES in (Zhang et al., 2019b)). Consistent observations can be made: almost eliminated robust overfitting gaps, and significant gains on RA (by $0 . 6 1 \% \sim 3 . 1 1 \%$ and SA (by $1 . 8 0 \% \sim 4 . 2 2 \%$ .
99
+
100
+ We also compare with previous state-of-the-art results in (Rice et al., 2020) under the same setting. As shown in Table A7 (Appendix), our methods shrink the gap between the RA best checkpoint and the final epoch RA from $5 . 7 0 \%$ to $0 . 1 7 \%$ and simultaneously improve $4 . 5 0 \%$ by RA and $3 . 0 4 \%$ by SA. More results can be found in Appendix A1.
101
+
102
+ Across Architectures and Improved Attacks Table 3 demonstrates the effectiveness of our methods across different architectures, including VGG-16, Wide-ResNet-34-4, and Wide-ResNet-34-10. Specifically, our methods reduce the drop of robust accuracy from $5 . 8 3 \%$ to $0 . 0 6 \%$ with VGG-16 on CIFAR-10 while achieving an extra robust accuracy improvement of $2 . 5 7 \%$ , $1 . 6 9 \%$ and $1 . 2 3 \%$ with VGG-16, Wide-ResNet-34-4 and Wide-ResNet-34-10 on CIFAR10, respectively. To further verify the improvements achieved by our methods, we conduct extra evaluations under improved attacks. As shown in Table 4, after applying the combination of KD and SWA, the overfitting problem is largely mitigated under both Auto-Attack (Croce & Hein, 2020) and CW attack (Carlini & Wagner, 2017). Take CIFAR- $1 0 \ell _ { \infty }$ adversary as an example, our approaches shrink the drop of robust accuracy from $7 . 0 4 \%$ to $- 0 . 0 9 \%$ under Auto-Attack, and $1 4 . { \bar { 9 6 \% } }$ to $0 . 7 9 \%$ under CW attack, when comparing the best model to the eventually converged model. These results indicate that our methods can generalize to different architectures and improved attacks.
103
+
104
+ Excluding Obfuscated Gradients An often argued “counterfeit” of improved robustness is caused by less effectiveness of generated adversarial examples due to obfuscated gradients (Athalye et al., 2018). To exclude this possibility, we show that our methods maintain improved robustness under unseen transfer attacks. To start with, the left figure in Figure 4 shows the transfer testing performance on an unseen robust model (here we use a separately robustified ResNet-50 with PGD-10 on CIFAR-100), using attacks generated by the different epoch checkpoints of PGD-AT Baseline, Baseline $+ \mathcal { K } \mathcal { D } _ { \mathrm { s t d \& \mathrm { a d v } } }$ , and Baseline $+ \mathrm { \Delta } K \mathrm { \mathcal { D } } _ { \mathrm { s t d \& a d v } } + \mathrm { \Delta } \mathrm { S W A } .$ . A higher robust accuracy on the unseen robust model corresponds to a weaker attack. Apparently, our methods consistently yield stronger and more transferable attacks, while the attacking quality generated by the baseline quickly drops with deteriorated transferability. Similarly, the right figure of Figure 4 transfers the attack from
105
+
106
+ Table 2: Controlled experiments on CIFAR-10. The difference between best and final robust accuracy indicates degradation in performance during training. We pick the checkpoint which has the best robust accuracy on the validation set. The best results and the smallest performance difference are marked in bold.
107
+
108
+ <table><tr><td rowspan="2">Adversary</td><td rowspan="2">Norm</td><td rowspan="2">Radius</td><td rowspan="2">Settings</td><td rowspan="2"></td><td colspan="2">Robust Accuracy ( (RA)</td><td colspan="3"> Standard Accuracy (SA)</td></tr><tr><td>Best Final</td><td>Diff.</td><td>Best</td><td>Final</td><td>Diff.</td></tr><tr><td>PGD</td><td>l2</td><td>∈=</td><td>128 255</td><td>Baseline Our Methods</td><td>67.26 65.93 70.37 70.23</td><td>1.33 0.14</td><td>88.78 90.58</td><td>88.86 90.48</td><td>-0.08 0.10</td></tr><tr><td>FGSM</td><td>l2</td><td>∈二</td><td>128 255</td><td>Baseline Our Methods</td><td>66.48 64.12 69.53 69.49</td><td>2.36 0.04</td><td>88.77 91.11</td><td>89.40 91.15</td><td>-0.63 -0.04</td></tr><tr><td>FGSM</td><td>l8</td><td>e=</td><td>8 255</td><td>Baseline Our Methods</td><td>43.14 37.09 43.75 43.74</td><td>6.05 0.01</td><td>85.77 88.53</td><td>86.51 88.72</td><td>-0.74 -0.19</td></tr><tr><td>TRADES</td><td>l2</td><td>e=</td><td>128 255</td><td>Baseline Our Methods</td><td>69.07 64.81 70.30 69.60</td><td>4.26 0.70</td><td>85.43 89.65</td><td>85.61 89.55</td><td>-0.18 0.10</td></tr><tr><td>TRADES</td><td>l8</td><td>e=</td><td>8 255</td><td>Baseline Our Methods</td><td>51.07 47.32 52.92 52.28</td><td>3.75 0.64</td><td>79.67 82.95</td><td>81.81 83.31</td><td>-2.14 -0.36</td></tr></table>
109
+
110
+ Table 3: Controlled experiments across different architecture on CIFAR-10/100 under $\ell _ { \infty }$ adversary. The difference between best and final robust accuracy indicates degradation in performance during training. We pick the checkpoint which has the best robust accuracy on the validation set. The best results and the smallest performance difference are marked in bold.
111
+
112
+ <table><tr><td rowspan="2">Architecture</td><td rowspan="2">Dataset</td><td rowspan="2"> Settings</td><td colspan="3">Robust Accuracy ( (RA)</td><td colspan="3"> Standard Accuracy (SA)</td></tr><tr><td>Best</td><td>Final</td><td>Diff.</td><td>Best</td><td>Final</td><td>Diff.</td></tr><tr><td rowspan="2">VGG-16</td><td>CIFAR-10</td><td>Baseline</td><td>46.42</td><td>40.59</td><td>5.83</td><td>75.29</td><td>79.54</td><td>-4.25</td></tr><tr><td rowspan="2"></td><td>Our Methods</td><td>48.99</td><td>48.93</td><td>0.06</td><td>79.00</td><td>79.69</td><td>-0.69</td></tr><tr><td>CIFAR-100</td><td>Baseline Our Methods</td><td>21.64 24.79</td><td>17.43</td><td>4.21</td><td>39.26</td><td>45.84</td><td>-6.58</td></tr><tr><td rowspan="2">WRN-34-4</td><td></td><td>Baseline</td><td></td><td>24.73</td><td>0.06</td><td>48.20</td><td>49.00</td><td>-0.80</td></tr><tr><td rowspan="2">CIFAR-10</td><td>Our Methods</td><td>52.59 54.28</td><td>43.06 53.90</td><td>9.53 0.38</td><td>81.53 85.17</td><td>83.28</td><td>-1.75</td></tr><tr><td rowspan="2"></td><td>Baseline</td><td>28.02</td><td>20.61</td><td>7.41</td><td>53.19</td><td>85.50 53.63</td><td>-0.33 -0.44</td></tr><tr><td rowspan="2">CIFAR-100</td><td>Our Methods</td><td>30.10</td><td>29.80</td><td>0.30</td><td>57.23</td><td>58.05</td><td>-0.82</td></tr><tr><td>CIFAR-10</td><td>Baseline</td><td>54.27</td><td>47.12</td><td>7.15</td><td>84.16</td><td></td><td></td></tr><tr><td rowspan="2">WRN-34-10 WRN-34-10</td><td></td><td>Our Methods</td><td>55.50</td><td>55.34</td><td>0.16</td><td>86.81</td><td>85.72 87.06</td><td>-1.56 -0.25</td></tr><tr><td rowspan="2">CIFAR-100</td><td>Baseline</td><td>29.95</td><td>24.02</td><td>5.93</td><td>56.56</td><td>56.42</td><td>0.14</td></tr><tr><td></td><td>Our Methods</td><td>31.93</td><td>31.51</td><td>0.42</td><td>60.86</td><td>61.78</td><td>-0.92</td></tr></table>
113
+
114
+ Table 4: Evaluation under improved attacks on CIFAR-10/100 with ResNet-18. The difference between best and final robust accuracy indicates degradation in performance during training. We pick the checkpoint which has the best robust accuracy under PGD-20 attack on the validation set. The best results and the smallest performance difference are marked in bold.
115
+
116
+ <table><tr><td rowspan="2">Dataset</td><td rowspan="2">Norm</td><td rowspan="2">Radius</td><td rowspan="2">Settings</td><td colspan="3">Auto-Attack</td><td colspan="3">CW Attack</td></tr><tr><td>Best</td><td>Final</td><td>Diff.</td><td>Best</td><td>Final</td><td>Diff.</td></tr><tr><td rowspan="2">CIFAR-10</td><td rowspan="2">l2</td><td>128 e=</td><td>Baseline</td><td>67.18</td><td>64.29</td><td>2.89</td><td>73.80</td><td>53.77</td><td>20.03</td></tr><tr><td>255</td><td>Our Methods</td><td>68.87</td><td>68.90</td><td>-0.03</td><td>73.89</td><td>73.79</td><td>0.10</td></tr><tr><td rowspan="2">CIFAR-10</td><td rowspan="2">l8</td><td>8 e=</td><td>Baseline</td><td>47.00</td><td>39.96</td><td>7.04</td><td>75.48</td><td>60.52</td><td>14.96</td></tr><tr><td>255</td><td>Our Methods</td><td>49.35</td><td>49.44</td><td>-0.09</td><td>77.83</td><td>77.04</td><td>0.79</td></tr><tr><td rowspan="2">CIFAR-100</td><td rowspan="2">l2</td><td>128 ∈=</td><td>Baseline</td><td>37.16</td><td>33.43</td><td>3.73</td><td>48.43</td><td>37.73</td><td>10.70</td></tr><tr><td>255</td><td>Our Methods</td><td>40.56</td><td>40.61</td><td>-0.05</td><td>51.02</td><td>50.90</td><td>0.12</td></tr><tr><td rowspan="2">CIFAR-100</td><td rowspan="2">l8</td><td>8 E=</td><td>Baseline</td><td>22.73</td><td>18.11</td><td>4.62</td><td>45.89</td><td>37.76</td><td>8.13</td></tr><tr><td>255</td><td>Our Methods</td><td>25.42</td><td>25.35</td><td>0.07</td><td>49.46</td><td>49.07</td><td>0.39</td></tr></table>
117
+
118
+ ![](images/1938c5e9abe2c3f365eb73c25cfbc22dba4aed1edecbbd24674ec9da84484812.jpg)
119
+ Figure 4: (Left) Transfer attack performance on an unseen robust model, where attacks are generated by Baseline, KD, and KD&SWA’s different epoch checkpoints. (Right) Transfer attack performance on models from Baseline, KD, and KD&SWA, where attacks are generated by an unseen robust model. The unseen robust model is a ResNet-50 trained by PGD-10. All experiments are conducted on the CIFAR-100 dataset.
120
+
121
+ Table 5: Ablation studies on CIFAR-10 with ResNet-18. Compared with Baseline (PGD-AT) methods, the performance improvements and degradations by adding each component are reported in red and blue numbers.
122
+
123
+ <table><tr><td rowspan="2">Settings</td><td colspan="3">Robust Accuracy (RA)</td><td colspan="3">Standard Accuracy (SA)</td></tr><tr><td>Best</td><td>Final</td><td>Diff.</td><td>Best</td><td>Final</td><td>Diff.</td></tr><tr><td>Baseline</td><td>50.72</td><td>41.38</td><td>9.34</td><td>80.78</td><td>82.44</td><td>-1.66</td></tr><tr><td rowspan="3">KDstd KDadv SWA</td><td>48.72(↓ 2.00)</td><td>43.08(个 1.70)</td><td>5.64</td><td>83.40(个 2.62)</td><td>84.80(↑ 2.36)</td><td>-1.40</td></tr><tr><td>51.01 (个0.29)</td><td>47.72(个 6.34)</td><td>3.29</td><td>82.18(↑ 1.40)</td><td>83.51(个 1.07)</td><td>-1.33</td></tr><tr><td>51.65(个 0.93)</td><td>48.21(↑ 6.83)</td><td>3.44</td><td>83.42(个 2.64)</td><td>84.12(个 1.68)</td><td>-0.70</td></tr><tr><td>KDstd&amp;adv</td><td>50.89(↑ 0.17)</td><td>48.26(↑ 6.88)</td><td>2.63</td><td>83.67(个 2.89)</td><td>85.25(个 2.81)</td><td>-1.58</td></tr><tr><td> KDstd&amp;adv + SWA</td><td>52.14(个 1.42)</td><td>51.53(个 10.15)</td><td>0.61</td><td>84.65(个 3.87)</td><td>85.40(个 2.96)</td><td>-0.75</td></tr></table>
124
+
125
+ an unseen robust model to the above three methods, while our methods consistently defend better.
126
+ Those empirical pieces of evidence suggest that our RA gains are not a result of gradient masking.
127
+
128
+ # 3.2 ABLATION STUDY AND VISUALIZATION
129
+
130
+ $\kappa D _ { \mathrm { a d v } }$ , $\kappa \mathcal { D } _ { \mathrm { s t d } }$ and SWA We study the effectiveness of each component in logit and weight smoothening. We also specifically decompose $\kappa D _ { \mathrm { s t d \& a d v } }$ into two ablation methods: $\kappa \mathcal { D } _ { \mathrm { s t d } }$ (by setting $\lambda _ { 2 } = 0$ in Eqn. (1)), and $\kappa D _ { \mathrm { a d v } }$ (by setting $\lambda _ { 1 } = 0$ ), respectively. Table 5 shows that $\kappa D _ { \mathrm { s t d } }$ , ${ \boldsymbol { \kappa } } { \boldsymbol { D } } _ { \mathrm { a d v } }$ and SWA all substantially contribute to suppressing the robust overfitting and enhancing the SA-RA trade-off. We notice that while $\kappa \mathcal { D } _ { \mathrm { s t d } }$ seems to (understandably) sacrifice the best RA a bit for improving TA, combining it with $\kappa D _ { \mathrm { a d v } }$ brings the RA compromise back and boosts them both.
131
+
132
+ Table 6: Ablation of label smoothing versus $\kappa D$ on CIFAR-10.
133
+
134
+ <table><tr><td rowspan="2">Settings</td><td colspan="3">Robust Accuracy (RA)</td><td colspan="3">Standard Accuracy (SA)</td></tr><tr><td>Best</td><td>Final</td><td>Diff.</td><td>Best</td><td>Final</td><td>Diff.</td></tr><tr><td>Label Smoothing</td><td>50.75</td><td>44.73</td><td>6.02</td><td>81.28</td><td>83.54</td><td>-2.26</td></tr><tr><td>Tf-KDreg</td><td>50.79</td><td>45.65</td><td>5.14</td><td>79.63</td><td>83.56</td><td>-3.93</td></tr><tr><td>KDstd&amp;adv-FGSM</td><td>50.81</td><td>48.32</td><td>2.49</td><td>84.79</td><td>85.59</td><td>-0.80</td></tr><tr><td>KDstd&amp;adv-PGD10</td><td>50.89</td><td>48.26</td><td>2.63</td><td>83.67</td><td>85.25</td><td>-1.58</td></tr><tr><td>KDstd&amp;adv-PGD100</td><td>50.92</td><td>48.47</td><td>2.45</td><td>83.31</td><td>84.64</td><td>-1.33</td></tr></table>
135
+
136
+ Naive LS versus learned logit smoothening As $\kappa D$ could be viewed as a learned version of LS (Yuan et al., 2020), we next quantify the benefit of using $\kappa D _ { \mathrm { s t d \& a d v } }$ , compared to naive LS (Szegedy et al., 2016), and the teacher-free knowledge distillation regularization (Tf
137
+
138
+ $\mathrm { K D } _ { \mathrm { r e g } } )$ ) in (Yuan et al., 2020), all incorporated with PGD-AT on CIFAR-10. Table 6 show that both naive LS and $\mathrm { T f - K D } _ { \mathrm { r e g } }$ also reduce robust overfitting to some extent, but far less competitive than $\kappa D _ { \mathrm { s t d \& a d v } }$ . Moreover, the robustness gains of naive LS and $\mathrm { T f - K D } _ { \mathrm { r e g } }$ no longer hold under transfer attacks, implying that they are susceptible to obfuscated gradients. Further visualization in Figure 5 demonstrates that our methods smooth the logits without compromising the class-wise discriminative information, while naive LS and Tf-KD might suffer from weaker gradients here.
139
+
140
+ Quality of Self-Teachers An extra price for our learned logit smoothening is the pre-training of self-teachers, although this is already quite common in similar literature (Chen et al., 2020a;b). To further reduce this burden, we explore whether high-quality and more expensive pre-training is necessary for us, and fortunately find that is not the case. For example, Table 6 shows only marginal performance difference when the robust self-teacher is pre-trained using FGSM or PGD-10/100.
141
+
142
+ ![](images/f7651e188f85fac592057e60f8508a67441fa2545a84819507286cc419520801.jpg)
143
+ Figure 5: t-SNE results of different logits smoothing approaches on CIFAR-10. Dots and stars represent for clean and adversarial images respectively. Orange, Blue and Green represent classes A, B and C respectively. For each class, we visualize all testing images and their corresponding adversarial images from PGD-20.
144
+
145
+ ![](images/a05f5075fa91e62db719b009c439376db71444903655ac34d131a2589dc7ece4.jpg)
146
+ Figure 6: Comparison of loss landscapes of models trained by baseline (the first row) and our methods (the second row). Loss plots in each column are generated from the same original image randomly chosen from the CIFAR-100 test dataset. $z$ axis denotes the loss value. Following the settings in (Engstrom et al., 2018), we plot the loss landscape function: $z = \log ( x \cdot r _ { 1 } + y \cdot r _ { 2 } )$ , where $r _ { 1 } = \mathrm { s i g n } ( \nabla _ { i } f ( i ) )$ and $r _ { 2 } \sim$ Rademacher(0.5). Here $i$ denostes the original image, and $f ( \cdot )$ a trained model whose inputs are scaled to [0, 1].
147
+
148
+ Visualizing Flatness and Local Linearity We expect SWA to find flatter minima for AT to improve its generalization, and we show it to indeed happen by visualizing the loss landscape w.r.t. both input and weight spaces. Figure 6 shows that our methods notably flatten the rugged landscape w.r.t. the input space, compared to the PGD-AT baseline, which aligns with the robust generalization claims in (Moosavi-Dezfooli et al., 2019; Wu et al., 2020a). Figure 7 follows (Izmailov et al., 2018) to perturb the trained model in the weight space and show how the robust testing loss changes over the perturbation radius. We perturb 10 different random directions at each different $\ell _ { 2 }$ distance. Our methods present better weight smoothness around the achieved local minima too, which suggests improved generalization (Dinh et al., 2017; Petzka et al., 2019).
149
+
150
+ ![](images/d8bba0b60785c739849c8c5ee73499c38b769b1cb5fdb3789cbdf5e343ac57d8.jpg)
151
+ Figure 7: Robust testing loss as a function of perturbed weight distance, starting from models trained by PGD-AT baseline and our methods on CIFAR-100.
152
+
153
+ We additionally look at the local linearity measurement proposed in (Andriushchenko & Flammarion, 2020), which originally addresses catastrophic overfitting in fast AT. As shown in Figure A11, our methods also achieve consistently better local linearity.
154
+
155
+ # 4 CONCLUSION
156
+
157
+ This paper takes one more step towards addressing the recently discovered robust overfitting issue in AT. We present two empirical solutions to smooth the logits and weights respectively; both are motivated by successful practice in improving standard generalization, and we adapt them for AT. While Rice et al. (2020) found simpler regularizations unable to fix robustness overfitting, our learned smoothening regularization seems to largely mitigate that. Extensive experiments show our proposal to establish new state-of-the-art performance on AT. While promising progress has been made, the underlying cause of robust overfitting is not yet fully explained. Our future work will connect to more theoretical understandings of this issue (Wang et al., 2019; 2020b).
158
+
159
+ # REFERENCES
160
+
161
+ Maksym Andriushchenko and Nicolas Flammarion. Understanding and improving fast adversarial training. arXiv preprint arXiv:2007.02617, 2020.
162
+
163
+ Anish Athalye, Nicholas Carlini, and David Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. arXiv preprint arXiv:1802.00420, 2018.
164
+
165
+ Ben Athiwaratkun, Marc Finzi, Pavel Izmailov, and Andrew Gordon Wilson. There are many consistent explanations of unlabeled data: Why you should average. arXiv preprint arXiv:1806.05594, 2018.
166
+
167
+ Mikhail Belkin, Daniel Hsu, Siyuan Ma, and Soumik Mandal. Reconciling modern machinelearning practice and the classical bias–variance trade-off. Proceedings of the National Academy of Sciences, 116(32):15849–15854, 2019.
168
+
169
+ Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017 ieee symposium on security and privacy (sp), pp. 39–57. IEEE, 2017.
170
+
171
+ Tianlong Chen, Sijia Liu, Shiyu Chang, Yu Cheng, Lisa Amini, and Zhangyang Wang. Adversarial robustness: From self-supervised pre-training to fine-tuning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 699–708, 2020a.
172
+
173
+ Xuxi Chen, Wuyang Chen, Tianlong Chen, Ye Yuan, Chen Gong, Kewei Chen, and Zhangyang Wang. Self-pu: Self boosted and calibrated positive-unlabeled training. arXiv preprint arXiv:2006.11280, 2020b.
174
+
175
+ Minhao Cheng, Qi Lei, Pin-Yu Chen, Inderjit Dhillon, and Cho-Jui Hsieh. Cat: Customized adversarial training for improved robustness. arXiv preprint arXiv:2002.06789, 2020.
176
+
177
+ Adam Coates, Andrew Ng, and Honglak Lee. An analysis of single-layer networks in unsupervised feature learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pp. 215–223, 2011.
178
+
179
+ Francesco Croce and Matthias Hein. Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks. In International Conference on Machine Learning, pp. 2206– 2216. PMLR, 2020.
180
+
181
+ Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009.
182
+
183
+ Guneet S. Dhillon, Kamyar Azizzadenesheli, Jeremy D. Bernstein, Jean Kossaifi, Aran Khanna, Zachary C. Lipton, and Animashree Anandkumar. Stochastic activation pruning for robust adversarial defense. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ H1uR4GZRZ.
184
+
185
+ Gavin Weiguang Ding, Luyu Wang, and Xiaomeng Jin. AdverTorch v0.1: An adversarial robustness toolbox based on pytorch. arXiv preprint arXiv:1902.07623, 2019.
186
+
187
+ Laurent Dinh, Razvan Pascanu, Samy Bengio, and Yoshua Bengio. Sharp minima can generalize for deep nets. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1019–1028. JMLR. org, 2017.
188
+
189
+ Minjing Dong, Yanxi Li, Yunhe Wang, and Chang Xu. Adversarially robust neural architectures. arXiv preprint arXiv:2009.00902, 2020.
190
+
191
+ Yinpeng Dong, Fangzhou Liao, Tianyu Pang, Hang Su, Jun Zhu, Xiaolin Hu, and Jianguo Li. Boosting adversarial attacks with momentum. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018.
192
+
193
+ Gintare Karolina Dziugaite, Zoubin Ghahramani, and Daniel M Roy. A study of the effect of jpg compression on adversarial images. arXiv preprint arXiv:1608.00853, 2016.
194
+
195
+ Logan Engstrom, Andrew Ilyas, and Anish Athalye. Evaluating and understanding the robustness of adversarial logit pairing. arXiv preprint arXiv:1807.10272, 2018.
196
+
197
+ Chaohao Fu, Hongbin Chen, Na Ruan, and Weijia Jia. Label smoothing and adversarial robustness. arXiv preprint arXiv:2009.08233, 2020.
198
+
199
+ Tommaso Furlanello, Zachary Lipton, Michael Tschannen, Laurent Itti, and Anima Anandkumar. Born again neural networks. In International Conference on Machine Learning, pp. 1607–1616, 2018.
200
+
201
+ Timur Garipov, Pavel Izmailov, Dmitrii Podoprikhin, Dmitry P Vetrov, and Andrew G Wilson. Loss surfaces, mode connectivity, and fast ensembling of dnns. In Advances in Neural Information Processing Systems, pp. 8789–8798, 2018.
202
+
203
+ Morgane Goibert and Elvis Dohmatob. Adversarial robustness via adversarial label-smoothing. arXiv preprint arXiv:1906.11567, 2019.
204
+
205
+ Ian Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In International Conference on Learning Representations, 2015. URL http:// arxiv.org/abs/1412.6572.
206
+
207
+ Edward Grefenstette, Robert Stanforth, Brendan O’Donoghue, Jonathan Uesato, Grzegorz Swirszcz, and Pushmeet Kohli. Strength in numbers: Trading-off robustness and computation via adversarially-trained ensembles. arXiv preprint arXiv:1811.09300, 2018.
208
+
209
+ Chuan Guo, Mayank Rana, Moustapha Cisse, and Laurens van der Maaten. Countering adversarial images using input transformations. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id ${ . } = { }$ SyJ7ClWCb.
210
+
211
+ Vipul Gupta, Santiago Akle Serrano, and Dennis DeCoste. Stochastic weight averaging in parallel: Large-batch training that generalizes well. arXiv preprint arXiv:2001.02312, 2020.
212
+
213
+ 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.
214
+
215
+ Matthias Hein and Maksym Andriushchenko. Formal guarantees on the robustness of a classifier against adversarial manipulation. In Advances in Neural Information Processing Systems, pp. 2266–2276, 2017.
216
+
217
+ Matthias Hein, Maksym Andriushchenko, and Julian Bitterwolf. Why relu networks yield highconfidence predictions far away from the training data and how to mitigate the problem. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 41–50, 2019.
218
+
219
+ Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
220
+
221
+ Ting-Kuei Hu, Tianlong Chen, Haotao Wang, and Zhangyang Wang. Triple wins: Boosting accuracy, robustness and efficiency together by enabling input-adaptive inference. arXiv preprint arXiv:2002.10025, 2020.
222
+
223
+ Pavel Izmailov, Dmitrii Podoprikhin, Timur Garipov, Dmitry Vetrov, and Andrew Gordon Wilson. Averaging weights leads to wider optima and better generalization. arXiv preprint arXiv:1803.05407, 2018.
224
+
225
+ Gauri Jagatap, Animesh Basak Chowdhury, Siddharth Garg, and Chinmay Hegde. Adversarially robust learning via entropic regularization. arXiv preprint arXiv:2008.12338, 2020.
226
+
227
+ Ziyu Jiang, Tianlong Chen, Ting Chen, and Zhangyang Wang. Robust pre-training by adversarial contrastive learning. arXiv preprint arXiv:2010.13337, 2020.
228
+
229
+ Daniel Kang, Yi Sun, Dan Hendrycks, Tom Brown, and Jacob Steinhardt. Testing robustness against unforeseen adversaries. arXiv preprint arXiv:1908.08016, 2019.
230
+
231
+ A. Krizhevsky and G. Hinton. Learning multiple layers of features from tiny images. Master’s thesis, Department of Computer Science, University of Toronto, 2009.
232
+
233
+ Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016.
234
+
235
+ Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE transactions on pattern analysis and machine intelligence, 40(12):2935–2947, 2017.
236
+
237
+ F. Liao, M. Liang, Y. Dong, T. Pang, X. Hu, and J. Zhu. Defense against adversarial attacks using high-level representation guided denoiser. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1778–1787, 2018.
238
+
239
+ Xuanqing Liu, Minhao Cheng, Huan Zhang, and Cho-Jui Hsieh. Towards robust neural networks via random self-ensemble. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 369–385, 2018.
240
+
241
+ Wesley J Maddox, Pavel Izmailov, Timur Garipov, Dmitry P Vetrov, and Andrew Gordon Wilson. A simple baseline for bayesian uncertainty in deep learning. In Advances in Neural Information Processing Systems, pp. 13153–13164, 2019.
242
+
243
+ Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } }$ rJzIBfZAb.
244
+
245
+ Pratyush Maini, Eric Wong, and J Zico Kolter. Adversarial robustness against the union of multiple perturbation models. arXiv preprint arXiv:1909.04068, 2019.
246
+
247
+ Chengzhi Mao, Ziyuan Zhong, Junfeng Yang, Carl Vondrick, and Baishakhi Ray. Metric learning for adversarial robustness. In Advances in Neural Information Processing Systems, pp. 480–491, 2019.
248
+
249
+ Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Jonathan Uesato, and Pascal Frossard. Robustness via curvature regularization, and vice versa. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9078–9086, 2019.
250
+
251
+ Marius Mosbach, Maksym Andriushchenko, Thomas Trost, Matthias Hein, and Dietrich Klakow. Logit pairing methods can fool gradient-based attacks. arXiv preprint arXiv:1810.12042, 2018.
252
+
253
+ Rafael Muller, Simon Kornblith, and Geoffrey E Hinton. When does label smoothing help? In ¨ Advances in Neural Information Processing Systems, pp. 4694–4703, 2019.
254
+
255
+ Preetum Nakkiran, Gal Kaplun, Yamini Bansal, Tristan Yang, Boaz Barak, and Ilya Sutskever. Deep double descent: Where bigger models and more data hurt. arXiv preprint arXiv:1912.02292, 2019.
256
+
257
+ Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y. Ng. Reading digits in natural images with unsupervised feature learning. In NIPS Workshop on Deep Learning and Unsupervised Feature Learning 2011, 2011. URL http://ufldl.stanford.edu/ housenumbers/nips2011_housenumbers.pdf.
258
+
259
+ Behnam Neyshabur, Srinadh Bhojanapalli, David McAllester, and Nati Srebro. Exploring generalization in deep learning. In Advances in neural information processing systems, pp. 5947–5956, 2017.
260
+
261
+ Tianyu Pang, Kun Xu, Yinpeng Dong, Chao Du, Ning Chen, and Jun Zhu. Rethinking softmax cross-entropy loss for adversarial robustness. arXiv preprint arXiv:1905.10626, 2019.
262
+
263
+ Tianyu Pang, Xiao Yang, Yinpeng Dong, Kun Xu, Hang Su, and Jun Zhu. Boosting adversarial training with hypersphere embedding. arXiv preprint arXiv:2002.08619, 2020.
264
+
265
+ Henning Petzka, Linara Adilova, Michael Kamp, and Cristian Sminchisescu. A reparameterizationinvariant flatness measure for deep neural networks. arXiv preprint arXiv:1912.00058, 2019.
266
+
267
+ Leslie Rice, Eric Wong, and J Zico Kolter. Overfitting in adversarially robust deep learning. arXiv preprint arXiv:2002.11569, 2020.
268
+
269
+ Jer´ ome Rony, Luiz G Hafemann, Luiz S Oliveira, Ismail Ben Ayed, Robert Sabourin, and Eric ˆ Granger. Decoupling direction and norm for efficient gradient-based l2 adversarial attacks and defenses. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4322–4330, 2019.
270
+
271
+ Ali Shafahi, Amin Ghiasi, Furong Huang, and Tom Goldstein. Label smoothing and logit squeezing: A replacement for adversarial training? arXiv preprint arXiv:1910.11585, 2019a.
272
+
273
+ Ali Shafahi, Mahyar Najibi, Mohammad Amin Ghiasi, Zheng Xu, John Dickerson, Christoph Studer, Larry S Davis, Gavin Taylor, and Tom Goldstein. Adversarial training for free! In Advances in Neural Information Processing Systems, pp. 3358–3369, 2019b.
274
+
275
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
276
+
277
+ David Stutz, Matthias Hein, and Bernt Schiele. Confidence-calibrated adversarial training: Generalizing to unseen attacks. In Proc. of the International Conference on Machine Learning (ICML), 2020.
278
+
279
+ C. Szegedy, V. Vanhoucke, S. Ioffe, J. Shlens, and Z. Wojna. Rethinking the inception architecture for computer vision. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2818–2826, 2016.
280
+
281
+ Jiaxi Tang, Rakesh Shivanna, Zhe Zhao, Dong Lin, Anima Singh, Ed H Chi, and Sagar Jain. Understanding and improving knowledge distillation. arXiv preprint arXiv:2002.03532, 2020.
282
+
283
+ Florian Tramer, Alexey Kurakin, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick Mc- \` Daniel. Ensemble adversarial training: Attacks and defenses. In International Conference on Learning Representations, 2018.
284
+
285
+ Haotao Wang, Tianlong Chen, Shupeng Gui, Ting-Kuei Hu, Ji Liu, and Zhangyang Wang. Once-forall adversarial training: In-situ tradeoff between robustness and accuracy for free. arXiv preprint arXiv:2010.11828, 2020a.
286
+
287
+ Jianyu Wang and Haichao Zhang. Bilateral adversarial training: Towards fast training of more robust models against adversarial attacks. In Proceedings of the IEEE International Conference on Computer Vision, pp. 6629–6638, 2019.
288
+
289
+ Xin Wang, Jie Ren, Shuyun Lin, Xiangming Zhu, Yisen Wang, and Quanshi Zhang. A unified approach to interpreting and boosting adversarial transferability. In ICLR, 2021.
290
+
291
+ Yisen Wang, Xingjun Ma, James Bailey, Jinfeng Yi, Bowen Zhou, and Quanquan Gu. On the convergence and robustness of adversarial training. In ICML, 2019.
292
+
293
+ Yisen Wang, Difan Zou, Jinfeng Yi, James Bailey, Xingjun Ma, and Quanquan Gu. Improving adversarial robustness requires revisiting misclassified examples. In ICLR, 2020b.
294
+
295
+ Eric Wong, Leslie Rice, and J. Zico Kolter. Fast is better than free: Revisiting adversarial training. In International Conference on Learning Representations, 2020. URL https://openreview. net/forum?id ${ . } = { }$ BJx040EFvH.
296
+
297
+ Dongxian Wu, Yisen Wang, and Shu-tao Xia. Revisiting loss landscape for adversarial robustness. arXiv preprint arXiv:2004.05884, 2020a.
298
+
299
+ Dongxian Wu, Yisen Wang, Shu-Tao Xia, James Bailey, and Xingjun Ma. Skip connections matter: On the transferability of adversarial examples generated with resnets. In ICLR, 2020b.
300
+
301
+ Cihang Xie, Jianyu Wang, Zhishuai Zhang, Zhou Ren, and Alan Yuille. Mitigating adversarial effects through randomization. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id=Sk9yuql0Z.
302
+
303
+ Weilin Xu, David Evans, and Yanjun Qi. Feature squeezing: Detecting adversarial examples in deep neural networks. arXiv preprint arXiv:1704.01155, 2017.
304
+ Guandao Yang, Tianyi Zhang, Polina Kirichenko, Junwen Bai, Andrew Gordon Wilson, and Chris De Sa. Swalp: Stochastic weight averaging in low precision training. In International Conference on Machine Learning, pp. 7015–7024, 2019a.
305
+ Yuzhe Yang, Guo Zhang, Dina Katabi, and Zhi Xu. ME-Net: Towards effective adversarial robustness with matrix estimation. In Proceedings of the 36th International Conference on Machine Learning (ICML), 2019b.
306
+ Li Yuan, Francis EH Tay, Guilin Li, Tao Wang, and Jiashi Feng. Revisiting knowledge distillation via label smoothing regularization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3903–3911, 2020.
307
+ Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016.
308
+ Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. arXiv preprint arXiv:1611.03530, 2016.
309
+ Dinghuai Zhang, Tianyuan Zhang, Yiping Lu, Zhanxing Zhu, and Bin Dong. You only propagate once: Accelerating adversarial training via maximal principle. In Advances in Neural Information Processing Systems, pp. 227–238, 2019a.
310
+ Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric P Xing, Laurent El Ghaoui, and Michael I Jordan. Theoretically principled trade-off between robustness and accuracy. In International Conference on Machine Learning (ICML), pp. 7472–7482, 2019b.
311
+ Jingfeng Zhang, Xilie Xu, Bo Han, Gang Niu, Lizhen Cui, Masashi Sugiyama, and Mohan Kankanhalli. Attacks which do not kill training make adversarial learning stronger. In International Conference on Machine Learning, pp. 11278–11287. PMLR, 2020a.
312
+ Jingfeng Zhang, Jianing Zhu, Gang Niu, Bo Han, Masashi Sugiyama, and Mohan Kankanhalli. Geometry-aware instance-reweighted adversarial training. arXiv preprint arXiv:2010.01736, 2020b.
313
+
314
+ # A1 MORE EXPERIMENT RESULTS
315
+
316
+ # A1.1 STATE-OF-THE-ART BENCHMARK ON CIFAR-100
317
+
318
+ We implement our methods with exactly the same setting as (Rice et al., 2020) and compare it with the baseline result reported from the original paper. As shown in Table A7 and Figure A8, our methods achieve great improvements both on robust accuracy and standard accuracy ( $1 . 6 4 \%$ in RA and $3 . 7 8 \%$ in SA for $\ell _ { \infty }$ , $4 . 5 0 \%$ in RA and $3 . 0 4 \%$ in SA for $\ell _ { 2 }$ ), which establish a new state-of-theart bar.
319
+
320
+ Table A7: Comparative Experiment on CIFAR-100, we follow the same setting and compare with the baseline result from (Rice et al., 2020). Best refers to the model with best robust accuracy during training and Final is an average of accuracy over last 5 epochs.
321
+
322
+ <table><tr><td rowspan="2">Adversary</td><td rowspan="2">Norm</td><td rowspan="2">Radius</td><td rowspan="2">Settings</td><td colspan="3">Robust Accuracy (RA)</td><td rowspan="2">Standard Accuracy</td><td colspan="2">(SA)</td></tr><tr><td>Best</td><td>Final</td><td>Diff. Best</td><td>Final</td><td>Diff.</td></tr><tr><td rowspan="2">PGD</td><td>l2</td><td>∈= 128</td><td>Baseline</td><td>43.20</td><td>37.50±0.09</td><td>5.70</td><td>62.50</td><td>60.10±0.22</td><td>2.40</td></tr><tr><td></td><td>255</td><td>Our Methods</td><td>47.70</td><td>47.53±0.03</td><td>0.17</td><td>65.54</td><td>65.56±0.01</td><td>-0.02</td></tr><tr><td rowspan="2">PGD</td><td>l</td><td>8</td><td>Baseline</td><td>28.10</td><td>21.40±0.39</td><td>6.70</td><td>52.70</td><td>54.10±0.23</td><td>-1.40</td></tr><tr><td></td><td>e=255</td><td>Our Methods</td><td>29.74</td><td>29.40±0.02</td><td>0.34</td><td>56.48</td><td>57.69±0.03</td><td>-1.21</td></tr></table>
323
+
324
+ ![](images/d7e6089ea2b5d13c2730b2f566c80e69f249ed99cd6e0a8a26d9f2a8e059de62.jpg)
325
+ Figure A8: Results of testing accuracy over epochs for ResNet-18 trained on CIFAR-100 with the same setting as Rice et al. (2020). Dash lines show the standard accuracy (SA); solid lines represent the robust accuracy (RA). Blue, Green and Orange curves represent the performance of Baseline, KD and KD&SWA respectively.
326
+
327
+ # A1.2 T-SNE RESULT ON CIFAR-100
328
+
329
+ We visualize the learned feature space with all training images and their corresponding adversarial images from PGD-10 on CIFAR-100. As shown in Figure A9, our learned features have a larger distance between classes while being more clustered within the same class. The more distinguishable feature embedding justifies the improvement of both robust and standard accuracy.
330
+
331
+ # A1.3 SUPERIOR PERFORMANCE ON SVHN
332
+
333
+ We conduct our experiments on SVHN with ResNet-18 (He et al., 2016) architecture and adopt an SGD optimizer with a momentum of 0.9 and a weight decay of $5 \times 1 0 ^ { - 4 }$ for 80 epochs in total with a batch size of 128. The learning rate starts from 0.01 and follows a cosine annealing schedule. The result can be found on Table A8 and Figure A10. As we can see, the robust accuracy of the best checkpoint for $\ell _ { \infty }$ is improved from $5 2 . 6 0 \%$ to $5 3 . 6 5 \%$ , and robust overfitting is alleviated by $6 . 3 0 \%$ . In the meantime, standard accuracy has also been improved by $2 . 4 7 \%$ . The superior performance on SVHN aligns with results on other datasets, which shows the effectiveness of our methods.
334
+
335
+ ![](images/a88d853639330843e71e1830d682c9f9949c2b9b439b14fd23f5f84c36964ca6.jpg)
336
+ Figure A9: t-SNE results of different models trained on CIFAR-100. Dots and stars represent for clean and adversarial images respectively. Red, Blue and Green represent classes A, B and C respectively. For each class, we visualize all training images and their corresponding adversarial images from PGD-10. The left figure is Baseline; the right figure is Our Methods.
337
+
338
+ ![](images/e21e8ec3480c4c96d61176fa2f88e892a3dcc14466178057e7510e60f63a3acd.jpg)
339
+ Figure A10: Results of testing accuracy over epochs for ResNet-18 trained on SVHN. Dash lines show the standard accuracy (SA); solid lines represent the robust accuracy (RA). Blue, Green, Black and Orange curves represent the performance of Baseline, KD, SWA and KD&SWA respectively.
340
+
341
+ Table A8: Performance showing the occurrence of robust overfitting and effectiveness of our proposed remedies with ResNet-18 on SVHN. The difference between best and final robust accuracy indicates degradation in performance during training. We pick the checkpoint which has the best robust accuracy on validation dataset. The best results and the minimum performance difference are marked in bold.
342
+
343
+ <table><tr><td>Dataset</td><td>Settings</td><td>Robust Accuracy (RA) Best Final</td><td>Diff.</td><td></td><td>Standard Accuracy (SA) Best Final</td><td></td><td>Diff.</td></tr><tr><td rowspan="2">SVHN</td><td>Baseline</td><td>52.60</td><td>43.30</td><td>9.30</td><td>87.93</td><td>89.94</td><td>-2.01</td></tr><tr><td>Baseline + KDstd&amp;adv Baseline + KDstd&amp;adv + SWA</td><td>52.93 53.65</td><td>48.46 50.65</td><td>4.47 3.00</td><td>87.62 90.40</td><td>91.36 91.70</td><td>-3.74 -1.30</td></tr></table>
344
+
345
+ # A1.4 LOCAL LINEARITY
346
+
347
+ As proposed by (Andriushchenko & Flammarion, 2020), the catastrophic overfitting problem is mainly due to the local linearity reduction when adversarial training with FGSM(Rice et al., 2020). So we borrow this measurement in the robust overfitting scenario, which calculates the expectation of the cosine similarity of the gradient between the original input and randomly perturbed one with a uniform distribution, as shown in Eqn. 3. The result shown in figure A11 indicates that our methods help to slow the decline of local linearity and the maintenance of local linearity is also helpful for preventing robust overfitting.
348
+
349
+ $$
350
+ \mathbb { E } _ { ( \mathbf { x } , y ) \in \mathcal { D } , \eta \in \mathcal { U } ( [ - \epsilon , \epsilon ] ^ { d } ) } \bigg [ \cos \Big ( \nabla _ { \mathbf { x } } \mathcal { L } \big ( f ( \pmb { \theta } , \mathbf { x } ) , y \big ) , \nabla _ { \mathbf { x } } \mathcal { L } \big ( f ( \pmb { \theta } , \mathbf { x } + \pmb { \eta } ) , y \big ) \Big ) \bigg ]
351
+ $$
352
+
353
+ ![](images/d44726726354895d815bb7c5a33ec203b58e82db82fb9aafd2d77f5eaef75e82.jpg)
354
+ Figure A11: The local linearity is calculated from all test images on CIFAR-100 with models from each period of the training process. Blue, Green and Orange curves represent the local linearity of Baseline, KD and KD&SWA respectively.
355
+
356
+ # A1.5 ABLATION OF TRANSFER ATTACK
357
+
358
+ With the purpose of fully comparing the effects of label smoothing and knowledge distillation, we introduce a transfer attack with an unseen non-robust model with the same architecture, follow the same setting as (Fu et al., 2020). A higher accuracy on the unseen model indicates a weaker attack generated by the corresponding setting while a higher accuracy from the unseen model means better robustness. As shown in Table A9, only knowledge distillation shows significant improvement with both accuracies, compared with baseline(PGD-AT) methods. The strength of generated adversarial images is improved by $4 . 3 2 \%$ and the robustness is improved by $2 . 9 1 \%$ for the best model. We also experiment with an unseen robust model and get consistent improvement. This improvement indicates that knowledge distillation introduces more discriminating information from teacher models, which is better than manually designed label smoothing methods.
359
+
360
+ Table A9: Ablation of Transfer attack. The accuracy on unseen model is the accuracy of unseen model with adversarial images generated by source models from different settings and the accuracy from unseen model means the opposite. We generated adversarial images for all test images on CIFAR-10 with $\ell _ { \infty }$ PGD-20. Baseline represents the PGD-AT methods.
361
+
362
+ <table><tr><td rowspan="2">Settings</td><td colspan="2">Accuracy on unseen model</td><td colspan="2">Accuracy from unseen model</td></tr><tr><td>Best</td><td>Final</td><td>Best</td><td>Final</td></tr><tr><td>Baseline</td><td>69.87</td><td>80.43</td><td>79.72</td><td>81.77</td></tr><tr><td>Label smoothing</td><td>70.94</td><td>81.24</td><td>78.44</td><td>82.82</td></tr><tr><td>Tf-KDreg</td><td>73.29</td><td>82.21</td><td>79.47</td><td>82.71</td></tr><tr><td>KDstd&amp;adv-PGD10</td><td>65.55</td><td>72.63</td><td>82.63</td><td>84.01</td></tr></table>
363
+
364
+ # A1.6 SWA VERSUS ISWA
365
+
366
+ One possible extension of SWA is to replace $\mathcal { W } ^ { \mathrm { T - 1 } }$ with $\mathcal { W } _ { \mathrm { S W A } } ^ { \mathrm { T - 1 } }$ in Eqn. 2. We name this variant as iSWA and compare it with the original SWA in Table A10. Both weight smoothing techniques can mitigate robust overfitting, and iSWA performs slightly better on RA while sacrificing some SA.
367
+
368
+ Table A10: Ablation of SWA on CIFAR-10.Best refers to the model selected with best robust accuracy on validation dataset and Final is the model at the end of training process.
369
+
370
+ <table><tr><td rowspan="2">Settings</td><td colspan="3">Robust Accuracy (RA)</td><td colspan="3"> Standard Accuracy (SA)</td></tr><tr><td>Best</td><td>Final</td><td>Diff.</td><td>Best</td><td>Final</td><td>Diff.</td></tr><tr><td>KDstd&amp;adv-PGD10 + SWA</td><td>52.14</td><td>51.53</td><td>0.61</td><td>84.65</td><td>85.40</td><td>-0.75</td></tr><tr><td>KDstd&amp;adv-PGD10 + iSWA</td><td>52.36</td><td>52.33</td><td>0.03</td><td>83.17</td><td>83.54</td><td>-0.37</td></tr></table>
371
+
372
+ # A2 MORE METHODOLOGY AND IMPLEMENTATION DETAILS
373
+
374
+ # A2.1 KNOWLEDGE DISTILLATION
375
+
376
+ We state $\kappa D$ as follows:
377
+
378
+ $$
379
+ \begin{array} { c } { \displaystyle \mathcal { K D } ( { \pmb y } , \hat { \pmb y } ) = - \mathcal { H } ( t ( { \pmb y } ) , t ( \hat { \pmb y } ) ) } \\ { = - \displaystyle \sum _ { j } t ( { \pmb y } ) _ { j } \log t ( \hat { \pmb y } ) _ { j } } \end{array}
380
+ $$
381
+
382
+ where t(y)i $\begin{array} { r } { t ( \pmb { y } ) _ { i } = \frac { ( \pmb { y } _ { i } ) ^ { 1 / \operatorname { T } } } { \sum _ { j } ( \pmb { y } _ { j } ) ^ { 1 / \operatorname { T } } } } \end{array}$ = (yi)1/TPj (yj )1/T , T = 2 in our case, following the standard setting in (Hinton et al., 2015;
383
+ Li & Hoiem, 2017).
384
+
385
+ # A2.2 ADVERSARIAL TRAINING
386
+
387
+ Adversarial training incorporates generated adversarial examples into the training process and significantly improves the robustness of networks. In our paper, we implemented three different adversarial training schemes: FGSM, PGD and TRADES, which can be described as the optimization problem below: Eqn.4 for FGSM and PGD, Eqn.5 for TRADES.
388
+
389
+ $$
390
+ \operatorname* { m i n } _ { \pmb { \theta } } \mathbb { E } _ { ( \mathbf { x } , y ) \in \mathcal { D } } \operatorname* { m a x } _ { \pmb { \delta } \in \mathrm { B } _ { \epsilon } ( \mathbf { x } ) } \mathcal { L } \big ( f ( \pmb { \theta } , \mathbf { x } + \pmb { \delta } ) , y \big )
391
+ $$
392
+
393
+ $$
394
+ \operatorname* { m i n } _ { \pmb { \theta } } \mathbb { E } _ { ( \mathbf { x } , \pmb { y } ) \in \mathcal { D } } \bigg [ \mathcal { L } \big ( f ( \pmb { \theta } , \mathbf { x } ) , \pmb { y } \big ) + \beta \cdot \operatorname* { m a x } _ { \pmb { \delta } \in \mathrm { B } _ { \epsilon } ( \mathbf { x } ) } \mathcal { K L } \big ( f ( \pmb { \theta } , \mathbf { x } + \pmb { \delta } ) , f ( \pmb { \theta } , \mathbf { x } ) \big ) \bigg ]
395
+ $$
396
+
397
+ As for the maximization process, FGSM perturbs the input with a single step in the direction of the sign of the gradient and PGD is the iterative form of FGSM with random restarts, which works as follows.
398
+
399
+ $$
400
+ \delta ^ { t + 1 } = \mathrm { p r o j } _ { \mathcal { P } } \Big ( \delta ^ { t } + \alpha \cdot \mathrm { s g n } \big ( \nabla _ { \mathbf { x } } \mathcal { L } ( f ( \pmb { \theta } , \mathbf { x } + \delta ^ { t } ) , y ) \big ) \Big )
401
+ $$
402
+
403
+ $$
404
+ \delta ^ { t + 1 } = \mathrm { p r o j } _ { \mathcal { P } } \Big ( \delta ^ { t } + \alpha \cdot \mathrm { s g n } \big ( \nabla _ { \mathbf { x } } \mathcal { K } \mathcal { L } ( f ( \pmb { \theta } , \mathbf { x } + \delta ) , f ( \pmb { \theta } , \mathbf { x } ) \big ) \Big )
405
+ $$
406
+
407
+ TRADES (Eqn.7) replaces the cross entropy loss in PGD with the Kull-back–Leibler divergence of network output for the clean input and the adversarial input. Where f is the network with parameters $\theta , ( \mathbf { x } , y )$ is the data. $\alpha$ is the step size and $\delta ^ { t }$ is the adversarial perturbation after t times iterations. The perturbation is constrained in an $\ell _ { p }$ norm ball, i.e. $\| \delta \| _ { p } \leq \epsilon$ , which is realized by projection. we consider both $\ell _ { \infty }$ and $\ell _ { 2 }$ in our paper. For $\ell _ { \infty }$ adversary, we use $\begin{array} { r } { \epsilon = \frac { 8 } { 2 5 5 } } \end{array}$ and $\textstyle \alpha = { \frac { 2 } { 2 5 5 } }$ for PGD and TRADES with 10 steps in training and 20 steps in testing, while using $\begin{array} { r } { \alpha = \frac { 7 } { 2 5 5 } } \end{array}$ for FGSM during training. As for $\ell _ { 2 }$ adversary, we use $\begin{array} { r } { \epsilon = \frac { 1 2 8 } { 2 5 5 } } \end{array}$ and $\textstyle \alpha = { \frac { 1 5 } { 2 5 5 } }$ with the same steps as $\ell _ { \infty }$ adversary in all three attack methods.
408
+
409
+ For a comprehensive evaluation, we consider two improved attacks, i.e., Auto-Attack (Croce & Hein, 2020) and CW Attack (Carlini $\&$ Wagner, 2017). We use the official implementation and default settings for Auto-Attack ( $\ell _ { \infty }$ with $\epsilon = \frac { 8 } { 2 5 5 }$ and $\ell _ { 2 }$ with $\begin{array} { r } { \epsilon = \frac { 1 2 8 } { 2 5 5 } . } \end{array}$ ) and the implementation from AdverTorch (Ding et al., 2019) for CW attack with the same setting as Rony et al. (2019), specifically, 1 search step on C with an initial constant of 0.1, with 100 iterations for each search step and 0.01 learning rate. Detailed links are provided below:
410
+
411
+ • The Official Repository: https://github.com/fra31/auto-attack • The Leaderboard: https://robustbench.github.io/
parse/train/qZzy5urZw9/qZzy5urZw9_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/qZzy5urZw9/qZzy5urZw9_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/qZzy5urZw9/qZzy5urZw9_model.json ADDED
The diff for this file is too large to render. See raw diff